@univerjs-pro/live-share 0.10.14-nightly.202511070640 → 0.10.14-nightly.202511070939
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 +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1579e9=_0x4983;(function(_0x3fcafc,_0x53beda){const _0x1d9de7=_0x4983,_0x20c8f9=_0x3fcafc();while(!![]){try{const _0x4382cc=parseInt(_0x1d9de7(0x6a))/0x1+-parseInt(_0x1d9de7(0x73))/0x2*(parseInt(_0x1d9de7(0x77))/0x3)+parseInt(_0x1d9de7(0x74))/0x4+-parseInt(_0x1d9de7(0x8b))/0x5+parseInt(_0x1d9de7(0x6b))/0x6+-parseInt(_0x1d9de7(0x89))/0x7+parseInt(_0x1d9de7(0x6e))/0x8;if(_0x4382cc===_0x53beda)break;else _0x20c8f9['push'](_0x20c8f9['shift']());}catch(_0x50e5dc){_0x20c8f9['push'](_0x20c8f9['shift']());}}}(_0x58fe,0xe377a));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[_0x1579e9(0x7a)]{['_initialize'](_0x2c0151,_0x10e0e7,_0x418fca,_0x2e69db,_0x353663){const _0x1fb025=_0x1579e9,_0x537aec=_0x2c0151[_0x1fb025(0x88)](n[_0x1fb025(0x83)]),_0x1c9ad6=_0x2c0151['get'](g[_0x1fb025(0x87)]),_0x3b36f4=_0x10e0e7[_0x1fb025(0x6c)](),_0x22895d=_0x10e0e7[_0x1fb025(0x84)](),_0x36c694=_0x537aec['getLiveShareCoordinatorSync'](_0x3b36f4);(_0x36c694==null?void 0x0:_0x36c694[_0x1fb025(0x78)]())!==n['LiveShareStatus']['PRESENTING']||(_0x418fca[_0x1fb025(0x82)]()!==_0x22895d[_0x1fb025(0x82)]()&&this[_0x1fb025(0x70)]['executeCommand'](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x3b36f4,'subUnitId':_0x418fca['getSheetId']()}),!_0x1c9ad6[_0x1fb025(0x6f)](_0x3b36f4))||_0x353663[_0x1fb025(0x7d)](f[_0x1fb025(0x75)]['id'],{'unitId':_0x10e0e7[_0x1fb025(0x6c)](),'sheetId':_0x418fca[_0x1fb025(0x82)](),'sheetViewStartRow':_0x2e69db['startRow'],'sheetViewStartColumn':_0x2e69db['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x4983(_0x32aa6a,_0x5554d8){const _0x58fede=_0x58fe();return _0x4983=function(_0x4983eb,_0x46fe45){_0x4983eb=_0x4983eb-0x67;let _0x5199be=_0x58fede[_0x4983eb];return _0x5199be;},_0x4983(_0x32aa6a,_0x5554d8);}function _0x58fe(){const _0x15fa9d=['LiveShareController','getActiveSheet','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','IRenderManagerService','get','2158870mJZiSV','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1017335RsKjew','getId','stopFollowing','_injector','510574flaHzt','9646218HQWjMU','getUnitId','extend','6330320ukrLTU','getRenderById','_commandService','LiveShareStatus','getLiveShareCoordinatorSync','734012pjVdcu','8160Mfgitf','SetScrollOperation','startPresenting','12DlzWRx','getStatus','FEnum','FRange','tryStartPresenting','IDLE','syncExecuteCommand','FUniver','getActiveWorkbook','startFollowing','getLiveShareStatus','getSheetId'];_0x58fe=function(){return _0x15fa9d;};return _0x58fe();}d['FRange'][_0x1579e9(0x6d)](w);class C extends a['FUniver']{[_0x1579e9(0x81)](){const _0x1a9d7b=_0x1579e9;var _0x416997,_0x32ced2;const _0x817785=this['_injector']['get'](n[_0x1a9d7b(0x83)]),_0x329375=(_0x416997=this[_0x1a9d7b(0x7f)]())==null?void 0x0:_0x416997[_0x1a9d7b(0x67)]();if(!_0x329375)throw new Error(_0x1a9d7b(0x86));const _0x476630=_0x817785[_0x1a9d7b(0x72)](_0x329375);return(_0x32ced2=_0x476630==null?void 0x0:_0x476630[_0x1a9d7b(0x78)]())!=null?_0x32ced2:n[_0x1a9d7b(0x71)][_0x1a9d7b(0x7c)];}[_0x1579e9(0x80)](){const _0x48d225=_0x1579e9;var _0x4b522c;const _0x484957=this['_injector'][_0x48d225(0x88)](n[_0x48d225(0x83)]),_0x531aa3=(_0x4b522c=this[_0x48d225(0x7f)]())==null?void 0x0:_0x4b522c[_0x48d225(0x67)]();if(!_0x531aa3)throw new Error(_0x48d225(0x86));const _0x21d0f0=_0x484957[_0x48d225(0x72)](_0x531aa3);if(!_0x21d0f0)throw new Error(_0x48d225(0x8a));_0x21d0f0[_0x48d225(0x80)]();}['stopFollowing'](){const _0x214aa8=_0x1579e9;var _0xb0163f;const _0x299536=this[_0x214aa8(0x69)][_0x214aa8(0x88)](n['LiveShareController']),_0x4c03b0=(_0xb0163f=this[_0x214aa8(0x7f)]())==null?void 0x0:_0xb0163f[_0x214aa8(0x67)]();if(!_0x4c03b0)throw new Error(_0x214aa8(0x86));const _0x36e985=_0x299536[_0x214aa8(0x72)](_0x4c03b0);if(!_0x36e985)throw new Error(_0x214aa8(0x8a));_0x36e985[_0x214aa8(0x68)]();}[_0x1579e9(0x76)](){const _0x40955a=_0x1579e9;var _0x45370f;const _0x52cda3=this[_0x40955a(0x69)][_0x40955a(0x88)](n[_0x40955a(0x83)]),_0x46aa9d=(_0x45370f=this[_0x40955a(0x7f)]())==null?void 0x0:_0x45370f[_0x40955a(0x67)]();if(!_0x46aa9d)throw new Error(_0x40955a(0x86));const _0x2d10ee=_0x52cda3['getLiveShareCoordinatorSync'](_0x46aa9d);if(!_0x2d10ee)throw new Error(_0x40955a(0x8a));_0x2d10ee[_0x40955a(0x7b)]();}['stopPresenting'](){const _0x3eec5a=_0x1579e9;var _0x490ec5;const _0x35f8c7=this[_0x3eec5a(0x69)]['get'](n['LiveShareController']),_0x23e487=(_0x490ec5=this['getActiveWorkbook']())==null?void 0x0:_0x490ec5[_0x3eec5a(0x67)]();if(!_0x23e487)throw new Error(_0x3eec5a(0x86));const _0x367eea=_0x35f8c7[_0x3eec5a(0x72)](_0x23e487);if(!_0x367eea)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x367eea['stopPresenting']();}}a[_0x1579e9(0x7e)][_0x1579e9(0x6d)](C);class L extends a[_0x1579e9(0x79)]{get[_0x1579e9(0x85)](){const _0x50e795=_0x1579e9;return n[_0x50e795(0x71)];}}a[_0x1579e9(0x79)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x44c76a=_0x377e;(function(_0x11082c,_0xb465ce){const _0x5723b1=_0x377e,_0x3ed9f2=_0x11082c();while(!![]){try{const _0x295705=-parseInt(_0x5723b1(0x206))/0x1*(-parseInt(_0x5723b1(0x271))/0x2)+parseInt(_0x5723b1(0x225))/0x3*(-parseInt(_0x5723b1(0x25a))/0x4)+-parseInt(_0x5723b1(0x219))/0x5*(-parseInt(_0x5723b1(0x237))/0x6)+-parseInt(_0x5723b1(0x1bc))/0x7*(parseInt(_0x5723b1(0x211))/0x8)+parseInt(_0x5723b1(0x200))/0x9*(-parseInt(_0x5723b1(0x1f6))/0xa)+-parseInt(_0x5723b1(0x247))/0xb+parseInt(_0x5723b1(0x1dd))/0xc;if(_0x295705===_0xb465ce)break;else _0x3ed9f2['push'](_0x3ed9f2['shift']());}catch(_0x258b51){_0x3ed9f2['push'](_0x3ed9f2['shift']());}}}(_0x3fff,0xcd1a5));var T=Object[_0x44c76a(0x1d7)],U=(_0x39edab,_0x2ff17e,_0x3e4506)=>_0x2ff17e in _0x39edab?T(_0x39edab,_0x2ff17e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e4506}):_0x39edab[_0x2ff17e]=_0x3e4506,_=(_0x5030ab,_0x548359,_0x3ffb29)=>U(_0x5030ab,typeof _0x548359!='symbol'?_0x548359+'':_0x548359,_0x3ffb29);function _0x377e(_0x432048,_0x401416){const _0x3fffe1=_0x3fff();return _0x377e=function(_0x377e11,_0xb20b19){_0x377e11=_0x377e11-0x1a1;let _0x57162d=_0x3fffe1[_0x377e11];return _0x57162d;},_0x377e(_0x432048,_0x401416);}Object['defineProperty'](exports,Symbol[_0x44c76a(0x1f9)],{'value':_0x44c76a(0x26f)});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:_0x48f1f4,..._0x297a52}){const _0x19608a=_0x44c76a,{icon:_0x4b68f8,id:_0x4cb8f8,className:_0x42e8c0,extend:_0x5e0efc,..._0x20b97e}=_0x297a52,_0xaca0d2=(_0x19608a(0x1d1)+_0x4cb8f8+'\x20'+(_0x42e8c0||''))[_0x19608a(0x1f4)](),_0x2c0ff8=v[_0x19608a(0x23d)]('_'+H());return j(_0x4b68f8,''+_0x4cb8f8,{'defIds':_0x4b68f8[_0x19608a(0x25f)],'idSuffix':_0x2c0ff8[_0x19608a(0x240)]},{'ref':_0x48f1f4,'className':_0xaca0d2,..._0x20b97e},_0x5e0efc);}function j(_0x47bdd4,_0x5be2ae,_0x6d8ca,_0x3852eb,_0x19d006){const _0x12fa43=_0x44c76a;return v[_0x12fa43(0x256)](_0x47bdd4[_0x12fa43(0x1e4)],{'key':_0x5be2ae,...y(_0x47bdd4,_0x6d8ca,_0x19d006),..._0x3852eb},(F(_0x47bdd4,_0x6d8ca)[_0x12fa43(0x1ae)]||[])[_0x12fa43(0x244)]((_0x1250ef,_0x2cccde)=>j(_0x1250ef,_0x5be2ae+'-'+_0x47bdd4[_0x12fa43(0x1e4)]+'-'+_0x2cccde,_0x6d8ca,void 0x0,_0x19d006)));}function y(_0xb66a80,_0x4c325c,_0x6a3c57){const _0x5e2208=_0x44c76a,_0x42102b={..._0xb66a80[_0x5e2208(0x208)]};_0x6a3c57!=null&&_0x6a3c57[_0x5e2208(0x26c)]&&_0x42102b[_0x5e2208(0x1b8)]==='colorChannel1'&&(_0x42102b[_0x5e2208(0x1b8)]=_0x6a3c57[_0x5e2208(0x26c)]),_0xb66a80[_0x5e2208(0x1e4)]===_0x5e2208(0x1eb)&&_0x42102b['id']&&(_0x42102b['id']=_0x42102b['id']+_0x4c325c[_0x5e2208(0x1d2)]),Object[_0x5e2208(0x25b)](_0x42102b)[_0x5e2208(0x231)](([_0x49d6c6,_0x4a8fa9])=>{const _0x4817df=_0x5e2208;_0x49d6c6==='mask'&&typeof _0x4a8fa9=='string'&&(_0x42102b[_0x49d6c6]=_0x4a8fa9[_0x4817df(0x1f5)](/url\(#(.*)\)/,_0x4817df(0x24e)+_0x4c325c[_0x4817df(0x1d2)]+')'));});const {defIds:_0x51f725}=_0x4c325c;return!_0x51f725||_0x51f725['length']===0x0||(_0xb66a80['tag']===_0x5e2208(0x1cd)&&_0x42102b['xlink:href']&&(_0x42102b['xlink:href']=_0x42102b['xlink:href']+_0x4c325c[_0x5e2208(0x1d2)]),Object[_0x5e2208(0x25b)](_0x42102b)[_0x5e2208(0x231)](([_0x5d2e1c,_0x26dcb4])=>{const _0x1bf6a6=_0x5e2208;typeof _0x26dcb4==_0x1bf6a6(0x1c3)&&(_0x42102b[_0x5d2e1c]=_0x26dcb4[_0x1bf6a6(0x1f5)](/url\(#(.*)\)/,_0x1bf6a6(0x24e)+_0x4c325c[_0x1bf6a6(0x1d2)]+')'));})),_0x42102b;}function F(_0x17a86b,_0x30ced8){const _0x13bc5c=_0x44c76a;var _0x135de0;const {defIds:_0x5552af}=_0x30ced8;return!_0x5552af||_0x5552af[_0x13bc5c(0x279)]===0x0?_0x17a86b:_0x17a86b['tag']===_0x13bc5c(0x234)&&((_0x135de0=_0x17a86b[_0x13bc5c(0x1ae)])!=null&&_0x135de0['length'])?{..._0x17a86b,'children':_0x17a86b[_0x13bc5c(0x1ae)][_0x13bc5c(0x244)](_0x4e3043=>typeof _0x4e3043['attrs']['id']==_0x13bc5c(0x1c3)&&_0x5552af&&_0x5552af['includes'](_0x4e3043['attrs']['id'])?{..._0x4e3043,'attrs':{..._0x4e3043[_0x13bc5c(0x208)],'id':_0x4e3043[_0x13bc5c(0x208)]['id']+_0x30ced8[_0x13bc5c(0x1d2)]}}:_0x4e3043)}:_0x17a86b;}function H(){const _0x1bbfc2=_0x44c76a;return Math[_0x1bbfc2(0x222)]()['toString'](0x24)[_0x1bbfc2(0x24d)](0x2,0x8);}x['displayName']=_0x44c76a(0x1f0);const V={'tag':_0x44c76a(0x270),'attrs':{'xmlns':_0x44c76a(0x229),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x44c76a(0x232),'height':_0x44c76a(0x232)},'children':[{'tag':_0x44c76a(0x1a6),'attrs':{'fill':_0x44c76a(0x22d),'d':_0x44c76a(0x236)}},{'tag':_0x44c76a(0x1a6),'attrs':{'fill':_0x44c76a(0x22d),'d':_0x44c76a(0x1d8),'fillRule':'evenodd','clipRule':_0x44c76a(0x1a8)}}]},R=v['forwardRef'](function(_0x553b9d,_0x225510){const _0x42a5e9=_0x44c76a;return v[_0x42a5e9(0x256)](x,Object[_0x42a5e9(0x216)]({},_0x553b9d,{'id':_0x42a5e9(0x21f),'ref':_0x225510,'icon':V}));});R[_0x44c76a(0x1a2)]=_0x44c76a(0x227);class E extends o[_0x44c76a(0x1ea)]{constructor(){const _0x2b8249=_0x44c76a;super(...arguments),_(this,_0x2b8249(0x27d),new Set()),_(this,'_reporters',new Set());}[_0x44c76a(0x1cc)](_0x4e10a8){const _0x33c74e=_0x44c76a;return this['_sharedOperations'][_0x33c74e(0x276)](_0x4e10a8),o['toDisposable'](()=>this['_sharedOperations']['delete'](_0x4e10a8));}[_0x44c76a(0x1c2)](_0x126142){const _0x4cb822=_0x44c76a;return this[_0x4cb822(0x205)]['add'](_0x126142),o['toDisposable'](()=>this[_0x4cb822(0x205)][_0x4cb822(0x1ce)](_0x126142));}[_0x44c76a(0x20a)](_0x3897a9){const _0x57f390=_0x44c76a;return this[_0x57f390(0x27d)][_0x57f390(0x1e0)](_0x3897a9);}[_0x44c76a(0x1b6)](_0xe12633){const _0x4f374d=_0x44c76a;return Array[_0x4f374d(0x21e)](this['_reporters'])[_0x4f374d(0x244)](_0x44e674=>_0x44e674(_0xe12633));}}var M=Object[_0x44c76a(0x22c)],P=(_0x21fd5d,_0x2f9d95,_0x4ba791,_0x47d5e6)=>{for(var _0x35ee67=_0x47d5e6>0x1?void 0x0:_0x47d5e6?M(_0x2f9d95,_0x4ba791):_0x2f9d95,_0xc3b0f0=_0x21fd5d['length']-0x1,_0x47b0e4;_0xc3b0f0>=0x0;_0xc3b0f0--)(_0x47b0e4=_0x21fd5d[_0xc3b0f0])&&(_0x35ee67=_0x47b0e4(_0x35ee67)||_0x35ee67);return _0x35ee67;},S=(_0x563601,_0x5c1937)=>(_0x56741a,_0x55989e)=>_0x5c1937(_0x56741a,_0x55989e,_0x563601);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x47486d,_0x374af4,_0x40a76f){const _0x583376=_0x44c76a;super(),_(this,_0x583376(0x1e7),new Map()),(this[_0x583376(0x233)]=_0x47486d,this[_0x583376(0x261)]=_0x374af4,this[_0x583376(0x1d3)]=_0x40a76f,this[_0x583376(0x1ee)]());}async[_0x44c76a(0x22e)](_0x541d8b){const _0xe8a0b=_0x44c76a;return this[_0xe8a0b(0x1e7)][_0xe8a0b(0x1e0)](_0x541d8b)||await this[_0xe8a0b(0x220)](_0x541d8b),this[_0xe8a0b(0x1e7)][_0xe8a0b(0x1b7)](_0x541d8b);}[_0x44c76a(0x226)](_0x5ec61f){const _0x2cbf1c=_0x44c76a;var _0x4a78a4;return(_0x4a78a4=this[_0x2cbf1c(0x1e7)][_0x2cbf1c(0x1b7)](_0x5ec61f))!=null?_0x4a78a4:null;}[_0x44c76a(0x1ee)](){const _0x1b0271=_0x44c76a;this[_0x1b0271(0x233)][_0x1b0271(0x258)](o[_0x1b0271(0x267)]['UNIVER_SHEET'])['pipe'](I[_0x1b0271(0x1c4)](this[_0x1b0271(0x1be)]))['subscribe'](async _0x50fbfb=>{const _0x559f8e=_0x1b0271,_0x3507d3=_0x50fbfb['getUnitId']();this[_0x559f8e(0x1e7)]['has'](_0x3507d3)||this[_0x559f8e(0x220)](_0x3507d3);}),this[_0x1b0271(0x233)][_0x1b0271(0x245)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1b0271(0x262)](I[_0x1b0271(0x1c4)](this[_0x1b0271(0x1be)]))[_0x1b0271(0x27c)](_0x4165c9=>{const _0x1eecbf=_0x1b0271,_0x878224=_0x4165c9[_0x1eecbf(0x24c)](),_0x3a817d=this[_0x1eecbf(0x1e7)]['get'](_0x878224);_0x3a817d==null||_0x3a817d[_0x1eecbf(0x1ad)]();});}async['_startLiveShareCoordinator'](_0x174b39){const _0x1d7342=_0x44c76a,_0x2cb3c6=await this['_collabSessionService'][_0x1d7342(0x1b5)](_0x174b39),_0x5d1c6c=this['_injector'][_0x1d7342(0x210)](exports['LiveShareCoordinator'],_0x174b39,_0x2cb3c6);return _0x5d1c6c[_0x1d7342(0x1da)](),this['_entities'][_0x1d7342(0x1c9)](_0x174b39,_0x5d1c6c),_0x5d1c6c;}},exports[_0x44c76a(0x1b4)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x44c76a(0x1bf)](o[_0x44c76a(0x230)])),S(0x2,o[_0x44c76a(0x1bf)](b[_0x44c76a(0x1fa)]))],exports['LiveShareController']);var u=(_0x12ef8b=>(_0x12ef8b[_0x44c76a(0x257)]=_0x44c76a(0x265),_0x12ef8b[_0x44c76a(0x1de)]='idle',_0x12ef8b['FOLLOWING']=_0x44c76a(0x239),_0x12ef8b[_0x44c76a(0x25d)]=_0x44c76a(0x1c7),_0x12ef8b[_0x44c76a(0x224)]=_0x44c76a(0x1ec),_0x12ef8b))(u||{});const k=_0x44c76a(0x26b),q=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x2d69bf,_0x24449a,_0x2479c4,_0x5b6816,_0x38d49c){const _0x45564a=_0x44c76a;super(),_(this,_0x45564a(0x1e5),new O[(_0x45564a(0x243))](_0x45564a(0x254))),_(this,_0x45564a(0x1a7),this['_status$']['asObservable']()),_(this,_0x45564a(0x1ee),!0x1),_(this,'_commandDisposable',null),_(this,_0x45564a(0x253),null),(this[_0x45564a(0x1d4)]=_0x2d69bf,this['_collabSession']=_0x24449a,this[_0x45564a(0x1dc)]=_0x2479c4,this['_liveShareService']=_0x5b6816,this[_0x45564a(0x23e)]=_0x38d49c);}get[_0x44c76a(0x248)](){const _0x332377=_0x44c76a;return this[_0x332377(0x1e5)][_0x332377(0x1a9)]();}[_0x44c76a(0x1ad)](){const _0x36f952=_0x44c76a;var _0x1d5a0e;(_0x1d5a0e=this[_0x36f952(0x221)])==null||_0x1d5a0e[_0x36f952(0x1ad)](),this['_status$'][_0x36f952(0x23b)](_0x36f952(0x254)),this[_0x36f952(0x1e5)]['complete']();}[_0x44c76a(0x215)](){const _0x40044b=_0x44c76a;return this[_0x40044b(0x248)];}[_0x44c76a(0x1da)](){const _0x449c1e=_0x44c76a;this[_0x449c1e(0x1ee)]||(this[_0x449c1e(0x1ee)]=!0x0,this[_0x449c1e(0x1e9)][_0x449c1e(0x1f7)]['pipe'](I[_0x449c1e(0x1c4)](this['dispose$']))[_0x449c1e(0x27c)](_0x238902=>{const _0x706cff=_0x449c1e;switch(_0x238902){case b[_0x706cff(0x203)][_0x706cff(0x257)]:this[_0x706cff(0x1d5)]();break;case b[_0x706cff(0x203)][_0x706cff(0x25e)]:this[_0x706cff(0x264)]();break;}}),this[_0x449c1e(0x1e9)][_0x449c1e(0x281)][_0x449c1e(0x262)](I[_0x449c1e(0x1c4)](this[_0x449c1e(0x1be)]))[_0x449c1e(0x27c)](_0x104660=>{const _0x11e06c=_0x449c1e,{eventID:_0x4eb876}=_0x104660;switch(_0x4eb876){case d[_0x11e06c(0x213)][_0x11e06c(0x27b)]:this['_handleNewHost'](_0x104660);break;case d[_0x11e06c(0x213)][_0x11e06c(0x242)]:this[_0x11e06c(0x21c)](_0x104660);break;case d[_0x11e06c(0x213)][_0x11e06c(0x20b)]:this[_0x11e06c(0x26a)]();break;case d[_0x11e06c(0x213)][_0x11e06c(0x1d9)]:this[_0x11e06c(0x263)](_0x104660);break;}}));}[_0x44c76a(0x272)](){const _0x5aa812=_0x44c76a;this['_collabSession']['send']({'eventID':d[_0x5aa812(0x213)][_0x5aa812(0x1b2)],'data':{'unitID':this[_0x5aa812(0x1d4)],'userID':this['_collabSession'][_0x5aa812(0x214)]()}},this[_0x5aa812(0x1d4)]);}['stopPresenting'](){const _0x38ba33=_0x44c76a;this['_status']===_0x38ba33(0x1ec)&&(this[_0x38ba33(0x1e5)][_0x38ba33(0x23b)](_0x38ba33(0x254)),this[_0x38ba33(0x1e9)]['send']({'eventID':d[_0x38ba33(0x213)][_0x38ba33(0x20b)],'data':{'unitID':this[_0x38ba33(0x1d4)]}},this['_unitID']));}['startFollowing'](){const _0x43dd7d=_0x44c76a;this[_0x43dd7d(0x248)]===_0x43dd7d(0x1c7)&&(this[_0x43dd7d(0x1e5)][_0x43dd7d(0x23b)]('following'),this[_0x43dd7d(0x1db)]());}[_0x44c76a(0x20f)](){const _0x56e2e4=_0x44c76a;this['_status']==='following'&&this[_0x56e2e4(0x1c1)]();}[_0x44c76a(0x269)](_0x12437d){const _0x3de644=_0x44c76a,{presenter:_0x2ccf7e}=_0x12437d['data'],_0xffa653=this[_0x3de644(0x1e9)][_0x3de644(0x214)]();this[_0x3de644(0x253)]=_0x2ccf7e,_0x2ccf7e===_0xffa653?(this[_0x3de644(0x1c1)](),this[_0x3de644(0x1c0)]()):this[_0x3de644(0x248)]!==_0x3de644(0x1c7)&&(this[_0x3de644(0x235)](),this[_0x3de644(0x1db)]());}[_0x44c76a(0x259)](){const _0x4f00be=_0x44c76a,_0x5d8e2a={'eventID':d['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4f00be(0x1e9)][_0x4f00be(0x21a)](_0x5d8e2a,this['_unitID']);}[_0x44c76a(0x26a)](){this['_presenter']=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x44c76a(0x263)](_0x4966fd){const _0x2d9263=_0x44c76a;if(this[_0x2d9263(0x248)]==='following'&&this['_presenter']===_0x4966fd['data'][_0x2d9263(0x25c)]){const _0x270b17=d[_0x2d9263(0x241)](_0x4966fd[_0x2d9263(0x260)])[_0x2d9263(0x251)][_0x2d9263(0x1a3)]()[_0x2d9263(0x1b0)](_0x25a213=>_0x25a213['id']===C['InsertSheetMutation']['id']);if(_0x270b17){const _0x5364be=_0x270b17[_0x2d9263(0x1cb)][_0x2d9263(0x278)],_0x3e67f4=_0x270b17[_0x2d9263(0x1cb)][_0x2d9263(0x1fb)]['id'];setTimeout(()=>{const _0x2fbabf=_0x2d9263;this[_0x2fbabf(0x23e)]['executeCommand'](C[_0x2fbabf(0x23a)]['id'],{'unitId':_0x5364be,'subUnitId':_0x3e67f4},{'fromCollab':!0x0});});}}}[_0x44c76a(0x1c0)](){const _0x155f18=_0x44c76a;this[_0x155f18(0x1e5)][_0x155f18(0x23b)]('presenting');const _0xd28ec=new Map(),_0x5d6a79=this[_0x155f18(0x221)]=new o[(_0x155f18(0x1df))]();_0x5d6a79['add'](o[_0x155f18(0x252)](()=>{const _0x28ae13=_0x155f18;_0xd28ec[_0x28ae13(0x231)](_0x141754=>_0x141754['complete']()),_0xd28ec['clear']();})),_0x5d6a79['add'](this[_0x155f18(0x23e)][_0x155f18(0x20c)](_0x187612=>{const _0x145e31=_0x155f18;var _0x85bdc8;if(_0x187612['type']!==o[_0x145e31(0x1a5)][_0x145e31(0x23c)]||!this['_liveShareService'][_0x145e31(0x20a)](_0x187612['id']))return;const {id:_0x389fe3}=_0x187612;let _0x4bc0ee;_0xd28ec[_0x145e31(0x1e0)](_0x389fe3)?_0x4bc0ee=_0xd28ec[_0x145e31(0x1b7)](_0x389fe3):(_0x4bc0ee=new O[(_0x145e31(0x274))](),_0xd28ec[_0x145e31(0x1c9)](_0x389fe3,_0x4bc0ee),_0x4bc0ee[_0x145e31(0x262)](I[_0x145e31(0x1cf)]((_0x85bdc8=this[_0x145e31(0x1dc)][_0x145e31(0x1b3)](k))!=null?_0x85bdc8:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x145e31(0x27c)](_0x2049e2=>{const _0x4d6733=_0x145e31;this[_0x4d6733(0x1e9)]['send']({'eventID':d['CollaborationEvent'][_0x4d6733(0x242)],'data':{'unitID':this[_0x4d6733(0x1d4)],'operations':{[_0x2049e2['id']]:{'id':_0x2049e2['id'],'params':JSON['stringify'](_0x2049e2['params'])}}}},this[_0x4d6733(0x1d4)]);})),_0x4bc0ee[_0x145e31(0x23b)](_0x187612);})),this[_0x155f18(0x24a)][_0x155f18(0x1b6)](this[_0x155f18(0x1d4)])[_0x155f18(0x231)](_0x16e7cc=>this[_0x155f18(0x1e9)][_0x155f18(0x21a)]({'eventID':d['CollaborationEvent'][_0x155f18(0x242)],'data':{'unitID':this[_0x155f18(0x1d4)],'operations':{[_0x16e7cc['id']]:{'id':_0x16e7cc['id'],'params':JSON[_0x155f18(0x1e1)](_0x16e7cc[_0x155f18(0x1cb)])}}}},this[_0x155f18(0x1d4)]));}[_0x44c76a(0x235)](){const _0x5ec2d0=_0x44c76a;var _0x309539;this['_status$'][_0x5ec2d0(0x23b)](_0x5ec2d0(0x254)),(_0x309539=this[_0x5ec2d0(0x221)])==null||_0x309539[_0x5ec2d0(0x1ad)](),this[_0x5ec2d0(0x221)]=null;}['_startFollowing'](){const _0x3bc975=_0x44c76a;var _0x97d1de;(_0x97d1de=this[_0x3bc975(0x221)])==null||_0x97d1de[_0x3bc975(0x1ad)](),this[_0x3bc975(0x1e5)]['next'](_0x3bc975(0x239));}[_0x44c76a(0x266)](){const _0x4ae35e=_0x44c76a;var _0x1988f6;this['_status$'][_0x4ae35e(0x23b)](_0x4ae35e(0x254)),(_0x1988f6=this[_0x4ae35e(0x221)])==null||_0x1988f6[_0x4ae35e(0x1ad)](),this['_commandDisposable']=null;}[_0x44c76a(0x1c1)](){const _0x3cbcab=_0x44c76a;var _0x2f4ac9;this['_status$'][_0x3cbcab(0x23b)](_0x3cbcab(0x1c7)),(_0x2f4ac9=this[_0x3cbcab(0x221)])==null||_0x2f4ac9[_0x3cbcab(0x1ad)]();}[_0x44c76a(0x21c)](_0x42b6c7){const _0x43628c=_0x44c76a;if([_0x43628c(0x1ec),'not-following',_0x43628c(0x265)][_0x43628c(0x249)](this[_0x43628c(0x248)])||!_0x42b6c7['data'][_0x43628c(0x228)]||_0x42b6c7[_0x43628c(0x260)][_0x43628c(0x228)]===this['_collabSession'][_0x43628c(0x214)]())return;this['_status']===_0x43628c(0x254)&&this[_0x43628c(0x1db)]();const _0x2699c0=_0x42b6c7[_0x43628c(0x260)]['operations'];Object['values'](_0x2699c0)[_0x43628c(0x231)](_0x21ec93=>{const _0x5fcded=_0x43628c;this['_commandService'][_0x5fcded(0x238)](_0x21ec93['id'],_0x21ec93[_0x5fcded(0x1cb)]?JSON[_0x5fcded(0x1bb)](_0x21ec93[_0x5fcded(0x1cb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x211dd9=_0x44c76a;var _0x265704;this['_status$']['next']('offline'),(_0x265704=this[_0x211dd9(0x221)])==null||_0x265704['dispose']();}['_handleOnline'](){const _0x1e3878=_0x44c76a;this[_0x1e3878(0x1e5)][_0x1e3878(0x23b)](_0x1e3878(0x254)),this[_0x1e3878(0x259)]();}},exports[_0x44c76a(0x1a1)]=P([S(0x2,o[_0x44c76a(0x1ba)]),S(0x3,o[_0x44c76a(0x1bf)](E)),S(0x4,o[_0x44c76a(0x1a4)])],exports['LiveShareCoordinator']);function $(){const _0x3046f4=_0x44c76a,_0x1bdac0=p[_0x3046f4(0x20d)](exports[_0x3046f4(0x1b4)]),_0x3b60cd=p[_0x3046f4(0x20d)](o[_0x3046f4(0x1e2)]),_0x5db833=p[_0x3046f4(0x22b)](()=>_0x3b60cd[_0x3046f4(0x1f3)](o[_0x3046f4(0x267)][_0x3046f4(0x209)]),void 0x0,!0x1,[]),[_0x5b532c,_0x142783]=v[_0x3046f4(0x273)](null),[_0x32cf1e,_0x4c2a59]=v[_0x3046f4(0x273)](u[_0x3046f4(0x1de)]),_0x88e350=v['useRef'](null);return v[_0x3046f4(0x1b1)](()=>(_0x5db833&&_0x1bdac0[_0x3046f4(0x22e)](_0x5db833[_0x3046f4(0x24c)]())[_0x3046f4(0x277)](_0x3c8bea=>{const _0x3b9024=_0x3046f4;_0x142783(_0x3c8bea),_0x88e350['current']=_0x3c8bea['status$'][_0x3b9024(0x27c)](_0x31350c=>{_0x4c2a59(_0x31350c);});}),()=>{const _0x549ea5=_0x3046f4;var _0x5c4a67;(_0x5c4a67=_0x88e350[_0x549ea5(0x240)])==null||_0x5c4a67[_0x549ea5(0x27a)](),_0x88e350[_0x549ea5(0x240)]=null;}),[_0x5db833,_0x1bdac0]),_0x5b532c?l[_0x3046f4(0x1ac)](f['Dropdown'],{'align':_0x3046f4(0x27f),'disabled':_0x32cf1e===u[_0x3046f4(0x257)],'className':_0x3046f4(0x1aa),'overlay':l['jsx'](W,{'status':_0x32cf1e,'coordinator':_0x5b532c}),'children':l[_0x3046f4(0x1ac)](_0x3046f4(0x1e8),{'className':f[_0x3046f4(0x202)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x32cf1e===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32cf1e!==u[_0x3046f4(0x257)]}),'type':'button','children':l[_0x3046f4(0x1ac)](R,{'className':_0x3046f4(0x1c6)})})}):null;}function W(_0x43c6b4){const _0x243cd4=_0x44c76a,{status:_0x591e66,coordinator:_0x349d96}=_0x43c6b4;switch(_0x591e66){case u[_0x243cd4(0x1de)]:return l['jsx'](G,{'coordinator':_0x349d96});case u[_0x243cd4(0x1d6)]:return l['jsx'](B,{'coordinator':_0x349d96});case u[_0x243cd4(0x25d)]:return l[_0x243cd4(0x1ac)](Y,{'coordinator':_0x349d96});case u['OFFLINE']:return l['jsx'](J,{});case u['PRESENTING']:return l[_0x243cd4(0x1ac)](Z,{'coordinator':_0x349d96});default:return null;}}function G(_0x59554d){const _0x1e67f1=_0x44c76a,{coordinator:_0x2882b0}=_0x59554d;return l[_0x1e67f1(0x1e6)](l[_0x1e67f1(0x246)],{'children':[l[_0x1e67f1(0x1ac)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e67f1(0x22f)}),l[_0x1e67f1(0x1ac)](f[_0x1e67f1(0x201)],{'onClick':()=>_0x2882b0[_0x1e67f1(0x272)](),'children':_0x1e67f1(0x1ab)})]});}function B(_0x30db79){const _0x4d1a5e=_0x44c76a,{coordinator:_0x3b4d5e}=_0x30db79;return l[_0x4d1a5e(0x1e6)](l[_0x4d1a5e(0x246)],{'children':[l[_0x4d1a5e(0x1ac)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4d1a5e(0x1ed)}),l[_0x4d1a5e(0x1ac)](f[_0x4d1a5e(0x201)],{'onClick':()=>_0x3b4d5e['stopFollowing'](),'children':_0x4d1a5e(0x23f)})]});}function _0x3fff(){const _0x3374d7=['entries','memberID','NOT_FOLLOWING','ONLINE','defIds','data','_injector','pipe','_handleNewChangeSets','_handleOnline','offline','_beIdle','UniverInstanceType','Stop\x20presenting','_handleNewHost','_handleTerminate','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','DesktopLiveShareController','LiveShareService','Module','svg','2bJCbpy','tryStartPresenting','useState','Subject','registerDependencies','add','then','unitId','length','unsubscribe','LIVESHARE_NEW_HOST','subscribe','_sharedOperations','live-share.config','end','You\x27are\x20offline.','event$','LiveShareCoordinator','displayName','reverse','ICommandService','CommandType','path','status$','evenodd','getValue','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','Start','jsx','dispose','children','stopPresenting','find','useEffect','LIVESHARE_REQUEST_HOST','getConfig','LiveShareController','requireSession','getInitialStates','get','fill','HEADER_MENU','IConfigService','parse','7hYWEju','mergeOverrideWithDependencies','dispose$','Inject','_startPresenting','_stopFollowing','registerInitialStateReporter','string','takeUntil','DependentOn','univer-size-4','not-following','touchDependencies','set','UniverLiveSharePlugin','params','registerSharedOperation','use','delete','throttleTime','BuiltInUIPart','univerjs-icon\x20univerjs-icon-','idSuffix','_collabSessionService','_unitID','_handleOffline','FOLLOWING','defineProperty','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','NEW_CHANGESETS','init','_startFollowing','_configService','11978568GcuRfv','IDLE','DisposableCollection','has','stringify','IUniverInstanceService','type','tag','_status$','jsxs','_entities','button','_collabSession','Disposable','mask','presenting','You\x27re\x20following\x20the\x20presenter','_init','merge','UniverIcon','LiveShareStatus','startFollowing','getCurrentTypeOfUnit$','trim','replace','1400jRSXCM','sessionStatus$','Start\x20following','toStringTag','CollaborationSessionService','sheet','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShare','_mountLiveShare','45wkZgNF','Button','clsx','SessionStatus','UNIVER_UNKNOWN','_reporters','1059263lRrufB','connectInjector','attrs','UNIVER_SHEET','shouldShareOperation','LIVESHARE_TERMINATE','onCommandExecuted','useDependency','registerComponent','stopFollowing','createInstance','2882144JvEFrc','default','CollaborationEvent','getMemberID','getStatus','assign','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20presenting\x20the\x20document','125iTvlLS','send','div','_handleOperation','disposeWithMe','from','live-share-icon','_startLiveShareCoordinator','_commandDisposable','random','IUIPartsService','PRESENTING','8031uuiwNp','getLiveShareCoordinatorSync','LiveShareIcon','presenter','http://www.w3.org/2000/svg','onRendered','useObservable','getOwnPropertyDescriptor','currentColor','getLiveShareCoordinator','Present\x20this\x20document','Injector','forEach','1em','_univerInstanceService','defs','_stopPresenting','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','221574cbOSvS','executeCommand','following','SetWorksheetActiveOperation','next','OPERATION','useRef','_commandService','Stop\x20following','current','parseProtocolChangeset','LIVESHARE_OPERATION','BehaviorSubject','map','getTypeOfUnitDisposed$','Fragment','5235274gJAwss','_status','includes','_liveShareService','Plugin','getUnitId','substring','url(#$1','SetZoomRatioOperation','_uiPartsService','mutations','toDisposable','_presenter','idle','_config','createElement','OFFLINE','getTypeOfUnitAdded$','_fetchOperations','1948vhxJPc'];_0x3fff=function(){return _0x3374d7;};return _0x3fff();}function Y(_0x1998ce){const _0x25d2ce=_0x44c76a,{coordinator:_0x559ea8}=_0x1998ce;return l['jsxs'](l[_0x25d2ce(0x246)],{'children':[l[_0x25d2ce(0x1ac)]('div',{'className':_0x25d2ce(0x1fd),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x25d2ce(0x1ac)](f['Button'],{'variant':_0x25d2ce(0x1fc),'onClick':()=>_0x559ea8[_0x25d2ce(0x1f2)](),'children':_0x25d2ce(0x1f8)})]});}function Z(_0x29dfee){const _0x3653dc=_0x44c76a,{coordinator:_0x5d884e}=_0x29dfee;return l[_0x3653dc(0x1e6)](l[_0x3653dc(0x246)],{'children':[l[_0x3653dc(0x1ac)](_0x3653dc(0x21b),{'className':_0x3653dc(0x1fd),'children':_0x3653dc(0x218)}),l[_0x3653dc(0x1ac)](f['Button'],{'variant':_0x3653dc(0x212),'onClick':()=>_0x5d884e[_0x3653dc(0x1af)](),'children':_0x3653dc(0x268)})]});}function J(){const _0x4414c0=_0x44c76a;return l['jsx'](l[_0x4414c0(0x246)],{'children':_0x4414c0(0x280)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x46c12a,_0x24b602,_0x3e3c02,_0x21c59a)=>{const _0x242bfb=_0x44c76a;for(var _0xcb3306=_0x21c59a>0x1?void 0x0:_0x21c59a?K(_0x24b602,_0x3e3c02):_0x24b602,_0x5af0dd=_0x46c12a[_0x242bfb(0x279)]-0x1,_0x19a450;_0x5af0dd>=0x0;_0x5af0dd--)(_0x19a450=_0x46c12a[_0x5af0dd])&&(_0xcb3306=_0x19a450(_0xcb3306)||_0xcb3306);return _0xcb3306;},L=(_0x3365b6,_0x3d4756)=>(_0x1ac740,_0x35a023)=>_0x3d4756(_0x1ac740,_0x35a023,_0x3365b6);exports['DesktopLiveShareController']=class extends o[_0x44c76a(0x1ea)]{constructor(_0x1a7953,_0x119d77){const _0x10cfd0=_0x44c76a;super(),this[_0x10cfd0(0x261)]=_0x1a7953,this[_0x10cfd0(0x250)]=_0x119d77,this[_0x10cfd0(0x1ff)]();}[_0x44c76a(0x1ff)](){const _0x27ce36=_0x44c76a;this['disposeWithMe'](this[_0x27ce36(0x250)][_0x27ce36(0x20e)](p[_0x27ce36(0x1d0)][_0x27ce36(0x1b9)],()=>p[_0x27ce36(0x207)]($,this[_0x27ce36(0x261)])));}},exports[_0x44c76a(0x26d)]=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x44c76a(0x223)])],exports['DesktopLiveShareController']);const Q=_0x44c76a(0x27e),w={};var X=Object[_0x44c76a(0x22c)],ee=(_0x44d4d2,_0x1144f6,_0x2b7d71,_0xaa773c)=>{const _0x32bc56=_0x44c76a;for(var _0x46afe9=_0xaa773c>0x1?void 0x0:_0xaa773c?X(_0x1144f6,_0x2b7d71):_0x1144f6,_0x4b0b50=_0x44d4d2[_0x32bc56(0x279)]-0x1,_0x25f736;_0x4b0b50>=0x0;_0x4b0b50--)(_0x25f736=_0x44d4d2[_0x4b0b50])&&(_0x46afe9=_0x25f736(_0x46afe9)||_0x46afe9);return _0x46afe9;},te=(_0x7baa21,_0x332316)=>(_0xc2d3b1,_0x5178fa)=>_0x332316(_0xc2d3b1,_0x5178fa,_0x7baa21);let m=class extends o[_0x44c76a(0x1ea)]{constructor(_0x398609){const _0x13782c=_0x44c76a;super(),this[_0x13782c(0x24a)]=_0x398609,this[_0x13782c(0x1ee)]();}[_0x44c76a(0x1ee)](){const _0x4db048=_0x44c76a;[D[_0x4db048(0x24f)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x3e87ca=>{const _0x3bb4d0=_0x4db048;this[_0x3bb4d0(0x21d)](this[_0x3bb4d0(0x24a)][_0x3bb4d0(0x1cc)](_0x3e87ca));});}};m=ee([te(0x0,o[_0x44c76a(0x1bf)](E))],m);var ie=Object['defineProperty'],se=Object[_0x44c76a(0x22c)],ne=(_0x2081ac,_0x870c65,_0x268289)=>_0x870c65 in _0x2081ac?ie(_0x2081ac,_0x870c65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x268289}):_0x2081ac[_0x870c65]=_0x268289,re=(_0x23a57b,_0x4fc01d,_0x50909c,_0xa532dc)=>{for(var _0x226128=_0xa532dc>0x1?void 0x0:_0xa532dc?se(_0x4fc01d,_0x50909c):_0x4fc01d,_0x2b9e23=_0x23a57b['length']-0x1,_0x5bf415;_0x2b9e23>=0x0;_0x2b9e23--)(_0x5bf415=_0x23a57b[_0x2b9e23])&&(_0x226128=_0x5bf415(_0x226128)||_0x226128);return _0x226128;},N=(_0x2baaf4,_0x11dc02)=>(_0xfdd26a,_0x3df26)=>_0x11dc02(_0xfdd26a,_0x3df26,_0x2baaf4),A=(_0x1f0324,_0x1c9e7d,_0x21d136)=>ne(_0x1f0324,typeof _0x1c9e7d!='symbol'?_0x1c9e7d+'':_0x1c9e7d,_0x21d136);const oe=_0x44c76a(0x217);exports[_0x44c76a(0x1ca)]=class extends o[_0x44c76a(0x24b)]{constructor(_0x4176a6=w,_0x3dc883,_0x2906ed){const _0x2d78db=_0x44c76a;super(),this['_config']=_0x4176a6,this[_0x2d78db(0x261)]=_0x3dc883,this[_0x2d78db(0x1dc)]=_0x2906ed;const {..._0x3718da}=o[_0x2d78db(0x1ef)]({},w,this[_0x2d78db(0x255)]);this[_0x2d78db(0x1dc)]['setConfig'](Q,_0x3718da);}['onStarting'](){const _0x2916cf=_0x44c76a;o[_0x2916cf(0x275)](this[_0x2916cf(0x261)],o[_0x2916cf(0x1bd)]([[E],[exports[_0x2916cf(0x1b4)]],[m],[exports['DesktopLiveShareController']]],this['_config']['override'])),o[_0x2916cf(0x1c8)](this[_0x2916cf(0x261)],[[m]]);}[_0x44c76a(0x22a)](){const _0x24345a=_0x44c76a;o[_0x24345a(0x1c8)](this[_0x24345a(0x261)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x44c76a(0x1ca)],_0x44c76a(0x1e3),o[_0x44c76a(0x267)][_0x44c76a(0x204)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports['UniverLiveSharePlugin']=re([o[_0x44c76a(0x1c5)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x44c76a(0x1bf)](o['Injector'])),N(0x2,o[_0x44c76a(0x1ba)])],exports[_0x44c76a(0x1ca)]),exports[_0x44c76a(0x1fe)]=$,exports[_0x44c76a(0x26e)]=E,exports[_0x44c76a(0x1f1)]=u;
|
|
1
|
+
'use strict';const _0x3399e0=_0x4356;(function(_0x19df0e,_0x335ac3){const _0xdd55f1=_0x4356,_0x1d87b9=_0x19df0e();while(!![]){try{const _0x4cd6a2=parseInt(_0xdd55f1(0x22f))/0x1*(-parseInt(_0xdd55f1(0x1ff))/0x2)+-parseInt(_0xdd55f1(0x1fa))/0x3*(parseInt(_0xdd55f1(0x23e))/0x4)+parseInt(_0xdd55f1(0x1f6))/0x5+-parseInt(_0xdd55f1(0x1ba))/0x6*(parseInt(_0xdd55f1(0x225))/0x7)+-parseInt(_0xdd55f1(0x1c0))/0x8+parseInt(_0xdd55f1(0x1e3))/0x9+parseInt(_0xdd55f1(0x1bf))/0xa;if(_0x4cd6a2===_0x335ac3)break;else _0x1d87b9['push'](_0x1d87b9['shift']());}catch(_0xf52f7){_0x1d87b9['push'](_0x1d87b9['shift']());}}}(_0x5376,0xe0faa));var T=Object[_0x3399e0(0x27f)],U=(_0x1799a6,_0x5130e4,_0x56c50e)=>_0x5130e4 in _0x1799a6?T(_0x1799a6,_0x5130e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56c50e}):_0x1799a6[_0x5130e4]=_0x56c50e,_=(_0x2e5362,_0x74f695,_0x364b13)=>U(_0x2e5362,typeof _0x74f695!=_0x3399e0(0x26b)?_0x74f695+'':_0x74f695,_0x364b13);Object['defineProperty'](exports,Symbol[_0x3399e0(0x20a)],{'value':_0x3399e0(0x1d2)});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 _0x5376(){const _0x3ec7fb=['27HjySJI','map','attrs','OFFLINE','getStatus','62gKzHrN','LiveShareIcon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','idle','fill','SetScrollOperation','dispose','_reporters','toStringTag','UniverIcon','url(#$1','Start','You\x27are\x20offline.','UNIVER_UNKNOWN','operations','_entities','forwardRef','LiveShareService','end','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','then','IUIPartsService','useEffect','getValue','_fetchOperations','_commandService','not-following','LiveShare','text','_handleOnline','_configService','complete','mergeOverrideWithDependencies','asObservable','getMemberID','50778AqoxjR','tryStartPresenting','mask','ONLINE','_injector','Plugin','disposeWithMe','none','getUnitId','_handleNewHost','18830NjJQhc','random','registerInitialStateReporter','button','CommandType','Inject','sheet','evenodd','_startFollowing','useRef','getTypeOfUnitDisposed$','getInitialStates','CollaborationEvent','_unitID','Disposable','395596MfScUQ','offline','jsx','getOwnPropertyDescriptor','div','UniverInstanceType','toString','delete','ICommandService','onRendered','next','SAME_OPERATION_SHARE_INTERVAL','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','NEW_CHANGESETS','_stopPresenting','mutations','LiveShareStatus','unsubscribe','send','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','http://www.w3.org/2000/svg','entries','override','live-share-icon','createElement','onStarting','LiveShareCoordinator','presenter','assign','IConfigService','_univerInstanceService','_init','stopFollowing','toDisposable','Fragment','_mountLiveShare','clear','createInstance','stringify','replace','UNIVER_SHEET','children','tag','_status$','symbol','reverse','displayName','live-share.config','init','_status','You\x27re\x20following\x20the\x20presenter','_uiPartsService','IDLE','BuiltInUIPart','LIVESHARE_NEW_HOST','SetZoomRatioOperation','_sharedOperations','getCurrentTypeOfUnit$','memberID','Subject','colorChannel1','Button','path','svg','defineProperty','registerSharedOperation','registerComponent','xlink:href','_handleTerminate','takeUntil','DesktopLiveShareController','getLiveShareCoordinator','pipe','_handleNewChangeSets','presenting','find','set','InsertSheetMutation','shouldShareOperation','onCommandExecuted','Present\x20this\x20document','_beIdle','LIVESHARE_OPERATION','clsx','subscribe','defs','_stopFollowing','24NdGPNb','useDependency','You\x27re\x20not\x20following\x20the\x20presenter','requireSession','Stop\x20following','12241650cQZIqW','14315480FLuHso','idSuffix','1em','SetWorksheetActiveOperation','_presenter','PRESENTING','get','_collabSession','dispose$','parseProtocolChangeset','status$','Dropdown','LIVESHARE_TERMINATE','_collabSessionService','connectInjector','0\x200\x2017\x2017','touchDependencies','forEach','Module','DependentOn','type','_handleOperation','_config','HEADER_MENU','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','_liveShareService','LiveShareController','following','IUniverInstanceService','LIVESHARE_FETCH_OPERATIONS','setConfig','sessionStatus$','jsxs','includes','SessionStatus','12875121DBfBXO','executeCommand','add','Injector','UniverLiveSharePlugin','unitId','startFollowing','throttleTime','current','has','DisposableCollection','length','_startPresenting','defIds','data','NOT_FOLLOWING','pluginName','substring','currentColor','7795260QdwAJG','useState','default','params'];_0x5376=function(){return _0x3ec7fb;};return _0x5376();}function x({ref:_0x4cdd87,..._0x5e90ab}){const _0x4db814=_0x3399e0,{icon:_0xe894e7,id:_0x41d9aa,className:_0x48249a,extend:_0x5e7f1b,..._0x4d95eb}=_0x5e90ab,_0x577aff=(_0x4db814(0x204)+_0x41d9aa+'\x20'+(_0x48249a||''))['trim'](),_0x2c59c1=v[_0x4db814(0x238)]('_'+H());return j(_0xe894e7,''+_0x41d9aa,{'defIds':_0xe894e7[_0x4db814(0x1f0)],'idSuffix':_0x2c59c1['current']},{'ref':_0x4cdd87,'className':_0x577aff,..._0x4d95eb},_0x5e7f1b);}function j(_0x4b17ad,_0x565251,_0x4ae0aa,_0x2d91c9,_0x2dc344){const _0x346979=_0x3399e0;return v[_0x346979(0x257)](_0x4b17ad[_0x346979(0x269)],{'key':_0x565251,...y(_0x4b17ad,_0x4ae0aa,_0x2dc344),..._0x2d91c9},(F(_0x4b17ad,_0x4ae0aa)[_0x346979(0x268)]||[])[_0x346979(0x1fb)]((_0x361532,_0x5ef54f)=>j(_0x361532,_0x565251+'-'+_0x4b17ad[_0x346979(0x269)]+'-'+_0x5ef54f,_0x4ae0aa,void 0x0,_0x2dc344)));}function y(_0x419281,_0x41fd91,_0x359bd2){const _0x594835=_0x3399e0,_0x3b4444={..._0x419281[_0x594835(0x1fc)]};_0x359bd2!=null&&_0x359bd2['colorChannel1']&&_0x3b4444[_0x594835(0x206)]===_0x594835(0x27b)&&(_0x3b4444[_0x594835(0x206)]=_0x359bd2[_0x594835(0x27b)]),_0x419281[_0x594835(0x269)]===_0x594835(0x227)&&_0x3b4444['id']&&(_0x3b4444['id']=_0x3b4444['id']+_0x41fd91[_0x594835(0x1c1)]),Object[_0x594835(0x254)](_0x3b4444)[_0x594835(0x1d1)](([_0x4ec693,_0xd9dbf0])=>{const _0x3df7f4=_0x594835;_0x4ec693===_0x3df7f4(0x227)&&typeof _0xd9dbf0==_0x3df7f4(0x252)&&(_0x3b4444[_0x4ec693]=_0xd9dbf0[_0x3df7f4(0x266)](/url\(#(.*)\)/,_0x3df7f4(0x20c)+_0x41fd91[_0x3df7f4(0x1c1)]+')'));});const {defIds:_0x372b6b}=_0x41fd91;return!_0x372b6b||_0x372b6b[_0x594835(0x1ee)]===0x0||(_0x419281[_0x594835(0x269)]==='use'&&_0x3b4444['xlink:href']&&(_0x3b4444[_0x594835(0x282)]=_0x3b4444[_0x594835(0x282)]+_0x41fd91[_0x594835(0x1c1)]),Object[_0x594835(0x254)](_0x3b4444)[_0x594835(0x1d1)](([_0x3ca212,_0x2fd037])=>{const _0x429a7c=_0x594835;typeof _0x2fd037==_0x429a7c(0x252)&&(_0x3b4444[_0x3ca212]=_0x2fd037[_0x429a7c(0x266)](/url\(#(.*)\)/,_0x429a7c(0x20c)+_0x41fd91[_0x429a7c(0x1c1)]+')'));})),_0x3b4444;}function F(_0x35090e,_0x4a1ff2){const _0x3ff24e=_0x3399e0;var _0x26e297;const {defIds:_0x4a997f}=_0x4a1ff2;return!_0x4a997f||_0x4a997f[_0x3ff24e(0x1ee)]===0x0?_0x35090e:_0x35090e[_0x3ff24e(0x269)]===_0x3ff24e(0x1b8)&&((_0x26e297=_0x35090e[_0x3ff24e(0x268)])!=null&&_0x26e297['length'])?{..._0x35090e,'children':_0x35090e['children'][_0x3ff24e(0x1fb)](_0x553b2e=>typeof _0x553b2e[_0x3ff24e(0x1fc)]['id']=='string'&&_0x4a997f&&_0x4a997f[_0x3ff24e(0x1e1)](_0x553b2e[_0x3ff24e(0x1fc)]['id'])?{..._0x553b2e,'attrs':{..._0x553b2e['attrs'],'id':_0x553b2e[_0x3ff24e(0x1fc)]['id']+_0x4a1ff2[_0x3ff24e(0x1c1)]}}:_0x553b2e)}:_0x35090e;}function H(){const _0x2a66be=_0x3399e0;return Math[_0x2a66be(0x230)]()[_0x2a66be(0x244)](0x24)[_0x2a66be(0x1f4)](0x2,0x8);}x[_0x3399e0(0x26d)]=_0x3399e0(0x20b);const V={'tag':_0x3399e0(0x27e),'attrs':{'xmlns':_0x3399e0(0x253),'fill':_0x3399e0(0x22c),'viewBox':_0x3399e0(0x1cf),'width':'1em','height':_0x3399e0(0x1c2)},'children':[{'tag':'path','attrs':{'fill':_0x3399e0(0x1f5),'d':_0x3399e0(0x1d8)}},{'tag':_0x3399e0(0x27d),'attrs':{'fill':_0x3399e0(0x1f5),'d':_0x3399e0(0x215),'fillRule':_0x3399e0(0x236),'clipRule':_0x3399e0(0x236)}}]},R=v[_0x3399e0(0x212)](function(_0x1ea412,_0x1921fc){const _0x37368d=_0x3399e0;return v[_0x37368d(0x257)](x,Object[_0x37368d(0x25b)]({},_0x1ea412,{'id':_0x37368d(0x256),'ref':_0x1921fc,'icon':V}));});R[_0x3399e0(0x26d)]=_0x3399e0(0x200);function _0x4356(_0x300a23,_0x399cca){const _0x5376b8=_0x5376();return _0x4356=function(_0x435644,_0x47e9eb){_0x435644=_0x435644-0x1ad;let _0x5097af=_0x5376b8[_0x435644];return _0x5097af;},_0x4356(_0x300a23,_0x399cca);}class E extends o[_0x3399e0(0x23d)]{constructor(){const _0x54547f=_0x3399e0;super(...arguments),_(this,_0x54547f(0x277),new Set()),_(this,_0x54547f(0x209),new Set());}[_0x3399e0(0x280)](_0x43111e){const _0x15774c=_0x3399e0;return this[_0x15774c(0x277)]['add'](_0x43111e),o[_0x15774c(0x260)](()=>this[_0x15774c(0x277)][_0x15774c(0x245)](_0x43111e));}[_0x3399e0(0x231)](_0xba94cc){const _0x1f7e65=_0x3399e0;return this['_reporters'][_0x1f7e65(0x1e5)](_0xba94cc),o[_0x1f7e65(0x260)](()=>this['_reporters']['delete'](_0xba94cc));}[_0x3399e0(0x1b1)](_0x5da1d7){const _0xb4973c=_0x3399e0;return this['_sharedOperations'][_0xb4973c(0x1ec)](_0x5da1d7);}[_0x3399e0(0x23a)](_0x42f83e){const _0x1c2b1c=_0x3399e0;return Array['from'](this[_0x1c2b1c(0x209)])[_0x1c2b1c(0x1fb)](_0x252363=>_0x252363(_0x42f83e));}}var M=Object[_0x3399e0(0x241)],P=(_0x2bc3b7,_0x5edc6d,_0x7f611f,_0x535a70)=>{const _0xde322c=_0x3399e0;for(var _0x5ae0ac=_0x535a70>0x1?void 0x0:_0x535a70?M(_0x5edc6d,_0x7f611f):_0x5edc6d,_0xc727d0=_0x2bc3b7[_0xde322c(0x1ee)]-0x1,_0x417ec6;_0xc727d0>=0x0;_0xc727d0--)(_0x417ec6=_0x2bc3b7[_0xc727d0])&&(_0x5ae0ac=_0x417ec6(_0x5ae0ac)||_0x5ae0ac);return _0x5ae0ac;},S=(_0x27ab8a,_0x109197)=>(_0x202181,_0x34b27d)=>_0x109197(_0x202181,_0x34b27d,_0x27ab8a);exports[_0x3399e0(0x1da)]=class extends o['RxDisposable']{constructor(_0x5500e3,_0xa1bef1,_0x367672){const _0x4b4a20=_0x3399e0;super(),_(this,_0x4b4a20(0x211),new Map()),(this[_0x4b4a20(0x25d)]=_0x5500e3,this['_injector']=_0xa1bef1,this[_0x4b4a20(0x1cd)]=_0x367672,this[_0x4b4a20(0x25e)]());}async[_0x3399e0(0x286)](_0x850531){const _0x4a366b=_0x3399e0;return this['_entities']['has'](_0x850531)||await this[_0x4a366b(0x203)](_0x850531),this['_entities'][_0x4a366b(0x1c6)](_0x850531);}['getLiveShareCoordinatorSync'](_0x2c06da){const _0x418bba=_0x3399e0;var _0xbd3c73;return(_0xbd3c73=this[_0x418bba(0x211)][_0x418bba(0x1c6)](_0x2c06da))!=null?_0xbd3c73:null;}['_init'](){const _0x138839=_0x3399e0;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x138839(0x243)][_0x138839(0x267)])['pipe'](I['takeUntil'](this[_0x138839(0x1c8)]))[_0x138839(0x1b7)](async _0x581e91=>{const _0x489d13=_0x138839,_0x4a8ec2=_0x581e91[_0x489d13(0x22d)]();this[_0x489d13(0x211)][_0x489d13(0x1ec)](_0x4a8ec2)||this['_startLiveShareCoordinator'](_0x4a8ec2);}),this[_0x138839(0x25d)][_0x138839(0x239)](o[_0x138839(0x243)][_0x138839(0x267)])[_0x138839(0x287)](I[_0x138839(0x284)](this['dispose$']))[_0x138839(0x1b7)](_0x1f0815=>{const _0x19211f=_0x138839,_0x91889c=_0x1f0815[_0x19211f(0x22d)](),_0x183f0f=this[_0x19211f(0x211)][_0x19211f(0x1c6)](_0x91889c);_0x183f0f==null||_0x183f0f['dispose']();});}async[_0x3399e0(0x203)](_0x3a5f4e){const _0x5decbd=_0x3399e0,_0x2bfd71=await this[_0x5decbd(0x1cd)][_0x5decbd(0x1bd)](_0x3a5f4e),_0x5acccf=this[_0x5decbd(0x229)][_0x5decbd(0x264)](exports[_0x5decbd(0x259)],_0x3a5f4e,_0x2bfd71);return _0x5acccf['init'](),this[_0x5decbd(0x211)]['set'](_0x3a5f4e,_0x5acccf),_0x5acccf;}},exports['LiveShareController']=P([S(0x0,o[_0x3399e0(0x1dc)]),S(0x1,o['Inject'](o[_0x3399e0(0x1e6)])),S(0x2,o[_0x3399e0(0x234)](b['CollaborationSessionService']))],exports[_0x3399e0(0x1da)]);var u=(_0x2f4ac1=>(_0x2f4ac1[_0x3399e0(0x1fd)]=_0x3399e0(0x23f),_0x2f4ac1[_0x3399e0(0x273)]=_0x3399e0(0x205),_0x2f4ac1['FOLLOWING']=_0x3399e0(0x1db),_0x2f4ac1[_0x3399e0(0x1f2)]='not-following',_0x2f4ac1[_0x3399e0(0x1c5)]=_0x3399e0(0x1ad),_0x2f4ac1))(u||{});const k=_0x3399e0(0x249),q=0xc8;exports[_0x3399e0(0x259)]=class extends o['RxDisposable']{constructor(_0x644da5,_0x524f99,_0x1217ba,_0x4f086f,_0x3567e5){const _0x904b27=_0x3399e0;super(),_(this,_0x904b27(0x26a),new O['BehaviorSubject'](_0x904b27(0x205))),_(this,'status$',this[_0x904b27(0x26a)][_0x904b27(0x223)]()),_(this,_0x904b27(0x25e),!0x1),_(this,_0x904b27(0x202),null),_(this,_0x904b27(0x1c4),null),(this[_0x904b27(0x23c)]=_0x644da5,this[_0x904b27(0x1c7)]=_0x524f99,this[_0x904b27(0x220)]=_0x1217ba,this['_liveShareService']=_0x4f086f,this['_commandService']=_0x3567e5);}get[_0x3399e0(0x270)](){const _0x97c064=_0x3399e0;return this[_0x97c064(0x26a)][_0x97c064(0x219)]();}[_0x3399e0(0x208)](){const _0x3cd840=_0x3399e0;var _0xfc1bab;(_0xfc1bab=this[_0x3cd840(0x202)])==null||_0xfc1bab[_0x3cd840(0x208)](),this[_0x3cd840(0x26a)]['next'](_0x3cd840(0x205)),this[_0x3cd840(0x26a)][_0x3cd840(0x221)]();}[_0x3399e0(0x1fe)](){const _0x407018=_0x3399e0;return this[_0x407018(0x270)];}[_0x3399e0(0x26f)](){const _0x18289b=_0x3399e0;this['_init']||(this['_init']=!0x0,this['_collabSession'][_0x18289b(0x1df)][_0x18289b(0x287)](I[_0x18289b(0x284)](this[_0x18289b(0x1c8)]))[_0x18289b(0x1b7)](_0x13af5a=>{const _0x5ed64b=_0x18289b;switch(_0x13af5a){case b[_0x5ed64b(0x1e2)]['OFFLINE']:this['_handleOffline']();break;case b[_0x5ed64b(0x1e2)][_0x5ed64b(0x228)]:this[_0x5ed64b(0x21f)]();break;}}),this[_0x18289b(0x1c7)]['event$'][_0x18289b(0x287)](I[_0x18289b(0x284)](this[_0x18289b(0x1c8)]))[_0x18289b(0x1b7)](_0x5a1a26=>{const _0xb14492=_0x18289b,{eventID:_0x6d9621}=_0x5a1a26;switch(_0x6d9621){case d['CollaborationEvent'][_0xb14492(0x275)]:this[_0xb14492(0x22e)](_0x5a1a26);break;case d['CollaborationEvent'][_0xb14492(0x1b5)]:this[_0xb14492(0x1d5)](_0x5a1a26);break;case d['CollaborationEvent'][_0xb14492(0x1cc)]:this[_0xb14492(0x283)]();break;case d['CollaborationEvent'][_0xb14492(0x24b)]:this[_0xb14492(0x288)](_0x5a1a26);break;}}));}[_0x3399e0(0x226)](){const _0x68b3dd=_0x3399e0;this[_0x68b3dd(0x1c7)][_0x68b3dd(0x250)]({'eventID':d[_0x68b3dd(0x23b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x68b3dd(0x1c7)][_0x68b3dd(0x224)]()}},this[_0x68b3dd(0x23c)]);}['stopPresenting'](){const _0x2ab625=_0x3399e0;this[_0x2ab625(0x270)]===_0x2ab625(0x1ad)&&(this[_0x2ab625(0x26a)][_0x2ab625(0x248)]('idle'),this[_0x2ab625(0x1c7)][_0x2ab625(0x250)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x3399e0(0x1e9)](){const _0x20f073=_0x3399e0;this[_0x20f073(0x270)]==='not-following'&&(this['_status$']['next'](_0x20f073(0x1db)),this[_0x20f073(0x237)]());}[_0x3399e0(0x25f)](){const _0x8e5769=_0x3399e0;this[_0x8e5769(0x270)]===_0x8e5769(0x1db)&&this[_0x8e5769(0x1b9)]();}[_0x3399e0(0x22e)](_0x3e0957){const _0xa14484=_0x3399e0,{presenter:_0x4f99bf}=_0x3e0957[_0xa14484(0x1f1)],_0x1c2294=this[_0xa14484(0x1c7)]['getMemberID']();this[_0xa14484(0x1c4)]=_0x4f99bf,_0x4f99bf===_0x1c2294?(this['_stopFollowing'](),this[_0xa14484(0x1ef)]()):this['_status']!==_0xa14484(0x21c)&&(this[_0xa14484(0x24c)](),this['_startFollowing']());}[_0x3399e0(0x21a)](){const _0x36434d=_0x3399e0,_0x4196be={'eventID':d[_0x36434d(0x23b)][_0x36434d(0x1dd)]};this['_collabSession'][_0x36434d(0x250)](_0x4196be,this['_unitID']);}[_0x3399e0(0x283)](){const _0x29e179=_0x3399e0;this[_0x29e179(0x1c4)]=null,this[_0x29e179(0x270)]!=='presenting'&&this[_0x29e179(0x1b4)]();}[_0x3399e0(0x288)](_0x2cacca){const _0x41cac0=_0x3399e0;if(this['_status']==='following'&&this[_0x41cac0(0x1c4)]===_0x2cacca['data'][_0x41cac0(0x279)]){const _0x3e080e=d[_0x41cac0(0x1c9)](_0x2cacca[_0x41cac0(0x1f1)])[_0x41cac0(0x24d)][_0x41cac0(0x26c)]()[_0x41cac0(0x1ae)](_0x1c3d10=>_0x1c3d10['id']===C[_0x41cac0(0x1b0)]['id']);if(_0x3e080e){const _0x25d2b1=_0x3e080e[_0x41cac0(0x1f9)][_0x41cac0(0x1e8)],_0x21a401=_0x3e080e[_0x41cac0(0x1f9)][_0x41cac0(0x235)]['id'];setTimeout(()=>{const _0x1fedb8=_0x41cac0;this[_0x1fedb8(0x21b)][_0x1fedb8(0x1e4)](C[_0x1fedb8(0x1c3)]['id'],{'unitId':_0x25d2b1,'subUnitId':_0x21a401},{'fromCollab':!0x0});});}}}[_0x3399e0(0x1ef)](){const _0xe8780b=_0x3399e0;this[_0xe8780b(0x26a)][_0xe8780b(0x248)](_0xe8780b(0x1ad));const _0x53a973=new Map(),_0x28f99f=this[_0xe8780b(0x202)]=new o[(_0xe8780b(0x1ed))]();_0x28f99f['add'](o[_0xe8780b(0x260)](()=>{const _0x45f23b=_0xe8780b;_0x53a973[_0x45f23b(0x1d1)](_0x2ab4ae=>_0x2ab4ae[_0x45f23b(0x221)]()),_0x53a973[_0x45f23b(0x263)]();})),_0x28f99f[_0xe8780b(0x1e5)](this['_commandService'][_0xe8780b(0x1b2)](_0xe022e4=>{const _0x419c26=_0xe8780b;var _0x29949f;if(_0xe022e4[_0x419c26(0x1d4)]!==o[_0x419c26(0x233)]['OPERATION']||!this[_0x419c26(0x1d9)]['shouldShareOperation'](_0xe022e4['id']))return;const {id:_0x39e1f6}=_0xe022e4;let _0x5983ff;_0x53a973['has'](_0x39e1f6)?_0x5983ff=_0x53a973[_0x419c26(0x1c6)](_0x39e1f6):(_0x5983ff=new O[(_0x419c26(0x27a))](),_0x53a973[_0x419c26(0x1af)](_0x39e1f6,_0x5983ff),_0x5983ff[_0x419c26(0x287)](I[_0x419c26(0x1ea)]((_0x29949f=this[_0x419c26(0x220)]['getConfig'](k))!=null?_0x29949f:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a6423=>{const _0x29631d=_0x419c26;this[_0x29631d(0x1c7)][_0x29631d(0x250)]({'eventID':d[_0x29631d(0x23b)][_0x29631d(0x1b5)],'data':{'unitID':this[_0x29631d(0x23c)],'operations':{[_0x2a6423['id']]:{'id':_0x2a6423['id'],'params':JSON[_0x29631d(0x265)](_0x2a6423['params'])}}}},this[_0x29631d(0x23c)]);})),_0x5983ff[_0x419c26(0x248)](_0xe022e4);})),this[_0xe8780b(0x1d9)]['getInitialStates'](this[_0xe8780b(0x23c)])[_0xe8780b(0x1d1)](_0x502cf6=>this['_collabSession'][_0xe8780b(0x250)]({'eventID':d[_0xe8780b(0x23b)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x502cf6['id']]:{'id':_0x502cf6['id'],'params':JSON[_0xe8780b(0x265)](_0x502cf6[_0xe8780b(0x1f9)])}}}},this[_0xe8780b(0x23c)]));}['_stopPresenting'](){const _0x9955d5=_0x3399e0;var _0x2ffbde;this[_0x9955d5(0x26a)]['next'](_0x9955d5(0x205)),(_0x2ffbde=this['_commandDisposable'])==null||_0x2ffbde[_0x9955d5(0x208)](),this[_0x9955d5(0x202)]=null;}[_0x3399e0(0x237)](){const _0x154de9=_0x3399e0;var _0x488a98;(_0x488a98=this[_0x154de9(0x202)])==null||_0x488a98[_0x154de9(0x208)](),this[_0x154de9(0x26a)]['next'](_0x154de9(0x1db));}[_0x3399e0(0x1b4)](){const _0x57df9c=_0x3399e0;var _0x249ffa;this[_0x57df9c(0x26a)]['next'](_0x57df9c(0x205)),(_0x249ffa=this[_0x57df9c(0x202)])==null||_0x249ffa[_0x57df9c(0x208)](),this[_0x57df9c(0x202)]=null;}[_0x3399e0(0x1b9)](){const _0xc0d565=_0x3399e0;var _0x2dbd55;this['_status$'][_0xc0d565(0x248)](_0xc0d565(0x21c)),(_0x2dbd55=this[_0xc0d565(0x202)])==null||_0x2dbd55[_0xc0d565(0x208)]();}['_handleOperation'](_0x541771){const _0x35fb47=_0x3399e0;if([_0x35fb47(0x1ad),_0x35fb47(0x21c),_0x35fb47(0x23f)][_0x35fb47(0x1e1)](this[_0x35fb47(0x270)])||!_0x541771[_0x35fb47(0x1f1)][_0x35fb47(0x25a)]||_0x541771[_0x35fb47(0x1f1)][_0x35fb47(0x25a)]===this[_0x35fb47(0x1c7)]['getMemberID']())return;this[_0x35fb47(0x270)]===_0x35fb47(0x205)&&this[_0x35fb47(0x237)]();const _0x357c2f=_0x541771[_0x35fb47(0x1f1)][_0x35fb47(0x210)];Object['values'](_0x357c2f)[_0x35fb47(0x1d1)](_0x4b8074=>{const _0x380912=_0x35fb47;this['_commandService'][_0x380912(0x1e4)](_0x4b8074['id'],_0x4b8074[_0x380912(0x1f9)]?JSON['parse'](_0x4b8074[_0x380912(0x1f9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x22468d=_0x3399e0;var _0x325e5e;this['_status$'][_0x22468d(0x248)](_0x22468d(0x23f)),(_0x325e5e=this[_0x22468d(0x202)])==null||_0x325e5e['dispose']();}[_0x3399e0(0x21f)](){const _0x138cc9=_0x3399e0;this['_status$'][_0x138cc9(0x248)](_0x138cc9(0x205)),this['_fetchOperations']();}},exports[_0x3399e0(0x259)]=P([S(0x2,o[_0x3399e0(0x25c)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x3399e0(0x246)])],exports[_0x3399e0(0x259)]);function $(){const _0x467775=_0x3399e0,_0x291981=p[_0x467775(0x1bb)](exports[_0x467775(0x1da)]),_0x5af939=p['useDependency'](o[_0x467775(0x1dc)]),_0xfc1ee3=p['useObservable'](()=>_0x5af939[_0x467775(0x278)](o[_0x467775(0x243)][_0x467775(0x267)]),void 0x0,!0x1,[]),[_0x5a7700,_0x1d7e47]=v[_0x467775(0x1f7)](null),[_0x584be0,_0x1b90b4]=v[_0x467775(0x1f7)](u['IDLE']),_0x3d7442=v[_0x467775(0x238)](null);return v[_0x467775(0x218)](()=>(_0xfc1ee3&&_0x291981[_0x467775(0x286)](_0xfc1ee3['getUnitId']())[_0x467775(0x216)](_0x30ac73=>{const _0x59ade7=_0x467775;_0x1d7e47(_0x30ac73),_0x3d7442[_0x59ade7(0x1eb)]=_0x30ac73[_0x59ade7(0x1ca)]['subscribe'](_0x29f5e0=>{_0x1b90b4(_0x29f5e0);});}),()=>{const _0x5376ef=_0x467775;var _0x3bdd7a;(_0x3bdd7a=_0x3d7442[_0x5376ef(0x1eb)])==null||_0x3bdd7a[_0x5376ef(0x24f)](),_0x3d7442['current']=null;}),[_0xfc1ee3,_0x291981]),_0x5a7700?l[_0x467775(0x240)](f[_0x467775(0x1cb)],{'align':_0x467775(0x214),'disabled':_0x584be0===u[_0x467775(0x1fd)],'className':_0x467775(0x24a),'overlay':l[_0x467775(0x240)](W,{'status':_0x584be0,'coordinator':_0x5a7700}),'children':l[_0x467775(0x240)](_0x467775(0x232),{'className':f[_0x467775(0x1b6)](_0x467775(0x201),{'univer-cursor-not-allowed':_0x584be0===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x584be0!==u[_0x467775(0x1fd)]}),'type':_0x467775(0x232),'children':l[_0x467775(0x240)](R,{'className':'univer-size-4'})})}):null;}function W(_0x430771){const _0x151626=_0x3399e0,{status:_0x4441d1,coordinator:_0x2a8181}=_0x430771;switch(_0x4441d1){case u[_0x151626(0x273)]:return l[_0x151626(0x240)](G,{'coordinator':_0x2a8181});case u['FOLLOWING']:return l[_0x151626(0x240)](B,{'coordinator':_0x2a8181});case u['NOT_FOLLOWING']:return l[_0x151626(0x240)](Y,{'coordinator':_0x2a8181});case u[_0x151626(0x1fd)]:return l['jsx'](J,{});case u[_0x151626(0x1c5)]:return l[_0x151626(0x240)](Z,{'coordinator':_0x2a8181});default:return null;}}function G(_0x5c04ab){const _0x4cccf8=_0x3399e0,{coordinator:_0x44cc2d}=_0x5c04ab;return l[_0x4cccf8(0x1e0)](l['Fragment'],{'children':[l[_0x4cccf8(0x240)](_0x4cccf8(0x242),{'className':_0x4cccf8(0x251),'children':_0x4cccf8(0x1b3)}),l['jsx'](f[_0x4cccf8(0x27c)],{'onClick':()=>_0x44cc2d[_0x4cccf8(0x226)](),'children':_0x4cccf8(0x20d)})]});}function B(_0x33bad1){const _0xb8de61=_0x3399e0,{coordinator:_0x2900ed}=_0x33bad1;return l[_0xb8de61(0x1e0)](l[_0xb8de61(0x261)],{'children':[l['jsx']('div',{'className':_0xb8de61(0x251),'children':_0xb8de61(0x271)}),l[_0xb8de61(0x240)](f[_0xb8de61(0x27c)],{'onClick':()=>_0x2900ed['stopFollowing'](),'children':_0xb8de61(0x1be)})]});}function Y(_0x2e9b31){const _0x27c691=_0x3399e0,{coordinator:_0x7985f0}=_0x2e9b31;return l[_0x27c691(0x1e0)](l[_0x27c691(0x261)],{'children':[l[_0x27c691(0x240)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x27c691(0x1bc)}),l['jsx'](f[_0x27c691(0x27c)],{'variant':_0x27c691(0x21e),'onClick':()=>_0x7985f0[_0x27c691(0x1e9)](),'children':'Start\x20following'})]});}function Z(_0x1f4218){const _0x170f52=_0x3399e0,{coordinator:_0x123c9f}=_0x1f4218;return l[_0x170f52(0x1e0)](l[_0x170f52(0x261)],{'children':[l[_0x170f52(0x240)](_0x170f52(0x242),{'className':_0x170f52(0x251),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x170f52(0x240)](f['Button'],{'variant':_0x170f52(0x1f8),'onClick':()=>_0x123c9f['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x12840f=_0x3399e0;return l[_0x12840f(0x240)](l[_0x12840f(0x261)],{'children':_0x12840f(0x20e)});}var K=Object[_0x3399e0(0x241)],z=(_0x2168a5,_0x11e6e8,_0x16e3bb,_0x49337a)=>{const _0x2ea789=_0x3399e0;for(var _0x31c517=_0x49337a>0x1?void 0x0:_0x49337a?K(_0x11e6e8,_0x16e3bb):_0x11e6e8,_0x2861f6=_0x2168a5[_0x2ea789(0x1ee)]-0x1,_0x11c074;_0x2861f6>=0x0;_0x2861f6--)(_0x11c074=_0x2168a5[_0x2861f6])&&(_0x31c517=_0x11c074(_0x31c517)||_0x31c517);return _0x31c517;},L=(_0x5d5954,_0x517852)=>(_0x50daae,_0x4b2ef2)=>_0x517852(_0x50daae,_0x4b2ef2,_0x5d5954);exports[_0x3399e0(0x285)]=class extends o[_0x3399e0(0x23d)]{constructor(_0x33231d,_0x1aa925){const _0x72bf39=_0x3399e0;super(),this[_0x72bf39(0x229)]=_0x33231d,this[_0x72bf39(0x272)]=_0x1aa925,this[_0x72bf39(0x262)]();}[_0x3399e0(0x262)](){const _0x1ee7f4=_0x3399e0;this[_0x1ee7f4(0x22b)](this[_0x1ee7f4(0x272)][_0x1ee7f4(0x281)](p[_0x1ee7f4(0x274)][_0x1ee7f4(0x1d7)],()=>p[_0x1ee7f4(0x1ce)]($,this[_0x1ee7f4(0x229)])));}},exports[_0x3399e0(0x285)]=z([L(0x0,o[_0x3399e0(0x234)](o['Injector'])),L(0x1,p[_0x3399e0(0x217)])],exports[_0x3399e0(0x285)]);const Q=_0x3399e0(0x26e),w={};var X=Object[_0x3399e0(0x241)],ee=(_0x13c545,_0x464463,_0x32fd1f,_0x19dc03)=>{const _0x4cf018=_0x3399e0;for(var _0x2586f5=_0x19dc03>0x1?void 0x0:_0x19dc03?X(_0x464463,_0x32fd1f):_0x464463,_0x3caca9=_0x13c545[_0x4cf018(0x1ee)]-0x1,_0x553ed4;_0x3caca9>=0x0;_0x3caca9--)(_0x553ed4=_0x13c545[_0x3caca9])&&(_0x2586f5=_0x553ed4(_0x2586f5)||_0x2586f5);return _0x2586f5;},te=(_0x229c2b,_0x1b0ddb)=>(_0x3d65d4,_0x27ecac)=>_0x1b0ddb(_0x3d65d4,_0x27ecac,_0x229c2b);let m=class extends o[_0x3399e0(0x23d)]{constructor(_0x35e130){const _0x2cc30e=_0x3399e0;super(),this[_0x2cc30e(0x1d9)]=_0x35e130,this[_0x2cc30e(0x25e)]();}[_0x3399e0(0x25e)](){const _0x1f5468=_0x3399e0;[D[_0x1f5468(0x276)]['id'],D[_0x1f5468(0x207)]['id'],C[_0x1f5468(0x1c3)]['id']]['forEach'](_0x1d1605=>{const _0x4a32c7=_0x1f5468;this[_0x4a32c7(0x22b)](this[_0x4a32c7(0x1d9)][_0x4a32c7(0x280)](_0x1d1605));});}};m=ee([te(0x0,o[_0x3399e0(0x234)](E))],m);var ie=Object['defineProperty'],se=Object[_0x3399e0(0x241)],ne=(_0x1c9e94,_0x237cc0,_0x5d5f4e)=>_0x237cc0 in _0x1c9e94?ie(_0x1c9e94,_0x237cc0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d5f4e}):_0x1c9e94[_0x237cc0]=_0x5d5f4e,re=(_0x6b248,_0x1bed6d,_0x21d878,_0xaf51c7)=>{const _0x457355=_0x3399e0;for(var _0x2e9239=_0xaf51c7>0x1?void 0x0:_0xaf51c7?se(_0x1bed6d,_0x21d878):_0x1bed6d,_0x359642=_0x6b248[_0x457355(0x1ee)]-0x1,_0x4ea343;_0x359642>=0x0;_0x359642--)(_0x4ea343=_0x6b248[_0x359642])&&(_0x2e9239=_0x4ea343(_0x2e9239)||_0x2e9239);return _0x2e9239;},N=(_0x305a50,_0x56acee)=>(_0x2cb643,_0x4a4222)=>_0x56acee(_0x2cb643,_0x4a4222,_0x305a50),A=(_0x1c5c37,_0x1c578c,_0x530f2f)=>ne(_0x1c5c37,typeof _0x1c578c!=_0x3399e0(0x26b)?_0x1c578c+'':_0x1c578c,_0x530f2f);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x3399e0(0x1e7)]=class extends o[_0x3399e0(0x22a)]{constructor(_0x52545b=w,_0x591798,_0x2d2f0c){const _0x1469d8=_0x3399e0;super(),this[_0x1469d8(0x1d6)]=_0x52545b,this[_0x1469d8(0x229)]=_0x591798,this[_0x1469d8(0x220)]=_0x2d2f0c;const {..._0x204c0e}=o['merge']({},w,this[_0x1469d8(0x1d6)]);this[_0x1469d8(0x220)][_0x1469d8(0x1de)](Q,_0x204c0e);}[_0x3399e0(0x258)](){const _0x4b742e=_0x3399e0;o['registerDependencies'](this[_0x4b742e(0x229)],o[_0x4b742e(0x222)]([[E],[exports[_0x4b742e(0x1da)]],[m],[exports[_0x4b742e(0x285)]]],this[_0x4b742e(0x1d6)][_0x4b742e(0x255)])),o['touchDependencies'](this[_0x4b742e(0x229)],[[m]]);}[_0x3399e0(0x247)](){const _0x4027bf=_0x3399e0;o[_0x4027bf(0x1d0)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports['UniverLiveSharePlugin'],_0x3399e0(0x1d4),o[_0x3399e0(0x243)][_0x3399e0(0x20f)]),A(exports['UniverLiveSharePlugin'],_0x3399e0(0x1f3),oe),exports[_0x3399e0(0x1e7)]=re([o[_0x3399e0(0x1d3)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x3399e0(0x234)](o[_0x3399e0(0x1e6)])),N(0x2,o[_0x3399e0(0x25c)])],exports[_0x3399e0(0x1e7)]),exports[_0x3399e0(0x21d)]=$,exports[_0x3399e0(0x213)]=E,exports[_0x3399e0(0x24e)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2e7f(_0xf3a8a9,_0x570afe){const _0x54575a=_0x5457();return _0x2e7f=function(_0x2e7fd4,_0x9ae2f1){_0x2e7fd4=_0x2e7fd4-0x171;let _0x4b8bda=_0x54575a[_0x2e7fd4];return _0x4b8bda;},_0x2e7f(_0xf3a8a9,_0x570afe);}const _0x1d78da=_0x2e7f;(function(_0x5eb321,_0x342f46){const _0x5ab1cc=_0x2e7f,_0x1e2334=_0x5eb321();while(!![]){try{const _0x4a6072=parseInt(_0x5ab1cc(0x18c))/0x1+parseInt(_0x5ab1cc(0x17c))/0x2*(-parseInt(_0x5ab1cc(0x179))/0x3)+parseInt(_0x5ab1cc(0x178))/0x4+parseInt(_0x5ab1cc(0x181))/0x5*(-parseInt(_0x5ab1cc(0x189))/0x6)+parseInt(_0x5ab1cc(0x177))/0x7*(-parseInt(_0x5ab1cc(0x17a))/0x8)+-parseInt(_0x5ab1cc(0x182))/0x9+parseInt(_0x5ab1cc(0x187))/0xa;if(_0x4a6072===_0x342f46)break;else _0x1e2334['push'](_0x1e2334['shift']());}catch(_0x37da52){_0x1e2334['push'](_0x1e2334['shift']());}}}(_0x5457,0xacc9e));import{LiveShareController as _0x557121,LiveShareStatus as _0x186ca3}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4e997e}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x58c1c6}from'@univerjs/sheets';import{SetScrollOperation as _0x537632}from'@univerjs/sheets-ui';import{FRange as _0x13dbde}from'@univerjs/sheets/facade';function _0x5457(){const _0x49eb26=['839496UkBBtY','19590TlhfNw','760ewdkLt','LiveShareStatusEnum','16xXdVdn','getLiveShareCoordinatorSync','extend','stopPresenting','getId','5MQnnAd','7679709fNvcZz','stopFollowing','getStatus','PRESENTING','getUnitId','22780960SWWuBX','_injector','5269242frXDdF','get','startFollowing','246435Jfijmi','tryStartPresenting','_commandService','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','getActiveWorkbook','getActiveSheet','No\x20active\x20workbook\x20found.','getSheetId','17899Yatawa'];_0x5457=function(){return _0x49eb26;};return _0x5457();}import{FUniver as _0x3032a4,FEnum as _0x599bcb}from'@univerjs/core/facade';class I extends _0x13dbde{['_initialize'](_0x37f523,_0x14587d,_0x558071,_0x5f0db6,_0x4d6813){const _0x552491=_0x2e7f,_0x3846b5=_0x37f523[_0x552491(0x18a)](_0x557121),_0x3cc487=_0x37f523[_0x552491(0x18a)](_0x4e997e),_0x5aaff4=_0x14587d['getUnitId'](),_0xca4291=_0x14587d[_0x552491(0x174)](),_0xb89acc=_0x3846b5['getLiveShareCoordinatorSync'](_0x5aaff4);(_0xb89acc==null?void 0x0:_0xb89acc[_0x552491(0x184)]())!==_0x186ca3[_0x552491(0x185)]||(_0x558071[_0x552491(0x176)]()!==_0xca4291[_0x552491(0x176)]()&&this[_0x552491(0x18e)]['executeCommand'](_0x58c1c6['id'],{'unitId':_0x5aaff4,'subUnitId':_0x558071[_0x552491(0x176)]()}),!_0x3cc487['getRenderById'](_0x5aaff4))||_0x4d6813['syncExecuteCommand'](_0x537632['id'],{'unitId':_0x14587d[_0x552491(0x186)](),'sheetId':_0x558071[_0x552491(0x176)](),'sheetViewStartRow':_0x5f0db6['startRow'],'sheetViewStartColumn':_0x5f0db6['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x13dbde[_0x1d78da(0x17e)](I);class m extends _0x3032a4{[_0x1d78da(0x172)](){const _0x57ce47=_0x1d78da;var _0x48884b,_0x34e7a2;const _0x2dfbee=this[_0x57ce47(0x188)]['get'](_0x557121),_0x55c9da=(_0x48884b=this['getActiveWorkbook']())==null?void 0x0:_0x48884b[_0x57ce47(0x180)]();if(!_0x55c9da)throw new Error('No\x20active\x20workbook\x20found.');const _0x3fe114=_0x2dfbee[_0x57ce47(0x17d)](_0x55c9da);return(_0x34e7a2=_0x3fe114==null?void 0x0:_0x3fe114[_0x57ce47(0x184)]())!=null?_0x34e7a2:_0x186ca3['IDLE'];}[_0x1d78da(0x18b)](){const _0x51eaac=_0x1d78da;var _0x3146f2;const _0x14e1d5=this[_0x51eaac(0x188)][_0x51eaac(0x18a)](_0x557121),_0x550242=(_0x3146f2=this[_0x51eaac(0x173)]())==null?void 0x0:_0x3146f2[_0x51eaac(0x180)]();if(!_0x550242)throw new Error(_0x51eaac(0x175));const _0x25e62b=_0x14e1d5[_0x51eaac(0x17d)](_0x550242);if(!_0x25e62b)throw new Error(_0x51eaac(0x171));_0x25e62b[_0x51eaac(0x18b)]();}[_0x1d78da(0x183)](){const _0x42a3b2=_0x1d78da;var _0x114e7c;const _0x5247bb=this[_0x42a3b2(0x188)][_0x42a3b2(0x18a)](_0x557121),_0x50d7e=(_0x114e7c=this[_0x42a3b2(0x173)]())==null?void 0x0:_0x114e7c[_0x42a3b2(0x180)]();if(!_0x50d7e)throw new Error(_0x42a3b2(0x175));const _0x3bcfba=_0x5247bb[_0x42a3b2(0x17d)](_0x50d7e);if(!_0x3bcfba)throw new Error(_0x42a3b2(0x171));_0x3bcfba[_0x42a3b2(0x183)]();}['startPresenting'](){const _0x5a0d37=_0x1d78da;var _0xb52b95;const _0x3e2378=this[_0x5a0d37(0x188)][_0x5a0d37(0x18a)](_0x557121),_0x31c130=(_0xb52b95=this['getActiveWorkbook']())==null?void 0x0:_0xb52b95['getId']();if(!_0x31c130)throw new Error(_0x5a0d37(0x175));const _0x4954a1=_0x3e2378['getLiveShareCoordinatorSync'](_0x31c130);if(!_0x4954a1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4954a1[_0x5a0d37(0x18d)]();}[_0x1d78da(0x17f)](){const _0x1f1211=_0x1d78da;var _0x390e21;const _0x418160=this[_0x1f1211(0x188)][_0x1f1211(0x18a)](_0x557121),_0x57902a=(_0x390e21=this[_0x1f1211(0x173)]())==null?void 0x0:_0x390e21[_0x1f1211(0x180)]();if(!_0x57902a)throw new Error(_0x1f1211(0x175));const _0x3ad542=_0x418160[_0x1f1211(0x17d)](_0x57902a);if(!_0x3ad542)throw new Error(_0x1f1211(0x171));_0x3ad542[_0x1f1211(0x17f)]();}}_0x3032a4[_0x1d78da(0x17e)](m);class C extends _0x599bcb{get[_0x1d78da(0x17b)](){return _0x186ca3;}}_0x599bcb['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3482(_0x5a399,_0x453cb5){const _0x33189a=_0x3318();return _0x3482=function(_0x3482b3,_0x26b02a){_0x3482b3=_0x3482b3-0x1dc;let _0x132b6c=_0x33189a[_0x3482b3];return _0x132b6c;},_0x3482(_0x5a399,_0x453cb5);}const _0x25ee2b=_0x3482;(function(_0x354478,_0x12db55){const _0x2168d5=_0x3482,_0x46b94e=_0x354478();while(!![]){try{const _0x565bcf=parseInt(_0x2168d5(0x1ee))/0x1*(-parseInt(_0x2168d5(0x263))/0x2)+parseInt(_0x2168d5(0x266))/0x3*(-parseInt(_0x2168d5(0x21e))/0x4)+parseInt(_0x2168d5(0x257))/0x5+-parseInt(_0x2168d5(0x202))/0x6+parseInt(_0x2168d5(0x1f9))/0x7+-parseInt(_0x2168d5(0x248))/0x8*(parseInt(_0x2168d5(0x209))/0x9)+parseInt(_0x2168d5(0x26c))/0xa;if(_0x565bcf===_0x12db55)break;else _0x46b94e['push'](_0x46b94e['shift']());}catch(_0x18b024){_0x46b94e['push'](_0x46b94e['shift']());}}}(_0x3318,0xb5ecf));var J=Object[_0x25ee2b(0x243)],K=(_0x510492,_0x1f3d86,_0x2497f1)=>_0x1f3d86 in _0x510492?J(_0x510492,_0x1f3d86,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2497f1}):_0x510492[_0x1f3d86]=_0x2497f1,u=(_0xe5eb6d,_0x347bcd,_0x4870e3)=>K(_0xe5eb6d,typeof _0x347bcd!=_0x25ee2b(0x219)?_0x347bcd+'':_0x347bcd,_0x4870e3);function _0x3318(){const _0x479033=['url(#$1','idle','_startPresenting','find','stopPresenting','disposeWithMe','1437547bZmhtX','shouldShareOperation','ONLINE','http://www.w3.org/2000/svg','getLiveShareCoordinator','trim','includes','set','_sharedOperations','getOwnPropertyDescriptor','parse','7006104tvmsUt','LIVESHARE_OPERATION','displayName','_injector','fill','_commandDisposable','Start\x20following','_stopPresenting','pipe','5552412NNrBXY','_handleNewChangeSets','getValue','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','createInstance','_univerInstanceService','You\x27are\x20offline.','533412CDDCok','idSuffix','_configService','HEADER_MENU','_reporters','startFollowing','_liveShareService','pluginName','_beIdle','FOLLOWING','getCurrentTypeOfUnit$','not-following','current','getTypeOfUnitAdded$','registerInitialStateReporter','init','symbol','_fetchOperations','delete','1em','executeCommand','1745188gsfpnF','clear','UNIVER_SHEET','_handleOffline','UniverIcon','button','xlink:href','text','override','univerjs-icon\x20univerjs-icon-','registerComponent','following','_status','_startFollowing','PRESENTING','stringify','div','_handleNewHost','getStatus','_entities','_collabSessionService','reverse','dispose$','onStarting','colorChannel1','_init','toString','_presenter','entries','_handleOperation','has','forEach','_stopFollowing','Start','Stop\x20following','_status$','tryStartPresenting','defineProperty','from','tag','Stop\x20presenting','complete','144sehzeA','LiveShareIcon','event$','requireSession','get','getMemberID','offline','subscribe','onRendered','sessionStatus$','getUnitId','attrs','children','send','You\x27re\x20presenting\x20the\x20document','5159920YkxSvJ','data','status$','presenting','map','LIVESHARE_TERMINATE','then','univer-size-4','_mountLiveShare','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_UNKNOWN','2IoxlhZ','LIVESHARE_REQUEST_HOST','end','3sHjtVt','path','values','unitId','sheet','evenodd','25783810OQViQe','presenter','add','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','substring','OFFLINE','use','NOT_FOLLOWING','mask','_startLiveShareCoordinator','memberID','_handleOnline','string','OPERATION','unsubscribe','next','stopFollowing','asObservable','svg','Present\x20this\x20document','length','type','params','operations','dispose','currentColor','_handleTerminate','NEW_CHANGESETS','default','getInitialStates','_commandService','_config','_collabSession'];_0x3318=function(){return _0x479033;};return _0x3318();}import{Disposable as _0x536fe5,toDisposable as _0x3791d0,IUniverInstanceService as _0x321915,Inject as _0x5df2f1,Injector as _0x2773ce,IConfigService as _0x289228,ICommandService as _0x4719b3,RxDisposable as _0x57de3b,UniverInstanceType as _0x550b95,DisposableCollection as _0x3feb8d,CommandType as _0x463f33,DependentOn as _0x2b6788,Plugin as _0x4155e9,merge as _0x12cf70,registerDependencies as _0x70c5c8,mergeOverrideWithDependencies as _0x4949c7,touchDependencies as _0x4dbc52}from'@univerjs/core';import{useDependency as _0x342b78,useObservable as _0x1df29a,IUIPartsService as _0xaa2672,BuiltInUIPart as _0x48a98c,connectInjector as _0x21b5cb}from'@univerjs/ui';import{jsx as _0x26e6ab,jsxs as _0x198524,Fragment as _0x518b0d}from'react/jsx-runtime';import{Dropdown as _0x529267,clsx as _0x57a711,Button as _0x23fd45}from'@univerjs/design';import{useRef as _0x43d6ea,createElement as _0x350afd,forwardRef as _0x39b81e,useState as _0x1591a3,useEffect as _0x5d5703}from'react';import{CollaborationEvent as _0x1e8c77,parseProtocolChangeset as _0x1b8fde}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x7119a7,SessionStatus as _0xe29edb,UniverCollaborationClientPlugin as _0x318246}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xf9e31d,SetWorksheetActiveOperation as _0x10e90c}from'@univerjs/sheets';import{BehaviorSubject as _0x6a94b9,Subject as _0x3a69f0}from'rxjs';import{takeUntil as _0x4bc654,throttleTime as _0x4427dc}from'rxjs/operators';import{SetZoomRatioOperation as _0x170f2f,SetScrollOperation as _0xc75d5e}from'@univerjs/sheets-ui';function k({ref:_0x5d97cb,..._0x3f71cb}){const _0x3f5d6e=_0x25ee2b,{icon:_0x5866cd,id:_0x36dd4f,className:_0x4fa107,extend:_0x2456d7,..._0x4e3c3a}=_0x3f71cb,_0x25334c=(_0x3f5d6e(0x227)+_0x36dd4f+'\x20'+(_0x4fa107||''))[_0x3f5d6e(0x1f3)](),_0xc780ed=_0x43d6ea('_'+Oe());return G(_0x5866cd,''+_0x36dd4f,{'defIds':_0x5866cd['defIds'],'idSuffix':_0xc780ed[_0x3f5d6e(0x215)]},{'ref':_0x5d97cb,'className':_0x25334c,..._0x4e3c3a},_0x2456d7);}function G(_0x3c57f0,_0x6ffbab,_0x82c7e8,_0x454aa9,_0x11bcab){const _0x433012=_0x25ee2b;return _0x350afd(_0x3c57f0[_0x433012(0x245)],{'key':_0x6ffbab,...be(_0x3c57f0,_0x82c7e8,_0x11bcab),..._0x454aa9},(Ee(_0x3c57f0,_0x82c7e8)[_0x433012(0x254)]||[])['map']((_0x1d9e28,_0x5a8dd0)=>G(_0x1d9e28,_0x6ffbab+'-'+_0x3c57f0['tag']+'-'+_0x5a8dd0,_0x82c7e8,void 0x0,_0x11bcab)));}function be(_0x5bfd07,_0x16c8ee,_0x526cb2){const _0x40369f=_0x25ee2b,_0x539313={..._0x5bfd07[_0x40369f(0x253)]};_0x526cb2!=null&&_0x526cb2[_0x40369f(0x236)]&&_0x539313[_0x40369f(0x1fd)]==='colorChannel1'&&(_0x539313[_0x40369f(0x1fd)]=_0x526cb2[_0x40369f(0x236)]),_0x5bfd07[_0x40369f(0x245)]===_0x40369f(0x276)&&_0x539313['id']&&(_0x539313['id']=_0x539313['id']+_0x16c8ee[_0x40369f(0x20a)]),Object['entries'](_0x539313)['forEach'](([_0x446a2f,_0x2d2470])=>{const _0x12cf09=_0x40369f;_0x446a2f===_0x12cf09(0x276)&&typeof _0x2d2470==_0x12cf09(0x27a)&&(_0x539313[_0x446a2f]=_0x2d2470['replace'](/url\(#(.*)\)/,_0x12cf09(0x1e8)+_0x16c8ee[_0x12cf09(0x20a)]+')'));});const {defIds:_0x215a09}=_0x16c8ee;return!_0x215a09||_0x215a09[_0x40369f(0x282)]===0x0||(_0x5bfd07[_0x40369f(0x245)]===_0x40369f(0x274)&&_0x539313[_0x40369f(0x224)]&&(_0x539313[_0x40369f(0x224)]=_0x539313['xlink:href']+_0x16c8ee[_0x40369f(0x20a)]),Object[_0x40369f(0x23a)](_0x539313)[_0x40369f(0x23d)](([_0x5e70c9,_0x2cd61e])=>{const _0x9206e0=_0x40369f;typeof _0x2cd61e==_0x9206e0(0x27a)&&(_0x539313[_0x5e70c9]=_0x2cd61e['replace'](/url\(#(.*)\)/,_0x9206e0(0x1e8)+_0x16c8ee['idSuffix']+')'));})),_0x539313;}function Ee(_0x2374e7,_0x5dfe8a){const _0x460d18=_0x25ee2b;var _0x486852;const {defIds:_0x409ea7}=_0x5dfe8a;return!_0x409ea7||_0x409ea7[_0x460d18(0x282)]===0x0?_0x2374e7:_0x2374e7[_0x460d18(0x245)]==='defs'&&((_0x486852=_0x2374e7[_0x460d18(0x254)])!=null&&_0x486852[_0x460d18(0x282)])?{..._0x2374e7,'children':_0x2374e7[_0x460d18(0x254)][_0x460d18(0x25b)](_0x4f4fe0=>typeof _0x4f4fe0[_0x460d18(0x253)]['id']==_0x460d18(0x27a)&&_0x409ea7&&_0x409ea7[_0x460d18(0x1f4)](_0x4f4fe0[_0x460d18(0x253)]['id'])?{..._0x4f4fe0,'attrs':{..._0x4f4fe0[_0x460d18(0x253)],'id':_0x4f4fe0[_0x460d18(0x253)]['id']+_0x5dfe8a[_0x460d18(0x20a)]}}:_0x4f4fe0)}:_0x2374e7;}function Oe(){const _0x3afdb9=_0x25ee2b;return Math['random']()[_0x3afdb9(0x238)](0x24)[_0x3afdb9(0x272)](0x2,0x8);}k['displayName']=_0x25ee2b(0x222);const we={'tag':_0x25ee2b(0x280),'attrs':{'xmlns':_0x25ee2b(0x1f1),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x25ee2b(0x21c),'height':_0x25ee2b(0x21c)},'children':[{'tag':_0x25ee2b(0x267),'attrs':{'fill':_0x25ee2b(0x1e0),'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':_0x25ee2b(0x267),'attrs':{'fill':_0x25ee2b(0x1e0),'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':_0x25ee2b(0x26b),'clipRule':_0x25ee2b(0x26b)}}]},W=_0x39b81e(function(_0xaa45de,_0x29d9be){return _0x350afd(k,Object['assign']({},_0xaa45de,{'id':'live-share-icon','ref':_0x29d9be,'icon':we}));});W[_0x25ee2b(0x1fb)]=_0x25ee2b(0x249);class L extends _0x536fe5{constructor(){const _0x449475=_0x25ee2b;super(...arguments),u(this,_0x449475(0x1f6),new Set()),u(this,_0x449475(0x20d),new Set());}['registerSharedOperation'](_0x459cf3){const _0x1246a7=_0x25ee2b;return this[_0x1246a7(0x1f6)][_0x1246a7(0x26e)](_0x459cf3),_0x3791d0(()=>this[_0x1246a7(0x1f6)][_0x1246a7(0x21b)](_0x459cf3));}[_0x25ee2b(0x217)](_0x5a1af5){const _0xdba816=_0x25ee2b;return this[_0xdba816(0x20d)][_0xdba816(0x26e)](_0x5a1af5),_0x3791d0(()=>this[_0xdba816(0x20d)][_0xdba816(0x21b)](_0x5a1af5));}[_0x25ee2b(0x1ef)](_0x399e9f){const _0x4ef55e=_0x25ee2b;return this['_sharedOperations'][_0x4ef55e(0x23c)](_0x399e9f);}[_0x25ee2b(0x1e4)](_0x56102d){const _0x3877f2=_0x25ee2b;return Array[_0x3877f2(0x244)](this[_0x3877f2(0x20d)])[_0x3877f2(0x25b)](_0x3ddab5=>_0x3ddab5(_0x56102d));}}var Ne=Object[_0x25ee2b(0x1f7)],Y=(_0x25a209,_0x868f91,_0x3c9657,_0x37bba0)=>{const _0x345783=_0x25ee2b;for(var _0x143c41=_0x37bba0>0x1?void 0x0:_0x37bba0?Ne(_0x868f91,_0x3c9657):_0x868f91,_0x4f483d=_0x25a209[_0x345783(0x282)]-0x1,_0xb2d609;_0x4f483d>=0x0;_0x4f483d--)(_0xb2d609=_0x25a209[_0x4f483d])&&(_0x143c41=_0xb2d609(_0x143c41)||_0x143c41);return _0x143c41;},_=(_0x265ea9,_0x2a9cfd)=>(_0x225637,_0x32b365)=>_0x2a9cfd(_0x225637,_0x32b365,_0x265ea9);let S=class extends _0x57de3b{constructor(_0x112f63,_0x477400,_0x525d85){const _0x196676=_0x25ee2b;super(),u(this,_0x196676(0x231),new Map()),(this[_0x196676(0x207)]=_0x112f63,this['_injector']=_0x477400,this[_0x196676(0x232)]=_0x525d85,this[_0x196676(0x237)]());}async[_0x25ee2b(0x1f2)](_0x183430){const _0x119dfd=_0x25ee2b;return this[_0x119dfd(0x231)][_0x119dfd(0x23c)](_0x183430)||await this['_startLiveShareCoordinator'](_0x183430),this['_entities'][_0x119dfd(0x24c)](_0x183430);}['getLiveShareCoordinatorSync'](_0x17b983){const _0x51bf67=_0x25ee2b;var _0x27db4e;return(_0x27db4e=this['_entities'][_0x51bf67(0x24c)](_0x17b983))!=null?_0x27db4e:null;}[_0x25ee2b(0x237)](){const _0x16ee00=_0x25ee2b;this[_0x16ee00(0x207)][_0x16ee00(0x216)](_0x550b95[_0x16ee00(0x220)])[_0x16ee00(0x201)](_0x4bc654(this[_0x16ee00(0x234)]))[_0x16ee00(0x24f)](async _0x11bfb3=>{const _0x5b97de=_0x16ee00,_0x135873=_0x11bfb3[_0x5b97de(0x252)]();this[_0x5b97de(0x231)][_0x5b97de(0x23c)](_0x135873)||this['_startLiveShareCoordinator'](_0x135873);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x550b95[_0x16ee00(0x220)])[_0x16ee00(0x201)](_0x4bc654(this['dispose$']))[_0x16ee00(0x24f)](_0x507166=>{const _0x4d1466=_0x16ee00,_0x30767f=_0x507166[_0x4d1466(0x252)](),_0x4375ba=this[_0x4d1466(0x231)][_0x4d1466(0x24c)](_0x30767f);_0x4375ba==null||_0x4375ba[_0x4d1466(0x1df)]();});}async[_0x25ee2b(0x277)](_0x1bf4c8){const _0x3030b3=_0x25ee2b,_0x3246ac=await this[_0x3030b3(0x232)][_0x3030b3(0x24b)](_0x1bf4c8),_0x42af57=this[_0x3030b3(0x1fc)][_0x3030b3(0x206)](N,_0x1bf4c8,_0x3246ac);return _0x42af57[_0x3030b3(0x218)](),this['_entities'][_0x3030b3(0x1f5)](_0x1bf4c8,_0x42af57),_0x42af57;}};S=Y([_(0x0,_0x321915),_(0x1,_0x5df2f1(_0x2773ce)),_(0x2,_0x5df2f1(_0x7119a7))],S);var c=(_0x39b654=>(_0x39b654[_0x25ee2b(0x273)]=_0x25ee2b(0x24e),_0x39b654['IDLE']=_0x25ee2b(0x1e9),_0x39b654[_0x25ee2b(0x212)]='following',_0x39b654[_0x25ee2b(0x275)]='not-following',_0x39b654[_0x25ee2b(0x22c)]=_0x25ee2b(0x25a),_0x39b654))(c||{});const Ce=_0x25ee2b(0x271),De=0xc8;let N=class extends _0x57de3b{constructor(_0x1487c5,_0x4820de,_0x1f0c41,_0xeca8d4,_0x23f29a){const _0x5acdd5=_0x25ee2b;super(),u(this,_0x5acdd5(0x241),new _0x6a94b9('idle')),u(this,'status$',this[_0x5acdd5(0x241)][_0x5acdd5(0x27f)]()),u(this,_0x5acdd5(0x237),!0x1),u(this,_0x5acdd5(0x1fe),null),u(this,_0x5acdd5(0x239),null),(this[_0x5acdd5(0x260)]=_0x1487c5,this['_collabSession']=_0x4820de,this['_configService']=_0x1f0c41,this[_0x5acdd5(0x20f)]=_0xeca8d4,this[_0x5acdd5(0x1e5)]=_0x23f29a);}get[_0x25ee2b(0x22a)](){const _0x1a0ed4=_0x25ee2b;return this[_0x1a0ed4(0x241)][_0x1a0ed4(0x204)]();}['dispose'](){const _0x227d30=_0x25ee2b;var _0x33b4b8;(_0x33b4b8=this['_commandDisposable'])==null||_0x33b4b8['dispose'](),this['_status$'][_0x227d30(0x27d)](_0x227d30(0x1e9)),this[_0x227d30(0x241)][_0x227d30(0x247)]();}[_0x25ee2b(0x230)](){return this['_status'];}[_0x25ee2b(0x218)](){const _0x20159f=_0x25ee2b;this[_0x20159f(0x237)]||(this[_0x20159f(0x237)]=!0x0,this[_0x20159f(0x1e7)][_0x20159f(0x251)][_0x20159f(0x201)](_0x4bc654(this['dispose$']))[_0x20159f(0x24f)](_0x143a01=>{const _0x574d78=_0x20159f;switch(_0x143a01){case _0xe29edb[_0x574d78(0x273)]:this['_handleOffline']();break;case _0xe29edb[_0x574d78(0x1f0)]:this[_0x574d78(0x279)]();break;}}),this[_0x20159f(0x1e7)][_0x20159f(0x24a)][_0x20159f(0x201)](_0x4bc654(this[_0x20159f(0x234)]))[_0x20159f(0x24f)](_0x379e83=>{const _0x3162c2=_0x20159f,{eventID:_0x4fd48e}=_0x379e83;switch(_0x4fd48e){case _0x1e8c77['LIVESHARE_NEW_HOST']:this[_0x3162c2(0x22f)](_0x379e83);break;case _0x1e8c77[_0x3162c2(0x1fa)]:this[_0x3162c2(0x23b)](_0x379e83);break;case _0x1e8c77[_0x3162c2(0x25c)]:this[_0x3162c2(0x1e1)]();break;case _0x1e8c77[_0x3162c2(0x1e2)]:this[_0x3162c2(0x203)](_0x379e83);break;}}));}[_0x25ee2b(0x242)](){const _0xbf9ef7=_0x25ee2b;this[_0xbf9ef7(0x1e7)]['send']({'eventID':_0x1e8c77[_0xbf9ef7(0x264)],'data':{'unitID':this[_0xbf9ef7(0x260)],'userID':this[_0xbf9ef7(0x1e7)][_0xbf9ef7(0x24d)]()}},this[_0xbf9ef7(0x260)]);}[_0x25ee2b(0x1ec)](){const _0x5e7e2a=_0x25ee2b;this[_0x5e7e2a(0x22a)]===_0x5e7e2a(0x25a)&&(this[_0x5e7e2a(0x241)][_0x5e7e2a(0x27d)](_0x5e7e2a(0x1e9)),this[_0x5e7e2a(0x1e7)][_0x5e7e2a(0x255)]({'eventID':_0x1e8c77[_0x5e7e2a(0x25c)],'data':{'unitID':this[_0x5e7e2a(0x260)]}},this[_0x5e7e2a(0x260)]));}['startFollowing'](){const _0x3266c3=_0x25ee2b;this[_0x3266c3(0x22a)]===_0x3266c3(0x214)&&(this[_0x3266c3(0x241)]['next'](_0x3266c3(0x229)),this['_startFollowing']());}[_0x25ee2b(0x27e)](){const _0x174239=_0x25ee2b;this[_0x174239(0x22a)]===_0x174239(0x229)&&this[_0x174239(0x23e)]();}['_handleNewHost'](_0x291737){const _0x686279=_0x25ee2b,{presenter:_0x368e54}=_0x291737[_0x686279(0x258)],_0x873dc9=this[_0x686279(0x1e7)]['getMemberID']();this['_presenter']=_0x368e54,_0x368e54===_0x873dc9?(this[_0x686279(0x23e)](),this[_0x686279(0x1ea)]()):this[_0x686279(0x22a)]!==_0x686279(0x214)&&(this[_0x686279(0x200)](),this[_0x686279(0x22b)]());}['_fetchOperations'](){const _0x1203d9=_0x25ee2b,_0x789159={'eventID':_0x1e8c77['LIVESHARE_FETCH_OPERATIONS']};this[_0x1203d9(0x1e7)][_0x1203d9(0x255)](_0x789159,this[_0x1203d9(0x260)]);}[_0x25ee2b(0x1e1)](){const _0x1b704b=_0x25ee2b;this[_0x1b704b(0x239)]=null,this[_0x1b704b(0x22a)]!==_0x1b704b(0x25a)&&this[_0x1b704b(0x211)]();}[_0x25ee2b(0x203)](_0x54a134){const _0x5edd0c=_0x25ee2b;if(this[_0x5edd0c(0x22a)]===_0x5edd0c(0x229)&&this[_0x5edd0c(0x239)]===_0x54a134[_0x5edd0c(0x258)][_0x5edd0c(0x278)]){const _0x5af89a=_0x1b8fde(_0x54a134[_0x5edd0c(0x258)])['mutations'][_0x5edd0c(0x233)]()[_0x5edd0c(0x1eb)](_0x21c6c0=>_0x21c6c0['id']===_0xf9e31d['id']);if(_0x5af89a){const _0x3680f1=_0x5af89a[_0x5edd0c(0x1dd)][_0x5edd0c(0x269)],_0x449956=_0x5af89a[_0x5edd0c(0x1dd)][_0x5edd0c(0x26a)]['id'];setTimeout(()=>{const _0x1b2e4c=_0x5edd0c;this[_0x1b2e4c(0x1e5)][_0x1b2e4c(0x21d)](_0x10e90c['id'],{'unitId':_0x3680f1,'subUnitId':_0x449956},{'fromCollab':!0x0});});}}}[_0x25ee2b(0x1ea)](){const _0x58a802=_0x25ee2b;this[_0x58a802(0x241)]['next'](_0x58a802(0x25a));const _0x4f04da=new Map(),_0x5a6c70=this[_0x58a802(0x1fe)]=new _0x3feb8d();_0x5a6c70[_0x58a802(0x26e)](_0x3791d0(()=>{const _0x25f11b=_0x58a802;_0x4f04da[_0x25f11b(0x23d)](_0x4a6055=>_0x4a6055[_0x25f11b(0x247)]()),_0x4f04da[_0x25f11b(0x21f)]();})),_0x5a6c70['add'](this['_commandService']['onCommandExecuted'](_0x21a68c=>{const _0x3325f2=_0x58a802;var _0x2f9c0e;if(_0x21a68c[_0x3325f2(0x1dc)]!==_0x463f33[_0x3325f2(0x27b)]||!this[_0x3325f2(0x20f)][_0x3325f2(0x1ef)](_0x21a68c['id']))return;const {id:_0x345ab1}=_0x21a68c;let _0x2b95b9;_0x4f04da['has'](_0x345ab1)?_0x2b95b9=_0x4f04da[_0x3325f2(0x24c)](_0x345ab1):(_0x2b95b9=new _0x3a69f0(),_0x4f04da[_0x3325f2(0x1f5)](_0x345ab1,_0x2b95b9),_0x2b95b9['pipe'](_0x4427dc((_0x2f9c0e=this[_0x3325f2(0x20b)]['getConfig'](Ce))!=null?_0x2f9c0e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4a7ab4=>{const _0x4767b4=_0x3325f2;this[_0x4767b4(0x1e7)][_0x4767b4(0x255)]({'eventID':_0x1e8c77[_0x4767b4(0x1fa)],'data':{'unitID':this['_unitID'],'operations':{[_0x4a7ab4['id']]:{'id':_0x4a7ab4['id'],'params':JSON[_0x4767b4(0x22d)](_0x4a7ab4[_0x4767b4(0x1dd)])}}}},this[_0x4767b4(0x260)]);})),_0x2b95b9[_0x3325f2(0x27d)](_0x21a68c);})),this[_0x58a802(0x20f)][_0x58a802(0x1e4)](this[_0x58a802(0x260)])['forEach'](_0x52efee=>this[_0x58a802(0x1e7)]['send']({'eventID':_0x1e8c77[_0x58a802(0x1fa)],'data':{'unitID':this[_0x58a802(0x260)],'operations':{[_0x52efee['id']]:{'id':_0x52efee['id'],'params':JSON['stringify'](_0x52efee[_0x58a802(0x1dd)])}}}},this['_unitID']));}[_0x25ee2b(0x200)](){const _0x45c5c5=_0x25ee2b;var _0x26b715;this[_0x45c5c5(0x241)][_0x45c5c5(0x27d)](_0x45c5c5(0x1e9)),(_0x26b715=this[_0x45c5c5(0x1fe)])==null||_0x26b715[_0x45c5c5(0x1df)](),this[_0x45c5c5(0x1fe)]=null;}['_startFollowing'](){const _0x1ebc2d=_0x25ee2b;var _0x5a5309;(_0x5a5309=this[_0x1ebc2d(0x1fe)])==null||_0x5a5309[_0x1ebc2d(0x1df)](),this[_0x1ebc2d(0x241)][_0x1ebc2d(0x27d)](_0x1ebc2d(0x229));}['_beIdle'](){const _0x446edc=_0x25ee2b;var _0x5b798d;this[_0x446edc(0x241)][_0x446edc(0x27d)](_0x446edc(0x1e9)),(_0x5b798d=this['_commandDisposable'])==null||_0x5b798d[_0x446edc(0x1df)](),this[_0x446edc(0x1fe)]=null;}[_0x25ee2b(0x23e)](){const _0x36f832=_0x25ee2b;var _0x49ba80;this[_0x36f832(0x241)]['next']('not-following'),(_0x49ba80=this['_commandDisposable'])==null||_0x49ba80[_0x36f832(0x1df)]();}[_0x25ee2b(0x23b)](_0x38b346){const _0xff54c6=_0x25ee2b;if([_0xff54c6(0x25a),_0xff54c6(0x214),_0xff54c6(0x24e)][_0xff54c6(0x1f4)](this[_0xff54c6(0x22a)])||!_0x38b346['data'][_0xff54c6(0x26d)]||_0x38b346['data']['presenter']===this['_collabSession'][_0xff54c6(0x24d)]())return;this[_0xff54c6(0x22a)]===_0xff54c6(0x1e9)&&this[_0xff54c6(0x22b)]();const _0x535403=_0x38b346[_0xff54c6(0x258)][_0xff54c6(0x1de)];Object[_0xff54c6(0x268)](_0x535403)['forEach'](_0x3422cd=>{const _0x8d71cc=_0xff54c6;this[_0x8d71cc(0x1e5)][_0x8d71cc(0x21d)](_0x3422cd['id'],_0x3422cd[_0x8d71cc(0x1dd)]?JSON[_0x8d71cc(0x1f8)](_0x3422cd[_0x8d71cc(0x1dd)]):null,{'fromCollab':!0x0});});}[_0x25ee2b(0x221)](){const _0x1fbd48=_0x25ee2b;var _0x4ece1d;this[_0x1fbd48(0x241)][_0x1fbd48(0x27d)](_0x1fbd48(0x24e)),(_0x4ece1d=this[_0x1fbd48(0x1fe)])==null||_0x4ece1d['dispose']();}[_0x25ee2b(0x279)](){const _0x1ecae0=_0x25ee2b;this[_0x1ecae0(0x241)][_0x1ecae0(0x27d)](_0x1ecae0(0x1e9)),this[_0x1ecae0(0x21a)]();}};N=Y([_(0x2,_0x289228),_(0x3,_0x5df2f1(L)),_(0x4,_0x4719b3)],N);function Le(){const _0x54a579=_0x25ee2b,_0xa855d1=_0x342b78(S),_0x206ccc=_0x342b78(_0x321915),_0xeb011d=_0x1df29a(()=>_0x206ccc[_0x54a579(0x213)](_0x550b95[_0x54a579(0x220)]),void 0x0,!0x1,[]),[_0x4dfef9,_0x4b6f1e]=_0x1591a3(null),[_0x95edf4,_0x371dcd]=_0x1591a3(c['IDLE']),_0x52a2fe=_0x43d6ea(null);return _0x5d5703(()=>(_0xeb011d&&_0xa855d1[_0x54a579(0x1f2)](_0xeb011d[_0x54a579(0x252)]())[_0x54a579(0x25d)](_0x52fcdd=>{const _0x42c154=_0x54a579;_0x4b6f1e(_0x52fcdd),_0x52a2fe[_0x42c154(0x215)]=_0x52fcdd[_0x42c154(0x259)]['subscribe'](_0x4f3e93=>{_0x371dcd(_0x4f3e93);});}),()=>{const _0x296cd0=_0x54a579;var _0x18d4a8;(_0x18d4a8=_0x52a2fe['current'])==null||_0x18d4a8[_0x296cd0(0x27c)](),_0x52a2fe['current']=null;}),[_0xeb011d,_0xa855d1]),_0x4dfef9?_0x26e6ab(_0x529267,{'align':_0x54a579(0x265),'disabled':_0x95edf4===c[_0x54a579(0x273)],'className':_0x54a579(0x205),'overlay':_0x26e6ab(Re,{'status':_0x95edf4,'coordinator':_0x4dfef9}),'children':_0x26e6ab(_0x54a579(0x223),{'className':_0x57a711(_0x54a579(0x270),{'univer-cursor-not-allowed':_0x95edf4===c[_0x54a579(0x273)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x95edf4!==c[_0x54a579(0x273)]}),'type':'button','children':_0x26e6ab(W,{'className':_0x54a579(0x25e)})})}):null;}function Re(_0x4916ca){const _0x5c53a=_0x25ee2b,{status:_0x1fb38d,coordinator:_0x3bcb41}=_0x4916ca;switch(_0x1fb38d){case c['IDLE']:return _0x26e6ab($e,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x212)]:return _0x26e6ab(xe,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x275)]:return _0x26e6ab(Pe,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x273)]:return _0x26e6ab(Te,{});case c[_0x5c53a(0x22c)]:return _0x26e6ab(Ae,{'coordinator':_0x3bcb41});default:return null;}}function $e(_0x2fefea){const _0xb64479=_0x25ee2b,{coordinator:_0x3e360d}=_0x2fefea;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0xb64479(0x22e),{'className':_0xb64479(0x261),'children':_0xb64479(0x281)}),_0x26e6ab(_0x23fd45,{'onClick':()=>_0x3e360d[_0xb64479(0x242)](),'children':_0xb64479(0x23f)})]});}function xe(_0x126de7){const _0x2d2149=_0x25ee2b,{coordinator:_0x37c5f5}=_0x126de7;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0x2d2149(0x22e),{'className':_0x2d2149(0x261),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x26e6ab(_0x23fd45,{'onClick':()=>_0x37c5f5[_0x2d2149(0x27e)](),'children':_0x2d2149(0x240)})]});}function Pe(_0x4c90cd){const _0x134e1a=_0x25ee2b,{coordinator:_0x40d0c0}=_0x4c90cd;return _0x198524(_0x518b0d,{'children':[_0x26e6ab('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x26e6ab(_0x23fd45,{'variant':_0x134e1a(0x225),'onClick':()=>_0x40d0c0[_0x134e1a(0x20e)](),'children':_0x134e1a(0x1ff)})]});}function Ae(_0x59841f){const _0x1f4f08=_0x25ee2b,{coordinator:_0x233bdb}=_0x59841f;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0x1f4f08(0x22e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1f4f08(0x256)}),_0x26e6ab(_0x23fd45,{'variant':_0x1f4f08(0x1e3),'onClick':()=>_0x233bdb[_0x1f4f08(0x1ec)](),'children':_0x1f4f08(0x246)})]});}function Te(){const _0x3d2e59=_0x25ee2b;return _0x26e6ab(_0x518b0d,{'children':_0x3d2e59(0x208)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x3fc747,_0x4c20b4,_0x481ef8,_0x4e3c33)=>{const _0xd44746=_0x25ee2b;for(var _0x463da0=_0x4e3c33>0x1?void 0x0:_0x4e3c33?Fe(_0x4c20b4,_0x481ef8):_0x4c20b4,_0x3a0bc2=_0x3fc747[_0xd44746(0x282)]-0x1,_0x5bcd56;_0x3a0bc2>=0x0;_0x3a0bc2--)(_0x5bcd56=_0x3fc747[_0x3a0bc2])&&(_0x463da0=_0x5bcd56(_0x463da0)||_0x463da0);return _0x463da0;},A=(_0x14789f,_0x3b3505)=>(_0x32307a,_0x44e4d1)=>_0x3b3505(_0x32307a,_0x44e4d1,_0x14789f);let m=class extends _0x536fe5{constructor(_0x97cadf,_0x531e22){const _0x59ce35=_0x25ee2b;super(),this[_0x59ce35(0x1fc)]=_0x97cadf,this['_uiPartsService']=_0x531e22,this[_0x59ce35(0x25f)]();}[_0x25ee2b(0x25f)](){const _0x25cc81=_0x25ee2b;this[_0x25cc81(0x1ed)](this[_0x25cc81(0x26f)][_0x25cc81(0x228)](_0x48a98c[_0x25cc81(0x20c)],()=>_0x21b5cb(Le,this[_0x25cc81(0x1fc)])));}};m=He([A(0x0,_0x5df2f1(_0x2773ce)),A(0x1,_0xaa2672)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0xd39551,_0x36bf07,_0x41d170,_0x5dda06)=>{const _0x2a0775=_0x25ee2b;for(var _0x12285e=_0x5dda06>0x1?void 0x0:_0x5dda06?Ue(_0x36bf07,_0x41d170):_0x36bf07,_0x17d3d5=_0xd39551[_0x2a0775(0x282)]-0x1,_0x5030bc;_0x17d3d5>=0x0;_0x17d3d5--)(_0x5030bc=_0xd39551[_0x17d3d5])&&(_0x12285e=_0x5030bc(_0x12285e)||_0x12285e);return _0x12285e;},je=(_0x354c66,_0x17ddc8)=>(_0x27969a,_0x5a0a48)=>_0x17ddc8(_0x27969a,_0x5a0a48,_0x354c66);let I=class extends _0x536fe5{constructor(_0x3870ee){const _0x5eb47a=_0x25ee2b;super(),this[_0x5eb47a(0x20f)]=_0x3870ee,this[_0x5eb47a(0x237)]();}['_init'](){const _0x5ce72f=_0x25ee2b;[_0x170f2f['id'],_0xc75d5e['id'],_0x10e90c['id']][_0x5ce72f(0x23d)](_0x1f5145=>{const _0x2c7a78=_0x5ce72f;this[_0x2c7a78(0x1ed)](this[_0x2c7a78(0x20f)]['registerSharedOperation'](_0x1f5145));});}};I=Ve([je(0x0,_0x5df2f1(L))],I);var Me=Object[_0x25ee2b(0x243)],ke=Object[_0x25ee2b(0x1f7)],Ge=(_0x1a8fbb,_0x5dafc9,_0x5bea9f)=>_0x5dafc9 in _0x1a8fbb?Me(_0x1a8fbb,_0x5dafc9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bea9f}):_0x1a8fbb[_0x5dafc9]=_0x5bea9f,We=(_0x23cda6,_0x4182a2,_0x53f377,_0x299d12)=>{for(var _0x17e5fc=_0x299d12>0x1?void 0x0:_0x299d12?ke(_0x4182a2,_0x53f377):_0x4182a2,_0x4e19e3=_0x23cda6['length']-0x1,_0x43ae9f;_0x4e19e3>=0x0;_0x4e19e3--)(_0x43ae9f=_0x23cda6[_0x4e19e3])&&(_0x17e5fc=_0x43ae9f(_0x17e5fc)||_0x17e5fc);return _0x17e5fc;},F=(_0x3f4518,_0x25e5d5)=>(_0x3732eb,_0x431efa)=>_0x25e5d5(_0x3732eb,_0x431efa,_0x3f4518),B=(_0x5ad5b2,_0x10073b,_0x3efbaf)=>Ge(_0x5ad5b2,typeof _0x10073b!=_0x25ee2b(0x219)?_0x10073b+'':_0x10073b,_0x3efbaf);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4155e9{constructor(_0x1bb2e4=T,_0x51466b,_0x2c3bb7){const _0x4847fd=_0x25ee2b;super(),this['_config']=_0x1bb2e4,this[_0x4847fd(0x1fc)]=_0x51466b,this['_configService']=_0x2c3bb7;const {..._0x2f5043}=_0x12cf70({},T,this[_0x4847fd(0x1e6)]);this['_configService']['setConfig'](ye,_0x2f5043);}[_0x25ee2b(0x235)](){const _0x372512=_0x25ee2b;_0x70c5c8(this[_0x372512(0x1fc)],_0x4949c7([[L],[S],[I],[m]],this[_0x372512(0x1e6)][_0x372512(0x226)])),_0x4dbc52(this[_0x372512(0x1fc)],[[I]]);}[_0x25ee2b(0x250)](){const _0x410537=_0x25ee2b;_0x4dbc52(this[_0x410537(0x1fc)],[[m]]);}};B(b,'type',_0x550b95[_0x25ee2b(0x262)]),B(b,_0x25ee2b(0x210),Ye),b=We([_0x2b6788(_0x318246),F(0x1,_0x5df2f1(_0x2773ce)),F(0x2,_0x289228)],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 _0x5210d7=_0x243a;(function(_0x15f47f,_0x38a4bf){const _0x24d9a3=_0x243a,_0x80a755=_0x15f47f();while(!![]){try{const _0xcfd96d=-parseInt(_0x24d9a3(0x1ef))/0x1*(-parseInt(_0x24d9a3(0x159))/0x2)+parseInt(_0x24d9a3(0x1c0))/0x3*(-parseInt(_0x24d9a3(0x14c))/0x4)+parseInt(_0x24d9a3(0x15b))/0x5*(-parseInt(_0x24d9a3(0x1ed))/0x6)+-parseInt(_0x24d9a3(0x1c2))/0x7*(-parseInt(_0x24d9a3(0x1db))/0x8)+-parseInt(_0x24d9a3(0x191))/0x9*(parseInt(_0x24d9a3(0x188))/0xa)+-parseInt(_0x24d9a3(0x14b))/0xb*(parseInt(_0x24d9a3(0x173))/0xc)+parseInt(_0x24d9a3(0x1e0))/0xd;if(_0xcfd96d===_0x38a4bf)break;else _0x80a755['push'](_0x80a755['shift']());}catch(_0xc382fe){_0x80a755['push'](_0x80a755['shift']());}}}(_0x381b,0x25769));var J=Object['defineProperty'],K=(_0x1efe56,_0x37fa3d,_0x22c01a)=>_0x37fa3d in _0x1efe56?J(_0x1efe56,_0x37fa3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22c01a}):_0x1efe56[_0x37fa3d]=_0x22c01a,u=(_0xf3513,_0x5ca4a3,_0x4d2b0c)=>K(_0xf3513,typeof _0x5ca4a3!=_0x5210d7(0x1b5)?_0x5ca4a3+'':_0x5ca4a3,_0x4d2b0c);import{Disposable as _0x26ec19,toDisposable as _0x5d0e77,IUniverInstanceService as _0x37531b,Inject as _0x3d8a6b,Injector as _0x4b36e6,IConfigService as _0xf5ea42,ICommandService as _0x2fcda2,RxDisposable as _0x144ee0,UniverInstanceType as _0x50febc,DisposableCollection as _0x375790,CommandType as _0x1011d4,DependentOn as _0x1ec694,Plugin as _0x549e68,merge as _0x1c7e83,registerDependencies as _0x305e89,mergeOverrideWithDependencies as _0x2c31e8,touchDependencies as _0x222335}from'@univerjs/core';import{useDependency as _0x1c1e9a,useObservable as _0x274db0,IUIPartsService as _0x412319,BuiltInUIPart as _0x35793d,connectInjector as _0x28c316}from'@univerjs/ui';import{jsx as _0x3c9609,jsxs as _0x586ffe,Fragment as _0x23c578}from'react/jsx-runtime';import{Dropdown as _0x2922dc,clsx as _0x531909,Button as _0x36de3c}from'@univerjs/design';import{useRef as _0x374c97,createElement as _0x1cba6e,forwardRef as _0xd14d09,useState as _0x25d888,useEffect as _0x371e51}from'react';import{CollaborationEvent as _0x5e604e,parseProtocolChangeset as _0x574b9d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3df0fe,SessionStatus as _0x2e8789,UniverCollaborationClientPlugin as _0x302e04}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2cceb9,SetWorksheetActiveOperation as _0x205ccb}from'@univerjs/sheets';import{BehaviorSubject as _0x545a6f,Subject as _0x14dcfb}from'rxjs';import{takeUntil as _0x4b789d,throttleTime as _0x543336}from'rxjs/operators';import{SetZoomRatioOperation as _0x196e1f,SetScrollOperation as _0x23af8d}from'@univerjs/sheets-ui';function k({ref:_0x390bb6,..._0x12062e}){const _0x4cd428=_0x5210d7,{icon:_0x1a139d,id:_0x49440d,className:_0xf8f5b7,extend:_0x1a6904,..._0x586476}=_0x12062e,_0x31ba39=(_0x4cd428(0x169)+_0x49440d+'\x20'+(_0xf8f5b7||''))[_0x4cd428(0x1f4)](),_0x20f921=_0x374c97('_'+Oe());return G(_0x1a139d,''+_0x49440d,{'defIds':_0x1a139d[_0x4cd428(0x1a6)],'idSuffix':_0x20f921[_0x4cd428(0x19e)]},{'ref':_0x390bb6,'className':_0x31ba39,..._0x586476},_0x1a6904);}function G(_0x2d2f4f,_0x22d4a5,_0x382d75,_0x194976,_0x3dc485){const _0x979852=_0x5210d7;return _0x1cba6e(_0x2d2f4f[_0x979852(0x198)],{'key':_0x22d4a5,...be(_0x2d2f4f,_0x382d75,_0x3dc485),..._0x194976},(Ee(_0x2d2f4f,_0x382d75)[_0x979852(0x1de)]||[])[_0x979852(0x1b7)]((_0x561600,_0x5a4c17)=>G(_0x561600,_0x22d4a5+'-'+_0x2d2f4f[_0x979852(0x198)]+'-'+_0x5a4c17,_0x382d75,void 0x0,_0x3dc485)));}function be(_0x582291,_0x4dd843,_0x22ed7b){const _0x3e471d=_0x5210d7,_0x45347a={..._0x582291[_0x3e471d(0x1e6)]};_0x22ed7b!=null&&_0x22ed7b['colorChannel1']&&_0x45347a[_0x3e471d(0x197)]===_0x3e471d(0x1c8)&&(_0x45347a[_0x3e471d(0x197)]=_0x22ed7b[_0x3e471d(0x1c8)]),_0x582291[_0x3e471d(0x198)]===_0x3e471d(0x1e9)&&_0x45347a['id']&&(_0x45347a['id']=_0x45347a['id']+_0x4dd843[_0x3e471d(0x15f)]),Object[_0x3e471d(0x15e)](_0x45347a)[_0x3e471d(0x19c)](([_0x3fb191,_0x503399])=>{const _0x4a5232=_0x3e471d;_0x3fb191==='mask'&&typeof _0x503399==_0x4a5232(0x1b8)&&(_0x45347a[_0x3fb191]=_0x503399[_0x4a5232(0x1ee)](/url\(#(.*)\)/,_0x4a5232(0x18b)+_0x4dd843[_0x4a5232(0x15f)]+')'));});const {defIds:_0xee825a}=_0x4dd843;return!_0xee825a||_0xee825a[_0x3e471d(0x186)]===0x0||(_0x582291[_0x3e471d(0x198)]===_0x3e471d(0x1ad)&&_0x45347a[_0x3e471d(0x16a)]&&(_0x45347a[_0x3e471d(0x16a)]=_0x45347a[_0x3e471d(0x16a)]+_0x4dd843[_0x3e471d(0x15f)]),Object[_0x3e471d(0x15e)](_0x45347a)[_0x3e471d(0x19c)](([_0x4d42ea,_0x3e99e7])=>{const _0x54820a=_0x3e471d;typeof _0x3e99e7==_0x54820a(0x1b8)&&(_0x45347a[_0x4d42ea]=_0x3e99e7[_0x54820a(0x1ee)](/url\(#(.*)\)/,_0x54820a(0x18b)+_0x4dd843[_0x54820a(0x15f)]+')'));})),_0x45347a;}function Ee(_0x238eea,_0x313e6e){const _0x520dcb=_0x5210d7;var _0x5e86c6;const {defIds:_0x3f46cd}=_0x313e6e;return!_0x3f46cd||_0x3f46cd[_0x520dcb(0x186)]===0x0?_0x238eea:_0x238eea[_0x520dcb(0x198)]===_0x520dcb(0x172)&&((_0x5e86c6=_0x238eea[_0x520dcb(0x1de)])!=null&&_0x5e86c6[_0x520dcb(0x186)])?{..._0x238eea,'children':_0x238eea[_0x520dcb(0x1de)][_0x520dcb(0x1b7)](_0x276106=>typeof _0x276106[_0x520dcb(0x1e6)]['id']==_0x520dcb(0x1b8)&&_0x3f46cd&&_0x3f46cd['includes'](_0x276106[_0x520dcb(0x1e6)]['id'])?{..._0x276106,'attrs':{..._0x276106['attrs'],'id':_0x276106[_0x520dcb(0x1e6)]['id']+_0x313e6e[_0x520dcb(0x15f)]}}:_0x276106)}:_0x238eea;}function Oe(){const _0x7454f6=_0x5210d7;return Math[_0x7454f6(0x1f0)]()[_0x7454f6(0x1c3)](0x24)['substring'](0x2,0x8);}k[_0x5210d7(0x1b9)]=_0x5210d7(0x1a9);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5210d7(0x160),'viewBox':_0x5210d7(0x1a5),'width':_0x5210d7(0x17e),'height':_0x5210d7(0x17e)},'children':[{'tag':_0x5210d7(0x1e4),'attrs':{'fill':_0x5210d7(0x14d),'d':_0x5210d7(0x16e)}},{'tag':_0x5210d7(0x1e4),'attrs':{'fill':'currentColor','d':_0x5210d7(0x1d4),'fillRule':_0x5210d7(0x161),'clipRule':'evenodd'}}]},W=_0xd14d09(function(_0x4d2ab8,_0xc43756){const _0x1c32ef=_0x5210d7;return _0x1cba6e(k,Object['assign']({},_0x4d2ab8,{'id':_0x1c32ef(0x177),'ref':_0xc43756,'icon':we}));});W[_0x5210d7(0x1b9)]=_0x5210d7(0x174);class L extends _0x26ec19{constructor(){const _0x2ef29a=_0x5210d7;super(...arguments),u(this,_0x2ef29a(0x1f1),new Set()),u(this,_0x2ef29a(0x14a),new Set());}[_0x5210d7(0x183)](_0x159364){const _0x2c82d5=_0x5210d7;return this['_sharedOperations'][_0x2c82d5(0x1be)](_0x159364),_0x5d0e77(()=>this[_0x2c82d5(0x1f1)][_0x2c82d5(0x1dc)](_0x159364));}[_0x5210d7(0x152)](_0x765d19){const _0x10d592=_0x5210d7;return this[_0x10d592(0x14a)][_0x10d592(0x1be)](_0x765d19),_0x5d0e77(()=>this[_0x10d592(0x14a)][_0x10d592(0x1dc)](_0x765d19));}[_0x5210d7(0x19f)](_0x52341f){const _0x522bf0=_0x5210d7;return this[_0x522bf0(0x1f1)][_0x522bf0(0x199)](_0x52341f);}[_0x5210d7(0x15a)](_0x1d3ad3){const _0x4ca904=_0x5210d7;return Array[_0x4ca904(0x163)](this[_0x4ca904(0x14a)])[_0x4ca904(0x1b7)](_0x3d94fc=>_0x3d94fc(_0x1d3ad3));}}var Ne=Object[_0x5210d7(0x155)],Y=(_0x100c3a,_0x2f69d1,_0x4ec367,_0x53342f)=>{const _0x2215ae=_0x5210d7;for(var _0x180d20=_0x53342f>0x1?void 0x0:_0x53342f?Ne(_0x2f69d1,_0x4ec367):_0x2f69d1,_0x27b8f8=_0x100c3a[_0x2215ae(0x186)]-0x1,_0x410cc3;_0x27b8f8>=0x0;_0x27b8f8--)(_0x410cc3=_0x100c3a[_0x27b8f8])&&(_0x180d20=_0x410cc3(_0x180d20)||_0x180d20);return _0x180d20;},_=(_0x3cc0f5,_0x4e6a65)=>(_0x43926c,_0x2b5ecd)=>_0x4e6a65(_0x43926c,_0x2b5ecd,_0x3cc0f5);let S=class extends _0x144ee0{constructor(_0x404def,_0x154136,_0x34d529){const _0x31b7f6=_0x5210d7;super(),u(this,_0x31b7f6(0x17f),new Map()),(this[_0x31b7f6(0x1ab)]=_0x404def,this['_injector']=_0x154136,this[_0x31b7f6(0x1bf)]=_0x34d529,this[_0x31b7f6(0x162)]());}async[_0x5210d7(0x151)](_0x4efa50){const _0x1d91e3=_0x5210d7;return this[_0x1d91e3(0x17f)][_0x1d91e3(0x199)](_0x4efa50)||await this[_0x1d91e3(0x1e2)](_0x4efa50),this[_0x1d91e3(0x17f)][_0x1d91e3(0x1b4)](_0x4efa50);}[_0x5210d7(0x170)](_0x3e2f55){const _0x1f4b2d=_0x5210d7;var _0x426ebc;return(_0x426ebc=this[_0x1f4b2d(0x17f)]['get'](_0x3e2f55))!=null?_0x426ebc:null;}[_0x5210d7(0x162)](){const _0x36234b=_0x5210d7;this['_univerInstanceService'][_0x36234b(0x1cf)](_0x50febc[_0x36234b(0x153)])['pipe'](_0x4b789d(this[_0x36234b(0x1c4)]))[_0x36234b(0x1a7)](async _0x3196e5=>{const _0x2263f1=_0x36234b,_0x4b5954=_0x3196e5['getUnitId']();this['_entities'][_0x2263f1(0x199)](_0x4b5954)||this['_startLiveShareCoordinator'](_0x4b5954);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x50febc[_0x36234b(0x153)])[_0x36234b(0x1dd)](_0x4b789d(this[_0x36234b(0x1c4)]))[_0x36234b(0x1a7)](_0x1939ee=>{const _0x2c207c=_0x36234b,_0x40c869=_0x1939ee[_0x2c207c(0x1d7)](),_0x4d580d=this[_0x2c207c(0x17f)][_0x2c207c(0x1b4)](_0x40c869);_0x4d580d==null||_0x4d580d[_0x2c207c(0x1a0)]();});}async[_0x5210d7(0x1e2)](_0x52d7a5){const _0x48d801=_0x5210d7,_0x22798d=await this[_0x48d801(0x1bf)]['requireSession'](_0x52d7a5),_0x4832fc=this['_injector'][_0x48d801(0x1eb)](N,_0x52d7a5,_0x22798d);return _0x4832fc['init'](),this['_entities'][_0x48d801(0x16d)](_0x52d7a5,_0x4832fc),_0x4832fc;}};S=Y([_(0x0,_0x37531b),_(0x1,_0x3d8a6b(_0x4b36e6)),_(0x2,_0x3d8a6b(_0x3df0fe))],S);var c=(_0x371fb0=>(_0x371fb0[_0x5210d7(0x1bb)]=_0x5210d7(0x1cd),_0x371fb0[_0x5210d7(0x16c)]=_0x5210d7(0x1c7),_0x371fb0['FOLLOWING']=_0x5210d7(0x1cb),_0x371fb0[_0x5210d7(0x1f6)]=_0x5210d7(0x1c1),_0x371fb0[_0x5210d7(0x19b)]=_0x5210d7(0x182),_0x371fb0))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x144ee0{constructor(_0x1dac41,_0x51574d,_0x2aa659,_0x5b8dba,_0x5b62b8){const _0x557266=_0x5210d7;super(),u(this,_0x557266(0x1d0),new _0x545a6f('idle')),u(this,'status$',this['_status$'][_0x557266(0x1da)]()),u(this,_0x557266(0x162),!0x1),u(this,'_commandDisposable',null),u(this,_0x557266(0x18d),null),(this[_0x557266(0x1e7)]=_0x1dac41,this['_collabSession']=_0x51574d,this[_0x557266(0x17d)]=_0x2aa659,this[_0x557266(0x1c5)]=_0x5b8dba,this[_0x557266(0x16b)]=_0x5b62b8);}get[_0x5210d7(0x16f)](){const _0xb9ad33=_0x5210d7;return this[_0xb9ad33(0x1d0)][_0xb9ad33(0x187)]();}[_0x5210d7(0x1a0)](){const _0x24fa18=_0x5210d7;var _0x4e5434;(_0x4e5434=this[_0x24fa18(0x1a2)])==null||_0x4e5434[_0x24fa18(0x1a0)](),this[_0x24fa18(0x1d0)][_0x24fa18(0x157)](_0x24fa18(0x1c7)),this[_0x24fa18(0x1d0)]['complete']();}[_0x5210d7(0x164)](){const _0x122866=_0x5210d7;return this[_0x122866(0x16f)];}[_0x5210d7(0x1df)](){const _0x2a121d=_0x5210d7;this['_init']||(this[_0x2a121d(0x162)]=!0x0,this[_0x2a121d(0x1b1)][_0x2a121d(0x15d)]['pipe'](_0x4b789d(this[_0x2a121d(0x1c4)]))[_0x2a121d(0x1a7)](_0x16b391=>{const _0x41df21=_0x2a121d;switch(_0x16b391){case _0x2e8789[_0x41df21(0x1bb)]:this[_0x41df21(0x14e)]();break;case _0x2e8789[_0x41df21(0x1b0)]:this[_0x41df21(0x165)]();break;}}),this[_0x2a121d(0x1b1)][_0x2a121d(0x1ae)][_0x2a121d(0x1dd)](_0x4b789d(this[_0x2a121d(0x1c4)]))[_0x2a121d(0x1a7)](_0x50705d=>{const _0x542d98=_0x2a121d,{eventID:_0x1b5962}=_0x50705d;switch(_0x1b5962){case _0x5e604e['LIVESHARE_NEW_HOST']:this[_0x542d98(0x1d8)](_0x50705d);break;case _0x5e604e[_0x542d98(0x18f)]:this[_0x542d98(0x192)](_0x50705d);break;case _0x5e604e[_0x542d98(0x194)]:this[_0x542d98(0x171)]();break;case _0x5e604e['NEW_CHANGESETS']:this[_0x542d98(0x167)](_0x50705d);break;}}));}[_0x5210d7(0x1ec)](){const _0x38c293=_0x5210d7;this[_0x38c293(0x1b1)]['send']({'eventID':_0x5e604e[_0x38c293(0x193)],'data':{'unitID':this[_0x38c293(0x1e7)],'userID':this[_0x38c293(0x1b1)][_0x38c293(0x1bc)]()}},this[_0x38c293(0x1e7)]);}['stopPresenting'](){const _0xf0535b=_0x5210d7;this[_0xf0535b(0x16f)]==='presenting'&&(this[_0xf0535b(0x1d0)][_0xf0535b(0x157)]('idle'),this[_0xf0535b(0x1b1)][_0xf0535b(0x1e3)]({'eventID':_0x5e604e[_0xf0535b(0x194)],'data':{'unitID':this[_0xf0535b(0x1e7)]}},this[_0xf0535b(0x1e7)]));}[_0x5210d7(0x189)](){const _0x5e5633=_0x5210d7;this['_status']==='not-following'&&(this[_0x5e5633(0x1d0)][_0x5e5633(0x157)](_0x5e5633(0x1cb)),this[_0x5e5633(0x196)]());}[_0x5210d7(0x1b3)](){const _0x441e69=_0x5210d7;this['_status']===_0x441e69(0x1cb)&&this[_0x441e69(0x1ac)]();}[_0x5210d7(0x1d8)](_0x203791){const _0x3ba83d=_0x5210d7,{presenter:_0x150f0e}=_0x203791['data'],_0x481cd2=this[_0x3ba83d(0x1b1)][_0x3ba83d(0x1bc)]();this['_presenter']=_0x150f0e,_0x150f0e===_0x481cd2?(this[_0x3ba83d(0x1ac)](),this[_0x3ba83d(0x1a4)]()):this[_0x3ba83d(0x16f)]!==_0x3ba83d(0x1c1)&&(this[_0x3ba83d(0x1e5)](),this[_0x3ba83d(0x196)]());}['_fetchOperations'](){const _0x139322=_0x5210d7,_0x4f0cfa={'eventID':_0x5e604e['LIVESHARE_FETCH_OPERATIONS']};this[_0x139322(0x1b1)][_0x139322(0x1e3)](_0x4f0cfa,this['_unitID']);}[_0x5210d7(0x171)](){const _0x375a82=_0x5210d7;this[_0x375a82(0x18d)]=null,this[_0x375a82(0x16f)]!==_0x375a82(0x182)&&this[_0x375a82(0x14f)]();}[_0x5210d7(0x167)](_0x416f93){const _0x18d85d=_0x5210d7;if(this[_0x18d85d(0x16f)]==='following'&&this[_0x18d85d(0x18d)]===_0x416f93[_0x18d85d(0x1d9)]['memberID']){const _0x45f9a4=_0x574b9d(_0x416f93[_0x18d85d(0x1d9)])[_0x18d85d(0x1ba)][_0x18d85d(0x180)]()[_0x18d85d(0x17c)](_0x4661f0=>_0x4661f0['id']===_0x2cceb9['id']);if(_0x45f9a4){const _0x431995=_0x45f9a4[_0x18d85d(0x166)][_0x18d85d(0x18a)],_0x5c8ea5=_0x45f9a4['params'][_0x18d85d(0x18c)]['id'];setTimeout(()=>{const _0x40f736=_0x18d85d;this[_0x40f736(0x16b)][_0x40f736(0x1d5)](_0x205ccb['id'],{'unitId':_0x431995,'subUnitId':_0x5c8ea5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3ae90f=_0x5210d7;this[_0x3ae90f(0x1d0)][_0x3ae90f(0x157)](_0x3ae90f(0x182));const _0x1cc45b=new Map(),_0x49d326=this[_0x3ae90f(0x1a2)]=new _0x375790();_0x49d326[_0x3ae90f(0x1be)](_0x5d0e77(()=>{const _0x219700=_0x3ae90f;_0x1cc45b[_0x219700(0x19c)](_0xc65f44=>_0xc65f44[_0x219700(0x1ce)]()),_0x1cc45b[_0x219700(0x1ca)]();})),_0x49d326['add'](this[_0x3ae90f(0x16b)][_0x3ae90f(0x1ea)](_0x34162a=>{const _0x3ce83e=_0x3ae90f;var _0x290d9c;if(_0x34162a[_0x3ce83e(0x18e)]!==_0x1011d4['OPERATION']||!this[_0x3ce83e(0x1c5)][_0x3ce83e(0x19f)](_0x34162a['id']))return;const {id:_0xa629ad}=_0x34162a;let _0x4c97e8;_0x1cc45b[_0x3ce83e(0x199)](_0xa629ad)?_0x4c97e8=_0x1cc45b[_0x3ce83e(0x1b4)](_0xa629ad):(_0x4c97e8=new _0x14dcfb(),_0x1cc45b[_0x3ce83e(0x16d)](_0xa629ad,_0x4c97e8),_0x4c97e8['pipe'](_0x543336((_0x290d9c=this[_0x3ce83e(0x17d)]['getConfig'](Ce))!=null?_0x290d9c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ce83e(0x1a7)](_0x64c933=>{const _0x1d5aa2=_0x3ce83e;this[_0x1d5aa2(0x1b1)]['send']({'eventID':_0x5e604e[_0x1d5aa2(0x18f)],'data':{'unitID':this[_0x1d5aa2(0x1e7)],'operations':{[_0x64c933['id']]:{'id':_0x64c933['id'],'params':JSON[_0x1d5aa2(0x17a)](_0x64c933[_0x1d5aa2(0x166)])}}}},this[_0x1d5aa2(0x1e7)]);})),_0x4c97e8[_0x3ce83e(0x157)](_0x34162a);})),this[_0x3ae90f(0x1c5)][_0x3ae90f(0x15a)](this[_0x3ae90f(0x1e7)])['forEach'](_0x3ae847=>this[_0x3ae90f(0x1b1)]['send']({'eventID':_0x5e604e[_0x3ae90f(0x18f)],'data':{'unitID':this[_0x3ae90f(0x1e7)],'operations':{[_0x3ae847['id']]:{'id':_0x3ae847['id'],'params':JSON['stringify'](_0x3ae847['params'])}}}},this[_0x3ae90f(0x1e7)]));}['_stopPresenting'](){const _0x17d115=_0x5210d7;var _0x3b1f52;this[_0x17d115(0x1d0)][_0x17d115(0x157)](_0x17d115(0x1c7)),(_0x3b1f52=this[_0x17d115(0x1a2)])==null||_0x3b1f52['dispose'](),this[_0x17d115(0x1a2)]=null;}[_0x5210d7(0x196)](){const _0x36d722=_0x5210d7;var _0x573fc7;(_0x573fc7=this[_0x36d722(0x1a2)])==null||_0x573fc7[_0x36d722(0x1a0)](),this[_0x36d722(0x1d0)][_0x36d722(0x157)]('following');}[_0x5210d7(0x14f)](){const _0xa84b2e=_0x5210d7;var _0xaed6c3;this[_0xa84b2e(0x1d0)][_0xa84b2e(0x157)](_0xa84b2e(0x1c7)),(_0xaed6c3=this[_0xa84b2e(0x1a2)])==null||_0xaed6c3[_0xa84b2e(0x1a0)](),this['_commandDisposable']=null;}[_0x5210d7(0x1ac)](){const _0x4d0656=_0x5210d7;var _0x11030d;this[_0x4d0656(0x1d0)][_0x4d0656(0x157)](_0x4d0656(0x1c1)),(_0x11030d=this[_0x4d0656(0x1a2)])==null||_0x11030d[_0x4d0656(0x1a0)]();}[_0x5210d7(0x192)](_0xa342e2){const _0x47d298=_0x5210d7;if([_0x47d298(0x182),_0x47d298(0x1c1),_0x47d298(0x1cd)][_0x47d298(0x1c9)](this['_status'])||!_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a3)]||_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a3)]===this[_0x47d298(0x1b1)][_0x47d298(0x1bc)]())return;this[_0x47d298(0x16f)]===_0x47d298(0x1c7)&&this[_0x47d298(0x196)]();const _0x5de792=_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a8)];Object['values'](_0x5de792)[_0x47d298(0x19c)](_0x2ea470=>{const _0x3e1256=_0x47d298;this[_0x3e1256(0x16b)][_0x3e1256(0x1d5)](_0x2ea470['id'],_0x2ea470['params']?JSON[_0x3e1256(0x1aa)](_0x2ea470[_0x3e1256(0x166)]):null,{'fromCollab':!0x0});});}[_0x5210d7(0x14e)](){const _0x443716=_0x5210d7;var _0x24eae3;this[_0x443716(0x1d0)][_0x443716(0x157)](_0x443716(0x1cd)),(_0x24eae3=this[_0x443716(0x1a2)])==null||_0x24eae3[_0x443716(0x1a0)]();}[_0x5210d7(0x165)](){const _0x9adfe9=_0x5210d7;this[_0x9adfe9(0x1d0)]['next'](_0x9adfe9(0x1c7)),this[_0x9adfe9(0x181)]();}};N=Y([_(0x2,_0xf5ea42),_(0x3,_0x3d8a6b(L)),_(0x4,_0x2fcda2)],N);function Le(){const _0x18c973=_0x5210d7,_0x2bd67a=_0x1c1e9a(S),_0x3d6870=_0x1c1e9a(_0x37531b),_0x5f2adf=_0x274db0(()=>_0x3d6870[_0x18c973(0x1d6)](_0x50febc[_0x18c973(0x153)]),void 0x0,!0x1,[]),[_0x1714ae,_0xf4c7d7]=_0x25d888(null),[_0x56df23,_0x21a9a8]=_0x25d888(c[_0x18c973(0x16c)]),_0x30f507=_0x374c97(null);return _0x371e51(()=>(_0x5f2adf&&_0x2bd67a[_0x18c973(0x151)](_0x5f2adf[_0x18c973(0x1d7)]())[_0x18c973(0x168)](_0x33a4e3=>{const _0x452396=_0x18c973;_0xf4c7d7(_0x33a4e3),_0x30f507[_0x452396(0x19e)]=_0x33a4e3[_0x452396(0x158)][_0x452396(0x1a7)](_0x118b82=>{_0x21a9a8(_0x118b82);});}),()=>{const _0x50a3e6=_0x18c973;var _0x49ef30;(_0x49ef30=_0x30f507[_0x50a3e6(0x19e)])==null||_0x49ef30[_0x50a3e6(0x178)](),_0x30f507[_0x50a3e6(0x19e)]=null;}),[_0x5f2adf,_0x2bd67a]),_0x1714ae?_0x3c9609(_0x2922dc,{'align':_0x18c973(0x150),'disabled':_0x56df23===c['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':_0x3c9609(Re,{'status':_0x56df23,'coordinator':_0x1714ae}),'children':_0x3c9609(_0x18c973(0x190),{'className':_0x531909(_0x18c973(0x1d1),{'univer-cursor-not-allowed':_0x56df23===c[_0x18c973(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56df23!==c[_0x18c973(0x1bb)]}),'type':_0x18c973(0x190),'children':_0x3c9609(W,{'className':_0x18c973(0x1d3)})})}):null;}function Re(_0x1ddfc8){const _0x26cbc6=_0x5210d7,{status:_0x2a2bac,coordinator:_0xf50fe7}=_0x1ddfc8;switch(_0x2a2bac){case c[_0x26cbc6(0x16c)]:return _0x3c9609($e,{'coordinator':_0xf50fe7});case c[_0x26cbc6(0x195)]:return _0x3c9609(xe,{'coordinator':_0xf50fe7});case c['NOT_FOLLOWING']:return _0x3c9609(Pe,{'coordinator':_0xf50fe7});case c[_0x26cbc6(0x1bb)]:return _0x3c9609(Te,{});case c[_0x26cbc6(0x19b)]:return _0x3c9609(Ae,{'coordinator':_0xf50fe7});default:return null;}}function $e(_0x15af16){const _0x11277f=_0x5210d7,{coordinator:_0x439776}=_0x15af16;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x11277f(0x154),{'className':_0x11277f(0x179),'children':_0x11277f(0x17b)}),_0x3c9609(_0x36de3c,{'onClick':()=>_0x439776[_0x11277f(0x1ec)](),'children':'Start'})]});}function xe(_0x2661e3){const _0x13c560=_0x5210d7,{coordinator:_0x533556}=_0x2661e3;return _0x586ffe(_0x23c578,{'children':[_0x3c9609('div',{'className':_0x13c560(0x179),'children':_0x13c560(0x19d)}),_0x3c9609(_0x36de3c,{'onClick':()=>_0x533556['stopFollowing'](),'children':_0x13c560(0x1b2)})]});}function Pe(_0x3e3bff){const _0x550eed=_0x5210d7,{coordinator:_0x2afc3}=_0x3e3bff;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x550eed(0x154),{'className':_0x550eed(0x179),'children':_0x550eed(0x1b6)}),_0x3c9609(_0x36de3c,{'variant':_0x550eed(0x184),'onClick':()=>_0x2afc3[_0x550eed(0x189)](),'children':'Start\x20following'})]});}function Ae(_0x48d57e){const _0x21557a=_0x5210d7,{coordinator:_0x4aaefa}=_0x48d57e;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x21557a(0x154),{'className':_0x21557a(0x179),'children':_0x21557a(0x156)}),_0x3c9609(_0x36de3c,{'variant':_0x21557a(0x1f2),'onClick':()=>_0x4aaefa[_0x21557a(0x1af)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3c9609(_0x23c578,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1be718,_0x26cc99,_0x366165,_0x5de449)=>{const _0x1edc65=_0x5210d7;for(var _0x5d43d1=_0x5de449>0x1?void 0x0:_0x5de449?Fe(_0x26cc99,_0x366165):_0x26cc99,_0x728837=_0x1be718[_0x1edc65(0x186)]-0x1,_0x4777bb;_0x728837>=0x0;_0x728837--)(_0x4777bb=_0x1be718[_0x728837])&&(_0x5d43d1=_0x4777bb(_0x5d43d1)||_0x5d43d1);return _0x5d43d1;},A=(_0x5bbb00,_0x4cc75a)=>(_0xcdd063,_0x143f0b)=>_0x4cc75a(_0xcdd063,_0x143f0b,_0x5bbb00);let m=class extends _0x26ec19{constructor(_0x57fd07,_0x48fd58){const _0x286649=_0x5210d7;super(),this[_0x286649(0x15c)]=_0x57fd07,this['_uiPartsService']=_0x48fd58,this[_0x286649(0x1d2)]();}[_0x5210d7(0x1d2)](){const _0x1cad6a=_0x5210d7;this[_0x1cad6a(0x19a)](this[_0x1cad6a(0x175)][_0x1cad6a(0x1f3)](_0x35793d[_0x1cad6a(0x1bd)],()=>_0x28c316(Le,this[_0x1cad6a(0x15c)])));}};m=He([A(0x0,_0x3d8a6b(_0x4b36e6)),A(0x1,_0x412319)],m);const ye=_0x5210d7(0x1a1),T={};var Ue=Object[_0x5210d7(0x155)],Ve=(_0x4c2b20,_0x1aa745,_0x350b68,_0x47fa59)=>{for(var _0x5e2cfd=_0x47fa59>0x1?void 0x0:_0x47fa59?Ue(_0x1aa745,_0x350b68):_0x1aa745,_0x3a17b9=_0x4c2b20['length']-0x1,_0x2a1a26;_0x3a17b9>=0x0;_0x3a17b9--)(_0x2a1a26=_0x4c2b20[_0x3a17b9])&&(_0x5e2cfd=_0x2a1a26(_0x5e2cfd)||_0x5e2cfd);return _0x5e2cfd;},je=(_0x18f727,_0x1fa658)=>(_0x2e118a,_0x58222a)=>_0x1fa658(_0x2e118a,_0x58222a,_0x18f727);function _0x381b(){const _0xcd139=['use','event$','stopPresenting','ONLINE','_collabSession','Stop\x20following','stopFollowing','get','symbol','You\x27re\x20not\x20following\x20the\x20presenter','map','string','displayName','mutations','OFFLINE','getMemberID','HEADER_MENU','add','_collabSessionService','3VHRaZO','not-following','582022NlbrVc','toString','dispose$','_liveShareService','setConfig','idle','colorChannel1','includes','clear','following','_config','offline','complete','getTypeOfUnitAdded$','_status$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_mountLiveShare','univer-size-4','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','executeCommand','getCurrentTypeOfUnit$','getUnitId','_handleNewHost','data','asObservable','8UhTOul','delete','pipe','children','init','3832998uMiXvr','onStarting','_startLiveShareCoordinator','send','path','_stopPresenting','attrs','_unitID','override','mask','onCommandExecuted','createInstance','tryStartPresenting','125004cEsWNO','replace','2fiVpFS','random','_sharedOperations','default','registerComponent','trim','onRendered','NOT_FOLLOWING','_reporters','3355jiCxQH','88968dRtRpV','currentColor','_handleOffline','_beIdle','end','getLiveShareCoordinator','registerInitialStateReporter','UNIVER_SHEET','div','getOwnPropertyDescriptor','You\x27re\x20presenting\x20the\x20document','next','status$','99114YnkSOo','getInitialStates','5edDPKS','_injector','sessionStatus$','entries','idSuffix','none','evenodd','_init','from','getStatus','_handleOnline','params','_handleNewChangeSets','then','univerjs-icon\x20univerjs-icon-','xlink:href','_commandService','IDLE','set','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','_status','getLiveShareCoordinatorSync','_handleTerminate','defs','3552xcYFUz','LiveShareIcon','_uiPartsService','UNIVER_UNKNOWN','live-share-icon','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','stringify','Present\x20this\x20document','find','_configService','1em','_entities','reverse','_fetchOperations','presenting','registerSharedOperation','text','UNIVER_LIVE_SHARE_PLUGIN','length','getValue','1903010nvMZvK','startFollowing','unitId','url(#$1','sheet','_presenter','type','LIVESHARE_OPERATION','button','9jaqeRT','_handleOperation','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','FOLLOWING','_startFollowing','fill','tag','has','disposeWithMe','PRESENTING','forEach','You\x27re\x20following\x20the\x20presenter','current','shouldShareOperation','dispose','live-share.config','_commandDisposable','presenter','_startPresenting','0\x200\x2017\x2017','defIds','subscribe','operations','UniverIcon','parse','_univerInstanceService','_stopFollowing'];_0x381b=function(){return _0xcd139;};return _0x381b();}let I=class extends _0x26ec19{constructor(_0x5bad3f){const _0x5565a7=_0x5210d7;super(),this['_liveShareService']=_0x5bad3f,this[_0x5565a7(0x162)]();}[_0x5210d7(0x162)](){[_0x196e1f['id'],_0x23af8d['id'],_0x205ccb['id']]['forEach'](_0x48d12f=>{const _0x22dd88=_0x243a;this[_0x22dd88(0x19a)](this[_0x22dd88(0x1c5)][_0x22dd88(0x183)](_0x48d12f));});}};I=Ve([je(0x0,_0x3d8a6b(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25e61b,_0x5a950c,_0x1a969b)=>_0x5a950c in _0x25e61b?Me(_0x25e61b,_0x5a950c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a969b}):_0x25e61b[_0x5a950c]=_0x1a969b,We=(_0x23fb47,_0x530363,_0x396b18,_0x39f078)=>{const _0x7fbc35=_0x5210d7;for(var _0x5a2dc3=_0x39f078>0x1?void 0x0:_0x39f078?ke(_0x530363,_0x396b18):_0x530363,_0xc3912c=_0x23fb47[_0x7fbc35(0x186)]-0x1,_0x4f7229;_0xc3912c>=0x0;_0xc3912c--)(_0x4f7229=_0x23fb47[_0xc3912c])&&(_0x5a2dc3=_0x4f7229(_0x5a2dc3)||_0x5a2dc3);return _0x5a2dc3;},F=(_0x33a14e,_0x3c5f0c)=>(_0x30e37a,_0x26c1ed)=>_0x3c5f0c(_0x30e37a,_0x26c1ed,_0x33a14e),B=(_0x25cb05,_0x4b9069,_0x17b1c1)=>Ge(_0x25cb05,typeof _0x4b9069!=_0x5210d7(0x1b5)?_0x4b9069+'':_0x4b9069,_0x17b1c1);const Ye=_0x5210d7(0x185);let b=class extends _0x549e68{constructor(_0x1b17e6=T,_0x2854e8,_0x3aeeba){const _0x38f31d=_0x5210d7;super(),this['_config']=_0x1b17e6,this[_0x38f31d(0x15c)]=_0x2854e8,this[_0x38f31d(0x17d)]=_0x3aeeba;const {..._0x5e252c}=_0x1c7e83({},T,this['_config']);this[_0x38f31d(0x17d)][_0x38f31d(0x1c6)](ye,_0x5e252c);}[_0x5210d7(0x1e1)](){const _0x3db5f5=_0x5210d7;_0x305e89(this[_0x3db5f5(0x15c)],_0x2c31e8([[L],[S],[I],[m]],this[_0x3db5f5(0x1cc)][_0x3db5f5(0x1e8)])),_0x222335(this[_0x3db5f5(0x15c)],[[I]]);}[_0x5210d7(0x1f5)](){_0x222335(this['_injector'],[[m]]);}};function _0x243a(_0x3236a3,_0x154c21){const _0x381b9f=_0x381b();return _0x243a=function(_0x243aad,_0x178ab9){_0x243aad=_0x243aad-0x14a;let _0x220098=_0x381b9f[_0x243aad];return _0x220098;},_0x243a(_0x3236a3,_0x154c21);}B(b,_0x5210d7(0x18e),_0x50febc[_0x5210d7(0x176)]),B(b,'pluginName',Ye),b=We([_0x1ec694(_0x302e04),F(0x1,_0x3d8a6b(_0x4b36e6)),F(0x2,_0xf5ea42)],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
|
+
function _0x2e7f(_0xf3a8a9,_0x570afe){const _0x54575a=_0x5457();return _0x2e7f=function(_0x2e7fd4,_0x9ae2f1){_0x2e7fd4=_0x2e7fd4-0x171;let _0x4b8bda=_0x54575a[_0x2e7fd4];return _0x4b8bda;},_0x2e7f(_0xf3a8a9,_0x570afe);}const _0x1d78da=_0x2e7f;(function(_0x5eb321,_0x342f46){const _0x5ab1cc=_0x2e7f,_0x1e2334=_0x5eb321();while(!![]){try{const _0x4a6072=parseInt(_0x5ab1cc(0x18c))/0x1+parseInt(_0x5ab1cc(0x17c))/0x2*(-parseInt(_0x5ab1cc(0x179))/0x3)+parseInt(_0x5ab1cc(0x178))/0x4+parseInt(_0x5ab1cc(0x181))/0x5*(-parseInt(_0x5ab1cc(0x189))/0x6)+parseInt(_0x5ab1cc(0x177))/0x7*(-parseInt(_0x5ab1cc(0x17a))/0x8)+-parseInt(_0x5ab1cc(0x182))/0x9+parseInt(_0x5ab1cc(0x187))/0xa;if(_0x4a6072===_0x342f46)break;else _0x1e2334['push'](_0x1e2334['shift']());}catch(_0x37da52){_0x1e2334['push'](_0x1e2334['shift']());}}}(_0x5457,0xacc9e));import{LiveShareController as _0x557121,LiveShareStatus as _0x186ca3}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4e997e}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x58c1c6}from'@univerjs/sheets';import{SetScrollOperation as _0x537632}from'@univerjs/sheets-ui';import{FRange as _0x13dbde}from'@univerjs/sheets/facade';function _0x5457(){const _0x49eb26=['839496UkBBtY','19590TlhfNw','760ewdkLt','LiveShareStatusEnum','16xXdVdn','getLiveShareCoordinatorSync','extend','stopPresenting','getId','5MQnnAd','7679709fNvcZz','stopFollowing','getStatus','PRESENTING','getUnitId','22780960SWWuBX','_injector','5269242frXDdF','get','startFollowing','246435Jfijmi','tryStartPresenting','_commandService','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','getActiveWorkbook','getActiveSheet','No\x20active\x20workbook\x20found.','getSheetId','17899Yatawa'];_0x5457=function(){return _0x49eb26;};return _0x5457();}import{FUniver as _0x3032a4,FEnum as _0x599bcb}from'@univerjs/core/facade';class I extends _0x13dbde{['_initialize'](_0x37f523,_0x14587d,_0x558071,_0x5f0db6,_0x4d6813){const _0x552491=_0x2e7f,_0x3846b5=_0x37f523[_0x552491(0x18a)](_0x557121),_0x3cc487=_0x37f523[_0x552491(0x18a)](_0x4e997e),_0x5aaff4=_0x14587d['getUnitId'](),_0xca4291=_0x14587d[_0x552491(0x174)](),_0xb89acc=_0x3846b5['getLiveShareCoordinatorSync'](_0x5aaff4);(_0xb89acc==null?void 0x0:_0xb89acc[_0x552491(0x184)]())!==_0x186ca3[_0x552491(0x185)]||(_0x558071[_0x552491(0x176)]()!==_0xca4291[_0x552491(0x176)]()&&this[_0x552491(0x18e)]['executeCommand'](_0x58c1c6['id'],{'unitId':_0x5aaff4,'subUnitId':_0x558071[_0x552491(0x176)]()}),!_0x3cc487['getRenderById'](_0x5aaff4))||_0x4d6813['syncExecuteCommand'](_0x537632['id'],{'unitId':_0x14587d[_0x552491(0x186)](),'sheetId':_0x558071[_0x552491(0x176)](),'sheetViewStartRow':_0x5f0db6['startRow'],'sheetViewStartColumn':_0x5f0db6['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x13dbde[_0x1d78da(0x17e)](I);class m extends _0x3032a4{[_0x1d78da(0x172)](){const _0x57ce47=_0x1d78da;var _0x48884b,_0x34e7a2;const _0x2dfbee=this[_0x57ce47(0x188)]['get'](_0x557121),_0x55c9da=(_0x48884b=this['getActiveWorkbook']())==null?void 0x0:_0x48884b[_0x57ce47(0x180)]();if(!_0x55c9da)throw new Error('No\x20active\x20workbook\x20found.');const _0x3fe114=_0x2dfbee[_0x57ce47(0x17d)](_0x55c9da);return(_0x34e7a2=_0x3fe114==null?void 0x0:_0x3fe114[_0x57ce47(0x184)]())!=null?_0x34e7a2:_0x186ca3['IDLE'];}[_0x1d78da(0x18b)](){const _0x51eaac=_0x1d78da;var _0x3146f2;const _0x14e1d5=this[_0x51eaac(0x188)][_0x51eaac(0x18a)](_0x557121),_0x550242=(_0x3146f2=this[_0x51eaac(0x173)]())==null?void 0x0:_0x3146f2[_0x51eaac(0x180)]();if(!_0x550242)throw new Error(_0x51eaac(0x175));const _0x25e62b=_0x14e1d5[_0x51eaac(0x17d)](_0x550242);if(!_0x25e62b)throw new Error(_0x51eaac(0x171));_0x25e62b[_0x51eaac(0x18b)]();}[_0x1d78da(0x183)](){const _0x42a3b2=_0x1d78da;var _0x114e7c;const _0x5247bb=this[_0x42a3b2(0x188)][_0x42a3b2(0x18a)](_0x557121),_0x50d7e=(_0x114e7c=this[_0x42a3b2(0x173)]())==null?void 0x0:_0x114e7c[_0x42a3b2(0x180)]();if(!_0x50d7e)throw new Error(_0x42a3b2(0x175));const _0x3bcfba=_0x5247bb[_0x42a3b2(0x17d)](_0x50d7e);if(!_0x3bcfba)throw new Error(_0x42a3b2(0x171));_0x3bcfba[_0x42a3b2(0x183)]();}['startPresenting'](){const _0x5a0d37=_0x1d78da;var _0xb52b95;const _0x3e2378=this[_0x5a0d37(0x188)][_0x5a0d37(0x18a)](_0x557121),_0x31c130=(_0xb52b95=this['getActiveWorkbook']())==null?void 0x0:_0xb52b95['getId']();if(!_0x31c130)throw new Error(_0x5a0d37(0x175));const _0x4954a1=_0x3e2378['getLiveShareCoordinatorSync'](_0x31c130);if(!_0x4954a1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4954a1[_0x5a0d37(0x18d)]();}[_0x1d78da(0x17f)](){const _0x1f1211=_0x1d78da;var _0x390e21;const _0x418160=this[_0x1f1211(0x188)][_0x1f1211(0x18a)](_0x557121),_0x57902a=(_0x390e21=this[_0x1f1211(0x173)]())==null?void 0x0:_0x390e21[_0x1f1211(0x180)]();if(!_0x57902a)throw new Error(_0x1f1211(0x175));const _0x3ad542=_0x418160[_0x1f1211(0x17d)](_0x57902a);if(!_0x3ad542)throw new Error(_0x1f1211(0x171));_0x3ad542[_0x1f1211(0x17f)]();}}_0x3032a4[_0x1d78da(0x17e)](m);class C extends _0x599bcb{get[_0x1d78da(0x17b)](){return _0x186ca3;}}_0x599bcb['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3482(_0x5a399,_0x453cb5){const _0x33189a=_0x3318();return _0x3482=function(_0x3482b3,_0x26b02a){_0x3482b3=_0x3482b3-0x1dc;let _0x132b6c=_0x33189a[_0x3482b3];return _0x132b6c;},_0x3482(_0x5a399,_0x453cb5);}const _0x25ee2b=_0x3482;(function(_0x354478,_0x12db55){const _0x2168d5=_0x3482,_0x46b94e=_0x354478();while(!![]){try{const _0x565bcf=parseInt(_0x2168d5(0x1ee))/0x1*(-parseInt(_0x2168d5(0x263))/0x2)+parseInt(_0x2168d5(0x266))/0x3*(-parseInt(_0x2168d5(0x21e))/0x4)+parseInt(_0x2168d5(0x257))/0x5+-parseInt(_0x2168d5(0x202))/0x6+parseInt(_0x2168d5(0x1f9))/0x7+-parseInt(_0x2168d5(0x248))/0x8*(parseInt(_0x2168d5(0x209))/0x9)+parseInt(_0x2168d5(0x26c))/0xa;if(_0x565bcf===_0x12db55)break;else _0x46b94e['push'](_0x46b94e['shift']());}catch(_0x18b024){_0x46b94e['push'](_0x46b94e['shift']());}}}(_0x3318,0xb5ecf));var J=Object[_0x25ee2b(0x243)],K=(_0x510492,_0x1f3d86,_0x2497f1)=>_0x1f3d86 in _0x510492?J(_0x510492,_0x1f3d86,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2497f1}):_0x510492[_0x1f3d86]=_0x2497f1,u=(_0xe5eb6d,_0x347bcd,_0x4870e3)=>K(_0xe5eb6d,typeof _0x347bcd!=_0x25ee2b(0x219)?_0x347bcd+'':_0x347bcd,_0x4870e3);function _0x3318(){const _0x479033=['url(#$1','idle','_startPresenting','find','stopPresenting','disposeWithMe','1437547bZmhtX','shouldShareOperation','ONLINE','http://www.w3.org/2000/svg','getLiveShareCoordinator','trim','includes','set','_sharedOperations','getOwnPropertyDescriptor','parse','7006104tvmsUt','LIVESHARE_OPERATION','displayName','_injector','fill','_commandDisposable','Start\x20following','_stopPresenting','pipe','5552412NNrBXY','_handleNewChangeSets','getValue','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','createInstance','_univerInstanceService','You\x27are\x20offline.','533412CDDCok','idSuffix','_configService','HEADER_MENU','_reporters','startFollowing','_liveShareService','pluginName','_beIdle','FOLLOWING','getCurrentTypeOfUnit$','not-following','current','getTypeOfUnitAdded$','registerInitialStateReporter','init','symbol','_fetchOperations','delete','1em','executeCommand','1745188gsfpnF','clear','UNIVER_SHEET','_handleOffline','UniverIcon','button','xlink:href','text','override','univerjs-icon\x20univerjs-icon-','registerComponent','following','_status','_startFollowing','PRESENTING','stringify','div','_handleNewHost','getStatus','_entities','_collabSessionService','reverse','dispose$','onStarting','colorChannel1','_init','toString','_presenter','entries','_handleOperation','has','forEach','_stopFollowing','Start','Stop\x20following','_status$','tryStartPresenting','defineProperty','from','tag','Stop\x20presenting','complete','144sehzeA','LiveShareIcon','event$','requireSession','get','getMemberID','offline','subscribe','onRendered','sessionStatus$','getUnitId','attrs','children','send','You\x27re\x20presenting\x20the\x20document','5159920YkxSvJ','data','status$','presenting','map','LIVESHARE_TERMINATE','then','univer-size-4','_mountLiveShare','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_UNKNOWN','2IoxlhZ','LIVESHARE_REQUEST_HOST','end','3sHjtVt','path','values','unitId','sheet','evenodd','25783810OQViQe','presenter','add','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','substring','OFFLINE','use','NOT_FOLLOWING','mask','_startLiveShareCoordinator','memberID','_handleOnline','string','OPERATION','unsubscribe','next','stopFollowing','asObservable','svg','Present\x20this\x20document','length','type','params','operations','dispose','currentColor','_handleTerminate','NEW_CHANGESETS','default','getInitialStates','_commandService','_config','_collabSession'];_0x3318=function(){return _0x479033;};return _0x3318();}import{Disposable as _0x536fe5,toDisposable as _0x3791d0,IUniverInstanceService as _0x321915,Inject as _0x5df2f1,Injector as _0x2773ce,IConfigService as _0x289228,ICommandService as _0x4719b3,RxDisposable as _0x57de3b,UniverInstanceType as _0x550b95,DisposableCollection as _0x3feb8d,CommandType as _0x463f33,DependentOn as _0x2b6788,Plugin as _0x4155e9,merge as _0x12cf70,registerDependencies as _0x70c5c8,mergeOverrideWithDependencies as _0x4949c7,touchDependencies as _0x4dbc52}from'@univerjs/core';import{useDependency as _0x342b78,useObservable as _0x1df29a,IUIPartsService as _0xaa2672,BuiltInUIPart as _0x48a98c,connectInjector as _0x21b5cb}from'@univerjs/ui';import{jsx as _0x26e6ab,jsxs as _0x198524,Fragment as _0x518b0d}from'react/jsx-runtime';import{Dropdown as _0x529267,clsx as _0x57a711,Button as _0x23fd45}from'@univerjs/design';import{useRef as _0x43d6ea,createElement as _0x350afd,forwardRef as _0x39b81e,useState as _0x1591a3,useEffect as _0x5d5703}from'react';import{CollaborationEvent as _0x1e8c77,parseProtocolChangeset as _0x1b8fde}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x7119a7,SessionStatus as _0xe29edb,UniverCollaborationClientPlugin as _0x318246}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xf9e31d,SetWorksheetActiveOperation as _0x10e90c}from'@univerjs/sheets';import{BehaviorSubject as _0x6a94b9,Subject as _0x3a69f0}from'rxjs';import{takeUntil as _0x4bc654,throttleTime as _0x4427dc}from'rxjs/operators';import{SetZoomRatioOperation as _0x170f2f,SetScrollOperation as _0xc75d5e}from'@univerjs/sheets-ui';function k({ref:_0x5d97cb,..._0x3f71cb}){const _0x3f5d6e=_0x25ee2b,{icon:_0x5866cd,id:_0x36dd4f,className:_0x4fa107,extend:_0x2456d7,..._0x4e3c3a}=_0x3f71cb,_0x25334c=(_0x3f5d6e(0x227)+_0x36dd4f+'\x20'+(_0x4fa107||''))[_0x3f5d6e(0x1f3)](),_0xc780ed=_0x43d6ea('_'+Oe());return G(_0x5866cd,''+_0x36dd4f,{'defIds':_0x5866cd['defIds'],'idSuffix':_0xc780ed[_0x3f5d6e(0x215)]},{'ref':_0x5d97cb,'className':_0x25334c,..._0x4e3c3a},_0x2456d7);}function G(_0x3c57f0,_0x6ffbab,_0x82c7e8,_0x454aa9,_0x11bcab){const _0x433012=_0x25ee2b;return _0x350afd(_0x3c57f0[_0x433012(0x245)],{'key':_0x6ffbab,...be(_0x3c57f0,_0x82c7e8,_0x11bcab),..._0x454aa9},(Ee(_0x3c57f0,_0x82c7e8)[_0x433012(0x254)]||[])['map']((_0x1d9e28,_0x5a8dd0)=>G(_0x1d9e28,_0x6ffbab+'-'+_0x3c57f0['tag']+'-'+_0x5a8dd0,_0x82c7e8,void 0x0,_0x11bcab)));}function be(_0x5bfd07,_0x16c8ee,_0x526cb2){const _0x40369f=_0x25ee2b,_0x539313={..._0x5bfd07[_0x40369f(0x253)]};_0x526cb2!=null&&_0x526cb2[_0x40369f(0x236)]&&_0x539313[_0x40369f(0x1fd)]==='colorChannel1'&&(_0x539313[_0x40369f(0x1fd)]=_0x526cb2[_0x40369f(0x236)]),_0x5bfd07[_0x40369f(0x245)]===_0x40369f(0x276)&&_0x539313['id']&&(_0x539313['id']=_0x539313['id']+_0x16c8ee[_0x40369f(0x20a)]),Object['entries'](_0x539313)['forEach'](([_0x446a2f,_0x2d2470])=>{const _0x12cf09=_0x40369f;_0x446a2f===_0x12cf09(0x276)&&typeof _0x2d2470==_0x12cf09(0x27a)&&(_0x539313[_0x446a2f]=_0x2d2470['replace'](/url\(#(.*)\)/,_0x12cf09(0x1e8)+_0x16c8ee[_0x12cf09(0x20a)]+')'));});const {defIds:_0x215a09}=_0x16c8ee;return!_0x215a09||_0x215a09[_0x40369f(0x282)]===0x0||(_0x5bfd07[_0x40369f(0x245)]===_0x40369f(0x274)&&_0x539313[_0x40369f(0x224)]&&(_0x539313[_0x40369f(0x224)]=_0x539313['xlink:href']+_0x16c8ee[_0x40369f(0x20a)]),Object[_0x40369f(0x23a)](_0x539313)[_0x40369f(0x23d)](([_0x5e70c9,_0x2cd61e])=>{const _0x9206e0=_0x40369f;typeof _0x2cd61e==_0x9206e0(0x27a)&&(_0x539313[_0x5e70c9]=_0x2cd61e['replace'](/url\(#(.*)\)/,_0x9206e0(0x1e8)+_0x16c8ee['idSuffix']+')'));})),_0x539313;}function Ee(_0x2374e7,_0x5dfe8a){const _0x460d18=_0x25ee2b;var _0x486852;const {defIds:_0x409ea7}=_0x5dfe8a;return!_0x409ea7||_0x409ea7[_0x460d18(0x282)]===0x0?_0x2374e7:_0x2374e7[_0x460d18(0x245)]==='defs'&&((_0x486852=_0x2374e7[_0x460d18(0x254)])!=null&&_0x486852[_0x460d18(0x282)])?{..._0x2374e7,'children':_0x2374e7[_0x460d18(0x254)][_0x460d18(0x25b)](_0x4f4fe0=>typeof _0x4f4fe0[_0x460d18(0x253)]['id']==_0x460d18(0x27a)&&_0x409ea7&&_0x409ea7[_0x460d18(0x1f4)](_0x4f4fe0[_0x460d18(0x253)]['id'])?{..._0x4f4fe0,'attrs':{..._0x4f4fe0[_0x460d18(0x253)],'id':_0x4f4fe0[_0x460d18(0x253)]['id']+_0x5dfe8a[_0x460d18(0x20a)]}}:_0x4f4fe0)}:_0x2374e7;}function Oe(){const _0x3afdb9=_0x25ee2b;return Math['random']()[_0x3afdb9(0x238)](0x24)[_0x3afdb9(0x272)](0x2,0x8);}k['displayName']=_0x25ee2b(0x222);const we={'tag':_0x25ee2b(0x280),'attrs':{'xmlns':_0x25ee2b(0x1f1),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x25ee2b(0x21c),'height':_0x25ee2b(0x21c)},'children':[{'tag':_0x25ee2b(0x267),'attrs':{'fill':_0x25ee2b(0x1e0),'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':_0x25ee2b(0x267),'attrs':{'fill':_0x25ee2b(0x1e0),'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':_0x25ee2b(0x26b),'clipRule':_0x25ee2b(0x26b)}}]},W=_0x39b81e(function(_0xaa45de,_0x29d9be){return _0x350afd(k,Object['assign']({},_0xaa45de,{'id':'live-share-icon','ref':_0x29d9be,'icon':we}));});W[_0x25ee2b(0x1fb)]=_0x25ee2b(0x249);class L extends _0x536fe5{constructor(){const _0x449475=_0x25ee2b;super(...arguments),u(this,_0x449475(0x1f6),new Set()),u(this,_0x449475(0x20d),new Set());}['registerSharedOperation'](_0x459cf3){const _0x1246a7=_0x25ee2b;return this[_0x1246a7(0x1f6)][_0x1246a7(0x26e)](_0x459cf3),_0x3791d0(()=>this[_0x1246a7(0x1f6)][_0x1246a7(0x21b)](_0x459cf3));}[_0x25ee2b(0x217)](_0x5a1af5){const _0xdba816=_0x25ee2b;return this[_0xdba816(0x20d)][_0xdba816(0x26e)](_0x5a1af5),_0x3791d0(()=>this[_0xdba816(0x20d)][_0xdba816(0x21b)](_0x5a1af5));}[_0x25ee2b(0x1ef)](_0x399e9f){const _0x4ef55e=_0x25ee2b;return this['_sharedOperations'][_0x4ef55e(0x23c)](_0x399e9f);}[_0x25ee2b(0x1e4)](_0x56102d){const _0x3877f2=_0x25ee2b;return Array[_0x3877f2(0x244)](this[_0x3877f2(0x20d)])[_0x3877f2(0x25b)](_0x3ddab5=>_0x3ddab5(_0x56102d));}}var Ne=Object[_0x25ee2b(0x1f7)],Y=(_0x25a209,_0x868f91,_0x3c9657,_0x37bba0)=>{const _0x345783=_0x25ee2b;for(var _0x143c41=_0x37bba0>0x1?void 0x0:_0x37bba0?Ne(_0x868f91,_0x3c9657):_0x868f91,_0x4f483d=_0x25a209[_0x345783(0x282)]-0x1,_0xb2d609;_0x4f483d>=0x0;_0x4f483d--)(_0xb2d609=_0x25a209[_0x4f483d])&&(_0x143c41=_0xb2d609(_0x143c41)||_0x143c41);return _0x143c41;},_=(_0x265ea9,_0x2a9cfd)=>(_0x225637,_0x32b365)=>_0x2a9cfd(_0x225637,_0x32b365,_0x265ea9);let S=class extends _0x57de3b{constructor(_0x112f63,_0x477400,_0x525d85){const _0x196676=_0x25ee2b;super(),u(this,_0x196676(0x231),new Map()),(this[_0x196676(0x207)]=_0x112f63,this['_injector']=_0x477400,this[_0x196676(0x232)]=_0x525d85,this[_0x196676(0x237)]());}async[_0x25ee2b(0x1f2)](_0x183430){const _0x119dfd=_0x25ee2b;return this[_0x119dfd(0x231)][_0x119dfd(0x23c)](_0x183430)||await this['_startLiveShareCoordinator'](_0x183430),this['_entities'][_0x119dfd(0x24c)](_0x183430);}['getLiveShareCoordinatorSync'](_0x17b983){const _0x51bf67=_0x25ee2b;var _0x27db4e;return(_0x27db4e=this['_entities'][_0x51bf67(0x24c)](_0x17b983))!=null?_0x27db4e:null;}[_0x25ee2b(0x237)](){const _0x16ee00=_0x25ee2b;this[_0x16ee00(0x207)][_0x16ee00(0x216)](_0x550b95[_0x16ee00(0x220)])[_0x16ee00(0x201)](_0x4bc654(this[_0x16ee00(0x234)]))[_0x16ee00(0x24f)](async _0x11bfb3=>{const _0x5b97de=_0x16ee00,_0x135873=_0x11bfb3[_0x5b97de(0x252)]();this[_0x5b97de(0x231)][_0x5b97de(0x23c)](_0x135873)||this['_startLiveShareCoordinator'](_0x135873);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x550b95[_0x16ee00(0x220)])[_0x16ee00(0x201)](_0x4bc654(this['dispose$']))[_0x16ee00(0x24f)](_0x507166=>{const _0x4d1466=_0x16ee00,_0x30767f=_0x507166[_0x4d1466(0x252)](),_0x4375ba=this[_0x4d1466(0x231)][_0x4d1466(0x24c)](_0x30767f);_0x4375ba==null||_0x4375ba[_0x4d1466(0x1df)]();});}async[_0x25ee2b(0x277)](_0x1bf4c8){const _0x3030b3=_0x25ee2b,_0x3246ac=await this[_0x3030b3(0x232)][_0x3030b3(0x24b)](_0x1bf4c8),_0x42af57=this[_0x3030b3(0x1fc)][_0x3030b3(0x206)](N,_0x1bf4c8,_0x3246ac);return _0x42af57[_0x3030b3(0x218)](),this['_entities'][_0x3030b3(0x1f5)](_0x1bf4c8,_0x42af57),_0x42af57;}};S=Y([_(0x0,_0x321915),_(0x1,_0x5df2f1(_0x2773ce)),_(0x2,_0x5df2f1(_0x7119a7))],S);var c=(_0x39b654=>(_0x39b654[_0x25ee2b(0x273)]=_0x25ee2b(0x24e),_0x39b654['IDLE']=_0x25ee2b(0x1e9),_0x39b654[_0x25ee2b(0x212)]='following',_0x39b654[_0x25ee2b(0x275)]='not-following',_0x39b654[_0x25ee2b(0x22c)]=_0x25ee2b(0x25a),_0x39b654))(c||{});const Ce=_0x25ee2b(0x271),De=0xc8;let N=class extends _0x57de3b{constructor(_0x1487c5,_0x4820de,_0x1f0c41,_0xeca8d4,_0x23f29a){const _0x5acdd5=_0x25ee2b;super(),u(this,_0x5acdd5(0x241),new _0x6a94b9('idle')),u(this,'status$',this[_0x5acdd5(0x241)][_0x5acdd5(0x27f)]()),u(this,_0x5acdd5(0x237),!0x1),u(this,_0x5acdd5(0x1fe),null),u(this,_0x5acdd5(0x239),null),(this[_0x5acdd5(0x260)]=_0x1487c5,this['_collabSession']=_0x4820de,this['_configService']=_0x1f0c41,this[_0x5acdd5(0x20f)]=_0xeca8d4,this[_0x5acdd5(0x1e5)]=_0x23f29a);}get[_0x25ee2b(0x22a)](){const _0x1a0ed4=_0x25ee2b;return this[_0x1a0ed4(0x241)][_0x1a0ed4(0x204)]();}['dispose'](){const _0x227d30=_0x25ee2b;var _0x33b4b8;(_0x33b4b8=this['_commandDisposable'])==null||_0x33b4b8['dispose'](),this['_status$'][_0x227d30(0x27d)](_0x227d30(0x1e9)),this[_0x227d30(0x241)][_0x227d30(0x247)]();}[_0x25ee2b(0x230)](){return this['_status'];}[_0x25ee2b(0x218)](){const _0x20159f=_0x25ee2b;this[_0x20159f(0x237)]||(this[_0x20159f(0x237)]=!0x0,this[_0x20159f(0x1e7)][_0x20159f(0x251)][_0x20159f(0x201)](_0x4bc654(this['dispose$']))[_0x20159f(0x24f)](_0x143a01=>{const _0x574d78=_0x20159f;switch(_0x143a01){case _0xe29edb[_0x574d78(0x273)]:this['_handleOffline']();break;case _0xe29edb[_0x574d78(0x1f0)]:this[_0x574d78(0x279)]();break;}}),this[_0x20159f(0x1e7)][_0x20159f(0x24a)][_0x20159f(0x201)](_0x4bc654(this[_0x20159f(0x234)]))[_0x20159f(0x24f)](_0x379e83=>{const _0x3162c2=_0x20159f,{eventID:_0x4fd48e}=_0x379e83;switch(_0x4fd48e){case _0x1e8c77['LIVESHARE_NEW_HOST']:this[_0x3162c2(0x22f)](_0x379e83);break;case _0x1e8c77[_0x3162c2(0x1fa)]:this[_0x3162c2(0x23b)](_0x379e83);break;case _0x1e8c77[_0x3162c2(0x25c)]:this[_0x3162c2(0x1e1)]();break;case _0x1e8c77[_0x3162c2(0x1e2)]:this[_0x3162c2(0x203)](_0x379e83);break;}}));}[_0x25ee2b(0x242)](){const _0xbf9ef7=_0x25ee2b;this[_0xbf9ef7(0x1e7)]['send']({'eventID':_0x1e8c77[_0xbf9ef7(0x264)],'data':{'unitID':this[_0xbf9ef7(0x260)],'userID':this[_0xbf9ef7(0x1e7)][_0xbf9ef7(0x24d)]()}},this[_0xbf9ef7(0x260)]);}[_0x25ee2b(0x1ec)](){const _0x5e7e2a=_0x25ee2b;this[_0x5e7e2a(0x22a)]===_0x5e7e2a(0x25a)&&(this[_0x5e7e2a(0x241)][_0x5e7e2a(0x27d)](_0x5e7e2a(0x1e9)),this[_0x5e7e2a(0x1e7)][_0x5e7e2a(0x255)]({'eventID':_0x1e8c77[_0x5e7e2a(0x25c)],'data':{'unitID':this[_0x5e7e2a(0x260)]}},this[_0x5e7e2a(0x260)]));}['startFollowing'](){const _0x3266c3=_0x25ee2b;this[_0x3266c3(0x22a)]===_0x3266c3(0x214)&&(this[_0x3266c3(0x241)]['next'](_0x3266c3(0x229)),this['_startFollowing']());}[_0x25ee2b(0x27e)](){const _0x174239=_0x25ee2b;this[_0x174239(0x22a)]===_0x174239(0x229)&&this[_0x174239(0x23e)]();}['_handleNewHost'](_0x291737){const _0x686279=_0x25ee2b,{presenter:_0x368e54}=_0x291737[_0x686279(0x258)],_0x873dc9=this[_0x686279(0x1e7)]['getMemberID']();this['_presenter']=_0x368e54,_0x368e54===_0x873dc9?(this[_0x686279(0x23e)](),this[_0x686279(0x1ea)]()):this[_0x686279(0x22a)]!==_0x686279(0x214)&&(this[_0x686279(0x200)](),this[_0x686279(0x22b)]());}['_fetchOperations'](){const _0x1203d9=_0x25ee2b,_0x789159={'eventID':_0x1e8c77['LIVESHARE_FETCH_OPERATIONS']};this[_0x1203d9(0x1e7)][_0x1203d9(0x255)](_0x789159,this[_0x1203d9(0x260)]);}[_0x25ee2b(0x1e1)](){const _0x1b704b=_0x25ee2b;this[_0x1b704b(0x239)]=null,this[_0x1b704b(0x22a)]!==_0x1b704b(0x25a)&&this[_0x1b704b(0x211)]();}[_0x25ee2b(0x203)](_0x54a134){const _0x5edd0c=_0x25ee2b;if(this[_0x5edd0c(0x22a)]===_0x5edd0c(0x229)&&this[_0x5edd0c(0x239)]===_0x54a134[_0x5edd0c(0x258)][_0x5edd0c(0x278)]){const _0x5af89a=_0x1b8fde(_0x54a134[_0x5edd0c(0x258)])['mutations'][_0x5edd0c(0x233)]()[_0x5edd0c(0x1eb)](_0x21c6c0=>_0x21c6c0['id']===_0xf9e31d['id']);if(_0x5af89a){const _0x3680f1=_0x5af89a[_0x5edd0c(0x1dd)][_0x5edd0c(0x269)],_0x449956=_0x5af89a[_0x5edd0c(0x1dd)][_0x5edd0c(0x26a)]['id'];setTimeout(()=>{const _0x1b2e4c=_0x5edd0c;this[_0x1b2e4c(0x1e5)][_0x1b2e4c(0x21d)](_0x10e90c['id'],{'unitId':_0x3680f1,'subUnitId':_0x449956},{'fromCollab':!0x0});});}}}[_0x25ee2b(0x1ea)](){const _0x58a802=_0x25ee2b;this[_0x58a802(0x241)]['next'](_0x58a802(0x25a));const _0x4f04da=new Map(),_0x5a6c70=this[_0x58a802(0x1fe)]=new _0x3feb8d();_0x5a6c70[_0x58a802(0x26e)](_0x3791d0(()=>{const _0x25f11b=_0x58a802;_0x4f04da[_0x25f11b(0x23d)](_0x4a6055=>_0x4a6055[_0x25f11b(0x247)]()),_0x4f04da[_0x25f11b(0x21f)]();})),_0x5a6c70['add'](this['_commandService']['onCommandExecuted'](_0x21a68c=>{const _0x3325f2=_0x58a802;var _0x2f9c0e;if(_0x21a68c[_0x3325f2(0x1dc)]!==_0x463f33[_0x3325f2(0x27b)]||!this[_0x3325f2(0x20f)][_0x3325f2(0x1ef)](_0x21a68c['id']))return;const {id:_0x345ab1}=_0x21a68c;let _0x2b95b9;_0x4f04da['has'](_0x345ab1)?_0x2b95b9=_0x4f04da[_0x3325f2(0x24c)](_0x345ab1):(_0x2b95b9=new _0x3a69f0(),_0x4f04da[_0x3325f2(0x1f5)](_0x345ab1,_0x2b95b9),_0x2b95b9['pipe'](_0x4427dc((_0x2f9c0e=this[_0x3325f2(0x20b)]['getConfig'](Ce))!=null?_0x2f9c0e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4a7ab4=>{const _0x4767b4=_0x3325f2;this[_0x4767b4(0x1e7)][_0x4767b4(0x255)]({'eventID':_0x1e8c77[_0x4767b4(0x1fa)],'data':{'unitID':this['_unitID'],'operations':{[_0x4a7ab4['id']]:{'id':_0x4a7ab4['id'],'params':JSON[_0x4767b4(0x22d)](_0x4a7ab4[_0x4767b4(0x1dd)])}}}},this[_0x4767b4(0x260)]);})),_0x2b95b9[_0x3325f2(0x27d)](_0x21a68c);})),this[_0x58a802(0x20f)][_0x58a802(0x1e4)](this[_0x58a802(0x260)])['forEach'](_0x52efee=>this[_0x58a802(0x1e7)]['send']({'eventID':_0x1e8c77[_0x58a802(0x1fa)],'data':{'unitID':this[_0x58a802(0x260)],'operations':{[_0x52efee['id']]:{'id':_0x52efee['id'],'params':JSON['stringify'](_0x52efee[_0x58a802(0x1dd)])}}}},this['_unitID']));}[_0x25ee2b(0x200)](){const _0x45c5c5=_0x25ee2b;var _0x26b715;this[_0x45c5c5(0x241)][_0x45c5c5(0x27d)](_0x45c5c5(0x1e9)),(_0x26b715=this[_0x45c5c5(0x1fe)])==null||_0x26b715[_0x45c5c5(0x1df)](),this[_0x45c5c5(0x1fe)]=null;}['_startFollowing'](){const _0x1ebc2d=_0x25ee2b;var _0x5a5309;(_0x5a5309=this[_0x1ebc2d(0x1fe)])==null||_0x5a5309[_0x1ebc2d(0x1df)](),this[_0x1ebc2d(0x241)][_0x1ebc2d(0x27d)](_0x1ebc2d(0x229));}['_beIdle'](){const _0x446edc=_0x25ee2b;var _0x5b798d;this[_0x446edc(0x241)][_0x446edc(0x27d)](_0x446edc(0x1e9)),(_0x5b798d=this['_commandDisposable'])==null||_0x5b798d[_0x446edc(0x1df)](),this[_0x446edc(0x1fe)]=null;}[_0x25ee2b(0x23e)](){const _0x36f832=_0x25ee2b;var _0x49ba80;this[_0x36f832(0x241)]['next']('not-following'),(_0x49ba80=this['_commandDisposable'])==null||_0x49ba80[_0x36f832(0x1df)]();}[_0x25ee2b(0x23b)](_0x38b346){const _0xff54c6=_0x25ee2b;if([_0xff54c6(0x25a),_0xff54c6(0x214),_0xff54c6(0x24e)][_0xff54c6(0x1f4)](this[_0xff54c6(0x22a)])||!_0x38b346['data'][_0xff54c6(0x26d)]||_0x38b346['data']['presenter']===this['_collabSession'][_0xff54c6(0x24d)]())return;this[_0xff54c6(0x22a)]===_0xff54c6(0x1e9)&&this[_0xff54c6(0x22b)]();const _0x535403=_0x38b346[_0xff54c6(0x258)][_0xff54c6(0x1de)];Object[_0xff54c6(0x268)](_0x535403)['forEach'](_0x3422cd=>{const _0x8d71cc=_0xff54c6;this[_0x8d71cc(0x1e5)][_0x8d71cc(0x21d)](_0x3422cd['id'],_0x3422cd[_0x8d71cc(0x1dd)]?JSON[_0x8d71cc(0x1f8)](_0x3422cd[_0x8d71cc(0x1dd)]):null,{'fromCollab':!0x0});});}[_0x25ee2b(0x221)](){const _0x1fbd48=_0x25ee2b;var _0x4ece1d;this[_0x1fbd48(0x241)][_0x1fbd48(0x27d)](_0x1fbd48(0x24e)),(_0x4ece1d=this[_0x1fbd48(0x1fe)])==null||_0x4ece1d['dispose']();}[_0x25ee2b(0x279)](){const _0x1ecae0=_0x25ee2b;this[_0x1ecae0(0x241)][_0x1ecae0(0x27d)](_0x1ecae0(0x1e9)),this[_0x1ecae0(0x21a)]();}};N=Y([_(0x2,_0x289228),_(0x3,_0x5df2f1(L)),_(0x4,_0x4719b3)],N);function Le(){const _0x54a579=_0x25ee2b,_0xa855d1=_0x342b78(S),_0x206ccc=_0x342b78(_0x321915),_0xeb011d=_0x1df29a(()=>_0x206ccc[_0x54a579(0x213)](_0x550b95[_0x54a579(0x220)]),void 0x0,!0x1,[]),[_0x4dfef9,_0x4b6f1e]=_0x1591a3(null),[_0x95edf4,_0x371dcd]=_0x1591a3(c['IDLE']),_0x52a2fe=_0x43d6ea(null);return _0x5d5703(()=>(_0xeb011d&&_0xa855d1[_0x54a579(0x1f2)](_0xeb011d[_0x54a579(0x252)]())[_0x54a579(0x25d)](_0x52fcdd=>{const _0x42c154=_0x54a579;_0x4b6f1e(_0x52fcdd),_0x52a2fe[_0x42c154(0x215)]=_0x52fcdd[_0x42c154(0x259)]['subscribe'](_0x4f3e93=>{_0x371dcd(_0x4f3e93);});}),()=>{const _0x296cd0=_0x54a579;var _0x18d4a8;(_0x18d4a8=_0x52a2fe['current'])==null||_0x18d4a8[_0x296cd0(0x27c)](),_0x52a2fe['current']=null;}),[_0xeb011d,_0xa855d1]),_0x4dfef9?_0x26e6ab(_0x529267,{'align':_0x54a579(0x265),'disabled':_0x95edf4===c[_0x54a579(0x273)],'className':_0x54a579(0x205),'overlay':_0x26e6ab(Re,{'status':_0x95edf4,'coordinator':_0x4dfef9}),'children':_0x26e6ab(_0x54a579(0x223),{'className':_0x57a711(_0x54a579(0x270),{'univer-cursor-not-allowed':_0x95edf4===c[_0x54a579(0x273)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x95edf4!==c[_0x54a579(0x273)]}),'type':'button','children':_0x26e6ab(W,{'className':_0x54a579(0x25e)})})}):null;}function Re(_0x4916ca){const _0x5c53a=_0x25ee2b,{status:_0x1fb38d,coordinator:_0x3bcb41}=_0x4916ca;switch(_0x1fb38d){case c['IDLE']:return _0x26e6ab($e,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x212)]:return _0x26e6ab(xe,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x275)]:return _0x26e6ab(Pe,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x273)]:return _0x26e6ab(Te,{});case c[_0x5c53a(0x22c)]:return _0x26e6ab(Ae,{'coordinator':_0x3bcb41});default:return null;}}function $e(_0x2fefea){const _0xb64479=_0x25ee2b,{coordinator:_0x3e360d}=_0x2fefea;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0xb64479(0x22e),{'className':_0xb64479(0x261),'children':_0xb64479(0x281)}),_0x26e6ab(_0x23fd45,{'onClick':()=>_0x3e360d[_0xb64479(0x242)](),'children':_0xb64479(0x23f)})]});}function xe(_0x126de7){const _0x2d2149=_0x25ee2b,{coordinator:_0x37c5f5}=_0x126de7;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0x2d2149(0x22e),{'className':_0x2d2149(0x261),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x26e6ab(_0x23fd45,{'onClick':()=>_0x37c5f5[_0x2d2149(0x27e)](),'children':_0x2d2149(0x240)})]});}function Pe(_0x4c90cd){const _0x134e1a=_0x25ee2b,{coordinator:_0x40d0c0}=_0x4c90cd;return _0x198524(_0x518b0d,{'children':[_0x26e6ab('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x26e6ab(_0x23fd45,{'variant':_0x134e1a(0x225),'onClick':()=>_0x40d0c0[_0x134e1a(0x20e)](),'children':_0x134e1a(0x1ff)})]});}function Ae(_0x59841f){const _0x1f4f08=_0x25ee2b,{coordinator:_0x233bdb}=_0x59841f;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0x1f4f08(0x22e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1f4f08(0x256)}),_0x26e6ab(_0x23fd45,{'variant':_0x1f4f08(0x1e3),'onClick':()=>_0x233bdb[_0x1f4f08(0x1ec)](),'children':_0x1f4f08(0x246)})]});}function Te(){const _0x3d2e59=_0x25ee2b;return _0x26e6ab(_0x518b0d,{'children':_0x3d2e59(0x208)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x3fc747,_0x4c20b4,_0x481ef8,_0x4e3c33)=>{const _0xd44746=_0x25ee2b;for(var _0x463da0=_0x4e3c33>0x1?void 0x0:_0x4e3c33?Fe(_0x4c20b4,_0x481ef8):_0x4c20b4,_0x3a0bc2=_0x3fc747[_0xd44746(0x282)]-0x1,_0x5bcd56;_0x3a0bc2>=0x0;_0x3a0bc2--)(_0x5bcd56=_0x3fc747[_0x3a0bc2])&&(_0x463da0=_0x5bcd56(_0x463da0)||_0x463da0);return _0x463da0;},A=(_0x14789f,_0x3b3505)=>(_0x32307a,_0x44e4d1)=>_0x3b3505(_0x32307a,_0x44e4d1,_0x14789f);let m=class extends _0x536fe5{constructor(_0x97cadf,_0x531e22){const _0x59ce35=_0x25ee2b;super(),this[_0x59ce35(0x1fc)]=_0x97cadf,this['_uiPartsService']=_0x531e22,this[_0x59ce35(0x25f)]();}[_0x25ee2b(0x25f)](){const _0x25cc81=_0x25ee2b;this[_0x25cc81(0x1ed)](this[_0x25cc81(0x26f)][_0x25cc81(0x228)](_0x48a98c[_0x25cc81(0x20c)],()=>_0x21b5cb(Le,this[_0x25cc81(0x1fc)])));}};m=He([A(0x0,_0x5df2f1(_0x2773ce)),A(0x1,_0xaa2672)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0xd39551,_0x36bf07,_0x41d170,_0x5dda06)=>{const _0x2a0775=_0x25ee2b;for(var _0x12285e=_0x5dda06>0x1?void 0x0:_0x5dda06?Ue(_0x36bf07,_0x41d170):_0x36bf07,_0x17d3d5=_0xd39551[_0x2a0775(0x282)]-0x1,_0x5030bc;_0x17d3d5>=0x0;_0x17d3d5--)(_0x5030bc=_0xd39551[_0x17d3d5])&&(_0x12285e=_0x5030bc(_0x12285e)||_0x12285e);return _0x12285e;},je=(_0x354c66,_0x17ddc8)=>(_0x27969a,_0x5a0a48)=>_0x17ddc8(_0x27969a,_0x5a0a48,_0x354c66);let I=class extends _0x536fe5{constructor(_0x3870ee){const _0x5eb47a=_0x25ee2b;super(),this[_0x5eb47a(0x20f)]=_0x3870ee,this[_0x5eb47a(0x237)]();}['_init'](){const _0x5ce72f=_0x25ee2b;[_0x170f2f['id'],_0xc75d5e['id'],_0x10e90c['id']][_0x5ce72f(0x23d)](_0x1f5145=>{const _0x2c7a78=_0x5ce72f;this[_0x2c7a78(0x1ed)](this[_0x2c7a78(0x20f)]['registerSharedOperation'](_0x1f5145));});}};I=Ve([je(0x0,_0x5df2f1(L))],I);var Me=Object[_0x25ee2b(0x243)],ke=Object[_0x25ee2b(0x1f7)],Ge=(_0x1a8fbb,_0x5dafc9,_0x5bea9f)=>_0x5dafc9 in _0x1a8fbb?Me(_0x1a8fbb,_0x5dafc9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bea9f}):_0x1a8fbb[_0x5dafc9]=_0x5bea9f,We=(_0x23cda6,_0x4182a2,_0x53f377,_0x299d12)=>{for(var _0x17e5fc=_0x299d12>0x1?void 0x0:_0x299d12?ke(_0x4182a2,_0x53f377):_0x4182a2,_0x4e19e3=_0x23cda6['length']-0x1,_0x43ae9f;_0x4e19e3>=0x0;_0x4e19e3--)(_0x43ae9f=_0x23cda6[_0x4e19e3])&&(_0x17e5fc=_0x43ae9f(_0x17e5fc)||_0x17e5fc);return _0x17e5fc;},F=(_0x3f4518,_0x25e5d5)=>(_0x3732eb,_0x431efa)=>_0x25e5d5(_0x3732eb,_0x431efa,_0x3f4518),B=(_0x5ad5b2,_0x10073b,_0x3efbaf)=>Ge(_0x5ad5b2,typeof _0x10073b!=_0x25ee2b(0x219)?_0x10073b+'':_0x10073b,_0x3efbaf);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4155e9{constructor(_0x1bb2e4=T,_0x51466b,_0x2c3bb7){const _0x4847fd=_0x25ee2b;super(),this['_config']=_0x1bb2e4,this[_0x4847fd(0x1fc)]=_0x51466b,this['_configService']=_0x2c3bb7;const {..._0x2f5043}=_0x12cf70({},T,this[_0x4847fd(0x1e6)]);this['_configService']['setConfig'](ye,_0x2f5043);}[_0x25ee2b(0x235)](){const _0x372512=_0x25ee2b;_0x70c5c8(this[_0x372512(0x1fc)],_0x4949c7([[L],[S],[I],[m]],this[_0x372512(0x1e6)][_0x372512(0x226)])),_0x4dbc52(this[_0x372512(0x1fc)],[[I]]);}[_0x25ee2b(0x250)](){const _0x410537=_0x25ee2b;_0x4dbc52(this[_0x410537(0x1fc)],[[m]]);}};B(b,'type',_0x550b95[_0x25ee2b(0x262)]),B(b,_0x25ee2b(0x210),Ye),b=We([_0x2b6788(_0x318246),F(0x1,_0x5df2f1(_0x2773ce)),F(0x2,_0x289228)],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 _0x5210d7=_0x243a;(function(_0x15f47f,_0x38a4bf){const _0x24d9a3=_0x243a,_0x80a755=_0x15f47f();while(!![]){try{const _0xcfd96d=-parseInt(_0x24d9a3(0x1ef))/0x1*(-parseInt(_0x24d9a3(0x159))/0x2)+parseInt(_0x24d9a3(0x1c0))/0x3*(-parseInt(_0x24d9a3(0x14c))/0x4)+parseInt(_0x24d9a3(0x15b))/0x5*(-parseInt(_0x24d9a3(0x1ed))/0x6)+-parseInt(_0x24d9a3(0x1c2))/0x7*(-parseInt(_0x24d9a3(0x1db))/0x8)+-parseInt(_0x24d9a3(0x191))/0x9*(parseInt(_0x24d9a3(0x188))/0xa)+-parseInt(_0x24d9a3(0x14b))/0xb*(parseInt(_0x24d9a3(0x173))/0xc)+parseInt(_0x24d9a3(0x1e0))/0xd;if(_0xcfd96d===_0x38a4bf)break;else _0x80a755['push'](_0x80a755['shift']());}catch(_0xc382fe){_0x80a755['push'](_0x80a755['shift']());}}}(_0x381b,0x25769));var J=Object['defineProperty'],K=(_0x1efe56,_0x37fa3d,_0x22c01a)=>_0x37fa3d in _0x1efe56?J(_0x1efe56,_0x37fa3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22c01a}):_0x1efe56[_0x37fa3d]=_0x22c01a,u=(_0xf3513,_0x5ca4a3,_0x4d2b0c)=>K(_0xf3513,typeof _0x5ca4a3!=_0x5210d7(0x1b5)?_0x5ca4a3+'':_0x5ca4a3,_0x4d2b0c);import{Disposable as _0x26ec19,toDisposable as _0x5d0e77,IUniverInstanceService as _0x37531b,Inject as _0x3d8a6b,Injector as _0x4b36e6,IConfigService as _0xf5ea42,ICommandService as _0x2fcda2,RxDisposable as _0x144ee0,UniverInstanceType as _0x50febc,DisposableCollection as _0x375790,CommandType as _0x1011d4,DependentOn as _0x1ec694,Plugin as _0x549e68,merge as _0x1c7e83,registerDependencies as _0x305e89,mergeOverrideWithDependencies as _0x2c31e8,touchDependencies as _0x222335}from'@univerjs/core';import{useDependency as _0x1c1e9a,useObservable as _0x274db0,IUIPartsService as _0x412319,BuiltInUIPart as _0x35793d,connectInjector as _0x28c316}from'@univerjs/ui';import{jsx as _0x3c9609,jsxs as _0x586ffe,Fragment as _0x23c578}from'react/jsx-runtime';import{Dropdown as _0x2922dc,clsx as _0x531909,Button as _0x36de3c}from'@univerjs/design';import{useRef as _0x374c97,createElement as _0x1cba6e,forwardRef as _0xd14d09,useState as _0x25d888,useEffect as _0x371e51}from'react';import{CollaborationEvent as _0x5e604e,parseProtocolChangeset as _0x574b9d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3df0fe,SessionStatus as _0x2e8789,UniverCollaborationClientPlugin as _0x302e04}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2cceb9,SetWorksheetActiveOperation as _0x205ccb}from'@univerjs/sheets';import{BehaviorSubject as _0x545a6f,Subject as _0x14dcfb}from'rxjs';import{takeUntil as _0x4b789d,throttleTime as _0x543336}from'rxjs/operators';import{SetZoomRatioOperation as _0x196e1f,SetScrollOperation as _0x23af8d}from'@univerjs/sheets-ui';function k({ref:_0x390bb6,..._0x12062e}){const _0x4cd428=_0x5210d7,{icon:_0x1a139d,id:_0x49440d,className:_0xf8f5b7,extend:_0x1a6904,..._0x586476}=_0x12062e,_0x31ba39=(_0x4cd428(0x169)+_0x49440d+'\x20'+(_0xf8f5b7||''))[_0x4cd428(0x1f4)](),_0x20f921=_0x374c97('_'+Oe());return G(_0x1a139d,''+_0x49440d,{'defIds':_0x1a139d[_0x4cd428(0x1a6)],'idSuffix':_0x20f921[_0x4cd428(0x19e)]},{'ref':_0x390bb6,'className':_0x31ba39,..._0x586476},_0x1a6904);}function G(_0x2d2f4f,_0x22d4a5,_0x382d75,_0x194976,_0x3dc485){const _0x979852=_0x5210d7;return _0x1cba6e(_0x2d2f4f[_0x979852(0x198)],{'key':_0x22d4a5,...be(_0x2d2f4f,_0x382d75,_0x3dc485),..._0x194976},(Ee(_0x2d2f4f,_0x382d75)[_0x979852(0x1de)]||[])[_0x979852(0x1b7)]((_0x561600,_0x5a4c17)=>G(_0x561600,_0x22d4a5+'-'+_0x2d2f4f[_0x979852(0x198)]+'-'+_0x5a4c17,_0x382d75,void 0x0,_0x3dc485)));}function be(_0x582291,_0x4dd843,_0x22ed7b){const _0x3e471d=_0x5210d7,_0x45347a={..._0x582291[_0x3e471d(0x1e6)]};_0x22ed7b!=null&&_0x22ed7b['colorChannel1']&&_0x45347a[_0x3e471d(0x197)]===_0x3e471d(0x1c8)&&(_0x45347a[_0x3e471d(0x197)]=_0x22ed7b[_0x3e471d(0x1c8)]),_0x582291[_0x3e471d(0x198)]===_0x3e471d(0x1e9)&&_0x45347a['id']&&(_0x45347a['id']=_0x45347a['id']+_0x4dd843[_0x3e471d(0x15f)]),Object[_0x3e471d(0x15e)](_0x45347a)[_0x3e471d(0x19c)](([_0x3fb191,_0x503399])=>{const _0x4a5232=_0x3e471d;_0x3fb191==='mask'&&typeof _0x503399==_0x4a5232(0x1b8)&&(_0x45347a[_0x3fb191]=_0x503399[_0x4a5232(0x1ee)](/url\(#(.*)\)/,_0x4a5232(0x18b)+_0x4dd843[_0x4a5232(0x15f)]+')'));});const {defIds:_0xee825a}=_0x4dd843;return!_0xee825a||_0xee825a[_0x3e471d(0x186)]===0x0||(_0x582291[_0x3e471d(0x198)]===_0x3e471d(0x1ad)&&_0x45347a[_0x3e471d(0x16a)]&&(_0x45347a[_0x3e471d(0x16a)]=_0x45347a[_0x3e471d(0x16a)]+_0x4dd843[_0x3e471d(0x15f)]),Object[_0x3e471d(0x15e)](_0x45347a)[_0x3e471d(0x19c)](([_0x4d42ea,_0x3e99e7])=>{const _0x54820a=_0x3e471d;typeof _0x3e99e7==_0x54820a(0x1b8)&&(_0x45347a[_0x4d42ea]=_0x3e99e7[_0x54820a(0x1ee)](/url\(#(.*)\)/,_0x54820a(0x18b)+_0x4dd843[_0x54820a(0x15f)]+')'));})),_0x45347a;}function Ee(_0x238eea,_0x313e6e){const _0x520dcb=_0x5210d7;var _0x5e86c6;const {defIds:_0x3f46cd}=_0x313e6e;return!_0x3f46cd||_0x3f46cd[_0x520dcb(0x186)]===0x0?_0x238eea:_0x238eea[_0x520dcb(0x198)]===_0x520dcb(0x172)&&((_0x5e86c6=_0x238eea[_0x520dcb(0x1de)])!=null&&_0x5e86c6[_0x520dcb(0x186)])?{..._0x238eea,'children':_0x238eea[_0x520dcb(0x1de)][_0x520dcb(0x1b7)](_0x276106=>typeof _0x276106[_0x520dcb(0x1e6)]['id']==_0x520dcb(0x1b8)&&_0x3f46cd&&_0x3f46cd['includes'](_0x276106[_0x520dcb(0x1e6)]['id'])?{..._0x276106,'attrs':{..._0x276106['attrs'],'id':_0x276106[_0x520dcb(0x1e6)]['id']+_0x313e6e[_0x520dcb(0x15f)]}}:_0x276106)}:_0x238eea;}function Oe(){const _0x7454f6=_0x5210d7;return Math[_0x7454f6(0x1f0)]()[_0x7454f6(0x1c3)](0x24)['substring'](0x2,0x8);}k[_0x5210d7(0x1b9)]=_0x5210d7(0x1a9);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5210d7(0x160),'viewBox':_0x5210d7(0x1a5),'width':_0x5210d7(0x17e),'height':_0x5210d7(0x17e)},'children':[{'tag':_0x5210d7(0x1e4),'attrs':{'fill':_0x5210d7(0x14d),'d':_0x5210d7(0x16e)}},{'tag':_0x5210d7(0x1e4),'attrs':{'fill':'currentColor','d':_0x5210d7(0x1d4),'fillRule':_0x5210d7(0x161),'clipRule':'evenodd'}}]},W=_0xd14d09(function(_0x4d2ab8,_0xc43756){const _0x1c32ef=_0x5210d7;return _0x1cba6e(k,Object['assign']({},_0x4d2ab8,{'id':_0x1c32ef(0x177),'ref':_0xc43756,'icon':we}));});W[_0x5210d7(0x1b9)]=_0x5210d7(0x174);class L extends _0x26ec19{constructor(){const _0x2ef29a=_0x5210d7;super(...arguments),u(this,_0x2ef29a(0x1f1),new Set()),u(this,_0x2ef29a(0x14a),new Set());}[_0x5210d7(0x183)](_0x159364){const _0x2c82d5=_0x5210d7;return this['_sharedOperations'][_0x2c82d5(0x1be)](_0x159364),_0x5d0e77(()=>this[_0x2c82d5(0x1f1)][_0x2c82d5(0x1dc)](_0x159364));}[_0x5210d7(0x152)](_0x765d19){const _0x10d592=_0x5210d7;return this[_0x10d592(0x14a)][_0x10d592(0x1be)](_0x765d19),_0x5d0e77(()=>this[_0x10d592(0x14a)][_0x10d592(0x1dc)](_0x765d19));}[_0x5210d7(0x19f)](_0x52341f){const _0x522bf0=_0x5210d7;return this[_0x522bf0(0x1f1)][_0x522bf0(0x199)](_0x52341f);}[_0x5210d7(0x15a)](_0x1d3ad3){const _0x4ca904=_0x5210d7;return Array[_0x4ca904(0x163)](this[_0x4ca904(0x14a)])[_0x4ca904(0x1b7)](_0x3d94fc=>_0x3d94fc(_0x1d3ad3));}}var Ne=Object[_0x5210d7(0x155)],Y=(_0x100c3a,_0x2f69d1,_0x4ec367,_0x53342f)=>{const _0x2215ae=_0x5210d7;for(var _0x180d20=_0x53342f>0x1?void 0x0:_0x53342f?Ne(_0x2f69d1,_0x4ec367):_0x2f69d1,_0x27b8f8=_0x100c3a[_0x2215ae(0x186)]-0x1,_0x410cc3;_0x27b8f8>=0x0;_0x27b8f8--)(_0x410cc3=_0x100c3a[_0x27b8f8])&&(_0x180d20=_0x410cc3(_0x180d20)||_0x180d20);return _0x180d20;},_=(_0x3cc0f5,_0x4e6a65)=>(_0x43926c,_0x2b5ecd)=>_0x4e6a65(_0x43926c,_0x2b5ecd,_0x3cc0f5);let S=class extends _0x144ee0{constructor(_0x404def,_0x154136,_0x34d529){const _0x31b7f6=_0x5210d7;super(),u(this,_0x31b7f6(0x17f),new Map()),(this[_0x31b7f6(0x1ab)]=_0x404def,this['_injector']=_0x154136,this[_0x31b7f6(0x1bf)]=_0x34d529,this[_0x31b7f6(0x162)]());}async[_0x5210d7(0x151)](_0x4efa50){const _0x1d91e3=_0x5210d7;return this[_0x1d91e3(0x17f)][_0x1d91e3(0x199)](_0x4efa50)||await this[_0x1d91e3(0x1e2)](_0x4efa50),this[_0x1d91e3(0x17f)][_0x1d91e3(0x1b4)](_0x4efa50);}[_0x5210d7(0x170)](_0x3e2f55){const _0x1f4b2d=_0x5210d7;var _0x426ebc;return(_0x426ebc=this[_0x1f4b2d(0x17f)]['get'](_0x3e2f55))!=null?_0x426ebc:null;}[_0x5210d7(0x162)](){const _0x36234b=_0x5210d7;this['_univerInstanceService'][_0x36234b(0x1cf)](_0x50febc[_0x36234b(0x153)])['pipe'](_0x4b789d(this[_0x36234b(0x1c4)]))[_0x36234b(0x1a7)](async _0x3196e5=>{const _0x2263f1=_0x36234b,_0x4b5954=_0x3196e5['getUnitId']();this['_entities'][_0x2263f1(0x199)](_0x4b5954)||this['_startLiveShareCoordinator'](_0x4b5954);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x50febc[_0x36234b(0x153)])[_0x36234b(0x1dd)](_0x4b789d(this[_0x36234b(0x1c4)]))[_0x36234b(0x1a7)](_0x1939ee=>{const _0x2c207c=_0x36234b,_0x40c869=_0x1939ee[_0x2c207c(0x1d7)](),_0x4d580d=this[_0x2c207c(0x17f)][_0x2c207c(0x1b4)](_0x40c869);_0x4d580d==null||_0x4d580d[_0x2c207c(0x1a0)]();});}async[_0x5210d7(0x1e2)](_0x52d7a5){const _0x48d801=_0x5210d7,_0x22798d=await this[_0x48d801(0x1bf)]['requireSession'](_0x52d7a5),_0x4832fc=this['_injector'][_0x48d801(0x1eb)](N,_0x52d7a5,_0x22798d);return _0x4832fc['init'](),this['_entities'][_0x48d801(0x16d)](_0x52d7a5,_0x4832fc),_0x4832fc;}};S=Y([_(0x0,_0x37531b),_(0x1,_0x3d8a6b(_0x4b36e6)),_(0x2,_0x3d8a6b(_0x3df0fe))],S);var c=(_0x371fb0=>(_0x371fb0[_0x5210d7(0x1bb)]=_0x5210d7(0x1cd),_0x371fb0[_0x5210d7(0x16c)]=_0x5210d7(0x1c7),_0x371fb0['FOLLOWING']=_0x5210d7(0x1cb),_0x371fb0[_0x5210d7(0x1f6)]=_0x5210d7(0x1c1),_0x371fb0[_0x5210d7(0x19b)]=_0x5210d7(0x182),_0x371fb0))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x144ee0{constructor(_0x1dac41,_0x51574d,_0x2aa659,_0x5b8dba,_0x5b62b8){const _0x557266=_0x5210d7;super(),u(this,_0x557266(0x1d0),new _0x545a6f('idle')),u(this,'status$',this['_status$'][_0x557266(0x1da)]()),u(this,_0x557266(0x162),!0x1),u(this,'_commandDisposable',null),u(this,_0x557266(0x18d),null),(this[_0x557266(0x1e7)]=_0x1dac41,this['_collabSession']=_0x51574d,this[_0x557266(0x17d)]=_0x2aa659,this[_0x557266(0x1c5)]=_0x5b8dba,this[_0x557266(0x16b)]=_0x5b62b8);}get[_0x5210d7(0x16f)](){const _0xb9ad33=_0x5210d7;return this[_0xb9ad33(0x1d0)][_0xb9ad33(0x187)]();}[_0x5210d7(0x1a0)](){const _0x24fa18=_0x5210d7;var _0x4e5434;(_0x4e5434=this[_0x24fa18(0x1a2)])==null||_0x4e5434[_0x24fa18(0x1a0)](),this[_0x24fa18(0x1d0)][_0x24fa18(0x157)](_0x24fa18(0x1c7)),this[_0x24fa18(0x1d0)]['complete']();}[_0x5210d7(0x164)](){const _0x122866=_0x5210d7;return this[_0x122866(0x16f)];}[_0x5210d7(0x1df)](){const _0x2a121d=_0x5210d7;this['_init']||(this[_0x2a121d(0x162)]=!0x0,this[_0x2a121d(0x1b1)][_0x2a121d(0x15d)]['pipe'](_0x4b789d(this[_0x2a121d(0x1c4)]))[_0x2a121d(0x1a7)](_0x16b391=>{const _0x41df21=_0x2a121d;switch(_0x16b391){case _0x2e8789[_0x41df21(0x1bb)]:this[_0x41df21(0x14e)]();break;case _0x2e8789[_0x41df21(0x1b0)]:this[_0x41df21(0x165)]();break;}}),this[_0x2a121d(0x1b1)][_0x2a121d(0x1ae)][_0x2a121d(0x1dd)](_0x4b789d(this[_0x2a121d(0x1c4)]))[_0x2a121d(0x1a7)](_0x50705d=>{const _0x542d98=_0x2a121d,{eventID:_0x1b5962}=_0x50705d;switch(_0x1b5962){case _0x5e604e['LIVESHARE_NEW_HOST']:this[_0x542d98(0x1d8)](_0x50705d);break;case _0x5e604e[_0x542d98(0x18f)]:this[_0x542d98(0x192)](_0x50705d);break;case _0x5e604e[_0x542d98(0x194)]:this[_0x542d98(0x171)]();break;case _0x5e604e['NEW_CHANGESETS']:this[_0x542d98(0x167)](_0x50705d);break;}}));}[_0x5210d7(0x1ec)](){const _0x38c293=_0x5210d7;this[_0x38c293(0x1b1)]['send']({'eventID':_0x5e604e[_0x38c293(0x193)],'data':{'unitID':this[_0x38c293(0x1e7)],'userID':this[_0x38c293(0x1b1)][_0x38c293(0x1bc)]()}},this[_0x38c293(0x1e7)]);}['stopPresenting'](){const _0xf0535b=_0x5210d7;this[_0xf0535b(0x16f)]==='presenting'&&(this[_0xf0535b(0x1d0)][_0xf0535b(0x157)]('idle'),this[_0xf0535b(0x1b1)][_0xf0535b(0x1e3)]({'eventID':_0x5e604e[_0xf0535b(0x194)],'data':{'unitID':this[_0xf0535b(0x1e7)]}},this[_0xf0535b(0x1e7)]));}[_0x5210d7(0x189)](){const _0x5e5633=_0x5210d7;this['_status']==='not-following'&&(this[_0x5e5633(0x1d0)][_0x5e5633(0x157)](_0x5e5633(0x1cb)),this[_0x5e5633(0x196)]());}[_0x5210d7(0x1b3)](){const _0x441e69=_0x5210d7;this['_status']===_0x441e69(0x1cb)&&this[_0x441e69(0x1ac)]();}[_0x5210d7(0x1d8)](_0x203791){const _0x3ba83d=_0x5210d7,{presenter:_0x150f0e}=_0x203791['data'],_0x481cd2=this[_0x3ba83d(0x1b1)][_0x3ba83d(0x1bc)]();this['_presenter']=_0x150f0e,_0x150f0e===_0x481cd2?(this[_0x3ba83d(0x1ac)](),this[_0x3ba83d(0x1a4)]()):this[_0x3ba83d(0x16f)]!==_0x3ba83d(0x1c1)&&(this[_0x3ba83d(0x1e5)](),this[_0x3ba83d(0x196)]());}['_fetchOperations'](){const _0x139322=_0x5210d7,_0x4f0cfa={'eventID':_0x5e604e['LIVESHARE_FETCH_OPERATIONS']};this[_0x139322(0x1b1)][_0x139322(0x1e3)](_0x4f0cfa,this['_unitID']);}[_0x5210d7(0x171)](){const _0x375a82=_0x5210d7;this[_0x375a82(0x18d)]=null,this[_0x375a82(0x16f)]!==_0x375a82(0x182)&&this[_0x375a82(0x14f)]();}[_0x5210d7(0x167)](_0x416f93){const _0x18d85d=_0x5210d7;if(this[_0x18d85d(0x16f)]==='following'&&this[_0x18d85d(0x18d)]===_0x416f93[_0x18d85d(0x1d9)]['memberID']){const _0x45f9a4=_0x574b9d(_0x416f93[_0x18d85d(0x1d9)])[_0x18d85d(0x1ba)][_0x18d85d(0x180)]()[_0x18d85d(0x17c)](_0x4661f0=>_0x4661f0['id']===_0x2cceb9['id']);if(_0x45f9a4){const _0x431995=_0x45f9a4[_0x18d85d(0x166)][_0x18d85d(0x18a)],_0x5c8ea5=_0x45f9a4['params'][_0x18d85d(0x18c)]['id'];setTimeout(()=>{const _0x40f736=_0x18d85d;this[_0x40f736(0x16b)][_0x40f736(0x1d5)](_0x205ccb['id'],{'unitId':_0x431995,'subUnitId':_0x5c8ea5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3ae90f=_0x5210d7;this[_0x3ae90f(0x1d0)][_0x3ae90f(0x157)](_0x3ae90f(0x182));const _0x1cc45b=new Map(),_0x49d326=this[_0x3ae90f(0x1a2)]=new _0x375790();_0x49d326[_0x3ae90f(0x1be)](_0x5d0e77(()=>{const _0x219700=_0x3ae90f;_0x1cc45b[_0x219700(0x19c)](_0xc65f44=>_0xc65f44[_0x219700(0x1ce)]()),_0x1cc45b[_0x219700(0x1ca)]();})),_0x49d326['add'](this[_0x3ae90f(0x16b)][_0x3ae90f(0x1ea)](_0x34162a=>{const _0x3ce83e=_0x3ae90f;var _0x290d9c;if(_0x34162a[_0x3ce83e(0x18e)]!==_0x1011d4['OPERATION']||!this[_0x3ce83e(0x1c5)][_0x3ce83e(0x19f)](_0x34162a['id']))return;const {id:_0xa629ad}=_0x34162a;let _0x4c97e8;_0x1cc45b[_0x3ce83e(0x199)](_0xa629ad)?_0x4c97e8=_0x1cc45b[_0x3ce83e(0x1b4)](_0xa629ad):(_0x4c97e8=new _0x14dcfb(),_0x1cc45b[_0x3ce83e(0x16d)](_0xa629ad,_0x4c97e8),_0x4c97e8['pipe'](_0x543336((_0x290d9c=this[_0x3ce83e(0x17d)]['getConfig'](Ce))!=null?_0x290d9c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ce83e(0x1a7)](_0x64c933=>{const _0x1d5aa2=_0x3ce83e;this[_0x1d5aa2(0x1b1)]['send']({'eventID':_0x5e604e[_0x1d5aa2(0x18f)],'data':{'unitID':this[_0x1d5aa2(0x1e7)],'operations':{[_0x64c933['id']]:{'id':_0x64c933['id'],'params':JSON[_0x1d5aa2(0x17a)](_0x64c933[_0x1d5aa2(0x166)])}}}},this[_0x1d5aa2(0x1e7)]);})),_0x4c97e8[_0x3ce83e(0x157)](_0x34162a);})),this[_0x3ae90f(0x1c5)][_0x3ae90f(0x15a)](this[_0x3ae90f(0x1e7)])['forEach'](_0x3ae847=>this[_0x3ae90f(0x1b1)]['send']({'eventID':_0x5e604e[_0x3ae90f(0x18f)],'data':{'unitID':this[_0x3ae90f(0x1e7)],'operations':{[_0x3ae847['id']]:{'id':_0x3ae847['id'],'params':JSON['stringify'](_0x3ae847['params'])}}}},this[_0x3ae90f(0x1e7)]));}['_stopPresenting'](){const _0x17d115=_0x5210d7;var _0x3b1f52;this[_0x17d115(0x1d0)][_0x17d115(0x157)](_0x17d115(0x1c7)),(_0x3b1f52=this[_0x17d115(0x1a2)])==null||_0x3b1f52['dispose'](),this[_0x17d115(0x1a2)]=null;}[_0x5210d7(0x196)](){const _0x36d722=_0x5210d7;var _0x573fc7;(_0x573fc7=this[_0x36d722(0x1a2)])==null||_0x573fc7[_0x36d722(0x1a0)](),this[_0x36d722(0x1d0)][_0x36d722(0x157)]('following');}[_0x5210d7(0x14f)](){const _0xa84b2e=_0x5210d7;var _0xaed6c3;this[_0xa84b2e(0x1d0)][_0xa84b2e(0x157)](_0xa84b2e(0x1c7)),(_0xaed6c3=this[_0xa84b2e(0x1a2)])==null||_0xaed6c3[_0xa84b2e(0x1a0)](),this['_commandDisposable']=null;}[_0x5210d7(0x1ac)](){const _0x4d0656=_0x5210d7;var _0x11030d;this[_0x4d0656(0x1d0)][_0x4d0656(0x157)](_0x4d0656(0x1c1)),(_0x11030d=this[_0x4d0656(0x1a2)])==null||_0x11030d[_0x4d0656(0x1a0)]();}[_0x5210d7(0x192)](_0xa342e2){const _0x47d298=_0x5210d7;if([_0x47d298(0x182),_0x47d298(0x1c1),_0x47d298(0x1cd)][_0x47d298(0x1c9)](this['_status'])||!_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a3)]||_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a3)]===this[_0x47d298(0x1b1)][_0x47d298(0x1bc)]())return;this[_0x47d298(0x16f)]===_0x47d298(0x1c7)&&this[_0x47d298(0x196)]();const _0x5de792=_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a8)];Object['values'](_0x5de792)[_0x47d298(0x19c)](_0x2ea470=>{const _0x3e1256=_0x47d298;this[_0x3e1256(0x16b)][_0x3e1256(0x1d5)](_0x2ea470['id'],_0x2ea470['params']?JSON[_0x3e1256(0x1aa)](_0x2ea470[_0x3e1256(0x166)]):null,{'fromCollab':!0x0});});}[_0x5210d7(0x14e)](){const _0x443716=_0x5210d7;var _0x24eae3;this[_0x443716(0x1d0)][_0x443716(0x157)](_0x443716(0x1cd)),(_0x24eae3=this[_0x443716(0x1a2)])==null||_0x24eae3[_0x443716(0x1a0)]();}[_0x5210d7(0x165)](){const _0x9adfe9=_0x5210d7;this[_0x9adfe9(0x1d0)]['next'](_0x9adfe9(0x1c7)),this[_0x9adfe9(0x181)]();}};N=Y([_(0x2,_0xf5ea42),_(0x3,_0x3d8a6b(L)),_(0x4,_0x2fcda2)],N);function Le(){const _0x18c973=_0x5210d7,_0x2bd67a=_0x1c1e9a(S),_0x3d6870=_0x1c1e9a(_0x37531b),_0x5f2adf=_0x274db0(()=>_0x3d6870[_0x18c973(0x1d6)](_0x50febc[_0x18c973(0x153)]),void 0x0,!0x1,[]),[_0x1714ae,_0xf4c7d7]=_0x25d888(null),[_0x56df23,_0x21a9a8]=_0x25d888(c[_0x18c973(0x16c)]),_0x30f507=_0x374c97(null);return _0x371e51(()=>(_0x5f2adf&&_0x2bd67a[_0x18c973(0x151)](_0x5f2adf[_0x18c973(0x1d7)]())[_0x18c973(0x168)](_0x33a4e3=>{const _0x452396=_0x18c973;_0xf4c7d7(_0x33a4e3),_0x30f507[_0x452396(0x19e)]=_0x33a4e3[_0x452396(0x158)][_0x452396(0x1a7)](_0x118b82=>{_0x21a9a8(_0x118b82);});}),()=>{const _0x50a3e6=_0x18c973;var _0x49ef30;(_0x49ef30=_0x30f507[_0x50a3e6(0x19e)])==null||_0x49ef30[_0x50a3e6(0x178)](),_0x30f507[_0x50a3e6(0x19e)]=null;}),[_0x5f2adf,_0x2bd67a]),_0x1714ae?_0x3c9609(_0x2922dc,{'align':_0x18c973(0x150),'disabled':_0x56df23===c['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':_0x3c9609(Re,{'status':_0x56df23,'coordinator':_0x1714ae}),'children':_0x3c9609(_0x18c973(0x190),{'className':_0x531909(_0x18c973(0x1d1),{'univer-cursor-not-allowed':_0x56df23===c[_0x18c973(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56df23!==c[_0x18c973(0x1bb)]}),'type':_0x18c973(0x190),'children':_0x3c9609(W,{'className':_0x18c973(0x1d3)})})}):null;}function Re(_0x1ddfc8){const _0x26cbc6=_0x5210d7,{status:_0x2a2bac,coordinator:_0xf50fe7}=_0x1ddfc8;switch(_0x2a2bac){case c[_0x26cbc6(0x16c)]:return _0x3c9609($e,{'coordinator':_0xf50fe7});case c[_0x26cbc6(0x195)]:return _0x3c9609(xe,{'coordinator':_0xf50fe7});case c['NOT_FOLLOWING']:return _0x3c9609(Pe,{'coordinator':_0xf50fe7});case c[_0x26cbc6(0x1bb)]:return _0x3c9609(Te,{});case c[_0x26cbc6(0x19b)]:return _0x3c9609(Ae,{'coordinator':_0xf50fe7});default:return null;}}function $e(_0x15af16){const _0x11277f=_0x5210d7,{coordinator:_0x439776}=_0x15af16;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x11277f(0x154),{'className':_0x11277f(0x179),'children':_0x11277f(0x17b)}),_0x3c9609(_0x36de3c,{'onClick':()=>_0x439776[_0x11277f(0x1ec)](),'children':'Start'})]});}function xe(_0x2661e3){const _0x13c560=_0x5210d7,{coordinator:_0x533556}=_0x2661e3;return _0x586ffe(_0x23c578,{'children':[_0x3c9609('div',{'className':_0x13c560(0x179),'children':_0x13c560(0x19d)}),_0x3c9609(_0x36de3c,{'onClick':()=>_0x533556['stopFollowing'](),'children':_0x13c560(0x1b2)})]});}function Pe(_0x3e3bff){const _0x550eed=_0x5210d7,{coordinator:_0x2afc3}=_0x3e3bff;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x550eed(0x154),{'className':_0x550eed(0x179),'children':_0x550eed(0x1b6)}),_0x3c9609(_0x36de3c,{'variant':_0x550eed(0x184),'onClick':()=>_0x2afc3[_0x550eed(0x189)](),'children':'Start\x20following'})]});}function Ae(_0x48d57e){const _0x21557a=_0x5210d7,{coordinator:_0x4aaefa}=_0x48d57e;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x21557a(0x154),{'className':_0x21557a(0x179),'children':_0x21557a(0x156)}),_0x3c9609(_0x36de3c,{'variant':_0x21557a(0x1f2),'onClick':()=>_0x4aaefa[_0x21557a(0x1af)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3c9609(_0x23c578,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1be718,_0x26cc99,_0x366165,_0x5de449)=>{const _0x1edc65=_0x5210d7;for(var _0x5d43d1=_0x5de449>0x1?void 0x0:_0x5de449?Fe(_0x26cc99,_0x366165):_0x26cc99,_0x728837=_0x1be718[_0x1edc65(0x186)]-0x1,_0x4777bb;_0x728837>=0x0;_0x728837--)(_0x4777bb=_0x1be718[_0x728837])&&(_0x5d43d1=_0x4777bb(_0x5d43d1)||_0x5d43d1);return _0x5d43d1;},A=(_0x5bbb00,_0x4cc75a)=>(_0xcdd063,_0x143f0b)=>_0x4cc75a(_0xcdd063,_0x143f0b,_0x5bbb00);let m=class extends _0x26ec19{constructor(_0x57fd07,_0x48fd58){const _0x286649=_0x5210d7;super(),this[_0x286649(0x15c)]=_0x57fd07,this['_uiPartsService']=_0x48fd58,this[_0x286649(0x1d2)]();}[_0x5210d7(0x1d2)](){const _0x1cad6a=_0x5210d7;this[_0x1cad6a(0x19a)](this[_0x1cad6a(0x175)][_0x1cad6a(0x1f3)](_0x35793d[_0x1cad6a(0x1bd)],()=>_0x28c316(Le,this[_0x1cad6a(0x15c)])));}};m=He([A(0x0,_0x3d8a6b(_0x4b36e6)),A(0x1,_0x412319)],m);const ye=_0x5210d7(0x1a1),T={};var Ue=Object[_0x5210d7(0x155)],Ve=(_0x4c2b20,_0x1aa745,_0x350b68,_0x47fa59)=>{for(var _0x5e2cfd=_0x47fa59>0x1?void 0x0:_0x47fa59?Ue(_0x1aa745,_0x350b68):_0x1aa745,_0x3a17b9=_0x4c2b20['length']-0x1,_0x2a1a26;_0x3a17b9>=0x0;_0x3a17b9--)(_0x2a1a26=_0x4c2b20[_0x3a17b9])&&(_0x5e2cfd=_0x2a1a26(_0x5e2cfd)||_0x5e2cfd);return _0x5e2cfd;},je=(_0x18f727,_0x1fa658)=>(_0x2e118a,_0x58222a)=>_0x1fa658(_0x2e118a,_0x58222a,_0x18f727);function _0x381b(){const _0xcd139=['use','event$','stopPresenting','ONLINE','_collabSession','Stop\x20following','stopFollowing','get','symbol','You\x27re\x20not\x20following\x20the\x20presenter','map','string','displayName','mutations','OFFLINE','getMemberID','HEADER_MENU','add','_collabSessionService','3VHRaZO','not-following','582022NlbrVc','toString','dispose$','_liveShareService','setConfig','idle','colorChannel1','includes','clear','following','_config','offline','complete','getTypeOfUnitAdded$','_status$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_mountLiveShare','univer-size-4','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','executeCommand','getCurrentTypeOfUnit$','getUnitId','_handleNewHost','data','asObservable','8UhTOul','delete','pipe','children','init','3832998uMiXvr','onStarting','_startLiveShareCoordinator','send','path','_stopPresenting','attrs','_unitID','override','mask','onCommandExecuted','createInstance','tryStartPresenting','125004cEsWNO','replace','2fiVpFS','random','_sharedOperations','default','registerComponent','trim','onRendered','NOT_FOLLOWING','_reporters','3355jiCxQH','88968dRtRpV','currentColor','_handleOffline','_beIdle','end','getLiveShareCoordinator','registerInitialStateReporter','UNIVER_SHEET','div','getOwnPropertyDescriptor','You\x27re\x20presenting\x20the\x20document','next','status$','99114YnkSOo','getInitialStates','5edDPKS','_injector','sessionStatus$','entries','idSuffix','none','evenodd','_init','from','getStatus','_handleOnline','params','_handleNewChangeSets','then','univerjs-icon\x20univerjs-icon-','xlink:href','_commandService','IDLE','set','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','_status','getLiveShareCoordinatorSync','_handleTerminate','defs','3552xcYFUz','LiveShareIcon','_uiPartsService','UNIVER_UNKNOWN','live-share-icon','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','stringify','Present\x20this\x20document','find','_configService','1em','_entities','reverse','_fetchOperations','presenting','registerSharedOperation','text','UNIVER_LIVE_SHARE_PLUGIN','length','getValue','1903010nvMZvK','startFollowing','unitId','url(#$1','sheet','_presenter','type','LIVESHARE_OPERATION','button','9jaqeRT','_handleOperation','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','FOLLOWING','_startFollowing','fill','tag','has','disposeWithMe','PRESENTING','forEach','You\x27re\x20following\x20the\x20presenter','current','shouldShareOperation','dispose','live-share.config','_commandDisposable','presenter','_startPresenting','0\x200\x2017\x2017','defIds','subscribe','operations','UniverIcon','parse','_univerInstanceService','_stopFollowing'];_0x381b=function(){return _0xcd139;};return _0x381b();}let I=class extends _0x26ec19{constructor(_0x5bad3f){const _0x5565a7=_0x5210d7;super(),this['_liveShareService']=_0x5bad3f,this[_0x5565a7(0x162)]();}[_0x5210d7(0x162)](){[_0x196e1f['id'],_0x23af8d['id'],_0x205ccb['id']]['forEach'](_0x48d12f=>{const _0x22dd88=_0x243a;this[_0x22dd88(0x19a)](this[_0x22dd88(0x1c5)][_0x22dd88(0x183)](_0x48d12f));});}};I=Ve([je(0x0,_0x3d8a6b(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25e61b,_0x5a950c,_0x1a969b)=>_0x5a950c in _0x25e61b?Me(_0x25e61b,_0x5a950c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a969b}):_0x25e61b[_0x5a950c]=_0x1a969b,We=(_0x23fb47,_0x530363,_0x396b18,_0x39f078)=>{const _0x7fbc35=_0x5210d7;for(var _0x5a2dc3=_0x39f078>0x1?void 0x0:_0x39f078?ke(_0x530363,_0x396b18):_0x530363,_0xc3912c=_0x23fb47[_0x7fbc35(0x186)]-0x1,_0x4f7229;_0xc3912c>=0x0;_0xc3912c--)(_0x4f7229=_0x23fb47[_0xc3912c])&&(_0x5a2dc3=_0x4f7229(_0x5a2dc3)||_0x5a2dc3);return _0x5a2dc3;},F=(_0x33a14e,_0x3c5f0c)=>(_0x30e37a,_0x26c1ed)=>_0x3c5f0c(_0x30e37a,_0x26c1ed,_0x33a14e),B=(_0x25cb05,_0x4b9069,_0x17b1c1)=>Ge(_0x25cb05,typeof _0x4b9069!=_0x5210d7(0x1b5)?_0x4b9069+'':_0x4b9069,_0x17b1c1);const Ye=_0x5210d7(0x185);let b=class extends _0x549e68{constructor(_0x1b17e6=T,_0x2854e8,_0x3aeeba){const _0x38f31d=_0x5210d7;super(),this['_config']=_0x1b17e6,this[_0x38f31d(0x15c)]=_0x2854e8,this[_0x38f31d(0x17d)]=_0x3aeeba;const {..._0x5e252c}=_0x1c7e83({},T,this['_config']);this[_0x38f31d(0x17d)][_0x38f31d(0x1c6)](ye,_0x5e252c);}[_0x5210d7(0x1e1)](){const _0x3db5f5=_0x5210d7;_0x305e89(this[_0x3db5f5(0x15c)],_0x2c31e8([[L],[S],[I],[m]],this[_0x3db5f5(0x1cc)][_0x3db5f5(0x1e8)])),_0x222335(this[_0x3db5f5(0x15c)],[[I]]);}[_0x5210d7(0x1f5)](){_0x222335(this['_injector'],[[m]]);}};function _0x243a(_0x3236a3,_0x154c21){const _0x381b9f=_0x381b();return _0x243a=function(_0x243aad,_0x178ab9){_0x243aad=_0x243aad-0x14a;let _0x220098=_0x381b9f[_0x243aad];return _0x220098;},_0x243a(_0x3236a3,_0x154c21);}B(b,_0x5210d7(0x18e),_0x50febc[_0x5210d7(0x176)]),B(b,'pluginName',Ye),b=We([_0x1ec694(_0x302e04),F(0x1,_0x3d8a6b(_0x4b36e6)),F(0x2,_0xf5ea42)],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 _0x19df(_0x21c1f6,_0x4cb8af){const _0x33afa6=_0x33af();return _0x19df=function(_0x19df53,_0x114607){_0x19df53=_0x19df53-0x1e5;let _0x1445fa=_0x33afa6[_0x19df53];return _0x1445fa;},_0x19df(_0x21c1f6,_0x4cb8af);}function _0x33af(){const _0x3430e4=['FUniver','stopPresenting','LiveShareStatusEnum','20GuPDOR','FRange','IDLE','UniverSheets','getStatus','230592OEbbfE','getLiveShareStatus','object','amd','3127932XzIhGT','@univerjs/sheets-ui','FEnum','startPresenting','getSheetId','No\x20active\x20workbook\x20found.','tryStartPresenting','syncExecuteCommand','SetScrollOperation','getActiveWorkbook','195PmhBFj','getUnitId','@univerjs/core/facade','9184ySayTD','4903965ZsQtEC','get','startFollowing','5242952kOkVFw','function','startColumn','@univerjs/engine-render','UniverSheetsFacade','startRow','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs-pro/live-share','_injector','SetWorksheetActiveOperation','UniverEngineRender','4255944HkcQzB','LiveShareStatus','UniverCoreFacade','@univerjs/sheets','375056lBLNrj','_initialize','stopFollowing','getId','LiveShareController','getLiveShareCoordinatorSync'];_0x33af=function(){return _0x3430e4;};return _0x33af();}(function(_0x504df0,_0x1a600f){const _0x394723=_0x19df,_0x59e943=_0x504df0();while(!![]){try{const _0x26b00e=parseInt(_0x394723(0x1fa))/0x1+-parseInt(_0x394723(0x1e6))/0x2*(-parseInt(_0x394723(0x216))/0x3)+-parseInt(_0x394723(0x20c))/0x4+parseInt(_0x394723(0x203))/0x5*(-parseInt(_0x394723(0x208))/0x6)+parseInt(_0x394723(0x1f6))/0x7+parseInt(_0x394723(0x1ea))/0x8+-parseInt(_0x394723(0x1e7))/0x9;if(_0x26b00e===_0x1a600f)break;else _0x59e943['push'](_0x59e943['shift']());}catch(_0x5511d9){_0x59e943['push'](_0x59e943['shift']());}}}(_0x33af,0x6f66d),function(_0x461e25,_0x5e2f38){const _0x13ae40=_0x19df;typeof exports==_0x13ae40(0x20a)&&typeof module<'u'?_0x5e2f38(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==_0x13ae40(0x1eb)&&define[_0x13ae40(0x20b)]?define([_0x13ae40(0x1f2),_0x13ae40(0x1ed),_0x13ae40(0x1f9),_0x13ae40(0x20d),'@univerjs/sheets/facade',_0x13ae40(0x1e5)],_0x5e2f38):(_0x461e25=typeof globalThis<'u'?globalThis:_0x461e25||self,_0x5e2f38(_0x461e25['UniverProLiveShare'],_0x461e25[_0x13ae40(0x1f5)],_0x461e25[_0x13ae40(0x206)],_0x461e25['UniverSheetsUi'],_0x461e25[_0x13ae40(0x1ee)],_0x461e25[_0x13ae40(0x1f8)]));}(this,function(_0x2e1c30,_0x5e448b,_0x1c0854,_0xa5c91b,_0x5e53a1,_0x19c280){'use strict';const _0x53d414=_0x19df;class _0x238bfc extends _0x5e53a1['FRange']{[_0x53d414(0x1fb)](_0xaa955f,_0x215256,_0x357143,_0x4d1f8d,_0x59f308){const _0x21c29=_0x53d414,_0x430be5=_0xaa955f[_0x21c29(0x1e8)](_0x2e1c30['LiveShareController']),_0x4704ff=_0xaa955f['get'](_0x5e448b['IRenderManagerService']),_0x32d962=_0x215256[_0x21c29(0x217)](),_0x2bae12=_0x215256['getActiveSheet'](),_0x407e0d=_0x430be5['getLiveShareCoordinatorSync'](_0x32d962);(_0x407e0d==null?void 0x0:_0x407e0d[_0x21c29(0x207)]())!==_0x2e1c30[_0x21c29(0x1f7)]['PRESENTING']||(_0x357143[_0x21c29(0x210)]()!==_0x2bae12[_0x21c29(0x210)]()&&this['_commandService']['executeCommand'](_0x1c0854[_0x21c29(0x1f4)]['id'],{'unitId':_0x32d962,'subUnitId':_0x357143['getSheetId']()}),!_0x4704ff['getRenderById'](_0x32d962))||_0x59f308[_0x21c29(0x213)](_0xa5c91b[_0x21c29(0x214)]['id'],{'unitId':_0x215256['getUnitId'](),'sheetId':_0x357143[_0x21c29(0x210)](),'sheetViewStartRow':_0x4d1f8d[_0x21c29(0x1ef)],'sheetViewStartColumn':_0x4d1f8d[_0x21c29(0x1ec)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5e53a1[_0x53d414(0x204)][_0x53d414(0x1f0)](_0x238bfc);class _0x291fc1 extends _0x19c280['FUniver']{[_0x53d414(0x209)](){const _0x590555=_0x53d414;var _0x1a211d,_0x48ceb7;const _0x1901ff=this[_0x590555(0x1f3)][_0x590555(0x1e8)](_0x2e1c30[_0x590555(0x1fe)]),_0x134c5c=(_0x1a211d=this[_0x590555(0x215)]())==null?void 0x0:_0x1a211d[_0x590555(0x1fd)]();if(!_0x134c5c)throw new Error('No\x20active\x20workbook\x20found.');const _0x47930a=_0x1901ff[_0x590555(0x1ff)](_0x134c5c);return(_0x48ceb7=_0x47930a==null?void 0x0:_0x47930a['getStatus']())!=null?_0x48ceb7:_0x2e1c30[_0x590555(0x1f7)][_0x590555(0x205)];}['startFollowing'](){const _0x36dc58=_0x53d414;var _0xe996a3;const _0x5b0a91=this['_injector'][_0x36dc58(0x1e8)](_0x2e1c30['LiveShareController']),_0x188b69=(_0xe996a3=this['getActiveWorkbook']())==null?void 0x0:_0xe996a3['getId']();if(!_0x188b69)throw new Error(_0x36dc58(0x211));const _0x2c6f9f=_0x5b0a91[_0x36dc58(0x1ff)](_0x188b69);if(!_0x2c6f9f)throw new Error(_0x36dc58(0x1f1));_0x2c6f9f[_0x36dc58(0x1e9)]();}[_0x53d414(0x1fc)](){const _0x4f6b0d=_0x53d414;var _0x5e1601;const _0x3085e9=this['_injector'][_0x4f6b0d(0x1e8)](_0x2e1c30[_0x4f6b0d(0x1fe)]),_0x36b797=(_0x5e1601=this['getActiveWorkbook']())==null?void 0x0:_0x5e1601[_0x4f6b0d(0x1fd)]();if(!_0x36b797)throw new Error('No\x20active\x20workbook\x20found.');const _0x1ae743=_0x3085e9[_0x4f6b0d(0x1ff)](_0x36b797);if(!_0x1ae743)throw new Error(_0x4f6b0d(0x1f1));_0x1ae743[_0x4f6b0d(0x1fc)]();}[_0x53d414(0x20f)](){const _0x387194=_0x53d414;var _0x3cc880;const _0x782215=this[_0x387194(0x1f3)][_0x387194(0x1e8)](_0x2e1c30[_0x387194(0x1fe)]),_0xe260de=(_0x3cc880=this[_0x387194(0x215)]())==null?void 0x0:_0x3cc880[_0x387194(0x1fd)]();if(!_0xe260de)throw new Error(_0x387194(0x211));const _0x5b910b=_0x782215['getLiveShareCoordinatorSync'](_0xe260de);if(!_0x5b910b)throw new Error(_0x387194(0x1f1));_0x5b910b[_0x387194(0x212)]();}[_0x53d414(0x201)](){const _0x3ef90c=_0x53d414;var _0x460b98;const _0x1f5395=this[_0x3ef90c(0x1f3)][_0x3ef90c(0x1e8)](_0x2e1c30[_0x3ef90c(0x1fe)]),_0x1abbc1=(_0x460b98=this[_0x3ef90c(0x215)]())==null?void 0x0:_0x460b98[_0x3ef90c(0x1fd)]();if(!_0x1abbc1)throw new Error(_0x3ef90c(0x211));const _0x3ffa89=_0x1f5395['getLiveShareCoordinatorSync'](_0x1abbc1);if(!_0x3ffa89)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3ffa89[_0x3ef90c(0x201)]();}}_0x19c280[_0x53d414(0x200)][_0x53d414(0x1f0)](_0x291fc1);class _0x319b88 extends _0x19c280[_0x53d414(0x20e)]{get[_0x53d414(0x202)](){return _0x2e1c30['LiveShareStatus'];}}_0x19c280[_0x53d414(0x20e)][_0x53d414(0x1f0)](_0x319b88);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2327ce,_0x44ad43){const _0x216bc5=_0x2dad,_0x3613b6=_0x2327ce();while(!![]){try{const _0x5ad001=parseInt(_0x216bc5(0xb7))/0x1*(-parseInt(_0x216bc5(0x130))/0x2)+-parseInt(_0x216bc5(0x144))/0x3*(parseInt(_0x216bc5(0xb6))/0x4)+-parseInt(_0x216bc5(0x103))/0x5+parseInt(_0x216bc5(0xdd))/0x6+-parseInt(_0x216bc5(0xb5))/0x7*(-parseInt(_0x216bc5(0x12b))/0x8)+parseInt(_0x216bc5(0x14e))/0x9+-parseInt(_0x216bc5(0x105))/0xa;if(_0x5ad001===_0x44ad43)break;else _0x3613b6['push'](_0x3613b6['shift']());}catch(_0x2dbcfe){_0x3613b6['push'](_0x3613b6['shift']());}}}(_0x5656,0x53a4f),function(_0x455248,_0x306329){const _0x48d969=_0x2dad;typeof exports==_0x48d969(0xf6)&&typeof module<'u'?_0x306329(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==_0x48d969(0x95)&&define['amd']?define(['exports',_0x48d969(0x96),'@univerjs/ui','react/jsx-runtime',_0x48d969(0x120),_0x48d969(0xb9),'@univerjs-pro/collaboration',_0x48d969(0x12d),_0x48d969(0x13a),_0x48d969(0x121),_0x48d969(0x10c),'@univerjs/sheets-ui'],_0x306329):(_0x455248=typeof globalThis<'u'?globalThis:_0x455248||self,_0x306329(_0x455248[_0x48d969(0x110)]={},_0x455248[_0x48d969(0xed)],_0x455248[_0x48d969(0xc5)],_0x455248[_0x48d969(0xeb)],_0x455248[_0x48d969(0x115)],_0x455248[_0x48d969(0xeb)],_0x455248[_0x48d969(0x93)],_0x455248[_0x48d969(0x8d)],_0x455248[_0x48d969(0x82)],_0x455248[_0x48d969(0x121)],_0x455248['rxjs'][_0x48d969(0xec)],_0x455248[_0x48d969(0x135)]));}(this,function(_0xa82969,_0x471260,_0x17fe0e,_0x5c9582,_0x25eccf,_0x55d151,_0x13266d,_0xa8945f,_0x184adf,_0x5ea4fc,_0x5490e0,_0x553bfb){'use strict';const _0x57b540=_0x2dad;var _0x305b4c=Object['defineProperty'],_0xd1a594=(_0x54a464,_0x195423,_0x2a8a4e)=>_0x195423 in _0x54a464?_0x305b4c(_0x54a464,_0x195423,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a8a4e}):_0x54a464[_0x195423]=_0x2a8a4e,_0x4d133d=(_0x3bbde2,_0x54bbb9,_0x2554d6)=>_0xd1a594(_0x3bbde2,typeof _0x54bbb9!=_0x57b540(0x125)?_0x54bbb9+'':_0x54bbb9,_0x2554d6);function _0x57b138({ref:_0xc5e897,..._0x527623}){const _0x1140c3=_0x57b540,{icon:_0x288de1,id:_0x3a704a,className:_0x3b4160,extend:_0x4ec1e8,..._0x435fec}=_0x527623,_0x2d56ba=(_0x1140c3(0x129)+_0x3a704a+'\x20'+(_0x3b4160||''))['trim'](),_0x599cde=_0x55d151['useRef']('_'+_0x46873b());return _0x251bef(_0x288de1,''+_0x3a704a,{'defIds':_0x288de1['defIds'],'idSuffix':_0x599cde[_0x1140c3(0x116)]},{'ref':_0xc5e897,'className':_0x2d56ba,..._0x435fec},_0x4ec1e8);}function _0x251bef(_0xc4df5a,_0x3f8a39,_0x40fca2,_0x28495c,_0x53ffd6){const _0x233c63=_0x57b540;return _0x55d151[_0x233c63(0x92)](_0xc4df5a[_0x233c63(0x101)],{'key':_0x3f8a39,..._0x4c1445(_0xc4df5a,_0x40fca2,_0x53ffd6),..._0x28495c},(_0x34d7ca(_0xc4df5a,_0x40fca2)[_0x233c63(0xf9)]||[])[_0x233c63(0x14a)]((_0x99a82,_0x4fe207)=>_0x251bef(_0x99a82,_0x3f8a39+'-'+_0xc4df5a[_0x233c63(0x101)]+'-'+_0x4fe207,_0x40fca2,void 0x0,_0x53ffd6)));}function _0x4c1445(_0x3cf8ea,_0x25ad50,_0x47c69e){const _0x32aed7=_0x57b540,_0x19f8db={..._0x3cf8ea[_0x32aed7(0xff)]};_0x47c69e!=null&&_0x47c69e['colorChannel1']&&_0x19f8db[_0x32aed7(0x14c)]==='colorChannel1'&&(_0x19f8db[_0x32aed7(0x14c)]=_0x47c69e[_0x32aed7(0xdf)]),_0x3cf8ea[_0x32aed7(0x101)]===_0x32aed7(0x9e)&&_0x19f8db['id']&&(_0x19f8db['id']=_0x19f8db['id']+_0x25ad50['idSuffix']),Object[_0x32aed7(0xa3)](_0x19f8db)[_0x32aed7(0xd4)](([_0x5874ec,_0x3e001f])=>{const _0x5e4832=_0x32aed7;_0x5874ec===_0x5e4832(0x9e)&&typeof _0x3e001f==_0x5e4832(0x11a)&&(_0x19f8db[_0x5874ec]=_0x3e001f['replace'](/url\(#(.*)\)/,_0x5e4832(0xaa)+_0x25ad50['idSuffix']+')'));});const {defIds:_0x229a05}=_0x25ad50;return!_0x229a05||_0x229a05[_0x32aed7(0xe0)]===0x0||(_0x3cf8ea[_0x32aed7(0x101)]===_0x32aed7(0x152)&&_0x19f8db[_0x32aed7(0x99)]&&(_0x19f8db['xlink:href']=_0x19f8db[_0x32aed7(0x99)]+_0x25ad50[_0x32aed7(0x136)]),Object[_0x32aed7(0xa3)](_0x19f8db)['forEach'](([_0x597d92,_0x6c14de])=>{const _0x12a03a=_0x32aed7;typeof _0x6c14de==_0x12a03a(0x11a)&&(_0x19f8db[_0x597d92]=_0x6c14de[_0x12a03a(0xdc)](/url\(#(.*)\)/,_0x12a03a(0xaa)+_0x25ad50['idSuffix']+')'));})),_0x19f8db;}function _0x34d7ca(_0x40a9c8,_0x35166a){const _0xe6ffc1=_0x57b540;var _0x176314;const {defIds:_0x49bbf1}=_0x35166a;return!_0x49bbf1||_0x49bbf1[_0xe6ffc1(0xe0)]===0x0?_0x40a9c8:_0x40a9c8[_0xe6ffc1(0x101)]===_0xe6ffc1(0xe1)&&((_0x176314=_0x40a9c8[_0xe6ffc1(0xf9)])!=null&&_0x176314[_0xe6ffc1(0xe0)])?{..._0x40a9c8,'children':_0x40a9c8[_0xe6ffc1(0xf9)][_0xe6ffc1(0x14a)](_0x3c65d4=>typeof _0x3c65d4[_0xe6ffc1(0xff)]['id']==_0xe6ffc1(0x11a)&&_0x49bbf1&&_0x49bbf1['includes'](_0x3c65d4[_0xe6ffc1(0xff)]['id'])?{..._0x3c65d4,'attrs':{..._0x3c65d4[_0xe6ffc1(0xff)],'id':_0x3c65d4[_0xe6ffc1(0xff)]['id']+_0x35166a[_0xe6ffc1(0x136)]}}:_0x3c65d4)}:_0x40a9c8;}function _0x46873b(){const _0x5430f7=_0x57b540;return Math['random']()[_0x5430f7(0xca)](0x24)[_0x5430f7(0xd1)](0x2,0x8);}_0x57b138[_0x57b540(0xb0)]='UniverIcon';const _0xbab056={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x57b540(0x8e),'height':_0x57b540(0x8e)},'children':[{'tag':_0x57b540(0x77),'attrs':{'fill':_0x57b540(0xe8),'d':_0x57b540(0x7c)}},{'tag':_0x57b540(0x77),'attrs':{'fill':_0x57b540(0xe8),'d':_0x57b540(0xa6),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x10e6e1=_0x55d151[_0x57b540(0xa4)](function(_0x16f43d,_0x22f1fd){const _0x50f834=_0x57b540;return _0x55d151[_0x50f834(0x92)](_0x57b138,Object[_0x50f834(0x10f)]({},_0x16f43d,{'id':_0x50f834(0x142),'ref':_0x22f1fd,'icon':_0xbab056}));});_0x10e6e1[_0x57b540(0xb0)]=_0x57b540(0xc8);class _0x2afda7 extends _0x471260[_0x57b540(0x104)]{constructor(){const _0x1582d0=_0x57b540;super(...arguments),_0x4d133d(this,'_sharedOperations',new Set()),_0x4d133d(this,_0x1582d0(0x102),new Set());}[_0x57b540(0x145)](_0x1a5925){const _0x2eb361=_0x57b540;return this[_0x2eb361(0xbf)][_0x2eb361(0x7d)](_0x1a5925),_0x471260['toDisposable'](()=>this[_0x2eb361(0xbf)][_0x2eb361(0x139)](_0x1a5925));}[_0x57b540(0xe4)](_0x4cb07e){const _0x1917fd=_0x57b540;return this[_0x1917fd(0x102)][_0x1917fd(0x7d)](_0x4cb07e),_0x471260['toDisposable'](()=>this[_0x1917fd(0x102)][_0x1917fd(0x139)](_0x4cb07e));}[_0x57b540(0xf2)](_0x167e15){const _0x140d96=_0x57b540;return this[_0x140d96(0xbf)][_0x140d96(0xa0)](_0x167e15);}[_0x57b540(0x117)](_0x49a257){const _0x2365de=_0x57b540;return Array[_0x2365de(0x141)](this[_0x2365de(0x102)])['map'](_0x4cded7=>_0x4cded7(_0x49a257));}}var _0x996e39=Object[_0x57b540(0xc4)],_0x4eed9c=(_0x48bc7d,_0xf57b4f,_0x1c9471,_0x5766cd)=>{for(var _0xf9e386=_0x5766cd>0x1?void 0x0:_0x5766cd?_0x996e39(_0xf57b4f,_0x1c9471):_0xf57b4f,_0x2f1130=_0x48bc7d['length']-0x1,_0x40eb50;_0x2f1130>=0x0;_0x2f1130--)(_0x40eb50=_0x48bc7d[_0x2f1130])&&(_0xf9e386=_0x40eb50(_0xf9e386)||_0xf9e386);return _0xf9e386;},_0x5be819=(_0xb2aec1,_0x527ae5)=>(_0x2490f1,_0x1e6af5)=>_0x527ae5(_0x2490f1,_0x1e6af5,_0xb2aec1);_0xa82969[_0x57b540(0xc2)]=class extends _0x471260[_0x57b540(0x134)]{constructor(_0x4c12ed,_0x384e89,_0x553371){const _0x5846e9=_0x57b540;super(),_0x4d133d(this,_0x5846e9(0x86),new Map()),(this[_0x5846e9(0xe2)]=_0x4c12ed,this['_injector']=_0x384e89,this[_0x5846e9(0x7e)]=_0x553371,this[_0x5846e9(0x13d)]());}async[_0x57b540(0xae)](_0x54bafb){const _0x1e1c3f=_0x57b540;return this[_0x1e1c3f(0x86)][_0x1e1c3f(0xa0)](_0x54bafb)||await this[_0x1e1c3f(0xee)](_0x54bafb),this['_entities'][_0x1e1c3f(0x8f)](_0x54bafb);}['getLiveShareCoordinatorSync'](_0x121a33){const _0x4f7f83=_0x57b540;var _0x111544;return(_0x111544=this[_0x4f7f83(0x86)]['get'](_0x121a33))!=null?_0x111544:null;}[_0x57b540(0x13d)](){const _0x2043c1=_0x57b540;this[_0x2043c1(0xe2)][_0x2043c1(0xfd)](_0x471260['UniverInstanceType'][_0x2043c1(0xbc)])[_0x2043c1(0xf8)](_0x5490e0[_0x2043c1(0x126)](this[_0x2043c1(0xd6)]))['subscribe'](async _0x2816f7=>{const _0x236406=_0x2043c1,_0x1d519e=_0x2816f7['getUnitId']();this[_0x236406(0x86)][_0x236406(0xa0)](_0x1d519e)||this[_0x236406(0xee)](_0x1d519e);}),this[_0x2043c1(0xe2)][_0x2043c1(0xf3)](_0x471260[_0x2043c1(0x8c)][_0x2043c1(0xbc)])[_0x2043c1(0xf8)](_0x5490e0[_0x2043c1(0x126)](this[_0x2043c1(0xd6)]))[_0x2043c1(0x9c)](_0x1b797a=>{const _0x4906c4=_0x2043c1,_0x1e82fd=_0x1b797a[_0x4906c4(0xd9)](),_0x54f2e3=this[_0x4906c4(0x86)][_0x4906c4(0x8f)](_0x1e82fd);_0x54f2e3==null||_0x54f2e3[_0x4906c4(0x89)]();});}async[_0x57b540(0xee)](_0x56fa52){const _0x585095=_0x57b540,_0x43608a=await this[_0x585095(0x7e)][_0x585095(0x147)](_0x56fa52),_0x39f273=this[_0x585095(0x80)][_0x585095(0x124)](_0xa82969[_0x585095(0x143)],_0x56fa52,_0x43608a);return _0x39f273[_0x585095(0xdb)](),this[_0x585095(0x86)][_0x585095(0xda)](_0x56fa52,_0x39f273),_0x39f273;}},_0xa82969[_0x57b540(0xc2)]=_0x4eed9c([_0x5be819(0x0,_0x471260['IUniverInstanceService']),_0x5be819(0x1,_0x471260['Inject'](_0x471260[_0x57b540(0xf5)])),_0x5be819(0x2,_0x471260[_0x57b540(0xa5)](_0xa8945f[_0x57b540(0xf7)]))],_0xa82969['LiveShareController']);var _0x3a00b7=(_0x40a537=>(_0x40a537[_0x57b540(0xc6)]=_0x57b540(0x11c),_0x40a537[_0x57b540(0xa2)]=_0x57b540(0xc7),_0x40a537['FOLLOWING']=_0x57b540(0x12e),_0x40a537[_0x57b540(0x79)]='not-following',_0x40a537[_0x57b540(0xd7)]=_0x57b540(0xa8),_0x40a537))(_0x3a00b7||{});const _0x42d2ec=_0x57b540(0x7a),_0x5e8f0e=0xc8;_0xa82969[_0x57b540(0x143)]=class extends _0x471260[_0x57b540(0x134)]{constructor(_0x42f602,_0x55da63,_0x4d599d,_0x4b095e,_0x20e2bc){const _0x19a29b=_0x57b540;super(),_0x4d133d(this,'_status$',new _0x5ea4fc[(_0x19a29b(0x85))]('idle')),_0x4d133d(this,_0x19a29b(0x140),this[_0x19a29b(0x123)]['asObservable']()),_0x4d133d(this,'_init',!0x1),_0x4d133d(this,_0x19a29b(0xea),null),_0x4d133d(this,'_presenter',null),(this[_0x19a29b(0x9a)]=_0x42f602,this[_0x19a29b(0xe7)]=_0x55da63,this[_0x19a29b(0x137)]=_0x4d599d,this[_0x19a29b(0xde)]=_0x4b095e,this[_0x19a29b(0xa7)]=_0x20e2bc);}get[_0x57b540(0x11e)](){return this['_status$']['getValue']();}[_0x57b540(0x89)](){const _0x431f71=_0x57b540;var _0x32c369;(_0x32c369=this[_0x431f71(0xea)])==null||_0x32c369[_0x431f71(0x89)](),this[_0x431f71(0x123)][_0x431f71(0x127)](_0x431f71(0xc7)),this['_status$'][_0x431f71(0xb1)]();}[_0x57b540(0x8b)](){return this['_status'];}[_0x57b540(0xdb)](){const _0x9354d0=_0x57b540;this[_0x9354d0(0x13d)]||(this[_0x9354d0(0x13d)]=!0x0,this[_0x9354d0(0xe7)][_0x9354d0(0xcf)][_0x9354d0(0xf8)](_0x5490e0['takeUntil'](this[_0x9354d0(0xd6)]))['subscribe'](_0x179558=>{const _0x34f1a1=_0x9354d0;switch(_0x179558){case _0xa8945f['SessionStatus'][_0x34f1a1(0xc6)]:this[_0x34f1a1(0xe6)]();break;case _0xa8945f[_0x34f1a1(0x11f)][_0x34f1a1(0x128)]:this[_0x34f1a1(0xf4)]();break;}}),this['_collabSession'][_0x9354d0(0xf0)][_0x9354d0(0xf8)](_0x5490e0[_0x9354d0(0x126)](this[_0x9354d0(0xd6)]))[_0x9354d0(0x9c)](_0x4aabc6=>{const _0x320746=_0x9354d0,{eventID:_0x8ef63f}=_0x4aabc6;switch(_0x8ef63f){case _0x13266d[_0x320746(0xd5)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4aabc6);break;case _0x13266d['CollaborationEvent'][_0x320746(0x13f)]:this['_handleOperation'](_0x4aabc6);break;case _0x13266d['CollaborationEvent'][_0x320746(0x10b)]:this['_handleTerminate']();break;case _0x13266d[_0x320746(0xd5)][_0x320746(0x149)]:this[_0x320746(0xa1)](_0x4aabc6);break;}}));}[_0x57b540(0x131)](){const _0x264d88=_0x57b540;this[_0x264d88(0xe7)]['send']({'eventID':_0x13266d[_0x264d88(0xd5)][_0x264d88(0x88)],'data':{'unitID':this['_unitID'],'userID':this[_0x264d88(0xe7)][_0x264d88(0xb2)]()}},this[_0x264d88(0x9a)]);}[_0x57b540(0x12c)](){const _0x361f37=_0x57b540;this[_0x361f37(0x11e)]===_0x361f37(0xa8)&&(this['_status$'][_0x361f37(0x127)](_0x361f37(0xc7)),this[_0x361f37(0xe7)][_0x361f37(0x118)]({'eventID':_0x13266d[_0x361f37(0xd5)][_0x361f37(0x10b)],'data':{'unitID':this[_0x361f37(0x9a)]}},this[_0x361f37(0x9a)]));}[_0x57b540(0xd2)](){const _0x40de29=_0x57b540;this['_status']===_0x40de29(0xc0)&&(this[_0x40de29(0x123)][_0x40de29(0x127)](_0x40de29(0x12e)),this[_0x40de29(0x81)]());}['stopFollowing'](){const _0x54f616=_0x57b540;this['_status']===_0x54f616(0x12e)&&this[_0x54f616(0x11b)]();}['_handleNewHost'](_0x243ee7){const _0x149369=_0x57b540,{presenter:_0x377163}=_0x243ee7['data'],_0x251466=this[_0x149369(0xe7)][_0x149369(0xb2)]();this[_0x149369(0xa9)]=_0x377163,_0x377163===_0x251466?(this[_0x149369(0x11b)](),this[_0x149369(0x83)]()):this[_0x149369(0x11e)]!=='not-following'&&(this[_0x149369(0x9f)](),this['_startFollowing']());}[_0x57b540(0xe5)](){const _0xa92e50=_0x57b540,_0x29a68e={'eventID':_0x13266d['CollaborationEvent'][_0xa92e50(0x7f)]};this[_0xa92e50(0xe7)][_0xa92e50(0x118)](_0x29a68e,this[_0xa92e50(0x9a)]);}[_0x57b540(0xb4)](){const _0x220e8f=_0x57b540;this[_0x220e8f(0xa9)]=null,this[_0x220e8f(0x11e)]!==_0x220e8f(0xa8)&&this[_0x220e8f(0xd3)]();}[_0x57b540(0xa1)](_0x11026b){const _0x3536fc=_0x57b540;if(this[_0x3536fc(0x11e)]===_0x3536fc(0x12e)&&this['_presenter']===_0x11026b[_0x3536fc(0x12a)][_0x3536fc(0x14f)]){const _0x17c1c3=_0x13266d[_0x3536fc(0x109)](_0x11026b[_0x3536fc(0x12a)])['mutations']['reverse']()['find'](_0x4bc834=>_0x4bc834['id']===_0x184adf['InsertSheetMutation']['id']);if(_0x17c1c3){const _0x55d352=_0x17c1c3[_0x3536fc(0x76)][_0x3536fc(0xfe)],_0x20cc6a=_0x17c1c3[_0x3536fc(0x76)][_0x3536fc(0x8a)]['id'];setTimeout(()=>{const _0x554bd9=_0x3536fc;this[_0x554bd9(0xa7)]['executeCommand'](_0x184adf['SetWorksheetActiveOperation']['id'],{'unitId':_0x55d352,'subUnitId':_0x20cc6a},{'fromCollab':!0x0});});}}}[_0x57b540(0x83)](){const _0x45bf7c=_0x57b540;this[_0x45bf7c(0x123)][_0x45bf7c(0x127)](_0x45bf7c(0xa8));const _0x2badd0=new Map(),_0x21f483=this[_0x45bf7c(0xea)]=new _0x471260[(_0x45bf7c(0x119))]();_0x21f483['add'](_0x471260[_0x45bf7c(0xbb)](()=>{const _0x4ed7a5=_0x45bf7c;_0x2badd0[_0x4ed7a5(0xd4)](_0xa8cf04=>_0xa8cf04[_0x4ed7a5(0xb1)]()),_0x2badd0[_0x4ed7a5(0x114)]();})),_0x21f483[_0x45bf7c(0x7d)](this[_0x45bf7c(0xa7)]['onCommandExecuted'](_0x49ba39=>{const _0x544bdb=_0x45bf7c;var _0x15239a;if(_0x49ba39['type']!==_0x471260['CommandType'][_0x544bdb(0xb3)]||!this[_0x544bdb(0xde)][_0x544bdb(0xf2)](_0x49ba39['id']))return;const {id:_0x50a8fc}=_0x49ba39;let _0x5c3820;_0x2badd0['has'](_0x50a8fc)?_0x5c3820=_0x2badd0[_0x544bdb(0x8f)](_0x50a8fc):(_0x5c3820=new _0x5ea4fc[(_0x544bdb(0x106))](),_0x2badd0[_0x544bdb(0xda)](_0x50a8fc,_0x5c3820),_0x5c3820[_0x544bdb(0xf8)](_0x5490e0[_0x544bdb(0x111)]((_0x15239a=this[_0x544bdb(0x137)]['getConfig'](_0x42d2ec))!=null?_0x15239a:_0x5e8f0e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x544bdb(0x9c)](_0x5b0475=>{const _0x442696=_0x544bdb;this['_collabSession'][_0x442696(0x118)]({'eventID':_0x13266d['CollaborationEvent'][_0x442696(0x13f)],'data':{'unitID':this[_0x442696(0x9a)],'operations':{[_0x5b0475['id']]:{'id':_0x5b0475['id'],'params':JSON['stringify'](_0x5b0475[_0x442696(0x76)])}}}},this[_0x442696(0x9a)]);})),_0x5c3820[_0x544bdb(0x127)](_0x49ba39);})),this[_0x45bf7c(0xde)][_0x45bf7c(0x117)](this['_unitID'])[_0x45bf7c(0xd4)](_0x12cb4a=>this[_0x45bf7c(0xe7)][_0x45bf7c(0x118)]({'eventID':_0x13266d[_0x45bf7c(0xd5)][_0x45bf7c(0x13f)],'data':{'unitID':this[_0x45bf7c(0x9a)],'operations':{[_0x12cb4a['id']]:{'id':_0x12cb4a['id'],'params':JSON['stringify'](_0x12cb4a['params'])}}}},this[_0x45bf7c(0x9a)]));}[_0x57b540(0x9f)](){const _0x58e99e=_0x57b540;var _0x53cefc;this[_0x58e99e(0x123)]['next']('idle'),(_0x53cefc=this[_0x58e99e(0xea)])==null||_0x53cefc[_0x58e99e(0x89)](),this[_0x58e99e(0xea)]=null;}[_0x57b540(0x81)](){const _0xd70749=_0x57b540;var _0x1e0c0f;(_0x1e0c0f=this['_commandDisposable'])==null||_0x1e0c0f['dispose'](),this[_0xd70749(0x123)]['next']('following');}[_0x57b540(0xd3)](){const _0x344ff1=_0x57b540;var _0x1a12f5;this[_0x344ff1(0x123)][_0x344ff1(0x127)](_0x344ff1(0xc7)),(_0x1a12f5=this['_commandDisposable'])==null||_0x1a12f5[_0x344ff1(0x89)](),this[_0x344ff1(0xea)]=null;}[_0x57b540(0x11b)](){const _0xd3aebc=_0x57b540;var _0x1eba7a;this[_0xd3aebc(0x123)][_0xd3aebc(0x127)]('not-following'),(_0x1eba7a=this[_0xd3aebc(0xea)])==null||_0x1eba7a[_0xd3aebc(0x89)]();}['_handleOperation'](_0x1e226b){const _0x2e15e0=_0x57b540;if(['presenting',_0x2e15e0(0xc0),_0x2e15e0(0x11c)][_0x2e15e0(0xce)](this[_0x2e15e0(0x11e)])||!_0x1e226b[_0x2e15e0(0x12a)][_0x2e15e0(0xfc)]||_0x1e226b[_0x2e15e0(0x12a)][_0x2e15e0(0xfc)]===this[_0x2e15e0(0xe7)][_0x2e15e0(0xb2)]())return;this[_0x2e15e0(0x11e)]===_0x2e15e0(0xc7)&&this['_startFollowing']();const _0x32afd9=_0x1e226b[_0x2e15e0(0x12a)]['operations'];Object['values'](_0x32afd9)[_0x2e15e0(0xd4)](_0x1a5611=>{const _0x1dd9e7=_0x2e15e0;this['_commandService'][_0x1dd9e7(0xb8)](_0x1a5611['id'],_0x1a5611['params']?JSON[_0x1dd9e7(0x11d)](_0x1a5611[_0x1dd9e7(0x76)]):null,{'fromCollab':!0x0});});}[_0x57b540(0xe6)](){const _0x30da74=_0x57b540;var _0x71e20b;this[_0x30da74(0x123)][_0x30da74(0x127)]('offline'),(_0x71e20b=this[_0x30da74(0xea)])==null||_0x71e20b[_0x30da74(0x89)]();}['_handleOnline'](){const _0x5bb96b=_0x57b540;this[_0x5bb96b(0x123)][_0x5bb96b(0x127)](_0x5bb96b(0xc7)),this[_0x5bb96b(0xe5)]();}},_0xa82969[_0x57b540(0x143)]=_0x4eed9c([_0x5be819(0x2,_0x471260['IConfigService']),_0x5be819(0x3,_0x471260['Inject'](_0x2afda7)),_0x5be819(0x4,_0x471260['ICommandService'])],_0xa82969['LiveShareCoordinator']);function _0x184d91(){const _0x128779=_0x57b540,_0x331b19=_0x17fe0e[_0x128779(0xe9)](_0xa82969[_0x128779(0xc2)]),_0x538433=_0x17fe0e[_0x128779(0xe9)](_0x471260[_0x128779(0x10d)]),_0x239d75=_0x17fe0e['useObservable'](()=>_0x538433[_0x128779(0x107)](_0x471260[_0x128779(0x8c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fb265,_0x3cf63e]=_0x55d151[_0x128779(0x84)](null),[_0x3bbdca,_0x4e6394]=_0x55d151[_0x128779(0x84)](_0x3a00b7[_0x128779(0xa2)]),_0x3ba8b4=_0x55d151[_0x128779(0xd0)](null);return _0x55d151[_0x128779(0xcc)](()=>(_0x239d75&&_0x331b19['getLiveShareCoordinator'](_0x239d75[_0x128779(0xd9)]())['then'](_0x3c9745=>{const _0x38b14b=_0x128779;_0x3cf63e(_0x3c9745),_0x3ba8b4[_0x38b14b(0x116)]=_0x3c9745[_0x38b14b(0x140)][_0x38b14b(0x9c)](_0x3008e3=>{_0x4e6394(_0x3008e3);});}),()=>{const _0xcc9f60=_0x128779;var _0x3f0404;(_0x3f0404=_0x3ba8b4[_0xcc9f60(0x116)])==null||_0x3f0404['unsubscribe'](),_0x3ba8b4[_0xcc9f60(0x116)]=null;}),[_0x239d75,_0x331b19]),_0x3fb265?_0x5c9582['jsx'](_0x25eccf['Dropdown'],{'align':'end','disabled':_0x3bbdca===_0x3a00b7[_0x128779(0xc6)],'className':_0x128779(0x14b),'overlay':_0x5c9582[_0x128779(0x10e)](_0x18779d,{'status':_0x3bbdca,'coordinator':_0x3fb265}),'children':_0x5c9582[_0x128779(0x10e)](_0x128779(0xaf),{'className':_0x25eccf['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3bbdca===_0x3a00b7[_0x128779(0xc6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3bbdca!==_0x3a00b7['OFFLINE']}),'type':_0x128779(0xaf),'children':_0x5c9582[_0x128779(0x10e)](_0x10e6e1,{'className':_0x128779(0x90)})})}):null;}function _0x18779d(_0x525a31){const _0x19d3fe=_0x57b540,{status:_0x36bb85,coordinator:_0x48210a}=_0x525a31;switch(_0x36bb85){case _0x3a00b7[_0x19d3fe(0xa2)]:return _0x5c9582[_0x19d3fe(0x10e)](_0x2c7c39,{'coordinator':_0x48210a});case _0x3a00b7[_0x19d3fe(0xbd)]:return _0x5c9582[_0x19d3fe(0x10e)](_0x17e154,{'coordinator':_0x48210a});case _0x3a00b7[_0x19d3fe(0x79)]:return _0x5c9582['jsx'](_0x38fe6c,{'coordinator':_0x48210a});case _0x3a00b7[_0x19d3fe(0xc6)]:return _0x5c9582[_0x19d3fe(0x10e)](_0x56c851,{});case _0x3a00b7[_0x19d3fe(0xd7)]:return _0x5c9582['jsx'](_0xcc5f6d,{'coordinator':_0x48210a});default:return null;}}function _0x2c7c39(_0xdcdbc2){const _0x29e803=_0x57b540,{coordinator:_0x57b933}=_0xdcdbc2;return _0x5c9582['jsxs'](_0x5c9582[_0x29e803(0xc3)],{'children':[_0x5c9582[_0x29e803(0x10e)](_0x29e803(0x108),{'className':_0x29e803(0x94),'children':_0x29e803(0x7b)}),_0x5c9582[_0x29e803(0x10e)](_0x25eccf[_0x29e803(0xe3)],{'onClick':()=>_0x57b933[_0x29e803(0x131)](),'children':_0x29e803(0x122)})]});}function _0x17e154(_0x160e8a){const _0x2185b1=_0x57b540,{coordinator:_0x1c5f7f}=_0x160e8a;return _0x5c9582['jsxs'](_0x5c9582[_0x2185b1(0xc3)],{'children':[_0x5c9582[_0x2185b1(0x10e)](_0x2185b1(0x108),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x5c9582[_0x2185b1(0x10e)](_0x25eccf[_0x2185b1(0xe3)],{'onClick':()=>_0x1c5f7f[_0x2185b1(0x78)](),'children':_0x2185b1(0xac)})]});}function _0x38fe6c(_0x41dbd9){const _0x481521=_0x57b540,{coordinator:_0x4c4466}=_0x41dbd9;return _0x5c9582[_0x481521(0xef)](_0x5c9582[_0x481521(0xc3)],{'children':[_0x5c9582['jsx'](_0x481521(0x108),{'className':_0x481521(0x94),'children':_0x481521(0x97)}),_0x5c9582['jsx'](_0x25eccf[_0x481521(0xe3)],{'variant':_0x481521(0x10a),'onClick':()=>_0x4c4466[_0x481521(0xd2)](),'children':_0x481521(0xf1)})]});}function _0xcc5f6d(_0x3d141c){const _0x1e19ef=_0x57b540,{coordinator:_0x5a0919}=_0x3d141c;return _0x5c9582[_0x1e19ef(0xef)](_0x5c9582['Fragment'],{'children':[_0x5c9582['jsx'](_0x1e19ef(0x108),{'className':_0x1e19ef(0x94),'children':_0x1e19ef(0x151)}),_0x5c9582[_0x1e19ef(0x10e)](_0x25eccf['Button'],{'variant':_0x1e19ef(0x98),'onClick':()=>_0x5a0919['stopPresenting'](),'children':_0x1e19ef(0xc1)})]});}function _0x56c851(){const _0x2b0a94=_0x57b540;return _0x5c9582[_0x2b0a94(0x10e)](_0x5c9582[_0x2b0a94(0xc3)],{'children':_0x2b0a94(0x13b)});}var _0x3c4a95=Object[_0x57b540(0xc4)],_0x5d3d48=(_0x17cfb7,_0x5bfd58,_0x4de284,_0x483372)=>{const _0x202eec=_0x57b540;for(var _0x50cadc=_0x483372>0x1?void 0x0:_0x483372?_0x3c4a95(_0x5bfd58,_0x4de284):_0x5bfd58,_0x5eb31e=_0x17cfb7[_0x202eec(0xe0)]-0x1,_0x4b24d7;_0x5eb31e>=0x0;_0x5eb31e--)(_0x4b24d7=_0x17cfb7[_0x5eb31e])&&(_0x50cadc=_0x4b24d7(_0x50cadc)||_0x50cadc);return _0x50cadc;},_0x27f8f6=(_0x5ddad0,_0x3b7dbe)=>(_0xf4e1f3,_0x4bc17d)=>_0x3b7dbe(_0xf4e1f3,_0x4bc17d,_0x5ddad0);_0xa82969['DesktopLiveShareController']=class extends _0x471260[_0x57b540(0x104)]{constructor(_0x5d3760,_0x733404){const _0x263cd2=_0x57b540;super(),this[_0x263cd2(0x80)]=_0x5d3760,this[_0x263cd2(0x133)]=_0x733404,this[_0x263cd2(0x13c)]();}['_mountLiveShare'](){const _0x430877=_0x57b540;this['disposeWithMe'](this[_0x430877(0x133)][_0x430877(0xbe)](_0x17fe0e['BuiltInUIPart'][_0x430877(0xad)],()=>_0x17fe0e[_0x430877(0x148)](_0x184d91,this[_0x430877(0x80)])));}},_0xa82969['DesktopLiveShareController']=_0x5d3d48([_0x27f8f6(0x0,_0x471260[_0x57b540(0xa5)](_0x471260[_0x57b540(0xf5)])),_0x27f8f6(0x1,_0x17fe0e['IUIPartsService'])],_0xa82969[_0x57b540(0x87)]);const _0x5b2939=_0x57b540(0xcd),_0x40ee10={};var _0x56b3fc=Object[_0x57b540(0xc4)],_0x2cfb8f=(_0x14d961,_0x597a5b,_0x4a6ec6,_0x20175e)=>{const _0x356767=_0x57b540;for(var _0x4683d6=_0x20175e>0x1?void 0x0:_0x20175e?_0x56b3fc(_0x597a5b,_0x4a6ec6):_0x597a5b,_0x4e4eeb=_0x14d961[_0x356767(0xe0)]-0x1,_0x4318f1;_0x4e4eeb>=0x0;_0x4e4eeb--)(_0x4318f1=_0x14d961[_0x4e4eeb])&&(_0x4683d6=_0x4318f1(_0x4683d6)||_0x4683d6);return _0x4683d6;},_0x1ae1d9=(_0x486d42,_0x3931bf)=>(_0x3cc906,_0xd34f11)=>_0x3931bf(_0x3cc906,_0xd34f11,_0x486d42);let _0x20fb38=class extends _0x471260[_0x57b540(0x104)]{constructor(_0x1789e1){const _0x5fb372=_0x57b540;super(),this[_0x5fb372(0xde)]=_0x1789e1,this[_0x5fb372(0x13d)]();}[_0x57b540(0x13d)](){const _0x4222d2=_0x57b540;[_0x553bfb[_0x4222d2(0x138)]['id'],_0x553bfb['SetScrollOperation']['id'],_0x184adf['SetWorksheetActiveOperation']['id']]['forEach'](_0x286fd6=>{const _0x386667=_0x4222d2;this[_0x386667(0x12f)](this[_0x386667(0xde)][_0x386667(0x145)](_0x286fd6));});}};_0x20fb38=_0x2cfb8f([_0x1ae1d9(0x0,_0x471260[_0x57b540(0xa5)](_0x2afda7))],_0x20fb38);var _0x4cee03=Object[_0x57b540(0xc9)],_0x1d84a2=Object[_0x57b540(0xc4)],_0x22edbb=(_0x100df7,_0x5685f6,_0x18971f)=>_0x5685f6 in _0x100df7?_0x4cee03(_0x100df7,_0x5685f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18971f}):_0x100df7[_0x5685f6]=_0x18971f,_0x4a6690=(_0x1dee32,_0x1293f8,_0x5527df,_0x390a5b)=>{const _0x4284dc=_0x57b540;for(var _0x115db5=_0x390a5b>0x1?void 0x0:_0x390a5b?_0x1d84a2(_0x1293f8,_0x5527df):_0x1293f8,_0x3de3b8=_0x1dee32[_0x4284dc(0xe0)]-0x1,_0xe119ae;_0x3de3b8>=0x0;_0x3de3b8--)(_0xe119ae=_0x1dee32[_0x3de3b8])&&(_0x115db5=_0xe119ae(_0x115db5)||_0x115db5);return _0x115db5;},_0x17a3a5=(_0x14a6a2,_0x49fb55)=>(_0x5fb119,_0x1781f5)=>_0x49fb55(_0x5fb119,_0x1781f5,_0x14a6a2),_0x11dac0=(_0x5363ac,_0x3753a,_0x2ba09e)=>_0x22edbb(_0x5363ac,typeof _0x3753a!='symbol'?_0x3753a+'':_0x3753a,_0x2ba09e);const _0x31e059=_0x57b540(0x100);_0xa82969['UniverLiveSharePlugin']=class extends _0x471260['Plugin']{constructor(_0x19eef=_0x40ee10,_0x472f78,_0x3d52f7){const _0x29d649=_0x57b540;super(),this[_0x29d649(0x14d)]=_0x19eef,this[_0x29d649(0x80)]=_0x472f78,this[_0x29d649(0x137)]=_0x3d52f7;const {..._0x2f9623}=_0x471260[_0x29d649(0x112)]({},_0x40ee10,this['_config']);this[_0x29d649(0x137)]['setConfig'](_0x5b2939,_0x2f9623);}[_0x57b540(0xd8)](){const _0x4d2b7c=_0x57b540;_0x471260[_0x4d2b7c(0x132)](this[_0x4d2b7c(0x80)],_0x471260[_0x4d2b7c(0x153)]([[_0x2afda7],[_0xa82969[_0x4d2b7c(0xc2)]],[_0x20fb38],[_0xa82969[_0x4d2b7c(0x87)]]],this[_0x4d2b7c(0x14d)][_0x4d2b7c(0xfb)])),_0x471260[_0x4d2b7c(0xab)](this[_0x4d2b7c(0x80)],[[_0x20fb38]]);}[_0x57b540(0x13e)](){const _0x2845de=_0x57b540;_0x471260[_0x2845de(0xab)](this[_0x2845de(0x80)],[[_0xa82969[_0x2845de(0x87)]]]);}},_0x11dac0(_0xa82969[_0x57b540(0x146)],_0x57b540(0x9d),_0x471260[_0x57b540(0x8c)][_0x57b540(0x113)]),_0x11dac0(_0xa82969[_0x57b540(0x146)],'pluginName',_0x31e059),_0xa82969[_0x57b540(0x146)]=_0x4a6690([_0x471260[_0x57b540(0xba)](_0xa8945f[_0x57b540(0x9b)]),_0x17a3a5(0x1,_0x471260['Inject'](_0x471260[_0x57b540(0xf5)])),_0x17a3a5(0x2,_0x471260[_0x57b540(0x150)])],_0xa82969[_0x57b540(0x146)]),_0xa82969[_0x57b540(0xfa)]=_0x184d91,_0xa82969['LiveShareService']=_0x2afda7,_0xa82969[_0x57b540(0xcb)]=_0x3a00b7,Object['defineProperty'](_0xa82969,Symbol['toStringTag'],{'value':_0x57b540(0x91)});}));function _0x2dad(_0x21a7d4,_0x457f63){const _0x5656d3=_0x5656();return _0x2dad=function(_0x2dadf8,_0x3713ae){_0x2dadf8=_0x2dadf8-0x76;let _0x5dc753=_0x5656d3[_0x2dadf8];return _0x5dc753;},_0x2dad(_0x21a7d4,_0x457f63);}function _0x5656(){const _0x49fbaf=['onStarting','getUnitId','set','init','replace','4062552YvtUIk','_liveShareService','colorChannel1','length','defs','_univerInstanceService','Button','registerInitialStateReporter','_fetchOperations','_handleOffline','_collabSession','currentColor','useDependency','_commandDisposable','React','operators','UniverCore','_startLiveShareCoordinator','jsxs','event$','Start\x20following','shouldShareOperation','getTypeOfUnitDisposed$','_handleOnline','Injector','object','CollaborationSessionService','pipe','children','LiveShare','override','presenter','getTypeOfUnitAdded$','unitId','attrs','UNIVER_LIVE_SHARE_PLUGIN','tag','_reporters','2473195hUipLO','Disposable','1228900UcQgdq','Subject','getCurrentTypeOfUnit$','div','parseProtocolChangeset','text','LIVESHARE_TERMINATE','rxjs/operators','IUniverInstanceService','jsx','assign','UniverProLiveShare','throttleTime','merge','UNIVER_UNKNOWN','clear','UniverDesign','current','getInitialStates','send','DisposableCollection','string','_stopFollowing','offline','parse','_status','SessionStatus','@univerjs/design','rxjs','Start','_status$','createInstance','symbol','takeUntil','next','ONLINE','univerjs-icon\x20univerjs-icon-','data','175760BEupsu','stopPresenting','@univerjs-pro/collaboration-client','following','disposeWithMe','4glgunQ','tryStartPresenting','registerDependencies','_uiPartsService','RxDisposable','UniverSheetsUi','idSuffix','_configService','SetZoomRatioOperation','delete','@univerjs/sheets','You\x27are\x20offline.','_mountLiveShare','_init','onRendered','LIVESHARE_OPERATION','status$','from','live-share-icon','LiveShareCoordinator','174aqAVqy','registerSharedOperation','UniverLiveSharePlugin','requireSession','connectInjector','NEW_CHANGESETS','map','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','fill','_config','235602eiGVMD','memberID','IConfigService','You\x27re\x20presenting\x20the\x20document','use','mergeOverrideWithDependencies','params','path','stopFollowing','NOT_FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','Present\x20this\x20document','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','add','_collabSessionService','LIVESHARE_FETCH_OPERATIONS','_injector','_startFollowing','UniverSheets','_startPresenting','useState','BehaviorSubject','_entities','DesktopLiveShareController','LIVESHARE_REQUEST_HOST','dispose','sheet','getStatus','UniverInstanceType','UniverProCollaborationClient','1em','get','univer-size-4','Module','createElement','UniverProCollaboration','univer-mb-3\x20univer-w-full\x20univer-text-sm','function','@univerjs/core','You\x27re\x20not\x20following\x20the\x20presenter','default','xlink:href','_unitID','UniverCollaborationClientPlugin','subscribe','type','mask','_stopPresenting','has','_handleNewChangeSets','IDLE','entries','forwardRef','Inject','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','_commandService','presenting','_presenter','url(#$1','touchDependencies','Stop\x20following','HEADER_MENU','getLiveShareCoordinator','button','displayName','complete','getMemberID','OPERATION','_handleTerminate','133qoaiZK','4468oEcAkM','47889rYSUBI','executeCommand','react','DependentOn','toDisposable','UNIVER_SHEET','FOLLOWING','registerComponent','_sharedOperations','not-following','Stop\x20presenting','LiveShareController','Fragment','getOwnPropertyDescriptor','UniverUi','OFFLINE','idle','LiveShareIcon','defineProperty','toString','LiveShareStatus','useEffect','live-share.config','includes','sessionStatus$','useRef','substring','startFollowing','_beIdle','forEach','CollaborationEvent','dispose$','PRESENTING'];_0x5656=function(){return _0x49fbaf;};return _0x5656();}
|
|
1
|
+
function _0x3e2a(_0x4db0d7,_0x1626ce){const _0x4be234=_0x4be2();return _0x3e2a=function(_0x3e2a83,_0x4cdaa4){_0x3e2a83=_0x3e2a83-0xd4;let _0x275d9c=_0x4be234[_0x3e2a83];return _0x275d9c;},_0x3e2a(_0x4db0d7,_0x1626ce);}(function(_0x41dc1c,_0x397e2a){const _0x46bfd1=_0x3e2a,_0x195ca8=_0x41dc1c();while(!![]){try{const _0x5e6c76=-parseInt(_0x46bfd1(0x131))/0x1*(parseInt(_0x46bfd1(0x1bd))/0x2)+parseInt(_0x46bfd1(0x163))/0x3+parseInt(_0x46bfd1(0x195))/0x4+parseInt(_0x46bfd1(0x12b))/0x5*(-parseInt(_0x46bfd1(0x184))/0x6)+-parseInt(_0x46bfd1(0x10d))/0x7+-parseInt(_0x46bfd1(0x120))/0x8+parseInt(_0x46bfd1(0x194))/0x9*(parseInt(_0x46bfd1(0x17e))/0xa);if(_0x5e6c76===_0x397e2a)break;else _0x195ca8['push'](_0x195ca8['shift']());}catch(_0xb4331d){_0x195ca8['push'](_0x195ca8['shift']());}}}(_0x4be2,0xaa6c2),function(_0x14aa44,_0x91b0ab){const _0x5b5f1b=_0x3e2a;typeof exports==_0x5b5f1b(0xda)&&typeof module<'u'?_0x91b0ab(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==_0x5b5f1b(0xd5)&&define['amd']?define(['exports',_0x5b5f1b(0x16c),_0x5b5f1b(0x170),_0x5b5f1b(0x14b),_0x5b5f1b(0x16b),'react',_0x5b5f1b(0x198),_0x5b5f1b(0x191),_0x5b5f1b(0x11f),_0x5b5f1b(0x197),'rxjs/operators',_0x5b5f1b(0xe4)],_0x91b0ab):(_0x14aa44=typeof globalThis<'u'?globalThis:_0x14aa44||self,_0x91b0ab(_0x14aa44[_0x5b5f1b(0x160)]={},_0x14aa44[_0x5b5f1b(0x18d)],_0x14aa44[_0x5b5f1b(0x14a)],_0x14aa44['React'],_0x14aa44['UniverDesign'],_0x14aa44[_0x5b5f1b(0x129)],_0x14aa44['UniverProCollaboration'],_0x14aa44[_0x5b5f1b(0x15d)],_0x14aa44['UniverSheets'],_0x14aa44[_0x5b5f1b(0x197)],_0x14aa44[_0x5b5f1b(0x197)][_0x5b5f1b(0x199)],_0x14aa44[_0x5b5f1b(0x143)]));}(this,function(_0x5daa75,_0xe6411e,_0x2d58ab,_0xd07bb2,_0x4ebd71,_0x38a073,_0x550f44,_0x507ad7,_0x3aa898,_0x5da5ea,_0x2b7748,_0x1aa54){'use strict';const _0x4428de=_0x3e2a;var _0x2554ed=Object['defineProperty'],_0x44858a=(_0x56bc01,_0x3c67ed,_0x4e16e4)=>_0x3c67ed in _0x56bc01?_0x2554ed(_0x56bc01,_0x3c67ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e16e4}):_0x56bc01[_0x3c67ed]=_0x4e16e4,_0x2d60af=(_0x5a8894,_0x1cac4f,_0x4f3da1)=>_0x44858a(_0x5a8894,typeof _0x1cac4f!=_0x4428de(0xe8)?_0x1cac4f+'':_0x1cac4f,_0x4f3da1);function _0x12edaf({ref:_0x16a1c8,..._0x4e3dba}){const _0x187f40=_0x4428de,{icon:_0x2be0cb,id:_0x78712a,className:_0x43cef8,extend:_0x3bc9bb,..._0x32543a}=_0x4e3dba,_0x1f7de9=('univerjs-icon\x20univerjs-icon-'+_0x78712a+'\x20'+(_0x43cef8||''))[_0x187f40(0x188)](),_0x5c6275=_0x38a073[_0x187f40(0x169)]('_'+_0x113e5e());return _0x1cb77b(_0x2be0cb,''+_0x78712a,{'defIds':_0x2be0cb[_0x187f40(0x172)],'idSuffix':_0x5c6275[_0x187f40(0x119)]},{'ref':_0x16a1c8,'className':_0x1f7de9,..._0x32543a},_0x3bc9bb);}function _0x1cb77b(_0x26767e,_0x2e812e,_0x43108e,_0x1ec8e7,_0x41b640){const _0x456522=_0x4428de;return _0x38a073[_0x456522(0x187)](_0x26767e[_0x456522(0x13f)],{'key':_0x2e812e,..._0x2844ff(_0x26767e,_0x43108e,_0x41b640),..._0x1ec8e7},(_0x54e445(_0x26767e,_0x43108e)['children']||[])['map']((_0x1d3dd2,_0x37b783)=>_0x1cb77b(_0x1d3dd2,_0x2e812e+'-'+_0x26767e[_0x456522(0x13f)]+'-'+_0x37b783,_0x43108e,void 0x0,_0x41b640)));}function _0x2844ff(_0x502e54,_0x1845ea,_0x184973){const _0x47fa47=_0x4428de,_0x2720dd={..._0x502e54['attrs']};_0x184973!=null&&_0x184973[_0x47fa47(0x110)]&&_0x2720dd['fill']===_0x47fa47(0x110)&&(_0x2720dd[_0x47fa47(0x158)]=_0x184973['colorChannel1']),_0x502e54[_0x47fa47(0x13f)]===_0x47fa47(0xf4)&&_0x2720dd['id']&&(_0x2720dd['id']=_0x2720dd['id']+_0x1845ea['idSuffix']),Object[_0x47fa47(0xea)](_0x2720dd)[_0x47fa47(0x150)](([_0x1f2f4b,_0x3b495f])=>{const _0x20cd34=_0x47fa47;_0x1f2f4b==='mask'&&typeof _0x3b495f==_0x20cd34(0x12d)&&(_0x2720dd[_0x1f2f4b]=_0x3b495f[_0x20cd34(0xd4)](/url\(#(.*)\)/,_0x20cd34(0xee)+_0x1845ea[_0x20cd34(0x13c)]+')'));});const {defIds:_0xb9a924}=_0x1845ea;return!_0xb9a924||_0xb9a924[_0x47fa47(0xe5)]===0x0||(_0x502e54[_0x47fa47(0x13f)]==='use'&&_0x2720dd[_0x47fa47(0xdf)]&&(_0x2720dd[_0x47fa47(0xdf)]=_0x2720dd['xlink:href']+_0x1845ea[_0x47fa47(0x13c)]),Object[_0x47fa47(0xea)](_0x2720dd)[_0x47fa47(0x150)](([_0x3e727d,_0x20311e])=>{const _0x404b42=_0x47fa47;typeof _0x20311e==_0x404b42(0x12d)&&(_0x2720dd[_0x3e727d]=_0x20311e['replace'](/url\(#(.*)\)/,_0x404b42(0xee)+_0x1845ea[_0x404b42(0x13c)]+')'));})),_0x2720dd;}function _0x54e445(_0x150758,_0x5f2284){const _0xbc5c60=_0x4428de;var _0xcdbbd0;const {defIds:_0x39c8a4}=_0x5f2284;return!_0x39c8a4||_0x39c8a4[_0xbc5c60(0xe5)]===0x0?_0x150758:_0x150758[_0xbc5c60(0x13f)]===_0xbc5c60(0x186)&&((_0xcdbbd0=_0x150758[_0xbc5c60(0x154)])!=null&&_0xcdbbd0[_0xbc5c60(0xe5)])?{..._0x150758,'children':_0x150758[_0xbc5c60(0x154)][_0xbc5c60(0x10e)](_0x18fdd0=>typeof _0x18fdd0['attrs']['id']=='string'&&_0x39c8a4&&_0x39c8a4[_0xbc5c60(0x121)](_0x18fdd0['attrs']['id'])?{..._0x18fdd0,'attrs':{..._0x18fdd0[_0xbc5c60(0x1af)],'id':_0x18fdd0['attrs']['id']+_0x5f2284[_0xbc5c60(0x13c)]}}:_0x18fdd0)}:_0x150758;}function _0x113e5e(){const _0x2687e7=_0x4428de;return Math[_0x2687e7(0x105)]()[_0x2687e7(0xe9)](0x24)[_0x2687e7(0x1bb)](0x2,0x8);}_0x12edaf['displayName']=_0x4428de(0xf6);const _0x4bc44e={'tag':_0x4428de(0xf7),'attrs':{'xmlns':_0x4428de(0xe2),'fill':'none','viewBox':_0x4428de(0x174),'width':_0x4428de(0x1c2),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x4428de(0xef),'d':_0x4428de(0x1ab)}},{'tag':_0x4428de(0x13e),'attrs':{'fill':_0x4428de(0xef),'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':_0x4428de(0x176),'clipRule':_0x4428de(0x176)}}]},_0x3d3432=_0x38a073['forwardRef'](function(_0x3fb9fe,_0x4a802f){const _0x3d45ad=_0x4428de;return _0x38a073[_0x3d45ad(0x187)](_0x12edaf,Object[_0x3d45ad(0x1b2)]({},_0x3fb9fe,{'id':_0x3d45ad(0x196),'ref':_0x4a802f,'icon':_0x4bc44e}));});_0x3d3432[_0x4428de(0x124)]=_0x4428de(0x12f);class _0x1fdc21 extends _0xe6411e[_0x4428de(0x104)]{constructor(){const _0x2808f5=_0x4428de;super(...arguments),_0x2d60af(this,_0x2808f5(0xd7),new Set()),_0x2d60af(this,_0x2808f5(0xf0),new Set());}['registerSharedOperation'](_0x314af2){const _0xd3c56c=_0x4428de;return this[_0xd3c56c(0xd7)][_0xd3c56c(0x153)](_0x314af2),_0xe6411e[_0xd3c56c(0x19d)](()=>this['_sharedOperations']['delete'](_0x314af2));}[_0x4428de(0x118)](_0x37b2c7){const _0x88218a=_0x4428de;return this['_reporters']['add'](_0x37b2c7),_0xe6411e['toDisposable'](()=>this[_0x88218a(0xf0)][_0x88218a(0xdb)](_0x37b2c7));}[_0x4428de(0x12e)](_0x4d1e1e){const _0x12c94a=_0x4428de;return this[_0x12c94a(0xd7)][_0x12c94a(0x11a)](_0x4d1e1e);}[_0x4428de(0x15e)](_0x4b01f0){const _0x267fc0=_0x4428de;return Array['from'](this[_0x267fc0(0xf0)])[_0x267fc0(0x10e)](_0xce0f8e=>_0xce0f8e(_0x4b01f0));}}var _0x2842d8=Object['getOwnPropertyDescriptor'],_0x5268c8=(_0x479f41,_0x4e92be,_0x1755e7,_0x3f11b4)=>{const _0x3a4999=_0x4428de;for(var _0x36a273=_0x3f11b4>0x1?void 0x0:_0x3f11b4?_0x2842d8(_0x4e92be,_0x1755e7):_0x4e92be,_0x369c00=_0x479f41[_0x3a4999(0xe5)]-0x1,_0x397d15;_0x369c00>=0x0;_0x369c00--)(_0x397d15=_0x479f41[_0x369c00])&&(_0x36a273=_0x397d15(_0x36a273)||_0x36a273);return _0x36a273;},_0x11ddb6=(_0x143e39,_0x5d8194)=>(_0x256b92,_0x46a540)=>_0x5d8194(_0x256b92,_0x46a540,_0x143e39);_0x5daa75[_0x4428de(0x142)]=class extends _0xe6411e[_0x4428de(0x130)]{constructor(_0x3021c5,_0xe3873a,_0x393f5d){const _0x540edd=_0x4428de;super(),_0x2d60af(this,_0x540edd(0xf1),new Map()),(this[_0x540edd(0xf5)]=_0x3021c5,this[_0x540edd(0x151)]=_0xe3873a,this[_0x540edd(0x157)]=_0x393f5d,this[_0x540edd(0x180)]());}async[_0x4428de(0x13d)](_0x4d1566){const _0x1eec83=_0x4428de;return this['_entities'][_0x1eec83(0x11a)](_0x4d1566)||await this['_startLiveShareCoordinator'](_0x4d1566),this[_0x1eec83(0xf1)][_0x1eec83(0x1c1)](_0x4d1566);}[_0x4428de(0x10a)](_0x509e89){const _0x550315=_0x4428de;var _0x2fc12e;return(_0x2fc12e=this['_entities'][_0x550315(0x1c1)](_0x509e89))!=null?_0x2fc12e:null;}[_0x4428de(0x180)](){const _0x5f5b24=_0x4428de;this['_univerInstanceService'][_0x5f5b24(0x14e)](_0xe6411e[_0x5f5b24(0xfc)]['UNIVER_SHEET'])['pipe'](_0x2b7748[_0x5f5b24(0x19e)](this[_0x5f5b24(0x17b)]))[_0x5f5b24(0x109)](async _0x4808bf=>{const _0x5c02e5=_0x5f5b24,_0x336f7d=_0x4808bf['getUnitId']();this['_entities'][_0x5c02e5(0x11a)](_0x336f7d)||this[_0x5c02e5(0x19f)](_0x336f7d);}),this[_0x5f5b24(0xf5)][_0x5f5b24(0x1b9)](_0xe6411e['UniverInstanceType'][_0x5f5b24(0x108)])[_0x5f5b24(0xdc)](_0x2b7748[_0x5f5b24(0x19e)](this[_0x5f5b24(0x17b)]))[_0x5f5b24(0x109)](_0x44bb71=>{const _0x2e2ce8=_0x5f5b24,_0x20649c=_0x44bb71['getUnitId'](),_0x47dcfc=this[_0x2e2ce8(0xf1)]['get'](_0x20649c);_0x47dcfc==null||_0x47dcfc[_0x2e2ce8(0xe1)]();});}async['_startLiveShareCoordinator'](_0x1e0f79){const _0x19159f=_0x4428de,_0x13e890=await this[_0x19159f(0x157)][_0x19159f(0xe0)](_0x1e0f79),_0xc3e415=this['_injector'][_0x19159f(0x122)](_0x5daa75['LiveShareCoordinator'],_0x1e0f79,_0x13e890);return _0xc3e415[_0x19159f(0x11c)](),this['_entities']['set'](_0x1e0f79,_0xc3e415),_0xc3e415;}},_0x5daa75[_0x4428de(0x142)]=_0x5268c8([_0x11ddb6(0x0,_0xe6411e[_0x4428de(0xec)]),_0x11ddb6(0x1,_0xe6411e['Inject'](_0xe6411e[_0x4428de(0x165)])),_0x11ddb6(0x2,_0xe6411e['Inject'](_0x507ad7[_0x4428de(0x107)]))],_0x5daa75[_0x4428de(0x142)]);var _0x55a52f=(_0x493278=>(_0x493278['OFFLINE']=_0x4428de(0x15a),_0x493278[_0x4428de(0x159)]='idle',_0x493278[_0x4428de(0x127)]=_0x4428de(0x117),_0x493278['NOT_FOLLOWING']=_0x4428de(0x140),_0x493278[_0x4428de(0x14d)]=_0x4428de(0x190),_0x493278))(_0x55a52f||{});const _0x5355c8=_0x4428de(0x164),_0x52547f=0xc8;_0x5daa75[_0x4428de(0x147)]=class extends _0xe6411e[_0x4428de(0x130)]{constructor(_0x2787a0,_0x4bbb64,_0x420ed8,_0x3ed586,_0x5df227){const _0xc6afb5=_0x4428de;super(),_0x2d60af(this,'_status$',new _0x5da5ea[(_0xc6afb5(0x1a8))]('idle')),_0x2d60af(this,_0xc6afb5(0x133),this['_status$'][_0xc6afb5(0x112)]()),_0x2d60af(this,_0xc6afb5(0x180),!0x1),_0x2d60af(this,_0xc6afb5(0x148),null),_0x2d60af(this,_0xc6afb5(0x125),null),(this['_unitID']=_0x2787a0,this[_0xc6afb5(0x123)]=_0x4bbb64,this['_configService']=_0x420ed8,this[_0xc6afb5(0x1aa)]=_0x3ed586,this[_0xc6afb5(0x1c0)]=_0x5df227);}get['_status'](){const _0x2fe4f8=_0x4428de;return this[_0x2fe4f8(0x15c)][_0x2fe4f8(0x11e)]();}['dispose'](){const _0x4610a7=_0x4428de;var _0xc09496;(_0xc09496=this[_0x4610a7(0x148)])==null||_0xc09496[_0x4610a7(0xe1)](),this['_status$'][_0x4610a7(0x1b1)](_0x4610a7(0x189)),this[_0x4610a7(0x15c)][_0x4610a7(0xfd)]();}[_0x4428de(0x18b)](){const _0x2738a6=_0x4428de;return this[_0x2738a6(0x17c)];}[_0x4428de(0x11c)](){const _0x239525=_0x4428de;this[_0x239525(0x180)]||(this[_0x239525(0x180)]=!0x0,this[_0x239525(0x123)][_0x239525(0x1a6)][_0x239525(0xdc)](_0x2b7748[_0x239525(0x19e)](this['dispose$']))[_0x239525(0x109)](_0x50e582=>{const _0x1d2c52=_0x239525;switch(_0x50e582){case _0x507ad7[_0x1d2c52(0x10c)][_0x1d2c52(0xeb)]:this['_handleOffline']();break;case _0x507ad7['SessionStatus'][_0x1d2c52(0x1a3)]:this[_0x1d2c52(0x135)]();break;}}),this[_0x239525(0x123)][_0x239525(0x10b)]['pipe'](_0x2b7748[_0x239525(0x19e)](this['dispose$']))['subscribe'](_0x1a70ac=>{const _0x277f38=_0x239525,{eventID:_0x774aea}=_0x1a70ac;switch(_0x774aea){case _0x550f44[_0x277f38(0x168)][_0x277f38(0x18e)]:this[_0x277f38(0x113)](_0x1a70ac);break;case _0x550f44[_0x277f38(0x168)][_0x277f38(0x132)]:this['_handleOperation'](_0x1a70ac);break;case _0x550f44['CollaborationEvent'][_0x277f38(0xe7)]:this[_0x277f38(0xd6)]();break;case _0x550f44['CollaborationEvent']['NEW_CHANGESETS']:this[_0x277f38(0x16d)](_0x1a70ac);break;}}));}[_0x4428de(0x178)](){const _0x2d6efe=_0x4428de;this[_0x2d6efe(0x123)][_0x2d6efe(0x1be)]({'eventID':_0x550f44[_0x2d6efe(0x168)][_0x2d6efe(0x175)],'data':{'unitID':this[_0x2d6efe(0x1a1)],'userID':this[_0x2d6efe(0x123)][_0x2d6efe(0x116)]()}},this[_0x2d6efe(0x1a1)]);}[_0x4428de(0x15f)](){const _0x40dffb=_0x4428de;this['_status']===_0x40dffb(0x190)&&(this[_0x40dffb(0x15c)][_0x40dffb(0x1b1)](_0x40dffb(0x189)),this[_0x40dffb(0x123)][_0x40dffb(0x1be)]({'eventID':_0x550f44['CollaborationEvent'][_0x40dffb(0xe7)],'data':{'unitID':this['_unitID']}},this[_0x40dffb(0x1a1)]));}[_0x4428de(0x1a9)](){const _0x31d748=_0x4428de;this[_0x31d748(0x17c)]===_0x31d748(0x140)&&(this[_0x31d748(0x15c)][_0x31d748(0x1b1)](_0x31d748(0x117)),this['_startFollowing']());}[_0x4428de(0x166)](){const _0x5578d2=_0x4428de;this[_0x5578d2(0x17c)]===_0x5578d2(0x117)&&this['_stopFollowing']();}[_0x4428de(0x113)](_0xba4353){const _0x5ce755=_0x4428de,{presenter:_0x2da186}=_0xba4353['data'],_0x530d07=this['_collabSession'][_0x5ce755(0x116)]();this['_presenter']=_0x2da186,_0x2da186===_0x530d07?(this[_0x5ce755(0x1ba)](),this[_0x5ce755(0xf3)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x5ce755(0x156)]());}[_0x4428de(0x139)](){const _0x3a9f2c=_0x4428de,_0x2e4327={'eventID':_0x550f44[_0x3a9f2c(0x168)][_0x3a9f2c(0x149)]};this[_0x3a9f2c(0x123)][_0x3a9f2c(0x1be)](_0x2e4327,this[_0x3a9f2c(0x1a1)]);}[_0x4428de(0xd6)](){const _0x3e15c1=_0x4428de;this[_0x3e15c1(0x125)]=null,this[_0x3e15c1(0x17c)]!=='presenting'&&this['_beIdle']();}[_0x4428de(0x16d)](_0x527a3d){const _0x10fc8c=_0x4428de;if(this[_0x10fc8c(0x17c)]===_0x10fc8c(0x117)&&this[_0x10fc8c(0x125)]===_0x527a3d[_0x10fc8c(0x1b0)][_0x10fc8c(0xed)]){const _0x137f89=_0x550f44[_0x10fc8c(0x17a)](_0x527a3d[_0x10fc8c(0x1b0)])['mutations'][_0x10fc8c(0x173)]()[_0x10fc8c(0x162)](_0x2700d2=>_0x2700d2['id']===_0x3aa898['InsertSheetMutation']['id']);if(_0x137f89){const _0x477316=_0x137f89['params']['unitId'],_0x2c3418=_0x137f89[_0x10fc8c(0x134)][_0x10fc8c(0x145)]['id'];setTimeout(()=>{const _0x5ee2f6=_0x10fc8c;this[_0x5ee2f6(0x1c0)][_0x5ee2f6(0x1b7)](_0x3aa898[_0x5ee2f6(0xfa)]['id'],{'unitId':_0x477316,'subUnitId':_0x2c3418},{'fromCollab':!0x0});});}}}[_0x4428de(0xf3)](){const _0x196964=_0x4428de;this['_status$']['next']('presenting');const _0x4cde21=new Map(),_0x3d0607=this[_0x196964(0x148)]=new _0xe6411e[(_0x196964(0x1a4))]();_0x3d0607[_0x196964(0x153)](_0xe6411e['toDisposable'](()=>{const _0x23e4db=_0x196964;_0x4cde21[_0x23e4db(0x150)](_0x95ba8d=>_0x95ba8d[_0x23e4db(0xfd)]()),_0x4cde21[_0x23e4db(0x18c)]();})),_0x3d0607[_0x196964(0x153)](this['_commandService'][_0x196964(0x1a0)](_0x49345b=>{const _0x29de23=_0x196964;var _0x1703f6;if(_0x49345b[_0x29de23(0x1ae)]!==_0xe6411e[_0x29de23(0x18a)][_0x29de23(0x111)]||!this['_liveShareService'][_0x29de23(0x12e)](_0x49345b['id']))return;const {id:_0x443f3c}=_0x49345b;let _0x4f9abd;_0x4cde21[_0x29de23(0x11a)](_0x443f3c)?_0x4f9abd=_0x4cde21[_0x29de23(0x1c1)](_0x443f3c):(_0x4f9abd=new _0x5da5ea[(_0x29de23(0x1bc))](),_0x4cde21[_0x29de23(0x115)](_0x443f3c,_0x4f9abd),_0x4f9abd[_0x29de23(0xdc)](_0x2b7748[_0x29de23(0x11d)]((_0x1703f6=this[_0x29de23(0x136)][_0x29de23(0x12c)](_0x5355c8))!=null?_0x1703f6:_0x52547f,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29de23(0x109)](_0x211203=>{const _0x2aa626=_0x29de23;this[_0x2aa626(0x123)][_0x2aa626(0x1be)]({'eventID':_0x550f44['CollaborationEvent'][_0x2aa626(0x132)],'data':{'unitID':this[_0x2aa626(0x1a1)],'operations':{[_0x211203['id']]:{'id':_0x211203['id'],'params':JSON[_0x2aa626(0x11b)](_0x211203[_0x2aa626(0x134)])}}}},this[_0x2aa626(0x1a1)]);})),_0x4f9abd[_0x29de23(0x1b1)](_0x49345b);})),this[_0x196964(0x1aa)][_0x196964(0x15e)](this[_0x196964(0x1a1)])[_0x196964(0x150)](_0x464b22=>this[_0x196964(0x123)][_0x196964(0x1be)]({'eventID':_0x550f44['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x196964(0x1a1)],'operations':{[_0x464b22['id']]:{'id':_0x464b22['id'],'params':JSON['stringify'](_0x464b22['params'])}}}},this[_0x196964(0x1a1)]));}['_stopPresenting'](){const _0x2e49c1=_0x4428de;var _0x11a489;this[_0x2e49c1(0x15c)][_0x2e49c1(0x1b1)]('idle'),(_0x11a489=this['_commandDisposable'])==null||_0x11a489[_0x2e49c1(0xe1)](),this[_0x2e49c1(0x148)]=null;}[_0x4428de(0x156)](){const _0x33d963=_0x4428de;var _0x42eaf5;(_0x42eaf5=this[_0x33d963(0x148)])==null||_0x42eaf5[_0x33d963(0xe1)](),this[_0x33d963(0x15c)][_0x33d963(0x1b1)]('following');}[_0x4428de(0xf8)](){const _0x275202=_0x4428de;var _0x20c75d;this['_status$']['next'](_0x275202(0x189)),(_0x20c75d=this[_0x275202(0x148)])==null||_0x20c75d['dispose'](),this['_commandDisposable']=null;}[_0x4428de(0x1ba)](){const _0x526fbf=_0x4428de;var _0x3c7b02;this[_0x526fbf(0x15c)][_0x526fbf(0x1b1)](_0x526fbf(0x140)),(_0x3c7b02=this[_0x526fbf(0x148)])==null||_0x3c7b02[_0x526fbf(0xe1)]();}[_0x4428de(0xe6)](_0xdded93){const _0x41310b=_0x4428de;if(['presenting',_0x41310b(0x140),'offline'][_0x41310b(0x121)](this[_0x41310b(0x17c)])||!_0xdded93[_0x41310b(0x1b0)][_0x41310b(0x1ac)]||_0xdded93['data']['presenter']===this[_0x41310b(0x123)][_0x41310b(0x116)]())return;this[_0x41310b(0x17c)]===_0x41310b(0x189)&&this['_startFollowing']();const _0x29ce24=_0xdded93['data'][_0x41310b(0xd8)];Object[_0x41310b(0xfb)](_0x29ce24)[_0x41310b(0x150)](_0x378de7=>{const _0x45783d=_0x41310b;this[_0x45783d(0x1c0)][_0x45783d(0x1b7)](_0x378de7['id'],_0x378de7['params']?JSON[_0x45783d(0x15b)](_0x378de7[_0x45783d(0x134)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4e3689=_0x4428de;var _0x51fc17;this[_0x4e3689(0x15c)]['next'](_0x4e3689(0x15a)),(_0x51fc17=this[_0x4e3689(0x148)])==null||_0x51fc17['dispose']();}[_0x4428de(0x135)](){const _0x45b717=_0x4428de;this[_0x45b717(0x15c)][_0x45b717(0x1b1)](_0x45b717(0x189)),this['_fetchOperations']();}},_0x5daa75[_0x4428de(0x147)]=_0x5268c8([_0x11ddb6(0x2,_0xe6411e[_0x4428de(0x10f)]),_0x11ddb6(0x3,_0xe6411e[_0x4428de(0x1b3)](_0x1fdc21)),_0x11ddb6(0x4,_0xe6411e[_0x4428de(0x1b8)])],_0x5daa75[_0x4428de(0x147)]);function _0x53cb4b(){const _0x36282b=_0x4428de,_0x1bb4b1=_0x2d58ab[_0x36282b(0x16a)](_0x5daa75['LiveShareController']),_0x1cd8b2=_0x2d58ab['useDependency'](_0xe6411e[_0x36282b(0xec)]),_0x169c43=_0x2d58ab[_0x36282b(0x14f)](()=>_0x1cd8b2[_0x36282b(0xf2)](_0xe6411e['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3bb2c0,_0x2b47b0]=_0x38a073[_0x36282b(0xe3)](null),[_0x3f2c9a,_0x402fbf]=_0x38a073[_0x36282b(0xe3)](_0x55a52f[_0x36282b(0x159)]),_0x1b876b=_0x38a073[_0x36282b(0x169)](null);return _0x38a073[_0x36282b(0x16e)](()=>(_0x169c43&&_0x1bb4b1['getLiveShareCoordinator'](_0x169c43['getUnitId']())[_0x36282b(0xdd)](_0x539f25=>{const _0x432921=_0x36282b;_0x2b47b0(_0x539f25),_0x1b876b[_0x432921(0x119)]=_0x539f25[_0x432921(0x133)][_0x432921(0x109)](_0x10a67e=>{_0x402fbf(_0x10a67e);});}),()=>{const _0x1c1a6d=_0x36282b;var _0x82db2f;(_0x82db2f=_0x1b876b['current'])==null||_0x82db2f[_0x1c1a6d(0xff)](),_0x1b876b[_0x1c1a6d(0x119)]=null;}),[_0x169c43,_0x1bb4b1]),_0x3bb2c0?_0xd07bb2[_0x36282b(0x106)](_0x4ebd71['Dropdown'],{'align':_0x36282b(0xd9),'disabled':_0x3f2c9a===_0x55a52f['OFFLINE'],'className':_0x36282b(0x101),'overlay':_0xd07bb2[_0x36282b(0x106)](_0x243342,{'status':_0x3f2c9a,'coordinator':_0x3bb2c0}),'children':_0xd07bb2[_0x36282b(0x106)]('button',{'className':_0x4ebd71['clsx'](_0x36282b(0x144),{'univer-cursor-not-allowed':_0x3f2c9a===_0x55a52f['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f2c9a!==_0x55a52f[_0x36282b(0xeb)]}),'type':_0x36282b(0x138),'children':_0xd07bb2[_0x36282b(0x106)](_0x3d3432,{'className':'univer-size-4'})})}):null;}function _0x243342(_0x49d738){const _0x343511=_0x4428de,{status:_0x9be067,coordinator:_0x31183c}=_0x49d738;switch(_0x9be067){case _0x55a52f[_0x343511(0x159)]:return _0xd07bb2[_0x343511(0x106)](_0x2692f6,{'coordinator':_0x31183c});case _0x55a52f[_0x343511(0x127)]:return _0xd07bb2['jsx'](_0x5a75e5,{'coordinator':_0x31183c});case _0x55a52f[_0x343511(0x1bf)]:return _0xd07bb2['jsx'](_0x5a937c,{'coordinator':_0x31183c});case _0x55a52f[_0x343511(0xeb)]:return _0xd07bb2[_0x343511(0x106)](_0x4f0e8b,{});case _0x55a52f['PRESENTING']:return _0xd07bb2[_0x343511(0x106)](_0x19f0a7,{'coordinator':_0x31183c});default:return null;}}function _0x2692f6(_0x13fb5c){const _0x411c10=_0x4428de,{coordinator:_0x137cec}=_0x13fb5c;return _0xd07bb2[_0x411c10(0x114)](_0xd07bb2['Fragment'],{'children':[_0xd07bb2[_0x411c10(0x106)](_0x411c10(0x167),{'className':_0x411c10(0x103),'children':_0x411c10(0x161)}),_0xd07bb2[_0x411c10(0x106)](_0x4ebd71[_0x411c10(0x13a)],{'onClick':()=>_0x137cec['tryStartPresenting'](),'children':_0x411c10(0x1ad)})]});}function _0x5a75e5(_0x337dd6){const _0x46f149=_0x4428de,{coordinator:_0x42235b}=_0x337dd6;return _0xd07bb2[_0x46f149(0x114)](_0xd07bb2['Fragment'],{'children':[_0xd07bb2[_0x46f149(0x106)](_0x46f149(0x167),{'className':_0x46f149(0x103),'children':_0x46f149(0x177)}),_0xd07bb2['jsx'](_0x4ebd71[_0x46f149(0x13a)],{'onClick':()=>_0x42235b[_0x46f149(0x166)](),'children':_0x46f149(0x1a7)})]});}function _0x5a937c(_0x4cd92c){const _0x2cae8c=_0x4428de,{coordinator:_0x329bef}=_0x4cd92c;return _0xd07bb2[_0x2cae8c(0x114)](_0xd07bb2[_0x2cae8c(0x141)],{'children':[_0xd07bb2['jsx'](_0x2cae8c(0x167),{'className':_0x2cae8c(0x103),'children':_0x2cae8c(0xde)}),_0xd07bb2['jsx'](_0x4ebd71[_0x2cae8c(0x13a)],{'variant':'text','onClick':()=>_0x329bef[_0x2cae8c(0x1a9)](),'children':_0x2cae8c(0x171)})]});}function _0x19f0a7(_0x474414){const _0x430a49=_0x4428de,{coordinator:_0x4aa383}=_0x474414;return _0xd07bb2[_0x430a49(0x114)](_0xd07bb2[_0x430a49(0x141)],{'children':[_0xd07bb2[_0x430a49(0x106)](_0x430a49(0x167),{'className':_0x430a49(0x103),'children':_0x430a49(0x14c)}),_0xd07bb2[_0x430a49(0x106)](_0x4ebd71[_0x430a49(0x13a)],{'variant':'default','onClick':()=>_0x4aa383['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x4f0e8b(){const _0x4d795e=_0x4428de;return _0xd07bb2[_0x4d795e(0x106)](_0xd07bb2[_0x4d795e(0x141)],{'children':_0x4d795e(0x182)});}var _0x3539f0=Object[_0x4428de(0x179)],_0x3fa493=(_0x5cb587,_0x37ce19,_0x1419de,_0x430b99)=>{const _0x562686=_0x4428de;for(var _0x48534f=_0x430b99>0x1?void 0x0:_0x430b99?_0x3539f0(_0x37ce19,_0x1419de):_0x37ce19,_0x543ddc=_0x5cb587[_0x562686(0xe5)]-0x1,_0xb25ea0;_0x543ddc>=0x0;_0x543ddc--)(_0xb25ea0=_0x5cb587[_0x543ddc])&&(_0x48534f=_0xb25ea0(_0x48534f)||_0x48534f);return _0x48534f;},_0x2ae9f0=(_0x2dca4e,_0x3ef130)=>(_0xd9e94b,_0x1f27f6)=>_0x3ef130(_0xd9e94b,_0x1f27f6,_0x2dca4e);_0x5daa75[_0x4428de(0x181)]=class extends _0xe6411e['Disposable']{constructor(_0x51293c,_0x4bef62){const _0x4d755a=_0x4428de;super(),this['_injector']=_0x51293c,this[_0x4d755a(0x1a2)]=_0x4bef62,this[_0x4d755a(0x185)]();}[_0x4428de(0x185)](){const _0x301db0=_0x4428de;this['disposeWithMe'](this[_0x301db0(0x1a2)]['registerComponent'](_0x2d58ab['BuiltInUIPart'][_0x301db0(0x17f)],()=>_0x2d58ab[_0x301db0(0x19a)](_0x53cb4b,this['_injector'])));}},_0x5daa75[_0x4428de(0x181)]=_0x3fa493([_0x2ae9f0(0x0,_0xe6411e['Inject'](_0xe6411e[_0x4428de(0x165)])),_0x2ae9f0(0x1,_0x2d58ab[_0x4428de(0x155)])],_0x5daa75[_0x4428de(0x181)]);const _0x2aec2d=_0x4428de(0x183),_0xf48bf0={};var _0x1b71d6=Object[_0x4428de(0x179)],_0x50cc0a=(_0x35ff52,_0x4acd3c,_0x199d23,_0x444841)=>{const _0x216d45=_0x4428de;for(var _0x391484=_0x444841>0x1?void 0x0:_0x444841?_0x1b71d6(_0x4acd3c,_0x199d23):_0x4acd3c,_0x4a3c7b=_0x35ff52[_0x216d45(0xe5)]-0x1,_0x359b72;_0x4a3c7b>=0x0;_0x4a3c7b--)(_0x359b72=_0x35ff52[_0x4a3c7b])&&(_0x391484=_0x359b72(_0x391484)||_0x391484);return _0x391484;},_0x3c9eeb=(_0x100304,_0x5066f0)=>(_0x558c01,_0x1283c1)=>_0x5066f0(_0x558c01,_0x1283c1,_0x100304);let _0x2b1961=class extends _0xe6411e[_0x4428de(0x104)]{constructor(_0x30bf78){const _0x36c55b=_0x4428de;super(),this[_0x36c55b(0x1aa)]=_0x30bf78,this[_0x36c55b(0x180)]();}[_0x4428de(0x180)](){const _0x2ace52=_0x4428de;[_0x1aa54[_0x2ace52(0x1a5)]['id'],_0x1aa54['SetScrollOperation']['id'],_0x3aa898[_0x2ace52(0xfa)]['id']][_0x2ace52(0x150)](_0x1d2556=>{const _0x1c5e55=_0x2ace52;this[_0x1c5e55(0x100)](this[_0x1c5e55(0x1aa)][_0x1c5e55(0x17d)](_0x1d2556));});}};_0x2b1961=_0x50cc0a([_0x3c9eeb(0x0,_0xe6411e['Inject'](_0x1fdc21))],_0x2b1961);var _0x15cf23=Object[_0x4428de(0x192)],_0x473674=Object['getOwnPropertyDescriptor'],_0x54ec15=(_0xfdd629,_0x28a0ed,_0x5b8d14)=>_0x28a0ed in _0xfdd629?_0x15cf23(_0xfdd629,_0x28a0ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b8d14}):_0xfdd629[_0x28a0ed]=_0x5b8d14,_0x2d5d62=(_0x32ff0f,_0x1e05ac,_0x4bba4a,_0x388db8)=>{const _0x42e616=_0x4428de;for(var _0x52c3a6=_0x388db8>0x1?void 0x0:_0x388db8?_0x473674(_0x1e05ac,_0x4bba4a):_0x1e05ac,_0x2dd074=_0x32ff0f[_0x42e616(0xe5)]-0x1,_0x5318b1;_0x2dd074>=0x0;_0x2dd074--)(_0x5318b1=_0x32ff0f[_0x2dd074])&&(_0x52c3a6=_0x5318b1(_0x52c3a6)||_0x52c3a6);return _0x52c3a6;},_0x273ebb=(_0x53232d,_0x4f0a32)=>(_0x1d0029,_0x46e7a1)=>_0x4f0a32(_0x1d0029,_0x46e7a1,_0x53232d),_0x6543ee=(_0x3718e3,_0x40d6f4,_0x47d854)=>_0x54ec15(_0x3718e3,typeof _0x40d6f4!='symbol'?_0x40d6f4+'':_0x40d6f4,_0x47d854);const _0x1edf53=_0x4428de(0x16f);_0x5daa75['UniverLiveSharePlugin']=class extends _0xe6411e[_0x4428de(0x1b4)]{constructor(_0x176375=_0xf48bf0,_0x311dda,_0x5b53c5){const _0x405f43=_0x4428de;super(),this[_0x405f43(0x102)]=_0x176375,this[_0x405f43(0x151)]=_0x311dda,this[_0x405f43(0x136)]=_0x5b53c5;const {..._0x587d66}=_0xe6411e[_0x405f43(0x126)]({},_0xf48bf0,this[_0x405f43(0x102)]);this['_configService'][_0x405f43(0x19b)](_0x2aec2d,_0x587d66);}[_0x4428de(0x146)](){const _0x44c423=_0x4428de;_0xe6411e[_0x44c423(0x13b)](this[_0x44c423(0x151)],_0xe6411e[_0x44c423(0x12a)]([[_0x1fdc21],[_0x5daa75['LiveShareController']],[_0x2b1961],[_0x5daa75[_0x44c423(0x181)]]],this[_0x44c423(0x102)][_0x44c423(0xf9)])),_0xe6411e[_0x44c423(0x1b6)](this[_0x44c423(0x151)],[[_0x2b1961]]);}[_0x4428de(0x193)](){const _0x544ea2=_0x4428de;_0xe6411e[_0x544ea2(0x1b6)](this['_injector'],[[_0x5daa75['DesktopLiveShareController']]]);}},_0x6543ee(_0x5daa75[_0x4428de(0x1b5)],_0x4428de(0x1ae),_0xe6411e[_0x4428de(0xfc)][_0x4428de(0x18f)]),_0x6543ee(_0x5daa75['UniverLiveSharePlugin'],'pluginName',_0x1edf53),_0x5daa75[_0x4428de(0x1b5)]=_0x2d5d62([_0xe6411e['DependentOn'](_0x507ad7[_0x4428de(0xfe)]),_0x273ebb(0x1,_0xe6411e[_0x4428de(0x1b3)](_0xe6411e[_0x4428de(0x165)])),_0x273ebb(0x2,_0xe6411e[_0x4428de(0x10f)])],_0x5daa75[_0x4428de(0x1b5)]),_0x5daa75['LiveShare']=_0x53cb4b,_0x5daa75[_0x4428de(0x128)]=_0x1fdc21,_0x5daa75[_0x4428de(0x152)]=_0x55a52f,Object[_0x4428de(0x192)](_0x5daa75,Symbol[_0x4428de(0x19c)],{'value':_0x4428de(0x137)});}));function _0x4be2(){const _0x33f91a=['memberID','url(#$1','currentColor','_reporters','_entities','getCurrentTypeOfUnit$','_startPresenting','mask','_univerInstanceService','UniverIcon','svg','_beIdle','override','SetWorksheetActiveOperation','values','UniverInstanceType','complete','UniverCollaborationClientPlugin','unsubscribe','disposeWithMe','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','_config','univer-mb-3\x20univer-w-full\x20univer-text-sm','Disposable','random','jsx','CollaborationSessionService','UNIVER_SHEET','subscribe','getLiveShareCoordinatorSync','event$','SessionStatus','4998077xWhRZT','map','IConfigService','colorChannel1','OPERATION','asObservable','_handleNewHost','jsxs','set','getMemberID','following','registerInitialStateReporter','current','has','stringify','init','throttleTime','getValue','@univerjs/sheets','4383664EDsMCS','includes','createInstance','_collabSession','displayName','_presenter','merge','FOLLOWING','LiveShareService','React','mergeOverrideWithDependencies','8920JYIoCT','getConfig','string','shouldShareOperation','LiveShareIcon','RxDisposable','97HCZFXn','LIVESHARE_OPERATION','status$','params','_handleOnline','_configService','Module','button','_fetchOperations','Button','registerDependencies','idSuffix','getLiveShareCoordinator','path','tag','not-following','Fragment','LiveShareController','UniverSheetsUi','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sheet','onStarting','LiveShareCoordinator','_commandDisposable','LIVESHARE_FETCH_OPERATIONS','UniverUi','react/jsx-runtime','You\x27re\x20presenting\x20the\x20document','PRESENTING','getTypeOfUnitAdded$','useObservable','forEach','_injector','LiveShareStatus','add','children','IUIPartsService','_startFollowing','_collabSessionService','fill','IDLE','offline','parse','_status$','UniverProCollaborationClient','getInitialStates','stopPresenting','UniverProLiveShare','Present\x20this\x20document','find','725907yQJyJa','SAME_OPERATION_SHARE_INTERVAL','Injector','stopFollowing','div','CollaborationEvent','useRef','useDependency','@univerjs/design','@univerjs/core','_handleNewChangeSets','useEffect','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/ui','Start\x20following','defIds','reverse','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','evenodd','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','getOwnPropertyDescriptor','parseProtocolChangeset','dispose$','_status','registerSharedOperation','58780eWjETQ','HEADER_MENU','_init','DesktopLiveShareController','You\x27are\x20offline.','live-share.config','1764tzLBsD','_mountLiveShare','defs','createElement','trim','idle','CommandType','getStatus','clear','UniverCore','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','presenting','@univerjs-pro/collaboration-client','defineProperty','onRendered','4113AFHMxe','2139344LDmSmC','live-share-icon','rxjs','@univerjs-pro/collaboration','operators','connectInjector','setConfig','toStringTag','toDisposable','takeUntil','_startLiveShareCoordinator','onCommandExecuted','_unitID','_uiPartsService','ONLINE','DisposableCollection','SetZoomRatioOperation','sessionStatus$','Stop\x20following','BehaviorSubject','startFollowing','_liveShareService','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','presenter','Start','type','attrs','data','next','assign','Inject','Plugin','UniverLiveSharePlugin','touchDependencies','executeCommand','ICommandService','getTypeOfUnitDisposed$','_stopFollowing','substring','Subject','20176eCESyu','send','NOT_FOLLOWING','_commandService','get','1em','replace','function','_handleTerminate','_sharedOperations','operations','end','object','delete','pipe','then','You\x27re\x20not\x20following\x20the\x20presenter','xlink:href','requireSession','dispose','http://www.w3.org/2000/svg','useState','@univerjs/sheets-ui','length','_handleOperation','LIVESHARE_TERMINATE','symbol','toString','entries','OFFLINE','IUniverInstanceService'];_0x4be2=function(){return _0x33f91a;};return _0x4be2();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.14-nightly.
|
|
3
|
+
"version": "0.10.14-nightly.202511070939",
|
|
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.10.14-nightly.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.10.14-nightly.
|
|
62
|
-
"@univerjs/core": "0.10.14-nightly.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets
|
|
66
|
-
"@univerjs/ui": "0.10.14-nightly.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.10.14-nightly.202511070939",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.10.14-nightly.202511070939",
|
|
62
|
+
"@univerjs/core": "0.10.14-nightly.202511070939",
|
|
63
|
+
"@univerjs/engine-render": "0.10.14-nightly.202511070939",
|
|
64
|
+
"@univerjs/design": "0.10.14-nightly.202511070939",
|
|
65
|
+
"@univerjs/sheets": "0.10.14-nightly.202511070939",
|
|
66
|
+
"@univerjs/sheets-ui": "0.10.14-nightly.202511070939",
|
|
67
|
+
"@univerjs/ui": "0.10.14-nightly.202511070939"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|