@univerjs-pro/live-share 0.12.0 → 0.12.1
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 +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3d58ff=_0xb87c;function _0xb87c(_0xeabbb8,_0x210382){const _0x47447c=_0x4744();return _0xb87c=function(_0xb87c9,_0x1410b2){_0xb87c9=_0xb87c9-0x16c;let _0x4f3b07=_0x47447c[_0xb87c9];return _0x4f3b07;},_0xb87c(_0xeabbb8,_0x210382);}function _0x4744(){const _0xc7c3a2=['getStatus','executeCommand','getLiveShareStatus','startPresenting','12UoUhKw','LiveShareStatus','12KbQNwq','getSheetId','647519tqLWIr','_injector','LiveShareStatusEnum','FUniver','FRange','getLiveShareCoordinatorSync','SetScrollOperation','getUnitId','759567Rvuibi','getActiveWorkbook','1856474oOQvQY','stopFollowing','syncExecuteCommand','4386067vWBGZT','8890qRjNYn','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','LiveShareController','getRenderById','3393472bfFdMX','16101gArovE','getId','stopPresenting','FEnum','SetWorksheetActiveOperation','PRESENTING','_commandService','tryStartPresenting','extend','No\x20active\x20workbook\x20found.','634385pQuZJz','_initialize','IDLE','startRow','startFollowing'];_0x4744=function(){return _0xc7c3a2;};return _0x4744();}(function(_0x34459f,_0x3b07bf){const _0x2fb8c3=_0xb87c,_0x4954f7=_0x34459f();while(!![]){try{const _0x5cbb75=-parseInt(_0x2fb8c3(0x174))/0x1+-parseInt(_0x2fb8c3(0x17e))/0x2+parseInt(_0x2fb8c3(0x17c))/0x3+parseInt(_0x2fb8c3(0x170))/0x4*(-parseInt(_0x2fb8c3(0x193))/0x5)+-parseInt(_0x2fb8c3(0x172))/0x6*(-parseInt(_0x2fb8c3(0x181))/0x7)+-parseInt(_0x2fb8c3(0x188))/0x8+-parseInt(_0x2fb8c3(0x189))/0x9*(-parseInt(_0x2fb8c3(0x182))/0xa);if(_0x5cbb75===_0x3b07bf)break;else _0x4954f7['push'](_0x4954f7['shift']());}catch(_0x4c8a4d){_0x4954f7['push'](_0x4954f7['shift']());}}}(_0x4744,0xaeda9));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[_0x3d58ff(0x178)]{[_0x3d58ff(0x194)](_0x44db0c,_0x17339e,_0x190a94,_0x24ced1,_0x5bfd80){const _0x5091d3=_0x3d58ff,_0x15c09b=_0x44db0c[_0x5091d3(0x183)](n[_0x5091d3(0x186)]),_0x5bfacf=_0x44db0c[_0x5091d3(0x183)](g['IRenderManagerService']),_0x3bf7b5=_0x17339e[_0x5091d3(0x17b)](),_0x4f7d21=_0x17339e['getActiveSheet'](),_0x4416bd=_0x15c09b[_0x5091d3(0x179)](_0x3bf7b5);(_0x4416bd==null?void 0x0:_0x4416bd[_0x5091d3(0x16c)]())!==n['LiveShareStatus'][_0x5091d3(0x18e)]||(_0x190a94['getSheetId']()!==_0x4f7d21['getSheetId']()&&this[_0x5091d3(0x18f)][_0x5091d3(0x16d)](u[_0x5091d3(0x18d)]['id'],{'unitId':_0x3bf7b5,'subUnitId':_0x190a94[_0x5091d3(0x173)]()}),!_0x5bfacf[_0x5091d3(0x187)](_0x3bf7b5))||_0x5bfd80[_0x5091d3(0x180)](f[_0x5091d3(0x17a)]['id'],{'unitId':_0x17339e[_0x5091d3(0x17b)](),'sheetId':_0x190a94['getSheetId'](),'sheetViewStartRow':_0x24ced1[_0x5091d3(0x196)],'sheetViewStartColumn':_0x24ced1[_0x5091d3(0x185)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3d58ff(0x178)]['extend'](w);class C extends a[_0x3d58ff(0x177)]{[_0x3d58ff(0x16e)](){const _0x478aa5=_0x3d58ff;var _0x5b81f9,_0x42ec8d;const _0x4672e9=this[_0x478aa5(0x175)][_0x478aa5(0x183)](n[_0x478aa5(0x186)]),_0xfef0e1=(_0x5b81f9=this[_0x478aa5(0x17d)]())==null?void 0x0:_0x5b81f9[_0x478aa5(0x18a)]();if(!_0xfef0e1)throw new Error(_0x478aa5(0x192));const _0x3d0781=_0x4672e9[_0x478aa5(0x179)](_0xfef0e1);return(_0x42ec8d=_0x3d0781==null?void 0x0:_0x3d0781[_0x478aa5(0x16c)]())!=null?_0x42ec8d:n[_0x478aa5(0x171)][_0x478aa5(0x195)];}[_0x3d58ff(0x197)](){const _0x128576=_0x3d58ff;var _0x187df7;const _0x59b3a8=this[_0x128576(0x175)][_0x128576(0x183)](n[_0x128576(0x186)]),_0x35440f=(_0x187df7=this[_0x128576(0x17d)]())==null?void 0x0:_0x187df7[_0x128576(0x18a)]();if(!_0x35440f)throw new Error(_0x128576(0x192));const _0x24b7c5=_0x59b3a8[_0x128576(0x179)](_0x35440f);if(!_0x24b7c5)throw new Error(_0x128576(0x184));_0x24b7c5[_0x128576(0x197)]();}['stopFollowing'](){const _0x13a20a=_0x3d58ff;var _0x252fc1;const _0x411c76=this['_injector']['get'](n[_0x13a20a(0x186)]),_0xca6a10=(_0x252fc1=this[_0x13a20a(0x17d)]())==null?void 0x0:_0x252fc1[_0x13a20a(0x18a)]();if(!_0xca6a10)throw new Error(_0x13a20a(0x192));const _0x26cc88=_0x411c76['getLiveShareCoordinatorSync'](_0xca6a10);if(!_0x26cc88)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x26cc88[_0x13a20a(0x17f)]();}[_0x3d58ff(0x16f)](){const _0x1485e8=_0x3d58ff;var _0x512fc8;const _0x47a537=this[_0x1485e8(0x175)][_0x1485e8(0x183)](n['LiveShareController']),_0x28ba7e=(_0x512fc8=this[_0x1485e8(0x17d)]())==null?void 0x0:_0x512fc8[_0x1485e8(0x18a)]();if(!_0x28ba7e)throw new Error(_0x1485e8(0x192));const _0x2df485=_0x47a537[_0x1485e8(0x179)](_0x28ba7e);if(!_0x2df485)throw new Error(_0x1485e8(0x184));_0x2df485[_0x1485e8(0x190)]();}['stopPresenting'](){const _0x595afc=_0x3d58ff;var _0x5d80a3;const _0x35ced7=this[_0x595afc(0x175)][_0x595afc(0x183)](n[_0x595afc(0x186)]),_0x3ff569=(_0x5d80a3=this[_0x595afc(0x17d)]())==null?void 0x0:_0x5d80a3[_0x595afc(0x18a)]();if(!_0x3ff569)throw new Error(_0x595afc(0x192));const _0x403cc8=_0x35ced7['getLiveShareCoordinatorSync'](_0x3ff569);if(!_0x403cc8)throw new Error(_0x595afc(0x184));_0x403cc8[_0x595afc(0x18b)]();}}a['FUniver']['extend'](C);class L extends a[_0x3d58ff(0x18c)]{get[_0x3d58ff(0x176)](){const _0x386ca5=_0x3d58ff;return n[_0x386ca5(0x171)];}}a[_0x3d58ff(0x18c)][_0x3d58ff(0x191)](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 _0xdd045d=_0x17f2;(function(_0x48b512,_0x57cc41){const _0x2a169b=_0x17f2,_0x5144ca=_0x48b512();while(!![]){try{const _0x3c059e=parseInt(_0x2a169b(0x146))/0x1+-parseInt(_0x2a169b(0x129))/0x2*(parseInt(_0x2a169b(0x1b5))/0x3)+-parseInt(_0x2a169b(0x1ad))/0x4+-parseInt(_0x2a169b(0x19f))/0x5+parseInt(_0x2a169b(0x109))/0x6*(-parseInt(_0x2a169b(0x16d))/0x7)+parseInt(_0x2a169b(0x18f))/0x8+parseInt(_0x2a169b(0x147))/0x9;if(_0x3c059e===_0x57cc41)break;else _0x5144ca['push'](_0x5144ca['shift']());}catch(_0x577c3d){_0x5144ca['push'](_0x5144ca['shift']());}}}(_0x58ee,0x6c893));var T=Object[_0xdd045d(0x121)],U=(_0x5c29e5,_0x559ae7,_0x17dd05)=>_0x559ae7 in _0x5c29e5?T(_0x5c29e5,_0x559ae7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17dd05}):_0x5c29e5[_0x559ae7]=_0x17dd05,_=(_0x6e6423,_0x120440,_0x311de0)=>U(_0x6e6423,typeof _0x120440!='symbol'?_0x120440+'':_0x120440,_0x311de0);Object[_0xdd045d(0x121)](exports,Symbol[_0xdd045d(0x194)],{'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:_0xdb21c0,..._0x50564c}){const _0xb371f3=_0xdd045d,{icon:_0x46eaf1,id:_0x2f1d36,className:_0xfa7a5c,extend:_0x276aeb,..._0xa545d5}=_0x50564c,_0x509099=(_0xb371f3(0x107)+_0x2f1d36+'\x20'+(_0xfa7a5c||''))[_0xb371f3(0x192)](),_0x38c30e=v[_0xb371f3(0x153)]('_'+H());return j(_0x46eaf1,''+_0x2f1d36,{'defIds':_0x46eaf1[_0xb371f3(0x14d)],'idSuffix':_0x38c30e['current']},{'ref':_0xdb21c0,'className':_0x509099,..._0xa545d5},_0x276aeb);}function _0x58ee(){const _0xab138f=['status$','override','useRef','getStatus','Disposable','OPERATION','displayName','_collabSession','getConfig','RxDisposable','replace','_univerInstanceService','CollaborationEvent','length','symbol','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','_mountLiveShare','tag','UniverCollaborationClientPlugin','_beIdle','live-share-icon','presenting','OFFLINE','LIVESHARE_TERMINATE','forEach','stopPresenting','SetWorksheetActiveOperation','80437WLkeNQ','find','setConfig','useEffect','presenter','Button','idle','event$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','subscribe','mutations','from','includes','colorChannel1','data','SetScrollOperation','1em','path','getUnitId','LiveShare','reverse','_startLiveShareCoordinator','Fragment','useState','unsubscribe','xlink:href','ONLINE','default','Subject','toDisposable','send','fill','pipe','6472048NzteiM','complete','startFollowing','trim','UNIVER_LIVE_SHARE_PLUGIN','toStringTag','executeCommand','idSuffix','UNIVER_SHEET','registerSharedOperation','IDLE','Start\x20following','ICommandService','_presenter','Present\x20this\x20document','text','4183835WCPrEV','stringify','_injector','_init','You\x27are\x20offline.','UniverInstanceType','assign','_uiPartsService','_liveShareService','mask','current','DesktopLiveShareController','sheet','LiveShareIcon','1524376wKBlXG','HEADER_MENU','svg','get','_handleOnline','DependentOn','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','_startPresenting','126798cOxQDr','shouldShareOperation','mergeOverrideWithDependencies','LiveShareStatus','LIVESHARE_NEW_HOST','_sharedOperations','div','createInstance','LiveShareController','disposeWithMe','forwardRef','map','clear','_fetchOperations','onStarting','parseProtocolChangeset','LIVESHARE_REQUEST_HOST','_stopPresenting','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','NOT_FOLLOWING','LIVESHARE_OPERATION','next','operations','_entities','merge','toString','random','_configService','Start','_reporters','string','following','IConfigService','entries','sessionStatus$','attrs','onCommandExecuted','_stopFollowing','use','_handleOffline','substring','has','univerjs-icon\x20univerjs-icon-','FOLLOWING','228BofnpB','getInitialStates','jsxs','univer-size-4','currentColor','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','_config','dispose','Inject','none','UNIVER_UNKNOWN','PRESENTING','dispose$','0\x200\x2017\x2017','add','throttleTime','defs','NEW_CHANGESETS','memberID','requireSession','Injector','SessionStatus','offline','defineProperty','button','url(#$1','touchDependencies','_status','You\x27re\x20not\x20following\x20the\x20presenter','type','stopFollowing','6SwoNvj','_collabSessionService','_handleNewHost','takeUntil','SAME_OPERATION_SHARE_INTERVAL','evenodd','not-following','_unitID','useDependency','unitId','_status$','getValue','UniverIcon','CommandType','IUIPartsService','SetZoomRatioOperation','LiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','createElement','_startFollowing','Plugin','jsx','registerInitialStateReporter','getLiveShareCoordinator','_handleTerminate','end','UniverLiveSharePlugin','_commandService','children','635409srnScS','7033185kRkjPv','set','IUniverInstanceService','params','useObservable','getCurrentTypeOfUnit$','defIds','CollaborationSessionService','DisposableCollection','getMemberID'];_0x58ee=function(){return _0xab138f;};return _0x58ee();}function j(_0x42b12c,_0x1d08a0,_0x3eb1e1,_0x268038,_0x5c2936){const _0x36457f=_0xdd045d;return v[_0x36457f(0x13b)](_0x42b12c[_0x36457f(0x163)],{'key':_0x1d08a0,...y(_0x42b12c,_0x3eb1e1,_0x5c2936),..._0x268038},(F(_0x42b12c,_0x3eb1e1)[_0x36457f(0x145)]||[])[_0x36457f(0x1c0)]((_0x3d7e66,_0x74cbc5)=>j(_0x3d7e66,_0x1d08a0+'-'+_0x42b12c[_0x36457f(0x163)]+'-'+_0x74cbc5,_0x3eb1e1,void 0x0,_0x5c2936)));}function y(_0x1f98b2,_0x4adbed,_0x48a558){const _0x2b5e9b=_0xdd045d,_0x484182={..._0x1f98b2[_0x2b5e9b(0x100)]};_0x48a558!=null&&_0x48a558[_0x2b5e9b(0x17b)]&&_0x484182[_0x2b5e9b(0x18d)]===_0x2b5e9b(0x17b)&&(_0x484182[_0x2b5e9b(0x18d)]=_0x48a558['colorChannel1']),_0x1f98b2[_0x2b5e9b(0x163)]===_0x2b5e9b(0x1a8)&&_0x484182['id']&&(_0x484182['id']=_0x484182['id']+_0x4adbed['idSuffix']),Object[_0x2b5e9b(0xfe)](_0x484182)[_0x2b5e9b(0x16a)](([_0x57fe19,_0x2c9df9])=>{const _0x36cd94=_0x2b5e9b;_0x57fe19===_0x36cd94(0x1a8)&&typeof _0x2c9df9==_0x36cd94(0xfb)&&(_0x484182[_0x57fe19]=_0x2c9df9[_0x36cd94(0x15b)](/url\(#(.*)\)/,_0x36cd94(0x123)+_0x4adbed[_0x36cd94(0x196)]+')'));});const {defIds:_0x234592}=_0x4adbed;return!_0x234592||_0x234592['length']===0x0||(_0x1f98b2[_0x2b5e9b(0x163)]===_0x2b5e9b(0x103)&&_0x484182['xlink:href']&&(_0x484182[_0x2b5e9b(0x187)]=_0x484182[_0x2b5e9b(0x187)]+_0x4adbed['idSuffix']),Object['entries'](_0x484182)[_0x2b5e9b(0x16a)](([_0x42294f,_0x2e1f5f])=>{const _0xd503b0=_0x2b5e9b;typeof _0x2e1f5f==_0xd503b0(0xfb)&&(_0x484182[_0x42294f]=_0x2e1f5f[_0xd503b0(0x15b)](/url\(#(.*)\)/,_0xd503b0(0x123)+_0x4adbed[_0xd503b0(0x196)]+')'));})),_0x484182;}function _0x17f2(_0xa49f2,_0x45e98d){const _0x58ee65=_0x58ee();return _0x17f2=function(_0x17f2f9,_0x412b88){_0x17f2f9=_0x17f2f9-0xf9;let _0x71b0aa=_0x58ee65[_0x17f2f9];return _0x71b0aa;},_0x17f2(_0xa49f2,_0x45e98d);}function F(_0x780198,_0x950c65){const _0x48f9c6=_0xdd045d;var _0x488a3d;const {defIds:_0x3ffd56}=_0x950c65;return!_0x3ffd56||_0x3ffd56['length']===0x0?_0x780198:_0x780198['tag']===_0x48f9c6(0x11a)&&((_0x488a3d=_0x780198[_0x48f9c6(0x145)])!=null&&_0x488a3d['length'])?{..._0x780198,'children':_0x780198[_0x48f9c6(0x145)][_0x48f9c6(0x1c0)](_0xe58702=>typeof _0xe58702[_0x48f9c6(0x100)]['id']==_0x48f9c6(0xfb)&&_0x3ffd56&&_0x3ffd56[_0x48f9c6(0x17a)](_0xe58702[_0x48f9c6(0x100)]['id'])?{..._0xe58702,'attrs':{..._0xe58702[_0x48f9c6(0x100)],'id':_0xe58702[_0x48f9c6(0x100)]['id']+_0x950c65['idSuffix']}}:_0xe58702)}:_0x780198;}function H(){const _0x52a6a3=_0xdd045d;return Math[_0x52a6a3(0x1d0)]()[_0x52a6a3(0x1cf)](0x24)[_0x52a6a3(0x105)](0x2,0x8);}x[_0xdd045d(0x157)]=_0xdd045d(0x135);const V={'tag':_0xdd045d(0x1af),'attrs':{'xmlns':_0xdd045d(0x1c8),'fill':_0xdd045d(0x113),'viewBox':_0xdd045d(0x117),'width':_0xdd045d(0x17e),'height':'1em'},'children':[{'tag':_0xdd045d(0x17f),'attrs':{'fill':'currentColor','d':_0xdd045d(0x175)}},{'tag':_0xdd045d(0x17f),'attrs':{'fill':_0xdd045d(0x10d),'d':_0xdd045d(0x1b3),'fillRule':_0xdd045d(0x12e),'clipRule':_0xdd045d(0x12e)}}]},R=v[_0xdd045d(0x1bf)](function(_0xa2ac72,_0x2ae11b){const _0x212e53=_0xdd045d;return v[_0x212e53(0x13b)](x,Object[_0x212e53(0x1a5)]({},_0xa2ac72,{'id':_0x212e53(0x166),'ref':_0x2ae11b,'icon':V}));});R['displayName']=_0xdd045d(0x1ac);class E extends o[_0xdd045d(0x155)]{constructor(){const _0x55b65a=_0xdd045d;super(...arguments),_(this,_0x55b65a(0x1ba),new Set()),_(this,_0x55b65a(0xfa),new Set());}['registerSharedOperation'](_0x3af51b){const _0x36c35d=_0xdd045d;return this['_sharedOperations']['add'](_0x3af51b),o[_0x36c35d(0x18b)](()=>this[_0x36c35d(0x1ba)]['delete'](_0x3af51b));}[_0xdd045d(0x13f)](_0x24cfa4){const _0x32f59d=_0xdd045d;return this[_0x32f59d(0xfa)][_0x32f59d(0x118)](_0x24cfa4),o['toDisposable'](()=>this['_reporters']['delete'](_0x24cfa4));}[_0xdd045d(0x1b6)](_0x13e2e4){const _0xa5abf=_0xdd045d;return this[_0xa5abf(0x1ba)][_0xa5abf(0x106)](_0x13e2e4);}[_0xdd045d(0x10a)](_0x46e2d8){const _0xe7f6db=_0xdd045d;return Array[_0xe7f6db(0x179)](this['_reporters'])[_0xe7f6db(0x1c0)](_0x83f7f7=>_0x83f7f7(_0x46e2d8));}}var M=Object[_0xdd045d(0x1c7)],P=(_0x5d1334,_0x21071e,_0xdd3216,_0x195f1d)=>{for(var _0x331750=_0x195f1d>0x1?void 0x0:_0x195f1d?M(_0x21071e,_0xdd3216):_0x21071e,_0x4350b8=_0x5d1334['length']-0x1,_0x362a7b;_0x4350b8>=0x0;_0x4350b8--)(_0x362a7b=_0x5d1334[_0x4350b8])&&(_0x331750=_0x362a7b(_0x331750)||_0x331750);return _0x331750;},S=(_0x2fce75,_0x57d25b)=>(_0x1ab775,_0x114b3c)=>_0x57d25b(_0x1ab775,_0x114b3c,_0x2fce75);exports['LiveShareController']=class extends o[_0xdd045d(0x15a)]{constructor(_0x422fc9,_0x3ea1ae,_0x2de0b8){const _0xa4badf=_0xdd045d;super(),_(this,_0xa4badf(0x1cd),new Map()),(this[_0xa4badf(0x15c)]=_0x422fc9,this[_0xa4badf(0x1a1)]=_0x3ea1ae,this[_0xa4badf(0x12a)]=_0x2de0b8,this[_0xa4badf(0x1a2)]());}async['getLiveShareCoordinator'](_0x3738b7){const _0x27c0e3=_0xdd045d;return this[_0x27c0e3(0x1cd)][_0x27c0e3(0x106)](_0x3738b7)||await this['_startLiveShareCoordinator'](_0x3738b7),this[_0x27c0e3(0x1cd)][_0x27c0e3(0x1b0)](_0x3738b7);}['getLiveShareCoordinatorSync'](_0x2fbe3e){const _0x179407=_0xdd045d;var _0x2937bc;return(_0x2937bc=this[_0x179407(0x1cd)][_0x179407(0x1b0)](_0x2fbe3e))!=null?_0x2937bc:null;}['_init'](){const _0x1ef661=_0xdd045d;this[_0x1ef661(0x15c)]['getTypeOfUnitAdded$'](o[_0x1ef661(0x1a4)][_0x1ef661(0x197)])[_0x1ef661(0x18e)](I[_0x1ef661(0x12c)](this[_0x1ef661(0x116)]))[_0x1ef661(0x177)](async _0x3e6857=>{const _0x3b97b5=_0x1ef661,_0x4f24e=_0x3e6857[_0x3b97b5(0x180)]();this[_0x3b97b5(0x1cd)][_0x3b97b5(0x106)](_0x4f24e)||this[_0x3b97b5(0x183)](_0x4f24e);}),this[_0x1ef661(0x15c)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x1ef661(0x197)])['pipe'](I[_0x1ef661(0x12c)](this[_0x1ef661(0x116)]))[_0x1ef661(0x177)](_0x6e1046=>{const _0x1fe2a6=_0x1ef661,_0x486c6b=_0x6e1046['getUnitId'](),_0x21f61f=this[_0x1fe2a6(0x1cd)]['get'](_0x486c6b);_0x21f61f==null||_0x21f61f[_0x1fe2a6(0x111)]();});}async[_0xdd045d(0x183)](_0x1048a4){const _0x49af57=_0xdd045d,_0x5b8812=await this[_0x49af57(0x12a)][_0x49af57(0x11d)](_0x1048a4),_0x5ccb41=this[_0x49af57(0x1a1)][_0x49af57(0x1bc)](exports[_0x49af57(0x139)],_0x1048a4,_0x5b8812);return _0x5ccb41['init'](),this[_0x49af57(0x1cd)][_0x49af57(0x148)](_0x1048a4,_0x5ccb41),_0x5ccb41;}},exports[_0xdd045d(0x1bd)]=P([S(0x0,o[_0xdd045d(0x149)]),S(0x1,o[_0xdd045d(0x112)](o['Injector'])),S(0x2,o['Inject'](b[_0xdd045d(0x14e)]))],exports[_0xdd045d(0x1bd)]);var u=(_0x310e5b=>(_0x310e5b[_0xdd045d(0x168)]=_0xdd045d(0x120),_0x310e5b[_0xdd045d(0x199)]=_0xdd045d(0x173),_0x310e5b['FOLLOWING']=_0xdd045d(0xfc),_0x310e5b[_0xdd045d(0x1c9)]=_0xdd045d(0x12f),_0x310e5b[_0xdd045d(0x115)]=_0xdd045d(0x167),_0x310e5b))(u||{});const k=_0xdd045d(0x12d),q=0xc8;exports[_0xdd045d(0x139)]=class extends o[_0xdd045d(0x15a)]{constructor(_0x39bfc9,_0x4ecfd2,_0x3e23f9,_0x4096ce,_0x5a75f){const _0x31e6f9=_0xdd045d;super(),_(this,_0x31e6f9(0x133),new O['BehaviorSubject'](_0x31e6f9(0x173))),_(this,_0x31e6f9(0x151),this[_0x31e6f9(0x133)]['asObservable']()),_(this,_0x31e6f9(0x1a2),!0x1),_(this,_0x31e6f9(0x161),null),_(this,_0x31e6f9(0x19c),null),(this[_0x31e6f9(0x130)]=_0x39bfc9,this[_0x31e6f9(0x158)]=_0x4ecfd2,this[_0x31e6f9(0x1d1)]=_0x3e23f9,this[_0x31e6f9(0x1a7)]=_0x4096ce,this[_0x31e6f9(0x144)]=_0x5a75f);}get[_0xdd045d(0x125)](){const _0x1e859e=_0xdd045d;return this[_0x1e859e(0x133)][_0x1e859e(0x134)]();}[_0xdd045d(0x111)](){const _0x3b1792=_0xdd045d;var _0x492506;(_0x492506=this[_0x3b1792(0x161)])==null||_0x492506['dispose'](),this[_0x3b1792(0x133)][_0x3b1792(0x1cb)](_0x3b1792(0x173)),this[_0x3b1792(0x133)][_0x3b1792(0x190)]();}[_0xdd045d(0x154)](){const _0x6e1d55=_0xdd045d;return this[_0x6e1d55(0x125)];}['init'](){const _0xb713e0=_0xdd045d;this[_0xb713e0(0x1a2)]||(this[_0xb713e0(0x1a2)]=!0x0,this[_0xb713e0(0x158)][_0xb713e0(0xff)][_0xb713e0(0x18e)](I[_0xb713e0(0x12c)](this['dispose$']))[_0xb713e0(0x177)](_0x25bb06=>{const _0x533e4d=_0xb713e0;switch(_0x25bb06){case b[_0x533e4d(0x11f)][_0x533e4d(0x168)]:this[_0x533e4d(0x104)]();break;case b[_0x533e4d(0x11f)][_0x533e4d(0x188)]:this[_0x533e4d(0x1b1)]();break;}}),this[_0xb713e0(0x158)][_0xb713e0(0x174)][_0xb713e0(0x18e)](I[_0xb713e0(0x12c)](this[_0xb713e0(0x116)]))[_0xb713e0(0x177)](_0x228d70=>{const _0x30e4b7=_0xb713e0,{eventID:_0x23b07a}=_0x228d70;switch(_0x23b07a){case d[_0x30e4b7(0x15d)][_0x30e4b7(0x1b9)]:this['_handleNewHost'](_0x228d70);break;case d[_0x30e4b7(0x15d)][_0x30e4b7(0x1ca)]:this['_handleOperation'](_0x228d70);break;case d[_0x30e4b7(0x15d)]['LIVESHARE_TERMINATE']:this[_0x30e4b7(0x141)]();break;case d['CollaborationEvent'][_0x30e4b7(0x11b)]:this['_handleNewChangeSets'](_0x228d70);break;}}));}[_0xdd045d(0x10f)](){const _0x1c509b=_0xdd045d;this[_0x1c509b(0x158)]['send']({'eventID':d[_0x1c509b(0x15d)][_0x1c509b(0x1c5)],'data':{'unitID':this[_0x1c509b(0x130)],'userID':this['_collabSession'][_0x1c509b(0x150)]()}},this[_0x1c509b(0x130)]);}[_0xdd045d(0x16b)](){const _0x72959f=_0xdd045d;this[_0x72959f(0x125)]===_0x72959f(0x167)&&(this[_0x72959f(0x133)][_0x72959f(0x1cb)](_0x72959f(0x173)),this[_0x72959f(0x158)][_0x72959f(0x18c)]({'eventID':d['CollaborationEvent'][_0x72959f(0x169)],'data':{'unitID':this['_unitID']}},this[_0x72959f(0x130)]));}['startFollowing'](){const _0x3eb1ef=_0xdd045d;this[_0x3eb1ef(0x125)]===_0x3eb1ef(0x12f)&&(this['_status$'][_0x3eb1ef(0x1cb)](_0x3eb1ef(0xfc)),this[_0x3eb1ef(0x13c)]());}[_0xdd045d(0x128)](){const _0x37be2f=_0xdd045d;this['_status']===_0x37be2f(0xfc)&&this[_0x37be2f(0x102)]();}[_0xdd045d(0x12b)](_0x44250c){const _0x5b55f6=_0xdd045d,{presenter:_0x20537b}=_0x44250c['data'],_0x431ebb=this['_collabSession'][_0x5b55f6(0x150)]();this[_0x5b55f6(0x19c)]=_0x20537b,_0x20537b===_0x431ebb?(this[_0x5b55f6(0x102)](),this[_0x5b55f6(0x1b4)]()):this[_0x5b55f6(0x125)]!==_0x5b55f6(0x12f)&&(this['_stopPresenting'](),this[_0x5b55f6(0x13c)]());}[_0xdd045d(0x1c2)](){const _0x474e5d=_0xdd045d,_0x56949f={'eventID':d['CollaborationEvent'][_0x474e5d(0x13a)]};this[_0x474e5d(0x158)][_0x474e5d(0x18c)](_0x56949f,this['_unitID']);}[_0xdd045d(0x141)](){const _0x425fd2=_0xdd045d;this[_0x425fd2(0x19c)]=null,this[_0x425fd2(0x125)]!=='presenting'&&this[_0x425fd2(0x165)]();}['_handleNewChangeSets'](_0xbddfad){const _0x4e648b=_0xdd045d;if(this[_0x4e648b(0x125)]===_0x4e648b(0xfc)&&this['_presenter']===_0xbddfad[_0x4e648b(0x17c)][_0x4e648b(0x11c)]){const _0x15511f=d[_0x4e648b(0x1c4)](_0xbddfad[_0x4e648b(0x17c)])[_0x4e648b(0x178)][_0x4e648b(0x182)]()[_0x4e648b(0x16e)](_0x8864ee=>_0x8864ee['id']===C['InsertSheetMutation']['id']);if(_0x15511f){const _0x447862=_0x15511f[_0x4e648b(0x14a)][_0x4e648b(0x132)],_0x4d151c=_0x15511f[_0x4e648b(0x14a)][_0x4e648b(0x1ab)]['id'];setTimeout(()=>{const _0x28bbde=_0x4e648b;this['_commandService'][_0x28bbde(0x195)](C[_0x28bbde(0x16c)]['id'],{'unitId':_0x447862,'subUnitId':_0x4d151c},{'fromCollab':!0x0});});}}}[_0xdd045d(0x1b4)](){const _0x1c6b73=_0xdd045d;this[_0x1c6b73(0x133)]['next'](_0x1c6b73(0x167));const _0x4379b1=new Map(),_0x488216=this[_0x1c6b73(0x161)]=new o[(_0x1c6b73(0x14f))]();_0x488216[_0x1c6b73(0x118)](o[_0x1c6b73(0x18b)](()=>{const _0x116990=_0x1c6b73;_0x4379b1['forEach'](_0x18f74a=>_0x18f74a['complete']()),_0x4379b1[_0x116990(0x1c1)]();})),_0x488216[_0x1c6b73(0x118)](this[_0x1c6b73(0x144)][_0x1c6b73(0x101)](_0x24bdef=>{const _0x30fce3=_0x1c6b73;var _0x1e8612;if(_0x24bdef['type']!==o[_0x30fce3(0x136)][_0x30fce3(0x156)]||!this['_liveShareService'][_0x30fce3(0x1b6)](_0x24bdef['id']))return;const {id:_0xe8b643}=_0x24bdef;let _0x41c5e6;_0x4379b1[_0x30fce3(0x106)](_0xe8b643)?_0x41c5e6=_0x4379b1[_0x30fce3(0x1b0)](_0xe8b643):(_0x41c5e6=new O[(_0x30fce3(0x18a))](),_0x4379b1[_0x30fce3(0x148)](_0xe8b643,_0x41c5e6),_0x41c5e6[_0x30fce3(0x18e)](I[_0x30fce3(0x119)]((_0x1e8612=this[_0x30fce3(0x1d1)][_0x30fce3(0x159)](k))!=null?_0x1e8612:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x30fce3(0x177)](_0x4cf5fa=>{const _0x8835e7=_0x30fce3;this['_collabSession'][_0x8835e7(0x18c)]({'eventID':d['CollaborationEvent'][_0x8835e7(0x1ca)],'data':{'unitID':this['_unitID'],'operations':{[_0x4cf5fa['id']]:{'id':_0x4cf5fa['id'],'params':JSON[_0x8835e7(0x1a0)](_0x4cf5fa[_0x8835e7(0x14a)])}}}},this[_0x8835e7(0x130)]);})),_0x41c5e6[_0x30fce3(0x1cb)](_0x24bdef);})),this[_0x1c6b73(0x1a7)][_0x1c6b73(0x10a)](this[_0x1c6b73(0x130)])[_0x1c6b73(0x16a)](_0x32f964=>this['_collabSession'][_0x1c6b73(0x18c)]({'eventID':d[_0x1c6b73(0x15d)][_0x1c6b73(0x1ca)],'data':{'unitID':this[_0x1c6b73(0x130)],'operations':{[_0x32f964['id']]:{'id':_0x32f964['id'],'params':JSON[_0x1c6b73(0x1a0)](_0x32f964[_0x1c6b73(0x14a)])}}}},this[_0x1c6b73(0x130)]));}[_0xdd045d(0x1c6)](){const _0x251e98=_0xdd045d;var _0xf2c528;this['_status$'][_0x251e98(0x1cb)](_0x251e98(0x173)),(_0xf2c528=this['_commandDisposable'])==null||_0xf2c528['dispose'](),this['_commandDisposable']=null;}[_0xdd045d(0x13c)](){const _0x4328eb=_0xdd045d;var _0xe9bd3a;(_0xe9bd3a=this['_commandDisposable'])==null||_0xe9bd3a[_0x4328eb(0x111)](),this[_0x4328eb(0x133)][_0x4328eb(0x1cb)]('following');}['_beIdle'](){const _0x8f1ede=_0xdd045d;var _0x476ef6;this[_0x8f1ede(0x133)][_0x8f1ede(0x1cb)](_0x8f1ede(0x173)),(_0x476ef6=this[_0x8f1ede(0x161)])==null||_0x476ef6[_0x8f1ede(0x111)](),this[_0x8f1ede(0x161)]=null;}['_stopFollowing'](){const _0x220cd3=_0xdd045d;var _0x5421cb;this['_status$'][_0x220cd3(0x1cb)](_0x220cd3(0x12f)),(_0x5421cb=this['_commandDisposable'])==null||_0x5421cb[_0x220cd3(0x111)]();}['_handleOperation'](_0x21c058){const _0x3db315=_0xdd045d;if([_0x3db315(0x167),'not-following',_0x3db315(0x120)][_0x3db315(0x17a)](this[_0x3db315(0x125)])||!_0x21c058[_0x3db315(0x17c)][_0x3db315(0x171)]||_0x21c058[_0x3db315(0x17c)]['presenter']===this['_collabSession'][_0x3db315(0x150)]())return;this[_0x3db315(0x125)]===_0x3db315(0x173)&&this['_startFollowing']();const _0x4fbe39=_0x21c058[_0x3db315(0x17c)][_0x3db315(0x1cc)];Object['values'](_0x4fbe39)[_0x3db315(0x16a)](_0x3a9c15=>{const _0x4b38d4=_0x3db315;this[_0x4b38d4(0x144)][_0x4b38d4(0x195)](_0x3a9c15['id'],_0x3a9c15[_0x4b38d4(0x14a)]?JSON['parse'](_0x3a9c15[_0x4b38d4(0x14a)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xbf6def=_0xdd045d;var _0x207da3;this[_0xbf6def(0x133)][_0xbf6def(0x1cb)]('offline'),(_0x207da3=this[_0xbf6def(0x161)])==null||_0x207da3[_0xbf6def(0x111)]();}[_0xdd045d(0x1b1)](){const _0x459df2=_0xdd045d;this[_0x459df2(0x133)][_0x459df2(0x1cb)](_0x459df2(0x173)),this['_fetchOperations']();}},exports[_0xdd045d(0x139)]=P([S(0x2,o[_0xdd045d(0xfd)]),S(0x3,o['Inject'](E)),S(0x4,o[_0xdd045d(0x19b)])],exports[_0xdd045d(0x139)]);function $(){const _0x4fb7d8=_0xdd045d,_0x5aa036=p[_0x4fb7d8(0x131)](exports[_0x4fb7d8(0x1bd)]),_0x1037a4=p[_0x4fb7d8(0x131)](o[_0x4fb7d8(0x149)]),_0x39bc6a=p[_0x4fb7d8(0x14b)](()=>_0x1037a4[_0x4fb7d8(0x14c)](o[_0x4fb7d8(0x1a4)][_0x4fb7d8(0x197)]),void 0x0,!0x1,[]),[_0x592da5,_0x262fc2]=v[_0x4fb7d8(0x185)](null),[_0x560eb8,_0x4295d5]=v['useState'](u[_0x4fb7d8(0x199)]),_0x4964e6=v[_0x4fb7d8(0x153)](null);return v[_0x4fb7d8(0x170)](()=>(_0x39bc6a&&_0x5aa036[_0x4fb7d8(0x140)](_0x39bc6a[_0x4fb7d8(0x180)]())['then'](_0x4ee993=>{const _0x570d7c=_0x4fb7d8;_0x262fc2(_0x4ee993),_0x4964e6[_0x570d7c(0x1a9)]=_0x4ee993[_0x570d7c(0x151)]['subscribe'](_0x472a56=>{_0x4295d5(_0x472a56);});}),()=>{const _0x2a052e=_0x4fb7d8;var _0x560db7;(_0x560db7=_0x4964e6[_0x2a052e(0x1a9)])==null||_0x560db7[_0x2a052e(0x186)](),_0x4964e6['current']=null;}),[_0x39bc6a,_0x5aa036]),_0x592da5?l[_0x4fb7d8(0x13e)](f['Dropdown'],{'align':_0x4fb7d8(0x142),'disabled':_0x560eb8===u['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x4fb7d8(0x13e)](W,{'status':_0x560eb8,'coordinator':_0x592da5}),'children':l[_0x4fb7d8(0x13e)](_0x4fb7d8(0x122),{'className':f['clsx'](_0x4fb7d8(0x160),{'univer-cursor-not-allowed':_0x560eb8===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x560eb8!==u[_0x4fb7d8(0x168)]}),'type':_0x4fb7d8(0x122),'children':l['jsx'](R,{'className':_0x4fb7d8(0x10c)})})}):null;}function W(_0x2fd63c){const _0x85882a=_0xdd045d,{status:_0x54ab49,coordinator:_0x4a8ebe}=_0x2fd63c;switch(_0x54ab49){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x4a8ebe});case u[_0x85882a(0x108)]:return l[_0x85882a(0x13e)](B,{'coordinator':_0x4a8ebe});case u[_0x85882a(0x1c9)]:return l[_0x85882a(0x13e)](Y,{'coordinator':_0x4a8ebe});case u[_0x85882a(0x168)]:return l['jsx'](J,{});case u[_0x85882a(0x115)]:return l['jsx'](Z,{'coordinator':_0x4a8ebe});default:return null;}}function G(_0x48a5a9){const _0x192179=_0xdd045d,{coordinator:_0x98d15f}=_0x48a5a9;return l[_0x192179(0x10b)](l['Fragment'],{'children':[l[_0x192179(0x13e)](_0x192179(0x1bb),{'className':_0x192179(0x176),'children':_0x192179(0x19d)}),l[_0x192179(0x13e)](f[_0x192179(0x172)],{'onClick':()=>_0x98d15f[_0x192179(0x10f)](),'children':_0x192179(0xf9)})]});}function B(_0xa278ab){const _0x57aab6=_0xdd045d,{coordinator:_0x101e6f}=_0xa278ab;return l[_0x57aab6(0x10b)](l[_0x57aab6(0x184)],{'children':[l[_0x57aab6(0x13e)](_0x57aab6(0x1bb),{'className':_0x57aab6(0x176),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x57aab6(0x13e)](f[_0x57aab6(0x172)],{'onClick':()=>_0x101e6f[_0x57aab6(0x128)](),'children':'Stop\x20following'})]});}function Y(_0x2e31da){const _0x2a8f0e=_0xdd045d,{coordinator:_0x4f16e2}=_0x2e31da;return l[_0x2a8f0e(0x10b)](l['Fragment'],{'children':[l[_0x2a8f0e(0x13e)](_0x2a8f0e(0x1bb),{'className':_0x2a8f0e(0x176),'children':_0x2a8f0e(0x126)}),l[_0x2a8f0e(0x13e)](f[_0x2a8f0e(0x172)],{'variant':_0x2a8f0e(0x19e),'onClick':()=>_0x4f16e2[_0x2a8f0e(0x191)](),'children':_0x2a8f0e(0x19a)})]});}function Z(_0x36acbf){const _0x232485=_0xdd045d,{coordinator:_0x7c610}=_0x36acbf;return l['jsxs'](l[_0x232485(0x184)],{'children':[l['jsx'](_0x232485(0x1bb),{'className':_0x232485(0x176),'children':_0x232485(0x10e)}),l[_0x232485(0x13e)](f[_0x232485(0x172)],{'variant':_0x232485(0x189),'onClick':()=>_0x7c610[_0x232485(0x16b)](),'children':'Stop\x20presenting'})]});}function J(){const _0xf56682=_0xdd045d;return l[_0xf56682(0x13e)](l[_0xf56682(0x184)],{'children':_0xf56682(0x1a3)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x3fafda,_0x337b7c,_0xdb1a82,_0x2523bb)=>{const _0x18065a=_0xdd045d;for(var _0xac1312=_0x2523bb>0x1?void 0x0:_0x2523bb?K(_0x337b7c,_0xdb1a82):_0x337b7c,_0x1ec31b=_0x3fafda[_0x18065a(0x15e)]-0x1,_0x4f6c42;_0x1ec31b>=0x0;_0x1ec31b--)(_0x4f6c42=_0x3fafda[_0x1ec31b])&&(_0xac1312=_0x4f6c42(_0xac1312)||_0xac1312);return _0xac1312;},L=(_0x41d613,_0x53d675)=>(_0x520e1a,_0x3a1455)=>_0x53d675(_0x520e1a,_0x3a1455,_0x41d613);exports[_0xdd045d(0x1aa)]=class extends o['Disposable']{constructor(_0x255bde,_0x478d88){const _0x2e401b=_0xdd045d;super(),this[_0x2e401b(0x1a1)]=_0x255bde,this['_uiPartsService']=_0x478d88,this['_mountLiveShare']();}[_0xdd045d(0x162)](){const _0x2e83ce=_0xdd045d;this[_0x2e83ce(0x1be)](this[_0x2e83ce(0x1a6)]['registerComponent'](p['BuiltInUIPart'][_0x2e83ce(0x1ae)],()=>p['connectInjector']($,this[_0x2e83ce(0x1a1)])));}},exports[_0xdd045d(0x1aa)]=z([L(0x0,o[_0xdd045d(0x112)](o[_0xdd045d(0x11e)])),L(0x1,p[_0xdd045d(0x137)])],exports[_0xdd045d(0x1aa)]);const Q='live-share.config',w={};var X=Object[_0xdd045d(0x1c7)],ee=(_0x148b90,_0x48f981,_0x3ac92f,_0x1f41e4)=>{const _0x44adda=_0xdd045d;for(var _0x558cba=_0x1f41e4>0x1?void 0x0:_0x1f41e4?X(_0x48f981,_0x3ac92f):_0x48f981,_0x1bd54a=_0x148b90[_0x44adda(0x15e)]-0x1,_0x1ecf7b;_0x1bd54a>=0x0;_0x1bd54a--)(_0x1ecf7b=_0x148b90[_0x1bd54a])&&(_0x558cba=_0x1ecf7b(_0x558cba)||_0x558cba);return _0x558cba;},te=(_0x34fdd0,_0x39b19c)=>(_0x41395f,_0x392a16)=>_0x39b19c(_0x41395f,_0x392a16,_0x34fdd0);let m=class extends o[_0xdd045d(0x155)]{constructor(_0x43c89f){const _0x514a86=_0xdd045d;super(),this[_0x514a86(0x1a7)]=_0x43c89f,this[_0x514a86(0x1a2)]();}[_0xdd045d(0x1a2)](){const _0x289d6d=_0xdd045d;[D[_0x289d6d(0x138)]['id'],D[_0x289d6d(0x17d)]['id'],C[_0x289d6d(0x16c)]['id']]['forEach'](_0xad5a71=>{const _0x3728b0=_0x289d6d;this[_0x3728b0(0x1be)](this[_0x3728b0(0x1a7)][_0x3728b0(0x198)](_0xad5a71));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0xdd045d(0x1c7)],ne=(_0x2cda22,_0xff991e,_0x27744f)=>_0xff991e in _0x2cda22?ie(_0x2cda22,_0xff991e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27744f}):_0x2cda22[_0xff991e]=_0x27744f,re=(_0x522290,_0x2bc755,_0x5b1b72,_0x30634a)=>{for(var _0x55cec2=_0x30634a>0x1?void 0x0:_0x30634a?se(_0x2bc755,_0x5b1b72):_0x2bc755,_0x2c2f6c=_0x522290['length']-0x1,_0x1061e0;_0x2c2f6c>=0x0;_0x2c2f6c--)(_0x1061e0=_0x522290[_0x2c2f6c])&&(_0x55cec2=_0x1061e0(_0x55cec2)||_0x55cec2);return _0x55cec2;},N=(_0x549834,_0x5b3452)=>(_0x110895,_0x42a828)=>_0x5b3452(_0x110895,_0x42a828,_0x549834),A=(_0x32ec45,_0x279aa1,_0x2492fc)=>ne(_0x32ec45,typeof _0x279aa1!=_0xdd045d(0x15f)?_0x279aa1+'':_0x279aa1,_0x2492fc);const oe=_0xdd045d(0x193);exports[_0xdd045d(0x143)]=class extends o[_0xdd045d(0x13d)]{constructor(_0x35867a=w,_0x2be720,_0x1a07f5){const _0x34786a=_0xdd045d;super(),this[_0x34786a(0x110)]=_0x35867a,this[_0x34786a(0x1a1)]=_0x2be720,this[_0x34786a(0x1d1)]=_0x1a07f5;const {..._0x198a7b}=o[_0x34786a(0x1ce)]({},w,this[_0x34786a(0x110)]);this['_configService'][_0x34786a(0x16f)](Q,_0x198a7b);}[_0xdd045d(0x1c3)](){const _0x303cd8=_0xdd045d;o['registerDependencies'](this[_0x303cd8(0x1a1)],o[_0x303cd8(0x1b7)]([[E],[exports[_0x303cd8(0x1bd)]],[m],[exports[_0x303cd8(0x1aa)]]],this['_config'][_0x303cd8(0x152)])),o[_0x303cd8(0x124)](this[_0x303cd8(0x1a1)],[[m]]);}['onRendered'](){const _0x37f82b=_0xdd045d;o[_0x37f82b(0x124)](this[_0x37f82b(0x1a1)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0xdd045d(0x143)],_0xdd045d(0x127),o['UniverInstanceType'][_0xdd045d(0x114)]),A(exports[_0xdd045d(0x143)],'pluginName',oe),exports[_0xdd045d(0x143)]=re([o[_0xdd045d(0x1b2)](b[_0xdd045d(0x164)]),N(0x1,o[_0xdd045d(0x112)](o[_0xdd045d(0x11e)])),N(0x2,o[_0xdd045d(0xfd)])],exports[_0xdd045d(0x143)]),exports[_0xdd045d(0x181)]=$,exports['LiveShareService']=E,exports[_0xdd045d(0x1b8)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3aa1e8=_0x59a7;(function(_0x305b99,_0x2e6be4){const _0x25fad7=_0x59a7,_0x2ebc7f=_0x305b99();while(!![]){try{const _0x548ff1=parseInt(_0x25fad7(0x194))/0x1+parseInt(_0x25fad7(0x192))/0x2+-parseInt(_0x25fad7(0x19a))/0x3+-parseInt(_0x25fad7(0x1a2))/0x4+parseInt(_0x25fad7(0x189))/0x5*(parseInt(_0x25fad7(0x1a6))/0x6)+parseInt(_0x25fad7(0x193))/0x7*(parseInt(_0x25fad7(0x1aa))/0x8)+parseInt(_0x25fad7(0x1a1))/0x9*(-parseInt(_0x25fad7(0x19b))/0xa);if(_0x548ff1===_0x2e6be4)break;else _0x2ebc7f['push'](_0x2ebc7f['shift']());}catch(_0x13d5d6){_0x2ebc7f['push'](_0x2ebc7f['shift']());}}}(_0x142b,0x674b6));import{LiveShareController as _0x4c9c63,LiveShareStatus as _0x2554a3}from'@univerjs-pro/live-share';function _0x142b(){const _0x11e00f=['1310948jEEcCx','tryStartPresenting','getLiveShareStatus','PRESENTING','576iydfZV','startColumn','stopFollowing','startFollowing','1080POcIJQ','_initialize','startRow','20510jmuUje','getUnitId','getRenderById','getSheetId','startPresenting','No\x20active\x20workbook\x20found.','getActiveSheet','getId','stopPresenting','354012GbcFcy','22953SZJHlG','705587TqzzKs','_injector','_commandService','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','892932snuCyd','89410bVSFMq','get','executeCommand','getActiveWorkbook','getLiveShareCoordinatorSync','syncExecuteCommand','675WdfMEo'];_0x142b=function(){return _0x11e00f;};return _0x142b();}import{IRenderManagerService as _0x259b30}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x25ea26}from'@univerjs/sheets';import{SetScrollOperation as _0x1401ee}from'@univerjs/sheets-ui';import{FRange as _0x3f5ef5}from'@univerjs/sheets/facade';import{FUniver as _0x3958f5,FEnum as _0x413a0b}from'@univerjs/core/facade';function _0x59a7(_0x361b8c,_0x405ce1){const _0x142bba=_0x142b();return _0x59a7=function(_0x59a71d,_0x181713){_0x59a71d=_0x59a71d-0x189;let _0x1e8d9a=_0x142bba[_0x59a71d];return _0x1e8d9a;},_0x59a7(_0x361b8c,_0x405ce1);}class I extends _0x3f5ef5{[_0x3aa1e8(0x1ab)](_0xd212b9,_0x1462a4,_0x431d3d,_0x3e8e71,_0x448cb7){const _0x15a281=_0x3aa1e8,_0x491ba6=_0xd212b9['get'](_0x4c9c63),_0x52be57=_0xd212b9[_0x15a281(0x19c)](_0x259b30),_0x46f861=_0x1462a4[_0x15a281(0x18a)](),_0x247036=_0x1462a4[_0x15a281(0x18f)](),_0x1c47b8=_0x491ba6[_0x15a281(0x19f)](_0x46f861);(_0x1c47b8==null?void 0x0:_0x1c47b8[_0x15a281(0x199)]())!==_0x2554a3[_0x15a281(0x1a5)]||(_0x431d3d['getSheetId']()!==_0x247036[_0x15a281(0x18c)]()&&this[_0x15a281(0x196)][_0x15a281(0x19d)](_0x25ea26['id'],{'unitId':_0x46f861,'subUnitId':_0x431d3d['getSheetId']()}),!_0x52be57[_0x15a281(0x18b)](_0x46f861))||_0x448cb7[_0x15a281(0x1a0)](_0x1401ee['id'],{'unitId':_0x1462a4[_0x15a281(0x18a)](),'sheetId':_0x431d3d[_0x15a281(0x18c)](),'sheetViewStartRow':_0x3e8e71[_0x15a281(0x1ac)],'sheetViewStartColumn':_0x3e8e71[_0x15a281(0x1a7)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3f5ef5[_0x3aa1e8(0x197)](I);class m extends _0x3958f5{[_0x3aa1e8(0x1a4)](){const _0x466374=_0x3aa1e8;var _0x3f6759,_0x3559db;const _0x3aa9f9=this['_injector'][_0x466374(0x19c)](_0x4c9c63),_0x3efc03=(_0x3f6759=this['getActiveWorkbook']())==null?void 0x0:_0x3f6759['getId']();if(!_0x3efc03)throw new Error('No\x20active\x20workbook\x20found.');const _0x3d686f=_0x3aa9f9[_0x466374(0x19f)](_0x3efc03);return(_0x3559db=_0x3d686f==null?void 0x0:_0x3d686f[_0x466374(0x199)]())!=null?_0x3559db:_0x2554a3['IDLE'];}[_0x3aa1e8(0x1a9)](){const _0x4cd7b2=_0x3aa1e8;var _0x4c9a95;const _0x2e6757=this['_injector'][_0x4cd7b2(0x19c)](_0x4c9c63),_0x528543=(_0x4c9a95=this[_0x4cd7b2(0x19e)]())==null?void 0x0:_0x4c9a95[_0x4cd7b2(0x190)]();if(!_0x528543)throw new Error(_0x4cd7b2(0x18e));const _0xe87187=_0x2e6757[_0x4cd7b2(0x19f)](_0x528543);if(!_0xe87187)throw new Error(_0x4cd7b2(0x198));_0xe87187[_0x4cd7b2(0x1a9)]();}[_0x3aa1e8(0x1a8)](){const _0x182c9e=_0x3aa1e8;var _0x57b965;const _0x41f6b9=this[_0x182c9e(0x195)][_0x182c9e(0x19c)](_0x4c9c63),_0x4a610e=(_0x57b965=this[_0x182c9e(0x19e)]())==null?void 0x0:_0x57b965['getId']();if(!_0x4a610e)throw new Error('No\x20active\x20workbook\x20found.');const _0x80fcb3=_0x41f6b9[_0x182c9e(0x19f)](_0x4a610e);if(!_0x80fcb3)throw new Error(_0x182c9e(0x198));_0x80fcb3[_0x182c9e(0x1a8)]();}[_0x3aa1e8(0x18d)](){const _0x3abf23=_0x3aa1e8;var _0x4fbcdc;const _0x394721=this[_0x3abf23(0x195)][_0x3abf23(0x19c)](_0x4c9c63),_0x2c0918=(_0x4fbcdc=this[_0x3abf23(0x19e)]())==null?void 0x0:_0x4fbcdc[_0x3abf23(0x190)]();if(!_0x2c0918)throw new Error(_0x3abf23(0x18e));const _0x2ecdde=_0x394721[_0x3abf23(0x19f)](_0x2c0918);if(!_0x2ecdde)throw new Error(_0x3abf23(0x198));_0x2ecdde[_0x3abf23(0x1a3)]();}[_0x3aa1e8(0x191)](){const _0x1f5e2e=_0x3aa1e8;var _0x2cf8d1;const _0x3ea801=this['_injector'][_0x1f5e2e(0x19c)](_0x4c9c63),_0x4b738d=(_0x2cf8d1=this[_0x1f5e2e(0x19e)]())==null?void 0x0:_0x2cf8d1[_0x1f5e2e(0x190)]();if(!_0x4b738d)throw new Error(_0x1f5e2e(0x18e));const _0x4c5f73=_0x3ea801[_0x1f5e2e(0x19f)](_0x4b738d);if(!_0x4c5f73)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4c5f73[_0x1f5e2e(0x191)]();}}_0x3958f5[_0x3aa1e8(0x197)](m);class C extends _0x413a0b{get['LiveShareStatusEnum'](){return _0x2554a3;}}_0x413a0b[_0x3aa1e8(0x197)](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 _0x31e0fe=_0x2156;(function(_0x790349,_0x474d36){const _0x1fc443=_0x2156,_0x42c72b=_0x790349();while(!![]){try{const _0x2d8182=-parseInt(_0x1fc443(0x122))/0x1+-parseInt(_0x1fc443(0x159))/0x2*(parseInt(_0x1fc443(0x14a))/0x3)+parseInt(_0x1fc443(0x110))/0x4*(parseInt(_0x1fc443(0xf1))/0x5)+parseInt(_0x1fc443(0x103))/0x6*(parseInt(_0x1fc443(0xc1))/0x7)+-parseInt(_0x1fc443(0x106))/0x8+-parseInt(_0x1fc443(0x11b))/0x9+parseInt(_0x1fc443(0x157))/0xa;if(_0x2d8182===_0x474d36)break;else _0x42c72b['push'](_0x42c72b['shift']());}catch(_0x1d3f65){_0x42c72b['push'](_0x42c72b['shift']());}}}(_0x5b50,0x699ec));var J=Object[_0x31e0fe(0x11e)],K=(_0x3db337,_0x2b126c,_0x131200)=>_0x2b126c in _0x3db337?J(_0x3db337,_0x2b126c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131200}):_0x3db337[_0x2b126c]=_0x131200,u=(_0x2520db,_0x21a086,_0x52a2b9)=>K(_0x2520db,typeof _0x21a086!=_0x31e0fe(0x114)?_0x21a086+'':_0x21a086,_0x52a2b9);import{Disposable as _0x228b43,toDisposable as _0x5ef63b,IUniverInstanceService as _0x317c62,Inject as _0x3458e3,Injector as _0x5618b7,IConfigService as _0x1c3f63,ICommandService as _0x1e5b71,RxDisposable as _0x2500e7,UniverInstanceType as _0x43d276,DisposableCollection as _0x24f9a5,CommandType as _0x2a21f4,DependentOn as _0x34be54,Plugin as _0x4e1973,merge as _0x50ef25,registerDependencies as _0x484001,mergeOverrideWithDependencies as _0x3f0d95,touchDependencies as _0x24c6ea}from'@univerjs/core';import{useDependency as _0x28b1d7,useObservable as _0x20ed0a,IUIPartsService as _0x584a6b,BuiltInUIPart as _0x3c0cfc,connectInjector as _0x18b5ed}from'@univerjs/ui';import{jsx as _0x17901e,jsxs as _0x19be63,Fragment as _0x30f380}from'react/jsx-runtime';import{Dropdown as _0x24d95f,clsx as _0x4bc289,Button as _0x22044f}from'@univerjs/design';function _0x5b50(){const _0x403622=['complete','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','attrs','string','idle','HEADER_MENU','ONLINE','unsubscribe','data','reverse','random','following','1em','registerSharedOperation','NEW_CHANGESETS','0\x200\x2017\x2017','onCommandExecuted','replace','_handleNewHost','defIds','LIVESHARE_OPERATION','getLiveShareCoordinatorSync','evenodd','NOT_FOLLOWING','mask','getCurrentTypeOfUnit$','getLiveShareCoordinator','UNIVER_UNKNOWN','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','SAME_OPERATION_SHARE_INTERVAL','memberID','_status$','disposeWithMe','getValue','_commandDisposable','480295qHdBbQ','setConfig','LIVESHARE_TERMINATE','_handleOperation','xlink:href','dispose','next','_beIdle','delete','getTypeOfUnitDisposed$','colorChannel1','has','You\x27re\x20following\x20the\x20presenter','entries','_fetchOperations','_unitID','_config','_uiPartsService','92898KiFgFq','_startFollowing','_handleTerminate','323048AUHuog','stopPresenting','_stopFollowing','_liveShareService','add','end','stopFollowing','_reporters','fill','includes','4mTxtLu','FOLLOWING','_sharedOperations','tag','symbol','_collabSessionService','_init','path','_status','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','status$','4246020rGffZR','_presenter','_handleNewChangeSets','defineProperty','LiveShareIcon','UNIVER_LIVE_SHARE_PLUGIN','_handleOffline','637803ciwrbA','shouldShareOperation','asObservable','div','presenter','then','IDLE','createInstance','parse','none','get','_configService','live-share.config','currentColor','sheet','type','sessionStatus$','onRendered','assign','map','params','Start\x20following','_univerInstanceService','_injector','substring','UNIVER_SHEET','getStatus','UniverIcon','_entities','OFFLINE','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','getInitialStates','Stop\x20following','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','children','subscribe','send','_stopPresenting','186702lzSbsx','executeCommand','stringify','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','forEach','dispose$','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','PRESENTING','_startPresenting','toString','length','13802580beKSVg','requireSession','14eUSTeb','text','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','not-following','button','_handleOnline','unitId','startFollowing','displayName','getConfig','values','event$','Stop\x20presenting','245EOypGV','current','LIVESHARE_NEW_HOST','offline','pipe','_collabSession','url(#$1','_commandService','presenting','getMemberID','You\x27are\x20offline.','onStarting','Present\x20this\x20document'];_0x5b50=function(){return _0x403622;};return _0x5b50();}import{useRef as _0x58a2f7,createElement as _0x2db518,forwardRef as _0x42a9a1,useState as _0x5e4848,useEffect as _0x5a2871}from'react';import{CollaborationEvent as _0x51229d,parseProtocolChangeset as _0x18e355}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x537dba,SessionStatus as _0x41a8e6,UniverCollaborationClientPlugin as _0xe5cc13}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x20a015,SetWorksheetActiveOperation as _0x51cc86}from'@univerjs/sheets';import{BehaviorSubject as _0x3363c0,Subject as _0x412524}from'rxjs';import{takeUntil as _0xf2e89d,throttleTime as _0x2c8eeb}from'rxjs/operators';import{SetZoomRatioOperation as _0x516bb6,SetScrollOperation as _0x4ac1aa}from'@univerjs/sheets-ui';function k({ref:_0x1bd7a8,..._0x2e1589}){const _0x5a18c2=_0x31e0fe,{icon:_0x40c36a,id:_0x166bb7,className:_0x3775b2,extend:_0x27651e,..._0x97945c}=_0x2e1589,_0x5348b6=(_0x5a18c2(0x14e)+_0x166bb7+'\x20'+(_0x3775b2||''))['trim'](),_0x6c74a7=_0x58a2f7('_'+Oe());return G(_0x40c36a,''+_0x166bb7,{'defIds':_0x40c36a[_0x5a18c2(0xe1)],'idSuffix':_0x6c74a7[_0x5a18c2(0xc2)]},{'ref':_0x1bd7a8,'className':_0x5348b6,..._0x97945c},_0x27651e);}function G(_0x44b7a0,_0x8b3723,_0x512f4d,_0x18cfe5,_0x2e6872){const _0x33b159=_0x31e0fe;return _0x2db518(_0x44b7a0['tag'],{'key':_0x8b3723,...be(_0x44b7a0,_0x512f4d,_0x2e6872),..._0x18cfe5},(Ee(_0x44b7a0,_0x512f4d)[_0x33b159(0x146)]||[])[_0x33b159(0x135)]((_0x44d82a,_0x195b36)=>G(_0x44d82a,_0x8b3723+'-'+_0x44b7a0['tag']+'-'+_0x195b36,_0x512f4d,void 0x0,_0x2e6872)));}function be(_0x50d6a7,_0xb55631,_0x53c9b4){const _0x36e0e3=_0x31e0fe,_0x52e9f7={..._0x50d6a7['attrs']};_0x53c9b4!=null&&_0x53c9b4[_0x36e0e3(0xfb)]&&_0x52e9f7[_0x36e0e3(0x10e)]==='colorChannel1'&&(_0x52e9f7[_0x36e0e3(0x10e)]=_0x53c9b4['colorChannel1']),_0x50d6a7[_0x36e0e3(0x113)]===_0x36e0e3(0xe6)&&_0x52e9f7['id']&&(_0x52e9f7['id']=_0x52e9f7['id']+_0xb55631[_0x36e0e3(0x144)]),Object['entries'](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x2ed913,_0x1b370f])=>{const _0x233cc7=_0x36e0e3;_0x2ed913===_0x233cc7(0xe6)&&typeof _0x1b370f=='string'&&(_0x52e9f7[_0x2ed913]=_0x1b370f[_0x233cc7(0xdf)](/url\(#(.*)\)/,_0x233cc7(0xc7)+_0xb55631[_0x233cc7(0x144)]+')'));});const {defIds:_0x3854fb}=_0xb55631;return!_0x3854fb||_0x3854fb[_0x36e0e3(0x156)]===0x0||(_0x50d6a7[_0x36e0e3(0x113)]==='use'&&_0x52e9f7['xlink:href']&&(_0x52e9f7['xlink:href']=_0x52e9f7[_0x36e0e3(0xf5)]+_0xb55631[_0x36e0e3(0x144)]),Object[_0x36e0e3(0xfe)](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x1c5354,_0x11f227])=>{const _0x3666a3=_0x36e0e3;typeof _0x11f227==_0x3666a3(0xd1)&&(_0x52e9f7[_0x1c5354]=_0x11f227['replace'](/url\(#(.*)\)/,_0x3666a3(0xc7)+_0xb55631[_0x3666a3(0x144)]+')'));})),_0x52e9f7;}function Ee(_0x55b46f,_0x8f397){const _0x3f08c6=_0x31e0fe;var _0x41eb48;const {defIds:_0x4dffc6}=_0x8f397;return!_0x4dffc6||_0x4dffc6['length']===0x0?_0x55b46f:_0x55b46f['tag']==='defs'&&((_0x41eb48=_0x55b46f[_0x3f08c6(0x146)])!=null&&_0x41eb48[_0x3f08c6(0x156)])?{..._0x55b46f,'children':_0x55b46f['children'][_0x3f08c6(0x135)](_0x26a332=>typeof _0x26a332[_0x3f08c6(0xd0)]['id']==_0x3f08c6(0xd1)&&_0x4dffc6&&_0x4dffc6['includes'](_0x26a332[_0x3f08c6(0xd0)]['id'])?{..._0x26a332,'attrs':{..._0x26a332[_0x3f08c6(0xd0)],'id':_0x26a332[_0x3f08c6(0xd0)]['id']+_0x8f397['idSuffix']}}:_0x26a332)}:_0x55b46f;}function Oe(){const _0x2c1d6a=_0x31e0fe;return Math[_0x2c1d6a(0xd8)]()[_0x2c1d6a(0x155)](0x24)[_0x2c1d6a(0x13a)](0x2,0x8);}k[_0x31e0fe(0xbc)]=_0x31e0fe(0x13d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31e0fe(0x12b),'viewBox':_0x31e0fe(0xdd),'width':_0x31e0fe(0xda),'height':_0x31e0fe(0xda)},'children':[{'tag':_0x31e0fe(0x117),'attrs':{'fill':'currentColor','d':_0x31e0fe(0xcf)}},{'tag':_0x31e0fe(0x117),'attrs':{'fill':_0x31e0fe(0x12f),'d':_0x31e0fe(0xea),'fillRule':_0x31e0fe(0xe4),'clipRule':_0x31e0fe(0xe4)}}]},W=_0x42a9a1(function(_0x493e85,_0x258d8f){const _0x1efa15=_0x31e0fe;return _0x2db518(k,Object[_0x1efa15(0x134)]({},_0x493e85,{'id':'live-share-icon','ref':_0x258d8f,'icon':we}));});W['displayName']=_0x31e0fe(0x11f);class L extends _0x228b43{constructor(){const _0x4533b7=_0x31e0fe;super(...arguments),u(this,_0x4533b7(0x112),new Set()),u(this,_0x4533b7(0x10d),new Set());}[_0x31e0fe(0xdb)](_0x15536a){const _0x56d8f9=_0x31e0fe;return this[_0x56d8f9(0x112)][_0x56d8f9(0x10a)](_0x15536a),_0x5ef63b(()=>this[_0x56d8f9(0x112)]['delete'](_0x15536a));}['registerInitialStateReporter'](_0x316e22){const _0x5d38e1=_0x31e0fe;return this[_0x5d38e1(0x10d)]['add'](_0x316e22),_0x5ef63b(()=>this['_reporters'][_0x5d38e1(0xf9)](_0x316e22));}[_0x31e0fe(0x123)](_0x46da99){const _0x1724a1=_0x31e0fe;return this[_0x1724a1(0x112)][_0x1724a1(0xfc)](_0x46da99);}[_0x31e0fe(0x142)](_0xeedf09){const _0x25bba2=_0x31e0fe;return Array['from'](this[_0x25bba2(0x10d)])[_0x25bba2(0x135)](_0x29dc5d=>_0x29dc5d(_0xeedf09));}}var Ne=Object[_0x31e0fe(0x140)],Y=(_0x45d860,_0x73ba24,_0x1579c0,_0xf72ddc)=>{for(var _0xaba4a=_0xf72ddc>0x1?void 0x0:_0xf72ddc?Ne(_0x73ba24,_0x1579c0):_0x73ba24,_0x1001e9=_0x45d860['length']-0x1,_0x3aba27;_0x1001e9>=0x0;_0x1001e9--)(_0x3aba27=_0x45d860[_0x1001e9])&&(_0xaba4a=_0x3aba27(_0xaba4a)||_0xaba4a);return _0xaba4a;},_=(_0x18447b,_0x497803)=>(_0x314039,_0x593479)=>_0x497803(_0x314039,_0x593479,_0x18447b);let S=class extends _0x2500e7{constructor(_0x55eb58,_0x4da080,_0x171ff1){const _0x22c51f=_0x31e0fe;super(),u(this,'_entities',new Map()),(this[_0x22c51f(0x138)]=_0x55eb58,this[_0x22c51f(0x139)]=_0x4da080,this[_0x22c51f(0x115)]=_0x171ff1,this['_init']());}async[_0x31e0fe(0xe8)](_0xa6ccb7){const _0x43ebec=_0x31e0fe;return this['_entities'][_0x43ebec(0xfc)](_0xa6ccb7)||await this[_0x43ebec(0x14d)](_0xa6ccb7),this['_entities']['get'](_0xa6ccb7);}[_0x31e0fe(0xe3)](_0x1a3558){const _0x608d02=_0x31e0fe;var _0x5a03cb;return(_0x5a03cb=this[_0x608d02(0x13e)][_0x608d02(0x12c)](_0x1a3558))!=null?_0x5a03cb:null;}['_init'](){const _0x217b4e=_0x31e0fe;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))[_0x217b4e(0x147)](async _0x251488=>{const _0x1751d0=_0x217b4e,_0x52792f=_0x251488['getUnitId']();this[_0x1751d0(0x13e)][_0x1751d0(0xfc)](_0x52792f)||this[_0x1751d0(0x14d)](_0x52792f);}),this[_0x217b4e(0x138)][_0x217b4e(0xfa)](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))['subscribe'](_0x1eb536=>{const _0x436c8d=_0x217b4e,_0x208fcd=_0x1eb536[_0x436c8d(0x15c)](),_0x3d33dd=this[_0x436c8d(0x13e)][_0x436c8d(0x12c)](_0x208fcd);_0x3d33dd==null||_0x3d33dd[_0x436c8d(0xf6)]();});}async[_0x31e0fe(0x14d)](_0x14b2bc){const _0x2c26b4=_0x31e0fe,_0x14256a=await this[_0x2c26b4(0x115)][_0x2c26b4(0x158)](_0x14b2bc),_0x14cf32=this['_injector'][_0x2c26b4(0x129)](N,_0x14b2bc,_0x14256a);return _0x14cf32['init'](),this[_0x2c26b4(0x13e)][_0x2c26b4(0x151)](_0x14b2bc,_0x14cf32),_0x14cf32;}};S=Y([_(0x0,_0x317c62),_(0x1,_0x3458e3(_0x5618b7)),_(0x2,_0x3458e3(_0x537dba))],S);var c=(_0x10b00f=>(_0x10b00f[_0x31e0fe(0x13f)]=_0x31e0fe(0xc4),_0x10b00f[_0x31e0fe(0x128)]=_0x31e0fe(0xd2),_0x10b00f[_0x31e0fe(0x111)]=_0x31e0fe(0xd9),_0x10b00f[_0x31e0fe(0xe5)]='not-following',_0x10b00f[_0x31e0fe(0x153)]='presenting',_0x10b00f))(c||{});function _0x2156(_0x4ecbaf,_0x3af9de){const _0x5b5021=_0x5b50();return _0x2156=function(_0x2156f0,_0x2560e0){_0x2156f0=_0x2156f0-0xb7;let _0x46e9c7=_0x5b5021[_0x2156f0];return _0x46e9c7;},_0x2156(_0x4ecbaf,_0x3af9de);}const Ce=_0x31e0fe(0xeb),De=0xc8;let N=class extends _0x2500e7{constructor(_0x474d6c,_0x408502,_0x392c54,_0x546258,_0x38825d){const _0x56aa39=_0x31e0fe;super(),u(this,'_status$',new _0x3363c0(_0x56aa39(0xd2))),u(this,'status$',this[_0x56aa39(0xed)][_0x56aa39(0x124)]()),u(this,_0x56aa39(0x116),!0x1),u(this,'_commandDisposable',null),u(this,_0x56aa39(0x11c),null),(this[_0x56aa39(0x100)]=_0x474d6c,this[_0x56aa39(0xc6)]=_0x408502,this['_configService']=_0x392c54,this[_0x56aa39(0x109)]=_0x546258,this[_0x56aa39(0xc8)]=_0x38825d);}get[_0x31e0fe(0x118)](){const _0x5a207f=_0x31e0fe;return this['_status$'][_0x5a207f(0xef)]();}['dispose'](){const _0xc64f10=_0x31e0fe;var _0x7e83e8;(_0x7e83e8=this[_0xc64f10(0xf0)])==null||_0x7e83e8[_0xc64f10(0xf6)](),this[_0xc64f10(0xed)]['next'](_0xc64f10(0xd2)),this['_status$']['complete']();}[_0x31e0fe(0x13c)](){return this['_status'];}['init'](){const _0x15fd65=_0x31e0fe;this['_init']||(this[_0x15fd65(0x116)]=!0x0,this[_0x15fd65(0xc6)][_0x15fd65(0x132)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0xc51298=>{const _0x4b90fe=_0x15fd65;switch(_0xc51298){case _0x41a8e6[_0x4b90fe(0x13f)]:this[_0x4b90fe(0x121)]();break;case _0x41a8e6[_0x4b90fe(0xd4)]:this[_0x4b90fe(0xb9)]();break;}}),this[_0x15fd65(0xc6)][_0x15fd65(0xbf)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0x3b9818=>{const _0x50fbd7=_0x15fd65,{eventID:_0x5f0a81}=_0x3b9818;switch(_0x5f0a81){case _0x51229d[_0x50fbd7(0xc3)]:this[_0x50fbd7(0xe0)](_0x3b9818);break;case _0x51229d[_0x50fbd7(0xe2)]:this[_0x50fbd7(0xf4)](_0x3b9818);break;case _0x51229d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x51229d[_0x50fbd7(0xdc)]:this['_handleNewChangeSets'](_0x3b9818);break;}}));}['tryStartPresenting'](){const _0xfb5af4=_0x31e0fe;this[_0xfb5af4(0xc6)][_0xfb5af4(0x148)]({'eventID':_0x51229d[_0xfb5af4(0x141)],'data':{'unitID':this[_0xfb5af4(0x100)],'userID':this[_0xfb5af4(0xc6)]['getMemberID']()}},this[_0xfb5af4(0x100)]);}[_0x31e0fe(0x107)](){const _0x3c0ab5=_0x31e0fe;this[_0x3c0ab5(0x118)]===_0x3c0ab5(0xc9)&&(this[_0x3c0ab5(0xed)][_0x3c0ab5(0xf7)]('idle'),this[_0x3c0ab5(0xc6)][_0x3c0ab5(0x148)]({'eventID':_0x51229d[_0x3c0ab5(0xf3)],'data':{'unitID':this[_0x3c0ab5(0x100)]}},this[_0x3c0ab5(0x100)]));}[_0x31e0fe(0xbb)](){const _0x1f4608=_0x31e0fe;this[_0x1f4608(0x118)]==='not-following'&&(this[_0x1f4608(0xed)][_0x1f4608(0xf7)]('following'),this[_0x1f4608(0x104)]());}[_0x31e0fe(0x10c)](){const _0x59d6c8=_0x31e0fe;this['_status']===_0x59d6c8(0xd9)&&this['_stopFollowing']();}[_0x31e0fe(0xe0)](_0x4d09bb){const _0x37cb3a=_0x31e0fe,{presenter:_0x1b3a1f}=_0x4d09bb['data'],_0x560ad5=this[_0x37cb3a(0xc6)][_0x37cb3a(0xca)]();this['_presenter']=_0x1b3a1f,_0x1b3a1f===_0x560ad5?(this[_0x37cb3a(0x108)](),this['_startPresenting']()):this[_0x37cb3a(0x118)]!=='not-following'&&(this[_0x37cb3a(0x149)](),this['_startFollowing']());}[_0x31e0fe(0xff)](){const _0xaa4ebe=_0x31e0fe,_0x3a4a34={'eventID':_0x51229d['LIVESHARE_FETCH_OPERATIONS']};this[_0xaa4ebe(0xc6)][_0xaa4ebe(0x148)](_0x3a4a34,this[_0xaa4ebe(0x100)]);}[_0x31e0fe(0x105)](){const _0x497cdb=_0x31e0fe;this['_presenter']=null,this[_0x497cdb(0x118)]!=='presenting'&&this[_0x497cdb(0xf8)]();}[_0x31e0fe(0x11d)](_0x4065a4){const _0x163a88=_0x31e0fe;if(this['_status']===_0x163a88(0xd9)&&this['_presenter']===_0x4065a4['data'][_0x163a88(0xec)]){const _0x46ad8c=_0x18e355(_0x4065a4[_0x163a88(0xd6)])['mutations'][_0x163a88(0xd7)]()['find'](_0x13a32c=>_0x13a32c['id']===_0x20a015['id']);if(_0x46ad8c){const _0x5f0172=_0x46ad8c['params'][_0x163a88(0xba)],_0x2252cb=_0x46ad8c['params'][_0x163a88(0x130)]['id'];setTimeout(()=>{const _0x4cedcc=_0x163a88;this['_commandService'][_0x4cedcc(0x14b)](_0x51cc86['id'],{'unitId':_0x5f0172,'subUnitId':_0x2252cb},{'fromCollab':!0x0});});}}}[_0x31e0fe(0x154)](){const _0x4d1d5b=_0x31e0fe;this['_status$']['next'](_0x4d1d5b(0xc9));const _0x3b8b1a=new Map(),_0x458268=this[_0x4d1d5b(0xf0)]=new _0x24f9a5();_0x458268[_0x4d1d5b(0x10a)](_0x5ef63b(()=>{const _0x190f1a=_0x4d1d5b;_0x3b8b1a[_0x190f1a(0x14f)](_0x77114b=>_0x77114b[_0x190f1a(0xce)]()),_0x3b8b1a['clear']();})),_0x458268[_0x4d1d5b(0x10a)](this[_0x4d1d5b(0xc8)][_0x4d1d5b(0xde)](_0x4bd36b=>{const _0x339294=_0x4d1d5b;var _0xdbc029;if(_0x4bd36b['type']!==_0x2a21f4['OPERATION']||!this[_0x339294(0x109)]['shouldShareOperation'](_0x4bd36b['id']))return;const {id:_0x200d1f}=_0x4bd36b;let _0x2c9bd6;_0x3b8b1a['has'](_0x200d1f)?_0x2c9bd6=_0x3b8b1a[_0x339294(0x12c)](_0x200d1f):(_0x2c9bd6=new _0x412524(),_0x3b8b1a[_0x339294(0x151)](_0x200d1f,_0x2c9bd6),_0x2c9bd6[_0x339294(0xc5)](_0x2c8eeb((_0xdbc029=this[_0x339294(0x12d)][_0x339294(0xbd)](Ce))!=null?_0xdbc029:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1e493d=>{const _0x528b64=_0x339294;this[_0x528b64(0xc6)][_0x528b64(0x148)]({'eventID':_0x51229d[_0x528b64(0xe2)],'data':{'unitID':this[_0x528b64(0x100)],'operations':{[_0x1e493d['id']]:{'id':_0x1e493d['id'],'params':JSON[_0x528b64(0x14c)](_0x1e493d['params'])}}}},this[_0x528b64(0x100)]);})),_0x2c9bd6[_0x339294(0xf7)](_0x4bd36b);})),this['_liveShareService']['getInitialStates'](this[_0x4d1d5b(0x100)])['forEach'](_0x4defc1=>this[_0x4d1d5b(0xc6)][_0x4d1d5b(0x148)]({'eventID':_0x51229d['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d1d5b(0x100)],'operations':{[_0x4defc1['id']]:{'id':_0x4defc1['id'],'params':JSON[_0x4d1d5b(0x14c)](_0x4defc1[_0x4d1d5b(0x136)])}}}},this['_unitID']));}[_0x31e0fe(0x149)](){const _0x12d733=_0x31e0fe;var _0x2cd6f0;this[_0x12d733(0xed)][_0x12d733(0xf7)](_0x12d733(0xd2)),(_0x2cd6f0=this[_0x12d733(0xf0)])==null||_0x2cd6f0['dispose'](),this[_0x12d733(0xf0)]=null;}[_0x31e0fe(0x104)](){const _0x149a61=_0x31e0fe;var _0x471c96;(_0x471c96=this[_0x149a61(0xf0)])==null||_0x471c96[_0x149a61(0xf6)](),this[_0x149a61(0xed)][_0x149a61(0xf7)](_0x149a61(0xd9));}[_0x31e0fe(0xf8)](){const _0x1da58a=_0x31e0fe;var _0x521932;this[_0x1da58a(0xed)][_0x1da58a(0xf7)](_0x1da58a(0xd2)),(_0x521932=this[_0x1da58a(0xf0)])==null||_0x521932[_0x1da58a(0xf6)](),this[_0x1da58a(0xf0)]=null;}[_0x31e0fe(0x108)](){const _0x1a38f5=_0x31e0fe;var _0x4ae33f;this[_0x1a38f5(0xed)][_0x1a38f5(0xf7)]('not-following'),(_0x4ae33f=this[_0x1a38f5(0xf0)])==null||_0x4ae33f[_0x1a38f5(0xf6)]();}[_0x31e0fe(0xf4)](_0xda7a5a){const _0x145449=_0x31e0fe;if([_0x145449(0xc9),_0x145449(0xb7),_0x145449(0xc4)][_0x145449(0x10f)](this[_0x145449(0x118)])||!_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]||_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]===this[_0x145449(0xc6)][_0x145449(0xca)]())return;this[_0x145449(0x118)]===_0x145449(0xd2)&&this[_0x145449(0x104)]();const _0x4930dd=_0xda7a5a[_0x145449(0xd6)]['operations'];Object[_0x145449(0xbe)](_0x4930dd)['forEach'](_0xfc945=>{const _0xf918b1=_0x145449;this[_0xf918b1(0xc8)][_0xf918b1(0x14b)](_0xfc945['id'],_0xfc945[_0xf918b1(0x136)]?JSON[_0xf918b1(0x12a)](_0xfc945[_0xf918b1(0x136)]):null,{'fromCollab':!0x0});});}[_0x31e0fe(0x121)](){const _0x38c0f0=_0x31e0fe;var _0xd55dec;this['_status$'][_0x38c0f0(0xf7)](_0x38c0f0(0xc4)),(_0xd55dec=this[_0x38c0f0(0xf0)])==null||_0xd55dec['dispose']();}['_handleOnline'](){const _0x159811=_0x31e0fe;this['_status$']['next'](_0x159811(0xd2)),this[_0x159811(0xff)]();}};N=Y([_(0x2,_0x1c3f63),_(0x3,_0x3458e3(L)),_(0x4,_0x1e5b71)],N);function Le(){const _0x1d7bef=_0x31e0fe,_0x55bb7a=_0x28b1d7(S),_0x40b6c7=_0x28b1d7(_0x317c62),_0x5bc88a=_0x20ed0a(()=>_0x40b6c7[_0x1d7bef(0xe7)](_0x43d276[_0x1d7bef(0x13b)]),void 0x0,!0x1,[]),[_0x37f89d,_0x544345]=_0x5e4848(null),[_0x3f6ab9,_0x595009]=_0x5e4848(c[_0x1d7bef(0x128)]),_0x30e7be=_0x58a2f7(null);return _0x5a2871(()=>(_0x5bc88a&&_0x55bb7a[_0x1d7bef(0xe8)](_0x5bc88a[_0x1d7bef(0x15c)]())[_0x1d7bef(0x127)](_0x43ca4f=>{const _0x8db60f=_0x1d7bef;_0x544345(_0x43ca4f),_0x30e7be[_0x8db60f(0xc2)]=_0x43ca4f[_0x8db60f(0x11a)][_0x8db60f(0x147)](_0x4c868e=>{_0x595009(_0x4c868e);});}),()=>{const _0x106c21=_0x1d7bef;var _0x4d2e76;(_0x4d2e76=_0x30e7be['current'])==null||_0x4d2e76[_0x106c21(0xd5)](),_0x30e7be['current']=null;}),[_0x5bc88a,_0x55bb7a]),_0x37f89d?_0x17901e(_0x24d95f,{'align':_0x1d7bef(0x10b),'disabled':_0x3f6ab9===c['OFFLINE'],'className':_0x1d7bef(0x119),'overlay':_0x17901e(Re,{'status':_0x3f6ab9,'coordinator':_0x37f89d}),'children':_0x17901e('button',{'className':_0x4bc289(_0x1d7bef(0x145),{'univer-cursor-not-allowed':_0x3f6ab9===c[_0x1d7bef(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f6ab9!==c[_0x1d7bef(0x13f)]}),'type':_0x1d7bef(0xb8),'children':_0x17901e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x217568){const _0xe8d60a=_0x31e0fe,{status:_0x4d87ca,coordinator:_0x1e0159}=_0x217568;switch(_0x4d87ca){case c[_0xe8d60a(0x128)]:return _0x17901e($e,{'coordinator':_0x1e0159});case c['FOLLOWING']:return _0x17901e(xe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0xe5)]:return _0x17901e(Pe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0x13f)]:return _0x17901e(Te,{});case c['PRESENTING']:return _0x17901e(Ae,{'coordinator':_0x1e0159});default:return null;}}function $e(_0x5d46c7){const _0x592148=_0x31e0fe,{coordinator:_0x4ca482}=_0x5d46c7;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x592148(0xcd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x4ca482['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x5a0919){const _0x49176b=_0x31e0fe,{coordinator:_0x98d896}=_0x5a0919;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x49176b(0x152),'children':_0x49176b(0xfd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x98d896[_0x49176b(0x10c)](),'children':_0x49176b(0x143)})]});}function Pe(_0x5d82a4){const _0x3f5c57=_0x31e0fe,{coordinator:_0x1fb1b6}=_0x5d82a4;return _0x19be63(_0x30f380,{'children':[_0x17901e(_0x3f5c57(0x125),{'className':_0x3f5c57(0x152),'children':_0x3f5c57(0x15b)}),_0x17901e(_0x22044f,{'variant':_0x3f5c57(0x15a),'onClick':()=>_0x1fb1b6[_0x3f5c57(0xbb)](),'children':_0x3f5c57(0x137)})]});}function Ae(_0x1d8cfb){const _0x35f30c=_0x31e0fe,{coordinator:_0x65e032}=_0x1d8cfb;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x35f30c(0x152),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x17901e(_0x22044f,{'variant':'default','onClick':()=>_0x65e032[_0x35f30c(0x107)](),'children':_0x35f30c(0xc0)})]});}function Te(){const _0x3befb6=_0x31e0fe;return _0x17901e(_0x30f380,{'children':_0x3befb6(0xcb)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x12526f,_0x116b0f,_0x148ba8,_0x23038f)=>{const _0x296034=_0x31e0fe;for(var _0x3f349f=_0x23038f>0x1?void 0x0:_0x23038f?Fe(_0x116b0f,_0x148ba8):_0x116b0f,_0x421f4b=_0x12526f[_0x296034(0x156)]-0x1,_0x531aae;_0x421f4b>=0x0;_0x421f4b--)(_0x531aae=_0x12526f[_0x421f4b])&&(_0x3f349f=_0x531aae(_0x3f349f)||_0x3f349f);return _0x3f349f;},A=(_0x17ec15,_0x1051bf)=>(_0x133fe3,_0x3d1ef2)=>_0x1051bf(_0x133fe3,_0x3d1ef2,_0x17ec15);let m=class extends _0x228b43{constructor(_0x254e22,_0x28b170){const _0x22554b=_0x31e0fe;super(),this[_0x22554b(0x139)]=_0x254e22,this[_0x22554b(0x102)]=_0x28b170,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x3e11fb=_0x31e0fe;this[_0x3e11fb(0xee)](this[_0x3e11fb(0x102)]['registerComponent'](_0x3c0cfc[_0x3e11fb(0xd3)],()=>_0x18b5ed(Le,this[_0x3e11fb(0x139)])));}};m=He([A(0x0,_0x3458e3(_0x5618b7)),A(0x1,_0x584a6b)],m);const ye=_0x31e0fe(0x12e),T={};var Ue=Object[_0x31e0fe(0x140)],Ve=(_0x51c540,_0x307ead,_0x126981,_0x318a33)=>{const _0x4edf03=_0x31e0fe;for(var _0x557686=_0x318a33>0x1?void 0x0:_0x318a33?Ue(_0x307ead,_0x126981):_0x307ead,_0x35138d=_0x51c540[_0x4edf03(0x156)]-0x1,_0x32df21;_0x35138d>=0x0;_0x35138d--)(_0x32df21=_0x51c540[_0x35138d])&&(_0x557686=_0x32df21(_0x557686)||_0x557686);return _0x557686;},je=(_0x3d62d6,_0x59c896)=>(_0x3eb9ab,_0x53e26a)=>_0x59c896(_0x3eb9ab,_0x53e26a,_0x3d62d6);let I=class extends _0x228b43{constructor(_0x588829){const _0x20e3dd=_0x31e0fe;super(),this[_0x20e3dd(0x109)]=_0x588829,this[_0x20e3dd(0x116)]();}[_0x31e0fe(0x116)](){const _0x1b5618=_0x31e0fe;[_0x516bb6['id'],_0x4ac1aa['id'],_0x51cc86['id']][_0x1b5618(0x14f)](_0x5560eb=>{const _0x33ee34=_0x1b5618;this[_0x33ee34(0xee)](this[_0x33ee34(0x109)][_0x33ee34(0xdb)](_0x5560eb));});}};I=Ve([je(0x0,_0x3458e3(L))],I);var Me=Object[_0x31e0fe(0x11e)],ke=Object[_0x31e0fe(0x140)],Ge=(_0x562f13,_0x12fc5f,_0x5dc6bb)=>_0x12fc5f in _0x562f13?Me(_0x562f13,_0x12fc5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dc6bb}):_0x562f13[_0x12fc5f]=_0x5dc6bb,We=(_0x1d86c1,_0x5061d3,_0x55cacd,_0x4d63df)=>{const _0xc46480=_0x31e0fe;for(var _0x55d2eb=_0x4d63df>0x1?void 0x0:_0x4d63df?ke(_0x5061d3,_0x55cacd):_0x5061d3,_0x34690e=_0x1d86c1[_0xc46480(0x156)]-0x1,_0xca3e05;_0x34690e>=0x0;_0x34690e--)(_0xca3e05=_0x1d86c1[_0x34690e])&&(_0x55d2eb=_0xca3e05(_0x55d2eb)||_0x55d2eb);return _0x55d2eb;},F=(_0x428281,_0x3d99cf)=>(_0x1847a3,_0x26043a)=>_0x3d99cf(_0x1847a3,_0x26043a,_0x428281),B=(_0x5b44af,_0x1140a1,_0x4b85f9)=>Ge(_0x5b44af,typeof _0x1140a1!='symbol'?_0x1140a1+'':_0x1140a1,_0x4b85f9);const Ye=_0x31e0fe(0x120);let b=class extends _0x4e1973{constructor(_0x11d1b1=T,_0x462d12,_0x39cb0c){const _0x2c0459=_0x31e0fe;super(),this[_0x2c0459(0x101)]=_0x11d1b1,this[_0x2c0459(0x139)]=_0x462d12,this[_0x2c0459(0x12d)]=_0x39cb0c;const {..._0x20c96b}=_0x50ef25({},T,this['_config']);this[_0x2c0459(0x12d)][_0x2c0459(0xf2)](ye,_0x20c96b);}[_0x31e0fe(0xcc)](){const _0x5aeb0f=_0x31e0fe;_0x484001(this[_0x5aeb0f(0x139)],_0x3f0d95([[L],[S],[I],[m]],this['_config']['override'])),_0x24c6ea(this['_injector'],[[I]]);}[_0x31e0fe(0x133)](){const _0x49dcbf=_0x31e0fe;_0x24c6ea(this[_0x49dcbf(0x139)],[[m]]);}};B(b,_0x31e0fe(0x131),_0x43d276[_0x31e0fe(0xe9)]),B(b,'pluginName',Ye),b=We([_0x34be54(_0xe5cc13),F(0x1,_0x3458e3(_0x5618b7)),F(0x2,_0x1c3f63)],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 _0x3aa1e8=_0x59a7;(function(_0x305b99,_0x2e6be4){const _0x25fad7=_0x59a7,_0x2ebc7f=_0x305b99();while(!![]){try{const _0x548ff1=parseInt(_0x25fad7(0x194))/0x1+parseInt(_0x25fad7(0x192))/0x2+-parseInt(_0x25fad7(0x19a))/0x3+-parseInt(_0x25fad7(0x1a2))/0x4+parseInt(_0x25fad7(0x189))/0x5*(parseInt(_0x25fad7(0x1a6))/0x6)+parseInt(_0x25fad7(0x193))/0x7*(parseInt(_0x25fad7(0x1aa))/0x8)+parseInt(_0x25fad7(0x1a1))/0x9*(-parseInt(_0x25fad7(0x19b))/0xa);if(_0x548ff1===_0x2e6be4)break;else _0x2ebc7f['push'](_0x2ebc7f['shift']());}catch(_0x13d5d6){_0x2ebc7f['push'](_0x2ebc7f['shift']());}}}(_0x142b,0x674b6));import{LiveShareController as _0x4c9c63,LiveShareStatus as _0x2554a3}from'@univerjs-pro/live-share';function _0x142b(){const _0x11e00f=['1310948jEEcCx','tryStartPresenting','getLiveShareStatus','PRESENTING','576iydfZV','startColumn','stopFollowing','startFollowing','1080POcIJQ','_initialize','startRow','20510jmuUje','getUnitId','getRenderById','getSheetId','startPresenting','No\x20active\x20workbook\x20found.','getActiveSheet','getId','stopPresenting','354012GbcFcy','22953SZJHlG','705587TqzzKs','_injector','_commandService','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','892932snuCyd','89410bVSFMq','get','executeCommand','getActiveWorkbook','getLiveShareCoordinatorSync','syncExecuteCommand','675WdfMEo'];_0x142b=function(){return _0x11e00f;};return _0x142b();}import{IRenderManagerService as _0x259b30}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x25ea26}from'@univerjs/sheets';import{SetScrollOperation as _0x1401ee}from'@univerjs/sheets-ui';import{FRange as _0x3f5ef5}from'@univerjs/sheets/facade';import{FUniver as _0x3958f5,FEnum as _0x413a0b}from'@univerjs/core/facade';function _0x59a7(_0x361b8c,_0x405ce1){const _0x142bba=_0x142b();return _0x59a7=function(_0x59a71d,_0x181713){_0x59a71d=_0x59a71d-0x189;let _0x1e8d9a=_0x142bba[_0x59a71d];return _0x1e8d9a;},_0x59a7(_0x361b8c,_0x405ce1);}class I extends _0x3f5ef5{[_0x3aa1e8(0x1ab)](_0xd212b9,_0x1462a4,_0x431d3d,_0x3e8e71,_0x448cb7){const _0x15a281=_0x3aa1e8,_0x491ba6=_0xd212b9['get'](_0x4c9c63),_0x52be57=_0xd212b9[_0x15a281(0x19c)](_0x259b30),_0x46f861=_0x1462a4[_0x15a281(0x18a)](),_0x247036=_0x1462a4[_0x15a281(0x18f)](),_0x1c47b8=_0x491ba6[_0x15a281(0x19f)](_0x46f861);(_0x1c47b8==null?void 0x0:_0x1c47b8[_0x15a281(0x199)]())!==_0x2554a3[_0x15a281(0x1a5)]||(_0x431d3d['getSheetId']()!==_0x247036[_0x15a281(0x18c)]()&&this[_0x15a281(0x196)][_0x15a281(0x19d)](_0x25ea26['id'],{'unitId':_0x46f861,'subUnitId':_0x431d3d['getSheetId']()}),!_0x52be57[_0x15a281(0x18b)](_0x46f861))||_0x448cb7[_0x15a281(0x1a0)](_0x1401ee['id'],{'unitId':_0x1462a4[_0x15a281(0x18a)](),'sheetId':_0x431d3d[_0x15a281(0x18c)](),'sheetViewStartRow':_0x3e8e71[_0x15a281(0x1ac)],'sheetViewStartColumn':_0x3e8e71[_0x15a281(0x1a7)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3f5ef5[_0x3aa1e8(0x197)](I);class m extends _0x3958f5{[_0x3aa1e8(0x1a4)](){const _0x466374=_0x3aa1e8;var _0x3f6759,_0x3559db;const _0x3aa9f9=this['_injector'][_0x466374(0x19c)](_0x4c9c63),_0x3efc03=(_0x3f6759=this['getActiveWorkbook']())==null?void 0x0:_0x3f6759['getId']();if(!_0x3efc03)throw new Error('No\x20active\x20workbook\x20found.');const _0x3d686f=_0x3aa9f9[_0x466374(0x19f)](_0x3efc03);return(_0x3559db=_0x3d686f==null?void 0x0:_0x3d686f[_0x466374(0x199)]())!=null?_0x3559db:_0x2554a3['IDLE'];}[_0x3aa1e8(0x1a9)](){const _0x4cd7b2=_0x3aa1e8;var _0x4c9a95;const _0x2e6757=this['_injector'][_0x4cd7b2(0x19c)](_0x4c9c63),_0x528543=(_0x4c9a95=this[_0x4cd7b2(0x19e)]())==null?void 0x0:_0x4c9a95[_0x4cd7b2(0x190)]();if(!_0x528543)throw new Error(_0x4cd7b2(0x18e));const _0xe87187=_0x2e6757[_0x4cd7b2(0x19f)](_0x528543);if(!_0xe87187)throw new Error(_0x4cd7b2(0x198));_0xe87187[_0x4cd7b2(0x1a9)]();}[_0x3aa1e8(0x1a8)](){const _0x182c9e=_0x3aa1e8;var _0x57b965;const _0x41f6b9=this[_0x182c9e(0x195)][_0x182c9e(0x19c)](_0x4c9c63),_0x4a610e=(_0x57b965=this[_0x182c9e(0x19e)]())==null?void 0x0:_0x57b965['getId']();if(!_0x4a610e)throw new Error('No\x20active\x20workbook\x20found.');const _0x80fcb3=_0x41f6b9[_0x182c9e(0x19f)](_0x4a610e);if(!_0x80fcb3)throw new Error(_0x182c9e(0x198));_0x80fcb3[_0x182c9e(0x1a8)]();}[_0x3aa1e8(0x18d)](){const _0x3abf23=_0x3aa1e8;var _0x4fbcdc;const _0x394721=this[_0x3abf23(0x195)][_0x3abf23(0x19c)](_0x4c9c63),_0x2c0918=(_0x4fbcdc=this[_0x3abf23(0x19e)]())==null?void 0x0:_0x4fbcdc[_0x3abf23(0x190)]();if(!_0x2c0918)throw new Error(_0x3abf23(0x18e));const _0x2ecdde=_0x394721[_0x3abf23(0x19f)](_0x2c0918);if(!_0x2ecdde)throw new Error(_0x3abf23(0x198));_0x2ecdde[_0x3abf23(0x1a3)]();}[_0x3aa1e8(0x191)](){const _0x1f5e2e=_0x3aa1e8;var _0x2cf8d1;const _0x3ea801=this['_injector'][_0x1f5e2e(0x19c)](_0x4c9c63),_0x4b738d=(_0x2cf8d1=this[_0x1f5e2e(0x19e)]())==null?void 0x0:_0x2cf8d1[_0x1f5e2e(0x190)]();if(!_0x4b738d)throw new Error(_0x1f5e2e(0x18e));const _0x4c5f73=_0x3ea801[_0x1f5e2e(0x19f)](_0x4b738d);if(!_0x4c5f73)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4c5f73[_0x1f5e2e(0x191)]();}}_0x3958f5[_0x3aa1e8(0x197)](m);class C extends _0x413a0b{get['LiveShareStatusEnum'](){return _0x2554a3;}}_0x413a0b[_0x3aa1e8(0x197)](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 _0x31e0fe=_0x2156;(function(_0x790349,_0x474d36){const _0x1fc443=_0x2156,_0x42c72b=_0x790349();while(!![]){try{const _0x2d8182=-parseInt(_0x1fc443(0x122))/0x1+-parseInt(_0x1fc443(0x159))/0x2*(parseInt(_0x1fc443(0x14a))/0x3)+parseInt(_0x1fc443(0x110))/0x4*(parseInt(_0x1fc443(0xf1))/0x5)+parseInt(_0x1fc443(0x103))/0x6*(parseInt(_0x1fc443(0xc1))/0x7)+-parseInt(_0x1fc443(0x106))/0x8+-parseInt(_0x1fc443(0x11b))/0x9+parseInt(_0x1fc443(0x157))/0xa;if(_0x2d8182===_0x474d36)break;else _0x42c72b['push'](_0x42c72b['shift']());}catch(_0x1d3f65){_0x42c72b['push'](_0x42c72b['shift']());}}}(_0x5b50,0x699ec));var J=Object[_0x31e0fe(0x11e)],K=(_0x3db337,_0x2b126c,_0x131200)=>_0x2b126c in _0x3db337?J(_0x3db337,_0x2b126c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131200}):_0x3db337[_0x2b126c]=_0x131200,u=(_0x2520db,_0x21a086,_0x52a2b9)=>K(_0x2520db,typeof _0x21a086!=_0x31e0fe(0x114)?_0x21a086+'':_0x21a086,_0x52a2b9);import{Disposable as _0x228b43,toDisposable as _0x5ef63b,IUniverInstanceService as _0x317c62,Inject as _0x3458e3,Injector as _0x5618b7,IConfigService as _0x1c3f63,ICommandService as _0x1e5b71,RxDisposable as _0x2500e7,UniverInstanceType as _0x43d276,DisposableCollection as _0x24f9a5,CommandType as _0x2a21f4,DependentOn as _0x34be54,Plugin as _0x4e1973,merge as _0x50ef25,registerDependencies as _0x484001,mergeOverrideWithDependencies as _0x3f0d95,touchDependencies as _0x24c6ea}from'@univerjs/core';import{useDependency as _0x28b1d7,useObservable as _0x20ed0a,IUIPartsService as _0x584a6b,BuiltInUIPart as _0x3c0cfc,connectInjector as _0x18b5ed}from'@univerjs/ui';import{jsx as _0x17901e,jsxs as _0x19be63,Fragment as _0x30f380}from'react/jsx-runtime';import{Dropdown as _0x24d95f,clsx as _0x4bc289,Button as _0x22044f}from'@univerjs/design';function _0x5b50(){const _0x403622=['complete','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','attrs','string','idle','HEADER_MENU','ONLINE','unsubscribe','data','reverse','random','following','1em','registerSharedOperation','NEW_CHANGESETS','0\x200\x2017\x2017','onCommandExecuted','replace','_handleNewHost','defIds','LIVESHARE_OPERATION','getLiveShareCoordinatorSync','evenodd','NOT_FOLLOWING','mask','getCurrentTypeOfUnit$','getLiveShareCoordinator','UNIVER_UNKNOWN','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','SAME_OPERATION_SHARE_INTERVAL','memberID','_status$','disposeWithMe','getValue','_commandDisposable','480295qHdBbQ','setConfig','LIVESHARE_TERMINATE','_handleOperation','xlink:href','dispose','next','_beIdle','delete','getTypeOfUnitDisposed$','colorChannel1','has','You\x27re\x20following\x20the\x20presenter','entries','_fetchOperations','_unitID','_config','_uiPartsService','92898KiFgFq','_startFollowing','_handleTerminate','323048AUHuog','stopPresenting','_stopFollowing','_liveShareService','add','end','stopFollowing','_reporters','fill','includes','4mTxtLu','FOLLOWING','_sharedOperations','tag','symbol','_collabSessionService','_init','path','_status','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','status$','4246020rGffZR','_presenter','_handleNewChangeSets','defineProperty','LiveShareIcon','UNIVER_LIVE_SHARE_PLUGIN','_handleOffline','637803ciwrbA','shouldShareOperation','asObservable','div','presenter','then','IDLE','createInstance','parse','none','get','_configService','live-share.config','currentColor','sheet','type','sessionStatus$','onRendered','assign','map','params','Start\x20following','_univerInstanceService','_injector','substring','UNIVER_SHEET','getStatus','UniverIcon','_entities','OFFLINE','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','getInitialStates','Stop\x20following','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','children','subscribe','send','_stopPresenting','186702lzSbsx','executeCommand','stringify','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','forEach','dispose$','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','PRESENTING','_startPresenting','toString','length','13802580beKSVg','requireSession','14eUSTeb','text','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','not-following','button','_handleOnline','unitId','startFollowing','displayName','getConfig','values','event$','Stop\x20presenting','245EOypGV','current','LIVESHARE_NEW_HOST','offline','pipe','_collabSession','url(#$1','_commandService','presenting','getMemberID','You\x27are\x20offline.','onStarting','Present\x20this\x20document'];_0x5b50=function(){return _0x403622;};return _0x5b50();}import{useRef as _0x58a2f7,createElement as _0x2db518,forwardRef as _0x42a9a1,useState as _0x5e4848,useEffect as _0x5a2871}from'react';import{CollaborationEvent as _0x51229d,parseProtocolChangeset as _0x18e355}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x537dba,SessionStatus as _0x41a8e6,UniverCollaborationClientPlugin as _0xe5cc13}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x20a015,SetWorksheetActiveOperation as _0x51cc86}from'@univerjs/sheets';import{BehaviorSubject as _0x3363c0,Subject as _0x412524}from'rxjs';import{takeUntil as _0xf2e89d,throttleTime as _0x2c8eeb}from'rxjs/operators';import{SetZoomRatioOperation as _0x516bb6,SetScrollOperation as _0x4ac1aa}from'@univerjs/sheets-ui';function k({ref:_0x1bd7a8,..._0x2e1589}){const _0x5a18c2=_0x31e0fe,{icon:_0x40c36a,id:_0x166bb7,className:_0x3775b2,extend:_0x27651e,..._0x97945c}=_0x2e1589,_0x5348b6=(_0x5a18c2(0x14e)+_0x166bb7+'\x20'+(_0x3775b2||''))['trim'](),_0x6c74a7=_0x58a2f7('_'+Oe());return G(_0x40c36a,''+_0x166bb7,{'defIds':_0x40c36a[_0x5a18c2(0xe1)],'idSuffix':_0x6c74a7[_0x5a18c2(0xc2)]},{'ref':_0x1bd7a8,'className':_0x5348b6,..._0x97945c},_0x27651e);}function G(_0x44b7a0,_0x8b3723,_0x512f4d,_0x18cfe5,_0x2e6872){const _0x33b159=_0x31e0fe;return _0x2db518(_0x44b7a0['tag'],{'key':_0x8b3723,...be(_0x44b7a0,_0x512f4d,_0x2e6872),..._0x18cfe5},(Ee(_0x44b7a0,_0x512f4d)[_0x33b159(0x146)]||[])[_0x33b159(0x135)]((_0x44d82a,_0x195b36)=>G(_0x44d82a,_0x8b3723+'-'+_0x44b7a0['tag']+'-'+_0x195b36,_0x512f4d,void 0x0,_0x2e6872)));}function be(_0x50d6a7,_0xb55631,_0x53c9b4){const _0x36e0e3=_0x31e0fe,_0x52e9f7={..._0x50d6a7['attrs']};_0x53c9b4!=null&&_0x53c9b4[_0x36e0e3(0xfb)]&&_0x52e9f7[_0x36e0e3(0x10e)]==='colorChannel1'&&(_0x52e9f7[_0x36e0e3(0x10e)]=_0x53c9b4['colorChannel1']),_0x50d6a7[_0x36e0e3(0x113)]===_0x36e0e3(0xe6)&&_0x52e9f7['id']&&(_0x52e9f7['id']=_0x52e9f7['id']+_0xb55631[_0x36e0e3(0x144)]),Object['entries'](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x2ed913,_0x1b370f])=>{const _0x233cc7=_0x36e0e3;_0x2ed913===_0x233cc7(0xe6)&&typeof _0x1b370f=='string'&&(_0x52e9f7[_0x2ed913]=_0x1b370f[_0x233cc7(0xdf)](/url\(#(.*)\)/,_0x233cc7(0xc7)+_0xb55631[_0x233cc7(0x144)]+')'));});const {defIds:_0x3854fb}=_0xb55631;return!_0x3854fb||_0x3854fb[_0x36e0e3(0x156)]===0x0||(_0x50d6a7[_0x36e0e3(0x113)]==='use'&&_0x52e9f7['xlink:href']&&(_0x52e9f7['xlink:href']=_0x52e9f7[_0x36e0e3(0xf5)]+_0xb55631[_0x36e0e3(0x144)]),Object[_0x36e0e3(0xfe)](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x1c5354,_0x11f227])=>{const _0x3666a3=_0x36e0e3;typeof _0x11f227==_0x3666a3(0xd1)&&(_0x52e9f7[_0x1c5354]=_0x11f227['replace'](/url\(#(.*)\)/,_0x3666a3(0xc7)+_0xb55631[_0x3666a3(0x144)]+')'));})),_0x52e9f7;}function Ee(_0x55b46f,_0x8f397){const _0x3f08c6=_0x31e0fe;var _0x41eb48;const {defIds:_0x4dffc6}=_0x8f397;return!_0x4dffc6||_0x4dffc6['length']===0x0?_0x55b46f:_0x55b46f['tag']==='defs'&&((_0x41eb48=_0x55b46f[_0x3f08c6(0x146)])!=null&&_0x41eb48[_0x3f08c6(0x156)])?{..._0x55b46f,'children':_0x55b46f['children'][_0x3f08c6(0x135)](_0x26a332=>typeof _0x26a332[_0x3f08c6(0xd0)]['id']==_0x3f08c6(0xd1)&&_0x4dffc6&&_0x4dffc6['includes'](_0x26a332[_0x3f08c6(0xd0)]['id'])?{..._0x26a332,'attrs':{..._0x26a332[_0x3f08c6(0xd0)],'id':_0x26a332[_0x3f08c6(0xd0)]['id']+_0x8f397['idSuffix']}}:_0x26a332)}:_0x55b46f;}function Oe(){const _0x2c1d6a=_0x31e0fe;return Math[_0x2c1d6a(0xd8)]()[_0x2c1d6a(0x155)](0x24)[_0x2c1d6a(0x13a)](0x2,0x8);}k[_0x31e0fe(0xbc)]=_0x31e0fe(0x13d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31e0fe(0x12b),'viewBox':_0x31e0fe(0xdd),'width':_0x31e0fe(0xda),'height':_0x31e0fe(0xda)},'children':[{'tag':_0x31e0fe(0x117),'attrs':{'fill':'currentColor','d':_0x31e0fe(0xcf)}},{'tag':_0x31e0fe(0x117),'attrs':{'fill':_0x31e0fe(0x12f),'d':_0x31e0fe(0xea),'fillRule':_0x31e0fe(0xe4),'clipRule':_0x31e0fe(0xe4)}}]},W=_0x42a9a1(function(_0x493e85,_0x258d8f){const _0x1efa15=_0x31e0fe;return _0x2db518(k,Object[_0x1efa15(0x134)]({},_0x493e85,{'id':'live-share-icon','ref':_0x258d8f,'icon':we}));});W['displayName']=_0x31e0fe(0x11f);class L extends _0x228b43{constructor(){const _0x4533b7=_0x31e0fe;super(...arguments),u(this,_0x4533b7(0x112),new Set()),u(this,_0x4533b7(0x10d),new Set());}[_0x31e0fe(0xdb)](_0x15536a){const _0x56d8f9=_0x31e0fe;return this[_0x56d8f9(0x112)][_0x56d8f9(0x10a)](_0x15536a),_0x5ef63b(()=>this[_0x56d8f9(0x112)]['delete'](_0x15536a));}['registerInitialStateReporter'](_0x316e22){const _0x5d38e1=_0x31e0fe;return this[_0x5d38e1(0x10d)]['add'](_0x316e22),_0x5ef63b(()=>this['_reporters'][_0x5d38e1(0xf9)](_0x316e22));}[_0x31e0fe(0x123)](_0x46da99){const _0x1724a1=_0x31e0fe;return this[_0x1724a1(0x112)][_0x1724a1(0xfc)](_0x46da99);}[_0x31e0fe(0x142)](_0xeedf09){const _0x25bba2=_0x31e0fe;return Array['from'](this[_0x25bba2(0x10d)])[_0x25bba2(0x135)](_0x29dc5d=>_0x29dc5d(_0xeedf09));}}var Ne=Object[_0x31e0fe(0x140)],Y=(_0x45d860,_0x73ba24,_0x1579c0,_0xf72ddc)=>{for(var _0xaba4a=_0xf72ddc>0x1?void 0x0:_0xf72ddc?Ne(_0x73ba24,_0x1579c0):_0x73ba24,_0x1001e9=_0x45d860['length']-0x1,_0x3aba27;_0x1001e9>=0x0;_0x1001e9--)(_0x3aba27=_0x45d860[_0x1001e9])&&(_0xaba4a=_0x3aba27(_0xaba4a)||_0xaba4a);return _0xaba4a;},_=(_0x18447b,_0x497803)=>(_0x314039,_0x593479)=>_0x497803(_0x314039,_0x593479,_0x18447b);let S=class extends _0x2500e7{constructor(_0x55eb58,_0x4da080,_0x171ff1){const _0x22c51f=_0x31e0fe;super(),u(this,'_entities',new Map()),(this[_0x22c51f(0x138)]=_0x55eb58,this[_0x22c51f(0x139)]=_0x4da080,this[_0x22c51f(0x115)]=_0x171ff1,this['_init']());}async[_0x31e0fe(0xe8)](_0xa6ccb7){const _0x43ebec=_0x31e0fe;return this['_entities'][_0x43ebec(0xfc)](_0xa6ccb7)||await this[_0x43ebec(0x14d)](_0xa6ccb7),this['_entities']['get'](_0xa6ccb7);}[_0x31e0fe(0xe3)](_0x1a3558){const _0x608d02=_0x31e0fe;var _0x5a03cb;return(_0x5a03cb=this[_0x608d02(0x13e)][_0x608d02(0x12c)](_0x1a3558))!=null?_0x5a03cb:null;}['_init'](){const _0x217b4e=_0x31e0fe;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))[_0x217b4e(0x147)](async _0x251488=>{const _0x1751d0=_0x217b4e,_0x52792f=_0x251488['getUnitId']();this[_0x1751d0(0x13e)][_0x1751d0(0xfc)](_0x52792f)||this[_0x1751d0(0x14d)](_0x52792f);}),this[_0x217b4e(0x138)][_0x217b4e(0xfa)](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))['subscribe'](_0x1eb536=>{const _0x436c8d=_0x217b4e,_0x208fcd=_0x1eb536[_0x436c8d(0x15c)](),_0x3d33dd=this[_0x436c8d(0x13e)][_0x436c8d(0x12c)](_0x208fcd);_0x3d33dd==null||_0x3d33dd[_0x436c8d(0xf6)]();});}async[_0x31e0fe(0x14d)](_0x14b2bc){const _0x2c26b4=_0x31e0fe,_0x14256a=await this[_0x2c26b4(0x115)][_0x2c26b4(0x158)](_0x14b2bc),_0x14cf32=this['_injector'][_0x2c26b4(0x129)](N,_0x14b2bc,_0x14256a);return _0x14cf32['init'](),this[_0x2c26b4(0x13e)][_0x2c26b4(0x151)](_0x14b2bc,_0x14cf32),_0x14cf32;}};S=Y([_(0x0,_0x317c62),_(0x1,_0x3458e3(_0x5618b7)),_(0x2,_0x3458e3(_0x537dba))],S);var c=(_0x10b00f=>(_0x10b00f[_0x31e0fe(0x13f)]=_0x31e0fe(0xc4),_0x10b00f[_0x31e0fe(0x128)]=_0x31e0fe(0xd2),_0x10b00f[_0x31e0fe(0x111)]=_0x31e0fe(0xd9),_0x10b00f[_0x31e0fe(0xe5)]='not-following',_0x10b00f[_0x31e0fe(0x153)]='presenting',_0x10b00f))(c||{});function _0x2156(_0x4ecbaf,_0x3af9de){const _0x5b5021=_0x5b50();return _0x2156=function(_0x2156f0,_0x2560e0){_0x2156f0=_0x2156f0-0xb7;let _0x46e9c7=_0x5b5021[_0x2156f0];return _0x46e9c7;},_0x2156(_0x4ecbaf,_0x3af9de);}const Ce=_0x31e0fe(0xeb),De=0xc8;let N=class extends _0x2500e7{constructor(_0x474d6c,_0x408502,_0x392c54,_0x546258,_0x38825d){const _0x56aa39=_0x31e0fe;super(),u(this,'_status$',new _0x3363c0(_0x56aa39(0xd2))),u(this,'status$',this[_0x56aa39(0xed)][_0x56aa39(0x124)]()),u(this,_0x56aa39(0x116),!0x1),u(this,'_commandDisposable',null),u(this,_0x56aa39(0x11c),null),(this[_0x56aa39(0x100)]=_0x474d6c,this[_0x56aa39(0xc6)]=_0x408502,this['_configService']=_0x392c54,this[_0x56aa39(0x109)]=_0x546258,this[_0x56aa39(0xc8)]=_0x38825d);}get[_0x31e0fe(0x118)](){const _0x5a207f=_0x31e0fe;return this['_status$'][_0x5a207f(0xef)]();}['dispose'](){const _0xc64f10=_0x31e0fe;var _0x7e83e8;(_0x7e83e8=this[_0xc64f10(0xf0)])==null||_0x7e83e8[_0xc64f10(0xf6)](),this[_0xc64f10(0xed)]['next'](_0xc64f10(0xd2)),this['_status$']['complete']();}[_0x31e0fe(0x13c)](){return this['_status'];}['init'](){const _0x15fd65=_0x31e0fe;this['_init']||(this[_0x15fd65(0x116)]=!0x0,this[_0x15fd65(0xc6)][_0x15fd65(0x132)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0xc51298=>{const _0x4b90fe=_0x15fd65;switch(_0xc51298){case _0x41a8e6[_0x4b90fe(0x13f)]:this[_0x4b90fe(0x121)]();break;case _0x41a8e6[_0x4b90fe(0xd4)]:this[_0x4b90fe(0xb9)]();break;}}),this[_0x15fd65(0xc6)][_0x15fd65(0xbf)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0x3b9818=>{const _0x50fbd7=_0x15fd65,{eventID:_0x5f0a81}=_0x3b9818;switch(_0x5f0a81){case _0x51229d[_0x50fbd7(0xc3)]:this[_0x50fbd7(0xe0)](_0x3b9818);break;case _0x51229d[_0x50fbd7(0xe2)]:this[_0x50fbd7(0xf4)](_0x3b9818);break;case _0x51229d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x51229d[_0x50fbd7(0xdc)]:this['_handleNewChangeSets'](_0x3b9818);break;}}));}['tryStartPresenting'](){const _0xfb5af4=_0x31e0fe;this[_0xfb5af4(0xc6)][_0xfb5af4(0x148)]({'eventID':_0x51229d[_0xfb5af4(0x141)],'data':{'unitID':this[_0xfb5af4(0x100)],'userID':this[_0xfb5af4(0xc6)]['getMemberID']()}},this[_0xfb5af4(0x100)]);}[_0x31e0fe(0x107)](){const _0x3c0ab5=_0x31e0fe;this[_0x3c0ab5(0x118)]===_0x3c0ab5(0xc9)&&(this[_0x3c0ab5(0xed)][_0x3c0ab5(0xf7)]('idle'),this[_0x3c0ab5(0xc6)][_0x3c0ab5(0x148)]({'eventID':_0x51229d[_0x3c0ab5(0xf3)],'data':{'unitID':this[_0x3c0ab5(0x100)]}},this[_0x3c0ab5(0x100)]));}[_0x31e0fe(0xbb)](){const _0x1f4608=_0x31e0fe;this[_0x1f4608(0x118)]==='not-following'&&(this[_0x1f4608(0xed)][_0x1f4608(0xf7)]('following'),this[_0x1f4608(0x104)]());}[_0x31e0fe(0x10c)](){const _0x59d6c8=_0x31e0fe;this['_status']===_0x59d6c8(0xd9)&&this['_stopFollowing']();}[_0x31e0fe(0xe0)](_0x4d09bb){const _0x37cb3a=_0x31e0fe,{presenter:_0x1b3a1f}=_0x4d09bb['data'],_0x560ad5=this[_0x37cb3a(0xc6)][_0x37cb3a(0xca)]();this['_presenter']=_0x1b3a1f,_0x1b3a1f===_0x560ad5?(this[_0x37cb3a(0x108)](),this['_startPresenting']()):this[_0x37cb3a(0x118)]!=='not-following'&&(this[_0x37cb3a(0x149)](),this['_startFollowing']());}[_0x31e0fe(0xff)](){const _0xaa4ebe=_0x31e0fe,_0x3a4a34={'eventID':_0x51229d['LIVESHARE_FETCH_OPERATIONS']};this[_0xaa4ebe(0xc6)][_0xaa4ebe(0x148)](_0x3a4a34,this[_0xaa4ebe(0x100)]);}[_0x31e0fe(0x105)](){const _0x497cdb=_0x31e0fe;this['_presenter']=null,this[_0x497cdb(0x118)]!=='presenting'&&this[_0x497cdb(0xf8)]();}[_0x31e0fe(0x11d)](_0x4065a4){const _0x163a88=_0x31e0fe;if(this['_status']===_0x163a88(0xd9)&&this['_presenter']===_0x4065a4['data'][_0x163a88(0xec)]){const _0x46ad8c=_0x18e355(_0x4065a4[_0x163a88(0xd6)])['mutations'][_0x163a88(0xd7)]()['find'](_0x13a32c=>_0x13a32c['id']===_0x20a015['id']);if(_0x46ad8c){const _0x5f0172=_0x46ad8c['params'][_0x163a88(0xba)],_0x2252cb=_0x46ad8c['params'][_0x163a88(0x130)]['id'];setTimeout(()=>{const _0x4cedcc=_0x163a88;this['_commandService'][_0x4cedcc(0x14b)](_0x51cc86['id'],{'unitId':_0x5f0172,'subUnitId':_0x2252cb},{'fromCollab':!0x0});});}}}[_0x31e0fe(0x154)](){const _0x4d1d5b=_0x31e0fe;this['_status$']['next'](_0x4d1d5b(0xc9));const _0x3b8b1a=new Map(),_0x458268=this[_0x4d1d5b(0xf0)]=new _0x24f9a5();_0x458268[_0x4d1d5b(0x10a)](_0x5ef63b(()=>{const _0x190f1a=_0x4d1d5b;_0x3b8b1a[_0x190f1a(0x14f)](_0x77114b=>_0x77114b[_0x190f1a(0xce)]()),_0x3b8b1a['clear']();})),_0x458268[_0x4d1d5b(0x10a)](this[_0x4d1d5b(0xc8)][_0x4d1d5b(0xde)](_0x4bd36b=>{const _0x339294=_0x4d1d5b;var _0xdbc029;if(_0x4bd36b['type']!==_0x2a21f4['OPERATION']||!this[_0x339294(0x109)]['shouldShareOperation'](_0x4bd36b['id']))return;const {id:_0x200d1f}=_0x4bd36b;let _0x2c9bd6;_0x3b8b1a['has'](_0x200d1f)?_0x2c9bd6=_0x3b8b1a[_0x339294(0x12c)](_0x200d1f):(_0x2c9bd6=new _0x412524(),_0x3b8b1a[_0x339294(0x151)](_0x200d1f,_0x2c9bd6),_0x2c9bd6[_0x339294(0xc5)](_0x2c8eeb((_0xdbc029=this[_0x339294(0x12d)][_0x339294(0xbd)](Ce))!=null?_0xdbc029:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1e493d=>{const _0x528b64=_0x339294;this[_0x528b64(0xc6)][_0x528b64(0x148)]({'eventID':_0x51229d[_0x528b64(0xe2)],'data':{'unitID':this[_0x528b64(0x100)],'operations':{[_0x1e493d['id']]:{'id':_0x1e493d['id'],'params':JSON[_0x528b64(0x14c)](_0x1e493d['params'])}}}},this[_0x528b64(0x100)]);})),_0x2c9bd6[_0x339294(0xf7)](_0x4bd36b);})),this['_liveShareService']['getInitialStates'](this[_0x4d1d5b(0x100)])['forEach'](_0x4defc1=>this[_0x4d1d5b(0xc6)][_0x4d1d5b(0x148)]({'eventID':_0x51229d['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d1d5b(0x100)],'operations':{[_0x4defc1['id']]:{'id':_0x4defc1['id'],'params':JSON[_0x4d1d5b(0x14c)](_0x4defc1[_0x4d1d5b(0x136)])}}}},this['_unitID']));}[_0x31e0fe(0x149)](){const _0x12d733=_0x31e0fe;var _0x2cd6f0;this[_0x12d733(0xed)][_0x12d733(0xf7)](_0x12d733(0xd2)),(_0x2cd6f0=this[_0x12d733(0xf0)])==null||_0x2cd6f0['dispose'](),this[_0x12d733(0xf0)]=null;}[_0x31e0fe(0x104)](){const _0x149a61=_0x31e0fe;var _0x471c96;(_0x471c96=this[_0x149a61(0xf0)])==null||_0x471c96[_0x149a61(0xf6)](),this[_0x149a61(0xed)][_0x149a61(0xf7)](_0x149a61(0xd9));}[_0x31e0fe(0xf8)](){const _0x1da58a=_0x31e0fe;var _0x521932;this[_0x1da58a(0xed)][_0x1da58a(0xf7)](_0x1da58a(0xd2)),(_0x521932=this[_0x1da58a(0xf0)])==null||_0x521932[_0x1da58a(0xf6)](),this[_0x1da58a(0xf0)]=null;}[_0x31e0fe(0x108)](){const _0x1a38f5=_0x31e0fe;var _0x4ae33f;this[_0x1a38f5(0xed)][_0x1a38f5(0xf7)]('not-following'),(_0x4ae33f=this[_0x1a38f5(0xf0)])==null||_0x4ae33f[_0x1a38f5(0xf6)]();}[_0x31e0fe(0xf4)](_0xda7a5a){const _0x145449=_0x31e0fe;if([_0x145449(0xc9),_0x145449(0xb7),_0x145449(0xc4)][_0x145449(0x10f)](this[_0x145449(0x118)])||!_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]||_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]===this[_0x145449(0xc6)][_0x145449(0xca)]())return;this[_0x145449(0x118)]===_0x145449(0xd2)&&this[_0x145449(0x104)]();const _0x4930dd=_0xda7a5a[_0x145449(0xd6)]['operations'];Object[_0x145449(0xbe)](_0x4930dd)['forEach'](_0xfc945=>{const _0xf918b1=_0x145449;this[_0xf918b1(0xc8)][_0xf918b1(0x14b)](_0xfc945['id'],_0xfc945[_0xf918b1(0x136)]?JSON[_0xf918b1(0x12a)](_0xfc945[_0xf918b1(0x136)]):null,{'fromCollab':!0x0});});}[_0x31e0fe(0x121)](){const _0x38c0f0=_0x31e0fe;var _0xd55dec;this['_status$'][_0x38c0f0(0xf7)](_0x38c0f0(0xc4)),(_0xd55dec=this[_0x38c0f0(0xf0)])==null||_0xd55dec['dispose']();}['_handleOnline'](){const _0x159811=_0x31e0fe;this['_status$']['next'](_0x159811(0xd2)),this[_0x159811(0xff)]();}};N=Y([_(0x2,_0x1c3f63),_(0x3,_0x3458e3(L)),_(0x4,_0x1e5b71)],N);function Le(){const _0x1d7bef=_0x31e0fe,_0x55bb7a=_0x28b1d7(S),_0x40b6c7=_0x28b1d7(_0x317c62),_0x5bc88a=_0x20ed0a(()=>_0x40b6c7[_0x1d7bef(0xe7)](_0x43d276[_0x1d7bef(0x13b)]),void 0x0,!0x1,[]),[_0x37f89d,_0x544345]=_0x5e4848(null),[_0x3f6ab9,_0x595009]=_0x5e4848(c[_0x1d7bef(0x128)]),_0x30e7be=_0x58a2f7(null);return _0x5a2871(()=>(_0x5bc88a&&_0x55bb7a[_0x1d7bef(0xe8)](_0x5bc88a[_0x1d7bef(0x15c)]())[_0x1d7bef(0x127)](_0x43ca4f=>{const _0x8db60f=_0x1d7bef;_0x544345(_0x43ca4f),_0x30e7be[_0x8db60f(0xc2)]=_0x43ca4f[_0x8db60f(0x11a)][_0x8db60f(0x147)](_0x4c868e=>{_0x595009(_0x4c868e);});}),()=>{const _0x106c21=_0x1d7bef;var _0x4d2e76;(_0x4d2e76=_0x30e7be['current'])==null||_0x4d2e76[_0x106c21(0xd5)](),_0x30e7be['current']=null;}),[_0x5bc88a,_0x55bb7a]),_0x37f89d?_0x17901e(_0x24d95f,{'align':_0x1d7bef(0x10b),'disabled':_0x3f6ab9===c['OFFLINE'],'className':_0x1d7bef(0x119),'overlay':_0x17901e(Re,{'status':_0x3f6ab9,'coordinator':_0x37f89d}),'children':_0x17901e('button',{'className':_0x4bc289(_0x1d7bef(0x145),{'univer-cursor-not-allowed':_0x3f6ab9===c[_0x1d7bef(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f6ab9!==c[_0x1d7bef(0x13f)]}),'type':_0x1d7bef(0xb8),'children':_0x17901e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x217568){const _0xe8d60a=_0x31e0fe,{status:_0x4d87ca,coordinator:_0x1e0159}=_0x217568;switch(_0x4d87ca){case c[_0xe8d60a(0x128)]:return _0x17901e($e,{'coordinator':_0x1e0159});case c['FOLLOWING']:return _0x17901e(xe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0xe5)]:return _0x17901e(Pe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0x13f)]:return _0x17901e(Te,{});case c['PRESENTING']:return _0x17901e(Ae,{'coordinator':_0x1e0159});default:return null;}}function $e(_0x5d46c7){const _0x592148=_0x31e0fe,{coordinator:_0x4ca482}=_0x5d46c7;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x592148(0xcd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x4ca482['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x5a0919){const _0x49176b=_0x31e0fe,{coordinator:_0x98d896}=_0x5a0919;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x49176b(0x152),'children':_0x49176b(0xfd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x98d896[_0x49176b(0x10c)](),'children':_0x49176b(0x143)})]});}function Pe(_0x5d82a4){const _0x3f5c57=_0x31e0fe,{coordinator:_0x1fb1b6}=_0x5d82a4;return _0x19be63(_0x30f380,{'children':[_0x17901e(_0x3f5c57(0x125),{'className':_0x3f5c57(0x152),'children':_0x3f5c57(0x15b)}),_0x17901e(_0x22044f,{'variant':_0x3f5c57(0x15a),'onClick':()=>_0x1fb1b6[_0x3f5c57(0xbb)](),'children':_0x3f5c57(0x137)})]});}function Ae(_0x1d8cfb){const _0x35f30c=_0x31e0fe,{coordinator:_0x65e032}=_0x1d8cfb;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x35f30c(0x152),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x17901e(_0x22044f,{'variant':'default','onClick':()=>_0x65e032[_0x35f30c(0x107)](),'children':_0x35f30c(0xc0)})]});}function Te(){const _0x3befb6=_0x31e0fe;return _0x17901e(_0x30f380,{'children':_0x3befb6(0xcb)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x12526f,_0x116b0f,_0x148ba8,_0x23038f)=>{const _0x296034=_0x31e0fe;for(var _0x3f349f=_0x23038f>0x1?void 0x0:_0x23038f?Fe(_0x116b0f,_0x148ba8):_0x116b0f,_0x421f4b=_0x12526f[_0x296034(0x156)]-0x1,_0x531aae;_0x421f4b>=0x0;_0x421f4b--)(_0x531aae=_0x12526f[_0x421f4b])&&(_0x3f349f=_0x531aae(_0x3f349f)||_0x3f349f);return _0x3f349f;},A=(_0x17ec15,_0x1051bf)=>(_0x133fe3,_0x3d1ef2)=>_0x1051bf(_0x133fe3,_0x3d1ef2,_0x17ec15);let m=class extends _0x228b43{constructor(_0x254e22,_0x28b170){const _0x22554b=_0x31e0fe;super(),this[_0x22554b(0x139)]=_0x254e22,this[_0x22554b(0x102)]=_0x28b170,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x3e11fb=_0x31e0fe;this[_0x3e11fb(0xee)](this[_0x3e11fb(0x102)]['registerComponent'](_0x3c0cfc[_0x3e11fb(0xd3)],()=>_0x18b5ed(Le,this[_0x3e11fb(0x139)])));}};m=He([A(0x0,_0x3458e3(_0x5618b7)),A(0x1,_0x584a6b)],m);const ye=_0x31e0fe(0x12e),T={};var Ue=Object[_0x31e0fe(0x140)],Ve=(_0x51c540,_0x307ead,_0x126981,_0x318a33)=>{const _0x4edf03=_0x31e0fe;for(var _0x557686=_0x318a33>0x1?void 0x0:_0x318a33?Ue(_0x307ead,_0x126981):_0x307ead,_0x35138d=_0x51c540[_0x4edf03(0x156)]-0x1,_0x32df21;_0x35138d>=0x0;_0x35138d--)(_0x32df21=_0x51c540[_0x35138d])&&(_0x557686=_0x32df21(_0x557686)||_0x557686);return _0x557686;},je=(_0x3d62d6,_0x59c896)=>(_0x3eb9ab,_0x53e26a)=>_0x59c896(_0x3eb9ab,_0x53e26a,_0x3d62d6);let I=class extends _0x228b43{constructor(_0x588829){const _0x20e3dd=_0x31e0fe;super(),this[_0x20e3dd(0x109)]=_0x588829,this[_0x20e3dd(0x116)]();}[_0x31e0fe(0x116)](){const _0x1b5618=_0x31e0fe;[_0x516bb6['id'],_0x4ac1aa['id'],_0x51cc86['id']][_0x1b5618(0x14f)](_0x5560eb=>{const _0x33ee34=_0x1b5618;this[_0x33ee34(0xee)](this[_0x33ee34(0x109)][_0x33ee34(0xdb)](_0x5560eb));});}};I=Ve([je(0x0,_0x3458e3(L))],I);var Me=Object[_0x31e0fe(0x11e)],ke=Object[_0x31e0fe(0x140)],Ge=(_0x562f13,_0x12fc5f,_0x5dc6bb)=>_0x12fc5f in _0x562f13?Me(_0x562f13,_0x12fc5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dc6bb}):_0x562f13[_0x12fc5f]=_0x5dc6bb,We=(_0x1d86c1,_0x5061d3,_0x55cacd,_0x4d63df)=>{const _0xc46480=_0x31e0fe;for(var _0x55d2eb=_0x4d63df>0x1?void 0x0:_0x4d63df?ke(_0x5061d3,_0x55cacd):_0x5061d3,_0x34690e=_0x1d86c1[_0xc46480(0x156)]-0x1,_0xca3e05;_0x34690e>=0x0;_0x34690e--)(_0xca3e05=_0x1d86c1[_0x34690e])&&(_0x55d2eb=_0xca3e05(_0x55d2eb)||_0x55d2eb);return _0x55d2eb;},F=(_0x428281,_0x3d99cf)=>(_0x1847a3,_0x26043a)=>_0x3d99cf(_0x1847a3,_0x26043a,_0x428281),B=(_0x5b44af,_0x1140a1,_0x4b85f9)=>Ge(_0x5b44af,typeof _0x1140a1!='symbol'?_0x1140a1+'':_0x1140a1,_0x4b85f9);const Ye=_0x31e0fe(0x120);let b=class extends _0x4e1973{constructor(_0x11d1b1=T,_0x462d12,_0x39cb0c){const _0x2c0459=_0x31e0fe;super(),this[_0x2c0459(0x101)]=_0x11d1b1,this[_0x2c0459(0x139)]=_0x462d12,this[_0x2c0459(0x12d)]=_0x39cb0c;const {..._0x20c96b}=_0x50ef25({},T,this['_config']);this[_0x2c0459(0x12d)][_0x2c0459(0xf2)](ye,_0x20c96b);}[_0x31e0fe(0xcc)](){const _0x5aeb0f=_0x31e0fe;_0x484001(this[_0x5aeb0f(0x139)],_0x3f0d95([[L],[S],[I],[m]],this['_config']['override'])),_0x24c6ea(this['_injector'],[[I]]);}[_0x31e0fe(0x133)](){const _0x49dcbf=_0x31e0fe;_0x24c6ea(this[_0x49dcbf(0x139)],[[m]]);}};B(b,_0x31e0fe(0x131),_0x43d276[_0x31e0fe(0xe9)]),B(b,'pluginName',Ye),b=We([_0x34be54(_0xe5cc13),F(0x1,_0x3458e3(_0x5618b7)),F(0x2,_0x1c3f63)],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 _0x1b74(_0x3f2999,_0x52340b){const _0x2b7cb3=_0x2b7c();return _0x1b74=function(_0x1b7438,_0x1c3e55){_0x1b7438=_0x1b7438-0xde;let _0x490aaa=_0x2b7cb3[_0x1b7438];return _0x490aaa;},_0x1b74(_0x3f2999,_0x52340b);}function _0x2b7c(){const _0x14e5f1=['FUniver','getActiveSheet','FRange','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/sheets/facade','_injector','SetWorksheetActiveOperation','get','_commandService','PRESENTING','amd','IRenderManagerService','startFollowing','startColumn','stopPresenting','300mzwwyW','@univerjs/sheets','@univerjs/core/facade','UniverProLiveShare','getUnitId','LiveShareStatus','UniverSheets','330854JRkfAq','startPresenting','No\x20active\x20workbook\x20found.','209448fijICE','123pNOlaL','LiveShareStatusEnum','startRow','21044jfmEig','LiveShareController','15582726SWGhyR','@univerjs/engine-render','SetScrollOperation','FEnum','syncExecuteCommand','executeCommand','getLiveShareCoordinatorSync','UniverSheetsUi','3647882cqfeRN','stopFollowing','UniverCoreFacade','3845464kizVQq','@univerjs/sheets-ui','getSheetId','getStatus','getLiveShareStatus','object','getId','extend','56302enZFFO','UniverEngineRender','getActiveWorkbook'];_0x2b7c=function(){return _0x14e5f1;};return _0x2b7c();}(function(_0x451d31,_0x4ec4bb){const _0x288a53=_0x1b74,_0x1c27fc=_0x451d31();while(!![]){try{const _0x13f851=parseInt(_0x288a53(0xe8))/0x1+-parseInt(_0x288a53(0x104))/0x2*(parseInt(_0x288a53(0xec))/0x3)+-parseInt(_0x288a53(0xef))/0x4*(parseInt(_0x288a53(0xe1))/0x5)+-parseInt(_0x288a53(0xeb))/0x6+parseInt(_0x288a53(0xf9))/0x7+-parseInt(_0x288a53(0xfc))/0x8+parseInt(_0x288a53(0xf1))/0x9;if(_0x13f851===_0x4ec4bb)break;else _0x1c27fc['push'](_0x1c27fc['shift']());}catch(_0x16c983){_0x1c27fc['push'](_0x1c27fc['shift']());}}}(_0x2b7c,0x91fc0),function(_0x534700,_0x4266ec){const _0x1ae819=_0x1b74;typeof exports==_0x1ae819(0x101)&&typeof module<'u'?_0x4266ec(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x1ae819(0x111)]?define(['@univerjs-pro/live-share',_0x1ae819(0xf2),_0x1ae819(0xe2),_0x1ae819(0xfd),_0x1ae819(0x10b),_0x1ae819(0xe3)],_0x4266ec):(_0x534700=typeof globalThis<'u'?globalThis:_0x534700||self,_0x4266ec(_0x534700[_0x1ae819(0xe4)],_0x534700[_0x1ae819(0x105)],_0x534700[_0x1ae819(0xe7)],_0x534700[_0x1ae819(0xf8)],_0x534700['UniverSheetsFacade'],_0x534700[_0x1ae819(0xfb)]));}(this,function(_0x55246b,_0x3035b3,_0x40ef33,_0x3e0b6c,_0x3193ef,_0x5dea9e){'use strict';const _0x536aeb=_0x1b74;class _0x5a398c extends _0x3193ef[_0x536aeb(0x109)]{['_initialize'](_0x29cac8,_0x21af89,_0x4d0c15,_0x5af5c4,_0x565b90){const _0x4da865=_0x536aeb,_0x51dbda=_0x29cac8[_0x4da865(0x10e)](_0x55246b[_0x4da865(0xf0)]),_0x32b1fa=_0x29cac8[_0x4da865(0x10e)](_0x3035b3[_0x4da865(0x112)]),_0x497aa8=_0x21af89[_0x4da865(0xe5)](),_0x16ce43=_0x21af89[_0x4da865(0x108)](),_0x54296f=_0x51dbda['getLiveShareCoordinatorSync'](_0x497aa8);(_0x54296f==null?void 0x0:_0x54296f['getStatus']())!==_0x55246b['LiveShareStatus'][_0x4da865(0x110)]||(_0x4d0c15[_0x4da865(0xfe)]()!==_0x16ce43[_0x4da865(0xfe)]()&&this[_0x4da865(0x10f)][_0x4da865(0xf6)](_0x40ef33[_0x4da865(0x10d)]['id'],{'unitId':_0x497aa8,'subUnitId':_0x4d0c15[_0x4da865(0xfe)]()}),!_0x32b1fa['getRenderById'](_0x497aa8))||_0x565b90[_0x4da865(0xf5)](_0x3e0b6c[_0x4da865(0xf3)]['id'],{'unitId':_0x21af89['getUnitId'](),'sheetId':_0x4d0c15[_0x4da865(0xfe)](),'sheetViewStartRow':_0x5af5c4[_0x4da865(0xee)],'sheetViewStartColumn':_0x5af5c4[_0x4da865(0xdf)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3193ef[_0x536aeb(0x109)]['extend'](_0x5a398c);class _0x29b8c0 extends _0x5dea9e[_0x536aeb(0x107)]{[_0x536aeb(0x100)](){const _0x51ab5b=_0x536aeb;var _0x3642da,_0x473501;const _0xbdaae8=this['_injector'][_0x51ab5b(0x10e)](_0x55246b[_0x51ab5b(0xf0)]),_0x3e1656=(_0x3642da=this['getActiveWorkbook']())==null?void 0x0:_0x3642da[_0x51ab5b(0x102)]();if(!_0x3e1656)throw new Error(_0x51ab5b(0xea));const _0x2be83f=_0xbdaae8[_0x51ab5b(0xf7)](_0x3e1656);return(_0x473501=_0x2be83f==null?void 0x0:_0x2be83f[_0x51ab5b(0xff)]())!=null?_0x473501:_0x55246b[_0x51ab5b(0xe6)]['IDLE'];}['startFollowing'](){const _0x55342e=_0x536aeb;var _0x119c52;const _0x3651b0=this[_0x55342e(0x10c)][_0x55342e(0x10e)](_0x55246b['LiveShareController']),_0x50385c=(_0x119c52=this[_0x55342e(0x106)]())==null?void 0x0:_0x119c52[_0x55342e(0x102)]();if(!_0x50385c)throw new Error(_0x55342e(0xea));const _0x5c4bbe=_0x3651b0['getLiveShareCoordinatorSync'](_0x50385c);if(!_0x5c4bbe)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5c4bbe[_0x55342e(0xde)]();}[_0x536aeb(0xfa)](){const _0x44f5d5=_0x536aeb;var _0xb8fac4;const _0x37c2cf=this['_injector'][_0x44f5d5(0x10e)](_0x55246b[_0x44f5d5(0xf0)]),_0x1c3d06=(_0xb8fac4=this[_0x44f5d5(0x106)]())==null?void 0x0:_0xb8fac4[_0x44f5d5(0x102)]();if(!_0x1c3d06)throw new Error(_0x44f5d5(0xea));const _0x3166b6=_0x37c2cf[_0x44f5d5(0xf7)](_0x1c3d06);if(!_0x3166b6)throw new Error(_0x44f5d5(0x10a));_0x3166b6['stopFollowing']();}[_0x536aeb(0xe9)](){const _0x5880f6=_0x536aeb;var _0x31e008;const _0x445a8c=this[_0x5880f6(0x10c)][_0x5880f6(0x10e)](_0x55246b[_0x5880f6(0xf0)]),_0x5f02e4=(_0x31e008=this[_0x5880f6(0x106)]())==null?void 0x0:_0x31e008[_0x5880f6(0x102)]();if(!_0x5f02e4)throw new Error(_0x5880f6(0xea));const _0x3ca8e6=_0x445a8c[_0x5880f6(0xf7)](_0x5f02e4);if(!_0x3ca8e6)throw new Error(_0x5880f6(0x10a));_0x3ca8e6['tryStartPresenting']();}['stopPresenting'](){const _0x48cdf8=_0x536aeb;var _0x5c93cd;const _0x1805f7=this[_0x48cdf8(0x10c)][_0x48cdf8(0x10e)](_0x55246b['LiveShareController']),_0x269171=(_0x5c93cd=this[_0x48cdf8(0x106)]())==null?void 0x0:_0x5c93cd[_0x48cdf8(0x102)]();if(!_0x269171)throw new Error(_0x48cdf8(0xea));const _0x4ff880=_0x1805f7[_0x48cdf8(0xf7)](_0x269171);if(!_0x4ff880)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ff880[_0x48cdf8(0xe0)]();}}_0x5dea9e[_0x536aeb(0x107)]['extend'](_0x29b8c0);class _0x3935cd extends _0x5dea9e[_0x536aeb(0xf4)]{get[_0x536aeb(0xed)](){const _0x172a22=_0x536aeb;return _0x55246b[_0x172a22(0xe6)];}}_0x5dea9e['FEnum'][_0x536aeb(0x103)](_0x3935cd);}));
|
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(_0xb79d8b,_0x45253f){const _0x13fb2a=_0x12a5,_0x165408=_0xb79d8b();while(!![]){try{const _0x5dbc95=parseInt(_0x13fb2a(0x188))/0x1+parseInt(_0x13fb2a(0x158))/0x2+-parseInt(_0x13fb2a(0x1b3))/0x3*(parseInt(_0x13fb2a(0xd8))/0x4)+parseInt(_0x13fb2a(0x138))/0x5+parseInt(_0x13fb2a(0xdd))/0x6*(parseInt(_0x13fb2a(0x1a5))/0x7)+-parseInt(_0x13fb2a(0x186))/0x8+parseInt(_0x13fb2a(0x18e))/0x9*(parseInt(_0x13fb2a(0x12a))/0xa);if(_0x5dbc95===_0x45253f)break;else _0x165408['push'](_0x165408['shift']());}catch(_0x3a2648){_0x165408['push'](_0x165408['shift']());}}}(_0x90d5,0xc58e5),function(_0x9118e9,_0xe16f32){const _0x750200=_0x12a5;typeof exports==_0x750200(0x10d)&&typeof module<'u'?_0xe16f32(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==_0x750200(0xf4)&&define[_0x750200(0x195)]?define([_0x750200(0xff),'@univerjs/core','@univerjs/ui',_0x750200(0x18d),'@univerjs/design','react',_0x750200(0x168),_0x750200(0x106),_0x750200(0x144),_0x750200(0xe4),'rxjs/operators',_0x750200(0xfc)],_0xe16f32):(_0x9118e9=typeof globalThis<'u'?globalThis:_0x9118e9||self,_0xe16f32(_0x9118e9[_0x750200(0x123)]={},_0x9118e9[_0x750200(0x139)],_0x9118e9['UniverUi'],_0x9118e9[_0x750200(0x1a0)],_0x9118e9[_0x750200(0x121)],_0x9118e9['React'],_0x9118e9[_0x750200(0x194)],_0x9118e9[_0x750200(0xf8)],_0x9118e9[_0x750200(0x16e)],_0x9118e9[_0x750200(0xe4)],_0x9118e9['rxjs'][_0x750200(0xe6)],_0x9118e9[_0x750200(0xfe)]));}(this,function(_0x32170d,_0x34c7db,_0x3b604b,_0x21b20a,_0x24d65f,_0x1f913f,_0xe01c5b,_0xe0833,_0xac9784,_0x317d5e,_0x5088b7,_0x2c9719){'use strict';const _0x3d9623=_0x12a5;var _0x2fde6e=Object['defineProperty'],_0x55ba4d=(_0x1ad1fa,_0x796674,_0x2222e2)=>_0x796674 in _0x1ad1fa?_0x2fde6e(_0x1ad1fa,_0x796674,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2222e2}):_0x1ad1fa[_0x796674]=_0x2222e2,_0x4c5777=(_0x59625c,_0x17cb71,_0x335c94)=>_0x55ba4d(_0x59625c,typeof _0x17cb71!=_0x3d9623(0x115)?_0x17cb71+'':_0x17cb71,_0x335c94);function _0x11517f({ref:_0x5bd072,..._0x921763}){const _0x578243=_0x3d9623,{icon:_0x115f72,id:_0x17b0c0,className:_0x4aaf56,extend:_0x526d62,..._0x2a71af}=_0x921763,_0x384f14=(_0x578243(0x173)+_0x17b0c0+'\x20'+(_0x4aaf56||''))[_0x578243(0x1be)](),_0x4b8938=_0x1f913f[_0x578243(0x18b)]('_'+_0x2f541d());return _0x111c75(_0x115f72,''+_0x17b0c0,{'defIds':_0x115f72['defIds'],'idSuffix':_0x4b8938[_0x578243(0x156)]},{'ref':_0x5bd072,'className':_0x384f14,..._0x2a71af},_0x526d62);}function _0x111c75(_0x23e1f9,_0x105723,_0x2a17fd,_0x150119,_0x1bfc92){const _0xb3b821=_0x3d9623;return _0x1f913f[_0xb3b821(0x17b)](_0x23e1f9[_0xb3b821(0x152)],{'key':_0x105723,..._0x477789(_0x23e1f9,_0x2a17fd,_0x1bfc92),..._0x150119},(_0x4533f1(_0x23e1f9,_0x2a17fd)[_0xb3b821(0x114)]||[])['map']((_0x1344f3,_0x3118c3)=>_0x111c75(_0x1344f3,_0x105723+'-'+_0x23e1f9[_0xb3b821(0x152)]+'-'+_0x3118c3,_0x2a17fd,void 0x0,_0x1bfc92)));}function _0x477789(_0x1e6744,_0x5de9e7,_0x4e51bc){const _0x4b37c4=_0x3d9623,_0xd39dda={..._0x1e6744['attrs']};_0x4e51bc!=null&&_0x4e51bc[_0x4b37c4(0xf6)]&&_0xd39dda['fill']===_0x4b37c4(0xf6)&&(_0xd39dda['fill']=_0x4e51bc[_0x4b37c4(0xf6)]),_0x1e6744[_0x4b37c4(0x152)]===_0x4b37c4(0x13f)&&_0xd39dda['id']&&(_0xd39dda['id']=_0xd39dda['id']+_0x5de9e7[_0x4b37c4(0x12f)]),Object[_0x4b37c4(0x13c)](_0xd39dda)[_0x4b37c4(0x19e)](([_0x5dff59,_0x1e6872])=>{const _0x201c9e=_0x4b37c4;_0x5dff59===_0x201c9e(0x13f)&&typeof _0x1e6872==_0x201c9e(0x1b6)&&(_0xd39dda[_0x5dff59]=_0x1e6872['replace'](/url\(#(.*)\)/,_0x201c9e(0x128)+_0x5de9e7[_0x201c9e(0x12f)]+')'));});const {defIds:_0x57d794}=_0x5de9e7;return!_0x57d794||_0x57d794[_0x4b37c4(0x11a)]===0x0||(_0x1e6744[_0x4b37c4(0x152)]===_0x4b37c4(0x124)&&_0xd39dda['xlink:href']&&(_0xd39dda[_0x4b37c4(0x1bd)]=_0xd39dda[_0x4b37c4(0x1bd)]+_0x5de9e7['idSuffix']),Object['entries'](_0xd39dda)['forEach'](([_0x3ae729,_0x4ee97b])=>{const _0x15e102=_0x4b37c4;typeof _0x4ee97b=='string'&&(_0xd39dda[_0x3ae729]=_0x4ee97b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5de9e7[_0x15e102(0x12f)]+')'));})),_0xd39dda;}function _0x4533f1(_0x530eb7,_0x4c48bd){const _0x4dd73d=_0x3d9623;var _0x2f3f93;const {defIds:_0x38140d}=_0x4c48bd;return!_0x38140d||_0x38140d[_0x4dd73d(0x11a)]===0x0?_0x530eb7:_0x530eb7[_0x4dd73d(0x152)]===_0x4dd73d(0x171)&&((_0x2f3f93=_0x530eb7[_0x4dd73d(0x114)])!=null&&_0x2f3f93[_0x4dd73d(0x11a)])?{..._0x530eb7,'children':_0x530eb7[_0x4dd73d(0x114)]['map'](_0x27b246=>typeof _0x27b246[_0x4dd73d(0x105)]['id']==_0x4dd73d(0x1b6)&&_0x38140d&&_0x38140d['includes'](_0x27b246[_0x4dd73d(0x105)]['id'])?{..._0x27b246,'attrs':{..._0x27b246['attrs'],'id':_0x27b246[_0x4dd73d(0x105)]['id']+_0x4c48bd[_0x4dd73d(0x12f)]}}:_0x27b246)}:_0x530eb7;}function _0x2f541d(){const _0x58a2f5=_0x3d9623;return Math[_0x58a2f5(0x112)]()[_0x58a2f5(0x10a)](0x24)[_0x58a2f5(0x150)](0x2,0x8);}_0x11517f[_0x3d9623(0x137)]=_0x3d9623(0x16f);const _0x28a462={'tag':_0x3d9623(0x133),'attrs':{'xmlns':_0x3d9623(0x1ab),'fill':_0x3d9623(0xda),'viewBox':_0x3d9623(0x172),'width':_0x3d9623(0x14e),'height':_0x3d9623(0x14e)},'children':[{'tag':_0x3d9623(0x15c),'attrs':{'fill':'currentColor','d':_0x3d9623(0x134)}},{'tag':_0x3d9623(0x15c),'attrs':{'fill':_0x3d9623(0x153),'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':_0x3d9623(0x13e),'clipRule':'evenodd'}}]},_0xc131=_0x1f913f[_0x3d9623(0x189)](function(_0xcadb01,_0x2ecedc){const _0x43cf55=_0x3d9623;return _0x1f913f['createElement'](_0x11517f,Object[_0x43cf55(0x12e)]({},_0xcadb01,{'id':_0x43cf55(0x1ba),'ref':_0x2ecedc,'icon':_0x28a462}));});_0xc131[_0x3d9623(0x137)]='LiveShareIcon';class _0x423aa1 extends _0x34c7db[_0x3d9623(0x163)]{constructor(){const _0x1f66c7=_0x3d9623;super(...arguments),_0x4c5777(this,_0x1f66c7(0x1ae),new Set()),_0x4c5777(this,_0x1f66c7(0x1ad),new Set());}[_0x3d9623(0x16d)](_0x32776a){const _0x5ea55c=_0x3d9623;return this[_0x5ea55c(0x1ae)][_0x5ea55c(0x15a)](_0x32776a),_0x34c7db[_0x5ea55c(0x1bc)](()=>this[_0x5ea55c(0x1ae)]['delete'](_0x32776a));}[_0x3d9623(0x126)](_0x373a22){const _0x39c312=_0x3d9623;return this['_reporters'][_0x39c312(0x15a)](_0x373a22),_0x34c7db[_0x39c312(0x1bc)](()=>this[_0x39c312(0x1ad)][_0x39c312(0x167)](_0x373a22));}[_0x3d9623(0x157)](_0x4ab51f){const _0x3ac747=_0x3d9623;return this[_0x3ac747(0x1ae)][_0x3ac747(0x11f)](_0x4ab51f);}['getInitialStates'](_0x2968e8){const _0x4235b1=_0x3d9623;return Array[_0x4235b1(0xd9)](this[_0x4235b1(0x1ad)])[_0x4235b1(0x165)](_0x456e5d=>_0x456e5d(_0x2968e8));}}var _0x2e282=Object[_0x3d9623(0x135)],_0x28330e=(_0x505420,_0x132e6d,_0x5303ca,_0x41c371)=>{const _0x277455=_0x3d9623;for(var _0x502ca1=_0x41c371>0x1?void 0x0:_0x41c371?_0x2e282(_0x132e6d,_0x5303ca):_0x132e6d,_0x58779a=_0x505420[_0x277455(0x11a)]-0x1,_0x355754;_0x58779a>=0x0;_0x58779a--)(_0x355754=_0x505420[_0x58779a])&&(_0x502ca1=_0x355754(_0x502ca1)||_0x502ca1);return _0x502ca1;},_0x3b782a=(_0x486652,_0x2b5c74)=>(_0x5af75e,_0x3b5d2a)=>_0x2b5c74(_0x5af75e,_0x3b5d2a,_0x486652);_0x32170d['LiveShareController']=class extends _0x34c7db['RxDisposable']{constructor(_0xefaaa6,_0x3c194b,_0x409ac4){const _0x386a04=_0x3d9623;super(),_0x4c5777(this,_0x386a04(0x19c),new Map()),(this['_univerInstanceService']=_0xefaaa6,this[_0x386a04(0xdb)]=_0x3c194b,this[_0x386a04(0xdc)]=_0x409ac4,this[_0x386a04(0x1b7)]());}async['getLiveShareCoordinator'](_0x4fc31e){const _0x4075c3=_0x3d9623;return this[_0x4075c3(0x19c)][_0x4075c3(0x11f)](_0x4fc31e)||await this[_0x4075c3(0x159)](_0x4fc31e),this['_entities'][_0x4075c3(0x1bb)](_0x4fc31e);}['getLiveShareCoordinatorSync'](_0x330349){var _0x4f9542;return(_0x4f9542=this['_entities']['get'](_0x330349))!=null?_0x4f9542:null;}[_0x3d9623(0x1b7)](){const _0x15e53c=_0x3d9623;this[_0x15e53c(0x110)][_0x15e53c(0x182)](_0x34c7db[_0x15e53c(0x13b)]['UNIVER_SHEET'])[_0x15e53c(0x17a)](_0x5088b7[_0x15e53c(0x15f)](this[_0x15e53c(0x1a7)]))['subscribe'](async _0x332eb0=>{const _0x265cc=_0x15e53c,_0x19e31a=_0x332eb0[_0x265cc(0x14a)]();this[_0x265cc(0x19c)][_0x265cc(0x11f)](_0x19e31a)||this['_startLiveShareCoordinator'](_0x19e31a);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x34c7db[_0x15e53c(0x13b)][_0x15e53c(0xf1)])['pipe'](_0x5088b7[_0x15e53c(0x15f)](this['dispose$']))[_0x15e53c(0x147)](_0x450704=>{const _0x509a9c=_0x15e53c,_0x28a762=_0x450704[_0x509a9c(0x14a)](),_0x199270=this['_entities']['get'](_0x28a762);_0x199270==null||_0x199270[_0x509a9c(0x1a6)]();});}async['_startLiveShareCoordinator'](_0x566120){const _0xb613cb=_0x3d9623,_0x889607=await this[_0xb613cb(0xdc)]['requireSession'](_0x566120),_0x29f7ad=this[_0xb613cb(0xdb)]['createInstance'](_0x32170d[_0xb613cb(0x179)],_0x566120,_0x889607);return _0x29f7ad['init'](),this[_0xb613cb(0x19c)][_0xb613cb(0x1b5)](_0x566120,_0x29f7ad),_0x29f7ad;}},_0x32170d[_0x3d9623(0x187)]=_0x28330e([_0x3b782a(0x0,_0x34c7db[_0x3d9623(0xd7)]),_0x3b782a(0x1,_0x34c7db[_0x3d9623(0x16c)](_0x34c7db[_0x3d9623(0x151)])),_0x3b782a(0x2,_0x34c7db[_0x3d9623(0x16c)](_0xe0833[_0x3d9623(0x143)]))],_0x32170d[_0x3d9623(0x187)]);var _0x4fec94=(_0xa39b1=>(_0xa39b1[_0x3d9623(0x15d)]=_0x3d9623(0x10c),_0xa39b1[_0x3d9623(0xfd)]=_0x3d9623(0x155),_0xa39b1[_0x3d9623(0x193)]=_0x3d9623(0x18f),_0xa39b1['NOT_FOLLOWING']='not-following',_0xa39b1[_0x3d9623(0xeb)]=_0x3d9623(0x17f),_0xa39b1))(_0x4fec94||{});const _0x2450f3=_0x3d9623(0xed),_0x3e3925=0xc8;_0x32170d[_0x3d9623(0x179)]=class extends _0x34c7db[_0x3d9623(0x197)]{constructor(_0x204b66,_0x670f46,_0x43b13c,_0x5683c9,_0x2b3947){const _0x169ee8=_0x3d9623;super(),_0x4c5777(this,_0x169ee8(0x11b),new _0x317d5e[(_0x169ee8(0x1b8))]('idle')),_0x4c5777(this,_0x169ee8(0x199),this['_status$'][_0x169ee8(0x1b9)]()),_0x4c5777(this,_0x169ee8(0x1b7),!0x1),_0x4c5777(this,_0x169ee8(0x15e),null),_0x4c5777(this,_0x169ee8(0x117),null),(this[_0x169ee8(0x169)]=_0x204b66,this[_0x169ee8(0x14b)]=_0x670f46,this[_0x169ee8(0x101)]=_0x43b13c,this[_0x169ee8(0x14d)]=_0x5683c9,this[_0x169ee8(0x17d)]=_0x2b3947);}get[_0x3d9623(0xec)](){const _0x209465=_0x3d9623;return this[_0x209465(0x11b)][_0x209465(0x10b)]();}[_0x3d9623(0x1a6)](){const _0x4e72f3=_0x3d9623;var _0x3c1874;(_0x3c1874=this['_commandDisposable'])==null||_0x3c1874[_0x4e72f3(0x1a6)](),this[_0x4e72f3(0x11b)]['next'](_0x4e72f3(0x155)),this[_0x4e72f3(0x11b)]['complete']();}[_0x3d9623(0xfb)](){const _0x1976a5=_0x3d9623;return this[_0x1976a5(0xec)];}[_0x3d9623(0x141)](){const _0x3da1e6=_0x3d9623;this[_0x3da1e6(0x1b7)]||(this['_init']=!0x0,this['_collabSession'][_0x3da1e6(0xf0)][_0x3da1e6(0x17a)](_0x5088b7['takeUntil'](this[_0x3da1e6(0x1a7)]))[_0x3da1e6(0x147)](_0x5d3e45=>{const _0x5259a1=_0x3da1e6;switch(_0x5d3e45){case _0xe0833[_0x5259a1(0x19d)]['OFFLINE']:this[_0x5259a1(0x103)]();break;case _0xe0833[_0x5259a1(0x19d)]['ONLINE']:this[_0x5259a1(0x111)]();break;}}),this[_0x3da1e6(0x14b)][_0x3da1e6(0x127)]['pipe'](_0x5088b7[_0x3da1e6(0x15f)](this[_0x3da1e6(0x1a7)]))[_0x3da1e6(0x147)](_0x4dd799=>{const _0x38a494=_0x3da1e6,{eventID:_0x596925}=_0x4dd799;switch(_0x596925){case _0xe01c5b[_0x38a494(0x12b)][_0x38a494(0x119)]:this[_0x38a494(0x12d)](_0x4dd799);break;case _0xe01c5b[_0x38a494(0x12b)][_0x38a494(0x1a3)]:this[_0x38a494(0xf7)](_0x4dd799);break;case _0xe01c5b[_0x38a494(0x12b)][_0x38a494(0xfa)]:this[_0x38a494(0x14f)]();break;case _0xe01c5b['CollaborationEvent'][_0x38a494(0x192)]:this[_0x38a494(0xe0)](_0x4dd799);break;}}));}[_0x3d9623(0xdf)](){const _0x22f1cc=_0x3d9623;this[_0x22f1cc(0x14b)][_0x22f1cc(0x162)]({'eventID':_0xe01c5b[_0x22f1cc(0x12b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x22f1cc(0x14b)][_0x22f1cc(0x191)]()}},this[_0x22f1cc(0x169)]);}['stopPresenting'](){const _0x5baf62=_0x3d9623;this[_0x5baf62(0xec)]==='presenting'&&(this['_status$']['next'](_0x5baf62(0x155)),this['_collabSession']['send']({'eventID':_0xe01c5b[_0x5baf62(0x12b)][_0x5baf62(0xfa)],'data':{'unitID':this[_0x5baf62(0x169)]}},this['_unitID']));}['startFollowing'](){const _0x296613=_0x3d9623;this[_0x296613(0xec)]===_0x296613(0x184)&&(this[_0x296613(0x11b)][_0x296613(0x145)](_0x296613(0x18f)),this['_startFollowing']());}[_0x3d9623(0x164)](){const _0x58706e=_0x3d9623;this['_status']===_0x58706e(0x18f)&&this[_0x58706e(0xf3)]();}[_0x3d9623(0x12d)](_0x5ec037){const _0x65c0fa=_0x3d9623,{presenter:_0x5a5c07}=_0x5ec037[_0x65c0fa(0x196)],_0x2ae567=this[_0x65c0fa(0x14b)][_0x65c0fa(0x191)]();this['_presenter']=_0x5a5c07,_0x5a5c07===_0x2ae567?(this[_0x65c0fa(0xf3)](),this[_0x65c0fa(0x125)]()):this[_0x65c0fa(0xec)]!==_0x65c0fa(0x184)&&(this[_0x65c0fa(0xe5)](),this[_0x65c0fa(0x19f)]());}['_fetchOperations'](){const _0x1c9340=_0x3d9623,_0x40acdc={'eventID':_0xe01c5b['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x1c9340(0x14b)][_0x1c9340(0x162)](_0x40acdc,this[_0x1c9340(0x169)]);}[_0x3d9623(0x14f)](){const _0x14a14a=_0x3d9623;this[_0x14a14a(0x117)]=null,this[_0x14a14a(0xec)]!==_0x14a14a(0x17f)&&this['_beIdle']();}[_0x3d9623(0xe0)](_0x56c5f5){const _0xc35f4e=_0x3d9623;if(this[_0xc35f4e(0xec)]===_0xc35f4e(0x18f)&&this[_0xc35f4e(0x117)]===_0x56c5f5[_0xc35f4e(0x196)][_0xc35f4e(0x170)]){const _0x53ab4a=_0xe01c5b[_0xc35f4e(0xe9)](_0x56c5f5[_0xc35f4e(0x196)])[_0xc35f4e(0x118)][_0xc35f4e(0x10f)]()[_0xc35f4e(0x122)](_0x2c5470=>_0x2c5470['id']===_0xac9784['InsertSheetMutation']['id']);if(_0x53ab4a){const _0x4a8bed=_0x53ab4a['params'][_0xc35f4e(0x11c)],_0x305398=_0x53ab4a[_0xc35f4e(0x107)][_0xc35f4e(0x1b1)]['id'];setTimeout(()=>{const _0x3e6c0a=_0xc35f4e;this[_0x3e6c0a(0x17d)][_0x3e6c0a(0xf2)](_0xac9784[_0x3e6c0a(0x198)]['id'],{'unitId':_0x4a8bed,'subUnitId':_0x305398},{'fromCollab':!0x0});});}}}[_0x3d9623(0x125)](){const _0x3c6597=_0x3d9623;this[_0x3c6597(0x11b)]['next'](_0x3c6597(0x17f));const _0x54e445=new Map(),_0x41f5ad=this[_0x3c6597(0x15e)]=new _0x34c7db[(_0x3c6597(0xe8))]();_0x41f5ad[_0x3c6597(0x15a)](_0x34c7db['toDisposable'](()=>{const _0x19e9df=_0x3c6597;_0x54e445[_0x19e9df(0x19e)](_0x557a5f=>_0x557a5f[_0x19e9df(0x14c)]()),_0x54e445[_0x19e9df(0x180)]();})),_0x41f5ad['add'](this[_0x3c6597(0x17d)][_0x3c6597(0xde)](_0x2b0cc8=>{const _0x3fb9a9=_0x3c6597;var _0x3168c0;if(_0x2b0cc8[_0x3fb9a9(0x1af)]!==_0x34c7db[_0x3fb9a9(0x149)]['OPERATION']||!this[_0x3fb9a9(0x14d)][_0x3fb9a9(0x157)](_0x2b0cc8['id']))return;const {id:_0x47b788}=_0x2b0cc8;let _0x2d4c26;_0x54e445['has'](_0x47b788)?_0x2d4c26=_0x54e445['get'](_0x47b788):(_0x2d4c26=new _0x317d5e[(_0x3fb9a9(0x183))](),_0x54e445['set'](_0x47b788,_0x2d4c26),_0x2d4c26[_0x3fb9a9(0x17a)](_0x5088b7[_0x3fb9a9(0x1aa)]((_0x3168c0=this[_0x3fb9a9(0x101)][_0x3fb9a9(0x1a9)](_0x2450f3))!=null?_0x3168c0:_0x3e3925,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1cce25=>{const _0x358a7e=_0x3fb9a9;this[_0x358a7e(0x14b)][_0x358a7e(0x162)]({'eventID':_0xe01c5b['CollaborationEvent'][_0x358a7e(0x1a3)],'data':{'unitID':this['_unitID'],'operations':{[_0x1cce25['id']]:{'id':_0x1cce25['id'],'params':JSON[_0x358a7e(0x16b)](_0x1cce25['params'])}}}},this[_0x358a7e(0x169)]);})),_0x2d4c26[_0x3fb9a9(0x145)](_0x2b0cc8);})),this[_0x3c6597(0x14d)][_0x3c6597(0x1a4)](this[_0x3c6597(0x169)])[_0x3c6597(0x19e)](_0x75d463=>this[_0x3c6597(0x14b)]['send']({'eventID':_0xe01c5b[_0x3c6597(0x12b)][_0x3c6597(0x1a3)],'data':{'unitID':this[_0x3c6597(0x169)],'operations':{[_0x75d463['id']]:{'id':_0x75d463['id'],'params':JSON[_0x3c6597(0x16b)](_0x75d463['params'])}}}},this[_0x3c6597(0x169)]));}[_0x3d9623(0xe5)](){const _0x1290a5=_0x3d9623;var _0x40d932;this['_status$'][_0x1290a5(0x145)](_0x1290a5(0x155)),(_0x40d932=this[_0x1290a5(0x15e)])==null||_0x40d932[_0x1290a5(0x1a6)](),this[_0x1290a5(0x15e)]=null;}['_startFollowing'](){const _0x107fca=_0x3d9623;var _0x3c47a3;(_0x3c47a3=this['_commandDisposable'])==null||_0x3c47a3[_0x107fca(0x1a6)](),this[_0x107fca(0x11b)][_0x107fca(0x145)](_0x107fca(0x18f));}[_0x3d9623(0x132)](){const _0x5f27cc=_0x3d9623;var _0x72b3c;this[_0x5f27cc(0x11b)][_0x5f27cc(0x145)](_0x5f27cc(0x155)),(_0x72b3c=this[_0x5f27cc(0x15e)])==null||_0x72b3c[_0x5f27cc(0x1a6)](),this['_commandDisposable']=null;}[_0x3d9623(0xf3)](){const _0x3a2651=_0x3d9623;var _0x525d1e;this['_status$'][_0x3a2651(0x145)](_0x3a2651(0x184)),(_0x525d1e=this[_0x3a2651(0x15e)])==null||_0x525d1e['dispose']();}[_0x3d9623(0xf7)](_0x426086){const _0x157aa3=_0x3d9623;if([_0x157aa3(0x17f),_0x157aa3(0x184),_0x157aa3(0x10c)][_0x157aa3(0x129)](this['_status'])||!_0x426086[_0x157aa3(0x196)][_0x157aa3(0x102)]||_0x426086['data']['presenter']===this[_0x157aa3(0x14b)]['getMemberID']())return;this['_status']===_0x157aa3(0x155)&&this['_startFollowing']();const _0xb2cfb1=_0x426086[_0x157aa3(0x196)][_0x157aa3(0xe2)];Object['values'](_0xb2cfb1)['forEach'](_0x14afd8=>{const _0x2a45af=_0x157aa3;this[_0x2a45af(0x17d)][_0x2a45af(0xf2)](_0x14afd8['id'],_0x14afd8[_0x2a45af(0x107)]?JSON[_0x2a45af(0x146)](_0x14afd8[_0x2a45af(0x107)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3a7d4e=_0x3d9623;var _0x36dc77;this[_0x3a7d4e(0x11b)][_0x3a7d4e(0x145)]('offline'),(_0x36dc77=this[_0x3a7d4e(0x15e)])==null||_0x36dc77[_0x3a7d4e(0x1a6)]();}[_0x3d9623(0x111)](){const _0x161ab1=_0x3d9623;this['_status$'][_0x161ab1(0x145)]('idle'),this[_0x161ab1(0x19a)]();}},_0x32170d['LiveShareCoordinator']=_0x28330e([_0x3b782a(0x2,_0x34c7db[_0x3d9623(0x190)]),_0x3b782a(0x3,_0x34c7db[_0x3d9623(0x16c)](_0x423aa1)),_0x3b782a(0x4,_0x34c7db['ICommandService'])],_0x32170d['LiveShareCoordinator']);function _0x6d5d22(){const _0x1b1db3=_0x3d9623,_0xc987e=_0x3b604b[_0x1b1db3(0x18c)](_0x32170d[_0x1b1db3(0x187)]),_0x386675=_0x3b604b[_0x1b1db3(0x18c)](_0x34c7db['IUniverInstanceService']),_0x3baa8c=_0x3b604b[_0x1b1db3(0x113)](()=>_0x386675[_0x1b1db3(0x175)](_0x34c7db[_0x1b1db3(0x13b)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3f3f24,_0x1898e9]=_0x1f913f['useState'](null),[_0x1a895a,_0x3b5598]=_0x1f913f['useState'](_0x4fec94['IDLE']),_0x7e8433=_0x1f913f['useRef'](null);return _0x1f913f[_0x1b1db3(0xe7)](()=>(_0x3baa8c&&_0xc987e[_0x1b1db3(0xf9)](_0x3baa8c[_0x1b1db3(0x14a)]())[_0x1b1db3(0x131)](_0x4be215=>{const _0x3b061c=_0x1b1db3;_0x1898e9(_0x4be215),_0x7e8433[_0x3b061c(0x156)]=_0x4be215[_0x3b061c(0x199)][_0x3b061c(0x147)](_0xb5915b=>{_0x3b5598(_0xb5915b);});}),()=>{const _0x5c1280=_0x1b1db3;var _0x2212ff;(_0x2212ff=_0x7e8433[_0x5c1280(0x156)])==null||_0x2212ff[_0x5c1280(0x13a)](),_0x7e8433['current']=null;}),[_0x3baa8c,_0xc987e]),_0x3f3f24?_0x21b20a[_0x1b1db3(0x109)](_0x24d65f[_0x1b1db3(0x140)],{'align':_0x1b1db3(0x18a),'disabled':_0x1a895a===_0x4fec94[_0x1b1db3(0x15d)],'className':_0x1b1db3(0x148),'overlay':_0x21b20a[_0x1b1db3(0x109)](_0x558758,{'status':_0x1a895a,'coordinator':_0x3f3f24}),'children':_0x21b20a[_0x1b1db3(0x109)](_0x1b1db3(0xf5),{'className':_0x24d65f[_0x1b1db3(0x100)](_0x1b1db3(0xea),{'univer-cursor-not-allowed':_0x1a895a===_0x4fec94[_0x1b1db3(0x15d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1a895a!==_0x4fec94[_0x1b1db3(0x15d)]}),'type':_0x1b1db3(0xf5),'children':_0x21b20a[_0x1b1db3(0x109)](_0xc131,{'className':'univer-size-4'})})}):null;}function _0x558758(_0x3155e2){const _0x3f9160=_0x3d9623,{status:_0x30c4f2,coordinator:_0x3774d6}=_0x3155e2;switch(_0x30c4f2){case _0x4fec94['IDLE']:return _0x21b20a['jsx'](_0x4ac4f9,{'coordinator':_0x3774d6});case _0x4fec94[_0x3f9160(0x193)]:return _0x21b20a[_0x3f9160(0x109)](_0x46ea45,{'coordinator':_0x3774d6});case _0x4fec94[_0x3f9160(0x178)]:return _0x21b20a['jsx'](_0x81e4d3,{'coordinator':_0x3774d6});case _0x4fec94[_0x3f9160(0x15d)]:return _0x21b20a[_0x3f9160(0x109)](_0x34b943,{});case _0x4fec94[_0x3f9160(0xeb)]:return _0x21b20a[_0x3f9160(0x109)](_0x355e4b,{'coordinator':_0x3774d6});default:return null;}}function _0x4ac4f9(_0x6e60cc){const _0x5f25c0=_0x3d9623,{coordinator:_0x58126c}=_0x6e60cc;return _0x21b20a['jsxs'](_0x21b20a[_0x5f25c0(0x154)],{'children':[_0x21b20a[_0x5f25c0(0x109)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f25c0(0x19b)}),_0x21b20a['jsx'](_0x24d65f[_0x5f25c0(0x1b0)],{'onClick':()=>_0x58126c[_0x5f25c0(0xdf)](),'children':'Start'})]});}function _0x46ea45(_0x4266e2){const _0x416302=_0x3d9623,{coordinator:_0x5be1ea}=_0x4266e2;return _0x21b20a[_0x416302(0x116)](_0x21b20a['Fragment'],{'children':[_0x21b20a[_0x416302(0x109)](_0x416302(0x12c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x416302(0xe1)}),_0x21b20a['jsx'](_0x24d65f[_0x416302(0x1b0)],{'onClick':()=>_0x5be1ea[_0x416302(0x164)](),'children':_0x416302(0x142)})]});}function _0x81e4d3(_0x4e404f){const _0xc6f6f8=_0x3d9623,{coordinator:_0x175a17}=_0x4e404f;return _0x21b20a[_0xc6f6f8(0x116)](_0x21b20a[_0xc6f6f8(0x154)],{'children':[_0x21b20a['jsx'](_0xc6f6f8(0x12c),{'className':_0xc6f6f8(0x181),'children':_0xc6f6f8(0x166)}),_0x21b20a[_0xc6f6f8(0x109)](_0x24d65f[_0xc6f6f8(0x1b0)],{'variant':_0xc6f6f8(0x176),'onClick':()=>_0x175a17['startFollowing'](),'children':'Start\x20following'})]});}function _0x355e4b(_0x15ee7d){const _0xa73f32=_0x3d9623,{coordinator:_0x536e37}=_0x15ee7d;return _0x21b20a[_0xa73f32(0x116)](_0x21b20a[_0xa73f32(0x154)],{'children':[_0x21b20a[_0xa73f32(0x109)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xa73f32(0x1a2)}),_0x21b20a[_0xa73f32(0x109)](_0x24d65f[_0xa73f32(0x1b0)],{'variant':'default','onClick':()=>_0x536e37[_0xa73f32(0x177)](),'children':'Stop\x20presenting'})]});}function _0x34b943(){const _0x4da438=_0x3d9623;return _0x21b20a[_0x4da438(0x109)](_0x21b20a[_0x4da438(0x154)],{'children':_0x4da438(0xee)});}var _0x53eccd=Object[_0x3d9623(0x135)],_0x17e549=(_0x30b2f2,_0x239c4d,_0x1ebaa6,_0x42fcf4)=>{const _0x558e44=_0x3d9623;for(var _0x10aee3=_0x42fcf4>0x1?void 0x0:_0x42fcf4?_0x53eccd(_0x239c4d,_0x1ebaa6):_0x239c4d,_0x4c7678=_0x30b2f2[_0x558e44(0x11a)]-0x1,_0xf711dc;_0x4c7678>=0x0;_0x4c7678--)(_0xf711dc=_0x30b2f2[_0x4c7678])&&(_0x10aee3=_0xf711dc(_0x10aee3)||_0x10aee3);return _0x10aee3;},_0x487e5c=(_0x8aef26,_0xb36d73)=>(_0x5de36c,_0x5c9a6a)=>_0xb36d73(_0x5de36c,_0x5c9a6a,_0x8aef26);_0x32170d['DesktopLiveShareController']=class extends _0x34c7db[_0x3d9623(0x163)]{constructor(_0x15f1ad,_0x41ad41){const _0xe196c1=_0x3d9623;super(),this[_0xe196c1(0xdb)]=_0x15f1ad,this['_uiPartsService']=_0x41ad41,this[_0xe196c1(0x160)]();}['_mountLiveShare'](){const _0x1340d1=_0x3d9623;this[_0x1340d1(0x185)](this[_0x1340d1(0x1a1)][_0x1340d1(0x130)](_0x3b604b[_0x1340d1(0x1b4)]['HEADER_MENU'],()=>_0x3b604b[_0x1340d1(0x10e)](_0x6d5d22,this['_injector'])));}},_0x32170d['DesktopLiveShareController']=_0x17e549([_0x487e5c(0x0,_0x34c7db[_0x3d9623(0x16c)](_0x34c7db[_0x3d9623(0x151)])),_0x487e5c(0x1,_0x3b604b[_0x3d9623(0x11e)])],_0x32170d[_0x3d9623(0x1a8)]);const _0x814035=_0x3d9623(0xef),_0x2c36e1={};var _0x1b5c13=Object[_0x3d9623(0x135)],_0x101aa4=(_0x5c2d3b,_0x395518,_0x26e2ff,_0x43b694)=>{const _0x16ba23=_0x3d9623;for(var _0x3097eb=_0x43b694>0x1?void 0x0:_0x43b694?_0x1b5c13(_0x395518,_0x26e2ff):_0x395518,_0x203b49=_0x5c2d3b[_0x16ba23(0x11a)]-0x1,_0x407fd9;_0x203b49>=0x0;_0x203b49--)(_0x407fd9=_0x5c2d3b[_0x203b49])&&(_0x3097eb=_0x407fd9(_0x3097eb)||_0x3097eb);return _0x3097eb;},_0x4d30e8=(_0x136594,_0x48832e)=>(_0xf1a786,_0x31e2d0)=>_0x48832e(_0xf1a786,_0x31e2d0,_0x136594);let _0x5eba6f=class extends _0x34c7db[_0x3d9623(0x163)]{constructor(_0x3fde02){const _0x338c3f=_0x3d9623;super(),this[_0x338c3f(0x14d)]=_0x3fde02,this[_0x338c3f(0x1b7)]();}[_0x3d9623(0x1b7)](){const _0x200957=_0x3d9623;[_0x2c9719[_0x200957(0x174)]['id'],_0x2c9719[_0x200957(0x13d)]['id'],_0xac9784[_0x200957(0x198)]['id']][_0x200957(0x19e)](_0x4ff794=>{const _0x35bbc8=_0x200957;this['disposeWithMe'](this[_0x35bbc8(0x14d)][_0x35bbc8(0x16d)](_0x4ff794));});}};_0x5eba6f=_0x101aa4([_0x4d30e8(0x0,_0x34c7db[_0x3d9623(0x16c)](_0x423aa1))],_0x5eba6f);var _0x1cedba=Object[_0x3d9623(0x104)],_0x189d89=Object[_0x3d9623(0x135)],_0x597f5e=(_0x53ec30,_0x31e816,_0x553fa3)=>_0x31e816 in _0x53ec30?_0x1cedba(_0x53ec30,_0x31e816,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x553fa3}):_0x53ec30[_0x31e816]=_0x553fa3,_0x139bc2=(_0x4619da,_0x26a3c5,_0x255720,_0x4cbaeb)=>{const _0x57da35=_0x3d9623;for(var _0x51bbf0=_0x4cbaeb>0x1?void 0x0:_0x4cbaeb?_0x189d89(_0x26a3c5,_0x255720):_0x26a3c5,_0x57c097=_0x4619da[_0x57da35(0x11a)]-0x1,_0x400442;_0x57c097>=0x0;_0x57c097--)(_0x400442=_0x4619da[_0x57c097])&&(_0x51bbf0=_0x400442(_0x51bbf0)||_0x51bbf0);return _0x51bbf0;},_0x174138=(_0x43cd5e,_0x153234)=>(_0x5784ea,_0x2899a8)=>_0x153234(_0x5784ea,_0x2899a8,_0x43cd5e),_0x11f5f6=(_0x551acf,_0x38fea4,_0x1ca358)=>_0x597f5e(_0x551acf,typeof _0x38fea4!=_0x3d9623(0x115)?_0x38fea4+'':_0x38fea4,_0x1ca358);const _0x3dbe92='UNIVER_LIVE_SHARE_PLUGIN';_0x32170d[_0x3d9623(0x120)]=class extends _0x34c7db['Plugin']{constructor(_0x5a8625=_0x2c36e1,_0x1b4ade,_0xfbefcc){const _0x2e7aca=_0x3d9623;super(),this['_config']=_0x5a8625,this[_0x2e7aca(0xdb)]=_0x1b4ade,this[_0x2e7aca(0x101)]=_0xfbefcc;const {..._0x2aab0b}=_0x34c7db[_0x2e7aca(0x1b2)]({},_0x2c36e1,this[_0x2e7aca(0xe3)]);this[_0x2e7aca(0x101)]['setConfig'](_0x814035,_0x2aab0b);}['onStarting'](){const _0x56973a=_0x3d9623;_0x34c7db[_0x56973a(0x17e)](this[_0x56973a(0xdb)],_0x34c7db['mergeOverrideWithDependencies']([[_0x423aa1],[_0x32170d[_0x56973a(0x187)]],[_0x5eba6f],[_0x32170d['DesktopLiveShareController']]],this['_config'][_0x56973a(0x11d)])),_0x34c7db[_0x56973a(0x17c)](this[_0x56973a(0xdb)],[[_0x5eba6f]]);}[_0x3d9623(0x16a)](){const _0x43c643=_0x3d9623;_0x34c7db[_0x43c643(0x17c)](this['_injector'],[[_0x32170d[_0x43c643(0x1a8)]]]);}},_0x11f5f6(_0x32170d[_0x3d9623(0x120)],_0x3d9623(0x1af),_0x34c7db[_0x3d9623(0x13b)][_0x3d9623(0x108)]),_0x11f5f6(_0x32170d[_0x3d9623(0x120)],_0x3d9623(0x161),_0x3dbe92),_0x32170d[_0x3d9623(0x120)]=_0x139bc2([_0x34c7db[_0x3d9623(0x136)](_0xe0833['UniverCollaborationClientPlugin']),_0x174138(0x1,_0x34c7db[_0x3d9623(0x16c)](_0x34c7db[_0x3d9623(0x151)])),_0x174138(0x2,_0x34c7db['IConfigService'])],_0x32170d['UniverLiveSharePlugin']),_0x32170d[_0x3d9623(0x1ac)]=_0x6d5d22,_0x32170d['LiveShareService']=_0x423aa1,_0x32170d['LiveShareStatus']=_0x4fec94,Object[_0x3d9623(0x104)](_0x32170d,Symbol[_0x3d9623(0x15b)],{'value':'Module'});}));function _0x12a5(_0x396398,_0xf5f9d6){const _0x90d588=_0x90d5();return _0x12a5=function(_0x12a515,_0x50acfd){_0x12a515=_0x12a515-0xd7;let _0x504f38=_0x90d588[_0x12a515];return _0x504f38;},_0x12a5(_0x396398,_0xf5f9d6);}function _0x90d5(){const _0x494d5d=['_univerInstanceService','_handleOnline','random','useObservable','children','symbol','jsxs','_presenter','mutations','LIVESHARE_NEW_HOST','length','_status$','unitId','override','IUIPartsService','has','UniverLiveSharePlugin','UniverDesign','find','UniverProLiveShare','use','_startPresenting','registerInitialStateReporter','event$','url(#$1','includes','3060eNCwEh','CollaborationEvent','div','_handleNewHost','assign','idSuffix','registerComponent','then','_beIdle','svg','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','getOwnPropertyDescriptor','DependentOn','displayName','4024205XeZroL','UniverCore','unsubscribe','UniverInstanceType','entries','SetScrollOperation','evenodd','mask','Dropdown','init','Stop\x20following','CollaborationSessionService','@univerjs/sheets','next','parse','subscribe','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','CommandType','getUnitId','_collabSession','complete','_liveShareService','1em','_handleTerminate','substring','Injector','tag','currentColor','Fragment','idle','current','shouldShareOperation','3073010rUAJRC','_startLiveShareCoordinator','add','toStringTag','path','OFFLINE','_commandDisposable','takeUntil','_mountLiveShare','pluginName','send','Disposable','stopFollowing','map','You\x27re\x20not\x20following\x20the\x20presenter','delete','@univerjs-pro/collaboration','_unitID','onRendered','stringify','Inject','registerSharedOperation','UniverSheets','UniverIcon','memberID','defs','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','SetZoomRatioOperation','getCurrentTypeOfUnit$','text','stopPresenting','NOT_FOLLOWING','LiveShareCoordinator','pipe','createElement','touchDependencies','_commandService','registerDependencies','presenting','clear','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','Subject','not-following','disposeWithMe','6621576wcFoSR','LiveShareController','181954qvyiar','forwardRef','end','useRef','useDependency','react/jsx-runtime','7236ZYVgZO','following','IConfigService','getMemberID','NEW_CHANGESETS','FOLLOWING','UniverProCollaboration','amd','data','RxDisposable','SetWorksheetActiveOperation','status$','_fetchOperations','Present\x20this\x20document','_entities','SessionStatus','forEach','_startFollowing','React','_uiPartsService','You\x27re\x20presenting\x20the\x20document','LIVESHARE_OPERATION','getInitialStates','129297nfaqXD','dispose','dispose$','DesktopLiveShareController','getConfig','throttleTime','http://www.w3.org/2000/svg','LiveShare','_reporters','_sharedOperations','type','Button','sheet','merge','161097jzTCEo','BuiltInUIPart','set','string','_init','BehaviorSubject','asObservable','live-share-icon','get','toDisposable','xlink:href','trim','IUniverInstanceService','116IgWFVq','from','none','_injector','_collabSessionService','138JMAfED','onCommandExecuted','tryStartPresenting','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','operations','_config','rxjs','_stopPresenting','operators','useEffect','DisposableCollection','parseProtocolChangeset','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','PRESENTING','_status','SAME_OPERATION_SHARE_INTERVAL','You\x27are\x20offline.','live-share.config','sessionStatus$','UNIVER_SHEET','executeCommand','_stopFollowing','function','button','colorChannel1','_handleOperation','UniverProCollaborationClient','getLiveShareCoordinator','LIVESHARE_TERMINATE','getStatus','@univerjs/sheets-ui','IDLE','UniverSheetsUi','exports','clsx','_configService','presenter','_handleOffline','defineProperty','attrs','@univerjs-pro/collaboration-client','params','UNIVER_UNKNOWN','jsx','toString','getValue','offline','object','connectInjector','reverse'];_0x90d5=function(){return _0x494d5d;};return _0x90d5();}
|
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",
|
|
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/
|
|
66
|
-
"@univerjs/sheets": "0.12.
|
|
67
|
-
"@univerjs/ui": "0.12.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.1",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.1",
|
|
62
|
+
"@univerjs/core": "0.12.1",
|
|
63
|
+
"@univerjs/design": "0.12.1",
|
|
64
|
+
"@univerjs/sheets": "0.12.1",
|
|
65
|
+
"@univerjs/engine-render": "0.12.1",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.1",
|
|
67
|
+
"@univerjs/ui": "0.12.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.2",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs-infra/shared": "0.12.
|
|
77
|
+
"@univerjs-infra/shared": "0.12.1",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|