@univerjs-pro/live-share 0.12.3-experimental.20251205-8c9a6bf → 0.12.3-nightly.202512060617
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 _0x4684e8=_0x332a;(function(_0x2387f8,_0x48a697){const _0x24b6c7=_0x332a,_0xf7df12=_0x2387f8();while(!![]){try{const _0x156823=parseInt(_0x24b6c7(0xa9))/0x1+-parseInt(_0x24b6c7(0x9f))/0x2*(parseInt(_0x24b6c7(0x98))/0x3)+-parseInt(_0x24b6c7(0xa7))/0x4+-parseInt(_0x24b6c7(0x9e))/0x5+-parseInt(_0x24b6c7(0xab))/0x6+parseInt(_0x24b6c7(0xb5))/0x7*(parseInt(_0x24b6c7(0xaa))/0x8)+parseInt(_0x24b6c7(0xa1))/0x9;if(_0x156823===_0x48a697)break;else _0xf7df12['push'](_0xf7df12['shift']());}catch(_0x2f7d65){_0xf7df12['push'](_0xf7df12['shift']());}}}(_0x487d,0x7973c));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{['_initialize'](_0x1d7693,_0x7d147d,_0x29329d,_0x5aff6c,_0x194f70){const _0x4fed7b=_0x332a,_0x4a2752=_0x1d7693[_0x4fed7b(0xb1)](n[_0x4fed7b(0x9b)]),_0x236835=_0x1d7693[_0x4fed7b(0xb1)](g[_0x4fed7b(0x92)]),_0x518f11=_0x7d147d[_0x4fed7b(0xa5)](),_0x11cd16=_0x7d147d[_0x4fed7b(0xae)](),_0x161f39=_0x4a2752['getLiveShareCoordinatorSync'](_0x518f11);(_0x161f39==null?void 0x0:_0x161f39[_0x4fed7b(0xb0)]())!==n[_0x4fed7b(0xa2)][_0x4fed7b(0xa4)]||(_0x29329d[_0x4fed7b(0x9d)]()!==_0x11cd16[_0x4fed7b(0x9d)]()&&this[_0x4fed7b(0x96)][_0x4fed7b(0xb4)](u[_0x4fed7b(0x94)]['id'],{'unitId':_0x518f11,'subUnitId':_0x29329d[_0x4fed7b(0x9d)]()}),!_0x236835[_0x4fed7b(0x99)](_0x518f11))||_0x194f70[_0x4fed7b(0x90)](f[_0x4fed7b(0xac)]['id'],{'unitId':_0x7d147d[_0x4fed7b(0xa5)](),'sheetId':_0x29329d['getSheetId'](),'sheetViewStartRow':_0x5aff6c[_0x4fed7b(0xb3)],'sheetViewStartColumn':_0x5aff6c[_0x4fed7b(0xa6)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x4684e8(0xa0)][_0x4684e8(0x97)](w);function _0x332a(_0x467d29,_0x2d1acc){_0x467d29=_0x467d29-0x8d;const _0x487d9d=_0x487d();let _0x332a5d=_0x487d9d[_0x467d29];return _0x332a5d;}class C extends a[_0x4684e8(0xaf)]{[_0x4684e8(0xb2)](){const _0x6f6f1b=_0x4684e8;var _0x381065,_0x45dbaa;const _0x2befb2=this[_0x6f6f1b(0x93)][_0x6f6f1b(0xb1)](n[_0x6f6f1b(0x9b)]),_0x35ecfa=(_0x381065=this[_0x6f6f1b(0xa3)]())==null?void 0x0:_0x381065[_0x6f6f1b(0x9c)]();if(!_0x35ecfa)throw new Error(_0x6f6f1b(0x8e));const _0x39151a=_0x2befb2['getLiveShareCoordinatorSync'](_0x35ecfa);return(_0x45dbaa=_0x39151a==null?void 0x0:_0x39151a[_0x6f6f1b(0xb0)]())!=null?_0x45dbaa:n[_0x6f6f1b(0xa2)]['IDLE'];}[_0x4684e8(0x91)](){const _0x347c95=_0x4684e8;var _0x30fc9a;const _0x17eae8=this[_0x347c95(0x93)]['get'](n[_0x347c95(0x9b)]),_0x5eea7d=(_0x30fc9a=this[_0x347c95(0xa3)]())==null?void 0x0:_0x30fc9a[_0x347c95(0x9c)]();if(!_0x5eea7d)throw new Error(_0x347c95(0x8e));const _0x1f0283=_0x17eae8[_0x347c95(0x9a)](_0x5eea7d);if(!_0x1f0283)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1f0283[_0x347c95(0x91)]();}[_0x4684e8(0xad)](){const _0x55110d=_0x4684e8;var _0x78c6fb;const _0x29d94e=this['_injector']['get'](n[_0x55110d(0x9b)]),_0x5440ab=(_0x78c6fb=this[_0x55110d(0xa3)]())==null?void 0x0:_0x78c6fb[_0x55110d(0x9c)]();if(!_0x5440ab)throw new Error(_0x55110d(0x8e));const _0x3f4f81=_0x29d94e[_0x55110d(0x9a)](_0x5440ab);if(!_0x3f4f81)throw new Error(_0x55110d(0x95));_0x3f4f81[_0x55110d(0xad)]();}[_0x4684e8(0xa8)](){const _0xc40e24=_0x4684e8;var _0xdef6c4;const _0x3fb6c6=this[_0xc40e24(0x93)][_0xc40e24(0xb1)](n[_0xc40e24(0x9b)]),_0x50604e=(_0xdef6c4=this[_0xc40e24(0xa3)]())==null?void 0x0:_0xdef6c4[_0xc40e24(0x9c)]();if(!_0x50604e)throw new Error(_0xc40e24(0x8e));const _0x4c2926=_0x3fb6c6[_0xc40e24(0x9a)](_0x50604e);if(!_0x4c2926)throw new Error(_0xc40e24(0x95));_0x4c2926[_0xc40e24(0x8f)]();}[_0x4684e8(0x8d)](){const _0x22443f=_0x4684e8;var _0xd4fbbe;const _0x53b914=this[_0x22443f(0x93)]['get'](n['LiveShareController']),_0x395b2f=(_0xd4fbbe=this['getActiveWorkbook']())==null?void 0x0:_0xd4fbbe['getId']();if(!_0x395b2f)throw new Error(_0x22443f(0x8e));const _0x3fe2f5=_0x53b914[_0x22443f(0x9a)](_0x395b2f);if(!_0x3fe2f5)throw new Error(_0x22443f(0x95));_0x3fe2f5[_0x22443f(0x8d)]();}}a['FUniver'][_0x4684e8(0x97)](C);class L extends a[_0x4684e8(0xb6)]{get['LiveShareStatusEnum'](){const _0xa05e2c=_0x4684e8;return n[_0xa05e2c(0xa2)];}}function _0x487d(){const _0x4a929a=['LiveShareController','getId','getSheetId','570685ZbqhOL','211954YFTcoU','FRange','12611079iveBHK','LiveShareStatus','getActiveWorkbook','PRESENTING','getUnitId','startColumn','1075040KmznMn','startPresenting','10232eppBAB','5912sakHxG','889644gyFnDP','SetScrollOperation','stopFollowing','getActiveSheet','FUniver','getStatus','get','getLiveShareStatus','startRow','executeCommand','1393psnshM','FEnum','stopPresenting','No\x20active\x20workbook\x20found.','tryStartPresenting','syncExecuteCommand','startFollowing','IRenderManagerService','_injector','SetWorksheetActiveOperation','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','extend','15auvgwc','getRenderById','getLiveShareCoordinatorSync'];_0x487d=function(){return _0x4a929a;};return _0x487d();}a[_0x4684e8(0xb6)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x71273f=_0xcc9f;(function(_0x33bbfb,_0x3e5d79){const _0x570ee6=_0xcc9f,_0x52ede9=_0x33bbfb();while(!![]){try{const _0x4b9a0f=-parseInt(_0x570ee6(0x235))/0x1+parseInt(_0x570ee6(0x1ad))/0x2*(parseInt(_0x570ee6(0x1fe))/0x3)+-parseInt(_0x570ee6(0x20c))/0x4*(-parseInt(_0x570ee6(0x1aa))/0x5)+parseInt(_0x570ee6(0x18b))/0x6+parseInt(_0x570ee6(0x1dc))/0x7+parseInt(_0x570ee6(0x239))/0x8+-parseInt(_0x570ee6(0x252))/0x9;if(_0x4b9a0f===_0x3e5d79)break;else _0x52ede9['push'](_0x52ede9['shift']());}catch(_0x305683){_0x52ede9['push'](_0x52ede9['shift']());}}}(_0xa0d3,0x29588));var T=Object[_0x71273f(0x205)],U=(_0x16d455,_0x4b4a06,_0x33c6b1)=>_0x4b4a06 in _0x16d455?T(_0x16d455,_0x4b4a06,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33c6b1}):_0x16d455[_0x4b4a06]=_0x33c6b1,_=(_0xfbc4a8,_0x1632cb,_0x453b1)=>U(_0xfbc4a8,typeof _0x1632cb!=_0x71273f(0x186)?_0x1632cb+'':_0x1632cb,_0x453b1);Object[_0x71273f(0x205)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x3c0314,..._0x2c7d09}){const _0x279afd=_0x71273f,{icon:_0x111999,id:_0x50908a,className:_0x601aeb,extend:_0x5e813d,..._0x4710ef}=_0x2c7d09,_0x5e5f98=(_0x279afd(0x1e8)+_0x50908a+'\x20'+(_0x601aeb||''))[_0x279afd(0x226)](),_0x5dddb9=v[_0x279afd(0x24e)]('_'+H());return j(_0x111999,''+_0x50908a,{'defIds':_0x111999[_0x279afd(0x184)],'idSuffix':_0x5dddb9['current']},{'ref':_0x3c0314,'className':_0x5e5f98,..._0x4710ef},_0x5e813d);}function j(_0x5fb607,_0x42b65d,_0x8a65d9,_0x129fd8,_0x297db7){const _0x2e6772=_0x71273f;return v[_0x2e6772(0x221)](_0x5fb607['tag'],{'key':_0x42b65d,...y(_0x5fb607,_0x8a65d9,_0x297db7),..._0x129fd8},(F(_0x5fb607,_0x8a65d9)[_0x2e6772(0x234)]||[])[_0x2e6772(0x236)]((_0x106290,_0x55bf95)=>j(_0x106290,_0x42b65d+'-'+_0x5fb607[_0x2e6772(0x1ab)]+'-'+_0x55bf95,_0x8a65d9,void 0x0,_0x297db7)));}function y(_0x7716e0,_0x4f0e9f,_0x5e210f){const _0x40e8ca=_0x71273f,_0xda87d={..._0x7716e0[_0x40e8ca(0x1c1)]};_0x5e210f!=null&&_0x5e210f[_0x40e8ca(0x1c3)]&&_0xda87d[_0x40e8ca(0x208)]===_0x40e8ca(0x1c3)&&(_0xda87d[_0x40e8ca(0x208)]=_0x5e210f[_0x40e8ca(0x1c3)]),_0x7716e0[_0x40e8ca(0x1ab)]===_0x40e8ca(0x230)&&_0xda87d['id']&&(_0xda87d['id']=_0xda87d['id']+_0x4f0e9f[_0x40e8ca(0x25e)]),Object[_0x40e8ca(0x1ac)](_0xda87d)[_0x40e8ca(0x244)](([_0x5744ba,_0x4f7347])=>{const _0x120406=_0x40e8ca;_0x5744ba===_0x120406(0x230)&&typeof _0x4f7347=='string'&&(_0xda87d[_0x5744ba]=_0x4f7347[_0x120406(0x21f)](/url\(#(.*)\)/,'url(#$1'+_0x4f0e9f['idSuffix']+')'));});const {defIds:_0x134438}=_0x4f0e9f;return!_0x134438||_0x134438['length']===0x0||(_0x7716e0[_0x40e8ca(0x1ab)]===_0x40e8ca(0x19d)&&_0xda87d[_0x40e8ca(0x193)]&&(_0xda87d['xlink:href']=_0xda87d[_0x40e8ca(0x193)]+_0x4f0e9f[_0x40e8ca(0x25e)]),Object[_0x40e8ca(0x1ac)](_0xda87d)['forEach'](([_0x3798c7,_0x22ab56])=>{const _0x11892d=_0x40e8ca;typeof _0x22ab56=='string'&&(_0xda87d[_0x3798c7]=_0x22ab56[_0x11892d(0x21f)](/url\(#(.*)\)/,'url(#$1'+_0x4f0e9f[_0x11892d(0x25e)]+')'));})),_0xda87d;}function F(_0x21679a,_0x145a89){const _0x5967f3=_0x71273f;var _0x554416;const {defIds:_0x68f212}=_0x145a89;return!_0x68f212||_0x68f212[_0x5967f3(0x1d8)]===0x0?_0x21679a:_0x21679a[_0x5967f3(0x1ab)]===_0x5967f3(0x1d3)&&((_0x554416=_0x21679a[_0x5967f3(0x234)])!=null&&_0x554416[_0x5967f3(0x1d8)])?{..._0x21679a,'children':_0x21679a[_0x5967f3(0x234)][_0x5967f3(0x236)](_0x37563d=>typeof _0x37563d[_0x5967f3(0x1c1)]['id']==_0x5967f3(0x1ce)&&_0x68f212&&_0x68f212[_0x5967f3(0x242)](_0x37563d['attrs']['id'])?{..._0x37563d,'attrs':{..._0x37563d['attrs'],'id':_0x37563d[_0x5967f3(0x1c1)]['id']+_0x145a89['idSuffix']}}:_0x37563d)}:_0x21679a;}function H(){const _0x4934db=_0x71273f;return Math['random']()[_0x4934db(0x237)](0x24)[_0x4934db(0x1ff)](0x2,0x8);}x['displayName']=_0x71273f(0x1df);function _0xcc9f(_0x2813a3,_0x3a63d0){_0x2813a3=_0x2813a3-0x184;const _0xa0d3e4=_0xa0d3();let _0xcc9f6f=_0xa0d3e4[_0x2813a3];return _0xcc9f6f;}const V={'tag':_0x71273f(0x22a),'attrs':{'xmlns':_0x71273f(0x1fc),'fill':_0x71273f(0x257),'viewBox':_0x71273f(0x1a7),'width':_0x71273f(0x209),'height':_0x71273f(0x209)},'children':[{'tag':_0x71273f(0x243),'attrs':{'fill':_0x71273f(0x23f),'d':_0x71273f(0x223)}},{'tag':_0x71273f(0x243),'attrs':{'fill':_0x71273f(0x23f),'d':_0x71273f(0x1f5),'fillRule':_0x71273f(0x21b),'clipRule':_0x71273f(0x21b)}}]},R=v[_0x71273f(0x18f)](function(_0x31e749,_0x3025f6){const _0x577e50=_0x71273f;return v[_0x577e50(0x221)](x,Object[_0x577e50(0x21a)]({},_0x31e749,{'id':_0x577e50(0x1c6),'ref':_0x3025f6,'icon':V}));});R[_0x71273f(0x1cb)]=_0x71273f(0x1bf);class E extends o[_0x71273f(0x246)]{constructor(){const _0x5e8282=_0x71273f;super(...arguments),_(this,_0x5e8282(0x219),new Set()),_(this,_0x5e8282(0x248),new Set());}[_0x71273f(0x23b)](_0x41ac88){const _0x5b38b5=_0x71273f;return this[_0x5b38b5(0x219)][_0x5b38b5(0x18d)](_0x41ac88),o[_0x5b38b5(0x1ec)](()=>this[_0x5b38b5(0x219)]['delete'](_0x41ac88));}[_0x71273f(0x1a8)](_0x401a7a){const _0x255c0a=_0x71273f;return this[_0x255c0a(0x248)][_0x255c0a(0x18d)](_0x401a7a),o['toDisposable'](()=>this[_0x255c0a(0x248)][_0x255c0a(0x23e)](_0x401a7a));}['shouldShareOperation'](_0x320953){const _0x2c1fe3=_0x71273f;return this[_0x2c1fe3(0x219)]['has'](_0x320953);}['getInitialStates'](_0x1efc52){const _0xab24d1=_0x71273f;return Array['from'](this[_0xab24d1(0x248)])['map'](_0x221878=>_0x221878(_0x1efc52));}}var M=Object[_0x71273f(0x204)],P=(_0x841128,_0x36d59a,_0x2d9414,_0xf4919)=>{for(var _0x545b05=_0xf4919>0x1?void 0x0:_0xf4919?M(_0x36d59a,_0x2d9414):_0x36d59a,_0x1adba1=_0x841128['length']-0x1,_0x4ae3f5;_0x1adba1>=0x0;_0x1adba1--)(_0x4ae3f5=_0x841128[_0x1adba1])&&(_0x545b05=_0x4ae3f5(_0x545b05)||_0x545b05);return _0x545b05;},S=(_0xd5ba24,_0x60f4c3)=>(_0x23797e,_0x28061d)=>_0x60f4c3(_0x23797e,_0x28061d,_0xd5ba24);exports[_0x71273f(0x245)]=class extends o[_0x71273f(0x20d)]{constructor(_0x330ff3,_0x48d2ad,_0x2229cb){const _0x136874=_0x71273f;super(),_(this,_0x136874(0x238),new Map()),(this[_0x136874(0x1e3)]=_0x330ff3,this[_0x136874(0x1cf)]=_0x48d2ad,this[_0x136874(0x1de)]=_0x2229cb,this[_0x136874(0x1be)]());}async[_0x71273f(0x1ba)](_0x2db8f5){const _0x3b56b9=_0x71273f;return this[_0x3b56b9(0x238)][_0x3b56b9(0x24a)](_0x2db8f5)||await this[_0x3b56b9(0x1f3)](_0x2db8f5),this[_0x3b56b9(0x238)][_0x3b56b9(0x1d9)](_0x2db8f5);}[_0x71273f(0x249)](_0x359c48){const _0x4c5ee3=_0x71273f;var _0xe5fcf8;return(_0xe5fcf8=this[_0x4c5ee3(0x238)]['get'](_0x359c48))!=null?_0xe5fcf8:null;}[_0x71273f(0x1be)](){const _0x3a9cb3=_0x71273f;this['_univerInstanceService'][_0x3a9cb3(0x23c)](o[_0x3a9cb3(0x1b3)]['UNIVER_SHEET'])[_0x3a9cb3(0x1ea)](I['takeUntil'](this['dispose$']))['subscribe'](async _0x2ac635=>{const _0x34cfec=_0x3a9cb3,_0x1a3742=_0x2ac635[_0x34cfec(0x22f)]();this['_entities'][_0x34cfec(0x24a)](_0x1a3742)||this[_0x34cfec(0x1f3)](_0x1a3742);}),this[_0x3a9cb3(0x1e3)][_0x3a9cb3(0x198)](o[_0x3a9cb3(0x1b3)][_0x3a9cb3(0x1e7)])[_0x3a9cb3(0x1ea)](I[_0x3a9cb3(0x1ca)](this[_0x3a9cb3(0x22b)]))[_0x3a9cb3(0x207)](_0x8127c=>{const _0x429058=_0x3a9cb3,_0x8be3de=_0x8127c[_0x429058(0x22f)](),_0x3e1ed2=this['_entities']['get'](_0x8be3de);_0x3e1ed2==null||_0x3e1ed2['dispose']();});}async[_0x71273f(0x1f3)](_0x16fa2a){const _0x59216b=_0x71273f,_0x49876f=await this[_0x59216b(0x1de)]['requireSession'](_0x16fa2a),_0x1ad71f=this[_0x59216b(0x1cf)][_0x59216b(0x1bc)](exports[_0x59216b(0x232)],_0x16fa2a,_0x49876f);return _0x1ad71f[_0x59216b(0x25d)](),this[_0x59216b(0x238)]['set'](_0x16fa2a,_0x1ad71f),_0x1ad71f;}},exports[_0x71273f(0x245)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x71273f(0x1d0)](o[_0x71273f(0x1b1)])),S(0x2,o[_0x71273f(0x1d0)](b[_0x71273f(0x194)]))],exports[_0x71273f(0x245)]);var u=(_0x495a6f=>(_0x495a6f[_0x71273f(0x1c2)]=_0x71273f(0x251),_0x495a6f[_0x71273f(0x22e)]=_0x71273f(0x258),_0x495a6f['FOLLOWING']=_0x71273f(0x21c),_0x495a6f[_0x71273f(0x23d)]='not-following',_0x495a6f[_0x71273f(0x1c7)]=_0x71273f(0x259),_0x495a6f))(u||{});const k=_0x71273f(0x195),q=0xc8;exports[_0x71273f(0x232)]=class extends o['RxDisposable']{constructor(_0x57c53e,_0x2a3c1b,_0x262248,_0x4d5003,_0x4747a4){const _0x1bedbb=_0x71273f;super(),_(this,_0x1bedbb(0x1e4),new O[(_0x1bedbb(0x1b7))]('idle')),_(this,_0x1bedbb(0x1e1),this['_status$'][_0x1bedbb(0x25a)]()),_(this,_0x1bedbb(0x1be),!0x1),_(this,'_commandDisposable',null),_(this,_0x1bedbb(0x1fd),null),(this[_0x1bedbb(0x1f7)]=_0x57c53e,this['_collabSession']=_0x2a3c1b,this['_configService']=_0x262248,this[_0x1bedbb(0x20a)]=_0x4d5003,this[_0x1bedbb(0x1cd)]=_0x4747a4);}get['_status'](){const _0x1c43cb=_0x71273f;return this[_0x1c43cb(0x1e4)][_0x1c43cb(0x1b4)]();}[_0x71273f(0x229)](){const _0x14ab12=_0x71273f;var _0x9409d2;(_0x9409d2=this[_0x14ab12(0x22d)])==null||_0x9409d2[_0x14ab12(0x229)](),this['_status$']['next'](_0x14ab12(0x258)),this['_status$'][_0x14ab12(0x1d6)]();}['getStatus'](){return this['_status'];}[_0x71273f(0x25d)](){const _0x6907a8=_0x71273f;this['_init']||(this['_init']=!0x0,this[_0x6907a8(0x1a3)][_0x6907a8(0x215)][_0x6907a8(0x1ea)](I['takeUntil'](this[_0x6907a8(0x22b)]))[_0x6907a8(0x207)](_0x1959d3=>{const _0x17f581=_0x6907a8;switch(_0x1959d3){case b[_0x17f581(0x212)][_0x17f581(0x1c2)]:this[_0x17f581(0x1d7)]();break;case b[_0x17f581(0x212)][_0x17f581(0x1f8)]:this[_0x17f581(0x241)]();break;}}),this[_0x6907a8(0x1a3)]['event$'][_0x6907a8(0x1ea)](I[_0x6907a8(0x1ca)](this[_0x6907a8(0x22b)]))[_0x6907a8(0x207)](_0x5a1fc6=>{const _0x503fad=_0x6907a8,{eventID:_0x5a7841}=_0x5a1fc6;switch(_0x5a7841){case d[_0x503fad(0x1f6)][_0x503fad(0x1cc)]:this[_0x503fad(0x211)](_0x5a1fc6);break;case d[_0x503fad(0x1f6)][_0x503fad(0x216)]:this[_0x503fad(0x1ed)](_0x5a1fc6);break;case d[_0x503fad(0x1f6)]['LIVESHARE_TERMINATE']:this[_0x503fad(0x1f1)]();break;case d[_0x503fad(0x1f6)][_0x503fad(0x1e2)]:this['_handleNewChangeSets'](_0x5a1fc6);break;}}));}[_0x71273f(0x1c9)](){const _0xda93da=_0x71273f;this['_collabSession'][_0xda93da(0x24c)]({'eventID':d[_0xda93da(0x1f6)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xda93da(0x1f7)],'userID':this['_collabSession']['getMemberID']()}},this[_0xda93da(0x1f7)]);}[_0x71273f(0x1f2)](){const _0x1a5a76=_0x71273f;this[_0x1a5a76(0x1e5)]===_0x1a5a76(0x259)&&(this[_0x1a5a76(0x1e4)][_0x1a5a76(0x1f0)](_0x1a5a76(0x258)),this[_0x1a5a76(0x1a3)][_0x1a5a76(0x24c)]({'eventID':d['CollaborationEvent'][_0x1a5a76(0x190)],'data':{'unitID':this[_0x1a5a76(0x1f7)]}},this[_0x1a5a76(0x1f7)]));}[_0x71273f(0x1af)](){const _0x52f9e5=_0x71273f;this['_status']===_0x52f9e5(0x22c)&&(this[_0x52f9e5(0x1e4)][_0x52f9e5(0x1f0)](_0x52f9e5(0x21c)),this[_0x52f9e5(0x240)]());}[_0x71273f(0x214)](){const _0x320d0a=_0x71273f;this[_0x320d0a(0x1e5)]===_0x320d0a(0x21c)&&this[_0x320d0a(0x1e0)]();}[_0x71273f(0x211)](_0x179bad){const _0x47d912=_0x71273f,{presenter:_0x40c2b5}=_0x179bad[_0x47d912(0x19b)],_0x3ece16=this[_0x47d912(0x1a3)][_0x47d912(0x1e6)]();this[_0x47d912(0x1fd)]=_0x40c2b5,_0x40c2b5===_0x3ece16?(this[_0x47d912(0x1e0)](),this[_0x47d912(0x18e)]()):this[_0x47d912(0x1e5)]!==_0x47d912(0x22c)&&(this['_stopPresenting'](),this[_0x47d912(0x240)]());}['_fetchOperations'](){const _0x17af4d=_0x71273f,_0xe98c97={'eventID':d[_0x17af4d(0x1f6)][_0x17af4d(0x199)]};this[_0x17af4d(0x1a3)][_0x17af4d(0x24c)](_0xe98c97,this[_0x17af4d(0x1f7)]);}[_0x71273f(0x1f1)](){const _0x2e1794=_0x71273f;this[_0x2e1794(0x1fd)]=null,this[_0x2e1794(0x1e5)]!==_0x2e1794(0x259)&&this['_beIdle']();}['_handleNewChangeSets'](_0x417744){const _0x43673e=_0x71273f;if(this[_0x43673e(0x1e5)]===_0x43673e(0x21c)&&this[_0x43673e(0x1fd)]===_0x417744[_0x43673e(0x19b)][_0x43673e(0x201)]){const _0x532da3=d[_0x43673e(0x231)](_0x417744[_0x43673e(0x19b)])[_0x43673e(0x25c)][_0x43673e(0x200)]()['find'](_0x5f3141=>_0x5f3141['id']===C[_0x43673e(0x1d5)]['id']);if(_0x532da3){const _0x2509ea=_0x532da3[_0x43673e(0x1ae)][_0x43673e(0x24d)],_0x246af1=_0x532da3[_0x43673e(0x1ae)][_0x43673e(0x1a2)]['id'];setTimeout(()=>{const _0x27d11c=_0x43673e;this[_0x27d11c(0x1cd)][_0x27d11c(0x18c)](C[_0x27d11c(0x1b8)]['id'],{'unitId':_0x2509ea,'subUnitId':_0x246af1},{'fromCollab':!0x0});});}}}[_0x71273f(0x18e)](){const _0x2335d3=_0x71273f;this[_0x2335d3(0x1e4)][_0x2335d3(0x1f0)](_0x2335d3(0x259));const _0x13a427=new Map(),_0x2f87bc=this[_0x2335d3(0x22d)]=new o[(_0x2335d3(0x1c5))]();_0x2f87bc[_0x2335d3(0x18d)](o[_0x2335d3(0x1ec)](()=>{const _0x33b770=_0x2335d3;_0x13a427[_0x33b770(0x244)](_0x566379=>_0x566379[_0x33b770(0x1d6)]()),_0x13a427['clear']();})),_0x2f87bc[_0x2335d3(0x18d)](this[_0x2335d3(0x1cd)]['onCommandExecuted'](_0x25cf0f=>{const _0x32bebd=_0x2335d3;var _0x2fe218;if(_0x25cf0f[_0x32bebd(0x1c4)]!==o['CommandType'][_0x32bebd(0x1b0)]||!this['_liveShareService'][_0x32bebd(0x1b6)](_0x25cf0f['id']))return;const {id:_0x12c636}=_0x25cf0f;let _0x199b57;_0x13a427[_0x32bebd(0x24a)](_0x12c636)?_0x199b57=_0x13a427['get'](_0x12c636):(_0x199b57=new O['Subject'](),_0x13a427[_0x32bebd(0x250)](_0x12c636,_0x199b57),_0x199b57['pipe'](I[_0x32bebd(0x19a)]((_0x2fe218=this['_configService'][_0x32bebd(0x220)](k))!=null?_0x2fe218:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32bebd(0x207)](_0x4aaef4=>{const _0x28f2d6=_0x32bebd;this[_0x28f2d6(0x1a3)][_0x28f2d6(0x24c)]({'eventID':d[_0x28f2d6(0x1f6)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4aaef4['id']]:{'id':_0x4aaef4['id'],'params':JSON[_0x28f2d6(0x191)](_0x4aaef4[_0x28f2d6(0x1ae)])}}}},this[_0x28f2d6(0x1f7)]);})),_0x199b57[_0x32bebd(0x1f0)](_0x25cf0f);})),this[_0x2335d3(0x20a)][_0x2335d3(0x225)](this['_unitID'])[_0x2335d3(0x244)](_0x4ef630=>this[_0x2335d3(0x1a3)][_0x2335d3(0x24c)]({'eventID':d[_0x2335d3(0x1f6)][_0x2335d3(0x216)],'data':{'unitID':this[_0x2335d3(0x1f7)],'operations':{[_0x4ef630['id']]:{'id':_0x4ef630['id'],'params':JSON[_0x2335d3(0x191)](_0x4ef630[_0x2335d3(0x1ae)])}}}},this[_0x2335d3(0x1f7)]));}[_0x71273f(0x192)](){const _0x3f9dec=_0x71273f;var _0x18ffed;this['_status$'][_0x3f9dec(0x1f0)](_0x3f9dec(0x258)),(_0x18ffed=this[_0x3f9dec(0x22d)])==null||_0x18ffed[_0x3f9dec(0x229)](),this[_0x3f9dec(0x22d)]=null;}['_startFollowing'](){const _0x3c1e63=_0x71273f;var _0x34b775;(_0x34b775=this['_commandDisposable'])==null||_0x34b775['dispose'](),this[_0x3c1e63(0x1e4)][_0x3c1e63(0x1f0)]('following');}[_0x71273f(0x19f)](){const _0x286f7e=_0x71273f;var _0x40945e;this[_0x286f7e(0x1e4)][_0x286f7e(0x1f0)]('idle'),(_0x40945e=this[_0x286f7e(0x22d)])==null||_0x40945e[_0x286f7e(0x229)](),this[_0x286f7e(0x22d)]=null;}['_stopFollowing'](){const _0x16051b=_0x71273f;var _0x55f50f;this[_0x16051b(0x1e4)]['next'](_0x16051b(0x22c)),(_0x55f50f=this[_0x16051b(0x22d)])==null||_0x55f50f[_0x16051b(0x229)]();}[_0x71273f(0x1ed)](_0x2d50be){const _0x56d30c=_0x71273f;if(['presenting','not-following','offline']['includes'](this[_0x56d30c(0x1e5)])||!_0x2d50be[_0x56d30c(0x19b)][_0x56d30c(0x20f)]||_0x2d50be[_0x56d30c(0x19b)][_0x56d30c(0x20f)]===this[_0x56d30c(0x1a3)][_0x56d30c(0x1e6)]())return;this[_0x56d30c(0x1e5)]==='idle'&&this[_0x56d30c(0x240)]();const _0x14a7c3=_0x2d50be[_0x56d30c(0x19b)][_0x56d30c(0x1eb)];Object[_0x56d30c(0x227)](_0x14a7c3)[_0x56d30c(0x244)](_0xeff6f1=>{const _0x315fdf=_0x56d30c;this[_0x315fdf(0x1cd)][_0x315fdf(0x18c)](_0xeff6f1['id'],_0xeff6f1[_0x315fdf(0x1ae)]?JSON[_0x315fdf(0x1a9)](_0xeff6f1[_0x315fdf(0x1ae)]):null,{'fromCollab':!0x0});});}[_0x71273f(0x1d7)](){const _0x5a70fc=_0x71273f;var _0x3951fc;this[_0x5a70fc(0x1e4)][_0x5a70fc(0x1f0)]('offline'),(_0x3951fc=this[_0x5a70fc(0x22d)])==null||_0x3951fc[_0x5a70fc(0x229)]();}['_handleOnline'](){const _0x2e2409=_0x71273f;this[_0x2e2409(0x1e4)][_0x2e2409(0x1f0)](_0x2e2409(0x258)),this[_0x2e2409(0x1d4)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x71273f(0x1bd)]),S(0x3,o[_0x71273f(0x1d0)](E)),S(0x4,o[_0x71273f(0x185)])],exports[_0x71273f(0x232)]);function _0xa0d3(){const _0x4e3ec9=['IDLE','getUnitId','mask','parseProtocolChangeset','LiveShareCoordinator','useState','children','159585vAbyXB','map','toString','_entities','114520ZeGSEu','BuiltInUIPart','registerSharedOperation','getTypeOfUnitAdded$','NOT_FOLLOWING','delete','currentColor','_startFollowing','_handleOnline','includes','path','forEach','LiveShareController','Disposable','then','_reporters','getLiveShareCoordinatorSync','has','Fragment','send','unitId','useRef','LiveShareStatus','set','offline','2089134TWSCof','button','IUniverInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','clsx','none','idle','presenting','asObservable','connectInjector','mutations','init','idSuffix','defIds','ICommandService','symbol','registerComponent','Start\x20following','LiveShare','getCurrentTypeOfUnit$','1731804bsmKLn','executeCommand','add','_startPresenting','forwardRef','LIVESHARE_TERMINATE','stringify','_stopPresenting','xlink:href','CollaborationSessionService','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','current','getTypeOfUnitDisposed$','LIVESHARE_FETCH_OPERATIONS','throttleTime','data','disposeWithMe','use','DependentOn','_beIdle','Button','_uiPartsService','sheet','_collabSession','_configService','Dropdown','HEADER_MENU','0\x200\x2017\x2017','registerInitialStateReporter','parse','5XtNjWz','tag','entries','26xglObB','params','startFollowing','OPERATION','Injector','SetZoomRatioOperation','UniverInstanceType','getValue','jsxs','shouldShareOperation','BehaviorSubject','SetWorksheetActiveOperation','touchDependencies','getLiveShareCoordinator','useDependency','createInstance','IConfigService','_init','LiveShareIcon','_config','attrs','OFFLINE','colorChannel1','type','DisposableCollection','live-share-icon','PRESENTING','unsubscribe','tryStartPresenting','takeUntil','displayName','LIVESHARE_NEW_HOST','_commandService','string','_injector','Inject','UNIVER_LIVE_SHARE_PLUGIN','end','defs','_fetchOperations','InsertSheetMutation','complete','_handleOffline','length','get','jsx','UNIVER_UNKNOWN','772604xitWIT','Start','_collabSessionService','UniverIcon','_stopFollowing','status$','NEW_CHANGESETS','_univerInstanceService','_status$','_status','getMemberID','UNIVER_SHEET','univerjs-icon\x20univerjs-icon-','useEffect','pipe','operations','toDisposable','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverLiveSharePlugin','next','_handleTerminate','stopPresenting','_startLiveShareCoordinator','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','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','CollaborationEvent','_unitID','ONLINE','merge','Stop\x20following','default','http://www.w3.org/2000/svg','_presenter','20211sHPALn','substring','reverse','memberID','registerDependencies','live-share.config','getOwnPropertyDescriptor','defineProperty','Present\x20this\x20document','subscribe','fill','1em','_liveShareService','univer-size-4','240644axXCOE','RxDisposable','onStarting','presenter','text','_handleNewHost','SessionStatus','LiveShareService','stopFollowing','sessionStatus$','LIVESHARE_OPERATION','Stop\x20presenting','DesktopLiveShareController','_sharedOperations','assign','evenodd','following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','div','replace','getConfig','createElement','pluginName','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','You\x27re\x20following\x20the\x20presenter','getInitialStates','trim','values','Plugin','dispose','svg','dispose$','not-following','_commandDisposable'];_0xa0d3=function(){return _0x4e3ec9;};return _0xa0d3();}function $(){const _0x529e09=_0x71273f,_0xef0527=p[_0x529e09(0x1bb)](exports[_0x529e09(0x245)]),_0x35823e=p[_0x529e09(0x1bb)](o[_0x529e09(0x254)]),_0x3fa9ff=p['useObservable'](()=>_0x35823e[_0x529e09(0x18a)](o[_0x529e09(0x1b3)][_0x529e09(0x1e7)]),void 0x0,!0x1,[]),[_0x123cf3,_0x3a26e8]=v[_0x529e09(0x233)](null),[_0x773d13,_0x10842b]=v[_0x529e09(0x233)](u[_0x529e09(0x22e)]),_0x46207a=v[_0x529e09(0x24e)](null);return v[_0x529e09(0x1e9)](()=>(_0x3fa9ff&&_0xef0527[_0x529e09(0x1ba)](_0x3fa9ff[_0x529e09(0x22f)]())[_0x529e09(0x247)](_0x578bcc=>{const _0xc71cfc=_0x529e09;_0x3a26e8(_0x578bcc),_0x46207a[_0xc71cfc(0x197)]=_0x578bcc['status$']['subscribe'](_0xfc7696=>{_0x10842b(_0xfc7696);});}),()=>{const _0x17b07a=_0x529e09;var _0x398845;(_0x398845=_0x46207a[_0x17b07a(0x197)])==null||_0x398845[_0x17b07a(0x1c8)](),_0x46207a[_0x17b07a(0x197)]=null;}),[_0x3fa9ff,_0xef0527]),_0x123cf3?l[_0x529e09(0x1da)](f[_0x529e09(0x1a5)],{'align':_0x529e09(0x1d2),'disabled':_0x773d13===u['OFFLINE'],'className':_0x529e09(0x1f4),'overlay':l[_0x529e09(0x1da)](W,{'status':_0x773d13,'coordinator':_0x123cf3}),'children':l[_0x529e09(0x1da)](_0x529e09(0x253),{'className':f[_0x529e09(0x256)](_0x529e09(0x21d),{'univer-cursor-not-allowed':_0x773d13===u[_0x529e09(0x1c2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x773d13!==u[_0x529e09(0x1c2)]}),'type':'button','children':l[_0x529e09(0x1da)](R,{'className':_0x529e09(0x20b)})})}):null;}function W(_0x6a0508){const _0x5b4355=_0x71273f,{status:_0x1bc16f,coordinator:_0x2562ee}=_0x6a0508;switch(_0x1bc16f){case u[_0x5b4355(0x22e)]:return l[_0x5b4355(0x1da)](G,{'coordinator':_0x2562ee});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x2562ee});case u[_0x5b4355(0x23d)]:return l[_0x5b4355(0x1da)](Y,{'coordinator':_0x2562ee});case u[_0x5b4355(0x1c2)]:return l[_0x5b4355(0x1da)](J,{});case u['PRESENTING']:return l[_0x5b4355(0x1da)](Z,{'coordinator':_0x2562ee});default:return null;}}function G(_0x41b819){const _0x36f9e9=_0x71273f,{coordinator:_0x1936a4}=_0x41b819;return l['jsxs'](l[_0x36f9e9(0x24b)],{'children':[l[_0x36f9e9(0x1da)](_0x36f9e9(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x36f9e9(0x206)}),l['jsx'](f[_0x36f9e9(0x1a0)],{'onClick':()=>_0x1936a4[_0x36f9e9(0x1c9)](),'children':_0x36f9e9(0x1dd)})]});}function B(_0x87a29a){const _0x4dabb9=_0x71273f,{coordinator:_0x862d28}=_0x87a29a;return l[_0x4dabb9(0x1b5)](l[_0x4dabb9(0x24b)],{'children':[l[_0x4dabb9(0x1da)](_0x4dabb9(0x21e),{'className':_0x4dabb9(0x1ee),'children':_0x4dabb9(0x224)}),l['jsx'](f['Button'],{'onClick':()=>_0x862d28[_0x4dabb9(0x214)](),'children':_0x4dabb9(0x1fa)})]});}function Y(_0x51a263){const _0x32eb4f=_0x71273f,{coordinator:_0x4637a9}=_0x51a263;return l['jsxs'](l['Fragment'],{'children':[l[_0x32eb4f(0x1da)]('div',{'className':_0x32eb4f(0x1ee),'children':_0x32eb4f(0x255)}),l[_0x32eb4f(0x1da)](f['Button'],{'variant':_0x32eb4f(0x210),'onClick':()=>_0x4637a9[_0x32eb4f(0x1af)](),'children':_0x32eb4f(0x188)})]});}function Z(_0x3fb94d){const _0x21e76d=_0x71273f,{coordinator:_0x2b5c51}=_0x3fb94d;return l[_0x21e76d(0x1b5)](l[_0x21e76d(0x24b)],{'children':[l['jsx'](_0x21e76d(0x21e),{'className':_0x21e76d(0x1ee),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x21e76d(0x1da)](f[_0x21e76d(0x1a0)],{'variant':_0x21e76d(0x1fb),'onClick':()=>_0x2b5c51[_0x21e76d(0x1f2)](),'children':_0x21e76d(0x217)})]});}function J(){const _0x2799a0=_0x71273f;return l[_0x2799a0(0x1da)](l[_0x2799a0(0x24b)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x71273f(0x204)],z=(_0x4c4d41,_0x23c325,_0x143c53,_0x215017)=>{const _0x28cead=_0x71273f;for(var _0x505953=_0x215017>0x1?void 0x0:_0x215017?K(_0x23c325,_0x143c53):_0x23c325,_0x10366b=_0x4c4d41[_0x28cead(0x1d8)]-0x1,_0x308d4a;_0x10366b>=0x0;_0x10366b--)(_0x308d4a=_0x4c4d41[_0x10366b])&&(_0x505953=_0x308d4a(_0x505953)||_0x505953);return _0x505953;},L=(_0xa62359,_0x32e6a7)=>(_0x5aa4f7,_0x1ab83d)=>_0x32e6a7(_0x5aa4f7,_0x1ab83d,_0xa62359);exports[_0x71273f(0x218)]=class extends o[_0x71273f(0x246)]{constructor(_0x1f6f3a,_0x4620aa){const _0x169016=_0x71273f;super(),this[_0x169016(0x1cf)]=_0x1f6f3a,this[_0x169016(0x1a1)]=_0x4620aa,this[_0x169016(0x196)]();}['_mountLiveShare'](){const _0x35796d=_0x71273f;this[_0x35796d(0x19c)](this['_uiPartsService'][_0x35796d(0x187)](p[_0x35796d(0x23a)][_0x35796d(0x1a6)],()=>p[_0x35796d(0x25b)]($,this[_0x35796d(0x1cf)])));}},exports[_0x71273f(0x218)]=z([L(0x0,o[_0x71273f(0x1d0)](o[_0x71273f(0x1b1)])),L(0x1,p['IUIPartsService'])],exports[_0x71273f(0x218)]);const Q=_0x71273f(0x203),w={};var X=Object[_0x71273f(0x204)],ee=(_0x3b717a,_0x2036e3,_0x25645d,_0x33fab4)=>{for(var _0x1f9a1a=_0x33fab4>0x1?void 0x0:_0x33fab4?X(_0x2036e3,_0x25645d):_0x2036e3,_0x33c541=_0x3b717a['length']-0x1,_0x254b5a;_0x33c541>=0x0;_0x33c541--)(_0x254b5a=_0x3b717a[_0x33c541])&&(_0x1f9a1a=_0x254b5a(_0x1f9a1a)||_0x1f9a1a);return _0x1f9a1a;},te=(_0x42d1bb,_0xa9d986)=>(_0x58fef2,_0x2b4e39)=>_0xa9d986(_0x58fef2,_0x2b4e39,_0x42d1bb);let m=class extends o['Disposable']{constructor(_0x1d5c01){const _0x253172=_0x71273f;super(),this[_0x253172(0x20a)]=_0x1d5c01,this[_0x253172(0x1be)]();}['_init'](){const _0x200809=_0x71273f;[D[_0x200809(0x1b2)]['id'],D['SetScrollOperation']['id'],C[_0x200809(0x1b8)]['id']][_0x200809(0x244)](_0xdf0f3=>{const _0x627693=_0x200809;this[_0x627693(0x19c)](this[_0x627693(0x20a)][_0x627693(0x23b)](_0xdf0f3));});}};m=ee([te(0x0,o[_0x71273f(0x1d0)](E))],m);var ie=Object[_0x71273f(0x205)],se=Object[_0x71273f(0x204)],ne=(_0x142648,_0x3479dc,_0xb7afb1)=>_0x3479dc in _0x142648?ie(_0x142648,_0x3479dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb7afb1}):_0x142648[_0x3479dc]=_0xb7afb1,re=(_0x281af8,_0x1ca849,_0x4bab41,_0x5aa08c)=>{const _0x1a0cc2=_0x71273f;for(var _0x1562db=_0x5aa08c>0x1?void 0x0:_0x5aa08c?se(_0x1ca849,_0x4bab41):_0x1ca849,_0x2afec6=_0x281af8[_0x1a0cc2(0x1d8)]-0x1,_0x4ddd55;_0x2afec6>=0x0;_0x2afec6--)(_0x4ddd55=_0x281af8[_0x2afec6])&&(_0x1562db=_0x4ddd55(_0x1562db)||_0x1562db);return _0x1562db;},N=(_0x106a0a,_0x154055)=>(_0x2a0649,_0x41ec96)=>_0x154055(_0x2a0649,_0x41ec96,_0x106a0a),A=(_0x9081f8,_0xaf7764,_0x369f27)=>ne(_0x9081f8,typeof _0xaf7764!=_0x71273f(0x186)?_0xaf7764+'':_0xaf7764,_0x369f27);const oe=_0x71273f(0x1d1);exports[_0x71273f(0x1ef)]=class extends o[_0x71273f(0x228)]{constructor(_0x2238b0=w,_0x2fcc6d,_0x4bfa3d){const _0x522125=_0x71273f;super(),this[_0x522125(0x1c0)]=_0x2238b0,this[_0x522125(0x1cf)]=_0x2fcc6d,this[_0x522125(0x1a4)]=_0x4bfa3d;const {..._0x3b18c6}=o[_0x522125(0x1f9)]({},w,this['_config']);this[_0x522125(0x1a4)]['setConfig'](Q,_0x3b18c6);}[_0x71273f(0x20e)](){const _0x39e360=_0x71273f;o[_0x39e360(0x202)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x39e360(0x245)]],[m],[exports['DesktopLiveShareController']]],this[_0x39e360(0x1c0)]['override'])),o[_0x39e360(0x1b9)](this[_0x39e360(0x1cf)],[[m]]);}['onRendered'](){const _0x2247e8=_0x71273f;o[_0x2247e8(0x1b9)](this['_injector'],[[exports[_0x2247e8(0x218)]]]);}},A(exports['UniverLiveSharePlugin'],_0x71273f(0x1c4),o[_0x71273f(0x1b3)][_0x71273f(0x1db)]),A(exports['UniverLiveSharePlugin'],_0x71273f(0x222),oe),exports[_0x71273f(0x1ef)]=re([o[_0x71273f(0x19e)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x71273f(0x1d0)](o[_0x71273f(0x1b1)])),N(0x2,o[_0x71273f(0x1bd)])],exports[_0x71273f(0x1ef)]),exports[_0x71273f(0x189)]=$,exports[_0x71273f(0x213)]=E,exports[_0x71273f(0x24f)]=u;
|
|
1
|
+
'use strict';const _0x276616=_0x5eb0;(function(_0x4f37d2,_0x2994bd){const _0xc9cf13=_0x5eb0,_0x59ea2f=_0x4f37d2();while(!![]){try{const _0x3ab88d=-parseInt(_0xc9cf13(0x119))/0x1+parseInt(_0xc9cf13(0x13d))/0x2+parseInt(_0xc9cf13(0x1bf))/0x3*(-parseInt(_0xc9cf13(0x139))/0x4)+-parseInt(_0xc9cf13(0x1ae))/0x5*(parseInt(_0xc9cf13(0x17e))/0x6)+-parseInt(_0xc9cf13(0x17b))/0x7*(-parseInt(_0xc9cf13(0x19d))/0x8)+-parseInt(_0xc9cf13(0x1a3))/0x9+-parseInt(_0xc9cf13(0x155))/0xa;if(_0x3ab88d===_0x2994bd)break;else _0x59ea2f['push'](_0x59ea2f['shift']());}catch(_0x2a5e81){_0x59ea2f['push'](_0x59ea2f['shift']());}}}(_0x7d5a,0xc85c3));var T=Object[_0x276616(0x1cf)],U=(_0x51264c,_0x43096f,_0x56a977)=>_0x43096f in _0x51264c?T(_0x51264c,_0x43096f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56a977}):_0x51264c[_0x43096f]=_0x56a977,_=(_0x30156a,_0x11d4a7,_0x1f110d)=>U(_0x30156a,typeof _0x11d4a7!=_0x276616(0x18a)?_0x11d4a7+'':_0x11d4a7,_0x1f110d);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x276616(0x1c2)});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:_0x20eed6,..._0x274cdd}){const _0xc4043a=_0x276616,{icon:_0x54d23c,id:_0x30a17a,className:_0x282f15,extend:_0x5b4f95,..._0x26856a}=_0x274cdd,_0x5e7d74=(_0xc4043a(0x146)+_0x30a17a+'\x20'+(_0x282f15||''))[_0xc4043a(0x129)](),_0x30327d=v[_0xc4043a(0x19b)]('_'+H());return j(_0x54d23c,''+_0x30a17a,{'defIds':_0x54d23c[_0xc4043a(0x113)],'idSuffix':_0x30327d[_0xc4043a(0x145)]},{'ref':_0x20eed6,'className':_0x5e7d74,..._0x26856a},_0x5b4f95);}function j(_0x33f75b,_0x11fd27,_0x49e4c1,_0x3d977d,_0x4b11c6){const _0x5321ab=_0x276616;return v[_0x5321ab(0x115)](_0x33f75b[_0x5321ab(0x197)],{'key':_0x11fd27,...y(_0x33f75b,_0x49e4c1,_0x4b11c6),..._0x3d977d},(F(_0x33f75b,_0x49e4c1)[_0x5321ab(0x12d)]||[])[_0x5321ab(0x1c5)]((_0x1508d3,_0x5e8f6f)=>j(_0x1508d3,_0x11fd27+'-'+_0x33f75b[_0x5321ab(0x197)]+'-'+_0x5e8f6f,_0x49e4c1,void 0x0,_0x4b11c6)));}function y(_0x34e7d4,_0x9ef990,_0x48cd34){const _0x4c4992=_0x276616,_0x3e05aa={..._0x34e7d4[_0x4c4992(0x188)]};_0x48cd34!=null&&_0x48cd34['colorChannel1']&&_0x3e05aa[_0x4c4992(0x187)]===_0x4c4992(0x138)&&(_0x3e05aa[_0x4c4992(0x187)]=_0x48cd34[_0x4c4992(0x138)]),_0x34e7d4[_0x4c4992(0x197)]===_0x4c4992(0x123)&&_0x3e05aa['id']&&(_0x3e05aa['id']=_0x3e05aa['id']+_0x9ef990[_0x4c4992(0x108)]),Object['entries'](_0x3e05aa)[_0x4c4992(0x1c8)](([_0x50cde8,_0x576fad])=>{const _0x2830ba=_0x4c4992;_0x50cde8===_0x2830ba(0x123)&&typeof _0x576fad==_0x2830ba(0x172)&&(_0x3e05aa[_0x50cde8]=_0x576fad[_0x2830ba(0x184)](/url\(#(.*)\)/,'url(#$1'+_0x9ef990[_0x2830ba(0x108)]+')'));});const {defIds:_0x5b6481}=_0x9ef990;return!_0x5b6481||_0x5b6481[_0x4c4992(0x16a)]===0x0||(_0x34e7d4[_0x4c4992(0x197)]===_0x4c4992(0x117)&&_0x3e05aa[_0x4c4992(0x183)]&&(_0x3e05aa[_0x4c4992(0x183)]=_0x3e05aa[_0x4c4992(0x183)]+_0x9ef990[_0x4c4992(0x108)]),Object[_0x4c4992(0x1a8)](_0x3e05aa)[_0x4c4992(0x1c8)](([_0x90cf6f,_0x3b9f40])=>{const _0x501b86=_0x4c4992;typeof _0x3b9f40==_0x501b86(0x172)&&(_0x3e05aa[_0x90cf6f]=_0x3b9f40[_0x501b86(0x184)](/url\(#(.*)\)/,_0x501b86(0x147)+_0x9ef990['idSuffix']+')'));})),_0x3e05aa;}function _0x7d5a(){const _0x23baf8=['_status','SessionStatus','You\x27are\x20offline.','offline','1188171sguYCG','Subject','HEADER_MENU','Module','useDependency','find','map','_init','_configService','forEach','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','getUnitId','getTypeOfUnitAdded$','displayName','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','defineProperty','_config','getCurrentTypeOfUnit$','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','Injector','_collabSessionService','clear','presenter','override','idSuffix','IConfigService','NEW_CHANGESETS','_status$','dispose$','then','stopPresenting','parseProtocolChangeset','svg','touchDependencies','SetScrollOperation','defIds','tryStartPresenting','createElement','_handleTerminate','use','registerInitialStateReporter','257182RLyzIg','registerSharedOperation','LiveShareCoordinator','dispose','stringify','_injector','_mountLiveShare','SetWorksheetActiveOperation','UniverLiveSharePlugin','BuiltInUIPart','mask','pipe','UniverIcon','event$','BehaviorSubject','presenting','trim','has','toDisposable','getOwnPropertyDescriptor','children','values','createInstance','unitId','stopFollowing','getStatus','following','_startLiveShareCoordinator','getTypeOfUnitDisposed$','clsx','InsertSheetMutation','colorChannel1','4MPKrzD','toString','disposeWithMe','substring','1986222EAHGeW','useObservable','init','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','PRESENTING','shouldShareOperation','getMemberID','reverse','current','univerjs-icon\x20univerjs-icon-','url(#$1','_entities','Start\x20following','_stopPresenting','Fragment','NOT_FOLLOWING','forwardRef','currentColor','univer-size-4','http://www.w3.org/2000/svg','params','memberID','Stop\x20presenting','_handleNewHost','796280KTdqzo','set','from','onCommandExecuted','idle','_fetchOperations','setConfig','_univerInstanceService','_startPresenting','_sharedOperations','getLiveShareCoordinator','_collabSession','delete','div','Button','none','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','text','OPERATION','mutations','length','IUniverInstanceService','jsxs','DisposableCollection','LIVESHARE_FETCH_OPERATIONS','SAME_OPERATION_SHARE_INTERVAL','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','string','OFFLINE','send','registerDependencies','LiveShareIcon','LIVESHARE_OPERATION','IDLE','CollaborationEvent','ONLINE','10950163AWmvNU','pluginName','defs','130776jMXivt','includes','1em','_liveShareService','live-share.config','xlink:href','replace','executeCommand','get','fill','attrs','Inject','symbol','path','CollaborationSessionService','jsx','next','Disposable','assign','_startFollowing','mergeOverrideWithDependencies','LIVESHARE_REQUEST_HOST','connectInjector','unsubscribe','sessionStatus$','tag','_handleOffline','LiveShareController','UniverInstanceType','useRef','live-share-icon','8HUDjkJ','takeUntil','requireSession','_beIdle','evenodd','data','2365326laQLyG','throttleTime','_commandDisposable','_stopFollowing','_unitID','entries','DesktopLiveShareController','asObservable','status$','add','LiveShareStatus','170IcgPZu','Start','UNIVER_SHEET','operations','CommandType','getLiveShareCoordinatorSync','RxDisposable','_commandService','not-following','subscribe','_reporters','ICommandService','useState'];_0x7d5a=function(){return _0x23baf8;};return _0x7d5a();}function F(_0x1fbc39,_0x3fcafe){const _0x5712bd=_0x276616;var _0x2587de;const {defIds:_0x2a722a}=_0x3fcafe;return!_0x2a722a||_0x2a722a[_0x5712bd(0x16a)]===0x0?_0x1fbc39:_0x1fbc39[_0x5712bd(0x197)]===_0x5712bd(0x17d)&&((_0x2587de=_0x1fbc39[_0x5712bd(0x12d)])!=null&&_0x2587de[_0x5712bd(0x16a)])?{..._0x1fbc39,'children':_0x1fbc39[_0x5712bd(0x12d)]['map'](_0x72d15a=>typeof _0x72d15a[_0x5712bd(0x188)]['id']=='string'&&_0x2a722a&&_0x2a722a[_0x5712bd(0x17f)](_0x72d15a[_0x5712bd(0x188)]['id'])?{..._0x72d15a,'attrs':{..._0x72d15a[_0x5712bd(0x188)],'id':_0x72d15a[_0x5712bd(0x188)]['id']+_0x3fcafe[_0x5712bd(0x108)]}}:_0x72d15a)}:_0x1fbc39;}function H(){const _0xac838a=_0x276616;return Math['random']()[_0xac838a(0x13a)](0x24)[_0xac838a(0x13c)](0x2,0x8);}x[_0x276616(0x1cd)]=_0x276616(0x125);const V={'tag':_0x276616(0x110),'attrs':{'xmlns':_0x276616(0x150),'fill':_0x276616(0x164),'viewBox':'0\x200\x2017\x2017','width':_0x276616(0x180),'height':_0x276616(0x180)},'children':[{'tag':_0x276616(0x18b),'attrs':{'fill':_0x276616(0x14e),'d':_0x276616(0x1ce)}},{'tag':_0x276616(0x18b),'attrs':{'fill':_0x276616(0x14e),'d':_0x276616(0x102),'fillRule':'evenodd','clipRule':_0x276616(0x1a1)}}]},R=v[_0x276616(0x14d)](function(_0x5d3f2c,_0x2a7f5e){const _0x57e303=_0x276616;return v[_0x57e303(0x115)](x,Object[_0x57e303(0x190)]({},_0x5d3f2c,{'id':_0x57e303(0x19c),'ref':_0x2a7f5e,'icon':V}));});R[_0x276616(0x1cd)]=_0x276616(0x176);class E extends o['Disposable']{constructor(){const _0x38952e=_0x276616;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x38952e(0x1b8),new Set());}['registerSharedOperation'](_0x3c5740){const _0x234d08=_0x276616;return this['_sharedOperations'][_0x234d08(0x1ac)](_0x3c5740),o['toDisposable'](()=>this[_0x234d08(0x15e)][_0x234d08(0x161)](_0x3c5740));}[_0x276616(0x118)](_0x2c4288){const _0x2b6637=_0x276616;return this[_0x2b6637(0x1b8)][_0x2b6637(0x1ac)](_0x2c4288),o['toDisposable'](()=>this[_0x2b6637(0x1b8)]['delete'](_0x2c4288));}[_0x276616(0x142)](_0x3ee055){const _0xf757d=_0x276616;return this[_0xf757d(0x15e)][_0xf757d(0x12a)](_0x3ee055);}['getInitialStates'](_0x3a85c7){const _0x2bd8e2=_0x276616;return Array[_0x2bd8e2(0x157)](this[_0x2bd8e2(0x1b8)])[_0x2bd8e2(0x1c5)](_0x2ef2a4=>_0x2ef2a4(_0x3a85c7));}}var M=Object[_0x276616(0x12c)],P=(_0x2919dc,_0x520474,_0x8b2085,_0x25ea23)=>{const _0x2c9cd5=_0x276616;for(var _0x431a9b=_0x25ea23>0x1?void 0x0:_0x25ea23?M(_0x520474,_0x8b2085):_0x520474,_0x5c504e=_0x2919dc[_0x2c9cd5(0x16a)]-0x1,_0xcf7e60;_0x5c504e>=0x0;_0x5c504e--)(_0xcf7e60=_0x2919dc[_0x5c504e])&&(_0x431a9b=_0xcf7e60(_0x431a9b)||_0x431a9b);return _0x431a9b;},S=(_0x20a838,_0x48e678)=>(_0x2cf2c7,_0x42ac1c)=>_0x48e678(_0x2cf2c7,_0x42ac1c,_0x20a838);exports[_0x276616(0x199)]=class extends o[_0x276616(0x1b4)]{constructor(_0x49eb28,_0x13ebd6,_0x2db66e){const _0x146546=_0x276616;super(),_(this,_0x146546(0x148),new Map()),(this['_univerInstanceService']=_0x49eb28,this['_injector']=_0x13ebd6,this[_0x146546(0x104)]=_0x2db66e,this[_0x146546(0x1c6)]());}async[_0x276616(0x15f)](_0x353363){const _0x5b98fa=_0x276616;return this[_0x5b98fa(0x148)][_0x5b98fa(0x12a)](_0x353363)||await this[_0x5b98fa(0x134)](_0x353363),this[_0x5b98fa(0x148)]['get'](_0x353363);}[_0x276616(0x1b3)](_0xb60053){var _0x52d76b;return(_0x52d76b=this['_entities']['get'](_0xb60053))!=null?_0x52d76b:null;}[_0x276616(0x1c6)](){const _0x11fc04=_0x276616;this['_univerInstanceService'][_0x11fc04(0x1cc)](o[_0x11fc04(0x19a)][_0x11fc04(0x1b0)])[_0x11fc04(0x124)](I[_0x11fc04(0x19e)](this[_0x11fc04(0x10c)]))[_0x11fc04(0x1b7)](async _0x2b5919=>{const _0x10d330=_0x11fc04,_0x41ea5d=_0x2b5919[_0x10d330(0x1cb)]();this[_0x10d330(0x148)][_0x10d330(0x12a)](_0x41ea5d)||this[_0x10d330(0x134)](_0x41ea5d);}),this[_0x11fc04(0x15c)][_0x11fc04(0x135)](o[_0x11fc04(0x19a)][_0x11fc04(0x1b0)])[_0x11fc04(0x124)](I[_0x11fc04(0x19e)](this['dispose$']))[_0x11fc04(0x1b7)](_0x541a21=>{const _0x217942=_0x11fc04,_0x35c2b8=_0x541a21['getUnitId'](),_0x447661=this[_0x217942(0x148)]['get'](_0x35c2b8);_0x447661==null||_0x447661[_0x217942(0x11c)]();});}async[_0x276616(0x134)](_0x440312){const _0x598f60=_0x276616,_0x1042e7=await this['_collabSessionService'][_0x598f60(0x19f)](_0x440312),_0x4a6c3a=this[_0x598f60(0x11e)][_0x598f60(0x12f)](exports[_0x598f60(0x11b)],_0x440312,_0x1042e7);return _0x4a6c3a['init'](),this[_0x598f60(0x148)][_0x598f60(0x156)](_0x440312,_0x4a6c3a),_0x4a6c3a;}},exports[_0x276616(0x199)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x276616(0x189)](o[_0x276616(0x103)])),S(0x2,o['Inject'](b[_0x276616(0x18c)]))],exports[_0x276616(0x199)]);var u=(_0x24165b=>(_0x24165b['OFFLINE']=_0x276616(0x1be),_0x24165b[_0x276616(0x178)]=_0x276616(0x159),_0x24165b['FOLLOWING']=_0x276616(0x133),_0x24165b[_0x276616(0x14c)]=_0x276616(0x1b6),_0x24165b[_0x276616(0x141)]=_0x276616(0x128),_0x24165b))(u||{});const k=_0x276616(0x16f),q=0xc8;exports[_0x276616(0x11b)]=class extends o['RxDisposable']{constructor(_0x486d3b,_0x495540,_0xc57f27,_0x58bdca,_0x32e3a7){const _0x51f240=_0x276616;super(),_(this,_0x51f240(0x10b),new O[(_0x51f240(0x127))](_0x51f240(0x159))),_(this,_0x51f240(0x1ab),this[_0x51f240(0x10b)][_0x51f240(0x1aa)]()),_(this,_0x51f240(0x1c6),!0x1),_(this,_0x51f240(0x1a5),null),_(this,'_presenter',null),(this[_0x51f240(0x1a7)]=_0x486d3b,this[_0x51f240(0x160)]=_0x495540,this[_0x51f240(0x1c7)]=_0xc57f27,this[_0x51f240(0x181)]=_0x58bdca,this['_commandService']=_0x32e3a7);}get['_status'](){const _0x3839fe=_0x276616;return this['_status$'][_0x3839fe(0x171)]();}['dispose'](){const _0x1dbd9b=_0x276616;var _0x3d3cd3;(_0x3d3cd3=this['_commandDisposable'])==null||_0x3d3cd3['dispose'](),this[_0x1dbd9b(0x10b)]['next']('idle'),this[_0x1dbd9b(0x10b)]['complete']();}[_0x276616(0x132)](){return this['_status'];}[_0x276616(0x13f)](){const _0x25b988=_0x276616;this['_init']||(this['_init']=!0x0,this[_0x25b988(0x160)][_0x25b988(0x196)][_0x25b988(0x124)](I[_0x25b988(0x19e)](this['dispose$']))['subscribe'](_0x593d6b=>{const _0x465790=_0x25b988;switch(_0x593d6b){case b[_0x465790(0x1bc)]['OFFLINE']:this[_0x465790(0x198)]();break;case b['SessionStatus'][_0x465790(0x17a)]:this[_0x465790(0x1ca)]();break;}}),this['_collabSession'][_0x25b988(0x126)][_0x25b988(0x124)](I[_0x25b988(0x19e)](this[_0x25b988(0x10c)]))['subscribe'](_0x31ad6f=>{const _0x4cf534=_0x25b988,{eventID:_0x5231bf}=_0x31ad6f;switch(_0x5231bf){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x4cf534(0x154)](_0x31ad6f);break;case d['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x31ad6f);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x4cf534(0x116)]();break;case d[_0x4cf534(0x179)][_0x4cf534(0x10a)]:this['_handleNewChangeSets'](_0x31ad6f);break;}}));}[_0x276616(0x114)](){const _0x106307=_0x276616;this[_0x106307(0x160)][_0x106307(0x174)]({'eventID':d[_0x106307(0x179)][_0x106307(0x193)],'data':{'unitID':this[_0x106307(0x1a7)],'userID':this[_0x106307(0x160)][_0x106307(0x143)]()}},this['_unitID']);}[_0x276616(0x10e)](){const _0x319544=_0x276616;this['_status']===_0x319544(0x128)&&(this[_0x319544(0x10b)][_0x319544(0x18e)](_0x319544(0x159)),this[_0x319544(0x160)][_0x319544(0x174)]({'eventID':d[_0x319544(0x179)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x319544(0x1a7)]));}['startFollowing'](){const _0x512c95=_0x276616;this[_0x512c95(0x1bb)]==='not-following'&&(this[_0x512c95(0x10b)][_0x512c95(0x18e)](_0x512c95(0x133)),this[_0x512c95(0x191)]());}['stopFollowing'](){const _0x3e4d9f=_0x276616;this[_0x3e4d9f(0x1bb)]==='following'&&this[_0x3e4d9f(0x1a6)]();}[_0x276616(0x154)](_0x30c7ac){const _0x6b5db1=_0x276616,{presenter:_0x148e0f}=_0x30c7ac[_0x6b5db1(0x1a2)],_0x37153b=this['_collabSession']['getMemberID']();this[_0x6b5db1(0x165)]=_0x148e0f,_0x148e0f===_0x37153b?(this[_0x6b5db1(0x1a6)](),this[_0x6b5db1(0x15d)]()):this[_0x6b5db1(0x1bb)]!==_0x6b5db1(0x1b6)&&(this[_0x6b5db1(0x14a)](),this[_0x6b5db1(0x191)]());}[_0x276616(0x15a)](){const _0x390a39=_0x276616,_0x3b2a65={'eventID':d[_0x390a39(0x179)][_0x390a39(0x16e)]};this[_0x390a39(0x160)]['send'](_0x3b2a65,this[_0x390a39(0x1a7)]);}['_handleTerminate'](){const _0x5375b2=_0x276616;this['_presenter']=null,this[_0x5375b2(0x1bb)]!==_0x5375b2(0x128)&&this[_0x5375b2(0x1a0)]();}['_handleNewChangeSets'](_0x53f07c){const _0x1099da=_0x276616;if(this[_0x1099da(0x1bb)]===_0x1099da(0x133)&&this[_0x1099da(0x165)]===_0x53f07c['data'][_0x1099da(0x152)]){const _0x2326d7=d[_0x1099da(0x10f)](_0x53f07c[_0x1099da(0x1a2)])[_0x1099da(0x169)][_0x1099da(0x144)]()[_0x1099da(0x1c4)](_0x4f6e6f=>_0x4f6e6f['id']===C[_0x1099da(0x137)]['id']);if(_0x2326d7){const _0x26ec61=_0x2326d7[_0x1099da(0x151)][_0x1099da(0x130)],_0x4e14f4=_0x2326d7[_0x1099da(0x151)]['sheet']['id'];setTimeout(()=>{const _0x71740a=_0x1099da;this[_0x71740a(0x1b5)][_0x71740a(0x185)](C[_0x71740a(0x120)]['id'],{'unitId':_0x26ec61,'subUnitId':_0x4e14f4},{'fromCollab':!0x0});});}}}[_0x276616(0x15d)](){const _0x35998b=_0x276616;this['_status$'][_0x35998b(0x18e)](_0x35998b(0x128));const _0x3917c6=new Map(),_0x4de7e1=this['_commandDisposable']=new o[(_0x35998b(0x16d))]();_0x4de7e1[_0x35998b(0x1ac)](o[_0x35998b(0x12b)](()=>{const _0x284f12=_0x35998b;_0x3917c6[_0x284f12(0x1c8)](_0xa77083=>_0xa77083['complete']()),_0x3917c6[_0x284f12(0x105)]();})),_0x4de7e1[_0x35998b(0x1ac)](this['_commandService'][_0x35998b(0x158)](_0x1c4c86=>{const _0x17f393=_0x35998b;var _0x461ffe;if(_0x1c4c86['type']!==o[_0x17f393(0x1b2)][_0x17f393(0x168)]||!this[_0x17f393(0x181)][_0x17f393(0x142)](_0x1c4c86['id']))return;const {id:_0x46756b}=_0x1c4c86;let _0x52e3d7;_0x3917c6[_0x17f393(0x12a)](_0x46756b)?_0x52e3d7=_0x3917c6[_0x17f393(0x186)](_0x46756b):(_0x52e3d7=new O[(_0x17f393(0x1c0))](),_0x3917c6['set'](_0x46756b,_0x52e3d7),_0x52e3d7[_0x17f393(0x124)](I[_0x17f393(0x1a4)]((_0x461ffe=this[_0x17f393(0x1c7)]['getConfig'](k))!=null?_0x461ffe:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5da34d=>{const _0x462413=_0x17f393;this[_0x462413(0x160)]['send']({'eventID':d[_0x462413(0x179)][_0x462413(0x177)],'data':{'unitID':this[_0x462413(0x1a7)],'operations':{[_0x5da34d['id']]:{'id':_0x5da34d['id'],'params':JSON[_0x462413(0x11d)](_0x5da34d[_0x462413(0x151)])}}}},this[_0x462413(0x1a7)]);})),_0x52e3d7['next'](_0x1c4c86);})),this['_liveShareService']['getInitialStates'](this[_0x35998b(0x1a7)])[_0x35998b(0x1c8)](_0x2c6307=>this['_collabSession'][_0x35998b(0x174)]({'eventID':d[_0x35998b(0x179)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2c6307['id']]:{'id':_0x2c6307['id'],'params':JSON[_0x35998b(0x11d)](_0x2c6307[_0x35998b(0x151)])}}}},this[_0x35998b(0x1a7)]));}[_0x276616(0x14a)](){const _0x2bfaad=_0x276616;var _0xfe0489;this[_0x2bfaad(0x10b)][_0x2bfaad(0x18e)]('idle'),(_0xfe0489=this[_0x2bfaad(0x1a5)])==null||_0xfe0489[_0x2bfaad(0x11c)](),this[_0x2bfaad(0x1a5)]=null;}[_0x276616(0x191)](){const _0x55b992=_0x276616;var _0x1c635d;(_0x1c635d=this[_0x55b992(0x1a5)])==null||_0x1c635d[_0x55b992(0x11c)](),this[_0x55b992(0x10b)][_0x55b992(0x18e)]('following');}[_0x276616(0x1a0)](){const _0x3c925f=_0x276616;var _0x3f6fe7;this['_status$'][_0x3c925f(0x18e)]('idle'),(_0x3f6fe7=this[_0x3c925f(0x1a5)])==null||_0x3f6fe7[_0x3c925f(0x11c)](),this[_0x3c925f(0x1a5)]=null;}['_stopFollowing'](){const _0x4b1091=_0x276616;var _0x353175;this[_0x4b1091(0x10b)][_0x4b1091(0x18e)](_0x4b1091(0x1b6)),(_0x353175=this[_0x4b1091(0x1a5)])==null||_0x353175['dispose']();}['_handleOperation'](_0x1d03fc){const _0x280e17=_0x276616;if([_0x280e17(0x128),'not-following',_0x280e17(0x1be)][_0x280e17(0x17f)](this[_0x280e17(0x1bb)])||!_0x1d03fc[_0x280e17(0x1a2)][_0x280e17(0x106)]||_0x1d03fc[_0x280e17(0x1a2)][_0x280e17(0x106)]===this[_0x280e17(0x160)][_0x280e17(0x143)]())return;this[_0x280e17(0x1bb)]===_0x280e17(0x159)&&this[_0x280e17(0x191)]();const _0x459e5e=_0x1d03fc['data'][_0x280e17(0x1b1)];Object[_0x280e17(0x12e)](_0x459e5e)[_0x280e17(0x1c8)](_0x2512b4=>{const _0x1f7ca1=_0x280e17;this[_0x1f7ca1(0x1b5)][_0x1f7ca1(0x185)](_0x2512b4['id'],_0x2512b4[_0x1f7ca1(0x151)]?JSON['parse'](_0x2512b4['params']):null,{'fromCollab':!0x0});});}[_0x276616(0x198)](){const _0x23725d=_0x276616;var _0x45ecc8;this[_0x23725d(0x10b)][_0x23725d(0x18e)](_0x23725d(0x1be)),(_0x45ecc8=this[_0x23725d(0x1a5)])==null||_0x45ecc8[_0x23725d(0x11c)]();}[_0x276616(0x1ca)](){const _0x37f493=_0x276616;this[_0x37f493(0x10b)][_0x37f493(0x18e)](_0x37f493(0x159)),this[_0x37f493(0x15a)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x276616(0x109)]),S(0x3,o[_0x276616(0x189)](E)),S(0x4,o[_0x276616(0x1b9)])],exports[_0x276616(0x11b)]);function $(){const _0x566224=_0x276616,_0x5d8732=p['useDependency'](exports[_0x566224(0x199)]),_0x2b982a=p[_0x566224(0x1c3)](o[_0x566224(0x16b)]),_0x3c4577=p[_0x566224(0x13e)](()=>_0x2b982a[_0x566224(0x101)](o[_0x566224(0x19a)][_0x566224(0x1b0)]),void 0x0,!0x1,[]),[_0x4295fb,_0x3580f7]=v[_0x566224(0x1ba)](null),[_0x4c7684,_0x397592]=v[_0x566224(0x1ba)](u['IDLE']),_0x33a533=v[_0x566224(0x19b)](null);return v['useEffect'](()=>(_0x3c4577&&_0x5d8732[_0x566224(0x15f)](_0x3c4577[_0x566224(0x1cb)]())[_0x566224(0x10d)](_0x3a1d2d=>{const _0xc0a777=_0x566224;_0x3580f7(_0x3a1d2d),_0x33a533[_0xc0a777(0x145)]=_0x3a1d2d['status$']['subscribe'](_0x5b16a0=>{_0x397592(_0x5b16a0);});}),()=>{const _0x446d3a=_0x566224;var _0x36fa37;(_0x36fa37=_0x33a533[_0x446d3a(0x145)])==null||_0x36fa37[_0x446d3a(0x195)](),_0x33a533['current']=null;}),[_0x3c4577,_0x5d8732]),_0x4295fb?l[_0x566224(0x18d)](f['Dropdown'],{'align':'end','disabled':_0x4c7684===u[_0x566224(0x173)],'className':_0x566224(0x140),'overlay':l['jsx'](W,{'status':_0x4c7684,'coordinator':_0x4295fb}),'children':l[_0x566224(0x18d)]('button',{'className':f[_0x566224(0x136)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x4c7684===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c7684!==u[_0x566224(0x173)]}),'type':'button','children':l[_0x566224(0x18d)](R,{'className':_0x566224(0x14f)})})}):null;}function W(_0x3ceb2d){const _0x25510b=_0x276616,{status:_0x365b00,coordinator:_0x2b6062}=_0x3ceb2d;switch(_0x365b00){case u[_0x25510b(0x178)]:return l['jsx'](G,{'coordinator':_0x2b6062});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x2b6062});case u[_0x25510b(0x14c)]:return l[_0x25510b(0x18d)](Y,{'coordinator':_0x2b6062});case u[_0x25510b(0x173)]:return l[_0x25510b(0x18d)](J,{});case u[_0x25510b(0x141)]:return l[_0x25510b(0x18d)](Z,{'coordinator':_0x2b6062});default:return null;}}function G(_0x16f3ad){const _0x3b1250=_0x276616,{coordinator:_0x323a66}=_0x16f3ad;return l[_0x3b1250(0x16c)](l['Fragment'],{'children':[l['jsx'](_0x3b1250(0x162),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x3b1250(0x18d)](f[_0x3b1250(0x163)],{'onClick':()=>_0x323a66[_0x3b1250(0x114)](),'children':_0x3b1250(0x1af)})]});}function B(_0x387fc0){const _0x1e5cee=_0x276616,{coordinator:_0x137bfb}=_0x387fc0;return l[_0x1e5cee(0x16c)](l['Fragment'],{'children':[l[_0x1e5cee(0x18d)](_0x1e5cee(0x162),{'className':_0x1e5cee(0x170),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x1e5cee(0x18d)](f[_0x1e5cee(0x163)],{'onClick':()=>_0x137bfb[_0x1e5cee(0x131)](),'children':'Stop\x20following'})]});}function Y(_0x53170c){const _0x1c7957=_0x276616,{coordinator:_0x55ef48}=_0x53170c;return l['jsxs'](l['Fragment'],{'children':[l[_0x1c7957(0x18d)]('div',{'className':_0x1c7957(0x170),'children':_0x1c7957(0x166)}),l['jsx'](f['Button'],{'variant':_0x1c7957(0x167),'onClick':()=>_0x55ef48['startFollowing'](),'children':_0x1c7957(0x149)})]});}function Z(_0x38d8f4){const _0x56d5f1=_0x276616,{coordinator:_0x333a55}=_0x38d8f4;return l['jsxs'](l[_0x56d5f1(0x14b)],{'children':[l[_0x56d5f1(0x18d)](_0x56d5f1(0x162),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x56d5f1(0x18d)](f[_0x56d5f1(0x163)],{'variant':'default','onClick':()=>_0x333a55[_0x56d5f1(0x10e)](),'children':_0x56d5f1(0x153)})]});}function J(){const _0x3ebbf9=_0x276616;return l['jsx'](l['Fragment'],{'children':_0x3ebbf9(0x1bd)});}var K=Object[_0x276616(0x12c)],z=(_0x3778c6,_0x4899bc,_0xa2d317,_0x4b786b)=>{const _0x437475=_0x276616;for(var _0x382d64=_0x4b786b>0x1?void 0x0:_0x4b786b?K(_0x4899bc,_0xa2d317):_0x4899bc,_0x1723bc=_0x3778c6[_0x437475(0x16a)]-0x1,_0xd3cc56;_0x1723bc>=0x0;_0x1723bc--)(_0xd3cc56=_0x3778c6[_0x1723bc])&&(_0x382d64=_0xd3cc56(_0x382d64)||_0x382d64);return _0x382d64;},L=(_0x38792b,_0x34378c)=>(_0x13f9d6,_0x4fa3d4)=>_0x34378c(_0x13f9d6,_0x4fa3d4,_0x38792b);exports[_0x276616(0x1a9)]=class extends o['Disposable']{constructor(_0x1bacc8,_0x69095d){const _0x3b6315=_0x276616;super(),this[_0x3b6315(0x11e)]=_0x1bacc8,this['_uiPartsService']=_0x69095d,this[_0x3b6315(0x11f)]();}[_0x276616(0x11f)](){const _0x34dbe0=_0x276616;this[_0x34dbe0(0x13b)](this['_uiPartsService']['registerComponent'](p[_0x34dbe0(0x122)][_0x34dbe0(0x1c1)],()=>p[_0x34dbe0(0x194)]($,this['_injector'])));}},exports[_0x276616(0x1a9)]=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x276616(0x1a9)]);const Q=_0x276616(0x182),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x1f1645,_0x44ae54,_0x4ddcaa,_0x1f1707)=>{const _0x300398=_0x276616;for(var _0x280cc4=_0x1f1707>0x1?void 0x0:_0x1f1707?X(_0x44ae54,_0x4ddcaa):_0x44ae54,_0x19f8c8=_0x1f1645[_0x300398(0x16a)]-0x1,_0xeb998;_0x19f8c8>=0x0;_0x19f8c8--)(_0xeb998=_0x1f1645[_0x19f8c8])&&(_0x280cc4=_0xeb998(_0x280cc4)||_0x280cc4);return _0x280cc4;},te=(_0x4601e7,_0x11b0bf)=>(_0x339764,_0x2d3bdd)=>_0x11b0bf(_0x339764,_0x2d3bdd,_0x4601e7);let m=class extends o[_0x276616(0x18f)]{constructor(_0x2a2bcc){const _0x2af609=_0x276616;super(),this[_0x2af609(0x181)]=_0x2a2bcc,this[_0x2af609(0x1c6)]();}[_0x276616(0x1c6)](){const _0x59b38f=_0x276616;[D['SetZoomRatioOperation']['id'],D[_0x59b38f(0x112)]['id'],C[_0x59b38f(0x120)]['id']][_0x59b38f(0x1c8)](_0x44016d=>{const _0xe90e99=_0x59b38f;this[_0xe90e99(0x13b)](this[_0xe90e99(0x181)][_0xe90e99(0x11a)](_0x44016d));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x276616(0x1cf)],se=Object[_0x276616(0x12c)],ne=(_0x5f35cc,_0x240a08,_0x18744d)=>_0x240a08 in _0x5f35cc?ie(_0x5f35cc,_0x240a08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18744d}):_0x5f35cc[_0x240a08]=_0x18744d,re=(_0x599d51,_0x13cc91,_0x20748c,_0x382c15)=>{const _0x5a71c5=_0x276616;for(var _0x29e8ea=_0x382c15>0x1?void 0x0:_0x382c15?se(_0x13cc91,_0x20748c):_0x13cc91,_0x2ee40b=_0x599d51[_0x5a71c5(0x16a)]-0x1,_0x1ee238;_0x2ee40b>=0x0;_0x2ee40b--)(_0x1ee238=_0x599d51[_0x2ee40b])&&(_0x29e8ea=_0x1ee238(_0x29e8ea)||_0x29e8ea);return _0x29e8ea;},N=(_0x3abbd3,_0x4a8933)=>(_0x48ce1d,_0x45bb0a)=>_0x4a8933(_0x48ce1d,_0x45bb0a,_0x3abbd3),A=(_0x5b9640,_0x445979,_0x52cee9)=>ne(_0x5b9640,typeof _0x445979!='symbol'?_0x445979+'':_0x445979,_0x52cee9);function _0x5eb0(_0x395016,_0x5d9f91){_0x395016=_0x395016-0x101;const _0x7d5a47=_0x7d5a();let _0x5eb0ba=_0x7d5a47[_0x395016];return _0x5eb0ba;}const oe=_0x276616(0x1c9);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x4e9e36=w,_0x6a9d87,_0x49c98c){const _0x564cd2=_0x276616;super(),this['_config']=_0x4e9e36,this[_0x564cd2(0x11e)]=_0x6a9d87,this[_0x564cd2(0x1c7)]=_0x49c98c;const {..._0x4388b7}=o['merge']({},w,this[_0x564cd2(0x1d0)]);this[_0x564cd2(0x1c7)][_0x564cd2(0x15b)](Q,_0x4388b7);}['onStarting'](){const _0x9e4c9a=_0x276616;o[_0x9e4c9a(0x175)](this[_0x9e4c9a(0x11e)],o[_0x9e4c9a(0x192)]([[E],[exports[_0x9e4c9a(0x199)]],[m],[exports[_0x9e4c9a(0x1a9)]]],this[_0x9e4c9a(0x1d0)][_0x9e4c9a(0x107)])),o[_0x9e4c9a(0x111)](this['_injector'],[[m]]);}['onRendered'](){const _0x141d64=_0x276616;o['touchDependencies'](this[_0x141d64(0x11e)],[[exports[_0x141d64(0x1a9)]]]);}},A(exports[_0x276616(0x121)],'type',o[_0x276616(0x19a)]['UNIVER_UNKNOWN']),A(exports[_0x276616(0x121)],_0x276616(0x17c),oe),exports[_0x276616(0x121)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x276616(0x189)](o['Injector'])),N(0x2,o[_0x276616(0x109)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x276616(0x1ad)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1c06c6=_0x3e17;(function(_0x1126d7,_0x320a01){const _0x6fe8a8=_0x3e17,_0x44012c=_0x1126d7();while(!![]){try{const _0x1c5f84=-parseInt(_0x6fe8a8(0x104))/0x1*(parseInt(_0x6fe8a8(0x106))/0x2)+parseInt(_0x6fe8a8(0x102))/0x3*(parseInt(_0x6fe8a8(0xef))/0x4)+-parseInt(_0x6fe8a8(0xf6))/0x5*(-parseInt(_0x6fe8a8(0x10d))/0x6)+-parseInt(_0x6fe8a8(0xfb))/0x7+parseInt(_0x6fe8a8(0xf5))/0x8+parseInt(_0x6fe8a8(0xf1))/0x9+-parseInt(_0x6fe8a8(0xf9))/0xa;if(_0x1c5f84===_0x320a01)break;else _0x44012c['push'](_0x44012c['shift']());}catch(_0x244a8b){_0x44012c['push'](_0x44012c['shift']());}}}(_0x38b0,0x5aaa9));function _0x3e17(_0x4e22b5,_0x2cba35){_0x4e22b5=_0x4e22b5-0xee;const _0x38b0e5=_0x38b0();let _0x3e1706=_0x38b0e5[_0x4e22b5];return _0x3e1706;}import{LiveShareController as _0x522dd2,LiveShareStatus as _0x14b7ef}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4d3e86}from'@univerjs/engine-render';function _0x38b0(){const _0x481d06=['622485nehvnO','getLiveShareStatus','getSheetId','1036280dqANBS','extend','4263084QlWMNB','getLiveShareCoordinatorSync','getActiveWorkbook','startPresenting','getActiveSheet','LiveShareStatusEnum','syncExecuteCommand','204juXPcA','get','24dxKxdf','getRenderById','1166YvgTzX','startColumn','stopFollowing','stopPresenting','No\x20active\x20workbook\x20found.','getStatus','_injector','6GwYaOP','getUnitId','_initialize','IDLE','startRow','40676qsqkdQ','getId','785898KAUURU','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','_commandService','1557520SbSVJg'];_0x38b0=function(){return _0x481d06;};return _0x38b0();}import{SetWorksheetActiveOperation as _0x56aef8}from'@univerjs/sheets';import{SetScrollOperation as _0x328bc4}from'@univerjs/sheets-ui';import{FRange as _0x5a09d4}from'@univerjs/sheets/facade';import{FUniver as _0x353610,FEnum as _0x1286dc}from'@univerjs/core/facade';class I extends _0x5a09d4{[_0x1c06c6(0x10f)](_0x190845,_0x4516b9,_0x2e7589,_0x45f819,_0x2bd6ee){const _0x767817=_0x1c06c6,_0x26bea1=_0x190845[_0x767817(0x103)](_0x522dd2),_0x27d821=_0x190845[_0x767817(0x103)](_0x4d3e86),_0x2373e2=_0x4516b9[_0x767817(0x10e)](),_0x5eb548=_0x4516b9[_0x767817(0xff)](),_0x554cb1=_0x26bea1['getLiveShareCoordinatorSync'](_0x2373e2);(_0x554cb1==null?void 0x0:_0x554cb1[_0x767817(0x10b)]())!==_0x14b7ef['PRESENTING']||(_0x2e7589[_0x767817(0xf8)]()!==_0x5eb548[_0x767817(0xf8)]()&&this[_0x767817(0xf4)]['executeCommand'](_0x56aef8['id'],{'unitId':_0x2373e2,'subUnitId':_0x2e7589['getSheetId']()}),!_0x27d821[_0x767817(0x105)](_0x2373e2))||_0x2bd6ee[_0x767817(0x101)](_0x328bc4['id'],{'unitId':_0x4516b9['getUnitId'](),'sheetId':_0x2e7589[_0x767817(0xf8)](),'sheetViewStartRow':_0x45f819[_0x767817(0xee)],'sheetViewStartColumn':_0x45f819[_0x767817(0x107)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5a09d4[_0x1c06c6(0xfa)](I);class m extends _0x353610{[_0x1c06c6(0xf7)](){const _0x10d659=_0x1c06c6;var _0x30eac7,_0x59f086;const _0xa506b9=this[_0x10d659(0x10c)]['get'](_0x522dd2),_0x2ab02b=(_0x30eac7=this[_0x10d659(0xfd)]())==null?void 0x0:_0x30eac7['getId']();if(!_0x2ab02b)throw new Error(_0x10d659(0x10a));const _0x147905=_0xa506b9[_0x10d659(0xfc)](_0x2ab02b);return(_0x59f086=_0x147905==null?void 0x0:_0x147905[_0x10d659(0x10b)]())!=null?_0x59f086:_0x14b7ef[_0x10d659(0x110)];}[_0x1c06c6(0xf3)](){const _0x45c42f=_0x1c06c6;var _0x22fc8f;const _0x1ea097=this['_injector'][_0x45c42f(0x103)](_0x522dd2),_0x9ba164=(_0x22fc8f=this[_0x45c42f(0xfd)]())==null?void 0x0:_0x22fc8f[_0x45c42f(0xf0)]();if(!_0x9ba164)throw new Error(_0x45c42f(0x10a));const _0x738304=_0x1ea097[_0x45c42f(0xfc)](_0x9ba164);if(!_0x738304)throw new Error(_0x45c42f(0xf2));_0x738304[_0x45c42f(0xf3)]();}[_0x1c06c6(0x108)](){const _0x38c715=_0x1c06c6;var _0x383a80;const _0xe0f3d8=this[_0x38c715(0x10c)][_0x38c715(0x103)](_0x522dd2),_0x1ae892=(_0x383a80=this['getActiveWorkbook']())==null?void 0x0:_0x383a80[_0x38c715(0xf0)]();if(!_0x1ae892)throw new Error(_0x38c715(0x10a));const _0x2ff09d=_0xe0f3d8['getLiveShareCoordinatorSync'](_0x1ae892);if(!_0x2ff09d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2ff09d[_0x38c715(0x108)]();}[_0x1c06c6(0xfe)](){const _0x3938c8=_0x1c06c6;var _0x4e0140;const _0x39c0ab=this[_0x3938c8(0x10c)]['get'](_0x522dd2),_0x1a14ed=(_0x4e0140=this[_0x3938c8(0xfd)]())==null?void 0x0:_0x4e0140[_0x3938c8(0xf0)]();if(!_0x1a14ed)throw new Error('No\x20active\x20workbook\x20found.');const _0x43125c=_0x39c0ab['getLiveShareCoordinatorSync'](_0x1a14ed);if(!_0x43125c)throw new Error(_0x3938c8(0xf2));_0x43125c['tryStartPresenting']();}[_0x1c06c6(0x109)](){const _0x554fbe=_0x1c06c6;var _0x5a1e9c;const _0x509166=this[_0x554fbe(0x10c)][_0x554fbe(0x103)](_0x522dd2),_0x88d81d=(_0x5a1e9c=this[_0x554fbe(0xfd)]())==null?void 0x0:_0x5a1e9c[_0x554fbe(0xf0)]();if(!_0x88d81d)throw new Error(_0x554fbe(0x10a));const _0x4e3d05=_0x509166[_0x554fbe(0xfc)](_0x88d81d);if(!_0x4e3d05)throw new Error(_0x554fbe(0xf2));_0x4e3d05[_0x554fbe(0x109)]();}}_0x353610[_0x1c06c6(0xfa)](m);class C extends _0x1286dc{get[_0x1c06c6(0x100)](){return _0x14b7ef;}}_0x1286dc['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x55cb2f=_0x3b3f;(function(_0x2853c3,_0x18e970){const _0x3e22b9=_0x3b3f,_0x2a2857=_0x2853c3();while(!![]){try{const _0xcf43=-parseInt(_0x3e22b9(0x187))/0x1+-parseInt(_0x3e22b9(0x18d))/0x2+-parseInt(_0x3e22b9(0x1e7))/0x3*(parseInt(_0x3e22b9(0x181))/0x4)+-parseInt(_0x3e22b9(0x1d6))/0x5+-parseInt(_0x3e22b9(0x1ad))/0x6*(parseInt(_0x3e22b9(0x168))/0x7)+parseInt(_0x3e22b9(0x1b1))/0x8*(parseInt(_0x3e22b9(0x1f0))/0x9)+parseInt(_0x3e22b9(0x199))/0xa;if(_0xcf43===_0x18e970)break;else _0x2a2857['push'](_0x2a2857['shift']());}catch(_0x4e4263){_0x2a2857['push'](_0x2a2857['shift']());}}}(_0x38d6,0x8d84a));var J=Object[_0x55cb2f(0x1fb)],K=(_0x321bef,_0x1638e8,_0x242cf9)=>_0x1638e8 in _0x321bef?J(_0x321bef,_0x1638e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x242cf9}):_0x321bef[_0x1638e8]=_0x242cf9,u=(_0x30cd6d,_0x2d65bb,_0x30439e)=>K(_0x30cd6d,typeof _0x2d65bb!=_0x55cb2f(0x1f2)?_0x2d65bb+'':_0x2d65bb,_0x30439e);import{Disposable as _0x4af259,toDisposable as _0x11f671,IUniverInstanceService as _0x121289,Inject as _0x312b96,Injector as _0x7d3dde,IConfigService as _0x3d3506,ICommandService as _0x58b740,RxDisposable as _0x5c9eca,UniverInstanceType as _0x4070ed,DisposableCollection as _0x52d334,CommandType as _0x3f3a8a,DependentOn as _0x5ee615,Plugin as _0x119531,merge as _0xe10b7b,registerDependencies as _0x58f0a9,mergeOverrideWithDependencies as _0x434f51,touchDependencies as _0x38b9cb}from'@univerjs/core';import{useDependency as _0x1e6c41,useObservable as _0x2bbad4,IUIPartsService as _0x219ba3,BuiltInUIPart as _0x148c23,connectInjector as _0x48b907}from'@univerjs/ui';import{jsx as _0x4c93b8,jsxs as _0x300104,Fragment as _0x3d3edc}from'react/jsx-runtime';import{Dropdown as _0x1ada85,clsx as _0x37c55b,Button as _0x5de6ef}from'@univerjs/design';import{useRef as _0x5cc64a,createElement as _0x368bcf,forwardRef as _0x59d39c,useState as _0x1d3edb,useEffect as _0x310807}from'react';import{CollaborationEvent as _0x246bf5,parseProtocolChangeset as _0x1704a8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4517c3,SessionStatus as _0x40d8fd,UniverCollaborationClientPlugin as _0x427d7f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x252e6b,SetWorksheetActiveOperation as _0x1c9065}from'@univerjs/sheets';import{BehaviorSubject as _0x4699ca,Subject as _0x26cfc0}from'rxjs';import{takeUntil as _0x3b65a1,throttleTime as _0x1b8bcb}from'rxjs/operators';import{SetZoomRatioOperation as _0xaf5adc,SetScrollOperation as _0x48d7dc}from'@univerjs/sheets-ui';function k({ref:_0x30de43,..._0xc717a5}){const _0x45c78f=_0x55cb2f,{icon:_0x3a262c,id:_0x4e0a42,className:_0x4d6d1d,extend:_0x131070,..._0x16853e}=_0xc717a5,_0x6c8aa6=(_0x45c78f(0x161)+_0x4e0a42+'\x20'+(_0x4d6d1d||''))['trim'](),_0x1e9e74=_0x5cc64a('_'+Oe());return G(_0x3a262c,''+_0x4e0a42,{'defIds':_0x3a262c[_0x45c78f(0x17d)],'idSuffix':_0x1e9e74[_0x45c78f(0x1c1)]},{'ref':_0x30de43,'className':_0x6c8aa6,..._0x16853e},_0x131070);}function G(_0xb4d215,_0x50c14b,_0x424c06,_0x50de1d,_0x28853b){const _0x239271=_0x55cb2f;return _0x368bcf(_0xb4d215['tag'],{'key':_0x50c14b,...be(_0xb4d215,_0x424c06,_0x28853b),..._0x50de1d},(Ee(_0xb4d215,_0x424c06)[_0x239271(0x1e8)]||[])['map']((_0x20230d,_0x5ddca1)=>G(_0x20230d,_0x50c14b+'-'+_0xb4d215[_0x239271(0x15e)]+'-'+_0x5ddca1,_0x424c06,void 0x0,_0x28853b)));}function be(_0x5aac9b,_0x127e6f,_0x3dd643){const _0x57a9cd=_0x55cb2f,_0x546884={..._0x5aac9b[_0x57a9cd(0x1f9)]};_0x3dd643!=null&&_0x3dd643[_0x57a9cd(0x1c9)]&&_0x546884[_0x57a9cd(0x1c8)]==='colorChannel1'&&(_0x546884[_0x57a9cd(0x1c8)]=_0x3dd643[_0x57a9cd(0x1c9)]),_0x5aac9b[_0x57a9cd(0x15e)]===_0x57a9cd(0x202)&&_0x546884['id']&&(_0x546884['id']=_0x546884['id']+_0x127e6f['idSuffix']),Object[_0x57a9cd(0x186)](_0x546884)[_0x57a9cd(0x1a9)](([_0x4c5b08,_0x506377])=>{const _0x564068=_0x57a9cd;_0x4c5b08==='mask'&&typeof _0x506377==_0x564068(0x1bb)&&(_0x546884[_0x4c5b08]=_0x506377[_0x564068(0x175)](/url\(#(.*)\)/,_0x564068(0x165)+_0x127e6f['idSuffix']+')'));});const {defIds:_0x1665fb}=_0x127e6f;return!_0x1665fb||_0x1665fb[_0x57a9cd(0x167)]===0x0||(_0x5aac9b[_0x57a9cd(0x15e)]===_0x57a9cd(0x1b5)&&_0x546884[_0x57a9cd(0x179)]&&(_0x546884[_0x57a9cd(0x179)]=_0x546884[_0x57a9cd(0x179)]+_0x127e6f[_0x57a9cd(0x1ee)]),Object[_0x57a9cd(0x186)](_0x546884)[_0x57a9cd(0x1a9)](([_0x1f5012,_0x456b69])=>{const _0x5d0a58=_0x57a9cd;typeof _0x456b69==_0x5d0a58(0x1bb)&&(_0x546884[_0x1f5012]=_0x456b69['replace'](/url\(#(.*)\)/,'url(#$1'+_0x127e6f[_0x5d0a58(0x1ee)]+')'));})),_0x546884;}function Ee(_0x43177f,_0x30ef3b){const _0x366f3a=_0x55cb2f;var _0x4cb47e;const {defIds:_0x357cbf}=_0x30ef3b;return!_0x357cbf||_0x357cbf[_0x366f3a(0x167)]===0x0?_0x43177f:_0x43177f[_0x366f3a(0x15e)]===_0x366f3a(0x1d7)&&((_0x4cb47e=_0x43177f[_0x366f3a(0x1e8)])!=null&&_0x4cb47e[_0x366f3a(0x167)])?{..._0x43177f,'children':_0x43177f[_0x366f3a(0x1e8)][_0x366f3a(0x1f3)](_0x3366ef=>typeof _0x3366ef[_0x366f3a(0x1f9)]['id']=='string'&&_0x357cbf&&_0x357cbf[_0x366f3a(0x198)](_0x3366ef[_0x366f3a(0x1f9)]['id'])?{..._0x3366ef,'attrs':{..._0x3366ef[_0x366f3a(0x1f9)],'id':_0x3366ef[_0x366f3a(0x1f9)]['id']+_0x30ef3b[_0x366f3a(0x1ee)]}}:_0x3366ef)}:_0x43177f;}function Oe(){const _0x4159f0=_0x55cb2f;return Math[_0x4159f0(0x1e5)]()[_0x4159f0(0x1da)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x55cb2f(0x1b3);const we={'tag':'svg','attrs':{'xmlns':_0x55cb2f(0x1c5),'fill':_0x55cb2f(0x1aa),'viewBox':_0x55cb2f(0x19d),'width':_0x55cb2f(0x184),'height':'1em'},'children':[{'tag':_0x55cb2f(0x204),'attrs':{'fill':_0x55cb2f(0x174),'d':_0x55cb2f(0x18b)}},{'tag':_0x55cb2f(0x204),'attrs':{'fill':_0x55cb2f(0x174),'d':_0x55cb2f(0x1bd),'fillRule':_0x55cb2f(0x1ed),'clipRule':_0x55cb2f(0x1ed)}}]},W=_0x59d39c(function(_0x10da74,_0x59629d){const _0x5609b2=_0x55cb2f;return _0x368bcf(k,Object[_0x5609b2(0x1dd)]({},_0x10da74,{'id':'live-share-icon','ref':_0x59629d,'icon':we}));});W[_0x55cb2f(0x189)]=_0x55cb2f(0x1cb);class L extends _0x4af259{constructor(){const _0x4bcc7c=_0x55cb2f;super(...arguments),u(this,_0x4bcc7c(0x1d9),new Set()),u(this,_0x4bcc7c(0x172),new Set());}[_0x55cb2f(0x1fc)](_0x455077){const _0x272a88=_0x55cb2f;return this[_0x272a88(0x1d9)][_0x272a88(0x1cc)](_0x455077),_0x11f671(()=>this[_0x272a88(0x1d9)][_0x272a88(0x206)](_0x455077));}[_0x55cb2f(0x178)](_0x4b13ee){const _0x55c795=_0x55cb2f;return this[_0x55c795(0x172)]['add'](_0x4b13ee),_0x11f671(()=>this[_0x55c795(0x172)][_0x55c795(0x206)](_0x4b13ee));}['shouldShareOperation'](_0x1076a3){const _0x21d2df=_0x55cb2f;return this[_0x21d2df(0x1d9)][_0x21d2df(0x18e)](_0x1076a3);}[_0x55cb2f(0x1d8)](_0x1f388e){const _0x4c4a86=_0x55cb2f;return Array[_0x4c4a86(0x171)](this['_reporters'])[_0x4c4a86(0x1f3)](_0x2cc008=>_0x2cc008(_0x1f388e));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4f69d6,_0x444dd4,_0x2dbc2c,_0x439c35)=>{const _0x115134=_0x55cb2f;for(var _0x55d3a5=_0x439c35>0x1?void 0x0:_0x439c35?Ne(_0x444dd4,_0x2dbc2c):_0x444dd4,_0x547d2f=_0x4f69d6[_0x115134(0x167)]-0x1,_0x2972a7;_0x547d2f>=0x0;_0x547d2f--)(_0x2972a7=_0x4f69d6[_0x547d2f])&&(_0x55d3a5=_0x2972a7(_0x55d3a5)||_0x55d3a5);return _0x55d3a5;},_=(_0x49dfbc,_0x4a3b30)=>(_0x21741d,_0x51210f)=>_0x4a3b30(_0x21741d,_0x51210f,_0x49dfbc);let S=class extends _0x5c9eca{constructor(_0x464b9d,_0x169ca8,_0x558123){const _0x5a314d=_0x55cb2f;super(),u(this,_0x5a314d(0x205),new Map()),(this[_0x5a314d(0x1c3)]=_0x464b9d,this[_0x5a314d(0x1dc)]=_0x169ca8,this[_0x5a314d(0x1b7)]=_0x558123,this[_0x5a314d(0x19e)]());}async[_0x55cb2f(0x1a8)](_0x4569df){const _0x451b2c=_0x55cb2f;return this[_0x451b2c(0x205)]['has'](_0x4569df)||await this['_startLiveShareCoordinator'](_0x4569df),this[_0x451b2c(0x205)]['get'](_0x4569df);}[_0x55cb2f(0x17b)](_0x4c78dd){const _0x3dec21=_0x55cb2f;var _0x12ee02;return(_0x12ee02=this[_0x3dec21(0x205)][_0x3dec21(0x1ba)](_0x4c78dd))!=null?_0x12ee02:null;}['_init'](){const _0x2e7f3f=_0x55cb2f;this['_univerInstanceService'][_0x2e7f3f(0x1f5)](_0x4070ed['UNIVER_SHEET'])[_0x2e7f3f(0x1bf)](_0x3b65a1(this[_0x2e7f3f(0x194)]))[_0x2e7f3f(0x1b6)](async _0x4316ee=>{const _0x4c782c=_0x2e7f3f,_0x404448=_0x4316ee[_0x4c782c(0x18f)]();this[_0x4c782c(0x205)][_0x4c782c(0x18e)](_0x404448)||this['_startLiveShareCoordinator'](_0x404448);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4070ed[_0x2e7f3f(0x1eb)])[_0x2e7f3f(0x1bf)](_0x3b65a1(this['dispose$']))[_0x2e7f3f(0x1b6)](_0x460b91=>{const _0x3585cf=_0x2e7f3f,_0x471a29=_0x460b91[_0x3585cf(0x18f)](),_0x58a66f=this['_entities'][_0x3585cf(0x1ba)](_0x471a29);_0x58a66f==null||_0x58a66f[_0x3585cf(0x1cf)]();});}async['_startLiveShareCoordinator'](_0x20bc95){const _0x5569a2=_0x55cb2f,_0x4df69a=await this[_0x5569a2(0x1b7)][_0x5569a2(0x182)](_0x20bc95),_0x4f9b5f=this[_0x5569a2(0x1dc)][_0x5569a2(0x180)](N,_0x20bc95,_0x4df69a);return _0x4f9b5f['init'](),this[_0x5569a2(0x205)]['set'](_0x20bc95,_0x4f9b5f),_0x4f9b5f;}};S=Y([_(0x0,_0x121289),_(0x1,_0x312b96(_0x7d3dde)),_(0x2,_0x312b96(_0x4517c3))],S);function _0x38d6(){const _0x30b275=['_commandService','type','_handleOffline','startFollowing','OFFLINE','mask','getValue','path','_entities','delete','override','getConfig','tag','idle','set','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','_status','presenting','url(#$1','operations','length','549850lLLxpk','getMemberID','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_uiPartsService','_liveShareService','_handleNewHost','send','onCommandExecuted','from','_reporters','find','currentColor','replace','NOT_FOLLOWING','_handleOnline','registerInitialStateReporter','xlink:href','onStarting','getLiveShareCoordinatorSync','_status$','defIds','disposeWithMe','ONLINE','createInstance','3565852TEIFJC','requireSession','_handleNewChangeSets','1em','_presenter','entries','304626ZhJhZr','_startPresenting','displayName','mutations','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','not-following','1530518oCzYNF','has','getUnitId','then','Present\x20this\x20document','_stopFollowing','_handleOperation','dispose$','LIVESHARE_FETCH_OPERATIONS','OPERATION','Start\x20following','includes','42260800AxemyM','end','next','Start','0\x200\x2017\x2017','_init','offline','stopFollowing','complete','tryStartPresenting','_startFollowing','sheet','FOLLOWING','HEADER_MENU','getOwnPropertyDescriptor','getLiveShareCoordinator','forEach','none','unsubscribe','_fetchOperations','84xYIGQd','_stopPresenting','Stop\x20following','reverse','2833864pINWxF','LIVESHARE_REQUEST_HOST','UniverIcon','You\x27re\x20not\x20following\x20the\x20presenter','use','subscribe','_collabSessionService','unitId','_beIdle','get','string','following','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','_collabSession','pipe','data','current','LIVESHARE_TERMINATE','_univerInstanceService','IDLE','http://www.w3.org/2000/svg','init','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','fill','colorChannel1','stringify','LiveShareIcon','add','button','Stop\x20presenting','dispose','LIVESHARE_NEW_HOST','SAME_OPERATION_SHARE_INTERVAL','parse','_configService','memberID','setConfig','4698035MziXTi','defs','getInitialStates','_sharedOperations','toString','params','_injector','assign','clear','presenter','default','asObservable','_unitID','executeCommand','LIVESHARE_OPERATION','random','pluginName','3ADkKgs','children','PRESENTING','stopPresenting','UNIVER_SHEET','univer-size-4','evenodd','idSuffix','_handleTerminate','9pOsJax','UNIVER_LIVE_SHARE_PLUGIN','symbol','map','_config','getTypeOfUnitAdded$','_mountLiveShare','div','status$','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','registerSharedOperation'];_0x38d6=function(){return _0x30b275;};return _0x38d6();}function _0x3b3f(_0x5b0076,_0xf91d0a){_0x5b0076=_0x5b0076-0x15e;const _0x38d605=_0x38d6();let _0x3b3feb=_0x38d605[_0x5b0076];return _0x3b3feb;}var c=(_0x552b37=>(_0x552b37['OFFLINE']=_0x55cb2f(0x19f),_0x552b37[_0x55cb2f(0x1c4)]=_0x55cb2f(0x15f),_0x552b37[_0x55cb2f(0x1a5)]=_0x55cb2f(0x1bc),_0x552b37[_0x55cb2f(0x176)]=_0x55cb2f(0x18c),_0x552b37[_0x55cb2f(0x1e9)]='presenting',_0x552b37))(c||{});const Ce=_0x55cb2f(0x1d1),De=0xc8;let N=class extends _0x5c9eca{constructor(_0xa67ec8,_0x14f7a5,_0x5cd55b,_0xb41f36,_0x486500){const _0x4672ef=_0x55cb2f;super(),u(this,_0x4672ef(0x17c),new _0x4699ca(_0x4672ef(0x15f))),u(this,_0x4672ef(0x1f8),this[_0x4672ef(0x17c)][_0x4672ef(0x1e1)]()),u(this,_0x4672ef(0x19e),!0x1),u(this,_0x4672ef(0x16a),null),u(this,_0x4672ef(0x185),null),(this[_0x4672ef(0x1e2)]=_0xa67ec8,this[_0x4672ef(0x1be)]=_0x14f7a5,this[_0x4672ef(0x1d3)]=_0x5cd55b,this[_0x4672ef(0x16d)]=_0xb41f36,this[_0x4672ef(0x1fd)]=_0x486500);}get[_0x55cb2f(0x163)](){const _0x5ef825=_0x55cb2f;return this[_0x5ef825(0x17c)][_0x5ef825(0x203)]();}[_0x55cb2f(0x1cf)](){const _0x3de9b0=_0x55cb2f;var _0x51c18d;(_0x51c18d=this[_0x3de9b0(0x16a)])==null||_0x51c18d[_0x3de9b0(0x1cf)](),this['_status$'][_0x3de9b0(0x19b)](_0x3de9b0(0x15f)),this[_0x3de9b0(0x17c)]['complete']();}['getStatus'](){const _0x28bb25=_0x55cb2f;return this[_0x28bb25(0x163)];}[_0x55cb2f(0x1c6)](){const _0x1d5dde=_0x55cb2f;this[_0x1d5dde(0x19e)]||(this[_0x1d5dde(0x19e)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x3b65a1(this['dispose$']))[_0x1d5dde(0x1b6)](_0x44d854=>{const _0x366120=_0x1d5dde;switch(_0x44d854){case _0x40d8fd['OFFLINE']:this[_0x366120(0x1ff)]();break;case _0x40d8fd[_0x366120(0x17f)]:this[_0x366120(0x177)]();break;}}),this[_0x1d5dde(0x1be)]['event$'][_0x1d5dde(0x1bf)](_0x3b65a1(this[_0x1d5dde(0x194)]))[_0x1d5dde(0x1b6)](_0x25ec19=>{const _0xd1b267=_0x1d5dde,{eventID:_0x507ca6}=_0x25ec19;switch(_0x507ca6){case _0x246bf5[_0xd1b267(0x1d0)]:this[_0xd1b267(0x16e)](_0x25ec19);break;case _0x246bf5['LIVESHARE_OPERATION']:this[_0xd1b267(0x193)](_0x25ec19);break;case _0x246bf5[_0xd1b267(0x1c2)]:this[_0xd1b267(0x1ef)]();break;case _0x246bf5['NEW_CHANGESETS']:this[_0xd1b267(0x183)](_0x25ec19);break;}}));}[_0x55cb2f(0x1a2)](){const _0x1e769b=_0x55cb2f;this['_collabSession'][_0x1e769b(0x16f)]({'eventID':_0x246bf5[_0x1e769b(0x1b2)],'data':{'unitID':this[_0x1e769b(0x1e2)],'userID':this[_0x1e769b(0x1be)][_0x1e769b(0x169)]()}},this[_0x1e769b(0x1e2)]);}['stopPresenting'](){const _0x4b4506=_0x55cb2f;this[_0x4b4506(0x163)]===_0x4b4506(0x164)&&(this[_0x4b4506(0x17c)]['next'](_0x4b4506(0x15f)),this[_0x4b4506(0x1be)][_0x4b4506(0x16f)]({'eventID':_0x246bf5[_0x4b4506(0x1c2)],'data':{'unitID':this[_0x4b4506(0x1e2)]}},this[_0x4b4506(0x1e2)]));}[_0x55cb2f(0x200)](){const _0x98ff50=_0x55cb2f;this[_0x98ff50(0x163)]===_0x98ff50(0x18c)&&(this[_0x98ff50(0x17c)][_0x98ff50(0x19b)](_0x98ff50(0x1bc)),this[_0x98ff50(0x1a3)]());}['stopFollowing'](){const _0x36c901=_0x55cb2f;this[_0x36c901(0x163)]===_0x36c901(0x1bc)&&this['_stopFollowing']();}[_0x55cb2f(0x16e)](_0x8b94fe){const _0x5e4e90=_0x55cb2f,{presenter:_0x38d6f7}=_0x8b94fe[_0x5e4e90(0x1c0)],_0x100f7d=this[_0x5e4e90(0x1be)]['getMemberID']();this[_0x5e4e90(0x185)]=_0x38d6f7,_0x38d6f7===_0x100f7d?(this['_stopFollowing'](),this[_0x5e4e90(0x188)]()):this[_0x5e4e90(0x163)]!==_0x5e4e90(0x18c)&&(this['_stopPresenting'](),this[_0x5e4e90(0x1a3)]());}[_0x55cb2f(0x1ac)](){const _0x157e7b=_0x55cb2f,_0x273e6d={'eventID':_0x246bf5[_0x157e7b(0x195)]};this[_0x157e7b(0x1be)][_0x157e7b(0x16f)](_0x273e6d,this[_0x157e7b(0x1e2)]);}[_0x55cb2f(0x1ef)](){const _0x41c011=_0x55cb2f;this['_presenter']=null,this[_0x41c011(0x163)]!==_0x41c011(0x164)&&this[_0x41c011(0x1b9)]();}[_0x55cb2f(0x183)](_0x4bb8e2){const _0x29f721=_0x55cb2f;if(this[_0x29f721(0x163)]===_0x29f721(0x1bc)&&this[_0x29f721(0x185)]===_0x4bb8e2[_0x29f721(0x1c0)][_0x29f721(0x1d4)]){const _0x3c9559=_0x1704a8(_0x4bb8e2[_0x29f721(0x1c0)])[_0x29f721(0x18a)][_0x29f721(0x1b0)]()[_0x29f721(0x173)](_0x4db788=>_0x4db788['id']===_0x252e6b['id']);if(_0x3c9559){const _0x4e9ab4=_0x3c9559[_0x29f721(0x1db)][_0x29f721(0x1b8)],_0x531013=_0x3c9559[_0x29f721(0x1db)][_0x29f721(0x1a4)]['id'];setTimeout(()=>{const _0x9f05e6=_0x29f721;this[_0x9f05e6(0x1fd)][_0x9f05e6(0x1e3)](_0x1c9065['id'],{'unitId':_0x4e9ab4,'subUnitId':_0x531013},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x416ba5=_0x55cb2f;this[_0x416ba5(0x17c)][_0x416ba5(0x19b)](_0x416ba5(0x164));const _0x2b9da7=new Map(),_0xb0f887=this[_0x416ba5(0x16a)]=new _0x52d334();_0xb0f887[_0x416ba5(0x1cc)](_0x11f671(()=>{const _0x2af8e7=_0x416ba5;_0x2b9da7[_0x2af8e7(0x1a9)](_0x49680a=>_0x49680a[_0x2af8e7(0x1a1)]()),_0x2b9da7[_0x2af8e7(0x1de)]();})),_0xb0f887[_0x416ba5(0x1cc)](this[_0x416ba5(0x1fd)][_0x416ba5(0x170)](_0x4fcb17=>{const _0x4ba326=_0x416ba5;var _0x2f46bc;if(_0x4fcb17[_0x4ba326(0x1fe)]!==_0x3f3a8a[_0x4ba326(0x196)]||!this[_0x4ba326(0x16d)]['shouldShareOperation'](_0x4fcb17['id']))return;const {id:_0x3be601}=_0x4fcb17;let _0x27895a;_0x2b9da7[_0x4ba326(0x18e)](_0x3be601)?_0x27895a=_0x2b9da7[_0x4ba326(0x1ba)](_0x3be601):(_0x27895a=new _0x26cfc0(),_0x2b9da7[_0x4ba326(0x160)](_0x3be601,_0x27895a),_0x27895a['pipe'](_0x1b8bcb((_0x2f46bc=this[_0x4ba326(0x1d3)][_0x4ba326(0x208)](Ce))!=null?_0x2f46bc:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ba326(0x1b6)](_0x9788dc=>{const _0xe73f54=_0x4ba326;this[_0xe73f54(0x1be)][_0xe73f54(0x16f)]({'eventID':_0x246bf5[_0xe73f54(0x1e4)],'data':{'unitID':this[_0xe73f54(0x1e2)],'operations':{[_0x9788dc['id']]:{'id':_0x9788dc['id'],'params':JSON[_0xe73f54(0x1ca)](_0x9788dc[_0xe73f54(0x1db)])}}}},this[_0xe73f54(0x1e2)]);})),_0x27895a['next'](_0x4fcb17);})),this[_0x416ba5(0x16d)]['getInitialStates'](this[_0x416ba5(0x1e2)])[_0x416ba5(0x1a9)](_0x57fa13=>this[_0x416ba5(0x1be)][_0x416ba5(0x16f)]({'eventID':_0x246bf5[_0x416ba5(0x1e4)],'data':{'unitID':this['_unitID'],'operations':{[_0x57fa13['id']]:{'id':_0x57fa13['id'],'params':JSON[_0x416ba5(0x1ca)](_0x57fa13[_0x416ba5(0x1db)])}}}},this['_unitID']));}[_0x55cb2f(0x1ae)](){const _0x545277=_0x55cb2f;var _0xf52ddd;this[_0x545277(0x17c)]['next'](_0x545277(0x15f)),(_0xf52ddd=this[_0x545277(0x16a)])==null||_0xf52ddd[_0x545277(0x1cf)](),this[_0x545277(0x16a)]=null;}['_startFollowing'](){const _0x1dface=_0x55cb2f;var _0x31b759;(_0x31b759=this[_0x1dface(0x16a)])==null||_0x31b759[_0x1dface(0x1cf)](),this['_status$'][_0x1dface(0x19b)](_0x1dface(0x1bc));}[_0x55cb2f(0x1b9)](){const _0x4b4516=_0x55cb2f;var _0x45c763;this['_status$'][_0x4b4516(0x19b)](_0x4b4516(0x15f)),(_0x45c763=this[_0x4b4516(0x16a)])==null||_0x45c763['dispose'](),this[_0x4b4516(0x16a)]=null;}[_0x55cb2f(0x192)](){const _0x19e2e9=_0x55cb2f;var _0x5f36aa;this['_status$']['next']('not-following'),(_0x5f36aa=this['_commandDisposable'])==null||_0x5f36aa[_0x19e2e9(0x1cf)]();}[_0x55cb2f(0x193)](_0x215fb5){const _0x502e6b=_0x55cb2f;if(['presenting',_0x502e6b(0x18c),_0x502e6b(0x19f)][_0x502e6b(0x198)](this[_0x502e6b(0x163)])||!_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x1df)]||_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x1df)]===this['_collabSession'][_0x502e6b(0x169)]())return;this[_0x502e6b(0x163)]===_0x502e6b(0x15f)&&this['_startFollowing']();const _0x5922c8=_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x166)];Object['values'](_0x5922c8)[_0x502e6b(0x1a9)](_0x1fc158=>{const _0x2e3d4e=_0x502e6b;this[_0x2e3d4e(0x1fd)][_0x2e3d4e(0x1e3)](_0x1fc158['id'],_0x1fc158[_0x2e3d4e(0x1db)]?JSON[_0x2e3d4e(0x1d2)](_0x1fc158[_0x2e3d4e(0x1db)]):null,{'fromCollab':!0x0});});}[_0x55cb2f(0x1ff)](){const _0x582f95=_0x55cb2f;var _0x34beb2;this[_0x582f95(0x17c)][_0x582f95(0x19b)](_0x582f95(0x19f)),(_0x34beb2=this[_0x582f95(0x16a)])==null||_0x34beb2[_0x582f95(0x1cf)]();}[_0x55cb2f(0x177)](){const _0x5e62b4=_0x55cb2f;this[_0x5e62b4(0x17c)][_0x5e62b4(0x19b)](_0x5e62b4(0x15f)),this[_0x5e62b4(0x1ac)]();}};N=Y([_(0x2,_0x3d3506),_(0x3,_0x312b96(L)),_(0x4,_0x58b740)],N);function Le(){const _0x247917=_0x55cb2f,_0x374653=_0x1e6c41(S),_0x5de15c=_0x1e6c41(_0x121289),_0x52a6c8=_0x2bbad4(()=>_0x5de15c['getCurrentTypeOfUnit$'](_0x4070ed[_0x247917(0x1eb)]),void 0x0,!0x1,[]),[_0xcc7ff4,_0x331c1f]=_0x1d3edb(null),[_0x45611c,_0x55693f]=_0x1d3edb(c[_0x247917(0x1c4)]),_0x21711c=_0x5cc64a(null);return _0x310807(()=>(_0x52a6c8&&_0x374653[_0x247917(0x1a8)](_0x52a6c8[_0x247917(0x18f)]())[_0x247917(0x190)](_0x45f8ac=>{const _0x3f0d66=_0x247917;_0x331c1f(_0x45f8ac),_0x21711c['current']=_0x45f8ac[_0x3f0d66(0x1f8)][_0x3f0d66(0x1b6)](_0x577466=>{_0x55693f(_0x577466);});}),()=>{const _0x4cd3f8=_0x247917;var _0x3a13ca;(_0x3a13ca=_0x21711c['current'])==null||_0x3a13ca[_0x4cd3f8(0x1ab)](),_0x21711c[_0x4cd3f8(0x1c1)]=null;}),[_0x52a6c8,_0x374653]),_0xcc7ff4?_0x4c93b8(_0x1ada85,{'align':_0x247917(0x19a),'disabled':_0x45611c===c[_0x247917(0x201)],'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':_0x4c93b8(Re,{'status':_0x45611c,'coordinator':_0xcc7ff4}),'children':_0x4c93b8(_0x247917(0x1cd),{'className':_0x37c55b(_0x247917(0x1c7),{'univer-cursor-not-allowed':_0x45611c===c[_0x247917(0x201)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45611c!==c['OFFLINE']}),'type':_0x247917(0x1cd),'children':_0x4c93b8(W,{'className':_0x247917(0x1ec)})})}):null;}function Re(_0x305889){const _0x3150f0=_0x55cb2f,{status:_0x1512ad,coordinator:_0x570ed8}=_0x305889;switch(_0x1512ad){case c[_0x3150f0(0x1c4)]:return _0x4c93b8($e,{'coordinator':_0x570ed8});case c[_0x3150f0(0x1a5)]:return _0x4c93b8(xe,{'coordinator':_0x570ed8});case c['NOT_FOLLOWING']:return _0x4c93b8(Pe,{'coordinator':_0x570ed8});case c[_0x3150f0(0x201)]:return _0x4c93b8(Te,{});case c[_0x3150f0(0x1e9)]:return _0x4c93b8(Ae,{'coordinator':_0x570ed8});default:return null;}}function $e(_0x535d85){const _0xc28b8=_0x55cb2f,{coordinator:_0x569156}=_0x535d85;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8('div',{'className':_0xc28b8(0x1fa),'children':_0xc28b8(0x191)}),_0x4c93b8(_0x5de6ef,{'onClick':()=>_0x569156['tryStartPresenting'](),'children':_0xc28b8(0x19c)})]});}function xe(_0x50b0db){const _0x1d9bc5=_0x55cb2f,{coordinator:_0x26e156}=_0x50b0db;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x1d9bc5(0x1f7),{'className':_0x1d9bc5(0x1fa),'children':_0x1d9bc5(0x16b)}),_0x4c93b8(_0x5de6ef,{'onClick':()=>_0x26e156[_0x1d9bc5(0x1a0)](),'children':_0x1d9bc5(0x1af)})]});}function Pe(_0x523b08){const _0x2fb522=_0x55cb2f,{coordinator:_0x7585a2}=_0x523b08;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x2fb522(0x1f7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2fb522(0x1b4)}),_0x4c93b8(_0x5de6ef,{'variant':'text','onClick':()=>_0x7585a2[_0x2fb522(0x200)](),'children':_0x2fb522(0x197)})]});}function Ae(_0x4cb948){const _0x551fbc=_0x55cb2f,{coordinator:_0x26509d}=_0x4cb948;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x551fbc(0x1f7),{'className':_0x551fbc(0x1fa),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4c93b8(_0x5de6ef,{'variant':_0x551fbc(0x1e0),'onClick':()=>_0x26509d[_0x551fbc(0x1ea)](),'children':_0x551fbc(0x1ce)})]});}function Te(){const _0x3f8971=_0x55cb2f;return _0x4c93b8(_0x3d3edc,{'children':_0x3f8971(0x162)});}var Fe=Object[_0x55cb2f(0x1a7)],He=(_0x3e819d,_0x15d8e5,_0x5b2734,_0x5d387b)=>{for(var _0x999a1e=_0x5d387b>0x1?void 0x0:_0x5d387b?Fe(_0x15d8e5,_0x5b2734):_0x15d8e5,_0x524e23=_0x3e819d['length']-0x1,_0x36b944;_0x524e23>=0x0;_0x524e23--)(_0x36b944=_0x3e819d[_0x524e23])&&(_0x999a1e=_0x36b944(_0x999a1e)||_0x999a1e);return _0x999a1e;},A=(_0x1f8caa,_0x237d12)=>(_0x3d69f7,_0x22871b)=>_0x237d12(_0x3d69f7,_0x22871b,_0x1f8caa);let m=class extends _0x4af259{constructor(_0x31a7b3,_0x4ddd3c){const _0x4bd0c7=_0x55cb2f;super(),this[_0x4bd0c7(0x1dc)]=_0x31a7b3,this['_uiPartsService']=_0x4ddd3c,this[_0x4bd0c7(0x1f6)]();}[_0x55cb2f(0x1f6)](){const _0x5c5e2f=_0x55cb2f;this[_0x5c5e2f(0x17e)](this[_0x5c5e2f(0x16c)]['registerComponent'](_0x148c23[_0x5c5e2f(0x1a6)],()=>_0x48b907(Le,this[_0x5c5e2f(0x1dc)])));}};m=He([A(0x0,_0x312b96(_0x7d3dde)),A(0x1,_0x219ba3)],m);const ye='live-share.config',T={};var Ue=Object[_0x55cb2f(0x1a7)],Ve=(_0xb3b2c5,_0x3a118e,_0xc4c1b9,_0x20ddc7)=>{const _0x12289a=_0x55cb2f;for(var _0x46f981=_0x20ddc7>0x1?void 0x0:_0x20ddc7?Ue(_0x3a118e,_0xc4c1b9):_0x3a118e,_0xa8ddb7=_0xb3b2c5[_0x12289a(0x167)]-0x1,_0x569a6b;_0xa8ddb7>=0x0;_0xa8ddb7--)(_0x569a6b=_0xb3b2c5[_0xa8ddb7])&&(_0x46f981=_0x569a6b(_0x46f981)||_0x46f981);return _0x46f981;},je=(_0x54b3d0,_0x46ccaa)=>(_0x112c32,_0xa35fc1)=>_0x46ccaa(_0x112c32,_0xa35fc1,_0x54b3d0);let I=class extends _0x4af259{constructor(_0x273ad3){const _0x2ee53e=_0x55cb2f;super(),this['_liveShareService']=_0x273ad3,this[_0x2ee53e(0x19e)]();}['_init'](){[_0xaf5adc['id'],_0x48d7dc['id'],_0x1c9065['id']]['forEach'](_0x25a7aa=>{const _0x297fca=_0x3b3f;this[_0x297fca(0x17e)](this[_0x297fca(0x16d)][_0x297fca(0x1fc)](_0x25a7aa));});}};I=Ve([je(0x0,_0x312b96(L))],I);var Me=Object[_0x55cb2f(0x1fb)],ke=Object[_0x55cb2f(0x1a7)],Ge=(_0x4f19cf,_0x3d64c3,_0x5708e6)=>_0x3d64c3 in _0x4f19cf?Me(_0x4f19cf,_0x3d64c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5708e6}):_0x4f19cf[_0x3d64c3]=_0x5708e6,We=(_0x56f1c5,_0x504788,_0x1794b5,_0x143f82)=>{const _0x1c45fd=_0x55cb2f;for(var _0xcdc8c9=_0x143f82>0x1?void 0x0:_0x143f82?ke(_0x504788,_0x1794b5):_0x504788,_0x2ab0d2=_0x56f1c5[_0x1c45fd(0x167)]-0x1,_0x1c61e6;_0x2ab0d2>=0x0;_0x2ab0d2--)(_0x1c61e6=_0x56f1c5[_0x2ab0d2])&&(_0xcdc8c9=_0x1c61e6(_0xcdc8c9)||_0xcdc8c9);return _0xcdc8c9;},F=(_0x3a1733,_0xf8553d)=>(_0x78f25d,_0x1c730a)=>_0xf8553d(_0x78f25d,_0x1c730a,_0x3a1733),B=(_0x470de7,_0x201494,_0x292d53)=>Ge(_0x470de7,typeof _0x201494!=_0x55cb2f(0x1f2)?_0x201494+'':_0x201494,_0x292d53);const Ye=_0x55cb2f(0x1f1);let b=class extends _0x119531{constructor(_0x285585=T,_0x578fbf,_0x1687fb){const _0x591562=_0x55cb2f;super(),this[_0x591562(0x1f4)]=_0x285585,this[_0x591562(0x1dc)]=_0x578fbf,this[_0x591562(0x1d3)]=_0x1687fb;const {..._0x4ac328}=_0xe10b7b({},T,this[_0x591562(0x1f4)]);this['_configService'][_0x591562(0x1d5)](ye,_0x4ac328);}[_0x55cb2f(0x17a)](){const _0x1eece6=_0x55cb2f;_0x58f0a9(this[_0x1eece6(0x1dc)],_0x434f51([[L],[S],[I],[m]],this[_0x1eece6(0x1f4)][_0x1eece6(0x207)])),_0x38b9cb(this[_0x1eece6(0x1dc)],[[I]]);}['onRendered'](){const _0x7445e4=_0x55cb2f;_0x38b9cb(this[_0x7445e4(0x1dc)],[[m]]);}};B(b,'type',_0x4070ed['UNIVER_UNKNOWN']),B(b,_0x55cb2f(0x1e6),Ye),b=We([_0x5ee615(_0x427d7f),F(0x1,_0x312b96(_0x7d3dde)),F(0x2,_0x3d3506)],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 _0xf02626=_0x49a3;(function(_0x5331b5,_0x52e9fb){const _0x5438da=_0x49a3,_0x1b6945=_0x5331b5();while(!![]){try{const _0x39df04=-parseInt(_0x5438da(0x1a3))/0x1*(-parseInt(_0x5438da(0x17f))/0x2)+-parseInt(_0x5438da(0x133))/0x3*(parseInt(_0x5438da(0x121))/0x4)+-parseInt(_0x5438da(0x13f))/0x5+parseInt(_0x5438da(0x1b8))/0x6*(-parseInt(_0x5438da(0x141))/0x7)+-parseInt(_0x5438da(0x159))/0x8*(parseInt(_0x5438da(0x17c))/0x9)+-parseInt(_0x5438da(0x13e))/0xa+parseInt(_0x5438da(0x126))/0xb;if(_0x39df04===_0x52e9fb)break;else _0x1b6945['push'](_0x1b6945['shift']());}catch(_0x3cfe13){_0x1b6945['push'](_0x1b6945['shift']());}}}(_0x3d06,0xa7477));var J=Object[_0xf02626(0x19c)],K=(_0x5ae237,_0x29cd28,_0x1e5d46)=>_0x29cd28 in _0x5ae237?J(_0x5ae237,_0x29cd28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e5d46}):_0x5ae237[_0x29cd28]=_0x1e5d46,u=(_0x2615bb,_0x50aec8,_0x21469a)=>K(_0x2615bb,typeof _0x50aec8!=_0xf02626(0x18f)?_0x50aec8+'':_0x50aec8,_0x21469a);import{Disposable as _0x5bdbec,toDisposable as _0x5dd282,IUniverInstanceService as _0x246214,Inject as _0x13dd86,Injector as _0x5b65f0,IConfigService as _0x5c1fc8,ICommandService as _0x1549da,RxDisposable as _0x443063,UniverInstanceType as _0x57e1a6,DisposableCollection as _0xd84b84,CommandType as _0x13511b,DependentOn as _0x3a182e,Plugin as _0x586d52,merge as _0x12b34e,registerDependencies as _0x2186bd,mergeOverrideWithDependencies as _0x29be9b,touchDependencies as _0x31d787}from'@univerjs/core';import{useDependency as _0x4e3e8c,useObservable as _0x262950,IUIPartsService as _0x28a6d1,BuiltInUIPart as _0x50c32d,connectInjector as _0x11eeaf}from'@univerjs/ui';import{jsx as _0x3f1572,jsxs as _0x10f9f1,Fragment as _0x561b68}from'react/jsx-runtime';import{Dropdown as _0x49c23a,clsx as _0x37a6a0,Button as _0x1555cd}from'@univerjs/design';import{useRef as _0x922483,createElement as _0x2b29b6,forwardRef as _0x50463f,useState as _0x430a47,useEffect as _0x4a4b6f}from'react';import{CollaborationEvent as _0x41b597,parseProtocolChangeset as _0x1061ca}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x374a90,SessionStatus as _0x1c448e,UniverCollaborationClientPlugin as _0x400e7c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2abf81,SetWorksheetActiveOperation as _0x218042}from'@univerjs/sheets';import{BehaviorSubject as _0x26b77b,Subject as _0x5a754c}from'rxjs';import{takeUntil as _0x461f78,throttleTime as _0x471303}from'rxjs/operators';import{SetZoomRatioOperation as _0x5b6fb4,SetScrollOperation as _0x54eb58}from'@univerjs/sheets-ui';function k({ref:_0x45d44c,..._0x431046}){const _0x311fa5=_0xf02626,{icon:_0x5c5c05,id:_0x33ae4a,className:_0x443872,extend:_0x1606c0,..._0x12d90a}=_0x431046,_0x20e022=(_0x311fa5(0x154)+_0x33ae4a+'\x20'+(_0x443872||''))[_0x311fa5(0x1a8)](),_0x1f4950=_0x922483('_'+Oe());return G(_0x5c5c05,''+_0x33ae4a,{'defIds':_0x5c5c05['defIds'],'idSuffix':_0x1f4950[_0x311fa5(0x1ba)]},{'ref':_0x45d44c,'className':_0x20e022,..._0x12d90a},_0x1606c0);}function G(_0x1dbecf,_0x3a8b92,_0x4e6a23,_0x16ea80,_0x36b1bf){const _0x50e375=_0xf02626;return _0x2b29b6(_0x1dbecf[_0x50e375(0x1b6)],{'key':_0x3a8b92,...be(_0x1dbecf,_0x4e6a23,_0x36b1bf),..._0x16ea80},(Ee(_0x1dbecf,_0x4e6a23)[_0x50e375(0x146)]||[])[_0x50e375(0x181)]((_0x24911d,_0x4b43a2)=>G(_0x24911d,_0x3a8b92+'-'+_0x1dbecf[_0x50e375(0x1b6)]+'-'+_0x4b43a2,_0x4e6a23,void 0x0,_0x36b1bf)));}function be(_0x133a49,_0x300770,_0x292fe8){const _0x456b02=_0xf02626,_0x3266a8={..._0x133a49[_0x456b02(0x164)]};_0x292fe8!=null&&_0x292fe8['colorChannel1']&&_0x3266a8[_0x456b02(0x199)]==='colorChannel1'&&(_0x3266a8[_0x456b02(0x199)]=_0x292fe8[_0x456b02(0x1ad)]),_0x133a49[_0x456b02(0x1b6)]==='mask'&&_0x3266a8['id']&&(_0x3266a8['id']=_0x3266a8['id']+_0x300770[_0x456b02(0x17e)]),Object['entries'](_0x3266a8)['forEach'](([_0x51a95d,_0x41d3fc])=>{const _0xe87a3a=_0x456b02;_0x51a95d===_0xe87a3a(0x19b)&&typeof _0x41d3fc==_0xe87a3a(0x19a)&&(_0x3266a8[_0x51a95d]=_0x41d3fc[_0xe87a3a(0x162)](/url\(#(.*)\)/,_0xe87a3a(0x178)+_0x300770[_0xe87a3a(0x17e)]+')'));});const {defIds:_0x1f9156}=_0x300770;return!_0x1f9156||_0x1f9156[_0x456b02(0x193)]===0x0||(_0x133a49['tag']===_0x456b02(0x152)&&_0x3266a8[_0x456b02(0x171)]&&(_0x3266a8[_0x456b02(0x171)]=_0x3266a8[_0x456b02(0x171)]+_0x300770[_0x456b02(0x17e)]),Object[_0x456b02(0x139)](_0x3266a8)[_0x456b02(0x197)](([_0x4a9000,_0x5377c9])=>{const _0x32d52a=_0x456b02;typeof _0x5377c9==_0x32d52a(0x19a)&&(_0x3266a8[_0x4a9000]=_0x5377c9['replace'](/url\(#(.*)\)/,_0x32d52a(0x178)+_0x300770[_0x32d52a(0x17e)]+')'));})),_0x3266a8;}function Ee(_0x5a80d,_0x43d5cd){const _0x3107af=_0xf02626;var _0x3dcc55;const {defIds:_0x46967b}=_0x43d5cd;return!_0x46967b||_0x46967b[_0x3107af(0x193)]===0x0?_0x5a80d:_0x5a80d[_0x3107af(0x1b6)]===_0x3107af(0x18b)&&((_0x3dcc55=_0x5a80d[_0x3107af(0x146)])!=null&&_0x3dcc55['length'])?{..._0x5a80d,'children':_0x5a80d[_0x3107af(0x146)]['map'](_0x237538=>typeof _0x237538[_0x3107af(0x164)]['id']==_0x3107af(0x19a)&&_0x46967b&&_0x46967b['includes'](_0x237538[_0x3107af(0x164)]['id'])?{..._0x237538,'attrs':{..._0x237538[_0x3107af(0x164)],'id':_0x237538[_0x3107af(0x164)]['id']+_0x43d5cd[_0x3107af(0x17e)]}}:_0x237538)}:_0x5a80d;}function Oe(){const _0x1bf817=_0xf02626;return Math[_0x1bf817(0x1a9)]()[_0x1bf817(0x16c)](0x24)['substring'](0x2,0x8);}k[_0xf02626(0x140)]=_0xf02626(0x142);const we={'tag':_0xf02626(0x179),'attrs':{'xmlns':_0xf02626(0x148),'fill':_0xf02626(0x14a),'viewBox':_0xf02626(0x153),'width':_0xf02626(0x12a),'height':'1em'},'children':[{'tag':_0xf02626(0x128),'attrs':{'fill':_0xf02626(0x119),'d':_0xf02626(0x137)}},{'tag':'path','attrs':{'fill':_0xf02626(0x119),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0xf02626(0x10f)}}]},W=_0x50463f(function(_0x4e555a,_0x50af5d){const _0x20c472=_0xf02626;return _0x2b29b6(k,Object[_0x20c472(0x1ab)]({},_0x4e555a,{'id':_0x20c472(0x1a6),'ref':_0x50af5d,'icon':we}));});function _0x3d06(){const _0x14053c=['_collabSession','_handleOffline','Present\x20this\x20document','stopFollowing','_collabSessionService','sessionStatus$','defs','live-share.config','You\x27re\x20presenting\x20the\x20document','presenter','symbol','_startPresenting','idle','onStarting','length','_config','unsubscribe','_beIdle','forEach','_stopFollowing','fill','string','mask','defineProperty','stringify','get','getInitialStates','createInstance','sheet','getUnitId','615577PSTsWq','not-following','offline','live-share-icon','OPERATION','trim','random','_startLiveShareCoordinator','assign','LIVESHARE_OPERATION','colorChannel1','univer-size-4','_liveShareService','executeCommand','div','text','add','_status','You\x27re\x20not\x20following\x20the\x20presenter','tag','default','9930OggFyi','reverse','current','getLiveShareCoordinatorSync','PRESENTING','evenodd','event$','onCommandExecuted','UNIVER_SHEET','_handleOnline','_uiPartsService','_unitID','registerSharedOperation','dispose','_handleNewHost','currentColor','subscribe','OFFLINE','_reporters','set','_status$','UNIVER_UNKNOWN','_fetchOperations','74524wcwGef','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','dispose$','getCurrentTypeOfUnit$','16373324bTqYAQ','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','tryStartPresenting','1em','from','registerInitialStateReporter','pipe','ONLINE','LIVESHARE_NEW_HOST','params','status$','type','39RhzziQ','init','getConfig','_handleNewChangeSets','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','parse','entries','SAME_OPERATION_SHARE_INTERVAL','_injector','FOLLOWING','button','846610yaNAnk','4034360ORMdVM','displayName','7kOLEdu','UniverIcon','getOwnPropertyDescriptor','LIVESHARE_FETCH_OPERATIONS','send','children','has','http://www.w3.org/2000/svg','shouldShareOperation','none','_handleTerminate','getMemberID','NOT_FOLLOWING','presenting','following','getLiveShareCoordinator','Stop\x20presenting','use','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','pluginName','_commandDisposable','_commandService','end','14048ffhAMu','next','_init','startFollowing','_stopPresenting','then','NEW_CHANGESETS','find','LIVESHARE_TERMINATE','replace','operations','attrs','requireSession','getTypeOfUnitAdded$','override','_startFollowing','Stop\x20following','data','getStatus','toString','stopPresenting','_presenter','includes','onRendered','xlink:href','_configService','getTypeOfUnitDisposed$','_mountLiveShare','Start\x20following','clear','memberID','url(#$1','svg','_univerInstanceService','_entities','4608WzNYdl','complete','idSuffix','4mqiFwe','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','map','_sharedOperations','unitId','IDLE'];_0x3d06=function(){return _0x14053c;};return _0x3d06();}W['displayName']='LiveShareIcon';class L extends _0x5bdbec{constructor(){const _0x2ff16a=_0xf02626;super(...arguments),u(this,_0x2ff16a(0x182),new Set()),u(this,_0x2ff16a(0x11c),new Set());}[_0xf02626(0x116)](_0x35d38d){const _0x4d8fcb=_0xf02626;return this[_0x4d8fcb(0x182)][_0x4d8fcb(0x1b3)](_0x35d38d),_0x5dd282(()=>this['_sharedOperations']['delete'](_0x35d38d));}[_0xf02626(0x12c)](_0x11b68c){const _0x1121d6=_0xf02626;return this['_reporters'][_0x1121d6(0x1b3)](_0x11b68c),_0x5dd282(()=>this[_0x1121d6(0x11c)]['delete'](_0x11b68c));}[_0xf02626(0x149)](_0x204eb8){const _0xee7915=_0xf02626;return this[_0xee7915(0x182)]['has'](_0x204eb8);}[_0xf02626(0x19f)](_0x167c9b){const _0x53156c=_0xf02626;return Array[_0x53156c(0x12b)](this[_0x53156c(0x11c)])['map'](_0x479681=>_0x479681(_0x167c9b));}}var Ne=Object[_0xf02626(0x143)],Y=(_0x5b521b,_0x1bdfd9,_0xad5fcb,_0x17bf4a)=>{const _0x3beed3=_0xf02626;for(var _0x49c3d3=_0x17bf4a>0x1?void 0x0:_0x17bf4a?Ne(_0x1bdfd9,_0xad5fcb):_0x1bdfd9,_0x4a3bae=_0x5b521b[_0x3beed3(0x193)]-0x1,_0x43efd8;_0x4a3bae>=0x0;_0x4a3bae--)(_0x43efd8=_0x5b521b[_0x4a3bae])&&(_0x49c3d3=_0x43efd8(_0x49c3d3)||_0x49c3d3);return _0x49c3d3;},_=(_0x4a9e82,_0x27f1e2)=>(_0x14a2b2,_0x528b69)=>_0x27f1e2(_0x14a2b2,_0x528b69,_0x4a9e82);let S=class extends _0x443063{constructor(_0xc53126,_0x483ead,_0x235aff){const _0x4a8dd8=_0xf02626;super(),u(this,_0x4a8dd8(0x17b),new Map()),(this[_0x4a8dd8(0x17a)]=_0xc53126,this['_injector']=_0x483ead,this[_0x4a8dd8(0x189)]=_0x235aff,this[_0x4a8dd8(0x15b)]());}async[_0xf02626(0x150)](_0x3208e4){const _0x51fb65=_0xf02626;return this[_0x51fb65(0x17b)][_0x51fb65(0x147)](_0x3208e4)||await this[_0x51fb65(0x1aa)](_0x3208e4),this[_0x51fb65(0x17b)][_0x51fb65(0x19e)](_0x3208e4);}[_0xf02626(0x10d)](_0x1939e2){const _0x19b3e0=_0xf02626;var _0x46ce0c;return(_0x46ce0c=this['_entities'][_0x19b3e0(0x19e)](_0x1939e2))!=null?_0x46ce0c:null;}[_0xf02626(0x15b)](){const _0x4d3ace=_0xf02626;this['_univerInstanceService'][_0x4d3ace(0x166)](_0x57e1a6[_0x4d3ace(0x112)])[_0x4d3ace(0x12d)](_0x461f78(this[_0x4d3ace(0x124)]))[_0x4d3ace(0x11a)](async _0xbd6c95=>{const _0x4039dc=_0x4d3ace,_0x561176=_0xbd6c95[_0x4039dc(0x1a2)]();this[_0x4039dc(0x17b)][_0x4039dc(0x147)](_0x561176)||this[_0x4039dc(0x1aa)](_0x561176);}),this[_0x4d3ace(0x17a)][_0x4d3ace(0x173)](_0x57e1a6['UNIVER_SHEET'])[_0x4d3ace(0x12d)](_0x461f78(this['dispose$']))[_0x4d3ace(0x11a)](_0x1ff344=>{const _0x314ae9=_0x4d3ace,_0x5b2922=_0x1ff344[_0x314ae9(0x1a2)](),_0x217dca=this[_0x314ae9(0x17b)][_0x314ae9(0x19e)](_0x5b2922);_0x217dca==null||_0x217dca['dispose']();});}async[_0xf02626(0x1aa)](_0x133e6b){const _0x43a699=_0xf02626,_0x54f095=await this[_0x43a699(0x189)][_0x43a699(0x165)](_0x133e6b),_0xa92cf6=this[_0x43a699(0x13b)][_0x43a699(0x1a0)](N,_0x133e6b,_0x54f095);return _0xa92cf6['init'](),this[_0x43a699(0x17b)]['set'](_0x133e6b,_0xa92cf6),_0xa92cf6;}};S=Y([_(0x0,_0x246214),_(0x1,_0x13dd86(_0x5b65f0)),_(0x2,_0x13dd86(_0x374a90))],S);var c=(_0x14c111=>(_0x14c111[_0xf02626(0x11b)]=_0xf02626(0x1a5),_0x14c111[_0xf02626(0x184)]='idle',_0x14c111[_0xf02626(0x13c)]=_0xf02626(0x14f),_0x14c111['NOT_FOLLOWING']=_0xf02626(0x1a4),_0x14c111[_0xf02626(0x10e)]=_0xf02626(0x14e),_0x14c111))(c||{});const Ce=_0xf02626(0x13a),De=0xc8;let N=class extends _0x443063{constructor(_0x3fa637,_0x3ddbee,_0x58c38e,_0x5192fc,_0x5b802d){const _0x2cc365=_0xf02626;super(),u(this,_0x2cc365(0x11e),new _0x26b77b('idle')),u(this,_0x2cc365(0x131),this[_0x2cc365(0x11e)]['asObservable']()),u(this,_0x2cc365(0x15b),!0x1),u(this,_0x2cc365(0x156),null),u(this,_0x2cc365(0x16e),null),(this[_0x2cc365(0x115)]=_0x3fa637,this[_0x2cc365(0x185)]=_0x3ddbee,this[_0x2cc365(0x172)]=_0x58c38e,this[_0x2cc365(0x1af)]=_0x5192fc,this[_0x2cc365(0x157)]=_0x5b802d);}get[_0xf02626(0x1b4)](){const _0x5820f9=_0xf02626;return this[_0x5820f9(0x11e)]['getValue']();}[_0xf02626(0x117)](){const _0x590d48=_0xf02626;var _0x5baa3b;(_0x5baa3b=this[_0x590d48(0x156)])==null||_0x5baa3b[_0x590d48(0x117)](),this[_0x590d48(0x11e)][_0x590d48(0x15a)](_0x590d48(0x191)),this[_0x590d48(0x11e)][_0x590d48(0x17d)]();}[_0xf02626(0x16b)](){const _0x107eb2=_0xf02626;return this[_0x107eb2(0x1b4)];}[_0xf02626(0x134)](){const _0x3187b9=_0xf02626;this[_0x3187b9(0x15b)]||(this[_0x3187b9(0x15b)]=!0x0,this['_collabSession'][_0x3187b9(0x18a)][_0x3187b9(0x12d)](_0x461f78(this[_0x3187b9(0x124)]))[_0x3187b9(0x11a)](_0xbf4875=>{const _0x44cd72=_0x3187b9;switch(_0xbf4875){case _0x1c448e[_0x44cd72(0x11b)]:this[_0x44cd72(0x186)]();break;case _0x1c448e[_0x44cd72(0x12e)]:this[_0x44cd72(0x113)]();break;}}),this[_0x3187b9(0x185)][_0x3187b9(0x110)]['pipe'](_0x461f78(this['dispose$']))['subscribe'](_0x236c21=>{const _0x583246=_0x3187b9,{eventID:_0x2c7084}=_0x236c21;switch(_0x2c7084){case _0x41b597[_0x583246(0x12f)]:this[_0x583246(0x118)](_0x236c21);break;case _0x41b597['LIVESHARE_OPERATION']:this['_handleOperation'](_0x236c21);break;case _0x41b597[_0x583246(0x161)]:this['_handleTerminate']();break;case _0x41b597[_0x583246(0x15f)]:this[_0x583246(0x136)](_0x236c21);break;}}));}[_0xf02626(0x129)](){const _0x4b6c31=_0xf02626;this[_0x4b6c31(0x185)]['send']({'eventID':_0x41b597['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4b6c31(0x115)],'userID':this[_0x4b6c31(0x185)]['getMemberID']()}},this[_0x4b6c31(0x115)]);}[_0xf02626(0x16d)](){const _0x4d942e=_0xf02626;this[_0x4d942e(0x1b4)]===_0x4d942e(0x14e)&&(this[_0x4d942e(0x11e)][_0x4d942e(0x15a)](_0x4d942e(0x191)),this[_0x4d942e(0x185)][_0x4d942e(0x145)]({'eventID':_0x41b597[_0x4d942e(0x161)],'data':{'unitID':this[_0x4d942e(0x115)]}},this[_0x4d942e(0x115)]));}[_0xf02626(0x15c)](){const _0x496c3e=_0xf02626;this[_0x496c3e(0x1b4)]==='not-following'&&(this[_0x496c3e(0x11e)][_0x496c3e(0x15a)](_0x496c3e(0x14f)),this[_0x496c3e(0x168)]());}[_0xf02626(0x188)](){const _0x5e5cea=_0xf02626;this['_status']===_0x5e5cea(0x14f)&&this[_0x5e5cea(0x198)]();}[_0xf02626(0x118)](_0x357d9d){const _0x568dfc=_0xf02626,{presenter:_0x3fa8fb}=_0x357d9d['data'],_0x3ca1e4=this['_collabSession'][_0x568dfc(0x14c)]();this[_0x568dfc(0x16e)]=_0x3fa8fb,_0x3fa8fb===_0x3ca1e4?(this[_0x568dfc(0x198)](),this[_0x568dfc(0x190)]()):this[_0x568dfc(0x1b4)]!==_0x568dfc(0x1a4)&&(this[_0x568dfc(0x15d)](),this[_0x568dfc(0x168)]());}[_0xf02626(0x120)](){const _0x25c34e=_0xf02626,_0x2578f7={'eventID':_0x41b597[_0x25c34e(0x144)]};this['_collabSession']['send'](_0x2578f7,this[_0x25c34e(0x115)]);}[_0xf02626(0x14b)](){const _0x345f75=_0xf02626;this[_0x345f75(0x16e)]=null,this[_0x345f75(0x1b4)]!=='presenting'&&this[_0x345f75(0x196)]();}['_handleNewChangeSets'](_0x46197e){const _0x148a21=_0xf02626;if(this[_0x148a21(0x1b4)]===_0x148a21(0x14f)&&this[_0x148a21(0x16e)]===_0x46197e[_0x148a21(0x16a)][_0x148a21(0x177)]){const _0x5b050f=_0x1061ca(_0x46197e[_0x148a21(0x16a)])['mutations'][_0x148a21(0x1b9)]()[_0x148a21(0x160)](_0x3cf610=>_0x3cf610['id']===_0x2abf81['id']);if(_0x5b050f){const _0x69a22d=_0x5b050f[_0x148a21(0x130)][_0x148a21(0x183)],_0xd951ea=_0x5b050f[_0x148a21(0x130)][_0x148a21(0x1a1)]['id'];setTimeout(()=>{const _0x5b0a20=_0x148a21;this[_0x5b0a20(0x157)][_0x5b0a20(0x1b0)](_0x218042['id'],{'unitId':_0x69a22d,'subUnitId':_0xd951ea},{'fromCollab':!0x0});});}}}[_0xf02626(0x190)](){const _0x3f8a70=_0xf02626;this[_0x3f8a70(0x11e)][_0x3f8a70(0x15a)]('presenting');const _0x373ffc=new Map(),_0x2bd11f=this['_commandDisposable']=new _0xd84b84();_0x2bd11f[_0x3f8a70(0x1b3)](_0x5dd282(()=>{const _0x544f17=_0x3f8a70;_0x373ffc[_0x544f17(0x197)](_0x293094=>_0x293094[_0x544f17(0x17d)]()),_0x373ffc[_0x544f17(0x176)]();})),_0x2bd11f[_0x3f8a70(0x1b3)](this['_commandService'][_0x3f8a70(0x111)](_0x2ca7a7=>{const _0xde89c=_0x3f8a70;var _0x1d950c;if(_0x2ca7a7[_0xde89c(0x132)]!==_0x13511b[_0xde89c(0x1a7)]||!this[_0xde89c(0x1af)][_0xde89c(0x149)](_0x2ca7a7['id']))return;const {id:_0x872d9c}=_0x2ca7a7;let _0x3f240f;_0x373ffc[_0xde89c(0x147)](_0x872d9c)?_0x3f240f=_0x373ffc[_0xde89c(0x19e)](_0x872d9c):(_0x3f240f=new _0x5a754c(),_0x373ffc[_0xde89c(0x11d)](_0x872d9c,_0x3f240f),_0x3f240f[_0xde89c(0x12d)](_0x471303((_0x1d950c=this[_0xde89c(0x172)][_0xde89c(0x135)](Ce))!=null?_0x1d950c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xde89c(0x11a)](_0x19d28c=>{const _0x4e2489=_0xde89c;this[_0x4e2489(0x185)][_0x4e2489(0x145)]({'eventID':_0x41b597[_0x4e2489(0x1ac)],'data':{'unitID':this[_0x4e2489(0x115)],'operations':{[_0x19d28c['id']]:{'id':_0x19d28c['id'],'params':JSON['stringify'](_0x19d28c['params'])}}}},this[_0x4e2489(0x115)]);})),_0x3f240f['next'](_0x2ca7a7);})),this['_liveShareService']['getInitialStates'](this[_0x3f8a70(0x115)])['forEach'](_0x507eca=>this[_0x3f8a70(0x185)][_0x3f8a70(0x145)]({'eventID':_0x41b597['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3f8a70(0x115)],'operations':{[_0x507eca['id']]:{'id':_0x507eca['id'],'params':JSON[_0x3f8a70(0x19d)](_0x507eca[_0x3f8a70(0x130)])}}}},this['_unitID']));}[_0xf02626(0x15d)](){const _0x3bdc00=_0xf02626;var _0x353052;this[_0x3bdc00(0x11e)][_0x3bdc00(0x15a)](_0x3bdc00(0x191)),(_0x353052=this['_commandDisposable'])==null||_0x353052['dispose'](),this[_0x3bdc00(0x156)]=null;}[_0xf02626(0x168)](){const _0x50423e=_0xf02626;var _0x22875c;(_0x22875c=this[_0x50423e(0x156)])==null||_0x22875c[_0x50423e(0x117)](),this[_0x50423e(0x11e)][_0x50423e(0x15a)](_0x50423e(0x14f));}['_beIdle'](){const _0x2326f7=_0xf02626;var _0x4d3b8f;this[_0x2326f7(0x11e)][_0x2326f7(0x15a)](_0x2326f7(0x191)),(_0x4d3b8f=this[_0x2326f7(0x156)])==null||_0x4d3b8f[_0x2326f7(0x117)](),this[_0x2326f7(0x156)]=null;}[_0xf02626(0x198)](){const _0x5471e2=_0xf02626;var _0x43265e;this[_0x5471e2(0x11e)]['next'](_0x5471e2(0x1a4)),(_0x43265e=this[_0x5471e2(0x156)])==null||_0x43265e[_0x5471e2(0x117)]();}['_handleOperation'](_0x224d63){const _0x5a8190=_0xf02626;if([_0x5a8190(0x14e),'not-following','offline'][_0x5a8190(0x16f)](this[_0x5a8190(0x1b4)])||!_0x224d63[_0x5a8190(0x16a)][_0x5a8190(0x18e)]||_0x224d63[_0x5a8190(0x16a)]['presenter']===this[_0x5a8190(0x185)][_0x5a8190(0x14c)]())return;this['_status']===_0x5a8190(0x191)&&this[_0x5a8190(0x168)]();const _0x5ed6e6=_0x224d63[_0x5a8190(0x16a)][_0x5a8190(0x163)];Object['values'](_0x5ed6e6)[_0x5a8190(0x197)](_0x31cd1e=>{const _0x57204c=_0x5a8190;this[_0x57204c(0x157)][_0x57204c(0x1b0)](_0x31cd1e['id'],_0x31cd1e[_0x57204c(0x130)]?JSON[_0x57204c(0x138)](_0x31cd1e[_0x57204c(0x130)]):null,{'fromCollab':!0x0});});}[_0xf02626(0x186)](){const _0x3520bb=_0xf02626;var _0x14ca7b;this[_0x3520bb(0x11e)][_0x3520bb(0x15a)](_0x3520bb(0x1a5)),(_0x14ca7b=this['_commandDisposable'])==null||_0x14ca7b['dispose']();}[_0xf02626(0x113)](){const _0x59b3d2=_0xf02626;this[_0x59b3d2(0x11e)][_0x59b3d2(0x15a)]('idle'),this[_0x59b3d2(0x120)]();}};N=Y([_(0x2,_0x5c1fc8),_(0x3,_0x13dd86(L)),_(0x4,_0x1549da)],N);function Le(){const _0x1f2369=_0xf02626,_0x569ebc=_0x4e3e8c(S),_0x5ee06f=_0x4e3e8c(_0x246214),_0x420c04=_0x262950(()=>_0x5ee06f[_0x1f2369(0x125)](_0x57e1a6[_0x1f2369(0x112)]),void 0x0,!0x1,[]),[_0x2eabc6,_0x5c84c4]=_0x430a47(null),[_0x238d1c,_0x224e16]=_0x430a47(c['IDLE']),_0x582f08=_0x922483(null);return _0x4a4b6f(()=>(_0x420c04&&_0x569ebc[_0x1f2369(0x150)](_0x420c04[_0x1f2369(0x1a2)]())[_0x1f2369(0x15e)](_0x35b1a7=>{const _0x18398d=_0x1f2369;_0x5c84c4(_0x35b1a7),_0x582f08[_0x18398d(0x1ba)]=_0x35b1a7[_0x18398d(0x131)]['subscribe'](_0x59d285=>{_0x224e16(_0x59d285);});}),()=>{const _0x1c2cf3=_0x1f2369;var _0x291bd3;(_0x291bd3=_0x582f08['current'])==null||_0x291bd3[_0x1c2cf3(0x195)](),_0x582f08[_0x1c2cf3(0x1ba)]=null;}),[_0x420c04,_0x569ebc]),_0x2eabc6?_0x3f1572(_0x49c23a,{'align':_0x1f2369(0x158),'disabled':_0x238d1c===c[_0x1f2369(0x11b)],'className':_0x1f2369(0x180),'overlay':_0x3f1572(Re,{'status':_0x238d1c,'coordinator':_0x2eabc6}),'children':_0x3f1572(_0x1f2369(0x13d),{'className':_0x37a6a0(_0x1f2369(0x127),{'univer-cursor-not-allowed':_0x238d1c===c[_0x1f2369(0x11b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x238d1c!==c[_0x1f2369(0x11b)]}),'type':_0x1f2369(0x13d),'children':_0x3f1572(W,{'className':_0x1f2369(0x1ae)})})}):null;}function Re(_0x25b16b){const _0x2954de=_0xf02626,{status:_0x12e09e,coordinator:_0x3cfffd}=_0x25b16b;switch(_0x12e09e){case c[_0x2954de(0x184)]:return _0x3f1572($e,{'coordinator':_0x3cfffd});case c['FOLLOWING']:return _0x3f1572(xe,{'coordinator':_0x3cfffd});case c[_0x2954de(0x14d)]:return _0x3f1572(Pe,{'coordinator':_0x3cfffd});case c['OFFLINE']:return _0x3f1572(Te,{});case c['PRESENTING']:return _0x3f1572(Ae,{'coordinator':_0x3cfffd});default:return null;}}function $e(_0x28b641){const _0x17d842=_0xf02626,{coordinator:_0x3ef61c}=_0x28b641;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572('div',{'className':_0x17d842(0x122),'children':_0x17d842(0x187)}),_0x3f1572(_0x1555cd,{'onClick':()=>_0x3ef61c['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x1db4e6){const _0x9aeece=_0xf02626,{coordinator:_0x21561b}=_0x1db4e6;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x9aeece(0x1b1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x3f1572(_0x1555cd,{'onClick':()=>_0x21561b[_0x9aeece(0x188)](),'children':_0x9aeece(0x169)})]});}function Pe(_0x644145){const _0x49b868=_0xf02626,{coordinator:_0x5d21a9}=_0x644145;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x49b868(0x1b1),{'className':_0x49b868(0x122),'children':_0x49b868(0x1b5)}),_0x3f1572(_0x1555cd,{'variant':_0x49b868(0x1b2),'onClick':()=>_0x5d21a9[_0x49b868(0x15c)](),'children':_0x49b868(0x175)})]});}function Ae(_0x4eda88){const _0x7481f5=_0xf02626,{coordinator:_0x574693}=_0x4eda88;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x7481f5(0x1b1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7481f5(0x18d)}),_0x3f1572(_0x1555cd,{'variant':_0x7481f5(0x1b7),'onClick':()=>_0x574693[_0x7481f5(0x16d)](),'children':_0x7481f5(0x151)})]});}function Te(){return _0x3f1572(_0x561b68,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0xf02626(0x143)],He=(_0x96b58c,_0x144ee2,_0x507d0b,_0x222271)=>{const _0xefecaf=_0xf02626;for(var _0x13fcad=_0x222271>0x1?void 0x0:_0x222271?Fe(_0x144ee2,_0x507d0b):_0x144ee2,_0x42d52c=_0x96b58c[_0xefecaf(0x193)]-0x1,_0x5f0019;_0x42d52c>=0x0;_0x42d52c--)(_0x5f0019=_0x96b58c[_0x42d52c])&&(_0x13fcad=_0x5f0019(_0x13fcad)||_0x13fcad);return _0x13fcad;},A=(_0x5642f2,_0x3d613d)=>(_0x31fffb,_0x4e944a)=>_0x3d613d(_0x31fffb,_0x4e944a,_0x5642f2);let m=class extends _0x5bdbec{constructor(_0x38c48e,_0xcedf1f){const _0x3f32ff=_0xf02626;super(),this[_0x3f32ff(0x13b)]=_0x38c48e,this[_0x3f32ff(0x114)]=_0xcedf1f,this[_0x3f32ff(0x174)]();}[_0xf02626(0x174)](){const _0x55dd1f=_0xf02626;this[_0x55dd1f(0x123)](this[_0x55dd1f(0x114)]['registerComponent'](_0x50c32d['HEADER_MENU'],()=>_0x11eeaf(Le,this[_0x55dd1f(0x13b)])));}};m=He([A(0x0,_0x13dd86(_0x5b65f0)),A(0x1,_0x28a6d1)],m);const ye=_0xf02626(0x18c),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x535922,_0x1e5212,_0x4e0c0d,_0x470e7d)=>{const _0x607782=_0xf02626;for(var _0x2f847e=_0x470e7d>0x1?void 0x0:_0x470e7d?Ue(_0x1e5212,_0x4e0c0d):_0x1e5212,_0x3a3d52=_0x535922[_0x607782(0x193)]-0x1,_0x4f8e2f;_0x3a3d52>=0x0;_0x3a3d52--)(_0x4f8e2f=_0x535922[_0x3a3d52])&&(_0x2f847e=_0x4f8e2f(_0x2f847e)||_0x2f847e);return _0x2f847e;},je=(_0x1004d2,_0x4c201b)=>(_0x376686,_0x2034c4)=>_0x4c201b(_0x376686,_0x2034c4,_0x1004d2);let I=class extends _0x5bdbec{constructor(_0x851793){const _0x3619bd=_0xf02626;super(),this[_0x3619bd(0x1af)]=_0x851793,this['_init']();}[_0xf02626(0x15b)](){[_0x5b6fb4['id'],_0x54eb58['id'],_0x218042['id']]['forEach'](_0x1c96f7=>{const _0x47a757=_0x49a3;this[_0x47a757(0x123)](this[_0x47a757(0x1af)][_0x47a757(0x116)](_0x1c96f7));});}};I=Ve([je(0x0,_0x13dd86(L))],I);var Me=Object[_0xf02626(0x19c)],ke=Object[_0xf02626(0x143)],Ge=(_0x48fbcc,_0x131495,_0x50e9bb)=>_0x131495 in _0x48fbcc?Me(_0x48fbcc,_0x131495,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50e9bb}):_0x48fbcc[_0x131495]=_0x50e9bb,We=(_0x5e6c7c,_0x3fd39f,_0x5f3d48,_0x38183a)=>{const _0x170050=_0xf02626;for(var _0x2f772b=_0x38183a>0x1?void 0x0:_0x38183a?ke(_0x3fd39f,_0x5f3d48):_0x3fd39f,_0x1e7745=_0x5e6c7c[_0x170050(0x193)]-0x1,_0x293523;_0x1e7745>=0x0;_0x1e7745--)(_0x293523=_0x5e6c7c[_0x1e7745])&&(_0x2f772b=_0x293523(_0x2f772b)||_0x2f772b);return _0x2f772b;},F=(_0x218a51,_0x1a8e03)=>(_0x22d847,_0x242c8a)=>_0x1a8e03(_0x22d847,_0x242c8a,_0x218a51),B=(_0x181145,_0x5f28e6,_0x38ec45)=>Ge(_0x181145,typeof _0x5f28e6!=_0xf02626(0x18f)?_0x5f28e6+'':_0x5f28e6,_0x38ec45);function _0x49a3(_0x311e8d,_0x1d2c9f){_0x311e8d=_0x311e8d-0x10d;const _0x3d0625=_0x3d06();let _0x49a302=_0x3d0625[_0x311e8d];return _0x49a302;}const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x586d52{constructor(_0x9e3f14=T,_0x24bc5f,_0x349d0d){const _0x5d3475=_0xf02626;super(),this[_0x5d3475(0x194)]=_0x9e3f14,this[_0x5d3475(0x13b)]=_0x24bc5f,this[_0x5d3475(0x172)]=_0x349d0d;const {..._0x205667}=_0x12b34e({},T,this[_0x5d3475(0x194)]);this[_0x5d3475(0x172)]['setConfig'](ye,_0x205667);}[_0xf02626(0x192)](){const _0x417a59=_0xf02626;_0x2186bd(this[_0x417a59(0x13b)],_0x29be9b([[L],[S],[I],[m]],this[_0x417a59(0x194)][_0x417a59(0x167)])),_0x31d787(this['_injector'],[[I]]);}[_0xf02626(0x170)](){const _0x2f8e46=_0xf02626;_0x31d787(this[_0x2f8e46(0x13b)],[[m]]);}};B(b,_0xf02626(0x132),_0x57e1a6[_0xf02626(0x11f)]),B(b,_0xf02626(0x155),Ye),b=We([_0x3a182e(_0x400e7c),F(0x1,_0x13dd86(_0x5b65f0)),F(0x2,_0x5c1fc8)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1c06c6=_0x3e17;(function(_0x1126d7,_0x320a01){const _0x6fe8a8=_0x3e17,_0x44012c=_0x1126d7();while(!![]){try{const _0x1c5f84=-parseInt(_0x6fe8a8(0x104))/0x1*(parseInt(_0x6fe8a8(0x106))/0x2)+parseInt(_0x6fe8a8(0x102))/0x3*(parseInt(_0x6fe8a8(0xef))/0x4)+-parseInt(_0x6fe8a8(0xf6))/0x5*(-parseInt(_0x6fe8a8(0x10d))/0x6)+-parseInt(_0x6fe8a8(0xfb))/0x7+parseInt(_0x6fe8a8(0xf5))/0x8+parseInt(_0x6fe8a8(0xf1))/0x9+-parseInt(_0x6fe8a8(0xf9))/0xa;if(_0x1c5f84===_0x320a01)break;else _0x44012c['push'](_0x44012c['shift']());}catch(_0x244a8b){_0x44012c['push'](_0x44012c['shift']());}}}(_0x38b0,0x5aaa9));function _0x3e17(_0x4e22b5,_0x2cba35){_0x4e22b5=_0x4e22b5-0xee;const _0x38b0e5=_0x38b0();let _0x3e1706=_0x38b0e5[_0x4e22b5];return _0x3e1706;}import{LiveShareController as _0x522dd2,LiveShareStatus as _0x14b7ef}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4d3e86}from'@univerjs/engine-render';function _0x38b0(){const _0x481d06=['622485nehvnO','getLiveShareStatus','getSheetId','1036280dqANBS','extend','4263084QlWMNB','getLiveShareCoordinatorSync','getActiveWorkbook','startPresenting','getActiveSheet','LiveShareStatusEnum','syncExecuteCommand','204juXPcA','get','24dxKxdf','getRenderById','1166YvgTzX','startColumn','stopFollowing','stopPresenting','No\x20active\x20workbook\x20found.','getStatus','_injector','6GwYaOP','getUnitId','_initialize','IDLE','startRow','40676qsqkdQ','getId','785898KAUURU','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','_commandService','1557520SbSVJg'];_0x38b0=function(){return _0x481d06;};return _0x38b0();}import{SetWorksheetActiveOperation as _0x56aef8}from'@univerjs/sheets';import{SetScrollOperation as _0x328bc4}from'@univerjs/sheets-ui';import{FRange as _0x5a09d4}from'@univerjs/sheets/facade';import{FUniver as _0x353610,FEnum as _0x1286dc}from'@univerjs/core/facade';class I extends _0x5a09d4{[_0x1c06c6(0x10f)](_0x190845,_0x4516b9,_0x2e7589,_0x45f819,_0x2bd6ee){const _0x767817=_0x1c06c6,_0x26bea1=_0x190845[_0x767817(0x103)](_0x522dd2),_0x27d821=_0x190845[_0x767817(0x103)](_0x4d3e86),_0x2373e2=_0x4516b9[_0x767817(0x10e)](),_0x5eb548=_0x4516b9[_0x767817(0xff)](),_0x554cb1=_0x26bea1['getLiveShareCoordinatorSync'](_0x2373e2);(_0x554cb1==null?void 0x0:_0x554cb1[_0x767817(0x10b)]())!==_0x14b7ef['PRESENTING']||(_0x2e7589[_0x767817(0xf8)]()!==_0x5eb548[_0x767817(0xf8)]()&&this[_0x767817(0xf4)]['executeCommand'](_0x56aef8['id'],{'unitId':_0x2373e2,'subUnitId':_0x2e7589['getSheetId']()}),!_0x27d821[_0x767817(0x105)](_0x2373e2))||_0x2bd6ee[_0x767817(0x101)](_0x328bc4['id'],{'unitId':_0x4516b9['getUnitId'](),'sheetId':_0x2e7589[_0x767817(0xf8)](),'sheetViewStartRow':_0x45f819[_0x767817(0xee)],'sheetViewStartColumn':_0x45f819[_0x767817(0x107)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5a09d4[_0x1c06c6(0xfa)](I);class m extends _0x353610{[_0x1c06c6(0xf7)](){const _0x10d659=_0x1c06c6;var _0x30eac7,_0x59f086;const _0xa506b9=this[_0x10d659(0x10c)]['get'](_0x522dd2),_0x2ab02b=(_0x30eac7=this[_0x10d659(0xfd)]())==null?void 0x0:_0x30eac7['getId']();if(!_0x2ab02b)throw new Error(_0x10d659(0x10a));const _0x147905=_0xa506b9[_0x10d659(0xfc)](_0x2ab02b);return(_0x59f086=_0x147905==null?void 0x0:_0x147905[_0x10d659(0x10b)]())!=null?_0x59f086:_0x14b7ef[_0x10d659(0x110)];}[_0x1c06c6(0xf3)](){const _0x45c42f=_0x1c06c6;var _0x22fc8f;const _0x1ea097=this['_injector'][_0x45c42f(0x103)](_0x522dd2),_0x9ba164=(_0x22fc8f=this[_0x45c42f(0xfd)]())==null?void 0x0:_0x22fc8f[_0x45c42f(0xf0)]();if(!_0x9ba164)throw new Error(_0x45c42f(0x10a));const _0x738304=_0x1ea097[_0x45c42f(0xfc)](_0x9ba164);if(!_0x738304)throw new Error(_0x45c42f(0xf2));_0x738304[_0x45c42f(0xf3)]();}[_0x1c06c6(0x108)](){const _0x38c715=_0x1c06c6;var _0x383a80;const _0xe0f3d8=this[_0x38c715(0x10c)][_0x38c715(0x103)](_0x522dd2),_0x1ae892=(_0x383a80=this['getActiveWorkbook']())==null?void 0x0:_0x383a80[_0x38c715(0xf0)]();if(!_0x1ae892)throw new Error(_0x38c715(0x10a));const _0x2ff09d=_0xe0f3d8['getLiveShareCoordinatorSync'](_0x1ae892);if(!_0x2ff09d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2ff09d[_0x38c715(0x108)]();}[_0x1c06c6(0xfe)](){const _0x3938c8=_0x1c06c6;var _0x4e0140;const _0x39c0ab=this[_0x3938c8(0x10c)]['get'](_0x522dd2),_0x1a14ed=(_0x4e0140=this[_0x3938c8(0xfd)]())==null?void 0x0:_0x4e0140[_0x3938c8(0xf0)]();if(!_0x1a14ed)throw new Error('No\x20active\x20workbook\x20found.');const _0x43125c=_0x39c0ab['getLiveShareCoordinatorSync'](_0x1a14ed);if(!_0x43125c)throw new Error(_0x3938c8(0xf2));_0x43125c['tryStartPresenting']();}[_0x1c06c6(0x109)](){const _0x554fbe=_0x1c06c6;var _0x5a1e9c;const _0x509166=this[_0x554fbe(0x10c)][_0x554fbe(0x103)](_0x522dd2),_0x88d81d=(_0x5a1e9c=this[_0x554fbe(0xfd)]())==null?void 0x0:_0x5a1e9c[_0x554fbe(0xf0)]();if(!_0x88d81d)throw new Error(_0x554fbe(0x10a));const _0x4e3d05=_0x509166[_0x554fbe(0xfc)](_0x88d81d);if(!_0x4e3d05)throw new Error(_0x554fbe(0xf2));_0x4e3d05[_0x554fbe(0x109)]();}}_0x353610[_0x1c06c6(0xfa)](m);class C extends _0x1286dc{get[_0x1c06c6(0x100)](){return _0x14b7ef;}}_0x1286dc['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x55cb2f=_0x3b3f;(function(_0x2853c3,_0x18e970){const _0x3e22b9=_0x3b3f,_0x2a2857=_0x2853c3();while(!![]){try{const _0xcf43=-parseInt(_0x3e22b9(0x187))/0x1+-parseInt(_0x3e22b9(0x18d))/0x2+-parseInt(_0x3e22b9(0x1e7))/0x3*(parseInt(_0x3e22b9(0x181))/0x4)+-parseInt(_0x3e22b9(0x1d6))/0x5+-parseInt(_0x3e22b9(0x1ad))/0x6*(parseInt(_0x3e22b9(0x168))/0x7)+parseInt(_0x3e22b9(0x1b1))/0x8*(parseInt(_0x3e22b9(0x1f0))/0x9)+parseInt(_0x3e22b9(0x199))/0xa;if(_0xcf43===_0x18e970)break;else _0x2a2857['push'](_0x2a2857['shift']());}catch(_0x4e4263){_0x2a2857['push'](_0x2a2857['shift']());}}}(_0x38d6,0x8d84a));var J=Object[_0x55cb2f(0x1fb)],K=(_0x321bef,_0x1638e8,_0x242cf9)=>_0x1638e8 in _0x321bef?J(_0x321bef,_0x1638e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x242cf9}):_0x321bef[_0x1638e8]=_0x242cf9,u=(_0x30cd6d,_0x2d65bb,_0x30439e)=>K(_0x30cd6d,typeof _0x2d65bb!=_0x55cb2f(0x1f2)?_0x2d65bb+'':_0x2d65bb,_0x30439e);import{Disposable as _0x4af259,toDisposable as _0x11f671,IUniverInstanceService as _0x121289,Inject as _0x312b96,Injector as _0x7d3dde,IConfigService as _0x3d3506,ICommandService as _0x58b740,RxDisposable as _0x5c9eca,UniverInstanceType as _0x4070ed,DisposableCollection as _0x52d334,CommandType as _0x3f3a8a,DependentOn as _0x5ee615,Plugin as _0x119531,merge as _0xe10b7b,registerDependencies as _0x58f0a9,mergeOverrideWithDependencies as _0x434f51,touchDependencies as _0x38b9cb}from'@univerjs/core';import{useDependency as _0x1e6c41,useObservable as _0x2bbad4,IUIPartsService as _0x219ba3,BuiltInUIPart as _0x148c23,connectInjector as _0x48b907}from'@univerjs/ui';import{jsx as _0x4c93b8,jsxs as _0x300104,Fragment as _0x3d3edc}from'react/jsx-runtime';import{Dropdown as _0x1ada85,clsx as _0x37c55b,Button as _0x5de6ef}from'@univerjs/design';import{useRef as _0x5cc64a,createElement as _0x368bcf,forwardRef as _0x59d39c,useState as _0x1d3edb,useEffect as _0x310807}from'react';import{CollaborationEvent as _0x246bf5,parseProtocolChangeset as _0x1704a8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4517c3,SessionStatus as _0x40d8fd,UniverCollaborationClientPlugin as _0x427d7f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x252e6b,SetWorksheetActiveOperation as _0x1c9065}from'@univerjs/sheets';import{BehaviorSubject as _0x4699ca,Subject as _0x26cfc0}from'rxjs';import{takeUntil as _0x3b65a1,throttleTime as _0x1b8bcb}from'rxjs/operators';import{SetZoomRatioOperation as _0xaf5adc,SetScrollOperation as _0x48d7dc}from'@univerjs/sheets-ui';function k({ref:_0x30de43,..._0xc717a5}){const _0x45c78f=_0x55cb2f,{icon:_0x3a262c,id:_0x4e0a42,className:_0x4d6d1d,extend:_0x131070,..._0x16853e}=_0xc717a5,_0x6c8aa6=(_0x45c78f(0x161)+_0x4e0a42+'\x20'+(_0x4d6d1d||''))['trim'](),_0x1e9e74=_0x5cc64a('_'+Oe());return G(_0x3a262c,''+_0x4e0a42,{'defIds':_0x3a262c[_0x45c78f(0x17d)],'idSuffix':_0x1e9e74[_0x45c78f(0x1c1)]},{'ref':_0x30de43,'className':_0x6c8aa6,..._0x16853e},_0x131070);}function G(_0xb4d215,_0x50c14b,_0x424c06,_0x50de1d,_0x28853b){const _0x239271=_0x55cb2f;return _0x368bcf(_0xb4d215['tag'],{'key':_0x50c14b,...be(_0xb4d215,_0x424c06,_0x28853b),..._0x50de1d},(Ee(_0xb4d215,_0x424c06)[_0x239271(0x1e8)]||[])['map']((_0x20230d,_0x5ddca1)=>G(_0x20230d,_0x50c14b+'-'+_0xb4d215[_0x239271(0x15e)]+'-'+_0x5ddca1,_0x424c06,void 0x0,_0x28853b)));}function be(_0x5aac9b,_0x127e6f,_0x3dd643){const _0x57a9cd=_0x55cb2f,_0x546884={..._0x5aac9b[_0x57a9cd(0x1f9)]};_0x3dd643!=null&&_0x3dd643[_0x57a9cd(0x1c9)]&&_0x546884[_0x57a9cd(0x1c8)]==='colorChannel1'&&(_0x546884[_0x57a9cd(0x1c8)]=_0x3dd643[_0x57a9cd(0x1c9)]),_0x5aac9b[_0x57a9cd(0x15e)]===_0x57a9cd(0x202)&&_0x546884['id']&&(_0x546884['id']=_0x546884['id']+_0x127e6f['idSuffix']),Object[_0x57a9cd(0x186)](_0x546884)[_0x57a9cd(0x1a9)](([_0x4c5b08,_0x506377])=>{const _0x564068=_0x57a9cd;_0x4c5b08==='mask'&&typeof _0x506377==_0x564068(0x1bb)&&(_0x546884[_0x4c5b08]=_0x506377[_0x564068(0x175)](/url\(#(.*)\)/,_0x564068(0x165)+_0x127e6f['idSuffix']+')'));});const {defIds:_0x1665fb}=_0x127e6f;return!_0x1665fb||_0x1665fb[_0x57a9cd(0x167)]===0x0||(_0x5aac9b[_0x57a9cd(0x15e)]===_0x57a9cd(0x1b5)&&_0x546884[_0x57a9cd(0x179)]&&(_0x546884[_0x57a9cd(0x179)]=_0x546884[_0x57a9cd(0x179)]+_0x127e6f[_0x57a9cd(0x1ee)]),Object[_0x57a9cd(0x186)](_0x546884)[_0x57a9cd(0x1a9)](([_0x1f5012,_0x456b69])=>{const _0x5d0a58=_0x57a9cd;typeof _0x456b69==_0x5d0a58(0x1bb)&&(_0x546884[_0x1f5012]=_0x456b69['replace'](/url\(#(.*)\)/,'url(#$1'+_0x127e6f[_0x5d0a58(0x1ee)]+')'));})),_0x546884;}function Ee(_0x43177f,_0x30ef3b){const _0x366f3a=_0x55cb2f;var _0x4cb47e;const {defIds:_0x357cbf}=_0x30ef3b;return!_0x357cbf||_0x357cbf[_0x366f3a(0x167)]===0x0?_0x43177f:_0x43177f[_0x366f3a(0x15e)]===_0x366f3a(0x1d7)&&((_0x4cb47e=_0x43177f[_0x366f3a(0x1e8)])!=null&&_0x4cb47e[_0x366f3a(0x167)])?{..._0x43177f,'children':_0x43177f[_0x366f3a(0x1e8)][_0x366f3a(0x1f3)](_0x3366ef=>typeof _0x3366ef[_0x366f3a(0x1f9)]['id']=='string'&&_0x357cbf&&_0x357cbf[_0x366f3a(0x198)](_0x3366ef[_0x366f3a(0x1f9)]['id'])?{..._0x3366ef,'attrs':{..._0x3366ef[_0x366f3a(0x1f9)],'id':_0x3366ef[_0x366f3a(0x1f9)]['id']+_0x30ef3b[_0x366f3a(0x1ee)]}}:_0x3366ef)}:_0x43177f;}function Oe(){const _0x4159f0=_0x55cb2f;return Math[_0x4159f0(0x1e5)]()[_0x4159f0(0x1da)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x55cb2f(0x1b3);const we={'tag':'svg','attrs':{'xmlns':_0x55cb2f(0x1c5),'fill':_0x55cb2f(0x1aa),'viewBox':_0x55cb2f(0x19d),'width':_0x55cb2f(0x184),'height':'1em'},'children':[{'tag':_0x55cb2f(0x204),'attrs':{'fill':_0x55cb2f(0x174),'d':_0x55cb2f(0x18b)}},{'tag':_0x55cb2f(0x204),'attrs':{'fill':_0x55cb2f(0x174),'d':_0x55cb2f(0x1bd),'fillRule':_0x55cb2f(0x1ed),'clipRule':_0x55cb2f(0x1ed)}}]},W=_0x59d39c(function(_0x10da74,_0x59629d){const _0x5609b2=_0x55cb2f;return _0x368bcf(k,Object[_0x5609b2(0x1dd)]({},_0x10da74,{'id':'live-share-icon','ref':_0x59629d,'icon':we}));});W[_0x55cb2f(0x189)]=_0x55cb2f(0x1cb);class L extends _0x4af259{constructor(){const _0x4bcc7c=_0x55cb2f;super(...arguments),u(this,_0x4bcc7c(0x1d9),new Set()),u(this,_0x4bcc7c(0x172),new Set());}[_0x55cb2f(0x1fc)](_0x455077){const _0x272a88=_0x55cb2f;return this[_0x272a88(0x1d9)][_0x272a88(0x1cc)](_0x455077),_0x11f671(()=>this[_0x272a88(0x1d9)][_0x272a88(0x206)](_0x455077));}[_0x55cb2f(0x178)](_0x4b13ee){const _0x55c795=_0x55cb2f;return this[_0x55c795(0x172)]['add'](_0x4b13ee),_0x11f671(()=>this[_0x55c795(0x172)][_0x55c795(0x206)](_0x4b13ee));}['shouldShareOperation'](_0x1076a3){const _0x21d2df=_0x55cb2f;return this[_0x21d2df(0x1d9)][_0x21d2df(0x18e)](_0x1076a3);}[_0x55cb2f(0x1d8)](_0x1f388e){const _0x4c4a86=_0x55cb2f;return Array[_0x4c4a86(0x171)](this['_reporters'])[_0x4c4a86(0x1f3)](_0x2cc008=>_0x2cc008(_0x1f388e));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4f69d6,_0x444dd4,_0x2dbc2c,_0x439c35)=>{const _0x115134=_0x55cb2f;for(var _0x55d3a5=_0x439c35>0x1?void 0x0:_0x439c35?Ne(_0x444dd4,_0x2dbc2c):_0x444dd4,_0x547d2f=_0x4f69d6[_0x115134(0x167)]-0x1,_0x2972a7;_0x547d2f>=0x0;_0x547d2f--)(_0x2972a7=_0x4f69d6[_0x547d2f])&&(_0x55d3a5=_0x2972a7(_0x55d3a5)||_0x55d3a5);return _0x55d3a5;},_=(_0x49dfbc,_0x4a3b30)=>(_0x21741d,_0x51210f)=>_0x4a3b30(_0x21741d,_0x51210f,_0x49dfbc);let S=class extends _0x5c9eca{constructor(_0x464b9d,_0x169ca8,_0x558123){const _0x5a314d=_0x55cb2f;super(),u(this,_0x5a314d(0x205),new Map()),(this[_0x5a314d(0x1c3)]=_0x464b9d,this[_0x5a314d(0x1dc)]=_0x169ca8,this[_0x5a314d(0x1b7)]=_0x558123,this[_0x5a314d(0x19e)]());}async[_0x55cb2f(0x1a8)](_0x4569df){const _0x451b2c=_0x55cb2f;return this[_0x451b2c(0x205)]['has'](_0x4569df)||await this['_startLiveShareCoordinator'](_0x4569df),this[_0x451b2c(0x205)]['get'](_0x4569df);}[_0x55cb2f(0x17b)](_0x4c78dd){const _0x3dec21=_0x55cb2f;var _0x12ee02;return(_0x12ee02=this[_0x3dec21(0x205)][_0x3dec21(0x1ba)](_0x4c78dd))!=null?_0x12ee02:null;}['_init'](){const _0x2e7f3f=_0x55cb2f;this['_univerInstanceService'][_0x2e7f3f(0x1f5)](_0x4070ed['UNIVER_SHEET'])[_0x2e7f3f(0x1bf)](_0x3b65a1(this[_0x2e7f3f(0x194)]))[_0x2e7f3f(0x1b6)](async _0x4316ee=>{const _0x4c782c=_0x2e7f3f,_0x404448=_0x4316ee[_0x4c782c(0x18f)]();this[_0x4c782c(0x205)][_0x4c782c(0x18e)](_0x404448)||this['_startLiveShareCoordinator'](_0x404448);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4070ed[_0x2e7f3f(0x1eb)])[_0x2e7f3f(0x1bf)](_0x3b65a1(this['dispose$']))[_0x2e7f3f(0x1b6)](_0x460b91=>{const _0x3585cf=_0x2e7f3f,_0x471a29=_0x460b91[_0x3585cf(0x18f)](),_0x58a66f=this['_entities'][_0x3585cf(0x1ba)](_0x471a29);_0x58a66f==null||_0x58a66f[_0x3585cf(0x1cf)]();});}async['_startLiveShareCoordinator'](_0x20bc95){const _0x5569a2=_0x55cb2f,_0x4df69a=await this[_0x5569a2(0x1b7)][_0x5569a2(0x182)](_0x20bc95),_0x4f9b5f=this[_0x5569a2(0x1dc)][_0x5569a2(0x180)](N,_0x20bc95,_0x4df69a);return _0x4f9b5f['init'](),this[_0x5569a2(0x205)]['set'](_0x20bc95,_0x4f9b5f),_0x4f9b5f;}};S=Y([_(0x0,_0x121289),_(0x1,_0x312b96(_0x7d3dde)),_(0x2,_0x312b96(_0x4517c3))],S);function _0x38d6(){const _0x30b275=['_commandService','type','_handleOffline','startFollowing','OFFLINE','mask','getValue','path','_entities','delete','override','getConfig','tag','idle','set','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','_status','presenting','url(#$1','operations','length','549850lLLxpk','getMemberID','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_uiPartsService','_liveShareService','_handleNewHost','send','onCommandExecuted','from','_reporters','find','currentColor','replace','NOT_FOLLOWING','_handleOnline','registerInitialStateReporter','xlink:href','onStarting','getLiveShareCoordinatorSync','_status$','defIds','disposeWithMe','ONLINE','createInstance','3565852TEIFJC','requireSession','_handleNewChangeSets','1em','_presenter','entries','304626ZhJhZr','_startPresenting','displayName','mutations','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','not-following','1530518oCzYNF','has','getUnitId','then','Present\x20this\x20document','_stopFollowing','_handleOperation','dispose$','LIVESHARE_FETCH_OPERATIONS','OPERATION','Start\x20following','includes','42260800AxemyM','end','next','Start','0\x200\x2017\x2017','_init','offline','stopFollowing','complete','tryStartPresenting','_startFollowing','sheet','FOLLOWING','HEADER_MENU','getOwnPropertyDescriptor','getLiveShareCoordinator','forEach','none','unsubscribe','_fetchOperations','84xYIGQd','_stopPresenting','Stop\x20following','reverse','2833864pINWxF','LIVESHARE_REQUEST_HOST','UniverIcon','You\x27re\x20not\x20following\x20the\x20presenter','use','subscribe','_collabSessionService','unitId','_beIdle','get','string','following','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','_collabSession','pipe','data','current','LIVESHARE_TERMINATE','_univerInstanceService','IDLE','http://www.w3.org/2000/svg','init','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','fill','colorChannel1','stringify','LiveShareIcon','add','button','Stop\x20presenting','dispose','LIVESHARE_NEW_HOST','SAME_OPERATION_SHARE_INTERVAL','parse','_configService','memberID','setConfig','4698035MziXTi','defs','getInitialStates','_sharedOperations','toString','params','_injector','assign','clear','presenter','default','asObservable','_unitID','executeCommand','LIVESHARE_OPERATION','random','pluginName','3ADkKgs','children','PRESENTING','stopPresenting','UNIVER_SHEET','univer-size-4','evenodd','idSuffix','_handleTerminate','9pOsJax','UNIVER_LIVE_SHARE_PLUGIN','symbol','map','_config','getTypeOfUnitAdded$','_mountLiveShare','div','status$','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','registerSharedOperation'];_0x38d6=function(){return _0x30b275;};return _0x38d6();}function _0x3b3f(_0x5b0076,_0xf91d0a){_0x5b0076=_0x5b0076-0x15e;const _0x38d605=_0x38d6();let _0x3b3feb=_0x38d605[_0x5b0076];return _0x3b3feb;}var c=(_0x552b37=>(_0x552b37['OFFLINE']=_0x55cb2f(0x19f),_0x552b37[_0x55cb2f(0x1c4)]=_0x55cb2f(0x15f),_0x552b37[_0x55cb2f(0x1a5)]=_0x55cb2f(0x1bc),_0x552b37[_0x55cb2f(0x176)]=_0x55cb2f(0x18c),_0x552b37[_0x55cb2f(0x1e9)]='presenting',_0x552b37))(c||{});const Ce=_0x55cb2f(0x1d1),De=0xc8;let N=class extends _0x5c9eca{constructor(_0xa67ec8,_0x14f7a5,_0x5cd55b,_0xb41f36,_0x486500){const _0x4672ef=_0x55cb2f;super(),u(this,_0x4672ef(0x17c),new _0x4699ca(_0x4672ef(0x15f))),u(this,_0x4672ef(0x1f8),this[_0x4672ef(0x17c)][_0x4672ef(0x1e1)]()),u(this,_0x4672ef(0x19e),!0x1),u(this,_0x4672ef(0x16a),null),u(this,_0x4672ef(0x185),null),(this[_0x4672ef(0x1e2)]=_0xa67ec8,this[_0x4672ef(0x1be)]=_0x14f7a5,this[_0x4672ef(0x1d3)]=_0x5cd55b,this[_0x4672ef(0x16d)]=_0xb41f36,this[_0x4672ef(0x1fd)]=_0x486500);}get[_0x55cb2f(0x163)](){const _0x5ef825=_0x55cb2f;return this[_0x5ef825(0x17c)][_0x5ef825(0x203)]();}[_0x55cb2f(0x1cf)](){const _0x3de9b0=_0x55cb2f;var _0x51c18d;(_0x51c18d=this[_0x3de9b0(0x16a)])==null||_0x51c18d[_0x3de9b0(0x1cf)](),this['_status$'][_0x3de9b0(0x19b)](_0x3de9b0(0x15f)),this[_0x3de9b0(0x17c)]['complete']();}['getStatus'](){const _0x28bb25=_0x55cb2f;return this[_0x28bb25(0x163)];}[_0x55cb2f(0x1c6)](){const _0x1d5dde=_0x55cb2f;this[_0x1d5dde(0x19e)]||(this[_0x1d5dde(0x19e)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x3b65a1(this['dispose$']))[_0x1d5dde(0x1b6)](_0x44d854=>{const _0x366120=_0x1d5dde;switch(_0x44d854){case _0x40d8fd['OFFLINE']:this[_0x366120(0x1ff)]();break;case _0x40d8fd[_0x366120(0x17f)]:this[_0x366120(0x177)]();break;}}),this[_0x1d5dde(0x1be)]['event$'][_0x1d5dde(0x1bf)](_0x3b65a1(this[_0x1d5dde(0x194)]))[_0x1d5dde(0x1b6)](_0x25ec19=>{const _0xd1b267=_0x1d5dde,{eventID:_0x507ca6}=_0x25ec19;switch(_0x507ca6){case _0x246bf5[_0xd1b267(0x1d0)]:this[_0xd1b267(0x16e)](_0x25ec19);break;case _0x246bf5['LIVESHARE_OPERATION']:this[_0xd1b267(0x193)](_0x25ec19);break;case _0x246bf5[_0xd1b267(0x1c2)]:this[_0xd1b267(0x1ef)]();break;case _0x246bf5['NEW_CHANGESETS']:this[_0xd1b267(0x183)](_0x25ec19);break;}}));}[_0x55cb2f(0x1a2)](){const _0x1e769b=_0x55cb2f;this['_collabSession'][_0x1e769b(0x16f)]({'eventID':_0x246bf5[_0x1e769b(0x1b2)],'data':{'unitID':this[_0x1e769b(0x1e2)],'userID':this[_0x1e769b(0x1be)][_0x1e769b(0x169)]()}},this[_0x1e769b(0x1e2)]);}['stopPresenting'](){const _0x4b4506=_0x55cb2f;this[_0x4b4506(0x163)]===_0x4b4506(0x164)&&(this[_0x4b4506(0x17c)]['next'](_0x4b4506(0x15f)),this[_0x4b4506(0x1be)][_0x4b4506(0x16f)]({'eventID':_0x246bf5[_0x4b4506(0x1c2)],'data':{'unitID':this[_0x4b4506(0x1e2)]}},this[_0x4b4506(0x1e2)]));}[_0x55cb2f(0x200)](){const _0x98ff50=_0x55cb2f;this[_0x98ff50(0x163)]===_0x98ff50(0x18c)&&(this[_0x98ff50(0x17c)][_0x98ff50(0x19b)](_0x98ff50(0x1bc)),this[_0x98ff50(0x1a3)]());}['stopFollowing'](){const _0x36c901=_0x55cb2f;this[_0x36c901(0x163)]===_0x36c901(0x1bc)&&this['_stopFollowing']();}[_0x55cb2f(0x16e)](_0x8b94fe){const _0x5e4e90=_0x55cb2f,{presenter:_0x38d6f7}=_0x8b94fe[_0x5e4e90(0x1c0)],_0x100f7d=this[_0x5e4e90(0x1be)]['getMemberID']();this[_0x5e4e90(0x185)]=_0x38d6f7,_0x38d6f7===_0x100f7d?(this['_stopFollowing'](),this[_0x5e4e90(0x188)]()):this[_0x5e4e90(0x163)]!==_0x5e4e90(0x18c)&&(this['_stopPresenting'](),this[_0x5e4e90(0x1a3)]());}[_0x55cb2f(0x1ac)](){const _0x157e7b=_0x55cb2f,_0x273e6d={'eventID':_0x246bf5[_0x157e7b(0x195)]};this[_0x157e7b(0x1be)][_0x157e7b(0x16f)](_0x273e6d,this[_0x157e7b(0x1e2)]);}[_0x55cb2f(0x1ef)](){const _0x41c011=_0x55cb2f;this['_presenter']=null,this[_0x41c011(0x163)]!==_0x41c011(0x164)&&this[_0x41c011(0x1b9)]();}[_0x55cb2f(0x183)](_0x4bb8e2){const _0x29f721=_0x55cb2f;if(this[_0x29f721(0x163)]===_0x29f721(0x1bc)&&this[_0x29f721(0x185)]===_0x4bb8e2[_0x29f721(0x1c0)][_0x29f721(0x1d4)]){const _0x3c9559=_0x1704a8(_0x4bb8e2[_0x29f721(0x1c0)])[_0x29f721(0x18a)][_0x29f721(0x1b0)]()[_0x29f721(0x173)](_0x4db788=>_0x4db788['id']===_0x252e6b['id']);if(_0x3c9559){const _0x4e9ab4=_0x3c9559[_0x29f721(0x1db)][_0x29f721(0x1b8)],_0x531013=_0x3c9559[_0x29f721(0x1db)][_0x29f721(0x1a4)]['id'];setTimeout(()=>{const _0x9f05e6=_0x29f721;this[_0x9f05e6(0x1fd)][_0x9f05e6(0x1e3)](_0x1c9065['id'],{'unitId':_0x4e9ab4,'subUnitId':_0x531013},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x416ba5=_0x55cb2f;this[_0x416ba5(0x17c)][_0x416ba5(0x19b)](_0x416ba5(0x164));const _0x2b9da7=new Map(),_0xb0f887=this[_0x416ba5(0x16a)]=new _0x52d334();_0xb0f887[_0x416ba5(0x1cc)](_0x11f671(()=>{const _0x2af8e7=_0x416ba5;_0x2b9da7[_0x2af8e7(0x1a9)](_0x49680a=>_0x49680a[_0x2af8e7(0x1a1)]()),_0x2b9da7[_0x2af8e7(0x1de)]();})),_0xb0f887[_0x416ba5(0x1cc)](this[_0x416ba5(0x1fd)][_0x416ba5(0x170)](_0x4fcb17=>{const _0x4ba326=_0x416ba5;var _0x2f46bc;if(_0x4fcb17[_0x4ba326(0x1fe)]!==_0x3f3a8a[_0x4ba326(0x196)]||!this[_0x4ba326(0x16d)]['shouldShareOperation'](_0x4fcb17['id']))return;const {id:_0x3be601}=_0x4fcb17;let _0x27895a;_0x2b9da7[_0x4ba326(0x18e)](_0x3be601)?_0x27895a=_0x2b9da7[_0x4ba326(0x1ba)](_0x3be601):(_0x27895a=new _0x26cfc0(),_0x2b9da7[_0x4ba326(0x160)](_0x3be601,_0x27895a),_0x27895a['pipe'](_0x1b8bcb((_0x2f46bc=this[_0x4ba326(0x1d3)][_0x4ba326(0x208)](Ce))!=null?_0x2f46bc:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ba326(0x1b6)](_0x9788dc=>{const _0xe73f54=_0x4ba326;this[_0xe73f54(0x1be)][_0xe73f54(0x16f)]({'eventID':_0x246bf5[_0xe73f54(0x1e4)],'data':{'unitID':this[_0xe73f54(0x1e2)],'operations':{[_0x9788dc['id']]:{'id':_0x9788dc['id'],'params':JSON[_0xe73f54(0x1ca)](_0x9788dc[_0xe73f54(0x1db)])}}}},this[_0xe73f54(0x1e2)]);})),_0x27895a['next'](_0x4fcb17);})),this[_0x416ba5(0x16d)]['getInitialStates'](this[_0x416ba5(0x1e2)])[_0x416ba5(0x1a9)](_0x57fa13=>this[_0x416ba5(0x1be)][_0x416ba5(0x16f)]({'eventID':_0x246bf5[_0x416ba5(0x1e4)],'data':{'unitID':this['_unitID'],'operations':{[_0x57fa13['id']]:{'id':_0x57fa13['id'],'params':JSON[_0x416ba5(0x1ca)](_0x57fa13[_0x416ba5(0x1db)])}}}},this['_unitID']));}[_0x55cb2f(0x1ae)](){const _0x545277=_0x55cb2f;var _0xf52ddd;this[_0x545277(0x17c)]['next'](_0x545277(0x15f)),(_0xf52ddd=this[_0x545277(0x16a)])==null||_0xf52ddd[_0x545277(0x1cf)](),this[_0x545277(0x16a)]=null;}['_startFollowing'](){const _0x1dface=_0x55cb2f;var _0x31b759;(_0x31b759=this[_0x1dface(0x16a)])==null||_0x31b759[_0x1dface(0x1cf)](),this['_status$'][_0x1dface(0x19b)](_0x1dface(0x1bc));}[_0x55cb2f(0x1b9)](){const _0x4b4516=_0x55cb2f;var _0x45c763;this['_status$'][_0x4b4516(0x19b)](_0x4b4516(0x15f)),(_0x45c763=this[_0x4b4516(0x16a)])==null||_0x45c763['dispose'](),this[_0x4b4516(0x16a)]=null;}[_0x55cb2f(0x192)](){const _0x19e2e9=_0x55cb2f;var _0x5f36aa;this['_status$']['next']('not-following'),(_0x5f36aa=this['_commandDisposable'])==null||_0x5f36aa[_0x19e2e9(0x1cf)]();}[_0x55cb2f(0x193)](_0x215fb5){const _0x502e6b=_0x55cb2f;if(['presenting',_0x502e6b(0x18c),_0x502e6b(0x19f)][_0x502e6b(0x198)](this[_0x502e6b(0x163)])||!_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x1df)]||_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x1df)]===this['_collabSession'][_0x502e6b(0x169)]())return;this[_0x502e6b(0x163)]===_0x502e6b(0x15f)&&this['_startFollowing']();const _0x5922c8=_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x166)];Object['values'](_0x5922c8)[_0x502e6b(0x1a9)](_0x1fc158=>{const _0x2e3d4e=_0x502e6b;this[_0x2e3d4e(0x1fd)][_0x2e3d4e(0x1e3)](_0x1fc158['id'],_0x1fc158[_0x2e3d4e(0x1db)]?JSON[_0x2e3d4e(0x1d2)](_0x1fc158[_0x2e3d4e(0x1db)]):null,{'fromCollab':!0x0});});}[_0x55cb2f(0x1ff)](){const _0x582f95=_0x55cb2f;var _0x34beb2;this[_0x582f95(0x17c)][_0x582f95(0x19b)](_0x582f95(0x19f)),(_0x34beb2=this[_0x582f95(0x16a)])==null||_0x34beb2[_0x582f95(0x1cf)]();}[_0x55cb2f(0x177)](){const _0x5e62b4=_0x55cb2f;this[_0x5e62b4(0x17c)][_0x5e62b4(0x19b)](_0x5e62b4(0x15f)),this[_0x5e62b4(0x1ac)]();}};N=Y([_(0x2,_0x3d3506),_(0x3,_0x312b96(L)),_(0x4,_0x58b740)],N);function Le(){const _0x247917=_0x55cb2f,_0x374653=_0x1e6c41(S),_0x5de15c=_0x1e6c41(_0x121289),_0x52a6c8=_0x2bbad4(()=>_0x5de15c['getCurrentTypeOfUnit$'](_0x4070ed[_0x247917(0x1eb)]),void 0x0,!0x1,[]),[_0xcc7ff4,_0x331c1f]=_0x1d3edb(null),[_0x45611c,_0x55693f]=_0x1d3edb(c[_0x247917(0x1c4)]),_0x21711c=_0x5cc64a(null);return _0x310807(()=>(_0x52a6c8&&_0x374653[_0x247917(0x1a8)](_0x52a6c8[_0x247917(0x18f)]())[_0x247917(0x190)](_0x45f8ac=>{const _0x3f0d66=_0x247917;_0x331c1f(_0x45f8ac),_0x21711c['current']=_0x45f8ac[_0x3f0d66(0x1f8)][_0x3f0d66(0x1b6)](_0x577466=>{_0x55693f(_0x577466);});}),()=>{const _0x4cd3f8=_0x247917;var _0x3a13ca;(_0x3a13ca=_0x21711c['current'])==null||_0x3a13ca[_0x4cd3f8(0x1ab)](),_0x21711c[_0x4cd3f8(0x1c1)]=null;}),[_0x52a6c8,_0x374653]),_0xcc7ff4?_0x4c93b8(_0x1ada85,{'align':_0x247917(0x19a),'disabled':_0x45611c===c[_0x247917(0x201)],'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':_0x4c93b8(Re,{'status':_0x45611c,'coordinator':_0xcc7ff4}),'children':_0x4c93b8(_0x247917(0x1cd),{'className':_0x37c55b(_0x247917(0x1c7),{'univer-cursor-not-allowed':_0x45611c===c[_0x247917(0x201)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45611c!==c['OFFLINE']}),'type':_0x247917(0x1cd),'children':_0x4c93b8(W,{'className':_0x247917(0x1ec)})})}):null;}function Re(_0x305889){const _0x3150f0=_0x55cb2f,{status:_0x1512ad,coordinator:_0x570ed8}=_0x305889;switch(_0x1512ad){case c[_0x3150f0(0x1c4)]:return _0x4c93b8($e,{'coordinator':_0x570ed8});case c[_0x3150f0(0x1a5)]:return _0x4c93b8(xe,{'coordinator':_0x570ed8});case c['NOT_FOLLOWING']:return _0x4c93b8(Pe,{'coordinator':_0x570ed8});case c[_0x3150f0(0x201)]:return _0x4c93b8(Te,{});case c[_0x3150f0(0x1e9)]:return _0x4c93b8(Ae,{'coordinator':_0x570ed8});default:return null;}}function $e(_0x535d85){const _0xc28b8=_0x55cb2f,{coordinator:_0x569156}=_0x535d85;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8('div',{'className':_0xc28b8(0x1fa),'children':_0xc28b8(0x191)}),_0x4c93b8(_0x5de6ef,{'onClick':()=>_0x569156['tryStartPresenting'](),'children':_0xc28b8(0x19c)})]});}function xe(_0x50b0db){const _0x1d9bc5=_0x55cb2f,{coordinator:_0x26e156}=_0x50b0db;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x1d9bc5(0x1f7),{'className':_0x1d9bc5(0x1fa),'children':_0x1d9bc5(0x16b)}),_0x4c93b8(_0x5de6ef,{'onClick':()=>_0x26e156[_0x1d9bc5(0x1a0)](),'children':_0x1d9bc5(0x1af)})]});}function Pe(_0x523b08){const _0x2fb522=_0x55cb2f,{coordinator:_0x7585a2}=_0x523b08;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x2fb522(0x1f7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2fb522(0x1b4)}),_0x4c93b8(_0x5de6ef,{'variant':'text','onClick':()=>_0x7585a2[_0x2fb522(0x200)](),'children':_0x2fb522(0x197)})]});}function Ae(_0x4cb948){const _0x551fbc=_0x55cb2f,{coordinator:_0x26509d}=_0x4cb948;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x551fbc(0x1f7),{'className':_0x551fbc(0x1fa),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4c93b8(_0x5de6ef,{'variant':_0x551fbc(0x1e0),'onClick':()=>_0x26509d[_0x551fbc(0x1ea)](),'children':_0x551fbc(0x1ce)})]});}function Te(){const _0x3f8971=_0x55cb2f;return _0x4c93b8(_0x3d3edc,{'children':_0x3f8971(0x162)});}var Fe=Object[_0x55cb2f(0x1a7)],He=(_0x3e819d,_0x15d8e5,_0x5b2734,_0x5d387b)=>{for(var _0x999a1e=_0x5d387b>0x1?void 0x0:_0x5d387b?Fe(_0x15d8e5,_0x5b2734):_0x15d8e5,_0x524e23=_0x3e819d['length']-0x1,_0x36b944;_0x524e23>=0x0;_0x524e23--)(_0x36b944=_0x3e819d[_0x524e23])&&(_0x999a1e=_0x36b944(_0x999a1e)||_0x999a1e);return _0x999a1e;},A=(_0x1f8caa,_0x237d12)=>(_0x3d69f7,_0x22871b)=>_0x237d12(_0x3d69f7,_0x22871b,_0x1f8caa);let m=class extends _0x4af259{constructor(_0x31a7b3,_0x4ddd3c){const _0x4bd0c7=_0x55cb2f;super(),this[_0x4bd0c7(0x1dc)]=_0x31a7b3,this['_uiPartsService']=_0x4ddd3c,this[_0x4bd0c7(0x1f6)]();}[_0x55cb2f(0x1f6)](){const _0x5c5e2f=_0x55cb2f;this[_0x5c5e2f(0x17e)](this[_0x5c5e2f(0x16c)]['registerComponent'](_0x148c23[_0x5c5e2f(0x1a6)],()=>_0x48b907(Le,this[_0x5c5e2f(0x1dc)])));}};m=He([A(0x0,_0x312b96(_0x7d3dde)),A(0x1,_0x219ba3)],m);const ye='live-share.config',T={};var Ue=Object[_0x55cb2f(0x1a7)],Ve=(_0xb3b2c5,_0x3a118e,_0xc4c1b9,_0x20ddc7)=>{const _0x12289a=_0x55cb2f;for(var _0x46f981=_0x20ddc7>0x1?void 0x0:_0x20ddc7?Ue(_0x3a118e,_0xc4c1b9):_0x3a118e,_0xa8ddb7=_0xb3b2c5[_0x12289a(0x167)]-0x1,_0x569a6b;_0xa8ddb7>=0x0;_0xa8ddb7--)(_0x569a6b=_0xb3b2c5[_0xa8ddb7])&&(_0x46f981=_0x569a6b(_0x46f981)||_0x46f981);return _0x46f981;},je=(_0x54b3d0,_0x46ccaa)=>(_0x112c32,_0xa35fc1)=>_0x46ccaa(_0x112c32,_0xa35fc1,_0x54b3d0);let I=class extends _0x4af259{constructor(_0x273ad3){const _0x2ee53e=_0x55cb2f;super(),this['_liveShareService']=_0x273ad3,this[_0x2ee53e(0x19e)]();}['_init'](){[_0xaf5adc['id'],_0x48d7dc['id'],_0x1c9065['id']]['forEach'](_0x25a7aa=>{const _0x297fca=_0x3b3f;this[_0x297fca(0x17e)](this[_0x297fca(0x16d)][_0x297fca(0x1fc)](_0x25a7aa));});}};I=Ve([je(0x0,_0x312b96(L))],I);var Me=Object[_0x55cb2f(0x1fb)],ke=Object[_0x55cb2f(0x1a7)],Ge=(_0x4f19cf,_0x3d64c3,_0x5708e6)=>_0x3d64c3 in _0x4f19cf?Me(_0x4f19cf,_0x3d64c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5708e6}):_0x4f19cf[_0x3d64c3]=_0x5708e6,We=(_0x56f1c5,_0x504788,_0x1794b5,_0x143f82)=>{const _0x1c45fd=_0x55cb2f;for(var _0xcdc8c9=_0x143f82>0x1?void 0x0:_0x143f82?ke(_0x504788,_0x1794b5):_0x504788,_0x2ab0d2=_0x56f1c5[_0x1c45fd(0x167)]-0x1,_0x1c61e6;_0x2ab0d2>=0x0;_0x2ab0d2--)(_0x1c61e6=_0x56f1c5[_0x2ab0d2])&&(_0xcdc8c9=_0x1c61e6(_0xcdc8c9)||_0xcdc8c9);return _0xcdc8c9;},F=(_0x3a1733,_0xf8553d)=>(_0x78f25d,_0x1c730a)=>_0xf8553d(_0x78f25d,_0x1c730a,_0x3a1733),B=(_0x470de7,_0x201494,_0x292d53)=>Ge(_0x470de7,typeof _0x201494!=_0x55cb2f(0x1f2)?_0x201494+'':_0x201494,_0x292d53);const Ye=_0x55cb2f(0x1f1);let b=class extends _0x119531{constructor(_0x285585=T,_0x578fbf,_0x1687fb){const _0x591562=_0x55cb2f;super(),this[_0x591562(0x1f4)]=_0x285585,this[_0x591562(0x1dc)]=_0x578fbf,this[_0x591562(0x1d3)]=_0x1687fb;const {..._0x4ac328}=_0xe10b7b({},T,this[_0x591562(0x1f4)]);this['_configService'][_0x591562(0x1d5)](ye,_0x4ac328);}[_0x55cb2f(0x17a)](){const _0x1eece6=_0x55cb2f;_0x58f0a9(this[_0x1eece6(0x1dc)],_0x434f51([[L],[S],[I],[m]],this[_0x1eece6(0x1f4)][_0x1eece6(0x207)])),_0x38b9cb(this[_0x1eece6(0x1dc)],[[I]]);}['onRendered'](){const _0x7445e4=_0x55cb2f;_0x38b9cb(this[_0x7445e4(0x1dc)],[[m]]);}};B(b,'type',_0x4070ed['UNIVER_UNKNOWN']),B(b,_0x55cb2f(0x1e6),Ye),b=We([_0x5ee615(_0x427d7f),F(0x1,_0x312b96(_0x7d3dde)),F(0x2,_0x3d3506)],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 _0xf02626=_0x49a3;(function(_0x5331b5,_0x52e9fb){const _0x5438da=_0x49a3,_0x1b6945=_0x5331b5();while(!![]){try{const _0x39df04=-parseInt(_0x5438da(0x1a3))/0x1*(-parseInt(_0x5438da(0x17f))/0x2)+-parseInt(_0x5438da(0x133))/0x3*(parseInt(_0x5438da(0x121))/0x4)+-parseInt(_0x5438da(0x13f))/0x5+parseInt(_0x5438da(0x1b8))/0x6*(-parseInt(_0x5438da(0x141))/0x7)+-parseInt(_0x5438da(0x159))/0x8*(parseInt(_0x5438da(0x17c))/0x9)+-parseInt(_0x5438da(0x13e))/0xa+parseInt(_0x5438da(0x126))/0xb;if(_0x39df04===_0x52e9fb)break;else _0x1b6945['push'](_0x1b6945['shift']());}catch(_0x3cfe13){_0x1b6945['push'](_0x1b6945['shift']());}}}(_0x3d06,0xa7477));var J=Object[_0xf02626(0x19c)],K=(_0x5ae237,_0x29cd28,_0x1e5d46)=>_0x29cd28 in _0x5ae237?J(_0x5ae237,_0x29cd28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e5d46}):_0x5ae237[_0x29cd28]=_0x1e5d46,u=(_0x2615bb,_0x50aec8,_0x21469a)=>K(_0x2615bb,typeof _0x50aec8!=_0xf02626(0x18f)?_0x50aec8+'':_0x50aec8,_0x21469a);import{Disposable as _0x5bdbec,toDisposable as _0x5dd282,IUniverInstanceService as _0x246214,Inject as _0x13dd86,Injector as _0x5b65f0,IConfigService as _0x5c1fc8,ICommandService as _0x1549da,RxDisposable as _0x443063,UniverInstanceType as _0x57e1a6,DisposableCollection as _0xd84b84,CommandType as _0x13511b,DependentOn as _0x3a182e,Plugin as _0x586d52,merge as _0x12b34e,registerDependencies as _0x2186bd,mergeOverrideWithDependencies as _0x29be9b,touchDependencies as _0x31d787}from'@univerjs/core';import{useDependency as _0x4e3e8c,useObservable as _0x262950,IUIPartsService as _0x28a6d1,BuiltInUIPart as _0x50c32d,connectInjector as _0x11eeaf}from'@univerjs/ui';import{jsx as _0x3f1572,jsxs as _0x10f9f1,Fragment as _0x561b68}from'react/jsx-runtime';import{Dropdown as _0x49c23a,clsx as _0x37a6a0,Button as _0x1555cd}from'@univerjs/design';import{useRef as _0x922483,createElement as _0x2b29b6,forwardRef as _0x50463f,useState as _0x430a47,useEffect as _0x4a4b6f}from'react';import{CollaborationEvent as _0x41b597,parseProtocolChangeset as _0x1061ca}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x374a90,SessionStatus as _0x1c448e,UniverCollaborationClientPlugin as _0x400e7c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2abf81,SetWorksheetActiveOperation as _0x218042}from'@univerjs/sheets';import{BehaviorSubject as _0x26b77b,Subject as _0x5a754c}from'rxjs';import{takeUntil as _0x461f78,throttleTime as _0x471303}from'rxjs/operators';import{SetZoomRatioOperation as _0x5b6fb4,SetScrollOperation as _0x54eb58}from'@univerjs/sheets-ui';function k({ref:_0x45d44c,..._0x431046}){const _0x311fa5=_0xf02626,{icon:_0x5c5c05,id:_0x33ae4a,className:_0x443872,extend:_0x1606c0,..._0x12d90a}=_0x431046,_0x20e022=(_0x311fa5(0x154)+_0x33ae4a+'\x20'+(_0x443872||''))[_0x311fa5(0x1a8)](),_0x1f4950=_0x922483('_'+Oe());return G(_0x5c5c05,''+_0x33ae4a,{'defIds':_0x5c5c05['defIds'],'idSuffix':_0x1f4950[_0x311fa5(0x1ba)]},{'ref':_0x45d44c,'className':_0x20e022,..._0x12d90a},_0x1606c0);}function G(_0x1dbecf,_0x3a8b92,_0x4e6a23,_0x16ea80,_0x36b1bf){const _0x50e375=_0xf02626;return _0x2b29b6(_0x1dbecf[_0x50e375(0x1b6)],{'key':_0x3a8b92,...be(_0x1dbecf,_0x4e6a23,_0x36b1bf),..._0x16ea80},(Ee(_0x1dbecf,_0x4e6a23)[_0x50e375(0x146)]||[])[_0x50e375(0x181)]((_0x24911d,_0x4b43a2)=>G(_0x24911d,_0x3a8b92+'-'+_0x1dbecf[_0x50e375(0x1b6)]+'-'+_0x4b43a2,_0x4e6a23,void 0x0,_0x36b1bf)));}function be(_0x133a49,_0x300770,_0x292fe8){const _0x456b02=_0xf02626,_0x3266a8={..._0x133a49[_0x456b02(0x164)]};_0x292fe8!=null&&_0x292fe8['colorChannel1']&&_0x3266a8[_0x456b02(0x199)]==='colorChannel1'&&(_0x3266a8[_0x456b02(0x199)]=_0x292fe8[_0x456b02(0x1ad)]),_0x133a49[_0x456b02(0x1b6)]==='mask'&&_0x3266a8['id']&&(_0x3266a8['id']=_0x3266a8['id']+_0x300770[_0x456b02(0x17e)]),Object['entries'](_0x3266a8)['forEach'](([_0x51a95d,_0x41d3fc])=>{const _0xe87a3a=_0x456b02;_0x51a95d===_0xe87a3a(0x19b)&&typeof _0x41d3fc==_0xe87a3a(0x19a)&&(_0x3266a8[_0x51a95d]=_0x41d3fc[_0xe87a3a(0x162)](/url\(#(.*)\)/,_0xe87a3a(0x178)+_0x300770[_0xe87a3a(0x17e)]+')'));});const {defIds:_0x1f9156}=_0x300770;return!_0x1f9156||_0x1f9156[_0x456b02(0x193)]===0x0||(_0x133a49['tag']===_0x456b02(0x152)&&_0x3266a8[_0x456b02(0x171)]&&(_0x3266a8[_0x456b02(0x171)]=_0x3266a8[_0x456b02(0x171)]+_0x300770[_0x456b02(0x17e)]),Object[_0x456b02(0x139)](_0x3266a8)[_0x456b02(0x197)](([_0x4a9000,_0x5377c9])=>{const _0x32d52a=_0x456b02;typeof _0x5377c9==_0x32d52a(0x19a)&&(_0x3266a8[_0x4a9000]=_0x5377c9['replace'](/url\(#(.*)\)/,_0x32d52a(0x178)+_0x300770[_0x32d52a(0x17e)]+')'));})),_0x3266a8;}function Ee(_0x5a80d,_0x43d5cd){const _0x3107af=_0xf02626;var _0x3dcc55;const {defIds:_0x46967b}=_0x43d5cd;return!_0x46967b||_0x46967b[_0x3107af(0x193)]===0x0?_0x5a80d:_0x5a80d[_0x3107af(0x1b6)]===_0x3107af(0x18b)&&((_0x3dcc55=_0x5a80d[_0x3107af(0x146)])!=null&&_0x3dcc55['length'])?{..._0x5a80d,'children':_0x5a80d[_0x3107af(0x146)]['map'](_0x237538=>typeof _0x237538[_0x3107af(0x164)]['id']==_0x3107af(0x19a)&&_0x46967b&&_0x46967b['includes'](_0x237538[_0x3107af(0x164)]['id'])?{..._0x237538,'attrs':{..._0x237538[_0x3107af(0x164)],'id':_0x237538[_0x3107af(0x164)]['id']+_0x43d5cd[_0x3107af(0x17e)]}}:_0x237538)}:_0x5a80d;}function Oe(){const _0x1bf817=_0xf02626;return Math[_0x1bf817(0x1a9)]()[_0x1bf817(0x16c)](0x24)['substring'](0x2,0x8);}k[_0xf02626(0x140)]=_0xf02626(0x142);const we={'tag':_0xf02626(0x179),'attrs':{'xmlns':_0xf02626(0x148),'fill':_0xf02626(0x14a),'viewBox':_0xf02626(0x153),'width':_0xf02626(0x12a),'height':'1em'},'children':[{'tag':_0xf02626(0x128),'attrs':{'fill':_0xf02626(0x119),'d':_0xf02626(0x137)}},{'tag':'path','attrs':{'fill':_0xf02626(0x119),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0xf02626(0x10f)}}]},W=_0x50463f(function(_0x4e555a,_0x50af5d){const _0x20c472=_0xf02626;return _0x2b29b6(k,Object[_0x20c472(0x1ab)]({},_0x4e555a,{'id':_0x20c472(0x1a6),'ref':_0x50af5d,'icon':we}));});function _0x3d06(){const _0x14053c=['_collabSession','_handleOffline','Present\x20this\x20document','stopFollowing','_collabSessionService','sessionStatus$','defs','live-share.config','You\x27re\x20presenting\x20the\x20document','presenter','symbol','_startPresenting','idle','onStarting','length','_config','unsubscribe','_beIdle','forEach','_stopFollowing','fill','string','mask','defineProperty','stringify','get','getInitialStates','createInstance','sheet','getUnitId','615577PSTsWq','not-following','offline','live-share-icon','OPERATION','trim','random','_startLiveShareCoordinator','assign','LIVESHARE_OPERATION','colorChannel1','univer-size-4','_liveShareService','executeCommand','div','text','add','_status','You\x27re\x20not\x20following\x20the\x20presenter','tag','default','9930OggFyi','reverse','current','getLiveShareCoordinatorSync','PRESENTING','evenodd','event$','onCommandExecuted','UNIVER_SHEET','_handleOnline','_uiPartsService','_unitID','registerSharedOperation','dispose','_handleNewHost','currentColor','subscribe','OFFLINE','_reporters','set','_status$','UNIVER_UNKNOWN','_fetchOperations','74524wcwGef','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','dispose$','getCurrentTypeOfUnit$','16373324bTqYAQ','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','tryStartPresenting','1em','from','registerInitialStateReporter','pipe','ONLINE','LIVESHARE_NEW_HOST','params','status$','type','39RhzziQ','init','getConfig','_handleNewChangeSets','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','parse','entries','SAME_OPERATION_SHARE_INTERVAL','_injector','FOLLOWING','button','846610yaNAnk','4034360ORMdVM','displayName','7kOLEdu','UniverIcon','getOwnPropertyDescriptor','LIVESHARE_FETCH_OPERATIONS','send','children','has','http://www.w3.org/2000/svg','shouldShareOperation','none','_handleTerminate','getMemberID','NOT_FOLLOWING','presenting','following','getLiveShareCoordinator','Stop\x20presenting','use','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','pluginName','_commandDisposable','_commandService','end','14048ffhAMu','next','_init','startFollowing','_stopPresenting','then','NEW_CHANGESETS','find','LIVESHARE_TERMINATE','replace','operations','attrs','requireSession','getTypeOfUnitAdded$','override','_startFollowing','Stop\x20following','data','getStatus','toString','stopPresenting','_presenter','includes','onRendered','xlink:href','_configService','getTypeOfUnitDisposed$','_mountLiveShare','Start\x20following','clear','memberID','url(#$1','svg','_univerInstanceService','_entities','4608WzNYdl','complete','idSuffix','4mqiFwe','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','map','_sharedOperations','unitId','IDLE'];_0x3d06=function(){return _0x14053c;};return _0x3d06();}W['displayName']='LiveShareIcon';class L extends _0x5bdbec{constructor(){const _0x2ff16a=_0xf02626;super(...arguments),u(this,_0x2ff16a(0x182),new Set()),u(this,_0x2ff16a(0x11c),new Set());}[_0xf02626(0x116)](_0x35d38d){const _0x4d8fcb=_0xf02626;return this[_0x4d8fcb(0x182)][_0x4d8fcb(0x1b3)](_0x35d38d),_0x5dd282(()=>this['_sharedOperations']['delete'](_0x35d38d));}[_0xf02626(0x12c)](_0x11b68c){const _0x1121d6=_0xf02626;return this['_reporters'][_0x1121d6(0x1b3)](_0x11b68c),_0x5dd282(()=>this[_0x1121d6(0x11c)]['delete'](_0x11b68c));}[_0xf02626(0x149)](_0x204eb8){const _0xee7915=_0xf02626;return this[_0xee7915(0x182)]['has'](_0x204eb8);}[_0xf02626(0x19f)](_0x167c9b){const _0x53156c=_0xf02626;return Array[_0x53156c(0x12b)](this[_0x53156c(0x11c)])['map'](_0x479681=>_0x479681(_0x167c9b));}}var Ne=Object[_0xf02626(0x143)],Y=(_0x5b521b,_0x1bdfd9,_0xad5fcb,_0x17bf4a)=>{const _0x3beed3=_0xf02626;for(var _0x49c3d3=_0x17bf4a>0x1?void 0x0:_0x17bf4a?Ne(_0x1bdfd9,_0xad5fcb):_0x1bdfd9,_0x4a3bae=_0x5b521b[_0x3beed3(0x193)]-0x1,_0x43efd8;_0x4a3bae>=0x0;_0x4a3bae--)(_0x43efd8=_0x5b521b[_0x4a3bae])&&(_0x49c3d3=_0x43efd8(_0x49c3d3)||_0x49c3d3);return _0x49c3d3;},_=(_0x4a9e82,_0x27f1e2)=>(_0x14a2b2,_0x528b69)=>_0x27f1e2(_0x14a2b2,_0x528b69,_0x4a9e82);let S=class extends _0x443063{constructor(_0xc53126,_0x483ead,_0x235aff){const _0x4a8dd8=_0xf02626;super(),u(this,_0x4a8dd8(0x17b),new Map()),(this[_0x4a8dd8(0x17a)]=_0xc53126,this['_injector']=_0x483ead,this[_0x4a8dd8(0x189)]=_0x235aff,this[_0x4a8dd8(0x15b)]());}async[_0xf02626(0x150)](_0x3208e4){const _0x51fb65=_0xf02626;return this[_0x51fb65(0x17b)][_0x51fb65(0x147)](_0x3208e4)||await this[_0x51fb65(0x1aa)](_0x3208e4),this[_0x51fb65(0x17b)][_0x51fb65(0x19e)](_0x3208e4);}[_0xf02626(0x10d)](_0x1939e2){const _0x19b3e0=_0xf02626;var _0x46ce0c;return(_0x46ce0c=this['_entities'][_0x19b3e0(0x19e)](_0x1939e2))!=null?_0x46ce0c:null;}[_0xf02626(0x15b)](){const _0x4d3ace=_0xf02626;this['_univerInstanceService'][_0x4d3ace(0x166)](_0x57e1a6[_0x4d3ace(0x112)])[_0x4d3ace(0x12d)](_0x461f78(this[_0x4d3ace(0x124)]))[_0x4d3ace(0x11a)](async _0xbd6c95=>{const _0x4039dc=_0x4d3ace,_0x561176=_0xbd6c95[_0x4039dc(0x1a2)]();this[_0x4039dc(0x17b)][_0x4039dc(0x147)](_0x561176)||this[_0x4039dc(0x1aa)](_0x561176);}),this[_0x4d3ace(0x17a)][_0x4d3ace(0x173)](_0x57e1a6['UNIVER_SHEET'])[_0x4d3ace(0x12d)](_0x461f78(this['dispose$']))[_0x4d3ace(0x11a)](_0x1ff344=>{const _0x314ae9=_0x4d3ace,_0x5b2922=_0x1ff344[_0x314ae9(0x1a2)](),_0x217dca=this[_0x314ae9(0x17b)][_0x314ae9(0x19e)](_0x5b2922);_0x217dca==null||_0x217dca['dispose']();});}async[_0xf02626(0x1aa)](_0x133e6b){const _0x43a699=_0xf02626,_0x54f095=await this[_0x43a699(0x189)][_0x43a699(0x165)](_0x133e6b),_0xa92cf6=this[_0x43a699(0x13b)][_0x43a699(0x1a0)](N,_0x133e6b,_0x54f095);return _0xa92cf6['init'](),this[_0x43a699(0x17b)]['set'](_0x133e6b,_0xa92cf6),_0xa92cf6;}};S=Y([_(0x0,_0x246214),_(0x1,_0x13dd86(_0x5b65f0)),_(0x2,_0x13dd86(_0x374a90))],S);var c=(_0x14c111=>(_0x14c111[_0xf02626(0x11b)]=_0xf02626(0x1a5),_0x14c111[_0xf02626(0x184)]='idle',_0x14c111[_0xf02626(0x13c)]=_0xf02626(0x14f),_0x14c111['NOT_FOLLOWING']=_0xf02626(0x1a4),_0x14c111[_0xf02626(0x10e)]=_0xf02626(0x14e),_0x14c111))(c||{});const Ce=_0xf02626(0x13a),De=0xc8;let N=class extends _0x443063{constructor(_0x3fa637,_0x3ddbee,_0x58c38e,_0x5192fc,_0x5b802d){const _0x2cc365=_0xf02626;super(),u(this,_0x2cc365(0x11e),new _0x26b77b('idle')),u(this,_0x2cc365(0x131),this[_0x2cc365(0x11e)]['asObservable']()),u(this,_0x2cc365(0x15b),!0x1),u(this,_0x2cc365(0x156),null),u(this,_0x2cc365(0x16e),null),(this[_0x2cc365(0x115)]=_0x3fa637,this[_0x2cc365(0x185)]=_0x3ddbee,this[_0x2cc365(0x172)]=_0x58c38e,this[_0x2cc365(0x1af)]=_0x5192fc,this[_0x2cc365(0x157)]=_0x5b802d);}get[_0xf02626(0x1b4)](){const _0x5820f9=_0xf02626;return this[_0x5820f9(0x11e)]['getValue']();}[_0xf02626(0x117)](){const _0x590d48=_0xf02626;var _0x5baa3b;(_0x5baa3b=this[_0x590d48(0x156)])==null||_0x5baa3b[_0x590d48(0x117)](),this[_0x590d48(0x11e)][_0x590d48(0x15a)](_0x590d48(0x191)),this[_0x590d48(0x11e)][_0x590d48(0x17d)]();}[_0xf02626(0x16b)](){const _0x107eb2=_0xf02626;return this[_0x107eb2(0x1b4)];}[_0xf02626(0x134)](){const _0x3187b9=_0xf02626;this[_0x3187b9(0x15b)]||(this[_0x3187b9(0x15b)]=!0x0,this['_collabSession'][_0x3187b9(0x18a)][_0x3187b9(0x12d)](_0x461f78(this[_0x3187b9(0x124)]))[_0x3187b9(0x11a)](_0xbf4875=>{const _0x44cd72=_0x3187b9;switch(_0xbf4875){case _0x1c448e[_0x44cd72(0x11b)]:this[_0x44cd72(0x186)]();break;case _0x1c448e[_0x44cd72(0x12e)]:this[_0x44cd72(0x113)]();break;}}),this[_0x3187b9(0x185)][_0x3187b9(0x110)]['pipe'](_0x461f78(this['dispose$']))['subscribe'](_0x236c21=>{const _0x583246=_0x3187b9,{eventID:_0x2c7084}=_0x236c21;switch(_0x2c7084){case _0x41b597[_0x583246(0x12f)]:this[_0x583246(0x118)](_0x236c21);break;case _0x41b597['LIVESHARE_OPERATION']:this['_handleOperation'](_0x236c21);break;case _0x41b597[_0x583246(0x161)]:this['_handleTerminate']();break;case _0x41b597[_0x583246(0x15f)]:this[_0x583246(0x136)](_0x236c21);break;}}));}[_0xf02626(0x129)](){const _0x4b6c31=_0xf02626;this[_0x4b6c31(0x185)]['send']({'eventID':_0x41b597['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4b6c31(0x115)],'userID':this[_0x4b6c31(0x185)]['getMemberID']()}},this[_0x4b6c31(0x115)]);}[_0xf02626(0x16d)](){const _0x4d942e=_0xf02626;this[_0x4d942e(0x1b4)]===_0x4d942e(0x14e)&&(this[_0x4d942e(0x11e)][_0x4d942e(0x15a)](_0x4d942e(0x191)),this[_0x4d942e(0x185)][_0x4d942e(0x145)]({'eventID':_0x41b597[_0x4d942e(0x161)],'data':{'unitID':this[_0x4d942e(0x115)]}},this[_0x4d942e(0x115)]));}[_0xf02626(0x15c)](){const _0x496c3e=_0xf02626;this[_0x496c3e(0x1b4)]==='not-following'&&(this[_0x496c3e(0x11e)][_0x496c3e(0x15a)](_0x496c3e(0x14f)),this[_0x496c3e(0x168)]());}[_0xf02626(0x188)](){const _0x5e5cea=_0xf02626;this['_status']===_0x5e5cea(0x14f)&&this[_0x5e5cea(0x198)]();}[_0xf02626(0x118)](_0x357d9d){const _0x568dfc=_0xf02626,{presenter:_0x3fa8fb}=_0x357d9d['data'],_0x3ca1e4=this['_collabSession'][_0x568dfc(0x14c)]();this[_0x568dfc(0x16e)]=_0x3fa8fb,_0x3fa8fb===_0x3ca1e4?(this[_0x568dfc(0x198)](),this[_0x568dfc(0x190)]()):this[_0x568dfc(0x1b4)]!==_0x568dfc(0x1a4)&&(this[_0x568dfc(0x15d)](),this[_0x568dfc(0x168)]());}[_0xf02626(0x120)](){const _0x25c34e=_0xf02626,_0x2578f7={'eventID':_0x41b597[_0x25c34e(0x144)]};this['_collabSession']['send'](_0x2578f7,this[_0x25c34e(0x115)]);}[_0xf02626(0x14b)](){const _0x345f75=_0xf02626;this[_0x345f75(0x16e)]=null,this[_0x345f75(0x1b4)]!=='presenting'&&this[_0x345f75(0x196)]();}['_handleNewChangeSets'](_0x46197e){const _0x148a21=_0xf02626;if(this[_0x148a21(0x1b4)]===_0x148a21(0x14f)&&this[_0x148a21(0x16e)]===_0x46197e[_0x148a21(0x16a)][_0x148a21(0x177)]){const _0x5b050f=_0x1061ca(_0x46197e[_0x148a21(0x16a)])['mutations'][_0x148a21(0x1b9)]()[_0x148a21(0x160)](_0x3cf610=>_0x3cf610['id']===_0x2abf81['id']);if(_0x5b050f){const _0x69a22d=_0x5b050f[_0x148a21(0x130)][_0x148a21(0x183)],_0xd951ea=_0x5b050f[_0x148a21(0x130)][_0x148a21(0x1a1)]['id'];setTimeout(()=>{const _0x5b0a20=_0x148a21;this[_0x5b0a20(0x157)][_0x5b0a20(0x1b0)](_0x218042['id'],{'unitId':_0x69a22d,'subUnitId':_0xd951ea},{'fromCollab':!0x0});});}}}[_0xf02626(0x190)](){const _0x3f8a70=_0xf02626;this[_0x3f8a70(0x11e)][_0x3f8a70(0x15a)]('presenting');const _0x373ffc=new Map(),_0x2bd11f=this['_commandDisposable']=new _0xd84b84();_0x2bd11f[_0x3f8a70(0x1b3)](_0x5dd282(()=>{const _0x544f17=_0x3f8a70;_0x373ffc[_0x544f17(0x197)](_0x293094=>_0x293094[_0x544f17(0x17d)]()),_0x373ffc[_0x544f17(0x176)]();})),_0x2bd11f[_0x3f8a70(0x1b3)](this['_commandService'][_0x3f8a70(0x111)](_0x2ca7a7=>{const _0xde89c=_0x3f8a70;var _0x1d950c;if(_0x2ca7a7[_0xde89c(0x132)]!==_0x13511b[_0xde89c(0x1a7)]||!this[_0xde89c(0x1af)][_0xde89c(0x149)](_0x2ca7a7['id']))return;const {id:_0x872d9c}=_0x2ca7a7;let _0x3f240f;_0x373ffc[_0xde89c(0x147)](_0x872d9c)?_0x3f240f=_0x373ffc[_0xde89c(0x19e)](_0x872d9c):(_0x3f240f=new _0x5a754c(),_0x373ffc[_0xde89c(0x11d)](_0x872d9c,_0x3f240f),_0x3f240f[_0xde89c(0x12d)](_0x471303((_0x1d950c=this[_0xde89c(0x172)][_0xde89c(0x135)](Ce))!=null?_0x1d950c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xde89c(0x11a)](_0x19d28c=>{const _0x4e2489=_0xde89c;this[_0x4e2489(0x185)][_0x4e2489(0x145)]({'eventID':_0x41b597[_0x4e2489(0x1ac)],'data':{'unitID':this[_0x4e2489(0x115)],'operations':{[_0x19d28c['id']]:{'id':_0x19d28c['id'],'params':JSON['stringify'](_0x19d28c['params'])}}}},this[_0x4e2489(0x115)]);})),_0x3f240f['next'](_0x2ca7a7);})),this['_liveShareService']['getInitialStates'](this[_0x3f8a70(0x115)])['forEach'](_0x507eca=>this[_0x3f8a70(0x185)][_0x3f8a70(0x145)]({'eventID':_0x41b597['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3f8a70(0x115)],'operations':{[_0x507eca['id']]:{'id':_0x507eca['id'],'params':JSON[_0x3f8a70(0x19d)](_0x507eca[_0x3f8a70(0x130)])}}}},this['_unitID']));}[_0xf02626(0x15d)](){const _0x3bdc00=_0xf02626;var _0x353052;this[_0x3bdc00(0x11e)][_0x3bdc00(0x15a)](_0x3bdc00(0x191)),(_0x353052=this['_commandDisposable'])==null||_0x353052['dispose'](),this[_0x3bdc00(0x156)]=null;}[_0xf02626(0x168)](){const _0x50423e=_0xf02626;var _0x22875c;(_0x22875c=this[_0x50423e(0x156)])==null||_0x22875c[_0x50423e(0x117)](),this[_0x50423e(0x11e)][_0x50423e(0x15a)](_0x50423e(0x14f));}['_beIdle'](){const _0x2326f7=_0xf02626;var _0x4d3b8f;this[_0x2326f7(0x11e)][_0x2326f7(0x15a)](_0x2326f7(0x191)),(_0x4d3b8f=this[_0x2326f7(0x156)])==null||_0x4d3b8f[_0x2326f7(0x117)](),this[_0x2326f7(0x156)]=null;}[_0xf02626(0x198)](){const _0x5471e2=_0xf02626;var _0x43265e;this[_0x5471e2(0x11e)]['next'](_0x5471e2(0x1a4)),(_0x43265e=this[_0x5471e2(0x156)])==null||_0x43265e[_0x5471e2(0x117)]();}['_handleOperation'](_0x224d63){const _0x5a8190=_0xf02626;if([_0x5a8190(0x14e),'not-following','offline'][_0x5a8190(0x16f)](this[_0x5a8190(0x1b4)])||!_0x224d63[_0x5a8190(0x16a)][_0x5a8190(0x18e)]||_0x224d63[_0x5a8190(0x16a)]['presenter']===this[_0x5a8190(0x185)][_0x5a8190(0x14c)]())return;this['_status']===_0x5a8190(0x191)&&this[_0x5a8190(0x168)]();const _0x5ed6e6=_0x224d63[_0x5a8190(0x16a)][_0x5a8190(0x163)];Object['values'](_0x5ed6e6)[_0x5a8190(0x197)](_0x31cd1e=>{const _0x57204c=_0x5a8190;this[_0x57204c(0x157)][_0x57204c(0x1b0)](_0x31cd1e['id'],_0x31cd1e[_0x57204c(0x130)]?JSON[_0x57204c(0x138)](_0x31cd1e[_0x57204c(0x130)]):null,{'fromCollab':!0x0});});}[_0xf02626(0x186)](){const _0x3520bb=_0xf02626;var _0x14ca7b;this[_0x3520bb(0x11e)][_0x3520bb(0x15a)](_0x3520bb(0x1a5)),(_0x14ca7b=this['_commandDisposable'])==null||_0x14ca7b['dispose']();}[_0xf02626(0x113)](){const _0x59b3d2=_0xf02626;this[_0x59b3d2(0x11e)][_0x59b3d2(0x15a)]('idle'),this[_0x59b3d2(0x120)]();}};N=Y([_(0x2,_0x5c1fc8),_(0x3,_0x13dd86(L)),_(0x4,_0x1549da)],N);function Le(){const _0x1f2369=_0xf02626,_0x569ebc=_0x4e3e8c(S),_0x5ee06f=_0x4e3e8c(_0x246214),_0x420c04=_0x262950(()=>_0x5ee06f[_0x1f2369(0x125)](_0x57e1a6[_0x1f2369(0x112)]),void 0x0,!0x1,[]),[_0x2eabc6,_0x5c84c4]=_0x430a47(null),[_0x238d1c,_0x224e16]=_0x430a47(c['IDLE']),_0x582f08=_0x922483(null);return _0x4a4b6f(()=>(_0x420c04&&_0x569ebc[_0x1f2369(0x150)](_0x420c04[_0x1f2369(0x1a2)]())[_0x1f2369(0x15e)](_0x35b1a7=>{const _0x18398d=_0x1f2369;_0x5c84c4(_0x35b1a7),_0x582f08[_0x18398d(0x1ba)]=_0x35b1a7[_0x18398d(0x131)]['subscribe'](_0x59d285=>{_0x224e16(_0x59d285);});}),()=>{const _0x1c2cf3=_0x1f2369;var _0x291bd3;(_0x291bd3=_0x582f08['current'])==null||_0x291bd3[_0x1c2cf3(0x195)](),_0x582f08[_0x1c2cf3(0x1ba)]=null;}),[_0x420c04,_0x569ebc]),_0x2eabc6?_0x3f1572(_0x49c23a,{'align':_0x1f2369(0x158),'disabled':_0x238d1c===c[_0x1f2369(0x11b)],'className':_0x1f2369(0x180),'overlay':_0x3f1572(Re,{'status':_0x238d1c,'coordinator':_0x2eabc6}),'children':_0x3f1572(_0x1f2369(0x13d),{'className':_0x37a6a0(_0x1f2369(0x127),{'univer-cursor-not-allowed':_0x238d1c===c[_0x1f2369(0x11b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x238d1c!==c[_0x1f2369(0x11b)]}),'type':_0x1f2369(0x13d),'children':_0x3f1572(W,{'className':_0x1f2369(0x1ae)})})}):null;}function Re(_0x25b16b){const _0x2954de=_0xf02626,{status:_0x12e09e,coordinator:_0x3cfffd}=_0x25b16b;switch(_0x12e09e){case c[_0x2954de(0x184)]:return _0x3f1572($e,{'coordinator':_0x3cfffd});case c['FOLLOWING']:return _0x3f1572(xe,{'coordinator':_0x3cfffd});case c[_0x2954de(0x14d)]:return _0x3f1572(Pe,{'coordinator':_0x3cfffd});case c['OFFLINE']:return _0x3f1572(Te,{});case c['PRESENTING']:return _0x3f1572(Ae,{'coordinator':_0x3cfffd});default:return null;}}function $e(_0x28b641){const _0x17d842=_0xf02626,{coordinator:_0x3ef61c}=_0x28b641;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572('div',{'className':_0x17d842(0x122),'children':_0x17d842(0x187)}),_0x3f1572(_0x1555cd,{'onClick':()=>_0x3ef61c['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x1db4e6){const _0x9aeece=_0xf02626,{coordinator:_0x21561b}=_0x1db4e6;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x9aeece(0x1b1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x3f1572(_0x1555cd,{'onClick':()=>_0x21561b[_0x9aeece(0x188)](),'children':_0x9aeece(0x169)})]});}function Pe(_0x644145){const _0x49b868=_0xf02626,{coordinator:_0x5d21a9}=_0x644145;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x49b868(0x1b1),{'className':_0x49b868(0x122),'children':_0x49b868(0x1b5)}),_0x3f1572(_0x1555cd,{'variant':_0x49b868(0x1b2),'onClick':()=>_0x5d21a9[_0x49b868(0x15c)](),'children':_0x49b868(0x175)})]});}function Ae(_0x4eda88){const _0x7481f5=_0xf02626,{coordinator:_0x574693}=_0x4eda88;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x7481f5(0x1b1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7481f5(0x18d)}),_0x3f1572(_0x1555cd,{'variant':_0x7481f5(0x1b7),'onClick':()=>_0x574693[_0x7481f5(0x16d)](),'children':_0x7481f5(0x151)})]});}function Te(){return _0x3f1572(_0x561b68,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0xf02626(0x143)],He=(_0x96b58c,_0x144ee2,_0x507d0b,_0x222271)=>{const _0xefecaf=_0xf02626;for(var _0x13fcad=_0x222271>0x1?void 0x0:_0x222271?Fe(_0x144ee2,_0x507d0b):_0x144ee2,_0x42d52c=_0x96b58c[_0xefecaf(0x193)]-0x1,_0x5f0019;_0x42d52c>=0x0;_0x42d52c--)(_0x5f0019=_0x96b58c[_0x42d52c])&&(_0x13fcad=_0x5f0019(_0x13fcad)||_0x13fcad);return _0x13fcad;},A=(_0x5642f2,_0x3d613d)=>(_0x31fffb,_0x4e944a)=>_0x3d613d(_0x31fffb,_0x4e944a,_0x5642f2);let m=class extends _0x5bdbec{constructor(_0x38c48e,_0xcedf1f){const _0x3f32ff=_0xf02626;super(),this[_0x3f32ff(0x13b)]=_0x38c48e,this[_0x3f32ff(0x114)]=_0xcedf1f,this[_0x3f32ff(0x174)]();}[_0xf02626(0x174)](){const _0x55dd1f=_0xf02626;this[_0x55dd1f(0x123)](this[_0x55dd1f(0x114)]['registerComponent'](_0x50c32d['HEADER_MENU'],()=>_0x11eeaf(Le,this[_0x55dd1f(0x13b)])));}};m=He([A(0x0,_0x13dd86(_0x5b65f0)),A(0x1,_0x28a6d1)],m);const ye=_0xf02626(0x18c),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x535922,_0x1e5212,_0x4e0c0d,_0x470e7d)=>{const _0x607782=_0xf02626;for(var _0x2f847e=_0x470e7d>0x1?void 0x0:_0x470e7d?Ue(_0x1e5212,_0x4e0c0d):_0x1e5212,_0x3a3d52=_0x535922[_0x607782(0x193)]-0x1,_0x4f8e2f;_0x3a3d52>=0x0;_0x3a3d52--)(_0x4f8e2f=_0x535922[_0x3a3d52])&&(_0x2f847e=_0x4f8e2f(_0x2f847e)||_0x2f847e);return _0x2f847e;},je=(_0x1004d2,_0x4c201b)=>(_0x376686,_0x2034c4)=>_0x4c201b(_0x376686,_0x2034c4,_0x1004d2);let I=class extends _0x5bdbec{constructor(_0x851793){const _0x3619bd=_0xf02626;super(),this[_0x3619bd(0x1af)]=_0x851793,this['_init']();}[_0xf02626(0x15b)](){[_0x5b6fb4['id'],_0x54eb58['id'],_0x218042['id']]['forEach'](_0x1c96f7=>{const _0x47a757=_0x49a3;this[_0x47a757(0x123)](this[_0x47a757(0x1af)][_0x47a757(0x116)](_0x1c96f7));});}};I=Ve([je(0x0,_0x13dd86(L))],I);var Me=Object[_0xf02626(0x19c)],ke=Object[_0xf02626(0x143)],Ge=(_0x48fbcc,_0x131495,_0x50e9bb)=>_0x131495 in _0x48fbcc?Me(_0x48fbcc,_0x131495,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50e9bb}):_0x48fbcc[_0x131495]=_0x50e9bb,We=(_0x5e6c7c,_0x3fd39f,_0x5f3d48,_0x38183a)=>{const _0x170050=_0xf02626;for(var _0x2f772b=_0x38183a>0x1?void 0x0:_0x38183a?ke(_0x3fd39f,_0x5f3d48):_0x3fd39f,_0x1e7745=_0x5e6c7c[_0x170050(0x193)]-0x1,_0x293523;_0x1e7745>=0x0;_0x1e7745--)(_0x293523=_0x5e6c7c[_0x1e7745])&&(_0x2f772b=_0x293523(_0x2f772b)||_0x2f772b);return _0x2f772b;},F=(_0x218a51,_0x1a8e03)=>(_0x22d847,_0x242c8a)=>_0x1a8e03(_0x22d847,_0x242c8a,_0x218a51),B=(_0x181145,_0x5f28e6,_0x38ec45)=>Ge(_0x181145,typeof _0x5f28e6!=_0xf02626(0x18f)?_0x5f28e6+'':_0x5f28e6,_0x38ec45);function _0x49a3(_0x311e8d,_0x1d2c9f){_0x311e8d=_0x311e8d-0x10d;const _0x3d0625=_0x3d06();let _0x49a302=_0x3d0625[_0x311e8d];return _0x49a302;}const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x586d52{constructor(_0x9e3f14=T,_0x24bc5f,_0x349d0d){const _0x5d3475=_0xf02626;super(),this[_0x5d3475(0x194)]=_0x9e3f14,this[_0x5d3475(0x13b)]=_0x24bc5f,this[_0x5d3475(0x172)]=_0x349d0d;const {..._0x205667}=_0x12b34e({},T,this[_0x5d3475(0x194)]);this[_0x5d3475(0x172)]['setConfig'](ye,_0x205667);}[_0xf02626(0x192)](){const _0x417a59=_0xf02626;_0x2186bd(this[_0x417a59(0x13b)],_0x29be9b([[L],[S],[I],[m]],this[_0x417a59(0x194)][_0x417a59(0x167)])),_0x31d787(this['_injector'],[[I]]);}[_0xf02626(0x170)](){const _0x2f8e46=_0xf02626;_0x31d787(this[_0x2f8e46(0x13b)],[[m]]);}};B(b,_0xf02626(0x132),_0x57e1a6[_0xf02626(0x11f)]),B(b,_0xf02626(0x155),Ye),b=We([_0x3a182e(_0x400e7c),F(0x1,_0x13dd86(_0x5b65f0)),F(0x2,_0x5c1fc8)],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
|
-
|
|
1
|
+
(function(_0x4e68d7,_0x1d7ce3){const _0x5235b2=_0x4b0f,_0x4de7b4=_0x4e68d7();while(!![]){try{const _0x308876=parseInt(_0x5235b2(0x187))/0x1+-parseInt(_0x5235b2(0x197))/0x2*(-parseInt(_0x5235b2(0x1ac))/0x3)+-parseInt(_0x5235b2(0x19a))/0x4*(parseInt(_0x5235b2(0x188))/0x5)+parseInt(_0x5235b2(0x1a2))/0x6*(parseInt(_0x5235b2(0x18e))/0x7)+-parseInt(_0x5235b2(0x19c))/0x8+-parseInt(_0x5235b2(0x199))/0x9*(-parseInt(_0x5235b2(0x189))/0xa)+-parseInt(_0x5235b2(0x194))/0xb;if(_0x308876===_0x1d7ce3)break;else _0x4de7b4['push'](_0x4de7b4['shift']());}catch(_0x3adff7){_0x4de7b4['push'](_0x4de7b4['shift']());}}}(_0x2fb3,0x2cc58),function(_0x20d0a9,_0x3abdd6){const _0x6ac788=_0x4b0f;typeof exports==_0x6ac788(0x191)&&typeof module<'u'?_0x3abdd6(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x6ac788(0x17f)]?define(['@univerjs-pro/live-share',_0x6ac788(0x186),_0x6ac788(0x1a3),_0x6ac788(0x1ab),_0x6ac788(0x1b1),_0x6ac788(0x195)],_0x3abdd6):(_0x20d0a9=typeof globalThis<'u'?globalThis:_0x20d0a9||self,_0x3abdd6(_0x20d0a9['UniverProLiveShare'],_0x20d0a9[_0x6ac788(0x1a1)],_0x20d0a9[_0x6ac788(0x185)],_0x20d0a9[_0x6ac788(0x183)],_0x20d0a9['UniverSheetsFacade'],_0x20d0a9[_0x6ac788(0x1aa)]));}(this,function(_0x3ae920,_0x52cafe,_0x542605,_0x398005,_0x27c37e,_0x5afb90){'use strict';const _0x527b22=_0x4b0f;class _0x286c01 extends _0x27c37e[_0x527b22(0x19e)]{[_0x527b22(0x19f)](_0x6348b8,_0x3e8b08,_0x14b9c5,_0x50edb9,_0x46050d){const _0xf7fe0d=_0x527b22,_0x4fe106=_0x6348b8['get'](_0x3ae920['LiveShareController']),_0x3987ff=_0x6348b8['get'](_0x52cafe[_0xf7fe0d(0x1a0)]),_0x425d49=_0x3e8b08[_0xf7fe0d(0x180)](),_0x526790=_0x3e8b08[_0xf7fe0d(0x18c)](),_0x1e130c=_0x4fe106[_0xf7fe0d(0x1a5)](_0x425d49);(_0x1e130c==null?void 0x0:_0x1e130c[_0xf7fe0d(0x184)]())!==_0x3ae920[_0xf7fe0d(0x1af)]['PRESENTING']||(_0x14b9c5[_0xf7fe0d(0x18d)]()!==_0x526790[_0xf7fe0d(0x18d)]()&&this[_0xf7fe0d(0x192)][_0xf7fe0d(0x1a9)](_0x542605['SetWorksheetActiveOperation']['id'],{'unitId':_0x425d49,'subUnitId':_0x14b9c5[_0xf7fe0d(0x18d)]()}),!_0x3987ff['getRenderById'](_0x425d49))||_0x46050d[_0xf7fe0d(0x1a7)](_0x398005[_0xf7fe0d(0x19d)]['id'],{'unitId':_0x3e8b08[_0xf7fe0d(0x180)](),'sheetId':_0x14b9c5[_0xf7fe0d(0x18d)](),'sheetViewStartRow':_0x50edb9[_0xf7fe0d(0x181)],'sheetViewStartColumn':_0x50edb9['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x27c37e[_0x527b22(0x19e)][_0x527b22(0x19b)](_0x286c01);class _0x4f2682 extends _0x5afb90[_0x527b22(0x17e)]{[_0x527b22(0x18a)](){const _0x5b57c4=_0x527b22;var _0x4ab49a,_0x1d4f3b;const _0x488d74=this['_injector']['get'](_0x3ae920[_0x5b57c4(0x1a4)]),_0x2589b7=(_0x4ab49a=this[_0x5b57c4(0x193)]())==null?void 0x0:_0x4ab49a[_0x5b57c4(0x196)]();if(!_0x2589b7)throw new Error(_0x5b57c4(0x198));const _0x3994f2=_0x488d74[_0x5b57c4(0x1a5)](_0x2589b7);return(_0x1d4f3b=_0x3994f2==null?void 0x0:_0x3994f2['getStatus']())!=null?_0x1d4f3b:_0x3ae920[_0x5b57c4(0x1af)]['IDLE'];}['startFollowing'](){const _0x136b9e=_0x527b22;var _0x1f8a65;const _0x1b3c3e=this[_0x136b9e(0x1ad)]['get'](_0x3ae920[_0x136b9e(0x1a4)]),_0x2b823d=(_0x1f8a65=this[_0x136b9e(0x193)]())==null?void 0x0:_0x1f8a65[_0x136b9e(0x196)]();if(!_0x2b823d)throw new Error(_0x136b9e(0x198));const _0x39687e=_0x1b3c3e[_0x136b9e(0x1a5)](_0x2b823d);if(!_0x39687e)throw new Error(_0x136b9e(0x1b0));_0x39687e['startFollowing']();}[_0x527b22(0x190)](){const _0x1f44ee=_0x527b22;var _0x1fd988;const _0x26856e=this[_0x1f44ee(0x1ad)][_0x1f44ee(0x1a6)](_0x3ae920[_0x1f44ee(0x1a4)]),_0x3b6249=(_0x1fd988=this[_0x1f44ee(0x193)]())==null?void 0x0:_0x1fd988[_0x1f44ee(0x196)]();if(!_0x3b6249)throw new Error('No\x20active\x20workbook\x20found.');const _0x3044a1=_0x26856e[_0x1f44ee(0x1a5)](_0x3b6249);if(!_0x3044a1)throw new Error(_0x1f44ee(0x1b0));_0x3044a1['stopFollowing']();}[_0x527b22(0x1a8)](){const _0x4172c4=_0x527b22;var _0x43133d;const _0x545f38=this[_0x4172c4(0x1ad)][_0x4172c4(0x1a6)](_0x3ae920['LiveShareController']),_0x11a3fc=(_0x43133d=this[_0x4172c4(0x193)]())==null?void 0x0:_0x43133d[_0x4172c4(0x196)]();if(!_0x11a3fc)throw new Error(_0x4172c4(0x198));const _0xc9e9ad=_0x545f38[_0x4172c4(0x1a5)](_0x11a3fc);if(!_0xc9e9ad)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xc9e9ad[_0x4172c4(0x1ae)]();}['stopPresenting'](){const _0x3dc44c=_0x527b22;var _0x1c7d91;const _0x1e18a=this[_0x3dc44c(0x1ad)][_0x3dc44c(0x1a6)](_0x3ae920[_0x3dc44c(0x1a4)]),_0x5b69a3=(_0x1c7d91=this[_0x3dc44c(0x193)]())==null?void 0x0:_0x1c7d91[_0x3dc44c(0x196)]();if(!_0x5b69a3)throw new Error(_0x3dc44c(0x198));const _0x59c734=_0x1e18a[_0x3dc44c(0x1a5)](_0x5b69a3);if(!_0x59c734)throw new Error(_0x3dc44c(0x1b0));_0x59c734[_0x3dc44c(0x18b)]();}}_0x5afb90[_0x527b22(0x17e)][_0x527b22(0x19b)](_0x4f2682);class _0xe0573e extends _0x5afb90[_0x527b22(0x182)]{get[_0x527b22(0x18f)](){const _0x17d022=_0x527b22;return _0x3ae920[_0x17d022(0x1af)];}}_0x5afb90[_0x527b22(0x182)]['extend'](_0xe0573e);}));function _0x4b0f(_0x4a8694,_0x399a5d){_0x4a8694=_0x4a8694-0x17e;const _0x2fb352=_0x2fb3();let _0x4b0f5f=_0x2fb352[_0x4a8694];return _0x4b0f5f;}function _0x2fb3(){const _0xcb8973=['@univerjs/sheets-ui','18kDJQxm','_injector','tryStartPresenting','LiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/sheets/facade','FUniver','amd','getUnitId','startRow','FEnum','UniverSheetsUi','getStatus','UniverSheets','@univerjs/engine-render','302534uXTvrB','676030uSkcSM','160xBypOu','getLiveShareStatus','stopPresenting','getActiveSheet','getSheetId','3353rIrwOS','LiveShareStatusEnum','stopFollowing','object','_commandService','getActiveWorkbook','3785639dqZgRL','@univerjs/core/facade','getId','116452jmSWEu','No\x20active\x20workbook\x20found.','22725lYUsjY','4wPGFYR','extend','1466480WLmcJs','SetScrollOperation','FRange','_initialize','IRenderManagerService','UniverEngineRender','1926PblFOd','@univerjs/sheets','LiveShareController','getLiveShareCoordinatorSync','get','syncExecuteCommand','startPresenting','executeCommand','UniverCoreFacade'];_0x2fb3=function(){return _0xcb8973;};return _0x2fb3();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2fd4(){const _0x53532b=['function','length','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverInstanceType','live-share.config','displayName','UniverIcon','UNIVER_SHEET','path','_reporters','Disposable','children','div','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','rxjs','29117mExzwn','find','IUIPartsService','_stopPresenting','operators','unsubscribe','idSuffix','0\x200\x2017\x2017','useObservable','send','_handleOperation','get','_status$','OFFLINE','LiveShareCoordinator','getMemberID','colorChannel1','_sharedOperations','disposeWithMe','url(#$1','_handleOffline','trim','You\x27re\x20presenting\x20the\x20document','react','reverse','registerSharedOperation','forwardRef','_handleNewChangeSets','Start\x20following','Start','toDisposable','Injector','SAME_OPERATION_SHARE_INTERVAL','presenter','_startPresenting','4440884Rlhyjv','forEach','type','next','LiveShareController','UNIVER_UNKNOWN','_configService','LIVESHARE_OPERATION','currentColor','getTypeOfUnitAdded$','jsxs','UniverProCollaborationClient','idle','createElement','PRESENTING','mask','fill','getOwnPropertyDescriptor','substring','6069760QexWPt','CollaborationSessionService','@univerjs-pro/collaboration-client','getConfig','CollaborationEvent','UNIVER_LIVE_SHARE_PLUGIN','LiveShareService','takeUntil','stringify','getValue','connectInjector','Stop\x20following','getUnitId','getLiveShareCoordinator','_uiPartsService','toStringTag','data','UniverUi','has','map','useRef','UniverSheetsUi','values','LIVESHARE_FETCH_OPERATIONS','following','defineProperty','SetZoomRatioOperation','rxjs/operators','executeCommand','_status','DesktopLiveShareController','_fetchOperations','UniverDesign','You\x27are\x20offline.','onRendered','4370049trPNPf','@univerjs/design','getInitialStates','useDependency','dispose','React','SetWorksheetActiveOperation','_config','requireSession','offline','amd','touchDependencies','sheet','presenting','includes','getLiveShareCoordinatorSync','then','attrs','_collabSessionService','assign','Inject','object','InsertSheetMutation','You\x27re\x20not\x20following\x20the\x20presenter','_startLiveShareCoordinator','shouldShareOperation','evenodd','@univerjs/ui','delete','_collabSession','UniverProCollaboration','_handleNewHost','operations','_startFollowing','live-share-icon','6741102mUSvop','3614520OZInHm','Present\x20this\x20document','complete','clsx','tryStartPresenting','override','current','parseProtocolChangeset','merge','string','defs','Fragment','BehaviorSubject','_stopFollowing','IUniverInstanceService','_presenter','use','params','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','dispose$','FOLLOWING','add','useState','clear','_injector','_univerInstanceService','pluginName','_handleTerminate','exports','jsx','UniverCollaborationClientPlugin','set','init','pipe','_liveShareService','NOT_FOLLOWING','default','SessionStatus','random','subscribe','_commandDisposable','LiveShare','LiveShareIcon','univer-size-4','createInstance','asObservable','_entities','status$','_init','_beIdle','181212WPHlOE','replace','xlink:href','UniverCore','useEffect','text','LIVESHARE_TERMINATE','1em','throttleTime','UniverSheets','registerComponent','_commandService','getStatus','not-following','DisposableCollection','7ECNhVb','ICommandService','getCurrentTypeOfUnit$','toString','ONLINE','_unitID','tag','stopPresenting','onStarting','symbol','Button','event$','@univerjs/sheets','RxDisposable','onCommandExecuted','from','_handleOnline','@univerjs/sheets-ui','stopFollowing','button','Subject','UniverLiveSharePlugin','IConfigService'];_0x2fd4=function(){return _0x53532b;};return _0x2fd4();}function _0x22a4(_0x4c5cff,_0x596007){_0x4c5cff=_0x4c5cff-0x111;const _0x2fd41e=_0x2fd4();let _0x22a4bf=_0x2fd41e[_0x4c5cff];return _0x22a4bf;}(function(_0x57b548,_0x286201){const _0x43cfd7=_0x22a4,_0x27f359=_0x57b548();while(!![]){try{const _0x10bc4b=-parseInt(_0x43cfd7(0x1bc))/0x1+parseInt(_0x43cfd7(0x185))/0x2+parseInt(_0x43cfd7(0x12f))/0x3+-parseInt(_0x43cfd7(0x1df))/0x4+-parseInt(_0x43cfd7(0x1f2))/0x5+parseInt(_0x43cfd7(0x152))/0x6*(parseInt(_0x43cfd7(0x194))/0x7)+parseInt(_0x43cfd7(0x153))/0x8;if(_0x10bc4b===_0x286201)break;else _0x27f359['push'](_0x27f359['shift']());}catch(_0x3b788a){_0x27f359['push'](_0x27f359['shift']());}}}(_0x2fd4,0xbbd33),function(_0x23b3a9,_0x500538){const _0x1c6577=_0x22a4;typeof exports==_0x1c6577(0x144)&&typeof module<'u'?_0x500538(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==_0x1c6577(0x1ab)&&define[_0x1c6577(0x139)]?define([_0x1c6577(0x16f),'@univerjs/core',_0x1c6577(0x14a),'react/jsx-runtime',_0x1c6577(0x130),_0x1c6577(0x1d3),'@univerjs-pro/collaboration',_0x1c6577(0x1f4),_0x1c6577(0x1a0),'rxjs',_0x1c6577(0x127),_0x1c6577(0x1a5)],_0x500538):(_0x23b3a9=typeof globalThis<'u'?globalThis:_0x23b3a9||self,_0x500538(_0x23b3a9['UniverProLiveShare']={},_0x23b3a9[_0x1c6577(0x188)],_0x23b3a9[_0x1c6577(0x11d)],_0x23b3a9[_0x1c6577(0x134)],_0x23b3a9[_0x1c6577(0x12c)],_0x23b3a9[_0x1c6577(0x134)],_0x23b3a9[_0x1c6577(0x14d)],_0x23b3a9[_0x1c6577(0x1ea)],_0x23b3a9[_0x1c6577(0x18e)],_0x23b3a9[_0x1c6577(0x1bb)],_0x23b3a9[_0x1c6577(0x1bb)][_0x1c6577(0x1c0)],_0x23b3a9[_0x1c6577(0x121)]));}(this,function(_0x39654e,_0x6a378b,_0x5780f1,_0x506a4e,_0x2ac1de,_0x2ba196,_0x3cff9b,_0x3afd91,_0x2cce30,_0x29ef30,_0x7a73a6,_0x5931b1){'use strict';const _0x283fd3=_0x22a4;var _0x23ab4c=Object['defineProperty'],_0x48fa3f=(_0x4d67f3,_0x55ccaa,_0x1ceb40)=>_0x55ccaa in _0x4d67f3?_0x23ab4c(_0x4d67f3,_0x55ccaa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ceb40}):_0x4d67f3[_0x55ccaa]=_0x1ceb40,_0x2932a5=(_0x3fbe05,_0x26f7bb,_0x9237a5)=>_0x48fa3f(_0x3fbe05,typeof _0x26f7bb!=_0x283fd3(0x19d)?_0x26f7bb+'':_0x26f7bb,_0x9237a5);function _0x24a981({ref:_0x2d0ec6,..._0x4dc9aa}){const _0x3c2b0c=_0x283fd3,{icon:_0x3c44f2,id:_0x324788,className:_0x34b2a1,extend:_0x52df0b,..._0x23e712}=_0x4dc9aa,_0x12cb2c=('univerjs-icon\x20univerjs-icon-'+_0x324788+'\x20'+(_0x34b2a1||''))[_0x3c2b0c(0x1d1)](),_0x303874=_0x2ba196[_0x3c2b0c(0x120)]('_'+_0x3e12b3());return _0xc6b95(_0x3c44f2,''+_0x324788,{'defIds':_0x3c44f2['defIds'],'idSuffix':_0x303874[_0x3c2b0c(0x159)]},{'ref':_0x2d0ec6,'className':_0x12cb2c,..._0x23e712},_0x52df0b);}function _0xc6b95(_0x12f528,_0x1b193e,_0x3cf4c9,_0x2fd7ac,_0x26c28b){const _0x30b6e0=_0x283fd3;return _0x2ba196[_0x30b6e0(0x1ec)](_0x12f528[_0x30b6e0(0x19a)],{'key':_0x1b193e,..._0x57a634(_0x12f528,_0x3cf4c9,_0x26c28b),..._0x2fd7ac},(_0x236019(_0x12f528,_0x3cf4c9)[_0x30b6e0(0x1b6)]||[])[_0x30b6e0(0x11f)]((_0x188631,_0x2df147)=>_0xc6b95(_0x188631,_0x1b193e+'-'+_0x12f528[_0x30b6e0(0x19a)]+'-'+_0x2df147,_0x3cf4c9,void 0x0,_0x26c28b)));}function _0x57a634(_0x3625d5,_0x3c2a85,_0x5529a5){const _0x571610=_0x283fd3,_0x5cf452={..._0x3625d5[_0x571610(0x140)]};_0x5529a5!=null&&_0x5529a5['colorChannel1']&&_0x5cf452[_0x571610(0x1ef)]===_0x571610(0x1cc)&&(_0x5cf452[_0x571610(0x1ef)]=_0x5529a5['colorChannel1']),_0x3625d5[_0x571610(0x19a)]===_0x571610(0x1ee)&&_0x5cf452['id']&&(_0x5cf452['id']=_0x5cf452['id']+_0x3c2a85[_0x571610(0x1c2)]),Object[_0x571610(0x1b8)](_0x5cf452)[_0x571610(0x1e0)](([_0x50f2fc,_0x14d5fb])=>{const _0x2e9776=_0x571610;_0x50f2fc===_0x2e9776(0x1ee)&&typeof _0x14d5fb=='string'&&(_0x5cf452[_0x50f2fc]=_0x14d5fb[_0x2e9776(0x186)](/url\(#(.*)\)/,_0x2e9776(0x1cf)+_0x3c2a85[_0x2e9776(0x1c2)]+')'));});const {defIds:_0x588744}=_0x3c2a85;return!_0x588744||_0x588744[_0x571610(0x1ac)]===0x0||(_0x3625d5[_0x571610(0x19a)]===_0x571610(0x163)&&_0x5cf452['xlink:href']&&(_0x5cf452[_0x571610(0x187)]=_0x5cf452[_0x571610(0x187)]+_0x3c2a85[_0x571610(0x1c2)]),Object['entries'](_0x5cf452)['forEach'](([_0x42ffb2,_0x1249c7])=>{const _0x5b32fa=_0x571610;typeof _0x1249c7==_0x5b32fa(0x15c)&&(_0x5cf452[_0x42ffb2]=_0x1249c7[_0x5b32fa(0x186)](/url\(#(.*)\)/,'url(#$1'+_0x3c2a85['idSuffix']+')'));})),_0x5cf452;}function _0x236019(_0x18223e,_0x57495f){const _0x579f7a=_0x283fd3;var _0x56cf67;const {defIds:_0x4cef8d}=_0x57495f;return!_0x4cef8d||_0x4cef8d['length']===0x0?_0x18223e:_0x18223e[_0x579f7a(0x19a)]===_0x579f7a(0x15d)&&((_0x56cf67=_0x18223e[_0x579f7a(0x1b6)])!=null&&_0x56cf67[_0x579f7a(0x1ac)])?{..._0x18223e,'children':_0x18223e[_0x579f7a(0x1b6)]['map'](_0x475a02=>typeof _0x475a02[_0x579f7a(0x140)]['id']==_0x579f7a(0x15c)&&_0x4cef8d&&_0x4cef8d[_0x579f7a(0x13d)](_0x475a02[_0x579f7a(0x140)]['id'])?{..._0x475a02,'attrs':{..._0x475a02['attrs'],'id':_0x475a02['attrs']['id']+_0x57495f['idSuffix']}}:_0x475a02)}:_0x18223e;}function _0x3e12b3(){const _0x330cde=_0x283fd3;return Math[_0x330cde(0x179)]()[_0x330cde(0x197)](0x24)[_0x330cde(0x1f1)](0x2,0x8);}_0x24a981[_0x283fd3(0x1b0)]=_0x283fd3(0x1b1);const _0x3151e7={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x283fd3(0x1c3),'width':'1em','height':_0x283fd3(0x18c)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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':_0x283fd3(0x1b3),'attrs':{'fill':_0x283fd3(0x1e7),'d':_0x283fd3(0x165),'fillRule':'evenodd','clipRule':_0x283fd3(0x149)}}]},_0x12b436=_0x2ba196[_0x283fd3(0x1d6)](function(_0x10c9af,_0xf6fc58){const _0x2275d3=_0x283fd3;return _0x2ba196[_0x2275d3(0x1ec)](_0x24a981,Object[_0x2275d3(0x142)]({},_0x10c9af,{'id':_0x2275d3(0x151),'ref':_0xf6fc58,'icon':_0x3151e7}));});_0x12b436[_0x283fd3(0x1b0)]=_0x283fd3(0x17d);class _0xe8c135 extends _0x6a378b[_0x283fd3(0x1b5)]{constructor(){const _0x34ea67=_0x283fd3;super(...arguments),_0x2932a5(this,_0x34ea67(0x1cd),new Set()),_0x2932a5(this,_0x34ea67(0x1b4),new Set());}[_0x283fd3(0x1d5)](_0x3438ab){const _0x663367=_0x283fd3;return this['_sharedOperations'][_0x663367(0x168)](_0x3438ab),_0x6a378b[_0x663367(0x1da)](()=>this[_0x663367(0x1cd)]['delete'](_0x3438ab));}['registerInitialStateReporter'](_0x11d0a0){const _0x3e98ba=_0x283fd3;return this[_0x3e98ba(0x1b4)][_0x3e98ba(0x168)](_0x11d0a0),_0x6a378b['toDisposable'](()=>this[_0x3e98ba(0x1b4)][_0x3e98ba(0x14b)](_0x11d0a0));}['shouldShareOperation'](_0xc641d2){const _0x28058c=_0x283fd3;return this['_sharedOperations'][_0x28058c(0x11e)](_0xc641d2);}[_0x283fd3(0x131)](_0x474161){const _0x38e173=_0x283fd3;return Array[_0x38e173(0x1a3)](this[_0x38e173(0x1b4)])[_0x38e173(0x11f)](_0x55d7c1=>_0x55d7c1(_0x474161));}}var _0xf0e9ae=Object[_0x283fd3(0x1f0)],_0x1c5230=(_0x124ff6,_0xdb3c7f,_0x110cf7,_0x3ddd89)=>{const _0xcc304b=_0x283fd3;for(var _0x1cfdf2=_0x3ddd89>0x1?void 0x0:_0x3ddd89?_0xf0e9ae(_0xdb3c7f,_0x110cf7):_0xdb3c7f,_0x20ed2a=_0x124ff6[_0xcc304b(0x1ac)]-0x1,_0x455400;_0x20ed2a>=0x0;_0x20ed2a--)(_0x455400=_0x124ff6[_0x20ed2a])&&(_0x1cfdf2=_0x455400(_0x1cfdf2)||_0x1cfdf2);return _0x1cfdf2;},_0xf8eeef=(_0x1e2309,_0x6d1235)=>(_0x32bb31,_0x537fc9)=>_0x6d1235(_0x32bb31,_0x537fc9,_0x1e2309);_0x39654e['LiveShareController']=class extends _0x6a378b[_0x283fd3(0x1a1)]{constructor(_0x3d83c2,_0x49089a,_0x5b30f6){const _0x368834=_0x283fd3;super(),_0x2932a5(this,_0x368834(0x181),new Map()),(this['_univerInstanceService']=_0x3d83c2,this[_0x368834(0x16b)]=_0x49089a,this['_collabSessionService']=_0x5b30f6,this['_init']());}async[_0x283fd3(0x119)](_0xd9c2c){const _0x5050bf=_0x283fd3;return this[_0x5050bf(0x181)][_0x5050bf(0x11e)](_0xd9c2c)||await this[_0x5050bf(0x147)](_0xd9c2c),this[_0x5050bf(0x181)][_0x5050bf(0x1c7)](_0xd9c2c);}[_0x283fd3(0x13e)](_0x3db6ab){const _0x32ac05=_0x283fd3;var _0x32b823;return(_0x32b823=this[_0x32ac05(0x181)]['get'](_0x3db6ab))!=null?_0x32b823:null;}[_0x283fd3(0x183)](){const _0x30471c=_0x283fd3;this[_0x30471c(0x16c)][_0x30471c(0x1e8)](_0x6a378b['UniverInstanceType']['UNIVER_SHEET'])[_0x30471c(0x174)](_0x7a73a6['takeUntil'](this[_0x30471c(0x166)]))[_0x30471c(0x17a)](async _0x36ef3c=>{const _0x4d21af=_0x30471c,_0x155230=_0x36ef3c[_0x4d21af(0x118)]();this[_0x4d21af(0x181)][_0x4d21af(0x11e)](_0x155230)||this[_0x4d21af(0x147)](_0x155230);}),this[_0x30471c(0x16c)]['getTypeOfUnitDisposed$'](_0x6a378b[_0x30471c(0x1ae)][_0x30471c(0x1b2)])[_0x30471c(0x174)](_0x7a73a6['takeUntil'](this[_0x30471c(0x166)]))['subscribe'](_0x22ea05=>{const _0xca719=_0x30471c,_0x2fa60b=_0x22ea05[_0xca719(0x118)](),_0x70ca28=this[_0xca719(0x181)][_0xca719(0x1c7)](_0x2fa60b);_0x70ca28==null||_0x70ca28[_0xca719(0x133)]();});}async[_0x283fd3(0x147)](_0x267aeb){const _0x58453b=_0x283fd3,_0x37b27d=await this[_0x58453b(0x141)][_0x58453b(0x137)](_0x267aeb),_0xef88c=this[_0x58453b(0x16b)][_0x58453b(0x17f)](_0x39654e['LiveShareCoordinator'],_0x267aeb,_0x37b27d);return _0xef88c[_0x58453b(0x173)](),this[_0x58453b(0x181)]['set'](_0x267aeb,_0xef88c),_0xef88c;}},_0x39654e['LiveShareController']=_0x1c5230([_0xf8eeef(0x0,_0x6a378b[_0x283fd3(0x161)]),_0xf8eeef(0x1,_0x6a378b[_0x283fd3(0x143)](_0x6a378b[_0x283fd3(0x1db)])),_0xf8eeef(0x2,_0x6a378b[_0x283fd3(0x143)](_0x3afd91[_0x283fd3(0x1f3)]))],_0x39654e[_0x283fd3(0x1e3)]);var _0x58a4b4=(_0x2cdde1=>(_0x2cdde1[_0x283fd3(0x1c9)]=_0x283fd3(0x138),_0x2cdde1[_0x283fd3(0x1ba)]=_0x283fd3(0x1eb),_0x2cdde1[_0x283fd3(0x167)]=_0x283fd3(0x124),_0x2cdde1[_0x283fd3(0x176)]=_0x283fd3(0x192),_0x2cdde1[_0x283fd3(0x1ed)]=_0x283fd3(0x13c),_0x2cdde1))(_0x58a4b4||{});const _0x2a454b=_0x283fd3(0x1dc),_0x38e98e=0xc8;_0x39654e['LiveShareCoordinator']=class extends _0x6a378b['RxDisposable']{constructor(_0x56b40e,_0x4ef03b,_0x35c04d,_0x34977d,_0x40d83b){const _0x1c7e2a=_0x283fd3;super(),_0x2932a5(this,'_status$',new _0x29ef30[(_0x1c7e2a(0x15f))]('idle')),_0x2932a5(this,_0x1c7e2a(0x182),this[_0x1c7e2a(0x1c8)][_0x1c7e2a(0x180)]()),_0x2932a5(this,_0x1c7e2a(0x183),!0x1),_0x2932a5(this,_0x1c7e2a(0x17b),null),_0x2932a5(this,_0x1c7e2a(0x162),null),(this[_0x1c7e2a(0x199)]=_0x56b40e,this[_0x1c7e2a(0x14c)]=_0x4ef03b,this[_0x1c7e2a(0x1e5)]=_0x35c04d,this[_0x1c7e2a(0x175)]=_0x34977d,this[_0x1c7e2a(0x190)]=_0x40d83b);}get[_0x283fd3(0x129)](){const _0x4b1e0b=_0x283fd3;return this['_status$'][_0x4b1e0b(0x115)]();}[_0x283fd3(0x133)](){const _0xa526e2=_0x283fd3;var _0x20031e;(_0x20031e=this['_commandDisposable'])==null||_0x20031e[_0xa526e2(0x133)](),this[_0xa526e2(0x1c8)][_0xa526e2(0x1e2)]('idle'),this[_0xa526e2(0x1c8)][_0xa526e2(0x155)]();}[_0x283fd3(0x191)](){const _0x4006f9=_0x283fd3;return this[_0x4006f9(0x129)];}[_0x283fd3(0x173)](){const _0x289a24=_0x283fd3;this[_0x289a24(0x183)]||(this[_0x289a24(0x183)]=!0x0,this[_0x289a24(0x14c)]['sessionStatus$']['pipe'](_0x7a73a6[_0x289a24(0x113)](this[_0x289a24(0x166)]))['subscribe'](_0x2fd478=>{const _0x29ba12=_0x289a24;switch(_0x2fd478){case _0x3afd91['SessionStatus'][_0x29ba12(0x1c9)]:this[_0x29ba12(0x1d0)]();break;case _0x3afd91[_0x29ba12(0x178)][_0x29ba12(0x198)]:this[_0x29ba12(0x1a4)]();break;}}),this['_collabSession'][_0x289a24(0x19f)][_0x289a24(0x174)](_0x7a73a6[_0x289a24(0x113)](this[_0x289a24(0x166)]))[_0x289a24(0x17a)](_0x4dd9f3=>{const _0x29b892=_0x289a24,{eventID:_0x8317a6}=_0x4dd9f3;switch(_0x8317a6){case _0x3cff9b[_0x29b892(0x1f6)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4dd9f3);break;case _0x3cff9b[_0x29b892(0x1f6)]['LIVESHARE_OPERATION']:this[_0x29b892(0x1c6)](_0x4dd9f3);break;case _0x3cff9b[_0x29b892(0x1f6)]['LIVESHARE_TERMINATE']:this[_0x29b892(0x16e)]();break;case _0x3cff9b['CollaborationEvent']['NEW_CHANGESETS']:this[_0x29b892(0x1d7)](_0x4dd9f3);break;}}));}[_0x283fd3(0x157)](){const _0x59dc60=_0x283fd3;this[_0x59dc60(0x14c)][_0x59dc60(0x1c5)]({'eventID':_0x3cff9b['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x59dc60(0x199)],'userID':this[_0x59dc60(0x14c)][_0x59dc60(0x1cb)]()}},this['_unitID']);}[_0x283fd3(0x19b)](){const _0x5875c1=_0x283fd3;this['_status']===_0x5875c1(0x13c)&&(this[_0x5875c1(0x1c8)][_0x5875c1(0x1e2)]('idle'),this[_0x5875c1(0x14c)][_0x5875c1(0x1c5)]({'eventID':_0x3cff9b[_0x5875c1(0x1f6)][_0x5875c1(0x18b)],'data':{'unitID':this[_0x5875c1(0x199)]}},this['_unitID']));}['startFollowing'](){const _0x5d1d4c=_0x283fd3;this[_0x5d1d4c(0x129)]===_0x5d1d4c(0x192)&&(this['_status$'][_0x5d1d4c(0x1e2)](_0x5d1d4c(0x124)),this[_0x5d1d4c(0x150)]());}[_0x283fd3(0x1a6)](){const _0x54da6f=_0x283fd3;this[_0x54da6f(0x129)]===_0x54da6f(0x124)&&this[_0x54da6f(0x160)]();}[_0x283fd3(0x14e)](_0x25eb47){const _0x3db304=_0x283fd3,{presenter:_0xe1f527}=_0x25eb47[_0x3db304(0x11c)],_0x444952=this['_collabSession'][_0x3db304(0x1cb)]();this[_0x3db304(0x162)]=_0xe1f527,_0xe1f527===_0x444952?(this[_0x3db304(0x160)](),this['_startPresenting']()):this[_0x3db304(0x129)]!==_0x3db304(0x192)&&(this[_0x3db304(0x1bf)](),this[_0x3db304(0x150)]());}[_0x283fd3(0x12b)](){const _0x15b29b=_0x283fd3,_0x5ef379={'eventID':_0x3cff9b['CollaborationEvent'][_0x15b29b(0x123)]};this[_0x15b29b(0x14c)]['send'](_0x5ef379,this['_unitID']);}['_handleTerminate'](){const _0x5a23e3=_0x283fd3;this[_0x5a23e3(0x162)]=null,this['_status']!==_0x5a23e3(0x13c)&&this[_0x5a23e3(0x184)]();}[_0x283fd3(0x1d7)](_0x5961ec){const _0x40edab=_0x283fd3;if(this[_0x40edab(0x129)]==='following'&&this[_0x40edab(0x162)]===_0x5961ec[_0x40edab(0x11c)]['memberID']){const _0x16fce9=_0x3cff9b[_0x40edab(0x15a)](_0x5961ec[_0x40edab(0x11c)])['mutations'][_0x40edab(0x1d4)]()[_0x40edab(0x1bd)](_0x4de7b0=>_0x4de7b0['id']===_0x2cce30[_0x40edab(0x145)]['id']);if(_0x16fce9){const _0x2b6678=_0x16fce9[_0x40edab(0x164)]['unitId'],_0x23b045=_0x16fce9[_0x40edab(0x164)][_0x40edab(0x13b)]['id'];setTimeout(()=>{const _0x33ce71=_0x40edab;this['_commandService'][_0x33ce71(0x128)](_0x2cce30[_0x33ce71(0x135)]['id'],{'unitId':_0x2b6678,'subUnitId':_0x23b045},{'fromCollab':!0x0});});}}}[_0x283fd3(0x1de)](){const _0xf261c7=_0x283fd3;this[_0xf261c7(0x1c8)][_0xf261c7(0x1e2)](_0xf261c7(0x13c));const _0x288fb0=new Map(),_0xdd58ef=this[_0xf261c7(0x17b)]=new _0x6a378b[(_0xf261c7(0x193))]();_0xdd58ef[_0xf261c7(0x168)](_0x6a378b[_0xf261c7(0x1da)](()=>{const _0x3a516b=_0xf261c7;_0x288fb0[_0x3a516b(0x1e0)](_0x3f3dd2=>_0x3f3dd2[_0x3a516b(0x155)]()),_0x288fb0[_0x3a516b(0x16a)]();})),_0xdd58ef[_0xf261c7(0x168)](this['_commandService'][_0xf261c7(0x1a2)](_0x1f98a4=>{const _0x488cf7=_0xf261c7;var _0x41d2b5;if(_0x1f98a4[_0x488cf7(0x1e1)]!==_0x6a378b['CommandType']['OPERATION']||!this['_liveShareService'][_0x488cf7(0x148)](_0x1f98a4['id']))return;const {id:_0x8592a7}=_0x1f98a4;let _0x216117;_0x288fb0['has'](_0x8592a7)?_0x216117=_0x288fb0[_0x488cf7(0x1c7)](_0x8592a7):(_0x216117=new _0x29ef30[(_0x488cf7(0x1a8))](),_0x288fb0[_0x488cf7(0x172)](_0x8592a7,_0x216117),_0x216117[_0x488cf7(0x174)](_0x7a73a6[_0x488cf7(0x18d)]((_0x41d2b5=this['_configService'][_0x488cf7(0x1f5)](_0x2a454b))!=null?_0x41d2b5:_0x38e98e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x488cf7(0x17a)](_0x54c450=>{const _0x50aeae=_0x488cf7;this['_collabSession'][_0x50aeae(0x1c5)]({'eventID':_0x3cff9b[_0x50aeae(0x1f6)][_0x50aeae(0x1e6)],'data':{'unitID':this[_0x50aeae(0x199)],'operations':{[_0x54c450['id']]:{'id':_0x54c450['id'],'params':JSON[_0x50aeae(0x114)](_0x54c450['params'])}}}},this[_0x50aeae(0x199)]);})),_0x216117[_0x488cf7(0x1e2)](_0x1f98a4);})),this[_0xf261c7(0x175)][_0xf261c7(0x131)](this[_0xf261c7(0x199)])['forEach'](_0x4a88c5=>this['_collabSession'][_0xf261c7(0x1c5)]({'eventID':_0x3cff9b[_0xf261c7(0x1f6)][_0xf261c7(0x1e6)],'data':{'unitID':this['_unitID'],'operations':{[_0x4a88c5['id']]:{'id':_0x4a88c5['id'],'params':JSON[_0xf261c7(0x114)](_0x4a88c5[_0xf261c7(0x164)])}}}},this[_0xf261c7(0x199)]));}[_0x283fd3(0x1bf)](){const _0x2983c6=_0x283fd3;var _0x363b4e;this[_0x2983c6(0x1c8)][_0x2983c6(0x1e2)](_0x2983c6(0x1eb)),(_0x363b4e=this[_0x2983c6(0x17b)])==null||_0x363b4e[_0x2983c6(0x133)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x513cfc=_0x283fd3;var _0x3f3f5e;(_0x3f3f5e=this['_commandDisposable'])==null||_0x3f3f5e[_0x513cfc(0x133)](),this[_0x513cfc(0x1c8)][_0x513cfc(0x1e2)](_0x513cfc(0x124));}[_0x283fd3(0x184)](){const _0x2a3960=_0x283fd3;var _0x7fda16;this[_0x2a3960(0x1c8)][_0x2a3960(0x1e2)]('idle'),(_0x7fda16=this['_commandDisposable'])==null||_0x7fda16[_0x2a3960(0x133)](),this['_commandDisposable']=null;}[_0x283fd3(0x160)](){const _0x559e0c=_0x283fd3;var _0xb693eb;this['_status$']['next'](_0x559e0c(0x192)),(_0xb693eb=this[_0x559e0c(0x17b)])==null||_0xb693eb['dispose']();}[_0x283fd3(0x1c6)](_0x50380f){const _0x3edc62=_0x283fd3;if([_0x3edc62(0x13c),'not-following',_0x3edc62(0x138)][_0x3edc62(0x13d)](this[_0x3edc62(0x129)])||!_0x50380f[_0x3edc62(0x11c)][_0x3edc62(0x1dd)]||_0x50380f[_0x3edc62(0x11c)]['presenter']===this['_collabSession'][_0x3edc62(0x1cb)]())return;this[_0x3edc62(0x129)]===_0x3edc62(0x1eb)&&this[_0x3edc62(0x150)]();const _0x27e177=_0x50380f[_0x3edc62(0x11c)][_0x3edc62(0x14f)];Object[_0x3edc62(0x122)](_0x27e177)[_0x3edc62(0x1e0)](_0x5649a7=>{const _0x1a5080=_0x3edc62;this[_0x1a5080(0x190)]['executeCommand'](_0x5649a7['id'],_0x5649a7[_0x1a5080(0x164)]?JSON['parse'](_0x5649a7[_0x1a5080(0x164)]):null,{'fromCollab':!0x0});});}[_0x283fd3(0x1d0)](){const _0x1562d1=_0x283fd3;var _0x453157;this[_0x1562d1(0x1c8)][_0x1562d1(0x1e2)](_0x1562d1(0x138)),(_0x453157=this[_0x1562d1(0x17b)])==null||_0x453157[_0x1562d1(0x133)]();}[_0x283fd3(0x1a4)](){const _0x4cc3b3=_0x283fd3;this[_0x4cc3b3(0x1c8)][_0x4cc3b3(0x1e2)]('idle'),this[_0x4cc3b3(0x12b)]();}},_0x39654e[_0x283fd3(0x1ca)]=_0x1c5230([_0xf8eeef(0x2,_0x6a378b[_0x283fd3(0x1aa)]),_0xf8eeef(0x3,_0x6a378b[_0x283fd3(0x143)](_0xe8c135)),_0xf8eeef(0x4,_0x6a378b[_0x283fd3(0x195)])],_0x39654e[_0x283fd3(0x1ca)]);function _0x2e8439(){const _0x5ab041=_0x283fd3,_0x37f653=_0x5780f1['useDependency'](_0x39654e[_0x5ab041(0x1e3)]),_0x4544aa=_0x5780f1[_0x5ab041(0x132)](_0x6a378b[_0x5ab041(0x161)]),_0x22626d=_0x5780f1[_0x5ab041(0x1c4)](()=>_0x4544aa[_0x5ab041(0x196)](_0x6a378b['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x22df38,_0x2bcb91]=_0x2ba196[_0x5ab041(0x169)](null),[_0x50d88c,_0x39e486]=_0x2ba196['useState'](_0x58a4b4[_0x5ab041(0x1ba)]),_0x5c0977=_0x2ba196[_0x5ab041(0x120)](null);return _0x2ba196[_0x5ab041(0x189)](()=>(_0x22626d&&_0x37f653['getLiveShareCoordinator'](_0x22626d[_0x5ab041(0x118)]())[_0x5ab041(0x13f)](_0x1e57d8=>{const _0x464827=_0x5ab041;_0x2bcb91(_0x1e57d8),_0x5c0977[_0x464827(0x159)]=_0x1e57d8['status$'][_0x464827(0x17a)](_0x4c4eec=>{_0x39e486(_0x4c4eec);});}),()=>{const _0x5081c4=_0x5ab041;var _0x2dfe88;(_0x2dfe88=_0x5c0977['current'])==null||_0x2dfe88[_0x5081c4(0x1c1)](),_0x5c0977[_0x5081c4(0x159)]=null;}),[_0x22626d,_0x37f653]),_0x22df38?_0x506a4e[_0x5ab041(0x170)](_0x2ac1de['Dropdown'],{'align':'end','disabled':_0x50d88c===_0x58a4b4[_0x5ab041(0x1c9)],'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':_0x506a4e[_0x5ab041(0x170)](_0x43bb82,{'status':_0x50d88c,'coordinator':_0x22df38}),'children':_0x506a4e[_0x5ab041(0x170)]('button',{'className':_0x2ac1de[_0x5ab041(0x156)](_0x5ab041(0x1b9),{'univer-cursor-not-allowed':_0x50d88c===_0x58a4b4[_0x5ab041(0x1c9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x50d88c!==_0x58a4b4[_0x5ab041(0x1c9)]}),'type':_0x5ab041(0x1a7),'children':_0x506a4e[_0x5ab041(0x170)](_0x12b436,{'className':_0x5ab041(0x17e)})})}):null;}function _0x43bb82(_0xa08a10){const _0xf2fdd4=_0x283fd3,{status:_0x359d65,coordinator:_0x599fa0}=_0xa08a10;switch(_0x359d65){case _0x58a4b4[_0xf2fdd4(0x1ba)]:return _0x506a4e[_0xf2fdd4(0x170)](_0x3e190b,{'coordinator':_0x599fa0});case _0x58a4b4[_0xf2fdd4(0x167)]:return _0x506a4e[_0xf2fdd4(0x170)](_0x332db2,{'coordinator':_0x599fa0});case _0x58a4b4[_0xf2fdd4(0x176)]:return _0x506a4e['jsx'](_0x4263c4,{'coordinator':_0x599fa0});case _0x58a4b4[_0xf2fdd4(0x1c9)]:return _0x506a4e['jsx'](_0x2f1ef7,{});case _0x58a4b4['PRESENTING']:return _0x506a4e[_0xf2fdd4(0x170)](_0x51d851,{'coordinator':_0x599fa0});default:return null;}}function _0x3e190b(_0xf5122c){const _0x4725cf=_0x283fd3,{coordinator:_0xa81730}=_0xf5122c;return _0x506a4e[_0x4725cf(0x1e9)](_0x506a4e[_0x4725cf(0x15e)],{'children':[_0x506a4e[_0x4725cf(0x170)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4725cf(0x154)}),_0x506a4e[_0x4725cf(0x170)](_0x2ac1de[_0x4725cf(0x19e)],{'onClick':()=>_0xa81730[_0x4725cf(0x157)](),'children':_0x4725cf(0x1d9)})]});}function _0x332db2(_0x1ac8bb){const _0x5329e8=_0x283fd3,{coordinator:_0x54386c}=_0x1ac8bb;return _0x506a4e[_0x5329e8(0x1e9)](_0x506a4e[_0x5329e8(0x15e)],{'children':[_0x506a4e[_0x5329e8(0x170)]('div',{'className':_0x5329e8(0x1ad),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x506a4e['jsx'](_0x2ac1de[_0x5329e8(0x19e)],{'onClick':()=>_0x54386c[_0x5329e8(0x1a6)](),'children':_0x5329e8(0x117)})]});}function _0x4263c4(_0x20676f){const _0x2e7ff6=_0x283fd3,{coordinator:_0xc34c2}=_0x20676f;return _0x506a4e['jsxs'](_0x506a4e[_0x2e7ff6(0x15e)],{'children':[_0x506a4e[_0x2e7ff6(0x170)](_0x2e7ff6(0x1b7),{'className':_0x2e7ff6(0x1ad),'children':_0x2e7ff6(0x146)}),_0x506a4e[_0x2e7ff6(0x170)](_0x2ac1de[_0x2e7ff6(0x19e)],{'variant':_0x2e7ff6(0x18a),'onClick':()=>_0xc34c2['startFollowing'](),'children':_0x2e7ff6(0x1d8)})]});}function _0x51d851(_0x35782f){const _0x267966=_0x283fd3,{coordinator:_0x10d993}=_0x35782f;return _0x506a4e[_0x267966(0x1e9)](_0x506a4e[_0x267966(0x15e)],{'children':[_0x506a4e['jsx']('div',{'className':_0x267966(0x1ad),'children':_0x267966(0x1d2)}),_0x506a4e[_0x267966(0x170)](_0x2ac1de['Button'],{'variant':_0x267966(0x177),'onClick':()=>_0x10d993[_0x267966(0x19b)](),'children':'Stop\x20presenting'})]});}function _0x2f1ef7(){const _0x235415=_0x283fd3;return _0x506a4e[_0x235415(0x170)](_0x506a4e[_0x235415(0x15e)],{'children':_0x235415(0x12d)});}var _0x2e29c2=Object[_0x283fd3(0x1f0)],_0x34c9b8=(_0x544d49,_0x4ea65f,_0x5f474f,_0xa62f91)=>{for(var _0x4d3339=_0xa62f91>0x1?void 0x0:_0xa62f91?_0x2e29c2(_0x4ea65f,_0x5f474f):_0x4ea65f,_0x3cc596=_0x544d49['length']-0x1,_0x38de1b;_0x3cc596>=0x0;_0x3cc596--)(_0x38de1b=_0x544d49[_0x3cc596])&&(_0x4d3339=_0x38de1b(_0x4d3339)||_0x4d3339);return _0x4d3339;},_0x2ea4c0=(_0x1d8304,_0x815474)=>(_0x249c2a,_0x33b90c)=>_0x815474(_0x249c2a,_0x33b90c,_0x1d8304);_0x39654e[_0x283fd3(0x12a)]=class extends _0x6a378b['Disposable']{constructor(_0x23360f,_0x54aa3f){const _0x48b35d=_0x283fd3;super(),this[_0x48b35d(0x16b)]=_0x23360f,this[_0x48b35d(0x11a)]=_0x54aa3f,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x56cc99=_0x283fd3;this[_0x56cc99(0x1ce)](this[_0x56cc99(0x11a)][_0x56cc99(0x18f)](_0x5780f1['BuiltInUIPart']['HEADER_MENU'],()=>_0x5780f1[_0x56cc99(0x116)](_0x2e8439,this[_0x56cc99(0x16b)])));}},_0x39654e[_0x283fd3(0x12a)]=_0x34c9b8([_0x2ea4c0(0x0,_0x6a378b[_0x283fd3(0x143)](_0x6a378b[_0x283fd3(0x1db)])),_0x2ea4c0(0x1,_0x5780f1[_0x283fd3(0x1be)])],_0x39654e[_0x283fd3(0x12a)]);const _0x1c055d=_0x283fd3(0x1af),_0x4b5cbc={};var _0x2a21a8=Object['getOwnPropertyDescriptor'],_0x4ee742=(_0x43fc1e,_0x47d320,_0x53598b,_0x2eafc0)=>{for(var _0x222fb7=_0x2eafc0>0x1?void 0x0:_0x2eafc0?_0x2a21a8(_0x47d320,_0x53598b):_0x47d320,_0x42b801=_0x43fc1e['length']-0x1,_0x28df04;_0x42b801>=0x0;_0x42b801--)(_0x28df04=_0x43fc1e[_0x42b801])&&(_0x222fb7=_0x28df04(_0x222fb7)||_0x222fb7);return _0x222fb7;},_0x4f4447=(_0x495526,_0x46ce5d)=>(_0x30b192,_0x96f3b2)=>_0x46ce5d(_0x30b192,_0x96f3b2,_0x495526);let _0x1e053a=class extends _0x6a378b['Disposable']{constructor(_0xbbb71a){const _0x5e3dfc=_0x283fd3;super(),this[_0x5e3dfc(0x175)]=_0xbbb71a,this[_0x5e3dfc(0x183)]();}[_0x283fd3(0x183)](){const _0x58d01e=_0x283fd3;[_0x5931b1[_0x58d01e(0x126)]['id'],_0x5931b1['SetScrollOperation']['id'],_0x2cce30[_0x58d01e(0x135)]['id']][_0x58d01e(0x1e0)](_0x1af948=>{const _0x31fa74=_0x58d01e;this['disposeWithMe'](this[_0x31fa74(0x175)]['registerSharedOperation'](_0x1af948));});}};_0x1e053a=_0x4ee742([_0x4f4447(0x0,_0x6a378b[_0x283fd3(0x143)](_0xe8c135))],_0x1e053a);var _0x28569a=Object['defineProperty'],_0x57ce39=Object[_0x283fd3(0x1f0)],_0x599a1b=(_0x3bcf73,_0x2ed0ea,_0x442713)=>_0x2ed0ea in _0x3bcf73?_0x28569a(_0x3bcf73,_0x2ed0ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x442713}):_0x3bcf73[_0x2ed0ea]=_0x442713,_0x3322c2=(_0x179cf4,_0x178db4,_0xffac92,_0x3a644f)=>{const _0x3d8ef6=_0x283fd3;for(var _0x344419=_0x3a644f>0x1?void 0x0:_0x3a644f?_0x57ce39(_0x178db4,_0xffac92):_0x178db4,_0x57e57a=_0x179cf4[_0x3d8ef6(0x1ac)]-0x1,_0x421138;_0x57e57a>=0x0;_0x57e57a--)(_0x421138=_0x179cf4[_0x57e57a])&&(_0x344419=_0x421138(_0x344419)||_0x344419);return _0x344419;},_0x396e03=(_0x18f2e7,_0x28861c)=>(_0x1a30fa,_0x1e2dcb)=>_0x28861c(_0x1a30fa,_0x1e2dcb,_0x18f2e7),_0x1cd44e=(_0x329b35,_0x1e8dca,_0x466ec6)=>_0x599a1b(_0x329b35,typeof _0x1e8dca!='symbol'?_0x1e8dca+'':_0x1e8dca,_0x466ec6);const _0x53cf9a=_0x283fd3(0x111);_0x39654e['UniverLiveSharePlugin']=class extends _0x6a378b['Plugin']{constructor(_0x2ac587=_0x4b5cbc,_0x2b4140,_0x2b995c){const _0xe87202=_0x283fd3;super(),this[_0xe87202(0x136)]=_0x2ac587,this[_0xe87202(0x16b)]=_0x2b4140,this[_0xe87202(0x1e5)]=_0x2b995c;const {..._0x3933df}=_0x6a378b[_0xe87202(0x15b)]({},_0x4b5cbc,this[_0xe87202(0x136)]);this[_0xe87202(0x1e5)]['setConfig'](_0x1c055d,_0x3933df);}[_0x283fd3(0x19c)](){const _0x12f8a5=_0x283fd3;_0x6a378b['registerDependencies'](this['_injector'],_0x6a378b['mergeOverrideWithDependencies']([[_0xe8c135],[_0x39654e[_0x12f8a5(0x1e3)]],[_0x1e053a],[_0x39654e[_0x12f8a5(0x12a)]]],this[_0x12f8a5(0x136)][_0x12f8a5(0x158)])),_0x6a378b[_0x12f8a5(0x13a)](this[_0x12f8a5(0x16b)],[[_0x1e053a]]);}[_0x283fd3(0x12e)](){const _0xf38c83=_0x283fd3;_0x6a378b[_0xf38c83(0x13a)](this[_0xf38c83(0x16b)],[[_0x39654e[_0xf38c83(0x12a)]]]);}},_0x1cd44e(_0x39654e[_0x283fd3(0x1a9)],_0x283fd3(0x1e1),_0x6a378b[_0x283fd3(0x1ae)][_0x283fd3(0x1e4)]),_0x1cd44e(_0x39654e[_0x283fd3(0x1a9)],_0x283fd3(0x16d),_0x53cf9a),_0x39654e['UniverLiveSharePlugin']=_0x3322c2([_0x6a378b['DependentOn'](_0x3afd91[_0x283fd3(0x171)]),_0x396e03(0x1,_0x6a378b[_0x283fd3(0x143)](_0x6a378b['Injector'])),_0x396e03(0x2,_0x6a378b['IConfigService'])],_0x39654e[_0x283fd3(0x1a9)]),_0x39654e[_0x283fd3(0x17c)]=_0x2e8439,_0x39654e[_0x283fd3(0x112)]=_0xe8c135,_0x39654e['LiveShareStatus']=_0x58a4b4,Object[_0x283fd3(0x125)](_0x39654e,Symbol[_0x283fd3(0x11b)],{'value':'Module'});}));
|
|
1
|
+
function _0x2592(_0x522808,_0x56a664){_0x522808=_0x522808-0x1dc;const _0x20aae3=_0x20aa();let _0x2592e2=_0x20aae3[_0x522808];return _0x2592e2;}function _0x20aa(){const _0x2eba7b=['LIVESHARE_OPERATION','parse','idSuffix','defIds','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','SetZoomRatioOperation','getTypeOfUnitAdded$','InsertSheetMutation','registerDependencies','params','Fragment','subscribe','includes','type','IUniverInstanceService','LiveShareController','button','_collabSession','get','currentColor','has','_status','assign','LiveShareIcon','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','LiveShareStatus','_entities','registerInitialStateReporter','You\x27re\x20following\x20the\x20presenter','forEach','getMemberID','stopPresenting','useState','1474189lWMQES','none','_handleNewHost','getUnitId','_commandDisposable','_collabSessionService','0\x200\x2017\x2017','OPERATION','shouldShareOperation','url(#$1','UNIVER_SHEET','use','toStringTag','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','UNIVER_LIVE_SHARE_PLUGIN','_config','toDisposable','3rPkZnG','_startLiveShareCoordinator','memberID','react','init','stopFollowing','fill','199090dGpVZZ','end','jsx','BehaviorSubject','Dropdown','React','UniverSheetsUi','pipe','children','LIVESHARE_TERMINATE','jsxs','dispose$','rxjs/operators','override','UniverIcon','setConfig','parseProtocolChangeset','_handleOperation','Stop\x20following','_handleNewChangeSets','_configService','CollaborationEvent','Start\x20following','disposeWithMe','Button','live-share-icon','UniverInstanceType','_uiPartsService','registerComponent','set','339736CpopiK','_beIdle','onRendered','replace','presenting','IConfigService','amd','operations','RxDisposable','dispose','You\x27re\x20not\x20following\x20the\x20presenter','length','following','onStarting','idle','OFFLINE','HEADER_MENU','xlink:href','from','_status$','mask','exports','data','_presenter','live-share.config','Disposable','getConfig','sheet','univer-size-4','startFollowing','@univerjs/sheets','text','getStatus','unsubscribe','getLiveShareCoordinatorSync','react/jsx-runtime','_commandService','not-following','div','add','default','NOT_FOLLOWING','Injector','evenodd','SetScrollOperation','status$','complete','forwardRef','UniverProCollaboration','5853414IAOPAw','delete','4968420dhxYdN','path','trim','registerSharedOperation','Inject','DependentOn','map','UniverLiveSharePlugin','useObservable','clear','string','_sharedOperations','current','@univerjs/core','UniverCollaborationClientPlugin','105sTGopY','@univerjs/design','1em','colorChannel1','_stopFollowing','rxjs','Stop\x20presenting','executeCommand','tag','getCurrentTypeOfUnit$','_univerInstanceService','_mountLiveShare','http://www.w3.org/2000/svg','onCommandExecuted','defineProperty','_startFollowing','_handleTerminate','asObservable','_handleOnline','2773104dzKgaT','getOwnPropertyDescriptor','touchDependencies','stringify','_init','UniverProLiveShare','DisposableCollection','toString','takeUntil','send','mergeOverrideWithDependencies','createElement','then','defs','SetWorksheetActiveOperation','entries','IDLE','UniverSheets','FOLLOWING','displayName','You\x27re\x20presenting\x20the\x20document','BuiltInUIPart','LIVESHARE_FETCH_OPERATIONS','@univerjs-pro/collaboration-client','_injector','CollaborationSessionService','_reporters','LIVESHARE_NEW_HOST','_unitID','presenter','DesktopLiveShareController','LiveShareCoordinator','attrs','offline','_handleOffline','ONLINE','LiveShareService','19948959zdVnew','univer-mb-3\x20univer-w-full\x20univer-text-sm','symbol','@univerjs-pro/collaboration','Start','unitId','find','_stopPresenting','svg','_startPresenting','clsx','createInstance','next','merge','_fetchOperations','SessionStatus','_liveShareService','getValue'];_0x20aa=function(){return _0x2eba7b;};return _0x20aa();}(function(_0x4fb74e,_0x2c6a7d){const _0x47d417=_0x2592,_0x549642=_0x4fb74e();while(!![]){try{const _0x51482c=-parseInt(_0x47d417(0x23a))/0x1+parseInt(_0x47d417(0x252))/0x2*(parseInt(_0x47d417(0x24b))/0x3)+-parseInt(_0x47d417(0x1e2))/0x4+parseInt(_0x47d417(0x2a3))/0x5+-parseInt(_0x47d417(0x2a1))/0x6+-parseInt(_0x47d417(0x2b2))/0x7*(-parseInt(_0x47d417(0x270))/0x8)+parseInt(_0x47d417(0x207))/0x9;if(_0x51482c===_0x2c6a7d)break;else _0x549642['push'](_0x549642['shift']());}catch(_0x584d46){_0x549642['push'](_0x549642['shift']());}}}(_0x20aa,0xc43a7),function(_0x309f0d,_0x24724c){const _0xf93b34=_0x2592;typeof exports=='object'&&typeof module<'u'?_0x24724c(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0xf93b34(0x276)]?define([_0xf93b34(0x285),_0xf93b34(0x2b0),'@univerjs/ui',_0xf93b34(0x293),_0xf93b34(0x2b3),_0xf93b34(0x24e),_0xf93b34(0x20a),_0xf93b34(0x1f9),_0xf93b34(0x28e),_0xf93b34(0x2b7),_0xf93b34(0x25e),'@univerjs/sheets-ui'],_0x24724c):(_0x309f0d=typeof globalThis<'u'?globalThis:_0x309f0d||self,_0x24724c(_0x309f0d[_0xf93b34(0x1e7)]={},_0x309f0d['UniverCore'],_0x309f0d['UniverUi'],_0x309f0d[_0xf93b34(0x257)],_0x309f0d['UniverDesign'],_0x309f0d[_0xf93b34(0x257)],_0x309f0d[_0xf93b34(0x2a0)],_0x309f0d['UniverProCollaborationClient'],_0x309f0d[_0xf93b34(0x1f3)],_0x309f0d[_0xf93b34(0x2b7)],_0x309f0d[_0xf93b34(0x2b7)]['operators'],_0x309f0d[_0xf93b34(0x258)]));}(this,function(_0x219a3f,_0x40790f,_0x3ef861,_0x3ecb81,_0x49fd3f,_0x39f6be,_0x2b554d,_0x4e4830,_0x37f478,_0xd1ada7,_0x529592,_0x486c38){'use strict';const _0x198c54=_0x2592;var _0x43ce59=Object[_0x198c54(0x1dd)],_0x354d89=(_0x31073c,_0x8f204e,_0x1a4a0f)=>_0x8f204e in _0x31073c?_0x43ce59(_0x31073c,_0x8f204e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a4a0f}):_0x31073c[_0x8f204e]=_0x1a4a0f,_0x5f2bc9=(_0x965430,_0xf817dc,_0x533c0a)=>_0x354d89(_0x965430,typeof _0xf817dc!=_0x198c54(0x209)?_0xf817dc+'':_0xf817dc,_0x533c0a);function _0x524017({ref:_0x976cd8,..._0x203abc}){const _0x5f2f40=_0x198c54,{icon:_0x39aca5,id:_0x212203,className:_0x5e3665,extend:_0x5d5a9e,..._0x1a8358}=_0x203abc,_0xf6d5bb=('univerjs-icon\x20univerjs-icon-'+_0x212203+'\x20'+(_0x5e3665||''))[_0x5f2f40(0x2a5)](),_0x575ee7=_0x39f6be['useRef']('_'+_0x3720e2());return _0x6656b4(_0x39aca5,''+_0x212203,{'defIds':_0x39aca5[_0x5f2f40(0x21c)],'idSuffix':_0x575ee7[_0x5f2f40(0x2af)]},{'ref':_0x976cd8,'className':_0xf6d5bb,..._0x1a8358},_0x5d5a9e);}function _0x6656b4(_0x7d6510,_0x3ed633,_0x880c3a,_0x3d34d8,_0x54c7df){const _0x37cfd8=_0x198c54;return _0x39f6be['createElement'](_0x7d6510[_0x37cfd8(0x2ba)],{'key':_0x3ed633,..._0x231505(_0x7d6510,_0x880c3a,_0x54c7df),..._0x3d34d8},(_0x5c3864(_0x7d6510,_0x880c3a)[_0x37cfd8(0x25a)]||[])[_0x37cfd8(0x2a9)]((_0x2e0fd1,_0x3f2543)=>_0x6656b4(_0x2e0fd1,_0x3ed633+'-'+_0x7d6510[_0x37cfd8(0x2ba)]+'-'+_0x3f2543,_0x880c3a,void 0x0,_0x54c7df)));}function _0x231505(_0x13511c,_0x588424,_0x134348){const _0x2e0704=_0x198c54,_0x1949cc={..._0x13511c[_0x2e0704(0x202)]};_0x134348!=null&&_0x134348[_0x2e0704(0x2b5)]&&_0x1949cc[_0x2e0704(0x251)]==='colorChannel1'&&(_0x1949cc[_0x2e0704(0x251)]=_0x134348[_0x2e0704(0x2b5)]),_0x13511c['tag']===_0x2e0704(0x284)&&_0x1949cc['id']&&(_0x1949cc['id']=_0x1949cc['id']+_0x588424['idSuffix']),Object[_0x2e0704(0x1f1)](_0x1949cc)[_0x2e0704(0x236)](([_0x1b9b82,_0x3c37e5])=>{const _0xcbf35d=_0x2e0704;_0x1b9b82===_0xcbf35d(0x284)&&typeof _0x3c37e5==_0xcbf35d(0x2ad)&&(_0x1949cc[_0x1b9b82]=_0x3c37e5[_0xcbf35d(0x273)](/url\(#(.*)\)/,_0xcbf35d(0x243)+_0x588424[_0xcbf35d(0x21b)]+')'));});const {defIds:_0x2c9b39}=_0x588424;return!_0x2c9b39||_0x2c9b39[_0x2e0704(0x27b)]===0x0||(_0x13511c['tag']===_0x2e0704(0x245)&&_0x1949cc[_0x2e0704(0x281)]&&(_0x1949cc[_0x2e0704(0x281)]=_0x1949cc[_0x2e0704(0x281)]+_0x588424[_0x2e0704(0x21b)]),Object[_0x2e0704(0x1f1)](_0x1949cc)['forEach'](([_0x20f83a,_0x429521])=>{const _0x253126=_0x2e0704;typeof _0x429521==_0x253126(0x2ad)&&(_0x1949cc[_0x20f83a]=_0x429521[_0x253126(0x273)](/url\(#(.*)\)/,_0x253126(0x243)+_0x588424['idSuffix']+')'));})),_0x1949cc;}function _0x5c3864(_0x31e4d9,_0x6dd9b){const _0x1fc81b=_0x198c54;var _0x39babd;const {defIds:_0x5de7bb}=_0x6dd9b;return!_0x5de7bb||_0x5de7bb[_0x1fc81b(0x27b)]===0x0?_0x31e4d9:_0x31e4d9['tag']===_0x1fc81b(0x1ef)&&((_0x39babd=_0x31e4d9[_0x1fc81b(0x25a)])!=null&&_0x39babd[_0x1fc81b(0x27b)])?{..._0x31e4d9,'children':_0x31e4d9[_0x1fc81b(0x25a)][_0x1fc81b(0x2a9)](_0x12f537=>typeof _0x12f537[_0x1fc81b(0x202)]['id']=='string'&&_0x5de7bb&&_0x5de7bb[_0x1fc81b(0x225)](_0x12f537[_0x1fc81b(0x202)]['id'])?{..._0x12f537,'attrs':{..._0x12f537[_0x1fc81b(0x202)],'id':_0x12f537[_0x1fc81b(0x202)]['id']+_0x6dd9b[_0x1fc81b(0x21b)]}}:_0x12f537)}:_0x31e4d9;}function _0x3720e2(){const _0x1967bb=_0x198c54;return Math['random']()[_0x1967bb(0x1e9)](0x24)['substring'](0x2,0x8);}_0x524017[_0x198c54(0x1f5)]=_0x198c54(0x260);const _0x854dd1={'tag':_0x198c54(0x20f),'attrs':{'xmlns':_0x198c54(0x2be),'fill':_0x198c54(0x23b),'viewBox':_0x198c54(0x240),'width':_0x198c54(0x2b4),'height':'1em'},'children':[{'tag':_0x198c54(0x2a4),'attrs':{'fill':_0x198c54(0x22c),'d':_0x198c54(0x231)}},{'tag':_0x198c54(0x2a4),'attrs':{'fill':'currentColor','d':_0x198c54(0x21d),'fillRule':_0x198c54(0x29b),'clipRule':'evenodd'}}]},_0x5b6f8f=_0x39f6be[_0x198c54(0x29f)](function(_0x5622ca,_0x314f4d){const _0x21a35c=_0x198c54;return _0x39f6be[_0x21a35c(0x1ed)](_0x524017,Object[_0x21a35c(0x22f)]({},_0x5622ca,{'id':_0x21a35c(0x26b),'ref':_0x314f4d,'icon':_0x854dd1}));});_0x5b6f8f[_0x198c54(0x1f5)]=_0x198c54(0x230);class _0x3f94ee extends _0x40790f['Disposable']{constructor(){const _0x41a0b2=_0x198c54;super(...arguments),_0x5f2bc9(this,_0x41a0b2(0x2ae),new Set()),_0x5f2bc9(this,_0x41a0b2(0x1fc),new Set());}[_0x198c54(0x2a6)](_0x58daca){const _0x4e3c68=_0x198c54;return this[_0x4e3c68(0x2ae)][_0x4e3c68(0x297)](_0x58daca),_0x40790f['toDisposable'](()=>this['_sharedOperations'][_0x4e3c68(0x2a2)](_0x58daca));}[_0x198c54(0x234)](_0x1925a9){const _0x329c9b=_0x198c54;return this[_0x329c9b(0x1fc)]['add'](_0x1925a9),_0x40790f['toDisposable'](()=>this[_0x329c9b(0x1fc)][_0x329c9b(0x2a2)](_0x1925a9));}[_0x198c54(0x242)](_0x12c4ec){const _0x10b331=_0x198c54;return this[_0x10b331(0x2ae)][_0x10b331(0x22d)](_0x12c4ec);}['getInitialStates'](_0x231d55){const _0x1e1297=_0x198c54;return Array[_0x1e1297(0x282)](this[_0x1e1297(0x1fc)])[_0x1e1297(0x2a9)](_0x1332ce=>_0x1332ce(_0x231d55));}}var _0x22ed5a=Object[_0x198c54(0x1e3)],_0x5e15f8=(_0x490c8a,_0x3e8292,_0x4cd231,_0x33920a)=>{for(var _0xad1de8=_0x33920a>0x1?void 0x0:_0x33920a?_0x22ed5a(_0x3e8292,_0x4cd231):_0x3e8292,_0x53dcee=_0x490c8a['length']-0x1,_0x47c2f1;_0x53dcee>=0x0;_0x53dcee--)(_0x47c2f1=_0x490c8a[_0x53dcee])&&(_0xad1de8=_0x47c2f1(_0xad1de8)||_0xad1de8);return _0xad1de8;},_0x68fa75=(_0x2ab88f,_0x30d12d)=>(_0x46a450,_0x3fd667)=>_0x30d12d(_0x46a450,_0x3fd667,_0x2ab88f);_0x219a3f[_0x198c54(0x228)]=class extends _0x40790f[_0x198c54(0x278)]{constructor(_0x3826ec,_0x2e7097,_0x462bbd){const _0x527d3d=_0x198c54;super(),_0x5f2bc9(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3826ec,this[_0x527d3d(0x1fa)]=_0x2e7097,this[_0x527d3d(0x23f)]=_0x462bbd,this[_0x527d3d(0x1e6)]());}async['getLiveShareCoordinator'](_0x144dde){const _0x450030=_0x198c54;return this['_entities'][_0x450030(0x22d)](_0x144dde)||await this[_0x450030(0x24c)](_0x144dde),this[_0x450030(0x233)][_0x450030(0x22b)](_0x144dde);}[_0x198c54(0x292)](_0x42d79d){const _0x2f5602=_0x198c54;var _0x68c607;return(_0x68c607=this['_entities'][_0x2f5602(0x22b)](_0x42d79d))!=null?_0x68c607:null;}[_0x198c54(0x1e6)](){const _0xbd181c=_0x198c54;this[_0xbd181c(0x2bc)][_0xbd181c(0x21f)](_0x40790f[_0xbd181c(0x26c)][_0xbd181c(0x244)])[_0xbd181c(0x259)](_0x529592[_0xbd181c(0x1ea)](this['dispose$']))['subscribe'](async _0x1ac3dc=>{const _0x2cf771=_0xbd181c,_0x43f5e0=_0x1ac3dc[_0x2cf771(0x23d)]();this[_0x2cf771(0x233)][_0x2cf771(0x22d)](_0x43f5e0)||this[_0x2cf771(0x24c)](_0x43f5e0);}),this[_0xbd181c(0x2bc)]['getTypeOfUnitDisposed$'](_0x40790f[_0xbd181c(0x26c)]['UNIVER_SHEET'])[_0xbd181c(0x259)](_0x529592['takeUntil'](this[_0xbd181c(0x25d)]))[_0xbd181c(0x224)](_0x2bcba2=>{const _0x402929=_0xbd181c,_0x50f337=_0x2bcba2[_0x402929(0x23d)](),_0x323b16=this[_0x402929(0x233)]['get'](_0x50f337);_0x323b16==null||_0x323b16[_0x402929(0x279)]();});}async[_0x198c54(0x24c)](_0x25f771){const _0x4a3c6e=_0x198c54,_0xfa644b=await this[_0x4a3c6e(0x23f)]['requireSession'](_0x25f771),_0x5ae528=this[_0x4a3c6e(0x1fa)][_0x4a3c6e(0x212)](_0x219a3f[_0x4a3c6e(0x201)],_0x25f771,_0xfa644b);return _0x5ae528[_0x4a3c6e(0x24f)](),this['_entities'][_0x4a3c6e(0x26f)](_0x25f771,_0x5ae528),_0x5ae528;}},_0x219a3f[_0x198c54(0x228)]=_0x5e15f8([_0x68fa75(0x0,_0x40790f[_0x198c54(0x227)]),_0x68fa75(0x1,_0x40790f[_0x198c54(0x2a7)](_0x40790f['Injector'])),_0x68fa75(0x2,_0x40790f[_0x198c54(0x2a7)](_0x4e4830[_0x198c54(0x1fb)]))],_0x219a3f[_0x198c54(0x228)]);var _0x33922d=(_0x4ac361=>(_0x4ac361['OFFLINE']=_0x198c54(0x203),_0x4ac361[_0x198c54(0x1f2)]=_0x198c54(0x27e),_0x4ac361[_0x198c54(0x1f4)]='following',_0x4ac361[_0x198c54(0x299)]=_0x198c54(0x295),_0x4ac361['PRESENTING']=_0x198c54(0x274),_0x4ac361))(_0x33922d||{});const _0x57f8f8='SAME_OPERATION_SHARE_INTERVAL',_0x100476=0xc8;_0x219a3f[_0x198c54(0x201)]=class extends _0x40790f[_0x198c54(0x278)]{constructor(_0x23ddeb,_0x2a7f82,_0x589d54,_0x5c493d,_0x111a5e){const _0x5e3b65=_0x198c54;super(),_0x5f2bc9(this,_0x5e3b65(0x283),new _0xd1ada7[(_0x5e3b65(0x255))](_0x5e3b65(0x27e))),_0x5f2bc9(this,_0x5e3b65(0x29d),this[_0x5e3b65(0x283)][_0x5e3b65(0x1e0)]()),_0x5f2bc9(this,'_init',!0x1),_0x5f2bc9(this,_0x5e3b65(0x23e),null),_0x5f2bc9(this,_0x5e3b65(0x287),null),(this[_0x5e3b65(0x1fe)]=_0x23ddeb,this[_0x5e3b65(0x22a)]=_0x2a7f82,this[_0x5e3b65(0x266)]=_0x589d54,this[_0x5e3b65(0x217)]=_0x5c493d,this[_0x5e3b65(0x294)]=_0x111a5e);}get[_0x198c54(0x22e)](){const _0x41867e=_0x198c54;return this[_0x41867e(0x283)][_0x41867e(0x218)]();}[_0x198c54(0x279)](){const _0x2765ff=_0x198c54;var _0x3f7bf4;(_0x3f7bf4=this[_0x2765ff(0x23e)])==null||_0x3f7bf4[_0x2765ff(0x279)](),this[_0x2765ff(0x283)]['next'](_0x2765ff(0x27e)),this[_0x2765ff(0x283)][_0x2765ff(0x29e)]();}[_0x198c54(0x290)](){return this['_status'];}[_0x198c54(0x24f)](){const _0x5118a0=_0x198c54;this['_init']||(this[_0x5118a0(0x1e6)]=!0x0,this[_0x5118a0(0x22a)]['sessionStatus$'][_0x5118a0(0x259)](_0x529592[_0x5118a0(0x1ea)](this[_0x5118a0(0x25d)]))[_0x5118a0(0x224)](_0x4b5394=>{const _0x219a12=_0x5118a0;switch(_0x4b5394){case _0x4e4830[_0x219a12(0x216)]['OFFLINE']:this[_0x219a12(0x204)]();break;case _0x4e4830[_0x219a12(0x216)][_0x219a12(0x205)]:this[_0x219a12(0x1e1)]();break;}}),this[_0x5118a0(0x22a)]['event$'][_0x5118a0(0x259)](_0x529592[_0x5118a0(0x1ea)](this[_0x5118a0(0x25d)]))[_0x5118a0(0x224)](_0x2893d5=>{const _0x5d3d11=_0x5118a0,{eventID:_0xf3796f}=_0x2893d5;switch(_0xf3796f){case _0x2b554d['CollaborationEvent'][_0x5d3d11(0x1fd)]:this[_0x5d3d11(0x23c)](_0x2893d5);break;case _0x2b554d['CollaborationEvent'][_0x5d3d11(0x219)]:this['_handleOperation'](_0x2893d5);break;case _0x2b554d[_0x5d3d11(0x267)][_0x5d3d11(0x25b)]:this[_0x5d3d11(0x1df)]();break;case _0x2b554d[_0x5d3d11(0x267)]['NEW_CHANGESETS']:this[_0x5d3d11(0x265)](_0x2893d5);break;}}));}['tryStartPresenting'](){const _0xb36847=_0x198c54;this[_0xb36847(0x22a)][_0xb36847(0x1eb)]({'eventID':_0x2b554d[_0xb36847(0x267)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xb36847(0x1fe)],'userID':this['_collabSession'][_0xb36847(0x237)]()}},this[_0xb36847(0x1fe)]);}['stopPresenting'](){const _0x2e05c5=_0x198c54;this[_0x2e05c5(0x22e)]===_0x2e05c5(0x274)&&(this[_0x2e05c5(0x283)][_0x2e05c5(0x213)](_0x2e05c5(0x27e)),this[_0x2e05c5(0x22a)][_0x2e05c5(0x1eb)]({'eventID':_0x2b554d[_0x2e05c5(0x267)][_0x2e05c5(0x25b)],'data':{'unitID':this['_unitID']}},this[_0x2e05c5(0x1fe)]));}[_0x198c54(0x28d)](){const _0x35013e=_0x198c54;this['_status']==='not-following'&&(this['_status$'][_0x35013e(0x213)]('following'),this[_0x35013e(0x1de)]());}[_0x198c54(0x250)](){const _0x458471=_0x198c54;this[_0x458471(0x22e)]===_0x458471(0x27c)&&this[_0x458471(0x2b6)]();}[_0x198c54(0x23c)](_0x26412c){const _0x223e7b=_0x198c54,{presenter:_0x190ba7}=_0x26412c[_0x223e7b(0x286)],_0x3d5ceb=this[_0x223e7b(0x22a)][_0x223e7b(0x237)]();this['_presenter']=_0x190ba7,_0x190ba7===_0x3d5ceb?(this[_0x223e7b(0x2b6)](),this[_0x223e7b(0x210)]()):this[_0x223e7b(0x22e)]!==_0x223e7b(0x295)&&(this[_0x223e7b(0x20e)](),this[_0x223e7b(0x1de)]());}['_fetchOperations'](){const _0x315391=_0x198c54,_0x444a3d={'eventID':_0x2b554d[_0x315391(0x267)][_0x315391(0x1f8)]};this['_collabSession'][_0x315391(0x1eb)](_0x444a3d,this[_0x315391(0x1fe)]);}[_0x198c54(0x1df)](){const _0x54c03b=_0x198c54;this['_presenter']=null,this['_status']!==_0x54c03b(0x274)&&this['_beIdle']();}[_0x198c54(0x265)](_0x24d877){const _0x43505f=_0x198c54;if(this['_status']==='following'&&this['_presenter']===_0x24d877['data'][_0x43505f(0x24d)]){const _0x52afda=_0x2b554d[_0x43505f(0x262)](_0x24d877[_0x43505f(0x286)])['mutations']['reverse']()[_0x43505f(0x20d)](_0x4c78ce=>_0x4c78ce['id']===_0x37f478[_0x43505f(0x220)]['id']);if(_0x52afda){const _0x339b96=_0x52afda[_0x43505f(0x222)][_0x43505f(0x20c)],_0x178d40=_0x52afda[_0x43505f(0x222)][_0x43505f(0x28b)]['id'];setTimeout(()=>{const _0x50debe=_0x43505f;this[_0x50debe(0x294)][_0x50debe(0x2b9)](_0x37f478['SetWorksheetActiveOperation']['id'],{'unitId':_0x339b96,'subUnitId':_0x178d40},{'fromCollab':!0x0});});}}}[_0x198c54(0x210)](){const _0x299c78=_0x198c54;this[_0x299c78(0x283)][_0x299c78(0x213)](_0x299c78(0x274));const _0x59085d=new Map(),_0x641ca2=this['_commandDisposable']=new _0x40790f[(_0x299c78(0x1e8))]();_0x641ca2['add'](_0x40790f[_0x299c78(0x24a)](()=>{const _0x254c49=_0x299c78;_0x59085d['forEach'](_0x244935=>_0x244935['complete']()),_0x59085d[_0x254c49(0x2ac)]();})),_0x641ca2[_0x299c78(0x297)](this[_0x299c78(0x294)][_0x299c78(0x1dc)](_0x590070=>{const _0x5dcb8d=_0x299c78;var _0x1dac49;if(_0x590070[_0x5dcb8d(0x226)]!==_0x40790f['CommandType'][_0x5dcb8d(0x241)]||!this[_0x5dcb8d(0x217)][_0x5dcb8d(0x242)](_0x590070['id']))return;const {id:_0xb4aec9}=_0x590070;let _0x14e3b7;_0x59085d[_0x5dcb8d(0x22d)](_0xb4aec9)?_0x14e3b7=_0x59085d[_0x5dcb8d(0x22b)](_0xb4aec9):(_0x14e3b7=new _0xd1ada7['Subject'](),_0x59085d[_0x5dcb8d(0x26f)](_0xb4aec9,_0x14e3b7),_0x14e3b7['pipe'](_0x529592['throttleTime']((_0x1dac49=this[_0x5dcb8d(0x266)][_0x5dcb8d(0x28a)](_0x57f8f8))!=null?_0x1dac49:_0x100476,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5dcb8d(0x224)](_0x79539a=>{const _0x5c4a38=_0x5dcb8d;this[_0x5c4a38(0x22a)][_0x5c4a38(0x1eb)]({'eventID':_0x2b554d[_0x5c4a38(0x267)][_0x5c4a38(0x219)],'data':{'unitID':this['_unitID'],'operations':{[_0x79539a['id']]:{'id':_0x79539a['id'],'params':JSON['stringify'](_0x79539a[_0x5c4a38(0x222)])}}}},this[_0x5c4a38(0x1fe)]);})),_0x14e3b7['next'](_0x590070);})),this[_0x299c78(0x217)]['getInitialStates'](this[_0x299c78(0x1fe)])[_0x299c78(0x236)](_0x3030fa=>this[_0x299c78(0x22a)][_0x299c78(0x1eb)]({'eventID':_0x2b554d[_0x299c78(0x267)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x299c78(0x1fe)],'operations':{[_0x3030fa['id']]:{'id':_0x3030fa['id'],'params':JSON[_0x299c78(0x1e5)](_0x3030fa['params'])}}}},this['_unitID']));}[_0x198c54(0x20e)](){const _0xf8d8ea=_0x198c54;var _0x370861;this['_status$']['next'](_0xf8d8ea(0x27e)),(_0x370861=this['_commandDisposable'])==null||_0x370861[_0xf8d8ea(0x279)](),this[_0xf8d8ea(0x23e)]=null;}[_0x198c54(0x1de)](){const _0x2fa1e0=_0x198c54;var _0xa437aa;(_0xa437aa=this['_commandDisposable'])==null||_0xa437aa['dispose'](),this[_0x2fa1e0(0x283)][_0x2fa1e0(0x213)](_0x2fa1e0(0x27c));}[_0x198c54(0x271)](){const _0x1766cc=_0x198c54;var _0x4de27d;this[_0x1766cc(0x283)][_0x1766cc(0x213)]('idle'),(_0x4de27d=this[_0x1766cc(0x23e)])==null||_0x4de27d[_0x1766cc(0x279)](),this[_0x1766cc(0x23e)]=null;}[_0x198c54(0x2b6)](){const _0x201b56=_0x198c54;var _0x1403ac;this[_0x201b56(0x283)]['next'](_0x201b56(0x295)),(_0x1403ac=this[_0x201b56(0x23e)])==null||_0x1403ac[_0x201b56(0x279)]();}[_0x198c54(0x263)](_0x5281e1){const _0x1672e0=_0x198c54;if(['presenting','not-following',_0x1672e0(0x203)][_0x1672e0(0x225)](this[_0x1672e0(0x22e)])||!_0x5281e1[_0x1672e0(0x286)][_0x1672e0(0x1ff)]||_0x5281e1['data'][_0x1672e0(0x1ff)]===this[_0x1672e0(0x22a)]['getMemberID']())return;this[_0x1672e0(0x22e)]===_0x1672e0(0x27e)&&this[_0x1672e0(0x1de)]();const _0x35bbbd=_0x5281e1[_0x1672e0(0x286)][_0x1672e0(0x277)];Object['values'](_0x35bbbd)[_0x1672e0(0x236)](_0x31b782=>{const _0x8d5bcf=_0x1672e0;this[_0x8d5bcf(0x294)][_0x8d5bcf(0x2b9)](_0x31b782['id'],_0x31b782[_0x8d5bcf(0x222)]?JSON[_0x8d5bcf(0x21a)](_0x31b782[_0x8d5bcf(0x222)]):null,{'fromCollab':!0x0});});}[_0x198c54(0x204)](){const _0x3b137f=_0x198c54;var _0x4b8bae;this['_status$']['next']('offline'),(_0x4b8bae=this[_0x3b137f(0x23e)])==null||_0x4b8bae[_0x3b137f(0x279)]();}['_handleOnline'](){const _0x1b7037=_0x198c54;this['_status$'][_0x1b7037(0x213)](_0x1b7037(0x27e)),this[_0x1b7037(0x215)]();}},_0x219a3f[_0x198c54(0x201)]=_0x5e15f8([_0x68fa75(0x2,_0x40790f['IConfigService']),_0x68fa75(0x3,_0x40790f['Inject'](_0x3f94ee)),_0x68fa75(0x4,_0x40790f['ICommandService'])],_0x219a3f[_0x198c54(0x201)]);function _0x19a099(){const _0x11e00c=_0x198c54,_0x19d73a=_0x3ef861['useDependency'](_0x219a3f[_0x11e00c(0x228)]),_0x1da5af=_0x3ef861['useDependency'](_0x40790f[_0x11e00c(0x227)]),_0x4bd4d9=_0x3ef861[_0x11e00c(0x2ab)](()=>_0x1da5af[_0x11e00c(0x2bb)](_0x40790f[_0x11e00c(0x26c)][_0x11e00c(0x244)]),void 0x0,!0x1,[]),[_0x3077d7,_0x39c720]=_0x39f6be[_0x11e00c(0x239)](null),[_0x2044b7,_0x207958]=_0x39f6be['useState'](_0x33922d[_0x11e00c(0x1f2)]),_0x19f741=_0x39f6be['useRef'](null);return _0x39f6be['useEffect'](()=>(_0x4bd4d9&&_0x19d73a['getLiveShareCoordinator'](_0x4bd4d9[_0x11e00c(0x23d)]())[_0x11e00c(0x1ee)](_0x263c17=>{const _0x21182b=_0x11e00c;_0x39c720(_0x263c17),_0x19f741[_0x21182b(0x2af)]=_0x263c17[_0x21182b(0x29d)][_0x21182b(0x224)](_0x2ac303=>{_0x207958(_0x2ac303);});}),()=>{const _0x58555b=_0x11e00c;var _0x1cbb16;(_0x1cbb16=_0x19f741['current'])==null||_0x1cbb16[_0x58555b(0x291)](),_0x19f741['current']=null;}),[_0x4bd4d9,_0x19d73a]),_0x3077d7?_0x3ecb81[_0x11e00c(0x254)](_0x49fd3f[_0x11e00c(0x256)],{'align':_0x11e00c(0x253),'disabled':_0x2044b7===_0x33922d[_0x11e00c(0x27f)],'className':_0x11e00c(0x247),'overlay':_0x3ecb81['jsx'](_0x19e6ef,{'status':_0x2044b7,'coordinator':_0x3077d7}),'children':_0x3ecb81[_0x11e00c(0x254)](_0x11e00c(0x229),{'className':_0x49fd3f[_0x11e00c(0x211)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2044b7===_0x33922d[_0x11e00c(0x27f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2044b7!==_0x33922d['OFFLINE']}),'type':'button','children':_0x3ecb81[_0x11e00c(0x254)](_0x5b6f8f,{'className':_0x11e00c(0x28c)})})}):null;}function _0x19e6ef(_0x5330c3){const _0x41239f=_0x198c54,{status:_0x71be2b,coordinator:_0x32f1f1}=_0x5330c3;switch(_0x71be2b){case _0x33922d[_0x41239f(0x1f2)]:return _0x3ecb81[_0x41239f(0x254)](_0x34bc18,{'coordinator':_0x32f1f1});case _0x33922d[_0x41239f(0x1f4)]:return _0x3ecb81[_0x41239f(0x254)](_0x448354,{'coordinator':_0x32f1f1});case _0x33922d[_0x41239f(0x299)]:return _0x3ecb81['jsx'](_0x24735e,{'coordinator':_0x32f1f1});case _0x33922d['OFFLINE']:return _0x3ecb81[_0x41239f(0x254)](_0x59f1af,{});case _0x33922d['PRESENTING']:return _0x3ecb81[_0x41239f(0x254)](_0x4d8326,{'coordinator':_0x32f1f1});default:return null;}}function _0x34bc18(_0x40f896){const _0x26fbb9=_0x198c54,{coordinator:_0xf6c2b8}=_0x40f896;return _0x3ecb81['jsxs'](_0x3ecb81[_0x26fbb9(0x223)],{'children':[_0x3ecb81[_0x26fbb9(0x254)](_0x26fbb9(0x296),{'className':_0x26fbb9(0x208),'children':'Present\x20this\x20document'}),_0x3ecb81['jsx'](_0x49fd3f[_0x26fbb9(0x26a)],{'onClick':()=>_0xf6c2b8['tryStartPresenting'](),'children':_0x26fbb9(0x20b)})]});}function _0x448354(_0x2e86f2){const _0x321e6a=_0x198c54,{coordinator:_0x558e8a}=_0x2e86f2;return _0x3ecb81[_0x321e6a(0x25c)](_0x3ecb81[_0x321e6a(0x223)],{'children':[_0x3ecb81[_0x321e6a(0x254)](_0x321e6a(0x296),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x321e6a(0x235)}),_0x3ecb81[_0x321e6a(0x254)](_0x49fd3f[_0x321e6a(0x26a)],{'onClick':()=>_0x558e8a[_0x321e6a(0x250)](),'children':_0x321e6a(0x264)})]});}function _0x24735e(_0x8e77c8){const _0x3e080d=_0x198c54,{coordinator:_0x4c2391}=_0x8e77c8;return _0x3ecb81['jsxs'](_0x3ecb81[_0x3e080d(0x223)],{'children':[_0x3ecb81[_0x3e080d(0x254)](_0x3e080d(0x296),{'className':_0x3e080d(0x208),'children':_0x3e080d(0x27a)}),_0x3ecb81['jsx'](_0x49fd3f['Button'],{'variant':_0x3e080d(0x28f),'onClick':()=>_0x4c2391['startFollowing'](),'children':_0x3e080d(0x268)})]});}function _0x4d8326(_0x105ab7){const _0x2e9fb5=_0x198c54,{coordinator:_0x7237d9}=_0x105ab7;return _0x3ecb81['jsxs'](_0x3ecb81[_0x2e9fb5(0x223)],{'children':[_0x3ecb81[_0x2e9fb5(0x254)](_0x2e9fb5(0x296),{'className':_0x2e9fb5(0x208),'children':_0x2e9fb5(0x1f6)}),_0x3ecb81[_0x2e9fb5(0x254)](_0x49fd3f[_0x2e9fb5(0x26a)],{'variant':_0x2e9fb5(0x298),'onClick':()=>_0x7237d9[_0x2e9fb5(0x238)](),'children':_0x2e9fb5(0x2b8)})]});}function _0x59f1af(){return _0x3ecb81['jsx'](_0x3ecb81['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x94151f=Object['getOwnPropertyDescriptor'],_0x45446a=(_0x1892c9,_0x16231a,_0x1948f1,_0x278995)=>{const _0x1599ce=_0x198c54;for(var _0x14abef=_0x278995>0x1?void 0x0:_0x278995?_0x94151f(_0x16231a,_0x1948f1):_0x16231a,_0x3f9998=_0x1892c9[_0x1599ce(0x27b)]-0x1,_0x1bc865;_0x3f9998>=0x0;_0x3f9998--)(_0x1bc865=_0x1892c9[_0x3f9998])&&(_0x14abef=_0x1bc865(_0x14abef)||_0x14abef);return _0x14abef;},_0x4abf52=(_0x5bb96a,_0x951178)=>(_0x4e0165,_0xb1ee15)=>_0x951178(_0x4e0165,_0xb1ee15,_0x5bb96a);_0x219a3f[_0x198c54(0x200)]=class extends _0x40790f[_0x198c54(0x289)]{constructor(_0x45eb1b,_0x1ebfca){const _0x4b1700=_0x198c54;super(),this[_0x4b1700(0x1fa)]=_0x45eb1b,this[_0x4b1700(0x26d)]=_0x1ebfca,this['_mountLiveShare']();}[_0x198c54(0x2bd)](){const _0x168879=_0x198c54;this[_0x168879(0x269)](this['_uiPartsService'][_0x168879(0x26e)](_0x3ef861[_0x168879(0x1f7)][_0x168879(0x280)],()=>_0x3ef861['connectInjector'](_0x19a099,this[_0x168879(0x1fa)])));}},_0x219a3f['DesktopLiveShareController']=_0x45446a([_0x4abf52(0x0,_0x40790f[_0x198c54(0x2a7)](_0x40790f['Injector'])),_0x4abf52(0x1,_0x3ef861['IUIPartsService'])],_0x219a3f['DesktopLiveShareController']);const _0x4f2c29=_0x198c54(0x288),_0x45721b={};var _0x5d673b=Object['getOwnPropertyDescriptor'],_0x2089f4=(_0x1f7f06,_0x362f51,_0xac201e,_0x3ab5ef)=>{const _0x1f4566=_0x198c54;for(var _0x255a61=_0x3ab5ef>0x1?void 0x0:_0x3ab5ef?_0x5d673b(_0x362f51,_0xac201e):_0x362f51,_0x4bbbeb=_0x1f7f06[_0x1f4566(0x27b)]-0x1,_0x8ef130;_0x4bbbeb>=0x0;_0x4bbbeb--)(_0x8ef130=_0x1f7f06[_0x4bbbeb])&&(_0x255a61=_0x8ef130(_0x255a61)||_0x255a61);return _0x255a61;},_0x442d84=(_0x21dbe3,_0x212866)=>(_0x4efa4f,_0x43e934)=>_0x212866(_0x4efa4f,_0x43e934,_0x21dbe3);let _0x51cb9a=class extends _0x40790f[_0x198c54(0x289)]{constructor(_0x145878){const _0xa1b69c=_0x198c54;super(),this[_0xa1b69c(0x217)]=_0x145878,this[_0xa1b69c(0x1e6)]();}[_0x198c54(0x1e6)](){const _0x33a25b=_0x198c54;[_0x486c38[_0x33a25b(0x21e)]['id'],_0x486c38[_0x33a25b(0x29c)]['id'],_0x37f478[_0x33a25b(0x1f0)]['id']]['forEach'](_0x1af59b=>{const _0x5ad2a5=_0x33a25b;this[_0x5ad2a5(0x269)](this['_liveShareService'][_0x5ad2a5(0x2a6)](_0x1af59b));});}};_0x51cb9a=_0x2089f4([_0x442d84(0x0,_0x40790f['Inject'](_0x3f94ee))],_0x51cb9a);var _0x3cdbfa=Object['defineProperty'],_0x111c33=Object[_0x198c54(0x1e3)],_0xde1712=(_0x232320,_0x326b5b,_0xa33d3f)=>_0x326b5b in _0x232320?_0x3cdbfa(_0x232320,_0x326b5b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa33d3f}):_0x232320[_0x326b5b]=_0xa33d3f,_0x119389=(_0x5983fa,_0xf6b71e,_0x156195,_0x525203)=>{const _0x27bdcb=_0x198c54;for(var _0x592592=_0x525203>0x1?void 0x0:_0x525203?_0x111c33(_0xf6b71e,_0x156195):_0xf6b71e,_0x2c4289=_0x5983fa[_0x27bdcb(0x27b)]-0x1,_0x5c3c59;_0x2c4289>=0x0;_0x2c4289--)(_0x5c3c59=_0x5983fa[_0x2c4289])&&(_0x592592=_0x5c3c59(_0x592592)||_0x592592);return _0x592592;},_0x29a959=(_0x516198,_0x5b45e6)=>(_0x405d0a,_0x4bec9b)=>_0x5b45e6(_0x405d0a,_0x4bec9b,_0x516198),_0x1482e5=(_0x21bfbd,_0x25fa2e,_0x5e9155)=>_0xde1712(_0x21bfbd,typeof _0x25fa2e!=_0x198c54(0x209)?_0x25fa2e+'':_0x25fa2e,_0x5e9155);const _0x44f926=_0x198c54(0x248);_0x219a3f['UniverLiveSharePlugin']=class extends _0x40790f['Plugin']{constructor(_0x182ed0=_0x45721b,_0x1eeabc,_0xeeef0a){const _0x2c478b=_0x198c54;super(),this[_0x2c478b(0x249)]=_0x182ed0,this[_0x2c478b(0x1fa)]=_0x1eeabc,this[_0x2c478b(0x266)]=_0xeeef0a;const {..._0x334b88}=_0x40790f[_0x2c478b(0x214)]({},_0x45721b,this[_0x2c478b(0x249)]);this[_0x2c478b(0x266)][_0x2c478b(0x261)](_0x4f2c29,_0x334b88);}[_0x198c54(0x27d)](){const _0x18c5dc=_0x198c54;_0x40790f[_0x18c5dc(0x221)](this[_0x18c5dc(0x1fa)],_0x40790f[_0x18c5dc(0x1ec)]([[_0x3f94ee],[_0x219a3f['LiveShareController']],[_0x51cb9a],[_0x219a3f[_0x18c5dc(0x200)]]],this[_0x18c5dc(0x249)][_0x18c5dc(0x25f)])),_0x40790f[_0x18c5dc(0x1e4)](this[_0x18c5dc(0x1fa)],[[_0x51cb9a]]);}[_0x198c54(0x272)](){const _0x2e214c=_0x198c54;_0x40790f[_0x2e214c(0x1e4)](this[_0x2e214c(0x1fa)],[[_0x219a3f['DesktopLiveShareController']]]);}},_0x1482e5(_0x219a3f[_0x198c54(0x2aa)],_0x198c54(0x226),_0x40790f[_0x198c54(0x26c)]['UNIVER_UNKNOWN']),_0x1482e5(_0x219a3f['UniverLiveSharePlugin'],'pluginName',_0x44f926),_0x219a3f[_0x198c54(0x2aa)]=_0x119389([_0x40790f[_0x198c54(0x2a8)](_0x4e4830[_0x198c54(0x2b1)]),_0x29a959(0x1,_0x40790f['Inject'](_0x40790f[_0x198c54(0x29a)])),_0x29a959(0x2,_0x40790f[_0x198c54(0x275)])],_0x219a3f[_0x198c54(0x2aa)]),_0x219a3f['LiveShare']=_0x19a099,_0x219a3f[_0x198c54(0x206)]=_0x3f94ee,_0x219a3f[_0x198c54(0x232)]=_0x33922d,Object[_0x198c54(0x1dd)](_0x219a3f,Symbol[_0x198c54(0x246)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.3-
|
|
3
|
+
"version": "0.12.3-nightly.202512060617",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.3-
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/engine-render": "0.12.3-
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets": "0.12.3-
|
|
67
|
-
"@univerjs/ui": "0.12.3-
|
|
60
|
+
"@univerjs-pro/collaboration-client": "0.12.3-nightly.202512060617",
|
|
61
|
+
"@univerjs/core": "0.12.3-nightly.202512060617",
|
|
62
|
+
"@univerjs-pro/collaboration": "0.12.3-nightly.202512060617",
|
|
63
|
+
"@univerjs/engine-render": "0.12.3-nightly.202512060617",
|
|
64
|
+
"@univerjs/sheets": "0.12.3-nightly.202512060617",
|
|
65
|
+
"@univerjs/design": "0.12.3-nightly.202512060617",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.3-nightly.202512060617",
|
|
67
|
+
"@univerjs/ui": "0.12.3-nightly.202512060617"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|