@univerjs-pro/live-share 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xeba3af=_0x142e;(function(_0x2f244f,_0x5e6e0f){const _0x17e2db=_0x142e,_0x2c32f6=_0x2f244f();while(!![]){try{const _0x33e6a8=parseInt(_0x17e2db(0x132))/0x1+parseInt(_0x17e2db(0x12d))/0x2*(parseInt(_0x17e2db(0x145))/0x3)+parseInt(_0x17e2db(0x13d))/0x4+parseInt(_0x17e2db(0x12b))/0x5+parseInt(_0x17e2db(0x138))/0x6+-parseInt(_0x17e2db(0x130))/0x7*(parseInt(_0x17e2db(0x11f))/0x8)+parseInt(_0x17e2db(0x148))/0x9*(-parseInt(_0x17e2db(0x134))/0xa);if(_0x33e6a8===_0x5e6e0f)break;else _0x2c32f6['push'](_0x2c32f6['shift']());}catch(_0x5a6b6d){_0x2c32f6['push'](_0x2c32f6['shift']());}}}(_0x30e6,0xa0b6a));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x5760d6){'@babel/helpers - typeof';const _0x584f06=_0x142e;return r=typeof Symbol==_0x584f06(0x146)&&typeof Symbol[_0x584f06(0x12e)]==_0x584f06(0x11e)?function(_0x2fb62a){return typeof _0x2fb62a;}:function(_0x3689bf){const _0x5827eb=_0x584f06;return _0x3689bf&&typeof Symbol=='function'&&_0x3689bf[_0x5827eb(0x12f)]===Symbol&&_0x3689bf!==Symbol[_0x5827eb(0x140)]?_0x5827eb(0x11e):typeof _0x3689bf;},r(_0x5760d6);}function _0x142e(_0x1e784b,_0x451627){_0x1e784b=_0x1e784b-0x11d;const _0x30e665=_0x30e6();let _0x142ef5=_0x30e665[_0x1e784b];return _0x142ef5;}function i(_0x4888b0,_0x4848d7){const _0x1661c4=_0x142e;if(r(_0x4888b0)!='object'||!_0x4888b0)return _0x4888b0;var _0x1438c7=_0x4888b0[Symbol[_0x1661c4(0x144)]];if(_0x1438c7!==void 0x0){var _0x68eed5=_0x1438c7['call'](_0x4888b0,_0x4848d7||_0x1661c4(0x125));if(r(_0x68eed5)!=_0x1661c4(0x143))return _0x68eed5;throw TypeError(_0x1661c4(0x147));}return(_0x4848d7===_0x1661c4(0x141)?String:Number)(_0x4888b0);}function a(_0x3f7b93){const _0x10b09c=_0x142e;var _0x2be9ec=i(_0x3f7b93,_0x10b09c(0x141));return r(_0x2be9ec)==_0x10b09c(0x11e)?_0x2be9ec:_0x2be9ec+'';}function o(_0x10c3fc,_0x5e7989,_0x5b49f1){const _0x221b3e=_0x142e;return(_0x5e7989=a(_0x5e7989))in _0x10c3fc?Object[_0x221b3e(0x149)](_0x10c3fc,_0x5e7989,{'value':_0x5b49f1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10c3fc[_0x5e7989]=_0x5b49f1,_0x10c3fc;}var s=class extends n[_0xeba3af(0x142)]{constructor(..._0x5c3a6d){const _0x2200c7=_0xeba3af;super(..._0x5c3a6d),o(this,_0x2200c7(0x14a),void 0x0);}[_0xeba3af(0x121)](_0x2dde02){const _0x3ad8ee=_0xeba3af;this[_0x3ad8ee(0x14a)]=_0x2dde02[_0x3ad8ee(0x124)](e['LiveShareController']);}[_0xeba3af(0x126)](){const _0x4ee7f9=_0xeba3af;var _0x279cc7;let _0x2393d9=this[_0x4ee7f9(0x137)][_0x4ee7f9(0x124)](t['IUniverInstanceService'])['getCurrentUnitOfType'](t[_0x4ee7f9(0x13f)][_0x4ee7f9(0x136)]);if(!_0x2393d9)throw Error(_0x4ee7f9(0x13e));let _0x296bd6=_0x2393d9[_0x4ee7f9(0x13b)](),_0x47b365=this[_0x4ee7f9(0x14a)]['getLiveShareCoordinatorSync'](_0x296bd6);return(_0x279cc7=_0x47b365==null?void 0x0:_0x47b365[_0x4ee7f9(0x131)]())==null?e[_0x4ee7f9(0x127)][_0x4ee7f9(0x11d)]:_0x279cc7;}[_0xeba3af(0x135)](){const _0x463edc=_0xeba3af;let _0x32d230=this[_0x463edc(0x137)][_0x463edc(0x124)](t[_0x463edc(0x139)])['getCurrentUnitOfType'](t[_0x463edc(0x13f)]['UNIVER_SHEET']);if(!_0x32d230)throw Error(_0x463edc(0x13e));let _0x5e1621=_0x32d230[_0x463edc(0x13b)](),_0x9b310e=this[_0x463edc(0x14a)][_0x463edc(0x12a)](_0x5e1621);if(!_0x9b310e)throw Error(_0x463edc(0x13c));_0x9b310e['startFollowing']();}[_0xeba3af(0x120)](){const _0xf7f0b0=_0xeba3af;let _0x57d8ae=this[_0xf7f0b0(0x137)][_0xf7f0b0(0x124)](t[_0xf7f0b0(0x139)])['getCurrentUnitOfType'](t[_0xf7f0b0(0x13f)][_0xf7f0b0(0x136)]);if(!_0x57d8ae)throw Error('No\x20active\x20workbook\x20found.');let _0x12195e=_0x57d8ae[_0xf7f0b0(0x13b)](),_0x1bf20c=this['_liveShareController'][_0xf7f0b0(0x12a)](_0x12195e);if(!_0x1bf20c)throw Error(_0xf7f0b0(0x13c));_0x1bf20c[_0xf7f0b0(0x120)]();}[_0xeba3af(0x13a)](){const _0x2eab83=_0xeba3af;let _0x3c4010=this[_0x2eab83(0x137)][_0x2eab83(0x124)](t['IUniverInstanceService'])[_0x2eab83(0x123)](t[_0x2eab83(0x13f)]['UNIVER_SHEET']);if(!_0x3c4010)throw Error(_0x2eab83(0x13e));let _0x1b7722=_0x3c4010['getUnitId'](),_0x5c9b45=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x1b7722);if(!_0x5c9b45)throw Error(_0x2eab83(0x13c));_0x5c9b45[_0x2eab83(0x12c)]();}[_0xeba3af(0x128)](){const _0x41612b=_0xeba3af;let _0x373861=this[_0x41612b(0x137)][_0x41612b(0x124)](t[_0x41612b(0x139)])[_0x41612b(0x123)](t[_0x41612b(0x13f)]['UNIVER_SHEET']);if(!_0x373861)throw Error(_0x41612b(0x13e));let _0x462f3d=_0x373861[_0x41612b(0x13b)](),_0x4df040=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x462f3d);if(!_0x4df040)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4df040[_0x41612b(0x128)]();}};function _0x30e6(){const _0x545d74=['UniverInstanceType','prototype','string','FUniver','object','toPrimitive','9uddAcg','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','47160LuqpMP','defineProperty','_liveShareController','IDLE','symbol','31472sTzrFm','stopFollowing','_initialize','FEnum','getCurrentUnitOfType','get','default','getLiveShareStatus','LiveShareStatus','stopPresenting','extend','getLiveShareCoordinatorSync','444665yOTApa','tryStartPresenting','726602afxbFV','iterator','constructor','357nakPzM','getStatus','269934JjAmtX','LiveShareStatusEnum','2690KvyejB','startFollowing','UNIVER_SHEET','_injector','4289808AJYcwM','IUniverInstanceService','startPresenting','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','418952yXprVj','No\x20active\x20workbook\x20found.'];_0x30e6=function(){return _0x545d74;};return _0x30e6();}n[_0xeba3af(0x142)][_0xeba3af(0x129)](s);var c=class extends n[_0xeba3af(0x122)]{get[_0xeba3af(0x133)](){const _0x1a13b0=_0xeba3af;return e[_0x1a13b0(0x127)];}};n[_0xeba3af(0x122)][_0xeba3af(0x129)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x548bff=_0xe804;(function(_0x1db648,_0x44c74b){const _0x2fe975=_0xe804,_0x238204=_0x1db648();while(!![]){try{const _0x43fd19=-parseInt(_0x2fe975(0x10a))/0x1+-parseInt(_0x2fe975(0x12e))/0x2+parseInt(_0x2fe975(0x134))/0x3*(-parseInt(_0x2fe975(0x155))/0x4)+parseInt(_0x2fe975(0x149))/0x5+parseInt(_0x2fe975(0x190))/0x6+-parseInt(_0x2fe975(0x183))/0x7+parseInt(_0x2fe975(0x163))/0x8*(parseInt(_0x2fe975(0x15d))/0x9);if(_0x43fd19===_0x44c74b)break;else _0x238204['push'](_0x238204['shift']());}catch(_0x5771b9){_0x238204['push'](_0x238204['shift']());}}}(_0x3b33,0x57642),Object[_0x548bff(0x160)](exports,Symbol['toStringTag'],{'value':_0x548bff(0x19d)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/sheets-ui'),s=require('@univerjs/ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime');function f(_0x38feb9){'@babel/helpers - typeof';const _0x165746=_0x548bff;return f=typeof Symbol==_0x165746(0x121)&&typeof Symbol['iterator']=='symbol'?function(_0x3eeb06){return typeof _0x3eeb06;}:function(_0x15d25e){const _0x120926=_0x165746;return _0x15d25e&&typeof Symbol=='function'&&_0x15d25e[_0x120926(0x165)]===Symbol&&_0x15d25e!==Symbol[_0x120926(0x1a1)]?'symbol':typeof _0x15d25e;},f(_0x38feb9);}function p(_0xbcee69,_0x10e99d){const _0x155593=_0x548bff;if(f(_0xbcee69)!=_0x155593(0x19b)||!_0xbcee69)return _0xbcee69;var _0x55f1b0=_0xbcee69[Symbol['toPrimitive']];if(_0x55f1b0!==void 0x0){var _0x3dc799=_0x55f1b0[_0x155593(0x127)](_0xbcee69,_0x10e99d||_0x155593(0x170));if(f(_0x3dc799)!='object')return _0x3dc799;throw TypeError(_0x155593(0x14e));}return(_0x10e99d===_0x155593(0x122)?String:Number)(_0xbcee69);}function m(_0x159fa2){const _0x21e214=_0x548bff;var _0x16c5f6=p(_0x159fa2,_0x21e214(0x122));return f(_0x16c5f6)==_0x21e214(0x14b)?_0x16c5f6:_0x16c5f6+'';}function h(_0x17e08f,_0x1fe987,_0x51afbc){const _0x14f311=_0x548bff;return(_0x1fe987=m(_0x1fe987))in _0x17e08f?Object[_0x14f311(0x160)](_0x17e08f,_0x1fe987,{'value':_0x51afbc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17e08f[_0x1fe987]=_0x51afbc,_0x17e08f;}var g=class extends n[_0x548bff(0x15e)]{constructor(..._0x22e3c8){const _0x4021fb=_0x548bff;super(..._0x22e3c8),h(this,'_sharedOperations',new Set()),h(this,_0x4021fb(0x104),new Set());}[_0x548bff(0x151)](_0x25d85b){const _0x96149e=_0x548bff;return this[_0x96149e(0x1b3)][_0x96149e(0x101)](_0x25d85b),(0x0,n['toDisposable'])(()=>this['_sharedOperations']['delete'](_0x25d85b));}[_0x548bff(0x1b6)](_0xb54bff){const _0x44dcb7=_0x548bff;return this['_reporters'][_0x44dcb7(0x101)](_0xb54bff),(0x0,n[_0x44dcb7(0x102)])(()=>this[_0x44dcb7(0x104)]['delete'](_0xb54bff));}[_0x548bff(0x1ae)](_0x454d4d){const _0x54d238=_0x548bff;return this[_0x54d238(0x1b3)][_0x54d238(0x14f)](_0x454d4d);}[_0x548bff(0x1a5)](_0x8c095d){const _0x3ac399=_0x548bff;return Array[_0x3ac399(0x19e)](this[_0x3ac399(0x104)])[_0x3ac399(0x1aa)](_0x14fad1=>_0x14fad1(_0x8c095d));}};function _(_0x5ad839,_0x4d2552){return function(_0x1db73e,_0x49e1a3){_0x4d2552(_0x1db73e,_0x49e1a3,_0x5ad839);};}function v(_0x1ff021,_0x5843df,_0x79f4e1,_0x4e4653){const _0x3dd0b3=_0x548bff;var _0x5c1979=arguments[_0x3dd0b3(0x1a9)],_0x59fb49=_0x5c1979<0x3?_0x5843df:_0x4e4653===null?_0x4e4653=Object[_0x3dd0b3(0x144)](_0x5843df,_0x79f4e1):_0x4e4653,_0xc1ea19;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3dd0b3(0x121))_0x59fb49=Reflect['decorate'](_0x1ff021,_0x5843df,_0x79f4e1,_0x4e4653);else{for(var _0x68abb9=_0x1ff021['length']-0x1;_0x68abb9>=0x0;_0x68abb9--)(_0xc1ea19=_0x1ff021[_0x68abb9])&&(_0x59fb49=(_0x5c1979<0x3?_0xc1ea19(_0x59fb49):_0x5c1979>0x3?_0xc1ea19(_0x5843df,_0x79f4e1,_0x59fb49):_0xc1ea19(_0x5843df,_0x79f4e1))||_0x59fb49);}return _0x5c1979>0x3&&_0x59fb49&&Object[_0x3dd0b3(0x160)](_0x5843df,_0x79f4e1,_0x59fb49),_0x59fb49;}let y=class extends n[_0x548bff(0x164)]{constructor(_0xce0cf8,_0x51ab0a,_0xa20067){const _0x1ea51e=_0x548bff;super(),this[_0x1ea51e(0x17f)]=_0xce0cf8,this[_0x1ea51e(0x18f)]=_0x51ab0a,this[_0x1ea51e(0x113)]=_0xa20067,h(this,_0x1ea51e(0x1a7),new Map()),this[_0x1ea51e(0x191)]();}async[_0x548bff(0x188)](_0x55766d){const _0x48e362=_0x548bff;return this[_0x48e362(0x1a7)]['has'](_0x55766d)||await this[_0x48e362(0xff)](_0x55766d),this[_0x48e362(0x1a7)][_0x48e362(0x172)](_0x55766d);}[_0x548bff(0x115)](_0x2ed0dd){const _0x5204a9=_0x548bff;var _0x1fa567;return(_0x1fa567=this[_0x5204a9(0x1a7)][_0x5204a9(0x172)](_0x2ed0dd))==null?null:_0x1fa567;}[_0x548bff(0x191)](){const _0x25574f=_0x548bff;this[_0x25574f(0x17f)][_0x25574f(0x16b)](n['UniverInstanceType'][_0x25574f(0x120)])['pipe']((0x0,a[_0x25574f(0x1a8)])(this[_0x25574f(0x135)]))[_0x25574f(0x168)](async _0x32437d=>{const _0x273d09=_0x25574f;let _0x384557=_0x32437d[_0x273d09(0x16e)]['getUnitId']();this[_0x273d09(0x1a7)][_0x273d09(0x14f)](_0x384557)||this[_0x273d09(0xff)](_0x384557);}),this['_univerInstanceService'][_0x25574f(0x107)](n[_0x25574f(0x1a4)][_0x25574f(0x120)])[_0x25574f(0x126)]((0x0,a['takeUntil'])(this[_0x25574f(0x135)]))[_0x25574f(0x168)](_0x2d3c53=>{const _0x456e12=_0x25574f;let _0x4e4bae=_0x2d3c53['getUnitId'](),_0xc380eb=this['_entities']['get'](_0x4e4bae);_0xc380eb==null||_0xc380eb[_0x456e12(0x10d)]();});}async[_0x548bff(0xff)](_0xcf857a){const _0x12536d=_0x548bff;let _0x423402=await this[_0x12536d(0x113)][_0x12536d(0x156)](_0xcf857a),_0x36a2ab=this[_0x12536d(0x18f)]['createInstance'](x,_0xcf857a,_0x423402);return _0x36a2ab['init'](),this[_0x12536d(0x1a7)][_0x12536d(0x162)](_0xcf857a,_0x36a2ab),_0x36a2ab;}};y=v([_(0x0,n[_0x548bff(0x125)]),_(0x1,(0x0,n[_0x548bff(0x137)])(n[_0x548bff(0x1a0)])),_(0x2,(0x0,n[_0x548bff(0x137)])(t[_0x548bff(0x185)]))],y);let b=function(_0x26802b){const _0x3ada84=_0x548bff;return _0x26802b[_0x3ada84(0x18c)]='offline',_0x26802b[_0x3ada84(0x16d)]=_0x3ada84(0x11b),_0x26802b[_0x3ada84(0x111)]='following',_0x26802b['NOT_FOLLOWING']=_0x3ada84(0x146),_0x26802b['PRESENTING']='presenting',_0x26802b;}({}),x=class extends n[_0x548bff(0x164)]{get[_0x548bff(0x119)](){const _0x5b05e9=_0x548bff;return this[_0x5b05e9(0x117)][_0x5b05e9(0x11c)]();}constructor(_0xe430b6,_0x1b86ef,_0xa8fe7b,_0x22f37c,_0x3bade6){const _0x2af1af=_0x548bff;super(),this[_0x2af1af(0x11a)]=_0xe430b6,this['_collabSession']=_0x1b86ef,this[_0x2af1af(0x1b4)]=_0xa8fe7b,this[_0x2af1af(0x12b)]=_0x22f37c,this[_0x2af1af(0x1b2)]=_0x3bade6,h(this,'_status$',new i[(_0x2af1af(0x148))]('idle')),h(this,_0x2af1af(0x17c),this[_0x2af1af(0x117)][_0x2af1af(0x179)]()),h(this,_0x2af1af(0x191),!0x1),h(this,'_commandDisposable',null),h(this,_0x2af1af(0x1ac),null);}[_0x548bff(0x10d)](){const _0x588b51=_0x548bff;var _0x5cd44b;(_0x5cd44b=this['_commandDisposable'])==null||_0x5cd44b[_0x588b51(0x10d)](),this[_0x588b51(0x117)][_0x588b51(0x173)](_0x588b51(0x11b)),this['_status$'][_0x588b51(0x106)]();}[_0x548bff(0x1a3)](){const _0x48706a=_0x548bff;return this[_0x48706a(0x119)];}[_0x548bff(0x110)](){const _0x3fae93=_0x548bff;this[_0x3fae93(0x191)]||(this[_0x3fae93(0x191)]=!0x0,this['_collabSession']['sessionStatus$'][_0x3fae93(0x126)]((0x0,a[_0x3fae93(0x1a8)])(this[_0x3fae93(0x135)]))[_0x3fae93(0x168)](_0x539687=>{const _0x282a5c=_0x3fae93;switch(_0x539687){case t[_0x282a5c(0x138)][_0x282a5c(0x18c)]:this[_0x282a5c(0x1a6)]();break;case t[_0x282a5c(0x138)][_0x282a5c(0xfd)]:this[_0x282a5c(0x189)]();break;default:}}),this[_0x3fae93(0x13b)][_0x3fae93(0x153)][_0x3fae93(0x126)]((0x0,a['takeUntil'])(this[_0x3fae93(0x135)]))['subscribe'](_0x2ac2c3=>{const _0x95f4fd=_0x3fae93;let {eventID:_0x38e3d2}=_0x2ac2c3;switch(_0x38e3d2){case e[_0x95f4fd(0x13a)]['LIVESHARE_NEW_HOST']:this[_0x95f4fd(0x139)](_0x2ac2c3);break;case e[_0x95f4fd(0x13a)][_0x95f4fd(0x13d)]:this[_0x95f4fd(0x16f)](_0x2ac2c3);break;case e[_0x95f4fd(0x13a)][_0x95f4fd(0x133)]:this[_0x95f4fd(0x1ab)]();break;case e[_0x95f4fd(0x13a)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x2ac2c3);break;default:}}));}['tryStartPresenting'](){const _0x16a727=_0x548bff;this['_collabSession']['send']({'eventID':e[_0x16a727(0x13a)][_0x16a727(0x132)],'data':{'unitID':this[_0x16a727(0x11a)],'userID':this[_0x16a727(0x13b)][_0x16a727(0x154)]()}},this[_0x16a727(0x11a)]);}[_0x548bff(0x12a)](){const _0x5ea75b=_0x548bff;this[_0x5ea75b(0x119)]===_0x5ea75b(0x1b1)&&(this[_0x5ea75b(0x117)][_0x5ea75b(0x173)](_0x5ea75b(0x11b)),this['_collabSession'][_0x5ea75b(0x17d)]({'eventID':e[_0x5ea75b(0x13a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5ea75b(0x11a)]}},this[_0x5ea75b(0x11a)]));}[_0x548bff(0x10e)](){const _0x4f2a8f=_0x548bff;this['_status']===_0x4f2a8f(0x146)&&(this[_0x4f2a8f(0x117)]['next']('following'),this[_0x4f2a8f(0x18a)]());}[_0x548bff(0x158)](){const _0x287142=_0x548bff;this['_status']===_0x287142(0x14d)&&this[_0x287142(0x10c)]();}['_handleNewHost'](_0x45de4f){const _0x132fba=_0x548bff;let {presenter:_0x2b9b56}=_0x45de4f['data'],_0x4500a4=this[_0x132fba(0x13b)][_0x132fba(0x154)]();this[_0x132fba(0x1ac)]=_0x2b9b56,_0x2b9b56===_0x4500a4?(this[_0x132fba(0x10c)](),this['_startPresenting']()):this['_status']!==_0x132fba(0x146)&&(this[_0x132fba(0x176)](),this[_0x132fba(0x18a)]());}[_0x548bff(0x1b8)](){const _0x26b721=_0x548bff;let _0x1e725f={'eventID':e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x26b721(0x13b)][_0x26b721(0x17d)](_0x1e725f,this[_0x26b721(0x11a)]);}['_handleTerminate'](){const _0x1ae706=_0x548bff;this[_0x1ae706(0x1ac)]=null,this[_0x1ae706(0x119)]!==_0x1ae706(0x1b1)&&this[_0x1ae706(0x197)]();}['_handleNewChangeSets'](_0x2ab66e){const _0x2187b3=_0x548bff;if(this['_status']===_0x2187b3(0x14d)&&this[_0x2187b3(0x1ac)]===_0x2ab66e[_0x2187b3(0x18d)][_0x2187b3(0x193)]){let _0x3ef5f2=(0x0,e[_0x2187b3(0x15f)])(_0x2ab66e['data'])[_0x2187b3(0x171)][_0x2187b3(0x141)]()[_0x2187b3(0x128)](_0x45e9fb=>_0x45e9fb['id']===r[_0x2187b3(0x136)]['id']);if(_0x3ef5f2){let _0x2b3a35=_0x3ef5f2[_0x2187b3(0x145)]['unitId'],_0x384c5a=_0x3ef5f2[_0x2187b3(0x145)][_0x2187b3(0x184)]['id'];setTimeout(()=>{const _0x3726ec=_0x2187b3;this[_0x3726ec(0x1b2)][_0x3726ec(0x114)](r['SetWorksheetActiveOperation']['id'],{'unitId':_0x2b3a35,'subUnitId':_0x384c5a},{'fromCollab':!0x0});});}}}[_0x548bff(0x17b)](){const _0x5c6497=_0x548bff;var _0x17f1a6;(_0x17f1a6=this[_0x5c6497(0x100)])==null||_0x17f1a6[_0x5c6497(0x10d)](),this['_status$']['next'](_0x5c6497(0x1b1));let _0x3869b6=new Map(),_0x3896bc=this['_commandDisposable']=new n[(_0x5c6497(0x19a))]();_0x3896bc['add']((0x0,n[_0x5c6497(0x102)])(()=>{const _0x9bf52b=_0x5c6497;_0x3869b6['forEach'](({subject:_0x2f4735,subscription:_0x285591})=>{const _0x571655=_0xe804;_0x285591[_0x571655(0x116)](),_0x2f4735[_0x571655(0x106)]();}),_0x3869b6[_0x9bf52b(0x169)]();})),_0x3896bc[_0x5c6497(0x101)](this[_0x5c6497(0x1b2)][_0x5c6497(0x12d)](_0x1b08dd=>{const _0x4ea352=_0x5c6497;if(_0x1b08dd[_0x4ea352(0x175)]!==n['CommandType'][_0x4ea352(0x186)]||!this[_0x4ea352(0x12b)][_0x4ea352(0x1ae)](_0x1b08dd['id']))return;let {id:_0x1eb6db}=_0x1b08dd,_0x56aeb5;if(_0x3869b6['has'](_0x1eb6db))_0x56aeb5=_0x3869b6[_0x4ea352(0x172)](_0x1eb6db)[_0x4ea352(0x1a2)];else{var _0x111a3e;_0x56aeb5=new i[(_0x4ea352(0x123))]();let _0x66f971=_0x56aeb5[_0x4ea352(0x126)]((0x0,a['throttleTime'])((_0x111a3e=this[_0x4ea352(0x1b4)][_0x4ea352(0x187)](_0x4ea352(0xfe)))==null?0xc8:_0x111a3e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ea352(0x168)](_0x53afe8=>{const _0x7a1a6=_0x4ea352;this[_0x7a1a6(0x13b)][_0x7a1a6(0x17d)]({'eventID':e['CollaborationEvent'][_0x7a1a6(0x13d)],'data':{'unitID':this[_0x7a1a6(0x11a)],'operations':{[_0x53afe8['id']]:{'id':_0x53afe8['id'],'params':JSON['stringify'](_0x53afe8[_0x7a1a6(0x145)])}}}},this[_0x7a1a6(0x11a)]);});_0x3869b6['set'](_0x1eb6db,{'subject':_0x56aeb5,'subscription':_0x66f971});}_0x56aeb5[_0x4ea352(0x173)](_0x1b08dd);})),this[_0x5c6497(0x12b)]['getInitialStates'](this[_0x5c6497(0x11a)])[_0x5c6497(0x14c)](_0x57b102=>this[_0x5c6497(0x13b)]['send']({'eventID':e[_0x5c6497(0x13a)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x57b102['id']]:{'id':_0x57b102['id'],'params':JSON['stringify'](_0x57b102[_0x5c6497(0x145)])}}}},this[_0x5c6497(0x11a)]));}[_0x548bff(0x176)](){const _0x3ce40e=_0x548bff;var _0x5b9311;this['_status$'][_0x3ce40e(0x173)](_0x3ce40e(0x11b)),(_0x5b9311=this['_commandDisposable'])==null||_0x5b9311[_0x3ce40e(0x10d)](),this['_commandDisposable']=null;}[_0x548bff(0x18a)](){const _0x3364b0=_0x548bff;var _0xc5d63f;(_0xc5d63f=this[_0x3364b0(0x100)])==null||_0xc5d63f[_0x3364b0(0x10d)](),this[_0x3364b0(0x117)][_0x3364b0(0x173)](_0x3364b0(0x14d));}[_0x548bff(0x197)](){const _0x2a4c1a=_0x548bff;var _0x22233d;this['_status$'][_0x2a4c1a(0x173)](_0x2a4c1a(0x11b)),(_0x22233d=this[_0x2a4c1a(0x100)])==null||_0x22233d[_0x2a4c1a(0x10d)](),this[_0x2a4c1a(0x100)]=null;}['_stopFollowing'](){const _0x2380ee=_0x548bff;var _0x14b3f2;this['_status$'][_0x2380ee(0x173)](_0x2380ee(0x146)),(_0x14b3f2=this[_0x2380ee(0x100)])==null||_0x14b3f2[_0x2380ee(0x10d)]();}[_0x548bff(0x16f)](_0x4901c0){const _0x2632ff=_0x548bff;if(['presenting',_0x2632ff(0x146),'offline'][_0x2632ff(0x178)](this[_0x2632ff(0x119)])||!_0x4901c0[_0x2632ff(0x18d)]['presenter']||_0x4901c0[_0x2632ff(0x18d)][_0x2632ff(0x118)]===this[_0x2632ff(0x13b)][_0x2632ff(0x154)]())return;this['_status']===_0x2632ff(0x11b)&&this[_0x2632ff(0x18a)]();let _0x56f876=_0x4901c0[_0x2632ff(0x18d)][_0x2632ff(0x1ad)];Object[_0x2632ff(0x18b)](_0x56f876)['forEach'](_0x4e86ab=>{const _0x2da91c=_0x2632ff;this[_0x2da91c(0x1b2)]['executeCommand'](_0x4e86ab['id'],_0x4e86ab[_0x2da91c(0x145)]?JSON[_0x2da91c(0x105)](_0x4e86ab['params']):null,{'fromCollab':!0x0});});}[_0x548bff(0x1a6)](){const _0x2c0208=_0x548bff;var _0x4720e6;this[_0x2c0208(0x117)]['next']('offline'),(_0x4720e6=this[_0x2c0208(0x100)])==null||_0x4720e6['dispose']();}[_0x548bff(0x189)](){const _0x5eaf70=_0x548bff;this[_0x5eaf70(0x117)][_0x5eaf70(0x173)](_0x5eaf70(0x11b)),this[_0x5eaf70(0x1b8)]();}};x=v([_(0x2,n['IConfigService']),_(0x3,(0x0,n[_0x548bff(0x137)])(g)),_(0x4,n['ICommandService'])],x);var S=_0x548bff(0x130),C=_0x548bff(0x17a);function _0xe804(_0x25211f,_0x1d3cbd){_0x25211f=_0x25211f-0xfc;const _0x3b33bb=_0x3b33();let _0xe804f3=_0x3b33bb[_0x25211f];return _0xe804f3;}const w={};let T=class extends n['Disposable']{constructor(_0x2313f3){const _0x4f2573=_0x548bff;super(),this[_0x4f2573(0x12b)]=_0x2313f3,this[_0x4f2573(0x191)]();}[_0x548bff(0x191)](){const _0x15f8d4=_0x548bff;[o[_0x15f8d4(0x152)]['id'],o[_0x15f8d4(0x15a)]['id'],r[_0x15f8d4(0x12c)]['id']][_0x15f8d4(0x14c)](_0x3d1471=>{const _0x2e82c6=_0x15f8d4;this[_0x2e82c6(0x167)](this[_0x2e82c6(0x12b)][_0x2e82c6(0x151)](_0x3d1471));});}};T=v([_(0x0,(0x0,n[_0x548bff(0x137)])(g))],T);function E(){const _0x3980a4=_0x548bff;let _0x4f322e=(0x0,s[_0x3980a4(0x150)])(y),_0x2e6d8d=(0x0,s[_0x3980a4(0x150)])(n[_0x3980a4(0x125)]),_0x361bc7=(0x0,s[_0x3980a4(0x112)])(()=>_0x2e6d8d['getCurrentTypeOfUnit$'](n[_0x3980a4(0x1a4)][_0x3980a4(0x120)]),void 0x0,!0x1,[]),_0x18f5f4=(0x0,s[_0x3980a4(0x112)])((0x0,u[_0x3980a4(0x13e)])(()=>_0x361bc7?(0x0,i['defer'])(()=>(0x0,i[_0x3980a4(0x19e)])(_0x4f322e[_0x3980a4(0x188)](_0x361bc7[_0x3980a4(0x159)]()))):(0x0,i['of'])(null),[_0x361bc7,_0x4f322e]),null),_0x1419ee=(0x0,s[_0x3980a4(0x112)])(_0x18f5f4?()=>_0x18f5f4[_0x3980a4(0x17c)]:null,_0x3980a4(0x11b),!0x1,[_0x18f5f4]);return _0x18f5f4?(0x0,d['jsx'])(c['Dropdown'],{'align':'end','disabled':_0x1419ee===_0x3980a4(0x1b0),'className':_0x3980a4(0x15c),'overlay':(0x0,d['jsx'])(D,{'status':_0x1419ee,'coordinator':_0x18f5f4}),'children':(0x0,d[_0x3980a4(0x143)])('button',{'className':(0x0,c[_0x3980a4(0x194)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1419ee===_0x3980a4(0x1b0),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1419ee!==_0x3980a4(0x1b0)}),'type':_0x3980a4(0x192),'children':(0x0,d[_0x3980a4(0x143)])(l['LiveShareIcon'],{})})}):null;}function D(_0x21c279){const _0x5de1e2=_0x548bff;let {status:_0x180154,coordinator:_0x141f46}=_0x21c279;switch(_0x180154){case _0x5de1e2(0x11b):return(0x0,d[_0x5de1e2(0x143)])(O,{'coordinator':_0x141f46});case _0x5de1e2(0x14d):return(0x0,d['jsx'])(k,{'coordinator':_0x141f46});case'not-following':return(0x0,d[_0x5de1e2(0x143)])(A,{'coordinator':_0x141f46});case _0x5de1e2(0x1b0):return(0x0,d['jsx'])(M,{});case _0x5de1e2(0x1b1):return(0x0,d[_0x5de1e2(0x143)])(j,{'coordinator':_0x141f46});default:return null;}}function _0x3b33(){const _0x2483bc=['has','useDependency','registerSharedOperation','SetZoomRatioOperation','event$','getMemberID','401116eBnZSz','requireSession','LiveShareController','stopFollowing','getUnitId','SetScrollOperation','tryStartPresenting','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','29655muBirX','Disposable','parseProtocolChangeset','defineProperty','Present\x20this\x20document','set','2232Muctrs','RxDisposable','constructor','LiveShareStatus','disposeWithMe','subscribe','clear','Fragment','getTypeOfUnitAdded$','onRendered','IDLE','unit','_handleOperation','default','mutations','get','next','Stop\x20following','type','_stopPresenting','Start\x20following','includes','asObservable','1.0.0-alpha.6','_startPresenting','status$','send','You\x27are\x20offline.','_univerInstanceService','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','mergeOverrideWithDependencies','4518864kSLiDU','sheet','CollaborationSessionService','OPERATION','getConfig','getLiveShareCoordinator','_handleOnline','_startFollowing','values','OFFLINE','data','_config','_injector','3515400nTSehU','_init','button','memberID','clsx','registerDependencies','Plugin','_beIdle','setConfig','Start','DisposableCollection','object','_mountLiveShare','Module','from','text','Injector','prototype','subject','getStatus','UniverInstanceType','getInitialStates','_handleOffline','_entities','takeUntil','length','map','_handleTerminate','_presenter','operations','shouldShareOperation','Button','offline','presenting','_commandService','_sharedOperations','_configService','div','registerInitialStateReporter','pluginName','_fetchOperations','IUIPartsService','ONLINE','SAME_OPERATION_SHARE_INTERVAL','_startLiveShareCoordinator','_commandDisposable','add','toDisposable','merge','_reporters','parse','complete','getTypeOfUnitDisposed$','live-share.config','packageName','223953vfPjQg','HEADER_MENU','_stopFollowing','dispose','startFollowing','version','init','FOLLOWING','useObservable','_collabSessionService','executeCommand','getLiveShareCoordinatorSync','unsubscribe','_status$','presenter','_status','_unitID','idle','getValue','DependentOn','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','UNIVER_SHEET','function','string','Subject','Stop\x20presenting','IUniverInstanceService','pipe','call','find','registerComponent','stopPresenting','_liveShareService','SetWorksheetActiveOperation','onCommandExecuted','285234tnLQfG','onStarting','@univerjs-pro/live-share','IConfigService','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','12cKVaZy','dispose$','InsertSheetMutation','Inject','SessionStatus','_handleNewHost','CollaborationEvent','_collabSession','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','useMemo','UNIVER_UNKNOWN','UniverLiveSharePlugin','reverse','You\x27re\x20not\x20following\x20the\x20presenter','jsx','getOwnPropertyDescriptor','params','not-following','jsxs','BehaviorSubject','1329935ihfedr','BuiltInUIPart','symbol','forEach','following','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x3b33=function(){return _0x2483bc;};return _0x3b33();}function O(_0x441c2b){const _0x49071e=_0x548bff;let {coordinator:_0x581b76}=_0x441c2b;return(0x0,d[_0x49071e(0x147)])(d[_0x49071e(0x16a)],{'children':[(0x0,d[_0x49071e(0x143)])(_0x49071e(0x1b5),{'className':_0x49071e(0x11e),'children':_0x49071e(0x161)}),(0x0,d[_0x49071e(0x143)])(c[_0x49071e(0x1af)],{'onClick':()=>_0x581b76[_0x49071e(0x15b)](),'children':_0x49071e(0x199)})]});}function k(_0x1a41e0){const _0x5f5a9c=_0x548bff;let {coordinator:_0x4f51cd}=_0x1a41e0;return(0x0,d['jsxs'])(d[_0x5f5a9c(0x16a)],{'children':[(0x0,d[_0x5f5a9c(0x143)])('div',{'className':_0x5f5a9c(0x11e),'children':_0x5f5a9c(0x180)}),(0x0,d[_0x5f5a9c(0x143)])(c['Button'],{'onClick':()=>_0x4f51cd[_0x5f5a9c(0x158)](),'children':_0x5f5a9c(0x174)})]});}function A(_0x37d5b3){const _0x519783=_0x548bff;let {coordinator:_0x5ee941}=_0x37d5b3;return(0x0,d['jsxs'])(d[_0x519783(0x16a)],{'children':[(0x0,d['jsx'])(_0x519783(0x1b5),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x519783(0x142)}),(0x0,d[_0x519783(0x143)])(c[_0x519783(0x1af)],{'variant':_0x519783(0x19f),'onClick':()=>_0x5ee941['startFollowing'](),'children':_0x519783(0x177)})]});}function j(_0x2e788f){const _0x40504b=_0x548bff;let {coordinator:_0x2393a9}=_0x2e788f;return(0x0,d[_0x40504b(0x147)])(d[_0x40504b(0x16a)],{'children':[(0x0,d[_0x40504b(0x143)])('div',{'className':_0x40504b(0x11e),'children':_0x40504b(0x11f)}),(0x0,d[_0x40504b(0x143)])(c[_0x40504b(0x1af)],{'variant':_0x40504b(0x170),'onClick':()=>_0x2393a9[_0x40504b(0x12a)](),'children':_0x40504b(0x124)})]});}function M(){const _0x3de6e7=_0x548bff;return(0x0,d[_0x3de6e7(0x143)])(d[_0x3de6e7(0x16a)],{'children':_0x3de6e7(0x17e)});}let N=class extends n['Disposable']{constructor(_0x47d596,_0x6b4eea){const _0x156c4a=_0x548bff;super(),this['_injector']=_0x47d596,this['_uiPartsService']=_0x6b4eea,this[_0x156c4a(0x19c)]();}[_0x548bff(0x19c)](){const _0x20e9fc=_0x548bff;this[_0x20e9fc(0x167)](this['_uiPartsService'][_0x20e9fc(0x129)](s[_0x20e9fc(0x14a)][_0x20e9fc(0x10b)],()=>(0x0,s['connectInjector'])(E,this[_0x20e9fc(0x18f)])));}};N=v([_(0x0,(0x0,n[_0x548bff(0x137)])(n[_0x548bff(0x1a0)])),_(0x1,s[_0x548bff(0xfc)])],N);let P=class extends n[_0x548bff(0x196)]{constructor(_0x256eb9=w,_0x42388b,_0x18c94b){const _0x4aba90=_0x548bff;super(),this[_0x4aba90(0x18e)]=_0x256eb9,this[_0x4aba90(0x18f)]=_0x42388b,this[_0x4aba90(0x1b4)]=_0x18c94b;let {..._0x471f45}=(0x0,n[_0x4aba90(0x103)])({},w,this[_0x4aba90(0x18e)]);this[_0x4aba90(0x1b4)][_0x4aba90(0x198)](_0x4aba90(0x108),_0x471f45);}[_0x548bff(0x12f)](){const _0x4afa03=_0x548bff;(0x0,n[_0x4afa03(0x195)])(this['_injector'],(0x0,n[_0x4afa03(0x182)])([[g],[y],[T],[N]],this[_0x4afa03(0x18e)]['override'])),(0x0,n['touchDependencies'])(this[_0x4afa03(0x18f)],[[T]]);}[_0x548bff(0x16c)](){const _0x18e161=_0x548bff;(0x0,n['touchDependencies'])(this[_0x18e161(0x18f)],[[N]]);}};h(P,_0x548bff(0x175),n[_0x548bff(0x1a4)][_0x548bff(0x13f)]),h(P,_0x548bff(0x1b7),_0x548bff(0x181)),h(P,_0x548bff(0x109),S),h(P,_0x548bff(0x10f),C),P=v([(0x0,n[_0x548bff(0x11d)])(t[_0x548bff(0x13c)]),_(0x1,(0x0,n[_0x548bff(0x137)])(n[_0x548bff(0x1a0)])),_(0x2,n[_0x548bff(0x131)])],P),Object['defineProperty'](exports,_0x548bff(0x157),{'enumerable':!0x0,'get':function(){return y;}}),exports[_0x548bff(0x166)]=b,Object[_0x548bff(0x160)](exports,_0x548bff(0x140),{'enumerable':!0x0,'get':function(){return P;}});
|
|
1
|
+
const _0x4ea661=_0x5ee3;(function(_0x2bae1d,_0x1c4d72){const _0x56ea74=_0x5ee3,_0x3098a1=_0x2bae1d();while(!![]){try{const _0x1a1a99=parseInt(_0x56ea74(0x133))/0x1*(parseInt(_0x56ea74(0x132))/0x2)+parseInt(_0x56ea74(0x13f))/0x3+parseInt(_0x56ea74(0x1c0))/0x4*(-parseInt(_0x56ea74(0x16c))/0x5)+parseInt(_0x56ea74(0x176))/0x6*(-parseInt(_0x56ea74(0x1cf))/0x7)+-parseInt(_0x56ea74(0x1ac))/0x8*(parseInt(_0x56ea74(0x1b7))/0x9)+-parseInt(_0x56ea74(0x1c8))/0xa*(-parseInt(_0x56ea74(0x13b))/0xb)+parseInt(_0x56ea74(0x19e))/0xc;if(_0x1a1a99===_0x1c4d72)break;else _0x3098a1['push'](_0x3098a1['shift']());}catch(_0x1d7c7b){_0x3098a1['push'](_0x3098a1['shift']());}}}(_0x1ac1,0x7bb3c),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4ea661(0x166)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/sheets-ui'),s=require('@univerjs/ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime');function f(_0x1911c1){'@babel/helpers - typeof';const _0x1ca053=_0x4ea661;return f=typeof Symbol==_0x1ca053(0x138)&&typeof Symbol['iterator']==_0x1ca053(0x151)?function(_0x2955ba){return typeof _0x2955ba;}:function(_0x2c68e0){const _0x21d7d3=_0x1ca053;return _0x2c68e0&&typeof Symbol==_0x21d7d3(0x138)&&_0x2c68e0[_0x21d7d3(0x15a)]===Symbol&&_0x2c68e0!==Symbol[_0x21d7d3(0x1cd)]?_0x21d7d3(0x151):typeof _0x2c68e0;},f(_0x1911c1);}function p(_0x4d8b41,_0x31b94f){const _0x501cf9=_0x4ea661;if(f(_0x4d8b41)!=_0x501cf9(0x149)||!_0x4d8b41)return _0x4d8b41;var _0x1f8e56=_0x4d8b41[Symbol[_0x501cf9(0x182)]];if(_0x1f8e56!==void 0x0){var _0x2f154d=_0x1f8e56[_0x501cf9(0x16b)](_0x4d8b41,_0x31b94f||'default');if(f(_0x2f154d)!=_0x501cf9(0x149))return _0x2f154d;throw TypeError(_0x501cf9(0x195));}return(_0x31b94f===_0x501cf9(0x173)?String:Number)(_0x4d8b41);}function m(_0x3aaea3){const _0x3b577c=_0x4ea661;var _0xdaaacb=p(_0x3aaea3,'string');return f(_0xdaaacb)==_0x3b577c(0x151)?_0xdaaacb:_0xdaaacb+'';}function h(_0x15b9df,_0x170fc1,_0x41de35){return(_0x170fc1=m(_0x170fc1))in _0x15b9df?Object['defineProperty'](_0x15b9df,_0x170fc1,{'value':_0x41de35,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15b9df[_0x170fc1]=_0x41de35,_0x15b9df;}var g=class extends n[_0x4ea661(0x19b)]{constructor(..._0x984de4){const _0xae6abf=_0x4ea661;super(..._0x984de4),h(this,'_sharedOperations',new Set()),h(this,_0xae6abf(0x14c),new Set());}[_0x4ea661(0x1b4)](_0x1f5c57){const _0x4bc91f=_0x4ea661;return this[_0x4bc91f(0x164)][_0x4bc91f(0x193)](_0x1f5c57),(0x0,n[_0x4bc91f(0x158)])(()=>this[_0x4bc91f(0x164)][_0x4bc91f(0x1a9)](_0x1f5c57));}[_0x4ea661(0x178)](_0xa651a6){const _0xf0460=_0x4ea661;return this[_0xf0460(0x14c)]['add'](_0xa651a6),(0x0,n[_0xf0460(0x158)])(()=>this['_reporters']['delete'](_0xa651a6));}[_0x4ea661(0x163)](_0x30c810){const _0x15d06b=_0x4ea661;return this['_sharedOperations'][_0x15d06b(0x15d)](_0x30c810);}[_0x4ea661(0x17d)](_0x5d6f4c){const _0x6afcd4=_0x4ea661;return Array[_0x6afcd4(0x1a3)](this['_reporters'])[_0x6afcd4(0x1c1)](_0x409c49=>_0x409c49(_0x5d6f4c));}};function _(_0x28b117,_0x1ac45c){return function(_0x2429a2,_0x5b4f21){_0x1ac45c(_0x2429a2,_0x5b4f21,_0x28b117);};}function v(_0x5ded80,_0x3c70cf,_0x1f6e73,_0x185b54){const _0x4955d0=_0x4ea661;var _0x419d46=arguments[_0x4955d0(0x197)],_0x490893=_0x419d46<0x3?_0x3c70cf:_0x185b54===null?_0x185b54=Object[_0x4955d0(0x12d)](_0x3c70cf,_0x1f6e73):_0x185b54,_0x534252;if(typeof Reflect==_0x4955d0(0x149)&&typeof Reflect[_0x4955d0(0x13c)]==_0x4955d0(0x138))_0x490893=Reflect[_0x4955d0(0x13c)](_0x5ded80,_0x3c70cf,_0x1f6e73,_0x185b54);else{for(var _0x117070=_0x5ded80['length']-0x1;_0x117070>=0x0;_0x117070--)(_0x534252=_0x5ded80[_0x117070])&&(_0x490893=(_0x419d46<0x3?_0x534252(_0x490893):_0x419d46>0x3?_0x534252(_0x3c70cf,_0x1f6e73,_0x490893):_0x534252(_0x3c70cf,_0x1f6e73))||_0x490893);}return _0x419d46>0x3&&_0x490893&&Object[_0x4955d0(0x1b2)](_0x3c70cf,_0x1f6e73,_0x490893),_0x490893;}let y=class extends n[_0x4ea661(0x1a2)]{constructor(_0xb81cf4,_0x51a75a,_0x20e6b4){const _0x32e6d9=_0x4ea661;super(),this[_0x32e6d9(0x16e)]=_0xb81cf4,this['_injector']=_0x51a75a,this['_collabSessionService']=_0x20e6b4,h(this,'_entities',new Map()),this[_0x32e6d9(0x16a)]();}async['getLiveShareCoordinator'](_0x1fac3e){const _0x4e788a=_0x4ea661;return this[_0x4e788a(0x196)][_0x4e788a(0x15d)](_0x1fac3e)||await this[_0x4e788a(0x1bd)](_0x1fac3e),this[_0x4e788a(0x196)]['get'](_0x1fac3e);}['getLiveShareCoordinatorSync'](_0x1de17f){const _0x292e96=_0x4ea661;var _0x5ed542;return(_0x5ed542=this[_0x292e96(0x196)][_0x292e96(0x13e)](_0x1de17f))==null?null:_0x5ed542;}[_0x4ea661(0x16a)](){const _0x5a850a=_0x4ea661;this[_0x5a850a(0x16e)][_0x5a850a(0x1a8)](n['UniverInstanceType'][_0x5a850a(0x161)])['pipe']((0x0,a['takeUntil'])(this['dispose$']))[_0x5a850a(0x1b1)](async _0x238767=>{const _0x1fa7f4=_0x5a850a;let _0x581449=_0x238767[_0x1fa7f4(0x165)][_0x1fa7f4(0x18f)]();this[_0x1fa7f4(0x196)][_0x1fa7f4(0x15d)](_0x581449)||this['_startLiveShareCoordinator'](_0x581449);}),this[_0x5a850a(0x16e)][_0x5a850a(0x157)](n[_0x5a850a(0x199)][_0x5a850a(0x161)])[_0x5a850a(0x152)]((0x0,a['takeUntil'])(this[_0x5a850a(0x150)]))[_0x5a850a(0x1b1)](_0xd9368a=>{const _0x3bbd5f=_0x5a850a;let _0xcb81e0=_0xd9368a[_0x3bbd5f(0x18f)](),_0x2b9f5c=this[_0x3bbd5f(0x196)][_0x3bbd5f(0x13e)](_0xcb81e0);_0x2b9f5c==null||_0x2b9f5c[_0x3bbd5f(0x17a)]();});}async['_startLiveShareCoordinator'](_0x237d33){const _0x339fb9=_0x4ea661;let _0x212af5=await this[_0x339fb9(0x18b)][_0x339fb9(0x140)](_0x237d33),_0x2d4eeb=this['_injector']['createInstance'](x,_0x237d33,_0x212af5);return _0x2d4eeb[_0x339fb9(0x177)](),this[_0x339fb9(0x196)][_0x339fb9(0x15b)](_0x237d33,_0x2d4eeb),_0x2d4eeb;}};y=v([_(0x0,n['IUniverInstanceService']),_(0x1,(0x0,n[_0x4ea661(0x1bf)])(n[_0x4ea661(0x18d)])),_(0x2,(0x0,n['Inject'])(t[_0x4ea661(0x1cc)]))],y);let b=function(_0x86fbf8){const _0x28193e=_0x4ea661;return _0x86fbf8[_0x28193e(0x167)]=_0x28193e(0x15c),_0x86fbf8['IDLE']=_0x28193e(0x162),_0x86fbf8[_0x28193e(0x1a1)]=_0x28193e(0x1b3),_0x86fbf8['NOT_FOLLOWING']=_0x28193e(0x14e),_0x86fbf8['PRESENTING']=_0x28193e(0x19f),_0x86fbf8;}({}),x=class extends n[_0x4ea661(0x1a2)]{get[_0x4ea661(0x1af)](){return this['_status$']['getValue']();}constructor(_0x33c709,_0x523a20,_0x3c371b,_0x4eec60,_0x9015d7){const _0x13228c=_0x4ea661;super(),this[_0x13228c(0x1b8)]=_0x33c709,this[_0x13228c(0x147)]=_0x523a20,this['_configService']=_0x3c371b,this[_0x13228c(0x17c)]=_0x4eec60,this[_0x13228c(0x190)]=_0x9015d7,h(this,_0x13228c(0x170),new i['BehaviorSubject'](_0x13228c(0x162))),h(this,_0x13228c(0x1be),this[_0x13228c(0x170)]['asObservable']()),h(this,_0x13228c(0x16a),!0x1),h(this,'_commandDisposable',null),h(this,_0x13228c(0x130),null);}['dispose'](){const _0x4b1957=_0x4ea661;var _0x5c6b6c;(_0x5c6b6c=this[_0x4b1957(0x1ca)])==null||_0x5c6b6c['dispose'](),this['_status$'][_0x4b1957(0x1d7)](_0x4b1957(0x162)),this[_0x4b1957(0x170)][_0x4b1957(0x175)]();}['getStatus'](){const _0x47928d=_0x4ea661;return this[_0x47928d(0x1af)];}[_0x4ea661(0x177)](){const _0x4fa484=_0x4ea661;this['_init']||(this['_init']=!0x0,this[_0x4fa484(0x147)][_0x4fa484(0x1b6)]['pipe']((0x0,a[_0x4fa484(0x1b0)])(this[_0x4fa484(0x150)]))[_0x4fa484(0x1b1)](_0x1d4134=>{const _0x4f1f31=_0x4fa484;switch(_0x1d4134){case t[_0x4f1f31(0x17e)]['OFFLINE']:this[_0x4f1f31(0x171)]();break;case t[_0x4f1f31(0x17e)]['ONLINE']:this[_0x4f1f31(0x1a7)]();break;default:}}),this[_0x4fa484(0x147)][_0x4fa484(0x1ab)][_0x4fa484(0x152)]((0x0,a[_0x4fa484(0x1b0)])(this[_0x4fa484(0x150)]))[_0x4fa484(0x1b1)](_0x455ccf=>{const _0x45ee18=_0x4fa484;let {eventID:_0x3f8be6}=_0x455ccf;switch(_0x3f8be6){case e[_0x45ee18(0x18c)][_0x45ee18(0x187)]:this[_0x45ee18(0x188)](_0x455ccf);break;case e[_0x45ee18(0x18c)]['LIVESHARE_OPERATION']:this[_0x45ee18(0x1d2)](_0x455ccf);break;case e[_0x45ee18(0x18c)][_0x45ee18(0x129)]:this[_0x45ee18(0x192)]();break;case e[_0x45ee18(0x18c)][_0x45ee18(0x1ae)]:this['_handleNewChangeSets'](_0x455ccf);break;default:}}));}[_0x4ea661(0x1c7)](){const _0x2f6dbf=_0x4ea661;this[_0x2f6dbf(0x147)][_0x2f6dbf(0x17f)]({'eventID':e[_0x2f6dbf(0x18c)][_0x2f6dbf(0x14b)],'data':{'unitID':this['_unitID'],'userID':this[_0x2f6dbf(0x147)][_0x2f6dbf(0x134)]()}},this[_0x2f6dbf(0x1b8)]);}['stopPresenting'](){const _0x25579e=_0x4ea661;this[_0x25579e(0x1af)]===_0x25579e(0x19f)&&(this['_status$'][_0x25579e(0x1d7)]('idle'),this[_0x25579e(0x147)][_0x25579e(0x17f)]({'eventID':e[_0x25579e(0x18c)][_0x25579e(0x129)],'data':{'unitID':this[_0x25579e(0x1b8)]}},this['_unitID']));}[_0x4ea661(0x1a6)](){const _0x54adb1=_0x4ea661;this[_0x54adb1(0x1af)]===_0x54adb1(0x14e)&&(this[_0x54adb1(0x170)][_0x54adb1(0x1d7)](_0x54adb1(0x1b3)),this['_startFollowing']());}[_0x4ea661(0x1d3)](){const _0xab1402=_0x4ea661;this[_0xab1402(0x1af)]===_0xab1402(0x1b3)&&this[_0xab1402(0x169)]();}['_handleNewHost'](_0x419449){const _0x288b0f=_0x4ea661;let {presenter:_0x2a4178}=_0x419449[_0x288b0f(0x12f)],_0x967884=this[_0x288b0f(0x147)][_0x288b0f(0x134)]();this[_0x288b0f(0x130)]=_0x2a4178,_0x2a4178===_0x967884?(this['_stopFollowing'](),this[_0x288b0f(0x16d)]()):this[_0x288b0f(0x1af)]!==_0x288b0f(0x14e)&&(this[_0x288b0f(0x1a5)](),this[_0x288b0f(0x15e)]());}[_0x4ea661(0x17b)](){const _0x47c658=_0x4ea661;let _0x3c37d4={'eventID':e[_0x47c658(0x18c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x47c658(0x147)][_0x47c658(0x17f)](_0x3c37d4,this[_0x47c658(0x1b8)]);}[_0x4ea661(0x192)](){this['_presenter']=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x4ea661(0x168)](_0x2460d1){const _0x1f74f9=_0x4ea661;if(this['_status']===_0x1f74f9(0x1b3)&&this[_0x1f74f9(0x130)]===_0x2460d1[_0x1f74f9(0x12f)][_0x1f74f9(0x1b5)]){let _0x2cd08e=(0x0,e[_0x1f74f9(0x1ba)])(_0x2460d1['data'])['mutations'][_0x1f74f9(0x19a)]()[_0x1f74f9(0x137)](_0x15f393=>_0x15f393['id']===r[_0x1f74f9(0x183)]['id']);if(_0x2cd08e){let _0x10394d=_0x2cd08e['params']['unitId'],_0x2c860a=_0x2cd08e[_0x1f74f9(0x141)][_0x1f74f9(0x180)]['id'];setTimeout(()=>{const _0x45bdf6=_0x1f74f9;this[_0x45bdf6(0x190)][_0x45bdf6(0x181)](r[_0x45bdf6(0x186)]['id'],{'unitId':_0x10394d,'subUnitId':_0x2c860a},{'fromCollab':!0x0});});}}}[_0x4ea661(0x16d)](){const _0x440658=_0x4ea661;var _0x274b71;(_0x274b71=this[_0x440658(0x1ca)])==null||_0x274b71[_0x440658(0x17a)](),this[_0x440658(0x170)][_0x440658(0x1d7)](_0x440658(0x19f));let _0x77a628=new Map(),_0x1b7d19=this[_0x440658(0x1ca)]=new n[(_0x440658(0x1ce))]();_0x1b7d19[_0x440658(0x193)]((0x0,n[_0x440658(0x158)])(()=>{const _0xe3471=_0x440658;_0x77a628[_0xe3471(0x15f)](({subject:_0x40be46,subscription:_0x156862})=>{const _0x381402=_0xe3471;_0x156862[_0x381402(0x16f)](),_0x40be46[_0x381402(0x175)]();}),_0x77a628[_0xe3471(0x1a4)]();})),_0x1b7d19[_0x440658(0x193)](this[_0x440658(0x190)][_0x440658(0x131)](_0x1e6813=>{const _0x1caecc=_0x440658;if(_0x1e6813['type']!==n[_0x1caecc(0x139)]['OPERATION']||!this[_0x1caecc(0x17c)][_0x1caecc(0x163)](_0x1e6813['id']))return;let {id:_0x16792f}=_0x1e6813,_0x3a9f86;if(_0x77a628['has'](_0x16792f))_0x3a9f86=_0x77a628[_0x1caecc(0x13e)](_0x16792f)[_0x1caecc(0x1d1)];else{var _0x66ca8d;_0x3a9f86=new i[(_0x1caecc(0x1c3))]();let _0x1edbf4=_0x3a9f86[_0x1caecc(0x152)]((0x0,a[_0x1caecc(0x153)])((_0x66ca8d=this[_0x1caecc(0x143)]['getConfig'](_0x1caecc(0x1c6)))==null?0xc8:_0x66ca8d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1caecc(0x1b1)](_0x9dfc34=>{const _0x2a657a=_0x1caecc;this['_collabSession'][_0x2a657a(0x17f)]({'eventID':e[_0x2a657a(0x18c)][_0x2a657a(0x159)],'data':{'unitID':this[_0x2a657a(0x1b8)],'operations':{[_0x9dfc34['id']]:{'id':_0x9dfc34['id'],'params':JSON[_0x2a657a(0x135)](_0x9dfc34[_0x2a657a(0x141)])}}}},this[_0x2a657a(0x1b8)]);});_0x77a628[_0x1caecc(0x15b)](_0x16792f,{'subject':_0x3a9f86,'subscription':_0x1edbf4});}_0x3a9f86[_0x1caecc(0x1d7)](_0x1e6813);})),this['_liveShareService']['getInitialStates'](this[_0x440658(0x1b8)])[_0x440658(0x15f)](_0x2aab8b=>this[_0x440658(0x147)][_0x440658(0x17f)]({'eventID':e[_0x440658(0x18c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x440658(0x1b8)],'operations':{[_0x2aab8b['id']]:{'id':_0x2aab8b['id'],'params':JSON['stringify'](_0x2aab8b['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x48f64b=_0x4ea661;var _0x391606;this['_status$'][_0x48f64b(0x1d7)](_0x48f64b(0x162)),(_0x391606=this[_0x48f64b(0x1ca)])==null||_0x391606['dispose'](),this[_0x48f64b(0x1ca)]=null;}[_0x4ea661(0x15e)](){const _0x582150=_0x4ea661;var _0x1bb7e8;(_0x1bb7e8=this['_commandDisposable'])==null||_0x1bb7e8[_0x582150(0x17a)](),this[_0x582150(0x170)][_0x582150(0x1d7)]('following');}[_0x4ea661(0x148)](){const _0x40d562=_0x4ea661;var _0x5ce077;this[_0x40d562(0x170)][_0x40d562(0x1d7)](_0x40d562(0x162)),(_0x5ce077=this['_commandDisposable'])==null||_0x5ce077[_0x40d562(0x17a)](),this[_0x40d562(0x1ca)]=null;}[_0x4ea661(0x169)](){const _0x1fbc98=_0x4ea661;var _0x420bff;this[_0x1fbc98(0x170)][_0x1fbc98(0x1d7)](_0x1fbc98(0x14e)),(_0x420bff=this[_0x1fbc98(0x1ca)])==null||_0x420bff[_0x1fbc98(0x17a)]();}[_0x4ea661(0x1d2)](_0x1547b4){const _0x5b78c5=_0x4ea661;if([_0x5b78c5(0x19f),_0x5b78c5(0x14e),_0x5b78c5(0x15c)][_0x5b78c5(0x13a)](this[_0x5b78c5(0x1af)])||!_0x1547b4[_0x5b78c5(0x12f)][_0x5b78c5(0x1bc)]||_0x1547b4[_0x5b78c5(0x12f)][_0x5b78c5(0x1bc)]===this[_0x5b78c5(0x147)][_0x5b78c5(0x134)]())return;this[_0x5b78c5(0x1af)]==='idle'&&this['_startFollowing']();let _0x45ea56=_0x1547b4[_0x5b78c5(0x12f)]['operations'];Object[_0x5b78c5(0x12e)](_0x45ea56)['forEach'](_0x26348d=>{const _0x250ae0=_0x5b78c5;this[_0x250ae0(0x190)][_0x250ae0(0x181)](_0x26348d['id'],_0x26348d[_0x250ae0(0x141)]?JSON[_0x250ae0(0x179)](_0x26348d[_0x250ae0(0x141)]):null,{'fromCollab':!0x0});});}[_0x4ea661(0x171)](){const _0x569694=_0x4ea661;var _0x2c94d9;this[_0x569694(0x170)]['next']('offline'),(_0x2c94d9=this[_0x569694(0x1ca)])==null||_0x2c94d9[_0x569694(0x17a)]();}[_0x4ea661(0x1a7)](){const _0x3c8d0e=_0x4ea661;this['_status$'][_0x3c8d0e(0x1d7)](_0x3c8d0e(0x162)),this[_0x3c8d0e(0x17b)]();}};x=v([_(0x2,n[_0x4ea661(0x185)]),_(0x3,(0x0,n[_0x4ea661(0x1bf)])(g)),_(0x4,n['ICommandService'])],x);var S='@univerjs-pro/live-share',C=_0x4ea661(0x19d);const w={};let T=class extends n[_0x4ea661(0x19b)]{constructor(_0x14202e){const _0x4fb892=_0x4ea661;super(),this[_0x4fb892(0x17c)]=_0x14202e,this[_0x4fb892(0x16a)]();}[_0x4ea661(0x16a)](){const _0x39d154=_0x4ea661;[o['SetZoomRatioOperation']['id'],o[_0x39d154(0x194)]['id'],r['SetWorksheetActiveOperation']['id']][_0x39d154(0x15f)](_0x45fcb4=>{const _0x19d35f=_0x39d154;this[_0x19d35f(0x13d)](this[_0x19d35f(0x17c)]['registerSharedOperation'](_0x45fcb4));});}};T=v([_(0x0,(0x0,n[_0x4ea661(0x1bf)])(g))],T);function E(){const _0x9d0a88=_0x4ea661;let _0xcfc048=(0x0,s[_0x9d0a88(0x172)])(y),_0x147d2a=(0x0,s[_0x9d0a88(0x172)])(n['IUniverInstanceService']),_0x34b46b=(0x0,s[_0x9d0a88(0x1d8)])(()=>_0x147d2a['getCurrentTypeOfUnit$'](n[_0x9d0a88(0x199)][_0x9d0a88(0x161)]),void 0x0,!0x1,[]),_0x46e147=(0x0,s[_0x9d0a88(0x1d8)])((0x0,u['useMemo'])(()=>_0x34b46b?(0x0,i['defer'])(()=>(0x0,i[_0x9d0a88(0x1a3)])(_0xcfc048[_0x9d0a88(0x144)](_0x34b46b['getUnitId']()))):(0x0,i['of'])(null),[_0x34b46b,_0xcfc048]),null),_0x5e286b=(0x0,s[_0x9d0a88(0x1d8)])(_0x46e147?()=>_0x46e147['status$']:null,'idle',!0x1,[_0x46e147]);return _0x46e147?(0x0,d[_0x9d0a88(0x136)])(c['Dropdown'],{'align':_0x9d0a88(0x145),'disabled':_0x5e286b===_0x9d0a88(0x15c),'className':_0x9d0a88(0x1d0),'overlay':(0x0,d[_0x9d0a88(0x136)])(D,{'status':_0x5e286b,'coordinator':_0x46e147}),'children':(0x0,d[_0x9d0a88(0x136)])(_0x9d0a88(0x146),{'className':(0x0,c['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5e286b===_0x9d0a88(0x15c),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5e286b!=='offline'}),'type':'button','children':(0x0,d[_0x9d0a88(0x136)])(l[_0x9d0a88(0x14f)],{})})}):null;}function D(_0x311ece){const _0x4353a8=_0x4ea661;let {status:_0x4eedc6,coordinator:_0x42bb00}=_0x311ece;switch(_0x4eedc6){case'idle':return(0x0,d[_0x4353a8(0x136)])(O,{'coordinator':_0x42bb00});case _0x4353a8(0x1b3):return(0x0,d[_0x4353a8(0x136)])(k,{'coordinator':_0x42bb00});case _0x4353a8(0x14e):return(0x0,d[_0x4353a8(0x136)])(A,{'coordinator':_0x42bb00});case _0x4353a8(0x15c):return(0x0,d[_0x4353a8(0x136)])(M,{});case _0x4353a8(0x19f):return(0x0,d[_0x4353a8(0x136)])(j,{'coordinator':_0x42bb00});default:return null;}}function _0x5ee3(_0x41e8d6,_0x337f73){_0x41e8d6=_0x41e8d6-0x129;const _0x1ac14c=_0x1ac1();let _0x5ee3b7=_0x1ac14c[_0x41e8d6];return _0x5ee3b7;}function O(_0x500619){const _0x4f33d8=_0x4ea661;let {coordinator:_0x4e8a4a}=_0x500619;return(0x0,d['jsxs'])(d['Fragment'],{'children':[(0x0,d[_0x4f33d8(0x136)])(_0x4f33d8(0x154),{'className':_0x4f33d8(0x142),'children':_0x4f33d8(0x19c)}),(0x0,d[_0x4f33d8(0x136)])(c[_0x4f33d8(0x1c4)],{'onClick':()=>_0x4e8a4a[_0x4f33d8(0x1c7)](),'children':_0x4f33d8(0x1c2)})]});}function _0x1ac1(){const _0x1e6c50=['takeUntil','subscribe','defineProperty','following','registerSharedOperation','memberID','sessionStatus$','34227wzbVsm','_unitID','_injector','parseProtocolChangeset','_mountLiveShare','presenter','_startLiveShareCoordinator','status$','Inject','1812628UISVBq','map','Start','Subject','Button','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','tryStartPresenting','131360JnwViy','onStarting','_commandDisposable','_config','CollaborationSessionService','prototype','DisposableCollection','7xpsppg','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','subject','_handleOperation','stopFollowing','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','DependentOn','next','useObservable','LIVESHARE_TERMINATE','merge','default','touchDependencies','getOwnPropertyDescriptor','values','data','_presenter','onCommandExecuted','74882phOAqB','19hcbJPi','getMemberID','stringify','jsx','find','function','CommandType','includes','473HybVhm','decorate','disposeWithMe','get','475608fKiIHR','requireSession','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','_configService','getLiveShareCoordinator','end','button','_collabSession','_beIdle','object','You\x27re\x20presenting\x20the\x20document','LIVESHARE_REQUEST_HOST','_reporters','packageName','not-following','LiveShareIcon','dispose$','symbol','pipe','throttleTime','div','You\x27re\x20not\x20following\x20the\x20presenter','You\x27are\x20offline.','getTypeOfUnitDisposed$','toDisposable','LIVESHARE_OPERATION','constructor','set','offline','has','_startFollowing','forEach','IUIPartsService','UNIVER_SHEET','idle','shouldShareOperation','_sharedOperations','unit','Module','OFFLINE','_handleNewChangeSets','_stopFollowing','_init','call','5PfgLYa','_startPresenting','_univerInstanceService','unsubscribe','_status$','_handleOffline','useDependency','string','text','complete','3116274xpMHUX','init','registerInitialStateReporter','parse','dispose','_fetchOperations','_liveShareService','getInitialStates','SessionStatus','send','sheet','executeCommand','toPrimitive','InsertSheetMutation','HEADER_MENU','IConfigService','SetWorksheetActiveOperation','LIVESHARE_NEW_HOST','_handleNewHost','registerComponent','UNIVER_UNKNOWN','_collabSessionService','CollaborationEvent','Injector','pluginName','getUnitId','_commandService','UniverLiveSharePlugin','_handleTerminate','add','SetScrollOperation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_entities','length','jsxs','UniverInstanceType','reverse','Disposable','Present\x20this\x20document','1.0.0-alpha.7','10527768viCJgz','presenting','Plugin','FOLLOWING','RxDisposable','from','clear','_stopPresenting','startFollowing','_handleOnline','getTypeOfUnitAdded$','delete','onRendered','event$','1752oojSDc','Fragment','NEW_CHANGESETS','_status'];_0x1ac1=function(){return _0x1e6c50;};return _0x1ac1();}function k(_0x1e19ba){const _0x148728=_0x4ea661;let {coordinator:_0x214c47}=_0x1e19ba;return(0x0,d[_0x148728(0x198)])(d['Fragment'],{'children':[(0x0,d[_0x148728(0x136)])(_0x148728(0x154),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,d[_0x148728(0x136)])(c[_0x148728(0x1c4)],{'onClick':()=>_0x214c47[_0x148728(0x1d3)](),'children':'Stop\x20following'})]});}function A(_0x4d4207){const _0x5c8041=_0x4ea661;let {coordinator:_0x3c615d}=_0x4d4207;return(0x0,d['jsxs'])(d['Fragment'],{'children':[(0x0,d[_0x5c8041(0x136)])(_0x5c8041(0x154),{'className':_0x5c8041(0x142),'children':_0x5c8041(0x155)}),(0x0,d[_0x5c8041(0x136)])(c[_0x5c8041(0x1c4)],{'variant':_0x5c8041(0x174),'onClick':()=>_0x3c615d[_0x5c8041(0x1a6)](),'children':_0x5c8041(0x1c5)})]});}function j(_0x234671){const _0x345591=_0x4ea661;let {coordinator:_0x4ea9b4}=_0x234671;return(0x0,d[_0x345591(0x198)])(d[_0x345591(0x1ad)],{'children':[(0x0,d['jsx'])(_0x345591(0x154),{'className':_0x345591(0x142),'children':_0x345591(0x14a)}),(0x0,d[_0x345591(0x136)])(c[_0x345591(0x1c4)],{'variant':_0x345591(0x12b),'onClick':()=>_0x4ea9b4['stopPresenting'](),'children':'Stop\x20presenting'})]});}function M(){const _0x1ac897=_0x4ea661;return(0x0,d[_0x1ac897(0x136)])(d[_0x1ac897(0x1ad)],{'children':_0x1ac897(0x156)});}let N=class extends n['Disposable']{constructor(_0x39bad6,_0x1a08b4){const _0x545f88=_0x4ea661;super(),this[_0x545f88(0x1b9)]=_0x39bad6,this[_0x545f88(0x1d4)]=_0x1a08b4,this[_0x545f88(0x1bb)]();}[_0x4ea661(0x1bb)](){const _0x409774=_0x4ea661;this['disposeWithMe'](this['_uiPartsService'][_0x409774(0x189)](s['BuiltInUIPart'][_0x409774(0x184)],()=>(0x0,s['connectInjector'])(E,this[_0x409774(0x1b9)])));}};N=v([_(0x0,(0x0,n['Inject'])(n[_0x4ea661(0x18d)])),_(0x1,s[_0x4ea661(0x160)])],N);let P=class extends n[_0x4ea661(0x1a0)]{constructor(_0x558130=w,_0x2e0fa3,_0x43a637){const _0x1de31c=_0x4ea661;super(),this['_config']=_0x558130,this['_injector']=_0x2e0fa3,this[_0x1de31c(0x143)]=_0x43a637;let {..._0x3df14f}=(0x0,n[_0x1de31c(0x12a)])({},w,this[_0x1de31c(0x1cb)]);this['_configService']['setConfig']('live-share.config',_0x3df14f);}[_0x4ea661(0x1c9)](){const _0x54f08c=_0x4ea661;(0x0,n['registerDependencies'])(this['_injector'],(0x0,n['mergeOverrideWithDependencies'])([[g],[y],[T],[N]],this[_0x54f08c(0x1cb)]['override'])),(0x0,n[_0x54f08c(0x12c)])(this[_0x54f08c(0x1b9)],[[T]]);}[_0x4ea661(0x1aa)](){(0x0,n['touchDependencies'])(this['_injector'],[[N]]);}};h(P,'type',n['UniverInstanceType'][_0x4ea661(0x18a)]),h(P,_0x4ea661(0x18e),_0x4ea661(0x1d5)),h(P,_0x4ea661(0x14d),S),h(P,'version',C),P=v([(0x0,n[_0x4ea661(0x1d6)])(t['UniverCollaborationClientPlugin']),_(0x1,(0x0,n[_0x4ea661(0x1bf)])(n[_0x4ea661(0x18d)])),_(0x2,n[_0x4ea661(0x185)])],P),Object[_0x4ea661(0x1b2)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),exports['LiveShareStatus']=b,Object['defineProperty'](exports,_0x4ea661(0x191),{'enumerable':!0x0,'get':function(){return P;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x178ed7=_0x16d1;(function(_0x4519a6,_0x241b83){const _0x7268b6=_0x16d1,_0x3831c9=_0x4519a6();while(!![]){try{const _0x1f881c=-parseInt(_0x7268b6(0x174))/0x1*(parseInt(_0x7268b6(0x190))/0x2)+parseInt(_0x7268b6(0x18a))/0x3*(parseInt(_0x7268b6(0x187))/0x4)+parseInt(_0x7268b6(0x186))/0x5+parseInt(_0x7268b6(0x17c))/0x6*(parseInt(_0x7268b6(0x170))/0x7)+parseInt(_0x7268b6(0x183))/0x8*(parseInt(_0x7268b6(0x172))/0x9)+-parseInt(_0x7268b6(0x18e))/0xa*(-parseInt(_0x7268b6(0x16d))/0xb)+-parseInt(_0x7268b6(0x178))/0xc;if(_0x1f881c===_0x241b83)break;else _0x3831c9['push'](_0x3831c9['shift']());}catch(_0x5abb0b){_0x3831c9['push'](_0x3831c9['shift']());}}}(_0x1f17,0x6b65c));import{LiveShareController as _0x5c7bbb,LiveShareStatus as _0x44351e}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0xd0d3c9,UniverInstanceType as _0x1495b9}from'@univerjs/core';import{FEnum as _0x42a60c,FUniver as _0x3a90cc}from'@univerjs/core/facade';function _0x16d1(_0x5412ed,_0x30f53c){_0x5412ed=_0x5412ed-0x16b;const _0x1f173f=_0x1f17();let _0x16d1e0=_0x1f173f[_0x5412ed];return _0x16d1e0;}function o(_0x261c09){'@babel/helpers - typeof';return o=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x27eee0){return typeof _0x27eee0;}:function(_0x4e7abd){const _0x169108=_0x16d1;return _0x4e7abd&&typeof Symbol==_0x169108(0x18c)&&_0x4e7abd['constructor']===Symbol&&_0x4e7abd!==Symbol['prototype']?'symbol':typeof _0x4e7abd;},o(_0x261c09);}function s(_0x3d3839,_0x121002){const _0xc91108=_0x16d1;if(o(_0x3d3839)!=_0xc91108(0x191)||!_0x3d3839)return _0x3d3839;var _0x58d73d=_0x3d3839[Symbol[_0xc91108(0x17f)]];if(_0x58d73d!==void 0x0){var _0x4b39e2=_0x58d73d[_0xc91108(0x16b)](_0x3d3839,_0x121002||_0xc91108(0x185));if(o(_0x4b39e2)!=_0xc91108(0x191))return _0x4b39e2;throw TypeError(_0xc91108(0x173));}return(_0x121002===_0xc91108(0x181)?String:Number)(_0x3d3839);}function c(_0x45e327){const _0x431775=_0x16d1;var _0x59ecc2=s(_0x45e327,_0x431775(0x181));return o(_0x59ecc2)==_0x431775(0x176)?_0x59ecc2:_0x59ecc2+'';}function l(_0x2daf22,_0x11ba9b,_0x1ef681){const _0x54a894=_0x16d1;return(_0x11ba9b=c(_0x11ba9b))in _0x2daf22?Object[_0x54a894(0x180)](_0x2daf22,_0x11ba9b,{'value':_0x1ef681,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2daf22[_0x11ba9b]=_0x1ef681,_0x2daf22;}var u=class extends _0x3a90cc{constructor(..._0x7b43f7){const _0x1a371f=_0x16d1;super(..._0x7b43f7),l(this,_0x1a371f(0x182),void 0x0);}[_0x178ed7(0x16c)](_0x5a53df){const _0x2908c2=_0x178ed7;this[_0x2908c2(0x182)]=_0x5a53df[_0x2908c2(0x175)](_0x5c7bbb);}['getLiveShareStatus'](){const _0x8577ac=_0x178ed7;var _0x21aebd;let _0x376cbd=this['_injector']['get'](_0xd0d3c9)[_0x8577ac(0x18d)](_0x1495b9['UNIVER_SHEET']);if(!_0x376cbd)throw Error(_0x8577ac(0x189));let _0x12782a=_0x376cbd[_0x8577ac(0x184)](),_0x427002=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x12782a);return(_0x21aebd=_0x427002==null?void 0x0:_0x427002[_0x8577ac(0x17e)]())==null?_0x44351e[_0x8577ac(0x18f)]:_0x21aebd;}['startFollowing'](){const _0x347c24=_0x178ed7;let _0x4e7174=this[_0x347c24(0x177)][_0x347c24(0x175)](_0xd0d3c9)[_0x347c24(0x18d)](_0x1495b9[_0x347c24(0x17a)]);if(!_0x4e7174)throw Error(_0x347c24(0x189));let _0x497d6b=_0x4e7174['getUnitId'](),_0x29ef16=this[_0x347c24(0x182)][_0x347c24(0x188)](_0x497d6b);if(!_0x29ef16)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x29ef16[_0x347c24(0x16f)]();}[_0x178ed7(0x16e)](){const _0x3c7305=_0x178ed7;let _0x43c8bc=this[_0x3c7305(0x177)][_0x3c7305(0x175)](_0xd0d3c9)[_0x3c7305(0x18d)](_0x1495b9[_0x3c7305(0x17a)]);if(!_0x43c8bc)throw Error('No\x20active\x20workbook\x20found.');let _0x44466d=_0x43c8bc[_0x3c7305(0x184)](),_0x59b3b7=this['_liveShareController'][_0x3c7305(0x188)](_0x44466d);if(!_0x59b3b7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x59b3b7['stopFollowing']();}[_0x178ed7(0x171)](){const _0x2ff814=_0x178ed7;let _0x473a6e=this[_0x2ff814(0x177)][_0x2ff814(0x175)](_0xd0d3c9)[_0x2ff814(0x18d)](_0x1495b9['UNIVER_SHEET']);if(!_0x473a6e)throw Error(_0x2ff814(0x189));let _0x4da858=_0x473a6e[_0x2ff814(0x184)](),_0x5275b3=this[_0x2ff814(0x182)][_0x2ff814(0x188)](_0x4da858);if(!_0x5275b3)throw Error(_0x2ff814(0x18b));_0x5275b3[_0x2ff814(0x17d)]();}['stopPresenting'](){const _0x2ad87d=_0x178ed7;let _0x3a6342=this[_0x2ad87d(0x177)]['get'](_0xd0d3c9)[_0x2ad87d(0x18d)](_0x1495b9[_0x2ad87d(0x17a)]);if(!_0x3a6342)throw Error(_0x2ad87d(0x189));let _0x1d4c0f=_0x3a6342[_0x2ad87d(0x184)](),_0x2b8b68=this['_liveShareController'][_0x2ad87d(0x188)](_0x1d4c0f);if(!_0x2b8b68)throw Error(_0x2ad87d(0x18b));_0x2b8b68[_0x2ad87d(0x179)]();}};_0x3a90cc[_0x178ed7(0x17b)](u);var d=class extends _0x42a60c{get['LiveShareStatusEnum'](){return _0x44351e;}};_0x42a60c['extend'](d);export{};function _0x1f17(){const _0x2f6c38=['26301468bGQYrJ','stopPresenting','UNIVER_SHEET','extend','114nWHtgI','tryStartPresenting','getStatus','toPrimitive','defineProperty','string','_liveShareController','8ybDtjl','getUnitId','default','2696995nePPtn','12VUZzfQ','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','732597jEOeiX','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','function','getCurrentUnitOfType','278270tRYZJK','IDLE','12GbNVXu','object','call','_initialize','143aneNwI','stopFollowing','startFollowing','72989IytVjn','startPresenting','7578999EkicRw','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','7047ikwhzv','get','symbol','_injector'];_0x1f17=function(){return _0x2f6c38;};return _0x1f17();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ef015=_0x30de;(function(_0x72572b,_0x478403){const _0x17655b=_0x30de,_0x3c0082=_0x72572b();while(!![]){try{const _0x4bb742=parseInt(_0x17655b(0x149))/0x1*(parseInt(_0x17655b(0x139))/0x2)+-parseInt(_0x17655b(0x157))/0x3*(parseInt(_0x17655b(0x125))/0x4)+-parseInt(_0x17655b(0x165))/0x5*(parseInt(_0x17655b(0x1a3))/0x6)+parseInt(_0x17655b(0x13c))/0x7*(-parseInt(_0x17655b(0x144))/0x8)+parseInt(_0x17655b(0x151))/0x9+parseInt(_0x17655b(0x147))/0xa*(-parseInt(_0x17655b(0x123))/0xb)+-parseInt(_0x17655b(0x12e))/0xc*(-parseInt(_0x17655b(0x14c))/0xd);if(_0x4bb742===_0x478403)break;else _0x3c0082['push'](_0x3c0082['shift']());}catch(_0x4e85a2){_0x3c0082['push'](_0x3c0082['shift']());}}}(_0x1f85,0xbd4dc));import{CollaborationEvent as _0xa01ab3,parseProtocolChangeset as _0x50ff4f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x578bbb,SessionStatus as _0xad06a6,UniverCollaborationClientPlugin as _0x3d2453}from'@univerjs-pro/collaboration-client';import{CommandType as _0x2cae7d,DependentOn as _0x1107e5,Disposable as _0x5788e4,DisposableCollection as _0x5ac756,ICommandService as _0x25c57d,IConfigService as _0x29aef5,IUniverInstanceService as _0x34db29,Inject as _0x1ce525,Injector as _0x20c231,Plugin as _0x5f5a10,RxDisposable as _0x27962b,UniverInstanceType as _0x17d19f,merge as _0x55222e,mergeOverrideWithDependencies as _0x478569,registerDependencies as _0x382922,toDisposable as _0x276595,touchDependencies as _0x2f37ac}from'@univerjs/core';import{InsertSheetMutation as _0x5b80de,SetWorksheetActiveOperation as _0x47d365}from'@univerjs/sheets';import{BehaviorSubject as _0x208b12,Subject as _0x21867,defer as _0x5946d8,from as _0x3c88f6,of as _0x59e3f1}from'rxjs';import{takeUntil as _0x3710c2,throttleTime as _0x45cfeb}from'rxjs/operators';import{SetScrollOperation as _0x20642b,SetZoomRatioOperation as _0x58bee4}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x2b605a,IUIPartsService as _0x377001,connectInjector as _0x30f50d,useDependency as _0x2b6432,useObservable as _0x3a4779}from'@univerjs/ui';function _0x1f85(){const _0x2abe9a=['parse','5142700fOqkQD','div','105iJFbco','setConfig','getLiveShareCoordinator','22633SIHkgH','_liveShareService','shouldShareOperation','UNIVER_SHEET','symbol','3885948syWHyo','_startLiveShareCoordinator','LIVESHARE_OPERATION','button','HEADER_MENU','set','41073eieeIQ','constructor','You\x27re\x20not\x20following\x20the\x20presenter','object','_stopFollowing','createInstance','ONLINE','unit','_status','registerInitialStateReporter','getLiveShareCoordinatorSync','get','string','event$','1260955bxAToY','LIVESHARE_TERMINATE','pipe','getInitialStates','presenting','tryStartPresenting','_collabSessionService','stopPresenting','Start\x20following','OFFLINE','defineProperty','_collabSession','unsubscribe','data','_beIdle','_unitID','NEW_CHANGESETS','length','dispose$','executeCommand','has','_init','presenter','live-share.config','call','subject','UNIVER_UNKNOWN','asObservable','type','iterator','decorate','stringify','_entities','function','send','init','_presenter','_handleNewChangeSets','mutations','unitId','You\x27re\x20following\x20the\x20presenter','status$','_injector','_commandService','_stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_commandDisposable','Stop\x20presenting','NOT_FOLLOWING','_reporters','next','_configService','startFollowing','reverse','You\x27re\x20presenting\x20the\x20document','onStarting','_handleOffline','requireSession','dispose','following','12HCYmEt','Present\x20this\x20document','params','_handleOnline','_startPresenting','complete','version','Start','getMemberID','getUnitId','stopFollowing','find','_handleTerminate','_univerInstanceService','includes','subscribe','You\x27are\x20offline.','_handleNewHost','33mcdMgp','getStatus','276CYCauI','memberID','_mountLiveShare','not-following','registerComponent','sheet','getConfig','_config','_uiPartsService','18024nLJhuS','SAME_OPERATION_SHARE_INTERVAL','offline','_fetchOperations','default','operations','add','toPrimitive','values','_sharedOperations','registerSharedOperation','25894kUBnMb','map','_startFollowing','6335kRdCaq','idle','1.0.0-alpha.6','_status$','PRESENTING','UNIVER_LIVE_SHARE_PLUGIN','_handleOperation','delete','5648KGrmfA','forEach'];_0x1f85=function(){return _0x2abe9a;};return _0x1f85();}import{Button as _0x339963,Dropdown as _0x5dc2e4,clsx as _0x3253e8}from'@univerjs/design';function _0x30de(_0x53ea53,_0xf0d425){_0x53ea53=_0x53ea53-0x122;const _0x1f850f=_0x1f85();let _0x30de06=_0x1f850f[_0x53ea53];return _0x30de06;}import{LiveShareIcon as _0x17587a}from'@univerjs/icons';import{useMemo as _0x5181e1}from'react';import{Fragment as _0x449cea,jsx as _0x47077f,jsxs as _0x10f923}from'react/jsx-runtime';function z(_0x20dfd6){'@babel/helpers - typeof';const _0x30d4d1=_0x30de;return z=typeof Symbol==_0x30d4d1(0x186)&&typeof Symbol[_0x30d4d1(0x182)]==_0x30d4d1(0x150)?function(_0x1603a3){return typeof _0x1603a3;}:function(_0x59b176){const _0xcad29=_0x30d4d1;return _0x59b176&&typeof Symbol==_0xcad29(0x186)&&_0x59b176[_0xcad29(0x158)]===Symbol&&_0x59b176!==Symbol['prototype']?_0xcad29(0x150):typeof _0x59b176;},z(_0x20dfd6);}function B(_0x56dd99,_0x290374){const _0x29ca27=_0x30de;if(z(_0x56dd99)!=_0x29ca27(0x15a)||!_0x56dd99)return _0x56dd99;var _0x472464=_0x56dd99[Symbol[_0x29ca27(0x135)]];if(_0x472464!==void 0x0){var _0x400d92=_0x472464[_0x29ca27(0x17d)](_0x56dd99,_0x290374||_0x29ca27(0x132));if(z(_0x400d92)!='object')return _0x400d92;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x290374===_0x29ca27(0x163)?String:Number)(_0x56dd99);}function V(_0x20ae5d){const _0x26105c=_0x30de;var _0x3d8e61=B(_0x20ae5d,_0x26105c(0x163));return z(_0x3d8e61)==_0x26105c(0x150)?_0x3d8e61:_0x3d8e61+'';}function H(_0x46b6f1,_0x1efa33,_0x12e3f4){const _0x1e21c0=_0x30de;return(_0x1efa33=V(_0x1efa33))in _0x46b6f1?Object[_0x1e21c0(0x16f)](_0x46b6f1,_0x1efa33,{'value':_0x12e3f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46b6f1[_0x1efa33]=_0x12e3f4,_0x46b6f1;}var U=class extends _0x5788e4{constructor(..._0x47dfaf){const _0xdd42f2=_0x30de;super(..._0x47dfaf),H(this,_0xdd42f2(0x137),new Set()),H(this,_0xdd42f2(0x198),new Set());}['registerSharedOperation'](_0x72d19d){const _0x227739=_0x30de;return this['_sharedOperations'][_0x227739(0x134)](_0x72d19d),_0x276595(()=>this['_sharedOperations']['delete'](_0x72d19d));}[_0x1ef015(0x160)](_0x49b534){const _0x1afd96=_0x1ef015;return this[_0x1afd96(0x198)]['add'](_0x49b534),_0x276595(()=>this[_0x1afd96(0x198)][_0x1afd96(0x143)](_0x49b534));}[_0x1ef015(0x14e)](_0x5e4537){const _0x747cb7=_0x1ef015;return this[_0x747cb7(0x137)][_0x747cb7(0x179)](_0x5e4537);}['getInitialStates'](_0x522e73){const _0x3c3a27=_0x1ef015;return Array['from'](this['_reporters'])[_0x3c3a27(0x13a)](_0x47ab2b=>_0x47ab2b(_0x522e73));}};function W(_0x225faf,_0xcd6bc){return function(_0x2381bf,_0x24c75b){_0xcd6bc(_0x2381bf,_0x24c75b,_0x225faf);};}function G(_0x537cf3,_0x36665c,_0x228390,_0x5bed31){const _0x3b7e37=_0x1ef015;var _0xa129c7=arguments[_0x3b7e37(0x176)],_0x31b474=_0xa129c7<0x3?_0x36665c:_0x5bed31===null?_0x5bed31=Object['getOwnPropertyDescriptor'](_0x36665c,_0x228390):_0x5bed31,_0x22ef93;if(typeof Reflect==_0x3b7e37(0x15a)&&typeof Reflect[_0x3b7e37(0x183)]=='function')_0x31b474=Reflect[_0x3b7e37(0x183)](_0x537cf3,_0x36665c,_0x228390,_0x5bed31);else{for(var _0x322acc=_0x537cf3[_0x3b7e37(0x176)]-0x1;_0x322acc>=0x0;_0x322acc--)(_0x22ef93=_0x537cf3[_0x322acc])&&(_0x31b474=(_0xa129c7<0x3?_0x22ef93(_0x31b474):_0xa129c7>0x3?_0x22ef93(_0x36665c,_0x228390,_0x31b474):_0x22ef93(_0x36665c,_0x228390))||_0x31b474);}return _0xa129c7>0x3&&_0x31b474&&Object['defineProperty'](_0x36665c,_0x228390,_0x31b474),_0x31b474;}let K=class extends _0x27962b{constructor(_0x5d2bd6,_0x5e6027,_0x455680){const _0x243f69=_0x1ef015;super(),this['_univerInstanceService']=_0x5d2bd6,this[_0x243f69(0x18f)]=_0x5e6027,this['_collabSessionService']=_0x455680,H(this,'_entities',new Map()),this['_init']();}async[_0x1ef015(0x14b)](_0x480162){const _0x4e1a4f=_0x1ef015;return this[_0x4e1a4f(0x185)][_0x4e1a4f(0x179)](_0x480162)||await this[_0x4e1a4f(0x152)](_0x480162),this[_0x4e1a4f(0x185)][_0x4e1a4f(0x162)](_0x480162);}[_0x1ef015(0x161)](_0x3b20f9){const _0x920fce=_0x1ef015;var _0x3edde8;return(_0x3edde8=this[_0x920fce(0x185)]['get'](_0x3b20f9))==null?null:_0x3edde8;}['_init'](){const _0x2c2c34=_0x1ef015;this[_0x2c2c34(0x1b0)]['getTypeOfUnitAdded$'](_0x17d19f[_0x2c2c34(0x14f)])[_0x2c2c34(0x167)](_0x3710c2(this[_0x2c2c34(0x177)]))['subscribe'](async _0x2e6159=>{const _0x505bb3=_0x2c2c34;let _0x19dbfa=_0x2e6159[_0x505bb3(0x15e)][_0x505bb3(0x1ac)]();this[_0x505bb3(0x185)][_0x505bb3(0x179)](_0x19dbfa)||this[_0x505bb3(0x152)](_0x19dbfa);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x17d19f[_0x2c2c34(0x14f)])['pipe'](_0x3710c2(this[_0x2c2c34(0x177)]))[_0x2c2c34(0x1b2)](_0x84b717=>{const _0x1897dd=_0x2c2c34;let _0x51124e=_0x84b717[_0x1897dd(0x1ac)](),_0x3e7566=this[_0x1897dd(0x185)][_0x1897dd(0x162)](_0x51124e);_0x3e7566==null||_0x3e7566[_0x1897dd(0x1a1)]();});}async[_0x1ef015(0x152)](_0x4afddf){const _0x19a544=_0x1ef015;let _0x288085=await this[_0x19a544(0x16b)][_0x19a544(0x1a0)](_0x4afddf),_0x12bcf7=this['_injector'][_0x19a544(0x15c)](J,_0x4afddf,_0x288085);return _0x12bcf7[_0x19a544(0x188)](),this[_0x19a544(0x185)][_0x19a544(0x156)](_0x4afddf,_0x12bcf7),_0x12bcf7;}};K=G([W(0x0,_0x34db29),W(0x1,_0x1ce525(_0x20c231)),W(0x2,_0x1ce525(_0x578bbb))],K);let q=function(_0x1283e9){const _0xe3b582=_0x1ef015;return _0x1283e9['OFFLINE']=_0xe3b582(0x130),_0x1283e9['IDLE']=_0xe3b582(0x13d),_0x1283e9['FOLLOWING']=_0xe3b582(0x1a2),_0x1283e9[_0xe3b582(0x197)]=_0xe3b582(0x128),_0x1283e9[_0xe3b582(0x140)]=_0xe3b582(0x169),_0x1283e9;}({}),J=class extends _0x27962b{get['_status'](){const _0x287847=_0x1ef015;return this[_0x287847(0x13f)]['getValue']();}constructor(_0x324a1c,_0x4d1d5c,_0x566a18,_0x2ba8bf,_0x20926c){const _0x2e4046=_0x1ef015;super(),this[_0x2e4046(0x174)]=_0x324a1c,this[_0x2e4046(0x170)]=_0x4d1d5c,this[_0x2e4046(0x19a)]=_0x566a18,this[_0x2e4046(0x14d)]=_0x2ba8bf,this['_commandService']=_0x20926c,H(this,_0x2e4046(0x13f),new _0x208b12(_0x2e4046(0x13d))),H(this,'status$',this[_0x2e4046(0x13f)][_0x2e4046(0x180)]()),H(this,'_init',!0x1),H(this,_0x2e4046(0x195),null),H(this,_0x2e4046(0x189),null);}['dispose'](){const _0x28999d=_0x1ef015;var _0x15c1c5;(_0x15c1c5=this['_commandDisposable'])==null||_0x15c1c5[_0x28999d(0x1a1)](),this[_0x28999d(0x13f)][_0x28999d(0x199)]('idle'),this['_status$'][_0x28999d(0x1a8)]();}[_0x1ef015(0x124)](){const _0x287108=_0x1ef015;return this[_0x287108(0x15f)];}[_0x1ef015(0x188)](){const _0x29f5a0=_0x1ef015;this[_0x29f5a0(0x17a)]||(this[_0x29f5a0(0x17a)]=!0x0,this[_0x29f5a0(0x170)]['sessionStatus$'][_0x29f5a0(0x167)](_0x3710c2(this['dispose$']))[_0x29f5a0(0x1b2)](_0xc771bf=>{const _0x5bd628=_0x29f5a0;switch(_0xc771bf){case _0xad06a6[_0x5bd628(0x16e)]:this[_0x5bd628(0x19f)]();break;case _0xad06a6[_0x5bd628(0x15d)]:this[_0x5bd628(0x1a6)]();break;default:}}),this['_collabSession'][_0x29f5a0(0x164)][_0x29f5a0(0x167)](_0x3710c2(this[_0x29f5a0(0x177)]))[_0x29f5a0(0x1b2)](_0x1952af=>{const _0x50a661=_0x29f5a0;let {eventID:_0x4a1c80}=_0x1952af;switch(_0x4a1c80){case _0xa01ab3['LIVESHARE_NEW_HOST']:this[_0x50a661(0x122)](_0x1952af);break;case _0xa01ab3[_0x50a661(0x153)]:this['_handleOperation'](_0x1952af);break;case _0xa01ab3['LIVESHARE_TERMINATE']:this[_0x50a661(0x1af)]();break;case _0xa01ab3[_0x50a661(0x175)]:this[_0x50a661(0x18a)](_0x1952af);break;default:}}));}[_0x1ef015(0x16a)](){const _0xaf4ef2=_0x1ef015;this[_0xaf4ef2(0x170)][_0xaf4ef2(0x187)]({'eventID':_0xa01ab3['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0xaf4ef2(0x1ab)]()}},this[_0xaf4ef2(0x174)]);}[_0x1ef015(0x16c)](){const _0x31213b=_0x1ef015;this[_0x31213b(0x15f)]===_0x31213b(0x169)&&(this[_0x31213b(0x13f)]['next']('idle'),this[_0x31213b(0x170)]['send']({'eventID':_0xa01ab3[_0x31213b(0x166)],'data':{'unitID':this[_0x31213b(0x174)]}},this[_0x31213b(0x174)]));}[_0x1ef015(0x19b)](){const _0x14e005=_0x1ef015;this[_0x14e005(0x15f)]===_0x14e005(0x128)&&(this[_0x14e005(0x13f)]['next']('following'),this['_startFollowing']());}[_0x1ef015(0x1ad)](){const _0x2ad9f=_0x1ef015;this['_status']===_0x2ad9f(0x1a2)&&this[_0x2ad9f(0x15b)]();}['_handleNewHost'](_0x1a75af){const _0x1cb8ae=_0x1ef015;let {presenter:_0x18f0e5}=_0x1a75af[_0x1cb8ae(0x172)],_0x5034cd=this['_collabSession'][_0x1cb8ae(0x1ab)]();this[_0x1cb8ae(0x189)]=_0x18f0e5,_0x18f0e5===_0x5034cd?(this['_stopFollowing'](),this[_0x1cb8ae(0x1a7)]()):this[_0x1cb8ae(0x15f)]!==_0x1cb8ae(0x128)&&(this[_0x1cb8ae(0x191)](),this[_0x1cb8ae(0x13b)]());}[_0x1ef015(0x131)](){const _0x4811fd=_0x1ef015;let _0x337ee4={'eventID':_0xa01ab3['LIVESHARE_FETCH_OPERATIONS']};this[_0x4811fd(0x170)]['send'](_0x337ee4,this['_unitID']);}['_handleTerminate'](){const _0x5c82f3=_0x1ef015;this[_0x5c82f3(0x189)]=null,this[_0x5c82f3(0x15f)]!==_0x5c82f3(0x169)&&this[_0x5c82f3(0x173)]();}[_0x1ef015(0x18a)](_0x33124d){const _0x414621=_0x1ef015;if(this[_0x414621(0x15f)]===_0x414621(0x1a2)&&this[_0x414621(0x189)]===_0x33124d[_0x414621(0x172)][_0x414621(0x126)]){let _0x57423f=_0x50ff4f(_0x33124d[_0x414621(0x172)])[_0x414621(0x18b)][_0x414621(0x19c)]()[_0x414621(0x1ae)](_0x3f9b32=>_0x3f9b32['id']===_0x5b80de['id']);if(_0x57423f){let _0x256593=_0x57423f[_0x414621(0x1a5)][_0x414621(0x18c)],_0x4fc10c=_0x57423f['params'][_0x414621(0x12a)]['id'];setTimeout(()=>{const _0x5a6c99=_0x414621;this['_commandService'][_0x5a6c99(0x178)](_0x47d365['id'],{'unitId':_0x256593,'subUnitId':_0x4fc10c},{'fromCollab':!0x0});});}}}[_0x1ef015(0x1a7)](){const _0x3ac4b0=_0x1ef015;var _0x22ff72;(_0x22ff72=this['_commandDisposable'])==null||_0x22ff72[_0x3ac4b0(0x1a1)](),this['_status$'][_0x3ac4b0(0x199)](_0x3ac4b0(0x169));let _0x5b2ebf=new Map(),_0xf8313b=this[_0x3ac4b0(0x195)]=new _0x5ac756();_0xf8313b[_0x3ac4b0(0x134)](_0x276595(()=>{const _0x2e5f10=_0x3ac4b0;_0x5b2ebf[_0x2e5f10(0x145)](({subject:_0x124386,subscription:_0x4ca953})=>{const _0x248b95=_0x2e5f10;_0x4ca953[_0x248b95(0x171)](),_0x124386[_0x248b95(0x1a8)]();}),_0x5b2ebf['clear']();})),_0xf8313b[_0x3ac4b0(0x134)](this[_0x3ac4b0(0x190)]['onCommandExecuted'](_0x4087c6=>{const _0xeecaff=_0x3ac4b0;if(_0x4087c6[_0xeecaff(0x181)]!==_0x2cae7d[_0xeecaff(0x194)]||!this[_0xeecaff(0x14d)][_0xeecaff(0x14e)](_0x4087c6['id']))return;let {id:_0x357fde}=_0x4087c6,_0x10013b;if(_0x5b2ebf[_0xeecaff(0x179)](_0x357fde))_0x10013b=_0x5b2ebf[_0xeecaff(0x162)](_0x357fde)[_0xeecaff(0x17e)];else{var _0x2a90d9;_0x10013b=new _0x21867();let _0x3e7380=_0x10013b[_0xeecaff(0x167)](_0x45cfeb((_0x2a90d9=this['_configService'][_0xeecaff(0x12b)](_0xeecaff(0x12f)))==null?0xc8:_0x2a90d9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xeecaff(0x1b2)](_0x599dfb=>{const _0x24393b=_0xeecaff;this[_0x24393b(0x170)][_0x24393b(0x187)]({'eventID':_0xa01ab3[_0x24393b(0x153)],'data':{'unitID':this[_0x24393b(0x174)],'operations':{[_0x599dfb['id']]:{'id':_0x599dfb['id'],'params':JSON[_0x24393b(0x184)](_0x599dfb[_0x24393b(0x1a5)])}}}},this['_unitID']);});_0x5b2ebf[_0xeecaff(0x156)](_0x357fde,{'subject':_0x10013b,'subscription':_0x3e7380});}_0x10013b['next'](_0x4087c6);})),this[_0x3ac4b0(0x14d)][_0x3ac4b0(0x168)](this[_0x3ac4b0(0x174)])[_0x3ac4b0(0x145)](_0x12d82b=>this[_0x3ac4b0(0x170)]['send']({'eventID':_0xa01ab3[_0x3ac4b0(0x153)],'data':{'unitID':this[_0x3ac4b0(0x174)],'operations':{[_0x12d82b['id']]:{'id':_0x12d82b['id'],'params':JSON[_0x3ac4b0(0x184)](_0x12d82b['params'])}}}},this[_0x3ac4b0(0x174)]));}[_0x1ef015(0x191)](){const _0x3cab21=_0x1ef015;var _0x6d4bd5;this[_0x3cab21(0x13f)][_0x3cab21(0x199)](_0x3cab21(0x13d)),(_0x6d4bd5=this[_0x3cab21(0x195)])==null||_0x6d4bd5['dispose'](),this['_commandDisposable']=null;}[_0x1ef015(0x13b)](){const _0x593cc1=_0x1ef015;var _0x578da3;(_0x578da3=this[_0x593cc1(0x195)])==null||_0x578da3[_0x593cc1(0x1a1)](),this[_0x593cc1(0x13f)][_0x593cc1(0x199)](_0x593cc1(0x1a2));}[_0x1ef015(0x173)](){const _0x22c3e0=_0x1ef015;var _0x59877b;this[_0x22c3e0(0x13f)][_0x22c3e0(0x199)](_0x22c3e0(0x13d)),(_0x59877b=this[_0x22c3e0(0x195)])==null||_0x59877b[_0x22c3e0(0x1a1)](),this[_0x22c3e0(0x195)]=null;}[_0x1ef015(0x15b)](){const _0x204da6=_0x1ef015;var _0x1b032c;this[_0x204da6(0x13f)][_0x204da6(0x199)](_0x204da6(0x128)),(_0x1b032c=this[_0x204da6(0x195)])==null||_0x1b032c['dispose']();}[_0x1ef015(0x142)](_0x170c63){const _0x3797f1=_0x1ef015;if([_0x3797f1(0x169),_0x3797f1(0x128),'offline'][_0x3797f1(0x1b1)](this[_0x3797f1(0x15f)])||!_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x17b)]||_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x17b)]===this[_0x3797f1(0x170)]['getMemberID']())return;this['_status']===_0x3797f1(0x13d)&&this[_0x3797f1(0x13b)]();let _0x572957=_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x133)];Object[_0x3797f1(0x136)](_0x572957)[_0x3797f1(0x145)](_0x500c64=>{const _0x30d1c5=_0x3797f1;this['_commandService'][_0x30d1c5(0x178)](_0x500c64['id'],_0x500c64[_0x30d1c5(0x1a5)]?JSON[_0x30d1c5(0x146)](_0x500c64[_0x30d1c5(0x1a5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1e26f0=_0x1ef015;var _0x1e54a4;this['_status$'][_0x1e26f0(0x199)](_0x1e26f0(0x130)),(_0x1e54a4=this[_0x1e26f0(0x195)])==null||_0x1e54a4[_0x1e26f0(0x1a1)]();}['_handleOnline'](){const _0x357b30=_0x1ef015;this[_0x357b30(0x13f)][_0x357b30(0x199)](_0x357b30(0x13d)),this[_0x357b30(0x131)]();}};J=G([W(0x2,_0x29aef5),W(0x3,_0x1ce525(U)),W(0x4,_0x25c57d)],J);var se='@univerjs-pro/live-share',ce=_0x1ef015(0x13e);const Y={};let X=class extends _0x5788e4{constructor(_0x351318){const _0x56cfa7=_0x1ef015;super(),this[_0x56cfa7(0x14d)]=_0x351318,this[_0x56cfa7(0x17a)]();}[_0x1ef015(0x17a)](){const _0x481db2=_0x1ef015;[_0x58bee4['id'],_0x20642b['id'],_0x47d365['id']][_0x481db2(0x145)](_0x2beae3=>{const _0x511b59=_0x481db2;this['disposeWithMe'](this['_liveShareService'][_0x511b59(0x138)](_0x2beae3));});}};X=G([W(0x0,_0x1ce525(U))],X);function Z(){const _0x256493=_0x1ef015;let _0x5acfe0=_0x2b6432(K),_0x287e2a=_0x2b6432(_0x34db29),_0x5d5d3a=_0x3a4779(()=>_0x287e2a['getCurrentTypeOfUnit$'](_0x17d19f[_0x256493(0x14f)]),void 0x0,!0x1,[]),_0x878fdb=_0x3a4779(_0x5181e1(()=>_0x5d5d3a?_0x5946d8(()=>_0x3c88f6(_0x5acfe0[_0x256493(0x14b)](_0x5d5d3a[_0x256493(0x1ac)]()))):_0x59e3f1(null),[_0x5d5d3a,_0x5acfe0]),null),_0x3f90dd=_0x3a4779(_0x878fdb?()=>_0x878fdb[_0x256493(0x18e)]:null,_0x256493(0x13d),!0x1,[_0x878fdb]);return _0x878fdb?_0x47077f(_0x5dc2e4,{'align':'end','disabled':_0x3f90dd===_0x256493(0x130),'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':_0x47077f(le,{'status':_0x3f90dd,'coordinator':_0x878fdb}),'children':_0x47077f('button',{'className':_0x3253e8(_0x256493(0x193),{'univer-cursor-not-allowed':_0x3f90dd===_0x256493(0x130),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f90dd!=='offline'}),'type':_0x256493(0x154),'children':_0x47077f(_0x17587a,{})})}):null;}function le(_0x5906ff){const _0x3f983b=_0x1ef015;let {status:_0x14ed4c,coordinator:_0x72af8c}=_0x5906ff;switch(_0x14ed4c){case'idle':return _0x47077f(ue,{'coordinator':_0x72af8c});case _0x3f983b(0x1a2):return _0x47077f(de,{'coordinator':_0x72af8c});case _0x3f983b(0x128):return _0x47077f(fe,{'coordinator':_0x72af8c});case'offline':return _0x47077f(me,{});case'presenting':return _0x47077f(pe,{'coordinator':_0x72af8c});default:return null;}}function ue(_0x231f58){const _0x4d9702=_0x1ef015;let {coordinator:_0x4380e6}=_0x231f58;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x4d9702(0x148),{'className':_0x4d9702(0x192),'children':_0x4d9702(0x1a4)}),_0x47077f(_0x339963,{'onClick':()=>_0x4380e6['tryStartPresenting'](),'children':_0x4d9702(0x1aa)})]});}function de(_0x5195df){const _0x40089c=_0x1ef015;let {coordinator:_0x57877b}=_0x5195df;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x40089c(0x148),{'className':_0x40089c(0x192),'children':_0x40089c(0x18d)}),_0x47077f(_0x339963,{'onClick':()=>_0x57877b['stopFollowing'](),'children':'Stop\x20following'})]});}function fe(_0x4fc816){const _0x4b419b=_0x1ef015;let {coordinator:_0x32c381}=_0x4fc816;return _0x10f923(_0x449cea,{'children':[_0x47077f('div',{'className':_0x4b419b(0x192),'children':_0x4b419b(0x159)}),_0x47077f(_0x339963,{'variant':'text','onClick':()=>_0x32c381[_0x4b419b(0x19b)](),'children':_0x4b419b(0x16d)})]});}function pe(_0x5a53ce){const _0x235e42=_0x1ef015;let {coordinator:_0x27c98b}=_0x5a53ce;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x235e42(0x148),{'className':_0x235e42(0x192),'children':_0x235e42(0x19d)}),_0x47077f(_0x339963,{'variant':_0x235e42(0x132),'onClick':()=>_0x27c98b[_0x235e42(0x16c)](),'children':_0x235e42(0x196)})]});}function me(){const _0x2cdd7a=_0x1ef015;return _0x47077f(_0x449cea,{'children':_0x2cdd7a(0x1b3)});}let Q=class extends _0x5788e4{constructor(_0x4801f5,_0x46114d){const _0x127afe=_0x1ef015;super(),this[_0x127afe(0x18f)]=_0x4801f5,this[_0x127afe(0x12d)]=_0x46114d,this[_0x127afe(0x127)]();}[_0x1ef015(0x127)](){const _0xae24d8=_0x1ef015;this['disposeWithMe'](this[_0xae24d8(0x12d)][_0xae24d8(0x129)](_0x2b605a[_0xae24d8(0x155)],()=>_0x30f50d(Z,this[_0xae24d8(0x18f)])));}};Q=G([W(0x0,_0x1ce525(_0x20c231)),W(0x1,_0x377001)],Q);let $=class extends _0x5f5a10{constructor(_0x34ab0f=Y,_0x29d04c,_0xc623df){const _0x3e9bd9=_0x1ef015;super(),this[_0x3e9bd9(0x12c)]=_0x34ab0f,this[_0x3e9bd9(0x18f)]=_0x29d04c,this[_0x3e9bd9(0x19a)]=_0xc623df;let {..._0x3ebf67}=_0x55222e({},Y,this[_0x3e9bd9(0x12c)]);this[_0x3e9bd9(0x19a)][_0x3e9bd9(0x14a)](_0x3e9bd9(0x17c),_0x3ebf67);}[_0x1ef015(0x19e)](){const _0x14e0e0=_0x1ef015;_0x382922(this[_0x14e0e0(0x18f)],_0x478569([[U],[K],[X],[Q]],this[_0x14e0e0(0x12c)]['override'])),_0x2f37ac(this[_0x14e0e0(0x18f)],[[X]]);}['onRendered'](){const _0x29fe1f=_0x1ef015;_0x2f37ac(this[_0x29fe1f(0x18f)],[[Q]]);}};H($,'type',_0x17d19f[_0x1ef015(0x17f)]),H($,'pluginName',_0x1ef015(0x141)),H($,'packageName',se),H($,_0x1ef015(0x1a9),ce),$=G([_0x1107e5(_0x3d2453),W(0x1,_0x1ce525(_0x20c231)),W(0x2,_0x29aef5)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0xcd3c43=_0x29fa;(function(_0x40ac36,_0x1da1a9){const _0x5b52eb=_0x29fa,_0x1bba4d=_0x40ac36();while(!![]){try{const _0x19c2cc=parseInt(_0x5b52eb(0x145))/0x1+-parseInt(_0x5b52eb(0x150))/0x2+-parseInt(_0x5b52eb(0x132))/0x3*(parseInt(_0x5b52eb(0x17c))/0x4)+parseInt(_0x5b52eb(0x102))/0x5+parseInt(_0x5b52eb(0x11b))/0x6+parseInt(_0x5b52eb(0x138))/0x7+-parseInt(_0x5b52eb(0x175))/0x8;if(_0x19c2cc===_0x1da1a9)break;else _0x1bba4d['push'](_0x1bba4d['shift']());}catch(_0x151428){_0x1bba4d['push'](_0x1bba4d['shift']());}}}(_0x4350,0x4c64f));import{CollaborationEvent as _0x3756a6,parseProtocolChangeset as _0x540c5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x598ce3,SessionStatus as _0x4d69f8,UniverCollaborationClientPlugin as _0x337bb8}from'@univerjs-pro/collaboration-client';import{CommandType as _0x370a98,DependentOn as _0x3f835d,Disposable as _0x3d4065,DisposableCollection as _0x1d1071,ICommandService as _0x2aa954,IConfigService as _0x13ab7e,IUniverInstanceService as _0x5ab737,Inject as _0x130c38,Injector as _0x189051,Plugin as _0x5f36ae,RxDisposable as _0x1a82c3,UniverInstanceType as _0x3f510f,merge as _0x3df356,mergeOverrideWithDependencies as _0x1f0e7f,registerDependencies as _0x24986b,toDisposable as _0xf8e6d4,touchDependencies as _0x1c595d}from'@univerjs/core';import{InsertSheetMutation as _0x39f5b2,SetWorksheetActiveOperation as _0x2b0483}from'@univerjs/sheets';import{BehaviorSubject as _0x23f9ae,Subject as _0x20c350,defer as _0x4386d9,from as _0xa7f912,of as _0x363ac9}from'rxjs';import{takeUntil as _0x223cee,throttleTime as _0x364328}from'rxjs/operators';import{SetScrollOperation as _0x5ae29f,SetZoomRatioOperation as _0x4bc340}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x72c6df,IUIPartsService as _0x3d33a9,connectInjector as _0x33a9bb,useDependency as _0x361196,useObservable as _0x313630}from'@univerjs/ui';import{Button as _0x5b7c15,Dropdown as _0x5f2dd7,clsx as _0x1b4e86}from'@univerjs/design';import{LiveShareIcon as _0xbe8107}from'@univerjs/icons';function _0x29fa(_0x1d5906,_0xf05a33){_0x1d5906=_0x1d5906-0xed;const _0x435077=_0x4350();let _0x29fa14=_0x435077[_0x1d5906];return _0x29fa14;}import{useMemo as _0x1c5235}from'react';import{Fragment as _0x114c30,jsx as _0x76736e,jsxs as _0x46d651}from'react/jsx-runtime';function z(_0x18187e){'@babel/helpers - typeof';const _0x53ca80=_0x29fa;return z=typeof Symbol=='function'&&typeof Symbol[_0x53ca80(0xf4)]==_0x53ca80(0x169)?function(_0x5dd149){return typeof _0x5dd149;}:function(_0x1fa963){const _0x1875b7=_0x53ca80;return _0x1fa963&&typeof Symbol=='function'&&_0x1fa963[_0x1875b7(0xf0)]===Symbol&&_0x1fa963!==Symbol['prototype']?'symbol':typeof _0x1fa963;},z(_0x18187e);}function B(_0x1ad699,_0x3079ff){const _0x30cb2b=_0x29fa;if(z(_0x1ad699)!='object'||!_0x1ad699)return _0x1ad699;var _0x1b3e85=_0x1ad699[Symbol[_0x30cb2b(0x127)]];if(_0x1b3e85!==void 0x0){var _0x17039d=_0x1b3e85[_0x30cb2b(0x119)](_0x1ad699,_0x3079ff||_0x30cb2b(0x105));if(z(_0x17039d)!=_0x30cb2b(0x12c))return _0x17039d;throw TypeError(_0x30cb2b(0x135));}return(_0x3079ff===_0x30cb2b(0x134)?String:Number)(_0x1ad699);}function V(_0x44e39d){const _0x3b0218=_0x29fa;var _0x400d5b=B(_0x44e39d,_0x3b0218(0x134));return z(_0x400d5b)==_0x3b0218(0x169)?_0x400d5b:_0x400d5b+'';}function H(_0x3a9b8b,_0x117851,_0x334320){const _0xed25aa=_0x29fa;return(_0x117851=V(_0x117851))in _0x3a9b8b?Object[_0xed25aa(0xfa)](_0x3a9b8b,_0x117851,{'value':_0x334320,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a9b8b[_0x117851]=_0x334320,_0x3a9b8b;}var U=class extends _0x3d4065{constructor(..._0x50b86d){const _0x26b38b=_0x29fa;super(..._0x50b86d),H(this,_0x26b38b(0x164),new Set()),H(this,_0x26b38b(0x10e),new Set());}[_0xcd3c43(0x159)](_0x4b2f96){const _0x29d865=_0xcd3c43;return this['_sharedOperations']['add'](_0x4b2f96),_0xf8e6d4(()=>this[_0x29d865(0x164)][_0x29d865(0xf3)](_0x4b2f96));}['registerInitialStateReporter'](_0x23ddda){const _0x4fced5=_0xcd3c43;return this[_0x4fced5(0x10e)][_0x4fced5(0x16d)](_0x23ddda),_0xf8e6d4(()=>this[_0x4fced5(0x10e)][_0x4fced5(0xf3)](_0x23ddda));}[_0xcd3c43(0x13b)](_0x152480){const _0x2a710b=_0xcd3c43;return this[_0x2a710b(0x164)][_0x2a710b(0x10a)](_0x152480);}[_0xcd3c43(0x170)](_0x286563){const _0x1af0ab=_0xcd3c43;return Array[_0x1af0ab(0xff)](this[_0x1af0ab(0x10e)])[_0x1af0ab(0xfc)](_0x162266=>_0x162266(_0x286563));}};function W(_0x40771d,_0x104f5f){return function(_0x1532f5,_0x40affd){_0x104f5f(_0x1532f5,_0x40affd,_0x40771d);};}function _0x4350(){const _0x46ecb9=['3215368BdljUd','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','_handleOffline','UNIVER_UNKNOWN','Present\x20this\x20document','_injector','4640RwMrgG','get','_fetchOperations','_status','text','NEW_CHANGESETS','includes','_stopFollowing','constructor','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','delete','iterator','presenting','presenter','FOLLOWING','length','getLiveShareCoordinatorSync','defineProperty','dispose$','map','SAME_OPERATION_SHARE_INTERVAL','status$','from','_presenter','sheet','721190pMwIgv','params','getUnitId','default','Start','startFollowing','getOwnPropertyDescriptor','init','has','requireSession','find','set','_reporters','live-share.config','idle','_entities','forEach','_univerInstanceService','clear','LIVESHARE_FETCH_OPERATIONS','values','Start\x20following','following','call','override','2410068ZLBEGh','not-following','div','pluginName','unit','_status$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','button','_handleTerminate','end','executeCommand','_unitID','toPrimitive','tryStartPresenting','_mountLiveShare','_handleNewHost','_handleNewChangeSets','object','send','_startPresenting','event$','_startLiveShareCoordinator','IDLE','1137FWdZQH','mutations','string','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_uiPartsService','unitId','1893220EbDJIF','OPERATION','version','shouldShareOperation','next','OFFLINE','Stop\x20presenting','LIVESHARE_OPERATION','_handleOnline','getLiveShareCoordinator','getCurrentTypeOfUnit$','dispose','onCommandExecuted','537041rnxhUB','_configService','@univerjs-pro/live-share','stopPresenting','_collabSessionService','You\x27re\x20presenting\x20the\x20document','disposeWithMe','getTypeOfUnitDisposed$','subject','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','397890TLXqoa','reverse','_liveShareService','_stopPresenting','getStatus','asObservable','data','offline','1.0.0-alpha.7','registerSharedOperation','getTypeOfUnitAdded$','decorate','subscribe','pipe','_commandDisposable','_commandService','onRendered','_init','_handleOperation','LIVESHARE_NEW_HOST','_sharedOperations','sessionStatus$','HEADER_MENU','stringify','You\x27are\x20offline.','symbol','_startFollowing','packageName','You\x27re\x20not\x20following\x20the\x20presenter','add','_config','ONLINE','getInitialStates','Stop\x20following','_collabSession','UNIVER_SHEET','stopFollowing'];_0x4350=function(){return _0x46ecb9;};return _0x4350();}function G(_0x44d994,_0x4e4905,_0x260325,_0x1e3fd6){const _0x340b73=_0xcd3c43;var _0x5a0c03=arguments['length'],_0xcb171e=_0x5a0c03<0x3?_0x4e4905:_0x1e3fd6===null?_0x1e3fd6=Object[_0x340b73(0x108)](_0x4e4905,_0x260325):_0x1e3fd6,_0x230b64;if(typeof Reflect==_0x340b73(0x12c)&&typeof Reflect[_0x340b73(0x15b)]=='function')_0xcb171e=Reflect[_0x340b73(0x15b)](_0x44d994,_0x4e4905,_0x260325,_0x1e3fd6);else{for(var _0xd913b=_0x44d994[_0x340b73(0xf8)]-0x1;_0xd913b>=0x0;_0xd913b--)(_0x230b64=_0x44d994[_0xd913b])&&(_0xcb171e=(_0x5a0c03<0x3?_0x230b64(_0xcb171e):_0x5a0c03>0x3?_0x230b64(_0x4e4905,_0x260325,_0xcb171e):_0x230b64(_0x4e4905,_0x260325))||_0xcb171e);}return _0x5a0c03>0x3&&_0xcb171e&&Object['defineProperty'](_0x4e4905,_0x260325,_0xcb171e),_0xcb171e;}let K=class extends _0x1a82c3{constructor(_0x66f1cd,_0x6a38c6,_0x4507c5){const _0x11f408=_0xcd3c43;super(),this[_0x11f408(0x113)]=_0x66f1cd,this[_0x11f408(0x17b)]=_0x6a38c6,this[_0x11f408(0x149)]=_0x4507c5,H(this,_0x11f408(0x111),new Map()),this[_0x11f408(0x161)]();}async['getLiveShareCoordinator'](_0x9ec3df){const _0x40bba8=_0xcd3c43;return this[_0x40bba8(0x111)][_0x40bba8(0x10a)](_0x9ec3df)||await this[_0x40bba8(0x130)](_0x9ec3df),this[_0x40bba8(0x111)]['get'](_0x9ec3df);}[_0xcd3c43(0xf9)](_0x1b69ca){const _0x2a7f29=_0xcd3c43;var _0x35d8d8;return(_0x35d8d8=this[_0x2a7f29(0x111)][_0x2a7f29(0x17d)](_0x1b69ca))==null?null:_0x35d8d8;}[_0xcd3c43(0x161)](){const _0x394fc1=_0xcd3c43;this[_0x394fc1(0x113)][_0x394fc1(0x15a)](_0x3f510f[_0x394fc1(0x173)])[_0x394fc1(0x15d)](_0x223cee(this[_0x394fc1(0xfb)]))[_0x394fc1(0x15c)](async _0x1b0875=>{const _0x40f879=_0x394fc1;let _0x2ee398=_0x1b0875[_0x40f879(0x11f)]['getUnitId']();this[_0x40f879(0x111)][_0x40f879(0x10a)](_0x2ee398)||this[_0x40f879(0x130)](_0x2ee398);}),this[_0x394fc1(0x113)][_0x394fc1(0x14c)](_0x3f510f[_0x394fc1(0x173)])['pipe'](_0x223cee(this[_0x394fc1(0xfb)]))[_0x394fc1(0x15c)](_0x18ffae=>{const _0x4c87d1=_0x394fc1;let _0x38847e=_0x18ffae[_0x4c87d1(0x104)](),_0x113e2f=this[_0x4c87d1(0x111)][_0x4c87d1(0x17d)](_0x38847e);_0x113e2f==null||_0x113e2f[_0x4c87d1(0x143)]();});}async['_startLiveShareCoordinator'](_0x535cf4){const _0x4ddb46=_0xcd3c43;let _0x322371=await this[_0x4ddb46(0x149)][_0x4ddb46(0x10b)](_0x535cf4),_0x5bef85=this[_0x4ddb46(0x17b)]['createInstance'](J,_0x535cf4,_0x322371);return _0x5bef85[_0x4ddb46(0x109)](),this[_0x4ddb46(0x111)][_0x4ddb46(0x10d)](_0x535cf4,_0x5bef85),_0x5bef85;}};K=G([W(0x0,_0x5ab737),W(0x1,_0x130c38(_0x189051)),W(0x2,_0x130c38(_0x598ce3))],K);let q=function(_0x10d8b1){const _0x347c62=_0xcd3c43;return _0x10d8b1[_0x347c62(0x13d)]=_0x347c62(0x157),_0x10d8b1[_0x347c62(0x131)]=_0x347c62(0x110),_0x10d8b1[_0x347c62(0xf7)]=_0x347c62(0x118),_0x10d8b1['NOT_FOLLOWING']=_0x347c62(0x11c),_0x10d8b1['PRESENTING']=_0x347c62(0xf5),_0x10d8b1;}({}),J=class extends _0x1a82c3{get[_0xcd3c43(0x17f)](){const _0x256e13=_0xcd3c43;return this[_0x256e13(0x120)]['getValue']();}constructor(_0x280c2a,_0x2a261b,_0x486466,_0x4b72c5,_0x56b6d7){const _0x57336e=_0xcd3c43;super(),this['_unitID']=_0x280c2a,this[_0x57336e(0x172)]=_0x2a261b,this[_0x57336e(0x146)]=_0x486466,this[_0x57336e(0x152)]=_0x4b72c5,this[_0x57336e(0x15f)]=_0x56b6d7,H(this,_0x57336e(0x120),new _0x23f9ae('idle')),H(this,_0x57336e(0xfe),this['_status$'][_0x57336e(0x155)]()),H(this,_0x57336e(0x161),!0x1),H(this,_0x57336e(0x15e),null),H(this,_0x57336e(0x100),null);}[_0xcd3c43(0x143)](){const _0x9fbe8e=_0xcd3c43;var _0x4bcc83;(_0x4bcc83=this[_0x9fbe8e(0x15e)])==null||_0x4bcc83['dispose'](),this[_0x9fbe8e(0x120)][_0x9fbe8e(0x13c)](_0x9fbe8e(0x110)),this[_0x9fbe8e(0x120)]['complete']();}[_0xcd3c43(0x154)](){const _0x2a541f=_0xcd3c43;return this[_0x2a541f(0x17f)];}['init'](){const _0x55f9e8=_0xcd3c43;this['_init']||(this[_0x55f9e8(0x161)]=!0x0,this[_0x55f9e8(0x172)][_0x55f9e8(0x165)]['pipe'](_0x223cee(this['dispose$']))[_0x55f9e8(0x15c)](_0x344196=>{const _0x598087=_0x55f9e8;switch(_0x344196){case _0x4d69f8[_0x598087(0x13d)]:this[_0x598087(0x178)]();break;case _0x4d69f8[_0x598087(0x16f)]:this[_0x598087(0x140)]();break;default:}}),this[_0x55f9e8(0x172)][_0x55f9e8(0x12f)][_0x55f9e8(0x15d)](_0x223cee(this[_0x55f9e8(0xfb)]))['subscribe'](_0x2a721a=>{const _0x316b55=_0x55f9e8;let {eventID:_0x57ce27}=_0x2a721a;switch(_0x57ce27){case _0x3756a6[_0x316b55(0x163)]:this[_0x316b55(0x12a)](_0x2a721a);break;case _0x3756a6['LIVESHARE_OPERATION']:this[_0x316b55(0x162)](_0x2a721a);break;case _0x3756a6[_0x316b55(0x177)]:this[_0x316b55(0x123)]();break;case _0x3756a6[_0x316b55(0xed)]:this[_0x316b55(0x12b)](_0x2a721a);break;default:}}));}[_0xcd3c43(0x128)](){const _0x8f65c9=_0xcd3c43;this[_0x8f65c9(0x172)][_0x8f65c9(0x12d)]({'eventID':_0x3756a6[_0x8f65c9(0x176)],'data':{'unitID':this['_unitID'],'userID':this[_0x8f65c9(0x172)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x8e4143=_0xcd3c43;this[_0x8e4143(0x17f)]==='presenting'&&(this[_0x8e4143(0x120)]['next']('idle'),this[_0x8e4143(0x172)][_0x8e4143(0x12d)]({'eventID':_0x3756a6[_0x8e4143(0x177)],'data':{'unitID':this[_0x8e4143(0x126)]}},this[_0x8e4143(0x126)]));}['startFollowing'](){const _0xe93ada=_0xcd3c43;this[_0xe93ada(0x17f)]===_0xe93ada(0x11c)&&(this[_0xe93ada(0x120)][_0xe93ada(0x13c)](_0xe93ada(0x118)),this[_0xe93ada(0x16a)]());}[_0xcd3c43(0x174)](){const _0x221bbd=_0xcd3c43;this[_0x221bbd(0x17f)]===_0x221bbd(0x118)&&this[_0x221bbd(0xef)]();}[_0xcd3c43(0x12a)](_0x1fecb4){const _0x1caadb=_0xcd3c43;let {presenter:_0x283db7}=_0x1fecb4[_0x1caadb(0x156)],_0x47fa87=this[_0x1caadb(0x172)][_0x1caadb(0x14e)]();this[_0x1caadb(0x100)]=_0x283db7,_0x283db7===_0x47fa87?(this[_0x1caadb(0xef)](),this['_startPresenting']()):this['_status']!==_0x1caadb(0x11c)&&(this[_0x1caadb(0x153)](),this[_0x1caadb(0x16a)]());}[_0xcd3c43(0x17e)](){const _0x1d0532=_0xcd3c43;let _0x11c7a4={'eventID':_0x3756a6[_0x1d0532(0x115)]};this[_0x1d0532(0x172)][_0x1d0532(0x12d)](_0x11c7a4,this[_0x1d0532(0x126)]);}[_0xcd3c43(0x123)](){const _0x5cee8f=_0xcd3c43;this[_0x5cee8f(0x100)]=null,this[_0x5cee8f(0x17f)]!=='presenting'&&this['_beIdle']();}[_0xcd3c43(0x12b)](_0x2a1f61){const _0x221cc7=_0xcd3c43;if(this['_status']===_0x221cc7(0x118)&&this[_0x221cc7(0x100)]===_0x2a1f61[_0x221cc7(0x156)]['memberID']){let _0x92cfcb=_0x540c5a(_0x2a1f61[_0x221cc7(0x156)])[_0x221cc7(0x133)][_0x221cc7(0x151)]()[_0x221cc7(0x10c)](_0xb0e452=>_0xb0e452['id']===_0x39f5b2['id']);if(_0x92cfcb){let _0x436335=_0x92cfcb[_0x221cc7(0x103)][_0x221cc7(0x137)],_0xaea137=_0x92cfcb[_0x221cc7(0x103)][_0x221cc7(0x101)]['id'];setTimeout(()=>{const _0x2cc575=_0x221cc7;this['_commandService'][_0x2cc575(0x125)](_0x2b0483['id'],{'unitId':_0x436335,'subUnitId':_0xaea137},{'fromCollab':!0x0});});}}}[_0xcd3c43(0x12e)](){const _0x3be677=_0xcd3c43;var _0x417769;(_0x417769=this[_0x3be677(0x15e)])==null||_0x417769[_0x3be677(0x143)](),this['_status$'][_0x3be677(0x13c)](_0x3be677(0xf5));let _0x523766=new Map(),_0x23660d=this[_0x3be677(0x15e)]=new _0x1d1071();_0x23660d[_0x3be677(0x16d)](_0xf8e6d4(()=>{const _0x49b5f5=_0x3be677;_0x523766['forEach'](({subject:_0x1362f0,subscription:_0x2d6066})=>{_0x2d6066['unsubscribe'](),_0x1362f0['complete']();}),_0x523766[_0x49b5f5(0x114)]();})),_0x23660d[_0x3be677(0x16d)](this[_0x3be677(0x15f)][_0x3be677(0x144)](_0x1aca2d=>{const _0x11d1a2=_0x3be677;if(_0x1aca2d['type']!==_0x370a98[_0x11d1a2(0x139)]||!this[_0x11d1a2(0x152)][_0x11d1a2(0x13b)](_0x1aca2d['id']))return;let {id:_0x3e96b3}=_0x1aca2d,_0x326ef8;if(_0x523766[_0x11d1a2(0x10a)](_0x3e96b3))_0x326ef8=_0x523766['get'](_0x3e96b3)[_0x11d1a2(0x14d)];else{var _0x52630d;_0x326ef8=new _0x20c350();let _0x3e948d=_0x326ef8['pipe'](_0x364328((_0x52630d=this[_0x11d1a2(0x146)]['getConfig'](_0x11d1a2(0xfd)))==null?0xc8:_0x52630d,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50a8ed=>{const _0x54a2ce=_0x11d1a2;this[_0x54a2ce(0x172)][_0x54a2ce(0x12d)]({'eventID':_0x3756a6[_0x54a2ce(0x13f)],'data':{'unitID':this['_unitID'],'operations':{[_0x50a8ed['id']]:{'id':_0x50a8ed['id'],'params':JSON[_0x54a2ce(0x167)](_0x50a8ed[_0x54a2ce(0x103)])}}}},this[_0x54a2ce(0x126)]);});_0x523766[_0x11d1a2(0x10d)](_0x3e96b3,{'subject':_0x326ef8,'subscription':_0x3e948d});}_0x326ef8[_0x11d1a2(0x13c)](_0x1aca2d);})),this[_0x3be677(0x152)][_0x3be677(0x170)](this['_unitID'])[_0x3be677(0x112)](_0x4af641=>this[_0x3be677(0x172)][_0x3be677(0x12d)]({'eventID':_0x3756a6[_0x3be677(0x13f)],'data':{'unitID':this[_0x3be677(0x126)],'operations':{[_0x4af641['id']]:{'id':_0x4af641['id'],'params':JSON['stringify'](_0x4af641['params'])}}}},this['_unitID']));}[_0xcd3c43(0x153)](){const _0x4d0e91=_0xcd3c43;var _0x4dba2d;this[_0x4d0e91(0x120)]['next'](_0x4d0e91(0x110)),(_0x4dba2d=this[_0x4d0e91(0x15e)])==null||_0x4dba2d[_0x4d0e91(0x143)](),this[_0x4d0e91(0x15e)]=null;}[_0xcd3c43(0x16a)](){const _0x518d3f=_0xcd3c43;var _0x352e0d;(_0x352e0d=this[_0x518d3f(0x15e)])==null||_0x352e0d['dispose'](),this[_0x518d3f(0x120)]['next']('following');}['_beIdle'](){const _0x5775b2=_0xcd3c43;var _0xf43165;this[_0x5775b2(0x120)][_0x5775b2(0x13c)](_0x5775b2(0x110)),(_0xf43165=this['_commandDisposable'])==null||_0xf43165[_0x5775b2(0x143)](),this['_commandDisposable']=null;}[_0xcd3c43(0xef)](){const _0x462fff=_0xcd3c43;var _0x151384;this[_0x462fff(0x120)]['next']('not-following'),(_0x151384=this[_0x462fff(0x15e)])==null||_0x151384[_0x462fff(0x143)]();}[_0xcd3c43(0x162)](_0x2f255a){const _0x395078=_0xcd3c43;if(['presenting',_0x395078(0x11c),'offline'][_0x395078(0xee)](this['_status'])||!_0x2f255a[_0x395078(0x156)]['presenter']||_0x2f255a[_0x395078(0x156)][_0x395078(0xf6)]===this[_0x395078(0x172)][_0x395078(0x14e)]())return;this['_status']===_0x395078(0x110)&&this[_0x395078(0x16a)]();let _0xaecd78=_0x2f255a['data']['operations'];Object[_0x395078(0x116)](_0xaecd78)['forEach'](_0x39ce5f=>{const _0xbd19df=_0x395078;this['_commandService'][_0xbd19df(0x125)](_0x39ce5f['id'],_0x39ce5f[_0xbd19df(0x103)]?JSON['parse'](_0x39ce5f['params']):null,{'fromCollab':!0x0});});}[_0xcd3c43(0x178)](){const _0x1d09c2=_0xcd3c43;var _0x23918f;this[_0x1d09c2(0x120)]['next']('offline'),(_0x23918f=this['_commandDisposable'])==null||_0x23918f['dispose']();}['_handleOnline'](){const _0x4d9e2c=_0xcd3c43;this[_0x4d9e2c(0x120)][_0x4d9e2c(0x13c)](_0x4d9e2c(0x110)),this['_fetchOperations']();}};J=G([W(0x2,_0x13ab7e),W(0x3,_0x130c38(U)),W(0x4,_0x2aa954)],J);var se=_0xcd3c43(0x147),ce=_0xcd3c43(0x158);const Y={};let X=class extends _0x3d4065{constructor(_0x18262a){super(),this['_liveShareService']=_0x18262a,this['_init']();}[_0xcd3c43(0x161)](){const _0x3f6ab9=_0xcd3c43;[_0x4bc340['id'],_0x5ae29f['id'],_0x2b0483['id']][_0x3f6ab9(0x112)](_0x12ec93=>{const _0x406c78=_0x3f6ab9;this['disposeWithMe'](this[_0x406c78(0x152)][_0x406c78(0x159)](_0x12ec93));});}};X=G([W(0x0,_0x130c38(U))],X);function Z(){const _0x2168b4=_0xcd3c43;let _0x2a469e=_0x361196(K),_0x367e57=_0x361196(_0x5ab737),_0x233cf3=_0x313630(()=>_0x367e57[_0x2168b4(0x142)](_0x3f510f[_0x2168b4(0x173)]),void 0x0,!0x1,[]),_0x5a285b=_0x313630(_0x1c5235(()=>_0x233cf3?_0x4386d9(()=>_0xa7f912(_0x2a469e[_0x2168b4(0x141)](_0x233cf3[_0x2168b4(0x104)]()))):_0x363ac9(null),[_0x233cf3,_0x2a469e]),null),_0x25f125=_0x313630(_0x5a285b?()=>_0x5a285b[_0x2168b4(0xfe)]:null,_0x2168b4(0x110),!0x1,[_0x5a285b]);return _0x5a285b?_0x76736e(_0x5f2dd7,{'align':_0x2168b4(0x124),'disabled':_0x25f125===_0x2168b4(0x157),'className':_0x2168b4(0x121),'overlay':_0x76736e(le,{'status':_0x25f125,'coordinator':_0x5a285b}),'children':_0x76736e(_0x2168b4(0x122),{'className':_0x1b4e86('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x25f125==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25f125!=='offline'}),'type':_0x2168b4(0x122),'children':_0x76736e(_0xbe8107,{})})}):null;}function le(_0x36d926){const _0x3fad99=_0xcd3c43;let {status:_0x3aaa5c,coordinator:_0xd13d33}=_0x36d926;switch(_0x3aaa5c){case _0x3fad99(0x110):return _0x76736e(ue,{'coordinator':_0xd13d33});case _0x3fad99(0x118):return _0x76736e(de,{'coordinator':_0xd13d33});case _0x3fad99(0x11c):return _0x76736e(fe,{'coordinator':_0xd13d33});case'offline':return _0x76736e(me,{});case _0x3fad99(0xf5):return _0x76736e(pe,{'coordinator':_0xd13d33});default:return null;}}function ue(_0x4fda22){const _0x55e02e=_0xcd3c43;let {coordinator:_0x153247}=_0x4fda22;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x55e02e(0x11d),{'className':_0x55e02e(0xf1),'children':_0x55e02e(0x17a)}),_0x76736e(_0x5b7c15,{'onClick':()=>_0x153247[_0x55e02e(0x128)](),'children':_0x55e02e(0x106)})]});}function de(_0x53ca40){const _0x93e357=_0xcd3c43;let {coordinator:_0x314952}=_0x53ca40;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x93e357(0x11d),{'className':_0x93e357(0xf1),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x76736e(_0x5b7c15,{'onClick':()=>_0x314952[_0x93e357(0x174)](),'children':_0x93e357(0x171)})]});}function fe(_0xaacac){const _0x5c4abf=_0xcd3c43;let {coordinator:_0x20c65f}=_0xaacac;return _0x46d651(_0x114c30,{'children':[_0x76736e('div',{'className':_0x5c4abf(0xf1),'children':_0x5c4abf(0x16c)}),_0x76736e(_0x5b7c15,{'variant':_0x5c4abf(0x180),'onClick':()=>_0x20c65f[_0x5c4abf(0x107)](),'children':_0x5c4abf(0x117)})]});}function pe(_0x1a4fb9){const _0x40d5f2=_0xcd3c43;let {coordinator:_0x50eac3}=_0x1a4fb9;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x40d5f2(0x11d),{'className':_0x40d5f2(0xf1),'children':_0x40d5f2(0x14a)}),_0x76736e(_0x5b7c15,{'variant':_0x40d5f2(0x105),'onClick':()=>_0x50eac3[_0x40d5f2(0x148)](),'children':_0x40d5f2(0x13e)})]});}function me(){const _0x237681=_0xcd3c43;return _0x76736e(_0x114c30,{'children':_0x237681(0x168)});}let Q=class extends _0x3d4065{constructor(_0x433b6c,_0xfbdfa8){const _0x875ae1=_0xcd3c43;super(),this['_injector']=_0x433b6c,this[_0x875ae1(0x136)]=_0xfbdfa8,this[_0x875ae1(0x129)]();}[_0xcd3c43(0x129)](){const _0x7dca9a=_0xcd3c43;this[_0x7dca9a(0x14b)](this[_0x7dca9a(0x136)][_0x7dca9a(0xf2)](_0x72c6df[_0x7dca9a(0x166)],()=>_0x33a9bb(Z,this[_0x7dca9a(0x17b)])));}};Q=G([W(0x0,_0x130c38(_0x189051)),W(0x1,_0x3d33a9)],Q);let $=class extends _0x5f36ae{constructor(_0x2e3f2f=Y,_0x28d45f,_0xd601ed){const _0x3760f0=_0xcd3c43;super(),this['_config']=_0x2e3f2f,this[_0x3760f0(0x17b)]=_0x28d45f,this[_0x3760f0(0x146)]=_0xd601ed;let {..._0xa29e9b}=_0x3df356({},Y,this[_0x3760f0(0x16e)]);this[_0x3760f0(0x146)]['setConfig'](_0x3760f0(0x10f),_0xa29e9b);}['onStarting'](){const _0x20903a=_0xcd3c43;_0x24986b(this['_injector'],_0x1f0e7f([[U],[K],[X],[Q]],this[_0x20903a(0x16e)][_0x20903a(0x11a)])),_0x1c595d(this[_0x20903a(0x17b)],[[X]]);}[_0xcd3c43(0x160)](){_0x1c595d(this['_injector'],[[Q]]);}};H($,'type',_0x3f510f[_0xcd3c43(0x179)]),H($,_0xcd3c43(0x11e),_0xcd3c43(0x14f)),H($,_0xcd3c43(0x16b),se),H($,_0xcd3c43(0x13a),ce),$=G([_0x3f835d(_0x337bb8),W(0x1,_0x130c38(_0x189051)),W(0x2,_0x13ab7e)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x178ed7=_0x16d1;(function(_0x4519a6,_0x241b83){const _0x7268b6=_0x16d1,_0x3831c9=_0x4519a6();while(!![]){try{const _0x1f881c=-parseInt(_0x7268b6(0x174))/0x1*(parseInt(_0x7268b6(0x190))/0x2)+parseInt(_0x7268b6(0x18a))/0x3*(parseInt(_0x7268b6(0x187))/0x4)+parseInt(_0x7268b6(0x186))/0x5+parseInt(_0x7268b6(0x17c))/0x6*(parseInt(_0x7268b6(0x170))/0x7)+parseInt(_0x7268b6(0x183))/0x8*(parseInt(_0x7268b6(0x172))/0x9)+-parseInt(_0x7268b6(0x18e))/0xa*(-parseInt(_0x7268b6(0x16d))/0xb)+-parseInt(_0x7268b6(0x178))/0xc;if(_0x1f881c===_0x241b83)break;else _0x3831c9['push'](_0x3831c9['shift']());}catch(_0x5abb0b){_0x3831c9['push'](_0x3831c9['shift']());}}}(_0x1f17,0x6b65c));import{LiveShareController as _0x5c7bbb,LiveShareStatus as _0x44351e}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0xd0d3c9,UniverInstanceType as _0x1495b9}from'@univerjs/core';import{FEnum as _0x42a60c,FUniver as _0x3a90cc}from'@univerjs/core/facade';function _0x16d1(_0x5412ed,_0x30f53c){_0x5412ed=_0x5412ed-0x16b;const _0x1f173f=_0x1f17();let _0x16d1e0=_0x1f173f[_0x5412ed];return _0x16d1e0;}function o(_0x261c09){'@babel/helpers - typeof';return o=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x27eee0){return typeof _0x27eee0;}:function(_0x4e7abd){const _0x169108=_0x16d1;return _0x4e7abd&&typeof Symbol==_0x169108(0x18c)&&_0x4e7abd['constructor']===Symbol&&_0x4e7abd!==Symbol['prototype']?'symbol':typeof _0x4e7abd;},o(_0x261c09);}function s(_0x3d3839,_0x121002){const _0xc91108=_0x16d1;if(o(_0x3d3839)!=_0xc91108(0x191)||!_0x3d3839)return _0x3d3839;var _0x58d73d=_0x3d3839[Symbol[_0xc91108(0x17f)]];if(_0x58d73d!==void 0x0){var _0x4b39e2=_0x58d73d[_0xc91108(0x16b)](_0x3d3839,_0x121002||_0xc91108(0x185));if(o(_0x4b39e2)!=_0xc91108(0x191))return _0x4b39e2;throw TypeError(_0xc91108(0x173));}return(_0x121002===_0xc91108(0x181)?String:Number)(_0x3d3839);}function c(_0x45e327){const _0x431775=_0x16d1;var _0x59ecc2=s(_0x45e327,_0x431775(0x181));return o(_0x59ecc2)==_0x431775(0x176)?_0x59ecc2:_0x59ecc2+'';}function l(_0x2daf22,_0x11ba9b,_0x1ef681){const _0x54a894=_0x16d1;return(_0x11ba9b=c(_0x11ba9b))in _0x2daf22?Object[_0x54a894(0x180)](_0x2daf22,_0x11ba9b,{'value':_0x1ef681,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2daf22[_0x11ba9b]=_0x1ef681,_0x2daf22;}var u=class extends _0x3a90cc{constructor(..._0x7b43f7){const _0x1a371f=_0x16d1;super(..._0x7b43f7),l(this,_0x1a371f(0x182),void 0x0);}[_0x178ed7(0x16c)](_0x5a53df){const _0x2908c2=_0x178ed7;this[_0x2908c2(0x182)]=_0x5a53df[_0x2908c2(0x175)](_0x5c7bbb);}['getLiveShareStatus'](){const _0x8577ac=_0x178ed7;var _0x21aebd;let _0x376cbd=this['_injector']['get'](_0xd0d3c9)[_0x8577ac(0x18d)](_0x1495b9['UNIVER_SHEET']);if(!_0x376cbd)throw Error(_0x8577ac(0x189));let _0x12782a=_0x376cbd[_0x8577ac(0x184)](),_0x427002=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x12782a);return(_0x21aebd=_0x427002==null?void 0x0:_0x427002[_0x8577ac(0x17e)]())==null?_0x44351e[_0x8577ac(0x18f)]:_0x21aebd;}['startFollowing'](){const _0x347c24=_0x178ed7;let _0x4e7174=this[_0x347c24(0x177)][_0x347c24(0x175)](_0xd0d3c9)[_0x347c24(0x18d)](_0x1495b9[_0x347c24(0x17a)]);if(!_0x4e7174)throw Error(_0x347c24(0x189));let _0x497d6b=_0x4e7174['getUnitId'](),_0x29ef16=this[_0x347c24(0x182)][_0x347c24(0x188)](_0x497d6b);if(!_0x29ef16)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x29ef16[_0x347c24(0x16f)]();}[_0x178ed7(0x16e)](){const _0x3c7305=_0x178ed7;let _0x43c8bc=this[_0x3c7305(0x177)][_0x3c7305(0x175)](_0xd0d3c9)[_0x3c7305(0x18d)](_0x1495b9[_0x3c7305(0x17a)]);if(!_0x43c8bc)throw Error('No\x20active\x20workbook\x20found.');let _0x44466d=_0x43c8bc[_0x3c7305(0x184)](),_0x59b3b7=this['_liveShareController'][_0x3c7305(0x188)](_0x44466d);if(!_0x59b3b7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x59b3b7['stopFollowing']();}[_0x178ed7(0x171)](){const _0x2ff814=_0x178ed7;let _0x473a6e=this[_0x2ff814(0x177)][_0x2ff814(0x175)](_0xd0d3c9)[_0x2ff814(0x18d)](_0x1495b9['UNIVER_SHEET']);if(!_0x473a6e)throw Error(_0x2ff814(0x189));let _0x4da858=_0x473a6e[_0x2ff814(0x184)](),_0x5275b3=this[_0x2ff814(0x182)][_0x2ff814(0x188)](_0x4da858);if(!_0x5275b3)throw Error(_0x2ff814(0x18b));_0x5275b3[_0x2ff814(0x17d)]();}['stopPresenting'](){const _0x2ad87d=_0x178ed7;let _0x3a6342=this[_0x2ad87d(0x177)]['get'](_0xd0d3c9)[_0x2ad87d(0x18d)](_0x1495b9[_0x2ad87d(0x17a)]);if(!_0x3a6342)throw Error(_0x2ad87d(0x189));let _0x1d4c0f=_0x3a6342[_0x2ad87d(0x184)](),_0x2b8b68=this['_liveShareController'][_0x2ad87d(0x188)](_0x1d4c0f);if(!_0x2b8b68)throw Error(_0x2ad87d(0x18b));_0x2b8b68[_0x2ad87d(0x179)]();}};_0x3a90cc[_0x178ed7(0x17b)](u);var d=class extends _0x42a60c{get['LiveShareStatusEnum'](){return _0x44351e;}};_0x42a60c['extend'](d);export{};function _0x1f17(){const _0x2f6c38=['26301468bGQYrJ','stopPresenting','UNIVER_SHEET','extend','114nWHtgI','tryStartPresenting','getStatus','toPrimitive','defineProperty','string','_liveShareController','8ybDtjl','getUnitId','default','2696995nePPtn','12VUZzfQ','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','732597jEOeiX','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','function','getCurrentUnitOfType','278270tRYZJK','IDLE','12GbNVXu','object','call','_initialize','143aneNwI','stopFollowing','startFollowing','72989IytVjn','startPresenting','7578999EkicRw','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','7047ikwhzv','get','symbol','_injector'];_0x1f17=function(){return _0x2f6c38;};return _0x1f17();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ef015=_0x30de;(function(_0x72572b,_0x478403){const _0x17655b=_0x30de,_0x3c0082=_0x72572b();while(!![]){try{const _0x4bb742=parseInt(_0x17655b(0x149))/0x1*(parseInt(_0x17655b(0x139))/0x2)+-parseInt(_0x17655b(0x157))/0x3*(parseInt(_0x17655b(0x125))/0x4)+-parseInt(_0x17655b(0x165))/0x5*(parseInt(_0x17655b(0x1a3))/0x6)+parseInt(_0x17655b(0x13c))/0x7*(-parseInt(_0x17655b(0x144))/0x8)+parseInt(_0x17655b(0x151))/0x9+parseInt(_0x17655b(0x147))/0xa*(-parseInt(_0x17655b(0x123))/0xb)+-parseInt(_0x17655b(0x12e))/0xc*(-parseInt(_0x17655b(0x14c))/0xd);if(_0x4bb742===_0x478403)break;else _0x3c0082['push'](_0x3c0082['shift']());}catch(_0x4e85a2){_0x3c0082['push'](_0x3c0082['shift']());}}}(_0x1f85,0xbd4dc));import{CollaborationEvent as _0xa01ab3,parseProtocolChangeset as _0x50ff4f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x578bbb,SessionStatus as _0xad06a6,UniverCollaborationClientPlugin as _0x3d2453}from'@univerjs-pro/collaboration-client';import{CommandType as _0x2cae7d,DependentOn as _0x1107e5,Disposable as _0x5788e4,DisposableCollection as _0x5ac756,ICommandService as _0x25c57d,IConfigService as _0x29aef5,IUniverInstanceService as _0x34db29,Inject as _0x1ce525,Injector as _0x20c231,Plugin as _0x5f5a10,RxDisposable as _0x27962b,UniverInstanceType as _0x17d19f,merge as _0x55222e,mergeOverrideWithDependencies as _0x478569,registerDependencies as _0x382922,toDisposable as _0x276595,touchDependencies as _0x2f37ac}from'@univerjs/core';import{InsertSheetMutation as _0x5b80de,SetWorksheetActiveOperation as _0x47d365}from'@univerjs/sheets';import{BehaviorSubject as _0x208b12,Subject as _0x21867,defer as _0x5946d8,from as _0x3c88f6,of as _0x59e3f1}from'rxjs';import{takeUntil as _0x3710c2,throttleTime as _0x45cfeb}from'rxjs/operators';import{SetScrollOperation as _0x20642b,SetZoomRatioOperation as _0x58bee4}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x2b605a,IUIPartsService as _0x377001,connectInjector as _0x30f50d,useDependency as _0x2b6432,useObservable as _0x3a4779}from'@univerjs/ui';function _0x1f85(){const _0x2abe9a=['parse','5142700fOqkQD','div','105iJFbco','setConfig','getLiveShareCoordinator','22633SIHkgH','_liveShareService','shouldShareOperation','UNIVER_SHEET','symbol','3885948syWHyo','_startLiveShareCoordinator','LIVESHARE_OPERATION','button','HEADER_MENU','set','41073eieeIQ','constructor','You\x27re\x20not\x20following\x20the\x20presenter','object','_stopFollowing','createInstance','ONLINE','unit','_status','registerInitialStateReporter','getLiveShareCoordinatorSync','get','string','event$','1260955bxAToY','LIVESHARE_TERMINATE','pipe','getInitialStates','presenting','tryStartPresenting','_collabSessionService','stopPresenting','Start\x20following','OFFLINE','defineProperty','_collabSession','unsubscribe','data','_beIdle','_unitID','NEW_CHANGESETS','length','dispose$','executeCommand','has','_init','presenter','live-share.config','call','subject','UNIVER_UNKNOWN','asObservable','type','iterator','decorate','stringify','_entities','function','send','init','_presenter','_handleNewChangeSets','mutations','unitId','You\x27re\x20following\x20the\x20presenter','status$','_injector','_commandService','_stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_commandDisposable','Stop\x20presenting','NOT_FOLLOWING','_reporters','next','_configService','startFollowing','reverse','You\x27re\x20presenting\x20the\x20document','onStarting','_handleOffline','requireSession','dispose','following','12HCYmEt','Present\x20this\x20document','params','_handleOnline','_startPresenting','complete','version','Start','getMemberID','getUnitId','stopFollowing','find','_handleTerminate','_univerInstanceService','includes','subscribe','You\x27are\x20offline.','_handleNewHost','33mcdMgp','getStatus','276CYCauI','memberID','_mountLiveShare','not-following','registerComponent','sheet','getConfig','_config','_uiPartsService','18024nLJhuS','SAME_OPERATION_SHARE_INTERVAL','offline','_fetchOperations','default','operations','add','toPrimitive','values','_sharedOperations','registerSharedOperation','25894kUBnMb','map','_startFollowing','6335kRdCaq','idle','1.0.0-alpha.6','_status$','PRESENTING','UNIVER_LIVE_SHARE_PLUGIN','_handleOperation','delete','5648KGrmfA','forEach'];_0x1f85=function(){return _0x2abe9a;};return _0x1f85();}import{Button as _0x339963,Dropdown as _0x5dc2e4,clsx as _0x3253e8}from'@univerjs/design';function _0x30de(_0x53ea53,_0xf0d425){_0x53ea53=_0x53ea53-0x122;const _0x1f850f=_0x1f85();let _0x30de06=_0x1f850f[_0x53ea53];return _0x30de06;}import{LiveShareIcon as _0x17587a}from'@univerjs/icons';import{useMemo as _0x5181e1}from'react';import{Fragment as _0x449cea,jsx as _0x47077f,jsxs as _0x10f923}from'react/jsx-runtime';function z(_0x20dfd6){'@babel/helpers - typeof';const _0x30d4d1=_0x30de;return z=typeof Symbol==_0x30d4d1(0x186)&&typeof Symbol[_0x30d4d1(0x182)]==_0x30d4d1(0x150)?function(_0x1603a3){return typeof _0x1603a3;}:function(_0x59b176){const _0xcad29=_0x30d4d1;return _0x59b176&&typeof Symbol==_0xcad29(0x186)&&_0x59b176[_0xcad29(0x158)]===Symbol&&_0x59b176!==Symbol['prototype']?_0xcad29(0x150):typeof _0x59b176;},z(_0x20dfd6);}function B(_0x56dd99,_0x290374){const _0x29ca27=_0x30de;if(z(_0x56dd99)!=_0x29ca27(0x15a)||!_0x56dd99)return _0x56dd99;var _0x472464=_0x56dd99[Symbol[_0x29ca27(0x135)]];if(_0x472464!==void 0x0){var _0x400d92=_0x472464[_0x29ca27(0x17d)](_0x56dd99,_0x290374||_0x29ca27(0x132));if(z(_0x400d92)!='object')return _0x400d92;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x290374===_0x29ca27(0x163)?String:Number)(_0x56dd99);}function V(_0x20ae5d){const _0x26105c=_0x30de;var _0x3d8e61=B(_0x20ae5d,_0x26105c(0x163));return z(_0x3d8e61)==_0x26105c(0x150)?_0x3d8e61:_0x3d8e61+'';}function H(_0x46b6f1,_0x1efa33,_0x12e3f4){const _0x1e21c0=_0x30de;return(_0x1efa33=V(_0x1efa33))in _0x46b6f1?Object[_0x1e21c0(0x16f)](_0x46b6f1,_0x1efa33,{'value':_0x12e3f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46b6f1[_0x1efa33]=_0x12e3f4,_0x46b6f1;}var U=class extends _0x5788e4{constructor(..._0x47dfaf){const _0xdd42f2=_0x30de;super(..._0x47dfaf),H(this,_0xdd42f2(0x137),new Set()),H(this,_0xdd42f2(0x198),new Set());}['registerSharedOperation'](_0x72d19d){const _0x227739=_0x30de;return this['_sharedOperations'][_0x227739(0x134)](_0x72d19d),_0x276595(()=>this['_sharedOperations']['delete'](_0x72d19d));}[_0x1ef015(0x160)](_0x49b534){const _0x1afd96=_0x1ef015;return this[_0x1afd96(0x198)]['add'](_0x49b534),_0x276595(()=>this[_0x1afd96(0x198)][_0x1afd96(0x143)](_0x49b534));}[_0x1ef015(0x14e)](_0x5e4537){const _0x747cb7=_0x1ef015;return this[_0x747cb7(0x137)][_0x747cb7(0x179)](_0x5e4537);}['getInitialStates'](_0x522e73){const _0x3c3a27=_0x1ef015;return Array['from'](this['_reporters'])[_0x3c3a27(0x13a)](_0x47ab2b=>_0x47ab2b(_0x522e73));}};function W(_0x225faf,_0xcd6bc){return function(_0x2381bf,_0x24c75b){_0xcd6bc(_0x2381bf,_0x24c75b,_0x225faf);};}function G(_0x537cf3,_0x36665c,_0x228390,_0x5bed31){const _0x3b7e37=_0x1ef015;var _0xa129c7=arguments[_0x3b7e37(0x176)],_0x31b474=_0xa129c7<0x3?_0x36665c:_0x5bed31===null?_0x5bed31=Object['getOwnPropertyDescriptor'](_0x36665c,_0x228390):_0x5bed31,_0x22ef93;if(typeof Reflect==_0x3b7e37(0x15a)&&typeof Reflect[_0x3b7e37(0x183)]=='function')_0x31b474=Reflect[_0x3b7e37(0x183)](_0x537cf3,_0x36665c,_0x228390,_0x5bed31);else{for(var _0x322acc=_0x537cf3[_0x3b7e37(0x176)]-0x1;_0x322acc>=0x0;_0x322acc--)(_0x22ef93=_0x537cf3[_0x322acc])&&(_0x31b474=(_0xa129c7<0x3?_0x22ef93(_0x31b474):_0xa129c7>0x3?_0x22ef93(_0x36665c,_0x228390,_0x31b474):_0x22ef93(_0x36665c,_0x228390))||_0x31b474);}return _0xa129c7>0x3&&_0x31b474&&Object['defineProperty'](_0x36665c,_0x228390,_0x31b474),_0x31b474;}let K=class extends _0x27962b{constructor(_0x5d2bd6,_0x5e6027,_0x455680){const _0x243f69=_0x1ef015;super(),this['_univerInstanceService']=_0x5d2bd6,this[_0x243f69(0x18f)]=_0x5e6027,this['_collabSessionService']=_0x455680,H(this,'_entities',new Map()),this['_init']();}async[_0x1ef015(0x14b)](_0x480162){const _0x4e1a4f=_0x1ef015;return this[_0x4e1a4f(0x185)][_0x4e1a4f(0x179)](_0x480162)||await this[_0x4e1a4f(0x152)](_0x480162),this[_0x4e1a4f(0x185)][_0x4e1a4f(0x162)](_0x480162);}[_0x1ef015(0x161)](_0x3b20f9){const _0x920fce=_0x1ef015;var _0x3edde8;return(_0x3edde8=this[_0x920fce(0x185)]['get'](_0x3b20f9))==null?null:_0x3edde8;}['_init'](){const _0x2c2c34=_0x1ef015;this[_0x2c2c34(0x1b0)]['getTypeOfUnitAdded$'](_0x17d19f[_0x2c2c34(0x14f)])[_0x2c2c34(0x167)](_0x3710c2(this[_0x2c2c34(0x177)]))['subscribe'](async _0x2e6159=>{const _0x505bb3=_0x2c2c34;let _0x19dbfa=_0x2e6159[_0x505bb3(0x15e)][_0x505bb3(0x1ac)]();this[_0x505bb3(0x185)][_0x505bb3(0x179)](_0x19dbfa)||this[_0x505bb3(0x152)](_0x19dbfa);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x17d19f[_0x2c2c34(0x14f)])['pipe'](_0x3710c2(this[_0x2c2c34(0x177)]))[_0x2c2c34(0x1b2)](_0x84b717=>{const _0x1897dd=_0x2c2c34;let _0x51124e=_0x84b717[_0x1897dd(0x1ac)](),_0x3e7566=this[_0x1897dd(0x185)][_0x1897dd(0x162)](_0x51124e);_0x3e7566==null||_0x3e7566[_0x1897dd(0x1a1)]();});}async[_0x1ef015(0x152)](_0x4afddf){const _0x19a544=_0x1ef015;let _0x288085=await this[_0x19a544(0x16b)][_0x19a544(0x1a0)](_0x4afddf),_0x12bcf7=this['_injector'][_0x19a544(0x15c)](J,_0x4afddf,_0x288085);return _0x12bcf7[_0x19a544(0x188)](),this[_0x19a544(0x185)][_0x19a544(0x156)](_0x4afddf,_0x12bcf7),_0x12bcf7;}};K=G([W(0x0,_0x34db29),W(0x1,_0x1ce525(_0x20c231)),W(0x2,_0x1ce525(_0x578bbb))],K);let q=function(_0x1283e9){const _0xe3b582=_0x1ef015;return _0x1283e9['OFFLINE']=_0xe3b582(0x130),_0x1283e9['IDLE']=_0xe3b582(0x13d),_0x1283e9['FOLLOWING']=_0xe3b582(0x1a2),_0x1283e9[_0xe3b582(0x197)]=_0xe3b582(0x128),_0x1283e9[_0xe3b582(0x140)]=_0xe3b582(0x169),_0x1283e9;}({}),J=class extends _0x27962b{get['_status'](){const _0x287847=_0x1ef015;return this[_0x287847(0x13f)]['getValue']();}constructor(_0x324a1c,_0x4d1d5c,_0x566a18,_0x2ba8bf,_0x20926c){const _0x2e4046=_0x1ef015;super(),this[_0x2e4046(0x174)]=_0x324a1c,this[_0x2e4046(0x170)]=_0x4d1d5c,this[_0x2e4046(0x19a)]=_0x566a18,this[_0x2e4046(0x14d)]=_0x2ba8bf,this['_commandService']=_0x20926c,H(this,_0x2e4046(0x13f),new _0x208b12(_0x2e4046(0x13d))),H(this,'status$',this[_0x2e4046(0x13f)][_0x2e4046(0x180)]()),H(this,'_init',!0x1),H(this,_0x2e4046(0x195),null),H(this,_0x2e4046(0x189),null);}['dispose'](){const _0x28999d=_0x1ef015;var _0x15c1c5;(_0x15c1c5=this['_commandDisposable'])==null||_0x15c1c5[_0x28999d(0x1a1)](),this[_0x28999d(0x13f)][_0x28999d(0x199)]('idle'),this['_status$'][_0x28999d(0x1a8)]();}[_0x1ef015(0x124)](){const _0x287108=_0x1ef015;return this[_0x287108(0x15f)];}[_0x1ef015(0x188)](){const _0x29f5a0=_0x1ef015;this[_0x29f5a0(0x17a)]||(this[_0x29f5a0(0x17a)]=!0x0,this[_0x29f5a0(0x170)]['sessionStatus$'][_0x29f5a0(0x167)](_0x3710c2(this['dispose$']))[_0x29f5a0(0x1b2)](_0xc771bf=>{const _0x5bd628=_0x29f5a0;switch(_0xc771bf){case _0xad06a6[_0x5bd628(0x16e)]:this[_0x5bd628(0x19f)]();break;case _0xad06a6[_0x5bd628(0x15d)]:this[_0x5bd628(0x1a6)]();break;default:}}),this['_collabSession'][_0x29f5a0(0x164)][_0x29f5a0(0x167)](_0x3710c2(this[_0x29f5a0(0x177)]))[_0x29f5a0(0x1b2)](_0x1952af=>{const _0x50a661=_0x29f5a0;let {eventID:_0x4a1c80}=_0x1952af;switch(_0x4a1c80){case _0xa01ab3['LIVESHARE_NEW_HOST']:this[_0x50a661(0x122)](_0x1952af);break;case _0xa01ab3[_0x50a661(0x153)]:this['_handleOperation'](_0x1952af);break;case _0xa01ab3['LIVESHARE_TERMINATE']:this[_0x50a661(0x1af)]();break;case _0xa01ab3[_0x50a661(0x175)]:this[_0x50a661(0x18a)](_0x1952af);break;default:}}));}[_0x1ef015(0x16a)](){const _0xaf4ef2=_0x1ef015;this[_0xaf4ef2(0x170)][_0xaf4ef2(0x187)]({'eventID':_0xa01ab3['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0xaf4ef2(0x1ab)]()}},this[_0xaf4ef2(0x174)]);}[_0x1ef015(0x16c)](){const _0x31213b=_0x1ef015;this[_0x31213b(0x15f)]===_0x31213b(0x169)&&(this[_0x31213b(0x13f)]['next']('idle'),this[_0x31213b(0x170)]['send']({'eventID':_0xa01ab3[_0x31213b(0x166)],'data':{'unitID':this[_0x31213b(0x174)]}},this[_0x31213b(0x174)]));}[_0x1ef015(0x19b)](){const _0x14e005=_0x1ef015;this[_0x14e005(0x15f)]===_0x14e005(0x128)&&(this[_0x14e005(0x13f)]['next']('following'),this['_startFollowing']());}[_0x1ef015(0x1ad)](){const _0x2ad9f=_0x1ef015;this['_status']===_0x2ad9f(0x1a2)&&this[_0x2ad9f(0x15b)]();}['_handleNewHost'](_0x1a75af){const _0x1cb8ae=_0x1ef015;let {presenter:_0x18f0e5}=_0x1a75af[_0x1cb8ae(0x172)],_0x5034cd=this['_collabSession'][_0x1cb8ae(0x1ab)]();this[_0x1cb8ae(0x189)]=_0x18f0e5,_0x18f0e5===_0x5034cd?(this['_stopFollowing'](),this[_0x1cb8ae(0x1a7)]()):this[_0x1cb8ae(0x15f)]!==_0x1cb8ae(0x128)&&(this[_0x1cb8ae(0x191)](),this[_0x1cb8ae(0x13b)]());}[_0x1ef015(0x131)](){const _0x4811fd=_0x1ef015;let _0x337ee4={'eventID':_0xa01ab3['LIVESHARE_FETCH_OPERATIONS']};this[_0x4811fd(0x170)]['send'](_0x337ee4,this['_unitID']);}['_handleTerminate'](){const _0x5c82f3=_0x1ef015;this[_0x5c82f3(0x189)]=null,this[_0x5c82f3(0x15f)]!==_0x5c82f3(0x169)&&this[_0x5c82f3(0x173)]();}[_0x1ef015(0x18a)](_0x33124d){const _0x414621=_0x1ef015;if(this[_0x414621(0x15f)]===_0x414621(0x1a2)&&this[_0x414621(0x189)]===_0x33124d[_0x414621(0x172)][_0x414621(0x126)]){let _0x57423f=_0x50ff4f(_0x33124d[_0x414621(0x172)])[_0x414621(0x18b)][_0x414621(0x19c)]()[_0x414621(0x1ae)](_0x3f9b32=>_0x3f9b32['id']===_0x5b80de['id']);if(_0x57423f){let _0x256593=_0x57423f[_0x414621(0x1a5)][_0x414621(0x18c)],_0x4fc10c=_0x57423f['params'][_0x414621(0x12a)]['id'];setTimeout(()=>{const _0x5a6c99=_0x414621;this['_commandService'][_0x5a6c99(0x178)](_0x47d365['id'],{'unitId':_0x256593,'subUnitId':_0x4fc10c},{'fromCollab':!0x0});});}}}[_0x1ef015(0x1a7)](){const _0x3ac4b0=_0x1ef015;var _0x22ff72;(_0x22ff72=this['_commandDisposable'])==null||_0x22ff72[_0x3ac4b0(0x1a1)](),this['_status$'][_0x3ac4b0(0x199)](_0x3ac4b0(0x169));let _0x5b2ebf=new Map(),_0xf8313b=this[_0x3ac4b0(0x195)]=new _0x5ac756();_0xf8313b[_0x3ac4b0(0x134)](_0x276595(()=>{const _0x2e5f10=_0x3ac4b0;_0x5b2ebf[_0x2e5f10(0x145)](({subject:_0x124386,subscription:_0x4ca953})=>{const _0x248b95=_0x2e5f10;_0x4ca953[_0x248b95(0x171)](),_0x124386[_0x248b95(0x1a8)]();}),_0x5b2ebf['clear']();})),_0xf8313b[_0x3ac4b0(0x134)](this[_0x3ac4b0(0x190)]['onCommandExecuted'](_0x4087c6=>{const _0xeecaff=_0x3ac4b0;if(_0x4087c6[_0xeecaff(0x181)]!==_0x2cae7d[_0xeecaff(0x194)]||!this[_0xeecaff(0x14d)][_0xeecaff(0x14e)](_0x4087c6['id']))return;let {id:_0x357fde}=_0x4087c6,_0x10013b;if(_0x5b2ebf[_0xeecaff(0x179)](_0x357fde))_0x10013b=_0x5b2ebf[_0xeecaff(0x162)](_0x357fde)[_0xeecaff(0x17e)];else{var _0x2a90d9;_0x10013b=new _0x21867();let _0x3e7380=_0x10013b[_0xeecaff(0x167)](_0x45cfeb((_0x2a90d9=this['_configService'][_0xeecaff(0x12b)](_0xeecaff(0x12f)))==null?0xc8:_0x2a90d9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xeecaff(0x1b2)](_0x599dfb=>{const _0x24393b=_0xeecaff;this[_0x24393b(0x170)][_0x24393b(0x187)]({'eventID':_0xa01ab3[_0x24393b(0x153)],'data':{'unitID':this[_0x24393b(0x174)],'operations':{[_0x599dfb['id']]:{'id':_0x599dfb['id'],'params':JSON[_0x24393b(0x184)](_0x599dfb[_0x24393b(0x1a5)])}}}},this['_unitID']);});_0x5b2ebf[_0xeecaff(0x156)](_0x357fde,{'subject':_0x10013b,'subscription':_0x3e7380});}_0x10013b['next'](_0x4087c6);})),this[_0x3ac4b0(0x14d)][_0x3ac4b0(0x168)](this[_0x3ac4b0(0x174)])[_0x3ac4b0(0x145)](_0x12d82b=>this[_0x3ac4b0(0x170)]['send']({'eventID':_0xa01ab3[_0x3ac4b0(0x153)],'data':{'unitID':this[_0x3ac4b0(0x174)],'operations':{[_0x12d82b['id']]:{'id':_0x12d82b['id'],'params':JSON[_0x3ac4b0(0x184)](_0x12d82b['params'])}}}},this[_0x3ac4b0(0x174)]));}[_0x1ef015(0x191)](){const _0x3cab21=_0x1ef015;var _0x6d4bd5;this[_0x3cab21(0x13f)][_0x3cab21(0x199)](_0x3cab21(0x13d)),(_0x6d4bd5=this[_0x3cab21(0x195)])==null||_0x6d4bd5['dispose'](),this['_commandDisposable']=null;}[_0x1ef015(0x13b)](){const _0x593cc1=_0x1ef015;var _0x578da3;(_0x578da3=this[_0x593cc1(0x195)])==null||_0x578da3[_0x593cc1(0x1a1)](),this[_0x593cc1(0x13f)][_0x593cc1(0x199)](_0x593cc1(0x1a2));}[_0x1ef015(0x173)](){const _0x22c3e0=_0x1ef015;var _0x59877b;this[_0x22c3e0(0x13f)][_0x22c3e0(0x199)](_0x22c3e0(0x13d)),(_0x59877b=this[_0x22c3e0(0x195)])==null||_0x59877b[_0x22c3e0(0x1a1)](),this[_0x22c3e0(0x195)]=null;}[_0x1ef015(0x15b)](){const _0x204da6=_0x1ef015;var _0x1b032c;this[_0x204da6(0x13f)][_0x204da6(0x199)](_0x204da6(0x128)),(_0x1b032c=this[_0x204da6(0x195)])==null||_0x1b032c['dispose']();}[_0x1ef015(0x142)](_0x170c63){const _0x3797f1=_0x1ef015;if([_0x3797f1(0x169),_0x3797f1(0x128),'offline'][_0x3797f1(0x1b1)](this[_0x3797f1(0x15f)])||!_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x17b)]||_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x17b)]===this[_0x3797f1(0x170)]['getMemberID']())return;this['_status']===_0x3797f1(0x13d)&&this[_0x3797f1(0x13b)]();let _0x572957=_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x133)];Object[_0x3797f1(0x136)](_0x572957)[_0x3797f1(0x145)](_0x500c64=>{const _0x30d1c5=_0x3797f1;this['_commandService'][_0x30d1c5(0x178)](_0x500c64['id'],_0x500c64[_0x30d1c5(0x1a5)]?JSON[_0x30d1c5(0x146)](_0x500c64[_0x30d1c5(0x1a5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1e26f0=_0x1ef015;var _0x1e54a4;this['_status$'][_0x1e26f0(0x199)](_0x1e26f0(0x130)),(_0x1e54a4=this[_0x1e26f0(0x195)])==null||_0x1e54a4[_0x1e26f0(0x1a1)]();}['_handleOnline'](){const _0x357b30=_0x1ef015;this[_0x357b30(0x13f)][_0x357b30(0x199)](_0x357b30(0x13d)),this[_0x357b30(0x131)]();}};J=G([W(0x2,_0x29aef5),W(0x3,_0x1ce525(U)),W(0x4,_0x25c57d)],J);var se='@univerjs-pro/live-share',ce=_0x1ef015(0x13e);const Y={};let X=class extends _0x5788e4{constructor(_0x351318){const _0x56cfa7=_0x1ef015;super(),this[_0x56cfa7(0x14d)]=_0x351318,this[_0x56cfa7(0x17a)]();}[_0x1ef015(0x17a)](){const _0x481db2=_0x1ef015;[_0x58bee4['id'],_0x20642b['id'],_0x47d365['id']][_0x481db2(0x145)](_0x2beae3=>{const _0x511b59=_0x481db2;this['disposeWithMe'](this['_liveShareService'][_0x511b59(0x138)](_0x2beae3));});}};X=G([W(0x0,_0x1ce525(U))],X);function Z(){const _0x256493=_0x1ef015;let _0x5acfe0=_0x2b6432(K),_0x287e2a=_0x2b6432(_0x34db29),_0x5d5d3a=_0x3a4779(()=>_0x287e2a['getCurrentTypeOfUnit$'](_0x17d19f[_0x256493(0x14f)]),void 0x0,!0x1,[]),_0x878fdb=_0x3a4779(_0x5181e1(()=>_0x5d5d3a?_0x5946d8(()=>_0x3c88f6(_0x5acfe0[_0x256493(0x14b)](_0x5d5d3a[_0x256493(0x1ac)]()))):_0x59e3f1(null),[_0x5d5d3a,_0x5acfe0]),null),_0x3f90dd=_0x3a4779(_0x878fdb?()=>_0x878fdb[_0x256493(0x18e)]:null,_0x256493(0x13d),!0x1,[_0x878fdb]);return _0x878fdb?_0x47077f(_0x5dc2e4,{'align':'end','disabled':_0x3f90dd===_0x256493(0x130),'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':_0x47077f(le,{'status':_0x3f90dd,'coordinator':_0x878fdb}),'children':_0x47077f('button',{'className':_0x3253e8(_0x256493(0x193),{'univer-cursor-not-allowed':_0x3f90dd===_0x256493(0x130),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f90dd!=='offline'}),'type':_0x256493(0x154),'children':_0x47077f(_0x17587a,{})})}):null;}function le(_0x5906ff){const _0x3f983b=_0x1ef015;let {status:_0x14ed4c,coordinator:_0x72af8c}=_0x5906ff;switch(_0x14ed4c){case'idle':return _0x47077f(ue,{'coordinator':_0x72af8c});case _0x3f983b(0x1a2):return _0x47077f(de,{'coordinator':_0x72af8c});case _0x3f983b(0x128):return _0x47077f(fe,{'coordinator':_0x72af8c});case'offline':return _0x47077f(me,{});case'presenting':return _0x47077f(pe,{'coordinator':_0x72af8c});default:return null;}}function ue(_0x231f58){const _0x4d9702=_0x1ef015;let {coordinator:_0x4380e6}=_0x231f58;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x4d9702(0x148),{'className':_0x4d9702(0x192),'children':_0x4d9702(0x1a4)}),_0x47077f(_0x339963,{'onClick':()=>_0x4380e6['tryStartPresenting'](),'children':_0x4d9702(0x1aa)})]});}function de(_0x5195df){const _0x40089c=_0x1ef015;let {coordinator:_0x57877b}=_0x5195df;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x40089c(0x148),{'className':_0x40089c(0x192),'children':_0x40089c(0x18d)}),_0x47077f(_0x339963,{'onClick':()=>_0x57877b['stopFollowing'](),'children':'Stop\x20following'})]});}function fe(_0x4fc816){const _0x4b419b=_0x1ef015;let {coordinator:_0x32c381}=_0x4fc816;return _0x10f923(_0x449cea,{'children':[_0x47077f('div',{'className':_0x4b419b(0x192),'children':_0x4b419b(0x159)}),_0x47077f(_0x339963,{'variant':'text','onClick':()=>_0x32c381[_0x4b419b(0x19b)](),'children':_0x4b419b(0x16d)})]});}function pe(_0x5a53ce){const _0x235e42=_0x1ef015;let {coordinator:_0x27c98b}=_0x5a53ce;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x235e42(0x148),{'className':_0x235e42(0x192),'children':_0x235e42(0x19d)}),_0x47077f(_0x339963,{'variant':_0x235e42(0x132),'onClick':()=>_0x27c98b[_0x235e42(0x16c)](),'children':_0x235e42(0x196)})]});}function me(){const _0x2cdd7a=_0x1ef015;return _0x47077f(_0x449cea,{'children':_0x2cdd7a(0x1b3)});}let Q=class extends _0x5788e4{constructor(_0x4801f5,_0x46114d){const _0x127afe=_0x1ef015;super(),this[_0x127afe(0x18f)]=_0x4801f5,this[_0x127afe(0x12d)]=_0x46114d,this[_0x127afe(0x127)]();}[_0x1ef015(0x127)](){const _0xae24d8=_0x1ef015;this['disposeWithMe'](this[_0xae24d8(0x12d)][_0xae24d8(0x129)](_0x2b605a[_0xae24d8(0x155)],()=>_0x30f50d(Z,this[_0xae24d8(0x18f)])));}};Q=G([W(0x0,_0x1ce525(_0x20c231)),W(0x1,_0x377001)],Q);let $=class extends _0x5f5a10{constructor(_0x34ab0f=Y,_0x29d04c,_0xc623df){const _0x3e9bd9=_0x1ef015;super(),this[_0x3e9bd9(0x12c)]=_0x34ab0f,this[_0x3e9bd9(0x18f)]=_0x29d04c,this[_0x3e9bd9(0x19a)]=_0xc623df;let {..._0x3ebf67}=_0x55222e({},Y,this[_0x3e9bd9(0x12c)]);this[_0x3e9bd9(0x19a)][_0x3e9bd9(0x14a)](_0x3e9bd9(0x17c),_0x3ebf67);}[_0x1ef015(0x19e)](){const _0x14e0e0=_0x1ef015;_0x382922(this[_0x14e0e0(0x18f)],_0x478569([[U],[K],[X],[Q]],this[_0x14e0e0(0x12c)]['override'])),_0x2f37ac(this[_0x14e0e0(0x18f)],[[X]]);}['onRendered'](){const _0x29fe1f=_0x1ef015;_0x2f37ac(this[_0x29fe1f(0x18f)],[[Q]]);}};H($,'type',_0x17d19f[_0x1ef015(0x17f)]),H($,'pluginName',_0x1ef015(0x141)),H($,'packageName',se),H($,_0x1ef015(0x1a9),ce),$=G([_0x1107e5(_0x3d2453),W(0x1,_0x1ce525(_0x20c231)),W(0x2,_0x29aef5)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0xcd3c43=_0x29fa;(function(_0x40ac36,_0x1da1a9){const _0x5b52eb=_0x29fa,_0x1bba4d=_0x40ac36();while(!![]){try{const _0x19c2cc=parseInt(_0x5b52eb(0x145))/0x1+-parseInt(_0x5b52eb(0x150))/0x2+-parseInt(_0x5b52eb(0x132))/0x3*(parseInt(_0x5b52eb(0x17c))/0x4)+parseInt(_0x5b52eb(0x102))/0x5+parseInt(_0x5b52eb(0x11b))/0x6+parseInt(_0x5b52eb(0x138))/0x7+-parseInt(_0x5b52eb(0x175))/0x8;if(_0x19c2cc===_0x1da1a9)break;else _0x1bba4d['push'](_0x1bba4d['shift']());}catch(_0x151428){_0x1bba4d['push'](_0x1bba4d['shift']());}}}(_0x4350,0x4c64f));import{CollaborationEvent as _0x3756a6,parseProtocolChangeset as _0x540c5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x598ce3,SessionStatus as _0x4d69f8,UniverCollaborationClientPlugin as _0x337bb8}from'@univerjs-pro/collaboration-client';import{CommandType as _0x370a98,DependentOn as _0x3f835d,Disposable as _0x3d4065,DisposableCollection as _0x1d1071,ICommandService as _0x2aa954,IConfigService as _0x13ab7e,IUniverInstanceService as _0x5ab737,Inject as _0x130c38,Injector as _0x189051,Plugin as _0x5f36ae,RxDisposable as _0x1a82c3,UniverInstanceType as _0x3f510f,merge as _0x3df356,mergeOverrideWithDependencies as _0x1f0e7f,registerDependencies as _0x24986b,toDisposable as _0xf8e6d4,touchDependencies as _0x1c595d}from'@univerjs/core';import{InsertSheetMutation as _0x39f5b2,SetWorksheetActiveOperation as _0x2b0483}from'@univerjs/sheets';import{BehaviorSubject as _0x23f9ae,Subject as _0x20c350,defer as _0x4386d9,from as _0xa7f912,of as _0x363ac9}from'rxjs';import{takeUntil as _0x223cee,throttleTime as _0x364328}from'rxjs/operators';import{SetScrollOperation as _0x5ae29f,SetZoomRatioOperation as _0x4bc340}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x72c6df,IUIPartsService as _0x3d33a9,connectInjector as _0x33a9bb,useDependency as _0x361196,useObservable as _0x313630}from'@univerjs/ui';import{Button as _0x5b7c15,Dropdown as _0x5f2dd7,clsx as _0x1b4e86}from'@univerjs/design';import{LiveShareIcon as _0xbe8107}from'@univerjs/icons';function _0x29fa(_0x1d5906,_0xf05a33){_0x1d5906=_0x1d5906-0xed;const _0x435077=_0x4350();let _0x29fa14=_0x435077[_0x1d5906];return _0x29fa14;}import{useMemo as _0x1c5235}from'react';import{Fragment as _0x114c30,jsx as _0x76736e,jsxs as _0x46d651}from'react/jsx-runtime';function z(_0x18187e){'@babel/helpers - typeof';const _0x53ca80=_0x29fa;return z=typeof Symbol=='function'&&typeof Symbol[_0x53ca80(0xf4)]==_0x53ca80(0x169)?function(_0x5dd149){return typeof _0x5dd149;}:function(_0x1fa963){const _0x1875b7=_0x53ca80;return _0x1fa963&&typeof Symbol=='function'&&_0x1fa963[_0x1875b7(0xf0)]===Symbol&&_0x1fa963!==Symbol['prototype']?'symbol':typeof _0x1fa963;},z(_0x18187e);}function B(_0x1ad699,_0x3079ff){const _0x30cb2b=_0x29fa;if(z(_0x1ad699)!='object'||!_0x1ad699)return _0x1ad699;var _0x1b3e85=_0x1ad699[Symbol[_0x30cb2b(0x127)]];if(_0x1b3e85!==void 0x0){var _0x17039d=_0x1b3e85[_0x30cb2b(0x119)](_0x1ad699,_0x3079ff||_0x30cb2b(0x105));if(z(_0x17039d)!=_0x30cb2b(0x12c))return _0x17039d;throw TypeError(_0x30cb2b(0x135));}return(_0x3079ff===_0x30cb2b(0x134)?String:Number)(_0x1ad699);}function V(_0x44e39d){const _0x3b0218=_0x29fa;var _0x400d5b=B(_0x44e39d,_0x3b0218(0x134));return z(_0x400d5b)==_0x3b0218(0x169)?_0x400d5b:_0x400d5b+'';}function H(_0x3a9b8b,_0x117851,_0x334320){const _0xed25aa=_0x29fa;return(_0x117851=V(_0x117851))in _0x3a9b8b?Object[_0xed25aa(0xfa)](_0x3a9b8b,_0x117851,{'value':_0x334320,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a9b8b[_0x117851]=_0x334320,_0x3a9b8b;}var U=class extends _0x3d4065{constructor(..._0x50b86d){const _0x26b38b=_0x29fa;super(..._0x50b86d),H(this,_0x26b38b(0x164),new Set()),H(this,_0x26b38b(0x10e),new Set());}[_0xcd3c43(0x159)](_0x4b2f96){const _0x29d865=_0xcd3c43;return this['_sharedOperations']['add'](_0x4b2f96),_0xf8e6d4(()=>this[_0x29d865(0x164)][_0x29d865(0xf3)](_0x4b2f96));}['registerInitialStateReporter'](_0x23ddda){const _0x4fced5=_0xcd3c43;return this[_0x4fced5(0x10e)][_0x4fced5(0x16d)](_0x23ddda),_0xf8e6d4(()=>this[_0x4fced5(0x10e)][_0x4fced5(0xf3)](_0x23ddda));}[_0xcd3c43(0x13b)](_0x152480){const _0x2a710b=_0xcd3c43;return this[_0x2a710b(0x164)][_0x2a710b(0x10a)](_0x152480);}[_0xcd3c43(0x170)](_0x286563){const _0x1af0ab=_0xcd3c43;return Array[_0x1af0ab(0xff)](this[_0x1af0ab(0x10e)])[_0x1af0ab(0xfc)](_0x162266=>_0x162266(_0x286563));}};function W(_0x40771d,_0x104f5f){return function(_0x1532f5,_0x40affd){_0x104f5f(_0x1532f5,_0x40affd,_0x40771d);};}function _0x4350(){const _0x46ecb9=['3215368BdljUd','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','_handleOffline','UNIVER_UNKNOWN','Present\x20this\x20document','_injector','4640RwMrgG','get','_fetchOperations','_status','text','NEW_CHANGESETS','includes','_stopFollowing','constructor','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','delete','iterator','presenting','presenter','FOLLOWING','length','getLiveShareCoordinatorSync','defineProperty','dispose$','map','SAME_OPERATION_SHARE_INTERVAL','status$','from','_presenter','sheet','721190pMwIgv','params','getUnitId','default','Start','startFollowing','getOwnPropertyDescriptor','init','has','requireSession','find','set','_reporters','live-share.config','idle','_entities','forEach','_univerInstanceService','clear','LIVESHARE_FETCH_OPERATIONS','values','Start\x20following','following','call','override','2410068ZLBEGh','not-following','div','pluginName','unit','_status$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','button','_handleTerminate','end','executeCommand','_unitID','toPrimitive','tryStartPresenting','_mountLiveShare','_handleNewHost','_handleNewChangeSets','object','send','_startPresenting','event$','_startLiveShareCoordinator','IDLE','1137FWdZQH','mutations','string','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_uiPartsService','unitId','1893220EbDJIF','OPERATION','version','shouldShareOperation','next','OFFLINE','Stop\x20presenting','LIVESHARE_OPERATION','_handleOnline','getLiveShareCoordinator','getCurrentTypeOfUnit$','dispose','onCommandExecuted','537041rnxhUB','_configService','@univerjs-pro/live-share','stopPresenting','_collabSessionService','You\x27re\x20presenting\x20the\x20document','disposeWithMe','getTypeOfUnitDisposed$','subject','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','397890TLXqoa','reverse','_liveShareService','_stopPresenting','getStatus','asObservable','data','offline','1.0.0-alpha.7','registerSharedOperation','getTypeOfUnitAdded$','decorate','subscribe','pipe','_commandDisposable','_commandService','onRendered','_init','_handleOperation','LIVESHARE_NEW_HOST','_sharedOperations','sessionStatus$','HEADER_MENU','stringify','You\x27are\x20offline.','symbol','_startFollowing','packageName','You\x27re\x20not\x20following\x20the\x20presenter','add','_config','ONLINE','getInitialStates','Stop\x20following','_collabSession','UNIVER_SHEET','stopFollowing'];_0x4350=function(){return _0x46ecb9;};return _0x4350();}function G(_0x44d994,_0x4e4905,_0x260325,_0x1e3fd6){const _0x340b73=_0xcd3c43;var _0x5a0c03=arguments['length'],_0xcb171e=_0x5a0c03<0x3?_0x4e4905:_0x1e3fd6===null?_0x1e3fd6=Object[_0x340b73(0x108)](_0x4e4905,_0x260325):_0x1e3fd6,_0x230b64;if(typeof Reflect==_0x340b73(0x12c)&&typeof Reflect[_0x340b73(0x15b)]=='function')_0xcb171e=Reflect[_0x340b73(0x15b)](_0x44d994,_0x4e4905,_0x260325,_0x1e3fd6);else{for(var _0xd913b=_0x44d994[_0x340b73(0xf8)]-0x1;_0xd913b>=0x0;_0xd913b--)(_0x230b64=_0x44d994[_0xd913b])&&(_0xcb171e=(_0x5a0c03<0x3?_0x230b64(_0xcb171e):_0x5a0c03>0x3?_0x230b64(_0x4e4905,_0x260325,_0xcb171e):_0x230b64(_0x4e4905,_0x260325))||_0xcb171e);}return _0x5a0c03>0x3&&_0xcb171e&&Object['defineProperty'](_0x4e4905,_0x260325,_0xcb171e),_0xcb171e;}let K=class extends _0x1a82c3{constructor(_0x66f1cd,_0x6a38c6,_0x4507c5){const _0x11f408=_0xcd3c43;super(),this[_0x11f408(0x113)]=_0x66f1cd,this[_0x11f408(0x17b)]=_0x6a38c6,this[_0x11f408(0x149)]=_0x4507c5,H(this,_0x11f408(0x111),new Map()),this[_0x11f408(0x161)]();}async['getLiveShareCoordinator'](_0x9ec3df){const _0x40bba8=_0xcd3c43;return this[_0x40bba8(0x111)][_0x40bba8(0x10a)](_0x9ec3df)||await this[_0x40bba8(0x130)](_0x9ec3df),this[_0x40bba8(0x111)]['get'](_0x9ec3df);}[_0xcd3c43(0xf9)](_0x1b69ca){const _0x2a7f29=_0xcd3c43;var _0x35d8d8;return(_0x35d8d8=this[_0x2a7f29(0x111)][_0x2a7f29(0x17d)](_0x1b69ca))==null?null:_0x35d8d8;}[_0xcd3c43(0x161)](){const _0x394fc1=_0xcd3c43;this[_0x394fc1(0x113)][_0x394fc1(0x15a)](_0x3f510f[_0x394fc1(0x173)])[_0x394fc1(0x15d)](_0x223cee(this[_0x394fc1(0xfb)]))[_0x394fc1(0x15c)](async _0x1b0875=>{const _0x40f879=_0x394fc1;let _0x2ee398=_0x1b0875[_0x40f879(0x11f)]['getUnitId']();this[_0x40f879(0x111)][_0x40f879(0x10a)](_0x2ee398)||this[_0x40f879(0x130)](_0x2ee398);}),this[_0x394fc1(0x113)][_0x394fc1(0x14c)](_0x3f510f[_0x394fc1(0x173)])['pipe'](_0x223cee(this[_0x394fc1(0xfb)]))[_0x394fc1(0x15c)](_0x18ffae=>{const _0x4c87d1=_0x394fc1;let _0x38847e=_0x18ffae[_0x4c87d1(0x104)](),_0x113e2f=this[_0x4c87d1(0x111)][_0x4c87d1(0x17d)](_0x38847e);_0x113e2f==null||_0x113e2f[_0x4c87d1(0x143)]();});}async['_startLiveShareCoordinator'](_0x535cf4){const _0x4ddb46=_0xcd3c43;let _0x322371=await this[_0x4ddb46(0x149)][_0x4ddb46(0x10b)](_0x535cf4),_0x5bef85=this[_0x4ddb46(0x17b)]['createInstance'](J,_0x535cf4,_0x322371);return _0x5bef85[_0x4ddb46(0x109)](),this[_0x4ddb46(0x111)][_0x4ddb46(0x10d)](_0x535cf4,_0x5bef85),_0x5bef85;}};K=G([W(0x0,_0x5ab737),W(0x1,_0x130c38(_0x189051)),W(0x2,_0x130c38(_0x598ce3))],K);let q=function(_0x10d8b1){const _0x347c62=_0xcd3c43;return _0x10d8b1[_0x347c62(0x13d)]=_0x347c62(0x157),_0x10d8b1[_0x347c62(0x131)]=_0x347c62(0x110),_0x10d8b1[_0x347c62(0xf7)]=_0x347c62(0x118),_0x10d8b1['NOT_FOLLOWING']=_0x347c62(0x11c),_0x10d8b1['PRESENTING']=_0x347c62(0xf5),_0x10d8b1;}({}),J=class extends _0x1a82c3{get[_0xcd3c43(0x17f)](){const _0x256e13=_0xcd3c43;return this[_0x256e13(0x120)]['getValue']();}constructor(_0x280c2a,_0x2a261b,_0x486466,_0x4b72c5,_0x56b6d7){const _0x57336e=_0xcd3c43;super(),this['_unitID']=_0x280c2a,this[_0x57336e(0x172)]=_0x2a261b,this[_0x57336e(0x146)]=_0x486466,this[_0x57336e(0x152)]=_0x4b72c5,this[_0x57336e(0x15f)]=_0x56b6d7,H(this,_0x57336e(0x120),new _0x23f9ae('idle')),H(this,_0x57336e(0xfe),this['_status$'][_0x57336e(0x155)]()),H(this,_0x57336e(0x161),!0x1),H(this,_0x57336e(0x15e),null),H(this,_0x57336e(0x100),null);}[_0xcd3c43(0x143)](){const _0x9fbe8e=_0xcd3c43;var _0x4bcc83;(_0x4bcc83=this[_0x9fbe8e(0x15e)])==null||_0x4bcc83['dispose'](),this[_0x9fbe8e(0x120)][_0x9fbe8e(0x13c)](_0x9fbe8e(0x110)),this[_0x9fbe8e(0x120)]['complete']();}[_0xcd3c43(0x154)](){const _0x2a541f=_0xcd3c43;return this[_0x2a541f(0x17f)];}['init'](){const _0x55f9e8=_0xcd3c43;this['_init']||(this[_0x55f9e8(0x161)]=!0x0,this[_0x55f9e8(0x172)][_0x55f9e8(0x165)]['pipe'](_0x223cee(this['dispose$']))[_0x55f9e8(0x15c)](_0x344196=>{const _0x598087=_0x55f9e8;switch(_0x344196){case _0x4d69f8[_0x598087(0x13d)]:this[_0x598087(0x178)]();break;case _0x4d69f8[_0x598087(0x16f)]:this[_0x598087(0x140)]();break;default:}}),this[_0x55f9e8(0x172)][_0x55f9e8(0x12f)][_0x55f9e8(0x15d)](_0x223cee(this[_0x55f9e8(0xfb)]))['subscribe'](_0x2a721a=>{const _0x316b55=_0x55f9e8;let {eventID:_0x57ce27}=_0x2a721a;switch(_0x57ce27){case _0x3756a6[_0x316b55(0x163)]:this[_0x316b55(0x12a)](_0x2a721a);break;case _0x3756a6['LIVESHARE_OPERATION']:this[_0x316b55(0x162)](_0x2a721a);break;case _0x3756a6[_0x316b55(0x177)]:this[_0x316b55(0x123)]();break;case _0x3756a6[_0x316b55(0xed)]:this[_0x316b55(0x12b)](_0x2a721a);break;default:}}));}[_0xcd3c43(0x128)](){const _0x8f65c9=_0xcd3c43;this[_0x8f65c9(0x172)][_0x8f65c9(0x12d)]({'eventID':_0x3756a6[_0x8f65c9(0x176)],'data':{'unitID':this['_unitID'],'userID':this[_0x8f65c9(0x172)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x8e4143=_0xcd3c43;this[_0x8e4143(0x17f)]==='presenting'&&(this[_0x8e4143(0x120)]['next']('idle'),this[_0x8e4143(0x172)][_0x8e4143(0x12d)]({'eventID':_0x3756a6[_0x8e4143(0x177)],'data':{'unitID':this[_0x8e4143(0x126)]}},this[_0x8e4143(0x126)]));}['startFollowing'](){const _0xe93ada=_0xcd3c43;this[_0xe93ada(0x17f)]===_0xe93ada(0x11c)&&(this[_0xe93ada(0x120)][_0xe93ada(0x13c)](_0xe93ada(0x118)),this[_0xe93ada(0x16a)]());}[_0xcd3c43(0x174)](){const _0x221bbd=_0xcd3c43;this[_0x221bbd(0x17f)]===_0x221bbd(0x118)&&this[_0x221bbd(0xef)]();}[_0xcd3c43(0x12a)](_0x1fecb4){const _0x1caadb=_0xcd3c43;let {presenter:_0x283db7}=_0x1fecb4[_0x1caadb(0x156)],_0x47fa87=this[_0x1caadb(0x172)][_0x1caadb(0x14e)]();this[_0x1caadb(0x100)]=_0x283db7,_0x283db7===_0x47fa87?(this[_0x1caadb(0xef)](),this['_startPresenting']()):this['_status']!==_0x1caadb(0x11c)&&(this[_0x1caadb(0x153)](),this[_0x1caadb(0x16a)]());}[_0xcd3c43(0x17e)](){const _0x1d0532=_0xcd3c43;let _0x11c7a4={'eventID':_0x3756a6[_0x1d0532(0x115)]};this[_0x1d0532(0x172)][_0x1d0532(0x12d)](_0x11c7a4,this[_0x1d0532(0x126)]);}[_0xcd3c43(0x123)](){const _0x5cee8f=_0xcd3c43;this[_0x5cee8f(0x100)]=null,this[_0x5cee8f(0x17f)]!=='presenting'&&this['_beIdle']();}[_0xcd3c43(0x12b)](_0x2a1f61){const _0x221cc7=_0xcd3c43;if(this['_status']===_0x221cc7(0x118)&&this[_0x221cc7(0x100)]===_0x2a1f61[_0x221cc7(0x156)]['memberID']){let _0x92cfcb=_0x540c5a(_0x2a1f61[_0x221cc7(0x156)])[_0x221cc7(0x133)][_0x221cc7(0x151)]()[_0x221cc7(0x10c)](_0xb0e452=>_0xb0e452['id']===_0x39f5b2['id']);if(_0x92cfcb){let _0x436335=_0x92cfcb[_0x221cc7(0x103)][_0x221cc7(0x137)],_0xaea137=_0x92cfcb[_0x221cc7(0x103)][_0x221cc7(0x101)]['id'];setTimeout(()=>{const _0x2cc575=_0x221cc7;this['_commandService'][_0x2cc575(0x125)](_0x2b0483['id'],{'unitId':_0x436335,'subUnitId':_0xaea137},{'fromCollab':!0x0});});}}}[_0xcd3c43(0x12e)](){const _0x3be677=_0xcd3c43;var _0x417769;(_0x417769=this[_0x3be677(0x15e)])==null||_0x417769[_0x3be677(0x143)](),this['_status$'][_0x3be677(0x13c)](_0x3be677(0xf5));let _0x523766=new Map(),_0x23660d=this[_0x3be677(0x15e)]=new _0x1d1071();_0x23660d[_0x3be677(0x16d)](_0xf8e6d4(()=>{const _0x49b5f5=_0x3be677;_0x523766['forEach'](({subject:_0x1362f0,subscription:_0x2d6066})=>{_0x2d6066['unsubscribe'](),_0x1362f0['complete']();}),_0x523766[_0x49b5f5(0x114)]();})),_0x23660d[_0x3be677(0x16d)](this[_0x3be677(0x15f)][_0x3be677(0x144)](_0x1aca2d=>{const _0x11d1a2=_0x3be677;if(_0x1aca2d['type']!==_0x370a98[_0x11d1a2(0x139)]||!this[_0x11d1a2(0x152)][_0x11d1a2(0x13b)](_0x1aca2d['id']))return;let {id:_0x3e96b3}=_0x1aca2d,_0x326ef8;if(_0x523766[_0x11d1a2(0x10a)](_0x3e96b3))_0x326ef8=_0x523766['get'](_0x3e96b3)[_0x11d1a2(0x14d)];else{var _0x52630d;_0x326ef8=new _0x20c350();let _0x3e948d=_0x326ef8['pipe'](_0x364328((_0x52630d=this[_0x11d1a2(0x146)]['getConfig'](_0x11d1a2(0xfd)))==null?0xc8:_0x52630d,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50a8ed=>{const _0x54a2ce=_0x11d1a2;this[_0x54a2ce(0x172)][_0x54a2ce(0x12d)]({'eventID':_0x3756a6[_0x54a2ce(0x13f)],'data':{'unitID':this['_unitID'],'operations':{[_0x50a8ed['id']]:{'id':_0x50a8ed['id'],'params':JSON[_0x54a2ce(0x167)](_0x50a8ed[_0x54a2ce(0x103)])}}}},this[_0x54a2ce(0x126)]);});_0x523766[_0x11d1a2(0x10d)](_0x3e96b3,{'subject':_0x326ef8,'subscription':_0x3e948d});}_0x326ef8[_0x11d1a2(0x13c)](_0x1aca2d);})),this[_0x3be677(0x152)][_0x3be677(0x170)](this['_unitID'])[_0x3be677(0x112)](_0x4af641=>this[_0x3be677(0x172)][_0x3be677(0x12d)]({'eventID':_0x3756a6[_0x3be677(0x13f)],'data':{'unitID':this[_0x3be677(0x126)],'operations':{[_0x4af641['id']]:{'id':_0x4af641['id'],'params':JSON['stringify'](_0x4af641['params'])}}}},this['_unitID']));}[_0xcd3c43(0x153)](){const _0x4d0e91=_0xcd3c43;var _0x4dba2d;this[_0x4d0e91(0x120)]['next'](_0x4d0e91(0x110)),(_0x4dba2d=this[_0x4d0e91(0x15e)])==null||_0x4dba2d[_0x4d0e91(0x143)](),this[_0x4d0e91(0x15e)]=null;}[_0xcd3c43(0x16a)](){const _0x518d3f=_0xcd3c43;var _0x352e0d;(_0x352e0d=this[_0x518d3f(0x15e)])==null||_0x352e0d['dispose'](),this[_0x518d3f(0x120)]['next']('following');}['_beIdle'](){const _0x5775b2=_0xcd3c43;var _0xf43165;this[_0x5775b2(0x120)][_0x5775b2(0x13c)](_0x5775b2(0x110)),(_0xf43165=this['_commandDisposable'])==null||_0xf43165[_0x5775b2(0x143)](),this['_commandDisposable']=null;}[_0xcd3c43(0xef)](){const _0x462fff=_0xcd3c43;var _0x151384;this[_0x462fff(0x120)]['next']('not-following'),(_0x151384=this[_0x462fff(0x15e)])==null||_0x151384[_0x462fff(0x143)]();}[_0xcd3c43(0x162)](_0x2f255a){const _0x395078=_0xcd3c43;if(['presenting',_0x395078(0x11c),'offline'][_0x395078(0xee)](this['_status'])||!_0x2f255a[_0x395078(0x156)]['presenter']||_0x2f255a[_0x395078(0x156)][_0x395078(0xf6)]===this[_0x395078(0x172)][_0x395078(0x14e)]())return;this['_status']===_0x395078(0x110)&&this[_0x395078(0x16a)]();let _0xaecd78=_0x2f255a['data']['operations'];Object[_0x395078(0x116)](_0xaecd78)['forEach'](_0x39ce5f=>{const _0xbd19df=_0x395078;this['_commandService'][_0xbd19df(0x125)](_0x39ce5f['id'],_0x39ce5f[_0xbd19df(0x103)]?JSON['parse'](_0x39ce5f['params']):null,{'fromCollab':!0x0});});}[_0xcd3c43(0x178)](){const _0x1d09c2=_0xcd3c43;var _0x23918f;this[_0x1d09c2(0x120)]['next']('offline'),(_0x23918f=this['_commandDisposable'])==null||_0x23918f['dispose']();}['_handleOnline'](){const _0x4d9e2c=_0xcd3c43;this[_0x4d9e2c(0x120)][_0x4d9e2c(0x13c)](_0x4d9e2c(0x110)),this['_fetchOperations']();}};J=G([W(0x2,_0x13ab7e),W(0x3,_0x130c38(U)),W(0x4,_0x2aa954)],J);var se=_0xcd3c43(0x147),ce=_0xcd3c43(0x158);const Y={};let X=class extends _0x3d4065{constructor(_0x18262a){super(),this['_liveShareService']=_0x18262a,this['_init']();}[_0xcd3c43(0x161)](){const _0x3f6ab9=_0xcd3c43;[_0x4bc340['id'],_0x5ae29f['id'],_0x2b0483['id']][_0x3f6ab9(0x112)](_0x12ec93=>{const _0x406c78=_0x3f6ab9;this['disposeWithMe'](this[_0x406c78(0x152)][_0x406c78(0x159)](_0x12ec93));});}};X=G([W(0x0,_0x130c38(U))],X);function Z(){const _0x2168b4=_0xcd3c43;let _0x2a469e=_0x361196(K),_0x367e57=_0x361196(_0x5ab737),_0x233cf3=_0x313630(()=>_0x367e57[_0x2168b4(0x142)](_0x3f510f[_0x2168b4(0x173)]),void 0x0,!0x1,[]),_0x5a285b=_0x313630(_0x1c5235(()=>_0x233cf3?_0x4386d9(()=>_0xa7f912(_0x2a469e[_0x2168b4(0x141)](_0x233cf3[_0x2168b4(0x104)]()))):_0x363ac9(null),[_0x233cf3,_0x2a469e]),null),_0x25f125=_0x313630(_0x5a285b?()=>_0x5a285b[_0x2168b4(0xfe)]:null,_0x2168b4(0x110),!0x1,[_0x5a285b]);return _0x5a285b?_0x76736e(_0x5f2dd7,{'align':_0x2168b4(0x124),'disabled':_0x25f125===_0x2168b4(0x157),'className':_0x2168b4(0x121),'overlay':_0x76736e(le,{'status':_0x25f125,'coordinator':_0x5a285b}),'children':_0x76736e(_0x2168b4(0x122),{'className':_0x1b4e86('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x25f125==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25f125!=='offline'}),'type':_0x2168b4(0x122),'children':_0x76736e(_0xbe8107,{})})}):null;}function le(_0x36d926){const _0x3fad99=_0xcd3c43;let {status:_0x3aaa5c,coordinator:_0xd13d33}=_0x36d926;switch(_0x3aaa5c){case _0x3fad99(0x110):return _0x76736e(ue,{'coordinator':_0xd13d33});case _0x3fad99(0x118):return _0x76736e(de,{'coordinator':_0xd13d33});case _0x3fad99(0x11c):return _0x76736e(fe,{'coordinator':_0xd13d33});case'offline':return _0x76736e(me,{});case _0x3fad99(0xf5):return _0x76736e(pe,{'coordinator':_0xd13d33});default:return null;}}function ue(_0x4fda22){const _0x55e02e=_0xcd3c43;let {coordinator:_0x153247}=_0x4fda22;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x55e02e(0x11d),{'className':_0x55e02e(0xf1),'children':_0x55e02e(0x17a)}),_0x76736e(_0x5b7c15,{'onClick':()=>_0x153247[_0x55e02e(0x128)](),'children':_0x55e02e(0x106)})]});}function de(_0x53ca40){const _0x93e357=_0xcd3c43;let {coordinator:_0x314952}=_0x53ca40;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x93e357(0x11d),{'className':_0x93e357(0xf1),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x76736e(_0x5b7c15,{'onClick':()=>_0x314952[_0x93e357(0x174)](),'children':_0x93e357(0x171)})]});}function fe(_0xaacac){const _0x5c4abf=_0xcd3c43;let {coordinator:_0x20c65f}=_0xaacac;return _0x46d651(_0x114c30,{'children':[_0x76736e('div',{'className':_0x5c4abf(0xf1),'children':_0x5c4abf(0x16c)}),_0x76736e(_0x5b7c15,{'variant':_0x5c4abf(0x180),'onClick':()=>_0x20c65f[_0x5c4abf(0x107)](),'children':_0x5c4abf(0x117)})]});}function pe(_0x1a4fb9){const _0x40d5f2=_0xcd3c43;let {coordinator:_0x50eac3}=_0x1a4fb9;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x40d5f2(0x11d),{'className':_0x40d5f2(0xf1),'children':_0x40d5f2(0x14a)}),_0x76736e(_0x5b7c15,{'variant':_0x40d5f2(0x105),'onClick':()=>_0x50eac3[_0x40d5f2(0x148)](),'children':_0x40d5f2(0x13e)})]});}function me(){const _0x237681=_0xcd3c43;return _0x76736e(_0x114c30,{'children':_0x237681(0x168)});}let Q=class extends _0x3d4065{constructor(_0x433b6c,_0xfbdfa8){const _0x875ae1=_0xcd3c43;super(),this['_injector']=_0x433b6c,this[_0x875ae1(0x136)]=_0xfbdfa8,this[_0x875ae1(0x129)]();}[_0xcd3c43(0x129)](){const _0x7dca9a=_0xcd3c43;this[_0x7dca9a(0x14b)](this[_0x7dca9a(0x136)][_0x7dca9a(0xf2)](_0x72c6df[_0x7dca9a(0x166)],()=>_0x33a9bb(Z,this[_0x7dca9a(0x17b)])));}};Q=G([W(0x0,_0x130c38(_0x189051)),W(0x1,_0x3d33a9)],Q);let $=class extends _0x5f36ae{constructor(_0x2e3f2f=Y,_0x28d45f,_0xd601ed){const _0x3760f0=_0xcd3c43;super(),this['_config']=_0x2e3f2f,this[_0x3760f0(0x17b)]=_0x28d45f,this[_0x3760f0(0x146)]=_0xd601ed;let {..._0xa29e9b}=_0x3df356({},Y,this[_0x3760f0(0x16e)]);this[_0x3760f0(0x146)]['setConfig'](_0x3760f0(0x10f),_0xa29e9b);}['onStarting'](){const _0x20903a=_0xcd3c43;_0x24986b(this['_injector'],_0x1f0e7f([[U],[K],[X],[Q]],this[_0x20903a(0x16e)][_0x20903a(0x11a)])),_0x1c595d(this[_0x20903a(0x17b)],[[X]]);}[_0xcd3c43(0x160)](){_0x1c595d(this['_injector'],[[Q]]);}};H($,'type',_0x3f510f[_0xcd3c43(0x179)]),H($,_0xcd3c43(0x11e),_0xcd3c43(0x14f)),H($,_0xcd3c43(0x16b),se),H($,_0xcd3c43(0x13a),ce),$=G([_0x3f835d(_0x337bb8),W(0x1,_0x130c38(_0x189051)),W(0x2,_0x13ab7e)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x6b11(){const _0x12ce95=['FUniver','224349epixxV','getLiveShareCoordinatorSync','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','startFollowing','getLiveShareStatus','call','No\x20active\x20workbook\x20found.','1463ETnoap','1066170FJxzKs','535739zqRkcF','LiveShareStatus','3642462GnnwcD','UniverInstanceType','LiveShareStatusEnum','IUniverInstanceService','amd','2938320ctuFEh','startPresenting','LiveShareController','extend','stopFollowing','function','UniverProLiveShare','get','_initialize','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_injector','117HasMrt','getUnitId','2kyZCXG','_liveShareController','@univerjs-pro/live-share','prototype','11416tQpprG','FEnum','@univerjs/core','stopPresenting','constructor','103828ljZIsp','getStatus','string','defineProperty','symbol','iterator','getCurrentUnitOfType','toPrimitive'];_0x6b11=function(){return _0x12ce95;};return _0x6b11();}function _0x5bb3(_0x3762b8,_0x17be49){_0x3762b8=_0x3762b8-0x12b;const _0x6b11bb=_0x6b11();let _0x5bb3d8=_0x6b11bb[_0x3762b8];return _0x5bb3d8;}(function(_0x178268,_0x5435bb){const _0x344331=_0x5bb3,_0x5960fc=_0x178268();while(!![]){try{const _0x316778=-parseInt(_0x344331(0x158))/0x1*(-parseInt(_0x344331(0x13c))/0x2)+-parseInt(_0x344331(0x14e))/0x3+-parseInt(_0x344331(0x145))/0x4+-parseInt(_0x344331(0x12e))/0x5+-parseInt(_0x344331(0x15a))/0x6+parseInt(_0x344331(0x156))/0x7*(-parseInt(_0x344331(0x140))/0x8)+-parseInt(_0x344331(0x13a))/0x9*(-parseInt(_0x344331(0x157))/0xa);if(_0x316778===_0x5435bb)break;else _0x5960fc['push'](_0x5960fc['shift']());}catch(_0x39c8e2){_0x5960fc['push'](_0x5960fc['shift']());}}}(_0x6b11,0x50164),function(_0x4b747f,_0x3e9b11){const _0x12d603=_0x5bb3;typeof exports==_0x12d603(0x151)&&typeof module<'u'?_0x3e9b11(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x12d603(0x133)&&define[_0x12d603(0x12d)]?define([_0x12d603(0x13e),_0x12d603(0x142),'@univerjs/core/facade'],_0x3e9b11):(_0x4b747f=typeof globalThis<'u'?globalThis:_0x4b747f||self,_0x3e9b11(_0x4b747f[_0x12d603(0x134)],_0x4b747f['UniverCore'],_0x4b747f['UniverCoreFacade']));}(this,function(_0x5b718d,_0xd6d24e,_0x4d8f09){const _0x568dfc=_0x5bb3;function _0x4dc964(_0x53c704){'@babel/helpers - typeof';const _0x482d7b=_0x5bb3;return _0x4dc964=typeof Symbol=='function'&&typeof Symbol[_0x482d7b(0x14a)]==_0x482d7b(0x149)?function(_0x26172d){return typeof _0x26172d;}:function(_0x4d7f75){const _0x156be7=_0x482d7b;return _0x4d7f75&&typeof Symbol=='function'&&_0x4d7f75[_0x156be7(0x144)]===Symbol&&_0x4d7f75!==Symbol[_0x156be7(0x13f)]?'symbol':typeof _0x4d7f75;},_0x4dc964(_0x53c704);}function _0x4e898d(_0x56b317,_0x354cec){const _0x48638b=_0x5bb3;if(_0x4dc964(_0x56b317)!='object'||!_0x56b317)return _0x56b317;var _0x8e602e=_0x56b317[Symbol[_0x48638b(0x14c)]];if(_0x8e602e!==void 0x0){var _0x197d5e=_0x8e602e[_0x48638b(0x154)](_0x56b317,_0x354cec||'default');if(_0x4dc964(_0x197d5e)!=_0x48638b(0x151))return _0x197d5e;throw TypeError(_0x48638b(0x150));}return(_0x354cec===_0x48638b(0x147)?String:Number)(_0x56b317);}function _0x9b1d33(_0x43fdd5){const _0x5a24a3=_0x5bb3;var _0x336183=_0x4e898d(_0x43fdd5,_0x5a24a3(0x147));return _0x4dc964(_0x336183)==_0x5a24a3(0x149)?_0x336183:_0x336183+'';}function _0x2d79e4(_0x46a37e,_0x9ed037,_0x3ca37d){const _0x3560d9=_0x5bb3;return(_0x9ed037=_0x9b1d33(_0x9ed037))in _0x46a37e?Object[_0x3560d9(0x148)](_0x46a37e,_0x9ed037,{'value':_0x3ca37d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46a37e[_0x9ed037]=_0x3ca37d,_0x46a37e;}var _0x4bc421=class extends _0x4d8f09[_0x568dfc(0x14d)]{constructor(..._0x3af64f){const _0x32b643=_0x568dfc;super(..._0x3af64f),_0x2d79e4(this,_0x32b643(0x13d),void 0x0);}[_0x568dfc(0x136)](_0x9bfcb6){const _0x19ea1b=_0x568dfc;this[_0x19ea1b(0x13d)]=_0x9bfcb6['get'](_0x5b718d[_0x19ea1b(0x130)]);}[_0x568dfc(0x153)](){const _0x349ef3=_0x568dfc;var _0x1ae2cc;let _0x12e8c6=this['_injector']['get'](_0xd6d24e[_0x349ef3(0x12c)])[_0x349ef3(0x14b)](_0xd6d24e[_0x349ef3(0x15b)][_0x349ef3(0x137)]);if(!_0x12e8c6)throw Error(_0x349ef3(0x155));let _0x5a2aab=_0x12e8c6['getUnitId'](),_0x4edea5=this[_0x349ef3(0x13d)][_0x349ef3(0x14f)](_0x5a2aab);return(_0x1ae2cc=_0x4edea5==null?void 0x0:_0x4edea5[_0x349ef3(0x146)]())==null?_0x5b718d[_0x349ef3(0x159)]['IDLE']:_0x1ae2cc;}[_0x568dfc(0x152)](){const _0x31545d=_0x568dfc;let _0x4b3eed=this[_0x31545d(0x139)][_0x31545d(0x135)](_0xd6d24e[_0x31545d(0x12c)])[_0x31545d(0x14b)](_0xd6d24e[_0x31545d(0x15b)]['UNIVER_SHEET']);if(!_0x4b3eed)throw Error(_0x31545d(0x155));let _0x401aa0=_0x4b3eed[_0x31545d(0x13b)](),_0x38884d=this[_0x31545d(0x13d)][_0x31545d(0x14f)](_0x401aa0);if(!_0x38884d)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x38884d[_0x31545d(0x152)]();}[_0x568dfc(0x132)](){const _0x27206a=_0x568dfc;let _0x204813=this[_0x27206a(0x139)][_0x27206a(0x135)](_0xd6d24e[_0x27206a(0x12c)])[_0x27206a(0x14b)](_0xd6d24e[_0x27206a(0x15b)]['UNIVER_SHEET']);if(!_0x204813)throw Error(_0x27206a(0x155));let _0x2c4cec=_0x204813['getUnitId'](),_0x1a916a=this['_liveShareController'][_0x27206a(0x14f)](_0x2c4cec);if(!_0x1a916a)throw Error(_0x27206a(0x138));_0x1a916a[_0x27206a(0x132)]();}[_0x568dfc(0x12f)](){const _0x2f7384=_0x568dfc;let _0x8ad3c0=this['_injector']['get'](_0xd6d24e['IUniverInstanceService'])[_0x2f7384(0x14b)](_0xd6d24e['UniverInstanceType'][_0x2f7384(0x137)]);if(!_0x8ad3c0)throw Error('No\x20active\x20workbook\x20found.');let _0x1b6394=_0x8ad3c0['getUnitId'](),_0x3343f1=this[_0x2f7384(0x13d)]['getLiveShareCoordinatorSync'](_0x1b6394);if(!_0x3343f1)throw Error(_0x2f7384(0x138));_0x3343f1['tryStartPresenting']();}[_0x568dfc(0x143)](){const _0x4e560c=_0x568dfc;let _0x5e9545=this[_0x4e560c(0x139)][_0x4e560c(0x135)](_0xd6d24e[_0x4e560c(0x12c)])['getCurrentUnitOfType'](_0xd6d24e[_0x4e560c(0x15b)][_0x4e560c(0x137)]);if(!_0x5e9545)throw Error(_0x4e560c(0x155));let _0x5170b5=_0x5e9545[_0x4e560c(0x13b)](),_0x95a0fd=this[_0x4e560c(0x13d)]['getLiveShareCoordinatorSync'](_0x5170b5);if(!_0x95a0fd)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x95a0fd[_0x4e560c(0x143)]();}};_0x4d8f09[_0x568dfc(0x14d)]['extend'](_0x4bc421);var _0x295eab=class extends _0x4d8f09['FEnum']{get[_0x568dfc(0x12b)](){const _0xc946e6=_0x568dfc;return _0x5b718d[_0xc946e6(0x159)];}};_0x4d8f09[_0x568dfc(0x141)][_0x568dfc(0x131)](_0x295eab);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xc27b(_0x36334f,_0x1ec772){_0x36334f=_0x36334f-0x6c;const _0x4c57b9=_0x4c57();let _0xc27b75=_0x4c57b9[_0x36334f];return _0xc27b75;}function _0x4c57(){const _0x3722d5=['React','subject','path','type','map','url(#$1','_mountLiveShare','stopPresenting','tryStartPresenting','mask','createInstance','getInitialStates','_handleNewChangeSets','unit','Start','LiveShareController','onStarting','IUniverInstanceService','presenter','Stop\x20following','_config','Dropdown','tag','@univerjs-pro/collaboration-client','_handleOnline','Start\x20following','symbol','2252fSArXs','_unitID','@univerjs/sheets','186XeJRVQ','registerComponent','getLiveShareCoordinatorSync','mutations','_status','toDisposable','defineProperty','_status$','includes','live-share-icon','2625730HlUiLR','LIVESHARE_NEW_HOST','params','currentColor','parseProtocolChangeset','stroke','createElement','ONLINE','_commandDisposable','useObservable','_sharedOperations','IConfigService','defer','getStatus','Fragment','operations','_beIdle','touchDependencies','next','rxjs/operators','has','getMemberID','react','_liveShareService','div','packageName','BuiltInUIPart','SetScrollOperation','getTypeOfUnitAdded$','getConfig','UniverCollaborationClientPlugin','text','CommandType','PRESENTING','265255Wiwxof','connectInjector','idle','stopFollowing','1em','xlink:href','attrs','_collabSessionService','shouldShareOperation','Button','delete','@univerjs/sheets-ui','IUIPartsService','dispose$','_uiPartsService','Present\x20this\x20document','Stop\x20presenting','RxDisposable','16ehKCNP','ICommandService','svg','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_fetchOperations','default','LIVESHARE_REQUEST_HOST','iterator','complete','live-share.config','UniverCore','LIVESHARE_FETCH_OPERATIONS','react/jsx-runtime','rxjs','defs','HEADER_MENU','UniverInstanceType','registerDependencies','prototype','You\x27re\x20not\x20following\x20the\x20presenter','stringify','@univerjs-pro/collaboration','DependentOn','button','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','status$','find','dispose','merge','idSuffix','send','_commandService','length','UniverProCollaboration','startFollowing','clear','_handleNewHost','registerSharedOperation','LIVESHARE_OPERATION','_univerInstanceService','_presenter','entries','reverse','parse','following','children','sessionStatus$','getOwnPropertyDescriptor','useDependency','UniverSheetsUi','_startPresenting','jsxs','forEach','Injector','offline','SetWorksheetActiveOperation','forwardRef','init','@univerjs/ui','getValue','_startLiveShareCoordinator','fill','Subject','current','UNIVER_SHEET','unitId','useMemo','evenodd','presenting','4RNONTR','UNIVER_LIVE_SHARE_PLUGIN','_stopFollowing','CollaborationSessionService','SessionStatus','SAME_OPERATION_SHARE_INTERVAL','none','trim','replace','IDLE','takeUntil','Inject','UniverUi','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','642355TdMLUS','_configService','string','_stopPresenting','setConfig','_reporters','set','sheet','http://www.w3.org/2000/svg','subscribe','pipe','exports','displayName','toStringTag','getUnitId','object','_handleOffline','971700RwxVkp','Plugin','_startFollowing','_injector','7590eARdZk','function','requireSession','disposeWithMe','univer-mb-3\x20univer-w-full\x20univer-text-sm','event$','CollaborationEvent','1252107TrxcFw','colorChannel1','OFFLINE','defIds','from','random','_handleTerminate','decorate','pluginName','get','add','You\x27are\x20offline.','DisposableCollection','Module','@univerjs-pro/live-share','throttleTime','1.0.0-alpha.6','unsubscribe','not-following','values','useRef','InsertSheetMutation','Disposable','assign','_init','data','_entities','SetZoomRatioOperation','jsx','executeCommand','_collabSession'];_0x4c57=function(){return _0x3722d5;};return _0x4c57();}(function(_0x550b65,_0xe75396){const _0x2b74d4=_0xc27b,_0x3814a0=_0x550b65();while(!![]){try{const _0x13dce1=parseInt(_0x2b74d4(0x86))/0x1+-parseInt(_0x2b74d4(0xc7))/0x2*(-parseInt(_0x2b74d4(0xca))/0x3)+parseInt(_0x2b74d4(0x14d))/0x4*(-parseInt(_0x2b74d4(0xf6))/0x5)+parseInt(_0x2b74d4(0x82))/0x6+parseInt(_0x2b74d4(0x71))/0x7*(-parseInt(_0x2b74d4(0x108))/0x8)+-parseInt(_0x2b74d4(0x8d))/0x9+parseInt(_0x2b74d4(0xd4))/0xa;if(_0x13dce1===_0xe75396)break;else _0x3814a0['push'](_0x3814a0['shift']());}catch(_0xe9b9de){_0x3814a0['push'](_0x3814a0['shift']());}}}(_0x4c57,0x1ed0d),function(_0xd64f2,_0x503091){const _0x429d78=_0xc27b;typeof exports==_0x429d78(0x80)&&typeof module<'u'?_0x503091(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define=='function'&&define['amd']?define([_0x429d78(0x7c),_0x429d78(0x11d),_0x429d78(0xc3),'@univerjs/core',_0x429d78(0xc9),_0x429d78(0x115),_0x429d78(0xe7),_0x429d78(0x101),_0x429d78(0x142),'@univerjs/design',_0x429d78(0xea),_0x429d78(0x114)],_0x503091):(_0xd64f2=typeof globalThis<'u'?globalThis:_0xd64f2||self,_0x503091(_0xd64f2['UniverProLiveShare']={},_0xd64f2[_0x429d78(0x129)],_0xd64f2['UniverProCollaborationClient'],_0xd64f2[_0x429d78(0x112)],_0xd64f2['UniverSheets'],_0xd64f2[_0x429d78(0x115)],_0xd64f2[_0x429d78(0x115)]['operators'],_0xd64f2[_0x429d78(0x139)],_0xd64f2[_0x429d78(0x6f)],_0xd64f2['UniverDesign'],_0xd64f2[_0x429d78(0xac)],_0xd64f2['React']));}(this,function(_0x5b27b4,_0x4b983a,_0x2c7683,_0x4f400d,_0xbae52,_0x177f8f,_0x5e1b38,_0x45e1d3,_0x57b3a6,_0x6ecfbf,_0x4e3fce,_0x4ebdde){const _0x60cf4a=_0xc27b;Object[_0x60cf4a(0xd0)](_0x5b27b4,Symbol[_0x60cf4a(0x7e)],{'value':_0x60cf4a(0x9a)});function _0x58aa06(_0x2c9b7b){'@babel/helpers - typeof';const _0x4a9c43=_0x60cf4a;return _0x58aa06=typeof Symbol==_0x4a9c43(0x87)&&typeof Symbol[_0x4a9c43(0x10f)]==_0x4a9c43(0xc6)?function(_0xb0e60b){return typeof _0xb0e60b;}:function(_0x46ef60){const _0xe83cc5=_0x4a9c43;return _0x46ef60&&typeof Symbol==_0xe83cc5(0x87)&&_0x46ef60['constructor']===Symbol&&_0x46ef60!==Symbol[_0xe83cc5(0x11a)]?_0xe83cc5(0xc6):typeof _0x46ef60;},_0x58aa06(_0x2c9b7b);}function _0x209c16(_0x5c0c3b,_0x905b7b){const _0xbc48d5=_0x60cf4a;if(_0x58aa06(_0x5c0c3b)!='object'||!_0x5c0c3b)return _0x5c0c3b;var _0x1cc65c=_0x5c0c3b[Symbol['toPrimitive']];if(_0x1cc65c!==void 0x0){var _0x1b5b14=_0x1cc65c['call'](_0x5c0c3b,_0x905b7b||_0xbc48d5(0x10d));if(_0x58aa06(_0x1b5b14)!=_0xbc48d5(0x80))return _0x1b5b14;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x905b7b===_0xbc48d5(0x73)?String:Number)(_0x5c0c3b);}function _0x501b24(_0x5eda31){const _0x2c2376=_0x60cf4a;var _0x1b3a8a=_0x209c16(_0x5eda31,_0x2c2376(0x73));return _0x58aa06(_0x1b3a8a)==_0x2c2376(0xc6)?_0x1b3a8a:_0x1b3a8a+'';}function _0x104c71(_0x578742,_0x4a2d19,_0x17ba6e){const _0x3e8e59=_0x60cf4a;return(_0x4a2d19=_0x501b24(_0x4a2d19))in _0x578742?Object[_0x3e8e59(0xd0)](_0x578742,_0x4a2d19,{'value':_0x17ba6e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x578742[_0x4a2d19]=_0x17ba6e,_0x578742;}var _0x5b84b7=class extends _0x4f400d[_0x60cf4a(0xa3)]{constructor(..._0x4f1ecc){const _0x4161f=_0x60cf4a;super(..._0x4f1ecc),_0x104c71(this,'_sharedOperations',new Set()),_0x104c71(this,_0x4161f(0x76),new Set());}['registerSharedOperation'](_0x4e978f){const _0x1f2cf5=_0x60cf4a;return this['_sharedOperations']['add'](_0x4e978f),(0x0,_0x4f400d['toDisposable'])(()=>this[_0x1f2cf5(0xde)][_0x1f2cf5(0x100)](_0x4e978f));}['registerInitialStateReporter'](_0x934231){const _0x193db8=_0x60cf4a;return this[_0x193db8(0x76)][_0x193db8(0x97)](_0x934231),(0x0,_0x4f400d[_0x193db8(0xcf)])(()=>this[_0x193db8(0x76)][_0x193db8(0x100)](_0x934231));}[_0x60cf4a(0xfe)](_0x41532d){const _0x15c914=_0x60cf4a;return this['_sharedOperations'][_0x15c914(0xe8)](_0x41532d);}[_0x60cf4a(0xb7)](_0x32953e){const _0x1059f9=_0x60cf4a;return Array[_0x1059f9(0x91)](this[_0x1059f9(0x76)])[_0x1059f9(0xb0)](_0x1c269b=>_0x1c269b(_0x32953e));}};function _0x4ef551(_0x5494b6,_0xf48b4d){return function(_0x144f04,_0x4d3838){_0xf48b4d(_0x144f04,_0x4d3838,_0x5494b6);};}function _0x33e881(_0x5b0566,_0x5b16d7,_0x19d4b4,_0x528b7b){const _0x4c7084=_0x60cf4a;var _0x401937=arguments[_0x4c7084(0x128)],_0x39fd0a=_0x401937<0x3?_0x5b16d7:_0x528b7b===null?_0x528b7b=Object[_0x4c7084(0x137)](_0x5b16d7,_0x19d4b4):_0x528b7b,_0x4d9edd;if(typeof Reflect==_0x4c7084(0x80)&&typeof Reflect['decorate']==_0x4c7084(0x87))_0x39fd0a=Reflect[_0x4c7084(0x94)](_0x5b0566,_0x5b16d7,_0x19d4b4,_0x528b7b);else{for(var _0x4bdd65=_0x5b0566[_0x4c7084(0x128)]-0x1;_0x4bdd65>=0x0;_0x4bdd65--)(_0x4d9edd=_0x5b0566[_0x4bdd65])&&(_0x39fd0a=(_0x401937<0x3?_0x4d9edd(_0x39fd0a):_0x401937>0x3?_0x4d9edd(_0x5b16d7,_0x19d4b4,_0x39fd0a):_0x4d9edd(_0x5b16d7,_0x19d4b4))||_0x39fd0a);}return _0x401937>0x3&&_0x39fd0a&&Object[_0x4c7084(0xd0)](_0x5b16d7,_0x19d4b4,_0x39fd0a),_0x39fd0a;}let _0x53ac8a=class extends _0x4f400d[_0x60cf4a(0x107)]{constructor(_0x2a8e4e,_0xd281fc,_0x3c43e6){const _0x3580f7=_0x60cf4a;super(),this[_0x3580f7(0x12f)]=_0x2a8e4e,this[_0x3580f7(0x85)]=_0xd281fc,this[_0x3580f7(0xfd)]=_0x3c43e6,_0x104c71(this,_0x3580f7(0xa7),new Map()),this[_0x3580f7(0xa5)]();}async['getLiveShareCoordinator'](_0xa19732){const _0x248f12=_0x60cf4a;return this['_entities'][_0x248f12(0xe8)](_0xa19732)||await this['_startLiveShareCoordinator'](_0xa19732),this[_0x248f12(0xa7)][_0x248f12(0x96)](_0xa19732);}[_0x60cf4a(0xcc)](_0x257254){const _0x448e16=_0x60cf4a;var _0x12dd05;return(_0x12dd05=this[_0x448e16(0xa7)][_0x448e16(0x96)](_0x257254))==null?null:_0x12dd05;}['_init'](){const _0x2c100d=_0x60cf4a;this[_0x2c100d(0x12f)][_0x2c100d(0xf0)](_0x4f400d[_0x2c100d(0x118)][_0x2c100d(0x148)])[_0x2c100d(0x7b)]((0x0,_0x5e1b38[_0x2c100d(0x6d)])(this[_0x2c100d(0x103)]))[_0x2c100d(0x7a)](async _0x51e583=>{const _0x1a4536=_0x2c100d;let _0x4057e6=_0x51e583[_0x1a4536(0xb9)][_0x1a4536(0x7f)]();this[_0x1a4536(0xa7)]['has'](_0x4057e6)||this[_0x1a4536(0x144)](_0x4057e6);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4f400d['UniverInstanceType'][_0x2c100d(0x148)])['pipe']((0x0,_0x5e1b38[_0x2c100d(0x6d)])(this['dispose$']))[_0x2c100d(0x7a)](_0x1b599a=>{const _0x542551=_0x2c100d;let _0x3a135a=_0x1b599a[_0x542551(0x7f)](),_0x439a9e=this[_0x542551(0xa7)][_0x542551(0x96)](_0x3a135a);_0x439a9e==null||_0x439a9e[_0x542551(0x123)]();});}async[_0x60cf4a(0x144)](_0x13dad4){const _0x386b69=_0x60cf4a;let _0x209408=await this[_0x386b69(0xfd)][_0x386b69(0x88)](_0x13dad4),_0x946a17=this[_0x386b69(0x85)][_0x386b69(0xb6)](_0x1c9382,_0x13dad4,_0x209408);return _0x946a17[_0x386b69(0x141)](),this[_0x386b69(0xa7)][_0x386b69(0x77)](_0x13dad4,_0x946a17),_0x946a17;}};_0x53ac8a=_0x33e881([_0x4ef551(0x0,_0x4f400d[_0x60cf4a(0xbd)]),_0x4ef551(0x1,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x4f400d[_0x60cf4a(0x13d)])),_0x4ef551(0x2,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x2c7683[_0x60cf4a(0x150)]))],_0x53ac8a);let _0x1801f4=function(_0x1ab45d){const _0x2c18d2=_0x60cf4a;return _0x1ab45d[_0x2c18d2(0x8f)]=_0x2c18d2(0x13e),_0x1ab45d[_0x2c18d2(0x6c)]=_0x2c18d2(0xf8),_0x1ab45d['FOLLOWING']=_0x2c18d2(0x134),_0x1ab45d['NOT_FOLLOWING']=_0x2c18d2(0x9f),_0x1ab45d[_0x2c18d2(0xf5)]=_0x2c18d2(0x14c),_0x1ab45d;}({}),_0x1c9382=class extends _0x4f400d[_0x60cf4a(0x107)]{get[_0x60cf4a(0xce)](){const _0x3c61ff=_0x60cf4a;return this[_0x3c61ff(0xd1)][_0x3c61ff(0x143)]();}constructor(_0x92ed0b,_0x58c3fe,_0x133a1d,_0x33f9bb,_0x45140c){const _0x153067=_0x60cf4a;super(),this[_0x153067(0xc8)]=_0x92ed0b,this[_0x153067(0xab)]=_0x58c3fe,this['_configService']=_0x133a1d,this[_0x153067(0xeb)]=_0x33f9bb,this[_0x153067(0x127)]=_0x45140c,_0x104c71(this,_0x153067(0xd1),new _0x177f8f['BehaviorSubject'](_0x153067(0xf8))),_0x104c71(this,_0x153067(0x121),this[_0x153067(0xd1)]['asObservable']()),_0x104c71(this,_0x153067(0xa5),!0x1),_0x104c71(this,_0x153067(0xdc),null),_0x104c71(this,_0x153067(0x130),null);}[_0x60cf4a(0x123)](){const _0x24e998=_0x60cf4a;var _0x13b89f;(_0x13b89f=this[_0x24e998(0xdc)])==null||_0x13b89f['dispose'](),this[_0x24e998(0xd1)][_0x24e998(0xe6)](_0x24e998(0xf8)),this[_0x24e998(0xd1)][_0x24e998(0x110)]();}[_0x60cf4a(0xe1)](){const _0x4879b9=_0x60cf4a;return this[_0x4879b9(0xce)];}[_0x60cf4a(0x141)](){const _0xdbfca2=_0x60cf4a;this['_init']||(this[_0xdbfca2(0xa5)]=!0x0,this[_0xdbfca2(0xab)][_0xdbfca2(0x136)][_0xdbfca2(0x7b)]((0x0,_0x5e1b38[_0xdbfca2(0x6d)])(this[_0xdbfca2(0x103)]))['subscribe'](_0x3fa9ae=>{const _0x3246c6=_0xdbfca2;switch(_0x3fa9ae){case _0x2c7683[_0x3246c6(0x151)]['OFFLINE']:this[_0x3246c6(0x81)]();break;case _0x2c7683[_0x3246c6(0x151)][_0x3246c6(0xdb)]:this['_handleOnline']();break;default:}}),this[_0xdbfca2(0xab)][_0xdbfca2(0x8b)]['pipe']((0x0,_0x5e1b38[_0xdbfca2(0x6d)])(this[_0xdbfca2(0x103)]))[_0xdbfca2(0x7a)](_0x3a21a7=>{const _0x3416d5=_0xdbfca2;let {eventID:_0x25201e}=_0x3a21a7;switch(_0x25201e){case _0x4b983a[_0x3416d5(0x8c)][_0x3416d5(0xd5)]:this[_0x3416d5(0x12c)](_0x3a21a7);break;case _0x4b983a[_0x3416d5(0x8c)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3a21a7);break;case _0x4b983a[_0x3416d5(0x8c)]['LIVESHARE_TERMINATE']:this[_0x3416d5(0x93)]();break;case _0x4b983a[_0x3416d5(0x8c)]['NEW_CHANGESETS']:this[_0x3416d5(0xb8)](_0x3a21a7);break;default:}}));}[_0x60cf4a(0xb4)](){const _0x16c486=_0x60cf4a;this[_0x16c486(0xab)]['send']({'eventID':_0x4b983a[_0x16c486(0x8c)][_0x16c486(0x10e)],'data':{'unitID':this[_0x16c486(0xc8)],'userID':this[_0x16c486(0xab)][_0x16c486(0xe9)]()}},this[_0x16c486(0xc8)]);}[_0x60cf4a(0xb3)](){const _0x144c35=_0x60cf4a;this['_status']===_0x144c35(0x14c)&&(this[_0x144c35(0xd1)]['next'](_0x144c35(0xf8)),this[_0x144c35(0xab)][_0x144c35(0x126)]({'eventID':_0x4b983a[_0x144c35(0x8c)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x144c35(0xc8)]));}[_0x60cf4a(0x12a)](){const _0x1f853c=_0x60cf4a;this[_0x1f853c(0xce)]===_0x1f853c(0x9f)&&(this[_0x1f853c(0xd1)]['next'](_0x1f853c(0x134)),this[_0x1f853c(0x84)]());}[_0x60cf4a(0xf9)](){const _0xac727d=_0x60cf4a;this[_0xac727d(0xce)]===_0xac727d(0x134)&&this[_0xac727d(0x14f)]();}[_0x60cf4a(0x12c)](_0x4b34a3){const _0x22e2a6=_0x60cf4a;let {presenter:_0xd4ce5a}=_0x4b34a3['data'],_0x2c963f=this[_0x22e2a6(0xab)]['getMemberID']();this[_0x22e2a6(0x130)]=_0xd4ce5a,_0xd4ce5a===_0x2c963f?(this[_0x22e2a6(0x14f)](),this[_0x22e2a6(0x13a)]()):this['_status']!==_0x22e2a6(0x9f)&&(this['_stopPresenting'](),this[_0x22e2a6(0x84)]());}[_0x60cf4a(0x10c)](){const _0x18b290=_0x60cf4a;let _0x33faad={'eventID':_0x4b983a['CollaborationEvent'][_0x18b290(0x113)]};this['_collabSession'][_0x18b290(0x126)](_0x33faad,this[_0x18b290(0xc8)]);}['_handleTerminate'](){const _0x48af6d=_0x60cf4a;this[_0x48af6d(0x130)]=null,this[_0x48af6d(0xce)]!==_0x48af6d(0x14c)&&this['_beIdle']();}[_0x60cf4a(0xb8)](_0x3ea8db){const _0x952e66=_0x60cf4a;if(this[_0x952e66(0xce)]==='following'&&this[_0x952e66(0x130)]===_0x3ea8db[_0x952e66(0xa6)]['memberID']){let _0x7ddc2d=(0x0,_0x4b983a[_0x952e66(0xd8)])(_0x3ea8db[_0x952e66(0xa6)])[_0x952e66(0xcd)][_0x952e66(0x132)]()[_0x952e66(0x122)](_0x13e643=>_0x13e643['id']===_0xbae52[_0x952e66(0xa2)]['id']);if(_0x7ddc2d){let _0xcd5c94=_0x7ddc2d[_0x952e66(0xd6)][_0x952e66(0x149)],_0x5dfe00=_0x7ddc2d[_0x952e66(0xd6)][_0x952e66(0x78)]['id'];setTimeout(()=>{const _0x4e5b27=_0x952e66;this['_commandService'][_0x4e5b27(0xaa)](_0xbae52[_0x4e5b27(0x13f)]['id'],{'unitId':_0xcd5c94,'subUnitId':_0x5dfe00},{'fromCollab':!0x0});});}}}[_0x60cf4a(0x13a)](){const _0x155891=_0x60cf4a;var _0x2dd8ea;(_0x2dd8ea=this['_commandDisposable'])==null||_0x2dd8ea[_0x155891(0x123)](),this[_0x155891(0xd1)][_0x155891(0xe6)](_0x155891(0x14c));let _0x5012b1=new Map(),_0x476b60=this[_0x155891(0xdc)]=new _0x4f400d[(_0x155891(0x99))]();_0x476b60['add']((0x0,_0x4f400d[_0x155891(0xcf)])(()=>{const _0x138fb3=_0x155891;_0x5012b1[_0x138fb3(0x13c)](({subject:_0xc9735c,subscription:_0x30ab98})=>{const _0x1d12da=_0x138fb3;_0x30ab98[_0x1d12da(0x9e)](),_0xc9735c[_0x1d12da(0x110)]();}),_0x5012b1[_0x138fb3(0x12b)]();})),_0x476b60['add'](this[_0x155891(0x127)]['onCommandExecuted'](_0x1c9047=>{const _0x5d95e8=_0x155891;if(_0x1c9047[_0x5d95e8(0xaf)]!==_0x4f400d[_0x5d95e8(0xf4)]['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x1c9047['id']))return;let {id:_0x300de3}=_0x1c9047,_0x54d244;if(_0x5012b1[_0x5d95e8(0xe8)](_0x300de3))_0x54d244=_0x5012b1[_0x5d95e8(0x96)](_0x300de3)[_0x5d95e8(0xad)];else{var _0x3bb767;_0x54d244=new _0x177f8f[(_0x5d95e8(0x146))]();let _0x2acf17=_0x54d244[_0x5d95e8(0x7b)]((0x0,_0x5e1b38[_0x5d95e8(0x9c)])((_0x3bb767=this[_0x5d95e8(0x72)][_0x5d95e8(0xf1)](_0x5d95e8(0x152)))==null?0xc8:_0x3bb767,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5d95e8(0x7a)](_0x692a88=>{const _0x1462d1=_0x5d95e8;this[_0x1462d1(0xab)]['send']({'eventID':_0x4b983a[_0x1462d1(0x8c)][_0x1462d1(0x12e)],'data':{'unitID':this[_0x1462d1(0xc8)],'operations':{[_0x692a88['id']]:{'id':_0x692a88['id'],'params':JSON[_0x1462d1(0x11c)](_0x692a88[_0x1462d1(0xd6)])}}}},this[_0x1462d1(0xc8)]);});_0x5012b1[_0x5d95e8(0x77)](_0x300de3,{'subject':_0x54d244,'subscription':_0x2acf17});}_0x54d244[_0x5d95e8(0xe6)](_0x1c9047);})),this[_0x155891(0xeb)][_0x155891(0xb7)](this[_0x155891(0xc8)])[_0x155891(0x13c)](_0x56f60d=>this[_0x155891(0xab)][_0x155891(0x126)]({'eventID':_0x4b983a['CollaborationEvent'][_0x155891(0x12e)],'data':{'unitID':this[_0x155891(0xc8)],'operations':{[_0x56f60d['id']]:{'id':_0x56f60d['id'],'params':JSON[_0x155891(0x11c)](_0x56f60d[_0x155891(0xd6)])}}}},this['_unitID']));}[_0x60cf4a(0x74)](){const _0x288b44=_0x60cf4a;var _0x55793f;this[_0x288b44(0xd1)]['next'](_0x288b44(0xf8)),(_0x55793f=this[_0x288b44(0xdc)])==null||_0x55793f[_0x288b44(0x123)](),this[_0x288b44(0xdc)]=null;}[_0x60cf4a(0x84)](){const _0x15cbd1=_0x60cf4a;var _0x303bb4;(_0x303bb4=this[_0x15cbd1(0xdc)])==null||_0x303bb4[_0x15cbd1(0x123)](),this[_0x15cbd1(0xd1)][_0x15cbd1(0xe6)]('following');}[_0x60cf4a(0xe4)](){const _0x3e6a87=_0x60cf4a;var _0x81b5bb;this[_0x3e6a87(0xd1)][_0x3e6a87(0xe6)](_0x3e6a87(0xf8)),(_0x81b5bb=this['_commandDisposable'])==null||_0x81b5bb[_0x3e6a87(0x123)](),this[_0x3e6a87(0xdc)]=null;}['_stopFollowing'](){const _0x46f986=_0x60cf4a;var _0x35ae97;this[_0x46f986(0xd1)][_0x46f986(0xe6)](_0x46f986(0x9f)),(_0x35ae97=this[_0x46f986(0xdc)])==null||_0x35ae97['dispose']();}['_handleOperation'](_0xba1dd4){const _0x8df1e1=_0x60cf4a;if(['presenting','not-following',_0x8df1e1(0x13e)][_0x8df1e1(0xd2)](this['_status'])||!_0xba1dd4[_0x8df1e1(0xa6)][_0x8df1e1(0xbe)]||_0xba1dd4[_0x8df1e1(0xa6)]['presenter']===this[_0x8df1e1(0xab)][_0x8df1e1(0xe9)]())return;this[_0x8df1e1(0xce)]===_0x8df1e1(0xf8)&&this[_0x8df1e1(0x84)]();let _0x75a959=_0xba1dd4[_0x8df1e1(0xa6)][_0x8df1e1(0xe3)];Object[_0x8df1e1(0xa0)](_0x75a959)[_0x8df1e1(0x13c)](_0x3898e9=>{const _0x52c24e=_0x8df1e1;this[_0x52c24e(0x127)]['executeCommand'](_0x3898e9['id'],_0x3898e9[_0x52c24e(0xd6)]?JSON[_0x52c24e(0x133)](_0x3898e9[_0x52c24e(0xd6)]):null,{'fromCollab':!0x0});});}[_0x60cf4a(0x81)](){const _0x3f625e=_0x60cf4a;var _0x55b1a7;this['_status$']['next'](_0x3f625e(0x13e)),(_0x55b1a7=this[_0x3f625e(0xdc)])==null||_0x55b1a7[_0x3f625e(0x123)]();}[_0x60cf4a(0xc4)](){const _0x223d07=_0x60cf4a;this[_0x223d07(0xd1)][_0x223d07(0xe6)](_0x223d07(0xf8)),this['_fetchOperations']();}};_0x1c9382=_0x33e881([_0x4ef551(0x2,_0x4f400d[_0x60cf4a(0xdf)]),_0x4ef551(0x3,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x5b84b7)),_0x4ef551(0x4,_0x4f400d[_0x60cf4a(0x109)])],_0x1c9382);var _0x9b74a2=_0x60cf4a(0x9b),_0x3e3ee6=_0x60cf4a(0x9d);let _0x7fad35={},_0x1ab3ac=class extends _0x4f400d[_0x60cf4a(0xa3)]{constructor(_0x154196){const _0x4fc8b5=_0x60cf4a;super(),this[_0x4fc8b5(0xeb)]=_0x154196,this[_0x4fc8b5(0xa5)]();}[_0x60cf4a(0xa5)](){const _0x5561f7=_0x60cf4a;[_0x45e1d3[_0x5561f7(0xa8)]['id'],_0x45e1d3[_0x5561f7(0xef)]['id'],_0xbae52[_0x5561f7(0x13f)]['id']][_0x5561f7(0x13c)](_0x357bd5=>{const _0x52a345=_0x5561f7;this['disposeWithMe'](this[_0x52a345(0xeb)][_0x52a345(0x12d)](_0x357bd5));});}};_0x1ab3ac=_0x33e881([_0x4ef551(0x0,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x5b84b7))],_0x1ab3ac);function _0x3fa625({ref:_0x5cd498,..._0x1698e5}){const _0x4519ac=_0x60cf4a;let {icon:_0x48790c,id:_0x777b42,className:_0x31a77a,extend:_0x91b507,..._0x29b2d8}=_0x1698e5,_0xd2696d=('univerjs-icon\x20univerjs-icon-'+_0x777b42+'\x20'+(_0x31a77a||''))[_0x4519ac(0x154)](),_0x59a53c=(0x0,_0x4e3fce[_0x4519ac(0xa1)])('_'+_0x3e7ac0());return _0x29b87e(_0x48790c,''+_0x777b42,{'defIds':_0x48790c[_0x4519ac(0x90)],'idSuffix':_0x59a53c[_0x4519ac(0x147)]},{'ref':_0x5cd498,'className':_0xd2696d,..._0x29b2d8},_0x91b507);}function _0x29b87e(_0x4ded35,_0x396387,_0x35519e,_0x5486ab,_0x197f00){const _0x204ce4=_0x60cf4a;return(0x0,_0x4e3fce[_0x204ce4(0xda)])(_0x4ded35[_0x204ce4(0xc2)],{'key':_0x396387,..._0x38c58d(_0x4ded35,_0x35519e,_0x197f00),..._0x5486ab},(_0x3a695e(_0x4ded35,_0x35519e)[_0x204ce4(0x135)]||[])['map']((_0x4fdfbd,_0x9bc719)=>_0x29b87e(_0x4fdfbd,_0x396387+'-'+_0x4ded35[_0x204ce4(0xc2)]+'-'+_0x9bc719,_0x35519e,void 0x0,_0x197f00)));}function _0x38c58d(_0x50d8d5,_0x5f1613,_0x344d88){const _0x753188=_0x60cf4a;let _0x54886e={..._0x50d8d5[_0x753188(0xfc)]};_0x344d88!=null&&_0x344d88[_0x753188(0x8e)]&&_0x54886e[_0x753188(0x145)]==='colorChannel1'&&(_0x54886e[_0x753188(0x145)]=_0x344d88[_0x753188(0x8e)]),_0x344d88!=null&&_0x344d88['colorChannel1']&&_0x54886e[_0x753188(0xd9)]===_0x753188(0x8e)&&(_0x54886e['stroke']=_0x344d88['colorChannel1']),_0x50d8d5[_0x753188(0xc2)]===_0x753188(0xb5)&&_0x54886e['id']&&(_0x54886e['id']+=_0x5f1613[_0x753188(0x125)]),Object[_0x753188(0x131)](_0x54886e)[_0x753188(0x13c)](([_0x2a5951,_0x2d10cf])=>{const _0x452db5=_0x753188;_0x2a5951===_0x452db5(0xb5)&&typeof _0x2d10cf=='string'&&(_0x54886e[_0x2a5951]=_0x2d10cf[_0x452db5(0x155)](/url\(#(.*)\)/,_0x452db5(0xb1)+_0x5f1613[_0x452db5(0x125)]+')'));});let {defIds:_0x1090d0}=_0x5f1613;return!_0x1090d0||_0x1090d0['length']===0x0?_0x54886e:(_0x50d8d5[_0x753188(0xc2)]==='use'&&_0x54886e[_0x753188(0xfb)]&&(_0x54886e[_0x753188(0xfb)]+=_0x5f1613['idSuffix']),Object[_0x753188(0x131)](_0x54886e)['forEach'](([_0x26cf59,_0x3b69bd])=>{const _0x46eefc=_0x753188;typeof _0x3b69bd==_0x46eefc(0x73)&&(_0x54886e[_0x26cf59]=_0x3b69bd[_0x46eefc(0x155)](/url\(#(.*)\)/,'url(#$1'+_0x5f1613['idSuffix']+')'));}),_0x54886e);}function _0x3a695e(_0x2c4eaa,_0x1c3c6a){const _0x325139=_0x60cf4a;var _0x253d01;let {defIds:_0x51b7df}=_0x1c3c6a;return!_0x51b7df||_0x51b7df['length']===0x0?_0x2c4eaa:_0x2c4eaa['tag']===_0x325139(0x116)&&(_0x253d01=_0x2c4eaa[_0x325139(0x135)])!=null&&_0x253d01['length']?{..._0x2c4eaa,'children':_0x2c4eaa[_0x325139(0x135)][_0x325139(0xb0)](_0x1eda7e=>typeof _0x1eda7e[_0x325139(0xfc)]['id']==_0x325139(0x73)&&_0x51b7df&&_0x51b7df[_0x325139(0xd2)](_0x1eda7e[_0x325139(0xfc)]['id'])?{..._0x1eda7e,'attrs':{..._0x1eda7e[_0x325139(0xfc)],'id':_0x1eda7e[_0x325139(0xfc)]['id']+_0x1c3c6a[_0x325139(0x125)]}}:_0x1eda7e)}:_0x2c4eaa;}function _0x3e7ac0(){const _0xa6b0df=_0x60cf4a;return Math[_0xa6b0df(0x92)]()['toString'](0x24)['substring'](0x2,0x8);}_0x3fa625['displayName']='UniverIcon';let _0x8289bc={'tag':_0x60cf4a(0x10a),'attrs':{'xmlns':_0x60cf4a(0x79),'fill':_0x60cf4a(0x153),'viewBox':'0\x200\x2017\x2017','width':_0x60cf4a(0xfa),'height':_0x60cf4a(0xfa)},'children':[{'tag':_0x60cf4a(0xae),'attrs':{'fill':_0x60cf4a(0xd7),'d':_0x60cf4a(0x10b)}},{'tag':_0x60cf4a(0xae),'attrs':{'fill':_0x60cf4a(0xd7),'d':_0x60cf4a(0x70),'fillRule':_0x60cf4a(0x14b),'clipRule':_0x60cf4a(0x14b)}}]},_0x266b72=(0x0,_0x4e3fce[_0x60cf4a(0x140)])(function(_0x289d49,_0xc3311f){const _0x4aa105=_0x60cf4a;return(0x0,_0x4e3fce['createElement'])(_0x3fa625,Object[_0x4aa105(0xa4)]({},_0x289d49,{'id':_0x4aa105(0xd3),'ref':_0xc3311f,'icon':_0x8289bc}));});_0x266b72[_0x60cf4a(0x7d)]='LiveShareIcon';function _0x55ee0f(){const _0x558f1f=_0x60cf4a;let _0x3ebfae=(0x0,_0x57b3a6['useDependency'])(_0x53ac8a),_0x2b09a4=(0x0,_0x57b3a6[_0x558f1f(0x138)])(_0x4f400d[_0x558f1f(0xbd)]),_0x2c9b99=(0x0,_0x57b3a6['useObservable'])(()=>_0x2b09a4['getCurrentTypeOfUnit$'](_0x4f400d[_0x558f1f(0x118)][_0x558f1f(0x148)]),void 0x0,!0x1,[]),_0x3e139b=(0x0,_0x57b3a6[_0x558f1f(0xdd)])((0x0,_0x4e3fce[_0x558f1f(0x14a)])(()=>_0x2c9b99?(0x0,_0x177f8f[_0x558f1f(0xe0)])(()=>(0x0,_0x177f8f[_0x558f1f(0x91)])(_0x3ebfae['getLiveShareCoordinator'](_0x2c9b99[_0x558f1f(0x7f)]()))):(0x0,_0x177f8f['of'])(null),[_0x2c9b99,_0x3ebfae]),null),_0x3f7ca6=(0x0,_0x57b3a6[_0x558f1f(0xdd)])(_0x3e139b?()=>_0x3e139b[_0x558f1f(0x121)]:null,'idle',!0x1,[_0x3e139b]);return _0x3e139b?(0x0,_0x4ebdde[_0x558f1f(0xa9)])(_0x6ecfbf[_0x558f1f(0xc1)],{'align':'end','disabled':_0x3f7ca6===_0x558f1f(0x13e),'className':_0x558f1f(0x120),'overlay':(0x0,_0x4ebdde[_0x558f1f(0xa9)])(_0x4c0038,{'status':_0x3f7ca6,'coordinator':_0x3e139b}),'children':(0x0,_0x4ebdde['jsx'])(_0x558f1f(0x11f),{'className':(0x0,_0x6ecfbf['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f7ca6===_0x558f1f(0x13e),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f7ca6!==_0x558f1f(0x13e)}),'type':_0x558f1f(0x11f),'children':(0x0,_0x4ebdde[_0x558f1f(0xa9)])(_0x266b72,{})})}):null;}function _0x4c0038(_0x36c310){const _0x4935ae=_0x60cf4a;let {status:_0x145283,coordinator:_0x4a6bdb}=_0x36c310;switch(_0x145283){case'idle':return(0x0,_0x4ebdde['jsx'])(_0x18bfe0,{'coordinator':_0x4a6bdb});case _0x4935ae(0x134):return(0x0,_0x4ebdde['jsx'])(_0x276575,{'coordinator':_0x4a6bdb});case _0x4935ae(0x9f):return(0x0,_0x4ebdde[_0x4935ae(0xa9)])(_0x474021,{'coordinator':_0x4a6bdb});case _0x4935ae(0x13e):return(0x0,_0x4ebdde['jsx'])(_0x19c3e3,{});case _0x4935ae(0x14c):return(0x0,_0x4ebdde[_0x4935ae(0xa9)])(_0x4af9f8,{'coordinator':_0x4a6bdb});default:return null;}}function _0x18bfe0(_0x5ad1fd){const _0x239772=_0x60cf4a;let {coordinator:_0x51fe54}=_0x5ad1fd;return(0x0,_0x4ebdde['jsxs'])(_0x4ebdde[_0x239772(0xe2)],{'children':[(0x0,_0x4ebdde[_0x239772(0xa9)])(_0x239772(0xec),{'className':_0x239772(0x8a),'children':_0x239772(0x105)}),(0x0,_0x4ebdde['jsx'])(_0x6ecfbf[_0x239772(0xff)],{'onClick':()=>_0x51fe54[_0x239772(0xb4)](),'children':_0x239772(0xba)})]});}function _0x276575(_0x4094ba){const _0x55a689=_0x60cf4a;let {coordinator:_0x237aaf}=_0x4094ba;return(0x0,_0x4ebdde[_0x55a689(0x13b)])(_0x4ebdde[_0x55a689(0xe2)],{'children':[(0x0,_0x4ebdde['jsx'])(_0x55a689(0xec),{'className':_0x55a689(0x8a),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,_0x4ebdde['jsx'])(_0x6ecfbf[_0x55a689(0xff)],{'onClick':()=>_0x237aaf[_0x55a689(0xf9)](),'children':_0x55a689(0xbf)})]});}function _0x474021(_0x25a74b){const _0x28cfc0=_0x60cf4a;let {coordinator:_0x253582}=_0x25a74b;return(0x0,_0x4ebdde[_0x28cfc0(0x13b)])(_0x4ebdde[_0x28cfc0(0xe2)],{'children':[(0x0,_0x4ebdde[_0x28cfc0(0xa9)])(_0x28cfc0(0xec),{'className':_0x28cfc0(0x8a),'children':_0x28cfc0(0x11b)}),(0x0,_0x4ebdde[_0x28cfc0(0xa9)])(_0x6ecfbf[_0x28cfc0(0xff)],{'variant':_0x28cfc0(0xf3),'onClick':()=>_0x253582['startFollowing'](),'children':_0x28cfc0(0xc5)})]});}function _0x4af9f8(_0x4b4eb2){const _0x425688=_0x60cf4a;let {coordinator:_0x96d685}=_0x4b4eb2;return(0x0,_0x4ebdde[_0x425688(0x13b)])(_0x4ebdde[_0x425688(0xe2)],{'children':[(0x0,_0x4ebdde['jsx'])(_0x425688(0xec),{'className':_0x425688(0x8a),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,_0x4ebdde[_0x425688(0xa9)])(_0x6ecfbf[_0x425688(0xff)],{'variant':'default','onClick':()=>_0x96d685[_0x425688(0xb3)](),'children':_0x425688(0x106)})]});}function _0x19c3e3(){const _0x3c9af9=_0x60cf4a;return(0x0,_0x4ebdde['jsx'])(_0x4ebdde[_0x3c9af9(0xe2)],{'children':_0x3c9af9(0x98)});}let _0x1d0542=class extends _0x4f400d['Disposable']{constructor(_0x40bbee,_0x363ab2){const _0x3aa612=_0x60cf4a;super(),this[_0x3aa612(0x85)]=_0x40bbee,this[_0x3aa612(0x104)]=_0x363ab2,this[_0x3aa612(0xb2)]();}[_0x60cf4a(0xb2)](){const _0x5cb3ca=_0x60cf4a;this[_0x5cb3ca(0x89)](this['_uiPartsService'][_0x5cb3ca(0xcb)](_0x57b3a6[_0x5cb3ca(0xee)][_0x5cb3ca(0x117)],()=>(0x0,_0x57b3a6[_0x5cb3ca(0xf7)])(_0x55ee0f,this[_0x5cb3ca(0x85)])));}};_0x1d0542=_0x33e881([_0x4ef551(0x0,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x4f400d[_0x60cf4a(0x13d)])),_0x4ef551(0x1,_0x57b3a6[_0x60cf4a(0x102)])],_0x1d0542);let _0x28f7f4=class extends _0x4f400d[_0x60cf4a(0x83)]{constructor(_0x393fe1=_0x7fad35,_0x4df693,_0x12a3d3){const _0x18db84=_0x60cf4a;super(),this['_config']=_0x393fe1,this['_injector']=_0x4df693,this['_configService']=_0x12a3d3;let {..._0x5978dd}=(0x0,_0x4f400d[_0x18db84(0x124)])({},_0x7fad35,this[_0x18db84(0xc0)]);this[_0x18db84(0x72)][_0x18db84(0x75)](_0x18db84(0x111),_0x5978dd);}[_0x60cf4a(0xbc)](){const _0x4bca28=_0x60cf4a;(0x0,_0x4f400d[_0x4bca28(0x119)])(this[_0x4bca28(0x85)],(0x0,_0x4f400d['mergeOverrideWithDependencies'])([[_0x5b84b7],[_0x53ac8a],[_0x1ab3ac],[_0x1d0542]],this[_0x4bca28(0xc0)]['override'])),(0x0,_0x4f400d['touchDependencies'])(this[_0x4bca28(0x85)],[[_0x1ab3ac]]);}['onRendered'](){const _0x3d6f4b=_0x60cf4a;(0x0,_0x4f400d[_0x3d6f4b(0xe5)])(this['_injector'],[[_0x1d0542]]);}};_0x104c71(_0x28f7f4,_0x60cf4a(0xaf),_0x4f400d[_0x60cf4a(0x118)]['UNIVER_UNKNOWN']),_0x104c71(_0x28f7f4,_0x60cf4a(0x95),_0x60cf4a(0x14e)),_0x104c71(_0x28f7f4,_0x60cf4a(0xed),_0x9b74a2),_0x104c71(_0x28f7f4,'version',_0x3e3ee6),_0x28f7f4=_0x33e881([(0x0,_0x4f400d[_0x60cf4a(0x11e)])(_0x2c7683[_0x60cf4a(0xf2)]),_0x4ef551(0x1,(0x0,_0x4f400d['Inject'])(_0x4f400d['Injector'])),_0x4ef551(0x2,_0x4f400d[_0x60cf4a(0xdf)])],_0x28f7f4),Object[_0x60cf4a(0xd0)](_0x5b27b4,_0x60cf4a(0xbb),{'enumerable':!0x0,'get':function(){return _0x53ac8a;}}),_0x5b27b4['LiveShareStatus']=_0x1801f4,Object[_0x60cf4a(0xd0)](_0x5b27b4,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return _0x28f7f4;}});}));
|
|
1
|
+
function _0x46a3(){const _0x2a17c4=['defIds','CollaborationEvent','456669KOqNmZ','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','HEADER_MENU','_handleOffline','dispose$','LIVESHARE_FETCH_OPERATIONS','url(#$1','_stopPresenting','complete','includes','_fetchOperations','SessionStatus','values','UniverSheetsUi','IUIPartsService','toDisposable','tag','asObservable','map','54210xxvvRG','_startLiveShareCoordinator','PRESENTING','getConfig','SetWorksheetActiveOperation','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','useMemo','subscribe','init','ONLINE','add','entries','_init','_handleOnline','getLiveShareCoordinator','_reporters','5OALvSJ','defer','_handleOperation','sheet','LiveShareIcon','FOLLOWING','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','CommandType','merge','live-share.config','sessionStatus$','operations','exports','presenting','LiveShareController','override','jsx','UniverCore','_handleTerminate','button','@univerjs/sheets-ui','Start\x20following','LiveShareStatus','has','SetZoomRatioOperation','getMemberID','NEW_CHANGESETS','UniverProCollaborationClient','forwardRef','object','You\x27re\x20following\x20the\x20presenter','UNIVER_UNKNOWN','_status$','You\x27re\x20not\x20following\x20the\x20presenter','_entities','shouldShareOperation','RxDisposable','1728376sKnhNj','react/jsx-runtime','startFollowing','string','UNIVER_SHEET','symbol','jsxs','params','takeUntil','LIVESHARE_TERMINATE','_handleNewHost','_status','UniverSheets','connectInjector','_sharedOperations','Stop\x20presenting','_uiPartsService','length','tryStartPresenting','attrs','LIVESHARE_REQUEST_HOST','_startFollowing','currentColor','use','disposeWithMe','6meDyND','onRendered','getTypeOfUnitDisposed$','_beIdle','UniverLiveSharePlugin','@univerjs/core','rxjs/operators','pluginName','find','stringify','iterator','OFFLINE','_commandService','rxjs','unit','registerInitialStateReporter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_presenter','decorate','UniverInstanceType','xlink:href','react','IDLE','Present\x20this\x20document','_configService','div','useObservable','live-share-icon','packageName','getInitialStates','Stop\x20following','random','React','clear','trim','getCurrentTypeOfUnit$','getUnitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getLiveShareCoordinatorSync','from','1701024XfyjUE','constructor','getTypeOfUnitAdded$','UniverUi','@univerjs-pro/live-share','_mountLiveShare','colorChannel1','UniverProLiveShare','useDependency','offline','BuiltInUIPart','_liveShareService','end','mergeOverrideWithDependencies','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','path','throttleTime','parse','unitId','createInstance','stroke','subject','3518963vakGGJ','LIVESHARE_OPERATION','requireSession','send','OPERATION','evenodd','UniverDesign','dispose','Fragment','stopPresenting','forEach','replace','_config','createElement','fill','function','data','reverse','text','assign','UniverCollaborationClientPlugin','Subject','event$','idSuffix','memberID','touchDependencies','_commandDisposable','next','stopFollowing','613301tkYaPR','toString','Plugin','_unitID','_collabSession','_collabSessionService','idle','pipe','IUniverInstanceService','@univerjs/ui','_stopFollowing','1em','substring','Inject','Injector','You\x27re\x20presenting\x20the\x20document','BehaviorSubject','DisposableCollection','defineProperty','not-following','CollaborationSessionService','getOwnPropertyDescriptor','_univerInstanceService','get','toStringTag','onCommandExecuted','following','IConfigService','children','Button','@univerjs-pro/collaboration','InsertSheetMutation','_handleNewChangeSets','type','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','status$','Disposable','695274kUOOAc','You\x27are\x20offline.','mutations','operators','delete','ICommandService'];_0x46a3=function(){return _0x2a17c4;};return _0x46a3();}function _0x34ce(_0x4c10d1,_0x2e5b02){_0x4c10d1=_0x4c10d1-0x13b;const _0x46a3eb=_0x46a3();let _0x34ce7c=_0x46a3eb[_0x4c10d1];return _0x34ce7c;}(function(_0x8cc250,_0x6a9246){const _0x3e58d7=_0x34ce,_0x1bfc84=_0x8cc250();while(!![]){try{const _0x47d3b0=parseInt(_0x3e58d7(0x1a5))/0x1+parseInt(_0x3e58d7(0x14a))/0x2*(-parseInt(_0x3e58d7(0x1e7))/0x3)+-parseInt(_0x3e58d7(0x21e))/0x4+-parseInt(_0x3e58d7(0x1f9))/0x5*(parseInt(_0x3e58d7(0x1cb))/0x6)+parseInt(_0x3e58d7(0x188))/0x7+-parseInt(_0x3e58d7(0x172))/0x8+parseInt(_0x3e58d7(0x1d3))/0x9;if(_0x47d3b0===_0x6a9246)break;else _0x1bfc84['push'](_0x1bfc84['shift']());}catch(_0xb72913){_0x1bfc84['push'](_0x1bfc84['shift']());}}}(_0x46a3,0x55ec4),function(_0x574203,_0x46607a){const _0xcdc4e6=_0x34ce;typeof exports==_0xcdc4e6(0x216)&&typeof module<'u'?_0x46607a(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define==_0xcdc4e6(0x197)&&define['amd']?define([_0xcdc4e6(0x205),_0xcdc4e6(0x1c3),'@univerjs-pro/collaboration-client',_0xcdc4e6(0x14f),'@univerjs/sheets',_0xcdc4e6(0x157),_0xcdc4e6(0x150),_0xcdc4e6(0x20d),_0xcdc4e6(0x1ae),'@univerjs/design',_0xcdc4e6(0x15f),_0xcdc4e6(0x21f)],_0x46607a):(_0x574203=typeof globalThis<'u'?globalThis:_0x574203||self,_0x46607a(_0x574203[_0xcdc4e6(0x179)]={},_0x574203['UniverProCollaboration'],_0x574203[_0xcdc4e6(0x214)],_0x574203[_0xcdc4e6(0x20a)],_0x574203[_0xcdc4e6(0x13d)],_0x574203[_0xcdc4e6(0x157)],_0x574203['rxjs'][_0xcdc4e6(0x1ce)],_0x574203[_0xcdc4e6(0x1e1)],_0x574203[_0xcdc4e6(0x175)],_0x574203[_0xcdc4e6(0x18e)],_0x574203['React'],_0x574203[_0xcdc4e6(0x16a)]));}(this,function(_0x131977,_0x25303d,_0x5a9e64,_0xb25766,_0x41b70d,_0x1eb6fd,_0x2409b5,_0x221dfd,_0x50de09,_0x4172f9,_0x1a58aa,_0x31f262){const _0x1d4d30=_0x34ce;Object[_0x1d4d30(0x1b7)](_0x131977,Symbol[_0x1d4d30(0x1bd)],{'value':'Module'});function _0x11310f(_0x1876bd){'@babel/helpers - typeof';const _0x103fcd=_0x1d4d30;return _0x11310f=typeof Symbol==_0x103fcd(0x197)&&typeof Symbol[_0x103fcd(0x154)]=='symbol'?function(_0x2a66a4){return typeof _0x2a66a4;}:function(_0x4bd990){const _0x55e43=_0x103fcd;return _0x4bd990&&typeof Symbol=='function'&&_0x4bd990[_0x55e43(0x173)]===Symbol&&_0x4bd990!==Symbol['prototype']?'symbol':typeof _0x4bd990;},_0x11310f(_0x1876bd);}function _0x16bfa2(_0x24ae56,_0x5a1a24){const _0xfcea1c=_0x1d4d30;if(_0x11310f(_0x24ae56)!=_0xfcea1c(0x216)||!_0x24ae56)return _0x24ae56;var _0x246ee5=_0x24ae56[Symbol['toPrimitive']];if(_0x246ee5!==void 0x0){var _0x82bfd9=_0x246ee5['call'](_0x24ae56,_0x5a1a24||'default');if(_0x11310f(_0x82bfd9)!='object')return _0x82bfd9;throw TypeError(_0xfcea1c(0x16f));}return(_0x5a1a24==='string'?String:Number)(_0x24ae56);}function _0x3aecc9(_0x130830){const _0x17f93=_0x1d4d30;var _0x2f678b=_0x16bfa2(_0x130830,_0x17f93(0x221));return _0x11310f(_0x2f678b)==_0x17f93(0x223)?_0x2f678b:_0x2f678b+'';}function _0x198a30(_0x58dd6e,_0x1052ca,_0x6a504b){const _0x4966f2=_0x1d4d30;return(_0x1052ca=_0x3aecc9(_0x1052ca))in _0x58dd6e?Object[_0x4966f2(0x1b7)](_0x58dd6e,_0x1052ca,{'value':_0x6a504b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x58dd6e[_0x1052ca]=_0x6a504b,_0x58dd6e;}var _0x52b9e9=class extends _0xb25766[_0x1d4d30(0x1ca)]{constructor(..._0x2897e6){const _0x5c87a0=_0x1d4d30;super(..._0x2897e6),_0x198a30(this,_0x5c87a0(0x13f),new Set()),_0x198a30(this,'_reporters',new Set());}['registerSharedOperation'](_0x395715){const _0x366d74=_0x1d4d30;return this[_0x366d74(0x13f)][_0x366d74(0x1f3)](_0x395715),(0x0,_0xb25766[_0x366d74(0x1e3)])(()=>this[_0x366d74(0x13f)][_0x366d74(0x1cf)](_0x395715));}[_0x1d4d30(0x159)](_0x1590fe){const _0x3aa75b=_0x1d4d30;return this[_0x3aa75b(0x1f8)][_0x3aa75b(0x1f3)](_0x1590fe),(0x0,_0xb25766[_0x3aa75b(0x1e3)])(()=>this['_reporters']['delete'](_0x1590fe));}[_0x1d4d30(0x21c)](_0x2aac96){const _0x3d0d42=_0x1d4d30;return this[_0x3d0d42(0x13f)][_0x3d0d42(0x210)](_0x2aac96);}[_0x1d4d30(0x167)](_0x17f748){const _0x11d1c3=_0x1d4d30;return Array[_0x11d1c3(0x171)](this['_reporters'])['map'](_0x37a253=>_0x37a253(_0x17f748));}};function _0x36dd09(_0x1c3454,_0x4e2156){return function(_0x2a29b0,_0x52047a){_0x4e2156(_0x2a29b0,_0x52047a,_0x1c3454);};}function _0x2b4402(_0x270452,_0xabe118,_0xda14af,_0x44e96f){const _0x3340a9=_0x1d4d30;var _0x7ba905=arguments[_0x3340a9(0x142)],_0x2ebf17=_0x7ba905<0x3?_0xabe118:_0x44e96f===null?_0x44e96f=Object[_0x3340a9(0x1ba)](_0xabe118,_0xda14af):_0x44e96f,_0x2ea05e;if(typeof Reflect==_0x3340a9(0x216)&&typeof Reflect[_0x3340a9(0x15c)]==_0x3340a9(0x197))_0x2ebf17=Reflect[_0x3340a9(0x15c)](_0x270452,_0xabe118,_0xda14af,_0x44e96f);else{for(var _0x43818f=_0x270452[_0x3340a9(0x142)]-0x1;_0x43818f>=0x0;_0x43818f--)(_0x2ea05e=_0x270452[_0x43818f])&&(_0x2ebf17=(_0x7ba905<0x3?_0x2ea05e(_0x2ebf17):_0x7ba905>0x3?_0x2ea05e(_0xabe118,_0xda14af,_0x2ebf17):_0x2ea05e(_0xabe118,_0xda14af))||_0x2ebf17);}return _0x7ba905>0x3&&_0x2ebf17&&Object['defineProperty'](_0xabe118,_0xda14af,_0x2ebf17),_0x2ebf17;}let _0x47372d=class extends _0xb25766[_0x1d4d30(0x21d)]{constructor(_0x24b8ea,_0x5d9801,_0x16597a){const _0x5c6f91=_0x1d4d30;super(),this['_univerInstanceService']=_0x24b8ea,this[_0x5c6f91(0x1ee)]=_0x5d9801,this[_0x5c6f91(0x1aa)]=_0x16597a,_0x198a30(this,_0x5c6f91(0x21b),new Map()),this[_0x5c6f91(0x1f5)]();}async[_0x1d4d30(0x1f7)](_0x963e53){const _0x1f207d=_0x1d4d30;return this['_entities']['has'](_0x963e53)||await this[_0x1f207d(0x1e8)](_0x963e53),this[_0x1f207d(0x21b)][_0x1f207d(0x1bc)](_0x963e53);}[_0x1d4d30(0x170)](_0x189e42){const _0x3122fd=_0x1d4d30;var _0x5709b5;return(_0x5709b5=this[_0x3122fd(0x21b)]['get'](_0x189e42))==null?null:_0x5709b5;}['_init'](){const _0x443cc1=_0x1d4d30;this[_0x443cc1(0x1bb)][_0x443cc1(0x174)](_0xb25766[_0x443cc1(0x15d)][_0x443cc1(0x222)])[_0x443cc1(0x1ac)]((0x0,_0x2409b5[_0x443cc1(0x226)])(this[_0x443cc1(0x1d8)]))[_0x443cc1(0x1f0)](async _0x4fa743=>{const _0x47cc66=_0x443cc1;let _0x466fb3=_0x4fa743[_0x47cc66(0x158)]['getUnitId']();this[_0x47cc66(0x21b)][_0x47cc66(0x210)](_0x466fb3)||this[_0x47cc66(0x1e8)](_0x466fb3);}),this[_0x443cc1(0x1bb)][_0x443cc1(0x14c)](_0xb25766['UniverInstanceType']['UNIVER_SHEET'])[_0x443cc1(0x1ac)]((0x0,_0x2409b5[_0x443cc1(0x226)])(this[_0x443cc1(0x1d8)]))[_0x443cc1(0x1f0)](_0x39716b=>{const _0x2a37cf=_0x443cc1;let _0x13bd3b=_0x39716b[_0x2a37cf(0x16e)](),_0x30cbae=this[_0x2a37cf(0x21b)][_0x2a37cf(0x1bc)](_0x13bd3b);_0x30cbae==null||_0x30cbae[_0x2a37cf(0x18f)]();});}async['_startLiveShareCoordinator'](_0x4ed574){const _0x34df0d=_0x1d4d30;let _0xd6dfeb=await this[_0x34df0d(0x1aa)][_0x34df0d(0x18a)](_0x4ed574),_0x2dfca2=this[_0x34df0d(0x1ee)][_0x34df0d(0x185)](_0x461a3b,_0x4ed574,_0xd6dfeb);return _0x2dfca2[_0x34df0d(0x1f1)](),this[_0x34df0d(0x21b)]['set'](_0x4ed574,_0x2dfca2),_0x2dfca2;}};_0x47372d=_0x2b4402([_0x36dd09(0x0,_0xb25766[_0x1d4d30(0x1ad)]),_0x36dd09(0x1,(0x0,_0xb25766[_0x1d4d30(0x1b2)])(_0xb25766['Injector'])),_0x36dd09(0x2,(0x0,_0xb25766['Inject'])(_0x5a9e64[_0x1d4d30(0x1b9)]))],_0x47372d);let _0x267d9f=function(_0x3a200a){const _0x37871a=_0x1d4d30;return _0x3a200a[_0x37871a(0x155)]=_0x37871a(0x17b),_0x3a200a[_0x37871a(0x160)]=_0x37871a(0x1ab),_0x3a200a[_0x37871a(0x1fe)]=_0x37871a(0x1bf),_0x3a200a['NOT_FOLLOWING']=_0x37871a(0x1b8),_0x3a200a[_0x37871a(0x1e9)]=_0x37871a(0x206),_0x3a200a;}({}),_0x461a3b=class extends _0xb25766[_0x1d4d30(0x21d)]{get[_0x1d4d30(0x13c)](){const _0x4db36e=_0x1d4d30;return this[_0x4db36e(0x219)]['getValue']();}constructor(_0x24131f,_0x51cfe4,_0x438d07,_0x1cd029,_0x525c48){const _0x4b5965=_0x1d4d30;super(),this[_0x4b5965(0x1a8)]=_0x24131f,this[_0x4b5965(0x1a9)]=_0x51cfe4,this[_0x4b5965(0x162)]=_0x438d07,this['_liveShareService']=_0x1cd029,this['_commandService']=_0x525c48,_0x198a30(this,_0x4b5965(0x219),new _0x1eb6fd[(_0x4b5965(0x1b5))](_0x4b5965(0x1ab))),_0x198a30(this,_0x4b5965(0x1c9),this[_0x4b5965(0x219)][_0x4b5965(0x1e5)]()),_0x198a30(this,_0x4b5965(0x1f5),!0x1),_0x198a30(this,'_commandDisposable',null),_0x198a30(this,_0x4b5965(0x15b),null);}[_0x1d4d30(0x18f)](){const _0x41e696=_0x1d4d30;var _0x405a29;(_0x405a29=this[_0x41e696(0x1a2)])==null||_0x405a29[_0x41e696(0x18f)](),this[_0x41e696(0x219)][_0x41e696(0x1a3)](_0x41e696(0x1ab)),this[_0x41e696(0x219)][_0x41e696(0x1dc)]();}['getStatus'](){return this['_status'];}[_0x1d4d30(0x1f1)](){const _0x37888d=_0x1d4d30;this[_0x37888d(0x1f5)]||(this['_init']=!0x0,this['_collabSession'][_0x37888d(0x203)][_0x37888d(0x1ac)]((0x0,_0x2409b5[_0x37888d(0x226)])(this['dispose$']))[_0x37888d(0x1f0)](_0x26969a=>{const _0x513e18=_0x37888d;switch(_0x26969a){case _0x5a9e64['SessionStatus'][_0x513e18(0x155)]:this[_0x513e18(0x1d7)]();break;case _0x5a9e64[_0x513e18(0x1df)][_0x513e18(0x1f2)]:this[_0x513e18(0x1f6)]();break;default:}}),this[_0x37888d(0x1a9)][_0x37888d(0x19e)][_0x37888d(0x1ac)]((0x0,_0x2409b5[_0x37888d(0x226)])(this[_0x37888d(0x1d8)]))[_0x37888d(0x1f0)](_0x3564e2=>{const _0x16cdb=_0x37888d;let {eventID:_0x5039ad}=_0x3564e2;switch(_0x5039ad){case _0x25303d[_0x16cdb(0x1d2)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x3564e2);break;case _0x25303d['CollaborationEvent'][_0x16cdb(0x189)]:this[_0x16cdb(0x1fb)](_0x3564e2);break;case _0x25303d[_0x16cdb(0x1d2)]['LIVESHARE_TERMINATE']:this[_0x16cdb(0x20b)]();break;case _0x25303d[_0x16cdb(0x1d2)][_0x16cdb(0x213)]:this[_0x16cdb(0x1c5)](_0x3564e2);break;default:}}));}[_0x1d4d30(0x143)](){const _0x259182=_0x1d4d30;this['_collabSession']['send']({'eventID':_0x25303d[_0x259182(0x1d2)][_0x259182(0x145)],'data':{'unitID':this['_unitID'],'userID':this[_0x259182(0x1a9)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x55e6ec=_0x1d4d30;this[_0x55e6ec(0x13c)]===_0x55e6ec(0x206)&&(this['_status$'][_0x55e6ec(0x1a3)](_0x55e6ec(0x1ab)),this[_0x55e6ec(0x1a9)][_0x55e6ec(0x18b)]({'eventID':_0x25303d[_0x55e6ec(0x1d2)][_0x55e6ec(0x227)],'data':{'unitID':this[_0x55e6ec(0x1a8)]}},this[_0x55e6ec(0x1a8)]));}[_0x1d4d30(0x220)](){const _0x1c96c4=_0x1d4d30;this[_0x1c96c4(0x13c)]===_0x1c96c4(0x1b8)&&(this[_0x1c96c4(0x219)][_0x1c96c4(0x1a3)](_0x1c96c4(0x1bf)),this[_0x1c96c4(0x146)]());}[_0x1d4d30(0x1a4)](){const _0x32f245=_0x1d4d30;this['_status']===_0x32f245(0x1bf)&&this[_0x32f245(0x1af)]();}[_0x1d4d30(0x13b)](_0x47e882){const _0xcb7b91=_0x1d4d30;let {presenter:_0x1a709b}=_0x47e882[_0xcb7b91(0x198)],_0x2a7225=this[_0xcb7b91(0x1a9)]['getMemberID']();this['_presenter']=_0x1a709b,_0x1a709b===_0x2a7225?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0xcb7b91(0x1db)](),this[_0xcb7b91(0x146)]());}[_0x1d4d30(0x1de)](){const _0x4dbea0=_0x1d4d30;let _0x3f96eb={'eventID':_0x25303d[_0x4dbea0(0x1d2)][_0x4dbea0(0x1d9)]};this[_0x4dbea0(0x1a9)]['send'](_0x3f96eb,this[_0x4dbea0(0x1a8)]);}[_0x1d4d30(0x20b)](){const _0x20d9ab=_0x1d4d30;this['_presenter']=null,this[_0x20d9ab(0x13c)]!==_0x20d9ab(0x206)&&this['_beIdle']();}['_handleNewChangeSets'](_0x4e361e){const _0xc22c50=_0x1d4d30;if(this[_0xc22c50(0x13c)]===_0xc22c50(0x1bf)&&this[_0xc22c50(0x15b)]===_0x4e361e[_0xc22c50(0x198)][_0xc22c50(0x1a0)]){let _0x525f24=(0x0,_0x25303d['parseProtocolChangeset'])(_0x4e361e[_0xc22c50(0x198)])[_0xc22c50(0x1cd)][_0xc22c50(0x199)]()[_0xc22c50(0x152)](_0x13090e=>_0x13090e['id']===_0x41b70d[_0xc22c50(0x1c4)]['id']);if(_0x525f24){let _0xe77d4a=_0x525f24['params'][_0xc22c50(0x184)],_0x32e3bc=_0x525f24[_0xc22c50(0x225)][_0xc22c50(0x1fc)]['id'];setTimeout(()=>{const _0x36557e=_0xc22c50;this[_0x36557e(0x156)]['executeCommand'](_0x41b70d[_0x36557e(0x1eb)]['id'],{'unitId':_0xe77d4a,'subUnitId':_0x32e3bc},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2af27a=_0x1d4d30;var _0x3f6b00;(_0x3f6b00=this['_commandDisposable'])==null||_0x3f6b00[_0x2af27a(0x18f)](),this[_0x2af27a(0x219)][_0x2af27a(0x1a3)](_0x2af27a(0x206));let _0x58ea44=new Map(),_0x6c0179=this['_commandDisposable']=new _0xb25766[(_0x2af27a(0x1b6))]();_0x6c0179[_0x2af27a(0x1f3)]((0x0,_0xb25766[_0x2af27a(0x1e3)])(()=>{const _0x5811f9=_0x2af27a;_0x58ea44[_0x5811f9(0x192)](({subject:_0x36bd18,subscription:_0x28ab81})=>{const _0xe5c50d=_0x5811f9;_0x28ab81[_0xe5c50d(0x1d4)](),_0x36bd18['complete']();}),_0x58ea44[_0x5811f9(0x16b)]();})),_0x6c0179[_0x2af27a(0x1f3)](this['_commandService'][_0x2af27a(0x1be)](_0xdcad0e=>{const _0x2c00ae=_0x2af27a;if(_0xdcad0e[_0x2c00ae(0x1c6)]!==_0xb25766[_0x2c00ae(0x200)][_0x2c00ae(0x18c)]||!this[_0x2c00ae(0x17d)][_0x2c00ae(0x21c)](_0xdcad0e['id']))return;let {id:_0x9b27e5}=_0xdcad0e,_0x49983b;if(_0x58ea44[_0x2c00ae(0x210)](_0x9b27e5))_0x49983b=_0x58ea44['get'](_0x9b27e5)[_0x2c00ae(0x187)];else{var _0x3f9728;_0x49983b=new _0x1eb6fd[(_0x2c00ae(0x19d))]();let _0x5f2392=_0x49983b['pipe']((0x0,_0x2409b5[_0x2c00ae(0x182)])((_0x3f9728=this[_0x2c00ae(0x162)][_0x2c00ae(0x1ea)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x3f9728,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c00ae(0x1f0)](_0x46cd9c=>{const _0x49903c=_0x2c00ae;this[_0x49903c(0x1a9)][_0x49903c(0x18b)]({'eventID':_0x25303d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x46cd9c['id']]:{'id':_0x46cd9c['id'],'params':JSON[_0x49903c(0x153)](_0x46cd9c[_0x49903c(0x225)])}}}},this[_0x49903c(0x1a8)]);});_0x58ea44['set'](_0x9b27e5,{'subject':_0x49983b,'subscription':_0x5f2392});}_0x49983b[_0x2c00ae(0x1a3)](_0xdcad0e);})),this[_0x2af27a(0x17d)][_0x2af27a(0x167)](this[_0x2af27a(0x1a8)])[_0x2af27a(0x192)](_0x4cab30=>this[_0x2af27a(0x1a9)][_0x2af27a(0x18b)]({'eventID':_0x25303d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2af27a(0x1a8)],'operations':{[_0x4cab30['id']]:{'id':_0x4cab30['id'],'params':JSON['stringify'](_0x4cab30[_0x2af27a(0x225)])}}}},this[_0x2af27a(0x1a8)]));}[_0x1d4d30(0x1db)](){const _0x5c6640=_0x1d4d30;var _0xb4214c;this[_0x5c6640(0x219)]['next'](_0x5c6640(0x1ab)),(_0xb4214c=this['_commandDisposable'])==null||_0xb4214c[_0x5c6640(0x18f)](),this[_0x5c6640(0x1a2)]=null;}[_0x1d4d30(0x146)](){const _0xe7c243=_0x1d4d30;var _0x354e06;(_0x354e06=this[_0xe7c243(0x1a2)])==null||_0x354e06['dispose'](),this[_0xe7c243(0x219)][_0xe7c243(0x1a3)](_0xe7c243(0x1bf));}[_0x1d4d30(0x14d)](){const _0x4da816=_0x1d4d30;var _0x5c7f32;this[_0x4da816(0x219)][_0x4da816(0x1a3)](_0x4da816(0x1ab)),(_0x5c7f32=this[_0x4da816(0x1a2)])==null||_0x5c7f32[_0x4da816(0x18f)](),this[_0x4da816(0x1a2)]=null;}['_stopFollowing'](){const _0x55a09e=_0x1d4d30;var _0x4a038c;this[_0x55a09e(0x219)][_0x55a09e(0x1a3)](_0x55a09e(0x1b8)),(_0x4a038c=this['_commandDisposable'])==null||_0x4a038c[_0x55a09e(0x18f)]();}[_0x1d4d30(0x1fb)](_0x199c73){const _0x15cac6=_0x1d4d30;if([_0x15cac6(0x206),_0x15cac6(0x1b8),_0x15cac6(0x17b)][_0x15cac6(0x1dd)](this[_0x15cac6(0x13c)])||!_0x199c73[_0x15cac6(0x198)]['presenter']||_0x199c73[_0x15cac6(0x198)]['presenter']===this[_0x15cac6(0x1a9)][_0x15cac6(0x212)]())return;this[_0x15cac6(0x13c)]==='idle'&&this[_0x15cac6(0x146)]();let _0x10a56b=_0x199c73['data'][_0x15cac6(0x204)];Object[_0x15cac6(0x1e0)](_0x10a56b)[_0x15cac6(0x192)](_0x159f79=>{const _0x297296=_0x15cac6;this['_commandService'][_0x297296(0x1c8)](_0x159f79['id'],_0x159f79[_0x297296(0x225)]?JSON[_0x297296(0x183)](_0x159f79[_0x297296(0x225)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4c76b0=_0x1d4d30;var _0x12f38e;this[_0x4c76b0(0x219)][_0x4c76b0(0x1a3)](_0x4c76b0(0x17b)),(_0x12f38e=this[_0x4c76b0(0x1a2)])==null||_0x12f38e['dispose']();}['_handleOnline'](){const _0x2ac620=_0x1d4d30;this['_status$'][_0x2ac620(0x1a3)](_0x2ac620(0x1ab)),this[_0x2ac620(0x1de)]();}};_0x461a3b=_0x2b4402([_0x36dd09(0x2,_0xb25766[_0x1d4d30(0x1c0)]),_0x36dd09(0x3,(0x0,_0xb25766[_0x1d4d30(0x1b2)])(_0x52b9e9)),_0x36dd09(0x4,_0xb25766[_0x1d4d30(0x1d0)])],_0x461a3b);var _0xfbf7df=_0x1d4d30(0x176),_0x38dea6='1.0.0-alpha.7';let _0xdc8c56={},_0x5bf64f=class extends _0xb25766[_0x1d4d30(0x1ca)]{constructor(_0x7e9f9e){const _0x1c1722=_0x1d4d30;super(),this[_0x1c1722(0x17d)]=_0x7e9f9e,this[_0x1c1722(0x1f5)]();}[_0x1d4d30(0x1f5)](){const _0x373627=_0x1d4d30;[_0x221dfd[_0x373627(0x211)]['id'],_0x221dfd['SetScrollOperation']['id'],_0x41b70d[_0x373627(0x1eb)]['id']]['forEach'](_0x3eb2e2=>{const _0x1ff203=_0x373627;this[_0x1ff203(0x149)](this[_0x1ff203(0x17d)]['registerSharedOperation'](_0x3eb2e2));});}};_0x5bf64f=_0x2b4402([_0x36dd09(0x0,(0x0,_0xb25766[_0x1d4d30(0x1b2)])(_0x52b9e9))],_0x5bf64f);function _0x2762a4({ref:_0x5c7ebc,..._0x3f400c}){const _0x2b3d64=_0x1d4d30;let {icon:_0x3cc0ab,id:_0x5e1a8f,className:_0x15b0cf,extend:_0x3a1054,..._0x2da82f}=_0x3f400c,_0x22116e=('univerjs-icon\x20univerjs-icon-'+_0x5e1a8f+'\x20'+(_0x15b0cf||''))[_0x2b3d64(0x16c)](),_0x58dc04=(0x0,_0x1a58aa['useRef'])('_'+_0x267ae0());return _0x3e371(_0x3cc0ab,''+_0x5e1a8f,{'defIds':_0x3cc0ab[_0x2b3d64(0x1d1)],'idSuffix':_0x58dc04['current']},{'ref':_0x5c7ebc,'className':_0x22116e,..._0x2da82f},_0x3a1054);}function _0x3e371(_0x108696,_0x201d83,_0x111ed5,_0xa41be0,_0x191f7c){const _0x55face=_0x1d4d30;return(0x0,_0x1a58aa[_0x55face(0x195)])(_0x108696[_0x55face(0x1e4)],{'key':_0x201d83,..._0x14e0bc(_0x108696,_0x111ed5,_0x191f7c),..._0xa41be0},(_0x5e6bf4(_0x108696,_0x111ed5)[_0x55face(0x1c1)]||[])[_0x55face(0x1e6)]((_0x144c5b,_0x501676)=>_0x3e371(_0x144c5b,_0x201d83+'-'+_0x108696[_0x55face(0x1e4)]+'-'+_0x501676,_0x111ed5,void 0x0,_0x191f7c)));}function _0x14e0bc(_0x33f298,_0x56fc24,_0x5af9af){const _0x4a1727=_0x1d4d30;let _0xbf9847={..._0x33f298[_0x4a1727(0x144)]};_0x5af9af!=null&&_0x5af9af[_0x4a1727(0x178)]&&_0xbf9847[_0x4a1727(0x196)]===_0x4a1727(0x178)&&(_0xbf9847['fill']=_0x5af9af['colorChannel1']),_0x5af9af!=null&&_0x5af9af['colorChannel1']&&_0xbf9847[_0x4a1727(0x186)]==='colorChannel1'&&(_0xbf9847[_0x4a1727(0x186)]=_0x5af9af['colorChannel1']),_0x33f298[_0x4a1727(0x1e4)]==='mask'&&_0xbf9847['id']&&(_0xbf9847['id']+=_0x56fc24[_0x4a1727(0x19f)]),Object[_0x4a1727(0x1f4)](_0xbf9847)[_0x4a1727(0x192)](([_0x3af96e,_0x244133])=>{const _0x447c7e=_0x4a1727;_0x3af96e==='mask'&&typeof _0x244133=='string'&&(_0xbf9847[_0x3af96e]=_0x244133[_0x447c7e(0x193)](/url\(#(.*)\)/,'url(#$1'+_0x56fc24[_0x447c7e(0x19f)]+')'));});let {defIds:_0x9e59de}=_0x56fc24;return!_0x9e59de||_0x9e59de[_0x4a1727(0x142)]===0x0?_0xbf9847:(_0x33f298[_0x4a1727(0x1e4)]===_0x4a1727(0x148)&&_0xbf9847[_0x4a1727(0x15e)]&&(_0xbf9847[_0x4a1727(0x15e)]+=_0x56fc24['idSuffix']),Object[_0x4a1727(0x1f4)](_0xbf9847)[_0x4a1727(0x192)](([_0x5d072b,_0x42f7ca])=>{const _0x9e18=_0x4a1727;typeof _0x42f7ca==_0x9e18(0x221)&&(_0xbf9847[_0x5d072b]=_0x42f7ca['replace'](/url\(#(.*)\)/,_0x9e18(0x1da)+_0x56fc24['idSuffix']+')'));}),_0xbf9847);}function _0x5e6bf4(_0x25b00c,_0x5ebf23){const _0x28a851=_0x1d4d30;var _0x39e36d;let {defIds:_0x1a27f3}=_0x5ebf23;return!_0x1a27f3||_0x1a27f3['length']===0x0?_0x25b00c:_0x25b00c[_0x28a851(0x1e4)]==='defs'&&(_0x39e36d=_0x25b00c[_0x28a851(0x1c1)])!=null&&_0x39e36d['length']?{..._0x25b00c,'children':_0x25b00c[_0x28a851(0x1c1)][_0x28a851(0x1e6)](_0x1ec57c=>typeof _0x1ec57c[_0x28a851(0x144)]['id']=='string'&&_0x1a27f3&&_0x1a27f3['includes'](_0x1ec57c[_0x28a851(0x144)]['id'])?{..._0x1ec57c,'attrs':{..._0x1ec57c[_0x28a851(0x144)],'id':_0x1ec57c['attrs']['id']+_0x5ebf23[_0x28a851(0x19f)]}}:_0x1ec57c)}:_0x25b00c;}function _0x267ae0(){const _0x510bfc=_0x1d4d30;return Math[_0x510bfc(0x169)]()[_0x510bfc(0x1a6)](0x24)[_0x510bfc(0x1b1)](0x2,0x8);}_0x2762a4['displayName']='UniverIcon';let _0x58d5f2={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x1d4d30(0x1b0)},'children':[{'tag':_0x1d4d30(0x181),'attrs':{'fill':_0x1d4d30(0x147),'d':_0x1d4d30(0x180)}},{'tag':_0x1d4d30(0x181),'attrs':{'fill':_0x1d4d30(0x147),'d':_0x1d4d30(0x1c7),'fillRule':_0x1d4d30(0x18d),'clipRule':'evenodd'}}]},_0x1ac2a8=(0x0,_0x1a58aa[_0x1d4d30(0x215)])(function(_0x27de8b,_0x2ad4da){const _0x31ec26=_0x1d4d30;return(0x0,_0x1a58aa[_0x31ec26(0x195)])(_0x2762a4,Object[_0x31ec26(0x19b)]({},_0x27de8b,{'id':_0x31ec26(0x165),'ref':_0x2ad4da,'icon':_0x58d5f2}));});_0x1ac2a8['displayName']=_0x1d4d30(0x1fd);function _0x2d25ed(){const _0x11ee0e=_0x1d4d30;let _0x4dd216=(0x0,_0x50de09[_0x11ee0e(0x17a)])(_0x47372d),_0x3631a7=(0x0,_0x50de09[_0x11ee0e(0x17a)])(_0xb25766[_0x11ee0e(0x1ad)]),_0x377ebb=(0x0,_0x50de09[_0x11ee0e(0x164)])(()=>_0x3631a7[_0x11ee0e(0x16d)](_0xb25766[_0x11ee0e(0x15d)][_0x11ee0e(0x222)]),void 0x0,!0x1,[]),_0x15fa97=(0x0,_0x50de09['useObservable'])((0x0,_0x1a58aa[_0x11ee0e(0x1ef)])(()=>_0x377ebb?(0x0,_0x1eb6fd[_0x11ee0e(0x1fa)])(()=>(0x0,_0x1eb6fd[_0x11ee0e(0x171)])(_0x4dd216[_0x11ee0e(0x1f7)](_0x377ebb[_0x11ee0e(0x16e)]()))):(0x0,_0x1eb6fd['of'])(null),[_0x377ebb,_0x4dd216]),null),_0x2ace74=(0x0,_0x50de09[_0x11ee0e(0x164)])(_0x15fa97?()=>_0x15fa97['status$']:null,_0x11ee0e(0x1ab),!0x1,[_0x15fa97]);return _0x15fa97?(0x0,_0x31f262[_0x11ee0e(0x209)])(_0x4172f9['Dropdown'],{'align':_0x11ee0e(0x17e),'disabled':_0x2ace74===_0x11ee0e(0x17b),'className':_0x11ee0e(0x1ff),'overlay':(0x0,_0x31f262['jsx'])(_0x50f58d,{'status':_0x2ace74,'coordinator':_0x15fa97}),'children':(0x0,_0x31f262['jsx'])(_0x11ee0e(0x20c),{'className':(0x0,_0x4172f9['clsx'])(_0x11ee0e(0x15a),{'univer-cursor-not-allowed':_0x2ace74===_0x11ee0e(0x17b),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2ace74!=='offline'}),'type':_0x11ee0e(0x20c),'children':(0x0,_0x31f262[_0x11ee0e(0x209)])(_0x1ac2a8,{})})}):null;}function _0x50f58d(_0x6244db){const _0x4c7cdc=_0x1d4d30;let {status:_0x2c54c3,coordinator:_0x4046e1}=_0x6244db;switch(_0x2c54c3){case _0x4c7cdc(0x1ab):return(0x0,_0x31f262[_0x4c7cdc(0x209)])(_0x4f6ead,{'coordinator':_0x4046e1});case _0x4c7cdc(0x1bf):return(0x0,_0x31f262[_0x4c7cdc(0x209)])(_0x53b8f6,{'coordinator':_0x4046e1});case _0x4c7cdc(0x1b8):return(0x0,_0x31f262['jsx'])(_0xd69d04,{'coordinator':_0x4046e1});case _0x4c7cdc(0x17b):return(0x0,_0x31f262[_0x4c7cdc(0x209)])(_0x2715ff,{});case _0x4c7cdc(0x206):return(0x0,_0x31f262[_0x4c7cdc(0x209)])(_0x446875,{'coordinator':_0x4046e1});default:return null;}}function _0x4f6ead(_0x8bb08c){const _0x2e5dbd=_0x1d4d30;let {coordinator:_0x2ba4fe}=_0x8bb08c;return(0x0,_0x31f262[_0x2e5dbd(0x224)])(_0x31f262['Fragment'],{'children':[(0x0,_0x31f262['jsx'])(_0x2e5dbd(0x163),{'className':_0x2e5dbd(0x1ed),'children':_0x2e5dbd(0x161)}),(0x0,_0x31f262[_0x2e5dbd(0x209)])(_0x4172f9['Button'],{'onClick':()=>_0x2ba4fe[_0x2e5dbd(0x143)](),'children':_0x2e5dbd(0x1ec)})]});}function _0x53b8f6(_0x43ab66){const _0x191c1a=_0x1d4d30;let {coordinator:_0xa75adc}=_0x43ab66;return(0x0,_0x31f262[_0x191c1a(0x224)])(_0x31f262[_0x191c1a(0x190)],{'children':[(0x0,_0x31f262[_0x191c1a(0x209)])(_0x191c1a(0x163),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x191c1a(0x217)}),(0x0,_0x31f262[_0x191c1a(0x209)])(_0x4172f9['Button'],{'onClick':()=>_0xa75adc[_0x191c1a(0x1a4)](),'children':_0x191c1a(0x168)})]});}function _0xd69d04(_0x172102){const _0x5d09dd=_0x1d4d30;let {coordinator:_0x227940}=_0x172102;return(0x0,_0x31f262['jsxs'])(_0x31f262[_0x5d09dd(0x190)],{'children':[(0x0,_0x31f262[_0x5d09dd(0x209)])(_0x5d09dd(0x163),{'className':_0x5d09dd(0x1ed),'children':_0x5d09dd(0x21a)}),(0x0,_0x31f262['jsx'])(_0x4172f9[_0x5d09dd(0x1c2)],{'variant':_0x5d09dd(0x19a),'onClick':()=>_0x227940[_0x5d09dd(0x220)](),'children':_0x5d09dd(0x20e)})]});}function _0x446875(_0x39daaa){const _0xa47eda=_0x1d4d30;let {coordinator:_0x12b013}=_0x39daaa;return(0x0,_0x31f262['jsxs'])(_0x31f262[_0xa47eda(0x190)],{'children':[(0x0,_0x31f262[_0xa47eda(0x209)])('div',{'className':_0xa47eda(0x1ed),'children':_0xa47eda(0x1b4)}),(0x0,_0x31f262[_0xa47eda(0x209)])(_0x4172f9[_0xa47eda(0x1c2)],{'variant':'default','onClick':()=>_0x12b013[_0xa47eda(0x191)](),'children':_0xa47eda(0x140)})]});}function _0x2715ff(){const _0x4a7499=_0x1d4d30;return(0x0,_0x31f262[_0x4a7499(0x209)])(_0x31f262[_0x4a7499(0x190)],{'children':_0x4a7499(0x1cc)});}let _0x1f3097=class extends _0xb25766['Disposable']{constructor(_0x564d5b,_0x1681b4){const _0x1b9ee9=_0x1d4d30;super(),this['_injector']=_0x564d5b,this[_0x1b9ee9(0x141)]=_0x1681b4,this[_0x1b9ee9(0x177)]();}[_0x1d4d30(0x177)](){const _0x5be65d=_0x1d4d30;this[_0x5be65d(0x149)](this[_0x5be65d(0x141)]['registerComponent'](_0x50de09[_0x5be65d(0x17c)][_0x5be65d(0x1d6)],()=>(0x0,_0x50de09[_0x5be65d(0x13e)])(_0x2d25ed,this['_injector'])));}};_0x1f3097=_0x2b4402([_0x36dd09(0x0,(0x0,_0xb25766[_0x1d4d30(0x1b2)])(_0xb25766[_0x1d4d30(0x1b3)])),_0x36dd09(0x1,_0x50de09[_0x1d4d30(0x1e2)])],_0x1f3097);let _0x46f498=class extends _0xb25766[_0x1d4d30(0x1a7)]{constructor(_0x503efa=_0xdc8c56,_0x5887f5,_0x21e804){const _0x52a0ea=_0x1d4d30;super(),this[_0x52a0ea(0x194)]=_0x503efa,this[_0x52a0ea(0x1ee)]=_0x5887f5,this['_configService']=_0x21e804;let {..._0x375fb1}=(0x0,_0xb25766[_0x52a0ea(0x201)])({},_0xdc8c56,this[_0x52a0ea(0x194)]);this[_0x52a0ea(0x162)]['setConfig'](_0x52a0ea(0x202),_0x375fb1);}['onStarting'](){const _0x3dbec8=_0x1d4d30;(0x0,_0xb25766['registerDependencies'])(this['_injector'],(0x0,_0xb25766[_0x3dbec8(0x17f)])([[_0x52b9e9],[_0x47372d],[_0x5bf64f],[_0x1f3097]],this[_0x3dbec8(0x194)][_0x3dbec8(0x208)])),(0x0,_0xb25766[_0x3dbec8(0x1a1)])(this[_0x3dbec8(0x1ee)],[[_0x5bf64f]]);}[_0x1d4d30(0x14b)](){const _0x39e777=_0x1d4d30;(0x0,_0xb25766[_0x39e777(0x1a1)])(this[_0x39e777(0x1ee)],[[_0x1f3097]]);}};_0x198a30(_0x46f498,_0x1d4d30(0x1c6),_0xb25766[_0x1d4d30(0x15d)][_0x1d4d30(0x218)]),_0x198a30(_0x46f498,_0x1d4d30(0x151),_0x1d4d30(0x1d5)),_0x198a30(_0x46f498,_0x1d4d30(0x166),_0xfbf7df),_0x198a30(_0x46f498,'version',_0x38dea6),_0x46f498=_0x2b4402([(0x0,_0xb25766['DependentOn'])(_0x5a9e64[_0x1d4d30(0x19c)]),_0x36dd09(0x1,(0x0,_0xb25766['Inject'])(_0xb25766[_0x1d4d30(0x1b3)])),_0x36dd09(0x2,_0xb25766[_0x1d4d30(0x1c0)])],_0x46f498),Object[_0x1d4d30(0x1b7)](_0x131977,_0x1d4d30(0x207),{'enumerable':!0x0,'get':function(){return _0x47372d;}}),_0x131977[_0x1d4d30(0x20f)]=_0x267d9f,Object['defineProperty'](_0x131977,_0x1d4d30(0x14e),{'enumerable':!0x0,'get':function(){return _0x46f498;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Live share collaboration plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"rxjs": ">=7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@univerjs/icons": "1.
|
|
66
|
-
"@univerjs-pro/collaboration": "1.0.0-alpha.
|
|
67
|
-
"@univerjs-pro/collaboration-client": "1.0.0-alpha.
|
|
68
|
-
"@univerjs/core": "1.0.0-alpha.
|
|
69
|
-
"@univerjs/design": "1.0.0-alpha.
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/sheets": "1.0.0-alpha.
|
|
65
|
+
"@univerjs/icons": "1.34.0",
|
|
66
|
+
"@univerjs-pro/collaboration": "1.0.0-alpha.7",
|
|
67
|
+
"@univerjs-pro/collaboration-client": "1.0.0-alpha.7",
|
|
68
|
+
"@univerjs/core": "1.0.0-alpha.7",
|
|
69
|
+
"@univerjs/design": "1.0.0-alpha.7",
|
|
70
|
+
"@univerjs/sheets": "1.0.0-alpha.7",
|
|
71
|
+
"@univerjs/ui": "1.0.0-alpha.7",
|
|
72
|
+
"@univerjs/sheets-ui": "1.0.0-alpha.7"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"postcss": "^8.5.19",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"tailwindcss": "3.4.17",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
80
|
"vitest": "^4.1.10",
|
|
81
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
82
|
-
"@univerjs/protocol": "1.0.0-alpha.
|
|
81
|
+
"@univerjs-infra/shared": "1.0.0-alpha.7",
|
|
82
|
+
"@univerjs/protocol": "1.0.0-alpha.7"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"test": "vitest run",
|