@univerjs-pro/live-share 0.13.0-insiders.20251220-0a5ea4d → 0.14.0-insiders.20251222-4efcfbb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x403aa7=_0x11ce;(function(_0x35775c,_0x53336c){const _0x50d272=_0x11ce,_0x27ee27=_0x35775c();while(!![]){try{const _0x330918=-parseInt(_0x50d272(0x111))/0x1*(-parseInt(_0x50d272(0x101))/0x2)+-parseInt(_0x50d272(0x127))/0x3*(parseInt(_0x50d272(0x10b))/0x4)+-parseInt(_0x50d272(0x125))/0x5*(parseInt(_0x50d272(0x112))/0x6)+-parseInt(_0x50d272(0x110))/0x7*(parseInt(_0x50d272(0x11f))/0x8)+-parseInt(_0x50d272(0x109))/0x9+-parseInt(_0x50d272(0xfe))/0xa+parseInt(_0x50d272(0x107))/0xb*(parseInt(_0x50d272(0x119))/0xc);if(_0x330918===_0x53336c)break;else _0x27ee27['push'](_0x27ee27['shift']());}catch(_0x66a222){_0x27ee27['push'](_0x27ee27['shift']());}}}(_0x4568,0x4065c));function _0x4568(){const _0x2f67a0=['IDLE','2119230KBySNW','SetScrollOperation','92796NiQLWX','FRange','startFollowing','extend','FEnum','2078678fATNCq','2433WJeYGk','114906EgoVei','IRenderManagerService','FUniver','stopPresenting','getActiveSheet','LiveShareController','getUnitId','5426904CRyxfX','getSheetId','startPresenting','getId','startColumn','PRESENTING','8AIkDXF','getLiveShareCoordinatorSync','LiveShareStatusEnum','_injector','getActiveWorkbook','stopFollowing','35SVeQmF','getLiveShareStatus','3YvwydV','syncExecuteCommand','LiveShareStatus','459190Dicjuo','No\x20active\x20workbook\x20found.','get','78peujsv','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','getStatus','tryStartPresenting','executeCommand','22uVttSg'];_0x4568=function(){return _0x2f67a0;};return _0x4568();}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[_0x403aa7(0x10c)]{['_initialize'](_0x172380,_0x9a4963,_0x30966d,_0x4753a2,_0xf700bf){const _0x42feda=_0x403aa7,_0xc0751f=_0x172380['get'](n[_0x42feda(0x117)]),_0x1f5c04=_0x172380[_0x42feda(0x100)](g[_0x42feda(0x113)]),_0x357d49=_0x9a4963[_0x42feda(0x118)](),_0x3a5184=_0x9a4963[_0x42feda(0x116)](),_0x5d2a80=_0xc0751f[_0x42feda(0x120)](_0x357d49);(_0x5d2a80==null?void 0x0:_0x5d2a80['getStatus']())!==n[_0x42feda(0xfd)][_0x42feda(0x11e)]||(_0x30966d[_0x42feda(0x11a)]()!==_0x3a5184[_0x42feda(0x11a)]()&&this['_commandService'][_0x42feda(0x106)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x357d49,'subUnitId':_0x30966d[_0x42feda(0x11a)]()}),!_0x1f5c04['getRenderById'](_0x357d49))||_0xf700bf[_0x42feda(0xfc)](f[_0x42feda(0x10a)]['id'],{'unitId':_0x9a4963['getUnitId'](),'sheetId':_0x30966d[_0x42feda(0x11a)](),'sheetViewStartRow':_0x4753a2[_0x42feda(0x103)],'sheetViewStartColumn':_0x4753a2[_0x42feda(0x11d)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x403aa7(0x10c)][_0x403aa7(0x10e)](w);function _0x11ce(_0x1a0e7e,_0x144256){_0x1a0e7e=_0x1a0e7e-0xfc;const _0x456828=_0x4568();let _0x11cef5=_0x456828[_0x1a0e7e];return _0x11cef5;}class C extends a[_0x403aa7(0x114)]{[_0x403aa7(0x126)](){const _0x47d3dc=_0x403aa7;var _0x49e15e,_0x49f857;const _0x5d4c24=this[_0x47d3dc(0x122)][_0x47d3dc(0x100)](n[_0x47d3dc(0x117)]),_0x3559fd=(_0x49e15e=this[_0x47d3dc(0x123)]())==null?void 0x0:_0x49e15e[_0x47d3dc(0x11c)]();if(!_0x3559fd)throw new Error('No\x20active\x20workbook\x20found.');const _0x3cdfcf=_0x5d4c24[_0x47d3dc(0x120)](_0x3559fd);return(_0x49f857=_0x3cdfcf==null?void 0x0:_0x3cdfcf[_0x47d3dc(0x104)]())!=null?_0x49f857:n['LiveShareStatus'][_0x47d3dc(0x108)];}['startFollowing'](){const _0x1f3214=_0x403aa7;var _0xc4c81c;const _0x34884a=this[_0x1f3214(0x122)][_0x1f3214(0x100)](n['LiveShareController']),_0x3cd23b=(_0xc4c81c=this[_0x1f3214(0x123)]())==null?void 0x0:_0xc4c81c[_0x1f3214(0x11c)]();if(!_0x3cd23b)throw new Error(_0x1f3214(0xff));const _0x3d7992=_0x34884a[_0x1f3214(0x120)](_0x3cd23b);if(!_0x3d7992)throw new Error(_0x1f3214(0x102));_0x3d7992[_0x1f3214(0x10d)]();}['stopFollowing'](){const _0x5932fc=_0x403aa7;var _0x47fec4;const _0x5cf497=this[_0x5932fc(0x122)][_0x5932fc(0x100)](n['LiveShareController']),_0x278da2=(_0x47fec4=this[_0x5932fc(0x123)]())==null?void 0x0:_0x47fec4[_0x5932fc(0x11c)]();if(!_0x278da2)throw new Error(_0x5932fc(0xff));const _0x7d33bf=_0x5cf497[_0x5932fc(0x120)](_0x278da2);if(!_0x7d33bf)throw new Error(_0x5932fc(0x102));_0x7d33bf[_0x5932fc(0x124)]();}[_0x403aa7(0x11b)](){const _0x47a89b=_0x403aa7;var _0xe1ba2c;const _0x4058d4=this['_injector'][_0x47a89b(0x100)](n[_0x47a89b(0x117)]),_0x31b0f9=(_0xe1ba2c=this[_0x47a89b(0x123)]())==null?void 0x0:_0xe1ba2c[_0x47a89b(0x11c)]();if(!_0x31b0f9)throw new Error(_0x47a89b(0xff));const _0x4ff67e=_0x4058d4[_0x47a89b(0x120)](_0x31b0f9);if(!_0x4ff67e)throw new Error(_0x47a89b(0x102));_0x4ff67e[_0x47a89b(0x105)]();}[_0x403aa7(0x115)](){const _0x44af46=_0x403aa7;var _0xc5d278;const _0xbf03d=this[_0x44af46(0x122)][_0x44af46(0x100)](n['LiveShareController']),_0x72de94=(_0xc5d278=this['getActiveWorkbook']())==null?void 0x0:_0xc5d278[_0x44af46(0x11c)]();if(!_0x72de94)throw new Error('No\x20active\x20workbook\x20found.');const _0x1dcc22=_0xbf03d[_0x44af46(0x120)](_0x72de94);if(!_0x1dcc22)throw new Error(_0x44af46(0x102));_0x1dcc22[_0x44af46(0x115)]();}}a[_0x403aa7(0x114)][_0x403aa7(0x10e)](C);class L extends a['FEnum']{get[_0x403aa7(0x121)](){const _0x1c75ea=_0x403aa7;return n[_0x1c75ea(0xfd)];}}a[_0x403aa7(0x10f)][_0x403aa7(0x10e)](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 _0x4d6cd7=_0x14b0;(function(_0x1ac771,_0x5efa2a){const _0x317f10=_0x14b0,_0x144496=_0x1ac771();while(!![]){try{const _0x5163fb=parseInt(_0x317f10(0x1c3))/0x1+parseInt(_0x317f10(0x228))/0x2+-parseInt(_0x317f10(0x19a))/0x3+-parseInt(_0x317f10(0x18f))/0x4*(-parseInt(_0x317f10(0x1dc))/0x5)+-parseInt(_0x317f10(0x1a3))/0x6*(parseInt(_0x317f10(0x23c))/0x7)+-parseInt(_0x317f10(0x1a6))/0x8+-parseInt(_0x317f10(0x1e4))/0x9*(-parseInt(_0x317f10(0x22f))/0xa);if(_0x5163fb===_0x5efa2a)break;else _0x144496['push'](_0x144496['shift']());}catch(_0x284621){_0x144496['push'](_0x144496['shift']());}}}(_0x35c5,0x6e887));var T=Object[_0x4d6cd7(0x245)],U=(_0x2542f7,_0x3dbddf,_0x56ca51)=>_0x3dbddf in _0x2542f7?T(_0x2542f7,_0x3dbddf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56ca51}):_0x2542f7[_0x3dbddf]=_0x56ca51,_=(_0x503609,_0x2cf5ed,_0x26ff33)=>U(_0x503609,typeof _0x2cf5ed!=_0x4d6cd7(0x1d6)?_0x2cf5ed+'':_0x2cf5ed,_0x26ff33);Object[_0x4d6cd7(0x245)](exports,Symbol[_0x4d6cd7(0x197)],{'value':_0x4d6cd7(0x1d8)});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:_0x95e7ab,..._0x2318e5}){const _0x274b05=_0x4d6cd7,{icon:_0x4a01bf,id:_0x142bba,className:_0x1669a7,extend:_0x3827fa,..._0x1eeefa}=_0x2318e5,_0x27da1f=(_0x274b05(0x196)+_0x142bba+'\x20'+(_0x1669a7||''))['trim'](),_0x20b9bb=v[_0x274b05(0x20b)]('_'+H());return j(_0x4a01bf,''+_0x142bba,{'defIds':_0x4a01bf['defIds'],'idSuffix':_0x20b9bb[_0x274b05(0x201)]},{'ref':_0x95e7ab,'className':_0x27da1f,..._0x1eeefa},_0x3827fa);}function j(_0x29bd86,_0x56ddf3,_0x1cb32e,_0x40ae0b,_0x1788b4){const _0x1c3143=_0x4d6cd7;return v[_0x1c3143(0x198)](_0x29bd86['tag'],{'key':_0x56ddf3,...y(_0x29bd86,_0x1cb32e,_0x1788b4),..._0x40ae0b},(F(_0x29bd86,_0x1cb32e)[_0x1c3143(0x20f)]||[])['map']((_0x571bd6,_0x5429ed)=>j(_0x571bd6,_0x56ddf3+'-'+_0x29bd86['tag']+'-'+_0x5429ed,_0x1cb32e,void 0x0,_0x1788b4)));}function y(_0x1cb451,_0xad133f,_0x4ef970){const _0x381152=_0x4d6cd7,_0x54fb1={..._0x1cb451[_0x381152(0x202)]};_0x4ef970!=null&&_0x4ef970[_0x381152(0x1f9)]&&_0x54fb1['fill']===_0x381152(0x1f9)&&(_0x54fb1[_0x381152(0x1a2)]=_0x4ef970[_0x381152(0x1f9)]),_0x1cb451[_0x381152(0x21d)]===_0x381152(0x1eb)&&_0x54fb1['id']&&(_0x54fb1['id']=_0x54fb1['id']+_0xad133f[_0x381152(0x191)]),Object[_0x381152(0x24c)](_0x54fb1)[_0x381152(0x229)](([_0x414d84,_0x36ca37])=>{const _0x3aac61=_0x381152;_0x414d84===_0x3aac61(0x1eb)&&typeof _0x36ca37==_0x3aac61(0x1f0)&&(_0x54fb1[_0x414d84]=_0x36ca37[_0x3aac61(0x209)](/url\(#(.*)\)/,_0x3aac61(0x1fb)+_0xad133f[_0x3aac61(0x191)]+')'));});const {defIds:_0x5174ad}=_0xad133f;return!_0x5174ad||_0x5174ad['length']===0x0||(_0x1cb451[_0x381152(0x21d)]===_0x381152(0x246)&&_0x54fb1['xlink:href']&&(_0x54fb1[_0x381152(0x216)]=_0x54fb1[_0x381152(0x216)]+_0xad133f[_0x381152(0x191)]),Object[_0x381152(0x24c)](_0x54fb1)['forEach'](([_0x327876,_0x2a4f58])=>{const _0x35c35a=_0x381152;typeof _0x2a4f58==_0x35c35a(0x1f0)&&(_0x54fb1[_0x327876]=_0x2a4f58[_0x35c35a(0x209)](/url\(#(.*)\)/,'url(#$1'+_0xad133f[_0x35c35a(0x191)]+')'));})),_0x54fb1;}function F(_0x84d2bf,_0x42d126){const _0x571c92=_0x4d6cd7;var _0x3f204b;const {defIds:_0x1b0915}=_0x42d126;return!_0x1b0915||_0x1b0915['length']===0x0?_0x84d2bf:_0x84d2bf[_0x571c92(0x21d)]==='defs'&&((_0x3f204b=_0x84d2bf[_0x571c92(0x20f)])!=null&&_0x3f204b[_0x571c92(0x1b7)])?{..._0x84d2bf,'children':_0x84d2bf[_0x571c92(0x20f)][_0x571c92(0x23f)](_0x125528=>typeof _0x125528[_0x571c92(0x202)]['id']==_0x571c92(0x1f0)&&_0x1b0915&&_0x1b0915[_0x571c92(0x244)](_0x125528[_0x571c92(0x202)]['id'])?{..._0x125528,'attrs':{..._0x125528[_0x571c92(0x202)],'id':_0x125528['attrs']['id']+_0x42d126[_0x571c92(0x191)]}}:_0x125528)}:_0x84d2bf;}function H(){const _0x50b02e=_0x4d6cd7;return Math[_0x50b02e(0x1ed)]()['toString'](0x24)[_0x50b02e(0x20c)](0x2,0x8);}x[_0x4d6cd7(0x224)]='UniverIcon';const V={'tag':_0x4d6cd7(0x210),'attrs':{'xmlns':_0x4d6cd7(0x206),'fill':'none','viewBox':_0x4d6cd7(0x1ef),'width':_0x4d6cd7(0x1bc),'height':_0x4d6cd7(0x1bc)},'children':[{'tag':_0x4d6cd7(0x1b1),'attrs':{'fill':_0x4d6cd7(0x24e),'d':_0x4d6cd7(0x22c)}},{'tag':_0x4d6cd7(0x1b1),'attrs':{'fill':_0x4d6cd7(0x24e),'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':_0x4d6cd7(0x24d),'clipRule':_0x4d6cd7(0x24d)}}]},R=v['forwardRef'](function(_0x1ea91c,_0x208bcb){const _0x230513=_0x4d6cd7;return v[_0x230513(0x198)](x,Object[_0x230513(0x24a)]({},_0x1ea91c,{'id':'live-share-icon','ref':_0x208bcb,'icon':V}));});function _0x35c5(){const _0x1ca64b=['_handleOnline','useState','OPERATION','delete','useObservable','registerComponent','send','_univerInstanceService','parse','live-share.config','UniverLiveSharePlugin','UNIVER_SHEET','symbol','Injector','Module','disposeWithMe','getOwnPropertyDescriptor','_status$','5TLszGE','getUnitId','_commandDisposable','type','jsx','executeCommand','requireSession','get','45uOTpPh','NOT_FOLLOWING','_handleOffline','clsx','not-following','_uiPartsService','complete','mask','Fragment','random','takeUntil','0\x200\x2017\x2017','string','mergeOverrideWithDependencies','set','_unitID','_startFollowing','default','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onCommandExecuted','status$','colorChannel1','LiveShareStatus','url(#$1','OFFLINE','onStarting','Button','_collabSession','getCurrentTypeOfUnit$','current','attrs','_reporters','UNIVER_UNKNOWN','useEffect','http://www.w3.org/2000/svg','idle','parseProtocolChangeset','replace','_startLiveShareCoordinator','useRef','substring','LIVESHARE_NEW_HOST','reverse','children','svg','getLiveShareCoordinator','_handleNewChangeSets','CommandType','UniverInstanceType','throttleTime','xlink:href','_stopFollowing','IUniverInstanceService','following','_handleOperation','asObservable','SetZoomRatioOperation','tag','jsxs','next','stopPresenting','then','touchDependencies','createInstance','displayName','sheet','stringify','_liveShareService','1003096vWuVGS','forEach','add','Disposable','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','_startPresenting','getStatus','2545800vcRTqv','_handleNewHost','getLiveShareCoordinatorSync','SAME_OPERATION_SHARE_INTERVAL','Present\x20this\x20document','toDisposable','startFollowing','Start\x20following','SessionStatus','_entities','button','pluginName','stopFollowing','916195mYwNLS','has','_collabSessionService','map','shouldShareOperation','data','subscribe','univer-size-4','includes','defineProperty','use','dispose$','UNIVER_LIVE_SHARE_PLUGIN','from','assign','SetWorksheetActiveOperation','entries','evenodd','currentColor','Start','LiveShareIcon','params','presenter','Plugin','_status','_injector','RxDisposable','LIVESHARE_OPERATION','UniverCollaborationClientPlugin','You\x27are\x20offline.','getMemberID','unsubscribe','getValue','find','_stopPresenting','DesktopLiveShareController','tryStartPresenting','pipe','offline','454988wGcbyL','presenting','idSuffix','LiveShareController','_presenter','InsertSheetMutation','HEADER_MENU','univerjs-icon\x20univerjs-icon-','toStringTag','createElement','init','2586570yRfgBW','LiveShareCoordinator','PRESENTING','dispose','Subject','Stop\x20presenting','setConfig','_commandService','fill','18SLAqUs','univer-mb-3\x20univer-w-full\x20univer-text-sm','Inject','1955880QrxGnO','unitId','CollaborationSessionService','div','clear','_handleTerminate','getInitialStates','merge','registerSharedOperation','IConfigService','ICommandService','path','onRendered','_mountLiveShare','_sharedOperations','IDLE','LiveShareService','length','_init','operations','FOLLOWING','_fetchOperations','1em','memberID','CollaborationEvent','useDependency','SetScrollOperation','You\x27re\x20presenting\x20the\x20document','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','63878KfOFpP','connectInjector','_config','sessionStatus$','_configService','text','You\x27re\x20following\x20the\x20presenter'];_0x35c5=function(){return _0x1ca64b;};return _0x35c5();}R[_0x4d6cd7(0x224)]=_0x4d6cd7(0x250);class E extends o[_0x4d6cd7(0x22b)]{constructor(){const _0xccf56=_0x4d6cd7;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0xccf56(0x203),new Set());}[_0x4d6cd7(0x1ae)](_0x7651a5){const _0x5d6d2=_0x4d6cd7;return this[_0x5d6d2(0x1b4)]['add'](_0x7651a5),o[_0x5d6d2(0x234)](()=>this[_0x5d6d2(0x1b4)][_0x5d6d2(0x1cd)](_0x7651a5));}['registerInitialStateReporter'](_0x3018dc){const _0x1201e5=_0x4d6cd7;return this[_0x1201e5(0x203)][_0x1201e5(0x22a)](_0x3018dc),o['toDisposable'](()=>this[_0x1201e5(0x203)][_0x1201e5(0x1cd)](_0x3018dc));}[_0x4d6cd7(0x240)](_0x4bf140){const _0x4d5e72=_0x4d6cd7;return this[_0x4d5e72(0x1b4)][_0x4d5e72(0x23d)](_0x4bf140);}['getInitialStates'](_0x257148){const _0x3d4836=_0x4d6cd7;return Array[_0x3d4836(0x249)](this[_0x3d4836(0x203)])[_0x3d4836(0x23f)](_0xf89f16=>_0xf89f16(_0x257148));}}var M=Object[_0x4d6cd7(0x1da)],P=(_0x142957,_0x474d45,_0xe10c59,_0x4d2897)=>{const _0x425117=_0x4d6cd7;for(var _0x341266=_0x4d2897>0x1?void 0x0:_0x4d2897?M(_0x474d45,_0xe10c59):_0x474d45,_0x5c908d=_0x142957[_0x425117(0x1b7)]-0x1,_0x5c445b;_0x5c908d>=0x0;_0x5c908d--)(_0x5c445b=_0x142957[_0x5c908d])&&(_0x341266=_0x5c445b(_0x341266)||_0x341266);return _0x341266;},S=(_0x539ac9,_0x1c2e9c)=>(_0x53f0f8,_0x41160d)=>_0x1c2e9c(_0x53f0f8,_0x41160d,_0x539ac9);exports['LiveShareController']=class extends o[_0x4d6cd7(0x256)]{constructor(_0x1c0802,_0x1313c2,_0x1f033c){const _0x2a4995=_0x4d6cd7;super(),_(this,_0x2a4995(0x238),new Map()),(this[_0x2a4995(0x1d1)]=_0x1c0802,this['_injector']=_0x1313c2,this[_0x2a4995(0x23e)]=_0x1f033c,this[_0x2a4995(0x1b8)]());}async[_0x4d6cd7(0x211)](_0x3b2521){const _0x1281a2=_0x4d6cd7;return this[_0x1281a2(0x238)][_0x1281a2(0x23d)](_0x3b2521)||await this['_startLiveShareCoordinator'](_0x3b2521),this[_0x1281a2(0x238)][_0x1281a2(0x1e3)](_0x3b2521);}[_0x4d6cd7(0x231)](_0xf46f7d){const _0x473afd=_0x4d6cd7;var _0x210982;return(_0x210982=this[_0x473afd(0x238)][_0x473afd(0x1e3)](_0xf46f7d))!=null?_0x210982:null;}[_0x4d6cd7(0x1b8)](){const _0x1e94f2=_0x4d6cd7;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1e94f2(0x18d)](I[_0x1e94f2(0x1ee)](this[_0x1e94f2(0x247)]))[_0x1e94f2(0x242)](async _0xb51f9d=>{const _0x33f01c=_0x1e94f2,_0x3cd3fb=_0xb51f9d[_0x33f01c(0x1dd)]();this['_entities']['has'](_0x3cd3fb)||this[_0x33f01c(0x20a)](_0x3cd3fb);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x1e94f2(0x214)]['UNIVER_SHEET'])['pipe'](I[_0x1e94f2(0x1ee)](this[_0x1e94f2(0x247)]))[_0x1e94f2(0x242)](_0x338f2f=>{const _0x1a6d81=_0x1e94f2,_0x449722=_0x338f2f[_0x1a6d81(0x1dd)](),_0x317228=this[_0x1a6d81(0x238)][_0x1a6d81(0x1e3)](_0x449722);_0x317228==null||_0x317228['dispose']();});}async['_startLiveShareCoordinator'](_0x87f07a){const _0x22f2fb=_0x4d6cd7,_0x27727c=await this['_collabSessionService'][_0x22f2fb(0x1e2)](_0x87f07a),_0x446008=this['_injector'][_0x22f2fb(0x223)](exports[_0x22f2fb(0x19b)],_0x87f07a,_0x27727c);return _0x446008[_0x22f2fb(0x199)](),this[_0x22f2fb(0x238)]['set'](_0x87f07a,_0x446008),_0x446008;}},exports[_0x4d6cd7(0x192)]=P([S(0x0,o[_0x4d6cd7(0x218)]),S(0x1,o[_0x4d6cd7(0x1a5)](o[_0x4d6cd7(0x1d7)])),S(0x2,o[_0x4d6cd7(0x1a5)](b[_0x4d6cd7(0x1a8)]))],exports[_0x4d6cd7(0x192)]);var u=(_0x9fa077=>(_0x9fa077['OFFLINE']=_0x4d6cd7(0x18e),_0x9fa077[_0x4d6cd7(0x1b5)]='idle',_0x9fa077['FOLLOWING']=_0x4d6cd7(0x219),_0x9fa077[_0x4d6cd7(0x1e5)]=_0x4d6cd7(0x1e8),_0x9fa077[_0x4d6cd7(0x19c)]=_0x4d6cd7(0x190),_0x9fa077))(u||{});const k=_0x4d6cd7(0x232),q=0xc8;exports[_0x4d6cd7(0x19b)]=class extends o[_0x4d6cd7(0x256)]{constructor(_0x3c57d4,_0x1b5898,_0x42d6f4,_0x116ce9,_0x5272d8){const _0x4d2583=_0x4d6cd7;super(),_(this,_0x4d2583(0x1db),new O['BehaviorSubject'](_0x4d2583(0x207))),_(this,_0x4d2583(0x1f8),this['_status$'][_0x4d2583(0x21b)]()),_(this,_0x4d2583(0x1b8),!0x1),_(this,'_commandDisposable',null),_(this,_0x4d2583(0x193),null),(this[_0x4d2583(0x1f3)]=_0x3c57d4,this[_0x4d2583(0x1ff)]=_0x1b5898,this[_0x4d2583(0x1c7)]=_0x42d6f4,this['_liveShareService']=_0x116ce9,this[_0x4d2583(0x1a1)]=_0x5272d8);}get[_0x4d6cd7(0x254)](){const _0x347bd9=_0x4d6cd7;return this['_status$'][_0x347bd9(0x188)]();}[_0x4d6cd7(0x19d)](){const _0x3374e5=_0x4d6cd7;var _0x53e345;(_0x53e345=this[_0x3374e5(0x1de)])==null||_0x53e345[_0x3374e5(0x19d)](),this[_0x3374e5(0x1db)][_0x3374e5(0x21f)](_0x3374e5(0x207)),this[_0x3374e5(0x1db)][_0x3374e5(0x1ea)]();}[_0x4d6cd7(0x22e)](){const _0xdffdb=_0x4d6cd7;return this[_0xdffdb(0x254)];}[_0x4d6cd7(0x199)](){const _0x4d64b8=_0x4d6cd7;this[_0x4d64b8(0x1b8)]||(this[_0x4d64b8(0x1b8)]=!0x0,this[_0x4d64b8(0x1ff)][_0x4d64b8(0x1c6)]['pipe'](I[_0x4d64b8(0x1ee)](this[_0x4d64b8(0x247)]))[_0x4d64b8(0x242)](_0x32cdaf=>{const _0x3b5682=_0x4d64b8;switch(_0x32cdaf){case b[_0x3b5682(0x237)][_0x3b5682(0x1fc)]:this[_0x3b5682(0x1e6)]();break;case b[_0x3b5682(0x237)]['ONLINE']:this[_0x3b5682(0x1ca)]();break;}}),this[_0x4d64b8(0x1ff)]['event$'][_0x4d64b8(0x18d)](I[_0x4d64b8(0x1ee)](this[_0x4d64b8(0x247)]))[_0x4d64b8(0x242)](_0x5fa8c8=>{const _0x5d063a=_0x4d64b8,{eventID:_0x48df9a}=_0x5fa8c8;switch(_0x48df9a){case d[_0x5d063a(0x1be)][_0x5d063a(0x20d)]:this[_0x5d063a(0x230)](_0x5fa8c8);break;case d[_0x5d063a(0x1be)]['LIVESHARE_OPERATION']:this[_0x5d063a(0x21a)](_0x5fa8c8);break;case d[_0x5d063a(0x1be)]['LIVESHARE_TERMINATE']:this[_0x5d063a(0x1ab)]();break;case d[_0x5d063a(0x1be)]['NEW_CHANGESETS']:this[_0x5d063a(0x212)](_0x5fa8c8);break;}}));}[_0x4d6cd7(0x18c)](){const _0x3512a6=_0x4d6cd7;this['_collabSession'][_0x3512a6(0x1d0)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3512a6(0x1f3)],'userID':this[_0x3512a6(0x1ff)][_0x3512a6(0x186)]()}},this[_0x3512a6(0x1f3)]);}['stopPresenting'](){const _0x829851=_0x4d6cd7;this[_0x829851(0x254)]===_0x829851(0x190)&&(this['_status$'][_0x829851(0x21f)]('idle'),this['_collabSession'][_0x829851(0x1d0)]({'eventID':d[_0x829851(0x1be)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x829851(0x1f3)]}},this[_0x829851(0x1f3)]));}['startFollowing'](){const _0x2d42b7=_0x4d6cd7;this[_0x2d42b7(0x254)]===_0x2d42b7(0x1e8)&&(this[_0x2d42b7(0x1db)][_0x2d42b7(0x21f)]('following'),this[_0x2d42b7(0x1f4)]());}['stopFollowing'](){const _0x4ccf70=_0x4d6cd7;this[_0x4ccf70(0x254)]===_0x4ccf70(0x219)&&this['_stopFollowing']();}[_0x4d6cd7(0x230)](_0x4174b3){const _0x35029b=_0x4d6cd7,{presenter:_0x542836}=_0x4174b3[_0x35029b(0x241)],_0x2d2dfc=this[_0x35029b(0x1ff)][_0x35029b(0x186)]();this[_0x35029b(0x193)]=_0x542836,_0x542836===_0x2d2dfc?(this[_0x35029b(0x217)](),this[_0x35029b(0x22d)]()):this[_0x35029b(0x254)]!=='not-following'&&(this[_0x35029b(0x18a)](),this[_0x35029b(0x1f4)]());}[_0x4d6cd7(0x1bb)](){const _0x4254d6=_0x4d6cd7,_0x16950b={'eventID':d['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4254d6(0x1ff)][_0x4254d6(0x1d0)](_0x16950b,this['_unitID']);}[_0x4d6cd7(0x1ab)](){const _0x4e74bc=_0x4d6cd7;this[_0x4e74bc(0x193)]=null,this[_0x4e74bc(0x254)]!==_0x4e74bc(0x190)&&this['_beIdle']();}[_0x4d6cd7(0x212)](_0x1df01e){const _0xb13cae=_0x4d6cd7;if(this[_0xb13cae(0x254)]===_0xb13cae(0x219)&&this[_0xb13cae(0x193)]===_0x1df01e[_0xb13cae(0x241)][_0xb13cae(0x1bd)]){const _0x2dbc7c=d[_0xb13cae(0x208)](_0x1df01e[_0xb13cae(0x241)])['mutations'][_0xb13cae(0x20e)]()[_0xb13cae(0x189)](_0x1e0f97=>_0x1e0f97['id']===C[_0xb13cae(0x194)]['id']);if(_0x2dbc7c){const _0x29f75e=_0x2dbc7c[_0xb13cae(0x251)][_0xb13cae(0x1a7)],_0x2895f8=_0x2dbc7c[_0xb13cae(0x251)][_0xb13cae(0x225)]['id'];setTimeout(()=>{const _0x367ed8=_0xb13cae;this[_0x367ed8(0x1a1)][_0x367ed8(0x1e1)](C[_0x367ed8(0x24b)]['id'],{'unitId':_0x29f75e,'subUnitId':_0x2895f8},{'fromCollab':!0x0});});}}}[_0x4d6cd7(0x22d)](){const _0x356df7=_0x4d6cd7;this[_0x356df7(0x1db)][_0x356df7(0x21f)]('presenting');const _0x4860d0=new Map(),_0x268d5f=this[_0x356df7(0x1de)]=new o['DisposableCollection']();_0x268d5f[_0x356df7(0x22a)](o[_0x356df7(0x234)](()=>{const _0x4f0d14=_0x356df7;_0x4860d0[_0x4f0d14(0x229)](_0x4b7969=>_0x4b7969[_0x4f0d14(0x1ea)]()),_0x4860d0[_0x4f0d14(0x1aa)]();})),_0x268d5f[_0x356df7(0x22a)](this[_0x356df7(0x1a1)][_0x356df7(0x1f7)](_0x5c9182=>{const _0x3a51fd=_0x356df7;var _0x364a0e;if(_0x5c9182['type']!==o[_0x3a51fd(0x213)][_0x3a51fd(0x1cc)]||!this['_liveShareService'][_0x3a51fd(0x240)](_0x5c9182['id']))return;const {id:_0x3d941d}=_0x5c9182;let _0x5862b;_0x4860d0[_0x3a51fd(0x23d)](_0x3d941d)?_0x5862b=_0x4860d0[_0x3a51fd(0x1e3)](_0x3d941d):(_0x5862b=new O[(_0x3a51fd(0x19e))](),_0x4860d0[_0x3a51fd(0x1f2)](_0x3d941d,_0x5862b),_0x5862b[_0x3a51fd(0x18d)](I[_0x3a51fd(0x215)]((_0x364a0e=this[_0x3a51fd(0x1c7)]['getConfig'](k))!=null?_0x364a0e:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3a51fd(0x242)](_0x20b761=>{const _0x110519=_0x3a51fd;this[_0x110519(0x1ff)][_0x110519(0x1d0)]({'eventID':d[_0x110519(0x1be)][_0x110519(0x257)],'data':{'unitID':this[_0x110519(0x1f3)],'operations':{[_0x20b761['id']]:{'id':_0x20b761['id'],'params':JSON[_0x110519(0x226)](_0x20b761['params'])}}}},this[_0x110519(0x1f3)]);})),_0x5862b[_0x3a51fd(0x21f)](_0x5c9182);})),this[_0x356df7(0x227)][_0x356df7(0x1ac)](this[_0x356df7(0x1f3)])['forEach'](_0x322181=>this['_collabSession'][_0x356df7(0x1d0)]({'eventID':d[_0x356df7(0x1be)][_0x356df7(0x257)],'data':{'unitID':this[_0x356df7(0x1f3)],'operations':{[_0x322181['id']]:{'id':_0x322181['id'],'params':JSON['stringify'](_0x322181['params'])}}}},this[_0x356df7(0x1f3)]));}[_0x4d6cd7(0x18a)](){const _0x28f290=_0x4d6cd7;var _0x4e1306;this[_0x28f290(0x1db)][_0x28f290(0x21f)](_0x28f290(0x207)),(_0x4e1306=this[_0x28f290(0x1de)])==null||_0x4e1306[_0x28f290(0x19d)](),this[_0x28f290(0x1de)]=null;}[_0x4d6cd7(0x1f4)](){const _0x16efe2=_0x4d6cd7;var _0x22209d;(_0x22209d=this[_0x16efe2(0x1de)])==null||_0x22209d[_0x16efe2(0x19d)](),this[_0x16efe2(0x1db)][_0x16efe2(0x21f)](_0x16efe2(0x219));}['_beIdle'](){const _0xec81b1=_0x4d6cd7;var _0x456554;this['_status$'][_0xec81b1(0x21f)](_0xec81b1(0x207)),(_0x456554=this[_0xec81b1(0x1de)])==null||_0x456554[_0xec81b1(0x19d)](),this[_0xec81b1(0x1de)]=null;}[_0x4d6cd7(0x217)](){const _0x4311a4=_0x4d6cd7;var _0xf72444;this['_status$'][_0x4311a4(0x21f)](_0x4311a4(0x1e8)),(_0xf72444=this[_0x4311a4(0x1de)])==null||_0xf72444[_0x4311a4(0x19d)]();}[_0x4d6cd7(0x21a)](_0x1bfb61){const _0x4224f6=_0x4d6cd7;if([_0x4224f6(0x190),_0x4224f6(0x1e8),_0x4224f6(0x18e)]['includes'](this['_status'])||!_0x1bfb61[_0x4224f6(0x241)][_0x4224f6(0x252)]||_0x1bfb61[_0x4224f6(0x241)][_0x4224f6(0x252)]===this['_collabSession']['getMemberID']())return;this[_0x4224f6(0x254)]===_0x4224f6(0x207)&&this['_startFollowing']();const _0x4436dc=_0x1bfb61['data'][_0x4224f6(0x1b9)];Object['values'](_0x4436dc)[_0x4224f6(0x229)](_0x3ef00b=>{const _0x4f9fe2=_0x4224f6;this[_0x4f9fe2(0x1a1)][_0x4f9fe2(0x1e1)](_0x3ef00b['id'],_0x3ef00b[_0x4f9fe2(0x251)]?JSON[_0x4f9fe2(0x1d2)](_0x3ef00b[_0x4f9fe2(0x251)]):null,{'fromCollab':!0x0});});}[_0x4d6cd7(0x1e6)](){const _0x5d15f0=_0x4d6cd7;var _0x1b750d;this[_0x5d15f0(0x1db)][_0x5d15f0(0x21f)]('offline'),(_0x1b750d=this[_0x5d15f0(0x1de)])==null||_0x1b750d['dispose']();}['_handleOnline'](){const _0x3cf325=_0x4d6cd7;this['_status$']['next'](_0x3cf325(0x207)),this[_0x3cf325(0x1bb)]();}},exports[_0x4d6cd7(0x19b)]=P([S(0x2,o[_0x4d6cd7(0x1af)]),S(0x3,o[_0x4d6cd7(0x1a5)](E)),S(0x4,o[_0x4d6cd7(0x1b0)])],exports['LiveShareCoordinator']);function $(){const _0x1f92cf=_0x4d6cd7,_0x529ede=p['useDependency'](exports[_0x1f92cf(0x192)]),_0x20ed28=p[_0x1f92cf(0x1bf)](o[_0x1f92cf(0x218)]),_0x4f2c67=p[_0x1f92cf(0x1ce)](()=>_0x20ed28[_0x1f92cf(0x200)](o[_0x1f92cf(0x214)][_0x1f92cf(0x1d5)]),void 0x0,!0x1,[]),[_0x2ea9e9,_0x5b972f]=v[_0x1f92cf(0x1cb)](null),[_0x4f7014,_0x330599]=v[_0x1f92cf(0x1cb)](u[_0x1f92cf(0x1b5)]),_0x1b9a21=v[_0x1f92cf(0x20b)](null);return v[_0x1f92cf(0x205)](()=>(_0x4f2c67&&_0x529ede[_0x1f92cf(0x211)](_0x4f2c67[_0x1f92cf(0x1dd)]())[_0x1f92cf(0x221)](_0x11000c=>{const _0x48640c=_0x1f92cf;_0x5b972f(_0x11000c),_0x1b9a21['current']=_0x11000c[_0x48640c(0x1f8)][_0x48640c(0x242)](_0x4a7dd1=>{_0x330599(_0x4a7dd1);});}),()=>{const _0x431320=_0x1f92cf;var _0x3c135b;(_0x3c135b=_0x1b9a21[_0x431320(0x201)])==null||_0x3c135b[_0x431320(0x187)](),_0x1b9a21[_0x431320(0x201)]=null;}),[_0x4f2c67,_0x529ede]),_0x2ea9e9?l[_0x1f92cf(0x1e0)](f['Dropdown'],{'align':'end','disabled':_0x4f7014===u[_0x1f92cf(0x1fc)],'className':_0x1f92cf(0x1c2),'overlay':l[_0x1f92cf(0x1e0)](W,{'status':_0x4f7014,'coordinator':_0x2ea9e9}),'children':l['jsx'](_0x1f92cf(0x239),{'className':f[_0x1f92cf(0x1e7)](_0x1f92cf(0x1f6),{'univer-cursor-not-allowed':_0x4f7014===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f7014!==u[_0x1f92cf(0x1fc)]}),'type':'button','children':l[_0x1f92cf(0x1e0)](R,{'className':_0x1f92cf(0x243)})})}):null;}function W(_0x511a13){const _0x458ed8=_0x4d6cd7,{status:_0x3fd435,coordinator:_0x2b1114}=_0x511a13;switch(_0x3fd435){case u[_0x458ed8(0x1b5)]:return l['jsx'](G,{'coordinator':_0x2b1114});case u[_0x458ed8(0x1ba)]:return l[_0x458ed8(0x1e0)](B,{'coordinator':_0x2b1114});case u[_0x458ed8(0x1e5)]:return l[_0x458ed8(0x1e0)](Y,{'coordinator':_0x2b1114});case u[_0x458ed8(0x1fc)]:return l['jsx'](J,{});case u[_0x458ed8(0x19c)]:return l[_0x458ed8(0x1e0)](Z,{'coordinator':_0x2b1114});default:return null;}}function G(_0x356f12){const _0x433520=_0x4d6cd7,{coordinator:_0x4f5d04}=_0x356f12;return l[_0x433520(0x21e)](l['Fragment'],{'children':[l[_0x433520(0x1e0)](_0x433520(0x1a9),{'className':_0x433520(0x1a4),'children':_0x433520(0x233)}),l[_0x433520(0x1e0)](f[_0x433520(0x1fe)],{'onClick':()=>_0x4f5d04[_0x433520(0x18c)](),'children':_0x433520(0x24f)})]});}function B(_0x342848){const _0x210719=_0x4d6cd7,{coordinator:_0x5d7782}=_0x342848;return l[_0x210719(0x21e)](l[_0x210719(0x1ec)],{'children':[l[_0x210719(0x1e0)]('div',{'className':_0x210719(0x1a4),'children':_0x210719(0x1c9)}),l[_0x210719(0x1e0)](f['Button'],{'onClick':()=>_0x5d7782[_0x210719(0x23b)](),'children':'Stop\x20following'})]});}function Y(_0x582684){const _0x4f134b=_0x4d6cd7,{coordinator:_0x2d0487}=_0x582684;return l[_0x4f134b(0x21e)](l['Fragment'],{'children':[l[_0x4f134b(0x1e0)]('div',{'className':_0x4f134b(0x1a4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x4f134b(0x1e0)](f[_0x4f134b(0x1fe)],{'variant':_0x4f134b(0x1c8),'onClick':()=>_0x2d0487[_0x4f134b(0x235)](),'children':_0x4f134b(0x236)})]});}function Z(_0x23cb22){const _0x5923d2=_0x4d6cd7,{coordinator:_0x4db20a}=_0x23cb22;return l[_0x5923d2(0x21e)](l['Fragment'],{'children':[l[_0x5923d2(0x1e0)](_0x5923d2(0x1a9),{'className':_0x5923d2(0x1a4),'children':_0x5923d2(0x1c1)}),l[_0x5923d2(0x1e0)](f['Button'],{'variant':_0x5923d2(0x1f5),'onClick':()=>_0x4db20a[_0x5923d2(0x220)](),'children':_0x5923d2(0x19f)})]});}function J(){const _0x3acd0f=_0x4d6cd7;return l[_0x3acd0f(0x1e0)](l[_0x3acd0f(0x1ec)],{'children':_0x3acd0f(0x185)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x1670cb,_0x534598,_0x171c9e,_0x20b657)=>{const _0x4413bc=_0x4d6cd7;for(var _0x4ad980=_0x20b657>0x1?void 0x0:_0x20b657?K(_0x534598,_0x171c9e):_0x534598,_0x4decea=_0x1670cb[_0x4413bc(0x1b7)]-0x1,_0x55e60e;_0x4decea>=0x0;_0x4decea--)(_0x55e60e=_0x1670cb[_0x4decea])&&(_0x4ad980=_0x55e60e(_0x4ad980)||_0x4ad980);return _0x4ad980;},L=(_0x187728,_0x311674)=>(_0x50d65a,_0x49693b)=>_0x311674(_0x50d65a,_0x49693b,_0x187728);exports[_0x4d6cd7(0x18b)]=class extends o[_0x4d6cd7(0x22b)]{constructor(_0x58cf1b,_0x4a7f83){const _0xdc855b=_0x4d6cd7;super(),this['_injector']=_0x58cf1b,this[_0xdc855b(0x1e9)]=_0x4a7f83,this[_0xdc855b(0x1b3)]();}[_0x4d6cd7(0x1b3)](){const _0x482f6b=_0x4d6cd7;this[_0x482f6b(0x1d9)](this[_0x482f6b(0x1e9)][_0x482f6b(0x1cf)](p['BuiltInUIPart'][_0x482f6b(0x195)],()=>p[_0x482f6b(0x1c4)]($,this[_0x482f6b(0x255)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x4d6cd7(0x1a5)](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x4d6cd7(0x18b)]);const Q=_0x4d6cd7(0x1d3),w={};var X=Object[_0x4d6cd7(0x1da)],ee=(_0x13a9a9,_0x3c69e6,_0x54a58c,_0x2ffcb8)=>{const _0x3e2bbd=_0x4d6cd7;for(var _0x20b714=_0x2ffcb8>0x1?void 0x0:_0x2ffcb8?X(_0x3c69e6,_0x54a58c):_0x3c69e6,_0x5344bc=_0x13a9a9[_0x3e2bbd(0x1b7)]-0x1,_0x22de94;_0x5344bc>=0x0;_0x5344bc--)(_0x22de94=_0x13a9a9[_0x5344bc])&&(_0x20b714=_0x22de94(_0x20b714)||_0x20b714);return _0x20b714;},te=(_0x4f4a00,_0x43542c)=>(_0x2a6b14,_0x394bca)=>_0x43542c(_0x2a6b14,_0x394bca,_0x4f4a00);let m=class extends o[_0x4d6cd7(0x22b)]{constructor(_0x249f89){const _0x4a949b=_0x4d6cd7;super(),this[_0x4a949b(0x227)]=_0x249f89,this[_0x4a949b(0x1b8)]();}[_0x4d6cd7(0x1b8)](){const _0xff1d91=_0x4d6cd7;[D[_0xff1d91(0x21c)]['id'],D[_0xff1d91(0x1c0)]['id'],C['SetWorksheetActiveOperation']['id']][_0xff1d91(0x229)](_0x542e88=>{const _0x5d48b8=_0xff1d91;this['disposeWithMe'](this[_0x5d48b8(0x227)]['registerSharedOperation'](_0x542e88));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x4d6cd7(0x245)],se=Object[_0x4d6cd7(0x1da)],ne=(_0x50f975,_0x30e938,_0x3c6185)=>_0x30e938 in _0x50f975?ie(_0x50f975,_0x30e938,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c6185}):_0x50f975[_0x30e938]=_0x3c6185,re=(_0x55151e,_0x3709f8,_0x55813f,_0x2dd6de)=>{for(var _0x32de60=_0x2dd6de>0x1?void 0x0:_0x2dd6de?se(_0x3709f8,_0x55813f):_0x3709f8,_0x25dd1c=_0x55151e['length']-0x1,_0x5b40c7;_0x25dd1c>=0x0;_0x25dd1c--)(_0x5b40c7=_0x55151e[_0x25dd1c])&&(_0x32de60=_0x5b40c7(_0x32de60)||_0x32de60);return _0x32de60;},N=(_0x418843,_0x1e5a3e)=>(_0x4277f7,_0x92861f)=>_0x1e5a3e(_0x4277f7,_0x92861f,_0x418843),A=(_0x1b9444,_0x37e014,_0x2ee4db)=>ne(_0x1b9444,typeof _0x37e014!='symbol'?_0x37e014+'':_0x37e014,_0x2ee4db);const oe=_0x4d6cd7(0x248);function _0x14b0(_0x31f1b5,_0x5576b9){_0x31f1b5=_0x31f1b5-0x185;const _0x35c573=_0x35c5();let _0x14b06b=_0x35c573[_0x31f1b5];return _0x14b06b;}exports[_0x4d6cd7(0x1d4)]=class extends o[_0x4d6cd7(0x253)]{constructor(_0x33027b=w,_0xab9016,_0x531931){const _0x539094=_0x4d6cd7;super(),this['_config']=_0x33027b,this[_0x539094(0x255)]=_0xab9016,this[_0x539094(0x1c7)]=_0x531931;const {..._0x23297f}=o[_0x539094(0x1ad)]({},w,this[_0x539094(0x1c5)]);this[_0x539094(0x1c7)][_0x539094(0x1a0)](Q,_0x23297f);}[_0x4d6cd7(0x1fd)](){const _0x2bb466=_0x4d6cd7;o['registerDependencies'](this[_0x2bb466(0x255)],o[_0x2bb466(0x1f1)]([[E],[exports[_0x2bb466(0x192)]],[m],[exports[_0x2bb466(0x18b)]]],this[_0x2bb466(0x1c5)]['override'])),o[_0x2bb466(0x222)](this['_injector'],[[m]]);}[_0x4d6cd7(0x1b2)](){const _0xad854f=_0x4d6cd7;o[_0xad854f(0x222)](this[_0xad854f(0x255)],[[exports[_0xad854f(0x18b)]]]);}},A(exports['UniverLiveSharePlugin'],_0x4d6cd7(0x1df),o[_0x4d6cd7(0x214)][_0x4d6cd7(0x204)]),A(exports[_0x4d6cd7(0x1d4)],_0x4d6cd7(0x23a),oe),exports[_0x4d6cd7(0x1d4)]=re([o['DependentOn'](b[_0x4d6cd7(0x258)]),N(0x1,o[_0x4d6cd7(0x1a5)](o[_0x4d6cd7(0x1d7)])),N(0x2,o[_0x4d6cd7(0x1af)])],exports[_0x4d6cd7(0x1d4)]),exports['LiveShare']=$,exports[_0x4d6cd7(0x1b6)]=E,exports[_0x4d6cd7(0x1fa)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x13475b=_0x306e;(function(_0x20ba27,_0x12b028){const _0x41ffaa=_0x306e,_0x184059=_0x20ba27();while(!![]){try{const _0x1f2a57=parseInt(_0x41ffaa(0xf1))/0x1*(-parseInt(_0x41ffaa(0x110))/0x2)+parseInt(_0x41ffaa(0x102))/0x3*(-parseInt(_0x41ffaa(0xf0))/0x4)+parseInt(_0x41ffaa(0xf2))/0x5*(-parseInt(_0x41ffaa(0x10b))/0x6)+parseInt(_0x41ffaa(0x112))/0x7*(-parseInt(_0x41ffaa(0xfd))/0x8)+parseInt(_0x41ffaa(0x10d))/0x9+parseInt(_0x41ffaa(0xf3))/0xa*(parseInt(_0x41ffaa(0x109))/0xb)+parseInt(_0x41ffaa(0xff))/0xc*(parseInt(_0x41ffaa(0x113))/0xd);if(_0x1f2a57===_0x12b028)break;else _0x184059['push'](_0x184059['shift']());}catch(_0x32dac7){_0x184059['push'](_0x184059['shift']());}}}(_0x583d,0x630f1));import{LiveShareController as _0x3bb719,LiveShareStatus as _0x2a6fbe}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x13e804}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xa6e7d9}from'@univerjs/sheets';import{SetScrollOperation as _0x2e8aa1}from'@univerjs/sheets-ui';import{FRange as _0x550479}from'@univerjs/sheets/facade';function _0x583d(){const _0x478507=['409346pxwFVm','11978135AZwUPG','No\x20active\x20workbook\x20found.','97592lwZLfP','6KueuBD','5SDvkUP','11810LZhtnk','startFollowing','getLiveShareCoordinatorSync','extend','getActiveWorkbook','_injector','LiveShareStatusEnum','getUnitId','get','stopFollowing','80ohbYBP','syncExecuteCommand','12ErZXAF','IDLE','_initialize','69RXmnRj','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','tryStartPresenting','getActiveSheet','startColumn','startRow','5951yKOLau','PRESENTING','999276nnBdaZ','getId','1577619rxlwdx','getStatus','stopPresenting','5794QtfCkP','getSheetId'];_0x583d=function(){return _0x478507;};return _0x583d();}import{FUniver as _0x31d568,FEnum as _0x377e49}from'@univerjs/core/facade';class I extends _0x550479{[_0x13475b(0x101)](_0xcf0cc7,_0x9e4934,_0x191abe,_0x615cc1,_0x2f8c7d){const _0x2173b8=_0x13475b,_0x3ffaa7=_0xcf0cc7[_0x2173b8(0xfb)](_0x3bb719),_0xcfbdb4=_0xcf0cc7[_0x2173b8(0xfb)](_0x13e804),_0x1c87bf=_0x9e4934[_0x2173b8(0xfa)](),_0x305cbd=_0x9e4934[_0x2173b8(0x106)](),_0x284f68=_0x3ffaa7[_0x2173b8(0xf5)](_0x1c87bf);(_0x284f68==null?void 0x0:_0x284f68[_0x2173b8(0x10e)]())!==_0x2a6fbe[_0x2173b8(0x10a)]||(_0x191abe['getSheetId']()!==_0x305cbd[_0x2173b8(0x111)]()&&this['_commandService']['executeCommand'](_0xa6e7d9['id'],{'unitId':_0x1c87bf,'subUnitId':_0x191abe[_0x2173b8(0x111)]()}),!_0xcfbdb4['getRenderById'](_0x1c87bf))||_0x2f8c7d[_0x2173b8(0xfe)](_0x2e8aa1['id'],{'unitId':_0x9e4934[_0x2173b8(0xfa)](),'sheetId':_0x191abe[_0x2173b8(0x111)](),'sheetViewStartRow':_0x615cc1[_0x2173b8(0x108)],'sheetViewStartColumn':_0x615cc1[_0x2173b8(0x107)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x550479['extend'](I);class m extends _0x31d568{[_0x13475b(0x104)](){const _0x3f46dc=_0x13475b;var _0x4a7e70,_0x95ae5d;const _0x98ae25=this['_injector'][_0x3f46dc(0xfb)](_0x3bb719),_0x5c3bfc=(_0x4a7e70=this[_0x3f46dc(0xf7)]())==null?void 0x0:_0x4a7e70[_0x3f46dc(0x10c)]();if(!_0x5c3bfc)throw new Error('No\x20active\x20workbook\x20found.');const _0x38a727=_0x98ae25[_0x3f46dc(0xf5)](_0x5c3bfc);return(_0x95ae5d=_0x38a727==null?void 0x0:_0x38a727[_0x3f46dc(0x10e)]())!=null?_0x95ae5d:_0x2a6fbe[_0x3f46dc(0x100)];}[_0x13475b(0xf4)](){const _0x1a317f=_0x13475b;var _0x393c3b;const _0x4d321c=this[_0x1a317f(0xf8)][_0x1a317f(0xfb)](_0x3bb719),_0x28cd87=(_0x393c3b=this[_0x1a317f(0xf7)]())==null?void 0x0:_0x393c3b[_0x1a317f(0x10c)]();if(!_0x28cd87)throw new Error(_0x1a317f(0xef));const _0x4866f0=_0x4d321c['getLiveShareCoordinatorSync'](_0x28cd87);if(!_0x4866f0)throw new Error(_0x1a317f(0x103));_0x4866f0[_0x1a317f(0xf4)]();}[_0x13475b(0xfc)](){const _0x21850f=_0x13475b;var _0x43dc54;const _0x247b78=this['_injector'][_0x21850f(0xfb)](_0x3bb719),_0x2d8597=(_0x43dc54=this['getActiveWorkbook']())==null?void 0x0:_0x43dc54[_0x21850f(0x10c)]();if(!_0x2d8597)throw new Error(_0x21850f(0xef));const _0x4e393f=_0x247b78[_0x21850f(0xf5)](_0x2d8597);if(!_0x4e393f)throw new Error(_0x21850f(0x103));_0x4e393f[_0x21850f(0xfc)]();}['startPresenting'](){const _0xd16700=_0x13475b;var _0x170c89;const _0x60246d=this[_0xd16700(0xf8)][_0xd16700(0xfb)](_0x3bb719),_0x12c631=(_0x170c89=this[_0xd16700(0xf7)]())==null?void 0x0:_0x170c89[_0xd16700(0x10c)]();if(!_0x12c631)throw new Error(_0xd16700(0xef));const _0x347c39=_0x60246d[_0xd16700(0xf5)](_0x12c631);if(!_0x347c39)throw new Error(_0xd16700(0x103));_0x347c39[_0xd16700(0x105)]();}[_0x13475b(0x10f)](){const _0x8e6609=_0x13475b;var _0x5cd5e5;const _0x472d65=this[_0x8e6609(0xf8)][_0x8e6609(0xfb)](_0x3bb719),_0x3359f5=(_0x5cd5e5=this[_0x8e6609(0xf7)]())==null?void 0x0:_0x5cd5e5[_0x8e6609(0x10c)]();if(!_0x3359f5)throw new Error(_0x8e6609(0xef));const _0x4a0045=_0x472d65[_0x8e6609(0xf5)](_0x3359f5);if(!_0x4a0045)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4a0045[_0x8e6609(0x10f)]();}}_0x31d568['extend'](m);class C extends _0x377e49{get[_0x13475b(0xf9)](){return _0x2a6fbe;}}function _0x306e(_0x1834ae,_0x109aae){_0x1834ae=_0x1834ae-0xef;const _0x583da7=_0x583d();let _0x306e42=_0x583da7[_0x1834ae];return _0x306e42;}_0x377e49[_0x13475b(0xf6)](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 _0x5b5861=_0xa334;(function(_0x940b76,_0x3e06cd){const _0x5ddba1=_0xa334,_0x2712bc=_0x940b76();while(!![]){try{const _0x44ae39=parseInt(_0x5ddba1(0x1c3))/0x1*(parseInt(_0x5ddba1(0x1ef))/0x2)+-parseInt(_0x5ddba1(0x1a2))/0x3*(-parseInt(_0x5ddba1(0x1c7))/0x4)+-parseInt(_0x5ddba1(0x21a))/0x5+parseInt(_0x5ddba1(0x198))/0x6+parseInt(_0x5ddba1(0x1ff))/0x7+parseInt(_0x5ddba1(0x223))/0x8*(-parseInt(_0x5ddba1(0x194))/0x9)+parseInt(_0x5ddba1(0x20c))/0xa*(-parseInt(_0x5ddba1(0x1e8))/0xb);if(_0x44ae39===_0x3e06cd)break;else _0x2712bc['push'](_0x2712bc['shift']());}catch(_0x2c0d93){_0x2712bc['push'](_0x2712bc['shift']());}}}(_0x1b5c,0xaefbb));var J=Object['defineProperty'],K=(_0x571e1d,_0x583722,_0x457904)=>_0x583722 in _0x571e1d?J(_0x571e1d,_0x583722,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x457904}):_0x571e1d[_0x583722]=_0x457904,u=(_0x1c3cd4,_0x4d5b6b,_0x3d3913)=>K(_0x1c3cd4,typeof _0x4d5b6b!=_0x5b5861(0x1fb)?_0x4d5b6b+'':_0x4d5b6b,_0x3d3913);import{Disposable as _0xbd0411,toDisposable as _0x47586f,IUniverInstanceService as _0x4886c8,Inject as _0x85d7bd,Injector as _0x1a0d86,IConfigService as _0x51e68b,ICommandService as _0x1ea6ce,RxDisposable as _0x1e7142,UniverInstanceType as _0x7e82ed,DisposableCollection as _0x38d873,CommandType as _0x370490,DependentOn as _0x1365d5,Plugin as _0x57ad4d,merge as _0x339a10,registerDependencies as _0x2201e0,mergeOverrideWithDependencies as _0x22b641,touchDependencies as _0x44e6ef}from'@univerjs/core';import{useDependency as _0x4028ab,useObservable as _0x2a1f12,IUIPartsService as _0x25b092,BuiltInUIPart as _0x1d717f,connectInjector as _0x353c5a}from'@univerjs/ui';import{jsx as _0x2485d8,jsxs as _0x3633d3,Fragment as _0x25cd63}from'react/jsx-runtime';import{Dropdown as _0x4ed21b,clsx as _0x43e0fe,Button as _0x35ba61}from'@univerjs/design';import{useRef as _0x369264,createElement as _0x31575c,forwardRef as _0x17510d,useState as _0x3f7642,useEffect as _0x57b2a6}from'react';import{CollaborationEvent as _0x18e9cb,parseProtocolChangeset as _0x1ae33c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x257347,SessionStatus as _0x57a487,UniverCollaborationClientPlugin as _0x2946ae}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4210a9,SetWorksheetActiveOperation as _0x39eb88}from'@univerjs/sheets';import{BehaviorSubject as _0x3e663f,Subject as _0x4059b6}from'rxjs';import{takeUntil as _0x4b7809,throttleTime as _0x1ec35a}from'rxjs/operators';import{SetZoomRatioOperation as _0x11cc91,SetScrollOperation as _0x4c52de}from'@univerjs/sheets-ui';function k({ref:_0x276031,..._0x178009}){const _0x5eb254=_0x5b5861,{icon:_0x46ddae,id:_0x2bfbe2,className:_0x3a91c9,extend:_0x2d22f6,..._0x46cad4}=_0x178009,_0x5f0dcd=('univerjs-icon\x20univerjs-icon-'+_0x2bfbe2+'\x20'+(_0x3a91c9||''))[_0x5eb254(0x236)](),_0x42af45=_0x369264('_'+Oe());return G(_0x46ddae,''+_0x2bfbe2,{'defIds':_0x46ddae[_0x5eb254(0x22e)],'idSuffix':_0x42af45['current']},{'ref':_0x276031,'className':_0x5f0dcd,..._0x46cad4},_0x2d22f6);}function G(_0xe5140b,_0x10009f,_0x2a69ef,_0x4f048a,_0x2ae423){const _0x5a5e1c=_0x5b5861;return _0x31575c(_0xe5140b[_0x5a5e1c(0x1fd)],{'key':_0x10009f,...be(_0xe5140b,_0x2a69ef,_0x2ae423),..._0x4f048a},(Ee(_0xe5140b,_0x2a69ef)['children']||[])[_0x5a5e1c(0x1b8)]((_0x5610c4,_0x1ff3ee)=>G(_0x5610c4,_0x10009f+'-'+_0xe5140b[_0x5a5e1c(0x1fd)]+'-'+_0x1ff3ee,_0x2a69ef,void 0x0,_0x2ae423)));}function be(_0x454d5f,_0x1a7c57,_0x55e42c){const _0x50b9ae=_0x5b5861,_0x49adec={..._0x454d5f[_0x50b9ae(0x216)]};_0x55e42c!=null&&_0x55e42c[_0x50b9ae(0x1c0)]&&_0x49adec[_0x50b9ae(0x1d7)]===_0x50b9ae(0x1c0)&&(_0x49adec[_0x50b9ae(0x1d7)]=_0x55e42c[_0x50b9ae(0x1c0)]),_0x454d5f[_0x50b9ae(0x1fd)]===_0x50b9ae(0x21e)&&_0x49adec['id']&&(_0x49adec['id']=_0x49adec['id']+_0x1a7c57[_0x50b9ae(0x1cd)]),Object['entries'](_0x49adec)[_0x50b9ae(0x1af)](([_0x3de645,_0x23b4b3])=>{const _0x1280d4=_0x50b9ae;_0x3de645===_0x1280d4(0x21e)&&typeof _0x23b4b3==_0x1280d4(0x19f)&&(_0x49adec[_0x3de645]=_0x23b4b3[_0x1280d4(0x1e5)](/url\(#(.*)\)/,_0x1280d4(0x1ea)+_0x1a7c57[_0x1280d4(0x1cd)]+')'));});const {defIds:_0x1591cf}=_0x1a7c57;return!_0x1591cf||_0x1591cf[_0x50b9ae(0x1c4)]===0x0||(_0x454d5f[_0x50b9ae(0x1fd)]===_0x50b9ae(0x20d)&&_0x49adec[_0x50b9ae(0x1c5)]&&(_0x49adec[_0x50b9ae(0x1c5)]=_0x49adec[_0x50b9ae(0x1c5)]+_0x1a7c57[_0x50b9ae(0x1cd)]),Object['entries'](_0x49adec)[_0x50b9ae(0x1af)](([_0x12fbb5,_0xe1270d])=>{const _0x390ebb=_0x50b9ae;typeof _0xe1270d=='string'&&(_0x49adec[_0x12fbb5]=_0xe1270d['replace'](/url\(#(.*)\)/,_0x390ebb(0x1ea)+_0x1a7c57[_0x390ebb(0x1cd)]+')'));})),_0x49adec;}function Ee(_0x5b7cb2,_0x3e6d92){const _0x4b9ccb=_0x5b5861;var _0x30e6bf;const {defIds:_0x28b824}=_0x3e6d92;return!_0x28b824||_0x28b824['length']===0x0?_0x5b7cb2:_0x5b7cb2[_0x4b9ccb(0x1fd)]===_0x4b9ccb(0x1b2)&&((_0x30e6bf=_0x5b7cb2[_0x4b9ccb(0x20b)])!=null&&_0x30e6bf['length'])?{..._0x5b7cb2,'children':_0x5b7cb2[_0x4b9ccb(0x20b)]['map'](_0x210dbe=>typeof _0x210dbe['attrs']['id']==_0x4b9ccb(0x19f)&&_0x28b824&&_0x28b824['includes'](_0x210dbe[_0x4b9ccb(0x216)]['id'])?{..._0x210dbe,'attrs':{..._0x210dbe[_0x4b9ccb(0x216)],'id':_0x210dbe[_0x4b9ccb(0x216)]['id']+_0x3e6d92[_0x4b9ccb(0x1cd)]}}:_0x210dbe)}:_0x5b7cb2;}function Oe(){const _0x21bbfb=_0x5b5861;return Math[_0x21bbfb(0x1c8)]()['toString'](0x24)[_0x21bbfb(0x212)](0x2,0x8);}k['displayName']='UniverIcon';const we={'tag':_0x5b5861(0x1cf),'attrs':{'xmlns':_0x5b5861(0x192),'fill':_0x5b5861(0x1f2),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x5b5861(0x1eb)},'children':[{'tag':_0x5b5861(0x238),'attrs':{'fill':_0x5b5861(0x1e4),'d':_0x5b5861(0x1dd)}},{'tag':_0x5b5861(0x238),'attrs':{'fill':_0x5b5861(0x1e4),'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':_0x5b5861(0x211),'clipRule':_0x5b5861(0x211)}}]},W=_0x17510d(function(_0x5b22da,_0x571346){return _0x31575c(k,Object['assign']({},_0x5b22da,{'id':'live-share-icon','ref':_0x571346,'icon':we}));});W[_0x5b5861(0x230)]=_0x5b5861(0x22b);class L extends _0xbd0411{constructor(){const _0x3305d5=_0x5b5861;super(...arguments),u(this,_0x3305d5(0x21c),new Set()),u(this,'_reporters',new Set());}[_0x5b5861(0x1b4)](_0x166997){const _0x409c97=_0x5b5861;return this[_0x409c97(0x21c)][_0x409c97(0x196)](_0x166997),_0x47586f(()=>this[_0x409c97(0x21c)][_0x409c97(0x1d6)](_0x166997));}[_0x5b5861(0x233)](_0x58f42c){const _0x352a52=_0x5b5861;return this[_0x352a52(0x1de)][_0x352a52(0x196)](_0x58f42c),_0x47586f(()=>this[_0x352a52(0x1de)]['delete'](_0x58f42c));}[_0x5b5861(0x1fc)](_0x43dc2b){const _0x482a2f=_0x5b5861;return this[_0x482a2f(0x21c)][_0x482a2f(0x20e)](_0x43dc2b);}[_0x5b5861(0x228)](_0xea8e23){const _0x5be529=_0x5b5861;return Array['from'](this[_0x5be529(0x1de)])['map'](_0x2308d4=>_0x2308d4(_0xea8e23));}}var Ne=Object[_0x5b5861(0x1a1)],Y=(_0x302acb,_0x327879,_0x402b2a,_0x2f19d3)=>{const _0x500ef3=_0x5b5861;for(var _0x8c1f20=_0x2f19d3>0x1?void 0x0:_0x2f19d3?Ne(_0x327879,_0x402b2a):_0x327879,_0x4ea0b7=_0x302acb[_0x500ef3(0x1c4)]-0x1,_0x49076f;_0x4ea0b7>=0x0;_0x4ea0b7--)(_0x49076f=_0x302acb[_0x4ea0b7])&&(_0x8c1f20=_0x49076f(_0x8c1f20)||_0x8c1f20);return _0x8c1f20;},_=(_0x2c1953,_0x5b04c2)=>(_0x4f59e2,_0x5528fc)=>_0x5b04c2(_0x4f59e2,_0x5528fc,_0x2c1953);let S=class extends _0x1e7142{constructor(_0x45178e,_0x258c65,_0x29a1d5){const _0x13bcad=_0x5b5861;super(),u(this,_0x13bcad(0x193),new Map()),(this[_0x13bcad(0x1bb)]=_0x45178e,this[_0x13bcad(0x1d1)]=_0x258c65,this[_0x13bcad(0x20a)]=_0x29a1d5,this[_0x13bcad(0x1e2)]());}async[_0x5b5861(0x1fa)](_0x2e4190){const _0x2c64b5=_0x5b5861;return this[_0x2c64b5(0x193)]['has'](_0x2e4190)||await this[_0x2c64b5(0x1a5)](_0x2e4190),this[_0x2c64b5(0x193)][_0x2c64b5(0x1e1)](_0x2e4190);}[_0x5b5861(0x1e6)](_0x2850b0){const _0xdc978=_0x5b5861;var _0x3cacbb;return(_0x3cacbb=this[_0xdc978(0x193)]['get'](_0x2850b0))!=null?_0x3cacbb:null;}['_init'](){const _0x22b73b=_0x5b5861;this[_0x22b73b(0x1bb)][_0x22b73b(0x1cc)](_0x7e82ed['UNIVER_SHEET'])[_0x22b73b(0x1b3)](_0x4b7809(this[_0x22b73b(0x1e0)]))['subscribe'](async _0x111cd5=>{const _0x29bc42=_0x22b73b,_0x1bdd25=_0x111cd5['getUnitId']();this[_0x29bc42(0x193)][_0x29bc42(0x20e)](_0x1bdd25)||this[_0x29bc42(0x1a5)](_0x1bdd25);}),this[_0x22b73b(0x1bb)]['getTypeOfUnitDisposed$'](_0x7e82ed[_0x22b73b(0x1a0)])[_0x22b73b(0x1b3)](_0x4b7809(this[_0x22b73b(0x1e0)]))[_0x22b73b(0x1dc)](_0x5c6dc3=>{const _0x1c69b1=_0x22b73b,_0x53f226=_0x5c6dc3['getUnitId'](),_0x4fba0a=this[_0x1c69b1(0x193)][_0x1c69b1(0x1e1)](_0x53f226);_0x4fba0a==null||_0x4fba0a[_0x1c69b1(0x19b)]();});}async['_startLiveShareCoordinator'](_0x346ab7){const _0x467071=_0x5b5861,_0x2189de=await this[_0x467071(0x20a)][_0x467071(0x22a)](_0x346ab7),_0x305f93=this[_0x467071(0x1d1)][_0x467071(0x1d5)](N,_0x346ab7,_0x2189de);return _0x305f93['init'](),this[_0x467071(0x193)]['set'](_0x346ab7,_0x305f93),_0x305f93;}};S=Y([_(0x0,_0x4886c8),_(0x1,_0x85d7bd(_0x1a0d86)),_(0x2,_0x85d7bd(_0x257347))],S);var c=(_0x45c6d7=>(_0x45c6d7[_0x5b5861(0x19a)]=_0x5b5861(0x1ec),_0x45c6d7[_0x5b5861(0x1ee)]=_0x5b5861(0x235),_0x45c6d7[_0x5b5861(0x204)]=_0x5b5861(0x1ab),_0x45c6d7['NOT_FOLLOWING']=_0x5b5861(0x1a8),_0x45c6d7[_0x5b5861(0x1f8)]=_0x5b5861(0x1aa),_0x45c6d7))(c||{});function _0x1b5c(){const _0x47730e=['current','map','presenter','disposeWithMe','_univerInstanceService','SAME_OPERATION_SHARE_INTERVAL','_commandService','_handleOperation','Present\x20this\x20document','colorChannel1','getStatus','data','16747sojLxX','length','xlink:href','UNIVER_LIVE_SHARE_PLUGIN','13096emAemp','random','div','status$','onCommandExecuted','getTypeOfUnitAdded$','idSuffix','Stop\x20following','svg','UNIVER_UNKNOWN','_injector','tryStartPresenting','reverse','unsubscribe','createInstance','delete','fill','univer-size-4','type','_configService','memberID','subscribe','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','_reporters','onRendered','dispose$','get','_init','next','currentColor','replace','getLiveShareCoordinatorSync','params','33xMqSsJ','_commandDisposable','url(#$1','1em','offline','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','128USsvtz','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','none','_handleNewChangeSets','_stopPresenting','getMemberID','_status$','values','PRESENTING','init','getLiveShareCoordinator','symbol','shouldShareOperation','tag','_mountLiveShare','9560502wWroVZ','getConfig','end','LIVESHARE_OPERATION','startFollowing','FOLLOWING','default','complete','LIVESHARE_FETCH_OPERATIONS','parse','OPERATION','_collabSessionService','children','3431380rxTzaC','use','has','executeCommand','ONLINE','evenodd','substring','_handleOnline','includes','onStarting','attrs','LIVESHARE_REQUEST_HOST','_unitID','_liveShareService','6725420dtmcPr','_startPresenting','_sharedOperations','stopFollowing','mask','_presenter','mutations','_handleNewHost','_uiPartsService','24AjhhTO','getValue','You\x27re\x20following\x20the\x20presenter','set','live-share.config','getInitialStates','then','requireSession','LiveShareIcon','pluginName','sessionStatus$','defIds','send','displayName','_handleOffline','Start','registerInitialStateReporter','LIVESHARE_TERMINATE','idle','trim','operations','path','_status','http://www.w3.org/2000/svg','_entities','152541bPFRaj','_stopFollowing','add','stringify','3283980JGprmE','NOT_FOLLOWING','OFFLINE','dispose','LIVESHARE_NEW_HOST','You\x27are\x20offline.','_collabSession','string','UNIVER_SHEET','getOwnPropertyDescriptor','144FvxtZq','getUnitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startLiveShareCoordinator','unitId','HEADER_MENU','not-following','find','presenting','following','_config','NEW_CHANGESETS','Start\x20following','forEach','_startFollowing','_handleTerminate','defs','pipe','registerSharedOperation','defineProperty','You\x27re\x20presenting\x20the\x20document'];_0x1b5c=function(){return _0x47730e;};return _0x1b5c();}const Ce=_0x5b5861(0x1bc),De=0xc8;let N=class extends _0x1e7142{constructor(_0x6dfeba,_0x3ddfca,_0x347362,_0x335dfa,_0x3906cd){const _0x292108=_0x5b5861;super(),u(this,_0x292108(0x1f6),new _0x3e663f('idle')),u(this,_0x292108(0x1ca),this[_0x292108(0x1f6)]['asObservable']()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x292108(0x21f),null),(this['_unitID']=_0x6dfeba,this['_collabSession']=_0x3ddfca,this[_0x292108(0x1da)]=_0x347362,this[_0x292108(0x219)]=_0x335dfa,this['_commandService']=_0x3906cd);}get[_0x5b5861(0x239)](){const _0x328375=_0x5b5861;return this['_status$'][_0x328375(0x224)]();}[_0x5b5861(0x19b)](){const _0x5b2f2a=_0x5b5861;var _0x2efbfc;(_0x2efbfc=this[_0x5b2f2a(0x1e9)])==null||_0x2efbfc[_0x5b2f2a(0x19b)](),this[_0x5b2f2a(0x1f6)][_0x5b2f2a(0x1e3)](_0x5b2f2a(0x235)),this[_0x5b2f2a(0x1f6)][_0x5b2f2a(0x206)]();}[_0x5b5861(0x1c1)](){const _0x3139d6=_0x5b5861;return this[_0x3139d6(0x239)];}[_0x5b5861(0x1f9)](){const _0x334711=_0x5b5861;this['_init']||(this[_0x334711(0x1e2)]=!0x0,this['_collabSession'][_0x334711(0x22d)][_0x334711(0x1b3)](_0x4b7809(this[_0x334711(0x1e0)]))[_0x334711(0x1dc)](_0xdb4437=>{const _0x58d913=_0x334711;switch(_0xdb4437){case _0x57a487[_0x58d913(0x19a)]:this[_0x58d913(0x231)]();break;case _0x57a487[_0x58d913(0x210)]:this[_0x58d913(0x213)]();break;}}),this['_collabSession']['event$'][_0x334711(0x1b3)](_0x4b7809(this[_0x334711(0x1e0)]))['subscribe'](_0x215d3a=>{const _0x3c275c=_0x334711,{eventID:_0x3aa0f0}=_0x215d3a;switch(_0x3aa0f0){case _0x18e9cb[_0x3c275c(0x19c)]:this[_0x3c275c(0x221)](_0x215d3a);break;case _0x18e9cb[_0x3c275c(0x202)]:this['_handleOperation'](_0x215d3a);break;case _0x18e9cb['LIVESHARE_TERMINATE']:this[_0x3c275c(0x1b1)]();break;case _0x18e9cb[_0x3c275c(0x1ad)]:this[_0x3c275c(0x1f3)](_0x215d3a);break;}}));}[_0x5b5861(0x1d2)](){const _0x5b9c2d=_0x5b5861;this['_collabSession'][_0x5b9c2d(0x22f)]({'eventID':_0x18e9cb[_0x5b9c2d(0x217)],'data':{'unitID':this[_0x5b9c2d(0x218)],'userID':this['_collabSession'][_0x5b9c2d(0x1f5)]()}},this['_unitID']);}['stopPresenting'](){const _0x4b7042=_0x5b5861;this[_0x4b7042(0x239)]===_0x4b7042(0x1aa)&&(this[_0x4b7042(0x1f6)][_0x4b7042(0x1e3)](_0x4b7042(0x235)),this[_0x4b7042(0x19e)]['send']({'eventID':_0x18e9cb[_0x4b7042(0x234)],'data':{'unitID':this['_unitID']}},this[_0x4b7042(0x218)]));}['startFollowing'](){const _0x22c374=_0x5b5861;this[_0x22c374(0x239)]==='not-following'&&(this['_status$']['next']('following'),this[_0x22c374(0x1b0)]());}[_0x5b5861(0x21d)](){const _0x16cc75=_0x5b5861;this[_0x16cc75(0x239)]===_0x16cc75(0x1ab)&&this[_0x16cc75(0x195)]();}[_0x5b5861(0x221)](_0x2b06b4){const _0x41656c=_0x5b5861,{presenter:_0x2e6bc5}=_0x2b06b4[_0x41656c(0x1c2)],_0x2682f9=this['_collabSession'][_0x41656c(0x1f5)]();this[_0x41656c(0x21f)]=_0x2e6bc5,_0x2e6bc5===_0x2682f9?(this[_0x41656c(0x195)](),this[_0x41656c(0x21b)]()):this[_0x41656c(0x239)]!==_0x41656c(0x1a8)&&(this['_stopPresenting'](),this[_0x41656c(0x1b0)]());}['_fetchOperations'](){const _0x3cf453=_0x5b5861,_0x3ee071={'eventID':_0x18e9cb[_0x3cf453(0x207)]};this[_0x3cf453(0x19e)]['send'](_0x3ee071,this[_0x3cf453(0x218)]);}[_0x5b5861(0x1b1)](){const _0x25a836=_0x5b5861;this[_0x25a836(0x21f)]=null,this[_0x25a836(0x239)]!==_0x25a836(0x1aa)&&this[_0x25a836(0x1f0)]();}[_0x5b5861(0x1f3)](_0xe574cc){const _0x2f9804=_0x5b5861;if(this[_0x2f9804(0x239)]===_0x2f9804(0x1ab)&&this[_0x2f9804(0x21f)]===_0xe574cc['data'][_0x2f9804(0x1db)]){const _0x2c10b8=_0x1ae33c(_0xe574cc[_0x2f9804(0x1c2)])[_0x2f9804(0x220)][_0x2f9804(0x1d3)]()[_0x2f9804(0x1a9)](_0x1e4ce7=>_0x1e4ce7['id']===_0x4210a9['id']);if(_0x2c10b8){const _0x19335b=_0x2c10b8['params'][_0x2f9804(0x1a6)],_0x36810d=_0x2c10b8[_0x2f9804(0x1e7)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x39eb88['id'],{'unitId':_0x19335b,'subUnitId':_0x36810d},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x541948=_0x5b5861;this[_0x541948(0x1f6)][_0x541948(0x1e3)]('presenting');const _0x3bbd2a=new Map(),_0x3f5884=this[_0x541948(0x1e9)]=new _0x38d873();_0x3f5884[_0x541948(0x196)](_0x47586f(()=>{const _0x4e1410=_0x541948;_0x3bbd2a[_0x4e1410(0x1af)](_0x3ef4a9=>_0x3ef4a9['complete']()),_0x3bbd2a['clear']();})),_0x3f5884['add'](this[_0x541948(0x1bd)][_0x541948(0x1cb)](_0xbe3d8f=>{const _0x5cfc54=_0x541948;var _0x489ed5;if(_0xbe3d8f['type']!==_0x370490[_0x5cfc54(0x209)]||!this[_0x5cfc54(0x219)]['shouldShareOperation'](_0xbe3d8f['id']))return;const {id:_0x3d333a}=_0xbe3d8f;let _0x365653;_0x3bbd2a['has'](_0x3d333a)?_0x365653=_0x3bbd2a[_0x5cfc54(0x1e1)](_0x3d333a):(_0x365653=new _0x4059b6(),_0x3bbd2a[_0x5cfc54(0x226)](_0x3d333a,_0x365653),_0x365653['pipe'](_0x1ec35a((_0x489ed5=this[_0x5cfc54(0x1da)][_0x5cfc54(0x200)](Ce))!=null?_0x489ed5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5cfc54(0x1dc)](_0xfade8b=>{const _0x10425c=_0x5cfc54;this[_0x10425c(0x19e)][_0x10425c(0x22f)]({'eventID':_0x18e9cb[_0x10425c(0x202)],'data':{'unitID':this[_0x10425c(0x218)],'operations':{[_0xfade8b['id']]:{'id':_0xfade8b['id'],'params':JSON[_0x10425c(0x197)](_0xfade8b[_0x10425c(0x1e7)])}}}},this[_0x10425c(0x218)]);})),_0x365653[_0x5cfc54(0x1e3)](_0xbe3d8f);})),this[_0x541948(0x219)]['getInitialStates'](this[_0x541948(0x218)])['forEach'](_0x3fc9c9=>this[_0x541948(0x19e)][_0x541948(0x22f)]({'eventID':_0x18e9cb[_0x541948(0x202)],'data':{'unitID':this[_0x541948(0x218)],'operations':{[_0x3fc9c9['id']]:{'id':_0x3fc9c9['id'],'params':JSON['stringify'](_0x3fc9c9[_0x541948(0x1e7)])}}}},this[_0x541948(0x218)]));}[_0x5b5861(0x1f4)](){const _0x48d7c7=_0x5b5861;var _0x1ffe63;this['_status$']['next'](_0x48d7c7(0x235)),(_0x1ffe63=this[_0x48d7c7(0x1e9)])==null||_0x1ffe63[_0x48d7c7(0x19b)](),this[_0x48d7c7(0x1e9)]=null;}['_startFollowing'](){const _0xaefdea=_0x5b5861;var _0x1a9cff;(_0x1a9cff=this[_0xaefdea(0x1e9)])==null||_0x1a9cff[_0xaefdea(0x19b)](),this[_0xaefdea(0x1f6)][_0xaefdea(0x1e3)](_0xaefdea(0x1ab));}[_0x5b5861(0x1f0)](){const _0x57c0e6=_0x5b5861;var _0x13f837;this['_status$'][_0x57c0e6(0x1e3)]('idle'),(_0x13f837=this['_commandDisposable'])==null||_0x13f837[_0x57c0e6(0x19b)](),this[_0x57c0e6(0x1e9)]=null;}[_0x5b5861(0x195)](){const _0x56d5ec=_0x5b5861;var _0x1d4977;this[_0x56d5ec(0x1f6)][_0x56d5ec(0x1e3)](_0x56d5ec(0x1a8)),(_0x1d4977=this[_0x56d5ec(0x1e9)])==null||_0x1d4977[_0x56d5ec(0x19b)]();}[_0x5b5861(0x1be)](_0xf7d74b){const _0x462d77=_0x5b5861;if([_0x462d77(0x1aa),'not-following','offline'][_0x462d77(0x214)](this['_status'])||!_0xf7d74b[_0x462d77(0x1c2)]['presenter']||_0xf7d74b[_0x462d77(0x1c2)][_0x462d77(0x1b9)]===this[_0x462d77(0x19e)][_0x462d77(0x1f5)]())return;this[_0x462d77(0x239)]===_0x462d77(0x235)&&this[_0x462d77(0x1b0)]();const _0x565242=_0xf7d74b[_0x462d77(0x1c2)][_0x462d77(0x237)];Object[_0x462d77(0x1f7)](_0x565242)[_0x462d77(0x1af)](_0x17f4dc=>{const _0x25ca95=_0x462d77;this[_0x25ca95(0x1bd)][_0x25ca95(0x20f)](_0x17f4dc['id'],_0x17f4dc['params']?JSON[_0x25ca95(0x208)](_0x17f4dc[_0x25ca95(0x1e7)]):null,{'fromCollab':!0x0});});}[_0x5b5861(0x231)](){const _0x46763e=_0x5b5861;var _0x1cacfe;this['_status$']['next'](_0x46763e(0x1ec)),(_0x1cacfe=this[_0x46763e(0x1e9)])==null||_0x1cacfe[_0x46763e(0x19b)]();}[_0x5b5861(0x213)](){const _0x407064=_0x5b5861;this['_status$'][_0x407064(0x1e3)](_0x407064(0x235)),this['_fetchOperations']();}};N=Y([_(0x2,_0x51e68b),_(0x3,_0x85d7bd(L)),_(0x4,_0x1ea6ce)],N);function Le(){const _0x37c9ae=_0x5b5861,_0x1e7e28=_0x4028ab(S),_0x56adbd=_0x4028ab(_0x4886c8),_0x5c12d1=_0x2a1f12(()=>_0x56adbd['getCurrentTypeOfUnit$'](_0x7e82ed[_0x37c9ae(0x1a0)]),void 0x0,!0x1,[]),[_0x21c759,_0x4901fd]=_0x3f7642(null),[_0x4980a3,_0x344e24]=_0x3f7642(c[_0x37c9ae(0x1ee)]),_0x3d84ce=_0x369264(null);return _0x57b2a6(()=>(_0x5c12d1&&_0x1e7e28[_0x37c9ae(0x1fa)](_0x5c12d1[_0x37c9ae(0x1a3)]())[_0x37c9ae(0x229)](_0xe045e5=>{const _0x527775=_0x37c9ae;_0x4901fd(_0xe045e5),_0x3d84ce[_0x527775(0x1b7)]=_0xe045e5[_0x527775(0x1ca)][_0x527775(0x1dc)](_0x4fafad=>{_0x344e24(_0x4fafad);});}),()=>{const _0x554c38=_0x37c9ae;var _0x3107c2;(_0x3107c2=_0x3d84ce['current'])==null||_0x3107c2[_0x554c38(0x1d4)](),_0x3d84ce[_0x554c38(0x1b7)]=null;}),[_0x5c12d1,_0x1e7e28]),_0x21c759?_0x2485d8(_0x4ed21b,{'align':_0x37c9ae(0x201),'disabled':_0x4980a3===c[_0x37c9ae(0x19a)],'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':_0x2485d8(Re,{'status':_0x4980a3,'coordinator':_0x21c759}),'children':_0x2485d8('button',{'className':_0x43e0fe(_0x37c9ae(0x1a4),{'univer-cursor-not-allowed':_0x4980a3===c[_0x37c9ae(0x19a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4980a3!==c[_0x37c9ae(0x19a)]}),'type':'button','children':_0x2485d8(W,{'className':_0x37c9ae(0x1d8)})})}):null;}function Re(_0x1670a2){const _0x5acaba=_0x5b5861,{status:_0xe184ee,coordinator:_0x634433}=_0x1670a2;switch(_0xe184ee){case c[_0x5acaba(0x1ee)]:return _0x2485d8($e,{'coordinator':_0x634433});case c['FOLLOWING']:return _0x2485d8(xe,{'coordinator':_0x634433});case c[_0x5acaba(0x199)]:return _0x2485d8(Pe,{'coordinator':_0x634433});case c['OFFLINE']:return _0x2485d8(Te,{});case c[_0x5acaba(0x1f8)]:return _0x2485d8(Ae,{'coordinator':_0x634433});default:return null;}}function $e(_0x17c245){const _0x5ef1a9=_0x5b5861,{coordinator:_0x2a4025}=_0x17c245;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8(_0x5ef1a9(0x1c9),{'className':_0x5ef1a9(0x1f1),'children':_0x5ef1a9(0x1bf)}),_0x2485d8(_0x35ba61,{'onClick':()=>_0x2a4025[_0x5ef1a9(0x1d2)](),'children':_0x5ef1a9(0x232)})]});}function xe(_0x3b964d){const _0x315997=_0x5b5861,{coordinator:_0x55fed5}=_0x3b964d;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8('div',{'className':_0x315997(0x1f1),'children':_0x315997(0x225)}),_0x2485d8(_0x35ba61,{'onClick':()=>_0x55fed5[_0x315997(0x21d)](),'children':_0x315997(0x1ce)})]});}function Pe(_0x3d4d5d){const _0x259c30=_0x5b5861,{coordinator:_0x7aa90a}=_0x3d4d5d;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8(_0x259c30(0x1c9),{'className':_0x259c30(0x1f1),'children':_0x259c30(0x1ed)}),_0x2485d8(_0x35ba61,{'variant':'text','onClick':()=>_0x7aa90a[_0x259c30(0x203)](),'children':_0x259c30(0x1ae)})]});}function Ae(_0x4fac86){const _0x2cdfbf=_0x5b5861,{coordinator:_0x3d4d49}=_0x4fac86;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8('div',{'className':_0x2cdfbf(0x1f1),'children':_0x2cdfbf(0x1b6)}),_0x2485d8(_0x35ba61,{'variant':_0x2cdfbf(0x205),'onClick':()=>_0x3d4d49['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x2c30e3=_0x5b5861;return _0x2485d8(_0x25cd63,{'children':_0x2c30e3(0x19d)});}var Fe=Object[_0x5b5861(0x1a1)],He=(_0x3a2c04,_0x501f60,_0x1d8caf,_0x5eac4c)=>{const _0x20282e=_0x5b5861;for(var _0x14718d=_0x5eac4c>0x1?void 0x0:_0x5eac4c?Fe(_0x501f60,_0x1d8caf):_0x501f60,_0x41c796=_0x3a2c04[_0x20282e(0x1c4)]-0x1,_0x5e736d;_0x41c796>=0x0;_0x41c796--)(_0x5e736d=_0x3a2c04[_0x41c796])&&(_0x14718d=_0x5e736d(_0x14718d)||_0x14718d);return _0x14718d;},A=(_0x10ecb3,_0x1ca439)=>(_0x5d59fb,_0x533c08)=>_0x1ca439(_0x5d59fb,_0x533c08,_0x10ecb3);let m=class extends _0xbd0411{constructor(_0x25a528,_0x3eda7e){const _0x4a53a0=_0x5b5861;super(),this['_injector']=_0x25a528,this[_0x4a53a0(0x222)]=_0x3eda7e,this[_0x4a53a0(0x1fe)]();}[_0x5b5861(0x1fe)](){const _0x5298b4=_0x5b5861;this[_0x5298b4(0x1ba)](this[_0x5298b4(0x222)]['registerComponent'](_0x1d717f[_0x5298b4(0x1a7)],()=>_0x353c5a(Le,this[_0x5298b4(0x1d1)])));}};m=He([A(0x0,_0x85d7bd(_0x1a0d86)),A(0x1,_0x25b092)],m);const ye=_0x5b5861(0x227),T={};var Ue=Object[_0x5b5861(0x1a1)],Ve=(_0x56dc2e,_0x4c7355,_0x47345d,_0x22f5f6)=>{for(var _0x5234b6=_0x22f5f6>0x1?void 0x0:_0x22f5f6?Ue(_0x4c7355,_0x47345d):_0x4c7355,_0x20bb5f=_0x56dc2e['length']-0x1,_0x107414;_0x20bb5f>=0x0;_0x20bb5f--)(_0x107414=_0x56dc2e[_0x20bb5f])&&(_0x5234b6=_0x107414(_0x5234b6)||_0x5234b6);return _0x5234b6;},je=(_0xbd846d,_0x2cf4df)=>(_0xe5ad6d,_0xdabbaa)=>_0x2cf4df(_0xe5ad6d,_0xdabbaa,_0xbd846d);let I=class extends _0xbd0411{constructor(_0x2b79a4){const _0x374144=_0x5b5861;super(),this[_0x374144(0x219)]=_0x2b79a4,this[_0x374144(0x1e2)]();}[_0x5b5861(0x1e2)](){const _0x139a05=_0x5b5861;[_0x11cc91['id'],_0x4c52de['id'],_0x39eb88['id']][_0x139a05(0x1af)](_0x529b3d=>{const _0x47f1f3=_0x139a05;this[_0x47f1f3(0x1ba)](this[_0x47f1f3(0x219)]['registerSharedOperation'](_0x529b3d));});}};function _0xa334(_0x5ce1d0,_0xe67869){_0x5ce1d0=_0x5ce1d0-0x192;const _0x1b5c29=_0x1b5c();let _0xa3348c=_0x1b5c29[_0x5ce1d0];return _0xa3348c;}I=Ve([je(0x0,_0x85d7bd(L))],I);var Me=Object[_0x5b5861(0x1b5)],ke=Object[_0x5b5861(0x1a1)],Ge=(_0x111328,_0x4c459b,_0x5e3a7b)=>_0x4c459b in _0x111328?Me(_0x111328,_0x4c459b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e3a7b}):_0x111328[_0x4c459b]=_0x5e3a7b,We=(_0x20f138,_0x33db63,_0x50f866,_0x148ef0)=>{const _0x2b5cad=_0x5b5861;for(var _0x32b944=_0x148ef0>0x1?void 0x0:_0x148ef0?ke(_0x33db63,_0x50f866):_0x33db63,_0x4cfc81=_0x20f138[_0x2b5cad(0x1c4)]-0x1,_0x31ba2e;_0x4cfc81>=0x0;_0x4cfc81--)(_0x31ba2e=_0x20f138[_0x4cfc81])&&(_0x32b944=_0x31ba2e(_0x32b944)||_0x32b944);return _0x32b944;},F=(_0x57221a,_0x358b54)=>(_0x586c80,_0x23cf9b)=>_0x358b54(_0x586c80,_0x23cf9b,_0x57221a),B=(_0x5886f6,_0x34c042,_0x881c93)=>Ge(_0x5886f6,typeof _0x34c042!='symbol'?_0x34c042+'':_0x34c042,_0x881c93);const Ye=_0x5b5861(0x1c6);let b=class extends _0x57ad4d{constructor(_0x1e74b7=T,_0x5f4ece,_0x17189d){const _0x7e9389=_0x5b5861;super(),this[_0x7e9389(0x1ac)]=_0x1e74b7,this[_0x7e9389(0x1d1)]=_0x5f4ece,this[_0x7e9389(0x1da)]=_0x17189d;const {..._0x4cc3a9}=_0x339a10({},T,this[_0x7e9389(0x1ac)]);this[_0x7e9389(0x1da)]['setConfig'](ye,_0x4cc3a9);}[_0x5b5861(0x215)](){const _0x5014fb=_0x5b5861;_0x2201e0(this[_0x5014fb(0x1d1)],_0x22b641([[L],[S],[I],[m]],this[_0x5014fb(0x1ac)]['override'])),_0x44e6ef(this[_0x5014fb(0x1d1)],[[I]]);}[_0x5b5861(0x1df)](){const _0x17cef4=_0x5b5861;_0x44e6ef(this[_0x17cef4(0x1d1)],[[m]]);}};B(b,_0x5b5861(0x1d9),_0x7e82ed[_0x5b5861(0x1d0)]),B(b,_0x5b5861(0x22c),Ye),b=We([_0x1365d5(_0x2946ae),F(0x1,_0x85d7bd(_0x1a0d86)),F(0x2,_0x51e68b)],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 _0x13475b=_0x306e;(function(_0x20ba27,_0x12b028){const _0x41ffaa=_0x306e,_0x184059=_0x20ba27();while(!![]){try{const _0x1f2a57=parseInt(_0x41ffaa(0xf1))/0x1*(-parseInt(_0x41ffaa(0x110))/0x2)+parseInt(_0x41ffaa(0x102))/0x3*(-parseInt(_0x41ffaa(0xf0))/0x4)+parseInt(_0x41ffaa(0xf2))/0x5*(-parseInt(_0x41ffaa(0x10b))/0x6)+parseInt(_0x41ffaa(0x112))/0x7*(-parseInt(_0x41ffaa(0xfd))/0x8)+parseInt(_0x41ffaa(0x10d))/0x9+parseInt(_0x41ffaa(0xf3))/0xa*(parseInt(_0x41ffaa(0x109))/0xb)+parseInt(_0x41ffaa(0xff))/0xc*(parseInt(_0x41ffaa(0x113))/0xd);if(_0x1f2a57===_0x12b028)break;else _0x184059['push'](_0x184059['shift']());}catch(_0x32dac7){_0x184059['push'](_0x184059['shift']());}}}(_0x583d,0x630f1));import{LiveShareController as _0x3bb719,LiveShareStatus as _0x2a6fbe}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x13e804}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xa6e7d9}from'@univerjs/sheets';import{SetScrollOperation as _0x2e8aa1}from'@univerjs/sheets-ui';import{FRange as _0x550479}from'@univerjs/sheets/facade';function _0x583d(){const _0x478507=['409346pxwFVm','11978135AZwUPG','No\x20active\x20workbook\x20found.','97592lwZLfP','6KueuBD','5SDvkUP','11810LZhtnk','startFollowing','getLiveShareCoordinatorSync','extend','getActiveWorkbook','_injector','LiveShareStatusEnum','getUnitId','get','stopFollowing','80ohbYBP','syncExecuteCommand','12ErZXAF','IDLE','_initialize','69RXmnRj','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','tryStartPresenting','getActiveSheet','startColumn','startRow','5951yKOLau','PRESENTING','999276nnBdaZ','getId','1577619rxlwdx','getStatus','stopPresenting','5794QtfCkP','getSheetId'];_0x583d=function(){return _0x478507;};return _0x583d();}import{FUniver as _0x31d568,FEnum as _0x377e49}from'@univerjs/core/facade';class I extends _0x550479{[_0x13475b(0x101)](_0xcf0cc7,_0x9e4934,_0x191abe,_0x615cc1,_0x2f8c7d){const _0x2173b8=_0x13475b,_0x3ffaa7=_0xcf0cc7[_0x2173b8(0xfb)](_0x3bb719),_0xcfbdb4=_0xcf0cc7[_0x2173b8(0xfb)](_0x13e804),_0x1c87bf=_0x9e4934[_0x2173b8(0xfa)](),_0x305cbd=_0x9e4934[_0x2173b8(0x106)](),_0x284f68=_0x3ffaa7[_0x2173b8(0xf5)](_0x1c87bf);(_0x284f68==null?void 0x0:_0x284f68[_0x2173b8(0x10e)]())!==_0x2a6fbe[_0x2173b8(0x10a)]||(_0x191abe['getSheetId']()!==_0x305cbd[_0x2173b8(0x111)]()&&this['_commandService']['executeCommand'](_0xa6e7d9['id'],{'unitId':_0x1c87bf,'subUnitId':_0x191abe[_0x2173b8(0x111)]()}),!_0xcfbdb4['getRenderById'](_0x1c87bf))||_0x2f8c7d[_0x2173b8(0xfe)](_0x2e8aa1['id'],{'unitId':_0x9e4934[_0x2173b8(0xfa)](),'sheetId':_0x191abe[_0x2173b8(0x111)](),'sheetViewStartRow':_0x615cc1[_0x2173b8(0x108)],'sheetViewStartColumn':_0x615cc1[_0x2173b8(0x107)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x550479['extend'](I);class m extends _0x31d568{[_0x13475b(0x104)](){const _0x3f46dc=_0x13475b;var _0x4a7e70,_0x95ae5d;const _0x98ae25=this['_injector'][_0x3f46dc(0xfb)](_0x3bb719),_0x5c3bfc=(_0x4a7e70=this[_0x3f46dc(0xf7)]())==null?void 0x0:_0x4a7e70[_0x3f46dc(0x10c)]();if(!_0x5c3bfc)throw new Error('No\x20active\x20workbook\x20found.');const _0x38a727=_0x98ae25[_0x3f46dc(0xf5)](_0x5c3bfc);return(_0x95ae5d=_0x38a727==null?void 0x0:_0x38a727[_0x3f46dc(0x10e)]())!=null?_0x95ae5d:_0x2a6fbe[_0x3f46dc(0x100)];}[_0x13475b(0xf4)](){const _0x1a317f=_0x13475b;var _0x393c3b;const _0x4d321c=this[_0x1a317f(0xf8)][_0x1a317f(0xfb)](_0x3bb719),_0x28cd87=(_0x393c3b=this[_0x1a317f(0xf7)]())==null?void 0x0:_0x393c3b[_0x1a317f(0x10c)]();if(!_0x28cd87)throw new Error(_0x1a317f(0xef));const _0x4866f0=_0x4d321c['getLiveShareCoordinatorSync'](_0x28cd87);if(!_0x4866f0)throw new Error(_0x1a317f(0x103));_0x4866f0[_0x1a317f(0xf4)]();}[_0x13475b(0xfc)](){const _0x21850f=_0x13475b;var _0x43dc54;const _0x247b78=this['_injector'][_0x21850f(0xfb)](_0x3bb719),_0x2d8597=(_0x43dc54=this['getActiveWorkbook']())==null?void 0x0:_0x43dc54[_0x21850f(0x10c)]();if(!_0x2d8597)throw new Error(_0x21850f(0xef));const _0x4e393f=_0x247b78[_0x21850f(0xf5)](_0x2d8597);if(!_0x4e393f)throw new Error(_0x21850f(0x103));_0x4e393f[_0x21850f(0xfc)]();}['startPresenting'](){const _0xd16700=_0x13475b;var _0x170c89;const _0x60246d=this[_0xd16700(0xf8)][_0xd16700(0xfb)](_0x3bb719),_0x12c631=(_0x170c89=this[_0xd16700(0xf7)]())==null?void 0x0:_0x170c89[_0xd16700(0x10c)]();if(!_0x12c631)throw new Error(_0xd16700(0xef));const _0x347c39=_0x60246d[_0xd16700(0xf5)](_0x12c631);if(!_0x347c39)throw new Error(_0xd16700(0x103));_0x347c39[_0xd16700(0x105)]();}[_0x13475b(0x10f)](){const _0x8e6609=_0x13475b;var _0x5cd5e5;const _0x472d65=this[_0x8e6609(0xf8)][_0x8e6609(0xfb)](_0x3bb719),_0x3359f5=(_0x5cd5e5=this[_0x8e6609(0xf7)]())==null?void 0x0:_0x5cd5e5[_0x8e6609(0x10c)]();if(!_0x3359f5)throw new Error(_0x8e6609(0xef));const _0x4a0045=_0x472d65[_0x8e6609(0xf5)](_0x3359f5);if(!_0x4a0045)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4a0045[_0x8e6609(0x10f)]();}}_0x31d568['extend'](m);class C extends _0x377e49{get[_0x13475b(0xf9)](){return _0x2a6fbe;}}function _0x306e(_0x1834ae,_0x109aae){_0x1834ae=_0x1834ae-0xef;const _0x583da7=_0x583d();let _0x306e42=_0x583da7[_0x1834ae];return _0x306e42;}_0x377e49[_0x13475b(0xf6)](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 _0x5b5861=_0xa334;(function(_0x940b76,_0x3e06cd){const _0x5ddba1=_0xa334,_0x2712bc=_0x940b76();while(!![]){try{const _0x44ae39=parseInt(_0x5ddba1(0x1c3))/0x1*(parseInt(_0x5ddba1(0x1ef))/0x2)+-parseInt(_0x5ddba1(0x1a2))/0x3*(-parseInt(_0x5ddba1(0x1c7))/0x4)+-parseInt(_0x5ddba1(0x21a))/0x5+parseInt(_0x5ddba1(0x198))/0x6+parseInt(_0x5ddba1(0x1ff))/0x7+parseInt(_0x5ddba1(0x223))/0x8*(-parseInt(_0x5ddba1(0x194))/0x9)+parseInt(_0x5ddba1(0x20c))/0xa*(-parseInt(_0x5ddba1(0x1e8))/0xb);if(_0x44ae39===_0x3e06cd)break;else _0x2712bc['push'](_0x2712bc['shift']());}catch(_0x2c0d93){_0x2712bc['push'](_0x2712bc['shift']());}}}(_0x1b5c,0xaefbb));var J=Object['defineProperty'],K=(_0x571e1d,_0x583722,_0x457904)=>_0x583722 in _0x571e1d?J(_0x571e1d,_0x583722,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x457904}):_0x571e1d[_0x583722]=_0x457904,u=(_0x1c3cd4,_0x4d5b6b,_0x3d3913)=>K(_0x1c3cd4,typeof _0x4d5b6b!=_0x5b5861(0x1fb)?_0x4d5b6b+'':_0x4d5b6b,_0x3d3913);import{Disposable as _0xbd0411,toDisposable as _0x47586f,IUniverInstanceService as _0x4886c8,Inject as _0x85d7bd,Injector as _0x1a0d86,IConfigService as _0x51e68b,ICommandService as _0x1ea6ce,RxDisposable as _0x1e7142,UniverInstanceType as _0x7e82ed,DisposableCollection as _0x38d873,CommandType as _0x370490,DependentOn as _0x1365d5,Plugin as _0x57ad4d,merge as _0x339a10,registerDependencies as _0x2201e0,mergeOverrideWithDependencies as _0x22b641,touchDependencies as _0x44e6ef}from'@univerjs/core';import{useDependency as _0x4028ab,useObservable as _0x2a1f12,IUIPartsService as _0x25b092,BuiltInUIPart as _0x1d717f,connectInjector as _0x353c5a}from'@univerjs/ui';import{jsx as _0x2485d8,jsxs as _0x3633d3,Fragment as _0x25cd63}from'react/jsx-runtime';import{Dropdown as _0x4ed21b,clsx as _0x43e0fe,Button as _0x35ba61}from'@univerjs/design';import{useRef as _0x369264,createElement as _0x31575c,forwardRef as _0x17510d,useState as _0x3f7642,useEffect as _0x57b2a6}from'react';import{CollaborationEvent as _0x18e9cb,parseProtocolChangeset as _0x1ae33c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x257347,SessionStatus as _0x57a487,UniverCollaborationClientPlugin as _0x2946ae}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4210a9,SetWorksheetActiveOperation as _0x39eb88}from'@univerjs/sheets';import{BehaviorSubject as _0x3e663f,Subject as _0x4059b6}from'rxjs';import{takeUntil as _0x4b7809,throttleTime as _0x1ec35a}from'rxjs/operators';import{SetZoomRatioOperation as _0x11cc91,SetScrollOperation as _0x4c52de}from'@univerjs/sheets-ui';function k({ref:_0x276031,..._0x178009}){const _0x5eb254=_0x5b5861,{icon:_0x46ddae,id:_0x2bfbe2,className:_0x3a91c9,extend:_0x2d22f6,..._0x46cad4}=_0x178009,_0x5f0dcd=('univerjs-icon\x20univerjs-icon-'+_0x2bfbe2+'\x20'+(_0x3a91c9||''))[_0x5eb254(0x236)](),_0x42af45=_0x369264('_'+Oe());return G(_0x46ddae,''+_0x2bfbe2,{'defIds':_0x46ddae[_0x5eb254(0x22e)],'idSuffix':_0x42af45['current']},{'ref':_0x276031,'className':_0x5f0dcd,..._0x46cad4},_0x2d22f6);}function G(_0xe5140b,_0x10009f,_0x2a69ef,_0x4f048a,_0x2ae423){const _0x5a5e1c=_0x5b5861;return _0x31575c(_0xe5140b[_0x5a5e1c(0x1fd)],{'key':_0x10009f,...be(_0xe5140b,_0x2a69ef,_0x2ae423),..._0x4f048a},(Ee(_0xe5140b,_0x2a69ef)['children']||[])[_0x5a5e1c(0x1b8)]((_0x5610c4,_0x1ff3ee)=>G(_0x5610c4,_0x10009f+'-'+_0xe5140b[_0x5a5e1c(0x1fd)]+'-'+_0x1ff3ee,_0x2a69ef,void 0x0,_0x2ae423)));}function be(_0x454d5f,_0x1a7c57,_0x55e42c){const _0x50b9ae=_0x5b5861,_0x49adec={..._0x454d5f[_0x50b9ae(0x216)]};_0x55e42c!=null&&_0x55e42c[_0x50b9ae(0x1c0)]&&_0x49adec[_0x50b9ae(0x1d7)]===_0x50b9ae(0x1c0)&&(_0x49adec[_0x50b9ae(0x1d7)]=_0x55e42c[_0x50b9ae(0x1c0)]),_0x454d5f[_0x50b9ae(0x1fd)]===_0x50b9ae(0x21e)&&_0x49adec['id']&&(_0x49adec['id']=_0x49adec['id']+_0x1a7c57[_0x50b9ae(0x1cd)]),Object['entries'](_0x49adec)[_0x50b9ae(0x1af)](([_0x3de645,_0x23b4b3])=>{const _0x1280d4=_0x50b9ae;_0x3de645===_0x1280d4(0x21e)&&typeof _0x23b4b3==_0x1280d4(0x19f)&&(_0x49adec[_0x3de645]=_0x23b4b3[_0x1280d4(0x1e5)](/url\(#(.*)\)/,_0x1280d4(0x1ea)+_0x1a7c57[_0x1280d4(0x1cd)]+')'));});const {defIds:_0x1591cf}=_0x1a7c57;return!_0x1591cf||_0x1591cf[_0x50b9ae(0x1c4)]===0x0||(_0x454d5f[_0x50b9ae(0x1fd)]===_0x50b9ae(0x20d)&&_0x49adec[_0x50b9ae(0x1c5)]&&(_0x49adec[_0x50b9ae(0x1c5)]=_0x49adec[_0x50b9ae(0x1c5)]+_0x1a7c57[_0x50b9ae(0x1cd)]),Object['entries'](_0x49adec)[_0x50b9ae(0x1af)](([_0x12fbb5,_0xe1270d])=>{const _0x390ebb=_0x50b9ae;typeof _0xe1270d=='string'&&(_0x49adec[_0x12fbb5]=_0xe1270d['replace'](/url\(#(.*)\)/,_0x390ebb(0x1ea)+_0x1a7c57[_0x390ebb(0x1cd)]+')'));})),_0x49adec;}function Ee(_0x5b7cb2,_0x3e6d92){const _0x4b9ccb=_0x5b5861;var _0x30e6bf;const {defIds:_0x28b824}=_0x3e6d92;return!_0x28b824||_0x28b824['length']===0x0?_0x5b7cb2:_0x5b7cb2[_0x4b9ccb(0x1fd)]===_0x4b9ccb(0x1b2)&&((_0x30e6bf=_0x5b7cb2[_0x4b9ccb(0x20b)])!=null&&_0x30e6bf['length'])?{..._0x5b7cb2,'children':_0x5b7cb2[_0x4b9ccb(0x20b)]['map'](_0x210dbe=>typeof _0x210dbe['attrs']['id']==_0x4b9ccb(0x19f)&&_0x28b824&&_0x28b824['includes'](_0x210dbe[_0x4b9ccb(0x216)]['id'])?{..._0x210dbe,'attrs':{..._0x210dbe[_0x4b9ccb(0x216)],'id':_0x210dbe[_0x4b9ccb(0x216)]['id']+_0x3e6d92[_0x4b9ccb(0x1cd)]}}:_0x210dbe)}:_0x5b7cb2;}function Oe(){const _0x21bbfb=_0x5b5861;return Math[_0x21bbfb(0x1c8)]()['toString'](0x24)[_0x21bbfb(0x212)](0x2,0x8);}k['displayName']='UniverIcon';const we={'tag':_0x5b5861(0x1cf),'attrs':{'xmlns':_0x5b5861(0x192),'fill':_0x5b5861(0x1f2),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x5b5861(0x1eb)},'children':[{'tag':_0x5b5861(0x238),'attrs':{'fill':_0x5b5861(0x1e4),'d':_0x5b5861(0x1dd)}},{'tag':_0x5b5861(0x238),'attrs':{'fill':_0x5b5861(0x1e4),'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':_0x5b5861(0x211),'clipRule':_0x5b5861(0x211)}}]},W=_0x17510d(function(_0x5b22da,_0x571346){return _0x31575c(k,Object['assign']({},_0x5b22da,{'id':'live-share-icon','ref':_0x571346,'icon':we}));});W[_0x5b5861(0x230)]=_0x5b5861(0x22b);class L extends _0xbd0411{constructor(){const _0x3305d5=_0x5b5861;super(...arguments),u(this,_0x3305d5(0x21c),new Set()),u(this,'_reporters',new Set());}[_0x5b5861(0x1b4)](_0x166997){const _0x409c97=_0x5b5861;return this[_0x409c97(0x21c)][_0x409c97(0x196)](_0x166997),_0x47586f(()=>this[_0x409c97(0x21c)][_0x409c97(0x1d6)](_0x166997));}[_0x5b5861(0x233)](_0x58f42c){const _0x352a52=_0x5b5861;return this[_0x352a52(0x1de)][_0x352a52(0x196)](_0x58f42c),_0x47586f(()=>this[_0x352a52(0x1de)]['delete'](_0x58f42c));}[_0x5b5861(0x1fc)](_0x43dc2b){const _0x482a2f=_0x5b5861;return this[_0x482a2f(0x21c)][_0x482a2f(0x20e)](_0x43dc2b);}[_0x5b5861(0x228)](_0xea8e23){const _0x5be529=_0x5b5861;return Array['from'](this[_0x5be529(0x1de)])['map'](_0x2308d4=>_0x2308d4(_0xea8e23));}}var Ne=Object[_0x5b5861(0x1a1)],Y=(_0x302acb,_0x327879,_0x402b2a,_0x2f19d3)=>{const _0x500ef3=_0x5b5861;for(var _0x8c1f20=_0x2f19d3>0x1?void 0x0:_0x2f19d3?Ne(_0x327879,_0x402b2a):_0x327879,_0x4ea0b7=_0x302acb[_0x500ef3(0x1c4)]-0x1,_0x49076f;_0x4ea0b7>=0x0;_0x4ea0b7--)(_0x49076f=_0x302acb[_0x4ea0b7])&&(_0x8c1f20=_0x49076f(_0x8c1f20)||_0x8c1f20);return _0x8c1f20;},_=(_0x2c1953,_0x5b04c2)=>(_0x4f59e2,_0x5528fc)=>_0x5b04c2(_0x4f59e2,_0x5528fc,_0x2c1953);let S=class extends _0x1e7142{constructor(_0x45178e,_0x258c65,_0x29a1d5){const _0x13bcad=_0x5b5861;super(),u(this,_0x13bcad(0x193),new Map()),(this[_0x13bcad(0x1bb)]=_0x45178e,this[_0x13bcad(0x1d1)]=_0x258c65,this[_0x13bcad(0x20a)]=_0x29a1d5,this[_0x13bcad(0x1e2)]());}async[_0x5b5861(0x1fa)](_0x2e4190){const _0x2c64b5=_0x5b5861;return this[_0x2c64b5(0x193)]['has'](_0x2e4190)||await this[_0x2c64b5(0x1a5)](_0x2e4190),this[_0x2c64b5(0x193)][_0x2c64b5(0x1e1)](_0x2e4190);}[_0x5b5861(0x1e6)](_0x2850b0){const _0xdc978=_0x5b5861;var _0x3cacbb;return(_0x3cacbb=this[_0xdc978(0x193)]['get'](_0x2850b0))!=null?_0x3cacbb:null;}['_init'](){const _0x22b73b=_0x5b5861;this[_0x22b73b(0x1bb)][_0x22b73b(0x1cc)](_0x7e82ed['UNIVER_SHEET'])[_0x22b73b(0x1b3)](_0x4b7809(this[_0x22b73b(0x1e0)]))['subscribe'](async _0x111cd5=>{const _0x29bc42=_0x22b73b,_0x1bdd25=_0x111cd5['getUnitId']();this[_0x29bc42(0x193)][_0x29bc42(0x20e)](_0x1bdd25)||this[_0x29bc42(0x1a5)](_0x1bdd25);}),this[_0x22b73b(0x1bb)]['getTypeOfUnitDisposed$'](_0x7e82ed[_0x22b73b(0x1a0)])[_0x22b73b(0x1b3)](_0x4b7809(this[_0x22b73b(0x1e0)]))[_0x22b73b(0x1dc)](_0x5c6dc3=>{const _0x1c69b1=_0x22b73b,_0x53f226=_0x5c6dc3['getUnitId'](),_0x4fba0a=this[_0x1c69b1(0x193)][_0x1c69b1(0x1e1)](_0x53f226);_0x4fba0a==null||_0x4fba0a[_0x1c69b1(0x19b)]();});}async['_startLiveShareCoordinator'](_0x346ab7){const _0x467071=_0x5b5861,_0x2189de=await this[_0x467071(0x20a)][_0x467071(0x22a)](_0x346ab7),_0x305f93=this[_0x467071(0x1d1)][_0x467071(0x1d5)](N,_0x346ab7,_0x2189de);return _0x305f93['init'](),this[_0x467071(0x193)]['set'](_0x346ab7,_0x305f93),_0x305f93;}};S=Y([_(0x0,_0x4886c8),_(0x1,_0x85d7bd(_0x1a0d86)),_(0x2,_0x85d7bd(_0x257347))],S);var c=(_0x45c6d7=>(_0x45c6d7[_0x5b5861(0x19a)]=_0x5b5861(0x1ec),_0x45c6d7[_0x5b5861(0x1ee)]=_0x5b5861(0x235),_0x45c6d7[_0x5b5861(0x204)]=_0x5b5861(0x1ab),_0x45c6d7['NOT_FOLLOWING']=_0x5b5861(0x1a8),_0x45c6d7[_0x5b5861(0x1f8)]=_0x5b5861(0x1aa),_0x45c6d7))(c||{});function _0x1b5c(){const _0x47730e=['current','map','presenter','disposeWithMe','_univerInstanceService','SAME_OPERATION_SHARE_INTERVAL','_commandService','_handleOperation','Present\x20this\x20document','colorChannel1','getStatus','data','16747sojLxX','length','xlink:href','UNIVER_LIVE_SHARE_PLUGIN','13096emAemp','random','div','status$','onCommandExecuted','getTypeOfUnitAdded$','idSuffix','Stop\x20following','svg','UNIVER_UNKNOWN','_injector','tryStartPresenting','reverse','unsubscribe','createInstance','delete','fill','univer-size-4','type','_configService','memberID','subscribe','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','_reporters','onRendered','dispose$','get','_init','next','currentColor','replace','getLiveShareCoordinatorSync','params','33xMqSsJ','_commandDisposable','url(#$1','1em','offline','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','128USsvtz','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','none','_handleNewChangeSets','_stopPresenting','getMemberID','_status$','values','PRESENTING','init','getLiveShareCoordinator','symbol','shouldShareOperation','tag','_mountLiveShare','9560502wWroVZ','getConfig','end','LIVESHARE_OPERATION','startFollowing','FOLLOWING','default','complete','LIVESHARE_FETCH_OPERATIONS','parse','OPERATION','_collabSessionService','children','3431380rxTzaC','use','has','executeCommand','ONLINE','evenodd','substring','_handleOnline','includes','onStarting','attrs','LIVESHARE_REQUEST_HOST','_unitID','_liveShareService','6725420dtmcPr','_startPresenting','_sharedOperations','stopFollowing','mask','_presenter','mutations','_handleNewHost','_uiPartsService','24AjhhTO','getValue','You\x27re\x20following\x20the\x20presenter','set','live-share.config','getInitialStates','then','requireSession','LiveShareIcon','pluginName','sessionStatus$','defIds','send','displayName','_handleOffline','Start','registerInitialStateReporter','LIVESHARE_TERMINATE','idle','trim','operations','path','_status','http://www.w3.org/2000/svg','_entities','152541bPFRaj','_stopFollowing','add','stringify','3283980JGprmE','NOT_FOLLOWING','OFFLINE','dispose','LIVESHARE_NEW_HOST','You\x27are\x20offline.','_collabSession','string','UNIVER_SHEET','getOwnPropertyDescriptor','144FvxtZq','getUnitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startLiveShareCoordinator','unitId','HEADER_MENU','not-following','find','presenting','following','_config','NEW_CHANGESETS','Start\x20following','forEach','_startFollowing','_handleTerminate','defs','pipe','registerSharedOperation','defineProperty','You\x27re\x20presenting\x20the\x20document'];_0x1b5c=function(){return _0x47730e;};return _0x1b5c();}const Ce=_0x5b5861(0x1bc),De=0xc8;let N=class extends _0x1e7142{constructor(_0x6dfeba,_0x3ddfca,_0x347362,_0x335dfa,_0x3906cd){const _0x292108=_0x5b5861;super(),u(this,_0x292108(0x1f6),new _0x3e663f('idle')),u(this,_0x292108(0x1ca),this[_0x292108(0x1f6)]['asObservable']()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x292108(0x21f),null),(this['_unitID']=_0x6dfeba,this['_collabSession']=_0x3ddfca,this[_0x292108(0x1da)]=_0x347362,this[_0x292108(0x219)]=_0x335dfa,this['_commandService']=_0x3906cd);}get[_0x5b5861(0x239)](){const _0x328375=_0x5b5861;return this['_status$'][_0x328375(0x224)]();}[_0x5b5861(0x19b)](){const _0x5b2f2a=_0x5b5861;var _0x2efbfc;(_0x2efbfc=this[_0x5b2f2a(0x1e9)])==null||_0x2efbfc[_0x5b2f2a(0x19b)](),this[_0x5b2f2a(0x1f6)][_0x5b2f2a(0x1e3)](_0x5b2f2a(0x235)),this[_0x5b2f2a(0x1f6)][_0x5b2f2a(0x206)]();}[_0x5b5861(0x1c1)](){const _0x3139d6=_0x5b5861;return this[_0x3139d6(0x239)];}[_0x5b5861(0x1f9)](){const _0x334711=_0x5b5861;this['_init']||(this[_0x334711(0x1e2)]=!0x0,this['_collabSession'][_0x334711(0x22d)][_0x334711(0x1b3)](_0x4b7809(this[_0x334711(0x1e0)]))[_0x334711(0x1dc)](_0xdb4437=>{const _0x58d913=_0x334711;switch(_0xdb4437){case _0x57a487[_0x58d913(0x19a)]:this[_0x58d913(0x231)]();break;case _0x57a487[_0x58d913(0x210)]:this[_0x58d913(0x213)]();break;}}),this['_collabSession']['event$'][_0x334711(0x1b3)](_0x4b7809(this[_0x334711(0x1e0)]))['subscribe'](_0x215d3a=>{const _0x3c275c=_0x334711,{eventID:_0x3aa0f0}=_0x215d3a;switch(_0x3aa0f0){case _0x18e9cb[_0x3c275c(0x19c)]:this[_0x3c275c(0x221)](_0x215d3a);break;case _0x18e9cb[_0x3c275c(0x202)]:this['_handleOperation'](_0x215d3a);break;case _0x18e9cb['LIVESHARE_TERMINATE']:this[_0x3c275c(0x1b1)]();break;case _0x18e9cb[_0x3c275c(0x1ad)]:this[_0x3c275c(0x1f3)](_0x215d3a);break;}}));}[_0x5b5861(0x1d2)](){const _0x5b9c2d=_0x5b5861;this['_collabSession'][_0x5b9c2d(0x22f)]({'eventID':_0x18e9cb[_0x5b9c2d(0x217)],'data':{'unitID':this[_0x5b9c2d(0x218)],'userID':this['_collabSession'][_0x5b9c2d(0x1f5)]()}},this['_unitID']);}['stopPresenting'](){const _0x4b7042=_0x5b5861;this[_0x4b7042(0x239)]===_0x4b7042(0x1aa)&&(this[_0x4b7042(0x1f6)][_0x4b7042(0x1e3)](_0x4b7042(0x235)),this[_0x4b7042(0x19e)]['send']({'eventID':_0x18e9cb[_0x4b7042(0x234)],'data':{'unitID':this['_unitID']}},this[_0x4b7042(0x218)]));}['startFollowing'](){const _0x22c374=_0x5b5861;this[_0x22c374(0x239)]==='not-following'&&(this['_status$']['next']('following'),this[_0x22c374(0x1b0)]());}[_0x5b5861(0x21d)](){const _0x16cc75=_0x5b5861;this[_0x16cc75(0x239)]===_0x16cc75(0x1ab)&&this[_0x16cc75(0x195)]();}[_0x5b5861(0x221)](_0x2b06b4){const _0x41656c=_0x5b5861,{presenter:_0x2e6bc5}=_0x2b06b4[_0x41656c(0x1c2)],_0x2682f9=this['_collabSession'][_0x41656c(0x1f5)]();this[_0x41656c(0x21f)]=_0x2e6bc5,_0x2e6bc5===_0x2682f9?(this[_0x41656c(0x195)](),this[_0x41656c(0x21b)]()):this[_0x41656c(0x239)]!==_0x41656c(0x1a8)&&(this['_stopPresenting'](),this[_0x41656c(0x1b0)]());}['_fetchOperations'](){const _0x3cf453=_0x5b5861,_0x3ee071={'eventID':_0x18e9cb[_0x3cf453(0x207)]};this[_0x3cf453(0x19e)]['send'](_0x3ee071,this[_0x3cf453(0x218)]);}[_0x5b5861(0x1b1)](){const _0x25a836=_0x5b5861;this[_0x25a836(0x21f)]=null,this[_0x25a836(0x239)]!==_0x25a836(0x1aa)&&this[_0x25a836(0x1f0)]();}[_0x5b5861(0x1f3)](_0xe574cc){const _0x2f9804=_0x5b5861;if(this[_0x2f9804(0x239)]===_0x2f9804(0x1ab)&&this[_0x2f9804(0x21f)]===_0xe574cc['data'][_0x2f9804(0x1db)]){const _0x2c10b8=_0x1ae33c(_0xe574cc[_0x2f9804(0x1c2)])[_0x2f9804(0x220)][_0x2f9804(0x1d3)]()[_0x2f9804(0x1a9)](_0x1e4ce7=>_0x1e4ce7['id']===_0x4210a9['id']);if(_0x2c10b8){const _0x19335b=_0x2c10b8['params'][_0x2f9804(0x1a6)],_0x36810d=_0x2c10b8[_0x2f9804(0x1e7)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x39eb88['id'],{'unitId':_0x19335b,'subUnitId':_0x36810d},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x541948=_0x5b5861;this[_0x541948(0x1f6)][_0x541948(0x1e3)]('presenting');const _0x3bbd2a=new Map(),_0x3f5884=this[_0x541948(0x1e9)]=new _0x38d873();_0x3f5884[_0x541948(0x196)](_0x47586f(()=>{const _0x4e1410=_0x541948;_0x3bbd2a[_0x4e1410(0x1af)](_0x3ef4a9=>_0x3ef4a9['complete']()),_0x3bbd2a['clear']();})),_0x3f5884['add'](this[_0x541948(0x1bd)][_0x541948(0x1cb)](_0xbe3d8f=>{const _0x5cfc54=_0x541948;var _0x489ed5;if(_0xbe3d8f['type']!==_0x370490[_0x5cfc54(0x209)]||!this[_0x5cfc54(0x219)]['shouldShareOperation'](_0xbe3d8f['id']))return;const {id:_0x3d333a}=_0xbe3d8f;let _0x365653;_0x3bbd2a['has'](_0x3d333a)?_0x365653=_0x3bbd2a[_0x5cfc54(0x1e1)](_0x3d333a):(_0x365653=new _0x4059b6(),_0x3bbd2a[_0x5cfc54(0x226)](_0x3d333a,_0x365653),_0x365653['pipe'](_0x1ec35a((_0x489ed5=this[_0x5cfc54(0x1da)][_0x5cfc54(0x200)](Ce))!=null?_0x489ed5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5cfc54(0x1dc)](_0xfade8b=>{const _0x10425c=_0x5cfc54;this[_0x10425c(0x19e)][_0x10425c(0x22f)]({'eventID':_0x18e9cb[_0x10425c(0x202)],'data':{'unitID':this[_0x10425c(0x218)],'operations':{[_0xfade8b['id']]:{'id':_0xfade8b['id'],'params':JSON[_0x10425c(0x197)](_0xfade8b[_0x10425c(0x1e7)])}}}},this[_0x10425c(0x218)]);})),_0x365653[_0x5cfc54(0x1e3)](_0xbe3d8f);})),this[_0x541948(0x219)]['getInitialStates'](this[_0x541948(0x218)])['forEach'](_0x3fc9c9=>this[_0x541948(0x19e)][_0x541948(0x22f)]({'eventID':_0x18e9cb[_0x541948(0x202)],'data':{'unitID':this[_0x541948(0x218)],'operations':{[_0x3fc9c9['id']]:{'id':_0x3fc9c9['id'],'params':JSON['stringify'](_0x3fc9c9[_0x541948(0x1e7)])}}}},this[_0x541948(0x218)]));}[_0x5b5861(0x1f4)](){const _0x48d7c7=_0x5b5861;var _0x1ffe63;this['_status$']['next'](_0x48d7c7(0x235)),(_0x1ffe63=this[_0x48d7c7(0x1e9)])==null||_0x1ffe63[_0x48d7c7(0x19b)](),this[_0x48d7c7(0x1e9)]=null;}['_startFollowing'](){const _0xaefdea=_0x5b5861;var _0x1a9cff;(_0x1a9cff=this[_0xaefdea(0x1e9)])==null||_0x1a9cff[_0xaefdea(0x19b)](),this[_0xaefdea(0x1f6)][_0xaefdea(0x1e3)](_0xaefdea(0x1ab));}[_0x5b5861(0x1f0)](){const _0x57c0e6=_0x5b5861;var _0x13f837;this['_status$'][_0x57c0e6(0x1e3)]('idle'),(_0x13f837=this['_commandDisposable'])==null||_0x13f837[_0x57c0e6(0x19b)](),this[_0x57c0e6(0x1e9)]=null;}[_0x5b5861(0x195)](){const _0x56d5ec=_0x5b5861;var _0x1d4977;this[_0x56d5ec(0x1f6)][_0x56d5ec(0x1e3)](_0x56d5ec(0x1a8)),(_0x1d4977=this[_0x56d5ec(0x1e9)])==null||_0x1d4977[_0x56d5ec(0x19b)]();}[_0x5b5861(0x1be)](_0xf7d74b){const _0x462d77=_0x5b5861;if([_0x462d77(0x1aa),'not-following','offline'][_0x462d77(0x214)](this['_status'])||!_0xf7d74b[_0x462d77(0x1c2)]['presenter']||_0xf7d74b[_0x462d77(0x1c2)][_0x462d77(0x1b9)]===this[_0x462d77(0x19e)][_0x462d77(0x1f5)]())return;this[_0x462d77(0x239)]===_0x462d77(0x235)&&this[_0x462d77(0x1b0)]();const _0x565242=_0xf7d74b[_0x462d77(0x1c2)][_0x462d77(0x237)];Object[_0x462d77(0x1f7)](_0x565242)[_0x462d77(0x1af)](_0x17f4dc=>{const _0x25ca95=_0x462d77;this[_0x25ca95(0x1bd)][_0x25ca95(0x20f)](_0x17f4dc['id'],_0x17f4dc['params']?JSON[_0x25ca95(0x208)](_0x17f4dc[_0x25ca95(0x1e7)]):null,{'fromCollab':!0x0});});}[_0x5b5861(0x231)](){const _0x46763e=_0x5b5861;var _0x1cacfe;this['_status$']['next'](_0x46763e(0x1ec)),(_0x1cacfe=this[_0x46763e(0x1e9)])==null||_0x1cacfe[_0x46763e(0x19b)]();}[_0x5b5861(0x213)](){const _0x407064=_0x5b5861;this['_status$'][_0x407064(0x1e3)](_0x407064(0x235)),this['_fetchOperations']();}};N=Y([_(0x2,_0x51e68b),_(0x3,_0x85d7bd(L)),_(0x4,_0x1ea6ce)],N);function Le(){const _0x37c9ae=_0x5b5861,_0x1e7e28=_0x4028ab(S),_0x56adbd=_0x4028ab(_0x4886c8),_0x5c12d1=_0x2a1f12(()=>_0x56adbd['getCurrentTypeOfUnit$'](_0x7e82ed[_0x37c9ae(0x1a0)]),void 0x0,!0x1,[]),[_0x21c759,_0x4901fd]=_0x3f7642(null),[_0x4980a3,_0x344e24]=_0x3f7642(c[_0x37c9ae(0x1ee)]),_0x3d84ce=_0x369264(null);return _0x57b2a6(()=>(_0x5c12d1&&_0x1e7e28[_0x37c9ae(0x1fa)](_0x5c12d1[_0x37c9ae(0x1a3)]())[_0x37c9ae(0x229)](_0xe045e5=>{const _0x527775=_0x37c9ae;_0x4901fd(_0xe045e5),_0x3d84ce[_0x527775(0x1b7)]=_0xe045e5[_0x527775(0x1ca)][_0x527775(0x1dc)](_0x4fafad=>{_0x344e24(_0x4fafad);});}),()=>{const _0x554c38=_0x37c9ae;var _0x3107c2;(_0x3107c2=_0x3d84ce['current'])==null||_0x3107c2[_0x554c38(0x1d4)](),_0x3d84ce[_0x554c38(0x1b7)]=null;}),[_0x5c12d1,_0x1e7e28]),_0x21c759?_0x2485d8(_0x4ed21b,{'align':_0x37c9ae(0x201),'disabled':_0x4980a3===c[_0x37c9ae(0x19a)],'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':_0x2485d8(Re,{'status':_0x4980a3,'coordinator':_0x21c759}),'children':_0x2485d8('button',{'className':_0x43e0fe(_0x37c9ae(0x1a4),{'univer-cursor-not-allowed':_0x4980a3===c[_0x37c9ae(0x19a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4980a3!==c[_0x37c9ae(0x19a)]}),'type':'button','children':_0x2485d8(W,{'className':_0x37c9ae(0x1d8)})})}):null;}function Re(_0x1670a2){const _0x5acaba=_0x5b5861,{status:_0xe184ee,coordinator:_0x634433}=_0x1670a2;switch(_0xe184ee){case c[_0x5acaba(0x1ee)]:return _0x2485d8($e,{'coordinator':_0x634433});case c['FOLLOWING']:return _0x2485d8(xe,{'coordinator':_0x634433});case c[_0x5acaba(0x199)]:return _0x2485d8(Pe,{'coordinator':_0x634433});case c['OFFLINE']:return _0x2485d8(Te,{});case c[_0x5acaba(0x1f8)]:return _0x2485d8(Ae,{'coordinator':_0x634433});default:return null;}}function $e(_0x17c245){const _0x5ef1a9=_0x5b5861,{coordinator:_0x2a4025}=_0x17c245;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8(_0x5ef1a9(0x1c9),{'className':_0x5ef1a9(0x1f1),'children':_0x5ef1a9(0x1bf)}),_0x2485d8(_0x35ba61,{'onClick':()=>_0x2a4025[_0x5ef1a9(0x1d2)](),'children':_0x5ef1a9(0x232)})]});}function xe(_0x3b964d){const _0x315997=_0x5b5861,{coordinator:_0x55fed5}=_0x3b964d;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8('div',{'className':_0x315997(0x1f1),'children':_0x315997(0x225)}),_0x2485d8(_0x35ba61,{'onClick':()=>_0x55fed5[_0x315997(0x21d)](),'children':_0x315997(0x1ce)})]});}function Pe(_0x3d4d5d){const _0x259c30=_0x5b5861,{coordinator:_0x7aa90a}=_0x3d4d5d;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8(_0x259c30(0x1c9),{'className':_0x259c30(0x1f1),'children':_0x259c30(0x1ed)}),_0x2485d8(_0x35ba61,{'variant':'text','onClick':()=>_0x7aa90a[_0x259c30(0x203)](),'children':_0x259c30(0x1ae)})]});}function Ae(_0x4fac86){const _0x2cdfbf=_0x5b5861,{coordinator:_0x3d4d49}=_0x4fac86;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8('div',{'className':_0x2cdfbf(0x1f1),'children':_0x2cdfbf(0x1b6)}),_0x2485d8(_0x35ba61,{'variant':_0x2cdfbf(0x205),'onClick':()=>_0x3d4d49['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x2c30e3=_0x5b5861;return _0x2485d8(_0x25cd63,{'children':_0x2c30e3(0x19d)});}var Fe=Object[_0x5b5861(0x1a1)],He=(_0x3a2c04,_0x501f60,_0x1d8caf,_0x5eac4c)=>{const _0x20282e=_0x5b5861;for(var _0x14718d=_0x5eac4c>0x1?void 0x0:_0x5eac4c?Fe(_0x501f60,_0x1d8caf):_0x501f60,_0x41c796=_0x3a2c04[_0x20282e(0x1c4)]-0x1,_0x5e736d;_0x41c796>=0x0;_0x41c796--)(_0x5e736d=_0x3a2c04[_0x41c796])&&(_0x14718d=_0x5e736d(_0x14718d)||_0x14718d);return _0x14718d;},A=(_0x10ecb3,_0x1ca439)=>(_0x5d59fb,_0x533c08)=>_0x1ca439(_0x5d59fb,_0x533c08,_0x10ecb3);let m=class extends _0xbd0411{constructor(_0x25a528,_0x3eda7e){const _0x4a53a0=_0x5b5861;super(),this['_injector']=_0x25a528,this[_0x4a53a0(0x222)]=_0x3eda7e,this[_0x4a53a0(0x1fe)]();}[_0x5b5861(0x1fe)](){const _0x5298b4=_0x5b5861;this[_0x5298b4(0x1ba)](this[_0x5298b4(0x222)]['registerComponent'](_0x1d717f[_0x5298b4(0x1a7)],()=>_0x353c5a(Le,this[_0x5298b4(0x1d1)])));}};m=He([A(0x0,_0x85d7bd(_0x1a0d86)),A(0x1,_0x25b092)],m);const ye=_0x5b5861(0x227),T={};var Ue=Object[_0x5b5861(0x1a1)],Ve=(_0x56dc2e,_0x4c7355,_0x47345d,_0x22f5f6)=>{for(var _0x5234b6=_0x22f5f6>0x1?void 0x0:_0x22f5f6?Ue(_0x4c7355,_0x47345d):_0x4c7355,_0x20bb5f=_0x56dc2e['length']-0x1,_0x107414;_0x20bb5f>=0x0;_0x20bb5f--)(_0x107414=_0x56dc2e[_0x20bb5f])&&(_0x5234b6=_0x107414(_0x5234b6)||_0x5234b6);return _0x5234b6;},je=(_0xbd846d,_0x2cf4df)=>(_0xe5ad6d,_0xdabbaa)=>_0x2cf4df(_0xe5ad6d,_0xdabbaa,_0xbd846d);let I=class extends _0xbd0411{constructor(_0x2b79a4){const _0x374144=_0x5b5861;super(),this[_0x374144(0x219)]=_0x2b79a4,this[_0x374144(0x1e2)]();}[_0x5b5861(0x1e2)](){const _0x139a05=_0x5b5861;[_0x11cc91['id'],_0x4c52de['id'],_0x39eb88['id']][_0x139a05(0x1af)](_0x529b3d=>{const _0x47f1f3=_0x139a05;this[_0x47f1f3(0x1ba)](this[_0x47f1f3(0x219)]['registerSharedOperation'](_0x529b3d));});}};function _0xa334(_0x5ce1d0,_0xe67869){_0x5ce1d0=_0x5ce1d0-0x192;const _0x1b5c29=_0x1b5c();let _0xa3348c=_0x1b5c29[_0x5ce1d0];return _0xa3348c;}I=Ve([je(0x0,_0x85d7bd(L))],I);var Me=Object[_0x5b5861(0x1b5)],ke=Object[_0x5b5861(0x1a1)],Ge=(_0x111328,_0x4c459b,_0x5e3a7b)=>_0x4c459b in _0x111328?Me(_0x111328,_0x4c459b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e3a7b}):_0x111328[_0x4c459b]=_0x5e3a7b,We=(_0x20f138,_0x33db63,_0x50f866,_0x148ef0)=>{const _0x2b5cad=_0x5b5861;for(var _0x32b944=_0x148ef0>0x1?void 0x0:_0x148ef0?ke(_0x33db63,_0x50f866):_0x33db63,_0x4cfc81=_0x20f138[_0x2b5cad(0x1c4)]-0x1,_0x31ba2e;_0x4cfc81>=0x0;_0x4cfc81--)(_0x31ba2e=_0x20f138[_0x4cfc81])&&(_0x32b944=_0x31ba2e(_0x32b944)||_0x32b944);return _0x32b944;},F=(_0x57221a,_0x358b54)=>(_0x586c80,_0x23cf9b)=>_0x358b54(_0x586c80,_0x23cf9b,_0x57221a),B=(_0x5886f6,_0x34c042,_0x881c93)=>Ge(_0x5886f6,typeof _0x34c042!='symbol'?_0x34c042+'':_0x34c042,_0x881c93);const Ye=_0x5b5861(0x1c6);let b=class extends _0x57ad4d{constructor(_0x1e74b7=T,_0x5f4ece,_0x17189d){const _0x7e9389=_0x5b5861;super(),this[_0x7e9389(0x1ac)]=_0x1e74b7,this[_0x7e9389(0x1d1)]=_0x5f4ece,this[_0x7e9389(0x1da)]=_0x17189d;const {..._0x4cc3a9}=_0x339a10({},T,this[_0x7e9389(0x1ac)]);this[_0x7e9389(0x1da)]['setConfig'](ye,_0x4cc3a9);}[_0x5b5861(0x215)](){const _0x5014fb=_0x5b5861;_0x2201e0(this[_0x5014fb(0x1d1)],_0x22b641([[L],[S],[I],[m]],this[_0x5014fb(0x1ac)]['override'])),_0x44e6ef(this[_0x5014fb(0x1d1)],[[I]]);}[_0x5b5861(0x1df)](){const _0x17cef4=_0x5b5861;_0x44e6ef(this[_0x17cef4(0x1d1)],[[m]]);}};B(b,_0x5b5861(0x1d9),_0x7e82ed[_0x5b5861(0x1d0)]),B(b,_0x5b5861(0x22c),Ye),b=We([_0x1365d5(_0x2946ae),F(0x1,_0x85d7bd(_0x1a0d86)),F(0x2,_0x51e68b)],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 _0x4feb(_0x425ff6,_0x58de5b){_0x425ff6=_0x425ff6-0x75;const _0x26f2b6=_0x26f2();let _0x4febeb=_0x26f2b6[_0x425ff6];return _0x4febeb;}function _0x26f2(){const _0x51c664=['tryStartPresenting','getStatus','getLiveShareStatus','2270853OlZGlL','34704NpMCVP','LiveShareStatus','_injector','IDLE','UniverProLiveShare','12568zmUVxK','function','getSheetId','3918760bkjUcE','getId','get','syncExecuteCommand','6545730cyrKPo','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveWorkbook','2248GjHins','stopFollowing','@univerjs/sheets-ui','object','@univerjs/sheets/facade','stopPresenting','FRange','PRESENTING','amd','FUniver','getRenderById','@univerjs-pro/live-share','LiveShareStatusEnum','startColumn','extend','@univerjs/sheets','IRenderManagerService','SetWorksheetActiveOperation','startRow','UniverSheets','UniverSheetsUi','SetScrollOperation','FEnum','getLiveShareCoordinatorSync','1029JXioKv','169JvrynA','UniverCoreFacade','No\x20active\x20workbook\x20found.','startFollowing','7921863ijFGUG','getActiveSheet','executeCommand','LiveShareController','@univerjs/core/facade','startPresenting'];_0x26f2=function(){return _0x51c664;};return _0x26f2();}(function(_0x52f946,_0x1223df){const _0x566a99=_0x4feb,_0x50271a=_0x52f946();while(!![]){try{const _0x1b8dcf=-parseInt(_0x566a99(0x95))/0x1*(parseInt(_0x566a99(0xa8))/0x2)+parseInt(_0x566a99(0xa2))/0x3+-parseInt(_0x566a99(0xa3))/0x4+parseInt(_0x566a99(0x75))/0x5+parseInt(_0x566a99(0x79))/0x6+-parseInt(_0x566a99(0x94))/0x7*(parseInt(_0x566a99(0x7c))/0x8)+-parseInt(_0x566a99(0x99))/0x9;if(_0x1b8dcf===_0x1223df)break;else _0x50271a['push'](_0x50271a['shift']());}catch(_0x7f6519){_0x50271a['push'](_0x50271a['shift']());}}}(_0x26f2,0x9c1f0),function(_0x90e812,_0x1bbbab){const _0x5b652f=_0x4feb;typeof exports==_0x5b652f(0x7f)&&typeof module<'u'?_0x1bbbab(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==_0x5b652f(0xa9)&&define[_0x5b652f(0x84)]?define([_0x5b652f(0x87),'@univerjs/engine-render',_0x5b652f(0x8b),_0x5b652f(0x7e),_0x5b652f(0x80),_0x5b652f(0x9d)],_0x1bbbab):(_0x90e812=typeof globalThis<'u'?globalThis:_0x90e812||self,_0x1bbbab(_0x90e812[_0x5b652f(0xa7)],_0x90e812['UniverEngineRender'],_0x90e812[_0x5b652f(0x8f)],_0x90e812[_0x5b652f(0x90)],_0x90e812['UniverSheetsFacade'],_0x90e812[_0x5b652f(0x96)]));}(this,function(_0xa40415,_0x1838bc,_0x2249ba,_0x1df096,_0x2d2090,_0x17514a){'use strict';const _0x38aa96=_0x4feb;class _0x17980d extends _0x2d2090[_0x38aa96(0x82)]{['_initialize'](_0x520628,_0x21628a,_0x4fb89b,_0x439cd6,_0x48387c){const _0x2df735=_0x38aa96,_0x14c754=_0x520628[_0x2df735(0x77)](_0xa40415[_0x2df735(0x9c)]),_0x48377d=_0x520628[_0x2df735(0x77)](_0x1838bc[_0x2df735(0x8c)]),_0x54bd7b=_0x21628a['getUnitId'](),_0xbf61bb=_0x21628a[_0x2df735(0x9a)](),_0x14673d=_0x14c754[_0x2df735(0x93)](_0x54bd7b);(_0x14673d==null?void 0x0:_0x14673d[_0x2df735(0xa0)]())!==_0xa40415[_0x2df735(0xa4)][_0x2df735(0x83)]||(_0x4fb89b['getSheetId']()!==_0xbf61bb['getSheetId']()&&this['_commandService'][_0x2df735(0x9b)](_0x2249ba[_0x2df735(0x8d)]['id'],{'unitId':_0x54bd7b,'subUnitId':_0x4fb89b[_0x2df735(0xaa)]()}),!_0x48377d[_0x2df735(0x86)](_0x54bd7b))||_0x48387c[_0x2df735(0x78)](_0x1df096[_0x2df735(0x91)]['id'],{'unitId':_0x21628a['getUnitId'](),'sheetId':_0x4fb89b['getSheetId'](),'sheetViewStartRow':_0x439cd6[_0x2df735(0x8e)],'sheetViewStartColumn':_0x439cd6[_0x2df735(0x89)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2d2090['FRange'][_0x38aa96(0x8a)](_0x17980d);class _0x134d51 extends _0x17514a['FUniver']{[_0x38aa96(0xa1)](){const _0x48bdd=_0x38aa96;var _0x1af5ba,_0x17257f;const _0x144d76=this[_0x48bdd(0xa5)][_0x48bdd(0x77)](_0xa40415[_0x48bdd(0x9c)]),_0x4b59e0=(_0x1af5ba=this[_0x48bdd(0x7b)]())==null?void 0x0:_0x1af5ba[_0x48bdd(0x76)]();if(!_0x4b59e0)throw new Error(_0x48bdd(0x97));const _0x2123fe=_0x144d76['getLiveShareCoordinatorSync'](_0x4b59e0);return(_0x17257f=_0x2123fe==null?void 0x0:_0x2123fe[_0x48bdd(0xa0)]())!=null?_0x17257f:_0xa40415['LiveShareStatus'][_0x48bdd(0xa6)];}[_0x38aa96(0x98)](){const _0x4cc470=_0x38aa96;var _0x51be51;const _0x400b9f=this[_0x4cc470(0xa5)][_0x4cc470(0x77)](_0xa40415['LiveShareController']),_0x4313d6=(_0x51be51=this[_0x4cc470(0x7b)]())==null?void 0x0:_0x51be51[_0x4cc470(0x76)]();if(!_0x4313d6)throw new Error(_0x4cc470(0x97));const _0x158b6f=_0x400b9f[_0x4cc470(0x93)](_0x4313d6);if(!_0x158b6f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x158b6f[_0x4cc470(0x98)]();}[_0x38aa96(0x7d)](){const _0x186b21=_0x38aa96;var _0x4bad21;const _0x1e83f2=this[_0x186b21(0xa5)][_0x186b21(0x77)](_0xa40415[_0x186b21(0x9c)]),_0x3a11f6=(_0x4bad21=this[_0x186b21(0x7b)]())==null?void 0x0:_0x4bad21[_0x186b21(0x76)]();if(!_0x3a11f6)throw new Error('No\x20active\x20workbook\x20found.');const _0x505923=_0x1e83f2['getLiveShareCoordinatorSync'](_0x3a11f6);if(!_0x505923)throw new Error(_0x186b21(0x7a));_0x505923[_0x186b21(0x7d)]();}[_0x38aa96(0x9e)](){const _0xef7b9f=_0x38aa96;var _0x53431d;const _0x268195=this[_0xef7b9f(0xa5)][_0xef7b9f(0x77)](_0xa40415['LiveShareController']),_0x3059f8=(_0x53431d=this[_0xef7b9f(0x7b)]())==null?void 0x0:_0x53431d[_0xef7b9f(0x76)]();if(!_0x3059f8)throw new Error(_0xef7b9f(0x97));const _0x25eb5f=_0x268195[_0xef7b9f(0x93)](_0x3059f8);if(!_0x25eb5f)throw new Error(_0xef7b9f(0x7a));_0x25eb5f[_0xef7b9f(0x9f)]();}['stopPresenting'](){const _0x205a3d=_0x38aa96;var _0x3eec89;const _0x20e485=this[_0x205a3d(0xa5)][_0x205a3d(0x77)](_0xa40415[_0x205a3d(0x9c)]),_0x4550e=(_0x3eec89=this[_0x205a3d(0x7b)]())==null?void 0x0:_0x3eec89[_0x205a3d(0x76)]();if(!_0x4550e)throw new Error(_0x205a3d(0x97));const _0x22cc2b=_0x20e485['getLiveShareCoordinatorSync'](_0x4550e);if(!_0x22cc2b)throw new Error(_0x205a3d(0x7a));_0x22cc2b[_0x205a3d(0x81)]();}}_0x17514a[_0x38aa96(0x85)]['extend'](_0x134d51);class _0x2125d3 extends _0x17514a[_0x38aa96(0x92)]{get[_0x38aa96(0x88)](){const _0x3e7a13=_0x38aa96;return _0xa40415[_0x3e7a13(0xa4)];}}_0x17514a[_0x38aa96(0x92)][_0x38aa96(0x8a)](_0x2125d3);}));
|
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 _0x54c7(_0x374854,_0x3c16f0){_0x374854=_0x374854-0x1ab;const _0x97dc45=_0x97dc();let _0x54c752=_0x97dc45[_0x374854];return _0x54c752;}function _0x97dc(){const _0x5d29ff=['following','get','LIVESHARE_FETCH_OPERATIONS','mutations','type','@univerjs/core','SessionStatus','subscribe','BehaviorSubject','idle','svg','operations','clsx','ICommandService','@univerjs-pro/collaboration-client','includes','_handleNewHost','getValue','DisposableCollection','forEach','SetWorksheetActiveOperation','27ptgdPs','reverse','clear','LIVESHARE_OPERATION','LIVESHARE_NEW_HOST','_handleTerminate','throttleTime','offline','registerComponent','string','useState','colorChannel1','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','assign','_collabSession','react','merge','UniverInstanceType','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','You\x27re\x20following\x20the\x20presenter','UNIVER_UNKNOWN','getStatus','CommandType','replace','toDisposable','1em','getMemberID','_stopPresenting','_reporters','LIVESHARE_REQUEST_HOST','univer-size-4','_handleOperation','_beIdle','_injector','@univerjs/ui','3482128JMnPvw','DesktopLiveShareController','onStarting','send','_mountLiveShare','IUniverInstanceService','live-share.config','638748RGjffK','DependentOn','stringify','requireSession','substring','has','UniverCore','onCommandExecuted','_startLiveShareCoordinator','getConfig','Disposable','init','displayName','unitId','_startPresenting','FOLLOWING','_handleOffline','toStringTag','not-following','shouldShareOperation','LiveShareIcon','_entities','xlink:href','createElement','parse','Start','startFollowing','UNIVER_SHEET','defIds','executeCommand','Fragment','dispose','_status$','react/jsx-runtime','UniverProCollaborationClient','348061olQLWc','21449626CXjPYt','_init','_liveShareService','_commandDisposable','_stopFollowing','UniverLiveSharePlugin','none','evenodd','85MafPnI','entries','_collabSessionService','SetScrollOperation','parseProtocolChangeset','defs','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','UniverProLiveShare','data','OFFLINE','Module','LiveShare','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','children','currentColor','amd','defineProperty','text','IConfigService','default','attrs','operators','Button','LiveShareController','UniverSheetsUi','Injector','12qNaMGh','length','asObservable','values','tag','IDLE','Plugin','@univerjs/sheets-ui','getUnitId','getTypeOfUnitDisposed$','disposeWithMe','map','use','UniverSheets','jsxs','next','fill','registerSharedOperation','NOT_FOLLOWING','_status','takeUntil','_sharedOperations','_unitID','sessionStatus$','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','1137770kxDebL','RxDisposable','BuiltInUIPart','end','Stop\x20following','stopPresenting','SAME_OPERATION_SHARE_INTERVAL','random','Dropdown','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','status$','@univerjs/design','LiveShareStatus','useObservable','3NaHQkL','from','sheet','presenter','univerjs-icon\x20univerjs-icon-','rxjs','HEADER_MENU','_configService','SetZoomRatioOperation','registerInitialStateReporter','48GGJDDn','ONLINE','_presenter','http://www.w3.org/2000/svg','connectInjector','delete','touchDependencies','dispose$','event$','pipe','live-share-icon','object','path','Inject','button','set','unsubscribe','PRESENTING','_commandService','jsx','React','_startFollowing','mask','getOwnPropertyDescriptor','_univerInstanceService','useDependency','pluginName','Present\x20this\x20document','_handleOnline','complete','function','Start\x20following','_handleNewChangeSets','_config','You\x27are\x20offline.','presenting','then','stopFollowing','mergeOverrideWithDependencies','params','tryStartPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','symbol','NEW_CHANGESETS','UniverUi','CollaborationEvent','CollaborationSessionService','LIVESHARE_TERMINATE','UniverDesign','5158570dgqJxo','LiveShareCoordinator','setConfig','idSuffix','useRef','current','memberID','add','277932pcujFz','find'];_0x97dc=function(){return _0x5d29ff;};return _0x97dc();}(function(_0x18a842,_0x2740ab){const _0x3a4016=_0x54c7,_0x23897e=_0x18a842();while(!![]){try{const _0x14a467=-parseInt(_0x3a4016(0x291))/0x1+-parseInt(_0x3a4016(0x1fc))/0x2*(parseInt(_0x3a4016(0x20b))/0x3)+-parseInt(_0x3a4016(0x24f))/0x4*(parseInt(_0x3a4016(0x1c8))/0x5)+parseInt(_0x3a4016(0x215))/0x6*(parseInt(_0x3a4016(0x1bf))/0x7)+parseInt(_0x3a4016(0x28a))/0x8*(parseInt(_0x3a4016(0x266))/0x9)+-parseInt(_0x3a4016(0x247))/0xa+-parseInt(_0x3a4016(0x1c0))/0xb*(-parseInt(_0x3a4016(0x1e3))/0xc);if(_0x14a467===_0x2740ab)break;else _0x23897e['push'](_0x23897e['shift']());}catch(_0x313ff8){_0x23897e['push'](_0x23897e['shift']());}}}(_0x97dc,0xb6d2f),function(_0x3d96ca,_0x2acecb){const _0x5ee5c0=_0x54c7;typeof exports==_0x5ee5c0(0x220)&&typeof module<'u'?_0x2acecb(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==_0x5ee5c0(0x233)&&define[_0x5ee5c0(0x1d8)]?define(['exports',_0x5ee5c0(0x256),_0x5ee5c0(0x289),_0x5ee5c0(0x1bd),_0x5ee5c0(0x208),_0x5ee5c0(0x275),'@univerjs-pro/collaboration',_0x5ee5c0(0x25f),'@univerjs/sheets',_0x5ee5c0(0x210),'rxjs/operators',_0x5ee5c0(0x1ea)],_0x2acecb):(_0x3d96ca=typeof globalThis<'u'?globalThis:_0x3d96ca||self,_0x2acecb(_0x3d96ca[_0x5ee5c0(0x1d0)]={},_0x3d96ca[_0x5ee5c0(0x297)],_0x3d96ca[_0x5ee5c0(0x242)],_0x3d96ca[_0x5ee5c0(0x229)],_0x3d96ca[_0x5ee5c0(0x246)],_0x3d96ca['React'],_0x3d96ca['UniverProCollaboration'],_0x3d96ca[_0x5ee5c0(0x1be)],_0x3d96ca[_0x5ee5c0(0x1f0)],_0x3d96ca[_0x5ee5c0(0x210)],_0x3d96ca[_0x5ee5c0(0x210)][_0x5ee5c0(0x1de)],_0x3d96ca[_0x5ee5c0(0x1e1)]));}(this,function(_0x3f9af7,_0x564dbf,_0x589989,_0x4e54a3,_0x37249e,_0x250ede,_0x3f336e,_0x59c35a,_0x3ee16,_0x41c691,_0x59d6d0,_0x46d7a9){'use strict';const _0x10d9ff=_0x54c7;var _0x5ae4f2=Object[_0x10d9ff(0x1d9)],_0x270629=(_0x800c27,_0x3082cd,_0x3fa28e)=>_0x3082cd in _0x800c27?_0x5ae4f2(_0x800c27,_0x3082cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fa28e}):_0x800c27[_0x3082cd]=_0x3fa28e,_0x30a44a=(_0x440f23,_0x44f531,_0x5c293b)=>_0x270629(_0x440f23,typeof _0x44f531!=_0x10d9ff(0x240)?_0x44f531+'':_0x44f531,_0x5c293b);function _0x3cce3b({ref:_0x5a1f93,..._0x4b2db3}){const _0x5a1355=_0x10d9ff,{icon:_0x11a877,id:_0xf302cd,className:_0x3ddcd8,extend:_0x27515e,..._0x523b01}=_0x4b2db3,_0x15b449=(_0x5a1355(0x20f)+_0xf302cd+'\x20'+(_0x3ddcd8||''))['trim'](),_0x3eaa16=_0x250ede[_0x5a1355(0x24b)]('_'+_0x1b67b3());return _0xe1085c(_0x11a877,''+_0xf302cd,{'defIds':_0x11a877[_0x5a1355(0x1b8)],'idSuffix':_0x3eaa16[_0x5a1355(0x24c)]},{'ref':_0x5a1f93,'className':_0x15b449,..._0x523b01},_0x27515e);}function _0xe1085c(_0x150653,_0x369247,_0x1ad34f,_0x48e13e,_0x2558e7){const _0x1dcf1a=_0x10d9ff;return _0x250ede[_0x1dcf1a(0x1b3)](_0x150653['tag'],{'key':_0x369247,..._0x509cbd(_0x150653,_0x1ad34f,_0x2558e7),..._0x48e13e},(_0x417779(_0x150653,_0x1ad34f)['children']||[])[_0x1dcf1a(0x1ee)]((_0x1af1e8,_0x14fa86)=>_0xe1085c(_0x1af1e8,_0x369247+'-'+_0x150653[_0x1dcf1a(0x1e7)]+'-'+_0x14fa86,_0x1ad34f,void 0x0,_0x2558e7)));}function _0x509cbd(_0x3c73af,_0x1254cf,_0x41843b){const _0x40a77e=_0x10d9ff,_0x46d4db={..._0x3c73af[_0x40a77e(0x1dd)]};_0x41843b!=null&&_0x41843b[_0x40a77e(0x271)]&&_0x46d4db[_0x40a77e(0x1f3)]===_0x40a77e(0x271)&&(_0x46d4db['fill']=_0x41843b['colorChannel1']),_0x3c73af[_0x40a77e(0x1e7)]===_0x40a77e(0x22b)&&_0x46d4db['id']&&(_0x46d4db['id']=_0x46d4db['id']+_0x1254cf[_0x40a77e(0x24a)]),Object[_0x40a77e(0x1c9)](_0x46d4db)['forEach'](([_0x1f6d72,_0x451a6b])=>{const _0x306951=_0x40a77e;_0x1f6d72===_0x306951(0x22b)&&typeof _0x451a6b==_0x306951(0x26f)&&(_0x46d4db[_0x1f6d72]=_0x451a6b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1254cf[_0x306951(0x24a)]+')'));});const {defIds:_0x795c20}=_0x1254cf;return!_0x795c20||_0x795c20['length']===0x0||(_0x3c73af[_0x40a77e(0x1e7)]===_0x40a77e(0x1ef)&&_0x46d4db[_0x40a77e(0x1b2)]&&(_0x46d4db[_0x40a77e(0x1b2)]=_0x46d4db[_0x40a77e(0x1b2)]+_0x1254cf[_0x40a77e(0x24a)]),Object[_0x40a77e(0x1c9)](_0x46d4db)[_0x40a77e(0x264)](([_0x442d85,_0x5c8e78])=>{const _0x4d05da=_0x40a77e;typeof _0x5c8e78==_0x4d05da(0x26f)&&(_0x46d4db[_0x442d85]=_0x5c8e78[_0x4d05da(0x27e)](/url\(#(.*)\)/,'url(#$1'+_0x1254cf[_0x4d05da(0x24a)]+')'));})),_0x46d4db;}function _0x417779(_0x35ccf7,_0x9ecc1d){const _0xdeccae=_0x10d9ff;var _0x1b7356;const {defIds:_0x18a387}=_0x9ecc1d;return!_0x18a387||_0x18a387[_0xdeccae(0x1e4)]===0x0?_0x35ccf7:_0x35ccf7[_0xdeccae(0x1e7)]===_0xdeccae(0x1cd)&&((_0x1b7356=_0x35ccf7[_0xdeccae(0x1d6)])!=null&&_0x1b7356[_0xdeccae(0x1e4)])?{..._0x35ccf7,'children':_0x35ccf7[_0xdeccae(0x1d6)][_0xdeccae(0x1ee)](_0x1646fd=>typeof _0x1646fd[_0xdeccae(0x1dd)]['id']==_0xdeccae(0x26f)&&_0x18a387&&_0x18a387[_0xdeccae(0x260)](_0x1646fd[_0xdeccae(0x1dd)]['id'])?{..._0x1646fd,'attrs':{..._0x1646fd[_0xdeccae(0x1dd)],'id':_0x1646fd[_0xdeccae(0x1dd)]['id']+_0x9ecc1d[_0xdeccae(0x24a)]}}:_0x1646fd)}:_0x35ccf7;}function _0x1b67b3(){const _0x28d91f=_0x10d9ff;return Math[_0x28d91f(0x203)]()['toString'](0x24)[_0x28d91f(0x295)](0x2,0x8);}_0x3cce3b[_0x10d9ff(0x29d)]='UniverIcon';const _0x470533={'tag':_0x10d9ff(0x25b),'attrs':{'xmlns':_0x10d9ff(0x218),'fill':_0x10d9ff(0x1c6),'viewBox':'0\x200\x2017\x2017','width':_0x10d9ff(0x280),'height':_0x10d9ff(0x280)},'children':[{'tag':_0x10d9ff(0x221),'attrs':{'fill':_0x10d9ff(0x1d7),'d':_0x10d9ff(0x272)}},{'tag':_0x10d9ff(0x221),'attrs':{'fill':'currentColor','d':_0x10d9ff(0x1d5),'fillRule':_0x10d9ff(0x1c7),'clipRule':_0x10d9ff(0x1c7)}}]},_0x217a46=_0x250ede['forwardRef'](function(_0x3bebb6,_0x572fb5){const _0x1102d0=_0x10d9ff;return _0x250ede[_0x1102d0(0x1b3)](_0x3cce3b,Object[_0x1102d0(0x273)]({},_0x3bebb6,{'id':_0x1102d0(0x21f),'ref':_0x572fb5,'icon':_0x470533}));});_0x217a46[_0x10d9ff(0x29d)]=_0x10d9ff(0x1b0);class _0xe80a23 extends _0x564dbf[_0x10d9ff(0x29b)]{constructor(){const _0x35d831=_0x10d9ff;super(...arguments),_0x30a44a(this,_0x35d831(0x1f8),new Set()),_0x30a44a(this,'_reporters',new Set());}[_0x10d9ff(0x1f4)](_0x2c0f67){const _0x4df50f=_0x10d9ff;return this['_sharedOperations'][_0x4df50f(0x24e)](_0x2c0f67),_0x564dbf[_0x4df50f(0x27f)](()=>this[_0x4df50f(0x1f8)][_0x4df50f(0x21a)](_0x2c0f67));}[_0x10d9ff(0x214)](_0x572766){const _0x4e596c=_0x10d9ff;return this[_0x4e596c(0x283)][_0x4e596c(0x24e)](_0x572766),_0x564dbf['toDisposable'](()=>this['_reporters']['delete'](_0x572766));}[_0x10d9ff(0x1af)](_0x42b1b2){const _0x15a59e=_0x10d9ff;return this[_0x15a59e(0x1f8)]['has'](_0x42b1b2);}['getInitialStates'](_0x194693){const _0xcd6b44=_0x10d9ff;return Array[_0xcd6b44(0x20c)](this[_0xcd6b44(0x283)])[_0xcd6b44(0x1ee)](_0x4a4433=>_0x4a4433(_0x194693));}}var _0x41aadc=Object[_0x10d9ff(0x22c)],_0x502f50=(_0x576e4c,_0x2619f6,_0x5f0af2,_0x4fa9c7)=>{const _0x24ed37=_0x10d9ff;for(var _0xc4eb97=_0x4fa9c7>0x1?void 0x0:_0x4fa9c7?_0x41aadc(_0x2619f6,_0x5f0af2):_0x2619f6,_0x37af90=_0x576e4c[_0x24ed37(0x1e4)]-0x1,_0x1e589e;_0x37af90>=0x0;_0x37af90--)(_0x1e589e=_0x576e4c[_0x37af90])&&(_0xc4eb97=_0x1e589e(_0xc4eb97)||_0xc4eb97);return _0xc4eb97;},_0x3f4fbf=(_0x38a43f,_0x4f0dbc)=>(_0x973392,_0x4605e6)=>_0x4f0dbc(_0x973392,_0x4605e6,_0x38a43f);_0x3f9af7[_0x10d9ff(0x1e0)]=class extends _0x564dbf['RxDisposable']{constructor(_0x60c535,_0x21ca6f,_0x2a8ed8){const _0x159ba1=_0x10d9ff;super(),_0x30a44a(this,_0x159ba1(0x1b1),new Map()),(this[_0x159ba1(0x22d)]=_0x60c535,this[_0x159ba1(0x288)]=_0x21ca6f,this[_0x159ba1(0x1ca)]=_0x2a8ed8,this['_init']());}async['getLiveShareCoordinator'](_0x578f27){const _0x5edc66=_0x10d9ff;return this['_entities'][_0x5edc66(0x296)](_0x578f27)||await this['_startLiveShareCoordinator'](_0x578f27),this[_0x5edc66(0x1b1)][_0x5edc66(0x252)](_0x578f27);}['getLiveShareCoordinatorSync'](_0x2932df){const _0x22340c=_0x10d9ff;var _0x21490b;return(_0x21490b=this[_0x22340c(0x1b1)][_0x22340c(0x252)](_0x2932df))!=null?_0x21490b:null;}['_init'](){const _0x3cb190=_0x10d9ff;this[_0x3cb190(0x22d)]['getTypeOfUnitAdded$'](_0x564dbf[_0x3cb190(0x277)]['UNIVER_SHEET'])[_0x3cb190(0x21e)](_0x59d6d0[_0x3cb190(0x1f7)](this[_0x3cb190(0x21c)]))[_0x3cb190(0x258)](async _0x12b8d6=>{const _0x2b8baf=_0x3cb190,_0x39b43c=_0x12b8d6[_0x2b8baf(0x1eb)]();this[_0x2b8baf(0x1b1)][_0x2b8baf(0x296)](_0x39b43c)||this[_0x2b8baf(0x299)](_0x39b43c);}),this[_0x3cb190(0x22d)][_0x3cb190(0x1ec)](_0x564dbf['UniverInstanceType'][_0x3cb190(0x1b7)])[_0x3cb190(0x21e)](_0x59d6d0[_0x3cb190(0x1f7)](this[_0x3cb190(0x21c)]))[_0x3cb190(0x258)](_0x20fcb1=>{const _0x2e0e2c=_0x3cb190,_0x17f75c=_0x20fcb1['getUnitId'](),_0x3d8c60=this[_0x2e0e2c(0x1b1)][_0x2e0e2c(0x252)](_0x17f75c);_0x3d8c60==null||_0x3d8c60[_0x2e0e2c(0x1bb)]();});}async[_0x10d9ff(0x299)](_0x1441cc){const _0x45a4b6=_0x10d9ff,_0x46d272=await this[_0x45a4b6(0x1ca)][_0x45a4b6(0x294)](_0x1441cc),_0x13e628=this[_0x45a4b6(0x288)][_0x45a4b6(0x278)](_0x3f9af7['LiveShareCoordinator'],_0x1441cc,_0x46d272);return _0x13e628[_0x45a4b6(0x29c)](),this[_0x45a4b6(0x1b1)][_0x45a4b6(0x224)](_0x1441cc,_0x13e628),_0x13e628;}},_0x3f9af7[_0x10d9ff(0x1e0)]=_0x502f50([_0x3f4fbf(0x0,_0x564dbf['IUniverInstanceService']),_0x3f4fbf(0x1,_0x564dbf[_0x10d9ff(0x222)](_0x564dbf[_0x10d9ff(0x1e2)])),_0x3f4fbf(0x2,_0x564dbf[_0x10d9ff(0x222)](_0x59c35a[_0x10d9ff(0x244)]))],_0x3f9af7[_0x10d9ff(0x1e0)]);var _0x5d6112=(_0x4ec478=>(_0x4ec478[_0x10d9ff(0x1d2)]=_0x10d9ff(0x26d),_0x4ec478[_0x10d9ff(0x1e8)]=_0x10d9ff(0x25a),_0x4ec478[_0x10d9ff(0x1ab)]=_0x10d9ff(0x251),_0x4ec478[_0x10d9ff(0x1f5)]='not-following',_0x4ec478[_0x10d9ff(0x226)]=_0x10d9ff(0x238),_0x4ec478))(_0x5d6112||{});const _0x10aa0a=_0x10d9ff(0x202),_0x140b4d=0xc8;_0x3f9af7[_0x10d9ff(0x248)]=class extends _0x564dbf[_0x10d9ff(0x1fd)]{constructor(_0x1b7dfd,_0x104a6b,_0x39d635,_0x6be438,_0xdc9354){const _0x1e0d6a=_0x10d9ff;super(),_0x30a44a(this,_0x1e0d6a(0x1bc),new _0x41c691[(_0x1e0d6a(0x259))](_0x1e0d6a(0x25a))),_0x30a44a(this,'status$',this[_0x1e0d6a(0x1bc)][_0x1e0d6a(0x1e5)]()),_0x30a44a(this,_0x1e0d6a(0x1c1),!0x1),_0x30a44a(this,'_commandDisposable',null),_0x30a44a(this,_0x1e0d6a(0x217),null),(this[_0x1e0d6a(0x1f9)]=_0x1b7dfd,this[_0x1e0d6a(0x274)]=_0x104a6b,this[_0x1e0d6a(0x212)]=_0x39d635,this[_0x1e0d6a(0x1c2)]=_0x6be438,this['_commandService']=_0xdc9354);}get['_status'](){const _0x433783=_0x10d9ff;return this[_0x433783(0x1bc)][_0x433783(0x262)]();}[_0x10d9ff(0x1bb)](){const _0x232adf=_0x10d9ff;var _0x4e0f52;(_0x4e0f52=this['_commandDisposable'])==null||_0x4e0f52[_0x232adf(0x1bb)](),this[_0x232adf(0x1bc)][_0x232adf(0x1f2)](_0x232adf(0x25a)),this[_0x232adf(0x1bc)][_0x232adf(0x232)]();}[_0x10d9ff(0x27c)](){return this['_status'];}['init'](){const _0x550530=_0x10d9ff;this[_0x550530(0x1c1)]||(this[_0x550530(0x1c1)]=!0x0,this['_collabSession'][_0x550530(0x1fa)][_0x550530(0x21e)](_0x59d6d0[_0x550530(0x1f7)](this['dispose$']))['subscribe'](_0xfcce46=>{const _0x592156=_0x550530;switch(_0xfcce46){case _0x59c35a[_0x592156(0x257)][_0x592156(0x1d2)]:this[_0x592156(0x1ac)]();break;case _0x59c35a[_0x592156(0x257)][_0x592156(0x216)]:this['_handleOnline']();break;}}),this[_0x550530(0x274)][_0x550530(0x21d)][_0x550530(0x21e)](_0x59d6d0[_0x550530(0x1f7)](this[_0x550530(0x21c)]))[_0x550530(0x258)](_0x6d0839=>{const _0x50c922=_0x550530,{eventID:_0x3d66ae}=_0x6d0839;switch(_0x3d66ae){case _0x3f336e['CollaborationEvent'][_0x50c922(0x26a)]:this[_0x50c922(0x261)](_0x6d0839);break;case _0x3f336e['CollaborationEvent'][_0x50c922(0x269)]:this[_0x50c922(0x286)](_0x6d0839);break;case _0x3f336e[_0x50c922(0x243)][_0x50c922(0x245)]:this[_0x50c922(0x26b)]();break;case _0x3f336e['CollaborationEvent'][_0x50c922(0x241)]:this[_0x50c922(0x235)](_0x6d0839);break;}}));}[_0x10d9ff(0x23d)](){const _0x29cfa6=_0x10d9ff;this['_collabSession'][_0x29cfa6(0x28d)]({'eventID':_0x3f336e['CollaborationEvent'][_0x29cfa6(0x284)],'data':{'unitID':this[_0x29cfa6(0x1f9)],'userID':this[_0x29cfa6(0x274)][_0x29cfa6(0x281)]()}},this[_0x29cfa6(0x1f9)]);}['stopPresenting'](){const _0x50d67e=_0x10d9ff;this[_0x50d67e(0x1f6)]===_0x50d67e(0x238)&&(this['_status$'][_0x50d67e(0x1f2)]('idle'),this[_0x50d67e(0x274)][_0x50d67e(0x28d)]({'eventID':_0x3f336e[_0x50d67e(0x243)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x50d67e(0x1f9)]));}[_0x10d9ff(0x1b6)](){const _0x1a2239=_0x10d9ff;this['_status']==='not-following'&&(this[_0x1a2239(0x1bc)][_0x1a2239(0x1f2)]('following'),this[_0x1a2239(0x22a)]());}['stopFollowing'](){const _0x3543b0=_0x10d9ff;this[_0x3543b0(0x1f6)]===_0x3543b0(0x251)&&this[_0x3543b0(0x1c4)]();}[_0x10d9ff(0x261)](_0x4a428d){const _0x8e0e69=_0x10d9ff,{presenter:_0x269d67}=_0x4a428d[_0x8e0e69(0x1d1)],_0x326a64=this[_0x8e0e69(0x274)]['getMemberID']();this['_presenter']=_0x269d67,_0x269d67===_0x326a64?(this['_stopFollowing'](),this[_0x8e0e69(0x29f)]()):this[_0x8e0e69(0x1f6)]!==_0x8e0e69(0x1ae)&&(this[_0x8e0e69(0x282)](),this[_0x8e0e69(0x22a)]());}['_fetchOperations'](){const _0x102642=_0x10d9ff,_0x56fce5={'eventID':_0x3f336e['CollaborationEvent'][_0x102642(0x253)]};this['_collabSession'][_0x102642(0x28d)](_0x56fce5,this[_0x102642(0x1f9)]);}[_0x10d9ff(0x26b)](){const _0x284461=_0x10d9ff;this['_presenter']=null,this[_0x284461(0x1f6)]!==_0x284461(0x238)&&this[_0x284461(0x287)]();}[_0x10d9ff(0x235)](_0x330484){const _0x513d5e=_0x10d9ff;if(this[_0x513d5e(0x1f6)]===_0x513d5e(0x251)&&this['_presenter']===_0x330484['data'][_0x513d5e(0x24d)]){const _0x3f3b18=_0x3f336e[_0x513d5e(0x1cc)](_0x330484[_0x513d5e(0x1d1)])[_0x513d5e(0x254)][_0x513d5e(0x267)]()[_0x513d5e(0x250)](_0x1efb5f=>_0x1efb5f['id']===_0x3ee16['InsertSheetMutation']['id']);if(_0x3f3b18){const _0x482cdf=_0x3f3b18[_0x513d5e(0x23c)][_0x513d5e(0x29e)],_0x417ded=_0x3f3b18[_0x513d5e(0x23c)][_0x513d5e(0x20d)]['id'];setTimeout(()=>{const _0x2ee0f6=_0x513d5e;this[_0x2ee0f6(0x227)][_0x2ee0f6(0x1b9)](_0x3ee16[_0x2ee0f6(0x265)]['id'],{'unitId':_0x482cdf,'subUnitId':_0x417ded},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3d9523=_0x10d9ff;this['_status$'][_0x3d9523(0x1f2)](_0x3d9523(0x238));const _0x24dce1=new Map(),_0x1054c8=this[_0x3d9523(0x1c3)]=new _0x564dbf[(_0x3d9523(0x263))]();_0x1054c8[_0x3d9523(0x24e)](_0x564dbf['toDisposable'](()=>{const _0x1f954e=_0x3d9523;_0x24dce1[_0x1f954e(0x264)](_0x50bac7=>_0x50bac7[_0x1f954e(0x232)]()),_0x24dce1[_0x1f954e(0x268)]();})),_0x1054c8[_0x3d9523(0x24e)](this[_0x3d9523(0x227)][_0x3d9523(0x298)](_0xb7d30a=>{const _0x524b83=_0x3d9523;var _0x3e4999;if(_0xb7d30a[_0x524b83(0x255)]!==_0x564dbf[_0x524b83(0x27d)][_0x524b83(0x1cf)]||!this[_0x524b83(0x1c2)]['shouldShareOperation'](_0xb7d30a['id']))return;const {id:_0x3729ac}=_0xb7d30a;let _0x504dd3;_0x24dce1[_0x524b83(0x296)](_0x3729ac)?_0x504dd3=_0x24dce1[_0x524b83(0x252)](_0x3729ac):(_0x504dd3=new _0x41c691['Subject'](),_0x24dce1[_0x524b83(0x224)](_0x3729ac,_0x504dd3),_0x504dd3[_0x524b83(0x21e)](_0x59d6d0[_0x524b83(0x26c)]((_0x3e4999=this[_0x524b83(0x212)][_0x524b83(0x29a)](_0x10aa0a))!=null?_0x3e4999:_0x140b4d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x524b83(0x258)](_0x3489b0=>{const _0x33e35d=_0x524b83;this[_0x33e35d(0x274)][_0x33e35d(0x28d)]({'eventID':_0x3f336e[_0x33e35d(0x243)][_0x33e35d(0x269)],'data':{'unitID':this[_0x33e35d(0x1f9)],'operations':{[_0x3489b0['id']]:{'id':_0x3489b0['id'],'params':JSON[_0x33e35d(0x293)](_0x3489b0[_0x33e35d(0x23c)])}}}},this[_0x33e35d(0x1f9)]);})),_0x504dd3[_0x524b83(0x1f2)](_0xb7d30a);})),this[_0x3d9523(0x1c2)]['getInitialStates'](this[_0x3d9523(0x1f9)])['forEach'](_0x41ec59=>this[_0x3d9523(0x274)][_0x3d9523(0x28d)]({'eventID':_0x3f336e[_0x3d9523(0x243)][_0x3d9523(0x269)],'data':{'unitID':this[_0x3d9523(0x1f9)],'operations':{[_0x41ec59['id']]:{'id':_0x41ec59['id'],'params':JSON[_0x3d9523(0x293)](_0x41ec59[_0x3d9523(0x23c)])}}}},this[_0x3d9523(0x1f9)]));}[_0x10d9ff(0x282)](){const _0xa26525=_0x10d9ff;var _0x42630b;this[_0xa26525(0x1bc)][_0xa26525(0x1f2)](_0xa26525(0x25a)),(_0x42630b=this[_0xa26525(0x1c3)])==null||_0x42630b[_0xa26525(0x1bb)](),this[_0xa26525(0x1c3)]=null;}[_0x10d9ff(0x22a)](){const _0x3ac4a9=_0x10d9ff;var _0x3335ca;(_0x3335ca=this[_0x3ac4a9(0x1c3)])==null||_0x3335ca[_0x3ac4a9(0x1bb)](),this[_0x3ac4a9(0x1bc)][_0x3ac4a9(0x1f2)](_0x3ac4a9(0x251));}[_0x10d9ff(0x287)](){const _0x55417e=_0x10d9ff;var _0x46b0ae;this['_status$']['next'](_0x55417e(0x25a)),(_0x46b0ae=this[_0x55417e(0x1c3)])==null||_0x46b0ae[_0x55417e(0x1bb)](),this[_0x55417e(0x1c3)]=null;}['_stopFollowing'](){const _0x10c5ba=_0x10d9ff;var _0x1cd7f6;this[_0x10c5ba(0x1bc)]['next'](_0x10c5ba(0x1ae)),(_0x1cd7f6=this['_commandDisposable'])==null||_0x1cd7f6[_0x10c5ba(0x1bb)]();}[_0x10d9ff(0x286)](_0x1f9269){const _0x1dda5b=_0x10d9ff;if([_0x1dda5b(0x238),'not-following','offline'][_0x1dda5b(0x260)](this['_status'])||!_0x1f9269[_0x1dda5b(0x1d1)][_0x1dda5b(0x20e)]||_0x1f9269[_0x1dda5b(0x1d1)][_0x1dda5b(0x20e)]===this[_0x1dda5b(0x274)]['getMemberID']())return;this['_status']===_0x1dda5b(0x25a)&&this['_startFollowing']();const _0x5bd68a=_0x1f9269[_0x1dda5b(0x1d1)][_0x1dda5b(0x25c)];Object[_0x1dda5b(0x1e6)](_0x5bd68a)['forEach'](_0x37c0a6=>{const _0x4f2481=_0x1dda5b;this[_0x4f2481(0x227)][_0x4f2481(0x1b9)](_0x37c0a6['id'],_0x37c0a6[_0x4f2481(0x23c)]?JSON[_0x4f2481(0x1b4)](_0x37c0a6[_0x4f2481(0x23c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xe4534a=_0x10d9ff;var _0x5cf15c;this[_0xe4534a(0x1bc)][_0xe4534a(0x1f2)]('offline'),(_0x5cf15c=this['_commandDisposable'])==null||_0x5cf15c[_0xe4534a(0x1bb)]();}[_0x10d9ff(0x231)](){const _0x5953c7=_0x10d9ff;this[_0x5953c7(0x1bc)][_0x5953c7(0x1f2)](_0x5953c7(0x25a)),this['_fetchOperations']();}},_0x3f9af7[_0x10d9ff(0x248)]=_0x502f50([_0x3f4fbf(0x2,_0x564dbf[_0x10d9ff(0x1db)]),_0x3f4fbf(0x3,_0x564dbf[_0x10d9ff(0x222)](_0xe80a23)),_0x3f4fbf(0x4,_0x564dbf[_0x10d9ff(0x25e)])],_0x3f9af7[_0x10d9ff(0x248)]);function _0x32b63f(){const _0x7a71d4=_0x10d9ff,_0x455756=_0x589989[_0x7a71d4(0x22e)](_0x3f9af7[_0x7a71d4(0x1e0)]),_0x504c56=_0x589989[_0x7a71d4(0x22e)](_0x564dbf[_0x7a71d4(0x28f)]),_0x527b8d=_0x589989[_0x7a71d4(0x20a)](()=>_0x504c56['getCurrentTypeOfUnit$'](_0x564dbf[_0x7a71d4(0x277)][_0x7a71d4(0x1b7)]),void 0x0,!0x1,[]),[_0x234601,_0x4b2d21]=_0x250ede[_0x7a71d4(0x270)](null),[_0x53e251,_0x42c70e]=_0x250ede[_0x7a71d4(0x270)](_0x5d6112[_0x7a71d4(0x1e8)]),_0x24a151=_0x250ede[_0x7a71d4(0x24b)](null);return _0x250ede['useEffect'](()=>(_0x527b8d&&_0x455756['getLiveShareCoordinator'](_0x527b8d[_0x7a71d4(0x1eb)]())[_0x7a71d4(0x239)](_0x1d7a23=>{const _0x5b6183=_0x7a71d4;_0x4b2d21(_0x1d7a23),_0x24a151['current']=_0x1d7a23[_0x5b6183(0x207)][_0x5b6183(0x258)](_0x19ec6b=>{_0x42c70e(_0x19ec6b);});}),()=>{const _0x9bd9c5=_0x7a71d4;var _0xa80b46;(_0xa80b46=_0x24a151[_0x9bd9c5(0x24c)])==null||_0xa80b46[_0x9bd9c5(0x225)](),_0x24a151[_0x9bd9c5(0x24c)]=null;}),[_0x527b8d,_0x455756]),_0x234601?_0x4e54a3['jsx'](_0x37249e[_0x7a71d4(0x204)],{'align':_0x7a71d4(0x1ff),'disabled':_0x53e251===_0x5d6112['OFFLINE'],'className':_0x7a71d4(0x1fb),'overlay':_0x4e54a3[_0x7a71d4(0x228)](_0x260811,{'status':_0x53e251,'coordinator':_0x234601}),'children':_0x4e54a3['jsx'](_0x7a71d4(0x223),{'className':_0x37249e[_0x7a71d4(0x25d)](_0x7a71d4(0x1ce),{'univer-cursor-not-allowed':_0x53e251===_0x5d6112[_0x7a71d4(0x1d2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53e251!==_0x5d6112[_0x7a71d4(0x1d2)]}),'type':_0x7a71d4(0x223),'children':_0x4e54a3[_0x7a71d4(0x228)](_0x217a46,{'className':_0x7a71d4(0x285)})})}):null;}function _0x260811(_0x437499){const _0x4f954b=_0x10d9ff,{status:_0x431fd7,coordinator:_0x286142}=_0x437499;switch(_0x431fd7){case _0x5d6112['IDLE']:return _0x4e54a3[_0x4f954b(0x228)](_0x1dc777,{'coordinator':_0x286142});case _0x5d6112[_0x4f954b(0x1ab)]:return _0x4e54a3['jsx'](_0x18b07c,{'coordinator':_0x286142});case _0x5d6112[_0x4f954b(0x1f5)]:return _0x4e54a3['jsx'](_0x3e3c0c,{'coordinator':_0x286142});case _0x5d6112[_0x4f954b(0x1d2)]:return _0x4e54a3[_0x4f954b(0x228)](_0x3f00d7,{});case _0x5d6112[_0x4f954b(0x226)]:return _0x4e54a3['jsx'](_0x259ee3,{'coordinator':_0x286142});default:return null;}}function _0x1dc777(_0x40840c){const _0x318b24=_0x10d9ff,{coordinator:_0x373a02}=_0x40840c;return _0x4e54a3[_0x318b24(0x1f1)](_0x4e54a3['Fragment'],{'children':[_0x4e54a3[_0x318b24(0x228)](_0x318b24(0x23f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x318b24(0x230)}),_0x4e54a3[_0x318b24(0x228)](_0x37249e['Button'],{'onClick':()=>_0x373a02[_0x318b24(0x23d)](),'children':_0x318b24(0x1b5)})]});}function _0x18b07c(_0x4cf2fb){const _0x59b3b6=_0x10d9ff,{coordinator:_0x1250fc}=_0x4cf2fb;return _0x4e54a3[_0x59b3b6(0x1f1)](_0x4e54a3['Fragment'],{'children':[_0x4e54a3['jsx'](_0x59b3b6(0x23f),{'className':_0x59b3b6(0x23e),'children':_0x59b3b6(0x27a)}),_0x4e54a3[_0x59b3b6(0x228)](_0x37249e['Button'],{'onClick':()=>_0x1250fc[_0x59b3b6(0x23a)](),'children':_0x59b3b6(0x200)})]});}function _0x3e3c0c(_0x2af91f){const _0x5a155b=_0x10d9ff,{coordinator:_0x33dfdc}=_0x2af91f;return _0x4e54a3[_0x5a155b(0x1f1)](_0x4e54a3['Fragment'],{'children':[_0x4e54a3[_0x5a155b(0x228)](_0x5a155b(0x23f),{'className':_0x5a155b(0x23e),'children':_0x5a155b(0x279)}),_0x4e54a3['jsx'](_0x37249e[_0x5a155b(0x1df)],{'variant':_0x5a155b(0x1da),'onClick':()=>_0x33dfdc[_0x5a155b(0x1b6)](),'children':_0x5a155b(0x234)})]});}function _0x259ee3(_0x70dccd){const _0x47ceeb=_0x10d9ff,{coordinator:_0x596c24}=_0x70dccd;return _0x4e54a3[_0x47ceeb(0x1f1)](_0x4e54a3[_0x47ceeb(0x1ba)],{'children':[_0x4e54a3[_0x47ceeb(0x228)](_0x47ceeb(0x23f),{'className':_0x47ceeb(0x23e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e54a3['jsx'](_0x37249e[_0x47ceeb(0x1df)],{'variant':_0x47ceeb(0x1dc),'onClick':()=>_0x596c24[_0x47ceeb(0x201)](),'children':'Stop\x20presenting'})]});}function _0x3f00d7(){const _0x2f907e=_0x10d9ff;return _0x4e54a3[_0x2f907e(0x228)](_0x4e54a3[_0x2f907e(0x1ba)],{'children':_0x2f907e(0x237)});}var _0x4d3d49=Object[_0x10d9ff(0x22c)],_0x1ed5a8=(_0x32ba27,_0x242cd0,_0x55df6d,_0x24447b)=>{const _0x3d3124=_0x10d9ff;for(var _0x1accca=_0x24447b>0x1?void 0x0:_0x24447b?_0x4d3d49(_0x242cd0,_0x55df6d):_0x242cd0,_0x2a5fcb=_0x32ba27[_0x3d3124(0x1e4)]-0x1,_0x4d1e9b;_0x2a5fcb>=0x0;_0x2a5fcb--)(_0x4d1e9b=_0x32ba27[_0x2a5fcb])&&(_0x1accca=_0x4d1e9b(_0x1accca)||_0x1accca);return _0x1accca;},_0x3610de=(_0x1a2e09,_0x504675)=>(_0x370838,_0x2562fc)=>_0x504675(_0x370838,_0x2562fc,_0x1a2e09);_0x3f9af7[_0x10d9ff(0x28b)]=class extends _0x564dbf[_0x10d9ff(0x29b)]{constructor(_0x3fe001,_0x17af81){const _0x460dd7=_0x10d9ff;super(),this[_0x460dd7(0x288)]=_0x3fe001,this[_0x460dd7(0x206)]=_0x17af81,this['_mountLiveShare']();}[_0x10d9ff(0x28e)](){const _0x4cf0bc=_0x10d9ff;this[_0x4cf0bc(0x1ed)](this[_0x4cf0bc(0x206)][_0x4cf0bc(0x26e)](_0x589989[_0x4cf0bc(0x1fe)][_0x4cf0bc(0x211)],()=>_0x589989[_0x4cf0bc(0x219)](_0x32b63f,this[_0x4cf0bc(0x288)])));}},_0x3f9af7[_0x10d9ff(0x28b)]=_0x1ed5a8([_0x3610de(0x0,_0x564dbf[_0x10d9ff(0x222)](_0x564dbf[_0x10d9ff(0x1e2)])),_0x3610de(0x1,_0x589989['IUIPartsService'])],_0x3f9af7[_0x10d9ff(0x28b)]);const _0x1c522b=_0x10d9ff(0x290),_0x20efc6={};var _0x3bb152=Object['getOwnPropertyDescriptor'],_0x23bb29=(_0x4f241f,_0x2f8c39,_0x46ebab,_0xc177de)=>{for(var _0x37112e=_0xc177de>0x1?void 0x0:_0xc177de?_0x3bb152(_0x2f8c39,_0x46ebab):_0x2f8c39,_0x54ae7b=_0x4f241f['length']-0x1,_0x4d99a2;_0x54ae7b>=0x0;_0x54ae7b--)(_0x4d99a2=_0x4f241f[_0x54ae7b])&&(_0x37112e=_0x4d99a2(_0x37112e)||_0x37112e);return _0x37112e;},_0x3bf3d0=(_0x47234a,_0x5109cb)=>(_0x4f42e2,_0x3fab91)=>_0x5109cb(_0x4f42e2,_0x3fab91,_0x47234a);let _0x1dd6cd=class extends _0x564dbf[_0x10d9ff(0x29b)]{constructor(_0xdb29cb){const _0x5b91ab=_0x10d9ff;super(),this['_liveShareService']=_0xdb29cb,this[_0x5b91ab(0x1c1)]();}[_0x10d9ff(0x1c1)](){const _0xba6750=_0x10d9ff;[_0x46d7a9[_0xba6750(0x213)]['id'],_0x46d7a9[_0xba6750(0x1cb)]['id'],_0x3ee16[_0xba6750(0x265)]['id']][_0xba6750(0x264)](_0x375158=>{const _0x5dc052=_0xba6750;this['disposeWithMe'](this[_0x5dc052(0x1c2)][_0x5dc052(0x1f4)](_0x375158));});}};_0x1dd6cd=_0x23bb29([_0x3bf3d0(0x0,_0x564dbf[_0x10d9ff(0x222)](_0xe80a23))],_0x1dd6cd);var _0x4cb857=Object[_0x10d9ff(0x1d9)],_0x5cc89e=Object[_0x10d9ff(0x22c)],_0x17a3da=(_0x3ea6cd,_0x1e2217,_0x2bab3b)=>_0x1e2217 in _0x3ea6cd?_0x4cb857(_0x3ea6cd,_0x1e2217,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bab3b}):_0x3ea6cd[_0x1e2217]=_0x2bab3b,_0x254053=(_0x47b2ba,_0x6b2e6b,_0x1ae9b8,_0x1da4f3)=>{for(var _0x1bec39=_0x1da4f3>0x1?void 0x0:_0x1da4f3?_0x5cc89e(_0x6b2e6b,_0x1ae9b8):_0x6b2e6b,_0x373403=_0x47b2ba['length']-0x1,_0x1e05ac;_0x373403>=0x0;_0x373403--)(_0x1e05ac=_0x47b2ba[_0x373403])&&(_0x1bec39=_0x1e05ac(_0x1bec39)||_0x1bec39);return _0x1bec39;},_0x338003=(_0x42b9f3,_0x397f26)=>(_0x2c9756,_0x3533b5)=>_0x397f26(_0x2c9756,_0x3533b5,_0x42b9f3),_0x36b36e=(_0x251972,_0xdc35b8,_0x58b33b)=>_0x17a3da(_0x251972,typeof _0xdc35b8!=_0x10d9ff(0x240)?_0xdc35b8+'':_0xdc35b8,_0x58b33b);const _0xe42568=_0x10d9ff(0x205);_0x3f9af7[_0x10d9ff(0x1c5)]=class extends _0x564dbf[_0x10d9ff(0x1e9)]{constructor(_0x2b57e3=_0x20efc6,_0x31c562,_0x5a2eb7){const _0x4169f5=_0x10d9ff;super(),this['_config']=_0x2b57e3,this[_0x4169f5(0x288)]=_0x31c562,this[_0x4169f5(0x212)]=_0x5a2eb7;const {..._0x32e4f6}=_0x564dbf[_0x4169f5(0x276)]({},_0x20efc6,this[_0x4169f5(0x236)]);this[_0x4169f5(0x212)][_0x4169f5(0x249)](_0x1c522b,_0x32e4f6);}[_0x10d9ff(0x28c)](){const _0x2235d8=_0x10d9ff;_0x564dbf['registerDependencies'](this[_0x2235d8(0x288)],_0x564dbf[_0x2235d8(0x23b)]([[_0xe80a23],[_0x3f9af7[_0x2235d8(0x1e0)]],[_0x1dd6cd],[_0x3f9af7['DesktopLiveShareController']]],this['_config']['override'])),_0x564dbf[_0x2235d8(0x21b)](this['_injector'],[[_0x1dd6cd]]);}['onRendered'](){const _0x4ff960=_0x10d9ff;_0x564dbf[_0x4ff960(0x21b)](this[_0x4ff960(0x288)],[[_0x3f9af7[_0x4ff960(0x28b)]]]);}},_0x36b36e(_0x3f9af7[_0x10d9ff(0x1c5)],_0x10d9ff(0x255),_0x564dbf[_0x10d9ff(0x277)][_0x10d9ff(0x27b)]),_0x36b36e(_0x3f9af7['UniverLiveSharePlugin'],_0x10d9ff(0x22f),_0xe42568),_0x3f9af7[_0x10d9ff(0x1c5)]=_0x254053([_0x564dbf[_0x10d9ff(0x292)](_0x59c35a['UniverCollaborationClientPlugin']),_0x338003(0x1,_0x564dbf[_0x10d9ff(0x222)](_0x564dbf['Injector'])),_0x338003(0x2,_0x564dbf[_0x10d9ff(0x1db)])],_0x3f9af7[_0x10d9ff(0x1c5)]),_0x3f9af7[_0x10d9ff(0x1d4)]=_0x32b63f,_0x3f9af7['LiveShareService']=_0xe80a23,_0x3f9af7[_0x10d9ff(0x209)]=_0x5d6112,Object[_0x10d9ff(0x1d9)](_0x3f9af7,Symbol[_0x10d9ff(0x1ad)],{'value':_0x10d9ff(0x1d3)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0-insiders.20251222-4efcfbb",
|
|
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.
|
|
61
|
-
"@univerjs/core": "0.
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/engine-render": "0.
|
|
65
|
-
"@univerjs/sheets
|
|
66
|
-
"@univerjs/sheets": "0.
|
|
67
|
-
"@univerjs/ui": "0.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.14.0-insiders.20251222-4efcfbb",
|
|
61
|
+
"@univerjs/core": "0.14.0-insiders.20251222-4efcfbb",
|
|
62
|
+
"@univerjs/design": "0.14.0-insiders.20251222-4efcfbb",
|
|
63
|
+
"@univerjs-pro/collaboration-client": "0.14.0-insiders.20251222-4efcfbb",
|
|
64
|
+
"@univerjs/engine-render": "0.14.0-insiders.20251222-4efcfbb",
|
|
65
|
+
"@univerjs/sheets": "0.14.0-insiders.20251222-4efcfbb",
|
|
66
|
+
"@univerjs/sheets-ui": "0.14.0-insiders.20251222-4efcfbb",
|
|
67
|
+
"@univerjs/ui": "0.14.0-insiders.20251222-4efcfbb"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.7",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
|
-
"@univerjs-infra/shared": "0.
|
|
77
|
+
"@univerjs-infra/shared": "0.14.0",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|