@univerjs-pro/live-share 0.12.4-experimental.20251208-c4b8a44 → 0.12.4-experimental.20251210-d708bff

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5954cb=_0x5529;function _0x5529(_0x27412d,_0x437834){_0x27412d=_0x27412d-0xa4;const _0x41651b=_0x4165();let _0x552988=_0x41651b[_0x27412d];return _0x552988;}(function(_0x359223,_0x3d75f4){const _0x16bcf5=_0x5529,_0x3acb96=_0x359223();while(!![]){try{const _0x3aa163=-parseInt(_0x16bcf5(0xb0))/0x1+parseInt(_0x16bcf5(0xac))/0x2+parseInt(_0x16bcf5(0xbc))/0x3+-parseInt(_0x16bcf5(0xbb))/0x4+parseInt(_0x16bcf5(0xb6))/0x5*(-parseInt(_0x16bcf5(0xce))/0x6)+-parseInt(_0x16bcf5(0xcc))/0x7*(-parseInt(_0x16bcf5(0xc2))/0x8)+parseInt(_0x16bcf5(0xc8))/0x9*(parseInt(_0x16bcf5(0xb4))/0xa);if(_0x3aa163===_0x3d75f4)break;else _0x3acb96['push'](_0x3acb96['shift']());}catch(_0x194a50){_0x3acb96['push'](_0x3acb96['shift']());}}}(_0x4165,0x245db));function _0x4165(){const _0x1029f1=['_initialize','79606tBuAtY','SetWorksheetActiveOperation','getId','LiveShareController','260993eDHhln','IRenderManagerService','No\x20active\x20workbook\x20found.','startPresenting','10JkzhEq','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','128795ynsaBf','SetScrollOperation','LiveShareStatus','tryStartPresenting','_commandService','38260nsKHqt','448473iBQrWU','FUniver','IDLE','startColumn','getLiveShareStatus','getStatus','3576ofPyzx','getActiveWorkbook','syncExecuteCommand','getSheetId','_injector','startRow','2142927XtYCaP','PRESENTING','LiveShareStatusEnum','stopFollowing','3507eRgIvt','get','54INkYxz','startFollowing','getLiveShareCoordinatorSync','getUnitId','extend','FEnum','getActiveSheet','stopPresenting','FRange','executeCommand'];_0x4165=function(){return _0x1029f1;};return _0x4165();}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[_0x5954cb(0xa9)]{[_0x5954cb(0xab)](_0x8784cd,_0x286554,_0x1ec71e,_0x19ff49,_0x167bc5){const _0x4e1ed6=_0x5954cb,_0x9a37fb=_0x8784cd[_0x4e1ed6(0xcd)](n[_0x4e1ed6(0xaf)]),_0x418f92=_0x8784cd[_0x4e1ed6(0xcd)](g[_0x4e1ed6(0xb1)]),_0x29123e=_0x286554[_0x4e1ed6(0xa4)](),_0x5445bc=_0x286554[_0x4e1ed6(0xa7)](),_0x537f3a=_0x9a37fb[_0x4e1ed6(0xd0)](_0x29123e);(_0x537f3a==null?void 0x0:_0x537f3a[_0x4e1ed6(0xc1)]())!==n['LiveShareStatus'][_0x4e1ed6(0xc9)]||(_0x1ec71e[_0x4e1ed6(0xc5)]()!==_0x5445bc[_0x4e1ed6(0xc5)]()&&this[_0x4e1ed6(0xba)][_0x4e1ed6(0xaa)](u[_0x4e1ed6(0xad)]['id'],{'unitId':_0x29123e,'subUnitId':_0x1ec71e[_0x4e1ed6(0xc5)]()}),!_0x418f92['getRenderById'](_0x29123e))||_0x167bc5[_0x4e1ed6(0xc4)](f[_0x4e1ed6(0xb7)]['id'],{'unitId':_0x286554[_0x4e1ed6(0xa4)](),'sheetId':_0x1ec71e['getSheetId'](),'sheetViewStartRow':_0x19ff49[_0x4e1ed6(0xc7)],'sheetViewStartColumn':_0x19ff49[_0x4e1ed6(0xbf)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x5954cb(0xa9)][_0x5954cb(0xa5)](w);class C extends a['FUniver']{[_0x5954cb(0xc0)](){const _0x2712e3=_0x5954cb;var _0x47e964,_0x487fa4;const _0x455c45=this[_0x2712e3(0xc6)]['get'](n[_0x2712e3(0xaf)]),_0x2e5b85=(_0x47e964=this['getActiveWorkbook']())==null?void 0x0:_0x47e964[_0x2712e3(0xae)]();if(!_0x2e5b85)throw new Error(_0x2712e3(0xb2));const _0x4a9293=_0x455c45[_0x2712e3(0xd0)](_0x2e5b85);return(_0x487fa4=_0x4a9293==null?void 0x0:_0x4a9293[_0x2712e3(0xc1)]())!=null?_0x487fa4:n[_0x2712e3(0xb8)][_0x2712e3(0xbe)];}[_0x5954cb(0xcf)](){const _0xb874df=_0x5954cb;var _0x5643b4;const _0x43066b=this[_0xb874df(0xc6)]['get'](n['LiveShareController']),_0x3d198b=(_0x5643b4=this['getActiveWorkbook']())==null?void 0x0:_0x5643b4[_0xb874df(0xae)]();if(!_0x3d198b)throw new Error(_0xb874df(0xb2));const _0x3a632b=_0x43066b['getLiveShareCoordinatorSync'](_0x3d198b);if(!_0x3a632b)throw new Error(_0xb874df(0xb5));_0x3a632b[_0xb874df(0xcf)]();}['stopFollowing'](){const _0x4fdf54=_0x5954cb;var _0x2ec2cc;const _0x43cac9=this[_0x4fdf54(0xc6)][_0x4fdf54(0xcd)](n[_0x4fdf54(0xaf)]),_0x5bd410=(_0x2ec2cc=this[_0x4fdf54(0xc3)]())==null?void 0x0:_0x2ec2cc['getId']();if(!_0x5bd410)throw new Error('No\x20active\x20workbook\x20found.');const _0x1e1005=_0x43cac9[_0x4fdf54(0xd0)](_0x5bd410);if(!_0x1e1005)throw new Error(_0x4fdf54(0xb5));_0x1e1005[_0x4fdf54(0xcb)]();}[_0x5954cb(0xb3)](){const _0x4efc53=_0x5954cb;var _0x9c65c;const _0x390ad5=this[_0x4efc53(0xc6)]['get'](n[_0x4efc53(0xaf)]),_0x3e218e=(_0x9c65c=this['getActiveWorkbook']())==null?void 0x0:_0x9c65c[_0x4efc53(0xae)]();if(!_0x3e218e)throw new Error(_0x4efc53(0xb2));const _0x5d9f86=_0x390ad5[_0x4efc53(0xd0)](_0x3e218e);if(!_0x5d9f86)throw new Error(_0x4efc53(0xb5));_0x5d9f86[_0x4efc53(0xb9)]();}[_0x5954cb(0xa8)](){const _0x13a097=_0x5954cb;var _0x3b7801;const _0x3abdb9=this[_0x13a097(0xc6)]['get'](n[_0x13a097(0xaf)]),_0x1cfc93=(_0x3b7801=this[_0x13a097(0xc3)]())==null?void 0x0:_0x3b7801[_0x13a097(0xae)]();if(!_0x1cfc93)throw new Error(_0x13a097(0xb2));const _0x54febc=_0x3abdb9[_0x13a097(0xd0)](_0x1cfc93);if(!_0x54febc)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54febc[_0x13a097(0xa8)]();}}a[_0x5954cb(0xbd)][_0x5954cb(0xa5)](C);class L extends a[_0x5954cb(0xa6)]{get[_0x5954cb(0xca)](){const _0x343b99=_0x5954cb;return n[_0x343b99(0xb8)];}}a[_0x5954cb(0xa6)]['extend'](L);
1
+ 'use strict';const _0xef8b9b=_0x4774;function _0x4774(_0x2b2782,_0x16dd45){_0x2b2782=_0x2b2782-0x1ca;const _0x2aca21=_0x2aca();let _0x4774a7=_0x2aca21[_0x2b2782];return _0x4774a7;}(function(_0x5213eb,_0xbaf848){const _0x356476=_0x4774,_0x59955d=_0x5213eb();while(!![]){try{const _0x6e9458=parseInt(_0x356476(0x1ea))/0x1*(parseInt(_0x356476(0x1e5))/0x2)+-parseInt(_0x356476(0x1e4))/0x3+-parseInt(_0x356476(0x1d4))/0x4+parseInt(_0x356476(0x1db))/0x5+-parseInt(_0x356476(0x1d7))/0x6+parseInt(_0x356476(0x1f0))/0x7*(-parseInt(_0x356476(0x1cb))/0x8)+-parseInt(_0x356476(0x1e8))/0x9*(-parseInt(_0x356476(0x1d8))/0xa);if(_0x6e9458===_0xbaf848)break;else _0x59955d['push'](_0x59955d['shift']());}catch(_0x93996){_0x59955d['push'](_0x59955d['shift']());}}}(_0x2aca,0xbbcd9));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{['_initialize'](_0x394863,_0x13400b,_0x45a3d5,_0x592125,_0x45dc8e){const _0x47a148=_0x4774,_0x113958=_0x394863[_0x47a148(0x1da)](n['LiveShareController']),_0x46d227=_0x394863['get'](g['IRenderManagerService']),_0x380483=_0x13400b['getUnitId'](),_0x48d99c=_0x13400b[_0x47a148(0x1e0)](),_0x4503b3=_0x113958[_0x47a148(0x1d9)](_0x380483);(_0x4503b3==null?void 0x0:_0x4503b3['getStatus']())!==n[_0x47a148(0x1ec)][_0x47a148(0x1e2)]||(_0x45a3d5['getSheetId']()!==_0x48d99c[_0x47a148(0x1e7)]()&&this[_0x47a148(0x1ee)][_0x47a148(0x1e6)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x380483,'subUnitId':_0x45a3d5['getSheetId']()}),!_0x46d227[_0x47a148(0x1ca)](_0x380483))||_0x45dc8e[_0x47a148(0x1ed)](f['SetScrollOperation']['id'],{'unitId':_0x13400b[_0x47a148(0x1dd)](),'sheetId':_0x45a3d5[_0x47a148(0x1e7)](),'sheetViewStartRow':_0x592125['startRow'],'sheetViewStartColumn':_0x592125[_0x47a148(0x1d1)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange'][_0xef8b9b(0x1cc)](w);function _0x2aca(){const _0x538221=['1659560tHIxZQ','FUniver','_injector','1332366NrFVVl','10TkTSNG','getLiveShareCoordinatorSync','get','5427625avkuTk','IDLE','getUnitId','No\x20active\x20workbook\x20found.','getId','getActiveSheet','stopPresenting','PRESENTING','tryStartPresenting','559578GgZLRa','451558jrsHFi','executeCommand','getSheetId','7171965lrnrrz','LiveShareStatusEnum','2FCgaVT','stopFollowing','LiveShareStatus','syncExecuteCommand','_commandService','FEnum','8750hEGMfQ','getRenderById','4744PGbhYA','extend','getActiveWorkbook','startPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareController','startColumn','startFollowing','getLiveShareStatus'];_0x2aca=function(){return _0x538221;};return _0x2aca();}class C extends a[_0xef8b9b(0x1d5)]{[_0xef8b9b(0x1d3)](){const _0x3818bc=_0xef8b9b;var _0x4f7b5b,_0x3bb1f5;const _0x3c437a=this[_0x3818bc(0x1d6)][_0x3818bc(0x1da)](n[_0x3818bc(0x1d0)]),_0x1a849f=(_0x4f7b5b=this[_0x3818bc(0x1cd)]())==null?void 0x0:_0x4f7b5b[_0x3818bc(0x1df)]();if(!_0x1a849f)throw new Error(_0x3818bc(0x1de));const _0x49a0bf=_0x3c437a[_0x3818bc(0x1d9)](_0x1a849f);return(_0x3bb1f5=_0x49a0bf==null?void 0x0:_0x49a0bf['getStatus']())!=null?_0x3bb1f5:n[_0x3818bc(0x1ec)][_0x3818bc(0x1dc)];}[_0xef8b9b(0x1d2)](){const _0xa8e5d=_0xef8b9b;var _0xd3eac0;const _0x103bb9=this[_0xa8e5d(0x1d6)][_0xa8e5d(0x1da)](n[_0xa8e5d(0x1d0)]),_0x14c27c=(_0xd3eac0=this[_0xa8e5d(0x1cd)]())==null?void 0x0:_0xd3eac0[_0xa8e5d(0x1df)]();if(!_0x14c27c)throw new Error(_0xa8e5d(0x1de));const _0x46c0ee=_0x103bb9[_0xa8e5d(0x1d9)](_0x14c27c);if(!_0x46c0ee)throw new Error(_0xa8e5d(0x1cf));_0x46c0ee[_0xa8e5d(0x1d2)]();}[_0xef8b9b(0x1eb)](){const _0x579ac4=_0xef8b9b;var _0x43b97a;const _0x54e405=this[_0x579ac4(0x1d6)][_0x579ac4(0x1da)](n[_0x579ac4(0x1d0)]),_0x1f61f3=(_0x43b97a=this[_0x579ac4(0x1cd)]())==null?void 0x0:_0x43b97a['getId']();if(!_0x1f61f3)throw new Error(_0x579ac4(0x1de));const _0x90c330=_0x54e405[_0x579ac4(0x1d9)](_0x1f61f3);if(!_0x90c330)throw new Error(_0x579ac4(0x1cf));_0x90c330[_0x579ac4(0x1eb)]();}[_0xef8b9b(0x1ce)](){const _0x46b42f=_0xef8b9b;var _0x407734;const _0x446f00=this[_0x46b42f(0x1d6)][_0x46b42f(0x1da)](n['LiveShareController']),_0x81e3=(_0x407734=this[_0x46b42f(0x1cd)]())==null?void 0x0:_0x407734[_0x46b42f(0x1df)]();if(!_0x81e3)throw new Error(_0x46b42f(0x1de));const _0x5249fa=_0x446f00[_0x46b42f(0x1d9)](_0x81e3);if(!_0x5249fa)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5249fa[_0x46b42f(0x1e3)]();}[_0xef8b9b(0x1e1)](){const _0x2b3ead=_0xef8b9b;var _0x51f445;const _0x72e5ad=this[_0x2b3ead(0x1d6)][_0x2b3ead(0x1da)](n[_0x2b3ead(0x1d0)]),_0x22a030=(_0x51f445=this[_0x2b3ead(0x1cd)]())==null?void 0x0:_0x51f445[_0x2b3ead(0x1df)]();if(!_0x22a030)throw new Error('No\x20active\x20workbook\x20found.');const _0x4ae5d9=_0x72e5ad['getLiveShareCoordinatorSync'](_0x22a030);if(!_0x4ae5d9)throw new Error(_0x2b3ead(0x1cf));_0x4ae5d9[_0x2b3ead(0x1e1)]();}}a[_0xef8b9b(0x1d5)]['extend'](C);class L extends a['FEnum']{get[_0xef8b9b(0x1e9)](){const _0x589bed=_0xef8b9b;return n[_0x589bed(0x1ec)];}}a[_0xef8b9b(0x1ef)][_0xef8b9b(0x1cc)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x27a659=_0x5063;(function(_0x25842b,_0x3aa104){const _0xe9edf1=_0x5063,_0x39c090=_0x25842b();while(!![]){try{const _0x445052=-parseInt(_0xe9edf1(0x1e0))/0x1+-parseInt(_0xe9edf1(0x1b1))/0x2+-parseInt(_0xe9edf1(0x1a9))/0x3*(-parseInt(_0xe9edf1(0x15a))/0x4)+parseInt(_0xe9edf1(0x191))/0x5*(-parseInt(_0xe9edf1(0x1f0))/0x6)+-parseInt(_0xe9edf1(0x18c))/0x7*(-parseInt(_0xe9edf1(0x1c0))/0x8)+-parseInt(_0xe9edf1(0x15f))/0x9+parseInt(_0xe9edf1(0x16e))/0xa;if(_0x445052===_0x3aa104)break;else _0x39c090['push'](_0x39c090['shift']());}catch(_0x4b6f52){_0x39c090['push'](_0x39c090['shift']());}}}(_0x1fc6,0x2a102));var T=Object['defineProperty'],U=(_0x13837b,_0x58ce81,_0x42add7)=>_0x58ce81 in _0x13837b?T(_0x13837b,_0x58ce81,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42add7}):_0x13837b[_0x58ce81]=_0x42add7,_=(_0x33f611,_0x48cef1,_0x450939)=>U(_0x33f611,typeof _0x48cef1!=_0x27a659(0x19c)?_0x48cef1+'':_0x48cef1,_0x450939);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x2fb0b6,..._0x3b05b3}){const _0x3dfe27=_0x27a659,{icon:_0x228bc6,id:_0x4c7317,className:_0x1ef958,extend:_0x39e9c7,..._0x5bffcc}=_0x3b05b3,_0x4fe64c=(_0x3dfe27(0x148)+_0x4c7317+'\x20'+(_0x1ef958||''))[_0x3dfe27(0x19a)](),_0xd70413=v[_0x3dfe27(0x214)]('_'+H());return j(_0x228bc6,''+_0x4c7317,{'defIds':_0x228bc6[_0x3dfe27(0x208)],'idSuffix':_0xd70413[_0x3dfe27(0x160)]},{'ref':_0x2fb0b6,'className':_0x4fe64c,..._0x5bffcc},_0x39e9c7);}function j(_0x43ace6,_0xa2d5ee,_0x1ccf0f,_0x434f3b,_0x5b07f4){const _0x255e31=_0x27a659;return v[_0x255e31(0x20e)](_0x43ace6[_0x255e31(0x171)],{'key':_0xa2d5ee,...y(_0x43ace6,_0x1ccf0f,_0x5b07f4),..._0x434f3b},(F(_0x43ace6,_0x1ccf0f)[_0x255e31(0x1fa)]||[])[_0x255e31(0x1ee)]((_0x487940,_0x59eb54)=>j(_0x487940,_0xa2d5ee+'-'+_0x43ace6[_0x255e31(0x171)]+'-'+_0x59eb54,_0x1ccf0f,void 0x0,_0x5b07f4)));}function y(_0x2eacde,_0xf4d992,_0x469ddd){const _0x3ee4e3=_0x27a659,_0x3192f2={..._0x2eacde[_0x3ee4e3(0x1e3)]};_0x469ddd!=null&&_0x469ddd[_0x3ee4e3(0x1be)]&&_0x3192f2[_0x3ee4e3(0x159)]===_0x3ee4e3(0x1be)&&(_0x3192f2['fill']=_0x469ddd[_0x3ee4e3(0x1be)]),_0x2eacde[_0x3ee4e3(0x171)]===_0x3ee4e3(0x1b5)&&_0x3192f2['id']&&(_0x3192f2['id']=_0x3192f2['id']+_0xf4d992[_0x3ee4e3(0x1b6)]),Object[_0x3ee4e3(0x172)](_0x3192f2)['forEach'](([_0x13e2fb,_0xe41bcd])=>{const _0x4b5453=_0x3ee4e3;_0x13e2fb===_0x4b5453(0x1b5)&&typeof _0xe41bcd=='string'&&(_0x3192f2[_0x13e2fb]=_0xe41bcd['replace'](/url\(#(.*)\)/,_0x4b5453(0x163)+_0xf4d992['idSuffix']+')'));});const {defIds:_0xb1a8a3}=_0xf4d992;return!_0xb1a8a3||_0xb1a8a3['length']===0x0||(_0x2eacde[_0x3ee4e3(0x171)]===_0x3ee4e3(0x1df)&&_0x3192f2['xlink:href']&&(_0x3192f2[_0x3ee4e3(0x188)]=_0x3192f2[_0x3ee4e3(0x188)]+_0xf4d992[_0x3ee4e3(0x1b6)]),Object['entries'](_0x3192f2)[_0x3ee4e3(0x17b)](([_0xa81291,_0x2578a4])=>{const _0x20f025=_0x3ee4e3;typeof _0x2578a4=='string'&&(_0x3192f2[_0xa81291]=_0x2578a4[_0x20f025(0x19e)](/url\(#(.*)\)/,_0x20f025(0x163)+_0xf4d992[_0x20f025(0x1b6)]+')'));})),_0x3192f2;}function F(_0x228383,_0x1b4874){const _0xb1d0c8=_0x27a659;var _0x4a6409;const {defIds:_0x21582e}=_0x1b4874;return!_0x21582e||_0x21582e[_0xb1d0c8(0x196)]===0x0?_0x228383:_0x228383[_0xb1d0c8(0x171)]===_0xb1d0c8(0x1c5)&&((_0x4a6409=_0x228383[_0xb1d0c8(0x1fa)])!=null&&_0x4a6409[_0xb1d0c8(0x196)])?{..._0x228383,'children':_0x228383[_0xb1d0c8(0x1fa)][_0xb1d0c8(0x1ee)](_0x47ebb0=>typeof _0x47ebb0['attrs']['id']==_0xb1d0c8(0x17a)&&_0x21582e&&_0x21582e['includes'](_0x47ebb0[_0xb1d0c8(0x1e3)]['id'])?{..._0x47ebb0,'attrs':{..._0x47ebb0[_0xb1d0c8(0x1e3)],'id':_0x47ebb0[_0xb1d0c8(0x1e3)]['id']+_0x1b4874[_0xb1d0c8(0x1b6)]}}:_0x47ebb0)}:_0x228383;}function H(){const _0x4aeef2=_0x27a659;return Math[_0x4aeef2(0x1e2)]()[_0x4aeef2(0x18f)](0x24)['substring'](0x2,0x8);}x[_0x27a659(0x165)]=_0x27a659(0x20d);const V={'tag':_0x27a659(0x1ef),'attrs':{'xmlns':_0x27a659(0x1f8),'fill':_0x27a659(0x1a5),'viewBox':_0x27a659(0x14b),'width':_0x27a659(0x217),'height':'1em'},'children':[{'tag':_0x27a659(0x174),'attrs':{'fill':'currentColor','d':_0x27a659(0x213)}},{'tag':_0x27a659(0x174),'attrs':{'fill':_0x27a659(0x1ba),'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':_0x27a659(0x1ea),'clipRule':_0x27a659(0x1ea)}}]},R=v[_0x27a659(0x1ae)](function(_0xa10058,_0x4de63b){const _0x4c63fc=_0x27a659;return v['createElement'](x,Object[_0x4c63fc(0x193)]({},_0xa10058,{'id':_0x4c63fc(0x1c4),'ref':_0x4de63b,'icon':V}));});R[_0x27a659(0x165)]=_0x27a659(0x178);class E extends o[_0x27a659(0x19f)]{constructor(){const _0x11727e=_0x27a659;super(...arguments),_(this,_0x11727e(0x200),new Set()),_(this,'_reporters',new Set());}[_0x27a659(0x185)](_0x31d648){const _0x2236ad=_0x27a659;return this['_sharedOperations'][_0x2236ad(0x179)](_0x31d648),o[_0x2236ad(0x1d1)](()=>this['_sharedOperations'][_0x2236ad(0x16b)](_0x31d648));}[_0x27a659(0x16c)](_0x5d7d78){const _0x5416b3=_0x27a659;return this[_0x5416b3(0x14d)][_0x5416b3(0x179)](_0x5d7d78),o[_0x5416b3(0x1d1)](()=>this[_0x5416b3(0x14d)][_0x5416b3(0x16b)](_0x5d7d78));}[_0x27a659(0x1ed)](_0x341508){const _0x208a24=_0x27a659;return this[_0x208a24(0x200)][_0x208a24(0x16a)](_0x341508);}['getInitialStates'](_0x573caf){const _0x3edb77=_0x27a659;return Array['from'](this[_0x3edb77(0x14d)])[_0x3edb77(0x1ee)](_0x172c49=>_0x172c49(_0x573caf));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x3a50ae,_0x3fc2b0,_0x3f7e82,_0x12bcba)=>{for(var _0x213d95=_0x12bcba>0x1?void 0x0:_0x12bcba?M(_0x3fc2b0,_0x3f7e82):_0x3fc2b0,_0x22ed2d=_0x3a50ae['length']-0x1,_0x21036b;_0x22ed2d>=0x0;_0x22ed2d--)(_0x21036b=_0x3a50ae[_0x22ed2d])&&(_0x213d95=_0x21036b(_0x213d95)||_0x213d95);return _0x213d95;},S=(_0x5da627,_0x3ea071)=>(_0x54852a,_0xd8417)=>_0x3ea071(_0x54852a,_0xd8417,_0x5da627);function _0x5063(_0x2caf26,_0x4fe090){_0x2caf26=_0x2caf26-0x148;const _0x1fc6d4=_0x1fc6();let _0x5063c2=_0x1fc6d4[_0x2caf26];return _0x5063c2;}exports['LiveShareController']=class extends o[_0x27a659(0x154)]{constructor(_0x3fd419,_0x228dd1,_0x274ce9){const _0x245b6f=_0x27a659;super(),_(this,_0x245b6f(0x167),new Map()),(this['_univerInstanceService']=_0x3fd419,this[_0x245b6f(0x150)]=_0x228dd1,this[_0x245b6f(0x198)]=_0x274ce9,this[_0x245b6f(0x1bc)]());}async[_0x27a659(0x16d)](_0x438f52){const _0x291f03=_0x27a659;return this[_0x291f03(0x167)]['has'](_0x438f52)||await this['_startLiveShareCoordinator'](_0x438f52),this[_0x291f03(0x167)][_0x291f03(0x162)](_0x438f52);}['getLiveShareCoordinatorSync'](_0x209279){const _0x154d91=_0x27a659;var _0x440f94;return(_0x440f94=this[_0x154d91(0x167)]['get'](_0x209279))!=null?_0x440f94:null;}[_0x27a659(0x1bc)](){const _0x2ed358=_0x27a659;this[_0x2ed358(0x155)][_0x2ed358(0x158)](o[_0x2ed358(0x14a)][_0x2ed358(0x1cc)])['pipe'](I[_0x2ed358(0x215)](this[_0x2ed358(0x206)]))[_0x2ed358(0x1e9)](async _0x3ceb75=>{const _0x46096b=_0x2ed358,_0x2bda13=_0x3ceb75[_0x46096b(0x1d7)]();this[_0x46096b(0x167)][_0x46096b(0x16a)](_0x2bda13)||this[_0x46096b(0x1fe)](_0x2bda13);}),this[_0x2ed358(0x155)][_0x2ed358(0x194)](o['UniverInstanceType'][_0x2ed358(0x1cc)])[_0x2ed358(0x1a8)](I[_0x2ed358(0x215)](this[_0x2ed358(0x206)]))[_0x2ed358(0x1e9)](_0x30e332=>{const _0x31215e=_0x2ed358,_0x85e6e0=_0x30e332[_0x31215e(0x1d7)](),_0x3b5ad3=this[_0x31215e(0x167)]['get'](_0x85e6e0);_0x3b5ad3==null||_0x3b5ad3[_0x31215e(0x18b)]();});}async['_startLiveShareCoordinator'](_0x31390c){const _0x3cfc05=_0x27a659,_0x188907=await this[_0x3cfc05(0x198)]['requireSession'](_0x31390c),_0x216baa=this[_0x3cfc05(0x150)]['createInstance'](exports[_0x3cfc05(0x218)],_0x31390c,_0x188907);return _0x216baa['init'](),this['_entities'][_0x3cfc05(0x211)](_0x31390c,_0x216baa),_0x216baa;}},exports[_0x27a659(0x181)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x27a659(0x1aa)](o[_0x27a659(0x1d0)])),S(0x2,o[_0x27a659(0x1aa)](b[_0x27a659(0x1f7)]))],exports[_0x27a659(0x181)]);var u=(_0xa6e20c=>(_0xa6e20c[_0x27a659(0x1c8)]='offline',_0xa6e20c['IDLE']=_0x27a659(0x15b),_0xa6e20c[_0x27a659(0x197)]='following',_0xa6e20c[_0x27a659(0x1b8)]=_0x27a659(0x168),_0xa6e20c[_0x27a659(0x199)]='presenting',_0xa6e20c))(u||{});const k=_0x27a659(0x1c3),q=0xc8;exports[_0x27a659(0x218)]=class extends o['RxDisposable']{constructor(_0x1354e8,_0x192301,_0xf3ca14,_0x5a0931,_0x212f12){const _0x3514b4=_0x27a659;super(),_(this,_0x3514b4(0x1c7),new O[(_0x3514b4(0x1e4))](_0x3514b4(0x15b))),_(this,'status$',this[_0x3514b4(0x1c7)][_0x3514b4(0x205)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this['_unitID']=_0x1354e8,this[_0x3514b4(0x1a3)]=_0x192301,this[_0x3514b4(0x1ce)]=_0xf3ca14,this['_liveShareService']=_0x5a0931,this['_commandService']=_0x212f12);}get[_0x27a659(0x14f)](){const _0x3822f0=_0x27a659;return this[_0x3822f0(0x1c7)][_0x3822f0(0x157)]();}['dispose'](){const _0x5197a2=_0x27a659;var _0x1393f9;(_0x1393f9=this[_0x5197a2(0x173)])==null||_0x1393f9['dispose'](),this[_0x5197a2(0x1c7)][_0x5197a2(0x1c2)](_0x5197a2(0x15b)),this[_0x5197a2(0x1c7)][_0x5197a2(0x14e)]();}[_0x27a659(0x204)](){return this['_status'];}[_0x27a659(0x186)](){const _0x426df3=_0x27a659;this[_0x426df3(0x1bc)]||(this['_init']=!0x0,this[_0x426df3(0x1a3)][_0x426df3(0x1f9)][_0x426df3(0x1a8)](I['takeUntil'](this[_0x426df3(0x206)]))[_0x426df3(0x1e9)](_0x349549=>{const _0x5a7a58=_0x426df3;switch(_0x349549){case b[_0x5a7a58(0x1db)][_0x5a7a58(0x1c8)]:this['_handleOffline']();break;case b[_0x5a7a58(0x1db)]['ONLINE']:this[_0x5a7a58(0x18a)]();break;}}),this[_0x426df3(0x1a3)][_0x426df3(0x1fc)][_0x426df3(0x1a8)](I[_0x426df3(0x215)](this[_0x426df3(0x206)]))[_0x426df3(0x1e9)](_0x14f63c=>{const _0x3b1b18=_0x426df3,{eventID:_0x2845d3}=_0x14f63c;switch(_0x2845d3){case d[_0x3b1b18(0x176)][_0x3b1b18(0x1af)]:this[_0x3b1b18(0x1f6)](_0x14f63c);break;case d[_0x3b1b18(0x176)][_0x3b1b18(0x1e6)]:this[_0x3b1b18(0x201)](_0x14f63c);break;case d['CollaborationEvent'][_0x3b1b18(0x17f)]:this[_0x3b1b18(0x187)]();break;case d[_0x3b1b18(0x176)][_0x3b1b18(0x1b3)]:this[_0x3b1b18(0x1ad)](_0x14f63c);break;}}));}['tryStartPresenting'](){const _0x138bae=_0x27a659;this[_0x138bae(0x1a3)][_0x138bae(0x161)]({'eventID':d[_0x138bae(0x176)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x138bae(0x17d)],'userID':this[_0x138bae(0x1a3)][_0x138bae(0x189)]()}},this[_0x138bae(0x17d)]);}['stopPresenting'](){const _0x827171=_0x27a659;this[_0x827171(0x14f)]===_0x827171(0x1bd)&&(this[_0x827171(0x1c7)][_0x827171(0x1c2)]('idle'),this[_0x827171(0x1a3)][_0x827171(0x161)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x827171(0x17d)]}},this[_0x827171(0x17d)]));}[_0x27a659(0x1ac)](){const _0x5ee5c4=_0x27a659;this[_0x5ee5c4(0x14f)]===_0x5ee5c4(0x168)&&(this[_0x5ee5c4(0x1c7)][_0x5ee5c4(0x1c2)](_0x5ee5c4(0x1d6)),this[_0x5ee5c4(0x1dd)]());}['stopFollowing'](){const _0x5bc09d=_0x27a659;this[_0x5bc09d(0x14f)]==='following'&&this[_0x5bc09d(0x1c1)]();}[_0x27a659(0x1f6)](_0x55c49f){const _0x14af93=_0x27a659,{presenter:_0x51faaf}=_0x55c49f[_0x14af93(0x1ca)],_0x1e86d5=this['_collabSession'][_0x14af93(0x189)]();this[_0x14af93(0x1c9)]=_0x51faaf,_0x51faaf===_0x1e86d5?(this[_0x14af93(0x1c1)](),this[_0x14af93(0x1da)]()):this[_0x14af93(0x14f)]!==_0x14af93(0x168)&&(this[_0x14af93(0x210)](),this[_0x14af93(0x1dd)]());}[_0x27a659(0x1b7)](){const _0xcbe2a6=_0x27a659,_0x4f227d={'eventID':d[_0xcbe2a6(0x176)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x4f227d,this[_0xcbe2a6(0x17d)]);}[_0x27a659(0x187)](){const _0x45022a=_0x27a659;this[_0x45022a(0x1c9)]=null,this[_0x45022a(0x14f)]!=='presenting'&&this[_0x45022a(0x1eb)]();}['_handleNewChangeSets'](_0x11fa1a){const _0x2f76e2=_0x27a659;if(this[_0x2f76e2(0x14f)]===_0x2f76e2(0x1d6)&&this['_presenter']===_0x11fa1a[_0x2f76e2(0x1ca)]['memberID']){const _0x3aead0=d[_0x2f76e2(0x1b4)](_0x11fa1a[_0x2f76e2(0x1ca)])['mutations'][_0x2f76e2(0x1d5)]()[_0x2f76e2(0x175)](_0x37474e=>_0x37474e['id']===C['InsertSheetMutation']['id']);if(_0x3aead0){const _0x295b35=_0x3aead0[_0x2f76e2(0x183)][_0x2f76e2(0x152)],_0x1bbab3=_0x3aead0['params'][_0x2f76e2(0x17c)]['id'];setTimeout(()=>{const _0x594124=_0x2f76e2;this[_0x594124(0x15c)][_0x594124(0x1e1)](C[_0x594124(0x166)]['id'],{'unitId':_0x295b35,'subUnitId':_0x1bbab3},{'fromCollab':!0x0});});}}}[_0x27a659(0x1da)](){const _0x4bba7e=_0x27a659;this['_status$']['next'](_0x4bba7e(0x1bd));const _0x31f4bf=new Map(),_0x29cf2c=this[_0x4bba7e(0x173)]=new o[(_0x4bba7e(0x1b0))]();_0x29cf2c[_0x4bba7e(0x179)](o[_0x4bba7e(0x1d1)](()=>{const _0x43924d=_0x4bba7e;_0x31f4bf[_0x43924d(0x17b)](_0x7ee812=>_0x7ee812['complete']()),_0x31f4bf[_0x43924d(0x177)]();})),_0x29cf2c[_0x4bba7e(0x179)](this[_0x4bba7e(0x15c)]['onCommandExecuted'](_0x2e792c=>{const _0x3ab56e=_0x4bba7e;var _0x3d4352;if(_0x2e792c[_0x3ab56e(0x203)]!==o[_0x3ab56e(0x1cb)][_0x3ab56e(0x1d2)]||!this['_liveShareService'][_0x3ab56e(0x1ed)](_0x2e792c['id']))return;const {id:_0x1139dc}=_0x2e792c;let _0x60b91e;_0x31f4bf['has'](_0x1139dc)?_0x60b91e=_0x31f4bf[_0x3ab56e(0x162)](_0x1139dc):(_0x60b91e=new O[(_0x3ab56e(0x1b9))](),_0x31f4bf[_0x3ab56e(0x211)](_0x1139dc,_0x60b91e),_0x60b91e[_0x3ab56e(0x1a8)](I[_0x3ab56e(0x16f)]((_0x3d4352=this[_0x3ab56e(0x1ce)][_0x3ab56e(0x1e5)](k))!=null?_0x3d4352:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ab56e(0x1e9)](_0x3005b2=>{const _0xdc0dd3=_0x3ab56e;this['_collabSession']['send']({'eventID':d[_0xdc0dd3(0x176)][_0xdc0dd3(0x1e6)],'data':{'unitID':this[_0xdc0dd3(0x17d)],'operations':{[_0x3005b2['id']]:{'id':_0x3005b2['id'],'params':JSON[_0xdc0dd3(0x190)](_0x3005b2[_0xdc0dd3(0x183)])}}}},this[_0xdc0dd3(0x17d)]);})),_0x60b91e['next'](_0x2e792c);})),this[_0x4bba7e(0x1c6)][_0x4bba7e(0x19b)](this[_0x4bba7e(0x17d)])[_0x4bba7e(0x17b)](_0x57f590=>this[_0x4bba7e(0x1a3)][_0x4bba7e(0x161)]({'eventID':d[_0x4bba7e(0x176)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4bba7e(0x17d)],'operations':{[_0x57f590['id']]:{'id':_0x57f590['id'],'params':JSON[_0x4bba7e(0x190)](_0x57f590[_0x4bba7e(0x183)])}}}},this[_0x4bba7e(0x17d)]));}['_stopPresenting'](){const _0x17672=_0x27a659;var _0x641df4;this[_0x17672(0x1c7)][_0x17672(0x1c2)](_0x17672(0x15b)),(_0x641df4=this[_0x17672(0x173)])==null||_0x641df4[_0x17672(0x18b)](),this[_0x17672(0x173)]=null;}['_startFollowing'](){const _0xa3e11e=_0x27a659;var _0x35527b;(_0x35527b=this[_0xa3e11e(0x173)])==null||_0x35527b['dispose'](),this[_0xa3e11e(0x1c7)][_0xa3e11e(0x1c2)]('following');}['_beIdle'](){const _0x4852d1=_0x27a659;var _0x1fe3f8;this[_0x4852d1(0x1c7)][_0x4852d1(0x1c2)]('idle'),(_0x1fe3f8=this['_commandDisposable'])==null||_0x1fe3f8[_0x4852d1(0x18b)](),this[_0x4852d1(0x173)]=null;}['_stopFollowing'](){const _0x37a7b1=_0x27a659;var _0x5aa099;this[_0x37a7b1(0x1c7)][_0x37a7b1(0x1c2)](_0x37a7b1(0x168)),(_0x5aa099=this['_commandDisposable'])==null||_0x5aa099[_0x37a7b1(0x18b)]();}[_0x27a659(0x201)](_0x53dd85){const _0x53b0bf=_0x27a659;if([_0x53b0bf(0x1bd),_0x53b0bf(0x168),_0x53b0bf(0x1f3)][_0x53b0bf(0x1fd)](this['_status'])||!_0x53dd85['data'][_0x53b0bf(0x20f)]||_0x53dd85[_0x53b0bf(0x1ca)][_0x53b0bf(0x20f)]===this['_collabSession'][_0x53b0bf(0x189)]())return;this['_status']===_0x53b0bf(0x15b)&&this[_0x53b0bf(0x1dd)]();const _0x4d490c=_0x53dd85[_0x53b0bf(0x1ca)]['operations'];Object['values'](_0x4d490c)[_0x53b0bf(0x17b)](_0xb050ae=>{const _0x168910=_0x53b0bf;this[_0x168910(0x15c)]['executeCommand'](_0xb050ae['id'],_0xb050ae['params']?JSON[_0x168910(0x20c)](_0xb050ae[_0x168910(0x183)]):null,{'fromCollab':!0x0});});}[_0x27a659(0x20a)](){const _0x25c156=_0x27a659;var _0x18ac8d;this[_0x25c156(0x1c7)]['next'](_0x25c156(0x1f3)),(_0x18ac8d=this[_0x25c156(0x173)])==null||_0x18ac8d[_0x25c156(0x18b)]();}[_0x27a659(0x18a)](){const _0x248d71=_0x27a659;this[_0x248d71(0x1c7)][_0x248d71(0x1c2)]('idle'),this[_0x248d71(0x1b7)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x27a659(0x1a1)]),S(0x3,o[_0x27a659(0x1aa)](E)),S(0x4,o[_0x27a659(0x1ff)])],exports['LiveShareCoordinator']);function $(){const _0x2cd295=_0x27a659,_0x28a554=p[_0x2cd295(0x1cf)](exports[_0x2cd295(0x181)]),_0x4d4f59=p[_0x2cd295(0x1cf)](o[_0x2cd295(0x1d9)]),_0x2a9e08=p['useObservable'](()=>_0x4d4f59[_0x2cd295(0x180)](o['UniverInstanceType'][_0x2cd295(0x1cc)]),void 0x0,!0x1,[]),[_0x201507,_0x2f0833]=v[_0x2cd295(0x1cd)](null),[_0x27600a,_0x230cd1]=v[_0x2cd295(0x1cd)](u[_0x2cd295(0x1d8)]),_0xb1895f=v[_0x2cd295(0x214)](null);return v[_0x2cd295(0x1fb)](()=>(_0x2a9e08&&_0x28a554[_0x2cd295(0x16d)](_0x2a9e08['getUnitId']())['then'](_0x158f07=>{const _0x26d7a8=_0x2cd295;_0x2f0833(_0x158f07),_0xb1895f[_0x26d7a8(0x160)]=_0x158f07[_0x26d7a8(0x219)][_0x26d7a8(0x1e9)](_0x455c9a=>{_0x230cd1(_0x455c9a);});}),()=>{const _0x19285d=_0x2cd295;var _0x1879f3;(_0x1879f3=_0xb1895f['current'])==null||_0x1879f3[_0x19285d(0x1d3)](),_0xb1895f[_0x19285d(0x160)]=null;}),[_0x2a9e08,_0x28a554]),_0x201507?l[_0x2cd295(0x170)](f['Dropdown'],{'align':_0x2cd295(0x18d),'disabled':_0x27600a===u[_0x2cd295(0x1c8)],'className':_0x2cd295(0x1a4),'overlay':l[_0x2cd295(0x170)](W,{'status':_0x27600a,'coordinator':_0x201507}),'children':l['jsx'](_0x2cd295(0x207),{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x27600a===u[_0x2cd295(0x1c8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27600a!==u['OFFLINE']}),'type':'button','children':l[_0x2cd295(0x170)](R,{'className':_0x2cd295(0x192)})})}):null;}function W(_0xc095c5){const _0x4187f7=_0x27a659,{status:_0x8234cd,coordinator:_0x361bb8}=_0xc095c5;switch(_0x8234cd){case u[_0x4187f7(0x1d8)]:return l[_0x4187f7(0x170)](G,{'coordinator':_0x361bb8});case u[_0x4187f7(0x197)]:return l[_0x4187f7(0x170)](B,{'coordinator':_0x361bb8});case u[_0x4187f7(0x1b8)]:return l[_0x4187f7(0x170)](Y,{'coordinator':_0x361bb8});case u[_0x4187f7(0x1c8)]:return l[_0x4187f7(0x170)](J,{});case u[_0x4187f7(0x199)]:return l[_0x4187f7(0x170)](Z,{'coordinator':_0x361bb8});default:return null;}}function G(_0x2d2097){const _0x5790d5=_0x27a659,{coordinator:_0x3aec91}=_0x2d2097;return l['jsxs'](l['Fragment'],{'children':[l[_0x5790d5(0x170)](_0x5790d5(0x164),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5790d5(0x149)}),l['jsx'](f[_0x5790d5(0x1a7)],{'onClick':()=>_0x3aec91[_0x5790d5(0x151)](),'children':_0x5790d5(0x1f2)})]});}function B(_0x112252){const _0xdff972=_0x27a659,{coordinator:_0x58a6ea}=_0x112252;return l[_0xdff972(0x1a2)](l[_0xdff972(0x195)],{'children':[l[_0xdff972(0x170)](_0xdff972(0x164),{'className':_0xdff972(0x1bf),'children':_0xdff972(0x1b2)}),l['jsx'](f[_0xdff972(0x1a7)],{'onClick':()=>_0x58a6ea['stopFollowing'](),'children':_0xdff972(0x1f4)})]});}function Y(_0x177ec9){const _0x399258=_0x27a659,{coordinator:_0x88adb1}=_0x177ec9;return l[_0x399258(0x1a2)](l[_0x399258(0x195)],{'children':[l[_0x399258(0x170)]('div',{'className':_0x399258(0x1bf),'children':_0x399258(0x17e)}),l[_0x399258(0x170)](f[_0x399258(0x1a7)],{'variant':'text','onClick':()=>_0x88adb1[_0x399258(0x1ac)](),'children':'Start\x20following'})]});}function Z(_0x3a3164){const _0x15ec2a=_0x27a659,{coordinator:_0x29c93a}=_0x3a3164;return l[_0x15ec2a(0x1a2)](l[_0x15ec2a(0x195)],{'children':[l[_0x15ec2a(0x170)](_0x15ec2a(0x164),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x15ec2a(0x169)}),l['jsx'](f[_0x15ec2a(0x1a7)],{'variant':_0x15ec2a(0x156),'onClick':()=>_0x29c93a['stopPresenting'](),'children':_0x15ec2a(0x209)})]});}function J(){const _0x10ef9d=_0x27a659;return l[_0x10ef9d(0x170)](l[_0x10ef9d(0x195)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x27a659(0x182)],z=(_0x1d8fb9,_0x48a849,_0xa011e2,_0x21d416)=>{const _0xe9ef9a=_0x27a659;for(var _0x5b6a2b=_0x21d416>0x1?void 0x0:_0x21d416?K(_0x48a849,_0xa011e2):_0x48a849,_0x38441d=_0x1d8fb9[_0xe9ef9a(0x196)]-0x1,_0x2d7656;_0x38441d>=0x0;_0x38441d--)(_0x2d7656=_0x1d8fb9[_0x38441d])&&(_0x5b6a2b=_0x2d7656(_0x5b6a2b)||_0x5b6a2b);return _0x5b6a2b;},L=(_0x1d5f06,_0x5e1c7a)=>(_0x538e32,_0x3baa03)=>_0x5e1c7a(_0x538e32,_0x3baa03,_0x1d5f06);exports[_0x27a659(0x216)]=class extends o[_0x27a659(0x19f)]{constructor(_0x29da6b,_0x2ab656){const _0x52fb4c=_0x27a659;super(),this[_0x52fb4c(0x150)]=_0x29da6b,this[_0x52fb4c(0x153)]=_0x2ab656,this[_0x52fb4c(0x15e)]();}[_0x27a659(0x15e)](){const _0x2d425e=_0x27a659;this[_0x2d425e(0x1a6)](this['_uiPartsService'][_0x2d425e(0x19d)](p['BuiltInUIPart'][_0x2d425e(0x1e7)],()=>p['connectInjector']($,this[_0x2d425e(0x150)])));}},exports[_0x27a659(0x216)]=z([L(0x0,o[_0x27a659(0x1aa)](o[_0x27a659(0x1d0)])),L(0x1,p['IUIPartsService'])],exports[_0x27a659(0x216)]);const Q='live-share.config',w={};var X=Object[_0x27a659(0x182)],ee=(_0x371532,_0x5beec9,_0xebdf11,_0x2d133e)=>{const _0xb90683=_0x27a659;for(var _0xaeb4d2=_0x2d133e>0x1?void 0x0:_0x2d133e?X(_0x5beec9,_0xebdf11):_0x5beec9,_0x4667c3=_0x371532[_0xb90683(0x196)]-0x1,_0x289836;_0x4667c3>=0x0;_0x4667c3--)(_0x289836=_0x371532[_0x4667c3])&&(_0xaeb4d2=_0x289836(_0xaeb4d2)||_0xaeb4d2);return _0xaeb4d2;},te=(_0x3e3b94,_0x4552a6)=>(_0x17d524,_0x48e8d3)=>_0x4552a6(_0x17d524,_0x48e8d3,_0x3e3b94);function _0x1fc6(){const _0x56fdac=['getUnitId','IDLE','IUniverInstanceService','_startPresenting','SessionStatus','LiveShareService','_startFollowing','UniverLiveSharePlugin','use','94170bfSeIh','executeCommand','random','attrs','BehaviorSubject','getConfig','LIVESHARE_OPERATION','HEADER_MENU','onStarting','subscribe','evenodd','_beIdle','pluginName','shouldShareOperation','map','svg','865002cfBtjG','_config','Start','offline','Stop\x20following','DependentOn','_handleNewHost','CollaborationSessionService','http://www.w3.org/2000/svg','sessionStatus$','children','useEffect','event$','includes','_startLiveShareCoordinator','ICommandService','_sharedOperations','_handleOperation','defineProperty','type','getStatus','asObservable','dispose$','button','defIds','Stop\x20presenting','_handleOffline','LiveShare','parse','UniverIcon','createElement','presenter','_stopPresenting','set','touchDependencies','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','takeUntil','DesktopLiveShareController','1em','LiveShareCoordinator','status$','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','UniverInstanceType','0\x200\x2017\x2017','UniverCollaborationClientPlugin','_reporters','complete','_status','_injector','tryStartPresenting','unitId','_uiPartsService','RxDisposable','_univerInstanceService','default','getValue','getTypeOfUnitAdded$','fill','1362524KUsbTi','idle','_commandService','override','_mountLiveShare','500265ynlwSR','current','send','get','url(#$1','div','displayName','SetWorksheetActiveOperation','_entities','not-following','You\x27re\x20presenting\x20the\x20document','has','delete','registerInitialStateReporter','getLiveShareCoordinator','769990ySsMeU','throttleTime','jsx','tag','entries','_commandDisposable','path','find','CollaborationEvent','clear','LiveShareIcon','add','string','forEach','sheet','_unitID','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','LiveShareController','getOwnPropertyDescriptor','params','onRendered','registerSharedOperation','init','_handleTerminate','xlink:href','getMemberID','_handleOnline','dispose','108283OsnpnM','end','merge','toString','stringify','5kneAiP','univer-size-4','assign','getTypeOfUnitDisposed$','Fragment','length','FOLLOWING','_collabSessionService','PRESENTING','trim','getInitialStates','symbol','registerComponent','replace','Disposable','SetZoomRatioOperation','IConfigService','jsxs','_collabSession','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','none','disposeWithMe','Button','pipe','3YSeCxZ','Inject','UNIVER_LIVE_SHARE_PLUGIN','startFollowing','_handleNewChangeSets','forwardRef','LIVESHARE_NEW_HOST','DisposableCollection','335968iixnqB','You\x27re\x20following\x20the\x20presenter','NEW_CHANGESETS','parseProtocolChangeset','mask','idSuffix','_fetchOperations','NOT_FOLLOWING','Subject','currentColor','setConfig','_init','presenting','colorChannel1','univer-mb-3\x20univer-w-full\x20univer-text-sm','112ivYRPa','_stopFollowing','next','SAME_OPERATION_SHARE_INTERVAL','live-share-icon','defs','_liveShareService','_status$','OFFLINE','_presenter','data','CommandType','UNIVER_SHEET','useState','_configService','useDependency','Injector','toDisposable','OPERATION','unsubscribe','mergeOverrideWithDependencies','reverse','following'];_0x1fc6=function(){return _0x56fdac;};return _0x1fc6();}let m=class extends o[_0x27a659(0x19f)]{constructor(_0x443e09){const _0x2fa4f3=_0x27a659;super(),this[_0x2fa4f3(0x1c6)]=_0x443e09,this[_0x2fa4f3(0x1bc)]();}[_0x27a659(0x1bc)](){const _0xbd04f8=_0x27a659;[D[_0xbd04f8(0x1a0)]['id'],D['SetScrollOperation']['id'],C[_0xbd04f8(0x166)]['id']][_0xbd04f8(0x17b)](_0x4d5252=>{const _0x54ae0d=_0xbd04f8;this[_0x54ae0d(0x1a6)](this[_0x54ae0d(0x1c6)][_0x54ae0d(0x185)](_0x4d5252));});}};m=ee([te(0x0,o[_0x27a659(0x1aa)](E))],m);var ie=Object[_0x27a659(0x202)],se=Object[_0x27a659(0x182)],ne=(_0x18107d,_0x1ae42e,_0x5269aa)=>_0x1ae42e in _0x18107d?ie(_0x18107d,_0x1ae42e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5269aa}):_0x18107d[_0x1ae42e]=_0x5269aa,re=(_0x2fc9fa,_0x4598d4,_0x581596,_0x1efbc4)=>{const _0x53752b=_0x27a659;for(var _0x4b07d9=_0x1efbc4>0x1?void 0x0:_0x1efbc4?se(_0x4598d4,_0x581596):_0x4598d4,_0x83656c=_0x2fc9fa[_0x53752b(0x196)]-0x1,_0x52c9b6;_0x83656c>=0x0;_0x83656c--)(_0x52c9b6=_0x2fc9fa[_0x83656c])&&(_0x4b07d9=_0x52c9b6(_0x4b07d9)||_0x4b07d9);return _0x4b07d9;},N=(_0x2de363,_0x2fbcca)=>(_0x23b29b,_0x3d6449)=>_0x2fbcca(_0x23b29b,_0x3d6449,_0x2de363),A=(_0x168177,_0x3a25cc,_0x31a9a3)=>ne(_0x168177,typeof _0x3a25cc!='symbol'?_0x3a25cc+'':_0x3a25cc,_0x31a9a3);const oe=_0x27a659(0x1ab);exports[_0x27a659(0x1de)]=class extends o['Plugin']{constructor(_0x4f25af=w,_0x1431f6,_0x32c77c){const _0x28b7e5=_0x27a659;super(),this[_0x28b7e5(0x1f1)]=_0x4f25af,this[_0x28b7e5(0x150)]=_0x1431f6,this['_configService']=_0x32c77c;const {..._0x54670b}=o[_0x28b7e5(0x18e)]({},w,this['_config']);this['_configService'][_0x28b7e5(0x1bb)](Q,_0x54670b);}[_0x27a659(0x1e8)](){const _0xa0a435=_0x27a659;o['registerDependencies'](this[_0xa0a435(0x150)],o[_0xa0a435(0x1d4)]([[E],[exports[_0xa0a435(0x181)]],[m],[exports[_0xa0a435(0x216)]]],this['_config'][_0xa0a435(0x15d)])),o[_0xa0a435(0x212)](this[_0xa0a435(0x150)],[[m]]);}[_0x27a659(0x184)](){const _0x4b5504=_0x27a659;o[_0x4b5504(0x212)](this[_0x4b5504(0x150)],[[exports[_0x4b5504(0x216)]]]);}},A(exports[_0x27a659(0x1de)],_0x27a659(0x203),o['UniverInstanceType']['UNIVER_UNKNOWN']),A(exports[_0x27a659(0x1de)],_0x27a659(0x1ec),oe),exports['UniverLiveSharePlugin']=re([o[_0x27a659(0x1f5)](b[_0x27a659(0x14c)]),N(0x1,o[_0x27a659(0x1aa)](o[_0x27a659(0x1d0)])),N(0x2,o[_0x27a659(0x1a1)])],exports[_0x27a659(0x1de)]),exports[_0x27a659(0x20b)]=$,exports[_0x27a659(0x1dc)]=E,exports['LiveShareStatus']=u;
1
+ 'use strict';const _0xcdd8a2=_0x247a;(function(_0x5ea1d5,_0x1f9fd6){const _0x1f804a=_0x247a,_0x3bb8e7=_0x5ea1d5();while(!![]){try{const _0x400fa3=-parseInt(_0x1f804a(0x248))/0x1*(-parseInt(_0x1f804a(0x19e))/0x2)+-parseInt(_0x1f804a(0x1e0))/0x3+parseInt(_0x1f804a(0x1e4))/0x4*(-parseInt(_0x1f804a(0x230))/0x5)+parseInt(_0x1f804a(0x1ed))/0x6+parseInt(_0x1f804a(0x1e3))/0x7*(parseInt(_0x1f804a(0x243))/0x8)+parseInt(_0x1f804a(0x1a9))/0x9+parseInt(_0x1f804a(0x182))/0xa;if(_0x400fa3===_0x1f9fd6)break;else _0x3bb8e7['push'](_0x3bb8e7['shift']());}catch(_0x3a4a57){_0x3bb8e7['push'](_0x3bb8e7['shift']());}}}(_0x10bb,0x22634));var T=Object[_0xcdd8a2(0x18c)],U=(_0xe6c5a8,_0x1ed970,_0x275f17)=>_0x1ed970 in _0xe6c5a8?T(_0xe6c5a8,_0x1ed970,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x275f17}):_0xe6c5a8[_0x1ed970]=_0x275f17,_=(_0x23a2b9,_0x2dfc89,_0x29141)=>U(_0x23a2b9,typeof _0x2dfc89!=_0xcdd8a2(0x200)?_0x2dfc89+'':_0x2dfc89,_0x29141);Object['defineProperty'](exports,Symbol[_0xcdd8a2(0x1fb)],{'value':_0xcdd8a2(0x1be)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x53dcdc,..._0x515846}){const _0x215431=_0xcdd8a2,{icon:_0x584cec,id:_0x4e67e2,className:_0x28f6f6,extend:_0x4b10dd,..._0x3bd2bf}=_0x515846,_0x31ab57=('univerjs-icon\x20univerjs-icon-'+_0x4e67e2+'\x20'+(_0x28f6f6||''))[_0x215431(0x228)](),_0x4373e2=v[_0x215431(0x1b2)]('_'+H());return j(_0x584cec,''+_0x4e67e2,{'defIds':_0x584cec[_0x215431(0x1ef)],'idSuffix':_0x4373e2[_0x215431(0x1ae)]},{'ref':_0x53dcdc,'className':_0x31ab57,..._0x3bd2bf},_0x4b10dd);}function j(_0x107e1a,_0x3eb67e,_0x47ec49,_0x1373fc,_0x555fcc){const _0x421a8c=_0xcdd8a2;return v[_0x421a8c(0x1d8)](_0x107e1a[_0x421a8c(0x1fd)],{'key':_0x3eb67e,...y(_0x107e1a,_0x47ec49,_0x555fcc),..._0x1373fc},(F(_0x107e1a,_0x47ec49)[_0x421a8c(0x1ba)]||[])[_0x421a8c(0x193)]((_0x31f4a6,_0x5a8b5f)=>j(_0x31f4a6,_0x3eb67e+'-'+_0x107e1a[_0x421a8c(0x1fd)]+'-'+_0x5a8b5f,_0x47ec49,void 0x0,_0x555fcc)));}function y(_0x357b12,_0x465567,_0x541af7){const _0x24bc55=_0xcdd8a2,_0x560390={..._0x357b12[_0x24bc55(0x1a8)]};_0x541af7!=null&&_0x541af7[_0x24bc55(0x185)]&&_0x560390[_0x24bc55(0x1d2)]==='colorChannel1'&&(_0x560390[_0x24bc55(0x1d2)]=_0x541af7[_0x24bc55(0x185)]),_0x357b12['tag']===_0x24bc55(0x1bb)&&_0x560390['id']&&(_0x560390['id']=_0x560390['id']+_0x465567[_0x24bc55(0x18f)]),Object[_0x24bc55(0x1ec)](_0x560390)[_0x24bc55(0x212)](([_0x2786ee,_0x3f30a2])=>{const _0x3f6fad=_0x24bc55;_0x2786ee===_0x3f6fad(0x1bb)&&typeof _0x3f30a2==_0x3f6fad(0x1b7)&&(_0x560390[_0x2786ee]=_0x3f30a2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x465567['idSuffix']+')'));});const {defIds:_0x36f2d3}=_0x465567;return!_0x36f2d3||_0x36f2d3[_0x24bc55(0x231)]===0x0||(_0x357b12['tag']===_0x24bc55(0x197)&&_0x560390[_0x24bc55(0x17a)]&&(_0x560390[_0x24bc55(0x17a)]=_0x560390[_0x24bc55(0x17a)]+_0x465567[_0x24bc55(0x18f)]),Object[_0x24bc55(0x1ec)](_0x560390)['forEach'](([_0x4030ba,_0x47db79])=>{const _0x573457=_0x24bc55;typeof _0x47db79==_0x573457(0x1b7)&&(_0x560390[_0x4030ba]=_0x47db79[_0x573457(0x219)](/url\(#(.*)\)/,'url(#$1'+_0x465567[_0x573457(0x18f)]+')'));})),_0x560390;}function F(_0x41bb6e,_0x2f12b8){const _0x4cda9e=_0xcdd8a2;var _0x495719;const {defIds:_0x37ec4c}=_0x2f12b8;return!_0x37ec4c||_0x37ec4c[_0x4cda9e(0x231)]===0x0?_0x41bb6e:_0x41bb6e[_0x4cda9e(0x1fd)]===_0x4cda9e(0x23f)&&((_0x495719=_0x41bb6e[_0x4cda9e(0x1ba)])!=null&&_0x495719[_0x4cda9e(0x231)])?{..._0x41bb6e,'children':_0x41bb6e['children'][_0x4cda9e(0x193)](_0x44a7a3=>typeof _0x44a7a3[_0x4cda9e(0x1a8)]['id']==_0x4cda9e(0x1b7)&&_0x37ec4c&&_0x37ec4c[_0x4cda9e(0x232)](_0x44a7a3['attrs']['id'])?{..._0x44a7a3,'attrs':{..._0x44a7a3[_0x4cda9e(0x1a8)],'id':_0x44a7a3[_0x4cda9e(0x1a8)]['id']+_0x2f12b8[_0x4cda9e(0x18f)]}}:_0x44a7a3)}:_0x41bb6e;}function H(){const _0x3b505f=_0xcdd8a2;return Math[_0x3b505f(0x1ff)]()[_0x3b505f(0x21e)](0x24)[_0x3b505f(0x23e)](0x2,0x8);}x[_0xcdd8a2(0x1fa)]=_0xcdd8a2(0x20f);const V={'tag':_0xcdd8a2(0x22b),'attrs':{'xmlns':_0xcdd8a2(0x190),'fill':'none','viewBox':_0xcdd8a2(0x1db),'width':'1em','height':_0xcdd8a2(0x1b4)},'children':[{'tag':_0xcdd8a2(0x1a6),'attrs':{'fill':'currentColor','d':_0xcdd8a2(0x1d9)}},{'tag':_0xcdd8a2(0x1a6),'attrs':{'fill':_0xcdd8a2(0x1a2),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0xcdd8a2(0x1a3),'clipRule':'evenodd'}}]},R=v[_0xcdd8a2(0x1f1)](function(_0x2a9354,_0x57b30c){const _0x84ae0d=_0xcdd8a2;return v[_0x84ae0d(0x1d8)](x,Object[_0x84ae0d(0x22c)]({},_0x2a9354,{'id':'live-share-icon','ref':_0x57b30c,'icon':V}));});R[_0xcdd8a2(0x1fa)]=_0xcdd8a2(0x21b);class E extends o[_0xcdd8a2(0x1ce)]{constructor(){const _0x47fec5=_0xcdd8a2;super(...arguments),_(this,_0x47fec5(0x196),new Set()),_(this,_0x47fec5(0x1b3),new Set());}['registerSharedOperation'](_0x3208f5){const _0x31ea1e=_0xcdd8a2;return this[_0x31ea1e(0x196)]['add'](_0x3208f5),o[_0x31ea1e(0x239)](()=>this['_sharedOperations']['delete'](_0x3208f5));}[_0xcdd8a2(0x1f3)](_0x342a4a){const _0x3b234c=_0xcdd8a2;return this[_0x3b234c(0x1b3)][_0x3b234c(0x23c)](_0x342a4a),o[_0x3b234c(0x239)](()=>this[_0x3b234c(0x1b3)][_0x3b234c(0x180)](_0x342a4a));}[_0xcdd8a2(0x1fc)](_0x59aac0){const _0x137809=_0xcdd8a2;return this['_sharedOperations'][_0x137809(0x233)](_0x59aac0);}[_0xcdd8a2(0x1f0)](_0x35c34d){const _0x403f17=_0xcdd8a2;return Array[_0x403f17(0x217)](this[_0x403f17(0x1b3)])['map'](_0x562be2=>_0x562be2(_0x35c34d));}}var M=Object[_0xcdd8a2(0x17c)],P=(_0x2a7ee3,_0x537412,_0x3c9a4d,_0x14cc6f)=>{const _0x19cefd=_0xcdd8a2;for(var _0x4961b3=_0x14cc6f>0x1?void 0x0:_0x14cc6f?M(_0x537412,_0x3c9a4d):_0x537412,_0x5ef4dc=_0x2a7ee3[_0x19cefd(0x231)]-0x1,_0x12a7fc;_0x5ef4dc>=0x0;_0x5ef4dc--)(_0x12a7fc=_0x2a7ee3[_0x5ef4dc])&&(_0x4961b3=_0x12a7fc(_0x4961b3)||_0x4961b3);return _0x4961b3;},S=(_0x52a1bf,_0x3ca314)=>(_0x4accb8,_0x543c64)=>_0x3ca314(_0x4accb8,_0x543c64,_0x52a1bf);exports[_0xcdd8a2(0x245)]=class extends o[_0xcdd8a2(0x1aa)]{constructor(_0x4e7ac7,_0x4ae347,_0x623e32){const _0x3558b7=_0xcdd8a2;super(),_(this,_0x3558b7(0x23d),new Map()),(this[_0x3558b7(0x207)]=_0x4e7ac7,this[_0x3558b7(0x1e2)]=_0x4ae347,this[_0x3558b7(0x216)]=_0x623e32,this['_init']());}async[_0xcdd8a2(0x17d)](_0xbc8110){const _0x31d992=_0xcdd8a2;return this[_0x31d992(0x23d)][_0x31d992(0x233)](_0xbc8110)||await this[_0x31d992(0x241)](_0xbc8110),this[_0x31d992(0x23d)]['get'](_0xbc8110);}[_0xcdd8a2(0x19c)](_0x4313b9){const _0x3299f9=_0xcdd8a2;var _0x3c3629;return(_0x3c3629=this[_0x3299f9(0x23d)][_0x3299f9(0x19f)](_0x4313b9))!=null?_0x3c3629:null;}[_0xcdd8a2(0x227)](){const _0x3bf809=_0xcdd8a2;this[_0x3bf809(0x207)]['getTypeOfUnitAdded$'](o[_0x3bf809(0x1a1)]['UNIVER_SHEET'])[_0x3bf809(0x208)](I[_0x3bf809(0x179)](this[_0x3bf809(0x205)]))['subscribe'](async _0x7b0aea=>{const _0x5d0087=_0x3bf809,_0x1c63e3=_0x7b0aea['getUnitId']();this[_0x5d0087(0x23d)][_0x5d0087(0x233)](_0x1c63e3)||this[_0x5d0087(0x241)](_0x1c63e3);}),this[_0x3bf809(0x207)][_0x3bf809(0x215)](o[_0x3bf809(0x1a1)][_0x3bf809(0x242)])[_0x3bf809(0x208)](I[_0x3bf809(0x179)](this[_0x3bf809(0x205)]))[_0x3bf809(0x240)](_0x23098c=>{const _0x5276dc=_0x3bf809,_0x25fa55=_0x23098c[_0x5276dc(0x1f7)](),_0x556ef0=this[_0x5276dc(0x23d)][_0x5276dc(0x19f)](_0x25fa55);_0x556ef0==null||_0x556ef0['dispose']();});}async[_0xcdd8a2(0x241)](_0x4c4d58){const _0x38e9f5=_0xcdd8a2,_0x246ad6=await this[_0x38e9f5(0x216)]['requireSession'](_0x4c4d58),_0x596623=this[_0x38e9f5(0x1e2)][_0x38e9f5(0x1e7)](exports[_0x38e9f5(0x20b)],_0x4c4d58,_0x246ad6);return _0x596623[_0x38e9f5(0x1b5)](),this['_entities'][_0x38e9f5(0x213)](_0x4c4d58,_0x596623),_0x596623;}},exports[_0xcdd8a2(0x245)]=P([S(0x0,o[_0xcdd8a2(0x18b)]),S(0x1,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),S(0x2,o[_0xcdd8a2(0x1c8)](b[_0xcdd8a2(0x1a4)]))],exports[_0xcdd8a2(0x245)]);var u=(_0x29e93d=>(_0x29e93d['OFFLINE']=_0xcdd8a2(0x187),_0x29e93d['IDLE']=_0xcdd8a2(0x1c0),_0x29e93d[_0xcdd8a2(0x203)]='following',_0x29e93d['NOT_FOLLOWING']=_0xcdd8a2(0x210),_0x29e93d[_0xcdd8a2(0x1f6)]=_0xcdd8a2(0x188),_0x29e93d))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0xcdd8a2(0x20b)]=class extends o[_0xcdd8a2(0x1aa)]{constructor(_0x4b09f1,_0x1bedba,_0x219ece,_0x19f0b1,_0x2bbb84){const _0x790f96=_0xcdd8a2;super(),_(this,_0x790f96(0x238),new O[(_0x790f96(0x1ad))](_0x790f96(0x1c0))),_(this,_0x790f96(0x237),this['_status$'][_0x790f96(0x246)]()),_(this,_0x790f96(0x227),!0x1),_(this,_0x790f96(0x1bd),null),_(this,_0x790f96(0x22f),null),(this[_0x790f96(0x1ee)]=_0x4b09f1,this[_0x790f96(0x176)]=_0x1bedba,this[_0x790f96(0x1e6)]=_0x219ece,this['_liveShareService']=_0x19f0b1,this[_0x790f96(0x214)]=_0x2bbb84);}get[_0xcdd8a2(0x221)](){const _0x53ca4e=_0xcdd8a2;return this[_0x53ca4e(0x238)]['getValue']();}[_0xcdd8a2(0x1eb)](){const _0x2305ba=_0xcdd8a2;var _0x271ec4;(_0x271ec4=this['_commandDisposable'])==null||_0x271ec4[_0x2305ba(0x1eb)](),this[_0x2305ba(0x238)][_0x2305ba(0x22d)]('idle'),this[_0x2305ba(0x238)][_0x2305ba(0x206)]();}[_0xcdd8a2(0x1c6)](){const _0x453e4a=_0xcdd8a2;return this[_0x453e4a(0x221)];}[_0xcdd8a2(0x1b5)](){const _0x2805f0=_0xcdd8a2;this[_0x2805f0(0x227)]||(this[_0x2805f0(0x227)]=!0x0,this['_collabSession'][_0x2805f0(0x21c)][_0x2805f0(0x208)](I[_0x2805f0(0x179)](this[_0x2805f0(0x205)]))[_0x2805f0(0x240)](_0x709679=>{const _0x286e38=_0x2805f0;switch(_0x709679){case b[_0x286e38(0x20e)]['OFFLINE']:this[_0x286e38(0x175)]();break;case b[_0x286e38(0x20e)]['ONLINE']:this[_0x286e38(0x1e9)]();break;}}),this['_collabSession'][_0x2805f0(0x229)][_0x2805f0(0x208)](I[_0x2805f0(0x179)](this['dispose$']))[_0x2805f0(0x240)](_0x191481=>{const _0x1e589f=_0x2805f0,{eventID:_0x51aa9c}=_0x191481;switch(_0x51aa9c){case d['CollaborationEvent'][_0x1e589f(0x23a)]:this[_0x1e589f(0x199)](_0x191481);break;case d[_0x1e589f(0x1a7)][_0x1e589f(0x1f2)]:this[_0x1e589f(0x204)](_0x191481);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x1e589f(0x225)]();break;case d[_0x1e589f(0x1a7)]['NEW_CHANGESETS']:this[_0x1e589f(0x18a)](_0x191481);break;}}));}[_0xcdd8a2(0x1c1)](){const _0x349814=_0xcdd8a2;this[_0x349814(0x176)][_0x349814(0x192)]({'eventID':d[_0x349814(0x1a7)][_0x349814(0x224)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x313393=_0xcdd8a2;this[_0x313393(0x221)]==='presenting'&&(this['_status$'][_0x313393(0x22d)](_0x313393(0x1c0)),this[_0x313393(0x176)][_0x313393(0x192)]({'eventID':d[_0x313393(0x1a7)][_0x313393(0x183)],'data':{'unitID':this['_unitID']}},this[_0x313393(0x1ee)]));}[_0xcdd8a2(0x1df)](){const _0x367438=_0xcdd8a2;this['_status']===_0x367438(0x210)&&(this[_0x367438(0x238)]['next'](_0x367438(0x20a)),this['_startFollowing']());}[_0xcdd8a2(0x1e8)](){const _0x2e7a51=_0xcdd8a2;this[_0x2e7a51(0x221)]===_0x2e7a51(0x20a)&&this[_0x2e7a51(0x1b9)]();}[_0xcdd8a2(0x199)](_0x496cbb){const _0x4b0d55=_0xcdd8a2,{presenter:_0x4c42bf}=_0x496cbb['data'],_0x4cafab=this['_collabSession'][_0x4b0d55(0x20c)]();this[_0x4b0d55(0x22f)]=_0x4c42bf,_0x4c42bf===_0x4cafab?(this[_0x4b0d55(0x1b9)](),this['_startPresenting']()):this[_0x4b0d55(0x221)]!==_0x4b0d55(0x210)&&(this[_0x4b0d55(0x1b1)](),this[_0x4b0d55(0x1c7)]());}[_0xcdd8a2(0x21a)](){const _0x201074=_0xcdd8a2,_0x3b62b9={'eventID':d[_0x201074(0x1a7)][_0x201074(0x198)]};this['_collabSession']['send'](_0x3b62b9,this['_unitID']);}[_0xcdd8a2(0x225)](){const _0x4f8620=_0xcdd8a2;this['_presenter']=null,this[_0x4f8620(0x221)]!==_0x4f8620(0x188)&&this[_0x4f8620(0x24c)]();}['_handleNewChangeSets'](_0x11c288){const _0x1bd34c=_0xcdd8a2;if(this[_0x1bd34c(0x221)]===_0x1bd34c(0x20a)&&this[_0x1bd34c(0x22f)]===_0x11c288[_0x1bd34c(0x19d)][_0x1bd34c(0x1d7)]){const _0x40b5cf=d[_0x1bd34c(0x195)](_0x11c288[_0x1bd34c(0x19d)])[_0x1bd34c(0x223)][_0x1bd34c(0x1d4)]()[_0x1bd34c(0x194)](_0x4982d1=>_0x4982d1['id']===C[_0x1bd34c(0x1e5)]['id']);if(_0x40b5cf){const _0x174d55=_0x40b5cf[_0x1bd34c(0x1b6)][_0x1bd34c(0x1bc)],_0x3c91f5=_0x40b5cf[_0x1bd34c(0x1b6)]['sheet']['id'];setTimeout(()=>{const _0x2b06a7=_0x1bd34c;this[_0x2b06a7(0x214)][_0x2b06a7(0x191)](C[_0x2b06a7(0x17b)]['id'],{'unitId':_0x174d55,'subUnitId':_0x3c91f5},{'fromCollab':!0x0});});}}}[_0xcdd8a2(0x19a)](){const _0x26097c=_0xcdd8a2;this[_0x26097c(0x238)][_0x26097c(0x22d)](_0x26097c(0x188));const _0xf3c9bb=new Map(),_0x5334c6=this[_0x26097c(0x1bd)]=new o['DisposableCollection']();_0x5334c6[_0x26097c(0x23c)](o[_0x26097c(0x239)](()=>{const _0x462b94=_0x26097c;_0xf3c9bb['forEach'](_0x1c93ca=>_0x1c93ca['complete']()),_0xf3c9bb[_0x462b94(0x1dd)]();})),_0x5334c6[_0x26097c(0x23c)](this['_commandService'][_0x26097c(0x218)](_0x3ac568=>{const _0x434714=_0x26097c;var _0x3f9b05;if(_0x3ac568[_0x434714(0x17f)]!==o['CommandType'][_0x434714(0x202)]||!this[_0x434714(0x236)]['shouldShareOperation'](_0x3ac568['id']))return;const {id:_0x40ef9b}=_0x3ac568;let _0xf365b5;_0xf3c9bb['has'](_0x40ef9b)?_0xf365b5=_0xf3c9bb[_0x434714(0x19f)](_0x40ef9b):(_0xf365b5=new O[(_0x434714(0x201))](),_0xf3c9bb[_0x434714(0x213)](_0x40ef9b,_0xf365b5),_0xf365b5[_0x434714(0x208)](I[_0x434714(0x24e)]((_0x3f9b05=this[_0x434714(0x1e6)]['getConfig'](k))!=null?_0x3f9b05:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x33ec6b=>{const _0x45b3f9=_0x434714;this['_collabSession']['send']({'eventID':d[_0x45b3f9(0x1a7)][_0x45b3f9(0x1f2)],'data':{'unitID':this[_0x45b3f9(0x1ee)],'operations':{[_0x33ec6b['id']]:{'id':_0x33ec6b['id'],'params':JSON[_0x45b3f9(0x1c2)](_0x33ec6b[_0x45b3f9(0x1b6)])}}}},this['_unitID']);})),_0xf365b5[_0x434714(0x22d)](_0x3ac568);})),this[_0x26097c(0x236)][_0x26097c(0x1f0)](this[_0x26097c(0x1ee)])['forEach'](_0x33d259=>this[_0x26097c(0x176)]['send']({'eventID':d[_0x26097c(0x1a7)][_0x26097c(0x1f2)],'data':{'unitID':this[_0x26097c(0x1ee)],'operations':{[_0x33d259['id']]:{'id':_0x33d259['id'],'params':JSON[_0x26097c(0x1c2)](_0x33d259[_0x26097c(0x1b6)])}}}},this[_0x26097c(0x1ee)]));}[_0xcdd8a2(0x1b1)](){const _0x12f673=_0xcdd8a2;var _0x3d7caa;this[_0x12f673(0x238)][_0x12f673(0x22d)](_0x12f673(0x1c0)),(_0x3d7caa=this['_commandDisposable'])==null||_0x3d7caa[_0x12f673(0x1eb)](),this['_commandDisposable']=null;}[_0xcdd8a2(0x1c7)](){const _0x5f4473=_0xcdd8a2;var _0x3882d7;(_0x3882d7=this[_0x5f4473(0x1bd)])==null||_0x3882d7[_0x5f4473(0x1eb)](),this['_status$'][_0x5f4473(0x22d)]('following');}[_0xcdd8a2(0x24c)](){const _0x39c24c=_0xcdd8a2;var _0x5cb60b;this[_0x39c24c(0x238)]['next'](_0x39c24c(0x1c0)),(_0x5cb60b=this['_commandDisposable'])==null||_0x5cb60b[_0x39c24c(0x1eb)](),this['_commandDisposable']=null;}[_0xcdd8a2(0x1b9)](){const _0x1b70fd=_0xcdd8a2;var _0x3abc2c;this[_0x1b70fd(0x238)][_0x1b70fd(0x22d)]('not-following'),(_0x3abc2c=this[_0x1b70fd(0x1bd)])==null||_0x3abc2c['dispose']();}['_handleOperation'](_0x36cb84){const _0x2a8764=_0xcdd8a2;if([_0x2a8764(0x188),_0x2a8764(0x210),_0x2a8764(0x187)]['includes'](this[_0x2a8764(0x221)])||!_0x36cb84['data'][_0x2a8764(0x247)]||_0x36cb84[_0x2a8764(0x19d)][_0x2a8764(0x247)]===this[_0x2a8764(0x176)][_0x2a8764(0x20c)]())return;this[_0x2a8764(0x221)]===_0x2a8764(0x1c0)&&this['_startFollowing']();const _0x2c3793=_0x36cb84[_0x2a8764(0x19d)]['operations'];Object[_0x2a8764(0x1a0)](_0x2c3793)[_0x2a8764(0x212)](_0x2be51c=>{const _0x53e01=_0x2a8764;this[_0x53e01(0x214)][_0x53e01(0x191)](_0x2be51c['id'],_0x2be51c[_0x53e01(0x1b6)]?JSON[_0x53e01(0x23b)](_0x2be51c[_0x53e01(0x1b6)]):null,{'fromCollab':!0x0});});}[_0xcdd8a2(0x175)](){const _0x5cd9cb=_0xcdd8a2;var _0x34f9b6;this[_0x5cd9cb(0x238)]['next'](_0x5cd9cb(0x187)),(_0x34f9b6=this[_0x5cd9cb(0x1bd)])==null||_0x34f9b6[_0x5cd9cb(0x1eb)]();}[_0xcdd8a2(0x1e9)](){const _0x2f3706=_0xcdd8a2;this[_0x2f3706(0x238)][_0x2f3706(0x22d)](_0x2f3706(0x1c0)),this[_0x2f3706(0x21a)]();}},exports[_0xcdd8a2(0x20b)]=P([S(0x2,o[_0xcdd8a2(0x1f9)]),S(0x3,o[_0xcdd8a2(0x1c8)](E)),S(0x4,o[_0xcdd8a2(0x249)])],exports['LiveShareCoordinator']);function $(){const _0x9c893b=_0xcdd8a2,_0x2de4d2=p[_0x9c893b(0x222)](exports['LiveShareController']),_0x159d34=p[_0x9c893b(0x222)](o[_0x9c893b(0x18b)]),_0x409099=p[_0x9c893b(0x1f5)](()=>_0x159d34[_0x9c893b(0x1c9)](o['UniverInstanceType'][_0x9c893b(0x242)]),void 0x0,!0x1,[]),[_0xcd012d,_0x1df929]=v[_0x9c893b(0x19b)](null),[_0x1b1b25,_0x3f00fa]=v[_0x9c893b(0x19b)](u['IDLE']),_0x2a95bb=v['useRef'](null);return v[_0x9c893b(0x1fe)](()=>(_0x409099&&_0x2de4d2[_0x9c893b(0x17d)](_0x409099[_0x9c893b(0x1f7)]())['then'](_0x4d2896=>{const _0x17348c=_0x9c893b;_0x1df929(_0x4d2896),_0x2a95bb[_0x17348c(0x1ae)]=_0x4d2896['status$']['subscribe'](_0x3091e9=>{_0x3f00fa(_0x3091e9);});}),()=>{const _0x4218c2=_0x9c893b;var _0x4ea2ce;(_0x4ea2ce=_0x2a95bb[_0x4218c2(0x1ae)])==null||_0x4ea2ce['unsubscribe'](),_0x2a95bb[_0x4218c2(0x1ae)]=null;}),[_0x409099,_0x2de4d2]),_0xcd012d?l[_0x9c893b(0x1bf)](f[_0x9c893b(0x1dc)],{'align':_0x9c893b(0x21d),'disabled':_0x1b1b25===u[_0x9c893b(0x1c3)],'className':_0x9c893b(0x17e),'overlay':l['jsx'](W,{'status':_0x1b1b25,'coordinator':_0xcd012d}),'children':l['jsx']('button',{'className':f['clsx'](_0x9c893b(0x1cf),{'univer-cursor-not-allowed':_0x1b1b25===u[_0x9c893b(0x1c3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1b1b25!==u[_0x9c893b(0x1c3)]}),'type':_0x9c893b(0x1ca),'children':l[_0x9c893b(0x1bf)](R,{'className':_0x9c893b(0x21f)})})}):null;}function W(_0x26d05d){const _0x520b4a=_0xcdd8a2,{status:_0x3f03a7,coordinator:_0x469855}=_0x26d05d;switch(_0x3f03a7){case u[_0x520b4a(0x178)]:return l[_0x520b4a(0x1bf)](G,{'coordinator':_0x469855});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x469855});case u[_0x520b4a(0x177)]:return l['jsx'](Y,{'coordinator':_0x469855});case u[_0x520b4a(0x1c3)]:return l[_0x520b4a(0x1bf)](J,{});case u[_0x520b4a(0x1f6)]:return l[_0x520b4a(0x1bf)](Z,{'coordinator':_0x469855});default:return null;}}function G(_0x362a07){const _0x39948f=_0xcdd8a2,{coordinator:_0x1247e}=_0x362a07;return l[_0x39948f(0x18d)](l['Fragment'],{'children':[l['jsx'](_0x39948f(0x1b8),{'className':_0x39948f(0x1c4),'children':'Present\x20this\x20document'}),l['jsx'](f[_0x39948f(0x1d0)],{'onClick':()=>_0x1247e['tryStartPresenting'](),'children':_0x39948f(0x244)})]});}function _0x247a(_0x1da54b,_0x390ce4){_0x1da54b=_0x1da54b-0x175;const _0x10bbcf=_0x10bb();let _0x247a1f=_0x10bbcf[_0x1da54b];return _0x247a1f;}function _0x10bb(){const _0x48ffa4=['defineProperty','jsxs','You\x27re\x20presenting\x20the\x20document','idSuffix','http://www.w3.org/2000/svg','executeCommand','send','map','find','parseProtocolChangeset','_sharedOperations','use','LIVESHARE_FETCH_OPERATIONS','_handleNewHost','_startPresenting','useState','getLiveShareCoordinatorSync','data','1424mHwNUd','get','values','UniverInstanceType','currentColor','evenodd','CollaborationSessionService','UNIVER_UNKNOWN','path','CollaborationEvent','attrs','114687SZAoGv','RxDisposable','Stop\x20following','_uiPartsService','BehaviorSubject','current','_config','pluginName','_stopPresenting','useRef','_reporters','1em','init','params','string','div','_stopFollowing','children','mask','unitId','_commandDisposable','Module','jsx','idle','tryStartPresenting','stringify','OFFLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','Injector','getStatus','_startFollowing','Inject','getCurrentTypeOfUnit$','button','BuiltInUIPart','override','IUIPartsService','Disposable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','connectInjector','fill','DesktopLiveShareController','reverse','HEADER_MENU','disposeWithMe','memberID','createElement','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','UniverCollaborationClientPlugin','0\x200\x2017\x2017','Dropdown','clear','Start\x20following','startFollowing','429402VrPBiv','onRendered','_injector','1414UWAATi','4GNvuSl','InsertSheetMutation','_configService','createInstance','stopFollowing','_handleOnline','LiveShare','dispose','entries','360600atMUcl','_unitID','defIds','getInitialStates','forwardRef','LIVESHARE_OPERATION','registerInitialStateReporter','registerSharedOperation','useObservable','PRESENTING','getUnitId','merge','IConfigService','displayName','toStringTag','shouldShareOperation','tag','useEffect','random','symbol','Subject','OPERATION','FOLLOWING','_handleOperation','dispose$','complete','_univerInstanceService','pipe','touchDependencies','following','LiveShareCoordinator','getMemberID','_mountLiveShare','SessionStatus','UniverIcon','not-following','registerComponent','forEach','set','_commandService','getTypeOfUnitDisposed$','_collabSessionService','from','onCommandExecuted','replace','_fetchOperations','LiveShareIcon','sessionStatus$','end','toString','univer-size-4','UniverLiveSharePlugin','_status','useDependency','mutations','LIVESHARE_REQUEST_HOST','_handleTerminate','mergeOverrideWithDependencies','_init','trim','event$','You\x27re\x20not\x20following\x20the\x20presenter','svg','assign','next','Fragment','_presenter','828205IZveJU','length','includes','has','UNIVER_LIVE_SHARE_PLUGIN','default','_liveShareService','status$','_status$','toDisposable','LIVESHARE_NEW_HOST','parse','add','_entities','substring','defs','subscribe','_startLiveShareCoordinator','UNIVER_SHEET','3832jaUbik','Start','LiveShareController','asObservable','presenter','338obyhas','ICommandService','setConfig','You\x27re\x20following\x20the\x20presenter','_beIdle','DependentOn','throttleTime','_handleOffline','_collabSession','NOT_FOLLOWING','IDLE','takeUntil','xlink:href','SetWorksheetActiveOperation','getOwnPropertyDescriptor','getLiveShareCoordinator','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','delete','Plugin','393700GmzJRT','LIVESHARE_TERMINATE','registerDependencies','colorChannel1','LiveShareService','offline','presenting','SetZoomRatioOperation','_handleNewChangeSets','IUniverInstanceService'];_0x10bb=function(){return _0x48ffa4;};return _0x10bb();}function B(_0x9802bb){const _0x396968=_0xcdd8a2,{coordinator:_0x1d857d}=_0x9802bb;return l['jsxs'](l[_0x396968(0x22e)],{'children':[l['jsx'](_0x396968(0x1b8),{'className':_0x396968(0x1c4),'children':_0x396968(0x24b)}),l[_0x396968(0x1bf)](f['Button'],{'onClick':()=>_0x1d857d[_0x396968(0x1e8)](),'children':_0x396968(0x1ab)})]});}function Y(_0x3d8d1f){const _0x593a09=_0xcdd8a2,{coordinator:_0x1cf094}=_0x3d8d1f;return l['jsxs'](l[_0x593a09(0x22e)],{'children':[l[_0x593a09(0x1bf)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x593a09(0x22a)}),l[_0x593a09(0x1bf)](f[_0x593a09(0x1d0)],{'variant':'text','onClick':()=>_0x1cf094[_0x593a09(0x1df)](),'children':_0x593a09(0x1de)})]});}function Z(_0x4e4a70){const _0x4867a7=_0xcdd8a2,{coordinator:_0x13621a}=_0x4e4a70;return l['jsxs'](l[_0x4867a7(0x22e)],{'children':[l[_0x4867a7(0x1bf)](_0x4867a7(0x1b8),{'className':_0x4867a7(0x1c4),'children':_0x4867a7(0x18e)}),l[_0x4867a7(0x1bf)](f[_0x4867a7(0x1d0)],{'variant':_0x4867a7(0x235),'onClick':()=>_0x13621a['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x4f376b=_0xcdd8a2;return l[_0x4f376b(0x1bf)](l[_0x4f376b(0x22e)],{'children':'You\x27are\x20offline.'});}var K=Object[_0xcdd8a2(0x17c)],z=(_0x48da8f,_0x4944d9,_0x2af6a2,_0x17efd6)=>{const _0x3bb2e2=_0xcdd8a2;for(var _0x10a9e7=_0x17efd6>0x1?void 0x0:_0x17efd6?K(_0x4944d9,_0x2af6a2):_0x4944d9,_0x12b581=_0x48da8f[_0x3bb2e2(0x231)]-0x1,_0x52152a;_0x12b581>=0x0;_0x12b581--)(_0x52152a=_0x48da8f[_0x12b581])&&(_0x10a9e7=_0x52152a(_0x10a9e7)||_0x10a9e7);return _0x10a9e7;},L=(_0x4d4274,_0xa4f9b2)=>(_0xf95da2,_0x5d2684)=>_0xa4f9b2(_0xf95da2,_0x5d2684,_0x4d4274);exports[_0xcdd8a2(0x1d3)]=class extends o[_0xcdd8a2(0x1ce)]{constructor(_0x2ed776,_0x5d211f){const _0x4cf390=_0xcdd8a2;super(),this[_0x4cf390(0x1e2)]=_0x2ed776,this[_0x4cf390(0x1ac)]=_0x5d211f,this[_0x4cf390(0x20d)]();}[_0xcdd8a2(0x20d)](){const _0x572833=_0xcdd8a2;this[_0x572833(0x1d6)](this[_0x572833(0x1ac)][_0x572833(0x211)](p[_0x572833(0x1cb)][_0x572833(0x1d5)],()=>p[_0x572833(0x1d1)]($,this[_0x572833(0x1e2)])));}},exports[_0xcdd8a2(0x1d3)]=z([L(0x0,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),L(0x1,p[_0xcdd8a2(0x1cd)])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x4f32c2,_0x44b434,_0x4e8a6d,_0x5d8b01)=>{const _0x4725f7=_0xcdd8a2;for(var _0x5191b5=_0x5d8b01>0x1?void 0x0:_0x5d8b01?X(_0x44b434,_0x4e8a6d):_0x44b434,_0x27bc2c=_0x4f32c2[_0x4725f7(0x231)]-0x1,_0x980afd;_0x27bc2c>=0x0;_0x27bc2c--)(_0x980afd=_0x4f32c2[_0x27bc2c])&&(_0x5191b5=_0x980afd(_0x5191b5)||_0x5191b5);return _0x5191b5;},te=(_0x76b548,_0x4afe5c)=>(_0x308fa3,_0x560b76)=>_0x4afe5c(_0x308fa3,_0x560b76,_0x76b548);let m=class extends o[_0xcdd8a2(0x1ce)]{constructor(_0x2a359d){const _0xeba375=_0xcdd8a2;super(),this[_0xeba375(0x236)]=_0x2a359d,this['_init']();}['_init'](){const _0x57a7c1=_0xcdd8a2;[D[_0x57a7c1(0x189)]['id'],D['SetScrollOperation']['id'],C[_0x57a7c1(0x17b)]['id']][_0x57a7c1(0x212)](_0x159fbb=>{const _0x3a6019=_0x57a7c1;this['disposeWithMe'](this[_0x3a6019(0x236)][_0x3a6019(0x1f4)](_0x159fbb));});}};m=ee([te(0x0,o[_0xcdd8a2(0x1c8)](E))],m);var ie=Object[_0xcdd8a2(0x18c)],se=Object[_0xcdd8a2(0x17c)],ne=(_0x56fe7f,_0x58a06e,_0x1d5f5d)=>_0x58a06e in _0x56fe7f?ie(_0x56fe7f,_0x58a06e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d5f5d}):_0x56fe7f[_0x58a06e]=_0x1d5f5d,re=(_0x3ab5c4,_0x41ef58,_0x35b8e5,_0x39c52f)=>{for(var _0x5a86ce=_0x39c52f>0x1?void 0x0:_0x39c52f?se(_0x41ef58,_0x35b8e5):_0x41ef58,_0x14dc44=_0x3ab5c4['length']-0x1,_0x4bbced;_0x14dc44>=0x0;_0x14dc44--)(_0x4bbced=_0x3ab5c4[_0x14dc44])&&(_0x5a86ce=_0x4bbced(_0x5a86ce)||_0x5a86ce);return _0x5a86ce;},N=(_0x161715,_0x1715a3)=>(_0x2a9893,_0x4997b8)=>_0x1715a3(_0x2a9893,_0x4997b8,_0x161715),A=(_0x36a0be,_0x40dbd0,_0x22c838)=>ne(_0x36a0be,typeof _0x40dbd0!='symbol'?_0x40dbd0+'':_0x40dbd0,_0x22c838);const oe=_0xcdd8a2(0x234);exports['UniverLiveSharePlugin']=class extends o[_0xcdd8a2(0x181)]{constructor(_0x4c9ff8=w,_0x367f4b,_0x17e011){const _0x3fbe4d=_0xcdd8a2;super(),this[_0x3fbe4d(0x1af)]=_0x4c9ff8,this[_0x3fbe4d(0x1e2)]=_0x367f4b,this[_0x3fbe4d(0x1e6)]=_0x17e011;const {..._0x3125c9}=o[_0x3fbe4d(0x1f8)]({},w,this[_0x3fbe4d(0x1af)]);this[_0x3fbe4d(0x1e6)][_0x3fbe4d(0x24a)](Q,_0x3125c9);}['onStarting'](){const _0x172014=_0xcdd8a2;o[_0x172014(0x184)](this[_0x172014(0x1e2)],o[_0x172014(0x226)]([[E],[exports['LiveShareController']],[m],[exports[_0x172014(0x1d3)]]],this[_0x172014(0x1af)][_0x172014(0x1cc)])),o['touchDependencies'](this[_0x172014(0x1e2)],[[m]]);}[_0xcdd8a2(0x1e1)](){const _0x513faa=_0xcdd8a2;o[_0x513faa(0x209)](this[_0x513faa(0x1e2)],[[exports[_0x513faa(0x1d3)]]]);}},A(exports[_0xcdd8a2(0x220)],'type',o[_0xcdd8a2(0x1a1)][_0xcdd8a2(0x1a5)]),A(exports[_0xcdd8a2(0x220)],_0xcdd8a2(0x1b0),oe),exports[_0xcdd8a2(0x220)]=re([o[_0xcdd8a2(0x24d)](b[_0xcdd8a2(0x1da)]),N(0x1,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),N(0x2,o[_0xcdd8a2(0x1f9)])],exports[_0xcdd8a2(0x220)]),exports[_0xcdd8a2(0x1ea)]=$,exports[_0xcdd8a2(0x186)]=E,exports['LiveShareStatus']=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2561c3=_0x639e;function _0x639e(_0x26429c,_0x5f5b79){_0x26429c=_0x26429c-0xcc;const _0x17e9a0=_0x17e9();let _0x639ef=_0x17e9a0[_0x26429c];return _0x639ef;}(function(_0x122c71,_0x4438d4){const _0x4c5884=_0x639e,_0x47910b=_0x122c71();while(!![]){try{const _0x2c6626=-parseInt(_0x4c5884(0xd2))/0x1+-parseInt(_0x4c5884(0xd3))/0x2+parseInt(_0x4c5884(0xe6))/0x3*(-parseInt(_0x4c5884(0xe3))/0x4)+-parseInt(_0x4c5884(0xda))/0x5*(parseInt(_0x4c5884(0xdc))/0x6)+parseInt(_0x4c5884(0xcd))/0x7+-parseInt(_0x4c5884(0xeb))/0x8*(parseInt(_0x4c5884(0xd1))/0x9)+-parseInt(_0x4c5884(0xce))/0xa*(-parseInt(_0x4c5884(0xd9))/0xb);if(_0x2c6626===_0x4438d4)break;else _0x47910b['push'](_0x47910b['shift']());}catch(_0x245698){_0x47910b['push'](_0x47910b['shift']());}}}(_0x17e9,0x2e84b));import{LiveShareController as _0x204761,LiveShareStatus as _0x5af292}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x585a07}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xabbfd8}from'@univerjs/sheets';import{SetScrollOperation as _0x2dfe55}from'@univerjs/sheets-ui';import{FRange as _0x426e48}from'@univerjs/sheets/facade';import{FUniver as _0x29f894,FEnum as _0x444374}from'@univerjs/core/facade';class I extends _0x426e48{[_0x2561c3(0xdd)](_0x3056de,_0x5b0d90,_0x35a303,_0x52bbd4,_0x51f56c){const _0x5b3b59=_0x2561c3,_0x59bb58=_0x3056de[_0x5b3b59(0xe5)](_0x204761),_0x1e4fd5=_0x3056de[_0x5b3b59(0xe5)](_0x585a07),_0x549598=_0x5b0d90['getUnitId'](),_0x3ff9f1=_0x5b0d90[_0x5b3b59(0xe4)](),_0x108e77=_0x59bb58[_0x5b3b59(0xcc)](_0x549598);(_0x108e77==null?void 0x0:_0x108e77[_0x5b3b59(0xd6)]())!==_0x5af292['PRESENTING']||(_0x35a303[_0x5b3b59(0xd4)]()!==_0x3ff9f1[_0x5b3b59(0xd4)]()&&this[_0x5b3b59(0xdf)][_0x5b3b59(0xe9)](_0xabbfd8['id'],{'unitId':_0x549598,'subUnitId':_0x35a303['getSheetId']()}),!_0x1e4fd5['getRenderById'](_0x549598))||_0x51f56c['syncExecuteCommand'](_0x2dfe55['id'],{'unitId':_0x5b0d90[_0x5b3b59(0xe7)](),'sheetId':_0x35a303['getSheetId'](),'sheetViewStartRow':_0x52bbd4['startRow'],'sheetViewStartColumn':_0x52bbd4[_0x5b3b59(0xd5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x426e48[_0x2561c3(0xe8)](I);class m extends _0x29f894{['getLiveShareStatus'](){const _0x5775fa=_0x2561c3;var _0x4803a2,_0x453d4;const _0x3dca3c=this[_0x5775fa(0xe0)][_0x5775fa(0xe5)](_0x204761),_0x5308c1=(_0x4803a2=this[_0x5775fa(0xdb)]())==null?void 0x0:_0x4803a2[_0x5775fa(0xea)]();if(!_0x5308c1)throw new Error(_0x5775fa(0xe1));const _0x4a1981=_0x3dca3c[_0x5775fa(0xcc)](_0x5308c1);return(_0x453d4=_0x4a1981==null?void 0x0:_0x4a1981[_0x5775fa(0xd6)]())!=null?_0x453d4:_0x5af292[_0x5775fa(0xd0)];}[_0x2561c3(0xe2)](){const _0x56ac37=_0x2561c3;var _0x2a1a51;const _0x5f2911=this[_0x56ac37(0xe0)][_0x56ac37(0xe5)](_0x204761),_0x2e43f9=(_0x2a1a51=this[_0x56ac37(0xdb)]())==null?void 0x0:_0x2a1a51['getId']();if(!_0x2e43f9)throw new Error(_0x56ac37(0xe1));const _0xea5ea8=_0x5f2911[_0x56ac37(0xcc)](_0x2e43f9);if(!_0xea5ea8)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xea5ea8['startFollowing']();}[_0x2561c3(0xcf)](){const _0x160ab0=_0x2561c3;var _0xd4633f;const _0x11ee3b=this['_injector'][_0x160ab0(0xe5)](_0x204761),_0x2ba408=(_0xd4633f=this['getActiveWorkbook']())==null?void 0x0:_0xd4633f['getId']();if(!_0x2ba408)throw new Error(_0x160ab0(0xe1));const _0x54d5e8=_0x11ee3b['getLiveShareCoordinatorSync'](_0x2ba408);if(!_0x54d5e8)throw new Error(_0x160ab0(0xec));_0x54d5e8[_0x160ab0(0xcf)]();}[_0x2561c3(0xd8)](){const _0x1bda36=_0x2561c3;var _0x1d7986;const _0x4e127e=this[_0x1bda36(0xe0)]['get'](_0x204761),_0x1355be=(_0x1d7986=this['getActiveWorkbook']())==null?void 0x0:_0x1d7986[_0x1bda36(0xea)]();if(!_0x1355be)throw new Error(_0x1bda36(0xe1));const _0x474541=_0x4e127e['getLiveShareCoordinatorSync'](_0x1355be);if(!_0x474541)throw new Error(_0x1bda36(0xec));_0x474541[_0x1bda36(0xde)]();}[_0x2561c3(0xd7)](){const _0x53d076=_0x2561c3;var _0x2808d5;const _0x5d4a44=this[_0x53d076(0xe0)][_0x53d076(0xe5)](_0x204761),_0xa867df=(_0x2808d5=this[_0x53d076(0xdb)]())==null?void 0x0:_0x2808d5[_0x53d076(0xea)]();if(!_0xa867df)throw new Error('No\x20active\x20workbook\x20found.');const _0x2b9413=_0x5d4a44[_0x53d076(0xcc)](_0xa867df);if(!_0x2b9413)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2b9413[_0x53d076(0xd7)]();}}_0x29f894[_0x2561c3(0xe8)](m);class C extends _0x444374{get['LiveShareStatusEnum'](){return _0x5af292;}}_0x444374['extend'](C);function _0x17e9(){const _0x5314ef=['getUnitId','extend','executeCommand','getId','838232doQIbC','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','300496eITPyP','10wYnpJY','stopFollowing','IDLE','18gGFVyC','279858hDoivd','145270EROWIB','getSheetId','startColumn','getStatus','stopPresenting','startPresenting','13822765YKUMZH','5XYfgdU','getActiveWorkbook','1540038FCejAP','_initialize','tryStartPresenting','_commandService','_injector','No\x20active\x20workbook\x20found.','startFollowing','1312cPXXWC','getActiveSheet','get','2655mRrCPP'];_0x17e9=function(){return _0x5314ef;};return _0x17e9();}
1
+ function _0x571f(){const _0x2fbe56=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18SFLRUn','54qplNdb','extend','LiveShareStatusEnum','IDLE','tryStartPresenting','1910900EeGIkZ','stopFollowing','getActiveSheet','getStatus','startFollowing','2748163dgQCaB','PRESENTING','_injector','4673781HJElQr','executeCommand','getLiveShareCoordinatorSync','2974672RSYiYd','10JxqPkj','536622GrCFBV','getSheetId','startRow','getUnitId','8913336INbwqk','getId','_commandService','41692asRSlr','6ZNgyrA','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting','get','2cKGIjO','getActiveWorkbook'];_0x571f=function(){return _0x2fbe56;};return _0x571f();}const _0x79a651=_0x53b0;(function(_0x4fcfdf,_0x31312f){const _0x5cebe7=_0x53b0,_0x4541f2=_0x4fcfdf();while(!![]){try{const _0x218c8f=-parseInt(_0x5cebe7(0x161))/0x1*(parseInt(_0x5cebe7(0x16e))/0x2)+-parseInt(_0x5cebe7(0x172))/0x3*(-parseInt(_0x5cebe7(0x168))/0x4)+parseInt(_0x5cebe7(0x154))/0x5*(parseInt(_0x5cebe7(0x169))/0x6)+parseInt(_0x5cebe7(0x15c))/0x7+-parseInt(_0x5cebe7(0x15f))/0x8*(parseInt(_0x5cebe7(0x171))/0x9)+parseInt(_0x5cebe7(0x160))/0xa*(-parseInt(_0x5cebe7(0x159))/0xb)+parseInt(_0x5cebe7(0x165))/0xc;if(_0x218c8f===_0x31312f)break;else _0x4541f2['push'](_0x4541f2['shift']());}catch(_0x37dcb2){_0x4541f2['push'](_0x4541f2['shift']());}}}(_0x571f,0x6de54));import{LiveShareController as _0x55af9f,LiveShareStatus as _0x3533f8}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2a4873}from'@univerjs/engine-render';function _0x53b0(_0x2493f7,_0x3baac6){_0x2493f7=_0x2493f7-0x152;const _0x571fe5=_0x571f();let _0x53b086=_0x571fe5[_0x2493f7];return _0x53b086;}import{SetWorksheetActiveOperation as _0x5c83dd}from'@univerjs/sheets';import{SetScrollOperation as _0x40817b}from'@univerjs/sheets-ui';import{FRange as _0x4fa1a3}from'@univerjs/sheets/facade';import{FUniver as _0x5c5814,FEnum as _0x54a6aa}from'@univerjs/core/facade';class I extends _0x4fa1a3{['_initialize'](_0x1f6ef1,_0x1d53fd,_0x771944,_0x23b5b3,_0x4161d7){const _0x57c640=_0x53b0,_0x487400=_0x1f6ef1[_0x57c640(0x16d)](_0x55af9f),_0x1acfaa=_0x1f6ef1[_0x57c640(0x16d)](_0x2a4873),_0x1be079=_0x1d53fd[_0x57c640(0x164)](),_0x4279a5=_0x1d53fd[_0x57c640(0x156)](),_0x4ad478=_0x487400[_0x57c640(0x15e)](_0x1be079);(_0x4ad478==null?void 0x0:_0x4ad478[_0x57c640(0x157)]())!==_0x3533f8[_0x57c640(0x15a)]||(_0x771944[_0x57c640(0x162)]()!==_0x4279a5['getSheetId']()&&this[_0x57c640(0x167)][_0x57c640(0x15d)](_0x5c83dd['id'],{'unitId':_0x1be079,'subUnitId':_0x771944[_0x57c640(0x162)]()}),!_0x1acfaa['getRenderById'](_0x1be079))||_0x4161d7['syncExecuteCommand'](_0x40817b['id'],{'unitId':_0x1d53fd[_0x57c640(0x164)](),'sheetId':_0x771944[_0x57c640(0x162)](),'sheetViewStartRow':_0x23b5b3[_0x57c640(0x163)],'sheetViewStartColumn':_0x23b5b3['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4fa1a3['extend'](I);class m extends _0x5c5814{['getLiveShareStatus'](){const _0x25436d=_0x53b0;var _0x5b9f61,_0x30dcb6;const _0x31f781=this[_0x25436d(0x15b)]['get'](_0x55af9f),_0x1b4084=(_0x5b9f61=this[_0x25436d(0x16f)]())==null?void 0x0:_0x5b9f61[_0x25436d(0x166)]();if(!_0x1b4084)throw new Error(_0x25436d(0x16b));const _0x346099=_0x31f781[_0x25436d(0x15e)](_0x1b4084);return(_0x30dcb6=_0x346099==null?void 0x0:_0x346099[_0x25436d(0x157)]())!=null?_0x30dcb6:_0x3533f8[_0x25436d(0x152)];}[_0x79a651(0x158)](){const _0x2dead6=_0x79a651;var _0x58abe3;const _0x580abc=this[_0x2dead6(0x15b)]['get'](_0x55af9f),_0x580a2d=(_0x58abe3=this[_0x2dead6(0x16f)]())==null?void 0x0:_0x58abe3[_0x2dead6(0x166)]();if(!_0x580a2d)throw new Error(_0x2dead6(0x16b));const _0x33dc85=_0x580abc[_0x2dead6(0x15e)](_0x580a2d);if(!_0x33dc85)throw new Error(_0x2dead6(0x170));_0x33dc85['startFollowing']();}[_0x79a651(0x155)](){const _0x5b3232=_0x79a651;var _0x462738;const _0x36c356=this[_0x5b3232(0x15b)][_0x5b3232(0x16d)](_0x55af9f),_0x345d0a=(_0x462738=this[_0x5b3232(0x16f)]())==null?void 0x0:_0x462738[_0x5b3232(0x166)]();if(!_0x345d0a)throw new Error('No\x20active\x20workbook\x20found.');const _0x573141=_0x36c356[_0x5b3232(0x15e)](_0x345d0a);if(!_0x573141)throw new Error(_0x5b3232(0x170));_0x573141[_0x5b3232(0x155)]();}[_0x79a651(0x16c)](){const _0x5e04c5=_0x79a651;var _0x3df80f;const _0x468a35=this['_injector'][_0x5e04c5(0x16d)](_0x55af9f),_0x415646=(_0x3df80f=this['getActiveWorkbook']())==null?void 0x0:_0x3df80f[_0x5e04c5(0x166)]();if(!_0x415646)throw new Error(_0x5e04c5(0x16b));const _0x18f111=_0x468a35[_0x5e04c5(0x15e)](_0x415646);if(!_0x18f111)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18f111[_0x5e04c5(0x153)]();}[_0x79a651(0x16a)](){const _0x5728cd=_0x79a651;var _0x19c8d6;const _0x5af450=this['_injector'][_0x5728cd(0x16d)](_0x55af9f),_0x281a79=(_0x19c8d6=this[_0x5728cd(0x16f)]())==null?void 0x0:_0x19c8d6[_0x5728cd(0x166)]();if(!_0x281a79)throw new Error('No\x20active\x20workbook\x20found.');const _0x111972=_0x5af450[_0x5728cd(0x15e)](_0x281a79);if(!_0x111972)throw new Error(_0x5728cd(0x170));_0x111972[_0x5728cd(0x16a)]();}}_0x5c5814['extend'](m);class C extends _0x54a6aa{get[_0x79a651(0x174)](){return _0x3533f8;}}_0x54a6aa[_0x79a651(0x173)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5a9157=_0x4e14;(function(_0x56d1de,_0x1be11f){const _0x3232cd=_0x4e14,_0x1af3f2=_0x56d1de();while(!![]){try{const _0x19c600=parseInt(_0x3232cd(0x191))/0x1+-parseInt(_0x3232cd(0x166))/0x2+parseInt(_0x3232cd(0x130))/0x3+parseInt(_0x3232cd(0x1a9))/0x4+parseInt(_0x3232cd(0x14d))/0x5+parseInt(_0x3232cd(0x161))/0x6+-parseInt(_0x3232cd(0x16b))/0x7;if(_0x19c600===_0x1be11f)break;else _0x1af3f2['push'](_0x1af3f2['shift']());}catch(_0x56f5ba){_0x1af3f2['push'](_0x1af3f2['shift']());}}}(_0x54c7,0xb3ce5));function _0x4e14(_0x50138c,_0x45307e){_0x50138c=_0x50138c-0x115;const _0x54c7ce=_0x54c7();let _0x4e14ac=_0x54c7ce[_0x50138c];return _0x4e14ac;}var J=Object[_0x5a9157(0x136)],K=(_0x4672aa,_0x1de778,_0x12c834)=>_0x1de778 in _0x4672aa?J(_0x4672aa,_0x1de778,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12c834}):_0x4672aa[_0x1de778]=_0x12c834,u=(_0x3616d7,_0x5d1470,_0x5456b0)=>K(_0x3616d7,typeof _0x5d1470!=_0x5a9157(0x194)?_0x5d1470+'':_0x5d1470,_0x5456b0);import{Disposable as _0xa28d62,toDisposable as _0x3e6459,IUniverInstanceService as _0x2bf8ed,Inject as _0x5890f3,Injector as _0x2ac967,IConfigService as _0x2ccd3e,ICommandService as _0x8f3e9,RxDisposable as _0x1cce5c,UniverInstanceType as _0x118916,DisposableCollection as _0x5315c9,CommandType as _0x55dc24,DependentOn as _0x2c9f12,Plugin as _0x446406,merge as _0x230b34,registerDependencies as _0x3ca90e,mergeOverrideWithDependencies as _0x1d22c6,touchDependencies as _0xa89abb}from'@univerjs/core';import{useDependency as _0x14fb74,useObservable as _0x25b804,IUIPartsService as _0x4b3e7b,BuiltInUIPart as _0x3df1ce,connectInjector as _0x360939}from'@univerjs/ui';import{jsx as _0xe9d27a,jsxs as _0x1044b3,Fragment as _0x21e76d}from'react/jsx-runtime';import{Dropdown as _0x1d5dcc,clsx as _0x26827b,Button as _0x43cbc8}from'@univerjs/design';import{useRef as _0x3a8f3b,createElement as _0x445d41,forwardRef as _0x3a591f,useState as _0x5ab416,useEffect as _0x34456e}from'react';import{CollaborationEvent as _0xb6d82,parseProtocolChangeset as _0x448a4b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x270da6,SessionStatus as _0x1f086f,UniverCollaborationClientPlugin as _0x270228}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1a8b78,SetWorksheetActiveOperation as _0x4ff82e}from'@univerjs/sheets';import{BehaviorSubject as _0x4812e4,Subject as _0x4797b2}from'rxjs';import{takeUntil as _0x5bc01a,throttleTime as _0x1e0766}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f21c4,SetScrollOperation as _0x447fe5}from'@univerjs/sheets-ui';function k({ref:_0x4aafb6,..._0x34a9d5}){const _0x2fa30d=_0x5a9157,{icon:_0x10eab9,id:_0x3dc31d,className:_0x26f72d,extend:_0x195ada,..._0x1ea6ed}=_0x34a9d5,_0x264f64=(_0x2fa30d(0x11f)+_0x3dc31d+'\x20'+(_0x26f72d||''))[_0x2fa30d(0x13b)](),_0x543818=_0x3a8f3b('_'+Oe());return G(_0x10eab9,''+_0x3dc31d,{'defIds':_0x10eab9[_0x2fa30d(0x190)],'idSuffix':_0x543818[_0x2fa30d(0x17b)]},{'ref':_0x4aafb6,'className':_0x264f64,..._0x1ea6ed},_0x195ada);}function G(_0x5223e4,_0x4d5a88,_0xc614ca,_0x7e6615,_0x2c9f7e){const _0x47cd5e=_0x5a9157;return _0x445d41(_0x5223e4['tag'],{'key':_0x4d5a88,...be(_0x5223e4,_0xc614ca,_0x2c9f7e),..._0x7e6615},(Ee(_0x5223e4,_0xc614ca)[_0x47cd5e(0x125)]||[])[_0x47cd5e(0x11c)]((_0x409539,_0x18da96)=>G(_0x409539,_0x4d5a88+'-'+_0x5223e4[_0x47cd5e(0x12c)]+'-'+_0x18da96,_0xc614ca,void 0x0,_0x2c9f7e)));}function be(_0x27d574,_0x3a9068,_0x50d3bf){const _0x4524b0=_0x5a9157,_0x387e5f={..._0x27d574[_0x4524b0(0x184)]};_0x50d3bf!=null&&_0x50d3bf[_0x4524b0(0x152)]&&_0x387e5f['fill']===_0x4524b0(0x152)&&(_0x387e5f['fill']=_0x50d3bf[_0x4524b0(0x152)]),_0x27d574[_0x4524b0(0x12c)]===_0x4524b0(0x1b5)&&_0x387e5f['id']&&(_0x387e5f['id']=_0x387e5f['id']+_0x3a9068[_0x4524b0(0x175)]),Object['entries'](_0x387e5f)[_0x4524b0(0x183)](([_0xbb34fb,_0x214116])=>{const _0x424387=_0x4524b0;_0xbb34fb==='mask'&&typeof _0x214116==_0x424387(0x18b)&&(_0x387e5f[_0xbb34fb]=_0x214116['replace'](/url\(#(.*)\)/,_0x424387(0x18f)+_0x3a9068[_0x424387(0x175)]+')'));});const {defIds:_0x43c136}=_0x3a9068;return!_0x43c136||_0x43c136[_0x4524b0(0x18d)]===0x0||(_0x27d574['tag']==='use'&&_0x387e5f['xlink:href']&&(_0x387e5f[_0x4524b0(0x199)]=_0x387e5f[_0x4524b0(0x199)]+_0x3a9068[_0x4524b0(0x175)]),Object[_0x4524b0(0x121)](_0x387e5f)['forEach'](([_0x4e4ed0,_0xa2838b])=>{const _0x3d9828=_0x4524b0;typeof _0xa2838b==_0x3d9828(0x18b)&&(_0x387e5f[_0x4e4ed0]=_0xa2838b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3a9068[_0x3d9828(0x175)]+')'));})),_0x387e5f;}function Ee(_0x2db2ec,_0x222fe7){const _0x53553e=_0x5a9157;var _0x210d98;const {defIds:_0x39dcfb}=_0x222fe7;return!_0x39dcfb||_0x39dcfb['length']===0x0?_0x2db2ec:_0x2db2ec[_0x53553e(0x12c)]==='defs'&&((_0x210d98=_0x2db2ec['children'])!=null&&_0x210d98[_0x53553e(0x18d)])?{..._0x2db2ec,'children':_0x2db2ec[_0x53553e(0x125)][_0x53553e(0x11c)](_0x424c08=>typeof _0x424c08[_0x53553e(0x184)]['id']==_0x53553e(0x18b)&&_0x39dcfb&&_0x39dcfb['includes'](_0x424c08[_0x53553e(0x184)]['id'])?{..._0x424c08,'attrs':{..._0x424c08['attrs'],'id':_0x424c08['attrs']['id']+_0x222fe7[_0x53553e(0x175)]}}:_0x424c08)}:_0x2db2ec;}function Oe(){const _0x675a0b=_0x5a9157;return Math['random']()[_0x675a0b(0x1a6)](0x24)['substring'](0x2,0x8);}k[_0x5a9157(0x18a)]='UniverIcon';const we={'tag':_0x5a9157(0x187),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5a9157(0x145),'viewBox':_0x5a9157(0x173),'width':_0x5a9157(0x1b3),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5a9157(0x132),'d':_0x5a9157(0x159)}},{'tag':_0x5a9157(0x12d),'attrs':{'fill':_0x5a9157(0x132),'d':_0x5a9157(0x17c),'fillRule':_0x5a9157(0x1ae),'clipRule':_0x5a9157(0x1ae)}}]},W=_0x3a591f(function(_0x9266ec,_0x26acce){const _0x563837=_0x5a9157;return _0x445d41(k,Object['assign']({},_0x9266ec,{'id':_0x563837(0x1a2),'ref':_0x26acce,'icon':we}));});W[_0x5a9157(0x18a)]=_0x5a9157(0x188);class L extends _0xa28d62{constructor(){const _0x1c1033=_0x5a9157;super(...arguments),u(this,_0x1c1033(0x189),new Set()),u(this,'_reporters',new Set());}[_0x5a9157(0x19f)](_0x3a6d42){const _0x1a8668=_0x5a9157;return this[_0x1a8668(0x189)][_0x1a8668(0x16e)](_0x3a6d42),_0x3e6459(()=>this[_0x1a8668(0x189)][_0x1a8668(0x12e)](_0x3a6d42));}['registerInitialStateReporter'](_0x14f19b){const _0x430a19=_0x5a9157;return this[_0x430a19(0x157)][_0x430a19(0x16e)](_0x14f19b),_0x3e6459(()=>this['_reporters'][_0x430a19(0x12e)](_0x14f19b));}[_0x5a9157(0x168)](_0x16d14b){const _0x28ffee=_0x5a9157;return this[_0x28ffee(0x189)]['has'](_0x16d14b);}[_0x5a9157(0x13c)](_0x4b9d74){const _0x4b079f=_0x5a9157;return Array[_0x4b079f(0x16a)](this[_0x4b079f(0x157)])[_0x4b079f(0x11c)](_0x65bfbd=>_0x65bfbd(_0x4b9d74));}}var Ne=Object[_0x5a9157(0x162)],Y=(_0x37b0e3,_0x5a90ae,_0x3eae1e,_0x3c7894)=>{const _0x1411cf=_0x5a9157;for(var _0x43b1a6=_0x3c7894>0x1?void 0x0:_0x3c7894?Ne(_0x5a90ae,_0x3eae1e):_0x5a90ae,_0x29854b=_0x37b0e3[_0x1411cf(0x18d)]-0x1,_0x4e45ce;_0x29854b>=0x0;_0x29854b--)(_0x4e45ce=_0x37b0e3[_0x29854b])&&(_0x43b1a6=_0x4e45ce(_0x43b1a6)||_0x43b1a6);return _0x43b1a6;},_=(_0xa33a29,_0x53098a)=>(_0x3f79a9,_0x36dda4)=>_0x53098a(_0x3f79a9,_0x36dda4,_0xa33a29);function _0x54c7(){const _0x39b7d5=['attrs','unsubscribe','_handleNewHost','svg','LiveShareIcon','_sharedOperations','displayName','string','setConfig','length','stopFollowing','url(#$1','defIds','217525LzCWYs','disposeWithMe','tryStartPresenting','symbol','PRESENTING','find','Present\x20this\x20document','onRendered','xlink:href','dispose$','getConfig','ONLINE','_handleOffline','has','registerSharedOperation','_handleOperation','stringify','live-share-icon','getLiveShareCoordinatorSync','_collabSession','UNIVER_UNKNOWN','toString','getMemberID','getCurrentTypeOfUnit$','467616fUPsvU','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','_uiPartsService','_univerInstanceService','pluginName','evenodd','_commandDisposable','sheet','_fetchOperations','registerComponent','1em','NEW_CHANGESETS','mask','status$','_mountLiveShare','_startPresenting','end','override','_startLiveShareCoordinator','asObservable','startFollowing','getValue','send','map','getTypeOfUnitAdded$','_beIdle','univerjs-icon\x20univerjs-icon-','not-following','entries','univer-size-4','You\x27are\x20offline.','get','children','Start\x20following','complete','values','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','createInstance','tag','path','delete','_init','3653502BOwAta','getUnitId','currentColor','_collabSessionService','Stop\x20presenting','_stopFollowing','defineProperty','unitId','Start','_injector','_stopPresenting','trim','getInitialStates','button','params','_commandService','You\x27re\x20following\x20the\x20presenter','_entities','reverse','UNIVER_SHEET','_handleOnline','none','executeCommand','_liveShareService','LIVESHARE_OPERATION','_handleTerminate','FOLLOWING','_status$','getLiveShareCoordinator','1846640ldcwVj','_config','requireSession','OFFLINE','_configService','colorChannel1','default','subscribe','You\x27re\x20presenting\x20the\x20document','_unitID','_reporters','LIVESHARE_TERMINATE','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','then','dispose','OPERATION','memberID','next','idle','getStatus','3389754vyajxw','getOwnPropertyDescriptor','_startFollowing','following','LIVESHARE_FETCH_OPERATIONS','1052856QySCGt','getTypeOfUnitDisposed$','shouldShareOperation','data','from','8565459AAFyas','mutations','set','add','clear','stopPresenting','HEADER_MENU','text','0\x200\x2017\x2017','presenting','idSuffix','LIVESHARE_REQUEST_HOST','Stop\x20following','NOT_FOLLOWING','_presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','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','UNIVER_LIVE_SHARE_PLUGIN','pipe','offline','init','_handleNewChangeSets','_status','forEach'];_0x54c7=function(){return _0x39b7d5;};return _0x54c7();}let S=class extends _0x1cce5c{constructor(_0x315b6e,_0x304d1b,_0x3ba4b9){const _0x501fca=_0x5a9157;super(),u(this,_0x501fca(0x141),new Map()),(this['_univerInstanceService']=_0x315b6e,this[_0x501fca(0x139)]=_0x304d1b,this[_0x501fca(0x133)]=_0x3ba4b9,this['_init']());}async[_0x5a9157(0x14c)](_0x5b02c6){const _0x7784dc=_0x5a9157;return this['_entities']['has'](_0x5b02c6)||await this['_startLiveShareCoordinator'](_0x5b02c6),this[_0x7784dc(0x141)][_0x7784dc(0x124)](_0x5b02c6);}[_0x5a9157(0x1a3)](_0x268da4){const _0x426ceb=_0x5a9157;var _0xcfdf9d;return(_0xcfdf9d=this['_entities'][_0x426ceb(0x124)](_0x268da4))!=null?_0xcfdf9d:null;}['_init'](){const _0x55a05c=_0x5a9157;this['_univerInstanceService'][_0x55a05c(0x11d)](_0x118916[_0x55a05c(0x143)])[_0x55a05c(0x17e)](_0x5bc01a(this['dispose$']))[_0x55a05c(0x154)](async _0x57c2a7=>{const _0x2622f1=_0x55a05c,_0x3e6ddc=_0x57c2a7[_0x2622f1(0x131)]();this['_entities'][_0x2622f1(0x19e)](_0x3e6ddc)||this[_0x2622f1(0x117)](_0x3e6ddc);}),this[_0x55a05c(0x1ac)][_0x55a05c(0x167)](_0x118916[_0x55a05c(0x143)])['pipe'](_0x5bc01a(this[_0x55a05c(0x19a)]))[_0x55a05c(0x154)](_0x331c33=>{const _0x9104fd=_0x55a05c,_0x287175=_0x331c33['getUnitId'](),_0x48eb15=this[_0x9104fd(0x141)][_0x9104fd(0x124)](_0x287175);_0x48eb15==null||_0x48eb15['dispose']();});}async[_0x5a9157(0x117)](_0x274525){const _0x4c5ae2=_0x5a9157,_0x13c343=await this['_collabSessionService'][_0x4c5ae2(0x14f)](_0x274525),_0x5dcc38=this[_0x4c5ae2(0x139)][_0x4c5ae2(0x12b)](N,_0x274525,_0x13c343);return _0x5dcc38[_0x4c5ae2(0x180)](),this['_entities'][_0x4c5ae2(0x16d)](_0x274525,_0x5dcc38),_0x5dcc38;}};S=Y([_(0x0,_0x2bf8ed),_(0x1,_0x5890f3(_0x2ac967)),_(0x2,_0x5890f3(_0x270da6))],S);var c=(_0x3dd772=>(_0x3dd772[_0x5a9157(0x150)]=_0x5a9157(0x17f),_0x3dd772[_0x5a9157(0x12a)]=_0x5a9157(0x15f),_0x3dd772['FOLLOWING']=_0x5a9157(0x164),_0x3dd772[_0x5a9157(0x178)]=_0x5a9157(0x120),_0x3dd772['PRESENTING']=_0x5a9157(0x174),_0x3dd772))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x1cce5c{constructor(_0xb205f3,_0x145752,_0x10357b,_0x3da1b7,_0x3c2a71){const _0x11a0a2=_0x5a9157;super(),u(this,'_status$',new _0x4812e4(_0x11a0a2(0x15f))),u(this,_0x11a0a2(0x1b6),this[_0x11a0a2(0x14b)][_0x11a0a2(0x118)]()),u(this,_0x11a0a2(0x12f),!0x1),u(this,'_commandDisposable',null),u(this,_0x11a0a2(0x179),null),(this[_0x11a0a2(0x156)]=_0xb205f3,this[_0x11a0a2(0x1a4)]=_0x145752,this['_configService']=_0x10357b,this['_liveShareService']=_0x3da1b7,this[_0x11a0a2(0x13f)]=_0x3c2a71);}get[_0x5a9157(0x182)](){const _0x590aa9=_0x5a9157;return this['_status$'][_0x590aa9(0x11a)]();}[_0x5a9157(0x15b)](){const _0x1b17eb=_0x5a9157;var _0x419afe;(_0x419afe=this['_commandDisposable'])==null||_0x419afe[_0x1b17eb(0x15b)](),this['_status$'][_0x1b17eb(0x15e)](_0x1b17eb(0x15f)),this[_0x1b17eb(0x14b)][_0x1b17eb(0x127)]();}[_0x5a9157(0x160)](){const _0x2a4fc6=_0x5a9157;return this[_0x2a4fc6(0x182)];}[_0x5a9157(0x180)](){const _0x24d726=_0x5a9157;this[_0x24d726(0x12f)]||(this[_0x24d726(0x12f)]=!0x0,this['_collabSession']['sessionStatus$'][_0x24d726(0x17e)](_0x5bc01a(this[_0x24d726(0x19a)]))['subscribe'](_0x516d76=>{const _0x5bc4aa=_0x24d726;switch(_0x516d76){case _0x1f086f[_0x5bc4aa(0x150)]:this[_0x5bc4aa(0x19d)]();break;case _0x1f086f[_0x5bc4aa(0x19c)]:this[_0x5bc4aa(0x144)]();break;}}),this['_collabSession']['event$']['pipe'](_0x5bc01a(this['dispose$']))[_0x24d726(0x154)](_0x3abf42=>{const _0x35f5a9=_0x24d726,{eventID:_0x155f0d}=_0x3abf42;switch(_0x155f0d){case _0xb6d82['LIVESHARE_NEW_HOST']:this[_0x35f5a9(0x186)](_0x3abf42);break;case _0xb6d82[_0x35f5a9(0x148)]:this[_0x35f5a9(0x1a0)](_0x3abf42);break;case _0xb6d82[_0x35f5a9(0x158)]:this[_0x35f5a9(0x149)]();break;case _0xb6d82[_0x35f5a9(0x1b4)]:this[_0x35f5a9(0x181)](_0x3abf42);break;}}));}['tryStartPresenting'](){const _0x4c0715=_0x5a9157;this['_collabSession'][_0x4c0715(0x11b)]({'eventID':_0xb6d82[_0x4c0715(0x176)],'data':{'unitID':this['_unitID'],'userID':this[_0x4c0715(0x1a4)][_0x4c0715(0x1a7)]()}},this[_0x4c0715(0x156)]);}[_0x5a9157(0x170)](){const _0x350fc6=_0x5a9157;this[_0x350fc6(0x182)]==='presenting'&&(this[_0x350fc6(0x14b)]['next'](_0x350fc6(0x15f)),this[_0x350fc6(0x1a4)][_0x350fc6(0x11b)]({'eventID':_0xb6d82[_0x350fc6(0x158)],'data':{'unitID':this[_0x350fc6(0x156)]}},this[_0x350fc6(0x156)]));}['startFollowing'](){const _0x98e65=_0x5a9157;this[_0x98e65(0x182)]===_0x98e65(0x120)&&(this['_status$'][_0x98e65(0x15e)](_0x98e65(0x164)),this[_0x98e65(0x163)]());}['stopFollowing'](){const _0x2d5c57=_0x5a9157;this['_status']===_0x2d5c57(0x164)&&this[_0x2d5c57(0x135)]();}[_0x5a9157(0x186)](_0x1c646f){const _0x19fecd=_0x5a9157,{presenter:_0x4a340c}=_0x1c646f[_0x19fecd(0x169)],_0x52a714=this[_0x19fecd(0x1a4)][_0x19fecd(0x1a7)]();this[_0x19fecd(0x179)]=_0x4a340c,_0x4a340c===_0x52a714?(this[_0x19fecd(0x135)](),this[_0x19fecd(0x1b8)]()):this['_status']!==_0x19fecd(0x120)&&(this[_0x19fecd(0x13a)](),this[_0x19fecd(0x163)]());}['_fetchOperations'](){const _0x177e9a=_0x5a9157,_0xc199c3={'eventID':_0xb6d82[_0x177e9a(0x165)]};this[_0x177e9a(0x1a4)][_0x177e9a(0x11b)](_0xc199c3,this[_0x177e9a(0x156)]);}[_0x5a9157(0x149)](){const _0x1e3f06=_0x5a9157;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x1e3f06(0x11e)]();}[_0x5a9157(0x181)](_0x36b89e){const _0x193e4d=_0x5a9157;if(this[_0x193e4d(0x182)]===_0x193e4d(0x164)&&this[_0x193e4d(0x179)]===_0x36b89e[_0x193e4d(0x169)][_0x193e4d(0x15d)]){const _0x540c5e=_0x448a4b(_0x36b89e[_0x193e4d(0x169)])[_0x193e4d(0x16c)][_0x193e4d(0x142)]()[_0x193e4d(0x196)](_0x45d7bf=>_0x45d7bf['id']===_0x1a8b78['id']);if(_0x540c5e){const _0x4dd3b6=_0x540c5e[_0x193e4d(0x13e)][_0x193e4d(0x137)],_0x1ac1b9=_0x540c5e['params'][_0x193e4d(0x1b0)]['id'];setTimeout(()=>{const _0xee294a=_0x193e4d;this['_commandService'][_0xee294a(0x146)](_0x4ff82e['id'],{'unitId':_0x4dd3b6,'subUnitId':_0x1ac1b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2fcc17=_0x5a9157;this[_0x2fcc17(0x14b)]['next']('presenting');const _0xf2a2fc=new Map(),_0x44940d=this[_0x2fcc17(0x1af)]=new _0x5315c9();_0x44940d[_0x2fcc17(0x16e)](_0x3e6459(()=>{const _0x53be83=_0x2fcc17;_0xf2a2fc[_0x53be83(0x183)](_0x367a3b=>_0x367a3b[_0x53be83(0x127)]()),_0xf2a2fc[_0x53be83(0x16f)]();})),_0x44940d[_0x2fcc17(0x16e)](this[_0x2fcc17(0x13f)]['onCommandExecuted'](_0x5bea74=>{const _0x462bee=_0x2fcc17;var _0x52d583;if(_0x5bea74['type']!==_0x55dc24[_0x462bee(0x15c)]||!this['_liveShareService'][_0x462bee(0x168)](_0x5bea74['id']))return;const {id:_0xb9e8ff}=_0x5bea74;let _0x372092;_0xf2a2fc[_0x462bee(0x19e)](_0xb9e8ff)?_0x372092=_0xf2a2fc[_0x462bee(0x124)](_0xb9e8ff):(_0x372092=new _0x4797b2(),_0xf2a2fc['set'](_0xb9e8ff,_0x372092),_0x372092[_0x462bee(0x17e)](_0x1e0766((_0x52d583=this[_0x462bee(0x151)][_0x462bee(0x19b)](Ce))!=null?_0x52d583:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2d940a=>{const _0x2e3533=_0x462bee;this[_0x2e3533(0x1a4)][_0x2e3533(0x11b)]({'eventID':_0xb6d82[_0x2e3533(0x148)],'data':{'unitID':this[_0x2e3533(0x156)],'operations':{[_0x2d940a['id']]:{'id':_0x2d940a['id'],'params':JSON[_0x2e3533(0x1a1)](_0x2d940a[_0x2e3533(0x13e)])}}}},this[_0x2e3533(0x156)]);})),_0x372092['next'](_0x5bea74);})),this[_0x2fcc17(0x147)][_0x2fcc17(0x13c)](this['_unitID'])[_0x2fcc17(0x183)](_0x7bda83=>this[_0x2fcc17(0x1a4)]['send']({'eventID':_0xb6d82[_0x2fcc17(0x148)],'data':{'unitID':this[_0x2fcc17(0x156)],'operations':{[_0x7bda83['id']]:{'id':_0x7bda83['id'],'params':JSON[_0x2fcc17(0x1a1)](_0x7bda83[_0x2fcc17(0x13e)])}}}},this[_0x2fcc17(0x156)]));}[_0x5a9157(0x13a)](){const _0x2e424e=_0x5a9157;var _0x4d1b4f;this[_0x2e424e(0x14b)][_0x2e424e(0x15e)](_0x2e424e(0x15f)),(_0x4d1b4f=this[_0x2e424e(0x1af)])==null||_0x4d1b4f[_0x2e424e(0x15b)](),this['_commandDisposable']=null;}[_0x5a9157(0x163)](){const _0x2bf1fb=_0x5a9157;var _0x27743f;(_0x27743f=this[_0x2bf1fb(0x1af)])==null||_0x27743f[_0x2bf1fb(0x15b)](),this[_0x2bf1fb(0x14b)][_0x2bf1fb(0x15e)](_0x2bf1fb(0x164));}[_0x5a9157(0x11e)](){const _0x2f179d=_0x5a9157;var _0x292e3d;this[_0x2f179d(0x14b)][_0x2f179d(0x15e)](_0x2f179d(0x15f)),(_0x292e3d=this[_0x2f179d(0x1af)])==null||_0x292e3d[_0x2f179d(0x15b)](),this[_0x2f179d(0x1af)]=null;}['_stopFollowing'](){const _0x4d74f4=_0x5a9157;var _0x5a5b28;this[_0x4d74f4(0x14b)]['next']('not-following'),(_0x5a5b28=this['_commandDisposable'])==null||_0x5a5b28['dispose']();}[_0x5a9157(0x1a0)](_0x3d307d){const _0x2213ae=_0x5a9157;if([_0x2213ae(0x174),'not-following',_0x2213ae(0x17f)]['includes'](this[_0x2213ae(0x182)])||!_0x3d307d[_0x2213ae(0x169)]['presenter']||_0x3d307d['data']['presenter']===this[_0x2213ae(0x1a4)][_0x2213ae(0x1a7)]())return;this[_0x2213ae(0x182)]===_0x2213ae(0x15f)&&this['_startFollowing']();const _0x2e8e55=_0x3d307d[_0x2213ae(0x169)]['operations'];Object[_0x2213ae(0x128)](_0x2e8e55)['forEach'](_0x2fffe2=>{const _0x1e2da0=_0x2213ae;this[_0x1e2da0(0x13f)][_0x1e2da0(0x146)](_0x2fffe2['id'],_0x2fffe2[_0x1e2da0(0x13e)]?JSON['parse'](_0x2fffe2['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5b4b85=_0x5a9157;var _0x4085e0;this['_status$'][_0x5b4b85(0x15e)](_0x5b4b85(0x17f)),(_0x4085e0=this[_0x5b4b85(0x1af)])==null||_0x4085e0[_0x5b4b85(0x15b)]();}[_0x5a9157(0x144)](){const _0xc3ec29=_0x5a9157;this[_0xc3ec29(0x14b)][_0xc3ec29(0x15e)](_0xc3ec29(0x15f)),this[_0xc3ec29(0x1b1)]();}};N=Y([_(0x2,_0x2ccd3e),_(0x3,_0x5890f3(L)),_(0x4,_0x8f3e9)],N);function Le(){const _0x87951d=_0x5a9157,_0x164387=_0x14fb74(S),_0x527671=_0x14fb74(_0x2bf8ed),_0x462115=_0x25b804(()=>_0x527671[_0x87951d(0x1a8)](_0x118916['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5233cb,_0x38fdee]=_0x5ab416(null),[_0x2043e4,_0x267a6e]=_0x5ab416(c['IDLE']),_0x4d1cae=_0x3a8f3b(null);return _0x34456e(()=>(_0x462115&&_0x164387['getLiveShareCoordinator'](_0x462115['getUnitId']())[_0x87951d(0x15a)](_0x354ae1=>{const _0x5a6f76=_0x87951d;_0x38fdee(_0x354ae1),_0x4d1cae[_0x5a6f76(0x17b)]=_0x354ae1[_0x5a6f76(0x1b6)][_0x5a6f76(0x154)](_0x3caaac=>{_0x267a6e(_0x3caaac);});}),()=>{const _0x2c52bb=_0x87951d;var _0x77fa80;(_0x77fa80=_0x4d1cae[_0x2c52bb(0x17b)])==null||_0x77fa80[_0x2c52bb(0x185)](),_0x4d1cae['current']=null;}),[_0x462115,_0x164387]),_0x5233cb?_0xe9d27a(_0x1d5dcc,{'align':_0x87951d(0x115),'disabled':_0x2043e4===c['OFFLINE'],'className':_0x87951d(0x1aa),'overlay':_0xe9d27a(Re,{'status':_0x2043e4,'coordinator':_0x5233cb}),'children':_0xe9d27a(_0x87951d(0x13d),{'className':_0x26827b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2043e4===c[_0x87951d(0x150)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2043e4!==c['OFFLINE']}),'type':_0x87951d(0x13d),'children':_0xe9d27a(W,{'className':_0x87951d(0x122)})})}):null;}function Re(_0x25aabb){const _0xc61288=_0x5a9157,{status:_0xb36f22,coordinator:_0x4f0364}=_0x25aabb;switch(_0xb36f22){case c[_0xc61288(0x12a)]:return _0xe9d27a($e,{'coordinator':_0x4f0364});case c[_0xc61288(0x14a)]:return _0xe9d27a(xe,{'coordinator':_0x4f0364});case c[_0xc61288(0x178)]:return _0xe9d27a(Pe,{'coordinator':_0x4f0364});case c[_0xc61288(0x150)]:return _0xe9d27a(Te,{});case c[_0xc61288(0x195)]:return _0xe9d27a(Ae,{'coordinator':_0x4f0364});default:return null;}}function $e(_0x138a99){const _0x1fcc54=_0x5a9157,{coordinator:_0xe4e224}=_0x138a99;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1fcc54(0x197)}),_0xe9d27a(_0x43cbc8,{'onClick':()=>_0xe4e224[_0x1fcc54(0x193)](),'children':_0x1fcc54(0x138)})]});}function xe(_0xf8d35a){const _0x8632b9=_0x5a9157,{coordinator:_0x4e338a}=_0xf8d35a;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x8632b9(0x17a),'children':_0x8632b9(0x140)}),_0xe9d27a(_0x43cbc8,{'onClick':()=>_0x4e338a[_0x8632b9(0x18e)](),'children':_0x8632b9(0x177)})]});}function Pe(_0xca9462){const _0x14c1ab=_0x5a9157,{coordinator:_0x253fb9}=_0xca9462;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x14c1ab(0x17a),'children':_0x14c1ab(0x129)}),_0xe9d27a(_0x43cbc8,{'variant':_0x14c1ab(0x172),'onClick':()=>_0x253fb9[_0x14c1ab(0x119)](),'children':_0x14c1ab(0x126)})]});}function Ae(_0x1b67b1){const _0x14432f=_0x5a9157,{coordinator:_0x21cc66}=_0x1b67b1;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x14432f(0x17a),'children':_0x14432f(0x155)}),_0xe9d27a(_0x43cbc8,{'variant':_0x14432f(0x153),'onClick':()=>_0x21cc66[_0x14432f(0x170)](),'children':_0x14432f(0x134)})]});}function Te(){const _0x27306e=_0x5a9157;return _0xe9d27a(_0x21e76d,{'children':_0x27306e(0x123)});}var Fe=Object[_0x5a9157(0x162)],He=(_0x680c97,_0x572487,_0x3190e6,_0x778131)=>{for(var _0x5de778=_0x778131>0x1?void 0x0:_0x778131?Fe(_0x572487,_0x3190e6):_0x572487,_0x38b7e5=_0x680c97['length']-0x1,_0x45b85c;_0x38b7e5>=0x0;_0x38b7e5--)(_0x45b85c=_0x680c97[_0x38b7e5])&&(_0x5de778=_0x45b85c(_0x5de778)||_0x5de778);return _0x5de778;},A=(_0x1c08f4,_0x269771)=>(_0x11bdcd,_0x5f11f9)=>_0x269771(_0x11bdcd,_0x5f11f9,_0x1c08f4);let m=class extends _0xa28d62{constructor(_0x4e63bf,_0x33ce12){const _0x3f3c5b=_0x5a9157;super(),this[_0x3f3c5b(0x139)]=_0x4e63bf,this[_0x3f3c5b(0x1ab)]=_0x33ce12,this[_0x3f3c5b(0x1b7)]();}['_mountLiveShare'](){const _0x59c071=_0x5a9157;this[_0x59c071(0x192)](this[_0x59c071(0x1ab)][_0x59c071(0x1b2)](_0x3df1ce[_0x59c071(0x171)],()=>_0x360939(Le,this[_0x59c071(0x139)])));}};m=He([A(0x0,_0x5890f3(_0x2ac967)),A(0x1,_0x4b3e7b)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x58121e,_0xe4291d,_0x278131,_0x54e350)=>{const _0x52190f=_0x5a9157;for(var _0x5868df=_0x54e350>0x1?void 0x0:_0x54e350?Ue(_0xe4291d,_0x278131):_0xe4291d,_0x5c0c07=_0x58121e[_0x52190f(0x18d)]-0x1,_0x51bd8c;_0x5c0c07>=0x0;_0x5c0c07--)(_0x51bd8c=_0x58121e[_0x5c0c07])&&(_0x5868df=_0x51bd8c(_0x5868df)||_0x5868df);return _0x5868df;},je=(_0x5922ab,_0x1a4687)=>(_0x4deae9,_0x52beb5)=>_0x1a4687(_0x4deae9,_0x52beb5,_0x5922ab);let I=class extends _0xa28d62{constructor(_0x1e4d9c){const _0x5d3252=_0x5a9157;super(),this[_0x5d3252(0x147)]=_0x1e4d9c,this[_0x5d3252(0x12f)]();}['_init'](){const _0x2d1dbb=_0x5a9157;[_0x1f21c4['id'],_0x447fe5['id'],_0x4ff82e['id']][_0x2d1dbb(0x183)](_0x558ce7=>{const _0xaaf13e=_0x2d1dbb;this[_0xaaf13e(0x192)](this[_0xaaf13e(0x147)]['registerSharedOperation'](_0x558ce7));});}};I=Ve([je(0x0,_0x5890f3(L))],I);var Me=Object[_0x5a9157(0x136)],ke=Object[_0x5a9157(0x162)],Ge=(_0x2538d1,_0x252d75,_0xd3309f)=>_0x252d75 in _0x2538d1?Me(_0x2538d1,_0x252d75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd3309f}):_0x2538d1[_0x252d75]=_0xd3309f,We=(_0x4752a5,_0x520908,_0x2c7a48,_0x1ce47c)=>{const _0xdf8090=_0x5a9157;for(var _0x4daee4=_0x1ce47c>0x1?void 0x0:_0x1ce47c?ke(_0x520908,_0x2c7a48):_0x520908,_0x2172ca=_0x4752a5[_0xdf8090(0x18d)]-0x1,_0x1376a9;_0x2172ca>=0x0;_0x2172ca--)(_0x1376a9=_0x4752a5[_0x2172ca])&&(_0x4daee4=_0x1376a9(_0x4daee4)||_0x4daee4);return _0x4daee4;},F=(_0x44eeb0,_0xe537e3)=>(_0x5c8c85,_0x1585d5)=>_0xe537e3(_0x5c8c85,_0x1585d5,_0x44eeb0),B=(_0x5db21f,_0x4e46c8,_0x5e04e6)=>Ge(_0x5db21f,typeof _0x4e46c8!=_0x5a9157(0x194)?_0x4e46c8+'':_0x4e46c8,_0x5e04e6);const Ye=_0x5a9157(0x17d);let b=class extends _0x446406{constructor(_0x25cfd7=T,_0x5a0473,_0x2754a2){const _0xb2ab96=_0x5a9157;super(),this['_config']=_0x25cfd7,this[_0xb2ab96(0x139)]=_0x5a0473,this[_0xb2ab96(0x151)]=_0x2754a2;const {..._0x78e952}=_0x230b34({},T,this[_0xb2ab96(0x14e)]);this[_0xb2ab96(0x151)][_0xb2ab96(0x18c)](ye,_0x78e952);}['onStarting'](){const _0x4e70cb=_0x5a9157;_0x3ca90e(this[_0x4e70cb(0x139)],_0x1d22c6([[L],[S],[I],[m]],this[_0x4e70cb(0x14e)][_0x4e70cb(0x116)])),_0xa89abb(this[_0x4e70cb(0x139)],[[I]]);}[_0x5a9157(0x198)](){const _0x4ce401=_0x5a9157;_0xa89abb(this[_0x4ce401(0x139)],[[m]]);}};B(b,'type',_0x118916[_0x5a9157(0x1a5)]),B(b,_0x5a9157(0x1ad),Ye),b=We([_0x2c9f12(_0x270228),F(0x1,_0x5890f3(_0x2ac967)),F(0x2,_0x2ccd3e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0x258e06=_0x4c24;(function(_0x56ccd9,_0x4350db){const _0x25e6aa=_0x4c24,_0x271de4=_0x56ccd9();while(!![]){try{const _0x9219a1=-parseInt(_0x25e6aa(0x17c))/0x1+-parseInt(_0x25e6aa(0x15e))/0x2*(-parseInt(_0x25e6aa(0x1af))/0x3)+parseInt(_0x25e6aa(0x1a3))/0x4+parseInt(_0x25e6aa(0x1a7))/0x5+-parseInt(_0x25e6aa(0x11b))/0x6*(-parseInt(_0x25e6aa(0x1a6))/0x7)+parseInt(_0x25e6aa(0x122))/0x8*(-parseInt(_0x25e6aa(0x1a8))/0x9)+parseInt(_0x25e6aa(0x16e))/0xa;if(_0x9219a1===_0x4350db)break;else _0x271de4['push'](_0x271de4['shift']());}catch(_0x4cc069){_0x271de4['push'](_0x271de4['shift']());}}}(_0x3818,0xd6fbe));var J=Object[_0x258e06(0x1bf)],K=(_0xc91e88,_0x3e4973,_0x18c7aa)=>_0x3e4973 in _0xc91e88?J(_0xc91e88,_0x3e4973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c7aa}):_0xc91e88[_0x3e4973]=_0x18c7aa,u=(_0x3e5c39,_0x14aad4,_0x5269c2)=>K(_0x3e5c39,typeof _0x14aad4!=_0x258e06(0x12d)?_0x14aad4+'':_0x14aad4,_0x5269c2);import{Disposable as _0x324efe,toDisposable as _0x3a3481,IUniverInstanceService as _0x4da99a,Inject as _0x78ae44,Injector as _0x2d4c16,IConfigService as _0x5aa847,ICommandService as _0x4f1d1d,RxDisposable as _0x391391,UniverInstanceType as _0x35559f,DisposableCollection as _0x4d8c75,CommandType as _0x14d400,DependentOn as _0x42a005,Plugin as _0x3ffe0c,merge as _0x1fe50c,registerDependencies as _0x2fbe26,mergeOverrideWithDependencies as _0x23ef20,touchDependencies as _0x3e4dcd}from'@univerjs/core';import{useDependency as _0x37223d,useObservable as _0x5b2abe,IUIPartsService as _0x156e10,BuiltInUIPart as _0x28e9dd,connectInjector as _0x1af1ba}from'@univerjs/ui';import{jsx as _0x4ed4a5,jsxs as _0x3a3244,Fragment as _0x18389c}from'react/jsx-runtime';import{Dropdown as _0x35fe18,clsx as _0x5580d9,Button as _0x476c51}from'@univerjs/design';import{useRef as _0x2baf0a,createElement as _0x21c1d5,forwardRef as _0x4ad21f,useState as _0x4104d8,useEffect as _0x3cf0aa}from'react';import{CollaborationEvent as _0x479a15,parseProtocolChangeset as _0x278421}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x359579,SessionStatus as _0x256689,UniverCollaborationClientPlugin as _0x285791}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34e958,SetWorksheetActiveOperation as _0x2b85d9}from'@univerjs/sheets';import{BehaviorSubject as _0x388f3e,Subject as _0x2c03bf}from'rxjs';import{takeUntil as _0x30a49e,throttleTime as _0x2b3990}from'rxjs/operators';import{SetZoomRatioOperation as _0x18b166,SetScrollOperation as _0x3e75bb}from'@univerjs/sheets-ui';function k({ref:_0x194218,..._0xbab5ab}){const _0x2b4f5e=_0x258e06,{icon:_0x3549d4,id:_0x5f28d1,className:_0x28db96,extend:_0x14eea9,..._0x2f71b9}=_0xbab5ab,_0x5a69ad=(_0x2b4f5e(0x189)+_0x5f28d1+'\x20'+(_0x28db96||''))['trim'](),_0x269383=_0x2baf0a('_'+Oe());return G(_0x3549d4,''+_0x5f28d1,{'defIds':_0x3549d4[_0x2b4f5e(0x19c)],'idSuffix':_0x269383[_0x2b4f5e(0x11c)]},{'ref':_0x194218,'className':_0x5a69ad,..._0x2f71b9},_0x14eea9);}function G(_0x118c4b,_0x2ff79e,_0x89e27,_0x4070fb,_0x24b5b0){const _0x134d41=_0x258e06;return _0x21c1d5(_0x118c4b['tag'],{'key':_0x2ff79e,...be(_0x118c4b,_0x89e27,_0x24b5b0),..._0x4070fb},(Ee(_0x118c4b,_0x89e27)[_0x134d41(0x14e)]||[])[_0x134d41(0x179)]((_0x4b3224,_0x219f4c)=>G(_0x4b3224,_0x2ff79e+'-'+_0x118c4b[_0x134d41(0x131)]+'-'+_0x219f4c,_0x89e27,void 0x0,_0x24b5b0)));}function be(_0x35238c,_0x6d2cd5,_0x116d26){const _0x176feb=_0x258e06,_0xa91998={..._0x35238c['attrs']};_0x116d26!=null&&_0x116d26['colorChannel1']&&_0xa91998[_0x176feb(0x18e)]===_0x176feb(0x18d)&&(_0xa91998[_0x176feb(0x18e)]=_0x116d26[_0x176feb(0x18d)]),_0x35238c['tag']==='mask'&&_0xa91998['id']&&(_0xa91998['id']=_0xa91998['id']+_0x6d2cd5[_0x176feb(0x126)]),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x252b4c,_0x49c58a])=>{const _0x5e4949=_0x176feb;_0x252b4c==='mask'&&typeof _0x49c58a==_0x5e4949(0x12c)&&(_0xa91998[_0x252b4c]=_0x49c58a['replace'](/url\(#(.*)\)/,_0x5e4949(0x1ae)+_0x6d2cd5[_0x5e4949(0x126)]+')'));});const {defIds:_0x1a4097}=_0x6d2cd5;return!_0x1a4097||_0x1a4097['length']===0x0||(_0x35238c['tag']==='use'&&_0xa91998[_0x176feb(0x17d)]&&(_0xa91998['xlink:href']=_0xa91998[_0x176feb(0x17d)]+_0x6d2cd5['idSuffix']),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x31f0aa,_0x418dc5])=>{const _0x4dd701=_0x176feb;typeof _0x418dc5=='string'&&(_0xa91998[_0x31f0aa]=_0x418dc5[_0x4dd701(0x183)](/url\(#(.*)\)/,_0x4dd701(0x1ae)+_0x6d2cd5['idSuffix']+')'));})),_0xa91998;}function Ee(_0x1913ff,_0x45d6ef){const _0xad8579=_0x258e06;var _0x47afbb;const {defIds:_0x40a61e}=_0x45d6ef;return!_0x40a61e||_0x40a61e['length']===0x0?_0x1913ff:_0x1913ff['tag']===_0xad8579(0x168)&&((_0x47afbb=_0x1913ff[_0xad8579(0x14e)])!=null&&_0x47afbb[_0xad8579(0x125)])?{..._0x1913ff,'children':_0x1913ff[_0xad8579(0x14e)]['map'](_0x1948a9=>typeof _0x1948a9[_0xad8579(0x147)]['id']=='string'&&_0x40a61e&&_0x40a61e[_0xad8579(0x1b4)](_0x1948a9[_0xad8579(0x147)]['id'])?{..._0x1948a9,'attrs':{..._0x1948a9['attrs'],'id':_0x1948a9[_0xad8579(0x147)]['id']+_0x45d6ef[_0xad8579(0x126)]}}:_0x1948a9)}:_0x1913ff;}function Oe(){const _0x3c6430=_0x258e06;return Math[_0x3c6430(0x1bd)]()[_0x3c6430(0x146)](0x24)[_0x3c6430(0x1be)](0x2,0x8);}k[_0x258e06(0x11a)]=_0x258e06(0x16b);const we={'tag':_0x258e06(0x1b5),'attrs':{'xmlns':_0x258e06(0x1ba),'fill':_0x258e06(0x17f),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x258e06(0x12f)},'children':[{'tag':'path','attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x193)}},{'tag':_0x258e06(0x156),'attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x14f),'fillRule':_0x258e06(0x1b8),'clipRule':_0x258e06(0x1b8)}}]},W=_0x4ad21f(function(_0x457ca2,_0x3d420c){const _0x293334=_0x258e06;return _0x21c1d5(k,Object[_0x293334(0x188)]({},_0x457ca2,{'id':_0x293334(0x1b2),'ref':_0x3d420c,'icon':we}));});W[_0x258e06(0x11a)]=_0x258e06(0x15f);class L extends _0x324efe{constructor(){const _0x36f6aa=_0x258e06;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x36f6aa(0x178),new Set());}['registerSharedOperation'](_0x506fde){const _0x1271ad=_0x258e06;return this[_0x1271ad(0x163)][_0x1271ad(0x182)](_0x506fde),_0x3a3481(()=>this[_0x1271ad(0x163)][_0x1271ad(0x15a)](_0x506fde));}['registerInitialStateReporter'](_0x250f62){const _0x27e833=_0x258e06;return this[_0x27e833(0x178)]['add'](_0x250f62),_0x3a3481(()=>this[_0x27e833(0x178)][_0x27e833(0x15a)](_0x250f62));}[_0x258e06(0x162)](_0x328b9e){const _0x4bbde7=_0x258e06;return this[_0x4bbde7(0x163)][_0x4bbde7(0x185)](_0x328b9e);}['getInitialStates'](_0x378ecb){const _0x8da5ff=_0x258e06;return Array[_0x8da5ff(0x148)](this['_reporters'])[_0x8da5ff(0x179)](_0x2dedc6=>_0x2dedc6(_0x378ecb));}}var Ne=Object[_0x258e06(0x13c)],Y=(_0x11b179,_0x235a01,_0x579745,_0x28082c)=>{for(var _0x46d98a=_0x28082c>0x1?void 0x0:_0x28082c?Ne(_0x235a01,_0x579745):_0x235a01,_0x304e2e=_0x11b179['length']-0x1,_0x722cfc;_0x304e2e>=0x0;_0x304e2e--)(_0x722cfc=_0x11b179[_0x304e2e])&&(_0x46d98a=_0x722cfc(_0x46d98a)||_0x46d98a);return _0x46d98a;},_=(_0x30ec16,_0x151809)=>(_0x35a5d3,_0x3da833)=>_0x151809(_0x35a5d3,_0x3da833,_0x30ec16);let S=class extends _0x391391{constructor(_0x591373,_0x1dd949,_0x53f9ae){const _0x305932=_0x258e06;super(),u(this,_0x305932(0x167),new Map()),(this[_0x305932(0x1a1)]=_0x591373,this['_injector']=_0x1dd949,this['_collabSessionService']=_0x53f9ae,this[_0x305932(0x13f)]());}async['getLiveShareCoordinator'](_0x3fdbc6){const _0x4eae70=_0x258e06;return this[_0x4eae70(0x167)]['has'](_0x3fdbc6)||await this['_startLiveShareCoordinator'](_0x3fdbc6),this['_entities'][_0x4eae70(0x18b)](_0x3fdbc6);}[_0x258e06(0x190)](_0x39d865){const _0x45f4cd=_0x258e06;var _0x389a92;return(_0x389a92=this[_0x45f4cd(0x167)][_0x45f4cd(0x18b)](_0x39d865))!=null?_0x389a92:null;}[_0x258e06(0x13f)](){const _0x3e59d2=_0x258e06;this[_0x3e59d2(0x1a1)][_0x3e59d2(0x11f)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](async _0x139e7f=>{const _0x3fc23c=_0x3e59d2,_0x5db3c9=_0x139e7f[_0x3fc23c(0x181)]();this[_0x3fc23c(0x167)][_0x3fc23c(0x185)](_0x5db3c9)||this['_startLiveShareCoordinator'](_0x5db3c9);}),this[_0x3e59d2(0x1a1)][_0x3e59d2(0x1a4)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](_0x2b0194=>{const _0x35ab1f=_0x3e59d2,_0x1aa086=_0x2b0194[_0x35ab1f(0x181)](),_0xe01af9=this[_0x35ab1f(0x167)][_0x35ab1f(0x18b)](_0x1aa086);_0xe01af9==null||_0xe01af9[_0x35ab1f(0x138)]();});}async['_startLiveShareCoordinator'](_0x4de79d){const _0x4c2287=_0x258e06,_0x20d921=await this[_0x4c2287(0x164)][_0x4c2287(0x14c)](_0x4de79d),_0x2885fe=this[_0x4c2287(0x19a)][_0x4c2287(0x195)](N,_0x4de79d,_0x20d921);return _0x2885fe['init'](),this[_0x4c2287(0x167)][_0x4c2287(0x11d)](_0x4de79d,_0x2885fe),_0x2885fe;}};S=Y([_(0x0,_0x4da99a),_(0x1,_0x78ae44(_0x2d4c16)),_(0x2,_0x78ae44(_0x359579))],S);var c=(_0x247749=>(_0x247749['OFFLINE']='offline',_0x247749[_0x258e06(0x118)]=_0x258e06(0x14b),_0x247749[_0x258e06(0x17a)]=_0x258e06(0x1a5),_0x247749[_0x258e06(0x1c1)]='not-following',_0x247749[_0x258e06(0x129)]='presenting',_0x247749))(c||{});function _0x3818(){const _0x27a5df=['_univerInstanceService','default','2823368CAqyld','getTypeOfUnitDisposed$','following','618422zHIsnP','8352335wJFcxz','324aYsDYR','dispose$','data','_stopPresenting','_handleOperation','getLiveShareCoordinator','url(#$1','283818lOtlXK','sheet','_fetchOperations','live-share-icon','registerSharedOperation','includes','svg','_configService','stringify','evenodd','text','http://www.w3.org/2000/svg','unitId','onStarting','random','substring','defineProperty','event$','NOT_FOLLOWING','_stopFollowing','pluginName','IDLE','NEW_CHANGESETS','displayName','30RwFeiS','current','set','init','getTypeOfUnitAdded$','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','234696RwjcNt','Start','_handleNewHost','length','idSuffix','_handleOnline','_liveShareService','PRESENTING','Present\x20this\x20document','_handleNewChangeSets','string','symbol','tryStartPresenting','1em','operations','tag','_commandDisposable','_status','mutations','entries','stopFollowing','parse','dispose','univer-size-4','sessionStatus$','next','getOwnPropertyDescriptor','_beIdle','_presenter','_init','_uiPartsService','You\x27are\x20offline.','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','LIVESHARE_REQUEST_HOST','toString','attrs','from','_config','reverse','idle','requireSession','presenting','children','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_status$','stopPresenting','OFFLINE','Stop\x20following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','path','LIVESHARE_TERMINATE','_unitID','currentColor','delete','You\x27re\x20presenting\x20the\x20document','_startFollowing','send','14oRwXzb','LiveShareIcon','_commandService','getMemberID','shouldShareOperation','_sharedOperations','_collabSessionService','offline','status$','_entities','defs','override','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','You\x27re\x20following\x20the\x20presenter','_handleTerminate','1203280uVNcPa','setConfig','onCommandExecuted','unsubscribe','UNIVER_UNKNOWN','LIVESHARE_OPERATION','subscribe','getInitialStates','_mountLiveShare','registerComponent','_reporters','map','FOLLOWING','button','1663903WpOAKe','xlink:href','find','none','UNIVER_LIVE_SHARE_PLUGIN','getUnitId','add','replace','not-following','has','getConfig','presenter','assign','univerjs-icon\x20univerjs-icon-','complete','get','params','colorChannel1','fill','startFollowing','getLiveShareCoordinatorSync','disposeWithMe','Start\x20following','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','values','createInstance','div','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','_handleOffline','_injector','then','defIds','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','pipe','_startPresenting'];_0x3818=function(){return _0x27a5df;};return _0x3818();}function _0x4c24(_0xded936,_0x3e6056){_0xded936=_0xded936-0x116;const _0x381899=_0x3818();let _0x4c2442=_0x381899[_0xded936];return _0x4c2442;}const Ce=_0x258e06(0x16a),De=0xc8;let N=class extends _0x391391{constructor(_0x19d682,_0x4f8d4c,_0x962a59,_0x24d6a4,_0x4806f7){const _0x480b38=_0x258e06;super(),u(this,'_status$',new _0x388f3e(_0x480b38(0x14b))),u(this,_0x480b38(0x166),this[_0x480b38(0x150)]['asObservable']()),u(this,_0x480b38(0x13f),!0x1),u(this,_0x480b38(0x132),null),u(this,_0x480b38(0x13e),null),(this[_0x480b38(0x158)]=_0x19d682,this[_0x480b38(0x19e)]=_0x4f8d4c,this[_0x480b38(0x1b6)]=_0x962a59,this['_liveShareService']=_0x24d6a4,this[_0x480b38(0x160)]=_0x4806f7);}get['_status'](){const _0x302f2a=_0x258e06;return this[_0x302f2a(0x150)][_0x302f2a(0x144)]();}[_0x258e06(0x138)](){const _0x574c3c=_0x258e06;var _0x4d31e9;(_0x4d31e9=this[_0x574c3c(0x132)])==null||_0x4d31e9[_0x574c3c(0x138)](),this['_status$']['next'](_0x574c3c(0x14b)),this[_0x574c3c(0x150)][_0x574c3c(0x18a)]();}['getStatus'](){const _0x25df1b=_0x258e06;return this[_0x25df1b(0x133)];}[_0x258e06(0x11e)](){const _0x3cb334=_0x258e06;this[_0x3cb334(0x13f)]||(this[_0x3cb334(0x13f)]=!0x0,this[_0x3cb334(0x19e)][_0x3cb334(0x13a)][_0x3cb334(0x19f)](_0x30a49e(this[_0x3cb334(0x1a9)]))['subscribe'](_0x966ab2=>{const _0x2d9ac5=_0x3cb334;switch(_0x966ab2){case _0x256689['OFFLINE']:this[_0x2d9ac5(0x199)]();break;case _0x256689['ONLINE']:this[_0x2d9ac5(0x127)]();break;}}),this[_0x3cb334(0x19e)][_0x3cb334(0x1c0)][_0x3cb334(0x19f)](_0x30a49e(this['dispose$']))['subscribe'](_0x1aac34=>{const _0x561cbf=_0x3cb334,{eventID:_0x30b0f9}=_0x1aac34;switch(_0x30b0f9){case _0x479a15['LIVESHARE_NEW_HOST']:this[_0x561cbf(0x124)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x173)]:this[_0x561cbf(0x1ac)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x157)]:this[_0x561cbf(0x16d)]();break;case _0x479a15[_0x561cbf(0x119)]:this[_0x561cbf(0x12b)](_0x1aac34);break;}}));}[_0x258e06(0x12e)](){const _0x590cf2=_0x258e06;this[_0x590cf2(0x19e)][_0x590cf2(0x15d)]({'eventID':_0x479a15[_0x590cf2(0x145)],'data':{'unitID':this[_0x590cf2(0x158)],'userID':this[_0x590cf2(0x19e)][_0x590cf2(0x161)]()}},this[_0x590cf2(0x158)]);}[_0x258e06(0x151)](){const _0x45d9a0=_0x258e06;this[_0x45d9a0(0x133)]===_0x45d9a0(0x14d)&&(this[_0x45d9a0(0x150)][_0x45d9a0(0x13b)](_0x45d9a0(0x14b)),this[_0x45d9a0(0x19e)][_0x45d9a0(0x15d)]({'eventID':_0x479a15['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x45d9a0(0x158)]}},this[_0x45d9a0(0x158)]));}[_0x258e06(0x18f)](){const _0x2c2b92=_0x258e06;this[_0x2c2b92(0x133)]===_0x2c2b92(0x184)&&(this['_status$'][_0x2c2b92(0x13b)](_0x2c2b92(0x1a5)),this['_startFollowing']());}['stopFollowing'](){const _0x42a137=_0x258e06;this[_0x42a137(0x133)]===_0x42a137(0x1a5)&&this[_0x42a137(0x116)]();}[_0x258e06(0x124)](_0x44c2d8){const _0x3e768a=_0x258e06,{presenter:_0x48113b}=_0x44c2d8[_0x3e768a(0x1aa)],_0x263f97=this[_0x3e768a(0x19e)][_0x3e768a(0x161)]();this['_presenter']=_0x48113b,_0x48113b===_0x263f97?(this[_0x3e768a(0x116)](),this[_0x3e768a(0x1a0)]()):this[_0x3e768a(0x133)]!==_0x3e768a(0x184)&&(this[_0x3e768a(0x1ab)](),this['_startFollowing']());}['_fetchOperations'](){const _0x33dca4=_0x258e06,_0x53b06b={'eventID':_0x479a15[_0x33dca4(0x121)]};this[_0x33dca4(0x19e)][_0x33dca4(0x15d)](_0x53b06b,this[_0x33dca4(0x158)]);}['_handleTerminate'](){const _0x247c50=_0x258e06;this[_0x247c50(0x13e)]=null,this[_0x247c50(0x133)]!==_0x247c50(0x14d)&&this[_0x247c50(0x13d)]();}['_handleNewChangeSets'](_0x5e6e11){const _0x5e359c=_0x258e06;if(this[_0x5e359c(0x133)]===_0x5e359c(0x1a5)&&this[_0x5e359c(0x13e)]===_0x5e6e11['data']['memberID']){const _0x1eb865=_0x278421(_0x5e6e11['data'])[_0x5e359c(0x134)][_0x5e359c(0x14a)]()[_0x5e359c(0x17e)](_0x34a45a=>_0x34a45a['id']===_0x34e958['id']);if(_0x1eb865){const _0xf90fc=_0x1eb865[_0x5e359c(0x18c)][_0x5e359c(0x1bb)],_0x2dc432=_0x1eb865['params'][_0x5e359c(0x1b0)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2b85d9['id'],{'unitId':_0xf90fc,'subUnitId':_0x2dc432},{'fromCollab':!0x0});});}}}[_0x258e06(0x1a0)](){const _0x21fe20=_0x258e06;this[_0x21fe20(0x150)][_0x21fe20(0x13b)](_0x21fe20(0x14d));const _0x1c6c0e=new Map(),_0x3d4be3=this[_0x21fe20(0x132)]=new _0x4d8c75();_0x3d4be3[_0x21fe20(0x182)](_0x3a3481(()=>{const _0x17fac7=_0x21fe20;_0x1c6c0e[_0x17fac7(0x155)](_0x24693d=>_0x24693d[_0x17fac7(0x18a)]()),_0x1c6c0e['clear']();})),_0x3d4be3[_0x21fe20(0x182)](this[_0x21fe20(0x160)][_0x21fe20(0x170)](_0x58b1f2=>{const _0xfe3f6d=_0x21fe20;var _0xc3c074;if(_0x58b1f2[_0xfe3f6d(0x198)]!==_0x14d400['OPERATION']||!this['_liveShareService'][_0xfe3f6d(0x162)](_0x58b1f2['id']))return;const {id:_0x7517de}=_0x58b1f2;let _0x405b5f;_0x1c6c0e[_0xfe3f6d(0x185)](_0x7517de)?_0x405b5f=_0x1c6c0e[_0xfe3f6d(0x18b)](_0x7517de):(_0x405b5f=new _0x2c03bf(),_0x1c6c0e[_0xfe3f6d(0x11d)](_0x7517de,_0x405b5f),_0x405b5f[_0xfe3f6d(0x19f)](_0x2b3990((_0xc3c074=this['_configService'][_0xfe3f6d(0x186)](Ce))!=null?_0xc3c074:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfe3f6d(0x174)](_0x3835e6=>{const _0x1b0c84=_0xfe3f6d;this['_collabSession'][_0x1b0c84(0x15d)]({'eventID':_0x479a15[_0x1b0c84(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x3835e6['id']]:{'id':_0x3835e6['id'],'params':JSON['stringify'](_0x3835e6['params'])}}}},this['_unitID']);})),_0x405b5f[_0xfe3f6d(0x13b)](_0x58b1f2);})),this[_0x21fe20(0x128)][_0x21fe20(0x175)](this[_0x21fe20(0x158)])[_0x21fe20(0x155)](_0x4ec61e=>this[_0x21fe20(0x19e)][_0x21fe20(0x15d)]({'eventID':_0x479a15[_0x21fe20(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ec61e['id']]:{'id':_0x4ec61e['id'],'params':JSON[_0x21fe20(0x1b7)](_0x4ec61e['params'])}}}},this[_0x21fe20(0x158)]));}[_0x258e06(0x1ab)](){const _0x1ab4f2=_0x258e06;var _0xc8df19;this[_0x1ab4f2(0x150)][_0x1ab4f2(0x13b)](_0x1ab4f2(0x14b)),(_0xc8df19=this['_commandDisposable'])==null||_0xc8df19[_0x1ab4f2(0x138)](),this[_0x1ab4f2(0x132)]=null;}[_0x258e06(0x15c)](){const _0x1bdb8e=_0x258e06;var _0x11b3db;(_0x11b3db=this[_0x1bdb8e(0x132)])==null||_0x11b3db[_0x1bdb8e(0x138)](),this[_0x1bdb8e(0x150)]['next'](_0x1bdb8e(0x1a5));}[_0x258e06(0x13d)](){const _0x393895=_0x258e06;var _0x186282;this[_0x393895(0x150)][_0x393895(0x13b)]('idle'),(_0x186282=this[_0x393895(0x132)])==null||_0x186282[_0x393895(0x138)](),this['_commandDisposable']=null;}[_0x258e06(0x116)](){const _0x1e43df=_0x258e06;var _0x53dd80;this[_0x1e43df(0x150)][_0x1e43df(0x13b)](_0x1e43df(0x184)),(_0x53dd80=this[_0x1e43df(0x132)])==null||_0x53dd80[_0x1e43df(0x138)]();}[_0x258e06(0x1ac)](_0x38d883){const _0x17aba9=_0x258e06;if([_0x17aba9(0x14d),_0x17aba9(0x184),_0x17aba9(0x165)][_0x17aba9(0x1b4)](this[_0x17aba9(0x133)])||!_0x38d883['data'][_0x17aba9(0x187)]||_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x187)]===this['_collabSession'][_0x17aba9(0x161)]())return;this[_0x17aba9(0x133)]===_0x17aba9(0x14b)&&this[_0x17aba9(0x15c)]();const _0x4a9ba6=_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x130)];Object[_0x17aba9(0x194)](_0x4a9ba6)['forEach'](_0x3010cb=>{const _0xa39adf=_0x17aba9;this['_commandService']['executeCommand'](_0x3010cb['id'],_0x3010cb[_0xa39adf(0x18c)]?JSON[_0xa39adf(0x137)](_0x3010cb[_0xa39adf(0x18c)]):null,{'fromCollab':!0x0});});}[_0x258e06(0x199)](){const _0x5840c2=_0x258e06;var _0x3f9aa2;this[_0x5840c2(0x150)][_0x5840c2(0x13b)]('offline'),(_0x3f9aa2=this['_commandDisposable'])==null||_0x3f9aa2[_0x5840c2(0x138)]();}[_0x258e06(0x127)](){const _0x144381=_0x258e06;this[_0x144381(0x150)][_0x144381(0x13b)](_0x144381(0x14b)),this[_0x144381(0x1b1)]();}};N=Y([_(0x2,_0x5aa847),_(0x3,_0x78ae44(L)),_(0x4,_0x4f1d1d)],N);function Le(){const _0x244db9=_0x258e06,_0x4dbb9b=_0x37223d(S),_0x4dbb9e=_0x37223d(_0x4da99a),_0x2c20dc=_0x5b2abe(()=>_0x4dbb9e['getCurrentTypeOfUnit$'](_0x35559f[_0x244db9(0x120)]),void 0x0,!0x1,[]),[_0x38a103,_0x1e71d1]=_0x4104d8(null),[_0x568087,_0x59bcb3]=_0x4104d8(c[_0x244db9(0x118)]),_0x1ed7e9=_0x2baf0a(null);return _0x3cf0aa(()=>(_0x2c20dc&&_0x4dbb9b[_0x244db9(0x1ad)](_0x2c20dc['getUnitId']())[_0x244db9(0x19b)](_0x86b729=>{const _0x26b7a1=_0x244db9;_0x1e71d1(_0x86b729),_0x1ed7e9[_0x26b7a1(0x11c)]=_0x86b729['status$'][_0x26b7a1(0x174)](_0x424f76=>{_0x59bcb3(_0x424f76);});}),()=>{const _0x54e7dd=_0x244db9;var _0xdf335b;(_0xdf335b=_0x1ed7e9[_0x54e7dd(0x11c)])==null||_0xdf335b[_0x54e7dd(0x171)](),_0x1ed7e9[_0x54e7dd(0x11c)]=null;}),[_0x2c20dc,_0x4dbb9b]),_0x38a103?_0x4ed4a5(_0x35fe18,{'align':'end','disabled':_0x568087===c[_0x244db9(0x152)],'className':_0x244db9(0x197),'overlay':_0x4ed4a5(Re,{'status':_0x568087,'coordinator':_0x38a103}),'children':_0x4ed4a5(_0x244db9(0x17b),{'className':_0x5580d9(_0x244db9(0x154),{'univer-cursor-not-allowed':_0x568087===c[_0x244db9(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568087!==c[_0x244db9(0x152)]}),'type':_0x244db9(0x17b),'children':_0x4ed4a5(W,{'className':_0x244db9(0x139)})})}):null;}function Re(_0x3cbef7){const _0x5fccac=_0x258e06,{status:_0x5a50f1,coordinator:_0x155c72}=_0x3cbef7;switch(_0x5a50f1){case c[_0x5fccac(0x118)]:return _0x4ed4a5($e,{'coordinator':_0x155c72});case c[_0x5fccac(0x17a)]:return _0x4ed4a5(xe,{'coordinator':_0x155c72});case c[_0x5fccac(0x1c1)]:return _0x4ed4a5(Pe,{'coordinator':_0x155c72});case c['OFFLINE']:return _0x4ed4a5(Te,{});case c[_0x5fccac(0x129)]:return _0x4ed4a5(Ae,{'coordinator':_0x155c72});default:return null;}}function $e(_0x191a72){const _0x3a0e02=_0x258e06,{coordinator:_0x4870cf}=_0x191a72;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x3a0e02(0x143),'children':_0x3a0e02(0x12a)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x4870cf[_0x3a0e02(0x12e)](),'children':_0x3a0e02(0x123)})]});}function xe(_0x1163a7){const _0x2fbea5=_0x258e06,{coordinator:_0x54337d}=_0x1163a7;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x2fbea5(0x196),{'className':_0x2fbea5(0x143),'children':_0x2fbea5(0x16c)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x54337d[_0x2fbea5(0x136)](),'children':_0x2fbea5(0x153)})]});}function Pe(_0x5f3b86){const _0x424596=_0x258e06,{coordinator:_0x2d277c}=_0x5f3b86;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x424596(0x143),'children':_0x424596(0x19d)}),_0x4ed4a5(_0x476c51,{'variant':_0x424596(0x1b9),'onClick':()=>_0x2d277c[_0x424596(0x18f)](),'children':_0x424596(0x192)})]});}function Ae(_0x2c9171){const _0x1c77c3=_0x258e06,{coordinator:_0x172f3a}=_0x2c9171;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x1c77c3(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c77c3(0x15b)}),_0x4ed4a5(_0x476c51,{'variant':_0x1c77c3(0x1a2),'onClick':()=>_0x172f3a[_0x1c77c3(0x151)](),'children':_0x1c77c3(0x142)})]});}function Te(){const _0x32c34a=_0x258e06;return _0x4ed4a5(_0x18389c,{'children':_0x32c34a(0x141)});}var Fe=Object[_0x258e06(0x13c)],He=(_0x4bb4e6,_0x1e6350,_0x49bdb0,_0x5cd775)=>{for(var _0x4a7a59=_0x5cd775>0x1?void 0x0:_0x5cd775?Fe(_0x1e6350,_0x49bdb0):_0x1e6350,_0x549473=_0x4bb4e6['length']-0x1,_0x386e74;_0x549473>=0x0;_0x549473--)(_0x386e74=_0x4bb4e6[_0x549473])&&(_0x4a7a59=_0x386e74(_0x4a7a59)||_0x4a7a59);return _0x4a7a59;},A=(_0x46c54f,_0x3f7928)=>(_0x39a916,_0x44a92f)=>_0x3f7928(_0x39a916,_0x44a92f,_0x46c54f);let m=class extends _0x324efe{constructor(_0x4337ee,_0x25cfc8){const _0x14c837=_0x258e06;super(),this[_0x14c837(0x19a)]=_0x4337ee,this['_uiPartsService']=_0x25cfc8,this[_0x14c837(0x176)]();}['_mountLiveShare'](){const _0x4e1fed=_0x258e06;this[_0x4e1fed(0x191)](this[_0x4e1fed(0x140)][_0x4e1fed(0x177)](_0x28e9dd['HEADER_MENU'],()=>_0x1af1ba(Le,this[_0x4e1fed(0x19a)])));}};m=He([A(0x0,_0x78ae44(_0x2d4c16)),A(0x1,_0x156e10)],m);const ye='live-share.config',T={};var Ue=Object[_0x258e06(0x13c)],Ve=(_0x4eb4d5,_0x20d7b4,_0x1e97d4,_0x519589)=>{const _0x25aab6=_0x258e06;for(var _0xb77ca4=_0x519589>0x1?void 0x0:_0x519589?Ue(_0x20d7b4,_0x1e97d4):_0x20d7b4,_0x5e0473=_0x4eb4d5[_0x25aab6(0x125)]-0x1,_0x47aa4d;_0x5e0473>=0x0;_0x5e0473--)(_0x47aa4d=_0x4eb4d5[_0x5e0473])&&(_0xb77ca4=_0x47aa4d(_0xb77ca4)||_0xb77ca4);return _0xb77ca4;},je=(_0x46d100,_0x7266b1)=>(_0x2d2ab9,_0x51a24f)=>_0x7266b1(_0x2d2ab9,_0x51a24f,_0x46d100);let I=class extends _0x324efe{constructor(_0x5bfcc1){const _0xd97d64=_0x258e06;super(),this[_0xd97d64(0x128)]=_0x5bfcc1,this[_0xd97d64(0x13f)]();}[_0x258e06(0x13f)](){const _0x35b1fd=_0x258e06;[_0x18b166['id'],_0x3e75bb['id'],_0x2b85d9['id']][_0x35b1fd(0x155)](_0xde58c9=>{const _0x28dd78=_0x35b1fd;this[_0x28dd78(0x191)](this[_0x28dd78(0x128)][_0x28dd78(0x1b3)](_0xde58c9));});}};I=Ve([je(0x0,_0x78ae44(L))],I);var Me=Object[_0x258e06(0x1bf)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x41311e,_0x44da24,_0x568e56)=>_0x44da24 in _0x41311e?Me(_0x41311e,_0x44da24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568e56}):_0x41311e[_0x44da24]=_0x568e56,We=(_0x516bc3,_0x1efc64,_0x37be38,_0x3b3e61)=>{const _0x2e90a7=_0x258e06;for(var _0x256abc=_0x3b3e61>0x1?void 0x0:_0x3b3e61?ke(_0x1efc64,_0x37be38):_0x1efc64,_0x3a05e3=_0x516bc3[_0x2e90a7(0x125)]-0x1,_0x3e5ef9;_0x3a05e3>=0x0;_0x3a05e3--)(_0x3e5ef9=_0x516bc3[_0x3a05e3])&&(_0x256abc=_0x3e5ef9(_0x256abc)||_0x256abc);return _0x256abc;},F=(_0x3abf12,_0x293639)=>(_0x51ec38,_0xd30722)=>_0x293639(_0x51ec38,_0xd30722,_0x3abf12),B=(_0x446a75,_0x392a5a,_0x40b314)=>Ge(_0x446a75,typeof _0x392a5a!=_0x258e06(0x12d)?_0x392a5a+'':_0x392a5a,_0x40b314);const Ye=_0x258e06(0x180);let b=class extends _0x3ffe0c{constructor(_0x4e9c1d=T,_0x19abc6,_0x254dee){const _0x8b8188=_0x258e06;super(),this['_config']=_0x4e9c1d,this[_0x8b8188(0x19a)]=_0x19abc6,this[_0x8b8188(0x1b6)]=_0x254dee;const {..._0x5a654}=_0x1fe50c({},T,this[_0x8b8188(0x149)]);this['_configService'][_0x8b8188(0x16f)](ye,_0x5a654);}[_0x258e06(0x1bc)](){const _0xc28f58=_0x258e06;_0x2fbe26(this[_0xc28f58(0x19a)],_0x23ef20([[L],[S],[I],[m]],this[_0xc28f58(0x149)][_0xc28f58(0x169)])),_0x3e4dcd(this[_0xc28f58(0x19a)],[[I]]);}['onRendered'](){const _0x5da499=_0x258e06;_0x3e4dcd(this[_0x5da499(0x19a)],[[m]]);}};B(b,_0x258e06(0x198),_0x35559f[_0x258e06(0x172)]),B(b,_0x258e06(0x117),Ye),b=We([_0x42a005(_0x285791),F(0x1,_0x78ae44(_0x2d4c16)),F(0x2,_0x5aa847)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2561c3=_0x639e;function _0x639e(_0x26429c,_0x5f5b79){_0x26429c=_0x26429c-0xcc;const _0x17e9a0=_0x17e9();let _0x639ef=_0x17e9a0[_0x26429c];return _0x639ef;}(function(_0x122c71,_0x4438d4){const _0x4c5884=_0x639e,_0x47910b=_0x122c71();while(!![]){try{const _0x2c6626=-parseInt(_0x4c5884(0xd2))/0x1+-parseInt(_0x4c5884(0xd3))/0x2+parseInt(_0x4c5884(0xe6))/0x3*(-parseInt(_0x4c5884(0xe3))/0x4)+-parseInt(_0x4c5884(0xda))/0x5*(parseInt(_0x4c5884(0xdc))/0x6)+parseInt(_0x4c5884(0xcd))/0x7+-parseInt(_0x4c5884(0xeb))/0x8*(parseInt(_0x4c5884(0xd1))/0x9)+-parseInt(_0x4c5884(0xce))/0xa*(-parseInt(_0x4c5884(0xd9))/0xb);if(_0x2c6626===_0x4438d4)break;else _0x47910b['push'](_0x47910b['shift']());}catch(_0x245698){_0x47910b['push'](_0x47910b['shift']());}}}(_0x17e9,0x2e84b));import{LiveShareController as _0x204761,LiveShareStatus as _0x5af292}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x585a07}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xabbfd8}from'@univerjs/sheets';import{SetScrollOperation as _0x2dfe55}from'@univerjs/sheets-ui';import{FRange as _0x426e48}from'@univerjs/sheets/facade';import{FUniver as _0x29f894,FEnum as _0x444374}from'@univerjs/core/facade';class I extends _0x426e48{[_0x2561c3(0xdd)](_0x3056de,_0x5b0d90,_0x35a303,_0x52bbd4,_0x51f56c){const _0x5b3b59=_0x2561c3,_0x59bb58=_0x3056de[_0x5b3b59(0xe5)](_0x204761),_0x1e4fd5=_0x3056de[_0x5b3b59(0xe5)](_0x585a07),_0x549598=_0x5b0d90['getUnitId'](),_0x3ff9f1=_0x5b0d90[_0x5b3b59(0xe4)](),_0x108e77=_0x59bb58[_0x5b3b59(0xcc)](_0x549598);(_0x108e77==null?void 0x0:_0x108e77[_0x5b3b59(0xd6)]())!==_0x5af292['PRESENTING']||(_0x35a303[_0x5b3b59(0xd4)]()!==_0x3ff9f1[_0x5b3b59(0xd4)]()&&this[_0x5b3b59(0xdf)][_0x5b3b59(0xe9)](_0xabbfd8['id'],{'unitId':_0x549598,'subUnitId':_0x35a303['getSheetId']()}),!_0x1e4fd5['getRenderById'](_0x549598))||_0x51f56c['syncExecuteCommand'](_0x2dfe55['id'],{'unitId':_0x5b0d90[_0x5b3b59(0xe7)](),'sheetId':_0x35a303['getSheetId'](),'sheetViewStartRow':_0x52bbd4['startRow'],'sheetViewStartColumn':_0x52bbd4[_0x5b3b59(0xd5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x426e48[_0x2561c3(0xe8)](I);class m extends _0x29f894{['getLiveShareStatus'](){const _0x5775fa=_0x2561c3;var _0x4803a2,_0x453d4;const _0x3dca3c=this[_0x5775fa(0xe0)][_0x5775fa(0xe5)](_0x204761),_0x5308c1=(_0x4803a2=this[_0x5775fa(0xdb)]())==null?void 0x0:_0x4803a2[_0x5775fa(0xea)]();if(!_0x5308c1)throw new Error(_0x5775fa(0xe1));const _0x4a1981=_0x3dca3c[_0x5775fa(0xcc)](_0x5308c1);return(_0x453d4=_0x4a1981==null?void 0x0:_0x4a1981[_0x5775fa(0xd6)]())!=null?_0x453d4:_0x5af292[_0x5775fa(0xd0)];}[_0x2561c3(0xe2)](){const _0x56ac37=_0x2561c3;var _0x2a1a51;const _0x5f2911=this[_0x56ac37(0xe0)][_0x56ac37(0xe5)](_0x204761),_0x2e43f9=(_0x2a1a51=this[_0x56ac37(0xdb)]())==null?void 0x0:_0x2a1a51['getId']();if(!_0x2e43f9)throw new Error(_0x56ac37(0xe1));const _0xea5ea8=_0x5f2911[_0x56ac37(0xcc)](_0x2e43f9);if(!_0xea5ea8)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xea5ea8['startFollowing']();}[_0x2561c3(0xcf)](){const _0x160ab0=_0x2561c3;var _0xd4633f;const _0x11ee3b=this['_injector'][_0x160ab0(0xe5)](_0x204761),_0x2ba408=(_0xd4633f=this['getActiveWorkbook']())==null?void 0x0:_0xd4633f['getId']();if(!_0x2ba408)throw new Error(_0x160ab0(0xe1));const _0x54d5e8=_0x11ee3b['getLiveShareCoordinatorSync'](_0x2ba408);if(!_0x54d5e8)throw new Error(_0x160ab0(0xec));_0x54d5e8[_0x160ab0(0xcf)]();}[_0x2561c3(0xd8)](){const _0x1bda36=_0x2561c3;var _0x1d7986;const _0x4e127e=this[_0x1bda36(0xe0)]['get'](_0x204761),_0x1355be=(_0x1d7986=this['getActiveWorkbook']())==null?void 0x0:_0x1d7986[_0x1bda36(0xea)]();if(!_0x1355be)throw new Error(_0x1bda36(0xe1));const _0x474541=_0x4e127e['getLiveShareCoordinatorSync'](_0x1355be);if(!_0x474541)throw new Error(_0x1bda36(0xec));_0x474541[_0x1bda36(0xde)]();}[_0x2561c3(0xd7)](){const _0x53d076=_0x2561c3;var _0x2808d5;const _0x5d4a44=this[_0x53d076(0xe0)][_0x53d076(0xe5)](_0x204761),_0xa867df=(_0x2808d5=this[_0x53d076(0xdb)]())==null?void 0x0:_0x2808d5[_0x53d076(0xea)]();if(!_0xa867df)throw new Error('No\x20active\x20workbook\x20found.');const _0x2b9413=_0x5d4a44[_0x53d076(0xcc)](_0xa867df);if(!_0x2b9413)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2b9413[_0x53d076(0xd7)]();}}_0x29f894[_0x2561c3(0xe8)](m);class C extends _0x444374{get['LiveShareStatusEnum'](){return _0x5af292;}}_0x444374['extend'](C);function _0x17e9(){const _0x5314ef=['getUnitId','extend','executeCommand','getId','838232doQIbC','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','300496eITPyP','10wYnpJY','stopFollowing','IDLE','18gGFVyC','279858hDoivd','145270EROWIB','getSheetId','startColumn','getStatus','stopPresenting','startPresenting','13822765YKUMZH','5XYfgdU','getActiveWorkbook','1540038FCejAP','_initialize','tryStartPresenting','_commandService','_injector','No\x20active\x20workbook\x20found.','startFollowing','1312cPXXWC','getActiveSheet','get','2655mRrCPP'];_0x17e9=function(){return _0x5314ef;};return _0x17e9();}
1
+ function _0x571f(){const _0x2fbe56=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18SFLRUn','54qplNdb','extend','LiveShareStatusEnum','IDLE','tryStartPresenting','1910900EeGIkZ','stopFollowing','getActiveSheet','getStatus','startFollowing','2748163dgQCaB','PRESENTING','_injector','4673781HJElQr','executeCommand','getLiveShareCoordinatorSync','2974672RSYiYd','10JxqPkj','536622GrCFBV','getSheetId','startRow','getUnitId','8913336INbwqk','getId','_commandService','41692asRSlr','6ZNgyrA','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting','get','2cKGIjO','getActiveWorkbook'];_0x571f=function(){return _0x2fbe56;};return _0x571f();}const _0x79a651=_0x53b0;(function(_0x4fcfdf,_0x31312f){const _0x5cebe7=_0x53b0,_0x4541f2=_0x4fcfdf();while(!![]){try{const _0x218c8f=-parseInt(_0x5cebe7(0x161))/0x1*(parseInt(_0x5cebe7(0x16e))/0x2)+-parseInt(_0x5cebe7(0x172))/0x3*(-parseInt(_0x5cebe7(0x168))/0x4)+parseInt(_0x5cebe7(0x154))/0x5*(parseInt(_0x5cebe7(0x169))/0x6)+parseInt(_0x5cebe7(0x15c))/0x7+-parseInt(_0x5cebe7(0x15f))/0x8*(parseInt(_0x5cebe7(0x171))/0x9)+parseInt(_0x5cebe7(0x160))/0xa*(-parseInt(_0x5cebe7(0x159))/0xb)+parseInt(_0x5cebe7(0x165))/0xc;if(_0x218c8f===_0x31312f)break;else _0x4541f2['push'](_0x4541f2['shift']());}catch(_0x37dcb2){_0x4541f2['push'](_0x4541f2['shift']());}}}(_0x571f,0x6de54));import{LiveShareController as _0x55af9f,LiveShareStatus as _0x3533f8}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2a4873}from'@univerjs/engine-render';function _0x53b0(_0x2493f7,_0x3baac6){_0x2493f7=_0x2493f7-0x152;const _0x571fe5=_0x571f();let _0x53b086=_0x571fe5[_0x2493f7];return _0x53b086;}import{SetWorksheetActiveOperation as _0x5c83dd}from'@univerjs/sheets';import{SetScrollOperation as _0x40817b}from'@univerjs/sheets-ui';import{FRange as _0x4fa1a3}from'@univerjs/sheets/facade';import{FUniver as _0x5c5814,FEnum as _0x54a6aa}from'@univerjs/core/facade';class I extends _0x4fa1a3{['_initialize'](_0x1f6ef1,_0x1d53fd,_0x771944,_0x23b5b3,_0x4161d7){const _0x57c640=_0x53b0,_0x487400=_0x1f6ef1[_0x57c640(0x16d)](_0x55af9f),_0x1acfaa=_0x1f6ef1[_0x57c640(0x16d)](_0x2a4873),_0x1be079=_0x1d53fd[_0x57c640(0x164)](),_0x4279a5=_0x1d53fd[_0x57c640(0x156)](),_0x4ad478=_0x487400[_0x57c640(0x15e)](_0x1be079);(_0x4ad478==null?void 0x0:_0x4ad478[_0x57c640(0x157)]())!==_0x3533f8[_0x57c640(0x15a)]||(_0x771944[_0x57c640(0x162)]()!==_0x4279a5['getSheetId']()&&this[_0x57c640(0x167)][_0x57c640(0x15d)](_0x5c83dd['id'],{'unitId':_0x1be079,'subUnitId':_0x771944[_0x57c640(0x162)]()}),!_0x1acfaa['getRenderById'](_0x1be079))||_0x4161d7['syncExecuteCommand'](_0x40817b['id'],{'unitId':_0x1d53fd[_0x57c640(0x164)](),'sheetId':_0x771944[_0x57c640(0x162)](),'sheetViewStartRow':_0x23b5b3[_0x57c640(0x163)],'sheetViewStartColumn':_0x23b5b3['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4fa1a3['extend'](I);class m extends _0x5c5814{['getLiveShareStatus'](){const _0x25436d=_0x53b0;var _0x5b9f61,_0x30dcb6;const _0x31f781=this[_0x25436d(0x15b)]['get'](_0x55af9f),_0x1b4084=(_0x5b9f61=this[_0x25436d(0x16f)]())==null?void 0x0:_0x5b9f61[_0x25436d(0x166)]();if(!_0x1b4084)throw new Error(_0x25436d(0x16b));const _0x346099=_0x31f781[_0x25436d(0x15e)](_0x1b4084);return(_0x30dcb6=_0x346099==null?void 0x0:_0x346099[_0x25436d(0x157)]())!=null?_0x30dcb6:_0x3533f8[_0x25436d(0x152)];}[_0x79a651(0x158)](){const _0x2dead6=_0x79a651;var _0x58abe3;const _0x580abc=this[_0x2dead6(0x15b)]['get'](_0x55af9f),_0x580a2d=(_0x58abe3=this[_0x2dead6(0x16f)]())==null?void 0x0:_0x58abe3[_0x2dead6(0x166)]();if(!_0x580a2d)throw new Error(_0x2dead6(0x16b));const _0x33dc85=_0x580abc[_0x2dead6(0x15e)](_0x580a2d);if(!_0x33dc85)throw new Error(_0x2dead6(0x170));_0x33dc85['startFollowing']();}[_0x79a651(0x155)](){const _0x5b3232=_0x79a651;var _0x462738;const _0x36c356=this[_0x5b3232(0x15b)][_0x5b3232(0x16d)](_0x55af9f),_0x345d0a=(_0x462738=this[_0x5b3232(0x16f)]())==null?void 0x0:_0x462738[_0x5b3232(0x166)]();if(!_0x345d0a)throw new Error('No\x20active\x20workbook\x20found.');const _0x573141=_0x36c356[_0x5b3232(0x15e)](_0x345d0a);if(!_0x573141)throw new Error(_0x5b3232(0x170));_0x573141[_0x5b3232(0x155)]();}[_0x79a651(0x16c)](){const _0x5e04c5=_0x79a651;var _0x3df80f;const _0x468a35=this['_injector'][_0x5e04c5(0x16d)](_0x55af9f),_0x415646=(_0x3df80f=this['getActiveWorkbook']())==null?void 0x0:_0x3df80f[_0x5e04c5(0x166)]();if(!_0x415646)throw new Error(_0x5e04c5(0x16b));const _0x18f111=_0x468a35[_0x5e04c5(0x15e)](_0x415646);if(!_0x18f111)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18f111[_0x5e04c5(0x153)]();}[_0x79a651(0x16a)](){const _0x5728cd=_0x79a651;var _0x19c8d6;const _0x5af450=this['_injector'][_0x5728cd(0x16d)](_0x55af9f),_0x281a79=(_0x19c8d6=this[_0x5728cd(0x16f)]())==null?void 0x0:_0x19c8d6[_0x5728cd(0x166)]();if(!_0x281a79)throw new Error('No\x20active\x20workbook\x20found.');const _0x111972=_0x5af450[_0x5728cd(0x15e)](_0x281a79);if(!_0x111972)throw new Error(_0x5728cd(0x170));_0x111972[_0x5728cd(0x16a)]();}}_0x5c5814['extend'](m);class C extends _0x54a6aa{get[_0x79a651(0x174)](){return _0x3533f8;}}_0x54a6aa[_0x79a651(0x173)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5a9157=_0x4e14;(function(_0x56d1de,_0x1be11f){const _0x3232cd=_0x4e14,_0x1af3f2=_0x56d1de();while(!![]){try{const _0x19c600=parseInt(_0x3232cd(0x191))/0x1+-parseInt(_0x3232cd(0x166))/0x2+parseInt(_0x3232cd(0x130))/0x3+parseInt(_0x3232cd(0x1a9))/0x4+parseInt(_0x3232cd(0x14d))/0x5+parseInt(_0x3232cd(0x161))/0x6+-parseInt(_0x3232cd(0x16b))/0x7;if(_0x19c600===_0x1be11f)break;else _0x1af3f2['push'](_0x1af3f2['shift']());}catch(_0x56f5ba){_0x1af3f2['push'](_0x1af3f2['shift']());}}}(_0x54c7,0xb3ce5));function _0x4e14(_0x50138c,_0x45307e){_0x50138c=_0x50138c-0x115;const _0x54c7ce=_0x54c7();let _0x4e14ac=_0x54c7ce[_0x50138c];return _0x4e14ac;}var J=Object[_0x5a9157(0x136)],K=(_0x4672aa,_0x1de778,_0x12c834)=>_0x1de778 in _0x4672aa?J(_0x4672aa,_0x1de778,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12c834}):_0x4672aa[_0x1de778]=_0x12c834,u=(_0x3616d7,_0x5d1470,_0x5456b0)=>K(_0x3616d7,typeof _0x5d1470!=_0x5a9157(0x194)?_0x5d1470+'':_0x5d1470,_0x5456b0);import{Disposable as _0xa28d62,toDisposable as _0x3e6459,IUniverInstanceService as _0x2bf8ed,Inject as _0x5890f3,Injector as _0x2ac967,IConfigService as _0x2ccd3e,ICommandService as _0x8f3e9,RxDisposable as _0x1cce5c,UniverInstanceType as _0x118916,DisposableCollection as _0x5315c9,CommandType as _0x55dc24,DependentOn as _0x2c9f12,Plugin as _0x446406,merge as _0x230b34,registerDependencies as _0x3ca90e,mergeOverrideWithDependencies as _0x1d22c6,touchDependencies as _0xa89abb}from'@univerjs/core';import{useDependency as _0x14fb74,useObservable as _0x25b804,IUIPartsService as _0x4b3e7b,BuiltInUIPart as _0x3df1ce,connectInjector as _0x360939}from'@univerjs/ui';import{jsx as _0xe9d27a,jsxs as _0x1044b3,Fragment as _0x21e76d}from'react/jsx-runtime';import{Dropdown as _0x1d5dcc,clsx as _0x26827b,Button as _0x43cbc8}from'@univerjs/design';import{useRef as _0x3a8f3b,createElement as _0x445d41,forwardRef as _0x3a591f,useState as _0x5ab416,useEffect as _0x34456e}from'react';import{CollaborationEvent as _0xb6d82,parseProtocolChangeset as _0x448a4b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x270da6,SessionStatus as _0x1f086f,UniverCollaborationClientPlugin as _0x270228}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1a8b78,SetWorksheetActiveOperation as _0x4ff82e}from'@univerjs/sheets';import{BehaviorSubject as _0x4812e4,Subject as _0x4797b2}from'rxjs';import{takeUntil as _0x5bc01a,throttleTime as _0x1e0766}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f21c4,SetScrollOperation as _0x447fe5}from'@univerjs/sheets-ui';function k({ref:_0x4aafb6,..._0x34a9d5}){const _0x2fa30d=_0x5a9157,{icon:_0x10eab9,id:_0x3dc31d,className:_0x26f72d,extend:_0x195ada,..._0x1ea6ed}=_0x34a9d5,_0x264f64=(_0x2fa30d(0x11f)+_0x3dc31d+'\x20'+(_0x26f72d||''))[_0x2fa30d(0x13b)](),_0x543818=_0x3a8f3b('_'+Oe());return G(_0x10eab9,''+_0x3dc31d,{'defIds':_0x10eab9[_0x2fa30d(0x190)],'idSuffix':_0x543818[_0x2fa30d(0x17b)]},{'ref':_0x4aafb6,'className':_0x264f64,..._0x1ea6ed},_0x195ada);}function G(_0x5223e4,_0x4d5a88,_0xc614ca,_0x7e6615,_0x2c9f7e){const _0x47cd5e=_0x5a9157;return _0x445d41(_0x5223e4['tag'],{'key':_0x4d5a88,...be(_0x5223e4,_0xc614ca,_0x2c9f7e),..._0x7e6615},(Ee(_0x5223e4,_0xc614ca)[_0x47cd5e(0x125)]||[])[_0x47cd5e(0x11c)]((_0x409539,_0x18da96)=>G(_0x409539,_0x4d5a88+'-'+_0x5223e4[_0x47cd5e(0x12c)]+'-'+_0x18da96,_0xc614ca,void 0x0,_0x2c9f7e)));}function be(_0x27d574,_0x3a9068,_0x50d3bf){const _0x4524b0=_0x5a9157,_0x387e5f={..._0x27d574[_0x4524b0(0x184)]};_0x50d3bf!=null&&_0x50d3bf[_0x4524b0(0x152)]&&_0x387e5f['fill']===_0x4524b0(0x152)&&(_0x387e5f['fill']=_0x50d3bf[_0x4524b0(0x152)]),_0x27d574[_0x4524b0(0x12c)]===_0x4524b0(0x1b5)&&_0x387e5f['id']&&(_0x387e5f['id']=_0x387e5f['id']+_0x3a9068[_0x4524b0(0x175)]),Object['entries'](_0x387e5f)[_0x4524b0(0x183)](([_0xbb34fb,_0x214116])=>{const _0x424387=_0x4524b0;_0xbb34fb==='mask'&&typeof _0x214116==_0x424387(0x18b)&&(_0x387e5f[_0xbb34fb]=_0x214116['replace'](/url\(#(.*)\)/,_0x424387(0x18f)+_0x3a9068[_0x424387(0x175)]+')'));});const {defIds:_0x43c136}=_0x3a9068;return!_0x43c136||_0x43c136[_0x4524b0(0x18d)]===0x0||(_0x27d574['tag']==='use'&&_0x387e5f['xlink:href']&&(_0x387e5f[_0x4524b0(0x199)]=_0x387e5f[_0x4524b0(0x199)]+_0x3a9068[_0x4524b0(0x175)]),Object[_0x4524b0(0x121)](_0x387e5f)['forEach'](([_0x4e4ed0,_0xa2838b])=>{const _0x3d9828=_0x4524b0;typeof _0xa2838b==_0x3d9828(0x18b)&&(_0x387e5f[_0x4e4ed0]=_0xa2838b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3a9068[_0x3d9828(0x175)]+')'));})),_0x387e5f;}function Ee(_0x2db2ec,_0x222fe7){const _0x53553e=_0x5a9157;var _0x210d98;const {defIds:_0x39dcfb}=_0x222fe7;return!_0x39dcfb||_0x39dcfb['length']===0x0?_0x2db2ec:_0x2db2ec[_0x53553e(0x12c)]==='defs'&&((_0x210d98=_0x2db2ec['children'])!=null&&_0x210d98[_0x53553e(0x18d)])?{..._0x2db2ec,'children':_0x2db2ec[_0x53553e(0x125)][_0x53553e(0x11c)](_0x424c08=>typeof _0x424c08[_0x53553e(0x184)]['id']==_0x53553e(0x18b)&&_0x39dcfb&&_0x39dcfb['includes'](_0x424c08[_0x53553e(0x184)]['id'])?{..._0x424c08,'attrs':{..._0x424c08['attrs'],'id':_0x424c08['attrs']['id']+_0x222fe7[_0x53553e(0x175)]}}:_0x424c08)}:_0x2db2ec;}function Oe(){const _0x675a0b=_0x5a9157;return Math['random']()[_0x675a0b(0x1a6)](0x24)['substring'](0x2,0x8);}k[_0x5a9157(0x18a)]='UniverIcon';const we={'tag':_0x5a9157(0x187),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5a9157(0x145),'viewBox':_0x5a9157(0x173),'width':_0x5a9157(0x1b3),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5a9157(0x132),'d':_0x5a9157(0x159)}},{'tag':_0x5a9157(0x12d),'attrs':{'fill':_0x5a9157(0x132),'d':_0x5a9157(0x17c),'fillRule':_0x5a9157(0x1ae),'clipRule':_0x5a9157(0x1ae)}}]},W=_0x3a591f(function(_0x9266ec,_0x26acce){const _0x563837=_0x5a9157;return _0x445d41(k,Object['assign']({},_0x9266ec,{'id':_0x563837(0x1a2),'ref':_0x26acce,'icon':we}));});W[_0x5a9157(0x18a)]=_0x5a9157(0x188);class L extends _0xa28d62{constructor(){const _0x1c1033=_0x5a9157;super(...arguments),u(this,_0x1c1033(0x189),new Set()),u(this,'_reporters',new Set());}[_0x5a9157(0x19f)](_0x3a6d42){const _0x1a8668=_0x5a9157;return this[_0x1a8668(0x189)][_0x1a8668(0x16e)](_0x3a6d42),_0x3e6459(()=>this[_0x1a8668(0x189)][_0x1a8668(0x12e)](_0x3a6d42));}['registerInitialStateReporter'](_0x14f19b){const _0x430a19=_0x5a9157;return this[_0x430a19(0x157)][_0x430a19(0x16e)](_0x14f19b),_0x3e6459(()=>this['_reporters'][_0x430a19(0x12e)](_0x14f19b));}[_0x5a9157(0x168)](_0x16d14b){const _0x28ffee=_0x5a9157;return this[_0x28ffee(0x189)]['has'](_0x16d14b);}[_0x5a9157(0x13c)](_0x4b9d74){const _0x4b079f=_0x5a9157;return Array[_0x4b079f(0x16a)](this[_0x4b079f(0x157)])[_0x4b079f(0x11c)](_0x65bfbd=>_0x65bfbd(_0x4b9d74));}}var Ne=Object[_0x5a9157(0x162)],Y=(_0x37b0e3,_0x5a90ae,_0x3eae1e,_0x3c7894)=>{const _0x1411cf=_0x5a9157;for(var _0x43b1a6=_0x3c7894>0x1?void 0x0:_0x3c7894?Ne(_0x5a90ae,_0x3eae1e):_0x5a90ae,_0x29854b=_0x37b0e3[_0x1411cf(0x18d)]-0x1,_0x4e45ce;_0x29854b>=0x0;_0x29854b--)(_0x4e45ce=_0x37b0e3[_0x29854b])&&(_0x43b1a6=_0x4e45ce(_0x43b1a6)||_0x43b1a6);return _0x43b1a6;},_=(_0xa33a29,_0x53098a)=>(_0x3f79a9,_0x36dda4)=>_0x53098a(_0x3f79a9,_0x36dda4,_0xa33a29);function _0x54c7(){const _0x39b7d5=['attrs','unsubscribe','_handleNewHost','svg','LiveShareIcon','_sharedOperations','displayName','string','setConfig','length','stopFollowing','url(#$1','defIds','217525LzCWYs','disposeWithMe','tryStartPresenting','symbol','PRESENTING','find','Present\x20this\x20document','onRendered','xlink:href','dispose$','getConfig','ONLINE','_handleOffline','has','registerSharedOperation','_handleOperation','stringify','live-share-icon','getLiveShareCoordinatorSync','_collabSession','UNIVER_UNKNOWN','toString','getMemberID','getCurrentTypeOfUnit$','467616fUPsvU','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','_uiPartsService','_univerInstanceService','pluginName','evenodd','_commandDisposable','sheet','_fetchOperations','registerComponent','1em','NEW_CHANGESETS','mask','status$','_mountLiveShare','_startPresenting','end','override','_startLiveShareCoordinator','asObservable','startFollowing','getValue','send','map','getTypeOfUnitAdded$','_beIdle','univerjs-icon\x20univerjs-icon-','not-following','entries','univer-size-4','You\x27are\x20offline.','get','children','Start\x20following','complete','values','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','createInstance','tag','path','delete','_init','3653502BOwAta','getUnitId','currentColor','_collabSessionService','Stop\x20presenting','_stopFollowing','defineProperty','unitId','Start','_injector','_stopPresenting','trim','getInitialStates','button','params','_commandService','You\x27re\x20following\x20the\x20presenter','_entities','reverse','UNIVER_SHEET','_handleOnline','none','executeCommand','_liveShareService','LIVESHARE_OPERATION','_handleTerminate','FOLLOWING','_status$','getLiveShareCoordinator','1846640ldcwVj','_config','requireSession','OFFLINE','_configService','colorChannel1','default','subscribe','You\x27re\x20presenting\x20the\x20document','_unitID','_reporters','LIVESHARE_TERMINATE','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','then','dispose','OPERATION','memberID','next','idle','getStatus','3389754vyajxw','getOwnPropertyDescriptor','_startFollowing','following','LIVESHARE_FETCH_OPERATIONS','1052856QySCGt','getTypeOfUnitDisposed$','shouldShareOperation','data','from','8565459AAFyas','mutations','set','add','clear','stopPresenting','HEADER_MENU','text','0\x200\x2017\x2017','presenting','idSuffix','LIVESHARE_REQUEST_HOST','Stop\x20following','NOT_FOLLOWING','_presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','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','UNIVER_LIVE_SHARE_PLUGIN','pipe','offline','init','_handleNewChangeSets','_status','forEach'];_0x54c7=function(){return _0x39b7d5;};return _0x54c7();}let S=class extends _0x1cce5c{constructor(_0x315b6e,_0x304d1b,_0x3ba4b9){const _0x501fca=_0x5a9157;super(),u(this,_0x501fca(0x141),new Map()),(this['_univerInstanceService']=_0x315b6e,this[_0x501fca(0x139)]=_0x304d1b,this[_0x501fca(0x133)]=_0x3ba4b9,this['_init']());}async[_0x5a9157(0x14c)](_0x5b02c6){const _0x7784dc=_0x5a9157;return this['_entities']['has'](_0x5b02c6)||await this['_startLiveShareCoordinator'](_0x5b02c6),this[_0x7784dc(0x141)][_0x7784dc(0x124)](_0x5b02c6);}[_0x5a9157(0x1a3)](_0x268da4){const _0x426ceb=_0x5a9157;var _0xcfdf9d;return(_0xcfdf9d=this['_entities'][_0x426ceb(0x124)](_0x268da4))!=null?_0xcfdf9d:null;}['_init'](){const _0x55a05c=_0x5a9157;this['_univerInstanceService'][_0x55a05c(0x11d)](_0x118916[_0x55a05c(0x143)])[_0x55a05c(0x17e)](_0x5bc01a(this['dispose$']))[_0x55a05c(0x154)](async _0x57c2a7=>{const _0x2622f1=_0x55a05c,_0x3e6ddc=_0x57c2a7[_0x2622f1(0x131)]();this['_entities'][_0x2622f1(0x19e)](_0x3e6ddc)||this[_0x2622f1(0x117)](_0x3e6ddc);}),this[_0x55a05c(0x1ac)][_0x55a05c(0x167)](_0x118916[_0x55a05c(0x143)])['pipe'](_0x5bc01a(this[_0x55a05c(0x19a)]))[_0x55a05c(0x154)](_0x331c33=>{const _0x9104fd=_0x55a05c,_0x287175=_0x331c33['getUnitId'](),_0x48eb15=this[_0x9104fd(0x141)][_0x9104fd(0x124)](_0x287175);_0x48eb15==null||_0x48eb15['dispose']();});}async[_0x5a9157(0x117)](_0x274525){const _0x4c5ae2=_0x5a9157,_0x13c343=await this['_collabSessionService'][_0x4c5ae2(0x14f)](_0x274525),_0x5dcc38=this[_0x4c5ae2(0x139)][_0x4c5ae2(0x12b)](N,_0x274525,_0x13c343);return _0x5dcc38[_0x4c5ae2(0x180)](),this['_entities'][_0x4c5ae2(0x16d)](_0x274525,_0x5dcc38),_0x5dcc38;}};S=Y([_(0x0,_0x2bf8ed),_(0x1,_0x5890f3(_0x2ac967)),_(0x2,_0x5890f3(_0x270da6))],S);var c=(_0x3dd772=>(_0x3dd772[_0x5a9157(0x150)]=_0x5a9157(0x17f),_0x3dd772[_0x5a9157(0x12a)]=_0x5a9157(0x15f),_0x3dd772['FOLLOWING']=_0x5a9157(0x164),_0x3dd772[_0x5a9157(0x178)]=_0x5a9157(0x120),_0x3dd772['PRESENTING']=_0x5a9157(0x174),_0x3dd772))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x1cce5c{constructor(_0xb205f3,_0x145752,_0x10357b,_0x3da1b7,_0x3c2a71){const _0x11a0a2=_0x5a9157;super(),u(this,'_status$',new _0x4812e4(_0x11a0a2(0x15f))),u(this,_0x11a0a2(0x1b6),this[_0x11a0a2(0x14b)][_0x11a0a2(0x118)]()),u(this,_0x11a0a2(0x12f),!0x1),u(this,'_commandDisposable',null),u(this,_0x11a0a2(0x179),null),(this[_0x11a0a2(0x156)]=_0xb205f3,this[_0x11a0a2(0x1a4)]=_0x145752,this['_configService']=_0x10357b,this['_liveShareService']=_0x3da1b7,this[_0x11a0a2(0x13f)]=_0x3c2a71);}get[_0x5a9157(0x182)](){const _0x590aa9=_0x5a9157;return this['_status$'][_0x590aa9(0x11a)]();}[_0x5a9157(0x15b)](){const _0x1b17eb=_0x5a9157;var _0x419afe;(_0x419afe=this['_commandDisposable'])==null||_0x419afe[_0x1b17eb(0x15b)](),this['_status$'][_0x1b17eb(0x15e)](_0x1b17eb(0x15f)),this[_0x1b17eb(0x14b)][_0x1b17eb(0x127)]();}[_0x5a9157(0x160)](){const _0x2a4fc6=_0x5a9157;return this[_0x2a4fc6(0x182)];}[_0x5a9157(0x180)](){const _0x24d726=_0x5a9157;this[_0x24d726(0x12f)]||(this[_0x24d726(0x12f)]=!0x0,this['_collabSession']['sessionStatus$'][_0x24d726(0x17e)](_0x5bc01a(this[_0x24d726(0x19a)]))['subscribe'](_0x516d76=>{const _0x5bc4aa=_0x24d726;switch(_0x516d76){case _0x1f086f[_0x5bc4aa(0x150)]:this[_0x5bc4aa(0x19d)]();break;case _0x1f086f[_0x5bc4aa(0x19c)]:this[_0x5bc4aa(0x144)]();break;}}),this['_collabSession']['event$']['pipe'](_0x5bc01a(this['dispose$']))[_0x24d726(0x154)](_0x3abf42=>{const _0x35f5a9=_0x24d726,{eventID:_0x155f0d}=_0x3abf42;switch(_0x155f0d){case _0xb6d82['LIVESHARE_NEW_HOST']:this[_0x35f5a9(0x186)](_0x3abf42);break;case _0xb6d82[_0x35f5a9(0x148)]:this[_0x35f5a9(0x1a0)](_0x3abf42);break;case _0xb6d82[_0x35f5a9(0x158)]:this[_0x35f5a9(0x149)]();break;case _0xb6d82[_0x35f5a9(0x1b4)]:this[_0x35f5a9(0x181)](_0x3abf42);break;}}));}['tryStartPresenting'](){const _0x4c0715=_0x5a9157;this['_collabSession'][_0x4c0715(0x11b)]({'eventID':_0xb6d82[_0x4c0715(0x176)],'data':{'unitID':this['_unitID'],'userID':this[_0x4c0715(0x1a4)][_0x4c0715(0x1a7)]()}},this[_0x4c0715(0x156)]);}[_0x5a9157(0x170)](){const _0x350fc6=_0x5a9157;this[_0x350fc6(0x182)]==='presenting'&&(this[_0x350fc6(0x14b)]['next'](_0x350fc6(0x15f)),this[_0x350fc6(0x1a4)][_0x350fc6(0x11b)]({'eventID':_0xb6d82[_0x350fc6(0x158)],'data':{'unitID':this[_0x350fc6(0x156)]}},this[_0x350fc6(0x156)]));}['startFollowing'](){const _0x98e65=_0x5a9157;this[_0x98e65(0x182)]===_0x98e65(0x120)&&(this['_status$'][_0x98e65(0x15e)](_0x98e65(0x164)),this[_0x98e65(0x163)]());}['stopFollowing'](){const _0x2d5c57=_0x5a9157;this['_status']===_0x2d5c57(0x164)&&this[_0x2d5c57(0x135)]();}[_0x5a9157(0x186)](_0x1c646f){const _0x19fecd=_0x5a9157,{presenter:_0x4a340c}=_0x1c646f[_0x19fecd(0x169)],_0x52a714=this[_0x19fecd(0x1a4)][_0x19fecd(0x1a7)]();this[_0x19fecd(0x179)]=_0x4a340c,_0x4a340c===_0x52a714?(this[_0x19fecd(0x135)](),this[_0x19fecd(0x1b8)]()):this['_status']!==_0x19fecd(0x120)&&(this[_0x19fecd(0x13a)](),this[_0x19fecd(0x163)]());}['_fetchOperations'](){const _0x177e9a=_0x5a9157,_0xc199c3={'eventID':_0xb6d82[_0x177e9a(0x165)]};this[_0x177e9a(0x1a4)][_0x177e9a(0x11b)](_0xc199c3,this[_0x177e9a(0x156)]);}[_0x5a9157(0x149)](){const _0x1e3f06=_0x5a9157;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x1e3f06(0x11e)]();}[_0x5a9157(0x181)](_0x36b89e){const _0x193e4d=_0x5a9157;if(this[_0x193e4d(0x182)]===_0x193e4d(0x164)&&this[_0x193e4d(0x179)]===_0x36b89e[_0x193e4d(0x169)][_0x193e4d(0x15d)]){const _0x540c5e=_0x448a4b(_0x36b89e[_0x193e4d(0x169)])[_0x193e4d(0x16c)][_0x193e4d(0x142)]()[_0x193e4d(0x196)](_0x45d7bf=>_0x45d7bf['id']===_0x1a8b78['id']);if(_0x540c5e){const _0x4dd3b6=_0x540c5e[_0x193e4d(0x13e)][_0x193e4d(0x137)],_0x1ac1b9=_0x540c5e['params'][_0x193e4d(0x1b0)]['id'];setTimeout(()=>{const _0xee294a=_0x193e4d;this['_commandService'][_0xee294a(0x146)](_0x4ff82e['id'],{'unitId':_0x4dd3b6,'subUnitId':_0x1ac1b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2fcc17=_0x5a9157;this[_0x2fcc17(0x14b)]['next']('presenting');const _0xf2a2fc=new Map(),_0x44940d=this[_0x2fcc17(0x1af)]=new _0x5315c9();_0x44940d[_0x2fcc17(0x16e)](_0x3e6459(()=>{const _0x53be83=_0x2fcc17;_0xf2a2fc[_0x53be83(0x183)](_0x367a3b=>_0x367a3b[_0x53be83(0x127)]()),_0xf2a2fc[_0x53be83(0x16f)]();})),_0x44940d[_0x2fcc17(0x16e)](this[_0x2fcc17(0x13f)]['onCommandExecuted'](_0x5bea74=>{const _0x462bee=_0x2fcc17;var _0x52d583;if(_0x5bea74['type']!==_0x55dc24[_0x462bee(0x15c)]||!this['_liveShareService'][_0x462bee(0x168)](_0x5bea74['id']))return;const {id:_0xb9e8ff}=_0x5bea74;let _0x372092;_0xf2a2fc[_0x462bee(0x19e)](_0xb9e8ff)?_0x372092=_0xf2a2fc[_0x462bee(0x124)](_0xb9e8ff):(_0x372092=new _0x4797b2(),_0xf2a2fc['set'](_0xb9e8ff,_0x372092),_0x372092[_0x462bee(0x17e)](_0x1e0766((_0x52d583=this[_0x462bee(0x151)][_0x462bee(0x19b)](Ce))!=null?_0x52d583:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2d940a=>{const _0x2e3533=_0x462bee;this[_0x2e3533(0x1a4)][_0x2e3533(0x11b)]({'eventID':_0xb6d82[_0x2e3533(0x148)],'data':{'unitID':this[_0x2e3533(0x156)],'operations':{[_0x2d940a['id']]:{'id':_0x2d940a['id'],'params':JSON[_0x2e3533(0x1a1)](_0x2d940a[_0x2e3533(0x13e)])}}}},this[_0x2e3533(0x156)]);})),_0x372092['next'](_0x5bea74);})),this[_0x2fcc17(0x147)][_0x2fcc17(0x13c)](this['_unitID'])[_0x2fcc17(0x183)](_0x7bda83=>this[_0x2fcc17(0x1a4)]['send']({'eventID':_0xb6d82[_0x2fcc17(0x148)],'data':{'unitID':this[_0x2fcc17(0x156)],'operations':{[_0x7bda83['id']]:{'id':_0x7bda83['id'],'params':JSON[_0x2fcc17(0x1a1)](_0x7bda83[_0x2fcc17(0x13e)])}}}},this[_0x2fcc17(0x156)]));}[_0x5a9157(0x13a)](){const _0x2e424e=_0x5a9157;var _0x4d1b4f;this[_0x2e424e(0x14b)][_0x2e424e(0x15e)](_0x2e424e(0x15f)),(_0x4d1b4f=this[_0x2e424e(0x1af)])==null||_0x4d1b4f[_0x2e424e(0x15b)](),this['_commandDisposable']=null;}[_0x5a9157(0x163)](){const _0x2bf1fb=_0x5a9157;var _0x27743f;(_0x27743f=this[_0x2bf1fb(0x1af)])==null||_0x27743f[_0x2bf1fb(0x15b)](),this[_0x2bf1fb(0x14b)][_0x2bf1fb(0x15e)](_0x2bf1fb(0x164));}[_0x5a9157(0x11e)](){const _0x2f179d=_0x5a9157;var _0x292e3d;this[_0x2f179d(0x14b)][_0x2f179d(0x15e)](_0x2f179d(0x15f)),(_0x292e3d=this[_0x2f179d(0x1af)])==null||_0x292e3d[_0x2f179d(0x15b)](),this[_0x2f179d(0x1af)]=null;}['_stopFollowing'](){const _0x4d74f4=_0x5a9157;var _0x5a5b28;this[_0x4d74f4(0x14b)]['next']('not-following'),(_0x5a5b28=this['_commandDisposable'])==null||_0x5a5b28['dispose']();}[_0x5a9157(0x1a0)](_0x3d307d){const _0x2213ae=_0x5a9157;if([_0x2213ae(0x174),'not-following',_0x2213ae(0x17f)]['includes'](this[_0x2213ae(0x182)])||!_0x3d307d[_0x2213ae(0x169)]['presenter']||_0x3d307d['data']['presenter']===this[_0x2213ae(0x1a4)][_0x2213ae(0x1a7)]())return;this[_0x2213ae(0x182)]===_0x2213ae(0x15f)&&this['_startFollowing']();const _0x2e8e55=_0x3d307d[_0x2213ae(0x169)]['operations'];Object[_0x2213ae(0x128)](_0x2e8e55)['forEach'](_0x2fffe2=>{const _0x1e2da0=_0x2213ae;this[_0x1e2da0(0x13f)][_0x1e2da0(0x146)](_0x2fffe2['id'],_0x2fffe2[_0x1e2da0(0x13e)]?JSON['parse'](_0x2fffe2['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5b4b85=_0x5a9157;var _0x4085e0;this['_status$'][_0x5b4b85(0x15e)](_0x5b4b85(0x17f)),(_0x4085e0=this[_0x5b4b85(0x1af)])==null||_0x4085e0[_0x5b4b85(0x15b)]();}[_0x5a9157(0x144)](){const _0xc3ec29=_0x5a9157;this[_0xc3ec29(0x14b)][_0xc3ec29(0x15e)](_0xc3ec29(0x15f)),this[_0xc3ec29(0x1b1)]();}};N=Y([_(0x2,_0x2ccd3e),_(0x3,_0x5890f3(L)),_(0x4,_0x8f3e9)],N);function Le(){const _0x87951d=_0x5a9157,_0x164387=_0x14fb74(S),_0x527671=_0x14fb74(_0x2bf8ed),_0x462115=_0x25b804(()=>_0x527671[_0x87951d(0x1a8)](_0x118916['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5233cb,_0x38fdee]=_0x5ab416(null),[_0x2043e4,_0x267a6e]=_0x5ab416(c['IDLE']),_0x4d1cae=_0x3a8f3b(null);return _0x34456e(()=>(_0x462115&&_0x164387['getLiveShareCoordinator'](_0x462115['getUnitId']())[_0x87951d(0x15a)](_0x354ae1=>{const _0x5a6f76=_0x87951d;_0x38fdee(_0x354ae1),_0x4d1cae[_0x5a6f76(0x17b)]=_0x354ae1[_0x5a6f76(0x1b6)][_0x5a6f76(0x154)](_0x3caaac=>{_0x267a6e(_0x3caaac);});}),()=>{const _0x2c52bb=_0x87951d;var _0x77fa80;(_0x77fa80=_0x4d1cae[_0x2c52bb(0x17b)])==null||_0x77fa80[_0x2c52bb(0x185)](),_0x4d1cae['current']=null;}),[_0x462115,_0x164387]),_0x5233cb?_0xe9d27a(_0x1d5dcc,{'align':_0x87951d(0x115),'disabled':_0x2043e4===c['OFFLINE'],'className':_0x87951d(0x1aa),'overlay':_0xe9d27a(Re,{'status':_0x2043e4,'coordinator':_0x5233cb}),'children':_0xe9d27a(_0x87951d(0x13d),{'className':_0x26827b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2043e4===c[_0x87951d(0x150)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2043e4!==c['OFFLINE']}),'type':_0x87951d(0x13d),'children':_0xe9d27a(W,{'className':_0x87951d(0x122)})})}):null;}function Re(_0x25aabb){const _0xc61288=_0x5a9157,{status:_0xb36f22,coordinator:_0x4f0364}=_0x25aabb;switch(_0xb36f22){case c[_0xc61288(0x12a)]:return _0xe9d27a($e,{'coordinator':_0x4f0364});case c[_0xc61288(0x14a)]:return _0xe9d27a(xe,{'coordinator':_0x4f0364});case c[_0xc61288(0x178)]:return _0xe9d27a(Pe,{'coordinator':_0x4f0364});case c[_0xc61288(0x150)]:return _0xe9d27a(Te,{});case c[_0xc61288(0x195)]:return _0xe9d27a(Ae,{'coordinator':_0x4f0364});default:return null;}}function $e(_0x138a99){const _0x1fcc54=_0x5a9157,{coordinator:_0xe4e224}=_0x138a99;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1fcc54(0x197)}),_0xe9d27a(_0x43cbc8,{'onClick':()=>_0xe4e224[_0x1fcc54(0x193)](),'children':_0x1fcc54(0x138)})]});}function xe(_0xf8d35a){const _0x8632b9=_0x5a9157,{coordinator:_0x4e338a}=_0xf8d35a;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x8632b9(0x17a),'children':_0x8632b9(0x140)}),_0xe9d27a(_0x43cbc8,{'onClick':()=>_0x4e338a[_0x8632b9(0x18e)](),'children':_0x8632b9(0x177)})]});}function Pe(_0xca9462){const _0x14c1ab=_0x5a9157,{coordinator:_0x253fb9}=_0xca9462;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x14c1ab(0x17a),'children':_0x14c1ab(0x129)}),_0xe9d27a(_0x43cbc8,{'variant':_0x14c1ab(0x172),'onClick':()=>_0x253fb9[_0x14c1ab(0x119)](),'children':_0x14c1ab(0x126)})]});}function Ae(_0x1b67b1){const _0x14432f=_0x5a9157,{coordinator:_0x21cc66}=_0x1b67b1;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x14432f(0x17a),'children':_0x14432f(0x155)}),_0xe9d27a(_0x43cbc8,{'variant':_0x14432f(0x153),'onClick':()=>_0x21cc66[_0x14432f(0x170)](),'children':_0x14432f(0x134)})]});}function Te(){const _0x27306e=_0x5a9157;return _0xe9d27a(_0x21e76d,{'children':_0x27306e(0x123)});}var Fe=Object[_0x5a9157(0x162)],He=(_0x680c97,_0x572487,_0x3190e6,_0x778131)=>{for(var _0x5de778=_0x778131>0x1?void 0x0:_0x778131?Fe(_0x572487,_0x3190e6):_0x572487,_0x38b7e5=_0x680c97['length']-0x1,_0x45b85c;_0x38b7e5>=0x0;_0x38b7e5--)(_0x45b85c=_0x680c97[_0x38b7e5])&&(_0x5de778=_0x45b85c(_0x5de778)||_0x5de778);return _0x5de778;},A=(_0x1c08f4,_0x269771)=>(_0x11bdcd,_0x5f11f9)=>_0x269771(_0x11bdcd,_0x5f11f9,_0x1c08f4);let m=class extends _0xa28d62{constructor(_0x4e63bf,_0x33ce12){const _0x3f3c5b=_0x5a9157;super(),this[_0x3f3c5b(0x139)]=_0x4e63bf,this[_0x3f3c5b(0x1ab)]=_0x33ce12,this[_0x3f3c5b(0x1b7)]();}['_mountLiveShare'](){const _0x59c071=_0x5a9157;this[_0x59c071(0x192)](this[_0x59c071(0x1ab)][_0x59c071(0x1b2)](_0x3df1ce[_0x59c071(0x171)],()=>_0x360939(Le,this[_0x59c071(0x139)])));}};m=He([A(0x0,_0x5890f3(_0x2ac967)),A(0x1,_0x4b3e7b)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x58121e,_0xe4291d,_0x278131,_0x54e350)=>{const _0x52190f=_0x5a9157;for(var _0x5868df=_0x54e350>0x1?void 0x0:_0x54e350?Ue(_0xe4291d,_0x278131):_0xe4291d,_0x5c0c07=_0x58121e[_0x52190f(0x18d)]-0x1,_0x51bd8c;_0x5c0c07>=0x0;_0x5c0c07--)(_0x51bd8c=_0x58121e[_0x5c0c07])&&(_0x5868df=_0x51bd8c(_0x5868df)||_0x5868df);return _0x5868df;},je=(_0x5922ab,_0x1a4687)=>(_0x4deae9,_0x52beb5)=>_0x1a4687(_0x4deae9,_0x52beb5,_0x5922ab);let I=class extends _0xa28d62{constructor(_0x1e4d9c){const _0x5d3252=_0x5a9157;super(),this[_0x5d3252(0x147)]=_0x1e4d9c,this[_0x5d3252(0x12f)]();}['_init'](){const _0x2d1dbb=_0x5a9157;[_0x1f21c4['id'],_0x447fe5['id'],_0x4ff82e['id']][_0x2d1dbb(0x183)](_0x558ce7=>{const _0xaaf13e=_0x2d1dbb;this[_0xaaf13e(0x192)](this[_0xaaf13e(0x147)]['registerSharedOperation'](_0x558ce7));});}};I=Ve([je(0x0,_0x5890f3(L))],I);var Me=Object[_0x5a9157(0x136)],ke=Object[_0x5a9157(0x162)],Ge=(_0x2538d1,_0x252d75,_0xd3309f)=>_0x252d75 in _0x2538d1?Me(_0x2538d1,_0x252d75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd3309f}):_0x2538d1[_0x252d75]=_0xd3309f,We=(_0x4752a5,_0x520908,_0x2c7a48,_0x1ce47c)=>{const _0xdf8090=_0x5a9157;for(var _0x4daee4=_0x1ce47c>0x1?void 0x0:_0x1ce47c?ke(_0x520908,_0x2c7a48):_0x520908,_0x2172ca=_0x4752a5[_0xdf8090(0x18d)]-0x1,_0x1376a9;_0x2172ca>=0x0;_0x2172ca--)(_0x1376a9=_0x4752a5[_0x2172ca])&&(_0x4daee4=_0x1376a9(_0x4daee4)||_0x4daee4);return _0x4daee4;},F=(_0x44eeb0,_0xe537e3)=>(_0x5c8c85,_0x1585d5)=>_0xe537e3(_0x5c8c85,_0x1585d5,_0x44eeb0),B=(_0x5db21f,_0x4e46c8,_0x5e04e6)=>Ge(_0x5db21f,typeof _0x4e46c8!=_0x5a9157(0x194)?_0x4e46c8+'':_0x4e46c8,_0x5e04e6);const Ye=_0x5a9157(0x17d);let b=class extends _0x446406{constructor(_0x25cfd7=T,_0x5a0473,_0x2754a2){const _0xb2ab96=_0x5a9157;super(),this['_config']=_0x25cfd7,this[_0xb2ab96(0x139)]=_0x5a0473,this[_0xb2ab96(0x151)]=_0x2754a2;const {..._0x78e952}=_0x230b34({},T,this[_0xb2ab96(0x14e)]);this[_0xb2ab96(0x151)][_0xb2ab96(0x18c)](ye,_0x78e952);}['onStarting'](){const _0x4e70cb=_0x5a9157;_0x3ca90e(this[_0x4e70cb(0x139)],_0x1d22c6([[L],[S],[I],[m]],this[_0x4e70cb(0x14e)][_0x4e70cb(0x116)])),_0xa89abb(this[_0x4e70cb(0x139)],[[I]]);}[_0x5a9157(0x198)](){const _0x4ce401=_0x5a9157;_0xa89abb(this[_0x4ce401(0x139)],[[m]]);}};B(b,'type',_0x118916[_0x5a9157(0x1a5)]),B(b,_0x5a9157(0x1ad),Ye),b=We([_0x2c9f12(_0x270228),F(0x1,_0x5890f3(_0x2ac967)),F(0x2,_0x2ccd3e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0x258e06=_0x4c24;(function(_0x56ccd9,_0x4350db){const _0x25e6aa=_0x4c24,_0x271de4=_0x56ccd9();while(!![]){try{const _0x9219a1=-parseInt(_0x25e6aa(0x17c))/0x1+-parseInt(_0x25e6aa(0x15e))/0x2*(-parseInt(_0x25e6aa(0x1af))/0x3)+parseInt(_0x25e6aa(0x1a3))/0x4+parseInt(_0x25e6aa(0x1a7))/0x5+-parseInt(_0x25e6aa(0x11b))/0x6*(-parseInt(_0x25e6aa(0x1a6))/0x7)+parseInt(_0x25e6aa(0x122))/0x8*(-parseInt(_0x25e6aa(0x1a8))/0x9)+parseInt(_0x25e6aa(0x16e))/0xa;if(_0x9219a1===_0x4350db)break;else _0x271de4['push'](_0x271de4['shift']());}catch(_0x4cc069){_0x271de4['push'](_0x271de4['shift']());}}}(_0x3818,0xd6fbe));var J=Object[_0x258e06(0x1bf)],K=(_0xc91e88,_0x3e4973,_0x18c7aa)=>_0x3e4973 in _0xc91e88?J(_0xc91e88,_0x3e4973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c7aa}):_0xc91e88[_0x3e4973]=_0x18c7aa,u=(_0x3e5c39,_0x14aad4,_0x5269c2)=>K(_0x3e5c39,typeof _0x14aad4!=_0x258e06(0x12d)?_0x14aad4+'':_0x14aad4,_0x5269c2);import{Disposable as _0x324efe,toDisposable as _0x3a3481,IUniverInstanceService as _0x4da99a,Inject as _0x78ae44,Injector as _0x2d4c16,IConfigService as _0x5aa847,ICommandService as _0x4f1d1d,RxDisposable as _0x391391,UniverInstanceType as _0x35559f,DisposableCollection as _0x4d8c75,CommandType as _0x14d400,DependentOn as _0x42a005,Plugin as _0x3ffe0c,merge as _0x1fe50c,registerDependencies as _0x2fbe26,mergeOverrideWithDependencies as _0x23ef20,touchDependencies as _0x3e4dcd}from'@univerjs/core';import{useDependency as _0x37223d,useObservable as _0x5b2abe,IUIPartsService as _0x156e10,BuiltInUIPart as _0x28e9dd,connectInjector as _0x1af1ba}from'@univerjs/ui';import{jsx as _0x4ed4a5,jsxs as _0x3a3244,Fragment as _0x18389c}from'react/jsx-runtime';import{Dropdown as _0x35fe18,clsx as _0x5580d9,Button as _0x476c51}from'@univerjs/design';import{useRef as _0x2baf0a,createElement as _0x21c1d5,forwardRef as _0x4ad21f,useState as _0x4104d8,useEffect as _0x3cf0aa}from'react';import{CollaborationEvent as _0x479a15,parseProtocolChangeset as _0x278421}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x359579,SessionStatus as _0x256689,UniverCollaborationClientPlugin as _0x285791}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34e958,SetWorksheetActiveOperation as _0x2b85d9}from'@univerjs/sheets';import{BehaviorSubject as _0x388f3e,Subject as _0x2c03bf}from'rxjs';import{takeUntil as _0x30a49e,throttleTime as _0x2b3990}from'rxjs/operators';import{SetZoomRatioOperation as _0x18b166,SetScrollOperation as _0x3e75bb}from'@univerjs/sheets-ui';function k({ref:_0x194218,..._0xbab5ab}){const _0x2b4f5e=_0x258e06,{icon:_0x3549d4,id:_0x5f28d1,className:_0x28db96,extend:_0x14eea9,..._0x2f71b9}=_0xbab5ab,_0x5a69ad=(_0x2b4f5e(0x189)+_0x5f28d1+'\x20'+(_0x28db96||''))['trim'](),_0x269383=_0x2baf0a('_'+Oe());return G(_0x3549d4,''+_0x5f28d1,{'defIds':_0x3549d4[_0x2b4f5e(0x19c)],'idSuffix':_0x269383[_0x2b4f5e(0x11c)]},{'ref':_0x194218,'className':_0x5a69ad,..._0x2f71b9},_0x14eea9);}function G(_0x118c4b,_0x2ff79e,_0x89e27,_0x4070fb,_0x24b5b0){const _0x134d41=_0x258e06;return _0x21c1d5(_0x118c4b['tag'],{'key':_0x2ff79e,...be(_0x118c4b,_0x89e27,_0x24b5b0),..._0x4070fb},(Ee(_0x118c4b,_0x89e27)[_0x134d41(0x14e)]||[])[_0x134d41(0x179)]((_0x4b3224,_0x219f4c)=>G(_0x4b3224,_0x2ff79e+'-'+_0x118c4b[_0x134d41(0x131)]+'-'+_0x219f4c,_0x89e27,void 0x0,_0x24b5b0)));}function be(_0x35238c,_0x6d2cd5,_0x116d26){const _0x176feb=_0x258e06,_0xa91998={..._0x35238c['attrs']};_0x116d26!=null&&_0x116d26['colorChannel1']&&_0xa91998[_0x176feb(0x18e)]===_0x176feb(0x18d)&&(_0xa91998[_0x176feb(0x18e)]=_0x116d26[_0x176feb(0x18d)]),_0x35238c['tag']==='mask'&&_0xa91998['id']&&(_0xa91998['id']=_0xa91998['id']+_0x6d2cd5[_0x176feb(0x126)]),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x252b4c,_0x49c58a])=>{const _0x5e4949=_0x176feb;_0x252b4c==='mask'&&typeof _0x49c58a==_0x5e4949(0x12c)&&(_0xa91998[_0x252b4c]=_0x49c58a['replace'](/url\(#(.*)\)/,_0x5e4949(0x1ae)+_0x6d2cd5[_0x5e4949(0x126)]+')'));});const {defIds:_0x1a4097}=_0x6d2cd5;return!_0x1a4097||_0x1a4097['length']===0x0||(_0x35238c['tag']==='use'&&_0xa91998[_0x176feb(0x17d)]&&(_0xa91998['xlink:href']=_0xa91998[_0x176feb(0x17d)]+_0x6d2cd5['idSuffix']),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x31f0aa,_0x418dc5])=>{const _0x4dd701=_0x176feb;typeof _0x418dc5=='string'&&(_0xa91998[_0x31f0aa]=_0x418dc5[_0x4dd701(0x183)](/url\(#(.*)\)/,_0x4dd701(0x1ae)+_0x6d2cd5['idSuffix']+')'));})),_0xa91998;}function Ee(_0x1913ff,_0x45d6ef){const _0xad8579=_0x258e06;var _0x47afbb;const {defIds:_0x40a61e}=_0x45d6ef;return!_0x40a61e||_0x40a61e['length']===0x0?_0x1913ff:_0x1913ff['tag']===_0xad8579(0x168)&&((_0x47afbb=_0x1913ff[_0xad8579(0x14e)])!=null&&_0x47afbb[_0xad8579(0x125)])?{..._0x1913ff,'children':_0x1913ff[_0xad8579(0x14e)]['map'](_0x1948a9=>typeof _0x1948a9[_0xad8579(0x147)]['id']=='string'&&_0x40a61e&&_0x40a61e[_0xad8579(0x1b4)](_0x1948a9[_0xad8579(0x147)]['id'])?{..._0x1948a9,'attrs':{..._0x1948a9['attrs'],'id':_0x1948a9[_0xad8579(0x147)]['id']+_0x45d6ef[_0xad8579(0x126)]}}:_0x1948a9)}:_0x1913ff;}function Oe(){const _0x3c6430=_0x258e06;return Math[_0x3c6430(0x1bd)]()[_0x3c6430(0x146)](0x24)[_0x3c6430(0x1be)](0x2,0x8);}k[_0x258e06(0x11a)]=_0x258e06(0x16b);const we={'tag':_0x258e06(0x1b5),'attrs':{'xmlns':_0x258e06(0x1ba),'fill':_0x258e06(0x17f),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x258e06(0x12f)},'children':[{'tag':'path','attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x193)}},{'tag':_0x258e06(0x156),'attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x14f),'fillRule':_0x258e06(0x1b8),'clipRule':_0x258e06(0x1b8)}}]},W=_0x4ad21f(function(_0x457ca2,_0x3d420c){const _0x293334=_0x258e06;return _0x21c1d5(k,Object[_0x293334(0x188)]({},_0x457ca2,{'id':_0x293334(0x1b2),'ref':_0x3d420c,'icon':we}));});W[_0x258e06(0x11a)]=_0x258e06(0x15f);class L extends _0x324efe{constructor(){const _0x36f6aa=_0x258e06;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x36f6aa(0x178),new Set());}['registerSharedOperation'](_0x506fde){const _0x1271ad=_0x258e06;return this[_0x1271ad(0x163)][_0x1271ad(0x182)](_0x506fde),_0x3a3481(()=>this[_0x1271ad(0x163)][_0x1271ad(0x15a)](_0x506fde));}['registerInitialStateReporter'](_0x250f62){const _0x27e833=_0x258e06;return this[_0x27e833(0x178)]['add'](_0x250f62),_0x3a3481(()=>this[_0x27e833(0x178)][_0x27e833(0x15a)](_0x250f62));}[_0x258e06(0x162)](_0x328b9e){const _0x4bbde7=_0x258e06;return this[_0x4bbde7(0x163)][_0x4bbde7(0x185)](_0x328b9e);}['getInitialStates'](_0x378ecb){const _0x8da5ff=_0x258e06;return Array[_0x8da5ff(0x148)](this['_reporters'])[_0x8da5ff(0x179)](_0x2dedc6=>_0x2dedc6(_0x378ecb));}}var Ne=Object[_0x258e06(0x13c)],Y=(_0x11b179,_0x235a01,_0x579745,_0x28082c)=>{for(var _0x46d98a=_0x28082c>0x1?void 0x0:_0x28082c?Ne(_0x235a01,_0x579745):_0x235a01,_0x304e2e=_0x11b179['length']-0x1,_0x722cfc;_0x304e2e>=0x0;_0x304e2e--)(_0x722cfc=_0x11b179[_0x304e2e])&&(_0x46d98a=_0x722cfc(_0x46d98a)||_0x46d98a);return _0x46d98a;},_=(_0x30ec16,_0x151809)=>(_0x35a5d3,_0x3da833)=>_0x151809(_0x35a5d3,_0x3da833,_0x30ec16);let S=class extends _0x391391{constructor(_0x591373,_0x1dd949,_0x53f9ae){const _0x305932=_0x258e06;super(),u(this,_0x305932(0x167),new Map()),(this[_0x305932(0x1a1)]=_0x591373,this['_injector']=_0x1dd949,this['_collabSessionService']=_0x53f9ae,this[_0x305932(0x13f)]());}async['getLiveShareCoordinator'](_0x3fdbc6){const _0x4eae70=_0x258e06;return this[_0x4eae70(0x167)]['has'](_0x3fdbc6)||await this['_startLiveShareCoordinator'](_0x3fdbc6),this['_entities'][_0x4eae70(0x18b)](_0x3fdbc6);}[_0x258e06(0x190)](_0x39d865){const _0x45f4cd=_0x258e06;var _0x389a92;return(_0x389a92=this[_0x45f4cd(0x167)][_0x45f4cd(0x18b)](_0x39d865))!=null?_0x389a92:null;}[_0x258e06(0x13f)](){const _0x3e59d2=_0x258e06;this[_0x3e59d2(0x1a1)][_0x3e59d2(0x11f)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](async _0x139e7f=>{const _0x3fc23c=_0x3e59d2,_0x5db3c9=_0x139e7f[_0x3fc23c(0x181)]();this[_0x3fc23c(0x167)][_0x3fc23c(0x185)](_0x5db3c9)||this['_startLiveShareCoordinator'](_0x5db3c9);}),this[_0x3e59d2(0x1a1)][_0x3e59d2(0x1a4)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](_0x2b0194=>{const _0x35ab1f=_0x3e59d2,_0x1aa086=_0x2b0194[_0x35ab1f(0x181)](),_0xe01af9=this[_0x35ab1f(0x167)][_0x35ab1f(0x18b)](_0x1aa086);_0xe01af9==null||_0xe01af9[_0x35ab1f(0x138)]();});}async['_startLiveShareCoordinator'](_0x4de79d){const _0x4c2287=_0x258e06,_0x20d921=await this[_0x4c2287(0x164)][_0x4c2287(0x14c)](_0x4de79d),_0x2885fe=this[_0x4c2287(0x19a)][_0x4c2287(0x195)](N,_0x4de79d,_0x20d921);return _0x2885fe['init'](),this[_0x4c2287(0x167)][_0x4c2287(0x11d)](_0x4de79d,_0x2885fe),_0x2885fe;}};S=Y([_(0x0,_0x4da99a),_(0x1,_0x78ae44(_0x2d4c16)),_(0x2,_0x78ae44(_0x359579))],S);var c=(_0x247749=>(_0x247749['OFFLINE']='offline',_0x247749[_0x258e06(0x118)]=_0x258e06(0x14b),_0x247749[_0x258e06(0x17a)]=_0x258e06(0x1a5),_0x247749[_0x258e06(0x1c1)]='not-following',_0x247749[_0x258e06(0x129)]='presenting',_0x247749))(c||{});function _0x3818(){const _0x27a5df=['_univerInstanceService','default','2823368CAqyld','getTypeOfUnitDisposed$','following','618422zHIsnP','8352335wJFcxz','324aYsDYR','dispose$','data','_stopPresenting','_handleOperation','getLiveShareCoordinator','url(#$1','283818lOtlXK','sheet','_fetchOperations','live-share-icon','registerSharedOperation','includes','svg','_configService','stringify','evenodd','text','http://www.w3.org/2000/svg','unitId','onStarting','random','substring','defineProperty','event$','NOT_FOLLOWING','_stopFollowing','pluginName','IDLE','NEW_CHANGESETS','displayName','30RwFeiS','current','set','init','getTypeOfUnitAdded$','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','234696RwjcNt','Start','_handleNewHost','length','idSuffix','_handleOnline','_liveShareService','PRESENTING','Present\x20this\x20document','_handleNewChangeSets','string','symbol','tryStartPresenting','1em','operations','tag','_commandDisposable','_status','mutations','entries','stopFollowing','parse','dispose','univer-size-4','sessionStatus$','next','getOwnPropertyDescriptor','_beIdle','_presenter','_init','_uiPartsService','You\x27are\x20offline.','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','LIVESHARE_REQUEST_HOST','toString','attrs','from','_config','reverse','idle','requireSession','presenting','children','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_status$','stopPresenting','OFFLINE','Stop\x20following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','path','LIVESHARE_TERMINATE','_unitID','currentColor','delete','You\x27re\x20presenting\x20the\x20document','_startFollowing','send','14oRwXzb','LiveShareIcon','_commandService','getMemberID','shouldShareOperation','_sharedOperations','_collabSessionService','offline','status$','_entities','defs','override','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','You\x27re\x20following\x20the\x20presenter','_handleTerminate','1203280uVNcPa','setConfig','onCommandExecuted','unsubscribe','UNIVER_UNKNOWN','LIVESHARE_OPERATION','subscribe','getInitialStates','_mountLiveShare','registerComponent','_reporters','map','FOLLOWING','button','1663903WpOAKe','xlink:href','find','none','UNIVER_LIVE_SHARE_PLUGIN','getUnitId','add','replace','not-following','has','getConfig','presenter','assign','univerjs-icon\x20univerjs-icon-','complete','get','params','colorChannel1','fill','startFollowing','getLiveShareCoordinatorSync','disposeWithMe','Start\x20following','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','values','createInstance','div','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','_handleOffline','_injector','then','defIds','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','pipe','_startPresenting'];_0x3818=function(){return _0x27a5df;};return _0x3818();}function _0x4c24(_0xded936,_0x3e6056){_0xded936=_0xded936-0x116;const _0x381899=_0x3818();let _0x4c2442=_0x381899[_0xded936];return _0x4c2442;}const Ce=_0x258e06(0x16a),De=0xc8;let N=class extends _0x391391{constructor(_0x19d682,_0x4f8d4c,_0x962a59,_0x24d6a4,_0x4806f7){const _0x480b38=_0x258e06;super(),u(this,'_status$',new _0x388f3e(_0x480b38(0x14b))),u(this,_0x480b38(0x166),this[_0x480b38(0x150)]['asObservable']()),u(this,_0x480b38(0x13f),!0x1),u(this,_0x480b38(0x132),null),u(this,_0x480b38(0x13e),null),(this[_0x480b38(0x158)]=_0x19d682,this[_0x480b38(0x19e)]=_0x4f8d4c,this[_0x480b38(0x1b6)]=_0x962a59,this['_liveShareService']=_0x24d6a4,this[_0x480b38(0x160)]=_0x4806f7);}get['_status'](){const _0x302f2a=_0x258e06;return this[_0x302f2a(0x150)][_0x302f2a(0x144)]();}[_0x258e06(0x138)](){const _0x574c3c=_0x258e06;var _0x4d31e9;(_0x4d31e9=this[_0x574c3c(0x132)])==null||_0x4d31e9[_0x574c3c(0x138)](),this['_status$']['next'](_0x574c3c(0x14b)),this[_0x574c3c(0x150)][_0x574c3c(0x18a)]();}['getStatus'](){const _0x25df1b=_0x258e06;return this[_0x25df1b(0x133)];}[_0x258e06(0x11e)](){const _0x3cb334=_0x258e06;this[_0x3cb334(0x13f)]||(this[_0x3cb334(0x13f)]=!0x0,this[_0x3cb334(0x19e)][_0x3cb334(0x13a)][_0x3cb334(0x19f)](_0x30a49e(this[_0x3cb334(0x1a9)]))['subscribe'](_0x966ab2=>{const _0x2d9ac5=_0x3cb334;switch(_0x966ab2){case _0x256689['OFFLINE']:this[_0x2d9ac5(0x199)]();break;case _0x256689['ONLINE']:this[_0x2d9ac5(0x127)]();break;}}),this[_0x3cb334(0x19e)][_0x3cb334(0x1c0)][_0x3cb334(0x19f)](_0x30a49e(this['dispose$']))['subscribe'](_0x1aac34=>{const _0x561cbf=_0x3cb334,{eventID:_0x30b0f9}=_0x1aac34;switch(_0x30b0f9){case _0x479a15['LIVESHARE_NEW_HOST']:this[_0x561cbf(0x124)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x173)]:this[_0x561cbf(0x1ac)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x157)]:this[_0x561cbf(0x16d)]();break;case _0x479a15[_0x561cbf(0x119)]:this[_0x561cbf(0x12b)](_0x1aac34);break;}}));}[_0x258e06(0x12e)](){const _0x590cf2=_0x258e06;this[_0x590cf2(0x19e)][_0x590cf2(0x15d)]({'eventID':_0x479a15[_0x590cf2(0x145)],'data':{'unitID':this[_0x590cf2(0x158)],'userID':this[_0x590cf2(0x19e)][_0x590cf2(0x161)]()}},this[_0x590cf2(0x158)]);}[_0x258e06(0x151)](){const _0x45d9a0=_0x258e06;this[_0x45d9a0(0x133)]===_0x45d9a0(0x14d)&&(this[_0x45d9a0(0x150)][_0x45d9a0(0x13b)](_0x45d9a0(0x14b)),this[_0x45d9a0(0x19e)][_0x45d9a0(0x15d)]({'eventID':_0x479a15['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x45d9a0(0x158)]}},this[_0x45d9a0(0x158)]));}[_0x258e06(0x18f)](){const _0x2c2b92=_0x258e06;this[_0x2c2b92(0x133)]===_0x2c2b92(0x184)&&(this['_status$'][_0x2c2b92(0x13b)](_0x2c2b92(0x1a5)),this['_startFollowing']());}['stopFollowing'](){const _0x42a137=_0x258e06;this[_0x42a137(0x133)]===_0x42a137(0x1a5)&&this[_0x42a137(0x116)]();}[_0x258e06(0x124)](_0x44c2d8){const _0x3e768a=_0x258e06,{presenter:_0x48113b}=_0x44c2d8[_0x3e768a(0x1aa)],_0x263f97=this[_0x3e768a(0x19e)][_0x3e768a(0x161)]();this['_presenter']=_0x48113b,_0x48113b===_0x263f97?(this[_0x3e768a(0x116)](),this[_0x3e768a(0x1a0)]()):this[_0x3e768a(0x133)]!==_0x3e768a(0x184)&&(this[_0x3e768a(0x1ab)](),this['_startFollowing']());}['_fetchOperations'](){const _0x33dca4=_0x258e06,_0x53b06b={'eventID':_0x479a15[_0x33dca4(0x121)]};this[_0x33dca4(0x19e)][_0x33dca4(0x15d)](_0x53b06b,this[_0x33dca4(0x158)]);}['_handleTerminate'](){const _0x247c50=_0x258e06;this[_0x247c50(0x13e)]=null,this[_0x247c50(0x133)]!==_0x247c50(0x14d)&&this[_0x247c50(0x13d)]();}['_handleNewChangeSets'](_0x5e6e11){const _0x5e359c=_0x258e06;if(this[_0x5e359c(0x133)]===_0x5e359c(0x1a5)&&this[_0x5e359c(0x13e)]===_0x5e6e11['data']['memberID']){const _0x1eb865=_0x278421(_0x5e6e11['data'])[_0x5e359c(0x134)][_0x5e359c(0x14a)]()[_0x5e359c(0x17e)](_0x34a45a=>_0x34a45a['id']===_0x34e958['id']);if(_0x1eb865){const _0xf90fc=_0x1eb865[_0x5e359c(0x18c)][_0x5e359c(0x1bb)],_0x2dc432=_0x1eb865['params'][_0x5e359c(0x1b0)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2b85d9['id'],{'unitId':_0xf90fc,'subUnitId':_0x2dc432},{'fromCollab':!0x0});});}}}[_0x258e06(0x1a0)](){const _0x21fe20=_0x258e06;this[_0x21fe20(0x150)][_0x21fe20(0x13b)](_0x21fe20(0x14d));const _0x1c6c0e=new Map(),_0x3d4be3=this[_0x21fe20(0x132)]=new _0x4d8c75();_0x3d4be3[_0x21fe20(0x182)](_0x3a3481(()=>{const _0x17fac7=_0x21fe20;_0x1c6c0e[_0x17fac7(0x155)](_0x24693d=>_0x24693d[_0x17fac7(0x18a)]()),_0x1c6c0e['clear']();})),_0x3d4be3[_0x21fe20(0x182)](this[_0x21fe20(0x160)][_0x21fe20(0x170)](_0x58b1f2=>{const _0xfe3f6d=_0x21fe20;var _0xc3c074;if(_0x58b1f2[_0xfe3f6d(0x198)]!==_0x14d400['OPERATION']||!this['_liveShareService'][_0xfe3f6d(0x162)](_0x58b1f2['id']))return;const {id:_0x7517de}=_0x58b1f2;let _0x405b5f;_0x1c6c0e[_0xfe3f6d(0x185)](_0x7517de)?_0x405b5f=_0x1c6c0e[_0xfe3f6d(0x18b)](_0x7517de):(_0x405b5f=new _0x2c03bf(),_0x1c6c0e[_0xfe3f6d(0x11d)](_0x7517de,_0x405b5f),_0x405b5f[_0xfe3f6d(0x19f)](_0x2b3990((_0xc3c074=this['_configService'][_0xfe3f6d(0x186)](Ce))!=null?_0xc3c074:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfe3f6d(0x174)](_0x3835e6=>{const _0x1b0c84=_0xfe3f6d;this['_collabSession'][_0x1b0c84(0x15d)]({'eventID':_0x479a15[_0x1b0c84(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x3835e6['id']]:{'id':_0x3835e6['id'],'params':JSON['stringify'](_0x3835e6['params'])}}}},this['_unitID']);})),_0x405b5f[_0xfe3f6d(0x13b)](_0x58b1f2);})),this[_0x21fe20(0x128)][_0x21fe20(0x175)](this[_0x21fe20(0x158)])[_0x21fe20(0x155)](_0x4ec61e=>this[_0x21fe20(0x19e)][_0x21fe20(0x15d)]({'eventID':_0x479a15[_0x21fe20(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ec61e['id']]:{'id':_0x4ec61e['id'],'params':JSON[_0x21fe20(0x1b7)](_0x4ec61e['params'])}}}},this[_0x21fe20(0x158)]));}[_0x258e06(0x1ab)](){const _0x1ab4f2=_0x258e06;var _0xc8df19;this[_0x1ab4f2(0x150)][_0x1ab4f2(0x13b)](_0x1ab4f2(0x14b)),(_0xc8df19=this['_commandDisposable'])==null||_0xc8df19[_0x1ab4f2(0x138)](),this[_0x1ab4f2(0x132)]=null;}[_0x258e06(0x15c)](){const _0x1bdb8e=_0x258e06;var _0x11b3db;(_0x11b3db=this[_0x1bdb8e(0x132)])==null||_0x11b3db[_0x1bdb8e(0x138)](),this[_0x1bdb8e(0x150)]['next'](_0x1bdb8e(0x1a5));}[_0x258e06(0x13d)](){const _0x393895=_0x258e06;var _0x186282;this[_0x393895(0x150)][_0x393895(0x13b)]('idle'),(_0x186282=this[_0x393895(0x132)])==null||_0x186282[_0x393895(0x138)](),this['_commandDisposable']=null;}[_0x258e06(0x116)](){const _0x1e43df=_0x258e06;var _0x53dd80;this[_0x1e43df(0x150)][_0x1e43df(0x13b)](_0x1e43df(0x184)),(_0x53dd80=this[_0x1e43df(0x132)])==null||_0x53dd80[_0x1e43df(0x138)]();}[_0x258e06(0x1ac)](_0x38d883){const _0x17aba9=_0x258e06;if([_0x17aba9(0x14d),_0x17aba9(0x184),_0x17aba9(0x165)][_0x17aba9(0x1b4)](this[_0x17aba9(0x133)])||!_0x38d883['data'][_0x17aba9(0x187)]||_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x187)]===this['_collabSession'][_0x17aba9(0x161)]())return;this[_0x17aba9(0x133)]===_0x17aba9(0x14b)&&this[_0x17aba9(0x15c)]();const _0x4a9ba6=_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x130)];Object[_0x17aba9(0x194)](_0x4a9ba6)['forEach'](_0x3010cb=>{const _0xa39adf=_0x17aba9;this['_commandService']['executeCommand'](_0x3010cb['id'],_0x3010cb[_0xa39adf(0x18c)]?JSON[_0xa39adf(0x137)](_0x3010cb[_0xa39adf(0x18c)]):null,{'fromCollab':!0x0});});}[_0x258e06(0x199)](){const _0x5840c2=_0x258e06;var _0x3f9aa2;this[_0x5840c2(0x150)][_0x5840c2(0x13b)]('offline'),(_0x3f9aa2=this['_commandDisposable'])==null||_0x3f9aa2[_0x5840c2(0x138)]();}[_0x258e06(0x127)](){const _0x144381=_0x258e06;this[_0x144381(0x150)][_0x144381(0x13b)](_0x144381(0x14b)),this[_0x144381(0x1b1)]();}};N=Y([_(0x2,_0x5aa847),_(0x3,_0x78ae44(L)),_(0x4,_0x4f1d1d)],N);function Le(){const _0x244db9=_0x258e06,_0x4dbb9b=_0x37223d(S),_0x4dbb9e=_0x37223d(_0x4da99a),_0x2c20dc=_0x5b2abe(()=>_0x4dbb9e['getCurrentTypeOfUnit$'](_0x35559f[_0x244db9(0x120)]),void 0x0,!0x1,[]),[_0x38a103,_0x1e71d1]=_0x4104d8(null),[_0x568087,_0x59bcb3]=_0x4104d8(c[_0x244db9(0x118)]),_0x1ed7e9=_0x2baf0a(null);return _0x3cf0aa(()=>(_0x2c20dc&&_0x4dbb9b[_0x244db9(0x1ad)](_0x2c20dc['getUnitId']())[_0x244db9(0x19b)](_0x86b729=>{const _0x26b7a1=_0x244db9;_0x1e71d1(_0x86b729),_0x1ed7e9[_0x26b7a1(0x11c)]=_0x86b729['status$'][_0x26b7a1(0x174)](_0x424f76=>{_0x59bcb3(_0x424f76);});}),()=>{const _0x54e7dd=_0x244db9;var _0xdf335b;(_0xdf335b=_0x1ed7e9[_0x54e7dd(0x11c)])==null||_0xdf335b[_0x54e7dd(0x171)](),_0x1ed7e9[_0x54e7dd(0x11c)]=null;}),[_0x2c20dc,_0x4dbb9b]),_0x38a103?_0x4ed4a5(_0x35fe18,{'align':'end','disabled':_0x568087===c[_0x244db9(0x152)],'className':_0x244db9(0x197),'overlay':_0x4ed4a5(Re,{'status':_0x568087,'coordinator':_0x38a103}),'children':_0x4ed4a5(_0x244db9(0x17b),{'className':_0x5580d9(_0x244db9(0x154),{'univer-cursor-not-allowed':_0x568087===c[_0x244db9(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568087!==c[_0x244db9(0x152)]}),'type':_0x244db9(0x17b),'children':_0x4ed4a5(W,{'className':_0x244db9(0x139)})})}):null;}function Re(_0x3cbef7){const _0x5fccac=_0x258e06,{status:_0x5a50f1,coordinator:_0x155c72}=_0x3cbef7;switch(_0x5a50f1){case c[_0x5fccac(0x118)]:return _0x4ed4a5($e,{'coordinator':_0x155c72});case c[_0x5fccac(0x17a)]:return _0x4ed4a5(xe,{'coordinator':_0x155c72});case c[_0x5fccac(0x1c1)]:return _0x4ed4a5(Pe,{'coordinator':_0x155c72});case c['OFFLINE']:return _0x4ed4a5(Te,{});case c[_0x5fccac(0x129)]:return _0x4ed4a5(Ae,{'coordinator':_0x155c72});default:return null;}}function $e(_0x191a72){const _0x3a0e02=_0x258e06,{coordinator:_0x4870cf}=_0x191a72;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x3a0e02(0x143),'children':_0x3a0e02(0x12a)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x4870cf[_0x3a0e02(0x12e)](),'children':_0x3a0e02(0x123)})]});}function xe(_0x1163a7){const _0x2fbea5=_0x258e06,{coordinator:_0x54337d}=_0x1163a7;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x2fbea5(0x196),{'className':_0x2fbea5(0x143),'children':_0x2fbea5(0x16c)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x54337d[_0x2fbea5(0x136)](),'children':_0x2fbea5(0x153)})]});}function Pe(_0x5f3b86){const _0x424596=_0x258e06,{coordinator:_0x2d277c}=_0x5f3b86;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x424596(0x143),'children':_0x424596(0x19d)}),_0x4ed4a5(_0x476c51,{'variant':_0x424596(0x1b9),'onClick':()=>_0x2d277c[_0x424596(0x18f)](),'children':_0x424596(0x192)})]});}function Ae(_0x2c9171){const _0x1c77c3=_0x258e06,{coordinator:_0x172f3a}=_0x2c9171;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x1c77c3(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c77c3(0x15b)}),_0x4ed4a5(_0x476c51,{'variant':_0x1c77c3(0x1a2),'onClick':()=>_0x172f3a[_0x1c77c3(0x151)](),'children':_0x1c77c3(0x142)})]});}function Te(){const _0x32c34a=_0x258e06;return _0x4ed4a5(_0x18389c,{'children':_0x32c34a(0x141)});}var Fe=Object[_0x258e06(0x13c)],He=(_0x4bb4e6,_0x1e6350,_0x49bdb0,_0x5cd775)=>{for(var _0x4a7a59=_0x5cd775>0x1?void 0x0:_0x5cd775?Fe(_0x1e6350,_0x49bdb0):_0x1e6350,_0x549473=_0x4bb4e6['length']-0x1,_0x386e74;_0x549473>=0x0;_0x549473--)(_0x386e74=_0x4bb4e6[_0x549473])&&(_0x4a7a59=_0x386e74(_0x4a7a59)||_0x4a7a59);return _0x4a7a59;},A=(_0x46c54f,_0x3f7928)=>(_0x39a916,_0x44a92f)=>_0x3f7928(_0x39a916,_0x44a92f,_0x46c54f);let m=class extends _0x324efe{constructor(_0x4337ee,_0x25cfc8){const _0x14c837=_0x258e06;super(),this[_0x14c837(0x19a)]=_0x4337ee,this['_uiPartsService']=_0x25cfc8,this[_0x14c837(0x176)]();}['_mountLiveShare'](){const _0x4e1fed=_0x258e06;this[_0x4e1fed(0x191)](this[_0x4e1fed(0x140)][_0x4e1fed(0x177)](_0x28e9dd['HEADER_MENU'],()=>_0x1af1ba(Le,this[_0x4e1fed(0x19a)])));}};m=He([A(0x0,_0x78ae44(_0x2d4c16)),A(0x1,_0x156e10)],m);const ye='live-share.config',T={};var Ue=Object[_0x258e06(0x13c)],Ve=(_0x4eb4d5,_0x20d7b4,_0x1e97d4,_0x519589)=>{const _0x25aab6=_0x258e06;for(var _0xb77ca4=_0x519589>0x1?void 0x0:_0x519589?Ue(_0x20d7b4,_0x1e97d4):_0x20d7b4,_0x5e0473=_0x4eb4d5[_0x25aab6(0x125)]-0x1,_0x47aa4d;_0x5e0473>=0x0;_0x5e0473--)(_0x47aa4d=_0x4eb4d5[_0x5e0473])&&(_0xb77ca4=_0x47aa4d(_0xb77ca4)||_0xb77ca4);return _0xb77ca4;},je=(_0x46d100,_0x7266b1)=>(_0x2d2ab9,_0x51a24f)=>_0x7266b1(_0x2d2ab9,_0x51a24f,_0x46d100);let I=class extends _0x324efe{constructor(_0x5bfcc1){const _0xd97d64=_0x258e06;super(),this[_0xd97d64(0x128)]=_0x5bfcc1,this[_0xd97d64(0x13f)]();}[_0x258e06(0x13f)](){const _0x35b1fd=_0x258e06;[_0x18b166['id'],_0x3e75bb['id'],_0x2b85d9['id']][_0x35b1fd(0x155)](_0xde58c9=>{const _0x28dd78=_0x35b1fd;this[_0x28dd78(0x191)](this[_0x28dd78(0x128)][_0x28dd78(0x1b3)](_0xde58c9));});}};I=Ve([je(0x0,_0x78ae44(L))],I);var Me=Object[_0x258e06(0x1bf)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x41311e,_0x44da24,_0x568e56)=>_0x44da24 in _0x41311e?Me(_0x41311e,_0x44da24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568e56}):_0x41311e[_0x44da24]=_0x568e56,We=(_0x516bc3,_0x1efc64,_0x37be38,_0x3b3e61)=>{const _0x2e90a7=_0x258e06;for(var _0x256abc=_0x3b3e61>0x1?void 0x0:_0x3b3e61?ke(_0x1efc64,_0x37be38):_0x1efc64,_0x3a05e3=_0x516bc3[_0x2e90a7(0x125)]-0x1,_0x3e5ef9;_0x3a05e3>=0x0;_0x3a05e3--)(_0x3e5ef9=_0x516bc3[_0x3a05e3])&&(_0x256abc=_0x3e5ef9(_0x256abc)||_0x256abc);return _0x256abc;},F=(_0x3abf12,_0x293639)=>(_0x51ec38,_0xd30722)=>_0x293639(_0x51ec38,_0xd30722,_0x3abf12),B=(_0x446a75,_0x392a5a,_0x40b314)=>Ge(_0x446a75,typeof _0x392a5a!=_0x258e06(0x12d)?_0x392a5a+'':_0x392a5a,_0x40b314);const Ye=_0x258e06(0x180);let b=class extends _0x3ffe0c{constructor(_0x4e9c1d=T,_0x19abc6,_0x254dee){const _0x8b8188=_0x258e06;super(),this['_config']=_0x4e9c1d,this[_0x8b8188(0x19a)]=_0x19abc6,this[_0x8b8188(0x1b6)]=_0x254dee;const {..._0x5a654}=_0x1fe50c({},T,this[_0x8b8188(0x149)]);this['_configService'][_0x8b8188(0x16f)](ye,_0x5a654);}[_0x258e06(0x1bc)](){const _0xc28f58=_0x258e06;_0x2fbe26(this[_0xc28f58(0x19a)],_0x23ef20([[L],[S],[I],[m]],this[_0xc28f58(0x149)][_0xc28f58(0x169)])),_0x3e4dcd(this[_0xc28f58(0x19a)],[[I]]);}['onRendered'](){const _0x5da499=_0x258e06;_0x3e4dcd(this[_0x5da499(0x19a)],[[m]]);}};B(b,_0x258e06(0x198),_0x35559f[_0x258e06(0x172)]),B(b,_0x258e06(0x117),Ye),b=We([_0x42a005(_0x285791),F(0x1,_0x78ae44(_0x2d4c16)),F(0x2,_0x5aa847)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x178d(){const _0x1cdeac=['1635431YiFJVn','78020AEvzFN','stopFollowing','_initialize','UniverEngineRender','amd','@univerjs/sheets-ui','83160WsfxvT','getId','2686999SRcsjT','getUnitId','getStatus','_injector','stopPresenting','3530SlAMCu','LiveShareStatus','IDLE','getActiveWorkbook','PRESENTING','UniverSheetsUi','function','startPresenting','getLiveShareCoordinatorSync','FEnum','3SdLrjY','UniverSheetsFacade','11639680HfJQla','FUniver','extend','UniverCoreFacade','SetScrollOperation','LiveShareController','@univerjs/engine-render','FRange','object','No\x20active\x20workbook\x20found.','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1715348EWKjba','tryStartPresenting','UniverProLiveShare','syncExecuteCommand','174pyOTYq','1396174lVxWsy','@univerjs/sheets/facade','getSheetId','getRenderById','SetWorksheetActiveOperation','startRow','LiveShareStatusEnum','getActiveSheet'];_0x178d=function(){return _0x1cdeac;};return _0x178d();}function _0x1ed8(_0x55258e,_0x355928){_0x55258e=_0x55258e-0x90;const _0x178d50=_0x178d();let _0x1ed85f=_0x178d50[_0x55258e];return _0x1ed85f;}(function(_0x5b8384,_0x48cd57){const _0xe68ead=_0x1ed8,_0x3fd4d2=_0x5b8384();while(!![]){try{const _0xc744dd=parseInt(_0xe68ead(0x99))/0x1+-parseInt(_0xe68ead(0x91))/0x2*(-parseInt(_0xe68ead(0xb1))/0x3)+-parseInt(_0xe68ead(0xbf))/0x4+parseInt(_0xe68ead(0x9a))/0x5*(parseInt(_0xe68ead(0x90))/0x6)+parseInt(_0xe68ead(0xa2))/0x7+parseInt(_0xe68ead(0xb3))/0x8+parseInt(_0xe68ead(0xa0))/0x9*(-parseInt(_0xe68ead(0xa7))/0xa);if(_0xc744dd===_0x48cd57)break;else _0x3fd4d2['push'](_0x3fd4d2['shift']());}catch(_0x3479d3){_0x3fd4d2['push'](_0x3fd4d2['shift']());}}}(_0x178d,0xe4196),function(_0x15fd89,_0x2f0a7b){const _0x12eb19=_0x1ed8;typeof exports==_0x12eb19(0xbb)&&typeof module<'u'?_0x2f0a7b(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==_0x12eb19(0xad)&&define[_0x12eb19(0x9e)]?define(['@univerjs-pro/live-share',_0x12eb19(0xb9),'@univerjs/sheets',_0x12eb19(0x9f),_0x12eb19(0x92),'@univerjs/core/facade'],_0x2f0a7b):(_0x15fd89=typeof globalThis<'u'?globalThis:_0x15fd89||self,_0x2f0a7b(_0x15fd89[_0x12eb19(0xc1)],_0x15fd89[_0x12eb19(0x9d)],_0x15fd89['UniverSheets'],_0x15fd89[_0x12eb19(0xac)],_0x15fd89[_0x12eb19(0xb2)],_0x15fd89[_0x12eb19(0xb6)]));}(this,function(_0x222fc4,_0x11d06d,_0x1ff1d3,_0x4fb08c,_0x4ccd75,_0x39bf9d){'use strict';const _0x154172=_0x1ed8;class _0x22dc6a extends _0x4ccd75[_0x154172(0xba)]{[_0x154172(0x9c)](_0x2d2a10,_0x508a11,_0x343910,_0x58885e,_0xb4fc0f){const _0x376912=_0x154172,_0xd886f6=_0x2d2a10[_0x376912(0xbd)](_0x222fc4[_0x376912(0xb8)]),_0x3be418=_0x2d2a10[_0x376912(0xbd)](_0x11d06d['IRenderManagerService']),_0x45d861=_0x508a11[_0x376912(0xa3)](),_0x496a79=_0x508a11[_0x376912(0x98)](),_0xb5c44e=_0xd886f6[_0x376912(0xaf)](_0x45d861);(_0xb5c44e==null?void 0x0:_0xb5c44e['getStatus']())!==_0x222fc4[_0x376912(0xa8)][_0x376912(0xab)]||(_0x343910['getSheetId']()!==_0x496a79[_0x376912(0x93)]()&&this['_commandService']['executeCommand'](_0x1ff1d3[_0x376912(0x95)]['id'],{'unitId':_0x45d861,'subUnitId':_0x343910[_0x376912(0x93)]()}),!_0x3be418[_0x376912(0x94)](_0x45d861))||_0xb4fc0f[_0x376912(0xc2)](_0x4fb08c[_0x376912(0xb7)]['id'],{'unitId':_0x508a11[_0x376912(0xa3)](),'sheetId':_0x343910[_0x376912(0x93)](),'sheetViewStartRow':_0x58885e[_0x376912(0x96)],'sheetViewStartColumn':_0x58885e['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4ccd75[_0x154172(0xba)][_0x154172(0xb5)](_0x22dc6a);class _0x533a66 extends _0x39bf9d['FUniver']{['getLiveShareStatus'](){const _0x45c320=_0x154172;var _0x2266a6,_0x2396e5;const _0x197974=this[_0x45c320(0xa5)][_0x45c320(0xbd)](_0x222fc4[_0x45c320(0xb8)]),_0x14d7d8=(_0x2266a6=this['getActiveWorkbook']())==null?void 0x0:_0x2266a6[_0x45c320(0xa1)]();if(!_0x14d7d8)throw new Error(_0x45c320(0xbc));const _0x5b5756=_0x197974[_0x45c320(0xaf)](_0x14d7d8);return(_0x2396e5=_0x5b5756==null?void 0x0:_0x5b5756[_0x45c320(0xa4)]())!=null?_0x2396e5:_0x222fc4['LiveShareStatus'][_0x45c320(0xa9)];}['startFollowing'](){const _0x5da2da=_0x154172;var _0x58d55d;const _0x140de9=this[_0x5da2da(0xa5)][_0x5da2da(0xbd)](_0x222fc4[_0x5da2da(0xb8)]),_0x27e481=(_0x58d55d=this['getActiveWorkbook']())==null?void 0x0:_0x58d55d[_0x5da2da(0xa1)]();if(!_0x27e481)throw new Error(_0x5da2da(0xbc));const _0x4b02ee=_0x140de9['getLiveShareCoordinatorSync'](_0x27e481);if(!_0x4b02ee)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b02ee['startFollowing']();}[_0x154172(0x9b)](){const _0x40f2c1=_0x154172;var _0x271b99;const _0x1dedfb=this[_0x40f2c1(0xa5)][_0x40f2c1(0xbd)](_0x222fc4[_0x40f2c1(0xb8)]),_0x41b7b9=(_0x271b99=this[_0x40f2c1(0xaa)]())==null?void 0x0:_0x271b99[_0x40f2c1(0xa1)]();if(!_0x41b7b9)throw new Error(_0x40f2c1(0xbc));const _0x259315=_0x1dedfb[_0x40f2c1(0xaf)](_0x41b7b9);if(!_0x259315)throw new Error(_0x40f2c1(0xbe));_0x259315[_0x40f2c1(0x9b)]();}[_0x154172(0xae)](){const _0x2565ee=_0x154172;var _0x277ddf;const _0x5269d5=this[_0x2565ee(0xa5)][_0x2565ee(0xbd)](_0x222fc4['LiveShareController']),_0x412aed=(_0x277ddf=this['getActiveWorkbook']())==null?void 0x0:_0x277ddf[_0x2565ee(0xa1)]();if(!_0x412aed)throw new Error(_0x2565ee(0xbc));const _0x47f1cf=_0x5269d5[_0x2565ee(0xaf)](_0x412aed);if(!_0x47f1cf)throw new Error(_0x2565ee(0xbe));_0x47f1cf[_0x2565ee(0xc0)]();}[_0x154172(0xa6)](){const _0x494da6=_0x154172;var _0x14bd84;const _0x72ee5e=this['_injector']['get'](_0x222fc4[_0x494da6(0xb8)]),_0x43be8b=(_0x14bd84=this[_0x494da6(0xaa)]())==null?void 0x0:_0x14bd84[_0x494da6(0xa1)]();if(!_0x43be8b)throw new Error(_0x494da6(0xbc));const _0x5f5140=_0x72ee5e['getLiveShareCoordinatorSync'](_0x43be8b);if(!_0x5f5140)throw new Error(_0x494da6(0xbe));_0x5f5140[_0x494da6(0xa6)]();}}_0x39bf9d[_0x154172(0xb4)][_0x154172(0xb5)](_0x533a66);class _0x5640fd extends _0x39bf9d[_0x154172(0xb0)]{get[_0x154172(0x97)](){const _0x2f6a85=_0x154172;return _0x222fc4[_0x2f6a85(0xa8)];}}_0x39bf9d['FEnum']['extend'](_0x5640fd);}));
1
+ function _0x4e27(_0x42c8d4,_0x1602b6){_0x42c8d4=_0x42c8d4-0x12e;const _0x42f9e8=_0x42f9();let _0x4e2766=_0x42f9e8[_0x42c8d4];return _0x4e2766;}function _0x42f9(){const _0x20a766=['function','getLiveShareStatus','getUnitId','@univerjs-pro/live-share','UniverProLiveShare','executeCommand','startColumn','@univerjs/core/facade','40MJOVdK','LiveShareStatus','getSheetId','LiveShareStatusEnum','tryStartPresenting','IRenderManagerService','UniverSheetsFacade','getRenderById','515629ksfXFw','get','No\x20active\x20workbook\x20found.','SetWorksheetActiveOperation','extend','getLiveShareCoordinatorSync','@univerjs/sheets-ui','2686734eJXRoH','FUniver','3041365ODtuAo','27PokXDy','LiveShareController','startFollowing','getActiveWorkbook','FRange','UniverSheets','stopFollowing','196371tIzael','_injector','getId','PRESENTING','1570694VUpMJt','UniverSheetsUi','120412GlQbRY','FEnum','stopPresenting','object','@univerjs/engine-render','UniverCoreFacade','UniverEngineRender','3584875MDppUq','@univerjs/sheets/facade','amd','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','syncExecuteCommand','@univerjs/sheets','startPresenting'];_0x42f9=function(){return _0x20a766;};return _0x42f9();}(function(_0x36a965,_0x220549){const _0x1b77f8=_0x4e27,_0x16778d=_0x36a965();while(!![]){try{const _0x2d5990=parseInt(_0x1b77f8(0x159))/0x1+-parseInt(_0x1b77f8(0x137))/0x2+-parseInt(_0x1b77f8(0x163))/0x3*(-parseInt(_0x1b77f8(0x139))/0x4)+parseInt(_0x1b77f8(0x162))/0x5+parseInt(_0x1b77f8(0x160))/0x6+-parseInt(_0x1b77f8(0x140))/0x7+-parseInt(_0x1b77f8(0x151))/0x8*(parseInt(_0x1b77f8(0x133))/0x9);if(_0x2d5990===_0x220549)break;else _0x16778d['push'](_0x16778d['shift']());}catch(_0x24a93f){_0x16778d['push'](_0x16778d['shift']());}}}(_0x42f9,0x6a753),function(_0x160fb5,_0x3936b5){const _0x149c70=_0x4e27;typeof exports==_0x149c70(0x13c)&&typeof module<'u'?_0x3936b5(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x149c70(0x149)&&define[_0x149c70(0x142)]?define([_0x149c70(0x14c),_0x149c70(0x13d),_0x149c70(0x147),_0x149c70(0x15f),_0x149c70(0x141),_0x149c70(0x150)],_0x3936b5):(_0x160fb5=typeof globalThis<'u'?globalThis:_0x160fb5||self,_0x3936b5(_0x160fb5[_0x149c70(0x14d)],_0x160fb5[_0x149c70(0x13f)],_0x160fb5[_0x149c70(0x131)],_0x160fb5[_0x149c70(0x138)],_0x160fb5[_0x149c70(0x157)],_0x160fb5[_0x149c70(0x13e)]));}(this,function(_0x2be22e,_0x119279,_0x52bbe3,_0x68c553,_0x35bd5f,_0x3bc277){'use strict';const _0x5878f3=_0x4e27;class _0x41dd81 extends _0x35bd5f[_0x5878f3(0x130)]{[_0x5878f3(0x143)](_0x49ef69,_0x10b1a6,_0x5897fb,_0x5480d8,_0x8e22f5){const _0xa74ebf=_0x5878f3,_0x22a6e2=_0x49ef69['get'](_0x2be22e[_0xa74ebf(0x164)]),_0x48d3dd=_0x49ef69[_0xa74ebf(0x15a)](_0x119279[_0xa74ebf(0x156)]),_0x57431d=_0x10b1a6[_0xa74ebf(0x14b)](),_0x310ee5=_0x10b1a6['getActiveSheet'](),_0x5efc99=_0x22a6e2[_0xa74ebf(0x15e)](_0x57431d);(_0x5efc99==null?void 0x0:_0x5efc99[_0xa74ebf(0x145)]())!==_0x2be22e['LiveShareStatus'][_0xa74ebf(0x136)]||(_0x5897fb[_0xa74ebf(0x153)]()!==_0x310ee5[_0xa74ebf(0x153)]()&&this['_commandService'][_0xa74ebf(0x14e)](_0x52bbe3[_0xa74ebf(0x15c)]['id'],{'unitId':_0x57431d,'subUnitId':_0x5897fb[_0xa74ebf(0x153)]()}),!_0x48d3dd[_0xa74ebf(0x158)](_0x57431d))||_0x8e22f5[_0xa74ebf(0x146)](_0x68c553['SetScrollOperation']['id'],{'unitId':_0x10b1a6[_0xa74ebf(0x14b)](),'sheetId':_0x5897fb[_0xa74ebf(0x153)](),'sheetViewStartRow':_0x5480d8['startRow'],'sheetViewStartColumn':_0x5480d8[_0xa74ebf(0x14f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x35bd5f['FRange'][_0x5878f3(0x15d)](_0x41dd81);class _0x523dbe extends _0x3bc277[_0x5878f3(0x161)]{[_0x5878f3(0x14a)](){const _0x45d4d5=_0x5878f3;var _0x555238,_0x12dcd3;const _0x3faf1d=this[_0x45d4d5(0x134)][_0x45d4d5(0x15a)](_0x2be22e[_0x45d4d5(0x164)]),_0xed7d90=(_0x555238=this[_0x45d4d5(0x12f)]())==null?void 0x0:_0x555238['getId']();if(!_0xed7d90)throw new Error(_0x45d4d5(0x15b));const _0x78d8f8=_0x3faf1d[_0x45d4d5(0x15e)](_0xed7d90);return(_0x12dcd3=_0x78d8f8==null?void 0x0:_0x78d8f8['getStatus']())!=null?_0x12dcd3:_0x2be22e[_0x45d4d5(0x152)]['IDLE'];}[_0x5878f3(0x12e)](){const _0x591c66=_0x5878f3;var _0x4feca5;const _0x3ea656=this['_injector'][_0x591c66(0x15a)](_0x2be22e[_0x591c66(0x164)]),_0x1778d3=(_0x4feca5=this[_0x591c66(0x12f)]())==null?void 0x0:_0x4feca5[_0x591c66(0x135)]();if(!_0x1778d3)throw new Error('No\x20active\x20workbook\x20found.');const _0x26155d=_0x3ea656[_0x591c66(0x15e)](_0x1778d3);if(!_0x26155d)throw new Error(_0x591c66(0x144));_0x26155d['startFollowing']();}['stopFollowing'](){const _0x1fdaa4=_0x5878f3;var _0x3ed54f;const _0x226465=this['_injector'][_0x1fdaa4(0x15a)](_0x2be22e[_0x1fdaa4(0x164)]),_0x41b0f9=(_0x3ed54f=this[_0x1fdaa4(0x12f)]())==null?void 0x0:_0x3ed54f[_0x1fdaa4(0x135)]();if(!_0x41b0f9)throw new Error('No\x20active\x20workbook\x20found.');const _0x571f5d=_0x226465['getLiveShareCoordinatorSync'](_0x41b0f9);if(!_0x571f5d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x571f5d[_0x1fdaa4(0x132)]();}[_0x5878f3(0x148)](){const _0xdb7722=_0x5878f3;var _0x1b6c8e;const _0x1845cc=this[_0xdb7722(0x134)][_0xdb7722(0x15a)](_0x2be22e[_0xdb7722(0x164)]),_0x3b5151=(_0x1b6c8e=this[_0xdb7722(0x12f)]())==null?void 0x0:_0x1b6c8e[_0xdb7722(0x135)]();if(!_0x3b5151)throw new Error(_0xdb7722(0x15b));const _0x527e61=_0x1845cc[_0xdb7722(0x15e)](_0x3b5151);if(!_0x527e61)throw new Error(_0xdb7722(0x144));_0x527e61[_0xdb7722(0x155)]();}[_0x5878f3(0x13b)](){const _0xd8460f=_0x5878f3;var _0xf4881c;const _0x2f2cee=this[_0xd8460f(0x134)][_0xd8460f(0x15a)](_0x2be22e[_0xd8460f(0x164)]),_0x2c9020=(_0xf4881c=this['getActiveWorkbook']())==null?void 0x0:_0xf4881c[_0xd8460f(0x135)]();if(!_0x2c9020)throw new Error('No\x20active\x20workbook\x20found.');const _0xcf894d=_0x2f2cee['getLiveShareCoordinatorSync'](_0x2c9020);if(!_0xcf894d)throw new Error(_0xd8460f(0x144));_0xcf894d[_0xd8460f(0x13b)]();}}_0x3bc277['FUniver'][_0x5878f3(0x15d)](_0x523dbe);class _0x2b1ea0 extends _0x3bc277[_0x5878f3(0x13a)]{get[_0x5878f3(0x154)](){const _0x258345=_0x5878f3;return _0x2be22e[_0x258345(0x152)];}}_0x3bc277[_0x5878f3(0x13a)]['extend'](_0x2b1ea0);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x673f(){const _0x13eaa5=['UniverLiveSharePlugin','LIVESHARE_FETCH_OPERATIONS','LiveShareService','createInstance','colorChannel1','object','forwardRef','@univerjs/design','getStatus','Start','get','@univerjs-pro/collaboration','svg','operations','react','Stop\x20presenting','_liveShareService','DisposableCollection','has','disposeWithMe','react/jsx-runtime','sessionStatus$','amd','getUnitId','sheet','substring','touchDependencies','Inject','pipe','UniverCore','override','add','tryStartPresenting','delete','find','UniverCollaborationClientPlugin','defs','merge','_startPresenting','Injector','replace','clear','DesktopLiveShareController','_sharedOperations','_configService','_handleOnline','Plugin','toDisposable','send','startFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverDesign','_status','getLiveShareCoordinator','dispose$','ICommandService','30KoVQLe','useState','data','dispose','registerDependencies','_commandService','NOT_FOLLOWING','_handleNewHost','LIVESHARE_NEW_HOST','subscribe','parseProtocolChangeset','then','2cAKzGv','_univerInstanceService','idSuffix','_startFollowing','UNIVER_SHEET','onStarting','Dropdown','BuiltInUIPart','LIVESHARE_TERMINATE','currentColor','_stopPresenting','You\x27are\x20offline.','asObservable','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','onCommandExecuted','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','NEW_CHANGESETS','operators','set','BehaviorSubject','LIVESHARE_OPERATION','React','@univerjs-pro/collaboration-client','Start\x20following','useDependency','map','_fetchOperations','symbol','next','jsx','SetZoomRatioOperation','getMemberID','rxjs','getOwnPropertyDescriptor','registerSharedOperation','InsertSheetMutation','13030190HMJwVy','getTypeOfUnitDisposed$','CollaborationEvent','Fragment','FOLLOWING','_collabSession','Disposable','exports','OPERATION','55028cIfWFV','IUIPartsService','createElement','@univerjs/sheets-ui','http://www.w3.org/2000/svg','_status$','none','random','takeUntil','CommandType','IConfigService','_uiPartsService','div','PRESENTING','tag','type','use','LiveShare','UniverIcon','attrs','LiveShareIcon','params','7648971PBlBhx','current','IDLE','url(#$1','stopFollowing','mask','from','stopPresenting','Subject','getCurrentTypeOfUnit$','offline','pluginName','displayName','values','assign','univer-size-4','executeCommand','xlink:href','_handleNewChangeSets','forEach','6xKfSEz','_entities','mergeOverrideWithDependencies','LiveShareCoordinator','CollaborationSessionService','_presenter','SAME_OPERATION_SHARE_INTERVAL','IUniverInstanceService','end','idle','_handleOffline','children','_init','path','live-share.config','Module','LiveShareController','_collabSessionService','_startLiveShareCoordinator','shouldShareOperation','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','4545264VsVaRe','You\x27re\x20not\x20following\x20the\x20presenter','complete','_beIdle','1em','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','entries','univerjs-icon\x20univerjs-icon-','registerInitialStateReporter','_reporters','stringify','_commandDisposable','following','evenodd','rxjs/operators','default','_handleOperation','reverse','useObservable','presenter','UniverProCollaboration','not-following','presenting','Stop\x20following','defineProperty','string','9uIjhGN','getConfig','status$','requireSession','RxDisposable','209381vFfTFK','getLiveShareCoordinatorSync','0\x200\x2017\x2017','_mountLiveShare','event$','Button','1764185bAOIZJ','unitId','jsxs','UNIVER_LIVE_SHARE_PLUGIN','113022TTbAig','UniverProCollaborationClient','fill','_injector','OFFLINE','_handleTerminate','getInitialStates','_unitID','_config','UniverUi','UniverInstanceType','trim','useRef','connectInjector','length','button','_stopFollowing'];_0x673f=function(){return _0x13eaa5;};return _0x673f();}function _0x21b7(_0x11f6f8,_0x223ff3){_0x11f6f8=_0x11f6f8-0x168;const _0x673f3e=_0x673f();let _0x21b723=_0x673f3e[_0x11f6f8];return _0x21b723;}(function(_0x433616,_0x2fff7f){const _0x4f4255=_0x21b7,_0x50449d=_0x433616();while(!![]){try{const _0x12a3e2=-parseInt(_0x4f4255(0x17e))/0x1*(-parseInt(_0x4f4255(0x1dd))/0x2)+parseInt(_0x4f4255(0x1d1))/0x3*(parseInt(_0x4f4255(0x20a))/0x4)+-parseInt(_0x4f4255(0x184))/0x5*(-parseInt(_0x4f4255(0x234))/0x6)+-parseInt(_0x4f4255(0x188))/0x7+-parseInt(_0x4f4255(0x249))/0x8+-parseInt(_0x4f4255(0x179))/0x9*(-parseInt(_0x4f4255(0x201))/0xa)+-parseInt(_0x4f4255(0x220))/0xb;if(_0x12a3e2===_0x2fff7f)break;else _0x50449d['push'](_0x50449d['shift']());}catch(_0x5233c5){_0x50449d['push'](_0x50449d['shift']());}}}(_0x673f,0xb08c6),function(_0x438697,_0x37d823){const _0x1473bf=_0x21b7;typeof exports==_0x1473bf(0x19e)&&typeof module<'u'?_0x37d823(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[_0x1473bf(0x1af)]?define([_0x1473bf(0x208),'@univerjs/core','@univerjs/ui',_0x1473bf(0x1ad),_0x1473bf(0x1a0),_0x1473bf(0x1a7),_0x1473bf(0x1a4),_0x1473bf(0x1f3),'@univerjs/sheets','rxjs',_0x1473bf(0x16d),_0x1473bf(0x20d)],_0x37d823):(_0x438697=typeof globalThis<'u'?globalThis:_0x438697||self,_0x37d823(_0x438697['UniverProLiveShare']={},_0x438697[_0x1473bf(0x1b6)],_0x438697[_0x1473bf(0x191)],_0x438697[_0x1473bf(0x1f2)],_0x438697[_0x1473bf(0x1cc)],_0x438697[_0x1473bf(0x1f2)],_0x438697[_0x1473bf(0x173)],_0x438697[_0x1473bf(0x189)],_0x438697['UniverSheets'],_0x438697[_0x1473bf(0x1fd)],_0x438697[_0x1473bf(0x1fd)][_0x1473bf(0x1ee)],_0x438697['UniverSheetsUi']));}(this,function(_0x4c092c,_0x2e2e2a,_0x502c89,_0x4dd2ba,_0x4846d0,_0x341c10,_0x4955c8,_0x47aa63,_0x46e7a5,_0x3efe4a,_0x534fd5,_0x1b842f){'use strict';const _0x21162f=_0x21b7;var _0x11832b=Object[_0x21162f(0x177)],_0x1a3013=(_0x2f296c,_0x3fbfc3,_0x9b2161)=>_0x3fbfc3 in _0x2f296c?_0x11832b(_0x2f296c,_0x3fbfc3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9b2161}):_0x2f296c[_0x3fbfc3]=_0x9b2161,_0x312f7a=(_0x5c69b7,_0x4a66e0,_0x1d7149)=>_0x1a3013(_0x5c69b7,typeof _0x4a66e0!=_0x21162f(0x1f8)?_0x4a66e0+'':_0x4a66e0,_0x1d7149);function _0x1cae13({ref:_0x2c148d,..._0x403e39}){const _0x5ed60b=_0x21162f,{icon:_0x4db2fe,id:_0xff1e83,className:_0x49f45d,extend:_0x2b141f,..._0x522be2}=_0x403e39,_0x47d2a0=(_0x5ed60b(0x250)+_0xff1e83+'\x20'+(_0x49f45d||''))[_0x5ed60b(0x193)](),_0x361b30=_0x341c10['useRef']('_'+_0x2bf7d7());return _0x3e67c0(_0x4db2fe,''+_0xff1e83,{'defIds':_0x4db2fe['defIds'],'idSuffix':_0x361b30[_0x5ed60b(0x221)]},{'ref':_0x2c148d,'className':_0x47d2a0,..._0x522be2},_0x2b141f);}function _0x3e67c0(_0x5ddd22,_0x164774,_0x3533c9,_0x211f4c,_0x3fb6ce){const _0x18393c=_0x21162f;return _0x341c10[_0x18393c(0x20c)](_0x5ddd22[_0x18393c(0x218)],{'key':_0x164774,..._0x5232e8(_0x5ddd22,_0x3533c9,_0x3fb6ce),..._0x211f4c},(_0x3e959c(_0x5ddd22,_0x3533c9)[_0x18393c(0x23f)]||[])['map']((_0x1cef31,_0xca5c53)=>_0x3e67c0(_0x1cef31,_0x164774+'-'+_0x5ddd22[_0x18393c(0x218)]+'-'+_0xca5c53,_0x3533c9,void 0x0,_0x3fb6ce)));}function _0x5232e8(_0x47fb27,_0x2881ad,_0x204147){const _0x4189b1=_0x21162f,_0x192f6b={..._0x47fb27[_0x4189b1(0x21d)]};_0x204147!=null&&_0x204147['colorChannel1']&&_0x192f6b[_0x4189b1(0x18a)]===_0x4189b1(0x19d)&&(_0x192f6b[_0x4189b1(0x18a)]=_0x204147[_0x4189b1(0x19d)]),_0x47fb27['tag']==='mask'&&_0x192f6b['id']&&(_0x192f6b['id']=_0x192f6b['id']+_0x2881ad[_0x4189b1(0x1df)]),Object[_0x4189b1(0x24f)](_0x192f6b)[_0x4189b1(0x233)](([_0x47b30a,_0x3c148a])=>{const _0x48aace=_0x4189b1;_0x47b30a===_0x48aace(0x225)&&typeof _0x3c148a=='string'&&(_0x192f6b[_0x47b30a]=_0x3c148a[_0x48aace(0x1c1)](/url\(#(.*)\)/,_0x48aace(0x223)+_0x2881ad[_0x48aace(0x1df)]+')'));});const {defIds:_0x17a51b}=_0x2881ad;return!_0x17a51b||_0x17a51b[_0x4189b1(0x196)]===0x0||(_0x47fb27[_0x4189b1(0x218)]===_0x4189b1(0x21a)&&_0x192f6b[_0x4189b1(0x231)]&&(_0x192f6b['xlink:href']=_0x192f6b['xlink:href']+_0x2881ad[_0x4189b1(0x1df)]),Object[_0x4189b1(0x24f)](_0x192f6b)[_0x4189b1(0x233)](([_0x33c8c0,_0x1fb42f])=>{const _0x2bbc51=_0x4189b1;typeof _0x1fb42f=='string'&&(_0x192f6b[_0x33c8c0]=_0x1fb42f[_0x2bbc51(0x1c1)](/url\(#(.*)\)/,_0x2bbc51(0x223)+_0x2881ad[_0x2bbc51(0x1df)]+')'));})),_0x192f6b;}function _0x3e959c(_0xbfe05c,_0x377447){const _0x4a6d28=_0x21162f;var _0x2bf849;const {defIds:_0x5e8401}=_0x377447;return!_0x5e8401||_0x5e8401[_0x4a6d28(0x196)]===0x0?_0xbfe05c:_0xbfe05c['tag']===_0x4a6d28(0x1bd)&&((_0x2bf849=_0xbfe05c[_0x4a6d28(0x23f)])!=null&&_0x2bf849['length'])?{..._0xbfe05c,'children':_0xbfe05c[_0x4a6d28(0x23f)][_0x4a6d28(0x1f6)](_0x5bf6f5=>typeof _0x5bf6f5[_0x4a6d28(0x21d)]['id']==_0x4a6d28(0x178)&&_0x5e8401&&_0x5e8401['includes'](_0x5bf6f5[_0x4a6d28(0x21d)]['id'])?{..._0x5bf6f5,'attrs':{..._0x5bf6f5[_0x4a6d28(0x21d)],'id':_0x5bf6f5['attrs']['id']+_0x377447[_0x4a6d28(0x1df)]}}:_0x5bf6f5)}:_0xbfe05c;}function _0x2bf7d7(){const _0x992517=_0x21162f;return Math[_0x992517(0x211)]()['toString'](0x24)[_0x992517(0x1b2)](0x2,0x8);}_0x1cae13['displayName']=_0x21162f(0x21c);const _0x1a490b={'tag':_0x21162f(0x1a5),'attrs':{'xmlns':_0x21162f(0x20e),'fill':_0x21162f(0x210),'viewBox':_0x21162f(0x180),'width':_0x21162f(0x24d),'height':_0x21162f(0x24d)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x21162f(0x1ea)}},{'tag':_0x21162f(0x241),'attrs':{'fill':_0x21162f(0x1e6),'d':_0x21162f(0x248),'fillRule':_0x21162f(0x16c),'clipRule':'evenodd'}}]},_0x258bab=_0x341c10[_0x21162f(0x19f)](function(_0x94df1,_0x78fb31){const _0x362cf0=_0x21162f;return _0x341c10[_0x362cf0(0x20c)](_0x1cae13,Object[_0x362cf0(0x22e)]({},_0x94df1,{'id':'live-share-icon','ref':_0x78fb31,'icon':_0x1a490b}));});_0x258bab[_0x21162f(0x22c)]=_0x21162f(0x21e);class _0x1398e7 extends _0x2e2e2a[_0x21162f(0x207)]{constructor(){const _0x4aca56=_0x21162f;super(...arguments),_0x312f7a(this,_0x4aca56(0x1c4),new Set()),_0x312f7a(this,_0x4aca56(0x168),new Set());}[_0x21162f(0x1ff)](_0x51dd36){const _0x2269fd=_0x21162f;return this[_0x2269fd(0x1c4)][_0x2269fd(0x1b8)](_0x51dd36),_0x2e2e2a[_0x2269fd(0x1c8)](()=>this[_0x2269fd(0x1c4)][_0x2269fd(0x1ba)](_0x51dd36));}[_0x21162f(0x251)](_0x114588){const _0x4b9d7d=_0x21162f;return this['_reporters']['add'](_0x114588),_0x2e2e2a[_0x4b9d7d(0x1c8)](()=>this['_reporters']['delete'](_0x114588));}[_0x21162f(0x247)](_0xf78186){const _0x24fcdd=_0x21162f;return this[_0x24fcdd(0x1c4)][_0x24fcdd(0x1ab)](_0xf78186);}['getInitialStates'](_0x3229aa){const _0x4f5386=_0x21162f;return Array[_0x4f5386(0x226)](this[_0x4f5386(0x168)])['map'](_0xd2aada=>_0xd2aada(_0x3229aa));}}var _0x2daf1f=Object[_0x21162f(0x1fe)],_0x555952=(_0x55a0a5,_0x3ded10,_0x11af96,_0x2782cf)=>{const _0x45fdb6=_0x21162f;for(var _0x518955=_0x2782cf>0x1?void 0x0:_0x2782cf?_0x2daf1f(_0x3ded10,_0x11af96):_0x3ded10,_0x5deb24=_0x55a0a5[_0x45fdb6(0x196)]-0x1,_0x28590d;_0x5deb24>=0x0;_0x5deb24--)(_0x28590d=_0x55a0a5[_0x5deb24])&&(_0x518955=_0x28590d(_0x518955)||_0x518955);return _0x518955;},_0x3e201c=(_0x1ec2c3,_0x49fc68)=>(_0x2b9b36,_0x17f842)=>_0x49fc68(_0x2b9b36,_0x17f842,_0x1ec2c3);_0x4c092c[_0x21162f(0x244)]=class extends _0x2e2e2a['RxDisposable']{constructor(_0x25ee6e,_0x20783e,_0xc05f4e){const _0x40ec18=_0x21162f;super(),_0x312f7a(this,_0x40ec18(0x235),new Map()),(this[_0x40ec18(0x1de)]=_0x25ee6e,this[_0x40ec18(0x18b)]=_0x20783e,this[_0x40ec18(0x245)]=_0xc05f4e,this[_0x40ec18(0x240)]());}async[_0x21162f(0x1ce)](_0x3481c4){const _0x405855=_0x21162f;return this[_0x405855(0x235)][_0x405855(0x1ab)](_0x3481c4)||await this['_startLiveShareCoordinator'](_0x3481c4),this['_entities'][_0x405855(0x1a3)](_0x3481c4);}[_0x21162f(0x17f)](_0x2a0cd9){const _0x23a1a5=_0x21162f;var _0x19347b;return(_0x19347b=this['_entities'][_0x23a1a5(0x1a3)](_0x2a0cd9))!=null?_0x19347b:null;}[_0x21162f(0x240)](){const _0x49017d=_0x21162f;this[_0x49017d(0x1de)]['getTypeOfUnitAdded$'](_0x2e2e2a[_0x49017d(0x192)]['UNIVER_SHEET'])[_0x49017d(0x1b5)](_0x534fd5['takeUntil'](this[_0x49017d(0x1cf)]))[_0x49017d(0x1da)](async _0x59830d=>{const _0x3b1af5=_0x49017d,_0x2e20b9=_0x59830d[_0x3b1af5(0x1b0)]();this[_0x3b1af5(0x235)]['has'](_0x2e20b9)||this[_0x3b1af5(0x246)](_0x2e20b9);}),this[_0x49017d(0x1de)][_0x49017d(0x202)](_0x2e2e2a[_0x49017d(0x192)][_0x49017d(0x1e1)])[_0x49017d(0x1b5)](_0x534fd5[_0x49017d(0x212)](this[_0x49017d(0x1cf)]))['subscribe'](_0x5629e6=>{const _0x408d8b=_0x49017d,_0x22b920=_0x5629e6['getUnitId'](),_0x5c2667=this['_entities'][_0x408d8b(0x1a3)](_0x22b920);_0x5c2667==null||_0x5c2667[_0x408d8b(0x1d4)]();});}async[_0x21162f(0x246)](_0x51f0bc){const _0x89a6cc=_0x21162f,_0x1f3a67=await this[_0x89a6cc(0x245)][_0x89a6cc(0x17c)](_0x51f0bc),_0x1ce7fa=this[_0x89a6cc(0x18b)][_0x89a6cc(0x19c)](_0x4c092c[_0x89a6cc(0x237)],_0x51f0bc,_0x1f3a67);return _0x1ce7fa['init'](),this[_0x89a6cc(0x235)][_0x89a6cc(0x1ef)](_0x51f0bc,_0x1ce7fa),_0x1ce7fa;}},_0x4c092c[_0x21162f(0x244)]=_0x555952([_0x3e201c(0x0,_0x2e2e2a[_0x21162f(0x23b)]),_0x3e201c(0x1,_0x2e2e2a[_0x21162f(0x1b4)](_0x2e2e2a['Injector'])),_0x3e201c(0x2,_0x2e2e2a['Inject'](_0x47aa63[_0x21162f(0x238)]))],_0x4c092c['LiveShareController']);var _0x33f89a=(_0x5e2986=>(_0x5e2986[_0x21162f(0x18c)]=_0x21162f(0x22a),_0x5e2986[_0x21162f(0x222)]=_0x21162f(0x23d),_0x5e2986[_0x21162f(0x205)]=_0x21162f(0x16b),_0x5e2986[_0x21162f(0x1d7)]=_0x21162f(0x174),_0x5e2986[_0x21162f(0x217)]='presenting',_0x5e2986))(_0x33f89a||{});const _0x298f5c=_0x21162f(0x23a),_0x33c563=0xc8;_0x4c092c[_0x21162f(0x237)]=class extends _0x2e2e2a[_0x21162f(0x17d)]{constructor(_0x500471,_0xcae1ac,_0x44d80e,_0x4fd3d9,_0x54f937){const _0x28f7ff=_0x21162f;super(),_0x312f7a(this,_0x28f7ff(0x20f),new _0x3efe4a[(_0x28f7ff(0x1f0))]('idle')),_0x312f7a(this,_0x28f7ff(0x17b),this['_status$'][_0x28f7ff(0x1e9)]()),_0x312f7a(this,_0x28f7ff(0x240),!0x1),_0x312f7a(this,_0x28f7ff(0x16a),null),_0x312f7a(this,'_presenter',null),(this['_unitID']=_0x500471,this[_0x28f7ff(0x206)]=_0xcae1ac,this[_0x28f7ff(0x1c5)]=_0x44d80e,this[_0x28f7ff(0x1a9)]=_0x4fd3d9,this[_0x28f7ff(0x1d6)]=_0x54f937);}get[_0x21162f(0x1cd)](){const _0x27cb77=_0x21162f;return this[_0x27cb77(0x20f)]['getValue']();}[_0x21162f(0x1d4)](){const _0x17523a=_0x21162f;var _0x43ab2e;(_0x43ab2e=this['_commandDisposable'])==null||_0x43ab2e['dispose'](),this[_0x17523a(0x20f)][_0x17523a(0x1f9)](_0x17523a(0x23d)),this[_0x17523a(0x20f)][_0x17523a(0x24b)]();}[_0x21162f(0x1a1)](){return this['_status'];}['init'](){const _0x258a51=_0x21162f;this['_init']||(this[_0x258a51(0x240)]=!0x0,this[_0x258a51(0x206)][_0x258a51(0x1ae)]['pipe'](_0x534fd5[_0x258a51(0x212)](this[_0x258a51(0x1cf)]))[_0x258a51(0x1da)](_0x1a856e=>{const _0x4fbb22=_0x258a51;switch(_0x1a856e){case _0x47aa63['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x47aa63['SessionStatus']['ONLINE']:this[_0x4fbb22(0x1c6)]();break;}}),this[_0x258a51(0x206)][_0x258a51(0x182)][_0x258a51(0x1b5)](_0x534fd5[_0x258a51(0x212)](this['dispose$']))[_0x258a51(0x1da)](_0x498dd1=>{const _0x4a05fb=_0x258a51,{eventID:_0x27c922}=_0x498dd1;switch(_0x27c922){case _0x4955c8[_0x4a05fb(0x203)][_0x4a05fb(0x1d9)]:this[_0x4a05fb(0x1d8)](_0x498dd1);break;case _0x4955c8[_0x4a05fb(0x203)][_0x4a05fb(0x1f1)]:this[_0x4a05fb(0x16f)](_0x498dd1);break;case _0x4955c8['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x4a05fb(0x18d)]();break;case _0x4955c8['CollaborationEvent'][_0x4a05fb(0x1ed)]:this[_0x4a05fb(0x232)](_0x498dd1);break;}}));}[_0x21162f(0x1b9)](){const _0x226a3a=_0x21162f;this[_0x226a3a(0x206)][_0x226a3a(0x1c9)]({'eventID':_0x4955c8['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x226a3a(0x18f)],'userID':this[_0x226a3a(0x206)][_0x226a3a(0x1fc)]()}},this[_0x226a3a(0x18f)]);}[_0x21162f(0x227)](){const _0x5d1168=_0x21162f;this[_0x5d1168(0x1cd)]===_0x5d1168(0x175)&&(this[_0x5d1168(0x20f)][_0x5d1168(0x1f9)](_0x5d1168(0x23d)),this['_collabSession']['send']({'eventID':_0x4955c8[_0x5d1168(0x203)][_0x5d1168(0x1e5)],'data':{'unitID':this[_0x5d1168(0x18f)]}},this[_0x5d1168(0x18f)]));}['startFollowing'](){const _0x14271e=_0x21162f;this[_0x14271e(0x1cd)]==='not-following'&&(this[_0x14271e(0x20f)][_0x14271e(0x1f9)](_0x14271e(0x16b)),this[_0x14271e(0x1e0)]());}[_0x21162f(0x224)](){const _0x20a8de=_0x21162f;this['_status']===_0x20a8de(0x16b)&&this[_0x20a8de(0x198)]();}[_0x21162f(0x1d8)](_0x3d11fd){const _0x54a1c9=_0x21162f,{presenter:_0x3b5291}=_0x3d11fd[_0x54a1c9(0x1d3)],_0x11e24f=this[_0x54a1c9(0x206)][_0x54a1c9(0x1fc)]();this[_0x54a1c9(0x239)]=_0x3b5291,_0x3b5291===_0x11e24f?(this[_0x54a1c9(0x198)](),this[_0x54a1c9(0x1bf)]()):this[_0x54a1c9(0x1cd)]!==_0x54a1c9(0x174)&&(this[_0x54a1c9(0x1e7)](),this['_startFollowing']());}[_0x21162f(0x1f7)](){const _0x1e2071=_0x21162f,_0x3f48a1={'eventID':_0x4955c8['CollaborationEvent'][_0x1e2071(0x19a)]};this[_0x1e2071(0x206)]['send'](_0x3f48a1,this[_0x1e2071(0x18f)]);}['_handleTerminate'](){const _0x37acf4=_0x21162f;this['_presenter']=null,this[_0x37acf4(0x1cd)]!==_0x37acf4(0x175)&&this[_0x37acf4(0x24c)]();}[_0x21162f(0x232)](_0x2d84a1){const _0x146ba1=_0x21162f;if(this[_0x146ba1(0x1cd)]==='following'&&this['_presenter']===_0x2d84a1['data']['memberID']){const _0x232d46=_0x4955c8[_0x146ba1(0x1db)](_0x2d84a1[_0x146ba1(0x1d3)])['mutations'][_0x146ba1(0x170)]()[_0x146ba1(0x1bb)](_0x14c4df=>_0x14c4df['id']===_0x46e7a5[_0x146ba1(0x200)]['id']);if(_0x232d46){const _0x17569b=_0x232d46[_0x146ba1(0x21f)][_0x146ba1(0x185)],_0x4440fa=_0x232d46[_0x146ba1(0x21f)][_0x146ba1(0x1b1)]['id'];setTimeout(()=>{const _0x383f98=_0x146ba1;this['_commandService'][_0x383f98(0x230)](_0x46e7a5['SetWorksheetActiveOperation']['id'],{'unitId':_0x17569b,'subUnitId':_0x4440fa},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0xbf6bab=_0x21162f;this[_0xbf6bab(0x20f)]['next']('presenting');const _0x60e3f6=new Map(),_0x32634d=this[_0xbf6bab(0x16a)]=new _0x2e2e2a[(_0xbf6bab(0x1aa))]();_0x32634d[_0xbf6bab(0x1b8)](_0x2e2e2a[_0xbf6bab(0x1c8)](()=>{const _0x5a1476=_0xbf6bab;_0x60e3f6[_0x5a1476(0x233)](_0x100bbf=>_0x100bbf[_0x5a1476(0x24b)]()),_0x60e3f6[_0x5a1476(0x1c2)]();})),_0x32634d['add'](this[_0xbf6bab(0x1d6)][_0xbf6bab(0x1eb)](_0x5ae05d=>{const _0x59f320=_0xbf6bab;var _0x555e3e;if(_0x5ae05d['type']!==_0x2e2e2a[_0x59f320(0x213)][_0x59f320(0x209)]||!this[_0x59f320(0x1a9)]['shouldShareOperation'](_0x5ae05d['id']))return;const {id:_0x316366}=_0x5ae05d;let _0x4b352e;_0x60e3f6[_0x59f320(0x1ab)](_0x316366)?_0x4b352e=_0x60e3f6['get'](_0x316366):(_0x4b352e=new _0x3efe4a[(_0x59f320(0x228))](),_0x60e3f6['set'](_0x316366,_0x4b352e),_0x4b352e[_0x59f320(0x1b5)](_0x534fd5['throttleTime']((_0x555e3e=this[_0x59f320(0x1c5)][_0x59f320(0x17a)](_0x298f5c))!=null?_0x555e3e:_0x33c563,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59f320(0x1da)](_0x406c0f=>{const _0x3e0b47=_0x59f320;this[_0x3e0b47(0x206)][_0x3e0b47(0x1c9)]({'eventID':_0x4955c8[_0x3e0b47(0x203)][_0x3e0b47(0x1f1)],'data':{'unitID':this[_0x3e0b47(0x18f)],'operations':{[_0x406c0f['id']]:{'id':_0x406c0f['id'],'params':JSON[_0x3e0b47(0x169)](_0x406c0f[_0x3e0b47(0x21f)])}}}},this[_0x3e0b47(0x18f)]);})),_0x4b352e[_0x59f320(0x1f9)](_0x5ae05d);})),this[_0xbf6bab(0x1a9)][_0xbf6bab(0x18e)](this[_0xbf6bab(0x18f)])[_0xbf6bab(0x233)](_0x87d723=>this[_0xbf6bab(0x206)][_0xbf6bab(0x1c9)]({'eventID':_0x4955c8[_0xbf6bab(0x203)][_0xbf6bab(0x1f1)],'data':{'unitID':this[_0xbf6bab(0x18f)],'operations':{[_0x87d723['id']]:{'id':_0x87d723['id'],'params':JSON[_0xbf6bab(0x169)](_0x87d723[_0xbf6bab(0x21f)])}}}},this[_0xbf6bab(0x18f)]));}[_0x21162f(0x1e7)](){const _0x588f2d=_0x21162f;var _0x32a8cd;this[_0x588f2d(0x20f)][_0x588f2d(0x1f9)](_0x588f2d(0x23d)),(_0x32a8cd=this[_0x588f2d(0x16a)])==null||_0x32a8cd[_0x588f2d(0x1d4)](),this['_commandDisposable']=null;}[_0x21162f(0x1e0)](){const _0x5170f2=_0x21162f;var _0x588726;(_0x588726=this['_commandDisposable'])==null||_0x588726['dispose'](),this[_0x5170f2(0x20f)][_0x5170f2(0x1f9)](_0x5170f2(0x16b));}[_0x21162f(0x24c)](){const _0x5ac5e4=_0x21162f;var _0x37d885;this['_status$'][_0x5ac5e4(0x1f9)](_0x5ac5e4(0x23d)),(_0x37d885=this[_0x5ac5e4(0x16a)])==null||_0x37d885[_0x5ac5e4(0x1d4)](),this[_0x5ac5e4(0x16a)]=null;}[_0x21162f(0x198)](){const _0x35e413=_0x21162f;var _0x28b59f;this[_0x35e413(0x20f)][_0x35e413(0x1f9)](_0x35e413(0x174)),(_0x28b59f=this[_0x35e413(0x16a)])==null||_0x28b59f[_0x35e413(0x1d4)]();}[_0x21162f(0x16f)](_0x257948){const _0x5b9079=_0x21162f;if([_0x5b9079(0x175),'not-following',_0x5b9079(0x22a)]['includes'](this[_0x5b9079(0x1cd)])||!_0x257948[_0x5b9079(0x1d3)][_0x5b9079(0x172)]||_0x257948[_0x5b9079(0x1d3)]['presenter']===this[_0x5b9079(0x206)][_0x5b9079(0x1fc)]())return;this[_0x5b9079(0x1cd)]===_0x5b9079(0x23d)&&this['_startFollowing']();const _0x1afa8a=_0x257948[_0x5b9079(0x1d3)][_0x5b9079(0x1a6)];Object[_0x5b9079(0x22d)](_0x1afa8a)[_0x5b9079(0x233)](_0x269472=>{const _0x5f3080=_0x5b9079;this[_0x5f3080(0x1d6)][_0x5f3080(0x230)](_0x269472['id'],_0x269472['params']?JSON['parse'](_0x269472[_0x5f3080(0x21f)]):null,{'fromCollab':!0x0});});}[_0x21162f(0x23e)](){const _0x2f4fb8=_0x21162f;var _0x2dbd05;this['_status$'][_0x2f4fb8(0x1f9)](_0x2f4fb8(0x22a)),(_0x2dbd05=this[_0x2f4fb8(0x16a)])==null||_0x2dbd05['dispose']();}[_0x21162f(0x1c6)](){const _0x1e92c3=_0x21162f;this[_0x1e92c3(0x20f)][_0x1e92c3(0x1f9)](_0x1e92c3(0x23d)),this[_0x1e92c3(0x1f7)]();}},_0x4c092c[_0x21162f(0x237)]=_0x555952([_0x3e201c(0x2,_0x2e2e2a[_0x21162f(0x214)]),_0x3e201c(0x3,_0x2e2e2a['Inject'](_0x1398e7)),_0x3e201c(0x4,_0x2e2e2a[_0x21162f(0x1d0)])],_0x4c092c[_0x21162f(0x237)]);function _0x444d64(){const _0x25e53=_0x21162f,_0x35ebc9=_0x502c89['useDependency'](_0x4c092c[_0x25e53(0x244)]),_0x26da3d=_0x502c89[_0x25e53(0x1f5)](_0x2e2e2a['IUniverInstanceService']),_0x164bed=_0x502c89[_0x25e53(0x171)](()=>_0x26da3d[_0x25e53(0x229)](_0x2e2e2a['UniverInstanceType'][_0x25e53(0x1e1)]),void 0x0,!0x1,[]),[_0x556b1e,_0x5d7db8]=_0x341c10['useState'](null),[_0xc51d35,_0x2db41e]=_0x341c10[_0x25e53(0x1d2)](_0x33f89a[_0x25e53(0x222)]),_0x1a37eb=_0x341c10[_0x25e53(0x194)](null);return _0x341c10['useEffect'](()=>(_0x164bed&&_0x35ebc9[_0x25e53(0x1ce)](_0x164bed[_0x25e53(0x1b0)]())[_0x25e53(0x1dc)](_0x12b4d3=>{const _0x59826c=_0x25e53;_0x5d7db8(_0x12b4d3),_0x1a37eb['current']=_0x12b4d3[_0x59826c(0x17b)]['subscribe'](_0x9a1bf4=>{_0x2db41e(_0x9a1bf4);});}),()=>{const _0x52c0f6=_0x25e53;var _0x374bf0;(_0x374bf0=_0x1a37eb['current'])==null||_0x374bf0['unsubscribe'](),_0x1a37eb[_0x52c0f6(0x221)]=null;}),[_0x164bed,_0x35ebc9]),_0x556b1e?_0x4dd2ba[_0x25e53(0x1fa)](_0x4846d0[_0x25e53(0x1e3)],{'align':_0x25e53(0x23c),'disabled':_0xc51d35===_0x33f89a[_0x25e53(0x18c)],'className':_0x25e53(0x1ec),'overlay':_0x4dd2ba[_0x25e53(0x1fa)](_0x429767,{'status':_0xc51d35,'coordinator':_0x556b1e}),'children':_0x4dd2ba['jsx'](_0x25e53(0x197),{'className':_0x4846d0['clsx'](_0x25e53(0x24e),{'univer-cursor-not-allowed':_0xc51d35===_0x33f89a['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc51d35!==_0x33f89a[_0x25e53(0x18c)]}),'type':'button','children':_0x4dd2ba[_0x25e53(0x1fa)](_0x258bab,{'className':_0x25e53(0x22f)})})}):null;}function _0x429767(_0x3729a9){const _0x41de90=_0x21162f,{status:_0x2717b0,coordinator:_0x10bd41}=_0x3729a9;switch(_0x2717b0){case _0x33f89a[_0x41de90(0x222)]:return _0x4dd2ba['jsx'](_0x10f7f3,{'coordinator':_0x10bd41});case _0x33f89a['FOLLOWING']:return _0x4dd2ba[_0x41de90(0x1fa)](_0x52eeaa,{'coordinator':_0x10bd41});case _0x33f89a[_0x41de90(0x1d7)]:return _0x4dd2ba['jsx'](_0x3aeed7,{'coordinator':_0x10bd41});case _0x33f89a[_0x41de90(0x18c)]:return _0x4dd2ba[_0x41de90(0x1fa)](_0x1f1b2,{});case _0x33f89a[_0x41de90(0x217)]:return _0x4dd2ba[_0x41de90(0x1fa)](_0x23c6e0,{'coordinator':_0x10bd41});default:return null;}}function _0x10f7f3(_0x1cc0e9){const _0x379d9a=_0x21162f,{coordinator:_0x129e0d}=_0x1cc0e9;return _0x4dd2ba[_0x379d9a(0x186)](_0x4dd2ba[_0x379d9a(0x204)],{'children':[_0x4dd2ba[_0x379d9a(0x1fa)](_0x379d9a(0x216),{'className':_0x379d9a(0x1cb),'children':'Present\x20this\x20document'}),_0x4dd2ba[_0x379d9a(0x1fa)](_0x4846d0[_0x379d9a(0x183)],{'onClick':()=>_0x129e0d['tryStartPresenting'](),'children':_0x379d9a(0x1a2)})]});}function _0x52eeaa(_0x3f3d33){const _0x457213=_0x21162f,{coordinator:_0x233d1b}=_0x3f3d33;return _0x4dd2ba[_0x457213(0x186)](_0x4dd2ba[_0x457213(0x204)],{'children':[_0x4dd2ba['jsx'](_0x457213(0x216),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x4dd2ba[_0x457213(0x1fa)](_0x4846d0[_0x457213(0x183)],{'onClick':()=>_0x233d1b[_0x457213(0x224)](),'children':_0x457213(0x176)})]});}function _0x3aeed7(_0x85f9b){const _0x330855=_0x21162f,{coordinator:_0x4f4bef}=_0x85f9b;return _0x4dd2ba['jsxs'](_0x4dd2ba[_0x330855(0x204)],{'children':[_0x4dd2ba[_0x330855(0x1fa)](_0x330855(0x216),{'className':_0x330855(0x1cb),'children':_0x330855(0x24a)}),_0x4dd2ba['jsx'](_0x4846d0[_0x330855(0x183)],{'variant':'text','onClick':()=>_0x4f4bef[_0x330855(0x1ca)](),'children':_0x330855(0x1f4)})]});}function _0x23c6e0(_0x215175){const _0x1919ca=_0x21162f,{coordinator:_0x5976b6}=_0x215175;return _0x4dd2ba['jsxs'](_0x4dd2ba['Fragment'],{'children':[_0x4dd2ba['jsx'](_0x1919ca(0x216),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4dd2ba[_0x1919ca(0x1fa)](_0x4846d0[_0x1919ca(0x183)],{'variant':_0x1919ca(0x16e),'onClick':()=>_0x5976b6[_0x1919ca(0x227)](),'children':_0x1919ca(0x1a8)})]});}function _0x1f1b2(){const _0x3c525e=_0x21162f;return _0x4dd2ba[_0x3c525e(0x1fa)](_0x4dd2ba['Fragment'],{'children':_0x3c525e(0x1e8)});}var _0x470695=Object[_0x21162f(0x1fe)],_0x25e421=(_0x5bc8cf,_0x4cf7f5,_0x15b71a,_0xbcbf8d)=>{const _0x32dcdb=_0x21162f;for(var _0x396d76=_0xbcbf8d>0x1?void 0x0:_0xbcbf8d?_0x470695(_0x4cf7f5,_0x15b71a):_0x4cf7f5,_0x4c2f5d=_0x5bc8cf[_0x32dcdb(0x196)]-0x1,_0x5d5ecf;_0x4c2f5d>=0x0;_0x4c2f5d--)(_0x5d5ecf=_0x5bc8cf[_0x4c2f5d])&&(_0x396d76=_0x5d5ecf(_0x396d76)||_0x396d76);return _0x396d76;},_0x544488=(_0x3262a6,_0x4cf09c)=>(_0x4e211b,_0x554a7b)=>_0x4cf09c(_0x4e211b,_0x554a7b,_0x3262a6);_0x4c092c[_0x21162f(0x1c3)]=class extends _0x2e2e2a['Disposable']{constructor(_0x1a9817,_0x428c5e){const _0xee00b0=_0x21162f;super(),this[_0xee00b0(0x18b)]=_0x1a9817,this[_0xee00b0(0x215)]=_0x428c5e,this[_0xee00b0(0x181)]();}[_0x21162f(0x181)](){const _0x1a0a19=_0x21162f;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x502c89[_0x1a0a19(0x1e4)]['HEADER_MENU'],()=>_0x502c89[_0x1a0a19(0x195)](_0x444d64,this[_0x1a0a19(0x18b)])));}},_0x4c092c[_0x21162f(0x1c3)]=_0x25e421([_0x544488(0x0,_0x2e2e2a[_0x21162f(0x1b4)](_0x2e2e2a[_0x21162f(0x1c0)])),_0x544488(0x1,_0x502c89[_0x21162f(0x20b)])],_0x4c092c[_0x21162f(0x1c3)]);const _0x39c17a=_0x21162f(0x242),_0x334c40={};var _0x51f803=Object[_0x21162f(0x1fe)],_0x444d1d=(_0x40383a,_0x2a26a9,_0x4e7db7,_0x4dc353)=>{const _0x2ac081=_0x21162f;for(var _0x5b2e01=_0x4dc353>0x1?void 0x0:_0x4dc353?_0x51f803(_0x2a26a9,_0x4e7db7):_0x2a26a9,_0x1743c0=_0x40383a[_0x2ac081(0x196)]-0x1,_0x3f9cba;_0x1743c0>=0x0;_0x1743c0--)(_0x3f9cba=_0x40383a[_0x1743c0])&&(_0x5b2e01=_0x3f9cba(_0x5b2e01)||_0x5b2e01);return _0x5b2e01;},_0x8d9692=(_0x516ad8,_0x39df3e)=>(_0x2b42c0,_0x59b384)=>_0x39df3e(_0x2b42c0,_0x59b384,_0x516ad8);let _0x2b42a7=class extends _0x2e2e2a[_0x21162f(0x207)]{constructor(_0x2a6edb){const _0x52f1c2=_0x21162f;super(),this[_0x52f1c2(0x1a9)]=_0x2a6edb,this['_init']();}[_0x21162f(0x240)](){const _0xaa0d2e=_0x21162f;[_0x1b842f[_0xaa0d2e(0x1fb)]['id'],_0x1b842f['SetScrollOperation']['id'],_0x46e7a5['SetWorksheetActiveOperation']['id']][_0xaa0d2e(0x233)](_0x5848f5=>{const _0x5a7ec8=_0xaa0d2e;this[_0x5a7ec8(0x1ac)](this[_0x5a7ec8(0x1a9)][_0x5a7ec8(0x1ff)](_0x5848f5));});}};_0x2b42a7=_0x444d1d([_0x8d9692(0x0,_0x2e2e2a[_0x21162f(0x1b4)](_0x1398e7))],_0x2b42a7);var _0x3b9230=Object[_0x21162f(0x177)],_0x1ecff6=Object['getOwnPropertyDescriptor'],_0x10febe=(_0x1a03d7,_0x2088d5,_0x2e57d8)=>_0x2088d5 in _0x1a03d7?_0x3b9230(_0x1a03d7,_0x2088d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e57d8}):_0x1a03d7[_0x2088d5]=_0x2e57d8,_0x5a585d=(_0x176b48,_0x1fae57,_0xceca94,_0x41aa29)=>{const _0x5ce54f=_0x21162f;for(var _0x29fd49=_0x41aa29>0x1?void 0x0:_0x41aa29?_0x1ecff6(_0x1fae57,_0xceca94):_0x1fae57,_0x37cf38=_0x176b48[_0x5ce54f(0x196)]-0x1,_0x1362d8;_0x37cf38>=0x0;_0x37cf38--)(_0x1362d8=_0x176b48[_0x37cf38])&&(_0x29fd49=_0x1362d8(_0x29fd49)||_0x29fd49);return _0x29fd49;},_0x53b8c0=(_0x5915dc,_0x2b2f84)=>(_0x3044f4,_0x3bbf02)=>_0x2b2f84(_0x3044f4,_0x3bbf02,_0x5915dc),_0x1e0dd1=(_0x9b63a4,_0x3d2404,_0x5cb17d)=>_0x10febe(_0x9b63a4,typeof _0x3d2404!=_0x21162f(0x1f8)?_0x3d2404+'':_0x3d2404,_0x5cb17d);const _0x1ef154=_0x21162f(0x187);_0x4c092c['UniverLiveSharePlugin']=class extends _0x2e2e2a[_0x21162f(0x1c7)]{constructor(_0x2f3b9b=_0x334c40,_0x2d0683,_0x3240ee){const _0x358f61=_0x21162f;super(),this[_0x358f61(0x190)]=_0x2f3b9b,this[_0x358f61(0x18b)]=_0x2d0683,this[_0x358f61(0x1c5)]=_0x3240ee;const {..._0x547ed6}=_0x2e2e2a[_0x358f61(0x1be)]({},_0x334c40,this['_config']);this['_configService']['setConfig'](_0x39c17a,_0x547ed6);}[_0x21162f(0x1e2)](){const _0x3f9533=_0x21162f;_0x2e2e2a[_0x3f9533(0x1d5)](this['_injector'],_0x2e2e2a[_0x3f9533(0x236)]([[_0x1398e7],[_0x4c092c[_0x3f9533(0x244)]],[_0x2b42a7],[_0x4c092c[_0x3f9533(0x1c3)]]],this[_0x3f9533(0x190)][_0x3f9533(0x1b7)])),_0x2e2e2a[_0x3f9533(0x1b3)](this[_0x3f9533(0x18b)],[[_0x2b42a7]]);}['onRendered'](){const _0x127d87=_0x21162f;_0x2e2e2a['touchDependencies'](this['_injector'],[[_0x4c092c[_0x127d87(0x1c3)]]]);}},_0x1e0dd1(_0x4c092c[_0x21162f(0x199)],_0x21162f(0x219),_0x2e2e2a[_0x21162f(0x192)]['UNIVER_UNKNOWN']),_0x1e0dd1(_0x4c092c[_0x21162f(0x199)],_0x21162f(0x22b),_0x1ef154),_0x4c092c['UniverLiveSharePlugin']=_0x5a585d([_0x2e2e2a['DependentOn'](_0x47aa63[_0x21162f(0x1bc)]),_0x53b8c0(0x1,_0x2e2e2a[_0x21162f(0x1b4)](_0x2e2e2a['Injector'])),_0x53b8c0(0x2,_0x2e2e2a[_0x21162f(0x214)])],_0x4c092c['UniverLiveSharePlugin']),_0x4c092c[_0x21162f(0x21b)]=_0x444d64,_0x4c092c[_0x21162f(0x19b)]=_0x1398e7,_0x4c092c['LiveShareStatus']=_0x33f89a,Object[_0x21162f(0x177)](_0x4c092c,Symbol['toStringTag'],{'value':_0x21162f(0x243)});}));
1
+ function _0x1659(_0x326b71,_0x3f19be){_0x326b71=_0x326b71-0x151;const _0x5f012e=_0x5f01();let _0x1659f1=_0x5f012e[_0x326b71];return _0x1659f1;}(function(_0x1fbaf3,_0x16bad7){const _0x246ab1=_0x1659,_0x4a5478=_0x1fbaf3();while(!![]){try{const _0x446009=parseInt(_0x246ab1(0x17a))/0x1+-parseInt(_0x246ab1(0x206))/0x2+-parseInt(_0x246ab1(0x1da))/0x3*(parseInt(_0x246ab1(0x17e))/0x4)+-parseInt(_0x246ab1(0x232))/0x5*(-parseInt(_0x246ab1(0x1df))/0x6)+parseInt(_0x246ab1(0x1ac))/0x7+parseInt(_0x246ab1(0x1af))/0x8*(-parseInt(_0x246ab1(0x17c))/0x9)+-parseInt(_0x246ab1(0x15b))/0xa*(-parseInt(_0x246ab1(0x18f))/0xb);if(_0x446009===_0x16bad7)break;else _0x4a5478['push'](_0x4a5478['shift']());}catch(_0x30ca97){_0x4a5478['push'](_0x4a5478['shift']());}}}(_0x5f01,0xd2bbc),function(_0x29e3cb,_0xd606d9){const _0x3ce164=_0x1659;typeof exports==_0x3ce164(0x1ee)&&typeof module<'u'?_0xd606d9(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x3ce164(0x172)&&define['amd']?define([_0x3ce164(0x191),_0x3ce164(0x18a),_0x3ce164(0x20b),'react/jsx-runtime',_0x3ce164(0x15c),_0x3ce164(0x1b4),_0x3ce164(0x218),_0x3ce164(0x176),_0x3ce164(0x17b),_0x3ce164(0x169),_0x3ce164(0x19e),'@univerjs/sheets-ui'],_0xd606d9):(_0x29e3cb=typeof globalThis<'u'?globalThis:_0x29e3cb||self,_0xd606d9(_0x29e3cb[_0x3ce164(0x1d6)]={},_0x29e3cb['UniverCore'],_0x29e3cb['UniverUi'],_0x29e3cb[_0x3ce164(0x178)],_0x29e3cb['UniverDesign'],_0x29e3cb[_0x3ce164(0x178)],_0x29e3cb[_0x3ce164(0x158)],_0x29e3cb[_0x3ce164(0x1e9)],_0x29e3cb[_0x3ce164(0x1e6)],_0x29e3cb[_0x3ce164(0x169)],_0x29e3cb[_0x3ce164(0x169)][_0x3ce164(0x1b6)],_0x29e3cb[_0x3ce164(0x210)]));}(this,function(_0x3c7f27,_0x1a4663,_0x445c44,_0x48b374,_0x4bbbf8,_0x1a8c05,_0xad8d23,_0x483082,_0x54971f,_0x5cb817,_0x42de0b,_0x1b8ea2){'use strict';const _0x1f790e=_0x1659;var _0x1a2a6c=Object['defineProperty'],_0x4c18ef=(_0x125bcc,_0x5421cf,_0x330b2c)=>_0x5421cf in _0x125bcc?_0x1a2a6c(_0x125bcc,_0x5421cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x330b2c}):_0x125bcc[_0x5421cf]=_0x330b2c,_0x505340=(_0x3e05d3,_0x2fe4f3,_0x325d3f)=>_0x4c18ef(_0x3e05d3,typeof _0x2fe4f3!='symbol'?_0x2fe4f3+'':_0x2fe4f3,_0x325d3f);function _0x405622({ref:_0x57fe4f,..._0x1563b2}){const _0x40c969=_0x1659,{icon:_0x5f0984,id:_0x497b9a,className:_0x34767c,extend:_0x3e817c,..._0x47f4e4}=_0x1563b2,_0x3865ca=(_0x40c969(0x153)+_0x497b9a+'\x20'+(_0x34767c||''))[_0x40c969(0x21e)](),_0xaf393a=_0x1a8c05[_0x40c969(0x180)]('_'+_0x20c3f7());return _0xfb1f8d(_0x5f0984,''+_0x497b9a,{'defIds':_0x5f0984[_0x40c969(0x1ca)],'idSuffix':_0xaf393a['current']},{'ref':_0x57fe4f,'className':_0x3865ca,..._0x47f4e4},_0x3e817c);}function _0xfb1f8d(_0x389e39,_0x362f55,_0x51e016,_0x3f3a98,_0x5da228){const _0x4819e8=_0x1659;return _0x1a8c05['createElement'](_0x389e39['tag'],{'key':_0x362f55,..._0x419a3a(_0x389e39,_0x51e016,_0x5da228),..._0x3f3a98},(_0x394acd(_0x389e39,_0x51e016)[_0x4819e8(0x201)]||[])[_0x4819e8(0x1b9)]((_0x3401c3,_0x33a575)=>_0xfb1f8d(_0x3401c3,_0x362f55+'-'+_0x389e39['tag']+'-'+_0x33a575,_0x51e016,void 0x0,_0x5da228)));}function _0x419a3a(_0xf0237f,_0x376f52,_0x308cf3){const _0x186ba6=_0x1659,_0x2791ca={..._0xf0237f[_0x186ba6(0x1a7)]};_0x308cf3!=null&&_0x308cf3[_0x186ba6(0x1fe)]&&_0x2791ca[_0x186ba6(0x194)]==='colorChannel1'&&(_0x2791ca['fill']=_0x308cf3[_0x186ba6(0x1fe)]),_0xf0237f[_0x186ba6(0x193)]===_0x186ba6(0x155)&&_0x2791ca['id']&&(_0x2791ca['id']=_0x2791ca['id']+_0x376f52[_0x186ba6(0x1a5)]),Object['entries'](_0x2791ca)[_0x186ba6(0x18d)](([_0x2d5621,_0x386a94])=>{const _0x1e91da=_0x186ba6;_0x2d5621===_0x1e91da(0x155)&&typeof _0x386a94=='string'&&(_0x2791ca[_0x2d5621]=_0x386a94['replace'](/url\(#(.*)\)/,'url(#$1'+_0x376f52[_0x1e91da(0x1a5)]+')'));});const {defIds:_0x3bb6e6}=_0x376f52;return!_0x3bb6e6||_0x3bb6e6[_0x186ba6(0x209)]===0x0||(_0xf0237f[_0x186ba6(0x193)]===_0x186ba6(0x1f2)&&_0x2791ca[_0x186ba6(0x1fd)]&&(_0x2791ca['xlink:href']=_0x2791ca[_0x186ba6(0x1fd)]+_0x376f52['idSuffix']),Object[_0x186ba6(0x231)](_0x2791ca)[_0x186ba6(0x18d)](([_0x6a476f,_0x5322ed])=>{const _0x24e223=_0x186ba6;typeof _0x5322ed==_0x24e223(0x16d)&&(_0x2791ca[_0x6a476f]=_0x5322ed['replace'](/url\(#(.*)\)/,_0x24e223(0x183)+_0x376f52[_0x24e223(0x1a5)]+')'));})),_0x2791ca;}function _0x394acd(_0x44d58d,_0x41ee2a){const _0x5a1ec7=_0x1659;var _0x4b3730;const {defIds:_0x2c3788}=_0x41ee2a;return!_0x2c3788||_0x2c3788[_0x5a1ec7(0x209)]===0x0?_0x44d58d:_0x44d58d[_0x5a1ec7(0x193)]===_0x5a1ec7(0x1db)&&((_0x4b3730=_0x44d58d[_0x5a1ec7(0x201)])!=null&&_0x4b3730['length'])?{..._0x44d58d,'children':_0x44d58d['children'][_0x5a1ec7(0x1b9)](_0x47a4e9=>typeof _0x47a4e9[_0x5a1ec7(0x1a7)]['id']=='string'&&_0x2c3788&&_0x2c3788[_0x5a1ec7(0x181)](_0x47a4e9[_0x5a1ec7(0x1a7)]['id'])?{..._0x47a4e9,'attrs':{..._0x47a4e9[_0x5a1ec7(0x1a7)],'id':_0x47a4e9[_0x5a1ec7(0x1a7)]['id']+_0x41ee2a[_0x5a1ec7(0x1a5)]}}:_0x47a4e9)}:_0x44d58d;}function _0x20c3f7(){const _0x25f53c=_0x1659;return Math[_0x25f53c(0x1d0)]()['toString'](0x24)['substring'](0x2,0x8);}_0x405622[_0x1f790e(0x1fc)]=_0x1f790e(0x20f);const _0x537131={'tag':_0x1f790e(0x1c9),'attrs':{'xmlns':_0x1f790e(0x22d),'fill':_0x1f790e(0x219),'viewBox':_0x1f790e(0x1be),'width':_0x1f790e(0x212),'height':_0x1f790e(0x212)},'children':[{'tag':_0x1f790e(0x229),'attrs':{'fill':_0x1f790e(0x174),'d':_0x1f790e(0x220)}},{'tag':_0x1f790e(0x229),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x1f790e(0x1d2),'clipRule':_0x1f790e(0x1d2)}}]},_0xe9087a=_0x1a8c05[_0x1f790e(0x1a8)](function(_0x53234b,_0x1fc664){const _0x29cba2=_0x1f790e;return _0x1a8c05[_0x29cba2(0x1e8)](_0x405622,Object[_0x29cba2(0x15f)]({},_0x53234b,{'id':_0x29cba2(0x157),'ref':_0x1fc664,'icon':_0x537131}));});_0xe9087a['displayName']=_0x1f790e(0x16a);class _0x2c6fcf extends _0x1a4663[_0x1f790e(0x223)]{constructor(){const _0xe9d0c3=_0x1f790e;super(...arguments),_0x505340(this,_0xe9d0c3(0x1bc),new Set()),_0x505340(this,_0xe9d0c3(0x199),new Set());}['registerSharedOperation'](_0x18dc93){const _0x19ed23=_0x1f790e;return this[_0x19ed23(0x1bc)][_0x19ed23(0x20c)](_0x18dc93),_0x1a4663[_0x19ed23(0x17f)](()=>this['_sharedOperations']['delete'](_0x18dc93));}['registerInitialStateReporter'](_0x152291){const _0xd707d8=_0x1f790e;return this[_0xd707d8(0x199)][_0xd707d8(0x20c)](_0x152291),_0x1a4663[_0xd707d8(0x17f)](()=>this[_0xd707d8(0x199)][_0xd707d8(0x164)](_0x152291));}[_0x1f790e(0x1c6)](_0x312296){const _0x2bfd41=_0x1f790e;return this[_0x2bfd41(0x1bc)][_0x2bfd41(0x22a)](_0x312296);}[_0x1f790e(0x173)](_0x4e12e4){const _0x6b1169=_0x1f790e;return Array['from'](this[_0x6b1169(0x199)])[_0x6b1169(0x1b9)](_0x5c52a9=>_0x5c52a9(_0x4e12e4));}}var _0x3f005b=Object[_0x1f790e(0x1b2)],_0x6be2a1=(_0x588298,_0x29cdb5,_0x23349a,_0x5af2fe)=>{for(var _0x4edfa9=_0x5af2fe>0x1?void 0x0:_0x5af2fe?_0x3f005b(_0x29cdb5,_0x23349a):_0x29cdb5,_0x783e76=_0x588298['length']-0x1,_0x3f8b9c;_0x783e76>=0x0;_0x783e76--)(_0x3f8b9c=_0x588298[_0x783e76])&&(_0x4edfa9=_0x3f8b9c(_0x4edfa9)||_0x4edfa9);return _0x4edfa9;},_0x8a54fb=(_0x3b9294,_0x12ee7a)=>(_0x2addb3,_0x600f83)=>_0x12ee7a(_0x2addb3,_0x600f83,_0x3b9294);_0x3c7f27[_0x1f790e(0x205)]=class extends _0x1a4663['RxDisposable']{constructor(_0x33e4cc,_0x3be6be,_0x451d6a){const _0x51bc14=_0x1f790e;super(),_0x505340(this,_0x51bc14(0x1bb),new Map()),(this['_univerInstanceService']=_0x33e4cc,this[_0x51bc14(0x162)]=_0x3be6be,this[_0x51bc14(0x1f4)]=_0x451d6a,this[_0x51bc14(0x21c)]());}async['getLiveShareCoordinator'](_0x5b91dc){const _0x5c0675=_0x1f790e;return this[_0x5c0675(0x1bb)][_0x5c0675(0x22a)](_0x5b91dc)||await this[_0x5c0675(0x156)](_0x5b91dc),this[_0x5c0675(0x1bb)][_0x5c0675(0x15d)](_0x5b91dc);}[_0x1f790e(0x1bf)](_0x410c52){const _0x491c17=_0x1f790e;var _0x1fd150;return(_0x1fd150=this[_0x491c17(0x1bb)][_0x491c17(0x15d)](_0x410c52))!=null?_0x1fd150:null;}[_0x1f790e(0x21c)](){const _0x27e7bc=_0x1f790e;this[_0x27e7bc(0x1f1)]['getTypeOfUnitAdded$'](_0x1a4663[_0x27e7bc(0x1c4)]['UNIVER_SHEET'])[_0x27e7bc(0x1b3)](_0x42de0b[_0x27e7bc(0x1ed)](this[_0x27e7bc(0x16e)]))[_0x27e7bc(0x1ef)](async _0xee8270=>{const _0x56ae93=_0x27e7bc,_0x2787ad=_0xee8270[_0x56ae93(0x1c2)]();this['_entities'][_0x56ae93(0x22a)](_0x2787ad)||this[_0x56ae93(0x156)](_0x2787ad);}),this[_0x27e7bc(0x1f1)][_0x27e7bc(0x1f7)](_0x1a4663[_0x27e7bc(0x1c4)]['UNIVER_SHEET'])['pipe'](_0x42de0b['takeUntil'](this[_0x27e7bc(0x16e)]))[_0x27e7bc(0x1ef)](_0x33ebd5=>{const _0x1cb029=_0x27e7bc,_0x1a370c=_0x33ebd5[_0x1cb029(0x1c2)](),_0x391c03=this[_0x1cb029(0x1bb)]['get'](_0x1a370c);_0x391c03==null||_0x391c03[_0x1cb029(0x1c7)]();});}async[_0x1f790e(0x156)](_0x44d170){const _0xb2bb46=_0x1f790e,_0x4a3e5c=await this['_collabSessionService']['requireSession'](_0x44d170),_0xd088fd=this[_0xb2bb46(0x162)][_0xb2bb46(0x15e)](_0x3c7f27[_0xb2bb46(0x1cc)],_0x44d170,_0x4a3e5c);return _0xd088fd[_0xb2bb46(0x1c8)](),this['_entities']['set'](_0x44d170,_0xd088fd),_0xd088fd;}},_0x3c7f27[_0x1f790e(0x205)]=_0x6be2a1([_0x8a54fb(0x0,_0x1a4663['IUniverInstanceService']),_0x8a54fb(0x1,_0x1a4663[_0x1f790e(0x192)](_0x1a4663[_0x1f790e(0x1dc)])),_0x8a54fb(0x2,_0x1a4663[_0x1f790e(0x192)](_0x483082[_0x1f790e(0x189)]))],_0x3c7f27[_0x1f790e(0x205)]);var _0x300ce0=(_0x91f8ba=>(_0x91f8ba[_0x1f790e(0x1d9)]=_0x1f790e(0x165),_0x91f8ba['IDLE']=_0x1f790e(0x1e4),_0x91f8ba[_0x1f790e(0x1ce)]=_0x1f790e(0x196),_0x91f8ba[_0x1f790e(0x1b5)]=_0x1f790e(0x1f3),_0x91f8ba[_0x1f790e(0x1d4)]=_0x1f790e(0x1c1),_0x91f8ba))(_0x300ce0||{});const _0xcca361='SAME_OPERATION_SHARE_INTERVAL',_0x176be4=0xc8;_0x3c7f27['LiveShareCoordinator']=class extends _0x1a4663[_0x1f790e(0x21a)]{constructor(_0x26ce50,_0x4bb066,_0x499011,_0x4a30c8,_0x5f4418){const _0xc0e48d=_0x1f790e;super(),_0x505340(this,_0xc0e48d(0x1e2),new _0x5cb817[(_0xc0e48d(0x1b0))](_0xc0e48d(0x1e4))),_0x505340(this,'status$',this[_0xc0e48d(0x1e2)][_0xc0e48d(0x1f8)]()),_0x505340(this,_0xc0e48d(0x21c),!0x1),_0x505340(this,_0xc0e48d(0x1ec),null),_0x505340(this,_0xc0e48d(0x1f6),null),(this[_0xc0e48d(0x1aa)]=_0x26ce50,this[_0xc0e48d(0x1f5)]=_0x4bb066,this['_configService']=_0x499011,this[_0xc0e48d(0x1b8)]=_0x4a30c8,this[_0xc0e48d(0x19a)]=_0x5f4418);}get[_0x1f790e(0x19f)](){const _0x13f469=_0x1f790e;return this[_0x13f469(0x1e2)]['getValue']();}[_0x1f790e(0x1c7)](){const _0x3b2d3e=_0x1f790e;var _0x1815af;(_0x1815af=this[_0x3b2d3e(0x1ec)])==null||_0x1815af['dispose'](),this[_0x3b2d3e(0x1e2)][_0x3b2d3e(0x1a3)](_0x3b2d3e(0x1e4)),this['_status$'][_0x3b2d3e(0x167)]();}['getStatus'](){const _0x49bdc5=_0x1f790e;return this[_0x49bdc5(0x19f)];}[_0x1f790e(0x1c8)](){const _0x3a6ebe=_0x1f790e;this['_init']||(this[_0x3a6ebe(0x21c)]=!0x0,this[_0x3a6ebe(0x1f5)][_0x3a6ebe(0x20a)][_0x3a6ebe(0x1b3)](_0x42de0b[_0x3a6ebe(0x1ed)](this[_0x3a6ebe(0x16e)]))[_0x3a6ebe(0x1ef)](_0x3c2136=>{const _0x3f4c2a=_0x3a6ebe;switch(_0x3c2136){case _0x483082['SessionStatus'][_0x3f4c2a(0x1d9)]:this[_0x3f4c2a(0x21b)]();break;case _0x483082[_0x3f4c2a(0x208)]['ONLINE']:this[_0x3f4c2a(0x1fb)]();break;}}),this['_collabSession'][_0x3a6ebe(0x198)]['pipe'](_0x42de0b[_0x3a6ebe(0x1ed)](this[_0x3a6ebe(0x16e)]))[_0x3a6ebe(0x1ef)](_0x20b624=>{const _0x4a5b11=_0x3a6ebe,{eventID:_0x5853ea}=_0x20b624;switch(_0x5853ea){case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x1de)]:this[_0x4a5b11(0x19c)](_0x20b624);break;case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x16f)]:this[_0x4a5b11(0x1d7)](_0x20b624);break;case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x222)]:this[_0x4a5b11(0x21f)]();break;case _0xad8d23['CollaborationEvent']['NEW_CHANGESETS']:this[_0x4a5b11(0x226)](_0x20b624);break;}}));}['tryStartPresenting'](){const _0x2a4807=_0x1f790e;this[_0x2a4807(0x1f5)][_0x2a4807(0x1a9)]({'eventID':_0xad8d23[_0x2a4807(0x166)][_0x2a4807(0x1ff)],'data':{'unitID':this[_0x2a4807(0x1aa)],'userID':this['_collabSession'][_0x2a4807(0x204)]()}},this[_0x2a4807(0x1aa)]);}['stopPresenting'](){const _0x246920=_0x1f790e;this[_0x246920(0x19f)]===_0x246920(0x1c1)&&(this['_status$']['next']('idle'),this[_0x246920(0x1f5)][_0x246920(0x1a9)]({'eventID':_0xad8d23[_0x246920(0x166)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x246920(0x1aa)]}},this[_0x246920(0x1aa)]));}[_0x1f790e(0x1b7)](){const _0x382d9b=_0x1f790e;this[_0x382d9b(0x19f)]===_0x382d9b(0x1f3)&&(this[_0x382d9b(0x1e2)][_0x382d9b(0x1a3)](_0x382d9b(0x196)),this[_0x382d9b(0x21d)]());}[_0x1f790e(0x151)](){const _0x4204fe=_0x1f790e;this[_0x4204fe(0x19f)]===_0x4204fe(0x196)&&this[_0x4204fe(0x1f0)]();}[_0x1f790e(0x19c)](_0x3006cb){const _0x21d6c8=_0x1f790e,{presenter:_0xcca7ee}=_0x3006cb[_0x21d6c8(0x168)],_0x34f000=this[_0x21d6c8(0x1f5)][_0x21d6c8(0x204)]();this['_presenter']=_0xcca7ee,_0xcca7ee===_0x34f000?(this[_0x21d6c8(0x1f0)](),this[_0x21d6c8(0x1cd)]()):this[_0x21d6c8(0x19f)]!==_0x21d6c8(0x1f3)&&(this[_0x21d6c8(0x234)](),this[_0x21d6c8(0x21d)]());}['_fetchOperations'](){const _0x3c3b47=_0x1f790e,_0x5e5cd7={'eventID':_0xad8d23['CollaborationEvent'][_0x3c3b47(0x1e3)]};this['_collabSession'][_0x3c3b47(0x1a9)](_0x5e5cd7,this[_0x3c3b47(0x1aa)]);}['_handleTerminate'](){const _0x4357a3=_0x1f790e;this['_presenter']=null,this['_status']!==_0x4357a3(0x1c1)&&this[_0x4357a3(0x211)]();}['_handleNewChangeSets'](_0x50118d){const _0x3aea89=_0x1f790e;if(this[_0x3aea89(0x19f)]===_0x3aea89(0x196)&&this['_presenter']===_0x50118d[_0x3aea89(0x168)][_0x3aea89(0x1c5)]){const _0x4fd97f=_0xad8d23[_0x3aea89(0x20d)](_0x50118d['data'])[_0x3aea89(0x200)]['reverse']()[_0x3aea89(0x177)](_0x516e06=>_0x516e06['id']===_0x54971f['InsertSheetMutation']['id']);if(_0x4fd97f){const _0x5f4f51=_0x4fd97f[_0x3aea89(0x1b1)]['unitId'],_0x56103e=_0x4fd97f[_0x3aea89(0x1b1)][_0x3aea89(0x163)]['id'];setTimeout(()=>{const _0x588e12=_0x3aea89;this['_commandService'][_0x588e12(0x170)](_0x54971f[_0x588e12(0x1e0)]['id'],{'unitId':_0x5f4f51,'subUnitId':_0x56103e},{'fromCollab':!0x0});});}}}[_0x1f790e(0x1cd)](){const _0x3868b8=_0x1f790e;this[_0x3868b8(0x1e2)][_0x3868b8(0x1a3)]('presenting');const _0x519fc2=new Map(),_0x2293ac=this['_commandDisposable']=new _0x1a4663['DisposableCollection']();_0x2293ac['add'](_0x1a4663[_0x3868b8(0x17f)](()=>{const _0x15f912=_0x3868b8;_0x519fc2[_0x15f912(0x18d)](_0x50e334=>_0x50e334['complete']()),_0x519fc2['clear']();})),_0x2293ac[_0x3868b8(0x20c)](this['_commandService'][_0x3868b8(0x161)](_0x44c686=>{const _0x575817=_0x3868b8;var _0x5c609b;if(_0x44c686[_0x575817(0x16b)]!==_0x1a4663[_0x575817(0x1ad)]['OPERATION']||!this[_0x575817(0x1b8)][_0x575817(0x1c6)](_0x44c686['id']))return;const {id:_0x1dcf50}=_0x44c686;let _0x780014;_0x519fc2[_0x575817(0x22a)](_0x1dcf50)?_0x780014=_0x519fc2[_0x575817(0x15d)](_0x1dcf50):(_0x780014=new _0x5cb817[(_0x575817(0x1e5))](),_0x519fc2['set'](_0x1dcf50,_0x780014),_0x780014[_0x575817(0x1b3)](_0x42de0b[_0x575817(0x187)]((_0x5c609b=this[_0x575817(0x207)][_0x575817(0x186)](_0xcca361))!=null?_0x5c609b:_0x176be4,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3c605f=>{const _0x368998=_0x575817;this[_0x368998(0x1f5)]['send']({'eventID':_0xad8d23[_0x368998(0x166)][_0x368998(0x16f)],'data':{'unitID':this[_0x368998(0x1aa)],'operations':{[_0x3c605f['id']]:{'id':_0x3c605f['id'],'params':JSON[_0x368998(0x1ba)](_0x3c605f['params'])}}}},this[_0x368998(0x1aa)]);})),_0x780014[_0x575817(0x1a3)](_0x44c686);})),this[_0x3868b8(0x1b8)]['getInitialStates'](this[_0x3868b8(0x1aa)])[_0x3868b8(0x18d)](_0x1e860b=>this['_collabSession'][_0x3868b8(0x1a9)]({'eventID':_0xad8d23[_0x3868b8(0x166)][_0x3868b8(0x16f)],'data':{'unitID':this[_0x3868b8(0x1aa)],'operations':{[_0x1e860b['id']]:{'id':_0x1e860b['id'],'params':JSON[_0x3868b8(0x1ba)](_0x1e860b[_0x3868b8(0x1b1)])}}}},this[_0x3868b8(0x1aa)]));}[_0x1f790e(0x234)](){const _0x24b2f1=_0x1f790e;var _0x2ca0fa;this[_0x24b2f1(0x1e2)]['next'](_0x24b2f1(0x1e4)),(_0x2ca0fa=this[_0x24b2f1(0x1ec)])==null||_0x2ca0fa[_0x24b2f1(0x1c7)](),this[_0x24b2f1(0x1ec)]=null;}[_0x1f790e(0x21d)](){const _0x4075b4=_0x1f790e;var _0x2f30ff;(_0x2f30ff=this[_0x4075b4(0x1ec)])==null||_0x2f30ff[_0x4075b4(0x1c7)](),this[_0x4075b4(0x1e2)]['next'](_0x4075b4(0x196));}[_0x1f790e(0x211)](){const _0x1b3759=_0x1f790e;var _0x26d420;this[_0x1b3759(0x1e2)][_0x1b3759(0x1a3)](_0x1b3759(0x1e4)),(_0x26d420=this['_commandDisposable'])==null||_0x26d420[_0x1b3759(0x1c7)](),this[_0x1b3759(0x1ec)]=null;}['_stopFollowing'](){const _0x23dccd=_0x1f790e;var _0x3be70c;this['_status$'][_0x23dccd(0x1a3)](_0x23dccd(0x1f3)),(_0x3be70c=this['_commandDisposable'])==null||_0x3be70c[_0x23dccd(0x1c7)]();}[_0x1f790e(0x1d7)](_0x308a17){const _0x2b74f7=_0x1f790e;if([_0x2b74f7(0x1c1),_0x2b74f7(0x1f3),_0x2b74f7(0x165)][_0x2b74f7(0x181)](this[_0x2b74f7(0x19f)])||!_0x308a17[_0x2b74f7(0x168)]['presenter']||_0x308a17['data'][_0x2b74f7(0x1a4)]===this[_0x2b74f7(0x1f5)][_0x2b74f7(0x204)]())return;this[_0x2b74f7(0x19f)]==='idle'&&this[_0x2b74f7(0x21d)]();const _0x2b9070=_0x308a17['data']['operations'];Object[_0x2b74f7(0x215)](_0x2b9070)[_0x2b74f7(0x18d)](_0x13e5e6=>{const _0xf32a8a=_0x2b74f7;this[_0xf32a8a(0x19a)][_0xf32a8a(0x170)](_0x13e5e6['id'],_0x13e5e6[_0xf32a8a(0x1b1)]?JSON[_0xf32a8a(0x18c)](_0x13e5e6['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3c9521=_0x1f790e;var _0x393a38;this['_status$'][_0x3c9521(0x1a3)](_0x3c9521(0x165)),(_0x393a38=this[_0x3c9521(0x1ec)])==null||_0x393a38[_0x3c9521(0x1c7)]();}['_handleOnline'](){const _0x2e9346=_0x1f790e;this[_0x2e9346(0x1e2)][_0x2e9346(0x1a3)](_0x2e9346(0x1e4)),this[_0x2e9346(0x1d1)]();}},_0x3c7f27[_0x1f790e(0x1cc)]=_0x6be2a1([_0x8a54fb(0x2,_0x1a4663[_0x1f790e(0x188)]),_0x8a54fb(0x3,_0x1a4663[_0x1f790e(0x192)](_0x2c6fcf)),_0x8a54fb(0x4,_0x1a4663[_0x1f790e(0x1fa)])],_0x3c7f27['LiveShareCoordinator']);function _0x42013c(){const _0x3db89a=_0x1f790e,_0x1eb1b9=_0x445c44[_0x3db89a(0x19d)](_0x3c7f27[_0x3db89a(0x205)]),_0x4c4b11=_0x445c44[_0x3db89a(0x19d)](_0x1a4663[_0x3db89a(0x213)]),_0x462320=_0x445c44[_0x3db89a(0x216)](()=>_0x4c4b11['getCurrentTypeOfUnit$'](_0x1a4663[_0x3db89a(0x1c4)][_0x3db89a(0x1bd)]),void 0x0,!0x1,[]),[_0x29e59c,_0x4c5d82]=_0x1a8c05[_0x3db89a(0x227)](null),[_0x1d782a,_0xa510b7]=_0x1a8c05[_0x3db89a(0x227)](_0x300ce0[_0x3db89a(0x197)]),_0x3067da=_0x1a8c05['useRef'](null);return _0x1a8c05[_0x3db89a(0x154)](()=>(_0x462320&&_0x1eb1b9['getLiveShareCoordinator'](_0x462320[_0x3db89a(0x1c2)]())[_0x3db89a(0x1c0)](_0x13b0d5=>{const _0x3bf740=_0x3db89a;_0x4c5d82(_0x13b0d5),_0x3067da[_0x3bf740(0x1e7)]=_0x13b0d5[_0x3bf740(0x184)][_0x3bf740(0x1ef)](_0x1e7b32=>{_0xa510b7(_0x1e7b32);});}),()=>{const _0x28009a=_0x3db89a;var _0x5ad8fb;(_0x5ad8fb=_0x3067da['current'])==null||_0x5ad8fb['unsubscribe'](),_0x3067da[_0x28009a(0x1e7)]=null;}),[_0x462320,_0x1eb1b9]),_0x29e59c?_0x48b374[_0x3db89a(0x15a)](_0x4bbbf8[_0x3db89a(0x203)],{'align':_0x3db89a(0x233),'disabled':_0x1d782a===_0x300ce0[_0x3db89a(0x1d9)],'className':_0x3db89a(0x1a1),'overlay':_0x48b374[_0x3db89a(0x15a)](_0x341beb,{'status':_0x1d782a,'coordinator':_0x29e59c}),'children':_0x48b374[_0x3db89a(0x15a)]('button',{'className':_0x4bbbf8['clsx'](_0x3db89a(0x221),{'univer-cursor-not-allowed':_0x1d782a===_0x300ce0[_0x3db89a(0x1d9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d782a!==_0x300ce0[_0x3db89a(0x1d9)]}),'type':_0x3db89a(0x214),'children':_0x48b374[_0x3db89a(0x15a)](_0xe9087a,{'className':_0x3db89a(0x224)})})}):null;}function _0x341beb(_0x283774){const _0x382217=_0x1f790e,{status:_0x31271e,coordinator:_0x42972a}=_0x283774;switch(_0x31271e){case _0x300ce0['IDLE']:return _0x48b374['jsx'](_0x27dc2a,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1ce)]:return _0x48b374[_0x382217(0x15a)](_0x6425fd,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1b5)]:return _0x48b374[_0x382217(0x15a)](_0x37ffb1,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1d9)]:return _0x48b374[_0x382217(0x15a)](_0x532a13,{});case _0x300ce0[_0x382217(0x1d4)]:return _0x48b374[_0x382217(0x15a)](_0x80a528,{'coordinator':_0x42972a});default:return null;}}function _0x27dc2a(_0x4370d8){const _0x51fe1f=_0x1f790e,{coordinator:_0x2271a8}=_0x4370d8;return _0x48b374['jsxs'](_0x48b374[_0x51fe1f(0x18b)],{'children':[_0x48b374[_0x51fe1f(0x15a)](_0x51fe1f(0x1eb),{'className':_0x51fe1f(0x1d5),'children':'Present\x20this\x20document'}),_0x48b374[_0x51fe1f(0x15a)](_0x4bbbf8[_0x51fe1f(0x160)],{'onClick':()=>_0x2271a8[_0x51fe1f(0x22f)](),'children':'Start'})]});}function _0x6425fd(_0x4f7c55){const _0x377817=_0x1f790e,{coordinator:_0x4e6348}=_0x4f7c55;return _0x48b374[_0x377817(0x217)](_0x48b374[_0x377817(0x18b)],{'children':[_0x48b374[_0x377817(0x15a)](_0x377817(0x1eb),{'className':_0x377817(0x1d5),'children':_0x377817(0x18e)}),_0x48b374[_0x377817(0x15a)](_0x4bbbf8[_0x377817(0x160)],{'onClick':()=>_0x4e6348[_0x377817(0x151)](),'children':_0x377817(0x179)})]});}function _0x37ffb1(_0x54848b){const _0x5b66f0=_0x1f790e,{coordinator:_0x592c51}=_0x54848b;return _0x48b374[_0x5b66f0(0x217)](_0x48b374['Fragment'],{'children':[_0x48b374[_0x5b66f0(0x15a)]('div',{'className':_0x5b66f0(0x1d5),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x48b374[_0x5b66f0(0x15a)](_0x4bbbf8[_0x5b66f0(0x160)],{'variant':_0x5b66f0(0x195),'onClick':()=>_0x592c51[_0x5b66f0(0x1b7)](),'children':_0x5b66f0(0x1ab)})]});}function _0x80a528(_0x468b7b){const _0x4a19e0=_0x1f790e,{coordinator:_0x4e8b37}=_0x468b7b;return _0x48b374[_0x4a19e0(0x217)](_0x48b374['Fragment'],{'children':[_0x48b374[_0x4a19e0(0x15a)](_0x4a19e0(0x1eb),{'className':_0x4a19e0(0x1d5),'children':_0x4a19e0(0x17d)}),_0x48b374[_0x4a19e0(0x15a)](_0x4bbbf8['Button'],{'variant':_0x4a19e0(0x171),'onClick':()=>_0x4e8b37['stopPresenting'](),'children':_0x4a19e0(0x1f9)})]});}function _0x532a13(){const _0x5f0b1f=_0x1f790e;return _0x48b374['jsx'](_0x48b374[_0x5f0b1f(0x18b)],{'children':_0x5f0b1f(0x1a2)});}var _0x446c92=Object[_0x1f790e(0x1b2)],_0x4ba76e=(_0x200332,_0x50c69a,_0x115d14,_0x3ad292)=>{for(var _0xd4809c=_0x3ad292>0x1?void 0x0:_0x3ad292?_0x446c92(_0x50c69a,_0x115d14):_0x50c69a,_0x6082d7=_0x200332['length']-0x1,_0x2aa02d;_0x6082d7>=0x0;_0x6082d7--)(_0x2aa02d=_0x200332[_0x6082d7])&&(_0xd4809c=_0x2aa02d(_0xd4809c)||_0xd4809c);return _0xd4809c;},_0x2e0bfa=(_0x5928c7,_0x2f9f59)=>(_0x18d1bc,_0x3633ad)=>_0x2f9f59(_0x18d1bc,_0x3633ad,_0x5928c7);_0x3c7f27[_0x1f790e(0x1a0)]=class extends _0x1a4663[_0x1f790e(0x223)]{constructor(_0x44b9a0,_0x4700e4){const _0x162f22=_0x1f790e;super(),this[_0x162f22(0x162)]=_0x44b9a0,this['_uiPartsService']=_0x4700e4,this[_0x162f22(0x1dd)]();}[_0x1f790e(0x1dd)](){const _0xc01f4e=_0x1f790e;this[_0xc01f4e(0x1ae)](this[_0xc01f4e(0x22c)]['registerComponent'](_0x445c44[_0xc01f4e(0x228)][_0xc01f4e(0x175)],()=>_0x445c44[_0xc01f4e(0x182)](_0x42013c,this[_0xc01f4e(0x162)])));}},_0x3c7f27['DesktopLiveShareController']=_0x4ba76e([_0x2e0bfa(0x0,_0x1a4663[_0x1f790e(0x192)](_0x1a4663['Injector'])),_0x2e0bfa(0x1,_0x445c44[_0x1f790e(0x225)])],_0x3c7f27['DesktopLiveShareController']);const _0x2684fe=_0x1f790e(0x1e1),_0x266a45={};var _0x2a1f24=Object[_0x1f790e(0x1b2)],_0x26d1aa=(_0x1ade5b,_0x592ba4,_0x319e01,_0x528f1b)=>{const _0x254fea=_0x1f790e;for(var _0x61bbca=_0x528f1b>0x1?void 0x0:_0x528f1b?_0x2a1f24(_0x592ba4,_0x319e01):_0x592ba4,_0x4dd1a3=_0x1ade5b[_0x254fea(0x209)]-0x1,_0x1abec9;_0x4dd1a3>=0x0;_0x4dd1a3--)(_0x1abec9=_0x1ade5b[_0x4dd1a3])&&(_0x61bbca=_0x1abec9(_0x61bbca)||_0x61bbca);return _0x61bbca;},_0x465881=(_0x314408,_0x45280c)=>(_0x491ab3,_0x2ecf6f)=>_0x45280c(_0x491ab3,_0x2ecf6f,_0x314408);let _0x3719dd=class extends _0x1a4663[_0x1f790e(0x223)]{constructor(_0x3e4077){const _0x18c901=_0x1f790e;super(),this[_0x18c901(0x1b8)]=_0x3e4077,this[_0x18c901(0x21c)]();}[_0x1f790e(0x21c)](){const _0x2bc22c=_0x1f790e;[_0x1b8ea2[_0x2bc22c(0x19b)]['id'],_0x1b8ea2['SetScrollOperation']['id'],_0x54971f['SetWorksheetActiveOperation']['id']]['forEach'](_0xbc4d6a=>{const _0x2f67bc=_0x2bc22c;this[_0x2f67bc(0x1ae)](this[_0x2f67bc(0x1b8)]['registerSharedOperation'](_0xbc4d6a));});}};_0x3719dd=_0x26d1aa([_0x465881(0x0,_0x1a4663[_0x1f790e(0x192)](_0x2c6fcf))],_0x3719dd);var _0x361f76=Object[_0x1f790e(0x185)],_0xd473f5=Object['getOwnPropertyDescriptor'],_0x4670d8=(_0x1bbb8b,_0x24449e,_0x55b798)=>_0x24449e in _0x1bbb8b?_0x361f76(_0x1bbb8b,_0x24449e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55b798}):_0x1bbb8b[_0x24449e]=_0x55b798,_0x27634a=(_0x57a3f1,_0x4671fc,_0x2d5293,_0x53e0f9)=>{const _0x3572f4=_0x1f790e;for(var _0x234dc0=_0x53e0f9>0x1?void 0x0:_0x53e0f9?_0xd473f5(_0x4671fc,_0x2d5293):_0x4671fc,_0xdafc8e=_0x57a3f1[_0x3572f4(0x209)]-0x1,_0x53d422;_0xdafc8e>=0x0;_0xdafc8e--)(_0x53d422=_0x57a3f1[_0xdafc8e])&&(_0x234dc0=_0x53d422(_0x234dc0)||_0x234dc0);return _0x234dc0;},_0x21dc64=(_0xb43bc6,_0x56c38b)=>(_0x1db581,_0x106a74)=>_0x56c38b(_0x1db581,_0x106a74,_0xb43bc6),_0xc6f876=(_0x125876,_0x1e285a,_0x20a720)=>_0x4670d8(_0x125876,typeof _0x1e285a!=_0x1f790e(0x1cf)?_0x1e285a+'':_0x1e285a,_0x20a720);const _0x486d01='UNIVER_LIVE_SHARE_PLUGIN';_0x3c7f27[_0x1f790e(0x1d8)]=class extends _0x1a4663['Plugin']{constructor(_0x7d2640=_0x266a45,_0x24025c,_0x8a3a9a){const _0x9ec025=_0x1f790e;super(),this['_config']=_0x7d2640,this[_0x9ec025(0x162)]=_0x24025c,this[_0x9ec025(0x207)]=_0x8a3a9a;const {..._0x1772ce}=_0x1a4663[_0x9ec025(0x1cb)]({},_0x266a45,this[_0x9ec025(0x1a6)]);this['_configService'][_0x9ec025(0x1ea)](_0x2684fe,_0x1772ce);}['onStarting'](){const _0x4c1ef5=_0x1f790e;_0x1a4663[_0x4c1ef5(0x22b)](this[_0x4c1ef5(0x162)],_0x1a4663[_0x4c1ef5(0x159)]([[_0x2c6fcf],[_0x3c7f27[_0x4c1ef5(0x205)]],[_0x3719dd],[_0x3c7f27[_0x4c1ef5(0x1a0)]]],this[_0x4c1ef5(0x1a6)][_0x4c1ef5(0x20e)])),_0x1a4663['touchDependencies'](this[_0x4c1ef5(0x162)],[[_0x3719dd]]);}[_0x1f790e(0x22e)](){_0x1a4663['touchDependencies'](this['_injector'],[[_0x3c7f27['DesktopLiveShareController']]]);}},_0xc6f876(_0x3c7f27[_0x1f790e(0x1d8)],_0x1f790e(0x16b),_0x1a4663['UniverInstanceType'][_0x1f790e(0x1c3)]),_0xc6f876(_0x3c7f27[_0x1f790e(0x1d8)],'pluginName',_0x486d01),_0x3c7f27[_0x1f790e(0x1d8)]=_0x27634a([_0x1a4663[_0x1f790e(0x1d3)](_0x483082[_0x1f790e(0x202)]),_0x21dc64(0x1,_0x1a4663[_0x1f790e(0x192)](_0x1a4663['Injector'])),_0x21dc64(0x2,_0x1a4663[_0x1f790e(0x188)])],_0x3c7f27[_0x1f790e(0x1d8)]),_0x3c7f27[_0x1f790e(0x190)]=_0x42013c,_0x3c7f27[_0x1f790e(0x16c)]=_0x2c6fcf,_0x3c7f27[_0x1f790e(0x152)]=_0x300ce0,Object[_0x1f790e(0x185)](_0x3c7f27,Symbol[_0x1f790e(0x230)],{'value':'Module'});}));function _0x5f01(){const _0x11f503=['getLiveShareCoordinatorSync','then','presenting','getUnitId','UNIVER_UNKNOWN','UniverInstanceType','memberID','shouldShareOperation','dispose','init','svg','defIds','merge','LiveShareCoordinator','_startPresenting','FOLLOWING','symbol','random','_fetchOperations','evenodd','DependentOn','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverProLiveShare','_handleOperation','UniverLiveSharePlugin','OFFLINE','25119LkQURm','defs','Injector','_mountLiveShare','LIVESHARE_NEW_HOST','1107528vFSpkO','SetWorksheetActiveOperation','live-share.config','_status$','LIVESHARE_FETCH_OPERATIONS','idle','Subject','UniverSheets','current','createElement','UniverProCollaborationClient','setConfig','div','_commandDisposable','takeUntil','object','subscribe','_stopFollowing','_univerInstanceService','use','not-following','_collabSessionService','_collabSession','_presenter','getTypeOfUnitDisposed$','asObservable','Stop\x20presenting','ICommandService','_handleOnline','displayName','xlink:href','colorChannel1','LIVESHARE_REQUEST_HOST','mutations','children','UniverCollaborationClientPlugin','Dropdown','getMemberID','LiveShareController','264604ClObtu','_configService','SessionStatus','length','sessionStatus$','@univerjs/ui','add','parseProtocolChangeset','override','UniverIcon','UniverSheetsUi','_beIdle','1em','IUniverInstanceService','button','values','useObservable','jsxs','@univerjs-pro/collaboration','none','RxDisposable','_handleOffline','_init','_startFollowing','trim','_handleTerminate','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','Disposable','univer-size-4','IUIPartsService','_handleNewChangeSets','useState','BuiltInUIPart','path','has','registerDependencies','_uiPartsService','http://www.w3.org/2000/svg','onRendered','tryStartPresenting','toStringTag','entries','15FBjNRT','end','_stopPresenting','stopFollowing','LiveShareStatus','univerjs-icon\x20univerjs-icon-','useEffect','mask','_startLiveShareCoordinator','live-share-icon','UniverProCollaboration','mergeOverrideWithDependencies','jsx','12255690DXNGBf','@univerjs/design','get','createInstance','assign','Button','onCommandExecuted','_injector','sheet','delete','offline','CollaborationEvent','complete','data','rxjs','LiveShareIcon','type','LiveShareService','string','dispose$','LIVESHARE_OPERATION','executeCommand','default','function','getInitialStates','currentColor','HEADER_MENU','@univerjs-pro/collaboration-client','find','React','Stop\x20following','456037ovlrsK','@univerjs/sheets','11227311JtsVcd','You\x27re\x20presenting\x20the\x20document','556oSZfEy','toDisposable','useRef','includes','connectInjector','url(#$1','status$','defineProperty','getConfig','throttleTime','IConfigService','CollaborationSessionService','@univerjs/core','Fragment','parse','forEach','You\x27re\x20following\x20the\x20presenter','11cRzeoe','LiveShare','exports','Inject','tag','fill','text','following','IDLE','event$','_reporters','_commandService','SetZoomRatioOperation','_handleNewHost','useDependency','rxjs/operators','_status','DesktopLiveShareController','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','You\x27are\x20offline.','next','presenter','idSuffix','_config','attrs','forwardRef','send','_unitID','Start\x20following','8199954oymIRl','CommandType','disposeWithMe','8pUaISG','BehaviorSubject','params','getOwnPropertyDescriptor','pipe','react','NOT_FOLLOWING','operators','startFollowing','_liveShareService','map','stringify','_entities','_sharedOperations','UNIVER_SHEET','0\x200\x2017\x2017'];_0x5f01=function(){return _0x11f503;};return _0x5f01();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.12.4-experimental.20251208-c4b8a44",
3
+ "version": "0.12.4-experimental.20251210-d708bff",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.0.2",
60
- "@univerjs-pro/collaboration": "0.12.4-experimental.20251208-c4b8a44",
61
- "@univerjs-pro/collaboration-client": "0.12.4-experimental.20251208-c4b8a44",
62
- "@univerjs/core": "0.12.4-experimental.20251208-c4b8a44",
63
- "@univerjs/design": "0.12.4-experimental.20251208-c4b8a44",
64
- "@univerjs/engine-render": "0.12.4-experimental.20251208-c4b8a44",
65
- "@univerjs/sheets-ui": "0.12.4-experimental.20251208-c4b8a44",
66
- "@univerjs/ui": "0.12.4-experimental.20251208-c4b8a44",
67
- "@univerjs/sheets": "0.12.4-experimental.20251208-c4b8a44"
60
+ "@univerjs-pro/collaboration": "0.12.4-experimental.20251210-d708bff",
61
+ "@univerjs-pro/collaboration-client": "0.12.4-experimental.20251210-d708bff",
62
+ "@univerjs/design": "0.12.4-experimental.20251210-d708bff",
63
+ "@univerjs/core": "0.12.4-experimental.20251210-d708bff",
64
+ "@univerjs/sheets-ui": "0.12.4-experimental.20251210-d708bff",
65
+ "@univerjs/sheets": "0.12.4-experimental.20251210-d708bff",
66
+ "@univerjs/ui": "0.12.4-experimental.20251210-d708bff",
67
+ "@univerjs/engine-render": "0.12.4-experimental.20251210-d708bff"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",