@univerjs-pro/live-share 0.12.0 → 0.12.1-nightly.202511221011
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x25273f=_0x2d6d;(function(_0x309964,_0x2c0021){const _0x4a2027=_0x2d6d,_0x64488d=_0x309964();while(!![]){try{const _0x22176e=parseInt(_0x4a2027(0x140))/0x1*(-parseInt(_0x4a2027(0x14a))/0x2)+parseInt(_0x4a2027(0x14d))/0x3*(-parseInt(_0x4a2027(0x136))/0x4)+-parseInt(_0x4a2027(0x125))/0x5+-parseInt(_0x4a2027(0x149))/0x6+parseInt(_0x4a2027(0x127))/0x7*(parseInt(_0x4a2027(0x143))/0x8)+-parseInt(_0x4a2027(0x12c))/0x9+parseInt(_0x4a2027(0x129))/0xa;if(_0x22176e===_0x2c0021)break;else _0x64488d['push'](_0x64488d['shift']());}catch(_0x2ef181){_0x64488d['push'](_0x64488d['shift']());}}}(_0x310a,0x9e866));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[_0x25273f(0x145)]{[_0x25273f(0x13c)](_0x5dd1ce,_0x3731a5,_0x445884,_0x4c1d52,_0x3d4bf9){const _0x5d5bb6=_0x25273f,_0x5b69da=_0x5dd1ce['get'](n[_0x5d5bb6(0x130)]),_0x40284d=_0x5dd1ce['get'](g[_0x5d5bb6(0x14e)]),_0x3062fe=_0x3731a5[_0x5d5bb6(0x12b)](),_0x3f0e19=_0x3731a5[_0x5d5bb6(0x139)](),_0x5f3627=_0x5b69da[_0x5d5bb6(0x144)](_0x3062fe);(_0x5f3627==null?void 0x0:_0x5f3627[_0x5d5bb6(0x138)]())!==n[_0x5d5bb6(0x12f)][_0x5d5bb6(0x128)]||(_0x445884['getSheetId']()!==_0x3f0e19[_0x5d5bb6(0x135)]()&&this[_0x5d5bb6(0x132)][_0x5d5bb6(0x12d)](u[_0x5d5bb6(0x14b)]['id'],{'unitId':_0x3062fe,'subUnitId':_0x445884[_0x5d5bb6(0x135)]()}),!_0x40284d['getRenderById'](_0x3062fe))||_0x3d4bf9[_0x5d5bb6(0x134)](f[_0x5d5bb6(0x13b)]['id'],{'unitId':_0x3731a5['getUnitId'](),'sheetId':_0x445884[_0x5d5bb6(0x135)](),'sheetViewStartRow':_0x4c1d52[_0x5d5bb6(0x141)],'sheetViewStartColumn':_0x4c1d52[_0x5d5bb6(0x148)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x310a(){const _0x1adda5=['FRange','startPresenting','getLiveShareStatus','startColumn','6972oYtJGS','6SSFFtL','SetWorksheetActiveOperation','FEnum','3LuepFk','IRenderManagerService','_injector','506605dvFQnf','FUniver','2569Quqeds','PRESENTING','26222680cGAauM','tryStartPresenting','getUnitId','2383209XTlndU','executeCommand','getActiveWorkbook','LiveShareStatus','LiveShareController','extend','_commandService','get','syncExecuteCommand','getSheetId','3228268zUBesK','stopPresenting','getStatus','getActiveSheet','LiveShareStatusEnum','SetScrollOperation','_initialize','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','332382wwpFCd','startRow','getId','4328oNDYYg','getLiveShareCoordinatorSync'];_0x310a=function(){return _0x1adda5;};return _0x310a();}d[_0x25273f(0x145)][_0x25273f(0x131)](w);class C extends a[_0x25273f(0x126)]{[_0x25273f(0x147)](){const _0x486672=_0x25273f;var _0x2ae095,_0x440011;const _0x3303fb=this[_0x486672(0x14f)][_0x486672(0x133)](n[_0x486672(0x130)]),_0x1ecdc1=(_0x2ae095=this[_0x486672(0x12e)]())==null?void 0x0:_0x2ae095[_0x486672(0x142)]();if(!_0x1ecdc1)throw new Error(_0x486672(0x13d));const _0x2a70a4=_0x3303fb['getLiveShareCoordinatorSync'](_0x1ecdc1);return(_0x440011=_0x2a70a4==null?void 0x0:_0x2a70a4[_0x486672(0x138)]())!=null?_0x440011:n[_0x486672(0x12f)]['IDLE'];}[_0x25273f(0x13f)](){const _0x4b23f3=_0x25273f;var _0x3b4e00;const _0xf2e146=this[_0x4b23f3(0x14f)]['get'](n[_0x4b23f3(0x130)]),_0x52df30=(_0x3b4e00=this['getActiveWorkbook']())==null?void 0x0:_0x3b4e00[_0x4b23f3(0x142)]();if(!_0x52df30)throw new Error(_0x4b23f3(0x13d));const _0x162b4b=_0xf2e146['getLiveShareCoordinatorSync'](_0x52df30);if(!_0x162b4b)throw new Error(_0x4b23f3(0x13e));_0x162b4b[_0x4b23f3(0x13f)]();}['stopFollowing'](){const _0x27d8b6=_0x25273f;var _0x11a06a;const _0x5c9535=this['_injector'][_0x27d8b6(0x133)](n['LiveShareController']),_0x3ddc7c=(_0x11a06a=this[_0x27d8b6(0x12e)]())==null?void 0x0:_0x11a06a[_0x27d8b6(0x142)]();if(!_0x3ddc7c)throw new Error('No\x20active\x20workbook\x20found.');const _0x114c73=_0x5c9535[_0x27d8b6(0x144)](_0x3ddc7c);if(!_0x114c73)throw new Error(_0x27d8b6(0x13e));_0x114c73['stopFollowing']();}[_0x25273f(0x146)](){const _0x18c7ae=_0x25273f;var _0x2b8983;const _0x26ca04=this[_0x18c7ae(0x14f)]['get'](n[_0x18c7ae(0x130)]),_0x510c66=(_0x2b8983=this['getActiveWorkbook']())==null?void 0x0:_0x2b8983[_0x18c7ae(0x142)]();if(!_0x510c66)throw new Error('No\x20active\x20workbook\x20found.');const _0x36f615=_0x26ca04[_0x18c7ae(0x144)](_0x510c66);if(!_0x36f615)throw new Error(_0x18c7ae(0x13e));_0x36f615[_0x18c7ae(0x12a)]();}[_0x25273f(0x137)](){const _0x15ac09=_0x25273f;var _0x3fbd87;const _0x472ce4=this[_0x15ac09(0x14f)]['get'](n[_0x15ac09(0x130)]),_0x4ae473=(_0x3fbd87=this[_0x15ac09(0x12e)]())==null?void 0x0:_0x3fbd87['getId']();if(!_0x4ae473)throw new Error(_0x15ac09(0x13d));const _0x2fc0a0=_0x472ce4[_0x15ac09(0x144)](_0x4ae473);if(!_0x2fc0a0)throw new Error(_0x15ac09(0x13e));_0x2fc0a0['stopPresenting']();}}a[_0x25273f(0x126)][_0x25273f(0x131)](C);function _0x2d6d(_0x10ed08,_0x46d1bc){const _0x310af7=_0x310a();return _0x2d6d=function(_0x2d6d0d,_0x4291a7){_0x2d6d0d=_0x2d6d0d-0x125;let _0x4e6b6a=_0x310af7[_0x2d6d0d];return _0x4e6b6a;},_0x2d6d(_0x10ed08,_0x46d1bc);}class L extends a[_0x25273f(0x14c)]{get[_0x25273f(0x13a)](){return n['LiveShareStatus'];}}a['FEnum']['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4d7335=_0xc5b7;(function(_0x4076d4,_0x599cff){const _0xb85935=_0xc5b7,_0x4245f6=_0x4076d4();while(!![]){try{const _0x48cbc2=parseInt(_0xb85935(0xcf))/0x1*(parseInt(_0xb85935(0x114))/0x2)+-parseInt(_0xb85935(0xe1))/0x3+-parseInt(_0xb85935(0xb6))/0x4*(-parseInt(_0xb85935(0xd0))/0x5)+-parseInt(_0xb85935(0x12f))/0x6+parseInt(_0xb85935(0x14d))/0x7+parseInt(_0xb85935(0x150))/0x8+-parseInt(_0xb85935(0xb3))/0x9*(parseInt(_0xb85935(0x169))/0xa);if(_0x48cbc2===_0x599cff)break;else _0x4245f6['push'](_0x4245f6['shift']());}catch(_0x27bcb8){_0x4245f6['push'](_0x4245f6['shift']());}}}(_0x54f1,0xe4b36));var T=Object[_0x4d7335(0x164)],U=(_0x3ceb88,_0x2bab32,_0x361b6c)=>_0x2bab32 in _0x3ceb88?T(_0x3ceb88,_0x2bab32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x361b6c}):_0x3ceb88[_0x2bab32]=_0x361b6c,_=(_0x4f7302,_0x1da946,_0x10ffd1)=>U(_0x4f7302,typeof _0x1da946!=_0x4d7335(0x17a)?_0x1da946+'':_0x1da946,_0x10ffd1);Object[_0x4d7335(0x164)](exports,Symbol[_0x4d7335(0x12e)],{'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:_0x25c710,..._0x5e80c6}){const _0x44f9f0=_0x4d7335,{icon:_0x472e0f,id:_0x9329a4,className:_0x107c6c,extend:_0x1c8798,..._0x35bfae}=_0x5e80c6,_0x152fa4=(_0x44f9f0(0x177)+_0x9329a4+'\x20'+(_0x107c6c||''))[_0x44f9f0(0x112)](),_0xdbdade=v[_0x44f9f0(0xd6)]('_'+H());return j(_0x472e0f,''+_0x9329a4,{'defIds':_0x472e0f[_0x44f9f0(0xce)],'idSuffix':_0xdbdade[_0x44f9f0(0x16f)]},{'ref':_0x25c710,'className':_0x152fa4,..._0x35bfae},_0x1c8798);}function j(_0x723a70,_0x151451,_0x518b6a,_0x17030a,_0x2649c6){const _0x1db93f=_0x4d7335;return v[_0x1db93f(0x162)](_0x723a70[_0x1db93f(0x155)],{'key':_0x151451,...y(_0x723a70,_0x518b6a,_0x2649c6),..._0x17030a},(F(_0x723a70,_0x518b6a)['children']||[])[_0x1db93f(0x145)]((_0x5dfa39,_0x14812f)=>j(_0x5dfa39,_0x151451+'-'+_0x723a70[_0x1db93f(0x155)]+'-'+_0x14812f,_0x518b6a,void 0x0,_0x2649c6)));}function y(_0x39fb89,_0x15794e,_0x2d480d){const _0xc62140=_0x4d7335,_0x711b00={..._0x39fb89[_0xc62140(0x165)]};_0x2d480d!=null&&_0x2d480d[_0xc62140(0x17f)]&&_0x711b00[_0xc62140(0x13b)]===_0xc62140(0x17f)&&(_0x711b00[_0xc62140(0x13b)]=_0x2d480d[_0xc62140(0x17f)]),_0x39fb89[_0xc62140(0x155)]===_0xc62140(0x110)&&_0x711b00['id']&&(_0x711b00['id']=_0x711b00['id']+_0x15794e[_0xc62140(0xed)]),Object[_0xc62140(0x154)](_0x711b00)[_0xc62140(0x130)](([_0x26a752,_0x2725d3])=>{const _0x4e9793=_0xc62140;_0x26a752==='mask'&&typeof _0x2725d3=='string'&&(_0x711b00[_0x26a752]=_0x2725d3[_0x4e9793(0xeb)](/url\(#(.*)\)/,_0x4e9793(0x136)+_0x15794e[_0x4e9793(0xed)]+')'));});const {defIds:_0x1f8344}=_0x15794e;return!_0x1f8344||_0x1f8344[_0xc62140(0xd7)]===0x0||(_0x39fb89[_0xc62140(0x155)]===_0xc62140(0x122)&&_0x711b00[_0xc62140(0x178)]&&(_0x711b00[_0xc62140(0x178)]=_0x711b00[_0xc62140(0x178)]+_0x15794e[_0xc62140(0xed)]),Object[_0xc62140(0x154)](_0x711b00)['forEach'](([_0x375646,_0x122ce6])=>{const _0x439483=_0xc62140;typeof _0x122ce6==_0x439483(0x12b)&&(_0x711b00[_0x375646]=_0x122ce6[_0x439483(0xeb)](/url\(#(.*)\)/,'url(#$1'+_0x15794e[_0x439483(0xed)]+')'));})),_0x711b00;}function F(_0x1b11e3,_0x3fdb1f){const _0x3ccb20=_0x4d7335;var _0x1babe5;const {defIds:_0x40e581}=_0x3fdb1f;return!_0x40e581||_0x40e581[_0x3ccb20(0xd7)]===0x0?_0x1b11e3:_0x1b11e3['tag']===_0x3ccb20(0x103)&&((_0x1babe5=_0x1b11e3[_0x3ccb20(0xef)])!=null&&_0x1babe5[_0x3ccb20(0xd7)])?{..._0x1b11e3,'children':_0x1b11e3[_0x3ccb20(0xef)][_0x3ccb20(0x145)](_0x1e8979=>typeof _0x1e8979[_0x3ccb20(0x165)]['id']==_0x3ccb20(0x12b)&&_0x40e581&&_0x40e581[_0x3ccb20(0x13a)](_0x1e8979[_0x3ccb20(0x165)]['id'])?{..._0x1e8979,'attrs':{..._0x1e8979[_0x3ccb20(0x165)],'id':_0x1e8979[_0x3ccb20(0x165)]['id']+_0x3fdb1f[_0x3ccb20(0xed)]}}:_0x1e8979)}:_0x1b11e3;}function H(){const _0x3d3aad=_0x4d7335;return Math['random']()[_0x3d3aad(0x129)](0x24)[_0x3d3aad(0x13e)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x4d7335(0xd5),'attrs':{'xmlns':_0x4d7335(0xc1),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x4d7335(0x172)},'children':[{'tag':'path','attrs':{'fill':_0x4d7335(0x17d),'d':_0x4d7335(0x15c)}},{'tag':_0x4d7335(0x182),'attrs':{'fill':_0x4d7335(0x17d),'d':_0x4d7335(0xd4),'fillRule':_0x4d7335(0x146),'clipRule':'evenodd'}}]},R=v[_0x4d7335(0x10d)](function(_0x2aa26e,_0x19065a){const _0xa860ca=_0x4d7335;return v[_0xa860ca(0x162)](x,Object[_0xa860ca(0x126)]({},_0x2aa26e,{'id':_0xa860ca(0x159),'ref':_0x19065a,'icon':V}));});R[_0x4d7335(0xbc)]=_0x4d7335(0xb5);class E extends o[_0x4d7335(0x124)]{constructor(){const _0x496e70=_0x4d7335;super(...arguments),_(this,_0x496e70(0x111),new Set()),_(this,_0x496e70(0xdb),new Set());}[_0x4d7335(0x17c)](_0x19115c){const _0x2e14f7=_0x4d7335;return this['_sharedOperations']['add'](_0x19115c),o[_0x2e14f7(0xff)](()=>this[_0x2e14f7(0x111)][_0x2e14f7(0x16e)](_0x19115c));}[_0x4d7335(0x10b)](_0x3b6f07){const _0x25fd86=_0x4d7335;return this[_0x25fd86(0xdb)][_0x25fd86(0x10a)](_0x3b6f07),o[_0x25fd86(0xff)](()=>this[_0x25fd86(0xdb)][_0x25fd86(0x16e)](_0x3b6f07));}[_0x4d7335(0x170)](_0x3f2d91){const _0x411530=_0x4d7335;return this[_0x411530(0x111)]['has'](_0x3f2d91);}[_0x4d7335(0xb0)](_0x2ff2bc){const _0x2ffe26=_0x4d7335;return Array[_0x2ffe26(0xc9)](this[_0x2ffe26(0xdb)])[_0x2ffe26(0x145)](_0xe2ade6=>_0xe2ade6(_0x2ff2bc));}}var M=Object[_0x4d7335(0xe4)],P=(_0x3759eb,_0x44208b,_0x37f934,_0x5c8e9a)=>{const _0x2b1ea7=_0x4d7335;for(var _0x4be5f7=_0x5c8e9a>0x1?void 0x0:_0x5c8e9a?M(_0x44208b,_0x37f934):_0x44208b,_0x9fa73b=_0x3759eb[_0x2b1ea7(0xd7)]-0x1,_0x4400c7;_0x9fa73b>=0x0;_0x9fa73b--)(_0x4400c7=_0x3759eb[_0x9fa73b])&&(_0x4be5f7=_0x4400c7(_0x4be5f7)||_0x4be5f7);return _0x4be5f7;},S=(_0x259db1,_0x5d16e5)=>(_0x50702a,_0x3b2aa1)=>_0x5d16e5(_0x50702a,_0x3b2aa1,_0x259db1);exports['LiveShareController']=class extends o[_0x4d7335(0xdf)]{constructor(_0x56d7b5,_0x52d5d0,_0x4d7166){const _0x3edd8f=_0x4d7335;super(),_(this,_0x3edd8f(0x119),new Map()),(this[_0x3edd8f(0xec)]=_0x56d7b5,this[_0x3edd8f(0x176)]=_0x52d5d0,this[_0x3edd8f(0xf4)]=_0x4d7166,this[_0x3edd8f(0x109)]());}async[_0x4d7335(0x105)](_0xb483c){const _0x3a33a5=_0x4d7335;return this[_0x3a33a5(0x119)]['has'](_0xb483c)||await this[_0x3a33a5(0x156)](_0xb483c),this['_entities']['get'](_0xb483c);}['getLiveShareCoordinatorSync'](_0x32926e){const _0x45afcc=_0x4d7335;var _0x1812fe;return(_0x1812fe=this[_0x45afcc(0x119)][_0x45afcc(0x132)](_0x32926e))!=null?_0x1812fe:null;}[_0x4d7335(0x109)](){const _0x454686=_0x4d7335;this[_0x454686(0xec)]['getTypeOfUnitAdded$'](o[_0x454686(0x120)][_0x454686(0x12d)])['pipe'](I[_0x454686(0xc0)](this['dispose$']))[_0x454686(0x121)](async _0x45967d=>{const _0x4253f6=_0x454686,_0x16f011=_0x45967d[_0x4253f6(0x143)]();this[_0x4253f6(0x119)]['has'](_0x16f011)||this['_startLiveShareCoordinator'](_0x16f011);}),this[_0x454686(0xec)][_0x454686(0xb7)](o[_0x454686(0x120)][_0x454686(0x12d)])[_0x454686(0xde)](I[_0x454686(0xc0)](this['dispose$']))['subscribe'](_0x332dfe=>{const _0x465671=_0x454686,_0x17b3aa=_0x332dfe[_0x465671(0x143)](),_0xe398d6=this['_entities']['get'](_0x17b3aa);_0xe398d6==null||_0xe398d6[_0x465671(0x102)]();});}async[_0x4d7335(0x156)](_0x1496f4){const _0x40abf7=_0x4d7335,_0x163345=await this[_0x40abf7(0xf4)]['requireSession'](_0x1496f4),_0x183c19=this['_injector'][_0x40abf7(0x157)](exports['LiveShareCoordinator'],_0x1496f4,_0x163345);return _0x183c19['init'](),this[_0x40abf7(0x119)][_0x40abf7(0x17b)](_0x1496f4,_0x183c19),_0x183c19;}},exports[_0x4d7335(0xfb)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x4d7335(0x14c)](o[_0x4d7335(0xd9)])),S(0x2,o['Inject'](b[_0x4d7335(0x15b)]))],exports[_0x4d7335(0xfb)]);var u=(_0x4999e8=>(_0x4999e8[_0x4d7335(0x12a)]=_0x4d7335(0xf0),_0x4999e8[_0x4d7335(0x167)]=_0x4d7335(0xc7),_0x4999e8[_0x4d7335(0x134)]=_0x4d7335(0x11f),_0x4999e8['NOT_FOLLOWING']='not-following',_0x4999e8[_0x4d7335(0xb9)]=_0x4d7335(0x15e),_0x4999e8))(u||{});const k=_0x4d7335(0xe6),q=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x54c7b4,_0x358613,_0x8fb4ee,_0x406678,_0x380632){const _0x536344=_0x4d7335;super(),_(this,_0x536344(0x13c),new O[(_0x536344(0x14e))](_0x536344(0xc7))),_(this,_0x536344(0xc2),this[_0x536344(0x13c)]['asObservable']()),_(this,'_init',!0x1),_(this,_0x536344(0x101),null),_(this,'_presenter',null),(this[_0x536344(0xf5)]=_0x54c7b4,this['_collabSession']=_0x358613,this[_0x536344(0x14a)]=_0x8fb4ee,this[_0x536344(0xe5)]=_0x406678,this[_0x536344(0xf3)]=_0x380632);}get[_0x4d7335(0x10e)](){const _0x1c23ec=_0x4d7335;return this[_0x1c23ec(0x13c)][_0x1c23ec(0xd1)]();}[_0x4d7335(0x102)](){const _0x44cb6c=_0x4d7335;var _0x59095a;(_0x59095a=this[_0x44cb6c(0x101)])==null||_0x59095a[_0x44cb6c(0x102)](),this[_0x44cb6c(0x13c)][_0x44cb6c(0x15f)]('idle'),this[_0x44cb6c(0x13c)][_0x44cb6c(0xe9)]();}[_0x4d7335(0xbd)](){const _0x5bad37=_0x4d7335;return this[_0x5bad37(0x10e)];}[_0x4d7335(0x16d)](){const _0xa79f69=_0x4d7335;this[_0xa79f69(0x109)]||(this[_0xa79f69(0x109)]=!0x0,this[_0xa79f69(0x16a)][_0xa79f69(0xe8)][_0xa79f69(0xde)](I[_0xa79f69(0xc0)](this[_0xa79f69(0xc4)]))[_0xa79f69(0x121)](_0x4acba6=>{const _0x40bc39=_0xa79f69;switch(_0x4acba6){case b['SessionStatus'][_0x40bc39(0x12a)]:this[_0x40bc39(0x158)]();break;case b[_0x40bc39(0x116)][_0x40bc39(0x141)]:this[_0x40bc39(0xb2)]();break;}}),this[_0xa79f69(0x16a)][_0xa79f69(0xbf)][_0xa79f69(0xde)](I[_0xa79f69(0xc0)](this[_0xa79f69(0xc4)]))['subscribe'](_0x3f7880=>{const _0x19aee0=_0xa79f69,{eventID:_0x56e37c}=_0x3f7880;switch(_0x56e37c){case d[_0x19aee0(0xd8)][_0x19aee0(0xc6)]:this[_0x19aee0(0xe0)](_0x3f7880);break;case d[_0x19aee0(0xd8)][_0x19aee0(0xf1)]:this[_0x19aee0(0xf6)](_0x3f7880);break;case d[_0x19aee0(0xd8)][_0x19aee0(0x17e)]:this[_0x19aee0(0x147)]();break;case d['CollaborationEvent'][_0x19aee0(0x142)]:this[_0x19aee0(0x123)](_0x3f7880);break;}}));}[_0x4d7335(0xee)](){const _0x2525ed=_0x4d7335;this[_0x2525ed(0x16a)][_0x2525ed(0x14b)]({'eventID':d[_0x2525ed(0xd8)][_0x2525ed(0x11b)],'data':{'unitID':this[_0x2525ed(0xf5)],'userID':this[_0x2525ed(0x16a)][_0x2525ed(0xda)]()}},this[_0x2525ed(0xf5)]);}[_0x4d7335(0xf8)](){const _0x33ca25=_0x4d7335;this[_0x33ca25(0x10e)]===_0x33ca25(0x15e)&&(this[_0x33ca25(0x13c)]['next']('idle'),this[_0x33ca25(0x16a)]['send']({'eventID':d[_0x33ca25(0xd8)][_0x33ca25(0x17e)],'data':{'unitID':this[_0x33ca25(0xf5)]}},this[_0x33ca25(0xf5)]));}[_0x4d7335(0xc3)](){const _0x338ccc=_0x4d7335;this['_status']===_0x338ccc(0x171)&&(this[_0x338ccc(0x13c)][_0x338ccc(0x15f)](_0x338ccc(0x11f)),this[_0x338ccc(0x11d)]());}[_0x4d7335(0x13d)](){const _0x2283ec=_0x4d7335;this[_0x2283ec(0x10e)]===_0x2283ec(0x11f)&&this[_0x2283ec(0xfe)]();}[_0x4d7335(0xe0)](_0x553510){const _0x4a22c8=_0x4d7335,{presenter:_0x9c3bee}=_0x553510['data'],_0x4176f5=this[_0x4a22c8(0x16a)][_0x4a22c8(0xda)]();this[_0x4a22c8(0x118)]=_0x9c3bee,_0x9c3bee===_0x4176f5?(this[_0x4a22c8(0xfe)](),this[_0x4a22c8(0x152)]()):this['_status']!==_0x4a22c8(0x171)&&(this['_stopPresenting'](),this[_0x4a22c8(0x11d)]());}['_fetchOperations'](){const _0x534dd0=_0x4d7335,_0x2fc87a={'eventID':d[_0x534dd0(0xd8)][_0x534dd0(0x166)]};this[_0x534dd0(0x16a)]['send'](_0x2fc87a,this['_unitID']);}[_0x4d7335(0x147)](){const _0x1bfb7c=_0x4d7335;this[_0x1bfb7c(0x118)]=null,this[_0x1bfb7c(0x10e)]!==_0x1bfb7c(0x15e)&&this[_0x1bfb7c(0xd2)]();}[_0x4d7335(0x123)](_0x20cffb){const _0x22fa0c=_0x4d7335;if(this[_0x22fa0c(0x10e)]===_0x22fa0c(0x11f)&&this['_presenter']===_0x20cffb[_0x22fa0c(0x14f)][_0x22fa0c(0xf2)]){const _0x4f7dd8=d[_0x22fa0c(0xd3)](_0x20cffb[_0x22fa0c(0x14f)])['mutations'][_0x22fa0c(0x15d)]()['find'](_0x95145e=>_0x95145e['id']===C[_0x22fa0c(0x153)]['id']);if(_0x4f7dd8){const _0x47dd05=_0x4f7dd8[_0x22fa0c(0x11a)]['unitId'],_0x431832=_0x4f7dd8[_0x22fa0c(0x11a)][_0x22fa0c(0x117)]['id'];setTimeout(()=>{const _0x3ba30a=_0x22fa0c;this[_0x3ba30a(0xf3)]['executeCommand'](C[_0x3ba30a(0x131)]['id'],{'unitId':_0x47dd05,'subUnitId':_0x431832},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x623bb=_0x4d7335;this[_0x623bb(0x13c)][_0x623bb(0x15f)](_0x623bb(0x15e));const _0x13436b=new Map(),_0x1654dd=this[_0x623bb(0x101)]=new o[(_0x623bb(0xcd))]();_0x1654dd[_0x623bb(0x10a)](o[_0x623bb(0xff)](()=>{const _0x36d869=_0x623bb;_0x13436b[_0x36d869(0x130)](_0x54aef9=>_0x54aef9[_0x36d869(0xe9)]()),_0x13436b['clear']();})),_0x1654dd['add'](this[_0x623bb(0xf3)][_0x623bb(0xfa)](_0x56f1df=>{const _0x5af6dc=_0x623bb;var _0xcd29aa;if(_0x56f1df[_0x5af6dc(0x175)]!==o['CommandType'][_0x5af6dc(0x10f)]||!this[_0x5af6dc(0xe5)][_0x5af6dc(0x170)](_0x56f1df['id']))return;const {id:_0x55e7b3}=_0x56f1df;let _0x29f062;_0x13436b[_0x5af6dc(0xca)](_0x55e7b3)?_0x29f062=_0x13436b[_0x5af6dc(0x132)](_0x55e7b3):(_0x29f062=new O['Subject'](),_0x13436b[_0x5af6dc(0x17b)](_0x55e7b3,_0x29f062),_0x29f062[_0x5af6dc(0xde)](I[_0x5af6dc(0x137)]((_0xcd29aa=this[_0x5af6dc(0x14a)][_0x5af6dc(0xbb)](k))!=null?_0xcd29aa:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2f853f=>{const _0x1f6aa9=_0x5af6dc;this[_0x1f6aa9(0x16a)][_0x1f6aa9(0x14b)]({'eventID':d[_0x1f6aa9(0xd8)][_0x1f6aa9(0xf1)],'data':{'unitID':this[_0x1f6aa9(0xf5)],'operations':{[_0x2f853f['id']]:{'id':_0x2f853f['id'],'params':JSON[_0x1f6aa9(0x11c)](_0x2f853f[_0x1f6aa9(0x11a)])}}}},this[_0x1f6aa9(0xf5)]);})),_0x29f062[_0x5af6dc(0x15f)](_0x56f1df);})),this[_0x623bb(0xe5)][_0x623bb(0xb0)](this['_unitID'])[_0x623bb(0x130)](_0x3bd893=>this['_collabSession']['send']({'eventID':d[_0x623bb(0xd8)][_0x623bb(0xf1)],'data':{'unitID':this[_0x623bb(0xf5)],'operations':{[_0x3bd893['id']]:{'id':_0x3bd893['id'],'params':JSON[_0x623bb(0x11c)](_0x3bd893[_0x623bb(0x11a)])}}}},this[_0x623bb(0xf5)]));}[_0x4d7335(0x144)](){const _0x3fef5e=_0x4d7335;var _0x43f007;this['_status$'][_0x3fef5e(0x15f)](_0x3fef5e(0xc7)),(_0x43f007=this['_commandDisposable'])==null||_0x43f007[_0x3fef5e(0x102)](),this[_0x3fef5e(0x101)]=null;}[_0x4d7335(0x11d)](){const _0x4cb0d8=_0x4d7335;var _0x54d169;(_0x54d169=this[_0x4cb0d8(0x101)])==null||_0x54d169[_0x4cb0d8(0x102)](),this[_0x4cb0d8(0x13c)][_0x4cb0d8(0x15f)](_0x4cb0d8(0x11f));}[_0x4d7335(0xd2)](){const _0x47f536=_0x4d7335;var _0x47f428;this['_status$'][_0x47f536(0x15f)](_0x47f536(0xc7)),(_0x47f428=this['_commandDisposable'])==null||_0x47f428['dispose'](),this[_0x47f536(0x101)]=null;}['_stopFollowing'](){const _0x647f28=_0x4d7335;var _0x59be91;this[_0x647f28(0x13c)][_0x647f28(0x15f)](_0x647f28(0x171)),(_0x59be91=this[_0x647f28(0x101)])==null||_0x59be91[_0x647f28(0x102)]();}[_0x4d7335(0xf6)](_0x4052bc){const _0x5afde9=_0x4d7335;if([_0x5afde9(0x15e),_0x5afde9(0x171),'offline'][_0x5afde9(0x13a)](this['_status'])||!_0x4052bc[_0x5afde9(0x14f)][_0x5afde9(0x13f)]||_0x4052bc[_0x5afde9(0x14f)]['presenter']===this[_0x5afde9(0x16a)][_0x5afde9(0xda)]())return;this[_0x5afde9(0x10e)]===_0x5afde9(0xc7)&&this[_0x5afde9(0x11d)]();const _0x4b67e8=_0x4052bc['data'][_0x5afde9(0xe2)];Object[_0x5afde9(0x133)](_0x4b67e8)['forEach'](_0x52e750=>{const _0x598d7e=_0x5afde9;this[_0x598d7e(0xf3)][_0x598d7e(0xe7)](_0x52e750['id'],_0x52e750[_0x598d7e(0x11a)]?JSON['parse'](_0x52e750[_0x598d7e(0x11a)]):null,{'fromCollab':!0x0});});}[_0x4d7335(0x158)](){const _0x1bdb17=_0x4d7335;var _0x2eedd1;this[_0x1bdb17(0x13c)][_0x1bdb17(0x15f)](_0x1bdb17(0xf0)),(_0x2eedd1=this[_0x1bdb17(0x101)])==null||_0x2eedd1[_0x1bdb17(0x102)]();}['_handleOnline'](){const _0x4d196b=_0x4d7335;this[_0x4d196b(0x13c)][_0x4d196b(0x15f)](_0x4d196b(0xc7)),this['_fetchOperations']();}},exports[_0x4d7335(0xc8)]=P([S(0x2,o[_0x4d7335(0xfc)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function _0x54f1(){const _0x5a5a93=['delete','current','shouldShareOperation','not-following','1em','merge','mergeOverrideWithDependencies','type','_injector','univerjs-icon\x20univerjs-icon-','xlink:href','LiveShareStatus','symbol','set','registerSharedOperation','currentColor','LIVESHARE_TERMINATE','colorChannel1','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','Button','path','getInitialStates','Dropdown','_handleOnline','9nmrgUZ','UniverLiveSharePlugin','LiveShareIcon','208204EKjAzw','getTypeOfUnitDisposed$','useObservable','PRESENTING','getCurrentTypeOfUnit$','getConfig','displayName','getStatus','onRendered','event$','takeUntil','http://www.w3.org/2000/svg','status$','startFollowing','dispose$','text','LIVESHARE_NEW_HOST','idle','LiveShareCoordinator','from','has','div','univer-mb-3\x20univer-w-full\x20univer-text-sm','DisposableCollection','defIds','58039gLDmvn','115Wisnzh','getValue','_beIdle','parseProtocolChangeset','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','svg','useRef','length','CollaborationEvent','Injector','getMemberID','_reporters','jsxs','You\x27are\x20offline.','pipe','RxDisposable','_handleNewHost','2955450LDsUha','operations','IUniverInstanceService','getOwnPropertyDescriptor','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','executeCommand','sessionStatus$','complete','pluginName','replace','_univerInstanceService','idSuffix','tryStartPresenting','children','offline','LIVESHARE_OPERATION','memberID','_commandService','_collabSessionService','_unitID','_handleOperation','UNIVER_UNKNOWN','stopPresenting','end','onCommandExecuted','LiveShareController','IConfigService','registerDependencies','_stopFollowing','toDisposable','DesktopLiveShareController','_commandDisposable','dispose','defs','univer-size-4','getLiveShareCoordinator','_uiPartsService','registerComponent','Stop\x20presenting','_init','add','registerInitialStateReporter','connectInjector','forwardRef','_status','OPERATION','mask','_sharedOperations','trim','setConfig','8EZkcvp','then','SessionStatus','sheet','_presenter','_entities','params','LIVESHARE_REQUEST_HOST','stringify','_startFollowing','disposeWithMe','following','UniverInstanceType','subscribe','use','_handleNewChangeSets','Disposable','_config','assign','UNIVER_LIVE_SHARE_PLUGIN','_mountLiveShare','toString','OFFLINE','string','Start','UNIVER_SHEET','toStringTag','5054856cYnIIE','forEach','SetWorksheetActiveOperation','get','values','FOLLOWING','override','url(#$1','throttleTime','onStarting','useState','includes','fill','_status$','stopFollowing','substring','presenter','Plugin','ONLINE','NEW_CHANGESETS','getUnitId','_stopPresenting','map','evenodd','_handleTerminate','Fragment','LiveShare','_configService','send','Inject','12018573MAvihK','BehaviorSubject','data','3238456YpQqLs','SetScrollOperation','_startPresenting','InsertSheetMutation','entries','tag','_startLiveShareCoordinator','createInstance','_handleOffline','live-share-icon','SetZoomRatioOperation','CollaborationSessionService','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','reverse','presenting','next','IUIPartsService','live-share.config','createElement','NOT_FOLLOWING','defineProperty','attrs','LIVESHARE_FETCH_OPERATIONS','IDLE','unsubscribe','7866910eQrWOQ','_collabSession','jsx','touchDependencies','init'];_0x54f1=function(){return _0x5a5a93;};return _0x54f1();}function $(){const _0x2899f4=_0x4d7335,_0x43f2aa=p['useDependency'](exports[_0x2899f4(0xfb)]),_0x2f0d5d=p['useDependency'](o[_0x2899f4(0xe3)]),_0x995393=p[_0x2899f4(0xb8)](()=>_0x2f0d5d[_0x2899f4(0xba)](o[_0x2899f4(0x120)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1d2ca7,_0x5ae4d7]=v[_0x2899f4(0x139)](null),[_0x11c65a,_0x1adb50]=v[_0x2899f4(0x139)](u[_0x2899f4(0x167)]),_0x2c82d9=v['useRef'](null);return v['useEffect'](()=>(_0x995393&&_0x43f2aa[_0x2899f4(0x105)](_0x995393[_0x2899f4(0x143)]())[_0x2899f4(0x115)](_0x8b8a44=>{const _0x251e3a=_0x2899f4;_0x5ae4d7(_0x8b8a44),_0x2c82d9['current']=_0x8b8a44['status$'][_0x251e3a(0x121)](_0x58c2de=>{_0x1adb50(_0x58c2de);});}),()=>{const _0x1d5dd5=_0x2899f4;var _0x5e625b;(_0x5e625b=_0x2c82d9['current'])==null||_0x5e625b[_0x1d5dd5(0x168)](),_0x2c82d9['current']=null;}),[_0x995393,_0x43f2aa]),_0x1d2ca7?l['jsx'](f[_0x2899f4(0xb1)],{'align':_0x2899f4(0xf9),'disabled':_0x11c65a===u['OFFLINE'],'className':_0x2899f4(0x180),'overlay':l[_0x2899f4(0x16b)](W,{'status':_0x11c65a,'coordinator':_0x1d2ca7}),'children':l[_0x2899f4(0x16b)]('button',{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x11c65a===u[_0x2899f4(0x12a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11c65a!==u[_0x2899f4(0x12a)]}),'type':'button','children':l[_0x2899f4(0x16b)](R,{'className':_0x2899f4(0x104)})})}):null;}function W(_0x1f5f99){const _0x54af23=_0x4d7335,{status:_0x1d0ea4,coordinator:_0x4f4646}=_0x1f5f99;switch(_0x1d0ea4){case u[_0x54af23(0x167)]:return l[_0x54af23(0x16b)](G,{'coordinator':_0x4f4646});case u['FOLLOWING']:return l[_0x54af23(0x16b)](B,{'coordinator':_0x4f4646});case u[_0x54af23(0x163)]:return l[_0x54af23(0x16b)](Y,{'coordinator':_0x4f4646});case u[_0x54af23(0x12a)]:return l[_0x54af23(0x16b)](J,{});case u[_0x54af23(0xb9)]:return l[_0x54af23(0x16b)](Z,{'coordinator':_0x4f4646});default:return null;}}function G(_0x4c7c74){const _0x6f52d3=_0x4d7335,{coordinator:_0x57becd}=_0x4c7c74;return l[_0x6f52d3(0xdc)](l[_0x6f52d3(0x148)],{'children':[l[_0x6f52d3(0x16b)](_0x6f52d3(0xcb),{'className':_0x6f52d3(0xcc),'children':'Present\x20this\x20document'}),l['jsx'](f[_0x6f52d3(0x181)],{'onClick':()=>_0x57becd['tryStartPresenting'](),'children':_0x6f52d3(0x12c)})]});}function B(_0x2f2481){const _0xf000ff=_0x4d7335,{coordinator:_0x1d2b1a}=_0x2f2481;return l['jsxs'](l[_0xf000ff(0x148)],{'children':[l[_0xf000ff(0x16b)](_0xf000ff(0xcb),{'className':_0xf000ff(0xcc),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f[_0xf000ff(0x181)],{'onClick':()=>_0x1d2b1a[_0xf000ff(0x13d)](),'children':'Stop\x20following'})]});}function _0xc5b7(_0x7c1ebe,_0xf1b126){const _0x54f14b=_0x54f1();return _0xc5b7=function(_0xc5b7a3,_0x3c2910){_0xc5b7a3=_0xc5b7a3-0xb0;let _0xb3d52c=_0x54f14b[_0xc5b7a3];return _0xb3d52c;},_0xc5b7(_0x7c1ebe,_0xf1b126);}function Y(_0x1aed60){const _0xcef759=_0x4d7335,{coordinator:_0x3feda5}=_0x1aed60;return l[_0xcef759(0xdc)](l[_0xcef759(0x148)],{'children':[l[_0xcef759(0x16b)](_0xcef759(0xcb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0xcef759(0x16b)](f[_0xcef759(0x181)],{'variant':_0xcef759(0xc5),'onClick':()=>_0x3feda5[_0xcef759(0xc3)](),'children':'Start\x20following'})]});}function Z(_0x20e4aa){const _0x5837e0=_0x4d7335,{coordinator:_0x322c2c}=_0x20e4aa;return l[_0x5837e0(0xdc)](l['Fragment'],{'children':[l[_0x5837e0(0x16b)](_0x5837e0(0xcb),{'className':_0x5837e0(0xcc),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x5837e0(0x16b)](f[_0x5837e0(0x181)],{'variant':'default','onClick':()=>_0x322c2c[_0x5837e0(0xf8)](),'children':_0x5837e0(0x108)})]});}function J(){const _0xecbd78=_0x4d7335;return l[_0xecbd78(0x16b)](l[_0xecbd78(0x148)],{'children':_0xecbd78(0xdd)});}var K=Object[_0x4d7335(0xe4)],z=(_0x345b92,_0x415e4f,_0x148e10,_0x1a5d8e)=>{const _0x1cfc15=_0x4d7335;for(var _0x35b0b9=_0x1a5d8e>0x1?void 0x0:_0x1a5d8e?K(_0x415e4f,_0x148e10):_0x415e4f,_0x4308f7=_0x345b92[_0x1cfc15(0xd7)]-0x1,_0x2be998;_0x4308f7>=0x0;_0x4308f7--)(_0x2be998=_0x345b92[_0x4308f7])&&(_0x35b0b9=_0x2be998(_0x35b0b9)||_0x35b0b9);return _0x35b0b9;},L=(_0x1175fd,_0x49ba34)=>(_0x28dd5c,_0x54f6d1)=>_0x49ba34(_0x28dd5c,_0x54f6d1,_0x1175fd);exports[_0x4d7335(0x100)]=class extends o[_0x4d7335(0x124)]{constructor(_0x22c171,_0x3577db){const _0x5d279f=_0x4d7335;super(),this[_0x5d279f(0x176)]=_0x22c171,this[_0x5d279f(0x106)]=_0x3577db,this[_0x5d279f(0x128)]();}[_0x4d7335(0x128)](){const _0x253533=_0x4d7335;this[_0x253533(0x11e)](this[_0x253533(0x106)][_0x253533(0x107)](p['BuiltInUIPart']['HEADER_MENU'],()=>p[_0x253533(0x10c)]($,this[_0x253533(0x176)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x4d7335(0x14c)](o[_0x4d7335(0xd9)])),L(0x1,p[_0x4d7335(0x160)])],exports[_0x4d7335(0x100)]);const Q=_0x4d7335(0x161),w={};var X=Object[_0x4d7335(0xe4)],ee=(_0x105f91,_0x590305,_0x2ddc1c,_0x135002)=>{const _0x140f47=_0x4d7335;for(var _0x2a07ae=_0x135002>0x1?void 0x0:_0x135002?X(_0x590305,_0x2ddc1c):_0x590305,_0x57e87b=_0x105f91[_0x140f47(0xd7)]-0x1,_0x21c2b2;_0x57e87b>=0x0;_0x57e87b--)(_0x21c2b2=_0x105f91[_0x57e87b])&&(_0x2a07ae=_0x21c2b2(_0x2a07ae)||_0x2a07ae);return _0x2a07ae;},te=(_0x2dfb45,_0x5edc3a)=>(_0x5a688c,_0x48df06)=>_0x5edc3a(_0x5a688c,_0x48df06,_0x2dfb45);let m=class extends o['Disposable']{constructor(_0x4af56a){const _0x4320fd=_0x4d7335;super(),this[_0x4320fd(0xe5)]=_0x4af56a,this['_init']();}[_0x4d7335(0x109)](){const _0x3d8155=_0x4d7335;[D[_0x3d8155(0x15a)]['id'],D[_0x3d8155(0x151)]['id'],C[_0x3d8155(0x131)]['id']][_0x3d8155(0x130)](_0x50aec2=>{const _0x15aa2f=_0x3d8155;this[_0x15aa2f(0x11e)](this[_0x15aa2f(0xe5)][_0x15aa2f(0x17c)](_0x50aec2));});}};m=ee([te(0x0,o[_0x4d7335(0x14c)](E))],m);var ie=Object[_0x4d7335(0x164)],se=Object[_0x4d7335(0xe4)],ne=(_0x5f0b7a,_0x144cde,_0x5e52b1)=>_0x144cde in _0x5f0b7a?ie(_0x5f0b7a,_0x144cde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e52b1}):_0x5f0b7a[_0x144cde]=_0x5e52b1,re=(_0xc43c29,_0x501d56,_0x381de5,_0x3ed2cd)=>{const _0x42f3eb=_0x4d7335;for(var _0x1a6477=_0x3ed2cd>0x1?void 0x0:_0x3ed2cd?se(_0x501d56,_0x381de5):_0x501d56,_0x4dc8f1=_0xc43c29[_0x42f3eb(0xd7)]-0x1,_0x4117fd;_0x4dc8f1>=0x0;_0x4dc8f1--)(_0x4117fd=_0xc43c29[_0x4dc8f1])&&(_0x1a6477=_0x4117fd(_0x1a6477)||_0x1a6477);return _0x1a6477;},N=(_0x410589,_0x1dd5e4)=>(_0x4550f0,_0x4724e5)=>_0x1dd5e4(_0x4550f0,_0x4724e5,_0x410589),A=(_0x253f14,_0x32c2c3,_0x35fa12)=>ne(_0x253f14,typeof _0x32c2c3!='symbol'?_0x32c2c3+'':_0x32c2c3,_0x35fa12);const oe=_0x4d7335(0x127);exports['UniverLiveSharePlugin']=class extends o[_0x4d7335(0x140)]{constructor(_0x45502a=w,_0x367c2b,_0x20cd24){const _0x26bf8f=_0x4d7335;super(),this[_0x26bf8f(0x125)]=_0x45502a,this['_injector']=_0x367c2b,this[_0x26bf8f(0x14a)]=_0x20cd24;const {..._0x1303b1}=o[_0x26bf8f(0x173)]({},w,this[_0x26bf8f(0x125)]);this[_0x26bf8f(0x14a)][_0x26bf8f(0x113)](Q,_0x1303b1);}[_0x4d7335(0x138)](){const _0x165944=_0x4d7335;o[_0x165944(0xfd)](this[_0x165944(0x176)],o[_0x165944(0x174)]([[E],[exports[_0x165944(0xfb)]],[m],[exports[_0x165944(0x100)]]],this[_0x165944(0x125)][_0x165944(0x135)])),o['touchDependencies'](this[_0x165944(0x176)],[[m]]);}[_0x4d7335(0xbe)](){const _0x373093=_0x4d7335;o[_0x373093(0x16c)](this[_0x373093(0x176)],[[exports[_0x373093(0x100)]]]);}},A(exports[_0x4d7335(0xb4)],_0x4d7335(0x175),o[_0x4d7335(0x120)][_0x4d7335(0xf7)]),A(exports[_0x4d7335(0xb4)],_0x4d7335(0xea),oe),exports[_0x4d7335(0xb4)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x4d7335(0x14c)](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x4d7335(0xb4)]),exports[_0x4d7335(0x149)]=$,exports['LiveShareService']=E,exports[_0x4d7335(0x179)]=u;
|
|
1
|
+
'use strict';const _0x335e3f=_0x4ce9;(function(_0x1f213b,_0x2f7dc3){const _0x13cd7e=_0x4ce9,_0x3de973=_0x1f213b();while(!![]){try{const _0x719123=-parseInt(_0x13cd7e(0x1a9))/0x1*(-parseInt(_0x13cd7e(0x190))/0x2)+parseInt(_0x13cd7e(0x1b3))/0x3*(-parseInt(_0x13cd7e(0x205))/0x4)+-parseInt(_0x13cd7e(0x1f5))/0x5+parseInt(_0x13cd7e(0x1f8))/0x6+parseInt(_0x13cd7e(0x185))/0x7+parseInt(_0x13cd7e(0x210))/0x8*(parseInt(_0x13cd7e(0x1f6))/0x9)+parseInt(_0x13cd7e(0x239))/0xa;if(_0x719123===_0x2f7dc3)break;else _0x3de973['push'](_0x3de973['shift']());}catch(_0x568a4e){_0x3de973['push'](_0x3de973['shift']());}}}(_0x55fa,0x43071));var T=Object[_0x335e3f(0x24d)],U=(_0x2cd3d3,_0x131624,_0x41c942)=>_0x131624 in _0x2cd3d3?T(_0x2cd3d3,_0x131624,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41c942}):_0x2cd3d3[_0x131624]=_0x41c942,_=(_0x37f5df,_0x4dc7da,_0x550fcb)=>U(_0x37f5df,typeof _0x4dc7da!='symbol'?_0x4dc7da+'':_0x4dc7da,_0x550fcb);Object[_0x335e3f(0x24d)](exports,Symbol[_0x335e3f(0x225)],{'value':_0x335e3f(0x1ca)});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:_0x235b61,..._0xedc5e5}){const _0x4813f1=_0x335e3f,{icon:_0x25aad0,id:_0x52807a,className:_0x5d445,extend:_0x103403,..._0x476106}=_0xedc5e5,_0x13ecf6=(_0x4813f1(0x1b6)+_0x52807a+'\x20'+(_0x5d445||''))['trim'](),_0x381514=v[_0x4813f1(0x1d2)]('_'+H());return j(_0x25aad0,''+_0x52807a,{'defIds':_0x25aad0[_0x4813f1(0x1f9)],'idSuffix':_0x381514[_0x4813f1(0x1fd)]},{'ref':_0x235b61,'className':_0x13ecf6,..._0x476106},_0x103403);}function j(_0x5aeb00,_0x273af2,_0x5edc70,_0x57df21,_0x203064){const _0x478dba=_0x335e3f;return v[_0x478dba(0x207)](_0x5aeb00['tag'],{'key':_0x273af2,...y(_0x5aeb00,_0x5edc70,_0x203064),..._0x57df21},(F(_0x5aeb00,_0x5edc70)[_0x478dba(0x1d4)]||[])[_0x478dba(0x1c7)]((_0x23f294,_0xf03b57)=>j(_0x23f294,_0x273af2+'-'+_0x5aeb00['tag']+'-'+_0xf03b57,_0x5edc70,void 0x0,_0x203064)));}function y(_0x1a3d80,_0x428fb6,_0x4bfffe){const _0x5b3ce9=_0x335e3f,_0x2bd2d2={..._0x1a3d80[_0x5b3ce9(0x23b)]};_0x4bfffe!=null&&_0x4bfffe['colorChannel1']&&_0x2bd2d2[_0x5b3ce9(0x192)]===_0x5b3ce9(0x200)&&(_0x2bd2d2[_0x5b3ce9(0x192)]=_0x4bfffe[_0x5b3ce9(0x200)]),_0x1a3d80[_0x5b3ce9(0x21b)]==='mask'&&_0x2bd2d2['id']&&(_0x2bd2d2['id']=_0x2bd2d2['id']+_0x428fb6[_0x5b3ce9(0x222)]),Object[_0x5b3ce9(0x1eb)](_0x2bd2d2)[_0x5b3ce9(0x1a6)](([_0x4ccbb8,_0x37a7db])=>{const _0x55d601=_0x5b3ce9;_0x4ccbb8===_0x55d601(0x1d3)&&typeof _0x37a7db==_0x55d601(0x1fa)&&(_0x2bd2d2[_0x4ccbb8]=_0x37a7db[_0x55d601(0x209)](/url\(#(.*)\)/,_0x55d601(0x1d8)+_0x428fb6[_0x55d601(0x222)]+')'));});const {defIds:_0x55819d}=_0x428fb6;return!_0x55819d||_0x55819d[_0x5b3ce9(0x238)]===0x0||(_0x1a3d80[_0x5b3ce9(0x21b)]===_0x5b3ce9(0x1e2)&&_0x2bd2d2[_0x5b3ce9(0x1ed)]&&(_0x2bd2d2[_0x5b3ce9(0x1ed)]=_0x2bd2d2[_0x5b3ce9(0x1ed)]+_0x428fb6['idSuffix']),Object[_0x5b3ce9(0x1eb)](_0x2bd2d2)[_0x5b3ce9(0x1a6)](([_0x4cc2a4,_0x3a1206])=>{const _0x1408e6=_0x5b3ce9;typeof _0x3a1206==_0x1408e6(0x1fa)&&(_0x2bd2d2[_0x4cc2a4]=_0x3a1206[_0x1408e6(0x209)](/url\(#(.*)\)/,'url(#$1'+_0x428fb6[_0x1408e6(0x222)]+')'));})),_0x2bd2d2;}function F(_0x5ed592,_0x4e52a6){const _0x3065fa=_0x335e3f;var _0x51209e;const {defIds:_0xe52c6a}=_0x4e52a6;return!_0xe52c6a||_0xe52c6a['length']===0x0?_0x5ed592:_0x5ed592[_0x3065fa(0x21b)]===_0x3065fa(0x1fb)&&((_0x51209e=_0x5ed592[_0x3065fa(0x1d4)])!=null&&_0x51209e[_0x3065fa(0x238)])?{..._0x5ed592,'children':_0x5ed592['children']['map'](_0x531733=>typeof _0x531733[_0x3065fa(0x23b)]['id']==_0x3065fa(0x1fa)&&_0xe52c6a&&_0xe52c6a['includes'](_0x531733[_0x3065fa(0x23b)]['id'])?{..._0x531733,'attrs':{..._0x531733['attrs'],'id':_0x531733[_0x3065fa(0x23b)]['id']+_0x4e52a6[_0x3065fa(0x222)]}}:_0x531733)}:_0x5ed592;}function H(){const _0x4fd351=_0x335e3f;return Math[_0x4fd351(0x202)]()[_0x4fd351(0x198)](0x24)[_0x4fd351(0x1cd)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x335e3f(0x1b0),'attrs':{'xmlns':_0x335e3f(0x1f2),'fill':_0x335e3f(0x218),'viewBox':_0x335e3f(0x237),'width':_0x335e3f(0x1ef),'height':_0x335e3f(0x1ef)},'children':[{'tag':_0x335e3f(0x193),'attrs':{'fill':_0x335e3f(0x219),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x335e3f(0x1a5),'fillRule':_0x335e3f(0x20e),'clipRule':'evenodd'}}]},R=v['forwardRef'](function(_0x4a463e,_0x2f099c){const _0x2d9aec=_0x335e3f;return v[_0x2d9aec(0x207)](x,Object[_0x2d9aec(0x24c)]({},_0x4a463e,{'id':_0x2d9aec(0x1c2),'ref':_0x2f099c,'icon':V}));});R[_0x335e3f(0x1ea)]=_0x335e3f(0x241);class E extends o['Disposable']{constructor(){const _0x343460=_0x335e3f;super(...arguments),_(this,_0x343460(0x1ab),new Set()),_(this,_0x343460(0x20d),new Set());}['registerSharedOperation'](_0x1a9390){const _0x5b1052=_0x335e3f;return this[_0x5b1052(0x1ab)][_0x5b1052(0x1da)](_0x1a9390),o['toDisposable'](()=>this[_0x5b1052(0x1ab)][_0x5b1052(0x206)](_0x1a9390));}[_0x335e3f(0x1be)](_0x4fad4d){const _0x226551=_0x335e3f;return this[_0x226551(0x20d)][_0x226551(0x1da)](_0x4fad4d),o[_0x226551(0x1e7)](()=>this['_reporters'][_0x226551(0x206)](_0x4fad4d));}[_0x335e3f(0x20a)](_0x30dfa2){const _0x7532e1=_0x335e3f;return this[_0x7532e1(0x1ab)][_0x7532e1(0x1aa)](_0x30dfa2);}[_0x335e3f(0x242)](_0x47cdec){const _0x12d038=_0x335e3f;return Array['from'](this[_0x12d038(0x20d)])[_0x12d038(0x1c7)](_0x1d4db6=>_0x1d4db6(_0x47cdec));}}var M=Object[_0x335e3f(0x19c)],P=(_0x35f868,_0x59d011,_0x15a52c,_0x14bdef)=>{const _0x4e351f=_0x335e3f;for(var _0xb43758=_0x14bdef>0x1?void 0x0:_0x14bdef?M(_0x59d011,_0x15a52c):_0x59d011,_0x579d5f=_0x35f868[_0x4e351f(0x238)]-0x1,_0x424a98;_0x579d5f>=0x0;_0x579d5f--)(_0x424a98=_0x35f868[_0x579d5f])&&(_0xb43758=_0x424a98(_0xb43758)||_0xb43758);return _0xb43758;},S=(_0x2073e8,_0x22ebae)=>(_0x2dc02f,_0x1fc569)=>_0x22ebae(_0x2dc02f,_0x1fc569,_0x2073e8);exports[_0x335e3f(0x18c)]=class extends o[_0x335e3f(0x19b)]{constructor(_0xc2d89c,_0x49229c,_0x1b0b51){const _0x11d212=_0x335e3f;super(),_(this,_0x11d212(0x1a4),new Map()),(this[_0x11d212(0x1a0)]=_0xc2d89c,this[_0x11d212(0x1e8)]=_0x49229c,this[_0x11d212(0x23e)]=_0x1b0b51,this[_0x11d212(0x1b4)]());}async[_0x335e3f(0x1f1)](_0x26eb28){const _0x431d5f=_0x335e3f;return this['_entities'][_0x431d5f(0x1aa)](_0x26eb28)||await this[_0x431d5f(0x19a)](_0x26eb28),this[_0x431d5f(0x1a4)][_0x431d5f(0x1bd)](_0x26eb28);}[_0x335e3f(0x1a7)](_0x3224c5){var _0x2c8259;return(_0x2c8259=this['_entities']['get'](_0x3224c5))!=null?_0x2c8259:null;}[_0x335e3f(0x1b4)](){const _0x3ad4f5=_0x335e3f;this[_0x3ad4f5(0x1a0)][_0x3ad4f5(0x196)](o[_0x3ad4f5(0x203)][_0x3ad4f5(0x247)])[_0x3ad4f5(0x201)](I[_0x3ad4f5(0x21f)](this[_0x3ad4f5(0x227)]))['subscribe'](async _0x2f1aee=>{const _0x44a92e=_0x3ad4f5,_0x122aa2=_0x2f1aee['getUnitId']();this[_0x44a92e(0x1a4)]['has'](_0x122aa2)||this[_0x44a92e(0x19a)](_0x122aa2);}),this['_univerInstanceService'][_0x3ad4f5(0x1d9)](o[_0x3ad4f5(0x203)][_0x3ad4f5(0x247)])['pipe'](I[_0x3ad4f5(0x21f)](this[_0x3ad4f5(0x227)]))[_0x3ad4f5(0x23f)](_0x4939c4=>{const _0x253aa5=_0x3ad4f5,_0xd0726d=_0x4939c4[_0x253aa5(0x1d5)](),_0x25f580=this[_0x253aa5(0x1a4)][_0x253aa5(0x1bd)](_0xd0726d);_0x25f580==null||_0x25f580[_0x253aa5(0x204)]();});}async[_0x335e3f(0x19a)](_0x1858e5){const _0x15ed20=_0x335e3f,_0xa54df1=await this[_0x15ed20(0x23e)][_0x15ed20(0x1e5)](_0x1858e5),_0x2ec1b5=this[_0x15ed20(0x1e8)][_0x15ed20(0x214)](exports[_0x15ed20(0x1de)],_0x1858e5,_0xa54df1);return _0x2ec1b5[_0x15ed20(0x1ac)](),this[_0x15ed20(0x1a4)][_0x15ed20(0x195)](_0x1858e5,_0x2ec1b5),_0x2ec1b5;}},exports[_0x335e3f(0x18c)]=P([S(0x0,o[_0x335e3f(0x236)]),S(0x1,o[_0x335e3f(0x1b9)](o[_0x335e3f(0x191)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports['LiveShareController']);var u=(_0x4bc884=>(_0x4bc884[_0x335e3f(0x18b)]=_0x335e3f(0x24b),_0x4bc884['IDLE']=_0x335e3f(0x250),_0x4bc884['FOLLOWING']=_0x335e3f(0x1d0),_0x4bc884[_0x335e3f(0x1bc)]=_0x335e3f(0x1ba),_0x4bc884[_0x335e3f(0x18a)]=_0x335e3f(0x1ec),_0x4bc884))(u||{});const k=_0x335e3f(0x1ad),q=0xc8;exports[_0x335e3f(0x1de)]=class extends o['RxDisposable']{constructor(_0xe3ad91,_0x57554e,_0xb923b1,_0xa96d27,_0x5c1134){const _0xe0ece4=_0x335e3f;super(),_(this,'_status$',new O['BehaviorSubject'](_0xe0ece4(0x250))),_(this,_0xe0ece4(0x1cb),this[_0xe0ece4(0x18e)]['asObservable']()),_(this,_0xe0ece4(0x1b4),!0x1),_(this,_0xe0ece4(0x24a),null),_(this,'_presenter',null),(this[_0xe0ece4(0x1d7)]=_0xe3ad91,this[_0xe0ece4(0x1c5)]=_0x57554e,this[_0xe0ece4(0x221)]=_0xb923b1,this[_0xe0ece4(0x1c1)]=_0xa96d27,this[_0xe0ece4(0x213)]=_0x5c1134);}get[_0x335e3f(0x1bf)](){const _0x435b6f=_0x335e3f;return this['_status$'][_0x435b6f(0x1e1)]();}['dispose'](){const _0x364cd1=_0x335e3f;var _0x438aa9;(_0x438aa9=this[_0x364cd1(0x24a)])==null||_0x438aa9[_0x364cd1(0x204)](),this[_0x364cd1(0x18e)][_0x364cd1(0x251)](_0x364cd1(0x250)),this[_0x364cd1(0x18e)][_0x364cd1(0x23c)]();}['getStatus'](){return this['_status'];}[_0x335e3f(0x1ac)](){const _0x4eac70=_0x335e3f;this[_0x4eac70(0x1b4)]||(this[_0x4eac70(0x1b4)]=!0x0,this['_collabSession']['sessionStatus$'][_0x4eac70(0x201)](I[_0x4eac70(0x21f)](this[_0x4eac70(0x227)]))[_0x4eac70(0x23f)](_0x3a07a5=>{const _0x560506=_0x4eac70;switch(_0x3a07a5){case b[_0x560506(0x22f)]['OFFLINE']:this[_0x560506(0x1ae)]();break;case b[_0x560506(0x22f)]['ONLINE']:this[_0x560506(0x1e0)]();break;}}),this[_0x4eac70(0x1c5)][_0x4eac70(0x1f4)][_0x4eac70(0x201)](I[_0x4eac70(0x21f)](this[_0x4eac70(0x227)]))[_0x4eac70(0x23f)](_0x1a0916=>{const _0x14d141=_0x4eac70,{eventID:_0x4094ca}=_0x1a0916;switch(_0x4094ca){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x14d141(0x248)](_0x1a0916);break;case d[_0x14d141(0x20c)][_0x14d141(0x1cc)]:this[_0x14d141(0x233)](_0x1a0916);break;case d[_0x14d141(0x20c)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this[_0x14d141(0x1dd)](_0x1a0916);break;}}));}[_0x335e3f(0x1ee)](){const _0x45a843=_0x335e3f;this[_0x45a843(0x1c5)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x45a843(0x1d7)],'userID':this[_0x45a843(0x1c5)][_0x45a843(0x1a2)]()}},this[_0x45a843(0x1d7)]);}[_0x335e3f(0x246)](){const _0x5a0e2d=_0x335e3f;this[_0x5a0e2d(0x1bf)]==='presenting'&&(this[_0x5a0e2d(0x18e)][_0x5a0e2d(0x251)](_0x5a0e2d(0x250)),this[_0x5a0e2d(0x1c5)][_0x5a0e2d(0x188)]({'eventID':d[_0x5a0e2d(0x20c)][_0x5a0e2d(0x1f0)],'data':{'unitID':this['_unitID']}},this[_0x5a0e2d(0x1d7)]));}['startFollowing'](){const _0x3877e3=_0x335e3f;this[_0x3877e3(0x1bf)]===_0x3877e3(0x1ba)&&(this['_status$']['next'](_0x3877e3(0x1d0)),this[_0x3877e3(0x215)]());}[_0x335e3f(0x244)](){const _0x394aec=_0x335e3f;this[_0x394aec(0x1bf)]===_0x394aec(0x1d0)&&this[_0x394aec(0x223)]();}[_0x335e3f(0x248)](_0x482973){const _0x1fcab6=_0x335e3f,{presenter:_0xd7bab8}=_0x482973['data'],_0x33c1b1=this[_0x1fcab6(0x1c5)]['getMemberID']();this[_0x1fcab6(0x24e)]=_0xd7bab8,_0xd7bab8===_0x33c1b1?(this[_0x1fcab6(0x223)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x1fcab6(0x215)]());}[_0x335e3f(0x1d1)](){const _0x3a75fb=_0x335e3f,_0x4d48de={'eventID':d[_0x3a75fb(0x20c)][_0x3a75fb(0x186)]};this[_0x3a75fb(0x1c5)]['send'](_0x4d48de,this[_0x3a75fb(0x1d7)]);}['_handleTerminate'](){const _0x812121=_0x335e3f;this[_0x812121(0x24e)]=null,this[_0x812121(0x1bf)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x24b0ba){const _0x5c0e1a=_0x335e3f;if(this[_0x5c0e1a(0x1bf)]==='following'&&this[_0x5c0e1a(0x24e)]===_0x24b0ba['data']['memberID']){const _0x1ddf77=d['parseProtocolChangeset'](_0x24b0ba[_0x5c0e1a(0x1b7)])['mutations']['reverse']()[_0x5c0e1a(0x1c8)](_0x37c75a=>_0x37c75a['id']===C[_0x5c0e1a(0x197)]['id']);if(_0x1ddf77){const _0x2ca69b=_0x1ddf77[_0x5c0e1a(0x21a)][_0x5c0e1a(0x1fe)],_0x489e2a=_0x1ddf77['params'][_0x5c0e1a(0x1b1)]['id'];setTimeout(()=>{const _0x15633a=_0x5c0e1a;this[_0x15633a(0x213)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2ca69b,'subUnitId':_0x489e2a},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x57086e=_0x335e3f;this[_0x57086e(0x18e)]['next'](_0x57086e(0x1ec));const _0x50711f=new Map(),_0x4ea4c7=this[_0x57086e(0x24a)]=new o[(_0x57086e(0x243))]();_0x4ea4c7[_0x57086e(0x1da)](o[_0x57086e(0x1e7)](()=>{const _0x15605c=_0x57086e;_0x50711f[_0x15605c(0x1a6)](_0x56436b=>_0x56436b['complete']()),_0x50711f['clear']();})),_0x4ea4c7[_0x57086e(0x1da)](this[_0x57086e(0x213)][_0x57086e(0x22a)](_0x3712c6=>{const _0x41ad4c=_0x57086e;var _0x3b04c9;if(_0x3712c6['type']!==o['CommandType'][_0x41ad4c(0x1c3)]||!this[_0x41ad4c(0x1c1)][_0x41ad4c(0x20a)](_0x3712c6['id']))return;const {id:_0x3e3221}=_0x3712c6;let _0x2a6281;_0x50711f[_0x41ad4c(0x1aa)](_0x3e3221)?_0x2a6281=_0x50711f[_0x41ad4c(0x1bd)](_0x3e3221):(_0x2a6281=new O[(_0x41ad4c(0x199))](),_0x50711f[_0x41ad4c(0x195)](_0x3e3221,_0x2a6281),_0x2a6281[_0x41ad4c(0x201)](I['throttleTime']((_0x3b04c9=this[_0x41ad4c(0x221)][_0x41ad4c(0x1f7)](k))!=null?_0x3b04c9:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x41ad4c(0x23f)](_0x333549=>{const _0x66f188=_0x41ad4c;this['_collabSession'][_0x66f188(0x188)]({'eventID':d[_0x66f188(0x20c)][_0x66f188(0x1cc)],'data':{'unitID':this[_0x66f188(0x1d7)],'operations':{[_0x333549['id']]:{'id':_0x333549['id'],'params':JSON[_0x66f188(0x230)](_0x333549[_0x66f188(0x21a)])}}}},this[_0x66f188(0x1d7)]);})),_0x2a6281[_0x41ad4c(0x251)](_0x3712c6);})),this['_liveShareService'][_0x57086e(0x242)](this[_0x57086e(0x1d7)])[_0x57086e(0x1a6)](_0x434d81=>this[_0x57086e(0x1c5)][_0x57086e(0x188)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57086e(0x1d7)],'operations':{[_0x434d81['id']]:{'id':_0x434d81['id'],'params':JSON[_0x57086e(0x230)](_0x434d81[_0x57086e(0x21a)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x2f750e=_0x335e3f;var _0x12341b;this[_0x2f750e(0x18e)][_0x2f750e(0x251)](_0x2f750e(0x250)),(_0x12341b=this[_0x2f750e(0x24a)])==null||_0x12341b[_0x2f750e(0x204)](),this['_commandDisposable']=null;}[_0x335e3f(0x215)](){const _0x15f641=_0x335e3f;var _0x4da1e6;(_0x4da1e6=this[_0x15f641(0x24a)])==null||_0x4da1e6[_0x15f641(0x204)](),this[_0x15f641(0x18e)][_0x15f641(0x251)](_0x15f641(0x1d0));}[_0x335e3f(0x234)](){const _0x57f77a=_0x335e3f;var _0x534cb9;this['_status$']['next'](_0x57f77a(0x250)),(_0x534cb9=this['_commandDisposable'])==null||_0x534cb9[_0x57f77a(0x204)](),this[_0x57f77a(0x24a)]=null;}['_stopFollowing'](){const _0x9b47d1=_0x335e3f;var _0x40739e;this[_0x9b47d1(0x18e)]['next'](_0x9b47d1(0x1ba)),(_0x40739e=this[_0x9b47d1(0x24a)])==null||_0x40739e[_0x9b47d1(0x204)]();}[_0x335e3f(0x233)](_0x53c5ae){const _0x59fcd0=_0x335e3f;if([_0x59fcd0(0x1ec),_0x59fcd0(0x1ba),_0x59fcd0(0x24b)][_0x59fcd0(0x1cf)](this[_0x59fcd0(0x1bf)])||!_0x53c5ae[_0x59fcd0(0x1b7)][_0x59fcd0(0x1c6)]||_0x53c5ae[_0x59fcd0(0x1b7)][_0x59fcd0(0x1c6)]===this[_0x59fcd0(0x1c5)][_0x59fcd0(0x1a2)]())return;this['_status']===_0x59fcd0(0x250)&&this[_0x59fcd0(0x215)]();const _0x3cb6d8=_0x53c5ae[_0x59fcd0(0x1b7)]['operations'];Object[_0x59fcd0(0x1df)](_0x3cb6d8)[_0x59fcd0(0x1a6)](_0x460078=>{const _0x565d19=_0x59fcd0;this['_commandService'][_0x565d19(0x211)](_0x460078['id'],_0x460078[_0x565d19(0x21a)]?JSON['parse'](_0x460078['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2deeaf=_0x335e3f;var _0x1d2678;this['_status$'][_0x2deeaf(0x251)](_0x2deeaf(0x24b)),(_0x1d2678=this[_0x2deeaf(0x24a)])==null||_0x1d2678[_0x2deeaf(0x204)]();}['_handleOnline'](){const _0x45bbb7=_0x335e3f;this['_status$'][_0x45bbb7(0x251)](_0x45bbb7(0x250)),this['_fetchOperations']();}},exports[_0x335e3f(0x1de)]=P([S(0x2,o[_0x335e3f(0x24f)]),S(0x3,o[_0x335e3f(0x1b9)](E)),S(0x4,o[_0x335e3f(0x1af)])],exports[_0x335e3f(0x1de)]);function $(){const _0x465c12=_0x335e3f,_0x58c52e=p[_0x465c12(0x1a8)](exports['LiveShareController']),_0x21e304=p[_0x465c12(0x1a8)](o[_0x465c12(0x236)]),_0x4b3c32=p[_0x465c12(0x1fc)](()=>_0x21e304[_0x465c12(0x19f)](o[_0x465c12(0x203)][_0x465c12(0x247)]),void 0x0,!0x1,[]),[_0x4847f0,_0xfb3b85]=v[_0x465c12(0x1f3)](null),[_0x519532,_0x45ba0f]=v['useState'](u[_0x465c12(0x217)]),_0x522bac=v[_0x465c12(0x1d2)](null);return v[_0x465c12(0x216)](()=>(_0x4b3c32&&_0x58c52e[_0x465c12(0x1f1)](_0x4b3c32[_0x465c12(0x1d5)]())[_0x465c12(0x21e)](_0x2bfbc9=>{const _0x27481a=_0x465c12;_0xfb3b85(_0x2bfbc9),_0x522bac[_0x27481a(0x1fd)]=_0x2bfbc9['status$'][_0x27481a(0x23f)](_0x5a6bcc=>{_0x45ba0f(_0x5a6bcc);});}),()=>{const _0x1f08b1=_0x465c12;var _0xe43714;(_0xe43714=_0x522bac[_0x1f08b1(0x1fd)])==null||_0xe43714[_0x1f08b1(0x232)](),_0x522bac[_0x1f08b1(0x1fd)]=null;}),[_0x4b3c32,_0x58c52e]),_0x4847f0?l[_0x465c12(0x1c4)](f[_0x465c12(0x1c0)],{'align':_0x465c12(0x1b2),'disabled':_0x519532===u[_0x465c12(0x18b)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x465c12(0x1c4)](W,{'status':_0x519532,'coordinator':_0x4847f0}),'children':l[_0x465c12(0x1c4)](_0x465c12(0x245),{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x519532===u[_0x465c12(0x18b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x519532!==u[_0x465c12(0x18b)]}),'type':'button','children':l[_0x465c12(0x1c4)](R,{'className':_0x465c12(0x240)})})}):null;}function W(_0x4c50d7){const _0xfdbe9b=_0x335e3f,{status:_0x25dd6f,coordinator:_0x36f486}=_0x4c50d7;switch(_0x25dd6f){case u[_0xfdbe9b(0x217)]:return l[_0xfdbe9b(0x1c4)](G,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x21c)]:return l[_0xfdbe9b(0x1c4)](B,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x1bc)]:return l[_0xfdbe9b(0x1c4)](Y,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x18b)]:return l[_0xfdbe9b(0x1c4)](J,{});case u[_0xfdbe9b(0x18a)]:return l[_0xfdbe9b(0x1c4)](Z,{'coordinator':_0x36f486});default:return null;}}function G(_0x45cb02){const _0x1fee8e=_0x335e3f,{coordinator:_0x42716f}=_0x45cb02;return l[_0x1fee8e(0x1ce)](l[_0x1fee8e(0x189)],{'children':[l[_0x1fee8e(0x1c4)](_0x1fee8e(0x23a),{'className':_0x1fee8e(0x22c),'children':_0x1fee8e(0x231)}),l[_0x1fee8e(0x1c4)](f[_0x1fee8e(0x228)],{'onClick':()=>_0x42716f[_0x1fee8e(0x1ee)](),'children':_0x1fee8e(0x208)})]});}function B(_0x55981c){const _0xd213d9=_0x335e3f,{coordinator:_0x2354ae}=_0x55981c;return l[_0xd213d9(0x1ce)](l[_0xd213d9(0x189)],{'children':[l[_0xd213d9(0x1c4)]('div',{'className':_0xd213d9(0x22c),'children':_0xd213d9(0x235)}),l['jsx'](f[_0xd213d9(0x228)],{'onClick':()=>_0x2354ae[_0xd213d9(0x244)](),'children':_0xd213d9(0x18f)})]});}function Y(_0x3280fd){const _0x546db4=_0x335e3f,{coordinator:_0x3dd81d}=_0x3280fd;return l[_0x546db4(0x1ce)](l[_0x546db4(0x189)],{'children':[l[_0x546db4(0x1c4)](_0x546db4(0x23a),{'className':_0x546db4(0x22c),'children':_0x546db4(0x22e)}),l[_0x546db4(0x1c4)](f[_0x546db4(0x228)],{'variant':_0x546db4(0x20b),'onClick':()=>_0x3dd81d[_0x546db4(0x212)](),'children':_0x546db4(0x1e9)})]});}function Z(_0xf03ade){const _0x2a119e=_0x335e3f,{coordinator:_0x4ef572}=_0xf03ade;return l[_0x2a119e(0x1ce)](l[_0x2a119e(0x189)],{'children':[l[_0x2a119e(0x1c4)]('div',{'className':_0x2a119e(0x22c),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2a119e(0x1c4)](f[_0x2a119e(0x228)],{'variant':_0x2a119e(0x1b8),'onClick':()=>_0x4ef572['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x55fa(){const _0x195d24=['univer-mb-3\x20univer-w-full\x20univer-text-sm','type','You\x27re\x20not\x20following\x20the\x20presenter','SessionStatus','stringify','Present\x20this\x20document','unsubscribe','_handleOperation','_beIdle','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','0\x200\x2017\x2017','length','1222190NorTIN','div','attrs','complete','Disposable','_collabSessionService','subscribe','univer-size-4','LiveShareIcon','getInitialStates','DisposableCollection','stopFollowing','button','stopPresenting','UNIVER_SHEET','_handleNewHost','HEADER_MENU','_commandDisposable','offline','assign','defineProperty','_presenter','IConfigService','idle','next','UNIVER_LIVE_SHARE_PLUGIN','269871OMyEyY','LIVESHARE_FETCH_OPERATIONS','mergeOverrideWithDependencies','send','Fragment','PRESENTING','OFFLINE','LiveShareController','touchDependencies','_status$','Stop\x20following','2XOaOWc','Injector','fill','path','disposeWithMe','set','getTypeOfUnitAdded$','InsertSheetMutation','toString','Subject','_startLiveShareCoordinator','RxDisposable','getOwnPropertyDescriptor','registerSharedOperation','_config','getCurrentTypeOfUnit$','_univerInstanceService','SetWorksheetActiveOperation','getMemberID','live-share.config','_entities','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','forEach','getLiveShareCoordinatorSync','useDependency','52878RfgYDx','has','_sharedOperations','init','SAME_OPERATION_SHARE_INTERVAL','_handleOffline','ICommandService','svg','sheet','end','3LqTQOt','_init','_uiPartsService','univerjs-icon\x20univerjs-icon-','data','default','Inject','not-following','LiveShareService','NOT_FOLLOWING','get','registerInitialStateReporter','_status','Dropdown','_liveShareService','live-share-icon','OPERATION','jsx','_collabSession','presenter','map','find','_mountLiveShare','Module','status$','LIVESHARE_OPERATION','substring','jsxs','includes','following','_fetchOperations','useRef','mask','children','getUnitId','IUIPartsService','_unitID','url(#$1','getTypeOfUnitDisposed$','add','onRendered','setConfig','_handleNewChangeSets','LiveShareCoordinator','values','_handleOnline','getValue','use','connectInjector','DesktopLiveShareController','requireSession','override','toDisposable','_injector','Start\x20following','displayName','entries','presenting','xlink:href','tryStartPresenting','1em','LIVESHARE_TERMINATE','getLiveShareCoordinator','http://www.w3.org/2000/svg','useState','event$','2585380kokgNa','423QgGqTr','getConfig','1355262tjgijb','defIds','string','defs','useObservable','current','unitId','DependentOn','colorChannel1','pipe','random','UniverInstanceType','dispose','462412YwZBKR','delete','createElement','Start','replace','shouldShareOperation','text','CollaborationEvent','_reporters','evenodd','LiveShareStatus','79608UYDaam','executeCommand','startFollowing','_commandService','createInstance','_startFollowing','useEffect','IDLE','none','currentColor','params','tag','FOLLOWING','registerDependencies','then','takeUntil','UNIVER_UNKNOWN','_configService','idSuffix','_stopFollowing','UniverCollaborationClientPlugin','toStringTag','UniverLiveSharePlugin','dispose$','Button','symbol','onCommandExecuted','merge'];_0x55fa=function(){return _0x195d24;};return _0x55fa();}function J(){const _0x2a8be5=_0x335e3f;return l[_0x2a8be5(0x1c4)](l[_0x2a8be5(0x189)],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0xbc2349,_0x5cfb31,_0x14845,_0x57fe07)=>{const _0x4db956=_0x335e3f;for(var _0x6b3eca=_0x57fe07>0x1?void 0x0:_0x57fe07?K(_0x5cfb31,_0x14845):_0x5cfb31,_0x4ed0a5=_0xbc2349[_0x4db956(0x238)]-0x1,_0x51d53c;_0x4ed0a5>=0x0;_0x4ed0a5--)(_0x51d53c=_0xbc2349[_0x4ed0a5])&&(_0x6b3eca=_0x51d53c(_0x6b3eca)||_0x6b3eca);return _0x6b3eca;},L=(_0x260c27,_0x561f40)=>(_0x328910,_0x34c874)=>_0x561f40(_0x328910,_0x34c874,_0x260c27);exports[_0x335e3f(0x1e4)]=class extends o['Disposable']{constructor(_0x3aaa2d,_0x7558f0){const _0x2c64a9=_0x335e3f;super(),this[_0x2c64a9(0x1e8)]=_0x3aaa2d,this[_0x2c64a9(0x1b5)]=_0x7558f0,this[_0x2c64a9(0x1c9)]();}[_0x335e3f(0x1c9)](){const _0x3262bc=_0x335e3f;this[_0x3262bc(0x194)](this['_uiPartsService']['registerComponent'](p['BuiltInUIPart'][_0x3262bc(0x249)],()=>p[_0x3262bc(0x1e3)]($,this['_injector'])));}},exports[_0x335e3f(0x1e4)]=z([L(0x0,o[_0x335e3f(0x1b9)](o[_0x335e3f(0x191)])),L(0x1,p[_0x335e3f(0x1d6)])],exports['DesktopLiveShareController']);const Q=_0x335e3f(0x1a3),w={};function _0x4ce9(_0x30666b,_0x4dbdb3){const _0x55fa89=_0x55fa();return _0x4ce9=function(_0x4ce91e,_0x25f808){_0x4ce91e=_0x4ce91e-0x184;let _0x3deaeb=_0x55fa89[_0x4ce91e];return _0x3deaeb;},_0x4ce9(_0x30666b,_0x4dbdb3);}var X=Object[_0x335e3f(0x19c)],ee=(_0x9b829c,_0x211765,_0x2f86a1,_0x35ef56)=>{const _0x2f7c84=_0x335e3f;for(var _0x3880ac=_0x35ef56>0x1?void 0x0:_0x35ef56?X(_0x211765,_0x2f86a1):_0x211765,_0x2bc75a=_0x9b829c[_0x2f7c84(0x238)]-0x1,_0x4ebeb8;_0x2bc75a>=0x0;_0x2bc75a--)(_0x4ebeb8=_0x9b829c[_0x2bc75a])&&(_0x3880ac=_0x4ebeb8(_0x3880ac)||_0x3880ac);return _0x3880ac;},te=(_0x52aaa0,_0x4a3d0d)=>(_0x164af9,_0x587066)=>_0x4a3d0d(_0x164af9,_0x587066,_0x52aaa0);let m=class extends o[_0x335e3f(0x23d)]{constructor(_0x1822b7){const _0x1b9fc6=_0x335e3f;super(),this[_0x1b9fc6(0x1c1)]=_0x1822b7,this[_0x1b9fc6(0x1b4)]();}[_0x335e3f(0x1b4)](){const _0xe5129c=_0x335e3f;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0xe5129c(0x1a1)]['id']][_0xe5129c(0x1a6)](_0x1ec6b2=>{const _0xfcd2b1=_0xe5129c;this[_0xfcd2b1(0x194)](this[_0xfcd2b1(0x1c1)][_0xfcd2b1(0x19d)](_0x1ec6b2));});}};m=ee([te(0x0,o[_0x335e3f(0x1b9)](E))],m);var ie=Object[_0x335e3f(0x24d)],se=Object[_0x335e3f(0x19c)],ne=(_0x15a97b,_0x22879f,_0xe90704)=>_0x22879f in _0x15a97b?ie(_0x15a97b,_0x22879f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe90704}):_0x15a97b[_0x22879f]=_0xe90704,re=(_0x14641e,_0x21ded4,_0x34a455,_0xa2339d)=>{for(var _0x443db5=_0xa2339d>0x1?void 0x0:_0xa2339d?se(_0x21ded4,_0x34a455):_0x21ded4,_0xec3245=_0x14641e['length']-0x1,_0x41ccd3;_0xec3245>=0x0;_0xec3245--)(_0x41ccd3=_0x14641e[_0xec3245])&&(_0x443db5=_0x41ccd3(_0x443db5)||_0x443db5);return _0x443db5;},N=(_0x50944c,_0xf09363)=>(_0x13b97f,_0x487bba)=>_0xf09363(_0x13b97f,_0x487bba,_0x50944c),A=(_0x3db79a,_0x206f12,_0x146558)=>ne(_0x3db79a,typeof _0x206f12!=_0x335e3f(0x229)?_0x206f12+'':_0x206f12,_0x146558);const oe=_0x335e3f(0x184);exports[_0x335e3f(0x226)]=class extends o['Plugin']{constructor(_0x6aea2=w,_0x3c87af,_0x3e8a3d){const _0x33d785=_0x335e3f;super(),this[_0x33d785(0x19e)]=_0x6aea2,this[_0x33d785(0x1e8)]=_0x3c87af,this['_configService']=_0x3e8a3d;const {..._0x4acc32}=o[_0x33d785(0x22b)]({},w,this['_config']);this[_0x33d785(0x221)][_0x33d785(0x1dc)](Q,_0x4acc32);}['onStarting'](){const _0x149383=_0x335e3f;o[_0x149383(0x21d)](this[_0x149383(0x1e8)],o[_0x149383(0x187)]([[E],[exports[_0x149383(0x18c)]],[m],[exports[_0x149383(0x1e4)]]],this['_config'][_0x149383(0x1e6)])),o[_0x149383(0x18d)](this[_0x149383(0x1e8)],[[m]]);}[_0x335e3f(0x1db)](){const _0x4483c0=_0x335e3f;o[_0x4483c0(0x18d)](this[_0x4483c0(0x1e8)],[[exports[_0x4483c0(0x1e4)]]]);}},A(exports['UniverLiveSharePlugin'],_0x335e3f(0x22d),o[_0x335e3f(0x203)][_0x335e3f(0x220)]),A(exports[_0x335e3f(0x226)],'pluginName',oe),exports[_0x335e3f(0x226)]=re([o[_0x335e3f(0x1ff)](b[_0x335e3f(0x224)]),N(0x1,o[_0x335e3f(0x1b9)](o['Injector'])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports[_0x335e3f(0x1bb)]=E,exports[_0x335e3f(0x20f)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2b54dc=_0x1cda;(function(_0x4f436f,_0x5b0850){const _0x59851d=_0x1cda,_0x14bc6b=_0x4f436f();while(!![]){try{const _0xf4f163=-parseInt(_0x59851d(0x96))/0x1*(-parseInt(_0x59851d(0x9c))/0x2)+parseInt(_0x59851d(0xa8))/0x3+-parseInt(_0x59851d(0xa2))/0x4+-parseInt(_0x59851d(0x94))/0x5+parseInt(_0x59851d(0xa0))/0x6*(parseInt(_0x59851d(0x97))/0x7)+-parseInt(_0x59851d(0x98))/0x8+parseInt(_0x59851d(0xa6))/0x9*(parseInt(_0x59851d(0x90))/0xa);if(_0xf4f163===_0x5b0850)break;else _0x14bc6b['push'](_0x14bc6b['shift']());}catch(_0x2894bb){_0x14bc6b['push'](_0x14bc6b['shift']());}}}(_0x2c2f,0x8f628));import{LiveShareController as _0x360aa6,LiveShareStatus as _0x2921bd}from'@univerjs-pro/live-share';function _0x1cda(_0x4ef67,_0x42a305){const _0x2c2f4a=_0x2c2f();return _0x1cda=function(_0x1cda42,_0xc328cb){_0x1cda42=_0x1cda42-0x8f;let _0x3b7683=_0x2c2f4a[_0x1cda42];return _0x3b7683;},_0x1cda(_0x4ef67,_0x42a305);}import{IRenderManagerService as _0x5581eb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x11fd11}from'@univerjs/sheets';import{SetScrollOperation as _0x5c7015}from'@univerjs/sheets-ui';import{FRange as _0x3cbc29}from'@univerjs/sheets/facade';function _0x2c2f(){const _0x3116c7=['getLiveShareCoordinatorSync','304335PxgWHE','No\x20active\x20workbook\x20found.','2865159zdHbaL','stopPresenting','startRow','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getId','PRESENTING','120dztKlf','get','getSheetId','stopFollowing','5867370MvUzGJ','startPresenting','36502znEKnM','99001iSzQyU','8612216gRnrDL','startColumn','getActiveWorkbook','getActiveSheet','46gxUSiT','extend','_commandService','_injector','396kyImME','getLiveShareStatus','1186048WyfsOC','IDLE','getStatus'];_0x2c2f=function(){return _0x3116c7;};return _0x2c2f();}import{FUniver as _0x588fcb,FEnum as _0x1789a1}from'@univerjs/core/facade';class I extends _0x3cbc29{['_initialize'](_0x42495e,_0x555848,_0x1e6493,_0x59deac,_0x19cf00){const _0x477317=_0x1cda,_0x28b36e=_0x42495e[_0x477317(0x91)](_0x360aa6),_0x31b023=_0x42495e[_0x477317(0x91)](_0x5581eb),_0x3689f5=_0x555848[_0x477317(0xab)](),_0x1873dd=_0x555848[_0x477317(0x9b)](),_0x196b83=_0x28b36e[_0x477317(0xa5)](_0x3689f5);(_0x196b83==null?void 0x0:_0x196b83['getStatus']())!==_0x2921bd[_0x477317(0x8f)]||(_0x1e6493[_0x477317(0x92)]()!==_0x1873dd[_0x477317(0x92)]()&&this[_0x477317(0x9e)]['executeCommand'](_0x11fd11['id'],{'unitId':_0x3689f5,'subUnitId':_0x1e6493['getSheetId']()}),!_0x31b023['getRenderById'](_0x3689f5))||_0x19cf00['syncExecuteCommand'](_0x5c7015['id'],{'unitId':_0x555848[_0x477317(0xab)](),'sheetId':_0x1e6493['getSheetId'](),'sheetViewStartRow':_0x59deac[_0x477317(0xaa)],'sheetViewStartColumn':_0x59deac[_0x477317(0x99)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3cbc29[_0x2b54dc(0x9d)](I);class m extends _0x588fcb{[_0x2b54dc(0xa1)](){const _0x586947=_0x2b54dc;var _0x14a0d0,_0x213e21;const _0x48aa70=this['_injector'][_0x586947(0x91)](_0x360aa6),_0x8862f9=(_0x14a0d0=this['getActiveWorkbook']())==null?void 0x0:_0x14a0d0[_0x586947(0xae)]();if(!_0x8862f9)throw new Error('No\x20active\x20workbook\x20found.');const _0xda90e6=_0x48aa70[_0x586947(0xa5)](_0x8862f9);return(_0x213e21=_0xda90e6==null?void 0x0:_0xda90e6[_0x586947(0xa4)]())!=null?_0x213e21:_0x2921bd[_0x586947(0xa3)];}[_0x2b54dc(0xad)](){const _0x448248=_0x2b54dc;var _0x52c069;const _0xbf2cf6=this['_injector'][_0x448248(0x91)](_0x360aa6),_0x5b19c8=(_0x52c069=this[_0x448248(0x9a)]())==null?void 0x0:_0x52c069[_0x448248(0xae)]();if(!_0x5b19c8)throw new Error('No\x20active\x20workbook\x20found.');const _0x10207a=_0xbf2cf6['getLiveShareCoordinatorSync'](_0x5b19c8);if(!_0x10207a)throw new Error(_0x448248(0xac));_0x10207a[_0x448248(0xad)]();}[_0x2b54dc(0x93)](){const _0xa46f10=_0x2b54dc;var _0x44023a;const _0x27e4ba=this[_0xa46f10(0x9f)][_0xa46f10(0x91)](_0x360aa6),_0x348b1=(_0x44023a=this[_0xa46f10(0x9a)]())==null?void 0x0:_0x44023a[_0xa46f10(0xae)]();if(!_0x348b1)throw new Error(_0xa46f10(0xa7));const _0x7ffa37=_0x27e4ba[_0xa46f10(0xa5)](_0x348b1);if(!_0x7ffa37)throw new Error(_0xa46f10(0xac));_0x7ffa37[_0xa46f10(0x93)]();}[_0x2b54dc(0x95)](){const _0x46ba7e=_0x2b54dc;var _0x2c680c;const _0x15ebf7=this['_injector'][_0x46ba7e(0x91)](_0x360aa6),_0x32691f=(_0x2c680c=this[_0x46ba7e(0x9a)]())==null?void 0x0:_0x2c680c[_0x46ba7e(0xae)]();if(!_0x32691f)throw new Error(_0x46ba7e(0xa7));const _0x30e3ff=_0x15ebf7[_0x46ba7e(0xa5)](_0x32691f);if(!_0x30e3ff)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x30e3ff['tryStartPresenting']();}[_0x2b54dc(0xa9)](){const _0x5bae7a=_0x2b54dc;var _0x595c1e;const _0x83fc3b=this[_0x5bae7a(0x9f)]['get'](_0x360aa6),_0x49148d=(_0x595c1e=this['getActiveWorkbook']())==null?void 0x0:_0x595c1e[_0x5bae7a(0xae)]();if(!_0x49148d)throw new Error(_0x5bae7a(0xa7));const _0x30450b=_0x83fc3b[_0x5bae7a(0xa5)](_0x49148d);if(!_0x30450b)throw new Error(_0x5bae7a(0xac));_0x30450b[_0x5bae7a(0xa9)]();}}_0x588fcb['extend'](m);class C extends _0x1789a1{get['LiveShareStatusEnum'](){return _0x2921bd;}}_0x1789a1['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x28483d=_0x5a0d;(function(_0x290b11,_0x36a553){const _0x1919f9=_0x5a0d,_0x4746c2=_0x290b11();while(!![]){try{const _0x31b3db=-parseInt(_0x1919f9(0x1bb))/0x1*(parseInt(_0x1919f9(0x193))/0x2)+-parseInt(_0x1919f9(0x1a1))/0x3*(-parseInt(_0x1919f9(0x209))/0x4)+-parseInt(_0x1919f9(0x1fe))/0x5+-parseInt(_0x1919f9(0x18b))/0x6+-parseInt(_0x1919f9(0x1af))/0x7+parseInt(_0x1919f9(0x198))/0x8+parseInt(_0x1919f9(0x1c4))/0x9*(parseInt(_0x1919f9(0x1fc))/0xa);if(_0x31b3db===_0x36a553)break;else _0x4746c2['push'](_0x4746c2['shift']());}catch(_0x20e26c){_0x4746c2['push'](_0x4746c2['shift']());}}}(_0x4c4f,0x6b9fe));var J=Object[_0x28483d(0x1e0)],K=(_0x473961,_0x59fb21,_0xa53e3c)=>_0x59fb21 in _0x473961?J(_0x473961,_0x59fb21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa53e3c}):_0x473961[_0x59fb21]=_0xa53e3c,u=(_0x432b73,_0x5052e7,_0x23009e)=>K(_0x432b73,typeof _0x5052e7!='symbol'?_0x5052e7+'':_0x5052e7,_0x23009e);import{Disposable as _0x415a2,toDisposable as _0x32aa81,IUniverInstanceService as _0x240c37,Inject as _0x100628,Injector as _0x1e4d19,IConfigService as _0x28819f,ICommandService as _0x553dea,RxDisposable as _0x4e959a,UniverInstanceType as _0x1da7ce,DisposableCollection as _0xe53e61,CommandType as _0x37c949,DependentOn as _0x414cfb,Plugin as _0x1a183f,merge as _0x4cb9a7,registerDependencies as _0x5c9e8b,mergeOverrideWithDependencies as _0x175362,touchDependencies as _0xb23083}from'@univerjs/core';import{useDependency as _0x23a79c,useObservable as _0x13956b,IUIPartsService as _0x4f58c8,BuiltInUIPart as _0x591e95,connectInjector as _0x560990}from'@univerjs/ui';import{jsx as _0x1c2c9e,jsxs as _0x8cd725,Fragment as _0x4fb667}from'react/jsx-runtime';import{Dropdown as _0x1ffd19,clsx as _0x52a3f7,Button as _0x29e220}from'@univerjs/design';import{useRef as _0x36dedb,createElement as _0x49f114,forwardRef as _0x340b2,useState as _0xd82959,useEffect as _0x54962e}from'react';import{CollaborationEvent as _0x413f6e,parseProtocolChangeset as _0x3f2aee}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2e835c,SessionStatus as _0x216c33,UniverCollaborationClientPlugin as _0x18716e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2cbc0d,SetWorksheetActiveOperation as _0x5143a7}from'@univerjs/sheets';import{BehaviorSubject as _0x2ad11c,Subject as _0x5a8bbd}from'rxjs';import{takeUntil as _0x3cbd1c,throttleTime as _0x2b2451}from'rxjs/operators';import{SetZoomRatioOperation as _0x3d23dc,SetScrollOperation as _0x3b0aa1}from'@univerjs/sheets-ui';function k({ref:_0x22bc8b,..._0x4c537e}){const _0x51e7b5=_0x28483d,{icon:_0x13ce29,id:_0x1331d5,className:_0xb8810b,extend:_0x269ab1,..._0xdb098}=_0x4c537e,_0x41ffb3=('univerjs-icon\x20univerjs-icon-'+_0x1331d5+'\x20'+(_0xb8810b||''))[_0x51e7b5(0x19d)](),_0x131cc2=_0x36dedb('_'+Oe());return G(_0x13ce29,''+_0x1331d5,{'defIds':_0x13ce29['defIds'],'idSuffix':_0x131cc2[_0x51e7b5(0x224)]},{'ref':_0x22bc8b,'className':_0x41ffb3,..._0xdb098},_0x269ab1);}function G(_0x3fe745,_0xb1103f,_0x567ecb,_0x138b8e,_0xe8766b){const _0x47d24f=_0x28483d;return _0x49f114(_0x3fe745[_0x47d24f(0x1ee)],{'key':_0xb1103f,...be(_0x3fe745,_0x567ecb,_0xe8766b),..._0x138b8e},(Ee(_0x3fe745,_0x567ecb)[_0x47d24f(0x19b)]||[])[_0x47d24f(0x1ca)]((_0x3c85ad,_0x43dcc5)=>G(_0x3c85ad,_0xb1103f+'-'+_0x3fe745[_0x47d24f(0x1ee)]+'-'+_0x43dcc5,_0x567ecb,void 0x0,_0xe8766b)));}function be(_0x26c60b,_0x488b3f,_0x1a6c69){const _0x448dd8=_0x28483d,_0x54676b={..._0x26c60b[_0x448dd8(0x229)]};_0x1a6c69!=null&&_0x1a6c69[_0x448dd8(0x206)]&&_0x54676b[_0x448dd8(0x1db)]===_0x448dd8(0x206)&&(_0x54676b[_0x448dd8(0x1db)]=_0x1a6c69[_0x448dd8(0x206)]),_0x26c60b[_0x448dd8(0x1ee)]===_0x448dd8(0x1a7)&&_0x54676b['id']&&(_0x54676b['id']=_0x54676b['id']+_0x488b3f[_0x448dd8(0x1b1)]),Object[_0x448dd8(0x1eb)](_0x54676b)[_0x448dd8(0x1b6)](([_0x410e3e,_0x17c973])=>{const _0x2c0c67=_0x448dd8;_0x410e3e==='mask'&&typeof _0x17c973==_0x2c0c67(0x21d)&&(_0x54676b[_0x410e3e]=_0x17c973[_0x2c0c67(0x1dd)](/url\(#(.*)\)/,_0x2c0c67(0x20c)+_0x488b3f[_0x2c0c67(0x1b1)]+')'));});const {defIds:_0x510b14}=_0x488b3f;return!_0x510b14||_0x510b14['length']===0x0||(_0x26c60b[_0x448dd8(0x1ee)]===_0x448dd8(0x222)&&_0x54676b[_0x448dd8(0x1aa)]&&(_0x54676b[_0x448dd8(0x1aa)]=_0x54676b[_0x448dd8(0x1aa)]+_0x488b3f[_0x448dd8(0x1b1)]),Object['entries'](_0x54676b)['forEach'](([_0x49c9db,_0xed6ae4])=>{const _0x2bdca1=_0x448dd8;typeof _0xed6ae4==_0x2bdca1(0x21d)&&(_0x54676b[_0x49c9db]=_0xed6ae4[_0x2bdca1(0x1dd)](/url\(#(.*)\)/,_0x2bdca1(0x20c)+_0x488b3f[_0x2bdca1(0x1b1)]+')'));})),_0x54676b;}function Ee(_0x2d1622,_0x2d773f){const _0x2c5354=_0x28483d;var _0x46f311;const {defIds:_0x4f9c22}=_0x2d773f;return!_0x4f9c22||_0x4f9c22[_0x2c5354(0x1d6)]===0x0?_0x2d1622:_0x2d1622[_0x2c5354(0x1ee)]===_0x2c5354(0x1f4)&&((_0x46f311=_0x2d1622[_0x2c5354(0x19b)])!=null&&_0x46f311[_0x2c5354(0x1d6)])?{..._0x2d1622,'children':_0x2d1622[_0x2c5354(0x19b)][_0x2c5354(0x1ca)](_0x1b0550=>typeof _0x1b0550['attrs']['id']==_0x2c5354(0x21d)&&_0x4f9c22&&_0x4f9c22['includes'](_0x1b0550[_0x2c5354(0x229)]['id'])?{..._0x1b0550,'attrs':{..._0x1b0550['attrs'],'id':_0x1b0550[_0x2c5354(0x229)]['id']+_0x2d773f[_0x2c5354(0x1b1)]}}:_0x1b0550)}:_0x2d1622;}function Oe(){const _0x1a5828=_0x28483d;return Math[_0x1a5828(0x232)]()[_0x1a5828(0x18e)](0x24)[_0x1a5828(0x218)](0x2,0x8);}k[_0x28483d(0x22f)]=_0x28483d(0x1b0);function _0x5a0d(_0x53b63d,_0x1a6b2b){const _0x4c4f5a=_0x4c4f();return _0x5a0d=function(_0x5a0ddd,_0x200c29){_0x5a0ddd=_0x5a0ddd-0x18a;let _0x2d884f=_0x4c4f5a[_0x5a0ddd];return _0x2d884f;},_0x5a0d(_0x53b63d,_0x1a6b2b);}const we={'tag':_0x28483d(0x21a),'attrs':{'xmlns':_0x28483d(0x1c0),'fill':_0x28483d(0x1f0),'viewBox':_0x28483d(0x202),'width':_0x28483d(0x1f1),'height':_0x28483d(0x1f1)},'children':[{'tag':_0x28483d(0x194),'attrs':{'fill':_0x28483d(0x1a9),'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':_0x28483d(0x194),'attrs':{'fill':'currentColor','d':_0x28483d(0x19a),'fillRule':'evenodd','clipRule':_0x28483d(0x225)}}]},W=_0x340b2(function(_0x5107d8,_0x1579f1){const _0x327143=_0x28483d;return _0x49f114(k,Object[_0x327143(0x1d7)]({},_0x5107d8,{'id':_0x327143(0x1d2),'ref':_0x1579f1,'icon':we}));});W[_0x28483d(0x22f)]=_0x28483d(0x1de);class L extends _0x415a2{constructor(){const _0x189e39=_0x28483d;super(...arguments),u(this,_0x189e39(0x207),new Set()),u(this,_0x189e39(0x19f),new Set());}[_0x28483d(0x1a5)](_0x314029){const _0x4f538f=_0x28483d;return this['_sharedOperations']['add'](_0x314029),_0x32aa81(()=>this[_0x4f538f(0x207)][_0x4f538f(0x1f6)](_0x314029));}[_0x28483d(0x20b)](_0x538f80){const _0x53f7e6=_0x28483d;return this[_0x53f7e6(0x19f)][_0x53f7e6(0x19e)](_0x538f80),_0x32aa81(()=>this[_0x53f7e6(0x19f)][_0x53f7e6(0x1f6)](_0x538f80));}['shouldShareOperation'](_0x1ae86a){const _0x45b7d1=_0x28483d;return this[_0x45b7d1(0x207)]['has'](_0x1ae86a);}['getInitialStates'](_0x59a0df){const _0x534892=_0x28483d;return Array[_0x534892(0x1da)](this[_0x534892(0x19f)])[_0x534892(0x1ca)](_0x55d7ef=>_0x55d7ef(_0x59a0df));}}var Ne=Object[_0x28483d(0x1b3)],Y=(_0x45df4d,_0x32e14f,_0x89f62a,_0x4631dc)=>{const _0x2a1d2c=_0x28483d;for(var _0x4ca646=_0x4631dc>0x1?void 0x0:_0x4631dc?Ne(_0x32e14f,_0x89f62a):_0x32e14f,_0x39a798=_0x45df4d[_0x2a1d2c(0x1d6)]-0x1,_0x4af6bc;_0x39a798>=0x0;_0x39a798--)(_0x4af6bc=_0x45df4d[_0x39a798])&&(_0x4ca646=_0x4af6bc(_0x4ca646)||_0x4ca646);return _0x4ca646;},_=(_0x249a9c,_0x188b77)=>(_0x114828,_0x17768c)=>_0x188b77(_0x114828,_0x17768c,_0x249a9c);let S=class extends _0x4e959a{constructor(_0x182ea4,_0x56e68a,_0x4a3896){const _0x38ca23=_0x28483d;super(),u(this,_0x38ca23(0x192),new Map()),(this[_0x38ca23(0x234)]=_0x182ea4,this['_injector']=_0x56e68a,this['_collabSessionService']=_0x4a3896,this[_0x38ca23(0x205)]());}async['getLiveShareCoordinator'](_0x39eee6){const _0x2c441d=_0x28483d;return this[_0x2c441d(0x192)][_0x2c441d(0x201)](_0x39eee6)||await this[_0x2c441d(0x20e)](_0x39eee6),this[_0x2c441d(0x192)][_0x2c441d(0x1cc)](_0x39eee6);}['getLiveShareCoordinatorSync'](_0x404245){const _0x52c558=_0x28483d;var _0x5cacdc;return(_0x5cacdc=this[_0x52c558(0x192)][_0x52c558(0x1cc)](_0x404245))!=null?_0x5cacdc:null;}[_0x28483d(0x205)](){const _0x2e045d=_0x28483d;this['_univerInstanceService'][_0x2e045d(0x231)](_0x1da7ce[_0x2e045d(0x1ea)])[_0x2e045d(0x212)](_0x3cbd1c(this[_0x2e045d(0x1e5)]))[_0x2e045d(0x22a)](async _0x1493eb=>{const _0x358a97=_0x2e045d,_0x3bda41=_0x1493eb[_0x358a97(0x1d5)]();this[_0x358a97(0x192)][_0x358a97(0x201)](_0x3bda41)||this[_0x358a97(0x20e)](_0x3bda41);}),this['_univerInstanceService'][_0x2e045d(0x1a0)](_0x1da7ce[_0x2e045d(0x1ea)])[_0x2e045d(0x212)](_0x3cbd1c(this[_0x2e045d(0x1e5)]))['subscribe'](_0x362cdd=>{const _0x34a6b1=_0x2e045d,_0x417169=_0x362cdd[_0x34a6b1(0x1d5)](),_0x11aa01=this[_0x34a6b1(0x192)]['get'](_0x417169);_0x11aa01==null||_0x11aa01[_0x34a6b1(0x210)]();});}async['_startLiveShareCoordinator'](_0x39dcb7){const _0x3ad79a=_0x28483d,_0x5f1f48=await this['_collabSessionService'][_0x3ad79a(0x21e)](_0x39dcb7),_0x5f4811=this[_0x3ad79a(0x22e)]['createInstance'](N,_0x39dcb7,_0x5f1f48);return _0x5f4811[_0x3ad79a(0x199)](),this[_0x3ad79a(0x192)][_0x3ad79a(0x1bc)](_0x39dcb7,_0x5f4811),_0x5f4811;}};S=Y([_(0x0,_0x240c37),_(0x1,_0x100628(_0x1e4d19)),_(0x2,_0x100628(_0x2e835c))],S);var c=(_0x594ee7=>(_0x594ee7[_0x28483d(0x1d3)]=_0x28483d(0x1d1),_0x594ee7[_0x28483d(0x22c)]=_0x28483d(0x204),_0x594ee7[_0x28483d(0x219)]=_0x28483d(0x18a),_0x594ee7[_0x28483d(0x18d)]=_0x28483d(0x1bd),_0x594ee7[_0x28483d(0x1df)]=_0x28483d(0x227),_0x594ee7))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4e959a{constructor(_0xaaec2f,_0x5ff498,_0xfc8671,_0xde38a8,_0x234e95){const _0x1d9a19=_0x28483d;super(),u(this,_0x1d9a19(0x233),new _0x2ad11c(_0x1d9a19(0x204))),u(this,_0x1d9a19(0x1b7),this[_0x1d9a19(0x233)][_0x1d9a19(0x1e2)]()),u(this,_0x1d9a19(0x205),!0x1),u(this,_0x1d9a19(0x1e9),null),u(this,_0x1d9a19(0x1ce),null),(this['_unitID']=_0xaaec2f,this[_0x1d9a19(0x196)]=_0x5ff498,this['_configService']=_0xfc8671,this[_0x1d9a19(0x1f5)]=_0xde38a8,this['_commandService']=_0x234e95);}get[_0x28483d(0x1e7)](){const _0x162f56=_0x28483d;return this['_status$'][_0x162f56(0x1b5)]();}[_0x28483d(0x210)](){const _0x5cdb00=_0x28483d;var _0x4731da;(_0x4731da=this[_0x5cdb00(0x1e9)])==null||_0x4731da[_0x5cdb00(0x210)](),this[_0x5cdb00(0x233)]['next']('idle'),this[_0x5cdb00(0x233)][_0x5cdb00(0x1bf)]();}[_0x28483d(0x1dc)](){return this['_status'];}[_0x28483d(0x199)](){const _0x4430a3=_0x28483d;this[_0x4430a3(0x205)]||(this[_0x4430a3(0x205)]=!0x0,this['_collabSession'][_0x4430a3(0x195)][_0x4430a3(0x212)](_0x3cbd1c(this['dispose$']))[_0x4430a3(0x22a)](_0xfecb78=>{const _0x4a4102=_0x4430a3;switch(_0xfecb78){case _0x216c33[_0x4a4102(0x1d3)]:this['_handleOffline']();break;case _0x216c33['ONLINE']:this[_0x4a4102(0x1c8)]();break;}}),this[_0x4430a3(0x196)]['event$']['pipe'](_0x3cbd1c(this[_0x4430a3(0x1e5)]))['subscribe'](_0x36fd86=>{const _0x9f4709=_0x4430a3,{eventID:_0x5419f2}=_0x36fd86;switch(_0x5419f2){case _0x413f6e[_0x9f4709(0x1d9)]:this['_handleNewHost'](_0x36fd86);break;case _0x413f6e[_0x9f4709(0x1c1)]:this[_0x9f4709(0x1d4)](_0x36fd86);break;case _0x413f6e[_0x9f4709(0x1e3)]:this[_0x9f4709(0x1fa)]();break;case _0x413f6e[_0x9f4709(0x1a2)]:this[_0x9f4709(0x1cf)](_0x36fd86);break;}}));}['tryStartPresenting'](){const _0x3065ed=_0x28483d;this['_collabSession'][_0x3065ed(0x216)]({'eventID':_0x413f6e[_0x3065ed(0x18f)],'data':{'unitID':this['_unitID'],'userID':this[_0x3065ed(0x196)][_0x3065ed(0x1c3)]()}},this[_0x3065ed(0x208)]);}['stopPresenting'](){const _0x35dc7c=_0x28483d;this[_0x35dc7c(0x1e7)]==='presenting'&&(this[_0x35dc7c(0x233)][_0x35dc7c(0x20f)]('idle'),this[_0x35dc7c(0x196)]['send']({'eventID':_0x413f6e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x35dc7c(0x208)]}},this['_unitID']));}[_0x28483d(0x191)](){const _0x8e3f52=_0x28483d;this[_0x8e3f52(0x1e7)]===_0x8e3f52(0x1bd)&&(this['_status$']['next']('following'),this[_0x8e3f52(0x1e4)]());}['stopFollowing'](){const _0x184c66=_0x28483d;this[_0x184c66(0x1e7)]==='following'&&this['_stopFollowing']();}[_0x28483d(0x190)](_0x5117a6){const _0x533981=_0x28483d,{presenter:_0x3d277e}=_0x5117a6[_0x533981(0x213)],_0x55a530=this[_0x533981(0x196)][_0x533981(0x1c3)]();this[_0x533981(0x1ce)]=_0x3d277e,_0x3d277e===_0x55a530?(this[_0x533981(0x1ff)](),this[_0x533981(0x1c5)]()):this[_0x533981(0x1e7)]!==_0x533981(0x1bd)&&(this['_stopPresenting'](),this[_0x533981(0x1e4)]());}[_0x28483d(0x211)](){const _0x22bf29=_0x28483d,_0x33bf4d={'eventID':_0x413f6e[_0x22bf29(0x203)]};this['_collabSession'][_0x22bf29(0x216)](_0x33bf4d,this[_0x22bf29(0x208)]);}[_0x28483d(0x1fa)](){const _0x40724c=_0x28483d;this['_presenter']=null,this[_0x40724c(0x1e7)]!==_0x40724c(0x227)&&this[_0x40724c(0x1ab)]();}['_handleNewChangeSets'](_0x1c2775){const _0x2c4a40=_0x28483d;if(this[_0x2c4a40(0x1e7)]==='following'&&this[_0x2c4a40(0x1ce)]===_0x1c2775[_0x2c4a40(0x213)][_0x2c4a40(0x1be)]){const _0x5dd8b2=_0x3f2aee(_0x1c2775[_0x2c4a40(0x213)])[_0x2c4a40(0x1f7)][_0x2c4a40(0x18c)]()[_0x2c4a40(0x221)](_0x5e9a1d=>_0x5e9a1d['id']===_0x2cbc0d['id']);if(_0x5dd8b2){const _0x56b8ce=_0x5dd8b2[_0x2c4a40(0x1ae)]['unitId'],_0x53e8cf=_0x5dd8b2[_0x2c4a40(0x1ae)][_0x2c4a40(0x21b)]['id'];setTimeout(()=>{const _0x2b6b58=_0x2c4a40;this[_0x2b6b58(0x1d0)][_0x2b6b58(0x1cb)](_0x5143a7['id'],{'unitId':_0x56b8ce,'subUnitId':_0x53e8cf},{'fromCollab':!0x0});});}}}[_0x28483d(0x1c5)](){const _0x54e5a1=_0x28483d;this[_0x54e5a1(0x233)][_0x54e5a1(0x20f)]('presenting');const _0x2c10f0=new Map(),_0x33b03f=this[_0x54e5a1(0x1e9)]=new _0xe53e61();_0x33b03f[_0x54e5a1(0x19e)](_0x32aa81(()=>{const _0x1430f5=_0x54e5a1;_0x2c10f0['forEach'](_0x2955c2=>_0x2955c2[_0x1430f5(0x1bf)]()),_0x2c10f0[_0x1430f5(0x1f3)]();})),_0x33b03f[_0x54e5a1(0x19e)](this[_0x54e5a1(0x1d0)][_0x54e5a1(0x215)](_0x26c721=>{const _0x1b6f4a=_0x54e5a1;var _0x44b369;if(_0x26c721['type']!==_0x37c949[_0x1b6f4a(0x220)]||!this[_0x1b6f4a(0x1f5)][_0x1b6f4a(0x1c2)](_0x26c721['id']))return;const {id:_0x34a49d}=_0x26c721;let _0x1d14bc;_0x2c10f0[_0x1b6f4a(0x201)](_0x34a49d)?_0x1d14bc=_0x2c10f0[_0x1b6f4a(0x1cc)](_0x34a49d):(_0x1d14bc=new _0x5a8bbd(),_0x2c10f0[_0x1b6f4a(0x1bc)](_0x34a49d,_0x1d14bc),_0x1d14bc[_0x1b6f4a(0x212)](_0x2b2451((_0x44b369=this[_0x1b6f4a(0x21f)]['getConfig'](Ce))!=null?_0x44b369:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1b6f4a(0x22a)](_0xa7e8f6=>{const _0x4f1d28=_0x1b6f4a;this[_0x4f1d28(0x196)][_0x4f1d28(0x216)]({'eventID':_0x413f6e[_0x4f1d28(0x1c1)],'data':{'unitID':this[_0x4f1d28(0x208)],'operations':{[_0xa7e8f6['id']]:{'id':_0xa7e8f6['id'],'params':JSON[_0x4f1d28(0x1f8)](_0xa7e8f6[_0x4f1d28(0x1ae)])}}}},this[_0x4f1d28(0x208)]);})),_0x1d14bc[_0x1b6f4a(0x20f)](_0x26c721);})),this[_0x54e5a1(0x1f5)][_0x54e5a1(0x1c6)](this[_0x54e5a1(0x208)])[_0x54e5a1(0x1b6)](_0xa8981b=>this['_collabSession'][_0x54e5a1(0x216)]({'eventID':_0x413f6e[_0x54e5a1(0x1c1)],'data':{'unitID':this[_0x54e5a1(0x208)],'operations':{[_0xa8981b['id']]:{'id':_0xa8981b['id'],'params':JSON[_0x54e5a1(0x1f8)](_0xa8981b['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x58e902=_0x28483d;var _0x1b1ed4;this[_0x58e902(0x233)][_0x58e902(0x20f)](_0x58e902(0x204)),(_0x1b1ed4=this[_0x58e902(0x1e9)])==null||_0x1b1ed4[_0x58e902(0x210)](),this[_0x58e902(0x1e9)]=null;}['_startFollowing'](){const _0x3aec53=_0x28483d;var _0x10403b;(_0x10403b=this[_0x3aec53(0x1e9)])==null||_0x10403b[_0x3aec53(0x210)](),this[_0x3aec53(0x233)]['next'](_0x3aec53(0x18a));}[_0x28483d(0x1ab)](){const _0x3ed9ad=_0x28483d;var _0x1078b2;this['_status$']['next']('idle'),(_0x1078b2=this[_0x3ed9ad(0x1e9)])==null||_0x1078b2[_0x3ed9ad(0x210)](),this[_0x3ed9ad(0x1e9)]=null;}[_0x28483d(0x1ff)](){const _0x4f9431=_0x28483d;var _0x18b111;this[_0x4f9431(0x233)][_0x4f9431(0x20f)](_0x4f9431(0x1bd)),(_0x18b111=this['_commandDisposable'])==null||_0x18b111[_0x4f9431(0x210)]();}[_0x28483d(0x1d4)](_0x2b8587){const _0x500851=_0x28483d;if(['presenting','not-following',_0x500851(0x1d1)][_0x500851(0x1b2)](this[_0x500851(0x1e7)])||!_0x2b8587[_0x500851(0x213)][_0x500851(0x1ba)]||_0x2b8587['data'][_0x500851(0x1ba)]===this['_collabSession'][_0x500851(0x1c3)]())return;this[_0x500851(0x1e7)]===_0x500851(0x204)&&this[_0x500851(0x1e4)]();const _0x5d691a=_0x2b8587[_0x500851(0x213)][_0x500851(0x1ec)];Object[_0x500851(0x230)](_0x5d691a)['forEach'](_0x5a1353=>{const _0x2d4e8e=_0x500851;this[_0x2d4e8e(0x1d0)][_0x2d4e8e(0x1cb)](_0x5a1353['id'],_0x5a1353['params']?JSON[_0x2d4e8e(0x20d)](_0x5a1353[_0x2d4e8e(0x1ae)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2fa878=_0x28483d;var _0x116da6;this[_0x2fa878(0x233)][_0x2fa878(0x20f)](_0x2fa878(0x1d1)),(_0x116da6=this['_commandDisposable'])==null||_0x116da6['dispose']();}[_0x28483d(0x1c8)](){const _0x1b04fb=_0x28483d;this[_0x1b04fb(0x233)][_0x1b04fb(0x20f)](_0x1b04fb(0x204)),this[_0x1b04fb(0x211)]();}};N=Y([_(0x2,_0x28819f),_(0x3,_0x100628(L)),_(0x4,_0x553dea)],N);function Le(){const _0xb21795=_0x28483d,_0x24b2a8=_0x23a79c(S),_0x1e2005=_0x23a79c(_0x240c37),_0x123d25=_0x13956b(()=>_0x1e2005['getCurrentTypeOfUnit$'](_0x1da7ce['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x11b712,_0x202241]=_0xd82959(null),[_0x3abca4,_0xcfc894]=_0xd82959(c[_0xb21795(0x22c)]),_0x52dca4=_0x36dedb(null);return _0x54962e(()=>(_0x123d25&&_0x24b2a8[_0xb21795(0x21c)](_0x123d25[_0xb21795(0x1d5)]())[_0xb21795(0x20a)](_0x15c463=>{const _0x3a1f79=_0xb21795;_0x202241(_0x15c463),_0x52dca4[_0x3a1f79(0x224)]=_0x15c463[_0x3a1f79(0x1b7)][_0x3a1f79(0x22a)](_0x4986d9=>{_0xcfc894(_0x4986d9);});}),()=>{const _0x1117bc=_0xb21795;var _0x202def;(_0x202def=_0x52dca4[_0x1117bc(0x224)])==null||_0x202def[_0x1117bc(0x1b9)](),_0x52dca4[_0x1117bc(0x224)]=null;}),[_0x123d25,_0x24b2a8]),_0x11b712?_0x1c2c9e(_0x1ffd19,{'align':_0xb21795(0x1a4),'disabled':_0x3abca4===c[_0xb21795(0x1d3)],'className':_0xb21795(0x1ac),'overlay':_0x1c2c9e(Re,{'status':_0x3abca4,'coordinator':_0x11b712}),'children':_0x1c2c9e('button',{'className':_0x52a3f7(_0xb21795(0x19c),{'univer-cursor-not-allowed':_0x3abca4===c[_0xb21795(0x1d3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3abca4!==c[_0xb21795(0x1d3)]}),'type':_0xb21795(0x217),'children':_0x1c2c9e(W,{'className':_0xb21795(0x197)})})}):null;}function Re(_0x4b1a9e){const _0x50c7fa=_0x28483d,{status:_0x424271,coordinator:_0x556572}=_0x4b1a9e;switch(_0x424271){case c[_0x50c7fa(0x22c)]:return _0x1c2c9e($e,{'coordinator':_0x556572});case c['FOLLOWING']:return _0x1c2c9e(xe,{'coordinator':_0x556572});case c[_0x50c7fa(0x18d)]:return _0x1c2c9e(Pe,{'coordinator':_0x556572});case c['OFFLINE']:return _0x1c2c9e(Te,{});case c['PRESENTING']:return _0x1c2c9e(Ae,{'coordinator':_0x556572});default:return null;}}function $e(_0x287ed1){const _0x39448e=_0x28483d,{coordinator:_0x41ea09}=_0x287ed1;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e(_0x39448e(0x1a6),{'className':_0x39448e(0x1e6),'children':'Present\x20this\x20document'}),_0x1c2c9e(_0x29e220,{'onClick':()=>_0x41ea09[_0x39448e(0x1fb)](),'children':'Start'})]});}function xe(_0x288a53){const _0x2f74f5=_0x28483d,{coordinator:_0x5dafab}=_0x288a53;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e(_0x2f74f5(0x1a6),{'className':_0x2f74f5(0x1e6),'children':_0x2f74f5(0x1b4)}),_0x1c2c9e(_0x29e220,{'onClick':()=>_0x5dafab[_0x2f74f5(0x1ad)](),'children':_0x2f74f5(0x228)})]});}function Pe(_0x3abaf4){const _0x1e1da6=_0x28483d,{coordinator:_0x412731}=_0x3abaf4;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1c2c9e(_0x29e220,{'variant':_0x1e1da6(0x1c7),'onClick':()=>_0x412731['startFollowing'](),'children':_0x1e1da6(0x1f2)})]});}function Ae(_0x467235){const _0x5bc0fc=_0x28483d,{coordinator:_0x59ca87}=_0x467235;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e('div',{'className':_0x5bc0fc(0x1e6),'children':_0x5bc0fc(0x1ef)}),_0x1c2c9e(_0x29e220,{'variant':_0x5bc0fc(0x1e1),'onClick':()=>_0x59ca87[_0x5bc0fc(0x214)](),'children':_0x5bc0fc(0x226)})]});}function Te(){const _0x155d43=_0x28483d;return _0x1c2c9e(_0x4fb667,{'children':_0x155d43(0x1a8)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x143bbc,_0x122728,_0x244b5c,_0x400d8a)=>{const _0x1f02cb=_0x28483d;for(var _0x5add9d=_0x400d8a>0x1?void 0x0:_0x400d8a?Fe(_0x122728,_0x244b5c):_0x122728,_0x57a139=_0x143bbc[_0x1f02cb(0x1d6)]-0x1,_0x118d6c;_0x57a139>=0x0;_0x57a139--)(_0x118d6c=_0x143bbc[_0x57a139])&&(_0x5add9d=_0x118d6c(_0x5add9d)||_0x5add9d);return _0x5add9d;},A=(_0x5cee8a,_0x2f109f)=>(_0x321ecf,_0x15cc82)=>_0x2f109f(_0x321ecf,_0x15cc82,_0x5cee8a);let m=class extends _0x415a2{constructor(_0x262eaa,_0x54cc2a){const _0x32c8ce=_0x28483d;super(),this[_0x32c8ce(0x22e)]=_0x262eaa,this[_0x32c8ce(0x1c9)]=_0x54cc2a,this[_0x32c8ce(0x1d8)]();}['_mountLiveShare'](){const _0x25f663=_0x28483d;this[_0x25f663(0x1b8)](this['_uiPartsService']['registerComponent'](_0x591e95[_0x25f663(0x1a3)],()=>_0x560990(Le,this[_0x25f663(0x22e)])));}};m=He([A(0x0,_0x100628(_0x1e4d19)),A(0x1,_0x4f58c8)],m);const ye=_0x28483d(0x1cd),T={};var Ue=Object[_0x28483d(0x1b3)],Ve=(_0x5f3596,_0x50d7dc,_0x2a3545,_0x7ea1d2)=>{const _0x2c2ce9=_0x28483d;for(var _0x275ccd=_0x7ea1d2>0x1?void 0x0:_0x7ea1d2?Ue(_0x50d7dc,_0x2a3545):_0x50d7dc,_0x3df4ba=_0x5f3596[_0x2c2ce9(0x1d6)]-0x1,_0x5b43e1;_0x3df4ba>=0x0;_0x3df4ba--)(_0x5b43e1=_0x5f3596[_0x3df4ba])&&(_0x275ccd=_0x5b43e1(_0x275ccd)||_0x275ccd);return _0x275ccd;},je=(_0x2103d8,_0x173db8)=>(_0x508ac6,_0x24f85a)=>_0x173db8(_0x508ac6,_0x24f85a,_0x2103d8);let I=class extends _0x415a2{constructor(_0x2d014a){const _0x43722c=_0x28483d;super(),this[_0x43722c(0x1f5)]=_0x2d014a,this[_0x43722c(0x205)]();}[_0x28483d(0x205)](){[_0x3d23dc['id'],_0x3b0aa1['id'],_0x5143a7['id']]['forEach'](_0x29ee48=>{const _0x2908eb=_0x5a0d;this[_0x2908eb(0x1b8)](this[_0x2908eb(0x1f5)][_0x2908eb(0x1a5)](_0x29ee48));});}};I=Ve([je(0x0,_0x100628(L))],I);var Me=Object[_0x28483d(0x1e0)],ke=Object[_0x28483d(0x1b3)],Ge=(_0x55b69a,_0x23caba,_0x5467e8)=>_0x23caba in _0x55b69a?Me(_0x55b69a,_0x23caba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5467e8}):_0x55b69a[_0x23caba]=_0x5467e8,We=(_0x271c37,_0x3add07,_0x49f7e0,_0x5bd5b9)=>{const _0x40c156=_0x28483d;for(var _0x4dcf85=_0x5bd5b9>0x1?void 0x0:_0x5bd5b9?ke(_0x3add07,_0x49f7e0):_0x3add07,_0x55a6cf=_0x271c37[_0x40c156(0x1d6)]-0x1,_0x5cfcf0;_0x55a6cf>=0x0;_0x55a6cf--)(_0x5cfcf0=_0x271c37[_0x55a6cf])&&(_0x4dcf85=_0x5cfcf0(_0x4dcf85)||_0x4dcf85);return _0x4dcf85;},F=(_0xb8878c,_0x1d609d)=>(_0x1ddca0,_0x4e00bc)=>_0x1d609d(_0x1ddca0,_0x4e00bc,_0xb8878c),B=(_0x46f7db,_0x203a20,_0x1d5d97)=>Ge(_0x46f7db,typeof _0x203a20!=_0x28483d(0x200)?_0x203a20+'':_0x203a20,_0x1d5d97);function _0x4c4f(){const _0x64e179=['trim','add','_reporters','getTypeOfUnitDisposed$','2602113euDmhc','NEW_CHANGESETS','HEADER_MENU','end','registerSharedOperation','div','mask','You\x27are\x20offline.','currentColor','xlink:href','_beIdle','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','stopFollowing','params','5874428kGzlUL','UniverIcon','idSuffix','includes','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','getValue','forEach','status$','disposeWithMe','unsubscribe','presenter','2fyXTgs','set','not-following','memberID','complete','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','shouldShareOperation','getMemberID','16727814CnFXam','_startPresenting','getInitialStates','text','_handleOnline','_uiPartsService','map','executeCommand','get','live-share.config','_presenter','_handleNewChangeSets','_commandService','offline','live-share-icon','OFFLINE','_handleOperation','getUnitId','length','assign','_mountLiveShare','LIVESHARE_NEW_HOST','from','fill','getStatus','replace','LiveShareIcon','PRESENTING','defineProperty','default','asObservable','LIVESHARE_TERMINATE','_startFollowing','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_status','override','_commandDisposable','UNIVER_SHEET','entries','operations','onRendered','tag','You\x27re\x20presenting\x20the\x20document','none','1em','Start\x20following','clear','defs','_liveShareService','delete','mutations','stringify','onStarting','_handleTerminate','tryStartPresenting','10SYARAS','setConfig','4057625HRxWTa','_stopFollowing','symbol','has','0\x200\x2017\x2017','LIVESHARE_FETCH_OPERATIONS','idle','_init','colorChannel1','_sharedOperations','_unitID','4HnfsfY','then','registerInitialStateReporter','url(#$1','parse','_startLiveShareCoordinator','next','dispose','_fetchOperations','pipe','data','stopPresenting','onCommandExecuted','send','button','substring','FOLLOWING','svg','sheet','getLiveShareCoordinator','string','requireSession','_configService','OPERATION','find','use','type','current','evenodd','Stop\x20presenting','presenting','Stop\x20following','attrs','subscribe','_config','IDLE','pluginName','_injector','displayName','values','getTypeOfUnitAdded$','random','_status$','_univerInstanceService','following','624606leCqzL','reverse','NOT_FOLLOWING','toString','LIVESHARE_REQUEST_HOST','_handleNewHost','startFollowing','_entities','662954fpGCOM','path','sessionStatus$','_collabSession','univer-size-4','1060776dOXzpv','init','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','children','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x4c4f=function(){return _0x64e179;};return _0x4c4f();}const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1a183f{constructor(_0x4ecc82=T,_0xf1e941,_0x31a6c5){const _0x5486a9=_0x28483d;super(),this[_0x5486a9(0x22b)]=_0x4ecc82,this['_injector']=_0xf1e941,this[_0x5486a9(0x21f)]=_0x31a6c5;const {..._0x5b320e}=_0x4cb9a7({},T,this[_0x5486a9(0x22b)]);this[_0x5486a9(0x21f)][_0x5486a9(0x1fd)](ye,_0x5b320e);}[_0x28483d(0x1f9)](){const _0x5bfcd5=_0x28483d;_0x5c9e8b(this[_0x5bfcd5(0x22e)],_0x175362([[L],[S],[I],[m]],this[_0x5bfcd5(0x22b)][_0x5bfcd5(0x1e8)])),_0xb23083(this[_0x5bfcd5(0x22e)],[[I]]);}[_0x28483d(0x1ed)](){const _0x4cfb08=_0x28483d;_0xb23083(this[_0x4cfb08(0x22e)],[[m]]);}};B(b,_0x28483d(0x223),_0x1da7ce['UNIVER_UNKNOWN']),B(b,_0x28483d(0x22d),Ye),b=We([_0x414cfb(_0x18716e),F(0x1,_0x100628(_0x1e4d19)),F(0x2,_0x28819f)],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 _0x221811=_0x2e9a;(function(_0x153aa2,_0x53c9ad){const _0x469ad4=_0x2e9a,_0x2a42e1=_0x153aa2();while(!![]){try{const _0x5679d9=parseInt(_0x469ad4(0x134))/0x1*(parseInt(_0x469ad4(0x1b4))/0x2)+parseInt(_0x469ad4(0x150))/0x3+-parseInt(_0x469ad4(0x125))/0x4*(-parseInt(_0x469ad4(0x14d))/0x5)+-parseInt(_0x469ad4(0x15f))/0x6+-parseInt(_0x469ad4(0x187))/0x7+-parseInt(_0x469ad4(0x139))/0x8*(-parseInt(_0x469ad4(0x17d))/0x9)+-parseInt(_0x469ad4(0x165))/0xa;if(_0x5679d9===_0x53c9ad)break;else _0x2a42e1['push'](_0x2a42e1['shift']());}catch(_0x47c5ac){_0x2a42e1['push'](_0x2a42e1['shift']());}}}(_0x1745,0x81c6c));var J=Object[_0x221811(0x140)],K=(_0x54f9f1,_0x5442c9,_0x45d33c)=>_0x5442c9 in _0x54f9f1?J(_0x54f9f1,_0x5442c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45d33c}):_0x54f9f1[_0x5442c9]=_0x45d33c,u=(_0x4dda28,_0x35b8c8,_0x28d07c)=>K(_0x4dda28,typeof _0x35b8c8!=_0x221811(0x12b)?_0x35b8c8+'':_0x35b8c8,_0x28d07c);import{Disposable as _0x5584fb,toDisposable as _0x4e21f7,IUniverInstanceService as _0x34a265,Inject as _0x3b972f,Injector as _0x1e206d,IConfigService as _0x3c082e,ICommandService as _0x2a3810,RxDisposable as _0x317033,UniverInstanceType as _0x4fecd8,DisposableCollection as _0x38a87f,CommandType as _0x274666,DependentOn as _0x4ef44e,Plugin as _0x54e800,merge as _0x47f8b3,registerDependencies as _0x38128c,mergeOverrideWithDependencies as _0x28e201,touchDependencies as _0x441580}from'@univerjs/core';import{useDependency as _0x3ba771,useObservable as _0x382b15,IUIPartsService as _0x2df529,BuiltInUIPart as _0x39e9b0,connectInjector as _0x19746f}from'@univerjs/ui';import{jsx as _0x394112,jsxs as _0x35a790,Fragment as _0xf1c7f5}from'react/jsx-runtime';import{Dropdown as _0x195faf,clsx as _0x4a0fdb,Button as _0x4da62a}from'@univerjs/design';import{useRef as _0x3dea31,createElement as _0x5edcfb,forwardRef as _0x5a8e8f,useState as _0x20fc4e,useEffect as _0x300d05}from'react';import{CollaborationEvent as _0x3ec99e,parseProtocolChangeset as _0x40eca1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1839d1,SessionStatus as _0x3fee76,UniverCollaborationClientPlugin as _0x121829}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e444,SetWorksheetActiveOperation as _0x222c77}from'@univerjs/sheets';import{BehaviorSubject as _0x9a32b4,Subject as _0x4cfb70}from'rxjs';import{takeUntil as _0x3d7e87,throttleTime as _0x1bd794}from'rxjs/operators';function _0x2e9a(_0x14dfa5,_0x35b766){const _0x174502=_0x1745();return _0x2e9a=function(_0x2e9af7,_0x486621){_0x2e9af7=_0x2e9af7-0x124;let _0x1540c3=_0x174502[_0x2e9af7];return _0x1540c3;},_0x2e9a(_0x14dfa5,_0x35b766);}import{SetZoomRatioOperation as _0x3a61b7,SetScrollOperation as _0x1e8464}from'@univerjs/sheets-ui';function k({ref:_0x197e6c,..._0x5ca943}){const _0x207c92=_0x221811,{icon:_0x2f09c0,id:_0x8b262c,className:_0x17c9c3,extend:_0x24cdfe,..._0x239edd}=_0x5ca943,_0x306934=(_0x207c92(0x1ba)+_0x8b262c+'\x20'+(_0x17c9c3||''))[_0x207c92(0x169)](),_0xecd5c0=_0x3dea31('_'+Oe());return G(_0x2f09c0,''+_0x8b262c,{'defIds':_0x2f09c0['defIds'],'idSuffix':_0xecd5c0[_0x207c92(0x183)]},{'ref':_0x197e6c,'className':_0x306934,..._0x239edd},_0x24cdfe);}function G(_0x31c008,_0x3c106a,_0xedabbb,_0x5d2070,_0x3dd37a){const _0x5a8fc0=_0x221811;return _0x5edcfb(_0x31c008['tag'],{'key':_0x3c106a,...be(_0x31c008,_0xedabbb,_0x3dd37a),..._0x5d2070},(Ee(_0x31c008,_0xedabbb)['children']||[])['map']((_0x477eeb,_0x324de5)=>G(_0x477eeb,_0x3c106a+'-'+_0x31c008[_0x5a8fc0(0x18e)]+'-'+_0x324de5,_0xedabbb,void 0x0,_0x3dd37a)));}function be(_0x3b3564,_0x187141,_0x5bcc20){const _0x3e1c00=_0x221811,_0x3c1373={..._0x3b3564[_0x3e1c00(0x158)]};_0x5bcc20!=null&&_0x5bcc20[_0x3e1c00(0x17c)]&&_0x3c1373[_0x3e1c00(0x172)]==='colorChannel1'&&(_0x3c1373[_0x3e1c00(0x172)]=_0x5bcc20[_0x3e1c00(0x17c)]),_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x18f)&&_0x3c1373['id']&&(_0x3c1373['id']=_0x3c1373['id']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)[_0x3e1c00(0x13d)](([_0x3c7c5c,_0x1da6a6])=>{const _0x157bf4=_0x3e1c00;_0x3c7c5c===_0x157bf4(0x18f)&&typeof _0x1da6a6==_0x157bf4(0x192)&&(_0x3c1373[_0x3c7c5c]=_0x1da6a6[_0x157bf4(0x19f)](/url\(#(.*)\)/,_0x157bf4(0x166)+_0x187141[_0x157bf4(0x167)]+')'));});const {defIds:_0x22b32f}=_0x187141;return!_0x22b32f||_0x22b32f[_0x3e1c00(0x195)]===0x0||(_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x1cc)&&_0x3c1373[_0x3e1c00(0x1b3)]&&(_0x3c1373['xlink:href']=_0x3c1373['xlink:href']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)['forEach'](([_0x33755c,_0x2297f2])=>{const _0x545bfe=_0x3e1c00;typeof _0x2297f2==_0x545bfe(0x192)&&(_0x3c1373[_0x33755c]=_0x2297f2[_0x545bfe(0x19f)](/url\(#(.*)\)/,'url(#$1'+_0x187141[_0x545bfe(0x167)]+')'));})),_0x3c1373;}function Ee(_0x5a9411,_0x19eef7){const _0x350b86=_0x221811;var _0xbb3c2e;const {defIds:_0xa3863b}=_0x19eef7;return!_0xa3863b||_0xa3863b[_0x350b86(0x195)]===0x0?_0x5a9411:_0x5a9411[_0x350b86(0x18e)]===_0x350b86(0x149)&&((_0xbb3c2e=_0x5a9411[_0x350b86(0x145)])!=null&&_0xbb3c2e[_0x350b86(0x195)])?{..._0x5a9411,'children':_0x5a9411[_0x350b86(0x145)][_0x350b86(0x141)](_0x8212e7=>typeof _0x8212e7[_0x350b86(0x158)]['id']==_0x350b86(0x192)&&_0xa3863b&&_0xa3863b[_0x350b86(0x136)](_0x8212e7[_0x350b86(0x158)]['id'])?{..._0x8212e7,'attrs':{..._0x8212e7[_0x350b86(0x158)],'id':_0x8212e7[_0x350b86(0x158)]['id']+_0x19eef7[_0x350b86(0x167)]}}:_0x8212e7)}:_0x5a9411;}function Oe(){const _0x3670fe=_0x221811;return Math[_0x3670fe(0x1c6)]()[_0x3670fe(0x142)](0x24)[_0x3670fe(0x144)](0x2,0x8);}k[_0x221811(0x1a5)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x221811(0x184),'fill':_0x221811(0x178),'viewBox':_0x221811(0x1b0),'width':'1em','height':_0x221811(0x12d)},'children':[{'tag':_0x221811(0x153),'attrs':{'fill':_0x221811(0x1ad),'d':_0x221811(0x13c)}},{'tag':_0x221811(0x153),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x221811(0x1b1),'clipRule':_0x221811(0x1b1)}}]},W=_0x5a8e8f(function(_0x20d022,_0x47731f){const _0x315b76=_0x221811;return _0x5edcfb(k,Object[_0x315b76(0x175)]({},_0x20d022,{'id':'live-share-icon','ref':_0x47731f,'icon':we}));});W[_0x221811(0x1a5)]=_0x221811(0x190);class L extends _0x5584fb{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x221811(0x1bc)](_0x5900df){const _0x5bc97f=_0x221811;return this[_0x5bc97f(0x1c8)]['add'](_0x5900df),_0x4e21f7(()=>this[_0x5bc97f(0x1c8)][_0x5bc97f(0x126)](_0x5900df));}[_0x221811(0x18d)](_0x375172){const _0x88761=_0x221811;return this[_0x88761(0x1b9)][_0x88761(0x1a9)](_0x375172),_0x4e21f7(()=>this[_0x88761(0x1b9)][_0x88761(0x126)](_0x375172));}[_0x221811(0x1a7)](_0x18d878){const _0x53d32f=_0x221811;return this[_0x53d32f(0x1c8)]['has'](_0x18d878);}['getInitialStates'](_0x5d176f){const _0x1eeed2=_0x221811;return Array[_0x1eeed2(0x1ce)](this['_reporters'])['map'](_0x2bb04e=>_0x2bb04e(_0x5d176f));}}var Ne=Object[_0x221811(0x156)],Y=(_0x287803,_0x18bfb1,_0x3a3c64,_0x95786)=>{const _0x9d8303=_0x221811;for(var _0x24231a=_0x95786>0x1?void 0x0:_0x95786?Ne(_0x18bfb1,_0x3a3c64):_0x18bfb1,_0x8d7260=_0x287803[_0x9d8303(0x195)]-0x1,_0x257dee;_0x8d7260>=0x0;_0x8d7260--)(_0x257dee=_0x287803[_0x8d7260])&&(_0x24231a=_0x257dee(_0x24231a)||_0x24231a);return _0x24231a;},_=(_0x42f5a8,_0x5bb8ea)=>(_0x5381dd,_0x3fb270)=>_0x5bb8ea(_0x5381dd,_0x3fb270,_0x42f5a8);let S=class extends _0x317033{constructor(_0x305ccb,_0x243345,_0x2d10b0){const _0x2a2f93=_0x221811;super(),u(this,_0x2a2f93(0x1be),new Map()),(this[_0x2a2f93(0x194)]=_0x305ccb,this['_injector']=_0x243345,this[_0x2a2f93(0x193)]=_0x2d10b0,this[_0x2a2f93(0x14c)]());}async['getLiveShareCoordinator'](_0x4a5180){const _0x43c5d3=_0x221811;return this[_0x43c5d3(0x1be)][_0x43c5d3(0x15e)](_0x4a5180)||await this[_0x43c5d3(0x17b)](_0x4a5180),this[_0x43c5d3(0x1be)][_0x43c5d3(0x1b5)](_0x4a5180);}[_0x221811(0x1a0)](_0x3f9228){const _0xaa81b6=_0x221811;var _0x30c53a;return(_0x30c53a=this[_0xaa81b6(0x1be)][_0xaa81b6(0x1b5)](_0x3f9228))!=null?_0x30c53a:null;}['_init'](){const _0x396051=_0x221811;this['_univerInstanceService'][_0x396051(0x127)](_0x4fecd8[_0x396051(0x1a3)])['pipe'](_0x3d7e87(this[_0x396051(0x146)]))[_0x396051(0x1bf)](async _0x342f0c=>{const _0xd58b8b=_0x396051,_0x412d57=_0x342f0c[_0xd58b8b(0x174)]();this[_0xd58b8b(0x1be)][_0xd58b8b(0x15e)](_0x412d57)||this[_0xd58b8b(0x17b)](_0x412d57);}),this[_0x396051(0x194)]['getTypeOfUnitDisposed$'](_0x4fecd8['UNIVER_SHEET'])[_0x396051(0x16d)](_0x3d7e87(this['dispose$']))[_0x396051(0x1bf)](_0x28aa88=>{const _0x503de2=_0x396051,_0x2aa132=_0x28aa88[_0x503de2(0x174)](),_0x28c133=this['_entities'][_0x503de2(0x1b5)](_0x2aa132);_0x28c133==null||_0x28c133[_0x503de2(0x177)]();});}async[_0x221811(0x17b)](_0x1586f5){const _0x21f7ba=_0x221811,_0xf8791d=await this['_collabSessionService']['requireSession'](_0x1586f5),_0x265bff=this['_injector']['createInstance'](N,_0x1586f5,_0xf8791d);return _0x265bff[_0x21f7ba(0x199)](),this[_0x21f7ba(0x1be)][_0x21f7ba(0x152)](_0x1586f5,_0x265bff),_0x265bff;}};function _0x1745(){const _0x59f379=['asObservable','180940pjanDM','delete','getTypeOfUnitAdded$','OFFLINE','mutations','_handleTerminate','symbol','Start\x20following','1em','startFollowing','unsubscribe','clear','unitId','_commandService','univer-size-4','447734GbjpvL','stringify','includes','_unitID','status$','16XTUvtF','_stopFollowing','live-share.config','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','forEach','_handleOffline','UNIVER_UNKNOWN','defineProperty','map','toString','FOLLOWING','substring','children','dispose$','values','following','defs','stopPresenting','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','_init','105YpEDMh','NEW_CHANGESETS','send','2099199niqjAe','registerComponent','set','path','presenter','presenting','getOwnPropertyDescriptor','_configService','attrs','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','memberID','getLiveShareCoordinator','_config','has','1474626oNDPyu','_liveShareService','parse','offline','disposeWithMe','sessionStatus$','16891970YTWKVJ','url(#$1','idSuffix','sheet','trim','_stopPresenting','getStatus','OPERATION','pipe','button','operations','LIVESHARE_TERMINATE','_commandDisposable','fill','text','getUnitId','assign','ONLINE','dispose','none','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','_startLiveShareCoordinator','colorChannel1','1110132JRRPZH','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','then','find','data','current','http://www.w3.org/2000/svg','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','2277100BSyuDF','_status$','getValue','Stop\x20following','next','_fetchOperations','registerInitialStateReporter','tag','mask','LiveShareIcon','_injector','string','_collabSessionService','_univerInstanceService','length','complete','setConfig','getConfig','init','_beIdle','params','_presenter','_status','not-following','replace','getLiveShareCoordinatorSync','IDLE','_startFollowing','UNIVER_SHEET','HEADER_MENU','displayName','pluginName','shouldShareOperation','reverse','add','executeCommand','entries','LIVESHARE_NEW_HOST','currentColor','PRESENTING','_handleOperation','0\x200\x2017\x2017','evenodd','idle','xlink:href','4seKHVT','get','You\x27re\x20following\x20the\x20presenter','onStarting','LIVESHARE_REQUEST_HOST','_reporters','univerjs-icon\x20univerjs-icon-','getMemberID','registerSharedOperation','Present\x20this\x20document','_entities','subscribe','_uiPartsService','_collabSession','_handleOnline','Start','NOT_FOLLOWING','end','random','_handleNewHost','_sharedOperations','_startPresenting','default','div','use','_handleNewChangeSets','from'];_0x1745=function(){return _0x59f379;};return _0x1745();}S=Y([_(0x0,_0x34a265),_(0x1,_0x3b972f(_0x1e206d)),_(0x2,_0x3b972f(_0x1839d1))],S);var c=(_0x4faa0d=>(_0x4faa0d[_0x221811(0x128)]=_0x221811(0x162),_0x4faa0d[_0x221811(0x1a1)]=_0x221811(0x1b2),_0x4faa0d[_0x221811(0x143)]=_0x221811(0x148),_0x4faa0d['NOT_FOLLOWING']=_0x221811(0x19e),_0x4faa0d[_0x221811(0x1ae)]=_0x221811(0x155),_0x4faa0d))(c||{});const Ce=_0x221811(0x159),De=0xc8;let N=class extends _0x317033{constructor(_0x4c19f4,_0x31c774,_0x23e67d,_0x2e7fb6,_0xfd22e8){const _0x146a8e=_0x221811;super(),u(this,_0x146a8e(0x188),new _0x9a32b4('idle')),u(this,'status$',this[_0x146a8e(0x188)][_0x146a8e(0x124)]()),u(this,'_init',!0x1),u(this,_0x146a8e(0x171),null),u(this,'_presenter',null),(this[_0x146a8e(0x137)]=_0x4c19f4,this['_collabSession']=_0x31c774,this[_0x146a8e(0x157)]=_0x23e67d,this[_0x146a8e(0x160)]=_0x2e7fb6,this[_0x146a8e(0x132)]=_0xfd22e8);}get[_0x221811(0x19d)](){const _0x51f3e1=_0x221811;return this['_status$'][_0x51f3e1(0x189)]();}[_0x221811(0x177)](){const _0x22fc4a=_0x221811;var _0x27df7a;(_0x27df7a=this[_0x22fc4a(0x171)])==null||_0x27df7a[_0x22fc4a(0x177)](),this[_0x22fc4a(0x188)][_0x22fc4a(0x18b)](_0x22fc4a(0x1b2)),this[_0x22fc4a(0x188)][_0x22fc4a(0x196)]();}[_0x221811(0x16b)](){const _0x1da97c=_0x221811;return this[_0x1da97c(0x19d)];}['init'](){const _0x5e119f=_0x221811;this[_0x5e119f(0x14c)]||(this[_0x5e119f(0x14c)]=!0x0,this['_collabSession'][_0x5e119f(0x164)][_0x5e119f(0x16d)](_0x3d7e87(this['dispose$']))['subscribe'](_0xc6020a=>{const _0x370db1=_0x5e119f;switch(_0xc6020a){case _0x3fee76[_0x370db1(0x128)]:this[_0x370db1(0x13e)]();break;case _0x3fee76[_0x370db1(0x176)]:this[_0x370db1(0x1c2)]();break;}}),this[_0x5e119f(0x1c1)]['event$'][_0x5e119f(0x16d)](_0x3d7e87(this[_0x5e119f(0x146)]))[_0x5e119f(0x1bf)](_0x240184=>{const _0x1ecede=_0x5e119f,{eventID:_0x5746fc}=_0x240184;switch(_0x5746fc){case _0x3ec99e[_0x1ecede(0x1ac)]:this[_0x1ecede(0x1c7)](_0x240184);break;case _0x3ec99e['LIVESHARE_OPERATION']:this['_handleOperation'](_0x240184);break;case _0x3ec99e[_0x1ecede(0x170)]:this[_0x1ecede(0x12a)]();break;case _0x3ec99e[_0x1ecede(0x14e)]:this[_0x1ecede(0x1cd)](_0x240184);break;}}));}['tryStartPresenting'](){const _0x365163=_0x221811;this[_0x365163(0x1c1)][_0x365163(0x14f)]({'eventID':_0x3ec99e[_0x365163(0x1b8)],'data':{'unitID':this[_0x365163(0x137)],'userID':this[_0x365163(0x1c1)][_0x365163(0x1bb)]()}},this[_0x365163(0x137)]);}[_0x221811(0x14a)](){const _0x186731=_0x221811;this[_0x186731(0x19d)]==='presenting'&&(this[_0x186731(0x188)][_0x186731(0x18b)](_0x186731(0x1b2)),this[_0x186731(0x1c1)][_0x186731(0x14f)]({'eventID':_0x3ec99e[_0x186731(0x170)],'data':{'unitID':this[_0x186731(0x137)]}},this[_0x186731(0x137)]));}[_0x221811(0x12e)](){const _0x59c1c6=_0x221811;this[_0x59c1c6(0x19d)]===_0x59c1c6(0x19e)&&(this['_status$']['next']('following'),this[_0x59c1c6(0x1a2)]());}[_0x221811(0x17f)](){const _0x3c87d7=_0x221811;this[_0x3c87d7(0x19d)]===_0x3c87d7(0x148)&&this[_0x3c87d7(0x13a)]();}[_0x221811(0x1c7)](_0x38774b){const _0x26147e=_0x221811,{presenter:_0x568de2}=_0x38774b[_0x26147e(0x182)],_0x1ee82b=this[_0x26147e(0x1c1)][_0x26147e(0x1bb)]();this[_0x26147e(0x19c)]=_0x568de2,_0x568de2===_0x1ee82b?(this[_0x26147e(0x13a)](),this[_0x26147e(0x1c9)]()):this[_0x26147e(0x19d)]!==_0x26147e(0x19e)&&(this[_0x26147e(0x16a)](),this['_startFollowing']());}[_0x221811(0x18c)](){const _0x26a97f=_0x221811,_0x4371d8={'eventID':_0x3ec99e[_0x26a97f(0x17a)]};this[_0x26a97f(0x1c1)]['send'](_0x4371d8,this[_0x26a97f(0x137)]);}[_0x221811(0x12a)](){const _0x2db4c0=_0x221811;this[_0x2db4c0(0x19c)]=null,this[_0x2db4c0(0x19d)]!==_0x2db4c0(0x155)&&this[_0x2db4c0(0x19a)]();}[_0x221811(0x1cd)](_0xab9e6a){const _0x6f32d8=_0x221811;if(this[_0x6f32d8(0x19d)]===_0x6f32d8(0x148)&&this[_0x6f32d8(0x19c)]===_0xab9e6a[_0x6f32d8(0x182)][_0x6f32d8(0x15b)]){const _0x583621=_0x40eca1(_0xab9e6a[_0x6f32d8(0x182)])[_0x6f32d8(0x129)][_0x6f32d8(0x1a8)]()[_0x6f32d8(0x181)](_0xc28a72=>_0xc28a72['id']===_0x52e444['id']);if(_0x583621){const _0x57156a=_0x583621[_0x6f32d8(0x19b)][_0x6f32d8(0x131)],_0x3ce4c3=_0x583621['params'][_0x6f32d8(0x168)]['id'];setTimeout(()=>{const _0x596f4e=_0x6f32d8;this[_0x596f4e(0x132)][_0x596f4e(0x1aa)](_0x222c77['id'],{'unitId':_0x57156a,'subUnitId':_0x3ce4c3},{'fromCollab':!0x0});});}}}[_0x221811(0x1c9)](){const _0x2db157=_0x221811;this[_0x2db157(0x188)]['next']('presenting');const _0x4200fd=new Map(),_0x48d81f=this['_commandDisposable']=new _0x38a87f();_0x48d81f[_0x2db157(0x1a9)](_0x4e21f7(()=>{const _0x584e59=_0x2db157;_0x4200fd[_0x584e59(0x13d)](_0x17bf45=>_0x17bf45['complete']()),_0x4200fd[_0x584e59(0x130)]();})),_0x48d81f[_0x2db157(0x1a9)](this['_commandService'][_0x2db157(0x185)](_0x3bcb07=>{const _0x52500f=_0x2db157;var _0x48bb29;if(_0x3bcb07['type']!==_0x274666[_0x52500f(0x16c)]||!this[_0x52500f(0x160)][_0x52500f(0x1a7)](_0x3bcb07['id']))return;const {id:_0x52ddee}=_0x3bcb07;let _0x354757;_0x4200fd[_0x52500f(0x15e)](_0x52ddee)?_0x354757=_0x4200fd[_0x52500f(0x1b5)](_0x52ddee):(_0x354757=new _0x4cfb70(),_0x4200fd[_0x52500f(0x152)](_0x52ddee,_0x354757),_0x354757[_0x52500f(0x16d)](_0x1bd794((_0x48bb29=this[_0x52500f(0x157)][_0x52500f(0x198)](Ce))!=null?_0x48bb29:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x52500f(0x1bf)](_0x9f13b9=>{const _0x1e65e7=_0x52500f;this[_0x1e65e7(0x1c1)][_0x1e65e7(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x9f13b9['id']]:{'id':_0x9f13b9['id'],'params':JSON[_0x1e65e7(0x135)](_0x9f13b9['params'])}}}},this[_0x1e65e7(0x137)]);})),_0x354757['next'](_0x3bcb07);})),this[_0x2db157(0x160)]['getInitialStates'](this[_0x2db157(0x137)])['forEach'](_0x492c05=>this[_0x2db157(0x1c1)][_0x2db157(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2db157(0x137)],'operations':{[_0x492c05['id']]:{'id':_0x492c05['id'],'params':JSON[_0x2db157(0x135)](_0x492c05['params'])}}}},this['_unitID']));}[_0x221811(0x16a)](){const _0x58f706=_0x221811;var _0x28dca8;this[_0x58f706(0x188)][_0x58f706(0x18b)](_0x58f706(0x1b2)),(_0x28dca8=this[_0x58f706(0x171)])==null||_0x28dca8[_0x58f706(0x177)](),this[_0x58f706(0x171)]=null;}['_startFollowing'](){const _0x3f181e=_0x221811;var _0x4a3511;(_0x4a3511=this[_0x3f181e(0x171)])==null||_0x4a3511['dispose'](),this[_0x3f181e(0x188)]['next']('following');}['_beIdle'](){const _0x3b987a=_0x221811;var _0x529286;this[_0x3b987a(0x188)][_0x3b987a(0x18b)](_0x3b987a(0x1b2)),(_0x529286=this['_commandDisposable'])==null||_0x529286['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xa80023=_0x221811;var _0x3265b9;this[_0xa80023(0x188)][_0xa80023(0x18b)](_0xa80023(0x19e)),(_0x3265b9=this[_0xa80023(0x171)])==null||_0x3265b9[_0xa80023(0x177)]();}[_0x221811(0x1af)](_0x2ef283){const _0x4ca27f=_0x221811;if([_0x4ca27f(0x155),_0x4ca27f(0x19e),_0x4ca27f(0x162)][_0x4ca27f(0x136)](this['_status'])||!_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]||_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]===this[_0x4ca27f(0x1c1)][_0x4ca27f(0x1bb)]())return;this[_0x4ca27f(0x19d)]===_0x4ca27f(0x1b2)&&this['_startFollowing']();const _0xaa10b1=_0x2ef283['data'][_0x4ca27f(0x16f)];Object[_0x4ca27f(0x147)](_0xaa10b1)[_0x4ca27f(0x13d)](_0x2d211e=>{const _0x4ba9d0=_0x4ca27f;this[_0x4ba9d0(0x132)][_0x4ba9d0(0x1aa)](_0x2d211e['id'],_0x2d211e['params']?JSON[_0x4ba9d0(0x161)](_0x2d211e[_0x4ba9d0(0x19b)]):null,{'fromCollab':!0x0});});}[_0x221811(0x13e)](){const _0x36d796=_0x221811;var _0x523e3f;this['_status$'][_0x36d796(0x18b)](_0x36d796(0x162)),(_0x523e3f=this[_0x36d796(0x171)])==null||_0x523e3f['dispose']();}[_0x221811(0x1c2)](){const _0x535ff5=_0x221811;this[_0x535ff5(0x188)][_0x535ff5(0x18b)]('idle'),this[_0x535ff5(0x18c)]();}};N=Y([_(0x2,_0x3c082e),_(0x3,_0x3b972f(L)),_(0x4,_0x2a3810)],N);function Le(){const _0x43a402=_0x221811,_0x26e912=_0x3ba771(S),_0x4dce2a=_0x3ba771(_0x34a265),_0x43f15e=_0x382b15(()=>_0x4dce2a['getCurrentTypeOfUnit$'](_0x4fecd8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1a9aed,_0x1d620a]=_0x20fc4e(null),[_0x1d9dc8,_0xf37569]=_0x20fc4e(c[_0x43a402(0x1a1)]),_0x8fea30=_0x3dea31(null);return _0x300d05(()=>(_0x43f15e&&_0x26e912[_0x43a402(0x15c)](_0x43f15e[_0x43a402(0x174)]())[_0x43a402(0x180)](_0x4eba86=>{const _0x50b8d6=_0x43a402;_0x1d620a(_0x4eba86),_0x8fea30[_0x50b8d6(0x183)]=_0x4eba86[_0x50b8d6(0x138)][_0x50b8d6(0x1bf)](_0x434bf9=>{_0xf37569(_0x434bf9);});}),()=>{const _0x358f3e=_0x43a402;var _0x5b15db;(_0x5b15db=_0x8fea30['current'])==null||_0x5b15db[_0x358f3e(0x12f)](),_0x8fea30[_0x358f3e(0x183)]=null;}),[_0x43f15e,_0x26e912]),_0x1a9aed?_0x394112(_0x195faf,{'align':_0x43a402(0x1c5),'disabled':_0x1d9dc8===c[_0x43a402(0x128)],'className':_0x43a402(0x14b),'overlay':_0x394112(Re,{'status':_0x1d9dc8,'coordinator':_0x1a9aed}),'children':_0x394112(_0x43a402(0x16e),{'className':_0x4a0fdb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1d9dc8===c[_0x43a402(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d9dc8!==c[_0x43a402(0x128)]}),'type':'button','children':_0x394112(W,{'className':_0x43a402(0x133)})})}):null;}function Re(_0x379975){const _0x501bf6=_0x221811,{status:_0xf6a4ed,coordinator:_0x4f14d6}=_0x379975;switch(_0xf6a4ed){case c[_0x501bf6(0x1a1)]:return _0x394112($e,{'coordinator':_0x4f14d6});case c['FOLLOWING']:return _0x394112(xe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x1c4)]:return _0x394112(Pe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x128)]:return _0x394112(Te,{});case c['PRESENTING']:return _0x394112(Ae,{'coordinator':_0x4f14d6});default:return null;}}function $e(_0x575fa9){const _0x11beaa=_0x221811,{coordinator:_0x5b9bcf}=_0x575fa9;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x11beaa(0x1cb),{'className':_0x11beaa(0x17e),'children':_0x11beaa(0x1bd)}),_0x394112(_0x4da62a,{'onClick':()=>_0x5b9bcf['tryStartPresenting'](),'children':_0x11beaa(0x1c3)})]});}function xe(_0x36f248){const _0x28450b=_0x221811,{coordinator:_0xdf4b47}=_0x36f248;return _0x35a790(_0xf1c7f5,{'children':[_0x394112('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28450b(0x1b6)}),_0x394112(_0x4da62a,{'onClick':()=>_0xdf4b47['stopFollowing'](),'children':_0x28450b(0x18a)})]});}function Pe(_0x57f701){const _0x8b5e25=_0x221811,{coordinator:_0x1762af}=_0x57f701;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x8b5e25(0x1cb),{'className':_0x8b5e25(0x17e),'children':_0x8b5e25(0x186)}),_0x394112(_0x4da62a,{'variant':_0x8b5e25(0x173),'onClick':()=>_0x1762af[_0x8b5e25(0x12e)](),'children':_0x8b5e25(0x12c)})]});}function Ae(_0x40a8aa){const _0x294155=_0x221811,{coordinator:_0x3b2972}=_0x40a8aa;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x294155(0x1cb),{'className':_0x294155(0x17e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x394112(_0x4da62a,{'variant':_0x294155(0x1ca),'onClick':()=>_0x3b2972['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x394112(_0xf1c7f5,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x35fae4,_0x3f93b4,_0x195de5,_0x11e290)=>{for(var _0x4de847=_0x11e290>0x1?void 0x0:_0x11e290?Fe(_0x3f93b4,_0x195de5):_0x3f93b4,_0x74d76b=_0x35fae4['length']-0x1,_0x4838c4;_0x74d76b>=0x0;_0x74d76b--)(_0x4838c4=_0x35fae4[_0x74d76b])&&(_0x4de847=_0x4838c4(_0x4de847)||_0x4de847);return _0x4de847;},A=(_0x52f16e,_0x553295)=>(_0x213c39,_0x1ab16b)=>_0x553295(_0x213c39,_0x1ab16b,_0x52f16e);let m=class extends _0x5584fb{constructor(_0x28f257,_0x4c0e58){const _0x4f80ab=_0x221811;super(),this[_0x4f80ab(0x191)]=_0x28f257,this['_uiPartsService']=_0x4c0e58,this[_0x4f80ab(0x15a)]();}[_0x221811(0x15a)](){const _0x287327=_0x221811;this[_0x287327(0x163)](this[_0x287327(0x1c0)][_0x287327(0x151)](_0x39e9b0[_0x287327(0x1a4)],()=>_0x19746f(Le,this['_injector'])));}};m=He([A(0x0,_0x3b972f(_0x1e206d)),A(0x1,_0x2df529)],m);const ye=_0x221811(0x13b),T={};var Ue=Object[_0x221811(0x156)],Ve=(_0x53c3a8,_0x36fd72,_0x5468a2,_0x34abac)=>{const _0x1fab97=_0x221811;for(var _0x32abaf=_0x34abac>0x1?void 0x0:_0x34abac?Ue(_0x36fd72,_0x5468a2):_0x36fd72,_0x1f375e=_0x53c3a8[_0x1fab97(0x195)]-0x1,_0x360244;_0x1f375e>=0x0;_0x1f375e--)(_0x360244=_0x53c3a8[_0x1f375e])&&(_0x32abaf=_0x360244(_0x32abaf)||_0x32abaf);return _0x32abaf;},je=(_0x45d15b,_0x5c189b)=>(_0x498899,_0x28088e)=>_0x5c189b(_0x498899,_0x28088e,_0x45d15b);let I=class extends _0x5584fb{constructor(_0xa67071){const _0x102e26=_0x221811;super(),this['_liveShareService']=_0xa67071,this[_0x102e26(0x14c)]();}[_0x221811(0x14c)](){[_0x3a61b7['id'],_0x1e8464['id'],_0x222c77['id']]['forEach'](_0x304360=>{const _0x4c14f1=_0x2e9a;this[_0x4c14f1(0x163)](this[_0x4c14f1(0x160)][_0x4c14f1(0x1bc)](_0x304360));});}};I=Ve([je(0x0,_0x3b972f(L))],I);var Me=Object[_0x221811(0x140)],ke=Object[_0x221811(0x156)],Ge=(_0x1699ed,_0x307fac,_0x32daaf)=>_0x307fac in _0x1699ed?Me(_0x1699ed,_0x307fac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32daaf}):_0x1699ed[_0x307fac]=_0x32daaf,We=(_0x544d81,_0x5843cb,_0x32db75,_0x35fed6)=>{const _0x3a252f=_0x221811;for(var _0x1377e5=_0x35fed6>0x1?void 0x0:_0x35fed6?ke(_0x5843cb,_0x32db75):_0x5843cb,_0x44480b=_0x544d81[_0x3a252f(0x195)]-0x1,_0x380dfc;_0x44480b>=0x0;_0x44480b--)(_0x380dfc=_0x544d81[_0x44480b])&&(_0x1377e5=_0x380dfc(_0x1377e5)||_0x1377e5);return _0x1377e5;},F=(_0x2c9782,_0x36fd95)=>(_0x427cb3,_0x344910)=>_0x36fd95(_0x427cb3,_0x344910,_0x2c9782),B=(_0x4bcd0e,_0x295c7f,_0x51efd5)=>Ge(_0x4bcd0e,typeof _0x295c7f!=_0x221811(0x12b)?_0x295c7f+'':_0x295c7f,_0x51efd5);const Ye=_0x221811(0x179);let b=class extends _0x54e800{constructor(_0x4965c7=T,_0x569af8,_0x2f65de){const _0x24a8a9=_0x221811;super(),this['_config']=_0x4965c7,this[_0x24a8a9(0x191)]=_0x569af8,this[_0x24a8a9(0x157)]=_0x2f65de;const {..._0x3d493f}=_0x47f8b3({},T,this[_0x24a8a9(0x15d)]);this['_configService'][_0x24a8a9(0x197)](ye,_0x3d493f);}[_0x221811(0x1b7)](){const _0x5f01fe=_0x221811;_0x38128c(this['_injector'],_0x28e201([[L],[S],[I],[m]],this[_0x5f01fe(0x15d)]['override'])),_0x441580(this[_0x5f01fe(0x191)],[[I]]);}['onRendered'](){const _0x4ac341=_0x221811;_0x441580(this[_0x4ac341(0x191)],[[m]]);}};B(b,'type',_0x4fecd8[_0x221811(0x13f)]),B(b,_0x221811(0x1a6),Ye),b=We([_0x4ef44e(_0x121829),F(0x1,_0x3b972f(_0x1e206d)),F(0x2,_0x3c082e)],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
|
-
|
|
1
|
+
const _0x2b54dc=_0x1cda;(function(_0x4f436f,_0x5b0850){const _0x59851d=_0x1cda,_0x14bc6b=_0x4f436f();while(!![]){try{const _0xf4f163=-parseInt(_0x59851d(0x96))/0x1*(-parseInt(_0x59851d(0x9c))/0x2)+parseInt(_0x59851d(0xa8))/0x3+-parseInt(_0x59851d(0xa2))/0x4+-parseInt(_0x59851d(0x94))/0x5+parseInt(_0x59851d(0xa0))/0x6*(parseInt(_0x59851d(0x97))/0x7)+-parseInt(_0x59851d(0x98))/0x8+parseInt(_0x59851d(0xa6))/0x9*(parseInt(_0x59851d(0x90))/0xa);if(_0xf4f163===_0x5b0850)break;else _0x14bc6b['push'](_0x14bc6b['shift']());}catch(_0x2894bb){_0x14bc6b['push'](_0x14bc6b['shift']());}}}(_0x2c2f,0x8f628));import{LiveShareController as _0x360aa6,LiveShareStatus as _0x2921bd}from'@univerjs-pro/live-share';function _0x1cda(_0x4ef67,_0x42a305){const _0x2c2f4a=_0x2c2f();return _0x1cda=function(_0x1cda42,_0xc328cb){_0x1cda42=_0x1cda42-0x8f;let _0x3b7683=_0x2c2f4a[_0x1cda42];return _0x3b7683;},_0x1cda(_0x4ef67,_0x42a305);}import{IRenderManagerService as _0x5581eb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x11fd11}from'@univerjs/sheets';import{SetScrollOperation as _0x5c7015}from'@univerjs/sheets-ui';import{FRange as _0x3cbc29}from'@univerjs/sheets/facade';function _0x2c2f(){const _0x3116c7=['getLiveShareCoordinatorSync','304335PxgWHE','No\x20active\x20workbook\x20found.','2865159zdHbaL','stopPresenting','startRow','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getId','PRESENTING','120dztKlf','get','getSheetId','stopFollowing','5867370MvUzGJ','startPresenting','36502znEKnM','99001iSzQyU','8612216gRnrDL','startColumn','getActiveWorkbook','getActiveSheet','46gxUSiT','extend','_commandService','_injector','396kyImME','getLiveShareStatus','1186048WyfsOC','IDLE','getStatus'];_0x2c2f=function(){return _0x3116c7;};return _0x2c2f();}import{FUniver as _0x588fcb,FEnum as _0x1789a1}from'@univerjs/core/facade';class I extends _0x3cbc29{['_initialize'](_0x42495e,_0x555848,_0x1e6493,_0x59deac,_0x19cf00){const _0x477317=_0x1cda,_0x28b36e=_0x42495e[_0x477317(0x91)](_0x360aa6),_0x31b023=_0x42495e[_0x477317(0x91)](_0x5581eb),_0x3689f5=_0x555848[_0x477317(0xab)](),_0x1873dd=_0x555848[_0x477317(0x9b)](),_0x196b83=_0x28b36e[_0x477317(0xa5)](_0x3689f5);(_0x196b83==null?void 0x0:_0x196b83['getStatus']())!==_0x2921bd[_0x477317(0x8f)]||(_0x1e6493[_0x477317(0x92)]()!==_0x1873dd[_0x477317(0x92)]()&&this[_0x477317(0x9e)]['executeCommand'](_0x11fd11['id'],{'unitId':_0x3689f5,'subUnitId':_0x1e6493['getSheetId']()}),!_0x31b023['getRenderById'](_0x3689f5))||_0x19cf00['syncExecuteCommand'](_0x5c7015['id'],{'unitId':_0x555848[_0x477317(0xab)](),'sheetId':_0x1e6493['getSheetId'](),'sheetViewStartRow':_0x59deac[_0x477317(0xaa)],'sheetViewStartColumn':_0x59deac[_0x477317(0x99)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3cbc29[_0x2b54dc(0x9d)](I);class m extends _0x588fcb{[_0x2b54dc(0xa1)](){const _0x586947=_0x2b54dc;var _0x14a0d0,_0x213e21;const _0x48aa70=this['_injector'][_0x586947(0x91)](_0x360aa6),_0x8862f9=(_0x14a0d0=this['getActiveWorkbook']())==null?void 0x0:_0x14a0d0[_0x586947(0xae)]();if(!_0x8862f9)throw new Error('No\x20active\x20workbook\x20found.');const _0xda90e6=_0x48aa70[_0x586947(0xa5)](_0x8862f9);return(_0x213e21=_0xda90e6==null?void 0x0:_0xda90e6[_0x586947(0xa4)]())!=null?_0x213e21:_0x2921bd[_0x586947(0xa3)];}[_0x2b54dc(0xad)](){const _0x448248=_0x2b54dc;var _0x52c069;const _0xbf2cf6=this['_injector'][_0x448248(0x91)](_0x360aa6),_0x5b19c8=(_0x52c069=this[_0x448248(0x9a)]())==null?void 0x0:_0x52c069[_0x448248(0xae)]();if(!_0x5b19c8)throw new Error('No\x20active\x20workbook\x20found.');const _0x10207a=_0xbf2cf6['getLiveShareCoordinatorSync'](_0x5b19c8);if(!_0x10207a)throw new Error(_0x448248(0xac));_0x10207a[_0x448248(0xad)]();}[_0x2b54dc(0x93)](){const _0xa46f10=_0x2b54dc;var _0x44023a;const _0x27e4ba=this[_0xa46f10(0x9f)][_0xa46f10(0x91)](_0x360aa6),_0x348b1=(_0x44023a=this[_0xa46f10(0x9a)]())==null?void 0x0:_0x44023a[_0xa46f10(0xae)]();if(!_0x348b1)throw new Error(_0xa46f10(0xa7));const _0x7ffa37=_0x27e4ba[_0xa46f10(0xa5)](_0x348b1);if(!_0x7ffa37)throw new Error(_0xa46f10(0xac));_0x7ffa37[_0xa46f10(0x93)]();}[_0x2b54dc(0x95)](){const _0x46ba7e=_0x2b54dc;var _0x2c680c;const _0x15ebf7=this['_injector'][_0x46ba7e(0x91)](_0x360aa6),_0x32691f=(_0x2c680c=this[_0x46ba7e(0x9a)]())==null?void 0x0:_0x2c680c[_0x46ba7e(0xae)]();if(!_0x32691f)throw new Error(_0x46ba7e(0xa7));const _0x30e3ff=_0x15ebf7[_0x46ba7e(0xa5)](_0x32691f);if(!_0x30e3ff)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x30e3ff['tryStartPresenting']();}[_0x2b54dc(0xa9)](){const _0x5bae7a=_0x2b54dc;var _0x595c1e;const _0x83fc3b=this[_0x5bae7a(0x9f)]['get'](_0x360aa6),_0x49148d=(_0x595c1e=this['getActiveWorkbook']())==null?void 0x0:_0x595c1e[_0x5bae7a(0xae)]();if(!_0x49148d)throw new Error(_0x5bae7a(0xa7));const _0x30450b=_0x83fc3b[_0x5bae7a(0xa5)](_0x49148d);if(!_0x30450b)throw new Error(_0x5bae7a(0xac));_0x30450b[_0x5bae7a(0xa9)]();}}_0x588fcb['extend'](m);class C extends _0x1789a1{get['LiveShareStatusEnum'](){return _0x2921bd;}}_0x1789a1['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x28483d=_0x5a0d;(function(_0x290b11,_0x36a553){const _0x1919f9=_0x5a0d,_0x4746c2=_0x290b11();while(!![]){try{const _0x31b3db=-parseInt(_0x1919f9(0x1bb))/0x1*(parseInt(_0x1919f9(0x193))/0x2)+-parseInt(_0x1919f9(0x1a1))/0x3*(-parseInt(_0x1919f9(0x209))/0x4)+-parseInt(_0x1919f9(0x1fe))/0x5+-parseInt(_0x1919f9(0x18b))/0x6+-parseInt(_0x1919f9(0x1af))/0x7+parseInt(_0x1919f9(0x198))/0x8+parseInt(_0x1919f9(0x1c4))/0x9*(parseInt(_0x1919f9(0x1fc))/0xa);if(_0x31b3db===_0x36a553)break;else _0x4746c2['push'](_0x4746c2['shift']());}catch(_0x20e26c){_0x4746c2['push'](_0x4746c2['shift']());}}}(_0x4c4f,0x6b9fe));var J=Object[_0x28483d(0x1e0)],K=(_0x473961,_0x59fb21,_0xa53e3c)=>_0x59fb21 in _0x473961?J(_0x473961,_0x59fb21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa53e3c}):_0x473961[_0x59fb21]=_0xa53e3c,u=(_0x432b73,_0x5052e7,_0x23009e)=>K(_0x432b73,typeof _0x5052e7!='symbol'?_0x5052e7+'':_0x5052e7,_0x23009e);import{Disposable as _0x415a2,toDisposable as _0x32aa81,IUniverInstanceService as _0x240c37,Inject as _0x100628,Injector as _0x1e4d19,IConfigService as _0x28819f,ICommandService as _0x553dea,RxDisposable as _0x4e959a,UniverInstanceType as _0x1da7ce,DisposableCollection as _0xe53e61,CommandType as _0x37c949,DependentOn as _0x414cfb,Plugin as _0x1a183f,merge as _0x4cb9a7,registerDependencies as _0x5c9e8b,mergeOverrideWithDependencies as _0x175362,touchDependencies as _0xb23083}from'@univerjs/core';import{useDependency as _0x23a79c,useObservable as _0x13956b,IUIPartsService as _0x4f58c8,BuiltInUIPart as _0x591e95,connectInjector as _0x560990}from'@univerjs/ui';import{jsx as _0x1c2c9e,jsxs as _0x8cd725,Fragment as _0x4fb667}from'react/jsx-runtime';import{Dropdown as _0x1ffd19,clsx as _0x52a3f7,Button as _0x29e220}from'@univerjs/design';import{useRef as _0x36dedb,createElement as _0x49f114,forwardRef as _0x340b2,useState as _0xd82959,useEffect as _0x54962e}from'react';import{CollaborationEvent as _0x413f6e,parseProtocolChangeset as _0x3f2aee}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2e835c,SessionStatus as _0x216c33,UniverCollaborationClientPlugin as _0x18716e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2cbc0d,SetWorksheetActiveOperation as _0x5143a7}from'@univerjs/sheets';import{BehaviorSubject as _0x2ad11c,Subject as _0x5a8bbd}from'rxjs';import{takeUntil as _0x3cbd1c,throttleTime as _0x2b2451}from'rxjs/operators';import{SetZoomRatioOperation as _0x3d23dc,SetScrollOperation as _0x3b0aa1}from'@univerjs/sheets-ui';function k({ref:_0x22bc8b,..._0x4c537e}){const _0x51e7b5=_0x28483d,{icon:_0x13ce29,id:_0x1331d5,className:_0xb8810b,extend:_0x269ab1,..._0xdb098}=_0x4c537e,_0x41ffb3=('univerjs-icon\x20univerjs-icon-'+_0x1331d5+'\x20'+(_0xb8810b||''))[_0x51e7b5(0x19d)](),_0x131cc2=_0x36dedb('_'+Oe());return G(_0x13ce29,''+_0x1331d5,{'defIds':_0x13ce29['defIds'],'idSuffix':_0x131cc2[_0x51e7b5(0x224)]},{'ref':_0x22bc8b,'className':_0x41ffb3,..._0xdb098},_0x269ab1);}function G(_0x3fe745,_0xb1103f,_0x567ecb,_0x138b8e,_0xe8766b){const _0x47d24f=_0x28483d;return _0x49f114(_0x3fe745[_0x47d24f(0x1ee)],{'key':_0xb1103f,...be(_0x3fe745,_0x567ecb,_0xe8766b),..._0x138b8e},(Ee(_0x3fe745,_0x567ecb)[_0x47d24f(0x19b)]||[])[_0x47d24f(0x1ca)]((_0x3c85ad,_0x43dcc5)=>G(_0x3c85ad,_0xb1103f+'-'+_0x3fe745[_0x47d24f(0x1ee)]+'-'+_0x43dcc5,_0x567ecb,void 0x0,_0xe8766b)));}function be(_0x26c60b,_0x488b3f,_0x1a6c69){const _0x448dd8=_0x28483d,_0x54676b={..._0x26c60b[_0x448dd8(0x229)]};_0x1a6c69!=null&&_0x1a6c69[_0x448dd8(0x206)]&&_0x54676b[_0x448dd8(0x1db)]===_0x448dd8(0x206)&&(_0x54676b[_0x448dd8(0x1db)]=_0x1a6c69[_0x448dd8(0x206)]),_0x26c60b[_0x448dd8(0x1ee)]===_0x448dd8(0x1a7)&&_0x54676b['id']&&(_0x54676b['id']=_0x54676b['id']+_0x488b3f[_0x448dd8(0x1b1)]),Object[_0x448dd8(0x1eb)](_0x54676b)[_0x448dd8(0x1b6)](([_0x410e3e,_0x17c973])=>{const _0x2c0c67=_0x448dd8;_0x410e3e==='mask'&&typeof _0x17c973==_0x2c0c67(0x21d)&&(_0x54676b[_0x410e3e]=_0x17c973[_0x2c0c67(0x1dd)](/url\(#(.*)\)/,_0x2c0c67(0x20c)+_0x488b3f[_0x2c0c67(0x1b1)]+')'));});const {defIds:_0x510b14}=_0x488b3f;return!_0x510b14||_0x510b14['length']===0x0||(_0x26c60b[_0x448dd8(0x1ee)]===_0x448dd8(0x222)&&_0x54676b[_0x448dd8(0x1aa)]&&(_0x54676b[_0x448dd8(0x1aa)]=_0x54676b[_0x448dd8(0x1aa)]+_0x488b3f[_0x448dd8(0x1b1)]),Object['entries'](_0x54676b)['forEach'](([_0x49c9db,_0xed6ae4])=>{const _0x2bdca1=_0x448dd8;typeof _0xed6ae4==_0x2bdca1(0x21d)&&(_0x54676b[_0x49c9db]=_0xed6ae4[_0x2bdca1(0x1dd)](/url\(#(.*)\)/,_0x2bdca1(0x20c)+_0x488b3f[_0x2bdca1(0x1b1)]+')'));})),_0x54676b;}function Ee(_0x2d1622,_0x2d773f){const _0x2c5354=_0x28483d;var _0x46f311;const {defIds:_0x4f9c22}=_0x2d773f;return!_0x4f9c22||_0x4f9c22[_0x2c5354(0x1d6)]===0x0?_0x2d1622:_0x2d1622[_0x2c5354(0x1ee)]===_0x2c5354(0x1f4)&&((_0x46f311=_0x2d1622[_0x2c5354(0x19b)])!=null&&_0x46f311[_0x2c5354(0x1d6)])?{..._0x2d1622,'children':_0x2d1622[_0x2c5354(0x19b)][_0x2c5354(0x1ca)](_0x1b0550=>typeof _0x1b0550['attrs']['id']==_0x2c5354(0x21d)&&_0x4f9c22&&_0x4f9c22['includes'](_0x1b0550[_0x2c5354(0x229)]['id'])?{..._0x1b0550,'attrs':{..._0x1b0550['attrs'],'id':_0x1b0550[_0x2c5354(0x229)]['id']+_0x2d773f[_0x2c5354(0x1b1)]}}:_0x1b0550)}:_0x2d1622;}function Oe(){const _0x1a5828=_0x28483d;return Math[_0x1a5828(0x232)]()[_0x1a5828(0x18e)](0x24)[_0x1a5828(0x218)](0x2,0x8);}k[_0x28483d(0x22f)]=_0x28483d(0x1b0);function _0x5a0d(_0x53b63d,_0x1a6b2b){const _0x4c4f5a=_0x4c4f();return _0x5a0d=function(_0x5a0ddd,_0x200c29){_0x5a0ddd=_0x5a0ddd-0x18a;let _0x2d884f=_0x4c4f5a[_0x5a0ddd];return _0x2d884f;},_0x5a0d(_0x53b63d,_0x1a6b2b);}const we={'tag':_0x28483d(0x21a),'attrs':{'xmlns':_0x28483d(0x1c0),'fill':_0x28483d(0x1f0),'viewBox':_0x28483d(0x202),'width':_0x28483d(0x1f1),'height':_0x28483d(0x1f1)},'children':[{'tag':_0x28483d(0x194),'attrs':{'fill':_0x28483d(0x1a9),'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':_0x28483d(0x194),'attrs':{'fill':'currentColor','d':_0x28483d(0x19a),'fillRule':'evenodd','clipRule':_0x28483d(0x225)}}]},W=_0x340b2(function(_0x5107d8,_0x1579f1){const _0x327143=_0x28483d;return _0x49f114(k,Object[_0x327143(0x1d7)]({},_0x5107d8,{'id':_0x327143(0x1d2),'ref':_0x1579f1,'icon':we}));});W[_0x28483d(0x22f)]=_0x28483d(0x1de);class L extends _0x415a2{constructor(){const _0x189e39=_0x28483d;super(...arguments),u(this,_0x189e39(0x207),new Set()),u(this,_0x189e39(0x19f),new Set());}[_0x28483d(0x1a5)](_0x314029){const _0x4f538f=_0x28483d;return this['_sharedOperations']['add'](_0x314029),_0x32aa81(()=>this[_0x4f538f(0x207)][_0x4f538f(0x1f6)](_0x314029));}[_0x28483d(0x20b)](_0x538f80){const _0x53f7e6=_0x28483d;return this[_0x53f7e6(0x19f)][_0x53f7e6(0x19e)](_0x538f80),_0x32aa81(()=>this[_0x53f7e6(0x19f)][_0x53f7e6(0x1f6)](_0x538f80));}['shouldShareOperation'](_0x1ae86a){const _0x45b7d1=_0x28483d;return this[_0x45b7d1(0x207)]['has'](_0x1ae86a);}['getInitialStates'](_0x59a0df){const _0x534892=_0x28483d;return Array[_0x534892(0x1da)](this[_0x534892(0x19f)])[_0x534892(0x1ca)](_0x55d7ef=>_0x55d7ef(_0x59a0df));}}var Ne=Object[_0x28483d(0x1b3)],Y=(_0x45df4d,_0x32e14f,_0x89f62a,_0x4631dc)=>{const _0x2a1d2c=_0x28483d;for(var _0x4ca646=_0x4631dc>0x1?void 0x0:_0x4631dc?Ne(_0x32e14f,_0x89f62a):_0x32e14f,_0x39a798=_0x45df4d[_0x2a1d2c(0x1d6)]-0x1,_0x4af6bc;_0x39a798>=0x0;_0x39a798--)(_0x4af6bc=_0x45df4d[_0x39a798])&&(_0x4ca646=_0x4af6bc(_0x4ca646)||_0x4ca646);return _0x4ca646;},_=(_0x249a9c,_0x188b77)=>(_0x114828,_0x17768c)=>_0x188b77(_0x114828,_0x17768c,_0x249a9c);let S=class extends _0x4e959a{constructor(_0x182ea4,_0x56e68a,_0x4a3896){const _0x38ca23=_0x28483d;super(),u(this,_0x38ca23(0x192),new Map()),(this[_0x38ca23(0x234)]=_0x182ea4,this['_injector']=_0x56e68a,this['_collabSessionService']=_0x4a3896,this[_0x38ca23(0x205)]());}async['getLiveShareCoordinator'](_0x39eee6){const _0x2c441d=_0x28483d;return this[_0x2c441d(0x192)][_0x2c441d(0x201)](_0x39eee6)||await this[_0x2c441d(0x20e)](_0x39eee6),this[_0x2c441d(0x192)][_0x2c441d(0x1cc)](_0x39eee6);}['getLiveShareCoordinatorSync'](_0x404245){const _0x52c558=_0x28483d;var _0x5cacdc;return(_0x5cacdc=this[_0x52c558(0x192)][_0x52c558(0x1cc)](_0x404245))!=null?_0x5cacdc:null;}[_0x28483d(0x205)](){const _0x2e045d=_0x28483d;this['_univerInstanceService'][_0x2e045d(0x231)](_0x1da7ce[_0x2e045d(0x1ea)])[_0x2e045d(0x212)](_0x3cbd1c(this[_0x2e045d(0x1e5)]))[_0x2e045d(0x22a)](async _0x1493eb=>{const _0x358a97=_0x2e045d,_0x3bda41=_0x1493eb[_0x358a97(0x1d5)]();this[_0x358a97(0x192)][_0x358a97(0x201)](_0x3bda41)||this[_0x358a97(0x20e)](_0x3bda41);}),this['_univerInstanceService'][_0x2e045d(0x1a0)](_0x1da7ce[_0x2e045d(0x1ea)])[_0x2e045d(0x212)](_0x3cbd1c(this[_0x2e045d(0x1e5)]))['subscribe'](_0x362cdd=>{const _0x34a6b1=_0x2e045d,_0x417169=_0x362cdd[_0x34a6b1(0x1d5)](),_0x11aa01=this[_0x34a6b1(0x192)]['get'](_0x417169);_0x11aa01==null||_0x11aa01[_0x34a6b1(0x210)]();});}async['_startLiveShareCoordinator'](_0x39dcb7){const _0x3ad79a=_0x28483d,_0x5f1f48=await this['_collabSessionService'][_0x3ad79a(0x21e)](_0x39dcb7),_0x5f4811=this[_0x3ad79a(0x22e)]['createInstance'](N,_0x39dcb7,_0x5f1f48);return _0x5f4811[_0x3ad79a(0x199)](),this[_0x3ad79a(0x192)][_0x3ad79a(0x1bc)](_0x39dcb7,_0x5f4811),_0x5f4811;}};S=Y([_(0x0,_0x240c37),_(0x1,_0x100628(_0x1e4d19)),_(0x2,_0x100628(_0x2e835c))],S);var c=(_0x594ee7=>(_0x594ee7[_0x28483d(0x1d3)]=_0x28483d(0x1d1),_0x594ee7[_0x28483d(0x22c)]=_0x28483d(0x204),_0x594ee7[_0x28483d(0x219)]=_0x28483d(0x18a),_0x594ee7[_0x28483d(0x18d)]=_0x28483d(0x1bd),_0x594ee7[_0x28483d(0x1df)]=_0x28483d(0x227),_0x594ee7))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4e959a{constructor(_0xaaec2f,_0x5ff498,_0xfc8671,_0xde38a8,_0x234e95){const _0x1d9a19=_0x28483d;super(),u(this,_0x1d9a19(0x233),new _0x2ad11c(_0x1d9a19(0x204))),u(this,_0x1d9a19(0x1b7),this[_0x1d9a19(0x233)][_0x1d9a19(0x1e2)]()),u(this,_0x1d9a19(0x205),!0x1),u(this,_0x1d9a19(0x1e9),null),u(this,_0x1d9a19(0x1ce),null),(this['_unitID']=_0xaaec2f,this[_0x1d9a19(0x196)]=_0x5ff498,this['_configService']=_0xfc8671,this[_0x1d9a19(0x1f5)]=_0xde38a8,this['_commandService']=_0x234e95);}get[_0x28483d(0x1e7)](){const _0x162f56=_0x28483d;return this['_status$'][_0x162f56(0x1b5)]();}[_0x28483d(0x210)](){const _0x5cdb00=_0x28483d;var _0x4731da;(_0x4731da=this[_0x5cdb00(0x1e9)])==null||_0x4731da[_0x5cdb00(0x210)](),this[_0x5cdb00(0x233)]['next']('idle'),this[_0x5cdb00(0x233)][_0x5cdb00(0x1bf)]();}[_0x28483d(0x1dc)](){return this['_status'];}[_0x28483d(0x199)](){const _0x4430a3=_0x28483d;this[_0x4430a3(0x205)]||(this[_0x4430a3(0x205)]=!0x0,this['_collabSession'][_0x4430a3(0x195)][_0x4430a3(0x212)](_0x3cbd1c(this['dispose$']))[_0x4430a3(0x22a)](_0xfecb78=>{const _0x4a4102=_0x4430a3;switch(_0xfecb78){case _0x216c33[_0x4a4102(0x1d3)]:this['_handleOffline']();break;case _0x216c33['ONLINE']:this[_0x4a4102(0x1c8)]();break;}}),this[_0x4430a3(0x196)]['event$']['pipe'](_0x3cbd1c(this[_0x4430a3(0x1e5)]))['subscribe'](_0x36fd86=>{const _0x9f4709=_0x4430a3,{eventID:_0x5419f2}=_0x36fd86;switch(_0x5419f2){case _0x413f6e[_0x9f4709(0x1d9)]:this['_handleNewHost'](_0x36fd86);break;case _0x413f6e[_0x9f4709(0x1c1)]:this[_0x9f4709(0x1d4)](_0x36fd86);break;case _0x413f6e[_0x9f4709(0x1e3)]:this[_0x9f4709(0x1fa)]();break;case _0x413f6e[_0x9f4709(0x1a2)]:this[_0x9f4709(0x1cf)](_0x36fd86);break;}}));}['tryStartPresenting'](){const _0x3065ed=_0x28483d;this['_collabSession'][_0x3065ed(0x216)]({'eventID':_0x413f6e[_0x3065ed(0x18f)],'data':{'unitID':this['_unitID'],'userID':this[_0x3065ed(0x196)][_0x3065ed(0x1c3)]()}},this[_0x3065ed(0x208)]);}['stopPresenting'](){const _0x35dc7c=_0x28483d;this[_0x35dc7c(0x1e7)]==='presenting'&&(this[_0x35dc7c(0x233)][_0x35dc7c(0x20f)]('idle'),this[_0x35dc7c(0x196)]['send']({'eventID':_0x413f6e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x35dc7c(0x208)]}},this['_unitID']));}[_0x28483d(0x191)](){const _0x8e3f52=_0x28483d;this[_0x8e3f52(0x1e7)]===_0x8e3f52(0x1bd)&&(this['_status$']['next']('following'),this[_0x8e3f52(0x1e4)]());}['stopFollowing'](){const _0x184c66=_0x28483d;this[_0x184c66(0x1e7)]==='following'&&this['_stopFollowing']();}[_0x28483d(0x190)](_0x5117a6){const _0x533981=_0x28483d,{presenter:_0x3d277e}=_0x5117a6[_0x533981(0x213)],_0x55a530=this[_0x533981(0x196)][_0x533981(0x1c3)]();this[_0x533981(0x1ce)]=_0x3d277e,_0x3d277e===_0x55a530?(this[_0x533981(0x1ff)](),this[_0x533981(0x1c5)]()):this[_0x533981(0x1e7)]!==_0x533981(0x1bd)&&(this['_stopPresenting'](),this[_0x533981(0x1e4)]());}[_0x28483d(0x211)](){const _0x22bf29=_0x28483d,_0x33bf4d={'eventID':_0x413f6e[_0x22bf29(0x203)]};this['_collabSession'][_0x22bf29(0x216)](_0x33bf4d,this[_0x22bf29(0x208)]);}[_0x28483d(0x1fa)](){const _0x40724c=_0x28483d;this['_presenter']=null,this[_0x40724c(0x1e7)]!==_0x40724c(0x227)&&this[_0x40724c(0x1ab)]();}['_handleNewChangeSets'](_0x1c2775){const _0x2c4a40=_0x28483d;if(this[_0x2c4a40(0x1e7)]==='following'&&this[_0x2c4a40(0x1ce)]===_0x1c2775[_0x2c4a40(0x213)][_0x2c4a40(0x1be)]){const _0x5dd8b2=_0x3f2aee(_0x1c2775[_0x2c4a40(0x213)])[_0x2c4a40(0x1f7)][_0x2c4a40(0x18c)]()[_0x2c4a40(0x221)](_0x5e9a1d=>_0x5e9a1d['id']===_0x2cbc0d['id']);if(_0x5dd8b2){const _0x56b8ce=_0x5dd8b2[_0x2c4a40(0x1ae)]['unitId'],_0x53e8cf=_0x5dd8b2[_0x2c4a40(0x1ae)][_0x2c4a40(0x21b)]['id'];setTimeout(()=>{const _0x2b6b58=_0x2c4a40;this[_0x2b6b58(0x1d0)][_0x2b6b58(0x1cb)](_0x5143a7['id'],{'unitId':_0x56b8ce,'subUnitId':_0x53e8cf},{'fromCollab':!0x0});});}}}[_0x28483d(0x1c5)](){const _0x54e5a1=_0x28483d;this[_0x54e5a1(0x233)][_0x54e5a1(0x20f)]('presenting');const _0x2c10f0=new Map(),_0x33b03f=this[_0x54e5a1(0x1e9)]=new _0xe53e61();_0x33b03f[_0x54e5a1(0x19e)](_0x32aa81(()=>{const _0x1430f5=_0x54e5a1;_0x2c10f0['forEach'](_0x2955c2=>_0x2955c2[_0x1430f5(0x1bf)]()),_0x2c10f0[_0x1430f5(0x1f3)]();})),_0x33b03f[_0x54e5a1(0x19e)](this[_0x54e5a1(0x1d0)][_0x54e5a1(0x215)](_0x26c721=>{const _0x1b6f4a=_0x54e5a1;var _0x44b369;if(_0x26c721['type']!==_0x37c949[_0x1b6f4a(0x220)]||!this[_0x1b6f4a(0x1f5)][_0x1b6f4a(0x1c2)](_0x26c721['id']))return;const {id:_0x34a49d}=_0x26c721;let _0x1d14bc;_0x2c10f0[_0x1b6f4a(0x201)](_0x34a49d)?_0x1d14bc=_0x2c10f0[_0x1b6f4a(0x1cc)](_0x34a49d):(_0x1d14bc=new _0x5a8bbd(),_0x2c10f0[_0x1b6f4a(0x1bc)](_0x34a49d,_0x1d14bc),_0x1d14bc[_0x1b6f4a(0x212)](_0x2b2451((_0x44b369=this[_0x1b6f4a(0x21f)]['getConfig'](Ce))!=null?_0x44b369:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1b6f4a(0x22a)](_0xa7e8f6=>{const _0x4f1d28=_0x1b6f4a;this[_0x4f1d28(0x196)][_0x4f1d28(0x216)]({'eventID':_0x413f6e[_0x4f1d28(0x1c1)],'data':{'unitID':this[_0x4f1d28(0x208)],'operations':{[_0xa7e8f6['id']]:{'id':_0xa7e8f6['id'],'params':JSON[_0x4f1d28(0x1f8)](_0xa7e8f6[_0x4f1d28(0x1ae)])}}}},this[_0x4f1d28(0x208)]);})),_0x1d14bc[_0x1b6f4a(0x20f)](_0x26c721);})),this[_0x54e5a1(0x1f5)][_0x54e5a1(0x1c6)](this[_0x54e5a1(0x208)])[_0x54e5a1(0x1b6)](_0xa8981b=>this['_collabSession'][_0x54e5a1(0x216)]({'eventID':_0x413f6e[_0x54e5a1(0x1c1)],'data':{'unitID':this[_0x54e5a1(0x208)],'operations':{[_0xa8981b['id']]:{'id':_0xa8981b['id'],'params':JSON[_0x54e5a1(0x1f8)](_0xa8981b['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x58e902=_0x28483d;var _0x1b1ed4;this[_0x58e902(0x233)][_0x58e902(0x20f)](_0x58e902(0x204)),(_0x1b1ed4=this[_0x58e902(0x1e9)])==null||_0x1b1ed4[_0x58e902(0x210)](),this[_0x58e902(0x1e9)]=null;}['_startFollowing'](){const _0x3aec53=_0x28483d;var _0x10403b;(_0x10403b=this[_0x3aec53(0x1e9)])==null||_0x10403b[_0x3aec53(0x210)](),this[_0x3aec53(0x233)]['next'](_0x3aec53(0x18a));}[_0x28483d(0x1ab)](){const _0x3ed9ad=_0x28483d;var _0x1078b2;this['_status$']['next']('idle'),(_0x1078b2=this[_0x3ed9ad(0x1e9)])==null||_0x1078b2[_0x3ed9ad(0x210)](),this[_0x3ed9ad(0x1e9)]=null;}[_0x28483d(0x1ff)](){const _0x4f9431=_0x28483d;var _0x18b111;this[_0x4f9431(0x233)][_0x4f9431(0x20f)](_0x4f9431(0x1bd)),(_0x18b111=this['_commandDisposable'])==null||_0x18b111[_0x4f9431(0x210)]();}[_0x28483d(0x1d4)](_0x2b8587){const _0x500851=_0x28483d;if(['presenting','not-following',_0x500851(0x1d1)][_0x500851(0x1b2)](this[_0x500851(0x1e7)])||!_0x2b8587[_0x500851(0x213)][_0x500851(0x1ba)]||_0x2b8587['data'][_0x500851(0x1ba)]===this['_collabSession'][_0x500851(0x1c3)]())return;this[_0x500851(0x1e7)]===_0x500851(0x204)&&this[_0x500851(0x1e4)]();const _0x5d691a=_0x2b8587[_0x500851(0x213)][_0x500851(0x1ec)];Object[_0x500851(0x230)](_0x5d691a)['forEach'](_0x5a1353=>{const _0x2d4e8e=_0x500851;this[_0x2d4e8e(0x1d0)][_0x2d4e8e(0x1cb)](_0x5a1353['id'],_0x5a1353['params']?JSON[_0x2d4e8e(0x20d)](_0x5a1353[_0x2d4e8e(0x1ae)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2fa878=_0x28483d;var _0x116da6;this[_0x2fa878(0x233)][_0x2fa878(0x20f)](_0x2fa878(0x1d1)),(_0x116da6=this['_commandDisposable'])==null||_0x116da6['dispose']();}[_0x28483d(0x1c8)](){const _0x1b04fb=_0x28483d;this[_0x1b04fb(0x233)][_0x1b04fb(0x20f)](_0x1b04fb(0x204)),this[_0x1b04fb(0x211)]();}};N=Y([_(0x2,_0x28819f),_(0x3,_0x100628(L)),_(0x4,_0x553dea)],N);function Le(){const _0xb21795=_0x28483d,_0x24b2a8=_0x23a79c(S),_0x1e2005=_0x23a79c(_0x240c37),_0x123d25=_0x13956b(()=>_0x1e2005['getCurrentTypeOfUnit$'](_0x1da7ce['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x11b712,_0x202241]=_0xd82959(null),[_0x3abca4,_0xcfc894]=_0xd82959(c[_0xb21795(0x22c)]),_0x52dca4=_0x36dedb(null);return _0x54962e(()=>(_0x123d25&&_0x24b2a8[_0xb21795(0x21c)](_0x123d25[_0xb21795(0x1d5)]())[_0xb21795(0x20a)](_0x15c463=>{const _0x3a1f79=_0xb21795;_0x202241(_0x15c463),_0x52dca4[_0x3a1f79(0x224)]=_0x15c463[_0x3a1f79(0x1b7)][_0x3a1f79(0x22a)](_0x4986d9=>{_0xcfc894(_0x4986d9);});}),()=>{const _0x1117bc=_0xb21795;var _0x202def;(_0x202def=_0x52dca4[_0x1117bc(0x224)])==null||_0x202def[_0x1117bc(0x1b9)](),_0x52dca4[_0x1117bc(0x224)]=null;}),[_0x123d25,_0x24b2a8]),_0x11b712?_0x1c2c9e(_0x1ffd19,{'align':_0xb21795(0x1a4),'disabled':_0x3abca4===c[_0xb21795(0x1d3)],'className':_0xb21795(0x1ac),'overlay':_0x1c2c9e(Re,{'status':_0x3abca4,'coordinator':_0x11b712}),'children':_0x1c2c9e('button',{'className':_0x52a3f7(_0xb21795(0x19c),{'univer-cursor-not-allowed':_0x3abca4===c[_0xb21795(0x1d3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3abca4!==c[_0xb21795(0x1d3)]}),'type':_0xb21795(0x217),'children':_0x1c2c9e(W,{'className':_0xb21795(0x197)})})}):null;}function Re(_0x4b1a9e){const _0x50c7fa=_0x28483d,{status:_0x424271,coordinator:_0x556572}=_0x4b1a9e;switch(_0x424271){case c[_0x50c7fa(0x22c)]:return _0x1c2c9e($e,{'coordinator':_0x556572});case c['FOLLOWING']:return _0x1c2c9e(xe,{'coordinator':_0x556572});case c[_0x50c7fa(0x18d)]:return _0x1c2c9e(Pe,{'coordinator':_0x556572});case c['OFFLINE']:return _0x1c2c9e(Te,{});case c['PRESENTING']:return _0x1c2c9e(Ae,{'coordinator':_0x556572});default:return null;}}function $e(_0x287ed1){const _0x39448e=_0x28483d,{coordinator:_0x41ea09}=_0x287ed1;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e(_0x39448e(0x1a6),{'className':_0x39448e(0x1e6),'children':'Present\x20this\x20document'}),_0x1c2c9e(_0x29e220,{'onClick':()=>_0x41ea09[_0x39448e(0x1fb)](),'children':'Start'})]});}function xe(_0x288a53){const _0x2f74f5=_0x28483d,{coordinator:_0x5dafab}=_0x288a53;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e(_0x2f74f5(0x1a6),{'className':_0x2f74f5(0x1e6),'children':_0x2f74f5(0x1b4)}),_0x1c2c9e(_0x29e220,{'onClick':()=>_0x5dafab[_0x2f74f5(0x1ad)](),'children':_0x2f74f5(0x228)})]});}function Pe(_0x3abaf4){const _0x1e1da6=_0x28483d,{coordinator:_0x412731}=_0x3abaf4;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1c2c9e(_0x29e220,{'variant':_0x1e1da6(0x1c7),'onClick':()=>_0x412731['startFollowing'](),'children':_0x1e1da6(0x1f2)})]});}function Ae(_0x467235){const _0x5bc0fc=_0x28483d,{coordinator:_0x59ca87}=_0x467235;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e('div',{'className':_0x5bc0fc(0x1e6),'children':_0x5bc0fc(0x1ef)}),_0x1c2c9e(_0x29e220,{'variant':_0x5bc0fc(0x1e1),'onClick':()=>_0x59ca87[_0x5bc0fc(0x214)](),'children':_0x5bc0fc(0x226)})]});}function Te(){const _0x155d43=_0x28483d;return _0x1c2c9e(_0x4fb667,{'children':_0x155d43(0x1a8)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x143bbc,_0x122728,_0x244b5c,_0x400d8a)=>{const _0x1f02cb=_0x28483d;for(var _0x5add9d=_0x400d8a>0x1?void 0x0:_0x400d8a?Fe(_0x122728,_0x244b5c):_0x122728,_0x57a139=_0x143bbc[_0x1f02cb(0x1d6)]-0x1,_0x118d6c;_0x57a139>=0x0;_0x57a139--)(_0x118d6c=_0x143bbc[_0x57a139])&&(_0x5add9d=_0x118d6c(_0x5add9d)||_0x5add9d);return _0x5add9d;},A=(_0x5cee8a,_0x2f109f)=>(_0x321ecf,_0x15cc82)=>_0x2f109f(_0x321ecf,_0x15cc82,_0x5cee8a);let m=class extends _0x415a2{constructor(_0x262eaa,_0x54cc2a){const _0x32c8ce=_0x28483d;super(),this[_0x32c8ce(0x22e)]=_0x262eaa,this[_0x32c8ce(0x1c9)]=_0x54cc2a,this[_0x32c8ce(0x1d8)]();}['_mountLiveShare'](){const _0x25f663=_0x28483d;this[_0x25f663(0x1b8)](this['_uiPartsService']['registerComponent'](_0x591e95[_0x25f663(0x1a3)],()=>_0x560990(Le,this[_0x25f663(0x22e)])));}};m=He([A(0x0,_0x100628(_0x1e4d19)),A(0x1,_0x4f58c8)],m);const ye=_0x28483d(0x1cd),T={};var Ue=Object[_0x28483d(0x1b3)],Ve=(_0x5f3596,_0x50d7dc,_0x2a3545,_0x7ea1d2)=>{const _0x2c2ce9=_0x28483d;for(var _0x275ccd=_0x7ea1d2>0x1?void 0x0:_0x7ea1d2?Ue(_0x50d7dc,_0x2a3545):_0x50d7dc,_0x3df4ba=_0x5f3596[_0x2c2ce9(0x1d6)]-0x1,_0x5b43e1;_0x3df4ba>=0x0;_0x3df4ba--)(_0x5b43e1=_0x5f3596[_0x3df4ba])&&(_0x275ccd=_0x5b43e1(_0x275ccd)||_0x275ccd);return _0x275ccd;},je=(_0x2103d8,_0x173db8)=>(_0x508ac6,_0x24f85a)=>_0x173db8(_0x508ac6,_0x24f85a,_0x2103d8);let I=class extends _0x415a2{constructor(_0x2d014a){const _0x43722c=_0x28483d;super(),this[_0x43722c(0x1f5)]=_0x2d014a,this[_0x43722c(0x205)]();}[_0x28483d(0x205)](){[_0x3d23dc['id'],_0x3b0aa1['id'],_0x5143a7['id']]['forEach'](_0x29ee48=>{const _0x2908eb=_0x5a0d;this[_0x2908eb(0x1b8)](this[_0x2908eb(0x1f5)][_0x2908eb(0x1a5)](_0x29ee48));});}};I=Ve([je(0x0,_0x100628(L))],I);var Me=Object[_0x28483d(0x1e0)],ke=Object[_0x28483d(0x1b3)],Ge=(_0x55b69a,_0x23caba,_0x5467e8)=>_0x23caba in _0x55b69a?Me(_0x55b69a,_0x23caba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5467e8}):_0x55b69a[_0x23caba]=_0x5467e8,We=(_0x271c37,_0x3add07,_0x49f7e0,_0x5bd5b9)=>{const _0x40c156=_0x28483d;for(var _0x4dcf85=_0x5bd5b9>0x1?void 0x0:_0x5bd5b9?ke(_0x3add07,_0x49f7e0):_0x3add07,_0x55a6cf=_0x271c37[_0x40c156(0x1d6)]-0x1,_0x5cfcf0;_0x55a6cf>=0x0;_0x55a6cf--)(_0x5cfcf0=_0x271c37[_0x55a6cf])&&(_0x4dcf85=_0x5cfcf0(_0x4dcf85)||_0x4dcf85);return _0x4dcf85;},F=(_0xb8878c,_0x1d609d)=>(_0x1ddca0,_0x4e00bc)=>_0x1d609d(_0x1ddca0,_0x4e00bc,_0xb8878c),B=(_0x46f7db,_0x203a20,_0x1d5d97)=>Ge(_0x46f7db,typeof _0x203a20!=_0x28483d(0x200)?_0x203a20+'':_0x203a20,_0x1d5d97);function _0x4c4f(){const _0x64e179=['trim','add','_reporters','getTypeOfUnitDisposed$','2602113euDmhc','NEW_CHANGESETS','HEADER_MENU','end','registerSharedOperation','div','mask','You\x27are\x20offline.','currentColor','xlink:href','_beIdle','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','stopFollowing','params','5874428kGzlUL','UniverIcon','idSuffix','includes','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','getValue','forEach','status$','disposeWithMe','unsubscribe','presenter','2fyXTgs','set','not-following','memberID','complete','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','shouldShareOperation','getMemberID','16727814CnFXam','_startPresenting','getInitialStates','text','_handleOnline','_uiPartsService','map','executeCommand','get','live-share.config','_presenter','_handleNewChangeSets','_commandService','offline','live-share-icon','OFFLINE','_handleOperation','getUnitId','length','assign','_mountLiveShare','LIVESHARE_NEW_HOST','from','fill','getStatus','replace','LiveShareIcon','PRESENTING','defineProperty','default','asObservable','LIVESHARE_TERMINATE','_startFollowing','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_status','override','_commandDisposable','UNIVER_SHEET','entries','operations','onRendered','tag','You\x27re\x20presenting\x20the\x20document','none','1em','Start\x20following','clear','defs','_liveShareService','delete','mutations','stringify','onStarting','_handleTerminate','tryStartPresenting','10SYARAS','setConfig','4057625HRxWTa','_stopFollowing','symbol','has','0\x200\x2017\x2017','LIVESHARE_FETCH_OPERATIONS','idle','_init','colorChannel1','_sharedOperations','_unitID','4HnfsfY','then','registerInitialStateReporter','url(#$1','parse','_startLiveShareCoordinator','next','dispose','_fetchOperations','pipe','data','stopPresenting','onCommandExecuted','send','button','substring','FOLLOWING','svg','sheet','getLiveShareCoordinator','string','requireSession','_configService','OPERATION','find','use','type','current','evenodd','Stop\x20presenting','presenting','Stop\x20following','attrs','subscribe','_config','IDLE','pluginName','_injector','displayName','values','getTypeOfUnitAdded$','random','_status$','_univerInstanceService','following','624606leCqzL','reverse','NOT_FOLLOWING','toString','LIVESHARE_REQUEST_HOST','_handleNewHost','startFollowing','_entities','662954fpGCOM','path','sessionStatus$','_collabSession','univer-size-4','1060776dOXzpv','init','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','children','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x4c4f=function(){return _0x64e179;};return _0x4c4f();}const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1a183f{constructor(_0x4ecc82=T,_0xf1e941,_0x31a6c5){const _0x5486a9=_0x28483d;super(),this[_0x5486a9(0x22b)]=_0x4ecc82,this['_injector']=_0xf1e941,this[_0x5486a9(0x21f)]=_0x31a6c5;const {..._0x5b320e}=_0x4cb9a7({},T,this[_0x5486a9(0x22b)]);this[_0x5486a9(0x21f)][_0x5486a9(0x1fd)](ye,_0x5b320e);}[_0x28483d(0x1f9)](){const _0x5bfcd5=_0x28483d;_0x5c9e8b(this[_0x5bfcd5(0x22e)],_0x175362([[L],[S],[I],[m]],this[_0x5bfcd5(0x22b)][_0x5bfcd5(0x1e8)])),_0xb23083(this[_0x5bfcd5(0x22e)],[[I]]);}[_0x28483d(0x1ed)](){const _0x4cfb08=_0x28483d;_0xb23083(this[_0x4cfb08(0x22e)],[[m]]);}};B(b,_0x28483d(0x223),_0x1da7ce['UNIVER_UNKNOWN']),B(b,_0x28483d(0x22d),Ye),b=We([_0x414cfb(_0x18716e),F(0x1,_0x100628(_0x1e4d19)),F(0x2,_0x28819f)],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 _0x221811=_0x2e9a;(function(_0x153aa2,_0x53c9ad){const _0x469ad4=_0x2e9a,_0x2a42e1=_0x153aa2();while(!![]){try{const _0x5679d9=parseInt(_0x469ad4(0x134))/0x1*(parseInt(_0x469ad4(0x1b4))/0x2)+parseInt(_0x469ad4(0x150))/0x3+-parseInt(_0x469ad4(0x125))/0x4*(-parseInt(_0x469ad4(0x14d))/0x5)+-parseInt(_0x469ad4(0x15f))/0x6+-parseInt(_0x469ad4(0x187))/0x7+-parseInt(_0x469ad4(0x139))/0x8*(-parseInt(_0x469ad4(0x17d))/0x9)+-parseInt(_0x469ad4(0x165))/0xa;if(_0x5679d9===_0x53c9ad)break;else _0x2a42e1['push'](_0x2a42e1['shift']());}catch(_0x47c5ac){_0x2a42e1['push'](_0x2a42e1['shift']());}}}(_0x1745,0x81c6c));var J=Object[_0x221811(0x140)],K=(_0x54f9f1,_0x5442c9,_0x45d33c)=>_0x5442c9 in _0x54f9f1?J(_0x54f9f1,_0x5442c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45d33c}):_0x54f9f1[_0x5442c9]=_0x45d33c,u=(_0x4dda28,_0x35b8c8,_0x28d07c)=>K(_0x4dda28,typeof _0x35b8c8!=_0x221811(0x12b)?_0x35b8c8+'':_0x35b8c8,_0x28d07c);import{Disposable as _0x5584fb,toDisposable as _0x4e21f7,IUniverInstanceService as _0x34a265,Inject as _0x3b972f,Injector as _0x1e206d,IConfigService as _0x3c082e,ICommandService as _0x2a3810,RxDisposable as _0x317033,UniverInstanceType as _0x4fecd8,DisposableCollection as _0x38a87f,CommandType as _0x274666,DependentOn as _0x4ef44e,Plugin as _0x54e800,merge as _0x47f8b3,registerDependencies as _0x38128c,mergeOverrideWithDependencies as _0x28e201,touchDependencies as _0x441580}from'@univerjs/core';import{useDependency as _0x3ba771,useObservable as _0x382b15,IUIPartsService as _0x2df529,BuiltInUIPart as _0x39e9b0,connectInjector as _0x19746f}from'@univerjs/ui';import{jsx as _0x394112,jsxs as _0x35a790,Fragment as _0xf1c7f5}from'react/jsx-runtime';import{Dropdown as _0x195faf,clsx as _0x4a0fdb,Button as _0x4da62a}from'@univerjs/design';import{useRef as _0x3dea31,createElement as _0x5edcfb,forwardRef as _0x5a8e8f,useState as _0x20fc4e,useEffect as _0x300d05}from'react';import{CollaborationEvent as _0x3ec99e,parseProtocolChangeset as _0x40eca1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1839d1,SessionStatus as _0x3fee76,UniverCollaborationClientPlugin as _0x121829}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e444,SetWorksheetActiveOperation as _0x222c77}from'@univerjs/sheets';import{BehaviorSubject as _0x9a32b4,Subject as _0x4cfb70}from'rxjs';import{takeUntil as _0x3d7e87,throttleTime as _0x1bd794}from'rxjs/operators';function _0x2e9a(_0x14dfa5,_0x35b766){const _0x174502=_0x1745();return _0x2e9a=function(_0x2e9af7,_0x486621){_0x2e9af7=_0x2e9af7-0x124;let _0x1540c3=_0x174502[_0x2e9af7];return _0x1540c3;},_0x2e9a(_0x14dfa5,_0x35b766);}import{SetZoomRatioOperation as _0x3a61b7,SetScrollOperation as _0x1e8464}from'@univerjs/sheets-ui';function k({ref:_0x197e6c,..._0x5ca943}){const _0x207c92=_0x221811,{icon:_0x2f09c0,id:_0x8b262c,className:_0x17c9c3,extend:_0x24cdfe,..._0x239edd}=_0x5ca943,_0x306934=(_0x207c92(0x1ba)+_0x8b262c+'\x20'+(_0x17c9c3||''))[_0x207c92(0x169)](),_0xecd5c0=_0x3dea31('_'+Oe());return G(_0x2f09c0,''+_0x8b262c,{'defIds':_0x2f09c0['defIds'],'idSuffix':_0xecd5c0[_0x207c92(0x183)]},{'ref':_0x197e6c,'className':_0x306934,..._0x239edd},_0x24cdfe);}function G(_0x31c008,_0x3c106a,_0xedabbb,_0x5d2070,_0x3dd37a){const _0x5a8fc0=_0x221811;return _0x5edcfb(_0x31c008['tag'],{'key':_0x3c106a,...be(_0x31c008,_0xedabbb,_0x3dd37a),..._0x5d2070},(Ee(_0x31c008,_0xedabbb)['children']||[])['map']((_0x477eeb,_0x324de5)=>G(_0x477eeb,_0x3c106a+'-'+_0x31c008[_0x5a8fc0(0x18e)]+'-'+_0x324de5,_0xedabbb,void 0x0,_0x3dd37a)));}function be(_0x3b3564,_0x187141,_0x5bcc20){const _0x3e1c00=_0x221811,_0x3c1373={..._0x3b3564[_0x3e1c00(0x158)]};_0x5bcc20!=null&&_0x5bcc20[_0x3e1c00(0x17c)]&&_0x3c1373[_0x3e1c00(0x172)]==='colorChannel1'&&(_0x3c1373[_0x3e1c00(0x172)]=_0x5bcc20[_0x3e1c00(0x17c)]),_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x18f)&&_0x3c1373['id']&&(_0x3c1373['id']=_0x3c1373['id']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)[_0x3e1c00(0x13d)](([_0x3c7c5c,_0x1da6a6])=>{const _0x157bf4=_0x3e1c00;_0x3c7c5c===_0x157bf4(0x18f)&&typeof _0x1da6a6==_0x157bf4(0x192)&&(_0x3c1373[_0x3c7c5c]=_0x1da6a6[_0x157bf4(0x19f)](/url\(#(.*)\)/,_0x157bf4(0x166)+_0x187141[_0x157bf4(0x167)]+')'));});const {defIds:_0x22b32f}=_0x187141;return!_0x22b32f||_0x22b32f[_0x3e1c00(0x195)]===0x0||(_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x1cc)&&_0x3c1373[_0x3e1c00(0x1b3)]&&(_0x3c1373['xlink:href']=_0x3c1373['xlink:href']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)['forEach'](([_0x33755c,_0x2297f2])=>{const _0x545bfe=_0x3e1c00;typeof _0x2297f2==_0x545bfe(0x192)&&(_0x3c1373[_0x33755c]=_0x2297f2[_0x545bfe(0x19f)](/url\(#(.*)\)/,'url(#$1'+_0x187141[_0x545bfe(0x167)]+')'));})),_0x3c1373;}function Ee(_0x5a9411,_0x19eef7){const _0x350b86=_0x221811;var _0xbb3c2e;const {defIds:_0xa3863b}=_0x19eef7;return!_0xa3863b||_0xa3863b[_0x350b86(0x195)]===0x0?_0x5a9411:_0x5a9411[_0x350b86(0x18e)]===_0x350b86(0x149)&&((_0xbb3c2e=_0x5a9411[_0x350b86(0x145)])!=null&&_0xbb3c2e[_0x350b86(0x195)])?{..._0x5a9411,'children':_0x5a9411[_0x350b86(0x145)][_0x350b86(0x141)](_0x8212e7=>typeof _0x8212e7[_0x350b86(0x158)]['id']==_0x350b86(0x192)&&_0xa3863b&&_0xa3863b[_0x350b86(0x136)](_0x8212e7[_0x350b86(0x158)]['id'])?{..._0x8212e7,'attrs':{..._0x8212e7[_0x350b86(0x158)],'id':_0x8212e7[_0x350b86(0x158)]['id']+_0x19eef7[_0x350b86(0x167)]}}:_0x8212e7)}:_0x5a9411;}function Oe(){const _0x3670fe=_0x221811;return Math[_0x3670fe(0x1c6)]()[_0x3670fe(0x142)](0x24)[_0x3670fe(0x144)](0x2,0x8);}k[_0x221811(0x1a5)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x221811(0x184),'fill':_0x221811(0x178),'viewBox':_0x221811(0x1b0),'width':'1em','height':_0x221811(0x12d)},'children':[{'tag':_0x221811(0x153),'attrs':{'fill':_0x221811(0x1ad),'d':_0x221811(0x13c)}},{'tag':_0x221811(0x153),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x221811(0x1b1),'clipRule':_0x221811(0x1b1)}}]},W=_0x5a8e8f(function(_0x20d022,_0x47731f){const _0x315b76=_0x221811;return _0x5edcfb(k,Object[_0x315b76(0x175)]({},_0x20d022,{'id':'live-share-icon','ref':_0x47731f,'icon':we}));});W[_0x221811(0x1a5)]=_0x221811(0x190);class L extends _0x5584fb{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x221811(0x1bc)](_0x5900df){const _0x5bc97f=_0x221811;return this[_0x5bc97f(0x1c8)]['add'](_0x5900df),_0x4e21f7(()=>this[_0x5bc97f(0x1c8)][_0x5bc97f(0x126)](_0x5900df));}[_0x221811(0x18d)](_0x375172){const _0x88761=_0x221811;return this[_0x88761(0x1b9)][_0x88761(0x1a9)](_0x375172),_0x4e21f7(()=>this[_0x88761(0x1b9)][_0x88761(0x126)](_0x375172));}[_0x221811(0x1a7)](_0x18d878){const _0x53d32f=_0x221811;return this[_0x53d32f(0x1c8)]['has'](_0x18d878);}['getInitialStates'](_0x5d176f){const _0x1eeed2=_0x221811;return Array[_0x1eeed2(0x1ce)](this['_reporters'])['map'](_0x2bb04e=>_0x2bb04e(_0x5d176f));}}var Ne=Object[_0x221811(0x156)],Y=(_0x287803,_0x18bfb1,_0x3a3c64,_0x95786)=>{const _0x9d8303=_0x221811;for(var _0x24231a=_0x95786>0x1?void 0x0:_0x95786?Ne(_0x18bfb1,_0x3a3c64):_0x18bfb1,_0x8d7260=_0x287803[_0x9d8303(0x195)]-0x1,_0x257dee;_0x8d7260>=0x0;_0x8d7260--)(_0x257dee=_0x287803[_0x8d7260])&&(_0x24231a=_0x257dee(_0x24231a)||_0x24231a);return _0x24231a;},_=(_0x42f5a8,_0x5bb8ea)=>(_0x5381dd,_0x3fb270)=>_0x5bb8ea(_0x5381dd,_0x3fb270,_0x42f5a8);let S=class extends _0x317033{constructor(_0x305ccb,_0x243345,_0x2d10b0){const _0x2a2f93=_0x221811;super(),u(this,_0x2a2f93(0x1be),new Map()),(this[_0x2a2f93(0x194)]=_0x305ccb,this['_injector']=_0x243345,this[_0x2a2f93(0x193)]=_0x2d10b0,this[_0x2a2f93(0x14c)]());}async['getLiveShareCoordinator'](_0x4a5180){const _0x43c5d3=_0x221811;return this[_0x43c5d3(0x1be)][_0x43c5d3(0x15e)](_0x4a5180)||await this[_0x43c5d3(0x17b)](_0x4a5180),this[_0x43c5d3(0x1be)][_0x43c5d3(0x1b5)](_0x4a5180);}[_0x221811(0x1a0)](_0x3f9228){const _0xaa81b6=_0x221811;var _0x30c53a;return(_0x30c53a=this[_0xaa81b6(0x1be)][_0xaa81b6(0x1b5)](_0x3f9228))!=null?_0x30c53a:null;}['_init'](){const _0x396051=_0x221811;this['_univerInstanceService'][_0x396051(0x127)](_0x4fecd8[_0x396051(0x1a3)])['pipe'](_0x3d7e87(this[_0x396051(0x146)]))[_0x396051(0x1bf)](async _0x342f0c=>{const _0xd58b8b=_0x396051,_0x412d57=_0x342f0c[_0xd58b8b(0x174)]();this[_0xd58b8b(0x1be)][_0xd58b8b(0x15e)](_0x412d57)||this[_0xd58b8b(0x17b)](_0x412d57);}),this[_0x396051(0x194)]['getTypeOfUnitDisposed$'](_0x4fecd8['UNIVER_SHEET'])[_0x396051(0x16d)](_0x3d7e87(this['dispose$']))[_0x396051(0x1bf)](_0x28aa88=>{const _0x503de2=_0x396051,_0x2aa132=_0x28aa88[_0x503de2(0x174)](),_0x28c133=this['_entities'][_0x503de2(0x1b5)](_0x2aa132);_0x28c133==null||_0x28c133[_0x503de2(0x177)]();});}async[_0x221811(0x17b)](_0x1586f5){const _0x21f7ba=_0x221811,_0xf8791d=await this['_collabSessionService']['requireSession'](_0x1586f5),_0x265bff=this['_injector']['createInstance'](N,_0x1586f5,_0xf8791d);return _0x265bff[_0x21f7ba(0x199)](),this[_0x21f7ba(0x1be)][_0x21f7ba(0x152)](_0x1586f5,_0x265bff),_0x265bff;}};function _0x1745(){const _0x59f379=['asObservable','180940pjanDM','delete','getTypeOfUnitAdded$','OFFLINE','mutations','_handleTerminate','symbol','Start\x20following','1em','startFollowing','unsubscribe','clear','unitId','_commandService','univer-size-4','447734GbjpvL','stringify','includes','_unitID','status$','16XTUvtF','_stopFollowing','live-share.config','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','forEach','_handleOffline','UNIVER_UNKNOWN','defineProperty','map','toString','FOLLOWING','substring','children','dispose$','values','following','defs','stopPresenting','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','_init','105YpEDMh','NEW_CHANGESETS','send','2099199niqjAe','registerComponent','set','path','presenter','presenting','getOwnPropertyDescriptor','_configService','attrs','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','memberID','getLiveShareCoordinator','_config','has','1474626oNDPyu','_liveShareService','parse','offline','disposeWithMe','sessionStatus$','16891970YTWKVJ','url(#$1','idSuffix','sheet','trim','_stopPresenting','getStatus','OPERATION','pipe','button','operations','LIVESHARE_TERMINATE','_commandDisposable','fill','text','getUnitId','assign','ONLINE','dispose','none','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','_startLiveShareCoordinator','colorChannel1','1110132JRRPZH','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','then','find','data','current','http://www.w3.org/2000/svg','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','2277100BSyuDF','_status$','getValue','Stop\x20following','next','_fetchOperations','registerInitialStateReporter','tag','mask','LiveShareIcon','_injector','string','_collabSessionService','_univerInstanceService','length','complete','setConfig','getConfig','init','_beIdle','params','_presenter','_status','not-following','replace','getLiveShareCoordinatorSync','IDLE','_startFollowing','UNIVER_SHEET','HEADER_MENU','displayName','pluginName','shouldShareOperation','reverse','add','executeCommand','entries','LIVESHARE_NEW_HOST','currentColor','PRESENTING','_handleOperation','0\x200\x2017\x2017','evenodd','idle','xlink:href','4seKHVT','get','You\x27re\x20following\x20the\x20presenter','onStarting','LIVESHARE_REQUEST_HOST','_reporters','univerjs-icon\x20univerjs-icon-','getMemberID','registerSharedOperation','Present\x20this\x20document','_entities','subscribe','_uiPartsService','_collabSession','_handleOnline','Start','NOT_FOLLOWING','end','random','_handleNewHost','_sharedOperations','_startPresenting','default','div','use','_handleNewChangeSets','from'];_0x1745=function(){return _0x59f379;};return _0x1745();}S=Y([_(0x0,_0x34a265),_(0x1,_0x3b972f(_0x1e206d)),_(0x2,_0x3b972f(_0x1839d1))],S);var c=(_0x4faa0d=>(_0x4faa0d[_0x221811(0x128)]=_0x221811(0x162),_0x4faa0d[_0x221811(0x1a1)]=_0x221811(0x1b2),_0x4faa0d[_0x221811(0x143)]=_0x221811(0x148),_0x4faa0d['NOT_FOLLOWING']=_0x221811(0x19e),_0x4faa0d[_0x221811(0x1ae)]=_0x221811(0x155),_0x4faa0d))(c||{});const Ce=_0x221811(0x159),De=0xc8;let N=class extends _0x317033{constructor(_0x4c19f4,_0x31c774,_0x23e67d,_0x2e7fb6,_0xfd22e8){const _0x146a8e=_0x221811;super(),u(this,_0x146a8e(0x188),new _0x9a32b4('idle')),u(this,'status$',this[_0x146a8e(0x188)][_0x146a8e(0x124)]()),u(this,'_init',!0x1),u(this,_0x146a8e(0x171),null),u(this,'_presenter',null),(this[_0x146a8e(0x137)]=_0x4c19f4,this['_collabSession']=_0x31c774,this[_0x146a8e(0x157)]=_0x23e67d,this[_0x146a8e(0x160)]=_0x2e7fb6,this[_0x146a8e(0x132)]=_0xfd22e8);}get[_0x221811(0x19d)](){const _0x51f3e1=_0x221811;return this['_status$'][_0x51f3e1(0x189)]();}[_0x221811(0x177)](){const _0x22fc4a=_0x221811;var _0x27df7a;(_0x27df7a=this[_0x22fc4a(0x171)])==null||_0x27df7a[_0x22fc4a(0x177)](),this[_0x22fc4a(0x188)][_0x22fc4a(0x18b)](_0x22fc4a(0x1b2)),this[_0x22fc4a(0x188)][_0x22fc4a(0x196)]();}[_0x221811(0x16b)](){const _0x1da97c=_0x221811;return this[_0x1da97c(0x19d)];}['init'](){const _0x5e119f=_0x221811;this[_0x5e119f(0x14c)]||(this[_0x5e119f(0x14c)]=!0x0,this['_collabSession'][_0x5e119f(0x164)][_0x5e119f(0x16d)](_0x3d7e87(this['dispose$']))['subscribe'](_0xc6020a=>{const _0x370db1=_0x5e119f;switch(_0xc6020a){case _0x3fee76[_0x370db1(0x128)]:this[_0x370db1(0x13e)]();break;case _0x3fee76[_0x370db1(0x176)]:this[_0x370db1(0x1c2)]();break;}}),this[_0x5e119f(0x1c1)]['event$'][_0x5e119f(0x16d)](_0x3d7e87(this[_0x5e119f(0x146)]))[_0x5e119f(0x1bf)](_0x240184=>{const _0x1ecede=_0x5e119f,{eventID:_0x5746fc}=_0x240184;switch(_0x5746fc){case _0x3ec99e[_0x1ecede(0x1ac)]:this[_0x1ecede(0x1c7)](_0x240184);break;case _0x3ec99e['LIVESHARE_OPERATION']:this['_handleOperation'](_0x240184);break;case _0x3ec99e[_0x1ecede(0x170)]:this[_0x1ecede(0x12a)]();break;case _0x3ec99e[_0x1ecede(0x14e)]:this[_0x1ecede(0x1cd)](_0x240184);break;}}));}['tryStartPresenting'](){const _0x365163=_0x221811;this[_0x365163(0x1c1)][_0x365163(0x14f)]({'eventID':_0x3ec99e[_0x365163(0x1b8)],'data':{'unitID':this[_0x365163(0x137)],'userID':this[_0x365163(0x1c1)][_0x365163(0x1bb)]()}},this[_0x365163(0x137)]);}[_0x221811(0x14a)](){const _0x186731=_0x221811;this[_0x186731(0x19d)]==='presenting'&&(this[_0x186731(0x188)][_0x186731(0x18b)](_0x186731(0x1b2)),this[_0x186731(0x1c1)][_0x186731(0x14f)]({'eventID':_0x3ec99e[_0x186731(0x170)],'data':{'unitID':this[_0x186731(0x137)]}},this[_0x186731(0x137)]));}[_0x221811(0x12e)](){const _0x59c1c6=_0x221811;this[_0x59c1c6(0x19d)]===_0x59c1c6(0x19e)&&(this['_status$']['next']('following'),this[_0x59c1c6(0x1a2)]());}[_0x221811(0x17f)](){const _0x3c87d7=_0x221811;this[_0x3c87d7(0x19d)]===_0x3c87d7(0x148)&&this[_0x3c87d7(0x13a)]();}[_0x221811(0x1c7)](_0x38774b){const _0x26147e=_0x221811,{presenter:_0x568de2}=_0x38774b[_0x26147e(0x182)],_0x1ee82b=this[_0x26147e(0x1c1)][_0x26147e(0x1bb)]();this[_0x26147e(0x19c)]=_0x568de2,_0x568de2===_0x1ee82b?(this[_0x26147e(0x13a)](),this[_0x26147e(0x1c9)]()):this[_0x26147e(0x19d)]!==_0x26147e(0x19e)&&(this[_0x26147e(0x16a)](),this['_startFollowing']());}[_0x221811(0x18c)](){const _0x26a97f=_0x221811,_0x4371d8={'eventID':_0x3ec99e[_0x26a97f(0x17a)]};this[_0x26a97f(0x1c1)]['send'](_0x4371d8,this[_0x26a97f(0x137)]);}[_0x221811(0x12a)](){const _0x2db4c0=_0x221811;this[_0x2db4c0(0x19c)]=null,this[_0x2db4c0(0x19d)]!==_0x2db4c0(0x155)&&this[_0x2db4c0(0x19a)]();}[_0x221811(0x1cd)](_0xab9e6a){const _0x6f32d8=_0x221811;if(this[_0x6f32d8(0x19d)]===_0x6f32d8(0x148)&&this[_0x6f32d8(0x19c)]===_0xab9e6a[_0x6f32d8(0x182)][_0x6f32d8(0x15b)]){const _0x583621=_0x40eca1(_0xab9e6a[_0x6f32d8(0x182)])[_0x6f32d8(0x129)][_0x6f32d8(0x1a8)]()[_0x6f32d8(0x181)](_0xc28a72=>_0xc28a72['id']===_0x52e444['id']);if(_0x583621){const _0x57156a=_0x583621[_0x6f32d8(0x19b)][_0x6f32d8(0x131)],_0x3ce4c3=_0x583621['params'][_0x6f32d8(0x168)]['id'];setTimeout(()=>{const _0x596f4e=_0x6f32d8;this[_0x596f4e(0x132)][_0x596f4e(0x1aa)](_0x222c77['id'],{'unitId':_0x57156a,'subUnitId':_0x3ce4c3},{'fromCollab':!0x0});});}}}[_0x221811(0x1c9)](){const _0x2db157=_0x221811;this[_0x2db157(0x188)]['next']('presenting');const _0x4200fd=new Map(),_0x48d81f=this['_commandDisposable']=new _0x38a87f();_0x48d81f[_0x2db157(0x1a9)](_0x4e21f7(()=>{const _0x584e59=_0x2db157;_0x4200fd[_0x584e59(0x13d)](_0x17bf45=>_0x17bf45['complete']()),_0x4200fd[_0x584e59(0x130)]();})),_0x48d81f[_0x2db157(0x1a9)](this['_commandService'][_0x2db157(0x185)](_0x3bcb07=>{const _0x52500f=_0x2db157;var _0x48bb29;if(_0x3bcb07['type']!==_0x274666[_0x52500f(0x16c)]||!this[_0x52500f(0x160)][_0x52500f(0x1a7)](_0x3bcb07['id']))return;const {id:_0x52ddee}=_0x3bcb07;let _0x354757;_0x4200fd[_0x52500f(0x15e)](_0x52ddee)?_0x354757=_0x4200fd[_0x52500f(0x1b5)](_0x52ddee):(_0x354757=new _0x4cfb70(),_0x4200fd[_0x52500f(0x152)](_0x52ddee,_0x354757),_0x354757[_0x52500f(0x16d)](_0x1bd794((_0x48bb29=this[_0x52500f(0x157)][_0x52500f(0x198)](Ce))!=null?_0x48bb29:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x52500f(0x1bf)](_0x9f13b9=>{const _0x1e65e7=_0x52500f;this[_0x1e65e7(0x1c1)][_0x1e65e7(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x9f13b9['id']]:{'id':_0x9f13b9['id'],'params':JSON[_0x1e65e7(0x135)](_0x9f13b9['params'])}}}},this[_0x1e65e7(0x137)]);})),_0x354757['next'](_0x3bcb07);})),this[_0x2db157(0x160)]['getInitialStates'](this[_0x2db157(0x137)])['forEach'](_0x492c05=>this[_0x2db157(0x1c1)][_0x2db157(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2db157(0x137)],'operations':{[_0x492c05['id']]:{'id':_0x492c05['id'],'params':JSON[_0x2db157(0x135)](_0x492c05['params'])}}}},this['_unitID']));}[_0x221811(0x16a)](){const _0x58f706=_0x221811;var _0x28dca8;this[_0x58f706(0x188)][_0x58f706(0x18b)](_0x58f706(0x1b2)),(_0x28dca8=this[_0x58f706(0x171)])==null||_0x28dca8[_0x58f706(0x177)](),this[_0x58f706(0x171)]=null;}['_startFollowing'](){const _0x3f181e=_0x221811;var _0x4a3511;(_0x4a3511=this[_0x3f181e(0x171)])==null||_0x4a3511['dispose'](),this[_0x3f181e(0x188)]['next']('following');}['_beIdle'](){const _0x3b987a=_0x221811;var _0x529286;this[_0x3b987a(0x188)][_0x3b987a(0x18b)](_0x3b987a(0x1b2)),(_0x529286=this['_commandDisposable'])==null||_0x529286['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xa80023=_0x221811;var _0x3265b9;this[_0xa80023(0x188)][_0xa80023(0x18b)](_0xa80023(0x19e)),(_0x3265b9=this[_0xa80023(0x171)])==null||_0x3265b9[_0xa80023(0x177)]();}[_0x221811(0x1af)](_0x2ef283){const _0x4ca27f=_0x221811;if([_0x4ca27f(0x155),_0x4ca27f(0x19e),_0x4ca27f(0x162)][_0x4ca27f(0x136)](this['_status'])||!_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]||_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]===this[_0x4ca27f(0x1c1)][_0x4ca27f(0x1bb)]())return;this[_0x4ca27f(0x19d)]===_0x4ca27f(0x1b2)&&this['_startFollowing']();const _0xaa10b1=_0x2ef283['data'][_0x4ca27f(0x16f)];Object[_0x4ca27f(0x147)](_0xaa10b1)[_0x4ca27f(0x13d)](_0x2d211e=>{const _0x4ba9d0=_0x4ca27f;this[_0x4ba9d0(0x132)][_0x4ba9d0(0x1aa)](_0x2d211e['id'],_0x2d211e['params']?JSON[_0x4ba9d0(0x161)](_0x2d211e[_0x4ba9d0(0x19b)]):null,{'fromCollab':!0x0});});}[_0x221811(0x13e)](){const _0x36d796=_0x221811;var _0x523e3f;this['_status$'][_0x36d796(0x18b)](_0x36d796(0x162)),(_0x523e3f=this[_0x36d796(0x171)])==null||_0x523e3f['dispose']();}[_0x221811(0x1c2)](){const _0x535ff5=_0x221811;this[_0x535ff5(0x188)][_0x535ff5(0x18b)]('idle'),this[_0x535ff5(0x18c)]();}};N=Y([_(0x2,_0x3c082e),_(0x3,_0x3b972f(L)),_(0x4,_0x2a3810)],N);function Le(){const _0x43a402=_0x221811,_0x26e912=_0x3ba771(S),_0x4dce2a=_0x3ba771(_0x34a265),_0x43f15e=_0x382b15(()=>_0x4dce2a['getCurrentTypeOfUnit$'](_0x4fecd8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1a9aed,_0x1d620a]=_0x20fc4e(null),[_0x1d9dc8,_0xf37569]=_0x20fc4e(c[_0x43a402(0x1a1)]),_0x8fea30=_0x3dea31(null);return _0x300d05(()=>(_0x43f15e&&_0x26e912[_0x43a402(0x15c)](_0x43f15e[_0x43a402(0x174)]())[_0x43a402(0x180)](_0x4eba86=>{const _0x50b8d6=_0x43a402;_0x1d620a(_0x4eba86),_0x8fea30[_0x50b8d6(0x183)]=_0x4eba86[_0x50b8d6(0x138)][_0x50b8d6(0x1bf)](_0x434bf9=>{_0xf37569(_0x434bf9);});}),()=>{const _0x358f3e=_0x43a402;var _0x5b15db;(_0x5b15db=_0x8fea30['current'])==null||_0x5b15db[_0x358f3e(0x12f)](),_0x8fea30[_0x358f3e(0x183)]=null;}),[_0x43f15e,_0x26e912]),_0x1a9aed?_0x394112(_0x195faf,{'align':_0x43a402(0x1c5),'disabled':_0x1d9dc8===c[_0x43a402(0x128)],'className':_0x43a402(0x14b),'overlay':_0x394112(Re,{'status':_0x1d9dc8,'coordinator':_0x1a9aed}),'children':_0x394112(_0x43a402(0x16e),{'className':_0x4a0fdb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1d9dc8===c[_0x43a402(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d9dc8!==c[_0x43a402(0x128)]}),'type':'button','children':_0x394112(W,{'className':_0x43a402(0x133)})})}):null;}function Re(_0x379975){const _0x501bf6=_0x221811,{status:_0xf6a4ed,coordinator:_0x4f14d6}=_0x379975;switch(_0xf6a4ed){case c[_0x501bf6(0x1a1)]:return _0x394112($e,{'coordinator':_0x4f14d6});case c['FOLLOWING']:return _0x394112(xe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x1c4)]:return _0x394112(Pe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x128)]:return _0x394112(Te,{});case c['PRESENTING']:return _0x394112(Ae,{'coordinator':_0x4f14d6});default:return null;}}function $e(_0x575fa9){const _0x11beaa=_0x221811,{coordinator:_0x5b9bcf}=_0x575fa9;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x11beaa(0x1cb),{'className':_0x11beaa(0x17e),'children':_0x11beaa(0x1bd)}),_0x394112(_0x4da62a,{'onClick':()=>_0x5b9bcf['tryStartPresenting'](),'children':_0x11beaa(0x1c3)})]});}function xe(_0x36f248){const _0x28450b=_0x221811,{coordinator:_0xdf4b47}=_0x36f248;return _0x35a790(_0xf1c7f5,{'children':[_0x394112('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28450b(0x1b6)}),_0x394112(_0x4da62a,{'onClick':()=>_0xdf4b47['stopFollowing'](),'children':_0x28450b(0x18a)})]});}function Pe(_0x57f701){const _0x8b5e25=_0x221811,{coordinator:_0x1762af}=_0x57f701;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x8b5e25(0x1cb),{'className':_0x8b5e25(0x17e),'children':_0x8b5e25(0x186)}),_0x394112(_0x4da62a,{'variant':_0x8b5e25(0x173),'onClick':()=>_0x1762af[_0x8b5e25(0x12e)](),'children':_0x8b5e25(0x12c)})]});}function Ae(_0x40a8aa){const _0x294155=_0x221811,{coordinator:_0x3b2972}=_0x40a8aa;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x294155(0x1cb),{'className':_0x294155(0x17e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x394112(_0x4da62a,{'variant':_0x294155(0x1ca),'onClick':()=>_0x3b2972['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x394112(_0xf1c7f5,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x35fae4,_0x3f93b4,_0x195de5,_0x11e290)=>{for(var _0x4de847=_0x11e290>0x1?void 0x0:_0x11e290?Fe(_0x3f93b4,_0x195de5):_0x3f93b4,_0x74d76b=_0x35fae4['length']-0x1,_0x4838c4;_0x74d76b>=0x0;_0x74d76b--)(_0x4838c4=_0x35fae4[_0x74d76b])&&(_0x4de847=_0x4838c4(_0x4de847)||_0x4de847);return _0x4de847;},A=(_0x52f16e,_0x553295)=>(_0x213c39,_0x1ab16b)=>_0x553295(_0x213c39,_0x1ab16b,_0x52f16e);let m=class extends _0x5584fb{constructor(_0x28f257,_0x4c0e58){const _0x4f80ab=_0x221811;super(),this[_0x4f80ab(0x191)]=_0x28f257,this['_uiPartsService']=_0x4c0e58,this[_0x4f80ab(0x15a)]();}[_0x221811(0x15a)](){const _0x287327=_0x221811;this[_0x287327(0x163)](this[_0x287327(0x1c0)][_0x287327(0x151)](_0x39e9b0[_0x287327(0x1a4)],()=>_0x19746f(Le,this['_injector'])));}};m=He([A(0x0,_0x3b972f(_0x1e206d)),A(0x1,_0x2df529)],m);const ye=_0x221811(0x13b),T={};var Ue=Object[_0x221811(0x156)],Ve=(_0x53c3a8,_0x36fd72,_0x5468a2,_0x34abac)=>{const _0x1fab97=_0x221811;for(var _0x32abaf=_0x34abac>0x1?void 0x0:_0x34abac?Ue(_0x36fd72,_0x5468a2):_0x36fd72,_0x1f375e=_0x53c3a8[_0x1fab97(0x195)]-0x1,_0x360244;_0x1f375e>=0x0;_0x1f375e--)(_0x360244=_0x53c3a8[_0x1f375e])&&(_0x32abaf=_0x360244(_0x32abaf)||_0x32abaf);return _0x32abaf;},je=(_0x45d15b,_0x5c189b)=>(_0x498899,_0x28088e)=>_0x5c189b(_0x498899,_0x28088e,_0x45d15b);let I=class extends _0x5584fb{constructor(_0xa67071){const _0x102e26=_0x221811;super(),this['_liveShareService']=_0xa67071,this[_0x102e26(0x14c)]();}[_0x221811(0x14c)](){[_0x3a61b7['id'],_0x1e8464['id'],_0x222c77['id']]['forEach'](_0x304360=>{const _0x4c14f1=_0x2e9a;this[_0x4c14f1(0x163)](this[_0x4c14f1(0x160)][_0x4c14f1(0x1bc)](_0x304360));});}};I=Ve([je(0x0,_0x3b972f(L))],I);var Me=Object[_0x221811(0x140)],ke=Object[_0x221811(0x156)],Ge=(_0x1699ed,_0x307fac,_0x32daaf)=>_0x307fac in _0x1699ed?Me(_0x1699ed,_0x307fac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32daaf}):_0x1699ed[_0x307fac]=_0x32daaf,We=(_0x544d81,_0x5843cb,_0x32db75,_0x35fed6)=>{const _0x3a252f=_0x221811;for(var _0x1377e5=_0x35fed6>0x1?void 0x0:_0x35fed6?ke(_0x5843cb,_0x32db75):_0x5843cb,_0x44480b=_0x544d81[_0x3a252f(0x195)]-0x1,_0x380dfc;_0x44480b>=0x0;_0x44480b--)(_0x380dfc=_0x544d81[_0x44480b])&&(_0x1377e5=_0x380dfc(_0x1377e5)||_0x1377e5);return _0x1377e5;},F=(_0x2c9782,_0x36fd95)=>(_0x427cb3,_0x344910)=>_0x36fd95(_0x427cb3,_0x344910,_0x2c9782),B=(_0x4bcd0e,_0x295c7f,_0x51efd5)=>Ge(_0x4bcd0e,typeof _0x295c7f!=_0x221811(0x12b)?_0x295c7f+'':_0x295c7f,_0x51efd5);const Ye=_0x221811(0x179);let b=class extends _0x54e800{constructor(_0x4965c7=T,_0x569af8,_0x2f65de){const _0x24a8a9=_0x221811;super(),this['_config']=_0x4965c7,this[_0x24a8a9(0x191)]=_0x569af8,this[_0x24a8a9(0x157)]=_0x2f65de;const {..._0x3d493f}=_0x47f8b3({},T,this[_0x24a8a9(0x15d)]);this['_configService'][_0x24a8a9(0x197)](ye,_0x3d493f);}[_0x221811(0x1b7)](){const _0x5f01fe=_0x221811;_0x38128c(this['_injector'],_0x28e201([[L],[S],[I],[m]],this[_0x5f01fe(0x15d)]['override'])),_0x441580(this[_0x5f01fe(0x191)],[[I]]);}['onRendered'](){const _0x4ac341=_0x221811;_0x441580(this[_0x4ac341(0x191)],[[m]]);}};B(b,'type',_0x4fecd8[_0x221811(0x13f)]),B(b,_0x221811(0x1a6),Ye),b=We([_0x4ef44e(_0x121829),F(0x1,_0x3b972f(_0x1e206d)),F(0x2,_0x3c082e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4118(_0x406fdc,_0x5da886){const _0xa21c9=_0xa21c();return _0x4118=function(_0x411889,_0x2da739){_0x411889=_0x411889-0x12e;let _0x458c22=_0xa21c9[_0x411889];return _0x458c22;},_0x4118(_0x406fdc,_0x5da886);}function _0xa21c(){const _0x3b729a=['@univerjs/core/facade','@univerjs/sheets/facade','FUniver','FRange','getActiveSheet','stopPresenting','tryStartPresenting','syncExecuteCommand','551824yaxQsM','968jmnOTJ','extend','396xbBsUa','getLiveShareCoordinatorSync','stopFollowing','function','amd','startColumn','No\x20active\x20workbook\x20found.','63MmOGLu','getActiveWorkbook','UniverProLiveShare','UniverSheetsUi','213790OVgmLB','310867JcrwaY','UniverSheetsFacade','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','startFollowing','22340GHpXIj','SetScrollOperation','getSheetId','getRenderById','LiveShareController','@univerjs/sheets','IDLE','4dGUcVE','FEnum','LiveShareStatusEnum','getStatus','@univerjs/engine-render','SetWorksheetActiveOperation','UniverEngineRender','getUnitId','getId','startPresenting','812484ikuFYy','3753462SFLqmh','executeCommand','PRESENTING','LiveShareStatus','@univerjs/sheets-ui','get','getLiveShareStatus','2098911eLFCsE','261sTPzUj','_commandService','_injector'];_0xa21c=function(){return _0x3b729a;};return _0xa21c();}(function(_0xee2166,_0x4c039b){const _0x29a63b=_0x4118,_0x4387a9=_0xee2166();while(!![]){try{const _0x4e67dd=-parseInt(_0x29a63b(0x14f))/0x1*(-parseInt(_0x29a63b(0x15b))/0x2)+parseInt(_0x29a63b(0x134))/0x3+parseInt(_0x29a63b(0x141))/0x4*(parseInt(_0x29a63b(0x154))/0x5)+parseInt(_0x29a63b(0x166))/0x6+parseInt(_0x29a63b(0x14a))/0x7*(parseInt(_0x29a63b(0x140))/0x8)+parseInt(_0x29a63b(0x135))/0x9*(-parseInt(_0x29a63b(0x14e))/0xa)+-parseInt(_0x29a63b(0x143))/0xb*(parseInt(_0x29a63b(0x165))/0xc);if(_0x4e67dd===_0x4c039b)break;else _0x4387a9['push'](_0x4387a9['shift']());}catch(_0x5e1093){_0x4387a9['push'](_0x4387a9['shift']());}}}(_0xa21c,0x906cb),function(_0x296337,_0xe9d1cd){const _0x58c7a8=_0x4118;typeof exports=='object'&&typeof module<'u'?_0xe9d1cd(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==_0x58c7a8(0x146)&&define[_0x58c7a8(0x147)]?define(['@univerjs-pro/live-share',_0x58c7a8(0x15f),_0x58c7a8(0x159),_0x58c7a8(0x131),_0x58c7a8(0x139),_0x58c7a8(0x138)],_0xe9d1cd):(_0x296337=typeof globalThis<'u'?globalThis:_0x296337||self,_0xe9d1cd(_0x296337[_0x58c7a8(0x14c)],_0x296337[_0x58c7a8(0x161)],_0x296337['UniverSheets'],_0x296337[_0x58c7a8(0x14d)],_0x296337[_0x58c7a8(0x150)],_0x296337['UniverCoreFacade']));}(this,function(_0x1eb9ca,_0x3f6a1a,_0x2f4f54,_0x51593f,_0x259d4b,_0x3e5b07){'use strict';const _0x20f96b=_0x4118;class _0x268daf extends _0x259d4b[_0x20f96b(0x13b)]{[_0x20f96b(0x152)](_0x38ea9d,_0x1d2620,_0x56578f,_0x57b0ff,_0xdd89d5){const _0x2dce06=_0x20f96b,_0x400f76=_0x38ea9d[_0x2dce06(0x132)](_0x1eb9ca['LiveShareController']),_0x855acd=_0x38ea9d[_0x2dce06(0x132)](_0x3f6a1a['IRenderManagerService']),_0x3add89=_0x1d2620[_0x2dce06(0x162)](),_0x16ef18=_0x1d2620[_0x2dce06(0x13c)](),_0x13c1d1=_0x400f76[_0x2dce06(0x144)](_0x3add89);(_0x13c1d1==null?void 0x0:_0x13c1d1[_0x2dce06(0x15e)]())!==_0x1eb9ca[_0x2dce06(0x130)][_0x2dce06(0x12f)]||(_0x56578f[_0x2dce06(0x156)]()!==_0x16ef18[_0x2dce06(0x156)]()&&this[_0x2dce06(0x136)][_0x2dce06(0x12e)](_0x2f4f54[_0x2dce06(0x160)]['id'],{'unitId':_0x3add89,'subUnitId':_0x56578f[_0x2dce06(0x156)]()}),!_0x855acd[_0x2dce06(0x157)](_0x3add89))||_0xdd89d5[_0x2dce06(0x13f)](_0x51593f[_0x2dce06(0x155)]['id'],{'unitId':_0x1d2620[_0x2dce06(0x162)](),'sheetId':_0x56578f[_0x2dce06(0x156)](),'sheetViewStartRow':_0x57b0ff['startRow'],'sheetViewStartColumn':_0x57b0ff[_0x2dce06(0x148)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x259d4b[_0x20f96b(0x13b)][_0x20f96b(0x142)](_0x268daf);class _0x5d72c2 extends _0x3e5b07[_0x20f96b(0x13a)]{[_0x20f96b(0x133)](){const _0x32a4bd=_0x20f96b;var _0x48d316,_0x4cb65b;const _0x4acfa3=this[_0x32a4bd(0x137)][_0x32a4bd(0x132)](_0x1eb9ca['LiveShareController']),_0x398e48=(_0x48d316=this[_0x32a4bd(0x14b)]())==null?void 0x0:_0x48d316[_0x32a4bd(0x163)]();if(!_0x398e48)throw new Error(_0x32a4bd(0x149));const _0x5aab5a=_0x4acfa3[_0x32a4bd(0x144)](_0x398e48);return(_0x4cb65b=_0x5aab5a==null?void 0x0:_0x5aab5a['getStatus']())!=null?_0x4cb65b:_0x1eb9ca[_0x32a4bd(0x130)][_0x32a4bd(0x15a)];}[_0x20f96b(0x153)](){const _0x36b1f3=_0x20f96b;var _0xe2e65a;const _0x154de9=this[_0x36b1f3(0x137)][_0x36b1f3(0x132)](_0x1eb9ca[_0x36b1f3(0x158)]),_0x4664b4=(_0xe2e65a=this[_0x36b1f3(0x14b)]())==null?void 0x0:_0xe2e65a[_0x36b1f3(0x163)]();if(!_0x4664b4)throw new Error(_0x36b1f3(0x149));const _0x2689ee=_0x154de9[_0x36b1f3(0x144)](_0x4664b4);if(!_0x2689ee)throw new Error(_0x36b1f3(0x151));_0x2689ee[_0x36b1f3(0x153)]();}[_0x20f96b(0x145)](){const _0x1b56af=_0x20f96b;var _0x34c32c;const _0x17722a=this[_0x1b56af(0x137)][_0x1b56af(0x132)](_0x1eb9ca[_0x1b56af(0x158)]),_0xffeb5b=(_0x34c32c=this[_0x1b56af(0x14b)]())==null?void 0x0:_0x34c32c[_0x1b56af(0x163)]();if(!_0xffeb5b)throw new Error(_0x1b56af(0x149));const _0x4faa36=_0x17722a[_0x1b56af(0x144)](_0xffeb5b);if(!_0x4faa36)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4faa36[_0x1b56af(0x145)]();}[_0x20f96b(0x164)](){const _0x38960b=_0x20f96b;var _0x5a2b5b;const _0x2f723d=this[_0x38960b(0x137)][_0x38960b(0x132)](_0x1eb9ca[_0x38960b(0x158)]),_0x437eda=(_0x5a2b5b=this[_0x38960b(0x14b)]())==null?void 0x0:_0x5a2b5b[_0x38960b(0x163)]();if(!_0x437eda)throw new Error('No\x20active\x20workbook\x20found.');const _0x1b99a9=_0x2f723d[_0x38960b(0x144)](_0x437eda);if(!_0x1b99a9)throw new Error(_0x38960b(0x151));_0x1b99a9[_0x38960b(0x13e)]();}[_0x20f96b(0x13d)](){const _0x3336b2=_0x20f96b;var _0x215e8d;const _0x20dc83=this['_injector']['get'](_0x1eb9ca[_0x3336b2(0x158)]),_0x2b5365=(_0x215e8d=this[_0x3336b2(0x14b)]())==null?void 0x0:_0x215e8d[_0x3336b2(0x163)]();if(!_0x2b5365)throw new Error(_0x3336b2(0x149));const _0x260b4=_0x20dc83['getLiveShareCoordinatorSync'](_0x2b5365);if(!_0x260b4)throw new Error(_0x3336b2(0x151));_0x260b4[_0x3336b2(0x13d)]();}}_0x3e5b07[_0x20f96b(0x13a)][_0x20f96b(0x142)](_0x5d72c2);class _0x2bba8f extends _0x3e5b07[_0x20f96b(0x15c)]{get[_0x20f96b(0x15d)](){return _0x1eb9ca['LiveShareStatus'];}}_0x3e5b07[_0x20f96b(0x15c)][_0x20f96b(0x142)](_0x2bba8f);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5f55b5,_0x39a8c8){const _0x30ed9e=_0x5a25,_0x2487be=_0x5f55b5();while(!![]){try{const _0x456e0d=-parseInt(_0x30ed9e(0x26d))/0x1*(parseInt(_0x30ed9e(0x22f))/0x2)+parseInt(_0x30ed9e(0x218))/0x3*(parseInt(_0x30ed9e(0x243))/0x4)+parseInt(_0x30ed9e(0x1ff))/0x5*(-parseInt(_0x30ed9e(0x279))/0x6)+-parseInt(_0x30ed9e(0x1b2))/0x7+-parseInt(_0x30ed9e(0x1a0))/0x8+parseInt(_0x30ed9e(0x1b3))/0x9+-parseInt(_0x30ed9e(0x220))/0xa*(-parseInt(_0x30ed9e(0x25c))/0xb);if(_0x456e0d===_0x39a8c8)break;else _0x2487be['push'](_0x2487be['shift']());}catch(_0x2bf6c2){_0x2487be['push'](_0x2487be['shift']());}}}(_0x3148,0x58a81),function(_0x21eeeb,_0x3f712a){const _0x31a4cd=_0x5a25;typeof exports=='object'&&typeof module<'u'?_0x3f712a(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==_0x31a4cd(0x1e4)&&define[_0x31a4cd(0x23b)]?define(['exports',_0x31a4cd(0x1f7),_0x31a4cd(0x1cf),_0x31a4cd(0x198),_0x31a4cd(0x1ee),'react',_0x31a4cd(0x1a8),_0x31a4cd(0x248),_0x31a4cd(0x24e),_0x31a4cd(0x1fd),'rxjs/operators',_0x31a4cd(0x1da)],_0x3f712a):(_0x21eeeb=typeof globalThis<'u'?globalThis:_0x21eeeb||self,_0x3f712a(_0x21eeeb[_0x31a4cd(0x210)]={},_0x21eeeb[_0x31a4cd(0x1b8)],_0x21eeeb['UniverUi'],_0x21eeeb[_0x31a4cd(0x1df)],_0x21eeeb[_0x31a4cd(0x1b5)],_0x21eeeb[_0x31a4cd(0x1df)],_0x21eeeb[_0x31a4cd(0x26a)],_0x21eeeb[_0x31a4cd(0x223)],_0x21eeeb[_0x31a4cd(0x1b9)],_0x21eeeb[_0x31a4cd(0x1fd)],_0x21eeeb['rxjs'][_0x31a4cd(0x1c6)],_0x21eeeb[_0x31a4cd(0x1ed)]));}(this,function(_0x196a2d,_0xf5f867,_0xb7a067,_0x54348f,_0xa9ec5f,_0x4428a5,_0x588196,_0x3bd55b,_0x3cec37,_0x283cf9,_0x2baa95,_0x3469ee){'use strict';const _0x4a5888=_0x5a25;var _0x1974ff=Object[_0x4a5888(0x1fa)],_0x516433=(_0x3aaaa3,_0x35836d,_0x20437c)=>_0x35836d in _0x3aaaa3?_0x1974ff(_0x3aaaa3,_0x35836d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20437c}):_0x3aaaa3[_0x35836d]=_0x20437c,_0x18c2c4=(_0x2538da,_0xa25b70,_0xeaf3ab)=>_0x516433(_0x2538da,typeof _0xa25b70!='symbol'?_0xa25b70+'':_0xa25b70,_0xeaf3ab);function _0x28360c({ref:_0x1b96b8,..._0x4e9615}){const _0x43a82b=_0x4a5888,{icon:_0x4ada5f,id:_0x2f8477,className:_0x3d91f5,extend:_0x2cf00c,..._0x3c2fe2}=_0x4e9615,_0x51a5bd=(_0x43a82b(0x274)+_0x2f8477+'\x20'+(_0x3d91f5||''))[_0x43a82b(0x1fc)](),_0x18d8c4=_0x4428a5[_0x43a82b(0x1e7)]('_'+_0x2bfc4a());return _0x161b5a(_0x4ada5f,''+_0x2f8477,{'defIds':_0x4ada5f[_0x43a82b(0x1bb)],'idSuffix':_0x18d8c4[_0x43a82b(0x1b6)]},{'ref':_0x1b96b8,'className':_0x51a5bd,..._0x3c2fe2},_0x2cf00c);}function _0x161b5a(_0xd1c576,_0x573e9c,_0x47f737,_0x25bcaf,_0x2d7963){const _0x592903=_0x4a5888;return _0x4428a5['createElement'](_0xd1c576[_0x592903(0x217)],{'key':_0x573e9c,..._0x5f27a0(_0xd1c576,_0x47f737,_0x2d7963),..._0x25bcaf},(_0x107f90(_0xd1c576,_0x47f737)[_0x592903(0x258)]||[])[_0x592903(0x27a)]((_0x3bc623,_0x2b7f19)=>_0x161b5a(_0x3bc623,_0x573e9c+'-'+_0xd1c576[_0x592903(0x217)]+'-'+_0x2b7f19,_0x47f737,void 0x0,_0x2d7963)));}function _0x5f27a0(_0x200f49,_0x12427f,_0x5891dc){const _0x2d6834=_0x4a5888,_0x5446bb={..._0x200f49[_0x2d6834(0x199)]};_0x5891dc!=null&&_0x5891dc[_0x2d6834(0x212)]&&_0x5446bb[_0x2d6834(0x224)]===_0x2d6834(0x212)&&(_0x5446bb[_0x2d6834(0x224)]=_0x5891dc[_0x2d6834(0x212)]),_0x200f49['tag']===_0x2d6834(0x269)&&_0x5446bb['id']&&(_0x5446bb['id']=_0x5446bb['id']+_0x12427f[_0x2d6834(0x23f)]),Object[_0x2d6834(0x1ea)](_0x5446bb)[_0x2d6834(0x263)](([_0x37553e,_0x295d29])=>{const _0x169425=_0x2d6834;_0x37553e===_0x169425(0x269)&&typeof _0x295d29==_0x169425(0x25b)&&(_0x5446bb[_0x37553e]=_0x295d29[_0x169425(0x191)](/url\(#(.*)\)/,'url(#$1'+_0x12427f[_0x169425(0x23f)]+')'));});const {defIds:_0x128a44}=_0x12427f;return!_0x128a44||_0x128a44['length']===0x0||(_0x200f49[_0x2d6834(0x217)]===_0x2d6834(0x25a)&&_0x5446bb[_0x2d6834(0x21c)]&&(_0x5446bb[_0x2d6834(0x21c)]=_0x5446bb[_0x2d6834(0x21c)]+_0x12427f[_0x2d6834(0x23f)]),Object[_0x2d6834(0x1ea)](_0x5446bb)[_0x2d6834(0x263)](([_0x16d890,_0x2b3f01])=>{const _0x231cbd=_0x2d6834;typeof _0x2b3f01==_0x231cbd(0x25b)&&(_0x5446bb[_0x16d890]=_0x2b3f01[_0x231cbd(0x191)](/url\(#(.*)\)/,_0x231cbd(0x1ab)+_0x12427f['idSuffix']+')'));})),_0x5446bb;}function _0x107f90(_0x433101,_0x255f8b){const _0x7ca758=_0x4a5888;var _0x16bf57;const {defIds:_0x4c97fc}=_0x255f8b;return!_0x4c97fc||_0x4c97fc['length']===0x0?_0x433101:_0x433101[_0x7ca758(0x217)]==='defs'&&((_0x16bf57=_0x433101[_0x7ca758(0x258)])!=null&&_0x16bf57[_0x7ca758(0x1ad)])?{..._0x433101,'children':_0x433101[_0x7ca758(0x258)][_0x7ca758(0x27a)](_0x49e624=>typeof _0x49e624[_0x7ca758(0x199)]['id']==_0x7ca758(0x25b)&&_0x4c97fc&&_0x4c97fc['includes'](_0x49e624[_0x7ca758(0x199)]['id'])?{..._0x49e624,'attrs':{..._0x49e624[_0x7ca758(0x199)],'id':_0x49e624['attrs']['id']+_0x255f8b[_0x7ca758(0x23f)]}}:_0x49e624)}:_0x433101;}function _0x2bfc4a(){const _0x18fbe9=_0x4a5888;return Math['random']()['toString'](0x24)[_0x18fbe9(0x225)](0x2,0x8);}_0x28360c[_0x4a5888(0x1d3)]='UniverIcon';const _0x25de9c={'tag':_0x4a5888(0x1a4),'attrs':{'xmlns':_0x4a5888(0x1e9),'fill':'none','viewBox':_0x4a5888(0x26e),'width':_0x4a5888(0x1d0),'height':_0x4a5888(0x1d0)},'children':[{'tag':_0x4a5888(0x1ce),'attrs':{'fill':_0x4a5888(0x1ba),'d':_0x4a5888(0x26b)}},{'tag':_0x4a5888(0x1ce),'attrs':{'fill':'currentColor','d':_0x4a5888(0x268),'fillRule':_0x4a5888(0x259),'clipRule':_0x4a5888(0x259)}}]},_0x1859c8=_0x4428a5[_0x4a5888(0x252)](function(_0x8728c0,_0x1e2cb5){const _0xb6ba89=_0x4a5888;return _0x4428a5[_0xb6ba89(0x239)](_0x28360c,Object[_0xb6ba89(0x1f6)]({},_0x8728c0,{'id':_0xb6ba89(0x24c),'ref':_0x1e2cb5,'icon':_0x25de9c}));});_0x1859c8[_0x4a5888(0x1d3)]=_0x4a5888(0x237);class _0x141ae extends _0xf5f867[_0x4a5888(0x216)]{constructor(){const _0xce5a74=_0x4a5888;super(...arguments),_0x18c2c4(this,'_sharedOperations',new Set()),_0x18c2c4(this,_0xce5a74(0x249),new Set());}[_0x4a5888(0x22c)](_0x5e4d99){const _0x1d473e=_0x4a5888;return this[_0x1d473e(0x19c)]['add'](_0x5e4d99),_0xf5f867['toDisposable'](()=>this[_0x1d473e(0x19c)][_0x1d473e(0x236)](_0x5e4d99));}[_0x4a5888(0x26f)](_0x16dc90){const _0x5489a4=_0x4a5888;return this[_0x5489a4(0x249)][_0x5489a4(0x23d)](_0x16dc90),_0xf5f867[_0x5489a4(0x1c0)](()=>this[_0x5489a4(0x249)][_0x5489a4(0x236)](_0x16dc90));}['shouldShareOperation'](_0x64a2b5){const _0x59c2b0=_0x4a5888;return this[_0x59c2b0(0x19c)][_0x59c2b0(0x215)](_0x64a2b5);}[_0x4a5888(0x246)](_0x45a34d){const _0xb77b5d=_0x4a5888;return Array[_0xb77b5d(0x19d)](this[_0xb77b5d(0x249)])[_0xb77b5d(0x27a)](_0x482202=>_0x482202(_0x45a34d));}}var _0x4778ad=Object['getOwnPropertyDescriptor'],_0x323f11=(_0x304382,_0x2ea866,_0x2b646d,_0x52dba3)=>{const _0x3fa67e=_0x4a5888;for(var _0x3d8822=_0x52dba3>0x1?void 0x0:_0x52dba3?_0x4778ad(_0x2ea866,_0x2b646d):_0x2ea866,_0x50d238=_0x304382[_0x3fa67e(0x1ad)]-0x1,_0x9239b2;_0x50d238>=0x0;_0x50d238--)(_0x9239b2=_0x304382[_0x50d238])&&(_0x3d8822=_0x9239b2(_0x3d8822)||_0x3d8822);return _0x3d8822;},_0x1a3176=(_0x56a252,_0x255d23)=>(_0x3e7865,_0x29162c)=>_0x255d23(_0x3e7865,_0x29162c,_0x56a252);_0x196a2d[_0x4a5888(0x271)]=class extends _0xf5f867[_0x4a5888(0x253)]{constructor(_0x327625,_0x189159,_0x8b24ab){const _0x501ac5=_0x4a5888;super(),_0x18c2c4(this,_0x501ac5(0x238),new Map()),(this['_univerInstanceService']=_0x327625,this[_0x501ac5(0x1d1)]=_0x189159,this[_0x501ac5(0x1cb)]=_0x8b24ab,this['_init']());}async[_0x4a5888(0x244)](_0x28f28d){const _0x525aee=_0x4a5888;return this[_0x525aee(0x238)]['has'](_0x28f28d)||await this[_0x525aee(0x21b)](_0x28f28d),this[_0x525aee(0x238)][_0x525aee(0x1d9)](_0x28f28d);}[_0x4a5888(0x200)](_0x5b2cf0){const _0x5de63a=_0x4a5888;var _0x3548be;return(_0x3548be=this[_0x5de63a(0x238)]['get'](_0x5b2cf0))!=null?_0x3548be:null;}[_0x4a5888(0x230)](){const _0x4d3be9=_0x4a5888;this[_0x4d3be9(0x1d5)][_0x4d3be9(0x221)](_0xf5f867[_0x4d3be9(0x201)][_0x4d3be9(0x1c3)])[_0x4d3be9(0x25e)](_0x2baa95[_0x4d3be9(0x196)](this[_0x4d3be9(0x240)]))['subscribe'](async _0x20cd1a=>{const _0x3b5ee8=_0x4d3be9,_0xf566e0=_0x20cd1a['getUnitId']();this[_0x3b5ee8(0x238)][_0x3b5ee8(0x215)](_0xf566e0)||this[_0x3b5ee8(0x21b)](_0xf566e0);}),this['_univerInstanceService'][_0x4d3be9(0x1bc)](_0xf5f867[_0x4d3be9(0x201)][_0x4d3be9(0x1c3)])[_0x4d3be9(0x25e)](_0x2baa95['takeUntil'](this[_0x4d3be9(0x240)]))[_0x4d3be9(0x24a)](_0x4ac732=>{const _0x157a3b=_0x4d3be9,_0x4dc807=_0x4ac732[_0x157a3b(0x241)](),_0x33fb32=this['_entities'][_0x157a3b(0x1d9)](_0x4dc807);_0x33fb32==null||_0x33fb32[_0x157a3b(0x194)]();});}async['_startLiveShareCoordinator'](_0x15fb8c){const _0x5d2c08=_0x4a5888,_0x242ebc=await this[_0x5d2c08(0x1cb)][_0x5d2c08(0x202)](_0x15fb8c),_0x142a46=this[_0x5d2c08(0x1d1)]['createInstance'](_0x196a2d[_0x5d2c08(0x1f9)],_0x15fb8c,_0x242ebc);return _0x142a46['init'](),this['_entities'][_0x5d2c08(0x1a3)](_0x15fb8c,_0x142a46),_0x142a46;}},_0x196a2d[_0x4a5888(0x271)]=_0x323f11([_0x1a3176(0x0,_0xf5f867[_0x4a5888(0x1d2)]),_0x1a3176(0x1,_0xf5f867['Inject'](_0xf5f867[_0x4a5888(0x242)])),_0x1a3176(0x2,_0xf5f867[_0x4a5888(0x1ca)](_0x3bd55b[_0x4a5888(0x1ef)]))],_0x196a2d[_0x4a5888(0x271)]);var _0x271e73=(_0x2e877c=>(_0x2e877c['OFFLINE']=_0x4a5888(0x278),_0x2e877c[_0x4a5888(0x27c)]='idle',_0x2e877c[_0x4a5888(0x257)]='following',_0x2e877c['NOT_FOLLOWING']=_0x4a5888(0x27f),_0x2e877c[_0x4a5888(0x22d)]='presenting',_0x2e877c))(_0x271e73||{});const _0x345767=_0x4a5888(0x1d4),_0x3879af=0xc8;_0x196a2d['LiveShareCoordinator']=class extends _0xf5f867[_0x4a5888(0x253)]{constructor(_0x110e4f,_0x2a3b18,_0x1a36d2,_0x531709,_0x44d37a){const _0x487246=_0x4a5888;super(),_0x18c2c4(this,'_status$',new _0x283cf9['BehaviorSubject'](_0x487246(0x1a7))),_0x18c2c4(this,_0x487246(0x214),this['_status$'][_0x487246(0x276)]()),_0x18c2c4(this,_0x487246(0x230),!0x1),_0x18c2c4(this,_0x487246(0x24b),null),_0x18c2c4(this,'_presenter',null),(this[_0x487246(0x266)]=_0x110e4f,this[_0x487246(0x1b0)]=_0x2a3b18,this[_0x487246(0x255)]=_0x1a36d2,this[_0x487246(0x272)]=_0x531709,this[_0x487246(0x25f)]=_0x44d37a);}get[_0x4a5888(0x264)](){const _0x22cee9=_0x4a5888;return this[_0x22cee9(0x1a1)][_0x22cee9(0x197)]();}['dispose'](){const _0x1ad510=_0x4a5888;var _0x53cc11;(_0x53cc11=this['_commandDisposable'])==null||_0x53cc11[_0x1ad510(0x194)](),this['_status$'][_0x1ad510(0x213)](_0x1ad510(0x1a7)),this[_0x1ad510(0x1a1)][_0x1ad510(0x20f)]();}[_0x4a5888(0x1d6)](){return this['_status'];}['init'](){const _0x4251bb=_0x4a5888;this['_init']||(this['_init']=!0x0,this[_0x4251bb(0x1b0)][_0x4251bb(0x193)][_0x4251bb(0x25e)](_0x2baa95[_0x4251bb(0x196)](this['dispose$']))[_0x4251bb(0x24a)](_0x535715=>{const _0x2039f2=_0x4251bb;switch(_0x535715){case _0x3bd55b[_0x2039f2(0x1d7)]['OFFLINE']:this[_0x2039f2(0x1c4)]();break;case _0x3bd55b[_0x2039f2(0x1d7)][_0x2039f2(0x275)]:this['_handleOnline']();break;}}),this[_0x4251bb(0x1b0)][_0x4251bb(0x262)][_0x4251bb(0x25e)](_0x2baa95[_0x4251bb(0x196)](this[_0x4251bb(0x240)]))[_0x4251bb(0x24a)](_0x1e3c3e=>{const _0x578808=_0x4251bb,{eventID:_0x1366d4}=_0x1e3c3e;switch(_0x1366d4){case _0x588196[_0x578808(0x24d)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x1e3c3e);break;case _0x588196[_0x578808(0x24d)][_0x578808(0x229)]:this[_0x578808(0x1f2)](_0x1e3c3e);break;case _0x588196['CollaborationEvent'][_0x578808(0x1dd)]:this['_handleTerminate']();break;case _0x588196[_0x578808(0x24d)][_0x578808(0x1d8)]:this[_0x578808(0x261)](_0x1e3c3e);break;}}));}[_0x4a5888(0x1eb)](){const _0x4231ff=_0x4a5888;this[_0x4231ff(0x1b0)][_0x4231ff(0x1dc)]({'eventID':_0x588196[_0x4231ff(0x24d)][_0x4231ff(0x219)],'data':{'unitID':this['_unitID'],'userID':this[_0x4231ff(0x1b0)][_0x4231ff(0x1ac)]()}},this[_0x4231ff(0x266)]);}[_0x4a5888(0x1b7)](){const _0x2ff631=_0x4a5888;this['_status']===_0x2ff631(0x1f4)&&(this['_status$'][_0x2ff631(0x213)](_0x2ff631(0x1a7)),this[_0x2ff631(0x1b0)]['send']({'eventID':_0x588196[_0x2ff631(0x24d)][_0x2ff631(0x1dd)],'data':{'unitID':this[_0x2ff631(0x266)]}},this['_unitID']));}[_0x4a5888(0x226)](){const _0x32e530=_0x4a5888;this[_0x32e530(0x264)]===_0x32e530(0x27f)&&(this[_0x32e530(0x1a1)][_0x32e530(0x213)]('following'),this[_0x32e530(0x1be)]());}['stopFollowing'](){const _0x2bc4a1=_0x4a5888;this['_status']===_0x2bc4a1(0x1cd)&&this[_0x2bc4a1(0x21f)]();}[_0x4a5888(0x27d)](_0x5d0640){const _0x5564d1=_0x4a5888,{presenter:_0x5a457a}=_0x5d0640[_0x5564d1(0x1a2)],_0x405f32=this['_collabSession'][_0x5564d1(0x1ac)]();this[_0x5564d1(0x1fe)]=_0x5a457a,_0x5a457a===_0x405f32?(this['_stopFollowing'](),this[_0x5564d1(0x192)]()):this['_status']!==_0x5564d1(0x27f)&&(this[_0x5564d1(0x1a6)](),this[_0x5564d1(0x1be)]());}['_fetchOperations'](){const _0x16998d=_0x4a5888,_0x38786b={'eventID':_0x588196[_0x16998d(0x24d)][_0x16998d(0x234)]};this[_0x16998d(0x1b0)][_0x16998d(0x1dc)](_0x38786b,this['_unitID']);}[_0x4a5888(0x23c)](){const _0x89384c=_0x4a5888;this[_0x89384c(0x1fe)]=null,this[_0x89384c(0x264)]!=='presenting'&&this[_0x89384c(0x22b)]();}[_0x4a5888(0x261)](_0x4ab0bf){const _0x3f5320=_0x4a5888;if(this['_status']==='following'&&this[_0x3f5320(0x1fe)]===_0x4ab0bf['data'][_0x3f5320(0x1e8)]){const _0x267482=_0x588196[_0x3f5320(0x1c1)](_0x4ab0bf[_0x3f5320(0x1a2)])[_0x3f5320(0x209)][_0x3f5320(0x1e6)]()[_0x3f5320(0x265)](_0x4ed2f4=>_0x4ed2f4['id']===_0x3cec37[_0x3f5320(0x21e)]['id']);if(_0x267482){const _0x2139ca=_0x267482[_0x3f5320(0x1e2)][_0x3f5320(0x1c9)],_0xc4a2e=_0x267482[_0x3f5320(0x1e2)]['sheet']['id'];setTimeout(()=>{const _0x2d86cb=_0x3f5320;this[_0x2d86cb(0x25f)][_0x2d86cb(0x1f1)](_0x3cec37[_0x2d86cb(0x250)]['id'],{'unitId':_0x2139ca,'subUnitId':_0xc4a2e},{'fromCollab':!0x0});});}}}[_0x4a5888(0x192)](){const _0x3fb7c4=_0x4a5888;this['_status$'][_0x3fb7c4(0x213)]('presenting');const _0x39df68=new Map(),_0x413201=this['_commandDisposable']=new _0xf5f867[(_0x3fb7c4(0x23a))]();_0x413201[_0x3fb7c4(0x23d)](_0xf5f867[_0x3fb7c4(0x1c0)](()=>{const _0x2066ca=_0x3fb7c4;_0x39df68['forEach'](_0x3e1a1b=>_0x3e1a1b[_0x2066ca(0x20f)]()),_0x39df68['clear']();})),_0x413201[_0x3fb7c4(0x23d)](this[_0x3fb7c4(0x25f)][_0x3fb7c4(0x260)](_0x2a1920=>{const _0x1f8d56=_0x3fb7c4;var _0x18a280;if(_0x2a1920[_0x1f8d56(0x267)]!==_0xf5f867[_0x1f8d56(0x1e3)][_0x1f8d56(0x254)]||!this[_0x1f8d56(0x272)]['shouldShareOperation'](_0x2a1920['id']))return;const {id:_0x58f470}=_0x2a1920;let _0x5c6df0;_0x39df68[_0x1f8d56(0x215)](_0x58f470)?_0x5c6df0=_0x39df68[_0x1f8d56(0x1d9)](_0x58f470):(_0x5c6df0=new _0x283cf9[(_0x1f8d56(0x1af))](),_0x39df68[_0x1f8d56(0x1a3)](_0x58f470,_0x5c6df0),_0x5c6df0[_0x1f8d56(0x25e)](_0x2baa95[_0x1f8d56(0x21d)]((_0x18a280=this[_0x1f8d56(0x255)][_0x1f8d56(0x1c5)](_0x345767))!=null?_0x18a280:_0x3879af,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1f8d56(0x24a)](_0x51a681=>{const _0x17d3ad=_0x1f8d56;this[_0x17d3ad(0x1b0)]['send']({'eventID':_0x588196['CollaborationEvent'][_0x17d3ad(0x229)],'data':{'unitID':this[_0x17d3ad(0x266)],'operations':{[_0x51a681['id']]:{'id':_0x51a681['id'],'params':JSON[_0x17d3ad(0x27b)](_0x51a681['params'])}}}},this[_0x17d3ad(0x266)]);})),_0x5c6df0[_0x1f8d56(0x213)](_0x2a1920);})),this[_0x3fb7c4(0x272)]['getInitialStates'](this[_0x3fb7c4(0x266)])[_0x3fb7c4(0x263)](_0x3393f7=>this[_0x3fb7c4(0x1b0)]['send']({'eventID':_0x588196[_0x3fb7c4(0x24d)][_0x3fb7c4(0x229)],'data':{'unitID':this['_unitID'],'operations':{[_0x3393f7['id']]:{'id':_0x3393f7['id'],'params':JSON[_0x3fb7c4(0x27b)](_0x3393f7[_0x3fb7c4(0x1e2)])}}}},this['_unitID']));}[_0x4a5888(0x1a6)](){const _0x5f2df1=_0x4a5888;var _0x2dc24b;this['_status$'][_0x5f2df1(0x213)](_0x5f2df1(0x1a7)),(_0x2dc24b=this[_0x5f2df1(0x24b)])==null||_0x2dc24b[_0x5f2df1(0x194)](),this['_commandDisposable']=null;}[_0x4a5888(0x1be)](){const _0x33f4be=_0x4a5888;var _0x51deab;(_0x51deab=this[_0x33f4be(0x24b)])==null||_0x51deab['dispose'](),this[_0x33f4be(0x1a1)][_0x33f4be(0x213)](_0x33f4be(0x1cd));}[_0x4a5888(0x22b)](){const _0x311285=_0x4a5888;var _0x4c6835;this[_0x311285(0x1a1)][_0x311285(0x213)](_0x311285(0x1a7)),(_0x4c6835=this[_0x311285(0x24b)])==null||_0x4c6835[_0x311285(0x194)](),this[_0x311285(0x24b)]=null;}[_0x4a5888(0x21f)](){const _0xea0523=_0x4a5888;var _0x53ce08;this['_status$'][_0xea0523(0x213)](_0xea0523(0x27f)),(_0x53ce08=this[_0xea0523(0x24b)])==null||_0x53ce08[_0xea0523(0x194)]();}[_0x4a5888(0x1f2)](_0x48105a){const _0x5a382b=_0x4a5888;if(['presenting',_0x5a382b(0x27f),_0x5a382b(0x278)][_0x5a382b(0x270)](this[_0x5a382b(0x264)])||!_0x48105a[_0x5a382b(0x1a2)]['presenter']||_0x48105a['data'][_0x5a382b(0x27e)]===this[_0x5a382b(0x1b0)][_0x5a382b(0x1ac)]())return;this['_status']===_0x5a382b(0x1a7)&&this['_startFollowing']();const _0x4d8611=_0x48105a[_0x5a382b(0x1a2)][_0x5a382b(0x207)];Object[_0x5a382b(0x245)](_0x4d8611)['forEach'](_0xbd79a5=>{const _0x50bd7b=_0x5a382b;this[_0x50bd7b(0x25f)][_0x50bd7b(0x1f1)](_0xbd79a5['id'],_0xbd79a5[_0x50bd7b(0x1e2)]?JSON[_0x50bd7b(0x1aa)](_0xbd79a5[_0x50bd7b(0x1e2)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x32a9af=_0x4a5888;var _0xede648;this[_0x32a9af(0x1a1)][_0x32a9af(0x213)](_0x32a9af(0x278)),(_0xede648=this[_0x32a9af(0x24b)])==null||_0xede648[_0x32a9af(0x194)]();}[_0x4a5888(0x1e5)](){const _0x34036e=_0x4a5888;this[_0x34036e(0x1a1)][_0x34036e(0x213)](_0x34036e(0x1a7)),this[_0x34036e(0x1f8)]();}},_0x196a2d[_0x4a5888(0x1f9)]=_0x323f11([_0x1a3176(0x2,_0xf5f867[_0x4a5888(0x231)]),_0x1a3176(0x3,_0xf5f867[_0x4a5888(0x1ca)](_0x141ae)),_0x1a3176(0x4,_0xf5f867[_0x4a5888(0x1b1)])],_0x196a2d['LiveShareCoordinator']);function _0x3da40e(){const _0x2febdf=_0x4a5888,_0x4a658f=_0xb7a067[_0x2febdf(0x227)](_0x196a2d[_0x2febdf(0x271)]),_0x5755c1=_0xb7a067[_0x2febdf(0x227)](_0xf5f867['IUniverInstanceService']),_0x2dd186=_0xb7a067[_0x2febdf(0x251)](()=>_0x5755c1['getCurrentTypeOfUnit$'](_0xf5f867[_0x2febdf(0x201)][_0x2febdf(0x1c3)]),void 0x0,!0x1,[]),[_0x198f78,_0x2f7928]=_0x4428a5[_0x2febdf(0x1f3)](null),[_0xd7d4d0,_0x2172af]=_0x4428a5[_0x2febdf(0x1f3)](_0x271e73[_0x2febdf(0x27c)]),_0x4ea935=_0x4428a5['useRef'](null);return _0x4428a5['useEffect'](()=>(_0x2dd186&&_0x4a658f[_0x2febdf(0x244)](_0x2dd186[_0x2febdf(0x241)]())[_0x2febdf(0x195)](_0xcc668d=>{const _0x2ab1fc=_0x2febdf;_0x2f7928(_0xcc668d),_0x4ea935[_0x2ab1fc(0x1b6)]=_0xcc668d[_0x2ab1fc(0x214)]['subscribe'](_0x316030=>{_0x2172af(_0x316030);});}),()=>{const _0x298bff=_0x2febdf;var _0x3dc6e2;(_0x3dc6e2=_0x4ea935['current'])==null||_0x3dc6e2['unsubscribe'](),_0x4ea935[_0x298bff(0x1b6)]=null;}),[_0x2dd186,_0x4a658f]),_0x198f78?_0x54348f[_0x2febdf(0x19e)](_0xa9ec5f[_0x2febdf(0x1b4)],{'align':_0x2febdf(0x208),'disabled':_0xd7d4d0===_0x271e73[_0x2febdf(0x1e1)],'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':_0x54348f[_0x2febdf(0x19e)](_0x95ae6a,{'status':_0xd7d4d0,'coordinator':_0x198f78}),'children':_0x54348f[_0x2febdf(0x19e)](_0x2febdf(0x222),{'className':_0xa9ec5f[_0x2febdf(0x26c)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xd7d4d0===_0x271e73[_0x2febdf(0x1e1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xd7d4d0!==_0x271e73['OFFLINE']}),'type':_0x2febdf(0x222),'children':_0x54348f[_0x2febdf(0x19e)](_0x1859c8,{'className':_0x2febdf(0x19b)})})}):null;}function _0x95ae6a(_0x5da49b){const _0x594654=_0x4a5888,{status:_0x4c7f0b,coordinator:_0x321346}=_0x5da49b;switch(_0x4c7f0b){case _0x271e73[_0x594654(0x27c)]:return _0x54348f[_0x594654(0x19e)](_0x1e3419,{'coordinator':_0x321346});case _0x271e73[_0x594654(0x257)]:return _0x54348f['jsx'](_0x5d66ff,{'coordinator':_0x321346});case _0x271e73[_0x594654(0x211)]:return _0x54348f[_0x594654(0x19e)](_0x33efe6,{'coordinator':_0x321346});case _0x271e73[_0x594654(0x1e1)]:return _0x54348f[_0x594654(0x19e)](_0x2d75bf,{});case _0x271e73[_0x594654(0x22d)]:return _0x54348f[_0x594654(0x19e)](_0x93d809,{'coordinator':_0x321346});default:return null;}}function _0x1e3419(_0x128203){const _0x51df70=_0x4a5888,{coordinator:_0x59061f}=_0x128203;return _0x54348f['jsxs'](_0x54348f[_0x51df70(0x1cc)],{'children':[_0x54348f[_0x51df70(0x19e)](_0x51df70(0x22a),{'className':_0x51df70(0x204),'children':_0x51df70(0x22e)}),_0x54348f[_0x51df70(0x19e)](_0xa9ec5f[_0x51df70(0x1bd)],{'onClick':()=>_0x59061f[_0x51df70(0x1eb)](),'children':_0x51df70(0x206)})]});}function _0x5d66ff(_0x83ae48){const _0x100444=_0x4a5888,{coordinator:_0x3c1f6d}=_0x83ae48;return _0x54348f[_0x100444(0x233)](_0x54348f[_0x100444(0x1cc)],{'children':[_0x54348f[_0x100444(0x19e)](_0x100444(0x22a),{'className':_0x100444(0x204),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x54348f[_0x100444(0x19e)](_0xa9ec5f[_0x100444(0x1bd)],{'onClick':()=>_0x3c1f6d['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x33efe6(_0x4275df){const _0x2e5eaa=_0x4a5888,{coordinator:_0x4e59b2}=_0x4275df;return _0x54348f[_0x2e5eaa(0x233)](_0x54348f[_0x2e5eaa(0x1cc)],{'children':[_0x54348f[_0x2e5eaa(0x19e)](_0x2e5eaa(0x22a),{'className':_0x2e5eaa(0x204),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x54348f['jsx'](_0xa9ec5f[_0x2e5eaa(0x1bd)],{'variant':_0x2e5eaa(0x23e),'onClick':()=>_0x4e59b2[_0x2e5eaa(0x226)](),'children':_0x2e5eaa(0x1f5)})]});}function _0x93d809(_0x2f0864){const _0x53845b=_0x4a5888,{coordinator:_0x406e6b}=_0x2f0864;return _0x54348f[_0x53845b(0x233)](_0x54348f[_0x53845b(0x1cc)],{'children':[_0x54348f['jsx'](_0x53845b(0x22a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x54348f[_0x53845b(0x19e)](_0xa9ec5f['Button'],{'variant':_0x53845b(0x19a),'onClick':()=>_0x406e6b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x2d75bf(){const _0x3af434=_0x4a5888;return _0x54348f[_0x3af434(0x19e)](_0x54348f[_0x3af434(0x1cc)],{'children':_0x3af434(0x273)});}var _0x2cac4f=Object[_0x4a5888(0x1db)],_0x296f4f=(_0xced252,_0x55948e,_0x2258d0,_0x4f345b)=>{for(var _0x7fe14d=_0x4f345b>0x1?void 0x0:_0x4f345b?_0x2cac4f(_0x55948e,_0x2258d0):_0x55948e,_0x2292d6=_0xced252['length']-0x1,_0x1f988a;_0x2292d6>=0x0;_0x2292d6--)(_0x1f988a=_0xced252[_0x2292d6])&&(_0x7fe14d=_0x1f988a(_0x7fe14d)||_0x7fe14d);return _0x7fe14d;},_0x55b184=(_0x180bcc,_0x256318)=>(_0x34867d,_0x4540be)=>_0x256318(_0x34867d,_0x4540be,_0x180bcc);_0x196a2d['DesktopLiveShareController']=class extends _0xf5f867['Disposable']{constructor(_0x1888b7,_0x18e51f){const _0x563ac7=_0x4a5888;super(),this[_0x563ac7(0x1d1)]=_0x1888b7,this[_0x563ac7(0x20e)]=_0x18e51f,this[_0x563ac7(0x1e0)]();}['_mountLiveShare'](){const _0x305bed=_0x4a5888;this[_0x305bed(0x1c2)](this[_0x305bed(0x20e)][_0x305bed(0x20a)](_0xb7a067['BuiltInUIPart'][_0x305bed(0x1c7)],()=>_0xb7a067[_0x305bed(0x1ae)](_0x3da40e,this['_injector'])));}},_0x196a2d[_0x4a5888(0x1f0)]=_0x296f4f([_0x55b184(0x0,_0xf5f867[_0x4a5888(0x1ca)](_0xf5f867['Injector'])),_0x55b184(0x1,_0xb7a067[_0x4a5888(0x1de)])],_0x196a2d['DesktopLiveShareController']);const _0x5bb892=_0x4a5888(0x277),_0x2ecd42={};var _0x1d088d=Object['getOwnPropertyDescriptor'],_0x315325=(_0x5c18e3,_0x5429e2,_0x3fdbc5,_0x5b0f98)=>{const _0x2e0643=_0x4a5888;for(var _0x3c7dd7=_0x5b0f98>0x1?void 0x0:_0x5b0f98?_0x1d088d(_0x5429e2,_0x3fdbc5):_0x5429e2,_0x3a8db9=_0x5c18e3[_0x2e0643(0x1ad)]-0x1,_0x1f6a59;_0x3a8db9>=0x0;_0x3a8db9--)(_0x1f6a59=_0x5c18e3[_0x3a8db9])&&(_0x3c7dd7=_0x1f6a59(_0x3c7dd7)||_0x3c7dd7);return _0x3c7dd7;},_0x533e65=(_0x1ba8e4,_0x310936)=>(_0x3e8b54,_0x2ce41e)=>_0x310936(_0x3e8b54,_0x2ce41e,_0x1ba8e4);let _0x2d0fcb=class extends _0xf5f867[_0x4a5888(0x216)]{constructor(_0x112e92){const _0x1b7d48=_0x4a5888;super(),this[_0x1b7d48(0x272)]=_0x112e92,this[_0x1b7d48(0x230)]();}[_0x4a5888(0x230)](){const _0x450d3a=_0x4a5888;[_0x3469ee[_0x450d3a(0x232)]['id'],_0x3469ee[_0x450d3a(0x1bf)]['id'],_0x3cec37[_0x450d3a(0x250)]['id']][_0x450d3a(0x263)](_0x3a473a=>{const _0x4a460e=_0x450d3a;this[_0x4a460e(0x1c2)](this[_0x4a460e(0x272)][_0x4a460e(0x22c)](_0x3a473a));});}};_0x2d0fcb=_0x315325([_0x533e65(0x0,_0xf5f867['Inject'](_0x141ae))],_0x2d0fcb);var _0x304034=Object['defineProperty'],_0x4a92ed=Object[_0x4a5888(0x1db)],_0x35fb26=(_0x1a5e75,_0x21347b,_0x3d3cdb)=>_0x21347b in _0x1a5e75?_0x304034(_0x1a5e75,_0x21347b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d3cdb}):_0x1a5e75[_0x21347b]=_0x3d3cdb,_0x3fbf4c=(_0x2a8ae9,_0x3aa518,_0x3f595a,_0x55481d)=>{const _0x2650ad=_0x4a5888;for(var _0x2814a7=_0x55481d>0x1?void 0x0:_0x55481d?_0x4a92ed(_0x3aa518,_0x3f595a):_0x3aa518,_0x16a442=_0x2a8ae9[_0x2650ad(0x1ad)]-0x1,_0x1338db;_0x16a442>=0x0;_0x16a442--)(_0x1338db=_0x2a8ae9[_0x16a442])&&(_0x2814a7=_0x1338db(_0x2814a7)||_0x2814a7);return _0x2814a7;},_0x31aeba=(_0x55f4d0,_0x3c6901)=>(_0x3a0420,_0x3df1f0)=>_0x3c6901(_0x3a0420,_0x3df1f0,_0x55f4d0),_0x2e4bb1=(_0x2156d5,_0x28a604,_0x5ebf43)=>_0x35fb26(_0x2156d5,typeof _0x28a604!=_0x4a5888(0x228)?_0x28a604+'':_0x28a604,_0x5ebf43);const _0x5cc5b8='UNIVER_LIVE_SHARE_PLUGIN';_0x196a2d[_0x4a5888(0x247)]=class extends _0xf5f867[_0x4a5888(0x21a)]{constructor(_0x3677c6=_0x2ecd42,_0x129d06,_0x2f0eba){const _0x430c73=_0x4a5888;super(),this['_config']=_0x3677c6,this[_0x430c73(0x1d1)]=_0x129d06,this['_configService']=_0x2f0eba;const {..._0x181169}=_0xf5f867[_0x430c73(0x19f)]({},_0x2ecd42,this[_0x430c73(0x235)]);this[_0x430c73(0x255)][_0x430c73(0x205)](_0x5bb892,_0x181169);}[_0x4a5888(0x1c8)](){const _0x29832e=_0x4a5888;_0xf5f867['registerDependencies'](this[_0x29832e(0x1d1)],_0xf5f867[_0x29832e(0x1ec)]([[_0x141ae],[_0x196a2d[_0x29832e(0x271)]],[_0x2d0fcb],[_0x196a2d[_0x29832e(0x1f0)]]],this['_config'][_0x29832e(0x25d)])),_0xf5f867[_0x29832e(0x256)](this['_injector'],[[_0x2d0fcb]]);}[_0x4a5888(0x203)](){const _0x5c41db=_0x4a5888;_0xf5f867[_0x5c41db(0x256)](this['_injector'],[[_0x196a2d[_0x5c41db(0x1f0)]]]);}},_0x2e4bb1(_0x196a2d['UniverLiveSharePlugin'],_0x4a5888(0x267),_0xf5f867[_0x4a5888(0x201)][_0x4a5888(0x20d)]),_0x2e4bb1(_0x196a2d[_0x4a5888(0x247)],'pluginName',_0x5cc5b8),_0x196a2d[_0x4a5888(0x247)]=_0x3fbf4c([_0xf5f867[_0x4a5888(0x20c)](_0x3bd55b[_0x4a5888(0x1fb)]),_0x31aeba(0x1,_0xf5f867['Inject'](_0xf5f867['Injector'])),_0x31aeba(0x2,_0xf5f867[_0x4a5888(0x231)])],_0x196a2d[_0x4a5888(0x247)]),_0x196a2d[_0x4a5888(0x1a5)]=_0x3da40e,_0x196a2d[_0x4a5888(0x1a9)]=_0x141ae,_0x196a2d['LiveShareStatus']=_0x271e73,Object['defineProperty'](_0x196a2d,Symbol[_0x4a5888(0x24f)],{'value':_0x4a5888(0x20b)});}));function _0x5a25(_0x4c7dd5,_0x148c6a){const _0x31488b=_0x3148();return _0x5a25=function(_0x5a25e9,_0x27ae90){_0x5a25e9=_0x5a25e9-0x191;let _0x210708=_0x31488b[_0x5a25e9];return _0x210708;},_0x5a25(_0x4c7dd5,_0x148c6a);}function _0x3148(){const _0xefcc5=['_uiPartsService','complete','UniverProLiveShare','NOT_FOLLOWING','colorChannel1','next','status$','has','Disposable','tag','3AqTXnk','LIVESHARE_REQUEST_HOST','Plugin','_startLiveShareCoordinator','xlink:href','throttleTime','InsertSheetMutation','_stopFollowing','410OFrZRz','getTypeOfUnitAdded$','button','UniverProCollaborationClient','fill','substring','startFollowing','useDependency','symbol','LIVESHARE_OPERATION','div','_beIdle','registerSharedOperation','PRESENTING','Present\x20this\x20document','330ayLqwd','_init','IConfigService','SetZoomRatioOperation','jsxs','LIVESHARE_FETCH_OPERATIONS','_config','delete','LiveShareIcon','_entities','createElement','DisposableCollection','amd','_handleTerminate','add','text','idSuffix','dispose$','getUnitId','Injector','874704EYhEqt','getLiveShareCoordinator','values','getInitialStates','UniverLiveSharePlugin','@univerjs-pro/collaboration-client','_reporters','subscribe','_commandDisposable','live-share-icon','CollaborationEvent','@univerjs/sheets','toStringTag','SetWorksheetActiveOperation','useObservable','forwardRef','RxDisposable','OPERATION','_configService','touchDependencies','FOLLOWING','children','evenodd','use','string','180477HxmRcr','override','pipe','_commandService','onCommandExecuted','_handleNewChangeSets','event$','forEach','_status','find','_unitID','type','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','mask','UniverProCollaboration','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','clsx','732OxPJdt','0\x200\x2017\x2017','registerInitialStateReporter','includes','LiveShareController','_liveShareService','You\x27are\x20offline.','univerjs-icon\x20univerjs-icon-','ONLINE','asObservable','live-share.config','offline','2004mIbmZv','map','stringify','IDLE','_handleNewHost','presenter','not-following','replace','_startPresenting','sessionStatus$','dispose','then','takeUntil','getValue','react/jsx-runtime','attrs','default','univer-size-4','_sharedOperations','from','jsx','merge','927264lCJrTk','_status$','data','set','svg','LiveShare','_stopPresenting','idle','@univerjs-pro/collaboration','LiveShareService','parse','url(#$1','getMemberID','length','connectInjector','Subject','_collabSession','ICommandService','1913296BzpcWN','4089600TSlaxe','Dropdown','UniverDesign','current','stopPresenting','UniverCore','UniverSheets','currentColor','defIds','getTypeOfUnitDisposed$','Button','_startFollowing','SetScrollOperation','toDisposable','parseProtocolChangeset','disposeWithMe','UNIVER_SHEET','_handleOffline','getConfig','operators','HEADER_MENU','onStarting','unitId','Inject','_collabSessionService','Fragment','following','path','@univerjs/ui','1em','_injector','IUniverInstanceService','displayName','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','getStatus','SessionStatus','NEW_CHANGESETS','get','@univerjs/sheets-ui','getOwnPropertyDescriptor','send','LIVESHARE_TERMINATE','IUIPartsService','React','_mountLiveShare','OFFLINE','params','CommandType','function','_handleOnline','reverse','useRef','memberID','http://www.w3.org/2000/svg','entries','tryStartPresenting','mergeOverrideWithDependencies','UniverSheetsUi','@univerjs/design','CollaborationSessionService','DesktopLiveShareController','executeCommand','_handleOperation','useState','presenting','Start\x20following','assign','@univerjs/core','_fetchOperations','LiveShareCoordinator','defineProperty','UniverCollaborationClientPlugin','trim','rxjs','_presenter','7075oAspXf','getLiveShareCoordinatorSync','UniverInstanceType','requireSession','onRendered','univer-mb-3\x20univer-w-full\x20univer-text-sm','setConfig','Start','operations','end','mutations','registerComponent','Module','DependentOn','UNIVER_UNKNOWN'];_0x3148=function(){return _0xefcc5;};return _0x3148();}
|
|
1
|
+
function _0x5b39(){const _0x40d6f2=['LiveShareService','LiveShareIcon','_startFollowing','replace','colorChannel1','react','useRef','You\x27re\x20following\x20the\x20presenter','8904550wxNCjn','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','idSuffix','_handleOnline','DisposableCollection','includes','onStarting','_collabSessionService','useState','getInitialStates','SetWorksheetActiveOperation','mutations','connectInjector','_init','svg','path','data','Button','fill','get','_handleTerminate','attrs','presenting','current','CommandType','getTypeOfUnitAdded$','0\x200\x2017\x2017','add','UniverProCollaborationClient','_mountLiveShare','UniverInstanceType','getStatus','OFFLINE','toDisposable','_injector','LiveShareStatus','end','getOwnPropertyDescriptor','SessionStatus','_unitID','ONLINE','SetZoomRatioOperation','mask','Injector','send','IUniverInstanceService','react/jsx-runtime','2472348qUqGDB','Inject','getMemberID','Disposable','type','@univerjs/ui','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','rxjs/operators','length','offline','Dropdown','_uiPartsService','CollaborationSessionService','presenter','@univerjs-pro/collaboration','defs','tryStartPresenting','UniverCollaborationClientPlugin','Present\x20this\x20document','_handleNewHost','2594320rzfeww','createElement','_entities','subscribe','Start','Stop\x20following','init','disposeWithMe','shouldShareOperation','requireSession','_fetchOperations','jsxs','forwardRef','pluginName','_handleNewChangeSets','tag','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','text','startFollowing','unsubscribe','LIVESHARE_FETCH_OPERATIONS','dispose','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LiveShareCoordinator','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','@univerjs-pro/collaboration-client','forEach','children','LIVESHARE_OPERATION','dispose$','UniverUi','executeCommand','stopPresenting','map','complete','sessionStatus$','function','_commandDisposable','_status','React','4lOuQTe','string','not-following','following','idle','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareController','UNIVER_SHEET','948846zlupfN','exports','InsertSheetMutation','parseProtocolChangeset','_collabSession','getTypeOfUnitDisposed$','UniverLiveSharePlugin','@univerjs/design','http://www.w3.org/2000/svg','live-share-icon','jsx','stopFollowing','PRESENTING','BehaviorSubject','_commandService','params','CollaborationEvent','_presenter','getValue','setConfig','You\x27are\x20offline.','has','LIVESHARE_TERMINATE','NOT_FOLLOWING','takeUntil','use','getLiveShareCoordinator','_handleOffline','univer-size-4','2260384oNVuAW','IConfigService','useObservable','RxDisposable','operations','FOLLOWING','_reporters','live-share.config','_liveShareService','displayName','stringify','_univerInstanceService','entries','touchDependencies','currentColor','set','1em','SetScrollOperation','defineProperty','21ASoUSy','@univerjs/sheets','DesktopLiveShareController','ICommandService','then','unitId','OPERATION','IDLE','getUnitId','amd','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_beIdle','pipe','Start\x20following','status$','UniverProCollaboration','UniverSheetsUi','BuiltInUIPart','_config','_status$','sheet','_handleOperation','rxjs','_sharedOperations','_stopFollowing','event$','onRendered','UNIVER_LIVE_SHARE_PLUGIN','useDependency','delete','onCommandExecuted','trim','@univerjs/sheets-ui','HEADER_MENU','next','div','UniverSheets','find','object','defIds','operators','Fragment','LIVESHARE_NEW_HOST','Plugin','7722702aMYpSI','DependentOn','reverse','_configService','IUIPartsService','registerComponent','@univerjs/core','UniverIcon','UniverDesign','1747631eFyxKL','button','_stopPresenting','registerSharedOperation','NEW_CHANGESETS'];_0x5b39=function(){return _0x40d6f2;};return _0x5b39();}function _0x1903(_0x3732c3,_0x6aeb50){const _0x5b395d=_0x5b39();return _0x1903=function(_0x1903bd,_0x544756){_0x1903bd=_0x1903bd-0x6a;let _0x13767f=_0x5b395d[_0x1903bd];return _0x13767f;},_0x1903(_0x3732c3,_0x6aeb50);}(function(_0x1bfe47,_0x4ffefb){const _0x394fab=_0x1903,_0x1ff624=_0x1bfe47();while(!![]){try{const _0x3f1d4f=parseInt(_0x394fab(0x9c))/0x1+-parseInt(_0x394fab(0x117))/0x2*(parseInt(_0x394fab(0x11f))/0x3)+-parseInt(_0x394fab(0x13c))/0x4+parseInt(_0x394fab(0xa9))/0x5+parseInt(_0x394fab(0xd9))/0x6+-parseInt(_0x394fab(0x14f))/0x7*(parseInt(_0x394fab(0xee))/0x8)+-parseInt(_0x394fab(0x93))/0x9;if(_0x3f1d4f===_0x4ffefb)break;else _0x1ff624['push'](_0x1ff624['shift']());}catch(_0x29873c){_0x1ff624['push'](_0x1ff624['shift']());}}}(_0x5b39,0xdea77),function(_0x3288f9,_0x2737c8){const _0x94c6c3=_0x1903;typeof exports==_0x94c6c3(0x8d)&&typeof module<'u'?_0x2737c8(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==_0x94c6c3(0x113)&&define[_0x94c6c3(0x6e)]?define([_0x94c6c3(0x120),_0x94c6c3(0x99),_0x94c6c3(0xde),_0x94c6c3(0xd8),_0x94c6c3(0x126),_0x94c6c3(0xa6),_0x94c6c3(0xe8),_0x94c6c3(0x108),_0x94c6c3(0x150),'rxjs',_0x94c6c3(0xe1),_0x94c6c3(0x87)],_0x2737c8):(_0x3288f9=typeof globalThis<'u'?globalThis:_0x3288f9||self,_0x2737c8(_0x3288f9['UniverProLiveShare']={},_0x3288f9['UniverCore'],_0x3288f9[_0x94c6c3(0x10d)],_0x3288f9[_0x94c6c3(0x116)],_0x3288f9[_0x94c6c3(0x9b)],_0x3288f9['React'],_0x3288f9[_0x94c6c3(0x76)],_0x3288f9[_0x94c6c3(0xc6)],_0x3288f9[_0x94c6c3(0x8b)],_0x3288f9[_0x94c6c3(0x7d)],_0x3288f9['rxjs'][_0x94c6c3(0x8f)],_0x3288f9[_0x94c6c3(0x77)]));}(this,function(_0x262252,_0x3cb17c,_0x404ca8,_0x265310,_0x51144a,_0x4a444c,_0x17a8ce,_0x3c93ca,_0x4db795,_0x2edef2,_0x18ed04,_0x1ac73e){'use strict';const _0x5f25e0=_0x1903;var _0x545e73=Object['defineProperty'],_0x24ccef=(_0x2776c4,_0x474e49,_0x2d95e9)=>_0x474e49 in _0x2776c4?_0x545e73(_0x2776c4,_0x474e49,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d95e9}):_0x2776c4[_0x474e49]=_0x2d95e9,_0x529b2e=(_0x33313b,_0x277aec,_0x767cf)=>_0x24ccef(_0x33313b,typeof _0x277aec!=_0x5f25e0(0xdf)?_0x277aec+'':_0x277aec,_0x767cf);function _0x2ffd11({ref:_0x2daaf6,..._0x2cdbf8}){const _0x350f1e=_0x5f25e0,{icon:_0x598827,id:_0x4bfd75,className:_0x4cbaa6,extend:_0x36e689,..._0x3d3ea1}=_0x2cdbf8,_0x4426eb=('univerjs-icon\x20univerjs-icon-'+_0x4bfd75+'\x20'+(_0x4cbaa6||''))[_0x350f1e(0x86)](),_0x1c2336=_0x4a444c['useRef']('_'+_0x3dcca3());return _0x253cfc(_0x598827,''+_0x4bfd75,{'defIds':_0x598827[_0x350f1e(0x8e)],'idSuffix':_0x1c2336['current']},{'ref':_0x2daaf6,'className':_0x4426eb,..._0x3d3ea1},_0x36e689);}function _0x253cfc(_0x451c54,_0x5576b8,_0x3923d0,_0x58b52e,_0x2ff4d0){const _0x1ce6aa=_0x5f25e0;return _0x4a444c[_0x1ce6aa(0xef)](_0x451c54[_0x1ce6aa(0xfd)],{'key':_0x5576b8,..._0x4fac99(_0x451c54,_0x3923d0,_0x2ff4d0),..._0x58b52e},(_0x3cf7fe(_0x451c54,_0x3923d0)[_0x1ce6aa(0x10a)]||[])[_0x1ce6aa(0x110)]((_0x5dab10,_0x2f74ba)=>_0x253cfc(_0x5dab10,_0x5576b8+'-'+_0x451c54[_0x1ce6aa(0xfd)]+'-'+_0x2f74ba,_0x3923d0,void 0x0,_0x2ff4d0)));}function _0x4fac99(_0x48f7a3,_0x4aadde,_0x6a4935){const _0x1c33a1=_0x5f25e0,_0x21a9a0={..._0x48f7a3[_0x1c33a1(0xbf)]};_0x6a4935!=null&&_0x6a4935[_0x1c33a1(0xa5)]&&_0x21a9a0[_0x1c33a1(0xbc)]===_0x1c33a1(0xa5)&&(_0x21a9a0[_0x1c33a1(0xbc)]=_0x6a4935[_0x1c33a1(0xa5)]),_0x48f7a3[_0x1c33a1(0xfd)]==='mask'&&_0x21a9a0['id']&&(_0x21a9a0['id']=_0x21a9a0['id']+_0x4aadde[_0x1c33a1(0xac)]),Object[_0x1c33a1(0x148)](_0x21a9a0)['forEach'](([_0x102c7f,_0x581c4f])=>{const _0x3a1cf9=_0x1c33a1;_0x102c7f===_0x3a1cf9(0xd4)&&typeof _0x581c4f=='string'&&(_0x21a9a0[_0x102c7f]=_0x581c4f[_0x3a1cf9(0xa4)](/url\(#(.*)\)/,'url(#$1'+_0x4aadde['idSuffix']+')'));});const {defIds:_0x2dfdc5}=_0x4aadde;return!_0x2dfdc5||_0x2dfdc5[_0x1c33a1(0xe2)]===0x0||(_0x48f7a3['tag']===_0x1c33a1(0x138)&&_0x21a9a0['xlink:href']&&(_0x21a9a0['xlink:href']=_0x21a9a0['xlink:href']+_0x4aadde[_0x1c33a1(0xac)]),Object[_0x1c33a1(0x148)](_0x21a9a0)[_0x1c33a1(0x109)](([_0x383783,_0x246af6])=>{const _0x6be342=_0x1c33a1;typeof _0x246af6=='string'&&(_0x21a9a0[_0x383783]=_0x246af6[_0x6be342(0xa4)](/url\(#(.*)\)/,'url(#$1'+_0x4aadde[_0x6be342(0xac)]+')'));})),_0x21a9a0;}function _0x3cf7fe(_0xa485e5,_0x2b0768){const _0x3ecfe2=_0x5f25e0;var _0x2d73ed;const {defIds:_0x331629}=_0x2b0768;return!_0x331629||_0x331629[_0x3ecfe2(0xe2)]===0x0?_0xa485e5:_0xa485e5[_0x3ecfe2(0xfd)]===_0x3ecfe2(0xe9)&&((_0x2d73ed=_0xa485e5[_0x3ecfe2(0x10a)])!=null&&_0x2d73ed['length'])?{..._0xa485e5,'children':_0xa485e5[_0x3ecfe2(0x10a)]['map'](_0xeb0ddf=>typeof _0xeb0ddf[_0x3ecfe2(0xbf)]['id']==_0x3ecfe2(0x118)&&_0x331629&&_0x331629[_0x3ecfe2(0xaf)](_0xeb0ddf[_0x3ecfe2(0xbf)]['id'])?{..._0xeb0ddf,'attrs':{..._0xeb0ddf[_0x3ecfe2(0xbf)],'id':_0xeb0ddf[_0x3ecfe2(0xbf)]['id']+_0x2b0768[_0x3ecfe2(0xac)]}}:_0xeb0ddf)}:_0xa485e5;}function _0x3dcca3(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x2ffd11[_0x5f25e0(0x145)]=_0x5f25e0(0x9a);const _0x25d6e4={'tag':_0x5f25e0(0xb8),'attrs':{'xmlns':_0x5f25e0(0x127),'fill':'none','viewBox':_0x5f25e0(0xc4),'width':_0x5f25e0(0x14c),'height':_0x5f25e0(0x14c)},'children':[{'tag':_0x5f25e0(0xb9),'attrs':{'fill':_0x5f25e0(0x14a),'d':_0x5f25e0(0xfe)}},{'tag':_0x5f25e0(0xb9),'attrs':{'fill':_0x5f25e0(0x14a),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},_0x591cf0=_0x4a444c[_0x5f25e0(0xfa)](function(_0x5e2075,_0x1bba69){const _0x269b51=_0x5f25e0;return _0x4a444c[_0x269b51(0xef)](_0x2ffd11,Object['assign']({},_0x5e2075,{'id':_0x269b51(0x128),'ref':_0x1bba69,'icon':_0x25d6e4}));});_0x591cf0[_0x5f25e0(0x145)]=_0x5f25e0(0xa2);class _0x426902 extends _0x3cb17c[_0x5f25e0(0xdc)]{constructor(){const _0x4546bb=_0x5f25e0;super(...arguments),_0x529b2e(this,'_sharedOperations',new Set()),_0x529b2e(this,_0x4546bb(0x142),new Set());}[_0x5f25e0(0x9f)](_0x2f1357){const _0x5d98a6=_0x5f25e0;return this[_0x5d98a6(0x7e)]['add'](_0x2f1357),_0x3cb17c[_0x5d98a6(0xcb)](()=>this[_0x5d98a6(0x7e)]['delete'](_0x2f1357));}['registerInitialStateReporter'](_0x3a605c){const _0x267f30=_0x5f25e0;return this[_0x267f30(0x142)][_0x267f30(0xc5)](_0x3a605c),_0x3cb17c[_0x267f30(0xcb)](()=>this['_reporters'][_0x267f30(0x84)](_0x3a605c));}[_0x5f25e0(0xf6)](_0x191b41){const _0x3a0218=_0x5f25e0;return this[_0x3a0218(0x7e)][_0x3a0218(0x134)](_0x191b41);}[_0x5f25e0(0xb3)](_0x5c6cbb){const _0x3ffecf=_0x5f25e0;return Array['from'](this[_0x3ffecf(0x142)])['map'](_0x245b55=>_0x245b55(_0x5c6cbb));}}var _0x1111f0=Object[_0x5f25e0(0xcf)],_0x275c2f=(_0x171ca5,_0x640c3a,_0x2f95f9,_0x4250a2)=>{const _0x41ce81=_0x5f25e0;for(var _0x290d6c=_0x4250a2>0x1?void 0x0:_0x4250a2?_0x1111f0(_0x640c3a,_0x2f95f9):_0x640c3a,_0x5ea9a0=_0x171ca5[_0x41ce81(0xe2)]-0x1,_0x1a84d3;_0x5ea9a0>=0x0;_0x5ea9a0--)(_0x1a84d3=_0x171ca5[_0x5ea9a0])&&(_0x290d6c=_0x1a84d3(_0x290d6c)||_0x290d6c);return _0x290d6c;},_0x9efa8f=(_0x54b3f7,_0x39d04f)=>(_0x5844e7,_0x2cc05e)=>_0x39d04f(_0x5844e7,_0x2cc05e,_0x54b3f7);_0x262252[_0x5f25e0(0x11d)]=class extends _0x3cb17c[_0x5f25e0(0x13f)]{constructor(_0x43c909,_0x565fa3,_0x1010ce){const _0x469fa8=_0x5f25e0;super(),_0x529b2e(this,_0x469fa8(0xf0),new Map()),(this[_0x469fa8(0x147)]=_0x43c909,this[_0x469fa8(0xcc)]=_0x565fa3,this[_0x469fa8(0xb1)]=_0x1010ce,this[_0x469fa8(0xb7)]());}async[_0x5f25e0(0x139)](_0x3f7c31){const _0x21ba7f=_0x5f25e0;return this[_0x21ba7f(0xf0)][_0x21ba7f(0x134)](_0x3f7c31)||await this[_0x21ba7f(0x107)](_0x3f7c31),this[_0x21ba7f(0xf0)]['get'](_0x3f7c31);}['getLiveShareCoordinatorSync'](_0x1fd24a){const _0x459b4c=_0x5f25e0;var _0x1614c1;return(_0x1614c1=this['_entities'][_0x459b4c(0xbd)](_0x1fd24a))!=null?_0x1614c1:null;}[_0x5f25e0(0xb7)](){const _0x1496bb=_0x5f25e0;this[_0x1496bb(0x147)][_0x1496bb(0xc3)](_0x3cb17c['UniverInstanceType'][_0x1496bb(0x11e)])[_0x1496bb(0x73)](_0x18ed04['takeUntil'](this[_0x1496bb(0x10c)]))[_0x1496bb(0xf1)](async _0x55605e=>{const _0x57950f=_0x1496bb,_0x4cd952=_0x55605e['getUnitId']();this[_0x57950f(0xf0)]['has'](_0x4cd952)||this[_0x57950f(0x107)](_0x4cd952);}),this['_univerInstanceService'][_0x1496bb(0x124)](_0x3cb17c[_0x1496bb(0xc8)][_0x1496bb(0x11e)])[_0x1496bb(0x73)](_0x18ed04[_0x1496bb(0x137)](this[_0x1496bb(0x10c)]))[_0x1496bb(0xf1)](_0x778022=>{const _0x4fedb5=_0x1496bb,_0xcbe6d1=_0x778022[_0x4fedb5(0x6d)](),_0x1e917e=this[_0x4fedb5(0xf0)][_0x4fedb5(0xbd)](_0xcbe6d1);_0x1e917e==null||_0x1e917e[_0x4fedb5(0x103)]();});}async[_0x5f25e0(0x107)](_0x3daba9){const _0x2b27da=_0x5f25e0,_0xd0fb72=await this['_collabSessionService'][_0x2b27da(0xf7)](_0x3daba9),_0x1d6e64=this[_0x2b27da(0xcc)]['createInstance'](_0x262252['LiveShareCoordinator'],_0x3daba9,_0xd0fb72);return _0x1d6e64['init'](),this[_0x2b27da(0xf0)]['set'](_0x3daba9,_0x1d6e64),_0x1d6e64;}},_0x262252['LiveShareController']=_0x275c2f([_0x9efa8f(0x0,_0x3cb17c[_0x5f25e0(0xd7)]),_0x9efa8f(0x1,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c['Injector'])),_0x9efa8f(0x2,_0x3cb17c[_0x5f25e0(0xda)](_0x3c93ca[_0x5f25e0(0xe6)]))],_0x262252['LiveShareController']);var _0x1e5c53=(_0x2444fb=>(_0x2444fb[_0x5f25e0(0xca)]=_0x5f25e0(0xe3),_0x2444fb['IDLE']=_0x5f25e0(0x11b),_0x2444fb[_0x5f25e0(0x141)]=_0x5f25e0(0x11a),_0x2444fb[_0x5f25e0(0x136)]=_0x5f25e0(0x119),_0x2444fb[_0x5f25e0(0x12b)]=_0x5f25e0(0xc0),_0x2444fb))(_0x1e5c53||{});const _0xc62f15=_0x5f25e0(0x70),_0x456c9f=0xc8;_0x262252[_0x5f25e0(0x105)]=class extends _0x3cb17c[_0x5f25e0(0x13f)]{constructor(_0x55506b,_0x19f8cd,_0x5c1604,_0x48d011,_0x223789){const _0x3f1421=_0x5f25e0;super(),_0x529b2e(this,_0x3f1421(0x7a),new _0x2edef2[(_0x3f1421(0x12c))](_0x3f1421(0x11b))),_0x529b2e(this,_0x3f1421(0x75),this[_0x3f1421(0x7a)]['asObservable']()),_0x529b2e(this,_0x3f1421(0xb7),!0x1),_0x529b2e(this,_0x3f1421(0x114),null),_0x529b2e(this,_0x3f1421(0x130),null),(this[_0x3f1421(0xd1)]=_0x55506b,this['_collabSession']=_0x19f8cd,this[_0x3f1421(0x96)]=_0x5c1604,this['_liveShareService']=_0x48d011,this[_0x3f1421(0x12d)]=_0x223789);}get[_0x5f25e0(0x115)](){const _0x51f5ca=_0x5f25e0;return this[_0x51f5ca(0x7a)][_0x51f5ca(0x131)]();}[_0x5f25e0(0x103)](){const _0xef862=_0x5f25e0;var _0x561980;(_0x561980=this[_0xef862(0x114)])==null||_0x561980[_0xef862(0x103)](),this[_0xef862(0x7a)][_0xef862(0x89)](_0xef862(0x11b)),this[_0xef862(0x7a)][_0xef862(0x111)]();}[_0x5f25e0(0xc9)](){const _0x25c014=_0x5f25e0;return this[_0x25c014(0x115)];}[_0x5f25e0(0xf4)](){const _0x2fa4b3=_0x5f25e0;this['_init']||(this[_0x2fa4b3(0xb7)]=!0x0,this[_0x2fa4b3(0x123)][_0x2fa4b3(0x112)][_0x2fa4b3(0x73)](_0x18ed04[_0x2fa4b3(0x137)](this[_0x2fa4b3(0x10c)]))['subscribe'](_0x21f16c=>{const _0x496b86=_0x2fa4b3;switch(_0x21f16c){case _0x3c93ca[_0x496b86(0xd0)][_0x496b86(0xca)]:this[_0x496b86(0x13a)]();break;case _0x3c93ca[_0x496b86(0xd0)][_0x496b86(0xd2)]:this[_0x496b86(0xad)]();break;}}),this[_0x2fa4b3(0x123)][_0x2fa4b3(0x80)][_0x2fa4b3(0x73)](_0x18ed04['takeUntil'](this[_0x2fa4b3(0x10c)]))[_0x2fa4b3(0xf1)](_0x527858=>{const _0x40a1a0=_0x2fa4b3,{eventID:_0x4ed0dd}=_0x527858;switch(_0x4ed0dd){case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0x91)]:this['_handleNewHost'](_0x527858);break;case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0x10b)]:this[_0x40a1a0(0x7c)](_0x527858);break;case _0x17a8ce['CollaborationEvent'][_0x40a1a0(0x135)]:this['_handleTerminate']();break;case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0xa0)]:this[_0x40a1a0(0xfc)](_0x527858);break;}}));}[_0x5f25e0(0xea)](){const _0x12e5ca=_0x5f25e0;this[_0x12e5ca(0x123)]['send']({'eventID':_0x17a8ce[_0x12e5ca(0x12f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x12e5ca(0x123)][_0x12e5ca(0xdb)]()}},this[_0x12e5ca(0xd1)]);}[_0x5f25e0(0x10f)](){const _0x177e4c=_0x5f25e0;this[_0x177e4c(0x115)]==='presenting'&&(this[_0x177e4c(0x7a)][_0x177e4c(0x89)](_0x177e4c(0x11b)),this[_0x177e4c(0x123)][_0x177e4c(0xd6)]({'eventID':_0x17a8ce[_0x177e4c(0x12f)][_0x177e4c(0x135)],'data':{'unitID':this[_0x177e4c(0xd1)]}},this[_0x177e4c(0xd1)]));}[_0x5f25e0(0x100)](){const _0x41e81d=_0x5f25e0;this[_0x41e81d(0x115)]===_0x41e81d(0x119)&&(this[_0x41e81d(0x7a)]['next'](_0x41e81d(0x11a)),this[_0x41e81d(0xa3)]());}[_0x5f25e0(0x12a)](){const _0x47e287=_0x5f25e0;this[_0x47e287(0x115)]===_0x47e287(0x11a)&&this[_0x47e287(0x7f)]();}[_0x5f25e0(0xed)](_0x337006){const _0x1e9671=_0x5f25e0,{presenter:_0x39358b}=_0x337006[_0x1e9671(0xba)],_0x272292=this[_0x1e9671(0x123)][_0x1e9671(0xdb)]();this[_0x1e9671(0x130)]=_0x39358b,_0x39358b===_0x272292?(this[_0x1e9671(0x7f)](),this[_0x1e9671(0x6f)]()):this[_0x1e9671(0x115)]!==_0x1e9671(0x119)&&(this[_0x1e9671(0x9e)](),this[_0x1e9671(0xa3)]());}[_0x5f25e0(0xf8)](){const _0x5a465a=_0x5f25e0,_0x427cba={'eventID':_0x17a8ce[_0x5a465a(0x12f)][_0x5a465a(0x102)]};this[_0x5a465a(0x123)]['send'](_0x427cba,this[_0x5a465a(0xd1)]);}[_0x5f25e0(0xbe)](){const _0x1868ff=_0x5f25e0;this[_0x1868ff(0x130)]=null,this['_status']!=='presenting'&&this[_0x1868ff(0x72)]();}[_0x5f25e0(0xfc)](_0x2be0f3){const _0xf6c492=_0x5f25e0;if(this[_0xf6c492(0x115)]===_0xf6c492(0x11a)&&this[_0xf6c492(0x130)]===_0x2be0f3[_0xf6c492(0xba)]['memberID']){const _0xbf2447=_0x17a8ce[_0xf6c492(0x122)](_0x2be0f3['data'])[_0xf6c492(0xb5)][_0xf6c492(0x95)]()[_0xf6c492(0x8c)](_0x508463=>_0x508463['id']===_0x4db795[_0xf6c492(0x121)]['id']);if(_0xbf2447){const _0x599f70=_0xbf2447[_0xf6c492(0x12e)][_0xf6c492(0x6a)],_0x1727fc=_0xbf2447[_0xf6c492(0x12e)][_0xf6c492(0x7b)]['id'];setTimeout(()=>{const _0x4264a6=_0xf6c492;this[_0x4264a6(0x12d)][_0x4264a6(0x10e)](_0x4db795[_0x4264a6(0xb4)]['id'],{'unitId':_0x599f70,'subUnitId':_0x1727fc},{'fromCollab':!0x0});});}}}[_0x5f25e0(0x6f)](){const _0x126113=_0x5f25e0;this[_0x126113(0x7a)][_0x126113(0x89)](_0x126113(0xc0));const _0x58285c=new Map(),_0x33925f=this['_commandDisposable']=new _0x3cb17c[(_0x126113(0xae))]();_0x33925f['add'](_0x3cb17c['toDisposable'](()=>{const _0x20e771=_0x126113;_0x58285c[_0x20e771(0x109)](_0x3700ad=>_0x3700ad['complete']()),_0x58285c['clear']();})),_0x33925f[_0x126113(0xc5)](this[_0x126113(0x12d)][_0x126113(0x85)](_0x41e6c3=>{const _0x1408c2=_0x126113;var _0x2aee3e;if(_0x41e6c3[_0x1408c2(0xdd)]!==_0x3cb17c[_0x1408c2(0xc2)][_0x1408c2(0x6b)]||!this['_liveShareService'][_0x1408c2(0xf6)](_0x41e6c3['id']))return;const {id:_0x5d7b81}=_0x41e6c3;let _0x5de883;_0x58285c[_0x1408c2(0x134)](_0x5d7b81)?_0x5de883=_0x58285c['get'](_0x5d7b81):(_0x5de883=new _0x2edef2['Subject'](),_0x58285c[_0x1408c2(0x14b)](_0x5d7b81,_0x5de883),_0x5de883['pipe'](_0x18ed04['throttleTime']((_0x2aee3e=this[_0x1408c2(0x96)]['getConfig'](_0xc62f15))!=null?_0x2aee3e:_0x456c9f,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1408c2(0xf1)](_0x22e384=>{const _0x34936b=_0x1408c2;this[_0x34936b(0x123)][_0x34936b(0xd6)]({'eventID':_0x17a8ce[_0x34936b(0x12f)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34936b(0xd1)],'operations':{[_0x22e384['id']]:{'id':_0x22e384['id'],'params':JSON[_0x34936b(0x146)](_0x22e384[_0x34936b(0x12e)])}}}},this[_0x34936b(0xd1)]);})),_0x5de883[_0x1408c2(0x89)](_0x41e6c3);})),this['_liveShareService'][_0x126113(0xb3)](this[_0x126113(0xd1)])[_0x126113(0x109)](_0x5de72d=>this[_0x126113(0x123)][_0x126113(0xd6)]({'eventID':_0x17a8ce[_0x126113(0x12f)][_0x126113(0x10b)],'data':{'unitID':this[_0x126113(0xd1)],'operations':{[_0x5de72d['id']]:{'id':_0x5de72d['id'],'params':JSON[_0x126113(0x146)](_0x5de72d[_0x126113(0x12e)])}}}},this[_0x126113(0xd1)]));}[_0x5f25e0(0x9e)](){const _0x1348f3=_0x5f25e0;var _0x24f639;this[_0x1348f3(0x7a)][_0x1348f3(0x89)]('idle'),(_0x24f639=this[_0x1348f3(0x114)])==null||_0x24f639[_0x1348f3(0x103)](),this['_commandDisposable']=null;}[_0x5f25e0(0xa3)](){const _0x15f697=_0x5f25e0;var _0x9627c7;(_0x9627c7=this['_commandDisposable'])==null||_0x9627c7[_0x15f697(0x103)](),this[_0x15f697(0x7a)][_0x15f697(0x89)](_0x15f697(0x11a));}[_0x5f25e0(0x72)](){const _0x26f735=_0x5f25e0;var _0x460f6d;this[_0x26f735(0x7a)][_0x26f735(0x89)](_0x26f735(0x11b)),(_0x460f6d=this[_0x26f735(0x114)])==null||_0x460f6d[_0x26f735(0x103)](),this[_0x26f735(0x114)]=null;}['_stopFollowing'](){const _0x3703e5=_0x5f25e0;var _0x156119;this[_0x3703e5(0x7a)][_0x3703e5(0x89)](_0x3703e5(0x119)),(_0x156119=this['_commandDisposable'])==null||_0x156119['dispose']();}[_0x5f25e0(0x7c)](_0x7b4a3){const _0x8c7db6=_0x5f25e0;if(['presenting',_0x8c7db6(0x119),_0x8c7db6(0xe3)][_0x8c7db6(0xaf)](this['_status'])||!_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0xe7)]||_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0xe7)]===this[_0x8c7db6(0x123)]['getMemberID']())return;this[_0x8c7db6(0x115)]===_0x8c7db6(0x11b)&&this[_0x8c7db6(0xa3)]();const _0x4c6c3b=_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0x140)];Object['values'](_0x4c6c3b)[_0x8c7db6(0x109)](_0x5f1862=>{const _0x314a8b=_0x8c7db6;this[_0x314a8b(0x12d)][_0x314a8b(0x10e)](_0x5f1862['id'],_0x5f1862['params']?JSON['parse'](_0x5f1862['params']):null,{'fromCollab':!0x0});});}[_0x5f25e0(0x13a)](){const _0xef360b=_0x5f25e0;var _0x4d843c;this[_0xef360b(0x7a)][_0xef360b(0x89)](_0xef360b(0xe3)),(_0x4d843c=this['_commandDisposable'])==null||_0x4d843c['dispose']();}[_0x5f25e0(0xad)](){const _0x516b71=_0x5f25e0;this[_0x516b71(0x7a)][_0x516b71(0x89)](_0x516b71(0x11b)),this[_0x516b71(0xf8)]();}},_0x262252[_0x5f25e0(0x105)]=_0x275c2f([_0x9efa8f(0x2,_0x3cb17c[_0x5f25e0(0x13d)]),_0x9efa8f(0x3,_0x3cb17c[_0x5f25e0(0xda)](_0x426902)),_0x9efa8f(0x4,_0x3cb17c[_0x5f25e0(0x152)])],_0x262252['LiveShareCoordinator']);function _0x1daf63(){const _0x429b1b=_0x5f25e0,_0x213fb6=_0x404ca8['useDependency'](_0x262252[_0x429b1b(0x11d)]),_0x182c27=_0x404ca8[_0x429b1b(0x83)](_0x3cb17c[_0x429b1b(0xd7)]),_0x5acdf2=_0x404ca8[_0x429b1b(0x13e)](()=>_0x182c27['getCurrentTypeOfUnit$'](_0x3cb17c['UniverInstanceType'][_0x429b1b(0x11e)]),void 0x0,!0x1,[]),[_0x5de0d8,_0x266787]=_0x4a444c['useState'](null),[_0x550941,_0x2688cd]=_0x4a444c[_0x429b1b(0xb2)](_0x1e5c53[_0x429b1b(0x6c)]),_0x3de193=_0x4a444c[_0x429b1b(0xa7)](null);return _0x4a444c['useEffect'](()=>(_0x5acdf2&&_0x213fb6[_0x429b1b(0x139)](_0x5acdf2[_0x429b1b(0x6d)]())[_0x429b1b(0x153)](_0xa5b34a=>{const _0x2dc0eb=_0x429b1b;_0x266787(_0xa5b34a),_0x3de193[_0x2dc0eb(0xc1)]=_0xa5b34a[_0x2dc0eb(0x75)][_0x2dc0eb(0xf1)](_0x2c3f19=>{_0x2688cd(_0x2c3f19);});}),()=>{const _0x3409d4=_0x429b1b;var _0x3ca729;(_0x3ca729=_0x3de193[_0x3409d4(0xc1)])==null||_0x3ca729[_0x3409d4(0x101)](),_0x3de193[_0x3409d4(0xc1)]=null;}),[_0x5acdf2,_0x213fb6]),_0x5de0d8?_0x265310[_0x429b1b(0x129)](_0x51144a[_0x429b1b(0xe4)],{'align':_0x429b1b(0xce),'disabled':_0x550941===_0x1e5c53[_0x429b1b(0xca)],'className':_0x429b1b(0x104),'overlay':_0x265310[_0x429b1b(0x129)](_0x5e6777,{'status':_0x550941,'coordinator':_0x5de0d8}),'children':_0x265310[_0x429b1b(0x129)](_0x429b1b(0x9d),{'className':_0x51144a['clsx'](_0x429b1b(0xaa),{'univer-cursor-not-allowed':_0x550941===_0x1e5c53['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550941!==_0x1e5c53[_0x429b1b(0xca)]}),'type':_0x429b1b(0x9d),'children':_0x265310[_0x429b1b(0x129)](_0x591cf0,{'className':_0x429b1b(0x13b)})})}):null;}function _0x5e6777(_0x3ca68a){const _0x325272=_0x5f25e0,{status:_0x2ddd4d,coordinator:_0x27e98b}=_0x3ca68a;switch(_0x2ddd4d){case _0x1e5c53[_0x325272(0x6c)]:return _0x265310[_0x325272(0x129)](_0x1a1731,{'coordinator':_0x27e98b});case _0x1e5c53['FOLLOWING']:return _0x265310['jsx'](_0x26406b,{'coordinator':_0x27e98b});case _0x1e5c53[_0x325272(0x136)]:return _0x265310[_0x325272(0x129)](_0x3bfb4f,{'coordinator':_0x27e98b});case _0x1e5c53[_0x325272(0xca)]:return _0x265310[_0x325272(0x129)](_0x3910b6,{});case _0x1e5c53[_0x325272(0x12b)]:return _0x265310[_0x325272(0x129)](_0x54d058,{'coordinator':_0x27e98b});default:return null;}}function _0x1a1731(_0x54d829){const _0x385a75=_0x5f25e0,{coordinator:_0x285988}=_0x54d829;return _0x265310[_0x385a75(0xf9)](_0x265310[_0x385a75(0x90)],{'children':[_0x265310[_0x385a75(0x129)](_0x385a75(0x8a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x385a75(0xec)}),_0x265310['jsx'](_0x51144a[_0x385a75(0xbb)],{'onClick':()=>_0x285988[_0x385a75(0xea)](),'children':_0x385a75(0xf2)})]});}function _0x26406b(_0x3f7e05){const _0x3dcf56=_0x5f25e0,{coordinator:_0x34cba1}=_0x3f7e05;return _0x265310['jsxs'](_0x265310[_0x3dcf56(0x90)],{'children':[_0x265310['jsx'](_0x3dcf56(0x8a),{'className':_0x3dcf56(0xe0),'children':_0x3dcf56(0xa8)}),_0x265310[_0x3dcf56(0x129)](_0x51144a['Button'],{'onClick':()=>_0x34cba1[_0x3dcf56(0x12a)](),'children':_0x3dcf56(0xf3)})]});}function _0x3bfb4f(_0x38e23d){const _0x39c2d9=_0x5f25e0,{coordinator:_0x47f112}=_0x38e23d;return _0x265310[_0x39c2d9(0xf9)](_0x265310[_0x39c2d9(0x90)],{'children':[_0x265310[_0x39c2d9(0x129)](_0x39c2d9(0x8a),{'className':_0x39c2d9(0xe0),'children':_0x39c2d9(0x11c)}),_0x265310['jsx'](_0x51144a[_0x39c2d9(0xbb)],{'variant':_0x39c2d9(0xff),'onClick':()=>_0x47f112['startFollowing'](),'children':_0x39c2d9(0x74)})]});}function _0x54d058(_0x48bda2){const _0x6a85d0=_0x5f25e0,{coordinator:_0x543e8f}=_0x48bda2;return _0x265310[_0x6a85d0(0xf9)](_0x265310[_0x6a85d0(0x90)],{'children':[_0x265310[_0x6a85d0(0x129)](_0x6a85d0(0x8a),{'className':_0x6a85d0(0xe0),'children':_0x6a85d0(0x106)}),_0x265310[_0x6a85d0(0x129)](_0x51144a[_0x6a85d0(0xbb)],{'variant':'default','onClick':()=>_0x543e8f[_0x6a85d0(0x10f)](),'children':'Stop\x20presenting'})]});}function _0x3910b6(){const _0x25e6d2=_0x5f25e0;return _0x265310[_0x25e6d2(0x129)](_0x265310['Fragment'],{'children':_0x25e6d2(0x133)});}var _0x120e70=Object['getOwnPropertyDescriptor'],_0x9aa85b=(_0x46492f,_0x529344,_0x4cd9bd,_0x5b7794)=>{const _0x23f408=_0x5f25e0;for(var _0xdc3a3d=_0x5b7794>0x1?void 0x0:_0x5b7794?_0x120e70(_0x529344,_0x4cd9bd):_0x529344,_0x3ab85b=_0x46492f[_0x23f408(0xe2)]-0x1,_0x4e291d;_0x3ab85b>=0x0;_0x3ab85b--)(_0x4e291d=_0x46492f[_0x3ab85b])&&(_0xdc3a3d=_0x4e291d(_0xdc3a3d)||_0xdc3a3d);return _0xdc3a3d;},_0x50d925=(_0x1436b2,_0x351f72)=>(_0x2acb6b,_0x18251d)=>_0x351f72(_0x2acb6b,_0x18251d,_0x1436b2);_0x262252[_0x5f25e0(0x151)]=class extends _0x3cb17c[_0x5f25e0(0xdc)]{constructor(_0x41ba22,_0x1b703f){const _0x4c132a=_0x5f25e0;super(),this[_0x4c132a(0xcc)]=_0x41ba22,this[_0x4c132a(0xe5)]=_0x1b703f,this[_0x4c132a(0xc7)]();}[_0x5f25e0(0xc7)](){const _0x432ad0=_0x5f25e0;this[_0x432ad0(0xf5)](this[_0x432ad0(0xe5)][_0x432ad0(0x98)](_0x404ca8[_0x432ad0(0x78)][_0x432ad0(0x88)],()=>_0x404ca8[_0x432ad0(0xb6)](_0x1daf63,this[_0x432ad0(0xcc)])));}},_0x262252[_0x5f25e0(0x151)]=_0x9aa85b([_0x50d925(0x0,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c[_0x5f25e0(0xd5)])),_0x50d925(0x1,_0x404ca8[_0x5f25e0(0x97)])],_0x262252[_0x5f25e0(0x151)]);const _0xafc072=_0x5f25e0(0x143),_0x4a3916={};var _0x129a62=Object[_0x5f25e0(0xcf)],_0x3820f5=(_0x1fdaf5,_0x35be0f,_0x587556,_0x2f35d2)=>{const _0x177eaf=_0x5f25e0;for(var _0x2e2116=_0x2f35d2>0x1?void 0x0:_0x2f35d2?_0x129a62(_0x35be0f,_0x587556):_0x35be0f,_0x3e90c3=_0x1fdaf5[_0x177eaf(0xe2)]-0x1,_0x4192d7;_0x3e90c3>=0x0;_0x3e90c3--)(_0x4192d7=_0x1fdaf5[_0x3e90c3])&&(_0x2e2116=_0x4192d7(_0x2e2116)||_0x2e2116);return _0x2e2116;},_0xd61be5=(_0x359691,_0x1dad63)=>(_0x23b2dd,_0x3df272)=>_0x1dad63(_0x23b2dd,_0x3df272,_0x359691);let _0x4d17a9=class extends _0x3cb17c['Disposable']{constructor(_0x8e7a53){const _0x31f3d3=_0x5f25e0;super(),this[_0x31f3d3(0x144)]=_0x8e7a53,this['_init']();}[_0x5f25e0(0xb7)](){const _0x3b361a=_0x5f25e0;[_0x1ac73e[_0x3b361a(0xd3)]['id'],_0x1ac73e[_0x3b361a(0x14d)]['id'],_0x4db795[_0x3b361a(0xb4)]['id']]['forEach'](_0xb5e7b=>{const _0xe183c=_0x3b361a;this[_0xe183c(0xf5)](this[_0xe183c(0x144)][_0xe183c(0x9f)](_0xb5e7b));});}};_0x4d17a9=_0x3820f5([_0xd61be5(0x0,_0x3cb17c[_0x5f25e0(0xda)](_0x426902))],_0x4d17a9);var _0x50f651=Object[_0x5f25e0(0x14e)],_0x214261=Object[_0x5f25e0(0xcf)],_0x4eba48=(_0x3fb559,_0x260fe7,_0x3810d9)=>_0x260fe7 in _0x3fb559?_0x50f651(_0x3fb559,_0x260fe7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3810d9}):_0x3fb559[_0x260fe7]=_0x3810d9,_0x352d85=(_0x28f9ea,_0x2719eb,_0x47b9fb,_0x30447f)=>{for(var _0x1125e8=_0x30447f>0x1?void 0x0:_0x30447f?_0x214261(_0x2719eb,_0x47b9fb):_0x2719eb,_0x416dc2=_0x28f9ea['length']-0x1,_0x39b494;_0x416dc2>=0x0;_0x416dc2--)(_0x39b494=_0x28f9ea[_0x416dc2])&&(_0x1125e8=_0x39b494(_0x1125e8)||_0x1125e8);return _0x1125e8;},_0x128a8b=(_0xe2a19c,_0x187cf7)=>(_0x455e98,_0x486dc0)=>_0x187cf7(_0x455e98,_0x486dc0,_0xe2a19c),_0x45d1f5=(_0x2a1145,_0x5f58e7,_0x1835c1)=>_0x4eba48(_0x2a1145,typeof _0x5f58e7!='symbol'?_0x5f58e7+'':_0x5f58e7,_0x1835c1);const _0x194a68=_0x5f25e0(0x82);_0x262252[_0x5f25e0(0x125)]=class extends _0x3cb17c[_0x5f25e0(0x92)]{constructor(_0x46f331=_0x4a3916,_0x235aeb,_0x322cfa){const _0x3dec22=_0x5f25e0;super(),this[_0x3dec22(0x79)]=_0x46f331,this['_injector']=_0x235aeb,this[_0x3dec22(0x96)]=_0x322cfa;const {..._0x489405}=_0x3cb17c['merge']({},_0x4a3916,this['_config']);this['_configService'][_0x3dec22(0x132)](_0xafc072,_0x489405);}[_0x5f25e0(0xb0)](){const _0x3035d8=_0x5f25e0;_0x3cb17c['registerDependencies'](this['_injector'],_0x3cb17c['mergeOverrideWithDependencies']([[_0x426902],[_0x262252[_0x3035d8(0x11d)]],[_0x4d17a9],[_0x262252[_0x3035d8(0x151)]]],this[_0x3035d8(0x79)]['override'])),_0x3cb17c[_0x3035d8(0x149)](this['_injector'],[[_0x4d17a9]]);}[_0x5f25e0(0x81)](){const _0x590da9=_0x5f25e0;_0x3cb17c[_0x590da9(0x149)](this[_0x590da9(0xcc)],[[_0x262252[_0x590da9(0x151)]]]);}},_0x45d1f5(_0x262252['UniverLiveSharePlugin'],_0x5f25e0(0xdd),_0x3cb17c[_0x5f25e0(0xc8)][_0x5f25e0(0x71)]),_0x45d1f5(_0x262252[_0x5f25e0(0x125)],_0x5f25e0(0xfb),_0x194a68),_0x262252['UniverLiveSharePlugin']=_0x352d85([_0x3cb17c[_0x5f25e0(0x94)](_0x3c93ca[_0x5f25e0(0xeb)]),_0x128a8b(0x1,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c[_0x5f25e0(0xd5)])),_0x128a8b(0x2,_0x3cb17c[_0x5f25e0(0x13d)])],_0x262252[_0x5f25e0(0x125)]),_0x262252['LiveShare']=_0x1daf63,_0x262252[_0x5f25e0(0xa1)]=_0x426902,_0x262252[_0x5f25e0(0xcd)]=_0x1e5c53,Object[_0x5f25e0(0x14e)](_0x262252,Symbol[_0x5f25e0(0xab)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1-nightly.202511221011",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.
|
|
62
|
-
"@univerjs/core": "0.12.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets
|
|
66
|
-
"@univerjs/sheets": "0.12.
|
|
67
|
-
"@univerjs/ui": "0.12.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.1-nightly.202511221011",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.1-nightly.202511221011",
|
|
62
|
+
"@univerjs/core": "0.12.1-nightly.202511221011",
|
|
63
|
+
"@univerjs/design": "0.12.1-nightly.202511221011",
|
|
64
|
+
"@univerjs/engine-render": "0.12.1-nightly.202511221011",
|
|
65
|
+
"@univerjs/sheets": "0.12.1-nightly.202511221011",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.1-nightly.202511221011",
|
|
67
|
+
"@univerjs/ui": "0.12.1-nightly.202511221011"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.2",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
77
|
+
"@univerjs/protocol": "0.1.47",
|
|
78
|
+
"@univerjs-infra/shared": "0.12.1"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|