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

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 _0x3c413a=_0x591a;(function(_0x532ce3,_0x10357b){const _0x32b57a=_0x591a,_0x20ff9e=_0x532ce3();while(!![]){try{const _0x4bfd97=parseInt(_0x32b57a(0x18f))/0x1*(parseInt(_0x32b57a(0x186))/0x2)+parseInt(_0x32b57a(0x192))/0x3+parseInt(_0x32b57a(0x187))/0x4*(-parseInt(_0x32b57a(0x1a1))/0x5)+parseInt(_0x32b57a(0x199))/0x6*(-parseInt(_0x32b57a(0x188))/0x7)+-parseInt(_0x32b57a(0x1a8))/0x8+-parseInt(_0x32b57a(0x197))/0x9+parseInt(_0x32b57a(0x1ad))/0xa*(parseInt(_0x32b57a(0x19c))/0xb);if(_0x4bfd97===_0x10357b)break;else _0x20ff9e['push'](_0x20ff9e['shift']());}catch(_0x1568bb){_0x20ff9e['push'](_0x20ff9e['shift']());}}}(_0x5a3d,0xdf791));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x591a(_0x3b3f42,_0xad4b75){_0x3b3f42=_0x3b3f42-0x185;const _0x5a3da0=_0x5a3d();let _0x591a35=_0x5a3da0[_0x3b3f42];return _0x591a35;}class w extends d[_0x3c413a(0x1a3)]{[_0x3c413a(0x19e)](_0x481935,_0x39e3c7,_0x340862,_0x34cabc,_0x191bd3){const _0x32d7e1=_0x3c413a,_0x28a38d=_0x481935[_0x32d7e1(0x1ac)](n[_0x32d7e1(0x190)]),_0x470422=_0x481935[_0x32d7e1(0x1ac)](g[_0x32d7e1(0x185)]),_0x492ea1=_0x39e3c7[_0x32d7e1(0x19d)](),_0x2dd4f3=_0x39e3c7['getActiveSheet'](),_0x478a27=_0x28a38d[_0x32d7e1(0x1a6)](_0x492ea1);(_0x478a27==null?void 0x0:_0x478a27[_0x32d7e1(0x18a)]())!==n[_0x32d7e1(0x19a)][_0x32d7e1(0x198)]||(_0x340862['getSheetId']()!==_0x2dd4f3[_0x32d7e1(0x189)]()&&this[_0x32d7e1(0x18b)][_0x32d7e1(0x19f)](u[_0x32d7e1(0x1a4)]['id'],{'unitId':_0x492ea1,'subUnitId':_0x340862[_0x32d7e1(0x189)]()}),!_0x470422['getRenderById'](_0x492ea1))||_0x191bd3[_0x32d7e1(0x19b)](f[_0x32d7e1(0x1aa)]['id'],{'unitId':_0x39e3c7['getUnitId'](),'sheetId':_0x340862[_0x32d7e1(0x189)](),'sheetViewStartRow':_0x34cabc['startRow'],'sheetViewStartColumn':_0x34cabc['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3c413a(0x1a3)][_0x3c413a(0x18d)](w);class C extends a['FUniver']{[_0x3c413a(0x1ab)](){const _0x5ca885=_0x3c413a;var _0x37ed1e,_0x129f8b;const _0x11c638=this[_0x5ca885(0x1a0)][_0x5ca885(0x1ac)](n[_0x5ca885(0x190)]),_0x2363c3=(_0x37ed1e=this[_0x5ca885(0x18c)]())==null?void 0x0:_0x37ed1e[_0x5ca885(0x1a7)]();if(!_0x2363c3)throw new Error(_0x5ca885(0x1a5));const _0x178243=_0x11c638[_0x5ca885(0x1a6)](_0x2363c3);return(_0x129f8b=_0x178243==null?void 0x0:_0x178243[_0x5ca885(0x18a)]())!=null?_0x129f8b:n[_0x5ca885(0x19a)]['IDLE'];}['startFollowing'](){const _0x2498ac=_0x3c413a;var _0x4f1c76;const _0x543ce4=this[_0x2498ac(0x1a0)][_0x2498ac(0x1ac)](n[_0x2498ac(0x190)]),_0x2edd67=(_0x4f1c76=this[_0x2498ac(0x18c)]())==null?void 0x0:_0x4f1c76['getId']();if(!_0x2edd67)throw new Error(_0x2498ac(0x1a5));const _0x19405c=_0x543ce4[_0x2498ac(0x1a6)](_0x2edd67);if(!_0x19405c)throw new Error(_0x2498ac(0x18e));_0x19405c['startFollowing']();}[_0x3c413a(0x191)](){const _0x2b62f2=_0x3c413a;var _0x1bd5fd;const _0xf523d7=this[_0x2b62f2(0x1a0)][_0x2b62f2(0x1ac)](n[_0x2b62f2(0x190)]),_0x923350=(_0x1bd5fd=this[_0x2b62f2(0x18c)]())==null?void 0x0:_0x1bd5fd[_0x2b62f2(0x1a7)]();if(!_0x923350)throw new Error(_0x2b62f2(0x1a5));const _0x1a0f8e=_0xf523d7['getLiveShareCoordinatorSync'](_0x923350);if(!_0x1a0f8e)throw new Error(_0x2b62f2(0x18e));_0x1a0f8e[_0x2b62f2(0x191)]();}[_0x3c413a(0x194)](){const _0x41e84e=_0x3c413a;var _0x1a7809;const _0x3f17cd=this[_0x41e84e(0x1a0)]['get'](n[_0x41e84e(0x190)]),_0x4da2cf=(_0x1a7809=this[_0x41e84e(0x18c)]())==null?void 0x0:_0x1a7809[_0x41e84e(0x1a7)]();if(!_0x4da2cf)throw new Error(_0x41e84e(0x1a5));const _0x273651=_0x3f17cd[_0x41e84e(0x1a6)](_0x4da2cf);if(!_0x273651)throw new Error(_0x41e84e(0x18e));_0x273651[_0x41e84e(0x1a9)]();}['stopPresenting'](){const _0x5b56d3=_0x3c413a;var _0x33ce6a;const _0x4ec7d9=this[_0x5b56d3(0x1a0)][_0x5b56d3(0x1ac)](n[_0x5b56d3(0x190)]),_0x31018f=(_0x33ce6a=this['getActiveWorkbook']())==null?void 0x0:_0x33ce6a[_0x5b56d3(0x1a7)]();if(!_0x31018f)throw new Error(_0x5b56d3(0x1a5));const _0x425018=_0x4ec7d9['getLiveShareCoordinatorSync'](_0x31018f);if(!_0x425018)throw new Error(_0x5b56d3(0x18e));_0x425018[_0x5b56d3(0x195)]();}}function _0x5a3d(){const _0x203f8e=['24wpEJKi','LiveShareStatus','syncExecuteCommand','1334641dSzoYR','getUnitId','_initialize','executeCommand','_injector','1432385XARhMB','FUniver','FRange','SetWorksheetActiveOperation','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','getId','952624rHsFYi','tryStartPresenting','SetScrollOperation','getLiveShareStatus','get','100BjoFST','IRenderManagerService','822PKLfXh','4rSWxau','1074360EdsztX','getSheetId','getStatus','_commandService','getActiveWorkbook','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','857TZPgwW','LiveShareController','stopFollowing','1823310uzqHUb','FEnum','startPresenting','stopPresenting','LiveShareStatusEnum','2146383HUcGyx','PRESENTING'];_0x5a3d=function(){return _0x203f8e;};return _0x5a3d();}a[_0x3c413a(0x1a2)]['extend'](C);class L extends a[_0x3c413a(0x193)]{get[_0x3c413a(0x196)](){const _0x17adca=_0x3c413a;return n[_0x17adca(0x19a)];}}a['FEnum'][_0x3c413a(0x18d)](L);
1
+ 'use strict';const _0x3b4f41=_0x5966;(function(_0x5b4d44,_0x460926){const _0x24d8ba=_0x5966,_0x51d724=_0x5b4d44();while(!![]){try{const _0x24cccb=-parseInt(_0x24d8ba(0x107))/0x1+parseInt(_0x24d8ba(0x10b))/0x2*(parseInt(_0x24d8ba(0x116))/0x3)+parseInt(_0x24d8ba(0x128))/0x4*(-parseInt(_0x24d8ba(0x125))/0x5)+parseInt(_0x24d8ba(0x113))/0x6+parseInt(_0x24d8ba(0x11f))/0x7*(-parseInt(_0x24d8ba(0x10e))/0x8)+parseInt(_0x24d8ba(0x11c))/0x9*(-parseInt(_0x24d8ba(0x11a))/0xa)+parseInt(_0x24d8ba(0x109))/0xb;if(_0x24cccb===_0x460926)break;else _0x51d724['push'](_0x51d724['shift']());}catch(_0x598276){_0x51d724['push'](_0x51d724['shift']());}}}(_0x5df5,0x20513));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[_0x3b4f41(0x110)]{[_0x3b4f41(0x108)](_0x150eb8,_0x51b00c,_0x197c9b,_0x451684,_0x59b0ae){const _0x270ff9=_0x3b4f41,_0x289d2b=_0x150eb8[_0x270ff9(0x10d)](n['LiveShareController']),_0x37a7ad=_0x150eb8[_0x270ff9(0x10d)](g['IRenderManagerService']),_0xa4760=_0x51b00c[_0x270ff9(0x118)](),_0x26025a=_0x51b00c['getActiveSheet'](),_0x11f4c7=_0x289d2b['getLiveShareCoordinatorSync'](_0xa4760);(_0x11f4c7==null?void 0x0:_0x11f4c7[_0x270ff9(0x121)]())!==n[_0x270ff9(0x10a)]['PRESENTING']||(_0x197c9b[_0x270ff9(0x124)]()!==_0x26025a[_0x270ff9(0x124)]()&&this[_0x270ff9(0x120)]['executeCommand'](u[_0x270ff9(0x123)]['id'],{'unitId':_0xa4760,'subUnitId':_0x197c9b['getSheetId']()}),!_0x37a7ad['getRenderById'](_0xa4760))||_0x59b0ae[_0x270ff9(0x117)](f[_0x270ff9(0x111)]['id'],{'unitId':_0x51b00c[_0x270ff9(0x118)](),'sheetId':_0x197c9b[_0x270ff9(0x124)](),'sheetViewStartRow':_0x451684['startRow'],'sheetViewStartColumn':_0x451684['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3b4f41(0x110)][_0x3b4f41(0x126)](w);class C extends a['FUniver']{['getLiveShareStatus'](){const _0x320331=_0x3b4f41;var _0x69d8b6,_0x2ff376;const _0x57871f=this[_0x320331(0x114)][_0x320331(0x10d)](n['LiveShareController']),_0x282ee7=(_0x69d8b6=this[_0x320331(0x129)]())==null?void 0x0:_0x69d8b6[_0x320331(0x127)]();if(!_0x282ee7)throw new Error(_0x320331(0x11d));const _0x324e30=_0x57871f[_0x320331(0x11e)](_0x282ee7);return(_0x2ff376=_0x324e30==null?void 0x0:_0x324e30[_0x320331(0x121)]())!=null?_0x2ff376:n[_0x320331(0x10a)]['IDLE'];}[_0x3b4f41(0x112)](){const _0x31578d=_0x3b4f41;var _0x5b0eb5;const _0x390310=this['_injector']['get'](n[_0x31578d(0x11b)]),_0xb71fc2=(_0x5b0eb5=this['getActiveWorkbook']())==null?void 0x0:_0x5b0eb5[_0x31578d(0x127)]();if(!_0xb71fc2)throw new Error(_0x31578d(0x11d));const _0x5dcce6=_0x390310[_0x31578d(0x11e)](_0xb71fc2);if(!_0x5dcce6)throw new Error(_0x31578d(0x115));_0x5dcce6[_0x31578d(0x112)]();}[_0x3b4f41(0x119)](){const _0x1fdcc6=_0x3b4f41;var _0x5debe1;const _0x32541f=this[_0x1fdcc6(0x114)][_0x1fdcc6(0x10d)](n[_0x1fdcc6(0x11b)]),_0xbb25d8=(_0x5debe1=this[_0x1fdcc6(0x129)]())==null?void 0x0:_0x5debe1['getId']();if(!_0xbb25d8)throw new Error(_0x1fdcc6(0x11d));const _0x36b191=_0x32541f[_0x1fdcc6(0x11e)](_0xbb25d8);if(!_0x36b191)throw new Error(_0x1fdcc6(0x115));_0x36b191[_0x1fdcc6(0x119)]();}[_0x3b4f41(0x10f)](){const _0x36530c=_0x3b4f41;var _0x4d0bb0;const _0x33de08=this[_0x36530c(0x114)][_0x36530c(0x10d)](n['LiveShareController']),_0x4a4c0d=(_0x4d0bb0=this[_0x36530c(0x129)]())==null?void 0x0:_0x4d0bb0[_0x36530c(0x127)]();if(!_0x4a4c0d)throw new Error(_0x36530c(0x11d));const _0x29989f=_0x33de08['getLiveShareCoordinatorSync'](_0x4a4c0d);if(!_0x29989f)throw new Error(_0x36530c(0x115));_0x29989f[_0x36530c(0x10c)]();}['stopPresenting'](){const _0x2b40e4=_0x3b4f41;var _0x302d13;const _0x1b1db2=this[_0x2b40e4(0x114)][_0x2b40e4(0x10d)](n['LiveShareController']),_0x4a23b4=(_0x302d13=this[_0x2b40e4(0x129)]())==null?void 0x0:_0x302d13['getId']();if(!_0x4a23b4)throw new Error(_0x2b40e4(0x11d));const _0x28e4b4=_0x1b1db2[_0x2b40e4(0x11e)](_0x4a23b4);if(!_0x28e4b4)throw new Error(_0x2b40e4(0x115));_0x28e4b4['stopPresenting']();}}function _0x5df5(){const _0x7a6024=['245709cINxut','syncExecuteCommand','getUnitId','stopFollowing','770AjlkeT','LiveShareController','4086rDvOTs','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','2688gJZfTu','_commandService','getStatus','FEnum','SetWorksheetActiveOperation','getSheetId','1214105TmXwHP','extend','getId','4zaFKkX','getActiveWorkbook','LiveShareStatusEnum','119581fDbqko','_initialize','2960243TfcOJf','LiveShareStatus','4BcKRJU','tryStartPresenting','get','3368tYAGfB','startPresenting','FRange','SetScrollOperation','startFollowing','1550856PDTEQH','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x5df5=function(){return _0x7a6024;};return _0x5df5();}function _0x5966(_0x8ba0d7,_0x394bd6){_0x8ba0d7=_0x8ba0d7-0x106;const _0x5df535=_0x5df5();let _0x596609=_0x5df535[_0x8ba0d7];return _0x596609;}a['FUniver'][_0x3b4f41(0x126)](C);class L extends a[_0x3b4f41(0x122)]{get[_0x3b4f41(0x106)](){const _0x516216=_0x3b4f41;return n[_0x516216(0x10a)];}}a[_0x3b4f41(0x122)][_0x3b4f41(0x126)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x201f75=_0x1f46;(function(_0x363785,_0xc2086){const _0x284776=_0x1f46,_0x4704e8=_0x363785();while(!![]){try{const _0x19fddc=parseInt(_0x284776(0x162))/0x1*(-parseInt(_0x284776(0x13f))/0x2)+-parseInt(_0x284776(0x199))/0x3+parseInt(_0x284776(0x102))/0x4*(-parseInt(_0x284776(0x192))/0x5)+parseInt(_0x284776(0x1a2))/0x6+-parseInt(_0x284776(0x14b))/0x7*(-parseInt(_0x284776(0x1a4))/0x8)+-parseInt(_0x284776(0x188))/0x9+parseInt(_0x284776(0x15f))/0xa*(parseInt(_0x284776(0x151))/0xb);if(_0x19fddc===_0xc2086)break;else _0x4704e8['push'](_0x4704e8['shift']());}catch(_0x168525){_0x4704e8['push'](_0x4704e8['shift']());}}}(_0x53f1,0x380ac));var T=Object['defineProperty'],U=(_0x4f7ffa,_0x331e0c,_0x5c47b6)=>_0x331e0c in _0x4f7ffa?T(_0x4f7ffa,_0x331e0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c47b6}):_0x4f7ffa[_0x331e0c]=_0x5c47b6,_=(_0x5737d3,_0x274078,_0x16fd2c)=>U(_0x5737d3,typeof _0x274078!=_0x201f75(0x11a)?_0x274078+'':_0x274078,_0x16fd2c);Object[_0x201f75(0x17f)](exports,Symbol[_0x201f75(0x197)],{'value':_0x201f75(0x135)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x1f46(_0x3753b9,_0x32b663){_0x3753b9=_0x3753b9-0xd6;const _0x53f190=_0x53f1();let _0x1f46e6=_0x53f190[_0x3753b9];return _0x1f46e6;}function x({ref:_0x17b7fa,..._0x2d5d95}){const _0x3213a8=_0x201f75,{icon:_0x76f8f5,id:_0x39d575,className:_0x40f109,extend:_0x4728fb,..._0x59ea5f}=_0x2d5d95,_0x4f1e7a=(_0x3213a8(0x14f)+_0x39d575+'\x20'+(_0x40f109||''))[_0x3213a8(0x158)](),_0x23e1dd=v[_0x3213a8(0x171)]('_'+H());return j(_0x76f8f5,''+_0x39d575,{'defIds':_0x76f8f5[_0x3213a8(0x187)],'idSuffix':_0x23e1dd[_0x3213a8(0x127)]},{'ref':_0x17b7fa,'className':_0x4f1e7a,..._0x59ea5f},_0x4728fb);}function j(_0x3ea8ee,_0x484d52,_0x490f05,_0x34c777,_0x2c8f15){const _0x2de375=_0x201f75;return v[_0x2de375(0x137)](_0x3ea8ee[_0x2de375(0xf5)],{'key':_0x484d52,...y(_0x3ea8ee,_0x490f05,_0x2c8f15),..._0x34c777},(F(_0x3ea8ee,_0x490f05)[_0x2de375(0x141)]||[])[_0x2de375(0x16e)]((_0x2882dc,_0x5ce383)=>j(_0x2882dc,_0x484d52+'-'+_0x3ea8ee[_0x2de375(0xf5)]+'-'+_0x5ce383,_0x490f05,void 0x0,_0x2c8f15)));}function y(_0x3c37ee,_0x228814,_0x406e50){const _0x34eb3e=_0x201f75,_0x92271f={..._0x3c37ee[_0x34eb3e(0x19d)]};_0x406e50!=null&&_0x406e50[_0x34eb3e(0x13b)]&&_0x92271f[_0x34eb3e(0xe7)]===_0x34eb3e(0x13b)&&(_0x92271f[_0x34eb3e(0xe7)]=_0x406e50['colorChannel1']),_0x3c37ee[_0x34eb3e(0xf5)]===_0x34eb3e(0xe4)&&_0x92271f['id']&&(_0x92271f['id']=_0x92271f['id']+_0x228814[_0x34eb3e(0x159)]),Object[_0x34eb3e(0x12e)](_0x92271f)['forEach'](([_0x4b6d7d,_0x54733f])=>{const _0x46432f=_0x34eb3e;_0x4b6d7d==='mask'&&typeof _0x54733f==_0x46432f(0x19a)&&(_0x92271f[_0x4b6d7d]=_0x54733f[_0x46432f(0x12f)](/url\(#(.*)\)/,_0x46432f(0xf4)+_0x228814[_0x46432f(0x159)]+')'));});const {defIds:_0x29af52}=_0x228814;return!_0x29af52||_0x29af52[_0x34eb3e(0x1a0)]===0x0||(_0x3c37ee[_0x34eb3e(0xf5)]===_0x34eb3e(0xf3)&&_0x92271f['xlink:href']&&(_0x92271f[_0x34eb3e(0x15e)]=_0x92271f[_0x34eb3e(0x15e)]+_0x228814[_0x34eb3e(0x159)]),Object[_0x34eb3e(0x12e)](_0x92271f)['forEach'](([_0x284006,_0x4acf35])=>{const _0x21b497=_0x34eb3e;typeof _0x4acf35=='string'&&(_0x92271f[_0x284006]=_0x4acf35['replace'](/url\(#(.*)\)/,_0x21b497(0xf4)+_0x228814[_0x21b497(0x159)]+')'));})),_0x92271f;}function F(_0x2de182,_0x4f2732){const _0x46f088=_0x201f75;var _0x5c175c;const {defIds:_0x3a134c}=_0x4f2732;return!_0x3a134c||_0x3a134c[_0x46f088(0x1a0)]===0x0?_0x2de182:_0x2de182[_0x46f088(0xf5)]===_0x46f088(0xfd)&&((_0x5c175c=_0x2de182['children'])!=null&&_0x5c175c[_0x46f088(0x1a0)])?{..._0x2de182,'children':_0x2de182[_0x46f088(0x141)][_0x46f088(0x16e)](_0x20d002=>typeof _0x20d002[_0x46f088(0x19d)]['id']==_0x46f088(0x19a)&&_0x3a134c&&_0x3a134c[_0x46f088(0x198)](_0x20d002[_0x46f088(0x19d)]['id'])?{..._0x20d002,'attrs':{..._0x20d002['attrs'],'id':_0x20d002['attrs']['id']+_0x4f2732['idSuffix']}}:_0x20d002)}:_0x2de182;}function H(){const _0x1d87da=_0x201f75;return Math[_0x1d87da(0x125)]()[_0x1d87da(0x138)](0x24)[_0x1d87da(0x18f)](0x2,0x8);}x[_0x201f75(0x140)]=_0x201f75(0xfc);const V={'tag':'svg','attrs':{'xmlns':_0x201f75(0x15d),'fill':_0x201f75(0x104),'viewBox':_0x201f75(0xda),'width':_0x201f75(0x143),'height':_0x201f75(0x143)},'children':[{'tag':_0x201f75(0x16b),'attrs':{'fill':'currentColor','d':_0x201f75(0x109)}},{'tag':_0x201f75(0x16b),'attrs':{'fill':'currentColor','d':_0x201f75(0xed),'fillRule':_0x201f75(0xe2),'clipRule':_0x201f75(0xe2)}}]},R=v[_0x201f75(0x160)](function(_0x517538,_0x5d962e){const _0x1bb967=_0x201f75;return v[_0x1bb967(0x137)](x,Object['assign']({},_0x517538,{'id':'live-share-icon','ref':_0x5d962e,'icon':V}));});function _0x53f1(){const _0x5bb151=['displayName','children','forEach','1em','_startLiveShareCoordinator','_reporters','_mountLiveShare','getTypeOfUnitAdded$','get','_beIdle','_startPresenting','7TCaYbP','dispose','jsxs','event$','univerjs-icon\x20univerjs-icon-','stopPresenting','1276SDlTnV','_univerInstanceService','useEffect','SetScrollOperation','then','LIVESHARE_FETCH_OPERATIONS','LiveShareIcon','trim','idSuffix','Dropdown','getStatus','presenter','http://www.w3.org/2000/svg','xlink:href','69510vmmeKE','forwardRef','send','1QEgeVD','You\x27are\x20offline.','parse','_liveShareService','_config','disposeWithMe','not-following','LiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','CollaborationSessionService','mergeOverrideWithDependencies','map','presenting','getCurrentTypeOfUnit$','useRef','univer-mb-3\x20univer-w-full\x20univer-text-sm','SessionStatus','SetWorksheetActiveOperation','Stop\x20presenting','tryStartPresenting','stopFollowing','from','LiveShareService','Subject','_handleOnline','sheet','registerSharedOperation','univer-size-4','defineProperty','useDependency','UniverLiveSharePlugin','DesktopLiveShareController','_collabSessionService','LiveShare','div','ICommandService','defIds','2600424ZupUWQ','NOT_FOLLOWING','InsertSheetMutation','NEW_CHANGESETS','LIVESHARE_TERMINATE','takeUntil','_handleNewHost','substring','getMemberID','_commandDisposable','4095yHHjtk','_configService','reverse','live-share.config','next','toStringTag','includes','831600nvBzlR','string','RxDisposable','UniverInstanceType','attrs','delete','shouldShareOperation','length','_injector','2601438KdLTEr','Disposable','1586008NCOGWo','useObservable','FOLLOWING','Present\x20this\x20document','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','Injector','_stopFollowing','registerInitialStateReporter','text','_fetchOperations','offline','_init','getInitialStates','0\x200\x2017\x2017','_handleTerminate','merge','Plugin','_commandService','_startFollowing','sessionStatus$','onCommandExecuted','evenodd','pipe','mask','HEADER_MENU','Stop\x20following','fill','Fragment','BehaviorSubject','following','clear','IConfigService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','IUIPartsService','_entities','registerDependencies','data','useState','use','url(#$1','tag','getOwnPropertyDescriptor','LIVESHARE_OPERATION','idle','LiveShareController','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','dispose$','UniverIcon','defs','UNIVER_SHEET','jsx','status$','You\x27re\x20presenting\x20the\x20document','1308dKbLjQ','_collabSession','none','CollaborationEvent','toDisposable','set','startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_NEW_HOST','IUniverInstanceService','override','_handleOperation','getValue','touchDependencies','requireSession','has','registerComponent','getLiveShareCoordinator','clsx','Button','parseProtocolChangeset','getTypeOfUnitDisposed$','Start','DisposableCollection','symbol','ONLINE','subscribe','getUnitId','OFFLINE','PRESENTING','SetZoomRatioOperation','_status','_stopPresenting','type','button','random','params','current','_status$','_presenter','DependentOn','complete','getLiveShareCoordinatorSync','stringify','entries','replace','createInstance','operations','add','Inject','default','Module','executeCommand','createElement','toString','values','_handleNewChangeSets','colorChannel1','_sharedOperations','IDLE','_unitID','749286xZilWg'];_0x53f1=function(){return _0x5bb151;};return _0x53f1();}R[_0x201f75(0x140)]=_0x201f75(0x157);class E extends o[_0x201f75(0x1a3)]{constructor(){const _0x13b01a=_0x201f75;super(...arguments),_(this,_0x13b01a(0x13c),new Set()),_(this,_0x13b01a(0x145),new Set());}[_0x201f75(0x17d)](_0x28ca3d){const _0x4ecc33=_0x201f75;return this[_0x4ecc33(0x13c)][_0x4ecc33(0x132)](_0x28ca3d),o[_0x4ecc33(0x106)](()=>this[_0x4ecc33(0x13c)][_0x4ecc33(0x19e)](_0x28ca3d));}[_0x201f75(0x1ac)](_0x43bec5){const _0x51cb75=_0x201f75;return this[_0x51cb75(0x145)]['add'](_0x43bec5),o[_0x51cb75(0x106)](()=>this[_0x51cb75(0x145)]['delete'](_0x43bec5));}[_0x201f75(0x19f)](_0x153eff){const _0x499118=_0x201f75;return this[_0x499118(0x13c)][_0x499118(0x111)](_0x153eff);}[_0x201f75(0xd9)](_0x280176){const _0x1a3854=_0x201f75;return Array[_0x1a3854(0x178)](this['_reporters'])[_0x1a3854(0x16e)](_0x24150a=>_0x24150a(_0x280176));}}var M=Object[_0x201f75(0xf6)],P=(_0x3bf093,_0x41a59b,_0x1da2c0,_0x583d0a)=>{for(var _0x24195e=_0x583d0a>0x1?void 0x0:_0x583d0a?M(_0x41a59b,_0x1da2c0):_0x41a59b,_0x1c10c4=_0x3bf093['length']-0x1,_0xb3de46;_0x1c10c4>=0x0;_0x1c10c4--)(_0xb3de46=_0x3bf093[_0x1c10c4])&&(_0x24195e=_0xb3de46(_0x24195e)||_0x24195e);return _0x24195e;},S=(_0x44f82b,_0x4283aa)=>(_0x4e7611,_0x284e2f)=>_0x4283aa(_0x4e7611,_0x284e2f,_0x44f82b);exports[_0x201f75(0xf9)]=class extends o[_0x201f75(0x19b)]{constructor(_0x989385,_0xc6d14b,_0x4d6db0){const _0x2e8a06=_0x201f75;super(),_(this,_0x2e8a06(0xef),new Map()),(this['_univerInstanceService']=_0x989385,this['_injector']=_0xc6d14b,this[_0x2e8a06(0x183)]=_0x4d6db0,this[_0x2e8a06(0xd8)]());}async[_0x201f75(0x113)](_0x570c6d){const _0x231b08=_0x201f75;return this[_0x231b08(0xef)][_0x231b08(0x111)](_0x570c6d)||await this[_0x231b08(0x144)](_0x570c6d),this[_0x231b08(0xef)]['get'](_0x570c6d);}[_0x201f75(0x12c)](_0x2e24b7){const _0xac9f0b=_0x201f75;var _0x36fd72;return(_0x36fd72=this[_0xac9f0b(0xef)]['get'](_0x2e24b7))!=null?_0x36fd72:null;}[_0x201f75(0xd8)](){const _0x1245a3=_0x201f75;this[_0x1245a3(0x152)][_0x1245a3(0x147)](o[_0x1245a3(0x19c)][_0x1245a3(0xfe)])[_0x1245a3(0xe3)](I[_0x1245a3(0x18d)](this[_0x1245a3(0xfb)]))[_0x1245a3(0x11c)](async _0x2725a1=>{const _0x366861=_0x1245a3,_0x91df20=_0x2725a1[_0x366861(0x11d)]();this[_0x366861(0xef)][_0x366861(0x111)](_0x91df20)||this['_startLiveShareCoordinator'](_0x91df20);}),this[_0x1245a3(0x152)][_0x1245a3(0x117)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1245a3(0xe3)](I[_0x1245a3(0x18d)](this[_0x1245a3(0xfb)]))['subscribe'](_0x1849ad=>{const _0x15870e=_0x1245a3,_0x4381cb=_0x1849ad[_0x15870e(0x11d)](),_0x43861d=this[_0x15870e(0xef)][_0x15870e(0x148)](_0x4381cb);_0x43861d==null||_0x43861d[_0x15870e(0x14c)]();});}async[_0x201f75(0x144)](_0x35e369){const _0x158ff9=_0x201f75,_0x3a7648=await this[_0x158ff9(0x183)][_0x158ff9(0x110)](_0x35e369),_0x1569fe=this['_injector'][_0x158ff9(0x130)](exports[_0x158ff9(0x169)],_0x35e369,_0x3a7648);return _0x1569fe['init'](),this[_0x158ff9(0xef)][_0x158ff9(0x107)](_0x35e369,_0x1569fe),_0x1569fe;}},exports[_0x201f75(0xf9)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x201f75(0x133)](o['Injector'])),S(0x2,o['Inject'](b[_0x201f75(0x16c)]))],exports[_0x201f75(0xf9)]);var u=(_0x1b782d=>(_0x1b782d[_0x201f75(0x11e)]=_0x201f75(0xd7),_0x1b782d['IDLE']=_0x201f75(0xf8),_0x1b782d['FOLLOWING']=_0x201f75(0xea),_0x1b782d[_0x201f75(0x189)]='not-following',_0x1b782d[_0x201f75(0x11f)]=_0x201f75(0x16f),_0x1b782d))(u||{});const k=_0x201f75(0x1a8),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x201f75(0x19b)]{constructor(_0x593cb0,_0x5963c5,_0x53ea35,_0x4d54b1,_0x27986f){const _0xe93136=_0x201f75;super(),_(this,_0xe93136(0x128),new O[(_0xe93136(0xe9))]('idle')),_(this,_0xe93136(0x100),this[_0xe93136(0x128)]['asObservable']()),_(this,_0xe93136(0xd8),!0x1),_(this,_0xe93136(0x191),null),_(this,'_presenter',null),(this[_0xe93136(0x13e)]=_0x593cb0,this[_0xe93136(0x103)]=_0x5963c5,this[_0xe93136(0x193)]=_0x53ea35,this[_0xe93136(0x165)]=_0x4d54b1,this[_0xe93136(0xde)]=_0x27986f);}get['_status'](){const _0x3d86a8=_0x201f75;return this[_0x3d86a8(0x128)][_0x3d86a8(0x10e)]();}[_0x201f75(0x14c)](){const _0x2ef713=_0x201f75;var _0x115829;(_0x115829=this[_0x2ef713(0x191)])==null||_0x115829['dispose'](),this[_0x2ef713(0x128)][_0x2ef713(0x196)](_0x2ef713(0xf8)),this['_status$'][_0x2ef713(0x12b)]();}[_0x201f75(0x15b)](){const _0x1d4b07=_0x201f75;return this[_0x1d4b07(0x121)];}['init'](){const _0x133c64=_0x201f75;this[_0x133c64(0xd8)]||(this[_0x133c64(0xd8)]=!0x0,this['_collabSession'][_0x133c64(0xe0)][_0x133c64(0xe3)](I['takeUntil'](this['dispose$']))[_0x133c64(0x11c)](_0x32871a=>{const _0x4e9887=_0x133c64;switch(_0x32871a){case b[_0x4e9887(0x173)][_0x4e9887(0x11e)]:this['_handleOffline']();break;case b['SessionStatus'][_0x4e9887(0x11b)]:this[_0x4e9887(0x17b)]();break;}}),this['_collabSession'][_0x133c64(0x14e)][_0x133c64(0xe3)](I[_0x133c64(0x18d)](this[_0x133c64(0xfb)]))[_0x133c64(0x11c)](_0x1c5020=>{const _0x1f045a=_0x133c64,{eventID:_0x1a1858}=_0x1c5020;switch(_0x1a1858){case d['CollaborationEvent'][_0x1f045a(0x10a)]:this[_0x1f045a(0x18e)](_0x1c5020);break;case d[_0x1f045a(0x105)][_0x1f045a(0xf7)]:this[_0x1f045a(0x10d)](_0x1c5020);break;case d[_0x1f045a(0x105)][_0x1f045a(0x18c)]:this[_0x1f045a(0xdb)]();break;case d[_0x1f045a(0x105)][_0x1f045a(0x18b)]:this[_0x1f045a(0x13a)](_0x1c5020);break;}}));}[_0x201f75(0x176)](){const _0x9b817c=_0x201f75;this[_0x9b817c(0x103)][_0x9b817c(0x161)]({'eventID':d[_0x9b817c(0x105)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x9b817c(0x13e)],'userID':this[_0x9b817c(0x103)][_0x9b817c(0x190)]()}},this[_0x9b817c(0x13e)]);}[_0x201f75(0x150)](){const _0x1491c1=_0x201f75;this[_0x1491c1(0x121)]==='presenting'&&(this[_0x1491c1(0x128)][_0x1491c1(0x196)](_0x1491c1(0xf8)),this['_collabSession'][_0x1491c1(0x161)]({'eventID':d[_0x1491c1(0x105)][_0x1491c1(0x18c)],'data':{'unitID':this[_0x1491c1(0x13e)]}},this[_0x1491c1(0x13e)]));}[_0x201f75(0x108)](){const _0x5cd03e=_0x201f75;this[_0x5cd03e(0x121)]===_0x5cd03e(0x168)&&(this[_0x5cd03e(0x128)][_0x5cd03e(0x196)](_0x5cd03e(0xea)),this[_0x5cd03e(0xdf)]());}[_0x201f75(0x177)](){const _0x4b81b8=_0x201f75;this['_status']==='following'&&this[_0x4b81b8(0x1ab)]();}[_0x201f75(0x18e)](_0x54c7f7){const _0x180474=_0x201f75,{presenter:_0x3f8cc3}=_0x54c7f7[_0x180474(0xf1)],_0x1eca86=this['_collabSession'][_0x180474(0x190)]();this[_0x180474(0x129)]=_0x3f8cc3,_0x3f8cc3===_0x1eca86?(this['_stopFollowing'](),this[_0x180474(0x14a)]()):this[_0x180474(0x121)]!=='not-following'&&(this[_0x180474(0x122)](),this[_0x180474(0xdf)]());}[_0x201f75(0xd6)](){const _0x2054af=_0x201f75,_0xbf34f7={'eventID':d[_0x2054af(0x105)][_0x2054af(0x156)]};this[_0x2054af(0x103)][_0x2054af(0x161)](_0xbf34f7,this[_0x2054af(0x13e)]);}[_0x201f75(0xdb)](){const _0x41a4ee=_0x201f75;this[_0x41a4ee(0x129)]=null,this[_0x41a4ee(0x121)]!==_0x41a4ee(0x16f)&&this[_0x41a4ee(0x149)]();}['_handleNewChangeSets'](_0x4e789a){const _0x1bd401=_0x201f75;if(this['_status']===_0x1bd401(0xea)&&this['_presenter']===_0x4e789a[_0x1bd401(0xf1)]['memberID']){const _0x4eca13=d[_0x1bd401(0x116)](_0x4e789a['data'])['mutations'][_0x1bd401(0x194)]()['find'](_0x3927f7=>_0x3927f7['id']===C[_0x1bd401(0x18a)]['id']);if(_0x4eca13){const _0x4bae63=_0x4eca13[_0x1bd401(0x126)]['unitId'],_0xe30025=_0x4eca13[_0x1bd401(0x126)][_0x1bd401(0x17c)]['id'];setTimeout(()=>{const _0x2711bc=_0x1bd401;this[_0x2711bc(0xde)][_0x2711bc(0x136)](C[_0x2711bc(0x174)]['id'],{'unitId':_0x4bae63,'subUnitId':_0xe30025},{'fromCollab':!0x0});});}}}[_0x201f75(0x14a)](){const _0x587f4c=_0x201f75;this[_0x587f4c(0x128)][_0x587f4c(0x196)](_0x587f4c(0x16f));const _0x1247a4=new Map(),_0x4f4a7e=this[_0x587f4c(0x191)]=new o[(_0x587f4c(0x119))]();_0x4f4a7e['add'](o[_0x587f4c(0x106)](()=>{const _0x3de491=_0x587f4c;_0x1247a4[_0x3de491(0x142)](_0xf834ec=>_0xf834ec[_0x3de491(0x12b)]()),_0x1247a4[_0x3de491(0xeb)]();})),_0x4f4a7e[_0x587f4c(0x132)](this[_0x587f4c(0xde)][_0x587f4c(0xe1)](_0xd1dea7=>{const _0x5d800b=_0x587f4c;var _0x141bd6;if(_0xd1dea7[_0x5d800b(0x123)]!==o['CommandType']['OPERATION']||!this[_0x5d800b(0x165)][_0x5d800b(0x19f)](_0xd1dea7['id']))return;const {id:_0xd3c7d0}=_0xd1dea7;let _0x5bc59f;_0x1247a4[_0x5d800b(0x111)](_0xd3c7d0)?_0x5bc59f=_0x1247a4[_0x5d800b(0x148)](_0xd3c7d0):(_0x5bc59f=new O[(_0x5d800b(0x17a))](),_0x1247a4['set'](_0xd3c7d0,_0x5bc59f),_0x5bc59f['pipe'](I['throttleTime']((_0x141bd6=this[_0x5d800b(0x193)]['getConfig'](k))!=null?_0x141bd6:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5d800b(0x11c)](_0x156615=>{const _0x3d9ced=_0x5d800b;this[_0x3d9ced(0x103)][_0x3d9ced(0x161)]({'eventID':d[_0x3d9ced(0x105)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3d9ced(0x13e)],'operations':{[_0x156615['id']]:{'id':_0x156615['id'],'params':JSON[_0x3d9ced(0x12d)](_0x156615[_0x3d9ced(0x126)])}}}},this[_0x3d9ced(0x13e)]);})),_0x5bc59f[_0x5d800b(0x196)](_0xd1dea7);})),this[_0x587f4c(0x165)][_0x587f4c(0xd9)](this[_0x587f4c(0x13e)])[_0x587f4c(0x142)](_0x2493f2=>this[_0x587f4c(0x103)][_0x587f4c(0x161)]({'eventID':d[_0x587f4c(0x105)][_0x587f4c(0xf7)],'data':{'unitID':this['_unitID'],'operations':{[_0x2493f2['id']]:{'id':_0x2493f2['id'],'params':JSON[_0x587f4c(0x12d)](_0x2493f2[_0x587f4c(0x126)])}}}},this[_0x587f4c(0x13e)]));}['_stopPresenting'](){const _0x500c46=_0x201f75;var _0x51f3b6;this[_0x500c46(0x128)][_0x500c46(0x196)]('idle'),(_0x51f3b6=this['_commandDisposable'])==null||_0x51f3b6[_0x500c46(0x14c)](),this[_0x500c46(0x191)]=null;}[_0x201f75(0xdf)](){const _0x3d6028=_0x201f75;var _0x24ad22;(_0x24ad22=this[_0x3d6028(0x191)])==null||_0x24ad22[_0x3d6028(0x14c)](),this[_0x3d6028(0x128)]['next']('following');}['_beIdle'](){const _0x199ede=_0x201f75;var _0x3bb51d;this[_0x199ede(0x128)][_0x199ede(0x196)]('idle'),(_0x3bb51d=this[_0x199ede(0x191)])==null||_0x3bb51d[_0x199ede(0x14c)](),this[_0x199ede(0x191)]=null;}[_0x201f75(0x1ab)](){const _0x2b289d=_0x201f75;var _0x19d013;this['_status$']['next'](_0x2b289d(0x168)),(_0x19d013=this[_0x2b289d(0x191)])==null||_0x19d013[_0x2b289d(0x14c)]();}[_0x201f75(0x10d)](_0x23b262){const _0x46a15b=_0x201f75;if([_0x46a15b(0x16f),_0x46a15b(0x168),_0x46a15b(0xd7)][_0x46a15b(0x198)](this[_0x46a15b(0x121)])||!_0x23b262[_0x46a15b(0xf1)][_0x46a15b(0x15c)]||_0x23b262[_0x46a15b(0xf1)][_0x46a15b(0x15c)]===this[_0x46a15b(0x103)][_0x46a15b(0x190)]())return;this[_0x46a15b(0x121)]===_0x46a15b(0xf8)&&this[_0x46a15b(0xdf)]();const _0x183fea=_0x23b262[_0x46a15b(0xf1)][_0x46a15b(0x131)];Object[_0x46a15b(0x139)](_0x183fea)[_0x46a15b(0x142)](_0x19e7b5=>{const _0x2f6adb=_0x46a15b;this['_commandService'][_0x2f6adb(0x136)](_0x19e7b5['id'],_0x19e7b5[_0x2f6adb(0x126)]?JSON[_0x2f6adb(0x164)](_0x19e7b5[_0x2f6adb(0x126)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x228251=_0x201f75;var _0x289934;this[_0x228251(0x128)][_0x228251(0x196)](_0x228251(0xd7)),(_0x289934=this[_0x228251(0x191)])==null||_0x289934[_0x228251(0x14c)]();}[_0x201f75(0x17b)](){const _0x5c5f8d=_0x201f75;this[_0x5c5f8d(0x128)]['next'](_0x5c5f8d(0xf8)),this[_0x5c5f8d(0xd6)]();}},exports[_0x201f75(0x169)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x201f75(0x133)](E)),S(0x4,o[_0x201f75(0x186)])],exports['LiveShareCoordinator']);function $(){const _0x4c87eb=_0x201f75,_0x5aa1d8=p[_0x4c87eb(0x180)](exports[_0x4c87eb(0xf9)]),_0x372758=p[_0x4c87eb(0x180)](o[_0x4c87eb(0x10b)]),_0x42cd5c=p[_0x4c87eb(0x1a5)](()=>_0x372758[_0x4c87eb(0x170)](o['UniverInstanceType'][_0x4c87eb(0xfe)]),void 0x0,!0x1,[]),[_0x2217b4,_0x325182]=v[_0x4c87eb(0xf2)](null),[_0x2b127f,_0x379e6a]=v[_0x4c87eb(0xf2)](u[_0x4c87eb(0x13d)]),_0x171ef7=v[_0x4c87eb(0x171)](null);return v[_0x4c87eb(0x153)](()=>(_0x42cd5c&&_0x5aa1d8[_0x4c87eb(0x113)](_0x42cd5c[_0x4c87eb(0x11d)]())[_0x4c87eb(0x155)](_0x2ab42e=>{const _0x347597=_0x4c87eb;_0x325182(_0x2ab42e),_0x171ef7[_0x347597(0x127)]=_0x2ab42e[_0x347597(0x100)][_0x347597(0x11c)](_0x260f75=>{_0x379e6a(_0x260f75);});}),()=>{const _0x2b6a2f=_0x4c87eb;var _0x39fcf6;(_0x39fcf6=_0x171ef7[_0x2b6a2f(0x127)])==null||_0x39fcf6['unsubscribe'](),_0x171ef7[_0x2b6a2f(0x127)]=null;}),[_0x42cd5c,_0x5aa1d8]),_0x2217b4?l['jsx'](f[_0x4c87eb(0x15a)],{'align':'end','disabled':_0x2b127f===u['OFFLINE'],'className':_0x4c87eb(0xfa),'overlay':l['jsx'](W,{'status':_0x2b127f,'coordinator':_0x2217b4}),'children':l[_0x4c87eb(0xff)](_0x4c87eb(0x124),{'className':f[_0x4c87eb(0x114)](_0x4c87eb(0x16a),{'univer-cursor-not-allowed':_0x2b127f===u[_0x4c87eb(0x11e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b127f!==u[_0x4c87eb(0x11e)]}),'type':_0x4c87eb(0x124),'children':l[_0x4c87eb(0xff)](R,{'className':_0x4c87eb(0x17e)})})}):null;}function W(_0x3731ef){const _0x4ea36b=_0x201f75,{status:_0x47a392,coordinator:_0x120f02}=_0x3731ef;switch(_0x47a392){case u[_0x4ea36b(0x13d)]:return l[_0x4ea36b(0xff)](G,{'coordinator':_0x120f02});case u[_0x4ea36b(0x1a6)]:return l[_0x4ea36b(0xff)](B,{'coordinator':_0x120f02});case u[_0x4ea36b(0x189)]:return l[_0x4ea36b(0xff)](Y,{'coordinator':_0x120f02});case u[_0x4ea36b(0x11e)]:return l[_0x4ea36b(0xff)](J,{});case u[_0x4ea36b(0x11f)]:return l[_0x4ea36b(0xff)](Z,{'coordinator':_0x120f02});default:return null;}}function G(_0xc21f6d){const _0x4ddb1c=_0x201f75,{coordinator:_0x3e0889}=_0xc21f6d;return l[_0x4ddb1c(0x14d)](l[_0x4ddb1c(0xe8)],{'children':[l['jsx'](_0x4ddb1c(0x185),{'className':_0x4ddb1c(0x172),'children':_0x4ddb1c(0x1a7)}),l[_0x4ddb1c(0xff)](f['Button'],{'onClick':()=>_0x3e0889[_0x4ddb1c(0x176)](),'children':_0x4ddb1c(0x118)})]});}function B(_0x33fd97){const _0x86fb84=_0x201f75,{coordinator:_0x3063a7}=_0x33fd97;return l[_0x86fb84(0x14d)](l[_0x86fb84(0xe8)],{'children':[l[_0x86fb84(0xff)](_0x86fb84(0x185),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f[_0x86fb84(0x115)],{'onClick':()=>_0x3063a7['stopFollowing'](),'children':_0x86fb84(0xe6)})]});}function Y(_0x2756dc){const _0x42aff4=_0x201f75,{coordinator:_0x37a8fe}=_0x2756dc;return l[_0x42aff4(0x14d)](l[_0x42aff4(0xe8)],{'children':[l[_0x42aff4(0xff)](_0x42aff4(0x185),{'className':_0x42aff4(0x172),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x42aff4(0xff)](f[_0x42aff4(0x115)],{'variant':_0x42aff4(0x1ad),'onClick':()=>_0x37a8fe['startFollowing'](),'children':'Start\x20following'})]});}function Z(_0x562ce6){const _0x376361=_0x201f75,{coordinator:_0x4db36e}=_0x562ce6;return l[_0x376361(0x14d)](l[_0x376361(0xe8)],{'children':[l['jsx'](_0x376361(0x185),{'className':_0x376361(0x172),'children':_0x376361(0x101)}),l['jsx'](f[_0x376361(0x115)],{'variant':_0x376361(0x134),'onClick':()=>_0x4db36e[_0x376361(0x150)](),'children':_0x376361(0x175)})]});}function J(){const _0x54b1c2=_0x201f75;return l[_0x54b1c2(0xff)](l['Fragment'],{'children':_0x54b1c2(0x163)});}var K=Object['getOwnPropertyDescriptor'],z=(_0xb68ea7,_0x2e80be,_0x130155,_0x1dbbe6)=>{const _0x15dbc3=_0x201f75;for(var _0xad53e8=_0x1dbbe6>0x1?void 0x0:_0x1dbbe6?K(_0x2e80be,_0x130155):_0x2e80be,_0x25f4fa=_0xb68ea7[_0x15dbc3(0x1a0)]-0x1,_0x4348d7;_0x25f4fa>=0x0;_0x25f4fa--)(_0x4348d7=_0xb68ea7[_0x25f4fa])&&(_0xad53e8=_0x4348d7(_0xad53e8)||_0xad53e8);return _0xad53e8;},L=(_0x170e09,_0x3f2a06)=>(_0x38cc8e,_0x1a2ac9)=>_0x3f2a06(_0x38cc8e,_0x1a2ac9,_0x170e09);exports[_0x201f75(0x182)]=class extends o[_0x201f75(0x1a3)]{constructor(_0x367a0e,_0x105118){const _0x25991c=_0x201f75;super(),this[_0x25991c(0x1a1)]=_0x367a0e,this['_uiPartsService']=_0x105118,this[_0x25991c(0x146)]();}[_0x201f75(0x146)](){const _0x54ec2a=_0x201f75;this[_0x54ec2a(0x167)](this['_uiPartsService'][_0x54ec2a(0x112)](p['BuiltInUIPart'][_0x54ec2a(0xe5)],()=>p['connectInjector']($,this[_0x54ec2a(0x1a1)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x201f75(0x133)](o[_0x201f75(0x1aa)])),L(0x1,p[_0x201f75(0xee)])],exports['DesktopLiveShareController']);const Q=_0x201f75(0x195),w={};var X=Object[_0x201f75(0xf6)],ee=(_0x3f39d3,_0x1a439b,_0x559342,_0x4e98f6)=>{const _0x28964f=_0x201f75;for(var _0x4c377c=_0x4e98f6>0x1?void 0x0:_0x4e98f6?X(_0x1a439b,_0x559342):_0x1a439b,_0x19a5a3=_0x3f39d3[_0x28964f(0x1a0)]-0x1,_0x37470a;_0x19a5a3>=0x0;_0x19a5a3--)(_0x37470a=_0x3f39d3[_0x19a5a3])&&(_0x4c377c=_0x37470a(_0x4c377c)||_0x4c377c);return _0x4c377c;},te=(_0x21f85c,_0x4ef91a)=>(_0x5c2c2a,_0x324e9c)=>_0x4ef91a(_0x5c2c2a,_0x324e9c,_0x21f85c);let m=class extends o[_0x201f75(0x1a3)]{constructor(_0x128561){const _0x388ac6=_0x201f75;super(),this[_0x388ac6(0x165)]=_0x128561,this['_init']();}['_init'](){const _0x5f152a=_0x201f75;[D[_0x5f152a(0x120)]['id'],D[_0x5f152a(0x154)]['id'],C[_0x5f152a(0x174)]['id']]['forEach'](_0x4427c5=>{const _0x420ad0=_0x5f152a;this['disposeWithMe'](this[_0x420ad0(0x165)][_0x420ad0(0x17d)](_0x4427c5));});}};m=ee([te(0x0,o[_0x201f75(0x133)](E))],m);var ie=Object[_0x201f75(0x17f)],se=Object['getOwnPropertyDescriptor'],ne=(_0x2ad038,_0x24853a,_0x2957d3)=>_0x24853a in _0x2ad038?ie(_0x2ad038,_0x24853a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2957d3}):_0x2ad038[_0x24853a]=_0x2957d3,re=(_0x4295bd,_0xde5339,_0x5a869d,_0x434350)=>{for(var _0x51d220=_0x434350>0x1?void 0x0:_0x434350?se(_0xde5339,_0x5a869d):_0xde5339,_0x479409=_0x4295bd['length']-0x1,_0x131c12;_0x479409>=0x0;_0x479409--)(_0x131c12=_0x4295bd[_0x479409])&&(_0x51d220=_0x131c12(_0x51d220)||_0x51d220);return _0x51d220;},N=(_0x4ca367,_0x5162de)=>(_0x313e81,_0x23eed9)=>_0x5162de(_0x313e81,_0x23eed9,_0x4ca367),A=(_0x125e50,_0x29797f,_0x3bf37d)=>ne(_0x125e50,typeof _0x29797f!=_0x201f75(0x11a)?_0x29797f+'':_0x29797f,_0x3bf37d);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x201f75(0x181)]=class extends o[_0x201f75(0xdd)]{constructor(_0xa9f70c=w,_0x3eed14,_0x402d7f){const _0x5622a5=_0x201f75;super(),this[_0x5622a5(0x166)]=_0xa9f70c,this['_injector']=_0x3eed14,this[_0x5622a5(0x193)]=_0x402d7f;const {..._0x6ef8}=o[_0x5622a5(0xdc)]({},w,this[_0x5622a5(0x166)]);this[_0x5622a5(0x193)]['setConfig'](Q,_0x6ef8);}['onStarting'](){const _0x4da718=_0x201f75;o[_0x4da718(0xf0)](this[_0x4da718(0x1a1)],o[_0x4da718(0x16d)]([[E],[exports['LiveShareController']],[m],[exports[_0x4da718(0x182)]]],this[_0x4da718(0x166)][_0x4da718(0x10c)])),o[_0x4da718(0x10f)](this[_0x4da718(0x1a1)],[[m]]);}['onRendered'](){const _0x242ea0=_0x201f75;o[_0x242ea0(0x10f)](this[_0x242ea0(0x1a1)],[[exports[_0x242ea0(0x182)]]]);}},A(exports[_0x201f75(0x181)],_0x201f75(0x123),o[_0x201f75(0x19c)][_0x201f75(0x1a9)]),A(exports[_0x201f75(0x181)],'pluginName',oe),exports[_0x201f75(0x181)]=re([o[_0x201f75(0x12a)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x201f75(0x133)](o[_0x201f75(0x1aa)])),N(0x2,o[_0x201f75(0xec)])],exports[_0x201f75(0x181)]),exports[_0x201f75(0x184)]=$,exports[_0x201f75(0x179)]=E,exports['LiveShareStatus']=u;
1
+ 'use strict';const _0x3cbd18=_0xdb56;(function(_0x36e2cf,_0x15f657){const _0x56c847=_0xdb56,_0x3da28a=_0x36e2cf();while(!![]){try{const _0x4c7164=-parseInt(_0x56c847(0x1b7))/0x1+-parseInt(_0x56c847(0x21c))/0x2+-parseInt(_0x56c847(0x241))/0x3*(parseInt(_0x56c847(0x191))/0x4)+-parseInt(_0x56c847(0x24a))/0x5+parseInt(_0x56c847(0x24d))/0x6*(-parseInt(_0x56c847(0x23c))/0x7)+-parseInt(_0x56c847(0x254))/0x8+parseInt(_0x56c847(0x1db))/0x9;if(_0x4c7164===_0x15f657)break;else _0x3da28a['push'](_0x3da28a['shift']());}catch(_0x1473fe){_0x3da28a['push'](_0x3da28a['shift']());}}}(_0x46af,0xe3442));var T=Object[_0x3cbd18(0x24f)],U=(_0x4e8e07,_0xf3ca13,_0x1b69b1)=>_0xf3ca13 in _0x4e8e07?T(_0x4e8e07,_0xf3ca13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b69b1}):_0x4e8e07[_0xf3ca13]=_0x1b69b1,_=(_0x1bce6e,_0x40d9d3,_0x308f8c)=>U(_0x1bce6e,typeof _0x40d9d3!='symbol'?_0x40d9d3+'':_0x40d9d3,_0x308f8c);Object[_0x3cbd18(0x24f)](exports,Symbol[_0x3cbd18(0x193)],{'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:_0x4215d3,..._0x2e9136}){const _0xb22fc7=_0x3cbd18,{icon:_0x2aa161,id:_0x1a3a68,className:_0x103e71,extend:_0x34dbc7,..._0x4af05f}=_0x2e9136,_0x2dda5d=('univerjs-icon\x20univerjs-icon-'+_0x1a3a68+'\x20'+(_0x103e71||''))[_0xb22fc7(0x1f0)](),_0x39deac=v['useRef']('_'+H());return j(_0x2aa161,''+_0x1a3a68,{'defIds':_0x2aa161[_0xb22fc7(0x229)],'idSuffix':_0x39deac[_0xb22fc7(0x1ff)]},{'ref':_0x4215d3,'className':_0x2dda5d,..._0x4af05f},_0x34dbc7);}function j(_0x5c013e,_0x2f118e,_0xe5daf6,_0x12e3b4,_0x13d428){const _0x2521d0=_0x3cbd18;return v['createElement'](_0x5c013e[_0x2521d0(0x1ee)],{'key':_0x2f118e,...y(_0x5c013e,_0xe5daf6,_0x13d428),..._0x12e3b4},(F(_0x5c013e,_0xe5daf6)[_0x2521d0(0x1b3)]||[])[_0x2521d0(0x200)]((_0x3bc93e,_0x3631a2)=>j(_0x3bc93e,_0x2f118e+'-'+_0x5c013e[_0x2521d0(0x1ee)]+'-'+_0x3631a2,_0xe5daf6,void 0x0,_0x13d428)));}function y(_0x30d185,_0x476f0b,_0xe4921){const _0xc6feac=_0x3cbd18,_0x40e7f8={..._0x30d185[_0xc6feac(0x19b)]};_0xe4921!=null&&_0xe4921[_0xc6feac(0x24e)]&&_0x40e7f8['fill']==='colorChannel1'&&(_0x40e7f8[_0xc6feac(0x1e1)]=_0xe4921['colorChannel1']),_0x30d185[_0xc6feac(0x1ee)]===_0xc6feac(0x256)&&_0x40e7f8['id']&&(_0x40e7f8['id']=_0x40e7f8['id']+_0x476f0b[_0xc6feac(0x23a)]),Object[_0xc6feac(0x25a)](_0x40e7f8)[_0xc6feac(0x251)](([_0x343f6f,_0x28a4fa])=>{const _0x59304d=_0xc6feac;_0x343f6f===_0x59304d(0x256)&&typeof _0x28a4fa=='string'&&(_0x40e7f8[_0x343f6f]=_0x28a4fa['replace'](/url\(#(.*)\)/,'url(#$1'+_0x476f0b[_0x59304d(0x23a)]+')'));});const {defIds:_0x3335f6}=_0x476f0b;return!_0x3335f6||_0x3335f6['length']===0x0||(_0x30d185[_0xc6feac(0x1ee)]===_0xc6feac(0x1b1)&&_0x40e7f8[_0xc6feac(0x230)]&&(_0x40e7f8[_0xc6feac(0x230)]=_0x40e7f8['xlink:href']+_0x476f0b[_0xc6feac(0x23a)]),Object[_0xc6feac(0x25a)](_0x40e7f8)[_0xc6feac(0x251)](([_0x55e75b,_0x38d68d])=>{const _0x174858=_0xc6feac;typeof _0x38d68d=='string'&&(_0x40e7f8[_0x55e75b]=_0x38d68d[_0x174858(0x1c6)](/url\(#(.*)\)/,_0x174858(0x249)+_0x476f0b[_0x174858(0x23a)]+')'));})),_0x40e7f8;}function F(_0x58ff52,_0x280a6b){const _0x75a0d1=_0x3cbd18;var _0x3fe792;const {defIds:_0x50d344}=_0x280a6b;return!_0x50d344||_0x50d344['length']===0x0?_0x58ff52:_0x58ff52[_0x75a0d1(0x1ee)]===_0x75a0d1(0x1b6)&&((_0x3fe792=_0x58ff52[_0x75a0d1(0x1b3)])!=null&&_0x3fe792[_0x75a0d1(0x187)])?{..._0x58ff52,'children':_0x58ff52[_0x75a0d1(0x1b3)][_0x75a0d1(0x200)](_0x40c107=>typeof _0x40c107[_0x75a0d1(0x19b)]['id']==_0x75a0d1(0x1b4)&&_0x50d344&&_0x50d344[_0x75a0d1(0x1a9)](_0x40c107[_0x75a0d1(0x19b)]['id'])?{..._0x40c107,'attrs':{..._0x40c107[_0x75a0d1(0x19b)],'id':_0x40c107[_0x75a0d1(0x19b)]['id']+_0x280a6b[_0x75a0d1(0x23a)]}}:_0x40c107)}:_0x58ff52;}function H(){const _0x4fad1f=_0x3cbd18;return Math[_0x4fad1f(0x220)]()[_0x4fad1f(0x1f8)](0x24)['substring'](0x2,0x8);}x[_0x3cbd18(0x1f2)]='UniverIcon';const V={'tag':_0x3cbd18(0x1d2),'attrs':{'xmlns':_0x3cbd18(0x1e6),'fill':_0x3cbd18(0x1c2),'viewBox':_0x3cbd18(0x22f),'width':_0x3cbd18(0x225),'height':_0x3cbd18(0x225)},'children':[{'tag':_0x3cbd18(0x1cb),'attrs':{'fill':_0x3cbd18(0x22a),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3cbd18(0x1cb),'attrs':{'fill':_0x3cbd18(0x22a),'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':_0x3cbd18(0x212),'clipRule':_0x3cbd18(0x212)}}]},R=v[_0x3cbd18(0x186)](function(_0x5282ee,_0x15156b){const _0x343530=_0x3cbd18;return v[_0x343530(0x20f)](x,Object[_0x343530(0x1fc)]({},_0x5282ee,{'id':_0x343530(0x234),'ref':_0x15156b,'icon':V}));});R[_0x3cbd18(0x1f2)]=_0x3cbd18(0x1a0);class E extends o['Disposable']{constructor(){const _0x32f5bc=_0x3cbd18;super(...arguments),_(this,_0x32f5bc(0x242),new Set()),_(this,_0x32f5bc(0x19a),new Set());}[_0x3cbd18(0x250)](_0x50d123){const _0x581880=_0x3cbd18;return this[_0x581880(0x242)]['add'](_0x50d123),o[_0x581880(0x1d0)](()=>this[_0x581880(0x242)][_0x581880(0x1a3)](_0x50d123));}[_0x3cbd18(0x1df)](_0x2d5b3c){const _0xc4e421=_0x3cbd18;return this[_0xc4e421(0x19a)][_0xc4e421(0x199)](_0x2d5b3c),o[_0xc4e421(0x1d0)](()=>this['_reporters'][_0xc4e421(0x1a3)](_0x2d5b3c));}['shouldShareOperation'](_0x16c33f){const _0x17d3eb=_0x3cbd18;return this[_0x17d3eb(0x242)][_0x17d3eb(0x238)](_0x16c33f);}[_0x3cbd18(0x1b0)](_0x3d027f){const _0x41df03=_0x3cbd18;return Array[_0x41df03(0x239)](this[_0x41df03(0x19a)])[_0x41df03(0x200)](_0x326dc8=>_0x326dc8(_0x3d027f));}}var M=Object[_0x3cbd18(0x23f)],P=(_0x2a0987,_0x43692f,_0x102cd7,_0x3b589d)=>{const _0x53af20=_0x3cbd18;for(var _0x4a3c0a=_0x3b589d>0x1?void 0x0:_0x3b589d?M(_0x43692f,_0x102cd7):_0x43692f,_0x450a81=_0x2a0987[_0x53af20(0x187)]-0x1,_0x167bfd;_0x450a81>=0x0;_0x450a81--)(_0x167bfd=_0x2a0987[_0x450a81])&&(_0x4a3c0a=_0x167bfd(_0x4a3c0a)||_0x4a3c0a);return _0x4a3c0a;},S=(_0x480d96,_0x24584f)=>(_0x2b8074,_0x525f11)=>_0x24584f(_0x2b8074,_0x525f11,_0x480d96);function _0xdb56(_0x20a675,_0x16f2b1){_0x20a675=_0x20a675-0x185;const _0x46af1c=_0x46af();let _0xdb5632=_0x46af1c[_0x20a675];return _0xdb5632;}exports[_0x3cbd18(0x247)]=class extends o[_0x3cbd18(0x1d6)]{constructor(_0x1be053,_0x37c8a2,_0x1a281b){const _0x5064e7=_0x3cbd18;super(),_(this,'_entities',new Map()),(this[_0x5064e7(0x188)]=_0x1be053,this['_injector']=_0x37c8a2,this[_0x5064e7(0x1a6)]=_0x1a281b,this[_0x5064e7(0x1ce)]());}async['getLiveShareCoordinator'](_0x399d90){const _0x50b88a=_0x3cbd18;return this[_0x50b88a(0x21a)][_0x50b88a(0x238)](_0x399d90)||await this['_startLiveShareCoordinator'](_0x399d90),this[_0x50b88a(0x21a)][_0x50b88a(0x217)](_0x399d90);}['getLiveShareCoordinatorSync'](_0x25b9a0){const _0x126231=_0x3cbd18;var _0x5aff42;return(_0x5aff42=this[_0x126231(0x21a)][_0x126231(0x217)](_0x25b9a0))!=null?_0x5aff42:null;}['_init'](){const _0x1eb217=_0x3cbd18;this[_0x1eb217(0x188)][_0x1eb217(0x1ef)](o[_0x1eb217(0x223)]['UNIVER_SHEET'])[_0x1eb217(0x1b8)](I[_0x1eb217(0x215)](this[_0x1eb217(0x1f6)]))['subscribe'](async _0x606503=>{const _0x2515a4=_0x1eb217,_0x9f481a=_0x606503[_0x2515a4(0x22e)]();this['_entities'][_0x2515a4(0x238)](_0x9f481a)||this[_0x2515a4(0x233)](_0x9f481a);}),this[_0x1eb217(0x188)]['getTypeOfUnitDisposed$'](o[_0x1eb217(0x223)][_0x1eb217(0x1c7)])[_0x1eb217(0x1b8)](I[_0x1eb217(0x215)](this[_0x1eb217(0x1f6)]))[_0x1eb217(0x22c)](_0x5e627b=>{const _0x283413=_0x1eb217,_0x57024c=_0x5e627b[_0x283413(0x22e)](),_0x33f9d8=this[_0x283413(0x21a)]['get'](_0x57024c);_0x33f9d8==null||_0x33f9d8[_0x283413(0x23e)]();});}async['_startLiveShareCoordinator'](_0x2b0842){const _0x3daf16=_0x3cbd18,_0x30e7e9=await this[_0x3daf16(0x1a6)][_0x3daf16(0x224)](_0x2b0842),_0x43ad06=this[_0x3daf16(0x19f)][_0x3daf16(0x1ba)](exports[_0x3daf16(0x240)],_0x2b0842,_0x30e7e9);return _0x43ad06[_0x3daf16(0x211)](),this['_entities'][_0x3daf16(0x21e)](_0x2b0842,_0x43ad06),_0x43ad06;}},exports[_0x3cbd18(0x247)]=P([S(0x0,o[_0x3cbd18(0x235)]),S(0x1,o[_0x3cbd18(0x1ab)](o[_0x3cbd18(0x204)])),S(0x2,o[_0x3cbd18(0x1ab)](b[_0x3cbd18(0x1fe)]))],exports[_0x3cbd18(0x247)]);var u=(_0x3ae2f8=>(_0x3ae2f8['OFFLINE']='offline',_0x3ae2f8['IDLE']='idle',_0x3ae2f8[_0x3cbd18(0x1d3)]=_0x3cbd18(0x198),_0x3ae2f8[_0x3cbd18(0x20e)]=_0x3cbd18(0x248),_0x3ae2f8[_0x3cbd18(0x1cf)]=_0x3cbd18(0x19c),_0x3ae2f8))(u||{});const k=_0x3cbd18(0x228),q=0xc8;exports[_0x3cbd18(0x240)]=class extends o[_0x3cbd18(0x1d6)]{constructor(_0x156eae,_0x3f728a,_0x527f9d,_0x2ae1c3,_0x52c861){const _0x38e9f0=_0x3cbd18;super(),_(this,_0x38e9f0(0x1f5),new O['BehaviorSubject'](_0x38e9f0(0x1f1))),_(this,'status$',this['_status$'][_0x38e9f0(0x1f3)]()),_(this,_0x38e9f0(0x1ce),!0x1),_(this,'_commandDisposable',null),_(this,_0x38e9f0(0x1bb),null),(this[_0x38e9f0(0x207)]=_0x156eae,this[_0x38e9f0(0x1cd)]=_0x3f728a,this[_0x38e9f0(0x1e2)]=_0x527f9d,this[_0x38e9f0(0x236)]=_0x2ae1c3,this[_0x38e9f0(0x1d4)]=_0x52c861);}get[_0x3cbd18(0x1dd)](){const _0x4db36d=_0x3cbd18;return this[_0x4db36d(0x1f5)][_0x4db36d(0x1e0)]();}[_0x3cbd18(0x23e)](){const _0x2e03ca=_0x3cbd18;var _0x828b09;(_0x828b09=this['_commandDisposable'])==null||_0x828b09[_0x2e03ca(0x23e)](),this[_0x2e03ca(0x1f5)]['next'](_0x2e03ca(0x1f1)),this[_0x2e03ca(0x1f5)][_0x2e03ca(0x1b2)]();}[_0x3cbd18(0x18a)](){const _0x4ea827=_0x3cbd18;return this[_0x4ea827(0x1dd)];}[_0x3cbd18(0x211)](){const _0xcab05e=_0x3cbd18;this[_0xcab05e(0x1ce)]||(this[_0xcab05e(0x1ce)]=!0x0,this['_collabSession'][_0xcab05e(0x18f)]['pipe'](I[_0xcab05e(0x215)](this[_0xcab05e(0x1f6)]))[_0xcab05e(0x22c)](_0x4c48f2=>{const _0x53d18d=_0xcab05e;switch(_0x4c48f2){case b[_0x53d18d(0x221)][_0x53d18d(0x20d)]:this['_handleOffline']();break;case b[_0x53d18d(0x221)][_0x53d18d(0x1c9)]:this[_0x53d18d(0x209)]();break;}}),this['_collabSession'][_0xcab05e(0x259)]['pipe'](I[_0xcab05e(0x215)](this[_0xcab05e(0x1f6)]))[_0xcab05e(0x22c)](_0x150b06=>{const _0x5dae5a=_0xcab05e,{eventID:_0x42175f}=_0x150b06;switch(_0x42175f){case d[_0x5dae5a(0x22d)][_0x5dae5a(0x1c8)]:this[_0x5dae5a(0x189)](_0x150b06);break;case d[_0x5dae5a(0x22d)][_0x5dae5a(0x255)]:this[_0x5dae5a(0x18c)](_0x150b06);break;case d['CollaborationEvent'][_0x5dae5a(0x253)]:this[_0x5dae5a(0x1e5)]();break;case d['CollaborationEvent'][_0x5dae5a(0x18e)]:this['_handleNewChangeSets'](_0x150b06);break;}}));}['tryStartPresenting'](){const _0x339387=_0x3cbd18;this[_0x339387(0x1cd)]['send']({'eventID':d[_0x339387(0x22d)][_0x339387(0x190)],'data':{'unitID':this[_0x339387(0x207)],'userID':this[_0x339387(0x1cd)][_0x339387(0x1ed)]()}},this[_0x339387(0x207)]);}[_0x3cbd18(0x20b)](){const _0x30cda2=_0x3cbd18;this[_0x30cda2(0x1dd)]===_0x30cda2(0x19c)&&(this[_0x30cda2(0x1f5)][_0x30cda2(0x21d)](_0x30cda2(0x1f1)),this[_0x30cda2(0x1cd)][_0x30cda2(0x1e4)]({'eventID':d['CollaborationEvent'][_0x30cda2(0x253)],'data':{'unitID':this[_0x30cda2(0x207)]}},this[_0x30cda2(0x207)]));}[_0x3cbd18(0x192)](){const _0x483c6f=_0x3cbd18;this['_status']===_0x483c6f(0x248)&&(this[_0x483c6f(0x1f5)][_0x483c6f(0x21d)](_0x483c6f(0x198)),this[_0x483c6f(0x1bc)]());}[_0x3cbd18(0x24c)](){const _0x42c18b=_0x3cbd18;this[_0x42c18b(0x1dd)]==='following'&&this[_0x42c18b(0x1fb)]();}['_handleNewHost'](_0x961bd7){const _0x23d22c=_0x3cbd18,{presenter:_0x57af40}=_0x961bd7[_0x23d22c(0x257)],_0x17e3b2=this[_0x23d22c(0x1cd)][_0x23d22c(0x1ed)]();this[_0x23d22c(0x1bb)]=_0x57af40,_0x57af40===_0x17e3b2?(this[_0x23d22c(0x1fb)](),this[_0x23d22c(0x1ad)]()):this[_0x23d22c(0x1dd)]!==_0x23d22c(0x248)&&(this['_stopPresenting'](),this[_0x23d22c(0x1bc)]());}[_0x3cbd18(0x201)](){const _0x29801a=_0x3cbd18,_0x382e3b={'eventID':d[_0x29801a(0x22d)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x29801a(0x1cd)][_0x29801a(0x1e4)](_0x382e3b,this['_unitID']);}['_handleTerminate'](){const _0x187d1d=_0x3cbd18;this[_0x187d1d(0x1bb)]=null,this[_0x187d1d(0x1dd)]!=='presenting'&&this['_beIdle']();}[_0x3cbd18(0x258)](_0x16f019){const _0x180a16=_0x3cbd18;if(this[_0x180a16(0x1dd)]===_0x180a16(0x198)&&this['_presenter']===_0x16f019[_0x180a16(0x257)][_0x180a16(0x222)]){const _0x3d6cd4=d[_0x180a16(0x1f9)](_0x16f019[_0x180a16(0x257)])[_0x180a16(0x1bd)][_0x180a16(0x197)]()[_0x180a16(0x1dc)](_0x19e99c=>_0x19e99c['id']===C['InsertSheetMutation']['id']);if(_0x3d6cd4){const _0x5d9425=_0x3d6cd4[_0x180a16(0x1e3)]['unitId'],_0x1f3380=_0x3d6cd4[_0x180a16(0x1e3)]['sheet']['id'];setTimeout(()=>{const _0x20c626=_0x180a16;this[_0x20c626(0x1d4)][_0x20c626(0x1ae)](C[_0x20c626(0x1e8)]['id'],{'unitId':_0x5d9425,'subUnitId':_0x1f3380},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x59bdd0=_0x3cbd18;this[_0x59bdd0(0x1f5)]['next']('presenting');const _0x1f493f=new Map(),_0x4ba12c=this['_commandDisposable']=new o['DisposableCollection']();_0x4ba12c[_0x59bdd0(0x199)](o['toDisposable'](()=>{const _0x3f93dd=_0x59bdd0;_0x1f493f[_0x3f93dd(0x251)](_0x42ba89=>_0x42ba89[_0x3f93dd(0x1b2)]()),_0x1f493f[_0x3f93dd(0x1a5)]();})),_0x4ba12c['add'](this[_0x59bdd0(0x1d4)][_0x59bdd0(0x1c0)](_0x4f1295=>{const _0x724c86=_0x59bdd0;var _0x1607ff;if(_0x4f1295['type']!==o[_0x724c86(0x219)][_0x724c86(0x19e)]||!this[_0x724c86(0x236)][_0x724c86(0x231)](_0x4f1295['id']))return;const {id:_0x26793c}=_0x4f1295;let _0x55f02a;_0x1f493f['has'](_0x26793c)?_0x55f02a=_0x1f493f[_0x724c86(0x217)](_0x26793c):(_0x55f02a=new O['Subject'](),_0x1f493f[_0x724c86(0x21e)](_0x26793c,_0x55f02a),_0x55f02a['pipe'](I[_0x724c86(0x202)]((_0x1607ff=this['_configService'][_0x724c86(0x1bf)](k))!=null?_0x1607ff:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a7708=>{const _0x118cb1=_0x724c86;this[_0x118cb1(0x1cd)][_0x118cb1(0x1e4)]({'eventID':d[_0x118cb1(0x22d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x118cb1(0x207)],'operations':{[_0x2a7708['id']]:{'id':_0x2a7708['id'],'params':JSON[_0x118cb1(0x1f4)](_0x2a7708[_0x118cb1(0x1e3)])}}}},this['_unitID']);})),_0x55f02a[_0x724c86(0x21d)](_0x4f1295);})),this['_liveShareService']['getInitialStates'](this[_0x59bdd0(0x207)])[_0x59bdd0(0x251)](_0x32481a=>this[_0x59bdd0(0x1cd)][_0x59bdd0(0x1e4)]({'eventID':d[_0x59bdd0(0x22d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x59bdd0(0x207)],'operations':{[_0x32481a['id']]:{'id':_0x32481a['id'],'params':JSON['stringify'](_0x32481a[_0x59bdd0(0x1e3)])}}}},this[_0x59bdd0(0x207)]));}[_0x3cbd18(0x23b)](){const _0x29734a=_0x3cbd18;var _0x4f9dd4;this[_0x29734a(0x1f5)][_0x29734a(0x21d)](_0x29734a(0x1f1)),(_0x4f9dd4=this['_commandDisposable'])==null||_0x4f9dd4[_0x29734a(0x23e)](),this['_commandDisposable']=null;}[_0x3cbd18(0x1bc)](){const _0x4d5657=_0x3cbd18;var _0x21019b;(_0x21019b=this[_0x4d5657(0x1c3)])==null||_0x21019b[_0x4d5657(0x23e)](),this['_status$'][_0x4d5657(0x21d)](_0x4d5657(0x198));}[_0x3cbd18(0x22b)](){const _0x146a35=_0x3cbd18;var _0x8c7e9d;this[_0x146a35(0x1f5)][_0x146a35(0x21d)](_0x146a35(0x1f1)),(_0x8c7e9d=this['_commandDisposable'])==null||_0x8c7e9d[_0x146a35(0x23e)](),this[_0x146a35(0x1c3)]=null;}[_0x3cbd18(0x1fb)](){const _0x3ce691=_0x3cbd18;var _0x25ee2b;this[_0x3ce691(0x1f5)]['next'](_0x3ce691(0x248)),(_0x25ee2b=this[_0x3ce691(0x1c3)])==null||_0x25ee2b[_0x3ce691(0x23e)]();}[_0x3cbd18(0x18c)](_0x31597d){const _0x153726=_0x3cbd18;if([_0x153726(0x19c),'not-following','offline'][_0x153726(0x1a9)](this[_0x153726(0x1dd)])||!_0x31597d[_0x153726(0x257)][_0x153726(0x208)]||_0x31597d[_0x153726(0x257)][_0x153726(0x208)]===this[_0x153726(0x1cd)][_0x153726(0x1ed)]())return;this[_0x153726(0x1dd)]===_0x153726(0x1f1)&&this[_0x153726(0x1bc)]();const _0x5d4612=_0x31597d[_0x153726(0x257)][_0x153726(0x246)];Object[_0x153726(0x243)](_0x5d4612)[_0x153726(0x251)](_0x2631ee=>{const _0x102d46=_0x153726;this[_0x102d46(0x1d4)][_0x102d46(0x1ae)](_0x2631ee['id'],_0x2631ee['params']?JSON[_0x102d46(0x1ec)](_0x2631ee[_0x102d46(0x1e3)]):null,{'fromCollab':!0x0});});}[_0x3cbd18(0x1a8)](){const _0x5b93ff=_0x3cbd18;var _0x4ad59f;this[_0x5b93ff(0x1f5)][_0x5b93ff(0x21d)](_0x5b93ff(0x216)),(_0x4ad59f=this[_0x5b93ff(0x1c3)])==null||_0x4ad59f[_0x5b93ff(0x23e)]();}[_0x3cbd18(0x209)](){const _0x5cc25e=_0x3cbd18;this[_0x5cc25e(0x1f5)][_0x5cc25e(0x21d)](_0x5cc25e(0x1f1)),this['_fetchOperations']();}},exports[_0x3cbd18(0x240)]=P([S(0x2,o[_0x3cbd18(0x1de)]),S(0x3,o[_0x3cbd18(0x1ab)](E)),S(0x4,o[_0x3cbd18(0x1d5)])],exports[_0x3cbd18(0x240)]);function $(){const _0xb3f975=_0x3cbd18,_0x194e5c=p[_0xb3f975(0x1c4)](exports[_0xb3f975(0x247)]),_0x32bef9=p[_0xb3f975(0x1c4)](o['IUniverInstanceService']),_0x27bf10=p[_0xb3f975(0x1cc)](()=>_0x32bef9[_0xb3f975(0x1a1)](o['UniverInstanceType'][_0xb3f975(0x1c7)]),void 0x0,!0x1,[]),[_0x406f2c,_0x21f7c5]=v['useState'](null),[_0x51df88,_0x394edf]=v['useState'](u['IDLE']),_0x4aaaf1=v[_0xb3f975(0x21f)](null);return v[_0xb3f975(0x20a)](()=>(_0x27bf10&&_0x194e5c[_0xb3f975(0x1ea)](_0x27bf10[_0xb3f975(0x22e)]())['then'](_0x1f7aca=>{const _0x271f36=_0xb3f975;_0x21f7c5(_0x1f7aca),_0x4aaaf1[_0x271f36(0x1ff)]=_0x1f7aca['status$'][_0x271f36(0x22c)](_0x1c74be=>{_0x394edf(_0x1c74be);});}),()=>{const _0xc32d21=_0xb3f975;var _0x141359;(_0x141359=_0x4aaaf1[_0xc32d21(0x1ff)])==null||_0x141359[_0xc32d21(0x1eb)](),_0x4aaaf1[_0xc32d21(0x1ff)]=null;}),[_0x27bf10,_0x194e5c]),_0x406f2c?l[_0xb3f975(0x195)](f[_0xb3f975(0x1e9)],{'align':'end','disabled':_0x51df88===u[_0xb3f975(0x20d)],'className':_0xb3f975(0x1aa),'overlay':l['jsx'](W,{'status':_0x51df88,'coordinator':_0x406f2c}),'children':l['jsx']('button',{'className':f[_0xb3f975(0x1d9)](_0xb3f975(0x218),{'univer-cursor-not-allowed':_0x51df88===u[_0xb3f975(0x20d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51df88!==u[_0xb3f975(0x20d)]}),'type':_0xb3f975(0x1c1),'children':l[_0xb3f975(0x195)](R,{'className':_0xb3f975(0x210)})})}):null;}function W(_0xae12d2){const _0x105300=_0x3cbd18,{status:_0xc762e3,coordinator:_0x4eb206}=_0xae12d2;switch(_0xc762e3){case u[_0x105300(0x226)]:return l[_0x105300(0x195)](G,{'coordinator':_0x4eb206});case u[_0x105300(0x1d3)]:return l[_0x105300(0x195)](B,{'coordinator':_0x4eb206});case u[_0x105300(0x20e)]:return l[_0x105300(0x195)](Y,{'coordinator':_0x4eb206});case u[_0x105300(0x20d)]:return l[_0x105300(0x195)](J,{});case u[_0x105300(0x1cf)]:return l[_0x105300(0x195)](Z,{'coordinator':_0x4eb206});default:return null;}}function G(_0x466ae5){const _0x40ccbb=_0x3cbd18,{coordinator:_0x4c3f0d}=_0x466ae5;return l[_0x40ccbb(0x1be)](l[_0x40ccbb(0x196)],{'children':[l['jsx'](_0x40ccbb(0x1da),{'className':_0x40ccbb(0x23d),'children':_0x40ccbb(0x1e7)}),l[_0x40ccbb(0x195)](f[_0x40ccbb(0x1d1)],{'onClick':()=>_0x4c3f0d[_0x40ccbb(0x1d8)](),'children':_0x40ccbb(0x1b5)})]});}function B(_0x443aa2){const _0x2250e2=_0x3cbd18,{coordinator:_0x3d7666}=_0x443aa2;return l['jsxs'](l[_0x2250e2(0x196)],{'children':[l[_0x2250e2(0x195)](_0x2250e2(0x1da),{'className':_0x2250e2(0x23d),'children':_0x2250e2(0x1ca)}),l[_0x2250e2(0x195)](f[_0x2250e2(0x1d1)],{'onClick':()=>_0x3d7666['stopFollowing'](),'children':_0x2250e2(0x244)})]});}function Y(_0x4009a2){const _0x3489c9=_0x3cbd18,{coordinator:_0x5f1895}=_0x4009a2;return l[_0x3489c9(0x1be)](l[_0x3489c9(0x196)],{'children':[l['jsx'](_0x3489c9(0x1da),{'className':_0x3489c9(0x23d),'children':_0x3489c9(0x213)}),l[_0x3489c9(0x195)](f['Button'],{'variant':_0x3489c9(0x1af),'onClick':()=>_0x5f1895[_0x3489c9(0x192)](),'children':_0x3489c9(0x1b9)})]});}function Z(_0x11bc18){const _0x24976e=_0x3cbd18,{coordinator:_0x23619c}=_0x11bc18;return l['jsxs'](l[_0x24976e(0x196)],{'children':[l[_0x24976e(0x195)](_0x24976e(0x1da),{'className':_0x24976e(0x23d),'children':_0x24976e(0x205)}),l[_0x24976e(0x195)](f['Button'],{'variant':'default','onClick':()=>_0x23619c[_0x24976e(0x20b)](),'children':_0x24976e(0x232)})]});}function J(){const _0x1ef033=_0x3cbd18;return l['jsx'](l[_0x1ef033(0x196)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x3cbd18(0x23f)],z=(_0x35d10a,_0xc9c882,_0x3689f0,_0x13880d)=>{const _0x8746b2=_0x3cbd18;for(var _0x312396=_0x13880d>0x1?void 0x0:_0x13880d?K(_0xc9c882,_0x3689f0):_0xc9c882,_0x5cfdc2=_0x35d10a[_0x8746b2(0x187)]-0x1,_0x133856;_0x5cfdc2>=0x0;_0x5cfdc2--)(_0x133856=_0x35d10a[_0x5cfdc2])&&(_0x312396=_0x133856(_0x312396)||_0x312396);return _0x312396;},L=(_0x5dff01,_0x450971)=>(_0x337546,_0x1b620f)=>_0x450971(_0x337546,_0x1b620f,_0x5dff01);exports[_0x3cbd18(0x20c)]=class extends o[_0x3cbd18(0x21b)]{constructor(_0x1a868a,_0x3b59c2){const _0x2c88be=_0x3cbd18;super(),this[_0x2c88be(0x19f)]=_0x1a868a,this[_0x2c88be(0x203)]=_0x3b59c2,this[_0x2c88be(0x1d7)]();}[_0x3cbd18(0x1d7)](){const _0x34d60c=_0x3cbd18;this[_0x34d60c(0x1a7)](this[_0x34d60c(0x203)]['registerComponent'](p['BuiltInUIPart'][_0x34d60c(0x1f7)],()=>p[_0x34d60c(0x18b)]($,this[_0x34d60c(0x19f)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x3cbd18(0x1ab)](o[_0x3cbd18(0x204)])),L(0x1,p[_0x3cbd18(0x25b)])],exports[_0x3cbd18(0x20c)]);const Q=_0x3cbd18(0x1ac),w={};var X=Object[_0x3cbd18(0x23f)],ee=(_0x398729,_0x1317a7,_0x466c4e,_0x55bd36)=>{const _0x15c2ad=_0x3cbd18;for(var _0x1e0340=_0x55bd36>0x1?void 0x0:_0x55bd36?X(_0x1317a7,_0x466c4e):_0x1317a7,_0x3e8b6f=_0x398729[_0x15c2ad(0x187)]-0x1,_0x5ed338;_0x3e8b6f>=0x0;_0x3e8b6f--)(_0x5ed338=_0x398729[_0x3e8b6f])&&(_0x1e0340=_0x5ed338(_0x1e0340)||_0x1e0340);return _0x1e0340;},te=(_0x3aeddb,_0xcd07aa)=>(_0x8ccb1,_0x1d3ff0)=>_0xcd07aa(_0x8ccb1,_0x1d3ff0,_0x3aeddb);let m=class extends o['Disposable']{constructor(_0x10d4ff){const _0x21de52=_0x3cbd18;super(),this[_0x21de52(0x236)]=_0x10d4ff,this[_0x21de52(0x1ce)]();}[_0x3cbd18(0x1ce)](){const _0x1323e4=_0x3cbd18;[D['SetZoomRatioOperation']['id'],D[_0x1323e4(0x1fd)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1323e4(0x251)](_0xe7731=>{const _0x1302c8=_0x1323e4;this[_0x1302c8(0x1a7)](this[_0x1302c8(0x236)][_0x1302c8(0x250)](_0xe7731));});}};m=ee([te(0x0,o[_0x3cbd18(0x1ab)](E))],m);function _0x46af(){const _0x53125e=['_status$','dispose$','HEADER_MENU','toString','parseProtocolChangeset','mergeOverrideWithDependencies','_stopFollowing','assign','SetScrollOperation','CollaborationSessionService','current','map','_fetchOperations','throttleTime','_uiPartsService','Injector','You\x27re\x20presenting\x20the\x20document','UNIVER_LIVE_SHARE_PLUGIN','_unitID','presenter','_handleOnline','useEffect','stopPresenting','DesktopLiveShareController','OFFLINE','NOT_FOLLOWING','createElement','univer-size-4','init','evenodd','You\x27re\x20not\x20following\x20the\x20presenter','setConfig','takeUntil','offline','get','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','CommandType','_entities','Disposable','144154CBrXgn','next','set','useRef','random','SessionStatus','memberID','UniverInstanceType','requireSession','1em','IDLE','LiveShare','SAME_OPERATION_SHARE_INTERVAL','defIds','currentColor','_beIdle','subscribe','CollaborationEvent','getUnitId','0\x200\x2017\x2017','xlink:href','shouldShareOperation','Stop\x20presenting','_startLiveShareCoordinator','live-share-icon','IUniverInstanceService','_liveShareService','UNIVER_UNKNOWN','has','from','idSuffix','_stopPresenting','6381865YwytRF','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','getOwnPropertyDescriptor','LiveShareCoordinator','561BnPJvE','_sharedOperations','values','Stop\x20following','onRendered','operations','LiveShareController','not-following','url(#$1','1082890vMptKx','merge','stopFollowing','12yZiFDh','colorChannel1','defineProperty','registerSharedOperation','forEach','_config','LIVESHARE_TERMINATE','8245760GpJPRd','LIVESHARE_OPERATION','mask','data','_handleNewChangeSets','event$','entries','IUIPartsService','pluginName','forwardRef','length','_univerInstanceService','_handleNewHost','getStatus','connectInjector','_handleOperation','symbol','NEW_CHANGESETS','sessionStatus$','LIVESHARE_REQUEST_HOST','27260cXILzi','startFollowing','toStringTag','UniverCollaborationClientPlugin','jsx','Fragment','reverse','following','add','_reporters','attrs','presenting','DependentOn','OPERATION','_injector','LiveShareIcon','getCurrentTypeOfUnit$','LiveShareService','delete','UniverLiveSharePlugin','clear','_collabSessionService','disposeWithMe','_handleOffline','includes','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','Inject','live-share.config','_startPresenting','executeCommand','text','getInitialStates','use','complete','children','string','Start','defs','1583187YNxXYB','pipe','Start\x20following','createInstance','_presenter','_startFollowing','mutations','jsxs','getConfig','onCommandExecuted','button','none','_commandDisposable','useDependency','Plugin','replace','UNIVER_SHEET','LIVESHARE_NEW_HOST','ONLINE','You\x27re\x20following\x20the\x20presenter','path','useObservable','_collabSession','_init','PRESENTING','toDisposable','Button','svg','FOLLOWING','_commandService','ICommandService','RxDisposable','_mountLiveShare','tryStartPresenting','clsx','div','62381151HyXPmJ','find','_status','IConfigService','registerInitialStateReporter','getValue','fill','_configService','params','send','_handleTerminate','http://www.w3.org/2000/svg','Present\x20this\x20document','SetWorksheetActiveOperation','Dropdown','getLiveShareCoordinator','unsubscribe','parse','getMemberID','tag','getTypeOfUnitAdded$','trim','idle','displayName','asObservable','stringify'];_0x46af=function(){return _0x53125e;};return _0x46af();}var ie=Object[_0x3cbd18(0x24f)],se=Object['getOwnPropertyDescriptor'],ne=(_0x5ed3b1,_0x4c1aa4,_0x32088a)=>_0x4c1aa4 in _0x5ed3b1?ie(_0x5ed3b1,_0x4c1aa4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32088a}):_0x5ed3b1[_0x4c1aa4]=_0x32088a,re=(_0x23df2e,_0x124044,_0x14586e,_0x41fc5e)=>{const _0x327ce2=_0x3cbd18;for(var _0x1ca513=_0x41fc5e>0x1?void 0x0:_0x41fc5e?se(_0x124044,_0x14586e):_0x124044,_0x3b9342=_0x23df2e[_0x327ce2(0x187)]-0x1,_0x4ac41d;_0x3b9342>=0x0;_0x3b9342--)(_0x4ac41d=_0x23df2e[_0x3b9342])&&(_0x1ca513=_0x4ac41d(_0x1ca513)||_0x1ca513);return _0x1ca513;},N=(_0x58e2f4,_0x93c5c1)=>(_0x3d3524,_0x2fe417)=>_0x93c5c1(_0x3d3524,_0x2fe417,_0x58e2f4),A=(_0x5a684d,_0x518e39,_0x18eac6)=>ne(_0x5a684d,typeof _0x518e39!=_0x3cbd18(0x18d)?_0x518e39+'':_0x518e39,_0x18eac6);const oe=_0x3cbd18(0x206);exports['UniverLiveSharePlugin']=class extends o[_0x3cbd18(0x1c5)]{constructor(_0x57283b=w,_0x43aef8,_0x492505){const _0x249c5a=_0x3cbd18;super(),this[_0x249c5a(0x252)]=_0x57283b,this[_0x249c5a(0x19f)]=_0x43aef8,this[_0x249c5a(0x1e2)]=_0x492505;const {..._0xf81f4a}=o[_0x249c5a(0x24b)]({},w,this[_0x249c5a(0x252)]);this[_0x249c5a(0x1e2)][_0x249c5a(0x214)](Q,_0xf81f4a);}['onStarting'](){const _0x23fdbb=_0x3cbd18;o['registerDependencies'](this[_0x23fdbb(0x19f)],o[_0x23fdbb(0x1fa)]([[E],[exports[_0x23fdbb(0x247)]],[m],[exports[_0x23fdbb(0x20c)]]],this[_0x23fdbb(0x252)]['override'])),o['touchDependencies'](this[_0x23fdbb(0x19f)],[[m]]);}[_0x3cbd18(0x245)](){const _0x35422a=_0x3cbd18;o['touchDependencies'](this['_injector'],[[exports[_0x35422a(0x20c)]]]);}},A(exports[_0x3cbd18(0x1a4)],'type',o[_0x3cbd18(0x223)][_0x3cbd18(0x237)]),A(exports[_0x3cbd18(0x1a4)],_0x3cbd18(0x185),oe),exports[_0x3cbd18(0x1a4)]=re([o[_0x3cbd18(0x19d)](b[_0x3cbd18(0x194)]),N(0x1,o[_0x3cbd18(0x1ab)](o[_0x3cbd18(0x204)])),N(0x2,o[_0x3cbd18(0x1de)])],exports[_0x3cbd18(0x1a4)]),exports[_0x3cbd18(0x227)]=$,exports[_0x3cbd18(0x1a2)]=E,exports['LiveShareStatus']=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2116a7=_0x43e3;(function(_0x260d3a,_0x2050ff){const _0x2b3ba9=_0x43e3,_0x5cb1c2=_0x260d3a();while(!![]){try{const _0x272beb=parseInt(_0x2b3ba9(0x1ac))/0x1*(parseInt(_0x2b3ba9(0x1ab))/0x2)+parseInt(_0x2b3ba9(0x1a3))/0x3*(parseInt(_0x2b3ba9(0x197))/0x4)+-parseInt(_0x2b3ba9(0x196))/0x5*(parseInt(_0x2b3ba9(0x1a7))/0x6)+-parseInt(_0x2b3ba9(0x1b0))/0x7*(-parseInt(_0x2b3ba9(0x1a6))/0x8)+parseInt(_0x2b3ba9(0x192))/0x9*(parseInt(_0x2b3ba9(0x1a9))/0xa)+-parseInt(_0x2b3ba9(0x189))/0xb*(parseInt(_0x2b3ba9(0x1af))/0xc)+parseInt(_0x2b3ba9(0x19e))/0xd*(parseInt(_0x2b3ba9(0x1a1))/0xe);if(_0x272beb===_0x2050ff)break;else _0x5cb1c2['push'](_0x5cb1c2['shift']());}catch(_0x2b5550){_0x5cb1c2['push'](_0x5cb1c2['shift']());}}}(_0x5b45,0x272cc));import{LiveShareController as _0x5e2da0,LiveShareStatus as _0x3d8ada}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x1b61f1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x52e888}from'@univerjs/sheets';function _0x5b45(){const _0x1557cb=['156WQFyMV','20867DyCOTT','165143ACawiX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','LiveShareStatusEnum','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','getId','stopPresenting','468TiYsoY','_initialize','IDLE','getLiveShareStatus','220uiTMWU','132DOXFXK','getActiveSheet','startColumn','stopFollowing','PRESENTING','syncExecuteCommand','get','247117PpQebI','getUnitId','extend','28KdYXiB','startFollowing','16431Fswqhs','tryStartPresenting','_commandService','328MgAiRG','5622ujsbUL','executeCommand','5450zmUWqj','getActiveWorkbook','2JUKDTo','27537xrgDQF','getStatus','_injector'];_0x5b45=function(){return _0x1557cb;};return _0x5b45();}import{SetScrollOperation as _0x504b14}from'@univerjs/sheets-ui';import{FRange as _0x577c9f}from'@univerjs/sheets/facade';import{FUniver as _0x4b8844,FEnum as _0x4cd64b}from'@univerjs/core/facade';class I extends _0x577c9f{[_0x2116a7(0x193)](_0x28aa31,_0x31777b,_0x2f5cbf,_0x254c79,_0x57dd46){const _0x2837a3=_0x2116a7,_0x9a820c=_0x28aa31[_0x2837a3(0x19d)](_0x5e2da0),_0x157427=_0x28aa31[_0x2837a3(0x19d)](_0x1b61f1),_0x225e51=_0x31777b[_0x2837a3(0x19f)](),_0x44dc49=_0x31777b[_0x2837a3(0x198)](),_0x2b12f4=_0x9a820c[_0x2837a3(0x18b)](_0x225e51);(_0x2b12f4==null?void 0x0:_0x2b12f4[_0x2837a3(0x1ad)]())!==_0x3d8ada[_0x2837a3(0x19b)]||(_0x2f5cbf[_0x2837a3(0x18d)]()!==_0x44dc49[_0x2837a3(0x18d)]()&&this[_0x2837a3(0x1a5)][_0x2837a3(0x1a8)](_0x52e888['id'],{'unitId':_0x225e51,'subUnitId':_0x2f5cbf[_0x2837a3(0x18d)]()}),!_0x157427['getRenderById'](_0x225e51))||_0x57dd46[_0x2837a3(0x19c)](_0x504b14['id'],{'unitId':_0x31777b[_0x2837a3(0x19f)](),'sheetId':_0x2f5cbf[_0x2837a3(0x18d)](),'sheetViewStartRow':_0x254c79[_0x2837a3(0x18f)],'sheetViewStartColumn':_0x254c79[_0x2837a3(0x199)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x43e3(_0x3f8704,_0x49cc8d){_0x3f8704=_0x3f8704-0x189;const _0x5b45c3=_0x5b45();let _0x43e33a=_0x5b45c3[_0x3f8704];return _0x43e33a;}_0x577c9f[_0x2116a7(0x1a0)](I);class m extends _0x4b8844{[_0x2116a7(0x195)](){const _0x4dfb7f=_0x2116a7;var _0x4c71d9,_0x2e2c5d;const _0x2bcb76=this[_0x4dfb7f(0x1ae)][_0x4dfb7f(0x19d)](_0x5e2da0),_0x2187d4=(_0x4c71d9=this[_0x4dfb7f(0x1aa)]())==null?void 0x0:_0x4c71d9[_0x4dfb7f(0x190)]();if(!_0x2187d4)throw new Error('No\x20active\x20workbook\x20found.');const _0x3abf2f=_0x2bcb76[_0x4dfb7f(0x18b)](_0x2187d4);return(_0x2e2c5d=_0x3abf2f==null?void 0x0:_0x3abf2f[_0x4dfb7f(0x1ad)]())!=null?_0x2e2c5d:_0x3d8ada[_0x4dfb7f(0x194)];}[_0x2116a7(0x1a2)](){const _0x2421d1=_0x2116a7;var _0x5aa892;const _0x2c9a37=this[_0x2421d1(0x1ae)][_0x2421d1(0x19d)](_0x5e2da0),_0x17245a=(_0x5aa892=this[_0x2421d1(0x1aa)]())==null?void 0x0:_0x5aa892['getId']();if(!_0x17245a)throw new Error('No\x20active\x20workbook\x20found.');const _0x14f44e=_0x2c9a37['getLiveShareCoordinatorSync'](_0x17245a);if(!_0x14f44e)throw new Error(_0x2421d1(0x18e));_0x14f44e[_0x2421d1(0x1a2)]();}[_0x2116a7(0x19a)](){const _0x22494a=_0x2116a7;var _0x1662cd;const _0x14d2c3=this['_injector'][_0x22494a(0x19d)](_0x5e2da0),_0x2ef79a=(_0x1662cd=this['getActiveWorkbook']())==null?void 0x0:_0x1662cd['getId']();if(!_0x2ef79a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4926d7=_0x14d2c3['getLiveShareCoordinatorSync'](_0x2ef79a);if(!_0x4926d7)throw new Error(_0x22494a(0x18e));_0x4926d7['stopFollowing']();}['startPresenting'](){const _0x8c1fe1=_0x2116a7;var _0x4e3a68;const _0x440ae1=this[_0x8c1fe1(0x1ae)]['get'](_0x5e2da0),_0x2976fe=(_0x4e3a68=this['getActiveWorkbook']())==null?void 0x0:_0x4e3a68[_0x8c1fe1(0x190)]();if(!_0x2976fe)throw new Error(_0x8c1fe1(0x18a));const _0x559cf7=_0x440ae1[_0x8c1fe1(0x18b)](_0x2976fe);if(!_0x559cf7)throw new Error(_0x8c1fe1(0x18e));_0x559cf7[_0x8c1fe1(0x1a4)]();}[_0x2116a7(0x191)](){const _0x425bce=_0x2116a7;var _0x40a555;const _0x4be973=this[_0x425bce(0x1ae)][_0x425bce(0x19d)](_0x5e2da0),_0x1f3111=(_0x40a555=this[_0x425bce(0x1aa)]())==null?void 0x0:_0x40a555['getId']();if(!_0x1f3111)throw new Error(_0x425bce(0x18a));const _0x13dbbe=_0x4be973[_0x425bce(0x18b)](_0x1f3111);if(!_0x13dbbe)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13dbbe['stopPresenting']();}}_0x4b8844[_0x2116a7(0x1a0)](m);class C extends _0x4cd64b{get[_0x2116a7(0x18c)](){return _0x3d8ada;}}_0x4cd64b[_0x2116a7(0x1a0)](C);
1
+ function _0x172b(){const _0x239a0f=['238162dguTwF','1XmgSSv','4524550xyKNYR','_injector','_initialize','getLiveShareStatus','703615HPtSXc','_commandService','getSheetId','18hpXxTO','LiveShareStatusEnum','getStatus','getActiveWorkbook','3004712BJKasx','startFollowing','getActiveSheet','extend','120208iWMSQy','PRESENTING','startColumn','stopFollowing','No\x20active\x20workbook\x20found.','stopPresenting','6126960eKEKXg','get','syncExecuteCommand','3609872DstemS','getLiveShareCoordinatorSync','getId','tryStartPresenting','21OPjyXB','startRow','startPresenting','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x172b=function(){return _0x239a0f;};return _0x172b();}function _0x59e4(_0x4a7e04,_0x3250e4){_0x4a7e04=_0x4a7e04-0x136;const _0x172bc9=_0x172b();let _0x59e424=_0x172bc9[_0x4a7e04];return _0x59e424;}const _0x14c585=_0x59e4;(function(_0xdaf91d,_0x159718){const _0x459610=_0x59e4,_0x19f48a=_0xdaf91d();while(!![]){try{const _0x1ff05a=-parseInt(_0x459610(0x13d))/0x1*(-parseInt(_0x459610(0x13c))/0x2)+parseInt(_0x459610(0x137))/0x3*(parseInt(_0x459610(0x14d))/0x4)+-parseInt(_0x459610(0x142))/0x5+parseInt(_0x459610(0x153))/0x6+parseInt(_0x459610(0x156))/0x7+-parseInt(_0x459610(0x149))/0x8*(parseInt(_0x459610(0x145))/0x9)+-parseInt(_0x459610(0x13e))/0xa;if(_0x1ff05a===_0x159718)break;else _0x19f48a['push'](_0x19f48a['shift']());}catch(_0x220c4c){_0x19f48a['push'](_0x19f48a['shift']());}}}(_0x172b,0x7f6d9));import{LiveShareController as _0x201de6,LiveShareStatus as _0x572810}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c9652}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x15a0d3}from'@univerjs/sheets';import{SetScrollOperation as _0x3e2999}from'@univerjs/sheets-ui';import{FRange as _0x19457d}from'@univerjs/sheets/facade';import{FUniver as _0x527e95,FEnum as _0xa3945e}from'@univerjs/core/facade';class I extends _0x19457d{[_0x14c585(0x140)](_0x213306,_0x211399,_0x5075ec,_0x2746be,_0x5037a3){const _0x5666dd=_0x14c585,_0x35a6db=_0x213306[_0x5666dd(0x154)](_0x201de6),_0x16dd8d=_0x213306[_0x5666dd(0x154)](_0x4c9652),_0x1abcb9=_0x211399['getUnitId'](),_0x3d6ea0=_0x211399[_0x5666dd(0x14b)](),_0x72fc05=_0x35a6db[_0x5666dd(0x157)](_0x1abcb9);(_0x72fc05==null?void 0x0:_0x72fc05['getStatus']())!==_0x572810[_0x5666dd(0x14e)]||(_0x5075ec['getSheetId']()!==_0x3d6ea0['getSheetId']()&&this[_0x5666dd(0x143)]['executeCommand'](_0x15a0d3['id'],{'unitId':_0x1abcb9,'subUnitId':_0x5075ec[_0x5666dd(0x144)]()}),!_0x16dd8d['getRenderById'](_0x1abcb9))||_0x5037a3[_0x5666dd(0x155)](_0x3e2999['id'],{'unitId':_0x211399[_0x5666dd(0x13a)](),'sheetId':_0x5075ec[_0x5666dd(0x144)](),'sheetViewStartRow':_0x2746be[_0x5666dd(0x138)],'sheetViewStartColumn':_0x2746be[_0x5666dd(0x14f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x19457d[_0x14c585(0x14c)](I);class m extends _0x527e95{[_0x14c585(0x141)](){const _0x48f473=_0x14c585;var _0x780f8d,_0x2fca01;const _0x2f5ca2=this[_0x48f473(0x13f)]['get'](_0x201de6),_0x3ee341=(_0x780f8d=this[_0x48f473(0x148)]())==null?void 0x0:_0x780f8d[_0x48f473(0x158)]();if(!_0x3ee341)throw new Error(_0x48f473(0x151));const _0x4c6e46=_0x2f5ca2['getLiveShareCoordinatorSync'](_0x3ee341);return(_0x2fca01=_0x4c6e46==null?void 0x0:_0x4c6e46[_0x48f473(0x147)]())!=null?_0x2fca01:_0x572810['IDLE'];}[_0x14c585(0x14a)](){const _0x3f77c9=_0x14c585;var _0x2a9970;const _0x44430a=this[_0x3f77c9(0x13f)][_0x3f77c9(0x154)](_0x201de6),_0x1c1bb5=(_0x2a9970=this[_0x3f77c9(0x148)]())==null?void 0x0:_0x2a9970[_0x3f77c9(0x158)]();if(!_0x1c1bb5)throw new Error(_0x3f77c9(0x151));const _0x2767d4=_0x44430a[_0x3f77c9(0x157)](_0x1c1bb5);if(!_0x2767d4)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2767d4[_0x3f77c9(0x14a)]();}[_0x14c585(0x150)](){const _0x2a5155=_0x14c585;var _0x14428c;const _0x28a468=this[_0x2a5155(0x13f)][_0x2a5155(0x154)](_0x201de6),_0x5d2678=(_0x14428c=this['getActiveWorkbook']())==null?void 0x0:_0x14428c[_0x2a5155(0x158)]();if(!_0x5d2678)throw new Error('No\x20active\x20workbook\x20found.');const _0x553781=_0x28a468['getLiveShareCoordinatorSync'](_0x5d2678);if(!_0x553781)throw new Error(_0x2a5155(0x13b));_0x553781[_0x2a5155(0x150)]();}[_0x14c585(0x139)](){const _0x2d23c5=_0x14c585;var _0x269211;const _0x46e3ea=this[_0x2d23c5(0x13f)]['get'](_0x201de6),_0x3efc6e=(_0x269211=this[_0x2d23c5(0x148)]())==null?void 0x0:_0x269211[_0x2d23c5(0x158)]();if(!_0x3efc6e)throw new Error(_0x2d23c5(0x151));const _0x25c4f5=_0x46e3ea['getLiveShareCoordinatorSync'](_0x3efc6e);if(!_0x25c4f5)throw new Error(_0x2d23c5(0x13b));_0x25c4f5[_0x2d23c5(0x136)]();}[_0x14c585(0x152)](){const _0xdd386f=_0x14c585;var _0x2c455a;const _0xb94eb=this['_injector'][_0xdd386f(0x154)](_0x201de6),_0x3b591e=(_0x2c455a=this[_0xdd386f(0x148)]())==null?void 0x0:_0x2c455a[_0xdd386f(0x158)]();if(!_0x3b591e)throw new Error(_0xdd386f(0x151));const _0x4e0fba=_0xb94eb[_0xdd386f(0x157)](_0x3b591e);if(!_0x4e0fba)throw new Error(_0xdd386f(0x13b));_0x4e0fba[_0xdd386f(0x152)]();}}_0x527e95[_0x14c585(0x14c)](m);class C extends _0xa3945e{get[_0x14c585(0x146)](){return _0x572810;}}_0xa3945e[_0x14c585(0x14c)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x45a5ad=_0x2562;function _0x27b3(){const _0x3a5d32=['_commandService','presenting','OFFLINE','end','_stopPresenting','defineProperty','UNIVER_UNKNOWN','default','LIVESHARE_REQUEST_HOST','_configService','stopPresenting','_reporters','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','10HrhVdN','map','asObservable','_entities','UniverIcon','47555CKTJaQ','_collabSession','LiveShareIcon','NEW_CHANGESETS','16tUGsqN','path','tryStartPresenting','startFollowing','next','_status','OPERATION','getUnitId','type','1em','getLiveShareCoordinator','mask','195851kIafZS','assign','live-share.config','clear','_startLiveShareCoordinator','_fetchOperations','children','values','length','text','HEADER_MENU','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_TERMINATE','You\x27are\x20offline.','Stop\x20following','memberID','getLiveShareCoordinatorSync','displayName','fill','disposeWithMe','sessionStatus$','stringify','getOwnPropertyDescriptor','_commandDisposable','getStatus','965321KMOtGe','status$','delete','symbol','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','PRESENTING','Start\x20following','string','tag','init','event$','_handleOffline','substring','6ZLWFUQ','_handleTerminate','registerInitialStateReporter','SAME_OPERATION_SHARE_INTERVAL','_init','data','0\x200\x2017\x2017','find','parse','has','_startFollowing','includes','offline','_status$','_handleNewChangeSets','idSuffix','createInstance','add','mutations','46548OjzECT','You\x27re\x20not\x20following\x20the\x20presenter','_stopFollowing','executeCommand','_liveShareService','colorChannel1','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','LIVESHARE_OPERATION','defs','toString','IDLE','79968lJnVMP','currentColor','get','LIVESHARE_FETCH_OPERATIONS','xlink:href','url(#$1','_collabSessionService','use','_uiPartsService','LIVESHARE_NEW_HOST','not-following','_presenter','getConfig','dispose$','_startPresenting','pluginName','sheet','send','params','Start','6053949jvZqCQ','_handleOnline','registerSharedOperation','_handleOperation','button','forEach','unsubscribe','current','entries','replace','_config','set','random','univer-size-4','univerjs-icon\x20univerjs-icon-','_unitID','attrs','_injector','getMemberID','_handleNewHost','stopFollowing','requireSession','from','_beIdle','dispose','getTypeOfUnitAdded$','override','operations','defIds','subscribe','NOT_FOLLOWING','div','pipe','complete','registerComponent','You\x27re\x20presenting\x20the\x20document','_sharedOperations','presenter','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','idle','setConfig','UNIVER_SHEET','shouldShareOperation','2154952naXZCW','FOLLOWING'];_0x27b3=function(){return _0x3a5d32;};return _0x27b3();}(function(_0x5cfd63,_0x5105bd){const _0x4a6bbb=_0x2562,_0x127195=_0x5cfd63();while(!![]){try{const _0x47eeb8=-parseInt(_0x4a6bbb(0x23e))/0x1+parseInt(_0x4a6bbb(0x284))/0x2+-parseInt(_0x4a6bbb(0x279))/0x3*(-parseInt(_0x4a6bbb(0x232))/0x4)+-parseInt(_0x4a6bbb(0x22e))/0x5*(parseInt(_0x4a6bbb(0x266))/0x6)+-parseInt(_0x4a6bbb(0x258))/0x7+-parseInt(_0x4a6bbb(0x21a))/0x8+parseInt(_0x4a6bbb(0x298))/0x9*(parseInt(_0x4a6bbb(0x229))/0xa);if(_0x47eeb8===_0x5105bd)break;else _0x127195['push'](_0x127195['shift']());}catch(_0x437932){_0x127195['push'](_0x127195['shift']());}}}(_0x27b3,0x2791b));var J=Object[_0x45a5ad(0x221)],K=(_0x34e9b9,_0x55baf1,_0xda989c)=>_0x55baf1 in _0x34e9b9?J(_0x34e9b9,_0x55baf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xda989c}):_0x34e9b9[_0x55baf1]=_0xda989c,u=(_0x2e5bf1,_0x4c5009,_0x15489a)=>K(_0x2e5bf1,typeof _0x4c5009!=_0x45a5ad(0x25b)?_0x4c5009+'':_0x4c5009,_0x15489a);import{Disposable as _0x1cac0a,toDisposable as _0x1019de,IUniverInstanceService as _0x167ffb,Inject as _0x24ac51,Injector as _0x37149b,IConfigService as _0x243378,ICommandService as _0x2a6a6b,RxDisposable as _0x1a1fe5,UniverInstanceType as _0x483ab7,DisposableCollection as _0x2ff702,CommandType as _0x35447d,DependentOn as _0x13afb3,Plugin as _0x3bdc1a,merge as _0x468e5c,registerDependencies as _0x306653,mergeOverrideWithDependencies as _0x2e4e88,touchDependencies as _0xa73248}from'@univerjs/core';import{useDependency as _0x2f7790,useObservable as _0x5534e2,IUIPartsService as _0x1e1f8c,BuiltInUIPart as _0x264092,connectInjector as _0x286ddd}from'@univerjs/ui';import{jsx as _0x45dd85,jsxs as _0x55328e,Fragment as _0x481167}from'react/jsx-runtime';import{Dropdown as _0x4d4f60,clsx as _0x290227,Button as _0x5dff14}from'@univerjs/design';import{useRef as _0x38104f,createElement as _0x3dbe79,forwardRef as _0x4af31b,useState as _0x31ebce,useEffect as _0x1ed7eb}from'react';import{CollaborationEvent as _0x5d4a06,parseProtocolChangeset as _0x14b46d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x136282,SessionStatus as _0x10df1b,UniverCollaborationClientPlugin as _0x2cd52a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x345c11,SetWorksheetActiveOperation as _0x2270dd}from'@univerjs/sheets';import{BehaviorSubject as _0x5d1258,Subject as _0x2bf948}from'rxjs';import{takeUntil as _0x246d5b,throttleTime as _0x5b118b}from'rxjs/operators';import{SetZoomRatioOperation as _0x5cee16,SetScrollOperation as _0x3c74b3}from'@univerjs/sheets-ui';function k({ref:_0x121ea1,..._0x2c7bbe}){const _0x5add54=_0x45a5ad,{icon:_0x400cb9,id:_0x3abaed,className:_0x3346f1,extend:_0x55d7da,..._0x42e025}=_0x2c7bbe,_0x15b9f2=(_0x5add54(0x1fd)+_0x3abaed+'\x20'+(_0x3346f1||''))['trim'](),_0x28ad03=_0x38104f('_'+Oe());return G(_0x400cb9,''+_0x3abaed,{'defIds':_0x400cb9[_0x5add54(0x20b)],'idSuffix':_0x28ad03['current']},{'ref':_0x121ea1,'className':_0x15b9f2,..._0x42e025},_0x55d7da);}function G(_0x3ecbb0,_0x54af86,_0x4e0af7,_0x51bce8,_0x2a880d){const _0x481778=_0x45a5ad;return _0x3dbe79(_0x3ecbb0[_0x481778(0x261)],{'key':_0x54af86,...be(_0x3ecbb0,_0x4e0af7,_0x2a880d),..._0x51bce8},(Ee(_0x3ecbb0,_0x4e0af7)['children']||[])[_0x481778(0x22a)]((_0x2da3b3,_0x2ded7d)=>G(_0x2da3b3,_0x54af86+'-'+_0x3ecbb0[_0x481778(0x261)]+'-'+_0x2ded7d,_0x4e0af7,void 0x0,_0x2a880d)));}function be(_0x241a8f,_0x28a98d,_0xf51db3){const _0x42ac5f=_0x45a5ad,_0x407720={..._0x241a8f[_0x42ac5f(0x1ff)]};_0xf51db3!=null&&_0xf51db3[_0x42ac5f(0x27e)]&&_0x407720[_0x42ac5f(0x251)]===_0x42ac5f(0x27e)&&(_0x407720[_0x42ac5f(0x251)]=_0xf51db3[_0x42ac5f(0x27e)]),_0x241a8f[_0x42ac5f(0x261)]===_0x42ac5f(0x23d)&&_0x407720['id']&&(_0x407720['id']=_0x407720['id']+_0x28a98d[_0x42ac5f(0x275)]),Object[_0x42ac5f(0x1f7)](_0x407720)[_0x42ac5f(0x1f4)](([_0x286588,_0x572f24])=>{const _0x66e4dd=_0x42ac5f;_0x286588==='mask'&&typeof _0x572f24==_0x66e4dd(0x260)&&(_0x407720[_0x286588]=_0x572f24['replace'](/url\(#(.*)\)/,_0x66e4dd(0x289)+_0x28a98d[_0x66e4dd(0x275)]+')'));});const {defIds:_0x3e0d01}=_0x28a98d;return!_0x3e0d01||_0x3e0d01['length']===0x0||(_0x241a8f['tag']===_0x42ac5f(0x28b)&&_0x407720[_0x42ac5f(0x288)]&&(_0x407720[_0x42ac5f(0x288)]=_0x407720[_0x42ac5f(0x288)]+_0x28a98d['idSuffix']),Object['entries'](_0x407720)[_0x42ac5f(0x1f4)](([_0x4f814b,_0x250864])=>{const _0x37ebdb=_0x42ac5f;typeof _0x250864==_0x37ebdb(0x260)&&(_0x407720[_0x4f814b]=_0x250864[_0x37ebdb(0x1f8)](/url\(#(.*)\)/,_0x37ebdb(0x289)+_0x28a98d[_0x37ebdb(0x275)]+')'));})),_0x407720;}function Ee(_0x1425b5,_0x22aaba){const _0x21a12b=_0x45a5ad;var _0xc91c1f;const {defIds:_0x2c55e1}=_0x22aaba;return!_0x2c55e1||_0x2c55e1[_0x21a12b(0x246)]===0x0?_0x1425b5:_0x1425b5[_0x21a12b(0x261)]===_0x21a12b(0x281)&&((_0xc91c1f=_0x1425b5[_0x21a12b(0x244)])!=null&&_0xc91c1f['length'])?{..._0x1425b5,'children':_0x1425b5[_0x21a12b(0x244)][_0x21a12b(0x22a)](_0x3c26e7=>typeof _0x3c26e7[_0x21a12b(0x1ff)]['id']==_0x21a12b(0x260)&&_0x2c55e1&&_0x2c55e1[_0x21a12b(0x271)](_0x3c26e7[_0x21a12b(0x1ff)]['id'])?{..._0x3c26e7,'attrs':{..._0x3c26e7['attrs'],'id':_0x3c26e7[_0x21a12b(0x1ff)]['id']+_0x22aaba[_0x21a12b(0x275)]}}:_0x3c26e7)}:_0x1425b5;}function Oe(){const _0x515b06=_0x45a5ad;return Math[_0x515b06(0x1fb)]()[_0x515b06(0x282)](0x24)[_0x515b06(0x265)](0x2,0x8);}k[_0x45a5ad(0x250)]=_0x45a5ad(0x22d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x45a5ad(0x26c),'width':_0x45a5ad(0x23b),'height':_0x45a5ad(0x23b)},'children':[{'tag':_0x45a5ad(0x233),'attrs':{'fill':_0x45a5ad(0x285),'d':_0x45a5ad(0x215)}},{'tag':'path','attrs':{'fill':_0x45a5ad(0x285),'d':_0x45a5ad(0x27f),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x4af31b(function(_0x4cb11b,_0x3f7fa5){const _0x114107=_0x45a5ad;return _0x3dbe79(k,Object[_0x114107(0x23f)]({},_0x4cb11b,{'id':'live-share-icon','ref':_0x3f7fa5,'icon':we}));});W[_0x45a5ad(0x250)]=_0x45a5ad(0x230);class L extends _0x1cac0a{constructor(){const _0x4d8a42=_0x45a5ad;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4d8a42(0x227),new Set());}[_0x45a5ad(0x29a)](_0x2588a5){const _0x5191b7=_0x45a5ad;return this[_0x5191b7(0x213)]['add'](_0x2588a5),_0x1019de(()=>this[_0x5191b7(0x213)]['delete'](_0x2588a5));}[_0x45a5ad(0x268)](_0xd70e25){const _0x33dbbf=_0x45a5ad;return this['_reporters'][_0x33dbbf(0x277)](_0xd70e25),_0x1019de(()=>this[_0x33dbbf(0x227)][_0x33dbbf(0x25a)](_0xd70e25));}[_0x45a5ad(0x219)](_0x1c2b68){const _0x1e223f=_0x45a5ad;return this[_0x1e223f(0x213)][_0x1e223f(0x26f)](_0x1c2b68);}['getInitialStates'](_0x3b2e6d){const _0x4eb3a1=_0x45a5ad;return Array[_0x4eb3a1(0x205)](this[_0x4eb3a1(0x227)])[_0x4eb3a1(0x22a)](_0x425a91=>_0x425a91(_0x3b2e6d));}}var Ne=Object[_0x45a5ad(0x255)],Y=(_0x2ea9d8,_0x335e29,_0x19247f,_0x2ae7e6)=>{const _0x52cfd9=_0x45a5ad;for(var _0x3142d2=_0x2ae7e6>0x1?void 0x0:_0x2ae7e6?Ne(_0x335e29,_0x19247f):_0x335e29,_0x18eab1=_0x2ea9d8[_0x52cfd9(0x246)]-0x1,_0x12f355;_0x18eab1>=0x0;_0x18eab1--)(_0x12f355=_0x2ea9d8[_0x18eab1])&&(_0x3142d2=_0x12f355(_0x3142d2)||_0x3142d2);return _0x3142d2;},_=(_0x592ced,_0x17afc1)=>(_0x57235f,_0xae1439)=>_0x17afc1(_0x57235f,_0xae1439,_0x592ced);let S=class extends _0x1a1fe5{constructor(_0x12f268,_0x4bea31,_0x4f98b6){const _0x233c58=_0x45a5ad;super(),u(this,'_entities',new Map()),(this[_0x233c58(0x25d)]=_0x12f268,this['_injector']=_0x4bea31,this['_collabSessionService']=_0x4f98b6,this[_0x233c58(0x26a)]());}async[_0x45a5ad(0x23c)](_0x32532c){const _0x102269=_0x45a5ad;return this[_0x102269(0x22c)][_0x102269(0x26f)](_0x32532c)||await this[_0x102269(0x242)](_0x32532c),this['_entities'][_0x102269(0x286)](_0x32532c);}[_0x45a5ad(0x24f)](_0x421d63){var _0x5dc3e1;return(_0x5dc3e1=this['_entities']['get'](_0x421d63))!=null?_0x5dc3e1:null;}[_0x45a5ad(0x26a)](){const _0x266b3b=_0x45a5ad;this['_univerInstanceService'][_0x266b3b(0x208)](_0x483ab7[_0x266b3b(0x218)])[_0x266b3b(0x20f)](_0x246d5b(this[_0x266b3b(0x291)]))[_0x266b3b(0x20c)](async _0x455c62=>{const _0xb10134=_0x266b3b,_0x5d1f4e=_0x455c62[_0xb10134(0x239)]();this[_0xb10134(0x22c)][_0xb10134(0x26f)](_0x5d1f4e)||this[_0xb10134(0x242)](_0x5d1f4e);}),this[_0x266b3b(0x25d)]['getTypeOfUnitDisposed$'](_0x483ab7['UNIVER_SHEET'])[_0x266b3b(0x20f)](_0x246d5b(this[_0x266b3b(0x291)]))['subscribe'](_0x4216ff=>{const _0x1668d1=_0x266b3b,_0x397c55=_0x4216ff['getUnitId'](),_0x3c6947=this[_0x1668d1(0x22c)][_0x1668d1(0x286)](_0x397c55);_0x3c6947==null||_0x3c6947['dispose']();});}async['_startLiveShareCoordinator'](_0x1ded96){const _0x269870=_0x45a5ad,_0x5cee28=await this[_0x269870(0x28a)][_0x269870(0x204)](_0x1ded96),_0x238506=this[_0x269870(0x200)][_0x269870(0x276)](N,_0x1ded96,_0x5cee28);return _0x238506[_0x269870(0x262)](),this[_0x269870(0x22c)][_0x269870(0x1fa)](_0x1ded96,_0x238506),_0x238506;}};S=Y([_(0x0,_0x167ffb),_(0x1,_0x24ac51(_0x37149b)),_(0x2,_0x24ac51(_0x136282))],S);var c=(_0xfa79e=>(_0xfa79e['OFFLINE']='offline',_0xfa79e[_0x45a5ad(0x283)]=_0x45a5ad(0x216),_0xfa79e[_0x45a5ad(0x21b)]=_0x45a5ad(0x249),_0xfa79e[_0x45a5ad(0x20d)]=_0x45a5ad(0x28e),_0xfa79e[_0x45a5ad(0x25e)]=_0x45a5ad(0x21d),_0xfa79e))(c||{});const Ce=_0x45a5ad(0x269),De=0xc8;let N=class extends _0x1a1fe5{constructor(_0x1e3822,_0xa4c667,_0x3a4a1d,_0x5dd24c,_0x682e1c){const _0x4b8d24=_0x45a5ad;super(),u(this,'_status$',new _0x5d1258('idle')),u(this,'status$',this[_0x4b8d24(0x273)][_0x4b8d24(0x22b)]()),u(this,_0x4b8d24(0x26a),!0x1),u(this,_0x4b8d24(0x256),null),u(this,_0x4b8d24(0x28f),null),(this[_0x4b8d24(0x1fe)]=_0x1e3822,this[_0x4b8d24(0x22f)]=_0xa4c667,this[_0x4b8d24(0x225)]=_0x3a4a1d,this[_0x4b8d24(0x27d)]=_0x5dd24c,this['_commandService']=_0x682e1c);}get[_0x45a5ad(0x237)](){const _0x522d43=_0x45a5ad;return this[_0x522d43(0x273)]['getValue']();}['dispose'](){const _0x2cbb49=_0x45a5ad;var _0x2e2949;(_0x2e2949=this[_0x2cbb49(0x256)])==null||_0x2e2949[_0x2cbb49(0x207)](),this[_0x2cbb49(0x273)][_0x2cbb49(0x236)](_0x2cbb49(0x216)),this[_0x2cbb49(0x273)][_0x2cbb49(0x210)]();}[_0x45a5ad(0x257)](){const _0x49acf5=_0x45a5ad;return this[_0x49acf5(0x237)];}[_0x45a5ad(0x262)](){const _0x322ddb=_0x45a5ad;this['_init']||(this[_0x322ddb(0x26a)]=!0x0,this[_0x322ddb(0x22f)][_0x322ddb(0x253)]['pipe'](_0x246d5b(this['dispose$']))[_0x322ddb(0x20c)](_0xcde821=>{const _0x1976aa=_0x322ddb;switch(_0xcde821){case _0x10df1b[_0x1976aa(0x21e)]:this[_0x1976aa(0x264)]();break;case _0x10df1b['ONLINE']:this['_handleOnline']();break;}}),this[_0x322ddb(0x22f)][_0x322ddb(0x263)]['pipe'](_0x246d5b(this[_0x322ddb(0x291)]))[_0x322ddb(0x20c)](_0x58e3d5=>{const _0x1357b5=_0x322ddb,{eventID:_0x364022}=_0x58e3d5;switch(_0x364022){case _0x5d4a06[_0x1357b5(0x28d)]:this[_0x1357b5(0x202)](_0x58e3d5);break;case _0x5d4a06[_0x1357b5(0x280)]:this[_0x1357b5(0x1f2)](_0x58e3d5);break;case _0x5d4a06['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x5d4a06[_0x1357b5(0x231)]:this[_0x1357b5(0x274)](_0x58e3d5);break;}}));}[_0x45a5ad(0x234)](){const _0x545f53=_0x45a5ad;this['_collabSession'][_0x545f53(0x295)]({'eventID':_0x5d4a06[_0x545f53(0x224)],'data':{'unitID':this[_0x545f53(0x1fe)],'userID':this[_0x545f53(0x22f)]['getMemberID']()}},this['_unitID']);}[_0x45a5ad(0x226)](){const _0x2ab43d=_0x45a5ad;this[_0x2ab43d(0x237)]===_0x2ab43d(0x21d)&&(this[_0x2ab43d(0x273)]['next']('idle'),this[_0x2ab43d(0x22f)][_0x2ab43d(0x295)]({'eventID':_0x5d4a06[_0x2ab43d(0x24b)],'data':{'unitID':this[_0x2ab43d(0x1fe)]}},this[_0x2ab43d(0x1fe)]));}[_0x45a5ad(0x235)](){const _0x16a309=_0x45a5ad;this['_status']===_0x16a309(0x28e)&&(this[_0x16a309(0x273)][_0x16a309(0x236)](_0x16a309(0x249)),this[_0x16a309(0x270)]());}[_0x45a5ad(0x203)](){const _0x20cd01=_0x45a5ad;this[_0x20cd01(0x237)]===_0x20cd01(0x249)&&this[_0x20cd01(0x27b)]();}[_0x45a5ad(0x202)](_0x3e8f6a){const _0x5c29d3=_0x45a5ad,{presenter:_0x51238c}=_0x3e8f6a[_0x5c29d3(0x26b)],_0x3f8d14=this[_0x5c29d3(0x22f)][_0x5c29d3(0x201)]();this[_0x5c29d3(0x28f)]=_0x51238c,_0x51238c===_0x3f8d14?(this[_0x5c29d3(0x27b)](),this[_0x5c29d3(0x292)]()):this['_status']!=='not-following'&&(this[_0x5c29d3(0x220)](),this[_0x5c29d3(0x270)]());}['_fetchOperations'](){const _0x5838b7=_0x45a5ad,_0x566123={'eventID':_0x5d4a06[_0x5838b7(0x287)]};this[_0x5838b7(0x22f)][_0x5838b7(0x295)](_0x566123,this['_unitID']);}[_0x45a5ad(0x267)](){const _0x4b7328=_0x45a5ad;this[_0x4b7328(0x28f)]=null,this['_status']!==_0x4b7328(0x21d)&&this[_0x4b7328(0x206)]();}[_0x45a5ad(0x274)](_0x551516){const _0x391a86=_0x45a5ad;if(this[_0x391a86(0x237)]==='following'&&this[_0x391a86(0x28f)]===_0x551516[_0x391a86(0x26b)][_0x391a86(0x24e)]){const _0x3335db=_0x14b46d(_0x551516[_0x391a86(0x26b)])[_0x391a86(0x278)]['reverse']()[_0x391a86(0x26d)](_0xdae5fc=>_0xdae5fc['id']===_0x345c11['id']);if(_0x3335db){const _0x1c28a9=_0x3335db[_0x391a86(0x296)]['unitId'],_0x2d48ef=_0x3335db[_0x391a86(0x296)][_0x391a86(0x294)]['id'];setTimeout(()=>{const _0x3823f7=_0x391a86;this[_0x3823f7(0x21c)]['executeCommand'](_0x2270dd['id'],{'unitId':_0x1c28a9,'subUnitId':_0x2d48ef},{'fromCollab':!0x0});});}}}[_0x45a5ad(0x292)](){const _0x625866=_0x45a5ad;this[_0x625866(0x273)][_0x625866(0x236)](_0x625866(0x21d));const _0x557597=new Map(),_0x467e9f=this['_commandDisposable']=new _0x2ff702();_0x467e9f[_0x625866(0x277)](_0x1019de(()=>{const _0x3ac885=_0x625866;_0x557597[_0x3ac885(0x1f4)](_0x5f4303=>_0x5f4303[_0x3ac885(0x210)]()),_0x557597[_0x3ac885(0x241)]();})),_0x467e9f['add'](this[_0x625866(0x21c)]['onCommandExecuted'](_0xb0be6c=>{const _0x412d73=_0x625866;var _0x4c5529;if(_0xb0be6c['type']!==_0x35447d[_0x412d73(0x238)]||!this[_0x412d73(0x27d)][_0x412d73(0x219)](_0xb0be6c['id']))return;const {id:_0x2e903a}=_0xb0be6c;let _0x24f623;_0x557597[_0x412d73(0x26f)](_0x2e903a)?_0x24f623=_0x557597[_0x412d73(0x286)](_0x2e903a):(_0x24f623=new _0x2bf948(),_0x557597[_0x412d73(0x1fa)](_0x2e903a,_0x24f623),_0x24f623[_0x412d73(0x20f)](_0x5b118b((_0x4c5529=this['_configService'][_0x412d73(0x290)](Ce))!=null?_0x4c5529:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x412d73(0x20c)](_0x29c675=>{const _0x310c3b=_0x412d73;this[_0x310c3b(0x22f)][_0x310c3b(0x295)]({'eventID':_0x5d4a06[_0x310c3b(0x280)],'data':{'unitID':this[_0x310c3b(0x1fe)],'operations':{[_0x29c675['id']]:{'id':_0x29c675['id'],'params':JSON[_0x310c3b(0x254)](_0x29c675[_0x310c3b(0x296)])}}}},this[_0x310c3b(0x1fe)]);})),_0x24f623[_0x412d73(0x236)](_0xb0be6c);})),this[_0x625866(0x27d)]['getInitialStates'](this[_0x625866(0x1fe)])['forEach'](_0x5294a7=>this[_0x625866(0x22f)][_0x625866(0x295)]({'eventID':_0x5d4a06[_0x625866(0x280)],'data':{'unitID':this[_0x625866(0x1fe)],'operations':{[_0x5294a7['id']]:{'id':_0x5294a7['id'],'params':JSON[_0x625866(0x254)](_0x5294a7['params'])}}}},this[_0x625866(0x1fe)]));}[_0x45a5ad(0x220)](){const _0x47082b=_0x45a5ad;var _0x64c489;this[_0x47082b(0x273)][_0x47082b(0x236)](_0x47082b(0x216)),(_0x64c489=this[_0x47082b(0x256)])==null||_0x64c489[_0x47082b(0x207)](),this[_0x47082b(0x256)]=null;}[_0x45a5ad(0x270)](){const _0x448915=_0x45a5ad;var _0x3288f0;(_0x3288f0=this[_0x448915(0x256)])==null||_0x3288f0[_0x448915(0x207)](),this[_0x448915(0x273)][_0x448915(0x236)](_0x448915(0x249));}[_0x45a5ad(0x206)](){const _0x36ab19=_0x45a5ad;var _0x3963e4;this['_status$'][_0x36ab19(0x236)](_0x36ab19(0x216)),(_0x3963e4=this['_commandDisposable'])==null||_0x3963e4[_0x36ab19(0x207)](),this[_0x36ab19(0x256)]=null;}[_0x45a5ad(0x27b)](){const _0x1bcdff=_0x45a5ad;var _0x101146;this['_status$'][_0x1bcdff(0x236)](_0x1bcdff(0x28e)),(_0x101146=this[_0x1bcdff(0x256)])==null||_0x101146[_0x1bcdff(0x207)]();}['_handleOperation'](_0x2973d5){const _0x1de8a6=_0x45a5ad;if([_0x1de8a6(0x21d),_0x1de8a6(0x28e),_0x1de8a6(0x272)]['includes'](this[_0x1de8a6(0x237)])||!_0x2973d5[_0x1de8a6(0x26b)][_0x1de8a6(0x214)]||_0x2973d5['data'][_0x1de8a6(0x214)]===this[_0x1de8a6(0x22f)][_0x1de8a6(0x201)]())return;this[_0x1de8a6(0x237)]===_0x1de8a6(0x216)&&this[_0x1de8a6(0x270)]();const _0x4e33de=_0x2973d5[_0x1de8a6(0x26b)][_0x1de8a6(0x20a)];Object[_0x1de8a6(0x245)](_0x4e33de)[_0x1de8a6(0x1f4)](_0x31e699=>{const _0x16995a=_0x1de8a6;this[_0x16995a(0x21c)][_0x16995a(0x27c)](_0x31e699['id'],_0x31e699[_0x16995a(0x296)]?JSON[_0x16995a(0x26e)](_0x31e699[_0x16995a(0x296)]):null,{'fromCollab':!0x0});});}[_0x45a5ad(0x264)](){const _0x2910ab=_0x45a5ad;var _0x3c685d;this[_0x2910ab(0x273)][_0x2910ab(0x236)](_0x2910ab(0x272)),(_0x3c685d=this['_commandDisposable'])==null||_0x3c685d['dispose']();}[_0x45a5ad(0x299)](){const _0xf0fdf8=_0x45a5ad;this[_0xf0fdf8(0x273)]['next'](_0xf0fdf8(0x216)),this[_0xf0fdf8(0x243)]();}};N=Y([_(0x2,_0x243378),_(0x3,_0x24ac51(L)),_(0x4,_0x2a6a6b)],N);function Le(){const _0x1fa189=_0x45a5ad,_0x3be27a=_0x2f7790(S),_0x3b8289=_0x2f7790(_0x167ffb),_0x3fcceb=_0x5534e2(()=>_0x3b8289['getCurrentTypeOfUnit$'](_0x483ab7[_0x1fa189(0x218)]),void 0x0,!0x1,[]),[_0x3f87e0,_0x55f8f5]=_0x31ebce(null),[_0x20a899,_0x182251]=_0x31ebce(c['IDLE']),_0x4caf9c=_0x38104f(null);return _0x1ed7eb(()=>(_0x3fcceb&&_0x3be27a[_0x1fa189(0x23c)](_0x3fcceb['getUnitId']())['then'](_0x848fec=>{const _0x3b0e26=_0x1fa189;_0x55f8f5(_0x848fec),_0x4caf9c[_0x3b0e26(0x1f6)]=_0x848fec[_0x3b0e26(0x259)][_0x3b0e26(0x20c)](_0x145fa4=>{_0x182251(_0x145fa4);});}),()=>{const _0x5e3ec5=_0x1fa189;var _0x97553e;(_0x97553e=_0x4caf9c[_0x5e3ec5(0x1f6)])==null||_0x97553e[_0x5e3ec5(0x1f5)](),_0x4caf9c[_0x5e3ec5(0x1f6)]=null;}),[_0x3fcceb,_0x3be27a]),_0x3f87e0?_0x45dd85(_0x4d4f60,{'align':_0x1fa189(0x21f),'disabled':_0x20a899===c[_0x1fa189(0x21e)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x45dd85(Re,{'status':_0x20a899,'coordinator':_0x3f87e0}),'children':_0x45dd85(_0x1fa189(0x1f3),{'className':_0x290227(_0x1fa189(0x228),{'univer-cursor-not-allowed':_0x20a899===c[_0x1fa189(0x21e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20a899!==c[_0x1fa189(0x21e)]}),'type':_0x1fa189(0x1f3),'children':_0x45dd85(W,{'className':_0x1fa189(0x1fc)})})}):null;}function Re(_0x139a0f){const _0x179ce1=_0x45a5ad,{status:_0x1b6c83,coordinator:_0x42179d}=_0x139a0f;switch(_0x1b6c83){case c[_0x179ce1(0x283)]:return _0x45dd85($e,{'coordinator':_0x42179d});case c['FOLLOWING']:return _0x45dd85(xe,{'coordinator':_0x42179d});case c[_0x179ce1(0x20d)]:return _0x45dd85(Pe,{'coordinator':_0x42179d});case c[_0x179ce1(0x21e)]:return _0x45dd85(Te,{});case c[_0x179ce1(0x25e)]:return _0x45dd85(Ae,{'coordinator':_0x42179d});default:return null;}}function _0x2562(_0x537bfb,_0x15b2e9){_0x537bfb=_0x537bfb-0x1f2;const _0x27b39c=_0x27b3();let _0x2562fb=_0x27b39c[_0x537bfb];return _0x2562fb;}function $e(_0x308557){const _0x1b576d=_0x45a5ad,{coordinator:_0x53bd43}=_0x308557;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x1b576d(0x20e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x45dd85(_0x5dff14,{'onClick':()=>_0x53bd43[_0x1b576d(0x234)](),'children':_0x1b576d(0x297)})]});}function xe(_0x140436){const _0x2f6de1=_0x45a5ad,{coordinator:_0x5b8e3a}=_0x140436;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x2f6de1(0x20e),{'className':_0x2f6de1(0x24a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x45dd85(_0x5dff14,{'onClick':()=>_0x5b8e3a[_0x2f6de1(0x203)](),'children':_0x2f6de1(0x24d)})]});}function Pe(_0x567fd4){const _0x5dca20=_0x45a5ad,{coordinator:_0x51e76f}=_0x567fd4;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x5dca20(0x20e),{'className':_0x5dca20(0x24a),'children':_0x5dca20(0x27a)}),_0x45dd85(_0x5dff14,{'variant':_0x5dca20(0x247),'onClick':()=>_0x51e76f['startFollowing'](),'children':_0x5dca20(0x25f)})]});}function Ae(_0x3d71e5){const _0x5f0694=_0x45a5ad,{coordinator:_0xb17ca7}=_0x3d71e5;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x5f0694(0x20e),{'className':_0x5f0694(0x24a),'children':_0x5f0694(0x212)}),_0x45dd85(_0x5dff14,{'variant':_0x5f0694(0x223),'onClick':()=>_0xb17ca7[_0x5f0694(0x226)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3b7ae6=_0x45a5ad;return _0x45dd85(_0x481167,{'children':_0x3b7ae6(0x24c)});}var Fe=Object[_0x45a5ad(0x255)],He=(_0x5b09be,_0x9f53e2,_0x29da23,_0x49a5c5)=>{const _0xea1fd8=_0x45a5ad;for(var _0x3eb7ea=_0x49a5c5>0x1?void 0x0:_0x49a5c5?Fe(_0x9f53e2,_0x29da23):_0x9f53e2,_0x42d386=_0x5b09be[_0xea1fd8(0x246)]-0x1,_0x372432;_0x42d386>=0x0;_0x42d386--)(_0x372432=_0x5b09be[_0x42d386])&&(_0x3eb7ea=_0x372432(_0x3eb7ea)||_0x3eb7ea);return _0x3eb7ea;},A=(_0x45fe5c,_0x11f2a2)=>(_0x1a7ba3,_0x138385)=>_0x11f2a2(_0x1a7ba3,_0x138385,_0x45fe5c);let m=class extends _0x1cac0a{constructor(_0x537918,_0x3b4dd9){const _0x37bbb0=_0x45a5ad;super(),this[_0x37bbb0(0x200)]=_0x537918,this[_0x37bbb0(0x28c)]=_0x3b4dd9,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4f383c=_0x45a5ad;this[_0x4f383c(0x252)](this[_0x4f383c(0x28c)][_0x4f383c(0x211)](_0x264092[_0x4f383c(0x248)],()=>_0x286ddd(Le,this[_0x4f383c(0x200)])));}};m=He([A(0x0,_0x24ac51(_0x37149b)),A(0x1,_0x1e1f8c)],m);const ye=_0x45a5ad(0x240),T={};var Ue=Object[_0x45a5ad(0x255)],Ve=(_0x5485d9,_0x32e11f,_0x1aceaf,_0xe1a468)=>{const _0x53f61f=_0x45a5ad;for(var _0x36a976=_0xe1a468>0x1?void 0x0:_0xe1a468?Ue(_0x32e11f,_0x1aceaf):_0x32e11f,_0x5c7034=_0x5485d9[_0x53f61f(0x246)]-0x1,_0x2e165a;_0x5c7034>=0x0;_0x5c7034--)(_0x2e165a=_0x5485d9[_0x5c7034])&&(_0x36a976=_0x2e165a(_0x36a976)||_0x36a976);return _0x36a976;},je=(_0xf7350c,_0x4918fd)=>(_0x4f3fa5,_0x6e9748)=>_0x4918fd(_0x4f3fa5,_0x6e9748,_0xf7350c);let I=class extends _0x1cac0a{constructor(_0x404c04){const _0x181dc3=_0x45a5ad;super(),this[_0x181dc3(0x27d)]=_0x404c04,this[_0x181dc3(0x26a)]();}[_0x45a5ad(0x26a)](){const _0x137add=_0x45a5ad;[_0x5cee16['id'],_0x3c74b3['id'],_0x2270dd['id']][_0x137add(0x1f4)](_0x278755=>{const _0x54ec9a=_0x137add;this[_0x54ec9a(0x252)](this['_liveShareService']['registerSharedOperation'](_0x278755));});}};I=Ve([je(0x0,_0x24ac51(L))],I);var Me=Object['defineProperty'],ke=Object[_0x45a5ad(0x255)],Ge=(_0x346ffa,_0x266af1,_0x48d2dd)=>_0x266af1 in _0x346ffa?Me(_0x346ffa,_0x266af1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48d2dd}):_0x346ffa[_0x266af1]=_0x48d2dd,We=(_0x22abef,_0x5f0cc5,_0x1c9b64,_0x4d949c)=>{const _0x3750a1=_0x45a5ad;for(var _0x5effe4=_0x4d949c>0x1?void 0x0:_0x4d949c?ke(_0x5f0cc5,_0x1c9b64):_0x5f0cc5,_0x866255=_0x22abef[_0x3750a1(0x246)]-0x1,_0x4e9538;_0x866255>=0x0;_0x866255--)(_0x4e9538=_0x22abef[_0x866255])&&(_0x5effe4=_0x4e9538(_0x5effe4)||_0x5effe4);return _0x5effe4;},F=(_0x3af2f1,_0x198a5b)=>(_0x5ea0fb,_0x4d6562)=>_0x198a5b(_0x5ea0fb,_0x4d6562,_0x3af2f1),B=(_0x120e5c,_0xf36370,_0x4e894e)=>Ge(_0x120e5c,typeof _0xf36370!=_0x45a5ad(0x25b)?_0xf36370+'':_0xf36370,_0x4e894e);const Ye=_0x45a5ad(0x25c);let b=class extends _0x3bdc1a{constructor(_0x35a3df=T,_0x40ea9c,_0xbfe962){const _0xe947ee=_0x45a5ad;super(),this['_config']=_0x35a3df,this[_0xe947ee(0x200)]=_0x40ea9c,this[_0xe947ee(0x225)]=_0xbfe962;const {..._0x4a7572}=_0x468e5c({},T,this[_0xe947ee(0x1f9)]);this[_0xe947ee(0x225)][_0xe947ee(0x217)](ye,_0x4a7572);}['onStarting'](){const _0x1a8ad7=_0x45a5ad;_0x306653(this[_0x1a8ad7(0x200)],_0x2e4e88([[L],[S],[I],[m]],this[_0x1a8ad7(0x1f9)][_0x1a8ad7(0x209)])),_0xa73248(this[_0x1a8ad7(0x200)],[[I]]);}['onRendered'](){const _0x3096e3=_0x45a5ad;_0xa73248(this[_0x3096e3(0x200)],[[m]]);}};B(b,_0x45a5ad(0x23a),_0x483ab7[_0x45a5ad(0x222)]),B(b,_0x45a5ad(0x293),Ye),b=We([_0x13afb3(_0x2cd52a),F(0x1,_0x24ac51(_0x37149b)),F(0x2,_0x243378)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0xedc892=_0x3cc7;(function(_0x4b9575,_0x1e2f72){const _0x20b3c8=_0x3cc7,_0x195cb1=_0x4b9575();while(!![]){try{const _0x4c3ef0=parseInt(_0x20b3c8(0x23d))/0x1+-parseInt(_0x20b3c8(0x20d))/0x2*(-parseInt(_0x20b3c8(0x232))/0x3)+parseInt(_0x20b3c8(0x1ea))/0x4+-parseInt(_0x20b3c8(0x1fe))/0x5*(parseInt(_0x20b3c8(0x251))/0x6)+-parseInt(_0x20b3c8(0x211))/0x7+-parseInt(_0x20b3c8(0x1eb))/0x8+-parseInt(_0x20b3c8(0x222))/0x9*(parseInt(_0x20b3c8(0x1d9))/0xa);if(_0x4c3ef0===_0x1e2f72)break;else _0x195cb1['push'](_0x195cb1['shift']());}catch(_0x42798e){_0x195cb1['push'](_0x195cb1['shift']());}}}(_0x348f,0x32e99));var J=Object[_0xedc892(0x21e)],K=(_0x2d6677,_0x258928,_0x1f0849)=>_0x258928 in _0x2d6677?J(_0x2d6677,_0x258928,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f0849}):_0x2d6677[_0x258928]=_0x1f0849,u=(_0x9b796b,_0x345226,_0x4fb5d3)=>K(_0x9b796b,typeof _0x345226!=_0xedc892(0x23b)?_0x345226+'':_0x345226,_0x4fb5d3);import{Disposable as _0x2c6245,toDisposable as _0x370c9d,IUniverInstanceService as _0xe4df5a,Inject as _0x13d23a,Injector as _0x10288a,IConfigService as _0x256701,ICommandService as _0x429288,RxDisposable as _0x24c185,UniverInstanceType as _0x380b27,DisposableCollection as _0x3778d7,CommandType as _0x26e63e,DependentOn as _0xb36d0e,Plugin as _0x12b31b,merge as _0x5e76a6,registerDependencies as _0x267437,mergeOverrideWithDependencies as _0x23228f,touchDependencies as _0x8c5d0e}from'@univerjs/core';import{useDependency as _0x581717,useObservable as _0x142671,IUIPartsService as _0x53fcdb,BuiltInUIPart as _0x55d8d3,connectInjector as _0xe163e5}from'@univerjs/ui';import{jsx as _0x225d4d,jsxs as _0x11166e,Fragment as _0x53d828}from'react/jsx-runtime';import{Dropdown as _0x5db040,clsx as _0x51da1a,Button as _0x5bb715}from'@univerjs/design';import{useRef as _0x28ff40,createElement as _0x2f2ab1,forwardRef as _0x34a321,useState as _0x4f5850,useEffect as _0x25bbaa}from'react';import{CollaborationEvent as _0x44628f,parseProtocolChangeset as _0x3b350d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x54f713,SessionStatus as _0x3c705c,UniverCollaborationClientPlugin as _0x475f3e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b4527,SetWorksheetActiveOperation as _0x54cb8d}from'@univerjs/sheets';import{BehaviorSubject as _0x132971,Subject as _0x23200b}from'rxjs';import{takeUntil as _0x56fcb7,throttleTime as _0x557fbb}from'rxjs/operators';import{SetZoomRatioOperation as _0x45b804,SetScrollOperation as _0x111b22}from'@univerjs/sheets-ui';function k({ref:_0x42484b,..._0x522a45}){const _0x3c2910=_0xedc892,{icon:_0x5cd619,id:_0x5e6b71,className:_0x551552,extend:_0x235c6d,..._0x1436d9}=_0x522a45,_0x557645=(_0x3c2910(0x25e)+_0x5e6b71+'\x20'+(_0x551552||''))[_0x3c2910(0x25b)](),_0x1fb891=_0x28ff40('_'+Oe());return G(_0x5cd619,''+_0x5e6b71,{'defIds':_0x5cd619[_0x3c2910(0x262)],'idSuffix':_0x1fb891[_0x3c2910(0x213)]},{'ref':_0x42484b,'className':_0x557645,..._0x1436d9},_0x235c6d);}function G(_0x5a4cde,_0x17a6ba,_0x2fda6b,_0x1b1e65,_0x2f2ab7){const _0x270390=_0xedc892;return _0x2f2ab1(_0x5a4cde[_0x270390(0x252)],{'key':_0x17a6ba,...be(_0x5a4cde,_0x2fda6b,_0x2f2ab7),..._0x1b1e65},(Ee(_0x5a4cde,_0x2fda6b)[_0x270390(0x276)]||[])[_0x270390(0x1e3)]((_0x150884,_0x2c3cea)=>G(_0x150884,_0x17a6ba+'-'+_0x5a4cde[_0x270390(0x252)]+'-'+_0x2c3cea,_0x2fda6b,void 0x0,_0x2f2ab7)));}function be(_0x2711a1,_0x3c2b6b,_0x56ca35){const _0x11d003=_0xedc892,_0x3999fb={..._0x2711a1['attrs']};_0x56ca35!=null&&_0x56ca35[_0x11d003(0x1ed)]&&_0x3999fb[_0x11d003(0x1db)]===_0x11d003(0x1ed)&&(_0x3999fb[_0x11d003(0x1db)]=_0x56ca35['colorChannel1']),_0x2711a1['tag']===_0x11d003(0x22c)&&_0x3999fb['id']&&(_0x3999fb['id']=_0x3999fb['id']+_0x3c2b6b['idSuffix']),Object[_0x11d003(0x223)](_0x3999fb)[_0x11d003(0x22a)](([_0x432074,_0x58f348])=>{const _0x482981=_0x11d003;_0x432074==='mask'&&typeof _0x58f348==_0x482981(0x233)&&(_0x3999fb[_0x432074]=_0x58f348[_0x482981(0x248)](/url\(#(.*)\)/,_0x482981(0x1ff)+_0x3c2b6b[_0x482981(0x25d)]+')'));});const {defIds:_0x5ee9c0}=_0x3c2b6b;return!_0x5ee9c0||_0x5ee9c0['length']===0x0||(_0x2711a1[_0x11d003(0x252)]==='use'&&_0x3999fb[_0x11d003(0x1e4)]&&(_0x3999fb[_0x11d003(0x1e4)]=_0x3999fb[_0x11d003(0x1e4)]+_0x3c2b6b[_0x11d003(0x25d)]),Object[_0x11d003(0x223)](_0x3999fb)[_0x11d003(0x22a)](([_0x15e3c3,_0x46515e])=>{const _0x432e48=_0x11d003;typeof _0x46515e==_0x432e48(0x233)&&(_0x3999fb[_0x15e3c3]=_0x46515e[_0x432e48(0x248)](/url\(#(.*)\)/,_0x432e48(0x1ff)+_0x3c2b6b[_0x432e48(0x25d)]+')'));})),_0x3999fb;}function Ee(_0x4ef108,_0x468f1b){const _0xd9ac62=_0xedc892;var _0x4642b6;const {defIds:_0x47faf8}=_0x468f1b;return!_0x47faf8||_0x47faf8[_0xd9ac62(0x230)]===0x0?_0x4ef108:_0x4ef108[_0xd9ac62(0x252)]==='defs'&&((_0x4642b6=_0x4ef108[_0xd9ac62(0x276)])!=null&&_0x4642b6['length'])?{..._0x4ef108,'children':_0x4ef108['children'][_0xd9ac62(0x1e3)](_0x157840=>typeof _0x157840[_0xd9ac62(0x1e7)]['id']=='string'&&_0x47faf8&&_0x47faf8[_0xd9ac62(0x255)](_0x157840[_0xd9ac62(0x1e7)]['id'])?{..._0x157840,'attrs':{..._0x157840[_0xd9ac62(0x1e7)],'id':_0x157840['attrs']['id']+_0x468f1b['idSuffix']}}:_0x157840)}:_0x4ef108;}function Oe(){const _0x5ac28c=_0xedc892;return Math[_0x5ac28c(0x21c)]()[_0x5ac28c(0x22d)](0x24)[_0x5ac28c(0x277)](0x2,0x8);}k[_0xedc892(0x250)]=_0xedc892(0x26d);const we={'tag':_0xedc892(0x239),'attrs':{'xmlns':_0xedc892(0x23e),'fill':_0xedc892(0x1fb),'viewBox':_0xedc892(0x1e1),'width':'1em','height':'1em'},'children':[{'tag':_0xedc892(0x202),'attrs':{'fill':_0xedc892(0x216),'d':_0xedc892(0x264)}},{'tag':_0xedc892(0x202),'attrs':{'fill':_0xedc892(0x216),'d':_0xedc892(0x257),'fillRule':_0xedc892(0x263),'clipRule':_0xedc892(0x263)}}]},W=_0x34a321(function(_0x17bb7c,_0x5f2001){const _0x3a2b9e=_0xedc892;return _0x2f2ab1(k,Object[_0x3a2b9e(0x1f1)]({},_0x17bb7c,{'id':_0x3a2b9e(0x256),'ref':_0x5f2001,'icon':we}));});W['displayName']=_0xedc892(0x1e0);class L extends _0x2c6245{constructor(){const _0x2e6d12=_0xedc892;super(...arguments),u(this,_0x2e6d12(0x1ef),new Set()),u(this,_0x2e6d12(0x1cf),new Set());}[_0xedc892(0x22e)](_0x55c6b7){const _0x58ff75=_0xedc892;return this['_sharedOperations'][_0x58ff75(0x27b)](_0x55c6b7),_0x370c9d(()=>this[_0x58ff75(0x1ef)][_0x58ff75(0x273)](_0x55c6b7));}[_0xedc892(0x1e5)](_0x7910f){const _0x487efd=_0xedc892;return this['_reporters'][_0x487efd(0x27b)](_0x7910f),_0x370c9d(()=>this[_0x487efd(0x1cf)][_0x487efd(0x273)](_0x7910f));}['shouldShareOperation'](_0x5e58e3){const _0x1fd48b=_0xedc892;return this[_0x1fd48b(0x1ef)][_0x1fd48b(0x1cd)](_0x5e58e3);}['getInitialStates'](_0x5ac394){const _0x4679af=_0xedc892;return Array[_0x4679af(0x228)](this[_0x4679af(0x1cf)])[_0x4679af(0x1e3)](_0x582ff4=>_0x582ff4(_0x5ac394));}}var Ne=Object[_0xedc892(0x274)],Y=(_0x1b5711,_0x569921,_0x4d0359,_0x30c73f)=>{const _0x59326b=_0xedc892;for(var _0x32a288=_0x30c73f>0x1?void 0x0:_0x30c73f?Ne(_0x569921,_0x4d0359):_0x569921,_0xf83041=_0x1b5711[_0x59326b(0x230)]-0x1,_0x43f197;_0xf83041>=0x0;_0xf83041--)(_0x43f197=_0x1b5711[_0xf83041])&&(_0x32a288=_0x43f197(_0x32a288)||_0x32a288);return _0x32a288;},_=(_0x1ee33d,_0x45831d)=>(_0x108768,_0x28a48d)=>_0x45831d(_0x108768,_0x28a48d,_0x1ee33d);let S=class extends _0x24c185{constructor(_0x3eab96,_0x960cb1,_0x263474){const _0x1ac566=_0xedc892;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3eab96,this[_0x1ac566(0x1fa)]=_0x960cb1,this[_0x1ac566(0x26e)]=_0x263474,this[_0x1ac566(0x258)]());}async[_0xedc892(0x271)](_0x165e6d){const _0x409167=_0xedc892;return this[_0x409167(0x249)][_0x409167(0x1cd)](_0x165e6d)||await this['_startLiveShareCoordinator'](_0x165e6d),this[_0x409167(0x249)]['get'](_0x165e6d);}[_0xedc892(0x22f)](_0x914c06){const _0x37d5ec=_0xedc892;var _0x5427b2;return(_0x5427b2=this['_entities'][_0x37d5ec(0x269)](_0x914c06))!=null?_0x5427b2:null;}[_0xedc892(0x258)](){const _0x454741=_0xedc892;this[_0x454741(0x229)][_0x454741(0x1e6)](_0x380b27[_0x454741(0x1d8)])[_0x454741(0x20f)](_0x56fcb7(this[_0x454741(0x1f6)]))[_0x454741(0x1d7)](async _0x10c949=>{const _0x402939=_0x454741,_0x5a7777=_0x10c949[_0x402939(0x20a)]();this[_0x402939(0x249)][_0x402939(0x1cd)](_0x5a7777)||this[_0x402939(0x208)](_0x5a7777);}),this['_univerInstanceService'][_0x454741(0x23c)](_0x380b27[_0x454741(0x1d8)])[_0x454741(0x20f)](_0x56fcb7(this[_0x454741(0x1f6)]))[_0x454741(0x1d7)](_0x4870ba=>{const _0x2a9375=_0x454741,_0x3cc4da=_0x4870ba[_0x2a9375(0x20a)](),_0xd29391=this[_0x2a9375(0x249)]['get'](_0x3cc4da);_0xd29391==null||_0xd29391['dispose']();});}async['_startLiveShareCoordinator'](_0x18fe8d){const _0x3acc0a=_0xedc892,_0x4932df=await this['_collabSessionService'][_0x3acc0a(0x1fc)](_0x18fe8d),_0x5853ef=this['_injector'][_0x3acc0a(0x203)](N,_0x18fe8d,_0x4932df);return _0x5853ef[_0x3acc0a(0x21d)](),this[_0x3acc0a(0x249)][_0x3acc0a(0x210)](_0x18fe8d,_0x5853ef),_0x5853ef;}};S=Y([_(0x0,_0xe4df5a),_(0x1,_0x13d23a(_0x10288a)),_(0x2,_0x13d23a(_0x54f713))],S);var c=(_0x329967=>(_0x329967['OFFLINE']='offline',_0x329967[_0xedc892(0x27a)]=_0xedc892(0x200),_0x329967[_0xedc892(0x1e8)]=_0xedc892(0x201),_0x329967[_0xedc892(0x259)]='not-following',_0x329967['PRESENTING']='presenting',_0x329967))(c||{});const Ce=_0xedc892(0x231),De=0xc8;let N=class extends _0x24c185{constructor(_0x28f087,_0x39fca6,_0x40fbba,_0x5a8251,_0x2790fb){const _0x122c12=_0xedc892;super(),u(this,_0x122c12(0x1e2),new _0x132971('idle')),u(this,_0x122c12(0x21f),this[_0x122c12(0x1e2)][_0x122c12(0x226)]()),u(this,_0x122c12(0x258),!0x1),u(this,_0x122c12(0x270),null),u(this,'_presenter',null),(this[_0x122c12(0x21a)]=_0x28f087,this[_0x122c12(0x265)]=_0x39fca6,this[_0x122c12(0x219)]=_0x40fbba,this[_0x122c12(0x268)]=_0x5a8251,this['_commandService']=_0x2790fb);}get[_0xedc892(0x1d3)](){const _0x467a10=_0xedc892;return this[_0x467a10(0x1e2)][_0x467a10(0x253)]();}['dispose'](){const _0x5722e9=_0xedc892;var _0x5eb3aa;(_0x5eb3aa=this[_0x5722e9(0x270)])==null||_0x5eb3aa[_0x5722e9(0x25a)](),this['_status$']['next'](_0x5722e9(0x200)),this['_status$']['complete']();}[_0xedc892(0x261)](){const _0x262022=_0xedc892;return this[_0x262022(0x1d3)];}['init'](){const _0xb9b739=_0xedc892;this[_0xb9b739(0x258)]||(this[_0xb9b739(0x258)]=!0x0,this[_0xb9b739(0x265)][_0xb9b739(0x1ce)][_0xb9b739(0x20f)](_0x56fcb7(this['dispose$']))['subscribe'](_0x19b6cd=>{const _0x18a384=_0xb9b739;switch(_0x19b6cd){case _0x3c705c[_0x18a384(0x242)]:this[_0x18a384(0x275)]();break;case _0x3c705c['ONLINE']:this[_0x18a384(0x266)]();break;}}),this[_0xb9b739(0x265)][_0xb9b739(0x227)]['pipe'](_0x56fcb7(this[_0xb9b739(0x1f6)]))[_0xb9b739(0x1d7)](_0x7da16a=>{const _0xb405e3=_0xb9b739,{eventID:_0x25eb2d}=_0x7da16a;switch(_0x25eb2d){case _0x44628f[_0xb405e3(0x1f7)]:this['_handleNewHost'](_0x7da16a);break;case _0x44628f[_0xb405e3(0x25f)]:this[_0xb405e3(0x1d5)](_0x7da16a);break;case _0x44628f[_0xb405e3(0x1d2)]:this[_0xb405e3(0x24d)]();break;case _0x44628f[_0xb405e3(0x24c)]:this[_0xb405e3(0x218)](_0x7da16a);break;}}));}[_0xedc892(0x21b)](){const _0x57db0c=_0xedc892;this['_collabSession']['send']({'eventID':_0x44628f[_0x57db0c(0x1f9)],'data':{'unitID':this[_0x57db0c(0x21a)],'userID':this[_0x57db0c(0x265)][_0x57db0c(0x1f8)]()}},this['_unitID']);}[_0xedc892(0x247)](){const _0x44434b=_0xedc892;this[_0x44434b(0x1d3)]===_0x44434b(0x225)&&(this[_0x44434b(0x1e2)][_0x44434b(0x1dc)](_0x44434b(0x200)),this[_0x44434b(0x265)][_0x44434b(0x26c)]({'eventID':_0x44628f['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x44434b(0x21a)]));}[_0xedc892(0x220)](){const _0x326467=_0xedc892;this[_0x326467(0x1d3)]==='not-following'&&(this[_0x326467(0x1e2)][_0x326467(0x1dc)](_0x326467(0x201)),this[_0x326467(0x22b)]());}[_0xedc892(0x1ec)](){const _0x148f64=_0xedc892;this[_0x148f64(0x1d3)]==='following'&&this[_0x148f64(0x224)]();}['_handleNewHost'](_0x4bf851){const _0x510927=_0xedc892,{presenter:_0x32d6dc}=_0x4bf851['data'],_0x203789=this[_0x510927(0x265)][_0x510927(0x1f8)]();this[_0x510927(0x221)]=_0x32d6dc,_0x32d6dc===_0x203789?(this[_0x510927(0x224)](),this['_startPresenting']()):this[_0x510927(0x1d3)]!==_0x510927(0x23f)&&(this[_0x510927(0x1da)](),this[_0x510927(0x22b)]());}['_fetchOperations'](){const _0x2e6d51=_0xedc892,_0x85475c={'eventID':_0x44628f['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e6d51(0x265)][_0x2e6d51(0x26c)](_0x85475c,this[_0x2e6d51(0x21a)]);}[_0xedc892(0x24d)](){const _0x4f0243=_0xedc892;this[_0x4f0243(0x221)]=null,this[_0x4f0243(0x1d3)]!==_0x4f0243(0x225)&&this[_0x4f0243(0x20c)]();}[_0xedc892(0x218)](_0x1e1cc1){const _0xd5d4dd=_0xedc892;if(this['_status']===_0xd5d4dd(0x201)&&this[_0xd5d4dd(0x221)]===_0x1e1cc1[_0xd5d4dd(0x244)][_0xd5d4dd(0x260)]){const _0x5a3f7b=_0x3b350d(_0x1e1cc1[_0xd5d4dd(0x244)])[_0xd5d4dd(0x26f)][_0xd5d4dd(0x1f5)]()[_0xd5d4dd(0x212)](_0xb17f2=>_0xb17f2['id']===_0x2b4527['id']);if(_0x5a3f7b){const _0x32bb56=_0x5a3f7b[_0xd5d4dd(0x1e9)]['unitId'],_0x2fc235=_0x5a3f7b[_0xd5d4dd(0x1e9)][_0xd5d4dd(0x207)]['id'];setTimeout(()=>{const _0x100287=_0xd5d4dd;this[_0x100287(0x25c)][_0x100287(0x209)](_0x54cb8d['id'],{'unitId':_0x32bb56,'subUnitId':_0x2fc235},{'fromCollab':!0x0});});}}}[_0xedc892(0x1d0)](){const _0x1efefc=_0xedc892;this[_0x1efefc(0x1e2)]['next'](_0x1efefc(0x225));const _0x25344d=new Map(),_0x30b57e=this[_0x1efefc(0x270)]=new _0x3778d7();_0x30b57e['add'](_0x370c9d(()=>{const _0x32cdef=_0x1efefc;_0x25344d[_0x32cdef(0x22a)](_0x5bc67a=>_0x5bc67a[_0x32cdef(0x215)]()),_0x25344d[_0x32cdef(0x27c)]();})),_0x30b57e[_0x1efefc(0x27b)](this[_0x1efefc(0x25c)][_0x1efefc(0x24e)](_0x4b0e85=>{const _0x201f35=_0x1efefc;var _0x3615b7;if(_0x4b0e85['type']!==_0x26e63e[_0x201f35(0x24a)]||!this['_liveShareService'][_0x201f35(0x1f2)](_0x4b0e85['id']))return;const {id:_0x49bf64}=_0x4b0e85;let _0x415fa7;_0x25344d['has'](_0x49bf64)?_0x415fa7=_0x25344d[_0x201f35(0x269)](_0x49bf64):(_0x415fa7=new _0x23200b(),_0x25344d[_0x201f35(0x210)](_0x49bf64,_0x415fa7),_0x415fa7[_0x201f35(0x20f)](_0x557fbb((_0x3615b7=this[_0x201f35(0x219)][_0x201f35(0x236)](Ce))!=null?_0x3615b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x201f35(0x1d7)](_0x371c6b=>{const _0x98b4ac=_0x201f35;this[_0x98b4ac(0x265)]['send']({'eventID':_0x44628f[_0x98b4ac(0x25f)],'data':{'unitID':this[_0x98b4ac(0x21a)],'operations':{[_0x371c6b['id']]:{'id':_0x371c6b['id'],'params':JSON[_0x98b4ac(0x254)](_0x371c6b[_0x98b4ac(0x1e9)])}}}},this[_0x98b4ac(0x21a)]);})),_0x415fa7[_0x201f35(0x1dc)](_0x4b0e85);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x1efefc(0x22a)](_0x4a7877=>this[_0x1efefc(0x265)][_0x1efefc(0x26c)]({'eventID':_0x44628f[_0x1efefc(0x25f)],'data':{'unitID':this[_0x1efefc(0x21a)],'operations':{[_0x4a7877['id']]:{'id':_0x4a7877['id'],'params':JSON[_0x1efefc(0x254)](_0x4a7877[_0x1efefc(0x1e9)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x41055f=_0xedc892;var _0x4d8c6a;this[_0x41055f(0x1e2)]['next']('idle'),(_0x4d8c6a=this[_0x41055f(0x270)])==null||_0x4d8c6a[_0x41055f(0x25a)](),this[_0x41055f(0x270)]=null;}['_startFollowing'](){const _0x46556f=_0xedc892;var _0x330500;(_0x330500=this['_commandDisposable'])==null||_0x330500[_0x46556f(0x25a)](),this[_0x46556f(0x1e2)]['next'](_0x46556f(0x201));}[_0xedc892(0x20c)](){const _0x190e43=_0xedc892;var _0x17f625;this['_status$'][_0x190e43(0x1dc)](_0x190e43(0x200)),(_0x17f625=this[_0x190e43(0x270)])==null||_0x17f625[_0x190e43(0x25a)](),this[_0x190e43(0x270)]=null;}[_0xedc892(0x224)](){const _0x1c26be=_0xedc892;var _0x5cd923;this[_0x1c26be(0x1e2)][_0x1c26be(0x1dc)](_0x1c26be(0x23f)),(_0x5cd923=this[_0x1c26be(0x270)])==null||_0x5cd923[_0x1c26be(0x25a)]();}[_0xedc892(0x1d5)](_0x21de4a){const _0x1c2ede=_0xedc892;if(['presenting',_0x1c2ede(0x23f),'offline'][_0x1c2ede(0x255)](this[_0x1c2ede(0x1d3)])||!_0x21de4a[_0x1c2ede(0x244)][_0x1c2ede(0x278)]||_0x21de4a[_0x1c2ede(0x244)][_0x1c2ede(0x278)]===this[_0x1c2ede(0x265)][_0x1c2ede(0x1f8)]())return;this[_0x1c2ede(0x1d3)]===_0x1c2ede(0x200)&&this[_0x1c2ede(0x22b)]();const _0x29b9d1=_0x21de4a['data'][_0x1c2ede(0x279)];Object['values'](_0x29b9d1)[_0x1c2ede(0x22a)](_0x8dcc2c=>{const _0x4fe24c=_0x1c2ede;this[_0x4fe24c(0x25c)][_0x4fe24c(0x209)](_0x8dcc2c['id'],_0x8dcc2c[_0x4fe24c(0x1e9)]?JSON[_0x4fe24c(0x245)](_0x8dcc2c['params']):null,{'fromCollab':!0x0});});}[_0xedc892(0x275)](){const _0x33229c=_0xedc892;var _0x5746e4;this[_0x33229c(0x1e2)]['next']('offline'),(_0x5746e4=this[_0x33229c(0x270)])==null||_0x5746e4[_0x33229c(0x25a)]();}[_0xedc892(0x266)](){const _0x277412=_0xedc892;this['_status$'][_0x277412(0x1dc)](_0x277412(0x200)),this[_0x277412(0x204)]();}};N=Y([_(0x2,_0x256701),_(0x3,_0x13d23a(L)),_(0x4,_0x429288)],N);function Le(){const _0x1ae4a7=_0xedc892,_0x5e5ceb=_0x581717(S),_0xa0e5b0=_0x581717(_0xe4df5a),_0x4c7a0b=_0x142671(()=>_0xa0e5b0[_0x1ae4a7(0x24f)](_0x380b27[_0x1ae4a7(0x1d8)]),void 0x0,!0x1,[]),[_0x1ed8c7,_0xf78217]=_0x4f5850(null),[_0x378e59,_0x4a680a]=_0x4f5850(c[_0x1ae4a7(0x27a)]),_0xaab986=_0x28ff40(null);return _0x25bbaa(()=>(_0x4c7a0b&&_0x5e5ceb[_0x1ae4a7(0x271)](_0x4c7a0b[_0x1ae4a7(0x20a)]())[_0x1ae4a7(0x23a)](_0xe99958=>{const _0x38b61f=_0x1ae4a7;_0xf78217(_0xe99958),_0xaab986[_0x38b61f(0x213)]=_0xe99958[_0x38b61f(0x21f)]['subscribe'](_0x43e0b6=>{_0x4a680a(_0x43e0b6);});}),()=>{const _0x197986=_0x1ae4a7;var _0x422a5e;(_0x422a5e=_0xaab986['current'])==null||_0x422a5e[_0x197986(0x206)](),_0xaab986[_0x197986(0x213)]=null;}),[_0x4c7a0b,_0x5e5ceb]),_0x1ed8c7?_0x225d4d(_0x5db040,{'align':_0x1ae4a7(0x267),'disabled':_0x378e59===c[_0x1ae4a7(0x242)],'className':_0x1ae4a7(0x241),'overlay':_0x225d4d(Re,{'status':_0x378e59,'coordinator':_0x1ed8c7}),'children':_0x225d4d(_0x1ae4a7(0x1df),{'className':_0x51da1a(_0x1ae4a7(0x1fd),{'univer-cursor-not-allowed':_0x378e59===c[_0x1ae4a7(0x242)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x378e59!==c[_0x1ae4a7(0x242)]}),'type':'button','children':_0x225d4d(W,{'className':_0x1ae4a7(0x272)})})}):null;}function _0x348f(){const _0x1346e3=['following','path','createInstance','_fetchOperations','onRendered','unsubscribe','sheet','_startLiveShareCoordinator','executeCommand','getUnitId','Start\x20following','_beIdle','552624BnqnTW','_config','pipe','set','2879492boXOAQ','find','current','default','complete','currentColor','Stop\x20following','_handleNewChangeSets','_configService','_unitID','tryStartPresenting','random','init','defineProperty','status$','startFollowing','_presenter','101754nTIEIQ','entries','_stopFollowing','presenting','asObservable','event$','from','_univerInstanceService','forEach','_startFollowing','mask','toString','registerSharedOperation','getLiveShareCoordinatorSync','length','SAME_OPERATION_SHARE_INTERVAL','3ZPnzWM','string','_uiPartsService','pluginName','getConfig','setConfig','live-share.config','svg','then','symbol','getTypeOfUnitDisposed$','343595usPFRp','http://www.w3.org/2000/svg','not-following','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','OFFLINE','PRESENTING','data','parse','You\x27re\x20following\x20the\x20presenter','stopPresenting','replace','_entities','OPERATION','override','NEW_CHANGESETS','_handleTerminate','onCommandExecuted','getCurrentTypeOfUnit$','displayName','6iFVfgo','tag','getValue','stringify','includes','live-share-icon','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','_init','NOT_FOLLOWING','dispose','trim','_commandService','idSuffix','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','memberID','getStatus','defIds','evenodd','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_collabSession','_handleOnline','end','_liveShareService','get','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','UniverIcon','_collabSessionService','mutations','_commandDisposable','getLiveShareCoordinator','univer-size-4','delete','getOwnPropertyDescriptor','_handleOffline','children','substring','presenter','operations','IDLE','add','clear','has','sessionStatus$','_reporters','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','_status','disposeWithMe','_handleOperation','UNIVER_UNKNOWN','subscribe','UNIVER_SHEET','40jGVmPM','_stopPresenting','fill','next','text','Stop\x20presenting','button','LiveShareIcon','0\x200\x2017\x2017','_status$','map','xlink:href','registerInitialStateReporter','getTypeOfUnitAdded$','attrs','FOLLOWING','params','897988JCuaja','347416HMpjHQ','stopFollowing','colorChannel1','_mountLiveShare','_sharedOperations','Present\x20this\x20document','assign','shouldShareOperation','onStarting','You\x27re\x20presenting\x20the\x20document','reverse','dispose$','LIVESHARE_NEW_HOST','getMemberID','LIVESHARE_REQUEST_HOST','_injector','none','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','679300echrBK','url(#$1','idle'];_0x348f=function(){return _0x1346e3;};return _0x348f();}function Re(_0x2ff684){const _0x3be840=_0xedc892,{status:_0x3a93ee,coordinator:_0x488e4b}=_0x2ff684;switch(_0x3a93ee){case c[_0x3be840(0x27a)]:return _0x225d4d($e,{'coordinator':_0x488e4b});case c[_0x3be840(0x1e8)]:return _0x225d4d(xe,{'coordinator':_0x488e4b});case c['NOT_FOLLOWING']:return _0x225d4d(Pe,{'coordinator':_0x488e4b});case c[_0x3be840(0x242)]:return _0x225d4d(Te,{});case c[_0x3be840(0x243)]:return _0x225d4d(Ae,{'coordinator':_0x488e4b});default:return null;}}function $e(_0x457956){const _0x34c4cf=_0xedc892,{coordinator:_0x49f9ed}=_0x457956;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x34c4cf(0x240),{'className':_0x34c4cf(0x26b),'children':_0x34c4cf(0x1f0)}),_0x225d4d(_0x5bb715,{'onClick':()=>_0x49f9ed[_0x34c4cf(0x21b)](),'children':_0x34c4cf(0x26a)})]});}function xe(_0x262333){const _0x36e7b7=_0xedc892,{coordinator:_0x591b10}=_0x262333;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x36e7b7(0x240),{'className':_0x36e7b7(0x26b),'children':_0x36e7b7(0x246)}),_0x225d4d(_0x5bb715,{'onClick':()=>_0x591b10[_0x36e7b7(0x1ec)](),'children':_0x36e7b7(0x217)})]});}function Pe(_0x2bb250){const _0x36d0ce=_0xedc892,{coordinator:_0x26bf61}=_0x2bb250;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x36d0ce(0x240),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x225d4d(_0x5bb715,{'variant':_0x36d0ce(0x1dd),'onClick':()=>_0x26bf61[_0x36d0ce(0x220)](),'children':_0x36d0ce(0x20b)})]});}function Ae(_0x27e2f9){const _0x3bc660=_0xedc892,{coordinator:_0x375be9}=_0x27e2f9;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x3bc660(0x240),{'className':_0x3bc660(0x26b),'children':_0x3bc660(0x1f4)}),_0x225d4d(_0x5bb715,{'variant':_0x3bc660(0x214),'onClick':()=>_0x375be9[_0x3bc660(0x247)](),'children':_0x3bc660(0x1de)})]});}function Te(){return _0x225d4d(_0x53d828,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0xedc892(0x274)],He=(_0x1a1a96,_0x51788a,_0x455f35,_0x3bee38)=>{const _0x229206=_0xedc892;for(var _0x119ecb=_0x3bee38>0x1?void 0x0:_0x3bee38?Fe(_0x51788a,_0x455f35):_0x51788a,_0x29e413=_0x1a1a96[_0x229206(0x230)]-0x1,_0x22d6af;_0x29e413>=0x0;_0x29e413--)(_0x22d6af=_0x1a1a96[_0x29e413])&&(_0x119ecb=_0x22d6af(_0x119ecb)||_0x119ecb);return _0x119ecb;},A=(_0x4471fb,_0x4d04d1)=>(_0x805e00,_0xeb1e1f)=>_0x4d04d1(_0x805e00,_0xeb1e1f,_0x4471fb);let m=class extends _0x2c6245{constructor(_0x5637b0,_0x5dd7bd){const _0x4d8443=_0xedc892;super(),this[_0x4d8443(0x1fa)]=_0x5637b0,this[_0x4d8443(0x234)]=_0x5dd7bd,this[_0x4d8443(0x1ee)]();}[_0xedc892(0x1ee)](){const _0x7d59b2=_0xedc892;this[_0x7d59b2(0x1d4)](this['_uiPartsService']['registerComponent'](_0x55d8d3['HEADER_MENU'],()=>_0xe163e5(Le,this[_0x7d59b2(0x1fa)])));}};m=He([A(0x0,_0x13d23a(_0x10288a)),A(0x1,_0x53fcdb)],m);const ye=_0xedc892(0x238),T={};function _0x3cc7(_0x5f2cf0,_0x4c0bcf){_0x5f2cf0=_0x5f2cf0-0x1cd;const _0x348f79=_0x348f();let _0x3cc76f=_0x348f79[_0x5f2cf0];return _0x3cc76f;}var Ue=Object[_0xedc892(0x274)],Ve=(_0x3e4803,_0x3e4607,_0x130aa9,_0x569e8b)=>{const _0xf0d2cf=_0xedc892;for(var _0x259885=_0x569e8b>0x1?void 0x0:_0x569e8b?Ue(_0x3e4607,_0x130aa9):_0x3e4607,_0x5ee392=_0x3e4803[_0xf0d2cf(0x230)]-0x1,_0x5f2a10;_0x5ee392>=0x0;_0x5ee392--)(_0x5f2a10=_0x3e4803[_0x5ee392])&&(_0x259885=_0x5f2a10(_0x259885)||_0x259885);return _0x259885;},je=(_0x4aabf6,_0x1c2638)=>(_0x402881,_0x393e1d)=>_0x1c2638(_0x402881,_0x393e1d,_0x4aabf6);let I=class extends _0x2c6245{constructor(_0xe4c478){super(),this['_liveShareService']=_0xe4c478,this['_init']();}[_0xedc892(0x258)](){const _0x84dd91=_0xedc892;[_0x45b804['id'],_0x111b22['id'],_0x54cb8d['id']][_0x84dd91(0x22a)](_0x451986=>{const _0x42c5ac=_0x84dd91;this[_0x42c5ac(0x1d4)](this['_liveShareService']['registerSharedOperation'](_0x451986));});}};I=Ve([je(0x0,_0x13d23a(L))],I);var Me=Object[_0xedc892(0x21e)],ke=Object[_0xedc892(0x274)],Ge=(_0x2deeed,_0x12c39d,_0x240a0b)=>_0x12c39d in _0x2deeed?Me(_0x2deeed,_0x12c39d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240a0b}):_0x2deeed[_0x12c39d]=_0x240a0b,We=(_0x517bfd,_0x55554e,_0x388b67,_0x5af153)=>{const _0x30704a=_0xedc892;for(var _0x18cafa=_0x5af153>0x1?void 0x0:_0x5af153?ke(_0x55554e,_0x388b67):_0x55554e,_0x1c32b3=_0x517bfd[_0x30704a(0x230)]-0x1,_0x4707a0;_0x1c32b3>=0x0;_0x1c32b3--)(_0x4707a0=_0x517bfd[_0x1c32b3])&&(_0x18cafa=_0x4707a0(_0x18cafa)||_0x18cafa);return _0x18cafa;},F=(_0x15ccf1,_0x436400)=>(_0x1d6097,_0x54581d)=>_0x436400(_0x1d6097,_0x54581d,_0x15ccf1),B=(_0x5ee4a6,_0x329ff2,_0x1d90c4)=>Ge(_0x5ee4a6,typeof _0x329ff2!=_0xedc892(0x23b)?_0x329ff2+'':_0x329ff2,_0x1d90c4);const Ye=_0xedc892(0x1d1);let b=class extends _0x12b31b{constructor(_0xe53ffb=T,_0x20726b,_0x5baba9){const _0x3082db=_0xedc892;super(),this['_config']=_0xe53ffb,this[_0x3082db(0x1fa)]=_0x20726b,this[_0x3082db(0x219)]=_0x5baba9;const {..._0x59c0f1}=_0x5e76a6({},T,this[_0x3082db(0x20e)]);this[_0x3082db(0x219)][_0x3082db(0x237)](ye,_0x59c0f1);}[_0xedc892(0x1f3)](){const _0x4c3234=_0xedc892;_0x267437(this['_injector'],_0x23228f([[L],[S],[I],[m]],this['_config'][_0x4c3234(0x24b)])),_0x8c5d0e(this[_0x4c3234(0x1fa)],[[I]]);}[_0xedc892(0x205)](){const _0x2a827f=_0xedc892;_0x8c5d0e(this[_0x2a827f(0x1fa)],[[m]]);}};B(b,'type',_0x380b27[_0xedc892(0x1d6)]),B(b,_0xedc892(0x235),Ye),b=We([_0xb36d0e(_0x475f3e),F(0x1,_0x13d23a(_0x10288a)),F(0x2,_0x256701)],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 _0x2116a7=_0x43e3;(function(_0x260d3a,_0x2050ff){const _0x2b3ba9=_0x43e3,_0x5cb1c2=_0x260d3a();while(!![]){try{const _0x272beb=parseInt(_0x2b3ba9(0x1ac))/0x1*(parseInt(_0x2b3ba9(0x1ab))/0x2)+parseInt(_0x2b3ba9(0x1a3))/0x3*(parseInt(_0x2b3ba9(0x197))/0x4)+-parseInt(_0x2b3ba9(0x196))/0x5*(parseInt(_0x2b3ba9(0x1a7))/0x6)+-parseInt(_0x2b3ba9(0x1b0))/0x7*(-parseInt(_0x2b3ba9(0x1a6))/0x8)+parseInt(_0x2b3ba9(0x192))/0x9*(parseInt(_0x2b3ba9(0x1a9))/0xa)+-parseInt(_0x2b3ba9(0x189))/0xb*(parseInt(_0x2b3ba9(0x1af))/0xc)+parseInt(_0x2b3ba9(0x19e))/0xd*(parseInt(_0x2b3ba9(0x1a1))/0xe);if(_0x272beb===_0x2050ff)break;else _0x5cb1c2['push'](_0x5cb1c2['shift']());}catch(_0x2b5550){_0x5cb1c2['push'](_0x5cb1c2['shift']());}}}(_0x5b45,0x272cc));import{LiveShareController as _0x5e2da0,LiveShareStatus as _0x3d8ada}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x1b61f1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x52e888}from'@univerjs/sheets';function _0x5b45(){const _0x1557cb=['156WQFyMV','20867DyCOTT','165143ACawiX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','LiveShareStatusEnum','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','getId','stopPresenting','468TiYsoY','_initialize','IDLE','getLiveShareStatus','220uiTMWU','132DOXFXK','getActiveSheet','startColumn','stopFollowing','PRESENTING','syncExecuteCommand','get','247117PpQebI','getUnitId','extend','28KdYXiB','startFollowing','16431Fswqhs','tryStartPresenting','_commandService','328MgAiRG','5622ujsbUL','executeCommand','5450zmUWqj','getActiveWorkbook','2JUKDTo','27537xrgDQF','getStatus','_injector'];_0x5b45=function(){return _0x1557cb;};return _0x5b45();}import{SetScrollOperation as _0x504b14}from'@univerjs/sheets-ui';import{FRange as _0x577c9f}from'@univerjs/sheets/facade';import{FUniver as _0x4b8844,FEnum as _0x4cd64b}from'@univerjs/core/facade';class I extends _0x577c9f{[_0x2116a7(0x193)](_0x28aa31,_0x31777b,_0x2f5cbf,_0x254c79,_0x57dd46){const _0x2837a3=_0x2116a7,_0x9a820c=_0x28aa31[_0x2837a3(0x19d)](_0x5e2da0),_0x157427=_0x28aa31[_0x2837a3(0x19d)](_0x1b61f1),_0x225e51=_0x31777b[_0x2837a3(0x19f)](),_0x44dc49=_0x31777b[_0x2837a3(0x198)](),_0x2b12f4=_0x9a820c[_0x2837a3(0x18b)](_0x225e51);(_0x2b12f4==null?void 0x0:_0x2b12f4[_0x2837a3(0x1ad)]())!==_0x3d8ada[_0x2837a3(0x19b)]||(_0x2f5cbf[_0x2837a3(0x18d)]()!==_0x44dc49[_0x2837a3(0x18d)]()&&this[_0x2837a3(0x1a5)][_0x2837a3(0x1a8)](_0x52e888['id'],{'unitId':_0x225e51,'subUnitId':_0x2f5cbf[_0x2837a3(0x18d)]()}),!_0x157427['getRenderById'](_0x225e51))||_0x57dd46[_0x2837a3(0x19c)](_0x504b14['id'],{'unitId':_0x31777b[_0x2837a3(0x19f)](),'sheetId':_0x2f5cbf[_0x2837a3(0x18d)](),'sheetViewStartRow':_0x254c79[_0x2837a3(0x18f)],'sheetViewStartColumn':_0x254c79[_0x2837a3(0x199)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x43e3(_0x3f8704,_0x49cc8d){_0x3f8704=_0x3f8704-0x189;const _0x5b45c3=_0x5b45();let _0x43e33a=_0x5b45c3[_0x3f8704];return _0x43e33a;}_0x577c9f[_0x2116a7(0x1a0)](I);class m extends _0x4b8844{[_0x2116a7(0x195)](){const _0x4dfb7f=_0x2116a7;var _0x4c71d9,_0x2e2c5d;const _0x2bcb76=this[_0x4dfb7f(0x1ae)][_0x4dfb7f(0x19d)](_0x5e2da0),_0x2187d4=(_0x4c71d9=this[_0x4dfb7f(0x1aa)]())==null?void 0x0:_0x4c71d9[_0x4dfb7f(0x190)]();if(!_0x2187d4)throw new Error('No\x20active\x20workbook\x20found.');const _0x3abf2f=_0x2bcb76[_0x4dfb7f(0x18b)](_0x2187d4);return(_0x2e2c5d=_0x3abf2f==null?void 0x0:_0x3abf2f[_0x4dfb7f(0x1ad)]())!=null?_0x2e2c5d:_0x3d8ada[_0x4dfb7f(0x194)];}[_0x2116a7(0x1a2)](){const _0x2421d1=_0x2116a7;var _0x5aa892;const _0x2c9a37=this[_0x2421d1(0x1ae)][_0x2421d1(0x19d)](_0x5e2da0),_0x17245a=(_0x5aa892=this[_0x2421d1(0x1aa)]())==null?void 0x0:_0x5aa892['getId']();if(!_0x17245a)throw new Error('No\x20active\x20workbook\x20found.');const _0x14f44e=_0x2c9a37['getLiveShareCoordinatorSync'](_0x17245a);if(!_0x14f44e)throw new Error(_0x2421d1(0x18e));_0x14f44e[_0x2421d1(0x1a2)]();}[_0x2116a7(0x19a)](){const _0x22494a=_0x2116a7;var _0x1662cd;const _0x14d2c3=this['_injector'][_0x22494a(0x19d)](_0x5e2da0),_0x2ef79a=(_0x1662cd=this['getActiveWorkbook']())==null?void 0x0:_0x1662cd['getId']();if(!_0x2ef79a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4926d7=_0x14d2c3['getLiveShareCoordinatorSync'](_0x2ef79a);if(!_0x4926d7)throw new Error(_0x22494a(0x18e));_0x4926d7['stopFollowing']();}['startPresenting'](){const _0x8c1fe1=_0x2116a7;var _0x4e3a68;const _0x440ae1=this[_0x8c1fe1(0x1ae)]['get'](_0x5e2da0),_0x2976fe=(_0x4e3a68=this['getActiveWorkbook']())==null?void 0x0:_0x4e3a68[_0x8c1fe1(0x190)]();if(!_0x2976fe)throw new Error(_0x8c1fe1(0x18a));const _0x559cf7=_0x440ae1[_0x8c1fe1(0x18b)](_0x2976fe);if(!_0x559cf7)throw new Error(_0x8c1fe1(0x18e));_0x559cf7[_0x8c1fe1(0x1a4)]();}[_0x2116a7(0x191)](){const _0x425bce=_0x2116a7;var _0x40a555;const _0x4be973=this[_0x425bce(0x1ae)][_0x425bce(0x19d)](_0x5e2da0),_0x1f3111=(_0x40a555=this[_0x425bce(0x1aa)]())==null?void 0x0:_0x40a555['getId']();if(!_0x1f3111)throw new Error(_0x425bce(0x18a));const _0x13dbbe=_0x4be973[_0x425bce(0x18b)](_0x1f3111);if(!_0x13dbbe)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13dbbe['stopPresenting']();}}_0x4b8844[_0x2116a7(0x1a0)](m);class C extends _0x4cd64b{get[_0x2116a7(0x18c)](){return _0x3d8ada;}}_0x4cd64b[_0x2116a7(0x1a0)](C);
1
+ function _0x172b(){const _0x239a0f=['238162dguTwF','1XmgSSv','4524550xyKNYR','_injector','_initialize','getLiveShareStatus','703615HPtSXc','_commandService','getSheetId','18hpXxTO','LiveShareStatusEnum','getStatus','getActiveWorkbook','3004712BJKasx','startFollowing','getActiveSheet','extend','120208iWMSQy','PRESENTING','startColumn','stopFollowing','No\x20active\x20workbook\x20found.','stopPresenting','6126960eKEKXg','get','syncExecuteCommand','3609872DstemS','getLiveShareCoordinatorSync','getId','tryStartPresenting','21OPjyXB','startRow','startPresenting','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x172b=function(){return _0x239a0f;};return _0x172b();}function _0x59e4(_0x4a7e04,_0x3250e4){_0x4a7e04=_0x4a7e04-0x136;const _0x172bc9=_0x172b();let _0x59e424=_0x172bc9[_0x4a7e04];return _0x59e424;}const _0x14c585=_0x59e4;(function(_0xdaf91d,_0x159718){const _0x459610=_0x59e4,_0x19f48a=_0xdaf91d();while(!![]){try{const _0x1ff05a=-parseInt(_0x459610(0x13d))/0x1*(-parseInt(_0x459610(0x13c))/0x2)+parseInt(_0x459610(0x137))/0x3*(parseInt(_0x459610(0x14d))/0x4)+-parseInt(_0x459610(0x142))/0x5+parseInt(_0x459610(0x153))/0x6+parseInt(_0x459610(0x156))/0x7+-parseInt(_0x459610(0x149))/0x8*(parseInt(_0x459610(0x145))/0x9)+-parseInt(_0x459610(0x13e))/0xa;if(_0x1ff05a===_0x159718)break;else _0x19f48a['push'](_0x19f48a['shift']());}catch(_0x220c4c){_0x19f48a['push'](_0x19f48a['shift']());}}}(_0x172b,0x7f6d9));import{LiveShareController as _0x201de6,LiveShareStatus as _0x572810}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c9652}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x15a0d3}from'@univerjs/sheets';import{SetScrollOperation as _0x3e2999}from'@univerjs/sheets-ui';import{FRange as _0x19457d}from'@univerjs/sheets/facade';import{FUniver as _0x527e95,FEnum as _0xa3945e}from'@univerjs/core/facade';class I extends _0x19457d{[_0x14c585(0x140)](_0x213306,_0x211399,_0x5075ec,_0x2746be,_0x5037a3){const _0x5666dd=_0x14c585,_0x35a6db=_0x213306[_0x5666dd(0x154)](_0x201de6),_0x16dd8d=_0x213306[_0x5666dd(0x154)](_0x4c9652),_0x1abcb9=_0x211399['getUnitId'](),_0x3d6ea0=_0x211399[_0x5666dd(0x14b)](),_0x72fc05=_0x35a6db[_0x5666dd(0x157)](_0x1abcb9);(_0x72fc05==null?void 0x0:_0x72fc05['getStatus']())!==_0x572810[_0x5666dd(0x14e)]||(_0x5075ec['getSheetId']()!==_0x3d6ea0['getSheetId']()&&this[_0x5666dd(0x143)]['executeCommand'](_0x15a0d3['id'],{'unitId':_0x1abcb9,'subUnitId':_0x5075ec[_0x5666dd(0x144)]()}),!_0x16dd8d['getRenderById'](_0x1abcb9))||_0x5037a3[_0x5666dd(0x155)](_0x3e2999['id'],{'unitId':_0x211399[_0x5666dd(0x13a)](),'sheetId':_0x5075ec[_0x5666dd(0x144)](),'sheetViewStartRow':_0x2746be[_0x5666dd(0x138)],'sheetViewStartColumn':_0x2746be[_0x5666dd(0x14f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x19457d[_0x14c585(0x14c)](I);class m extends _0x527e95{[_0x14c585(0x141)](){const _0x48f473=_0x14c585;var _0x780f8d,_0x2fca01;const _0x2f5ca2=this[_0x48f473(0x13f)]['get'](_0x201de6),_0x3ee341=(_0x780f8d=this[_0x48f473(0x148)]())==null?void 0x0:_0x780f8d[_0x48f473(0x158)]();if(!_0x3ee341)throw new Error(_0x48f473(0x151));const _0x4c6e46=_0x2f5ca2['getLiveShareCoordinatorSync'](_0x3ee341);return(_0x2fca01=_0x4c6e46==null?void 0x0:_0x4c6e46[_0x48f473(0x147)]())!=null?_0x2fca01:_0x572810['IDLE'];}[_0x14c585(0x14a)](){const _0x3f77c9=_0x14c585;var _0x2a9970;const _0x44430a=this[_0x3f77c9(0x13f)][_0x3f77c9(0x154)](_0x201de6),_0x1c1bb5=(_0x2a9970=this[_0x3f77c9(0x148)]())==null?void 0x0:_0x2a9970[_0x3f77c9(0x158)]();if(!_0x1c1bb5)throw new Error(_0x3f77c9(0x151));const _0x2767d4=_0x44430a[_0x3f77c9(0x157)](_0x1c1bb5);if(!_0x2767d4)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2767d4[_0x3f77c9(0x14a)]();}[_0x14c585(0x150)](){const _0x2a5155=_0x14c585;var _0x14428c;const _0x28a468=this[_0x2a5155(0x13f)][_0x2a5155(0x154)](_0x201de6),_0x5d2678=(_0x14428c=this['getActiveWorkbook']())==null?void 0x0:_0x14428c[_0x2a5155(0x158)]();if(!_0x5d2678)throw new Error('No\x20active\x20workbook\x20found.');const _0x553781=_0x28a468['getLiveShareCoordinatorSync'](_0x5d2678);if(!_0x553781)throw new Error(_0x2a5155(0x13b));_0x553781[_0x2a5155(0x150)]();}[_0x14c585(0x139)](){const _0x2d23c5=_0x14c585;var _0x269211;const _0x46e3ea=this[_0x2d23c5(0x13f)]['get'](_0x201de6),_0x3efc6e=(_0x269211=this[_0x2d23c5(0x148)]())==null?void 0x0:_0x269211[_0x2d23c5(0x158)]();if(!_0x3efc6e)throw new Error(_0x2d23c5(0x151));const _0x25c4f5=_0x46e3ea['getLiveShareCoordinatorSync'](_0x3efc6e);if(!_0x25c4f5)throw new Error(_0x2d23c5(0x13b));_0x25c4f5[_0x2d23c5(0x136)]();}[_0x14c585(0x152)](){const _0xdd386f=_0x14c585;var _0x2c455a;const _0xb94eb=this['_injector'][_0xdd386f(0x154)](_0x201de6),_0x3b591e=(_0x2c455a=this[_0xdd386f(0x148)]())==null?void 0x0:_0x2c455a[_0xdd386f(0x158)]();if(!_0x3b591e)throw new Error(_0xdd386f(0x151));const _0x4e0fba=_0xb94eb[_0xdd386f(0x157)](_0x3b591e);if(!_0x4e0fba)throw new Error(_0xdd386f(0x13b));_0x4e0fba[_0xdd386f(0x152)]();}}_0x527e95[_0x14c585(0x14c)](m);class C extends _0xa3945e{get[_0x14c585(0x146)](){return _0x572810;}}_0xa3945e[_0x14c585(0x14c)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x45a5ad=_0x2562;function _0x27b3(){const _0x3a5d32=['_commandService','presenting','OFFLINE','end','_stopPresenting','defineProperty','UNIVER_UNKNOWN','default','LIVESHARE_REQUEST_HOST','_configService','stopPresenting','_reporters','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','10HrhVdN','map','asObservable','_entities','UniverIcon','47555CKTJaQ','_collabSession','LiveShareIcon','NEW_CHANGESETS','16tUGsqN','path','tryStartPresenting','startFollowing','next','_status','OPERATION','getUnitId','type','1em','getLiveShareCoordinator','mask','195851kIafZS','assign','live-share.config','clear','_startLiveShareCoordinator','_fetchOperations','children','values','length','text','HEADER_MENU','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_TERMINATE','You\x27are\x20offline.','Stop\x20following','memberID','getLiveShareCoordinatorSync','displayName','fill','disposeWithMe','sessionStatus$','stringify','getOwnPropertyDescriptor','_commandDisposable','getStatus','965321KMOtGe','status$','delete','symbol','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','PRESENTING','Start\x20following','string','tag','init','event$','_handleOffline','substring','6ZLWFUQ','_handleTerminate','registerInitialStateReporter','SAME_OPERATION_SHARE_INTERVAL','_init','data','0\x200\x2017\x2017','find','parse','has','_startFollowing','includes','offline','_status$','_handleNewChangeSets','idSuffix','createInstance','add','mutations','46548OjzECT','You\x27re\x20not\x20following\x20the\x20presenter','_stopFollowing','executeCommand','_liveShareService','colorChannel1','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','LIVESHARE_OPERATION','defs','toString','IDLE','79968lJnVMP','currentColor','get','LIVESHARE_FETCH_OPERATIONS','xlink:href','url(#$1','_collabSessionService','use','_uiPartsService','LIVESHARE_NEW_HOST','not-following','_presenter','getConfig','dispose$','_startPresenting','pluginName','sheet','send','params','Start','6053949jvZqCQ','_handleOnline','registerSharedOperation','_handleOperation','button','forEach','unsubscribe','current','entries','replace','_config','set','random','univer-size-4','univerjs-icon\x20univerjs-icon-','_unitID','attrs','_injector','getMemberID','_handleNewHost','stopFollowing','requireSession','from','_beIdle','dispose','getTypeOfUnitAdded$','override','operations','defIds','subscribe','NOT_FOLLOWING','div','pipe','complete','registerComponent','You\x27re\x20presenting\x20the\x20document','_sharedOperations','presenter','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','idle','setConfig','UNIVER_SHEET','shouldShareOperation','2154952naXZCW','FOLLOWING'];_0x27b3=function(){return _0x3a5d32;};return _0x27b3();}(function(_0x5cfd63,_0x5105bd){const _0x4a6bbb=_0x2562,_0x127195=_0x5cfd63();while(!![]){try{const _0x47eeb8=-parseInt(_0x4a6bbb(0x23e))/0x1+parseInt(_0x4a6bbb(0x284))/0x2+-parseInt(_0x4a6bbb(0x279))/0x3*(-parseInt(_0x4a6bbb(0x232))/0x4)+-parseInt(_0x4a6bbb(0x22e))/0x5*(parseInt(_0x4a6bbb(0x266))/0x6)+-parseInt(_0x4a6bbb(0x258))/0x7+-parseInt(_0x4a6bbb(0x21a))/0x8+parseInt(_0x4a6bbb(0x298))/0x9*(parseInt(_0x4a6bbb(0x229))/0xa);if(_0x47eeb8===_0x5105bd)break;else _0x127195['push'](_0x127195['shift']());}catch(_0x437932){_0x127195['push'](_0x127195['shift']());}}}(_0x27b3,0x2791b));var J=Object[_0x45a5ad(0x221)],K=(_0x34e9b9,_0x55baf1,_0xda989c)=>_0x55baf1 in _0x34e9b9?J(_0x34e9b9,_0x55baf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xda989c}):_0x34e9b9[_0x55baf1]=_0xda989c,u=(_0x2e5bf1,_0x4c5009,_0x15489a)=>K(_0x2e5bf1,typeof _0x4c5009!=_0x45a5ad(0x25b)?_0x4c5009+'':_0x4c5009,_0x15489a);import{Disposable as _0x1cac0a,toDisposable as _0x1019de,IUniverInstanceService as _0x167ffb,Inject as _0x24ac51,Injector as _0x37149b,IConfigService as _0x243378,ICommandService as _0x2a6a6b,RxDisposable as _0x1a1fe5,UniverInstanceType as _0x483ab7,DisposableCollection as _0x2ff702,CommandType as _0x35447d,DependentOn as _0x13afb3,Plugin as _0x3bdc1a,merge as _0x468e5c,registerDependencies as _0x306653,mergeOverrideWithDependencies as _0x2e4e88,touchDependencies as _0xa73248}from'@univerjs/core';import{useDependency as _0x2f7790,useObservable as _0x5534e2,IUIPartsService as _0x1e1f8c,BuiltInUIPart as _0x264092,connectInjector as _0x286ddd}from'@univerjs/ui';import{jsx as _0x45dd85,jsxs as _0x55328e,Fragment as _0x481167}from'react/jsx-runtime';import{Dropdown as _0x4d4f60,clsx as _0x290227,Button as _0x5dff14}from'@univerjs/design';import{useRef as _0x38104f,createElement as _0x3dbe79,forwardRef as _0x4af31b,useState as _0x31ebce,useEffect as _0x1ed7eb}from'react';import{CollaborationEvent as _0x5d4a06,parseProtocolChangeset as _0x14b46d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x136282,SessionStatus as _0x10df1b,UniverCollaborationClientPlugin as _0x2cd52a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x345c11,SetWorksheetActiveOperation as _0x2270dd}from'@univerjs/sheets';import{BehaviorSubject as _0x5d1258,Subject as _0x2bf948}from'rxjs';import{takeUntil as _0x246d5b,throttleTime as _0x5b118b}from'rxjs/operators';import{SetZoomRatioOperation as _0x5cee16,SetScrollOperation as _0x3c74b3}from'@univerjs/sheets-ui';function k({ref:_0x121ea1,..._0x2c7bbe}){const _0x5add54=_0x45a5ad,{icon:_0x400cb9,id:_0x3abaed,className:_0x3346f1,extend:_0x55d7da,..._0x42e025}=_0x2c7bbe,_0x15b9f2=(_0x5add54(0x1fd)+_0x3abaed+'\x20'+(_0x3346f1||''))['trim'](),_0x28ad03=_0x38104f('_'+Oe());return G(_0x400cb9,''+_0x3abaed,{'defIds':_0x400cb9[_0x5add54(0x20b)],'idSuffix':_0x28ad03['current']},{'ref':_0x121ea1,'className':_0x15b9f2,..._0x42e025},_0x55d7da);}function G(_0x3ecbb0,_0x54af86,_0x4e0af7,_0x51bce8,_0x2a880d){const _0x481778=_0x45a5ad;return _0x3dbe79(_0x3ecbb0[_0x481778(0x261)],{'key':_0x54af86,...be(_0x3ecbb0,_0x4e0af7,_0x2a880d),..._0x51bce8},(Ee(_0x3ecbb0,_0x4e0af7)['children']||[])[_0x481778(0x22a)]((_0x2da3b3,_0x2ded7d)=>G(_0x2da3b3,_0x54af86+'-'+_0x3ecbb0[_0x481778(0x261)]+'-'+_0x2ded7d,_0x4e0af7,void 0x0,_0x2a880d)));}function be(_0x241a8f,_0x28a98d,_0xf51db3){const _0x42ac5f=_0x45a5ad,_0x407720={..._0x241a8f[_0x42ac5f(0x1ff)]};_0xf51db3!=null&&_0xf51db3[_0x42ac5f(0x27e)]&&_0x407720[_0x42ac5f(0x251)]===_0x42ac5f(0x27e)&&(_0x407720[_0x42ac5f(0x251)]=_0xf51db3[_0x42ac5f(0x27e)]),_0x241a8f[_0x42ac5f(0x261)]===_0x42ac5f(0x23d)&&_0x407720['id']&&(_0x407720['id']=_0x407720['id']+_0x28a98d[_0x42ac5f(0x275)]),Object[_0x42ac5f(0x1f7)](_0x407720)[_0x42ac5f(0x1f4)](([_0x286588,_0x572f24])=>{const _0x66e4dd=_0x42ac5f;_0x286588==='mask'&&typeof _0x572f24==_0x66e4dd(0x260)&&(_0x407720[_0x286588]=_0x572f24['replace'](/url\(#(.*)\)/,_0x66e4dd(0x289)+_0x28a98d[_0x66e4dd(0x275)]+')'));});const {defIds:_0x3e0d01}=_0x28a98d;return!_0x3e0d01||_0x3e0d01['length']===0x0||(_0x241a8f['tag']===_0x42ac5f(0x28b)&&_0x407720[_0x42ac5f(0x288)]&&(_0x407720[_0x42ac5f(0x288)]=_0x407720[_0x42ac5f(0x288)]+_0x28a98d['idSuffix']),Object['entries'](_0x407720)[_0x42ac5f(0x1f4)](([_0x4f814b,_0x250864])=>{const _0x37ebdb=_0x42ac5f;typeof _0x250864==_0x37ebdb(0x260)&&(_0x407720[_0x4f814b]=_0x250864[_0x37ebdb(0x1f8)](/url\(#(.*)\)/,_0x37ebdb(0x289)+_0x28a98d[_0x37ebdb(0x275)]+')'));})),_0x407720;}function Ee(_0x1425b5,_0x22aaba){const _0x21a12b=_0x45a5ad;var _0xc91c1f;const {defIds:_0x2c55e1}=_0x22aaba;return!_0x2c55e1||_0x2c55e1[_0x21a12b(0x246)]===0x0?_0x1425b5:_0x1425b5[_0x21a12b(0x261)]===_0x21a12b(0x281)&&((_0xc91c1f=_0x1425b5[_0x21a12b(0x244)])!=null&&_0xc91c1f['length'])?{..._0x1425b5,'children':_0x1425b5[_0x21a12b(0x244)][_0x21a12b(0x22a)](_0x3c26e7=>typeof _0x3c26e7[_0x21a12b(0x1ff)]['id']==_0x21a12b(0x260)&&_0x2c55e1&&_0x2c55e1[_0x21a12b(0x271)](_0x3c26e7[_0x21a12b(0x1ff)]['id'])?{..._0x3c26e7,'attrs':{..._0x3c26e7['attrs'],'id':_0x3c26e7[_0x21a12b(0x1ff)]['id']+_0x22aaba[_0x21a12b(0x275)]}}:_0x3c26e7)}:_0x1425b5;}function Oe(){const _0x515b06=_0x45a5ad;return Math[_0x515b06(0x1fb)]()[_0x515b06(0x282)](0x24)[_0x515b06(0x265)](0x2,0x8);}k[_0x45a5ad(0x250)]=_0x45a5ad(0x22d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x45a5ad(0x26c),'width':_0x45a5ad(0x23b),'height':_0x45a5ad(0x23b)},'children':[{'tag':_0x45a5ad(0x233),'attrs':{'fill':_0x45a5ad(0x285),'d':_0x45a5ad(0x215)}},{'tag':'path','attrs':{'fill':_0x45a5ad(0x285),'d':_0x45a5ad(0x27f),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x4af31b(function(_0x4cb11b,_0x3f7fa5){const _0x114107=_0x45a5ad;return _0x3dbe79(k,Object[_0x114107(0x23f)]({},_0x4cb11b,{'id':'live-share-icon','ref':_0x3f7fa5,'icon':we}));});W[_0x45a5ad(0x250)]=_0x45a5ad(0x230);class L extends _0x1cac0a{constructor(){const _0x4d8a42=_0x45a5ad;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4d8a42(0x227),new Set());}[_0x45a5ad(0x29a)](_0x2588a5){const _0x5191b7=_0x45a5ad;return this[_0x5191b7(0x213)]['add'](_0x2588a5),_0x1019de(()=>this[_0x5191b7(0x213)]['delete'](_0x2588a5));}[_0x45a5ad(0x268)](_0xd70e25){const _0x33dbbf=_0x45a5ad;return this['_reporters'][_0x33dbbf(0x277)](_0xd70e25),_0x1019de(()=>this[_0x33dbbf(0x227)][_0x33dbbf(0x25a)](_0xd70e25));}[_0x45a5ad(0x219)](_0x1c2b68){const _0x1e223f=_0x45a5ad;return this[_0x1e223f(0x213)][_0x1e223f(0x26f)](_0x1c2b68);}['getInitialStates'](_0x3b2e6d){const _0x4eb3a1=_0x45a5ad;return Array[_0x4eb3a1(0x205)](this[_0x4eb3a1(0x227)])[_0x4eb3a1(0x22a)](_0x425a91=>_0x425a91(_0x3b2e6d));}}var Ne=Object[_0x45a5ad(0x255)],Y=(_0x2ea9d8,_0x335e29,_0x19247f,_0x2ae7e6)=>{const _0x52cfd9=_0x45a5ad;for(var _0x3142d2=_0x2ae7e6>0x1?void 0x0:_0x2ae7e6?Ne(_0x335e29,_0x19247f):_0x335e29,_0x18eab1=_0x2ea9d8[_0x52cfd9(0x246)]-0x1,_0x12f355;_0x18eab1>=0x0;_0x18eab1--)(_0x12f355=_0x2ea9d8[_0x18eab1])&&(_0x3142d2=_0x12f355(_0x3142d2)||_0x3142d2);return _0x3142d2;},_=(_0x592ced,_0x17afc1)=>(_0x57235f,_0xae1439)=>_0x17afc1(_0x57235f,_0xae1439,_0x592ced);let S=class extends _0x1a1fe5{constructor(_0x12f268,_0x4bea31,_0x4f98b6){const _0x233c58=_0x45a5ad;super(),u(this,'_entities',new Map()),(this[_0x233c58(0x25d)]=_0x12f268,this['_injector']=_0x4bea31,this['_collabSessionService']=_0x4f98b6,this[_0x233c58(0x26a)]());}async[_0x45a5ad(0x23c)](_0x32532c){const _0x102269=_0x45a5ad;return this[_0x102269(0x22c)][_0x102269(0x26f)](_0x32532c)||await this[_0x102269(0x242)](_0x32532c),this['_entities'][_0x102269(0x286)](_0x32532c);}[_0x45a5ad(0x24f)](_0x421d63){var _0x5dc3e1;return(_0x5dc3e1=this['_entities']['get'](_0x421d63))!=null?_0x5dc3e1:null;}[_0x45a5ad(0x26a)](){const _0x266b3b=_0x45a5ad;this['_univerInstanceService'][_0x266b3b(0x208)](_0x483ab7[_0x266b3b(0x218)])[_0x266b3b(0x20f)](_0x246d5b(this[_0x266b3b(0x291)]))[_0x266b3b(0x20c)](async _0x455c62=>{const _0xb10134=_0x266b3b,_0x5d1f4e=_0x455c62[_0xb10134(0x239)]();this[_0xb10134(0x22c)][_0xb10134(0x26f)](_0x5d1f4e)||this[_0xb10134(0x242)](_0x5d1f4e);}),this[_0x266b3b(0x25d)]['getTypeOfUnitDisposed$'](_0x483ab7['UNIVER_SHEET'])[_0x266b3b(0x20f)](_0x246d5b(this[_0x266b3b(0x291)]))['subscribe'](_0x4216ff=>{const _0x1668d1=_0x266b3b,_0x397c55=_0x4216ff['getUnitId'](),_0x3c6947=this[_0x1668d1(0x22c)][_0x1668d1(0x286)](_0x397c55);_0x3c6947==null||_0x3c6947['dispose']();});}async['_startLiveShareCoordinator'](_0x1ded96){const _0x269870=_0x45a5ad,_0x5cee28=await this[_0x269870(0x28a)][_0x269870(0x204)](_0x1ded96),_0x238506=this[_0x269870(0x200)][_0x269870(0x276)](N,_0x1ded96,_0x5cee28);return _0x238506[_0x269870(0x262)](),this[_0x269870(0x22c)][_0x269870(0x1fa)](_0x1ded96,_0x238506),_0x238506;}};S=Y([_(0x0,_0x167ffb),_(0x1,_0x24ac51(_0x37149b)),_(0x2,_0x24ac51(_0x136282))],S);var c=(_0xfa79e=>(_0xfa79e['OFFLINE']='offline',_0xfa79e[_0x45a5ad(0x283)]=_0x45a5ad(0x216),_0xfa79e[_0x45a5ad(0x21b)]=_0x45a5ad(0x249),_0xfa79e[_0x45a5ad(0x20d)]=_0x45a5ad(0x28e),_0xfa79e[_0x45a5ad(0x25e)]=_0x45a5ad(0x21d),_0xfa79e))(c||{});const Ce=_0x45a5ad(0x269),De=0xc8;let N=class extends _0x1a1fe5{constructor(_0x1e3822,_0xa4c667,_0x3a4a1d,_0x5dd24c,_0x682e1c){const _0x4b8d24=_0x45a5ad;super(),u(this,'_status$',new _0x5d1258('idle')),u(this,'status$',this[_0x4b8d24(0x273)][_0x4b8d24(0x22b)]()),u(this,_0x4b8d24(0x26a),!0x1),u(this,_0x4b8d24(0x256),null),u(this,_0x4b8d24(0x28f),null),(this[_0x4b8d24(0x1fe)]=_0x1e3822,this[_0x4b8d24(0x22f)]=_0xa4c667,this[_0x4b8d24(0x225)]=_0x3a4a1d,this[_0x4b8d24(0x27d)]=_0x5dd24c,this['_commandService']=_0x682e1c);}get[_0x45a5ad(0x237)](){const _0x522d43=_0x45a5ad;return this[_0x522d43(0x273)]['getValue']();}['dispose'](){const _0x2cbb49=_0x45a5ad;var _0x2e2949;(_0x2e2949=this[_0x2cbb49(0x256)])==null||_0x2e2949[_0x2cbb49(0x207)](),this[_0x2cbb49(0x273)][_0x2cbb49(0x236)](_0x2cbb49(0x216)),this[_0x2cbb49(0x273)][_0x2cbb49(0x210)]();}[_0x45a5ad(0x257)](){const _0x49acf5=_0x45a5ad;return this[_0x49acf5(0x237)];}[_0x45a5ad(0x262)](){const _0x322ddb=_0x45a5ad;this['_init']||(this[_0x322ddb(0x26a)]=!0x0,this[_0x322ddb(0x22f)][_0x322ddb(0x253)]['pipe'](_0x246d5b(this['dispose$']))[_0x322ddb(0x20c)](_0xcde821=>{const _0x1976aa=_0x322ddb;switch(_0xcde821){case _0x10df1b[_0x1976aa(0x21e)]:this[_0x1976aa(0x264)]();break;case _0x10df1b['ONLINE']:this['_handleOnline']();break;}}),this[_0x322ddb(0x22f)][_0x322ddb(0x263)]['pipe'](_0x246d5b(this[_0x322ddb(0x291)]))[_0x322ddb(0x20c)](_0x58e3d5=>{const _0x1357b5=_0x322ddb,{eventID:_0x364022}=_0x58e3d5;switch(_0x364022){case _0x5d4a06[_0x1357b5(0x28d)]:this[_0x1357b5(0x202)](_0x58e3d5);break;case _0x5d4a06[_0x1357b5(0x280)]:this[_0x1357b5(0x1f2)](_0x58e3d5);break;case _0x5d4a06['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x5d4a06[_0x1357b5(0x231)]:this[_0x1357b5(0x274)](_0x58e3d5);break;}}));}[_0x45a5ad(0x234)](){const _0x545f53=_0x45a5ad;this['_collabSession'][_0x545f53(0x295)]({'eventID':_0x5d4a06[_0x545f53(0x224)],'data':{'unitID':this[_0x545f53(0x1fe)],'userID':this[_0x545f53(0x22f)]['getMemberID']()}},this['_unitID']);}[_0x45a5ad(0x226)](){const _0x2ab43d=_0x45a5ad;this[_0x2ab43d(0x237)]===_0x2ab43d(0x21d)&&(this[_0x2ab43d(0x273)]['next']('idle'),this[_0x2ab43d(0x22f)][_0x2ab43d(0x295)]({'eventID':_0x5d4a06[_0x2ab43d(0x24b)],'data':{'unitID':this[_0x2ab43d(0x1fe)]}},this[_0x2ab43d(0x1fe)]));}[_0x45a5ad(0x235)](){const _0x16a309=_0x45a5ad;this['_status']===_0x16a309(0x28e)&&(this[_0x16a309(0x273)][_0x16a309(0x236)](_0x16a309(0x249)),this[_0x16a309(0x270)]());}[_0x45a5ad(0x203)](){const _0x20cd01=_0x45a5ad;this[_0x20cd01(0x237)]===_0x20cd01(0x249)&&this[_0x20cd01(0x27b)]();}[_0x45a5ad(0x202)](_0x3e8f6a){const _0x5c29d3=_0x45a5ad,{presenter:_0x51238c}=_0x3e8f6a[_0x5c29d3(0x26b)],_0x3f8d14=this[_0x5c29d3(0x22f)][_0x5c29d3(0x201)]();this[_0x5c29d3(0x28f)]=_0x51238c,_0x51238c===_0x3f8d14?(this[_0x5c29d3(0x27b)](),this[_0x5c29d3(0x292)]()):this['_status']!=='not-following'&&(this[_0x5c29d3(0x220)](),this[_0x5c29d3(0x270)]());}['_fetchOperations'](){const _0x5838b7=_0x45a5ad,_0x566123={'eventID':_0x5d4a06[_0x5838b7(0x287)]};this[_0x5838b7(0x22f)][_0x5838b7(0x295)](_0x566123,this['_unitID']);}[_0x45a5ad(0x267)](){const _0x4b7328=_0x45a5ad;this[_0x4b7328(0x28f)]=null,this['_status']!==_0x4b7328(0x21d)&&this[_0x4b7328(0x206)]();}[_0x45a5ad(0x274)](_0x551516){const _0x391a86=_0x45a5ad;if(this[_0x391a86(0x237)]==='following'&&this[_0x391a86(0x28f)]===_0x551516[_0x391a86(0x26b)][_0x391a86(0x24e)]){const _0x3335db=_0x14b46d(_0x551516[_0x391a86(0x26b)])[_0x391a86(0x278)]['reverse']()[_0x391a86(0x26d)](_0xdae5fc=>_0xdae5fc['id']===_0x345c11['id']);if(_0x3335db){const _0x1c28a9=_0x3335db[_0x391a86(0x296)]['unitId'],_0x2d48ef=_0x3335db[_0x391a86(0x296)][_0x391a86(0x294)]['id'];setTimeout(()=>{const _0x3823f7=_0x391a86;this[_0x3823f7(0x21c)]['executeCommand'](_0x2270dd['id'],{'unitId':_0x1c28a9,'subUnitId':_0x2d48ef},{'fromCollab':!0x0});});}}}[_0x45a5ad(0x292)](){const _0x625866=_0x45a5ad;this[_0x625866(0x273)][_0x625866(0x236)](_0x625866(0x21d));const _0x557597=new Map(),_0x467e9f=this['_commandDisposable']=new _0x2ff702();_0x467e9f[_0x625866(0x277)](_0x1019de(()=>{const _0x3ac885=_0x625866;_0x557597[_0x3ac885(0x1f4)](_0x5f4303=>_0x5f4303[_0x3ac885(0x210)]()),_0x557597[_0x3ac885(0x241)]();})),_0x467e9f['add'](this[_0x625866(0x21c)]['onCommandExecuted'](_0xb0be6c=>{const _0x412d73=_0x625866;var _0x4c5529;if(_0xb0be6c['type']!==_0x35447d[_0x412d73(0x238)]||!this[_0x412d73(0x27d)][_0x412d73(0x219)](_0xb0be6c['id']))return;const {id:_0x2e903a}=_0xb0be6c;let _0x24f623;_0x557597[_0x412d73(0x26f)](_0x2e903a)?_0x24f623=_0x557597[_0x412d73(0x286)](_0x2e903a):(_0x24f623=new _0x2bf948(),_0x557597[_0x412d73(0x1fa)](_0x2e903a,_0x24f623),_0x24f623[_0x412d73(0x20f)](_0x5b118b((_0x4c5529=this['_configService'][_0x412d73(0x290)](Ce))!=null?_0x4c5529:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x412d73(0x20c)](_0x29c675=>{const _0x310c3b=_0x412d73;this[_0x310c3b(0x22f)][_0x310c3b(0x295)]({'eventID':_0x5d4a06[_0x310c3b(0x280)],'data':{'unitID':this[_0x310c3b(0x1fe)],'operations':{[_0x29c675['id']]:{'id':_0x29c675['id'],'params':JSON[_0x310c3b(0x254)](_0x29c675[_0x310c3b(0x296)])}}}},this[_0x310c3b(0x1fe)]);})),_0x24f623[_0x412d73(0x236)](_0xb0be6c);})),this[_0x625866(0x27d)]['getInitialStates'](this[_0x625866(0x1fe)])['forEach'](_0x5294a7=>this[_0x625866(0x22f)][_0x625866(0x295)]({'eventID':_0x5d4a06[_0x625866(0x280)],'data':{'unitID':this[_0x625866(0x1fe)],'operations':{[_0x5294a7['id']]:{'id':_0x5294a7['id'],'params':JSON[_0x625866(0x254)](_0x5294a7['params'])}}}},this[_0x625866(0x1fe)]));}[_0x45a5ad(0x220)](){const _0x47082b=_0x45a5ad;var _0x64c489;this[_0x47082b(0x273)][_0x47082b(0x236)](_0x47082b(0x216)),(_0x64c489=this[_0x47082b(0x256)])==null||_0x64c489[_0x47082b(0x207)](),this[_0x47082b(0x256)]=null;}[_0x45a5ad(0x270)](){const _0x448915=_0x45a5ad;var _0x3288f0;(_0x3288f0=this[_0x448915(0x256)])==null||_0x3288f0[_0x448915(0x207)](),this[_0x448915(0x273)][_0x448915(0x236)](_0x448915(0x249));}[_0x45a5ad(0x206)](){const _0x36ab19=_0x45a5ad;var _0x3963e4;this['_status$'][_0x36ab19(0x236)](_0x36ab19(0x216)),(_0x3963e4=this['_commandDisposable'])==null||_0x3963e4[_0x36ab19(0x207)](),this[_0x36ab19(0x256)]=null;}[_0x45a5ad(0x27b)](){const _0x1bcdff=_0x45a5ad;var _0x101146;this['_status$'][_0x1bcdff(0x236)](_0x1bcdff(0x28e)),(_0x101146=this[_0x1bcdff(0x256)])==null||_0x101146[_0x1bcdff(0x207)]();}['_handleOperation'](_0x2973d5){const _0x1de8a6=_0x45a5ad;if([_0x1de8a6(0x21d),_0x1de8a6(0x28e),_0x1de8a6(0x272)]['includes'](this[_0x1de8a6(0x237)])||!_0x2973d5[_0x1de8a6(0x26b)][_0x1de8a6(0x214)]||_0x2973d5['data'][_0x1de8a6(0x214)]===this[_0x1de8a6(0x22f)][_0x1de8a6(0x201)]())return;this[_0x1de8a6(0x237)]===_0x1de8a6(0x216)&&this[_0x1de8a6(0x270)]();const _0x4e33de=_0x2973d5[_0x1de8a6(0x26b)][_0x1de8a6(0x20a)];Object[_0x1de8a6(0x245)](_0x4e33de)[_0x1de8a6(0x1f4)](_0x31e699=>{const _0x16995a=_0x1de8a6;this[_0x16995a(0x21c)][_0x16995a(0x27c)](_0x31e699['id'],_0x31e699[_0x16995a(0x296)]?JSON[_0x16995a(0x26e)](_0x31e699[_0x16995a(0x296)]):null,{'fromCollab':!0x0});});}[_0x45a5ad(0x264)](){const _0x2910ab=_0x45a5ad;var _0x3c685d;this[_0x2910ab(0x273)][_0x2910ab(0x236)](_0x2910ab(0x272)),(_0x3c685d=this['_commandDisposable'])==null||_0x3c685d['dispose']();}[_0x45a5ad(0x299)](){const _0xf0fdf8=_0x45a5ad;this[_0xf0fdf8(0x273)]['next'](_0xf0fdf8(0x216)),this[_0xf0fdf8(0x243)]();}};N=Y([_(0x2,_0x243378),_(0x3,_0x24ac51(L)),_(0x4,_0x2a6a6b)],N);function Le(){const _0x1fa189=_0x45a5ad,_0x3be27a=_0x2f7790(S),_0x3b8289=_0x2f7790(_0x167ffb),_0x3fcceb=_0x5534e2(()=>_0x3b8289['getCurrentTypeOfUnit$'](_0x483ab7[_0x1fa189(0x218)]),void 0x0,!0x1,[]),[_0x3f87e0,_0x55f8f5]=_0x31ebce(null),[_0x20a899,_0x182251]=_0x31ebce(c['IDLE']),_0x4caf9c=_0x38104f(null);return _0x1ed7eb(()=>(_0x3fcceb&&_0x3be27a[_0x1fa189(0x23c)](_0x3fcceb['getUnitId']())['then'](_0x848fec=>{const _0x3b0e26=_0x1fa189;_0x55f8f5(_0x848fec),_0x4caf9c[_0x3b0e26(0x1f6)]=_0x848fec[_0x3b0e26(0x259)][_0x3b0e26(0x20c)](_0x145fa4=>{_0x182251(_0x145fa4);});}),()=>{const _0x5e3ec5=_0x1fa189;var _0x97553e;(_0x97553e=_0x4caf9c[_0x5e3ec5(0x1f6)])==null||_0x97553e[_0x5e3ec5(0x1f5)](),_0x4caf9c[_0x5e3ec5(0x1f6)]=null;}),[_0x3fcceb,_0x3be27a]),_0x3f87e0?_0x45dd85(_0x4d4f60,{'align':_0x1fa189(0x21f),'disabled':_0x20a899===c[_0x1fa189(0x21e)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x45dd85(Re,{'status':_0x20a899,'coordinator':_0x3f87e0}),'children':_0x45dd85(_0x1fa189(0x1f3),{'className':_0x290227(_0x1fa189(0x228),{'univer-cursor-not-allowed':_0x20a899===c[_0x1fa189(0x21e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20a899!==c[_0x1fa189(0x21e)]}),'type':_0x1fa189(0x1f3),'children':_0x45dd85(W,{'className':_0x1fa189(0x1fc)})})}):null;}function Re(_0x139a0f){const _0x179ce1=_0x45a5ad,{status:_0x1b6c83,coordinator:_0x42179d}=_0x139a0f;switch(_0x1b6c83){case c[_0x179ce1(0x283)]:return _0x45dd85($e,{'coordinator':_0x42179d});case c['FOLLOWING']:return _0x45dd85(xe,{'coordinator':_0x42179d});case c[_0x179ce1(0x20d)]:return _0x45dd85(Pe,{'coordinator':_0x42179d});case c[_0x179ce1(0x21e)]:return _0x45dd85(Te,{});case c[_0x179ce1(0x25e)]:return _0x45dd85(Ae,{'coordinator':_0x42179d});default:return null;}}function _0x2562(_0x537bfb,_0x15b2e9){_0x537bfb=_0x537bfb-0x1f2;const _0x27b39c=_0x27b3();let _0x2562fb=_0x27b39c[_0x537bfb];return _0x2562fb;}function $e(_0x308557){const _0x1b576d=_0x45a5ad,{coordinator:_0x53bd43}=_0x308557;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x1b576d(0x20e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x45dd85(_0x5dff14,{'onClick':()=>_0x53bd43[_0x1b576d(0x234)](),'children':_0x1b576d(0x297)})]});}function xe(_0x140436){const _0x2f6de1=_0x45a5ad,{coordinator:_0x5b8e3a}=_0x140436;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x2f6de1(0x20e),{'className':_0x2f6de1(0x24a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x45dd85(_0x5dff14,{'onClick':()=>_0x5b8e3a[_0x2f6de1(0x203)](),'children':_0x2f6de1(0x24d)})]});}function Pe(_0x567fd4){const _0x5dca20=_0x45a5ad,{coordinator:_0x51e76f}=_0x567fd4;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x5dca20(0x20e),{'className':_0x5dca20(0x24a),'children':_0x5dca20(0x27a)}),_0x45dd85(_0x5dff14,{'variant':_0x5dca20(0x247),'onClick':()=>_0x51e76f['startFollowing'](),'children':_0x5dca20(0x25f)})]});}function Ae(_0x3d71e5){const _0x5f0694=_0x45a5ad,{coordinator:_0xb17ca7}=_0x3d71e5;return _0x55328e(_0x481167,{'children':[_0x45dd85(_0x5f0694(0x20e),{'className':_0x5f0694(0x24a),'children':_0x5f0694(0x212)}),_0x45dd85(_0x5dff14,{'variant':_0x5f0694(0x223),'onClick':()=>_0xb17ca7[_0x5f0694(0x226)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3b7ae6=_0x45a5ad;return _0x45dd85(_0x481167,{'children':_0x3b7ae6(0x24c)});}var Fe=Object[_0x45a5ad(0x255)],He=(_0x5b09be,_0x9f53e2,_0x29da23,_0x49a5c5)=>{const _0xea1fd8=_0x45a5ad;for(var _0x3eb7ea=_0x49a5c5>0x1?void 0x0:_0x49a5c5?Fe(_0x9f53e2,_0x29da23):_0x9f53e2,_0x42d386=_0x5b09be[_0xea1fd8(0x246)]-0x1,_0x372432;_0x42d386>=0x0;_0x42d386--)(_0x372432=_0x5b09be[_0x42d386])&&(_0x3eb7ea=_0x372432(_0x3eb7ea)||_0x3eb7ea);return _0x3eb7ea;},A=(_0x45fe5c,_0x11f2a2)=>(_0x1a7ba3,_0x138385)=>_0x11f2a2(_0x1a7ba3,_0x138385,_0x45fe5c);let m=class extends _0x1cac0a{constructor(_0x537918,_0x3b4dd9){const _0x37bbb0=_0x45a5ad;super(),this[_0x37bbb0(0x200)]=_0x537918,this[_0x37bbb0(0x28c)]=_0x3b4dd9,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4f383c=_0x45a5ad;this[_0x4f383c(0x252)](this[_0x4f383c(0x28c)][_0x4f383c(0x211)](_0x264092[_0x4f383c(0x248)],()=>_0x286ddd(Le,this[_0x4f383c(0x200)])));}};m=He([A(0x0,_0x24ac51(_0x37149b)),A(0x1,_0x1e1f8c)],m);const ye=_0x45a5ad(0x240),T={};var Ue=Object[_0x45a5ad(0x255)],Ve=(_0x5485d9,_0x32e11f,_0x1aceaf,_0xe1a468)=>{const _0x53f61f=_0x45a5ad;for(var _0x36a976=_0xe1a468>0x1?void 0x0:_0xe1a468?Ue(_0x32e11f,_0x1aceaf):_0x32e11f,_0x5c7034=_0x5485d9[_0x53f61f(0x246)]-0x1,_0x2e165a;_0x5c7034>=0x0;_0x5c7034--)(_0x2e165a=_0x5485d9[_0x5c7034])&&(_0x36a976=_0x2e165a(_0x36a976)||_0x36a976);return _0x36a976;},je=(_0xf7350c,_0x4918fd)=>(_0x4f3fa5,_0x6e9748)=>_0x4918fd(_0x4f3fa5,_0x6e9748,_0xf7350c);let I=class extends _0x1cac0a{constructor(_0x404c04){const _0x181dc3=_0x45a5ad;super(),this[_0x181dc3(0x27d)]=_0x404c04,this[_0x181dc3(0x26a)]();}[_0x45a5ad(0x26a)](){const _0x137add=_0x45a5ad;[_0x5cee16['id'],_0x3c74b3['id'],_0x2270dd['id']][_0x137add(0x1f4)](_0x278755=>{const _0x54ec9a=_0x137add;this[_0x54ec9a(0x252)](this['_liveShareService']['registerSharedOperation'](_0x278755));});}};I=Ve([je(0x0,_0x24ac51(L))],I);var Me=Object['defineProperty'],ke=Object[_0x45a5ad(0x255)],Ge=(_0x346ffa,_0x266af1,_0x48d2dd)=>_0x266af1 in _0x346ffa?Me(_0x346ffa,_0x266af1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48d2dd}):_0x346ffa[_0x266af1]=_0x48d2dd,We=(_0x22abef,_0x5f0cc5,_0x1c9b64,_0x4d949c)=>{const _0x3750a1=_0x45a5ad;for(var _0x5effe4=_0x4d949c>0x1?void 0x0:_0x4d949c?ke(_0x5f0cc5,_0x1c9b64):_0x5f0cc5,_0x866255=_0x22abef[_0x3750a1(0x246)]-0x1,_0x4e9538;_0x866255>=0x0;_0x866255--)(_0x4e9538=_0x22abef[_0x866255])&&(_0x5effe4=_0x4e9538(_0x5effe4)||_0x5effe4);return _0x5effe4;},F=(_0x3af2f1,_0x198a5b)=>(_0x5ea0fb,_0x4d6562)=>_0x198a5b(_0x5ea0fb,_0x4d6562,_0x3af2f1),B=(_0x120e5c,_0xf36370,_0x4e894e)=>Ge(_0x120e5c,typeof _0xf36370!=_0x45a5ad(0x25b)?_0xf36370+'':_0xf36370,_0x4e894e);const Ye=_0x45a5ad(0x25c);let b=class extends _0x3bdc1a{constructor(_0x35a3df=T,_0x40ea9c,_0xbfe962){const _0xe947ee=_0x45a5ad;super(),this['_config']=_0x35a3df,this[_0xe947ee(0x200)]=_0x40ea9c,this[_0xe947ee(0x225)]=_0xbfe962;const {..._0x4a7572}=_0x468e5c({},T,this[_0xe947ee(0x1f9)]);this[_0xe947ee(0x225)][_0xe947ee(0x217)](ye,_0x4a7572);}['onStarting'](){const _0x1a8ad7=_0x45a5ad;_0x306653(this[_0x1a8ad7(0x200)],_0x2e4e88([[L],[S],[I],[m]],this[_0x1a8ad7(0x1f9)][_0x1a8ad7(0x209)])),_0xa73248(this[_0x1a8ad7(0x200)],[[I]]);}['onRendered'](){const _0x3096e3=_0x45a5ad;_0xa73248(this[_0x3096e3(0x200)],[[m]]);}};B(b,_0x45a5ad(0x23a),_0x483ab7[_0x45a5ad(0x222)]),B(b,_0x45a5ad(0x293),Ye),b=We([_0x13afb3(_0x2cd52a),F(0x1,_0x24ac51(_0x37149b)),F(0x2,_0x243378)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0xedc892=_0x3cc7;(function(_0x4b9575,_0x1e2f72){const _0x20b3c8=_0x3cc7,_0x195cb1=_0x4b9575();while(!![]){try{const _0x4c3ef0=parseInt(_0x20b3c8(0x23d))/0x1+-parseInt(_0x20b3c8(0x20d))/0x2*(-parseInt(_0x20b3c8(0x232))/0x3)+parseInt(_0x20b3c8(0x1ea))/0x4+-parseInt(_0x20b3c8(0x1fe))/0x5*(parseInt(_0x20b3c8(0x251))/0x6)+-parseInt(_0x20b3c8(0x211))/0x7+-parseInt(_0x20b3c8(0x1eb))/0x8+-parseInt(_0x20b3c8(0x222))/0x9*(parseInt(_0x20b3c8(0x1d9))/0xa);if(_0x4c3ef0===_0x1e2f72)break;else _0x195cb1['push'](_0x195cb1['shift']());}catch(_0x42798e){_0x195cb1['push'](_0x195cb1['shift']());}}}(_0x348f,0x32e99));var J=Object[_0xedc892(0x21e)],K=(_0x2d6677,_0x258928,_0x1f0849)=>_0x258928 in _0x2d6677?J(_0x2d6677,_0x258928,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f0849}):_0x2d6677[_0x258928]=_0x1f0849,u=(_0x9b796b,_0x345226,_0x4fb5d3)=>K(_0x9b796b,typeof _0x345226!=_0xedc892(0x23b)?_0x345226+'':_0x345226,_0x4fb5d3);import{Disposable as _0x2c6245,toDisposable as _0x370c9d,IUniverInstanceService as _0xe4df5a,Inject as _0x13d23a,Injector as _0x10288a,IConfigService as _0x256701,ICommandService as _0x429288,RxDisposable as _0x24c185,UniverInstanceType as _0x380b27,DisposableCollection as _0x3778d7,CommandType as _0x26e63e,DependentOn as _0xb36d0e,Plugin as _0x12b31b,merge as _0x5e76a6,registerDependencies as _0x267437,mergeOverrideWithDependencies as _0x23228f,touchDependencies as _0x8c5d0e}from'@univerjs/core';import{useDependency as _0x581717,useObservable as _0x142671,IUIPartsService as _0x53fcdb,BuiltInUIPart as _0x55d8d3,connectInjector as _0xe163e5}from'@univerjs/ui';import{jsx as _0x225d4d,jsxs as _0x11166e,Fragment as _0x53d828}from'react/jsx-runtime';import{Dropdown as _0x5db040,clsx as _0x51da1a,Button as _0x5bb715}from'@univerjs/design';import{useRef as _0x28ff40,createElement as _0x2f2ab1,forwardRef as _0x34a321,useState as _0x4f5850,useEffect as _0x25bbaa}from'react';import{CollaborationEvent as _0x44628f,parseProtocolChangeset as _0x3b350d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x54f713,SessionStatus as _0x3c705c,UniverCollaborationClientPlugin as _0x475f3e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b4527,SetWorksheetActiveOperation as _0x54cb8d}from'@univerjs/sheets';import{BehaviorSubject as _0x132971,Subject as _0x23200b}from'rxjs';import{takeUntil as _0x56fcb7,throttleTime as _0x557fbb}from'rxjs/operators';import{SetZoomRatioOperation as _0x45b804,SetScrollOperation as _0x111b22}from'@univerjs/sheets-ui';function k({ref:_0x42484b,..._0x522a45}){const _0x3c2910=_0xedc892,{icon:_0x5cd619,id:_0x5e6b71,className:_0x551552,extend:_0x235c6d,..._0x1436d9}=_0x522a45,_0x557645=(_0x3c2910(0x25e)+_0x5e6b71+'\x20'+(_0x551552||''))[_0x3c2910(0x25b)](),_0x1fb891=_0x28ff40('_'+Oe());return G(_0x5cd619,''+_0x5e6b71,{'defIds':_0x5cd619[_0x3c2910(0x262)],'idSuffix':_0x1fb891[_0x3c2910(0x213)]},{'ref':_0x42484b,'className':_0x557645,..._0x1436d9},_0x235c6d);}function G(_0x5a4cde,_0x17a6ba,_0x2fda6b,_0x1b1e65,_0x2f2ab7){const _0x270390=_0xedc892;return _0x2f2ab1(_0x5a4cde[_0x270390(0x252)],{'key':_0x17a6ba,...be(_0x5a4cde,_0x2fda6b,_0x2f2ab7),..._0x1b1e65},(Ee(_0x5a4cde,_0x2fda6b)[_0x270390(0x276)]||[])[_0x270390(0x1e3)]((_0x150884,_0x2c3cea)=>G(_0x150884,_0x17a6ba+'-'+_0x5a4cde[_0x270390(0x252)]+'-'+_0x2c3cea,_0x2fda6b,void 0x0,_0x2f2ab7)));}function be(_0x2711a1,_0x3c2b6b,_0x56ca35){const _0x11d003=_0xedc892,_0x3999fb={..._0x2711a1['attrs']};_0x56ca35!=null&&_0x56ca35[_0x11d003(0x1ed)]&&_0x3999fb[_0x11d003(0x1db)]===_0x11d003(0x1ed)&&(_0x3999fb[_0x11d003(0x1db)]=_0x56ca35['colorChannel1']),_0x2711a1['tag']===_0x11d003(0x22c)&&_0x3999fb['id']&&(_0x3999fb['id']=_0x3999fb['id']+_0x3c2b6b['idSuffix']),Object[_0x11d003(0x223)](_0x3999fb)[_0x11d003(0x22a)](([_0x432074,_0x58f348])=>{const _0x482981=_0x11d003;_0x432074==='mask'&&typeof _0x58f348==_0x482981(0x233)&&(_0x3999fb[_0x432074]=_0x58f348[_0x482981(0x248)](/url\(#(.*)\)/,_0x482981(0x1ff)+_0x3c2b6b[_0x482981(0x25d)]+')'));});const {defIds:_0x5ee9c0}=_0x3c2b6b;return!_0x5ee9c0||_0x5ee9c0['length']===0x0||(_0x2711a1[_0x11d003(0x252)]==='use'&&_0x3999fb[_0x11d003(0x1e4)]&&(_0x3999fb[_0x11d003(0x1e4)]=_0x3999fb[_0x11d003(0x1e4)]+_0x3c2b6b[_0x11d003(0x25d)]),Object[_0x11d003(0x223)](_0x3999fb)[_0x11d003(0x22a)](([_0x15e3c3,_0x46515e])=>{const _0x432e48=_0x11d003;typeof _0x46515e==_0x432e48(0x233)&&(_0x3999fb[_0x15e3c3]=_0x46515e[_0x432e48(0x248)](/url\(#(.*)\)/,_0x432e48(0x1ff)+_0x3c2b6b[_0x432e48(0x25d)]+')'));})),_0x3999fb;}function Ee(_0x4ef108,_0x468f1b){const _0xd9ac62=_0xedc892;var _0x4642b6;const {defIds:_0x47faf8}=_0x468f1b;return!_0x47faf8||_0x47faf8[_0xd9ac62(0x230)]===0x0?_0x4ef108:_0x4ef108[_0xd9ac62(0x252)]==='defs'&&((_0x4642b6=_0x4ef108[_0xd9ac62(0x276)])!=null&&_0x4642b6['length'])?{..._0x4ef108,'children':_0x4ef108['children'][_0xd9ac62(0x1e3)](_0x157840=>typeof _0x157840[_0xd9ac62(0x1e7)]['id']=='string'&&_0x47faf8&&_0x47faf8[_0xd9ac62(0x255)](_0x157840[_0xd9ac62(0x1e7)]['id'])?{..._0x157840,'attrs':{..._0x157840[_0xd9ac62(0x1e7)],'id':_0x157840['attrs']['id']+_0x468f1b['idSuffix']}}:_0x157840)}:_0x4ef108;}function Oe(){const _0x5ac28c=_0xedc892;return Math[_0x5ac28c(0x21c)]()[_0x5ac28c(0x22d)](0x24)[_0x5ac28c(0x277)](0x2,0x8);}k[_0xedc892(0x250)]=_0xedc892(0x26d);const we={'tag':_0xedc892(0x239),'attrs':{'xmlns':_0xedc892(0x23e),'fill':_0xedc892(0x1fb),'viewBox':_0xedc892(0x1e1),'width':'1em','height':'1em'},'children':[{'tag':_0xedc892(0x202),'attrs':{'fill':_0xedc892(0x216),'d':_0xedc892(0x264)}},{'tag':_0xedc892(0x202),'attrs':{'fill':_0xedc892(0x216),'d':_0xedc892(0x257),'fillRule':_0xedc892(0x263),'clipRule':_0xedc892(0x263)}}]},W=_0x34a321(function(_0x17bb7c,_0x5f2001){const _0x3a2b9e=_0xedc892;return _0x2f2ab1(k,Object[_0x3a2b9e(0x1f1)]({},_0x17bb7c,{'id':_0x3a2b9e(0x256),'ref':_0x5f2001,'icon':we}));});W['displayName']=_0xedc892(0x1e0);class L extends _0x2c6245{constructor(){const _0x2e6d12=_0xedc892;super(...arguments),u(this,_0x2e6d12(0x1ef),new Set()),u(this,_0x2e6d12(0x1cf),new Set());}[_0xedc892(0x22e)](_0x55c6b7){const _0x58ff75=_0xedc892;return this['_sharedOperations'][_0x58ff75(0x27b)](_0x55c6b7),_0x370c9d(()=>this[_0x58ff75(0x1ef)][_0x58ff75(0x273)](_0x55c6b7));}[_0xedc892(0x1e5)](_0x7910f){const _0x487efd=_0xedc892;return this['_reporters'][_0x487efd(0x27b)](_0x7910f),_0x370c9d(()=>this[_0x487efd(0x1cf)][_0x487efd(0x273)](_0x7910f));}['shouldShareOperation'](_0x5e58e3){const _0x1fd48b=_0xedc892;return this[_0x1fd48b(0x1ef)][_0x1fd48b(0x1cd)](_0x5e58e3);}['getInitialStates'](_0x5ac394){const _0x4679af=_0xedc892;return Array[_0x4679af(0x228)](this[_0x4679af(0x1cf)])[_0x4679af(0x1e3)](_0x582ff4=>_0x582ff4(_0x5ac394));}}var Ne=Object[_0xedc892(0x274)],Y=(_0x1b5711,_0x569921,_0x4d0359,_0x30c73f)=>{const _0x59326b=_0xedc892;for(var _0x32a288=_0x30c73f>0x1?void 0x0:_0x30c73f?Ne(_0x569921,_0x4d0359):_0x569921,_0xf83041=_0x1b5711[_0x59326b(0x230)]-0x1,_0x43f197;_0xf83041>=0x0;_0xf83041--)(_0x43f197=_0x1b5711[_0xf83041])&&(_0x32a288=_0x43f197(_0x32a288)||_0x32a288);return _0x32a288;},_=(_0x1ee33d,_0x45831d)=>(_0x108768,_0x28a48d)=>_0x45831d(_0x108768,_0x28a48d,_0x1ee33d);let S=class extends _0x24c185{constructor(_0x3eab96,_0x960cb1,_0x263474){const _0x1ac566=_0xedc892;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3eab96,this[_0x1ac566(0x1fa)]=_0x960cb1,this[_0x1ac566(0x26e)]=_0x263474,this[_0x1ac566(0x258)]());}async[_0xedc892(0x271)](_0x165e6d){const _0x409167=_0xedc892;return this[_0x409167(0x249)][_0x409167(0x1cd)](_0x165e6d)||await this['_startLiveShareCoordinator'](_0x165e6d),this[_0x409167(0x249)]['get'](_0x165e6d);}[_0xedc892(0x22f)](_0x914c06){const _0x37d5ec=_0xedc892;var _0x5427b2;return(_0x5427b2=this['_entities'][_0x37d5ec(0x269)](_0x914c06))!=null?_0x5427b2:null;}[_0xedc892(0x258)](){const _0x454741=_0xedc892;this[_0x454741(0x229)][_0x454741(0x1e6)](_0x380b27[_0x454741(0x1d8)])[_0x454741(0x20f)](_0x56fcb7(this[_0x454741(0x1f6)]))[_0x454741(0x1d7)](async _0x10c949=>{const _0x402939=_0x454741,_0x5a7777=_0x10c949[_0x402939(0x20a)]();this[_0x402939(0x249)][_0x402939(0x1cd)](_0x5a7777)||this[_0x402939(0x208)](_0x5a7777);}),this['_univerInstanceService'][_0x454741(0x23c)](_0x380b27[_0x454741(0x1d8)])[_0x454741(0x20f)](_0x56fcb7(this[_0x454741(0x1f6)]))[_0x454741(0x1d7)](_0x4870ba=>{const _0x2a9375=_0x454741,_0x3cc4da=_0x4870ba[_0x2a9375(0x20a)](),_0xd29391=this[_0x2a9375(0x249)]['get'](_0x3cc4da);_0xd29391==null||_0xd29391['dispose']();});}async['_startLiveShareCoordinator'](_0x18fe8d){const _0x3acc0a=_0xedc892,_0x4932df=await this['_collabSessionService'][_0x3acc0a(0x1fc)](_0x18fe8d),_0x5853ef=this['_injector'][_0x3acc0a(0x203)](N,_0x18fe8d,_0x4932df);return _0x5853ef[_0x3acc0a(0x21d)](),this[_0x3acc0a(0x249)][_0x3acc0a(0x210)](_0x18fe8d,_0x5853ef),_0x5853ef;}};S=Y([_(0x0,_0xe4df5a),_(0x1,_0x13d23a(_0x10288a)),_(0x2,_0x13d23a(_0x54f713))],S);var c=(_0x329967=>(_0x329967['OFFLINE']='offline',_0x329967[_0xedc892(0x27a)]=_0xedc892(0x200),_0x329967[_0xedc892(0x1e8)]=_0xedc892(0x201),_0x329967[_0xedc892(0x259)]='not-following',_0x329967['PRESENTING']='presenting',_0x329967))(c||{});const Ce=_0xedc892(0x231),De=0xc8;let N=class extends _0x24c185{constructor(_0x28f087,_0x39fca6,_0x40fbba,_0x5a8251,_0x2790fb){const _0x122c12=_0xedc892;super(),u(this,_0x122c12(0x1e2),new _0x132971('idle')),u(this,_0x122c12(0x21f),this[_0x122c12(0x1e2)][_0x122c12(0x226)]()),u(this,_0x122c12(0x258),!0x1),u(this,_0x122c12(0x270),null),u(this,'_presenter',null),(this[_0x122c12(0x21a)]=_0x28f087,this[_0x122c12(0x265)]=_0x39fca6,this[_0x122c12(0x219)]=_0x40fbba,this[_0x122c12(0x268)]=_0x5a8251,this['_commandService']=_0x2790fb);}get[_0xedc892(0x1d3)](){const _0x467a10=_0xedc892;return this[_0x467a10(0x1e2)][_0x467a10(0x253)]();}['dispose'](){const _0x5722e9=_0xedc892;var _0x5eb3aa;(_0x5eb3aa=this[_0x5722e9(0x270)])==null||_0x5eb3aa[_0x5722e9(0x25a)](),this['_status$']['next'](_0x5722e9(0x200)),this['_status$']['complete']();}[_0xedc892(0x261)](){const _0x262022=_0xedc892;return this[_0x262022(0x1d3)];}['init'](){const _0xb9b739=_0xedc892;this[_0xb9b739(0x258)]||(this[_0xb9b739(0x258)]=!0x0,this[_0xb9b739(0x265)][_0xb9b739(0x1ce)][_0xb9b739(0x20f)](_0x56fcb7(this['dispose$']))['subscribe'](_0x19b6cd=>{const _0x18a384=_0xb9b739;switch(_0x19b6cd){case _0x3c705c[_0x18a384(0x242)]:this[_0x18a384(0x275)]();break;case _0x3c705c['ONLINE']:this[_0x18a384(0x266)]();break;}}),this[_0xb9b739(0x265)][_0xb9b739(0x227)]['pipe'](_0x56fcb7(this[_0xb9b739(0x1f6)]))[_0xb9b739(0x1d7)](_0x7da16a=>{const _0xb405e3=_0xb9b739,{eventID:_0x25eb2d}=_0x7da16a;switch(_0x25eb2d){case _0x44628f[_0xb405e3(0x1f7)]:this['_handleNewHost'](_0x7da16a);break;case _0x44628f[_0xb405e3(0x25f)]:this[_0xb405e3(0x1d5)](_0x7da16a);break;case _0x44628f[_0xb405e3(0x1d2)]:this[_0xb405e3(0x24d)]();break;case _0x44628f[_0xb405e3(0x24c)]:this[_0xb405e3(0x218)](_0x7da16a);break;}}));}[_0xedc892(0x21b)](){const _0x57db0c=_0xedc892;this['_collabSession']['send']({'eventID':_0x44628f[_0x57db0c(0x1f9)],'data':{'unitID':this[_0x57db0c(0x21a)],'userID':this[_0x57db0c(0x265)][_0x57db0c(0x1f8)]()}},this['_unitID']);}[_0xedc892(0x247)](){const _0x44434b=_0xedc892;this[_0x44434b(0x1d3)]===_0x44434b(0x225)&&(this[_0x44434b(0x1e2)][_0x44434b(0x1dc)](_0x44434b(0x200)),this[_0x44434b(0x265)][_0x44434b(0x26c)]({'eventID':_0x44628f['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x44434b(0x21a)]));}[_0xedc892(0x220)](){const _0x326467=_0xedc892;this[_0x326467(0x1d3)]==='not-following'&&(this[_0x326467(0x1e2)][_0x326467(0x1dc)](_0x326467(0x201)),this[_0x326467(0x22b)]());}[_0xedc892(0x1ec)](){const _0x148f64=_0xedc892;this[_0x148f64(0x1d3)]==='following'&&this[_0x148f64(0x224)]();}['_handleNewHost'](_0x4bf851){const _0x510927=_0xedc892,{presenter:_0x32d6dc}=_0x4bf851['data'],_0x203789=this[_0x510927(0x265)][_0x510927(0x1f8)]();this[_0x510927(0x221)]=_0x32d6dc,_0x32d6dc===_0x203789?(this[_0x510927(0x224)](),this['_startPresenting']()):this[_0x510927(0x1d3)]!==_0x510927(0x23f)&&(this[_0x510927(0x1da)](),this[_0x510927(0x22b)]());}['_fetchOperations'](){const _0x2e6d51=_0xedc892,_0x85475c={'eventID':_0x44628f['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e6d51(0x265)][_0x2e6d51(0x26c)](_0x85475c,this[_0x2e6d51(0x21a)]);}[_0xedc892(0x24d)](){const _0x4f0243=_0xedc892;this[_0x4f0243(0x221)]=null,this[_0x4f0243(0x1d3)]!==_0x4f0243(0x225)&&this[_0x4f0243(0x20c)]();}[_0xedc892(0x218)](_0x1e1cc1){const _0xd5d4dd=_0xedc892;if(this['_status']===_0xd5d4dd(0x201)&&this[_0xd5d4dd(0x221)]===_0x1e1cc1[_0xd5d4dd(0x244)][_0xd5d4dd(0x260)]){const _0x5a3f7b=_0x3b350d(_0x1e1cc1[_0xd5d4dd(0x244)])[_0xd5d4dd(0x26f)][_0xd5d4dd(0x1f5)]()[_0xd5d4dd(0x212)](_0xb17f2=>_0xb17f2['id']===_0x2b4527['id']);if(_0x5a3f7b){const _0x32bb56=_0x5a3f7b[_0xd5d4dd(0x1e9)]['unitId'],_0x2fc235=_0x5a3f7b[_0xd5d4dd(0x1e9)][_0xd5d4dd(0x207)]['id'];setTimeout(()=>{const _0x100287=_0xd5d4dd;this[_0x100287(0x25c)][_0x100287(0x209)](_0x54cb8d['id'],{'unitId':_0x32bb56,'subUnitId':_0x2fc235},{'fromCollab':!0x0});});}}}[_0xedc892(0x1d0)](){const _0x1efefc=_0xedc892;this[_0x1efefc(0x1e2)]['next'](_0x1efefc(0x225));const _0x25344d=new Map(),_0x30b57e=this[_0x1efefc(0x270)]=new _0x3778d7();_0x30b57e['add'](_0x370c9d(()=>{const _0x32cdef=_0x1efefc;_0x25344d[_0x32cdef(0x22a)](_0x5bc67a=>_0x5bc67a[_0x32cdef(0x215)]()),_0x25344d[_0x32cdef(0x27c)]();})),_0x30b57e[_0x1efefc(0x27b)](this[_0x1efefc(0x25c)][_0x1efefc(0x24e)](_0x4b0e85=>{const _0x201f35=_0x1efefc;var _0x3615b7;if(_0x4b0e85['type']!==_0x26e63e[_0x201f35(0x24a)]||!this['_liveShareService'][_0x201f35(0x1f2)](_0x4b0e85['id']))return;const {id:_0x49bf64}=_0x4b0e85;let _0x415fa7;_0x25344d['has'](_0x49bf64)?_0x415fa7=_0x25344d[_0x201f35(0x269)](_0x49bf64):(_0x415fa7=new _0x23200b(),_0x25344d[_0x201f35(0x210)](_0x49bf64,_0x415fa7),_0x415fa7[_0x201f35(0x20f)](_0x557fbb((_0x3615b7=this[_0x201f35(0x219)][_0x201f35(0x236)](Ce))!=null?_0x3615b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x201f35(0x1d7)](_0x371c6b=>{const _0x98b4ac=_0x201f35;this[_0x98b4ac(0x265)]['send']({'eventID':_0x44628f[_0x98b4ac(0x25f)],'data':{'unitID':this[_0x98b4ac(0x21a)],'operations':{[_0x371c6b['id']]:{'id':_0x371c6b['id'],'params':JSON[_0x98b4ac(0x254)](_0x371c6b[_0x98b4ac(0x1e9)])}}}},this[_0x98b4ac(0x21a)]);})),_0x415fa7[_0x201f35(0x1dc)](_0x4b0e85);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x1efefc(0x22a)](_0x4a7877=>this[_0x1efefc(0x265)][_0x1efefc(0x26c)]({'eventID':_0x44628f[_0x1efefc(0x25f)],'data':{'unitID':this[_0x1efefc(0x21a)],'operations':{[_0x4a7877['id']]:{'id':_0x4a7877['id'],'params':JSON[_0x1efefc(0x254)](_0x4a7877[_0x1efefc(0x1e9)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x41055f=_0xedc892;var _0x4d8c6a;this[_0x41055f(0x1e2)]['next']('idle'),(_0x4d8c6a=this[_0x41055f(0x270)])==null||_0x4d8c6a[_0x41055f(0x25a)](),this[_0x41055f(0x270)]=null;}['_startFollowing'](){const _0x46556f=_0xedc892;var _0x330500;(_0x330500=this['_commandDisposable'])==null||_0x330500[_0x46556f(0x25a)](),this[_0x46556f(0x1e2)]['next'](_0x46556f(0x201));}[_0xedc892(0x20c)](){const _0x190e43=_0xedc892;var _0x17f625;this['_status$'][_0x190e43(0x1dc)](_0x190e43(0x200)),(_0x17f625=this[_0x190e43(0x270)])==null||_0x17f625[_0x190e43(0x25a)](),this[_0x190e43(0x270)]=null;}[_0xedc892(0x224)](){const _0x1c26be=_0xedc892;var _0x5cd923;this[_0x1c26be(0x1e2)][_0x1c26be(0x1dc)](_0x1c26be(0x23f)),(_0x5cd923=this[_0x1c26be(0x270)])==null||_0x5cd923[_0x1c26be(0x25a)]();}[_0xedc892(0x1d5)](_0x21de4a){const _0x1c2ede=_0xedc892;if(['presenting',_0x1c2ede(0x23f),'offline'][_0x1c2ede(0x255)](this[_0x1c2ede(0x1d3)])||!_0x21de4a[_0x1c2ede(0x244)][_0x1c2ede(0x278)]||_0x21de4a[_0x1c2ede(0x244)][_0x1c2ede(0x278)]===this[_0x1c2ede(0x265)][_0x1c2ede(0x1f8)]())return;this[_0x1c2ede(0x1d3)]===_0x1c2ede(0x200)&&this[_0x1c2ede(0x22b)]();const _0x29b9d1=_0x21de4a['data'][_0x1c2ede(0x279)];Object['values'](_0x29b9d1)[_0x1c2ede(0x22a)](_0x8dcc2c=>{const _0x4fe24c=_0x1c2ede;this[_0x4fe24c(0x25c)][_0x4fe24c(0x209)](_0x8dcc2c['id'],_0x8dcc2c[_0x4fe24c(0x1e9)]?JSON[_0x4fe24c(0x245)](_0x8dcc2c['params']):null,{'fromCollab':!0x0});});}[_0xedc892(0x275)](){const _0x33229c=_0xedc892;var _0x5746e4;this[_0x33229c(0x1e2)]['next']('offline'),(_0x5746e4=this[_0x33229c(0x270)])==null||_0x5746e4[_0x33229c(0x25a)]();}[_0xedc892(0x266)](){const _0x277412=_0xedc892;this['_status$'][_0x277412(0x1dc)](_0x277412(0x200)),this[_0x277412(0x204)]();}};N=Y([_(0x2,_0x256701),_(0x3,_0x13d23a(L)),_(0x4,_0x429288)],N);function Le(){const _0x1ae4a7=_0xedc892,_0x5e5ceb=_0x581717(S),_0xa0e5b0=_0x581717(_0xe4df5a),_0x4c7a0b=_0x142671(()=>_0xa0e5b0[_0x1ae4a7(0x24f)](_0x380b27[_0x1ae4a7(0x1d8)]),void 0x0,!0x1,[]),[_0x1ed8c7,_0xf78217]=_0x4f5850(null),[_0x378e59,_0x4a680a]=_0x4f5850(c[_0x1ae4a7(0x27a)]),_0xaab986=_0x28ff40(null);return _0x25bbaa(()=>(_0x4c7a0b&&_0x5e5ceb[_0x1ae4a7(0x271)](_0x4c7a0b[_0x1ae4a7(0x20a)]())[_0x1ae4a7(0x23a)](_0xe99958=>{const _0x38b61f=_0x1ae4a7;_0xf78217(_0xe99958),_0xaab986[_0x38b61f(0x213)]=_0xe99958[_0x38b61f(0x21f)]['subscribe'](_0x43e0b6=>{_0x4a680a(_0x43e0b6);});}),()=>{const _0x197986=_0x1ae4a7;var _0x422a5e;(_0x422a5e=_0xaab986['current'])==null||_0x422a5e[_0x197986(0x206)](),_0xaab986[_0x197986(0x213)]=null;}),[_0x4c7a0b,_0x5e5ceb]),_0x1ed8c7?_0x225d4d(_0x5db040,{'align':_0x1ae4a7(0x267),'disabled':_0x378e59===c[_0x1ae4a7(0x242)],'className':_0x1ae4a7(0x241),'overlay':_0x225d4d(Re,{'status':_0x378e59,'coordinator':_0x1ed8c7}),'children':_0x225d4d(_0x1ae4a7(0x1df),{'className':_0x51da1a(_0x1ae4a7(0x1fd),{'univer-cursor-not-allowed':_0x378e59===c[_0x1ae4a7(0x242)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x378e59!==c[_0x1ae4a7(0x242)]}),'type':'button','children':_0x225d4d(W,{'className':_0x1ae4a7(0x272)})})}):null;}function _0x348f(){const _0x1346e3=['following','path','createInstance','_fetchOperations','onRendered','unsubscribe','sheet','_startLiveShareCoordinator','executeCommand','getUnitId','Start\x20following','_beIdle','552624BnqnTW','_config','pipe','set','2879492boXOAQ','find','current','default','complete','currentColor','Stop\x20following','_handleNewChangeSets','_configService','_unitID','tryStartPresenting','random','init','defineProperty','status$','startFollowing','_presenter','101754nTIEIQ','entries','_stopFollowing','presenting','asObservable','event$','from','_univerInstanceService','forEach','_startFollowing','mask','toString','registerSharedOperation','getLiveShareCoordinatorSync','length','SAME_OPERATION_SHARE_INTERVAL','3ZPnzWM','string','_uiPartsService','pluginName','getConfig','setConfig','live-share.config','svg','then','symbol','getTypeOfUnitDisposed$','343595usPFRp','http://www.w3.org/2000/svg','not-following','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','OFFLINE','PRESENTING','data','parse','You\x27re\x20following\x20the\x20presenter','stopPresenting','replace','_entities','OPERATION','override','NEW_CHANGESETS','_handleTerminate','onCommandExecuted','getCurrentTypeOfUnit$','displayName','6iFVfgo','tag','getValue','stringify','includes','live-share-icon','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','_init','NOT_FOLLOWING','dispose','trim','_commandService','idSuffix','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','memberID','getStatus','defIds','evenodd','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_collabSession','_handleOnline','end','_liveShareService','get','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','UniverIcon','_collabSessionService','mutations','_commandDisposable','getLiveShareCoordinator','univer-size-4','delete','getOwnPropertyDescriptor','_handleOffline','children','substring','presenter','operations','IDLE','add','clear','has','sessionStatus$','_reporters','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','_status','disposeWithMe','_handleOperation','UNIVER_UNKNOWN','subscribe','UNIVER_SHEET','40jGVmPM','_stopPresenting','fill','next','text','Stop\x20presenting','button','LiveShareIcon','0\x200\x2017\x2017','_status$','map','xlink:href','registerInitialStateReporter','getTypeOfUnitAdded$','attrs','FOLLOWING','params','897988JCuaja','347416HMpjHQ','stopFollowing','colorChannel1','_mountLiveShare','_sharedOperations','Present\x20this\x20document','assign','shouldShareOperation','onStarting','You\x27re\x20presenting\x20the\x20document','reverse','dispose$','LIVESHARE_NEW_HOST','getMemberID','LIVESHARE_REQUEST_HOST','_injector','none','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','679300echrBK','url(#$1','idle'];_0x348f=function(){return _0x1346e3;};return _0x348f();}function Re(_0x2ff684){const _0x3be840=_0xedc892,{status:_0x3a93ee,coordinator:_0x488e4b}=_0x2ff684;switch(_0x3a93ee){case c[_0x3be840(0x27a)]:return _0x225d4d($e,{'coordinator':_0x488e4b});case c[_0x3be840(0x1e8)]:return _0x225d4d(xe,{'coordinator':_0x488e4b});case c['NOT_FOLLOWING']:return _0x225d4d(Pe,{'coordinator':_0x488e4b});case c[_0x3be840(0x242)]:return _0x225d4d(Te,{});case c[_0x3be840(0x243)]:return _0x225d4d(Ae,{'coordinator':_0x488e4b});default:return null;}}function $e(_0x457956){const _0x34c4cf=_0xedc892,{coordinator:_0x49f9ed}=_0x457956;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x34c4cf(0x240),{'className':_0x34c4cf(0x26b),'children':_0x34c4cf(0x1f0)}),_0x225d4d(_0x5bb715,{'onClick':()=>_0x49f9ed[_0x34c4cf(0x21b)](),'children':_0x34c4cf(0x26a)})]});}function xe(_0x262333){const _0x36e7b7=_0xedc892,{coordinator:_0x591b10}=_0x262333;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x36e7b7(0x240),{'className':_0x36e7b7(0x26b),'children':_0x36e7b7(0x246)}),_0x225d4d(_0x5bb715,{'onClick':()=>_0x591b10[_0x36e7b7(0x1ec)](),'children':_0x36e7b7(0x217)})]});}function Pe(_0x2bb250){const _0x36d0ce=_0xedc892,{coordinator:_0x26bf61}=_0x2bb250;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x36d0ce(0x240),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x225d4d(_0x5bb715,{'variant':_0x36d0ce(0x1dd),'onClick':()=>_0x26bf61[_0x36d0ce(0x220)](),'children':_0x36d0ce(0x20b)})]});}function Ae(_0x27e2f9){const _0x3bc660=_0xedc892,{coordinator:_0x375be9}=_0x27e2f9;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x3bc660(0x240),{'className':_0x3bc660(0x26b),'children':_0x3bc660(0x1f4)}),_0x225d4d(_0x5bb715,{'variant':_0x3bc660(0x214),'onClick':()=>_0x375be9[_0x3bc660(0x247)](),'children':_0x3bc660(0x1de)})]});}function Te(){return _0x225d4d(_0x53d828,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0xedc892(0x274)],He=(_0x1a1a96,_0x51788a,_0x455f35,_0x3bee38)=>{const _0x229206=_0xedc892;for(var _0x119ecb=_0x3bee38>0x1?void 0x0:_0x3bee38?Fe(_0x51788a,_0x455f35):_0x51788a,_0x29e413=_0x1a1a96[_0x229206(0x230)]-0x1,_0x22d6af;_0x29e413>=0x0;_0x29e413--)(_0x22d6af=_0x1a1a96[_0x29e413])&&(_0x119ecb=_0x22d6af(_0x119ecb)||_0x119ecb);return _0x119ecb;},A=(_0x4471fb,_0x4d04d1)=>(_0x805e00,_0xeb1e1f)=>_0x4d04d1(_0x805e00,_0xeb1e1f,_0x4471fb);let m=class extends _0x2c6245{constructor(_0x5637b0,_0x5dd7bd){const _0x4d8443=_0xedc892;super(),this[_0x4d8443(0x1fa)]=_0x5637b0,this[_0x4d8443(0x234)]=_0x5dd7bd,this[_0x4d8443(0x1ee)]();}[_0xedc892(0x1ee)](){const _0x7d59b2=_0xedc892;this[_0x7d59b2(0x1d4)](this['_uiPartsService']['registerComponent'](_0x55d8d3['HEADER_MENU'],()=>_0xe163e5(Le,this[_0x7d59b2(0x1fa)])));}};m=He([A(0x0,_0x13d23a(_0x10288a)),A(0x1,_0x53fcdb)],m);const ye=_0xedc892(0x238),T={};function _0x3cc7(_0x5f2cf0,_0x4c0bcf){_0x5f2cf0=_0x5f2cf0-0x1cd;const _0x348f79=_0x348f();let _0x3cc76f=_0x348f79[_0x5f2cf0];return _0x3cc76f;}var Ue=Object[_0xedc892(0x274)],Ve=(_0x3e4803,_0x3e4607,_0x130aa9,_0x569e8b)=>{const _0xf0d2cf=_0xedc892;for(var _0x259885=_0x569e8b>0x1?void 0x0:_0x569e8b?Ue(_0x3e4607,_0x130aa9):_0x3e4607,_0x5ee392=_0x3e4803[_0xf0d2cf(0x230)]-0x1,_0x5f2a10;_0x5ee392>=0x0;_0x5ee392--)(_0x5f2a10=_0x3e4803[_0x5ee392])&&(_0x259885=_0x5f2a10(_0x259885)||_0x259885);return _0x259885;},je=(_0x4aabf6,_0x1c2638)=>(_0x402881,_0x393e1d)=>_0x1c2638(_0x402881,_0x393e1d,_0x4aabf6);let I=class extends _0x2c6245{constructor(_0xe4c478){super(),this['_liveShareService']=_0xe4c478,this['_init']();}[_0xedc892(0x258)](){const _0x84dd91=_0xedc892;[_0x45b804['id'],_0x111b22['id'],_0x54cb8d['id']][_0x84dd91(0x22a)](_0x451986=>{const _0x42c5ac=_0x84dd91;this[_0x42c5ac(0x1d4)](this['_liveShareService']['registerSharedOperation'](_0x451986));});}};I=Ve([je(0x0,_0x13d23a(L))],I);var Me=Object[_0xedc892(0x21e)],ke=Object[_0xedc892(0x274)],Ge=(_0x2deeed,_0x12c39d,_0x240a0b)=>_0x12c39d in _0x2deeed?Me(_0x2deeed,_0x12c39d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240a0b}):_0x2deeed[_0x12c39d]=_0x240a0b,We=(_0x517bfd,_0x55554e,_0x388b67,_0x5af153)=>{const _0x30704a=_0xedc892;for(var _0x18cafa=_0x5af153>0x1?void 0x0:_0x5af153?ke(_0x55554e,_0x388b67):_0x55554e,_0x1c32b3=_0x517bfd[_0x30704a(0x230)]-0x1,_0x4707a0;_0x1c32b3>=0x0;_0x1c32b3--)(_0x4707a0=_0x517bfd[_0x1c32b3])&&(_0x18cafa=_0x4707a0(_0x18cafa)||_0x18cafa);return _0x18cafa;},F=(_0x15ccf1,_0x436400)=>(_0x1d6097,_0x54581d)=>_0x436400(_0x1d6097,_0x54581d,_0x15ccf1),B=(_0x5ee4a6,_0x329ff2,_0x1d90c4)=>Ge(_0x5ee4a6,typeof _0x329ff2!=_0xedc892(0x23b)?_0x329ff2+'':_0x329ff2,_0x1d90c4);const Ye=_0xedc892(0x1d1);let b=class extends _0x12b31b{constructor(_0xe53ffb=T,_0x20726b,_0x5baba9){const _0x3082db=_0xedc892;super(),this['_config']=_0xe53ffb,this[_0x3082db(0x1fa)]=_0x20726b,this[_0x3082db(0x219)]=_0x5baba9;const {..._0x59c0f1}=_0x5e76a6({},T,this[_0x3082db(0x20e)]);this[_0x3082db(0x219)][_0x3082db(0x237)](ye,_0x59c0f1);}[_0xedc892(0x1f3)](){const _0x4c3234=_0xedc892;_0x267437(this['_injector'],_0x23228f([[L],[S],[I],[m]],this['_config'][_0x4c3234(0x24b)])),_0x8c5d0e(this[_0x4c3234(0x1fa)],[[I]]);}[_0xedc892(0x205)](){const _0x2a827f=_0xedc892;_0x8c5d0e(this[_0x2a827f(0x1fa)],[[m]]);}};B(b,'type',_0x380b27[_0xedc892(0x1d6)]),B(b,_0xedc892(0x235),Ye),b=We([_0xb36d0e(_0x475f3e),F(0x1,_0x13d23a(_0x10288a)),F(0x2,_0x256701)],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 _0x57e4(){const _0x2421fa=['UniverSheetsUi','SetWorksheetActiveOperation','7796502shTGMm','2BECtYf','6679743EZRsVN','No\x20active\x20workbook\x20found.','get','object','UniverProLiveShare','startColumn','UniverSheetsFacade','@univerjs/sheets','FEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_injector','getId','startRow','IRenderManagerService','@univerjs/core/facade','FUniver','startPresenting','extend','getSheetId','SetScrollOperation','getLiveShareStatus','getActiveWorkbook','LiveShareController','874155JGpDQq','syncExecuteCommand','getRenderById','getActiveSheet','IDLE','7281355BlzpQn','function','getUnitId','getLiveShareCoordinatorSync','stopPresenting','13791024ofPTcx','FRange','UniverCoreFacade','stopFollowing','startFollowing','getStatus','_commandService','LiveShareStatus','3617397zNKPIw','2093880fHqbRT'];_0x57e4=function(){return _0x2421fa;};return _0x57e4();}function _0x9aa9(_0xb5e11a,_0x524d5f){_0xb5e11a=_0xb5e11a-0x66;const _0x57e453=_0x57e4();let _0x9aa939=_0x57e453[_0xb5e11a];return _0x9aa939;}(function(_0x538c00,_0x2d8c43){const _0x4efe5d=_0x9aa9,_0x5c0adb=_0x538c00();while(!![]){try{const _0x19bc62=parseInt(_0x4efe5d(0x81))/0x1*(parseInt(_0x4efe5d(0x69))/0x2)+-parseInt(_0x4efe5d(0x93))/0x3+parseInt(_0x4efe5d(0x94))/0x4+-parseInt(_0x4efe5d(0x86))/0x5+parseInt(_0x4efe5d(0x68))/0x6+-parseInt(_0x4efe5d(0x6a))/0x7+parseInt(_0x4efe5d(0x8b))/0x8;if(_0x19bc62===_0x2d8c43)break;else _0x5c0adb['push'](_0x5c0adb['shift']());}catch(_0x383cea){_0x5c0adb['push'](_0x5c0adb['shift']());}}}(_0x57e4,0xc46f9),function(_0x553643,_0x192fd0){const _0x5df402=_0x9aa9;typeof exports==_0x5df402(0x6d)&&typeof module<'u'?_0x192fd0(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x5df402(0x87)&&define['amd']?define(['@univerjs-pro/live-share','@univerjs/engine-render',_0x5df402(0x71),'@univerjs/sheets-ui','@univerjs/sheets/facade',_0x5df402(0x78)],_0x192fd0):(_0x553643=typeof globalThis<'u'?globalThis:_0x553643||self,_0x192fd0(_0x553643[_0x5df402(0x6e)],_0x553643['UniverEngineRender'],_0x553643['UniverSheets'],_0x553643[_0x5df402(0x66)],_0x553643[_0x5df402(0x70)],_0x553643[_0x5df402(0x8d)]));}(this,function(_0x1cecd8,_0x402c56,_0x3fbcc3,_0x3f3e75,_0x3795ee,_0x7fee08){'use strict';const _0x30f8ab=_0x9aa9;class _0xc43041 extends _0x3795ee[_0x30f8ab(0x8c)]{['_initialize'](_0x267be0,_0x4d3da3,_0x49610b,_0x421520,_0x36b100){const _0x1d78b4=_0x30f8ab,_0x57a711=_0x267be0[_0x1d78b4(0x6c)](_0x1cecd8['LiveShareController']),_0x2c1a29=_0x267be0[_0x1d78b4(0x6c)](_0x402c56[_0x1d78b4(0x77)]),_0x3d6eb7=_0x4d3da3[_0x1d78b4(0x88)](),_0x34d179=_0x4d3da3[_0x1d78b4(0x84)](),_0x2cf1b4=_0x57a711[_0x1d78b4(0x89)](_0x3d6eb7);(_0x2cf1b4==null?void 0x0:_0x2cf1b4[_0x1d78b4(0x90)]())!==_0x1cecd8[_0x1d78b4(0x92)]['PRESENTING']||(_0x49610b['getSheetId']()!==_0x34d179[_0x1d78b4(0x7c)]()&&this[_0x1d78b4(0x91)]['executeCommand'](_0x3fbcc3[_0x1d78b4(0x67)]['id'],{'unitId':_0x3d6eb7,'subUnitId':_0x49610b[_0x1d78b4(0x7c)]()}),!_0x2c1a29[_0x1d78b4(0x83)](_0x3d6eb7))||_0x36b100[_0x1d78b4(0x82)](_0x3f3e75[_0x1d78b4(0x7d)]['id'],{'unitId':_0x4d3da3[_0x1d78b4(0x88)](),'sheetId':_0x49610b[_0x1d78b4(0x7c)](),'sheetViewStartRow':_0x421520[_0x1d78b4(0x76)],'sheetViewStartColumn':_0x421520[_0x1d78b4(0x6f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3795ee[_0x30f8ab(0x8c)][_0x30f8ab(0x7b)](_0xc43041);class _0x1ced37 extends _0x7fee08[_0x30f8ab(0x79)]{[_0x30f8ab(0x7e)](){const _0x5bfd7c=_0x30f8ab;var _0x4fa79e,_0xc31a00;const _0x55f341=this[_0x5bfd7c(0x74)]['get'](_0x1cecd8[_0x5bfd7c(0x80)]),_0x4fcbfd=(_0x4fa79e=this['getActiveWorkbook']())==null?void 0x0:_0x4fa79e[_0x5bfd7c(0x75)]();if(!_0x4fcbfd)throw new Error(_0x5bfd7c(0x6b));const _0x27bdfd=_0x55f341[_0x5bfd7c(0x89)](_0x4fcbfd);return(_0xc31a00=_0x27bdfd==null?void 0x0:_0x27bdfd[_0x5bfd7c(0x90)]())!=null?_0xc31a00:_0x1cecd8[_0x5bfd7c(0x92)][_0x5bfd7c(0x85)];}[_0x30f8ab(0x8f)](){const _0x3da0c3=_0x30f8ab;var _0x1aff5c;const _0x14c7f4=this['_injector'][_0x3da0c3(0x6c)](_0x1cecd8[_0x3da0c3(0x80)]),_0x3d8ac6=(_0x1aff5c=this[_0x3da0c3(0x7f)]())==null?void 0x0:_0x1aff5c[_0x3da0c3(0x75)]();if(!_0x3d8ac6)throw new Error(_0x3da0c3(0x6b));const _0x1683ec=_0x14c7f4[_0x3da0c3(0x89)](_0x3d8ac6);if(!_0x1683ec)throw new Error(_0x3da0c3(0x73));_0x1683ec[_0x3da0c3(0x8f)]();}[_0x30f8ab(0x8e)](){const _0x3e68ac=_0x30f8ab;var _0x4d5ee7;const _0x11c489=this[_0x3e68ac(0x74)][_0x3e68ac(0x6c)](_0x1cecd8[_0x3e68ac(0x80)]),_0x8dd2b=(_0x4d5ee7=this[_0x3e68ac(0x7f)]())==null?void 0x0:_0x4d5ee7['getId']();if(!_0x8dd2b)throw new Error(_0x3e68ac(0x6b));const _0x29a9d6=_0x11c489[_0x3e68ac(0x89)](_0x8dd2b);if(!_0x29a9d6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x29a9d6[_0x3e68ac(0x8e)]();}[_0x30f8ab(0x7a)](){const _0x4ecea7=_0x30f8ab;var _0x46c697;const _0x4a664d=this[_0x4ecea7(0x74)][_0x4ecea7(0x6c)](_0x1cecd8[_0x4ecea7(0x80)]),_0xe4723a=(_0x46c697=this[_0x4ecea7(0x7f)]())==null?void 0x0:_0x46c697['getId']();if(!_0xe4723a)throw new Error(_0x4ecea7(0x6b));const _0x27eefe=_0x4a664d[_0x4ecea7(0x89)](_0xe4723a);if(!_0x27eefe)throw new Error(_0x4ecea7(0x73));_0x27eefe['tryStartPresenting']();}[_0x30f8ab(0x8a)](){const _0x31a4d9=_0x30f8ab;var _0x37809f;const _0x1d861a=this['_injector'][_0x31a4d9(0x6c)](_0x1cecd8[_0x31a4d9(0x80)]),_0x3c5492=(_0x37809f=this['getActiveWorkbook']())==null?void 0x0:_0x37809f[_0x31a4d9(0x75)]();if(!_0x3c5492)throw new Error(_0x31a4d9(0x6b));const _0x2d9bb2=_0x1d861a['getLiveShareCoordinatorSync'](_0x3c5492);if(!_0x2d9bb2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2d9bb2[_0x31a4d9(0x8a)]();}}_0x7fee08[_0x30f8ab(0x79)][_0x30f8ab(0x7b)](_0x1ced37);class _0x313394 extends _0x7fee08[_0x30f8ab(0x72)]{get['LiveShareStatusEnum'](){const _0x4ff01a=_0x30f8ab;return _0x1cecd8[_0x4ff01a(0x92)];}}_0x7fee08[_0x30f8ab(0x72)][_0x30f8ab(0x7b)](_0x313394);}));
1
+ (function(_0x1390e4,_0x31c7d0){const _0x488035=_0x48c8,_0x23e6a6=_0x1390e4();while(!![]){try{const _0x4ea6ca=-parseInt(_0x488035(0xd0))/0x1*(-parseInt(_0x488035(0xc7))/0x2)+-parseInt(_0x488035(0xe6))/0x3+parseInt(_0x488035(0xd3))/0x4+-parseInt(_0x488035(0xcb))/0x5*(-parseInt(_0x488035(0xe8))/0x6)+-parseInt(_0x488035(0xd8))/0x7*(-parseInt(_0x488035(0xe0))/0x8)+-parseInt(_0x488035(0xde))/0x9+-parseInt(_0x488035(0xf3))/0xa*(parseInt(_0x488035(0xce))/0xb);if(_0x4ea6ca===_0x31c7d0)break;else _0x23e6a6['push'](_0x23e6a6['shift']());}catch(_0x158777){_0x23e6a6['push'](_0x23e6a6['shift']());}}}(_0x2f9b,0x51619),function(_0x48ba28,_0x54bbf6){const _0x36e4d0=_0x48c8;typeof exports=='object'&&typeof module<'u'?_0x54bbf6(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define(['@univerjs-pro/live-share',_0x36e4d0(0xc5),_0x36e4d0(0xea),_0x36e4d0(0xda),_0x36e4d0(0xf0),_0x36e4d0(0xdd)],_0x54bbf6):(_0x48ba28=typeof globalThis<'u'?globalThis:_0x48ba28||self,_0x54bbf6(_0x48ba28[_0x36e4d0(0xd1)],_0x48ba28[_0x36e4d0(0xd2)],_0x48ba28[_0x36e4d0(0xca)],_0x48ba28[_0x36e4d0(0xd7)],_0x48ba28[_0x36e4d0(0xe7)],_0x48ba28[_0x36e4d0(0xef)]));}(this,function(_0x201e21,_0x312300,_0x4a88a8,_0x51d2a7,_0x305c4a,_0x1adfb4){'use strict';const _0x1c59b3=_0x48c8;class _0x336e05 extends _0x305c4a['FRange']{[_0x1c59b3(0xc2)](_0x86b451,_0x5587dd,_0x20c909,_0x38fef2,_0x22f8bd){const _0x37234d=_0x1c59b3,_0x2ca311=_0x86b451[_0x37234d(0xdf)](_0x201e21['LiveShareController']),_0x25cfa=_0x86b451[_0x37234d(0xdf)](_0x312300[_0x37234d(0xec)]),_0x4ab110=_0x5587dd['getUnitId'](),_0x578eba=_0x5587dd[_0x37234d(0xcc)](),_0x58e451=_0x2ca311['getLiveShareCoordinatorSync'](_0x4ab110);(_0x58e451==null?void 0x0:_0x58e451[_0x37234d(0xf2)]())!==_0x201e21[_0x37234d(0xc8)][_0x37234d(0xe4)]||(_0x20c909[_0x37234d(0xc1)]()!==_0x578eba[_0x37234d(0xc1)]()&&this[_0x37234d(0xd4)][_0x37234d(0xf1)](_0x4a88a8[_0x37234d(0xc6)]['id'],{'unitId':_0x4ab110,'subUnitId':_0x20c909[_0x37234d(0xc1)]()}),!_0x25cfa[_0x37234d(0xd6)](_0x4ab110))||_0x22f8bd[_0x37234d(0xe2)](_0x51d2a7[_0x37234d(0xcd)]['id'],{'unitId':_0x5587dd['getUnitId'](),'sheetId':_0x20c909['getSheetId'](),'sheetViewStartRow':_0x38fef2['startRow'],'sheetViewStartColumn':_0x38fef2[_0x37234d(0xdc)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x305c4a['FRange'][_0x1c59b3(0xc9)](_0x336e05);class _0x7ec5cb extends _0x1adfb4[_0x1c59b3(0xdb)]{[_0x1c59b3(0xbe)](){const _0x35db08=_0x1c59b3;var _0x2a3c85,_0xa13c7e;const _0x7d8475=this[_0x35db08(0xd5)][_0x35db08(0xdf)](_0x201e21[_0x35db08(0xc3)]),_0x4c8052=(_0x2a3c85=this['getActiveWorkbook']())==null?void 0x0:_0x2a3c85[_0x35db08(0xeb)]();if(!_0x4c8052)throw new Error(_0x35db08(0xe1));const _0x5e5b59=_0x7d8475[_0x35db08(0xc0)](_0x4c8052);return(_0xa13c7e=_0x5e5b59==null?void 0x0:_0x5e5b59['getStatus']())!=null?_0xa13c7e:_0x201e21[_0x35db08(0xc8)]['IDLE'];}[_0x1c59b3(0xe5)](){const _0x290986=_0x1c59b3;var _0x519bb8;const _0x5f2782=this[_0x290986(0xd5)][_0x290986(0xdf)](_0x201e21[_0x290986(0xc3)]),_0x455c8d=(_0x519bb8=this[_0x290986(0xcf)]())==null?void 0x0:_0x519bb8[_0x290986(0xeb)]();if(!_0x455c8d)throw new Error('No\x20active\x20workbook\x20found.');const _0x300b4a=_0x5f2782[_0x290986(0xc0)](_0x455c8d);if(!_0x300b4a)throw new Error(_0x290986(0xee));_0x300b4a['startFollowing']();}[_0x1c59b3(0xe3)](){const _0x1dfa9a=_0x1c59b3;var _0x5d70fe;const _0x119936=this[_0x1dfa9a(0xd5)][_0x1dfa9a(0xdf)](_0x201e21[_0x1dfa9a(0xc3)]),_0x5825d4=(_0x5d70fe=this[_0x1dfa9a(0xcf)]())==null?void 0x0:_0x5d70fe['getId']();if(!_0x5825d4)throw new Error(_0x1dfa9a(0xe1));const _0x2f30a6=_0x119936[_0x1dfa9a(0xc0)](_0x5825d4);if(!_0x2f30a6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2f30a6[_0x1dfa9a(0xe3)]();}[_0x1c59b3(0xe9)](){const _0x12b68f=_0x1c59b3;var _0x809892;const _0x17c088=this['_injector'][_0x12b68f(0xdf)](_0x201e21[_0x12b68f(0xc3)]),_0x47e86a=(_0x809892=this[_0x12b68f(0xcf)]())==null?void 0x0:_0x809892['getId']();if(!_0x47e86a)throw new Error(_0x12b68f(0xe1));const _0x1baa99=_0x17c088[_0x12b68f(0xc0)](_0x47e86a);if(!_0x1baa99)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1baa99[_0x12b68f(0xd9)]();}[_0x1c59b3(0xc4)](){const _0x4c9941=_0x1c59b3;var _0x19c824;const _0x246d6f=this['_injector'][_0x4c9941(0xdf)](_0x201e21['LiveShareController']),_0x2a433b=(_0x19c824=this[_0x4c9941(0xcf)]())==null?void 0x0:_0x19c824[_0x4c9941(0xeb)]();if(!_0x2a433b)throw new Error(_0x4c9941(0xe1));const _0x54e948=_0x246d6f['getLiveShareCoordinatorSync'](_0x2a433b);if(!_0x54e948)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54e948[_0x4c9941(0xc4)]();}}_0x1adfb4['FUniver'][_0x1c59b3(0xc9)](_0x7ec5cb);class _0x3bdd91 extends _0x1adfb4[_0x1c59b3(0xed)]{get[_0x1c59b3(0xbf)](){const _0x3366e7=_0x1c59b3;return _0x201e21[_0x3366e7(0xc8)];}}_0x1adfb4[_0x1c59b3(0xed)][_0x1c59b3(0xc9)](_0x3bdd91);}));function _0x48c8(_0x4a48cc,_0x243c93){_0x4a48cc=_0x4a48cc-0xbe;const _0x2f9b1a=_0x2f9b();let _0x48c819=_0x2f9b1a[_0x4a48cc];return _0x48c819;}function _0x2f9b(){const _0x46b06d=['executeCommand','getStatus','18220FnMjDm','getLiveShareStatus','LiveShareStatusEnum','getLiveShareCoordinatorSync','getSheetId','_initialize','LiveShareController','stopPresenting','@univerjs/engine-render','SetWorksheetActiveOperation','9906qLbsXJ','LiveShareStatus','extend','UniverSheets','296635XxarzL','getActiveSheet','SetScrollOperation','2464RfNPzY','getActiveWorkbook','43JUbbHG','UniverProLiveShare','UniverEngineRender','1725784QzwENV','_commandService','_injector','getRenderById','UniverSheetsUi','77bucnmS','tryStartPresenting','@univerjs/sheets-ui','FUniver','startColumn','@univerjs/core/facade','4423968iXHYGV','get','310936bkXlyh','No\x20active\x20workbook\x20found.','syncExecuteCommand','stopFollowing','PRESENTING','startFollowing','1474626RnZGIV','UniverSheetsFacade','66OEOPxd','startPresenting','@univerjs/sheets','getId','IRenderManagerService','FEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverCoreFacade','@univerjs/sheets/facade'];_0x2f9b=function(){return _0x46b06d;};return _0x2f9b();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1166(_0x1c3e6d,_0x275afc){_0x1c3e6d=_0x1c3e6d-0x194;const _0x439fcf=_0x439f();let _0x116694=_0x439fcf[_0x1c3e6d];return _0x116694;}(function(_0x290cd3,_0x58cdff){const _0x3e5875=_0x1166,_0x96d09d=_0x290cd3();while(!![]){try{const _0xb8a23f=-parseInt(_0x3e5875(0x23e))/0x1+-parseInt(_0x3e5875(0x215))/0x2+-parseInt(_0x3e5875(0x21a))/0x3+parseInt(_0x3e5875(0x241))/0x4*(-parseInt(_0x3e5875(0x1dd))/0x5)+parseInt(_0x3e5875(0x23d))/0x6*(-parseInt(_0x3e5875(0x264))/0x7)+parseInt(_0x3e5875(0x263))/0x8+parseInt(_0x3e5875(0x24d))/0x9;if(_0xb8a23f===_0x58cdff)break;else _0x96d09d['push'](_0x96d09d['shift']());}catch(_0x8e7be){_0x96d09d['push'](_0x96d09d['shift']());}}}(_0x439f,0xe4b20),function(_0x3010be,_0x5a7950){const _0x125bfb=_0x1166;typeof exports=='object'&&typeof module<'u'?_0x5a7950(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x125bfb(0x228)&&define[_0x125bfb(0x26d)]?define([_0x125bfb(0x232),'@univerjs/core',_0x125bfb(0x219),_0x125bfb(0x253),'@univerjs/design',_0x125bfb(0x1e4),_0x125bfb(0x237),'@univerjs-pro/collaboration-client',_0x125bfb(0x24e),'rxjs','rxjs/operators',_0x125bfb(0x198)],_0x5a7950):(_0x3010be=typeof globalThis<'u'?globalThis:_0x3010be||self,_0x5a7950(_0x3010be[_0x125bfb(0x23f)]={},_0x3010be['UniverCore'],_0x3010be[_0x125bfb(0x278)],_0x3010be['React'],_0x3010be['UniverDesign'],_0x3010be[_0x125bfb(0x1e0)],_0x3010be[_0x125bfb(0x275)],_0x3010be['UniverProCollaborationClient'],_0x3010be['UniverSheets'],_0x3010be[_0x125bfb(0x25d)],_0x3010be[_0x125bfb(0x25d)][_0x125bfb(0x277)],_0x3010be[_0x125bfb(0x1e7)]));}(this,function(_0x24d3e6,_0x30a709,_0x99ed13,_0x181f84,_0x816f59,_0x1a9bfc,_0x452ec5,_0x1709cf,_0x10ecdd,_0x311d29,_0x2dbda3,_0x5a189b){'use strict';const _0x2101f2=_0x1166;var _0x109d4b=Object[_0x2101f2(0x1d1)],_0x4cbb03=(_0x201440,_0x3c7721,_0x260a3a)=>_0x3c7721 in _0x201440?_0x109d4b(_0x201440,_0x3c7721,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x260a3a}):_0x201440[_0x3c7721]=_0x260a3a,_0x53718a=(_0x3c9493,_0x566ad4,_0x569c91)=>_0x4cbb03(_0x3c9493,typeof _0x566ad4!=_0x2101f2(0x1f7)?_0x566ad4+'':_0x566ad4,_0x569c91);function _0x37651e({ref:_0x4b7bdf,..._0x17e253}){const _0x1a3be6=_0x2101f2,{icon:_0x4f86f9,id:_0xfe075b,className:_0x2b2d1d,extend:_0x4ebca6,..._0x159982}=_0x17e253,_0x3148fa=(_0x1a3be6(0x1f1)+_0xfe075b+'\x20'+(_0x2b2d1d||''))[_0x1a3be6(0x213)](),_0x10b52d=_0x1a9bfc[_0x1a3be6(0x1ac)]('_'+_0x5bd0b7());return _0x18b97d(_0x4f86f9,''+_0xfe075b,{'defIds':_0x4f86f9[_0x1a3be6(0x20b)],'idSuffix':_0x10b52d[_0x1a3be6(0x254)]},{'ref':_0x4b7bdf,'className':_0x3148fa,..._0x159982},_0x4ebca6);}function _0x18b97d(_0x574bdd,_0x3973fb,_0x4ebcfe,_0x281464,_0xf3cbd1){const _0x12984a=_0x2101f2;return _0x1a9bfc[_0x12984a(0x1da)](_0x574bdd[_0x12984a(0x1d4)],{'key':_0x3973fb,..._0x45419d(_0x574bdd,_0x4ebcfe,_0xf3cbd1),..._0x281464},(_0x13a577(_0x574bdd,_0x4ebcfe)[_0x12984a(0x266)]||[])[_0x12984a(0x1c1)]((_0x484897,_0x645cf5)=>_0x18b97d(_0x484897,_0x3973fb+'-'+_0x574bdd[_0x12984a(0x1d4)]+'-'+_0x645cf5,_0x4ebcfe,void 0x0,_0xf3cbd1)));}function _0x45419d(_0x8db9b8,_0x12519b,_0x2b1899){const _0x3f5a47=_0x2101f2,_0x59fa55={..._0x8db9b8[_0x3f5a47(0x1c8)]};_0x2b1899!=null&&_0x2b1899['colorChannel1']&&_0x59fa55[_0x3f5a47(0x22e)]===_0x3f5a47(0x1a7)&&(_0x59fa55[_0x3f5a47(0x22e)]=_0x2b1899[_0x3f5a47(0x1a7)]),_0x8db9b8[_0x3f5a47(0x1d4)]===_0x3f5a47(0x25f)&&_0x59fa55['id']&&(_0x59fa55['id']=_0x59fa55['id']+_0x12519b['idSuffix']),Object['entries'](_0x59fa55)[_0x3f5a47(0x1d2)](([_0x3473a2,_0x362fee])=>{const _0x215837=_0x3f5a47;_0x3473a2===_0x215837(0x25f)&&typeof _0x362fee==_0x215837(0x255)&&(_0x59fa55[_0x3473a2]=_0x362fee[_0x215837(0x1ec)](/url\(#(.*)\)/,_0x215837(0x249)+_0x12519b[_0x215837(0x250)]+')'));});const {defIds:_0x4f264f}=_0x12519b;return!_0x4f264f||_0x4f264f[_0x3f5a47(0x274)]===0x0||(_0x8db9b8[_0x3f5a47(0x1d4)]===_0x3f5a47(0x201)&&_0x59fa55['xlink:href']&&(_0x59fa55[_0x3f5a47(0x1f6)]=_0x59fa55[_0x3f5a47(0x1f6)]+_0x12519b[_0x3f5a47(0x250)]),Object[_0x3f5a47(0x25c)](_0x59fa55)[_0x3f5a47(0x1d2)](([_0x2416c3,_0x1868a9])=>{const _0x1fa5a=_0x3f5a47;typeof _0x1868a9==_0x1fa5a(0x255)&&(_0x59fa55[_0x2416c3]=_0x1868a9[_0x1fa5a(0x1ec)](/url\(#(.*)\)/,_0x1fa5a(0x249)+_0x12519b['idSuffix']+')'));})),_0x59fa55;}function _0x13a577(_0x2b7d28,_0xd5239f){const _0x44419b=_0x2101f2;var _0x357e85;const {defIds:_0x45323b}=_0xd5239f;return!_0x45323b||_0x45323b[_0x44419b(0x274)]===0x0?_0x2b7d28:_0x2b7d28[_0x44419b(0x1d4)]===_0x44419b(0x1ed)&&((_0x357e85=_0x2b7d28['children'])!=null&&_0x357e85[_0x44419b(0x274)])?{..._0x2b7d28,'children':_0x2b7d28[_0x44419b(0x266)][_0x44419b(0x1c1)](_0x6a8964=>typeof _0x6a8964[_0x44419b(0x1c8)]['id']==_0x44419b(0x255)&&_0x45323b&&_0x45323b[_0x44419b(0x19d)](_0x6a8964[_0x44419b(0x1c8)]['id'])?{..._0x6a8964,'attrs':{..._0x6a8964[_0x44419b(0x1c8)],'id':_0x6a8964[_0x44419b(0x1c8)]['id']+_0xd5239f[_0x44419b(0x250)]}}:_0x6a8964)}:_0x2b7d28;}function _0x5bd0b7(){const _0x2a579c=_0x2101f2;return Math[_0x2a579c(0x1c9)]()[_0x2a579c(0x25a)](0x24)[_0x2a579c(0x208)](0x2,0x8);}_0x37651e[_0x2101f2(0x20d)]=_0x2101f2(0x1b8);const _0x49a305={'tag':_0x2101f2(0x1b3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2101f2(0x1d0),'height':_0x2101f2(0x1d0)},'children':[{'tag':_0x2101f2(0x246),'attrs':{'fill':_0x2101f2(0x26a),'d':_0x2101f2(0x1c4)}},{'tag':'path','attrs':{'fill':_0x2101f2(0x26a),'d':_0x2101f2(0x194),'fillRule':_0x2101f2(0x21b),'clipRule':_0x2101f2(0x21b)}}]},_0x49673d=_0x1a9bfc[_0x2101f2(0x1ba)](function(_0x504db1,_0x559bd0){const _0x301fb9=_0x2101f2;return _0x1a9bfc[_0x301fb9(0x1da)](_0x37651e,Object[_0x301fb9(0x1b6)]({},_0x504db1,{'id':_0x301fb9(0x240),'ref':_0x559bd0,'icon':_0x49a305}));});_0x49673d[_0x2101f2(0x20d)]='LiveShareIcon';class _0x2f19a8 extends _0x30a709['Disposable']{constructor(){super(...arguments),_0x53718a(this,'_sharedOperations',new Set()),_0x53718a(this,'_reporters',new Set());}[_0x2101f2(0x20a)](_0x4a731a){const _0x3cffed=_0x2101f2;return this['_sharedOperations'][_0x3cffed(0x1a6)](_0x4a731a),_0x30a709[_0x3cffed(0x19f)](()=>this[_0x3cffed(0x26c)][_0x3cffed(0x1f9)](_0x4a731a));}[_0x2101f2(0x1b9)](_0x3ee035){const _0x3b159c=_0x2101f2;return this[_0x3b159c(0x1d8)][_0x3b159c(0x1a6)](_0x3ee035),_0x30a709['toDisposable'](()=>this[_0x3b159c(0x1d8)][_0x3b159c(0x1f9)](_0x3ee035));}['shouldShareOperation'](_0x469e4b){const _0x35a5c3=_0x2101f2;return this[_0x35a5c3(0x26c)][_0x35a5c3(0x1bc)](_0x469e4b);}[_0x2101f2(0x23a)](_0x5b2796){const _0x43de23=_0x2101f2;return Array['from'](this[_0x43de23(0x1d8)])[_0x43de23(0x1c1)](_0x15ea34=>_0x15ea34(_0x5b2796));}}var _0x6624f4=Object[_0x2101f2(0x268)],_0x58f823=(_0x2d0c3b,_0x1555dd,_0x502026,_0x2daf5d)=>{const _0x4650d3=_0x2101f2;for(var _0x10dc72=_0x2daf5d>0x1?void 0x0:_0x2daf5d?_0x6624f4(_0x1555dd,_0x502026):_0x1555dd,_0x1e9c1c=_0x2d0c3b[_0x4650d3(0x274)]-0x1,_0x52cbc7;_0x1e9c1c>=0x0;_0x1e9c1c--)(_0x52cbc7=_0x2d0c3b[_0x1e9c1c])&&(_0x10dc72=_0x52cbc7(_0x10dc72)||_0x10dc72);return _0x10dc72;},_0x3fff83=(_0x27f39e,_0x5d788a)=>(_0x58ebe1,_0x4674c3)=>_0x5d788a(_0x58ebe1,_0x4674c3,_0x27f39e);_0x24d3e6[_0x2101f2(0x27c)]=class extends _0x30a709[_0x2101f2(0x26b)]{constructor(_0x2090e1,_0x3a7f7e,_0x4796fc){const _0x429a21=_0x2101f2;super(),_0x53718a(this,_0x429a21(0x1ae),new Map()),(this[_0x429a21(0x272)]=_0x2090e1,this['_injector']=_0x3a7f7e,this[_0x429a21(0x212)]=_0x4796fc,this[_0x429a21(0x19e)]());}async[_0x2101f2(0x279)](_0x55dc53){const _0x33d7e4=_0x2101f2;return this[_0x33d7e4(0x1ae)][_0x33d7e4(0x1bc)](_0x55dc53)||await this[_0x33d7e4(0x234)](_0x55dc53),this[_0x33d7e4(0x1ae)][_0x33d7e4(0x1e6)](_0x55dc53);}[_0x2101f2(0x1e3)](_0x52c0b9){const _0x1699ea=_0x2101f2;var _0x24ec5f;return(_0x24ec5f=this[_0x1699ea(0x1ae)][_0x1699ea(0x1e6)](_0x52c0b9))!=null?_0x24ec5f:null;}[_0x2101f2(0x19e)](){const _0x4f1203=_0x2101f2;this[_0x4f1203(0x272)][_0x4f1203(0x1e5)](_0x30a709[_0x4f1203(0x261)][_0x4f1203(0x1eb)])['pipe'](_0x2dbda3[_0x4f1203(0x216)](this[_0x4f1203(0x270)]))[_0x4f1203(0x242)](async _0x45d63c=>{const _0x41582b=_0x4f1203,_0xbedb45=_0x45d63c[_0x41582b(0x262)]();this[_0x41582b(0x1ae)][_0x41582b(0x1bc)](_0xbedb45)||this[_0x41582b(0x234)](_0xbedb45);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x30a709[_0x4f1203(0x261)][_0x4f1203(0x1eb)])['pipe'](_0x2dbda3[_0x4f1203(0x216)](this[_0x4f1203(0x270)]))[_0x4f1203(0x242)](_0x1aa1a9=>{const _0x19082b=_0x4f1203,_0x389ca1=_0x1aa1a9[_0x19082b(0x262)](),_0x58e1a1=this[_0x19082b(0x1ae)][_0x19082b(0x1e6)](_0x389ca1);_0x58e1a1==null||_0x58e1a1[_0x19082b(0x1c6)]();});}async[_0x2101f2(0x234)](_0x3abe20){const _0x224ab8=_0x2101f2,_0x3c3a28=await this[_0x224ab8(0x212)][_0x224ab8(0x225)](_0x3abe20),_0x4e8a32=this[_0x224ab8(0x273)]['createInstance'](_0x24d3e6['LiveShareCoordinator'],_0x3abe20,_0x3c3a28);return _0x4e8a32['init'](),this[_0x224ab8(0x1ae)]['set'](_0x3abe20,_0x4e8a32),_0x4e8a32;}},_0x24d3e6['LiveShareController']=_0x58f823([_0x3fff83(0x0,_0x30a709[_0x2101f2(0x1a1)]),_0x3fff83(0x1,_0x30a709[_0x2101f2(0x1fb)](_0x30a709['Injector'])),_0x3fff83(0x2,_0x30a709[_0x2101f2(0x1fb)](_0x1709cf[_0x2101f2(0x223)]))],_0x24d3e6[_0x2101f2(0x27c)]);var _0x83f694=(_0x1de784=>(_0x1de784[_0x2101f2(0x1a0)]='offline',_0x1de784[_0x2101f2(0x195)]=_0x2101f2(0x269),_0x1de784[_0x2101f2(0x1aa)]=_0x2101f2(0x231),_0x1de784[_0x2101f2(0x1c5)]=_0x2101f2(0x224),_0x1de784[_0x2101f2(0x20c)]=_0x2101f2(0x25b),_0x1de784))(_0x83f694||{});const _0x37f041='SAME_OPERATION_SHARE_INTERVAL',_0x5691d0=0xc8;_0x24d3e6[_0x2101f2(0x1d3)]=class extends _0x30a709['RxDisposable']{constructor(_0x226e9d,_0x30a685,_0x23c816,_0x4f8601,_0x1632bb){const _0x5808c6=_0x2101f2;super(),_0x53718a(this,'_status$',new _0x311d29['BehaviorSubject'](_0x5808c6(0x269))),_0x53718a(this,_0x5808c6(0x27e),this[_0x5808c6(0x24f)][_0x5808c6(0x226)]()),_0x53718a(this,'_init',!0x1),_0x53718a(this,'_commandDisposable',null),_0x53718a(this,'_presenter',null),(this['_unitID']=_0x226e9d,this['_collabSession']=_0x30a685,this[_0x5808c6(0x20e)]=_0x23c816,this[_0x5808c6(0x1dc)]=_0x4f8601,this[_0x5808c6(0x19c)]=_0x1632bb);}get[_0x2101f2(0x1cd)](){const _0x3a1e5f=_0x2101f2;return this[_0x3a1e5f(0x24f)][_0x3a1e5f(0x1ad)]();}[_0x2101f2(0x1c6)](){const _0x3b1f43=_0x2101f2;var _0x74f5b7;(_0x74f5b7=this[_0x3b1f43(0x267)])==null||_0x74f5b7[_0x3b1f43(0x1c6)](),this[_0x3b1f43(0x24f)][_0x3b1f43(0x222)](_0x3b1f43(0x269)),this[_0x3b1f43(0x24f)]['complete']();}[_0x2101f2(0x244)](){const _0x539cdf=_0x2101f2;return this[_0x539cdf(0x1cd)];}['init'](){const _0x104d56=_0x2101f2;this[_0x104d56(0x19e)]||(this['_init']=!0x0,this[_0x104d56(0x27f)]['sessionStatus$'][_0x104d56(0x1d9)](_0x2dbda3[_0x104d56(0x216)](this[_0x104d56(0x270)]))[_0x104d56(0x242)](_0x5f2c94=>{const _0x1749f6=_0x104d56;switch(_0x5f2c94){case _0x1709cf[_0x1749f6(0x23c)][_0x1749f6(0x1a0)]:this[_0x1749f6(0x22b)]();break;case _0x1709cf[_0x1749f6(0x23c)][_0x1749f6(0x1de)]:this[_0x1749f6(0x243)]();break;}}),this['_collabSession'][_0x104d56(0x1f8)][_0x104d56(0x1d9)](_0x2dbda3[_0x104d56(0x216)](this['dispose$']))[_0x104d56(0x242)](_0x206900=>{const _0x370f4d=_0x104d56,{eventID:_0x280eb1}=_0x206900;switch(_0x280eb1){case _0x452ec5[_0x370f4d(0x1fa)][_0x370f4d(0x1ea)]:this['_handleNewHost'](_0x206900);break;case _0x452ec5[_0x370f4d(0x1fa)][_0x370f4d(0x229)]:this[_0x370f4d(0x26e)](_0x206900);break;case _0x452ec5[_0x370f4d(0x1fa)][_0x370f4d(0x1cc)]:this[_0x370f4d(0x205)]();break;case _0x452ec5[_0x370f4d(0x1fa)]['NEW_CHANGESETS']:this[_0x370f4d(0x210)](_0x206900);break;}}));}['tryStartPresenting'](){const _0x200966=_0x2101f2;this['_collabSession']['send']({'eventID':_0x452ec5[_0x200966(0x1fa)][_0x200966(0x238)],'data':{'unitID':this[_0x200966(0x27d)],'userID':this['_collabSession']['getMemberID']()}},this[_0x200966(0x27d)]);}[_0x2101f2(0x1b2)](){const _0x575334=_0x2101f2;this['_status']==='presenting'&&(this[_0x575334(0x24f)][_0x575334(0x222)](_0x575334(0x269)),this['_collabSession'][_0x575334(0x1ce)]({'eventID':_0x452ec5[_0x575334(0x1fa)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x575334(0x27d)]}},this[_0x575334(0x27d)]));}[_0x2101f2(0x1a2)](){const _0x485085=_0x2101f2;this['_status']===_0x485085(0x224)&&(this[_0x485085(0x24f)][_0x485085(0x222)](_0x485085(0x231)),this['_startFollowing']());}[_0x2101f2(0x1f5)](){const _0x16802d=_0x2101f2;this[_0x16802d(0x1cd)]===_0x16802d(0x231)&&this[_0x16802d(0x214)]();}[_0x2101f2(0x1bf)](_0x270461){const _0xdae7df=_0x2101f2,{presenter:_0x28f826}=_0x270461[_0xdae7df(0x21e)],_0x52e6eb=this[_0xdae7df(0x27f)]['getMemberID']();this[_0xdae7df(0x1f0)]=_0x28f826,_0x28f826===_0x52e6eb?(this[_0xdae7df(0x214)](),this['_startPresenting']()):this['_status']!==_0xdae7df(0x224)&&(this[_0xdae7df(0x27a)](),this[_0xdae7df(0x259)]());}[_0x2101f2(0x1d5)](){const _0x55ebad=_0x2101f2,_0x4b08a9={'eventID':_0x452ec5[_0x55ebad(0x1fa)][_0x55ebad(0x1ca)]};this[_0x55ebad(0x27f)][_0x55ebad(0x1ce)](_0x4b08a9,this[_0x55ebad(0x27d)]);}[_0x2101f2(0x205)](){const _0x32eb27=_0x2101f2;this[_0x32eb27(0x1f0)]=null,this['_status']!==_0x32eb27(0x25b)&&this[_0x32eb27(0x233)]();}[_0x2101f2(0x210)](_0x3acde5){const _0x30c0c5=_0x2101f2;if(this['_status']===_0x30c0c5(0x231)&&this[_0x30c0c5(0x1f0)]===_0x3acde5[_0x30c0c5(0x21e)][_0x30c0c5(0x248)]){const _0x1d11d9=_0x452ec5[_0x30c0c5(0x1b1)](_0x3acde5[_0x30c0c5(0x21e)])['mutations'][_0x30c0c5(0x24b)]()[_0x30c0c5(0x1fc)](_0x351ace=>_0x351ace['id']===_0x10ecdd[_0x30c0c5(0x218)]['id']);if(_0x1d11d9){const _0x38619b=_0x1d11d9[_0x30c0c5(0x1f2)][_0x30c0c5(0x20f)],_0x3b0d69=_0x1d11d9['params'][_0x30c0c5(0x258)]['id'];setTimeout(()=>{const _0x25ee64=_0x30c0c5;this['_commandService']['executeCommand'](_0x10ecdd[_0x25ee64(0x204)]['id'],{'unitId':_0x38619b,'subUnitId':_0x3b0d69},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x42bd1c=_0x2101f2;this[_0x42bd1c(0x24f)][_0x42bd1c(0x222)]('presenting');const _0x5c58f7=new Map(),_0x3d2a5c=this[_0x42bd1c(0x267)]=new _0x30a709[(_0x42bd1c(0x220))]();_0x3d2a5c[_0x42bd1c(0x1a6)](_0x30a709[_0x42bd1c(0x19f)](()=>{const _0x3d0f3b=_0x42bd1c;_0x5c58f7[_0x3d0f3b(0x1d2)](_0x254233=>_0x254233[_0x3d0f3b(0x1b0)]()),_0x5c58f7[_0x3d0f3b(0x1c3)]();})),_0x3d2a5c[_0x42bd1c(0x1a6)](this[_0x42bd1c(0x19c)][_0x42bd1c(0x1a5)](_0x2fbad2=>{const _0x5c3710=_0x42bd1c;var _0x570913;if(_0x2fbad2[_0x5c3710(0x26f)]!==_0x30a709[_0x5c3710(0x206)]['OPERATION']||!this[_0x5c3710(0x1dc)]['shouldShareOperation'](_0x2fbad2['id']))return;const {id:_0x26287e}=_0x2fbad2;let _0x57042a;_0x5c58f7['has'](_0x26287e)?_0x57042a=_0x5c58f7[_0x5c3710(0x1e6)](_0x26287e):(_0x57042a=new _0x311d29[(_0x5c3710(0x239))](),_0x5c58f7[_0x5c3710(0x1cb)](_0x26287e,_0x57042a),_0x57042a[_0x5c3710(0x1d9)](_0x2dbda3['throttleTime']((_0x570913=this['_configService']['getConfig'](_0x37f041))!=null?_0x570913:_0x5691d0,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x211297=>{const _0x2daae7=_0x5c3710;this['_collabSession'][_0x2daae7(0x1ce)]({'eventID':_0x452ec5[_0x2daae7(0x1fa)][_0x2daae7(0x229)],'data':{'unitID':this[_0x2daae7(0x27d)],'operations':{[_0x211297['id']]:{'id':_0x211297['id'],'params':JSON['stringify'](_0x211297[_0x2daae7(0x1f2)])}}}},this['_unitID']);})),_0x57042a[_0x5c3710(0x222)](_0x2fbad2);})),this[_0x42bd1c(0x1dc)][_0x42bd1c(0x23a)](this[_0x42bd1c(0x27d)])[_0x42bd1c(0x1d2)](_0x311a1c=>this[_0x42bd1c(0x27f)][_0x42bd1c(0x1ce)]({'eventID':_0x452ec5[_0x42bd1c(0x1fa)][_0x42bd1c(0x229)],'data':{'unitID':this[_0x42bd1c(0x27d)],'operations':{[_0x311a1c['id']]:{'id':_0x311a1c['id'],'params':JSON[_0x42bd1c(0x1b7)](_0x311a1c[_0x42bd1c(0x1f2)])}}}},this[_0x42bd1c(0x27d)]));}[_0x2101f2(0x27a)](){const _0x403f42=_0x2101f2;var _0x553781;this[_0x403f42(0x24f)]['next'](_0x403f42(0x269)),(_0x553781=this[_0x403f42(0x267)])==null||_0x553781[_0x403f42(0x1c6)](),this['_commandDisposable']=null;}[_0x2101f2(0x259)](){const _0x414b45=_0x2101f2;var _0x474df5;(_0x474df5=this[_0x414b45(0x267)])==null||_0x474df5['dispose'](),this[_0x414b45(0x24f)][_0x414b45(0x222)](_0x414b45(0x231));}[_0x2101f2(0x233)](){const _0x5a1c4c=_0x2101f2;var _0x168875;this[_0x5a1c4c(0x24f)][_0x5a1c4c(0x222)](_0x5a1c4c(0x269)),(_0x168875=this[_0x5a1c4c(0x267)])==null||_0x168875['dispose'](),this[_0x5a1c4c(0x267)]=null;}['_stopFollowing'](){const _0x2e7363=_0x2101f2;var _0x402556;this[_0x2e7363(0x24f)][_0x2e7363(0x222)](_0x2e7363(0x224)),(_0x402556=this[_0x2e7363(0x267)])==null||_0x402556[_0x2e7363(0x1c6)]();}[_0x2101f2(0x26e)](_0x238c2a){const _0x38febf=_0x2101f2;if([_0x38febf(0x25b),_0x38febf(0x224),_0x38febf(0x252)][_0x38febf(0x19d)](this['_status'])||!_0x238c2a[_0x38febf(0x21e)][_0x38febf(0x271)]||_0x238c2a[_0x38febf(0x21e)][_0x38febf(0x271)]===this[_0x38febf(0x27f)][_0x38febf(0x202)]())return;this[_0x38febf(0x1cd)]===_0x38febf(0x269)&&this[_0x38febf(0x259)]();const _0x192c3c=_0x238c2a[_0x38febf(0x21e)][_0x38febf(0x256)];Object[_0x38febf(0x21c)](_0x192c3c)[_0x38febf(0x1d2)](_0x15502b=>{const _0x257c38=_0x38febf;this[_0x257c38(0x19c)][_0x257c38(0x1b5)](_0x15502b['id'],_0x15502b[_0x257c38(0x1f2)]?JSON[_0x257c38(0x211)](_0x15502b[_0x257c38(0x1f2)]):null,{'fromCollab':!0x0});});}[_0x2101f2(0x22b)](){const _0x10f1a2=_0x2101f2;var _0xbf7432;this['_status$'][_0x10f1a2(0x222)](_0x10f1a2(0x252)),(_0xbf7432=this[_0x10f1a2(0x267)])==null||_0xbf7432[_0x10f1a2(0x1c6)]();}[_0x2101f2(0x243)](){const _0x52b9b0=_0x2101f2;this[_0x52b9b0(0x24f)][_0x52b9b0(0x222)](_0x52b9b0(0x269)),this[_0x52b9b0(0x1d5)]();}},_0x24d3e6['LiveShareCoordinator']=_0x58f823([_0x3fff83(0x2,_0x30a709[_0x2101f2(0x22a)]),_0x3fff83(0x3,_0x30a709[_0x2101f2(0x1fb)](_0x2f19a8)),_0x3fff83(0x4,_0x30a709[_0x2101f2(0x1cf)])],_0x24d3e6[_0x2101f2(0x1d3)]);function _0x277807(){const _0x39c441=_0x2101f2,_0x4170f0=_0x99ed13['useDependency'](_0x24d3e6[_0x39c441(0x27c)]),_0x1acd68=_0x99ed13[_0x39c441(0x1ff)](_0x30a709[_0x39c441(0x1a1)]),_0x560ee8=_0x99ed13['useObservable'](()=>_0x1acd68[_0x39c441(0x1e9)](_0x30a709[_0x39c441(0x261)][_0x39c441(0x1eb)]),void 0x0,!0x1,[]),[_0x342bf8,_0x1c27f8]=_0x1a9bfc[_0x39c441(0x227)](null),[_0x25e0cc,_0x496bfc]=_0x1a9bfc[_0x39c441(0x227)](_0x83f694[_0x39c441(0x195)]),_0x33ce8c=_0x1a9bfc[_0x39c441(0x1ac)](null);return _0x1a9bfc[_0x39c441(0x1a9)](()=>(_0x560ee8&&_0x4170f0[_0x39c441(0x279)](_0x560ee8['getUnitId']())[_0x39c441(0x196)](_0x4cbd0f=>{const _0x419248=_0x39c441;_0x1c27f8(_0x4cbd0f),_0x33ce8c[_0x419248(0x254)]=_0x4cbd0f[_0x419248(0x27e)][_0x419248(0x242)](_0x35805e=>{_0x496bfc(_0x35805e);});}),()=>{const _0x371b47=_0x39c441;var _0x5800a1;(_0x5800a1=_0x33ce8c['current'])==null||_0x5800a1[_0x371b47(0x22c)](),_0x33ce8c[_0x371b47(0x254)]=null;}),[_0x560ee8,_0x4170f0]),_0x342bf8?_0x181f84[_0x39c441(0x1c2)](_0x816f59[_0x39c441(0x1e2)],{'align':_0x39c441(0x1b4),'disabled':_0x25e0cc===_0x83f694['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x181f84[_0x39c441(0x1c2)](_0x4c898e,{'status':_0x25e0cc,'coordinator':_0x342bf8}),'children':_0x181f84['jsx']('button',{'className':_0x816f59[_0x39c441(0x207)](_0x39c441(0x260),{'univer-cursor-not-allowed':_0x25e0cc===_0x83f694[_0x39c441(0x1a0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25e0cc!==_0x83f694['OFFLINE']}),'type':_0x39c441(0x1e8),'children':_0x181f84[_0x39c441(0x1c2)](_0x49673d,{'className':'univer-size-4'})})}):null;}function _0x4c898e(_0x1727d4){const _0x1177d2=_0x2101f2,{status:_0x29225e,coordinator:_0x19647}=_0x1727d4;switch(_0x29225e){case _0x83f694[_0x1177d2(0x195)]:return _0x181f84[_0x1177d2(0x1c2)](_0x4a586f,{'coordinator':_0x19647});case _0x83f694[_0x1177d2(0x1aa)]:return _0x181f84[_0x1177d2(0x1c2)](_0x1c059f,{'coordinator':_0x19647});case _0x83f694[_0x1177d2(0x1c5)]:return _0x181f84[_0x1177d2(0x1c2)](_0x3a5723,{'coordinator':_0x19647});case _0x83f694['OFFLINE']:return _0x181f84[_0x1177d2(0x1c2)](_0x3389be,{});case _0x83f694['PRESENTING']:return _0x181f84[_0x1177d2(0x1c2)](_0x5a2aeb,{'coordinator':_0x19647});default:return null;}}function _0x4a586f(_0x549e02){const _0x1e3ae3=_0x2101f2,{coordinator:_0x1953e3}=_0x549e02;return _0x181f84[_0x1e3ae3(0x247)](_0x181f84[_0x1e3ae3(0x1c0)],{'children':[_0x181f84['jsx']('div',{'className':_0x1e3ae3(0x1be),'children':_0x1e3ae3(0x1fe)}),_0x181f84[_0x1e3ae3(0x1c2)](_0x816f59[_0x1e3ae3(0x209)],{'onClick':()=>_0x1953e3[_0x1e3ae3(0x1d7)](),'children':_0x1e3ae3(0x1f4)})]});}function _0x1c059f(_0x425873){const _0x5b6bf0=_0x2101f2,{coordinator:_0x585548}=_0x425873;return _0x181f84[_0x5b6bf0(0x247)](_0x181f84[_0x5b6bf0(0x1c0)],{'children':[_0x181f84['jsx']('div',{'className':_0x5b6bf0(0x1be),'children':_0x5b6bf0(0x19b)}),_0x181f84[_0x5b6bf0(0x1c2)](_0x816f59[_0x5b6bf0(0x209)],{'onClick':()=>_0x585548[_0x5b6bf0(0x1f5)](),'children':_0x5b6bf0(0x1a3)})]});}function _0x3a5723(_0x2d542e){const _0x348594=_0x2101f2,{coordinator:_0x4ed962}=_0x2d542e;return _0x181f84['jsxs'](_0x181f84[_0x348594(0x1c0)],{'children':[_0x181f84[_0x348594(0x1c2)](_0x348594(0x1af),{'className':_0x348594(0x1be),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x181f84[_0x348594(0x1c2)](_0x816f59[_0x348594(0x209)],{'variant':_0x348594(0x1df),'onClick':()=>_0x4ed962[_0x348594(0x1a2)](),'children':_0x348594(0x22d)})]});}function _0x5a2aeb(_0x147ed7){const _0x217ae7=_0x2101f2,{coordinator:_0x1e16cc}=_0x147ed7;return _0x181f84[_0x217ae7(0x247)](_0x181f84['Fragment'],{'children':[_0x181f84[_0x217ae7(0x1c2)](_0x217ae7(0x1af),{'className':_0x217ae7(0x1be),'children':_0x217ae7(0x265)}),_0x181f84[_0x217ae7(0x1c2)](_0x816f59[_0x217ae7(0x209)],{'variant':_0x217ae7(0x21f),'onClick':()=>_0x1e16cc[_0x217ae7(0x1b2)](),'children':_0x217ae7(0x19a)})]});}function _0x3389be(){const _0x1d900d=_0x2101f2;return _0x181f84['jsx'](_0x181f84[_0x1d900d(0x1c0)],{'children':_0x1d900d(0x236)});}var _0x2c22d4=Object[_0x2101f2(0x268)],_0x3040c3=(_0xc31db1,_0x1bb1fc,_0x4313be,_0xb3d082)=>{const _0x3d91e8=_0x2101f2;for(var _0x59946b=_0xb3d082>0x1?void 0x0:_0xb3d082?_0x2c22d4(_0x1bb1fc,_0x4313be):_0x1bb1fc,_0x4108e3=_0xc31db1[_0x3d91e8(0x274)]-0x1,_0x2d3e3c;_0x4108e3>=0x0;_0x4108e3--)(_0x2d3e3c=_0xc31db1[_0x4108e3])&&(_0x59946b=_0x2d3e3c(_0x59946b)||_0x59946b);return _0x59946b;},_0x8ac35f=(_0x1b7cac,_0x381b5e)=>(_0x551d4a,_0x5a55ff)=>_0x381b5e(_0x551d4a,_0x5a55ff,_0x1b7cac);_0x24d3e6[_0x2101f2(0x221)]=class extends _0x30a709['Disposable']{constructor(_0x18e7ad,_0x6005e0){const _0x408c9d=_0x2101f2;super(),this[_0x408c9d(0x273)]=_0x18e7ad,this[_0x408c9d(0x24a)]=_0x6005e0,this['_mountLiveShare']();}[_0x2101f2(0x22f)](){const _0x359d32=_0x2101f2;this[_0x359d32(0x21d)](this['_uiPartsService'][_0x359d32(0x25e)](_0x99ed13[_0x359d32(0x1bd)][_0x359d32(0x23b)],()=>_0x99ed13[_0x359d32(0x199)](_0x277807,this[_0x359d32(0x273)])));}},_0x24d3e6[_0x2101f2(0x221)]=_0x3040c3([_0x8ac35f(0x0,_0x30a709[_0x2101f2(0x1fb)](_0x30a709[_0x2101f2(0x276)])),_0x8ac35f(0x1,_0x99ed13[_0x2101f2(0x1a8)])],_0x24d3e6[_0x2101f2(0x221)]);const _0x39356e=_0x2101f2(0x1ef),_0x6ccb34={};var _0x557ab7=Object[_0x2101f2(0x268)],_0x28f434=(_0x5c077e,_0x35d40b,_0x3d97f3,_0x22859a)=>{const _0x2ed47d=_0x2101f2;for(var _0x4f4c08=_0x22859a>0x1?void 0x0:_0x22859a?_0x557ab7(_0x35d40b,_0x3d97f3):_0x35d40b,_0x456d00=_0x5c077e[_0x2ed47d(0x274)]-0x1,_0x4bc296;_0x456d00>=0x0;_0x456d00--)(_0x4bc296=_0x5c077e[_0x456d00])&&(_0x4f4c08=_0x4bc296(_0x4f4c08)||_0x4f4c08);return _0x4f4c08;},_0x3a6610=(_0x3cc4ef,_0x562ae4)=>(_0x59097d,_0x2fb9f0)=>_0x562ae4(_0x59097d,_0x2fb9f0,_0x3cc4ef);let _0xd9ce9c=class extends _0x30a709[_0x2101f2(0x257)]{constructor(_0x3cd4cc){const _0x1da6f4=_0x2101f2;super(),this[_0x1da6f4(0x1dc)]=_0x3cd4cc,this[_0x1da6f4(0x19e)]();}[_0x2101f2(0x19e)](){const _0x9ade22=_0x2101f2;[_0x5a189b[_0x9ade22(0x1ee)]['id'],_0x5a189b[_0x9ade22(0x1a4)]['id'],_0x10ecdd[_0x9ade22(0x204)]['id']][_0x9ade22(0x1d2)](_0x4b105b=>{const _0x29833f=_0x9ade22;this[_0x29833f(0x21d)](this['_liveShareService'][_0x29833f(0x20a)](_0x4b105b));});}};_0xd9ce9c=_0x28f434([_0x3a6610(0x0,_0x30a709[_0x2101f2(0x1fb)](_0x2f19a8))],_0xd9ce9c);var _0x5a830a=Object[_0x2101f2(0x1d1)],_0x37187a=Object['getOwnPropertyDescriptor'],_0x396edb=(_0x23b108,_0x5320fb,_0xa7e7f2)=>_0x5320fb in _0x23b108?_0x5a830a(_0x23b108,_0x5320fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa7e7f2}):_0x23b108[_0x5320fb]=_0xa7e7f2,_0x458158=(_0x446b39,_0x586393,_0x4219a1,_0x11c083)=>{const _0x56068a=_0x2101f2;for(var _0x1f0551=_0x11c083>0x1?void 0x0:_0x11c083?_0x37187a(_0x586393,_0x4219a1):_0x586393,_0x10bcf5=_0x446b39[_0x56068a(0x274)]-0x1,_0x466635;_0x10bcf5>=0x0;_0x10bcf5--)(_0x466635=_0x446b39[_0x10bcf5])&&(_0x1f0551=_0x466635(_0x1f0551)||_0x1f0551);return _0x1f0551;},_0x478112=(_0x14778d,_0x5d7fbc)=>(_0x444e11,_0x4408a1)=>_0x5d7fbc(_0x444e11,_0x4408a1,_0x14778d),_0x284255=(_0x465f8a,_0x6e529c,_0x1a9a16)=>_0x396edb(_0x465f8a,typeof _0x6e529c!=_0x2101f2(0x1f7)?_0x6e529c+'':_0x6e529c,_0x1a9a16);const _0x22b70f=_0x2101f2(0x217);_0x24d3e6[_0x2101f2(0x1db)]=class extends _0x30a709['Plugin']{constructor(_0x54f2b1=_0x6ccb34,_0x47d1a5,_0xc7c2fc){const _0x3294f5=_0x2101f2;super(),this['_config']=_0x54f2b1,this[_0x3294f5(0x273)]=_0x47d1a5,this[_0x3294f5(0x20e)]=_0xc7c2fc;const {..._0x1ad63a}=_0x30a709[_0x3294f5(0x1e1)]({},_0x6ccb34,this[_0x3294f5(0x1f3)]);this[_0x3294f5(0x20e)][_0x3294f5(0x197)](_0x39356e,_0x1ad63a);}['onStarting'](){const _0x237109=_0x2101f2;_0x30a709[_0x237109(0x235)](this['_injector'],_0x30a709[_0x237109(0x1ab)]([[_0x2f19a8],[_0x24d3e6['LiveShareController']],[_0xd9ce9c],[_0x24d3e6[_0x237109(0x221)]]],this[_0x237109(0x1f3)]['override'])),_0x30a709['touchDependencies'](this[_0x237109(0x273)],[[_0xd9ce9c]]);}[_0x2101f2(0x251)](){const _0x493bda=_0x2101f2;_0x30a709[_0x493bda(0x230)](this[_0x493bda(0x273)],[[_0x24d3e6[_0x493bda(0x221)]]]);}},_0x284255(_0x24d3e6[_0x2101f2(0x1db)],_0x2101f2(0x26f),_0x30a709['UniverInstanceType'][_0x2101f2(0x1d6)]),_0x284255(_0x24d3e6['UniverLiveSharePlugin'],_0x2101f2(0x27b),_0x22b70f),_0x24d3e6[_0x2101f2(0x1db)]=_0x458158([_0x30a709[_0x2101f2(0x203)](_0x1709cf[_0x2101f2(0x1c7)]),_0x478112(0x1,_0x30a709[_0x2101f2(0x1fb)](_0x30a709['Injector'])),_0x478112(0x2,_0x30a709[_0x2101f2(0x22a)])],_0x24d3e6[_0x2101f2(0x1db)]),_0x24d3e6[_0x2101f2(0x200)]=_0x277807,_0x24d3e6[_0x2101f2(0x245)]=_0x2f19a8,_0x24d3e6[_0x2101f2(0x1fd)]=_0x83f694,Object[_0x2101f2(0x1d1)](_0x24d3e6,Symbol[_0x2101f2(0x24c)],{'value':_0x2101f2(0x1bb)});}));function _0x439f(){const _0x3c1177=['_collabSessionService','trim','_stopFollowing','462414rKQcdc','takeUntil','UNIVER_LIVE_SHARE_PLUGIN','InsertSheetMutation','@univerjs/ui','1632558xDSvNK','evenodd','values','disposeWithMe','data','default','DisposableCollection','DesktopLiveShareController','next','CollaborationSessionService','not-following','requireSession','asObservable','useState','function','LIVESHARE_OPERATION','IConfigService','_handleOffline','unsubscribe','Start\x20following','fill','_mountLiveShare','touchDependencies','following','exports','_beIdle','_startLiveShareCoordinator','registerDependencies','You\x27are\x20offline.','@univerjs-pro/collaboration','LIVESHARE_REQUEST_HOST','Subject','getInitialStates','HEADER_MENU','SessionStatus','908148Cxhppz','792132MTbzBe','UniverProLiveShare','live-share-icon','4lcuFfQ','subscribe','_handleOnline','getStatus','LiveShareService','path','jsxs','memberID','url(#$1','_uiPartsService','reverse','toStringTag','17896176WxLtRI','@univerjs/sheets','_status$','idSuffix','onRendered','offline','react/jsx-runtime','current','string','operations','Disposable','sheet','_startFollowing','toString','presenting','entries','rxjs','registerComponent','mask','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverInstanceType','getUnitId','10520960PdkXof','14WEvawa','You\x27re\x20presenting\x20the\x20document','children','_commandDisposable','getOwnPropertyDescriptor','idle','currentColor','RxDisposable','_sharedOperations','amd','_handleOperation','type','dispose$','presenter','_univerInstanceService','_injector','length','UniverProCollaboration','Injector','operators','UniverUi','getLiveShareCoordinator','_stopPresenting','pluginName','LiveShareController','_unitID','status$','_collabSession','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','IDLE','then','setConfig','@univerjs/sheets-ui','connectInjector','Stop\x20presenting','You\x27re\x20following\x20the\x20presenter','_commandService','includes','_init','toDisposable','OFFLINE','IUniverInstanceService','startFollowing','Stop\x20following','SetScrollOperation','onCommandExecuted','add','colorChannel1','IUIPartsService','useEffect','FOLLOWING','mergeOverrideWithDependencies','useRef','getValue','_entities','div','complete','parseProtocolChangeset','stopPresenting','svg','end','executeCommand','assign','stringify','UniverIcon','registerInitialStateReporter','forwardRef','Module','has','BuiltInUIPart','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewHost','Fragment','map','jsx','clear','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','NOT_FOLLOWING','dispose','UniverCollaborationClientPlugin','attrs','random','LIVESHARE_FETCH_OPERATIONS','set','LIVESHARE_TERMINATE','_status','send','ICommandService','1em','defineProperty','forEach','LiveShareCoordinator','tag','_fetchOperations','UNIVER_UNKNOWN','tryStartPresenting','_reporters','pipe','createElement','UniverLiveSharePlugin','_liveShareService','2483035NBntJA','ONLINE','text','React','merge','Dropdown','getLiveShareCoordinatorSync','react','getTypeOfUnitAdded$','get','UniverSheetsUi','button','getCurrentTypeOfUnit$','LIVESHARE_NEW_HOST','UNIVER_SHEET','replace','defs','SetZoomRatioOperation','live-share.config','_presenter','univerjs-icon\x20univerjs-icon-','params','_config','Start','stopFollowing','xlink:href','symbol','event$','delete','CollaborationEvent','Inject','find','LiveShareStatus','Present\x20this\x20document','useDependency','LiveShare','use','getMemberID','DependentOn','SetWorksheetActiveOperation','_handleTerminate','CommandType','clsx','substring','Button','registerSharedOperation','defIds','PRESENTING','displayName','_configService','unitId','_handleNewChangeSets','parse'];_0x439f=function(){return _0x3c1177;};return _0x439f();}
1
+ function _0x23fd(){const _0x25f00f=['evenodd','_handleOnline','rxjs','idSuffix','subscribe','Start\x20following','LIVESHARE_OPERATION','presenter','_startFollowing','colorChannel1','NEW_CHANGESETS','78QOPCnP','not-following','assign','_commandService','_fetchOperations','306zNzSXl','SetZoomRatioOperation','_mountLiveShare','offline','mergeOverrideWithDependencies','throttleTime','getTypeOfUnitDisposed$','amd','_init','svg','OFFLINE','_collabSessionService','_config','6498200OhUEhT','UNIVER_SHEET','Button','React','LiveShareStatus','event$','RxDisposable','UniverSheetsUi','_handleNewChangeSets','defs','_reporters','IUniverInstanceService','add','useEffect','4741560Lpickq','type','presenting','getStatus','_stopFollowing','@univerjs-pro/collaboration','symbol','toDisposable','useRef','UniverCore','fill','url(#$1','tag','useDependency','LiveShareController','live-share.config','LiveShareIcon','269222fAAdsu','BuiltInUIPart','_startPresenting','live-share-icon','UNIVER_UNKNOWN','getCurrentTypeOfUnit$','sessionStatus$','length','IDLE','defIds','children','NOT_FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','1em','_startLiveShareCoordinator','executeCommand','_unitID','rxjs/operators','jsx','UniverLiveSharePlugin','includes','send','5500824PEycln','Stop\x20following','asObservable','from','onRendered','UniverDesign','getMemberID','FOLLOWING','getConfig','find','jsxs','mutations','use','react','_sharedOperations','LiveShare','UNIVER_LIVE_SHARE_PLUGIN','tryStartPresenting','idle','map','stopPresenting','has','trim','merge','override','disposeWithMe','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','forwardRef','_handleNewHost','createInstance','set','stopFollowing','univer-size-4','defineProperty','clear','pipe','LIVESHARE_NEW_HOST','button','@univerjs/sheets-ui','text','clsx','_presenter','LiveShareService','_status$','react/jsx-runtime','_status','UniverProLiveShare','_stopPresenting','SessionStatus','_entities','onStarting','getOwnPropertyDescriptor','getLiveShareCoordinatorSync','@univerjs/sheets','parse','shouldShareOperation','registerInitialStateReporter','getInitialStates','delete','default','attrs','dispose','complete','Subject','Injector','http://www.w3.org/2000/svg','UniverUi','unsubscribe','DisposableCollection','_univerInstanceService','requireSession','substring','273976QeaNKr','LIVESHARE_TERMINATE','entries','replace','_handleTerminate','next','current','end','SetWorksheetActiveOperation','CommandType','UniverCollaborationClientPlugin','_injector','toString','useState','11802qQYBHV','Start','CollaborationEvent','init','path','Module','Disposable','UniverProCollaborationClient','forEach','UniverIcon','You\x27re\x20presenting\x20the\x20document','string','currentColor','_commandDisposable','displayName','LiveShareCoordinator','pluginName','mask','get','toStringTag','@univerjs/ui','IConfigService','getLiveShareCoordinator','useObservable','PRESENTING','DesktopLiveShareController','DependentOn','_collabSession','xlink:href','_handleOffline','BehaviorSubject','params','_handleOperation','SetScrollOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','operators','@univerjs-pro/collaboration-client','touchDependencies','Dropdown','startFollowing','6201629xBeSpE','sheet','stringify','parseProtocolChangeset','_uiPartsService','_beIdle','_liveShareService','Fragment','function','div','UniverInstanceType','data','_configService','@univerjs/core','values','dispose$','connectInjector','status$','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','OPERATION','following','takeUntil','Inject','HEADER_MENU','registerSharedOperation','registerComponent','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','getUnitId'];_0x23fd=function(){return _0x25f00f;};return _0x23fd();}function _0x1725(_0xdb3b83,_0x51d614){_0xdb3b83=_0xdb3b83-0xf0;const _0x23fd97=_0x23fd();let _0x1725f4=_0x23fd97[_0xdb3b83];return _0x1725f4;}(function(_0x8c81f5,_0x31b223){const _0x1836a4=_0x1725,_0x2872e7=_0x8c81f5();while(!![]){try{const _0x96a133=-parseInt(_0x1836a4(0x150))/0x1+parseInt(_0x1836a4(0x1bd))/0x2*(parseInt(_0x1836a4(0x11f))/0x3)+-parseInt(_0x1836a4(0x166))/0x4+parseInt(_0x1836a4(0x131))/0x5+parseInt(_0x1836a4(0x13f))/0x6+-parseInt(_0x1836a4(0xf7))/0x7+-parseInt(_0x1836a4(0x1af))/0x8*(-parseInt(_0x1836a4(0x124))/0x9);if(_0x96a133===_0x31b223)break;else _0x2872e7['push'](_0x2872e7['shift']());}catch(_0x5d7589){_0x2872e7['push'](_0x2872e7['shift']());}}}(_0x23fd,0xd6325),function(_0x2aecd3,_0x3cb15e){const _0x3d0a0e=_0x1725;typeof exports=='object'&&typeof module<'u'?_0x3cb15e(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==_0x3d0a0e(0xff)&&define[_0x3d0a0e(0x12b)]?define(['exports',_0x3d0a0e(0x104),_0x3d0a0e(0x1d1),_0x3d0a0e(0x193),'@univerjs/design',_0x3d0a0e(0x173),_0x3d0a0e(0x144),_0x3d0a0e(0xf3),_0x3d0a0e(0x19c),_0x3d0a0e(0x116),_0x3d0a0e(0x161),_0x3d0a0e(0x18d)],_0x3cb15e):(_0x2aecd3=typeof globalThis<'u'?globalThis:_0x2aecd3||self,_0x3cb15e(_0x2aecd3[_0x3d0a0e(0x195)]={},_0x2aecd3[_0x3d0a0e(0x148)],_0x2aecd3[_0x3d0a0e(0x1a9)],_0x2aecd3[_0x3d0a0e(0x134)],_0x2aecd3[_0x3d0a0e(0x16b)],_0x2aecd3[_0x3d0a0e(0x134)],_0x2aecd3['UniverProCollaboration'],_0x2aecd3[_0x3d0a0e(0x1c4)],_0x2aecd3['UniverSheets'],_0x2aecd3[_0x3d0a0e(0x116)],_0x2aecd3[_0x3d0a0e(0x116)][_0x3d0a0e(0xf2)],_0x2aecd3[_0x3d0a0e(0x138)]));}(this,function(_0x566137,_0x327b3e,_0x331cdd,_0x3f5bcc,_0x3a6087,_0xcd4ef7,_0x357a77,_0x4d3bfc,_0x3f6c09,_0x23eb22,_0x58a4a9,_0x1ea554){'use strict';const _0x312948=_0x1725;var _0x37f04b=Object['defineProperty'],_0x263ef6=(_0x5ef45c,_0x35a730,_0x2a26bf)=>_0x35a730 in _0x5ef45c?_0x37f04b(_0x5ef45c,_0x35a730,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a26bf}):_0x5ef45c[_0x35a730]=_0x2a26bf,_0x16fd1b=(_0x4a1609,_0x735d30,_0x2e877b)=>_0x263ef6(_0x4a1609,typeof _0x735d30!=_0x312948(0x145)?_0x735d30+'':_0x735d30,_0x2e877b);function _0x12ac21({ref:_0xda873b,..._0x4bb3ba}){const _0x5c76d5=_0x312948,{icon:_0x11dddd,id:_0xe43334,className:_0x152b91,extend:_0x3a6867,..._0x50cd9f}=_0x4bb3ba,_0x262e90=('univerjs-icon\x20univerjs-icon-'+_0xe43334+'\x20'+(_0x152b91||''))[_0x5c76d5(0x17c)](),_0xfd3aa9=_0xcd4ef7[_0x5c76d5(0x147)]('_'+_0x37a16d());return _0x54550d(_0x11dddd,''+_0xe43334,{'defIds':_0x11dddd[_0x5c76d5(0x159)],'idSuffix':_0xfd3aa9[_0x5c76d5(0x1b5)]},{'ref':_0xda873b,'className':_0x262e90,..._0x50cd9f},_0x3a6867);}function _0x54550d(_0x435d25,_0x14caa2,_0x4e75d5,_0x5e8680,_0x43886b){const _0x1ada62=_0x312948;return _0xcd4ef7[_0x1ada62(0x111)](_0x435d25['tag'],{'key':_0x14caa2,..._0x3e1cd6(_0x435d25,_0x4e75d5,_0x43886b),..._0x5e8680},(_0x17eba3(_0x435d25,_0x4e75d5)[_0x1ada62(0x15a)]||[])[_0x1ada62(0x179)]((_0x3a47b4,_0x29b233)=>_0x54550d(_0x3a47b4,_0x14caa2+'-'+_0x435d25[_0x1ada62(0x14b)]+'-'+_0x29b233,_0x4e75d5,void 0x0,_0x43886b)));}function _0x3e1cd6(_0x31bd9e,_0x5ee8da,_0x4c550e){const _0x3ff138=_0x312948,_0x56c79c={..._0x31bd9e[_0x3ff138(0x1a3)]};_0x4c550e!=null&&_0x4c550e[_0x3ff138(0x11d)]&&_0x56c79c[_0x3ff138(0x149)]==='colorChannel1'&&(_0x56c79c[_0x3ff138(0x149)]=_0x4c550e[_0x3ff138(0x11d)]),_0x31bd9e[_0x3ff138(0x14b)]===_0x3ff138(0x1ce)&&_0x56c79c['id']&&(_0x56c79c['id']=_0x56c79c['id']+_0x5ee8da[_0x3ff138(0x117)]),Object[_0x3ff138(0x1b1)](_0x56c79c)[_0x3ff138(0x1c5)](([_0x593ce4,_0x1802e3])=>{const _0x314a21=_0x3ff138;_0x593ce4===_0x314a21(0x1ce)&&typeof _0x1802e3==_0x314a21(0x1c8)&&(_0x56c79c[_0x593ce4]=_0x1802e3[_0x314a21(0x1b2)](/url\(#(.*)\)/,_0x314a21(0x14a)+_0x5ee8da['idSuffix']+')'));});const {defIds:_0xd0516f}=_0x5ee8da;return!_0xd0516f||_0xd0516f[_0x3ff138(0x157)]===0x0||(_0x31bd9e[_0x3ff138(0x14b)]===_0x3ff138(0x172)&&_0x56c79c[_0x3ff138(0x1d9)]&&(_0x56c79c[_0x3ff138(0x1d9)]=_0x56c79c[_0x3ff138(0x1d9)]+_0x5ee8da[_0x3ff138(0x117)]),Object['entries'](_0x56c79c)['forEach'](([_0x2625bf,_0x27f34a])=>{const _0x9d710f=_0x3ff138;typeof _0x27f34a==_0x9d710f(0x1c8)&&(_0x56c79c[_0x2625bf]=_0x27f34a[_0x9d710f(0x1b2)](/url\(#(.*)\)/,_0x9d710f(0x14a)+_0x5ee8da['idSuffix']+')'));})),_0x56c79c;}function _0x17eba3(_0x44217c,_0xa0c7b4){const _0x530128=_0x312948;var _0xb695b1;const {defIds:_0xde4008}=_0xa0c7b4;return!_0xde4008||_0xde4008[_0x530128(0x157)]===0x0?_0x44217c:_0x44217c[_0x530128(0x14b)]===_0x530128(0x13a)&&((_0xb695b1=_0x44217c[_0x530128(0x15a)])!=null&&_0xb695b1[_0x530128(0x157)])?{..._0x44217c,'children':_0x44217c[_0x530128(0x15a)][_0x530128(0x179)](_0x3dfa7=>typeof _0x3dfa7[_0x530128(0x1a3)]['id']=='string'&&_0xde4008&&_0xde4008[_0x530128(0x164)](_0x3dfa7[_0x530128(0x1a3)]['id'])?{..._0x3dfa7,'attrs':{..._0x3dfa7[_0x530128(0x1a3)],'id':_0x3dfa7['attrs']['id']+_0xa0c7b4[_0x530128(0x117)]}}:_0x3dfa7)}:_0x44217c;}function _0x37a16d(){const _0x1b8668=_0x312948;return Math['random']()[_0x1b8668(0x1bb)](0x24)[_0x1b8668(0x1ae)](0x2,0x8);}_0x12ac21['displayName']=_0x312948(0x1c6);const _0x2fa222={'tag':_0x312948(0x12d),'attrs':{'xmlns':_0x312948(0x1a8),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x312948(0x15d),'height':_0x312948(0x15d)},'children':[{'tag':_0x312948(0x1c1),'attrs':{'fill':_0x312948(0x1c9),'d':_0x312948(0x112)}},{'tag':_0x312948(0x1c1),'attrs':{'fill':_0x312948(0x1c9),'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':_0x312948(0x114),'clipRule':'evenodd'}}]},_0x3193fb=_0xcd4ef7[_0x312948(0x182)](function(_0x254c5d,_0xbdc12b){const _0x48dc8e=_0x312948;return _0xcd4ef7['createElement'](_0x12ac21,Object[_0x48dc8e(0x121)]({},_0x254c5d,{'id':_0x48dc8e(0x153),'ref':_0xbdc12b,'icon':_0x2fa222}));});_0x3193fb[_0x312948(0x1cb)]=_0x312948(0x14f);class _0xae056b extends _0x327b3e[_0x312948(0x1c3)]{constructor(){const _0xa486d=_0x312948;super(...arguments),_0x16fd1b(this,'_sharedOperations',new Set()),_0x16fd1b(this,_0xa486d(0x13b),new Set());}[_0x312948(0x10f)](_0x1c72b9){const _0x5eccd6=_0x312948;return this[_0x5eccd6(0x174)][_0x5eccd6(0x13d)](_0x1c72b9),_0x327b3e[_0x5eccd6(0x146)](()=>this[_0x5eccd6(0x174)][_0x5eccd6(0x1a1)](_0x1c72b9));}[_0x312948(0x19f)](_0x4f0408){const _0x4ec4e2=_0x312948;return this['_reporters'][_0x4ec4e2(0x13d)](_0x4f0408),_0x327b3e[_0x4ec4e2(0x146)](()=>this[_0x4ec4e2(0x13b)]['delete'](_0x4f0408));}[_0x312948(0x19e)](_0x4688d3){const _0x5188dd=_0x312948;return this[_0x5188dd(0x174)]['has'](_0x4688d3);}[_0x312948(0x1a0)](_0x538a0f){const _0x2c5023=_0x312948;return Array[_0x2c5023(0x169)](this['_reporters'])[_0x2c5023(0x179)](_0xb0cdb8=>_0xb0cdb8(_0x538a0f));}}var _0x55a179=Object[_0x312948(0x19a)],_0x27da11=(_0x21d7e6,_0x3bc1b1,_0x1885ba,_0x18e63c)=>{const _0x3fc031=_0x312948;for(var _0x22d131=_0x18e63c>0x1?void 0x0:_0x18e63c?_0x55a179(_0x3bc1b1,_0x1885ba):_0x3bc1b1,_0x484470=_0x21d7e6[_0x3fc031(0x157)]-0x1,_0x137d12;_0x484470>=0x0;_0x484470--)(_0x137d12=_0x21d7e6[_0x484470])&&(_0x22d131=_0x137d12(_0x22d131)||_0x22d131);return _0x22d131;},_0x3c82ad=(_0x36ddad,_0x142f53)=>(_0x1d02e6,_0x149377)=>_0x142f53(_0x1d02e6,_0x149377,_0x36ddad);_0x566137[_0x312948(0x14d)]=class extends _0x327b3e[_0x312948(0x137)]{constructor(_0x413c5c,_0x25d17a,_0x308c39){const _0x4361b3=_0x312948;super(),_0x16fd1b(this,_0x4361b3(0x198),new Map()),(this[_0x4361b3(0x1ac)]=_0x413c5c,this[_0x4361b3(0x1ba)]=_0x25d17a,this[_0x4361b3(0x12f)]=_0x308c39,this['_init']());}async[_0x312948(0x1d3)](_0x5a1935){const _0x46bebb=_0x312948;return this[_0x46bebb(0x198)]['has'](_0x5a1935)||await this[_0x46bebb(0x15e)](_0x5a1935),this[_0x46bebb(0x198)][_0x46bebb(0x1cf)](_0x5a1935);}[_0x312948(0x19b)](_0x3bfacb){const _0x4180ae=_0x312948;var _0x347e60;return(_0x347e60=this[_0x4180ae(0x198)][_0x4180ae(0x1cf)](_0x3bfacb))!=null?_0x347e60:null;}[_0x312948(0x12c)](){const _0x573e08=_0x312948;this[_0x573e08(0x1ac)]['getTypeOfUnitAdded$'](_0x327b3e[_0x573e08(0x101)]['UNIVER_SHEET'])[_0x573e08(0x18a)](_0x58a4a9[_0x573e08(0x10c)](this['dispose$']))[_0x573e08(0x118)](async _0x456eb5=>{const _0x3b8814=_0x573e08,_0x197c82=_0x456eb5[_0x3b8814(0x113)]();this[_0x3b8814(0x198)][_0x3b8814(0x17b)](_0x197c82)||this['_startLiveShareCoordinator'](_0x197c82);}),this['_univerInstanceService'][_0x573e08(0x12a)](_0x327b3e[_0x573e08(0x101)][_0x573e08(0x132)])[_0x573e08(0x18a)](_0x58a4a9[_0x573e08(0x10c)](this[_0x573e08(0x106)]))['subscribe'](_0x362d53=>{const _0x4d0d47=_0x573e08,_0xf1dce6=_0x362d53[_0x4d0d47(0x113)](),_0x216209=this[_0x4d0d47(0x198)][_0x4d0d47(0x1cf)](_0xf1dce6);_0x216209==null||_0x216209[_0x4d0d47(0x1a4)]();});}async['_startLiveShareCoordinator'](_0x2a438f){const _0x70f93b=_0x312948,_0x20da07=await this[_0x70f93b(0x12f)][_0x70f93b(0x1ad)](_0x2a438f),_0x3f6e0b=this[_0x70f93b(0x1ba)][_0x70f93b(0x184)](_0x566137[_0x70f93b(0x1cc)],_0x2a438f,_0x20da07);return _0x3f6e0b[_0x70f93b(0x1c0)](),this[_0x70f93b(0x198)][_0x70f93b(0x185)](_0x2a438f,_0x3f6e0b),_0x3f6e0b;}},_0x566137[_0x312948(0x14d)]=_0x27da11([_0x3c82ad(0x0,_0x327b3e[_0x312948(0x13c)]),_0x3c82ad(0x1,_0x327b3e[_0x312948(0x10d)](_0x327b3e[_0x312948(0x1a7)])),_0x3c82ad(0x2,_0x327b3e['Inject'](_0x4d3bfc['CollaborationSessionService']))],_0x566137[_0x312948(0x14d)]);var _0x11fee9=(_0x226aef=>(_0x226aef[_0x312948(0x12e)]=_0x312948(0x127),_0x226aef['IDLE']='idle',_0x226aef[_0x312948(0x16d)]=_0x312948(0x10b),_0x226aef[_0x312948(0x15b)]=_0x312948(0x120),_0x226aef[_0x312948(0x1d5)]=_0x312948(0x141),_0x226aef))(_0x11fee9||{});const _0x94e2b7='SAME_OPERATION_SHARE_INTERVAL',_0x3ede1e=0xc8;_0x566137[_0x312948(0x1cc)]=class extends _0x327b3e[_0x312948(0x137)]{constructor(_0x322da1,_0x5eb7ba,_0x2892dc,_0x11c42d,_0x22ccf7){const _0x1fb37c=_0x312948;super(),_0x16fd1b(this,_0x1fb37c(0x192),new _0x23eb22[(_0x1fb37c(0x1db))](_0x1fb37c(0x178))),_0x16fd1b(this,_0x1fb37c(0x108),this['_status$'][_0x1fb37c(0x168)]()),_0x16fd1b(this,'_init',!0x1),_0x16fd1b(this,_0x1fb37c(0x1ca),null),_0x16fd1b(this,_0x1fb37c(0x190),null),(this[_0x1fb37c(0x160)]=_0x322da1,this[_0x1fb37c(0x1d8)]=_0x5eb7ba,this[_0x1fb37c(0x103)]=_0x2892dc,this[_0x1fb37c(0xfd)]=_0x11c42d,this[_0x1fb37c(0x122)]=_0x22ccf7);}get['_status'](){const _0x584e0c=_0x312948;return this[_0x584e0c(0x192)]['getValue']();}['dispose'](){const _0x47bdc2=_0x312948;var _0x2fd316;(_0x2fd316=this[_0x47bdc2(0x1ca)])==null||_0x2fd316[_0x47bdc2(0x1a4)](),this[_0x47bdc2(0x192)]['next'](_0x47bdc2(0x178)),this[_0x47bdc2(0x192)]['complete']();}[_0x312948(0x142)](){const _0x18ebc4=_0x312948;return this[_0x18ebc4(0x194)];}[_0x312948(0x1c0)](){const _0x2f7961=_0x312948;this[_0x2f7961(0x12c)]||(this['_init']=!0x0,this[_0x2f7961(0x1d8)][_0x2f7961(0x156)][_0x2f7961(0x18a)](_0x58a4a9[_0x2f7961(0x10c)](this[_0x2f7961(0x106)]))['subscribe'](_0x491230=>{const _0x3090a5=_0x2f7961;switch(_0x491230){case _0x4d3bfc[_0x3090a5(0x197)][_0x3090a5(0x12e)]:this[_0x3090a5(0x1da)]();break;case _0x4d3bfc[_0x3090a5(0x197)]['ONLINE']:this[_0x3090a5(0x115)]();break;}}),this[_0x2f7961(0x1d8)][_0x2f7961(0x136)][_0x2f7961(0x18a)](_0x58a4a9[_0x2f7961(0x10c)](this[_0x2f7961(0x106)]))[_0x2f7961(0x118)](_0x5d9bff=>{const _0x2d837e=_0x2f7961,{eventID:_0x5c1ca6}=_0x5d9bff;switch(_0x5c1ca6){case _0x357a77[_0x2d837e(0x1bf)][_0x2d837e(0x18b)]:this[_0x2d837e(0x183)](_0x5d9bff);break;case _0x357a77[_0x2d837e(0x1bf)][_0x2d837e(0x11a)]:this['_handleOperation'](_0x5d9bff);break;case _0x357a77['CollaborationEvent'][_0x2d837e(0x1b0)]:this[_0x2d837e(0x1b3)]();break;case _0x357a77[_0x2d837e(0x1bf)][_0x2d837e(0x11e)]:this[_0x2d837e(0x139)](_0x5d9bff);break;}}));}[_0x312948(0x177)](){const _0x262396=_0x312948;this[_0x262396(0x1d8)][_0x262396(0x165)]({'eventID':_0x357a77['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x262396(0x160)],'userID':this[_0x262396(0x1d8)][_0x262396(0x16c)]()}},this[_0x262396(0x160)]);}[_0x312948(0x17a)](){const _0x376536=_0x312948;this['_status']==='presenting'&&(this[_0x376536(0x192)]['next']('idle'),this[_0x376536(0x1d8)]['send']({'eventID':_0x357a77[_0x376536(0x1bf)][_0x376536(0x1b0)],'data':{'unitID':this[_0x376536(0x160)]}},this[_0x376536(0x160)]));}[_0x312948(0xf6)](){const _0x3f59e1=_0x312948;this[_0x3f59e1(0x194)]===_0x3f59e1(0x120)&&(this['_status$']['next']('following'),this[_0x3f59e1(0x11c)]());}[_0x312948(0x186)](){const _0x2a1393=_0x312948;this[_0x2a1393(0x194)]===_0x2a1393(0x10b)&&this[_0x2a1393(0x143)]();}[_0x312948(0x183)](_0x145d42){const _0x37ca98=_0x312948,{presenter:_0xf9fdbd}=_0x145d42['data'],_0x229ab4=this[_0x37ca98(0x1d8)]['getMemberID']();this[_0x37ca98(0x190)]=_0xf9fdbd,_0xf9fdbd===_0x229ab4?(this[_0x37ca98(0x143)](),this[_0x37ca98(0x152)]()):this[_0x37ca98(0x194)]!==_0x37ca98(0x120)&&(this[_0x37ca98(0x196)](),this[_0x37ca98(0x11c)]());}[_0x312948(0x123)](){const _0x46ec11=_0x312948,_0xfa07b4={'eventID':_0x357a77[_0x46ec11(0x1bf)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x46ec11(0x1d8)][_0x46ec11(0x165)](_0xfa07b4,this[_0x46ec11(0x160)]);}[_0x312948(0x1b3)](){const _0x379729=_0x312948;this[_0x379729(0x190)]=null,this['_status']!=='presenting'&&this[_0x379729(0xfc)]();}[_0x312948(0x139)](_0x5130b7){const _0x33b86d=_0x312948;if(this['_status']===_0x33b86d(0x10b)&&this[_0x33b86d(0x190)]===_0x5130b7[_0x33b86d(0x102)]['memberID']){const _0x241f11=_0x357a77[_0x33b86d(0xfa)](_0x5130b7['data'])[_0x33b86d(0x171)]['reverse']()[_0x33b86d(0x16f)](_0x4f97b7=>_0x4f97b7['id']===_0x3f6c09['InsertSheetMutation']['id']);if(_0x241f11){const _0x4b5c57=_0x241f11[_0x33b86d(0x1dc)]['unitId'],_0x4827e0=_0x241f11['params'][_0x33b86d(0xf8)]['id'];setTimeout(()=>{const _0x5cfb4a=_0x33b86d;this['_commandService'][_0x5cfb4a(0x15f)](_0x3f6c09[_0x5cfb4a(0x1b7)]['id'],{'unitId':_0x4b5c57,'subUnitId':_0x4827e0},{'fromCollab':!0x0});});}}}[_0x312948(0x152)](){const _0xd9f64=_0x312948;this[_0xd9f64(0x192)][_0xd9f64(0x1b4)](_0xd9f64(0x141));const _0x1bf261=new Map(),_0x26c7fe=this['_commandDisposable']=new _0x327b3e[(_0xd9f64(0x1ab))]();_0x26c7fe['add'](_0x327b3e[_0xd9f64(0x146)](()=>{const _0x58959e=_0xd9f64;_0x1bf261[_0x58959e(0x1c5)](_0x4a7f5f=>_0x4a7f5f[_0x58959e(0x1a5)]()),_0x1bf261[_0x58959e(0x189)]();})),_0x26c7fe[_0xd9f64(0x13d)](this[_0xd9f64(0x122)]['onCommandExecuted'](_0x35ffca=>{const _0x2c868a=_0xd9f64;var _0x17c5fa;if(_0x35ffca[_0x2c868a(0x140)]!==_0x327b3e[_0x2c868a(0x1b8)][_0x2c868a(0x10a)]||!this['_liveShareService'][_0x2c868a(0x19e)](_0x35ffca['id']))return;const {id:_0xf6d050}=_0x35ffca;let _0x182e74;_0x1bf261[_0x2c868a(0x17b)](_0xf6d050)?_0x182e74=_0x1bf261[_0x2c868a(0x1cf)](_0xf6d050):(_0x182e74=new _0x23eb22[(_0x2c868a(0x1a6))](),_0x1bf261[_0x2c868a(0x185)](_0xf6d050,_0x182e74),_0x182e74['pipe'](_0x58a4a9[_0x2c868a(0x129)]((_0x17c5fa=this[_0x2c868a(0x103)][_0x2c868a(0x16e)](_0x94e2b7))!=null?_0x17c5fa:_0x3ede1e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c868a(0x118)](_0x36e7de=>{const _0x1d8221=_0x2c868a;this[_0x1d8221(0x1d8)][_0x1d8221(0x165)]({'eventID':_0x357a77[_0x1d8221(0x1bf)][_0x1d8221(0x11a)],'data':{'unitID':this[_0x1d8221(0x160)],'operations':{[_0x36e7de['id']]:{'id':_0x36e7de['id'],'params':JSON[_0x1d8221(0xf9)](_0x36e7de[_0x1d8221(0x1dc)])}}}},this[_0x1d8221(0x160)]);})),_0x182e74[_0x2c868a(0x1b4)](_0x35ffca);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0xd9f64(0x1c5)](_0x47dca6=>this[_0xd9f64(0x1d8)][_0xd9f64(0x165)]({'eventID':_0x357a77[_0xd9f64(0x1bf)][_0xd9f64(0x11a)],'data':{'unitID':this[_0xd9f64(0x160)],'operations':{[_0x47dca6['id']]:{'id':_0x47dca6['id'],'params':JSON[_0xd9f64(0xf9)](_0x47dca6[_0xd9f64(0x1dc)])}}}},this[_0xd9f64(0x160)]));}['_stopPresenting'](){const _0x59dd49=_0x312948;var _0x2af2b7;this[_0x59dd49(0x192)]['next'](_0x59dd49(0x178)),(_0x2af2b7=this[_0x59dd49(0x1ca)])==null||_0x2af2b7['dispose'](),this[_0x59dd49(0x1ca)]=null;}[_0x312948(0x11c)](){const _0x4c2b51=_0x312948;var _0x272609;(_0x272609=this[_0x4c2b51(0x1ca)])==null||_0x272609[_0x4c2b51(0x1a4)](),this[_0x4c2b51(0x192)][_0x4c2b51(0x1b4)]('following');}[_0x312948(0xfc)](){const _0x320f3e=_0x312948;var _0x3d7154;this['_status$'][_0x320f3e(0x1b4)]('idle'),(_0x3d7154=this[_0x320f3e(0x1ca)])==null||_0x3d7154[_0x320f3e(0x1a4)](),this['_commandDisposable']=null;}[_0x312948(0x143)](){const _0x5f42bc=_0x312948;var _0x50bef2;this['_status$']['next']('not-following'),(_0x50bef2=this[_0x5f42bc(0x1ca)])==null||_0x50bef2['dispose']();}[_0x312948(0x1dd)](_0x194f2b){const _0x1ef41d=_0x312948;if([_0x1ef41d(0x141),_0x1ef41d(0x120),_0x1ef41d(0x127)][_0x1ef41d(0x164)](this['_status'])||!_0x194f2b[_0x1ef41d(0x102)][_0x1ef41d(0x11b)]||_0x194f2b['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x1ef41d(0x194)]===_0x1ef41d(0x178)&&this[_0x1ef41d(0x11c)]();const _0x56065a=_0x194f2b['data']['operations'];Object[_0x1ef41d(0x105)](_0x56065a)['forEach'](_0x306035=>{const _0x1005be=_0x1ef41d;this[_0x1005be(0x122)]['executeCommand'](_0x306035['id'],_0x306035[_0x1005be(0x1dc)]?JSON[_0x1005be(0x19d)](_0x306035[_0x1005be(0x1dc)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x135bde=_0x312948;var _0x2cfda3;this[_0x135bde(0x192)][_0x135bde(0x1b4)](_0x135bde(0x127)),(_0x2cfda3=this[_0x135bde(0x1ca)])==null||_0x2cfda3['dispose']();}[_0x312948(0x115)](){const _0x140af5=_0x312948;this[_0x140af5(0x192)][_0x140af5(0x1b4)](_0x140af5(0x178)),this[_0x140af5(0x123)]();}},_0x566137['LiveShareCoordinator']=_0x27da11([_0x3c82ad(0x2,_0x327b3e[_0x312948(0x1d2)]),_0x3c82ad(0x3,_0x327b3e['Inject'](_0xae056b)),_0x3c82ad(0x4,_0x327b3e['ICommandService'])],_0x566137[_0x312948(0x1cc)]);function _0x5f2d24(){const _0x569424=_0x312948,_0x459906=_0x331cdd[_0x569424(0x14c)](_0x566137[_0x569424(0x14d)]),_0x5528c6=_0x331cdd['useDependency'](_0x327b3e['IUniverInstanceService']),_0x59f333=_0x331cdd[_0x569424(0x1d4)](()=>_0x5528c6[_0x569424(0x155)](_0x327b3e[_0x569424(0x101)][_0x569424(0x132)]),void 0x0,!0x1,[]),[_0x2d30b4,_0x33e496]=_0xcd4ef7[_0x569424(0x1bc)](null),[_0x370ab6,_0x4e865c]=_0xcd4ef7['useState'](_0x11fee9['IDLE']),_0x58bbb8=_0xcd4ef7[_0x569424(0x147)](null);return _0xcd4ef7[_0x569424(0x13e)](()=>(_0x59f333&&_0x459906[_0x569424(0x1d3)](_0x59f333[_0x569424(0x113)]())['then'](_0x34a57b=>{const _0x374d1e=_0x569424;_0x33e496(_0x34a57b),_0x58bbb8[_0x374d1e(0x1b5)]=_0x34a57b[_0x374d1e(0x108)][_0x374d1e(0x118)](_0xb280d2=>{_0x4e865c(_0xb280d2);});}),()=>{const _0x4797d8=_0x569424;var _0x10d99e;(_0x10d99e=_0x58bbb8[_0x4797d8(0x1b5)])==null||_0x10d99e[_0x4797d8(0x1aa)](),_0x58bbb8[_0x4797d8(0x1b5)]=null;}),[_0x59f333,_0x459906]),_0x2d30b4?_0x3f5bcc['jsx'](_0x3a6087[_0x569424(0xf5)],{'align':_0x569424(0x1b6),'disabled':_0x370ab6===_0x11fee9[_0x569424(0x12e)],'className':_0x569424(0x109),'overlay':_0x3f5bcc[_0x569424(0x162)](_0x1aaf83,{'status':_0x370ab6,'coordinator':_0x2d30b4}),'children':_0x3f5bcc['jsx'](_0x569424(0x18c),{'className':_0x3a6087[_0x569424(0x18f)](_0x569424(0x15c),{'univer-cursor-not-allowed':_0x370ab6===_0x11fee9[_0x569424(0x12e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x370ab6!==_0x11fee9['OFFLINE']}),'type':_0x569424(0x18c),'children':_0x3f5bcc[_0x569424(0x162)](_0x3193fb,{'className':_0x569424(0x187)})})}):null;}function _0x1aaf83(_0x266a6){const _0x4f93de=_0x312948,{status:_0x15fc2c,coordinator:_0x3f7035}=_0x266a6;switch(_0x15fc2c){case _0x11fee9[_0x4f93de(0x158)]:return _0x3f5bcc[_0x4f93de(0x162)](_0xbc16c0,{'coordinator':_0x3f7035});case _0x11fee9[_0x4f93de(0x16d)]:return _0x3f5bcc[_0x4f93de(0x162)](_0x381344,{'coordinator':_0x3f7035});case _0x11fee9[_0x4f93de(0x15b)]:return _0x3f5bcc[_0x4f93de(0x162)](_0x2b5b92,{'coordinator':_0x3f7035});case _0x11fee9[_0x4f93de(0x12e)]:return _0x3f5bcc[_0x4f93de(0x162)](_0x1cb916,{});case _0x11fee9['PRESENTING']:return _0x3f5bcc[_0x4f93de(0x162)](_0x25e59b,{'coordinator':_0x3f7035});default:return null;}}function _0xbc16c0(_0x3187a8){const _0x220628=_0x312948,{coordinator:_0x4bfd01}=_0x3187a8;return _0x3f5bcc[_0x220628(0x170)](_0x3f5bcc[_0x220628(0xfe)],{'children':[_0x3f5bcc[_0x220628(0x162)](_0x220628(0x100),{'className':_0x220628(0xf1),'children':_0x220628(0x180)}),_0x3f5bcc[_0x220628(0x162)](_0x3a6087[_0x220628(0x133)],{'onClick':()=>_0x4bfd01[_0x220628(0x177)](),'children':_0x220628(0x1be)})]});}function _0x381344(_0x3910da){const _0x1db0b4=_0x312948,{coordinator:_0x3c0410}=_0x3910da;return _0x3f5bcc[_0x1db0b4(0x170)](_0x3f5bcc[_0x1db0b4(0xfe)],{'children':[_0x3f5bcc['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1db0b4(0x181)}),_0x3f5bcc[_0x1db0b4(0x162)](_0x3a6087[_0x1db0b4(0x133)],{'onClick':()=>_0x3c0410[_0x1db0b4(0x186)](),'children':_0x1db0b4(0x167)})]});}function _0x2b5b92(_0x2f32fc){const _0x47c308=_0x312948,{coordinator:_0x28ed18}=_0x2f32fc;return _0x3f5bcc[_0x47c308(0x170)](_0x3f5bcc[_0x47c308(0xfe)],{'children':[_0x3f5bcc[_0x47c308(0x162)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3f5bcc['jsx'](_0x3a6087['Button'],{'variant':_0x47c308(0x18e),'onClick':()=>_0x28ed18[_0x47c308(0xf6)](),'children':_0x47c308(0x119)})]});}function _0x25e59b(_0x35f604){const _0x5aae11=_0x312948,{coordinator:_0x195185}=_0x35f604;return _0x3f5bcc[_0x5aae11(0x170)](_0x3f5bcc[_0x5aae11(0xfe)],{'children':[_0x3f5bcc[_0x5aae11(0x162)](_0x5aae11(0x100),{'className':_0x5aae11(0xf1),'children':_0x5aae11(0x1c7)}),_0x3f5bcc[_0x5aae11(0x162)](_0x3a6087['Button'],{'variant':_0x5aae11(0x1a2),'onClick':()=>_0x195185[_0x5aae11(0x17a)](),'children':'Stop\x20presenting'})]});}function _0x1cb916(){const _0x379c44=_0x312948;return _0x3f5bcc['jsx'](_0x3f5bcc[_0x379c44(0xfe)],{'children':'You\x27are\x20offline.'});}var _0x42a35b=Object[_0x312948(0x19a)],_0x58359a=(_0x163982,_0x24ab97,_0x5eadf2,_0x386deb)=>{const _0x8920e8=_0x312948;for(var _0x257c79=_0x386deb>0x1?void 0x0:_0x386deb?_0x42a35b(_0x24ab97,_0x5eadf2):_0x24ab97,_0x2169fd=_0x163982[_0x8920e8(0x157)]-0x1,_0x12c7e7;_0x2169fd>=0x0;_0x2169fd--)(_0x12c7e7=_0x163982[_0x2169fd])&&(_0x257c79=_0x12c7e7(_0x257c79)||_0x257c79);return _0x257c79;},_0x40f129=(_0x1d64de,_0x25b160)=>(_0x5b8768,_0xaf1b1a)=>_0x25b160(_0x5b8768,_0xaf1b1a,_0x1d64de);_0x566137[_0x312948(0x1d6)]=class extends _0x327b3e['Disposable']{constructor(_0x25c600,_0x3aa941){const _0x579e1=_0x312948;super(),this[_0x579e1(0x1ba)]=_0x25c600,this[_0x579e1(0xfb)]=_0x3aa941,this[_0x579e1(0x126)]();}['_mountLiveShare'](){const _0x1a010d=_0x312948;this[_0x1a010d(0x17f)](this['_uiPartsService'][_0x1a010d(0x110)](_0x331cdd[_0x1a010d(0x151)][_0x1a010d(0x10e)],()=>_0x331cdd[_0x1a010d(0x107)](_0x5f2d24,this[_0x1a010d(0x1ba)])));}},_0x566137['DesktopLiveShareController']=_0x58359a([_0x40f129(0x0,_0x327b3e[_0x312948(0x10d)](_0x327b3e[_0x312948(0x1a7)])),_0x40f129(0x1,_0x331cdd['IUIPartsService'])],_0x566137[_0x312948(0x1d6)]);const _0x5a8680=_0x312948(0x14e),_0x263335={};var _0x19ebe8=Object['getOwnPropertyDescriptor'],_0x450570=(_0x4545b0,_0x3c50f7,_0x90890e,_0x35d5ae)=>{const _0x2044da=_0x312948;for(var _0x2cf634=_0x35d5ae>0x1?void 0x0:_0x35d5ae?_0x19ebe8(_0x3c50f7,_0x90890e):_0x3c50f7,_0x102be7=_0x4545b0[_0x2044da(0x157)]-0x1,_0x37063f;_0x102be7>=0x0;_0x102be7--)(_0x37063f=_0x4545b0[_0x102be7])&&(_0x2cf634=_0x37063f(_0x2cf634)||_0x2cf634);return _0x2cf634;},_0x257f4d=(_0x14ec59,_0x2775ac)=>(_0x4149d9,_0x393516)=>_0x2775ac(_0x4149d9,_0x393516,_0x14ec59);let _0x51dd19=class extends _0x327b3e[_0x312948(0x1c3)]{constructor(_0x1ae35e){const _0x460ec0=_0x312948;super(),this[_0x460ec0(0xfd)]=_0x1ae35e,this['_init']();}[_0x312948(0x12c)](){const _0x19375f=_0x312948;[_0x1ea554[_0x19375f(0x125)]['id'],_0x1ea554[_0x19375f(0xf0)]['id'],_0x3f6c09[_0x19375f(0x1b7)]['id']][_0x19375f(0x1c5)](_0x15cba1=>{const _0x4eb7e2=_0x19375f;this[_0x4eb7e2(0x17f)](this['_liveShareService'][_0x4eb7e2(0x10f)](_0x15cba1));});}};_0x51dd19=_0x450570([_0x257f4d(0x0,_0x327b3e[_0x312948(0x10d)](_0xae056b))],_0x51dd19);var _0x209e83=Object[_0x312948(0x188)],_0x5f4a19=Object[_0x312948(0x19a)],_0x357052=(_0x5af32f,_0x3fb84a,_0x3bcc29)=>_0x3fb84a in _0x5af32f?_0x209e83(_0x5af32f,_0x3fb84a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bcc29}):_0x5af32f[_0x3fb84a]=_0x3bcc29,_0x77e233=(_0xd62f2b,_0x38680c,_0x56b3d8,_0x56019e)=>{const _0x152e1f=_0x312948;for(var _0x1187c0=_0x56019e>0x1?void 0x0:_0x56019e?_0x5f4a19(_0x38680c,_0x56b3d8):_0x38680c,_0xb39cda=_0xd62f2b[_0x152e1f(0x157)]-0x1,_0x2e2ae5;_0xb39cda>=0x0;_0xb39cda--)(_0x2e2ae5=_0xd62f2b[_0xb39cda])&&(_0x1187c0=_0x2e2ae5(_0x1187c0)||_0x1187c0);return _0x1187c0;},_0x4b0f74=(_0x1e0b80,_0x1729f3)=>(_0x21ad03,_0x2c644b)=>_0x1729f3(_0x21ad03,_0x2c644b,_0x1e0b80),_0x357f3b=(_0x53605c,_0x53a262,_0x5cc43d)=>_0x357052(_0x53605c,typeof _0x53a262!=_0x312948(0x145)?_0x53a262+'':_0x53a262,_0x5cc43d);const _0x1c6a30=_0x312948(0x176);_0x566137[_0x312948(0x163)]=class extends _0x327b3e['Plugin']{constructor(_0x4e53a3=_0x263335,_0x20d349,_0x586271){const _0x3e5d44=_0x312948;super(),this[_0x3e5d44(0x130)]=_0x4e53a3,this[_0x3e5d44(0x1ba)]=_0x20d349,this['_configService']=_0x586271;const {..._0x229707}=_0x327b3e[_0x3e5d44(0x17d)]({},_0x263335,this[_0x3e5d44(0x130)]);this[_0x3e5d44(0x103)]['setConfig'](_0x5a8680,_0x229707);}[_0x312948(0x199)](){const _0x2c394d=_0x312948;_0x327b3e['registerDependencies'](this[_0x2c394d(0x1ba)],_0x327b3e[_0x2c394d(0x128)]([[_0xae056b],[_0x566137[_0x2c394d(0x14d)]],[_0x51dd19],[_0x566137[_0x2c394d(0x1d6)]]],this[_0x2c394d(0x130)][_0x2c394d(0x17e)])),_0x327b3e[_0x2c394d(0xf4)](this[_0x2c394d(0x1ba)],[[_0x51dd19]]);}[_0x312948(0x16a)](){const _0x347b98=_0x312948;_0x327b3e[_0x347b98(0xf4)](this[_0x347b98(0x1ba)],[[_0x566137[_0x347b98(0x1d6)]]]);}},_0x357f3b(_0x566137[_0x312948(0x163)],_0x312948(0x140),_0x327b3e[_0x312948(0x101)][_0x312948(0x154)]),_0x357f3b(_0x566137[_0x312948(0x163)],_0x312948(0x1cd),_0x1c6a30),_0x566137[_0x312948(0x163)]=_0x77e233([_0x327b3e[_0x312948(0x1d7)](_0x4d3bfc[_0x312948(0x1b9)]),_0x4b0f74(0x1,_0x327b3e[_0x312948(0x10d)](_0x327b3e[_0x312948(0x1a7)])),_0x4b0f74(0x2,_0x327b3e[_0x312948(0x1d2)])],_0x566137[_0x312948(0x163)]),_0x566137[_0x312948(0x175)]=_0x5f2d24,_0x566137[_0x312948(0x191)]=_0xae056b,_0x566137[_0x312948(0x135)]=_0x11fee9,Object[_0x312948(0x188)](_0x566137,Symbol[_0x312948(0x1d0)],{'value':_0x312948(0x1c2)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.0-insiders.20251227-453e4ff",
3
+ "version": "0.15.0-insiders.20251227-c108ce3",
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.1.0",
60
- "@univerjs-pro/collaboration": "0.15.0-insiders.20251227-453e4ff",
61
- "@univerjs-pro/collaboration-client": "0.15.0-insiders.20251227-453e4ff",
62
- "@univerjs/core": "0.15.0-insiders.20251227-453e4ff",
63
- "@univerjs/design": "0.15.0-insiders.20251227-453e4ff",
64
- "@univerjs/engine-render": "0.15.0-insiders.20251227-453e4ff",
65
- "@univerjs/sheets": "0.15.0-insiders.20251227-453e4ff",
66
- "@univerjs/sheets-ui": "0.15.0-insiders.20251227-453e4ff",
67
- "@univerjs/ui": "0.15.0-insiders.20251227-453e4ff"
60
+ "@univerjs-pro/collaboration": "0.15.0-insiders.20251227-c108ce3",
61
+ "@univerjs-pro/collaboration-client": "0.15.0-insiders.20251227-c108ce3",
62
+ "@univerjs/core": "0.15.0-insiders.20251227-c108ce3",
63
+ "@univerjs/design": "0.15.0-insiders.20251227-c108ce3",
64
+ "@univerjs/sheets": "0.15.0-insiders.20251227-c108ce3",
65
+ "@univerjs/engine-render": "0.15.0-insiders.20251227-c108ce3",
66
+ "@univerjs/sheets-ui": "0.15.0-insiders.20251227-c108ce3",
67
+ "@univerjs/ui": "0.15.0-insiders.20251227-c108ce3"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -74,7 +74,7 @@
74
74
  "typescript": "^5.9.3",
75
75
  "vite": "^7.3.0",
76
76
  "vitest": "^4.0.16",
77
- "@univerjs-infra/shared": "0.14.0",
77
+ "@univerjs-infra/shared": "0.15.0",
78
78
  "@univerjs/protocol": "0.1.48"
79
79
  },
80
80
  "scripts": {