@univerjs-pro/live-share 0.13.0-insiders.20251220-0a5ea4d → 0.13.0-insiders.20251223-857805c
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';function
|
|
1
|
+
'use strict';const _0x166946=_0x562d;function _0x3438(){const _0x207534=['538924WYGxkk','LiveShareController','IRenderManagerService','getActiveWorkbook','FUniver','getId','stopPresenting','LiveShareStatus','getLiveShareStatus','getSheetId','194152KoNwCL','startPresenting','executeCommand','_initialize','extend','getRenderById','FRange','_injector','4478210FmdcqM','startColumn','FEnum','49848zFIaaZ','26645229LpqxRA','24XrqDdb','76vTYIrF','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','stopFollowing','_commandService','3634482wwOnpx','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','startFollowing','tryStartPresenting','No\x20active\x20workbook\x20found.','get','PRESENTING','2847803HyXRMk','IDLE'];_0x3438=function(){return _0x207534;};return _0x3438();}(function(_0x3b8b87,_0x49dc2b){const _0x2c4c75=_0x562d,_0x10d266=_0x3b8b87();while(!![]){try{const _0x21da63=-parseInt(_0x2c4c75(0x1d6))/0x1+parseInt(_0x2c4c75(0x1f4))/0x2+parseInt(_0x2c4c75(0x1e1))/0x3*(parseInt(_0x2c4c75(0x1e4))/0x4)+-parseInt(_0x2c4c75(0x1de))/0x5+-parseInt(_0x2c4c75(0x1ea))/0x6+parseInt(_0x2c4c75(0x1f2))/0x7*(-parseInt(_0x2c4c75(0x1e3))/0x8)+parseInt(_0x2c4c75(0x1e2))/0x9;if(_0x21da63===_0x49dc2b)break;else _0x10d266['push'](_0x10d266['shift']());}catch(_0x3c56bd){_0x10d266['push'](_0x10d266['shift']());}}}(_0x3438,0x99bd7));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[_0x166946(0x1dc)]{[_0x166946(0x1d9)](_0x44f3e6,_0x3826ec,_0x41628d,_0x598288,_0x2b5e8b){const _0x3f3d86=_0x166946,_0x1027de=_0x44f3e6[_0x3f3d86(0x1f0)](n[_0x3f3d86(0x1f5)]),_0x3747f0=_0x44f3e6[_0x3f3d86(0x1f0)](g[_0x3f3d86(0x1f6)]),_0x30c907=_0x3826ec['getUnitId'](),_0x2e60a3=_0x3826ec['getActiveSheet'](),_0x5da0b5=_0x1027de['getLiveShareCoordinatorSync'](_0x30c907);(_0x5da0b5==null?void 0x0:_0x5da0b5[_0x3f3d86(0x1e7)]())!==n[_0x3f3d86(0x1d3)][_0x3f3d86(0x1f1)]||(_0x41628d['getSheetId']()!==_0x2e60a3[_0x3f3d86(0x1d5)]()&&this[_0x3f3d86(0x1e9)][_0x3f3d86(0x1d8)](u[_0x3f3d86(0x1eb)]['id'],{'unitId':_0x30c907,'subUnitId':_0x41628d[_0x3f3d86(0x1d5)]()}),!_0x3747f0[_0x3f3d86(0x1db)](_0x30c907))||_0x2b5e8b['syncExecuteCommand'](f['SetScrollOperation']['id'],{'unitId':_0x3826ec[_0x3f3d86(0x1e5)](),'sheetId':_0x41628d[_0x3f3d86(0x1d5)](),'sheetViewStartRow':_0x598288['startRow'],'sheetViewStartColumn':_0x598288[_0x3f3d86(0x1df)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange'][_0x166946(0x1da)](w);function _0x562d(_0xfb7fa7,_0x112384){_0xfb7fa7=_0xfb7fa7-0x1d2;const _0x3438ad=_0x3438();let _0x562da4=_0x3438ad[_0xfb7fa7];return _0x562da4;}class C extends a[_0x166946(0x1f8)]{[_0x166946(0x1d4)](){const _0x44bf4b=_0x166946;var _0x31d6cd,_0x57f03d;const _0x130554=this[_0x44bf4b(0x1dd)][_0x44bf4b(0x1f0)](n['LiveShareController']),_0x1a5bc0=(_0x31d6cd=this[_0x44bf4b(0x1f7)]())==null?void 0x0:_0x31d6cd[_0x44bf4b(0x1f9)]();if(!_0x1a5bc0)throw new Error(_0x44bf4b(0x1ef));const _0x1cfa69=_0x130554['getLiveShareCoordinatorSync'](_0x1a5bc0);return(_0x57f03d=_0x1cfa69==null?void 0x0:_0x1cfa69[_0x44bf4b(0x1e7)]())!=null?_0x57f03d:n[_0x44bf4b(0x1d3)][_0x44bf4b(0x1f3)];}[_0x166946(0x1ed)](){const _0xb28ca2=_0x166946;var _0x5621c8;const _0x298c0b=this['_injector'][_0xb28ca2(0x1f0)](n['LiveShareController']),_0x222e47=(_0x5621c8=this[_0xb28ca2(0x1f7)]())==null?void 0x0:_0x5621c8[_0xb28ca2(0x1f9)]();if(!_0x222e47)throw new Error('No\x20active\x20workbook\x20found.');const _0x4dfa1c=_0x298c0b[_0xb28ca2(0x1ec)](_0x222e47);if(!_0x4dfa1c)throw new Error(_0xb28ca2(0x1e6));_0x4dfa1c[_0xb28ca2(0x1ed)]();}[_0x166946(0x1e8)](){const _0x9599b6=_0x166946;var _0xd3716d;const _0x42511b=this['_injector'][_0x9599b6(0x1f0)](n['LiveShareController']),_0x4adb7c=(_0xd3716d=this[_0x9599b6(0x1f7)]())==null?void 0x0:_0xd3716d['getId']();if(!_0x4adb7c)throw new Error('No\x20active\x20workbook\x20found.');const _0x351df1=_0x42511b[_0x9599b6(0x1ec)](_0x4adb7c);if(!_0x351df1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x351df1['stopFollowing']();}[_0x166946(0x1d7)](){const _0x325489=_0x166946;var _0x2c05ba;const _0x1e19a0=this['_injector'][_0x325489(0x1f0)](n[_0x325489(0x1f5)]),_0x40487b=(_0x2c05ba=this['getActiveWorkbook']())==null?void 0x0:_0x2c05ba[_0x325489(0x1f9)]();if(!_0x40487b)throw new Error(_0x325489(0x1ef));const _0x2e433c=_0x1e19a0[_0x325489(0x1ec)](_0x40487b);if(!_0x2e433c)throw new Error(_0x325489(0x1e6));_0x2e433c[_0x325489(0x1ee)]();}[_0x166946(0x1d2)](){const _0x260958=_0x166946;var _0x17d63a;const _0x25d6c5=this['_injector'][_0x260958(0x1f0)](n['LiveShareController']),_0x33fd66=(_0x17d63a=this[_0x260958(0x1f7)]())==null?void 0x0:_0x17d63a[_0x260958(0x1f9)]();if(!_0x33fd66)throw new Error(_0x260958(0x1ef));const _0x2ac45f=_0x25d6c5['getLiveShareCoordinatorSync'](_0x33fd66);if(!_0x2ac45f)throw new Error(_0x260958(0x1e6));_0x2ac45f[_0x260958(0x1d2)]();}}a[_0x166946(0x1f8)]['extend'](C);class L extends a['FEnum']{get['LiveShareStatusEnum'](){const _0x596520=_0x166946;return n[_0x596520(0x1d3)];}}a[_0x166946(0x1e0)][_0x166946(0x1da)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x313f97=_0x456c;(function(_0x2ba845,_0x39fd6d){const _0x3b29b1=_0x456c,_0x240970=_0x2ba845();while(!![]){try{const _0x4ae84a=-parseInt(_0x3b29b1(0x115))/0x1*(-parseInt(_0x3b29b1(0x151))/0x2)+-parseInt(_0x3b29b1(0x197))/0x3*(-parseInt(_0x3b29b1(0x157))/0x4)+-parseInt(_0x3b29b1(0x102))/0x5+-parseInt(_0x3b29b1(0x11b))/0x6+-parseInt(_0x3b29b1(0x1a3))/0x7*(-parseInt(_0x3b29b1(0xf4))/0x8)+-parseInt(_0x3b29b1(0xe5))/0x9+-parseInt(_0x3b29b1(0x12e))/0xa*(-parseInt(_0x3b29b1(0x190))/0xb);if(_0x4ae84a===_0x39fd6d)break;else _0x240970['push'](_0x240970['shift']());}catch(_0x3cb2e7){_0x240970['push'](_0x240970['shift']());}}}(_0x369f,0x64f71));var T=Object[_0x313f97(0x14f)],U=(_0x257cb1,_0xa82d26,_0x2a7fd4)=>_0xa82d26 in _0x257cb1?T(_0x257cb1,_0xa82d26,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a7fd4}):_0x257cb1[_0xa82d26]=_0x2a7fd4,_=(_0x23ecc5,_0x6e0759,_0xc2d841)=>U(_0x23ecc5,typeof _0x6e0759!=_0x313f97(0x138)?_0x6e0759+'':_0x6e0759,_0xc2d841);Object[_0x313f97(0x14f)](exports,Symbol[_0x313f97(0x124)],{'value':_0x313f97(0x162)});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:_0x554048,..._0x2168f8}){const _0x36fcc3=_0x313f97,{icon:_0x1b6dd9,id:_0x4dc7a7,className:_0x19dc15,extend:_0x19b533,..._0x409848}=_0x2168f8,_0x300d12=('univerjs-icon\x20univerjs-icon-'+_0x4dc7a7+'\x20'+(_0x19dc15||''))[_0x36fcc3(0xea)](),_0x18d372=v['useRef']('_'+H());return j(_0x1b6dd9,''+_0x4dc7a7,{'defIds':_0x1b6dd9[_0x36fcc3(0x158)],'idSuffix':_0x18d372[_0x36fcc3(0x18b)]},{'ref':_0x554048,'className':_0x300d12,..._0x409848},_0x19b533);}function j(_0x3dd946,_0xb2a584,_0x288348,_0x467ace,_0x29df90){const _0xeb6afc=_0x313f97;return v['createElement'](_0x3dd946[_0xeb6afc(0x18e)],{'key':_0xb2a584,...y(_0x3dd946,_0x288348,_0x29df90),..._0x467ace},(F(_0x3dd946,_0x288348)[_0xeb6afc(0x185)]||[])['map']((_0x165b2f,_0x529fdf)=>j(_0x165b2f,_0xb2a584+'-'+_0x3dd946[_0xeb6afc(0x18e)]+'-'+_0x529fdf,_0x288348,void 0x0,_0x29df90)));}function y(_0x8a07cb,_0x5c37bc,_0x48e438){const _0x24b6cd=_0x313f97,_0x16ee38={..._0x8a07cb[_0x24b6cd(0x14b)]};_0x48e438!=null&&_0x48e438[_0x24b6cd(0xe8)]&&_0x16ee38[_0x24b6cd(0x131)]===_0x24b6cd(0xe8)&&(_0x16ee38[_0x24b6cd(0x131)]=_0x48e438[_0x24b6cd(0xe8)]),_0x8a07cb[_0x24b6cd(0x18e)]===_0x24b6cd(0xd9)&&_0x16ee38['id']&&(_0x16ee38['id']=_0x16ee38['id']+_0x5c37bc['idSuffix']),Object[_0x24b6cd(0xf1)](_0x16ee38)['forEach'](([_0x2b4b49,_0x59e16a])=>{const _0x4c81bf=_0x24b6cd;_0x2b4b49==='mask'&&typeof _0x59e16a==_0x4c81bf(0x173)&&(_0x16ee38[_0x2b4b49]=_0x59e16a[_0x4c81bf(0x195)](/url\(#(.*)\)/,'url(#$1'+_0x5c37bc[_0x4c81bf(0x165)]+')'));});const {defIds:_0x23a09b}=_0x5c37bc;return!_0x23a09b||_0x23a09b[_0x24b6cd(0x19a)]===0x0||(_0x8a07cb[_0x24b6cd(0x18e)]===_0x24b6cd(0x12d)&&_0x16ee38[_0x24b6cd(0x187)]&&(_0x16ee38[_0x24b6cd(0x187)]=_0x16ee38[_0x24b6cd(0x187)]+_0x5c37bc[_0x24b6cd(0x165)]),Object[_0x24b6cd(0xf1)](_0x16ee38)[_0x24b6cd(0x156)](([_0x5e1b8c,_0x41b53c])=>{const _0xbd9b49=_0x24b6cd;typeof _0x41b53c==_0xbd9b49(0x173)&&(_0x16ee38[_0x5e1b8c]=_0x41b53c['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5c37bc[_0xbd9b49(0x165)]+')'));})),_0x16ee38;}function F(_0x4ba1c7,_0x4126af){const _0x54fa23=_0x313f97;var _0x3462e3;const {defIds:_0x8b495d}=_0x4126af;return!_0x8b495d||_0x8b495d[_0x54fa23(0x19a)]===0x0?_0x4ba1c7:_0x4ba1c7['tag']===_0x54fa23(0x174)&&((_0x3462e3=_0x4ba1c7['children'])!=null&&_0x3462e3[_0x54fa23(0x19a)])?{..._0x4ba1c7,'children':_0x4ba1c7[_0x54fa23(0x185)][_0x54fa23(0x191)](_0x2ebde2=>typeof _0x2ebde2[_0x54fa23(0x14b)]['id']==_0x54fa23(0x173)&&_0x8b495d&&_0x8b495d[_0x54fa23(0x108)](_0x2ebde2[_0x54fa23(0x14b)]['id'])?{..._0x2ebde2,'attrs':{..._0x2ebde2[_0x54fa23(0x14b)],'id':_0x2ebde2[_0x54fa23(0x14b)]['id']+_0x4126af['idSuffix']}}:_0x2ebde2)}:_0x4ba1c7;}function H(){const _0x2f0e49=_0x313f97;return Math[_0x2f0e49(0x172)]()[_0x2f0e49(0x16f)](0x24)[_0x2f0e49(0xfe)](0x2,0x8);}x[_0x313f97(0x10a)]=_0x313f97(0xdc);const V={'tag':'svg','attrs':{'xmlns':_0x313f97(0x137),'fill':_0x313f97(0x113),'viewBox':'0\x200\x2017\x2017','width':_0x313f97(0x103),'height':'1em'},'children':[{'tag':_0x313f97(0x134),'attrs':{'fill':_0x313f97(0x145),'d':_0x313f97(0x121)}},{'tag':_0x313f97(0x134),'attrs':{'fill':_0x313f97(0x145),'d':_0x313f97(0x148),'fillRule':_0x313f97(0x109),'clipRule':_0x313f97(0x109)}}]},R=v[_0x313f97(0x135)](function(_0x477e9b,_0x310b55){const _0x4ad0c1=_0x313f97;return v[_0x4ad0c1(0xff)](x,Object['assign']({},_0x477e9b,{'id':'live-share-icon','ref':_0x310b55,'icon':V}));});R[_0x313f97(0x10a)]='LiveShareIcon';function _0x456c(_0x2553e2,_0xabbd66){_0x2553e2=_0x2553e2-0xd6;const _0x369ff2=_0x369f();let _0x456c5b=_0x369ff2[_0x2553e2];return _0x456c5b;}class E extends o[_0x313f97(0x17e)]{constructor(){const _0x502efd=_0x313f97;super(...arguments),_(this,_0x502efd(0x16b),new Set()),_(this,'_reporters',new Set());}[_0x313f97(0x188)](_0x3147eb){const _0x3f8247=_0x313f97;return this['_sharedOperations'][_0x3f8247(0x189)](_0x3147eb),o[_0x3f8247(0x133)](()=>this[_0x3f8247(0x16b)][_0x3f8247(0x176)](_0x3147eb));}[_0x313f97(0xe7)](_0x1248b0){const _0x4c0dcb=_0x313f97;return this[_0x4c0dcb(0x101)][_0x4c0dcb(0x189)](_0x1248b0),o[_0x4c0dcb(0x133)](()=>this['_reporters'][_0x4c0dcb(0x176)](_0x1248b0));}[_0x313f97(0xf8)](_0x5e1307){const _0x38608b=_0x313f97;return this[_0x38608b(0x16b)][_0x38608b(0x147)](_0x5e1307);}[_0x313f97(0x183)](_0x3fa516){const _0x1011dd=_0x313f97;return Array[_0x1011dd(0x1a1)](this[_0x1011dd(0x101)])[_0x1011dd(0x191)](_0x490c1a=>_0x490c1a(_0x3fa516));}}var M=Object[_0x313f97(0x10b)],P=(_0x5b5a46,_0x3d4978,_0x2e0c6b,_0x1b7d8b)=>{for(var _0x2d2597=_0x1b7d8b>0x1?void 0x0:_0x1b7d8b?M(_0x3d4978,_0x2e0c6b):_0x3d4978,_0xfd6e70=_0x5b5a46['length']-0x1,_0xd691c0;_0xfd6e70>=0x0;_0xfd6e70--)(_0xd691c0=_0x5b5a46[_0xfd6e70])&&(_0x2d2597=_0xd691c0(_0x2d2597)||_0x2d2597);return _0x2d2597;},S=(_0x28c1f9,_0x385f54)=>(_0x3daaeb,_0x5ea5f2)=>_0x385f54(_0x3daaeb,_0x5ea5f2,_0x28c1f9);exports[_0x313f97(0x17a)]=class extends o['RxDisposable']{constructor(_0x2a4838,_0x1aa8d3,_0x3e712b){const _0xb6cff1=_0x313f97;super(),_(this,_0xb6cff1(0x144),new Map()),(this['_univerInstanceService']=_0x2a4838,this[_0xb6cff1(0x125)]=_0x1aa8d3,this[_0xb6cff1(0x146)]=_0x3e712b,this[_0xb6cff1(0x181)]());}async[_0x313f97(0x132)](_0x199188){const _0x3c31f1=_0x313f97;return this['_entities'][_0x3c31f1(0x147)](_0x199188)||await this[_0x3c31f1(0x119)](_0x199188),this[_0x3c31f1(0x144)]['get'](_0x199188);}[_0x313f97(0x12c)](_0x152c96){const _0xd337eb=_0x313f97;var _0x2b1f7e;return(_0x2b1f7e=this[_0xd337eb(0x144)][_0xd337eb(0xec)](_0x152c96))!=null?_0x2b1f7e:null;}[_0x313f97(0x181)](){const _0x15be45=_0x313f97;this[_0x15be45(0x155)]['getTypeOfUnitAdded$'](o[_0x15be45(0x167)][_0x15be45(0x140)])[_0x15be45(0x175)](I[_0x15be45(0x178)](this[_0x15be45(0xdf)]))['subscribe'](async _0xa4452f=>{const _0x53f43d=_0x15be45,_0x291284=_0xa4452f[_0x53f43d(0x160)]();this[_0x53f43d(0x144)]['has'](_0x291284)||this['_startLiveShareCoordinator'](_0x291284);}),this[_0x15be45(0x155)]['getTypeOfUnitDisposed$'](o['UniverInstanceType']['UNIVER_SHEET'])[_0x15be45(0x175)](I[_0x15be45(0x178)](this[_0x15be45(0xdf)]))[_0x15be45(0x168)](_0x4f0134=>{const _0x29e36b=_0x15be45,_0x31d518=_0x4f0134[_0x29e36b(0x160)](),_0x573650=this[_0x29e36b(0x144)][_0x29e36b(0xec)](_0x31d518);_0x573650==null||_0x573650[_0x29e36b(0x11e)]();});}async[_0x313f97(0x119)](_0x4b1468){const _0x1a6dbc=_0x313f97,_0x566199=await this['_collabSessionService'][_0x1a6dbc(0x19c)](_0x4b1468),_0x5d961e=this[_0x1a6dbc(0x125)][_0x1a6dbc(0x16d)](exports[_0x1a6dbc(0x15d)],_0x4b1468,_0x566199);return _0x5d961e[_0x1a6dbc(0xe2)](),this[_0x1a6dbc(0x144)][_0x1a6dbc(0xe0)](_0x4b1468,_0x5d961e),_0x5d961e;}},exports[_0x313f97(0x17a)]=P([S(0x0,o[_0x313f97(0xf2)]),S(0x1,o[_0x313f97(0x10d)](o['Injector'])),S(0x2,o[_0x313f97(0x10d)](b[_0x313f97(0x199)]))],exports['LiveShareController']);var u=(_0x4bfe54=>(_0x4bfe54[_0x313f97(0x12b)]='offline',_0x4bfe54[_0x313f97(0x194)]=_0x313f97(0x13f),_0x4bfe54['FOLLOWING']=_0x313f97(0x18f),_0x4bfe54[_0x313f97(0x1a0)]='not-following',_0x4bfe54[_0x313f97(0x15e)]=_0x313f97(0x13b),_0x4bfe54))(u||{});const k=_0x313f97(0x139),q=0xc8;exports[_0x313f97(0x15d)]=class extends o[_0x313f97(0xe3)]{constructor(_0x1f0419,_0x2cdf14,_0x466e52,_0x1204f4,_0x409619){const _0x495a3f=_0x313f97;super(),_(this,'_status$',new O['BehaviorSubject'](_0x495a3f(0x13f))),_(this,_0x495a3f(0x177),this['_status$'][_0x495a3f(0x152)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this[_0x495a3f(0x1a5)]=_0x1f0419,this[_0x495a3f(0xdb)]=_0x2cdf14,this[_0x495a3f(0x136)]=_0x466e52,this['_liveShareService']=_0x1204f4,this[_0x495a3f(0x100)]=_0x409619);}get['_status'](){const _0xeb89ff=_0x313f97;return this[_0xeb89ff(0x14c)][_0xeb89ff(0xf6)]();}[_0x313f97(0x11e)](){const _0x1c56b8=_0x313f97;var _0x1baa77;(_0x1baa77=this[_0x1c56b8(0x123)])==null||_0x1baa77['dispose'](),this[_0x1c56b8(0x14c)]['next'](_0x1c56b8(0x13f)),this[_0x1c56b8(0x14c)][_0x1c56b8(0x161)]();}[_0x313f97(0x19b)](){const _0x2f5e99=_0x313f97;return this[_0x2f5e99(0xf9)];}[_0x313f97(0xe2)](){const _0x9c0812=_0x313f97;this['_init']||(this[_0x9c0812(0x181)]=!0x0,this[_0x9c0812(0xdb)][_0x9c0812(0x118)][_0x9c0812(0x175)](I[_0x9c0812(0x178)](this['dispose$']))[_0x9c0812(0x168)](_0x6f49a2=>{const _0x459f32=_0x9c0812;switch(_0x6f49a2){case b[_0x459f32(0xd8)][_0x459f32(0x12b)]:this['_handleOffline']();break;case b[_0x459f32(0xd8)][_0x459f32(0x154)]:this[_0x459f32(0x143)]();break;}}),this[_0x9c0812(0xdb)]['event$'][_0x9c0812(0x175)](I[_0x9c0812(0x178)](this[_0x9c0812(0xdf)]))[_0x9c0812(0x168)](_0x13c7b3=>{const _0x3fef96=_0x9c0812,{eventID:_0x1871f8}=_0x13c7b3;switch(_0x1871f8){case d['CollaborationEvent'][_0x3fef96(0x16e)]:this['_handleNewHost'](_0x13c7b3);break;case d[_0x3fef96(0x17f)][_0x3fef96(0x169)]:this[_0x3fef96(0x104)](_0x13c7b3);break;case d['CollaborationEvent'][_0x3fef96(0xda)]:this[_0x3fef96(0x15a)]();break;case d[_0x3fef96(0x17f)][_0x3fef96(0x122)]:this[_0x3fef96(0x107)](_0x13c7b3);break;}}));}['tryStartPresenting'](){const _0x29b208=_0x313f97;this[_0x29b208(0xdb)][_0x29b208(0xe1)]({'eventID':d[_0x29b208(0x17f)][_0x29b208(0x193)],'data':{'unitID':this[_0x29b208(0x1a5)],'userID':this[_0x29b208(0xdb)][_0x29b208(0xd6)]()}},this['_unitID']);}[_0x313f97(0x18c)](){const _0x296b93=_0x313f97;this['_status']==='presenting'&&(this[_0x296b93(0x14c)]['next'](_0x296b93(0x13f)),this[_0x296b93(0xdb)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x296b93(0x1a5)]}},this['_unitID']));}[_0x313f97(0x150)](){const _0x5983d7=_0x313f97;this[_0x5983d7(0xf9)]==='not-following'&&(this[_0x5983d7(0x14c)][_0x5983d7(0xe9)](_0x5983d7(0x18f)),this[_0x5983d7(0x114)]());}[_0x313f97(0x10f)](){const _0x438f0f=_0x313f97;this[_0x438f0f(0xf9)]===_0x438f0f(0x18f)&&this[_0x438f0f(0x16c)]();}['_handleNewHost'](_0x377c80){const _0x1f20ac=_0x313f97,{presenter:_0x5f0856}=_0x377c80[_0x1f20ac(0xd7)],_0x2fe92b=this[_0x1f20ac(0xdb)][_0x1f20ac(0xd6)]();this[_0x1f20ac(0x10e)]=_0x5f0856,_0x5f0856===_0x2fe92b?(this[_0x1f20ac(0x16c)](),this[_0x1f20ac(0x130)]()):this['_status']!==_0x1f20ac(0x166)&&(this[_0x1f20ac(0x111)](),this[_0x1f20ac(0x114)]());}[_0x313f97(0xe4)](){const _0x364545=_0x313f97,_0x885245={'eventID':d[_0x364545(0x17f)][_0x364545(0x112)]};this[_0x364545(0xdb)]['send'](_0x885245,this[_0x364545(0x1a5)]);}[_0x313f97(0x15a)](){const _0x31499e=_0x313f97;this['_presenter']=null,this[_0x31499e(0xf9)]!==_0x31499e(0x13b)&&this[_0x31499e(0x19e)]();}[_0x313f97(0x107)](_0x2e141d){const _0x245644=_0x313f97;if(this[_0x245644(0xf9)]===_0x245644(0x18f)&&this[_0x245644(0x10e)]===_0x2e141d[_0x245644(0xd7)][_0x245644(0xfd)]){const _0x56861c=d[_0x245644(0x19f)](_0x2e141d[_0x245644(0xd7)])['mutations'][_0x245644(0x1a2)]()['find'](_0x39988f=>_0x39988f['id']===C['InsertSheetMutation']['id']);if(_0x56861c){const _0x4c1c92=_0x56861c[_0x245644(0xfa)][_0x245644(0x12f)],_0x283584=_0x56861c[_0x245644(0xfa)]['sheet']['id'];setTimeout(()=>{const _0x103cef=_0x245644;this[_0x103cef(0x100)]['executeCommand'](C[_0x103cef(0x149)]['id'],{'unitId':_0x4c1c92,'subUnitId':_0x283584},{'fromCollab':!0x0});});}}}[_0x313f97(0x130)](){const _0x578884=_0x313f97;this['_status$']['next'](_0x578884(0x13b));const _0x32ebe1=new Map(),_0x334aaa=this[_0x578884(0x123)]=new o[(_0x578884(0x15c))]();_0x334aaa['add'](o[_0x578884(0x133)](()=>{const _0x4609b4=_0x578884;_0x32ebe1[_0x4609b4(0x156)](_0x31625f=>_0x31625f[_0x4609b4(0x161)]()),_0x32ebe1[_0x4609b4(0x13e)]();})),_0x334aaa[_0x578884(0x189)](this[_0x578884(0x100)][_0x578884(0x126)](_0x4538a0=>{const _0x4b3b9f=_0x578884;var _0x2c211a;if(_0x4538a0['type']!==o[_0x4b3b9f(0x11a)][_0x4b3b9f(0x11d)]||!this[_0x4b3b9f(0x116)][_0x4b3b9f(0xf8)](_0x4538a0['id']))return;const {id:_0x559703}=_0x4538a0;let _0x10552;_0x32ebe1['has'](_0x559703)?_0x10552=_0x32ebe1['get'](_0x559703):(_0x10552=new O['Subject'](),_0x32ebe1[_0x4b3b9f(0xe0)](_0x559703,_0x10552),_0x10552[_0x4b3b9f(0x175)](I[_0x4b3b9f(0xeb)]((_0x2c211a=this[_0x4b3b9f(0x136)][_0x4b3b9f(0x15f)](k))!=null?_0x2c211a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b3b9f(0x168)](_0x3f85b9=>{const _0x144970=_0x4b3b9f;this[_0x144970(0xdb)][_0x144970(0xe1)]({'eventID':d[_0x144970(0x17f)][_0x144970(0x169)],'data':{'unitID':this[_0x144970(0x1a5)],'operations':{[_0x3f85b9['id']]:{'id':_0x3f85b9['id'],'params':JSON['stringify'](_0x3f85b9['params'])}}}},this[_0x144970(0x1a5)]);})),_0x10552[_0x4b3b9f(0xe9)](_0x4538a0);})),this[_0x578884(0x116)][_0x578884(0x183)](this['_unitID'])[_0x578884(0x156)](_0xe69c88=>this[_0x578884(0xdb)][_0x578884(0xe1)]({'eventID':d[_0x578884(0x17f)][_0x578884(0x169)],'data':{'unitID':this[_0x578884(0x1a5)],'operations':{[_0xe69c88['id']]:{'id':_0xe69c88['id'],'params':JSON[_0x578884(0x11c)](_0xe69c88[_0x578884(0xfa)])}}}},this[_0x578884(0x1a5)]));}[_0x313f97(0x111)](){const _0xdd2c88=_0x313f97;var _0x4d1792;this['_status$'][_0xdd2c88(0xe9)]('idle'),(_0x4d1792=this[_0xdd2c88(0x123)])==null||_0x4d1792[_0xdd2c88(0x11e)](),this[_0xdd2c88(0x123)]=null;}['_startFollowing'](){const _0x94cc74=_0x313f97;var _0x57b40f;(_0x57b40f=this['_commandDisposable'])==null||_0x57b40f[_0x94cc74(0x11e)](),this[_0x94cc74(0x14c)][_0x94cc74(0xe9)](_0x94cc74(0x18f));}[_0x313f97(0x19e)](){const _0x169ad6=_0x313f97;var _0x5d4439;this[_0x169ad6(0x14c)][_0x169ad6(0xe9)](_0x169ad6(0x13f)),(_0x5d4439=this['_commandDisposable'])==null||_0x5d4439[_0x169ad6(0x11e)](),this[_0x169ad6(0x123)]=null;}['_stopFollowing'](){const _0x210275=_0x313f97;var _0xc0270b;this[_0x210275(0x14c)][_0x210275(0xe9)](_0x210275(0x166)),(_0xc0270b=this['_commandDisposable'])==null||_0xc0270b[_0x210275(0x11e)]();}['_handleOperation'](_0x48cab9){const _0x504310=_0x313f97;if(['presenting','not-following',_0x504310(0x164)][_0x504310(0x108)](this[_0x504310(0xf9)])||!_0x48cab9[_0x504310(0xd7)][_0x504310(0x14a)]||_0x48cab9[_0x504310(0xd7)][_0x504310(0x14a)]===this[_0x504310(0xdb)][_0x504310(0xd6)]())return;this['_status']==='idle'&&this[_0x504310(0x114)]();const _0x3984a5=_0x48cab9['data'][_0x504310(0x153)];Object[_0x504310(0x14e)](_0x3984a5)[_0x504310(0x156)](_0x244d00=>{const _0x54b838=_0x504310;this[_0x54b838(0x100)]['executeCommand'](_0x244d00['id'],_0x244d00[_0x54b838(0xfa)]?JSON[_0x54b838(0xf3)](_0x244d00['params']):null,{'fromCollab':!0x0});});}[_0x313f97(0x13a)](){const _0x44bdf4=_0x313f97;var _0x3032a3;this['_status$'][_0x44bdf4(0xe9)](_0x44bdf4(0x164)),(_0x3032a3=this[_0x44bdf4(0x123)])==null||_0x3032a3[_0x44bdf4(0x11e)]();}[_0x313f97(0x143)](){const _0x33ad52=_0x313f97;this[_0x33ad52(0x14c)]['next'](_0x33ad52(0x13f)),this[_0x33ad52(0xe4)]();}},exports[_0x313f97(0x15d)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x313f97(0x10d)](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0x4daa41=_0x313f97,_0x2b5e7a=p[_0x4daa41(0x182)](exports[_0x4daa41(0x17a)]),_0x281920=p[_0x4daa41(0x182)](o[_0x4daa41(0xf2)]),_0x5059e1=p[_0x4daa41(0x17c)](()=>_0x281920[_0x4daa41(0xfc)](o[_0x4daa41(0x167)][_0x4daa41(0x140)]),void 0x0,!0x1,[]),[_0x1ca3cb,_0x4cdeb0]=v[_0x4daa41(0x18a)](null),[_0x497d50,_0x610b90]=v[_0x4daa41(0x18a)](u[_0x4daa41(0x194)]),_0x2aefc5=v[_0x4daa41(0xf5)](null);return v[_0x4daa41(0xee)](()=>(_0x5059e1&&_0x2b5e7a[_0x4daa41(0x132)](_0x5059e1['getUnitId']())['then'](_0x564985=>{const _0x585669=_0x4daa41;_0x4cdeb0(_0x564985),_0x2aefc5[_0x585669(0x18b)]=_0x564985[_0x585669(0x177)][_0x585669(0x168)](_0x4a602e=>{_0x610b90(_0x4a602e);});}),()=>{const _0x59490c=_0x4daa41;var _0x48f39d;(_0x48f39d=_0x2aefc5[_0x59490c(0x18b)])==null||_0x48f39d[_0x59490c(0x14d)](),_0x2aefc5[_0x59490c(0x18b)]=null;}),[_0x5059e1,_0x2b5e7a]),_0x1ca3cb?l[_0x4daa41(0x198)](f[_0x4daa41(0xf0)],{'align':'end','disabled':_0x497d50===u['OFFLINE'],'className':_0x4daa41(0xf7),'overlay':l[_0x4daa41(0x198)](W,{'status':_0x497d50,'coordinator':_0x1ca3cb}),'children':l[_0x4daa41(0x198)]('button',{'className':f[_0x4daa41(0x16a)](_0x4daa41(0x17b),{'univer-cursor-not-allowed':_0x497d50===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x497d50!==u['OFFLINE']}),'type':'button','children':l[_0x4daa41(0x198)](R,{'className':_0x4daa41(0x159)})})}):null;}function W(_0x5c683d){const _0x2b77d7=_0x313f97,{status:_0x2668a4,coordinator:_0x3ac588}=_0x5c683d;switch(_0x2668a4){case u[_0x2b77d7(0x194)]:return l[_0x2b77d7(0x198)](G,{'coordinator':_0x3ac588});case u[_0x2b77d7(0x15b)]:return l[_0x2b77d7(0x198)](B,{'coordinator':_0x3ac588});case u[_0x2b77d7(0x1a0)]:return l[_0x2b77d7(0x198)](Y,{'coordinator':_0x3ac588});case u[_0x2b77d7(0x12b)]:return l['jsx'](J,{});case u[_0x2b77d7(0x15e)]:return l[_0x2b77d7(0x198)](Z,{'coordinator':_0x3ac588});default:return null;}}function G(_0x176217){const _0x3e9c55=_0x313f97,{coordinator:_0x40419d}=_0x176217;return l[_0x3e9c55(0x170)](l[_0x3e9c55(0x13d)],{'children':[l[_0x3e9c55(0x198)]('div',{'className':_0x3e9c55(0x129),'children':'Present\x20this\x20document'}),l[_0x3e9c55(0x198)](f['Button'],{'onClick':()=>_0x40419d['tryStartPresenting'](),'children':_0x3e9c55(0x117)})]});}function B(_0x387901){const _0x590a51=_0x313f97,{coordinator:_0x1a0979}=_0x387901;return l[_0x590a51(0x170)](l['Fragment'],{'children':[l[_0x590a51(0x198)]('div',{'className':_0x590a51(0x129),'children':_0x590a51(0x106)}),l[_0x590a51(0x198)](f[_0x590a51(0xed)],{'onClick':()=>_0x1a0979[_0x590a51(0x10f)](),'children':'Stop\x20following'})]});}function Y(_0x4cab9d){const _0x6cb4eb=_0x313f97,{coordinator:_0x3f47c2}=_0x4cab9d;return l[_0x6cb4eb(0x170)](l[_0x6cb4eb(0x13d)],{'children':[l[_0x6cb4eb(0x198)]('div',{'className':_0x6cb4eb(0x129),'children':_0x6cb4eb(0x10c)}),l['jsx'](f[_0x6cb4eb(0xed)],{'variant':'text','onClick':()=>_0x3f47c2['startFollowing'](),'children':_0x6cb4eb(0x179)})]});}function Z(_0x380dda){const _0x544077=_0x313f97,{coordinator:_0x170262}=_0x380dda;return l['jsxs'](l[_0x544077(0x13d)],{'children':[l['jsx']('div',{'className':_0x544077(0x129),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x544077(0x198)](f[_0x544077(0xed)],{'variant':_0x544077(0x19d),'onClick':()=>_0x170262[_0x544077(0x18c)](),'children':_0x544077(0x128)})]});}function J(){const _0xc3b641=_0x313f97;return l[_0xc3b641(0x198)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object[_0x313f97(0x10b)],z=(_0x183c5d,_0x3dfda,_0x193688,_0x272058)=>{const _0x23a937=_0x313f97;for(var _0x1d0f6f=_0x272058>0x1?void 0x0:_0x272058?K(_0x3dfda,_0x193688):_0x3dfda,_0x501f08=_0x183c5d[_0x23a937(0x19a)]-0x1,_0x46a474;_0x501f08>=0x0;_0x501f08--)(_0x46a474=_0x183c5d[_0x501f08])&&(_0x1d0f6f=_0x46a474(_0x1d0f6f)||_0x1d0f6f);return _0x1d0f6f;},L=(_0x7eae1d,_0x4d8549)=>(_0x5b95ba,_0x5640a0)=>_0x4d8549(_0x5b95ba,_0x5640a0,_0x7eae1d);exports[_0x313f97(0xef)]=class extends o[_0x313f97(0x17e)]{constructor(_0x4599e4,_0x5006d9){const _0x464bc4=_0x313f97;super(),this[_0x464bc4(0x125)]=_0x4599e4,this['_uiPartsService']=_0x5006d9,this[_0x464bc4(0x163)]();}[_0x313f97(0x163)](){const _0x37f1e4=_0x313f97;this[_0x37f1e4(0x180)](this[_0x37f1e4(0x12a)][_0x37f1e4(0x120)](p[_0x37f1e4(0x184)]['HEADER_MENU'],()=>p['connectInjector']($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o[_0x313f97(0x1a6)])),L(0x1,p[_0x313f97(0x1a4)])],exports[_0x313f97(0xef)]);const Q=_0x313f97(0xe6),w={};var X=Object[_0x313f97(0x10b)],ee=(_0x70d484,_0x289b31,_0x358438,_0x23f881)=>{const _0x50e401=_0x313f97;for(var _0x449b93=_0x23f881>0x1?void 0x0:_0x23f881?X(_0x289b31,_0x358438):_0x289b31,_0x2b85fc=_0x70d484[_0x50e401(0x19a)]-0x1,_0x47acf2;_0x2b85fc>=0x0;_0x2b85fc--)(_0x47acf2=_0x70d484[_0x2b85fc])&&(_0x449b93=_0x47acf2(_0x449b93)||_0x449b93);return _0x449b93;},te=(_0x2328b6,_0x251e30)=>(_0x55fbc2,_0x1efede)=>_0x251e30(_0x55fbc2,_0x1efede,_0x2328b6);let m=class extends o[_0x313f97(0x17e)]{constructor(_0x43a03a){const _0x77722e=_0x313f97;super(),this['_liveShareService']=_0x43a03a,this[_0x77722e(0x181)]();}[_0x313f97(0x181)](){const _0x222976=_0x313f97;[D[_0x222976(0x186)]['id'],D['SetScrollOperation']['id'],C[_0x222976(0x149)]['id']][_0x222976(0x156)](_0x3af6e8=>{const _0x214f91=_0x222976;this[_0x214f91(0x180)](this[_0x214f91(0x116)]['registerSharedOperation'](_0x3af6e8));});}};m=ee([te(0x0,o[_0x313f97(0x10d)](E))],m);function _0x369f(){const _0x2dd45b=['tag','following','2761dtPqvt','map','_config','LIVESHARE_REQUEST_HOST','IDLE','replace','merge','1749261XkHdvm','jsx','CollaborationSessionService','length','getStatus','requireSession','default','_beIdle','parseProtocolChangeset','NOT_FOLLOWING','from','reverse','1635263FJGBBh','IUIPartsService','_unitID','Injector','getMemberID','data','SessionStatus','mask','LIVESHARE_TERMINATE','_collabSession','UniverIcon','onRendered','type','dispose$','set','send','init','RxDisposable','_fetchOperations','3888270aHvTzr','live-share.config','registerInitialStateReporter','colorChannel1','next','trim','throttleTime','get','Button','useEffect','DesktopLiveShareController','Dropdown','entries','IUniverInstanceService','parse','8lpwqsU','useRef','getValue','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','shouldShareOperation','_status','params','Plugin','getCurrentTypeOfUnit$','memberID','substring','createElement','_commandService','_reporters','3446815UQNDWA','1em','_handleOperation','mergeOverrideWithDependencies','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','includes','evenodd','displayName','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','Inject','_presenter','stopFollowing','LiveShare','_stopPresenting','LIVESHARE_FETCH_OPERATIONS','none','_startFollowing','19720APWjXU','_liveShareService','Start','sessionStatus$','_startLiveShareCoordinator','CommandType','2114778KFTFaY','stringify','OPERATION','dispose','touchDependencies','registerComponent','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','NEW_CHANGESETS','_commandDisposable','toStringTag','_injector','onCommandExecuted','onStarting','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','_uiPartsService','OFFLINE','getLiveShareCoordinatorSync','use','33230YVnbdD','unitId','_startPresenting','fill','getLiveShareCoordinator','toDisposable','path','forwardRef','_configService','http://www.w3.org/2000/svg','symbol','SAME_OPERATION_SHARE_INTERVAL','_handleOffline','presenting','IConfigService','Fragment','clear','idle','UNIVER_SHEET','LiveShareStatus','UNIVER_UNKNOWN','_handleOnline','_entities','currentColor','_collabSessionService','has','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','SetWorksheetActiveOperation','presenter','attrs','_status$','unsubscribe','values','defineProperty','startFollowing','24Aoojyk','asObservable','operations','ONLINE','_univerInstanceService','forEach','4qEsQtE','defIds','univer-size-4','_handleTerminate','FOLLOWING','DisposableCollection','LiveShareCoordinator','PRESENTING','getConfig','getUnitId','complete','Module','_mountLiveShare','offline','idSuffix','not-following','UniverInstanceType','subscribe','LIVESHARE_OPERATION','clsx','_sharedOperations','_stopFollowing','createInstance','LIVESHARE_NEW_HOST','toString','jsxs','UniverLiveSharePlugin','random','string','defs','pipe','delete','status$','takeUntil','Start\x20following','LiveShareController','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useObservable','UniverCollaborationClientPlugin','Disposable','CollaborationEvent','disposeWithMe','_init','useDependency','getInitialStates','BuiltInUIPart','children','SetZoomRatioOperation','xlink:href','registerSharedOperation','add','useState','current','stopPresenting','DependentOn'];_0x369f=function(){return _0x2dd45b;};return _0x369f();}var ie=Object['defineProperty'],se=Object[_0x313f97(0x10b)],ne=(_0x5787fc,_0x2124aa,_0x413d62)=>_0x2124aa in _0x5787fc?ie(_0x5787fc,_0x2124aa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413d62}):_0x5787fc[_0x2124aa]=_0x413d62,re=(_0x47d5c7,_0x42853d,_0x27c3df,_0x3219a4)=>{const _0x23cae9=_0x313f97;for(var _0x3e49f8=_0x3219a4>0x1?void 0x0:_0x3219a4?se(_0x42853d,_0x27c3df):_0x42853d,_0x4c9704=_0x47d5c7[_0x23cae9(0x19a)]-0x1,_0x5307c6;_0x4c9704>=0x0;_0x4c9704--)(_0x5307c6=_0x47d5c7[_0x4c9704])&&(_0x3e49f8=_0x5307c6(_0x3e49f8)||_0x3e49f8);return _0x3e49f8;},N=(_0x53b4d7,_0x1f361b)=>(_0x454065,_0x2735ed)=>_0x1f361b(_0x454065,_0x2735ed,_0x53b4d7),A=(_0x44c308,_0x273e01,_0x387e56)=>ne(_0x44c308,typeof _0x273e01!='symbol'?_0x273e01+'':_0x273e01,_0x387e56);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x313f97(0x171)]=class extends o[_0x313f97(0xfb)]{constructor(_0x91b613=w,_0x126e1a,_0x4d086c){const _0xa19bed=_0x313f97;super(),this['_config']=_0x91b613,this[_0xa19bed(0x125)]=_0x126e1a,this[_0xa19bed(0x136)]=_0x4d086c;const {..._0x33e502}=o[_0xa19bed(0x196)]({},w,this['_config']);this[_0xa19bed(0x136)]['setConfig'](Q,_0x33e502);}[_0x313f97(0x127)](){const _0x4fc9f8=_0x313f97;o['registerDependencies'](this[_0x4fc9f8(0x125)],o[_0x4fc9f8(0x105)]([[E],[exports[_0x4fc9f8(0x17a)]],[m],[exports[_0x4fc9f8(0xef)]]],this[_0x4fc9f8(0x192)]['override'])),o['touchDependencies'](this['_injector'],[[m]]);}[_0x313f97(0xdd)](){const _0xfb0ce1=_0x313f97;o[_0xfb0ce1(0x11f)](this['_injector'],[[exports[_0xfb0ce1(0xef)]]]);}},A(exports[_0x313f97(0x171)],_0x313f97(0xde),o['UniverInstanceType'][_0x313f97(0x142)]),A(exports[_0x313f97(0x171)],'pluginName',oe),exports['UniverLiveSharePlugin']=re([o[_0x313f97(0x18d)](b[_0x313f97(0x17d)]),N(0x1,o[_0x313f97(0x10d)](o['Injector'])),N(0x2,o[_0x313f97(0x13c)])],exports[_0x313f97(0x171)]),exports[_0x313f97(0x110)]=$,exports['LiveShareService']=E,exports[_0x313f97(0x141)]=u;
|
|
1
|
+
'use strict';const _0x325fc6=_0x2704;(function(_0xb9d387,_0x40e7f4){const _0x4e6180=_0x2704,_0x21b4d7=_0xb9d387();while(!![]){try{const _0xccc9a5=parseInt(_0x4e6180(0x19c))/0x1+parseInt(_0x4e6180(0x1fd))/0x2+parseInt(_0x4e6180(0x1eb))/0x3*(parseInt(_0x4e6180(0x16b))/0x4)+-parseInt(_0x4e6180(0x199))/0x5*(parseInt(_0x4e6180(0x1d6))/0x6)+parseInt(_0x4e6180(0x1f8))/0x7*(-parseInt(_0x4e6180(0x220))/0x8)+parseInt(_0x4e6180(0x204))/0x9+-parseInt(_0x4e6180(0x1a6))/0xa*(parseInt(_0x4e6180(0x1e4))/0xb);if(_0xccc9a5===_0x40e7f4)break;else _0x21b4d7['push'](_0x21b4d7['shift']());}catch(_0x1085a0){_0x21b4d7['push'](_0x21b4d7['shift']());}}}(_0x16a2,0xb29d4));var T=Object[_0x325fc6(0x1d4)],U=(_0x2dc5cd,_0x46bf8d,_0x36d195)=>_0x46bf8d in _0x2dc5cd?T(_0x2dc5cd,_0x46bf8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d195}):_0x2dc5cd[_0x46bf8d]=_0x36d195,_=(_0x230384,_0x3f71ab,_0x299554)=>U(_0x230384,typeof _0x3f71ab!=_0x325fc6(0x1fb)?_0x3f71ab+'':_0x3f71ab,_0x299554);Object[_0x325fc6(0x1d4)](exports,Symbol[_0x325fc6(0x1e0)],{'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 _0x2704(_0x1272ec,_0x408240){_0x1272ec=_0x1272ec-0x160;const _0x16a2d0=_0x16a2();let _0x2704ff=_0x16a2d0[_0x1272ec];return _0x2704ff;}function x({ref:_0x4b4e19,..._0x1b68a8}){const _0x154aa9=_0x325fc6,{icon:_0x1a4400,id:_0x2d1bdc,className:_0x917c7,extend:_0x72c047,..._0x167dde}=_0x1b68a8,_0x2e6850=(_0x154aa9(0x1b7)+_0x2d1bdc+'\x20'+(_0x917c7||''))[_0x154aa9(0x1ef)](),_0x401512=v[_0x154aa9(0x19f)]('_'+H());return j(_0x1a4400,''+_0x2d1bdc,{'defIds':_0x1a4400[_0x154aa9(0x1c9)],'idSuffix':_0x401512[_0x154aa9(0x183)]},{'ref':_0x4b4e19,'className':_0x2e6850,..._0x167dde},_0x72c047);}function j(_0x3093ce,_0x5b43ec,_0x22ca4b,_0x59e527,_0x4c01a1){const _0x5d55e6=_0x325fc6;return v[_0x5d55e6(0x1e9)](_0x3093ce[_0x5d55e6(0x186)],{'key':_0x5b43ec,...y(_0x3093ce,_0x22ca4b,_0x4c01a1),..._0x59e527},(F(_0x3093ce,_0x22ca4b)[_0x5d55e6(0x227)]||[])['map']((_0x2a5262,_0x3ef249)=>j(_0x2a5262,_0x5b43ec+'-'+_0x3093ce[_0x5d55e6(0x186)]+'-'+_0x3ef249,_0x22ca4b,void 0x0,_0x4c01a1)));}function y(_0x2a4fdb,_0x47bfbc,_0x924f08){const _0x14008e=_0x325fc6,_0x5e4132={..._0x2a4fdb[_0x14008e(0x1ed)]};_0x924f08!=null&&_0x924f08['colorChannel1']&&_0x5e4132[_0x14008e(0x228)]===_0x14008e(0x1b2)&&(_0x5e4132[_0x14008e(0x228)]=_0x924f08['colorChannel1']),_0x2a4fdb[_0x14008e(0x186)]===_0x14008e(0x18f)&&_0x5e4132['id']&&(_0x5e4132['id']=_0x5e4132['id']+_0x47bfbc['idSuffix']),Object['entries'](_0x5e4132)[_0x14008e(0x1c6)](([_0x33cfca,_0x496a86])=>{const _0xc1d885=_0x14008e;_0x33cfca==='mask'&&typeof _0x496a86==_0xc1d885(0x20f)&&(_0x5e4132[_0x33cfca]=_0x496a86[_0xc1d885(0x1cc)](/url\(#(.*)\)/,_0xc1d885(0x161)+_0x47bfbc[_0xc1d885(0x180)]+')'));});const {defIds:_0x1807e3}=_0x47bfbc;return!_0x1807e3||_0x1807e3['length']===0x0||(_0x2a4fdb[_0x14008e(0x186)]===_0x14008e(0x1c0)&&_0x5e4132[_0x14008e(0x1d7)]&&(_0x5e4132['xlink:href']=_0x5e4132[_0x14008e(0x1d7)]+_0x47bfbc[_0x14008e(0x180)]),Object[_0x14008e(0x19a)](_0x5e4132)[_0x14008e(0x1c6)](([_0x3e8c63,_0x296aa8])=>{const _0x37401a=_0x14008e;typeof _0x296aa8==_0x37401a(0x20f)&&(_0x5e4132[_0x3e8c63]=_0x296aa8[_0x37401a(0x1cc)](/url\(#(.*)\)/,'url(#$1'+_0x47bfbc[_0x37401a(0x180)]+')'));})),_0x5e4132;}function F(_0x105f8f,_0x521665){const _0x45ba36=_0x325fc6;var _0x472961;const {defIds:_0xe452bb}=_0x521665;return!_0xe452bb||_0xe452bb[_0x45ba36(0x1da)]===0x0?_0x105f8f:_0x105f8f[_0x45ba36(0x186)]===_0x45ba36(0x1a4)&&((_0x472961=_0x105f8f[_0x45ba36(0x227)])!=null&&_0x472961[_0x45ba36(0x1da)])?{..._0x105f8f,'children':_0x105f8f[_0x45ba36(0x227)][_0x45ba36(0x17d)](_0x4c7816=>typeof _0x4c7816[_0x45ba36(0x1ed)]['id']==_0x45ba36(0x20f)&&_0xe452bb&&_0xe452bb['includes'](_0x4c7816[_0x45ba36(0x1ed)]['id'])?{..._0x4c7816,'attrs':{..._0x4c7816[_0x45ba36(0x1ed)],'id':_0x4c7816[_0x45ba36(0x1ed)]['id']+_0x521665[_0x45ba36(0x180)]}}:_0x4c7816)}:_0x105f8f;}function H(){const _0x19754d=_0x325fc6;return Math[_0x19754d(0x167)]()[_0x19754d(0x212)](0x24)[_0x19754d(0x182)](0x2,0x8);}x[_0x325fc6(0x192)]=_0x325fc6(0x16a);const V={'tag':_0x325fc6(0x1e8),'attrs':{'xmlns':_0x325fc6(0x1ca),'fill':_0x325fc6(0x176),'viewBox':_0x325fc6(0x16f),'width':_0x325fc6(0x18e),'height':_0x325fc6(0x18e)},'children':[{'tag':_0x325fc6(0x1e7),'attrs':{'fill':_0x325fc6(0x17a),'d':_0x325fc6(0x209)}},{'tag':_0x325fc6(0x1e7),'attrs':{'fill':_0x325fc6(0x17a),'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':_0x325fc6(0x1ad),'clipRule':_0x325fc6(0x1ad)}}]},R=v[_0x325fc6(0x170)](function(_0x4c1584,_0x4e6fc9){const _0x3745fc=_0x325fc6;return v[_0x3745fc(0x1e9)](x,Object[_0x3745fc(0x216)]({},_0x4c1584,{'id':'live-share-icon','ref':_0x4e6fc9,'icon':V}));});R[_0x325fc6(0x192)]=_0x325fc6(0x163);class E extends o['Disposable']{constructor(){const _0x1a00a6=_0x325fc6;super(...arguments),_(this,_0x1a00a6(0x21d),new Set()),_(this,_0x1a00a6(0x1d0),new Set());}['registerSharedOperation'](_0x535ca8){const _0x34b1c2=_0x325fc6;return this['_sharedOperations']['add'](_0x535ca8),o[_0x34b1c2(0x202)](()=>this['_sharedOperations']['delete'](_0x535ca8));}['registerInitialStateReporter'](_0x54b0ab){const _0x14baf0=_0x325fc6;return this['_reporters'][_0x14baf0(0x1b6)](_0x54b0ab),o[_0x14baf0(0x202)](()=>this[_0x14baf0(0x1d0)]['delete'](_0x54b0ab));}[_0x325fc6(0x21f)](_0x587c19){const _0x311d1b=_0x325fc6;return this[_0x311d1b(0x21d)][_0x311d1b(0x185)](_0x587c19);}[_0x325fc6(0x223)](_0xb2bfbe){const _0x46a13d=_0x325fc6;return Array['from'](this[_0x46a13d(0x1d0)])['map'](_0x2a18b4=>_0x2a18b4(_0xb2bfbe));}}var M=Object[_0x325fc6(0x203)],P=(_0x378624,_0x42e6f0,_0x46e0b4,_0x5e1fbc)=>{const _0x5b8d8d=_0x325fc6;for(var _0x1b4b32=_0x5e1fbc>0x1?void 0x0:_0x5e1fbc?M(_0x42e6f0,_0x46e0b4):_0x42e6f0,_0x2236cf=_0x378624[_0x5b8d8d(0x1da)]-0x1,_0x23d6e7;_0x2236cf>=0x0;_0x2236cf--)(_0x23d6e7=_0x378624[_0x2236cf])&&(_0x1b4b32=_0x23d6e7(_0x1b4b32)||_0x1b4b32);return _0x1b4b32;},S=(_0x22e12f,_0x20bf22)=>(_0x479c2f,_0x2cfc8d)=>_0x20bf22(_0x479c2f,_0x2cfc8d,_0x22e12f);exports[_0x325fc6(0x1cb)]=class extends o['RxDisposable']{constructor(_0x5259b9,_0x324f8b,_0x1bddcc){const _0x16b81a=_0x325fc6;super(),_(this,_0x16b81a(0x1fe),new Map()),(this[_0x16b81a(0x1ec)]=_0x5259b9,this[_0x16b81a(0x1ba)]=_0x324f8b,this['_collabSessionService']=_0x1bddcc,this[_0x16b81a(0x211)]());}async[_0x325fc6(0x1ce)](_0x2ed5c1){const _0x22852c=_0x325fc6;return this[_0x22852c(0x1fe)][_0x22852c(0x185)](_0x2ed5c1)||await this[_0x22852c(0x177)](_0x2ed5c1),this[_0x22852c(0x1fe)]['get'](_0x2ed5c1);}[_0x325fc6(0x19b)](_0x25ed0f){const _0x2b5a07=_0x325fc6;var _0x4b7eb3;return(_0x4b7eb3=this[_0x2b5a07(0x1fe)][_0x2b5a07(0x201)](_0x25ed0f))!=null?_0x4b7eb3:null;}[_0x325fc6(0x211)](){const _0x287849=_0x325fc6;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x287849(0x207)][_0x287849(0x1a1)])[_0x287849(0x214)](I[_0x287849(0x1b9)](this[_0x287849(0x1ab)]))[_0x287849(0x171)](async _0x47a9a8=>{const _0x39c34f=_0x287849,_0x1fa910=_0x47a9a8[_0x39c34f(0x17b)]();this[_0x39c34f(0x1fe)][_0x39c34f(0x185)](_0x1fa910)||this[_0x39c34f(0x177)](_0x1fa910);}),this[_0x287849(0x1ec)][_0x287849(0x17e)](o[_0x287849(0x207)][_0x287849(0x1a1)])[_0x287849(0x214)](I[_0x287849(0x1b9)](this[_0x287849(0x1ab)]))[_0x287849(0x171)](_0xda1e9d=>{const _0x551c48=_0x287849,_0x1da041=_0xda1e9d[_0x551c48(0x17b)](),_0x429537=this[_0x551c48(0x1fe)]['get'](_0x1da041);_0x429537==null||_0x429537[_0x551c48(0x1d2)]();});}async['_startLiveShareCoordinator'](_0x3d6b1b){const _0x1fbcb9=_0x325fc6,_0x2b7cee=await this[_0x1fbcb9(0x1f6)][_0x1fbcb9(0x18b)](_0x3d6b1b),_0x524314=this[_0x1fbcb9(0x1ba)][_0x1fbcb9(0x1fa)](exports['LiveShareCoordinator'],_0x3d6b1b,_0x2b7cee);return _0x524314['init'](),this[_0x1fbcb9(0x1fe)][_0x1fbcb9(0x1ff)](_0x3d6b1b,_0x524314),_0x524314;}},exports[_0x325fc6(0x1cb)]=P([S(0x0,o[_0x325fc6(0x1b5)]),S(0x1,o['Inject'](o[_0x325fc6(0x206)])),S(0x2,o[_0x325fc6(0x218)](b[_0x325fc6(0x22c)]))],exports[_0x325fc6(0x1cb)]);var u=(_0x32c39d=>(_0x32c39d['OFFLINE']=_0x325fc6(0x225),_0x32c39d['IDLE']=_0x325fc6(0x22b),_0x32c39d[_0x325fc6(0x1bb)]='following',_0x32c39d[_0x325fc6(0x1e3)]='not-following',_0x32c39d[_0x325fc6(0x1bd)]=_0x325fc6(0x1c3),_0x32c39d))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x325fc6(0x1c1)]=class extends o[_0x325fc6(0x210)]{constructor(_0x4da3a9,_0x9fc0fe,_0x1332ce,_0x1a387b,_0x1161e9){const _0x1e9007=_0x325fc6;super(),_(this,_0x1e9007(0x1fc),new O[(_0x1e9007(0x1a8))](_0x1e9007(0x22b))),_(this,_0x1e9007(0x22a),this['_status$']['asObservable']()),_(this,_0x1e9007(0x211),!0x1),_(this,_0x1e9007(0x196),null),_(this,'_presenter',null),(this[_0x1e9007(0x1db)]=_0x4da3a9,this[_0x1e9007(0x172)]=_0x9fc0fe,this[_0x1e9007(0x1ac)]=_0x1332ce,this[_0x1e9007(0x1b3)]=_0x1a387b,this[_0x1e9007(0x1e2)]=_0x1161e9);}get[_0x325fc6(0x169)](){const _0x4010c5=_0x325fc6;return this[_0x4010c5(0x1fc)][_0x4010c5(0x19e)]();}[_0x325fc6(0x1d2)](){const _0x2edd3e=_0x325fc6;var _0x188dbd;(_0x188dbd=this[_0x2edd3e(0x196)])==null||_0x188dbd['dispose'](),this[_0x2edd3e(0x1fc)]['next'](_0x2edd3e(0x22b)),this['_status$']['complete']();}['getStatus'](){const _0x4fe67a=_0x325fc6;return this[_0x4fe67a(0x169)];}['init'](){const _0x33d8b6=_0x325fc6;this[_0x33d8b6(0x211)]||(this[_0x33d8b6(0x211)]=!0x0,this[_0x33d8b6(0x172)][_0x33d8b6(0x1a7)]['pipe'](I[_0x33d8b6(0x1b9)](this[_0x33d8b6(0x1ab)]))[_0x33d8b6(0x171)](_0x4aafd5=>{const _0x340cb2=_0x33d8b6;switch(_0x4aafd5){case b[_0x340cb2(0x1d3)][_0x340cb2(0x17f)]:this['_handleOffline']();break;case b[_0x340cb2(0x1d3)][_0x340cb2(0x1d9)]:this['_handleOnline']();break;}}),this[_0x33d8b6(0x172)]['event$'][_0x33d8b6(0x214)](I[_0x33d8b6(0x1b9)](this[_0x33d8b6(0x1ab)]))[_0x33d8b6(0x171)](_0x14a5ac=>{const _0x4a7a6a=_0x33d8b6,{eventID:_0x10f72d}=_0x14a5ac;switch(_0x10f72d){case d[_0x4a7a6a(0x164)][_0x4a7a6a(0x1ae)]:this[_0x4a7a6a(0x188)](_0x14a5ac);break;case d[_0x4a7a6a(0x164)][_0x4a7a6a(0x1e6)]:this[_0x4a7a6a(0x1b0)](_0x14a5ac);break;case d[_0x4a7a6a(0x164)][_0x4a7a6a(0x195)]:this[_0x4a7a6a(0x1f7)]();break;case d[_0x4a7a6a(0x164)][_0x4a7a6a(0x1cf)]:this[_0x4a7a6a(0x1a0)](_0x14a5ac);break;}}));}[_0x325fc6(0x16e)](){const _0x239c0a=_0x325fc6;this[_0x239c0a(0x172)][_0x239c0a(0x1c8)]({'eventID':d[_0x239c0a(0x164)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x239c0a(0x1db)],'userID':this['_collabSession'][_0x239c0a(0x1f9)]()}},this[_0x239c0a(0x1db)]);}[_0x325fc6(0x1f3)](){const _0x4d8011=_0x325fc6;this[_0x4d8011(0x169)]===_0x4d8011(0x1c3)&&(this['_status$']['next'](_0x4d8011(0x22b)),this[_0x4d8011(0x172)][_0x4d8011(0x1c8)]({'eventID':d[_0x4d8011(0x164)][_0x4d8011(0x195)],'data':{'unitID':this[_0x4d8011(0x1db)]}},this[_0x4d8011(0x1db)]));}[_0x325fc6(0x1f2)](){const _0x196c4d=_0x325fc6;this['_status']===_0x196c4d(0x160)&&(this[_0x196c4d(0x1fc)][_0x196c4d(0x1aa)](_0x196c4d(0x194)),this[_0x196c4d(0x1c2)]());}[_0x325fc6(0x168)](){const _0x5bbdba=_0x325fc6;this[_0x5bbdba(0x169)]===_0x5bbdba(0x194)&&this[_0x5bbdba(0x215)]();}[_0x325fc6(0x188)](_0x26cfd8){const _0x1cf1c3=_0x325fc6,{presenter:_0x59627d}=_0x26cfd8[_0x1cf1c3(0x1f1)],_0x703a57=this[_0x1cf1c3(0x172)][_0x1cf1c3(0x1f9)]();this[_0x1cf1c3(0x187)]=_0x59627d,_0x59627d===_0x703a57?(this[_0x1cf1c3(0x215)](),this[_0x1cf1c3(0x21c)]()):this['_status']!==_0x1cf1c3(0x160)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x325fc6(0x1be)](){const _0x485718=_0x325fc6,_0x38ca0b={'eventID':d[_0x485718(0x164)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x485718(0x172)]['send'](_0x38ca0b,this['_unitID']);}['_handleTerminate'](){const _0x34dc9f=_0x325fc6;this[_0x34dc9f(0x187)]=null,this[_0x34dc9f(0x169)]!=='presenting'&&this['_beIdle']();}[_0x325fc6(0x1a0)](_0x39b237){const _0xf1f63a=_0x325fc6;if(this[_0xf1f63a(0x169)]===_0xf1f63a(0x194)&&this[_0xf1f63a(0x187)]===_0x39b237[_0xf1f63a(0x1f1)]['memberID']){const _0x3e42a1=d[_0xf1f63a(0x1a2)](_0x39b237[_0xf1f63a(0x1f1)])[_0xf1f63a(0x18d)][_0xf1f63a(0x1d5)]()[_0xf1f63a(0x197)](_0x3d75b4=>_0x3d75b4['id']===C[_0xf1f63a(0x193)]['id']);if(_0x3e42a1){const _0x46d441=_0x3e42a1[_0xf1f63a(0x166)][_0xf1f63a(0x1a3)],_0x4738ed=_0x3e42a1[_0xf1f63a(0x166)]['sheet']['id'];setTimeout(()=>{const _0x3bd665=_0xf1f63a;this[_0x3bd665(0x1e2)][_0x3bd665(0x1f5)](C[_0x3bd665(0x208)]['id'],{'unitId':_0x46d441,'subUnitId':_0x4738ed},{'fromCollab':!0x0});});}}}[_0x325fc6(0x21c)](){const _0x39fa46=_0x325fc6;this[_0x39fa46(0x1fc)][_0x39fa46(0x1aa)](_0x39fa46(0x1c3));const _0x218e3b=new Map(),_0x187d69=this['_commandDisposable']=new o['DisposableCollection']();_0x187d69[_0x39fa46(0x1b6)](o[_0x39fa46(0x202)](()=>{const _0x4d87c4=_0x39fa46;_0x218e3b['forEach'](_0x596200=>_0x596200['complete']()),_0x218e3b[_0x4d87c4(0x175)]();})),_0x187d69[_0x39fa46(0x1b6)](this[_0x39fa46(0x1e2)][_0x39fa46(0x18c)](_0xb57961=>{const _0x25df51=_0x39fa46;var _0x18a9a6;if(_0xb57961[_0x25df51(0x1de)]!==o['CommandType'][_0x25df51(0x198)]||!this[_0x25df51(0x1b3)][_0x25df51(0x21f)](_0xb57961['id']))return;const {id:_0x59a417}=_0xb57961;let _0x3994a9;_0x218e3b[_0x25df51(0x185)](_0x59a417)?_0x3994a9=_0x218e3b[_0x25df51(0x201)](_0x59a417):(_0x3994a9=new O['Subject'](),_0x218e3b[_0x25df51(0x1ff)](_0x59a417,_0x3994a9),_0x3994a9[_0x25df51(0x214)](I[_0x25df51(0x222)]((_0x18a9a6=this[_0x25df51(0x1ac)]['getConfig'](k))!=null?_0x18a9a6:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x25df51(0x171)](_0x59e940=>{const _0x4ccecd=_0x25df51;this['_collabSession'][_0x4ccecd(0x1c8)]({'eventID':d[_0x4ccecd(0x164)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4ccecd(0x1db)],'operations':{[_0x59e940['id']]:{'id':_0x59e940['id'],'params':JSON[_0x4ccecd(0x18a)](_0x59e940[_0x4ccecd(0x166)])}}}},this['_unitID']);})),_0x3994a9[_0x25df51(0x1aa)](_0xb57961);})),this[_0x39fa46(0x1b3)][_0x39fa46(0x223)](this[_0x39fa46(0x1db)])[_0x39fa46(0x1c6)](_0x473c26=>this['_collabSession'][_0x39fa46(0x1c8)]({'eventID':d[_0x39fa46(0x164)][_0x39fa46(0x1e6)],'data':{'unitID':this['_unitID'],'operations':{[_0x473c26['id']]:{'id':_0x473c26['id'],'params':JSON['stringify'](_0x473c26[_0x39fa46(0x166)])}}}},this[_0x39fa46(0x1db)]));}['_stopPresenting'](){const _0x3141e4=_0x325fc6;var _0x677219;this[_0x3141e4(0x1fc)]['next'](_0x3141e4(0x22b)),(_0x677219=this['_commandDisposable'])==null||_0x677219['dispose'](),this[_0x3141e4(0x196)]=null;}[_0x325fc6(0x1c2)](){const _0x301a0b=_0x325fc6;var _0x2a340a;(_0x2a340a=this['_commandDisposable'])==null||_0x2a340a[_0x301a0b(0x1d2)](),this[_0x301a0b(0x1fc)][_0x301a0b(0x1aa)](_0x301a0b(0x194));}[_0x325fc6(0x1cd)](){const _0x198c3f=_0x325fc6;var _0x1a8f85;this[_0x198c3f(0x1fc)]['next']('idle'),(_0x1a8f85=this['_commandDisposable'])==null||_0x1a8f85[_0x198c3f(0x1d2)](),this[_0x198c3f(0x196)]=null;}[_0x325fc6(0x215)](){const _0x24e36f=_0x325fc6;var _0x2ff9c9;this[_0x24e36f(0x1fc)][_0x24e36f(0x1aa)](_0x24e36f(0x160)),(_0x2ff9c9=this[_0x24e36f(0x196)])==null||_0x2ff9c9[_0x24e36f(0x1d2)]();}[_0x325fc6(0x1b0)](_0x1c6f35){const _0x140363=_0x325fc6;if(['presenting',_0x140363(0x160),_0x140363(0x225)]['includes'](this[_0x140363(0x169)])||!_0x1c6f35[_0x140363(0x1f1)][_0x140363(0x1a5)]||_0x1c6f35['data'][_0x140363(0x1a5)]===this[_0x140363(0x172)][_0x140363(0x1f9)]())return;this[_0x140363(0x169)]===_0x140363(0x22b)&&this[_0x140363(0x1c2)]();const _0x504fbb=_0x1c6f35[_0x140363(0x1f1)][_0x140363(0x21e)];Object[_0x140363(0x174)](_0x504fbb)['forEach'](_0x32bf97=>{const _0x4e769a=_0x140363;this['_commandService'][_0x4e769a(0x1f5)](_0x32bf97['id'],_0x32bf97[_0x4e769a(0x166)]?JSON['parse'](_0x32bf97[_0x4e769a(0x166)]):null,{'fromCollab':!0x0});});}[_0x325fc6(0x1c7)](){const _0x399ac5=_0x325fc6;var _0x41763;this['_status$'][_0x399ac5(0x1aa)](_0x399ac5(0x225)),(_0x41763=this[_0x399ac5(0x196)])==null||_0x41763[_0x399ac5(0x1d2)]();}['_handleOnline'](){const _0x42d5f4=_0x325fc6;this[_0x42d5f4(0x1fc)][_0x42d5f4(0x1aa)](_0x42d5f4(0x22b)),this[_0x42d5f4(0x1be)]();}},exports[_0x325fc6(0x1c1)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x325fc6(0x218)](E)),S(0x4,o[_0x325fc6(0x219)])],exports['LiveShareCoordinator']);function $(){const _0x5785b6=_0x325fc6,_0x54763e=p[_0x5785b6(0x1ee)](exports[_0x5785b6(0x1cb)]),_0x374102=p[_0x5785b6(0x1ee)](o[_0x5785b6(0x1b5)]),_0x43c170=p[_0x5785b6(0x189)](()=>_0x374102[_0x5785b6(0x1bf)](o[_0x5785b6(0x207)][_0x5785b6(0x1a1)]),void 0x0,!0x1,[]),[_0x2b2362,_0x4814f5]=v['useState'](null),[_0x2383e9,_0x41ba7a]=v[_0x5785b6(0x1e5)](u[_0x5785b6(0x1ea)]),_0x318384=v[_0x5785b6(0x19f)](null);return v['useEffect'](()=>(_0x43c170&&_0x54763e[_0x5785b6(0x1ce)](_0x43c170[_0x5785b6(0x17b)]())[_0x5785b6(0x173)](_0x547fb4=>{const _0x4e6cbc=_0x5785b6;_0x4814f5(_0x547fb4),_0x318384[_0x4e6cbc(0x183)]=_0x547fb4[_0x4e6cbc(0x22a)]['subscribe'](_0x2ce193=>{_0x41ba7a(_0x2ce193);});}),()=>{const _0x39385d=_0x5785b6;var _0x1e839f;(_0x1e839f=_0x318384[_0x39385d(0x183)])==null||_0x1e839f['unsubscribe'](),_0x318384[_0x39385d(0x183)]=null;}),[_0x43c170,_0x54763e]),_0x2b2362?l[_0x5785b6(0x179)](f[_0x5785b6(0x224)],{'align':_0x5785b6(0x1af),'disabled':_0x2383e9===u[_0x5785b6(0x17f)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x5785b6(0x179)](W,{'status':_0x2383e9,'coordinator':_0x2b2362}),'children':l['jsx']('button',{'className':f['clsx'](_0x5785b6(0x1d8),{'univer-cursor-not-allowed':_0x2383e9===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2383e9!==u[_0x5785b6(0x17f)]}),'type':'button','children':l[_0x5785b6(0x179)](R,{'className':_0x5785b6(0x20b)})})}):null;}function W(_0x298f70){const _0xf39574=_0x325fc6,{status:_0x480251,coordinator:_0x1db805}=_0x298f70;switch(_0x480251){case u[_0xf39574(0x1ea)]:return l[_0xf39574(0x179)](G,{'coordinator':_0x1db805});case u[_0xf39574(0x1bb)]:return l[_0xf39574(0x179)](B,{'coordinator':_0x1db805});case u[_0xf39574(0x1e3)]:return l[_0xf39574(0x179)](Y,{'coordinator':_0x1db805});case u[_0xf39574(0x17f)]:return l[_0xf39574(0x179)](J,{});case u[_0xf39574(0x1bd)]:return l['jsx'](Z,{'coordinator':_0x1db805});default:return null;}}function G(_0x5f2165){const _0x47beb9=_0x325fc6,{coordinator:_0x4ba123}=_0x5f2165;return l[_0x47beb9(0x1f0)](l[_0x47beb9(0x1a9)],{'children':[l['jsx'](_0x47beb9(0x213),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x47beb9(0x1bc)}),l[_0x47beb9(0x179)](f[_0x47beb9(0x1dc)],{'onClick':()=>_0x4ba123[_0x47beb9(0x16e)](),'children':_0x47beb9(0x191)})]});}function B(_0x532aa6){const _0xadf7a5=_0x325fc6,{coordinator:_0x2301d8}=_0x532aa6;return l[_0xadf7a5(0x1f0)](l[_0xadf7a5(0x1a9)],{'children':[l[_0xadf7a5(0x179)](_0xadf7a5(0x213),{'className':_0xadf7a5(0x1d1),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0xadf7a5(0x179)](f['Button'],{'onClick':()=>_0x2301d8['stopFollowing'](),'children':_0xadf7a5(0x181)})]});}function _0x16a2(){const _0x17b50f=['378044DlGbfD','touchDependencies','live-share.config','tryStartPresenting','0\x200\x2017\x2017','forwardRef','subscribe','_collabSession','then','values','clear','none','_startLiveShareCoordinator','Disposable','jsx','currentColor','getUnitId','LiveShareStatus','map','getTypeOfUnitDisposed$','OFFLINE','idSuffix','Stop\x20following','substring','current','Start\x20following','has','tag','_presenter','_handleNewHost','useObservable','stringify','requireSession','onCommandExecuted','mutations','1em','mask','SetZoomRatioOperation','Start','displayName','InsertSheetMutation','following','LIVESHARE_TERMINATE','_commandDisposable','find','OPERATION','644745qaQaDg','entries','getLiveShareCoordinatorSync','696160wmVtwz','disposeWithMe','getValue','useRef','_handleNewChangeSets','UNIVER_SHEET','parseProtocolChangeset','unitId','defs','presenter','10YQYziR','sessionStatus$','BehaviorSubject','Fragment','next','dispose$','_configService','evenodd','LIVESHARE_NEW_HOST','end','_handleOperation','UNIVER_UNKNOWN','colorChannel1','_liveShareService','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','add','univerjs-icon\x20univerjs-icon-','pluginName','takeUntil','_injector','FOLLOWING','Present\x20this\x20document','PRESENTING','_fetchOperations','getCurrentTypeOfUnit$','use','LiveShareCoordinator','_startFollowing','presenting','text','registerComponent','forEach','_handleOffline','send','defIds','http://www.w3.org/2000/svg','LiveShareController','replace','_beIdle','getLiveShareCoordinator','NEW_CHANGESETS','_reporters','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','SessionStatus','defineProperty','reverse','6xzzaKm','xlink:href','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','ONLINE','length','_unitID','Button','_uiPartsService','type','onStarting','toStringTag','UNIVER_LIVE_SHARE_PLUGIN','_commandService','NOT_FOLLOWING','16386623YMihYw','useState','LIVESHARE_OPERATION','path','svg','createElement','IDLE','21XgWaNa','_univerInstanceService','attrs','useDependency','trim','jsxs','data','startFollowing','stopPresenting','merge','executeCommand','_collabSessionService','_handleTerminate','9484993YgdamM','getMemberID','createInstance','symbol','_status$','1775174rryEDi','_entities','set','You\x27re\x20not\x20following\x20the\x20presenter','get','toDisposable','getOwnPropertyDescriptor','13139289gIwdER','default','Injector','UniverInstanceType','SetWorksheetActiveOperation','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','Stop\x20presenting','univer-size-4','IUIPartsService','registerDependencies','UniverLiveSharePlugin','string','RxDisposable','_init','toString','div','pipe','_stopFollowing','assign','UniverCollaborationClientPlugin','Inject','ICommandService','BuiltInUIPart','IConfigService','_startPresenting','_sharedOperations','operations','shouldShareOperation','8tcXsmb','_mountLiveShare','throttleTime','getInitialStates','Dropdown','offline','DesktopLiveShareController','children','fill','_config','status$','idle','CollaborationSessionService','LiveShare','not-following','url(#$1','connectInjector','LiveShareIcon','CollaborationEvent','SetScrollOperation','params','random','stopFollowing','_status','UniverIcon'];_0x16a2=function(){return _0x17b50f;};return _0x16a2();}function Y(_0x29eec8){const _0x357b6d=_0x325fc6,{coordinator:_0x5a3145}=_0x29eec8;return l['jsxs'](l[_0x357b6d(0x1a9)],{'children':[l[_0x357b6d(0x179)](_0x357b6d(0x213),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x357b6d(0x200)}),l[_0x357b6d(0x179)](f['Button'],{'variant':_0x357b6d(0x1c4),'onClick':()=>_0x5a3145[_0x357b6d(0x1f2)](),'children':_0x357b6d(0x184)})]});}function Z(_0x30e7cc){const _0x1d9511=_0x325fc6,{coordinator:_0x42102b}=_0x30e7cc;return l[_0x1d9511(0x1f0)](l[_0x1d9511(0x1a9)],{'children':[l[_0x1d9511(0x179)](_0x1d9511(0x213),{'className':_0x1d9511(0x1d1),'children':_0x1d9511(0x1b4)}),l[_0x1d9511(0x179)](f['Button'],{'variant':_0x1d9511(0x205),'onClick':()=>_0x42102b[_0x1d9511(0x1f3)](),'children':_0x1d9511(0x20a)})]});}function J(){const _0xebac58=_0x325fc6;return l[_0xebac58(0x179)](l[_0xebac58(0x1a9)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x325fc6(0x203)],z=(_0x173b82,_0x4b9133,_0x225adb,_0x2a8cc8)=>{const _0x431f01=_0x325fc6;for(var _0x2a55a3=_0x2a8cc8>0x1?void 0x0:_0x2a8cc8?K(_0x4b9133,_0x225adb):_0x4b9133,_0x557b32=_0x173b82[_0x431f01(0x1da)]-0x1,_0x5a9ebc;_0x557b32>=0x0;_0x557b32--)(_0x5a9ebc=_0x173b82[_0x557b32])&&(_0x2a55a3=_0x5a9ebc(_0x2a55a3)||_0x2a55a3);return _0x2a55a3;},L=(_0x3e5574,_0x16fd86)=>(_0x19d6f8,_0x4631e5)=>_0x16fd86(_0x19d6f8,_0x4631e5,_0x3e5574);exports[_0x325fc6(0x226)]=class extends o[_0x325fc6(0x178)]{constructor(_0x236334,_0x278f6d){const _0x248968=_0x325fc6;super(),this['_injector']=_0x236334,this[_0x248968(0x1dd)]=_0x278f6d,this[_0x248968(0x221)]();}['_mountLiveShare'](){const _0x508379=_0x325fc6;this['disposeWithMe'](this[_0x508379(0x1dd)][_0x508379(0x1c5)](p[_0x508379(0x21a)]['HEADER_MENU'],()=>p[_0x508379(0x162)]($,this[_0x508379(0x1ba)])));}},exports[_0x325fc6(0x226)]=z([L(0x0,o[_0x325fc6(0x218)](o[_0x325fc6(0x206)])),L(0x1,p[_0x325fc6(0x20c)])],exports[_0x325fc6(0x226)]);const Q=_0x325fc6(0x16d),w={};var X=Object[_0x325fc6(0x203)],ee=(_0x2a2e49,_0x1cf7ff,_0x4630d1,_0x547ff4)=>{const _0x39f559=_0x325fc6;for(var _0x43b8f1=_0x547ff4>0x1?void 0x0:_0x547ff4?X(_0x1cf7ff,_0x4630d1):_0x1cf7ff,_0x219508=_0x2a2e49[_0x39f559(0x1da)]-0x1,_0x2b7875;_0x219508>=0x0;_0x219508--)(_0x2b7875=_0x2a2e49[_0x219508])&&(_0x43b8f1=_0x2b7875(_0x43b8f1)||_0x43b8f1);return _0x43b8f1;},te=(_0x393d09,_0xfbf321)=>(_0xf7e40c,_0xf9b71a)=>_0xfbf321(_0xf7e40c,_0xf9b71a,_0x393d09);let m=class extends o[_0x325fc6(0x178)]{constructor(_0x3fe226){const _0x4392ec=_0x325fc6;super(),this[_0x4392ec(0x1b3)]=_0x3fe226,this[_0x4392ec(0x211)]();}[_0x325fc6(0x211)](){const _0x2d9ea6=_0x325fc6;[D[_0x2d9ea6(0x190)]['id'],D[_0x2d9ea6(0x165)]['id'],C[_0x2d9ea6(0x208)]['id']]['forEach'](_0x2d0702=>{const _0x414386=_0x2d9ea6;this[_0x414386(0x19d)](this[_0x414386(0x1b3)]['registerSharedOperation'](_0x2d0702));});}};m=ee([te(0x0,o[_0x325fc6(0x218)](E))],m);var ie=Object[_0x325fc6(0x1d4)],se=Object[_0x325fc6(0x203)],ne=(_0x149d3c,_0x175ca0,_0x405f97)=>_0x175ca0 in _0x149d3c?ie(_0x149d3c,_0x175ca0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x405f97}):_0x149d3c[_0x175ca0]=_0x405f97,re=(_0x264688,_0x875cc0,_0x197221,_0x46ad13)=>{const _0xdc3753=_0x325fc6;for(var _0x351c92=_0x46ad13>0x1?void 0x0:_0x46ad13?se(_0x875cc0,_0x197221):_0x875cc0,_0xb6ab5e=_0x264688[_0xdc3753(0x1da)]-0x1,_0x18f09f;_0xb6ab5e>=0x0;_0xb6ab5e--)(_0x18f09f=_0x264688[_0xb6ab5e])&&(_0x351c92=_0x18f09f(_0x351c92)||_0x351c92);return _0x351c92;},N=(_0x4e0112,_0x7153be)=>(_0x117b27,_0x1be4e0)=>_0x7153be(_0x117b27,_0x1be4e0,_0x4e0112),A=(_0x78c04e,_0x2b62c3,_0x44f225)=>ne(_0x78c04e,typeof _0x2b62c3!=_0x325fc6(0x1fb)?_0x2b62c3+'':_0x2b62c3,_0x44f225);const oe=_0x325fc6(0x1e1);exports[_0x325fc6(0x20e)]=class extends o['Plugin']{constructor(_0x271dfe=w,_0x496796,_0x5f15b1){const _0xb0f441=_0x325fc6;super(),this[_0xb0f441(0x229)]=_0x271dfe,this[_0xb0f441(0x1ba)]=_0x496796,this['_configService']=_0x5f15b1;const {..._0x482600}=o[_0xb0f441(0x1f4)]({},w,this[_0xb0f441(0x229)]);this['_configService']['setConfig'](Q,_0x482600);}[_0x325fc6(0x1df)](){const _0x36063f=_0x325fc6;o[_0x36063f(0x20d)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x36063f(0x1cb)]],[m],[exports[_0x36063f(0x226)]]],this[_0x36063f(0x229)]['override'])),o[_0x36063f(0x16c)](this[_0x36063f(0x1ba)],[[m]]);}['onRendered'](){const _0x3cfdd3=_0x325fc6;o[_0x3cfdd3(0x16c)](this[_0x3cfdd3(0x1ba)],[[exports[_0x3cfdd3(0x226)]]]);}},A(exports['UniverLiveSharePlugin'],_0x325fc6(0x1de),o[_0x325fc6(0x207)][_0x325fc6(0x1b1)]),A(exports['UniverLiveSharePlugin'],_0x325fc6(0x1b8),oe),exports[_0x325fc6(0x20e)]=re([o['DependentOn'](b[_0x325fc6(0x217)]),N(0x1,o[_0x325fc6(0x218)](o['Injector'])),N(0x2,o[_0x325fc6(0x21b)])],exports['UniverLiveSharePlugin']),exports[_0x325fc6(0x22d)]=$,exports['LiveShareService']=E,exports[_0x325fc6(0x17c)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5bfd09=_0x2449;(function(_0x2cdbe4,_0x2ab260){const _0x41d99f=_0x2449,_0x5b26fc=_0x2cdbe4();while(!![]){try{const _0x5c80e4=parseInt(_0x41d99f(0x1cf))/0x1*(-parseInt(_0x41d99f(0x1d6))/0x2)+-parseInt(_0x41d99f(0x1e8))/0x3*(-parseInt(_0x41d99f(0x1dd))/0x4)+parseInt(_0x41d99f(0x1e2))/0x5+-parseInt(_0x41d99f(0x1d8))/0x6+-parseInt(_0x41d99f(0x1eb))/0x7*(parseInt(_0x41d99f(0x1e4))/0x8)+parseInt(_0x41d99f(0x1db))/0x9+parseInt(_0x41d99f(0x1d5))/0xa;if(_0x5c80e4===_0x2ab260)break;else _0x5b26fc['push'](_0x5b26fc['shift']());}catch(_0x3bebd2){_0x5b26fc['push'](_0x5b26fc['shift']());}}}(_0x37cb,0xa6dfb));import{LiveShareController as _0x5abd77,LiveShareStatus as _0x5cf689}from'@univerjs-pro/live-share';function _0x2449(_0x380fd3,_0x1bc9fe){_0x380fd3=_0x380fd3-0x1cf;const _0x37cb9b=_0x37cb();let _0x2449b7=_0x37cb9b[_0x380fd3];return _0x2449b7;}import{IRenderManagerService as _0x4993a1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3438cd}from'@univerjs/sheets';import{SetScrollOperation as _0x4445e5}from'@univerjs/sheets-ui';import{FRange as _0x33be52}from'@univerjs/sheets/facade';import{FUniver as _0x395cca,FEnum as _0x967069}from'@univerjs/core/facade';class I extends _0x33be52{[_0x5bfd09(0x1df)](_0x16a596,_0x5796a9,_0x18ac9a,_0x1cf434,_0x48e2fe){const _0x5b28b2=_0x5bfd09,_0x3beb50=_0x16a596[_0x5b28b2(0x1d2)](_0x5abd77),_0x52d019=_0x16a596['get'](_0x4993a1),_0x2b07f9=_0x5796a9['getUnitId'](),_0x422009=_0x5796a9[_0x5b28b2(0x1d7)](),_0x211591=_0x3beb50[_0x5b28b2(0x1e1)](_0x2b07f9);(_0x211591==null?void 0x0:_0x211591['getStatus']())!==_0x5cf689['PRESENTING']||(_0x18ac9a['getSheetId']()!==_0x422009[_0x5b28b2(0x1ec)]()&&this[_0x5b28b2(0x1e6)][_0x5b28b2(0x1e3)](_0x3438cd['id'],{'unitId':_0x2b07f9,'subUnitId':_0x18ac9a[_0x5b28b2(0x1ec)]()}),!_0x52d019['getRenderById'](_0x2b07f9))||_0x48e2fe['syncExecuteCommand'](_0x4445e5['id'],{'unitId':_0x5796a9[_0x5b28b2(0x1e0)](),'sheetId':_0x18ac9a[_0x5b28b2(0x1ec)](),'sheetViewStartRow':_0x1cf434[_0x5b28b2(0x1d3)],'sheetViewStartColumn':_0x1cf434[_0x5b28b2(0x1d4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x33be52['extend'](I);function _0x37cb(){const _0x3ad315=['3APzsRB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','42tIALwJ','getSheetId','getActiveWorkbook','stopFollowing','IDLE','1hQOHiT','tryStartPresenting','getId','get','startRow','startColumn','20491100TzjArv','2051834hFtBDa','getActiveSheet','4954392EMCOUS','No\x20active\x20workbook\x20found.','LiveShareStatusEnum','11264067lNXzHE','stopPresenting','1262116zWUsym','startPresenting','_initialize','getUnitId','getLiveShareCoordinatorSync','180540xxVgsO','executeCommand','1489528wcquIe','getLiveShareStatus','_commandService','_injector'];_0x37cb=function(){return _0x3ad315;};return _0x37cb();}class m extends _0x395cca{[_0x5bfd09(0x1e5)](){const _0x3e8982=_0x5bfd09;var _0x2d8454,_0x59fc11;const _0x5b276b=this['_injector'][_0x3e8982(0x1d2)](_0x5abd77),_0x194465=(_0x2d8454=this[_0x3e8982(0x1ed)]())==null?void 0x0:_0x2d8454['getId']();if(!_0x194465)throw new Error(_0x3e8982(0x1d9));const _0x48620e=_0x5b276b['getLiveShareCoordinatorSync'](_0x194465);return(_0x59fc11=_0x48620e==null?void 0x0:_0x48620e['getStatus']())!=null?_0x59fc11:_0x5cf689[_0x3e8982(0x1ef)];}[_0x5bfd09(0x1ea)](){const _0x6a1739=_0x5bfd09;var _0x4f4999;const _0x335a46=this[_0x6a1739(0x1e7)][_0x6a1739(0x1d2)](_0x5abd77),_0x575511=(_0x4f4999=this[_0x6a1739(0x1ed)]())==null?void 0x0:_0x4f4999[_0x6a1739(0x1d1)]();if(!_0x575511)throw new Error(_0x6a1739(0x1d9));const _0x46a05e=_0x335a46[_0x6a1739(0x1e1)](_0x575511);if(!_0x46a05e)throw new Error(_0x6a1739(0x1e9));_0x46a05e[_0x6a1739(0x1ea)]();}[_0x5bfd09(0x1ee)](){const _0x583634=_0x5bfd09;var _0x3ce0da;const _0x2d1f3e=this[_0x583634(0x1e7)]['get'](_0x5abd77),_0x474408=(_0x3ce0da=this['getActiveWorkbook']())==null?void 0x0:_0x3ce0da[_0x583634(0x1d1)]();if(!_0x474408)throw new Error('No\x20active\x20workbook\x20found.');const _0x86da03=_0x2d1f3e[_0x583634(0x1e1)](_0x474408);if(!_0x86da03)throw new Error(_0x583634(0x1e9));_0x86da03[_0x583634(0x1ee)]();}[_0x5bfd09(0x1de)](){const _0xa37057=_0x5bfd09;var _0x75eb90;const _0x5381fd=this['_injector'][_0xa37057(0x1d2)](_0x5abd77),_0x3df261=(_0x75eb90=this['getActiveWorkbook']())==null?void 0x0:_0x75eb90[_0xa37057(0x1d1)]();if(!_0x3df261)throw new Error('No\x20active\x20workbook\x20found.');const _0x201dc1=_0x5381fd['getLiveShareCoordinatorSync'](_0x3df261);if(!_0x201dc1)throw new Error(_0xa37057(0x1e9));_0x201dc1[_0xa37057(0x1d0)]();}[_0x5bfd09(0x1dc)](){const _0x121def=_0x5bfd09;var _0x1b671c;const _0x28d64e=this[_0x121def(0x1e7)][_0x121def(0x1d2)](_0x5abd77),_0x8563ca=(_0x1b671c=this[_0x121def(0x1ed)]())==null?void 0x0:_0x1b671c[_0x121def(0x1d1)]();if(!_0x8563ca)throw new Error('No\x20active\x20workbook\x20found.');const _0x51c61a=_0x28d64e['getLiveShareCoordinatorSync'](_0x8563ca);if(!_0x51c61a)throw new Error(_0x121def(0x1e9));_0x51c61a[_0x121def(0x1dc)]();}}_0x395cca['extend'](m);class C extends _0x967069{get[_0x5bfd09(0x1da)](){return _0x5cf689;}}_0x967069['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1e3913=_0x10e8;(function(_0x1cddad,_0x2dccff){const _0x41a8ba=_0x10e8,_0x5e8fb5=_0x1cddad();while(!![]){try{const _0x2a8b01=-parseInt(_0x41a8ba(0x154))/0x1+parseInt(_0x41a8ba(0x180))/0x2+-parseInt(_0x41a8ba(0x1a9))/0x3+-parseInt(_0x41a8ba(0x19b))/0x4*(-parseInt(_0x41a8ba(0x179))/0x5)+parseInt(_0x41a8ba(0x120))/0x6+parseInt(_0x41a8ba(0x119))/0x7*(-parseInt(_0x41a8ba(0x138))/0x8)+parseInt(_0x41a8ba(0x133))/0x9;if(_0x2a8b01===_0x2dccff)break;else _0x5e8fb5['push'](_0x5e8fb5['shift']());}catch(_0x257955){_0x5e8fb5['push'](_0x5e8fb5['shift']());}}}(_0x19a8,0xdcaf4));var J=Object[_0x1e3913(0x135)],K=(_0x98264a,_0x316de4,_0x17052e)=>_0x316de4 in _0x98264a?J(_0x98264a,_0x316de4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17052e}):_0x98264a[_0x316de4]=_0x17052e,u=(_0x945b98,_0x4bdaff,_0x42b590)=>K(_0x945b98,typeof _0x4bdaff!=_0x1e3913(0x1bb)?_0x4bdaff+'':_0x4bdaff,_0x42b590);import{Disposable as _0x3fdec1,toDisposable as _0x1d9736,IUniverInstanceService as _0x2049b1,Inject as _0x11722,Injector as _0x1a2c9d,IConfigService as _0x3b5d57,ICommandService as _0x36eceb,RxDisposable as _0xc3b9c2,UniverInstanceType as _0x11c3ec,DisposableCollection as _0x2ecc7c,CommandType as _0x44b523,DependentOn as _0x4fabc5,Plugin as _0x53087b,merge as _0xdfd2,registerDependencies as _0x4a9481,mergeOverrideWithDependencies as _0x2de0a7,touchDependencies as _0x291806}from'@univerjs/core';import{useDependency as _0x277c9c,useObservable as _0x468a56,IUIPartsService as _0x599b7f,BuiltInUIPart as _0x135a48,connectInjector as _0x17e859}from'@univerjs/ui';import{jsx as _0x467149,jsxs as _0x25f640,Fragment as _0x33fc73}from'react/jsx-runtime';import{Dropdown as _0x4f4a70,clsx as _0x14156c,Button as _0x421518}from'@univerjs/design';import{useRef as _0x15158d,createElement as _0x73c6a2,forwardRef as _0x1733a2,useState as _0x2dbbd2,useEffect as _0x3b2fb9}from'react';import{CollaborationEvent as _0x3a643d,parseProtocolChangeset as _0xabead0}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4fce21,SessionStatus as _0x176c53,UniverCollaborationClientPlugin as _0x55d200}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xc3a114,SetWorksheetActiveOperation as _0x3b9598}from'@univerjs/sheets';import{BehaviorSubject as _0x100379,Subject as _0x3ac0a4}from'rxjs';import{takeUntil as _0xa6aee5,throttleTime as _0x48ac64}from'rxjs/operators';import{SetZoomRatioOperation as _0x262fa7,SetScrollOperation as _0x4ae607}from'@univerjs/sheets-ui';function k({ref:_0x8429fe,..._0x21b7da}){const _0x279576=_0x1e3913,{icon:_0x355eaf,id:_0x14c0d0,className:_0x40f9e4,extend:_0x24a783,..._0x281f88}=_0x21b7da,_0x27f66a=(_0x279576(0x1be)+_0x14c0d0+'\x20'+(_0x40f9e4||''))[_0x279576(0x1aa)](),_0x3a74b0=_0x15158d('_'+Oe());return G(_0x355eaf,''+_0x14c0d0,{'defIds':_0x355eaf[_0x279576(0x17a)],'idSuffix':_0x3a74b0['current']},{'ref':_0x8429fe,'className':_0x27f66a,..._0x281f88},_0x24a783);}function G(_0x16548c,_0x393871,_0x246e5e,_0x444117,_0xac3728){const _0x5dfcc3=_0x1e3913;return _0x73c6a2(_0x16548c[_0x5dfcc3(0x171)],{'key':_0x393871,...be(_0x16548c,_0x246e5e,_0xac3728),..._0x444117},(Ee(_0x16548c,_0x246e5e)[_0x5dfcc3(0x176)]||[])[_0x5dfcc3(0x15a)]((_0x32ba28,_0x4d9aef)=>G(_0x32ba28,_0x393871+'-'+_0x16548c[_0x5dfcc3(0x171)]+'-'+_0x4d9aef,_0x246e5e,void 0x0,_0xac3728)));}function be(_0x29ba5a,_0x167a23,_0x13bfb0){const _0x3064bc=_0x1e3913,_0x512f86={..._0x29ba5a[_0x3064bc(0x185)]};_0x13bfb0!=null&&_0x13bfb0[_0x3064bc(0x17b)]&&_0x512f86[_0x3064bc(0x163)]===_0x3064bc(0x17b)&&(_0x512f86[_0x3064bc(0x163)]=_0x13bfb0[_0x3064bc(0x17b)]),_0x29ba5a[_0x3064bc(0x171)]==='mask'&&_0x512f86['id']&&(_0x512f86['id']=_0x512f86['id']+_0x167a23[_0x3064bc(0x19f)]),Object['entries'](_0x512f86)['forEach'](([_0x72fc09,_0x1b445f])=>{const _0x1c0158=_0x3064bc;_0x72fc09===_0x1c0158(0x18e)&&typeof _0x1b445f==_0x1c0158(0x1bd)&&(_0x512f86[_0x72fc09]=_0x1b445f['replace'](/url\(#(.*)\)/,'url(#$1'+_0x167a23[_0x1c0158(0x19f)]+')'));});const {defIds:_0x183dc5}=_0x167a23;return!_0x183dc5||_0x183dc5[_0x3064bc(0x14f)]===0x0||(_0x29ba5a[_0x3064bc(0x171)]===_0x3064bc(0x164)&&_0x512f86[_0x3064bc(0x169)]&&(_0x512f86['xlink:href']=_0x512f86[_0x3064bc(0x169)]+_0x167a23[_0x3064bc(0x19f)]),Object[_0x3064bc(0x170)](_0x512f86)[_0x3064bc(0x12a)](([_0x3e9918,_0x30cc45])=>{const _0x550ea7=_0x3064bc;typeof _0x30cc45=='string'&&(_0x512f86[_0x3e9918]=_0x30cc45[_0x550ea7(0x167)](/url\(#(.*)\)/,_0x550ea7(0x14b)+_0x167a23[_0x550ea7(0x19f)]+')'));})),_0x512f86;}function Ee(_0x4cc858,_0x4d2860){const _0x1f5f14=_0x1e3913;var _0x45d5f;const {defIds:_0x329f03}=_0x4d2860;return!_0x329f03||_0x329f03[_0x1f5f14(0x14f)]===0x0?_0x4cc858:_0x4cc858[_0x1f5f14(0x171)]==='defs'&&((_0x45d5f=_0x4cc858[_0x1f5f14(0x176)])!=null&&_0x45d5f[_0x1f5f14(0x14f)])?{..._0x4cc858,'children':_0x4cc858[_0x1f5f14(0x176)]['map'](_0x4d7650=>typeof _0x4d7650['attrs']['id']==_0x1f5f14(0x1bd)&&_0x329f03&&_0x329f03[_0x1f5f14(0x18b)](_0x4d7650[_0x1f5f14(0x185)]['id'])?{..._0x4d7650,'attrs':{..._0x4d7650[_0x1f5f14(0x185)],'id':_0x4d7650['attrs']['id']+_0x4d2860[_0x1f5f14(0x19f)]}}:_0x4d7650)}:_0x4cc858;}function Oe(){const _0x4ddd61=_0x1e3913;return Math[_0x4ddd61(0x196)]()[_0x4ddd61(0x130)](0x24)['substring'](0x2,0x8);}k[_0x1e3913(0x13f)]=_0x1e3913(0x12e);const we={'tag':'svg','attrs':{'xmlns':_0x1e3913(0x118),'fill':_0x1e3913(0x143),'viewBox':_0x1e3913(0x18f),'width':'1em','height':_0x1e3913(0x193)},'children':[{'tag':_0x1e3913(0x151),'attrs':{'fill':_0x1e3913(0x1ab),'d':_0x1e3913(0x17d)}},{'tag':_0x1e3913(0x151),'attrs':{'fill':_0x1e3913(0x1ab),'d':_0x1e3913(0x17f),'fillRule':_0x1e3913(0x1b6),'clipRule':_0x1e3913(0x1b6)}}]},W=_0x1733a2(function(_0x1cec08,_0x257bc1){const _0x2820aa=_0x1e3913;return _0x73c6a2(k,Object[_0x2820aa(0x1ac)]({},_0x1cec08,{'id':_0x2820aa(0x198),'ref':_0x257bc1,'icon':we}));});function _0x19a8(){const _0x2e6224=['Stop\x20following','_startFollowing','has','UniverIcon','_config','toString','_sharedOperations','getLiveShareCoordinator','2386782TBLUIg','_startLiveShareCoordinator','defineProperty','_commandDisposable','Start\x20following','1752MLIGom','next','getStatus','presenter','asObservable','Present\x20this\x20document','unitId','displayName','requireSession','div','set','none','FOLLOWING','_presenter','IDLE','NOT_FOLLOWING','mutations','params','get','url(#$1','operations','_unitID','_stopFollowing','length','LIVESHARE_FETCH_OPERATIONS','path','tryStartPresenting','getOwnPropertyDescriptor','7533XgMZWC','delete','executeCommand','getValue','univer-size-4','_mountLiveShare','map','You\x27are\x20offline.','_configService','presenting','override','LIVESHARE_OPERATION','add','current','_collabSession','fill','use','_handleOffline','getTypeOfUnitAdded$','replace','disposeWithMe','xlink:href','getInitialStates','You\x27re\x20presenting\x20the\x20document','_injector','memberID','pipe','status$','entries','tag','getConfig','_fetchOperations','init','_uiPartsService','children','You\x27re\x20not\x20following\x20the\x20presenter','NEW_CHANGESETS','374685uRUjRo','defIds','colorChannel1','button','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','registerSharedOperation','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','2350368CNhMtL','parse','not-following','PRESENTING','dispose','attrs','offline','live-share.config','then','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','_beIdle','includes','_init','univer-mb-3\x20univer-w-full\x20univer-text-sm','mask','0\x200\x2017\x2017','data','getUnitId','onRendered','1em','SAME_OPERATION_SHARE_INTERVAL','HEADER_MENU','random','event$','live-share-icon','getMemberID','UNIVER_SHEET','24EYLpcX','_handleOnline','sessionStatus$','send','idSuffix','setConfig','_entities','complete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','idle','OPERATION','_handleTerminate','default','shouldShareOperation','4070493caMTGd','trim','currentColor','assign','createInstance','dispose$','LiveShareIcon','type','stringify','_reporters','Start','registerComponent','OFFLINE','evenodd','_collabSessionService','following','_univerInstanceService','registerInitialStateReporter','symbol','_status$','string','univerjs-icon\x20univerjs-icon-','_liveShareService','http://www.w3.org/2000/svg','24941DXZzPU','end','getLiveShareCoordinatorSync','_handleNewChangeSets','startFollowing','_startPresenting','subscribe','6951486sjufBs','_stopPresenting','_status','stopFollowing','text','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20presenting','LIVESHARE_TERMINATE','_handleNewHost','_commandService','forEach'];_0x19a8=function(){return _0x2e6224;};return _0x19a8();}W[_0x1e3913(0x13f)]=_0x1e3913(0x1af);class L extends _0x3fdec1{constructor(){const _0x4099dc=_0x1e3913;super(...arguments),u(this,_0x4099dc(0x131),new Set()),u(this,_0x4099dc(0x1b2),new Set());}[_0x1e3913(0x17e)](_0x1c168e){const _0x1b7060=_0x1e3913;return this[_0x1b7060(0x131)][_0x1b7060(0x160)](_0x1c168e),_0x1d9736(()=>this[_0x1b7060(0x131)]['delete'](_0x1c168e));}[_0x1e3913(0x1ba)](_0x4f8678){const _0x28f40a=_0x1e3913;return this[_0x28f40a(0x1b2)][_0x28f40a(0x160)](_0x4f8678),_0x1d9736(()=>this['_reporters'][_0x28f40a(0x155)](_0x4f8678));}[_0x1e3913(0x1a8)](_0x4a5c22){const _0x297ebc=_0x1e3913;return this[_0x297ebc(0x131)][_0x297ebc(0x12d)](_0x4a5c22);}[_0x1e3913(0x16a)](_0x5488b0){const _0x564e16=_0x1e3913;return Array['from'](this[_0x564e16(0x1b2)])[_0x564e16(0x15a)](_0x259b87=>_0x259b87(_0x5488b0));}}var Ne=Object[_0x1e3913(0x153)],Y=(_0x40cb0a,_0x42f74f,_0x3f3d8a,_0x46c1ab)=>{const _0x29e3a5=_0x1e3913;for(var _0x565f5e=_0x46c1ab>0x1?void 0x0:_0x46c1ab?Ne(_0x42f74f,_0x3f3d8a):_0x42f74f,_0x2ea746=_0x40cb0a[_0x29e3a5(0x14f)]-0x1,_0x28a212;_0x2ea746>=0x0;_0x2ea746--)(_0x28a212=_0x40cb0a[_0x2ea746])&&(_0x565f5e=_0x28a212(_0x565f5e)||_0x565f5e);return _0x565f5e;},_=(_0x134bd3,_0x136bff)=>(_0x101353,_0x16acc1)=>_0x136bff(_0x101353,_0x16acc1,_0x134bd3);let S=class extends _0xc3b9c2{constructor(_0x175b5a,_0x4ec1ae,_0x4712c6){const _0x49cc1c=_0x1e3913;super(),u(this,'_entities',new Map()),(this[_0x49cc1c(0x1b9)]=_0x175b5a,this[_0x49cc1c(0x16c)]=_0x4ec1ae,this[_0x49cc1c(0x1b7)]=_0x4712c6,this[_0x49cc1c(0x18c)]());}async[_0x1e3913(0x132)](_0x38c3f8){const _0x3852ad=_0x1e3913;return this[_0x3852ad(0x1a1)][_0x3852ad(0x12d)](_0x38c3f8)||await this[_0x3852ad(0x134)](_0x38c3f8),this[_0x3852ad(0x1a1)][_0x3852ad(0x14a)](_0x38c3f8);}[_0x1e3913(0x11b)](_0x1bc7ab){const _0x11910e=_0x1e3913;var _0x55e288;return(_0x55e288=this['_entities'][_0x11910e(0x14a)](_0x1bc7ab))!=null?_0x55e288:null;}[_0x1e3913(0x18c)](){const _0x5e3abf=_0x1e3913;this[_0x5e3abf(0x1b9)][_0x5e3abf(0x166)](_0x11c3ec[_0x5e3abf(0x19a)])[_0x5e3abf(0x16e)](_0xa6aee5(this[_0x5e3abf(0x1ae)]))['subscribe'](async _0x14f239=>{const _0x10c08f=_0x5e3abf,_0x1aae02=_0x14f239[_0x10c08f(0x191)]();this[_0x10c08f(0x1a1)][_0x10c08f(0x12d)](_0x1aae02)||this[_0x10c08f(0x134)](_0x1aae02);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x11c3ec[_0x5e3abf(0x19a)])[_0x5e3abf(0x16e)](_0xa6aee5(this[_0x5e3abf(0x1ae)]))[_0x5e3abf(0x11f)](_0x1eee94=>{const _0x253ed3=_0x5e3abf,_0x13a404=_0x1eee94[_0x253ed3(0x191)](),_0x44a02d=this[_0x253ed3(0x1a1)][_0x253ed3(0x14a)](_0x13a404);_0x44a02d==null||_0x44a02d[_0x253ed3(0x184)]();});}async[_0x1e3913(0x134)](_0x35b707){const _0x29a1f7=_0x1e3913,_0x4bb607=await this[_0x29a1f7(0x1b7)][_0x29a1f7(0x140)](_0x35b707),_0x3a4dc1=this[_0x29a1f7(0x16c)][_0x29a1f7(0x1ad)](N,_0x35b707,_0x4bb607);return _0x3a4dc1['init'](),this['_entities'][_0x29a1f7(0x142)](_0x35b707,_0x3a4dc1),_0x3a4dc1;}};S=Y([_(0x0,_0x2049b1),_(0x1,_0x11722(_0x1a2c9d)),_(0x2,_0x11722(_0x4fce21))],S);var c=(_0x3fe9f3=>(_0x3fe9f3[_0x1e3913(0x1b5)]=_0x1e3913(0x186),_0x3fe9f3[_0x1e3913(0x146)]=_0x1e3913(0x1a4),_0x3fe9f3[_0x1e3913(0x144)]=_0x1e3913(0x1b8),_0x3fe9f3[_0x1e3913(0x147)]=_0x1e3913(0x182),_0x3fe9f3[_0x1e3913(0x183)]='presenting',_0x3fe9f3))(c||{});const Ce=_0x1e3913(0x194),De=0xc8;let N=class extends _0xc3b9c2{constructor(_0x345f15,_0x55e960,_0x1e7295,_0x1ae897,_0x2b50db){const _0x12ed58=_0x1e3913;super(),u(this,_0x12ed58(0x1bc),new _0x100379('idle')),u(this,_0x12ed58(0x16f),this[_0x12ed58(0x1bc)][_0x12ed58(0x13c)]()),u(this,_0x12ed58(0x18c),!0x1),u(this,_0x12ed58(0x136),null),u(this,_0x12ed58(0x145),null),(this['_unitID']=_0x345f15,this['_collabSession']=_0x55e960,this[_0x12ed58(0x15c)]=_0x1e7295,this[_0x12ed58(0x117)]=_0x1ae897,this[_0x12ed58(0x129)]=_0x2b50db);}get['_status'](){const _0x53d208=_0x1e3913;return this[_0x53d208(0x1bc)][_0x53d208(0x157)]();}[_0x1e3913(0x184)](){const _0x44d97e=_0x1e3913;var _0x123e59;(_0x123e59=this['_commandDisposable'])==null||_0x123e59[_0x44d97e(0x184)](),this[_0x44d97e(0x1bc)]['next']('idle'),this['_status$'][_0x44d97e(0x1a2)]();}[_0x1e3913(0x13a)](){const _0x5cf592=_0x1e3913;return this[_0x5cf592(0x122)];}[_0x1e3913(0x174)](){const _0x5babce=_0x1e3913;this[_0x5babce(0x18c)]||(this['_init']=!0x0,this[_0x5babce(0x162)][_0x5babce(0x19d)][_0x5babce(0x16e)](_0xa6aee5(this[_0x5babce(0x1ae)]))[_0x5babce(0x11f)](_0x17bdb5=>{const _0x321fb5=_0x5babce;switch(_0x17bdb5){case _0x176c53[_0x321fb5(0x1b5)]:this[_0x321fb5(0x165)]();break;case _0x176c53['ONLINE']:this['_handleOnline']();break;}}),this[_0x5babce(0x162)][_0x5babce(0x197)][_0x5babce(0x16e)](_0xa6aee5(this[_0x5babce(0x1ae)]))[_0x5babce(0x11f)](_0x594414=>{const _0x1a87fb=_0x5babce,{eventID:_0xc2f90e}=_0x594414;switch(_0xc2f90e){case _0x3a643d['LIVESHARE_NEW_HOST']:this[_0x1a87fb(0x128)](_0x594414);break;case _0x3a643d[_0x1a87fb(0x15f)]:this['_handleOperation'](_0x594414);break;case _0x3a643d[_0x1a87fb(0x127)]:this[_0x1a87fb(0x1a6)]();break;case _0x3a643d[_0x1a87fb(0x178)]:this[_0x1a87fb(0x11c)](_0x594414);break;}}));}[_0x1e3913(0x152)](){const _0x4e1abb=_0x1e3913;this[_0x4e1abb(0x162)]['send']({'eventID':_0x3a643d['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4e1abb(0x14d)],'userID':this[_0x4e1abb(0x162)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x4ec911=_0x1e3913;this[_0x4ec911(0x122)]===_0x4ec911(0x15d)&&(this['_status$'][_0x4ec911(0x139)](_0x4ec911(0x1a4)),this[_0x4ec911(0x162)]['send']({'eventID':_0x3a643d[_0x4ec911(0x127)],'data':{'unitID':this[_0x4ec911(0x14d)]}},this[_0x4ec911(0x14d)]));}[_0x1e3913(0x11d)](){const _0x121d89=_0x1e3913;this[_0x121d89(0x122)]==='not-following'&&(this['_status$'][_0x121d89(0x139)](_0x121d89(0x1b8)),this[_0x121d89(0x12c)]());}[_0x1e3913(0x123)](){const _0x58d006=_0x1e3913;this[_0x58d006(0x122)]===_0x58d006(0x1b8)&&this['_stopFollowing']();}[_0x1e3913(0x128)](_0x1ed5d7){const _0x163928=_0x1e3913,{presenter:_0x61dc7c}=_0x1ed5d7[_0x163928(0x190)],_0x7e47ce=this[_0x163928(0x162)][_0x163928(0x199)]();this[_0x163928(0x145)]=_0x61dc7c,_0x61dc7c===_0x7e47ce?(this[_0x163928(0x14e)](),this[_0x163928(0x11e)]()):this['_status']!=='not-following'&&(this[_0x163928(0x121)](),this['_startFollowing']());}[_0x1e3913(0x173)](){const _0x3ea706=_0x1e3913,_0x2e5ecb={'eventID':_0x3a643d[_0x3ea706(0x150)]};this[_0x3ea706(0x162)]['send'](_0x2e5ecb,this[_0x3ea706(0x14d)]);}['_handleTerminate'](){const _0x2f825e=_0x1e3913;this['_presenter']=null,this[_0x2f825e(0x122)]!=='presenting'&&this[_0x2f825e(0x18a)]();}[_0x1e3913(0x11c)](_0x36a4bd){const _0x2cb40e=_0x1e3913;if(this[_0x2cb40e(0x122)]===_0x2cb40e(0x1b8)&&this[_0x2cb40e(0x145)]===_0x36a4bd['data'][_0x2cb40e(0x16d)]){const _0x5391d1=_0xabead0(_0x36a4bd[_0x2cb40e(0x190)])[_0x2cb40e(0x148)]['reverse']()['find'](_0x155d78=>_0x155d78['id']===_0xc3a114['id']);if(_0x5391d1){const _0x292f4f=_0x5391d1[_0x2cb40e(0x149)][_0x2cb40e(0x13e)],_0x225468=_0x5391d1[_0x2cb40e(0x149)]['sheet']['id'];setTimeout(()=>{const _0x1b2405=_0x2cb40e;this[_0x1b2405(0x129)][_0x1b2405(0x156)](_0x3b9598['id'],{'unitId':_0x292f4f,'subUnitId':_0x225468},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5ed4e0=_0x1e3913;this[_0x5ed4e0(0x1bc)]['next']('presenting');const _0x412011=new Map(),_0x38b5f6=this['_commandDisposable']=new _0x2ecc7c();_0x38b5f6['add'](_0x1d9736(()=>{const _0x1a659b=_0x5ed4e0;_0x412011[_0x1a659b(0x12a)](_0x585adf=>_0x585adf[_0x1a659b(0x1a2)]()),_0x412011['clear']();})),_0x38b5f6[_0x5ed4e0(0x160)](this[_0x5ed4e0(0x129)]['onCommandExecuted'](_0xaf14a=>{const _0x5d6cea=_0x5ed4e0;var _0x18c04e;if(_0xaf14a[_0x5d6cea(0x1b0)]!==_0x44b523[_0x5d6cea(0x1a5)]||!this['_liveShareService'][_0x5d6cea(0x1a8)](_0xaf14a['id']))return;const {id:_0x1c3dd2}=_0xaf14a;let _0x130ffe;_0x412011[_0x5d6cea(0x12d)](_0x1c3dd2)?_0x130ffe=_0x412011[_0x5d6cea(0x14a)](_0x1c3dd2):(_0x130ffe=new _0x3ac0a4(),_0x412011[_0x5d6cea(0x142)](_0x1c3dd2,_0x130ffe),_0x130ffe[_0x5d6cea(0x16e)](_0x48ac64((_0x18c04e=this[_0x5d6cea(0x15c)][_0x5d6cea(0x172)](Ce))!=null?_0x18c04e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5d6cea(0x11f)](_0x369617=>{const _0x2ad752=_0x5d6cea;this['_collabSession']['send']({'eventID':_0x3a643d['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2ad752(0x14d)],'operations':{[_0x369617['id']]:{'id':_0x369617['id'],'params':JSON[_0x2ad752(0x1b1)](_0x369617[_0x2ad752(0x149)])}}}},this[_0x2ad752(0x14d)]);})),_0x130ffe['next'](_0xaf14a);})),this[_0x5ed4e0(0x117)][_0x5ed4e0(0x16a)](this['_unitID'])[_0x5ed4e0(0x12a)](_0xa2e592=>this[_0x5ed4e0(0x162)][_0x5ed4e0(0x19e)]({'eventID':_0x3a643d[_0x5ed4e0(0x15f)],'data':{'unitID':this[_0x5ed4e0(0x14d)],'operations':{[_0xa2e592['id']]:{'id':_0xa2e592['id'],'params':JSON[_0x5ed4e0(0x1b1)](_0xa2e592['params'])}}}},this[_0x5ed4e0(0x14d)]));}[_0x1e3913(0x121)](){const _0x2e747d=_0x1e3913;var _0x77bd54;this['_status$'][_0x2e747d(0x139)](_0x2e747d(0x1a4)),(_0x77bd54=this[_0x2e747d(0x136)])==null||_0x77bd54[_0x2e747d(0x184)](),this['_commandDisposable']=null;}[_0x1e3913(0x12c)](){const _0x977d89=_0x1e3913;var _0x3d5acc;(_0x3d5acc=this[_0x977d89(0x136)])==null||_0x3d5acc['dispose'](),this[_0x977d89(0x1bc)][_0x977d89(0x139)]('following');}[_0x1e3913(0x18a)](){const _0x3695ae=_0x1e3913;var _0x50f38b;this['_status$'][_0x3695ae(0x139)](_0x3695ae(0x1a4)),(_0x50f38b=this[_0x3695ae(0x136)])==null||_0x50f38b[_0x3695ae(0x184)](),this[_0x3695ae(0x136)]=null;}[_0x1e3913(0x14e)](){const _0x513fe5=_0x1e3913;var _0xb6d9e7;this['_status$'][_0x513fe5(0x139)]('not-following'),(_0xb6d9e7=this[_0x513fe5(0x136)])==null||_0xb6d9e7[_0x513fe5(0x184)]();}['_handleOperation'](_0x10e0fb){const _0x375873=_0x1e3913;if([_0x375873(0x15d),'not-following','offline'][_0x375873(0x18b)](this['_status'])||!_0x10e0fb[_0x375873(0x190)][_0x375873(0x13b)]||_0x10e0fb[_0x375873(0x190)][_0x375873(0x13b)]===this[_0x375873(0x162)][_0x375873(0x199)]())return;this[_0x375873(0x122)]===_0x375873(0x1a4)&&this[_0x375873(0x12c)]();const _0x124fda=_0x10e0fb[_0x375873(0x190)][_0x375873(0x14c)];Object['values'](_0x124fda)[_0x375873(0x12a)](_0x6cc61e=>{const _0xbcb898=_0x375873;this[_0xbcb898(0x129)][_0xbcb898(0x156)](_0x6cc61e['id'],_0x6cc61e[_0xbcb898(0x149)]?JSON[_0xbcb898(0x181)](_0x6cc61e[_0xbcb898(0x149)]):null,{'fromCollab':!0x0});});}[_0x1e3913(0x165)](){const _0x298e5f=_0x1e3913;var _0x372fa2;this[_0x298e5f(0x1bc)]['next'](_0x298e5f(0x186)),(_0x372fa2=this[_0x298e5f(0x136)])==null||_0x372fa2[_0x298e5f(0x184)]();}[_0x1e3913(0x19c)](){const _0x1c8fb6=_0x1e3913;this[_0x1c8fb6(0x1bc)][_0x1c8fb6(0x139)]('idle'),this['_fetchOperations']();}};N=Y([_(0x2,_0x3b5d57),_(0x3,_0x11722(L)),_(0x4,_0x36eceb)],N);function Le(){const _0x21794a=_0x1e3913,_0x175664=_0x277c9c(S),_0x40b2e7=_0x277c9c(_0x2049b1),_0x4b383a=_0x468a56(()=>_0x40b2e7['getCurrentTypeOfUnit$'](_0x11c3ec['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x95624d,_0x4b00da]=_0x2dbbd2(null),[_0x19441c,_0x9757a1]=_0x2dbbd2(c['IDLE']),_0x550e37=_0x15158d(null);return _0x3b2fb9(()=>(_0x4b383a&&_0x175664[_0x21794a(0x132)](_0x4b383a[_0x21794a(0x191)]())[_0x21794a(0x188)](_0x5bd77f=>{const _0x2b0d07=_0x21794a;_0x4b00da(_0x5bd77f),_0x550e37[_0x2b0d07(0x161)]=_0x5bd77f[_0x2b0d07(0x16f)][_0x2b0d07(0x11f)](_0x34f182=>{_0x9757a1(_0x34f182);});}),()=>{const _0x239e8c=_0x21794a;var _0x359d52;(_0x359d52=_0x550e37['current'])==null||_0x359d52['unsubscribe'](),_0x550e37[_0x239e8c(0x161)]=null;}),[_0x4b383a,_0x175664]),_0x95624d?_0x467149(_0x4f4a70,{'align':_0x21794a(0x11a),'disabled':_0x19441c===c[_0x21794a(0x1b5)],'className':_0x21794a(0x189),'overlay':_0x467149(Re,{'status':_0x19441c,'coordinator':_0x95624d}),'children':_0x467149(_0x21794a(0x17c),{'className':_0x14156c(_0x21794a(0x1a3),{'univer-cursor-not-allowed':_0x19441c===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x19441c!==c[_0x21794a(0x1b5)]}),'type':'button','children':_0x467149(W,{'className':_0x21794a(0x158)})})}):null;}function _0x10e8(_0x533177,_0x2fa04e){_0x533177=_0x533177-0x117;const _0x19a83d=_0x19a8();let _0x10e806=_0x19a83d[_0x533177];return _0x10e806;}function Re(_0x23a1aa){const _0x3ccb1c=_0x1e3913,{status:_0x274986,coordinator:_0x376a7a}=_0x23a1aa;switch(_0x274986){case c[_0x3ccb1c(0x146)]:return _0x467149($e,{'coordinator':_0x376a7a});case c[_0x3ccb1c(0x144)]:return _0x467149(xe,{'coordinator':_0x376a7a});case c[_0x3ccb1c(0x147)]:return _0x467149(Pe,{'coordinator':_0x376a7a});case c[_0x3ccb1c(0x1b5)]:return _0x467149(Te,{});case c['PRESENTING']:return _0x467149(Ae,{'coordinator':_0x376a7a});default:return null;}}function $e(_0x3a7580){const _0x4aa812=_0x1e3913,{coordinator:_0x282d72}=_0x3a7580;return _0x25f640(_0x33fc73,{'children':[_0x467149('div',{'className':_0x4aa812(0x18d),'children':_0x4aa812(0x13d)}),_0x467149(_0x421518,{'onClick':()=>_0x282d72[_0x4aa812(0x152)](),'children':_0x4aa812(0x1b3)})]});}function xe(_0x28c413){const _0xf4f716=_0x1e3913,{coordinator:_0x403b89}=_0x28c413;return _0x25f640(_0x33fc73,{'children':[_0x467149('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x467149(_0x421518,{'onClick':()=>_0x403b89[_0xf4f716(0x123)](),'children':_0xf4f716(0x12b)})]});}function Pe(_0x4f68b7){const _0x4f35e4=_0x1e3913,{coordinator:_0x4653cf}=_0x4f68b7;return _0x25f640(_0x33fc73,{'children':[_0x467149(_0x4f35e4(0x141),{'className':_0x4f35e4(0x18d),'children':_0x4f35e4(0x177)}),_0x467149(_0x421518,{'variant':_0x4f35e4(0x124),'onClick':()=>_0x4653cf[_0x4f35e4(0x11d)](),'children':_0x4f35e4(0x137)})]});}function Ae(_0x461c11){const _0x5710b8=_0x1e3913,{coordinator:_0x275c77}=_0x461c11;return _0x25f640(_0x33fc73,{'children':[_0x467149(_0x5710b8(0x141),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5710b8(0x16b)}),_0x467149(_0x421518,{'variant':_0x5710b8(0x1a7),'onClick':()=>_0x275c77['stopPresenting'](),'children':_0x5710b8(0x126)})]});}function Te(){const _0x2431a5=_0x1e3913;return _0x467149(_0x33fc73,{'children':_0x2431a5(0x15b)});}var Fe=Object[_0x1e3913(0x153)],He=(_0x30455a,_0x32ae6c,_0x4ce5bd,_0x2d98c0)=>{const _0x3618c8=_0x1e3913;for(var _0x2a3cac=_0x2d98c0>0x1?void 0x0:_0x2d98c0?Fe(_0x32ae6c,_0x4ce5bd):_0x32ae6c,_0xe3f213=_0x30455a[_0x3618c8(0x14f)]-0x1,_0x2fa9c3;_0xe3f213>=0x0;_0xe3f213--)(_0x2fa9c3=_0x30455a[_0xe3f213])&&(_0x2a3cac=_0x2fa9c3(_0x2a3cac)||_0x2a3cac);return _0x2a3cac;},A=(_0x450b5e,_0x28fda4)=>(_0x32e326,_0x1d9ad3)=>_0x28fda4(_0x32e326,_0x1d9ad3,_0x450b5e);let m=class extends _0x3fdec1{constructor(_0x53fcfb,_0x5b1c6d){const _0x48d999=_0x1e3913;super(),this['_injector']=_0x53fcfb,this[_0x48d999(0x175)]=_0x5b1c6d,this['_mountLiveShare']();}[_0x1e3913(0x159)](){const _0x110040=_0x1e3913;this['disposeWithMe'](this[_0x110040(0x175)][_0x110040(0x1b4)](_0x135a48[_0x110040(0x195)],()=>_0x17e859(Le,this[_0x110040(0x16c)])));}};m=He([A(0x0,_0x11722(_0x1a2c9d)),A(0x1,_0x599b7f)],m);const ye=_0x1e3913(0x187),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x518525,_0xbd22e1,_0x2a6e35,_0x4cc948)=>{const _0x13d24e=_0x1e3913;for(var _0x453857=_0x4cc948>0x1?void 0x0:_0x4cc948?Ue(_0xbd22e1,_0x2a6e35):_0xbd22e1,_0x4ccdc9=_0x518525[_0x13d24e(0x14f)]-0x1,_0xa1d3d7;_0x4ccdc9>=0x0;_0x4ccdc9--)(_0xa1d3d7=_0x518525[_0x4ccdc9])&&(_0x453857=_0xa1d3d7(_0x453857)||_0x453857);return _0x453857;},je=(_0x5c708e,_0x4763c6)=>(_0x1ce291,_0x5e872f)=>_0x4763c6(_0x1ce291,_0x5e872f,_0x5c708e);let I=class extends _0x3fdec1{constructor(_0x37848d){const _0x4f89ec=_0x1e3913;super(),this[_0x4f89ec(0x117)]=_0x37848d,this[_0x4f89ec(0x18c)]();}['_init'](){const _0x3734f1=_0x1e3913;[_0x262fa7['id'],_0x4ae607['id'],_0x3b9598['id']][_0x3734f1(0x12a)](_0x4384b5=>{const _0x4afa48=_0x3734f1;this[_0x4afa48(0x168)](this[_0x4afa48(0x117)][_0x4afa48(0x17e)](_0x4384b5));});}};I=Ve([je(0x0,_0x11722(L))],I);var Me=Object[_0x1e3913(0x135)],ke=Object[_0x1e3913(0x153)],Ge=(_0x24dc63,_0x503c2c,_0x3076a0)=>_0x503c2c in _0x24dc63?Me(_0x24dc63,_0x503c2c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3076a0}):_0x24dc63[_0x503c2c]=_0x3076a0,We=(_0x5c178f,_0x124874,_0x337ab7,_0x5447e3)=>{for(var _0x509c64=_0x5447e3>0x1?void 0x0:_0x5447e3?ke(_0x124874,_0x337ab7):_0x124874,_0x3ff877=_0x5c178f['length']-0x1,_0x4d78d0;_0x3ff877>=0x0;_0x3ff877--)(_0x4d78d0=_0x5c178f[_0x3ff877])&&(_0x509c64=_0x4d78d0(_0x509c64)||_0x509c64);return _0x509c64;},F=(_0x1beb62,_0x4cba22)=>(_0x468863,_0x45954c)=>_0x4cba22(_0x468863,_0x45954c,_0x1beb62),B=(_0x157861,_0x2a88e3,_0x1f80bd)=>Ge(_0x157861,typeof _0x2a88e3!='symbol'?_0x2a88e3+'':_0x2a88e3,_0x1f80bd);const Ye=_0x1e3913(0x125);let b=class extends _0x53087b{constructor(_0x2f6c03=T,_0x2bc972,_0x225cea){const _0x3a18c3=_0x1e3913;super(),this['_config']=_0x2f6c03,this[_0x3a18c3(0x16c)]=_0x2bc972,this[_0x3a18c3(0x15c)]=_0x225cea;const {..._0x2a8657}=_0xdfd2({},T,this[_0x3a18c3(0x12f)]);this[_0x3a18c3(0x15c)][_0x3a18c3(0x1a0)](ye,_0x2a8657);}['onStarting'](){const _0x1d2cef=_0x1e3913;_0x4a9481(this[_0x1d2cef(0x16c)],_0x2de0a7([[L],[S],[I],[m]],this[_0x1d2cef(0x12f)][_0x1d2cef(0x15e)])),_0x291806(this[_0x1d2cef(0x16c)],[[I]]);}[_0x1e3913(0x192)](){_0x291806(this['_injector'],[[m]]);}};B(b,_0x1e3913(0x1b0),_0x11c3ec['UNIVER_UNKNOWN']),B(b,'pluginName',Ye),b=We([_0x4fabc5(_0x55d200),F(0x1,_0x11722(_0x1a2c9d)),F(0x2,_0x3b5d57)],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 _0x677c62=_0x3808;(function(_0x57d1fc,_0xc70091){const _0x1475ea=_0x3808,_0x568fa7=_0x57d1fc();while(!![]){try{const _0x59a119=-parseInt(_0x1475ea(0x12b))/0x1+parseInt(_0x1475ea(0x127))/0x2*(parseInt(_0x1475ea(0x126))/0x3)+parseInt(_0x1475ea(0x162))/0x4*(parseInt(_0x1475ea(0x15a))/0x5)+-parseInt(_0x1475ea(0x106))/0x6+parseInt(_0x1475ea(0xed))/0x7+-parseInt(_0x1475ea(0xeb))/0x8*(-parseInt(_0x1475ea(0x134))/0x9)+-parseInt(_0x1475ea(0x188))/0xa*(-parseInt(_0x1475ea(0x13b))/0xb);if(_0x59a119===_0xc70091)break;else _0x568fa7['push'](_0x568fa7['shift']());}catch(_0x4031af){_0x568fa7['push'](_0x568fa7['shift']());}}}(_0xbfe4,0x52c7f));var J=Object[_0x677c62(0x169)],K=(_0x55687a,_0x5804c5,_0x161a4c)=>_0x5804c5 in _0x55687a?J(_0x55687a,_0x5804c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x161a4c}):_0x55687a[_0x5804c5]=_0x161a4c,u=(_0x5a4fcb,_0x187dea,_0x195a09)=>K(_0x5a4fcb,typeof _0x187dea!=_0x677c62(0x10e)?_0x187dea+'':_0x187dea,_0x195a09);import{Disposable as _0x2da4ee,toDisposable as _0x35bb2c,IUniverInstanceService as _0x462a13,Inject as _0x417a9f,Injector as _0x3b9c73,IConfigService as _0x290042,ICommandService as _0x394fbd,RxDisposable as _0x45ebde,UniverInstanceType as _0x59bb3d,DisposableCollection as _0x3103b8,CommandType as _0xd9ac1c,DependentOn as _0x165c63,Plugin as _0x2600c1,merge as _0x275afa,registerDependencies as _0x557937,mergeOverrideWithDependencies as _0x410c61,touchDependencies as _0x5aa4a8}from'@univerjs/core';import{useDependency as _0x8ff637,useObservable as _0x31a57b,IUIPartsService as _0x383d75,BuiltInUIPart as _0x4d48d8,connectInjector as _0x2e3eb5}from'@univerjs/ui';import{jsx as _0x1ba63a,jsxs as _0x499084,Fragment as _0x5e2a02}from'react/jsx-runtime';import{Dropdown as _0x390534,clsx as _0x56ce27,Button as _0x180649}from'@univerjs/design';import{useRef as _0x5debc3,createElement as _0x555d7a,forwardRef as _0x396100,useState as _0x15fd52,useEffect as _0x3ef286}from'react';function _0xbfe4(){const _0x414fc4=['children','idSuffix','_handleOperation','UNIVER_UNKNOWN','stopPresenting','default','ONLINE','onStarting','mutations','UNIVER_SHEET','onCommandExecuted','memberID','Stop\x20following','getUnitId','getTypeOfUnitAdded$','then','string','presenting','9645HpuqMt','current','univer-size-4','You\x27re\x20following\x20the\x20presenter','NEW_CHANGESETS','map','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','length','148mUUYlV','unsubscribe','LIVESHARE_FETCH_OPERATIONS','url(#$1','getValue','requireSession','_startLiveShareCoordinator','defineProperty','_commandService','send','getLiveShareCoordinatorSync','getCurrentTypeOfUnit$','init','set','Start\x20following','onRendered','override','shouldShareOperation','values','OFFLINE','delete','get','SAME_OPERATION_SHARE_INTERVAL','_unitID','mask','1em','status$','_presenter','reverse','_univerInstanceService','getLiveShareCoordinator','xlink:href','LiveShareIcon','svg','complete','HEADER_MENU','UniverIcon','_uiPartsService','170QkbSdM','next','_collabSessionService','You\x27are\x20offline.','dispose$','tag','includes','has','_commandDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','_beIdle','_configService','488sYpCWp','_stopPresenting','214382ByHKra','_reporters','stringify','_init','_startFollowing','LIVESHARE_NEW_HOST','_handleNewHost','dispose','pipe','_config','event$','evenodd','live-share-icon','_liveShareService','substring','data','NOT_FOLLOWING','following','startFollowing','text','path','LIVESHARE_TERMINATE','displayName','sheet','end','1227822ESyKSW','_mountLiveShare','_sharedOperations','univerjs-icon\x20univerjs-icon-','_handleTerminate','entries','parse','none','symbol','use','asObservable','replace','_startPresenting','setConfig','offline','_entities','toString','_injector','getTypeOfUnitDisposed$','disposeWithMe','getMemberID','currentColor','add','div','unitId','_status$','live-share.config','colorChannel1','FOLLOWING','from','operations','tryStartPresenting','3APhzQx','325594qEkxEO','PRESENTING','registerSharedOperation','type','60181SffTdi','LIVESHARE_REQUEST_HOST','_status','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_OPERATION','Start','idle','subscribe','not-following','8838OBorUQ','fill','pluginName','button','presenter','attrs','UNIVER_LIVE_SHARE_PLUGIN','180653bfrMQD','getStatus','_handleOffline','find','executeCommand','_stopFollowing','params','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','registerInitialStateReporter','_handleOnline','_handleNewChangeSets'];_0xbfe4=function(){return _0x414fc4;};return _0xbfe4();}import{CollaborationEvent as _0xce98bf,parseProtocolChangeset as _0x521a7f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2f8236,SessionStatus as _0xdd466f,UniverCollaborationClientPlugin as _0x2a81a9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3ecc17,SetWorksheetActiveOperation as _0x525cbd}from'@univerjs/sheets';import{BehaviorSubject as _0x5c595d,Subject as _0x39103d}from'rxjs';import{takeUntil as _0x25db84,throttleTime as _0x1d50d9}from'rxjs/operators';import{SetZoomRatioOperation as _0x490dee,SetScrollOperation as _0x446e48}from'@univerjs/sheets-ui';function k({ref:_0x1e31b7,..._0x48ed95}){const _0x6c75a2=_0x677c62,{icon:_0x189453,id:_0x226654,className:_0x35cc22,extend:_0x5bb3a1,..._0x2a1472}=_0x48ed95,_0x332fb2=(_0x6c75a2(0x109)+_0x226654+'\x20'+(_0x35cc22||''))['trim'](),_0x436f28=_0x5debc3('_'+Oe());return G(_0x189453,''+_0x226654,{'defIds':_0x189453['defIds'],'idSuffix':_0x436f28[_0x6c75a2(0x15b)]},{'ref':_0x1e31b7,'className':_0x332fb2,..._0x2a1472},_0x5bb3a1);}function G(_0x3bee38,_0xd2e421,_0x55bc48,_0x59b240,_0x2950cc){const _0x16ee50=_0x677c62;return _0x555d7a(_0x3bee38[_0x16ee50(0x18d)],{'key':_0xd2e421,...be(_0x3bee38,_0x55bc48,_0x2950cc),..._0x59b240},(Ee(_0x3bee38,_0x55bc48)['children']||[])[_0x16ee50(0x15f)]((_0x4d9faf,_0x28d194)=>G(_0x4d9faf,_0xd2e421+'-'+_0x3bee38['tag']+'-'+_0x28d194,_0x55bc48,void 0x0,_0x2950cc)));}function be(_0x4e786c,_0x2123f7,_0xabe97f){const _0x4047ac=_0x677c62,_0x122e94={..._0x4e786c[_0x4047ac(0x139)]};_0xabe97f!=null&&_0xabe97f[_0x4047ac(0x121)]&&_0x122e94[_0x4047ac(0x135)]==='colorChannel1'&&(_0x122e94[_0x4047ac(0x135)]=_0xabe97f['colorChannel1']),_0x4e786c[_0x4047ac(0x18d)]===_0x4047ac(0x17a)&&_0x122e94['id']&&(_0x122e94['id']=_0x122e94['id']+_0x2123f7[_0x4047ac(0x149)]),Object[_0x4047ac(0x10b)](_0x122e94)[_0x4047ac(0x192)](([_0x282326,_0x3c672c])=>{const _0x4a10ee=_0x4047ac;_0x282326===_0x4a10ee(0x17a)&&typeof _0x3c672c==_0x4a10ee(0x158)&&(_0x122e94[_0x282326]=_0x3c672c[_0x4a10ee(0x111)](/url\(#(.*)\)/,_0x4a10ee(0x165)+_0x2123f7['idSuffix']+')'));});const {defIds:_0x201e0b}=_0x2123f7;return!_0x201e0b||_0x201e0b[_0x4047ac(0x161)]===0x0||(_0x4e786c[_0x4047ac(0x18d)]===_0x4047ac(0x10f)&&_0x122e94[_0x4047ac(0x181)]&&(_0x122e94[_0x4047ac(0x181)]=_0x122e94[_0x4047ac(0x181)]+_0x2123f7['idSuffix']),Object['entries'](_0x122e94)[_0x4047ac(0x192)](([_0x25e0ee,_0x3a05ce])=>{const _0x5a9d80=_0x4047ac;typeof _0x3a05ce==_0x5a9d80(0x158)&&(_0x122e94[_0x25e0ee]=_0x3a05ce[_0x5a9d80(0x111)](/url\(#(.*)\)/,_0x5a9d80(0x165)+_0x2123f7[_0x5a9d80(0x149)]+')'));})),_0x122e94;}function Ee(_0x11da27,_0x3796e6){const _0xb22449=_0x677c62;var _0x3a62c1;const {defIds:_0xe78da0}=_0x3796e6;return!_0xe78da0||_0xe78da0['length']===0x0?_0x11da27:_0x11da27[_0xb22449(0x18d)]==='defs'&&((_0x3a62c1=_0x11da27['children'])!=null&&_0x3a62c1[_0xb22449(0x161)])?{..._0x11da27,'children':_0x11da27[_0xb22449(0x148)][_0xb22449(0x15f)](_0x58e46a=>typeof _0x58e46a[_0xb22449(0x139)]['id']==_0xb22449(0x158)&&_0xe78da0&&_0xe78da0[_0xb22449(0x18e)](_0x58e46a[_0xb22449(0x139)]['id'])?{..._0x58e46a,'attrs':{..._0x58e46a['attrs'],'id':_0x58e46a[_0xb22449(0x139)]['id']+_0x3796e6[_0xb22449(0x149)]}}:_0x58e46a)}:_0x11da27;}function Oe(){const _0x47cc51=_0x677c62;return Math['random']()[_0x47cc51(0x116)](0x24)[_0x47cc51(0xfb)](0x2,0x8);}k['displayName']=_0x677c62(0x186);const we={'tag':_0x677c62(0x183),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x677c62(0x10d),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x677c62(0x17b)},'children':[{'tag':_0x677c62(0x101),'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':_0x677c62(0x101),'attrs':{'fill':_0x677c62(0x11b),'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':_0x677c62(0xf8),'clipRule':_0x677c62(0xf8)}}]},W=_0x396100(function(_0x41b3c0,_0x291177){const _0x345734=_0x677c62;return _0x555d7a(k,Object['assign']({},_0x41b3c0,{'id':_0x345734(0xf9),'ref':_0x291177,'icon':we}));});W[_0x677c62(0x103)]=_0x677c62(0x182);class L extends _0x2da4ee{constructor(){const _0x437c96=_0x677c62;super(...arguments),u(this,_0x437c96(0x108),new Set()),u(this,_0x437c96(0xee),new Set());}[_0x677c62(0x129)](_0x397af7){const _0x458e1d=_0x677c62;return this[_0x458e1d(0x108)]['add'](_0x397af7),_0x35bb2c(()=>this[_0x458e1d(0x108)]['delete'](_0x397af7));}[_0x677c62(0x145)](_0x5ada77){const _0x55d330=_0x677c62;return this['_reporters'][_0x55d330(0x11c)](_0x5ada77),_0x35bb2c(()=>this[_0x55d330(0xee)][_0x55d330(0x176)](_0x5ada77));}[_0x677c62(0x173)](_0x542cbe){const _0x5c54a1=_0x677c62;return this[_0x5c54a1(0x108)]['has'](_0x542cbe);}['getInitialStates'](_0x29b050){const _0x4fde82=_0x677c62;return Array[_0x4fde82(0x123)](this['_reporters'])[_0x4fde82(0x15f)](_0x3722eb=>_0x3722eb(_0x29b050));}}var Ne=Object[_0x677c62(0x144)],Y=(_0x4f6fec,_0x4525bf,_0x5d2b69,_0x2dd585)=>{for(var _0x340b6b=_0x2dd585>0x1?void 0x0:_0x2dd585?Ne(_0x4525bf,_0x5d2b69):_0x4525bf,_0x1d45de=_0x4f6fec['length']-0x1,_0x53350c;_0x1d45de>=0x0;_0x1d45de--)(_0x53350c=_0x4f6fec[_0x1d45de])&&(_0x340b6b=_0x53350c(_0x340b6b)||_0x340b6b);return _0x340b6b;},_=(_0x34cc23,_0x2b527c)=>(_0x3e9db0,_0x20799b)=>_0x2b527c(_0x3e9db0,_0x20799b,_0x34cc23);let S=class extends _0x45ebde{constructor(_0x39ea48,_0x5194b0,_0xbcf7bb){const _0x3bafd4=_0x677c62;super(),u(this,_0x3bafd4(0x115),new Map()),(this[_0x3bafd4(0x17f)]=_0x39ea48,this[_0x3bafd4(0x117)]=_0x5194b0,this['_collabSessionService']=_0xbcf7bb,this[_0x3bafd4(0xf0)]());}async[_0x677c62(0x180)](_0x346913){const _0x1a147f=_0x677c62;return this[_0x1a147f(0x115)][_0x1a147f(0x18f)](_0x346913)||await this['_startLiveShareCoordinator'](_0x346913),this[_0x1a147f(0x115)][_0x1a147f(0x177)](_0x346913);}[_0x677c62(0x16c)](_0x4d5ed1){const _0x147d15=_0x677c62;var _0x60949c;return(_0x60949c=this[_0x147d15(0x115)][_0x147d15(0x177)](_0x4d5ed1))!=null?_0x60949c:null;}[_0x677c62(0xf0)](){const _0x3f67ff=_0x677c62;this[_0x3f67ff(0x17f)][_0x3f67ff(0x156)](_0x59bb3d[_0x3f67ff(0x151)])['pipe'](_0x25db84(this[_0x3f67ff(0x18c)]))[_0x3f67ff(0x132)](async _0x39fcd2=>{const _0x2ea1b8=_0x3f67ff,_0x315eef=_0x39fcd2[_0x2ea1b8(0x155)]();this[_0x2ea1b8(0x115)]['has'](_0x315eef)||this[_0x2ea1b8(0x168)](_0x315eef);}),this[_0x3f67ff(0x17f)][_0x3f67ff(0x118)](_0x59bb3d[_0x3f67ff(0x151)])['pipe'](_0x25db84(this[_0x3f67ff(0x18c)]))['subscribe'](_0x47611a=>{const _0x127c93=_0x3f67ff,_0x2d547a=_0x47611a[_0x127c93(0x155)](),_0x4a8625=this['_entities'][_0x127c93(0x177)](_0x2d547a);_0x4a8625==null||_0x4a8625[_0x127c93(0xf4)]();});}async[_0x677c62(0x168)](_0x3c88e8){const _0x419b24=_0x677c62,_0x5aa624=await this[_0x419b24(0x18a)][_0x419b24(0x167)](_0x3c88e8),_0x3736b4=this[_0x419b24(0x117)]['createInstance'](N,_0x3c88e8,_0x5aa624);return _0x3736b4[_0x419b24(0x16e)](),this['_entities'][_0x419b24(0x16f)](_0x3c88e8,_0x3736b4),_0x3736b4;}};S=Y([_(0x0,_0x462a13),_(0x1,_0x417a9f(_0x3b9c73)),_(0x2,_0x417a9f(_0x2f8236))],S);var c=(_0xc2aec2=>(_0xc2aec2[_0x677c62(0x175)]=_0x677c62(0x114),_0xc2aec2['IDLE']=_0x677c62(0x131),_0xc2aec2[_0x677c62(0x122)]=_0x677c62(0xfe),_0xc2aec2[_0x677c62(0xfd)]='not-following',_0xc2aec2[_0x677c62(0x128)]='presenting',_0xc2aec2))(c||{});function _0x3808(_0x54abed,_0x361f76){_0x54abed=_0x54abed-0xe9;const _0xbfe495=_0xbfe4();let _0x3808f4=_0xbfe495[_0x54abed];return _0x3808f4;}const Ce=_0x677c62(0x178),De=0xc8;let N=class extends _0x45ebde{constructor(_0x4287cd,_0x14022b,_0x50398e,_0x129c92,_0x1a3692){const _0x20be58=_0x677c62;super(),u(this,_0x20be58(0x11f),new _0x5c595d('idle')),u(this,_0x20be58(0x17c),this[_0x20be58(0x11f)][_0x20be58(0x110)]()),u(this,_0x20be58(0xf0),!0x1),u(this,_0x20be58(0x190),null),u(this,_0x20be58(0x17d),null),(this[_0x20be58(0x179)]=_0x4287cd,this[_0x20be58(0x142)]=_0x14022b,this['_configService']=_0x50398e,this[_0x20be58(0xfa)]=_0x129c92,this[_0x20be58(0x16a)]=_0x1a3692);}get[_0x677c62(0x12d)](){const _0x121cab=_0x677c62;return this[_0x121cab(0x11f)][_0x121cab(0x166)]();}['dispose'](){const _0x2e54ad=_0x677c62;var _0x2f6852;(_0x2f6852=this[_0x2e54ad(0x190)])==null||_0x2f6852[_0x2e54ad(0xf4)](),this[_0x2e54ad(0x11f)][_0x2e54ad(0x189)]('idle'),this['_status$'][_0x2e54ad(0x184)]();}[_0x677c62(0x13c)](){const _0x22797e=_0x677c62;return this[_0x22797e(0x12d)];}[_0x677c62(0x16e)](){const _0x58480e=_0x677c62;this[_0x58480e(0xf0)]||(this[_0x58480e(0xf0)]=!0x0,this[_0x58480e(0x142)]['sessionStatus$'][_0x58480e(0xf5)](_0x25db84(this[_0x58480e(0x18c)]))[_0x58480e(0x132)](_0x409c26=>{const _0x41d48c=_0x58480e;switch(_0x409c26){case _0xdd466f[_0x41d48c(0x175)]:this[_0x41d48c(0x13d)]();break;case _0xdd466f[_0x41d48c(0x14e)]:this[_0x41d48c(0x146)]();break;}}),this['_collabSession'][_0x58480e(0xf7)][_0x58480e(0xf5)](_0x25db84(this[_0x58480e(0x18c)]))[_0x58480e(0x132)](_0x1552f2=>{const _0x1fffc6=_0x58480e,{eventID:_0x488e51}=_0x1552f2;switch(_0x488e51){case _0xce98bf[_0x1fffc6(0xf2)]:this[_0x1fffc6(0xf3)](_0x1552f2);break;case _0xce98bf[_0x1fffc6(0x12f)]:this[_0x1fffc6(0x14a)](_0x1552f2);break;case _0xce98bf[_0x1fffc6(0x102)]:this[_0x1fffc6(0x10a)]();break;case _0xce98bf[_0x1fffc6(0x15e)]:this[_0x1fffc6(0x147)](_0x1552f2);break;}}));}[_0x677c62(0x125)](){const _0x58f653=_0x677c62;this[_0x58f653(0x142)]['send']({'eventID':_0xce98bf[_0x58f653(0x12c)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x58f653(0x11a)]()}},this[_0x58f653(0x179)]);}[_0x677c62(0x14c)](){const _0x4c85ab=_0x677c62;this['_status']===_0x4c85ab(0x159)&&(this[_0x4c85ab(0x11f)][_0x4c85ab(0x189)](_0x4c85ab(0x131)),this['_collabSession']['send']({'eventID':_0xce98bf[_0x4c85ab(0x102)],'data':{'unitID':this[_0x4c85ab(0x179)]}},this['_unitID']));}[_0x677c62(0xff)](){const _0x4cb936=_0x677c62;this[_0x4cb936(0x12d)]===_0x4cb936(0x133)&&(this[_0x4cb936(0x11f)][_0x4cb936(0x189)](_0x4cb936(0xfe)),this['_startFollowing']());}['stopFollowing'](){const _0x3dde90=_0x677c62;this['_status']==='following'&&this[_0x3dde90(0x140)]();}[_0x677c62(0xf3)](_0xf5c76a){const _0xaf302d=_0x677c62,{presenter:_0x231298}=_0xf5c76a[_0xaf302d(0xfc)],_0x33b77a=this['_collabSession'][_0xaf302d(0x11a)]();this[_0xaf302d(0x17d)]=_0x231298,_0x231298===_0x33b77a?(this[_0xaf302d(0x140)](),this[_0xaf302d(0x112)]()):this[_0xaf302d(0x12d)]!==_0xaf302d(0x133)&&(this['_stopPresenting'](),this[_0xaf302d(0xf1)]());}['_fetchOperations'](){const _0x174e38=_0x677c62,_0x5a0198={'eventID':_0xce98bf[_0x174e38(0x164)]};this[_0x174e38(0x142)][_0x174e38(0x16b)](_0x5a0198,this['_unitID']);}[_0x677c62(0x10a)](){const _0x2be791=_0x677c62;this['_presenter']=null,this[_0x2be791(0x12d)]!==_0x2be791(0x159)&&this['_beIdle']();}[_0x677c62(0x147)](_0x2321c2){const _0x105b2b=_0x677c62;if(this[_0x105b2b(0x12d)]===_0x105b2b(0xfe)&&this[_0x105b2b(0x17d)]===_0x2321c2['data'][_0x105b2b(0x153)]){const _0x157263=_0x521a7f(_0x2321c2[_0x105b2b(0xfc)])[_0x105b2b(0x150)][_0x105b2b(0x17e)]()[_0x105b2b(0x13e)](_0x20490f=>_0x20490f['id']===_0x3ecc17['id']);if(_0x157263){const _0x26c201=_0x157263['params'][_0x105b2b(0x11e)],_0x5eac64=_0x157263[_0x105b2b(0x141)][_0x105b2b(0x104)]['id'];setTimeout(()=>{const _0xa1f714=_0x105b2b;this[_0xa1f714(0x16a)]['executeCommand'](_0x525cbd['id'],{'unitId':_0x26c201,'subUnitId':_0x5eac64},{'fromCollab':!0x0});});}}}[_0x677c62(0x112)](){const _0x386fba=_0x677c62;this[_0x386fba(0x11f)]['next']('presenting');const _0x2486e9=new Map(),_0x4a5187=this['_commandDisposable']=new _0x3103b8();_0x4a5187[_0x386fba(0x11c)](_0x35bb2c(()=>{const _0x3a8350=_0x386fba;_0x2486e9[_0x3a8350(0x192)](_0x44b6ff=>_0x44b6ff[_0x3a8350(0x184)]()),_0x2486e9['clear']();})),_0x4a5187[_0x386fba(0x11c)](this[_0x386fba(0x16a)][_0x386fba(0x152)](_0x514924=>{const _0x478059=_0x386fba;var _0x34fecc;if(_0x514924[_0x478059(0x12a)]!==_0xd9ac1c['OPERATION']||!this[_0x478059(0xfa)][_0x478059(0x173)](_0x514924['id']))return;const {id:_0x461e20}=_0x514924;let _0x239974;_0x2486e9[_0x478059(0x18f)](_0x461e20)?_0x239974=_0x2486e9['get'](_0x461e20):(_0x239974=new _0x39103d(),_0x2486e9['set'](_0x461e20,_0x239974),_0x239974[_0x478059(0xf5)](_0x1d50d9((_0x34fecc=this[_0x478059(0xea)]['getConfig'](Ce))!=null?_0x34fecc:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x478059(0x132)](_0x5b2b75=>{const _0x15bbaf=_0x478059;this[_0x15bbaf(0x142)][_0x15bbaf(0x16b)]({'eventID':_0xce98bf['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x15bbaf(0x179)],'operations':{[_0x5b2b75['id']]:{'id':_0x5b2b75['id'],'params':JSON[_0x15bbaf(0xef)](_0x5b2b75['params'])}}}},this[_0x15bbaf(0x179)]);})),_0x239974[_0x478059(0x189)](_0x514924);})),this[_0x386fba(0xfa)]['getInitialStates'](this[_0x386fba(0x179)])[_0x386fba(0x192)](_0x579bf1=>this['_collabSession'][_0x386fba(0x16b)]({'eventID':_0xce98bf[_0x386fba(0x12f)],'data':{'unitID':this[_0x386fba(0x179)],'operations':{[_0x579bf1['id']]:{'id':_0x579bf1['id'],'params':JSON['stringify'](_0x579bf1['params'])}}}},this[_0x386fba(0x179)]));}[_0x677c62(0xec)](){const _0x784670=_0x677c62;var _0x102a01;this[_0x784670(0x11f)][_0x784670(0x189)](_0x784670(0x131)),(_0x102a01=this[_0x784670(0x190)])==null||_0x102a01[_0x784670(0xf4)](),this[_0x784670(0x190)]=null;}['_startFollowing'](){const _0x5e1a59=_0x677c62;var _0x18fbb1;(_0x18fbb1=this[_0x5e1a59(0x190)])==null||_0x18fbb1[_0x5e1a59(0xf4)](),this['_status$'][_0x5e1a59(0x189)]('following');}[_0x677c62(0xe9)](){const _0x3c9a60=_0x677c62;var _0x55da4c;this[_0x3c9a60(0x11f)][_0x3c9a60(0x189)](_0x3c9a60(0x131)),(_0x55da4c=this['_commandDisposable'])==null||_0x55da4c['dispose'](),this[_0x3c9a60(0x190)]=null;}[_0x677c62(0x140)](){const _0x3b2598=_0x677c62;var _0x47f79a;this['_status$'][_0x3b2598(0x189)](_0x3b2598(0x133)),(_0x47f79a=this[_0x3b2598(0x190)])==null||_0x47f79a[_0x3b2598(0xf4)]();}[_0x677c62(0x14a)](_0x53ae76){const _0x44e00f=_0x677c62;if([_0x44e00f(0x159),'not-following','offline']['includes'](this['_status'])||!_0x53ae76['data']['presenter']||_0x53ae76['data'][_0x44e00f(0x138)]===this[_0x44e00f(0x142)][_0x44e00f(0x11a)]())return;this['_status']===_0x44e00f(0x131)&&this[_0x44e00f(0xf1)]();const _0x273b61=_0x53ae76['data'][_0x44e00f(0x124)];Object[_0x44e00f(0x174)](_0x273b61)[_0x44e00f(0x192)](_0x210396=>{const _0x1f3a63=_0x44e00f;this[_0x1f3a63(0x16a)][_0x1f3a63(0x13f)](_0x210396['id'],_0x210396['params']?JSON[_0x1f3a63(0x10c)](_0x210396[_0x1f3a63(0x141)]):null,{'fromCollab':!0x0});});}[_0x677c62(0x13d)](){const _0x12dcad=_0x677c62;var _0x52e959;this['_status$'][_0x12dcad(0x189)]('offline'),(_0x52e959=this[_0x12dcad(0x190)])==null||_0x52e959[_0x12dcad(0xf4)]();}[_0x677c62(0x146)](){const _0x57b420=_0x677c62;this[_0x57b420(0x11f)][_0x57b420(0x189)](_0x57b420(0x131)),this['_fetchOperations']();}};N=Y([_(0x2,_0x290042),_(0x3,_0x417a9f(L)),_(0x4,_0x394fbd)],N);function Le(){const _0x1bab48=_0x677c62,_0x27fe9f=_0x8ff637(S),_0x5902fd=_0x8ff637(_0x462a13),_0x1e2452=_0x31a57b(()=>_0x5902fd[_0x1bab48(0x16d)](_0x59bb3d[_0x1bab48(0x151)]),void 0x0,!0x1,[]),[_0x5add20,_0x18d091]=_0x15fd52(null),[_0x1aecf7,_0x1be6fa]=_0x15fd52(c['IDLE']),_0x169071=_0x5debc3(null);return _0x3ef286(()=>(_0x1e2452&&_0x27fe9f[_0x1bab48(0x180)](_0x1e2452['getUnitId']())[_0x1bab48(0x157)](_0x4fdae2=>{const _0x223994=_0x1bab48;_0x18d091(_0x4fdae2),_0x169071['current']=_0x4fdae2[_0x223994(0x17c)]['subscribe'](_0x5b5613=>{_0x1be6fa(_0x5b5613);});}),()=>{const _0x23be3e=_0x1bab48;var _0x56f23f;(_0x56f23f=_0x169071[_0x23be3e(0x15b)])==null||_0x56f23f[_0x23be3e(0x163)](),_0x169071['current']=null;}),[_0x1e2452,_0x27fe9f]),_0x5add20?_0x1ba63a(_0x390534,{'align':_0x1bab48(0x105),'disabled':_0x1aecf7===c[_0x1bab48(0x175)],'className':_0x1bab48(0x160),'overlay':_0x1ba63a(Re,{'status':_0x1aecf7,'coordinator':_0x5add20}),'children':_0x1ba63a(_0x1bab48(0x137),{'className':_0x56ce27(_0x1bab48(0x12e),{'univer-cursor-not-allowed':_0x1aecf7===c[_0x1bab48(0x175)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1aecf7!==c[_0x1bab48(0x175)]}),'type':_0x1bab48(0x137),'children':_0x1ba63a(W,{'className':_0x1bab48(0x15c)})})}):null;}function Re(_0x4c5826){const _0x278480=_0x677c62,{status:_0x231f23,coordinator:_0x35b071}=_0x4c5826;switch(_0x231f23){case c['IDLE']:return _0x1ba63a($e,{'coordinator':_0x35b071});case c[_0x278480(0x122)]:return _0x1ba63a(xe,{'coordinator':_0x35b071});case c[_0x278480(0xfd)]:return _0x1ba63a(Pe,{'coordinator':_0x35b071});case c['OFFLINE']:return _0x1ba63a(Te,{});case c['PRESENTING']:return _0x1ba63a(Ae,{'coordinator':_0x35b071});default:return null;}}function $e(_0x5f3fb7){const _0x1d8140=_0x677c62,{coordinator:_0x3c5e8a}=_0x5f3fb7;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x1d8140(0x11d),{'className':_0x1d8140(0x191),'children':'Present\x20this\x20document'}),_0x1ba63a(_0x180649,{'onClick':()=>_0x3c5e8a[_0x1d8140(0x125)](),'children':_0x1d8140(0x130)})]});}function xe(_0x47f3d6){const _0x2c17f7=_0x677c62,{coordinator:_0x5c621d}=_0x47f3d6;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x2c17f7(0x11d),{'className':_0x2c17f7(0x191),'children':_0x2c17f7(0x15d)}),_0x1ba63a(_0x180649,{'onClick':()=>_0x5c621d['stopFollowing'](),'children':_0x2c17f7(0x154)})]});}function Pe(_0x801605){const _0x5b93c6=_0x677c62,{coordinator:_0x56afb6}=_0x801605;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x5b93c6(0x11d),{'className':_0x5b93c6(0x191),'children':_0x5b93c6(0x143)}),_0x1ba63a(_0x180649,{'variant':_0x5b93c6(0x100),'onClick':()=>_0x56afb6['startFollowing'](),'children':_0x5b93c6(0x170)})]});}function Ae(_0x361e8c){const _0x37c70a=_0x677c62,{coordinator:_0x58f302}=_0x361e8c;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x37c70a(0x11d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x1ba63a(_0x180649,{'variant':_0x37c70a(0x14d),'onClick':()=>_0x58f302['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3cf1ce=_0x677c62;return _0x1ba63a(_0x5e2a02,{'children':_0x3cf1ce(0x18b)});}var Fe=Object[_0x677c62(0x144)],He=(_0x514d62,_0x4c100f,_0x56753e,_0x53ecca)=>{const _0xc550b3=_0x677c62;for(var _0x36d3de=_0x53ecca>0x1?void 0x0:_0x53ecca?Fe(_0x4c100f,_0x56753e):_0x4c100f,_0x136886=_0x514d62[_0xc550b3(0x161)]-0x1,_0x20ec51;_0x136886>=0x0;_0x136886--)(_0x20ec51=_0x514d62[_0x136886])&&(_0x36d3de=_0x20ec51(_0x36d3de)||_0x36d3de);return _0x36d3de;},A=(_0x1e8fd0,_0x52ab63)=>(_0x4b2ada,_0x54faf5)=>_0x52ab63(_0x4b2ada,_0x54faf5,_0x1e8fd0);let m=class extends _0x2da4ee{constructor(_0x2ca09e,_0x54031a){const _0x5029e5=_0x677c62;super(),this['_injector']=_0x2ca09e,this[_0x5029e5(0x187)]=_0x54031a,this[_0x5029e5(0x107)]();}[_0x677c62(0x107)](){const _0x5eaebc=_0x677c62;this[_0x5eaebc(0x119)](this[_0x5eaebc(0x187)]['registerComponent'](_0x4d48d8[_0x5eaebc(0x185)],()=>_0x2e3eb5(Le,this[_0x5eaebc(0x117)])));}};m=He([A(0x0,_0x417a9f(_0x3b9c73)),A(0x1,_0x383d75)],m);const ye=_0x677c62(0x120),T={};var Ue=Object[_0x677c62(0x144)],Ve=(_0x3d3ea9,_0x472bf4,_0x143834,_0x2f6015)=>{const _0x436ada=_0x677c62;for(var _0x2f890a=_0x2f6015>0x1?void 0x0:_0x2f6015?Ue(_0x472bf4,_0x143834):_0x472bf4,_0x465d19=_0x3d3ea9[_0x436ada(0x161)]-0x1,_0x31c12f;_0x465d19>=0x0;_0x465d19--)(_0x31c12f=_0x3d3ea9[_0x465d19])&&(_0x2f890a=_0x31c12f(_0x2f890a)||_0x2f890a);return _0x2f890a;},je=(_0x38b2b1,_0x2e5e3a)=>(_0x515d43,_0x7bd3f9)=>_0x2e5e3a(_0x515d43,_0x7bd3f9,_0x38b2b1);let I=class extends _0x2da4ee{constructor(_0x4986ba){const _0x2e3600=_0x677c62;super(),this['_liveShareService']=_0x4986ba,this[_0x2e3600(0xf0)]();}[_0x677c62(0xf0)](){const _0x5aa2f8=_0x677c62;[_0x490dee['id'],_0x446e48['id'],_0x525cbd['id']][_0x5aa2f8(0x192)](_0x12b891=>{const _0x8ba955=_0x5aa2f8;this[_0x8ba955(0x119)](this['_liveShareService'][_0x8ba955(0x129)](_0x12b891));});}};I=Ve([je(0x0,_0x417a9f(L))],I);var Me=Object[_0x677c62(0x169)],ke=Object[_0x677c62(0x144)],Ge=(_0x5e418f,_0x4115a1,_0x1f93c6)=>_0x4115a1 in _0x5e418f?Me(_0x5e418f,_0x4115a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f93c6}):_0x5e418f[_0x4115a1]=_0x1f93c6,We=(_0x5c8fc9,_0x5ef787,_0x2e3b1a,_0x307e46)=>{const _0x1b1ff6=_0x677c62;for(var _0x289e74=_0x307e46>0x1?void 0x0:_0x307e46?ke(_0x5ef787,_0x2e3b1a):_0x5ef787,_0x5dd4bd=_0x5c8fc9[_0x1b1ff6(0x161)]-0x1,_0x25f818;_0x5dd4bd>=0x0;_0x5dd4bd--)(_0x25f818=_0x5c8fc9[_0x5dd4bd])&&(_0x289e74=_0x25f818(_0x289e74)||_0x289e74);return _0x289e74;},F=(_0x242f12,_0x4f84a5)=>(_0x4e3d4e,_0x1e2fd4)=>_0x4f84a5(_0x4e3d4e,_0x1e2fd4,_0x242f12),B=(_0x4c5f46,_0x4c15ab,_0x400464)=>Ge(_0x4c5f46,typeof _0x4c15ab!=_0x677c62(0x10e)?_0x4c15ab+'':_0x4c15ab,_0x400464);const Ye=_0x677c62(0x13a);let b=class extends _0x2600c1{constructor(_0x2898ca=T,_0x3a688e,_0x226322){const _0x2d738f=_0x677c62;super(),this[_0x2d738f(0xf6)]=_0x2898ca,this[_0x2d738f(0x117)]=_0x3a688e,this['_configService']=_0x226322;const {..._0x4458c1}=_0x275afa({},T,this[_0x2d738f(0xf6)]);this[_0x2d738f(0xea)][_0x2d738f(0x113)](ye,_0x4458c1);}[_0x677c62(0x14f)](){const _0x15cdb2=_0x677c62;_0x557937(this[_0x15cdb2(0x117)],_0x410c61([[L],[S],[I],[m]],this[_0x15cdb2(0xf6)][_0x15cdb2(0x172)])),_0x5aa4a8(this[_0x15cdb2(0x117)],[[I]]);}[_0x677c62(0x171)](){const _0x2a6351=_0x677c62;_0x5aa4a8(this[_0x2a6351(0x117)],[[m]]);}};B(b,_0x677c62(0x12a),_0x59bb3d[_0x677c62(0x14b)]),B(b,_0x677c62(0x136),Ye),b=We([_0x165c63(_0x2a81a9),F(0x1,_0x417a9f(_0x3b9c73)),F(0x2,_0x290042)],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 _0x5bfd09=_0x2449;(function(_0x2cdbe4,_0x2ab260){const _0x41d99f=_0x2449,_0x5b26fc=_0x2cdbe4();while(!![]){try{const _0x5c80e4=parseInt(_0x41d99f(0x1cf))/0x1*(-parseInt(_0x41d99f(0x1d6))/0x2)+-parseInt(_0x41d99f(0x1e8))/0x3*(-parseInt(_0x41d99f(0x1dd))/0x4)+parseInt(_0x41d99f(0x1e2))/0x5+-parseInt(_0x41d99f(0x1d8))/0x6+-parseInt(_0x41d99f(0x1eb))/0x7*(parseInt(_0x41d99f(0x1e4))/0x8)+parseInt(_0x41d99f(0x1db))/0x9+parseInt(_0x41d99f(0x1d5))/0xa;if(_0x5c80e4===_0x2ab260)break;else _0x5b26fc['push'](_0x5b26fc['shift']());}catch(_0x3bebd2){_0x5b26fc['push'](_0x5b26fc['shift']());}}}(_0x37cb,0xa6dfb));import{LiveShareController as _0x5abd77,LiveShareStatus as _0x5cf689}from'@univerjs-pro/live-share';function _0x2449(_0x380fd3,_0x1bc9fe){_0x380fd3=_0x380fd3-0x1cf;const _0x37cb9b=_0x37cb();let _0x2449b7=_0x37cb9b[_0x380fd3];return _0x2449b7;}import{IRenderManagerService as _0x4993a1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3438cd}from'@univerjs/sheets';import{SetScrollOperation as _0x4445e5}from'@univerjs/sheets-ui';import{FRange as _0x33be52}from'@univerjs/sheets/facade';import{FUniver as _0x395cca,FEnum as _0x967069}from'@univerjs/core/facade';class I extends _0x33be52{[_0x5bfd09(0x1df)](_0x16a596,_0x5796a9,_0x18ac9a,_0x1cf434,_0x48e2fe){const _0x5b28b2=_0x5bfd09,_0x3beb50=_0x16a596[_0x5b28b2(0x1d2)](_0x5abd77),_0x52d019=_0x16a596['get'](_0x4993a1),_0x2b07f9=_0x5796a9['getUnitId'](),_0x422009=_0x5796a9[_0x5b28b2(0x1d7)](),_0x211591=_0x3beb50[_0x5b28b2(0x1e1)](_0x2b07f9);(_0x211591==null?void 0x0:_0x211591['getStatus']())!==_0x5cf689['PRESENTING']||(_0x18ac9a['getSheetId']()!==_0x422009[_0x5b28b2(0x1ec)]()&&this[_0x5b28b2(0x1e6)][_0x5b28b2(0x1e3)](_0x3438cd['id'],{'unitId':_0x2b07f9,'subUnitId':_0x18ac9a[_0x5b28b2(0x1ec)]()}),!_0x52d019['getRenderById'](_0x2b07f9))||_0x48e2fe['syncExecuteCommand'](_0x4445e5['id'],{'unitId':_0x5796a9[_0x5b28b2(0x1e0)](),'sheetId':_0x18ac9a[_0x5b28b2(0x1ec)](),'sheetViewStartRow':_0x1cf434[_0x5b28b2(0x1d3)],'sheetViewStartColumn':_0x1cf434[_0x5b28b2(0x1d4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x33be52['extend'](I);function _0x37cb(){const _0x3ad315=['3APzsRB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','42tIALwJ','getSheetId','getActiveWorkbook','stopFollowing','IDLE','1hQOHiT','tryStartPresenting','getId','get','startRow','startColumn','20491100TzjArv','2051834hFtBDa','getActiveSheet','4954392EMCOUS','No\x20active\x20workbook\x20found.','LiveShareStatusEnum','11264067lNXzHE','stopPresenting','1262116zWUsym','startPresenting','_initialize','getUnitId','getLiveShareCoordinatorSync','180540xxVgsO','executeCommand','1489528wcquIe','getLiveShareStatus','_commandService','_injector'];_0x37cb=function(){return _0x3ad315;};return _0x37cb();}class m extends _0x395cca{[_0x5bfd09(0x1e5)](){const _0x3e8982=_0x5bfd09;var _0x2d8454,_0x59fc11;const _0x5b276b=this['_injector'][_0x3e8982(0x1d2)](_0x5abd77),_0x194465=(_0x2d8454=this[_0x3e8982(0x1ed)]())==null?void 0x0:_0x2d8454['getId']();if(!_0x194465)throw new Error(_0x3e8982(0x1d9));const _0x48620e=_0x5b276b['getLiveShareCoordinatorSync'](_0x194465);return(_0x59fc11=_0x48620e==null?void 0x0:_0x48620e['getStatus']())!=null?_0x59fc11:_0x5cf689[_0x3e8982(0x1ef)];}[_0x5bfd09(0x1ea)](){const _0x6a1739=_0x5bfd09;var _0x4f4999;const _0x335a46=this[_0x6a1739(0x1e7)][_0x6a1739(0x1d2)](_0x5abd77),_0x575511=(_0x4f4999=this[_0x6a1739(0x1ed)]())==null?void 0x0:_0x4f4999[_0x6a1739(0x1d1)]();if(!_0x575511)throw new Error(_0x6a1739(0x1d9));const _0x46a05e=_0x335a46[_0x6a1739(0x1e1)](_0x575511);if(!_0x46a05e)throw new Error(_0x6a1739(0x1e9));_0x46a05e[_0x6a1739(0x1ea)]();}[_0x5bfd09(0x1ee)](){const _0x583634=_0x5bfd09;var _0x3ce0da;const _0x2d1f3e=this[_0x583634(0x1e7)]['get'](_0x5abd77),_0x474408=(_0x3ce0da=this['getActiveWorkbook']())==null?void 0x0:_0x3ce0da[_0x583634(0x1d1)]();if(!_0x474408)throw new Error('No\x20active\x20workbook\x20found.');const _0x86da03=_0x2d1f3e[_0x583634(0x1e1)](_0x474408);if(!_0x86da03)throw new Error(_0x583634(0x1e9));_0x86da03[_0x583634(0x1ee)]();}[_0x5bfd09(0x1de)](){const _0xa37057=_0x5bfd09;var _0x75eb90;const _0x5381fd=this['_injector'][_0xa37057(0x1d2)](_0x5abd77),_0x3df261=(_0x75eb90=this['getActiveWorkbook']())==null?void 0x0:_0x75eb90[_0xa37057(0x1d1)]();if(!_0x3df261)throw new Error('No\x20active\x20workbook\x20found.');const _0x201dc1=_0x5381fd['getLiveShareCoordinatorSync'](_0x3df261);if(!_0x201dc1)throw new Error(_0xa37057(0x1e9));_0x201dc1[_0xa37057(0x1d0)]();}[_0x5bfd09(0x1dc)](){const _0x121def=_0x5bfd09;var _0x1b671c;const _0x28d64e=this[_0x121def(0x1e7)][_0x121def(0x1d2)](_0x5abd77),_0x8563ca=(_0x1b671c=this[_0x121def(0x1ed)]())==null?void 0x0:_0x1b671c[_0x121def(0x1d1)]();if(!_0x8563ca)throw new Error('No\x20active\x20workbook\x20found.');const _0x51c61a=_0x28d64e['getLiveShareCoordinatorSync'](_0x8563ca);if(!_0x51c61a)throw new Error(_0x121def(0x1e9));_0x51c61a[_0x121def(0x1dc)]();}}_0x395cca['extend'](m);class C extends _0x967069{get[_0x5bfd09(0x1da)](){return _0x5cf689;}}_0x967069['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1e3913=_0x10e8;(function(_0x1cddad,_0x2dccff){const _0x41a8ba=_0x10e8,_0x5e8fb5=_0x1cddad();while(!![]){try{const _0x2a8b01=-parseInt(_0x41a8ba(0x154))/0x1+parseInt(_0x41a8ba(0x180))/0x2+-parseInt(_0x41a8ba(0x1a9))/0x3+-parseInt(_0x41a8ba(0x19b))/0x4*(-parseInt(_0x41a8ba(0x179))/0x5)+parseInt(_0x41a8ba(0x120))/0x6+parseInt(_0x41a8ba(0x119))/0x7*(-parseInt(_0x41a8ba(0x138))/0x8)+parseInt(_0x41a8ba(0x133))/0x9;if(_0x2a8b01===_0x2dccff)break;else _0x5e8fb5['push'](_0x5e8fb5['shift']());}catch(_0x257955){_0x5e8fb5['push'](_0x5e8fb5['shift']());}}}(_0x19a8,0xdcaf4));var J=Object[_0x1e3913(0x135)],K=(_0x98264a,_0x316de4,_0x17052e)=>_0x316de4 in _0x98264a?J(_0x98264a,_0x316de4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17052e}):_0x98264a[_0x316de4]=_0x17052e,u=(_0x945b98,_0x4bdaff,_0x42b590)=>K(_0x945b98,typeof _0x4bdaff!=_0x1e3913(0x1bb)?_0x4bdaff+'':_0x4bdaff,_0x42b590);import{Disposable as _0x3fdec1,toDisposable as _0x1d9736,IUniverInstanceService as _0x2049b1,Inject as _0x11722,Injector as _0x1a2c9d,IConfigService as _0x3b5d57,ICommandService as _0x36eceb,RxDisposable as _0xc3b9c2,UniverInstanceType as _0x11c3ec,DisposableCollection as _0x2ecc7c,CommandType as _0x44b523,DependentOn as _0x4fabc5,Plugin as _0x53087b,merge as _0xdfd2,registerDependencies as _0x4a9481,mergeOverrideWithDependencies as _0x2de0a7,touchDependencies as _0x291806}from'@univerjs/core';import{useDependency as _0x277c9c,useObservable as _0x468a56,IUIPartsService as _0x599b7f,BuiltInUIPart as _0x135a48,connectInjector as _0x17e859}from'@univerjs/ui';import{jsx as _0x467149,jsxs as _0x25f640,Fragment as _0x33fc73}from'react/jsx-runtime';import{Dropdown as _0x4f4a70,clsx as _0x14156c,Button as _0x421518}from'@univerjs/design';import{useRef as _0x15158d,createElement as _0x73c6a2,forwardRef as _0x1733a2,useState as _0x2dbbd2,useEffect as _0x3b2fb9}from'react';import{CollaborationEvent as _0x3a643d,parseProtocolChangeset as _0xabead0}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4fce21,SessionStatus as _0x176c53,UniverCollaborationClientPlugin as _0x55d200}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xc3a114,SetWorksheetActiveOperation as _0x3b9598}from'@univerjs/sheets';import{BehaviorSubject as _0x100379,Subject as _0x3ac0a4}from'rxjs';import{takeUntil as _0xa6aee5,throttleTime as _0x48ac64}from'rxjs/operators';import{SetZoomRatioOperation as _0x262fa7,SetScrollOperation as _0x4ae607}from'@univerjs/sheets-ui';function k({ref:_0x8429fe,..._0x21b7da}){const _0x279576=_0x1e3913,{icon:_0x355eaf,id:_0x14c0d0,className:_0x40f9e4,extend:_0x24a783,..._0x281f88}=_0x21b7da,_0x27f66a=(_0x279576(0x1be)+_0x14c0d0+'\x20'+(_0x40f9e4||''))[_0x279576(0x1aa)](),_0x3a74b0=_0x15158d('_'+Oe());return G(_0x355eaf,''+_0x14c0d0,{'defIds':_0x355eaf[_0x279576(0x17a)],'idSuffix':_0x3a74b0['current']},{'ref':_0x8429fe,'className':_0x27f66a,..._0x281f88},_0x24a783);}function G(_0x16548c,_0x393871,_0x246e5e,_0x444117,_0xac3728){const _0x5dfcc3=_0x1e3913;return _0x73c6a2(_0x16548c[_0x5dfcc3(0x171)],{'key':_0x393871,...be(_0x16548c,_0x246e5e,_0xac3728),..._0x444117},(Ee(_0x16548c,_0x246e5e)[_0x5dfcc3(0x176)]||[])[_0x5dfcc3(0x15a)]((_0x32ba28,_0x4d9aef)=>G(_0x32ba28,_0x393871+'-'+_0x16548c[_0x5dfcc3(0x171)]+'-'+_0x4d9aef,_0x246e5e,void 0x0,_0xac3728)));}function be(_0x29ba5a,_0x167a23,_0x13bfb0){const _0x3064bc=_0x1e3913,_0x512f86={..._0x29ba5a[_0x3064bc(0x185)]};_0x13bfb0!=null&&_0x13bfb0[_0x3064bc(0x17b)]&&_0x512f86[_0x3064bc(0x163)]===_0x3064bc(0x17b)&&(_0x512f86[_0x3064bc(0x163)]=_0x13bfb0[_0x3064bc(0x17b)]),_0x29ba5a[_0x3064bc(0x171)]==='mask'&&_0x512f86['id']&&(_0x512f86['id']=_0x512f86['id']+_0x167a23[_0x3064bc(0x19f)]),Object['entries'](_0x512f86)['forEach'](([_0x72fc09,_0x1b445f])=>{const _0x1c0158=_0x3064bc;_0x72fc09===_0x1c0158(0x18e)&&typeof _0x1b445f==_0x1c0158(0x1bd)&&(_0x512f86[_0x72fc09]=_0x1b445f['replace'](/url\(#(.*)\)/,'url(#$1'+_0x167a23[_0x1c0158(0x19f)]+')'));});const {defIds:_0x183dc5}=_0x167a23;return!_0x183dc5||_0x183dc5[_0x3064bc(0x14f)]===0x0||(_0x29ba5a[_0x3064bc(0x171)]===_0x3064bc(0x164)&&_0x512f86[_0x3064bc(0x169)]&&(_0x512f86['xlink:href']=_0x512f86[_0x3064bc(0x169)]+_0x167a23[_0x3064bc(0x19f)]),Object[_0x3064bc(0x170)](_0x512f86)[_0x3064bc(0x12a)](([_0x3e9918,_0x30cc45])=>{const _0x550ea7=_0x3064bc;typeof _0x30cc45=='string'&&(_0x512f86[_0x3e9918]=_0x30cc45[_0x550ea7(0x167)](/url\(#(.*)\)/,_0x550ea7(0x14b)+_0x167a23[_0x550ea7(0x19f)]+')'));})),_0x512f86;}function Ee(_0x4cc858,_0x4d2860){const _0x1f5f14=_0x1e3913;var _0x45d5f;const {defIds:_0x329f03}=_0x4d2860;return!_0x329f03||_0x329f03[_0x1f5f14(0x14f)]===0x0?_0x4cc858:_0x4cc858[_0x1f5f14(0x171)]==='defs'&&((_0x45d5f=_0x4cc858[_0x1f5f14(0x176)])!=null&&_0x45d5f[_0x1f5f14(0x14f)])?{..._0x4cc858,'children':_0x4cc858[_0x1f5f14(0x176)]['map'](_0x4d7650=>typeof _0x4d7650['attrs']['id']==_0x1f5f14(0x1bd)&&_0x329f03&&_0x329f03[_0x1f5f14(0x18b)](_0x4d7650[_0x1f5f14(0x185)]['id'])?{..._0x4d7650,'attrs':{..._0x4d7650[_0x1f5f14(0x185)],'id':_0x4d7650['attrs']['id']+_0x4d2860[_0x1f5f14(0x19f)]}}:_0x4d7650)}:_0x4cc858;}function Oe(){const _0x4ddd61=_0x1e3913;return Math[_0x4ddd61(0x196)]()[_0x4ddd61(0x130)](0x24)['substring'](0x2,0x8);}k[_0x1e3913(0x13f)]=_0x1e3913(0x12e);const we={'tag':'svg','attrs':{'xmlns':_0x1e3913(0x118),'fill':_0x1e3913(0x143),'viewBox':_0x1e3913(0x18f),'width':'1em','height':_0x1e3913(0x193)},'children':[{'tag':_0x1e3913(0x151),'attrs':{'fill':_0x1e3913(0x1ab),'d':_0x1e3913(0x17d)}},{'tag':_0x1e3913(0x151),'attrs':{'fill':_0x1e3913(0x1ab),'d':_0x1e3913(0x17f),'fillRule':_0x1e3913(0x1b6),'clipRule':_0x1e3913(0x1b6)}}]},W=_0x1733a2(function(_0x1cec08,_0x257bc1){const _0x2820aa=_0x1e3913;return _0x73c6a2(k,Object[_0x2820aa(0x1ac)]({},_0x1cec08,{'id':_0x2820aa(0x198),'ref':_0x257bc1,'icon':we}));});function _0x19a8(){const _0x2e6224=['Stop\x20following','_startFollowing','has','UniverIcon','_config','toString','_sharedOperations','getLiveShareCoordinator','2386782TBLUIg','_startLiveShareCoordinator','defineProperty','_commandDisposable','Start\x20following','1752MLIGom','next','getStatus','presenter','asObservable','Present\x20this\x20document','unitId','displayName','requireSession','div','set','none','FOLLOWING','_presenter','IDLE','NOT_FOLLOWING','mutations','params','get','url(#$1','operations','_unitID','_stopFollowing','length','LIVESHARE_FETCH_OPERATIONS','path','tryStartPresenting','getOwnPropertyDescriptor','7533XgMZWC','delete','executeCommand','getValue','univer-size-4','_mountLiveShare','map','You\x27are\x20offline.','_configService','presenting','override','LIVESHARE_OPERATION','add','current','_collabSession','fill','use','_handleOffline','getTypeOfUnitAdded$','replace','disposeWithMe','xlink:href','getInitialStates','You\x27re\x20presenting\x20the\x20document','_injector','memberID','pipe','status$','entries','tag','getConfig','_fetchOperations','init','_uiPartsService','children','You\x27re\x20not\x20following\x20the\x20presenter','NEW_CHANGESETS','374685uRUjRo','defIds','colorChannel1','button','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','registerSharedOperation','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','2350368CNhMtL','parse','not-following','PRESENTING','dispose','attrs','offline','live-share.config','then','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','_beIdle','includes','_init','univer-mb-3\x20univer-w-full\x20univer-text-sm','mask','0\x200\x2017\x2017','data','getUnitId','onRendered','1em','SAME_OPERATION_SHARE_INTERVAL','HEADER_MENU','random','event$','live-share-icon','getMemberID','UNIVER_SHEET','24EYLpcX','_handleOnline','sessionStatus$','send','idSuffix','setConfig','_entities','complete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','idle','OPERATION','_handleTerminate','default','shouldShareOperation','4070493caMTGd','trim','currentColor','assign','createInstance','dispose$','LiveShareIcon','type','stringify','_reporters','Start','registerComponent','OFFLINE','evenodd','_collabSessionService','following','_univerInstanceService','registerInitialStateReporter','symbol','_status$','string','univerjs-icon\x20univerjs-icon-','_liveShareService','http://www.w3.org/2000/svg','24941DXZzPU','end','getLiveShareCoordinatorSync','_handleNewChangeSets','startFollowing','_startPresenting','subscribe','6951486sjufBs','_stopPresenting','_status','stopFollowing','text','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20presenting','LIVESHARE_TERMINATE','_handleNewHost','_commandService','forEach'];_0x19a8=function(){return _0x2e6224;};return _0x19a8();}W[_0x1e3913(0x13f)]=_0x1e3913(0x1af);class L extends _0x3fdec1{constructor(){const _0x4099dc=_0x1e3913;super(...arguments),u(this,_0x4099dc(0x131),new Set()),u(this,_0x4099dc(0x1b2),new Set());}[_0x1e3913(0x17e)](_0x1c168e){const _0x1b7060=_0x1e3913;return this[_0x1b7060(0x131)][_0x1b7060(0x160)](_0x1c168e),_0x1d9736(()=>this[_0x1b7060(0x131)]['delete'](_0x1c168e));}[_0x1e3913(0x1ba)](_0x4f8678){const _0x28f40a=_0x1e3913;return this[_0x28f40a(0x1b2)][_0x28f40a(0x160)](_0x4f8678),_0x1d9736(()=>this['_reporters'][_0x28f40a(0x155)](_0x4f8678));}[_0x1e3913(0x1a8)](_0x4a5c22){const _0x297ebc=_0x1e3913;return this[_0x297ebc(0x131)][_0x297ebc(0x12d)](_0x4a5c22);}[_0x1e3913(0x16a)](_0x5488b0){const _0x564e16=_0x1e3913;return Array['from'](this[_0x564e16(0x1b2)])[_0x564e16(0x15a)](_0x259b87=>_0x259b87(_0x5488b0));}}var Ne=Object[_0x1e3913(0x153)],Y=(_0x40cb0a,_0x42f74f,_0x3f3d8a,_0x46c1ab)=>{const _0x29e3a5=_0x1e3913;for(var _0x565f5e=_0x46c1ab>0x1?void 0x0:_0x46c1ab?Ne(_0x42f74f,_0x3f3d8a):_0x42f74f,_0x2ea746=_0x40cb0a[_0x29e3a5(0x14f)]-0x1,_0x28a212;_0x2ea746>=0x0;_0x2ea746--)(_0x28a212=_0x40cb0a[_0x2ea746])&&(_0x565f5e=_0x28a212(_0x565f5e)||_0x565f5e);return _0x565f5e;},_=(_0x134bd3,_0x136bff)=>(_0x101353,_0x16acc1)=>_0x136bff(_0x101353,_0x16acc1,_0x134bd3);let S=class extends _0xc3b9c2{constructor(_0x175b5a,_0x4ec1ae,_0x4712c6){const _0x49cc1c=_0x1e3913;super(),u(this,'_entities',new Map()),(this[_0x49cc1c(0x1b9)]=_0x175b5a,this[_0x49cc1c(0x16c)]=_0x4ec1ae,this[_0x49cc1c(0x1b7)]=_0x4712c6,this[_0x49cc1c(0x18c)]());}async[_0x1e3913(0x132)](_0x38c3f8){const _0x3852ad=_0x1e3913;return this[_0x3852ad(0x1a1)][_0x3852ad(0x12d)](_0x38c3f8)||await this[_0x3852ad(0x134)](_0x38c3f8),this[_0x3852ad(0x1a1)][_0x3852ad(0x14a)](_0x38c3f8);}[_0x1e3913(0x11b)](_0x1bc7ab){const _0x11910e=_0x1e3913;var _0x55e288;return(_0x55e288=this['_entities'][_0x11910e(0x14a)](_0x1bc7ab))!=null?_0x55e288:null;}[_0x1e3913(0x18c)](){const _0x5e3abf=_0x1e3913;this[_0x5e3abf(0x1b9)][_0x5e3abf(0x166)](_0x11c3ec[_0x5e3abf(0x19a)])[_0x5e3abf(0x16e)](_0xa6aee5(this[_0x5e3abf(0x1ae)]))['subscribe'](async _0x14f239=>{const _0x10c08f=_0x5e3abf,_0x1aae02=_0x14f239[_0x10c08f(0x191)]();this[_0x10c08f(0x1a1)][_0x10c08f(0x12d)](_0x1aae02)||this[_0x10c08f(0x134)](_0x1aae02);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x11c3ec[_0x5e3abf(0x19a)])[_0x5e3abf(0x16e)](_0xa6aee5(this[_0x5e3abf(0x1ae)]))[_0x5e3abf(0x11f)](_0x1eee94=>{const _0x253ed3=_0x5e3abf,_0x13a404=_0x1eee94[_0x253ed3(0x191)](),_0x44a02d=this[_0x253ed3(0x1a1)][_0x253ed3(0x14a)](_0x13a404);_0x44a02d==null||_0x44a02d[_0x253ed3(0x184)]();});}async[_0x1e3913(0x134)](_0x35b707){const _0x29a1f7=_0x1e3913,_0x4bb607=await this[_0x29a1f7(0x1b7)][_0x29a1f7(0x140)](_0x35b707),_0x3a4dc1=this[_0x29a1f7(0x16c)][_0x29a1f7(0x1ad)](N,_0x35b707,_0x4bb607);return _0x3a4dc1['init'](),this['_entities'][_0x29a1f7(0x142)](_0x35b707,_0x3a4dc1),_0x3a4dc1;}};S=Y([_(0x0,_0x2049b1),_(0x1,_0x11722(_0x1a2c9d)),_(0x2,_0x11722(_0x4fce21))],S);var c=(_0x3fe9f3=>(_0x3fe9f3[_0x1e3913(0x1b5)]=_0x1e3913(0x186),_0x3fe9f3[_0x1e3913(0x146)]=_0x1e3913(0x1a4),_0x3fe9f3[_0x1e3913(0x144)]=_0x1e3913(0x1b8),_0x3fe9f3[_0x1e3913(0x147)]=_0x1e3913(0x182),_0x3fe9f3[_0x1e3913(0x183)]='presenting',_0x3fe9f3))(c||{});const Ce=_0x1e3913(0x194),De=0xc8;let N=class extends _0xc3b9c2{constructor(_0x345f15,_0x55e960,_0x1e7295,_0x1ae897,_0x2b50db){const _0x12ed58=_0x1e3913;super(),u(this,_0x12ed58(0x1bc),new _0x100379('idle')),u(this,_0x12ed58(0x16f),this[_0x12ed58(0x1bc)][_0x12ed58(0x13c)]()),u(this,_0x12ed58(0x18c),!0x1),u(this,_0x12ed58(0x136),null),u(this,_0x12ed58(0x145),null),(this['_unitID']=_0x345f15,this['_collabSession']=_0x55e960,this[_0x12ed58(0x15c)]=_0x1e7295,this[_0x12ed58(0x117)]=_0x1ae897,this[_0x12ed58(0x129)]=_0x2b50db);}get['_status'](){const _0x53d208=_0x1e3913;return this[_0x53d208(0x1bc)][_0x53d208(0x157)]();}[_0x1e3913(0x184)](){const _0x44d97e=_0x1e3913;var _0x123e59;(_0x123e59=this['_commandDisposable'])==null||_0x123e59[_0x44d97e(0x184)](),this[_0x44d97e(0x1bc)]['next']('idle'),this['_status$'][_0x44d97e(0x1a2)]();}[_0x1e3913(0x13a)](){const _0x5cf592=_0x1e3913;return this[_0x5cf592(0x122)];}[_0x1e3913(0x174)](){const _0x5babce=_0x1e3913;this[_0x5babce(0x18c)]||(this['_init']=!0x0,this[_0x5babce(0x162)][_0x5babce(0x19d)][_0x5babce(0x16e)](_0xa6aee5(this[_0x5babce(0x1ae)]))[_0x5babce(0x11f)](_0x17bdb5=>{const _0x321fb5=_0x5babce;switch(_0x17bdb5){case _0x176c53[_0x321fb5(0x1b5)]:this[_0x321fb5(0x165)]();break;case _0x176c53['ONLINE']:this['_handleOnline']();break;}}),this[_0x5babce(0x162)][_0x5babce(0x197)][_0x5babce(0x16e)](_0xa6aee5(this[_0x5babce(0x1ae)]))[_0x5babce(0x11f)](_0x594414=>{const _0x1a87fb=_0x5babce,{eventID:_0xc2f90e}=_0x594414;switch(_0xc2f90e){case _0x3a643d['LIVESHARE_NEW_HOST']:this[_0x1a87fb(0x128)](_0x594414);break;case _0x3a643d[_0x1a87fb(0x15f)]:this['_handleOperation'](_0x594414);break;case _0x3a643d[_0x1a87fb(0x127)]:this[_0x1a87fb(0x1a6)]();break;case _0x3a643d[_0x1a87fb(0x178)]:this[_0x1a87fb(0x11c)](_0x594414);break;}}));}[_0x1e3913(0x152)](){const _0x4e1abb=_0x1e3913;this[_0x4e1abb(0x162)]['send']({'eventID':_0x3a643d['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4e1abb(0x14d)],'userID':this[_0x4e1abb(0x162)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x4ec911=_0x1e3913;this[_0x4ec911(0x122)]===_0x4ec911(0x15d)&&(this['_status$'][_0x4ec911(0x139)](_0x4ec911(0x1a4)),this[_0x4ec911(0x162)]['send']({'eventID':_0x3a643d[_0x4ec911(0x127)],'data':{'unitID':this[_0x4ec911(0x14d)]}},this[_0x4ec911(0x14d)]));}[_0x1e3913(0x11d)](){const _0x121d89=_0x1e3913;this[_0x121d89(0x122)]==='not-following'&&(this['_status$'][_0x121d89(0x139)](_0x121d89(0x1b8)),this[_0x121d89(0x12c)]());}[_0x1e3913(0x123)](){const _0x58d006=_0x1e3913;this[_0x58d006(0x122)]===_0x58d006(0x1b8)&&this['_stopFollowing']();}[_0x1e3913(0x128)](_0x1ed5d7){const _0x163928=_0x1e3913,{presenter:_0x61dc7c}=_0x1ed5d7[_0x163928(0x190)],_0x7e47ce=this[_0x163928(0x162)][_0x163928(0x199)]();this[_0x163928(0x145)]=_0x61dc7c,_0x61dc7c===_0x7e47ce?(this[_0x163928(0x14e)](),this[_0x163928(0x11e)]()):this['_status']!=='not-following'&&(this[_0x163928(0x121)](),this['_startFollowing']());}[_0x1e3913(0x173)](){const _0x3ea706=_0x1e3913,_0x2e5ecb={'eventID':_0x3a643d[_0x3ea706(0x150)]};this[_0x3ea706(0x162)]['send'](_0x2e5ecb,this[_0x3ea706(0x14d)]);}['_handleTerminate'](){const _0x2f825e=_0x1e3913;this['_presenter']=null,this[_0x2f825e(0x122)]!=='presenting'&&this[_0x2f825e(0x18a)]();}[_0x1e3913(0x11c)](_0x36a4bd){const _0x2cb40e=_0x1e3913;if(this[_0x2cb40e(0x122)]===_0x2cb40e(0x1b8)&&this[_0x2cb40e(0x145)]===_0x36a4bd['data'][_0x2cb40e(0x16d)]){const _0x5391d1=_0xabead0(_0x36a4bd[_0x2cb40e(0x190)])[_0x2cb40e(0x148)]['reverse']()['find'](_0x155d78=>_0x155d78['id']===_0xc3a114['id']);if(_0x5391d1){const _0x292f4f=_0x5391d1[_0x2cb40e(0x149)][_0x2cb40e(0x13e)],_0x225468=_0x5391d1[_0x2cb40e(0x149)]['sheet']['id'];setTimeout(()=>{const _0x1b2405=_0x2cb40e;this[_0x1b2405(0x129)][_0x1b2405(0x156)](_0x3b9598['id'],{'unitId':_0x292f4f,'subUnitId':_0x225468},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5ed4e0=_0x1e3913;this[_0x5ed4e0(0x1bc)]['next']('presenting');const _0x412011=new Map(),_0x38b5f6=this['_commandDisposable']=new _0x2ecc7c();_0x38b5f6['add'](_0x1d9736(()=>{const _0x1a659b=_0x5ed4e0;_0x412011[_0x1a659b(0x12a)](_0x585adf=>_0x585adf[_0x1a659b(0x1a2)]()),_0x412011['clear']();})),_0x38b5f6[_0x5ed4e0(0x160)](this[_0x5ed4e0(0x129)]['onCommandExecuted'](_0xaf14a=>{const _0x5d6cea=_0x5ed4e0;var _0x18c04e;if(_0xaf14a[_0x5d6cea(0x1b0)]!==_0x44b523[_0x5d6cea(0x1a5)]||!this['_liveShareService'][_0x5d6cea(0x1a8)](_0xaf14a['id']))return;const {id:_0x1c3dd2}=_0xaf14a;let _0x130ffe;_0x412011[_0x5d6cea(0x12d)](_0x1c3dd2)?_0x130ffe=_0x412011[_0x5d6cea(0x14a)](_0x1c3dd2):(_0x130ffe=new _0x3ac0a4(),_0x412011[_0x5d6cea(0x142)](_0x1c3dd2,_0x130ffe),_0x130ffe[_0x5d6cea(0x16e)](_0x48ac64((_0x18c04e=this[_0x5d6cea(0x15c)][_0x5d6cea(0x172)](Ce))!=null?_0x18c04e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5d6cea(0x11f)](_0x369617=>{const _0x2ad752=_0x5d6cea;this['_collabSession']['send']({'eventID':_0x3a643d['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2ad752(0x14d)],'operations':{[_0x369617['id']]:{'id':_0x369617['id'],'params':JSON[_0x2ad752(0x1b1)](_0x369617[_0x2ad752(0x149)])}}}},this[_0x2ad752(0x14d)]);})),_0x130ffe['next'](_0xaf14a);})),this[_0x5ed4e0(0x117)][_0x5ed4e0(0x16a)](this['_unitID'])[_0x5ed4e0(0x12a)](_0xa2e592=>this[_0x5ed4e0(0x162)][_0x5ed4e0(0x19e)]({'eventID':_0x3a643d[_0x5ed4e0(0x15f)],'data':{'unitID':this[_0x5ed4e0(0x14d)],'operations':{[_0xa2e592['id']]:{'id':_0xa2e592['id'],'params':JSON[_0x5ed4e0(0x1b1)](_0xa2e592['params'])}}}},this[_0x5ed4e0(0x14d)]));}[_0x1e3913(0x121)](){const _0x2e747d=_0x1e3913;var _0x77bd54;this['_status$'][_0x2e747d(0x139)](_0x2e747d(0x1a4)),(_0x77bd54=this[_0x2e747d(0x136)])==null||_0x77bd54[_0x2e747d(0x184)](),this['_commandDisposable']=null;}[_0x1e3913(0x12c)](){const _0x977d89=_0x1e3913;var _0x3d5acc;(_0x3d5acc=this[_0x977d89(0x136)])==null||_0x3d5acc['dispose'](),this[_0x977d89(0x1bc)][_0x977d89(0x139)]('following');}[_0x1e3913(0x18a)](){const _0x3695ae=_0x1e3913;var _0x50f38b;this['_status$'][_0x3695ae(0x139)](_0x3695ae(0x1a4)),(_0x50f38b=this[_0x3695ae(0x136)])==null||_0x50f38b[_0x3695ae(0x184)](),this[_0x3695ae(0x136)]=null;}[_0x1e3913(0x14e)](){const _0x513fe5=_0x1e3913;var _0xb6d9e7;this['_status$'][_0x513fe5(0x139)]('not-following'),(_0xb6d9e7=this[_0x513fe5(0x136)])==null||_0xb6d9e7[_0x513fe5(0x184)]();}['_handleOperation'](_0x10e0fb){const _0x375873=_0x1e3913;if([_0x375873(0x15d),'not-following','offline'][_0x375873(0x18b)](this['_status'])||!_0x10e0fb[_0x375873(0x190)][_0x375873(0x13b)]||_0x10e0fb[_0x375873(0x190)][_0x375873(0x13b)]===this[_0x375873(0x162)][_0x375873(0x199)]())return;this[_0x375873(0x122)]===_0x375873(0x1a4)&&this[_0x375873(0x12c)]();const _0x124fda=_0x10e0fb[_0x375873(0x190)][_0x375873(0x14c)];Object['values'](_0x124fda)[_0x375873(0x12a)](_0x6cc61e=>{const _0xbcb898=_0x375873;this[_0xbcb898(0x129)][_0xbcb898(0x156)](_0x6cc61e['id'],_0x6cc61e[_0xbcb898(0x149)]?JSON[_0xbcb898(0x181)](_0x6cc61e[_0xbcb898(0x149)]):null,{'fromCollab':!0x0});});}[_0x1e3913(0x165)](){const _0x298e5f=_0x1e3913;var _0x372fa2;this[_0x298e5f(0x1bc)]['next'](_0x298e5f(0x186)),(_0x372fa2=this[_0x298e5f(0x136)])==null||_0x372fa2[_0x298e5f(0x184)]();}[_0x1e3913(0x19c)](){const _0x1c8fb6=_0x1e3913;this[_0x1c8fb6(0x1bc)][_0x1c8fb6(0x139)]('idle'),this['_fetchOperations']();}};N=Y([_(0x2,_0x3b5d57),_(0x3,_0x11722(L)),_(0x4,_0x36eceb)],N);function Le(){const _0x21794a=_0x1e3913,_0x175664=_0x277c9c(S),_0x40b2e7=_0x277c9c(_0x2049b1),_0x4b383a=_0x468a56(()=>_0x40b2e7['getCurrentTypeOfUnit$'](_0x11c3ec['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x95624d,_0x4b00da]=_0x2dbbd2(null),[_0x19441c,_0x9757a1]=_0x2dbbd2(c['IDLE']),_0x550e37=_0x15158d(null);return _0x3b2fb9(()=>(_0x4b383a&&_0x175664[_0x21794a(0x132)](_0x4b383a[_0x21794a(0x191)]())[_0x21794a(0x188)](_0x5bd77f=>{const _0x2b0d07=_0x21794a;_0x4b00da(_0x5bd77f),_0x550e37[_0x2b0d07(0x161)]=_0x5bd77f[_0x2b0d07(0x16f)][_0x2b0d07(0x11f)](_0x34f182=>{_0x9757a1(_0x34f182);});}),()=>{const _0x239e8c=_0x21794a;var _0x359d52;(_0x359d52=_0x550e37['current'])==null||_0x359d52['unsubscribe'](),_0x550e37[_0x239e8c(0x161)]=null;}),[_0x4b383a,_0x175664]),_0x95624d?_0x467149(_0x4f4a70,{'align':_0x21794a(0x11a),'disabled':_0x19441c===c[_0x21794a(0x1b5)],'className':_0x21794a(0x189),'overlay':_0x467149(Re,{'status':_0x19441c,'coordinator':_0x95624d}),'children':_0x467149(_0x21794a(0x17c),{'className':_0x14156c(_0x21794a(0x1a3),{'univer-cursor-not-allowed':_0x19441c===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x19441c!==c[_0x21794a(0x1b5)]}),'type':'button','children':_0x467149(W,{'className':_0x21794a(0x158)})})}):null;}function _0x10e8(_0x533177,_0x2fa04e){_0x533177=_0x533177-0x117;const _0x19a83d=_0x19a8();let _0x10e806=_0x19a83d[_0x533177];return _0x10e806;}function Re(_0x23a1aa){const _0x3ccb1c=_0x1e3913,{status:_0x274986,coordinator:_0x376a7a}=_0x23a1aa;switch(_0x274986){case c[_0x3ccb1c(0x146)]:return _0x467149($e,{'coordinator':_0x376a7a});case c[_0x3ccb1c(0x144)]:return _0x467149(xe,{'coordinator':_0x376a7a});case c[_0x3ccb1c(0x147)]:return _0x467149(Pe,{'coordinator':_0x376a7a});case c[_0x3ccb1c(0x1b5)]:return _0x467149(Te,{});case c['PRESENTING']:return _0x467149(Ae,{'coordinator':_0x376a7a});default:return null;}}function $e(_0x3a7580){const _0x4aa812=_0x1e3913,{coordinator:_0x282d72}=_0x3a7580;return _0x25f640(_0x33fc73,{'children':[_0x467149('div',{'className':_0x4aa812(0x18d),'children':_0x4aa812(0x13d)}),_0x467149(_0x421518,{'onClick':()=>_0x282d72[_0x4aa812(0x152)](),'children':_0x4aa812(0x1b3)})]});}function xe(_0x28c413){const _0xf4f716=_0x1e3913,{coordinator:_0x403b89}=_0x28c413;return _0x25f640(_0x33fc73,{'children':[_0x467149('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x467149(_0x421518,{'onClick':()=>_0x403b89[_0xf4f716(0x123)](),'children':_0xf4f716(0x12b)})]});}function Pe(_0x4f68b7){const _0x4f35e4=_0x1e3913,{coordinator:_0x4653cf}=_0x4f68b7;return _0x25f640(_0x33fc73,{'children':[_0x467149(_0x4f35e4(0x141),{'className':_0x4f35e4(0x18d),'children':_0x4f35e4(0x177)}),_0x467149(_0x421518,{'variant':_0x4f35e4(0x124),'onClick':()=>_0x4653cf[_0x4f35e4(0x11d)](),'children':_0x4f35e4(0x137)})]});}function Ae(_0x461c11){const _0x5710b8=_0x1e3913,{coordinator:_0x275c77}=_0x461c11;return _0x25f640(_0x33fc73,{'children':[_0x467149(_0x5710b8(0x141),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5710b8(0x16b)}),_0x467149(_0x421518,{'variant':_0x5710b8(0x1a7),'onClick':()=>_0x275c77['stopPresenting'](),'children':_0x5710b8(0x126)})]});}function Te(){const _0x2431a5=_0x1e3913;return _0x467149(_0x33fc73,{'children':_0x2431a5(0x15b)});}var Fe=Object[_0x1e3913(0x153)],He=(_0x30455a,_0x32ae6c,_0x4ce5bd,_0x2d98c0)=>{const _0x3618c8=_0x1e3913;for(var _0x2a3cac=_0x2d98c0>0x1?void 0x0:_0x2d98c0?Fe(_0x32ae6c,_0x4ce5bd):_0x32ae6c,_0xe3f213=_0x30455a[_0x3618c8(0x14f)]-0x1,_0x2fa9c3;_0xe3f213>=0x0;_0xe3f213--)(_0x2fa9c3=_0x30455a[_0xe3f213])&&(_0x2a3cac=_0x2fa9c3(_0x2a3cac)||_0x2a3cac);return _0x2a3cac;},A=(_0x450b5e,_0x28fda4)=>(_0x32e326,_0x1d9ad3)=>_0x28fda4(_0x32e326,_0x1d9ad3,_0x450b5e);let m=class extends _0x3fdec1{constructor(_0x53fcfb,_0x5b1c6d){const _0x48d999=_0x1e3913;super(),this['_injector']=_0x53fcfb,this[_0x48d999(0x175)]=_0x5b1c6d,this['_mountLiveShare']();}[_0x1e3913(0x159)](){const _0x110040=_0x1e3913;this['disposeWithMe'](this[_0x110040(0x175)][_0x110040(0x1b4)](_0x135a48[_0x110040(0x195)],()=>_0x17e859(Le,this[_0x110040(0x16c)])));}};m=He([A(0x0,_0x11722(_0x1a2c9d)),A(0x1,_0x599b7f)],m);const ye=_0x1e3913(0x187),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x518525,_0xbd22e1,_0x2a6e35,_0x4cc948)=>{const _0x13d24e=_0x1e3913;for(var _0x453857=_0x4cc948>0x1?void 0x0:_0x4cc948?Ue(_0xbd22e1,_0x2a6e35):_0xbd22e1,_0x4ccdc9=_0x518525[_0x13d24e(0x14f)]-0x1,_0xa1d3d7;_0x4ccdc9>=0x0;_0x4ccdc9--)(_0xa1d3d7=_0x518525[_0x4ccdc9])&&(_0x453857=_0xa1d3d7(_0x453857)||_0x453857);return _0x453857;},je=(_0x5c708e,_0x4763c6)=>(_0x1ce291,_0x5e872f)=>_0x4763c6(_0x1ce291,_0x5e872f,_0x5c708e);let I=class extends _0x3fdec1{constructor(_0x37848d){const _0x4f89ec=_0x1e3913;super(),this[_0x4f89ec(0x117)]=_0x37848d,this[_0x4f89ec(0x18c)]();}['_init'](){const _0x3734f1=_0x1e3913;[_0x262fa7['id'],_0x4ae607['id'],_0x3b9598['id']][_0x3734f1(0x12a)](_0x4384b5=>{const _0x4afa48=_0x3734f1;this[_0x4afa48(0x168)](this[_0x4afa48(0x117)][_0x4afa48(0x17e)](_0x4384b5));});}};I=Ve([je(0x0,_0x11722(L))],I);var Me=Object[_0x1e3913(0x135)],ke=Object[_0x1e3913(0x153)],Ge=(_0x24dc63,_0x503c2c,_0x3076a0)=>_0x503c2c in _0x24dc63?Me(_0x24dc63,_0x503c2c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3076a0}):_0x24dc63[_0x503c2c]=_0x3076a0,We=(_0x5c178f,_0x124874,_0x337ab7,_0x5447e3)=>{for(var _0x509c64=_0x5447e3>0x1?void 0x0:_0x5447e3?ke(_0x124874,_0x337ab7):_0x124874,_0x3ff877=_0x5c178f['length']-0x1,_0x4d78d0;_0x3ff877>=0x0;_0x3ff877--)(_0x4d78d0=_0x5c178f[_0x3ff877])&&(_0x509c64=_0x4d78d0(_0x509c64)||_0x509c64);return _0x509c64;},F=(_0x1beb62,_0x4cba22)=>(_0x468863,_0x45954c)=>_0x4cba22(_0x468863,_0x45954c,_0x1beb62),B=(_0x157861,_0x2a88e3,_0x1f80bd)=>Ge(_0x157861,typeof _0x2a88e3!='symbol'?_0x2a88e3+'':_0x2a88e3,_0x1f80bd);const Ye=_0x1e3913(0x125);let b=class extends _0x53087b{constructor(_0x2f6c03=T,_0x2bc972,_0x225cea){const _0x3a18c3=_0x1e3913;super(),this['_config']=_0x2f6c03,this[_0x3a18c3(0x16c)]=_0x2bc972,this[_0x3a18c3(0x15c)]=_0x225cea;const {..._0x2a8657}=_0xdfd2({},T,this[_0x3a18c3(0x12f)]);this[_0x3a18c3(0x15c)][_0x3a18c3(0x1a0)](ye,_0x2a8657);}['onStarting'](){const _0x1d2cef=_0x1e3913;_0x4a9481(this[_0x1d2cef(0x16c)],_0x2de0a7([[L],[S],[I],[m]],this[_0x1d2cef(0x12f)][_0x1d2cef(0x15e)])),_0x291806(this[_0x1d2cef(0x16c)],[[I]]);}[_0x1e3913(0x192)](){_0x291806(this['_injector'],[[m]]);}};B(b,_0x1e3913(0x1b0),_0x11c3ec['UNIVER_UNKNOWN']),B(b,'pluginName',Ye),b=We([_0x4fabc5(_0x55d200),F(0x1,_0x11722(_0x1a2c9d)),F(0x2,_0x3b5d57)],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 _0x677c62=_0x3808;(function(_0x57d1fc,_0xc70091){const _0x1475ea=_0x3808,_0x568fa7=_0x57d1fc();while(!![]){try{const _0x59a119=-parseInt(_0x1475ea(0x12b))/0x1+parseInt(_0x1475ea(0x127))/0x2*(parseInt(_0x1475ea(0x126))/0x3)+parseInt(_0x1475ea(0x162))/0x4*(parseInt(_0x1475ea(0x15a))/0x5)+-parseInt(_0x1475ea(0x106))/0x6+parseInt(_0x1475ea(0xed))/0x7+-parseInt(_0x1475ea(0xeb))/0x8*(-parseInt(_0x1475ea(0x134))/0x9)+-parseInt(_0x1475ea(0x188))/0xa*(-parseInt(_0x1475ea(0x13b))/0xb);if(_0x59a119===_0xc70091)break;else _0x568fa7['push'](_0x568fa7['shift']());}catch(_0x4031af){_0x568fa7['push'](_0x568fa7['shift']());}}}(_0xbfe4,0x52c7f));var J=Object[_0x677c62(0x169)],K=(_0x55687a,_0x5804c5,_0x161a4c)=>_0x5804c5 in _0x55687a?J(_0x55687a,_0x5804c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x161a4c}):_0x55687a[_0x5804c5]=_0x161a4c,u=(_0x5a4fcb,_0x187dea,_0x195a09)=>K(_0x5a4fcb,typeof _0x187dea!=_0x677c62(0x10e)?_0x187dea+'':_0x187dea,_0x195a09);import{Disposable as _0x2da4ee,toDisposable as _0x35bb2c,IUniverInstanceService as _0x462a13,Inject as _0x417a9f,Injector as _0x3b9c73,IConfigService as _0x290042,ICommandService as _0x394fbd,RxDisposable as _0x45ebde,UniverInstanceType as _0x59bb3d,DisposableCollection as _0x3103b8,CommandType as _0xd9ac1c,DependentOn as _0x165c63,Plugin as _0x2600c1,merge as _0x275afa,registerDependencies as _0x557937,mergeOverrideWithDependencies as _0x410c61,touchDependencies as _0x5aa4a8}from'@univerjs/core';import{useDependency as _0x8ff637,useObservable as _0x31a57b,IUIPartsService as _0x383d75,BuiltInUIPart as _0x4d48d8,connectInjector as _0x2e3eb5}from'@univerjs/ui';import{jsx as _0x1ba63a,jsxs as _0x499084,Fragment as _0x5e2a02}from'react/jsx-runtime';import{Dropdown as _0x390534,clsx as _0x56ce27,Button as _0x180649}from'@univerjs/design';import{useRef as _0x5debc3,createElement as _0x555d7a,forwardRef as _0x396100,useState as _0x15fd52,useEffect as _0x3ef286}from'react';function _0xbfe4(){const _0x414fc4=['children','idSuffix','_handleOperation','UNIVER_UNKNOWN','stopPresenting','default','ONLINE','onStarting','mutations','UNIVER_SHEET','onCommandExecuted','memberID','Stop\x20following','getUnitId','getTypeOfUnitAdded$','then','string','presenting','9645HpuqMt','current','univer-size-4','You\x27re\x20following\x20the\x20presenter','NEW_CHANGESETS','map','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','length','148mUUYlV','unsubscribe','LIVESHARE_FETCH_OPERATIONS','url(#$1','getValue','requireSession','_startLiveShareCoordinator','defineProperty','_commandService','send','getLiveShareCoordinatorSync','getCurrentTypeOfUnit$','init','set','Start\x20following','onRendered','override','shouldShareOperation','values','OFFLINE','delete','get','SAME_OPERATION_SHARE_INTERVAL','_unitID','mask','1em','status$','_presenter','reverse','_univerInstanceService','getLiveShareCoordinator','xlink:href','LiveShareIcon','svg','complete','HEADER_MENU','UniverIcon','_uiPartsService','170QkbSdM','next','_collabSessionService','You\x27are\x20offline.','dispose$','tag','includes','has','_commandDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','_beIdle','_configService','488sYpCWp','_stopPresenting','214382ByHKra','_reporters','stringify','_init','_startFollowing','LIVESHARE_NEW_HOST','_handleNewHost','dispose','pipe','_config','event$','evenodd','live-share-icon','_liveShareService','substring','data','NOT_FOLLOWING','following','startFollowing','text','path','LIVESHARE_TERMINATE','displayName','sheet','end','1227822ESyKSW','_mountLiveShare','_sharedOperations','univerjs-icon\x20univerjs-icon-','_handleTerminate','entries','parse','none','symbol','use','asObservable','replace','_startPresenting','setConfig','offline','_entities','toString','_injector','getTypeOfUnitDisposed$','disposeWithMe','getMemberID','currentColor','add','div','unitId','_status$','live-share.config','colorChannel1','FOLLOWING','from','operations','tryStartPresenting','3APhzQx','325594qEkxEO','PRESENTING','registerSharedOperation','type','60181SffTdi','LIVESHARE_REQUEST_HOST','_status','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_OPERATION','Start','idle','subscribe','not-following','8838OBorUQ','fill','pluginName','button','presenter','attrs','UNIVER_LIVE_SHARE_PLUGIN','180653bfrMQD','getStatus','_handleOffline','find','executeCommand','_stopFollowing','params','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','registerInitialStateReporter','_handleOnline','_handleNewChangeSets'];_0xbfe4=function(){return _0x414fc4;};return _0xbfe4();}import{CollaborationEvent as _0xce98bf,parseProtocolChangeset as _0x521a7f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2f8236,SessionStatus as _0xdd466f,UniverCollaborationClientPlugin as _0x2a81a9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3ecc17,SetWorksheetActiveOperation as _0x525cbd}from'@univerjs/sheets';import{BehaviorSubject as _0x5c595d,Subject as _0x39103d}from'rxjs';import{takeUntil as _0x25db84,throttleTime as _0x1d50d9}from'rxjs/operators';import{SetZoomRatioOperation as _0x490dee,SetScrollOperation as _0x446e48}from'@univerjs/sheets-ui';function k({ref:_0x1e31b7,..._0x48ed95}){const _0x6c75a2=_0x677c62,{icon:_0x189453,id:_0x226654,className:_0x35cc22,extend:_0x5bb3a1,..._0x2a1472}=_0x48ed95,_0x332fb2=(_0x6c75a2(0x109)+_0x226654+'\x20'+(_0x35cc22||''))['trim'](),_0x436f28=_0x5debc3('_'+Oe());return G(_0x189453,''+_0x226654,{'defIds':_0x189453['defIds'],'idSuffix':_0x436f28[_0x6c75a2(0x15b)]},{'ref':_0x1e31b7,'className':_0x332fb2,..._0x2a1472},_0x5bb3a1);}function G(_0x3bee38,_0xd2e421,_0x55bc48,_0x59b240,_0x2950cc){const _0x16ee50=_0x677c62;return _0x555d7a(_0x3bee38[_0x16ee50(0x18d)],{'key':_0xd2e421,...be(_0x3bee38,_0x55bc48,_0x2950cc),..._0x59b240},(Ee(_0x3bee38,_0x55bc48)['children']||[])[_0x16ee50(0x15f)]((_0x4d9faf,_0x28d194)=>G(_0x4d9faf,_0xd2e421+'-'+_0x3bee38['tag']+'-'+_0x28d194,_0x55bc48,void 0x0,_0x2950cc)));}function be(_0x4e786c,_0x2123f7,_0xabe97f){const _0x4047ac=_0x677c62,_0x122e94={..._0x4e786c[_0x4047ac(0x139)]};_0xabe97f!=null&&_0xabe97f[_0x4047ac(0x121)]&&_0x122e94[_0x4047ac(0x135)]==='colorChannel1'&&(_0x122e94[_0x4047ac(0x135)]=_0xabe97f['colorChannel1']),_0x4e786c[_0x4047ac(0x18d)]===_0x4047ac(0x17a)&&_0x122e94['id']&&(_0x122e94['id']=_0x122e94['id']+_0x2123f7[_0x4047ac(0x149)]),Object[_0x4047ac(0x10b)](_0x122e94)[_0x4047ac(0x192)](([_0x282326,_0x3c672c])=>{const _0x4a10ee=_0x4047ac;_0x282326===_0x4a10ee(0x17a)&&typeof _0x3c672c==_0x4a10ee(0x158)&&(_0x122e94[_0x282326]=_0x3c672c[_0x4a10ee(0x111)](/url\(#(.*)\)/,_0x4a10ee(0x165)+_0x2123f7['idSuffix']+')'));});const {defIds:_0x201e0b}=_0x2123f7;return!_0x201e0b||_0x201e0b[_0x4047ac(0x161)]===0x0||(_0x4e786c[_0x4047ac(0x18d)]===_0x4047ac(0x10f)&&_0x122e94[_0x4047ac(0x181)]&&(_0x122e94[_0x4047ac(0x181)]=_0x122e94[_0x4047ac(0x181)]+_0x2123f7['idSuffix']),Object['entries'](_0x122e94)[_0x4047ac(0x192)](([_0x25e0ee,_0x3a05ce])=>{const _0x5a9d80=_0x4047ac;typeof _0x3a05ce==_0x5a9d80(0x158)&&(_0x122e94[_0x25e0ee]=_0x3a05ce[_0x5a9d80(0x111)](/url\(#(.*)\)/,_0x5a9d80(0x165)+_0x2123f7[_0x5a9d80(0x149)]+')'));})),_0x122e94;}function Ee(_0x11da27,_0x3796e6){const _0xb22449=_0x677c62;var _0x3a62c1;const {defIds:_0xe78da0}=_0x3796e6;return!_0xe78da0||_0xe78da0['length']===0x0?_0x11da27:_0x11da27[_0xb22449(0x18d)]==='defs'&&((_0x3a62c1=_0x11da27['children'])!=null&&_0x3a62c1[_0xb22449(0x161)])?{..._0x11da27,'children':_0x11da27[_0xb22449(0x148)][_0xb22449(0x15f)](_0x58e46a=>typeof _0x58e46a[_0xb22449(0x139)]['id']==_0xb22449(0x158)&&_0xe78da0&&_0xe78da0[_0xb22449(0x18e)](_0x58e46a[_0xb22449(0x139)]['id'])?{..._0x58e46a,'attrs':{..._0x58e46a['attrs'],'id':_0x58e46a[_0xb22449(0x139)]['id']+_0x3796e6[_0xb22449(0x149)]}}:_0x58e46a)}:_0x11da27;}function Oe(){const _0x47cc51=_0x677c62;return Math['random']()[_0x47cc51(0x116)](0x24)[_0x47cc51(0xfb)](0x2,0x8);}k['displayName']=_0x677c62(0x186);const we={'tag':_0x677c62(0x183),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x677c62(0x10d),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x677c62(0x17b)},'children':[{'tag':_0x677c62(0x101),'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':_0x677c62(0x101),'attrs':{'fill':_0x677c62(0x11b),'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':_0x677c62(0xf8),'clipRule':_0x677c62(0xf8)}}]},W=_0x396100(function(_0x41b3c0,_0x291177){const _0x345734=_0x677c62;return _0x555d7a(k,Object['assign']({},_0x41b3c0,{'id':_0x345734(0xf9),'ref':_0x291177,'icon':we}));});W[_0x677c62(0x103)]=_0x677c62(0x182);class L extends _0x2da4ee{constructor(){const _0x437c96=_0x677c62;super(...arguments),u(this,_0x437c96(0x108),new Set()),u(this,_0x437c96(0xee),new Set());}[_0x677c62(0x129)](_0x397af7){const _0x458e1d=_0x677c62;return this[_0x458e1d(0x108)]['add'](_0x397af7),_0x35bb2c(()=>this[_0x458e1d(0x108)]['delete'](_0x397af7));}[_0x677c62(0x145)](_0x5ada77){const _0x55d330=_0x677c62;return this['_reporters'][_0x55d330(0x11c)](_0x5ada77),_0x35bb2c(()=>this[_0x55d330(0xee)][_0x55d330(0x176)](_0x5ada77));}[_0x677c62(0x173)](_0x542cbe){const _0x5c54a1=_0x677c62;return this[_0x5c54a1(0x108)]['has'](_0x542cbe);}['getInitialStates'](_0x29b050){const _0x4fde82=_0x677c62;return Array[_0x4fde82(0x123)](this['_reporters'])[_0x4fde82(0x15f)](_0x3722eb=>_0x3722eb(_0x29b050));}}var Ne=Object[_0x677c62(0x144)],Y=(_0x4f6fec,_0x4525bf,_0x5d2b69,_0x2dd585)=>{for(var _0x340b6b=_0x2dd585>0x1?void 0x0:_0x2dd585?Ne(_0x4525bf,_0x5d2b69):_0x4525bf,_0x1d45de=_0x4f6fec['length']-0x1,_0x53350c;_0x1d45de>=0x0;_0x1d45de--)(_0x53350c=_0x4f6fec[_0x1d45de])&&(_0x340b6b=_0x53350c(_0x340b6b)||_0x340b6b);return _0x340b6b;},_=(_0x34cc23,_0x2b527c)=>(_0x3e9db0,_0x20799b)=>_0x2b527c(_0x3e9db0,_0x20799b,_0x34cc23);let S=class extends _0x45ebde{constructor(_0x39ea48,_0x5194b0,_0xbcf7bb){const _0x3bafd4=_0x677c62;super(),u(this,_0x3bafd4(0x115),new Map()),(this[_0x3bafd4(0x17f)]=_0x39ea48,this[_0x3bafd4(0x117)]=_0x5194b0,this['_collabSessionService']=_0xbcf7bb,this[_0x3bafd4(0xf0)]());}async[_0x677c62(0x180)](_0x346913){const _0x1a147f=_0x677c62;return this[_0x1a147f(0x115)][_0x1a147f(0x18f)](_0x346913)||await this['_startLiveShareCoordinator'](_0x346913),this[_0x1a147f(0x115)][_0x1a147f(0x177)](_0x346913);}[_0x677c62(0x16c)](_0x4d5ed1){const _0x147d15=_0x677c62;var _0x60949c;return(_0x60949c=this[_0x147d15(0x115)][_0x147d15(0x177)](_0x4d5ed1))!=null?_0x60949c:null;}[_0x677c62(0xf0)](){const _0x3f67ff=_0x677c62;this[_0x3f67ff(0x17f)][_0x3f67ff(0x156)](_0x59bb3d[_0x3f67ff(0x151)])['pipe'](_0x25db84(this[_0x3f67ff(0x18c)]))[_0x3f67ff(0x132)](async _0x39fcd2=>{const _0x2ea1b8=_0x3f67ff,_0x315eef=_0x39fcd2[_0x2ea1b8(0x155)]();this[_0x2ea1b8(0x115)]['has'](_0x315eef)||this[_0x2ea1b8(0x168)](_0x315eef);}),this[_0x3f67ff(0x17f)][_0x3f67ff(0x118)](_0x59bb3d[_0x3f67ff(0x151)])['pipe'](_0x25db84(this[_0x3f67ff(0x18c)]))['subscribe'](_0x47611a=>{const _0x127c93=_0x3f67ff,_0x2d547a=_0x47611a[_0x127c93(0x155)](),_0x4a8625=this['_entities'][_0x127c93(0x177)](_0x2d547a);_0x4a8625==null||_0x4a8625[_0x127c93(0xf4)]();});}async[_0x677c62(0x168)](_0x3c88e8){const _0x419b24=_0x677c62,_0x5aa624=await this[_0x419b24(0x18a)][_0x419b24(0x167)](_0x3c88e8),_0x3736b4=this[_0x419b24(0x117)]['createInstance'](N,_0x3c88e8,_0x5aa624);return _0x3736b4[_0x419b24(0x16e)](),this['_entities'][_0x419b24(0x16f)](_0x3c88e8,_0x3736b4),_0x3736b4;}};S=Y([_(0x0,_0x462a13),_(0x1,_0x417a9f(_0x3b9c73)),_(0x2,_0x417a9f(_0x2f8236))],S);var c=(_0xc2aec2=>(_0xc2aec2[_0x677c62(0x175)]=_0x677c62(0x114),_0xc2aec2['IDLE']=_0x677c62(0x131),_0xc2aec2[_0x677c62(0x122)]=_0x677c62(0xfe),_0xc2aec2[_0x677c62(0xfd)]='not-following',_0xc2aec2[_0x677c62(0x128)]='presenting',_0xc2aec2))(c||{});function _0x3808(_0x54abed,_0x361f76){_0x54abed=_0x54abed-0xe9;const _0xbfe495=_0xbfe4();let _0x3808f4=_0xbfe495[_0x54abed];return _0x3808f4;}const Ce=_0x677c62(0x178),De=0xc8;let N=class extends _0x45ebde{constructor(_0x4287cd,_0x14022b,_0x50398e,_0x129c92,_0x1a3692){const _0x20be58=_0x677c62;super(),u(this,_0x20be58(0x11f),new _0x5c595d('idle')),u(this,_0x20be58(0x17c),this[_0x20be58(0x11f)][_0x20be58(0x110)]()),u(this,_0x20be58(0xf0),!0x1),u(this,_0x20be58(0x190),null),u(this,_0x20be58(0x17d),null),(this[_0x20be58(0x179)]=_0x4287cd,this[_0x20be58(0x142)]=_0x14022b,this['_configService']=_0x50398e,this[_0x20be58(0xfa)]=_0x129c92,this[_0x20be58(0x16a)]=_0x1a3692);}get[_0x677c62(0x12d)](){const _0x121cab=_0x677c62;return this[_0x121cab(0x11f)][_0x121cab(0x166)]();}['dispose'](){const _0x2e54ad=_0x677c62;var _0x2f6852;(_0x2f6852=this[_0x2e54ad(0x190)])==null||_0x2f6852[_0x2e54ad(0xf4)](),this[_0x2e54ad(0x11f)][_0x2e54ad(0x189)]('idle'),this['_status$'][_0x2e54ad(0x184)]();}[_0x677c62(0x13c)](){const _0x22797e=_0x677c62;return this[_0x22797e(0x12d)];}[_0x677c62(0x16e)](){const _0x58480e=_0x677c62;this[_0x58480e(0xf0)]||(this[_0x58480e(0xf0)]=!0x0,this[_0x58480e(0x142)]['sessionStatus$'][_0x58480e(0xf5)](_0x25db84(this[_0x58480e(0x18c)]))[_0x58480e(0x132)](_0x409c26=>{const _0x41d48c=_0x58480e;switch(_0x409c26){case _0xdd466f[_0x41d48c(0x175)]:this[_0x41d48c(0x13d)]();break;case _0xdd466f[_0x41d48c(0x14e)]:this[_0x41d48c(0x146)]();break;}}),this['_collabSession'][_0x58480e(0xf7)][_0x58480e(0xf5)](_0x25db84(this[_0x58480e(0x18c)]))[_0x58480e(0x132)](_0x1552f2=>{const _0x1fffc6=_0x58480e,{eventID:_0x488e51}=_0x1552f2;switch(_0x488e51){case _0xce98bf[_0x1fffc6(0xf2)]:this[_0x1fffc6(0xf3)](_0x1552f2);break;case _0xce98bf[_0x1fffc6(0x12f)]:this[_0x1fffc6(0x14a)](_0x1552f2);break;case _0xce98bf[_0x1fffc6(0x102)]:this[_0x1fffc6(0x10a)]();break;case _0xce98bf[_0x1fffc6(0x15e)]:this[_0x1fffc6(0x147)](_0x1552f2);break;}}));}[_0x677c62(0x125)](){const _0x58f653=_0x677c62;this[_0x58f653(0x142)]['send']({'eventID':_0xce98bf[_0x58f653(0x12c)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x58f653(0x11a)]()}},this[_0x58f653(0x179)]);}[_0x677c62(0x14c)](){const _0x4c85ab=_0x677c62;this['_status']===_0x4c85ab(0x159)&&(this[_0x4c85ab(0x11f)][_0x4c85ab(0x189)](_0x4c85ab(0x131)),this['_collabSession']['send']({'eventID':_0xce98bf[_0x4c85ab(0x102)],'data':{'unitID':this[_0x4c85ab(0x179)]}},this['_unitID']));}[_0x677c62(0xff)](){const _0x4cb936=_0x677c62;this[_0x4cb936(0x12d)]===_0x4cb936(0x133)&&(this[_0x4cb936(0x11f)][_0x4cb936(0x189)](_0x4cb936(0xfe)),this['_startFollowing']());}['stopFollowing'](){const _0x3dde90=_0x677c62;this['_status']==='following'&&this[_0x3dde90(0x140)]();}[_0x677c62(0xf3)](_0xf5c76a){const _0xaf302d=_0x677c62,{presenter:_0x231298}=_0xf5c76a[_0xaf302d(0xfc)],_0x33b77a=this['_collabSession'][_0xaf302d(0x11a)]();this[_0xaf302d(0x17d)]=_0x231298,_0x231298===_0x33b77a?(this[_0xaf302d(0x140)](),this[_0xaf302d(0x112)]()):this[_0xaf302d(0x12d)]!==_0xaf302d(0x133)&&(this['_stopPresenting'](),this[_0xaf302d(0xf1)]());}['_fetchOperations'](){const _0x174e38=_0x677c62,_0x5a0198={'eventID':_0xce98bf[_0x174e38(0x164)]};this[_0x174e38(0x142)][_0x174e38(0x16b)](_0x5a0198,this['_unitID']);}[_0x677c62(0x10a)](){const _0x2be791=_0x677c62;this['_presenter']=null,this[_0x2be791(0x12d)]!==_0x2be791(0x159)&&this['_beIdle']();}[_0x677c62(0x147)](_0x2321c2){const _0x105b2b=_0x677c62;if(this[_0x105b2b(0x12d)]===_0x105b2b(0xfe)&&this[_0x105b2b(0x17d)]===_0x2321c2['data'][_0x105b2b(0x153)]){const _0x157263=_0x521a7f(_0x2321c2[_0x105b2b(0xfc)])[_0x105b2b(0x150)][_0x105b2b(0x17e)]()[_0x105b2b(0x13e)](_0x20490f=>_0x20490f['id']===_0x3ecc17['id']);if(_0x157263){const _0x26c201=_0x157263['params'][_0x105b2b(0x11e)],_0x5eac64=_0x157263[_0x105b2b(0x141)][_0x105b2b(0x104)]['id'];setTimeout(()=>{const _0xa1f714=_0x105b2b;this[_0xa1f714(0x16a)]['executeCommand'](_0x525cbd['id'],{'unitId':_0x26c201,'subUnitId':_0x5eac64},{'fromCollab':!0x0});});}}}[_0x677c62(0x112)](){const _0x386fba=_0x677c62;this[_0x386fba(0x11f)]['next']('presenting');const _0x2486e9=new Map(),_0x4a5187=this['_commandDisposable']=new _0x3103b8();_0x4a5187[_0x386fba(0x11c)](_0x35bb2c(()=>{const _0x3a8350=_0x386fba;_0x2486e9[_0x3a8350(0x192)](_0x44b6ff=>_0x44b6ff[_0x3a8350(0x184)]()),_0x2486e9['clear']();})),_0x4a5187[_0x386fba(0x11c)](this[_0x386fba(0x16a)][_0x386fba(0x152)](_0x514924=>{const _0x478059=_0x386fba;var _0x34fecc;if(_0x514924[_0x478059(0x12a)]!==_0xd9ac1c['OPERATION']||!this[_0x478059(0xfa)][_0x478059(0x173)](_0x514924['id']))return;const {id:_0x461e20}=_0x514924;let _0x239974;_0x2486e9[_0x478059(0x18f)](_0x461e20)?_0x239974=_0x2486e9['get'](_0x461e20):(_0x239974=new _0x39103d(),_0x2486e9['set'](_0x461e20,_0x239974),_0x239974[_0x478059(0xf5)](_0x1d50d9((_0x34fecc=this[_0x478059(0xea)]['getConfig'](Ce))!=null?_0x34fecc:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x478059(0x132)](_0x5b2b75=>{const _0x15bbaf=_0x478059;this[_0x15bbaf(0x142)][_0x15bbaf(0x16b)]({'eventID':_0xce98bf['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x15bbaf(0x179)],'operations':{[_0x5b2b75['id']]:{'id':_0x5b2b75['id'],'params':JSON[_0x15bbaf(0xef)](_0x5b2b75['params'])}}}},this[_0x15bbaf(0x179)]);})),_0x239974[_0x478059(0x189)](_0x514924);})),this[_0x386fba(0xfa)]['getInitialStates'](this[_0x386fba(0x179)])[_0x386fba(0x192)](_0x579bf1=>this['_collabSession'][_0x386fba(0x16b)]({'eventID':_0xce98bf[_0x386fba(0x12f)],'data':{'unitID':this[_0x386fba(0x179)],'operations':{[_0x579bf1['id']]:{'id':_0x579bf1['id'],'params':JSON['stringify'](_0x579bf1['params'])}}}},this[_0x386fba(0x179)]));}[_0x677c62(0xec)](){const _0x784670=_0x677c62;var _0x102a01;this[_0x784670(0x11f)][_0x784670(0x189)](_0x784670(0x131)),(_0x102a01=this[_0x784670(0x190)])==null||_0x102a01[_0x784670(0xf4)](),this[_0x784670(0x190)]=null;}['_startFollowing'](){const _0x5e1a59=_0x677c62;var _0x18fbb1;(_0x18fbb1=this[_0x5e1a59(0x190)])==null||_0x18fbb1[_0x5e1a59(0xf4)](),this['_status$'][_0x5e1a59(0x189)]('following');}[_0x677c62(0xe9)](){const _0x3c9a60=_0x677c62;var _0x55da4c;this[_0x3c9a60(0x11f)][_0x3c9a60(0x189)](_0x3c9a60(0x131)),(_0x55da4c=this['_commandDisposable'])==null||_0x55da4c['dispose'](),this[_0x3c9a60(0x190)]=null;}[_0x677c62(0x140)](){const _0x3b2598=_0x677c62;var _0x47f79a;this['_status$'][_0x3b2598(0x189)](_0x3b2598(0x133)),(_0x47f79a=this[_0x3b2598(0x190)])==null||_0x47f79a[_0x3b2598(0xf4)]();}[_0x677c62(0x14a)](_0x53ae76){const _0x44e00f=_0x677c62;if([_0x44e00f(0x159),'not-following','offline']['includes'](this['_status'])||!_0x53ae76['data']['presenter']||_0x53ae76['data'][_0x44e00f(0x138)]===this[_0x44e00f(0x142)][_0x44e00f(0x11a)]())return;this['_status']===_0x44e00f(0x131)&&this[_0x44e00f(0xf1)]();const _0x273b61=_0x53ae76['data'][_0x44e00f(0x124)];Object[_0x44e00f(0x174)](_0x273b61)[_0x44e00f(0x192)](_0x210396=>{const _0x1f3a63=_0x44e00f;this[_0x1f3a63(0x16a)][_0x1f3a63(0x13f)](_0x210396['id'],_0x210396['params']?JSON[_0x1f3a63(0x10c)](_0x210396[_0x1f3a63(0x141)]):null,{'fromCollab':!0x0});});}[_0x677c62(0x13d)](){const _0x12dcad=_0x677c62;var _0x52e959;this['_status$'][_0x12dcad(0x189)]('offline'),(_0x52e959=this[_0x12dcad(0x190)])==null||_0x52e959[_0x12dcad(0xf4)]();}[_0x677c62(0x146)](){const _0x57b420=_0x677c62;this[_0x57b420(0x11f)][_0x57b420(0x189)](_0x57b420(0x131)),this['_fetchOperations']();}};N=Y([_(0x2,_0x290042),_(0x3,_0x417a9f(L)),_(0x4,_0x394fbd)],N);function Le(){const _0x1bab48=_0x677c62,_0x27fe9f=_0x8ff637(S),_0x5902fd=_0x8ff637(_0x462a13),_0x1e2452=_0x31a57b(()=>_0x5902fd[_0x1bab48(0x16d)](_0x59bb3d[_0x1bab48(0x151)]),void 0x0,!0x1,[]),[_0x5add20,_0x18d091]=_0x15fd52(null),[_0x1aecf7,_0x1be6fa]=_0x15fd52(c['IDLE']),_0x169071=_0x5debc3(null);return _0x3ef286(()=>(_0x1e2452&&_0x27fe9f[_0x1bab48(0x180)](_0x1e2452['getUnitId']())[_0x1bab48(0x157)](_0x4fdae2=>{const _0x223994=_0x1bab48;_0x18d091(_0x4fdae2),_0x169071['current']=_0x4fdae2[_0x223994(0x17c)]['subscribe'](_0x5b5613=>{_0x1be6fa(_0x5b5613);});}),()=>{const _0x23be3e=_0x1bab48;var _0x56f23f;(_0x56f23f=_0x169071[_0x23be3e(0x15b)])==null||_0x56f23f[_0x23be3e(0x163)](),_0x169071['current']=null;}),[_0x1e2452,_0x27fe9f]),_0x5add20?_0x1ba63a(_0x390534,{'align':_0x1bab48(0x105),'disabled':_0x1aecf7===c[_0x1bab48(0x175)],'className':_0x1bab48(0x160),'overlay':_0x1ba63a(Re,{'status':_0x1aecf7,'coordinator':_0x5add20}),'children':_0x1ba63a(_0x1bab48(0x137),{'className':_0x56ce27(_0x1bab48(0x12e),{'univer-cursor-not-allowed':_0x1aecf7===c[_0x1bab48(0x175)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1aecf7!==c[_0x1bab48(0x175)]}),'type':_0x1bab48(0x137),'children':_0x1ba63a(W,{'className':_0x1bab48(0x15c)})})}):null;}function Re(_0x4c5826){const _0x278480=_0x677c62,{status:_0x231f23,coordinator:_0x35b071}=_0x4c5826;switch(_0x231f23){case c['IDLE']:return _0x1ba63a($e,{'coordinator':_0x35b071});case c[_0x278480(0x122)]:return _0x1ba63a(xe,{'coordinator':_0x35b071});case c[_0x278480(0xfd)]:return _0x1ba63a(Pe,{'coordinator':_0x35b071});case c['OFFLINE']:return _0x1ba63a(Te,{});case c['PRESENTING']:return _0x1ba63a(Ae,{'coordinator':_0x35b071});default:return null;}}function $e(_0x5f3fb7){const _0x1d8140=_0x677c62,{coordinator:_0x3c5e8a}=_0x5f3fb7;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x1d8140(0x11d),{'className':_0x1d8140(0x191),'children':'Present\x20this\x20document'}),_0x1ba63a(_0x180649,{'onClick':()=>_0x3c5e8a[_0x1d8140(0x125)](),'children':_0x1d8140(0x130)})]});}function xe(_0x47f3d6){const _0x2c17f7=_0x677c62,{coordinator:_0x5c621d}=_0x47f3d6;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x2c17f7(0x11d),{'className':_0x2c17f7(0x191),'children':_0x2c17f7(0x15d)}),_0x1ba63a(_0x180649,{'onClick':()=>_0x5c621d['stopFollowing'](),'children':_0x2c17f7(0x154)})]});}function Pe(_0x801605){const _0x5b93c6=_0x677c62,{coordinator:_0x56afb6}=_0x801605;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x5b93c6(0x11d),{'className':_0x5b93c6(0x191),'children':_0x5b93c6(0x143)}),_0x1ba63a(_0x180649,{'variant':_0x5b93c6(0x100),'onClick':()=>_0x56afb6['startFollowing'](),'children':_0x5b93c6(0x170)})]});}function Ae(_0x361e8c){const _0x37c70a=_0x677c62,{coordinator:_0x58f302}=_0x361e8c;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x37c70a(0x11d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x1ba63a(_0x180649,{'variant':_0x37c70a(0x14d),'onClick':()=>_0x58f302['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3cf1ce=_0x677c62;return _0x1ba63a(_0x5e2a02,{'children':_0x3cf1ce(0x18b)});}var Fe=Object[_0x677c62(0x144)],He=(_0x514d62,_0x4c100f,_0x56753e,_0x53ecca)=>{const _0xc550b3=_0x677c62;for(var _0x36d3de=_0x53ecca>0x1?void 0x0:_0x53ecca?Fe(_0x4c100f,_0x56753e):_0x4c100f,_0x136886=_0x514d62[_0xc550b3(0x161)]-0x1,_0x20ec51;_0x136886>=0x0;_0x136886--)(_0x20ec51=_0x514d62[_0x136886])&&(_0x36d3de=_0x20ec51(_0x36d3de)||_0x36d3de);return _0x36d3de;},A=(_0x1e8fd0,_0x52ab63)=>(_0x4b2ada,_0x54faf5)=>_0x52ab63(_0x4b2ada,_0x54faf5,_0x1e8fd0);let m=class extends _0x2da4ee{constructor(_0x2ca09e,_0x54031a){const _0x5029e5=_0x677c62;super(),this['_injector']=_0x2ca09e,this[_0x5029e5(0x187)]=_0x54031a,this[_0x5029e5(0x107)]();}[_0x677c62(0x107)](){const _0x5eaebc=_0x677c62;this[_0x5eaebc(0x119)](this[_0x5eaebc(0x187)]['registerComponent'](_0x4d48d8[_0x5eaebc(0x185)],()=>_0x2e3eb5(Le,this[_0x5eaebc(0x117)])));}};m=He([A(0x0,_0x417a9f(_0x3b9c73)),A(0x1,_0x383d75)],m);const ye=_0x677c62(0x120),T={};var Ue=Object[_0x677c62(0x144)],Ve=(_0x3d3ea9,_0x472bf4,_0x143834,_0x2f6015)=>{const _0x436ada=_0x677c62;for(var _0x2f890a=_0x2f6015>0x1?void 0x0:_0x2f6015?Ue(_0x472bf4,_0x143834):_0x472bf4,_0x465d19=_0x3d3ea9[_0x436ada(0x161)]-0x1,_0x31c12f;_0x465d19>=0x0;_0x465d19--)(_0x31c12f=_0x3d3ea9[_0x465d19])&&(_0x2f890a=_0x31c12f(_0x2f890a)||_0x2f890a);return _0x2f890a;},je=(_0x38b2b1,_0x2e5e3a)=>(_0x515d43,_0x7bd3f9)=>_0x2e5e3a(_0x515d43,_0x7bd3f9,_0x38b2b1);let I=class extends _0x2da4ee{constructor(_0x4986ba){const _0x2e3600=_0x677c62;super(),this['_liveShareService']=_0x4986ba,this[_0x2e3600(0xf0)]();}[_0x677c62(0xf0)](){const _0x5aa2f8=_0x677c62;[_0x490dee['id'],_0x446e48['id'],_0x525cbd['id']][_0x5aa2f8(0x192)](_0x12b891=>{const _0x8ba955=_0x5aa2f8;this[_0x8ba955(0x119)](this['_liveShareService'][_0x8ba955(0x129)](_0x12b891));});}};I=Ve([je(0x0,_0x417a9f(L))],I);var Me=Object[_0x677c62(0x169)],ke=Object[_0x677c62(0x144)],Ge=(_0x5e418f,_0x4115a1,_0x1f93c6)=>_0x4115a1 in _0x5e418f?Me(_0x5e418f,_0x4115a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f93c6}):_0x5e418f[_0x4115a1]=_0x1f93c6,We=(_0x5c8fc9,_0x5ef787,_0x2e3b1a,_0x307e46)=>{const _0x1b1ff6=_0x677c62;for(var _0x289e74=_0x307e46>0x1?void 0x0:_0x307e46?ke(_0x5ef787,_0x2e3b1a):_0x5ef787,_0x5dd4bd=_0x5c8fc9[_0x1b1ff6(0x161)]-0x1,_0x25f818;_0x5dd4bd>=0x0;_0x5dd4bd--)(_0x25f818=_0x5c8fc9[_0x5dd4bd])&&(_0x289e74=_0x25f818(_0x289e74)||_0x289e74);return _0x289e74;},F=(_0x242f12,_0x4f84a5)=>(_0x4e3d4e,_0x1e2fd4)=>_0x4f84a5(_0x4e3d4e,_0x1e2fd4,_0x242f12),B=(_0x4c5f46,_0x4c15ab,_0x400464)=>Ge(_0x4c5f46,typeof _0x4c15ab!=_0x677c62(0x10e)?_0x4c15ab+'':_0x4c15ab,_0x400464);const Ye=_0x677c62(0x13a);let b=class extends _0x2600c1{constructor(_0x2898ca=T,_0x3a688e,_0x226322){const _0x2d738f=_0x677c62;super(),this[_0x2d738f(0xf6)]=_0x2898ca,this[_0x2d738f(0x117)]=_0x3a688e,this['_configService']=_0x226322;const {..._0x4458c1}=_0x275afa({},T,this[_0x2d738f(0xf6)]);this[_0x2d738f(0xea)][_0x2d738f(0x113)](ye,_0x4458c1);}[_0x677c62(0x14f)](){const _0x15cdb2=_0x677c62;_0x557937(this[_0x15cdb2(0x117)],_0x410c61([[L],[S],[I],[m]],this[_0x15cdb2(0xf6)][_0x15cdb2(0x172)])),_0x5aa4a8(this[_0x15cdb2(0x117)],[[I]]);}[_0x677c62(0x171)](){const _0x2a6351=_0x677c62;_0x5aa4a8(this[_0x2a6351(0x117)],[[m]]);}};B(b,_0x677c62(0x12a),_0x59bb3d[_0x677c62(0x14b)]),B(b,_0x677c62(0x136),Ye),b=We([_0x165c63(_0x2a81a9),F(0x1,_0x417a9f(_0x3b9c73)),F(0x2,_0x290042)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25ef6e,_0x1c13cf){const _0x8201a6=_0x39ee,_0x58270f=_0x25ef6e();while(!![]){try{const _0x59750d=-parseInt(_0x8201a6(0x1b5))/0x1+parseInt(_0x8201a6(0x1aa))/0x2*(-parseInt(_0x8201a6(0x1ad))/0x3)+parseInt(_0x8201a6(0x1be))/0x4+-parseInt(_0x8201a6(0x1b2))/0x5+-parseInt(_0x8201a6(0x19a))/0x6+parseInt(_0x8201a6(0x1b0))/0x7+parseInt(_0x8201a6(0x1a0))/0x8*(parseInt(_0x8201a6(0x18f))/0x9);if(_0x59750d===_0x1c13cf)break;else _0x58270f['push'](_0x58270f['shift']());}catch(_0x22e90c){_0x58270f['push'](_0x58270f['shift']());}}}(_0x5813,0xddbf8),function(_0x3d908c,_0x52137e){const _0x339dd6=_0x39ee;typeof exports==_0x339dd6(0x1b8)&&typeof module<'u'?_0x52137e(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[_0x339dd6(0x1a3)]?define([_0x339dd6(0x1a6),_0x339dd6(0x192),_0x339dd6(0x1bf),_0x339dd6(0x1a5),'@univerjs/sheets/facade',_0x339dd6(0x1ac)],_0x52137e):(_0x3d908c=typeof globalThis<'u'?globalThis:_0x3d908c||self,_0x52137e(_0x3d908c[_0x339dd6(0x191)],_0x3d908c[_0x339dd6(0x1ba)],_0x3d908c['UniverSheets'],_0x3d908c['UniverSheetsUi'],_0x3d908c[_0x339dd6(0x1b7)],_0x3d908c[_0x339dd6(0x19c)]));}(this,function(_0x3e892e,_0xe0bb41,_0x2bba6d,_0x76aeda,_0x1a4c0a,_0x96d79e){'use strict';const _0x31611e=_0x39ee;class _0xf05a7a extends _0x1a4c0a[_0x31611e(0x1a7)]{['_initialize'](_0x263a67,_0x2360ea,_0x77d4c6,_0x121fde,_0x5b1731){const _0x241496=_0x31611e,_0x195309=_0x263a67[_0x241496(0x19b)](_0x3e892e[_0x241496(0x197)]),_0x1d2237=_0x263a67['get'](_0xe0bb41['IRenderManagerService']),_0x3fa941=_0x2360ea['getUnitId'](),_0x535d57=_0x2360ea[_0x241496(0x1a4)](),_0x399383=_0x195309['getLiveShareCoordinatorSync'](_0x3fa941);(_0x399383==null?void 0x0:_0x399383[_0x241496(0x1af)]())!==_0x3e892e[_0x241496(0x194)]['PRESENTING']||(_0x77d4c6[_0x241496(0x1b1)]()!==_0x535d57[_0x241496(0x1b1)]()&&this[_0x241496(0x1ae)][_0x241496(0x199)](_0x2bba6d[_0x241496(0x1bb)]['id'],{'unitId':_0x3fa941,'subUnitId':_0x77d4c6['getSheetId']()}),!_0x1d2237['getRenderById'](_0x3fa941))||_0x5b1731[_0x241496(0x1b4)](_0x76aeda['SetScrollOperation']['id'],{'unitId':_0x2360ea[_0x241496(0x198)](),'sheetId':_0x77d4c6['getSheetId'](),'sheetViewStartRow':_0x121fde[_0x241496(0x1c1)],'sheetViewStartColumn':_0x121fde[_0x241496(0x1a8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1a4c0a[_0x31611e(0x1a7)]['extend'](_0xf05a7a);class _0x5cb8ea extends _0x96d79e[_0x31611e(0x19d)]{[_0x31611e(0x193)](){const _0x5388f9=_0x31611e;var _0x1f4c69,_0x1dfd20;const _0x41c215=this[_0x5388f9(0x1b9)][_0x5388f9(0x19b)](_0x3e892e[_0x5388f9(0x197)]),_0x2385f9=(_0x1f4c69=this[_0x5388f9(0x1b3)]())==null?void 0x0:_0x1f4c69[_0x5388f9(0x1bc)]();if(!_0x2385f9)throw new Error(_0x5388f9(0x1b6));const _0x10170f=_0x41c215['getLiveShareCoordinatorSync'](_0x2385f9);return(_0x1dfd20=_0x10170f==null?void 0x0:_0x10170f[_0x5388f9(0x1af)]())!=null?_0x1dfd20:_0x3e892e[_0x5388f9(0x194)][_0x5388f9(0x1c0)];}['startFollowing'](){const _0x31429f=_0x31611e;var _0x546937;const _0x3685af=this[_0x31429f(0x1b9)][_0x31429f(0x19b)](_0x3e892e[_0x31429f(0x197)]),_0x57f7c4=(_0x546937=this[_0x31429f(0x1b3)]())==null?void 0x0:_0x546937['getId']();if(!_0x57f7c4)throw new Error(_0x31429f(0x1b6));const _0xebdef9=_0x3685af[_0x31429f(0x190)](_0x57f7c4);if(!_0xebdef9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xebdef9[_0x31429f(0x19e)]();}[_0x31611e(0x196)](){const _0x3a5149=_0x31611e;var _0x45aebf;const _0x605034=this[_0x3a5149(0x1b9)]['get'](_0x3e892e[_0x3a5149(0x197)]),_0x5cd1ad=(_0x45aebf=this['getActiveWorkbook']())==null?void 0x0:_0x45aebf['getId']();if(!_0x5cd1ad)throw new Error(_0x3a5149(0x1b6));const _0x54be36=_0x605034[_0x3a5149(0x190)](_0x5cd1ad);if(!_0x54be36)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54be36['stopFollowing']();}[_0x31611e(0x195)](){const _0xf1f806=_0x31611e;var _0x4b44c7;const _0x5eb7f7=this['_injector']['get'](_0x3e892e['LiveShareController']),_0x488f2f=(_0x4b44c7=this[_0xf1f806(0x1b3)]())==null?void 0x0:_0x4b44c7['getId']();if(!_0x488f2f)throw new Error(_0xf1f806(0x1b6));const _0x2279d2=_0x5eb7f7[_0xf1f806(0x190)](_0x488f2f);if(!_0x2279d2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2279d2[_0xf1f806(0x1a9)]();}['stopPresenting'](){const _0x419322=_0x31611e;var _0x25d9d5;const _0xdcf761=this[_0x419322(0x1b9)]['get'](_0x3e892e[_0x419322(0x197)]),_0x4c6950=(_0x25d9d5=this['getActiveWorkbook']())==null?void 0x0:_0x25d9d5[_0x419322(0x1bc)]();if(!_0x4c6950)throw new Error(_0x419322(0x1b6));const _0x55c5c7=_0xdcf761[_0x419322(0x190)](_0x4c6950);if(!_0x55c5c7)throw new Error(_0x419322(0x1bd));_0x55c5c7[_0x419322(0x1a2)]();}}_0x96d79e[_0x31611e(0x19d)][_0x31611e(0x1ab)](_0x5cb8ea);class _0x137889 extends _0x96d79e[_0x31611e(0x1a1)]{get[_0x31611e(0x19f)](){const _0x5cdc82=_0x31611e;return _0x3e892e[_0x5cdc82(0x194)];}}_0x96d79e[_0x31611e(0x1a1)][_0x31611e(0x1ab)](_0x137889);}));function _0x39ee(_0x190a74,_0x1388cb){_0x190a74=_0x190a74-0x18f;const _0x58132b=_0x5813();let _0x39ee12=_0x58132b[_0x190a74];return _0x39ee12;}function _0x5813(){const _0x18e618=['startFollowing','LiveShareStatusEnum','30187952RHVbNn','FEnum','stopPresenting','amd','getActiveSheet','@univerjs/sheets-ui','@univerjs-pro/live-share','FRange','startColumn','tryStartPresenting','466258XkMkKz','extend','@univerjs/core/facade','3WNZhFg','_commandService','getStatus','4281564fhDfsX','getSheetId','1646330gEUZVC','getActiveWorkbook','syncExecuteCommand','1398991FLDmtv','No\x20active\x20workbook\x20found.','UniverSheetsFacade','object','_injector','UniverEngineRender','SetWorksheetActiveOperation','getId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','567792vTTRFw','@univerjs/sheets','IDLE','startRow','9qOjrOZ','getLiveShareCoordinatorSync','UniverProLiveShare','@univerjs/engine-render','getLiveShareStatus','LiveShareStatus','startPresenting','stopFollowing','LiveShareController','getUnitId','executeCommand','9944568flbjUQ','get','UniverCoreFacade','FUniver'];_0x5813=function(){return _0x18e618;};return _0x5813();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xee45(_0x3c299f,_0x479211){_0x3c299f=_0x3c299f-0x152;const _0x4e0a75=_0x4e0a();let _0xee453e=_0x4e0a75[_0x3c299f];return _0xee453e;}function _0x4e0a(){const _0x4556bb=['mask','random','OFFLINE','IUniverInstanceService','getLiveShareCoordinatorSync','live-share.config','requireSession','26jeCSMh','NEW_CHANGESETS','assign','url(#$1','toString','UniverCore','shouldShareOperation','getUnitId','987049VWypSZ','complete','Fragment','forwardRef','object','_config','_configService','DisposableCollection','_init','pluginName','_commandService','Disposable','_startLiveShareCoordinator','LiveShareIcon','Dropdown','set','executeCommand','unitId','touchDependencies','getStatus','tag','jsx','none','includes','Inject','startFollowing','defineProperty','parse','Start','CommandType','data','dispose','_injector','parseProtocolChangeset','sheet','_sharedOperations','memberID','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','send','UniverProCollaborationClient','_handleOperation','status$','UniverDesign','UniverSheets','UniverLiveSharePlugin','_stopFollowing','_status$','stopPresenting','jsxs','mutations','react','asObservable','getLiveShareCoordinator','useObservable','defIds','event$','0\x200\x2017\x2017','connectInjector','DependentOn','stringify','defs','NOT_FOLLOWING','rxjs','Injector','values','54MpVXOv','ICommandService','unsubscribe','LiveShareStatus','Start\x20following','registerInitialStateReporter','_unitID','getConfig','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','forEach','LIVESHARE_OPERATION','current','32659XFZgcV','SetScrollOperation','_commandDisposable','function','univer-size-4','IUIPartsService','button','_mountLiveShare','operators','LIVESHARE_NEW_HOST','_uiPartsService','default','FOLLOWING','merge','next','exports','sessionStatus$','takeUntil','string','delete','ONLINE','436XqjFcu','amd','UniverIcon','has','pipe','UniverSheetsUi','DesktopLiveShareController','evenodd','SetWorksheetActiveOperation','_handleOffline','following','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','reverse','You\x27re\x20following\x20the\x20presenter','dispose$','attrs','IConfigService','1lXXlsM','_handleNewChangeSets','_status','UniverCollaborationClientPlugin','add','_entities','You\x27are\x20offline.','getTypeOfUnitDisposed$','_collabSessionService','343126PGFXFc','PRESENTING','UniverUi','@univerjs/core','_univerInstanceService','Subject','offline','22315Lhfznp','entries','_reporters','presenting','currentColor','LiveShareController','getOwnPropertyDescriptor','_fetchOperations','idle','3055680BdgAYa','LIVESHARE_FETCH_OPERATIONS','tryStartPresenting','toStringTag','@univerjs/sheets-ui','disposeWithMe','getInitialStates','_handleTerminate','rxjs/operators','not-following','end','_startPresenting','length','text','getValue','BuiltInUIPart','HEADER_MENU','symbol','_handleOnline','univerjs-icon\x20univerjs-icon-','IDLE','getMemberID','live-share-icon','5981772zoYLXv','BehaviorSubject','useRef','CollaborationEvent','_handleNewHost','_liveShareService','_collabSession','children','LIVESHARE_REQUEST_HOST','@univerjs-pro/collaboration','registerSharedOperation','useDependency','path','useState','replace','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','3834LvEANR','RxDisposable','_startFollowing','6616QFdQCn','LiveShareCoordinator','trim','stopFollowing','colorChannel1','4310VAxBYJ','toDisposable','params','UNIVER_UNKNOWN','Button','Stop\x20presenting','useEffect','presenter','SAME_OPERATION_SHARE_INTERVAL','UniverInstanceType','createElement','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','CollaborationSessionService','createInstance','_stopPresenting','fill','displayName','substring','1em','throttleTime','init','div','map','React','subscribe','idSuffix','xlink:href','Module','_presenter','SessionStatus','UNIVER_SHEET','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','LiveShareService','clear','clsx','then'];_0x4e0a=function(){return _0x4556bb;};return _0x4e0a();}(function(_0x13b9fa,_0x5c7e6b){const _0x2b43cb=_0xee45,_0x33bf0e=_0x13b9fa();while(!![]){try{const _0x1920ce=-parseInt(_0x2b43cb(0x190))/0x1*(parseInt(_0x2b43cb(0x199))/0x2)+parseInt(_0x2b43cb(0x1a9))/0x3+parseInt(_0x2b43cb(0x17f))/0x4*(parseInt(_0x2b43cb(0x1a0))/0x5)+parseInt(_0x2b43cb(0x15d))/0x6*(parseInt(_0x2b43cb(0x20c))/0x7)+-parseInt(_0x2b43cb(0x1d3))/0x8*(-parseInt(_0x2b43cb(0x1d0))/0x9)+-parseInt(_0x2b43cb(0x1d8))/0xa*(parseInt(_0x2b43cb(0x16a))/0xb)+parseInt(_0x2b43cb(0x1c0))/0xc*(-parseInt(_0x2b43cb(0x204))/0xd);if(_0x1920ce===_0x5c7e6b)break;else _0x33bf0e['push'](_0x33bf0e['shift']());}catch(_0xacdb3f){_0x33bf0e['push'](_0x33bf0e['shift']());}}}(_0x4e0a,0xa5954),function(_0xba649d,_0x11ef3c){const _0x219a3d=_0xee45;typeof exports==_0x219a3d(0x210)&&typeof module<'u'?_0x11ef3c(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==_0x219a3d(0x16d)&&define[_0x219a3d(0x180)]?define([_0x219a3d(0x179),_0x219a3d(0x19c),'@univerjs/ui','react/jsx-runtime','@univerjs/design',_0x219a3d(0x23e),_0x219a3d(0x1c9),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0x219a3d(0x15a),_0x219a3d(0x1b1),_0x219a3d(0x1ad)],_0x11ef3c):(_0xba649d=typeof globalThis<'u'?globalThis:_0xba649d||self,_0x11ef3c(_0xba649d['UniverProLiveShare']={},_0xba649d[_0x219a3d(0x209)],_0xba649d[_0x219a3d(0x19b)],_0xba649d[_0x219a3d(0x1f0)],_0xba649d[_0x219a3d(0x236)],_0xba649d[_0x219a3d(0x1f0)],_0xba649d['UniverProCollaboration'],_0xba649d[_0x219a3d(0x233)],_0xba649d[_0x219a3d(0x237)],_0xba649d['rxjs'],_0xba649d['rxjs'][_0x219a3d(0x172)],_0xba649d[_0x219a3d(0x184)]));}(this,function(_0x2b0f0b,_0x2f615a,_0x3ae219,_0x3b62fe,_0x32bb48,_0x5b9823,_0xb0523b,_0x323a89,_0x59b683,_0x3d526d,_0x28078d,_0xa471c7){'use strict';const _0x35dcb6=_0xee45;var _0x5b8445=Object['defineProperty'],_0x530788=(_0x2725e9,_0x55efd6,_0x4b19cc)=>_0x55efd6 in _0x2725e9?_0x5b8445(_0x2725e9,_0x55efd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b19cc}):_0x2725e9[_0x55efd6]=_0x4b19cc,_0xcc9f12=(_0x2ba3c5,_0x52ad0a,_0x326950)=>_0x530788(_0x2ba3c5,typeof _0x52ad0a!=_0x35dcb6(0x1ba)?_0x52ad0a+'':_0x52ad0a,_0x326950);function _0x593770({ref:_0x43f93b,..._0x1c27e3}){const _0x24e547=_0x35dcb6,{icon:_0x28361c,id:_0x1676ad,className:_0x6d1c24,extend:_0x3acec9,..._0x557650}=_0x1c27e3,_0x209ea7=(_0x24e547(0x1bc)+_0x1676ad+'\x20'+(_0x6d1c24||''))[_0x24e547(0x1d5)](),_0x295418=_0x5b9823[_0x24e547(0x1c2)]('_'+_0x42a89d());return _0x1e6c3e(_0x28361c,''+_0x1676ad,{'defIds':_0x28361c[_0x24e547(0x152)],'idSuffix':_0x295418[_0x24e547(0x169)]},{'ref':_0x43f93b,'className':_0x209ea7,..._0x557650},_0x3acec9);}function _0x1e6c3e(_0x58aabc,_0x3640ec,_0x23cf9c,_0x166ce1,_0x3493c8){const _0x3de042=_0x35dcb6;return _0x5b9823[_0x3de042(0x1e2)](_0x58aabc[_0x3de042(0x220)],{'key':_0x3640ec,..._0x5828a6(_0x58aabc,_0x23cf9c,_0x3493c8),..._0x166ce1},(_0x642d1(_0x58aabc,_0x23cf9c)[_0x3de042(0x1c7)]||[])[_0x3de042(0x1ef)]((_0x2ec7dd,_0x3d10ef)=>_0x1e6c3e(_0x2ec7dd,_0x3640ec+'-'+_0x58aabc['tag']+'-'+_0x3d10ef,_0x23cf9c,void 0x0,_0x3493c8)));}function _0x5828a6(_0x2abe0e,_0x1070b5,_0x69daf9){const _0x416168=_0x35dcb6,_0x49996a={..._0x2abe0e['attrs']};_0x69daf9!=null&&_0x69daf9['colorChannel1']&&_0x49996a['fill']===_0x416168(0x1d7)&&(_0x49996a[_0x416168(0x1e8)]=_0x69daf9[_0x416168(0x1d7)]),_0x2abe0e[_0x416168(0x220)]==='mask'&&_0x49996a['id']&&(_0x49996a['id']=_0x49996a['id']+_0x1070b5[_0x416168(0x1f2)]),Object[_0x416168(0x1a1)](_0x49996a)[_0x416168(0x167)](([_0x5babaf,_0x481322])=>{const _0x3660da=_0x416168;_0x5babaf===_0x3660da(0x1fd)&&typeof _0x481322==_0x3660da(0x17c)&&(_0x49996a[_0x5babaf]=_0x481322[_0x3660da(0x1ce)](/url\(#(.*)\)/,_0x3660da(0x207)+_0x1070b5['idSuffix']+')'));});const {defIds:_0x4ce32a}=_0x1070b5;return!_0x4ce32a||_0x4ce32a[_0x416168(0x1b5)]===0x0||(_0x2abe0e[_0x416168(0x220)]==='use'&&_0x49996a[_0x416168(0x1f3)]&&(_0x49996a[_0x416168(0x1f3)]=_0x49996a[_0x416168(0x1f3)]+_0x1070b5[_0x416168(0x1f2)]),Object[_0x416168(0x1a1)](_0x49996a)[_0x416168(0x167)](([_0x478a15,_0x1b804f])=>{const _0x3f435e=_0x416168;typeof _0x1b804f==_0x3f435e(0x17c)&&(_0x49996a[_0x478a15]=_0x1b804f['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1070b5[_0x3f435e(0x1f2)]+')'));})),_0x49996a;}function _0x642d1(_0xf58643,_0x4873b8){const _0x1591e2=_0x35dcb6;var _0x2f03c3;const {defIds:_0x3b21c2}=_0x4873b8;return!_0x3b21c2||_0x3b21c2[_0x1591e2(0x1b5)]===0x0?_0xf58643:_0xf58643['tag']===_0x1591e2(0x158)&&((_0x2f03c3=_0xf58643[_0x1591e2(0x1c7)])!=null&&_0x2f03c3[_0x1591e2(0x1b5)])?{..._0xf58643,'children':_0xf58643[_0x1591e2(0x1c7)]['map'](_0x5f50fb=>typeof _0x5f50fb[_0x1591e2(0x18e)]['id']==_0x1591e2(0x17c)&&_0x3b21c2&&_0x3b21c2[_0x1591e2(0x223)](_0x5f50fb[_0x1591e2(0x18e)]['id'])?{..._0x5f50fb,'attrs':{..._0x5f50fb[_0x1591e2(0x18e)],'id':_0x5f50fb[_0x1591e2(0x18e)]['id']+_0x4873b8[_0x1591e2(0x1f2)]}}:_0x5f50fb)}:_0xf58643;}function _0x42a89d(){const _0x27c997=_0x35dcb6;return Math[_0x27c997(0x1fe)]()[_0x27c997(0x208)](0x24)[_0x27c997(0x1ea)](0x2,0x8);}_0x593770[_0x35dcb6(0x1e9)]=_0x35dcb6(0x181);const _0x41e88d={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x35dcb6(0x222),'viewBox':_0x35dcb6(0x154),'width':_0x35dcb6(0x1eb),'height':_0x35dcb6(0x1eb)},'children':[{'tag':_0x35dcb6(0x1cc),'attrs':{'fill':_0x35dcb6(0x1a4),'d':_0x35dcb6(0x18a)}},{'tag':_0x35dcb6(0x1cc),'attrs':{'fill':_0x35dcb6(0x1a4),'d':_0x35dcb6(0x1f8),'fillRule':'evenodd','clipRule':_0x35dcb6(0x186)}}]},_0x141193=_0x5b9823[_0x35dcb6(0x20f)](function(_0x38eb45,_0x1eeea6){const _0x1ad3d8=_0x35dcb6;return _0x5b9823[_0x1ad3d8(0x1e2)](_0x593770,Object[_0x1ad3d8(0x206)]({},_0x38eb45,{'id':_0x1ad3d8(0x1bf),'ref':_0x1eeea6,'icon':_0x41e88d}));});_0x141193[_0x35dcb6(0x1e9)]=_0x35dcb6(0x219);class _0x655815 extends _0x2f615a[_0x35dcb6(0x217)]{constructor(){super(...arguments),_0xcc9f12(this,'_sharedOperations',new Set()),_0xcc9f12(this,'_reporters',new Set());}[_0x35dcb6(0x1ca)](_0x207b4f){const _0x426316=_0x35dcb6;return this[_0x426316(0x22f)][_0x426316(0x194)](_0x207b4f),_0x2f615a[_0x426316(0x1d9)](()=>this[_0x426316(0x22f)]['delete'](_0x207b4f));}[_0x35dcb6(0x162)](_0x1a0dd6){const _0x19ed3c=_0x35dcb6;return this[_0x19ed3c(0x1a2)][_0x19ed3c(0x194)](_0x1a0dd6),_0x2f615a[_0x19ed3c(0x1d9)](()=>this['_reporters'][_0x19ed3c(0x17d)](_0x1a0dd6));}['shouldShareOperation'](_0x412467){const _0x298327=_0x35dcb6;return this[_0x298327(0x22f)][_0x298327(0x182)](_0x412467);}[_0x35dcb6(0x1af)](_0x2f878a){return Array['from'](this['_reporters'])['map'](_0x24fe12=>_0x24fe12(_0x2f878a));}}var _0x581969=Object[_0x35dcb6(0x1a6)],_0x5372b2=(_0x5a8b73,_0x432164,_0x40c95e,_0x2280b8)=>{for(var _0x5d419f=_0x2280b8>0x1?void 0x0:_0x2280b8?_0x581969(_0x432164,_0x40c95e):_0x432164,_0x55c348=_0x5a8b73['length']-0x1,_0x369d10;_0x55c348>=0x0;_0x55c348--)(_0x369d10=_0x5a8b73[_0x55c348])&&(_0x5d419f=_0x369d10(_0x5d419f)||_0x5d419f);return _0x5d419f;},_0x3fac65=(_0x4da8e6,_0x31d561)=>(_0x1c36c3,_0x1a822b)=>_0x31d561(_0x1c36c3,_0x1a822b,_0x4da8e6);_0x2b0f0b[_0x35dcb6(0x1a5)]=class extends _0x2f615a[_0x35dcb6(0x1d1)]{constructor(_0x514d23,_0x2a5125,_0x12fb58){const _0x190ae2=_0x35dcb6;super(),_0xcc9f12(this,_0x190ae2(0x195),new Map()),(this[_0x190ae2(0x19d)]=_0x514d23,this[_0x190ae2(0x22c)]=_0x2a5125,this[_0x190ae2(0x198)]=_0x12fb58,this['_init']());}async[_0x35dcb6(0x240)](_0x376e76){const _0x38b3f9=_0x35dcb6;return this[_0x38b3f9(0x195)][_0x38b3f9(0x182)](_0x376e76)||await this['_startLiveShareCoordinator'](_0x376e76),this['_entities']['get'](_0x376e76);}[_0x35dcb6(0x201)](_0xd99f39){const _0x5215d1=_0x35dcb6;var _0x10b1b6;return(_0x10b1b6=this[_0x5215d1(0x195)]['get'](_0xd99f39))!=null?_0x10b1b6:null;}[_0x35dcb6(0x214)](){const _0x3bcfa3=_0x35dcb6;this[_0x3bcfa3(0x19d)][_0x3bcfa3(0x1e3)](_0x2f615a[_0x3bcfa3(0x1e1)][_0x3bcfa3(0x1f7)])[_0x3bcfa3(0x183)](_0x28078d[_0x3bcfa3(0x17b)](this[_0x3bcfa3(0x18d)]))[_0x3bcfa3(0x1f1)](async _0x2d6f79=>{const _0x308140=_0x3bcfa3,_0xa00a83=_0x2d6f79[_0x308140(0x20b)]();this[_0x308140(0x195)][_0x308140(0x182)](_0xa00a83)||this[_0x308140(0x218)](_0xa00a83);}),this['_univerInstanceService'][_0x3bcfa3(0x197)](_0x2f615a[_0x3bcfa3(0x1e1)][_0x3bcfa3(0x1f7)])[_0x3bcfa3(0x183)](_0x28078d[_0x3bcfa3(0x17b)](this[_0x3bcfa3(0x18d)]))[_0x3bcfa3(0x1f1)](_0x80b058=>{const _0x31b921=_0x3bcfa3,_0xc9836c=_0x80b058['getUnitId'](),_0x3d01a6=this['_entities']['get'](_0xc9836c);_0x3d01a6==null||_0x3d01a6[_0x31b921(0x22b)]();});}async[_0x35dcb6(0x218)](_0x2a0cf8){const _0x3f07e1=_0x35dcb6,_0x21d02e=await this[_0x3f07e1(0x198)][_0x3f07e1(0x203)](_0x2a0cf8),_0x55ad31=this[_0x3f07e1(0x22c)][_0x3f07e1(0x1e6)](_0x2b0f0b[_0x3f07e1(0x1d4)],_0x2a0cf8,_0x21d02e);return _0x55ad31[_0x3f07e1(0x1ed)](),this['_entities'][_0x3f07e1(0x21b)](_0x2a0cf8,_0x55ad31),_0x55ad31;}},_0x2b0f0b[_0x35dcb6(0x1a5)]=_0x5372b2([_0x3fac65(0x0,_0x2f615a[_0x35dcb6(0x200)]),_0x3fac65(0x1,_0x2f615a[_0x35dcb6(0x224)](_0x2f615a[_0x35dcb6(0x15b)])),_0x3fac65(0x2,_0x2f615a['Inject'](_0x323a89[_0x35dcb6(0x1e5)]))],_0x2b0f0b[_0x35dcb6(0x1a5)]);var _0x25cacc=(_0x285c07=>(_0x285c07['OFFLINE']=_0x35dcb6(0x19f),_0x285c07['IDLE']=_0x35dcb6(0x1a8),_0x285c07[_0x35dcb6(0x176)]=_0x35dcb6(0x189),_0x285c07[_0x35dcb6(0x159)]=_0x35dcb6(0x1b2),_0x285c07[_0x35dcb6(0x19a)]=_0x35dcb6(0x1a3),_0x285c07))(_0x25cacc||{});const _0x3a6928=_0x35dcb6(0x1e0),_0x1f44e7=0xc8;_0x2b0f0b[_0x35dcb6(0x1d4)]=class extends _0x2f615a['RxDisposable']{constructor(_0x40e797,_0x13c66d,_0x115c6c,_0x3beb5c,_0x37c194){const _0x2be32f=_0x35dcb6;super(),_0xcc9f12(this,'_status$',new _0x3d526d[(_0x2be32f(0x1c1))](_0x2be32f(0x1a8))),_0xcc9f12(this,_0x2be32f(0x235),this['_status$'][_0x2be32f(0x23f)]()),_0xcc9f12(this,_0x2be32f(0x214),!0x1),_0xcc9f12(this,_0x2be32f(0x16c),null),_0xcc9f12(this,_0x2be32f(0x1f5),null),(this[_0x2be32f(0x163)]=_0x40e797,this[_0x2be32f(0x1c6)]=_0x13c66d,this['_configService']=_0x115c6c,this[_0x2be32f(0x1c5)]=_0x3beb5c,this[_0x2be32f(0x216)]=_0x37c194);}get[_0x35dcb6(0x192)](){const _0x345a30=_0x35dcb6;return this[_0x345a30(0x23a)][_0x345a30(0x1b7)]();}[_0x35dcb6(0x22b)](){const _0x5e68a4=_0x35dcb6;var _0x44e562;(_0x44e562=this[_0x5e68a4(0x16c)])==null||_0x44e562[_0x5e68a4(0x22b)](),this[_0x5e68a4(0x23a)][_0x5e68a4(0x178)](_0x5e68a4(0x1a8)),this[_0x5e68a4(0x23a)][_0x5e68a4(0x20d)]();}[_0x35dcb6(0x21f)](){const _0x4f6425=_0x35dcb6;return this[_0x4f6425(0x192)];}[_0x35dcb6(0x1ed)](){const _0x2d4ee2=_0x35dcb6;this['_init']||(this[_0x2d4ee2(0x214)]=!0x0,this[_0x2d4ee2(0x1c6)][_0x2d4ee2(0x17a)][_0x2d4ee2(0x183)](_0x28078d['takeUntil'](this[_0x2d4ee2(0x18d)]))[_0x2d4ee2(0x1f1)](_0x10bf0c=>{const _0x5c8671=_0x2d4ee2;switch(_0x10bf0c){case _0x323a89[_0x5c8671(0x1f6)][_0x5c8671(0x1ff)]:this[_0x5c8671(0x188)]();break;case _0x323a89[_0x5c8671(0x1f6)][_0x5c8671(0x17e)]:this[_0x5c8671(0x1bb)]();break;}}),this[_0x2d4ee2(0x1c6)][_0x2d4ee2(0x153)][_0x2d4ee2(0x183)](_0x28078d[_0x2d4ee2(0x17b)](this[_0x2d4ee2(0x18d)]))[_0x2d4ee2(0x1f1)](_0x2562a1=>{const _0x588104=_0x2d4ee2,{eventID:_0x29b4bd}=_0x2562a1;switch(_0x29b4bd){case _0xb0523b[_0x588104(0x1c3)][_0x588104(0x173)]:this['_handleNewHost'](_0x2562a1);break;case _0xb0523b[_0x588104(0x1c3)][_0x588104(0x168)]:this[_0x588104(0x234)](_0x2562a1);break;case _0xb0523b[_0x588104(0x1c3)][_0x588104(0x1e4)]:this['_handleTerminate']();break;case _0xb0523b[_0x588104(0x1c3)][_0x588104(0x205)]:this[_0x588104(0x191)](_0x2562a1);break;}}));}[_0x35dcb6(0x1ab)](){const _0x2f73a5=_0x35dcb6;this[_0x2f73a5(0x1c6)][_0x2f73a5(0x232)]({'eventID':_0xb0523b[_0x2f73a5(0x1c3)][_0x2f73a5(0x1c8)],'data':{'unitID':this['_unitID'],'userID':this[_0x2f73a5(0x1c6)][_0x2f73a5(0x1be)]()}},this[_0x2f73a5(0x163)]);}[_0x35dcb6(0x23b)](){const _0x173722=_0x35dcb6;this[_0x173722(0x192)]===_0x173722(0x1a3)&&(this[_0x173722(0x23a)][_0x173722(0x178)](_0x173722(0x1a8)),this[_0x173722(0x1c6)][_0x173722(0x232)]({'eventID':_0xb0523b[_0x173722(0x1c3)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x173722(0x163)]}},this['_unitID']));}['startFollowing'](){const _0xc7ad29=_0x35dcb6;this[_0xc7ad29(0x192)]===_0xc7ad29(0x1b2)&&(this[_0xc7ad29(0x23a)][_0xc7ad29(0x178)]('following'),this[_0xc7ad29(0x1d2)]());}[_0x35dcb6(0x1d6)](){const _0x33aef6=_0x35dcb6;this[_0x33aef6(0x192)]===_0x33aef6(0x189)&&this[_0x33aef6(0x239)]();}[_0x35dcb6(0x1c4)](_0x3d62fc){const _0x2a2264=_0x35dcb6,{presenter:_0x417199}=_0x3d62fc[_0x2a2264(0x22a)],_0x6ba1c1=this[_0x2a2264(0x1c6)]['getMemberID']();this[_0x2a2264(0x1f5)]=_0x417199,_0x417199===_0x6ba1c1?(this[_0x2a2264(0x239)](),this[_0x2a2264(0x1b4)]()):this['_status']!==_0x2a2264(0x1b2)&&(this[_0x2a2264(0x1e7)](),this['_startFollowing']());}[_0x35dcb6(0x1a7)](){const _0x52afdb=_0x35dcb6,_0x196e02={'eventID':_0xb0523b[_0x52afdb(0x1c3)][_0x52afdb(0x1aa)]};this['_collabSession']['send'](_0x196e02,this['_unitID']);}[_0x35dcb6(0x1b0)](){const _0x1e1d54=_0x35dcb6;this[_0x1e1d54(0x1f5)]=null,this[_0x1e1d54(0x192)]!==_0x1e1d54(0x1a3)&&this['_beIdle']();}[_0x35dcb6(0x191)](_0x4bdd01){const _0x512c42=_0x35dcb6;if(this['_status']===_0x512c42(0x189)&&this[_0x512c42(0x1f5)]===_0x4bdd01[_0x512c42(0x22a)][_0x512c42(0x230)]){const _0xb33924=_0xb0523b[_0x512c42(0x22d)](_0x4bdd01[_0x512c42(0x22a)])[_0x512c42(0x23d)][_0x512c42(0x18b)]()['find'](_0x52e674=>_0x52e674['id']===_0x59b683['InsertSheetMutation']['id']);if(_0xb33924){const _0x4ff3ec=_0xb33924[_0x512c42(0x1da)][_0x512c42(0x21d)],_0x56b9b6=_0xb33924[_0x512c42(0x1da)][_0x512c42(0x22e)]['id'];setTimeout(()=>{const _0x59fed3=_0x512c42;this[_0x59fed3(0x216)]['executeCommand'](_0x59b683['SetWorksheetActiveOperation']['id'],{'unitId':_0x4ff3ec,'subUnitId':_0x56b9b6},{'fromCollab':!0x0});});}}}[_0x35dcb6(0x1b4)](){const _0x118ba2=_0x35dcb6;this[_0x118ba2(0x23a)][_0x118ba2(0x178)](_0x118ba2(0x1a3));const _0x2ff0db=new Map(),_0x199f33=this[_0x118ba2(0x16c)]=new _0x2f615a[(_0x118ba2(0x213))]();_0x199f33['add'](_0x2f615a['toDisposable'](()=>{const _0x29cb11=_0x118ba2;_0x2ff0db[_0x29cb11(0x167)](_0x32de75=>_0x32de75[_0x29cb11(0x20d)]()),_0x2ff0db[_0x29cb11(0x1fa)]();})),_0x199f33['add'](this['_commandService']['onCommandExecuted'](_0x5b2af5=>{const _0xab253b=_0x118ba2;var _0x4e0b69;if(_0x5b2af5['type']!==_0x2f615a[_0xab253b(0x229)]['OPERATION']||!this[_0xab253b(0x1c5)][_0xab253b(0x20a)](_0x5b2af5['id']))return;const {id:_0x640d0c}=_0x5b2af5;let _0x24059a;_0x2ff0db[_0xab253b(0x182)](_0x640d0c)?_0x24059a=_0x2ff0db['get'](_0x640d0c):(_0x24059a=new _0x3d526d[(_0xab253b(0x19e))](),_0x2ff0db[_0xab253b(0x21b)](_0x640d0c,_0x24059a),_0x24059a['pipe'](_0x28078d[_0xab253b(0x1ec)]((_0x4e0b69=this[_0xab253b(0x212)][_0xab253b(0x164)](_0x3a6928))!=null?_0x4e0b69:_0x1f44e7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xab253b(0x1f1)](_0x418100=>{const _0x501ef9=_0xab253b;this['_collabSession']['send']({'eventID':_0xb0523b['CollaborationEvent'][_0x501ef9(0x168)],'data':{'unitID':this['_unitID'],'operations':{[_0x418100['id']]:{'id':_0x418100['id'],'params':JSON[_0x501ef9(0x157)](_0x418100['params'])}}}},this[_0x501ef9(0x163)]);})),_0x24059a[_0xab253b(0x178)](_0x5b2af5);})),this['_liveShareService'][_0x118ba2(0x1af)](this[_0x118ba2(0x163)])[_0x118ba2(0x167)](_0x352c91=>this['_collabSession'][_0x118ba2(0x232)]({'eventID':_0xb0523b[_0x118ba2(0x1c3)][_0x118ba2(0x168)],'data':{'unitID':this[_0x118ba2(0x163)],'operations':{[_0x352c91['id']]:{'id':_0x352c91['id'],'params':JSON[_0x118ba2(0x157)](_0x352c91['params'])}}}},this[_0x118ba2(0x163)]));}['_stopPresenting'](){const _0x271e97=_0x35dcb6;var _0x49c951;this[_0x271e97(0x23a)][_0x271e97(0x178)](_0x271e97(0x1a8)),(_0x49c951=this['_commandDisposable'])==null||_0x49c951['dispose'](),this[_0x271e97(0x16c)]=null;}[_0x35dcb6(0x1d2)](){const _0x5af6=_0x35dcb6;var _0x18d6d4;(_0x18d6d4=this[_0x5af6(0x16c)])==null||_0x18d6d4[_0x5af6(0x22b)](),this[_0x5af6(0x23a)][_0x5af6(0x178)](_0x5af6(0x189));}['_beIdle'](){const _0x1cbfeb=_0x35dcb6;var _0x381ea1;this[_0x1cbfeb(0x23a)][_0x1cbfeb(0x178)](_0x1cbfeb(0x1a8)),(_0x381ea1=this[_0x1cbfeb(0x16c)])==null||_0x381ea1[_0x1cbfeb(0x22b)](),this[_0x1cbfeb(0x16c)]=null;}[_0x35dcb6(0x239)](){const _0x3ba731=_0x35dcb6;var _0xa284f7;this[_0x3ba731(0x23a)]['next'](_0x3ba731(0x1b2)),(_0xa284f7=this[_0x3ba731(0x16c)])==null||_0xa284f7[_0x3ba731(0x22b)]();}[_0x35dcb6(0x234)](_0x4cb4e3){const _0x180be1=_0x35dcb6;if(['presenting',_0x180be1(0x1b2),_0x180be1(0x19f)][_0x180be1(0x223)](this[_0x180be1(0x192)])||!_0x4cb4e3[_0x180be1(0x22a)][_0x180be1(0x1df)]||_0x4cb4e3[_0x180be1(0x22a)]['presenter']===this[_0x180be1(0x1c6)][_0x180be1(0x1be)]())return;this[_0x180be1(0x192)]===_0x180be1(0x1a8)&&this['_startFollowing']();const _0x2b9f2b=_0x4cb4e3[_0x180be1(0x22a)][_0x180be1(0x166)];Object[_0x180be1(0x15c)](_0x2b9f2b)['forEach'](_0x2c76fc=>{const _0x34c097=_0x180be1;this[_0x34c097(0x216)][_0x34c097(0x21c)](_0x2c76fc['id'],_0x2c76fc[_0x34c097(0x1da)]?JSON[_0x34c097(0x227)](_0x2c76fc[_0x34c097(0x1da)]):null,{'fromCollab':!0x0});});}[_0x35dcb6(0x188)](){const _0x58ef10=_0x35dcb6;var _0x2e251d;this[_0x58ef10(0x23a)][_0x58ef10(0x178)](_0x58ef10(0x19f)),(_0x2e251d=this[_0x58ef10(0x16c)])==null||_0x2e251d[_0x58ef10(0x22b)]();}['_handleOnline'](){const _0x5a94bf=_0x35dcb6;this[_0x5a94bf(0x23a)][_0x5a94bf(0x178)]('idle'),this[_0x5a94bf(0x1a7)]();}},_0x2b0f0b[_0x35dcb6(0x1d4)]=_0x5372b2([_0x3fac65(0x2,_0x2f615a['IConfigService']),_0x3fac65(0x3,_0x2f615a['Inject'](_0x655815)),_0x3fac65(0x4,_0x2f615a[_0x35dcb6(0x15e)])],_0x2b0f0b['LiveShareCoordinator']);function _0x91af19(){const _0x4f5878=_0x35dcb6,_0x483ef3=_0x3ae219[_0x4f5878(0x1cb)](_0x2b0f0b[_0x4f5878(0x1a5)]),_0x3d2bbf=_0x3ae219[_0x4f5878(0x1cb)](_0x2f615a['IUniverInstanceService']),_0x2afaf4=_0x3ae219[_0x4f5878(0x241)](()=>_0x3d2bbf['getCurrentTypeOfUnit$'](_0x2f615a[_0x4f5878(0x1e1)][_0x4f5878(0x1f7)]),void 0x0,!0x1,[]),[_0x414c53,_0x473c96]=_0x5b9823['useState'](null),[_0x5be893,_0x238e87]=_0x5b9823[_0x4f5878(0x1cd)](_0x25cacc[_0x4f5878(0x1bd)]),_0x4d94cc=_0x5b9823[_0x4f5878(0x1c2)](null);return _0x5b9823[_0x4f5878(0x1de)](()=>(_0x2afaf4&&_0x483ef3[_0x4f5878(0x240)](_0x2afaf4[_0x4f5878(0x20b)]())[_0x4f5878(0x1fc)](_0x1861e0=>{const _0x5c8287=_0x4f5878;_0x473c96(_0x1861e0),_0x4d94cc[_0x5c8287(0x169)]=_0x1861e0[_0x5c8287(0x235)][_0x5c8287(0x1f1)](_0x53342e=>{_0x238e87(_0x53342e);});}),()=>{const _0x33ec19=_0x4f5878;var _0x2e6cb0;(_0x2e6cb0=_0x4d94cc['current'])==null||_0x2e6cb0[_0x33ec19(0x15f)](),_0x4d94cc[_0x33ec19(0x169)]=null;}),[_0x2afaf4,_0x483ef3]),_0x414c53?_0x3b62fe['jsx'](_0x32bb48[_0x4f5878(0x21a)],{'align':_0x4f5878(0x1b3),'disabled':_0x5be893===_0x25cacc[_0x4f5878(0x1ff)],'className':_0x4f5878(0x231),'overlay':_0x3b62fe['jsx'](_0x341da5,{'status':_0x5be893,'coordinator':_0x414c53}),'children':_0x3b62fe[_0x4f5878(0x221)](_0x4f5878(0x170),{'className':_0x32bb48[_0x4f5878(0x1fb)](_0x4f5878(0x1cf),{'univer-cursor-not-allowed':_0x5be893===_0x25cacc[_0x4f5878(0x1ff)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5be893!==_0x25cacc['OFFLINE']}),'type':'button','children':_0x3b62fe['jsx'](_0x141193,{'className':_0x4f5878(0x16e)})})}):null;}function _0x341da5(_0x977f5f){const _0x9e5a2d=_0x35dcb6,{status:_0x3c2087,coordinator:_0x185ea9}=_0x977f5f;switch(_0x3c2087){case _0x25cacc[_0x9e5a2d(0x1bd)]:return _0x3b62fe[_0x9e5a2d(0x221)](_0x4cf32e,{'coordinator':_0x185ea9});case _0x25cacc[_0x9e5a2d(0x176)]:return _0x3b62fe[_0x9e5a2d(0x221)](_0x54fcc2,{'coordinator':_0x185ea9});case _0x25cacc['NOT_FOLLOWING']:return _0x3b62fe[_0x9e5a2d(0x221)](_0xdd2ff5,{'coordinator':_0x185ea9});case _0x25cacc[_0x9e5a2d(0x1ff)]:return _0x3b62fe[_0x9e5a2d(0x221)](_0xd24e43,{});case _0x25cacc['PRESENTING']:return _0x3b62fe[_0x9e5a2d(0x221)](_0x499f9a,{'coordinator':_0x185ea9});default:return null;}}function _0x4cf32e(_0xf8de5f){const _0x7b83f0=_0x35dcb6,{coordinator:_0xca8f1a}=_0xf8de5f;return _0x3b62fe[_0x7b83f0(0x23c)](_0x3b62fe[_0x7b83f0(0x20e)],{'children':[_0x3b62fe[_0x7b83f0(0x221)]('div',{'className':_0x7b83f0(0x165),'children':'Present\x20this\x20document'}),_0x3b62fe[_0x7b83f0(0x221)](_0x32bb48[_0x7b83f0(0x1dc)],{'onClick':()=>_0xca8f1a[_0x7b83f0(0x1ab)](),'children':_0x7b83f0(0x228)})]});}function _0x54fcc2(_0x3b7467){const _0x1ba389=_0x35dcb6,{coordinator:_0x887316}=_0x3b7467;return _0x3b62fe[_0x1ba389(0x23c)](_0x3b62fe[_0x1ba389(0x20e)],{'children':[_0x3b62fe[_0x1ba389(0x221)](_0x1ba389(0x1ee),{'className':_0x1ba389(0x165),'children':_0x1ba389(0x18c)}),_0x3b62fe['jsx'](_0x32bb48[_0x1ba389(0x1dc)],{'onClick':()=>_0x887316[_0x1ba389(0x1d6)](),'children':'Stop\x20following'})]});}function _0xdd2ff5(_0x187ea4){const _0x47ee24=_0x35dcb6,{coordinator:_0x295b0b}=_0x187ea4;return _0x3b62fe[_0x47ee24(0x23c)](_0x3b62fe[_0x47ee24(0x20e)],{'children':[_0x3b62fe['jsx'](_0x47ee24(0x1ee),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3b62fe[_0x47ee24(0x221)](_0x32bb48[_0x47ee24(0x1dc)],{'variant':_0x47ee24(0x1b6),'onClick':()=>_0x295b0b[_0x47ee24(0x225)](),'children':_0x47ee24(0x161)})]});}function _0x499f9a(_0xdf7695){const _0x2f3cb5=_0x35dcb6,{coordinator:_0x5ce107}=_0xdf7695;return _0x3b62fe[_0x2f3cb5(0x23c)](_0x3b62fe['Fragment'],{'children':[_0x3b62fe[_0x2f3cb5(0x221)]('div',{'className':_0x2f3cb5(0x165),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b62fe['jsx'](_0x32bb48['Button'],{'variant':_0x2f3cb5(0x175),'onClick':()=>_0x5ce107[_0x2f3cb5(0x23b)](),'children':_0x2f3cb5(0x1dd)})]});}function _0xd24e43(){const _0x3704ec=_0x35dcb6;return _0x3b62fe['jsx'](_0x3b62fe['Fragment'],{'children':_0x3704ec(0x196)});}var _0x40a48d=Object[_0x35dcb6(0x1a6)],_0x3ac8de=(_0x332093,_0x4d99db,_0x5bb3af,_0xee98eb)=>{const _0x5d4783=_0x35dcb6;for(var _0x8543c2=_0xee98eb>0x1?void 0x0:_0xee98eb?_0x40a48d(_0x4d99db,_0x5bb3af):_0x4d99db,_0x3dddc3=_0x332093[_0x5d4783(0x1b5)]-0x1,_0x2f5132;_0x3dddc3>=0x0;_0x3dddc3--)(_0x2f5132=_0x332093[_0x3dddc3])&&(_0x8543c2=_0x2f5132(_0x8543c2)||_0x8543c2);return _0x8543c2;},_0x2fe3e8=(_0x334874,_0x1a1fe1)=>(_0x206926,_0x1cb0d9)=>_0x1a1fe1(_0x206926,_0x1cb0d9,_0x334874);_0x2b0f0b[_0x35dcb6(0x185)]=class extends _0x2f615a[_0x35dcb6(0x217)]{constructor(_0x23e446,_0x4ef712){const _0x134d4c=_0x35dcb6;super(),this[_0x134d4c(0x22c)]=_0x23e446,this[_0x134d4c(0x174)]=_0x4ef712,this[_0x134d4c(0x171)]();}[_0x35dcb6(0x171)](){const _0x1d6876=_0x35dcb6;this[_0x1d6876(0x1ae)](this['_uiPartsService']['registerComponent'](_0x3ae219[_0x1d6876(0x1b8)][_0x1d6876(0x1b9)],()=>_0x3ae219[_0x1d6876(0x155)](_0x91af19,this[_0x1d6876(0x22c)])));}},_0x2b0f0b[_0x35dcb6(0x185)]=_0x3ac8de([_0x2fe3e8(0x0,_0x2f615a[_0x35dcb6(0x224)](_0x2f615a[_0x35dcb6(0x15b)])),_0x2fe3e8(0x1,_0x3ae219[_0x35dcb6(0x16f)])],_0x2b0f0b[_0x35dcb6(0x185)]);const _0x179437=_0x35dcb6(0x202),_0x4632bb={};var _0x473931=Object['getOwnPropertyDescriptor'],_0x5b8b54=(_0x18a1b8,_0x3d95da,_0x1588dd,_0x41a821)=>{const _0x1d2365=_0x35dcb6;for(var _0x43513e=_0x41a821>0x1?void 0x0:_0x41a821?_0x473931(_0x3d95da,_0x1588dd):_0x3d95da,_0x4ae259=_0x18a1b8[_0x1d2365(0x1b5)]-0x1,_0x143684;_0x4ae259>=0x0;_0x4ae259--)(_0x143684=_0x18a1b8[_0x4ae259])&&(_0x43513e=_0x143684(_0x43513e)||_0x43513e);return _0x43513e;},_0x1b386c=(_0x48e730,_0xa58a31)=>(_0x509cc2,_0x214a48)=>_0xa58a31(_0x509cc2,_0x214a48,_0x48e730);let _0x427fb7=class extends _0x2f615a[_0x35dcb6(0x217)]{constructor(_0x1e7d0c){const _0x56e7d6=_0x35dcb6;super(),this['_liveShareService']=_0x1e7d0c,this[_0x56e7d6(0x214)]();}[_0x35dcb6(0x214)](){const _0x2b4653=_0x35dcb6;[_0xa471c7['SetZoomRatioOperation']['id'],_0xa471c7[_0x2b4653(0x16b)]['id'],_0x59b683[_0x2b4653(0x187)]['id']][_0x2b4653(0x167)](_0x544b1c=>{const _0x2ce600=_0x2b4653;this[_0x2ce600(0x1ae)](this[_0x2ce600(0x1c5)][_0x2ce600(0x1ca)](_0x544b1c));});}};_0x427fb7=_0x5b8b54([_0x1b386c(0x0,_0x2f615a[_0x35dcb6(0x224)](_0x655815))],_0x427fb7);var _0x1c59ab=Object['defineProperty'],_0x10b311=Object['getOwnPropertyDescriptor'],_0x1ae531=(_0x23e0e7,_0x319be2,_0x20687a)=>_0x319be2 in _0x23e0e7?_0x1c59ab(_0x23e0e7,_0x319be2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20687a}):_0x23e0e7[_0x319be2]=_0x20687a,_0x478a66=(_0x3b36bc,_0x1803b8,_0x1539cb,_0x5365fa)=>{const _0x3bc187=_0x35dcb6;for(var _0x3cacf6=_0x5365fa>0x1?void 0x0:_0x5365fa?_0x10b311(_0x1803b8,_0x1539cb):_0x1803b8,_0x31f5e1=_0x3b36bc[_0x3bc187(0x1b5)]-0x1,_0x147fcd;_0x31f5e1>=0x0;_0x31f5e1--)(_0x147fcd=_0x3b36bc[_0x31f5e1])&&(_0x3cacf6=_0x147fcd(_0x3cacf6)||_0x3cacf6);return _0x3cacf6;},_0x59c193=(_0x3d0be9,_0x1358d3)=>(_0x3cc627,_0x18e9b8)=>_0x1358d3(_0x3cc627,_0x18e9b8,_0x3d0be9),_0x548231=(_0x2a6b4f,_0x4750c,_0x2b3fee)=>_0x1ae531(_0x2a6b4f,typeof _0x4750c!='symbol'?_0x4750c+'':_0x4750c,_0x2b3fee);const _0x485868='UNIVER_LIVE_SHARE_PLUGIN';_0x2b0f0b[_0x35dcb6(0x238)]=class extends _0x2f615a['Plugin']{constructor(_0xba3db7=_0x4632bb,_0x4b3f94,_0x39c4eb){const _0x40e253=_0x35dcb6;super(),this[_0x40e253(0x211)]=_0xba3db7,this['_injector']=_0x4b3f94,this[_0x40e253(0x212)]=_0x39c4eb;const {..._0x252a72}=_0x2f615a[_0x40e253(0x177)]({},_0x4632bb,this[_0x40e253(0x211)]);this[_0x40e253(0x212)]['setConfig'](_0x179437,_0x252a72);}['onStarting'](){const _0x100fe6=_0x35dcb6;_0x2f615a['registerDependencies'](this[_0x100fe6(0x22c)],_0x2f615a['mergeOverrideWithDependencies']([[_0x655815],[_0x2b0f0b[_0x100fe6(0x1a5)]],[_0x427fb7],[_0x2b0f0b[_0x100fe6(0x185)]]],this[_0x100fe6(0x211)]['override'])),_0x2f615a[_0x100fe6(0x21e)](this[_0x100fe6(0x22c)],[[_0x427fb7]]);}['onRendered'](){const _0x3b9063=_0x35dcb6;_0x2f615a['touchDependencies'](this[_0x3b9063(0x22c)],[[_0x2b0f0b[_0x3b9063(0x185)]]]);}},_0x548231(_0x2b0f0b[_0x35dcb6(0x238)],'type',_0x2f615a['UniverInstanceType'][_0x35dcb6(0x1db)]),_0x548231(_0x2b0f0b['UniverLiveSharePlugin'],_0x35dcb6(0x215),_0x485868),_0x2b0f0b[_0x35dcb6(0x238)]=_0x478a66([_0x2f615a[_0x35dcb6(0x156)](_0x323a89[_0x35dcb6(0x193)]),_0x59c193(0x1,_0x2f615a[_0x35dcb6(0x224)](_0x2f615a[_0x35dcb6(0x15b)])),_0x59c193(0x2,_0x2f615a[_0x35dcb6(0x18f)])],_0x2b0f0b[_0x35dcb6(0x238)]),_0x2b0f0b['LiveShare']=_0x91af19,_0x2b0f0b[_0x35dcb6(0x1f9)]=_0x655815,_0x2b0f0b[_0x35dcb6(0x160)]=_0x25cacc,Object[_0x35dcb6(0x226)](_0x2b0f0b,Symbol[_0x35dcb6(0x1ac)],{'value':_0x35dcb6(0x1f4)});}));
|
|
1
|
+
function _0x41e0(_0x5d2a00,_0x2659fd){_0x5d2a00=_0x5d2a00-0x136;const _0x481193=_0x4811();let _0x41e083=_0x481193[_0x5d2a00];return _0x41e083;}function _0x4811(){const _0x542749=['takeUntil','You\x27are\x20offline.','9pnOmKL','data','SetWorksheetActiveOperation','init','Plugin','useObservable','type','NOT_FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','_presenter','object','onCommandExecuted','defIds','toString','@univerjs-pro/collaboration-client','div','IUIPartsService','children','stopPresenting','pipe','default','@univerjs-pro/collaboration','10iTKoKx','following','http://www.w3.org/2000/svg','string','Start','toStringTag','clsx','ICommandService','onStarting','xlink:href','3162520VaMngT','pluginName','Inject','univer-size-4','mergeOverrideWithDependencies','symbol','LIVESHARE_REQUEST_HOST','length','getConfig','registerSharedOperation','Subject','displayName','Disposable','_startFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','2478430fzCADG','map','_handleOnline','_handleOffline','jsxs','LiveShareCoordinator','7aroXXM','dispose','useRef','SessionStatus','startFollowing','@univerjs/design','getMemberID','colorChannel1','has','stopFollowing','@univerjs/sheets-ui','_handleOperation','InsertSheetMutation','Injector','_handleNewHost','8163221WeoCGC','get','defineProperty','IConfigService','button','UniverDesign','operations','exports','UniverInstanceType','rxjs','includes','UniverLiveSharePlugin','SetZoomRatioOperation','merge','setConfig','getOwnPropertyDescriptor','_beIdle','IUniverInstanceService','@univerjs/core','DesktopLiveShareController','mask','_mountLiveShare','useEffect','_handleNewChangeSets','add','current','send','LIVESHARE_TERMINATE','NEW_CHANGESETS','getCurrentTypeOfUnit$','function','LiveShareStatus','subscribe','clear','RxDisposable','_fetchOperations','memberID','103656ZDbcRH','695754SeyRDy','registerComponent','SetScrollOperation','_commandDisposable','dispose$','UniverProLiveShare','executeCommand','LiveShareService','registerInitialStateReporter','_config','CommandType','CollaborationEvent','LIVESHARE_NEW_HOST','ONLINE','set','UniverProCollaborationClient','substring','BuiltInUIPart','Present\x20this\x20document','_unitID','HEADER_MENU','_entities','_sharedOperations','_reporters','evenodd','forEach','not-following','createElement','defs','getLiveShareCoordinator','amd','_liveShareService','You\x27re\x20following\x20the\x20presenter','find','UniverUi','createInstance','unsubscribe','forwardRef','getUnitId','0\x200\x2017\x2017','sessionStatus$','jsx','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','FOLLOWING','58gkClUn','delete','entries','UniverCore','presenting','UNIVER_SHEET','_stopFollowing','disposeWithMe','getInitialStates','status$','replace','getTypeOfUnitAdded$','_status','useDependency','then','stringify','React','reverse','Stop\x20following','offline','throttleTime','idle','_injector','IDLE','UNIVER_UNKNOWN','1230480pDSKFF','react/jsx-runtime','LIVESHARE_FETCH_OPERATIONS','1em','Button','_handleTerminate','currentColor','getValue','DependentOn','UniverSheets','Module','_uiPartsService','presenter','DisposableCollection','_commandService','parseProtocolChangeset','LiveShareController','none','@univerjs/ui','LIVESHARE_OPERATION','params','unitId','toDisposable','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','_startPresenting','_status$','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinatorSync','_configService','touchDependencies','url(#$1','next','useState','sheet','12PJQcSr','Fragment','values','path','2700BrRayR','BehaviorSubject','idSuffix','UniverSheetsUi','attrs','_collabSessionService','tag','PRESENTING','rxjs/operators','live-share-icon','parse','_startLiveShareCoordinator','_init','_stopPresenting','trim','random','svg','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','react','use','OFFLINE','getStatus','Dropdown','complete','_collabSession','_univerInstanceService','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter'];_0x4811=function(){return _0x542749;};return _0x4811();}(function(_0x483c93,_0x2ac554){const _0x8b4e19=_0x41e0,_0x498427=_0x483c93();while(!![]){try{const _0x52de34=-parseInt(_0x8b4e19(0x1eb))/0x1*(-parseInt(_0x8b4e19(0x137))/0x2)+-parseInt(_0x8b4e19(0x1be))/0x3+parseInt(_0x8b4e19(0x204))/0x4+parseInt(_0x8b4e19(0x16b))/0x5*(-parseInt(_0x8b4e19(0x1bf))/0x6)+parseInt(_0x8b4e19(0x18a))/0x7*(-parseInt(_0x8b4e19(0x175))/0x8)+parseInt(_0x8b4e19(0x155))/0x9*(-parseInt(_0x8b4e19(0x184))/0xa)+-parseInt(_0x8b4e19(0x199))/0xb*(-parseInt(_0x8b4e19(0x226))/0xc);if(_0x52de34===_0x2ac554)break;else _0x498427['push'](_0x498427['shift']());}catch(_0x28071c){_0x498427['push'](_0x498427['shift']());}}}(_0x4811,0x35523),function(_0x3aee2e,_0x408b28){const _0x57bc09=_0x41e0;typeof exports==_0x57bc09(0x15f)&&typeof module<'u'?_0x408b28(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==_0x57bc09(0x1b7)&&define[_0x57bc09(0x1dd)]?define([_0x57bc09(0x1a0),_0x57bc09(0x1ab),_0x57bc09(0x216),_0x57bc09(0x205),_0x57bc09(0x18f),_0x57bc09(0x149),_0x57bc09(0x16a),_0x57bc09(0x163),'@univerjs/sheets','rxjs',_0x57bc09(0x13f),_0x57bc09(0x194)],_0x408b28):(_0x3aee2e=typeof globalThis<'u'?globalThis:_0x3aee2e||self,_0x408b28(_0x3aee2e[_0x57bc09(0x1c4)]={},_0x3aee2e[_0x57bc09(0x1ee)],_0x3aee2e[_0x57bc09(0x1e1)],_0x3aee2e['React'],_0x3aee2e[_0x57bc09(0x19e)],_0x3aee2e[_0x57bc09(0x1fb)],_0x3aee2e['UniverProCollaboration'],_0x3aee2e[_0x57bc09(0x1ce)],_0x3aee2e[_0x57bc09(0x20d)],_0x3aee2e[_0x57bc09(0x1a2)],_0x3aee2e['rxjs']['operators'],_0x3aee2e[_0x57bc09(0x13a)]));}(this,function(_0xcb6eb3,_0x2fb189,_0x3254bb,_0x1e92d8,_0x36abbf,_0x31c8bc,_0x1163d7,_0x461dcf,_0x5f1355,_0x28bb0c,_0x8537c8,_0x54d190){'use strict';const _0x4b7f0a=_0x41e0;var _0x3c3f8c=Object[_0x4b7f0a(0x19b)],_0x1d6abb=(_0x4df3c7,_0x5a8e4c,_0x93ab1f)=>_0x5a8e4c in _0x4df3c7?_0x3c3f8c(_0x4df3c7,_0x5a8e4c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x93ab1f}):_0x4df3c7[_0x5a8e4c]=_0x93ab1f,_0x150d0b=(_0x593610,_0x52a478,_0x25eedb)=>_0x1d6abb(_0x593610,typeof _0x52a478!=_0x4b7f0a(0x17a)?_0x52a478+'':_0x52a478,_0x25eedb);function _0x238469({ref:_0x280e1c,..._0x1e736c}){const _0x394d37=_0x4b7f0a,{icon:_0x43df0d,id:_0x151dc1,className:_0x4eea01,extend:_0x29b1f4,..._0x3d6b65}=_0x1e736c,_0x382943=('univerjs-icon\x20univerjs-icon-'+_0x151dc1+'\x20'+(_0x4eea01||''))[_0x394d37(0x145)](),_0x4ee11f=_0x31c8bc[_0x394d37(0x18c)]('_'+_0xf1116d());return _0x296492(_0x43df0d,''+_0x151dc1,{'defIds':_0x43df0d[_0x394d37(0x161)],'idSuffix':_0x4ee11f[_0x394d37(0x1b2)]},{'ref':_0x280e1c,'className':_0x382943,..._0x3d6b65},_0x29b1f4);}function _0x296492(_0x43e811,_0x342a10,_0x145123,_0x455aac,_0xefb5){const _0x52f282=_0x4b7f0a;return _0x31c8bc[_0x52f282(0x1da)](_0x43e811[_0x52f282(0x13d)],{'key':_0x342a10,..._0x4b6b76(_0x43e811,_0x145123,_0xefb5),..._0x455aac},(_0x8fd176(_0x43e811,_0x145123)[_0x52f282(0x166)]||[])['map']((_0x1150eb,_0x32891e)=>_0x296492(_0x1150eb,_0x342a10+'-'+_0x43e811[_0x52f282(0x13d)]+'-'+_0x32891e,_0x145123,void 0x0,_0xefb5)));}function _0x4b6b76(_0x539340,_0x3068e6,_0xec3960){const _0x52bb3e=_0x4b7f0a,_0x4bf635={..._0x539340[_0x52bb3e(0x13b)]};_0xec3960!=null&&_0xec3960['colorChannel1']&&_0x4bf635['fill']===_0x52bb3e(0x191)&&(_0x4bf635['fill']=_0xec3960[_0x52bb3e(0x191)]),_0x539340[_0x52bb3e(0x13d)]===_0x52bb3e(0x1ad)&&_0x4bf635['id']&&(_0x4bf635['id']=_0x4bf635['id']+_0x3068e6['idSuffix']),Object[_0x52bb3e(0x1ed)](_0x4bf635)['forEach'](([_0x321e19,_0x5a49ab])=>{const _0x28979c=_0x52bb3e;_0x321e19===_0x28979c(0x1ad)&&typeof _0x5a49ab==_0x28979c(0x16e)&&(_0x4bf635[_0x321e19]=_0x5a49ab[_0x28979c(0x1f5)](/url\(#(.*)\)/,'url(#$1'+_0x3068e6[_0x28979c(0x139)]+')'));});const {defIds:_0x5086d5}=_0x3068e6;return!_0x5086d5||_0x5086d5[_0x52bb3e(0x17c)]===0x0||(_0x539340[_0x52bb3e(0x13d)]===_0x52bb3e(0x14a)&&_0x4bf635[_0x52bb3e(0x174)]&&(_0x4bf635[_0x52bb3e(0x174)]=_0x4bf635[_0x52bb3e(0x174)]+_0x3068e6[_0x52bb3e(0x139)]),Object['entries'](_0x4bf635)[_0x52bb3e(0x1d8)](([_0x11fcf2,_0x47fb54])=>{const _0x1aec8=_0x52bb3e;typeof _0x47fb54==_0x1aec8(0x16e)&&(_0x4bf635[_0x11fcf2]=_0x47fb54[_0x1aec8(0x1f5)](/url\(#(.*)\)/,_0x1aec8(0x222)+_0x3068e6[_0x1aec8(0x139)]+')'));})),_0x4bf635;}function _0x8fd176(_0x3fd274,_0x18aa0f){const _0x28bbca=_0x4b7f0a;var _0x45ba59;const {defIds:_0x24930d}=_0x18aa0f;return!_0x24930d||_0x24930d[_0x28bbca(0x17c)]===0x0?_0x3fd274:_0x3fd274[_0x28bbca(0x13d)]===_0x28bbca(0x1db)&&((_0x45ba59=_0x3fd274[_0x28bbca(0x166)])!=null&&_0x45ba59['length'])?{..._0x3fd274,'children':_0x3fd274[_0x28bbca(0x166)][_0x28bbca(0x185)](_0x3231d0=>typeof _0x3231d0['attrs']['id']==_0x28bbca(0x16e)&&_0x24930d&&_0x24930d['includes'](_0x3231d0[_0x28bbca(0x13b)]['id'])?{..._0x3231d0,'attrs':{..._0x3231d0[_0x28bbca(0x13b)],'id':_0x3231d0[_0x28bbca(0x13b)]['id']+_0x18aa0f[_0x28bbca(0x139)]}}:_0x3231d0)}:_0x3fd274;}function _0xf1116d(){const _0x1e4b82=_0x4b7f0a;return Math[_0x1e4b82(0x146)]()[_0x1e4b82(0x162)](0x24)[_0x1e4b82(0x1cf)](0x2,0x8);}_0x238469[_0x4b7f0a(0x180)]='UniverIcon';const _0x19743a={'tag':_0x4b7f0a(0x147),'attrs':{'xmlns':_0x4b7f0a(0x16d),'fill':_0x4b7f0a(0x215),'viewBox':_0x4b7f0a(0x1e6),'width':_0x4b7f0a(0x207),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x4b7f0a(0x20a),'d':_0x4b7f0a(0x1e9)}},{'tag':_0x4b7f0a(0x136),'attrs':{'fill':_0x4b7f0a(0x20a),'d':_0x4b7f0a(0x148),'fillRule':_0x4b7f0a(0x1d7),'clipRule':_0x4b7f0a(0x1d7)}}]},_0x46538d=_0x31c8bc[_0x4b7f0a(0x1e4)](function(_0x58df60,_0x4295c1){const _0x4fac57=_0x4b7f0a;return _0x31c8bc[_0x4fac57(0x1da)](_0x238469,Object['assign']({},_0x58df60,{'id':_0x4fac57(0x140),'ref':_0x4295c1,'icon':_0x19743a}));});_0x46538d[_0x4b7f0a(0x180)]='LiveShareIcon';class _0x2a462c extends _0x2fb189[_0x4b7f0a(0x181)]{constructor(){const _0x112f58=_0x4b7f0a;super(...arguments),_0x150d0b(this,_0x112f58(0x1d5),new Set()),_0x150d0b(this,_0x112f58(0x1d6),new Set());}['registerSharedOperation'](_0x213ac2){const _0x178c3c=_0x4b7f0a;return this[_0x178c3c(0x1d5)]['add'](_0x213ac2),_0x2fb189['toDisposable'](()=>this[_0x178c3c(0x1d5)][_0x178c3c(0x1ec)](_0x213ac2));}[_0x4b7f0a(0x1c7)](_0x4dbe56){const _0x566a4e=_0x4b7f0a;return this[_0x566a4e(0x1d6)][_0x566a4e(0x1b1)](_0x4dbe56),_0x2fb189[_0x566a4e(0x21a)](()=>this[_0x566a4e(0x1d6)]['delete'](_0x4dbe56));}['shouldShareOperation'](_0x4dfc5c){const _0x1be043=_0x4b7f0a;return this[_0x1be043(0x1d5)][_0x1be043(0x192)](_0x4dfc5c);}['getInitialStates'](_0xeba103){const _0x137560=_0x4b7f0a;return Array['from'](this[_0x137560(0x1d6)])['map'](_0x141d1e=>_0x141d1e(_0xeba103));}}var _0x55f7bf=Object[_0x4b7f0a(0x1a8)],_0x22b0dd=(_0x3e821f,_0x45ee3c,_0x1e9b20,_0x575b13)=>{const _0x228802=_0x4b7f0a;for(var _0x11909e=_0x575b13>0x1?void 0x0:_0x575b13?_0x55f7bf(_0x45ee3c,_0x1e9b20):_0x45ee3c,_0x4f0964=_0x3e821f[_0x228802(0x17c)]-0x1,_0x15fd72;_0x4f0964>=0x0;_0x4f0964--)(_0x15fd72=_0x3e821f[_0x4f0964])&&(_0x11909e=_0x15fd72(_0x11909e)||_0x11909e);return _0x11909e;},_0x3ecf1d=(_0xd85ebd,_0x4e7bef)=>(_0x3287ce,_0x183d12)=>_0x4e7bef(_0x3287ce,_0x183d12,_0xd85ebd);_0xcb6eb3[_0x4b7f0a(0x214)]=class extends _0x2fb189['RxDisposable']{constructor(_0x554eec,_0x55e89a,_0x52c7cb){const _0x347ae3=_0x4b7f0a;super(),_0x150d0b(this,_0x347ae3(0x1d4),new Map()),(this[_0x347ae3(0x150)]=_0x554eec,this['_injector']=_0x55e89a,this[_0x347ae3(0x13c)]=_0x52c7cb,this[_0x347ae3(0x143)]());}async[_0x4b7f0a(0x1dc)](_0x16bfa0){const _0x20c3c4=_0x4b7f0a;return this[_0x20c3c4(0x1d4)][_0x20c3c4(0x192)](_0x16bfa0)||await this[_0x20c3c4(0x142)](_0x16bfa0),this['_entities'][_0x20c3c4(0x19a)](_0x16bfa0);}[_0x4b7f0a(0x21f)](_0x35d19a){const _0x3f3b2c=_0x4b7f0a;var _0x1d612f;return(_0x1d612f=this[_0x3f3b2c(0x1d4)][_0x3f3b2c(0x19a)](_0x35d19a))!=null?_0x1d612f:null;}[_0x4b7f0a(0x143)](){const _0x4c1d26=_0x4b7f0a;this['_univerInstanceService'][_0x4c1d26(0x1f6)](_0x2fb189[_0x4c1d26(0x1a1)]['UNIVER_SHEET'])[_0x4c1d26(0x168)](_0x8537c8['takeUntil'](this[_0x4c1d26(0x1c3)]))[_0x4c1d26(0x1b9)](async _0x34aaab=>{const _0x19167d=_0x4c1d26,_0x31b2fe=_0x34aaab[_0x19167d(0x1e5)]();this[_0x19167d(0x1d4)][_0x19167d(0x192)](_0x31b2fe)||this['_startLiveShareCoordinator'](_0x31b2fe);}),this[_0x4c1d26(0x150)]['getTypeOfUnitDisposed$'](_0x2fb189['UniverInstanceType'][_0x4c1d26(0x1f0)])[_0x4c1d26(0x168)](_0x8537c8[_0x4c1d26(0x153)](this[_0x4c1d26(0x1c3)]))[_0x4c1d26(0x1b9)](_0x3ef80f=>{const _0x2c08fe=_0x4c1d26,_0x371eac=_0x3ef80f[_0x2c08fe(0x1e5)](),_0x7b10ae=this[_0x2c08fe(0x1d4)][_0x2c08fe(0x19a)](_0x371eac);_0x7b10ae==null||_0x7b10ae[_0x2c08fe(0x18b)]();});}async[_0x4b7f0a(0x142)](_0x4de2aa){const _0x933b47=_0x4b7f0a,_0x221fd2=await this[_0x933b47(0x13c)]['requireSession'](_0x4de2aa),_0x112d1d=this[_0x933b47(0x201)][_0x933b47(0x1e2)](_0xcb6eb3[_0x933b47(0x189)],_0x4de2aa,_0x221fd2);return _0x112d1d[_0x933b47(0x158)](),this[_0x933b47(0x1d4)][_0x933b47(0x1cd)](_0x4de2aa,_0x112d1d),_0x112d1d;}},_0xcb6eb3['LiveShareController']=_0x22b0dd([_0x3ecf1d(0x0,_0x2fb189[_0x4b7f0a(0x1aa)]),_0x3ecf1d(0x1,_0x2fb189[_0x4b7f0a(0x177)](_0x2fb189[_0x4b7f0a(0x197)])),_0x3ecf1d(0x2,_0x2fb189[_0x4b7f0a(0x177)](_0x461dcf['CollaborationSessionService']))],_0xcb6eb3[_0x4b7f0a(0x214)]);var _0x335447=(_0x1c1f2b=>(_0x1c1f2b[_0x4b7f0a(0x14b)]=_0x4b7f0a(0x1fe),_0x1c1f2b[_0x4b7f0a(0x202)]=_0x4b7f0a(0x200),_0x1c1f2b['FOLLOWING']=_0x4b7f0a(0x16c),_0x1c1f2b[_0x4b7f0a(0x15c)]=_0x4b7f0a(0x1d9),_0x1c1f2b[_0x4b7f0a(0x13e)]=_0x4b7f0a(0x1ef),_0x1c1f2b))(_0x335447||{});const _0x476263=_0x4b7f0a(0x21e),_0x418a00=0xc8;_0xcb6eb3[_0x4b7f0a(0x189)]=class extends _0x2fb189[_0x4b7f0a(0x1bb)]{constructor(_0x30e93c,_0x17f998,_0x36cdfb,_0x4c7232,_0x179f45){const _0x48813c=_0x4b7f0a;super(),_0x150d0b(this,'_status$',new _0x28bb0c[(_0x48813c(0x138))]('idle')),_0x150d0b(this,'status$',this[_0x48813c(0x21d)]['asObservable']()),_0x150d0b(this,_0x48813c(0x143),!0x1),_0x150d0b(this,_0x48813c(0x1c2),null),_0x150d0b(this,_0x48813c(0x15e),null),(this[_0x48813c(0x1d2)]=_0x30e93c,this['_collabSession']=_0x17f998,this['_configService']=_0x36cdfb,this[_0x48813c(0x1de)]=_0x4c7232,this['_commandService']=_0x179f45);}get[_0x4b7f0a(0x1f7)](){const _0x2d30c5=_0x4b7f0a;return this[_0x2d30c5(0x21d)][_0x2d30c5(0x20b)]();}['dispose'](){const _0x34fd1e=_0x4b7f0a;var _0xde9b52;(_0xde9b52=this[_0x34fd1e(0x1c2)])==null||_0xde9b52[_0x34fd1e(0x18b)](),this[_0x34fd1e(0x21d)][_0x34fd1e(0x223)](_0x34fd1e(0x200)),this[_0x34fd1e(0x21d)]['complete']();}[_0x4b7f0a(0x14c)](){const _0x593def=_0x4b7f0a;return this[_0x593def(0x1f7)];}[_0x4b7f0a(0x158)](){const _0x5d5569=_0x4b7f0a;this[_0x5d5569(0x143)]||(this[_0x5d5569(0x143)]=!0x0,this[_0x5d5569(0x14f)][_0x5d5569(0x1e7)][_0x5d5569(0x168)](_0x8537c8[_0x5d5569(0x153)](this[_0x5d5569(0x1c3)]))[_0x5d5569(0x1b9)](_0x37c014=>{const _0x2ffe12=_0x5d5569;switch(_0x37c014){case _0x461dcf[_0x2ffe12(0x18d)]['OFFLINE']:this[_0x2ffe12(0x187)]();break;case _0x461dcf[_0x2ffe12(0x18d)][_0x2ffe12(0x1cc)]:this[_0x2ffe12(0x186)]();break;}}),this[_0x5d5569(0x14f)]['event$']['pipe'](_0x8537c8['takeUntil'](this[_0x5d5569(0x1c3)]))[_0x5d5569(0x1b9)](_0x4355ae=>{const _0x594949=_0x5d5569,{eventID:_0x4182f2}=_0x4355ae;switch(_0x4182f2){case _0x1163d7[_0x594949(0x1ca)][_0x594949(0x1cb)]:this['_handleNewHost'](_0x4355ae);break;case _0x1163d7[_0x594949(0x1ca)][_0x594949(0x217)]:this[_0x594949(0x195)](_0x4355ae);break;case _0x1163d7[_0x594949(0x1ca)][_0x594949(0x1b4)]:this[_0x594949(0x209)]();break;case _0x1163d7[_0x594949(0x1ca)][_0x594949(0x1b5)]:this['_handleNewChangeSets'](_0x4355ae);break;}}));}['tryStartPresenting'](){const _0x295d2c=_0x4b7f0a;this['_collabSession']['send']({'eventID':_0x1163d7[_0x295d2c(0x1ca)][_0x295d2c(0x17b)],'data':{'unitID':this[_0x295d2c(0x1d2)],'userID':this[_0x295d2c(0x14f)][_0x295d2c(0x190)]()}},this[_0x295d2c(0x1d2)]);}[_0x4b7f0a(0x167)](){const _0x3bc495=_0x4b7f0a;this[_0x3bc495(0x1f7)]===_0x3bc495(0x1ef)&&(this['_status$'][_0x3bc495(0x223)](_0x3bc495(0x200)),this[_0x3bc495(0x14f)]['send']({'eventID':_0x1163d7[_0x3bc495(0x1ca)][_0x3bc495(0x1b4)],'data':{'unitID':this['_unitID']}},this[_0x3bc495(0x1d2)]));}[_0x4b7f0a(0x18e)](){const _0x457877=_0x4b7f0a;this['_status']==='not-following'&&(this[_0x457877(0x21d)][_0x457877(0x223)]('following'),this[_0x457877(0x182)]());}[_0x4b7f0a(0x193)](){const _0x45bde4=_0x4b7f0a;this['_status']===_0x45bde4(0x16c)&&this[_0x45bde4(0x1f1)]();}[_0x4b7f0a(0x198)](_0x3becf4){const _0x3c2aef=_0x4b7f0a,{presenter:_0xafa3af}=_0x3becf4[_0x3c2aef(0x156)],_0x3cb0a9=this[_0x3c2aef(0x14f)][_0x3c2aef(0x190)]();this[_0x3c2aef(0x15e)]=_0xafa3af,_0xafa3af===_0x3cb0a9?(this['_stopFollowing'](),this[_0x3c2aef(0x21c)]()):this['_status']!==_0x3c2aef(0x1d9)&&(this['_stopPresenting'](),this[_0x3c2aef(0x182)]());}[_0x4b7f0a(0x1bc)](){const _0x5017bd=_0x4b7f0a,_0x48a645={'eventID':_0x1163d7['CollaborationEvent'][_0x5017bd(0x206)]};this[_0x5017bd(0x14f)][_0x5017bd(0x1b3)](_0x48a645,this[_0x5017bd(0x1d2)]);}[_0x4b7f0a(0x209)](){const _0x1c00be=_0x4b7f0a;this[_0x1c00be(0x15e)]=null,this[_0x1c00be(0x1f7)]!==_0x1c00be(0x1ef)&&this[_0x1c00be(0x1a9)]();}[_0x4b7f0a(0x1b0)](_0x27c8fe){const _0x9b37b9=_0x4b7f0a;if(this[_0x9b37b9(0x1f7)]===_0x9b37b9(0x16c)&&this[_0x9b37b9(0x15e)]===_0x27c8fe[_0x9b37b9(0x156)][_0x9b37b9(0x1bd)]){const _0x319541=_0x1163d7[_0x9b37b9(0x213)](_0x27c8fe[_0x9b37b9(0x156)])['mutations'][_0x9b37b9(0x1fc)]()[_0x9b37b9(0x1e0)](_0x4ef72e=>_0x4ef72e['id']===_0x5f1355[_0x9b37b9(0x196)]['id']);if(_0x319541){const _0x3773eb=_0x319541[_0x9b37b9(0x218)][_0x9b37b9(0x219)],_0x5121fc=_0x319541[_0x9b37b9(0x218)][_0x9b37b9(0x225)]['id'];setTimeout(()=>{const _0x1fca33=_0x9b37b9;this['_commandService'][_0x1fca33(0x1c5)](_0x5f1355['SetWorksheetActiveOperation']['id'],{'unitId':_0x3773eb,'subUnitId':_0x5121fc},{'fromCollab':!0x0});});}}}[_0x4b7f0a(0x21c)](){const _0x4a476b=_0x4b7f0a;this[_0x4a476b(0x21d)][_0x4a476b(0x223)](_0x4a476b(0x1ef));const _0x2b07f9=new Map(),_0x2d3e4d=this['_commandDisposable']=new _0x2fb189[(_0x4a476b(0x211))]();_0x2d3e4d[_0x4a476b(0x1b1)](_0x2fb189['toDisposable'](()=>{const _0x491b77=_0x4a476b;_0x2b07f9[_0x491b77(0x1d8)](_0x3b3a9a=>_0x3b3a9a[_0x491b77(0x14e)]()),_0x2b07f9[_0x491b77(0x1ba)]();})),_0x2d3e4d[_0x4a476b(0x1b1)](this[_0x4a476b(0x212)][_0x4a476b(0x160)](_0x410f3c=>{const _0x4a1fc4=_0x4a476b;var _0x2255d2;if(_0x410f3c['type']!==_0x2fb189[_0x4a1fc4(0x1c9)]['OPERATION']||!this[_0x4a1fc4(0x1de)][_0x4a1fc4(0x151)](_0x410f3c['id']))return;const {id:_0x14e6e0}=_0x410f3c;let _0x1892ac;_0x2b07f9['has'](_0x14e6e0)?_0x1892ac=_0x2b07f9[_0x4a1fc4(0x19a)](_0x14e6e0):(_0x1892ac=new _0x28bb0c[(_0x4a1fc4(0x17f))](),_0x2b07f9[_0x4a1fc4(0x1cd)](_0x14e6e0,_0x1892ac),_0x1892ac[_0x4a1fc4(0x168)](_0x8537c8[_0x4a1fc4(0x1ff)]((_0x2255d2=this[_0x4a1fc4(0x220)][_0x4a1fc4(0x17d)](_0x476263))!=null?_0x2255d2:_0x418a00,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a1fc4(0x1b9)](_0xfd8e56=>{const _0x28a3b4=_0x4a1fc4;this['_collabSession'][_0x28a3b4(0x1b3)]({'eventID':_0x1163d7[_0x28a3b4(0x1ca)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x28a3b4(0x1d2)],'operations':{[_0xfd8e56['id']]:{'id':_0xfd8e56['id'],'params':JSON[_0x28a3b4(0x1fa)](_0xfd8e56[_0x28a3b4(0x218)])}}}},this[_0x28a3b4(0x1d2)]);})),_0x1892ac[_0x4a1fc4(0x223)](_0x410f3c);})),this['_liveShareService'][_0x4a476b(0x1f3)](this['_unitID'])[_0x4a476b(0x1d8)](_0x4ee371=>this[_0x4a476b(0x14f)]['send']({'eventID':_0x1163d7['CollaborationEvent'][_0x4a476b(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ee371['id']]:{'id':_0x4ee371['id'],'params':JSON['stringify'](_0x4ee371[_0x4a476b(0x218)])}}}},this[_0x4a476b(0x1d2)]));}[_0x4b7f0a(0x144)](){const _0x2dacec=_0x4b7f0a;var _0x8e0b80;this[_0x2dacec(0x21d)][_0x2dacec(0x223)](_0x2dacec(0x200)),(_0x8e0b80=this[_0x2dacec(0x1c2)])==null||_0x8e0b80[_0x2dacec(0x18b)](),this[_0x2dacec(0x1c2)]=null;}[_0x4b7f0a(0x182)](){const _0x4dc4ea=_0x4b7f0a;var _0x1d249f;(_0x1d249f=this['_commandDisposable'])==null||_0x1d249f[_0x4dc4ea(0x18b)](),this['_status$'][_0x4dc4ea(0x223)](_0x4dc4ea(0x16c));}[_0x4b7f0a(0x1a9)](){const _0x224b8b=_0x4b7f0a;var _0x49ec6e;this[_0x224b8b(0x21d)][_0x224b8b(0x223)]('idle'),(_0x49ec6e=this[_0x224b8b(0x1c2)])==null||_0x49ec6e[_0x224b8b(0x18b)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xb49b53=_0x4b7f0a;var _0x1edb80;this[_0xb49b53(0x21d)][_0xb49b53(0x223)](_0xb49b53(0x1d9)),(_0x1edb80=this['_commandDisposable'])==null||_0x1edb80['dispose']();}[_0x4b7f0a(0x195)](_0x46c0db){const _0x3cf5b8=_0x4b7f0a;if([_0x3cf5b8(0x1ef),_0x3cf5b8(0x1d9),_0x3cf5b8(0x1fe)][_0x3cf5b8(0x1a3)](this[_0x3cf5b8(0x1f7)])||!_0x46c0db[_0x3cf5b8(0x156)]['presenter']||_0x46c0db['data'][_0x3cf5b8(0x210)]===this[_0x3cf5b8(0x14f)]['getMemberID']())return;this['_status']===_0x3cf5b8(0x200)&&this[_0x3cf5b8(0x182)]();const _0xedda23=_0x46c0db[_0x3cf5b8(0x156)][_0x3cf5b8(0x19f)];Object[_0x3cf5b8(0x228)](_0xedda23)['forEach'](_0x1b82e0=>{const _0x5e386b=_0x3cf5b8;this[_0x5e386b(0x212)][_0x5e386b(0x1c5)](_0x1b82e0['id'],_0x1b82e0[_0x5e386b(0x218)]?JSON[_0x5e386b(0x141)](_0x1b82e0[_0x5e386b(0x218)]):null,{'fromCollab':!0x0});});}[_0x4b7f0a(0x187)](){const _0x8faa40=_0x4b7f0a;var _0x334c78;this['_status$'][_0x8faa40(0x223)]('offline'),(_0x334c78=this[_0x8faa40(0x1c2)])==null||_0x334c78[_0x8faa40(0x18b)]();}[_0x4b7f0a(0x186)](){const _0x5c85ba=_0x4b7f0a;this[_0x5c85ba(0x21d)][_0x5c85ba(0x223)](_0x5c85ba(0x200)),this[_0x5c85ba(0x1bc)]();}},_0xcb6eb3[_0x4b7f0a(0x189)]=_0x22b0dd([_0x3ecf1d(0x2,_0x2fb189[_0x4b7f0a(0x19c)]),_0x3ecf1d(0x3,_0x2fb189['Inject'](_0x2a462c)),_0x3ecf1d(0x4,_0x2fb189[_0x4b7f0a(0x172)])],_0xcb6eb3[_0x4b7f0a(0x189)]);function _0x19643f(){const _0x1dc607=_0x4b7f0a,_0x2582d6=_0x3254bb[_0x1dc607(0x1f8)](_0xcb6eb3['LiveShareController']),_0x423ad5=_0x3254bb[_0x1dc607(0x1f8)](_0x2fb189[_0x1dc607(0x1aa)]),_0x34b768=_0x3254bb[_0x1dc607(0x15a)](()=>_0x423ad5[_0x1dc607(0x1b6)](_0x2fb189[_0x1dc607(0x1a1)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x547851,_0x1d5e40]=_0x31c8bc[_0x1dc607(0x224)](null),[_0x565457,_0x5983a3]=_0x31c8bc[_0x1dc607(0x224)](_0x335447[_0x1dc607(0x202)]),_0x30e8ea=_0x31c8bc[_0x1dc607(0x18c)](null);return _0x31c8bc[_0x1dc607(0x1af)](()=>(_0x34b768&&_0x2582d6[_0x1dc607(0x1dc)](_0x34b768['getUnitId']())[_0x1dc607(0x1f9)](_0x3969ad=>{const _0x562816=_0x1dc607;_0x1d5e40(_0x3969ad),_0x30e8ea['current']=_0x3969ad[_0x562816(0x1f4)][_0x562816(0x1b9)](_0x355c7e=>{_0x5983a3(_0x355c7e);});}),()=>{const _0x416973=_0x1dc607;var _0x3f260b;(_0x3f260b=_0x30e8ea['current'])==null||_0x3f260b[_0x416973(0x1e3)](),_0x30e8ea['current']=null;}),[_0x34b768,_0x2582d6]),_0x547851?_0x1e92d8[_0x1dc607(0x1e8)](_0x36abbf[_0x1dc607(0x14d)],{'align':'end','disabled':_0x565457===_0x335447['OFFLINE'],'className':_0x1dc607(0x21b),'overlay':_0x1e92d8[_0x1dc607(0x1e8)](_0x547fdf,{'status':_0x565457,'coordinator':_0x547851}),'children':_0x1e92d8[_0x1dc607(0x1e8)](_0x1dc607(0x19d),{'className':_0x36abbf[_0x1dc607(0x171)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x565457===_0x335447[_0x1dc607(0x14b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x565457!==_0x335447['OFFLINE']}),'type':_0x1dc607(0x19d),'children':_0x1e92d8['jsx'](_0x46538d,{'className':_0x1dc607(0x178)})})}):null;}function _0x547fdf(_0x1aae44){const _0xf90922=_0x4b7f0a,{status:_0x4d6ca7,coordinator:_0x1064a1}=_0x1aae44;switch(_0x4d6ca7){case _0x335447[_0xf90922(0x202)]:return _0x1e92d8[_0xf90922(0x1e8)](_0x231ddd,{'coordinator':_0x1064a1});case _0x335447[_0xf90922(0x1ea)]:return _0x1e92d8['jsx'](_0x417652,{'coordinator':_0x1064a1});case _0x335447[_0xf90922(0x15c)]:return _0x1e92d8['jsx'](_0x4d0abf,{'coordinator':_0x1064a1});case _0x335447['OFFLINE']:return _0x1e92d8[_0xf90922(0x1e8)](_0x5b6509,{});case _0x335447[_0xf90922(0x13e)]:return _0x1e92d8[_0xf90922(0x1e8)](_0x198a16,{'coordinator':_0x1064a1});default:return null;}}function _0x231ddd(_0x52e4f2){const _0x149d5f=_0x4b7f0a,{coordinator:_0x15260d}=_0x52e4f2;return _0x1e92d8['jsxs'](_0x1e92d8['Fragment'],{'children':[_0x1e92d8[_0x149d5f(0x1e8)](_0x149d5f(0x164),{'className':_0x149d5f(0x183),'children':_0x149d5f(0x1d1)}),_0x1e92d8['jsx'](_0x36abbf['Button'],{'onClick':()=>_0x15260d['tryStartPresenting'](),'children':_0x149d5f(0x16f)})]});}function _0x417652(_0x4114e6){const _0x1691e1=_0x4b7f0a,{coordinator:_0x2a116e}=_0x4114e6;return _0x1e92d8[_0x1691e1(0x188)](_0x1e92d8[_0x1691e1(0x227)],{'children':[_0x1e92d8[_0x1691e1(0x1e8)](_0x1691e1(0x164),{'className':_0x1691e1(0x183),'children':_0x1691e1(0x1df)}),_0x1e92d8['jsx'](_0x36abbf[_0x1691e1(0x208)],{'onClick':()=>_0x2a116e[_0x1691e1(0x193)](),'children':_0x1691e1(0x1fd)})]});}function _0x4d0abf(_0x5f003d){const _0x233a30=_0x4b7f0a,{coordinator:_0x53d669}=_0x5f003d;return _0x1e92d8[_0x233a30(0x188)](_0x1e92d8[_0x233a30(0x227)],{'children':[_0x1e92d8[_0x233a30(0x1e8)](_0x233a30(0x164),{'className':_0x233a30(0x183),'children':_0x233a30(0x152)}),_0x1e92d8[_0x233a30(0x1e8)](_0x36abbf['Button'],{'variant':'text','onClick':()=>_0x53d669[_0x233a30(0x18e)](),'children':'Start\x20following'})]});}function _0x198a16(_0x1481bb){const _0x2b0ab2=_0x4b7f0a,{coordinator:_0x1afd2f}=_0x1481bb;return _0x1e92d8[_0x2b0ab2(0x188)](_0x1e92d8['Fragment'],{'children':[_0x1e92d8[_0x2b0ab2(0x1e8)](_0x2b0ab2(0x164),{'className':_0x2b0ab2(0x183),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x1e92d8[_0x2b0ab2(0x1e8)](_0x36abbf[_0x2b0ab2(0x208)],{'variant':_0x2b0ab2(0x169),'onClick':()=>_0x1afd2f['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x5b6509(){const _0x410774=_0x4b7f0a;return _0x1e92d8[_0x410774(0x1e8)](_0x1e92d8[_0x410774(0x227)],{'children':_0x410774(0x154)});}var _0x10e34f=Object[_0x4b7f0a(0x1a8)],_0x4255c7=(_0x1d7270,_0x160754,_0x3764e3,_0x354d0f)=>{const _0x44854c=_0x4b7f0a;for(var _0x25cb69=_0x354d0f>0x1?void 0x0:_0x354d0f?_0x10e34f(_0x160754,_0x3764e3):_0x160754,_0xeed159=_0x1d7270[_0x44854c(0x17c)]-0x1,_0x97b2c7;_0xeed159>=0x0;_0xeed159--)(_0x97b2c7=_0x1d7270[_0xeed159])&&(_0x25cb69=_0x97b2c7(_0x25cb69)||_0x25cb69);return _0x25cb69;},_0x47dd44=(_0x1aa74f,_0x5729b8)=>(_0x1576d0,_0xfc7655)=>_0x5729b8(_0x1576d0,_0xfc7655,_0x1aa74f);_0xcb6eb3[_0x4b7f0a(0x1ac)]=class extends _0x2fb189[_0x4b7f0a(0x181)]{constructor(_0x14ff61,_0x10a47d){const _0xf294de=_0x4b7f0a;super(),this[_0xf294de(0x201)]=_0x14ff61,this['_uiPartsService']=_0x10a47d,this[_0xf294de(0x1ae)]();}[_0x4b7f0a(0x1ae)](){const _0x4e9ea1=_0x4b7f0a;this[_0x4e9ea1(0x1f2)](this[_0x4e9ea1(0x20f)][_0x4e9ea1(0x1c0)](_0x3254bb[_0x4e9ea1(0x1d0)][_0x4e9ea1(0x1d3)],()=>_0x3254bb['connectInjector'](_0x19643f,this[_0x4e9ea1(0x201)])));}},_0xcb6eb3[_0x4b7f0a(0x1ac)]=_0x4255c7([_0x47dd44(0x0,_0x2fb189[_0x4b7f0a(0x177)](_0x2fb189[_0x4b7f0a(0x197)])),_0x47dd44(0x1,_0x3254bb[_0x4b7f0a(0x165)])],_0xcb6eb3[_0x4b7f0a(0x1ac)]);const _0x61305f='live-share.config',_0xbff4aa={};var _0x5e230b=Object['getOwnPropertyDescriptor'],_0x4c1ff1=(_0x11ad2f,_0x6754c6,_0x31a030,_0x2ea320)=>{const _0x4d3ca4=_0x4b7f0a;for(var _0xa4df51=_0x2ea320>0x1?void 0x0:_0x2ea320?_0x5e230b(_0x6754c6,_0x31a030):_0x6754c6,_0x38f617=_0x11ad2f[_0x4d3ca4(0x17c)]-0x1,_0x3580c7;_0x38f617>=0x0;_0x38f617--)(_0x3580c7=_0x11ad2f[_0x38f617])&&(_0xa4df51=_0x3580c7(_0xa4df51)||_0xa4df51);return _0xa4df51;},_0x21dbc8=(_0x5cf117,_0x436215)=>(_0x3ce4f3,_0x346dae)=>_0x436215(_0x3ce4f3,_0x346dae,_0x5cf117);let _0x56d428=class extends _0x2fb189[_0x4b7f0a(0x181)]{constructor(_0x3585e2){const _0x146109=_0x4b7f0a;super(),this[_0x146109(0x1de)]=_0x3585e2,this['_init']();}['_init'](){const _0x5a8695=_0x4b7f0a;[_0x54d190[_0x5a8695(0x1a5)]['id'],_0x54d190[_0x5a8695(0x1c1)]['id'],_0x5f1355[_0x5a8695(0x157)]['id']][_0x5a8695(0x1d8)](_0x154b98=>{const _0x539585=_0x5a8695;this[_0x539585(0x1f2)](this[_0x539585(0x1de)][_0x539585(0x17e)](_0x154b98));});}};_0x56d428=_0x4c1ff1([_0x21dbc8(0x0,_0x2fb189[_0x4b7f0a(0x177)](_0x2a462c))],_0x56d428);var _0x482aae=Object[_0x4b7f0a(0x19b)],_0x54d6cf=Object[_0x4b7f0a(0x1a8)],_0x4beccc=(_0x50ccf9,_0x4d7d93,_0x19f539)=>_0x4d7d93 in _0x50ccf9?_0x482aae(_0x50ccf9,_0x4d7d93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19f539}):_0x50ccf9[_0x4d7d93]=_0x19f539,_0x518054=(_0x3b8b29,_0xb33ba6,_0x4d4efe,_0x366540)=>{const _0x3dbd92=_0x4b7f0a;for(var _0x2edce3=_0x366540>0x1?void 0x0:_0x366540?_0x54d6cf(_0xb33ba6,_0x4d4efe):_0xb33ba6,_0x23fd8e=_0x3b8b29[_0x3dbd92(0x17c)]-0x1,_0xb05cf4;_0x23fd8e>=0x0;_0x23fd8e--)(_0xb05cf4=_0x3b8b29[_0x23fd8e])&&(_0x2edce3=_0xb05cf4(_0x2edce3)||_0x2edce3);return _0x2edce3;},_0x11541=(_0x2906cb,_0x74fc4f)=>(_0x1753fe,_0x2ef04d)=>_0x74fc4f(_0x1753fe,_0x2ef04d,_0x2906cb),_0x5b401f=(_0x1eecea,_0x5f28b6,_0x30411e)=>_0x4beccc(_0x1eecea,typeof _0x5f28b6!=_0x4b7f0a(0x17a)?_0x5f28b6+'':_0x5f28b6,_0x30411e);const _0x230059=_0x4b7f0a(0x15d);_0xcb6eb3[_0x4b7f0a(0x1a4)]=class extends _0x2fb189[_0x4b7f0a(0x159)]{constructor(_0x210a21=_0xbff4aa,_0x59baba,_0x37f5ce){const _0x5783c4=_0x4b7f0a;super(),this[_0x5783c4(0x1c8)]=_0x210a21,this[_0x5783c4(0x201)]=_0x59baba,this[_0x5783c4(0x220)]=_0x37f5ce;const {..._0x41ac8a}=_0x2fb189[_0x5783c4(0x1a6)]({},_0xbff4aa,this['_config']);this['_configService'][_0x5783c4(0x1a7)](_0x61305f,_0x41ac8a);}[_0x4b7f0a(0x173)](){const _0x26089c=_0x4b7f0a;_0x2fb189['registerDependencies'](this[_0x26089c(0x201)],_0x2fb189[_0x26089c(0x179)]([[_0x2a462c],[_0xcb6eb3['LiveShareController']],[_0x56d428],[_0xcb6eb3[_0x26089c(0x1ac)]]],this[_0x26089c(0x1c8)]['override'])),_0x2fb189[_0x26089c(0x221)](this[_0x26089c(0x201)],[[_0x56d428]]);}['onRendered'](){const _0x431fd2=_0x4b7f0a;_0x2fb189['touchDependencies'](this[_0x431fd2(0x201)],[[_0xcb6eb3[_0x431fd2(0x1ac)]]]);}},_0x5b401f(_0xcb6eb3[_0x4b7f0a(0x1a4)],_0x4b7f0a(0x15b),_0x2fb189[_0x4b7f0a(0x1a1)][_0x4b7f0a(0x203)]),_0x5b401f(_0xcb6eb3['UniverLiveSharePlugin'],_0x4b7f0a(0x176),_0x230059),_0xcb6eb3[_0x4b7f0a(0x1a4)]=_0x518054([_0x2fb189[_0x4b7f0a(0x20c)](_0x461dcf['UniverCollaborationClientPlugin']),_0x11541(0x1,_0x2fb189['Inject'](_0x2fb189['Injector'])),_0x11541(0x2,_0x2fb189[_0x4b7f0a(0x19c)])],_0xcb6eb3[_0x4b7f0a(0x1a4)]),_0xcb6eb3['LiveShare']=_0x19643f,_0xcb6eb3[_0x4b7f0a(0x1c6)]=_0x2a462c,_0xcb6eb3[_0x4b7f0a(0x1b8)]=_0x335447,Object[_0x4b7f0a(0x19b)](_0xcb6eb3,Symbol[_0x4b7f0a(0x170)],{'value':_0x4b7f0a(0x20e)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.13.0-insiders.
|
|
3
|
+
"version": "0.13.0-insiders.20251223-857805c",
|
|
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.13.0-insiders.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs-pro/collaboration
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets-ui": "0.13.0-insiders.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/ui": "0.13.0-insiders.
|
|
60
|
+
"@univerjs-pro/collaboration-client": "0.13.0-insiders.20251223-857805c",
|
|
61
|
+
"@univerjs/design": "0.13.0-insiders.20251223-857805c",
|
|
62
|
+
"@univerjs-pro/collaboration": "0.13.0-insiders.20251223-857805c",
|
|
63
|
+
"@univerjs/engine-render": "0.13.0-insiders.20251223-857805c",
|
|
64
|
+
"@univerjs/sheets": "0.13.0-insiders.20251223-857805c",
|
|
65
|
+
"@univerjs/sheets-ui": "0.13.0-insiders.20251223-857805c",
|
|
66
|
+
"@univerjs/core": "0.13.0-insiders.20251223-857805c",
|
|
67
|
+
"@univerjs/ui": "0.13.0-insiders.20251223-857805c"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|