@univerjs-pro/live-share 0.14.0 → 0.15.0-insiders.20251227-453e4ff

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';const _0x2bd3f6=_0x3325;function _0x3325(_0x3b037f,_0x1e7e5a){_0x3b037f=_0x3b037f-0x15f;const _0x2e0559=_0x2e05();let _0x3325a0=_0x2e0559[_0x3b037f];return _0x3325a0;}(function(_0x542f16,_0x159bf7){const _0x22929a=_0x3325,_0x1baa77=_0x542f16();while(!![]){try{const _0x7f3a0c=-parseInt(_0x22929a(0x185))/0x1+parseInt(_0x22929a(0x160))/0x2*(-parseInt(_0x22929a(0x17f))/0x3)+-parseInt(_0x22929a(0x181))/0x4*(parseInt(_0x22929a(0x168))/0x5)+-parseInt(_0x22929a(0x176))/0x6+-parseInt(_0x22929a(0x161))/0x7*(parseInt(_0x22929a(0x183))/0x8)+-parseInt(_0x22929a(0x17a))/0x9*(parseInt(_0x22929a(0x16c))/0xa)+parseInt(_0x22929a(0x17e))/0xb;if(_0x7f3a0c===_0x159bf7)break;else _0x1baa77['push'](_0x1baa77['shift']());}catch(_0x5b604f){_0x1baa77['push'](_0x1baa77['shift']());}}}(_0x2e05,0x83d45));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{['_initialize'](_0x3fe560,_0x41c28e,_0x1f7942,_0x356a24,_0x175648){const _0x56142c=_0x3325,_0x2e8db9=_0x3fe560[_0x56142c(0x174)](n['LiveShareController']),_0x389b7e=_0x3fe560['get'](g[_0x56142c(0x169)]),_0x4e28e6=_0x41c28e[_0x56142c(0x16d)](),_0x361f08=_0x41c28e['getActiveSheet'](),_0x578a0c=_0x2e8db9[_0x56142c(0x16b)](_0x4e28e6);(_0x578a0c==null?void 0x0:_0x578a0c[_0x56142c(0x184)]())!==n['LiveShareStatus'][_0x56142c(0x167)]||(_0x1f7942[_0x56142c(0x16a)]()!==_0x361f08[_0x56142c(0x16a)]()&&this[_0x56142c(0x177)][_0x56142c(0x172)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x4e28e6,'subUnitId':_0x1f7942[_0x56142c(0x16a)]()}),!_0x389b7e[_0x56142c(0x189)](_0x4e28e6))||_0x175648[_0x56142c(0x166)](f['SetScrollOperation']['id'],{'unitId':_0x41c28e[_0x56142c(0x16d)](),'sheetId':_0x1f7942['getSheetId'](),'sheetViewStartRow':_0x356a24[_0x56142c(0x170)],'sheetViewStartColumn':_0x356a24[_0x56142c(0x178)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x2bd3f6(0x182)][_0x2bd3f6(0x165)](w);function _0x2e05(){const _0x78770f=['getLiveShareCoordinatorSync','1417590uXewaR','getUnitId','getActiveWorkbook','FUniver','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','executeCommand','FEnum','get','stopFollowing','1458558FPMGRo','_commandService','startColumn','LiveShareStatus','54UvIXcb','No\x20active\x20workbook\x20found.','LiveShareStatusEnum','tryStartPresenting','41285310gitieK','68814MILgaY','_injector','4EyXPZe','FRange','8560DDjPhZ','getStatus','335349HWwGrP','getId','startFollowing','LiveShareController','getRenderById','stopPresenting','68JecUuk','553nAwUga','IDLE','startPresenting','getLiveShareStatus','extend','syncExecuteCommand','PRESENTING','4599095gvSvQE','IRenderManagerService','getSheetId'];_0x2e05=function(){return _0x78770f;};return _0x2e05();}class C extends a[_0x2bd3f6(0x16f)]{[_0x2bd3f6(0x164)](){const _0x11c5cc=_0x2bd3f6;var _0x1381f1,_0x250033;const _0x579fb6=this[_0x11c5cc(0x180)][_0x11c5cc(0x174)](n[_0x11c5cc(0x188)]),_0x41ab15=(_0x1381f1=this['getActiveWorkbook']())==null?void 0x0:_0x1381f1['getId']();if(!_0x41ab15)throw new Error('No\x20active\x20workbook\x20found.');const _0x369bb7=_0x579fb6[_0x11c5cc(0x16b)](_0x41ab15);return(_0x250033=_0x369bb7==null?void 0x0:_0x369bb7[_0x11c5cc(0x184)]())!=null?_0x250033:n[_0x11c5cc(0x179)][_0x11c5cc(0x162)];}[_0x2bd3f6(0x187)](){const _0x200fcd=_0x2bd3f6;var _0x35b318;const _0x57a877=this[_0x200fcd(0x180)][_0x200fcd(0x174)](n[_0x200fcd(0x188)]),_0x40222b=(_0x35b318=this['getActiveWorkbook']())==null?void 0x0:_0x35b318[_0x200fcd(0x186)]();if(!_0x40222b)throw new Error(_0x200fcd(0x17b));const _0x27d220=_0x57a877[_0x200fcd(0x16b)](_0x40222b);if(!_0x27d220)throw new Error(_0x200fcd(0x171));_0x27d220[_0x200fcd(0x187)]();}[_0x2bd3f6(0x175)](){const _0x3e8d94=_0x2bd3f6;var _0x536b33;const _0x33d11c=this[_0x3e8d94(0x180)][_0x3e8d94(0x174)](n[_0x3e8d94(0x188)]),_0x2a2021=(_0x536b33=this[_0x3e8d94(0x16e)]())==null?void 0x0:_0x536b33[_0x3e8d94(0x186)]();if(!_0x2a2021)throw new Error(_0x3e8d94(0x17b));const _0xc3a08a=_0x33d11c['getLiveShareCoordinatorSync'](_0x2a2021);if(!_0xc3a08a)throw new Error(_0x3e8d94(0x171));_0xc3a08a[_0x3e8d94(0x175)]();}[_0x2bd3f6(0x163)](){const _0x15bc5b=_0x2bd3f6;var _0x38314c;const _0x45ee0f=this['_injector']['get'](n[_0x15bc5b(0x188)]),_0x341ec7=(_0x38314c=this[_0x15bc5b(0x16e)]())==null?void 0x0:_0x38314c[_0x15bc5b(0x186)]();if(!_0x341ec7)throw new Error(_0x15bc5b(0x17b));const _0x48baab=_0x45ee0f[_0x15bc5b(0x16b)](_0x341ec7);if(!_0x48baab)throw new Error(_0x15bc5b(0x171));_0x48baab[_0x15bc5b(0x17d)]();}[_0x2bd3f6(0x15f)](){const _0x596d82=_0x2bd3f6;var _0x48b769;const _0x280284=this[_0x596d82(0x180)]['get'](n[_0x596d82(0x188)]),_0x4f2a65=(_0x48b769=this[_0x596d82(0x16e)]())==null?void 0x0:_0x48b769[_0x596d82(0x186)]();if(!_0x4f2a65)throw new Error(_0x596d82(0x17b));const _0x194fc8=_0x280284['getLiveShareCoordinatorSync'](_0x4f2a65);if(!_0x194fc8)throw new Error(_0x596d82(0x171));_0x194fc8['stopPresenting']();}}a[_0x2bd3f6(0x16f)]['extend'](C);class L extends a[_0x2bd3f6(0x173)]{get[_0x2bd3f6(0x17c)](){const _0xd179cf=_0x2bd3f6;return n[_0xd179cf(0x179)];}}a[_0x2bd3f6(0x173)][_0x2bd3f6(0x165)](L);
1
+ 'use strict';const _0x3c413a=_0x591a;(function(_0x532ce3,_0x10357b){const _0x32b57a=_0x591a,_0x20ff9e=_0x532ce3();while(!![]){try{const _0x4bfd97=parseInt(_0x32b57a(0x18f))/0x1*(parseInt(_0x32b57a(0x186))/0x2)+parseInt(_0x32b57a(0x192))/0x3+parseInt(_0x32b57a(0x187))/0x4*(-parseInt(_0x32b57a(0x1a1))/0x5)+parseInt(_0x32b57a(0x199))/0x6*(-parseInt(_0x32b57a(0x188))/0x7)+-parseInt(_0x32b57a(0x1a8))/0x8+-parseInt(_0x32b57a(0x197))/0x9+parseInt(_0x32b57a(0x1ad))/0xa*(parseInt(_0x32b57a(0x19c))/0xb);if(_0x4bfd97===_0x10357b)break;else _0x20ff9e['push'](_0x20ff9e['shift']());}catch(_0x1568bb){_0x20ff9e['push'](_0x20ff9e['shift']());}}}(_0x5a3d,0xdf791));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x591a(_0x3b3f42,_0xad4b75){_0x3b3f42=_0x3b3f42-0x185;const _0x5a3da0=_0x5a3d();let _0x591a35=_0x5a3da0[_0x3b3f42];return _0x591a35;}class w extends d[_0x3c413a(0x1a3)]{[_0x3c413a(0x19e)](_0x481935,_0x39e3c7,_0x340862,_0x34cabc,_0x191bd3){const _0x32d7e1=_0x3c413a,_0x28a38d=_0x481935[_0x32d7e1(0x1ac)](n[_0x32d7e1(0x190)]),_0x470422=_0x481935[_0x32d7e1(0x1ac)](g[_0x32d7e1(0x185)]),_0x492ea1=_0x39e3c7[_0x32d7e1(0x19d)](),_0x2dd4f3=_0x39e3c7['getActiveSheet'](),_0x478a27=_0x28a38d[_0x32d7e1(0x1a6)](_0x492ea1);(_0x478a27==null?void 0x0:_0x478a27[_0x32d7e1(0x18a)]())!==n[_0x32d7e1(0x19a)][_0x32d7e1(0x198)]||(_0x340862['getSheetId']()!==_0x2dd4f3[_0x32d7e1(0x189)]()&&this[_0x32d7e1(0x18b)][_0x32d7e1(0x19f)](u[_0x32d7e1(0x1a4)]['id'],{'unitId':_0x492ea1,'subUnitId':_0x340862[_0x32d7e1(0x189)]()}),!_0x470422['getRenderById'](_0x492ea1))||_0x191bd3[_0x32d7e1(0x19b)](f[_0x32d7e1(0x1aa)]['id'],{'unitId':_0x39e3c7['getUnitId'](),'sheetId':_0x340862[_0x32d7e1(0x189)](),'sheetViewStartRow':_0x34cabc['startRow'],'sheetViewStartColumn':_0x34cabc['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3c413a(0x1a3)][_0x3c413a(0x18d)](w);class C extends a['FUniver']{[_0x3c413a(0x1ab)](){const _0x5ca885=_0x3c413a;var _0x37ed1e,_0x129f8b;const _0x11c638=this[_0x5ca885(0x1a0)][_0x5ca885(0x1ac)](n[_0x5ca885(0x190)]),_0x2363c3=(_0x37ed1e=this[_0x5ca885(0x18c)]())==null?void 0x0:_0x37ed1e[_0x5ca885(0x1a7)]();if(!_0x2363c3)throw new Error(_0x5ca885(0x1a5));const _0x178243=_0x11c638[_0x5ca885(0x1a6)](_0x2363c3);return(_0x129f8b=_0x178243==null?void 0x0:_0x178243[_0x5ca885(0x18a)]())!=null?_0x129f8b:n[_0x5ca885(0x19a)]['IDLE'];}['startFollowing'](){const _0x2498ac=_0x3c413a;var _0x4f1c76;const _0x543ce4=this[_0x2498ac(0x1a0)][_0x2498ac(0x1ac)](n[_0x2498ac(0x190)]),_0x2edd67=(_0x4f1c76=this[_0x2498ac(0x18c)]())==null?void 0x0:_0x4f1c76['getId']();if(!_0x2edd67)throw new Error(_0x2498ac(0x1a5));const _0x19405c=_0x543ce4[_0x2498ac(0x1a6)](_0x2edd67);if(!_0x19405c)throw new Error(_0x2498ac(0x18e));_0x19405c['startFollowing']();}[_0x3c413a(0x191)](){const _0x2b62f2=_0x3c413a;var _0x1bd5fd;const _0xf523d7=this[_0x2b62f2(0x1a0)][_0x2b62f2(0x1ac)](n[_0x2b62f2(0x190)]),_0x923350=(_0x1bd5fd=this[_0x2b62f2(0x18c)]())==null?void 0x0:_0x1bd5fd[_0x2b62f2(0x1a7)]();if(!_0x923350)throw new Error(_0x2b62f2(0x1a5));const _0x1a0f8e=_0xf523d7['getLiveShareCoordinatorSync'](_0x923350);if(!_0x1a0f8e)throw new Error(_0x2b62f2(0x18e));_0x1a0f8e[_0x2b62f2(0x191)]();}[_0x3c413a(0x194)](){const _0x41e84e=_0x3c413a;var _0x1a7809;const _0x3f17cd=this[_0x41e84e(0x1a0)]['get'](n[_0x41e84e(0x190)]),_0x4da2cf=(_0x1a7809=this[_0x41e84e(0x18c)]())==null?void 0x0:_0x1a7809[_0x41e84e(0x1a7)]();if(!_0x4da2cf)throw new Error(_0x41e84e(0x1a5));const _0x273651=_0x3f17cd[_0x41e84e(0x1a6)](_0x4da2cf);if(!_0x273651)throw new Error(_0x41e84e(0x18e));_0x273651[_0x41e84e(0x1a9)]();}['stopPresenting'](){const _0x5b56d3=_0x3c413a;var _0x33ce6a;const _0x4ec7d9=this[_0x5b56d3(0x1a0)][_0x5b56d3(0x1ac)](n[_0x5b56d3(0x190)]),_0x31018f=(_0x33ce6a=this['getActiveWorkbook']())==null?void 0x0:_0x33ce6a[_0x5b56d3(0x1a7)]();if(!_0x31018f)throw new Error(_0x5b56d3(0x1a5));const _0x425018=_0x4ec7d9['getLiveShareCoordinatorSync'](_0x31018f);if(!_0x425018)throw new Error(_0x5b56d3(0x18e));_0x425018[_0x5b56d3(0x195)]();}}function _0x5a3d(){const _0x203f8e=['24wpEJKi','LiveShareStatus','syncExecuteCommand','1334641dSzoYR','getUnitId','_initialize','executeCommand','_injector','1432385XARhMB','FUniver','FRange','SetWorksheetActiveOperation','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','getId','952624rHsFYi','tryStartPresenting','SetScrollOperation','getLiveShareStatus','get','100BjoFST','IRenderManagerService','822PKLfXh','4rSWxau','1074360EdsztX','getSheetId','getStatus','_commandService','getActiveWorkbook','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','857TZPgwW','LiveShareController','stopFollowing','1823310uzqHUb','FEnum','startPresenting','stopPresenting','LiveShareStatusEnum','2146383HUcGyx','PRESENTING'];_0x5a3d=function(){return _0x203f8e;};return _0x5a3d();}a[_0x3c413a(0x1a2)]['extend'](C);class L extends a[_0x3c413a(0x193)]{get[_0x3c413a(0x196)](){const _0x17adca=_0x3c413a;return n[_0x17adca(0x19a)];}}a['FEnum'][_0x3c413a(0x18d)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x294efb=_0x3786;(function(_0x74caa7,_0x218186){const _0x53a3ae=_0x3786,_0x3e4320=_0x74caa7();while(!![]){try{const _0x445661=parseInt(_0x53a3ae(0x215))/0x1+-parseInt(_0x53a3ae(0x1e2))/0x2+parseInt(_0x53a3ae(0x235))/0x3*(parseInt(_0x53a3ae(0x20c))/0x4)+-parseInt(_0x53a3ae(0x224))/0x5*(parseInt(_0x53a3ae(0x26e))/0x6)+parseInt(_0x53a3ae(0x261))/0x7*(parseInt(_0x53a3ae(0x24e))/0x8)+-parseInt(_0x53a3ae(0x1eb))/0x9+parseInt(_0x53a3ae(0x24c))/0xa*(parseInt(_0x53a3ae(0x1c4))/0xb);if(_0x445661===_0x218186)break;else _0x3e4320['push'](_0x3e4320['shift']());}catch(_0x282326){_0x3e4320['push'](_0x3e4320['shift']());}}}(_0x3756,0x911aa));function _0x3756(){const _0x3c050e=['Stop\x20presenting','SAME_OPERATION_SHARE_INTERVAL','Module','registerSharedOperation','ONLINE','throttleTime','SessionStatus','1em','find','substring','CollaborationEvent','children','jsxs','Button','Present\x20this\x20document','path','event$','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','_configService','UniverIcon','_sharedOperations','_commandService','Dropdown','values','univer-mb-3\x20univer-w-full\x20univer-text-sm','takeUntil','pluginName','next','Inject','clear','_unitID','touchDependencies','live-share-icon','tryStartPresenting','_handleNewHost','univer-size-4','attrs','UNIVER_LIVE_SHARE_PLUGIN','symbol','Start\x20following','live-share.config','_startLiveShareCoordinator','getValue','toString','setConfig','default','InsertSheetMutation','tag','startFollowing','_mountLiveShare','27080779POMaUC','currentColor','trim','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','useRef','_entities','getCurrentTypeOfUnit$','UniverLiveSharePlugin','init','IConfigService','Start','getLiveShareCoordinator','_fetchOperations','UniverInstanceType','RxDisposable','merge','parse','getConfig','BuiltInUIPart','_presenter','defIds','idle','stopFollowing','delete','text','UNIVER_SHEET','requireSession','useState','Fragment','jsx','1955834enjVNV','button','OFFLINE','useObservable','none','mask','unsubscribe','_uiPartsService','_handleOperation','7937901ZzKDoN','DisposableCollection','useEffect','FOLLOWING','_liveShareService','status$','_startFollowing','_handleTerminate','getMemberID','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_TERMINATE','_collabSessionService','_stopPresenting','SetZoomRatioOperation','_handleOffline','_handleOnline','add','_stopFollowing','executeCommand','length','UniverCollaborationClientPlugin','disposeWithMe','Stop\x20following','colorChannel1','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','presenting','CommandType','dispose','mergeOverrideWithDependencies','xlink:href','stopPresenting','evenodd','8612eBDrMZ','LiveShareStatus','_reporters','unitId','presenter','_collabSession','LiveShareController','mutations','data','274627JoKTsP','SetScrollOperation','getInitialStates','PRESENTING','operations','get','univerjs-icon\x20univerjs-icon-','IDLE','toDisposable','complete','forwardRef','assign','subscribe','DesktopLiveShareController','LiveShare','19365pQshal','clsx','fill','Plugin','use','onRendered','forEach','from','LiveShareCoordinator','getStatus','_handleNewChangeSets','displayName','HEADER_MENU','replace','_status$','OPERATION','_beIdle','33fkpoCJ','SetWorksheetActiveOperation','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','Subject','string','not-following','idSuffix','Disposable','params','following','div','0\x200\x2017\x2017','createElement','Injector','pipe','NEW_CHANGESETS','_init','onCommandExecuted','current','NOT_FOLLOWING','ICommandService','has','entries','10cJpNCq','createInstance','5422360ddwUkG','random','send','registerDependencies','UNIVER_UNKNOWN','set','IUIPartsService','getOwnPropertyDescriptor','includes','map','defineProperty','url(#$1','defs','shouldShareOperation','toStringTag','LIVESHARE_OPERATION','getLiveShareCoordinatorSync','sessionStatus$','offline','7iXrpZv','_injector','onStarting','_config','_commandDisposable','dispose$','BehaviorSubject','DependentOn','stringify','You\x27are\x20offline.','_status','getUnitId','CollaborationSessionService','1524jXDdzz'];_0x3756=function(){return _0x3c050e;};return _0x3756();}var T=Object['defineProperty'],U=(_0x3da64c,_0x570ce6,_0xc0e76e)=>_0x570ce6 in _0x3da64c?T(_0x3da64c,_0x570ce6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc0e76e}):_0x3da64c[_0x570ce6]=_0xc0e76e,_=(_0x4118f8,_0x1c1edc,_0x5590c4)=>U(_0x4118f8,typeof _0x1c1edc!='symbol'?_0x1c1edc+'':_0x1c1edc,_0x5590c4);Object[_0x294efb(0x258)](exports,Symbol[_0x294efb(0x25c)],{'value':_0x294efb(0x271)});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 _0x3786(_0x1fb31d,_0x328692){_0x1fb31d=_0x1fb31d-0x1ba;const _0x375619=_0x3756();let _0x3786e8=_0x375619[_0x1fb31d];return _0x3786e8;}function x({ref:_0x1c90ae,..._0x4979a3}){const _0x23bb17=_0x294efb,{icon:_0xe232b7,id:_0x3e2996,className:_0x59ff3a,extend:_0x46dac8,..._0xc9c799}=_0x4979a3,_0x7c3490=(_0x23bb17(0x21b)+_0x3e2996+'\x20'+(_0x59ff3a||''))[_0x23bb17(0x1c6)](),_0x42c679=v[_0x23bb17(0x1c8)]('_'+H());return j(_0xe232b7,''+_0x3e2996,{'defIds':_0xe232b7[_0x23bb17(0x1d8)],'idSuffix':_0x42c679[_0x23bb17(0x247)]},{'ref':_0x1c90ae,'className':_0x7c3490,..._0xc9c799},_0x46dac8);}function j(_0x36ae8f,_0x4e1f4b,_0xfd5111,_0x3abc1b,_0x1de86c){const _0x43e793=_0x294efb;return v['createElement'](_0x36ae8f[_0x43e793(0x1c1)],{'key':_0x4e1f4b,...y(_0x36ae8f,_0xfd5111,_0x1de86c),..._0x3abc1b},(F(_0x36ae8f,_0xfd5111)[_0x43e793(0x27a)]||[])[_0x43e793(0x257)]((_0x2c1ed3,_0x26f0a5)=>j(_0x2c1ed3,_0x4e1f4b+'-'+_0x36ae8f['tag']+'-'+_0x26f0a5,_0xfd5111,void 0x0,_0x1de86c)));}function y(_0x2b5e3d,_0x2bf341,_0x20b30e){const _0x5dc265=_0x294efb,_0x46f001={..._0x2b5e3d['attrs']};_0x20b30e!=null&&_0x20b30e[_0x5dc265(0x202)]&&_0x46f001[_0x5dc265(0x226)]==='colorChannel1'&&(_0x46f001[_0x5dc265(0x226)]=_0x20b30e[_0x5dc265(0x202)]),_0x2b5e3d[_0x5dc265(0x1c1)]===_0x5dc265(0x1e7)&&_0x46f001['id']&&(_0x46f001['id']=_0x46f001['id']+_0x2bf341['idSuffix']),Object[_0x5dc265(0x24b)](_0x46f001)[_0x5dc265(0x22a)](([_0xed5234,_0x3a4aa5])=>{const _0x1387c2=_0x5dc265;_0xed5234===_0x1387c2(0x1e7)&&typeof _0x3a4aa5==_0x1387c2(0x239)&&(_0x46f001[_0xed5234]=_0x3a4aa5[_0x1387c2(0x231)](/url\(#(.*)\)/,_0x1387c2(0x259)+_0x2bf341[_0x1387c2(0x23b)]+')'));});const {defIds:_0x54540d}=_0x2bf341;return!_0x54540d||_0x54540d['length']===0x0||(_0x2b5e3d[_0x5dc265(0x1c1)]===_0x5dc265(0x228)&&_0x46f001[_0x5dc265(0x209)]&&(_0x46f001['xlink:href']=_0x46f001[_0x5dc265(0x209)]+_0x2bf341[_0x5dc265(0x23b)]),Object[_0x5dc265(0x24b)](_0x46f001)[_0x5dc265(0x22a)](([_0x439512,_0x2ee78c])=>{const _0x3cbdd2=_0x5dc265;typeof _0x2ee78c==_0x3cbdd2(0x239)&&(_0x46f001[_0x439512]=_0x2ee78c[_0x3cbdd2(0x231)](/url\(#(.*)\)/,_0x3cbdd2(0x259)+_0x2bf341['idSuffix']+')'));})),_0x46f001;}function F(_0x3638c3,_0x1f2bfa){const _0x1af520=_0x294efb;var _0x406897;const {defIds:_0xa5c3ca}=_0x1f2bfa;return!_0xa5c3ca||_0xa5c3ca[_0x1af520(0x1fe)]===0x0?_0x3638c3:_0x3638c3[_0x1af520(0x1c1)]===_0x1af520(0x25a)&&((_0x406897=_0x3638c3['children'])!=null&&_0x406897['length'])?{..._0x3638c3,'children':_0x3638c3[_0x1af520(0x27a)][_0x1af520(0x257)](_0x30d525=>typeof _0x30d525[_0x1af520(0x294)]['id']==_0x1af520(0x239)&&_0xa5c3ca&&_0xa5c3ca[_0x1af520(0x256)](_0x30d525[_0x1af520(0x294)]['id'])?{..._0x30d525,'attrs':{..._0x30d525['attrs'],'id':_0x30d525[_0x1af520(0x294)]['id']+_0x1f2bfa[_0x1af520(0x23b)]}}:_0x30d525)}:_0x3638c3;}function H(){const _0x4d3f1e=_0x294efb;return Math[_0x4d3f1e(0x24f)]()[_0x4d3f1e(0x1bd)](0x24)[_0x4d3f1e(0x278)](0x2,0x8);}x[_0x294efb(0x22f)]=_0x294efb(0x283);const V={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x294efb(0x1e6),'viewBox':_0x294efb(0x240),'width':_0x294efb(0x276),'height':_0x294efb(0x276)},'children':[{'tag':'path','attrs':{'fill':_0x294efb(0x1c5),'d':_0x294efb(0x1c7)}},{'tag':_0x294efb(0x27e),'attrs':{'fill':_0x294efb(0x1c5),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x294efb(0x20b),'clipRule':_0x294efb(0x20b)}}]},R=v[_0x294efb(0x21f)](function(_0x31302d,_0x199a72){const _0x48240d=_0x294efb;return v[_0x48240d(0x241)](x,Object[_0x48240d(0x220)]({},_0x31302d,{'id':_0x48240d(0x290),'ref':_0x199a72,'icon':V}));});R[_0x294efb(0x22f)]='LiveShareIcon';class E extends o[_0x294efb(0x23c)]{constructor(){const _0xdaeba6=_0x294efb;super(...arguments),_(this,_0xdaeba6(0x284),new Set()),_(this,'_reporters',new Set());}['registerSharedOperation'](_0x21031a){const _0x36a6a2=_0x294efb;return this[_0x36a6a2(0x284)]['add'](_0x21031a),o[_0x36a6a2(0x21d)](()=>this[_0x36a6a2(0x284)]['delete'](_0x21031a));}['registerInitialStateReporter'](_0x205601){const _0x5aec41=_0x294efb;return this[_0x5aec41(0x20e)]['add'](_0x205601),o['toDisposable'](()=>this[_0x5aec41(0x20e)][_0x5aec41(0x1db)](_0x205601));}['shouldShareOperation'](_0x8b5eec){const _0x3e301e=_0x294efb;return this[_0x3e301e(0x284)][_0x3e301e(0x24a)](_0x8b5eec);}[_0x294efb(0x217)](_0x4a5ce1){const _0x254f5e=_0x294efb;return Array[_0x254f5e(0x22b)](this[_0x254f5e(0x20e)])[_0x254f5e(0x257)](_0x28bffc=>_0x28bffc(_0x4a5ce1));}}var M=Object[_0x294efb(0x255)],P=(_0x549962,_0x63554f,_0x31e1ac,_0x2f20e7)=>{const _0x32fa36=_0x294efb;for(var _0x284d63=_0x2f20e7>0x1?void 0x0:_0x2f20e7?M(_0x63554f,_0x31e1ac):_0x63554f,_0x5b60b5=_0x549962[_0x32fa36(0x1fe)]-0x1,_0x5ad765;_0x5b60b5>=0x0;_0x5b60b5--)(_0x5ad765=_0x549962[_0x5b60b5])&&(_0x284d63=_0x5ad765(_0x284d63)||_0x284d63);return _0x284d63;},S=(_0x3b475d,_0x568e99)=>(_0x27e0b2,_0x2667fb)=>_0x568e99(_0x27e0b2,_0x2667fb,_0x3b475d);exports[_0x294efb(0x212)]=class extends o[_0x294efb(0x1d2)]{constructor(_0x1ed52f,_0x509912,_0x3210fa){const _0x30c1b5=_0x294efb;super(),_(this,_0x30c1b5(0x1c9),new Map()),(this['_univerInstanceService']=_0x1ed52f,this['_injector']=_0x509912,this[_0x30c1b5(0x1f6)]=_0x3210fa,this[_0x30c1b5(0x245)]());}async[_0x294efb(0x1cf)](_0x87cafc){const _0x1c2993=_0x294efb;return this['_entities'][_0x1c2993(0x24a)](_0x87cafc)||await this['_startLiveShareCoordinator'](_0x87cafc),this['_entities'][_0x1c2993(0x21a)](_0x87cafc);}[_0x294efb(0x25e)](_0x253824){const _0x342f06=_0x294efb;var _0x320b15;return(_0x320b15=this[_0x342f06(0x1c9)][_0x342f06(0x21a)](_0x253824))!=null?_0x320b15:null;}[_0x294efb(0x245)](){const _0x2bd9ce=_0x294efb;this[_0x2bd9ce(0x204)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x2bd9ce(0x1dd)])[_0x2bd9ce(0x243)](I['takeUntil'](this[_0x2bd9ce(0x266)]))['subscribe'](async _0x497fea=>{const _0x10e58a=_0x2bd9ce,_0x514270=_0x497fea['getUnitId']();this[_0x10e58a(0x1c9)]['has'](_0x514270)||this[_0x10e58a(0x1bb)](_0x514270);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x2bd9ce(0x1d1)]['UNIVER_SHEET'])['pipe'](I[_0x2bd9ce(0x289)](this[_0x2bd9ce(0x266)]))[_0x2bd9ce(0x221)](_0x10b57b=>{const _0x92e32a=_0x2bd9ce,_0x55b609=_0x10b57b['getUnitId'](),_0x239994=this[_0x92e32a(0x1c9)][_0x92e32a(0x21a)](_0x55b609);_0x239994==null||_0x239994['dispose']();});}async[_0x294efb(0x1bb)](_0xc97e4b){const _0x4d06aa=_0x294efb,_0xb81278=await this['_collabSessionService'][_0x4d06aa(0x1de)](_0xc97e4b),_0x15dd90=this[_0x4d06aa(0x262)][_0x4d06aa(0x24d)](exports[_0x4d06aa(0x22c)],_0xc97e4b,_0xb81278);return _0x15dd90['init'](),this[_0x4d06aa(0x1c9)][_0x4d06aa(0x253)](_0xc97e4b,_0x15dd90),_0x15dd90;}},exports[_0x294efb(0x212)]=P([S(0x0,o[_0x294efb(0x281)]),S(0x1,o[_0x294efb(0x28c)](o[_0x294efb(0x242)])),S(0x2,o[_0x294efb(0x28c)](b[_0x294efb(0x26d)]))],exports['LiveShareController']);var u=(_0x14c236=>(_0x14c236[_0x294efb(0x1e4)]='offline',_0x14c236[_0x294efb(0x21c)]=_0x294efb(0x1d9),_0x14c236[_0x294efb(0x1ee)]=_0x294efb(0x23e),_0x14c236[_0x294efb(0x248)]='not-following',_0x14c236[_0x294efb(0x218)]='presenting',_0x14c236))(u||{});const k=_0x294efb(0x270),q=0xc8;exports[_0x294efb(0x22c)]=class extends o[_0x294efb(0x1d2)]{constructor(_0x2211ec,_0x39662f,_0x59fab3,_0x140e25,_0x40b034){const _0x14aa3e=_0x294efb;super(),_(this,_0x14aa3e(0x232),new O[(_0x14aa3e(0x267))](_0x14aa3e(0x1d9))),_(this,'status$',this[_0x14aa3e(0x232)]['asObservable']()),_(this,'_init',!0x1),_(this,_0x14aa3e(0x265),null),_(this,'_presenter',null),(this[_0x14aa3e(0x28e)]=_0x2211ec,this[_0x14aa3e(0x211)]=_0x39662f,this[_0x14aa3e(0x282)]=_0x59fab3,this[_0x14aa3e(0x1ef)]=_0x140e25,this[_0x14aa3e(0x285)]=_0x40b034);}get['_status'](){const _0x5b0181=_0x294efb;return this['_status$'][_0x5b0181(0x1bc)]();}[_0x294efb(0x207)](){const _0x4f2856=_0x294efb;var _0x2c7b49;(_0x2c7b49=this[_0x4f2856(0x265)])==null||_0x2c7b49[_0x4f2856(0x207)](),this[_0x4f2856(0x232)]['next']('idle'),this[_0x4f2856(0x232)]['complete']();}[_0x294efb(0x22d)](){const _0xb14779=_0x294efb;return this[_0xb14779(0x26b)];}[_0x294efb(0x1cc)](){const _0x16e943=_0x294efb;this[_0x16e943(0x245)]||(this[_0x16e943(0x245)]=!0x0,this['_collabSession'][_0x16e943(0x25f)][_0x16e943(0x243)](I[_0x16e943(0x289)](this['dispose$']))[_0x16e943(0x221)](_0xb4fafc=>{const _0x1cf08d=_0x16e943;switch(_0xb4fafc){case b[_0x1cf08d(0x275)][_0x1cf08d(0x1e4)]:this[_0x1cf08d(0x1f9)]();break;case b[_0x1cf08d(0x275)][_0x1cf08d(0x273)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x16e943(0x27f)][_0x16e943(0x243)](I[_0x16e943(0x289)](this[_0x16e943(0x266)]))[_0x16e943(0x221)](_0x243283=>{const _0x41b312=_0x16e943,{eventID:_0x13f926}=_0x243283;switch(_0x13f926){case d[_0x41b312(0x279)]['LIVESHARE_NEW_HOST']:this[_0x41b312(0x292)](_0x243283);break;case d['CollaborationEvent'][_0x41b312(0x25d)]:this[_0x41b312(0x1ea)](_0x243283);break;case d['CollaborationEvent'][_0x41b312(0x1f5)]:this[_0x41b312(0x1f2)]();break;case d[_0x41b312(0x279)][_0x41b312(0x244)]:this[_0x41b312(0x22e)](_0x243283);break;}}));}[_0x294efb(0x291)](){const _0x5e407e=_0x294efb;this[_0x5e407e(0x211)][_0x5e407e(0x250)]({'eventID':d[_0x5e407e(0x279)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x5e407e(0x211)][_0x5e407e(0x1f3)]()}},this[_0x5e407e(0x28e)]);}[_0x294efb(0x20a)](){const _0x49a43b=_0x294efb;this[_0x49a43b(0x26b)]===_0x49a43b(0x205)&&(this['_status$'][_0x49a43b(0x28b)](_0x49a43b(0x1d9)),this[_0x49a43b(0x211)][_0x49a43b(0x250)]({'eventID':d[_0x49a43b(0x279)][_0x49a43b(0x1f5)],'data':{'unitID':this[_0x49a43b(0x28e)]}},this[_0x49a43b(0x28e)]));}[_0x294efb(0x1c2)](){const _0x1c4501=_0x294efb;this['_status']===_0x1c4501(0x23a)&&(this['_status$'][_0x1c4501(0x28b)]('following'),this[_0x1c4501(0x1f1)]());}[_0x294efb(0x1da)](){const _0x410c9e=_0x294efb;this['_status']===_0x410c9e(0x23e)&&this[_0x410c9e(0x1fc)]();}['_handleNewHost'](_0x49d8bc){const _0x48a3f3=_0x294efb,{presenter:_0x297bd8}=_0x49d8bc[_0x48a3f3(0x214)],_0x4e5202=this[_0x48a3f3(0x211)][_0x48a3f3(0x1f3)]();this[_0x48a3f3(0x1d7)]=_0x297bd8,_0x297bd8===_0x4e5202?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x48a3f3(0x26b)]!==_0x48a3f3(0x23a)&&(this[_0x48a3f3(0x1f7)](),this[_0x48a3f3(0x1f1)]());}[_0x294efb(0x1d0)](){const _0x4e2a70=_0x294efb,_0x38d028={'eventID':d[_0x4e2a70(0x279)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x4e2a70(0x211)]['send'](_0x38d028,this['_unitID']);}[_0x294efb(0x1f2)](){const _0x48f59e=_0x294efb;this[_0x48f59e(0x1d7)]=null,this[_0x48f59e(0x26b)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x2c7dc9){const _0x489cd5=_0x294efb;if(this['_status']===_0x489cd5(0x23e)&&this[_0x489cd5(0x1d7)]===_0x2c7dc9[_0x489cd5(0x214)]['memberID']){const _0x402a07=d['parseProtocolChangeset'](_0x2c7dc9[_0x489cd5(0x214)])[_0x489cd5(0x213)]['reverse']()[_0x489cd5(0x277)](_0x18fa00=>_0x18fa00['id']===C[_0x489cd5(0x1c0)]['id']);if(_0x402a07){const _0x274178=_0x402a07['params'][_0x489cd5(0x20f)],_0x24cbee=_0x402a07[_0x489cd5(0x23d)]['sheet']['id'];setTimeout(()=>{const _0x1c1d13=_0x489cd5;this[_0x1c1d13(0x285)]['executeCommand'](C[_0x1c1d13(0x236)]['id'],{'unitId':_0x274178,'subUnitId':_0x24cbee},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x53cb02=_0x294efb;this[_0x53cb02(0x232)][_0x53cb02(0x28b)](_0x53cb02(0x205));const _0x124763=new Map(),_0x4bd616=this[_0x53cb02(0x265)]=new o[(_0x53cb02(0x1ec))]();_0x4bd616[_0x53cb02(0x1fb)](o[_0x53cb02(0x21d)](()=>{const _0xc62a8f=_0x53cb02;_0x124763[_0xc62a8f(0x22a)](_0x52d7b9=>_0x52d7b9[_0xc62a8f(0x21e)]()),_0x124763[_0xc62a8f(0x28d)]();})),_0x4bd616[_0x53cb02(0x1fb)](this[_0x53cb02(0x285)][_0x53cb02(0x246)](_0x180118=>{const _0x31c74b=_0x53cb02;var _0x4b48f1;if(_0x180118['type']!==o[_0x31c74b(0x206)][_0x31c74b(0x233)]||!this[_0x31c74b(0x1ef)][_0x31c74b(0x25b)](_0x180118['id']))return;const {id:_0x546c8e}=_0x180118;let _0x4090ce;_0x124763[_0x31c74b(0x24a)](_0x546c8e)?_0x4090ce=_0x124763[_0x31c74b(0x21a)](_0x546c8e):(_0x4090ce=new O[(_0x31c74b(0x238))](),_0x124763['set'](_0x546c8e,_0x4090ce),_0x4090ce['pipe'](I[_0x31c74b(0x274)]((_0x4b48f1=this[_0x31c74b(0x282)][_0x31c74b(0x1d5)](k))!=null?_0x4b48f1:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x31d777=>{const _0x4b30ee=_0x31c74b;this['_collabSession'][_0x4b30ee(0x250)]({'eventID':d[_0x4b30ee(0x279)][_0x4b30ee(0x25d)],'data':{'unitID':this['_unitID'],'operations':{[_0x31d777['id']]:{'id':_0x31d777['id'],'params':JSON[_0x4b30ee(0x269)](_0x31d777[_0x4b30ee(0x23d)])}}}},this[_0x4b30ee(0x28e)]);})),_0x4090ce[_0x31c74b(0x28b)](_0x180118);})),this[_0x53cb02(0x1ef)][_0x53cb02(0x217)](this[_0x53cb02(0x28e)])[_0x53cb02(0x22a)](_0x2b2edf=>this['_collabSession']['send']({'eventID':d[_0x53cb02(0x279)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53cb02(0x28e)],'operations':{[_0x2b2edf['id']]:{'id':_0x2b2edf['id'],'params':JSON[_0x53cb02(0x269)](_0x2b2edf[_0x53cb02(0x23d)])}}}},this[_0x53cb02(0x28e)]));}[_0x294efb(0x1f7)](){const _0x4677bd=_0x294efb;var _0x46df3e;this[_0x4677bd(0x232)]['next'](_0x4677bd(0x1d9)),(_0x46df3e=this[_0x4677bd(0x265)])==null||_0x46df3e[_0x4677bd(0x207)](),this['_commandDisposable']=null;}[_0x294efb(0x1f1)](){const _0x399d59=_0x294efb;var _0x31689a;(_0x31689a=this[_0x399d59(0x265)])==null||_0x31689a[_0x399d59(0x207)](),this[_0x399d59(0x232)][_0x399d59(0x28b)](_0x399d59(0x23e));}[_0x294efb(0x234)](){const _0x1b5800=_0x294efb;var _0x20078d;this[_0x1b5800(0x232)]['next'](_0x1b5800(0x1d9)),(_0x20078d=this['_commandDisposable'])==null||_0x20078d[_0x1b5800(0x207)](),this[_0x1b5800(0x265)]=null;}['_stopFollowing'](){const _0x1fbc26=_0x294efb;var _0x306dd5;this[_0x1fbc26(0x232)][_0x1fbc26(0x28b)](_0x1fbc26(0x23a)),(_0x306dd5=this[_0x1fbc26(0x265)])==null||_0x306dd5[_0x1fbc26(0x207)]();}['_handleOperation'](_0x53df8c){const _0x56d41b=_0x294efb;if([_0x56d41b(0x205),_0x56d41b(0x23a),'offline']['includes'](this['_status'])||!_0x53df8c[_0x56d41b(0x214)][_0x56d41b(0x210)]||_0x53df8c[_0x56d41b(0x214)][_0x56d41b(0x210)]===this[_0x56d41b(0x211)]['getMemberID']())return;this[_0x56d41b(0x26b)]==='idle'&&this['_startFollowing']();const _0x2e6c4a=_0x53df8c['data'][_0x56d41b(0x219)];Object[_0x56d41b(0x287)](_0x2e6c4a)['forEach'](_0xd0d281=>{const _0x5a9f01=_0x56d41b;this[_0x5a9f01(0x285)][_0x5a9f01(0x1fd)](_0xd0d281['id'],_0xd0d281[_0x5a9f01(0x23d)]?JSON[_0x5a9f01(0x1d4)](_0xd0d281[_0x5a9f01(0x23d)]):null,{'fromCollab':!0x0});});}[_0x294efb(0x1f9)](){const _0x3e4607=_0x294efb;var _0x57c8e7;this[_0x3e4607(0x232)][_0x3e4607(0x28b)](_0x3e4607(0x260)),(_0x57c8e7=this['_commandDisposable'])==null||_0x57c8e7[_0x3e4607(0x207)]();}[_0x294efb(0x1fa)](){const _0x1086aa=_0x294efb;this[_0x1086aa(0x232)][_0x1086aa(0x28b)]('idle'),this[_0x1086aa(0x1d0)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x294efb(0x1cd)]),S(0x3,o[_0x294efb(0x28c)](E)),S(0x4,o[_0x294efb(0x249)])],exports[_0x294efb(0x22c)]);function $(){const _0x347697=_0x294efb,_0x36e958=p['useDependency'](exports[_0x347697(0x212)]),_0x40cf9f=p['useDependency'](o[_0x347697(0x281)]),_0x1cfeb0=p[_0x347697(0x1e5)](()=>_0x40cf9f[_0x347697(0x1ca)](o[_0x347697(0x1d1)][_0x347697(0x1dd)]),void 0x0,!0x1,[]),[_0x404f12,_0x6b5a53]=v['useState'](null),[_0x3a747f,_0x38518f]=v[_0x347697(0x1df)](u[_0x347697(0x21c)]),_0x441b7f=v[_0x347697(0x1c8)](null);return v[_0x347697(0x1ed)](()=>(_0x1cfeb0&&_0x36e958[_0x347697(0x1cf)](_0x1cfeb0[_0x347697(0x26c)]())['then'](_0x5eb76c=>{const _0x443cfc=_0x347697;_0x6b5a53(_0x5eb76c),_0x441b7f[_0x443cfc(0x247)]=_0x5eb76c[_0x443cfc(0x1f0)][_0x443cfc(0x221)](_0x542023=>{_0x38518f(_0x542023);});}),()=>{const _0x2f2dfd=_0x347697;var _0x469be0;(_0x469be0=_0x441b7f[_0x2f2dfd(0x247)])==null||_0x469be0[_0x2f2dfd(0x1e8)](),_0x441b7f[_0x2f2dfd(0x247)]=null;}),[_0x1cfeb0,_0x36e958]),_0x404f12?l[_0x347697(0x1e1)](f[_0x347697(0x286)],{'align':'end','disabled':_0x3a747f===u[_0x347697(0x1e4)],'className':_0x347697(0x237),'overlay':l['jsx'](W,{'status':_0x3a747f,'coordinator':_0x404f12}),'children':l[_0x347697(0x1e1)](_0x347697(0x1e3),{'className':f[_0x347697(0x225)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3a747f===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3a747f!==u[_0x347697(0x1e4)]}),'type':_0x347697(0x1e3),'children':l[_0x347697(0x1e1)](R,{'className':_0x347697(0x293)})})}):null;}function W(_0x258059){const _0x436091=_0x294efb,{status:_0x322841,coordinator:_0x4c7d48}=_0x258059;switch(_0x322841){case u[_0x436091(0x21c)]:return l[_0x436091(0x1e1)](G,{'coordinator':_0x4c7d48});case u[_0x436091(0x1ee)]:return l[_0x436091(0x1e1)](B,{'coordinator':_0x4c7d48});case u['NOT_FOLLOWING']:return l['jsx'](Y,{'coordinator':_0x4c7d48});case u['OFFLINE']:return l[_0x436091(0x1e1)](J,{});case u[_0x436091(0x218)]:return l[_0x436091(0x1e1)](Z,{'coordinator':_0x4c7d48});default:return null;}}function G(_0x3358d7){const _0x153570=_0x294efb,{coordinator:_0x291694}=_0x3358d7;return l[_0x153570(0x27b)](l['Fragment'],{'children':[l['jsx'](_0x153570(0x23f),{'className':_0x153570(0x288),'children':_0x153570(0x27d)}),l[_0x153570(0x1e1)](f['Button'],{'onClick':()=>_0x291694[_0x153570(0x291)](),'children':_0x153570(0x1ce)})]});}function B(_0x4ce1d5){const _0x4a7144=_0x294efb,{coordinator:_0x33baad}=_0x4ce1d5;return l[_0x4a7144(0x27b)](l[_0x4a7144(0x1e0)],{'children':[l[_0x4a7144(0x1e1)]('div',{'className':_0x4a7144(0x288),'children':_0x4a7144(0x203)}),l[_0x4a7144(0x1e1)](f[_0x4a7144(0x27c)],{'onClick':()=>_0x33baad[_0x4a7144(0x1da)](),'children':_0x4a7144(0x201)})]});}function Y(_0x56a253){const _0x99f571=_0x294efb,{coordinator:_0x12dd90}=_0x56a253;return l[_0x99f571(0x27b)](l[_0x99f571(0x1e0)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x99f571(0x1f4)}),l[_0x99f571(0x1e1)](f['Button'],{'variant':_0x99f571(0x1dc),'onClick':()=>_0x12dd90['startFollowing'](),'children':_0x99f571(0x297)})]});}function Z(_0x7b7364){const _0x3ba9fb=_0x294efb,{coordinator:_0x30cf4c}=_0x7b7364;return l[_0x3ba9fb(0x27b)](l[_0x3ba9fb(0x1e0)],{'children':[l['jsx']('div',{'className':_0x3ba9fb(0x288),'children':_0x3ba9fb(0x280)}),l[_0x3ba9fb(0x1e1)](f[_0x3ba9fb(0x27c)],{'variant':_0x3ba9fb(0x1bf),'onClick':()=>_0x30cf4c[_0x3ba9fb(0x20a)](),'children':_0x3ba9fb(0x26f)})]});}function J(){const _0x474dc2=_0x294efb;return l[_0x474dc2(0x1e1)](l[_0x474dc2(0x1e0)],{'children':_0x474dc2(0x26a)});}var K=Object[_0x294efb(0x255)],z=(_0x22d892,_0x729173,_0x2824fb,_0x4acc26)=>{const _0xeb2d16=_0x294efb;for(var _0x3de868=_0x4acc26>0x1?void 0x0:_0x4acc26?K(_0x729173,_0x2824fb):_0x729173,_0x5c1713=_0x22d892[_0xeb2d16(0x1fe)]-0x1,_0x109422;_0x5c1713>=0x0;_0x5c1713--)(_0x109422=_0x22d892[_0x5c1713])&&(_0x3de868=_0x109422(_0x3de868)||_0x3de868);return _0x3de868;},L=(_0x37d6ad,_0x11ab24)=>(_0x215bb,_0x81acf5)=>_0x11ab24(_0x215bb,_0x81acf5,_0x37d6ad);exports[_0x294efb(0x222)]=class extends o['Disposable']{constructor(_0x51d221,_0x2ee73c){const _0x371b79=_0x294efb;super(),this[_0x371b79(0x262)]=_0x51d221,this['_uiPartsService']=_0x2ee73c,this[_0x371b79(0x1c3)]();}[_0x294efb(0x1c3)](){const _0x22ff3a=_0x294efb;this[_0x22ff3a(0x200)](this[_0x22ff3a(0x1e9)]['registerComponent'](p[_0x22ff3a(0x1d6)][_0x22ff3a(0x230)],()=>p['connectInjector']($,this[_0x22ff3a(0x262)])));}},exports[_0x294efb(0x222)]=z([L(0x0,o[_0x294efb(0x28c)](o[_0x294efb(0x242)])),L(0x1,p[_0x294efb(0x254)])],exports['DesktopLiveShareController']);const Q=_0x294efb(0x1ba),w={};var X=Object[_0x294efb(0x255)],ee=(_0x28b095,_0x38e856,_0x2de363,_0x22acdf)=>{for(var _0x1859a2=_0x22acdf>0x1?void 0x0:_0x22acdf?X(_0x38e856,_0x2de363):_0x38e856,_0x4f7964=_0x28b095['length']-0x1,_0x569b26;_0x4f7964>=0x0;_0x4f7964--)(_0x569b26=_0x28b095[_0x4f7964])&&(_0x1859a2=_0x569b26(_0x1859a2)||_0x1859a2);return _0x1859a2;},te=(_0x17d248,_0x238058)=>(_0x4a15a2,_0x5bf442)=>_0x238058(_0x4a15a2,_0x5bf442,_0x17d248);let m=class extends o[_0x294efb(0x23c)]{constructor(_0x54b51a){super(),this['_liveShareService']=_0x54b51a,this['_init']();}[_0x294efb(0x245)](){const _0xdf7686=_0x294efb;[D[_0xdf7686(0x1f8)]['id'],D[_0xdf7686(0x216)]['id'],C['SetWorksheetActiveOperation']['id']][_0xdf7686(0x22a)](_0x446833=>{const _0x44d163=_0xdf7686;this[_0x44d163(0x200)](this[_0x44d163(0x1ef)][_0x44d163(0x272)](_0x446833));});}};m=ee([te(0x0,o[_0x294efb(0x28c)](E))],m);var ie=Object[_0x294efb(0x258)],se=Object['getOwnPropertyDescriptor'],ne=(_0x41074e,_0x3e317f,_0x2aa9e1)=>_0x3e317f in _0x41074e?ie(_0x41074e,_0x3e317f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aa9e1}):_0x41074e[_0x3e317f]=_0x2aa9e1,re=(_0x2bfded,_0x419e61,_0x3c7a16,_0x27aaae)=>{const _0x53ad90=_0x294efb;for(var _0x1cde12=_0x27aaae>0x1?void 0x0:_0x27aaae?se(_0x419e61,_0x3c7a16):_0x419e61,_0x5be4c1=_0x2bfded[_0x53ad90(0x1fe)]-0x1,_0x3f8520;_0x5be4c1>=0x0;_0x5be4c1--)(_0x3f8520=_0x2bfded[_0x5be4c1])&&(_0x1cde12=_0x3f8520(_0x1cde12)||_0x1cde12);return _0x1cde12;},N=(_0x1587d9,_0x1400fd)=>(_0x240246,_0x55c53f)=>_0x1400fd(_0x240246,_0x55c53f,_0x1587d9),A=(_0x45a918,_0x3e59b7,_0x39a76c)=>ne(_0x45a918,typeof _0x3e59b7!=_0x294efb(0x296)?_0x3e59b7+'':_0x3e59b7,_0x39a76c);const oe=_0x294efb(0x295);exports['UniverLiveSharePlugin']=class extends o[_0x294efb(0x227)]{constructor(_0xb482b0=w,_0x5d275a,_0x2db003){const _0x2342c0=_0x294efb;super(),this[_0x2342c0(0x264)]=_0xb482b0,this['_injector']=_0x5d275a,this['_configService']=_0x2db003;const {..._0x461fd0}=o[_0x2342c0(0x1d3)]({},w,this['_config']);this['_configService'][_0x2342c0(0x1be)](Q,_0x461fd0);}[_0x294efb(0x263)](){const _0x179071=_0x294efb;o[_0x179071(0x251)](this[_0x179071(0x262)],o[_0x179071(0x208)]([[E],[exports['LiveShareController']],[m],[exports[_0x179071(0x222)]]],this[_0x179071(0x264)]['override'])),o[_0x179071(0x28f)](this[_0x179071(0x262)],[[m]]);}[_0x294efb(0x229)](){const _0x292104=_0x294efb;o[_0x292104(0x28f)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x294efb(0x1cb)],'type',o[_0x294efb(0x1d1)][_0x294efb(0x252)]),A(exports['UniverLiveSharePlugin'],_0x294efb(0x28a),oe),exports[_0x294efb(0x1cb)]=re([o[_0x294efb(0x268)](b[_0x294efb(0x1ff)]),N(0x1,o[_0x294efb(0x28c)](o[_0x294efb(0x242)])),N(0x2,o[_0x294efb(0x1cd)])],exports[_0x294efb(0x1cb)]),exports[_0x294efb(0x223)]=$,exports['LiveShareService']=E,exports[_0x294efb(0x20d)]=u;
1
+ 'use strict';const _0x201f75=_0x1f46;(function(_0x363785,_0xc2086){const _0x284776=_0x1f46,_0x4704e8=_0x363785();while(!![]){try{const _0x19fddc=parseInt(_0x284776(0x162))/0x1*(-parseInt(_0x284776(0x13f))/0x2)+-parseInt(_0x284776(0x199))/0x3+parseInt(_0x284776(0x102))/0x4*(-parseInt(_0x284776(0x192))/0x5)+parseInt(_0x284776(0x1a2))/0x6+-parseInt(_0x284776(0x14b))/0x7*(-parseInt(_0x284776(0x1a4))/0x8)+-parseInt(_0x284776(0x188))/0x9+parseInt(_0x284776(0x15f))/0xa*(parseInt(_0x284776(0x151))/0xb);if(_0x19fddc===_0xc2086)break;else _0x4704e8['push'](_0x4704e8['shift']());}catch(_0x168525){_0x4704e8['push'](_0x4704e8['shift']());}}}(_0x53f1,0x380ac));var T=Object['defineProperty'],U=(_0x4f7ffa,_0x331e0c,_0x5c47b6)=>_0x331e0c in _0x4f7ffa?T(_0x4f7ffa,_0x331e0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c47b6}):_0x4f7ffa[_0x331e0c]=_0x5c47b6,_=(_0x5737d3,_0x274078,_0x16fd2c)=>U(_0x5737d3,typeof _0x274078!=_0x201f75(0x11a)?_0x274078+'':_0x274078,_0x16fd2c);Object[_0x201f75(0x17f)](exports,Symbol[_0x201f75(0x197)],{'value':_0x201f75(0x135)});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 _0x1f46(_0x3753b9,_0x32b663){_0x3753b9=_0x3753b9-0xd6;const _0x53f190=_0x53f1();let _0x1f46e6=_0x53f190[_0x3753b9];return _0x1f46e6;}function x({ref:_0x17b7fa,..._0x2d5d95}){const _0x3213a8=_0x201f75,{icon:_0x76f8f5,id:_0x39d575,className:_0x40f109,extend:_0x4728fb,..._0x59ea5f}=_0x2d5d95,_0x4f1e7a=(_0x3213a8(0x14f)+_0x39d575+'\x20'+(_0x40f109||''))[_0x3213a8(0x158)](),_0x23e1dd=v[_0x3213a8(0x171)]('_'+H());return j(_0x76f8f5,''+_0x39d575,{'defIds':_0x76f8f5[_0x3213a8(0x187)],'idSuffix':_0x23e1dd[_0x3213a8(0x127)]},{'ref':_0x17b7fa,'className':_0x4f1e7a,..._0x59ea5f},_0x4728fb);}function j(_0x3ea8ee,_0x484d52,_0x490f05,_0x34c777,_0x2c8f15){const _0x2de375=_0x201f75;return v[_0x2de375(0x137)](_0x3ea8ee[_0x2de375(0xf5)],{'key':_0x484d52,...y(_0x3ea8ee,_0x490f05,_0x2c8f15),..._0x34c777},(F(_0x3ea8ee,_0x490f05)[_0x2de375(0x141)]||[])[_0x2de375(0x16e)]((_0x2882dc,_0x5ce383)=>j(_0x2882dc,_0x484d52+'-'+_0x3ea8ee[_0x2de375(0xf5)]+'-'+_0x5ce383,_0x490f05,void 0x0,_0x2c8f15)));}function y(_0x3c37ee,_0x228814,_0x406e50){const _0x34eb3e=_0x201f75,_0x92271f={..._0x3c37ee[_0x34eb3e(0x19d)]};_0x406e50!=null&&_0x406e50[_0x34eb3e(0x13b)]&&_0x92271f[_0x34eb3e(0xe7)]===_0x34eb3e(0x13b)&&(_0x92271f[_0x34eb3e(0xe7)]=_0x406e50['colorChannel1']),_0x3c37ee[_0x34eb3e(0xf5)]===_0x34eb3e(0xe4)&&_0x92271f['id']&&(_0x92271f['id']=_0x92271f['id']+_0x228814[_0x34eb3e(0x159)]),Object[_0x34eb3e(0x12e)](_0x92271f)['forEach'](([_0x4b6d7d,_0x54733f])=>{const _0x46432f=_0x34eb3e;_0x4b6d7d==='mask'&&typeof _0x54733f==_0x46432f(0x19a)&&(_0x92271f[_0x4b6d7d]=_0x54733f[_0x46432f(0x12f)](/url\(#(.*)\)/,_0x46432f(0xf4)+_0x228814[_0x46432f(0x159)]+')'));});const {defIds:_0x29af52}=_0x228814;return!_0x29af52||_0x29af52[_0x34eb3e(0x1a0)]===0x0||(_0x3c37ee[_0x34eb3e(0xf5)]===_0x34eb3e(0xf3)&&_0x92271f['xlink:href']&&(_0x92271f[_0x34eb3e(0x15e)]=_0x92271f[_0x34eb3e(0x15e)]+_0x228814[_0x34eb3e(0x159)]),Object[_0x34eb3e(0x12e)](_0x92271f)['forEach'](([_0x284006,_0x4acf35])=>{const _0x21b497=_0x34eb3e;typeof _0x4acf35=='string'&&(_0x92271f[_0x284006]=_0x4acf35['replace'](/url\(#(.*)\)/,_0x21b497(0xf4)+_0x228814[_0x21b497(0x159)]+')'));})),_0x92271f;}function F(_0x2de182,_0x4f2732){const _0x46f088=_0x201f75;var _0x5c175c;const {defIds:_0x3a134c}=_0x4f2732;return!_0x3a134c||_0x3a134c[_0x46f088(0x1a0)]===0x0?_0x2de182:_0x2de182[_0x46f088(0xf5)]===_0x46f088(0xfd)&&((_0x5c175c=_0x2de182['children'])!=null&&_0x5c175c[_0x46f088(0x1a0)])?{..._0x2de182,'children':_0x2de182[_0x46f088(0x141)][_0x46f088(0x16e)](_0x20d002=>typeof _0x20d002[_0x46f088(0x19d)]['id']==_0x46f088(0x19a)&&_0x3a134c&&_0x3a134c[_0x46f088(0x198)](_0x20d002[_0x46f088(0x19d)]['id'])?{..._0x20d002,'attrs':{..._0x20d002['attrs'],'id':_0x20d002['attrs']['id']+_0x4f2732['idSuffix']}}:_0x20d002)}:_0x2de182;}function H(){const _0x1d87da=_0x201f75;return Math[_0x1d87da(0x125)]()[_0x1d87da(0x138)](0x24)[_0x1d87da(0x18f)](0x2,0x8);}x[_0x201f75(0x140)]=_0x201f75(0xfc);const V={'tag':'svg','attrs':{'xmlns':_0x201f75(0x15d),'fill':_0x201f75(0x104),'viewBox':_0x201f75(0xda),'width':_0x201f75(0x143),'height':_0x201f75(0x143)},'children':[{'tag':_0x201f75(0x16b),'attrs':{'fill':'currentColor','d':_0x201f75(0x109)}},{'tag':_0x201f75(0x16b),'attrs':{'fill':'currentColor','d':_0x201f75(0xed),'fillRule':_0x201f75(0xe2),'clipRule':_0x201f75(0xe2)}}]},R=v[_0x201f75(0x160)](function(_0x517538,_0x5d962e){const _0x1bb967=_0x201f75;return v[_0x1bb967(0x137)](x,Object['assign']({},_0x517538,{'id':'live-share-icon','ref':_0x5d962e,'icon':V}));});function _0x53f1(){const _0x5bb151=['displayName','children','forEach','1em','_startLiveShareCoordinator','_reporters','_mountLiveShare','getTypeOfUnitAdded$','get','_beIdle','_startPresenting','7TCaYbP','dispose','jsxs','event$','univerjs-icon\x20univerjs-icon-','stopPresenting','1276SDlTnV','_univerInstanceService','useEffect','SetScrollOperation','then','LIVESHARE_FETCH_OPERATIONS','LiveShareIcon','trim','idSuffix','Dropdown','getStatus','presenter','http://www.w3.org/2000/svg','xlink:href','69510vmmeKE','forwardRef','send','1QEgeVD','You\x27are\x20offline.','parse','_liveShareService','_config','disposeWithMe','not-following','LiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','CollaborationSessionService','mergeOverrideWithDependencies','map','presenting','getCurrentTypeOfUnit$','useRef','univer-mb-3\x20univer-w-full\x20univer-text-sm','SessionStatus','SetWorksheetActiveOperation','Stop\x20presenting','tryStartPresenting','stopFollowing','from','LiveShareService','Subject','_handleOnline','sheet','registerSharedOperation','univer-size-4','defineProperty','useDependency','UniverLiveSharePlugin','DesktopLiveShareController','_collabSessionService','LiveShare','div','ICommandService','defIds','2600424ZupUWQ','NOT_FOLLOWING','InsertSheetMutation','NEW_CHANGESETS','LIVESHARE_TERMINATE','takeUntil','_handleNewHost','substring','getMemberID','_commandDisposable','4095yHHjtk','_configService','reverse','live-share.config','next','toStringTag','includes','831600nvBzlR','string','RxDisposable','UniverInstanceType','attrs','delete','shouldShareOperation','length','_injector','2601438KdLTEr','Disposable','1586008NCOGWo','useObservable','FOLLOWING','Present\x20this\x20document','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','Injector','_stopFollowing','registerInitialStateReporter','text','_fetchOperations','offline','_init','getInitialStates','0\x200\x2017\x2017','_handleTerminate','merge','Plugin','_commandService','_startFollowing','sessionStatus$','onCommandExecuted','evenodd','pipe','mask','HEADER_MENU','Stop\x20following','fill','Fragment','BehaviorSubject','following','clear','IConfigService','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','IUIPartsService','_entities','registerDependencies','data','useState','use','url(#$1','tag','getOwnPropertyDescriptor','LIVESHARE_OPERATION','idle','LiveShareController','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','dispose$','UniverIcon','defs','UNIVER_SHEET','jsx','status$','You\x27re\x20presenting\x20the\x20document','1308dKbLjQ','_collabSession','none','CollaborationEvent','toDisposable','set','startFollowing','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','LIVESHARE_NEW_HOST','IUniverInstanceService','override','_handleOperation','getValue','touchDependencies','requireSession','has','registerComponent','getLiveShareCoordinator','clsx','Button','parseProtocolChangeset','getTypeOfUnitDisposed$','Start','DisposableCollection','symbol','ONLINE','subscribe','getUnitId','OFFLINE','PRESENTING','SetZoomRatioOperation','_status','_stopPresenting','type','button','random','params','current','_status$','_presenter','DependentOn','complete','getLiveShareCoordinatorSync','stringify','entries','replace','createInstance','operations','add','Inject','default','Module','executeCommand','createElement','toString','values','_handleNewChangeSets','colorChannel1','_sharedOperations','IDLE','_unitID','749286xZilWg'];_0x53f1=function(){return _0x5bb151;};return _0x53f1();}R[_0x201f75(0x140)]=_0x201f75(0x157);class E extends o[_0x201f75(0x1a3)]{constructor(){const _0x13b01a=_0x201f75;super(...arguments),_(this,_0x13b01a(0x13c),new Set()),_(this,_0x13b01a(0x145),new Set());}[_0x201f75(0x17d)](_0x28ca3d){const _0x4ecc33=_0x201f75;return this[_0x4ecc33(0x13c)][_0x4ecc33(0x132)](_0x28ca3d),o[_0x4ecc33(0x106)](()=>this[_0x4ecc33(0x13c)][_0x4ecc33(0x19e)](_0x28ca3d));}[_0x201f75(0x1ac)](_0x43bec5){const _0x51cb75=_0x201f75;return this[_0x51cb75(0x145)]['add'](_0x43bec5),o[_0x51cb75(0x106)](()=>this[_0x51cb75(0x145)]['delete'](_0x43bec5));}[_0x201f75(0x19f)](_0x153eff){const _0x499118=_0x201f75;return this[_0x499118(0x13c)][_0x499118(0x111)](_0x153eff);}[_0x201f75(0xd9)](_0x280176){const _0x1a3854=_0x201f75;return Array[_0x1a3854(0x178)](this['_reporters'])[_0x1a3854(0x16e)](_0x24150a=>_0x24150a(_0x280176));}}var M=Object[_0x201f75(0xf6)],P=(_0x3bf093,_0x41a59b,_0x1da2c0,_0x583d0a)=>{for(var _0x24195e=_0x583d0a>0x1?void 0x0:_0x583d0a?M(_0x41a59b,_0x1da2c0):_0x41a59b,_0x1c10c4=_0x3bf093['length']-0x1,_0xb3de46;_0x1c10c4>=0x0;_0x1c10c4--)(_0xb3de46=_0x3bf093[_0x1c10c4])&&(_0x24195e=_0xb3de46(_0x24195e)||_0x24195e);return _0x24195e;},S=(_0x44f82b,_0x4283aa)=>(_0x4e7611,_0x284e2f)=>_0x4283aa(_0x4e7611,_0x284e2f,_0x44f82b);exports[_0x201f75(0xf9)]=class extends o[_0x201f75(0x19b)]{constructor(_0x989385,_0xc6d14b,_0x4d6db0){const _0x2e8a06=_0x201f75;super(),_(this,_0x2e8a06(0xef),new Map()),(this['_univerInstanceService']=_0x989385,this['_injector']=_0xc6d14b,this[_0x2e8a06(0x183)]=_0x4d6db0,this[_0x2e8a06(0xd8)]());}async[_0x201f75(0x113)](_0x570c6d){const _0x231b08=_0x201f75;return this[_0x231b08(0xef)][_0x231b08(0x111)](_0x570c6d)||await this[_0x231b08(0x144)](_0x570c6d),this[_0x231b08(0xef)]['get'](_0x570c6d);}[_0x201f75(0x12c)](_0x2e24b7){const _0xac9f0b=_0x201f75;var _0x36fd72;return(_0x36fd72=this[_0xac9f0b(0xef)]['get'](_0x2e24b7))!=null?_0x36fd72:null;}[_0x201f75(0xd8)](){const _0x1245a3=_0x201f75;this[_0x1245a3(0x152)][_0x1245a3(0x147)](o[_0x1245a3(0x19c)][_0x1245a3(0xfe)])[_0x1245a3(0xe3)](I[_0x1245a3(0x18d)](this[_0x1245a3(0xfb)]))[_0x1245a3(0x11c)](async _0x2725a1=>{const _0x366861=_0x1245a3,_0x91df20=_0x2725a1[_0x366861(0x11d)]();this[_0x366861(0xef)][_0x366861(0x111)](_0x91df20)||this['_startLiveShareCoordinator'](_0x91df20);}),this[_0x1245a3(0x152)][_0x1245a3(0x117)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1245a3(0xe3)](I[_0x1245a3(0x18d)](this[_0x1245a3(0xfb)]))['subscribe'](_0x1849ad=>{const _0x15870e=_0x1245a3,_0x4381cb=_0x1849ad[_0x15870e(0x11d)](),_0x43861d=this[_0x15870e(0xef)][_0x15870e(0x148)](_0x4381cb);_0x43861d==null||_0x43861d[_0x15870e(0x14c)]();});}async[_0x201f75(0x144)](_0x35e369){const _0x158ff9=_0x201f75,_0x3a7648=await this[_0x158ff9(0x183)][_0x158ff9(0x110)](_0x35e369),_0x1569fe=this['_injector'][_0x158ff9(0x130)](exports[_0x158ff9(0x169)],_0x35e369,_0x3a7648);return _0x1569fe['init'](),this[_0x158ff9(0xef)][_0x158ff9(0x107)](_0x35e369,_0x1569fe),_0x1569fe;}},exports[_0x201f75(0xf9)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x201f75(0x133)](o['Injector'])),S(0x2,o['Inject'](b[_0x201f75(0x16c)]))],exports[_0x201f75(0xf9)]);var u=(_0x1b782d=>(_0x1b782d[_0x201f75(0x11e)]=_0x201f75(0xd7),_0x1b782d['IDLE']=_0x201f75(0xf8),_0x1b782d['FOLLOWING']=_0x201f75(0xea),_0x1b782d[_0x201f75(0x189)]='not-following',_0x1b782d[_0x201f75(0x11f)]=_0x201f75(0x16f),_0x1b782d))(u||{});const k=_0x201f75(0x1a8),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x201f75(0x19b)]{constructor(_0x593cb0,_0x5963c5,_0x53ea35,_0x4d54b1,_0x27986f){const _0xe93136=_0x201f75;super(),_(this,_0xe93136(0x128),new O[(_0xe93136(0xe9))]('idle')),_(this,_0xe93136(0x100),this[_0xe93136(0x128)]['asObservable']()),_(this,_0xe93136(0xd8),!0x1),_(this,_0xe93136(0x191),null),_(this,'_presenter',null),(this[_0xe93136(0x13e)]=_0x593cb0,this[_0xe93136(0x103)]=_0x5963c5,this[_0xe93136(0x193)]=_0x53ea35,this[_0xe93136(0x165)]=_0x4d54b1,this[_0xe93136(0xde)]=_0x27986f);}get['_status'](){const _0x3d86a8=_0x201f75;return this[_0x3d86a8(0x128)][_0x3d86a8(0x10e)]();}[_0x201f75(0x14c)](){const _0x2ef713=_0x201f75;var _0x115829;(_0x115829=this[_0x2ef713(0x191)])==null||_0x115829['dispose'](),this[_0x2ef713(0x128)][_0x2ef713(0x196)](_0x2ef713(0xf8)),this['_status$'][_0x2ef713(0x12b)]();}[_0x201f75(0x15b)](){const _0x1d4b07=_0x201f75;return this[_0x1d4b07(0x121)];}['init'](){const _0x133c64=_0x201f75;this[_0x133c64(0xd8)]||(this[_0x133c64(0xd8)]=!0x0,this['_collabSession'][_0x133c64(0xe0)][_0x133c64(0xe3)](I['takeUntil'](this['dispose$']))[_0x133c64(0x11c)](_0x32871a=>{const _0x4e9887=_0x133c64;switch(_0x32871a){case b[_0x4e9887(0x173)][_0x4e9887(0x11e)]:this['_handleOffline']();break;case b['SessionStatus'][_0x4e9887(0x11b)]:this[_0x4e9887(0x17b)]();break;}}),this['_collabSession'][_0x133c64(0x14e)][_0x133c64(0xe3)](I[_0x133c64(0x18d)](this[_0x133c64(0xfb)]))[_0x133c64(0x11c)](_0x1c5020=>{const _0x1f045a=_0x133c64,{eventID:_0x1a1858}=_0x1c5020;switch(_0x1a1858){case d['CollaborationEvent'][_0x1f045a(0x10a)]:this[_0x1f045a(0x18e)](_0x1c5020);break;case d[_0x1f045a(0x105)][_0x1f045a(0xf7)]:this[_0x1f045a(0x10d)](_0x1c5020);break;case d[_0x1f045a(0x105)][_0x1f045a(0x18c)]:this[_0x1f045a(0xdb)]();break;case d[_0x1f045a(0x105)][_0x1f045a(0x18b)]:this[_0x1f045a(0x13a)](_0x1c5020);break;}}));}[_0x201f75(0x176)](){const _0x9b817c=_0x201f75;this[_0x9b817c(0x103)][_0x9b817c(0x161)]({'eventID':d[_0x9b817c(0x105)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x9b817c(0x13e)],'userID':this[_0x9b817c(0x103)][_0x9b817c(0x190)]()}},this[_0x9b817c(0x13e)]);}[_0x201f75(0x150)](){const _0x1491c1=_0x201f75;this[_0x1491c1(0x121)]==='presenting'&&(this[_0x1491c1(0x128)][_0x1491c1(0x196)](_0x1491c1(0xf8)),this['_collabSession'][_0x1491c1(0x161)]({'eventID':d[_0x1491c1(0x105)][_0x1491c1(0x18c)],'data':{'unitID':this[_0x1491c1(0x13e)]}},this[_0x1491c1(0x13e)]));}[_0x201f75(0x108)](){const _0x5cd03e=_0x201f75;this[_0x5cd03e(0x121)]===_0x5cd03e(0x168)&&(this[_0x5cd03e(0x128)][_0x5cd03e(0x196)](_0x5cd03e(0xea)),this[_0x5cd03e(0xdf)]());}[_0x201f75(0x177)](){const _0x4b81b8=_0x201f75;this['_status']==='following'&&this[_0x4b81b8(0x1ab)]();}[_0x201f75(0x18e)](_0x54c7f7){const _0x180474=_0x201f75,{presenter:_0x3f8cc3}=_0x54c7f7[_0x180474(0xf1)],_0x1eca86=this['_collabSession'][_0x180474(0x190)]();this[_0x180474(0x129)]=_0x3f8cc3,_0x3f8cc3===_0x1eca86?(this['_stopFollowing'](),this[_0x180474(0x14a)]()):this[_0x180474(0x121)]!=='not-following'&&(this[_0x180474(0x122)](),this[_0x180474(0xdf)]());}[_0x201f75(0xd6)](){const _0x2054af=_0x201f75,_0xbf34f7={'eventID':d[_0x2054af(0x105)][_0x2054af(0x156)]};this[_0x2054af(0x103)][_0x2054af(0x161)](_0xbf34f7,this[_0x2054af(0x13e)]);}[_0x201f75(0xdb)](){const _0x41a4ee=_0x201f75;this[_0x41a4ee(0x129)]=null,this[_0x41a4ee(0x121)]!==_0x41a4ee(0x16f)&&this[_0x41a4ee(0x149)]();}['_handleNewChangeSets'](_0x4e789a){const _0x1bd401=_0x201f75;if(this['_status']===_0x1bd401(0xea)&&this['_presenter']===_0x4e789a[_0x1bd401(0xf1)]['memberID']){const _0x4eca13=d[_0x1bd401(0x116)](_0x4e789a['data'])['mutations'][_0x1bd401(0x194)]()['find'](_0x3927f7=>_0x3927f7['id']===C[_0x1bd401(0x18a)]['id']);if(_0x4eca13){const _0x4bae63=_0x4eca13[_0x1bd401(0x126)]['unitId'],_0xe30025=_0x4eca13[_0x1bd401(0x126)][_0x1bd401(0x17c)]['id'];setTimeout(()=>{const _0x2711bc=_0x1bd401;this[_0x2711bc(0xde)][_0x2711bc(0x136)](C[_0x2711bc(0x174)]['id'],{'unitId':_0x4bae63,'subUnitId':_0xe30025},{'fromCollab':!0x0});});}}}[_0x201f75(0x14a)](){const _0x587f4c=_0x201f75;this[_0x587f4c(0x128)][_0x587f4c(0x196)](_0x587f4c(0x16f));const _0x1247a4=new Map(),_0x4f4a7e=this[_0x587f4c(0x191)]=new o[(_0x587f4c(0x119))]();_0x4f4a7e['add'](o[_0x587f4c(0x106)](()=>{const _0x3de491=_0x587f4c;_0x1247a4[_0x3de491(0x142)](_0xf834ec=>_0xf834ec[_0x3de491(0x12b)]()),_0x1247a4[_0x3de491(0xeb)]();})),_0x4f4a7e[_0x587f4c(0x132)](this[_0x587f4c(0xde)][_0x587f4c(0xe1)](_0xd1dea7=>{const _0x5d800b=_0x587f4c;var _0x141bd6;if(_0xd1dea7[_0x5d800b(0x123)]!==o['CommandType']['OPERATION']||!this[_0x5d800b(0x165)][_0x5d800b(0x19f)](_0xd1dea7['id']))return;const {id:_0xd3c7d0}=_0xd1dea7;let _0x5bc59f;_0x1247a4[_0x5d800b(0x111)](_0xd3c7d0)?_0x5bc59f=_0x1247a4[_0x5d800b(0x148)](_0xd3c7d0):(_0x5bc59f=new O[(_0x5d800b(0x17a))](),_0x1247a4['set'](_0xd3c7d0,_0x5bc59f),_0x5bc59f['pipe'](I['throttleTime']((_0x141bd6=this[_0x5d800b(0x193)]['getConfig'](k))!=null?_0x141bd6:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5d800b(0x11c)](_0x156615=>{const _0x3d9ced=_0x5d800b;this[_0x3d9ced(0x103)][_0x3d9ced(0x161)]({'eventID':d[_0x3d9ced(0x105)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3d9ced(0x13e)],'operations':{[_0x156615['id']]:{'id':_0x156615['id'],'params':JSON[_0x3d9ced(0x12d)](_0x156615[_0x3d9ced(0x126)])}}}},this[_0x3d9ced(0x13e)]);})),_0x5bc59f[_0x5d800b(0x196)](_0xd1dea7);})),this[_0x587f4c(0x165)][_0x587f4c(0xd9)](this[_0x587f4c(0x13e)])[_0x587f4c(0x142)](_0x2493f2=>this[_0x587f4c(0x103)][_0x587f4c(0x161)]({'eventID':d[_0x587f4c(0x105)][_0x587f4c(0xf7)],'data':{'unitID':this['_unitID'],'operations':{[_0x2493f2['id']]:{'id':_0x2493f2['id'],'params':JSON[_0x587f4c(0x12d)](_0x2493f2[_0x587f4c(0x126)])}}}},this[_0x587f4c(0x13e)]));}['_stopPresenting'](){const _0x500c46=_0x201f75;var _0x51f3b6;this[_0x500c46(0x128)][_0x500c46(0x196)]('idle'),(_0x51f3b6=this['_commandDisposable'])==null||_0x51f3b6[_0x500c46(0x14c)](),this[_0x500c46(0x191)]=null;}[_0x201f75(0xdf)](){const _0x3d6028=_0x201f75;var _0x24ad22;(_0x24ad22=this[_0x3d6028(0x191)])==null||_0x24ad22[_0x3d6028(0x14c)](),this[_0x3d6028(0x128)]['next']('following');}['_beIdle'](){const _0x199ede=_0x201f75;var _0x3bb51d;this[_0x199ede(0x128)][_0x199ede(0x196)]('idle'),(_0x3bb51d=this[_0x199ede(0x191)])==null||_0x3bb51d[_0x199ede(0x14c)](),this[_0x199ede(0x191)]=null;}[_0x201f75(0x1ab)](){const _0x2b289d=_0x201f75;var _0x19d013;this['_status$']['next'](_0x2b289d(0x168)),(_0x19d013=this[_0x2b289d(0x191)])==null||_0x19d013[_0x2b289d(0x14c)]();}[_0x201f75(0x10d)](_0x23b262){const _0x46a15b=_0x201f75;if([_0x46a15b(0x16f),_0x46a15b(0x168),_0x46a15b(0xd7)][_0x46a15b(0x198)](this[_0x46a15b(0x121)])||!_0x23b262[_0x46a15b(0xf1)][_0x46a15b(0x15c)]||_0x23b262[_0x46a15b(0xf1)][_0x46a15b(0x15c)]===this[_0x46a15b(0x103)][_0x46a15b(0x190)]())return;this[_0x46a15b(0x121)]===_0x46a15b(0xf8)&&this[_0x46a15b(0xdf)]();const _0x183fea=_0x23b262[_0x46a15b(0xf1)][_0x46a15b(0x131)];Object[_0x46a15b(0x139)](_0x183fea)[_0x46a15b(0x142)](_0x19e7b5=>{const _0x2f6adb=_0x46a15b;this['_commandService'][_0x2f6adb(0x136)](_0x19e7b5['id'],_0x19e7b5[_0x2f6adb(0x126)]?JSON[_0x2f6adb(0x164)](_0x19e7b5[_0x2f6adb(0x126)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x228251=_0x201f75;var _0x289934;this[_0x228251(0x128)][_0x228251(0x196)](_0x228251(0xd7)),(_0x289934=this[_0x228251(0x191)])==null||_0x289934[_0x228251(0x14c)]();}[_0x201f75(0x17b)](){const _0x5c5f8d=_0x201f75;this[_0x5c5f8d(0x128)]['next'](_0x5c5f8d(0xf8)),this[_0x5c5f8d(0xd6)]();}},exports[_0x201f75(0x169)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x201f75(0x133)](E)),S(0x4,o[_0x201f75(0x186)])],exports['LiveShareCoordinator']);function $(){const _0x4c87eb=_0x201f75,_0x5aa1d8=p[_0x4c87eb(0x180)](exports[_0x4c87eb(0xf9)]),_0x372758=p[_0x4c87eb(0x180)](o[_0x4c87eb(0x10b)]),_0x42cd5c=p[_0x4c87eb(0x1a5)](()=>_0x372758[_0x4c87eb(0x170)](o['UniverInstanceType'][_0x4c87eb(0xfe)]),void 0x0,!0x1,[]),[_0x2217b4,_0x325182]=v[_0x4c87eb(0xf2)](null),[_0x2b127f,_0x379e6a]=v[_0x4c87eb(0xf2)](u[_0x4c87eb(0x13d)]),_0x171ef7=v[_0x4c87eb(0x171)](null);return v[_0x4c87eb(0x153)](()=>(_0x42cd5c&&_0x5aa1d8[_0x4c87eb(0x113)](_0x42cd5c[_0x4c87eb(0x11d)]())[_0x4c87eb(0x155)](_0x2ab42e=>{const _0x347597=_0x4c87eb;_0x325182(_0x2ab42e),_0x171ef7[_0x347597(0x127)]=_0x2ab42e[_0x347597(0x100)][_0x347597(0x11c)](_0x260f75=>{_0x379e6a(_0x260f75);});}),()=>{const _0x2b6a2f=_0x4c87eb;var _0x39fcf6;(_0x39fcf6=_0x171ef7[_0x2b6a2f(0x127)])==null||_0x39fcf6['unsubscribe'](),_0x171ef7[_0x2b6a2f(0x127)]=null;}),[_0x42cd5c,_0x5aa1d8]),_0x2217b4?l['jsx'](f[_0x4c87eb(0x15a)],{'align':'end','disabled':_0x2b127f===u['OFFLINE'],'className':_0x4c87eb(0xfa),'overlay':l['jsx'](W,{'status':_0x2b127f,'coordinator':_0x2217b4}),'children':l[_0x4c87eb(0xff)](_0x4c87eb(0x124),{'className':f[_0x4c87eb(0x114)](_0x4c87eb(0x16a),{'univer-cursor-not-allowed':_0x2b127f===u[_0x4c87eb(0x11e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b127f!==u[_0x4c87eb(0x11e)]}),'type':_0x4c87eb(0x124),'children':l[_0x4c87eb(0xff)](R,{'className':_0x4c87eb(0x17e)})})}):null;}function W(_0x3731ef){const _0x4ea36b=_0x201f75,{status:_0x47a392,coordinator:_0x120f02}=_0x3731ef;switch(_0x47a392){case u[_0x4ea36b(0x13d)]:return l[_0x4ea36b(0xff)](G,{'coordinator':_0x120f02});case u[_0x4ea36b(0x1a6)]:return l[_0x4ea36b(0xff)](B,{'coordinator':_0x120f02});case u[_0x4ea36b(0x189)]:return l[_0x4ea36b(0xff)](Y,{'coordinator':_0x120f02});case u[_0x4ea36b(0x11e)]:return l[_0x4ea36b(0xff)](J,{});case u[_0x4ea36b(0x11f)]:return l[_0x4ea36b(0xff)](Z,{'coordinator':_0x120f02});default:return null;}}function G(_0xc21f6d){const _0x4ddb1c=_0x201f75,{coordinator:_0x3e0889}=_0xc21f6d;return l[_0x4ddb1c(0x14d)](l[_0x4ddb1c(0xe8)],{'children':[l['jsx'](_0x4ddb1c(0x185),{'className':_0x4ddb1c(0x172),'children':_0x4ddb1c(0x1a7)}),l[_0x4ddb1c(0xff)](f['Button'],{'onClick':()=>_0x3e0889[_0x4ddb1c(0x176)](),'children':_0x4ddb1c(0x118)})]});}function B(_0x33fd97){const _0x86fb84=_0x201f75,{coordinator:_0x3063a7}=_0x33fd97;return l[_0x86fb84(0x14d)](l[_0x86fb84(0xe8)],{'children':[l[_0x86fb84(0xff)](_0x86fb84(0x185),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f[_0x86fb84(0x115)],{'onClick':()=>_0x3063a7['stopFollowing'](),'children':_0x86fb84(0xe6)})]});}function Y(_0x2756dc){const _0x42aff4=_0x201f75,{coordinator:_0x37a8fe}=_0x2756dc;return l[_0x42aff4(0x14d)](l[_0x42aff4(0xe8)],{'children':[l[_0x42aff4(0xff)](_0x42aff4(0x185),{'className':_0x42aff4(0x172),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x42aff4(0xff)](f[_0x42aff4(0x115)],{'variant':_0x42aff4(0x1ad),'onClick':()=>_0x37a8fe['startFollowing'](),'children':'Start\x20following'})]});}function Z(_0x562ce6){const _0x376361=_0x201f75,{coordinator:_0x4db36e}=_0x562ce6;return l[_0x376361(0x14d)](l[_0x376361(0xe8)],{'children':[l['jsx'](_0x376361(0x185),{'className':_0x376361(0x172),'children':_0x376361(0x101)}),l['jsx'](f[_0x376361(0x115)],{'variant':_0x376361(0x134),'onClick':()=>_0x4db36e[_0x376361(0x150)](),'children':_0x376361(0x175)})]});}function J(){const _0x54b1c2=_0x201f75;return l[_0x54b1c2(0xff)](l['Fragment'],{'children':_0x54b1c2(0x163)});}var K=Object['getOwnPropertyDescriptor'],z=(_0xb68ea7,_0x2e80be,_0x130155,_0x1dbbe6)=>{const _0x15dbc3=_0x201f75;for(var _0xad53e8=_0x1dbbe6>0x1?void 0x0:_0x1dbbe6?K(_0x2e80be,_0x130155):_0x2e80be,_0x25f4fa=_0xb68ea7[_0x15dbc3(0x1a0)]-0x1,_0x4348d7;_0x25f4fa>=0x0;_0x25f4fa--)(_0x4348d7=_0xb68ea7[_0x25f4fa])&&(_0xad53e8=_0x4348d7(_0xad53e8)||_0xad53e8);return _0xad53e8;},L=(_0x170e09,_0x3f2a06)=>(_0x38cc8e,_0x1a2ac9)=>_0x3f2a06(_0x38cc8e,_0x1a2ac9,_0x170e09);exports[_0x201f75(0x182)]=class extends o[_0x201f75(0x1a3)]{constructor(_0x367a0e,_0x105118){const _0x25991c=_0x201f75;super(),this[_0x25991c(0x1a1)]=_0x367a0e,this['_uiPartsService']=_0x105118,this[_0x25991c(0x146)]();}[_0x201f75(0x146)](){const _0x54ec2a=_0x201f75;this[_0x54ec2a(0x167)](this['_uiPartsService'][_0x54ec2a(0x112)](p['BuiltInUIPart'][_0x54ec2a(0xe5)],()=>p['connectInjector']($,this[_0x54ec2a(0x1a1)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x201f75(0x133)](o[_0x201f75(0x1aa)])),L(0x1,p[_0x201f75(0xee)])],exports['DesktopLiveShareController']);const Q=_0x201f75(0x195),w={};var X=Object[_0x201f75(0xf6)],ee=(_0x3f39d3,_0x1a439b,_0x559342,_0x4e98f6)=>{const _0x28964f=_0x201f75;for(var _0x4c377c=_0x4e98f6>0x1?void 0x0:_0x4e98f6?X(_0x1a439b,_0x559342):_0x1a439b,_0x19a5a3=_0x3f39d3[_0x28964f(0x1a0)]-0x1,_0x37470a;_0x19a5a3>=0x0;_0x19a5a3--)(_0x37470a=_0x3f39d3[_0x19a5a3])&&(_0x4c377c=_0x37470a(_0x4c377c)||_0x4c377c);return _0x4c377c;},te=(_0x21f85c,_0x4ef91a)=>(_0x5c2c2a,_0x324e9c)=>_0x4ef91a(_0x5c2c2a,_0x324e9c,_0x21f85c);let m=class extends o[_0x201f75(0x1a3)]{constructor(_0x128561){const _0x388ac6=_0x201f75;super(),this[_0x388ac6(0x165)]=_0x128561,this['_init']();}['_init'](){const _0x5f152a=_0x201f75;[D[_0x5f152a(0x120)]['id'],D[_0x5f152a(0x154)]['id'],C[_0x5f152a(0x174)]['id']]['forEach'](_0x4427c5=>{const _0x420ad0=_0x5f152a;this['disposeWithMe'](this[_0x420ad0(0x165)][_0x420ad0(0x17d)](_0x4427c5));});}};m=ee([te(0x0,o[_0x201f75(0x133)](E))],m);var ie=Object[_0x201f75(0x17f)],se=Object['getOwnPropertyDescriptor'],ne=(_0x2ad038,_0x24853a,_0x2957d3)=>_0x24853a in _0x2ad038?ie(_0x2ad038,_0x24853a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2957d3}):_0x2ad038[_0x24853a]=_0x2957d3,re=(_0x4295bd,_0xde5339,_0x5a869d,_0x434350)=>{for(var _0x51d220=_0x434350>0x1?void 0x0:_0x434350?se(_0xde5339,_0x5a869d):_0xde5339,_0x479409=_0x4295bd['length']-0x1,_0x131c12;_0x479409>=0x0;_0x479409--)(_0x131c12=_0x4295bd[_0x479409])&&(_0x51d220=_0x131c12(_0x51d220)||_0x51d220);return _0x51d220;},N=(_0x4ca367,_0x5162de)=>(_0x313e81,_0x23eed9)=>_0x5162de(_0x313e81,_0x23eed9,_0x4ca367),A=(_0x125e50,_0x29797f,_0x3bf37d)=>ne(_0x125e50,typeof _0x29797f!=_0x201f75(0x11a)?_0x29797f+'':_0x29797f,_0x3bf37d);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x201f75(0x181)]=class extends o[_0x201f75(0xdd)]{constructor(_0xa9f70c=w,_0x3eed14,_0x402d7f){const _0x5622a5=_0x201f75;super(),this[_0x5622a5(0x166)]=_0xa9f70c,this['_injector']=_0x3eed14,this[_0x5622a5(0x193)]=_0x402d7f;const {..._0x6ef8}=o[_0x5622a5(0xdc)]({},w,this[_0x5622a5(0x166)]);this[_0x5622a5(0x193)]['setConfig'](Q,_0x6ef8);}['onStarting'](){const _0x4da718=_0x201f75;o[_0x4da718(0xf0)](this[_0x4da718(0x1a1)],o[_0x4da718(0x16d)]([[E],[exports['LiveShareController']],[m],[exports[_0x4da718(0x182)]]],this[_0x4da718(0x166)][_0x4da718(0x10c)])),o[_0x4da718(0x10f)](this[_0x4da718(0x1a1)],[[m]]);}['onRendered'](){const _0x242ea0=_0x201f75;o[_0x242ea0(0x10f)](this[_0x242ea0(0x1a1)],[[exports[_0x242ea0(0x182)]]]);}},A(exports[_0x201f75(0x181)],_0x201f75(0x123),o[_0x201f75(0x19c)][_0x201f75(0x1a9)]),A(exports[_0x201f75(0x181)],'pluginName',oe),exports[_0x201f75(0x181)]=re([o[_0x201f75(0x12a)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x201f75(0x133)](o[_0x201f75(0x1aa)])),N(0x2,o[_0x201f75(0xec)])],exports[_0x201f75(0x181)]),exports[_0x201f75(0x184)]=$,exports[_0x201f75(0x179)]=E,exports['LiveShareStatus']=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x3249fb=_0x2170;(function(_0x10a74f,_0x526057){const _0x19bd46=_0x2170,_0x43cc28=_0x10a74f();while(!![]){try{const _0xd14469=parseInt(_0x19bd46(0xde))/0x1*(parseInt(_0x19bd46(0xdc))/0x2)+-parseInt(_0x19bd46(0xe4))/0x3*(parseInt(_0x19bd46(0xd2))/0x4)+parseInt(_0x19bd46(0xee))/0x5+parseInt(_0x19bd46(0xd4))/0x6*(parseInt(_0x19bd46(0xe2))/0x7)+parseInt(_0x19bd46(0xe8))/0x8+-parseInt(_0x19bd46(0xea))/0x9+parseInt(_0x19bd46(0xe9))/0xa*(-parseInt(_0x19bd46(0xe7))/0xb);if(_0xd14469===_0x526057)break;else _0x43cc28['push'](_0x43cc28['shift']());}catch(_0x325218){_0x43cc28['push'](_0x43cc28['shift']());}}}(_0x3c11,0x433ef));import{LiveShareController as _0x484bc1,LiveShareStatus as _0x4079c0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xe1e3ce}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x547e48}from'@univerjs/sheets';import{SetScrollOperation as _0x31898d}from'@univerjs/sheets-ui';import{FRange as _0x3cd2ba}from'@univerjs/sheets/facade';function _0x3c11(){const _0x584720=['startFollowing','getId','getLiveShareStatus','stopPresenting','IDLE','850ASSkSG','startRow','545lWZVcx','startPresenting','getLiveShareCoordinatorSync','extend','4599KEalXM','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2403VdKoSu','stopFollowing','syncExecuteCommand','1056tjHkeQ','3519784YqEQQR','55820MNNmXc','792873bIsnBS','_initialize','PRESENTING','LiveShareStatusEnum','1421785jaYElG','getUnitId','_injector','getStatus','get','tryStartPresenting','_commandService','getRenderById','2100toWqvD','No\x20active\x20workbook\x20found.','3324gsllmJ','getSheetId','getActiveWorkbook'];_0x3c11=function(){return _0x584720;};return _0x3c11();}import{FUniver as _0x4881ac,FEnum as _0x41be7b}from'@univerjs/core/facade';class I extends _0x3cd2ba{[_0x3249fb(0xeb)](_0x3b4562,_0x36111a,_0x458235,_0x446e4c,_0x35cf04){const _0x31fbce=_0x3249fb,_0x316322=_0x3b4562[_0x31fbce(0xce)](_0x484bc1),_0x548b26=_0x3b4562[_0x31fbce(0xce)](_0xe1e3ce),_0x327094=_0x36111a[_0x31fbce(0xef)](),_0x4882c1=_0x36111a['getActiveSheet'](),_0x589c11=_0x316322[_0x31fbce(0xe0)](_0x327094);(_0x589c11==null?void 0x0:_0x589c11[_0x31fbce(0xf1)]())!==_0x4079c0[_0x31fbce(0xec)]||(_0x458235[_0x31fbce(0xd5)]()!==_0x4882c1[_0x31fbce(0xd5)]()&&this[_0x31fbce(0xd0)]['executeCommand'](_0x547e48['id'],{'unitId':_0x327094,'subUnitId':_0x458235[_0x31fbce(0xd5)]()}),!_0x548b26[_0x31fbce(0xd1)](_0x327094))||_0x35cf04[_0x31fbce(0xe6)](_0x31898d['id'],{'unitId':_0x36111a[_0x31fbce(0xef)](),'sheetId':_0x458235[_0x31fbce(0xd5)](),'sheetViewStartRow':_0x446e4c[_0x31fbce(0xdd)],'sheetViewStartColumn':_0x446e4c['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3cd2ba[_0x3249fb(0xe1)](I);class m extends _0x4881ac{[_0x3249fb(0xd9)](){const _0x123d17=_0x3249fb;var _0x2d508e,_0x5e9f42;const _0x48b2af=this['_injector'][_0x123d17(0xce)](_0x484bc1),_0x5e8187=(_0x2d508e=this[_0x123d17(0xd6)]())==null?void 0x0:_0x2d508e[_0x123d17(0xd8)]();if(!_0x5e8187)throw new Error(_0x123d17(0xd3));const _0x5a87ba=_0x48b2af[_0x123d17(0xe0)](_0x5e8187);return(_0x5e9f42=_0x5a87ba==null?void 0x0:_0x5a87ba[_0x123d17(0xf1)]())!=null?_0x5e9f42:_0x4079c0[_0x123d17(0xdb)];}[_0x3249fb(0xd7)](){const _0x209ac7=_0x3249fb;var _0x579ea3;const _0x420c0c=this['_injector'][_0x209ac7(0xce)](_0x484bc1),_0x5238fe=(_0x579ea3=this[_0x209ac7(0xd6)]())==null?void 0x0:_0x579ea3[_0x209ac7(0xd8)]();if(!_0x5238fe)throw new Error(_0x209ac7(0xd3));const _0x1564a4=_0x420c0c['getLiveShareCoordinatorSync'](_0x5238fe);if(!_0x1564a4)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1564a4[_0x209ac7(0xd7)]();}[_0x3249fb(0xe5)](){const _0x1a5935=_0x3249fb;var _0x507f57;const _0x3c28ec=this[_0x1a5935(0xf0)][_0x1a5935(0xce)](_0x484bc1),_0x5f25aa=(_0x507f57=this[_0x1a5935(0xd6)]())==null?void 0x0:_0x507f57[_0x1a5935(0xd8)]();if(!_0x5f25aa)throw new Error(_0x1a5935(0xd3));const _0x420df3=_0x3c28ec[_0x1a5935(0xe0)](_0x5f25aa);if(!_0x420df3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x420df3[_0x1a5935(0xe5)]();}[_0x3249fb(0xdf)](){const _0x17b26b=_0x3249fb;var _0x4246cb;const _0x30f2ae=this[_0x17b26b(0xf0)]['get'](_0x484bc1),_0x4c0dfb=(_0x4246cb=this[_0x17b26b(0xd6)]())==null?void 0x0:_0x4246cb[_0x17b26b(0xd8)]();if(!_0x4c0dfb)throw new Error(_0x17b26b(0xd3));const _0x3a969f=_0x30f2ae[_0x17b26b(0xe0)](_0x4c0dfb);if(!_0x3a969f)throw new Error(_0x17b26b(0xe3));_0x3a969f[_0x17b26b(0xcf)]();}[_0x3249fb(0xda)](){const _0xdc195e=_0x3249fb;var _0x439dbe;const _0x13ce08=this[_0xdc195e(0xf0)][_0xdc195e(0xce)](_0x484bc1),_0x1948e1=(_0x439dbe=this[_0xdc195e(0xd6)]())==null?void 0x0:_0x439dbe[_0xdc195e(0xd8)]();if(!_0x1948e1)throw new Error(_0xdc195e(0xd3));const _0x2b2b0b=_0x13ce08['getLiveShareCoordinatorSync'](_0x1948e1);if(!_0x2b2b0b)throw new Error(_0xdc195e(0xe3));_0x2b2b0b[_0xdc195e(0xda)]();}}_0x4881ac[_0x3249fb(0xe1)](m);function _0x2170(_0x5cd3bc,_0x5b21b0){_0x5cd3bc=_0x5cd3bc-0xce;const _0x3c1141=_0x3c11();let _0x217094=_0x3c1141[_0x5cd3bc];return _0x217094;}class C extends _0x41be7b{get[_0x3249fb(0xed)](){return _0x4079c0;}}_0x41be7b['extend'](C);
1
+ const _0x2116a7=_0x43e3;(function(_0x260d3a,_0x2050ff){const _0x2b3ba9=_0x43e3,_0x5cb1c2=_0x260d3a();while(!![]){try{const _0x272beb=parseInt(_0x2b3ba9(0x1ac))/0x1*(parseInt(_0x2b3ba9(0x1ab))/0x2)+parseInt(_0x2b3ba9(0x1a3))/0x3*(parseInt(_0x2b3ba9(0x197))/0x4)+-parseInt(_0x2b3ba9(0x196))/0x5*(parseInt(_0x2b3ba9(0x1a7))/0x6)+-parseInt(_0x2b3ba9(0x1b0))/0x7*(-parseInt(_0x2b3ba9(0x1a6))/0x8)+parseInt(_0x2b3ba9(0x192))/0x9*(parseInt(_0x2b3ba9(0x1a9))/0xa)+-parseInt(_0x2b3ba9(0x189))/0xb*(parseInt(_0x2b3ba9(0x1af))/0xc)+parseInt(_0x2b3ba9(0x19e))/0xd*(parseInt(_0x2b3ba9(0x1a1))/0xe);if(_0x272beb===_0x2050ff)break;else _0x5cb1c2['push'](_0x5cb1c2['shift']());}catch(_0x2b5550){_0x5cb1c2['push'](_0x5cb1c2['shift']());}}}(_0x5b45,0x272cc));import{LiveShareController as _0x5e2da0,LiveShareStatus as _0x3d8ada}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x1b61f1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x52e888}from'@univerjs/sheets';function _0x5b45(){const _0x1557cb=['156WQFyMV','20867DyCOTT','165143ACawiX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','LiveShareStatusEnum','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','getId','stopPresenting','468TiYsoY','_initialize','IDLE','getLiveShareStatus','220uiTMWU','132DOXFXK','getActiveSheet','startColumn','stopFollowing','PRESENTING','syncExecuteCommand','get','247117PpQebI','getUnitId','extend','28KdYXiB','startFollowing','16431Fswqhs','tryStartPresenting','_commandService','328MgAiRG','5622ujsbUL','executeCommand','5450zmUWqj','getActiveWorkbook','2JUKDTo','27537xrgDQF','getStatus','_injector'];_0x5b45=function(){return _0x1557cb;};return _0x5b45();}import{SetScrollOperation as _0x504b14}from'@univerjs/sheets-ui';import{FRange as _0x577c9f}from'@univerjs/sheets/facade';import{FUniver as _0x4b8844,FEnum as _0x4cd64b}from'@univerjs/core/facade';class I extends _0x577c9f{[_0x2116a7(0x193)](_0x28aa31,_0x31777b,_0x2f5cbf,_0x254c79,_0x57dd46){const _0x2837a3=_0x2116a7,_0x9a820c=_0x28aa31[_0x2837a3(0x19d)](_0x5e2da0),_0x157427=_0x28aa31[_0x2837a3(0x19d)](_0x1b61f1),_0x225e51=_0x31777b[_0x2837a3(0x19f)](),_0x44dc49=_0x31777b[_0x2837a3(0x198)](),_0x2b12f4=_0x9a820c[_0x2837a3(0x18b)](_0x225e51);(_0x2b12f4==null?void 0x0:_0x2b12f4[_0x2837a3(0x1ad)]())!==_0x3d8ada[_0x2837a3(0x19b)]||(_0x2f5cbf[_0x2837a3(0x18d)]()!==_0x44dc49[_0x2837a3(0x18d)]()&&this[_0x2837a3(0x1a5)][_0x2837a3(0x1a8)](_0x52e888['id'],{'unitId':_0x225e51,'subUnitId':_0x2f5cbf[_0x2837a3(0x18d)]()}),!_0x157427['getRenderById'](_0x225e51))||_0x57dd46[_0x2837a3(0x19c)](_0x504b14['id'],{'unitId':_0x31777b[_0x2837a3(0x19f)](),'sheetId':_0x2f5cbf[_0x2837a3(0x18d)](),'sheetViewStartRow':_0x254c79[_0x2837a3(0x18f)],'sheetViewStartColumn':_0x254c79[_0x2837a3(0x199)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x43e3(_0x3f8704,_0x49cc8d){_0x3f8704=_0x3f8704-0x189;const _0x5b45c3=_0x5b45();let _0x43e33a=_0x5b45c3[_0x3f8704];return _0x43e33a;}_0x577c9f[_0x2116a7(0x1a0)](I);class m extends _0x4b8844{[_0x2116a7(0x195)](){const _0x4dfb7f=_0x2116a7;var _0x4c71d9,_0x2e2c5d;const _0x2bcb76=this[_0x4dfb7f(0x1ae)][_0x4dfb7f(0x19d)](_0x5e2da0),_0x2187d4=(_0x4c71d9=this[_0x4dfb7f(0x1aa)]())==null?void 0x0:_0x4c71d9[_0x4dfb7f(0x190)]();if(!_0x2187d4)throw new Error('No\x20active\x20workbook\x20found.');const _0x3abf2f=_0x2bcb76[_0x4dfb7f(0x18b)](_0x2187d4);return(_0x2e2c5d=_0x3abf2f==null?void 0x0:_0x3abf2f[_0x4dfb7f(0x1ad)]())!=null?_0x2e2c5d:_0x3d8ada[_0x4dfb7f(0x194)];}[_0x2116a7(0x1a2)](){const _0x2421d1=_0x2116a7;var _0x5aa892;const _0x2c9a37=this[_0x2421d1(0x1ae)][_0x2421d1(0x19d)](_0x5e2da0),_0x17245a=(_0x5aa892=this[_0x2421d1(0x1aa)]())==null?void 0x0:_0x5aa892['getId']();if(!_0x17245a)throw new Error('No\x20active\x20workbook\x20found.');const _0x14f44e=_0x2c9a37['getLiveShareCoordinatorSync'](_0x17245a);if(!_0x14f44e)throw new Error(_0x2421d1(0x18e));_0x14f44e[_0x2421d1(0x1a2)]();}[_0x2116a7(0x19a)](){const _0x22494a=_0x2116a7;var _0x1662cd;const _0x14d2c3=this['_injector'][_0x22494a(0x19d)](_0x5e2da0),_0x2ef79a=(_0x1662cd=this['getActiveWorkbook']())==null?void 0x0:_0x1662cd['getId']();if(!_0x2ef79a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4926d7=_0x14d2c3['getLiveShareCoordinatorSync'](_0x2ef79a);if(!_0x4926d7)throw new Error(_0x22494a(0x18e));_0x4926d7['stopFollowing']();}['startPresenting'](){const _0x8c1fe1=_0x2116a7;var _0x4e3a68;const _0x440ae1=this[_0x8c1fe1(0x1ae)]['get'](_0x5e2da0),_0x2976fe=(_0x4e3a68=this['getActiveWorkbook']())==null?void 0x0:_0x4e3a68[_0x8c1fe1(0x190)]();if(!_0x2976fe)throw new Error(_0x8c1fe1(0x18a));const _0x559cf7=_0x440ae1[_0x8c1fe1(0x18b)](_0x2976fe);if(!_0x559cf7)throw new Error(_0x8c1fe1(0x18e));_0x559cf7[_0x8c1fe1(0x1a4)]();}[_0x2116a7(0x191)](){const _0x425bce=_0x2116a7;var _0x40a555;const _0x4be973=this[_0x425bce(0x1ae)][_0x425bce(0x19d)](_0x5e2da0),_0x1f3111=(_0x40a555=this[_0x425bce(0x1aa)]())==null?void 0x0:_0x40a555['getId']();if(!_0x1f3111)throw new Error(_0x425bce(0x18a));const _0x13dbbe=_0x4be973[_0x425bce(0x18b)](_0x1f3111);if(!_0x13dbbe)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13dbbe['stopPresenting']();}}_0x4b8844[_0x2116a7(0x1a0)](m);class C extends _0x4cd64b{get[_0x2116a7(0x18c)](){return _0x3d8ada;}}_0x4cd64b[_0x2116a7(0x1a0)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x10aefb=_0x2234;(function(_0xacfaea,_0x3d75c1){const _0x3095fd=_0x2234,_0x2dc5f7=_0xacfaea();while(!![]){try{const _0x42fccc=-parseInt(_0x3095fd(0x125))/0x1+-parseInt(_0x3095fd(0x179))/0x2+-parseInt(_0x3095fd(0x1bf))/0x3+-parseInt(_0x3095fd(0x189))/0x4*(parseInt(_0x3095fd(0x19a))/0x5)+-parseInt(_0x3095fd(0x128))/0x6+-parseInt(_0x3095fd(0x1a9))/0x7*(parseInt(_0x3095fd(0x156))/0x8)+parseInt(_0x3095fd(0x14f))/0x9;if(_0x42fccc===_0x3d75c1)break;else _0x2dc5f7['push'](_0x2dc5f7['shift']());}catch(_0x3fb6e6){_0x2dc5f7['push'](_0x2dc5f7['shift']());}}}(_0x504e,0xc464d));var J=Object[_0x10aefb(0x15b)],K=(_0xf1c714,_0x521609,_0x355cdc)=>_0x521609 in _0xf1c714?J(_0xf1c714,_0x521609,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x355cdc}):_0xf1c714[_0x521609]=_0x355cdc,u=(_0x275fe7,_0x2a526a,_0xb29716)=>K(_0x275fe7,typeof _0x2a526a!=_0x10aefb(0x1b1)?_0x2a526a+'':_0x2a526a,_0xb29716);import{Disposable as _0x165f52,toDisposable as _0x28cbf9,IUniverInstanceService as _0x505d64,Inject as _0x51ede5,Injector as _0x283222,IConfigService as _0x17d354,ICommandService as _0x3078a9,RxDisposable as _0x462ef4,UniverInstanceType as _0x2c8348,DisposableCollection as _0xfb7cab,CommandType as _0x255c7c,DependentOn as _0x1dc4ba,Plugin as _0x5664ca,merge as _0x415150,registerDependencies as _0x318781,mergeOverrideWithDependencies as _0x5e4248,touchDependencies as _0x598de}from'@univerjs/core';import{useDependency as _0x41bfb9,useObservable as _0x44e544,IUIPartsService as _0x473057,BuiltInUIPart as _0x559f77,connectInjector as _0x4fc457}from'@univerjs/ui';import{jsx as _0x1e03ae,jsxs as _0x5804fa,Fragment as _0xeba514}from'react/jsx-runtime';import{Dropdown as _0x50eb55,clsx as _0x20cc62,Button as _0x4b8d62}from'@univerjs/design';import{useRef as _0x3f0520,createElement as _0x8187ed,forwardRef as _0x173be2,useState as _0x4720fa,useEffect as _0x300e4b}from'react';import{CollaborationEvent as _0x2a6a9c,parseProtocolChangeset as _0x144f33}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1729da,SessionStatus as _0x4e8ba1,UniverCollaborationClientPlugin as _0x468b80}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x37a505,SetWorksheetActiveOperation as _0xf537d1}from'@univerjs/sheets';import{BehaviorSubject as _0x155adf,Subject as _0x35f7dd}from'rxjs';import{takeUntil as _0x27507a,throttleTime as _0x5699c7}from'rxjs/operators';import{SetZoomRatioOperation as _0xb26f7e,SetScrollOperation as _0x286c00}from'@univerjs/sheets-ui';function k({ref:_0x4a4ff0,..._0x19d3d9}){const _0x68a408=_0x10aefb,{icon:_0x5cde6e,id:_0x3953dc,className:_0x429a3a,extend:_0x305c88,..._0x360212}=_0x19d3d9,_0x53bb89=('univerjs-icon\x20univerjs-icon-'+_0x3953dc+'\x20'+(_0x429a3a||''))[_0x68a408(0x192)](),_0x4a4ede=_0x3f0520('_'+Oe());return G(_0x5cde6e,''+_0x3953dc,{'defIds':_0x5cde6e[_0x68a408(0x12b)],'idSuffix':_0x4a4ede[_0x68a408(0x120)]},{'ref':_0x4a4ff0,'className':_0x53bb89,..._0x360212},_0x305c88);}function _0x504e(){const _0x1b21e1=['_startPresenting','sessionStatus$','_config','getUnitId','Stop\x20presenting','_fetchOperations','button','getValue','not-following','389776JAVOwH','dispose$','forEach','_configService','You\x27re\x20not\x20following\x20the\x20presenter','replace','startFollowing','stopFollowing','clear','UNIVER_UNKNOWN','sheet','UNIVER_SHEET','0\x200\x2017\x2017','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','attrs','631416fpVYBT','_startLiveShareCoordinator','type','map','_handleNewChangeSets','toString','shouldShareOperation','OPERATION','dispose','trim','_handleNewHost','PRESENTING','getCurrentTypeOfUnit$','then','currentColor','UniverIcon','unitId','5OrrFFb','univer-size-4','_beIdle','requireSession','stringify','stopPresenting','default','_sharedOperations','onCommandExecuted','idle','set','_handleOffline','_commandService','asObservable','_collabSessionService','77MGuBMM','status$','_handleOperation','use','_stopPresenting','getTypeOfUnitAdded$','Start\x20following','LIVESHARE_NEW_HOST','symbol','_collabSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','Present\x20this\x20document','_liveShareService','length','FOLLOWING','live-share-icon','NEW_CHANGESETS','executeCommand','_handleTerminate','div','delete','send','3340845PUsZzN','idSuffix','values','getLiveShareCoordinator','string','http://www.w3.org/2000/svg','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OFFLINE','presenter','getInitialStates','_handleOnline','current','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','none','xlink:href','getLiveShareCoordinatorSync','1556802tYjykT','displayName','_reporters','4167588urKmtY','_presenter','reverse','defIds','url(#$1','end','params','disposeWithMe','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','Start','LIVESHARE_OPERATION','evenodd','_init','LIVESHARE_TERMINATE','HEADER_MENU','You\x27are\x20offline.','pipe','_startFollowing','complete','1em','getConfig','registerComponent','registerSharedOperation','live-share.config','Stop\x20following','data','operations','You\x27re\x20following\x20the\x20presenter','_unitID','subscribe','memberID','children','_status','getMemberID','setConfig','following','presenting','substring','48274164cJDixg','_stopFollowing','ONLINE','IDLE','LiveShareIcon','init','_univerInstanceService','612080RtfrEk','mask','tryStartPresenting','add','You\x27re\x20presenting\x20the\x20document','defineProperty','next','_status$','path','_injector','has','_commandDisposable','from','includes','pluginName','fill','registerInitialStateReporter','NOT_FOLLOWING','event$','offline','entries','_entities','defs','getOwnPropertyDescriptor','tag','get'];_0x504e=function(){return _0x1b21e1;};return _0x504e();}function _0x2234(_0x5bfe64,_0x4296ca){_0x5bfe64=_0x5bfe64-0x11e;const _0x504e2f=_0x504e();let _0x223408=_0x504e2f[_0x5bfe64];return _0x223408;}function G(_0x515af5,_0x3be255,_0x435cb6,_0x57c446,_0x52c26a){const _0x52ce0d=_0x10aefb;return _0x8187ed(_0x515af5[_0x52ce0d(0x16e)],{'key':_0x3be255,...be(_0x515af5,_0x435cb6,_0x52c26a),..._0x57c446},(Ee(_0x515af5,_0x435cb6)[_0x52ce0d(0x148)]||[])['map']((_0x10ad8e,_0x4fff55)=>G(_0x10ad8e,_0x3be255+'-'+_0x515af5[_0x52ce0d(0x16e)]+'-'+_0x4fff55,_0x435cb6,void 0x0,_0x52c26a)));}function be(_0x262b6c,_0x4acaf5,_0x4e4bf0){const _0x545315=_0x10aefb,_0x2f630a={..._0x262b6c[_0x545315(0x188)]};_0x4e4bf0!=null&&_0x4e4bf0[_0x545315(0x131)]&&_0x2f630a[_0x545315(0x165)]===_0x545315(0x131)&&(_0x2f630a['fill']=_0x4e4bf0[_0x545315(0x131)]),_0x262b6c['tag']===_0x545315(0x157)&&_0x2f630a['id']&&(_0x2f630a['id']=_0x2f630a['id']+_0x4acaf5[_0x545315(0x1c0)]),Object[_0x545315(0x16a)](_0x2f630a)[_0x545315(0x17b)](([_0x1027d0,_0x2438a5])=>{const _0x3ded34=_0x545315;_0x1027d0==='mask'&&typeof _0x2438a5==_0x3ded34(0x1c3)&&(_0x2f630a[_0x1027d0]=_0x2438a5[_0x3ded34(0x17e)](/url\(#(.*)\)/,_0x3ded34(0x12c)+_0x4acaf5[_0x3ded34(0x1c0)]+')'));});const {defIds:_0x301fe2}=_0x4acaf5;return!_0x301fe2||_0x301fe2['length']===0x0||(_0x262b6c[_0x545315(0x16e)]===_0x545315(0x1ac)&&_0x2f630a[_0x545315(0x123)]&&(_0x2f630a[_0x545315(0x123)]=_0x2f630a[_0x545315(0x123)]+_0x4acaf5['idSuffix']),Object[_0x545315(0x16a)](_0x2f630a)[_0x545315(0x17b)](([_0xe63480,_0x367617])=>{const _0x432801=_0x545315;typeof _0x367617==_0x432801(0x1c3)&&(_0x2f630a[_0xe63480]=_0x367617[_0x432801(0x17e)](/url\(#(.*)\)/,_0x432801(0x12c)+_0x4acaf5[_0x432801(0x1c0)]+')'));})),_0x2f630a;}function Ee(_0x4f5d62,_0xd213a8){const _0x3a7802=_0x10aefb;var _0x1d7a7f;const {defIds:_0x6e5d94}=_0xd213a8;return!_0x6e5d94||_0x6e5d94['length']===0x0?_0x4f5d62:_0x4f5d62['tag']===_0x3a7802(0x16c)&&((_0x1d7a7f=_0x4f5d62['children'])!=null&&_0x1d7a7f['length'])?{..._0x4f5d62,'children':_0x4f5d62['children'][_0x3a7802(0x18c)](_0x176ab9=>typeof _0x176ab9[_0x3a7802(0x188)]['id']==_0x3a7802(0x1c3)&&_0x6e5d94&&_0x6e5d94[_0x3a7802(0x163)](_0x176ab9['attrs']['id'])?{..._0x176ab9,'attrs':{..._0x176ab9[_0x3a7802(0x188)],'id':_0x176ab9[_0x3a7802(0x188)]['id']+_0xd213a8[_0x3a7802(0x1c0)]}}:_0x176ab9)}:_0x4f5d62;}function Oe(){const _0x1d5640=_0x10aefb;return Math['random']()[_0x1d5640(0x18e)](0x24)[_0x1d5640(0x14e)](0x2,0x8);}k[_0x10aefb(0x126)]=_0x10aefb(0x198);const we={'tag':'svg','attrs':{'xmlns':_0x10aefb(0x1c4),'fill':_0x10aefb(0x122),'viewBox':_0x10aefb(0x185),'width':'1em','height':_0x10aefb(0x13c)},'children':[{'tag':_0x10aefb(0x15e),'attrs':{'fill':_0x10aefb(0x197),'d':_0x10aefb(0x121)}},{'tag':_0x10aefb(0x15e),'attrs':{'fill':_0x10aefb(0x197),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x10aefb(0x134),'clipRule':_0x10aefb(0x134)}}]},W=_0x173be2(function(_0x267513,_0x39e7e8){const _0x335199=_0x10aefb;return _0x8187ed(k,Object[_0x335199(0x1c5)]({},_0x267513,{'id':_0x335199(0x1b8),'ref':_0x39e7e8,'icon':we}));});W[_0x10aefb(0x126)]=_0x10aefb(0x153);class L extends _0x165f52{constructor(){const _0x220b48=_0x10aefb;super(...arguments),u(this,_0x220b48(0x1a1),new Set()),u(this,_0x220b48(0x127),new Set());}[_0x10aefb(0x13f)](_0x3f39be){const _0x2ddccd=_0x10aefb;return this['_sharedOperations']['add'](_0x3f39be),_0x28cbf9(()=>this[_0x2ddccd(0x1a1)][_0x2ddccd(0x1bd)](_0x3f39be));}[_0x10aefb(0x166)](_0x5794bb){const _0x47d8b=_0x10aefb;return this[_0x47d8b(0x127)][_0x47d8b(0x159)](_0x5794bb),_0x28cbf9(()=>this[_0x47d8b(0x127)][_0x47d8b(0x1bd)](_0x5794bb));}[_0x10aefb(0x18f)](_0x18aa87){const _0x4d1536=_0x10aefb;return this[_0x4d1536(0x1a1)][_0x4d1536(0x160)](_0x18aa87);}[_0x10aefb(0x11e)](_0x40eeea){const _0x23a177=_0x10aefb;return Array[_0x23a177(0x162)](this[_0x23a177(0x127)])[_0x23a177(0x18c)](_0x570e7a=>_0x570e7a(_0x40eeea));}}var Ne=Object[_0x10aefb(0x16d)],Y=(_0x2c8aba,_0x1bba26,_0x29daca,_0x43bd0b)=>{const _0x1fe13f=_0x10aefb;for(var _0x4e98f8=_0x43bd0b>0x1?void 0x0:_0x43bd0b?Ne(_0x1bba26,_0x29daca):_0x1bba26,_0x4b252e=_0x2c8aba[_0x1fe13f(0x1b6)]-0x1,_0x816bfc;_0x4b252e>=0x0;_0x4b252e--)(_0x816bfc=_0x2c8aba[_0x4b252e])&&(_0x4e98f8=_0x816bfc(_0x4e98f8)||_0x4e98f8);return _0x4e98f8;},_=(_0x3903cd,_0x5846f8)=>(_0x2853f8,_0x1fb7d3)=>_0x5846f8(_0x2853f8,_0x1fb7d3,_0x3903cd);let S=class extends _0x462ef4{constructor(_0x574a8d,_0x1eecf9,_0x250e17){const _0x12c2f1=_0x10aefb;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x574a8d,this[_0x12c2f1(0x15f)]=_0x1eecf9,this['_collabSessionService']=_0x250e17,this[_0x12c2f1(0x135)]());}async['getLiveShareCoordinator'](_0x37e96e){const _0x36c4d7=_0x10aefb;return this[_0x36c4d7(0x16b)][_0x36c4d7(0x160)](_0x37e96e)||await this[_0x36c4d7(0x18a)](_0x37e96e),this[_0x36c4d7(0x16b)][_0x36c4d7(0x16f)](_0x37e96e);}[_0x10aefb(0x124)](_0x9d55fa){const _0x36b846=_0x10aefb;var _0x15c225;return(_0x15c225=this[_0x36b846(0x16b)][_0x36b846(0x16f)](_0x9d55fa))!=null?_0x15c225:null;}[_0x10aefb(0x135)](){const _0x5ecf06=_0x10aefb;this[_0x5ecf06(0x155)][_0x5ecf06(0x1ae)](_0x2c8348['UNIVER_SHEET'])[_0x5ecf06(0x139)](_0x27507a(this[_0x5ecf06(0x17a)]))[_0x5ecf06(0x146)](async _0x826aec=>{const _0x43b44d=_0x5ecf06,_0x26dad8=_0x826aec['getUnitId']();this[_0x43b44d(0x16b)][_0x43b44d(0x160)](_0x26dad8)||this['_startLiveShareCoordinator'](_0x26dad8);}),this[_0x5ecf06(0x155)]['getTypeOfUnitDisposed$'](_0x2c8348[_0x5ecf06(0x184)])['pipe'](_0x27507a(this[_0x5ecf06(0x17a)]))['subscribe'](_0x399916=>{const _0x2a1fa3=_0x5ecf06,_0x203432=_0x399916['getUnitId'](),_0x2da15a=this['_entities']['get'](_0x203432);_0x2da15a==null||_0x2da15a[_0x2a1fa3(0x191)]();});}async['_startLiveShareCoordinator'](_0x22e2a8){const _0x8873b3=_0x10aefb,_0x36dd9d=await this[_0x8873b3(0x1a8)][_0x8873b3(0x19d)](_0x22e2a8),_0x1c7868=this[_0x8873b3(0x15f)]['createInstance'](N,_0x22e2a8,_0x36dd9d);return _0x1c7868[_0x8873b3(0x154)](),this['_entities'][_0x8873b3(0x1a4)](_0x22e2a8,_0x1c7868),_0x1c7868;}};S=Y([_(0x0,_0x505d64),_(0x1,_0x51ede5(_0x283222)),_(0x2,_0x51ede5(_0x1729da))],S);var c=(_0x26751b=>(_0x26751b[_0x10aefb(0x1c7)]=_0x10aefb(0x169),_0x26751b[_0x10aefb(0x152)]=_0x10aefb(0x1a3),_0x26751b[_0x10aefb(0x1b7)]=_0x10aefb(0x14c),_0x26751b[_0x10aefb(0x167)]=_0x10aefb(0x178),_0x26751b[_0x10aefb(0x194)]=_0x10aefb(0x14d),_0x26751b))(c||{});const Ce=_0x10aefb(0x130),De=0xc8;let N=class extends _0x462ef4{constructor(_0x49bac5,_0x3ad10a,_0x261df6,_0xcef25e,_0x266109){const _0x2ad4d4=_0x10aefb;super(),u(this,'_status$',new _0x155adf(_0x2ad4d4(0x1a3))),u(this,_0x2ad4d4(0x1aa),this[_0x2ad4d4(0x15d)][_0x2ad4d4(0x1a7)]()),u(this,_0x2ad4d4(0x135),!0x1),u(this,'_commandDisposable',null),u(this,_0x2ad4d4(0x129),null),(this['_unitID']=_0x49bac5,this[_0x2ad4d4(0x1b2)]=_0x3ad10a,this[_0x2ad4d4(0x17c)]=_0x261df6,this[_0x2ad4d4(0x1b5)]=_0xcef25e,this[_0x2ad4d4(0x1a6)]=_0x266109);}get[_0x10aefb(0x149)](){const _0x3b7de6=_0x10aefb;return this[_0x3b7de6(0x15d)][_0x3b7de6(0x177)]();}[_0x10aefb(0x191)](){const _0x34ffb2=_0x10aefb;var _0xcc9089;(_0xcc9089=this[_0x34ffb2(0x161)])==null||_0xcc9089['dispose'](),this[_0x34ffb2(0x15d)][_0x34ffb2(0x15c)](_0x34ffb2(0x1a3)),this[_0x34ffb2(0x15d)][_0x34ffb2(0x13b)]();}['getStatus'](){return this['_status'];}[_0x10aefb(0x154)](){const _0x3bf642=_0x10aefb;this[_0x3bf642(0x135)]||(this[_0x3bf642(0x135)]=!0x0,this[_0x3bf642(0x1b2)][_0x3bf642(0x171)]['pipe'](_0x27507a(this[_0x3bf642(0x17a)]))['subscribe'](_0x159a06=>{const _0x44f409=_0x3bf642;switch(_0x159a06){case _0x4e8ba1[_0x44f409(0x1c7)]:this[_0x44f409(0x1a5)]();break;case _0x4e8ba1[_0x44f409(0x151)]:this[_0x44f409(0x11f)]();break;}}),this[_0x3bf642(0x1b2)][_0x3bf642(0x168)][_0x3bf642(0x139)](_0x27507a(this[_0x3bf642(0x17a)]))[_0x3bf642(0x146)](_0x4673bf=>{const _0x34a9b4=_0x3bf642,{eventID:_0x2b0b23}=_0x4673bf;switch(_0x2b0b23){case _0x2a6a9c[_0x34a9b4(0x1b0)]:this[_0x34a9b4(0x193)](_0x4673bf);break;case _0x2a6a9c[_0x34a9b4(0x133)]:this[_0x34a9b4(0x1ab)](_0x4673bf);break;case _0x2a6a9c[_0x34a9b4(0x136)]:this[_0x34a9b4(0x1bb)]();break;case _0x2a6a9c[_0x34a9b4(0x1b9)]:this['_handleNewChangeSets'](_0x4673bf);break;}}));}[_0x10aefb(0x158)](){const _0x110d8b=_0x10aefb;this[_0x110d8b(0x1b2)][_0x110d8b(0x1be)]({'eventID':_0x2a6a9c['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x110d8b(0x1b2)][_0x110d8b(0x14a)]()}},this['_unitID']);}['stopPresenting'](){const _0x910881=_0x10aefb;this[_0x910881(0x149)]===_0x910881(0x14d)&&(this[_0x910881(0x15d)][_0x910881(0x15c)](_0x910881(0x1a3)),this[_0x910881(0x1b2)]['send']({'eventID':_0x2a6a9c[_0x910881(0x136)],'data':{'unitID':this[_0x910881(0x145)]}},this[_0x910881(0x145)]));}['startFollowing'](){const _0x146b2b=_0x10aefb;this[_0x146b2b(0x149)]===_0x146b2b(0x178)&&(this[_0x146b2b(0x15d)][_0x146b2b(0x15c)](_0x146b2b(0x14c)),this[_0x146b2b(0x13a)]());}[_0x10aefb(0x180)](){const _0x5367db=_0x10aefb;this[_0x5367db(0x149)]===_0x5367db(0x14c)&&this[_0x5367db(0x150)]();}[_0x10aefb(0x193)](_0x53ba97){const _0x245bbb=_0x10aefb,{presenter:_0x4fc3bd}=_0x53ba97['data'],_0x34d5fd=this[_0x245bbb(0x1b2)][_0x245bbb(0x14a)]();this['_presenter']=_0x4fc3bd,_0x4fc3bd===_0x34d5fd?(this[_0x245bbb(0x150)](),this[_0x245bbb(0x170)]()):this[_0x245bbb(0x149)]!=='not-following'&&(this[_0x245bbb(0x1ad)](),this[_0x245bbb(0x13a)]());}[_0x10aefb(0x175)](){const _0x2856ec=_0x10aefb,_0x52c87d={'eventID':_0x2a6a9c['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x2856ec(0x1be)](_0x52c87d,this[_0x2856ec(0x145)]);}[_0x10aefb(0x1bb)](){const _0x56a74a=_0x10aefb;this[_0x56a74a(0x129)]=null,this[_0x56a74a(0x149)]!==_0x56a74a(0x14d)&&this['_beIdle']();}[_0x10aefb(0x18d)](_0x25dd6b){const _0x22a482=_0x10aefb;if(this['_status']===_0x22a482(0x14c)&&this[_0x22a482(0x129)]===_0x25dd6b[_0x22a482(0x142)][_0x22a482(0x147)]){const _0x58d2ac=_0x144f33(_0x25dd6b[_0x22a482(0x142)])['mutations'][_0x22a482(0x12a)]()[_0x22a482(0x186)](_0x169019=>_0x169019['id']===_0x37a505['id']);if(_0x58d2ac){const _0x138e16=_0x58d2ac[_0x22a482(0x12e)][_0x22a482(0x199)],_0x5593c9=_0x58d2ac['params'][_0x22a482(0x183)]['id'];setTimeout(()=>{const _0x348313=_0x22a482;this['_commandService'][_0x348313(0x1ba)](_0xf537d1['id'],{'unitId':_0x138e16,'subUnitId':_0x5593c9},{'fromCollab':!0x0});});}}}[_0x10aefb(0x170)](){const _0x14a85b=_0x10aefb;this['_status$'][_0x14a85b(0x15c)](_0x14a85b(0x14d));const _0x3de789=new Map(),_0x28a2d9=this[_0x14a85b(0x161)]=new _0xfb7cab();_0x28a2d9[_0x14a85b(0x159)](_0x28cbf9(()=>{const _0x3940f9=_0x14a85b;_0x3de789[_0x3940f9(0x17b)](_0x3dff90=>_0x3dff90[_0x3940f9(0x13b)]()),_0x3de789[_0x3940f9(0x181)]();})),_0x28a2d9[_0x14a85b(0x159)](this[_0x14a85b(0x1a6)][_0x14a85b(0x1a2)](_0x2bd5f2=>{const _0x585535=_0x14a85b;var _0x2bee35;if(_0x2bd5f2[_0x585535(0x18b)]!==_0x255c7c[_0x585535(0x190)]||!this[_0x585535(0x1b5)][_0x585535(0x18f)](_0x2bd5f2['id']))return;const {id:_0x483326}=_0x2bd5f2;let _0x403432;_0x3de789['has'](_0x483326)?_0x403432=_0x3de789[_0x585535(0x16f)](_0x483326):(_0x403432=new _0x35f7dd(),_0x3de789[_0x585535(0x1a4)](_0x483326,_0x403432),_0x403432[_0x585535(0x139)](_0x5699c7((_0x2bee35=this[_0x585535(0x17c)][_0x585535(0x13d)](Ce))!=null?_0x2bee35:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3778c8=>{const _0x173b2b=_0x585535;this[_0x173b2b(0x1b2)]['send']({'eventID':_0x2a6a9c[_0x173b2b(0x133)],'data':{'unitID':this['_unitID'],'operations':{[_0x3778c8['id']]:{'id':_0x3778c8['id'],'params':JSON[_0x173b2b(0x19e)](_0x3778c8['params'])}}}},this[_0x173b2b(0x145)]);})),_0x403432[_0x585535(0x15c)](_0x2bd5f2);})),this[_0x14a85b(0x1b5)][_0x14a85b(0x11e)](this[_0x14a85b(0x145)])['forEach'](_0x13755e=>this[_0x14a85b(0x1b2)][_0x14a85b(0x1be)]({'eventID':_0x2a6a9c[_0x14a85b(0x133)],'data':{'unitID':this['_unitID'],'operations':{[_0x13755e['id']]:{'id':_0x13755e['id'],'params':JSON[_0x14a85b(0x19e)](_0x13755e[_0x14a85b(0x12e)])}}}},this[_0x14a85b(0x145)]));}[_0x10aefb(0x1ad)](){const _0xbc11db=_0x10aefb;var _0x9b2eec;this['_status$'][_0xbc11db(0x15c)]('idle'),(_0x9b2eec=this[_0xbc11db(0x161)])==null||_0x9b2eec['dispose'](),this[_0xbc11db(0x161)]=null;}[_0x10aefb(0x13a)](){const _0x1bce43=_0x10aefb;var _0x543414;(_0x543414=this['_commandDisposable'])==null||_0x543414[_0x1bce43(0x191)](),this[_0x1bce43(0x15d)][_0x1bce43(0x15c)](_0x1bce43(0x14c));}[_0x10aefb(0x19c)](){const _0xa897ed=_0x10aefb;var _0x5bc93d;this['_status$'][_0xa897ed(0x15c)](_0xa897ed(0x1a3)),(_0x5bc93d=this[_0xa897ed(0x161)])==null||_0x5bc93d[_0xa897ed(0x191)](),this['_commandDisposable']=null;}[_0x10aefb(0x150)](){const _0x12e002=_0x10aefb;var _0x1a27a5;this[_0x12e002(0x15d)][_0x12e002(0x15c)](_0x12e002(0x178)),(_0x1a27a5=this[_0x12e002(0x161)])==null||_0x1a27a5[_0x12e002(0x191)]();}[_0x10aefb(0x1ab)](_0x2f812a){const _0x441e07=_0x10aefb;if([_0x441e07(0x14d),'not-following',_0x441e07(0x169)][_0x441e07(0x163)](this[_0x441e07(0x149)])||!_0x2f812a['data'][_0x441e07(0x1c8)]||_0x2f812a[_0x441e07(0x142)]['presenter']===this[_0x441e07(0x1b2)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x4ab5f3=_0x2f812a['data'][_0x441e07(0x143)];Object[_0x441e07(0x1c1)](_0x4ab5f3)[_0x441e07(0x17b)](_0x94e3d4=>{const _0x514a88=_0x441e07;this[_0x514a88(0x1a6)][_0x514a88(0x1ba)](_0x94e3d4['id'],_0x94e3d4['params']?JSON['parse'](_0x94e3d4['params']):null,{'fromCollab':!0x0});});}[_0x10aefb(0x1a5)](){const _0x4ec906=_0x10aefb;var _0x5859ec;this['_status$']['next'](_0x4ec906(0x169)),(_0x5859ec=this['_commandDisposable'])==null||_0x5859ec['dispose']();}[_0x10aefb(0x11f)](){const _0x28181d=_0x10aefb;this[_0x28181d(0x15d)][_0x28181d(0x15c)](_0x28181d(0x1a3)),this[_0x28181d(0x175)]();}};N=Y([_(0x2,_0x17d354),_(0x3,_0x51ede5(L)),_(0x4,_0x3078a9)],N);function Le(){const _0x3d0cf9=_0x10aefb,_0x562c58=_0x41bfb9(S),_0x3b86ea=_0x41bfb9(_0x505d64),_0x559e07=_0x44e544(()=>_0x3b86ea[_0x3d0cf9(0x195)](_0x2c8348[_0x3d0cf9(0x184)]),void 0x0,!0x1,[]),[_0x377888,_0x89e06a]=_0x4720fa(null),[_0xde6605,_0x21da79]=_0x4720fa(c['IDLE']),_0x1f7426=_0x3f0520(null);return _0x300e4b(()=>(_0x559e07&&_0x562c58[_0x3d0cf9(0x1c2)](_0x559e07[_0x3d0cf9(0x173)]())[_0x3d0cf9(0x196)](_0x210eb8=>{const _0x2c5bc2=_0x3d0cf9;_0x89e06a(_0x210eb8),_0x1f7426[_0x2c5bc2(0x120)]=_0x210eb8[_0x2c5bc2(0x1aa)]['subscribe'](_0x234b71=>{_0x21da79(_0x234b71);});}),()=>{const _0x3d0479=_0x3d0cf9;var _0x24f99b;(_0x24f99b=_0x1f7426['current'])==null||_0x24f99b['unsubscribe'](),_0x1f7426[_0x3d0479(0x120)]=null;}),[_0x559e07,_0x562c58]),_0x377888?_0x1e03ae(_0x50eb55,{'align':_0x3d0cf9(0x12d),'disabled':_0xde6605===c[_0x3d0cf9(0x1c7)],'className':_0x3d0cf9(0x187),'overlay':_0x1e03ae(Re,{'status':_0xde6605,'coordinator':_0x377888}),'children':_0x1e03ae(_0x3d0cf9(0x176),{'className':_0x20cc62(_0x3d0cf9(0x1c6),{'univer-cursor-not-allowed':_0xde6605===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xde6605!==c['OFFLINE']}),'type':_0x3d0cf9(0x176),'children':_0x1e03ae(W,{'className':_0x3d0cf9(0x19b)})})}):null;}function Re(_0x31af46){const _0x49406c=_0x10aefb,{status:_0xa98c70,coordinator:_0x2b1db8}=_0x31af46;switch(_0xa98c70){case c['IDLE']:return _0x1e03ae($e,{'coordinator':_0x2b1db8});case c['FOLLOWING']:return _0x1e03ae(xe,{'coordinator':_0x2b1db8});case c['NOT_FOLLOWING']:return _0x1e03ae(Pe,{'coordinator':_0x2b1db8});case c[_0x49406c(0x1c7)]:return _0x1e03ae(Te,{});case c[_0x49406c(0x194)]:return _0x1e03ae(Ae,{'coordinator':_0x2b1db8});default:return null;}}function $e(_0x537474){const _0x2c9993=_0x10aefb,{coordinator:_0x21e950}=_0x537474;return _0x5804fa(_0xeba514,{'children':[_0x1e03ae(_0x2c9993(0x1bc),{'className':_0x2c9993(0x1b3),'children':_0x2c9993(0x1b4)}),_0x1e03ae(_0x4b8d62,{'onClick':()=>_0x21e950['tryStartPresenting'](),'children':_0x2c9993(0x132)})]});}function xe(_0x18c9ed){const _0x3bac27=_0x10aefb,{coordinator:_0x20a843}=_0x18c9ed;return _0x5804fa(_0xeba514,{'children':[_0x1e03ae(_0x3bac27(0x1bc),{'className':_0x3bac27(0x1b3),'children':_0x3bac27(0x144)}),_0x1e03ae(_0x4b8d62,{'onClick':()=>_0x20a843[_0x3bac27(0x180)](),'children':_0x3bac27(0x141)})]});}function Pe(_0xd99031){const _0x2f304c=_0x10aefb,{coordinator:_0xaa4766}=_0xd99031;return _0x5804fa(_0xeba514,{'children':[_0x1e03ae(_0x2f304c(0x1bc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2f304c(0x17d)}),_0x1e03ae(_0x4b8d62,{'variant':'text','onClick':()=>_0xaa4766[_0x2f304c(0x17f)](),'children':_0x2f304c(0x1af)})]});}function Ae(_0x144de8){const _0x328a85=_0x10aefb,{coordinator:_0x2aa018}=_0x144de8;return _0x5804fa(_0xeba514,{'children':[_0x1e03ae(_0x328a85(0x1bc),{'className':_0x328a85(0x1b3),'children':_0x328a85(0x15a)}),_0x1e03ae(_0x4b8d62,{'variant':_0x328a85(0x1a0),'onClick':()=>_0x2aa018[_0x328a85(0x19f)](),'children':_0x328a85(0x174)})]});}function Te(){const _0x396103=_0x10aefb;return _0x1e03ae(_0xeba514,{'children':_0x396103(0x138)});}var Fe=Object[_0x10aefb(0x16d)],He=(_0x4a5a62,_0x550fa5,_0xf3d514,_0x11c383)=>{for(var _0x183dc0=_0x11c383>0x1?void 0x0:_0x11c383?Fe(_0x550fa5,_0xf3d514):_0x550fa5,_0x5bf320=_0x4a5a62['length']-0x1,_0x3613d3;_0x5bf320>=0x0;_0x5bf320--)(_0x3613d3=_0x4a5a62[_0x5bf320])&&(_0x183dc0=_0x3613d3(_0x183dc0)||_0x183dc0);return _0x183dc0;},A=(_0x15ec99,_0x315240)=>(_0x307336,_0x32e643)=>_0x315240(_0x307336,_0x32e643,_0x15ec99);let m=class extends _0x165f52{constructor(_0x1a4bdc,_0x36d631){const _0x14d8bf=_0x10aefb;super(),this[_0x14d8bf(0x15f)]=_0x1a4bdc,this['_uiPartsService']=_0x36d631,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x5dd27a=_0x10aefb;this['disposeWithMe'](this['_uiPartsService'][_0x5dd27a(0x13e)](_0x559f77[_0x5dd27a(0x137)],()=>_0x4fc457(Le,this['_injector'])));}};m=He([A(0x0,_0x51ede5(_0x283222)),A(0x1,_0x473057)],m);const ye=_0x10aefb(0x140),T={};var Ue=Object[_0x10aefb(0x16d)],Ve=(_0xb8639,_0x47d16e,_0x5b53d3,_0x2634ec)=>{const _0x26ba71=_0x10aefb;for(var _0x4c9fa2=_0x2634ec>0x1?void 0x0:_0x2634ec?Ue(_0x47d16e,_0x5b53d3):_0x47d16e,_0x2e4f32=_0xb8639[_0x26ba71(0x1b6)]-0x1,_0x724207;_0x2e4f32>=0x0;_0x2e4f32--)(_0x724207=_0xb8639[_0x2e4f32])&&(_0x4c9fa2=_0x724207(_0x4c9fa2)||_0x4c9fa2);return _0x4c9fa2;},je=(_0x3819f1,_0x29b8dc)=>(_0xa9910f,_0x47cbcf)=>_0x29b8dc(_0xa9910f,_0x47cbcf,_0x3819f1);let I=class extends _0x165f52{constructor(_0x3c9ae0){const _0x5b139c=_0x10aefb;super(),this[_0x5b139c(0x1b5)]=_0x3c9ae0,this['_init']();}[_0x10aefb(0x135)](){const _0x1a693b=_0x10aefb;[_0xb26f7e['id'],_0x286c00['id'],_0xf537d1['id']][_0x1a693b(0x17b)](_0x5e7dd4=>{const _0x3a7739=_0x1a693b;this[_0x3a7739(0x12f)](this[_0x3a7739(0x1b5)][_0x3a7739(0x13f)](_0x5e7dd4));});}};I=Ve([je(0x0,_0x51ede5(L))],I);var Me=Object['defineProperty'],ke=Object[_0x10aefb(0x16d)],Ge=(_0x41ac05,_0x3b4290,_0x29b0bc)=>_0x3b4290 in _0x41ac05?Me(_0x41ac05,_0x3b4290,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29b0bc}):_0x41ac05[_0x3b4290]=_0x29b0bc,We=(_0x9fdeee,_0x19e171,_0x18dc77,_0x1cd6a2)=>{const _0x39b43d=_0x10aefb;for(var _0x158ad5=_0x1cd6a2>0x1?void 0x0:_0x1cd6a2?ke(_0x19e171,_0x18dc77):_0x19e171,_0x3252cb=_0x9fdeee[_0x39b43d(0x1b6)]-0x1,_0xdab865;_0x3252cb>=0x0;_0x3252cb--)(_0xdab865=_0x9fdeee[_0x3252cb])&&(_0x158ad5=_0xdab865(_0x158ad5)||_0x158ad5);return _0x158ad5;},F=(_0x3c43d7,_0xa33cd4)=>(_0x36fcc7,_0xaf86f6)=>_0xa33cd4(_0x36fcc7,_0xaf86f6,_0x3c43d7),B=(_0x36d2f,_0x596798,_0x17f32a)=>Ge(_0x36d2f,typeof _0x596798!=_0x10aefb(0x1b1)?_0x596798+'':_0x596798,_0x17f32a);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x5664ca{constructor(_0x3e7937=T,_0x4404f4,_0x517735){const _0x27aea9=_0x10aefb;super(),this[_0x27aea9(0x172)]=_0x3e7937,this[_0x27aea9(0x15f)]=_0x4404f4,this[_0x27aea9(0x17c)]=_0x517735;const {..._0x251eff}=_0x415150({},T,this[_0x27aea9(0x172)]);this[_0x27aea9(0x17c)][_0x27aea9(0x14b)](ye,_0x251eff);}['onStarting'](){const _0x1021ca=_0x10aefb;_0x318781(this[_0x1021ca(0x15f)],_0x5e4248([[L],[S],[I],[m]],this[_0x1021ca(0x172)]['override'])),_0x598de(this['_injector'],[[I]]);}['onRendered'](){const _0x550c2b=_0x10aefb;_0x598de(this[_0x550c2b(0x15f)],[[m]]);}};B(b,_0x10aefb(0x18b),_0x2c8348[_0x10aefb(0x182)]),B(b,_0x10aefb(0x164),Ye),b=We([_0x1dc4ba(_0x468b80),F(0x1,_0x51ede5(_0x283222)),F(0x2,_0x17d354)],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 _0x45a5ad=_0x2562;function _0x27b3(){const _0x3a5d32=['_commandService','presenting','OFFLINE','end','_stopPresenting','defineProperty','UNIVER_UNKNOWN','default','LIVESHARE_REQUEST_HOST','_configService','stopPresenting','_reporters','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','10HrhVdN','map','asObservable','_entities','UniverIcon','47555CKTJaQ','_collabSession','LiveShareIcon','NEW_CHANGESETS','16tUGsqN','path','tryStartPresenting','startFollowing','next','_status','OPERATION','getUnitId','type','1em','getLiveShareCoordinator','mask','195851kIafZS','assign','live-share.config','clear','_startLiveShareCoordinator','_fetchOperations','children','values','length','text','HEADER_MENU','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_TERMINATE','You\x27are\x20offline.','Stop\x20following','memberID','getLiveShareCoordinatorSync','displayName','fill','disposeWithMe','sessionStatus$','stringify','getOwnPropertyDescriptor','_commandDisposable','getStatus','965321KMOtGe','status$','delete','symbol','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','PRESENTING','Start\x20following','string','tag','init','event$','_handleOffline','substring','6ZLWFUQ','_handleTerminate','registerInitialStateReporter','SAME_OPERATION_SHARE_INTERVAL','_init','data','0\x200\x2017\x2017','find','parse','has','_startFollowing','includes','offline','_status$','_handleNewChangeSets','idSuffix','createInstance','add','mutations','46548OjzECT','You\x27re\x20not\x20following\x20the\x20presenter','_stopFollowing','executeCommand','_liveShareService','colorChannel1','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','LIVESHARE_OPERATION','defs','toString','IDLE','79968lJnVMP','currentColor','get','LIVESHARE_FETCH_OPERATIONS','xlink:href','url(#$1','_collabSessionService','use','_uiPartsService','LIVESHARE_NEW_HOST','not-following','_presenter','getConfig','dispose$','_startPresenting','pluginName','sheet','send','params','Start','6053949jvZqCQ','_handleOnline','registerSharedOperation','_handleOperation','button','forEach','unsubscribe','current','entries','replace','_config','set','random','univer-size-4','univerjs-icon\x20univerjs-icon-','_unitID','attrs','_injector','getMemberID','_handleNewHost','stopFollowing','requireSession','from','_beIdle','dispose','getTypeOfUnitAdded$','override','operations','defIds','subscribe','NOT_FOLLOWING','div','pipe','complete','registerComponent','You\x27re\x20presenting\x20the\x20document','_sharedOperations','presenter','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','idle','setConfig','UNIVER_SHEET','shouldShareOperation','2154952naXZCW','FOLLOWING'];_0x27b3=function(){return _0x3a5d32;};return _0x27b3();}(function(_0x5cfd63,_0x5105bd){const _0x4a6bbb=_0x2562,_0x127195=_0x5cfd63();while(!![]){try{const _0x47eeb8=-parseInt(_0x4a6bbb(0x23e))/0x1+parseInt(_0x4a6bbb(0x284))/0x2+-parseInt(_0x4a6bbb(0x279))/0x3*(-parseInt(_0x4a6bbb(0x232))/0x4)+-parseInt(_0x4a6bbb(0x22e))/0x5*(parseInt(_0x4a6bbb(0x266))/0x6)+-parseInt(_0x4a6bbb(0x258))/0x7+-parseInt(_0x4a6bbb(0x21a))/0x8+parseInt(_0x4a6bbb(0x298))/0x9*(parseInt(_0x4a6bbb(0x229))/0xa);if(_0x47eeb8===_0x5105bd)break;else _0x127195['push'](_0x127195['shift']());}catch(_0x437932){_0x127195['push'](_0x127195['shift']());}}}(_0x27b3,0x2791b));var J=Object[_0x45a5ad(0x221)],K=(_0x34e9b9,_0x55baf1,_0xda989c)=>_0x55baf1 in _0x34e9b9?J(_0x34e9b9,_0x55baf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xda989c}):_0x34e9b9[_0x55baf1]=_0xda989c,u=(_0x2e5bf1,_0x4c5009,_0x15489a)=>K(_0x2e5bf1,typeof _0x4c5009!=_0x45a5ad(0x25b)?_0x4c5009+'':_0x4c5009,_0x15489a);import{Disposable as _0x1cac0a,toDisposable as _0x1019de,IUniverInstanceService as _0x167ffb,Inject as _0x24ac51,Injector as _0x37149b,IConfigService as _0x243378,ICommandService as _0x2a6a6b,RxDisposable as _0x1a1fe5,UniverInstanceType as _0x483ab7,DisposableCollection as _0x2ff702,CommandType as _0x35447d,DependentOn as _0x13afb3,Plugin as _0x3bdc1a,merge as _0x468e5c,registerDependencies as _0x306653,mergeOverrideWithDependencies as _0x2e4e88,touchDependencies as _0xa73248}from'@univerjs/core';import{useDependency as _0x2f7790,useObservable as _0x5534e2,IUIPartsService as _0x1e1f8c,BuiltInUIPart as _0x264092,connectInjector as _0x286ddd}from'@univerjs/ui';import{jsx as _0x45dd85,jsxs as _0x55328e,Fragment as _0x481167}from'react/jsx-runtime';import{Dropdown as _0x4d4f60,clsx as _0x290227,Button as _0x5dff14}from'@univerjs/design';import{useRef as _0x38104f,createElement as _0x3dbe79,forwardRef as _0x4af31b,useState as _0x31ebce,useEffect as _0x1ed7eb}from'react';import{CollaborationEvent as _0x5d4a06,parseProtocolChangeset as _0x14b46d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x136282,SessionStatus as _0x10df1b,UniverCollaborationClientPlugin as _0x2cd52a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x345c11,SetWorksheetActiveOperation as _0x2270dd}from'@univerjs/sheets';import{BehaviorSubject as _0x5d1258,Subject as _0x2bf948}from'rxjs';import{takeUntil as _0x246d5b,throttleTime as _0x5b118b}from'rxjs/operators';import{SetZoomRatioOperation as _0x5cee16,SetScrollOperation as _0x3c74b3}from'@univerjs/sheets-ui';function k({ref:_0x121ea1,..._0x2c7bbe}){const _0x5add54=_0x45a5ad,{icon:_0x400cb9,id:_0x3abaed,className:_0x3346f1,extend:_0x55d7da,..._0x42e025}=_0x2c7bbe,_0x15b9f2=(_0x5add54(0x1fd)+_0x3abaed+'\x20'+(_0x3346f1||''))['trim'](),_0x28ad03=_0x38104f('_'+Oe());return G(_0x400cb9,''+_0x3abaed,{'defIds':_0x400cb9[_0x5add54(0x20b)],'idSuffix':_0x28ad03['current']},{'ref':_0x121ea1,'className':_0x15b9f2,..._0x42e025},_0x55d7da);}function G(_0x3ecbb0,_0x54af86,_0x4e0af7,_0x51bce8,_0x2a880d){const _0x481778=_0x45a5ad;return _0x3dbe79(_0x3ecbb0[_0x481778(0x261)],{'key':_0x54af86,...be(_0x3ecbb0,_0x4e0af7,_0x2a880d),..._0x51bce8},(Ee(_0x3ecbb0,_0x4e0af7)['children']||[])[_0x481778(0x22a)]((_0x2da3b3,_0x2ded7d)=>G(_0x2da3b3,_0x54af86+'-'+_0x3ecbb0[_0x481778(0x261)]+'-'+_0x2ded7d,_0x4e0af7,void 0x0,_0x2a880d)));}function be(_0x241a8f,_0x28a98d,_0xf51db3){const _0x42ac5f=_0x45a5ad,_0x407720={..._0x241a8f[_0x42ac5f(0x1ff)]};_0xf51db3!=null&&_0xf51db3[_0x42ac5f(0x27e)]&&_0x407720[_0x42ac5f(0x251)]===_0x42ac5f(0x27e)&&(_0x407720[_0x42ac5f(0x251)]=_0xf51db3[_0x42ac5f(0x27e)]),_0x241a8f[_0x42ac5f(0x261)]===_0x42ac5f(0x23d)&&_0x407720['id']&&(_0x407720['id']=_0x407720['id']+_0x28a98d[_0x42ac5f(0x275)]),Object[_0x42ac5f(0x1f7)](_0x407720)[_0x42ac5f(0x1f4)](([_0x286588,_0x572f24])=>{const _0x66e4dd=_0x42ac5f;_0x286588==='mask'&&typeof _0x572f24==_0x66e4dd(0x260)&&(_0x407720[_0x286588]=_0x572f24['replace'](/url\(#(.*)\)/,_0x66e4dd(0x289)+_0x28a98d[_0x66e4dd(0x275)]+')'));});const {defIds:_0x3e0d01}=_0x28a98d;return!_0x3e0d01||_0x3e0d01['length']===0x0||(_0x241a8f['tag']===_0x42ac5f(0x28b)&&_0x407720[_0x42ac5f(0x288)]&&(_0x407720[_0x42ac5f(0x288)]=_0x407720[_0x42ac5f(0x288)]+_0x28a98d['idSuffix']),Object['entries'](_0x407720)[_0x42ac5f(0x1f4)](([_0x4f814b,_0x250864])=>{const _0x37ebdb=_0x42ac5f;typeof _0x250864==_0x37ebdb(0x260)&&(_0x407720[_0x4f814b]=_0x250864[_0x37ebdb(0x1f8)](/url\(#(.*)\)/,_0x37ebdb(0x289)+_0x28a98d[_0x37ebdb(0x275)]+')'));})),_0x407720;}function Ee(_0x1425b5,_0x22aaba){const _0x21a12b=_0x45a5ad;var _0xc91c1f;const {defIds:_0x2c55e1}=_0x22aaba;return!_0x2c55e1||_0x2c55e1[_0x21a12b(0x246)]===0x0?_0x1425b5:_0x1425b5[_0x21a12b(0x261)]===_0x21a12b(0x281)&&((_0xc91c1f=_0x1425b5[_0x21a12b(0x244)])!=null&&_0xc91c1f['length'])?{..._0x1425b5,'children':_0x1425b5[_0x21a12b(0x244)][_0x21a12b(0x22a)](_0x3c26e7=>typeof _0x3c26e7[_0x21a12b(0x1ff)]['id']==_0x21a12b(0x260)&&_0x2c55e1&&_0x2c55e1[_0x21a12b(0x271)](_0x3c26e7[_0x21a12b(0x1ff)]['id'])?{..._0x3c26e7,'attrs':{..._0x3c26e7['attrs'],'id':_0x3c26e7[_0x21a12b(0x1ff)]['id']+_0x22aaba[_0x21a12b(0x275)]}}:_0x3c26e7)}:_0x1425b5;}function Oe(){const _0x515b06=_0x45a5ad;return Math[_0x515b06(0x1fb)]()[_0x515b06(0x282)](0x24)[_0x515b06(0x265)](0x2,0x8);}k[_0x45a5ad(0x250)]=_0x45a5ad(0x22d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x45a5ad(0x26c),'width':_0x45a5ad(0x23b),'height':_0x45a5ad(0x23b)},'children':[{'tag':_0x45a5ad(0x233),'attrs':{'fill':_0x45a5ad(0x285),'d':_0x45a5ad(0x215)}},{'tag':'path','attrs':{'fill':_0x45a5ad(0x285),'d':_0x45a5ad(0x27f),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x4af31b(function(_0x4cb11b,_0x3f7fa5){const _0x114107=_0x45a5ad;return _0x3dbe79(k,Object[_0x114107(0x23f)]({},_0x4cb11b,{'id':'live-share-icon','ref':_0x3f7fa5,'icon':we}));});W[_0x45a5ad(0x250)]=_0x45a5ad(0x230);class L extends _0x1cac0a{constructor(){const _0x4d8a42=_0x45a5ad;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4d8a42(0x227),new Set());}[_0x45a5ad(0x29a)](_0x2588a5){const _0x5191b7=_0x45a5ad;return this[_0x5191b7(0x213)]['add'](_0x2588a5),_0x1019de(()=>this[_0x5191b7(0x213)]['delete'](_0x2588a5));}[_0x45a5ad(0x268)](_0xd70e25){const _0x33dbbf=_0x45a5ad;return this['_reporters'][_0x33dbbf(0x277)](_0xd70e25),_0x1019de(()=>this[_0x33dbbf(0x227)][_0x33dbbf(0x25a)](_0xd70e25));}[_0x45a5ad(0x219)](_0x1c2b68){const _0x1e223f=_0x45a5ad;return this[_0x1e223f(0x213)][_0x1e223f(0x26f)](_0x1c2b68);}['getInitialStates'](_0x3b2e6d){const _0x4eb3a1=_0x45a5ad;return Array[_0x4eb3a1(0x205)](this[_0x4eb3a1(0x227)])[_0x4eb3a1(0x22a)](_0x425a91=>_0x425a91(_0x3b2e6d));}}var Ne=Object[_0x45a5ad(0x255)],Y=(_0x2ea9d8,_0x335e29,_0x19247f,_0x2ae7e6)=>{const _0x52cfd9=_0x45a5ad;for(var _0x3142d2=_0x2ae7e6>0x1?void 0x0:_0x2ae7e6?Ne(_0x335e29,_0x19247f):_0x335e29,_0x18eab1=_0x2ea9d8[_0x52cfd9(0x246)]-0x1,_0x12f355;_0x18eab1>=0x0;_0x18eab1--)(_0x12f355=_0x2ea9d8[_0x18eab1])&&(_0x3142d2=_0x12f355(_0x3142d2)||_0x3142d2);return _0x3142d2;},_=(_0x592ced,_0x17afc1)=>(_0x57235f,_0xae1439)=>_0x17afc1(_0x57235f,_0xae1439,_0x592ced);let S=class extends _0x1a1fe5{constructor(_0x12f268,_0x4bea31,_0x4f98b6){const _0x233c58=_0x45a5ad;super(),u(this,'_entities',new Map()),(this[_0x233c58(0x25d)]=_0x12f268,this['_injector']=_0x4bea31,this['_collabSessionService']=_0x4f98b6,this[_0x233c58(0x26a)]());}async[_0x45a5ad(0x23c)](_0x32532c){const _0x102269=_0x45a5ad;return this[_0x102269(0x22c)][_0x102269(0x26f)](_0x32532c)||await this[_0x102269(0x242)](_0x32532c),this['_entities'][_0x102269(0x286)](_0x32532c);}[_0x45a5ad(0x24f)](_0x421d63){var _0x5dc3e1;return(_0x5dc3e1=this['_entities']['get'](_0x421d63))!=null?_0x5dc3e1:null;}[_0x45a5ad(0x26a)](){const _0x266b3b=_0x45a5ad;this['_univerInstanceService'][_0x266b3b(0x208)](_0x483ab7[_0x266b3b(0x218)])[_0x266b3b(0x20f)](_0x246d5b(this[_0x266b3b(0x291)]))[_0x266b3b(0x20c)](async _0x455c62=>{const _0xb10134=_0x266b3b,_0x5d1f4e=_0x455c62[_0xb10134(0x239)]();this[_0xb10134(0x22c)][_0xb10134(0x26f)](_0x5d1f4e)||this[_0xb10134(0x242)](_0x5d1f4e);}),this[_0x266b3b(0x25d)]['getTypeOfUnitDisposed$'](_0x483ab7['UNIVER_SHEET'])[_0x266b3b(0x20f)](_0x246d5b(this[_0x266b3b(0x291)]))['subscribe'](_0x4216ff=>{const _0x1668d1=_0x266b3b,_0x397c55=_0x4216ff['getUnitId'](),_0x3c6947=this[_0x1668d1(0x22c)][_0x1668d1(0x286)](_0x397c55);_0x3c6947==null||_0x3c6947['dispose']();});}async['_startLiveShareCoordinator'](_0x1ded96){const _0x269870=_0x45a5ad,_0x5cee28=await this[_0x269870(0x28a)][_0x269870(0x204)](_0x1ded96),_0x238506=this[_0x269870(0x200)][_0x269870(0x276)](N,_0x1ded96,_0x5cee28);return _0x238506[_0x269870(0x262)](),this[_0x269870(0x22c)][_0x269870(0x1fa)](_0x1ded96,_0x238506),_0x238506;}};S=Y([_(0x0,_0x167ffb),_(0x1,_0x24ac51(_0x37149b)),_(0x2,_0x24ac51(_0x136282))],S);var c=(_0xfa79e=>(_0xfa79e['OFFLINE']='offline',_0xfa79e[_0x45a5ad(0x283)]=_0x45a5ad(0x216),_0xfa79e[_0x45a5ad(0x21b)]=_0x45a5ad(0x249),_0xfa79e[_0x45a5ad(0x20d)]=_0x45a5ad(0x28e),_0xfa79e[_0x45a5ad(0x25e)]=_0x45a5ad(0x21d),_0xfa79e))(c||{});const Ce=_0x45a5ad(0x269),De=0xc8;let N=class extends _0x1a1fe5{constructor(_0x1e3822,_0xa4c667,_0x3a4a1d,_0x5dd24c,_0x682e1c){const _0x4b8d24=_0x45a5ad;super(),u(this,'_status$',new _0x5d1258('idle')),u(this,'status$',this[_0x4b8d24(0x273)][_0x4b8d24(0x22b)]()),u(this,_0x4b8d24(0x26a),!0x1),u(this,_0x4b8d24(0x256),null),u(this,_0x4b8d24(0x28f),null),(this[_0x4b8d24(0x1fe)]=_0x1e3822,this[_0x4b8d24(0x22f)]=_0xa4c667,this[_0x4b8d24(0x225)]=_0x3a4a1d,this[_0x4b8d24(0x27d)]=_0x5dd24c,this['_commandService']=_0x682e1c);}get[_0x45a5ad(0x237)](){const _0x522d43=_0x45a5ad;return this[_0x522d43(0x273)]['getValue']();}['dispose'](){const _0x2cbb49=_0x45a5ad;var _0x2e2949;(_0x2e2949=this[_0x2cbb49(0x256)])==null||_0x2e2949[_0x2cbb49(0x207)](),this[_0x2cbb49(0x273)][_0x2cbb49(0x236)](_0x2cbb49(0x216)),this[_0x2cbb49(0x273)][_0x2cbb49(0x210)]();}[_0x45a5ad(0x257)](){const _0x49acf5=_0x45a5ad;return this[_0x49acf5(0x237)];}[_0x45a5ad(0x262)](){const _0x322ddb=_0x45a5ad;this['_init']||(this[_0x322ddb(0x26a)]=!0x0,this[_0x322ddb(0x22f)][_0x322ddb(0x253)]['pipe'](_0x246d5b(this['dispose$']))[_0x322ddb(0x20c)](_0xcde821=>{const _0x1976aa=_0x322ddb;switch(_0xcde821){case _0x10df1b[_0x1976aa(0x21e)]:this[_0x1976aa(0x264)]();break;case _0x10df1b['ONLINE']:this['_handleOnline']();break;}}),this[_0x322ddb(0x22f)][_0x322ddb(0x263)]['pipe'](_0x246d5b(this[_0x322ddb(0x291)]))[_0x322ddb(0x20c)](_0x58e3d5=>{const _0x1357b5=_0x322ddb,{eventID:_0x364022}=_0x58e3d5;switch(_0x364022){case _0x5d4a06[_0x1357b5(0x28d)]:this[_0x1357b5(0x202)](_0x58e3d5);break;case _0x5d4a06[_0x1357b5(0x280)]:this[_0x1357b5(0x1f2)](_0x58e3d5);break;case _0x5d4a06['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x5d4a06[_0x1357b5(0x231)]:this[_0x1357b5(0x274)](_0x58e3d5);break;}}));}[_0x45a5ad(0x234)](){const _0x545f53=_0x45a5ad;this['_collabSession'][_0x545f53(0x295)]({'eventID':_0x5d4a06[_0x545f53(0x224)],'data':{'unitID':this[_0x545f53(0x1fe)],'userID':this[_0x545f53(0x22f)]['getMemberID']()}},this['_unitID']);}[_0x45a5ad(0x226)](){const _0x2ab43d=_0x45a5ad;this[_0x2ab43d(0x237)]===_0x2ab43d(0x21d)&&(this[_0x2ab43d(0x273)]['next']('idle'),this[_0x2ab43d(0x22f)][_0x2ab43d(0x295)]({'eventID':_0x5d4a06[_0x2ab43d(0x24b)],'data':{'unitID':this[_0x2ab43d(0x1fe)]}},this[_0x2ab43d(0x1fe)]));}[_0x45a5ad(0x235)](){const _0x16a309=_0x45a5ad;this['_status']===_0x16a309(0x28e)&&(this[_0x16a309(0x273)][_0x16a309(0x236)](_0x16a309(0x249)),this[_0x16a309(0x270)]());}[_0x45a5ad(0x203)](){const _0x20cd01=_0x45a5ad;this[_0x20cd01(0x237)]===_0x20cd01(0x249)&&this[_0x20cd01(0x27b)]();}[_0x45a5ad(0x202)](_0x3e8f6a){const _0x5c29d3=_0x45a5ad,{presenter:_0x51238c}=_0x3e8f6a[_0x5c29d3(0x26b)],_0x3f8d14=this[_0x5c29d3(0x22f)][_0x5c29d3(0x201)]();this[_0x5c29d3(0x28f)]=_0x51238c,_0x51238c===_0x3f8d14?(this[_0x5c29d3(0x27b)](),this[_0x5c29d3(0x292)]()):this['_status']!=='not-following'&&(this[_0x5c29d3(0x220)](),this[_0x5c29d3(0x270)]());}['_fetchOperations'](){const _0x5838b7=_0x45a5ad,_0x566123={'eventID':_0x5d4a06[_0x5838b7(0x287)]};this[_0x5838b7(0x22f)][_0x5838b7(0x295)](_0x566123,this['_unitID']);}[_0x45a5ad(0x267)](){const _0x4b7328=_0x45a5ad;this[_0x4b7328(0x28f)]=null,this['_status']!==_0x4b7328(0x21d)&&this[_0x4b7328(0x206)]();}[_0x45a5ad(0x274)](_0x551516){const _0x391a86=_0x45a5ad;if(this[_0x391a86(0x237)]==='following'&&this[_0x391a86(0x28f)]===_0x551516[_0x391a86(0x26b)][_0x391a86(0x24e)]){const _0x3335db=_0x14b46d(_0x551516[_0x391a86(0x26b)])[_0x391a86(0x278)]['reverse']()[_0x391a86(0x26d)](_0xdae5fc=>_0xdae5fc['id']===_0x345c11['id']);if(_0x3335db){const _0x1c28a9=_0x3335db[_0x391a86(0x296)]['unitId'],_0x2d48ef=_0x3335db[_0x391a86(0x296)][_0x391a86(0x294)]['id'];setTimeout(()=>{const _0x3823f7=_0x391a86;this[_0x3823f7(0x21c)]['executeCommand'](_0x2270dd['id'],{'unitId':_0x1c28a9,'subUnitId':_0x2d48ef},{'fromCollab':!0x0});});}}}[_0x45a5ad(0x292)](){const _0x625866=_0x45a5ad;this[_0x625866(0x273)][_0x625866(0x236)](_0x625866(0x21d));const _0x557597=new Map(),_0x467e9f=this['_commandDisposable']=new _0x2ff702();_0x467e9f[_0x625866(0x277)](_0x1019de(()=>{const _0x3ac885=_0x625866;_0x557597[_0x3ac885(0x1f4)](_0x5f4303=>_0x5f4303[_0x3ac885(0x210)]()),_0x557597[_0x3ac885(0x241)]();})),_0x467e9f['add'](this[_0x625866(0x21c)]['onCommandExecuted'](_0xb0be6c=>{const _0x412d73=_0x625866;var _0x4c5529;if(_0xb0be6c['type']!==_0x35447d[_0x412d73(0x238)]||!this[_0x412d73(0x27d)][_0x412d73(0x219)](_0xb0be6c['id']))return;const {id:_0x2e903a}=_0xb0be6c;let _0x24f623;_0x557597[_0x412d73(0x26f)](_0x2e903a)?_0x24f623=_0x557597[_0x412d73(0x286)](_0x2e903a):(_0x24f623=new _0x2bf948(),_0x557597[_0x412d73(0x1fa)](_0x2e903a,_0x24f623),_0x24f623[_0x412d73(0x20f)](_0x5b118b((_0x4c5529=this['_configService'][_0x412d73(0x290)](Ce))!=null?_0x4c5529:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x412d73(0x20c)](_0x29c675=>{const _0x310c3b=_0x412d73;this[_0x310c3b(0x22f)][_0x310c3b(0x295)]({'eventID':_0x5d4a06[_0x310c3b(0x280)],'data':{'unitID':this[_0x310c3b(0x1fe)],'operations':{[_0x29c675['id']]:{'id':_0x29c675['id'],'params':JSON[_0x310c3b(0x254)](_0x29c675[_0x310c3b(0x296)])}}}},this[_0x310c3b(0x1fe)]);})),_0x24f623[_0x412d73(0x236)](_0xb0be6c);})),this[_0x625866(0x27d)]['getInitialStates'](this[_0x625866(0x1fe)])['forEach'](_0x5294a7=>this[_0x625866(0x22f)][_0x625866(0x295)]({'eventID':_0x5d4a06[_0x625866(0x280)],'data':{'unitID':this[_0x625866(0x1fe)],'operations':{[_0x5294a7['id']]:{'id':_0x5294a7['id'],'params':JSON[_0x625866(0x254)](_0x5294a7['params'])}}}},this[_0x625866(0x1fe)]));}[_0x45a5ad(0x220)](){const _0x47082b=_0x45a5ad;var _0x64c489;this[_0x47082b(0x273)][_0x47082b(0x236)](_0x47082b(0x216)),(_0x64c489=this[_0x47082b(0x256)])==null||_0x64c489[_0x47082b(0x207)](),this[_0x47082b(0x256)]=null;}[_0x45a5ad(0x270)](){const _0x448915=_0x45a5ad;var _0x3288f0;(_0x3288f0=this[_0x448915(0x256)])==null||_0x3288f0[_0x448915(0x207)](),this[_0x448915(0x273)][_0x448915(0x236)](_0x448915(0x249));}[_0x45a5ad(0x206)](){const _0x36ab19=_0x45a5ad;var _0x3963e4;this['_status$'][_0x36ab19(0x236)](_0x36ab19(0x216)),(_0x3963e4=this['_commandDisposable'])==null||_0x3963e4[_0x36ab19(0x207)](),this[_0x36ab19(0x256)]=null;}[_0x45a5ad(0x27b)](){const _0x1bcdff=_0x45a5ad;var _0x101146;this['_status$'][_0x1bcdff(0x236)](_0x1bcdff(0x28e)),(_0x101146=this[_0x1bcdff(0x256)])==null||_0x101146[_0x1bcdff(0x207)]();}['_handleOperation'](_0x2973d5){const _0x1de8a6=_0x45a5ad;if([_0x1de8a6(0x21d),_0x1de8a6(0x28e),_0x1de8a6(0x272)]['includes'](this[_0x1de8a6(0x237)])||!_0x2973d5[_0x1de8a6(0x26b)][_0x1de8a6(0x214)]||_0x2973d5['data'][_0x1de8a6(0x214)]===this[_0x1de8a6(0x22f)][_0x1de8a6(0x201)]())return;this[_0x1de8a6(0x237)]===_0x1de8a6(0x216)&&this[_0x1de8a6(0x270)]();const _0x4e33de=_0x2973d5[_0x1de8a6(0x26b)][_0x1de8a6(0x20a)];Object[_0x1de8a6(0x245)](_0x4e33de)[_0x1de8a6(0x1f4)](_0x31e699=>{const _0x16995a=_0x1de8a6;this[_0x16995a(0x21c)][_0x16995a(0x27c)](_0x31e699['id'],_0x31e699[_0x16995a(0x296)]?JSON[_0x16995a(0x26e)](_0x31e699[_0x16995a(0x296)]):null,{'fromCollab':!0x0});});}[_0x45a5ad(0x264)](){const _0x2910ab=_0x45a5ad;var _0x3c685d;this[_0x2910ab(0x273)][_0x2910ab(0x236)](_0x2910ab(0x272)),(_0x3c685d=this['_commandDisposable'])==null||_0x3c685d['dispose']();}[_0x45a5ad(0x299)](){const _0xf0fdf8=_0x45a5ad;this[_0xf0fdf8(0x273)]['next'](_0xf0fdf8(0x216)),this[_0xf0fdf8(0x243)]();}};N=Y([_(0x2,_0x243378),_(0x3,_0x24ac51(L)),_(0x4,_0x2a6a6b)],N);function Le(){const _0x1fa189=_0x45a5ad,_0x3be27a=_0x2f7790(S),_0x3b8289=_0x2f7790(_0x167ffb),_0x3fcceb=_0x5534e2(()=>_0x3b8289['getCurrentTypeOfUnit$'](_0x483ab7[_0x1fa189(0x218)]),void 0x0,!0x1,[]),[_0x3f87e0,_0x55f8f5]=_0x31ebce(null),[_0x20a899,_0x182251]=_0x31ebce(c['IDLE']),_0x4caf9c=_0x38104f(null);return _0x1ed7eb(()=>(_0x3fcceb&&_0x3be27a[_0x1fa189(0x23c)](_0x3fcceb['getUnitId']())['then'](_0x848fec=>{const _0x3b0e26=_0x1fa189;_0x55f8f5(_0x848fec),_0x4caf9c[_0x3b0e26(0x1f6)]=_0x848fec[_0x3b0e26(0x259)][_0x3b0e26(0x20c)](_0x145fa4=>{_0x182251(_0x145fa4);});}),()=>{const _0x5e3ec5=_0x1fa189;var _0x97553e;(_0x97553e=_0x4caf9c[_0x5e3ec5(0x1f6)])==null||_0x97553e[_0x5e3ec5(0x1f5)](),_0x4caf9c[_0x5e3ec5(0x1f6)]=null;}),[_0x3fcceb,_0x3be27a]),_0x3f87e0?_0x45dd85(_0x4d4f60,{'align':_0x1fa189(0x21f),'disabled':_0x20a899===c[_0x1fa189(0x21e)],'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':_0x45dd85(Re,{'status':_0x20a899,'coordinator':_0x3f87e0}),'children':_0x45dd85(_0x1fa189(0x1f3),{'className':_0x290227(_0x1fa189(0x228),{'univer-cursor-not-allowed':_0x20a899===c[_0x1fa189(0x21e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20a899!==c[_0x1fa189(0x21e)]}),'type':_0x1fa189(0x1f3),'children':_0x45dd85(W,{'className':_0x1fa189(0x1fc)})})}):null;}function Re(_0x139a0f){const _0x179ce1=_0x45a5ad,{status:_0x1b6c83,coordinator:_0x42179d}=_0x139a0f;switch(_0x1b6c83){case c[_0x179ce1(0x283)]:return _0x45dd85($e,{'coordinator':_0x42179d});case c['FOLLOWING']:return _0x45dd85(xe,{'coordinator':_0x42179d});case c[_0x179ce1(0x20d)]:return _0x45dd85(Pe,{'coordinator':_0x42179d});case c[_0x179ce1(0x21e)]:return _0x45dd85(Te,{});case c[_0x179ce1(0x25e)]:return _0x45dd85(Ae,{'coordinator':_0x42179d});default:return null;}}function _0x2562(_0x537bfb,_0x15b2e9){_0x537bfb=_0x537bfb-0x1f2;const _0x27b39c=_0x27b3();let _0x2562fb=_0x27b39c[_0x537bfb];return _0x2562fb;}function $e(_0x308557){const _0x1b576d=_0x45a5ad,{coordinator:_0x53bd43}=_0x308557;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x1b576d(0x20e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x45dd85(_0x5dff14,{'onClick':()=>_0x53bd43[_0x1b576d(0x234)](),'children':_0x1b576d(0x297)})]});}function xe(_0x140436){const _0x2f6de1=_0x45a5ad,{coordinator:_0x5b8e3a}=_0x140436;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x2f6de1(0x20e),{'className':_0x2f6de1(0x24a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x45dd85(_0x5dff14,{'onClick':()=>_0x5b8e3a[_0x2f6de1(0x203)](),'children':_0x2f6de1(0x24d)})]});}function Pe(_0x567fd4){const _0x5dca20=_0x45a5ad,{coordinator:_0x51e76f}=_0x567fd4;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x5dca20(0x20e),{'className':_0x5dca20(0x24a),'children':_0x5dca20(0x27a)}),_0x45dd85(_0x5dff14,{'variant':_0x5dca20(0x247),'onClick':()=>_0x51e76f['startFollowing'](),'children':_0x5dca20(0x25f)})]});}function Ae(_0x3d71e5){const _0x5f0694=_0x45a5ad,{coordinator:_0xb17ca7}=_0x3d71e5;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x5f0694(0x20e),{'className':_0x5f0694(0x24a),'children':_0x5f0694(0x212)}),_0x45dd85(_0x5dff14,{'variant':_0x5f0694(0x223),'onClick':()=>_0xb17ca7[_0x5f0694(0x226)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3b7ae6=_0x45a5ad;return _0x45dd85(_0x481167,{'children':_0x3b7ae6(0x24c)});}var Fe=Object[_0x45a5ad(0x255)],He=(_0x5b09be,_0x9f53e2,_0x29da23,_0x49a5c5)=>{const _0xea1fd8=_0x45a5ad;for(var _0x3eb7ea=_0x49a5c5>0x1?void 0x0:_0x49a5c5?Fe(_0x9f53e2,_0x29da23):_0x9f53e2,_0x42d386=_0x5b09be[_0xea1fd8(0x246)]-0x1,_0x372432;_0x42d386>=0x0;_0x42d386--)(_0x372432=_0x5b09be[_0x42d386])&&(_0x3eb7ea=_0x372432(_0x3eb7ea)||_0x3eb7ea);return _0x3eb7ea;},A=(_0x45fe5c,_0x11f2a2)=>(_0x1a7ba3,_0x138385)=>_0x11f2a2(_0x1a7ba3,_0x138385,_0x45fe5c);let m=class extends _0x1cac0a{constructor(_0x537918,_0x3b4dd9){const _0x37bbb0=_0x45a5ad;super(),this[_0x37bbb0(0x200)]=_0x537918,this[_0x37bbb0(0x28c)]=_0x3b4dd9,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4f383c=_0x45a5ad;this[_0x4f383c(0x252)](this[_0x4f383c(0x28c)][_0x4f383c(0x211)](_0x264092[_0x4f383c(0x248)],()=>_0x286ddd(Le,this[_0x4f383c(0x200)])));}};m=He([A(0x0,_0x24ac51(_0x37149b)),A(0x1,_0x1e1f8c)],m);const ye=_0x45a5ad(0x240),T={};var Ue=Object[_0x45a5ad(0x255)],Ve=(_0x5485d9,_0x32e11f,_0x1aceaf,_0xe1a468)=>{const _0x53f61f=_0x45a5ad;for(var _0x36a976=_0xe1a468>0x1?void 0x0:_0xe1a468?Ue(_0x32e11f,_0x1aceaf):_0x32e11f,_0x5c7034=_0x5485d9[_0x53f61f(0x246)]-0x1,_0x2e165a;_0x5c7034>=0x0;_0x5c7034--)(_0x2e165a=_0x5485d9[_0x5c7034])&&(_0x36a976=_0x2e165a(_0x36a976)||_0x36a976);return _0x36a976;},je=(_0xf7350c,_0x4918fd)=>(_0x4f3fa5,_0x6e9748)=>_0x4918fd(_0x4f3fa5,_0x6e9748,_0xf7350c);let I=class extends _0x1cac0a{constructor(_0x404c04){const _0x181dc3=_0x45a5ad;super(),this[_0x181dc3(0x27d)]=_0x404c04,this[_0x181dc3(0x26a)]();}[_0x45a5ad(0x26a)](){const _0x137add=_0x45a5ad;[_0x5cee16['id'],_0x3c74b3['id'],_0x2270dd['id']][_0x137add(0x1f4)](_0x278755=>{const _0x54ec9a=_0x137add;this[_0x54ec9a(0x252)](this['_liveShareService']['registerSharedOperation'](_0x278755));});}};I=Ve([je(0x0,_0x24ac51(L))],I);var Me=Object['defineProperty'],ke=Object[_0x45a5ad(0x255)],Ge=(_0x346ffa,_0x266af1,_0x48d2dd)=>_0x266af1 in _0x346ffa?Me(_0x346ffa,_0x266af1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48d2dd}):_0x346ffa[_0x266af1]=_0x48d2dd,We=(_0x22abef,_0x5f0cc5,_0x1c9b64,_0x4d949c)=>{const _0x3750a1=_0x45a5ad;for(var _0x5effe4=_0x4d949c>0x1?void 0x0:_0x4d949c?ke(_0x5f0cc5,_0x1c9b64):_0x5f0cc5,_0x866255=_0x22abef[_0x3750a1(0x246)]-0x1,_0x4e9538;_0x866255>=0x0;_0x866255--)(_0x4e9538=_0x22abef[_0x866255])&&(_0x5effe4=_0x4e9538(_0x5effe4)||_0x5effe4);return _0x5effe4;},F=(_0x3af2f1,_0x198a5b)=>(_0x5ea0fb,_0x4d6562)=>_0x198a5b(_0x5ea0fb,_0x4d6562,_0x3af2f1),B=(_0x120e5c,_0xf36370,_0x4e894e)=>Ge(_0x120e5c,typeof _0xf36370!=_0x45a5ad(0x25b)?_0xf36370+'':_0xf36370,_0x4e894e);const Ye=_0x45a5ad(0x25c);let b=class extends _0x3bdc1a{constructor(_0x35a3df=T,_0x40ea9c,_0xbfe962){const _0xe947ee=_0x45a5ad;super(),this['_config']=_0x35a3df,this[_0xe947ee(0x200)]=_0x40ea9c,this[_0xe947ee(0x225)]=_0xbfe962;const {..._0x4a7572}=_0x468e5c({},T,this[_0xe947ee(0x1f9)]);this[_0xe947ee(0x225)][_0xe947ee(0x217)](ye,_0x4a7572);}['onStarting'](){const _0x1a8ad7=_0x45a5ad;_0x306653(this[_0x1a8ad7(0x200)],_0x2e4e88([[L],[S],[I],[m]],this[_0x1a8ad7(0x1f9)][_0x1a8ad7(0x209)])),_0xa73248(this[_0x1a8ad7(0x200)],[[I]]);}['onRendered'](){const _0x3096e3=_0x45a5ad;_0xa73248(this[_0x3096e3(0x200)],[[m]]);}};B(b,_0x45a5ad(0x23a),_0x483ab7[_0x45a5ad(0x222)]),B(b,_0x45a5ad(0x293),Ye),b=We([_0x13afb3(_0x2cd52a),F(0x1,_0x24ac51(_0x37149b)),F(0x2,_0x243378)],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 _0x3249fb=_0x2170;(function(_0x10a74f,_0x526057){const _0x19bd46=_0x2170,_0x43cc28=_0x10a74f();while(!![]){try{const _0xd14469=parseInt(_0x19bd46(0xde))/0x1*(parseInt(_0x19bd46(0xdc))/0x2)+-parseInt(_0x19bd46(0xe4))/0x3*(parseInt(_0x19bd46(0xd2))/0x4)+parseInt(_0x19bd46(0xee))/0x5+parseInt(_0x19bd46(0xd4))/0x6*(parseInt(_0x19bd46(0xe2))/0x7)+parseInt(_0x19bd46(0xe8))/0x8+-parseInt(_0x19bd46(0xea))/0x9+parseInt(_0x19bd46(0xe9))/0xa*(-parseInt(_0x19bd46(0xe7))/0xb);if(_0xd14469===_0x526057)break;else _0x43cc28['push'](_0x43cc28['shift']());}catch(_0x325218){_0x43cc28['push'](_0x43cc28['shift']());}}}(_0x3c11,0x433ef));import{LiveShareController as _0x484bc1,LiveShareStatus as _0x4079c0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xe1e3ce}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x547e48}from'@univerjs/sheets';import{SetScrollOperation as _0x31898d}from'@univerjs/sheets-ui';import{FRange as _0x3cd2ba}from'@univerjs/sheets/facade';function _0x3c11(){const _0x584720=['startFollowing','getId','getLiveShareStatus','stopPresenting','IDLE','850ASSkSG','startRow','545lWZVcx','startPresenting','getLiveShareCoordinatorSync','extend','4599KEalXM','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2403VdKoSu','stopFollowing','syncExecuteCommand','1056tjHkeQ','3519784YqEQQR','55820MNNmXc','792873bIsnBS','_initialize','PRESENTING','LiveShareStatusEnum','1421785jaYElG','getUnitId','_injector','getStatus','get','tryStartPresenting','_commandService','getRenderById','2100toWqvD','No\x20active\x20workbook\x20found.','3324gsllmJ','getSheetId','getActiveWorkbook'];_0x3c11=function(){return _0x584720;};return _0x3c11();}import{FUniver as _0x4881ac,FEnum as _0x41be7b}from'@univerjs/core/facade';class I extends _0x3cd2ba{[_0x3249fb(0xeb)](_0x3b4562,_0x36111a,_0x458235,_0x446e4c,_0x35cf04){const _0x31fbce=_0x3249fb,_0x316322=_0x3b4562[_0x31fbce(0xce)](_0x484bc1),_0x548b26=_0x3b4562[_0x31fbce(0xce)](_0xe1e3ce),_0x327094=_0x36111a[_0x31fbce(0xef)](),_0x4882c1=_0x36111a['getActiveSheet'](),_0x589c11=_0x316322[_0x31fbce(0xe0)](_0x327094);(_0x589c11==null?void 0x0:_0x589c11[_0x31fbce(0xf1)]())!==_0x4079c0[_0x31fbce(0xec)]||(_0x458235[_0x31fbce(0xd5)]()!==_0x4882c1[_0x31fbce(0xd5)]()&&this[_0x31fbce(0xd0)]['executeCommand'](_0x547e48['id'],{'unitId':_0x327094,'subUnitId':_0x458235[_0x31fbce(0xd5)]()}),!_0x548b26[_0x31fbce(0xd1)](_0x327094))||_0x35cf04[_0x31fbce(0xe6)](_0x31898d['id'],{'unitId':_0x36111a[_0x31fbce(0xef)](),'sheetId':_0x458235[_0x31fbce(0xd5)](),'sheetViewStartRow':_0x446e4c[_0x31fbce(0xdd)],'sheetViewStartColumn':_0x446e4c['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3cd2ba[_0x3249fb(0xe1)](I);class m extends _0x4881ac{[_0x3249fb(0xd9)](){const _0x123d17=_0x3249fb;var _0x2d508e,_0x5e9f42;const _0x48b2af=this['_injector'][_0x123d17(0xce)](_0x484bc1),_0x5e8187=(_0x2d508e=this[_0x123d17(0xd6)]())==null?void 0x0:_0x2d508e[_0x123d17(0xd8)]();if(!_0x5e8187)throw new Error(_0x123d17(0xd3));const _0x5a87ba=_0x48b2af[_0x123d17(0xe0)](_0x5e8187);return(_0x5e9f42=_0x5a87ba==null?void 0x0:_0x5a87ba[_0x123d17(0xf1)]())!=null?_0x5e9f42:_0x4079c0[_0x123d17(0xdb)];}[_0x3249fb(0xd7)](){const _0x209ac7=_0x3249fb;var _0x579ea3;const _0x420c0c=this['_injector'][_0x209ac7(0xce)](_0x484bc1),_0x5238fe=(_0x579ea3=this[_0x209ac7(0xd6)]())==null?void 0x0:_0x579ea3[_0x209ac7(0xd8)]();if(!_0x5238fe)throw new Error(_0x209ac7(0xd3));const _0x1564a4=_0x420c0c['getLiveShareCoordinatorSync'](_0x5238fe);if(!_0x1564a4)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1564a4[_0x209ac7(0xd7)]();}[_0x3249fb(0xe5)](){const _0x1a5935=_0x3249fb;var _0x507f57;const _0x3c28ec=this[_0x1a5935(0xf0)][_0x1a5935(0xce)](_0x484bc1),_0x5f25aa=(_0x507f57=this[_0x1a5935(0xd6)]())==null?void 0x0:_0x507f57[_0x1a5935(0xd8)]();if(!_0x5f25aa)throw new Error(_0x1a5935(0xd3));const _0x420df3=_0x3c28ec[_0x1a5935(0xe0)](_0x5f25aa);if(!_0x420df3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x420df3[_0x1a5935(0xe5)]();}[_0x3249fb(0xdf)](){const _0x17b26b=_0x3249fb;var _0x4246cb;const _0x30f2ae=this[_0x17b26b(0xf0)]['get'](_0x484bc1),_0x4c0dfb=(_0x4246cb=this[_0x17b26b(0xd6)]())==null?void 0x0:_0x4246cb[_0x17b26b(0xd8)]();if(!_0x4c0dfb)throw new Error(_0x17b26b(0xd3));const _0x3a969f=_0x30f2ae[_0x17b26b(0xe0)](_0x4c0dfb);if(!_0x3a969f)throw new Error(_0x17b26b(0xe3));_0x3a969f[_0x17b26b(0xcf)]();}[_0x3249fb(0xda)](){const _0xdc195e=_0x3249fb;var _0x439dbe;const _0x13ce08=this[_0xdc195e(0xf0)][_0xdc195e(0xce)](_0x484bc1),_0x1948e1=(_0x439dbe=this[_0xdc195e(0xd6)]())==null?void 0x0:_0x439dbe[_0xdc195e(0xd8)]();if(!_0x1948e1)throw new Error(_0xdc195e(0xd3));const _0x2b2b0b=_0x13ce08['getLiveShareCoordinatorSync'](_0x1948e1);if(!_0x2b2b0b)throw new Error(_0xdc195e(0xe3));_0x2b2b0b[_0xdc195e(0xda)]();}}_0x4881ac[_0x3249fb(0xe1)](m);function _0x2170(_0x5cd3bc,_0x5b21b0){_0x5cd3bc=_0x5cd3bc-0xce;const _0x3c1141=_0x3c11();let _0x217094=_0x3c1141[_0x5cd3bc];return _0x217094;}class C extends _0x41be7b{get[_0x3249fb(0xed)](){return _0x4079c0;}}_0x41be7b['extend'](C);
1
+ const _0x2116a7=_0x43e3;(function(_0x260d3a,_0x2050ff){const _0x2b3ba9=_0x43e3,_0x5cb1c2=_0x260d3a();while(!![]){try{const _0x272beb=parseInt(_0x2b3ba9(0x1ac))/0x1*(parseInt(_0x2b3ba9(0x1ab))/0x2)+parseInt(_0x2b3ba9(0x1a3))/0x3*(parseInt(_0x2b3ba9(0x197))/0x4)+-parseInt(_0x2b3ba9(0x196))/0x5*(parseInt(_0x2b3ba9(0x1a7))/0x6)+-parseInt(_0x2b3ba9(0x1b0))/0x7*(-parseInt(_0x2b3ba9(0x1a6))/0x8)+parseInt(_0x2b3ba9(0x192))/0x9*(parseInt(_0x2b3ba9(0x1a9))/0xa)+-parseInt(_0x2b3ba9(0x189))/0xb*(parseInt(_0x2b3ba9(0x1af))/0xc)+parseInt(_0x2b3ba9(0x19e))/0xd*(parseInt(_0x2b3ba9(0x1a1))/0xe);if(_0x272beb===_0x2050ff)break;else _0x5cb1c2['push'](_0x5cb1c2['shift']());}catch(_0x2b5550){_0x5cb1c2['push'](_0x5cb1c2['shift']());}}}(_0x5b45,0x272cc));import{LiveShareController as _0x5e2da0,LiveShareStatus as _0x3d8ada}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x1b61f1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x52e888}from'@univerjs/sheets';function _0x5b45(){const _0x1557cb=['156WQFyMV','20867DyCOTT','165143ACawiX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','LiveShareStatusEnum','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','getId','stopPresenting','468TiYsoY','_initialize','IDLE','getLiveShareStatus','220uiTMWU','132DOXFXK','getActiveSheet','startColumn','stopFollowing','PRESENTING','syncExecuteCommand','get','247117PpQebI','getUnitId','extend','28KdYXiB','startFollowing','16431Fswqhs','tryStartPresenting','_commandService','328MgAiRG','5622ujsbUL','executeCommand','5450zmUWqj','getActiveWorkbook','2JUKDTo','27537xrgDQF','getStatus','_injector'];_0x5b45=function(){return _0x1557cb;};return _0x5b45();}import{SetScrollOperation as _0x504b14}from'@univerjs/sheets-ui';import{FRange as _0x577c9f}from'@univerjs/sheets/facade';import{FUniver as _0x4b8844,FEnum as _0x4cd64b}from'@univerjs/core/facade';class I extends _0x577c9f{[_0x2116a7(0x193)](_0x28aa31,_0x31777b,_0x2f5cbf,_0x254c79,_0x57dd46){const _0x2837a3=_0x2116a7,_0x9a820c=_0x28aa31[_0x2837a3(0x19d)](_0x5e2da0),_0x157427=_0x28aa31[_0x2837a3(0x19d)](_0x1b61f1),_0x225e51=_0x31777b[_0x2837a3(0x19f)](),_0x44dc49=_0x31777b[_0x2837a3(0x198)](),_0x2b12f4=_0x9a820c[_0x2837a3(0x18b)](_0x225e51);(_0x2b12f4==null?void 0x0:_0x2b12f4[_0x2837a3(0x1ad)]())!==_0x3d8ada[_0x2837a3(0x19b)]||(_0x2f5cbf[_0x2837a3(0x18d)]()!==_0x44dc49[_0x2837a3(0x18d)]()&&this[_0x2837a3(0x1a5)][_0x2837a3(0x1a8)](_0x52e888['id'],{'unitId':_0x225e51,'subUnitId':_0x2f5cbf[_0x2837a3(0x18d)]()}),!_0x157427['getRenderById'](_0x225e51))||_0x57dd46[_0x2837a3(0x19c)](_0x504b14['id'],{'unitId':_0x31777b[_0x2837a3(0x19f)](),'sheetId':_0x2f5cbf[_0x2837a3(0x18d)](),'sheetViewStartRow':_0x254c79[_0x2837a3(0x18f)],'sheetViewStartColumn':_0x254c79[_0x2837a3(0x199)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x43e3(_0x3f8704,_0x49cc8d){_0x3f8704=_0x3f8704-0x189;const _0x5b45c3=_0x5b45();let _0x43e33a=_0x5b45c3[_0x3f8704];return _0x43e33a;}_0x577c9f[_0x2116a7(0x1a0)](I);class m extends _0x4b8844{[_0x2116a7(0x195)](){const _0x4dfb7f=_0x2116a7;var _0x4c71d9,_0x2e2c5d;const _0x2bcb76=this[_0x4dfb7f(0x1ae)][_0x4dfb7f(0x19d)](_0x5e2da0),_0x2187d4=(_0x4c71d9=this[_0x4dfb7f(0x1aa)]())==null?void 0x0:_0x4c71d9[_0x4dfb7f(0x190)]();if(!_0x2187d4)throw new Error('No\x20active\x20workbook\x20found.');const _0x3abf2f=_0x2bcb76[_0x4dfb7f(0x18b)](_0x2187d4);return(_0x2e2c5d=_0x3abf2f==null?void 0x0:_0x3abf2f[_0x4dfb7f(0x1ad)]())!=null?_0x2e2c5d:_0x3d8ada[_0x4dfb7f(0x194)];}[_0x2116a7(0x1a2)](){const _0x2421d1=_0x2116a7;var _0x5aa892;const _0x2c9a37=this[_0x2421d1(0x1ae)][_0x2421d1(0x19d)](_0x5e2da0),_0x17245a=(_0x5aa892=this[_0x2421d1(0x1aa)]())==null?void 0x0:_0x5aa892['getId']();if(!_0x17245a)throw new Error('No\x20active\x20workbook\x20found.');const _0x14f44e=_0x2c9a37['getLiveShareCoordinatorSync'](_0x17245a);if(!_0x14f44e)throw new Error(_0x2421d1(0x18e));_0x14f44e[_0x2421d1(0x1a2)]();}[_0x2116a7(0x19a)](){const _0x22494a=_0x2116a7;var _0x1662cd;const _0x14d2c3=this['_injector'][_0x22494a(0x19d)](_0x5e2da0),_0x2ef79a=(_0x1662cd=this['getActiveWorkbook']())==null?void 0x0:_0x1662cd['getId']();if(!_0x2ef79a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4926d7=_0x14d2c3['getLiveShareCoordinatorSync'](_0x2ef79a);if(!_0x4926d7)throw new Error(_0x22494a(0x18e));_0x4926d7['stopFollowing']();}['startPresenting'](){const _0x8c1fe1=_0x2116a7;var _0x4e3a68;const _0x440ae1=this[_0x8c1fe1(0x1ae)]['get'](_0x5e2da0),_0x2976fe=(_0x4e3a68=this['getActiveWorkbook']())==null?void 0x0:_0x4e3a68[_0x8c1fe1(0x190)]();if(!_0x2976fe)throw new Error(_0x8c1fe1(0x18a));const _0x559cf7=_0x440ae1[_0x8c1fe1(0x18b)](_0x2976fe);if(!_0x559cf7)throw new Error(_0x8c1fe1(0x18e));_0x559cf7[_0x8c1fe1(0x1a4)]();}[_0x2116a7(0x191)](){const _0x425bce=_0x2116a7;var _0x40a555;const _0x4be973=this[_0x425bce(0x1ae)][_0x425bce(0x19d)](_0x5e2da0),_0x1f3111=(_0x40a555=this[_0x425bce(0x1aa)]())==null?void 0x0:_0x40a555['getId']();if(!_0x1f3111)throw new Error(_0x425bce(0x18a));const _0x13dbbe=_0x4be973[_0x425bce(0x18b)](_0x1f3111);if(!_0x13dbbe)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13dbbe['stopPresenting']();}}_0x4b8844[_0x2116a7(0x1a0)](m);class C extends _0x4cd64b{get[_0x2116a7(0x18c)](){return _0x3d8ada;}}_0x4cd64b[_0x2116a7(0x1a0)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x10aefb=_0x2234;(function(_0xacfaea,_0x3d75c1){const _0x3095fd=_0x2234,_0x2dc5f7=_0xacfaea();while(!![]){try{const _0x42fccc=-parseInt(_0x3095fd(0x125))/0x1+-parseInt(_0x3095fd(0x179))/0x2+-parseInt(_0x3095fd(0x1bf))/0x3+-parseInt(_0x3095fd(0x189))/0x4*(parseInt(_0x3095fd(0x19a))/0x5)+-parseInt(_0x3095fd(0x128))/0x6+-parseInt(_0x3095fd(0x1a9))/0x7*(parseInt(_0x3095fd(0x156))/0x8)+parseInt(_0x3095fd(0x14f))/0x9;if(_0x42fccc===_0x3d75c1)break;else _0x2dc5f7['push'](_0x2dc5f7['shift']());}catch(_0x3fb6e6){_0x2dc5f7['push'](_0x2dc5f7['shift']());}}}(_0x504e,0xc464d));var J=Object[_0x10aefb(0x15b)],K=(_0xf1c714,_0x521609,_0x355cdc)=>_0x521609 in _0xf1c714?J(_0xf1c714,_0x521609,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x355cdc}):_0xf1c714[_0x521609]=_0x355cdc,u=(_0x275fe7,_0x2a526a,_0xb29716)=>K(_0x275fe7,typeof _0x2a526a!=_0x10aefb(0x1b1)?_0x2a526a+'':_0x2a526a,_0xb29716);import{Disposable as _0x165f52,toDisposable as _0x28cbf9,IUniverInstanceService as _0x505d64,Inject as _0x51ede5,Injector as _0x283222,IConfigService as _0x17d354,ICommandService as _0x3078a9,RxDisposable as _0x462ef4,UniverInstanceType as _0x2c8348,DisposableCollection as _0xfb7cab,CommandType as _0x255c7c,DependentOn as _0x1dc4ba,Plugin as _0x5664ca,merge as _0x415150,registerDependencies as _0x318781,mergeOverrideWithDependencies as _0x5e4248,touchDependencies as _0x598de}from'@univerjs/core';import{useDependency as _0x41bfb9,useObservable as _0x44e544,IUIPartsService as _0x473057,BuiltInUIPart as _0x559f77,connectInjector as _0x4fc457}from'@univerjs/ui';import{jsx as _0x1e03ae,jsxs as _0x5804fa,Fragment as _0xeba514}from'react/jsx-runtime';import{Dropdown as _0x50eb55,clsx as _0x20cc62,Button as _0x4b8d62}from'@univerjs/design';import{useRef as _0x3f0520,createElement as _0x8187ed,forwardRef as _0x173be2,useState as _0x4720fa,useEffect as _0x300e4b}from'react';import{CollaborationEvent as _0x2a6a9c,parseProtocolChangeset as _0x144f33}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1729da,SessionStatus as _0x4e8ba1,UniverCollaborationClientPlugin as _0x468b80}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x37a505,SetWorksheetActiveOperation as _0xf537d1}from'@univerjs/sheets';import{BehaviorSubject as _0x155adf,Subject as _0x35f7dd}from'rxjs';import{takeUntil as _0x27507a,throttleTime as _0x5699c7}from'rxjs/operators';import{SetZoomRatioOperation as _0xb26f7e,SetScrollOperation as _0x286c00}from'@univerjs/sheets-ui';function k({ref:_0x4a4ff0,..._0x19d3d9}){const _0x68a408=_0x10aefb,{icon:_0x5cde6e,id:_0x3953dc,className:_0x429a3a,extend:_0x305c88,..._0x360212}=_0x19d3d9,_0x53bb89=('univerjs-icon\x20univerjs-icon-'+_0x3953dc+'\x20'+(_0x429a3a||''))[_0x68a408(0x192)](),_0x4a4ede=_0x3f0520('_'+Oe());return G(_0x5cde6e,''+_0x3953dc,{'defIds':_0x5cde6e[_0x68a408(0x12b)],'idSuffix':_0x4a4ede[_0x68a408(0x120)]},{'ref':_0x4a4ff0,'className':_0x53bb89,..._0x360212},_0x305c88);}function _0x504e(){const _0x1b21e1=['_startPresenting','sessionStatus$','_config','getUnitId','Stop\x20presenting','_fetchOperations','button','getValue','not-following','389776JAVOwH','dispose$','forEach','_configService','You\x27re\x20not\x20following\x20the\x20presenter','replace','startFollowing','stopFollowing','clear','UNIVER_UNKNOWN','sheet','UNIVER_SHEET','0\x200\x2017\x2017','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','attrs','631416fpVYBT','_startLiveShareCoordinator','type','map','_handleNewChangeSets','toString','shouldShareOperation','OPERATION','dispose','trim','_handleNewHost','PRESENTING','getCurrentTypeOfUnit$','then','currentColor','UniverIcon','unitId','5OrrFFb','univer-size-4','_beIdle','requireSession','stringify','stopPresenting','default','_sharedOperations','onCommandExecuted','idle','set','_handleOffline','_commandService','asObservable','_collabSessionService','77MGuBMM','status$','_handleOperation','use','_stopPresenting','getTypeOfUnitAdded$','Start\x20following','LIVESHARE_NEW_HOST','symbol','_collabSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','Present\x20this\x20document','_liveShareService','length','FOLLOWING','live-share-icon','NEW_CHANGESETS','executeCommand','_handleTerminate','div','delete','send','3340845PUsZzN','idSuffix','values','getLiveShareCoordinator','string','http://www.w3.org/2000/svg','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OFFLINE','presenter','getInitialStates','_handleOnline','current','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','none','xlink:href','getLiveShareCoordinatorSync','1556802tYjykT','displayName','_reporters','4167588urKmtY','_presenter','reverse','defIds','url(#$1','end','params','disposeWithMe','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','Start','LIVESHARE_OPERATION','evenodd','_init','LIVESHARE_TERMINATE','HEADER_MENU','You\x27are\x20offline.','pipe','_startFollowing','complete','1em','getConfig','registerComponent','registerSharedOperation','live-share.config','Stop\x20following','data','operations','You\x27re\x20following\x20the\x20presenter','_unitID','subscribe','memberID','children','_status','getMemberID','setConfig','following','presenting','substring','48274164cJDixg','_stopFollowing','ONLINE','IDLE','LiveShareIcon','init','_univerInstanceService','612080RtfrEk','mask','tryStartPresenting','add','You\x27re\x20presenting\x20the\x20document','defineProperty','next','_status$','path','_injector','has','_commandDisposable','from','includes','pluginName','fill','registerInitialStateReporter','NOT_FOLLOWING','event$','offline','entries','_entities','defs','getOwnPropertyDescriptor','tag','get'];_0x504e=function(){return _0x1b21e1;};return _0x504e();}function _0x2234(_0x5bfe64,_0x4296ca){_0x5bfe64=_0x5bfe64-0x11e;const _0x504e2f=_0x504e();let _0x223408=_0x504e2f[_0x5bfe64];return _0x223408;}function G(_0x515af5,_0x3be255,_0x435cb6,_0x57c446,_0x52c26a){const _0x52ce0d=_0x10aefb;return _0x8187ed(_0x515af5[_0x52ce0d(0x16e)],{'key':_0x3be255,...be(_0x515af5,_0x435cb6,_0x52c26a),..._0x57c446},(Ee(_0x515af5,_0x435cb6)[_0x52ce0d(0x148)]||[])['map']((_0x10ad8e,_0x4fff55)=>G(_0x10ad8e,_0x3be255+'-'+_0x515af5[_0x52ce0d(0x16e)]+'-'+_0x4fff55,_0x435cb6,void 0x0,_0x52c26a)));}function be(_0x262b6c,_0x4acaf5,_0x4e4bf0){const _0x545315=_0x10aefb,_0x2f630a={..._0x262b6c[_0x545315(0x188)]};_0x4e4bf0!=null&&_0x4e4bf0[_0x545315(0x131)]&&_0x2f630a[_0x545315(0x165)]===_0x545315(0x131)&&(_0x2f630a['fill']=_0x4e4bf0[_0x545315(0x131)]),_0x262b6c['tag']===_0x545315(0x157)&&_0x2f630a['id']&&(_0x2f630a['id']=_0x2f630a['id']+_0x4acaf5[_0x545315(0x1c0)]),Object[_0x545315(0x16a)](_0x2f630a)[_0x545315(0x17b)](([_0x1027d0,_0x2438a5])=>{const _0x3ded34=_0x545315;_0x1027d0==='mask'&&typeof _0x2438a5==_0x3ded34(0x1c3)&&(_0x2f630a[_0x1027d0]=_0x2438a5[_0x3ded34(0x17e)](/url\(#(.*)\)/,_0x3ded34(0x12c)+_0x4acaf5[_0x3ded34(0x1c0)]+')'));});const {defIds:_0x301fe2}=_0x4acaf5;return!_0x301fe2||_0x301fe2['length']===0x0||(_0x262b6c[_0x545315(0x16e)]===_0x545315(0x1ac)&&_0x2f630a[_0x545315(0x123)]&&(_0x2f630a[_0x545315(0x123)]=_0x2f630a[_0x545315(0x123)]+_0x4acaf5['idSuffix']),Object[_0x545315(0x16a)](_0x2f630a)[_0x545315(0x17b)](([_0xe63480,_0x367617])=>{const _0x432801=_0x545315;typeof _0x367617==_0x432801(0x1c3)&&(_0x2f630a[_0xe63480]=_0x367617[_0x432801(0x17e)](/url\(#(.*)\)/,_0x432801(0x12c)+_0x4acaf5[_0x432801(0x1c0)]+')'));})),_0x2f630a;}function Ee(_0x4f5d62,_0xd213a8){const _0x3a7802=_0x10aefb;var _0x1d7a7f;const {defIds:_0x6e5d94}=_0xd213a8;return!_0x6e5d94||_0x6e5d94['length']===0x0?_0x4f5d62:_0x4f5d62['tag']===_0x3a7802(0x16c)&&((_0x1d7a7f=_0x4f5d62['children'])!=null&&_0x1d7a7f['length'])?{..._0x4f5d62,'children':_0x4f5d62['children'][_0x3a7802(0x18c)](_0x176ab9=>typeof _0x176ab9[_0x3a7802(0x188)]['id']==_0x3a7802(0x1c3)&&_0x6e5d94&&_0x6e5d94[_0x3a7802(0x163)](_0x176ab9['attrs']['id'])?{..._0x176ab9,'attrs':{..._0x176ab9[_0x3a7802(0x188)],'id':_0x176ab9[_0x3a7802(0x188)]['id']+_0xd213a8[_0x3a7802(0x1c0)]}}:_0x176ab9)}:_0x4f5d62;}function Oe(){const _0x1d5640=_0x10aefb;return Math['random']()[_0x1d5640(0x18e)](0x24)[_0x1d5640(0x14e)](0x2,0x8);}k[_0x10aefb(0x126)]=_0x10aefb(0x198);const we={'tag':'svg','attrs':{'xmlns':_0x10aefb(0x1c4),'fill':_0x10aefb(0x122),'viewBox':_0x10aefb(0x185),'width':'1em','height':_0x10aefb(0x13c)},'children':[{'tag':_0x10aefb(0x15e),'attrs':{'fill':_0x10aefb(0x197),'d':_0x10aefb(0x121)}},{'tag':_0x10aefb(0x15e),'attrs':{'fill':_0x10aefb(0x197),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x10aefb(0x134),'clipRule':_0x10aefb(0x134)}}]},W=_0x173be2(function(_0x267513,_0x39e7e8){const _0x335199=_0x10aefb;return _0x8187ed(k,Object[_0x335199(0x1c5)]({},_0x267513,{'id':_0x335199(0x1b8),'ref':_0x39e7e8,'icon':we}));});W[_0x10aefb(0x126)]=_0x10aefb(0x153);class L extends _0x165f52{constructor(){const _0x220b48=_0x10aefb;super(...arguments),u(this,_0x220b48(0x1a1),new Set()),u(this,_0x220b48(0x127),new Set());}[_0x10aefb(0x13f)](_0x3f39be){const _0x2ddccd=_0x10aefb;return this['_sharedOperations']['add'](_0x3f39be),_0x28cbf9(()=>this[_0x2ddccd(0x1a1)][_0x2ddccd(0x1bd)](_0x3f39be));}[_0x10aefb(0x166)](_0x5794bb){const _0x47d8b=_0x10aefb;return this[_0x47d8b(0x127)][_0x47d8b(0x159)](_0x5794bb),_0x28cbf9(()=>this[_0x47d8b(0x127)][_0x47d8b(0x1bd)](_0x5794bb));}[_0x10aefb(0x18f)](_0x18aa87){const _0x4d1536=_0x10aefb;return this[_0x4d1536(0x1a1)][_0x4d1536(0x160)](_0x18aa87);}[_0x10aefb(0x11e)](_0x40eeea){const _0x23a177=_0x10aefb;return Array[_0x23a177(0x162)](this[_0x23a177(0x127)])[_0x23a177(0x18c)](_0x570e7a=>_0x570e7a(_0x40eeea));}}var Ne=Object[_0x10aefb(0x16d)],Y=(_0x2c8aba,_0x1bba26,_0x29daca,_0x43bd0b)=>{const _0x1fe13f=_0x10aefb;for(var _0x4e98f8=_0x43bd0b>0x1?void 0x0:_0x43bd0b?Ne(_0x1bba26,_0x29daca):_0x1bba26,_0x4b252e=_0x2c8aba[_0x1fe13f(0x1b6)]-0x1,_0x816bfc;_0x4b252e>=0x0;_0x4b252e--)(_0x816bfc=_0x2c8aba[_0x4b252e])&&(_0x4e98f8=_0x816bfc(_0x4e98f8)||_0x4e98f8);return _0x4e98f8;},_=(_0x3903cd,_0x5846f8)=>(_0x2853f8,_0x1fb7d3)=>_0x5846f8(_0x2853f8,_0x1fb7d3,_0x3903cd);let S=class extends _0x462ef4{constructor(_0x574a8d,_0x1eecf9,_0x250e17){const _0x12c2f1=_0x10aefb;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x574a8d,this[_0x12c2f1(0x15f)]=_0x1eecf9,this['_collabSessionService']=_0x250e17,this[_0x12c2f1(0x135)]());}async['getLiveShareCoordinator'](_0x37e96e){const _0x36c4d7=_0x10aefb;return this[_0x36c4d7(0x16b)][_0x36c4d7(0x160)](_0x37e96e)||await this[_0x36c4d7(0x18a)](_0x37e96e),this[_0x36c4d7(0x16b)][_0x36c4d7(0x16f)](_0x37e96e);}[_0x10aefb(0x124)](_0x9d55fa){const _0x36b846=_0x10aefb;var _0x15c225;return(_0x15c225=this[_0x36b846(0x16b)][_0x36b846(0x16f)](_0x9d55fa))!=null?_0x15c225:null;}[_0x10aefb(0x135)](){const _0x5ecf06=_0x10aefb;this[_0x5ecf06(0x155)][_0x5ecf06(0x1ae)](_0x2c8348['UNIVER_SHEET'])[_0x5ecf06(0x139)](_0x27507a(this[_0x5ecf06(0x17a)]))[_0x5ecf06(0x146)](async _0x826aec=>{const _0x43b44d=_0x5ecf06,_0x26dad8=_0x826aec['getUnitId']();this[_0x43b44d(0x16b)][_0x43b44d(0x160)](_0x26dad8)||this['_startLiveShareCoordinator'](_0x26dad8);}),this[_0x5ecf06(0x155)]['getTypeOfUnitDisposed$'](_0x2c8348[_0x5ecf06(0x184)])['pipe'](_0x27507a(this[_0x5ecf06(0x17a)]))['subscribe'](_0x399916=>{const _0x2a1fa3=_0x5ecf06,_0x203432=_0x399916['getUnitId'](),_0x2da15a=this['_entities']['get'](_0x203432);_0x2da15a==null||_0x2da15a[_0x2a1fa3(0x191)]();});}async['_startLiveShareCoordinator'](_0x22e2a8){const _0x8873b3=_0x10aefb,_0x36dd9d=await this[_0x8873b3(0x1a8)][_0x8873b3(0x19d)](_0x22e2a8),_0x1c7868=this[_0x8873b3(0x15f)]['createInstance'](N,_0x22e2a8,_0x36dd9d);return _0x1c7868[_0x8873b3(0x154)](),this['_entities'][_0x8873b3(0x1a4)](_0x22e2a8,_0x1c7868),_0x1c7868;}};S=Y([_(0x0,_0x505d64),_(0x1,_0x51ede5(_0x283222)),_(0x2,_0x51ede5(_0x1729da))],S);var c=(_0x26751b=>(_0x26751b[_0x10aefb(0x1c7)]=_0x10aefb(0x169),_0x26751b[_0x10aefb(0x152)]=_0x10aefb(0x1a3),_0x26751b[_0x10aefb(0x1b7)]=_0x10aefb(0x14c),_0x26751b[_0x10aefb(0x167)]=_0x10aefb(0x178),_0x26751b[_0x10aefb(0x194)]=_0x10aefb(0x14d),_0x26751b))(c||{});const Ce=_0x10aefb(0x130),De=0xc8;let N=class extends _0x462ef4{constructor(_0x49bac5,_0x3ad10a,_0x261df6,_0xcef25e,_0x266109){const _0x2ad4d4=_0x10aefb;super(),u(this,'_status$',new _0x155adf(_0x2ad4d4(0x1a3))),u(this,_0x2ad4d4(0x1aa),this[_0x2ad4d4(0x15d)][_0x2ad4d4(0x1a7)]()),u(this,_0x2ad4d4(0x135),!0x1),u(this,'_commandDisposable',null),u(this,_0x2ad4d4(0x129),null),(this['_unitID']=_0x49bac5,this[_0x2ad4d4(0x1b2)]=_0x3ad10a,this[_0x2ad4d4(0x17c)]=_0x261df6,this[_0x2ad4d4(0x1b5)]=_0xcef25e,this[_0x2ad4d4(0x1a6)]=_0x266109);}get[_0x10aefb(0x149)](){const _0x3b7de6=_0x10aefb;return this[_0x3b7de6(0x15d)][_0x3b7de6(0x177)]();}[_0x10aefb(0x191)](){const _0x34ffb2=_0x10aefb;var _0xcc9089;(_0xcc9089=this[_0x34ffb2(0x161)])==null||_0xcc9089['dispose'](),this[_0x34ffb2(0x15d)][_0x34ffb2(0x15c)](_0x34ffb2(0x1a3)),this[_0x34ffb2(0x15d)][_0x34ffb2(0x13b)]();}['getStatus'](){return this['_status'];}[_0x10aefb(0x154)](){const _0x3bf642=_0x10aefb;this[_0x3bf642(0x135)]||(this[_0x3bf642(0x135)]=!0x0,this[_0x3bf642(0x1b2)][_0x3bf642(0x171)]['pipe'](_0x27507a(this[_0x3bf642(0x17a)]))['subscribe'](_0x159a06=>{const _0x44f409=_0x3bf642;switch(_0x159a06){case _0x4e8ba1[_0x44f409(0x1c7)]:this[_0x44f409(0x1a5)]();break;case _0x4e8ba1[_0x44f409(0x151)]:this[_0x44f409(0x11f)]();break;}}),this[_0x3bf642(0x1b2)][_0x3bf642(0x168)][_0x3bf642(0x139)](_0x27507a(this[_0x3bf642(0x17a)]))[_0x3bf642(0x146)](_0x4673bf=>{const _0x34a9b4=_0x3bf642,{eventID:_0x2b0b23}=_0x4673bf;switch(_0x2b0b23){case _0x2a6a9c[_0x34a9b4(0x1b0)]:this[_0x34a9b4(0x193)](_0x4673bf);break;case _0x2a6a9c[_0x34a9b4(0x133)]:this[_0x34a9b4(0x1ab)](_0x4673bf);break;case _0x2a6a9c[_0x34a9b4(0x136)]:this[_0x34a9b4(0x1bb)]();break;case _0x2a6a9c[_0x34a9b4(0x1b9)]:this['_handleNewChangeSets'](_0x4673bf);break;}}));}[_0x10aefb(0x158)](){const _0x110d8b=_0x10aefb;this[_0x110d8b(0x1b2)][_0x110d8b(0x1be)]({'eventID':_0x2a6a9c['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x110d8b(0x1b2)][_0x110d8b(0x14a)]()}},this['_unitID']);}['stopPresenting'](){const _0x910881=_0x10aefb;this[_0x910881(0x149)]===_0x910881(0x14d)&&(this[_0x910881(0x15d)][_0x910881(0x15c)](_0x910881(0x1a3)),this[_0x910881(0x1b2)]['send']({'eventID':_0x2a6a9c[_0x910881(0x136)],'data':{'unitID':this[_0x910881(0x145)]}},this[_0x910881(0x145)]));}['startFollowing'](){const _0x146b2b=_0x10aefb;this[_0x146b2b(0x149)]===_0x146b2b(0x178)&&(this[_0x146b2b(0x15d)][_0x146b2b(0x15c)](_0x146b2b(0x14c)),this[_0x146b2b(0x13a)]());}[_0x10aefb(0x180)](){const _0x5367db=_0x10aefb;this[_0x5367db(0x149)]===_0x5367db(0x14c)&&this[_0x5367db(0x150)]();}[_0x10aefb(0x193)](_0x53ba97){const _0x245bbb=_0x10aefb,{presenter:_0x4fc3bd}=_0x53ba97['data'],_0x34d5fd=this[_0x245bbb(0x1b2)][_0x245bbb(0x14a)]();this['_presenter']=_0x4fc3bd,_0x4fc3bd===_0x34d5fd?(this[_0x245bbb(0x150)](),this[_0x245bbb(0x170)]()):this[_0x245bbb(0x149)]!=='not-following'&&(this[_0x245bbb(0x1ad)](),this[_0x245bbb(0x13a)]());}[_0x10aefb(0x175)](){const _0x2856ec=_0x10aefb,_0x52c87d={'eventID':_0x2a6a9c['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x2856ec(0x1be)](_0x52c87d,this[_0x2856ec(0x145)]);}[_0x10aefb(0x1bb)](){const _0x56a74a=_0x10aefb;this[_0x56a74a(0x129)]=null,this[_0x56a74a(0x149)]!==_0x56a74a(0x14d)&&this['_beIdle']();}[_0x10aefb(0x18d)](_0x25dd6b){const _0x22a482=_0x10aefb;if(this['_status']===_0x22a482(0x14c)&&this[_0x22a482(0x129)]===_0x25dd6b[_0x22a482(0x142)][_0x22a482(0x147)]){const _0x58d2ac=_0x144f33(_0x25dd6b[_0x22a482(0x142)])['mutations'][_0x22a482(0x12a)]()[_0x22a482(0x186)](_0x169019=>_0x169019['id']===_0x37a505['id']);if(_0x58d2ac){const _0x138e16=_0x58d2ac[_0x22a482(0x12e)][_0x22a482(0x199)],_0x5593c9=_0x58d2ac['params'][_0x22a482(0x183)]['id'];setTimeout(()=>{const _0x348313=_0x22a482;this['_commandService'][_0x348313(0x1ba)](_0xf537d1['id'],{'unitId':_0x138e16,'subUnitId':_0x5593c9},{'fromCollab':!0x0});});}}}[_0x10aefb(0x170)](){const _0x14a85b=_0x10aefb;this['_status$'][_0x14a85b(0x15c)](_0x14a85b(0x14d));const _0x3de789=new Map(),_0x28a2d9=this[_0x14a85b(0x161)]=new _0xfb7cab();_0x28a2d9[_0x14a85b(0x159)](_0x28cbf9(()=>{const _0x3940f9=_0x14a85b;_0x3de789[_0x3940f9(0x17b)](_0x3dff90=>_0x3dff90[_0x3940f9(0x13b)]()),_0x3de789[_0x3940f9(0x181)]();})),_0x28a2d9[_0x14a85b(0x159)](this[_0x14a85b(0x1a6)][_0x14a85b(0x1a2)](_0x2bd5f2=>{const _0x585535=_0x14a85b;var _0x2bee35;if(_0x2bd5f2[_0x585535(0x18b)]!==_0x255c7c[_0x585535(0x190)]||!this[_0x585535(0x1b5)][_0x585535(0x18f)](_0x2bd5f2['id']))return;const {id:_0x483326}=_0x2bd5f2;let _0x403432;_0x3de789['has'](_0x483326)?_0x403432=_0x3de789[_0x585535(0x16f)](_0x483326):(_0x403432=new _0x35f7dd(),_0x3de789[_0x585535(0x1a4)](_0x483326,_0x403432),_0x403432[_0x585535(0x139)](_0x5699c7((_0x2bee35=this[_0x585535(0x17c)][_0x585535(0x13d)](Ce))!=null?_0x2bee35:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3778c8=>{const _0x173b2b=_0x585535;this[_0x173b2b(0x1b2)]['send']({'eventID':_0x2a6a9c[_0x173b2b(0x133)],'data':{'unitID':this['_unitID'],'operations':{[_0x3778c8['id']]:{'id':_0x3778c8['id'],'params':JSON[_0x173b2b(0x19e)](_0x3778c8['params'])}}}},this[_0x173b2b(0x145)]);})),_0x403432[_0x585535(0x15c)](_0x2bd5f2);})),this[_0x14a85b(0x1b5)][_0x14a85b(0x11e)](this[_0x14a85b(0x145)])['forEach'](_0x13755e=>this[_0x14a85b(0x1b2)][_0x14a85b(0x1be)]({'eventID':_0x2a6a9c[_0x14a85b(0x133)],'data':{'unitID':this['_unitID'],'operations':{[_0x13755e['id']]:{'id':_0x13755e['id'],'params':JSON[_0x14a85b(0x19e)](_0x13755e[_0x14a85b(0x12e)])}}}},this[_0x14a85b(0x145)]));}[_0x10aefb(0x1ad)](){const _0xbc11db=_0x10aefb;var _0x9b2eec;this['_status$'][_0xbc11db(0x15c)]('idle'),(_0x9b2eec=this[_0xbc11db(0x161)])==null||_0x9b2eec['dispose'](),this[_0xbc11db(0x161)]=null;}[_0x10aefb(0x13a)](){const _0x1bce43=_0x10aefb;var _0x543414;(_0x543414=this['_commandDisposable'])==null||_0x543414[_0x1bce43(0x191)](),this[_0x1bce43(0x15d)][_0x1bce43(0x15c)](_0x1bce43(0x14c));}[_0x10aefb(0x19c)](){const _0xa897ed=_0x10aefb;var _0x5bc93d;this['_status$'][_0xa897ed(0x15c)](_0xa897ed(0x1a3)),(_0x5bc93d=this[_0xa897ed(0x161)])==null||_0x5bc93d[_0xa897ed(0x191)](),this['_commandDisposable']=null;}[_0x10aefb(0x150)](){const _0x12e002=_0x10aefb;var _0x1a27a5;this[_0x12e002(0x15d)][_0x12e002(0x15c)](_0x12e002(0x178)),(_0x1a27a5=this[_0x12e002(0x161)])==null||_0x1a27a5[_0x12e002(0x191)]();}[_0x10aefb(0x1ab)](_0x2f812a){const _0x441e07=_0x10aefb;if([_0x441e07(0x14d),'not-following',_0x441e07(0x169)][_0x441e07(0x163)](this[_0x441e07(0x149)])||!_0x2f812a['data'][_0x441e07(0x1c8)]||_0x2f812a[_0x441e07(0x142)]['presenter']===this[_0x441e07(0x1b2)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x4ab5f3=_0x2f812a['data'][_0x441e07(0x143)];Object[_0x441e07(0x1c1)](_0x4ab5f3)[_0x441e07(0x17b)](_0x94e3d4=>{const _0x514a88=_0x441e07;this[_0x514a88(0x1a6)][_0x514a88(0x1ba)](_0x94e3d4['id'],_0x94e3d4['params']?JSON['parse'](_0x94e3d4['params']):null,{'fromCollab':!0x0});});}[_0x10aefb(0x1a5)](){const _0x4ec906=_0x10aefb;var _0x5859ec;this['_status$']['next'](_0x4ec906(0x169)),(_0x5859ec=this['_commandDisposable'])==null||_0x5859ec['dispose']();}[_0x10aefb(0x11f)](){const _0x28181d=_0x10aefb;this[_0x28181d(0x15d)][_0x28181d(0x15c)](_0x28181d(0x1a3)),this[_0x28181d(0x175)]();}};N=Y([_(0x2,_0x17d354),_(0x3,_0x51ede5(L)),_(0x4,_0x3078a9)],N);function Le(){const _0x3d0cf9=_0x10aefb,_0x562c58=_0x41bfb9(S),_0x3b86ea=_0x41bfb9(_0x505d64),_0x559e07=_0x44e544(()=>_0x3b86ea[_0x3d0cf9(0x195)](_0x2c8348[_0x3d0cf9(0x184)]),void 0x0,!0x1,[]),[_0x377888,_0x89e06a]=_0x4720fa(null),[_0xde6605,_0x21da79]=_0x4720fa(c['IDLE']),_0x1f7426=_0x3f0520(null);return _0x300e4b(()=>(_0x559e07&&_0x562c58[_0x3d0cf9(0x1c2)](_0x559e07[_0x3d0cf9(0x173)]())[_0x3d0cf9(0x196)](_0x210eb8=>{const _0x2c5bc2=_0x3d0cf9;_0x89e06a(_0x210eb8),_0x1f7426[_0x2c5bc2(0x120)]=_0x210eb8[_0x2c5bc2(0x1aa)]['subscribe'](_0x234b71=>{_0x21da79(_0x234b71);});}),()=>{const _0x3d0479=_0x3d0cf9;var _0x24f99b;(_0x24f99b=_0x1f7426['current'])==null||_0x24f99b['unsubscribe'](),_0x1f7426[_0x3d0479(0x120)]=null;}),[_0x559e07,_0x562c58]),_0x377888?_0x1e03ae(_0x50eb55,{'align':_0x3d0cf9(0x12d),'disabled':_0xde6605===c[_0x3d0cf9(0x1c7)],'className':_0x3d0cf9(0x187),'overlay':_0x1e03ae(Re,{'status':_0xde6605,'coordinator':_0x377888}),'children':_0x1e03ae(_0x3d0cf9(0x176),{'className':_0x20cc62(_0x3d0cf9(0x1c6),{'univer-cursor-not-allowed':_0xde6605===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xde6605!==c['OFFLINE']}),'type':_0x3d0cf9(0x176),'children':_0x1e03ae(W,{'className':_0x3d0cf9(0x19b)})})}):null;}function Re(_0x31af46){const _0x49406c=_0x10aefb,{status:_0xa98c70,coordinator:_0x2b1db8}=_0x31af46;switch(_0xa98c70){case c['IDLE']:return _0x1e03ae($e,{'coordinator':_0x2b1db8});case c['FOLLOWING']:return _0x1e03ae(xe,{'coordinator':_0x2b1db8});case c['NOT_FOLLOWING']:return _0x1e03ae(Pe,{'coordinator':_0x2b1db8});case c[_0x49406c(0x1c7)]:return _0x1e03ae(Te,{});case c[_0x49406c(0x194)]:return _0x1e03ae(Ae,{'coordinator':_0x2b1db8});default:return null;}}function $e(_0x537474){const _0x2c9993=_0x10aefb,{coordinator:_0x21e950}=_0x537474;return _0x5804fa(_0xeba514,{'children':[_0x1e03ae(_0x2c9993(0x1bc),{'className':_0x2c9993(0x1b3),'children':_0x2c9993(0x1b4)}),_0x1e03ae(_0x4b8d62,{'onClick':()=>_0x21e950['tryStartPresenting'](),'children':_0x2c9993(0x132)})]});}function xe(_0x18c9ed){const _0x3bac27=_0x10aefb,{coordinator:_0x20a843}=_0x18c9ed;return _0x5804fa(_0xeba514,{'children':[_0x1e03ae(_0x3bac27(0x1bc),{'className':_0x3bac27(0x1b3),'children':_0x3bac27(0x144)}),_0x1e03ae(_0x4b8d62,{'onClick':()=>_0x20a843[_0x3bac27(0x180)](),'children':_0x3bac27(0x141)})]});}function Pe(_0xd99031){const _0x2f304c=_0x10aefb,{coordinator:_0xaa4766}=_0xd99031;return _0x5804fa(_0xeba514,{'children':[_0x1e03ae(_0x2f304c(0x1bc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2f304c(0x17d)}),_0x1e03ae(_0x4b8d62,{'variant':'text','onClick':()=>_0xaa4766[_0x2f304c(0x17f)](),'children':_0x2f304c(0x1af)})]});}function Ae(_0x144de8){const _0x328a85=_0x10aefb,{coordinator:_0x2aa018}=_0x144de8;return _0x5804fa(_0xeba514,{'children':[_0x1e03ae(_0x328a85(0x1bc),{'className':_0x328a85(0x1b3),'children':_0x328a85(0x15a)}),_0x1e03ae(_0x4b8d62,{'variant':_0x328a85(0x1a0),'onClick':()=>_0x2aa018[_0x328a85(0x19f)](),'children':_0x328a85(0x174)})]});}function Te(){const _0x396103=_0x10aefb;return _0x1e03ae(_0xeba514,{'children':_0x396103(0x138)});}var Fe=Object[_0x10aefb(0x16d)],He=(_0x4a5a62,_0x550fa5,_0xf3d514,_0x11c383)=>{for(var _0x183dc0=_0x11c383>0x1?void 0x0:_0x11c383?Fe(_0x550fa5,_0xf3d514):_0x550fa5,_0x5bf320=_0x4a5a62['length']-0x1,_0x3613d3;_0x5bf320>=0x0;_0x5bf320--)(_0x3613d3=_0x4a5a62[_0x5bf320])&&(_0x183dc0=_0x3613d3(_0x183dc0)||_0x183dc0);return _0x183dc0;},A=(_0x15ec99,_0x315240)=>(_0x307336,_0x32e643)=>_0x315240(_0x307336,_0x32e643,_0x15ec99);let m=class extends _0x165f52{constructor(_0x1a4bdc,_0x36d631){const _0x14d8bf=_0x10aefb;super(),this[_0x14d8bf(0x15f)]=_0x1a4bdc,this['_uiPartsService']=_0x36d631,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x5dd27a=_0x10aefb;this['disposeWithMe'](this['_uiPartsService'][_0x5dd27a(0x13e)](_0x559f77[_0x5dd27a(0x137)],()=>_0x4fc457(Le,this['_injector'])));}};m=He([A(0x0,_0x51ede5(_0x283222)),A(0x1,_0x473057)],m);const ye=_0x10aefb(0x140),T={};var Ue=Object[_0x10aefb(0x16d)],Ve=(_0xb8639,_0x47d16e,_0x5b53d3,_0x2634ec)=>{const _0x26ba71=_0x10aefb;for(var _0x4c9fa2=_0x2634ec>0x1?void 0x0:_0x2634ec?Ue(_0x47d16e,_0x5b53d3):_0x47d16e,_0x2e4f32=_0xb8639[_0x26ba71(0x1b6)]-0x1,_0x724207;_0x2e4f32>=0x0;_0x2e4f32--)(_0x724207=_0xb8639[_0x2e4f32])&&(_0x4c9fa2=_0x724207(_0x4c9fa2)||_0x4c9fa2);return _0x4c9fa2;},je=(_0x3819f1,_0x29b8dc)=>(_0xa9910f,_0x47cbcf)=>_0x29b8dc(_0xa9910f,_0x47cbcf,_0x3819f1);let I=class extends _0x165f52{constructor(_0x3c9ae0){const _0x5b139c=_0x10aefb;super(),this[_0x5b139c(0x1b5)]=_0x3c9ae0,this['_init']();}[_0x10aefb(0x135)](){const _0x1a693b=_0x10aefb;[_0xb26f7e['id'],_0x286c00['id'],_0xf537d1['id']][_0x1a693b(0x17b)](_0x5e7dd4=>{const _0x3a7739=_0x1a693b;this[_0x3a7739(0x12f)](this[_0x3a7739(0x1b5)][_0x3a7739(0x13f)](_0x5e7dd4));});}};I=Ve([je(0x0,_0x51ede5(L))],I);var Me=Object['defineProperty'],ke=Object[_0x10aefb(0x16d)],Ge=(_0x41ac05,_0x3b4290,_0x29b0bc)=>_0x3b4290 in _0x41ac05?Me(_0x41ac05,_0x3b4290,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29b0bc}):_0x41ac05[_0x3b4290]=_0x29b0bc,We=(_0x9fdeee,_0x19e171,_0x18dc77,_0x1cd6a2)=>{const _0x39b43d=_0x10aefb;for(var _0x158ad5=_0x1cd6a2>0x1?void 0x0:_0x1cd6a2?ke(_0x19e171,_0x18dc77):_0x19e171,_0x3252cb=_0x9fdeee[_0x39b43d(0x1b6)]-0x1,_0xdab865;_0x3252cb>=0x0;_0x3252cb--)(_0xdab865=_0x9fdeee[_0x3252cb])&&(_0x158ad5=_0xdab865(_0x158ad5)||_0x158ad5);return _0x158ad5;},F=(_0x3c43d7,_0xa33cd4)=>(_0x36fcc7,_0xaf86f6)=>_0xa33cd4(_0x36fcc7,_0xaf86f6,_0x3c43d7),B=(_0x36d2f,_0x596798,_0x17f32a)=>Ge(_0x36d2f,typeof _0x596798!=_0x10aefb(0x1b1)?_0x596798+'':_0x596798,_0x17f32a);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x5664ca{constructor(_0x3e7937=T,_0x4404f4,_0x517735){const _0x27aea9=_0x10aefb;super(),this[_0x27aea9(0x172)]=_0x3e7937,this[_0x27aea9(0x15f)]=_0x4404f4,this[_0x27aea9(0x17c)]=_0x517735;const {..._0x251eff}=_0x415150({},T,this[_0x27aea9(0x172)]);this[_0x27aea9(0x17c)][_0x27aea9(0x14b)](ye,_0x251eff);}['onStarting'](){const _0x1021ca=_0x10aefb;_0x318781(this[_0x1021ca(0x15f)],_0x5e4248([[L],[S],[I],[m]],this[_0x1021ca(0x172)]['override'])),_0x598de(this['_injector'],[[I]]);}['onRendered'](){const _0x550c2b=_0x10aefb;_0x598de(this[_0x550c2b(0x15f)],[[m]]);}};B(b,_0x10aefb(0x18b),_0x2c8348[_0x10aefb(0x182)]),B(b,_0x10aefb(0x164),Ye),b=We([_0x1dc4ba(_0x468b80),F(0x1,_0x51ede5(_0x283222)),F(0x2,_0x17d354)],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 _0x45a5ad=_0x2562;function _0x27b3(){const _0x3a5d32=['_commandService','presenting','OFFLINE','end','_stopPresenting','defineProperty','UNIVER_UNKNOWN','default','LIVESHARE_REQUEST_HOST','_configService','stopPresenting','_reporters','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','10HrhVdN','map','asObservable','_entities','UniverIcon','47555CKTJaQ','_collabSession','LiveShareIcon','NEW_CHANGESETS','16tUGsqN','path','tryStartPresenting','startFollowing','next','_status','OPERATION','getUnitId','type','1em','getLiveShareCoordinator','mask','195851kIafZS','assign','live-share.config','clear','_startLiveShareCoordinator','_fetchOperations','children','values','length','text','HEADER_MENU','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_TERMINATE','You\x27are\x20offline.','Stop\x20following','memberID','getLiveShareCoordinatorSync','displayName','fill','disposeWithMe','sessionStatus$','stringify','getOwnPropertyDescriptor','_commandDisposable','getStatus','965321KMOtGe','status$','delete','symbol','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','PRESENTING','Start\x20following','string','tag','init','event$','_handleOffline','substring','6ZLWFUQ','_handleTerminate','registerInitialStateReporter','SAME_OPERATION_SHARE_INTERVAL','_init','data','0\x200\x2017\x2017','find','parse','has','_startFollowing','includes','offline','_status$','_handleNewChangeSets','idSuffix','createInstance','add','mutations','46548OjzECT','You\x27re\x20not\x20following\x20the\x20presenter','_stopFollowing','executeCommand','_liveShareService','colorChannel1','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','LIVESHARE_OPERATION','defs','toString','IDLE','79968lJnVMP','currentColor','get','LIVESHARE_FETCH_OPERATIONS','xlink:href','url(#$1','_collabSessionService','use','_uiPartsService','LIVESHARE_NEW_HOST','not-following','_presenter','getConfig','dispose$','_startPresenting','pluginName','sheet','send','params','Start','6053949jvZqCQ','_handleOnline','registerSharedOperation','_handleOperation','button','forEach','unsubscribe','current','entries','replace','_config','set','random','univer-size-4','univerjs-icon\x20univerjs-icon-','_unitID','attrs','_injector','getMemberID','_handleNewHost','stopFollowing','requireSession','from','_beIdle','dispose','getTypeOfUnitAdded$','override','operations','defIds','subscribe','NOT_FOLLOWING','div','pipe','complete','registerComponent','You\x27re\x20presenting\x20the\x20document','_sharedOperations','presenter','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','idle','setConfig','UNIVER_SHEET','shouldShareOperation','2154952naXZCW','FOLLOWING'];_0x27b3=function(){return _0x3a5d32;};return _0x27b3();}(function(_0x5cfd63,_0x5105bd){const _0x4a6bbb=_0x2562,_0x127195=_0x5cfd63();while(!![]){try{const _0x47eeb8=-parseInt(_0x4a6bbb(0x23e))/0x1+parseInt(_0x4a6bbb(0x284))/0x2+-parseInt(_0x4a6bbb(0x279))/0x3*(-parseInt(_0x4a6bbb(0x232))/0x4)+-parseInt(_0x4a6bbb(0x22e))/0x5*(parseInt(_0x4a6bbb(0x266))/0x6)+-parseInt(_0x4a6bbb(0x258))/0x7+-parseInt(_0x4a6bbb(0x21a))/0x8+parseInt(_0x4a6bbb(0x298))/0x9*(parseInt(_0x4a6bbb(0x229))/0xa);if(_0x47eeb8===_0x5105bd)break;else _0x127195['push'](_0x127195['shift']());}catch(_0x437932){_0x127195['push'](_0x127195['shift']());}}}(_0x27b3,0x2791b));var J=Object[_0x45a5ad(0x221)],K=(_0x34e9b9,_0x55baf1,_0xda989c)=>_0x55baf1 in _0x34e9b9?J(_0x34e9b9,_0x55baf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xda989c}):_0x34e9b9[_0x55baf1]=_0xda989c,u=(_0x2e5bf1,_0x4c5009,_0x15489a)=>K(_0x2e5bf1,typeof _0x4c5009!=_0x45a5ad(0x25b)?_0x4c5009+'':_0x4c5009,_0x15489a);import{Disposable as _0x1cac0a,toDisposable as _0x1019de,IUniverInstanceService as _0x167ffb,Inject as _0x24ac51,Injector as _0x37149b,IConfigService as _0x243378,ICommandService as _0x2a6a6b,RxDisposable as _0x1a1fe5,UniverInstanceType as _0x483ab7,DisposableCollection as _0x2ff702,CommandType as _0x35447d,DependentOn as _0x13afb3,Plugin as _0x3bdc1a,merge as _0x468e5c,registerDependencies as _0x306653,mergeOverrideWithDependencies as _0x2e4e88,touchDependencies as _0xa73248}from'@univerjs/core';import{useDependency as _0x2f7790,useObservable as _0x5534e2,IUIPartsService as _0x1e1f8c,BuiltInUIPart as _0x264092,connectInjector as _0x286ddd}from'@univerjs/ui';import{jsx as _0x45dd85,jsxs as _0x55328e,Fragment as _0x481167}from'react/jsx-runtime';import{Dropdown as _0x4d4f60,clsx as _0x290227,Button as _0x5dff14}from'@univerjs/design';import{useRef as _0x38104f,createElement as _0x3dbe79,forwardRef as _0x4af31b,useState as _0x31ebce,useEffect as _0x1ed7eb}from'react';import{CollaborationEvent as _0x5d4a06,parseProtocolChangeset as _0x14b46d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x136282,SessionStatus as _0x10df1b,UniverCollaborationClientPlugin as _0x2cd52a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x345c11,SetWorksheetActiveOperation as _0x2270dd}from'@univerjs/sheets';import{BehaviorSubject as _0x5d1258,Subject as _0x2bf948}from'rxjs';import{takeUntil as _0x246d5b,throttleTime as _0x5b118b}from'rxjs/operators';import{SetZoomRatioOperation as _0x5cee16,SetScrollOperation as _0x3c74b3}from'@univerjs/sheets-ui';function k({ref:_0x121ea1,..._0x2c7bbe}){const _0x5add54=_0x45a5ad,{icon:_0x400cb9,id:_0x3abaed,className:_0x3346f1,extend:_0x55d7da,..._0x42e025}=_0x2c7bbe,_0x15b9f2=(_0x5add54(0x1fd)+_0x3abaed+'\x20'+(_0x3346f1||''))['trim'](),_0x28ad03=_0x38104f('_'+Oe());return G(_0x400cb9,''+_0x3abaed,{'defIds':_0x400cb9[_0x5add54(0x20b)],'idSuffix':_0x28ad03['current']},{'ref':_0x121ea1,'className':_0x15b9f2,..._0x42e025},_0x55d7da);}function G(_0x3ecbb0,_0x54af86,_0x4e0af7,_0x51bce8,_0x2a880d){const _0x481778=_0x45a5ad;return _0x3dbe79(_0x3ecbb0[_0x481778(0x261)],{'key':_0x54af86,...be(_0x3ecbb0,_0x4e0af7,_0x2a880d),..._0x51bce8},(Ee(_0x3ecbb0,_0x4e0af7)['children']||[])[_0x481778(0x22a)]((_0x2da3b3,_0x2ded7d)=>G(_0x2da3b3,_0x54af86+'-'+_0x3ecbb0[_0x481778(0x261)]+'-'+_0x2ded7d,_0x4e0af7,void 0x0,_0x2a880d)));}function be(_0x241a8f,_0x28a98d,_0xf51db3){const _0x42ac5f=_0x45a5ad,_0x407720={..._0x241a8f[_0x42ac5f(0x1ff)]};_0xf51db3!=null&&_0xf51db3[_0x42ac5f(0x27e)]&&_0x407720[_0x42ac5f(0x251)]===_0x42ac5f(0x27e)&&(_0x407720[_0x42ac5f(0x251)]=_0xf51db3[_0x42ac5f(0x27e)]),_0x241a8f[_0x42ac5f(0x261)]===_0x42ac5f(0x23d)&&_0x407720['id']&&(_0x407720['id']=_0x407720['id']+_0x28a98d[_0x42ac5f(0x275)]),Object[_0x42ac5f(0x1f7)](_0x407720)[_0x42ac5f(0x1f4)](([_0x286588,_0x572f24])=>{const _0x66e4dd=_0x42ac5f;_0x286588==='mask'&&typeof _0x572f24==_0x66e4dd(0x260)&&(_0x407720[_0x286588]=_0x572f24['replace'](/url\(#(.*)\)/,_0x66e4dd(0x289)+_0x28a98d[_0x66e4dd(0x275)]+')'));});const {defIds:_0x3e0d01}=_0x28a98d;return!_0x3e0d01||_0x3e0d01['length']===0x0||(_0x241a8f['tag']===_0x42ac5f(0x28b)&&_0x407720[_0x42ac5f(0x288)]&&(_0x407720[_0x42ac5f(0x288)]=_0x407720[_0x42ac5f(0x288)]+_0x28a98d['idSuffix']),Object['entries'](_0x407720)[_0x42ac5f(0x1f4)](([_0x4f814b,_0x250864])=>{const _0x37ebdb=_0x42ac5f;typeof _0x250864==_0x37ebdb(0x260)&&(_0x407720[_0x4f814b]=_0x250864[_0x37ebdb(0x1f8)](/url\(#(.*)\)/,_0x37ebdb(0x289)+_0x28a98d[_0x37ebdb(0x275)]+')'));})),_0x407720;}function Ee(_0x1425b5,_0x22aaba){const _0x21a12b=_0x45a5ad;var _0xc91c1f;const {defIds:_0x2c55e1}=_0x22aaba;return!_0x2c55e1||_0x2c55e1[_0x21a12b(0x246)]===0x0?_0x1425b5:_0x1425b5[_0x21a12b(0x261)]===_0x21a12b(0x281)&&((_0xc91c1f=_0x1425b5[_0x21a12b(0x244)])!=null&&_0xc91c1f['length'])?{..._0x1425b5,'children':_0x1425b5[_0x21a12b(0x244)][_0x21a12b(0x22a)](_0x3c26e7=>typeof _0x3c26e7[_0x21a12b(0x1ff)]['id']==_0x21a12b(0x260)&&_0x2c55e1&&_0x2c55e1[_0x21a12b(0x271)](_0x3c26e7[_0x21a12b(0x1ff)]['id'])?{..._0x3c26e7,'attrs':{..._0x3c26e7['attrs'],'id':_0x3c26e7[_0x21a12b(0x1ff)]['id']+_0x22aaba[_0x21a12b(0x275)]}}:_0x3c26e7)}:_0x1425b5;}function Oe(){const _0x515b06=_0x45a5ad;return Math[_0x515b06(0x1fb)]()[_0x515b06(0x282)](0x24)[_0x515b06(0x265)](0x2,0x8);}k[_0x45a5ad(0x250)]=_0x45a5ad(0x22d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x45a5ad(0x26c),'width':_0x45a5ad(0x23b),'height':_0x45a5ad(0x23b)},'children':[{'tag':_0x45a5ad(0x233),'attrs':{'fill':_0x45a5ad(0x285),'d':_0x45a5ad(0x215)}},{'tag':'path','attrs':{'fill':_0x45a5ad(0x285),'d':_0x45a5ad(0x27f),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x4af31b(function(_0x4cb11b,_0x3f7fa5){const _0x114107=_0x45a5ad;return _0x3dbe79(k,Object[_0x114107(0x23f)]({},_0x4cb11b,{'id':'live-share-icon','ref':_0x3f7fa5,'icon':we}));});W[_0x45a5ad(0x250)]=_0x45a5ad(0x230);class L extends _0x1cac0a{constructor(){const _0x4d8a42=_0x45a5ad;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4d8a42(0x227),new Set());}[_0x45a5ad(0x29a)](_0x2588a5){const _0x5191b7=_0x45a5ad;return this[_0x5191b7(0x213)]['add'](_0x2588a5),_0x1019de(()=>this[_0x5191b7(0x213)]['delete'](_0x2588a5));}[_0x45a5ad(0x268)](_0xd70e25){const _0x33dbbf=_0x45a5ad;return this['_reporters'][_0x33dbbf(0x277)](_0xd70e25),_0x1019de(()=>this[_0x33dbbf(0x227)][_0x33dbbf(0x25a)](_0xd70e25));}[_0x45a5ad(0x219)](_0x1c2b68){const _0x1e223f=_0x45a5ad;return this[_0x1e223f(0x213)][_0x1e223f(0x26f)](_0x1c2b68);}['getInitialStates'](_0x3b2e6d){const _0x4eb3a1=_0x45a5ad;return Array[_0x4eb3a1(0x205)](this[_0x4eb3a1(0x227)])[_0x4eb3a1(0x22a)](_0x425a91=>_0x425a91(_0x3b2e6d));}}var Ne=Object[_0x45a5ad(0x255)],Y=(_0x2ea9d8,_0x335e29,_0x19247f,_0x2ae7e6)=>{const _0x52cfd9=_0x45a5ad;for(var _0x3142d2=_0x2ae7e6>0x1?void 0x0:_0x2ae7e6?Ne(_0x335e29,_0x19247f):_0x335e29,_0x18eab1=_0x2ea9d8[_0x52cfd9(0x246)]-0x1,_0x12f355;_0x18eab1>=0x0;_0x18eab1--)(_0x12f355=_0x2ea9d8[_0x18eab1])&&(_0x3142d2=_0x12f355(_0x3142d2)||_0x3142d2);return _0x3142d2;},_=(_0x592ced,_0x17afc1)=>(_0x57235f,_0xae1439)=>_0x17afc1(_0x57235f,_0xae1439,_0x592ced);let S=class extends _0x1a1fe5{constructor(_0x12f268,_0x4bea31,_0x4f98b6){const _0x233c58=_0x45a5ad;super(),u(this,'_entities',new Map()),(this[_0x233c58(0x25d)]=_0x12f268,this['_injector']=_0x4bea31,this['_collabSessionService']=_0x4f98b6,this[_0x233c58(0x26a)]());}async[_0x45a5ad(0x23c)](_0x32532c){const _0x102269=_0x45a5ad;return this[_0x102269(0x22c)][_0x102269(0x26f)](_0x32532c)||await this[_0x102269(0x242)](_0x32532c),this['_entities'][_0x102269(0x286)](_0x32532c);}[_0x45a5ad(0x24f)](_0x421d63){var _0x5dc3e1;return(_0x5dc3e1=this['_entities']['get'](_0x421d63))!=null?_0x5dc3e1:null;}[_0x45a5ad(0x26a)](){const _0x266b3b=_0x45a5ad;this['_univerInstanceService'][_0x266b3b(0x208)](_0x483ab7[_0x266b3b(0x218)])[_0x266b3b(0x20f)](_0x246d5b(this[_0x266b3b(0x291)]))[_0x266b3b(0x20c)](async _0x455c62=>{const _0xb10134=_0x266b3b,_0x5d1f4e=_0x455c62[_0xb10134(0x239)]();this[_0xb10134(0x22c)][_0xb10134(0x26f)](_0x5d1f4e)||this[_0xb10134(0x242)](_0x5d1f4e);}),this[_0x266b3b(0x25d)]['getTypeOfUnitDisposed$'](_0x483ab7['UNIVER_SHEET'])[_0x266b3b(0x20f)](_0x246d5b(this[_0x266b3b(0x291)]))['subscribe'](_0x4216ff=>{const _0x1668d1=_0x266b3b,_0x397c55=_0x4216ff['getUnitId'](),_0x3c6947=this[_0x1668d1(0x22c)][_0x1668d1(0x286)](_0x397c55);_0x3c6947==null||_0x3c6947['dispose']();});}async['_startLiveShareCoordinator'](_0x1ded96){const _0x269870=_0x45a5ad,_0x5cee28=await this[_0x269870(0x28a)][_0x269870(0x204)](_0x1ded96),_0x238506=this[_0x269870(0x200)][_0x269870(0x276)](N,_0x1ded96,_0x5cee28);return _0x238506[_0x269870(0x262)](),this[_0x269870(0x22c)][_0x269870(0x1fa)](_0x1ded96,_0x238506),_0x238506;}};S=Y([_(0x0,_0x167ffb),_(0x1,_0x24ac51(_0x37149b)),_(0x2,_0x24ac51(_0x136282))],S);var c=(_0xfa79e=>(_0xfa79e['OFFLINE']='offline',_0xfa79e[_0x45a5ad(0x283)]=_0x45a5ad(0x216),_0xfa79e[_0x45a5ad(0x21b)]=_0x45a5ad(0x249),_0xfa79e[_0x45a5ad(0x20d)]=_0x45a5ad(0x28e),_0xfa79e[_0x45a5ad(0x25e)]=_0x45a5ad(0x21d),_0xfa79e))(c||{});const Ce=_0x45a5ad(0x269),De=0xc8;let N=class extends _0x1a1fe5{constructor(_0x1e3822,_0xa4c667,_0x3a4a1d,_0x5dd24c,_0x682e1c){const _0x4b8d24=_0x45a5ad;super(),u(this,'_status$',new _0x5d1258('idle')),u(this,'status$',this[_0x4b8d24(0x273)][_0x4b8d24(0x22b)]()),u(this,_0x4b8d24(0x26a),!0x1),u(this,_0x4b8d24(0x256),null),u(this,_0x4b8d24(0x28f),null),(this[_0x4b8d24(0x1fe)]=_0x1e3822,this[_0x4b8d24(0x22f)]=_0xa4c667,this[_0x4b8d24(0x225)]=_0x3a4a1d,this[_0x4b8d24(0x27d)]=_0x5dd24c,this['_commandService']=_0x682e1c);}get[_0x45a5ad(0x237)](){const _0x522d43=_0x45a5ad;return this[_0x522d43(0x273)]['getValue']();}['dispose'](){const _0x2cbb49=_0x45a5ad;var _0x2e2949;(_0x2e2949=this[_0x2cbb49(0x256)])==null||_0x2e2949[_0x2cbb49(0x207)](),this[_0x2cbb49(0x273)][_0x2cbb49(0x236)](_0x2cbb49(0x216)),this[_0x2cbb49(0x273)][_0x2cbb49(0x210)]();}[_0x45a5ad(0x257)](){const _0x49acf5=_0x45a5ad;return this[_0x49acf5(0x237)];}[_0x45a5ad(0x262)](){const _0x322ddb=_0x45a5ad;this['_init']||(this[_0x322ddb(0x26a)]=!0x0,this[_0x322ddb(0x22f)][_0x322ddb(0x253)]['pipe'](_0x246d5b(this['dispose$']))[_0x322ddb(0x20c)](_0xcde821=>{const _0x1976aa=_0x322ddb;switch(_0xcde821){case _0x10df1b[_0x1976aa(0x21e)]:this[_0x1976aa(0x264)]();break;case _0x10df1b['ONLINE']:this['_handleOnline']();break;}}),this[_0x322ddb(0x22f)][_0x322ddb(0x263)]['pipe'](_0x246d5b(this[_0x322ddb(0x291)]))[_0x322ddb(0x20c)](_0x58e3d5=>{const _0x1357b5=_0x322ddb,{eventID:_0x364022}=_0x58e3d5;switch(_0x364022){case _0x5d4a06[_0x1357b5(0x28d)]:this[_0x1357b5(0x202)](_0x58e3d5);break;case _0x5d4a06[_0x1357b5(0x280)]:this[_0x1357b5(0x1f2)](_0x58e3d5);break;case _0x5d4a06['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x5d4a06[_0x1357b5(0x231)]:this[_0x1357b5(0x274)](_0x58e3d5);break;}}));}[_0x45a5ad(0x234)](){const _0x545f53=_0x45a5ad;this['_collabSession'][_0x545f53(0x295)]({'eventID':_0x5d4a06[_0x545f53(0x224)],'data':{'unitID':this[_0x545f53(0x1fe)],'userID':this[_0x545f53(0x22f)]['getMemberID']()}},this['_unitID']);}[_0x45a5ad(0x226)](){const _0x2ab43d=_0x45a5ad;this[_0x2ab43d(0x237)]===_0x2ab43d(0x21d)&&(this[_0x2ab43d(0x273)]['next']('idle'),this[_0x2ab43d(0x22f)][_0x2ab43d(0x295)]({'eventID':_0x5d4a06[_0x2ab43d(0x24b)],'data':{'unitID':this[_0x2ab43d(0x1fe)]}},this[_0x2ab43d(0x1fe)]));}[_0x45a5ad(0x235)](){const _0x16a309=_0x45a5ad;this['_status']===_0x16a309(0x28e)&&(this[_0x16a309(0x273)][_0x16a309(0x236)](_0x16a309(0x249)),this[_0x16a309(0x270)]());}[_0x45a5ad(0x203)](){const _0x20cd01=_0x45a5ad;this[_0x20cd01(0x237)]===_0x20cd01(0x249)&&this[_0x20cd01(0x27b)]();}[_0x45a5ad(0x202)](_0x3e8f6a){const _0x5c29d3=_0x45a5ad,{presenter:_0x51238c}=_0x3e8f6a[_0x5c29d3(0x26b)],_0x3f8d14=this[_0x5c29d3(0x22f)][_0x5c29d3(0x201)]();this[_0x5c29d3(0x28f)]=_0x51238c,_0x51238c===_0x3f8d14?(this[_0x5c29d3(0x27b)](),this[_0x5c29d3(0x292)]()):this['_status']!=='not-following'&&(this[_0x5c29d3(0x220)](),this[_0x5c29d3(0x270)]());}['_fetchOperations'](){const _0x5838b7=_0x45a5ad,_0x566123={'eventID':_0x5d4a06[_0x5838b7(0x287)]};this[_0x5838b7(0x22f)][_0x5838b7(0x295)](_0x566123,this['_unitID']);}[_0x45a5ad(0x267)](){const _0x4b7328=_0x45a5ad;this[_0x4b7328(0x28f)]=null,this['_status']!==_0x4b7328(0x21d)&&this[_0x4b7328(0x206)]();}[_0x45a5ad(0x274)](_0x551516){const _0x391a86=_0x45a5ad;if(this[_0x391a86(0x237)]==='following'&&this[_0x391a86(0x28f)]===_0x551516[_0x391a86(0x26b)][_0x391a86(0x24e)]){const _0x3335db=_0x14b46d(_0x551516[_0x391a86(0x26b)])[_0x391a86(0x278)]['reverse']()[_0x391a86(0x26d)](_0xdae5fc=>_0xdae5fc['id']===_0x345c11['id']);if(_0x3335db){const _0x1c28a9=_0x3335db[_0x391a86(0x296)]['unitId'],_0x2d48ef=_0x3335db[_0x391a86(0x296)][_0x391a86(0x294)]['id'];setTimeout(()=>{const _0x3823f7=_0x391a86;this[_0x3823f7(0x21c)]['executeCommand'](_0x2270dd['id'],{'unitId':_0x1c28a9,'subUnitId':_0x2d48ef},{'fromCollab':!0x0});});}}}[_0x45a5ad(0x292)](){const _0x625866=_0x45a5ad;this[_0x625866(0x273)][_0x625866(0x236)](_0x625866(0x21d));const _0x557597=new Map(),_0x467e9f=this['_commandDisposable']=new _0x2ff702();_0x467e9f[_0x625866(0x277)](_0x1019de(()=>{const _0x3ac885=_0x625866;_0x557597[_0x3ac885(0x1f4)](_0x5f4303=>_0x5f4303[_0x3ac885(0x210)]()),_0x557597[_0x3ac885(0x241)]();})),_0x467e9f['add'](this[_0x625866(0x21c)]['onCommandExecuted'](_0xb0be6c=>{const _0x412d73=_0x625866;var _0x4c5529;if(_0xb0be6c['type']!==_0x35447d[_0x412d73(0x238)]||!this[_0x412d73(0x27d)][_0x412d73(0x219)](_0xb0be6c['id']))return;const {id:_0x2e903a}=_0xb0be6c;let _0x24f623;_0x557597[_0x412d73(0x26f)](_0x2e903a)?_0x24f623=_0x557597[_0x412d73(0x286)](_0x2e903a):(_0x24f623=new _0x2bf948(),_0x557597[_0x412d73(0x1fa)](_0x2e903a,_0x24f623),_0x24f623[_0x412d73(0x20f)](_0x5b118b((_0x4c5529=this['_configService'][_0x412d73(0x290)](Ce))!=null?_0x4c5529:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x412d73(0x20c)](_0x29c675=>{const _0x310c3b=_0x412d73;this[_0x310c3b(0x22f)][_0x310c3b(0x295)]({'eventID':_0x5d4a06[_0x310c3b(0x280)],'data':{'unitID':this[_0x310c3b(0x1fe)],'operations':{[_0x29c675['id']]:{'id':_0x29c675['id'],'params':JSON[_0x310c3b(0x254)](_0x29c675[_0x310c3b(0x296)])}}}},this[_0x310c3b(0x1fe)]);})),_0x24f623[_0x412d73(0x236)](_0xb0be6c);})),this[_0x625866(0x27d)]['getInitialStates'](this[_0x625866(0x1fe)])['forEach'](_0x5294a7=>this[_0x625866(0x22f)][_0x625866(0x295)]({'eventID':_0x5d4a06[_0x625866(0x280)],'data':{'unitID':this[_0x625866(0x1fe)],'operations':{[_0x5294a7['id']]:{'id':_0x5294a7['id'],'params':JSON[_0x625866(0x254)](_0x5294a7['params'])}}}},this[_0x625866(0x1fe)]));}[_0x45a5ad(0x220)](){const _0x47082b=_0x45a5ad;var _0x64c489;this[_0x47082b(0x273)][_0x47082b(0x236)](_0x47082b(0x216)),(_0x64c489=this[_0x47082b(0x256)])==null||_0x64c489[_0x47082b(0x207)](),this[_0x47082b(0x256)]=null;}[_0x45a5ad(0x270)](){const _0x448915=_0x45a5ad;var _0x3288f0;(_0x3288f0=this[_0x448915(0x256)])==null||_0x3288f0[_0x448915(0x207)](),this[_0x448915(0x273)][_0x448915(0x236)](_0x448915(0x249));}[_0x45a5ad(0x206)](){const _0x36ab19=_0x45a5ad;var _0x3963e4;this['_status$'][_0x36ab19(0x236)](_0x36ab19(0x216)),(_0x3963e4=this['_commandDisposable'])==null||_0x3963e4[_0x36ab19(0x207)](),this[_0x36ab19(0x256)]=null;}[_0x45a5ad(0x27b)](){const _0x1bcdff=_0x45a5ad;var _0x101146;this['_status$'][_0x1bcdff(0x236)](_0x1bcdff(0x28e)),(_0x101146=this[_0x1bcdff(0x256)])==null||_0x101146[_0x1bcdff(0x207)]();}['_handleOperation'](_0x2973d5){const _0x1de8a6=_0x45a5ad;if([_0x1de8a6(0x21d),_0x1de8a6(0x28e),_0x1de8a6(0x272)]['includes'](this[_0x1de8a6(0x237)])||!_0x2973d5[_0x1de8a6(0x26b)][_0x1de8a6(0x214)]||_0x2973d5['data'][_0x1de8a6(0x214)]===this[_0x1de8a6(0x22f)][_0x1de8a6(0x201)]())return;this[_0x1de8a6(0x237)]===_0x1de8a6(0x216)&&this[_0x1de8a6(0x270)]();const _0x4e33de=_0x2973d5[_0x1de8a6(0x26b)][_0x1de8a6(0x20a)];Object[_0x1de8a6(0x245)](_0x4e33de)[_0x1de8a6(0x1f4)](_0x31e699=>{const _0x16995a=_0x1de8a6;this[_0x16995a(0x21c)][_0x16995a(0x27c)](_0x31e699['id'],_0x31e699[_0x16995a(0x296)]?JSON[_0x16995a(0x26e)](_0x31e699[_0x16995a(0x296)]):null,{'fromCollab':!0x0});});}[_0x45a5ad(0x264)](){const _0x2910ab=_0x45a5ad;var _0x3c685d;this[_0x2910ab(0x273)][_0x2910ab(0x236)](_0x2910ab(0x272)),(_0x3c685d=this['_commandDisposable'])==null||_0x3c685d['dispose']();}[_0x45a5ad(0x299)](){const _0xf0fdf8=_0x45a5ad;this[_0xf0fdf8(0x273)]['next'](_0xf0fdf8(0x216)),this[_0xf0fdf8(0x243)]();}};N=Y([_(0x2,_0x243378),_(0x3,_0x24ac51(L)),_(0x4,_0x2a6a6b)],N);function Le(){const _0x1fa189=_0x45a5ad,_0x3be27a=_0x2f7790(S),_0x3b8289=_0x2f7790(_0x167ffb),_0x3fcceb=_0x5534e2(()=>_0x3b8289['getCurrentTypeOfUnit$'](_0x483ab7[_0x1fa189(0x218)]),void 0x0,!0x1,[]),[_0x3f87e0,_0x55f8f5]=_0x31ebce(null),[_0x20a899,_0x182251]=_0x31ebce(c['IDLE']),_0x4caf9c=_0x38104f(null);return _0x1ed7eb(()=>(_0x3fcceb&&_0x3be27a[_0x1fa189(0x23c)](_0x3fcceb['getUnitId']())['then'](_0x848fec=>{const _0x3b0e26=_0x1fa189;_0x55f8f5(_0x848fec),_0x4caf9c[_0x3b0e26(0x1f6)]=_0x848fec[_0x3b0e26(0x259)][_0x3b0e26(0x20c)](_0x145fa4=>{_0x182251(_0x145fa4);});}),()=>{const _0x5e3ec5=_0x1fa189;var _0x97553e;(_0x97553e=_0x4caf9c[_0x5e3ec5(0x1f6)])==null||_0x97553e[_0x5e3ec5(0x1f5)](),_0x4caf9c[_0x5e3ec5(0x1f6)]=null;}),[_0x3fcceb,_0x3be27a]),_0x3f87e0?_0x45dd85(_0x4d4f60,{'align':_0x1fa189(0x21f),'disabled':_0x20a899===c[_0x1fa189(0x21e)],'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':_0x45dd85(Re,{'status':_0x20a899,'coordinator':_0x3f87e0}),'children':_0x45dd85(_0x1fa189(0x1f3),{'className':_0x290227(_0x1fa189(0x228),{'univer-cursor-not-allowed':_0x20a899===c[_0x1fa189(0x21e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20a899!==c[_0x1fa189(0x21e)]}),'type':_0x1fa189(0x1f3),'children':_0x45dd85(W,{'className':_0x1fa189(0x1fc)})})}):null;}function Re(_0x139a0f){const _0x179ce1=_0x45a5ad,{status:_0x1b6c83,coordinator:_0x42179d}=_0x139a0f;switch(_0x1b6c83){case c[_0x179ce1(0x283)]:return _0x45dd85($e,{'coordinator':_0x42179d});case c['FOLLOWING']:return _0x45dd85(xe,{'coordinator':_0x42179d});case c[_0x179ce1(0x20d)]:return _0x45dd85(Pe,{'coordinator':_0x42179d});case c[_0x179ce1(0x21e)]:return _0x45dd85(Te,{});case c[_0x179ce1(0x25e)]:return _0x45dd85(Ae,{'coordinator':_0x42179d});default:return null;}}function _0x2562(_0x537bfb,_0x15b2e9){_0x537bfb=_0x537bfb-0x1f2;const _0x27b39c=_0x27b3();let _0x2562fb=_0x27b39c[_0x537bfb];return _0x2562fb;}function $e(_0x308557){const _0x1b576d=_0x45a5ad,{coordinator:_0x53bd43}=_0x308557;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x1b576d(0x20e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x45dd85(_0x5dff14,{'onClick':()=>_0x53bd43[_0x1b576d(0x234)](),'children':_0x1b576d(0x297)})]});}function xe(_0x140436){const _0x2f6de1=_0x45a5ad,{coordinator:_0x5b8e3a}=_0x140436;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x2f6de1(0x20e),{'className':_0x2f6de1(0x24a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x45dd85(_0x5dff14,{'onClick':()=>_0x5b8e3a[_0x2f6de1(0x203)](),'children':_0x2f6de1(0x24d)})]});}function Pe(_0x567fd4){const _0x5dca20=_0x45a5ad,{coordinator:_0x51e76f}=_0x567fd4;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x5dca20(0x20e),{'className':_0x5dca20(0x24a),'children':_0x5dca20(0x27a)}),_0x45dd85(_0x5dff14,{'variant':_0x5dca20(0x247),'onClick':()=>_0x51e76f['startFollowing'](),'children':_0x5dca20(0x25f)})]});}function Ae(_0x3d71e5){const _0x5f0694=_0x45a5ad,{coordinator:_0xb17ca7}=_0x3d71e5;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x5f0694(0x20e),{'className':_0x5f0694(0x24a),'children':_0x5f0694(0x212)}),_0x45dd85(_0x5dff14,{'variant':_0x5f0694(0x223),'onClick':()=>_0xb17ca7[_0x5f0694(0x226)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3b7ae6=_0x45a5ad;return _0x45dd85(_0x481167,{'children':_0x3b7ae6(0x24c)});}var Fe=Object[_0x45a5ad(0x255)],He=(_0x5b09be,_0x9f53e2,_0x29da23,_0x49a5c5)=>{const _0xea1fd8=_0x45a5ad;for(var _0x3eb7ea=_0x49a5c5>0x1?void 0x0:_0x49a5c5?Fe(_0x9f53e2,_0x29da23):_0x9f53e2,_0x42d386=_0x5b09be[_0xea1fd8(0x246)]-0x1,_0x372432;_0x42d386>=0x0;_0x42d386--)(_0x372432=_0x5b09be[_0x42d386])&&(_0x3eb7ea=_0x372432(_0x3eb7ea)||_0x3eb7ea);return _0x3eb7ea;},A=(_0x45fe5c,_0x11f2a2)=>(_0x1a7ba3,_0x138385)=>_0x11f2a2(_0x1a7ba3,_0x138385,_0x45fe5c);let m=class extends _0x1cac0a{constructor(_0x537918,_0x3b4dd9){const _0x37bbb0=_0x45a5ad;super(),this[_0x37bbb0(0x200)]=_0x537918,this[_0x37bbb0(0x28c)]=_0x3b4dd9,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4f383c=_0x45a5ad;this[_0x4f383c(0x252)](this[_0x4f383c(0x28c)][_0x4f383c(0x211)](_0x264092[_0x4f383c(0x248)],()=>_0x286ddd(Le,this[_0x4f383c(0x200)])));}};m=He([A(0x0,_0x24ac51(_0x37149b)),A(0x1,_0x1e1f8c)],m);const ye=_0x45a5ad(0x240),T={};var Ue=Object[_0x45a5ad(0x255)],Ve=(_0x5485d9,_0x32e11f,_0x1aceaf,_0xe1a468)=>{const _0x53f61f=_0x45a5ad;for(var _0x36a976=_0xe1a468>0x1?void 0x0:_0xe1a468?Ue(_0x32e11f,_0x1aceaf):_0x32e11f,_0x5c7034=_0x5485d9[_0x53f61f(0x246)]-0x1,_0x2e165a;_0x5c7034>=0x0;_0x5c7034--)(_0x2e165a=_0x5485d9[_0x5c7034])&&(_0x36a976=_0x2e165a(_0x36a976)||_0x36a976);return _0x36a976;},je=(_0xf7350c,_0x4918fd)=>(_0x4f3fa5,_0x6e9748)=>_0x4918fd(_0x4f3fa5,_0x6e9748,_0xf7350c);let I=class extends _0x1cac0a{constructor(_0x404c04){const _0x181dc3=_0x45a5ad;super(),this[_0x181dc3(0x27d)]=_0x404c04,this[_0x181dc3(0x26a)]();}[_0x45a5ad(0x26a)](){const _0x137add=_0x45a5ad;[_0x5cee16['id'],_0x3c74b3['id'],_0x2270dd['id']][_0x137add(0x1f4)](_0x278755=>{const _0x54ec9a=_0x137add;this[_0x54ec9a(0x252)](this['_liveShareService']['registerSharedOperation'](_0x278755));});}};I=Ve([je(0x0,_0x24ac51(L))],I);var Me=Object['defineProperty'],ke=Object[_0x45a5ad(0x255)],Ge=(_0x346ffa,_0x266af1,_0x48d2dd)=>_0x266af1 in _0x346ffa?Me(_0x346ffa,_0x266af1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48d2dd}):_0x346ffa[_0x266af1]=_0x48d2dd,We=(_0x22abef,_0x5f0cc5,_0x1c9b64,_0x4d949c)=>{const _0x3750a1=_0x45a5ad;for(var _0x5effe4=_0x4d949c>0x1?void 0x0:_0x4d949c?ke(_0x5f0cc5,_0x1c9b64):_0x5f0cc5,_0x866255=_0x22abef[_0x3750a1(0x246)]-0x1,_0x4e9538;_0x866255>=0x0;_0x866255--)(_0x4e9538=_0x22abef[_0x866255])&&(_0x5effe4=_0x4e9538(_0x5effe4)||_0x5effe4);return _0x5effe4;},F=(_0x3af2f1,_0x198a5b)=>(_0x5ea0fb,_0x4d6562)=>_0x198a5b(_0x5ea0fb,_0x4d6562,_0x3af2f1),B=(_0x120e5c,_0xf36370,_0x4e894e)=>Ge(_0x120e5c,typeof _0xf36370!=_0x45a5ad(0x25b)?_0xf36370+'':_0xf36370,_0x4e894e);const Ye=_0x45a5ad(0x25c);let b=class extends _0x3bdc1a{constructor(_0x35a3df=T,_0x40ea9c,_0xbfe962){const _0xe947ee=_0x45a5ad;super(),this['_config']=_0x35a3df,this[_0xe947ee(0x200)]=_0x40ea9c,this[_0xe947ee(0x225)]=_0xbfe962;const {..._0x4a7572}=_0x468e5c({},T,this[_0xe947ee(0x1f9)]);this[_0xe947ee(0x225)][_0xe947ee(0x217)](ye,_0x4a7572);}['onStarting'](){const _0x1a8ad7=_0x45a5ad;_0x306653(this[_0x1a8ad7(0x200)],_0x2e4e88([[L],[S],[I],[m]],this[_0x1a8ad7(0x1f9)][_0x1a8ad7(0x209)])),_0xa73248(this[_0x1a8ad7(0x200)],[[I]]);}['onRendered'](){const _0x3096e3=_0x45a5ad;_0xa73248(this[_0x3096e3(0x200)],[[m]]);}};B(b,_0x45a5ad(0x23a),_0x483ab7[_0x45a5ad(0x222)]),B(b,_0x45a5ad(0x293),Ye),b=We([_0x13afb3(_0x2cd52a),F(0x1,_0x24ac51(_0x37149b)),F(0x2,_0x243378)],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(_0x5e5b25,_0x589b62){const _0x71d384=_0x58ca,_0xf666cc=_0x5e5b25();while(!![]){try{const _0x2cd69c=parseInt(_0x71d384(0x100))/0x1*(-parseInt(_0x71d384(0xea))/0x2)+-parseInt(_0x71d384(0x111))/0x3+parseInt(_0x71d384(0xf9))/0x4+parseInt(_0x71d384(0x110))/0x5*(-parseInt(_0x71d384(0xe2))/0x6)+parseInt(_0x71d384(0xf5))/0x7+-parseInt(_0x71d384(0xde))/0x8*(parseInt(_0x71d384(0xdf))/0x9)+-parseInt(_0x71d384(0xe9))/0xa*(-parseInt(_0x71d384(0xed))/0xb);if(_0x2cd69c===_0x589b62)break;else _0xf666cc['push'](_0xf666cc['shift']());}catch(_0x6ee3bc){_0xf666cc['push'](_0xf666cc['shift']());}}}(_0x3b83,0xc6bd2),function(_0x2ac644,_0x4628f3){const _0x4dfd79=_0x58ca;typeof exports=='object'&&typeof module<'u'?_0x4628f3(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==_0x4dfd79(0x112)&&define[_0x4dfd79(0x10a)]?define([_0x4dfd79(0x10f),_0x4dfd79(0xe1),_0x4dfd79(0x107),_0x4dfd79(0xe3),'@univerjs/sheets/facade',_0x4dfd79(0x102)],_0x4628f3):(_0x2ac644=typeof globalThis<'u'?globalThis:_0x2ac644||self,_0x4628f3(_0x2ac644['UniverProLiveShare'],_0x2ac644['UniverEngineRender'],_0x2ac644[_0x4dfd79(0xf7)],_0x2ac644[_0x4dfd79(0x109)],_0x2ac644[_0x4dfd79(0x10d)],_0x2ac644[_0x4dfd79(0xf1)]));}(this,function(_0x1cd7c4,_0x4c8efc,_0x1a1786,_0x1dca77,_0x23608d,_0x50f880){'use strict';const _0x1ba62f=_0x58ca;class _0x179f7a extends _0x23608d[_0x1ba62f(0xec)]{[_0x1ba62f(0xf8)](_0x1d1774,_0x34f27b,_0x27a2c4,_0x4b1152,_0x8ea02b){const _0x4dac98=_0x1ba62f,_0xc90596=_0x1d1774[_0x4dac98(0xfc)](_0x1cd7c4[_0x4dac98(0x103)]),_0x3c26a4=_0x1d1774['get'](_0x4c8efc[_0x4dac98(0xf2)]),_0x46a0d8=_0x34f27b['getUnitId'](),_0x4d12ce=_0x34f27b[_0x4dac98(0xee)](),_0x1f323c=_0xc90596['getLiveShareCoordinatorSync'](_0x46a0d8);(_0x1f323c==null?void 0x0:_0x1f323c[_0x4dac98(0xfd)]())!==_0x1cd7c4[_0x4dac98(0xe6)][_0x4dac98(0xfe)]||(_0x27a2c4['getSheetId']()!==_0x4d12ce[_0x4dac98(0xfb)]()&&this[_0x4dac98(0xe8)][_0x4dac98(0xf3)](_0x1a1786[_0x4dac98(0x104)]['id'],{'unitId':_0x46a0d8,'subUnitId':_0x27a2c4[_0x4dac98(0xfb)]()}),!_0x3c26a4['getRenderById'](_0x46a0d8))||_0x8ea02b[_0x4dac98(0xf6)](_0x1dca77['SetScrollOperation']['id'],{'unitId':_0x34f27b[_0x4dac98(0x10e)](),'sheetId':_0x27a2c4[_0x4dac98(0xfb)](),'sheetViewStartRow':_0x4b1152[_0x4dac98(0xe5)],'sheetViewStartColumn':_0x4b1152[_0x4dac98(0xeb)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x23608d['FRange'][_0x1ba62f(0xff)](_0x179f7a);class _0x230ee1 extends _0x50f880[_0x1ba62f(0xf0)]{[_0x1ba62f(0xe0)](){const _0x3b2fba=_0x1ba62f;var _0xa46a12,_0xaed1e9;const _0x3c6c78=this[_0x3b2fba(0x101)][_0x3b2fba(0xfc)](_0x1cd7c4['LiveShareController']),_0x416f36=(_0xa46a12=this[_0x3b2fba(0x108)]())==null?void 0x0:_0xa46a12[_0x3b2fba(0xe4)]();if(!_0x416f36)throw new Error(_0x3b2fba(0xef));const _0x3f507d=_0x3c6c78[_0x3b2fba(0xf4)](_0x416f36);return(_0xaed1e9=_0x3f507d==null?void 0x0:_0x3f507d[_0x3b2fba(0xfd)]())!=null?_0xaed1e9:_0x1cd7c4[_0x3b2fba(0xe6)]['IDLE'];}['startFollowing'](){const _0x30ea92=_0x1ba62f;var _0x4165f0;const _0x3a713f=this[_0x30ea92(0x101)][_0x30ea92(0xfc)](_0x1cd7c4['LiveShareController']),_0x5775a3=(_0x4165f0=this[_0x30ea92(0x108)]())==null?void 0x0:_0x4165f0[_0x30ea92(0xe4)]();if(!_0x5775a3)throw new Error(_0x30ea92(0xef));const _0x39abcf=_0x3a713f[_0x30ea92(0xf4)](_0x5775a3);if(!_0x39abcf)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x39abcf[_0x30ea92(0x113)]();}['stopFollowing'](){const _0x7ddd02=_0x1ba62f;var _0x3b9ffd;const _0x5815c3=this['_injector']['get'](_0x1cd7c4['LiveShareController']),_0x54ca9e=(_0x3b9ffd=this[_0x7ddd02(0x108)]())==null?void 0x0:_0x3b9ffd[_0x7ddd02(0xe4)]();if(!_0x54ca9e)throw new Error(_0x7ddd02(0xef));const _0xad4db8=_0x5815c3[_0x7ddd02(0xf4)](_0x54ca9e);if(!_0xad4db8)throw new Error(_0x7ddd02(0xdd));_0xad4db8[_0x7ddd02(0x105)]();}[_0x1ba62f(0xfa)](){const _0xa0c4fd=_0x1ba62f;var _0x4ba299;const _0x564cee=this[_0xa0c4fd(0x101)]['get'](_0x1cd7c4[_0xa0c4fd(0x103)]),_0x51ecf3=(_0x4ba299=this['getActiveWorkbook']())==null?void 0x0:_0x4ba299[_0xa0c4fd(0xe4)]();if(!_0x51ecf3)throw new Error(_0xa0c4fd(0xef));const _0x54dba3=_0x564cee[_0xa0c4fd(0xf4)](_0x51ecf3);if(!_0x54dba3)throw new Error(_0xa0c4fd(0xdd));_0x54dba3[_0xa0c4fd(0x10c)]();}[_0x1ba62f(0xe7)](){const _0x10b699=_0x1ba62f;var _0x525098;const _0x21210c=this['_injector'][_0x10b699(0xfc)](_0x1cd7c4['LiveShareController']),_0x5bfa87=(_0x525098=this['getActiveWorkbook']())==null?void 0x0:_0x525098[_0x10b699(0xe4)]();if(!_0x5bfa87)throw new Error('No\x20active\x20workbook\x20found.');const _0x288afb=_0x21210c[_0x10b699(0xf4)](_0x5bfa87);if(!_0x288afb)throw new Error(_0x10b699(0xdd));_0x288afb[_0x10b699(0xe7)]();}}_0x50f880[_0x1ba62f(0xf0)]['extend'](_0x230ee1);class _0x5f36ee extends _0x50f880[_0x1ba62f(0x10b)]{get[_0x1ba62f(0x106)](){const _0x2712ac=_0x1ba62f;return _0x1cd7c4[_0x2712ac(0xe6)];}}_0x50f880['FEnum']['extend'](_0x5f36ee);}));function _0x58ca(_0x2c2b2f,_0x5a090a){_0x2c2b2f=_0x2c2b2f-0xdd;const _0x3b83a6=_0x3b83();let _0x58ca4a=_0x3b83a6[_0x2c2b2f];return _0x58ca4a;}function _0x3b83(){const _0xc4e4f9=['_injector','@univerjs/core/facade','LiveShareController','SetWorksheetActiveOperation','stopFollowing','LiveShareStatusEnum','@univerjs/sheets','getActiveWorkbook','UniverSheetsUi','amd','FEnum','tryStartPresenting','UniverSheetsFacade','getUnitId','@univerjs-pro/live-share','60425nTwBkm','4877574zqjpjj','function','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','40CcUgoZ','1095201uRLwmn','getLiveShareStatus','@univerjs/engine-render','726xJVDwk','@univerjs/sheets-ui','getId','startRow','LiveShareStatus','stopPresenting','_commandService','35430ORVGcm','6KKwOQv','startColumn','FRange','10692PoGQcn','getActiveSheet','No\x20active\x20workbook\x20found.','FUniver','UniverCoreFacade','IRenderManagerService','executeCommand','getLiveShareCoordinatorSync','7340879YrdvtZ','syncExecuteCommand','UniverSheets','_initialize','6120816IyCtpk','startPresenting','getSheetId','get','getStatus','PRESENTING','extend','504025xCCXql'];_0x3b83=function(){return _0xc4e4f9;};return _0x3b83();}
1
+ function _0x57e4(){const _0x2421fa=['UniverSheetsUi','SetWorksheetActiveOperation','7796502shTGMm','2BECtYf','6679743EZRsVN','No\x20active\x20workbook\x20found.','get','object','UniverProLiveShare','startColumn','UniverSheetsFacade','@univerjs/sheets','FEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_injector','getId','startRow','IRenderManagerService','@univerjs/core/facade','FUniver','startPresenting','extend','getSheetId','SetScrollOperation','getLiveShareStatus','getActiveWorkbook','LiveShareController','874155JGpDQq','syncExecuteCommand','getRenderById','getActiveSheet','IDLE','7281355BlzpQn','function','getUnitId','getLiveShareCoordinatorSync','stopPresenting','13791024ofPTcx','FRange','UniverCoreFacade','stopFollowing','startFollowing','getStatus','_commandService','LiveShareStatus','3617397zNKPIw','2093880fHqbRT'];_0x57e4=function(){return _0x2421fa;};return _0x57e4();}function _0x9aa9(_0xb5e11a,_0x524d5f){_0xb5e11a=_0xb5e11a-0x66;const _0x57e453=_0x57e4();let _0x9aa939=_0x57e453[_0xb5e11a];return _0x9aa939;}(function(_0x538c00,_0x2d8c43){const _0x4efe5d=_0x9aa9,_0x5c0adb=_0x538c00();while(!![]){try{const _0x19bc62=parseInt(_0x4efe5d(0x81))/0x1*(parseInt(_0x4efe5d(0x69))/0x2)+-parseInt(_0x4efe5d(0x93))/0x3+parseInt(_0x4efe5d(0x94))/0x4+-parseInt(_0x4efe5d(0x86))/0x5+parseInt(_0x4efe5d(0x68))/0x6+-parseInt(_0x4efe5d(0x6a))/0x7+parseInt(_0x4efe5d(0x8b))/0x8;if(_0x19bc62===_0x2d8c43)break;else _0x5c0adb['push'](_0x5c0adb['shift']());}catch(_0x383cea){_0x5c0adb['push'](_0x5c0adb['shift']());}}}(_0x57e4,0xc46f9),function(_0x553643,_0x192fd0){const _0x5df402=_0x9aa9;typeof exports==_0x5df402(0x6d)&&typeof module<'u'?_0x192fd0(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==_0x5df402(0x87)&&define['amd']?define(['@univerjs-pro/live-share','@univerjs/engine-render',_0x5df402(0x71),'@univerjs/sheets-ui','@univerjs/sheets/facade',_0x5df402(0x78)],_0x192fd0):(_0x553643=typeof globalThis<'u'?globalThis:_0x553643||self,_0x192fd0(_0x553643[_0x5df402(0x6e)],_0x553643['UniverEngineRender'],_0x553643['UniverSheets'],_0x553643[_0x5df402(0x66)],_0x553643[_0x5df402(0x70)],_0x553643[_0x5df402(0x8d)]));}(this,function(_0x1cecd8,_0x402c56,_0x3fbcc3,_0x3f3e75,_0x3795ee,_0x7fee08){'use strict';const _0x30f8ab=_0x9aa9;class _0xc43041 extends _0x3795ee[_0x30f8ab(0x8c)]{['_initialize'](_0x267be0,_0x4d3da3,_0x49610b,_0x421520,_0x36b100){const _0x1d78b4=_0x30f8ab,_0x57a711=_0x267be0[_0x1d78b4(0x6c)](_0x1cecd8['LiveShareController']),_0x2c1a29=_0x267be0[_0x1d78b4(0x6c)](_0x402c56[_0x1d78b4(0x77)]),_0x3d6eb7=_0x4d3da3[_0x1d78b4(0x88)](),_0x34d179=_0x4d3da3[_0x1d78b4(0x84)](),_0x2cf1b4=_0x57a711[_0x1d78b4(0x89)](_0x3d6eb7);(_0x2cf1b4==null?void 0x0:_0x2cf1b4[_0x1d78b4(0x90)]())!==_0x1cecd8[_0x1d78b4(0x92)]['PRESENTING']||(_0x49610b['getSheetId']()!==_0x34d179[_0x1d78b4(0x7c)]()&&this[_0x1d78b4(0x91)]['executeCommand'](_0x3fbcc3[_0x1d78b4(0x67)]['id'],{'unitId':_0x3d6eb7,'subUnitId':_0x49610b[_0x1d78b4(0x7c)]()}),!_0x2c1a29[_0x1d78b4(0x83)](_0x3d6eb7))||_0x36b100[_0x1d78b4(0x82)](_0x3f3e75[_0x1d78b4(0x7d)]['id'],{'unitId':_0x4d3da3[_0x1d78b4(0x88)](),'sheetId':_0x49610b[_0x1d78b4(0x7c)](),'sheetViewStartRow':_0x421520[_0x1d78b4(0x76)],'sheetViewStartColumn':_0x421520[_0x1d78b4(0x6f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3795ee[_0x30f8ab(0x8c)][_0x30f8ab(0x7b)](_0xc43041);class _0x1ced37 extends _0x7fee08[_0x30f8ab(0x79)]{[_0x30f8ab(0x7e)](){const _0x5bfd7c=_0x30f8ab;var _0x4fa79e,_0xc31a00;const _0x55f341=this[_0x5bfd7c(0x74)]['get'](_0x1cecd8[_0x5bfd7c(0x80)]),_0x4fcbfd=(_0x4fa79e=this['getActiveWorkbook']())==null?void 0x0:_0x4fa79e[_0x5bfd7c(0x75)]();if(!_0x4fcbfd)throw new Error(_0x5bfd7c(0x6b));const _0x27bdfd=_0x55f341[_0x5bfd7c(0x89)](_0x4fcbfd);return(_0xc31a00=_0x27bdfd==null?void 0x0:_0x27bdfd[_0x5bfd7c(0x90)]())!=null?_0xc31a00:_0x1cecd8[_0x5bfd7c(0x92)][_0x5bfd7c(0x85)];}[_0x30f8ab(0x8f)](){const _0x3da0c3=_0x30f8ab;var _0x1aff5c;const _0x14c7f4=this['_injector'][_0x3da0c3(0x6c)](_0x1cecd8[_0x3da0c3(0x80)]),_0x3d8ac6=(_0x1aff5c=this[_0x3da0c3(0x7f)]())==null?void 0x0:_0x1aff5c[_0x3da0c3(0x75)]();if(!_0x3d8ac6)throw new Error(_0x3da0c3(0x6b));const _0x1683ec=_0x14c7f4[_0x3da0c3(0x89)](_0x3d8ac6);if(!_0x1683ec)throw new Error(_0x3da0c3(0x73));_0x1683ec[_0x3da0c3(0x8f)]();}[_0x30f8ab(0x8e)](){const _0x3e68ac=_0x30f8ab;var _0x4d5ee7;const _0x11c489=this[_0x3e68ac(0x74)][_0x3e68ac(0x6c)](_0x1cecd8[_0x3e68ac(0x80)]),_0x8dd2b=(_0x4d5ee7=this[_0x3e68ac(0x7f)]())==null?void 0x0:_0x4d5ee7['getId']();if(!_0x8dd2b)throw new Error(_0x3e68ac(0x6b));const _0x29a9d6=_0x11c489[_0x3e68ac(0x89)](_0x8dd2b);if(!_0x29a9d6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x29a9d6[_0x3e68ac(0x8e)]();}[_0x30f8ab(0x7a)](){const _0x4ecea7=_0x30f8ab;var _0x46c697;const _0x4a664d=this[_0x4ecea7(0x74)][_0x4ecea7(0x6c)](_0x1cecd8[_0x4ecea7(0x80)]),_0xe4723a=(_0x46c697=this[_0x4ecea7(0x7f)]())==null?void 0x0:_0x46c697['getId']();if(!_0xe4723a)throw new Error(_0x4ecea7(0x6b));const _0x27eefe=_0x4a664d[_0x4ecea7(0x89)](_0xe4723a);if(!_0x27eefe)throw new Error(_0x4ecea7(0x73));_0x27eefe['tryStartPresenting']();}[_0x30f8ab(0x8a)](){const _0x31a4d9=_0x30f8ab;var _0x37809f;const _0x1d861a=this['_injector'][_0x31a4d9(0x6c)](_0x1cecd8[_0x31a4d9(0x80)]),_0x3c5492=(_0x37809f=this['getActiveWorkbook']())==null?void 0x0:_0x37809f[_0x31a4d9(0x75)]();if(!_0x3c5492)throw new Error(_0x31a4d9(0x6b));const _0x2d9bb2=_0x1d861a['getLiveShareCoordinatorSync'](_0x3c5492);if(!_0x2d9bb2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2d9bb2[_0x31a4d9(0x8a)]();}}_0x7fee08[_0x30f8ab(0x79)][_0x30f8ab(0x7b)](_0x1ced37);class _0x313394 extends _0x7fee08[_0x30f8ab(0x72)]{get['LiveShareStatusEnum'](){const _0x4ff01a=_0x30f8ab;return _0x1cecd8[_0x4ff01a(0x92)];}}_0x7fee08[_0x30f8ab(0x72)][_0x30f8ab(0x7b)](_0x313394);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x51cb(){const _0x564161=['SetZoomRatioOperation','UNIVER_SHEET','substring','UniverLiveSharePlugin','map','stringify','Start\x20following','UniverCore','Disposable','LiveShareCoordinator','UniverIcon','UniverSheets','IUIPartsService','_config','disposeWithMe','registerComponent','evenodd','text','getTypeOfUnitAdded$','registerInitialStateReporter','getCurrentTypeOfUnit$','object','includes','fill','UniverCollaborationClientPlugin','CommandType','SetScrollOperation','IDLE','_collabSessionService','3480knQyFm','Fragment','toDisposable','not-following','NOT_FOLLOWING','getLiveShareCoordinatorSync','BuiltInUIPart','toString','getLiveShareCoordinator','connectInjector','5089806tIJfvO','http://www.w3.org/2000/svg','univer-mb-3\x20univer-w-full\x20univer-text-sm','children','override','55ueqSwx','forEach','add','54472VJgkXM','stopFollowing','Button','idSuffix','next','UniverProCollaborationClient','_handleOperation','jsxs','tag','set','attrs','registerSharedOperation','none','parse','takeUntil','_stopFollowing','entries','getStatus','defs','end','shouldShareOperation','0\x200\x2017\x2017','react/jsx-runtime','onRendered','delete','init','HEADER_MENU','get','IUniverInstanceService','_reporters','toStringTag','default','UniverDesign','assign','dispose','RxDisposable','BehaviorSubject','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','executeCommand','startFollowing','LiveShareService','operators','onStarting','LiveShareStatus','colorChannel1','_unitID','getMemberID','path','692000JXSRYA','4224178EcyqGV','useDependency','dispose$','operations','exports','data','presenting','Subject','LiveShare','_uiPartsService','@univerjs/ui','Stop\x20following','univer-size-4','url(#$1','UniverInstanceType','IConfigService','7369hWtNdX','1em','status$','complete','div','_collabSession','reverse','Module','getTypeOfUnitDisposed$','amd','LiveShareController','mutations','event$','_sharedOperations','stopPresenting','226cEokWC','FOLLOWING','replace','_injector','trim','LIVESHARE_TERMINATE','_mountLiveShare','rxjs','onCommandExecuted','string','type','OFFLINE','jsx','getConfig','963SlnTsB','has','following','registerDependencies','requireSession','createElement','@univerjs/design','clear','mask','_status$','button','1986caJLKk','_handleNewChangeSets','throttleTime','_configService','Inject','defineProperty','SessionStatus','useRef','symbol','DisposableCollection','_handleNewHost','_startFollowing','DesktopLiveShareController','getInitialStates','CollaborationEvent','memberID','getUnitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','touchDependencies','current','Plugin','DependentOn','react','_liveShareService','_status','You\x27re\x20following\x20the\x20presenter','useObservable','React','xlink:href','svg','getValue','UNIVER_UNKNOWN','_commandService','InsertSheetMutation','Dropdown','_commandDisposable','_fetchOperations','LIVESHARE_FETCH_OPERATIONS','idle','_handleOffline','_univerInstanceService','LIVESHARE_OPERATION','_presenter','pipe','presenter','parseProtocolChangeset','forwardRef','sessionStatus$','4036230GJXuyi','unitId','_stopPresenting','send','SetWorksheetActiveOperation','UNIVER_LIVE_SHARE_PLUGIN','_entities','_init','defIds','UniverProCollaboration','Injector','params','clsx','You\x27re\x20presenting\x20the\x20document','subscribe','OPERATION','live-share-icon','UniverUi','You\x27are\x20offline.','length','@univerjs/sheets-ui','@univerjs/sheets','values','ICommandService','LiveShareIcon','offline','tryStartPresenting','random','LIVESHARE_NEW_HOST','_startLiveShareCoordinator','_handleTerminate','_handleOnline','from','pluginName'];_0x51cb=function(){return _0x564161;};return _0x51cb();}function _0x261d(_0x1fa567,_0x59a7fa){_0x1fa567=_0x1fa567-0x160;const _0x51cba5=_0x51cb();let _0x261d24=_0x51cba5[_0x1fa567];return _0x261d24;}(function(_0x425b75,_0x2c99f7){const _0x5e322e=_0x261d,_0x3fb9f1=_0x425b75();while(!![]){try{const _0x34b00e=parseInt(_0x5e322e(0x225))/0x1*(-parseInt(_0x5e322e(0x234))/0x2)+-parseInt(_0x5e322e(0x163))/0x3*(-parseInt(_0x5e322e(0x1d2))/0x4)+parseInt(_0x5e322e(0x193))/0x5+-parseInt(_0x5e322e(0x1dc))/0x6+parseInt(_0x5e322e(0x215))/0x7+-parseInt(_0x5e322e(0x1e4))/0x8*(-parseInt(_0x5e322e(0x242))/0x9)+-parseInt(_0x5e322e(0x214))/0xa*(parseInt(_0x5e322e(0x1e1))/0xb);if(_0x34b00e===_0x2c99f7)break;else _0x3fb9f1['push'](_0x3fb9f1['shift']());}catch(_0x5b7110){_0x3fb9f1['push'](_0x3fb9f1['shift']());}}}(_0x51cb,0xa804d),function(_0x526a79,_0x1c3eb0){const _0x1ea90d=_0x261d;typeof exports==_0x1ea90d(0x1ca)&&typeof module<'u'?_0x1c3eb0(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x1ea90d(0x22e)]?define([_0x1ea90d(0x219),'@univerjs/core',_0x1ea90d(0x21f),_0x1ea90d(0x1fa),_0x1ea90d(0x248),_0x1ea90d(0x179),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x1ea90d(0x1a8),'rxjs','rxjs/operators',_0x1ea90d(0x1a7)],_0x1c3eb0):(_0x526a79=typeof globalThis<'u'?globalThis:_0x526a79||self,_0x1c3eb0(_0x526a79['UniverProLiveShare']={},_0x526a79[_0x1ea90d(0x1bc)],_0x526a79[_0x1ea90d(0x1a4)],_0x526a79[_0x1ea90d(0x17e)],_0x526a79[_0x1ea90d(0x204)],_0x526a79['React'],_0x526a79[_0x1ea90d(0x19c)],_0x526a79[_0x1ea90d(0x1e9)],_0x526a79[_0x1ea90d(0x1c0)],_0x526a79['rxjs'],_0x526a79[_0x1ea90d(0x23b)][_0x1ea90d(0x20d)],_0x526a79['UniverSheetsUi']));}(this,function(_0x52b2bb,_0xc8c7c7,_0x4a31f3,_0x922d4b,_0x23f433,_0x4e4f78,_0x5efb40,_0x2e4f77,_0xad4dfa,_0x6b2f4e,_0x480794,_0x1c67a8){'use strict';const _0x302812=_0x261d;var _0x4f1fca=Object[_0x302812(0x168)],_0x143315=(_0x25a8ad,_0x377ed1,_0x4bcc69)=>_0x377ed1 in _0x25a8ad?_0x4f1fca(_0x25a8ad,_0x377ed1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bcc69}):_0x25a8ad[_0x377ed1]=_0x4bcc69,_0x11c62c=(_0x50d866,_0x5b5441,_0xcd583b)=>_0x143315(_0x50d866,typeof _0x5b5441!=_0x302812(0x16b)?_0x5b5441+'':_0x5b5441,_0xcd583b);function _0x5545a2({ref:_0xb28bff,..._0x9a7ed9}){const _0x2533fb=_0x302812,{icon:_0x267677,id:_0x278416,className:_0x46447b,extend:_0x194b35,..._0x35e21f}=_0x9a7ed9,_0x2fa270=('univerjs-icon\x20univerjs-icon-'+_0x278416+'\x20'+(_0x46447b||''))[_0x2533fb(0x238)](),_0x58f3aa=_0x4e4f78[_0x2533fb(0x16a)]('_'+_0x5a4130());return _0x1c6144(_0x267677,''+_0x278416,{'defIds':_0x267677[_0x2533fb(0x19b)],'idSuffix':_0x58f3aa['current']},{'ref':_0xb28bff,'className':_0x2fa270,..._0x35e21f},_0x194b35);}function _0x1c6144(_0x1fb013,_0x2f1dfe,_0x2b252a,_0x1d6518,_0x5c455d){const _0x590f0f=_0x302812;return _0x4e4f78[_0x590f0f(0x247)](_0x1fb013[_0x590f0f(0x1ec)],{'key':_0x2f1dfe,..._0x2489db(_0x1fb013,_0x2b252a,_0x5c455d),..._0x1d6518},(_0x22a9d0(_0x1fb013,_0x2b252a)[_0x590f0f(0x1df)]||[])['map']((_0x3518f2,_0x2e41ca)=>_0x1c6144(_0x3518f2,_0x2f1dfe+'-'+_0x1fb013[_0x590f0f(0x1ec)]+'-'+_0x2e41ca,_0x2b252a,void 0x0,_0x5c455d)));}function _0x2489db(_0x38b294,_0x3add1e,_0x4a937b){const _0x33ef00=_0x302812,_0x1bfe44={..._0x38b294['attrs']};_0x4a937b!=null&&_0x4a937b[_0x33ef00(0x210)]&&_0x1bfe44[_0x33ef00(0x1cc)]===_0x33ef00(0x210)&&(_0x1bfe44[_0x33ef00(0x1cc)]=_0x4a937b[_0x33ef00(0x210)]),_0x38b294['tag']===_0x33ef00(0x160)&&_0x1bfe44['id']&&(_0x1bfe44['id']=_0x1bfe44['id']+_0x3add1e[_0x33ef00(0x1e7)]),Object['entries'](_0x1bfe44)[_0x33ef00(0x1e2)](([_0x4078ab,_0x4c825b])=>{const _0x5d51c9=_0x33ef00;_0x4078ab===_0x5d51c9(0x160)&&typeof _0x4c825b=='string'&&(_0x1bfe44[_0x4078ab]=_0x4c825b[_0x5d51c9(0x236)](/url\(#(.*)\)/,_0x5d51c9(0x222)+_0x3add1e[_0x5d51c9(0x1e7)]+')'));});const {defIds:_0x3f37d8}=_0x3add1e;return!_0x3f37d8||_0x3f37d8['length']===0x0||(_0x38b294[_0x33ef00(0x1ec)]==='use'&&_0x1bfe44[_0x33ef00(0x17f)]&&(_0x1bfe44[_0x33ef00(0x17f)]=_0x1bfe44[_0x33ef00(0x17f)]+_0x3add1e[_0x33ef00(0x1e7)]),Object[_0x33ef00(0x1f4)](_0x1bfe44)[_0x33ef00(0x1e2)](([_0x1f51a6,_0x39b45a])=>{const _0x336754=_0x33ef00;typeof _0x39b45a=='string'&&(_0x1bfe44[_0x1f51a6]=_0x39b45a[_0x336754(0x236)](/url\(#(.*)\)/,_0x336754(0x222)+_0x3add1e[_0x336754(0x1e7)]+')'));})),_0x1bfe44;}function _0x22a9d0(_0x4e6c05,_0xcb8cab){const _0x27973b=_0x302812;var _0x38f097;const {defIds:_0x2b9c45}=_0xcb8cab;return!_0x2b9c45||_0x2b9c45[_0x27973b(0x1a6)]===0x0?_0x4e6c05:_0x4e6c05[_0x27973b(0x1ec)]===_0x27973b(0x1f6)&&((_0x38f097=_0x4e6c05[_0x27973b(0x1df)])!=null&&_0x38f097['length'])?{..._0x4e6c05,'children':_0x4e6c05['children']['map'](_0xceee68=>typeof _0xceee68[_0x27973b(0x1ee)]['id']==_0x27973b(0x23d)&&_0x2b9c45&&_0x2b9c45[_0x27973b(0x1cb)](_0xceee68['attrs']['id'])?{..._0xceee68,'attrs':{..._0xceee68[_0x27973b(0x1ee)],'id':_0xceee68[_0x27973b(0x1ee)]['id']+_0xcb8cab[_0x27973b(0x1e7)]}}:_0xceee68)}:_0x4e6c05;}function _0x5a4130(){const _0x2f9b70=_0x302812;return Math[_0x2f9b70(0x1ae)]()[_0x2f9b70(0x1d9)](0x24)[_0x2f9b70(0x1b7)](0x2,0x8);}_0x5545a2['displayName']=_0x302812(0x1bf);const _0x2fad4b={'tag':_0x302812(0x180),'attrs':{'xmlns':_0x302812(0x1dd),'fill':_0x302812(0x1f0),'viewBox':_0x302812(0x1f9),'width':_0x302812(0x226),'height':_0x302812(0x226)},'children':[{'tag':_0x302812(0x213),'attrs':{'fill':'currentColor','d':_0x302812(0x209)}},{'tag':_0x302812(0x213),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x302812(0x1c5),'clipRule':_0x302812(0x1c5)}}]},_0x284df4=_0x4e4f78[_0x302812(0x191)](function(_0x8835f6,_0x477c35){const _0x531ef3=_0x302812;return _0x4e4f78[_0x531ef3(0x247)](_0x5545a2,Object[_0x531ef3(0x205)]({},_0x8835f6,{'id':_0x531ef3(0x1a3),'ref':_0x477c35,'icon':_0x2fad4b}));});_0x284df4['displayName']=_0x302812(0x1ab);class _0x308d27 extends _0xc8c7c7[_0x302812(0x1bd)]{constructor(){const _0x108af5=_0x302812;super(...arguments),_0x11c62c(this,_0x108af5(0x232),new Set()),_0x11c62c(this,_0x108af5(0x201),new Set());}[_0x302812(0x1ef)](_0x1d2233){const _0x3dd39a=_0x302812;return this['_sharedOperations']['add'](_0x1d2233),_0xc8c7c7[_0x3dd39a(0x1d4)](()=>this[_0x3dd39a(0x232)][_0x3dd39a(0x1fc)](_0x1d2233));}[_0x302812(0x1c8)](_0x574716){const _0x1f0c3d=_0x302812;return this[_0x1f0c3d(0x201)]['add'](_0x574716),_0xc8c7c7[_0x1f0c3d(0x1d4)](()=>this['_reporters'][_0x1f0c3d(0x1fc)](_0x574716));}['shouldShareOperation'](_0x61e70a){const _0x2f4b7e=_0x302812;return this['_sharedOperations'][_0x2f4b7e(0x243)](_0x61e70a);}['getInitialStates'](_0x1c36c5){const _0x3071f2=_0x302812;return Array[_0x3071f2(0x1b3)](this[_0x3071f2(0x201)])[_0x3071f2(0x1b9)](_0x306d1e=>_0x306d1e(_0x1c36c5));}}var _0x3c18f4=Object['getOwnPropertyDescriptor'],_0x3d76a6=(_0x58f4b5,_0x6302ee,_0x4a832c,_0x2cf5f7)=>{const _0x13ce22=_0x302812;for(var _0x52c1e7=_0x2cf5f7>0x1?void 0x0:_0x2cf5f7?_0x3c18f4(_0x6302ee,_0x4a832c):_0x6302ee,_0xe8a6b=_0x58f4b5[_0x13ce22(0x1a6)]-0x1,_0x41c626;_0xe8a6b>=0x0;_0xe8a6b--)(_0x41c626=_0x58f4b5[_0xe8a6b])&&(_0x52c1e7=_0x41c626(_0x52c1e7)||_0x52c1e7);return _0x52c1e7;},_0x1161a2=(_0x1db97b,_0x5717e4)=>(_0x5aed70,_0x3ebc64)=>_0x5717e4(_0x5aed70,_0x3ebc64,_0x1db97b);_0x52b2bb[_0x302812(0x22f)]=class extends _0xc8c7c7[_0x302812(0x207)]{constructor(_0xc7f2ba,_0x4c0f07,_0x23baad){const _0x49455d=_0x302812;super(),_0x11c62c(this,_0x49455d(0x199),new Map()),(this[_0x49455d(0x18b)]=_0xc7f2ba,this[_0x49455d(0x237)]=_0x4c0f07,this[_0x49455d(0x1d1)]=_0x23baad,this[_0x49455d(0x19a)]());}async['getLiveShareCoordinator'](_0x1e32d){const _0xaad370=_0x302812;return this[_0xaad370(0x199)][_0xaad370(0x243)](_0x1e32d)||await this[_0xaad370(0x1b0)](_0x1e32d),this[_0xaad370(0x199)][_0xaad370(0x1ff)](_0x1e32d);}[_0x302812(0x1d7)](_0x4974b7){const _0x1d7285=_0x302812;var _0x5da5aa;return(_0x5da5aa=this[_0x1d7285(0x199)]['get'](_0x4974b7))!=null?_0x5da5aa:null;}[_0x302812(0x19a)](){const _0x3dc966=_0x302812;this[_0x3dc966(0x18b)][_0x3dc966(0x1c7)](_0xc8c7c7[_0x3dc966(0x223)][_0x3dc966(0x1b6)])[_0x3dc966(0x18e)](_0x480794[_0x3dc966(0x1f2)](this[_0x3dc966(0x217)]))[_0x3dc966(0x1a1)](async _0x51a64f=>{const _0x4ec70f=_0x3dc966,_0x1978f0=_0x51a64f['getUnitId']();this[_0x4ec70f(0x199)][_0x4ec70f(0x243)](_0x1978f0)||this[_0x4ec70f(0x1b0)](_0x1978f0);}),this['_univerInstanceService'][_0x3dc966(0x22d)](_0xc8c7c7[_0x3dc966(0x223)]['UNIVER_SHEET'])[_0x3dc966(0x18e)](_0x480794[_0x3dc966(0x1f2)](this[_0x3dc966(0x217)]))[_0x3dc966(0x1a1)](_0x3c78cd=>{const _0x5b3ca8=_0x3dc966,_0x596677=_0x3c78cd[_0x5b3ca8(0x173)](),_0x58710c=this['_entities'][_0x5b3ca8(0x1ff)](_0x596677);_0x58710c==null||_0x58710c['dispose']();});}async['_startLiveShareCoordinator'](_0x20a769){const _0x2974e7=_0x302812,_0x4ade76=await this[_0x2974e7(0x1d1)][_0x2974e7(0x246)](_0x20a769),_0xc53d31=this[_0x2974e7(0x237)]['createInstance'](_0x52b2bb['LiveShareCoordinator'],_0x20a769,_0x4ade76);return _0xc53d31[_0x2974e7(0x1fd)](),this[_0x2974e7(0x199)][_0x2974e7(0x1ed)](_0x20a769,_0xc53d31),_0xc53d31;}},_0x52b2bb[_0x302812(0x22f)]=_0x3d76a6([_0x1161a2(0x0,_0xc8c7c7[_0x302812(0x200)]),_0x1161a2(0x1,_0xc8c7c7[_0x302812(0x167)](_0xc8c7c7[_0x302812(0x19d)])),_0x1161a2(0x2,_0xc8c7c7[_0x302812(0x167)](_0x2e4f77['CollaborationSessionService']))],_0x52b2bb[_0x302812(0x22f)]);var _0xd7551=(_0x278fc3=>(_0x278fc3[_0x302812(0x23f)]='offline',_0x278fc3[_0x302812(0x1d0)]=_0x302812(0x189),_0x278fc3[_0x302812(0x235)]=_0x302812(0x244),_0x278fc3['NOT_FOLLOWING']=_0x302812(0x1d5),_0x278fc3['PRESENTING']=_0x302812(0x21b),_0x278fc3))(_0xd7551||{});const _0x4742ec='SAME_OPERATION_SHARE_INTERVAL',_0x565709=0xc8;_0x52b2bb[_0x302812(0x1be)]=class extends _0xc8c7c7[_0x302812(0x207)]{constructor(_0x5c26a3,_0x5a07e4,_0x53093d,_0x3c0787,_0x22412e){const _0x125b79=_0x302812;super(),_0x11c62c(this,_0x125b79(0x161),new _0x6b2f4e[(_0x125b79(0x208))](_0x125b79(0x189))),_0x11c62c(this,_0x125b79(0x227),this[_0x125b79(0x161)]['asObservable']()),_0x11c62c(this,'_init',!0x1),_0x11c62c(this,'_commandDisposable',null),_0x11c62c(this,_0x125b79(0x18d),null),(this[_0x125b79(0x211)]=_0x5c26a3,this[_0x125b79(0x22a)]=_0x5a07e4,this[_0x125b79(0x166)]=_0x53093d,this[_0x125b79(0x17a)]=_0x3c0787,this[_0x125b79(0x183)]=_0x22412e);}get[_0x302812(0x17b)](){const _0x544bf1=_0x302812;return this[_0x544bf1(0x161)][_0x544bf1(0x181)]();}['dispose'](){const _0x7dc3e6=_0x302812;var _0x295e4c;(_0x295e4c=this[_0x7dc3e6(0x186)])==null||_0x295e4c['dispose'](),this['_status$'][_0x7dc3e6(0x1e8)](_0x7dc3e6(0x189)),this['_status$'][_0x7dc3e6(0x228)]();}[_0x302812(0x1f5)](){const _0x170099=_0x302812;return this[_0x170099(0x17b)];}['init'](){const _0x4b878d=_0x302812;this[_0x4b878d(0x19a)]||(this['_init']=!0x0,this[_0x4b878d(0x22a)][_0x4b878d(0x192)]['pipe'](_0x480794[_0x4b878d(0x1f2)](this['dispose$']))[_0x4b878d(0x1a1)](_0x706891=>{const _0x530b41=_0x4b878d;switch(_0x706891){case _0x2e4f77['SessionStatus'][_0x530b41(0x23f)]:this[_0x530b41(0x18a)]();break;case _0x2e4f77[_0x530b41(0x169)]['ONLINE']:this[_0x530b41(0x1b2)]();break;}}),this[_0x4b878d(0x22a)][_0x4b878d(0x231)][_0x4b878d(0x18e)](_0x480794[_0x4b878d(0x1f2)](this[_0x4b878d(0x217)]))['subscribe'](_0x55440e=>{const _0x29f385=_0x4b878d,{eventID:_0x33d79c}=_0x55440e;switch(_0x33d79c){case _0x5efb40[_0x29f385(0x171)][_0x29f385(0x1af)]:this[_0x29f385(0x16d)](_0x55440e);break;case _0x5efb40[_0x29f385(0x171)][_0x29f385(0x18c)]:this['_handleOperation'](_0x55440e);break;case _0x5efb40['CollaborationEvent'][_0x29f385(0x239)]:this[_0x29f385(0x1b1)]();break;case _0x5efb40[_0x29f385(0x171)]['NEW_CHANGESETS']:this[_0x29f385(0x164)](_0x55440e);break;}}));}[_0x302812(0x1ad)](){const _0x24353b=_0x302812;this[_0x24353b(0x22a)]['send']({'eventID':_0x5efb40[_0x24353b(0x171)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x24353b(0x211)],'userID':this[_0x24353b(0x22a)][_0x24353b(0x212)]()}},this[_0x24353b(0x211)]);}[_0x302812(0x233)](){const _0x2ee8bd=_0x302812;this[_0x2ee8bd(0x17b)]===_0x2ee8bd(0x21b)&&(this['_status$'][_0x2ee8bd(0x1e8)](_0x2ee8bd(0x189)),this['_collabSession'][_0x2ee8bd(0x196)]({'eventID':_0x5efb40[_0x2ee8bd(0x171)][_0x2ee8bd(0x239)],'data':{'unitID':this[_0x2ee8bd(0x211)]}},this[_0x2ee8bd(0x211)]));}[_0x302812(0x20b)](){const _0x556a67=_0x302812;this['_status']==='not-following'&&(this[_0x556a67(0x161)][_0x556a67(0x1e8)]('following'),this[_0x556a67(0x16e)]());}['stopFollowing'](){const _0x55009b=_0x302812;this[_0x55009b(0x17b)]===_0x55009b(0x244)&&this[_0x55009b(0x1f3)]();}[_0x302812(0x16d)](_0x20581b){const _0x4423fb=_0x302812,{presenter:_0x4d3e4d}=_0x20581b[_0x4423fb(0x21a)],_0x24376f=this['_collabSession'][_0x4423fb(0x212)]();this[_0x4423fb(0x18d)]=_0x4d3e4d,_0x4d3e4d===_0x24376f?(this[_0x4423fb(0x1f3)](),this['_startPresenting']()):this[_0x4423fb(0x17b)]!=='not-following'&&(this['_stopPresenting'](),this[_0x4423fb(0x16e)]());}[_0x302812(0x187)](){const _0x3569dd=_0x302812,_0x31ce73={'eventID':_0x5efb40[_0x3569dd(0x171)][_0x3569dd(0x188)]};this[_0x3569dd(0x22a)][_0x3569dd(0x196)](_0x31ce73,this[_0x3569dd(0x211)]);}[_0x302812(0x1b1)](){const _0x9296cf=_0x302812;this[_0x9296cf(0x18d)]=null,this[_0x9296cf(0x17b)]!==_0x9296cf(0x21b)&&this['_beIdle']();}[_0x302812(0x164)](_0x76ae02){const _0x23f7bc=_0x302812;if(this[_0x23f7bc(0x17b)]===_0x23f7bc(0x244)&&this[_0x23f7bc(0x18d)]===_0x76ae02[_0x23f7bc(0x21a)][_0x23f7bc(0x172)]){const _0x1eda23=_0x5efb40[_0x23f7bc(0x190)](_0x76ae02[_0x23f7bc(0x21a)])[_0x23f7bc(0x230)][_0x23f7bc(0x22b)]()['find'](_0x46fa14=>_0x46fa14['id']===_0xad4dfa[_0x23f7bc(0x184)]['id']);if(_0x1eda23){const _0x11bfb4=_0x1eda23[_0x23f7bc(0x19e)][_0x23f7bc(0x194)],_0x1b9972=_0x1eda23[_0x23f7bc(0x19e)]['sheet']['id'];setTimeout(()=>{const _0x5be2b8=_0x23f7bc;this[_0x5be2b8(0x183)][_0x5be2b8(0x20a)](_0xad4dfa[_0x5be2b8(0x197)]['id'],{'unitId':_0x11bfb4,'subUnitId':_0x1b9972},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3a2bd2=_0x302812;this[_0x3a2bd2(0x161)][_0x3a2bd2(0x1e8)](_0x3a2bd2(0x21b));const _0x3e824b=new Map(),_0x3378bb=this['_commandDisposable']=new _0xc8c7c7[(_0x3a2bd2(0x16c))]();_0x3378bb[_0x3a2bd2(0x1e3)](_0xc8c7c7[_0x3a2bd2(0x1d4)](()=>{const _0x3b1f3f=_0x3a2bd2;_0x3e824b[_0x3b1f3f(0x1e2)](_0xb13b3=>_0xb13b3[_0x3b1f3f(0x228)]()),_0x3e824b[_0x3b1f3f(0x249)]();})),_0x3378bb[_0x3a2bd2(0x1e3)](this[_0x3a2bd2(0x183)][_0x3a2bd2(0x23c)](_0x5ee677=>{const _0x11ac65=_0x3a2bd2;var _0x23c4dc;if(_0x5ee677['type']!==_0xc8c7c7[_0x11ac65(0x1ce)][_0x11ac65(0x1a2)]||!this[_0x11ac65(0x17a)][_0x11ac65(0x1f8)](_0x5ee677['id']))return;const {id:_0x1da3ec}=_0x5ee677;let _0x294311;_0x3e824b[_0x11ac65(0x243)](_0x1da3ec)?_0x294311=_0x3e824b[_0x11ac65(0x1ff)](_0x1da3ec):(_0x294311=new _0x6b2f4e[(_0x11ac65(0x21c))](),_0x3e824b[_0x11ac65(0x1ed)](_0x1da3ec,_0x294311),_0x294311[_0x11ac65(0x18e)](_0x480794[_0x11ac65(0x165)]((_0x23c4dc=this['_configService'][_0x11ac65(0x241)](_0x4742ec))!=null?_0x23c4dc:_0x565709,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x35f0d1=>{const _0x21c083=_0x11ac65;this[_0x21c083(0x22a)][_0x21c083(0x196)]({'eventID':_0x5efb40[_0x21c083(0x171)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x35f0d1['id']]:{'id':_0x35f0d1['id'],'params':JSON['stringify'](_0x35f0d1[_0x21c083(0x19e)])}}}},this[_0x21c083(0x211)]);})),_0x294311['next'](_0x5ee677);})),this[_0x3a2bd2(0x17a)][_0x3a2bd2(0x170)](this[_0x3a2bd2(0x211)])['forEach'](_0x411f9c=>this[_0x3a2bd2(0x22a)][_0x3a2bd2(0x196)]({'eventID':_0x5efb40['CollaborationEvent'][_0x3a2bd2(0x18c)],'data':{'unitID':this[_0x3a2bd2(0x211)],'operations':{[_0x411f9c['id']]:{'id':_0x411f9c['id'],'params':JSON[_0x3a2bd2(0x1ba)](_0x411f9c['params'])}}}},this[_0x3a2bd2(0x211)]));}[_0x302812(0x195)](){const _0x3ccc78=_0x302812;var _0x1b85f1;this[_0x3ccc78(0x161)]['next'](_0x3ccc78(0x189)),(_0x1b85f1=this[_0x3ccc78(0x186)])==null||_0x1b85f1['dispose'](),this[_0x3ccc78(0x186)]=null;}[_0x302812(0x16e)](){const _0x2e3669=_0x302812;var _0x48a189;(_0x48a189=this[_0x2e3669(0x186)])==null||_0x48a189[_0x2e3669(0x206)](),this['_status$'][_0x2e3669(0x1e8)](_0x2e3669(0x244));}['_beIdle'](){const _0x27ac6b=_0x302812;var _0x112dd8;this[_0x27ac6b(0x161)][_0x27ac6b(0x1e8)](_0x27ac6b(0x189)),(_0x112dd8=this[_0x27ac6b(0x186)])==null||_0x112dd8[_0x27ac6b(0x206)](),this[_0x27ac6b(0x186)]=null;}[_0x302812(0x1f3)](){const _0x4910a6=_0x302812;var _0x3fff72;this[_0x4910a6(0x161)][_0x4910a6(0x1e8)](_0x4910a6(0x1d5)),(_0x3fff72=this[_0x4910a6(0x186)])==null||_0x3fff72[_0x4910a6(0x206)]();}[_0x302812(0x1ea)](_0x327ce7){const _0x2881d2=_0x302812;if([_0x2881d2(0x21b),_0x2881d2(0x1d5),'offline'][_0x2881d2(0x1cb)](this[_0x2881d2(0x17b)])||!_0x327ce7['data'][_0x2881d2(0x18f)]||_0x327ce7[_0x2881d2(0x21a)][_0x2881d2(0x18f)]===this[_0x2881d2(0x22a)][_0x2881d2(0x212)]())return;this[_0x2881d2(0x17b)]===_0x2881d2(0x189)&&this['_startFollowing']();const _0x4d3b32=_0x327ce7[_0x2881d2(0x21a)][_0x2881d2(0x218)];Object[_0x2881d2(0x1a9)](_0x4d3b32)[_0x2881d2(0x1e2)](_0x4b696a=>{const _0x24679c=_0x2881d2;this[_0x24679c(0x183)][_0x24679c(0x20a)](_0x4b696a['id'],_0x4b696a[_0x24679c(0x19e)]?JSON[_0x24679c(0x1f1)](_0x4b696a['params']):null,{'fromCollab':!0x0});});}[_0x302812(0x18a)](){const _0x1db5da=_0x302812;var _0x2459e2;this[_0x1db5da(0x161)][_0x1db5da(0x1e8)](_0x1db5da(0x1ac)),(_0x2459e2=this[_0x1db5da(0x186)])==null||_0x2459e2[_0x1db5da(0x206)]();}[_0x302812(0x1b2)](){const _0x4d1a04=_0x302812;this[_0x4d1a04(0x161)][_0x4d1a04(0x1e8)](_0x4d1a04(0x189)),this[_0x4d1a04(0x187)]();}},_0x52b2bb[_0x302812(0x1be)]=_0x3d76a6([_0x1161a2(0x2,_0xc8c7c7[_0x302812(0x224)]),_0x1161a2(0x3,_0xc8c7c7[_0x302812(0x167)](_0x308d27)),_0x1161a2(0x4,_0xc8c7c7[_0x302812(0x1aa)])],_0x52b2bb[_0x302812(0x1be)]);function _0x2fab14(){const _0x8d655d=_0x302812,_0x2c6ce4=_0x4a31f3[_0x8d655d(0x216)](_0x52b2bb[_0x8d655d(0x22f)]),_0x2787de=_0x4a31f3[_0x8d655d(0x216)](_0xc8c7c7[_0x8d655d(0x200)]),_0x1ae878=_0x4a31f3[_0x8d655d(0x17d)](()=>_0x2787de[_0x8d655d(0x1c9)](_0xc8c7c7[_0x8d655d(0x223)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2f9d02,_0x3a2821]=_0x4e4f78['useState'](null),[_0x1bbb18,_0x1df5c3]=_0x4e4f78['useState'](_0xd7551[_0x8d655d(0x1d0)]),_0x26838a=_0x4e4f78[_0x8d655d(0x16a)](null);return _0x4e4f78['useEffect'](()=>(_0x1ae878&&_0x2c6ce4[_0x8d655d(0x1da)](_0x1ae878['getUnitId']())['then'](_0x3def5c=>{const _0x3960f2=_0x8d655d;_0x3a2821(_0x3def5c),_0x26838a[_0x3960f2(0x176)]=_0x3def5c[_0x3960f2(0x227)][_0x3960f2(0x1a1)](_0x1b8027=>{_0x1df5c3(_0x1b8027);});}),()=>{const _0x4f5471=_0x8d655d;var _0xddeb05;(_0xddeb05=_0x26838a[_0x4f5471(0x176)])==null||_0xddeb05['unsubscribe'](),_0x26838a[_0x4f5471(0x176)]=null;}),[_0x1ae878,_0x2c6ce4]),_0x2f9d02?_0x922d4b[_0x8d655d(0x240)](_0x23f433[_0x8d655d(0x185)],{'align':_0x8d655d(0x1f7),'disabled':_0x1bbb18===_0xd7551[_0x8d655d(0x23f)],'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':_0x922d4b[_0x8d655d(0x240)](_0x34d9c5,{'status':_0x1bbb18,'coordinator':_0x2f9d02}),'children':_0x922d4b['jsx'](_0x8d655d(0x162),{'className':_0x23f433[_0x8d655d(0x19f)](_0x8d655d(0x174),{'univer-cursor-not-allowed':_0x1bbb18===_0xd7551[_0x8d655d(0x23f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1bbb18!==_0xd7551[_0x8d655d(0x23f)]}),'type':_0x8d655d(0x162),'children':_0x922d4b[_0x8d655d(0x240)](_0x284df4,{'className':_0x8d655d(0x221)})})}):null;}function _0x34d9c5(_0xc7a64d){const _0x2bbfe2=_0x302812,{status:_0x387db9,coordinator:_0x4946e9}=_0xc7a64d;switch(_0x387db9){case _0xd7551[_0x2bbfe2(0x1d0)]:return _0x922d4b[_0x2bbfe2(0x240)](_0x57f3ee,{'coordinator':_0x4946e9});case _0xd7551[_0x2bbfe2(0x235)]:return _0x922d4b[_0x2bbfe2(0x240)](_0x4f7e31,{'coordinator':_0x4946e9});case _0xd7551[_0x2bbfe2(0x1d6)]:return _0x922d4b['jsx'](_0x3ee76c,{'coordinator':_0x4946e9});case _0xd7551[_0x2bbfe2(0x23f)]:return _0x922d4b['jsx'](_0x9cf828,{});case _0xd7551['PRESENTING']:return _0x922d4b[_0x2bbfe2(0x240)](_0x1dbc18,{'coordinator':_0x4946e9});default:return null;}}function _0x57f3ee(_0x376e38){const _0x55e343=_0x302812,{coordinator:_0x200d6b}=_0x376e38;return _0x922d4b[_0x55e343(0x1eb)](_0x922d4b[_0x55e343(0x1d3)],{'children':[_0x922d4b['jsx'](_0x55e343(0x229),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x922d4b[_0x55e343(0x240)](_0x23f433['Button'],{'onClick':()=>_0x200d6b['tryStartPresenting'](),'children':'Start'})]});}function _0x4f7e31(_0x55c80e){const _0x4d312c=_0x302812,{coordinator:_0x584625}=_0x55c80e;return _0x922d4b[_0x4d312c(0x1eb)](_0x922d4b[_0x4d312c(0x1d3)],{'children':[_0x922d4b['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4d312c(0x17c)}),_0x922d4b[_0x4d312c(0x240)](_0x23f433[_0x4d312c(0x1e6)],{'onClick':()=>_0x584625[_0x4d312c(0x1e5)](),'children':_0x4d312c(0x220)})]});}function _0x3ee76c(_0x34e88c){const _0x2a1cfa=_0x302812,{coordinator:_0x21bc54}=_0x34e88c;return _0x922d4b[_0x2a1cfa(0x1eb)](_0x922d4b['Fragment'],{'children':[_0x922d4b['jsx'](_0x2a1cfa(0x229),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x922d4b[_0x2a1cfa(0x240)](_0x23f433[_0x2a1cfa(0x1e6)],{'variant':_0x2a1cfa(0x1c6),'onClick':()=>_0x21bc54[_0x2a1cfa(0x20b)](),'children':_0x2a1cfa(0x1bb)})]});}function _0x1dbc18(_0x2b91ed){const _0x1d89da=_0x302812,{coordinator:_0x2328cb}=_0x2b91ed;return _0x922d4b[_0x1d89da(0x1eb)](_0x922d4b[_0x1d89da(0x1d3)],{'children':[_0x922d4b['jsx'](_0x1d89da(0x229),{'className':_0x1d89da(0x1de),'children':_0x1d89da(0x1a0)}),_0x922d4b['jsx'](_0x23f433[_0x1d89da(0x1e6)],{'variant':_0x1d89da(0x203),'onClick':()=>_0x2328cb['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x9cf828(){const _0x1f734d=_0x302812;return _0x922d4b[_0x1f734d(0x240)](_0x922d4b[_0x1f734d(0x1d3)],{'children':_0x1f734d(0x1a5)});}var _0x336f59=Object['getOwnPropertyDescriptor'],_0x5dbdea=(_0x5b7097,_0x47d5a3,_0x2416b0,_0x58da0e)=>{const _0x1e5629=_0x302812;for(var _0x1efdca=_0x58da0e>0x1?void 0x0:_0x58da0e?_0x336f59(_0x47d5a3,_0x2416b0):_0x47d5a3,_0x3f6f2d=_0x5b7097[_0x1e5629(0x1a6)]-0x1,_0x3a4250;_0x3f6f2d>=0x0;_0x3f6f2d--)(_0x3a4250=_0x5b7097[_0x3f6f2d])&&(_0x1efdca=_0x3a4250(_0x1efdca)||_0x1efdca);return _0x1efdca;},_0x5698ed=(_0x5a2464,_0x5a6cc0)=>(_0x7411ed,_0x41d361)=>_0x5a6cc0(_0x7411ed,_0x41d361,_0x5a2464);_0x52b2bb['DesktopLiveShareController']=class extends _0xc8c7c7[_0x302812(0x1bd)]{constructor(_0x211a1e,_0x118e6e){const _0x10d93f=_0x302812;super(),this[_0x10d93f(0x237)]=_0x211a1e,this['_uiPartsService']=_0x118e6e,this[_0x10d93f(0x23a)]();}[_0x302812(0x23a)](){const _0x157775=_0x302812;this[_0x157775(0x1c3)](this[_0x157775(0x21e)][_0x157775(0x1c4)](_0x4a31f3[_0x157775(0x1d8)][_0x157775(0x1fe)],()=>_0x4a31f3[_0x157775(0x1db)](_0x2fab14,this['_injector'])));}},_0x52b2bb[_0x302812(0x16f)]=_0x5dbdea([_0x5698ed(0x0,_0xc8c7c7[_0x302812(0x167)](_0xc8c7c7[_0x302812(0x19d)])),_0x5698ed(0x1,_0x4a31f3[_0x302812(0x1c1)])],_0x52b2bb['DesktopLiveShareController']);const _0x53ca6f='live-share.config',_0x4c97fe={};var _0x5007a9=Object['getOwnPropertyDescriptor'],_0xf06f3f=(_0x372381,_0x7f1dae,_0x12c112,_0x3f38be)=>{const _0x337d9b=_0x302812;for(var _0x51422b=_0x3f38be>0x1?void 0x0:_0x3f38be?_0x5007a9(_0x7f1dae,_0x12c112):_0x7f1dae,_0x1722cb=_0x372381[_0x337d9b(0x1a6)]-0x1,_0x3717cb;_0x1722cb>=0x0;_0x1722cb--)(_0x3717cb=_0x372381[_0x1722cb])&&(_0x51422b=_0x3717cb(_0x51422b)||_0x51422b);return _0x51422b;},_0x1243d3=(_0x6dad,_0x33c07b)=>(_0x110fb7,_0x5919fc)=>_0x33c07b(_0x110fb7,_0x5919fc,_0x6dad);let _0x564f95=class extends _0xc8c7c7[_0x302812(0x1bd)]{constructor(_0x5c02e3){const _0x2f7cf9=_0x302812;super(),this[_0x2f7cf9(0x17a)]=_0x5c02e3,this[_0x2f7cf9(0x19a)]();}[_0x302812(0x19a)](){const _0x56ac70=_0x302812;[_0x1c67a8[_0x56ac70(0x1b5)]['id'],_0x1c67a8[_0x56ac70(0x1cf)]['id'],_0xad4dfa[_0x56ac70(0x197)]['id']][_0x56ac70(0x1e2)](_0x3f79a5=>{const _0x3da159=_0x56ac70;this['disposeWithMe'](this['_liveShareService'][_0x3da159(0x1ef)](_0x3f79a5));});}};_0x564f95=_0xf06f3f([_0x1243d3(0x0,_0xc8c7c7['Inject'](_0x308d27))],_0x564f95);var _0x17c1e8=Object[_0x302812(0x168)],_0x463277=Object['getOwnPropertyDescriptor'],_0x152d09=(_0x4722f3,_0x534e0c,_0x35dd76)=>_0x534e0c in _0x4722f3?_0x17c1e8(_0x4722f3,_0x534e0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35dd76}):_0x4722f3[_0x534e0c]=_0x35dd76,_0x25244a=(_0x57bc23,_0x5eb6e8,_0x5abee2,_0x315f2f)=>{const _0x3cf012=_0x302812;for(var _0x2dde5b=_0x315f2f>0x1?void 0x0:_0x315f2f?_0x463277(_0x5eb6e8,_0x5abee2):_0x5eb6e8,_0x5814aa=_0x57bc23[_0x3cf012(0x1a6)]-0x1,_0x1e5760;_0x5814aa>=0x0;_0x5814aa--)(_0x1e5760=_0x57bc23[_0x5814aa])&&(_0x2dde5b=_0x1e5760(_0x2dde5b)||_0x2dde5b);return _0x2dde5b;},_0x1adce0=(_0x39929c,_0x1abd37)=>(_0x4b2664,_0x3fb007)=>_0x1abd37(_0x4b2664,_0x3fb007,_0x39929c),_0x4f0a6c=(_0x2fbe65,_0x2fd625,_0x12d920)=>_0x152d09(_0x2fbe65,typeof _0x2fd625!=_0x302812(0x16b)?_0x2fd625+'':_0x2fd625,_0x12d920);const _0x3a7072=_0x302812(0x198);_0x52b2bb[_0x302812(0x1b8)]=class extends _0xc8c7c7[_0x302812(0x177)]{constructor(_0x3238d9=_0x4c97fe,_0x2f3dd4,_0x21bb0e){const _0x260c77=_0x302812;super(),this[_0x260c77(0x1c2)]=_0x3238d9,this['_injector']=_0x2f3dd4,this['_configService']=_0x21bb0e;const {..._0x223819}=_0xc8c7c7['merge']({},_0x4c97fe,this[_0x260c77(0x1c2)]);this[_0x260c77(0x166)]['setConfig'](_0x53ca6f,_0x223819);}[_0x302812(0x20e)](){const _0x573a0c=_0x302812;_0xc8c7c7[_0x573a0c(0x245)](this['_injector'],_0xc8c7c7['mergeOverrideWithDependencies']([[_0x308d27],[_0x52b2bb['LiveShareController']],[_0x564f95],[_0x52b2bb['DesktopLiveShareController']]],this[_0x573a0c(0x1c2)][_0x573a0c(0x1e0)])),_0xc8c7c7['touchDependencies'](this['_injector'],[[_0x564f95]]);}[_0x302812(0x1fb)](){const _0x5bc5c5=_0x302812;_0xc8c7c7[_0x5bc5c5(0x175)](this['_injector'],[[_0x52b2bb[_0x5bc5c5(0x16f)]]]);}},_0x4f0a6c(_0x52b2bb[_0x302812(0x1b8)],_0x302812(0x23e),_0xc8c7c7['UniverInstanceType'][_0x302812(0x182)]),_0x4f0a6c(_0x52b2bb[_0x302812(0x1b8)],_0x302812(0x1b4),_0x3a7072),_0x52b2bb[_0x302812(0x1b8)]=_0x25244a([_0xc8c7c7[_0x302812(0x178)](_0x2e4f77[_0x302812(0x1cd)]),_0x1adce0(0x1,_0xc8c7c7[_0x302812(0x167)](_0xc8c7c7['Injector'])),_0x1adce0(0x2,_0xc8c7c7[_0x302812(0x224)])],_0x52b2bb[_0x302812(0x1b8)]),_0x52b2bb[_0x302812(0x21d)]=_0x2fab14,_0x52b2bb[_0x302812(0x20c)]=_0x308d27,_0x52b2bb[_0x302812(0x20f)]=_0xd7551,Object['defineProperty'](_0x52b2bb,Symbol[_0x302812(0x202)],{'value':_0x302812(0x22c)});}));
1
+ function _0x1166(_0x1c3e6d,_0x275afc){_0x1c3e6d=_0x1c3e6d-0x194;const _0x439fcf=_0x439f();let _0x116694=_0x439fcf[_0x1c3e6d];return _0x116694;}(function(_0x290cd3,_0x58cdff){const _0x3e5875=_0x1166,_0x96d09d=_0x290cd3();while(!![]){try{const _0xb8a23f=-parseInt(_0x3e5875(0x23e))/0x1+-parseInt(_0x3e5875(0x215))/0x2+-parseInt(_0x3e5875(0x21a))/0x3+parseInt(_0x3e5875(0x241))/0x4*(-parseInt(_0x3e5875(0x1dd))/0x5)+parseInt(_0x3e5875(0x23d))/0x6*(-parseInt(_0x3e5875(0x264))/0x7)+parseInt(_0x3e5875(0x263))/0x8+parseInt(_0x3e5875(0x24d))/0x9;if(_0xb8a23f===_0x58cdff)break;else _0x96d09d['push'](_0x96d09d['shift']());}catch(_0x8e7be){_0x96d09d['push'](_0x96d09d['shift']());}}}(_0x439f,0xe4b20),function(_0x3010be,_0x5a7950){const _0x125bfb=_0x1166;typeof exports=='object'&&typeof module<'u'?_0x5a7950(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==_0x125bfb(0x228)&&define[_0x125bfb(0x26d)]?define([_0x125bfb(0x232),'@univerjs/core',_0x125bfb(0x219),_0x125bfb(0x253),'@univerjs/design',_0x125bfb(0x1e4),_0x125bfb(0x237),'@univerjs-pro/collaboration-client',_0x125bfb(0x24e),'rxjs','rxjs/operators',_0x125bfb(0x198)],_0x5a7950):(_0x3010be=typeof globalThis<'u'?globalThis:_0x3010be||self,_0x5a7950(_0x3010be[_0x125bfb(0x23f)]={},_0x3010be['UniverCore'],_0x3010be[_0x125bfb(0x278)],_0x3010be['React'],_0x3010be['UniverDesign'],_0x3010be[_0x125bfb(0x1e0)],_0x3010be[_0x125bfb(0x275)],_0x3010be['UniverProCollaborationClient'],_0x3010be['UniverSheets'],_0x3010be[_0x125bfb(0x25d)],_0x3010be[_0x125bfb(0x25d)][_0x125bfb(0x277)],_0x3010be[_0x125bfb(0x1e7)]));}(this,function(_0x24d3e6,_0x30a709,_0x99ed13,_0x181f84,_0x816f59,_0x1a9bfc,_0x452ec5,_0x1709cf,_0x10ecdd,_0x311d29,_0x2dbda3,_0x5a189b){'use strict';const _0x2101f2=_0x1166;var _0x109d4b=Object[_0x2101f2(0x1d1)],_0x4cbb03=(_0x201440,_0x3c7721,_0x260a3a)=>_0x3c7721 in _0x201440?_0x109d4b(_0x201440,_0x3c7721,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x260a3a}):_0x201440[_0x3c7721]=_0x260a3a,_0x53718a=(_0x3c9493,_0x566ad4,_0x569c91)=>_0x4cbb03(_0x3c9493,typeof _0x566ad4!=_0x2101f2(0x1f7)?_0x566ad4+'':_0x566ad4,_0x569c91);function _0x37651e({ref:_0x4b7bdf,..._0x17e253}){const _0x1a3be6=_0x2101f2,{icon:_0x4f86f9,id:_0xfe075b,className:_0x2b2d1d,extend:_0x4ebca6,..._0x159982}=_0x17e253,_0x3148fa=(_0x1a3be6(0x1f1)+_0xfe075b+'\x20'+(_0x2b2d1d||''))[_0x1a3be6(0x213)](),_0x10b52d=_0x1a9bfc[_0x1a3be6(0x1ac)]('_'+_0x5bd0b7());return _0x18b97d(_0x4f86f9,''+_0xfe075b,{'defIds':_0x4f86f9[_0x1a3be6(0x20b)],'idSuffix':_0x10b52d[_0x1a3be6(0x254)]},{'ref':_0x4b7bdf,'className':_0x3148fa,..._0x159982},_0x4ebca6);}function _0x18b97d(_0x574bdd,_0x3973fb,_0x4ebcfe,_0x281464,_0xf3cbd1){const _0x12984a=_0x2101f2;return _0x1a9bfc[_0x12984a(0x1da)](_0x574bdd[_0x12984a(0x1d4)],{'key':_0x3973fb,..._0x45419d(_0x574bdd,_0x4ebcfe,_0xf3cbd1),..._0x281464},(_0x13a577(_0x574bdd,_0x4ebcfe)[_0x12984a(0x266)]||[])[_0x12984a(0x1c1)]((_0x484897,_0x645cf5)=>_0x18b97d(_0x484897,_0x3973fb+'-'+_0x574bdd[_0x12984a(0x1d4)]+'-'+_0x645cf5,_0x4ebcfe,void 0x0,_0xf3cbd1)));}function _0x45419d(_0x8db9b8,_0x12519b,_0x2b1899){const _0x3f5a47=_0x2101f2,_0x59fa55={..._0x8db9b8[_0x3f5a47(0x1c8)]};_0x2b1899!=null&&_0x2b1899['colorChannel1']&&_0x59fa55[_0x3f5a47(0x22e)]===_0x3f5a47(0x1a7)&&(_0x59fa55[_0x3f5a47(0x22e)]=_0x2b1899[_0x3f5a47(0x1a7)]),_0x8db9b8[_0x3f5a47(0x1d4)]===_0x3f5a47(0x25f)&&_0x59fa55['id']&&(_0x59fa55['id']=_0x59fa55['id']+_0x12519b['idSuffix']),Object['entries'](_0x59fa55)[_0x3f5a47(0x1d2)](([_0x3473a2,_0x362fee])=>{const _0x215837=_0x3f5a47;_0x3473a2===_0x215837(0x25f)&&typeof _0x362fee==_0x215837(0x255)&&(_0x59fa55[_0x3473a2]=_0x362fee[_0x215837(0x1ec)](/url\(#(.*)\)/,_0x215837(0x249)+_0x12519b[_0x215837(0x250)]+')'));});const {defIds:_0x4f264f}=_0x12519b;return!_0x4f264f||_0x4f264f[_0x3f5a47(0x274)]===0x0||(_0x8db9b8[_0x3f5a47(0x1d4)]===_0x3f5a47(0x201)&&_0x59fa55['xlink:href']&&(_0x59fa55[_0x3f5a47(0x1f6)]=_0x59fa55[_0x3f5a47(0x1f6)]+_0x12519b[_0x3f5a47(0x250)]),Object[_0x3f5a47(0x25c)](_0x59fa55)[_0x3f5a47(0x1d2)](([_0x2416c3,_0x1868a9])=>{const _0x1fa5a=_0x3f5a47;typeof _0x1868a9==_0x1fa5a(0x255)&&(_0x59fa55[_0x2416c3]=_0x1868a9[_0x1fa5a(0x1ec)](/url\(#(.*)\)/,_0x1fa5a(0x249)+_0x12519b['idSuffix']+')'));})),_0x59fa55;}function _0x13a577(_0x2b7d28,_0xd5239f){const _0x44419b=_0x2101f2;var _0x357e85;const {defIds:_0x45323b}=_0xd5239f;return!_0x45323b||_0x45323b[_0x44419b(0x274)]===0x0?_0x2b7d28:_0x2b7d28[_0x44419b(0x1d4)]===_0x44419b(0x1ed)&&((_0x357e85=_0x2b7d28['children'])!=null&&_0x357e85[_0x44419b(0x274)])?{..._0x2b7d28,'children':_0x2b7d28[_0x44419b(0x266)][_0x44419b(0x1c1)](_0x6a8964=>typeof _0x6a8964[_0x44419b(0x1c8)]['id']==_0x44419b(0x255)&&_0x45323b&&_0x45323b[_0x44419b(0x19d)](_0x6a8964[_0x44419b(0x1c8)]['id'])?{..._0x6a8964,'attrs':{..._0x6a8964[_0x44419b(0x1c8)],'id':_0x6a8964[_0x44419b(0x1c8)]['id']+_0xd5239f[_0x44419b(0x250)]}}:_0x6a8964)}:_0x2b7d28;}function _0x5bd0b7(){const _0x2a579c=_0x2101f2;return Math[_0x2a579c(0x1c9)]()[_0x2a579c(0x25a)](0x24)[_0x2a579c(0x208)](0x2,0x8);}_0x37651e[_0x2101f2(0x20d)]=_0x2101f2(0x1b8);const _0x49a305={'tag':_0x2101f2(0x1b3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2101f2(0x1d0),'height':_0x2101f2(0x1d0)},'children':[{'tag':_0x2101f2(0x246),'attrs':{'fill':_0x2101f2(0x26a),'d':_0x2101f2(0x1c4)}},{'tag':'path','attrs':{'fill':_0x2101f2(0x26a),'d':_0x2101f2(0x194),'fillRule':_0x2101f2(0x21b),'clipRule':_0x2101f2(0x21b)}}]},_0x49673d=_0x1a9bfc[_0x2101f2(0x1ba)](function(_0x504db1,_0x559bd0){const _0x301fb9=_0x2101f2;return _0x1a9bfc[_0x301fb9(0x1da)](_0x37651e,Object[_0x301fb9(0x1b6)]({},_0x504db1,{'id':_0x301fb9(0x240),'ref':_0x559bd0,'icon':_0x49a305}));});_0x49673d[_0x2101f2(0x20d)]='LiveShareIcon';class _0x2f19a8 extends _0x30a709['Disposable']{constructor(){super(...arguments),_0x53718a(this,'_sharedOperations',new Set()),_0x53718a(this,'_reporters',new Set());}[_0x2101f2(0x20a)](_0x4a731a){const _0x3cffed=_0x2101f2;return this['_sharedOperations'][_0x3cffed(0x1a6)](_0x4a731a),_0x30a709[_0x3cffed(0x19f)](()=>this[_0x3cffed(0x26c)][_0x3cffed(0x1f9)](_0x4a731a));}[_0x2101f2(0x1b9)](_0x3ee035){const _0x3b159c=_0x2101f2;return this[_0x3b159c(0x1d8)][_0x3b159c(0x1a6)](_0x3ee035),_0x30a709['toDisposable'](()=>this[_0x3b159c(0x1d8)][_0x3b159c(0x1f9)](_0x3ee035));}['shouldShareOperation'](_0x469e4b){const _0x35a5c3=_0x2101f2;return this[_0x35a5c3(0x26c)][_0x35a5c3(0x1bc)](_0x469e4b);}[_0x2101f2(0x23a)](_0x5b2796){const _0x43de23=_0x2101f2;return Array['from'](this[_0x43de23(0x1d8)])[_0x43de23(0x1c1)](_0x15ea34=>_0x15ea34(_0x5b2796));}}var _0x6624f4=Object[_0x2101f2(0x268)],_0x58f823=(_0x2d0c3b,_0x1555dd,_0x502026,_0x2daf5d)=>{const _0x4650d3=_0x2101f2;for(var _0x10dc72=_0x2daf5d>0x1?void 0x0:_0x2daf5d?_0x6624f4(_0x1555dd,_0x502026):_0x1555dd,_0x1e9c1c=_0x2d0c3b[_0x4650d3(0x274)]-0x1,_0x52cbc7;_0x1e9c1c>=0x0;_0x1e9c1c--)(_0x52cbc7=_0x2d0c3b[_0x1e9c1c])&&(_0x10dc72=_0x52cbc7(_0x10dc72)||_0x10dc72);return _0x10dc72;},_0x3fff83=(_0x27f39e,_0x5d788a)=>(_0x58ebe1,_0x4674c3)=>_0x5d788a(_0x58ebe1,_0x4674c3,_0x27f39e);_0x24d3e6[_0x2101f2(0x27c)]=class extends _0x30a709[_0x2101f2(0x26b)]{constructor(_0x2090e1,_0x3a7f7e,_0x4796fc){const _0x429a21=_0x2101f2;super(),_0x53718a(this,_0x429a21(0x1ae),new Map()),(this[_0x429a21(0x272)]=_0x2090e1,this['_injector']=_0x3a7f7e,this[_0x429a21(0x212)]=_0x4796fc,this[_0x429a21(0x19e)]());}async[_0x2101f2(0x279)](_0x55dc53){const _0x33d7e4=_0x2101f2;return this[_0x33d7e4(0x1ae)][_0x33d7e4(0x1bc)](_0x55dc53)||await this[_0x33d7e4(0x234)](_0x55dc53),this[_0x33d7e4(0x1ae)][_0x33d7e4(0x1e6)](_0x55dc53);}[_0x2101f2(0x1e3)](_0x52c0b9){const _0x1699ea=_0x2101f2;var _0x24ec5f;return(_0x24ec5f=this[_0x1699ea(0x1ae)][_0x1699ea(0x1e6)](_0x52c0b9))!=null?_0x24ec5f:null;}[_0x2101f2(0x19e)](){const _0x4f1203=_0x2101f2;this[_0x4f1203(0x272)][_0x4f1203(0x1e5)](_0x30a709[_0x4f1203(0x261)][_0x4f1203(0x1eb)])['pipe'](_0x2dbda3[_0x4f1203(0x216)](this[_0x4f1203(0x270)]))[_0x4f1203(0x242)](async _0x45d63c=>{const _0x41582b=_0x4f1203,_0xbedb45=_0x45d63c[_0x41582b(0x262)]();this[_0x41582b(0x1ae)][_0x41582b(0x1bc)](_0xbedb45)||this[_0x41582b(0x234)](_0xbedb45);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x30a709[_0x4f1203(0x261)][_0x4f1203(0x1eb)])['pipe'](_0x2dbda3[_0x4f1203(0x216)](this[_0x4f1203(0x270)]))[_0x4f1203(0x242)](_0x1aa1a9=>{const _0x19082b=_0x4f1203,_0x389ca1=_0x1aa1a9[_0x19082b(0x262)](),_0x58e1a1=this[_0x19082b(0x1ae)][_0x19082b(0x1e6)](_0x389ca1);_0x58e1a1==null||_0x58e1a1[_0x19082b(0x1c6)]();});}async[_0x2101f2(0x234)](_0x3abe20){const _0x224ab8=_0x2101f2,_0x3c3a28=await this[_0x224ab8(0x212)][_0x224ab8(0x225)](_0x3abe20),_0x4e8a32=this[_0x224ab8(0x273)]['createInstance'](_0x24d3e6['LiveShareCoordinator'],_0x3abe20,_0x3c3a28);return _0x4e8a32['init'](),this[_0x224ab8(0x1ae)]['set'](_0x3abe20,_0x4e8a32),_0x4e8a32;}},_0x24d3e6['LiveShareController']=_0x58f823([_0x3fff83(0x0,_0x30a709[_0x2101f2(0x1a1)]),_0x3fff83(0x1,_0x30a709[_0x2101f2(0x1fb)](_0x30a709['Injector'])),_0x3fff83(0x2,_0x30a709[_0x2101f2(0x1fb)](_0x1709cf[_0x2101f2(0x223)]))],_0x24d3e6[_0x2101f2(0x27c)]);var _0x83f694=(_0x1de784=>(_0x1de784[_0x2101f2(0x1a0)]='offline',_0x1de784[_0x2101f2(0x195)]=_0x2101f2(0x269),_0x1de784[_0x2101f2(0x1aa)]=_0x2101f2(0x231),_0x1de784[_0x2101f2(0x1c5)]=_0x2101f2(0x224),_0x1de784[_0x2101f2(0x20c)]=_0x2101f2(0x25b),_0x1de784))(_0x83f694||{});const _0x37f041='SAME_OPERATION_SHARE_INTERVAL',_0x5691d0=0xc8;_0x24d3e6[_0x2101f2(0x1d3)]=class extends _0x30a709['RxDisposable']{constructor(_0x226e9d,_0x30a685,_0x23c816,_0x4f8601,_0x1632bb){const _0x5808c6=_0x2101f2;super(),_0x53718a(this,'_status$',new _0x311d29['BehaviorSubject'](_0x5808c6(0x269))),_0x53718a(this,_0x5808c6(0x27e),this[_0x5808c6(0x24f)][_0x5808c6(0x226)]()),_0x53718a(this,'_init',!0x1),_0x53718a(this,'_commandDisposable',null),_0x53718a(this,'_presenter',null),(this['_unitID']=_0x226e9d,this['_collabSession']=_0x30a685,this[_0x5808c6(0x20e)]=_0x23c816,this[_0x5808c6(0x1dc)]=_0x4f8601,this[_0x5808c6(0x19c)]=_0x1632bb);}get[_0x2101f2(0x1cd)](){const _0x3a1e5f=_0x2101f2;return this[_0x3a1e5f(0x24f)][_0x3a1e5f(0x1ad)]();}[_0x2101f2(0x1c6)](){const _0x3b1f43=_0x2101f2;var _0x74f5b7;(_0x74f5b7=this[_0x3b1f43(0x267)])==null||_0x74f5b7[_0x3b1f43(0x1c6)](),this[_0x3b1f43(0x24f)][_0x3b1f43(0x222)](_0x3b1f43(0x269)),this[_0x3b1f43(0x24f)]['complete']();}[_0x2101f2(0x244)](){const _0x539cdf=_0x2101f2;return this[_0x539cdf(0x1cd)];}['init'](){const _0x104d56=_0x2101f2;this[_0x104d56(0x19e)]||(this['_init']=!0x0,this[_0x104d56(0x27f)]['sessionStatus$'][_0x104d56(0x1d9)](_0x2dbda3[_0x104d56(0x216)](this[_0x104d56(0x270)]))[_0x104d56(0x242)](_0x5f2c94=>{const _0x1749f6=_0x104d56;switch(_0x5f2c94){case _0x1709cf[_0x1749f6(0x23c)][_0x1749f6(0x1a0)]:this[_0x1749f6(0x22b)]();break;case _0x1709cf[_0x1749f6(0x23c)][_0x1749f6(0x1de)]:this[_0x1749f6(0x243)]();break;}}),this['_collabSession'][_0x104d56(0x1f8)][_0x104d56(0x1d9)](_0x2dbda3[_0x104d56(0x216)](this['dispose$']))[_0x104d56(0x242)](_0x206900=>{const _0x370f4d=_0x104d56,{eventID:_0x280eb1}=_0x206900;switch(_0x280eb1){case _0x452ec5[_0x370f4d(0x1fa)][_0x370f4d(0x1ea)]:this['_handleNewHost'](_0x206900);break;case _0x452ec5[_0x370f4d(0x1fa)][_0x370f4d(0x229)]:this[_0x370f4d(0x26e)](_0x206900);break;case _0x452ec5[_0x370f4d(0x1fa)][_0x370f4d(0x1cc)]:this[_0x370f4d(0x205)]();break;case _0x452ec5[_0x370f4d(0x1fa)]['NEW_CHANGESETS']:this[_0x370f4d(0x210)](_0x206900);break;}}));}['tryStartPresenting'](){const _0x200966=_0x2101f2;this['_collabSession']['send']({'eventID':_0x452ec5[_0x200966(0x1fa)][_0x200966(0x238)],'data':{'unitID':this[_0x200966(0x27d)],'userID':this['_collabSession']['getMemberID']()}},this[_0x200966(0x27d)]);}[_0x2101f2(0x1b2)](){const _0x575334=_0x2101f2;this['_status']==='presenting'&&(this[_0x575334(0x24f)][_0x575334(0x222)](_0x575334(0x269)),this['_collabSession'][_0x575334(0x1ce)]({'eventID':_0x452ec5[_0x575334(0x1fa)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x575334(0x27d)]}},this[_0x575334(0x27d)]));}[_0x2101f2(0x1a2)](){const _0x485085=_0x2101f2;this['_status']===_0x485085(0x224)&&(this[_0x485085(0x24f)][_0x485085(0x222)](_0x485085(0x231)),this['_startFollowing']());}[_0x2101f2(0x1f5)](){const _0x16802d=_0x2101f2;this[_0x16802d(0x1cd)]===_0x16802d(0x231)&&this[_0x16802d(0x214)]();}[_0x2101f2(0x1bf)](_0x270461){const _0xdae7df=_0x2101f2,{presenter:_0x28f826}=_0x270461[_0xdae7df(0x21e)],_0x52e6eb=this[_0xdae7df(0x27f)]['getMemberID']();this[_0xdae7df(0x1f0)]=_0x28f826,_0x28f826===_0x52e6eb?(this[_0xdae7df(0x214)](),this['_startPresenting']()):this['_status']!==_0xdae7df(0x224)&&(this[_0xdae7df(0x27a)](),this[_0xdae7df(0x259)]());}[_0x2101f2(0x1d5)](){const _0x55ebad=_0x2101f2,_0x4b08a9={'eventID':_0x452ec5[_0x55ebad(0x1fa)][_0x55ebad(0x1ca)]};this[_0x55ebad(0x27f)][_0x55ebad(0x1ce)](_0x4b08a9,this[_0x55ebad(0x27d)]);}[_0x2101f2(0x205)](){const _0x32eb27=_0x2101f2;this[_0x32eb27(0x1f0)]=null,this['_status']!==_0x32eb27(0x25b)&&this[_0x32eb27(0x233)]();}[_0x2101f2(0x210)](_0x3acde5){const _0x30c0c5=_0x2101f2;if(this['_status']===_0x30c0c5(0x231)&&this[_0x30c0c5(0x1f0)]===_0x3acde5[_0x30c0c5(0x21e)][_0x30c0c5(0x248)]){const _0x1d11d9=_0x452ec5[_0x30c0c5(0x1b1)](_0x3acde5[_0x30c0c5(0x21e)])['mutations'][_0x30c0c5(0x24b)]()[_0x30c0c5(0x1fc)](_0x351ace=>_0x351ace['id']===_0x10ecdd[_0x30c0c5(0x218)]['id']);if(_0x1d11d9){const _0x38619b=_0x1d11d9[_0x30c0c5(0x1f2)][_0x30c0c5(0x20f)],_0x3b0d69=_0x1d11d9['params'][_0x30c0c5(0x258)]['id'];setTimeout(()=>{const _0x25ee64=_0x30c0c5;this['_commandService']['executeCommand'](_0x10ecdd[_0x25ee64(0x204)]['id'],{'unitId':_0x38619b,'subUnitId':_0x3b0d69},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x42bd1c=_0x2101f2;this[_0x42bd1c(0x24f)][_0x42bd1c(0x222)]('presenting');const _0x5c58f7=new Map(),_0x3d2a5c=this[_0x42bd1c(0x267)]=new _0x30a709[(_0x42bd1c(0x220))]();_0x3d2a5c[_0x42bd1c(0x1a6)](_0x30a709[_0x42bd1c(0x19f)](()=>{const _0x3d0f3b=_0x42bd1c;_0x5c58f7[_0x3d0f3b(0x1d2)](_0x254233=>_0x254233[_0x3d0f3b(0x1b0)]()),_0x5c58f7[_0x3d0f3b(0x1c3)]();})),_0x3d2a5c[_0x42bd1c(0x1a6)](this[_0x42bd1c(0x19c)][_0x42bd1c(0x1a5)](_0x2fbad2=>{const _0x5c3710=_0x42bd1c;var _0x570913;if(_0x2fbad2[_0x5c3710(0x26f)]!==_0x30a709[_0x5c3710(0x206)]['OPERATION']||!this[_0x5c3710(0x1dc)]['shouldShareOperation'](_0x2fbad2['id']))return;const {id:_0x26287e}=_0x2fbad2;let _0x57042a;_0x5c58f7['has'](_0x26287e)?_0x57042a=_0x5c58f7[_0x5c3710(0x1e6)](_0x26287e):(_0x57042a=new _0x311d29[(_0x5c3710(0x239))](),_0x5c58f7[_0x5c3710(0x1cb)](_0x26287e,_0x57042a),_0x57042a[_0x5c3710(0x1d9)](_0x2dbda3['throttleTime']((_0x570913=this['_configService']['getConfig'](_0x37f041))!=null?_0x570913:_0x5691d0,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x211297=>{const _0x2daae7=_0x5c3710;this['_collabSession'][_0x2daae7(0x1ce)]({'eventID':_0x452ec5[_0x2daae7(0x1fa)][_0x2daae7(0x229)],'data':{'unitID':this[_0x2daae7(0x27d)],'operations':{[_0x211297['id']]:{'id':_0x211297['id'],'params':JSON['stringify'](_0x211297[_0x2daae7(0x1f2)])}}}},this['_unitID']);})),_0x57042a[_0x5c3710(0x222)](_0x2fbad2);})),this[_0x42bd1c(0x1dc)][_0x42bd1c(0x23a)](this[_0x42bd1c(0x27d)])[_0x42bd1c(0x1d2)](_0x311a1c=>this[_0x42bd1c(0x27f)][_0x42bd1c(0x1ce)]({'eventID':_0x452ec5[_0x42bd1c(0x1fa)][_0x42bd1c(0x229)],'data':{'unitID':this[_0x42bd1c(0x27d)],'operations':{[_0x311a1c['id']]:{'id':_0x311a1c['id'],'params':JSON[_0x42bd1c(0x1b7)](_0x311a1c[_0x42bd1c(0x1f2)])}}}},this[_0x42bd1c(0x27d)]));}[_0x2101f2(0x27a)](){const _0x403f42=_0x2101f2;var _0x553781;this[_0x403f42(0x24f)]['next'](_0x403f42(0x269)),(_0x553781=this[_0x403f42(0x267)])==null||_0x553781[_0x403f42(0x1c6)](),this['_commandDisposable']=null;}[_0x2101f2(0x259)](){const _0x414b45=_0x2101f2;var _0x474df5;(_0x474df5=this[_0x414b45(0x267)])==null||_0x474df5['dispose'](),this[_0x414b45(0x24f)][_0x414b45(0x222)](_0x414b45(0x231));}[_0x2101f2(0x233)](){const _0x5a1c4c=_0x2101f2;var _0x168875;this[_0x5a1c4c(0x24f)][_0x5a1c4c(0x222)](_0x5a1c4c(0x269)),(_0x168875=this[_0x5a1c4c(0x267)])==null||_0x168875['dispose'](),this[_0x5a1c4c(0x267)]=null;}['_stopFollowing'](){const _0x2e7363=_0x2101f2;var _0x402556;this[_0x2e7363(0x24f)][_0x2e7363(0x222)](_0x2e7363(0x224)),(_0x402556=this[_0x2e7363(0x267)])==null||_0x402556[_0x2e7363(0x1c6)]();}[_0x2101f2(0x26e)](_0x238c2a){const _0x38febf=_0x2101f2;if([_0x38febf(0x25b),_0x38febf(0x224),_0x38febf(0x252)][_0x38febf(0x19d)](this['_status'])||!_0x238c2a[_0x38febf(0x21e)][_0x38febf(0x271)]||_0x238c2a[_0x38febf(0x21e)][_0x38febf(0x271)]===this[_0x38febf(0x27f)][_0x38febf(0x202)]())return;this[_0x38febf(0x1cd)]===_0x38febf(0x269)&&this[_0x38febf(0x259)]();const _0x192c3c=_0x238c2a[_0x38febf(0x21e)][_0x38febf(0x256)];Object[_0x38febf(0x21c)](_0x192c3c)[_0x38febf(0x1d2)](_0x15502b=>{const _0x257c38=_0x38febf;this[_0x257c38(0x19c)][_0x257c38(0x1b5)](_0x15502b['id'],_0x15502b[_0x257c38(0x1f2)]?JSON[_0x257c38(0x211)](_0x15502b[_0x257c38(0x1f2)]):null,{'fromCollab':!0x0});});}[_0x2101f2(0x22b)](){const _0x10f1a2=_0x2101f2;var _0xbf7432;this['_status$'][_0x10f1a2(0x222)](_0x10f1a2(0x252)),(_0xbf7432=this[_0x10f1a2(0x267)])==null||_0xbf7432[_0x10f1a2(0x1c6)]();}[_0x2101f2(0x243)](){const _0x52b9b0=_0x2101f2;this[_0x52b9b0(0x24f)][_0x52b9b0(0x222)](_0x52b9b0(0x269)),this[_0x52b9b0(0x1d5)]();}},_0x24d3e6['LiveShareCoordinator']=_0x58f823([_0x3fff83(0x2,_0x30a709[_0x2101f2(0x22a)]),_0x3fff83(0x3,_0x30a709[_0x2101f2(0x1fb)](_0x2f19a8)),_0x3fff83(0x4,_0x30a709[_0x2101f2(0x1cf)])],_0x24d3e6[_0x2101f2(0x1d3)]);function _0x277807(){const _0x39c441=_0x2101f2,_0x4170f0=_0x99ed13['useDependency'](_0x24d3e6[_0x39c441(0x27c)]),_0x1acd68=_0x99ed13[_0x39c441(0x1ff)](_0x30a709[_0x39c441(0x1a1)]),_0x560ee8=_0x99ed13['useObservable'](()=>_0x1acd68[_0x39c441(0x1e9)](_0x30a709[_0x39c441(0x261)][_0x39c441(0x1eb)]),void 0x0,!0x1,[]),[_0x342bf8,_0x1c27f8]=_0x1a9bfc[_0x39c441(0x227)](null),[_0x25e0cc,_0x496bfc]=_0x1a9bfc[_0x39c441(0x227)](_0x83f694[_0x39c441(0x195)]),_0x33ce8c=_0x1a9bfc[_0x39c441(0x1ac)](null);return _0x1a9bfc[_0x39c441(0x1a9)](()=>(_0x560ee8&&_0x4170f0[_0x39c441(0x279)](_0x560ee8['getUnitId']())[_0x39c441(0x196)](_0x4cbd0f=>{const _0x419248=_0x39c441;_0x1c27f8(_0x4cbd0f),_0x33ce8c[_0x419248(0x254)]=_0x4cbd0f[_0x419248(0x27e)][_0x419248(0x242)](_0x35805e=>{_0x496bfc(_0x35805e);});}),()=>{const _0x371b47=_0x39c441;var _0x5800a1;(_0x5800a1=_0x33ce8c['current'])==null||_0x5800a1[_0x371b47(0x22c)](),_0x33ce8c[_0x371b47(0x254)]=null;}),[_0x560ee8,_0x4170f0]),_0x342bf8?_0x181f84[_0x39c441(0x1c2)](_0x816f59[_0x39c441(0x1e2)],{'align':_0x39c441(0x1b4),'disabled':_0x25e0cc===_0x83f694['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x181f84[_0x39c441(0x1c2)](_0x4c898e,{'status':_0x25e0cc,'coordinator':_0x342bf8}),'children':_0x181f84['jsx']('button',{'className':_0x816f59[_0x39c441(0x207)](_0x39c441(0x260),{'univer-cursor-not-allowed':_0x25e0cc===_0x83f694[_0x39c441(0x1a0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25e0cc!==_0x83f694['OFFLINE']}),'type':_0x39c441(0x1e8),'children':_0x181f84[_0x39c441(0x1c2)](_0x49673d,{'className':'univer-size-4'})})}):null;}function _0x4c898e(_0x1727d4){const _0x1177d2=_0x2101f2,{status:_0x29225e,coordinator:_0x19647}=_0x1727d4;switch(_0x29225e){case _0x83f694[_0x1177d2(0x195)]:return _0x181f84[_0x1177d2(0x1c2)](_0x4a586f,{'coordinator':_0x19647});case _0x83f694[_0x1177d2(0x1aa)]:return _0x181f84[_0x1177d2(0x1c2)](_0x1c059f,{'coordinator':_0x19647});case _0x83f694[_0x1177d2(0x1c5)]:return _0x181f84[_0x1177d2(0x1c2)](_0x3a5723,{'coordinator':_0x19647});case _0x83f694['OFFLINE']:return _0x181f84[_0x1177d2(0x1c2)](_0x3389be,{});case _0x83f694['PRESENTING']:return _0x181f84[_0x1177d2(0x1c2)](_0x5a2aeb,{'coordinator':_0x19647});default:return null;}}function _0x4a586f(_0x549e02){const _0x1e3ae3=_0x2101f2,{coordinator:_0x1953e3}=_0x549e02;return _0x181f84[_0x1e3ae3(0x247)](_0x181f84[_0x1e3ae3(0x1c0)],{'children':[_0x181f84['jsx']('div',{'className':_0x1e3ae3(0x1be),'children':_0x1e3ae3(0x1fe)}),_0x181f84[_0x1e3ae3(0x1c2)](_0x816f59[_0x1e3ae3(0x209)],{'onClick':()=>_0x1953e3[_0x1e3ae3(0x1d7)](),'children':_0x1e3ae3(0x1f4)})]});}function _0x1c059f(_0x425873){const _0x5b6bf0=_0x2101f2,{coordinator:_0x585548}=_0x425873;return _0x181f84[_0x5b6bf0(0x247)](_0x181f84[_0x5b6bf0(0x1c0)],{'children':[_0x181f84['jsx']('div',{'className':_0x5b6bf0(0x1be),'children':_0x5b6bf0(0x19b)}),_0x181f84[_0x5b6bf0(0x1c2)](_0x816f59[_0x5b6bf0(0x209)],{'onClick':()=>_0x585548[_0x5b6bf0(0x1f5)](),'children':_0x5b6bf0(0x1a3)})]});}function _0x3a5723(_0x2d542e){const _0x348594=_0x2101f2,{coordinator:_0x4ed962}=_0x2d542e;return _0x181f84['jsxs'](_0x181f84[_0x348594(0x1c0)],{'children':[_0x181f84[_0x348594(0x1c2)](_0x348594(0x1af),{'className':_0x348594(0x1be),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x181f84[_0x348594(0x1c2)](_0x816f59[_0x348594(0x209)],{'variant':_0x348594(0x1df),'onClick':()=>_0x4ed962[_0x348594(0x1a2)](),'children':_0x348594(0x22d)})]});}function _0x5a2aeb(_0x147ed7){const _0x217ae7=_0x2101f2,{coordinator:_0x1e16cc}=_0x147ed7;return _0x181f84[_0x217ae7(0x247)](_0x181f84['Fragment'],{'children':[_0x181f84[_0x217ae7(0x1c2)](_0x217ae7(0x1af),{'className':_0x217ae7(0x1be),'children':_0x217ae7(0x265)}),_0x181f84[_0x217ae7(0x1c2)](_0x816f59[_0x217ae7(0x209)],{'variant':_0x217ae7(0x21f),'onClick':()=>_0x1e16cc[_0x217ae7(0x1b2)](),'children':_0x217ae7(0x19a)})]});}function _0x3389be(){const _0x1d900d=_0x2101f2;return _0x181f84['jsx'](_0x181f84[_0x1d900d(0x1c0)],{'children':_0x1d900d(0x236)});}var _0x2c22d4=Object[_0x2101f2(0x268)],_0x3040c3=(_0xc31db1,_0x1bb1fc,_0x4313be,_0xb3d082)=>{const _0x3d91e8=_0x2101f2;for(var _0x59946b=_0xb3d082>0x1?void 0x0:_0xb3d082?_0x2c22d4(_0x1bb1fc,_0x4313be):_0x1bb1fc,_0x4108e3=_0xc31db1[_0x3d91e8(0x274)]-0x1,_0x2d3e3c;_0x4108e3>=0x0;_0x4108e3--)(_0x2d3e3c=_0xc31db1[_0x4108e3])&&(_0x59946b=_0x2d3e3c(_0x59946b)||_0x59946b);return _0x59946b;},_0x8ac35f=(_0x1b7cac,_0x381b5e)=>(_0x551d4a,_0x5a55ff)=>_0x381b5e(_0x551d4a,_0x5a55ff,_0x1b7cac);_0x24d3e6[_0x2101f2(0x221)]=class extends _0x30a709['Disposable']{constructor(_0x18e7ad,_0x6005e0){const _0x408c9d=_0x2101f2;super(),this[_0x408c9d(0x273)]=_0x18e7ad,this[_0x408c9d(0x24a)]=_0x6005e0,this['_mountLiveShare']();}[_0x2101f2(0x22f)](){const _0x359d32=_0x2101f2;this[_0x359d32(0x21d)](this['_uiPartsService'][_0x359d32(0x25e)](_0x99ed13[_0x359d32(0x1bd)][_0x359d32(0x23b)],()=>_0x99ed13[_0x359d32(0x199)](_0x277807,this[_0x359d32(0x273)])));}},_0x24d3e6[_0x2101f2(0x221)]=_0x3040c3([_0x8ac35f(0x0,_0x30a709[_0x2101f2(0x1fb)](_0x30a709[_0x2101f2(0x276)])),_0x8ac35f(0x1,_0x99ed13[_0x2101f2(0x1a8)])],_0x24d3e6[_0x2101f2(0x221)]);const _0x39356e=_0x2101f2(0x1ef),_0x6ccb34={};var _0x557ab7=Object[_0x2101f2(0x268)],_0x28f434=(_0x5c077e,_0x35d40b,_0x3d97f3,_0x22859a)=>{const _0x2ed47d=_0x2101f2;for(var _0x4f4c08=_0x22859a>0x1?void 0x0:_0x22859a?_0x557ab7(_0x35d40b,_0x3d97f3):_0x35d40b,_0x456d00=_0x5c077e[_0x2ed47d(0x274)]-0x1,_0x4bc296;_0x456d00>=0x0;_0x456d00--)(_0x4bc296=_0x5c077e[_0x456d00])&&(_0x4f4c08=_0x4bc296(_0x4f4c08)||_0x4f4c08);return _0x4f4c08;},_0x3a6610=(_0x3cc4ef,_0x562ae4)=>(_0x59097d,_0x2fb9f0)=>_0x562ae4(_0x59097d,_0x2fb9f0,_0x3cc4ef);let _0xd9ce9c=class extends _0x30a709[_0x2101f2(0x257)]{constructor(_0x3cd4cc){const _0x1da6f4=_0x2101f2;super(),this[_0x1da6f4(0x1dc)]=_0x3cd4cc,this[_0x1da6f4(0x19e)]();}[_0x2101f2(0x19e)](){const _0x9ade22=_0x2101f2;[_0x5a189b[_0x9ade22(0x1ee)]['id'],_0x5a189b[_0x9ade22(0x1a4)]['id'],_0x10ecdd[_0x9ade22(0x204)]['id']][_0x9ade22(0x1d2)](_0x4b105b=>{const _0x29833f=_0x9ade22;this[_0x29833f(0x21d)](this['_liveShareService'][_0x29833f(0x20a)](_0x4b105b));});}};_0xd9ce9c=_0x28f434([_0x3a6610(0x0,_0x30a709[_0x2101f2(0x1fb)](_0x2f19a8))],_0xd9ce9c);var _0x5a830a=Object[_0x2101f2(0x1d1)],_0x37187a=Object['getOwnPropertyDescriptor'],_0x396edb=(_0x23b108,_0x5320fb,_0xa7e7f2)=>_0x5320fb in _0x23b108?_0x5a830a(_0x23b108,_0x5320fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa7e7f2}):_0x23b108[_0x5320fb]=_0xa7e7f2,_0x458158=(_0x446b39,_0x586393,_0x4219a1,_0x11c083)=>{const _0x56068a=_0x2101f2;for(var _0x1f0551=_0x11c083>0x1?void 0x0:_0x11c083?_0x37187a(_0x586393,_0x4219a1):_0x586393,_0x10bcf5=_0x446b39[_0x56068a(0x274)]-0x1,_0x466635;_0x10bcf5>=0x0;_0x10bcf5--)(_0x466635=_0x446b39[_0x10bcf5])&&(_0x1f0551=_0x466635(_0x1f0551)||_0x1f0551);return _0x1f0551;},_0x478112=(_0x14778d,_0x5d7fbc)=>(_0x444e11,_0x4408a1)=>_0x5d7fbc(_0x444e11,_0x4408a1,_0x14778d),_0x284255=(_0x465f8a,_0x6e529c,_0x1a9a16)=>_0x396edb(_0x465f8a,typeof _0x6e529c!=_0x2101f2(0x1f7)?_0x6e529c+'':_0x6e529c,_0x1a9a16);const _0x22b70f=_0x2101f2(0x217);_0x24d3e6[_0x2101f2(0x1db)]=class extends _0x30a709['Plugin']{constructor(_0x54f2b1=_0x6ccb34,_0x47d1a5,_0xc7c2fc){const _0x3294f5=_0x2101f2;super(),this['_config']=_0x54f2b1,this[_0x3294f5(0x273)]=_0x47d1a5,this[_0x3294f5(0x20e)]=_0xc7c2fc;const {..._0x1ad63a}=_0x30a709[_0x3294f5(0x1e1)]({},_0x6ccb34,this[_0x3294f5(0x1f3)]);this[_0x3294f5(0x20e)][_0x3294f5(0x197)](_0x39356e,_0x1ad63a);}['onStarting'](){const _0x237109=_0x2101f2;_0x30a709[_0x237109(0x235)](this['_injector'],_0x30a709[_0x237109(0x1ab)]([[_0x2f19a8],[_0x24d3e6['LiveShareController']],[_0xd9ce9c],[_0x24d3e6[_0x237109(0x221)]]],this[_0x237109(0x1f3)]['override'])),_0x30a709['touchDependencies'](this[_0x237109(0x273)],[[_0xd9ce9c]]);}[_0x2101f2(0x251)](){const _0x493bda=_0x2101f2;_0x30a709[_0x493bda(0x230)](this[_0x493bda(0x273)],[[_0x24d3e6[_0x493bda(0x221)]]]);}},_0x284255(_0x24d3e6[_0x2101f2(0x1db)],_0x2101f2(0x26f),_0x30a709['UniverInstanceType'][_0x2101f2(0x1d6)]),_0x284255(_0x24d3e6['UniverLiveSharePlugin'],_0x2101f2(0x27b),_0x22b70f),_0x24d3e6[_0x2101f2(0x1db)]=_0x458158([_0x30a709[_0x2101f2(0x203)](_0x1709cf[_0x2101f2(0x1c7)]),_0x478112(0x1,_0x30a709[_0x2101f2(0x1fb)](_0x30a709['Injector'])),_0x478112(0x2,_0x30a709[_0x2101f2(0x22a)])],_0x24d3e6[_0x2101f2(0x1db)]),_0x24d3e6[_0x2101f2(0x200)]=_0x277807,_0x24d3e6[_0x2101f2(0x245)]=_0x2f19a8,_0x24d3e6[_0x2101f2(0x1fd)]=_0x83f694,Object[_0x2101f2(0x1d1)](_0x24d3e6,Symbol[_0x2101f2(0x24c)],{'value':_0x2101f2(0x1bb)});}));function _0x439f(){const _0x3c1177=['_collabSessionService','trim','_stopFollowing','462414rKQcdc','takeUntil','UNIVER_LIVE_SHARE_PLUGIN','InsertSheetMutation','@univerjs/ui','1632558xDSvNK','evenodd','values','disposeWithMe','data','default','DisposableCollection','DesktopLiveShareController','next','CollaborationSessionService','not-following','requireSession','asObservable','useState','function','LIVESHARE_OPERATION','IConfigService','_handleOffline','unsubscribe','Start\x20following','fill','_mountLiveShare','touchDependencies','following','exports','_beIdle','_startLiveShareCoordinator','registerDependencies','You\x27are\x20offline.','@univerjs-pro/collaboration','LIVESHARE_REQUEST_HOST','Subject','getInitialStates','HEADER_MENU','SessionStatus','908148Cxhppz','792132MTbzBe','UniverProLiveShare','live-share-icon','4lcuFfQ','subscribe','_handleOnline','getStatus','LiveShareService','path','jsxs','memberID','url(#$1','_uiPartsService','reverse','toStringTag','17896176WxLtRI','@univerjs/sheets','_status$','idSuffix','onRendered','offline','react/jsx-runtime','current','string','operations','Disposable','sheet','_startFollowing','toString','presenting','entries','rxjs','registerComponent','mask','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverInstanceType','getUnitId','10520960PdkXof','14WEvawa','You\x27re\x20presenting\x20the\x20document','children','_commandDisposable','getOwnPropertyDescriptor','idle','currentColor','RxDisposable','_sharedOperations','amd','_handleOperation','type','dispose$','presenter','_univerInstanceService','_injector','length','UniverProCollaboration','Injector','operators','UniverUi','getLiveShareCoordinator','_stopPresenting','pluginName','LiveShareController','_unitID','status$','_collabSession','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','IDLE','then','setConfig','@univerjs/sheets-ui','connectInjector','Stop\x20presenting','You\x27re\x20following\x20the\x20presenter','_commandService','includes','_init','toDisposable','OFFLINE','IUniverInstanceService','startFollowing','Stop\x20following','SetScrollOperation','onCommandExecuted','add','colorChannel1','IUIPartsService','useEffect','FOLLOWING','mergeOverrideWithDependencies','useRef','getValue','_entities','div','complete','parseProtocolChangeset','stopPresenting','svg','end','executeCommand','assign','stringify','UniverIcon','registerInitialStateReporter','forwardRef','Module','has','BuiltInUIPart','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewHost','Fragment','map','jsx','clear','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','NOT_FOLLOWING','dispose','UniverCollaborationClientPlugin','attrs','random','LIVESHARE_FETCH_OPERATIONS','set','LIVESHARE_TERMINATE','_status','send','ICommandService','1em','defineProperty','forEach','LiveShareCoordinator','tag','_fetchOperations','UNIVER_UNKNOWN','tryStartPresenting','_reporters','pipe','createElement','UniverLiveSharePlugin','_liveShareService','2483035NBntJA','ONLINE','text','React','merge','Dropdown','getLiveShareCoordinatorSync','react','getTypeOfUnitAdded$','get','UniverSheetsUi','button','getCurrentTypeOfUnit$','LIVESHARE_NEW_HOST','UNIVER_SHEET','replace','defs','SetZoomRatioOperation','live-share.config','_presenter','univerjs-icon\x20univerjs-icon-','params','_config','Start','stopFollowing','xlink:href','symbol','event$','delete','CollaborationEvent','Inject','find','LiveShareStatus','Present\x20this\x20document','useDependency','LiveShare','use','getMemberID','DependentOn','SetWorksheetActiveOperation','_handleTerminate','CommandType','clsx','substring','Button','registerSharedOperation','defIds','PRESENTING','displayName','_configService','unitId','_handleNewChangeSets','parse'];_0x439f=function(){return _0x3c1177;};return _0x439f();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.14.0",
3
+ "version": "0.15.0-insiders.20251227-453e4ff",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -56,15 +56,15 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/icons": "^1.0.2",
60
- "@univerjs-pro/collaboration": "0.14.0",
61
- "@univerjs-pro/collaboration-client": "0.14.0",
62
- "@univerjs/design": "0.14.0",
63
- "@univerjs/core": "0.14.0",
64
- "@univerjs/engine-render": "0.14.0",
65
- "@univerjs/sheets-ui": "0.14.0",
66
- "@univerjs/sheets": "0.14.0",
67
- "@univerjs/ui": "0.14.0"
59
+ "@univerjs/icons": "^1.1.0",
60
+ "@univerjs-pro/collaboration": "0.15.0-insiders.20251227-453e4ff",
61
+ "@univerjs-pro/collaboration-client": "0.15.0-insiders.20251227-453e4ff",
62
+ "@univerjs/core": "0.15.0-insiders.20251227-453e4ff",
63
+ "@univerjs/design": "0.15.0-insiders.20251227-453e4ff",
64
+ "@univerjs/engine-render": "0.15.0-insiders.20251227-453e4ff",
65
+ "@univerjs/sheets": "0.15.0-insiders.20251227-453e4ff",
66
+ "@univerjs/sheets-ui": "0.15.0-insiders.20251227-453e4ff",
67
+ "@univerjs/ui": "0.15.0-insiders.20251227-453e4ff"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,10 +72,10 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.2.7",
76
- "vitest": "^4.0.15",
75
+ "vite": "^7.3.0",
76
+ "vitest": "^4.0.16",
77
77
  "@univerjs-infra/shared": "0.14.0",
78
- "@univerjs/protocol": "0.1.47"
78
+ "@univerjs/protocol": "0.1.48"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",