@univerjs-pro/live-share 0.12.4-insiders.20251213-692494c → 0.13.0-insiders.20251215-64041bb

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x340d(){const _0x47c1be=['getActiveSheet','startFollowing','_initialize','193490uIDUPm','5361456GYSCxM','get','_injector','6nhjvhI','44WuzSnC','22zkpDXF','getUnitId','getActiveWorkbook','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','3440448lTnzHb','startRow','stopFollowing','SetWorksheetActiveOperation','getSheetId','getLiveShareStatus','getId','PRESENTING','FUniver','extend','44210NpQiDx','getRenderById','LiveShareStatus','351GexBnW','LiveShareStatusEnum','28rCEWFZ','FRange','49611wKLlhI','IRenderManagerService','stopPresenting','2548735GtjXbL','syncExecuteCommand','No\x20active\x20workbook\x20found.','startPresenting','306660zQhvbz','SetScrollOperation','LiveShareController','getLiveShareCoordinatorSync','FEnum'];_0x340d=function(){return _0x47c1be;};return _0x340d();}const _0x34929c=_0x4e3f;(function(_0x1eaa6e,_0x57b15b){const _0x1b8387=_0x4e3f,_0x456ee6=_0x1eaa6e();while(!![]){try{const _0x4adcb9=-parseInt(_0x1b8387(0x156))/0x1*(-parseInt(_0x1b8387(0x154))/0x2)+parseInt(_0x1b8387(0x133))/0x3+-parseInt(_0x1b8387(0x140))/0x4*(parseInt(_0x1b8387(0x13b))/0x5)+-parseInt(_0x1b8387(0x13f))/0x6*(-parseInt(_0x1b8387(0x159))/0x7)+parseInt(_0x1b8387(0x145))/0x8+parseInt(_0x1b8387(0x152))/0x9*(parseInt(_0x1b8387(0x14f))/0xa)+parseInt(_0x1b8387(0x141))/0xb*(-parseInt(_0x1b8387(0x13c))/0xc);if(_0x4adcb9===_0x57b15b)break;else _0x456ee6['push'](_0x456ee6['shift']());}catch(_0x8d02ad){_0x456ee6['push'](_0x456ee6['shift']());}}}(_0x340d,0x6c6c4));function _0x4e3f(_0x599efc,_0x28afcb){_0x599efc=_0x599efc-0x130;const _0x340d6b=_0x340d();let _0x4e3f85=_0x340d6b[_0x599efc];return _0x4e3f85;}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[_0x34929c(0x155)]{[_0x34929c(0x13a)](_0x1843c6,_0xd54eab,_0x20c7f8,_0x84402f,_0x1118ea){const _0xed1413=_0x34929c,_0xbb07d5=_0x1843c6[_0xed1413(0x13d)](n['LiveShareController']),_0x44b2ec=_0x1843c6[_0xed1413(0x13d)](g[_0xed1413(0x157)]),_0xf397a8=_0xd54eab['getUnitId'](),_0x3797b0=_0xd54eab[_0xed1413(0x138)](),_0x2ed76e=_0xbb07d5['getLiveShareCoordinatorSync'](_0xf397a8);(_0x2ed76e==null?void 0x0:_0x2ed76e['getStatus']())!==n['LiveShareStatus'][_0xed1413(0x14c)]||(_0x20c7f8[_0xed1413(0x149)]()!==_0x3797b0[_0xed1413(0x149)]()&&this['_commandService']['executeCommand'](u[_0xed1413(0x148)]['id'],{'unitId':_0xf397a8,'subUnitId':_0x20c7f8[_0xed1413(0x149)]()}),!_0x44b2ec[_0xed1413(0x150)](_0xf397a8))||_0x1118ea[_0xed1413(0x130)](f[_0xed1413(0x134)]['id'],{'unitId':_0xd54eab[_0xed1413(0x142)](),'sheetId':_0x20c7f8[_0xed1413(0x149)](),'sheetViewStartRow':_0x84402f[_0xed1413(0x146)],'sheetViewStartColumn':_0x84402f['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x34929c(0x155)][_0x34929c(0x14e)](w);class C extends a[_0x34929c(0x14d)]{[_0x34929c(0x14a)](){const _0x2c9cca=_0x34929c;var _0x25c8de,_0x5f2cb1;const _0x5770d8=this[_0x2c9cca(0x13e)][_0x2c9cca(0x13d)](n[_0x2c9cca(0x135)]),_0xfcc3e6=(_0x25c8de=this[_0x2c9cca(0x143)]())==null?void 0x0:_0x25c8de['getId']();if(!_0xfcc3e6)throw new Error(_0x2c9cca(0x131));const _0x2b9655=_0x5770d8[_0x2c9cca(0x136)](_0xfcc3e6);return(_0x5f2cb1=_0x2b9655==null?void 0x0:_0x2b9655['getStatus']())!=null?_0x5f2cb1:n[_0x2c9cca(0x151)]['IDLE'];}['startFollowing'](){const _0x3529db=_0x34929c;var _0x3f3db9;const _0x1acd18=this['_injector'][_0x3529db(0x13d)](n[_0x3529db(0x135)]),_0x2fe7d9=(_0x3f3db9=this[_0x3529db(0x143)]())==null?void 0x0:_0x3f3db9[_0x3529db(0x14b)]();if(!_0x2fe7d9)throw new Error('No\x20active\x20workbook\x20found.');const _0x7e3d63=_0x1acd18[_0x3529db(0x136)](_0x2fe7d9);if(!_0x7e3d63)throw new Error(_0x3529db(0x144));_0x7e3d63[_0x3529db(0x139)]();}[_0x34929c(0x147)](){const _0x5edded=_0x34929c;var _0x35499c;const _0xcc5c79=this[_0x5edded(0x13e)][_0x5edded(0x13d)](n[_0x5edded(0x135)]),_0x564369=(_0x35499c=this[_0x5edded(0x143)]())==null?void 0x0:_0x35499c['getId']();if(!_0x564369)throw new Error(_0x5edded(0x131));const _0x530057=_0xcc5c79['getLiveShareCoordinatorSync'](_0x564369);if(!_0x530057)throw new Error(_0x5edded(0x144));_0x530057[_0x5edded(0x147)]();}[_0x34929c(0x132)](){const _0x450cf4=_0x34929c;var _0x618c04;const _0x10b0f0=this[_0x450cf4(0x13e)][_0x450cf4(0x13d)](n[_0x450cf4(0x135)]),_0x337cb3=(_0x618c04=this[_0x450cf4(0x143)]())==null?void 0x0:_0x618c04[_0x450cf4(0x14b)]();if(!_0x337cb3)throw new Error(_0x450cf4(0x131));const _0x3a4500=_0x10b0f0[_0x450cf4(0x136)](_0x337cb3);if(!_0x3a4500)throw new Error(_0x450cf4(0x144));_0x3a4500['tryStartPresenting']();}[_0x34929c(0x158)](){const _0x2dc8e3=_0x34929c;var _0x40b40a;const _0x43b2f5=this[_0x2dc8e3(0x13e)]['get'](n['LiveShareController']),_0x5bfd41=(_0x40b40a=this['getActiveWorkbook']())==null?void 0x0:_0x40b40a[_0x2dc8e3(0x14b)]();if(!_0x5bfd41)throw new Error(_0x2dc8e3(0x131));const _0x20fac7=_0x43b2f5['getLiveShareCoordinatorSync'](_0x5bfd41);if(!_0x20fac7)throw new Error(_0x2dc8e3(0x144));_0x20fac7[_0x2dc8e3(0x158)]();}}a[_0x34929c(0x14d)][_0x34929c(0x14e)](C);class L extends a['FEnum']{get[_0x34929c(0x153)](){return n['LiveShareStatus'];}}a[_0x34929c(0x137)][_0x34929c(0x14e)](L);
1
+ 'use strict';const _0x5cc455=_0x2a19;(function(_0x8093b5,_0x1934c0){const _0x1bbbcd=_0x2a19,_0x5a49a0=_0x8093b5();while(!![]){try{const _0x4f089f=parseInt(_0x1bbbcd(0xb8))/0x1+parseInt(_0x1bbbcd(0xa2))/0x2*(parseInt(_0x1bbbcd(0x96))/0x3)+parseInt(_0x1bbbcd(0x92))/0x4*(parseInt(_0x1bbbcd(0xa4))/0x5)+parseInt(_0x1bbbcd(0xad))/0x6+parseInt(_0x1bbbcd(0xaf))/0x7+parseInt(_0x1bbbcd(0xb0))/0x8*(parseInt(_0x1bbbcd(0x9f))/0x9)+-parseInt(_0x1bbbcd(0xa6))/0xa;if(_0x4f089f===_0x1934c0)break;else _0x5a49a0['push'](_0x5a49a0['shift']());}catch(_0x2a17d5){_0x5a49a0['push'](_0x5a49a0['shift']());}}}(_0x1959,0xe8010));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[_0x5cc455(0x91)]{[_0x5cc455(0xa0)](_0x4cecf5,_0x3fea54,_0x1f8237,_0x3fb0d8,_0x319573){const _0x113916=_0x5cc455,_0x54ed1b=_0x4cecf5[_0x113916(0x94)](n[_0x113916(0xb2)]),_0x3d8cd0=_0x4cecf5[_0x113916(0x94)](g[_0x113916(0xb4)]),_0x16b874=_0x3fea54[_0x113916(0xb5)](),_0x16194c=_0x3fea54['getActiveSheet'](),_0x272544=_0x54ed1b[_0x113916(0x8f)](_0x16b874);(_0x272544==null?void 0x0:_0x272544[_0x113916(0xaa)]())!==n['LiveShareStatus']['PRESENTING']||(_0x1f8237[_0x113916(0x9e)]()!==_0x16194c[_0x113916(0x9e)]()&&this[_0x113916(0x9c)][_0x113916(0xba)](u[_0x113916(0xa7)]['id'],{'unitId':_0x16b874,'subUnitId':_0x1f8237[_0x113916(0x9e)]()}),!_0x3d8cd0[_0x113916(0x9b)](_0x16b874))||_0x319573[_0x113916(0xa3)](f[_0x113916(0xae)]['id'],{'unitId':_0x3fea54[_0x113916(0xb5)](),'sheetId':_0x1f8237['getSheetId'](),'sheetViewStartRow':_0x3fb0d8[_0x113916(0xac)],'sheetViewStartColumn':_0x3fb0d8[_0x113916(0x9d)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x1959(){const _0x580bd6=['get','_injector','2030286COoktX','IDLE','FUniver','extend','stopPresenting','getRenderById','_commandService','startColumn','getSheetId','414XzVNXL','_initialize','tryStartPresenting','2CxdAuk','syncExecuteCommand','535THoCSc','No\x20active\x20workbook\x20found.','59951990AzXwQh','SetWorksheetActiveOperation','getId','getActiveWorkbook','getStatus','LiveShareStatus','startRow','6521034dYcWqo','SetScrollOperation','2452331ElhHbp','294824JOpImA','startPresenting','LiveShareController','LiveShareStatusEnum','IRenderManagerService','getUnitId','FEnum','startFollowing','1498466riaPJb','getLiveShareStatus','executeCommand','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FRange','61228CTDhnf','stopFollowing'];_0x1959=function(){return _0x580bd6;};return _0x1959();}d['FRange'][_0x5cc455(0x99)](w);function _0x2a19(_0x37ac30,_0x5bfed3){_0x37ac30=_0x37ac30-0x8f;const _0x1959e6=_0x1959();let _0x2a19fd=_0x1959e6[_0x37ac30];return _0x2a19fd;}class C extends a['FUniver']{[_0x5cc455(0xb9)](){const _0x4bb721=_0x5cc455;var _0x1753f0,_0x4ce4ac;const _0x39d3b5=this[_0x4bb721(0x95)][_0x4bb721(0x94)](n[_0x4bb721(0xb2)]),_0xc90d0=(_0x1753f0=this[_0x4bb721(0xa9)]())==null?void 0x0:_0x1753f0[_0x4bb721(0xa8)]();if(!_0xc90d0)throw new Error(_0x4bb721(0xa5));const _0x3bb5db=_0x39d3b5[_0x4bb721(0x8f)](_0xc90d0);return(_0x4ce4ac=_0x3bb5db==null?void 0x0:_0x3bb5db[_0x4bb721(0xaa)]())!=null?_0x4ce4ac:n['LiveShareStatus'][_0x4bb721(0x97)];}[_0x5cc455(0xb7)](){const _0x28b23c=_0x5cc455;var _0x1ecd33;const _0x47c45d=this[_0x28b23c(0x95)][_0x28b23c(0x94)](n[_0x28b23c(0xb2)]),_0x9227c8=(_0x1ecd33=this['getActiveWorkbook']())==null?void 0x0:_0x1ecd33[_0x28b23c(0xa8)]();if(!_0x9227c8)throw new Error(_0x28b23c(0xa5));const _0x6b2821=_0x47c45d[_0x28b23c(0x8f)](_0x9227c8);if(!_0x6b2821)throw new Error(_0x28b23c(0x90));_0x6b2821[_0x28b23c(0xb7)]();}[_0x5cc455(0x93)](){const _0x32373f=_0x5cc455;var _0x33c5f1;const _0x1eb1c6=this['_injector'][_0x32373f(0x94)](n[_0x32373f(0xb2)]),_0x19332e=(_0x33c5f1=this[_0x32373f(0xa9)]())==null?void 0x0:_0x33c5f1[_0x32373f(0xa8)]();if(!_0x19332e)throw new Error(_0x32373f(0xa5));const _0xf0e1f7=_0x1eb1c6[_0x32373f(0x8f)](_0x19332e);if(!_0xf0e1f7)throw new Error(_0x32373f(0x90));_0xf0e1f7[_0x32373f(0x93)]();}[_0x5cc455(0xb1)](){const _0x2774dd=_0x5cc455;var _0x4d0b45;const _0x59f153=this[_0x2774dd(0x95)]['get'](n[_0x2774dd(0xb2)]),_0x192cae=(_0x4d0b45=this[_0x2774dd(0xa9)]())==null?void 0x0:_0x4d0b45[_0x2774dd(0xa8)]();if(!_0x192cae)throw new Error(_0x2774dd(0xa5));const _0x440eeb=_0x59f153[_0x2774dd(0x8f)](_0x192cae);if(!_0x440eeb)throw new Error(_0x2774dd(0x90));_0x440eeb[_0x2774dd(0xa1)]();}[_0x5cc455(0x9a)](){const _0x56da83=_0x5cc455;var _0x5e4e43;const _0x3a04ce=this['_injector'][_0x56da83(0x94)](n[_0x56da83(0xb2)]),_0x8629ab=(_0x5e4e43=this[_0x56da83(0xa9)]())==null?void 0x0:_0x5e4e43['getId']();if(!_0x8629ab)throw new Error(_0x56da83(0xa5));const _0x4e4a80=_0x3a04ce['getLiveShareCoordinatorSync'](_0x8629ab);if(!_0x4e4a80)throw new Error(_0x56da83(0x90));_0x4e4a80[_0x56da83(0x9a)]();}}a[_0x5cc455(0x98)][_0x5cc455(0x99)](C);class L extends a['FEnum']{get[_0x5cc455(0xb3)](){const _0x4ae3af=_0x5cc455;return n[_0x4ae3af(0xab)];}}a[_0x5cc455(0xb6)][_0x5cc455(0x99)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x12f82e=_0x4641;(function(_0x250969,_0x1fcaf8){const _0x3501fc=_0x4641,_0x21bbaa=_0x250969();while(!![]){try{const _0x5ad3f3=parseInt(_0x3501fc(0x18f))/0x1+parseInt(_0x3501fc(0x1c1))/0x2+-parseInt(_0x3501fc(0x1e1))/0x3*(-parseInt(_0x3501fc(0x13d))/0x4)+parseInt(_0x3501fc(0x1d6))/0x5*(-parseInt(_0x3501fc(0x1fa))/0x6)+parseInt(_0x3501fc(0x1dc))/0x7+parseInt(_0x3501fc(0x1af))/0x8+parseInt(_0x3501fc(0x178))/0x9*(-parseInt(_0x3501fc(0x181))/0xa);if(_0x5ad3f3===_0x1fcaf8)break;else _0x21bbaa['push'](_0x21bbaa['shift']());}catch(_0x2fa9b4){_0x21bbaa['push'](_0x21bbaa['shift']());}}}(_0x4c94,0x675a1));var T=Object[_0x12f82e(0x20c)],U=(_0x1c4539,_0x132659,_0x582e24)=>_0x132659 in _0x1c4539?T(_0x1c4539,_0x132659,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x582e24}):_0x1c4539[_0x132659]=_0x582e24,_=(_0xcb41cf,_0x183bb6,_0x319afd)=>U(_0xcb41cf,typeof _0x183bb6!=_0x12f82e(0x154)?_0x183bb6+'':_0x183bb6,_0x319afd);Object['defineProperty'](exports,Symbol[_0x12f82e(0x1a9)],{'value':_0x12f82e(0x1cf)});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:_0x1c643c,..._0xfabc16}){const _0x5b193a=_0x12f82e,{icon:_0x157980,id:_0x42bbf8,className:_0x453be5,extend:_0x3367a7,..._0x38eb7c}=_0xfabc16,_0x5429e2=(_0x5b193a(0x19b)+_0x42bbf8+'\x20'+(_0x453be5||''))['trim'](),_0x5232e1=v[_0x5b193a(0x185)]('_'+H());return j(_0x157980,''+_0x42bbf8,{'defIds':_0x157980['defIds'],'idSuffix':_0x5232e1[_0x5b193a(0x14a)]},{'ref':_0x1c643c,'className':_0x5429e2,..._0x38eb7c},_0x3367a7);}function _0x4c94(){const _0x230e95=['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','Inject','_handleNewChangeSets','useDependency','_mountLiveShare','_reporters','clear','getStatus','live-share.config','throttleTime','useState','tag','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','_startPresenting','getLiveShareCoordinator','14130819cLkgpb','mutations','random','init','_collabSessionService','data','none','InsertSheetMutation','LIVESHARE_TERMINATE','10ujuuuJ','add','offline','Dropdown','useRef','DesktopLiveShareController','memberID','getOwnPropertyDescriptor','string','getCurrentTypeOfUnit$','next','SessionStatus','unsubscribe','_injector','579728QxNAaA','jsxs','UniverInstanceType','useEffect','map','Start','_liveShareService','length','attrs','Injector','You\x27re\x20following\x20the\x20presenter','PRESENTING','univerjs-icon\x20univerjs-icon-','BuiltInUIPart','_sharedOperations','getInitialStates','_init','subscribe','getConfig','SetZoomRatioOperation','params','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','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','use','createInstance','toStringTag','_entities','stringify','children','_beIdle','_handleOffline','4292360eQtEGG','sheet','send','toString','_fetchOperations','evenodd','Fragment','_uiPartsService','_handleOperation','SetScrollOperation','LIVESHARE_OPERATION','DisposableCollection','url(#$1','requireSession','registerSharedOperation','_univerInstanceService','forwardRef','svg','84340FjCsPD','_commandService','event$','getTypeOfUnitAdded$','idSuffix','takeUntil','type','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','Start\x20following','UNIVER_SHEET','1em','ONLINE','Button','Module','_unitID','find','tryStartPresenting','button','colorChannel1','startFollowing','10555IJloqX','pipe','clsx','LIVESHARE_NEW_HOST','_status','_stopPresenting','5600028FQRkmq','disposeWithMe','complete','IUIPartsService','CollaborationEvent','180CYTFNw','registerDependencies','onCommandExecuted','_stopFollowing','_startFollowing','merge','LiveShareIcon','connectInjector','LiveShare','jsx','Disposable','entries','replace','presenter','div','not-following','mergeOverrideWithDependencies','UNIVER_LIVE_SHARE_PLUGIN','HEADER_MENU','idle','parse','Stop\x20following','fill','LiveShareCoordinator','has','822WReSwW','createElement','_handleOnline','executeCommand','path','UniverIcon','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','override','UNIVER_UNKNOWN','_configService','set','getValue','IConfigService','operations','_handleTerminate','UniverCollaborationClientPlugin','defineProperty','touchDependencies','RxDisposable','Plugin','21612jlbQZT','_handleNewHost','UniverLiveSharePlugin','Stop\x20presenting','_status$','setConfig','presenting','getMemberID','displayName','stopFollowing','getUnitId','onStarting','_presenter','current','xlink:href','dispose','end','defs','IDLE','OFFLINE','0\x200\x2017\x2017','_commandDisposable','includes','symbol','_collabSession','NEW_CHANGESETS','sessionStatus$','following','_startLiveShareCoordinator','toDisposable','dispose$','LiveShareService','substring','get','_config','You\x27re\x20not\x20following\x20the\x20presenter','NOT_FOLLOWING','asObservable','stopPresenting','from','mask','LiveShareController','forEach'];_0x4c94=function(){return _0x230e95;};return _0x4c94();}function j(_0x978f76,_0x2fc1ca,_0xd4bc70,_0x15a75b,_0x1de0e4){const _0x4fc54b=_0x12f82e;return v[_0x4fc54b(0x1fb)](_0x978f76[_0x4fc54b(0x173)],{'key':_0x2fc1ca,...y(_0x978f76,_0xd4bc70,_0x1de0e4),..._0x15a75b},(F(_0x978f76,_0xd4bc70)[_0x4fc54b(0x1ac)]||[])[_0x4fc54b(0x193)]((_0x54f9dc,_0x58e83b)=>j(_0x54f9dc,_0x2fc1ca+'-'+_0x978f76[_0x4fc54b(0x173)]+'-'+_0x58e83b,_0xd4bc70,void 0x0,_0x1de0e4)));}function y(_0x34beae,_0x75ab2c,_0x4e85d7){const _0xf4ecce=_0x12f82e,_0x28bf95={..._0x34beae[_0xf4ecce(0x197)]};_0x4e85d7!=null&&_0x4e85d7[_0xf4ecce(0x1d4)]&&_0x28bf95['fill']===_0xf4ecce(0x1d4)&&(_0x28bf95[_0xf4ecce(0x1f7)]=_0x4e85d7['colorChannel1']),_0x34beae[_0xf4ecce(0x173)]===_0xf4ecce(0x165)&&_0x28bf95['id']&&(_0x28bf95['id']=_0x28bf95['id']+_0x75ab2c['idSuffix']),Object[_0xf4ecce(0x1ec)](_0x28bf95)[_0xf4ecce(0x167)](([_0x1fac4c,_0x32ba95])=>{const _0x431908=_0xf4ecce;_0x1fac4c===_0x431908(0x165)&&typeof _0x32ba95==_0x431908(0x189)&&(_0x28bf95[_0x1fac4c]=_0x32ba95[_0x431908(0x1ed)](/url\(#(.*)\)/,_0x431908(0x1bb)+_0x75ab2c[_0x431908(0x1c5)]+')'));});const {defIds:_0x43e5d7}=_0x75ab2c;return!_0x43e5d7||_0x43e5d7[_0xf4ecce(0x196)]===0x0||(_0x34beae[_0xf4ecce(0x173)]===_0xf4ecce(0x1a7)&&_0x28bf95[_0xf4ecce(0x14b)]&&(_0x28bf95['xlink:href']=_0x28bf95[_0xf4ecce(0x14b)]+_0x75ab2c[_0xf4ecce(0x1c5)]),Object[_0xf4ecce(0x1ec)](_0x28bf95)[_0xf4ecce(0x167)](([_0x1e0964,_0x2bf303])=>{const _0x4b1f01=_0xf4ecce;typeof _0x2bf303=='string'&&(_0x28bf95[_0x1e0964]=_0x2bf303[_0x4b1f01(0x1ed)](/url\(#(.*)\)/,_0x4b1f01(0x1bb)+_0x75ab2c[_0x4b1f01(0x1c5)]+')'));})),_0x28bf95;}function F(_0x3e5622,_0x131d0e){const _0x4390ec=_0x12f82e;var _0x4179f7;const {defIds:_0x3d7c52}=_0x131d0e;return!_0x3d7c52||_0x3d7c52[_0x4390ec(0x196)]===0x0?_0x3e5622:_0x3e5622[_0x4390ec(0x173)]===_0x4390ec(0x14e)&&((_0x4179f7=_0x3e5622['children'])!=null&&_0x4179f7[_0x4390ec(0x196)])?{..._0x3e5622,'children':_0x3e5622[_0x4390ec(0x1ac)][_0x4390ec(0x193)](_0x35b678=>typeof _0x35b678[_0x4390ec(0x197)]['id']==_0x4390ec(0x189)&&_0x3d7c52&&_0x3d7c52[_0x4390ec(0x153)](_0x35b678[_0x4390ec(0x197)]['id'])?{..._0x35b678,'attrs':{..._0x35b678[_0x4390ec(0x197)],'id':_0x35b678[_0x4390ec(0x197)]['id']+_0x131d0e[_0x4390ec(0x1c5)]}}:_0x35b678)}:_0x3e5622;}function _0x4641(_0x28bb5f,_0x5d2836){_0x28bb5f=_0x28bb5f-0x13c;const _0x4c9455=_0x4c94();let _0x4641bf=_0x4c9455[_0x28bb5f];return _0x4641bf;}function H(){const _0x3ea414=_0x12f82e;return Math[_0x3ea414(0x17a)]()[_0x3ea414(0x1b2)](0x24)[_0x3ea414(0x15d)](0x2,0x8);}x[_0x12f82e(0x145)]=_0x12f82e(0x1ff);const V={'tag':_0x12f82e(0x1c0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12f82e(0x17e),'viewBox':_0x12f82e(0x151),'width':_0x12f82e(0x1cc),'height':_0x12f82e(0x1cc)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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':_0x12f82e(0x1fe),'attrs':{'fill':'currentColor','d':_0x12f82e(0x168),'fillRule':'evenodd','clipRule':_0x12f82e(0x1b4)}}]},R=v[_0x12f82e(0x1bf)](function(_0xff8aef,_0x956d36){const _0x10fc6a=_0x12f82e;return v[_0x10fc6a(0x1fb)](x,Object['assign']({},_0xff8aef,{'id':'live-share-icon','ref':_0x956d36,'icon':V}));});R[_0x12f82e(0x145)]=_0x12f82e(0x1e7);class E extends o['Disposable']{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}['registerSharedOperation'](_0x17886d){const _0x2b3dde=_0x12f82e;return this[_0x2b3dde(0x19d)][_0x2b3dde(0x182)](_0x17886d),o[_0x2b3dde(0x15a)](()=>this['_sharedOperations']['delete'](_0x17886d));}['registerInitialStateReporter'](_0x22a121){const _0x5e0cf8=_0x12f82e;return this['_reporters'][_0x5e0cf8(0x182)](_0x22a121),o[_0x5e0cf8(0x15a)](()=>this[_0x5e0cf8(0x16d)]['delete'](_0x22a121));}[_0x12f82e(0x202)](_0x4e1fdf){const _0x548879=_0x12f82e;return this[_0x548879(0x19d)]['has'](_0x4e1fdf);}[_0x12f82e(0x19e)](_0x2db929){const _0x26d75d=_0x12f82e;return Array[_0x26d75d(0x164)](this['_reporters'])[_0x26d75d(0x193)](_0x2f69f9=>_0x2f69f9(_0x2db929));}}var M=Object[_0x12f82e(0x188)],P=(_0x14da8d,_0x32b72d,_0x947996,_0x16cdf7)=>{const _0x135f38=_0x12f82e;for(var _0x5f5d5f=_0x16cdf7>0x1?void 0x0:_0x16cdf7?M(_0x32b72d,_0x947996):_0x32b72d,_0x4a5f02=_0x14da8d[_0x135f38(0x196)]-0x1,_0x37dc03;_0x4a5f02>=0x0;_0x4a5f02--)(_0x37dc03=_0x14da8d[_0x4a5f02])&&(_0x5f5d5f=_0x37dc03(_0x5f5d5f)||_0x5f5d5f);return _0x5f5d5f;},S=(_0x430b9c,_0xa4eb5f)=>(_0x517220,_0x158184)=>_0xa4eb5f(_0x517220,_0x158184,_0x430b9c);exports[_0x12f82e(0x166)]=class extends o[_0x12f82e(0x20e)]{constructor(_0x1a6ad7,_0xb570f4,_0x521385){const _0x2a1720=_0x12f82e;super(),_(this,_0x2a1720(0x1aa),new Map()),(this[_0x2a1720(0x1be)]=_0x1a6ad7,this['_injector']=_0xb570f4,this['_collabSessionService']=_0x521385,this[_0x2a1720(0x19f)]());}async['getLiveShareCoordinator'](_0x264f8d){const _0x387f42=_0x12f82e;return this[_0x387f42(0x1aa)][_0x387f42(0x1f9)](_0x264f8d)||await this[_0x387f42(0x159)](_0x264f8d),this[_0x387f42(0x1aa)][_0x387f42(0x15e)](_0x264f8d);}[_0x12f82e(0x175)](_0x3b7290){const _0x81b120=_0x12f82e;var _0x44237e;return(_0x44237e=this[_0x81b120(0x1aa)][_0x81b120(0x15e)](_0x3b7290))!=null?_0x44237e:null;}[_0x12f82e(0x19f)](){const _0x16dfac=_0x12f82e;this['_univerInstanceService'][_0x16dfac(0x1c4)](o[_0x16dfac(0x191)]['UNIVER_SHEET'])[_0x16dfac(0x1d7)](I['takeUntil'](this[_0x16dfac(0x15b)]))[_0x16dfac(0x1a0)](async _0x1c64ee=>{const _0x24c6b5=_0x16dfac,_0x36641e=_0x1c64ee[_0x24c6b5(0x147)]();this[_0x24c6b5(0x1aa)]['has'](_0x36641e)||this[_0x24c6b5(0x159)](_0x36641e);}),this[_0x16dfac(0x1be)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x16dfac(0x1cb)])['pipe'](I[_0x16dfac(0x1c6)](this['dispose$']))[_0x16dfac(0x1a0)](_0x142594=>{const _0x1a728b=_0x16dfac,_0x333a26=_0x142594[_0x1a728b(0x147)](),_0x9b445a=this[_0x1a728b(0x1aa)][_0x1a728b(0x15e)](_0x333a26);_0x9b445a==null||_0x9b445a[_0x1a728b(0x14c)]();});}async[_0x12f82e(0x159)](_0x1046ae){const _0x12f9b1=_0x12f82e,_0x4bb107=await this[_0x12f9b1(0x17c)][_0x12f9b1(0x1bc)](_0x1046ae),_0x1d31a2=this[_0x12f9b1(0x18e)][_0x12f9b1(0x1a8)](exports[_0x12f9b1(0x1f8)],_0x1046ae,_0x4bb107);return _0x1d31a2[_0x12f9b1(0x17b)](),this['_entities'][_0x12f9b1(0x206)](_0x1046ae,_0x1d31a2),_0x1d31a2;}},exports[_0x12f82e(0x166)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports['LiveShareController']);var u=(_0x9e342b=>(_0x9e342b[_0x12f82e(0x150)]='offline',_0x9e342b['IDLE']='idle',_0x9e342b['FOLLOWING']=_0x12f82e(0x158),_0x9e342b[_0x12f82e(0x161)]=_0x12f82e(0x1f0),_0x9e342b[_0x12f82e(0x19a)]=_0x12f82e(0x143),_0x9e342b))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x12f82e(0x20e)]{constructor(_0x155913,_0x1e87b6,_0x2cc75f,_0x4887ce,_0x54bf30){const _0x3d8215=_0x12f82e;super(),_(this,_0x3d8215(0x141),new O['BehaviorSubject']('idle')),_(this,'status$',this[_0x3d8215(0x141)][_0x3d8215(0x162)]()),_(this,_0x3d8215(0x19f),!0x1),_(this,'_commandDisposable',null),_(this,_0x3d8215(0x149),null),(this[_0x3d8215(0x1d0)]=_0x155913,this[_0x3d8215(0x155)]=_0x1e87b6,this[_0x3d8215(0x205)]=_0x2cc75f,this[_0x3d8215(0x195)]=_0x4887ce,this[_0x3d8215(0x1c2)]=_0x54bf30);}get[_0x12f82e(0x1da)](){const _0x5d5ab5=_0x12f82e;return this[_0x5d5ab5(0x141)][_0x5d5ab5(0x207)]();}[_0x12f82e(0x14c)](){const _0x21ced9=_0x12f82e;var _0x2dbdbc;(_0x2dbdbc=this[_0x21ced9(0x152)])==null||_0x2dbdbc[_0x21ced9(0x14c)](),this[_0x21ced9(0x141)][_0x21ced9(0x18b)](_0x21ced9(0x1f4)),this[_0x21ced9(0x141)][_0x21ced9(0x1de)]();}[_0x12f82e(0x16f)](){const _0xb03cc0=_0x12f82e;return this[_0xb03cc0(0x1da)];}['init'](){const _0x13e9f7=_0x12f82e;this[_0x13e9f7(0x19f)]||(this[_0x13e9f7(0x19f)]=!0x0,this['_collabSession'][_0x13e9f7(0x157)][_0x13e9f7(0x1d7)](I[_0x13e9f7(0x1c6)](this[_0x13e9f7(0x15b)]))[_0x13e9f7(0x1a0)](_0x5d24eb=>{const _0x4cd108=_0x13e9f7;switch(_0x5d24eb){case b[_0x4cd108(0x18c)][_0x4cd108(0x150)]:this['_handleOffline']();break;case b[_0x4cd108(0x18c)][_0x4cd108(0x1cd)]:this[_0x4cd108(0x1fc)]();break;}}),this[_0x13e9f7(0x155)][_0x13e9f7(0x1c3)][_0x13e9f7(0x1d7)](I[_0x13e9f7(0x1c6)](this[_0x13e9f7(0x15b)]))[_0x13e9f7(0x1a0)](_0x2ef593=>{const _0x204f72=_0x13e9f7,{eventID:_0x4820ad}=_0x2ef593;switch(_0x4820ad){case d[_0x204f72(0x1e0)][_0x204f72(0x1d9)]:this[_0x204f72(0x13e)](_0x2ef593);break;case d[_0x204f72(0x1e0)][_0x204f72(0x1b9)]:this[_0x204f72(0x1b7)](_0x2ef593);break;case d['CollaborationEvent'][_0x204f72(0x180)]:this[_0x204f72(0x20a)]();break;case d[_0x204f72(0x1e0)][_0x204f72(0x156)]:this[_0x204f72(0x16a)](_0x2ef593);break;}}));}[_0x12f82e(0x1d2)](){const _0xbbb99d=_0x12f82e;this['_collabSession'][_0xbbb99d(0x1b1)]({'eventID':d[_0xbbb99d(0x1e0)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xbbb99d(0x1d0)],'userID':this[_0xbbb99d(0x155)][_0xbbb99d(0x144)]()}},this['_unitID']);}[_0x12f82e(0x163)](){const _0x376e6f=_0x12f82e;this['_status']===_0x376e6f(0x143)&&(this[_0x376e6f(0x141)]['next']('idle'),this[_0x376e6f(0x155)][_0x376e6f(0x1b1)]({'eventID':d[_0x376e6f(0x1e0)][_0x376e6f(0x180)],'data':{'unitID':this[_0x376e6f(0x1d0)]}},this[_0x376e6f(0x1d0)]));}[_0x12f82e(0x1d5)](){const _0x3b14ab=_0x12f82e;this[_0x3b14ab(0x1da)]==='not-following'&&(this['_status$'][_0x3b14ab(0x18b)](_0x3b14ab(0x158)),this[_0x3b14ab(0x1e5)]());}[_0x12f82e(0x146)](){const _0x23c08d=_0x12f82e;this['_status']===_0x23c08d(0x158)&&this[_0x23c08d(0x1e4)]();}['_handleNewHost'](_0x4bf94d){const _0x2142cc=_0x12f82e,{presenter:_0x141e63}=_0x4bf94d[_0x2142cc(0x17d)],_0x4fb545=this['_collabSession'][_0x2142cc(0x144)]();this[_0x2142cc(0x149)]=_0x141e63,_0x141e63===_0x4fb545?(this[_0x2142cc(0x1e4)](),this['_startPresenting']()):this[_0x2142cc(0x1da)]!=='not-following'&&(this[_0x2142cc(0x1db)](),this[_0x2142cc(0x1e5)]());}[_0x12f82e(0x1b3)](){const _0x338c50=_0x12f82e,_0x235716={'eventID':d[_0x338c50(0x1e0)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x338c50(0x155)][_0x338c50(0x1b1)](_0x235716,this[_0x338c50(0x1d0)]);}[_0x12f82e(0x20a)](){const _0x44f304=_0x12f82e;this[_0x44f304(0x149)]=null,this[_0x44f304(0x1da)]!==_0x44f304(0x143)&&this['_beIdle']();}[_0x12f82e(0x16a)](_0x5f52f4){const _0x1be33e=_0x12f82e;if(this[_0x1be33e(0x1da)]===_0x1be33e(0x158)&&this['_presenter']===_0x5f52f4[_0x1be33e(0x17d)][_0x1be33e(0x187)]){const _0x548072=d[_0x1be33e(0x200)](_0x5f52f4[_0x1be33e(0x17d)])[_0x1be33e(0x179)]['reverse']()[_0x1be33e(0x1d1)](_0x4472a4=>_0x4472a4['id']===C[_0x1be33e(0x17f)]['id']);if(_0x548072){const _0x346ea4=_0x548072[_0x1be33e(0x1a3)]['unitId'],_0x1fdd91=_0x548072['params'][_0x1be33e(0x1b0)]['id'];setTimeout(()=>{const _0x38ca75=_0x1be33e;this['_commandService'][_0x38ca75(0x1fd)](C[_0x38ca75(0x174)]['id'],{'unitId':_0x346ea4,'subUnitId':_0x1fdd91},{'fromCollab':!0x0});});}}}[_0x12f82e(0x176)](){const _0x15b8d9=_0x12f82e;this[_0x15b8d9(0x141)][_0x15b8d9(0x18b)](_0x15b8d9(0x143));const _0x4a13df=new Map(),_0x5651ac=this['_commandDisposable']=new o[(_0x15b8d9(0x1ba))]();_0x5651ac[_0x15b8d9(0x182)](o['toDisposable'](()=>{const _0x62ecac=_0x15b8d9;_0x4a13df[_0x62ecac(0x167)](_0x4df896=>_0x4df896[_0x62ecac(0x1de)]()),_0x4a13df[_0x62ecac(0x16e)]();})),_0x5651ac[_0x15b8d9(0x182)](this[_0x15b8d9(0x1c2)][_0x15b8d9(0x1e3)](_0x43c342=>{const _0x1fb2d8=_0x15b8d9;var _0x1a820a;if(_0x43c342[_0x1fb2d8(0x1c7)]!==o['CommandType']['OPERATION']||!this[_0x1fb2d8(0x195)][_0x1fb2d8(0x202)](_0x43c342['id']))return;const {id:_0x32f700}=_0x43c342;let _0x55cb47;_0x4a13df[_0x1fb2d8(0x1f9)](_0x32f700)?_0x55cb47=_0x4a13df[_0x1fb2d8(0x15e)](_0x32f700):(_0x55cb47=new O['Subject'](),_0x4a13df[_0x1fb2d8(0x206)](_0x32f700,_0x55cb47),_0x55cb47[_0x1fb2d8(0x1d7)](I[_0x1fb2d8(0x171)]((_0x1a820a=this[_0x1fb2d8(0x205)][_0x1fb2d8(0x1a1)](k))!=null?_0x1a820a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x46fc65=>{const _0x4005d9=_0x1fb2d8;this[_0x4005d9(0x155)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4005d9(0x1d0)],'operations':{[_0x46fc65['id']]:{'id':_0x46fc65['id'],'params':JSON[_0x4005d9(0x1ab)](_0x46fc65[_0x4005d9(0x1a3)])}}}},this[_0x4005d9(0x1d0)]);})),_0x55cb47[_0x1fb2d8(0x18b)](_0x43c342);})),this[_0x15b8d9(0x195)][_0x15b8d9(0x19e)](this[_0x15b8d9(0x1d0)])[_0x15b8d9(0x167)](_0x8a33fe=>this[_0x15b8d9(0x155)]['send']({'eventID':d[_0x15b8d9(0x1e0)][_0x15b8d9(0x1b9)],'data':{'unitID':this[_0x15b8d9(0x1d0)],'operations':{[_0x8a33fe['id']]:{'id':_0x8a33fe['id'],'params':JSON['stringify'](_0x8a33fe[_0x15b8d9(0x1a3)])}}}},this[_0x15b8d9(0x1d0)]));}[_0x12f82e(0x1db)](){const _0x3b5ba5=_0x12f82e;var _0x26ef56;this[_0x3b5ba5(0x141)][_0x3b5ba5(0x18b)](_0x3b5ba5(0x1f4)),(_0x26ef56=this[_0x3b5ba5(0x152)])==null||_0x26ef56['dispose'](),this[_0x3b5ba5(0x152)]=null;}[_0x12f82e(0x1e5)](){const _0x41919e=_0x12f82e;var _0x1af539;(_0x1af539=this['_commandDisposable'])==null||_0x1af539[_0x41919e(0x14c)](),this[_0x41919e(0x141)]['next']('following');}[_0x12f82e(0x1ad)](){const _0x4ce764=_0x12f82e;var _0x39efe9;this[_0x4ce764(0x141)][_0x4ce764(0x18b)](_0x4ce764(0x1f4)),(_0x39efe9=this['_commandDisposable'])==null||_0x39efe9[_0x4ce764(0x14c)](),this['_commandDisposable']=null;}[_0x12f82e(0x1e4)](){const _0x433c4c=_0x12f82e;var _0x131823;this[_0x433c4c(0x141)]['next'](_0x433c4c(0x1f0)),(_0x131823=this[_0x433c4c(0x152)])==null||_0x131823[_0x433c4c(0x14c)]();}[_0x12f82e(0x1b7)](_0x395760){const _0x4d81fa=_0x12f82e;if(['presenting','not-following',_0x4d81fa(0x183)][_0x4d81fa(0x153)](this[_0x4d81fa(0x1da)])||!_0x395760[_0x4d81fa(0x17d)]['presenter']||_0x395760[_0x4d81fa(0x17d)][_0x4d81fa(0x1ee)]===this[_0x4d81fa(0x155)]['getMemberID']())return;this[_0x4d81fa(0x1da)]==='idle'&&this[_0x4d81fa(0x1e5)]();const _0x2b2aca=_0x395760[_0x4d81fa(0x17d)][_0x4d81fa(0x209)];Object['values'](_0x2b2aca)[_0x4d81fa(0x167)](_0x532b03=>{const _0x51adf3=_0x4d81fa;this[_0x51adf3(0x1c2)]['executeCommand'](_0x532b03['id'],_0x532b03[_0x51adf3(0x1a3)]?JSON[_0x51adf3(0x1f5)](_0x532b03['params']):null,{'fromCollab':!0x0});});}[_0x12f82e(0x1ae)](){const _0x559e3c=_0x12f82e;var _0x5733a2;this[_0x559e3c(0x141)][_0x559e3c(0x18b)](_0x559e3c(0x183)),(_0x5733a2=this[_0x559e3c(0x152)])==null||_0x5733a2[_0x559e3c(0x14c)]();}['_handleOnline'](){const _0x25a6f0=_0x12f82e;this[_0x25a6f0(0x141)][_0x25a6f0(0x18b)](_0x25a6f0(0x1f4)),this[_0x25a6f0(0x1b3)]();}},exports[_0x12f82e(0x1f8)]=P([S(0x2,o[_0x12f82e(0x208)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x12f82e(0x1f8)]);function $(){const _0x31535f=_0x12f82e,_0x2f5efa=p[_0x31535f(0x16b)](exports['LiveShareController']),_0x4c4ed6=p['useDependency'](o['IUniverInstanceService']),_0x1acdcf=p['useObservable'](()=>_0x4c4ed6[_0x31535f(0x18a)](o[_0x31535f(0x191)][_0x31535f(0x1cb)]),void 0x0,!0x1,[]),[_0x2f26b7,_0x584960]=v[_0x31535f(0x172)](null),[_0x27a7ae,_0x550c50]=v['useState'](u[_0x31535f(0x14f)]),_0x2ad5b9=v['useRef'](null);return v[_0x31535f(0x192)](()=>(_0x1acdcf&&_0x2f5efa[_0x31535f(0x177)](_0x1acdcf[_0x31535f(0x147)]())[_0x31535f(0x1a5)](_0x11fb8e=>{const _0x593d8d=_0x31535f;_0x584960(_0x11fb8e),_0x2ad5b9[_0x593d8d(0x14a)]=_0x11fb8e['status$']['subscribe'](_0x4a9e62=>{_0x550c50(_0x4a9e62);});}),()=>{const _0x12ce0c=_0x31535f;var _0x413077;(_0x413077=_0x2ad5b9[_0x12ce0c(0x14a)])==null||_0x413077[_0x12ce0c(0x18d)](),_0x2ad5b9[_0x12ce0c(0x14a)]=null;}),[_0x1acdcf,_0x2f5efa]),_0x2f26b7?l['jsx'](f[_0x31535f(0x184)],{'align':_0x31535f(0x14d),'disabled':_0x27a7ae===u[_0x31535f(0x150)],'className':_0x31535f(0x1a4),'overlay':l['jsx'](W,{'status':_0x27a7ae,'coordinator':_0x2f26b7}),'children':l[_0x31535f(0x1ea)]('button',{'className':f[_0x31535f(0x1d8)](_0x31535f(0x1a6),{'univer-cursor-not-allowed':_0x27a7ae===u[_0x31535f(0x150)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27a7ae!==u[_0x31535f(0x150)]}),'type':_0x31535f(0x1d3),'children':l[_0x31535f(0x1ea)](R,{'className':'univer-size-4'})})}):null;}function W(_0x436e05){const _0x2048dd=_0x12f82e,{status:_0x3081f9,coordinator:_0xb0b951}=_0x436e05;switch(_0x3081f9){case u[_0x2048dd(0x14f)]:return l[_0x2048dd(0x1ea)](G,{'coordinator':_0xb0b951});case u['FOLLOWING']:return l[_0x2048dd(0x1ea)](B,{'coordinator':_0xb0b951});case u[_0x2048dd(0x161)]:return l[_0x2048dd(0x1ea)](Y,{'coordinator':_0xb0b951});case u['OFFLINE']:return l[_0x2048dd(0x1ea)](J,{});case u[_0x2048dd(0x19a)]:return l['jsx'](Z,{'coordinator':_0xb0b951});default:return null;}}function G(_0x3971f8){const _0x5aec32=_0x12f82e,{coordinator:_0x51c1c2}=_0x3971f8;return l[_0x5aec32(0x190)](l[_0x5aec32(0x1b5)],{'children':[l['jsx'](_0x5aec32(0x1ef),{'className':_0x5aec32(0x201),'children':'Present\x20this\x20document'}),l[_0x5aec32(0x1ea)](f[_0x5aec32(0x1ce)],{'onClick':()=>_0x51c1c2[_0x5aec32(0x1d2)](),'children':_0x5aec32(0x194)})]});}function B(_0x1112a4){const _0x3c7bc4=_0x12f82e,{coordinator:_0x5de80}=_0x1112a4;return l['jsxs'](l['Fragment'],{'children':[l[_0x3c7bc4(0x1ea)]('div',{'className':_0x3c7bc4(0x201),'children':_0x3c7bc4(0x199)}),l[_0x3c7bc4(0x1ea)](f[_0x3c7bc4(0x1ce)],{'onClick':()=>_0x5de80[_0x3c7bc4(0x146)](),'children':_0x3c7bc4(0x1f6)})]});}function Y(_0x4da901){const _0x43e432=_0x12f82e,{coordinator:_0x3e39ab}=_0x4da901;return l[_0x43e432(0x190)](l[_0x43e432(0x1b5)],{'children':[l[_0x43e432(0x1ea)](_0x43e432(0x1ef),{'className':_0x43e432(0x201),'children':_0x43e432(0x160)}),l['jsx'](f[_0x43e432(0x1ce)],{'variant':'text','onClick':()=>_0x3e39ab[_0x43e432(0x1d5)](),'children':_0x43e432(0x1ca)})]});}function Z(_0x4b31fd){const _0x2d35f9=_0x12f82e,{coordinator:_0x2bdfcc}=_0x4b31fd;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x2d35f9(0x201),'children':_0x2d35f9(0x1c9)}),l['jsx'](f['Button'],{'variant':'default','onClick':()=>_0x2bdfcc[_0x2d35f9(0x163)](),'children':_0x2d35f9(0x140)})]});}function J(){const _0x1038f2=_0x12f82e;return l[_0x1038f2(0x1ea)](l[_0x1038f2(0x1b5)],{'children':_0x1038f2(0x1c8)});}var K=Object[_0x12f82e(0x188)],z=(_0x2d47c2,_0x4c8d57,_0x1aeb6f,_0x3a2d0c)=>{const _0x4128f3=_0x12f82e;for(var _0x56ca41=_0x3a2d0c>0x1?void 0x0:_0x3a2d0c?K(_0x4c8d57,_0x1aeb6f):_0x4c8d57,_0x1547ba=_0x2d47c2[_0x4128f3(0x196)]-0x1,_0x5c2d26;_0x1547ba>=0x0;_0x1547ba--)(_0x5c2d26=_0x2d47c2[_0x1547ba])&&(_0x56ca41=_0x5c2d26(_0x56ca41)||_0x56ca41);return _0x56ca41;},L=(_0xd78a76,_0x15b83b)=>(_0x4b8f2a,_0x328071)=>_0x15b83b(_0x4b8f2a,_0x328071,_0xd78a76);exports[_0x12f82e(0x186)]=class extends o[_0x12f82e(0x1eb)]{constructor(_0x3dc07e,_0x401b0c){const _0x272655=_0x12f82e;super(),this['_injector']=_0x3dc07e,this[_0x272655(0x1b6)]=_0x401b0c,this[_0x272655(0x16c)]();}[_0x12f82e(0x16c)](){const _0x472668=_0x12f82e;this[_0x472668(0x1dd)](this[_0x472668(0x1b6)]['registerComponent'](p[_0x472668(0x19c)][_0x472668(0x1f3)],()=>p[_0x472668(0x1e8)]($,this[_0x472668(0x18e)])));}},exports[_0x12f82e(0x186)]=z([L(0x0,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),L(0x1,p[_0x12f82e(0x1df)])],exports[_0x12f82e(0x186)]);const Q=_0x12f82e(0x170),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0xd7cb92,_0x2680b8,_0x232125,_0x53daad)=>{const _0x5bba22=_0x12f82e;for(var _0x2e0da3=_0x53daad>0x1?void 0x0:_0x53daad?X(_0x2680b8,_0x232125):_0x2680b8,_0x33d36a=_0xd7cb92[_0x5bba22(0x196)]-0x1,_0x2be649;_0x33d36a>=0x0;_0x33d36a--)(_0x2be649=_0xd7cb92[_0x33d36a])&&(_0x2e0da3=_0x2be649(_0x2e0da3)||_0x2e0da3);return _0x2e0da3;},te=(_0x307ead,_0x5283a9)=>(_0x54df7c,_0x526b2f)=>_0x5283a9(_0x54df7c,_0x526b2f,_0x307ead);let m=class extends o[_0x12f82e(0x1eb)]{constructor(_0x57a1ec){const _0x3f2e7c=_0x12f82e;super(),this[_0x3f2e7c(0x195)]=_0x57a1ec,this[_0x3f2e7c(0x19f)]();}['_init'](){const _0x54e40d=_0x12f82e;[D[_0x54e40d(0x1a2)]['id'],D[_0x54e40d(0x1b8)]['id'],C[_0x54e40d(0x174)]['id']][_0x54e40d(0x167)](_0x3d5e3b=>{const _0x554950=_0x54e40d;this[_0x554950(0x1dd)](this[_0x554950(0x195)][_0x554950(0x1bd)](_0x3d5e3b));});}};m=ee([te(0x0,o[_0x12f82e(0x169)](E))],m);var ie=Object[_0x12f82e(0x20c)],se=Object[_0x12f82e(0x188)],ne=(_0x2f10fc,_0x27c368,_0x3e6147)=>_0x27c368 in _0x2f10fc?ie(_0x2f10fc,_0x27c368,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e6147}):_0x2f10fc[_0x27c368]=_0x3e6147,re=(_0x3c3bc3,_0x50dba5,_0x1a9f1d,_0x42ead9)=>{const _0x1e93df=_0x12f82e;for(var _0x27bc6=_0x42ead9>0x1?void 0x0:_0x42ead9?se(_0x50dba5,_0x1a9f1d):_0x50dba5,_0x581e27=_0x3c3bc3[_0x1e93df(0x196)]-0x1,_0x2f73d4;_0x581e27>=0x0;_0x581e27--)(_0x2f73d4=_0x3c3bc3[_0x581e27])&&(_0x27bc6=_0x2f73d4(_0x27bc6)||_0x27bc6);return _0x27bc6;},N=(_0x2611d9,_0x3ee6ed)=>(_0x46ac15,_0x23ce83)=>_0x3ee6ed(_0x46ac15,_0x23ce83,_0x2611d9),A=(_0x36639a,_0x33cf4d,_0x11e8e7)=>ne(_0x36639a,typeof _0x33cf4d!=_0x12f82e(0x154)?_0x33cf4d+'':_0x33cf4d,_0x11e8e7);const oe=_0x12f82e(0x1f2);exports[_0x12f82e(0x13f)]=class extends o[_0x12f82e(0x13c)]{constructor(_0x33449e=w,_0x19a831,_0x410b5b){const _0x2222e4=_0x12f82e;super(),this[_0x2222e4(0x15f)]=_0x33449e,this[_0x2222e4(0x18e)]=_0x19a831,this[_0x2222e4(0x205)]=_0x410b5b;const {..._0x47a14c}=o[_0x2222e4(0x1e6)]({},w,this[_0x2222e4(0x15f)]);this[_0x2222e4(0x205)][_0x2222e4(0x142)](Q,_0x47a14c);}[_0x12f82e(0x148)](){const _0x1437ba=_0x12f82e;o[_0x1437ba(0x1e2)](this['_injector'],o[_0x1437ba(0x1f1)]([[E],[exports[_0x1437ba(0x166)]],[m],[exports[_0x1437ba(0x186)]]],this[_0x1437ba(0x15f)][_0x1437ba(0x203)])),o['touchDependencies'](this[_0x1437ba(0x18e)],[[m]]);}['onRendered'](){const _0x48f0bd=_0x12f82e;o[_0x48f0bd(0x20d)](this['_injector'],[[exports[_0x48f0bd(0x186)]]]);}},A(exports[_0x12f82e(0x13f)],'type',o[_0x12f82e(0x191)][_0x12f82e(0x204)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports[_0x12f82e(0x13f)]=re([o['DependentOn'](b[_0x12f82e(0x20b)]),N(0x1,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),N(0x2,o['IConfigService'])],exports[_0x12f82e(0x13f)]),exports[_0x12f82e(0x1e9)]=$,exports[_0x12f82e(0x15c)]=E,exports['LiveShareStatus']=u;
1
+ 'use strict';const _0x146de2=_0x4aaf;function _0x4aaf(_0x5d3476,_0x35ad77){_0x5d3476=_0x5d3476-0x6d;const _0x5376c2=_0x5376();let _0x4aafa9=_0x5376c2[_0x5d3476];return _0x4aafa9;}(function(_0x31fb83,_0x5ee9f6){const _0x483a53=_0x4aaf,_0x52e21d=_0x31fb83();while(!![]){try{const _0x521076=parseInt(_0x483a53(0x121))/0x1*(parseInt(_0x483a53(0x11e))/0x2)+parseInt(_0x483a53(0xd4))/0x3+parseInt(_0x483a53(0x10e))/0x4*(parseInt(_0x483a53(0x10d))/0x5)+-parseInt(_0x483a53(0xcd))/0x6*(-parseInt(_0x483a53(0x73))/0x7)+-parseInt(_0x483a53(0x6d))/0x8+-parseInt(_0x483a53(0xcf))/0x9*(parseInt(_0x483a53(0x8d))/0xa)+-parseInt(_0x483a53(0x127))/0xb;if(_0x521076===_0x5ee9f6)break;else _0x52e21d['push'](_0x52e21d['shift']());}catch(_0x55e1ce){_0x52e21d['push'](_0x52e21d['shift']());}}}(_0x5376,0xf105c));var T=Object[_0x146de2(0x76)],U=(_0x52f6e9,_0x366f85,_0x284485)=>_0x366f85 in _0x52f6e9?T(_0x52f6e9,_0x366f85,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x284485}):_0x52f6e9[_0x366f85]=_0x284485,_=(_0x384ddf,_0x531e8b,_0x181d5f)=>U(_0x384ddf,typeof _0x531e8b!=_0x146de2(0xe0)?_0x531e8b+'':_0x531e8b,_0x181d5f);Object[_0x146de2(0x76)](exports,Symbol[_0x146de2(0xd3)],{'value':_0x146de2(0x104)});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:_0x34e755,..._0x4da669}){const _0x42ccd7=_0x146de2,{icon:_0x5d7d04,id:_0x467310,className:_0x35eba6,extend:_0xc968c0,..._0x220fa5}=_0x4da669,_0x146e81=(_0x42ccd7(0xc7)+_0x467310+'\x20'+(_0x35eba6||''))[_0x42ccd7(0x7d)](),_0x5e3b60=v[_0x42ccd7(0x75)]('_'+H());return j(_0x5d7d04,''+_0x467310,{'defIds':_0x5d7d04[_0x42ccd7(0xb4)],'idSuffix':_0x5e3b60[_0x42ccd7(0x106)]},{'ref':_0x34e755,'className':_0x146e81,..._0x220fa5},_0xc968c0);}function j(_0x224df1,_0x3a3aeb,_0x38e188,_0xebc979,_0x4a8308){const _0x1396c1=_0x146de2;return v['createElement'](_0x224df1[_0x1396c1(0x9a)],{'key':_0x3a3aeb,...y(_0x224df1,_0x38e188,_0x4a8308),..._0xebc979},(F(_0x224df1,_0x38e188)['children']||[])[_0x1396c1(0x117)]((_0x148bb8,_0x2fa454)=>j(_0x148bb8,_0x3a3aeb+'-'+_0x224df1[_0x1396c1(0x9a)]+'-'+_0x2fa454,_0x38e188,void 0x0,_0x4a8308)));}function y(_0x13a6de,_0x4ba84d,_0x390193){const _0x5648fa=_0x146de2,_0x1d8893={..._0x13a6de['attrs']};_0x390193!=null&&_0x390193[_0x5648fa(0xae)]&&_0x1d8893['fill']===_0x5648fa(0xae)&&(_0x1d8893[_0x5648fa(0xc8)]=_0x390193[_0x5648fa(0xae)]),_0x13a6de[_0x5648fa(0x9a)]===_0x5648fa(0xde)&&_0x1d8893['id']&&(_0x1d8893['id']=_0x1d8893['id']+_0x4ba84d['idSuffix']),Object[_0x5648fa(0x90)](_0x1d8893)['forEach'](([_0x45ab0c,_0x2fa0c1])=>{const _0x11b120=_0x5648fa;_0x45ab0c===_0x11b120(0xde)&&typeof _0x2fa0c1==_0x11b120(0xda)&&(_0x1d8893[_0x45ab0c]=_0x2fa0c1['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4ba84d[_0x11b120(0x11d)]+')'));});const {defIds:_0x2401f8}=_0x4ba84d;return!_0x2401f8||_0x2401f8['length']===0x0||(_0x13a6de['tag']==='use'&&_0x1d8893[_0x5648fa(0x8b)]&&(_0x1d8893[_0x5648fa(0x8b)]=_0x1d8893[_0x5648fa(0x8b)]+_0x4ba84d[_0x5648fa(0x11d)]),Object[_0x5648fa(0x90)](_0x1d8893)[_0x5648fa(0xab)](([_0xa60488,_0x4c1517])=>{const _0x338c65=_0x5648fa;typeof _0x4c1517==_0x338c65(0xda)&&(_0x1d8893[_0xa60488]=_0x4c1517[_0x338c65(0x102)](/url\(#(.*)\)/,'url(#$1'+_0x4ba84d[_0x338c65(0x11d)]+')'));})),_0x1d8893;}function F(_0x481f07,_0x2edea9){const _0x1c1367=_0x146de2;var _0x19b682;const {defIds:_0x1df126}=_0x2edea9;return!_0x1df126||_0x1df126['length']===0x0?_0x481f07:_0x481f07[_0x1c1367(0x9a)]===_0x1c1367(0x11a)&&((_0x19b682=_0x481f07[_0x1c1367(0xc9)])!=null&&_0x19b682[_0x1c1367(0x126)])?{..._0x481f07,'children':_0x481f07[_0x1c1367(0xc9)]['map'](_0x47eedc=>typeof _0x47eedc[_0x1c1367(0x112)]['id']==_0x1c1367(0xda)&&_0x1df126&&_0x1df126['includes'](_0x47eedc[_0x1c1367(0x112)]['id'])?{..._0x47eedc,'attrs':{..._0x47eedc[_0x1c1367(0x112)],'id':_0x47eedc['attrs']['id']+_0x2edea9[_0x1c1367(0x11d)]}}:_0x47eedc)}:_0x481f07;}function H(){const _0x37667a=_0x146de2;return Math['random']()[_0x37667a(0x8e)](0x24)['substring'](0x2,0x8);}x[_0x146de2(0x13a)]=_0x146de2(0x12e);const V={'tag':_0x146de2(0xa2),'attrs':{'xmlns':_0x146de2(0xe3),'fill':_0x146de2(0xc3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x146de2(0xa7)},'children':[{'tag':_0x146de2(0x91),'attrs':{'fill':_0x146de2(0xb0),'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':_0x146de2(0x91),'attrs':{'fill':_0x146de2(0xb0),'d':_0x146de2(0xfe),'fillRule':_0x146de2(0x87),'clipRule':'evenodd'}}]},R=v[_0x146de2(0xb3)](function(_0xf86e26,_0x301570){const _0x1c8c8b=_0x146de2;return v[_0x1c8c8b(0x8a)](x,Object[_0x1c8c8b(0x80)]({},_0xf86e26,{'id':_0x1c8c8b(0x110),'ref':_0x301570,'icon':V}));});R['displayName']=_0x146de2(0x123);class E extends o[_0x146de2(0x12b)]{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}[_0x146de2(0xff)](_0x4c5e77){const _0x26941b=_0x146de2;return this[_0x26941b(0xc2)]['add'](_0x4c5e77),o[_0x26941b(0x122)](()=>this[_0x26941b(0xc2)][_0x26941b(0x13b)](_0x4c5e77));}[_0x146de2(0xb6)](_0x3979f0){const _0x2aa6b7=_0x146de2;return this[_0x2aa6b7(0x9f)][_0x2aa6b7(0xd9)](_0x3979f0),o[_0x2aa6b7(0x122)](()=>this[_0x2aa6b7(0x9f)]['delete'](_0x3979f0));}[_0x146de2(0xb5)](_0x34032f){const _0x2f89f2=_0x146de2;return this[_0x2f89f2(0xc2)][_0x2f89f2(0x11b)](_0x34032f);}[_0x146de2(0x138)](_0x5de52c){const _0x44299e=_0x146de2;return Array[_0x44299e(0x81)](this[_0x44299e(0x9f)])[_0x44299e(0x117)](_0x2ba9d8=>_0x2ba9d8(_0x5de52c));}}var M=Object[_0x146de2(0xe8)],P=(_0x149566,_0x36095f,_0x1958f3,_0x41b6ce)=>{const _0x9b4230=_0x146de2;for(var _0xa44610=_0x41b6ce>0x1?void 0x0:_0x41b6ce?M(_0x36095f,_0x1958f3):_0x36095f,_0x12cdce=_0x149566[_0x9b4230(0x126)]-0x1,_0x4ae8ec;_0x12cdce>=0x0;_0x12cdce--)(_0x4ae8ec=_0x149566[_0x12cdce])&&(_0xa44610=_0x4ae8ec(_0xa44610)||_0xa44610);return _0xa44610;},S=(_0x39ee51,_0x141642)=>(_0x4b3549,_0x5be8a4)=>_0x141642(_0x4b3549,_0x5be8a4,_0x39ee51);exports[_0x146de2(0xbb)]=class extends o[_0x146de2(0x9b)]{constructor(_0xfee62,_0x456659,_0x28e7e3){const _0x2c1a11=_0x146de2;super(),_(this,'_entities',new Map()),(this[_0x2c1a11(0x9c)]=_0xfee62,this[_0x2c1a11(0xd2)]=_0x456659,this[_0x2c1a11(0x7c)]=_0x28e7e3,this[_0x2c1a11(0x140)]());}async[_0x146de2(0xea)](_0x2f7b55){const _0x3e906c=_0x146de2;return this[_0x3e906c(0x11f)][_0x3e906c(0x11b)](_0x2f7b55)||await this[_0x3e906c(0xef)](_0x2f7b55),this[_0x3e906c(0x11f)][_0x3e906c(0xf0)](_0x2f7b55);}[_0x146de2(0xdb)](_0x2495a5){const _0x40a25f=_0x146de2;var _0x1ba0ed;return(_0x1ba0ed=this[_0x40a25f(0x11f)][_0x40a25f(0xf0)](_0x2495a5))!=null?_0x1ba0ed:null;}[_0x146de2(0x140)](){const _0xdf7677=_0x146de2;this[_0xdf7677(0x9c)][_0xdf7677(0x96)](o['UniverInstanceType'][_0xdf7677(0xaf)])[_0xdf7677(0x136)](I[_0xdf7677(0x101)](this[_0xdf7677(0xa8)]))[_0xdf7677(0x84)](async _0x54f63a=>{const _0x240fdd=_0xdf7677,_0xe9ee3d=_0x54f63a[_0x240fdd(0xec)]();this['_entities'][_0x240fdd(0x11b)](_0xe9ee3d)||this['_startLiveShareCoordinator'](_0xe9ee3d);}),this[_0xdf7677(0x9c)][_0xdf7677(0xad)](o[_0xdf7677(0xbf)][_0xdf7677(0xaf)])[_0xdf7677(0x136)](I[_0xdf7677(0x101)](this[_0xdf7677(0xa8)]))['subscribe'](_0x30e12f=>{const _0x55211a=_0xdf7677,_0x5ac1b5=_0x30e12f[_0x55211a(0xec)](),_0x25190a=this[_0x55211a(0x11f)][_0x55211a(0xf0)](_0x5ac1b5);_0x25190a==null||_0x25190a[_0x55211a(0xf2)]();});}async['_startLiveShareCoordinator'](_0x2bb766){const _0x663060=_0x146de2,_0xb3aeb7=await this[_0x663060(0x7c)][_0x663060(0x7b)](_0x2bb766),_0x5dd7dd=this['_injector'][_0x663060(0xfb)](exports[_0x663060(0x6e)],_0x2bb766,_0xb3aeb7);return _0x5dd7dd[_0x663060(0x141)](),this[_0x663060(0x11f)]['set'](_0x2bb766,_0x5dd7dd),_0x5dd7dd;}},exports[_0x146de2(0xbb)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x146de2(0xb2)](o[_0x146de2(0x137)])),S(0x2,o[_0x146de2(0xb2)](b['CollaborationSessionService']))],exports[_0x146de2(0xbb)]);var u=(_0x470af8=>(_0x470af8[_0x146de2(0x9d)]=_0x146de2(0xac),_0x470af8[_0x146de2(0x114)]=_0x146de2(0x10a),_0x470af8[_0x146de2(0x134)]=_0x146de2(0x135),_0x470af8['NOT_FOLLOWING']='not-following',_0x470af8[_0x146de2(0x111)]=_0x146de2(0xe1),_0x470af8))(u||{});const k=_0x146de2(0x11c),q=0xc8;exports[_0x146de2(0x6e)]=class extends o['RxDisposable']{constructor(_0x27171c,_0x1ad537,_0x461872,_0x21587c,_0x263f73){const _0x44b0af=_0x146de2;super(),_(this,_0x44b0af(0xcb),new O[(_0x44b0af(0x131))](_0x44b0af(0x10a))),_(this,'status$',this[_0x44b0af(0xcb)][_0x44b0af(0xf6)]()),_(this,_0x44b0af(0x140),!0x1),_(this,_0x44b0af(0x77),null),_(this,_0x44b0af(0x88),null),(this['_unitID']=_0x27171c,this[_0x44b0af(0x85)]=_0x1ad537,this[_0x44b0af(0xbc)]=_0x461872,this[_0x44b0af(0x103)]=_0x21587c,this[_0x44b0af(0x12c)]=_0x263f73);}get[_0x146de2(0xc1)](){const _0x4207a7=_0x146de2;return this[_0x4207a7(0xcb)][_0x4207a7(0xf4)]();}[_0x146de2(0xf2)](){const _0x3f8d61=_0x146de2;var _0x46eaff;(_0x46eaff=this[_0x3f8d61(0x77)])==null||_0x46eaff[_0x3f8d61(0xf2)](),this[_0x3f8d61(0xcb)][_0x3f8d61(0xba)](_0x3f8d61(0x10a)),this[_0x3f8d61(0xcb)]['complete']();}[_0x146de2(0xb8)](){const _0x2b9cfe=_0x146de2;return this[_0x2b9cfe(0xc1)];}[_0x146de2(0x141)](){const _0x5442c0=_0x146de2;this['_init']||(this[_0x5442c0(0x140)]=!0x0,this[_0x5442c0(0x85)][_0x5442c0(0xc5)][_0x5442c0(0x136)](I['takeUntil'](this[_0x5442c0(0xa8)]))[_0x5442c0(0x84)](_0x3c7a4a=>{const _0x177dd7=_0x5442c0;switch(_0x3c7a4a){case b[_0x177dd7(0xcc)][_0x177dd7(0x9d)]:this[_0x177dd7(0xc4)]();break;case b[_0x177dd7(0xcc)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x5442c0(0x85)][_0x5442c0(0x72)]['pipe'](I[_0x5442c0(0x101)](this[_0x5442c0(0xa8)]))[_0x5442c0(0x84)](_0x5e0864=>{const _0x52d413=_0x5442c0,{eventID:_0x2d1a95}=_0x5e0864;switch(_0x2d1a95){case d[_0x52d413(0xf1)][_0x52d413(0xa1)]:this['_handleNewHost'](_0x5e0864);break;case d['CollaborationEvent'][_0x52d413(0xe7)]:this[_0x52d413(0xe6)](_0x5e0864);break;case d['CollaborationEvent'][_0x52d413(0xd8)]:this[_0x52d413(0xa5)]();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5e0864);break;}}));}['tryStartPresenting'](){const _0x47e2f1=_0x146de2;this[_0x47e2f1(0x85)]['send']({'eventID':d[_0x47e2f1(0xf1)][_0x47e2f1(0x105)],'data':{'unitID':this[_0x47e2f1(0xe5)],'userID':this['_collabSession'][_0x47e2f1(0xca)]()}},this[_0x47e2f1(0xe5)]);}[_0x146de2(0x97)](){const _0x1ec38e=_0x146de2;this[_0x1ec38e(0xc1)]===_0x1ec38e(0xe1)&&(this['_status$'][_0x1ec38e(0xba)](_0x1ec38e(0x10a)),this['_collabSession'][_0x1ec38e(0x94)]({'eventID':d[_0x1ec38e(0xf1)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1ec38e(0xe5)]}},this['_unitID']));}[_0x146de2(0x71)](){const _0x758bcf=_0x146de2;this[_0x758bcf(0xc1)]==='not-following'&&(this['_status$'][_0x758bcf(0xba)](_0x758bcf(0x135)),this['_startFollowing']());}['stopFollowing'](){const _0x44bd2c=_0x146de2;this[_0x44bd2c(0xc1)]===_0x44bd2c(0x135)&&this['_stopFollowing']();}[_0x146de2(0x120)](_0xce91d0){const _0xb4f4c=_0x146de2,{presenter:_0x213d4c}=_0xce91d0[_0xb4f4c(0xd5)],_0xd8c79=this['_collabSession'][_0xb4f4c(0xca)]();this[_0xb4f4c(0x88)]=_0x213d4c,_0x213d4c===_0xd8c79?(this[_0xb4f4c(0x83)](),this['_startPresenting']()):this[_0xb4f4c(0xc1)]!==_0xb4f4c(0xee)&&(this[_0xb4f4c(0xa6)](),this['_startFollowing']());}[_0x146de2(0xce)](){const _0xa47f58=_0x146de2,_0x12cd2a={'eventID':d[_0xa47f58(0xf1)][_0xa47f58(0x78)]};this[_0xa47f58(0x85)][_0xa47f58(0x94)](_0x12cd2a,this[_0xa47f58(0xe5)]);}[_0x146de2(0xa5)](){const _0x27cb39=_0x146de2;this[_0x27cb39(0x88)]=null,this['_status']!==_0x27cb39(0xe1)&&this[_0x27cb39(0x99)]();}[_0x146de2(0xe9)](_0x5514dd){const _0x3540c4=_0x146de2;if(this[_0x3540c4(0xc1)]===_0x3540c4(0x135)&&this[_0x3540c4(0x88)]===_0x5514dd[_0x3540c4(0xd5)][_0x3540c4(0xeb)]){const _0x51ebfa=d[_0x3540c4(0x74)](_0x5514dd[_0x3540c4(0xd5)])[_0x3540c4(0x8f)][_0x3540c4(0x7e)]()['find'](_0x2a622b=>_0x2a622b['id']===C[_0x3540c4(0x13d)]['id']);if(_0x51ebfa){const _0x512690=_0x51ebfa[_0x3540c4(0x100)][_0x3540c4(0x128)],_0x4ded6d=_0x51ebfa[_0x3540c4(0x100)][_0x3540c4(0x86)]['id'];setTimeout(()=>{const _0x4f162c=_0x3540c4;this[_0x4f162c(0x12c)][_0x4f162c(0xfd)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x512690,'subUnitId':_0x4ded6d},{'fromCollab':!0x0});});}}}[_0x146de2(0xc0)](){const _0x18232c=_0x146de2;this[_0x18232c(0xcb)]['next']('presenting');const _0x45e1a4=new Map(),_0x407a7e=this[_0x18232c(0x77)]=new o[(_0x18232c(0xbe))]();_0x407a7e['add'](o['toDisposable'](()=>{const _0x3e8369=_0x18232c;_0x45e1a4[_0x3e8369(0xab)](_0xcdca93=>_0xcdca93[_0x3e8369(0x139)]()),_0x45e1a4['clear']();})),_0x407a7e[_0x18232c(0xd9)](this[_0x18232c(0x12c)][_0x18232c(0xdd)](_0x3949eb=>{const _0x3cb5f5=_0x18232c;var _0x547d7e;if(_0x3949eb[_0x3cb5f5(0x118)]!==o['CommandType']['OPERATION']||!this[_0x3cb5f5(0x103)][_0x3cb5f5(0xb5)](_0x3949eb['id']))return;const {id:_0x59c107}=_0x3949eb;let _0x34c747;_0x45e1a4['has'](_0x59c107)?_0x34c747=_0x45e1a4[_0x3cb5f5(0xf0)](_0x59c107):(_0x34c747=new O[(_0x3cb5f5(0xbd))](),_0x45e1a4[_0x3cb5f5(0x82)](_0x59c107,_0x34c747),_0x34c747['pipe'](I['throttleTime']((_0x547d7e=this['_configService'][_0x3cb5f5(0x130)](k))!=null?_0x547d7e:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3cb5f5(0x84)](_0x341bac=>{const _0x4a40b1=_0x3cb5f5;this[_0x4a40b1(0x85)][_0x4a40b1(0x94)]({'eventID':d['CollaborationEvent'][_0x4a40b1(0xe7)],'data':{'unitID':this[_0x4a40b1(0xe5)],'operations':{[_0x341bac['id']]:{'id':_0x341bac['id'],'params':JSON[_0x4a40b1(0xa9)](_0x341bac[_0x4a40b1(0x100)])}}}},this['_unitID']);})),_0x34c747[_0x3cb5f5(0xba)](_0x3949eb);})),this[_0x18232c(0x103)]['getInitialStates'](this[_0x18232c(0xe5)])[_0x18232c(0xab)](_0x111f8b=>this[_0x18232c(0x85)][_0x18232c(0x94)]({'eventID':d[_0x18232c(0xf1)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x111f8b['id']]:{'id':_0x111f8b['id'],'params':JSON['stringify'](_0x111f8b[_0x18232c(0x100)])}}}},this[_0x18232c(0xe5)]));}['_stopPresenting'](){const _0x32b682=_0x146de2;var _0x5644ab;this[_0x32b682(0xcb)][_0x32b682(0xba)](_0x32b682(0x10a)),(_0x5644ab=this['_commandDisposable'])==null||_0x5644ab[_0x32b682(0xf2)](),this[_0x32b682(0x77)]=null;}[_0x146de2(0x116)](){const _0x453827=_0x146de2;var _0x255b63;(_0x255b63=this['_commandDisposable'])==null||_0x255b63[_0x453827(0xf2)](),this[_0x453827(0xcb)]['next'](_0x453827(0x135));}['_beIdle'](){const _0x4902d6=_0x146de2;var _0x378a39;this[_0x4902d6(0xcb)][_0x4902d6(0xba)]('idle'),(_0x378a39=this['_commandDisposable'])==null||_0x378a39[_0x4902d6(0xf2)](),this[_0x4902d6(0x77)]=null;}[_0x146de2(0x83)](){const _0x146463=_0x146de2;var _0x36da4e;this[_0x146463(0xcb)][_0x146463(0xba)](_0x146463(0xee)),(_0x36da4e=this[_0x146463(0x77)])==null||_0x36da4e[_0x146463(0xf2)]();}[_0x146de2(0xe6)](_0x4fe118){const _0x29f772=_0x146de2;if([_0x29f772(0xe1),'not-following',_0x29f772(0xac)][_0x29f772(0xdf)](this[_0x29f772(0xc1)])||!_0x4fe118[_0x29f772(0xd5)][_0x29f772(0xe4)]||_0x4fe118['data'][_0x29f772(0xe4)]===this[_0x29f772(0x85)]['getMemberID']())return;this[_0x29f772(0xc1)]==='idle'&&this[_0x29f772(0x116)]();const _0x2ff25e=_0x4fe118[_0x29f772(0xd5)][_0x29f772(0xb1)];Object['values'](_0x2ff25e)[_0x29f772(0xab)](_0x9c1c4d=>{const _0x1c35c0=_0x29f772;this[_0x1c35c0(0x12c)][_0x1c35c0(0xfd)](_0x9c1c4d['id'],_0x9c1c4d[_0x1c35c0(0x100)]?JSON[_0x1c35c0(0x9e)](_0x9c1c4d[_0x1c35c0(0x100)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x48ccf9=_0x146de2;var _0x1718d9;this[_0x48ccf9(0xcb)]['next'](_0x48ccf9(0xac)),(_0x1718d9=this['_commandDisposable'])==null||_0x1718d9['dispose']();}[_0x146de2(0x12a)](){const _0x3fb297=_0x146de2;this[_0x3fb297(0xcb)][_0x3fb297(0xba)](_0x3fb297(0x10a)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o[_0x146de2(0xb2)](E)),S(0x4,o[_0x146de2(0x13e)])],exports[_0x146de2(0x6e)]);function $(){const _0x3bda8f=_0x146de2,_0x2f0e65=p[_0x3bda8f(0xf7)](exports['LiveShareController']),_0x4a1a15=p['useDependency'](o[_0x3bda8f(0xd6)]),_0x5a257c=p[_0x3bda8f(0xd7)](()=>_0x4a1a15['getCurrentTypeOfUnit$'](o[_0x3bda8f(0xbf)][_0x3bda8f(0xaf)]),void 0x0,!0x1,[]),[_0x1dd321,_0x1bc584]=v['useState'](null),[_0x18db90,_0x4e04bd]=v[_0x3bda8f(0xd0)](u[_0x3bda8f(0x114)]),_0x4ca4be=v[_0x3bda8f(0x75)](null);return v[_0x3bda8f(0x142)](()=>(_0x5a257c&&_0x2f0e65[_0x3bda8f(0xea)](_0x5a257c[_0x3bda8f(0xec)]())['then'](_0xfdd285=>{const _0xec746c=_0x3bda8f;_0x1bc584(_0xfdd285),_0x4ca4be['current']=_0xfdd285[_0xec746c(0xa0)]['subscribe'](_0x283e26=>{_0x4e04bd(_0x283e26);});}),()=>{const _0x54e46d=_0x3bda8f;var _0x19ef0c;(_0x19ef0c=_0x4ca4be[_0x54e46d(0x106)])==null||_0x19ef0c[_0x54e46d(0xd1)](),_0x4ca4be['current']=null;}),[_0x5a257c,_0x2f0e65]),_0x1dd321?l[_0x3bda8f(0x98)](f['Dropdown'],{'align':'end','disabled':_0x18db90===u[_0x3bda8f(0x9d)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](W,{'status':_0x18db90,'coordinator':_0x1dd321}),'children':l['jsx'](_0x3bda8f(0xf5),{'className':f[_0x3bda8f(0x6f)](_0x3bda8f(0xfc),{'univer-cursor-not-allowed':_0x18db90===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x18db90!==u[_0x3bda8f(0x9d)]}),'type':'button','children':l[_0x3bda8f(0x98)](R,{'className':_0x3bda8f(0x7a)})})}):null;}function W(_0x460dae){const _0xaabf42=_0x146de2,{status:_0x301960,coordinator:_0x5c5714}=_0x460dae;switch(_0x301960){case u[_0xaabf42(0x114)]:return l[_0xaabf42(0x98)](G,{'coordinator':_0x5c5714});case u[_0xaabf42(0x134)]:return l[_0xaabf42(0x98)](B,{'coordinator':_0x5c5714});case u['NOT_FOLLOWING']:return l[_0xaabf42(0x98)](Y,{'coordinator':_0x5c5714});case u[_0xaabf42(0x9d)]:return l[_0xaabf42(0x98)](J,{});case u[_0xaabf42(0x111)]:return l[_0xaabf42(0x98)](Z,{'coordinator':_0x5c5714});default:return null;}}function G(_0x3cf337){const _0x2e0aba=_0x146de2,{coordinator:_0x3d9ec6}=_0x3cf337;return l[_0x2e0aba(0x125)](l[_0x2e0aba(0x132)],{'children':[l[_0x2e0aba(0x98)](_0x2e0aba(0xa4),{'className':_0x2e0aba(0x12f),'children':'Present\x20this\x20document'}),l[_0x2e0aba(0x98)](f[_0x2e0aba(0xf9)],{'onClick':()=>_0x3d9ec6[_0x2e0aba(0xb7)](),'children':_0x2e0aba(0x109)})]});}function B(_0x45ec86){const _0x33980c=_0x146de2,{coordinator:_0x589665}=_0x45ec86;return l[_0x33980c(0x125)](l['Fragment'],{'children':[l[_0x33980c(0x98)]('div',{'className':_0x33980c(0x12f),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f[_0x33980c(0xf9)],{'onClick':()=>_0x589665['stopFollowing'](),'children':_0x33980c(0xb9)})]});}function Y(_0x4153b4){const _0x492fa3=_0x146de2,{coordinator:_0x71ec41}=_0x4153b4;return l[_0x492fa3(0x125)](l[_0x492fa3(0x132)],{'children':[l[_0x492fa3(0x98)](_0x492fa3(0xa4),{'className':_0x492fa3(0x12f),'children':_0x492fa3(0xc6)}),l['jsx'](f[_0x492fa3(0xf9)],{'variant':'text','onClick':()=>_0x71ec41[_0x492fa3(0x71)](),'children':_0x492fa3(0x13f)})]});}function Z(_0x2061f7){const _0x38486e=_0x146de2,{coordinator:_0x5ebfc3}=_0x2061f7;return l[_0x38486e(0x125)](l[_0x38486e(0x132)],{'children':[l[_0x38486e(0x98)]('div',{'className':_0x38486e(0x12f),'children':_0x38486e(0x133)}),l[_0x38486e(0x98)](f[_0x38486e(0xf9)],{'variant':_0x38486e(0x113),'onClick':()=>_0x5ebfc3[_0x38486e(0x97)](),'children':_0x38486e(0xaa)})]});}function J(){const _0x3f5bff=_0x146de2;return l[_0x3f5bff(0x98)](l[_0x3f5bff(0x132)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x146de2(0xe8)],z=(_0x127cdb,_0x45ffaa,_0x19c527,_0xf723df)=>{for(var _0x5780c5=_0xf723df>0x1?void 0x0:_0xf723df?K(_0x45ffaa,_0x19c527):_0x45ffaa,_0x5baa74=_0x127cdb['length']-0x1,_0x235dc6;_0x5baa74>=0x0;_0x5baa74--)(_0x235dc6=_0x127cdb[_0x5baa74])&&(_0x5780c5=_0x235dc6(_0x5780c5)||_0x5780c5);return _0x5780c5;},L=(_0xf1afd0,_0x36f6de)=>(_0x2c0e1a,_0x11f536)=>_0x36f6de(_0x2c0e1a,_0x11f536,_0xf1afd0);exports['DesktopLiveShareController']=class extends o[_0x146de2(0x12b)]{constructor(_0x91b287,_0x4a54df){const _0x552749=_0x146de2;super(),this[_0x552749(0xd2)]=_0x91b287,this['_uiPartsService']=_0x4a54df,this[_0x552749(0xdc)]();}['_mountLiveShare'](){const _0x381622=_0x146de2;this[_0x381622(0x70)](this[_0x381622(0xf3)][_0x381622(0x10f)](p[_0x381622(0x79)][_0x381622(0x92)],()=>p[_0x381622(0x13c)]($,this[_0x381622(0xd2)])));}},exports[_0x146de2(0xf8)]=z([L(0x0,o[_0x146de2(0xb2)](o[_0x146de2(0x137)])),L(0x1,p[_0x146de2(0xe2)])],exports[_0x146de2(0xf8)]);const Q='live-share.config',w={};var X=Object[_0x146de2(0xe8)],ee=(_0x3512d6,_0x3b1654,_0x8ebb0a,_0x15a270)=>{for(var _0x5bc4e7=_0x15a270>0x1?void 0x0:_0x15a270?X(_0x3b1654,_0x8ebb0a):_0x3b1654,_0xf1d583=_0x3512d6['length']-0x1,_0x37e892;_0xf1d583>=0x0;_0xf1d583--)(_0x37e892=_0x3512d6[_0xf1d583])&&(_0x5bc4e7=_0x37e892(_0x5bc4e7)||_0x5bc4e7);return _0x5bc4e7;},te=(_0x8afd3a,_0x4002c5)=>(_0x12a391,_0x123a25)=>_0x4002c5(_0x12a391,_0x123a25,_0x8afd3a);let m=class extends o[_0x146de2(0x12b)]{constructor(_0x348c07){const _0x4c2bfd=_0x146de2;super(),this[_0x4c2bfd(0x103)]=_0x348c07,this['_init']();}[_0x146de2(0x140)](){const _0x503166=_0x146de2;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x503166(0x7f)]['id']]['forEach'](_0x59a074=>{const _0x18d7dd=_0x503166;this[_0x18d7dd(0x70)](this[_0x18d7dd(0x103)]['registerSharedOperation'](_0x59a074));});}};function _0x5376(){const _0x28c44f=['string','getLiveShareCoordinatorSync','_mountLiveShare','onCommandExecuted','mask','includes','symbol','presenting','IUIPartsService','http://www.w3.org/2000/svg','presenter','_unitID','_handleOperation','LIVESHARE_OPERATION','getOwnPropertyDescriptor','_handleNewChangeSets','getLiveShareCoordinator','memberID','getUnitId','setConfig','not-following','_startLiveShareCoordinator','get','CollaborationEvent','dispose','_uiPartsService','getValue','button','asObservable','useDependency','DesktopLiveShareController','Button','UniverLiveSharePlugin','createInstance','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','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','registerSharedOperation','params','takeUntil','replace','_liveShareService','Module','LIVESHARE_REQUEST_HOST','current','registerDependencies','merge','Start','idle','UNIVER_UNKNOWN','UNIVER_LIVE_SHARE_PLUGIN','3481080OxVIKV','4WvXHnr','registerComponent','live-share-icon','PRESENTING','attrs','default','IDLE','UniverCollaborationClientPlugin','_startFollowing','map','type','IConfigService','defs','has','SAME_OPERATION_SHARE_INTERVAL','idSuffix','1063690DSeeJo','_entities','_handleNewHost','3blLIDq','toDisposable','LiveShareIcon','onStarting','jsxs','length','12107744lhwAhf','unitId','touchDependencies','_handleOnline','Disposable','_commandService','_config','UniverIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','getConfig','BehaviorSubject','Fragment','You\x27re\x20presenting\x20the\x20document','FOLLOWING','following','pipe','Injector','getInitialStates','complete','displayName','delete','connectInjector','InsertSheetMutation','ICommandService','Start\x20following','_init','init','useEffect','4728576jKvxOv','LiveShareCoordinator','clsx','disposeWithMe','startFollowing','event$','56YIxIsS','parseProtocolChangeset','useRef','defineProperty','_commandDisposable','LIVESHARE_FETCH_OPERATIONS','BuiltInUIPart','univer-size-4','requireSession','_collabSessionService','trim','reverse','SetWorksheetActiveOperation','assign','from','set','_stopFollowing','subscribe','_collabSession','sheet','evenodd','_presenter','onRendered','createElement','xlink:href','override','14527010Ssiree','toString','mutations','entries','path','HEADER_MENU','mergeOverrideWithDependencies','send','DependentOn','getTypeOfUnitAdded$','stopPresenting','jsx','_beIdle','tag','RxDisposable','_univerInstanceService','OFFLINE','parse','_reporters','status$','LIVESHARE_NEW_HOST','svg','LiveShareStatus','div','_handleTerminate','_stopPresenting','1em','dispose$','stringify','Stop\x20presenting','forEach','offline','getTypeOfUnitDisposed$','colorChannel1','UNIVER_SHEET','currentColor','operations','Inject','forwardRef','defIds','shouldShareOperation','registerInitialStateReporter','tryStartPresenting','getStatus','Stop\x20following','next','LiveShareController','_configService','Subject','DisposableCollection','UniverInstanceType','_startPresenting','_status','_sharedOperations','none','_handleOffline','sessionStatus$','You\x27re\x20not\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','fill','children','getMemberID','_status$','SessionStatus','1370934ToPsLk','_fetchOperations','9PGNzOH','useState','unsubscribe','_injector','toStringTag','36126MnJYzn','data','IUniverInstanceService','useObservable','LIVESHARE_TERMINATE','add'];_0x5376=function(){return _0x28c44f;};return _0x5376();}m=ee([te(0x0,o[_0x146de2(0xb2)](E))],m);var ie=Object[_0x146de2(0x76)],se=Object[_0x146de2(0xe8)],ne=(_0x317205,_0x535483,_0x1b93c9)=>_0x535483 in _0x317205?ie(_0x317205,_0x535483,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b93c9}):_0x317205[_0x535483]=_0x1b93c9,re=(_0x39be84,_0x410db4,_0x4c4e74,_0x4f96d5)=>{for(var _0x17383c=_0x4f96d5>0x1?void 0x0:_0x4f96d5?se(_0x410db4,_0x4c4e74):_0x410db4,_0x31e2e4=_0x39be84['length']-0x1,_0x5e63cf;_0x31e2e4>=0x0;_0x31e2e4--)(_0x5e63cf=_0x39be84[_0x31e2e4])&&(_0x17383c=_0x5e63cf(_0x17383c)||_0x17383c);return _0x17383c;},N=(_0x3e86ad,_0x4e4683)=>(_0x31bf60,_0x835dd4)=>_0x4e4683(_0x31bf60,_0x835dd4,_0x3e86ad),A=(_0x25f980,_0x14bf26,_0x514f04)=>ne(_0x25f980,typeof _0x14bf26!=_0x146de2(0xe0)?_0x14bf26+'':_0x14bf26,_0x514f04);const oe=_0x146de2(0x10c);exports[_0x146de2(0xfa)]=class extends o['Plugin']{constructor(_0x3c3f12=w,_0x52e1ce,_0x2c8805){const _0x102121=_0x146de2;super(),this[_0x102121(0x12d)]=_0x3c3f12,this[_0x102121(0xd2)]=_0x52e1ce,this[_0x102121(0xbc)]=_0x2c8805;const {..._0x5dd218}=o[_0x102121(0x108)]({},w,this[_0x102121(0x12d)]);this[_0x102121(0xbc)][_0x102121(0xed)](Q,_0x5dd218);}[_0x146de2(0x124)](){const _0x36c6bf=_0x146de2;o[_0x36c6bf(0x107)](this[_0x36c6bf(0xd2)],o[_0x36c6bf(0x93)]([[E],[exports['LiveShareController']],[m],[exports[_0x36c6bf(0xf8)]]],this['_config'][_0x36c6bf(0x8c)])),o[_0x36c6bf(0x129)](this[_0x36c6bf(0xd2)],[[m]]);}[_0x146de2(0x89)](){const _0x43bfbb=_0x146de2;o[_0x43bfbb(0x129)](this[_0x43bfbb(0xd2)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x146de2(0xfa)],_0x146de2(0x118),o['UniverInstanceType'][_0x146de2(0x10b)]),A(exports[_0x146de2(0xfa)],'pluginName',oe),exports[_0x146de2(0xfa)]=re([o[_0x146de2(0x95)](b[_0x146de2(0x115)]),N(0x1,o[_0x146de2(0xb2)](o['Injector'])),N(0x2,o[_0x146de2(0x119)])],exports[_0x146de2(0xfa)]),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x146de2(0xa3)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x558774=_0x4ed5;(function(_0x1b1696,_0x333ae4){const _0x376567=_0x4ed5,_0x55c329=_0x1b1696();while(!![]){try{const _0x5902e4=-parseInt(_0x376567(0x130))/0x1+-parseInt(_0x376567(0x12d))/0x2*(-parseInt(_0x376567(0x135))/0x3)+-parseInt(_0x376567(0x131))/0x4+parseInt(_0x376567(0x11c))/0x5+-parseInt(_0x376567(0x138))/0x6*(-parseInt(_0x376567(0x123))/0x7)+-parseInt(_0x376567(0x134))/0x8*(-parseInt(_0x376567(0x11f))/0x9)+parseInt(_0x376567(0x127))/0xa;if(_0x5902e4===_0x333ae4)break;else _0x55c329['push'](_0x55c329['shift']());}catch(_0x249a4d){_0x55c329['push'](_0x55c329['shift']());}}}(_0x3f1e,0xe2d5f));function _0x4ed5(_0x3bed8d,_0x41cc61){_0x3bed8d=_0x3bed8d-0x119;const _0x3f1eae=_0x3f1e();let _0x4ed518=_0x3f1eae[_0x3bed8d];return _0x4ed518;}import{LiveShareController as _0x706cbc,LiveShareStatus as _0x1f386b}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x560fed}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xadfe7e}from'@univerjs/sheets';import{SetScrollOperation as _0x455144}from'@univerjs/sheets-ui';import{FRange as _0x223b0a}from'@univerjs/sheets/facade';import{FUniver as _0x554deb,FEnum as _0x220dfa}from'@univerjs/core/facade';class I extends _0x223b0a{['_initialize'](_0xbc4cb0,_0x3a9d6b,_0x1be57c,_0x307268,_0xf03a1b){const _0x1f88e5=_0x4ed5,_0x5995b6=_0xbc4cb0[_0x1f88e5(0x11a)](_0x706cbc),_0x5b06f0=_0xbc4cb0[_0x1f88e5(0x11a)](_0x560fed),_0x47fba3=_0x3a9d6b['getUnitId'](),_0x3b820a=_0x3a9d6b[_0x1f88e5(0x11d)](),_0x55b194=_0x5995b6['getLiveShareCoordinatorSync'](_0x47fba3);(_0x55b194==null?void 0x0:_0x55b194['getStatus']())!==_0x1f386b[_0x1f88e5(0x139)]||(_0x1be57c[_0x1f88e5(0x137)]()!==_0x3b820a['getSheetId']()&&this[_0x1f88e5(0x12b)][_0x1f88e5(0x13a)](_0xadfe7e['id'],{'unitId':_0x47fba3,'subUnitId':_0x1be57c[_0x1f88e5(0x137)]()}),!_0x5b06f0[_0x1f88e5(0x121)](_0x47fba3))||_0xf03a1b[_0x1f88e5(0x11e)](_0x455144['id'],{'unitId':_0x3a9d6b[_0x1f88e5(0x124)](),'sheetId':_0x1be57c[_0x1f88e5(0x137)](),'sheetViewStartRow':_0x307268[_0x1f88e5(0x129)],'sheetViewStartColumn':_0x307268[_0x1f88e5(0x11b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x223b0a['extend'](I);class m extends _0x554deb{['getLiveShareStatus'](){const _0x41ea92=_0x4ed5;var _0x787a74,_0x4815ef;const _0x3b1688=this[_0x41ea92(0x13b)][_0x41ea92(0x11a)](_0x706cbc),_0x385229=(_0x787a74=this['getActiveWorkbook']())==null?void 0x0:_0x787a74['getId']();if(!_0x385229)throw new Error(_0x41ea92(0x12f));const _0x57b783=_0x3b1688[_0x41ea92(0x128)](_0x385229);return(_0x4815ef=_0x57b783==null?void 0x0:_0x57b783[_0x41ea92(0x136)]())!=null?_0x4815ef:_0x1f386b[_0x41ea92(0x120)];}[_0x558774(0x122)](){const _0x5acae0=_0x558774;var _0x30b452;const _0x56e363=this[_0x5acae0(0x13b)][_0x5acae0(0x11a)](_0x706cbc),_0x61f98e=(_0x30b452=this[_0x5acae0(0x132)]())==null?void 0x0:_0x30b452[_0x5acae0(0x133)]();if(!_0x61f98e)throw new Error(_0x5acae0(0x12f));const _0x39a64b=_0x56e363['getLiveShareCoordinatorSync'](_0x61f98e);if(!_0x39a64b)throw new Error(_0x5acae0(0x12a));_0x39a64b['startFollowing']();}[_0x558774(0x126)](){const _0x5d7112=_0x558774;var _0x1c293d;const _0x3a7381=this[_0x5d7112(0x13b)]['get'](_0x706cbc),_0x46c08a=(_0x1c293d=this[_0x5d7112(0x132)]())==null?void 0x0:_0x1c293d[_0x5d7112(0x133)]();if(!_0x46c08a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4b65e9=_0x3a7381[_0x5d7112(0x128)](_0x46c08a);if(!_0x4b65e9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b65e9[_0x5d7112(0x126)]();}[_0x558774(0x12e)](){const _0x10e387=_0x558774;var _0x97a9bf;const _0x2f517e=this[_0x10e387(0x13b)][_0x10e387(0x11a)](_0x706cbc),_0x391e2c=(_0x97a9bf=this[_0x10e387(0x132)]())==null?void 0x0:_0x97a9bf['getId']();if(!_0x391e2c)throw new Error(_0x10e387(0x12f));const _0x311fe2=_0x2f517e[_0x10e387(0x128)](_0x391e2c);if(!_0x311fe2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x311fe2['tryStartPresenting']();}[_0x558774(0x119)](){const _0x10cbcf=_0x558774;var _0xbe0776;const _0x2a000a=this[_0x10cbcf(0x13b)][_0x10cbcf(0x11a)](_0x706cbc),_0x5dd0f8=(_0xbe0776=this[_0x10cbcf(0x132)]())==null?void 0x0:_0xbe0776[_0x10cbcf(0x133)]();if(!_0x5dd0f8)throw new Error(_0x10cbcf(0x12f));const _0x404381=_0x2a000a[_0x10cbcf(0x128)](_0x5dd0f8);if(!_0x404381)throw new Error(_0x10cbcf(0x12a));_0x404381[_0x10cbcf(0x119)]();}}_0x554deb[_0x558774(0x12c)](m);function _0x3f1e(){const _0x3851ec=['PRESENTING','executeCommand','_injector','stopPresenting','get','startColumn','7696885WxekRx','getActiveSheet','syncExecuteCommand','225DkzKsC','IDLE','getRenderById','startFollowing','59885XShwBl','getUnitId','LiveShareStatusEnum','stopFollowing','8905060JMVakH','getLiveShareCoordinatorSync','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','extend','63744fvqYsa','startPresenting','No\x20active\x20workbook\x20found.','892270ylUeOq','6239960QoLJTC','getActiveWorkbook','getId','271144flcHhf','9nPVPZR','getStatus','getSheetId','6EVLvcK'];_0x3f1e=function(){return _0x3851ec;};return _0x3f1e();}class C extends _0x220dfa{get[_0x558774(0x125)](){return _0x1f386b;}}_0x220dfa[_0x558774(0x12c)](C);
1
+ const _0x15df1a=_0x4ee7;(function(_0x11bebc,_0x5d49bc){const _0x2d6039=_0x4ee7,_0x2f4f3a=_0x11bebc();while(!![]){try{const _0x1341a0=-parseInt(_0x2d6039(0xf6))/0x1*(-parseInt(_0x2d6039(0xed))/0x2)+-parseInt(_0x2d6039(0xf7))/0x3*(parseInt(_0x2d6039(0xfb))/0x4)+-parseInt(_0x2d6039(0x102))/0x5+-parseInt(_0x2d6039(0xfd))/0x6*(-parseInt(_0x2d6039(0x101))/0x7)+parseInt(_0x2d6039(0xf8))/0x8+-parseInt(_0x2d6039(0xf2))/0x9*(parseInt(_0x2d6039(0xf1))/0xa)+-parseInt(_0x2d6039(0xe6))/0xb;if(_0x1341a0===_0x5d49bc)break;else _0x2f4f3a['push'](_0x2f4f3a['shift']());}catch(_0x4b1da3){_0x2f4f3a['push'](_0x2f4f3a['shift']());}}}(_0x2b9d,0x5aa36));import{LiveShareController as _0x5786b5,LiveShareStatus as _0x58edfc}from'@univerjs-pro/live-share';function _0x4ee7(_0x2fdc37,_0x1b63a1){_0x2fdc37=_0x2fdc37-0xe5;const _0x2b9dab=_0x2b9d();let _0x4ee7ab=_0x2b9dab[_0x2fdc37];return _0x4ee7ab;}import{IRenderManagerService as _0x84d76}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x498c84}from'@univerjs/sheets';import{SetScrollOperation as _0x12a682}from'@univerjs/sheets-ui';import{FRange as _0x42ea79}from'@univerjs/sheets/facade';import{FUniver as _0x25caba,FEnum as _0x51510a}from'@univerjs/core/facade';class I extends _0x42ea79{[_0x15df1a(0xf4)](_0x388aa5,_0x46b2c6,_0x20ecc1,_0x5bf515,_0x10c7bd){const _0x3fb127=_0x15df1a,_0x4d937f=_0x388aa5['get'](_0x5786b5),_0x204a05=_0x388aa5[_0x3fb127(0x108)](_0x84d76),_0x5d51b2=_0x46b2c6[_0x3fb127(0xef)](),_0x9a40d0=_0x46b2c6['getActiveSheet'](),_0x5a2913=_0x4d937f[_0x3fb127(0xe9)](_0x5d51b2);(_0x5a2913==null?void 0x0:_0x5a2913[_0x3fb127(0xfa)]())!==_0x58edfc[_0x3fb127(0xf9)]||(_0x20ecc1[_0x3fb127(0xee)]()!==_0x9a40d0[_0x3fb127(0xee)]()&&this[_0x3fb127(0xf5)][_0x3fb127(0xfc)](_0x498c84['id'],{'unitId':_0x5d51b2,'subUnitId':_0x20ecc1['getSheetId']()}),!_0x204a05[_0x3fb127(0x107)](_0x5d51b2))||_0x10c7bd[_0x3fb127(0xfe)](_0x12a682['id'],{'unitId':_0x46b2c6[_0x3fb127(0xef)](),'sheetId':_0x20ecc1[_0x3fb127(0xee)](),'sheetViewStartRow':_0x5bf515[_0x3fb127(0xf0)],'sheetViewStartColumn':_0x5bf515[_0x3fb127(0xe8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x2b9d(){const _0x1c89f4=['getLiveShareCoordinatorSync','startFollowing','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1389038ZEcSdo','getSheetId','getUnitId','startRow','1030YzCnPL','23049WXQRvH','_injector','_initialize','_commandService','1KGyuUL','42KOOOIo','5158840DqCruh','PRESENTING','getStatus','13316ucTOwd','executeCommand','5478ijuazh','syncExecuteCommand','extend','getId','1484GRfJuV','877220nxUoee','LiveShareStatusEnum','tryStartPresenting','stopFollowing','stopPresenting','getRenderById','get','getActiveWorkbook','7434273zYoibZ','getLiveShareStatus','startColumn'];_0x2b9d=function(){return _0x1c89f4;};return _0x2b9d();}_0x42ea79['extend'](I);class m extends _0x25caba{[_0x15df1a(0xe7)](){const _0x8fa4d1=_0x15df1a;var _0x2af9b3,_0x44d587;const _0x5c6cdb=this[_0x8fa4d1(0xf3)][_0x8fa4d1(0x108)](_0x5786b5),_0x29c6ee=(_0x2af9b3=this[_0x8fa4d1(0xe5)]())==null?void 0x0:_0x2af9b3[_0x8fa4d1(0x100)]();if(!_0x29c6ee)throw new Error(_0x8fa4d1(0xeb));const _0x5e22fe=_0x5c6cdb[_0x8fa4d1(0xe9)](_0x29c6ee);return(_0x44d587=_0x5e22fe==null?void 0x0:_0x5e22fe['getStatus']())!=null?_0x44d587:_0x58edfc['IDLE'];}[_0x15df1a(0xea)](){const _0x3fe74f=_0x15df1a;var _0x5295ed;const _0x4a2468=this[_0x3fe74f(0xf3)]['get'](_0x5786b5),_0x5f7c63=(_0x5295ed=this[_0x3fe74f(0xe5)]())==null?void 0x0:_0x5295ed[_0x3fe74f(0x100)]();if(!_0x5f7c63)throw new Error(_0x3fe74f(0xeb));const _0x19f351=_0x4a2468[_0x3fe74f(0xe9)](_0x5f7c63);if(!_0x19f351)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19f351[_0x3fe74f(0xea)]();}[_0x15df1a(0x105)](){const _0x274919=_0x15df1a;var _0x128ca3;const _0x78379e=this[_0x274919(0xf3)]['get'](_0x5786b5),_0x2846f8=(_0x128ca3=this['getActiveWorkbook']())==null?void 0x0:_0x128ca3[_0x274919(0x100)]();if(!_0x2846f8)throw new Error(_0x274919(0xeb));const _0x369fd7=_0x78379e[_0x274919(0xe9)](_0x2846f8);if(!_0x369fd7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x369fd7[_0x274919(0x105)]();}['startPresenting'](){const _0x3d078b=_0x15df1a;var _0x425dd3;const _0x104bc4=this[_0x3d078b(0xf3)][_0x3d078b(0x108)](_0x5786b5),_0x4c2eba=(_0x425dd3=this[_0x3d078b(0xe5)]())==null?void 0x0:_0x425dd3[_0x3d078b(0x100)]();if(!_0x4c2eba)throw new Error(_0x3d078b(0xeb));const _0x21f1f1=_0x104bc4[_0x3d078b(0xe9)](_0x4c2eba);if(!_0x21f1f1)throw new Error(_0x3d078b(0xec));_0x21f1f1[_0x3d078b(0x104)]();}['stopPresenting'](){const _0x442797=_0x15df1a;var _0x4b5262;const _0xda59a5=this[_0x442797(0xf3)][_0x442797(0x108)](_0x5786b5),_0x445d1f=(_0x4b5262=this[_0x442797(0xe5)]())==null?void 0x0:_0x4b5262[_0x442797(0x100)]();if(!_0x445d1f)throw new Error(_0x442797(0xeb));const _0x351499=_0xda59a5[_0x442797(0xe9)](_0x445d1f);if(!_0x351499)throw new Error(_0x442797(0xec));_0x351499[_0x442797(0x106)]();}}_0x25caba['extend'](m);class C extends _0x51510a{get[_0x15df1a(0x103)](){return _0x58edfc;}}_0x51510a[_0x15df1a(0xff)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x105b4f=_0x2cf0;(function(_0x42ec40,_0x164217){const _0x31c271=_0x2cf0,_0x2798aa=_0x42ec40();while(!![]){try{const _0x4fd234=parseInt(_0x31c271(0x1c0))/0x1+-parseInt(_0x31c271(0x21e))/0x2+parseInt(_0x31c271(0x1a3))/0x3*(parseInt(_0x31c271(0x1c3))/0x4)+parseInt(_0x31c271(0x1cd))/0x5*(-parseInt(_0x31c271(0x1a8))/0x6)+-parseInt(_0x31c271(0x238))/0x7*(parseInt(_0x31c271(0x1f3))/0x8)+parseInt(_0x31c271(0x1fe))/0x9+-parseInt(_0x31c271(0x1ec))/0xa*(-parseInt(_0x31c271(0x236))/0xb);if(_0x4fd234===_0x164217)break;else _0x2798aa['push'](_0x2798aa['shift']());}catch(_0x57a09e){_0x2798aa['push'](_0x2798aa['shift']());}}}(_0x4bc3,0xcade1));var J=Object[_0x105b4f(0x1b0)],K=(_0x14a8e0,_0x590774,_0x36d8b0)=>_0x590774 in _0x14a8e0?J(_0x14a8e0,_0x590774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d8b0}):_0x14a8e0[_0x590774]=_0x36d8b0,u=(_0x15841b,_0xf8d9e0,_0x22c4e5)=>K(_0x15841b,typeof _0xf8d9e0!=_0x105b4f(0x208)?_0xf8d9e0+'':_0xf8d9e0,_0x22c4e5);import{Disposable as _0x19c5fe,toDisposable as _0x2f41f0,IUniverInstanceService as _0x49d2d0,Inject as _0xb4de5c,Injector as _0x39091f,IConfigService as _0x162c40,ICommandService as _0x3e5399,RxDisposable as _0x34eb50,UniverInstanceType as _0x122c76,DisposableCollection as _0x1ca7f7,CommandType as _0x2379b5,DependentOn as _0x2510ce,Plugin as _0x1ec157,merge as _0x2a4c60,registerDependencies as _0x47fa09,mergeOverrideWithDependencies as _0x37eaec,touchDependencies as _0x2a81f9}from'@univerjs/core';import{useDependency as _0x3284dd,useObservable as _0x36dee3,IUIPartsService as _0x1cb32c,BuiltInUIPart as _0x2d952e,connectInjector as _0x5cc7c1}from'@univerjs/ui';import{jsx as _0x46e223,jsxs as _0x539ff2,Fragment as _0x46e9aa}from'react/jsx-runtime';import{Dropdown as _0x26b96d,clsx as _0x3c8e64,Button as _0x21597a}from'@univerjs/design';import{useRef as _0xf38a0d,createElement as _0x2c90b5,forwardRef as _0x4e5534,useState as _0x4e7da4,useEffect as _0x5d80fb}from'react';import{CollaborationEvent as _0x564ee3,parseProtocolChangeset as _0x40078c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa11808,SessionStatus as _0x155833,UniverCollaborationClientPlugin as _0x16c8c0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xd8595d,SetWorksheetActiveOperation as _0x2e64c1}from'@univerjs/sheets';import{BehaviorSubject as _0x2fdabf,Subject as _0x415a69}from'rxjs';import{takeUntil as _0x56a21e,throttleTime as _0x2c6eb0}from'rxjs/operators';import{SetZoomRatioOperation as _0xba6ce1,SetScrollOperation as _0x105dbb}from'@univerjs/sheets-ui';function k({ref:_0x19be25,..._0x3012e5}){const _0x3b9e35=_0x105b4f,{icon:_0x17a20b,id:_0x550ba1,className:_0x7bb1a8,extend:_0x1882b2,..._0x27c232}=_0x3012e5,_0x1c5a00=('univerjs-icon\x20univerjs-icon-'+_0x550ba1+'\x20'+(_0x7bb1a8||''))['trim'](),_0x1c2479=_0xf38a0d('_'+Oe());return G(_0x17a20b,''+_0x550ba1,{'defIds':_0x17a20b[_0x3b9e35(0x21a)],'idSuffix':_0x1c2479['current']},{'ref':_0x19be25,'className':_0x1c5a00,..._0x27c232},_0x1882b2);}function G(_0x21c71b,_0x3db89a,_0x46eea3,_0xd75d4d,_0x3dbb56){const _0x16fb68=_0x105b4f;return _0x2c90b5(_0x21c71b['tag'],{'key':_0x3db89a,...be(_0x21c71b,_0x46eea3,_0x3dbb56),..._0xd75d4d},(Ee(_0x21c71b,_0x46eea3)[_0x16fb68(0x220)]||[])[_0x16fb68(0x20c)]((_0x52c4db,_0xf6c6bc)=>G(_0x52c4db,_0x3db89a+'-'+_0x21c71b[_0x16fb68(0x214)]+'-'+_0xf6c6bc,_0x46eea3,void 0x0,_0x3dbb56)));}function be(_0x4835e8,_0x49aeef,_0x341a92){const _0x230566=_0x105b4f,_0xc3ac35={..._0x4835e8[_0x230566(0x200)]};_0x341a92!=null&&_0x341a92[_0x230566(0x1de)]&&_0xc3ac35[_0x230566(0x1f8)]===_0x230566(0x1de)&&(_0xc3ac35[_0x230566(0x1f8)]=_0x341a92[_0x230566(0x1de)]),_0x4835e8[_0x230566(0x214)]===_0x230566(0x1b4)&&_0xc3ac35['id']&&(_0xc3ac35['id']=_0xc3ac35['id']+_0x49aeef[_0x230566(0x22c)]),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0x5889e0,_0x26227b])=>{const _0xed9923=_0x230566;_0x5889e0===_0xed9923(0x1b4)&&typeof _0x26227b==_0xed9923(0x1d5)&&(_0xc3ac35[_0x5889e0]=_0x26227b[_0xed9923(0x22d)](/url\(#(.*)\)/,_0xed9923(0x1af)+_0x49aeef[_0xed9923(0x22c)]+')'));});const {defIds:_0x5adcf5}=_0x49aeef;return!_0x5adcf5||_0x5adcf5[_0x230566(0x1c4)]===0x0||(_0x4835e8[_0x230566(0x214)]===_0x230566(0x1e3)&&_0xc3ac35[_0x230566(0x231)]&&(_0xc3ac35['xlink:href']=_0xc3ac35[_0x230566(0x231)]+_0x49aeef['idSuffix']),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0xde30ef,_0x589144])=>{const _0xb27482=_0x230566;typeof _0x589144==_0xb27482(0x1d5)&&(_0xc3ac35[_0xde30ef]=_0x589144[_0xb27482(0x22d)](/url\(#(.*)\)/,'url(#$1'+_0x49aeef[_0xb27482(0x22c)]+')'));})),_0xc3ac35;}function Ee(_0x37eaba,_0x32f198){const _0x2e155c=_0x105b4f;var _0x234cb;const {defIds:_0x475cfd}=_0x32f198;return!_0x475cfd||_0x475cfd[_0x2e155c(0x1c4)]===0x0?_0x37eaba:_0x37eaba[_0x2e155c(0x214)]===_0x2e155c(0x1f4)&&((_0x234cb=_0x37eaba[_0x2e155c(0x220)])!=null&&_0x234cb[_0x2e155c(0x1c4)])?{..._0x37eaba,'children':_0x37eaba[_0x2e155c(0x220)]['map'](_0x1bcca1=>typeof _0x1bcca1[_0x2e155c(0x200)]['id']==_0x2e155c(0x1d5)&&_0x475cfd&&_0x475cfd['includes'](_0x1bcca1['attrs']['id'])?{..._0x1bcca1,'attrs':{..._0x1bcca1[_0x2e155c(0x200)],'id':_0x1bcca1[_0x2e155c(0x200)]['id']+_0x32f198[_0x2e155c(0x22c)]}}:_0x1bcca1)}:_0x37eaba;}function Oe(){const _0x3fbdf7=_0x105b4f;return Math['random']()[_0x3fbdf7(0x22f)](0x24)[_0x3fbdf7(0x195)](0x2,0x8);}k[_0x105b4f(0x19a)]=_0x105b4f(0x1bd);const we={'tag':_0x105b4f(0x223),'attrs':{'xmlns':_0x105b4f(0x1c2),'fill':_0x105b4f(0x216),'viewBox':_0x105b4f(0x1eb),'width':_0x105b4f(0x1ad),'height':_0x105b4f(0x1ad)},'children':[{'tag':_0x105b4f(0x1a1),'attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1b3)}},{'tag':'path','attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1e4),'fillRule':_0x105b4f(0x1f7),'clipRule':_0x105b4f(0x1f7)}}]},W=_0x4e5534(function(_0x1d92a2,_0x15aa4d){const _0x1c883a=_0x105b4f;return _0x2c90b5(k,Object[_0x1c883a(0x1fd)]({},_0x1d92a2,{'id':_0x1c883a(0x1b1),'ref':_0x15aa4d,'icon':we}));});W[_0x105b4f(0x19a)]=_0x105b4f(0x1d8);class L extends _0x19c5fe{constructor(){const _0x112e80=_0x105b4f;super(...arguments),u(this,_0x112e80(0x1d6),new Set()),u(this,'_reporters',new Set());}[_0x105b4f(0x215)](_0x835e58){const _0x4477b4=_0x105b4f;return this[_0x4477b4(0x1d6)][_0x4477b4(0x1fa)](_0x835e58),_0x2f41f0(()=>this['_sharedOperations']['delete'](_0x835e58));}[_0x105b4f(0x1e5)](_0x4a3df0){const _0x1d81b4=_0x105b4f;return this[_0x1d81b4(0x1c5)][_0x1d81b4(0x1fa)](_0x4a3df0),_0x2f41f0(()=>this[_0x1d81b4(0x1c5)][_0x1d81b4(0x23d)](_0x4a3df0));}[_0x105b4f(0x235)](_0x38ea69){const _0x1430d9=_0x105b4f;return this[_0x1430d9(0x1d6)]['has'](_0x38ea69);}[_0x105b4f(0x21f)](_0x4c130e){const _0x827315=_0x105b4f;return Array['from'](this[_0x827315(0x1c5)])['map'](_0x320bfe=>_0x320bfe(_0x4c130e));}}var Ne=Object[_0x105b4f(0x19c)],Y=(_0x18595c,_0x5c0b4a,_0x50b15e,_0xc7cae9)=>{const _0x2d14e4=_0x105b4f;for(var _0x3799f8=_0xc7cae9>0x1?void 0x0:_0xc7cae9?Ne(_0x5c0b4a,_0x50b15e):_0x5c0b4a,_0x3dcda3=_0x18595c[_0x2d14e4(0x1c4)]-0x1,_0x4db411;_0x3dcda3>=0x0;_0x3dcda3--)(_0x4db411=_0x18595c[_0x3dcda3])&&(_0x3799f8=_0x4db411(_0x3799f8)||_0x3799f8);return _0x3799f8;},_=(_0x27f62d,_0x278db7)=>(_0x4b1b12,_0x54d1cb)=>_0x278db7(_0x4b1b12,_0x54d1cb,_0x27f62d);let S=class extends _0x34eb50{constructor(_0xb583bf,_0x4480d9,_0x327328){const _0x3a4e0c=_0x105b4f;super(),u(this,_0x3a4e0c(0x226),new Map()),(this['_univerInstanceService']=_0xb583bf,this[_0x3a4e0c(0x1aa)]=_0x4480d9,this[_0x3a4e0c(0x19b)]=_0x327328,this['_init']());}async['getLiveShareCoordinator'](_0x162e45){const _0x1297d7=_0x105b4f;return this[_0x1297d7(0x226)]['has'](_0x162e45)||await this[_0x1297d7(0x22a)](_0x162e45),this[_0x1297d7(0x226)][_0x1297d7(0x228)](_0x162e45);}['getLiveShareCoordinatorSync'](_0x5be43b){const _0x27a61c=_0x105b4f;var _0x28abce;return(_0x28abce=this[_0x27a61c(0x226)][_0x27a61c(0x228)](_0x5be43b))!=null?_0x28abce:null;}[_0x105b4f(0x1ba)](){const _0x55a1dd=_0x105b4f;this['_univerInstanceService'][_0x55a1dd(0x1c1)](_0x122c76[_0x55a1dd(0x203)])[_0x55a1dd(0x1bf)](_0x56a21e(this[_0x55a1dd(0x222)]))[_0x55a1dd(0x221)](async _0x40c9ee=>{const _0x4e61a1=_0x55a1dd,_0x22b9bf=_0x40c9ee[_0x4e61a1(0x23b)]();this['_entities'][_0x4e61a1(0x1d0)](_0x22b9bf)||this[_0x4e61a1(0x22a)](_0x22b9bf);}),this[_0x55a1dd(0x1c7)][_0x55a1dd(0x237)](_0x122c76[_0x55a1dd(0x203)])['pipe'](_0x56a21e(this['dispose$']))[_0x55a1dd(0x221)](_0x1904f2=>{const _0x27a46e=_0x55a1dd,_0xb6d5ff=_0x1904f2[_0x27a46e(0x23b)](),_0x3825a4=this[_0x27a46e(0x226)][_0x27a46e(0x228)](_0xb6d5ff);_0x3825a4==null||_0x3825a4['dispose']();});}async[_0x105b4f(0x22a)](_0x2efe1d){const _0xae3cb7=_0x105b4f,_0x5aeec5=await this['_collabSessionService']['requireSession'](_0x2efe1d),_0x4486d8=this[_0xae3cb7(0x1aa)][_0xae3cb7(0x1ea)](N,_0x2efe1d,_0x5aeec5);return _0x4486d8[_0xae3cb7(0x1cf)](),this[_0xae3cb7(0x226)][_0xae3cb7(0x239)](_0x2efe1d,_0x4486d8),_0x4486d8;}};S=Y([_(0x0,_0x49d2d0),_(0x1,_0xb4de5c(_0x39091f)),_(0x2,_0xb4de5c(_0xa11808))],S);var c=(_0x2ca91a=>(_0x2ca91a[_0x105b4f(0x1ab)]=_0x105b4f(0x1a7),_0x2ca91a[_0x105b4f(0x1a4)]=_0x105b4f(0x1d2),_0x2ca91a[_0x105b4f(0x1dc)]=_0x105b4f(0x194),_0x2ca91a[_0x105b4f(0x1b9)]=_0x105b4f(0x232),_0x2ca91a['PRESENTING']=_0x105b4f(0x192),_0x2ca91a))(c||{});const Ce=_0x105b4f(0x1dd),De=0xc8;let N=class extends _0x34eb50{constructor(_0x185fa4,_0x8785a7,_0x31829b,_0x56baef,_0xf9d038){const _0x2b68a5=_0x105b4f;super(),u(this,_0x2b68a5(0x198),new _0x2fdabf(_0x2b68a5(0x1d2))),u(this,_0x2b68a5(0x211),this[_0x2b68a5(0x198)][_0x2b68a5(0x19e)]()),u(this,'_init',!0x1),u(this,_0x2b68a5(0x227),null),u(this,_0x2b68a5(0x1c8),null),(this[_0x2b68a5(0x202)]=_0x185fa4,this[_0x2b68a5(0x1ef)]=_0x8785a7,this[_0x2b68a5(0x1d9)]=_0x31829b,this[_0x2b68a5(0x212)]=_0x56baef,this['_commandService']=_0xf9d038);}get[_0x105b4f(0x199)](){const _0x28c3c4=_0x105b4f;return this[_0x28c3c4(0x198)][_0x28c3c4(0x1b8)]();}[_0x105b4f(0x1b6)](){const _0x546d94=_0x105b4f;var _0x4b7cc3;(_0x4b7cc3=this[_0x546d94(0x227)])==null||_0x4b7cc3[_0x546d94(0x1b6)](),this[_0x546d94(0x198)][_0x546d94(0x1df)](_0x546d94(0x1d2)),this[_0x546d94(0x198)][_0x546d94(0x1e1)]();}[_0x105b4f(0x197)](){const _0x3f46ba=_0x105b4f;return this[_0x3f46ba(0x199)];}[_0x105b4f(0x1cf)](){const _0x28fbd3=_0x105b4f;this[_0x28fbd3(0x1ba)]||(this['_init']=!0x0,this[_0x28fbd3(0x1ef)]['sessionStatus$'][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x45450e=>{const _0x41d137=_0x28fbd3;switch(_0x45450e){case _0x155833[_0x41d137(0x1ab)]:this[_0x41d137(0x224)]();break;case _0x155833[_0x41d137(0x205)]:this[_0x41d137(0x1a2)]();break;}}),this[_0x28fbd3(0x1ef)][_0x28fbd3(0x206)][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x21501b=>{const _0x40db3e=_0x28fbd3,{eventID:_0x4a89a2}=_0x21501b;switch(_0x4a89a2){case _0x564ee3[_0x40db3e(0x1bc)]:this['_handleNewHost'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x19d)]:this['_handleOperation'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x1e0)]:this[_0x40db3e(0x1e9)]();break;case _0x564ee3[_0x40db3e(0x21b)]:this[_0x40db3e(0x21d)](_0x21501b);break;}}));}[_0x105b4f(0x193)](){const _0x1757f5=_0x105b4f;this[_0x1757f5(0x1ef)][_0x1757f5(0x1bb)]({'eventID':_0x564ee3[_0x1757f5(0x210)],'data':{'unitID':this[_0x1757f5(0x202)],'userID':this[_0x1757f5(0x1ef)][_0x1757f5(0x1e7)]()}},this[_0x1757f5(0x202)]);}[_0x105b4f(0x1ca)](){const _0x358fbe=_0x105b4f;this[_0x358fbe(0x199)]===_0x358fbe(0x192)&&(this[_0x358fbe(0x198)][_0x358fbe(0x1df)](_0x358fbe(0x1d2)),this[_0x358fbe(0x1ef)][_0x358fbe(0x1bb)]({'eventID':_0x564ee3[_0x358fbe(0x1e0)],'data':{'unitID':this[_0x358fbe(0x202)]}},this[_0x358fbe(0x202)]));}[_0x105b4f(0x217)](){const _0x4c5053=_0x105b4f;this[_0x4c5053(0x199)]==='not-following'&&(this['_status$'][_0x4c5053(0x1df)](_0x4c5053(0x194)),this[_0x4c5053(0x1ac)]());}[_0x105b4f(0x233)](){const _0x207bb2=_0x105b4f;this[_0x207bb2(0x199)]==='following'&&this[_0x207bb2(0x1db)]();}[_0x105b4f(0x1f2)](_0x258b83){const _0x3cc256=_0x105b4f,{presenter:_0x7afcbf}=_0x258b83[_0x3cc256(0x1a9)],_0x2efc6d=this['_collabSession'][_0x3cc256(0x1e7)]();this[_0x3cc256(0x1c8)]=_0x7afcbf,_0x7afcbf===_0x2efc6d?(this['_stopFollowing'](),this[_0x3cc256(0x1e6)]()):this[_0x3cc256(0x199)]!==_0x3cc256(0x232)&&(this[_0x3cc256(0x1f5)](),this[_0x3cc256(0x1ac)]());}[_0x105b4f(0x196)](){const _0x47edfb=_0x105b4f,_0x136365={'eventID':_0x564ee3[_0x47edfb(0x1be)]};this['_collabSession'][_0x47edfb(0x1bb)](_0x136365,this[_0x47edfb(0x202)]);}['_handleTerminate'](){const _0x2f3a3b=_0x105b4f;this[_0x2f3a3b(0x1c8)]=null,this[_0x2f3a3b(0x199)]!==_0x2f3a3b(0x192)&&this[_0x2f3a3b(0x1cc)]();}[_0x105b4f(0x21d)](_0x250de6){const _0x5a0456=_0x105b4f;if(this[_0x5a0456(0x199)]==='following'&&this['_presenter']===_0x250de6[_0x5a0456(0x1a9)][_0x5a0456(0x1f0)]){const _0xc47a3c=_0x40078c(_0x250de6[_0x5a0456(0x1a9)])[_0x5a0456(0x1ee)][_0x5a0456(0x207)]()['find'](_0x2167f0=>_0x2167f0['id']===_0xd8595d['id']);if(_0xc47a3c){const _0x87f447=_0xc47a3c[_0x5a0456(0x218)][_0x5a0456(0x1fc)],_0xe57cf7=_0xc47a3c[_0x5a0456(0x218)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2e64c1['id'],{'unitId':_0x87f447,'subUnitId':_0xe57cf7},{'fromCollab':!0x0});});}}}[_0x105b4f(0x1e6)](){const _0x39afc7=_0x105b4f;this['_status$']['next'](_0x39afc7(0x192));const _0x35359e=new Map(),_0x298573=this[_0x39afc7(0x227)]=new _0x1ca7f7();_0x298573['add'](_0x2f41f0(()=>{const _0x3ff51f=_0x39afc7;_0x35359e['forEach'](_0x205651=>_0x205651[_0x3ff51f(0x1e1)]()),_0x35359e[_0x3ff51f(0x213)]();})),_0x298573[_0x39afc7(0x1fa)](this[_0x39afc7(0x1ce)][_0x39afc7(0x230)](_0x564bf6=>{const _0x4b54e6=_0x39afc7;var _0x5c1107;if(_0x564bf6[_0x4b54e6(0x23a)]!==_0x2379b5['OPERATION']||!this['_liveShareService'][_0x4b54e6(0x235)](_0x564bf6['id']))return;const {id:_0x563181}=_0x564bf6;let _0x37d666;_0x35359e['has'](_0x563181)?_0x37d666=_0x35359e[_0x4b54e6(0x228)](_0x563181):(_0x37d666=new _0x415a69(),_0x35359e['set'](_0x563181,_0x37d666),_0x37d666[_0x4b54e6(0x1bf)](_0x2c6eb0((_0x5c1107=this[_0x4b54e6(0x1d9)][_0x4b54e6(0x1c6)](Ce))!=null?_0x5c1107:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4bf215=>{const _0x2185e4=_0x4b54e6;this[_0x2185e4(0x1ef)][_0x2185e4(0x1bb)]({'eventID':_0x564ee3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2185e4(0x202)],'operations':{[_0x4bf215['id']]:{'id':_0x4bf215['id'],'params':JSON[_0x2185e4(0x20b)](_0x4bf215['params'])}}}},this[_0x2185e4(0x202)]);})),_0x37d666[_0x4b54e6(0x1df)](_0x564bf6);})),this['_liveShareService'][_0x39afc7(0x21f)](this[_0x39afc7(0x202)])[_0x39afc7(0x22b)](_0x32ed6a=>this[_0x39afc7(0x1ef)]['send']({'eventID':_0x564ee3[_0x39afc7(0x19d)],'data':{'unitID':this[_0x39afc7(0x202)],'operations':{[_0x32ed6a['id']]:{'id':_0x32ed6a['id'],'params':JSON[_0x39afc7(0x20b)](_0x32ed6a['params'])}}}},this[_0x39afc7(0x202)]));}[_0x105b4f(0x1f5)](){const _0x56783e=_0x105b4f;var _0x509977;this['_status$'][_0x56783e(0x1df)](_0x56783e(0x1d2)),(_0x509977=this[_0x56783e(0x227)])==null||_0x509977[_0x56783e(0x1b6)](),this[_0x56783e(0x227)]=null;}[_0x105b4f(0x1ac)](){const _0x435280=_0x105b4f;var _0x991dee;(_0x991dee=this[_0x435280(0x227)])==null||_0x991dee['dispose'](),this[_0x435280(0x198)]['next']('following');}['_beIdle'](){const _0x1845e5=_0x105b4f;var _0x67b2a6;this[_0x1845e5(0x198)][_0x1845e5(0x1df)](_0x1845e5(0x1d2)),(_0x67b2a6=this[_0x1845e5(0x227)])==null||_0x67b2a6[_0x1845e5(0x1b6)](),this[_0x1845e5(0x227)]=null;}[_0x105b4f(0x1db)](){const _0x239549=_0x105b4f;var _0x4103a3;this[_0x239549(0x198)][_0x239549(0x1df)](_0x239549(0x232)),(_0x4103a3=this[_0x239549(0x227)])==null||_0x4103a3[_0x239549(0x1b6)]();}[_0x105b4f(0x1b5)](_0x3a49cb){const _0x3cac2b=_0x105b4f;if([_0x3cac2b(0x192),_0x3cac2b(0x232),_0x3cac2b(0x1a7)][_0x3cac2b(0x1d4)](this[_0x3cac2b(0x199)])||!_0x3a49cb[_0x3cac2b(0x1a9)]['presenter']||_0x3a49cb['data']['presenter']===this[_0x3cac2b(0x1ef)][_0x3cac2b(0x1e7)]())return;this[_0x3cac2b(0x199)]==='idle'&&this['_startFollowing']();const _0x2e60c5=_0x3a49cb[_0x3cac2b(0x1a9)]['operations'];Object['values'](_0x2e60c5)[_0x3cac2b(0x22b)](_0x111f87=>{const _0xfa675f=_0x3cac2b;this[_0xfa675f(0x1ce)][_0xfa675f(0x1cb)](_0x111f87['id'],_0x111f87[_0xfa675f(0x218)]?JSON[_0xfa675f(0x1ae)](_0x111f87[_0xfa675f(0x218)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x902da0=_0x105b4f;var _0x37cdf6;this[_0x902da0(0x198)][_0x902da0(0x1df)](_0x902da0(0x1a7)),(_0x37cdf6=this[_0x902da0(0x227)])==null||_0x37cdf6[_0x902da0(0x1b6)]();}[_0x105b4f(0x1a2)](){const _0x48ac69=_0x105b4f;this[_0x48ac69(0x198)][_0x48ac69(0x1df)]('idle'),this[_0x48ac69(0x196)]();}};N=Y([_(0x2,_0x162c40),_(0x3,_0xb4de5c(L)),_(0x4,_0x3e5399)],N);function Le(){const _0x38392e=_0x105b4f,_0xeda6f3=_0x3284dd(S),_0x2ca413=_0x3284dd(_0x49d2d0),_0x148d05=_0x36dee3(()=>_0x2ca413[_0x38392e(0x1da)](_0x122c76['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4d6f57,_0x21cce1]=_0x4e7da4(null),[_0x1220af,_0x1146e6]=_0x4e7da4(c[_0x38392e(0x1a4)]),_0x263fba=_0xf38a0d(null);return _0x5d80fb(()=>(_0x148d05&&_0xeda6f3[_0x38392e(0x1d7)](_0x148d05[_0x38392e(0x23b)]())[_0x38392e(0x1b2)](_0x1a2f64=>{const _0x3cef76=_0x38392e;_0x21cce1(_0x1a2f64),_0x263fba['current']=_0x1a2f64[_0x3cef76(0x211)][_0x3cef76(0x221)](_0x32f005=>{_0x1146e6(_0x32f005);});}),()=>{const _0x3bde3d=_0x38392e;var _0x4e97ea;(_0x4e97ea=_0x263fba[_0x3bde3d(0x1f6)])==null||_0x4e97ea[_0x3bde3d(0x20f)](),_0x263fba['current']=null;}),[_0x148d05,_0xeda6f3]),_0x4d6f57?_0x46e223(_0x26b96d,{'align':_0x38392e(0x204),'disabled':_0x1220af===c[_0x38392e(0x1ab)],'className':_0x38392e(0x1b7),'overlay':_0x46e223(Re,{'status':_0x1220af,'coordinator':_0x4d6f57}),'children':_0x46e223(_0x38392e(0x1a5),{'className':_0x3c8e64('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1220af===c[_0x38392e(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1220af!==c[_0x38392e(0x1ab)]}),'type':'button','children':_0x46e223(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f9b59){const _0x1f8106=_0x105b4f,{status:_0xa7e895,coordinator:_0x371e7a}=_0x2f9b59;switch(_0xa7e895){case c[_0x1f8106(0x1a4)]:return _0x46e223($e,{'coordinator':_0x371e7a});case c[_0x1f8106(0x1dc)]:return _0x46e223(xe,{'coordinator':_0x371e7a});case c['NOT_FOLLOWING']:return _0x46e223(Pe,{'coordinator':_0x371e7a});case c['OFFLINE']:return _0x46e223(Te,{});case c[_0x1f8106(0x1e2)]:return _0x46e223(Ae,{'coordinator':_0x371e7a});default:return null;}}function $e(_0xc6d450){const _0x4e0a36=_0x105b4f,{coordinator:_0x3df512}=_0xc6d450;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223('div',{'className':_0x4e0a36(0x201),'children':_0x4e0a36(0x1a6)}),_0x46e223(_0x21597a,{'onClick':()=>_0x3df512[_0x4e0a36(0x193)](),'children':_0x4e0a36(0x225)})]});}function xe(_0x5739f4){const _0x1ab26f=_0x105b4f,{coordinator:_0x5f3e05}=_0x5739f4;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0x1ab26f(0x234),{'className':_0x1ab26f(0x201),'children':_0x1ab26f(0x1a0)}),_0x46e223(_0x21597a,{'onClick':()=>_0x5f3e05[_0x1ab26f(0x233)](),'children':_0x1ab26f(0x23c)})]});}function Pe(_0x1ea74d){const _0xc46fc2=_0x105b4f,{coordinator:_0x52d7ce}=_0x1ea74d;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xc46fc2(0x234),{'className':_0xc46fc2(0x201),'children':_0xc46fc2(0x1c9)}),_0x46e223(_0x21597a,{'variant':'text','onClick':()=>_0x52d7ce[_0xc46fc2(0x217)](),'children':_0xc46fc2(0x20a)})]});}function _0x4bc3(){const _0x365bfb=['You\x27re\x20following\x20the\x20presenter','path','_handleOnline','1215cccCXK','IDLE','button','Present\x20this\x20document','offline','6GJLmww','data','_injector','OFFLINE','_startFollowing','1em','parse','url(#$1','defineProperty','live-share-icon','then','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','mask','_handleOperation','dispose','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','getValue','NOT_FOLLOWING','_init','send','LIVESHARE_NEW_HOST','UniverIcon','LIVESHARE_FETCH_OPERATIONS','pipe','1066867ONVETv','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','4688hbUvvx','length','_reporters','getConfig','_univerInstanceService','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','executeCommand','_beIdle','2944430gFiIVp','_commandService','init','has','live-share.config','idle','default','includes','string','_sharedOperations','getLiveShareCoordinator','LiveShareIcon','_configService','getCurrentTypeOfUnit$','_stopFollowing','FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','next','LIVESHARE_TERMINATE','complete','PRESENTING','use','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','registerInitialStateReporter','_startPresenting','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','createInstance','0\x200\x2017\x2017','4291060ietMZS','registerComponent','mutations','_collabSession','memberID','onStarting','_handleNewHost','5987768EuxmaE','defs','_stopPresenting','current','evenodd','fill','You\x27re\x20presenting\x20the\x20document','add','_uiPartsService','unitId','assign','1848528fHxHbJ','onRendered','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','UNIVER_SHEET','end','ONLINE','event$','reverse','symbol','override','Start\x20following','stringify','map','_config','setConfig','unsubscribe','LIVESHARE_REQUEST_HOST','status$','_liveShareService','clear','tag','registerSharedOperation','none','startFollowing','params','pluginName','defIds','NEW_CHANGESETS','entries','_handleNewChangeSets','1731870ffdTaq','getInitialStates','children','subscribe','dispose$','svg','_handleOffline','Start','_entities','_commandDisposable','get','currentColor','_startLiveShareCoordinator','forEach','idSuffix','replace','_mountLiveShare','toString','onCommandExecuted','xlink:href','not-following','stopFollowing','div','shouldShareOperation','33VnLGcf','getTypeOfUnitDisposed$','7dnmgxV','set','type','getUnitId','Stop\x20following','delete','presenting','tryStartPresenting','following','substring','_fetchOperations','getStatus','_status$','_status','displayName','_collabSessionService','getOwnPropertyDescriptor','LIVESHARE_OPERATION','asObservable','disposeWithMe'];_0x4bc3=function(){return _0x365bfb;};return _0x4bc3();}function Ae(_0x4ec58f){const _0xcd0b7c=_0x105b4f,{coordinator:_0x185c56}=_0x4ec58f;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xcd0b7c(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcd0b7c(0x1f9)}),_0x46e223(_0x21597a,{'variant':_0xcd0b7c(0x1d3),'onClick':()=>_0x185c56[_0xcd0b7c(0x1ca)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x46e223(_0x46e9aa,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x105b4f(0x19c)],He=(_0x255dcd,_0x1a5c41,_0x49d45d,_0x786092)=>{for(var _0x525b14=_0x786092>0x1?void 0x0:_0x786092?Fe(_0x1a5c41,_0x49d45d):_0x1a5c41,_0xd22516=_0x255dcd['length']-0x1,_0x97ffff;_0xd22516>=0x0;_0xd22516--)(_0x97ffff=_0x255dcd[_0xd22516])&&(_0x525b14=_0x97ffff(_0x525b14)||_0x525b14);return _0x525b14;},A=(_0x12b793,_0x47751e)=>(_0x79e905,_0xf24172)=>_0x47751e(_0x79e905,_0xf24172,_0x12b793);let m=class extends _0x19c5fe{constructor(_0xd63cca,_0x3488ea){const _0x2758c8=_0x105b4f;super(),this['_injector']=_0xd63cca,this[_0x2758c8(0x1fb)]=_0x3488ea,this[_0x2758c8(0x22e)]();}[_0x105b4f(0x22e)](){const _0x257e9b=_0x105b4f;this[_0x257e9b(0x19f)](this[_0x257e9b(0x1fb)][_0x257e9b(0x1ed)](_0x2d952e['HEADER_MENU'],()=>_0x5cc7c1(Le,this[_0x257e9b(0x1aa)])));}};m=He([A(0x0,_0xb4de5c(_0x39091f)),A(0x1,_0x1cb32c)],m);const ye=_0x105b4f(0x1d1),T={};var Ue=Object[_0x105b4f(0x19c)],Ve=(_0x353cd4,_0x541fb5,_0x4dbd46,_0x2fff44)=>{const _0x585f2b=_0x105b4f;for(var _0x36e467=_0x2fff44>0x1?void 0x0:_0x2fff44?Ue(_0x541fb5,_0x4dbd46):_0x541fb5,_0x5db4eb=_0x353cd4[_0x585f2b(0x1c4)]-0x1,_0x555916;_0x5db4eb>=0x0;_0x5db4eb--)(_0x555916=_0x353cd4[_0x5db4eb])&&(_0x36e467=_0x555916(_0x36e467)||_0x36e467);return _0x36e467;},je=(_0x86080f,_0x697570)=>(_0x1dd81d,_0x276284)=>_0x697570(_0x1dd81d,_0x276284,_0x86080f);let I=class extends _0x19c5fe{constructor(_0x420fed){const _0x545cda=_0x105b4f;super(),this[_0x545cda(0x212)]=_0x420fed,this[_0x545cda(0x1ba)]();}['_init'](){[_0xba6ce1['id'],_0x105dbb['id'],_0x2e64c1['id']]['forEach'](_0x43d7ad=>{const _0x439df9=_0x2cf0;this['disposeWithMe'](this[_0x439df9(0x212)][_0x439df9(0x215)](_0x43d7ad));});}};I=Ve([je(0x0,_0xb4de5c(L))],I);function _0x2cf0(_0xc200c0,_0x258a0d){_0xc200c0=_0xc200c0-0x192;const _0x4bc32d=_0x4bc3();let _0x2cf084=_0x4bc32d[_0xc200c0];return _0x2cf084;}var Me=Object[_0x105b4f(0x1b0)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x547a47,_0x4d3bcb,_0xd46219)=>_0x4d3bcb in _0x547a47?Me(_0x547a47,_0x4d3bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd46219}):_0x547a47[_0x4d3bcb]=_0xd46219,We=(_0x47fd44,_0x58f49e,_0x5e44c1,_0xffcf3a)=>{const _0x3f7eec=_0x105b4f;for(var _0x199bea=_0xffcf3a>0x1?void 0x0:_0xffcf3a?ke(_0x58f49e,_0x5e44c1):_0x58f49e,_0x51af3e=_0x47fd44[_0x3f7eec(0x1c4)]-0x1,_0x3f9398;_0x51af3e>=0x0;_0x51af3e--)(_0x3f9398=_0x47fd44[_0x51af3e])&&(_0x199bea=_0x3f9398(_0x199bea)||_0x199bea);return _0x199bea;},F=(_0x5891e1,_0x324080)=>(_0x36dbcd,_0x5073de)=>_0x324080(_0x36dbcd,_0x5073de,_0x5891e1),B=(_0x165e69,_0x37f9aa,_0xf3451d)=>Ge(_0x165e69,typeof _0x37f9aa!=_0x105b4f(0x208)?_0x37f9aa+'':_0x37f9aa,_0xf3451d);const Ye=_0x105b4f(0x1e8);let b=class extends _0x1ec157{constructor(_0x1de8fd=T,_0x198cd6,_0x12f543){const _0x5d285c=_0x105b4f;super(),this['_config']=_0x1de8fd,this[_0x5d285c(0x1aa)]=_0x198cd6,this[_0x5d285c(0x1d9)]=_0x12f543;const {..._0x11363f}=_0x2a4c60({},T,this['_config']);this[_0x5d285c(0x1d9)][_0x5d285c(0x20e)](ye,_0x11363f);}[_0x105b4f(0x1f1)](){const _0x4a008a=_0x105b4f;_0x47fa09(this[_0x4a008a(0x1aa)],_0x37eaec([[L],[S],[I],[m]],this[_0x4a008a(0x20d)][_0x4a008a(0x209)])),_0x2a81f9(this['_injector'],[[I]]);}[_0x105b4f(0x1ff)](){_0x2a81f9(this['_injector'],[[m]]);}};B(b,_0x105b4f(0x23a),_0x122c76['UNIVER_UNKNOWN']),B(b,_0x105b4f(0x219),Ye),b=We([_0x2510ce(_0x16c8c0),F(0x1,_0xb4de5c(_0x39091f)),F(0x2,_0x162c40)],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 _0x94c2f4=_0x21c3;function _0x21c3(_0x446bb3,_0x18f90f){_0x446bb3=_0x446bb3-0x1d0;const _0x519940=_0x5199();let _0x21c38f=_0x519940[_0x446bb3];return _0x21c38f;}(function(_0x4c86f3,_0x134e2f){const _0x38792d=_0x21c3,_0x180f4e=_0x4c86f3();while(!![]){try{const _0x518ddf=-parseInt(_0x38792d(0x222))/0x1+parseInt(_0x38792d(0x247))/0x2+-parseInt(_0x38792d(0x21a))/0x3+-parseInt(_0x38792d(0x252))/0x4*(-parseInt(_0x38792d(0x24e))/0x5)+-parseInt(_0x38792d(0x237))/0x6*(-parseInt(_0x38792d(0x1fa))/0x7)+-parseInt(_0x38792d(0x206))/0x8+parseInt(_0x38792d(0x1f9))/0x9*(parseInt(_0x38792d(0x1d4))/0xa);if(_0x518ddf===_0x134e2f)break;else _0x180f4e['push'](_0x180f4e['shift']());}catch(_0x39cf1a){_0x180f4e['push'](_0x180f4e['shift']());}}}(_0x5199,0xdf6f1));var J=Object[_0x94c2f4(0x250)],K=(_0x37670d,_0x4433f6,_0x29d063)=>_0x4433f6 in _0x37670d?J(_0x37670d,_0x4433f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d063}):_0x37670d[_0x4433f6]=_0x29d063,u=(_0x548a32,_0x5e598a,_0xf6d060)=>K(_0x548a32,typeof _0x5e598a!=_0x94c2f4(0x279)?_0x5e598a+'':_0x5e598a,_0xf6d060);import{Disposable as _0x237410,toDisposable as _0x479776,IUniverInstanceService as _0x131adf,Inject as _0x39e2ff,Injector as _0x1af462,IConfigService as _0x1163db,ICommandService as _0x3fe997,RxDisposable as _0x3c244d,UniverInstanceType as _0x1edb56,DisposableCollection as _0x56d0d3,CommandType as _0x11ab87,DependentOn as _0x298814,Plugin as _0x1f099d,merge as _0x38fee5,registerDependencies as _0x20cdf0,mergeOverrideWithDependencies as _0x1c6eec,touchDependencies as _0x5e0f2d}from'@univerjs/core';import{useDependency as _0x1a3369,useObservable as _0x43c83b,IUIPartsService as _0x189af9,BuiltInUIPart as _0x54c386,connectInjector as _0x40daf7}from'@univerjs/ui';import{jsx as _0x3b2e8c,jsxs as _0x5a8b02,Fragment as _0x34fda9}from'react/jsx-runtime';import{Dropdown as _0x580ca5,clsx as _0x38bcb7,Button as _0x4bf6a0}from'@univerjs/design';import{useRef as _0x5302de,createElement as _0x4c6606,forwardRef as _0x13d357,useState as _0x24f563,useEffect as _0x1d9b38}from'react';import{CollaborationEvent as _0x117a17,parseProtocolChangeset as _0x1a1c61}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x12178f,SessionStatus as _0x2ec079,UniverCollaborationClientPlugin as _0x4883e2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x109733,SetWorksheetActiveOperation as _0x45b437}from'@univerjs/sheets';import{BehaviorSubject as _0x5ee00e,Subject as _0x13c737}from'rxjs';import{takeUntil as _0x2cd887,throttleTime as _0x3e7564}from'rxjs/operators';import{SetZoomRatioOperation as _0x33d3cc,SetScrollOperation as _0x1ac8e2}from'@univerjs/sheets-ui';function k({ref:_0xb065e,..._0x3a7358}){const _0x361340=_0x94c2f4,{icon:_0x54010d,id:_0x1cfe5c,className:_0x190099,extend:_0x57bce0,..._0x488160}=_0x3a7358,_0x2d8fc4=(_0x361340(0x24a)+_0x1cfe5c+'\x20'+(_0x190099||''))[_0x361340(0x244)](),_0x37b877=_0x5302de('_'+Oe());return G(_0x54010d,''+_0x1cfe5c,{'defIds':_0x54010d[_0x361340(0x1d3)],'idSuffix':_0x37b877[_0x361340(0x26e)]},{'ref':_0xb065e,'className':_0x2d8fc4,..._0x488160},_0x57bce0);}function G(_0x240805,_0x41f09f,_0x555cdc,_0x1cc80c,_0x1bfed9){const _0x28632a=_0x94c2f4;return _0x4c6606(_0x240805[_0x28632a(0x269)],{'key':_0x41f09f,...be(_0x240805,_0x555cdc,_0x1bfed9),..._0x1cc80c},(Ee(_0x240805,_0x555cdc)[_0x28632a(0x20d)]||[])[_0x28632a(0x270)]((_0x1bddaa,_0x1f5413)=>G(_0x1bddaa,_0x41f09f+'-'+_0x240805['tag']+'-'+_0x1f5413,_0x555cdc,void 0x0,_0x1bfed9)));}function be(_0x320310,_0x2e634b,_0x158a5f){const _0x5cf614=_0x94c2f4,_0x1a26f2={..._0x320310['attrs']};_0x158a5f!=null&&_0x158a5f[_0x5cf614(0x227)]&&_0x1a26f2[_0x5cf614(0x239)]===_0x5cf614(0x227)&&(_0x1a26f2['fill']=_0x158a5f[_0x5cf614(0x227)]),_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x208)&&_0x1a26f2['id']&&(_0x1a26f2['id']=_0x1a26f2['id']+_0x2e634b[_0x5cf614(0x260)]),Object['entries'](_0x1a26f2)[_0x5cf614(0x233)](([_0x55f103,_0x18e607])=>{const _0xe5660b=_0x5cf614;_0x55f103===_0xe5660b(0x208)&&typeof _0x18e607==_0xe5660b(0x1d8)&&(_0x1a26f2[_0x55f103]=_0x18e607[_0xe5660b(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b['idSuffix']+')'));});const {defIds:_0x6c0053}=_0x2e634b;return!_0x6c0053||_0x6c0053['length']===0x0||(_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x224)&&_0x1a26f2[_0x5cf614(0x238)]&&(_0x1a26f2[_0x5cf614(0x238)]=_0x1a26f2[_0x5cf614(0x238)]+_0x2e634b[_0x5cf614(0x260)]),Object[_0x5cf614(0x229)](_0x1a26f2)[_0x5cf614(0x233)](([_0x38bb32,_0x575f36])=>{const _0x106096=_0x5cf614;typeof _0x575f36==_0x106096(0x1d8)&&(_0x1a26f2[_0x38bb32]=_0x575f36[_0x106096(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b[_0x106096(0x260)]+')'));})),_0x1a26f2;}function Ee(_0x41659d,_0x1cb916){const _0x2cab9c=_0x94c2f4;var _0x4249a2;const {defIds:_0x4e6d2b}=_0x1cb916;return!_0x4e6d2b||_0x4e6d2b['length']===0x0?_0x41659d:_0x41659d[_0x2cab9c(0x269)]===_0x2cab9c(0x22c)&&((_0x4249a2=_0x41659d[_0x2cab9c(0x20d)])!=null&&_0x4249a2[_0x2cab9c(0x234)])?{..._0x41659d,'children':_0x41659d[_0x2cab9c(0x20d)][_0x2cab9c(0x270)](_0x46dd25=>typeof _0x46dd25['attrs']['id']==_0x2cab9c(0x1d8)&&_0x4e6d2b&&_0x4e6d2b[_0x2cab9c(0x25f)](_0x46dd25[_0x2cab9c(0x20b)]['id'])?{..._0x46dd25,'attrs':{..._0x46dd25[_0x2cab9c(0x20b)],'id':_0x46dd25[_0x2cab9c(0x20b)]['id']+_0x1cb916[_0x2cab9c(0x260)]}}:_0x46dd25)}:_0x41659d;}function Oe(){const _0x4f1be8=_0x94c2f4;return Math[_0x4f1be8(0x255)]()[_0x4f1be8(0x219)](0x24)[_0x4f1be8(0x1e5)](0x2,0x8);}k[_0x94c2f4(0x241)]=_0x94c2f4(0x212);const we={'tag':_0x94c2f4(0x25c),'attrs':{'xmlns':_0x94c2f4(0x263),'fill':_0x94c2f4(0x1d1),'viewBox':_0x94c2f4(0x267),'width':_0x94c2f4(0x277),'height':_0x94c2f4(0x277)},'children':[{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x235)}},{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x26d),'fillRule':_0x94c2f4(0x236),'clipRule':_0x94c2f4(0x236)}}]},W=_0x13d357(function(_0x3fe056,_0x2cc369){const _0x3f646b=_0x94c2f4;return _0x4c6606(k,Object[_0x3f646b(0x1d5)]({},_0x3fe056,{'id':_0x3f646b(0x1fb),'ref':_0x2cc369,'icon':we}));});W[_0x94c2f4(0x241)]='LiveShareIcon';class L extends _0x237410{constructor(){const _0x5a0ee4=_0x94c2f4;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x5a0ee4(0x27b),new Set());}[_0x94c2f4(0x25a)](_0x1dec7d){const _0x4b7c09=_0x94c2f4;return this[_0x4b7c09(0x1ee)][_0x4b7c09(0x26f)](_0x1dec7d),_0x479776(()=>this[_0x4b7c09(0x1ee)][_0x4b7c09(0x25b)](_0x1dec7d));}[_0x94c2f4(0x25e)](_0xc19384){const _0x1e5cd8=_0x94c2f4;return this['_reporters']['add'](_0xc19384),_0x479776(()=>this['_reporters'][_0x1e5cd8(0x25b)](_0xc19384));}['shouldShareOperation'](_0x356b1e){const _0x3460c6=_0x94c2f4;return this[_0x3460c6(0x1ee)]['has'](_0x356b1e);}[_0x94c2f4(0x231)](_0x5d3542){const _0x4197ef=_0x94c2f4;return Array[_0x4197ef(0x1fe)](this[_0x4197ef(0x27b)])[_0x4197ef(0x270)](_0x3f3ad7=>_0x3f3ad7(_0x5d3542));}}var Ne=Object[_0x94c2f4(0x1e3)],Y=(_0x24e75c,_0x508cc0,_0x3de33b,_0x4de27e)=>{const _0x5a3bd5=_0x94c2f4;for(var _0x4fe054=_0x4de27e>0x1?void 0x0:_0x4de27e?Ne(_0x508cc0,_0x3de33b):_0x508cc0,_0x233d13=_0x24e75c[_0x5a3bd5(0x234)]-0x1,_0x9dc5a5;_0x233d13>=0x0;_0x233d13--)(_0x9dc5a5=_0x24e75c[_0x233d13])&&(_0x4fe054=_0x9dc5a5(_0x4fe054)||_0x4fe054);return _0x4fe054;},_=(_0x5ba021,_0x2dc522)=>(_0x103223,_0x4a42bd)=>_0x2dc522(_0x103223,_0x4a42bd,_0x5ba021);let S=class extends _0x3c244d{constructor(_0x11278b,_0x50b451,_0x33cd12){const _0x58aa65=_0x94c2f4;super(),u(this,_0x58aa65(0x272),new Map()),(this[_0x58aa65(0x245)]=_0x11278b,this['_injector']=_0x50b451,this[_0x58aa65(0x1da)]=_0x33cd12,this[_0x58aa65(0x1d2)]());}async[_0x94c2f4(0x274)](_0x30146d){const _0x6d15e1=_0x94c2f4;return this[_0x6d15e1(0x272)]['has'](_0x30146d)||await this[_0x6d15e1(0x23d)](_0x30146d),this['_entities'][_0x6d15e1(0x205)](_0x30146d);}[_0x94c2f4(0x228)](_0x4c17df){var _0x2e4ab1;return(_0x2e4ab1=this['_entities']['get'](_0x4c17df))!=null?_0x2e4ab1:null;}[_0x94c2f4(0x1d2)](){const _0x435494=_0x94c2f4;this['_univerInstanceService'][_0x435494(0x211)](_0x1edb56[_0x435494(0x275)])[_0x435494(0x246)](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](async _0xe3d952=>{const _0x288c8e=_0x435494,_0x3a31c9=_0xe3d952['getUnitId']();this['_entities']['has'](_0x3a31c9)||this[_0x288c8e(0x23d)](_0x3a31c9);}),this[_0x435494(0x245)][_0x435494(0x1e1)](_0x1edb56[_0x435494(0x275)])['pipe'](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](_0x45f7ac=>{const _0x59258f=_0x435494,_0x2aeb58=_0x45f7ac[_0x59258f(0x1f2)](),_0x4bb934=this[_0x59258f(0x272)]['get'](_0x2aeb58);_0x4bb934==null||_0x4bb934[_0x59258f(0x1f3)]();});}async['_startLiveShareCoordinator'](_0x488194){const _0x33a5b0=_0x94c2f4,_0x5d3691=await this['_collabSessionService'][_0x33a5b0(0x1f8)](_0x488194),_0x1de098=this[_0x33a5b0(0x204)][_0x33a5b0(0x1eb)](N,_0x488194,_0x5d3691);return _0x1de098[_0x33a5b0(0x225)](),this[_0x33a5b0(0x272)][_0x33a5b0(0x217)](_0x488194,_0x1de098),_0x1de098;}};S=Y([_(0x0,_0x131adf),_(0x1,_0x39e2ff(_0x1af462)),_(0x2,_0x39e2ff(_0x12178f))],S);var c=(_0x221161=>(_0x221161[_0x94c2f4(0x22a)]=_0x94c2f4(0x207),_0x221161['IDLE']=_0x94c2f4(0x1de),_0x221161['FOLLOWING']=_0x94c2f4(0x24b),_0x221161['NOT_FOLLOWING']='not-following',_0x221161['PRESENTING']=_0x94c2f4(0x209),_0x221161))(c||{});const Ce=_0x94c2f4(0x23b),De=0xc8;let N=class extends _0x3c244d{constructor(_0x3c6de8,_0x1e0d6a,_0x48a41f,_0x4d0548,_0x303acf){const _0x2a724f=_0x94c2f4;super(),u(this,'_status$',new _0x5ee00e(_0x2a724f(0x1de))),u(this,_0x2a724f(0x218),this[_0x2a724f(0x1f1)][_0x2a724f(0x223)]()),u(this,_0x2a724f(0x1d2),!0x1),u(this,_0x2a724f(0x1e7),null),u(this,'_presenter',null),(this['_unitID']=_0x3c6de8,this[_0x2a724f(0x20f)]=_0x1e0d6a,this[_0x2a724f(0x1d0)]=_0x48a41f,this[_0x2a724f(0x226)]=_0x4d0548,this[_0x2a724f(0x1fc)]=_0x303acf);}get[_0x94c2f4(0x21e)](){const _0x10c3e8=_0x94c2f4;return this[_0x10c3e8(0x1f1)][_0x10c3e8(0x278)]();}[_0x94c2f4(0x1f3)](){const _0x5ee6ab=_0x94c2f4;var _0x439748;(_0x439748=this[_0x5ee6ab(0x1e7)])==null||_0x439748[_0x5ee6ab(0x1f3)](),this[_0x5ee6ab(0x1f1)]['next'](_0x5ee6ab(0x1de)),this[_0x5ee6ab(0x1f1)][_0x5ee6ab(0x1f6)]();}[_0x94c2f4(0x230)](){return this['_status'];}['init'](){const _0x14d99f=_0x94c2f4;this[_0x14d99f(0x1d2)]||(this['_init']=!0x0,this[_0x14d99f(0x20f)][_0x14d99f(0x210)][_0x14d99f(0x246)](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x41ffd8=>{const _0x5407dd=_0x14d99f;switch(_0x41ffd8){case _0x2ec079[_0x5407dd(0x22a)]:this[_0x5407dd(0x1dd)]();break;case _0x2ec079['ONLINE']:this[_0x5407dd(0x1f0)]();break;}}),this[_0x14d99f(0x20f)]['event$']['pipe'](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x511b8f=>{const _0x2fbae5=_0x14d99f,{eventID:_0x43efde}=_0x511b8f;switch(_0x43efde){case _0x117a17['LIVESHARE_NEW_HOST']:this[_0x2fbae5(0x1e0)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x22b)]:this[_0x2fbae5(0x1db)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x201)]:this['_handleTerminate']();break;case _0x117a17['NEW_CHANGESETS']:this[_0x2fbae5(0x21d)](_0x511b8f);break;}}));}[_0x94c2f4(0x1ff)](){const _0x3ed1ef=_0x94c2f4;this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x1e6)]({'eventID':_0x117a17['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3ed1ef(0x1d7)],'userID':this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x256)]()}},this[_0x3ed1ef(0x1d7)]);}['stopPresenting'](){const _0x3e21c3=_0x94c2f4;this['_status']==='presenting'&&(this[_0x3e21c3(0x1f1)]['next'](_0x3e21c3(0x1de)),this['_collabSession'][_0x3e21c3(0x1e6)]({'eventID':_0x117a17['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e21c3(0x1d7)]));}[_0x94c2f4(0x1ef)](){const _0x1b7ca6=_0x94c2f4;this[_0x1b7ca6(0x21e)]===_0x1b7ca6(0x26b)&&(this[_0x1b7ca6(0x1f1)]['next'](_0x1b7ca6(0x24b)),this[_0x1b7ca6(0x216)]());}[_0x94c2f4(0x220)](){const _0x2ad836=_0x94c2f4;this[_0x2ad836(0x21e)]===_0x2ad836(0x24b)&&this[_0x2ad836(0x214)]();}[_0x94c2f4(0x1e0)](_0x3366e7){const _0x15fd2c=_0x94c2f4,{presenter:_0x3fa34a}=_0x3366e7[_0x15fd2c(0x215)],_0x3d7902=this[_0x15fd2c(0x20f)]['getMemberID']();this[_0x15fd2c(0x22f)]=_0x3fa34a,_0x3fa34a===_0x3d7902?(this[_0x15fd2c(0x214)](),this['_startPresenting']()):this[_0x15fd2c(0x21e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x15fd2c(0x216)]());}[_0x94c2f4(0x21c)](){const _0x39d8a9=_0x94c2f4,_0x92349={'eventID':_0x117a17[_0x39d8a9(0x253)]};this['_collabSession']['send'](_0x92349,this['_unitID']);}[_0x94c2f4(0x254)](){const _0x3fc57f=_0x94c2f4;this[_0x3fc57f(0x22f)]=null,this[_0x3fc57f(0x21e)]!=='presenting'&&this[_0x3fc57f(0x249)]();}[_0x94c2f4(0x21d)](_0x4b135a){const _0x5e05f9=_0x94c2f4;if(this[_0x5e05f9(0x21e)]==='following'&&this[_0x5e05f9(0x22f)]===_0x4b135a[_0x5e05f9(0x215)][_0x5e05f9(0x23c)]){const _0x59abe1=_0x1a1c61(_0x4b135a[_0x5e05f9(0x215)])['mutations']['reverse']()[_0x5e05f9(0x1f4)](_0x2e3f06=>_0x2e3f06['id']===_0x109733['id']);if(_0x59abe1){const _0x3b2243=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x22d)],_0xfa0724=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x259)]['id'];setTimeout(()=>{const _0x2eaf2e=_0x5e05f9;this[_0x2eaf2e(0x1fc)][_0x2eaf2e(0x273)](_0x45b437['id'],{'unitId':_0x3b2243,'subUnitId':_0xfa0724},{'fromCollab':!0x0});});}}}[_0x94c2f4(0x21b)](){const _0x5c5dbd=_0x94c2f4;this[_0x5c5dbd(0x1f1)][_0x5c5dbd(0x1f7)]('presenting');const _0x3eb12d=new Map(),_0x54656=this[_0x5c5dbd(0x1e7)]=new _0x56d0d3();_0x54656[_0x5c5dbd(0x26f)](_0x479776(()=>{const _0xd23b2d=_0x5c5dbd;_0x3eb12d['forEach'](_0x4b4532=>_0x4b4532[_0xd23b2d(0x1f6)]()),_0x3eb12d[_0xd23b2d(0x264)]();})),_0x54656['add'](this[_0x5c5dbd(0x1fc)][_0x5c5dbd(0x257)](_0x516c6c=>{const _0x12b720=_0x5c5dbd;var _0x160f74;if(_0x516c6c[_0x12b720(0x23f)]!==_0x11ab87[_0x12b720(0x22e)]||!this['_liveShareService'][_0x12b720(0x1ea)](_0x516c6c['id']))return;const {id:_0x2e50cc}=_0x516c6c;let _0x42f196;_0x3eb12d[_0x12b720(0x242)](_0x2e50cc)?_0x42f196=_0x3eb12d[_0x12b720(0x205)](_0x2e50cc):(_0x42f196=new _0x13c737(),_0x3eb12d[_0x12b720(0x217)](_0x2e50cc,_0x42f196),_0x42f196[_0x12b720(0x246)](_0x3e7564((_0x160f74=this[_0x12b720(0x1d0)]['getConfig'](Ce))!=null?_0x160f74:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12b720(0x202)](_0x22c8db=>{const _0x4d1d81=_0x12b720;this[_0x4d1d81(0x20f)][_0x4d1d81(0x1e6)]({'eventID':_0x117a17['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x22c8db['id']]:{'id':_0x22c8db['id'],'params':JSON[_0x4d1d81(0x251)](_0x22c8db[_0x4d1d81(0x26a)])}}}},this[_0x4d1d81(0x1d7)]);})),_0x42f196[_0x12b720(0x1f7)](_0x516c6c);})),this[_0x5c5dbd(0x226)][_0x5c5dbd(0x231)](this[_0x5c5dbd(0x1d7)])[_0x5c5dbd(0x233)](_0x21d879=>this['_collabSession'][_0x5c5dbd(0x1e6)]({'eventID':_0x117a17[_0x5c5dbd(0x22b)],'data':{'unitID':this[_0x5c5dbd(0x1d7)],'operations':{[_0x21d879['id']]:{'id':_0x21d879['id'],'params':JSON[_0x5c5dbd(0x251)](_0x21d879[_0x5c5dbd(0x26a)])}}}},this[_0x5c5dbd(0x1d7)]));}['_stopPresenting'](){const _0x2a0dcb=_0x94c2f4;var _0x2c3d1a;this[_0x2a0dcb(0x1f1)][_0x2a0dcb(0x1f7)](_0x2a0dcb(0x1de)),(_0x2c3d1a=this['_commandDisposable'])==null||_0x2c3d1a[_0x2a0dcb(0x1f3)](),this[_0x2a0dcb(0x1e7)]=null;}['_startFollowing'](){const _0x130462=_0x94c2f4;var _0x54879a;(_0x54879a=this['_commandDisposable'])==null||_0x54879a['dispose'](),this['_status$'][_0x130462(0x1f7)](_0x130462(0x24b));}[_0x94c2f4(0x249)](){const _0x5e30bf=_0x94c2f4;var _0x21248e;this['_status$'][_0x5e30bf(0x1f7)](_0x5e30bf(0x1de)),(_0x21248e=this[_0x5e30bf(0x1e7)])==null||_0x21248e[_0x5e30bf(0x1f3)](),this['_commandDisposable']=null;}[_0x94c2f4(0x214)](){const _0x5a4a24=_0x94c2f4;var _0x134633;this['_status$'][_0x5a4a24(0x1f7)](_0x5a4a24(0x26b)),(_0x134633=this[_0x5a4a24(0x1e7)])==null||_0x134633['dispose']();}[_0x94c2f4(0x1db)](_0x2358d9){const _0x4d8d5d=_0x94c2f4;if(['presenting',_0x4d8d5d(0x26b),_0x4d8d5d(0x207)]['includes'](this[_0x4d8d5d(0x21e)])||!_0x2358d9[_0x4d8d5d(0x215)]['presenter']||_0x2358d9[_0x4d8d5d(0x215)]['presenter']===this[_0x4d8d5d(0x20f)]['getMemberID']())return;this[_0x4d8d5d(0x21e)]===_0x4d8d5d(0x1de)&&this[_0x4d8d5d(0x216)]();const _0x53124e=_0x2358d9[_0x4d8d5d(0x215)][_0x4d8d5d(0x1e9)];Object[_0x4d8d5d(0x1d6)](_0x53124e)['forEach'](_0x39f73c=>{const _0x55a1dc=_0x4d8d5d;this[_0x55a1dc(0x1fc)][_0x55a1dc(0x273)](_0x39f73c['id'],_0x39f73c[_0x55a1dc(0x26a)]?JSON[_0x55a1dc(0x20c)](_0x39f73c['params']):null,{'fromCollab':!0x0});});}[_0x94c2f4(0x1dd)](){const _0x4e765c=_0x94c2f4;var _0x304165;this[_0x4e765c(0x1f1)][_0x4e765c(0x1f7)](_0x4e765c(0x207)),(_0x304165=this['_commandDisposable'])==null||_0x304165[_0x4e765c(0x1f3)]();}[_0x94c2f4(0x1f0)](){const _0x14dc6a=_0x94c2f4;this['_status$']['next'](_0x14dc6a(0x1de)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1163db),_(0x3,_0x39e2ff(L)),_(0x4,_0x3fe997)],N);function _0x5199(){const _0x1a36fe=['_startPresenting','_fetchOperations','_handleNewChangeSets','_status','then','stopFollowing','live-share.config','919047HgGWSl','asObservable','use','init','_liveShareService','colorChannel1','getLiveShareCoordinatorSync','entries','OFFLINE','LIVESHARE_OPERATION','defs','unitId','OPERATION','_presenter','getStatus','getInitialStates','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','forEach','length','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','evenodd','636PCVUKY','xlink:href','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','memberID','_startLiveShareCoordinator','Stop\x20following','type','UNIVER_UNKNOWN','displayName','has','_mountLiveShare','trim','_univerInstanceService','pipe','709408UIgFwJ','NOT_FOLLOWING','_beIdle','univerjs-icon\x20univerjs-icon-','following','unsubscribe','PRESENTING','200yEcOGr','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','stringify','25888YOuzwn','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','random','getMemberID','onCommandExecuted','currentColor','sheet','registerSharedOperation','delete','svg','path','registerInitialStateReporter','includes','idSuffix','Present\x20this\x20document','onStarting','http://www.w3.org/2000/svg','clear','IDLE','replace','0\x200\x2017\x2017','You\x27re\x20not\x20following\x20the\x20presenter','tag','params','not-following','end','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','current','add','map','HEADER_MENU','_entities','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','setConfig','1em','getValue','symbol','UNIVER_LIVE_SHARE_PLUGIN','_reporters','getCurrentTypeOfUnit$','_configService','none','_init','defIds','8190LUoSJV','assign','values','_unitID','string','pluginName','_collabSessionService','_handleOperation','_config','_handleOffline','idle','div','_handleNewHost','getTypeOfUnitDisposed$','Start','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','substring','send','_commandDisposable','_uiPartsService','operations','shouldShareOperation','createInstance','button','onRendered','_sharedOperations','startFollowing','_handleOnline','_status$','getUnitId','dispose','find','Start\x20following','complete','next','requireSession','11079GKKPzB','53473HiYgsm','live-share-icon','_commandService','dispose$','from','tryStartPresenting','override','LIVESHARE_TERMINATE','subscribe','univer-size-4','_injector','get','4224688NAsBSz','offline','mask','presenting','disposeWithMe','attrs','parse','children','registerComponent','_collabSession','sessionStatus$','getTypeOfUnitAdded$','UniverIcon','FOLLOWING','_stopFollowing','data','_startFollowing','set','status$','toString','207567JEysXj'];_0x5199=function(){return _0x1a36fe;};return _0x5199();}function Le(){const _0x351e49=_0x94c2f4,_0x36c017=_0x1a3369(S),_0x12c744=_0x1a3369(_0x131adf),_0x5280d1=_0x43c83b(()=>_0x12c744[_0x351e49(0x27c)](_0x1edb56[_0x351e49(0x275)]),void 0x0,!0x1,[]),[_0x45eb19,_0xb80a]=_0x24f563(null),[_0x47808b,_0x235c0a]=_0x24f563(c[_0x351e49(0x265)]),_0x5714da=_0x5302de(null);return _0x1d9b38(()=>(_0x5280d1&&_0x36c017[_0x351e49(0x274)](_0x5280d1['getUnitId']())[_0x351e49(0x21f)](_0x338243=>{const _0x133b34=_0x351e49;_0xb80a(_0x338243),_0x5714da[_0x133b34(0x26e)]=_0x338243['status$'][_0x133b34(0x202)](_0x4152a6=>{_0x235c0a(_0x4152a6);});}),()=>{const _0x1e5e92=_0x351e49;var _0x317318;(_0x317318=_0x5714da[_0x1e5e92(0x26e)])==null||_0x317318[_0x1e5e92(0x24c)](),_0x5714da[_0x1e5e92(0x26e)]=null;}),[_0x5280d1,_0x36c017]),_0x45eb19?_0x3b2e8c(_0x580ca5,{'align':_0x351e49(0x26c),'disabled':_0x47808b===c[_0x351e49(0x22a)],'className':_0x351e49(0x232),'overlay':_0x3b2e8c(Re,{'status':_0x47808b,'coordinator':_0x45eb19}),'children':_0x3b2e8c(_0x351e49(0x1ec),{'className':_0x38bcb7(_0x351e49(0x23a),{'univer-cursor-not-allowed':_0x47808b===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47808b!==c[_0x351e49(0x22a)]}),'type':_0x351e49(0x1ec),'children':_0x3b2e8c(W,{'className':_0x351e49(0x203)})})}):null;}function Re(_0x9e5441){const _0xee2a99=_0x94c2f4,{status:_0x2032fd,coordinator:_0x2a92e9}=_0x9e5441;switch(_0x2032fd){case c[_0xee2a99(0x265)]:return _0x3b2e8c($e,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x213)]:return _0x3b2e8c(xe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x248)]:return _0x3b2e8c(Pe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x22a)]:return _0x3b2e8c(Te,{});case c[_0xee2a99(0x24d)]:return _0x3b2e8c(Ae,{'coordinator':_0x2a92e9});default:return null;}}function $e(_0x36800c){const _0x58d5c6=_0x94c2f4,{coordinator:_0x86e0a8}=_0x36800c;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c('div',{'className':_0x58d5c6(0x24f),'children':_0x58d5c6(0x261)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x86e0a8[_0x58d5c6(0x1ff)](),'children':_0x58d5c6(0x1e2)})]});}function xe(_0x41074d){const _0x3878ce=_0x94c2f4,{coordinator:_0x519a31}=_0x41074d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x3878ce(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3878ce(0x1e4)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x519a31[_0x3878ce(0x220)](),'children':_0x3878ce(0x23e)})]});}function Pe(_0x4209f1){const _0x48fc4a=_0x94c2f4,{coordinator:_0x21a2b7}=_0x4209f1;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x48fc4a(0x1df),{'className':_0x48fc4a(0x24f),'children':_0x48fc4a(0x268)}),_0x3b2e8c(_0x4bf6a0,{'variant':'text','onClick':()=>_0x21a2b7[_0x48fc4a(0x1ef)](),'children':_0x48fc4a(0x1f5)})]});}function Ae(_0x50433d){const _0x13d664=_0x94c2f4,{coordinator:_0x2de63b}=_0x50433d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x13d664(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2e8c(_0x4bf6a0,{'variant':'default','onClick':()=>_0x2de63b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3b2e8c(_0x34fda9,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x94c2f4(0x1e3)],He=(_0x4ee589,_0x41e877,_0x5d2bc7,_0x1ec7e2)=>{for(var _0xf6315a=_0x1ec7e2>0x1?void 0x0:_0x1ec7e2?Fe(_0x41e877,_0x5d2bc7):_0x41e877,_0x357fa3=_0x4ee589['length']-0x1,_0x50ca30;_0x357fa3>=0x0;_0x357fa3--)(_0x50ca30=_0x4ee589[_0x357fa3])&&(_0xf6315a=_0x50ca30(_0xf6315a)||_0xf6315a);return _0xf6315a;},A=(_0x54abe0,_0x111759)=>(_0x10a906,_0xfe785d)=>_0x111759(_0x10a906,_0xfe785d,_0x54abe0);let m=class extends _0x237410{constructor(_0x35f642,_0x326940){const _0x433d42=_0x94c2f4;super(),this[_0x433d42(0x204)]=_0x35f642,this['_uiPartsService']=_0x326940,this['_mountLiveShare']();}[_0x94c2f4(0x243)](){const _0x46b4b5=_0x94c2f4;this[_0x46b4b5(0x20a)](this[_0x46b4b5(0x1e8)][_0x46b4b5(0x20e)](_0x54c386[_0x46b4b5(0x271)],()=>_0x40daf7(Le,this[_0x46b4b5(0x204)])));}};m=He([A(0x0,_0x39e2ff(_0x1af462)),A(0x1,_0x189af9)],m);const ye=_0x94c2f4(0x221),T={};var Ue=Object[_0x94c2f4(0x1e3)],Ve=(_0x4b6f53,_0x3ef43d,_0x15c32b,_0x590121)=>{for(var _0x173e04=_0x590121>0x1?void 0x0:_0x590121?Ue(_0x3ef43d,_0x15c32b):_0x3ef43d,_0x300e9=_0x4b6f53['length']-0x1,_0x20d0df;_0x300e9>=0x0;_0x300e9--)(_0x20d0df=_0x4b6f53[_0x300e9])&&(_0x173e04=_0x20d0df(_0x173e04)||_0x173e04);return _0x173e04;},je=(_0x1dce1c,_0x18628f)=>(_0x4bf7ce,_0x54c527)=>_0x18628f(_0x4bf7ce,_0x54c527,_0x1dce1c);let I=class extends _0x237410{constructor(_0x48fd1b){const _0x517999=_0x94c2f4;super(),this[_0x517999(0x226)]=_0x48fd1b,this['_init']();}['_init'](){const _0x1d05b8=_0x94c2f4;[_0x33d3cc['id'],_0x1ac8e2['id'],_0x45b437['id']][_0x1d05b8(0x233)](_0x2aa60b=>{const _0x3851a6=_0x1d05b8;this[_0x3851a6(0x20a)](this[_0x3851a6(0x226)][_0x3851a6(0x25a)](_0x2aa60b));});}};I=Ve([je(0x0,_0x39e2ff(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25b41c,_0xc9ab13,_0x373b7a)=>_0xc9ab13 in _0x25b41c?Me(_0x25b41c,_0xc9ab13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x373b7a}):_0x25b41c[_0xc9ab13]=_0x373b7a,We=(_0x448b4b,_0x18ed3d,_0x381973,_0x421da2)=>{const _0x4317f8=_0x94c2f4;for(var _0x39ec83=_0x421da2>0x1?void 0x0:_0x421da2?ke(_0x18ed3d,_0x381973):_0x18ed3d,_0xefb135=_0x448b4b[_0x4317f8(0x234)]-0x1,_0x27f4d5;_0xefb135>=0x0;_0xefb135--)(_0x27f4d5=_0x448b4b[_0xefb135])&&(_0x39ec83=_0x27f4d5(_0x39ec83)||_0x39ec83);return _0x39ec83;},F=(_0x25f3bc,_0x4a93e5)=>(_0x311f14,_0x1147ea)=>_0x4a93e5(_0x311f14,_0x1147ea,_0x25f3bc),B=(_0x24ac65,_0x1c5268,_0x2aba29)=>Ge(_0x24ac65,typeof _0x1c5268!=_0x94c2f4(0x279)?_0x1c5268+'':_0x1c5268,_0x2aba29);const Ye=_0x94c2f4(0x27a);let b=class extends _0x1f099d{constructor(_0x152420=T,_0x59ea89,_0x51de){const _0x2d3149=_0x94c2f4;super(),this[_0x2d3149(0x1dc)]=_0x152420,this[_0x2d3149(0x204)]=_0x59ea89,this[_0x2d3149(0x1d0)]=_0x51de;const {..._0x3f9fb8}=_0x38fee5({},T,this['_config']);this['_configService'][_0x2d3149(0x276)](ye,_0x3f9fb8);}[_0x94c2f4(0x262)](){const _0x172bdc=_0x94c2f4;_0x20cdf0(this[_0x172bdc(0x204)],_0x1c6eec([[L],[S],[I],[m]],this[_0x172bdc(0x1dc)][_0x172bdc(0x200)])),_0x5e0f2d(this['_injector'],[[I]]);}[_0x94c2f4(0x1ed)](){_0x5e0f2d(this['_injector'],[[m]]);}};B(b,_0x94c2f4(0x23f),_0x1edb56[_0x94c2f4(0x240)]),B(b,_0x94c2f4(0x1d9),Ye),b=We([_0x298814(_0x4883e2),F(0x1,_0x39e2ff(_0x1af462)),F(0x2,_0x1163db)],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 _0x558774=_0x4ed5;(function(_0x1b1696,_0x333ae4){const _0x376567=_0x4ed5,_0x55c329=_0x1b1696();while(!![]){try{const _0x5902e4=-parseInt(_0x376567(0x130))/0x1+-parseInt(_0x376567(0x12d))/0x2*(-parseInt(_0x376567(0x135))/0x3)+-parseInt(_0x376567(0x131))/0x4+parseInt(_0x376567(0x11c))/0x5+-parseInt(_0x376567(0x138))/0x6*(-parseInt(_0x376567(0x123))/0x7)+-parseInt(_0x376567(0x134))/0x8*(-parseInt(_0x376567(0x11f))/0x9)+parseInt(_0x376567(0x127))/0xa;if(_0x5902e4===_0x333ae4)break;else _0x55c329['push'](_0x55c329['shift']());}catch(_0x249a4d){_0x55c329['push'](_0x55c329['shift']());}}}(_0x3f1e,0xe2d5f));function _0x4ed5(_0x3bed8d,_0x41cc61){_0x3bed8d=_0x3bed8d-0x119;const _0x3f1eae=_0x3f1e();let _0x4ed518=_0x3f1eae[_0x3bed8d];return _0x4ed518;}import{LiveShareController as _0x706cbc,LiveShareStatus as _0x1f386b}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x560fed}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xadfe7e}from'@univerjs/sheets';import{SetScrollOperation as _0x455144}from'@univerjs/sheets-ui';import{FRange as _0x223b0a}from'@univerjs/sheets/facade';import{FUniver as _0x554deb,FEnum as _0x220dfa}from'@univerjs/core/facade';class I extends _0x223b0a{['_initialize'](_0xbc4cb0,_0x3a9d6b,_0x1be57c,_0x307268,_0xf03a1b){const _0x1f88e5=_0x4ed5,_0x5995b6=_0xbc4cb0[_0x1f88e5(0x11a)](_0x706cbc),_0x5b06f0=_0xbc4cb0[_0x1f88e5(0x11a)](_0x560fed),_0x47fba3=_0x3a9d6b['getUnitId'](),_0x3b820a=_0x3a9d6b[_0x1f88e5(0x11d)](),_0x55b194=_0x5995b6['getLiveShareCoordinatorSync'](_0x47fba3);(_0x55b194==null?void 0x0:_0x55b194['getStatus']())!==_0x1f386b[_0x1f88e5(0x139)]||(_0x1be57c[_0x1f88e5(0x137)]()!==_0x3b820a['getSheetId']()&&this[_0x1f88e5(0x12b)][_0x1f88e5(0x13a)](_0xadfe7e['id'],{'unitId':_0x47fba3,'subUnitId':_0x1be57c[_0x1f88e5(0x137)]()}),!_0x5b06f0[_0x1f88e5(0x121)](_0x47fba3))||_0xf03a1b[_0x1f88e5(0x11e)](_0x455144['id'],{'unitId':_0x3a9d6b[_0x1f88e5(0x124)](),'sheetId':_0x1be57c[_0x1f88e5(0x137)](),'sheetViewStartRow':_0x307268[_0x1f88e5(0x129)],'sheetViewStartColumn':_0x307268[_0x1f88e5(0x11b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x223b0a['extend'](I);class m extends _0x554deb{['getLiveShareStatus'](){const _0x41ea92=_0x4ed5;var _0x787a74,_0x4815ef;const _0x3b1688=this[_0x41ea92(0x13b)][_0x41ea92(0x11a)](_0x706cbc),_0x385229=(_0x787a74=this['getActiveWorkbook']())==null?void 0x0:_0x787a74['getId']();if(!_0x385229)throw new Error(_0x41ea92(0x12f));const _0x57b783=_0x3b1688[_0x41ea92(0x128)](_0x385229);return(_0x4815ef=_0x57b783==null?void 0x0:_0x57b783[_0x41ea92(0x136)]())!=null?_0x4815ef:_0x1f386b[_0x41ea92(0x120)];}[_0x558774(0x122)](){const _0x5acae0=_0x558774;var _0x30b452;const _0x56e363=this[_0x5acae0(0x13b)][_0x5acae0(0x11a)](_0x706cbc),_0x61f98e=(_0x30b452=this[_0x5acae0(0x132)]())==null?void 0x0:_0x30b452[_0x5acae0(0x133)]();if(!_0x61f98e)throw new Error(_0x5acae0(0x12f));const _0x39a64b=_0x56e363['getLiveShareCoordinatorSync'](_0x61f98e);if(!_0x39a64b)throw new Error(_0x5acae0(0x12a));_0x39a64b['startFollowing']();}[_0x558774(0x126)](){const _0x5d7112=_0x558774;var _0x1c293d;const _0x3a7381=this[_0x5d7112(0x13b)]['get'](_0x706cbc),_0x46c08a=(_0x1c293d=this[_0x5d7112(0x132)]())==null?void 0x0:_0x1c293d[_0x5d7112(0x133)]();if(!_0x46c08a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4b65e9=_0x3a7381[_0x5d7112(0x128)](_0x46c08a);if(!_0x4b65e9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b65e9[_0x5d7112(0x126)]();}[_0x558774(0x12e)](){const _0x10e387=_0x558774;var _0x97a9bf;const _0x2f517e=this[_0x10e387(0x13b)][_0x10e387(0x11a)](_0x706cbc),_0x391e2c=(_0x97a9bf=this[_0x10e387(0x132)]())==null?void 0x0:_0x97a9bf['getId']();if(!_0x391e2c)throw new Error(_0x10e387(0x12f));const _0x311fe2=_0x2f517e[_0x10e387(0x128)](_0x391e2c);if(!_0x311fe2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x311fe2['tryStartPresenting']();}[_0x558774(0x119)](){const _0x10cbcf=_0x558774;var _0xbe0776;const _0x2a000a=this[_0x10cbcf(0x13b)][_0x10cbcf(0x11a)](_0x706cbc),_0x5dd0f8=(_0xbe0776=this[_0x10cbcf(0x132)]())==null?void 0x0:_0xbe0776[_0x10cbcf(0x133)]();if(!_0x5dd0f8)throw new Error(_0x10cbcf(0x12f));const _0x404381=_0x2a000a[_0x10cbcf(0x128)](_0x5dd0f8);if(!_0x404381)throw new Error(_0x10cbcf(0x12a));_0x404381[_0x10cbcf(0x119)]();}}_0x554deb[_0x558774(0x12c)](m);function _0x3f1e(){const _0x3851ec=['PRESENTING','executeCommand','_injector','stopPresenting','get','startColumn','7696885WxekRx','getActiveSheet','syncExecuteCommand','225DkzKsC','IDLE','getRenderById','startFollowing','59885XShwBl','getUnitId','LiveShareStatusEnum','stopFollowing','8905060JMVakH','getLiveShareCoordinatorSync','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','extend','63744fvqYsa','startPresenting','No\x20active\x20workbook\x20found.','892270ylUeOq','6239960QoLJTC','getActiveWorkbook','getId','271144flcHhf','9nPVPZR','getStatus','getSheetId','6EVLvcK'];_0x3f1e=function(){return _0x3851ec;};return _0x3f1e();}class C extends _0x220dfa{get[_0x558774(0x125)](){return _0x1f386b;}}_0x220dfa[_0x558774(0x12c)](C);
1
+ const _0x15df1a=_0x4ee7;(function(_0x11bebc,_0x5d49bc){const _0x2d6039=_0x4ee7,_0x2f4f3a=_0x11bebc();while(!![]){try{const _0x1341a0=-parseInt(_0x2d6039(0xf6))/0x1*(-parseInt(_0x2d6039(0xed))/0x2)+-parseInt(_0x2d6039(0xf7))/0x3*(parseInt(_0x2d6039(0xfb))/0x4)+-parseInt(_0x2d6039(0x102))/0x5+-parseInt(_0x2d6039(0xfd))/0x6*(-parseInt(_0x2d6039(0x101))/0x7)+parseInt(_0x2d6039(0xf8))/0x8+-parseInt(_0x2d6039(0xf2))/0x9*(parseInt(_0x2d6039(0xf1))/0xa)+-parseInt(_0x2d6039(0xe6))/0xb;if(_0x1341a0===_0x5d49bc)break;else _0x2f4f3a['push'](_0x2f4f3a['shift']());}catch(_0x4b1da3){_0x2f4f3a['push'](_0x2f4f3a['shift']());}}}(_0x2b9d,0x5aa36));import{LiveShareController as _0x5786b5,LiveShareStatus as _0x58edfc}from'@univerjs-pro/live-share';function _0x4ee7(_0x2fdc37,_0x1b63a1){_0x2fdc37=_0x2fdc37-0xe5;const _0x2b9dab=_0x2b9d();let _0x4ee7ab=_0x2b9dab[_0x2fdc37];return _0x4ee7ab;}import{IRenderManagerService as _0x84d76}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x498c84}from'@univerjs/sheets';import{SetScrollOperation as _0x12a682}from'@univerjs/sheets-ui';import{FRange as _0x42ea79}from'@univerjs/sheets/facade';import{FUniver as _0x25caba,FEnum as _0x51510a}from'@univerjs/core/facade';class I extends _0x42ea79{[_0x15df1a(0xf4)](_0x388aa5,_0x46b2c6,_0x20ecc1,_0x5bf515,_0x10c7bd){const _0x3fb127=_0x15df1a,_0x4d937f=_0x388aa5['get'](_0x5786b5),_0x204a05=_0x388aa5[_0x3fb127(0x108)](_0x84d76),_0x5d51b2=_0x46b2c6[_0x3fb127(0xef)](),_0x9a40d0=_0x46b2c6['getActiveSheet'](),_0x5a2913=_0x4d937f[_0x3fb127(0xe9)](_0x5d51b2);(_0x5a2913==null?void 0x0:_0x5a2913[_0x3fb127(0xfa)]())!==_0x58edfc[_0x3fb127(0xf9)]||(_0x20ecc1[_0x3fb127(0xee)]()!==_0x9a40d0[_0x3fb127(0xee)]()&&this[_0x3fb127(0xf5)][_0x3fb127(0xfc)](_0x498c84['id'],{'unitId':_0x5d51b2,'subUnitId':_0x20ecc1['getSheetId']()}),!_0x204a05[_0x3fb127(0x107)](_0x5d51b2))||_0x10c7bd[_0x3fb127(0xfe)](_0x12a682['id'],{'unitId':_0x46b2c6[_0x3fb127(0xef)](),'sheetId':_0x20ecc1[_0x3fb127(0xee)](),'sheetViewStartRow':_0x5bf515[_0x3fb127(0xf0)],'sheetViewStartColumn':_0x5bf515[_0x3fb127(0xe8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x2b9d(){const _0x1c89f4=['getLiveShareCoordinatorSync','startFollowing','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1389038ZEcSdo','getSheetId','getUnitId','startRow','1030YzCnPL','23049WXQRvH','_injector','_initialize','_commandService','1KGyuUL','42KOOOIo','5158840DqCruh','PRESENTING','getStatus','13316ucTOwd','executeCommand','5478ijuazh','syncExecuteCommand','extend','getId','1484GRfJuV','877220nxUoee','LiveShareStatusEnum','tryStartPresenting','stopFollowing','stopPresenting','getRenderById','get','getActiveWorkbook','7434273zYoibZ','getLiveShareStatus','startColumn'];_0x2b9d=function(){return _0x1c89f4;};return _0x2b9d();}_0x42ea79['extend'](I);class m extends _0x25caba{[_0x15df1a(0xe7)](){const _0x8fa4d1=_0x15df1a;var _0x2af9b3,_0x44d587;const _0x5c6cdb=this[_0x8fa4d1(0xf3)][_0x8fa4d1(0x108)](_0x5786b5),_0x29c6ee=(_0x2af9b3=this[_0x8fa4d1(0xe5)]())==null?void 0x0:_0x2af9b3[_0x8fa4d1(0x100)]();if(!_0x29c6ee)throw new Error(_0x8fa4d1(0xeb));const _0x5e22fe=_0x5c6cdb[_0x8fa4d1(0xe9)](_0x29c6ee);return(_0x44d587=_0x5e22fe==null?void 0x0:_0x5e22fe['getStatus']())!=null?_0x44d587:_0x58edfc['IDLE'];}[_0x15df1a(0xea)](){const _0x3fe74f=_0x15df1a;var _0x5295ed;const _0x4a2468=this[_0x3fe74f(0xf3)]['get'](_0x5786b5),_0x5f7c63=(_0x5295ed=this[_0x3fe74f(0xe5)]())==null?void 0x0:_0x5295ed[_0x3fe74f(0x100)]();if(!_0x5f7c63)throw new Error(_0x3fe74f(0xeb));const _0x19f351=_0x4a2468[_0x3fe74f(0xe9)](_0x5f7c63);if(!_0x19f351)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19f351[_0x3fe74f(0xea)]();}[_0x15df1a(0x105)](){const _0x274919=_0x15df1a;var _0x128ca3;const _0x78379e=this[_0x274919(0xf3)]['get'](_0x5786b5),_0x2846f8=(_0x128ca3=this['getActiveWorkbook']())==null?void 0x0:_0x128ca3[_0x274919(0x100)]();if(!_0x2846f8)throw new Error(_0x274919(0xeb));const _0x369fd7=_0x78379e[_0x274919(0xe9)](_0x2846f8);if(!_0x369fd7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x369fd7[_0x274919(0x105)]();}['startPresenting'](){const _0x3d078b=_0x15df1a;var _0x425dd3;const _0x104bc4=this[_0x3d078b(0xf3)][_0x3d078b(0x108)](_0x5786b5),_0x4c2eba=(_0x425dd3=this[_0x3d078b(0xe5)]())==null?void 0x0:_0x425dd3[_0x3d078b(0x100)]();if(!_0x4c2eba)throw new Error(_0x3d078b(0xeb));const _0x21f1f1=_0x104bc4[_0x3d078b(0xe9)](_0x4c2eba);if(!_0x21f1f1)throw new Error(_0x3d078b(0xec));_0x21f1f1[_0x3d078b(0x104)]();}['stopPresenting'](){const _0x442797=_0x15df1a;var _0x4b5262;const _0xda59a5=this[_0x442797(0xf3)][_0x442797(0x108)](_0x5786b5),_0x445d1f=(_0x4b5262=this[_0x442797(0xe5)]())==null?void 0x0:_0x4b5262[_0x442797(0x100)]();if(!_0x445d1f)throw new Error(_0x442797(0xeb));const _0x351499=_0xda59a5[_0x442797(0xe9)](_0x445d1f);if(!_0x351499)throw new Error(_0x442797(0xec));_0x351499[_0x442797(0x106)]();}}_0x25caba['extend'](m);class C extends _0x51510a{get[_0x15df1a(0x103)](){return _0x58edfc;}}_0x51510a[_0x15df1a(0xff)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x105b4f=_0x2cf0;(function(_0x42ec40,_0x164217){const _0x31c271=_0x2cf0,_0x2798aa=_0x42ec40();while(!![]){try{const _0x4fd234=parseInt(_0x31c271(0x1c0))/0x1+-parseInt(_0x31c271(0x21e))/0x2+parseInt(_0x31c271(0x1a3))/0x3*(parseInt(_0x31c271(0x1c3))/0x4)+parseInt(_0x31c271(0x1cd))/0x5*(-parseInt(_0x31c271(0x1a8))/0x6)+-parseInt(_0x31c271(0x238))/0x7*(parseInt(_0x31c271(0x1f3))/0x8)+parseInt(_0x31c271(0x1fe))/0x9+-parseInt(_0x31c271(0x1ec))/0xa*(-parseInt(_0x31c271(0x236))/0xb);if(_0x4fd234===_0x164217)break;else _0x2798aa['push'](_0x2798aa['shift']());}catch(_0x57a09e){_0x2798aa['push'](_0x2798aa['shift']());}}}(_0x4bc3,0xcade1));var J=Object[_0x105b4f(0x1b0)],K=(_0x14a8e0,_0x590774,_0x36d8b0)=>_0x590774 in _0x14a8e0?J(_0x14a8e0,_0x590774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d8b0}):_0x14a8e0[_0x590774]=_0x36d8b0,u=(_0x15841b,_0xf8d9e0,_0x22c4e5)=>K(_0x15841b,typeof _0xf8d9e0!=_0x105b4f(0x208)?_0xf8d9e0+'':_0xf8d9e0,_0x22c4e5);import{Disposable as _0x19c5fe,toDisposable as _0x2f41f0,IUniverInstanceService as _0x49d2d0,Inject as _0xb4de5c,Injector as _0x39091f,IConfigService as _0x162c40,ICommandService as _0x3e5399,RxDisposable as _0x34eb50,UniverInstanceType as _0x122c76,DisposableCollection as _0x1ca7f7,CommandType as _0x2379b5,DependentOn as _0x2510ce,Plugin as _0x1ec157,merge as _0x2a4c60,registerDependencies as _0x47fa09,mergeOverrideWithDependencies as _0x37eaec,touchDependencies as _0x2a81f9}from'@univerjs/core';import{useDependency as _0x3284dd,useObservable as _0x36dee3,IUIPartsService as _0x1cb32c,BuiltInUIPart as _0x2d952e,connectInjector as _0x5cc7c1}from'@univerjs/ui';import{jsx as _0x46e223,jsxs as _0x539ff2,Fragment as _0x46e9aa}from'react/jsx-runtime';import{Dropdown as _0x26b96d,clsx as _0x3c8e64,Button as _0x21597a}from'@univerjs/design';import{useRef as _0xf38a0d,createElement as _0x2c90b5,forwardRef as _0x4e5534,useState as _0x4e7da4,useEffect as _0x5d80fb}from'react';import{CollaborationEvent as _0x564ee3,parseProtocolChangeset as _0x40078c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa11808,SessionStatus as _0x155833,UniverCollaborationClientPlugin as _0x16c8c0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xd8595d,SetWorksheetActiveOperation as _0x2e64c1}from'@univerjs/sheets';import{BehaviorSubject as _0x2fdabf,Subject as _0x415a69}from'rxjs';import{takeUntil as _0x56a21e,throttleTime as _0x2c6eb0}from'rxjs/operators';import{SetZoomRatioOperation as _0xba6ce1,SetScrollOperation as _0x105dbb}from'@univerjs/sheets-ui';function k({ref:_0x19be25,..._0x3012e5}){const _0x3b9e35=_0x105b4f,{icon:_0x17a20b,id:_0x550ba1,className:_0x7bb1a8,extend:_0x1882b2,..._0x27c232}=_0x3012e5,_0x1c5a00=('univerjs-icon\x20univerjs-icon-'+_0x550ba1+'\x20'+(_0x7bb1a8||''))['trim'](),_0x1c2479=_0xf38a0d('_'+Oe());return G(_0x17a20b,''+_0x550ba1,{'defIds':_0x17a20b[_0x3b9e35(0x21a)],'idSuffix':_0x1c2479['current']},{'ref':_0x19be25,'className':_0x1c5a00,..._0x27c232},_0x1882b2);}function G(_0x21c71b,_0x3db89a,_0x46eea3,_0xd75d4d,_0x3dbb56){const _0x16fb68=_0x105b4f;return _0x2c90b5(_0x21c71b['tag'],{'key':_0x3db89a,...be(_0x21c71b,_0x46eea3,_0x3dbb56),..._0xd75d4d},(Ee(_0x21c71b,_0x46eea3)[_0x16fb68(0x220)]||[])[_0x16fb68(0x20c)]((_0x52c4db,_0xf6c6bc)=>G(_0x52c4db,_0x3db89a+'-'+_0x21c71b[_0x16fb68(0x214)]+'-'+_0xf6c6bc,_0x46eea3,void 0x0,_0x3dbb56)));}function be(_0x4835e8,_0x49aeef,_0x341a92){const _0x230566=_0x105b4f,_0xc3ac35={..._0x4835e8[_0x230566(0x200)]};_0x341a92!=null&&_0x341a92[_0x230566(0x1de)]&&_0xc3ac35[_0x230566(0x1f8)]===_0x230566(0x1de)&&(_0xc3ac35[_0x230566(0x1f8)]=_0x341a92[_0x230566(0x1de)]),_0x4835e8[_0x230566(0x214)]===_0x230566(0x1b4)&&_0xc3ac35['id']&&(_0xc3ac35['id']=_0xc3ac35['id']+_0x49aeef[_0x230566(0x22c)]),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0x5889e0,_0x26227b])=>{const _0xed9923=_0x230566;_0x5889e0===_0xed9923(0x1b4)&&typeof _0x26227b==_0xed9923(0x1d5)&&(_0xc3ac35[_0x5889e0]=_0x26227b[_0xed9923(0x22d)](/url\(#(.*)\)/,_0xed9923(0x1af)+_0x49aeef[_0xed9923(0x22c)]+')'));});const {defIds:_0x5adcf5}=_0x49aeef;return!_0x5adcf5||_0x5adcf5[_0x230566(0x1c4)]===0x0||(_0x4835e8[_0x230566(0x214)]===_0x230566(0x1e3)&&_0xc3ac35[_0x230566(0x231)]&&(_0xc3ac35['xlink:href']=_0xc3ac35[_0x230566(0x231)]+_0x49aeef['idSuffix']),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0xde30ef,_0x589144])=>{const _0xb27482=_0x230566;typeof _0x589144==_0xb27482(0x1d5)&&(_0xc3ac35[_0xde30ef]=_0x589144[_0xb27482(0x22d)](/url\(#(.*)\)/,'url(#$1'+_0x49aeef[_0xb27482(0x22c)]+')'));})),_0xc3ac35;}function Ee(_0x37eaba,_0x32f198){const _0x2e155c=_0x105b4f;var _0x234cb;const {defIds:_0x475cfd}=_0x32f198;return!_0x475cfd||_0x475cfd[_0x2e155c(0x1c4)]===0x0?_0x37eaba:_0x37eaba[_0x2e155c(0x214)]===_0x2e155c(0x1f4)&&((_0x234cb=_0x37eaba[_0x2e155c(0x220)])!=null&&_0x234cb[_0x2e155c(0x1c4)])?{..._0x37eaba,'children':_0x37eaba[_0x2e155c(0x220)]['map'](_0x1bcca1=>typeof _0x1bcca1[_0x2e155c(0x200)]['id']==_0x2e155c(0x1d5)&&_0x475cfd&&_0x475cfd['includes'](_0x1bcca1['attrs']['id'])?{..._0x1bcca1,'attrs':{..._0x1bcca1[_0x2e155c(0x200)],'id':_0x1bcca1[_0x2e155c(0x200)]['id']+_0x32f198[_0x2e155c(0x22c)]}}:_0x1bcca1)}:_0x37eaba;}function Oe(){const _0x3fbdf7=_0x105b4f;return Math['random']()[_0x3fbdf7(0x22f)](0x24)[_0x3fbdf7(0x195)](0x2,0x8);}k[_0x105b4f(0x19a)]=_0x105b4f(0x1bd);const we={'tag':_0x105b4f(0x223),'attrs':{'xmlns':_0x105b4f(0x1c2),'fill':_0x105b4f(0x216),'viewBox':_0x105b4f(0x1eb),'width':_0x105b4f(0x1ad),'height':_0x105b4f(0x1ad)},'children':[{'tag':_0x105b4f(0x1a1),'attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1b3)}},{'tag':'path','attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1e4),'fillRule':_0x105b4f(0x1f7),'clipRule':_0x105b4f(0x1f7)}}]},W=_0x4e5534(function(_0x1d92a2,_0x15aa4d){const _0x1c883a=_0x105b4f;return _0x2c90b5(k,Object[_0x1c883a(0x1fd)]({},_0x1d92a2,{'id':_0x1c883a(0x1b1),'ref':_0x15aa4d,'icon':we}));});W[_0x105b4f(0x19a)]=_0x105b4f(0x1d8);class L extends _0x19c5fe{constructor(){const _0x112e80=_0x105b4f;super(...arguments),u(this,_0x112e80(0x1d6),new Set()),u(this,'_reporters',new Set());}[_0x105b4f(0x215)](_0x835e58){const _0x4477b4=_0x105b4f;return this[_0x4477b4(0x1d6)][_0x4477b4(0x1fa)](_0x835e58),_0x2f41f0(()=>this['_sharedOperations']['delete'](_0x835e58));}[_0x105b4f(0x1e5)](_0x4a3df0){const _0x1d81b4=_0x105b4f;return this[_0x1d81b4(0x1c5)][_0x1d81b4(0x1fa)](_0x4a3df0),_0x2f41f0(()=>this[_0x1d81b4(0x1c5)][_0x1d81b4(0x23d)](_0x4a3df0));}[_0x105b4f(0x235)](_0x38ea69){const _0x1430d9=_0x105b4f;return this[_0x1430d9(0x1d6)]['has'](_0x38ea69);}[_0x105b4f(0x21f)](_0x4c130e){const _0x827315=_0x105b4f;return Array['from'](this[_0x827315(0x1c5)])['map'](_0x320bfe=>_0x320bfe(_0x4c130e));}}var Ne=Object[_0x105b4f(0x19c)],Y=(_0x18595c,_0x5c0b4a,_0x50b15e,_0xc7cae9)=>{const _0x2d14e4=_0x105b4f;for(var _0x3799f8=_0xc7cae9>0x1?void 0x0:_0xc7cae9?Ne(_0x5c0b4a,_0x50b15e):_0x5c0b4a,_0x3dcda3=_0x18595c[_0x2d14e4(0x1c4)]-0x1,_0x4db411;_0x3dcda3>=0x0;_0x3dcda3--)(_0x4db411=_0x18595c[_0x3dcda3])&&(_0x3799f8=_0x4db411(_0x3799f8)||_0x3799f8);return _0x3799f8;},_=(_0x27f62d,_0x278db7)=>(_0x4b1b12,_0x54d1cb)=>_0x278db7(_0x4b1b12,_0x54d1cb,_0x27f62d);let S=class extends _0x34eb50{constructor(_0xb583bf,_0x4480d9,_0x327328){const _0x3a4e0c=_0x105b4f;super(),u(this,_0x3a4e0c(0x226),new Map()),(this['_univerInstanceService']=_0xb583bf,this[_0x3a4e0c(0x1aa)]=_0x4480d9,this[_0x3a4e0c(0x19b)]=_0x327328,this['_init']());}async['getLiveShareCoordinator'](_0x162e45){const _0x1297d7=_0x105b4f;return this[_0x1297d7(0x226)]['has'](_0x162e45)||await this[_0x1297d7(0x22a)](_0x162e45),this[_0x1297d7(0x226)][_0x1297d7(0x228)](_0x162e45);}['getLiveShareCoordinatorSync'](_0x5be43b){const _0x27a61c=_0x105b4f;var _0x28abce;return(_0x28abce=this[_0x27a61c(0x226)][_0x27a61c(0x228)](_0x5be43b))!=null?_0x28abce:null;}[_0x105b4f(0x1ba)](){const _0x55a1dd=_0x105b4f;this['_univerInstanceService'][_0x55a1dd(0x1c1)](_0x122c76[_0x55a1dd(0x203)])[_0x55a1dd(0x1bf)](_0x56a21e(this[_0x55a1dd(0x222)]))[_0x55a1dd(0x221)](async _0x40c9ee=>{const _0x4e61a1=_0x55a1dd,_0x22b9bf=_0x40c9ee[_0x4e61a1(0x23b)]();this['_entities'][_0x4e61a1(0x1d0)](_0x22b9bf)||this[_0x4e61a1(0x22a)](_0x22b9bf);}),this[_0x55a1dd(0x1c7)][_0x55a1dd(0x237)](_0x122c76[_0x55a1dd(0x203)])['pipe'](_0x56a21e(this['dispose$']))[_0x55a1dd(0x221)](_0x1904f2=>{const _0x27a46e=_0x55a1dd,_0xb6d5ff=_0x1904f2[_0x27a46e(0x23b)](),_0x3825a4=this[_0x27a46e(0x226)][_0x27a46e(0x228)](_0xb6d5ff);_0x3825a4==null||_0x3825a4['dispose']();});}async[_0x105b4f(0x22a)](_0x2efe1d){const _0xae3cb7=_0x105b4f,_0x5aeec5=await this['_collabSessionService']['requireSession'](_0x2efe1d),_0x4486d8=this[_0xae3cb7(0x1aa)][_0xae3cb7(0x1ea)](N,_0x2efe1d,_0x5aeec5);return _0x4486d8[_0xae3cb7(0x1cf)](),this[_0xae3cb7(0x226)][_0xae3cb7(0x239)](_0x2efe1d,_0x4486d8),_0x4486d8;}};S=Y([_(0x0,_0x49d2d0),_(0x1,_0xb4de5c(_0x39091f)),_(0x2,_0xb4de5c(_0xa11808))],S);var c=(_0x2ca91a=>(_0x2ca91a[_0x105b4f(0x1ab)]=_0x105b4f(0x1a7),_0x2ca91a[_0x105b4f(0x1a4)]=_0x105b4f(0x1d2),_0x2ca91a[_0x105b4f(0x1dc)]=_0x105b4f(0x194),_0x2ca91a[_0x105b4f(0x1b9)]=_0x105b4f(0x232),_0x2ca91a['PRESENTING']=_0x105b4f(0x192),_0x2ca91a))(c||{});const Ce=_0x105b4f(0x1dd),De=0xc8;let N=class extends _0x34eb50{constructor(_0x185fa4,_0x8785a7,_0x31829b,_0x56baef,_0xf9d038){const _0x2b68a5=_0x105b4f;super(),u(this,_0x2b68a5(0x198),new _0x2fdabf(_0x2b68a5(0x1d2))),u(this,_0x2b68a5(0x211),this[_0x2b68a5(0x198)][_0x2b68a5(0x19e)]()),u(this,'_init',!0x1),u(this,_0x2b68a5(0x227),null),u(this,_0x2b68a5(0x1c8),null),(this[_0x2b68a5(0x202)]=_0x185fa4,this[_0x2b68a5(0x1ef)]=_0x8785a7,this[_0x2b68a5(0x1d9)]=_0x31829b,this[_0x2b68a5(0x212)]=_0x56baef,this['_commandService']=_0xf9d038);}get[_0x105b4f(0x199)](){const _0x28c3c4=_0x105b4f;return this[_0x28c3c4(0x198)][_0x28c3c4(0x1b8)]();}[_0x105b4f(0x1b6)](){const _0x546d94=_0x105b4f;var _0x4b7cc3;(_0x4b7cc3=this[_0x546d94(0x227)])==null||_0x4b7cc3[_0x546d94(0x1b6)](),this[_0x546d94(0x198)][_0x546d94(0x1df)](_0x546d94(0x1d2)),this[_0x546d94(0x198)][_0x546d94(0x1e1)]();}[_0x105b4f(0x197)](){const _0x3f46ba=_0x105b4f;return this[_0x3f46ba(0x199)];}[_0x105b4f(0x1cf)](){const _0x28fbd3=_0x105b4f;this[_0x28fbd3(0x1ba)]||(this['_init']=!0x0,this[_0x28fbd3(0x1ef)]['sessionStatus$'][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x45450e=>{const _0x41d137=_0x28fbd3;switch(_0x45450e){case _0x155833[_0x41d137(0x1ab)]:this[_0x41d137(0x224)]();break;case _0x155833[_0x41d137(0x205)]:this[_0x41d137(0x1a2)]();break;}}),this[_0x28fbd3(0x1ef)][_0x28fbd3(0x206)][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x21501b=>{const _0x40db3e=_0x28fbd3,{eventID:_0x4a89a2}=_0x21501b;switch(_0x4a89a2){case _0x564ee3[_0x40db3e(0x1bc)]:this['_handleNewHost'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x19d)]:this['_handleOperation'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x1e0)]:this[_0x40db3e(0x1e9)]();break;case _0x564ee3[_0x40db3e(0x21b)]:this[_0x40db3e(0x21d)](_0x21501b);break;}}));}[_0x105b4f(0x193)](){const _0x1757f5=_0x105b4f;this[_0x1757f5(0x1ef)][_0x1757f5(0x1bb)]({'eventID':_0x564ee3[_0x1757f5(0x210)],'data':{'unitID':this[_0x1757f5(0x202)],'userID':this[_0x1757f5(0x1ef)][_0x1757f5(0x1e7)]()}},this[_0x1757f5(0x202)]);}[_0x105b4f(0x1ca)](){const _0x358fbe=_0x105b4f;this[_0x358fbe(0x199)]===_0x358fbe(0x192)&&(this[_0x358fbe(0x198)][_0x358fbe(0x1df)](_0x358fbe(0x1d2)),this[_0x358fbe(0x1ef)][_0x358fbe(0x1bb)]({'eventID':_0x564ee3[_0x358fbe(0x1e0)],'data':{'unitID':this[_0x358fbe(0x202)]}},this[_0x358fbe(0x202)]));}[_0x105b4f(0x217)](){const _0x4c5053=_0x105b4f;this[_0x4c5053(0x199)]==='not-following'&&(this['_status$'][_0x4c5053(0x1df)](_0x4c5053(0x194)),this[_0x4c5053(0x1ac)]());}[_0x105b4f(0x233)](){const _0x207bb2=_0x105b4f;this[_0x207bb2(0x199)]==='following'&&this[_0x207bb2(0x1db)]();}[_0x105b4f(0x1f2)](_0x258b83){const _0x3cc256=_0x105b4f,{presenter:_0x7afcbf}=_0x258b83[_0x3cc256(0x1a9)],_0x2efc6d=this['_collabSession'][_0x3cc256(0x1e7)]();this[_0x3cc256(0x1c8)]=_0x7afcbf,_0x7afcbf===_0x2efc6d?(this['_stopFollowing'](),this[_0x3cc256(0x1e6)]()):this[_0x3cc256(0x199)]!==_0x3cc256(0x232)&&(this[_0x3cc256(0x1f5)](),this[_0x3cc256(0x1ac)]());}[_0x105b4f(0x196)](){const _0x47edfb=_0x105b4f,_0x136365={'eventID':_0x564ee3[_0x47edfb(0x1be)]};this['_collabSession'][_0x47edfb(0x1bb)](_0x136365,this[_0x47edfb(0x202)]);}['_handleTerminate'](){const _0x2f3a3b=_0x105b4f;this[_0x2f3a3b(0x1c8)]=null,this[_0x2f3a3b(0x199)]!==_0x2f3a3b(0x192)&&this[_0x2f3a3b(0x1cc)]();}[_0x105b4f(0x21d)](_0x250de6){const _0x5a0456=_0x105b4f;if(this[_0x5a0456(0x199)]==='following'&&this['_presenter']===_0x250de6[_0x5a0456(0x1a9)][_0x5a0456(0x1f0)]){const _0xc47a3c=_0x40078c(_0x250de6[_0x5a0456(0x1a9)])[_0x5a0456(0x1ee)][_0x5a0456(0x207)]()['find'](_0x2167f0=>_0x2167f0['id']===_0xd8595d['id']);if(_0xc47a3c){const _0x87f447=_0xc47a3c[_0x5a0456(0x218)][_0x5a0456(0x1fc)],_0xe57cf7=_0xc47a3c[_0x5a0456(0x218)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2e64c1['id'],{'unitId':_0x87f447,'subUnitId':_0xe57cf7},{'fromCollab':!0x0});});}}}[_0x105b4f(0x1e6)](){const _0x39afc7=_0x105b4f;this['_status$']['next'](_0x39afc7(0x192));const _0x35359e=new Map(),_0x298573=this[_0x39afc7(0x227)]=new _0x1ca7f7();_0x298573['add'](_0x2f41f0(()=>{const _0x3ff51f=_0x39afc7;_0x35359e['forEach'](_0x205651=>_0x205651[_0x3ff51f(0x1e1)]()),_0x35359e[_0x3ff51f(0x213)]();})),_0x298573[_0x39afc7(0x1fa)](this[_0x39afc7(0x1ce)][_0x39afc7(0x230)](_0x564bf6=>{const _0x4b54e6=_0x39afc7;var _0x5c1107;if(_0x564bf6[_0x4b54e6(0x23a)]!==_0x2379b5['OPERATION']||!this['_liveShareService'][_0x4b54e6(0x235)](_0x564bf6['id']))return;const {id:_0x563181}=_0x564bf6;let _0x37d666;_0x35359e['has'](_0x563181)?_0x37d666=_0x35359e[_0x4b54e6(0x228)](_0x563181):(_0x37d666=new _0x415a69(),_0x35359e['set'](_0x563181,_0x37d666),_0x37d666[_0x4b54e6(0x1bf)](_0x2c6eb0((_0x5c1107=this[_0x4b54e6(0x1d9)][_0x4b54e6(0x1c6)](Ce))!=null?_0x5c1107:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4bf215=>{const _0x2185e4=_0x4b54e6;this[_0x2185e4(0x1ef)][_0x2185e4(0x1bb)]({'eventID':_0x564ee3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2185e4(0x202)],'operations':{[_0x4bf215['id']]:{'id':_0x4bf215['id'],'params':JSON[_0x2185e4(0x20b)](_0x4bf215['params'])}}}},this[_0x2185e4(0x202)]);})),_0x37d666[_0x4b54e6(0x1df)](_0x564bf6);})),this['_liveShareService'][_0x39afc7(0x21f)](this[_0x39afc7(0x202)])[_0x39afc7(0x22b)](_0x32ed6a=>this[_0x39afc7(0x1ef)]['send']({'eventID':_0x564ee3[_0x39afc7(0x19d)],'data':{'unitID':this[_0x39afc7(0x202)],'operations':{[_0x32ed6a['id']]:{'id':_0x32ed6a['id'],'params':JSON[_0x39afc7(0x20b)](_0x32ed6a['params'])}}}},this[_0x39afc7(0x202)]));}[_0x105b4f(0x1f5)](){const _0x56783e=_0x105b4f;var _0x509977;this['_status$'][_0x56783e(0x1df)](_0x56783e(0x1d2)),(_0x509977=this[_0x56783e(0x227)])==null||_0x509977[_0x56783e(0x1b6)](),this[_0x56783e(0x227)]=null;}[_0x105b4f(0x1ac)](){const _0x435280=_0x105b4f;var _0x991dee;(_0x991dee=this[_0x435280(0x227)])==null||_0x991dee['dispose'](),this[_0x435280(0x198)]['next']('following');}['_beIdle'](){const _0x1845e5=_0x105b4f;var _0x67b2a6;this[_0x1845e5(0x198)][_0x1845e5(0x1df)](_0x1845e5(0x1d2)),(_0x67b2a6=this[_0x1845e5(0x227)])==null||_0x67b2a6[_0x1845e5(0x1b6)](),this[_0x1845e5(0x227)]=null;}[_0x105b4f(0x1db)](){const _0x239549=_0x105b4f;var _0x4103a3;this[_0x239549(0x198)][_0x239549(0x1df)](_0x239549(0x232)),(_0x4103a3=this[_0x239549(0x227)])==null||_0x4103a3[_0x239549(0x1b6)]();}[_0x105b4f(0x1b5)](_0x3a49cb){const _0x3cac2b=_0x105b4f;if([_0x3cac2b(0x192),_0x3cac2b(0x232),_0x3cac2b(0x1a7)][_0x3cac2b(0x1d4)](this[_0x3cac2b(0x199)])||!_0x3a49cb[_0x3cac2b(0x1a9)]['presenter']||_0x3a49cb['data']['presenter']===this[_0x3cac2b(0x1ef)][_0x3cac2b(0x1e7)]())return;this[_0x3cac2b(0x199)]==='idle'&&this['_startFollowing']();const _0x2e60c5=_0x3a49cb[_0x3cac2b(0x1a9)]['operations'];Object['values'](_0x2e60c5)[_0x3cac2b(0x22b)](_0x111f87=>{const _0xfa675f=_0x3cac2b;this[_0xfa675f(0x1ce)][_0xfa675f(0x1cb)](_0x111f87['id'],_0x111f87[_0xfa675f(0x218)]?JSON[_0xfa675f(0x1ae)](_0x111f87[_0xfa675f(0x218)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x902da0=_0x105b4f;var _0x37cdf6;this[_0x902da0(0x198)][_0x902da0(0x1df)](_0x902da0(0x1a7)),(_0x37cdf6=this[_0x902da0(0x227)])==null||_0x37cdf6[_0x902da0(0x1b6)]();}[_0x105b4f(0x1a2)](){const _0x48ac69=_0x105b4f;this[_0x48ac69(0x198)][_0x48ac69(0x1df)]('idle'),this[_0x48ac69(0x196)]();}};N=Y([_(0x2,_0x162c40),_(0x3,_0xb4de5c(L)),_(0x4,_0x3e5399)],N);function Le(){const _0x38392e=_0x105b4f,_0xeda6f3=_0x3284dd(S),_0x2ca413=_0x3284dd(_0x49d2d0),_0x148d05=_0x36dee3(()=>_0x2ca413[_0x38392e(0x1da)](_0x122c76['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4d6f57,_0x21cce1]=_0x4e7da4(null),[_0x1220af,_0x1146e6]=_0x4e7da4(c[_0x38392e(0x1a4)]),_0x263fba=_0xf38a0d(null);return _0x5d80fb(()=>(_0x148d05&&_0xeda6f3[_0x38392e(0x1d7)](_0x148d05[_0x38392e(0x23b)]())[_0x38392e(0x1b2)](_0x1a2f64=>{const _0x3cef76=_0x38392e;_0x21cce1(_0x1a2f64),_0x263fba['current']=_0x1a2f64[_0x3cef76(0x211)][_0x3cef76(0x221)](_0x32f005=>{_0x1146e6(_0x32f005);});}),()=>{const _0x3bde3d=_0x38392e;var _0x4e97ea;(_0x4e97ea=_0x263fba[_0x3bde3d(0x1f6)])==null||_0x4e97ea[_0x3bde3d(0x20f)](),_0x263fba['current']=null;}),[_0x148d05,_0xeda6f3]),_0x4d6f57?_0x46e223(_0x26b96d,{'align':_0x38392e(0x204),'disabled':_0x1220af===c[_0x38392e(0x1ab)],'className':_0x38392e(0x1b7),'overlay':_0x46e223(Re,{'status':_0x1220af,'coordinator':_0x4d6f57}),'children':_0x46e223(_0x38392e(0x1a5),{'className':_0x3c8e64('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1220af===c[_0x38392e(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1220af!==c[_0x38392e(0x1ab)]}),'type':'button','children':_0x46e223(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f9b59){const _0x1f8106=_0x105b4f,{status:_0xa7e895,coordinator:_0x371e7a}=_0x2f9b59;switch(_0xa7e895){case c[_0x1f8106(0x1a4)]:return _0x46e223($e,{'coordinator':_0x371e7a});case c[_0x1f8106(0x1dc)]:return _0x46e223(xe,{'coordinator':_0x371e7a});case c['NOT_FOLLOWING']:return _0x46e223(Pe,{'coordinator':_0x371e7a});case c['OFFLINE']:return _0x46e223(Te,{});case c[_0x1f8106(0x1e2)]:return _0x46e223(Ae,{'coordinator':_0x371e7a});default:return null;}}function $e(_0xc6d450){const _0x4e0a36=_0x105b4f,{coordinator:_0x3df512}=_0xc6d450;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223('div',{'className':_0x4e0a36(0x201),'children':_0x4e0a36(0x1a6)}),_0x46e223(_0x21597a,{'onClick':()=>_0x3df512[_0x4e0a36(0x193)](),'children':_0x4e0a36(0x225)})]});}function xe(_0x5739f4){const _0x1ab26f=_0x105b4f,{coordinator:_0x5f3e05}=_0x5739f4;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0x1ab26f(0x234),{'className':_0x1ab26f(0x201),'children':_0x1ab26f(0x1a0)}),_0x46e223(_0x21597a,{'onClick':()=>_0x5f3e05[_0x1ab26f(0x233)](),'children':_0x1ab26f(0x23c)})]});}function Pe(_0x1ea74d){const _0xc46fc2=_0x105b4f,{coordinator:_0x52d7ce}=_0x1ea74d;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xc46fc2(0x234),{'className':_0xc46fc2(0x201),'children':_0xc46fc2(0x1c9)}),_0x46e223(_0x21597a,{'variant':'text','onClick':()=>_0x52d7ce[_0xc46fc2(0x217)](),'children':_0xc46fc2(0x20a)})]});}function _0x4bc3(){const _0x365bfb=['You\x27re\x20following\x20the\x20presenter','path','_handleOnline','1215cccCXK','IDLE','button','Present\x20this\x20document','offline','6GJLmww','data','_injector','OFFLINE','_startFollowing','1em','parse','url(#$1','defineProperty','live-share-icon','then','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','mask','_handleOperation','dispose','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','getValue','NOT_FOLLOWING','_init','send','LIVESHARE_NEW_HOST','UniverIcon','LIVESHARE_FETCH_OPERATIONS','pipe','1066867ONVETv','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','4688hbUvvx','length','_reporters','getConfig','_univerInstanceService','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','executeCommand','_beIdle','2944430gFiIVp','_commandService','init','has','live-share.config','idle','default','includes','string','_sharedOperations','getLiveShareCoordinator','LiveShareIcon','_configService','getCurrentTypeOfUnit$','_stopFollowing','FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','next','LIVESHARE_TERMINATE','complete','PRESENTING','use','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','registerInitialStateReporter','_startPresenting','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','createInstance','0\x200\x2017\x2017','4291060ietMZS','registerComponent','mutations','_collabSession','memberID','onStarting','_handleNewHost','5987768EuxmaE','defs','_stopPresenting','current','evenodd','fill','You\x27re\x20presenting\x20the\x20document','add','_uiPartsService','unitId','assign','1848528fHxHbJ','onRendered','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','UNIVER_SHEET','end','ONLINE','event$','reverse','symbol','override','Start\x20following','stringify','map','_config','setConfig','unsubscribe','LIVESHARE_REQUEST_HOST','status$','_liveShareService','clear','tag','registerSharedOperation','none','startFollowing','params','pluginName','defIds','NEW_CHANGESETS','entries','_handleNewChangeSets','1731870ffdTaq','getInitialStates','children','subscribe','dispose$','svg','_handleOffline','Start','_entities','_commandDisposable','get','currentColor','_startLiveShareCoordinator','forEach','idSuffix','replace','_mountLiveShare','toString','onCommandExecuted','xlink:href','not-following','stopFollowing','div','shouldShareOperation','33VnLGcf','getTypeOfUnitDisposed$','7dnmgxV','set','type','getUnitId','Stop\x20following','delete','presenting','tryStartPresenting','following','substring','_fetchOperations','getStatus','_status$','_status','displayName','_collabSessionService','getOwnPropertyDescriptor','LIVESHARE_OPERATION','asObservable','disposeWithMe'];_0x4bc3=function(){return _0x365bfb;};return _0x4bc3();}function Ae(_0x4ec58f){const _0xcd0b7c=_0x105b4f,{coordinator:_0x185c56}=_0x4ec58f;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xcd0b7c(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcd0b7c(0x1f9)}),_0x46e223(_0x21597a,{'variant':_0xcd0b7c(0x1d3),'onClick':()=>_0x185c56[_0xcd0b7c(0x1ca)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x46e223(_0x46e9aa,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x105b4f(0x19c)],He=(_0x255dcd,_0x1a5c41,_0x49d45d,_0x786092)=>{for(var _0x525b14=_0x786092>0x1?void 0x0:_0x786092?Fe(_0x1a5c41,_0x49d45d):_0x1a5c41,_0xd22516=_0x255dcd['length']-0x1,_0x97ffff;_0xd22516>=0x0;_0xd22516--)(_0x97ffff=_0x255dcd[_0xd22516])&&(_0x525b14=_0x97ffff(_0x525b14)||_0x525b14);return _0x525b14;},A=(_0x12b793,_0x47751e)=>(_0x79e905,_0xf24172)=>_0x47751e(_0x79e905,_0xf24172,_0x12b793);let m=class extends _0x19c5fe{constructor(_0xd63cca,_0x3488ea){const _0x2758c8=_0x105b4f;super(),this['_injector']=_0xd63cca,this[_0x2758c8(0x1fb)]=_0x3488ea,this[_0x2758c8(0x22e)]();}[_0x105b4f(0x22e)](){const _0x257e9b=_0x105b4f;this[_0x257e9b(0x19f)](this[_0x257e9b(0x1fb)][_0x257e9b(0x1ed)](_0x2d952e['HEADER_MENU'],()=>_0x5cc7c1(Le,this[_0x257e9b(0x1aa)])));}};m=He([A(0x0,_0xb4de5c(_0x39091f)),A(0x1,_0x1cb32c)],m);const ye=_0x105b4f(0x1d1),T={};var Ue=Object[_0x105b4f(0x19c)],Ve=(_0x353cd4,_0x541fb5,_0x4dbd46,_0x2fff44)=>{const _0x585f2b=_0x105b4f;for(var _0x36e467=_0x2fff44>0x1?void 0x0:_0x2fff44?Ue(_0x541fb5,_0x4dbd46):_0x541fb5,_0x5db4eb=_0x353cd4[_0x585f2b(0x1c4)]-0x1,_0x555916;_0x5db4eb>=0x0;_0x5db4eb--)(_0x555916=_0x353cd4[_0x5db4eb])&&(_0x36e467=_0x555916(_0x36e467)||_0x36e467);return _0x36e467;},je=(_0x86080f,_0x697570)=>(_0x1dd81d,_0x276284)=>_0x697570(_0x1dd81d,_0x276284,_0x86080f);let I=class extends _0x19c5fe{constructor(_0x420fed){const _0x545cda=_0x105b4f;super(),this[_0x545cda(0x212)]=_0x420fed,this[_0x545cda(0x1ba)]();}['_init'](){[_0xba6ce1['id'],_0x105dbb['id'],_0x2e64c1['id']]['forEach'](_0x43d7ad=>{const _0x439df9=_0x2cf0;this['disposeWithMe'](this[_0x439df9(0x212)][_0x439df9(0x215)](_0x43d7ad));});}};I=Ve([je(0x0,_0xb4de5c(L))],I);function _0x2cf0(_0xc200c0,_0x258a0d){_0xc200c0=_0xc200c0-0x192;const _0x4bc32d=_0x4bc3();let _0x2cf084=_0x4bc32d[_0xc200c0];return _0x2cf084;}var Me=Object[_0x105b4f(0x1b0)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x547a47,_0x4d3bcb,_0xd46219)=>_0x4d3bcb in _0x547a47?Me(_0x547a47,_0x4d3bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd46219}):_0x547a47[_0x4d3bcb]=_0xd46219,We=(_0x47fd44,_0x58f49e,_0x5e44c1,_0xffcf3a)=>{const _0x3f7eec=_0x105b4f;for(var _0x199bea=_0xffcf3a>0x1?void 0x0:_0xffcf3a?ke(_0x58f49e,_0x5e44c1):_0x58f49e,_0x51af3e=_0x47fd44[_0x3f7eec(0x1c4)]-0x1,_0x3f9398;_0x51af3e>=0x0;_0x51af3e--)(_0x3f9398=_0x47fd44[_0x51af3e])&&(_0x199bea=_0x3f9398(_0x199bea)||_0x199bea);return _0x199bea;},F=(_0x5891e1,_0x324080)=>(_0x36dbcd,_0x5073de)=>_0x324080(_0x36dbcd,_0x5073de,_0x5891e1),B=(_0x165e69,_0x37f9aa,_0xf3451d)=>Ge(_0x165e69,typeof _0x37f9aa!=_0x105b4f(0x208)?_0x37f9aa+'':_0x37f9aa,_0xf3451d);const Ye=_0x105b4f(0x1e8);let b=class extends _0x1ec157{constructor(_0x1de8fd=T,_0x198cd6,_0x12f543){const _0x5d285c=_0x105b4f;super(),this['_config']=_0x1de8fd,this[_0x5d285c(0x1aa)]=_0x198cd6,this[_0x5d285c(0x1d9)]=_0x12f543;const {..._0x11363f}=_0x2a4c60({},T,this['_config']);this[_0x5d285c(0x1d9)][_0x5d285c(0x20e)](ye,_0x11363f);}[_0x105b4f(0x1f1)](){const _0x4a008a=_0x105b4f;_0x47fa09(this[_0x4a008a(0x1aa)],_0x37eaec([[L],[S],[I],[m]],this[_0x4a008a(0x20d)][_0x4a008a(0x209)])),_0x2a81f9(this['_injector'],[[I]]);}[_0x105b4f(0x1ff)](){_0x2a81f9(this['_injector'],[[m]]);}};B(b,_0x105b4f(0x23a),_0x122c76['UNIVER_UNKNOWN']),B(b,_0x105b4f(0x219),Ye),b=We([_0x2510ce(_0x16c8c0),F(0x1,_0xb4de5c(_0x39091f)),F(0x2,_0x162c40)],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 _0x94c2f4=_0x21c3;function _0x21c3(_0x446bb3,_0x18f90f){_0x446bb3=_0x446bb3-0x1d0;const _0x519940=_0x5199();let _0x21c38f=_0x519940[_0x446bb3];return _0x21c38f;}(function(_0x4c86f3,_0x134e2f){const _0x38792d=_0x21c3,_0x180f4e=_0x4c86f3();while(!![]){try{const _0x518ddf=-parseInt(_0x38792d(0x222))/0x1+parseInt(_0x38792d(0x247))/0x2+-parseInt(_0x38792d(0x21a))/0x3+-parseInt(_0x38792d(0x252))/0x4*(-parseInt(_0x38792d(0x24e))/0x5)+-parseInt(_0x38792d(0x237))/0x6*(-parseInt(_0x38792d(0x1fa))/0x7)+-parseInt(_0x38792d(0x206))/0x8+parseInt(_0x38792d(0x1f9))/0x9*(parseInt(_0x38792d(0x1d4))/0xa);if(_0x518ddf===_0x134e2f)break;else _0x180f4e['push'](_0x180f4e['shift']());}catch(_0x39cf1a){_0x180f4e['push'](_0x180f4e['shift']());}}}(_0x5199,0xdf6f1));var J=Object[_0x94c2f4(0x250)],K=(_0x37670d,_0x4433f6,_0x29d063)=>_0x4433f6 in _0x37670d?J(_0x37670d,_0x4433f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d063}):_0x37670d[_0x4433f6]=_0x29d063,u=(_0x548a32,_0x5e598a,_0xf6d060)=>K(_0x548a32,typeof _0x5e598a!=_0x94c2f4(0x279)?_0x5e598a+'':_0x5e598a,_0xf6d060);import{Disposable as _0x237410,toDisposable as _0x479776,IUniverInstanceService as _0x131adf,Inject as _0x39e2ff,Injector as _0x1af462,IConfigService as _0x1163db,ICommandService as _0x3fe997,RxDisposable as _0x3c244d,UniverInstanceType as _0x1edb56,DisposableCollection as _0x56d0d3,CommandType as _0x11ab87,DependentOn as _0x298814,Plugin as _0x1f099d,merge as _0x38fee5,registerDependencies as _0x20cdf0,mergeOverrideWithDependencies as _0x1c6eec,touchDependencies as _0x5e0f2d}from'@univerjs/core';import{useDependency as _0x1a3369,useObservable as _0x43c83b,IUIPartsService as _0x189af9,BuiltInUIPart as _0x54c386,connectInjector as _0x40daf7}from'@univerjs/ui';import{jsx as _0x3b2e8c,jsxs as _0x5a8b02,Fragment as _0x34fda9}from'react/jsx-runtime';import{Dropdown as _0x580ca5,clsx as _0x38bcb7,Button as _0x4bf6a0}from'@univerjs/design';import{useRef as _0x5302de,createElement as _0x4c6606,forwardRef as _0x13d357,useState as _0x24f563,useEffect as _0x1d9b38}from'react';import{CollaborationEvent as _0x117a17,parseProtocolChangeset as _0x1a1c61}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x12178f,SessionStatus as _0x2ec079,UniverCollaborationClientPlugin as _0x4883e2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x109733,SetWorksheetActiveOperation as _0x45b437}from'@univerjs/sheets';import{BehaviorSubject as _0x5ee00e,Subject as _0x13c737}from'rxjs';import{takeUntil as _0x2cd887,throttleTime as _0x3e7564}from'rxjs/operators';import{SetZoomRatioOperation as _0x33d3cc,SetScrollOperation as _0x1ac8e2}from'@univerjs/sheets-ui';function k({ref:_0xb065e,..._0x3a7358}){const _0x361340=_0x94c2f4,{icon:_0x54010d,id:_0x1cfe5c,className:_0x190099,extend:_0x57bce0,..._0x488160}=_0x3a7358,_0x2d8fc4=(_0x361340(0x24a)+_0x1cfe5c+'\x20'+(_0x190099||''))[_0x361340(0x244)](),_0x37b877=_0x5302de('_'+Oe());return G(_0x54010d,''+_0x1cfe5c,{'defIds':_0x54010d[_0x361340(0x1d3)],'idSuffix':_0x37b877[_0x361340(0x26e)]},{'ref':_0xb065e,'className':_0x2d8fc4,..._0x488160},_0x57bce0);}function G(_0x240805,_0x41f09f,_0x555cdc,_0x1cc80c,_0x1bfed9){const _0x28632a=_0x94c2f4;return _0x4c6606(_0x240805[_0x28632a(0x269)],{'key':_0x41f09f,...be(_0x240805,_0x555cdc,_0x1bfed9),..._0x1cc80c},(Ee(_0x240805,_0x555cdc)[_0x28632a(0x20d)]||[])[_0x28632a(0x270)]((_0x1bddaa,_0x1f5413)=>G(_0x1bddaa,_0x41f09f+'-'+_0x240805['tag']+'-'+_0x1f5413,_0x555cdc,void 0x0,_0x1bfed9)));}function be(_0x320310,_0x2e634b,_0x158a5f){const _0x5cf614=_0x94c2f4,_0x1a26f2={..._0x320310['attrs']};_0x158a5f!=null&&_0x158a5f[_0x5cf614(0x227)]&&_0x1a26f2[_0x5cf614(0x239)]===_0x5cf614(0x227)&&(_0x1a26f2['fill']=_0x158a5f[_0x5cf614(0x227)]),_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x208)&&_0x1a26f2['id']&&(_0x1a26f2['id']=_0x1a26f2['id']+_0x2e634b[_0x5cf614(0x260)]),Object['entries'](_0x1a26f2)[_0x5cf614(0x233)](([_0x55f103,_0x18e607])=>{const _0xe5660b=_0x5cf614;_0x55f103===_0xe5660b(0x208)&&typeof _0x18e607==_0xe5660b(0x1d8)&&(_0x1a26f2[_0x55f103]=_0x18e607[_0xe5660b(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b['idSuffix']+')'));});const {defIds:_0x6c0053}=_0x2e634b;return!_0x6c0053||_0x6c0053['length']===0x0||(_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x224)&&_0x1a26f2[_0x5cf614(0x238)]&&(_0x1a26f2[_0x5cf614(0x238)]=_0x1a26f2[_0x5cf614(0x238)]+_0x2e634b[_0x5cf614(0x260)]),Object[_0x5cf614(0x229)](_0x1a26f2)[_0x5cf614(0x233)](([_0x38bb32,_0x575f36])=>{const _0x106096=_0x5cf614;typeof _0x575f36==_0x106096(0x1d8)&&(_0x1a26f2[_0x38bb32]=_0x575f36[_0x106096(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b[_0x106096(0x260)]+')'));})),_0x1a26f2;}function Ee(_0x41659d,_0x1cb916){const _0x2cab9c=_0x94c2f4;var _0x4249a2;const {defIds:_0x4e6d2b}=_0x1cb916;return!_0x4e6d2b||_0x4e6d2b['length']===0x0?_0x41659d:_0x41659d[_0x2cab9c(0x269)]===_0x2cab9c(0x22c)&&((_0x4249a2=_0x41659d[_0x2cab9c(0x20d)])!=null&&_0x4249a2[_0x2cab9c(0x234)])?{..._0x41659d,'children':_0x41659d[_0x2cab9c(0x20d)][_0x2cab9c(0x270)](_0x46dd25=>typeof _0x46dd25['attrs']['id']==_0x2cab9c(0x1d8)&&_0x4e6d2b&&_0x4e6d2b[_0x2cab9c(0x25f)](_0x46dd25[_0x2cab9c(0x20b)]['id'])?{..._0x46dd25,'attrs':{..._0x46dd25[_0x2cab9c(0x20b)],'id':_0x46dd25[_0x2cab9c(0x20b)]['id']+_0x1cb916[_0x2cab9c(0x260)]}}:_0x46dd25)}:_0x41659d;}function Oe(){const _0x4f1be8=_0x94c2f4;return Math[_0x4f1be8(0x255)]()[_0x4f1be8(0x219)](0x24)[_0x4f1be8(0x1e5)](0x2,0x8);}k[_0x94c2f4(0x241)]=_0x94c2f4(0x212);const we={'tag':_0x94c2f4(0x25c),'attrs':{'xmlns':_0x94c2f4(0x263),'fill':_0x94c2f4(0x1d1),'viewBox':_0x94c2f4(0x267),'width':_0x94c2f4(0x277),'height':_0x94c2f4(0x277)},'children':[{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x235)}},{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x26d),'fillRule':_0x94c2f4(0x236),'clipRule':_0x94c2f4(0x236)}}]},W=_0x13d357(function(_0x3fe056,_0x2cc369){const _0x3f646b=_0x94c2f4;return _0x4c6606(k,Object[_0x3f646b(0x1d5)]({},_0x3fe056,{'id':_0x3f646b(0x1fb),'ref':_0x2cc369,'icon':we}));});W[_0x94c2f4(0x241)]='LiveShareIcon';class L extends _0x237410{constructor(){const _0x5a0ee4=_0x94c2f4;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x5a0ee4(0x27b),new Set());}[_0x94c2f4(0x25a)](_0x1dec7d){const _0x4b7c09=_0x94c2f4;return this[_0x4b7c09(0x1ee)][_0x4b7c09(0x26f)](_0x1dec7d),_0x479776(()=>this[_0x4b7c09(0x1ee)][_0x4b7c09(0x25b)](_0x1dec7d));}[_0x94c2f4(0x25e)](_0xc19384){const _0x1e5cd8=_0x94c2f4;return this['_reporters']['add'](_0xc19384),_0x479776(()=>this['_reporters'][_0x1e5cd8(0x25b)](_0xc19384));}['shouldShareOperation'](_0x356b1e){const _0x3460c6=_0x94c2f4;return this[_0x3460c6(0x1ee)]['has'](_0x356b1e);}[_0x94c2f4(0x231)](_0x5d3542){const _0x4197ef=_0x94c2f4;return Array[_0x4197ef(0x1fe)](this[_0x4197ef(0x27b)])[_0x4197ef(0x270)](_0x3f3ad7=>_0x3f3ad7(_0x5d3542));}}var Ne=Object[_0x94c2f4(0x1e3)],Y=(_0x24e75c,_0x508cc0,_0x3de33b,_0x4de27e)=>{const _0x5a3bd5=_0x94c2f4;for(var _0x4fe054=_0x4de27e>0x1?void 0x0:_0x4de27e?Ne(_0x508cc0,_0x3de33b):_0x508cc0,_0x233d13=_0x24e75c[_0x5a3bd5(0x234)]-0x1,_0x9dc5a5;_0x233d13>=0x0;_0x233d13--)(_0x9dc5a5=_0x24e75c[_0x233d13])&&(_0x4fe054=_0x9dc5a5(_0x4fe054)||_0x4fe054);return _0x4fe054;},_=(_0x5ba021,_0x2dc522)=>(_0x103223,_0x4a42bd)=>_0x2dc522(_0x103223,_0x4a42bd,_0x5ba021);let S=class extends _0x3c244d{constructor(_0x11278b,_0x50b451,_0x33cd12){const _0x58aa65=_0x94c2f4;super(),u(this,_0x58aa65(0x272),new Map()),(this[_0x58aa65(0x245)]=_0x11278b,this['_injector']=_0x50b451,this[_0x58aa65(0x1da)]=_0x33cd12,this[_0x58aa65(0x1d2)]());}async[_0x94c2f4(0x274)](_0x30146d){const _0x6d15e1=_0x94c2f4;return this[_0x6d15e1(0x272)]['has'](_0x30146d)||await this[_0x6d15e1(0x23d)](_0x30146d),this['_entities'][_0x6d15e1(0x205)](_0x30146d);}[_0x94c2f4(0x228)](_0x4c17df){var _0x2e4ab1;return(_0x2e4ab1=this['_entities']['get'](_0x4c17df))!=null?_0x2e4ab1:null;}[_0x94c2f4(0x1d2)](){const _0x435494=_0x94c2f4;this['_univerInstanceService'][_0x435494(0x211)](_0x1edb56[_0x435494(0x275)])[_0x435494(0x246)](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](async _0xe3d952=>{const _0x288c8e=_0x435494,_0x3a31c9=_0xe3d952['getUnitId']();this['_entities']['has'](_0x3a31c9)||this[_0x288c8e(0x23d)](_0x3a31c9);}),this[_0x435494(0x245)][_0x435494(0x1e1)](_0x1edb56[_0x435494(0x275)])['pipe'](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](_0x45f7ac=>{const _0x59258f=_0x435494,_0x2aeb58=_0x45f7ac[_0x59258f(0x1f2)](),_0x4bb934=this[_0x59258f(0x272)]['get'](_0x2aeb58);_0x4bb934==null||_0x4bb934[_0x59258f(0x1f3)]();});}async['_startLiveShareCoordinator'](_0x488194){const _0x33a5b0=_0x94c2f4,_0x5d3691=await this['_collabSessionService'][_0x33a5b0(0x1f8)](_0x488194),_0x1de098=this[_0x33a5b0(0x204)][_0x33a5b0(0x1eb)](N,_0x488194,_0x5d3691);return _0x1de098[_0x33a5b0(0x225)](),this[_0x33a5b0(0x272)][_0x33a5b0(0x217)](_0x488194,_0x1de098),_0x1de098;}};S=Y([_(0x0,_0x131adf),_(0x1,_0x39e2ff(_0x1af462)),_(0x2,_0x39e2ff(_0x12178f))],S);var c=(_0x221161=>(_0x221161[_0x94c2f4(0x22a)]=_0x94c2f4(0x207),_0x221161['IDLE']=_0x94c2f4(0x1de),_0x221161['FOLLOWING']=_0x94c2f4(0x24b),_0x221161['NOT_FOLLOWING']='not-following',_0x221161['PRESENTING']=_0x94c2f4(0x209),_0x221161))(c||{});const Ce=_0x94c2f4(0x23b),De=0xc8;let N=class extends _0x3c244d{constructor(_0x3c6de8,_0x1e0d6a,_0x48a41f,_0x4d0548,_0x303acf){const _0x2a724f=_0x94c2f4;super(),u(this,'_status$',new _0x5ee00e(_0x2a724f(0x1de))),u(this,_0x2a724f(0x218),this[_0x2a724f(0x1f1)][_0x2a724f(0x223)]()),u(this,_0x2a724f(0x1d2),!0x1),u(this,_0x2a724f(0x1e7),null),u(this,'_presenter',null),(this['_unitID']=_0x3c6de8,this[_0x2a724f(0x20f)]=_0x1e0d6a,this[_0x2a724f(0x1d0)]=_0x48a41f,this[_0x2a724f(0x226)]=_0x4d0548,this[_0x2a724f(0x1fc)]=_0x303acf);}get[_0x94c2f4(0x21e)](){const _0x10c3e8=_0x94c2f4;return this[_0x10c3e8(0x1f1)][_0x10c3e8(0x278)]();}[_0x94c2f4(0x1f3)](){const _0x5ee6ab=_0x94c2f4;var _0x439748;(_0x439748=this[_0x5ee6ab(0x1e7)])==null||_0x439748[_0x5ee6ab(0x1f3)](),this[_0x5ee6ab(0x1f1)]['next'](_0x5ee6ab(0x1de)),this[_0x5ee6ab(0x1f1)][_0x5ee6ab(0x1f6)]();}[_0x94c2f4(0x230)](){return this['_status'];}['init'](){const _0x14d99f=_0x94c2f4;this[_0x14d99f(0x1d2)]||(this['_init']=!0x0,this[_0x14d99f(0x20f)][_0x14d99f(0x210)][_0x14d99f(0x246)](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x41ffd8=>{const _0x5407dd=_0x14d99f;switch(_0x41ffd8){case _0x2ec079[_0x5407dd(0x22a)]:this[_0x5407dd(0x1dd)]();break;case _0x2ec079['ONLINE']:this[_0x5407dd(0x1f0)]();break;}}),this[_0x14d99f(0x20f)]['event$']['pipe'](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x511b8f=>{const _0x2fbae5=_0x14d99f,{eventID:_0x43efde}=_0x511b8f;switch(_0x43efde){case _0x117a17['LIVESHARE_NEW_HOST']:this[_0x2fbae5(0x1e0)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x22b)]:this[_0x2fbae5(0x1db)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x201)]:this['_handleTerminate']();break;case _0x117a17['NEW_CHANGESETS']:this[_0x2fbae5(0x21d)](_0x511b8f);break;}}));}[_0x94c2f4(0x1ff)](){const _0x3ed1ef=_0x94c2f4;this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x1e6)]({'eventID':_0x117a17['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3ed1ef(0x1d7)],'userID':this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x256)]()}},this[_0x3ed1ef(0x1d7)]);}['stopPresenting'](){const _0x3e21c3=_0x94c2f4;this['_status']==='presenting'&&(this[_0x3e21c3(0x1f1)]['next'](_0x3e21c3(0x1de)),this['_collabSession'][_0x3e21c3(0x1e6)]({'eventID':_0x117a17['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e21c3(0x1d7)]));}[_0x94c2f4(0x1ef)](){const _0x1b7ca6=_0x94c2f4;this[_0x1b7ca6(0x21e)]===_0x1b7ca6(0x26b)&&(this[_0x1b7ca6(0x1f1)]['next'](_0x1b7ca6(0x24b)),this[_0x1b7ca6(0x216)]());}[_0x94c2f4(0x220)](){const _0x2ad836=_0x94c2f4;this[_0x2ad836(0x21e)]===_0x2ad836(0x24b)&&this[_0x2ad836(0x214)]();}[_0x94c2f4(0x1e0)](_0x3366e7){const _0x15fd2c=_0x94c2f4,{presenter:_0x3fa34a}=_0x3366e7[_0x15fd2c(0x215)],_0x3d7902=this[_0x15fd2c(0x20f)]['getMemberID']();this[_0x15fd2c(0x22f)]=_0x3fa34a,_0x3fa34a===_0x3d7902?(this[_0x15fd2c(0x214)](),this['_startPresenting']()):this[_0x15fd2c(0x21e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x15fd2c(0x216)]());}[_0x94c2f4(0x21c)](){const _0x39d8a9=_0x94c2f4,_0x92349={'eventID':_0x117a17[_0x39d8a9(0x253)]};this['_collabSession']['send'](_0x92349,this['_unitID']);}[_0x94c2f4(0x254)](){const _0x3fc57f=_0x94c2f4;this[_0x3fc57f(0x22f)]=null,this[_0x3fc57f(0x21e)]!=='presenting'&&this[_0x3fc57f(0x249)]();}[_0x94c2f4(0x21d)](_0x4b135a){const _0x5e05f9=_0x94c2f4;if(this[_0x5e05f9(0x21e)]==='following'&&this[_0x5e05f9(0x22f)]===_0x4b135a[_0x5e05f9(0x215)][_0x5e05f9(0x23c)]){const _0x59abe1=_0x1a1c61(_0x4b135a[_0x5e05f9(0x215)])['mutations']['reverse']()[_0x5e05f9(0x1f4)](_0x2e3f06=>_0x2e3f06['id']===_0x109733['id']);if(_0x59abe1){const _0x3b2243=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x22d)],_0xfa0724=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x259)]['id'];setTimeout(()=>{const _0x2eaf2e=_0x5e05f9;this[_0x2eaf2e(0x1fc)][_0x2eaf2e(0x273)](_0x45b437['id'],{'unitId':_0x3b2243,'subUnitId':_0xfa0724},{'fromCollab':!0x0});});}}}[_0x94c2f4(0x21b)](){const _0x5c5dbd=_0x94c2f4;this[_0x5c5dbd(0x1f1)][_0x5c5dbd(0x1f7)]('presenting');const _0x3eb12d=new Map(),_0x54656=this[_0x5c5dbd(0x1e7)]=new _0x56d0d3();_0x54656[_0x5c5dbd(0x26f)](_0x479776(()=>{const _0xd23b2d=_0x5c5dbd;_0x3eb12d['forEach'](_0x4b4532=>_0x4b4532[_0xd23b2d(0x1f6)]()),_0x3eb12d[_0xd23b2d(0x264)]();})),_0x54656['add'](this[_0x5c5dbd(0x1fc)][_0x5c5dbd(0x257)](_0x516c6c=>{const _0x12b720=_0x5c5dbd;var _0x160f74;if(_0x516c6c[_0x12b720(0x23f)]!==_0x11ab87[_0x12b720(0x22e)]||!this['_liveShareService'][_0x12b720(0x1ea)](_0x516c6c['id']))return;const {id:_0x2e50cc}=_0x516c6c;let _0x42f196;_0x3eb12d[_0x12b720(0x242)](_0x2e50cc)?_0x42f196=_0x3eb12d[_0x12b720(0x205)](_0x2e50cc):(_0x42f196=new _0x13c737(),_0x3eb12d[_0x12b720(0x217)](_0x2e50cc,_0x42f196),_0x42f196[_0x12b720(0x246)](_0x3e7564((_0x160f74=this[_0x12b720(0x1d0)]['getConfig'](Ce))!=null?_0x160f74:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12b720(0x202)](_0x22c8db=>{const _0x4d1d81=_0x12b720;this[_0x4d1d81(0x20f)][_0x4d1d81(0x1e6)]({'eventID':_0x117a17['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x22c8db['id']]:{'id':_0x22c8db['id'],'params':JSON[_0x4d1d81(0x251)](_0x22c8db[_0x4d1d81(0x26a)])}}}},this[_0x4d1d81(0x1d7)]);})),_0x42f196[_0x12b720(0x1f7)](_0x516c6c);})),this[_0x5c5dbd(0x226)][_0x5c5dbd(0x231)](this[_0x5c5dbd(0x1d7)])[_0x5c5dbd(0x233)](_0x21d879=>this['_collabSession'][_0x5c5dbd(0x1e6)]({'eventID':_0x117a17[_0x5c5dbd(0x22b)],'data':{'unitID':this[_0x5c5dbd(0x1d7)],'operations':{[_0x21d879['id']]:{'id':_0x21d879['id'],'params':JSON[_0x5c5dbd(0x251)](_0x21d879[_0x5c5dbd(0x26a)])}}}},this[_0x5c5dbd(0x1d7)]));}['_stopPresenting'](){const _0x2a0dcb=_0x94c2f4;var _0x2c3d1a;this[_0x2a0dcb(0x1f1)][_0x2a0dcb(0x1f7)](_0x2a0dcb(0x1de)),(_0x2c3d1a=this['_commandDisposable'])==null||_0x2c3d1a[_0x2a0dcb(0x1f3)](),this[_0x2a0dcb(0x1e7)]=null;}['_startFollowing'](){const _0x130462=_0x94c2f4;var _0x54879a;(_0x54879a=this['_commandDisposable'])==null||_0x54879a['dispose'](),this['_status$'][_0x130462(0x1f7)](_0x130462(0x24b));}[_0x94c2f4(0x249)](){const _0x5e30bf=_0x94c2f4;var _0x21248e;this['_status$'][_0x5e30bf(0x1f7)](_0x5e30bf(0x1de)),(_0x21248e=this[_0x5e30bf(0x1e7)])==null||_0x21248e[_0x5e30bf(0x1f3)](),this['_commandDisposable']=null;}[_0x94c2f4(0x214)](){const _0x5a4a24=_0x94c2f4;var _0x134633;this['_status$'][_0x5a4a24(0x1f7)](_0x5a4a24(0x26b)),(_0x134633=this[_0x5a4a24(0x1e7)])==null||_0x134633['dispose']();}[_0x94c2f4(0x1db)](_0x2358d9){const _0x4d8d5d=_0x94c2f4;if(['presenting',_0x4d8d5d(0x26b),_0x4d8d5d(0x207)]['includes'](this[_0x4d8d5d(0x21e)])||!_0x2358d9[_0x4d8d5d(0x215)]['presenter']||_0x2358d9[_0x4d8d5d(0x215)]['presenter']===this[_0x4d8d5d(0x20f)]['getMemberID']())return;this[_0x4d8d5d(0x21e)]===_0x4d8d5d(0x1de)&&this[_0x4d8d5d(0x216)]();const _0x53124e=_0x2358d9[_0x4d8d5d(0x215)][_0x4d8d5d(0x1e9)];Object[_0x4d8d5d(0x1d6)](_0x53124e)['forEach'](_0x39f73c=>{const _0x55a1dc=_0x4d8d5d;this[_0x55a1dc(0x1fc)][_0x55a1dc(0x273)](_0x39f73c['id'],_0x39f73c[_0x55a1dc(0x26a)]?JSON[_0x55a1dc(0x20c)](_0x39f73c['params']):null,{'fromCollab':!0x0});});}[_0x94c2f4(0x1dd)](){const _0x4e765c=_0x94c2f4;var _0x304165;this[_0x4e765c(0x1f1)][_0x4e765c(0x1f7)](_0x4e765c(0x207)),(_0x304165=this['_commandDisposable'])==null||_0x304165[_0x4e765c(0x1f3)]();}[_0x94c2f4(0x1f0)](){const _0x14dc6a=_0x94c2f4;this['_status$']['next'](_0x14dc6a(0x1de)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1163db),_(0x3,_0x39e2ff(L)),_(0x4,_0x3fe997)],N);function _0x5199(){const _0x1a36fe=['_startPresenting','_fetchOperations','_handleNewChangeSets','_status','then','stopFollowing','live-share.config','919047HgGWSl','asObservable','use','init','_liveShareService','colorChannel1','getLiveShareCoordinatorSync','entries','OFFLINE','LIVESHARE_OPERATION','defs','unitId','OPERATION','_presenter','getStatus','getInitialStates','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','forEach','length','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','evenodd','636PCVUKY','xlink:href','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','memberID','_startLiveShareCoordinator','Stop\x20following','type','UNIVER_UNKNOWN','displayName','has','_mountLiveShare','trim','_univerInstanceService','pipe','709408UIgFwJ','NOT_FOLLOWING','_beIdle','univerjs-icon\x20univerjs-icon-','following','unsubscribe','PRESENTING','200yEcOGr','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','stringify','25888YOuzwn','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','random','getMemberID','onCommandExecuted','currentColor','sheet','registerSharedOperation','delete','svg','path','registerInitialStateReporter','includes','idSuffix','Present\x20this\x20document','onStarting','http://www.w3.org/2000/svg','clear','IDLE','replace','0\x200\x2017\x2017','You\x27re\x20not\x20following\x20the\x20presenter','tag','params','not-following','end','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','current','add','map','HEADER_MENU','_entities','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','setConfig','1em','getValue','symbol','UNIVER_LIVE_SHARE_PLUGIN','_reporters','getCurrentTypeOfUnit$','_configService','none','_init','defIds','8190LUoSJV','assign','values','_unitID','string','pluginName','_collabSessionService','_handleOperation','_config','_handleOffline','idle','div','_handleNewHost','getTypeOfUnitDisposed$','Start','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','substring','send','_commandDisposable','_uiPartsService','operations','shouldShareOperation','createInstance','button','onRendered','_sharedOperations','startFollowing','_handleOnline','_status$','getUnitId','dispose','find','Start\x20following','complete','next','requireSession','11079GKKPzB','53473HiYgsm','live-share-icon','_commandService','dispose$','from','tryStartPresenting','override','LIVESHARE_TERMINATE','subscribe','univer-size-4','_injector','get','4224688NAsBSz','offline','mask','presenting','disposeWithMe','attrs','parse','children','registerComponent','_collabSession','sessionStatus$','getTypeOfUnitAdded$','UniverIcon','FOLLOWING','_stopFollowing','data','_startFollowing','set','status$','toString','207567JEysXj'];_0x5199=function(){return _0x1a36fe;};return _0x5199();}function Le(){const _0x351e49=_0x94c2f4,_0x36c017=_0x1a3369(S),_0x12c744=_0x1a3369(_0x131adf),_0x5280d1=_0x43c83b(()=>_0x12c744[_0x351e49(0x27c)](_0x1edb56[_0x351e49(0x275)]),void 0x0,!0x1,[]),[_0x45eb19,_0xb80a]=_0x24f563(null),[_0x47808b,_0x235c0a]=_0x24f563(c[_0x351e49(0x265)]),_0x5714da=_0x5302de(null);return _0x1d9b38(()=>(_0x5280d1&&_0x36c017[_0x351e49(0x274)](_0x5280d1['getUnitId']())[_0x351e49(0x21f)](_0x338243=>{const _0x133b34=_0x351e49;_0xb80a(_0x338243),_0x5714da[_0x133b34(0x26e)]=_0x338243['status$'][_0x133b34(0x202)](_0x4152a6=>{_0x235c0a(_0x4152a6);});}),()=>{const _0x1e5e92=_0x351e49;var _0x317318;(_0x317318=_0x5714da[_0x1e5e92(0x26e)])==null||_0x317318[_0x1e5e92(0x24c)](),_0x5714da[_0x1e5e92(0x26e)]=null;}),[_0x5280d1,_0x36c017]),_0x45eb19?_0x3b2e8c(_0x580ca5,{'align':_0x351e49(0x26c),'disabled':_0x47808b===c[_0x351e49(0x22a)],'className':_0x351e49(0x232),'overlay':_0x3b2e8c(Re,{'status':_0x47808b,'coordinator':_0x45eb19}),'children':_0x3b2e8c(_0x351e49(0x1ec),{'className':_0x38bcb7(_0x351e49(0x23a),{'univer-cursor-not-allowed':_0x47808b===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47808b!==c[_0x351e49(0x22a)]}),'type':_0x351e49(0x1ec),'children':_0x3b2e8c(W,{'className':_0x351e49(0x203)})})}):null;}function Re(_0x9e5441){const _0xee2a99=_0x94c2f4,{status:_0x2032fd,coordinator:_0x2a92e9}=_0x9e5441;switch(_0x2032fd){case c[_0xee2a99(0x265)]:return _0x3b2e8c($e,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x213)]:return _0x3b2e8c(xe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x248)]:return _0x3b2e8c(Pe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x22a)]:return _0x3b2e8c(Te,{});case c[_0xee2a99(0x24d)]:return _0x3b2e8c(Ae,{'coordinator':_0x2a92e9});default:return null;}}function $e(_0x36800c){const _0x58d5c6=_0x94c2f4,{coordinator:_0x86e0a8}=_0x36800c;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c('div',{'className':_0x58d5c6(0x24f),'children':_0x58d5c6(0x261)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x86e0a8[_0x58d5c6(0x1ff)](),'children':_0x58d5c6(0x1e2)})]});}function xe(_0x41074d){const _0x3878ce=_0x94c2f4,{coordinator:_0x519a31}=_0x41074d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x3878ce(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3878ce(0x1e4)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x519a31[_0x3878ce(0x220)](),'children':_0x3878ce(0x23e)})]});}function Pe(_0x4209f1){const _0x48fc4a=_0x94c2f4,{coordinator:_0x21a2b7}=_0x4209f1;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x48fc4a(0x1df),{'className':_0x48fc4a(0x24f),'children':_0x48fc4a(0x268)}),_0x3b2e8c(_0x4bf6a0,{'variant':'text','onClick':()=>_0x21a2b7[_0x48fc4a(0x1ef)](),'children':_0x48fc4a(0x1f5)})]});}function Ae(_0x50433d){const _0x13d664=_0x94c2f4,{coordinator:_0x2de63b}=_0x50433d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x13d664(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2e8c(_0x4bf6a0,{'variant':'default','onClick':()=>_0x2de63b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3b2e8c(_0x34fda9,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x94c2f4(0x1e3)],He=(_0x4ee589,_0x41e877,_0x5d2bc7,_0x1ec7e2)=>{for(var _0xf6315a=_0x1ec7e2>0x1?void 0x0:_0x1ec7e2?Fe(_0x41e877,_0x5d2bc7):_0x41e877,_0x357fa3=_0x4ee589['length']-0x1,_0x50ca30;_0x357fa3>=0x0;_0x357fa3--)(_0x50ca30=_0x4ee589[_0x357fa3])&&(_0xf6315a=_0x50ca30(_0xf6315a)||_0xf6315a);return _0xf6315a;},A=(_0x54abe0,_0x111759)=>(_0x10a906,_0xfe785d)=>_0x111759(_0x10a906,_0xfe785d,_0x54abe0);let m=class extends _0x237410{constructor(_0x35f642,_0x326940){const _0x433d42=_0x94c2f4;super(),this[_0x433d42(0x204)]=_0x35f642,this['_uiPartsService']=_0x326940,this['_mountLiveShare']();}[_0x94c2f4(0x243)](){const _0x46b4b5=_0x94c2f4;this[_0x46b4b5(0x20a)](this[_0x46b4b5(0x1e8)][_0x46b4b5(0x20e)](_0x54c386[_0x46b4b5(0x271)],()=>_0x40daf7(Le,this[_0x46b4b5(0x204)])));}};m=He([A(0x0,_0x39e2ff(_0x1af462)),A(0x1,_0x189af9)],m);const ye=_0x94c2f4(0x221),T={};var Ue=Object[_0x94c2f4(0x1e3)],Ve=(_0x4b6f53,_0x3ef43d,_0x15c32b,_0x590121)=>{for(var _0x173e04=_0x590121>0x1?void 0x0:_0x590121?Ue(_0x3ef43d,_0x15c32b):_0x3ef43d,_0x300e9=_0x4b6f53['length']-0x1,_0x20d0df;_0x300e9>=0x0;_0x300e9--)(_0x20d0df=_0x4b6f53[_0x300e9])&&(_0x173e04=_0x20d0df(_0x173e04)||_0x173e04);return _0x173e04;},je=(_0x1dce1c,_0x18628f)=>(_0x4bf7ce,_0x54c527)=>_0x18628f(_0x4bf7ce,_0x54c527,_0x1dce1c);let I=class extends _0x237410{constructor(_0x48fd1b){const _0x517999=_0x94c2f4;super(),this[_0x517999(0x226)]=_0x48fd1b,this['_init']();}['_init'](){const _0x1d05b8=_0x94c2f4;[_0x33d3cc['id'],_0x1ac8e2['id'],_0x45b437['id']][_0x1d05b8(0x233)](_0x2aa60b=>{const _0x3851a6=_0x1d05b8;this[_0x3851a6(0x20a)](this[_0x3851a6(0x226)][_0x3851a6(0x25a)](_0x2aa60b));});}};I=Ve([je(0x0,_0x39e2ff(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25b41c,_0xc9ab13,_0x373b7a)=>_0xc9ab13 in _0x25b41c?Me(_0x25b41c,_0xc9ab13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x373b7a}):_0x25b41c[_0xc9ab13]=_0x373b7a,We=(_0x448b4b,_0x18ed3d,_0x381973,_0x421da2)=>{const _0x4317f8=_0x94c2f4;for(var _0x39ec83=_0x421da2>0x1?void 0x0:_0x421da2?ke(_0x18ed3d,_0x381973):_0x18ed3d,_0xefb135=_0x448b4b[_0x4317f8(0x234)]-0x1,_0x27f4d5;_0xefb135>=0x0;_0xefb135--)(_0x27f4d5=_0x448b4b[_0xefb135])&&(_0x39ec83=_0x27f4d5(_0x39ec83)||_0x39ec83);return _0x39ec83;},F=(_0x25f3bc,_0x4a93e5)=>(_0x311f14,_0x1147ea)=>_0x4a93e5(_0x311f14,_0x1147ea,_0x25f3bc),B=(_0x24ac65,_0x1c5268,_0x2aba29)=>Ge(_0x24ac65,typeof _0x1c5268!=_0x94c2f4(0x279)?_0x1c5268+'':_0x1c5268,_0x2aba29);const Ye=_0x94c2f4(0x27a);let b=class extends _0x1f099d{constructor(_0x152420=T,_0x59ea89,_0x51de){const _0x2d3149=_0x94c2f4;super(),this[_0x2d3149(0x1dc)]=_0x152420,this[_0x2d3149(0x204)]=_0x59ea89,this[_0x2d3149(0x1d0)]=_0x51de;const {..._0x3f9fb8}=_0x38fee5({},T,this['_config']);this['_configService'][_0x2d3149(0x276)](ye,_0x3f9fb8);}[_0x94c2f4(0x262)](){const _0x172bdc=_0x94c2f4;_0x20cdf0(this[_0x172bdc(0x204)],_0x1c6eec([[L],[S],[I],[m]],this[_0x172bdc(0x1dc)][_0x172bdc(0x200)])),_0x5e0f2d(this['_injector'],[[I]]);}[_0x94c2f4(0x1ed)](){_0x5e0f2d(this['_injector'],[[m]]);}};B(b,_0x94c2f4(0x23f),_0x1edb56[_0x94c2f4(0x240)]),B(b,_0x94c2f4(0x1d9),Ye),b=We([_0x298814(_0x4883e2),F(0x1,_0x39e2ff(_0x1af462)),F(0x2,_0x1163db)],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(_0x5ef4cc,_0x5228b2){const _0x32202a=_0x12fa,_0xfc85ed=_0x5ef4cc();while(!![]){try{const _0x33961c=parseInt(_0x32202a(0xf9))/0x1*(-parseInt(_0x32202a(0x104))/0x2)+parseInt(_0x32202a(0x103))/0x3*(parseInt(_0x32202a(0x100))/0x4)+parseInt(_0x32202a(0xf8))/0x5+parseInt(_0x32202a(0xe2))/0x6*(parseInt(_0x32202a(0xfa))/0x7)+parseInt(_0x32202a(0xe3))/0x8+parseInt(_0x32202a(0xe0))/0x9*(parseInt(_0x32202a(0xf0))/0xa)+-parseInt(_0x32202a(0xfb))/0xb;if(_0x33961c===_0x5228b2)break;else _0xfc85ed['push'](_0xfc85ed['shift']());}catch(_0x37ad6f){_0xfc85ed['push'](_0xfc85ed['shift']());}}}(_0x3ae0,0x80d61),function(_0x455933,_0x1ca851){const _0x6953ca=_0x12fa;typeof exports==_0x6953ca(0xd5)&&typeof module<'u'?_0x1ca851(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==_0x6953ca(0xe8)&&define[_0x6953ca(0x105)]?define([_0x6953ca(0xd6),'@univerjs/engine-render','@univerjs/sheets',_0x6953ca(0xfe),_0x6953ca(0xd3),_0x6953ca(0xf6)],_0x1ca851):(_0x455933=typeof globalThis<'u'?globalThis:_0x455933||self,_0x1ca851(_0x455933[_0x6953ca(0x102)],_0x455933[_0x6953ca(0xda)],_0x455933[_0x6953ca(0xea)],_0x455933[_0x6953ca(0xe4)],_0x455933[_0x6953ca(0xff)],_0x455933[_0x6953ca(0xee)]));}(this,function(_0x80fff,_0x521c2e,_0x53f828,_0x41f39b,_0x23e4ea,_0x2eb9a3){'use strict';const _0x43e474=_0x12fa;class _0xa1278c extends _0x23e4ea[_0x43e474(0xec)]{['_initialize'](_0x59b316,_0x59eac3,_0x5f9ba2,_0xbf73b3,_0x399b15){const _0x4f866c=_0x43e474,_0x295448=_0x59b316[_0x4f866c(0xfd)](_0x80fff[_0x4f866c(0xef)]),_0x5517d6=_0x59b316[_0x4f866c(0xfd)](_0x521c2e[_0x4f866c(0xd8)]),_0x30d05f=_0x59eac3[_0x4f866c(0xd9)](),_0x532de3=_0x59eac3[_0x4f866c(0xf4)](),_0x2da3a3=_0x295448[_0x4f866c(0xd7)](_0x30d05f);(_0x2da3a3==null?void 0x0:_0x2da3a3[_0x4f866c(0xf3)]())!==_0x80fff[_0x4f866c(0xd4)][_0x4f866c(0x101)]||(_0x5f9ba2[_0x4f866c(0xdb)]()!==_0x532de3['getSheetId']()&&this[_0x4f866c(0xf5)][_0x4f866c(0x106)](_0x53f828[_0x4f866c(0xf1)]['id'],{'unitId':_0x30d05f,'subUnitId':_0x5f9ba2[_0x4f866c(0xdb)]()}),!_0x5517d6[_0x4f866c(0x107)](_0x30d05f))||_0x399b15['syncExecuteCommand'](_0x41f39b[_0x4f866c(0xe6)]['id'],{'unitId':_0x59eac3[_0x4f866c(0xd9)](),'sheetId':_0x5f9ba2[_0x4f866c(0xdb)](),'sheetViewStartRow':_0xbf73b3['startRow'],'sheetViewStartColumn':_0xbf73b3[_0x4f866c(0xe5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x23e4ea[_0x43e474(0xec)]['extend'](_0xa1278c);class _0x286397 extends _0x2eb9a3['FUniver']{[_0x43e474(0xf2)](){const _0x27f0d8=_0x43e474;var _0x2ad2b8,_0x38a126;const _0x538308=this[_0x27f0d8(0xe1)]['get'](_0x80fff['LiveShareController']),_0x59dc33=(_0x2ad2b8=this['getActiveWorkbook']())==null?void 0x0:_0x2ad2b8[_0x27f0d8(0xfc)]();if(!_0x59dc33)throw new Error(_0x27f0d8(0xe9));const _0x1b5b54=_0x538308[_0x27f0d8(0xd7)](_0x59dc33);return(_0x38a126=_0x1b5b54==null?void 0x0:_0x1b5b54[_0x27f0d8(0xf3)]())!=null?_0x38a126:_0x80fff['LiveShareStatus'][_0x27f0d8(0xed)];}[_0x43e474(0xdf)](){const _0x22c600=_0x43e474;var _0x4be665;const _0x1ef968=this['_injector'][_0x22c600(0xfd)](_0x80fff['LiveShareController']),_0x1c7cdf=(_0x4be665=this[_0x22c600(0xeb)]())==null?void 0x0:_0x4be665[_0x22c600(0xfc)]();if(!_0x1c7cdf)throw new Error('No\x20active\x20workbook\x20found.');const _0x2f8f44=_0x1ef968[_0x22c600(0xd7)](_0x1c7cdf);if(!_0x2f8f44)throw new Error(_0x22c600(0xe7));_0x2f8f44[_0x22c600(0xdf)]();}[_0x43e474(0x108)](){const _0x4264b3=_0x43e474;var _0x48b1aa;const _0x5ec506=this[_0x4264b3(0xe1)][_0x4264b3(0xfd)](_0x80fff['LiveShareController']),_0x369471=(_0x48b1aa=this[_0x4264b3(0xeb)]())==null?void 0x0:_0x48b1aa['getId']();if(!_0x369471)throw new Error(_0x4264b3(0xe9));const _0x222045=_0x5ec506[_0x4264b3(0xd7)](_0x369471);if(!_0x222045)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x222045[_0x4264b3(0x108)]();}['startPresenting'](){const _0x28e7c6=_0x43e474;var _0x46a378;const _0x52080b=this[_0x28e7c6(0xe1)]['get'](_0x80fff[_0x28e7c6(0xef)]),_0x3598f1=(_0x46a378=this[_0x28e7c6(0xeb)]())==null?void 0x0:_0x46a378['getId']();if(!_0x3598f1)throw new Error(_0x28e7c6(0xe9));const _0x4a86bd=_0x52080b['getLiveShareCoordinatorSync'](_0x3598f1);if(!_0x4a86bd)throw new Error(_0x28e7c6(0xe7));_0x4a86bd[_0x28e7c6(0xdd)]();}['stopPresenting'](){const _0x59178b=_0x43e474;var _0x4e41dd;const _0x604ad8=this['_injector'][_0x59178b(0xfd)](_0x80fff[_0x59178b(0xef)]),_0x1c7171=(_0x4e41dd=this[_0x59178b(0xeb)]())==null?void 0x0:_0x4e41dd[_0x59178b(0xfc)]();if(!_0x1c7171)throw new Error(_0x59178b(0xe9));const _0x235aca=_0x604ad8[_0x59178b(0xd7)](_0x1c7171);if(!_0x235aca)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x235aca[_0x59178b(0xdc)]();}}_0x2eb9a3['FUniver']['extend'](_0x286397);class _0x3403f9 extends _0x2eb9a3[_0x43e474(0xde)]{get[_0x43e474(0xf7)](){const _0x4db5ce=_0x43e474;return _0x80fff[_0x4db5ce(0xd4)];}}_0x2eb9a3[_0x43e474(0xde)]['extend'](_0x3403f9);}));function _0x12fa(_0x379f86,_0x6fc317){_0x379f86=_0x379f86-0xd3;const _0x3ae02f=_0x3ae0();let _0x12fa3=_0x3ae02f[_0x379f86];return _0x12fa3;}function _0x3ae0(){const _0x216360=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','function','No\x20active\x20workbook\x20found.','UniverSheets','getActiveWorkbook','FRange','IDLE','UniverCoreFacade','LiveShareController','1500Xplwrm','SetWorksheetActiveOperation','getLiveShareStatus','getStatus','getActiveSheet','_commandService','@univerjs/core/facade','LiveShareStatusEnum','2675575hLnfae','13xUqzCO','14XbnPsW','10535690zQLLFE','getId','get','@univerjs/sheets-ui','UniverSheetsFacade','2340808CvuMdy','PRESENTING','UniverProLiveShare','3LbXAgg','136438vglnQc','amd','executeCommand','getRenderById','stopFollowing','@univerjs/sheets/facade','LiveShareStatus','object','@univerjs-pro/live-share','getLiveShareCoordinatorSync','IRenderManagerService','getUnitId','UniverEngineRender','getSheetId','stopPresenting','tryStartPresenting','FEnum','startFollowing','18774DnuFXB','_injector','2299356IdkHid','1381448xOeVfH','UniverSheetsUi','startColumn','SetScrollOperation'];_0x3ae0=function(){return _0x216360;};return _0x3ae0();}
1
+ function _0x2e52(_0xa08691,_0x402dc3){_0xa08691=_0xa08691-0xda;const _0xdfe7a0=_0xdfe7();let _0x2e525a=_0xdfe7a0[_0xa08691];return _0x2e525a;}function _0xdfe7(){const _0x5ac355=['getRenderById','getLiveShareStatus','15740NEhymU','8732889YYGniS','_injector','get','syncExecuteCommand','8oiafOW','stopFollowing','extend','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/sheets-ui','@univerjs-pro/live-share','tryStartPresenting','startRow','getActiveWorkbook','387084IbzEjQ','@univerjs/sheets','PRESENTING','FUniver','FEnum','LiveShareStatusEnum','UniverSheets','8048060FGBzuj','executeCommand','54635EUpREP','1996018JoSYSj','2989551dJXWGH','LiveShareController','No\x20active\x20workbook\x20found.','LiveShareStatus','121VujcNL','565uNjSdm','@univerjs/core/facade','_initialize','_commandService','getStatus','amd','@univerjs/sheets/facade','getActiveSheet','startColumn','FRange','108aTXOAa','SetWorksheetActiveOperation','getSheetId','1tMDXqJ','IRenderManagerService','startFollowing','UniverSheetsUi','UniverProLiveShare','stopPresenting','getUnitId','UniverEngineRender','startPresenting','@univerjs/engine-render','getId'];_0xdfe7=function(){return _0x5ac355;};return _0xdfe7();}(function(_0x19398c,_0x4e169e){const _0x80a9b4=_0x2e52,_0x20b2f4=_0x19398c();while(!![]){try{const _0x52a54b=parseInt(_0x80a9b4(0xff))/0x1*(parseInt(_0x80a9b4(0xec))/0x2)+-parseInt(_0x80a9b4(0xed))/0x3+parseInt(_0x80a9b4(0x10c))/0x4*(parseInt(_0x80a9b4(0xf2))/0x5)+-parseInt(_0x80a9b4(0xfc))/0x6*(parseInt(_0x80a9b4(0xeb))/0x7)+parseInt(_0x80a9b4(0x111))/0x8*(parseInt(_0x80a9b4(0x10d))/0x9)+-parseInt(_0x80a9b4(0xe9))/0xa+-parseInt(_0x80a9b4(0xf1))/0xb*(-parseInt(_0x80a9b4(0xe2))/0xc);if(_0x52a54b===_0x4e169e)break;else _0x20b2f4['push'](_0x20b2f4['shift']());}catch(_0x52fffb){_0x20b2f4['push'](_0x20b2f4['shift']());}}}(_0xdfe7,0xc9a8f),function(_0x8734bb,_0x112193){const _0x26aa40=_0x2e52;typeof exports=='object'&&typeof module<'u'?_0x112193(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=='function'&&define[_0x26aa40(0xf7)]?define([_0x26aa40(0xde),_0x26aa40(0x108),_0x26aa40(0xe3),_0x26aa40(0xdd),_0x26aa40(0xf8),_0x26aa40(0xf3)],_0x112193):(_0x8734bb=typeof globalThis<'u'?globalThis:_0x8734bb||self,_0x112193(_0x8734bb[_0x26aa40(0x103)],_0x8734bb[_0x26aa40(0x106)],_0x8734bb[_0x26aa40(0xe8)],_0x8734bb[_0x26aa40(0x102)],_0x8734bb['UniverSheetsFacade'],_0x8734bb['UniverCoreFacade']));}(this,function(_0x43fc83,_0x336b3d,_0x45d7e6,_0x26ef7f,_0xd5575e,_0x5f379d){'use strict';const _0x44a539=_0x2e52;class _0x2085c5 extends _0xd5575e['FRange']{[_0x44a539(0xf4)](_0x128b23,_0x50a45b,_0xbfd769,_0xcef31,_0x35aac4){const _0x37aec2=_0x44a539,_0x4061bc=_0x128b23['get'](_0x43fc83['LiveShareController']),_0x36e90b=_0x128b23[_0x37aec2(0x10f)](_0x336b3d[_0x37aec2(0x100)]),_0x295b85=_0x50a45b[_0x37aec2(0x105)](),_0x3ca1bc=_0x50a45b[_0x37aec2(0xf9)](),_0x5b37aa=_0x4061bc[_0x37aec2(0xdb)](_0x295b85);(_0x5b37aa==null?void 0x0:_0x5b37aa[_0x37aec2(0xf6)]())!==_0x43fc83[_0x37aec2(0xf0)][_0x37aec2(0xe4)]||(_0xbfd769[_0x37aec2(0xfe)]()!==_0x3ca1bc[_0x37aec2(0xfe)]()&&this[_0x37aec2(0xf5)][_0x37aec2(0xea)](_0x45d7e6[_0x37aec2(0xfd)]['id'],{'unitId':_0x295b85,'subUnitId':_0xbfd769[_0x37aec2(0xfe)]()}),!_0x36e90b[_0x37aec2(0x10a)](_0x295b85))||_0x35aac4[_0x37aec2(0x110)](_0x26ef7f['SetScrollOperation']['id'],{'unitId':_0x50a45b[_0x37aec2(0x105)](),'sheetId':_0xbfd769[_0x37aec2(0xfe)](),'sheetViewStartRow':_0xcef31[_0x37aec2(0xe0)],'sheetViewStartColumn':_0xcef31[_0x37aec2(0xfa)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xd5575e[_0x44a539(0xfb)][_0x44a539(0xda)](_0x2085c5);class _0x2b1b99 extends _0x5f379d[_0x44a539(0xe5)]{[_0x44a539(0x10b)](){const _0x5581d0=_0x44a539;var _0x4d73de,_0x14b9b8;const _0x529b23=this[_0x5581d0(0x10e)]['get'](_0x43fc83[_0x5581d0(0xee)]),_0x5188bf=(_0x4d73de=this[_0x5581d0(0xe1)]())==null?void 0x0:_0x4d73de[_0x5581d0(0x109)]();if(!_0x5188bf)throw new Error(_0x5581d0(0xef));const _0x14c306=_0x529b23[_0x5581d0(0xdb)](_0x5188bf);return(_0x14b9b8=_0x14c306==null?void 0x0:_0x14c306[_0x5581d0(0xf6)]())!=null?_0x14b9b8:_0x43fc83[_0x5581d0(0xf0)]['IDLE'];}[_0x44a539(0x101)](){const _0x2f0155=_0x44a539;var _0x46e805;const _0x5cccab=this['_injector']['get'](_0x43fc83['LiveShareController']),_0x26c080=(_0x46e805=this['getActiveWorkbook']())==null?void 0x0:_0x46e805['getId']();if(!_0x26c080)throw new Error(_0x2f0155(0xef));const _0x3dfa70=_0x5cccab['getLiveShareCoordinatorSync'](_0x26c080);if(!_0x3dfa70)throw new Error(_0x2f0155(0xdc));_0x3dfa70['startFollowing']();}[_0x44a539(0x112)](){const _0x5e6b37=_0x44a539;var _0x5ab6d9;const _0x292091=this['_injector'][_0x5e6b37(0x10f)](_0x43fc83[_0x5e6b37(0xee)]),_0x93dab2=(_0x5ab6d9=this[_0x5e6b37(0xe1)]())==null?void 0x0:_0x5ab6d9[_0x5e6b37(0x109)]();if(!_0x93dab2)throw new Error('No\x20active\x20workbook\x20found.');const _0x109e1f=_0x292091[_0x5e6b37(0xdb)](_0x93dab2);if(!_0x109e1f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x109e1f[_0x5e6b37(0x112)]();}[_0x44a539(0x107)](){const _0x3805b3=_0x44a539;var _0x245fc1;const _0x56174b=this[_0x3805b3(0x10e)]['get'](_0x43fc83[_0x3805b3(0xee)]),_0x4cc45b=(_0x245fc1=this['getActiveWorkbook']())==null?void 0x0:_0x245fc1[_0x3805b3(0x109)]();if(!_0x4cc45b)throw new Error('No\x20active\x20workbook\x20found.');const _0x38ef6a=_0x56174b[_0x3805b3(0xdb)](_0x4cc45b);if(!_0x38ef6a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x38ef6a[_0x3805b3(0xdf)]();}[_0x44a539(0x104)](){const _0x2bffb0=_0x44a539;var _0x58ac06;const _0x1a5bb2=this[_0x2bffb0(0x10e)][_0x2bffb0(0x10f)](_0x43fc83['LiveShareController']),_0x3733ef=(_0x58ac06=this[_0x2bffb0(0xe1)]())==null?void 0x0:_0x58ac06[_0x2bffb0(0x109)]();if(!_0x3733ef)throw new Error('No\x20active\x20workbook\x20found.');const _0x461940=_0x1a5bb2[_0x2bffb0(0xdb)](_0x3733ef);if(!_0x461940)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x461940[_0x2bffb0(0x104)]();}}_0x5f379d[_0x44a539(0xe5)][_0x44a539(0xda)](_0x2b1b99);class _0x593f73 extends _0x5f379d[_0x44a539(0xe6)]{get[_0x44a539(0xe7)](){const _0x2d572d=_0x44a539;return _0x43fc83[_0x2d572d(0xf0)];}}_0x5f379d['FEnum']['extend'](_0x593f73);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x8f7c(){const _0x1f8015=['UniverSheetsUi','sessionStatus$','IUIPartsService','data','dispose$','registerSharedOperation','rxjs','mutations','Dropdown','then','NEW_CHANGESETS','createInstance','jsx','_handleNewChangeSets','_handleTerminate','CollaborationEvent','stopPresenting','_stopPresenting','LiveShareController','evenodd','presenting','Disposable','LiveShareService','UniverProLiveShare','LIVESHARE_TERMINATE','startFollowing','CommandType','pipe','substring','LiveShare','3bluRvT','NOT_FOLLOWING','LiveShareCoordinator','reverse','live-share.config','getInitialStates','tag','registerInitialStateReporter','LIVESHARE_NEW_HOST','_stopFollowing','Button','_handleOperation','Start','react/jsx-runtime','send','Start\x20following','UniverProCollaboration','end','CollaborationSessionService','@univerjs/ui','following','_startLiveShareCoordinator','UNIVER_UNKNOWN','mask','requireSession','getConfig','defIds','_presenter','exports','_status$','useObservable','getLiveShareCoordinatorSync','InsertSheetMutation','OPERATION','UniverCollaborationClientPlugin','toStringTag','SAME_OPERATION_SHARE_INTERVAL','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverProCollaborationClient','type','default','_beIdle','takeUntil','onCommandExecuted','@univerjs-pro/collaboration-client','merge','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','You\x27re\x20presenting\x20the\x20document','includes','UNIVER_LIVE_SHARE_PLUGIN','Inject','univer-size-4','path','has','Stop\x20presenting','IDLE','_startFollowing','replace','next','complete','_uiPartsService','_mountLiveShare','entries','unitId','_status','_configService','attrs','throttleTime','xlink:href','from','RxDisposable','clear','LIVESHARE_FETCH_OPERATIONS','_liveShareService','_injector','not-following','Fragment','stringify','function','_handleNewHost','disposeWithMe','get','React','operators','presenter','You\x27re\x20not\x20following\x20the\x20presenter','map','Plugin','_collabSessionService','defs','_fetchOperations','forwardRef','random','PRESENTING','dispose','FOLLOWING','executeCommand','IConfigService','getOwnPropertyDescriptor','text','_handleOffline','getCurrentTypeOfUnit$','1879192ZdeCUJ','30XQHZAP','set','none','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','shouldShareOperation','toDisposable','length','_config','status$','getMemberID','@univerjs/core','305374VQFyfj','mergeOverrideWithDependencies','current','react','@univerjs-pro/collaboration','Injector','memberID','HEADER_MENU','UniverSheets','params','UniverLiveSharePlugin','369960VQxtfO','_reporters','_commandDisposable','getTypeOfUnitAdded$','Present\x20this\x20document','You\x27are\x20offline.','@univerjs/design','delete','offline','jsxs','BuiltInUIPart','stopFollowing','UniverDesign','getLiveShareCoordinator','1236048Qfejwy','touchDependencies','createElement','trim','use','object','symbol','override','string','1em','registerDependencies','getUnitId','DesktopLiveShareController','forEach','connectInjector','pluginName','rxjs/operators','getTypeOfUnitDisposed$','SessionStatus','useDependency','useRef','_handleOnline','_sharedOperations','320904zkRWUV','init','useState','BehaviorSubject','_init','svg','div','LiveShareStatus','Stop\x20following','@univerjs/sheets','defineProperty','968700nVIkRB','idSuffix','add','UniverInstanceType','getStatus','currentColor','UniverIcon','UNIVER_SHEET','ICommandService','_commandService','parse','operations','LiveShareIcon','_entities','_unitID','colorChannel1','_univerInstanceService','subscribe','tryStartPresenting','OFFLINE','live-share-icon','toString','displayName','0\x200\x2017\x2017','SetWorksheetActiveOperation','506556advuNT','find','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','_collabSession','clsx','children','fill','SetScrollOperation'];_0x8f7c=function(){return _0x1f8015;};return _0x8f7c();}function _0x3e36(_0x22d6bd,_0x35e45e){_0x22d6bd=_0x22d6bd-0x11e;const _0x8f7c2f=_0x8f7c();let _0x3e3653=_0x8f7c2f[_0x22d6bd];return _0x3e3653;}(function(_0x4ab8de,_0x3460de){const _0x4d8687=_0x3e36,_0x3ab222=_0x4ab8de();while(!![]){try{const _0x45e64b=-parseInt(_0x4d8687(0x1cc))/0x1*(-parseInt(_0x4d8687(0x152))/0x2)+-parseInt(_0x4d8687(0x1a6))/0x3+parseInt(_0x4d8687(0x18d))/0x4+parseInt(_0x4d8687(0x15d))/0x5*(-parseInt(_0x4d8687(0x145))/0x6)+parseInt(_0x4d8687(0x144))/0x7+-parseInt(_0x4d8687(0x16b))/0x8+-parseInt(_0x4d8687(0x182))/0x9;if(_0x45e64b===_0x3460de)break;else _0x3ab222['push'](_0x3ab222['shift']());}catch(_0xb4ef46){_0x3ab222['push'](_0x3ab222['shift']());}}}(_0x8f7c,0x3a866),function(_0x3abc90,_0x3df5cf){const _0xf7dcd=_0x3e36;typeof exports==_0xf7dcd(0x170)&&typeof module<'u'?_0x3df5cf(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==_0xf7dcd(0x12c)&&define['amd']?define([_0xf7dcd(0x1e8),_0xf7dcd(0x151),_0xf7dcd(0x1df),_0xf7dcd(0x1d9),_0xf7dcd(0x163),_0xf7dcd(0x155),_0xf7dcd(0x156),_0xf7dcd(0x1f8),_0xf7dcd(0x18b),_0xf7dcd(0x1b4),_0xf7dcd(0x17b),'@univerjs/sheets-ui'],_0x3df5cf):(_0x3abc90=typeof globalThis<'u'?globalThis:_0x3abc90||self,_0x3df5cf(_0x3abc90[_0xf7dcd(0x1c5)]={},_0x3abc90['UniverCore'],_0x3abc90['UniverUi'],_0x3abc90[_0xf7dcd(0x130)],_0x3abc90[_0xf7dcd(0x169)],_0x3abc90[_0xf7dcd(0x130)],_0x3abc90[_0xf7dcd(0x1dc)],_0x3abc90[_0xf7dcd(0x1f2)],_0x3abc90[_0xf7dcd(0x15a)],_0x3abc90[_0xf7dcd(0x1b4)],_0x3abc90['rxjs'][_0xf7dcd(0x131)],_0x3abc90[_0xf7dcd(0x1ae)]));}(this,function(_0x1c5f91,_0x342837,_0x20cf75,_0x5d3518,_0x19382c,_0x2af741,_0x2fb4e6,_0x4b3acb,_0x22bb53,_0x5d360a,_0x392387,_0x51dae5){'use strict';const _0x7360d4=_0x3e36;var _0x2e2910=Object['defineProperty'],_0x530287=(_0x1465c3,_0x1f4c9d,_0x368241)=>_0x1f4c9d in _0x1465c3?_0x2e2910(_0x1465c3,_0x1f4c9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x368241}):_0x1465c3[_0x1f4c9d]=_0x368241,_0x408b92=(_0x1557fc,_0x3f4af7,_0x41d953)=>_0x530287(_0x1557fc,typeof _0x3f4af7!='symbol'?_0x3f4af7+'':_0x3f4af7,_0x41d953);function _0x46471f({ref:_0xd58555,..._0x47544e}){const _0x5d7a11=_0x3e36,{icon:_0x1dbc6f,id:_0x4c3045,className:_0x16d3ec,extend:_0x44b08f,..._0x4d2a53}=_0x47544e,_0x14a4cb=('univerjs-icon\x20univerjs-icon-'+_0x4c3045+'\x20'+(_0x16d3ec||''))[_0x5d7a11(0x16e)](),_0x3318dc=_0x2af741[_0x5d7a11(0x17f)]('_'+_0x202d02());return _0x4f21bf(_0x1dbc6f,''+_0x4c3045,{'defIds':_0x1dbc6f[_0x5d7a11(0x1e6)],'idSuffix':_0x3318dc[_0x5d7a11(0x154)]},{'ref':_0xd58555,'className':_0x14a4cb,..._0x4d2a53},_0x44b08f);}function _0x4f21bf(_0x106b65,_0x584ee7,_0x42c4f7,_0x18292f,_0x32c563){const _0x5d76fe=_0x3e36;return _0x2af741[_0x5d76fe(0x16d)](_0x106b65[_0x5d76fe(0x1d2)],{'key':_0x584ee7,..._0x552b13(_0x106b65,_0x42c4f7,_0x32c563),..._0x18292f},(_0x1ceb3b(_0x106b65,_0x42c4f7)[_0x5d76fe(0x1ab)]||[])[_0x5d76fe(0x134)]((_0x38744b,_0x7bbab8)=>_0x4f21bf(_0x38744b,_0x584ee7+'-'+_0x106b65[_0x5d76fe(0x1d2)]+'-'+_0x7bbab8,_0x42c4f7,void 0x0,_0x32c563)));}function _0x552b13(_0x7de52a,_0x1e969c,_0x35910c){const _0xcb2ca8=_0x3e36,_0x8ada6={..._0x7de52a[_0xcb2ca8(0x120)]};_0x35910c!=null&&_0x35910c[_0xcb2ca8(0x19c)]&&_0x8ada6[_0xcb2ca8(0x1ac)]===_0xcb2ca8(0x19c)&&(_0x8ada6[_0xcb2ca8(0x1ac)]=_0x35910c[_0xcb2ca8(0x19c)]),_0x7de52a[_0xcb2ca8(0x1d2)]===_0xcb2ca8(0x1e3)&&_0x8ada6['id']&&(_0x8ada6['id']=_0x8ada6['id']+_0x1e969c[_0xcb2ca8(0x18e)]),Object[_0xcb2ca8(0x20a)](_0x8ada6)[_0xcb2ca8(0x178)](([_0x20f153,_0x5431c5])=>{const _0x5e2ffc=_0xcb2ca8;_0x20f153===_0x5e2ffc(0x1e3)&&typeof _0x5431c5=='string'&&(_0x8ada6[_0x20f153]=_0x5431c5[_0x5e2ffc(0x205)](/url\(#(.*)\)/,'url(#$1'+_0x1e969c[_0x5e2ffc(0x18e)]+')'));});const {defIds:_0x15b5de}=_0x1e969c;return!_0x15b5de||_0x15b5de[_0xcb2ca8(0x14d)]===0x0||(_0x7de52a[_0xcb2ca8(0x1d2)]===_0xcb2ca8(0x16f)&&_0x8ada6[_0xcb2ca8(0x122)]&&(_0x8ada6[_0xcb2ca8(0x122)]=_0x8ada6['xlink:href']+_0x1e969c['idSuffix']),Object[_0xcb2ca8(0x20a)](_0x8ada6)[_0xcb2ca8(0x178)](([_0x2dd5c8,_0x4f3b2b])=>{const _0xec82fd=_0xcb2ca8;typeof _0x4f3b2b==_0xec82fd(0x173)&&(_0x8ada6[_0x2dd5c8]=_0x4f3b2b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1e969c[_0xec82fd(0x18e)]+')'));})),_0x8ada6;}function _0x1ceb3b(_0x327cf2,_0x4c415a){const _0x121b0c=_0x3e36;var _0x428d20;const {defIds:_0x15e44f}=_0x4c415a;return!_0x15e44f||_0x15e44f[_0x121b0c(0x14d)]===0x0?_0x327cf2:_0x327cf2[_0x121b0c(0x1d2)]===_0x121b0c(0x137)&&((_0x428d20=_0x327cf2[_0x121b0c(0x1ab)])!=null&&_0x428d20[_0x121b0c(0x14d)])?{..._0x327cf2,'children':_0x327cf2['children'][_0x121b0c(0x134)](_0x3a7401=>typeof _0x3a7401[_0x121b0c(0x120)]['id']==_0x121b0c(0x173)&&_0x15e44f&&_0x15e44f['includes'](_0x3a7401[_0x121b0c(0x120)]['id'])?{..._0x3a7401,'attrs':{..._0x3a7401[_0x121b0c(0x120)],'id':_0x3a7401['attrs']['id']+_0x4c415a['idSuffix']}}:_0x3a7401)}:_0x327cf2;}function _0x202d02(){const _0x24fdb5=_0x3e36;return Math[_0x24fdb5(0x13a)]()[_0x24fdb5(0x1a2)](0x24)[_0x24fdb5(0x1ca)](0x2,0x8);}_0x46471f[_0x7360d4(0x1a3)]=_0x7360d4(0x193);const _0x164371={'tag':_0x7360d4(0x187),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x7360d4(0x147),'viewBox':_0x7360d4(0x1a4),'width':_0x7360d4(0x174),'height':_0x7360d4(0x174)},'children':[{'tag':_0x7360d4(0x200),'attrs':{'fill':_0x7360d4(0x192),'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':_0x7360d4(0x200),'attrs':{'fill':_0x7360d4(0x192),'d':_0x7360d4(0x1fa),'fillRule':_0x7360d4(0x1c1),'clipRule':_0x7360d4(0x1c1)}}]},_0x342eb9=_0x2af741[_0x7360d4(0x139)](function(_0x281935,_0x515bc8){const _0x395ddb=_0x7360d4;return _0x2af741[_0x395ddb(0x16d)](_0x46471f,Object['assign']({},_0x281935,{'id':_0x395ddb(0x1a1),'ref':_0x515bc8,'icon':_0x164371}));});_0x342eb9['displayName']=_0x7360d4(0x199);class _0x16957c extends _0x342837[_0x7360d4(0x1c3)]{constructor(){const _0x5df372=_0x7360d4;super(...arguments),_0x408b92(this,_0x5df372(0x181),new Set()),_0x408b92(this,_0x5df372(0x15e),new Set());}['registerSharedOperation'](_0x78c52b){const _0x58e555=_0x7360d4;return this['_sharedOperations'][_0x58e555(0x18f)](_0x78c52b),_0x342837[_0x58e555(0x14c)](()=>this['_sharedOperations'][_0x58e555(0x164)](_0x78c52b));}[_0x7360d4(0x1d3)](_0x3451b6){const _0x18b97d=_0x7360d4;return this['_reporters'][_0x18b97d(0x18f)](_0x3451b6),_0x342837[_0x18b97d(0x14c)](()=>this[_0x18b97d(0x15e)]['delete'](_0x3451b6));}[_0x7360d4(0x14b)](_0x46b391){const _0x36779d=_0x7360d4;return this['_sharedOperations'][_0x36779d(0x201)](_0x46b391);}[_0x7360d4(0x1d1)](_0x4585f4){const _0x68eaa2=_0x7360d4;return Array[_0x68eaa2(0x123)](this[_0x68eaa2(0x15e)])[_0x68eaa2(0x134)](_0x3f9410=>_0x3f9410(_0x4585f4));}}var _0x27689d=Object[_0x7360d4(0x140)],_0x5cb2ff=(_0xd444a5,_0x131b0e,_0x16ee90,_0x5b7807)=>{for(var _0x3c8b64=_0x5b7807>0x1?void 0x0:_0x5b7807?_0x27689d(_0x131b0e,_0x16ee90):_0x131b0e,_0x3629dd=_0xd444a5['length']-0x1,_0x265f1f;_0x3629dd>=0x0;_0x3629dd--)(_0x265f1f=_0xd444a5[_0x3629dd])&&(_0x3c8b64=_0x265f1f(_0x3c8b64)||_0x3c8b64);return _0x3c8b64;},_0x58bb4e=(_0x40d00c,_0x2c088f)=>(_0x3a63c4,_0x4cc526)=>_0x2c088f(_0x3a63c4,_0x4cc526,_0x40d00c);_0x1c5f91[_0x7360d4(0x1c0)]=class extends _0x342837[_0x7360d4(0x124)]{constructor(_0x49c171,_0x42f35e,_0x4bf9f8){const _0x4a1465=_0x7360d4;super(),_0x408b92(this,'_entities',new Map()),(this[_0x4a1465(0x19d)]=_0x49c171,this[_0x4a1465(0x128)]=_0x42f35e,this[_0x4a1465(0x136)]=_0x4bf9f8,this['_init']());}async[_0x7360d4(0x16a)](_0x22d998){const _0x5d8e39=_0x7360d4;return this[_0x5d8e39(0x19a)][_0x5d8e39(0x201)](_0x22d998)||await this[_0x5d8e39(0x1e1)](_0x22d998),this[_0x5d8e39(0x19a)][_0x5d8e39(0x12f)](_0x22d998);}[_0x7360d4(0x1eb)](_0x33c1b2){const _0x4670a1=_0x7360d4;var _0x147593;return(_0x147593=this['_entities'][_0x4670a1(0x12f)](_0x33c1b2))!=null?_0x147593:null;}[_0x7360d4(0x186)](){const _0x268e1b=_0x7360d4;this[_0x268e1b(0x19d)][_0x268e1b(0x160)](_0x342837[_0x268e1b(0x190)][_0x268e1b(0x194)])[_0x268e1b(0x1c9)](_0x392387[_0x268e1b(0x1f6)](this['dispose$']))[_0x268e1b(0x19e)](async _0x6d3cb6=>{const _0x561d47=_0x268e1b,_0x39cef5=_0x6d3cb6[_0x561d47(0x176)]();this[_0x561d47(0x19a)]['has'](_0x39cef5)||this[_0x561d47(0x1e1)](_0x39cef5);}),this[_0x268e1b(0x19d)][_0x268e1b(0x17c)](_0x342837[_0x268e1b(0x190)]['UNIVER_SHEET'])[_0x268e1b(0x1c9)](_0x392387[_0x268e1b(0x1f6)](this[_0x268e1b(0x1b2)]))[_0x268e1b(0x19e)](_0x4289dc=>{const _0xf113e4=_0x268e1b,_0x47b295=_0x4289dc['getUnitId'](),_0x5c3b24=this[_0xf113e4(0x19a)][_0xf113e4(0x12f)](_0x47b295);_0x5c3b24==null||_0x5c3b24['dispose']();});}async[_0x7360d4(0x1e1)](_0x34ed81){const _0x3e1ab3=_0x7360d4,_0x4b2b0a=await this[_0x3e1ab3(0x136)][_0x3e1ab3(0x1e4)](_0x34ed81),_0x215a47=this[_0x3e1ab3(0x128)][_0x3e1ab3(0x1b9)](_0x1c5f91[_0x3e1ab3(0x1ce)],_0x34ed81,_0x4b2b0a);return _0x215a47['init'](),this['_entities']['set'](_0x34ed81,_0x215a47),_0x215a47;}},_0x1c5f91[_0x7360d4(0x1c0)]=_0x5cb2ff([_0x58bb4e(0x0,_0x342837['IUniverInstanceService']),_0x58bb4e(0x1,_0x342837[_0x7360d4(0x1fe)](_0x342837['Injector'])),_0x58bb4e(0x2,_0x342837[_0x7360d4(0x1fe)](_0x4b3acb[_0x7360d4(0x1de)]))],_0x1c5f91[_0x7360d4(0x1c0)]);var _0x1aabba=(_0x10c688=>(_0x10c688[_0x7360d4(0x1a0)]=_0x7360d4(0x165),_0x10c688[_0x7360d4(0x203)]=_0x7360d4(0x148),_0x10c688['FOLLOWING']='following',_0x10c688[_0x7360d4(0x1cd)]=_0x7360d4(0x129),_0x10c688['PRESENTING']='presenting',_0x10c688))(_0x1aabba||{});const _0x383b2a=_0x7360d4(0x1f0),_0x460867=0xc8;_0x1c5f91['LiveShareCoordinator']=class extends _0x342837['RxDisposable']{constructor(_0x1172f0,_0x2e1f9e,_0xe4e0c0,_0x1cf4d6,_0x5d7b05){const _0x4e2739=_0x7360d4;super(),_0x408b92(this,_0x4e2739(0x1e9),new _0x5d360a[(_0x4e2739(0x185))]('idle')),_0x408b92(this,_0x4e2739(0x14f),this['_status$']['asObservable']()),_0x408b92(this,_0x4e2739(0x186),!0x1),_0x408b92(this,'_commandDisposable',null),_0x408b92(this,_0x4e2739(0x1e7),null),(this[_0x4e2739(0x19b)]=_0x1172f0,this[_0x4e2739(0x1a9)]=_0x2e1f9e,this[_0x4e2739(0x11f)]=_0xe4e0c0,this[_0x4e2739(0x127)]=_0x1cf4d6,this[_0x4e2739(0x196)]=_0x5d7b05);}get['_status'](){const _0xc2994a=_0x7360d4;return this[_0xc2994a(0x1e9)]['getValue']();}[_0x7360d4(0x13c)](){const _0x1b7585=_0x7360d4;var _0x187e45;(_0x187e45=this[_0x1b7585(0x15f)])==null||_0x187e45['dispose'](),this[_0x1b7585(0x1e9)][_0x1b7585(0x206)]('idle'),this[_0x1b7585(0x1e9)][_0x1b7585(0x207)]();}[_0x7360d4(0x191)](){const _0x419cc1=_0x7360d4;return this[_0x419cc1(0x11e)];}[_0x7360d4(0x183)](){const _0xfdb6ca=_0x7360d4;this[_0xfdb6ca(0x186)]||(this['_init']=!0x0,this[_0xfdb6ca(0x1a9)][_0xfdb6ca(0x1af)][_0xfdb6ca(0x1c9)](_0x392387[_0xfdb6ca(0x1f6)](this['dispose$']))['subscribe'](_0x3f4f0c=>{const _0xc566c0=_0xfdb6ca;switch(_0x3f4f0c){case _0x4b3acb[_0xc566c0(0x17d)][_0xc566c0(0x1a0)]:this[_0xc566c0(0x142)]();break;case _0x4b3acb[_0xc566c0(0x17d)]['ONLINE']:this[_0xc566c0(0x180)]();break;}}),this[_0xfdb6ca(0x1a9)]['event$'][_0xfdb6ca(0x1c9)](_0x392387[_0xfdb6ca(0x1f6)](this[_0xfdb6ca(0x1b2)]))[_0xfdb6ca(0x19e)](_0xbf902d=>{const _0x502acd=_0xfdb6ca,{eventID:_0x43d417}=_0xbf902d;switch(_0x43d417){case _0x2fb4e6[_0x502acd(0x1bd)][_0x502acd(0x1d4)]:this[_0x502acd(0x12d)](_0xbf902d);break;case _0x2fb4e6[_0x502acd(0x1bd)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0xbf902d);break;case _0x2fb4e6[_0x502acd(0x1bd)]['LIVESHARE_TERMINATE']:this[_0x502acd(0x1bc)]();break;case _0x2fb4e6[_0x502acd(0x1bd)][_0x502acd(0x1b8)]:this[_0x502acd(0x1bb)](_0xbf902d);break;}}));}[_0x7360d4(0x19f)](){const _0x53652f=_0x7360d4;this[_0x53652f(0x1a9)][_0x53652f(0x1da)]({'eventID':_0x2fb4e6[_0x53652f(0x1bd)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x53652f(0x19b)],'userID':this[_0x53652f(0x1a9)][_0x53652f(0x150)]()}},this[_0x53652f(0x19b)]);}[_0x7360d4(0x1be)](){const _0x3175c0=_0x7360d4;this['_status']===_0x3175c0(0x1c2)&&(this[_0x3175c0(0x1e9)][_0x3175c0(0x206)](_0x3175c0(0x148)),this[_0x3175c0(0x1a9)][_0x3175c0(0x1da)]({'eventID':_0x2fb4e6[_0x3175c0(0x1bd)][_0x3175c0(0x1c6)],'data':{'unitID':this[_0x3175c0(0x19b)]}},this[_0x3175c0(0x19b)]));}[_0x7360d4(0x1c7)](){const _0xc13be2=_0x7360d4;this[_0xc13be2(0x11e)]===_0xc13be2(0x129)&&(this[_0xc13be2(0x1e9)][_0xc13be2(0x206)](_0xc13be2(0x1e0)),this[_0xc13be2(0x204)]());}[_0x7360d4(0x168)](){const _0x35ca0c=_0x7360d4;this[_0x35ca0c(0x11e)]===_0x35ca0c(0x1e0)&&this['_stopFollowing']();}[_0x7360d4(0x12d)](_0x313768){const _0x172bd5=_0x7360d4,{presenter:_0x5a709d}=_0x313768[_0x172bd5(0x1b1)],_0x4678e0=this['_collabSession'][_0x172bd5(0x150)]();this[_0x172bd5(0x1e7)]=_0x5a709d,_0x5a709d===_0x4678e0?(this[_0x172bd5(0x1d5)](),this[_0x172bd5(0x14a)]()):this[_0x172bd5(0x11e)]!=='not-following'&&(this[_0x172bd5(0x1bf)](),this['_startFollowing']());}[_0x7360d4(0x138)](){const _0x1a435f=_0x7360d4,_0x411b65={'eventID':_0x2fb4e6['CollaborationEvent'][_0x1a435f(0x126)]};this['_collabSession'][_0x1a435f(0x1da)](_0x411b65,this[_0x1a435f(0x19b)]);}[_0x7360d4(0x1bc)](){const _0x13c559=_0x7360d4;this[_0x13c559(0x1e7)]=null,this[_0x13c559(0x11e)]!==_0x13c559(0x1c2)&&this[_0x13c559(0x1f5)]();}[_0x7360d4(0x1bb)](_0xefc4a5){const _0x4a8a56=_0x7360d4;if(this['_status']==='following'&&this[_0x4a8a56(0x1e7)]===_0xefc4a5[_0x4a8a56(0x1b1)][_0x4a8a56(0x158)]){const _0x14aa64=_0x2fb4e6['parseProtocolChangeset'](_0xefc4a5[_0x4a8a56(0x1b1)])[_0x4a8a56(0x1b5)][_0x4a8a56(0x1cf)]()[_0x4a8a56(0x1a7)](_0x253fbc=>_0x253fbc['id']===_0x22bb53[_0x4a8a56(0x1ec)]['id']);if(_0x14aa64){const _0x567441=_0x14aa64[_0x4a8a56(0x15b)][_0x4a8a56(0x20b)],_0x26b94d=_0x14aa64['params']['sheet']['id'];setTimeout(()=>{const _0x3019ae=_0x4a8a56;this[_0x3019ae(0x196)][_0x3019ae(0x13e)](_0x22bb53[_0x3019ae(0x1a5)]['id'],{'unitId':_0x567441,'subUnitId':_0x26b94d},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5ed318=_0x7360d4;this[_0x5ed318(0x1e9)][_0x5ed318(0x206)](_0x5ed318(0x1c2));const _0xe6516=new Map(),_0x2b463d=this['_commandDisposable']=new _0x342837['DisposableCollection']();_0x2b463d['add'](_0x342837[_0x5ed318(0x14c)](()=>{const _0x3988ee=_0x5ed318;_0xe6516[_0x3988ee(0x178)](_0x3caa4c=>_0x3caa4c['complete']()),_0xe6516[_0x3988ee(0x125)]();})),_0x2b463d[_0x5ed318(0x18f)](this['_commandService'][_0x5ed318(0x1f7)](_0x378f2d=>{const _0x3eea8e=_0x5ed318;var _0x5a4c6d;if(_0x378f2d[_0x3eea8e(0x1f3)]!==_0x342837[_0x3eea8e(0x1c8)][_0x3eea8e(0x1ed)]||!this[_0x3eea8e(0x127)][_0x3eea8e(0x14b)](_0x378f2d['id']))return;const {id:_0x8b8179}=_0x378f2d;let _0x13d4ae;_0xe6516[_0x3eea8e(0x201)](_0x8b8179)?_0x13d4ae=_0xe6516[_0x3eea8e(0x12f)](_0x8b8179):(_0x13d4ae=new _0x5d360a['Subject'](),_0xe6516[_0x3eea8e(0x146)](_0x8b8179,_0x13d4ae),_0x13d4ae['pipe'](_0x392387[_0x3eea8e(0x121)]((_0x5a4c6d=this[_0x3eea8e(0x11f)][_0x3eea8e(0x1e5)](_0x383b2a))!=null?_0x5a4c6d:_0x460867,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3eea8e(0x19e)](_0xe247d7=>{const _0x38c256=_0x3eea8e;this[_0x38c256(0x1a9)][_0x38c256(0x1da)]({'eventID':_0x2fb4e6[_0x38c256(0x1bd)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x38c256(0x19b)],'operations':{[_0xe247d7['id']]:{'id':_0xe247d7['id'],'params':JSON[_0x38c256(0x12b)](_0xe247d7[_0x38c256(0x15b)])}}}},this[_0x38c256(0x19b)]);})),_0x13d4ae[_0x3eea8e(0x206)](_0x378f2d);})),this[_0x5ed318(0x127)]['getInitialStates'](this[_0x5ed318(0x19b)])[_0x5ed318(0x178)](_0x3c10d3=>this[_0x5ed318(0x1a9)][_0x5ed318(0x1da)]({'eventID':_0x2fb4e6['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5ed318(0x19b)],'operations':{[_0x3c10d3['id']]:{'id':_0x3c10d3['id'],'params':JSON[_0x5ed318(0x12b)](_0x3c10d3[_0x5ed318(0x15b)])}}}},this[_0x5ed318(0x19b)]));}[_0x7360d4(0x1bf)](){const _0xd09dce=_0x7360d4;var _0x3f9f1d;this[_0xd09dce(0x1e9)][_0xd09dce(0x206)](_0xd09dce(0x148)),(_0x3f9f1d=this[_0xd09dce(0x15f)])==null||_0x3f9f1d[_0xd09dce(0x13c)](),this['_commandDisposable']=null;}[_0x7360d4(0x204)](){const _0x4f6042=_0x7360d4;var _0x5f482b;(_0x5f482b=this[_0x4f6042(0x15f)])==null||_0x5f482b['dispose'](),this[_0x4f6042(0x1e9)][_0x4f6042(0x206)](_0x4f6042(0x1e0));}[_0x7360d4(0x1f5)](){const _0x4d724e=_0x7360d4;var _0x36f552;this[_0x4d724e(0x1e9)]['next'](_0x4d724e(0x148)),(_0x36f552=this['_commandDisposable'])==null||_0x36f552[_0x4d724e(0x13c)](),this[_0x4d724e(0x15f)]=null;}[_0x7360d4(0x1d5)](){const _0x33f316=_0x7360d4;var _0x32f0c4;this[_0x33f316(0x1e9)][_0x33f316(0x206)]('not-following'),(_0x32f0c4=this[_0x33f316(0x15f)])==null||_0x32f0c4[_0x33f316(0x13c)]();}[_0x7360d4(0x1d7)](_0x2f7dfa){const _0x51065b=_0x7360d4;if([_0x51065b(0x1c2),_0x51065b(0x129),_0x51065b(0x165)][_0x51065b(0x1fc)](this['_status'])||!_0x2f7dfa['data'][_0x51065b(0x132)]||_0x2f7dfa['data']['presenter']===this[_0x51065b(0x1a9)]['getMemberID']())return;this[_0x51065b(0x11e)]===_0x51065b(0x148)&&this[_0x51065b(0x204)]();const _0x3b24db=_0x2f7dfa[_0x51065b(0x1b1)][_0x51065b(0x198)];Object['values'](_0x3b24db)[_0x51065b(0x178)](_0x52c6f0=>{const _0x193ee1=_0x51065b;this[_0x193ee1(0x196)][_0x193ee1(0x13e)](_0x52c6f0['id'],_0x52c6f0['params']?JSON[_0x193ee1(0x197)](_0x52c6f0[_0x193ee1(0x15b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x577cb2=_0x7360d4;var _0x211f75;this[_0x577cb2(0x1e9)][_0x577cb2(0x206)](_0x577cb2(0x165)),(_0x211f75=this[_0x577cb2(0x15f)])==null||_0x211f75['dispose']();}[_0x7360d4(0x180)](){const _0x4dc37b=_0x7360d4;this[_0x4dc37b(0x1e9)][_0x4dc37b(0x206)]('idle'),this[_0x4dc37b(0x138)]();}},_0x1c5f91['LiveShareCoordinator']=_0x5cb2ff([_0x58bb4e(0x2,_0x342837[_0x7360d4(0x13f)]),_0x58bb4e(0x3,_0x342837[_0x7360d4(0x1fe)](_0x16957c)),_0x58bb4e(0x4,_0x342837[_0x7360d4(0x195)])],_0x1c5f91['LiveShareCoordinator']);function _0x245629(){const _0x58a902=_0x7360d4,_0x4c828a=_0x20cf75[_0x58a902(0x17e)](_0x1c5f91['LiveShareController']),_0xc9d43f=_0x20cf75[_0x58a902(0x17e)](_0x342837['IUniverInstanceService']),_0x7d41da=_0x20cf75[_0x58a902(0x1ea)](()=>_0xc9d43f[_0x58a902(0x143)](_0x342837[_0x58a902(0x190)][_0x58a902(0x194)]),void 0x0,!0x1,[]),[_0x1be1b1,_0x2d6654]=_0x2af741[_0x58a902(0x184)](null),[_0x7fe31b,_0x3fe9f3]=_0x2af741[_0x58a902(0x184)](_0x1aabba[_0x58a902(0x203)]),_0x394adb=_0x2af741[_0x58a902(0x17f)](null);return _0x2af741['useEffect'](()=>(_0x7d41da&&_0x4c828a[_0x58a902(0x16a)](_0x7d41da[_0x58a902(0x176)]())[_0x58a902(0x1b7)](_0x29e3d7=>{const _0x4be241=_0x58a902;_0x2d6654(_0x29e3d7),_0x394adb[_0x4be241(0x154)]=_0x29e3d7['status$']['subscribe'](_0xdd020=>{_0x3fe9f3(_0xdd020);});}),()=>{const _0x5e89ad=_0x58a902;var _0x14048e;(_0x14048e=_0x394adb[_0x5e89ad(0x154)])==null||_0x14048e['unsubscribe'](),_0x394adb[_0x5e89ad(0x154)]=null;}),[_0x7d41da,_0x4c828a]),_0x1be1b1?_0x5d3518[_0x58a902(0x1ba)](_0x19382c[_0x58a902(0x1b6)],{'align':_0x58a902(0x1dd),'disabled':_0x7fe31b===_0x1aabba[_0x58a902(0x1a0)],'className':_0x58a902(0x1a8),'overlay':_0x5d3518[_0x58a902(0x1ba)](_0xe21a01,{'status':_0x7fe31b,'coordinator':_0x1be1b1}),'children':_0x5d3518[_0x58a902(0x1ba)]('button',{'className':_0x19382c[_0x58a902(0x1aa)](_0x58a902(0x1f1),{'univer-cursor-not-allowed':_0x7fe31b===_0x1aabba['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x7fe31b!==_0x1aabba[_0x58a902(0x1a0)]}),'type':'button','children':_0x5d3518[_0x58a902(0x1ba)](_0x342eb9,{'className':_0x58a902(0x1ff)})})}):null;}function _0xe21a01(_0x44a76f){const _0x7169b5=_0x7360d4,{status:_0x340aa1,coordinator:_0x48cb5b}=_0x44a76f;switch(_0x340aa1){case _0x1aabba[_0x7169b5(0x203)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x3b695d,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x13d)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x3b871b,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x1cd)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x107415,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x1a0)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x31f1fa,{});case _0x1aabba[_0x7169b5(0x13b)]:return _0x5d3518['jsx'](_0x3218bd,{'coordinator':_0x48cb5b});default:return null;}}function _0x3b695d(_0x42efa2){const _0x5498d2=_0x7360d4,{coordinator:_0x265161}=_0x42efa2;return _0x5d3518[_0x5498d2(0x166)](_0x5d3518[_0x5498d2(0x12a)],{'children':[_0x5d3518[_0x5498d2(0x1ba)](_0x5498d2(0x188),{'className':_0x5498d2(0x149),'children':_0x5498d2(0x161)}),_0x5d3518[_0x5498d2(0x1ba)](_0x19382c[_0x5498d2(0x1d6)],{'onClick':()=>_0x265161[_0x5498d2(0x19f)](),'children':_0x5498d2(0x1d8)})]});}function _0x3b871b(_0x18c67d){const _0x182919=_0x7360d4,{coordinator:_0x55972c}=_0x18c67d;return _0x5d3518[_0x182919(0x166)](_0x5d3518[_0x182919(0x12a)],{'children':[_0x5d3518[_0x182919(0x1ba)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x5d3518[_0x182919(0x1ba)](_0x19382c['Button'],{'onClick':()=>_0x55972c[_0x182919(0x168)](),'children':_0x182919(0x18a)})]});}function _0x107415(_0x12c7d0){const _0x1f3ea3=_0x7360d4,{coordinator:_0x4a479b}=_0x12c7d0;return _0x5d3518[_0x1f3ea3(0x166)](_0x5d3518['Fragment'],{'children':[_0x5d3518['jsx'](_0x1f3ea3(0x188),{'className':_0x1f3ea3(0x149),'children':_0x1f3ea3(0x133)}),_0x5d3518['jsx'](_0x19382c[_0x1f3ea3(0x1d6)],{'variant':_0x1f3ea3(0x141),'onClick':()=>_0x4a479b[_0x1f3ea3(0x1c7)](),'children':_0x1f3ea3(0x1db)})]});}function _0x3218bd(_0x51e777){const _0x506f50=_0x7360d4,{coordinator:_0x30ba29}=_0x51e777;return _0x5d3518['jsxs'](_0x5d3518[_0x506f50(0x12a)],{'children':[_0x5d3518[_0x506f50(0x1ba)](_0x506f50(0x188),{'className':_0x506f50(0x149),'children':_0x506f50(0x1fb)}),_0x5d3518[_0x506f50(0x1ba)](_0x19382c[_0x506f50(0x1d6)],{'variant':_0x506f50(0x1f4),'onClick':()=>_0x30ba29[_0x506f50(0x1be)](),'children':_0x506f50(0x202)})]});}function _0x31f1fa(){const _0x55acb2=_0x7360d4;return _0x5d3518[_0x55acb2(0x1ba)](_0x5d3518[_0x55acb2(0x12a)],{'children':_0x55acb2(0x162)});}var _0x1e559a=Object[_0x7360d4(0x140)],_0x268bf6=(_0x95e674,_0x5f1d04,_0x17ca30,_0x232611)=>{const _0x12b519=_0x7360d4;for(var _0x1fc10f=_0x232611>0x1?void 0x0:_0x232611?_0x1e559a(_0x5f1d04,_0x17ca30):_0x5f1d04,_0x2aa0e8=_0x95e674[_0x12b519(0x14d)]-0x1,_0x376fb1;_0x2aa0e8>=0x0;_0x2aa0e8--)(_0x376fb1=_0x95e674[_0x2aa0e8])&&(_0x1fc10f=_0x376fb1(_0x1fc10f)||_0x1fc10f);return _0x1fc10f;},_0x186dc6=(_0xa80f06,_0x17b0c4)=>(_0x567a16,_0x5a4e2a)=>_0x17b0c4(_0x567a16,_0x5a4e2a,_0xa80f06);_0x1c5f91[_0x7360d4(0x177)]=class extends _0x342837[_0x7360d4(0x1c3)]{constructor(_0x4c2d86,_0x16a9a0){const _0x1ab2c5=_0x7360d4;super(),this[_0x1ab2c5(0x128)]=_0x4c2d86,this[_0x1ab2c5(0x208)]=_0x16a9a0,this[_0x1ab2c5(0x209)]();}['_mountLiveShare'](){const _0x312966=_0x7360d4;this[_0x312966(0x12e)](this[_0x312966(0x208)]['registerComponent'](_0x20cf75[_0x312966(0x167)][_0x312966(0x159)],()=>_0x20cf75[_0x312966(0x179)](_0x245629,this[_0x312966(0x128)])));}},_0x1c5f91[_0x7360d4(0x177)]=_0x268bf6([_0x186dc6(0x0,_0x342837['Inject'](_0x342837['Injector'])),_0x186dc6(0x1,_0x20cf75[_0x7360d4(0x1b0)])],_0x1c5f91['DesktopLiveShareController']);const _0x273c6a=_0x7360d4(0x1d0),_0x371327={};var _0x2058a4=Object[_0x7360d4(0x140)],_0x1238be=(_0x1be501,_0x9124de,_0x41b7e1,_0x3b9ed0)=>{for(var _0x125c1e=_0x3b9ed0>0x1?void 0x0:_0x3b9ed0?_0x2058a4(_0x9124de,_0x41b7e1):_0x9124de,_0x5fbf03=_0x1be501['length']-0x1,_0x45aa3d;_0x5fbf03>=0x0;_0x5fbf03--)(_0x45aa3d=_0x1be501[_0x5fbf03])&&(_0x125c1e=_0x45aa3d(_0x125c1e)||_0x125c1e);return _0x125c1e;},_0x284e46=(_0x219df5,_0xae8d1f)=>(_0x58d9ee,_0x42d115)=>_0xae8d1f(_0x58d9ee,_0x42d115,_0x219df5);let _0x2fcbb6=class extends _0x342837[_0x7360d4(0x1c3)]{constructor(_0x535405){const _0x830a94=_0x7360d4;super(),this[_0x830a94(0x127)]=_0x535405,this[_0x830a94(0x186)]();}['_init'](){const _0xb52c97=_0x7360d4;[_0x51dae5['SetZoomRatioOperation']['id'],_0x51dae5[_0xb52c97(0x1ad)]['id'],_0x22bb53[_0xb52c97(0x1a5)]['id']][_0xb52c97(0x178)](_0x20c02b=>{const _0x190382=_0xb52c97;this[_0x190382(0x12e)](this['_liveShareService'][_0x190382(0x1b3)](_0x20c02b));});}};_0x2fcbb6=_0x1238be([_0x284e46(0x0,_0x342837[_0x7360d4(0x1fe)](_0x16957c))],_0x2fcbb6);var _0x49b202=Object[_0x7360d4(0x18c)],_0x1281a5=Object[_0x7360d4(0x140)],_0x5eb755=(_0x20d4b0,_0x358fa2,_0x5bfdfe)=>_0x358fa2 in _0x20d4b0?_0x49b202(_0x20d4b0,_0x358fa2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bfdfe}):_0x20d4b0[_0x358fa2]=_0x5bfdfe,_0x1ff269=(_0x3bad10,_0x11faa4,_0x511b3a,_0x26e6ad)=>{for(var _0x298545=_0x26e6ad>0x1?void 0x0:_0x26e6ad?_0x1281a5(_0x11faa4,_0x511b3a):_0x11faa4,_0x2873da=_0x3bad10['length']-0x1,_0x1e25f5;_0x2873da>=0x0;_0x2873da--)(_0x1e25f5=_0x3bad10[_0x2873da])&&(_0x298545=_0x1e25f5(_0x298545)||_0x298545);return _0x298545;},_0x4afb6f=(_0xc79ea5,_0x455356)=>(_0x564f04,_0x1c40cf)=>_0x455356(_0x564f04,_0x1c40cf,_0xc79ea5),_0xf45197=(_0xb1a850,_0x20387c,_0x33cd70)=>_0x5eb755(_0xb1a850,typeof _0x20387c!=_0x7360d4(0x171)?_0x20387c+'':_0x20387c,_0x33cd70);const _0x5ac992=_0x7360d4(0x1fd);_0x1c5f91[_0x7360d4(0x15c)]=class extends _0x342837[_0x7360d4(0x135)]{constructor(_0x2f9a19=_0x371327,_0x37d1a4,_0x470589){const _0xb665d4=_0x7360d4;super(),this[_0xb665d4(0x14e)]=_0x2f9a19,this['_injector']=_0x37d1a4,this[_0xb665d4(0x11f)]=_0x470589;const {..._0x49e5fc}=_0x342837[_0xb665d4(0x1f9)]({},_0x371327,this[_0xb665d4(0x14e)]);this[_0xb665d4(0x11f)]['setConfig'](_0x273c6a,_0x49e5fc);}['onStarting'](){const _0x31f021=_0x7360d4;_0x342837[_0x31f021(0x175)](this[_0x31f021(0x128)],_0x342837[_0x31f021(0x153)]([[_0x16957c],[_0x1c5f91[_0x31f021(0x1c0)]],[_0x2fcbb6],[_0x1c5f91['DesktopLiveShareController']]],this[_0x31f021(0x14e)][_0x31f021(0x172)])),_0x342837['touchDependencies'](this[_0x31f021(0x128)],[[_0x2fcbb6]]);}['onRendered'](){const _0x132b49=_0x7360d4;_0x342837[_0x132b49(0x16c)](this['_injector'],[[_0x1c5f91[_0x132b49(0x177)]]]);}},_0xf45197(_0x1c5f91[_0x7360d4(0x15c)],'type',_0x342837['UniverInstanceType'][_0x7360d4(0x1e2)]),_0xf45197(_0x1c5f91[_0x7360d4(0x15c)],_0x7360d4(0x17a),_0x5ac992),_0x1c5f91['UniverLiveSharePlugin']=_0x1ff269([_0x342837['DependentOn'](_0x4b3acb[_0x7360d4(0x1ee)]),_0x4afb6f(0x1,_0x342837[_0x7360d4(0x1fe)](_0x342837[_0x7360d4(0x157)])),_0x4afb6f(0x2,_0x342837[_0x7360d4(0x13f)])],_0x1c5f91[_0x7360d4(0x15c)]),_0x1c5f91[_0x7360d4(0x1cb)]=_0x245629,_0x1c5f91[_0x7360d4(0x1c4)]=_0x16957c,_0x1c5f91[_0x7360d4(0x189)]=_0x1aabba,Object[_0x7360d4(0x18c)](_0x1c5f91,Symbol[_0x7360d4(0x1ef)],{'value':'Module'});}));
1
+ function _0x4c6b(){const _0x15262d=['useRef','14471960pWOQQn','end','init','UNIVER_SHEET','set','button','Plugin','attrs','UniverCollaborationClientPlugin','mask','_startLiveShareCoordinator','IUIPartsService','904LHVbtM','_sharedOperations','Button','defineProperty','ICommandService','_stopFollowing','override','object','jsxs','function','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','trim','_entities','entries','0\x200\x2017\x2017','univer-mb-3\x20univer-w-full\x20univer-text-sm','unsubscribe','add','startFollowing','UniverSheets','delete','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','CollaborationEvent','string','exports','forEach','12579glIYwz','following','_collabSession','_handleOffline','IDLE','length','_beIdle','1em','LiveShareController','live-share-icon','NOT_FOLLOWING','DisposableCollection','offline','_init','path','_config','dispose','type','data','@univerjs/sheets-ui','OPERATION','default','BehaviorSubject','defIds','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','none','_liveShareService','UniverIcon','unitId','next','_presenter','1131270qvTfNo','operations','reverse','PRESENTING','Injector','complete','stopFollowing','use','245hyXokz','event$','SAME_OPERATION_SHARE_INTERVAL','presenting','_handleTerminate','includes','then','BuiltInUIPart','LIVESHARE_TERMINATE','jsx','idle','tag','subscribe','_status$','getConfig','toString','univerjs-icon\x20univerjs-icon-','symbol','throttleTime','34LZVaVm','pluginName','SetWorksheetActiveOperation','6094818CaxbLd','@univerjs/ui','createElement','React','fill','_stopPresenting','div','createInstance','currentColor','_reporters','LiveShareService','_startPresenting','Stop\x20following','onCommandExecuted','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','executeCommand','_collabSessionService','@univerjs-pro/collaboration','disposeWithMe','useDependency','FOLLOWING','LiveShareCoordinator','ONLINE','IUniverInstanceService','_startFollowing','SetZoomRatioOperation','LiveShareStatus','parse','Start\x20following','IConfigService','touchDependencies','SessionStatus','getUnitId','svg','getCurrentTypeOfUnit$','_univerInstanceService','requireSession','defs','133674wYmWju','registerInitialStateReporter','OFFLINE','RxDisposable','xlink:href','connectInjector','UniverLiveSharePlugin','useState','send','_unitID','useEffect','SetScrollOperation','assign','replace','mutations','has','params','@univerjs/design','Inject','getValue','@univerjs/sheets','_commandDisposable','stopPresenting','onStarting','asObservable','evenodd','Dropdown','displayName','Stop\x20presenting','current','_handleOnline','status$','stringify','find','takeUntil','getLiveShareCoordinator','_configService','parseProtocolChangeset','UniverUi','dispose$','registerSharedOperation','UniverDesign','rxjs','useObservable','getTypeOfUnitDisposed$','children','getLiveShareCoordinatorSync','30312TcZFPz','amd','DesktopLiveShareController','forwardRef','memberID','mergeOverrideWithDependencies','idSuffix','InsertSheetMutation','Subject','not-following','getOwnPropertyDescriptor','_handleNewChangeSets','presenter','LIVESHARE_NEW_HOST','_status','pipe','clsx','text','You\x27re\x20not\x20following\x20the\x20presenter','registerDependencies','merge','_commandService','UniverCore','LIVESHARE_OPERATION','live-share.config','_injector','Present\x20this\x20document','CommandType','colorChannel1','5366700NireLU','substring','UniverSheetsUi','22zWHyPe','UniverInstanceType','tryStartPresenting','toDisposable','NEW_CHANGESETS','_uiPartsService','HEADER_MENU','map','Fragment','univer-size-4','Disposable'];_0x4c6b=function(){return _0x15262d;};return _0x4c6b();}function _0x586c(_0x5691b3,_0x4f558c){_0x5691b3=_0x5691b3-0x19d;const _0x4c6bd4=_0x4c6b();let _0x586cac=_0x4c6bd4[_0x5691b3];return _0x586cac;}(function(_0x475143,_0x33b237){const _0x2c4435=_0x586c,_0x282416=_0x475143();while(!![]){try{const _0x2d7f0d=-parseInt(_0x2c4435(0x25d))/0x1+-parseInt(_0x2c4435(0x278))/0x2*(parseInt(_0x2c4435(0x1bc))/0x3)+parseInt(_0x2c4435(0x1eb))/0x4*(parseInt(_0x2c4435(0x265))/0x5)+-parseInt(_0x2c4435(0x27b))/0x6+-parseInt(_0x2c4435(0x23d))/0x7*(parseInt(_0x2c4435(0x223))/0x8)+parseInt(_0x2c4435(0x208))/0x9+-parseInt(_0x2c4435(0x217))/0xa*(-parseInt(_0x2c4435(0x20b))/0xb);if(_0x2d7f0d===_0x33b237)break;else _0x282416['push'](_0x282416['shift']());}catch(_0x58f1c0){_0x282416['push'](_0x282416['shift']());}}}(_0x4c6b,0xb82da),function(_0x3654e5,_0xba6531){const _0x44eafc=_0x586c;typeof exports==_0x44eafc(0x22a)&&typeof module<'u'?_0xba6531(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==_0x44eafc(0x22c)&&define[_0x44eafc(0x1ec)]?define([_0x44eafc(0x23b),'@univerjs/core',_0x44eafc(0x27c),'react/jsx-runtime',_0x44eafc(0x1cd),'react',_0x44eafc(0x1a7),'@univerjs-pro/collaboration-client',_0x44eafc(0x1d0),_0x44eafc(0x1e6),'rxjs/operators',_0x44eafc(0x250)],_0xba6531):(_0x3654e5=typeof globalThis<'u'?globalThis:_0x3654e5||self,_0xba6531(_0x3654e5['UniverProLiveShare']={},_0x3654e5[_0x44eafc(0x201)],_0x3654e5[_0x44eafc(0x1e2)],_0x3654e5[_0x44eafc(0x27e)],_0x3654e5[_0x44eafc(0x1e5)],_0x3654e5['React'],_0x3654e5['UniverProCollaboration'],_0x3654e5['UniverProCollaborationClient'],_0x3654e5[_0x44eafc(0x236)],_0x3654e5[_0x44eafc(0x1e6)],_0x3654e5['rxjs']['operators'],_0x3654e5[_0x44eafc(0x20a)]));}(this,function(_0x531713,_0x578637,_0x51c68d,_0x4e8258,_0x80076a,_0x1b3469,_0x17874a,_0x42171a,_0x2275db,_0x48b2dd,_0x2cdb56,_0x138877){'use strict';const _0x31a07c=_0x586c;var _0x239b00=Object[_0x31a07c(0x226)],_0x3d93b0=(_0xecdc66,_0x4d9352,_0x3ec629)=>_0x4d9352 in _0xecdc66?_0x239b00(_0xecdc66,_0x4d9352,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ec629}):_0xecdc66[_0x4d9352]=_0x3ec629,_0xe30dc1=(_0x216b71,_0x6eb35d,_0x57015a)=>_0x3d93b0(_0x216b71,typeof _0x6eb35d!=_0x31a07c(0x276)?_0x6eb35d+'':_0x6eb35d,_0x57015a);function _0x63995d({ref:_0x5a59aa,..._0xd678de}){const _0x43a19b=_0x31a07c,{icon:_0xe237ef,id:_0xb28f4a,className:_0x505128,extend:_0x402d11,..._0x1b6fbe}=_0xd678de,_0x4ac154=(_0x43a19b(0x275)+_0xb28f4a+'\x20'+(_0x505128||''))[_0x43a19b(0x22e)](),_0x5466dd=_0x1b3469[_0x43a19b(0x216)]('_'+_0x147831());return _0x41ee75(_0xe237ef,''+_0xb28f4a,{'defIds':_0xe237ef[_0x43a19b(0x254)],'idSuffix':_0x5466dd['current']},{'ref':_0x5a59aa,'className':_0x4ac154,..._0x1b6fbe},_0x402d11);}function _0x41ee75(_0x12767d,_0x1e40e5,_0x307267,_0x5a3788,_0x27a926){const _0x17b04a=_0x31a07c;return _0x1b3469[_0x17b04a(0x27d)](_0x12767d['tag'],{'key':_0x1e40e5,..._0xda2bc8(_0x12767d,_0x307267,_0x27a926),..._0x5a3788},(_0x50ffdc(_0x12767d,_0x307267)['children']||[])['map']((_0x304b13,_0x1fe029)=>_0x41ee75(_0x304b13,_0x1e40e5+'-'+_0x12767d[_0x17b04a(0x270)]+'-'+_0x1fe029,_0x307267,void 0x0,_0x27a926)));}function _0xda2bc8(_0x3e14ea,_0x51ebed,_0x2e8c45){const _0xe5cc0c=_0x31a07c,_0x2fe97a={..._0x3e14ea[_0xe5cc0c(0x21e)]};_0x2e8c45!=null&&_0x2e8c45[_0xe5cc0c(0x207)]&&_0x2fe97a[_0xe5cc0c(0x27f)]===_0xe5cc0c(0x207)&&(_0x2fe97a[_0xe5cc0c(0x27f)]=_0x2e8c45[_0xe5cc0c(0x207)]),_0x3e14ea['tag']===_0xe5cc0c(0x220)&&_0x2fe97a['id']&&(_0x2fe97a['id']=_0x2fe97a['id']+_0x51ebed[_0xe5cc0c(0x1f1)]),Object['entries'](_0x2fe97a)[_0xe5cc0c(0x23c)](([_0x23fa01,_0x3c6181])=>{const _0x1c10c4=_0xe5cc0c;_0x23fa01===_0x1c10c4(0x220)&&typeof _0x3c6181==_0x1c10c4(0x23a)&&(_0x2fe97a[_0x23fa01]=_0x3c6181[_0x1c10c4(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x51ebed[_0x1c10c4(0x1f1)]+')'));});const {defIds:_0x5195db}=_0x51ebed;return!_0x5195db||_0x5195db[_0xe5cc0c(0x242)]===0x0||(_0x3e14ea[_0xe5cc0c(0x270)]===_0xe5cc0c(0x264)&&_0x2fe97a['xlink:href']&&(_0x2fe97a[_0xe5cc0c(0x1c0)]=_0x2fe97a[_0xe5cc0c(0x1c0)]+_0x51ebed[_0xe5cc0c(0x1f1)]),Object[_0xe5cc0c(0x230)](_0x2fe97a)[_0xe5cc0c(0x23c)](([_0xf8b671,_0x1b4b61])=>{const _0x447dc3=_0xe5cc0c;typeof _0x1b4b61==_0x447dc3(0x23a)&&(_0x2fe97a[_0xf8b671]=_0x1b4b61[_0x447dc3(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x51ebed[_0x447dc3(0x1f1)]+')'));})),_0x2fe97a;}function _0x50ffdc(_0x468a73,_0x2ae4b7){const _0xcd819c=_0x31a07c;var _0x128da0;const {defIds:_0x144871}=_0x2ae4b7;return!_0x144871||_0x144871[_0xcd819c(0x242)]===0x0?_0x468a73:_0x468a73[_0xcd819c(0x270)]===_0xcd819c(0x1bb)&&((_0x128da0=_0x468a73[_0xcd819c(0x1e9)])!=null&&_0x128da0[_0xcd819c(0x242)])?{..._0x468a73,'children':_0x468a73[_0xcd819c(0x1e9)]['map'](_0x14470c=>typeof _0x14470c['attrs']['id']==_0xcd819c(0x23a)&&_0x144871&&_0x144871[_0xcd819c(0x26a)](_0x14470c[_0xcd819c(0x21e)]['id'])?{..._0x14470c,'attrs':{..._0x14470c['attrs'],'id':_0x14470c[_0xcd819c(0x21e)]['id']+_0x2ae4b7['idSuffix']}}:_0x14470c)}:_0x468a73;}function _0x147831(){const _0x17c662=_0x31a07c;return Math['random']()[_0x17c662(0x274)](0x24)[_0x17c662(0x209)](0x2,0x8);}_0x63995d[_0x31a07c(0x1d7)]=_0x31a07c(0x259);const _0x2b8dca={'tag':_0x31a07c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31a07c(0x257),'viewBox':_0x31a07c(0x231),'width':_0x31a07c(0x244),'height':'1em'},'children':[{'tag':_0x31a07c(0x24b),'attrs':{'fill':_0x31a07c(0x19e),'d':_0x31a07c(0x238)}},{'tag':_0x31a07c(0x24b),'attrs':{'fill':_0x31a07c(0x19e),'d':_0x31a07c(0x22d),'fillRule':_0x31a07c(0x1d5),'clipRule':_0x31a07c(0x1d5)}}]},_0x1c04bc=_0x1b3469[_0x31a07c(0x1ee)](function(_0x2fa48c,_0x43e478){const _0x15676b=_0x31a07c;return _0x1b3469['createElement'](_0x63995d,Object[_0x15676b(0x1c8)]({},_0x2fa48c,{'id':_0x15676b(0x246),'ref':_0x43e478,'icon':_0x2b8dca}));});_0x1c04bc[_0x31a07c(0x1d7)]='LiveShareIcon';class _0x4c4275 extends _0x578637[_0x31a07c(0x215)]{constructor(){const _0x58d420=_0x31a07c;super(...arguments),_0xe30dc1(this,'_sharedOperations',new Set()),_0xe30dc1(this,_0x58d420(0x19f),new Set());}[_0x31a07c(0x1e4)](_0x5234ba){const _0x14c4d0=_0x31a07c;return this[_0x14c4d0(0x224)][_0x14c4d0(0x234)](_0x5234ba),_0x578637[_0x14c4d0(0x20e)](()=>this[_0x14c4d0(0x224)][_0x14c4d0(0x237)](_0x5234ba));}[_0x31a07c(0x1bd)](_0x28024f){const _0xc8213d=_0x31a07c;return this[_0xc8213d(0x19f)][_0xc8213d(0x234)](_0x28024f),_0x578637[_0xc8213d(0x20e)](()=>this[_0xc8213d(0x19f)][_0xc8213d(0x237)](_0x28024f));}['shouldShareOperation'](_0x1697ef){const _0x2e535b=_0x31a07c;return this[_0x2e535b(0x224)]['has'](_0x1697ef);}['getInitialStates'](_0x1491f5){const _0x2a03a6=_0x31a07c;return Array['from'](this['_reporters'])[_0x2a03a6(0x212)](_0x4f6601=>_0x4f6601(_0x1491f5));}}var _0x13e93e=Object[_0x31a07c(0x1f5)],_0x2a654c=(_0x170577,_0x550328,_0x50a447,_0x1bd166)=>{const _0x356040=_0x31a07c;for(var _0x4bd265=_0x1bd166>0x1?void 0x0:_0x1bd166?_0x13e93e(_0x550328,_0x50a447):_0x550328,_0x21128a=_0x170577[_0x356040(0x242)]-0x1,_0x5644a7;_0x21128a>=0x0;_0x21128a--)(_0x5644a7=_0x170577[_0x21128a])&&(_0x4bd265=_0x5644a7(_0x4bd265)||_0x4bd265);return _0x4bd265;},_0x32ef52=(_0x458f3d,_0x268f93)=>(_0x30ba42,_0x519089)=>_0x268f93(_0x30ba42,_0x519089,_0x458f3d);_0x531713['LiveShareController']=class extends _0x578637[_0x31a07c(0x1bf)]{constructor(_0x1ffd76,_0xad80f2,_0x3f3ae7){const _0x2ac298=_0x31a07c;super(),_0xe30dc1(this,_0x2ac298(0x22f),new Map()),(this[_0x2ac298(0x1b9)]=_0x1ffd76,this[_0x2ac298(0x204)]=_0xad80f2,this[_0x2ac298(0x1a6)]=_0x3f3ae7,this[_0x2ac298(0x24a)]());}async['getLiveShareCoordinator'](_0x38f9a0){const _0x53f0dc=_0x31a07c;return this[_0x53f0dc(0x22f)][_0x53f0dc(0x1cb)](_0x38f9a0)||await this[_0x53f0dc(0x221)](_0x38f9a0),this[_0x53f0dc(0x22f)]['get'](_0x38f9a0);}[_0x31a07c(0x1ea)](_0x3a9df4){const _0x4b4304=_0x31a07c;var _0x53cca1;return(_0x53cca1=this[_0x4b4304(0x22f)]['get'](_0x3a9df4))!=null?_0x53cca1:null;}[_0x31a07c(0x24a)](){const _0x448d97=_0x31a07c;this[_0x448d97(0x1b9)][_0x448d97(0x255)](_0x578637[_0x448d97(0x20c)]['UNIVER_SHEET'])[_0x448d97(0x1fa)](_0x2cdb56[_0x448d97(0x1de)](this[_0x448d97(0x1e3)]))[_0x448d97(0x271)](async _0x54721e=>{const _0x2265bf=_0x448d97,_0x1dbcbb=_0x54721e[_0x2265bf(0x1b6)]();this[_0x2265bf(0x22f)][_0x2265bf(0x1cb)](_0x1dbcbb)||this[_0x2265bf(0x221)](_0x1dbcbb);}),this[_0x448d97(0x1b9)][_0x448d97(0x1e8)](_0x578637[_0x448d97(0x20c)][_0x448d97(0x21a)])[_0x448d97(0x1fa)](_0x2cdb56[_0x448d97(0x1de)](this[_0x448d97(0x1e3)]))[_0x448d97(0x271)](_0x2a7e90=>{const _0x36b115=_0x448d97,_0x4d0f1e=_0x2a7e90['getUnitId'](),_0x15d506=this[_0x36b115(0x22f)]['get'](_0x4d0f1e);_0x15d506==null||_0x15d506[_0x36b115(0x24d)]();});}async[_0x31a07c(0x221)](_0x420058){const _0x37bd0d=_0x31a07c,_0x4be8b6=await this['_collabSessionService'][_0x37bd0d(0x1ba)](_0x420058),_0x24bd08=this['_injector'][_0x37bd0d(0x19d)](_0x531713['LiveShareCoordinator'],_0x420058,_0x4be8b6);return _0x24bd08[_0x37bd0d(0x219)](),this['_entities'][_0x37bd0d(0x21b)](_0x420058,_0x24bd08),_0x24bd08;}},_0x531713[_0x31a07c(0x245)]=_0x2a654c([_0x32ef52(0x0,_0x578637[_0x31a07c(0x1ad)]),_0x32ef52(0x1,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0x32ef52(0x2,_0x578637[_0x31a07c(0x1ce)](_0x42171a['CollaborationSessionService']))],_0x531713[_0x31a07c(0x245)]);var _0x1e02cf=(_0x35005c=>(_0x35005c[_0x31a07c(0x1be)]=_0x31a07c(0x249),_0x35005c[_0x31a07c(0x241)]='idle',_0x35005c['FOLLOWING']=_0x31a07c(0x23e),_0x35005c[_0x31a07c(0x247)]=_0x31a07c(0x1f4),_0x35005c[_0x31a07c(0x260)]=_0x31a07c(0x268),_0x35005c))(_0x1e02cf||{});const _0x596c2f=_0x31a07c(0x267),_0x5da53b=0xc8;_0x531713['LiveShareCoordinator']=class extends _0x578637[_0x31a07c(0x1bf)]{constructor(_0x21f770,_0x26d646,_0x2ad1ab,_0x17dd20,_0x24f631){const _0x579c06=_0x31a07c;super(),_0xe30dc1(this,_0x579c06(0x272),new _0x48b2dd[(_0x579c06(0x253))](_0x579c06(0x26f))),_0xe30dc1(this,_0x579c06(0x1db),this['_status$'][_0x579c06(0x1d4)]()),_0xe30dc1(this,'_init',!0x1),_0xe30dc1(this,_0x579c06(0x1d1),null),_0xe30dc1(this,_0x579c06(0x25c),null),(this[_0x579c06(0x1c5)]=_0x21f770,this[_0x579c06(0x23f)]=_0x26d646,this[_0x579c06(0x1e0)]=_0x2ad1ab,this['_liveShareService']=_0x17dd20,this[_0x579c06(0x200)]=_0x24f631);}get[_0x31a07c(0x1f9)](){const _0x5578a8=_0x31a07c;return this[_0x5578a8(0x272)][_0x5578a8(0x1cf)]();}[_0x31a07c(0x24d)](){const _0x2cf0b2=_0x31a07c;var _0x430de5;(_0x430de5=this[_0x2cf0b2(0x1d1)])==null||_0x430de5[_0x2cf0b2(0x24d)](),this[_0x2cf0b2(0x272)][_0x2cf0b2(0x25b)](_0x2cf0b2(0x26f)),this[_0x2cf0b2(0x272)]['complete']();}['getStatus'](){const _0xbd33b4=_0x31a07c;return this[_0xbd33b4(0x1f9)];}[_0x31a07c(0x219)](){const _0x3b67f9=_0x31a07c;this[_0x3b67f9(0x24a)]||(this[_0x3b67f9(0x24a)]=!0x0,this['_collabSession']['sessionStatus$'][_0x3b67f9(0x1fa)](_0x2cdb56[_0x3b67f9(0x1de)](this[_0x3b67f9(0x1e3)]))[_0x3b67f9(0x271)](_0x227e40=>{const _0x53c311=_0x3b67f9;switch(_0x227e40){case _0x42171a[_0x53c311(0x1b5)][_0x53c311(0x1be)]:this['_handleOffline']();break;case _0x42171a[_0x53c311(0x1b5)][_0x53c311(0x1ac)]:this[_0x53c311(0x1da)]();break;}}),this[_0x3b67f9(0x23f)][_0x3b67f9(0x266)][_0x3b67f9(0x1fa)](_0x2cdb56[_0x3b67f9(0x1de)](this[_0x3b67f9(0x1e3)]))[_0x3b67f9(0x271)](_0xc7f616=>{const _0x536da6=_0x3b67f9,{eventID:_0x500312}=_0xc7f616;switch(_0x500312){case _0x17874a['CollaborationEvent'][_0x536da6(0x1f8)]:this['_handleNewHost'](_0xc7f616);break;case _0x17874a[_0x536da6(0x239)][_0x536da6(0x202)]:this['_handleOperation'](_0xc7f616);break;case _0x17874a[_0x536da6(0x239)]['LIVESHARE_TERMINATE']:this[_0x536da6(0x269)]();break;case _0x17874a[_0x536da6(0x239)][_0x536da6(0x20f)]:this[_0x536da6(0x1f6)](_0xc7f616);break;}}));}[_0x31a07c(0x20d)](){const _0x24044d=_0x31a07c;this[_0x24044d(0x23f)][_0x24044d(0x1c4)]({'eventID':_0x17874a[_0x24044d(0x239)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x24044d(0x1c5)],'userID':this['_collabSession']['getMemberID']()}},this[_0x24044d(0x1c5)]);}['stopPresenting'](){const _0x146290=_0x31a07c;this[_0x146290(0x1f9)]===_0x146290(0x268)&&(this['_status$']['next']('idle'),this[_0x146290(0x23f)][_0x146290(0x1c4)]({'eventID':_0x17874a[_0x146290(0x239)][_0x146290(0x26d)],'data':{'unitID':this['_unitID']}},this[_0x146290(0x1c5)]));}['startFollowing'](){const _0x24afa2=_0x31a07c;this[_0x24afa2(0x1f9)]==='not-following'&&(this[_0x24afa2(0x272)][_0x24afa2(0x25b)]('following'),this['_startFollowing']());}[_0x31a07c(0x263)](){const _0x388622=_0x31a07c;this[_0x388622(0x1f9)]==='following'&&this[_0x388622(0x228)]();}['_handleNewHost'](_0x2944f1){const _0x52188f=_0x31a07c,{presenter:_0x29f878}=_0x2944f1['data'],_0x1122b1=this[_0x52188f(0x23f)]['getMemberID']();this[_0x52188f(0x25c)]=_0x29f878,_0x29f878===_0x1122b1?(this[_0x52188f(0x228)](),this[_0x52188f(0x1a1)]()):this['_status']!=='not-following'&&(this[_0x52188f(0x280)](),this['_startFollowing']());}['_fetchOperations'](){const _0x4faae9=_0x31a07c,_0x454581={'eventID':_0x17874a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4faae9(0x23f)][_0x4faae9(0x1c4)](_0x454581,this[_0x4faae9(0x1c5)]);}['_handleTerminate'](){const _0x412dfa=_0x31a07c;this[_0x412dfa(0x25c)]=null,this[_0x412dfa(0x1f9)]!=='presenting'&&this[_0x412dfa(0x243)]();}[_0x31a07c(0x1f6)](_0x3a293f){const _0x3aa969=_0x31a07c;if(this[_0x3aa969(0x1f9)]===_0x3aa969(0x23e)&&this[_0x3aa969(0x25c)]===_0x3a293f[_0x3aa969(0x24f)][_0x3aa969(0x1ef)]){const _0x5f04d5=_0x17874a[_0x3aa969(0x1e1)](_0x3a293f[_0x3aa969(0x24f)])[_0x3aa969(0x1ca)][_0x3aa969(0x25f)]()[_0x3aa969(0x1dd)](_0x183a84=>_0x183a84['id']===_0x2275db[_0x3aa969(0x1f2)]['id']);if(_0x5f04d5){const _0x27817d=_0x5f04d5[_0x3aa969(0x1cc)][_0x3aa969(0x25a)],_0x10939f=_0x5f04d5[_0x3aa969(0x1cc)]['sheet']['id'];setTimeout(()=>{const _0x567f7c=_0x3aa969;this[_0x567f7c(0x200)]['executeCommand'](_0x2275db[_0x567f7c(0x27a)]['id'],{'unitId':_0x27817d,'subUnitId':_0x10939f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3130c2=_0x31a07c;this[_0x3130c2(0x272)]['next']('presenting');const _0x385e79=new Map(),_0x2adfcf=this[_0x3130c2(0x1d1)]=new _0x578637[(_0x3130c2(0x248))]();_0x2adfcf[_0x3130c2(0x234)](_0x578637[_0x3130c2(0x20e)](()=>{const _0x5f25d7=_0x3130c2;_0x385e79[_0x5f25d7(0x23c)](_0x5c3845=>_0x5c3845[_0x5f25d7(0x262)]()),_0x385e79['clear']();})),_0x2adfcf['add'](this[_0x3130c2(0x200)][_0x3130c2(0x1a3)](_0x1cbf4b=>{const _0x402daa=_0x3130c2;var _0x1fecac;if(_0x1cbf4b['type']!==_0x578637[_0x402daa(0x206)][_0x402daa(0x251)]||!this['_liveShareService']['shouldShareOperation'](_0x1cbf4b['id']))return;const {id:_0x371921}=_0x1cbf4b;let _0x5475d9;_0x385e79[_0x402daa(0x1cb)](_0x371921)?_0x5475d9=_0x385e79['get'](_0x371921):(_0x5475d9=new _0x48b2dd[(_0x402daa(0x1f3))](),_0x385e79[_0x402daa(0x21b)](_0x371921,_0x5475d9),_0x5475d9[_0x402daa(0x1fa)](_0x2cdb56[_0x402daa(0x277)]((_0x1fecac=this[_0x402daa(0x1e0)][_0x402daa(0x273)](_0x596c2f))!=null?_0x1fecac:_0x5da53b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x402daa(0x271)](_0x5c00b2=>{const _0x15e3a2=_0x402daa;this[_0x15e3a2(0x23f)][_0x15e3a2(0x1c4)]({'eventID':_0x17874a['CollaborationEvent'][_0x15e3a2(0x202)],'data':{'unitID':this[_0x15e3a2(0x1c5)],'operations':{[_0x5c00b2['id']]:{'id':_0x5c00b2['id'],'params':JSON[_0x15e3a2(0x1dc)](_0x5c00b2[_0x15e3a2(0x1cc)])}}}},this[_0x15e3a2(0x1c5)]);})),_0x5475d9[_0x402daa(0x25b)](_0x1cbf4b);})),this[_0x3130c2(0x258)]['getInitialStates'](this['_unitID'])[_0x3130c2(0x23c)](_0xdaf073=>this[_0x3130c2(0x23f)]['send']({'eventID':_0x17874a[_0x3130c2(0x239)][_0x3130c2(0x202)],'data':{'unitID':this[_0x3130c2(0x1c5)],'operations':{[_0xdaf073['id']]:{'id':_0xdaf073['id'],'params':JSON[_0x3130c2(0x1dc)](_0xdaf073['params'])}}}},this[_0x3130c2(0x1c5)]));}['_stopPresenting'](){const _0x33783a=_0x31a07c;var _0x43105e;this[_0x33783a(0x272)]['next'](_0x33783a(0x26f)),(_0x43105e=this[_0x33783a(0x1d1)])==null||_0x43105e[_0x33783a(0x24d)](),this[_0x33783a(0x1d1)]=null;}[_0x31a07c(0x1ae)](){const _0x5ee576=_0x31a07c;var _0x5a28ff;(_0x5a28ff=this[_0x5ee576(0x1d1)])==null||_0x5a28ff['dispose'](),this['_status$'][_0x5ee576(0x25b)]('following');}[_0x31a07c(0x243)](){const _0x535cb1=_0x31a07c;var _0x3d47ae;this['_status$'][_0x535cb1(0x25b)](_0x535cb1(0x26f)),(_0x3d47ae=this[_0x535cb1(0x1d1)])==null||_0x3d47ae[_0x535cb1(0x24d)](),this[_0x535cb1(0x1d1)]=null;}[_0x31a07c(0x228)](){const _0x57ab65=_0x31a07c;var _0x48cbad;this[_0x57ab65(0x272)][_0x57ab65(0x25b)](_0x57ab65(0x1f4)),(_0x48cbad=this[_0x57ab65(0x1d1)])==null||_0x48cbad['dispose']();}['_handleOperation'](_0x53f76b){const _0x47509d=_0x31a07c;if([_0x47509d(0x268),'not-following',_0x47509d(0x249)]['includes'](this['_status'])||!_0x53f76b[_0x47509d(0x24f)][_0x47509d(0x1f7)]||_0x53f76b['data'][_0x47509d(0x1f7)]===this['_collabSession']['getMemberID']())return;this[_0x47509d(0x1f9)]===_0x47509d(0x26f)&&this[_0x47509d(0x1ae)]();const _0x335332=_0x53f76b[_0x47509d(0x24f)][_0x47509d(0x25e)];Object['values'](_0x335332)[_0x47509d(0x23c)](_0xfc564e=>{const _0x47afdc=_0x47509d;this[_0x47afdc(0x200)][_0x47afdc(0x1a5)](_0xfc564e['id'],_0xfc564e['params']?JSON[_0x47afdc(0x1b1)](_0xfc564e['params']):null,{'fromCollab':!0x0});});}[_0x31a07c(0x240)](){const _0x424e46=_0x31a07c;var _0x2ac0c4;this[_0x424e46(0x272)][_0x424e46(0x25b)](_0x424e46(0x249)),(_0x2ac0c4=this['_commandDisposable'])==null||_0x2ac0c4[_0x424e46(0x24d)]();}[_0x31a07c(0x1da)](){const _0x4bc064=_0x31a07c;this[_0x4bc064(0x272)][_0x4bc064(0x25b)](_0x4bc064(0x26f)),this['_fetchOperations']();}},_0x531713[_0x31a07c(0x1ab)]=_0x2a654c([_0x32ef52(0x2,_0x578637['IConfigService']),_0x32ef52(0x3,_0x578637[_0x31a07c(0x1ce)](_0x4c4275)),_0x32ef52(0x4,_0x578637[_0x31a07c(0x227)])],_0x531713[_0x31a07c(0x1ab)]);function _0x23ae1e(){const _0x2def26=_0x31a07c,_0x343790=_0x51c68d[_0x2def26(0x1a9)](_0x531713[_0x2def26(0x245)]),_0x465cef=_0x51c68d['useDependency'](_0x578637['IUniverInstanceService']),_0x1cecfb=_0x51c68d[_0x2def26(0x1e7)](()=>_0x465cef[_0x2def26(0x1b8)](_0x578637[_0x2def26(0x20c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1b5911,_0x47e5eb]=_0x1b3469[_0x2def26(0x1c3)](null),[_0x5378bc,_0x494c7c]=_0x1b3469[_0x2def26(0x1c3)](_0x1e02cf[_0x2def26(0x241)]),_0x7bcc9c=_0x1b3469[_0x2def26(0x216)](null);return _0x1b3469[_0x2def26(0x1c6)](()=>(_0x1cecfb&&_0x343790[_0x2def26(0x1df)](_0x1cecfb['getUnitId']())[_0x2def26(0x26b)](_0x23dea6=>{const _0x2c42d3=_0x2def26;_0x47e5eb(_0x23dea6),_0x7bcc9c['current']=_0x23dea6[_0x2c42d3(0x1db)]['subscribe'](_0x3ef664=>{_0x494c7c(_0x3ef664);});}),()=>{const _0x42f3b9=_0x2def26;var _0x354a45;(_0x354a45=_0x7bcc9c[_0x42f3b9(0x1d9)])==null||_0x354a45[_0x42f3b9(0x233)](),_0x7bcc9c[_0x42f3b9(0x1d9)]=null;}),[_0x1cecfb,_0x343790]),_0x1b5911?_0x4e8258[_0x2def26(0x26e)](_0x80076a[_0x2def26(0x1d6)],{'align':_0x2def26(0x218),'disabled':_0x5378bc===_0x1e02cf['OFFLINE'],'className':_0x2def26(0x1a4),'overlay':_0x4e8258['jsx'](_0x525160,{'status':_0x5378bc,'coordinator':_0x1b5911}),'children':_0x4e8258['jsx'](_0x2def26(0x21c),{'className':_0x80076a[_0x2def26(0x1fb)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5378bc===_0x1e02cf['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5378bc!==_0x1e02cf['OFFLINE']}),'type':_0x2def26(0x21c),'children':_0x4e8258[_0x2def26(0x26e)](_0x1c04bc,{'className':_0x2def26(0x214)})})}):null;}function _0x525160(_0x1232c2){const _0x4249f8=_0x31a07c,{status:_0x2a938c,coordinator:_0x35803c}=_0x1232c2;switch(_0x2a938c){case _0x1e02cf[_0x4249f8(0x241)]:return _0x4e8258['jsx'](_0x18bc71,{'coordinator':_0x35803c});case _0x1e02cf[_0x4249f8(0x1aa)]:return _0x4e8258[_0x4249f8(0x26e)](_0x3bff13,{'coordinator':_0x35803c});case _0x1e02cf[_0x4249f8(0x247)]:return _0x4e8258[_0x4249f8(0x26e)](_0x556ba1,{'coordinator':_0x35803c});case _0x1e02cf['OFFLINE']:return _0x4e8258[_0x4249f8(0x26e)](_0x4f7a0e,{});case _0x1e02cf[_0x4249f8(0x260)]:return _0x4e8258[_0x4249f8(0x26e)](_0xd0567b,{'coordinator':_0x35803c});default:return null;}}function _0x18bc71(_0x39c7d8){const _0x45ffba=_0x31a07c,{coordinator:_0x5d561e}=_0x39c7d8;return _0x4e8258[_0x45ffba(0x22b)](_0x4e8258['Fragment'],{'children':[_0x4e8258[_0x45ffba(0x26e)](_0x45ffba(0x281),{'className':_0x45ffba(0x232),'children':_0x45ffba(0x205)}),_0x4e8258[_0x45ffba(0x26e)](_0x80076a['Button'],{'onClick':()=>_0x5d561e[_0x45ffba(0x20d)](),'children':'Start'})]});}function _0x3bff13(_0x455600){const _0x1b4f0e=_0x31a07c,{coordinator:_0x104661}=_0x455600;return _0x4e8258[_0x1b4f0e(0x22b)](_0x4e8258[_0x1b4f0e(0x213)],{'children':[_0x4e8258[_0x1b4f0e(0x26e)](_0x1b4f0e(0x281),{'className':_0x1b4f0e(0x232),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4e8258['jsx'](_0x80076a['Button'],{'onClick':()=>_0x104661['stopFollowing'](),'children':_0x1b4f0e(0x1a2)})]});}function _0x556ba1(_0x42bb87){const _0x2eb437=_0x31a07c,{coordinator:_0x392a2f}=_0x42bb87;return _0x4e8258['jsxs'](_0x4e8258[_0x2eb437(0x213)],{'children':[_0x4e8258[_0x2eb437(0x26e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2eb437(0x1fd)}),_0x4e8258[_0x2eb437(0x26e)](_0x80076a[_0x2eb437(0x225)],{'variant':_0x2eb437(0x1fc),'onClick':()=>_0x392a2f[_0x2eb437(0x235)](),'children':_0x2eb437(0x1b2)})]});}function _0xd0567b(_0x55c784){const _0x21ff6c=_0x31a07c,{coordinator:_0x17f0a9}=_0x55c784;return _0x4e8258[_0x21ff6c(0x22b)](_0x4e8258[_0x21ff6c(0x213)],{'children':[_0x4e8258[_0x21ff6c(0x26e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e8258['jsx'](_0x80076a[_0x21ff6c(0x225)],{'variant':_0x21ff6c(0x252),'onClick':()=>_0x17f0a9[_0x21ff6c(0x1d2)](),'children':_0x21ff6c(0x1d8)})]});}function _0x4f7a0e(){return _0x4e8258['jsx'](_0x4e8258['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x35702c=Object[_0x31a07c(0x1f5)],_0x3868da=(_0x26bb61,_0xa8f487,_0x262cec,_0x3ad869)=>{for(var _0x166799=_0x3ad869>0x1?void 0x0:_0x3ad869?_0x35702c(_0xa8f487,_0x262cec):_0xa8f487,_0x123391=_0x26bb61['length']-0x1,_0x5bb076;_0x123391>=0x0;_0x123391--)(_0x5bb076=_0x26bb61[_0x123391])&&(_0x166799=_0x5bb076(_0x166799)||_0x166799);return _0x166799;},_0xe0125b=(_0xc64cf3,_0x3b2e88)=>(_0x4d0d8c,_0x23cc7f)=>_0x3b2e88(_0x4d0d8c,_0x23cc7f,_0xc64cf3);_0x531713[_0x31a07c(0x1ed)]=class extends _0x578637[_0x31a07c(0x215)]{constructor(_0x1407c2,_0x378076){const _0x5c1af9=_0x31a07c;super(),this[_0x5c1af9(0x204)]=_0x1407c2,this[_0x5c1af9(0x210)]=_0x378076,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x28349f=_0x31a07c;this[_0x28349f(0x1a8)](this[_0x28349f(0x210)]['registerComponent'](_0x51c68d[_0x28349f(0x26c)][_0x28349f(0x211)],()=>_0x51c68d[_0x28349f(0x1c1)](_0x23ae1e,this[_0x28349f(0x204)])));}},_0x531713['DesktopLiveShareController']=_0x3868da([_0xe0125b(0x0,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0xe0125b(0x1,_0x51c68d[_0x31a07c(0x222)])],_0x531713['DesktopLiveShareController']);const _0x32124f=_0x31a07c(0x203),_0x449df5={};var _0x15f6d1=Object[_0x31a07c(0x1f5)],_0x1858bd=(_0x21aece,_0x4146e0,_0x1b0134,_0x4dcf0c)=>{const _0x196756=_0x31a07c;for(var _0x5e0202=_0x4dcf0c>0x1?void 0x0:_0x4dcf0c?_0x15f6d1(_0x4146e0,_0x1b0134):_0x4146e0,_0x3f4dce=_0x21aece[_0x196756(0x242)]-0x1,_0x541ab7;_0x3f4dce>=0x0;_0x3f4dce--)(_0x541ab7=_0x21aece[_0x3f4dce])&&(_0x5e0202=_0x541ab7(_0x5e0202)||_0x5e0202);return _0x5e0202;},_0x57e262=(_0x239586,_0x533975)=>(_0x49124c,_0x3152f3)=>_0x533975(_0x49124c,_0x3152f3,_0x239586);let _0x15480d=class extends _0x578637[_0x31a07c(0x215)]{constructor(_0x7d97df){const _0x168e72=_0x31a07c;super(),this[_0x168e72(0x258)]=_0x7d97df,this[_0x168e72(0x24a)]();}[_0x31a07c(0x24a)](){const _0x137731=_0x31a07c;[_0x138877[_0x137731(0x1af)]['id'],_0x138877[_0x137731(0x1c7)]['id'],_0x2275db['SetWorksheetActiveOperation']['id']][_0x137731(0x23c)](_0xe0f71c=>{const _0x2c9ce8=_0x137731;this[_0x2c9ce8(0x1a8)](this['_liveShareService']['registerSharedOperation'](_0xe0f71c));});}};_0x15480d=_0x1858bd([_0x57e262(0x0,_0x578637[_0x31a07c(0x1ce)](_0x4c4275))],_0x15480d);var _0x2036ad=Object['defineProperty'],_0x400a47=Object[_0x31a07c(0x1f5)],_0x53ddd7=(_0x50d92c,_0x41e594,_0x1382db)=>_0x41e594 in _0x50d92c?_0x2036ad(_0x50d92c,_0x41e594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1382db}):_0x50d92c[_0x41e594]=_0x1382db,_0x519659=(_0xe7c0cb,_0x125df9,_0x2fc33f,_0x4d6744)=>{for(var _0x30965f=_0x4d6744>0x1?void 0x0:_0x4d6744?_0x400a47(_0x125df9,_0x2fc33f):_0x125df9,_0x11f8e6=_0xe7c0cb['length']-0x1,_0x2715ab;_0x11f8e6>=0x0;_0x11f8e6--)(_0x2715ab=_0xe7c0cb[_0x11f8e6])&&(_0x30965f=_0x2715ab(_0x30965f)||_0x30965f);return _0x30965f;},_0x25fad5=(_0x3346b6,_0x119e67)=>(_0x38bd4d,_0x3ebf27)=>_0x119e67(_0x38bd4d,_0x3ebf27,_0x3346b6),_0x307965=(_0x4f8639,_0x199fa3,_0x194f83)=>_0x53ddd7(_0x4f8639,typeof _0x199fa3!=_0x31a07c(0x276)?_0x199fa3+'':_0x199fa3,_0x194f83);const _0x39951e=_0x31a07c(0x256);_0x531713['UniverLiveSharePlugin']=class extends _0x578637[_0x31a07c(0x21d)]{constructor(_0x3d597f=_0x449df5,_0x36d1a2,_0x13f3df){const _0x4544a7=_0x31a07c;super(),this[_0x4544a7(0x24c)]=_0x3d597f,this[_0x4544a7(0x204)]=_0x36d1a2,this['_configService']=_0x13f3df;const {..._0x2d9800}=_0x578637[_0x4544a7(0x1ff)]({},_0x449df5,this[_0x4544a7(0x24c)]);this[_0x4544a7(0x1e0)]['setConfig'](_0x32124f,_0x2d9800);}[_0x31a07c(0x1d3)](){const _0x7eaa68=_0x31a07c;_0x578637[_0x7eaa68(0x1fe)](this[_0x7eaa68(0x204)],_0x578637[_0x7eaa68(0x1f0)]([[_0x4c4275],[_0x531713[_0x7eaa68(0x245)]],[_0x15480d],[_0x531713[_0x7eaa68(0x1ed)]]],this['_config'][_0x7eaa68(0x229)])),_0x578637[_0x7eaa68(0x1b4)](this['_injector'],[[_0x15480d]]);}['onRendered'](){const _0x2c21bc=_0x31a07c;_0x578637[_0x2c21bc(0x1b4)](this['_injector'],[[_0x531713[_0x2c21bc(0x1ed)]]]);}},_0x307965(_0x531713[_0x31a07c(0x1c2)],_0x31a07c(0x24e),_0x578637[_0x31a07c(0x20c)]['UNIVER_UNKNOWN']),_0x307965(_0x531713[_0x31a07c(0x1c2)],_0x31a07c(0x279),_0x39951e),_0x531713[_0x31a07c(0x1c2)]=_0x519659([_0x578637['DependentOn'](_0x42171a[_0x31a07c(0x21f)]),_0x25fad5(0x1,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0x25fad5(0x2,_0x578637[_0x31a07c(0x1b3)])],_0x531713[_0x31a07c(0x1c2)]),_0x531713['LiveShare']=_0x23ae1e,_0x531713[_0x31a07c(0x1a0)]=_0x4c4275,_0x531713[_0x31a07c(0x1b0)]=_0x1e02cf,Object['defineProperty'](_0x531713,Symbol['toStringTag'],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.12.4-insiders.20251213-692494c",
3
+ "version": "0.13.0-insiders.20251215-64041bb",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.0.2",
60
- "@univerjs-pro/collaboration": "0.12.4-insiders.20251213-692494c",
61
- "@univerjs-pro/collaboration-client": "0.12.4-insiders.20251213-692494c",
62
- "@univerjs/core": "0.12.4-insiders.20251213-692494c",
63
- "@univerjs/design": "0.12.4-insiders.20251213-692494c",
64
- "@univerjs/sheets-ui": "0.12.4-insiders.20251213-692494c",
65
- "@univerjs/ui": "0.12.4-insiders.20251213-692494c",
66
- "@univerjs/sheets": "0.12.4-insiders.20251213-692494c",
67
- "@univerjs/engine-render": "0.12.4-insiders.20251213-692494c"
60
+ "@univerjs-pro/collaboration": "0.13.0-insiders.20251215-64041bb",
61
+ "@univerjs/core": "0.13.0-insiders.20251215-64041bb",
62
+ "@univerjs-pro/collaboration-client": "0.13.0-insiders.20251215-64041bb",
63
+ "@univerjs/design": "0.13.0-insiders.20251215-64041bb",
64
+ "@univerjs/engine-render": "0.13.0-insiders.20251215-64041bb",
65
+ "@univerjs/sheets-ui": "0.13.0-insiders.20251215-64041bb",
66
+ "@univerjs/sheets": "0.13.0-insiders.20251215-64041bb",
67
+ "@univerjs/ui": "0.13.0-insiders.20251215-64041bb"
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.7",
76
76
  "vitest": "^4.0.15",
77
- "@univerjs/protocol": "0.1.47",
78
- "@univerjs-infra/shared": "0.12.4"
77
+ "@univerjs-infra/shared": "0.13.0",
78
+ "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",