@univerjs-pro/live-share 0.15.3-insiders.20260131-cbd5fac → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x28bc(_0x3e7af3,_0xe0cf83){_0x3e7af3=_0x3e7af3-0x99;const _0x1a2922=_0x1a29();let _0x28bc01=_0x1a2922[_0x3e7af3];return _0x28bc01;}const _0x46e566=_0x28bc;(function(_0x5db04b,_0x1c13d7){const _0x32b5df=_0x28bc,_0x30a18a=_0x5db04b();while(!![]){try{const _0x402a52=parseInt(_0x32b5df(0xb3))/0x1*(parseInt(_0x32b5df(0xac))/0x2)+parseInt(_0x32b5df(0xa5))/0x3+-parseInt(_0x32b5df(0xaa))/0x4*(parseInt(_0x32b5df(0xa4))/0x5)+-parseInt(_0x32b5df(0xa8))/0x6+-parseInt(_0x32b5df(0x99))/0x7*(parseInt(_0x32b5df(0xb9))/0x8)+parseInt(_0x32b5df(0xaf))/0x9+-parseInt(_0x32b5df(0xa3))/0xa*(-parseInt(_0x32b5df(0x9e))/0xb);if(_0x402a52===_0x1c13d7)break;else _0x30a18a['push'](_0x30a18a['shift']());}catch(_0x500c44){_0x30a18a['push'](_0x30a18a['shift']());}}}(_0x1a29,0x80b45));var h=Object[_0x46e566(0xa6)],u=(_0x52525c,_0x2362ce,_0x96dce0)=>_0x2362ce in _0x52525c?h(_0x52525c,_0x2362ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x96dce0}):_0x52525c[_0x2362ce]=_0x96dce0,S=(_0x39d8b0,_0x37139a,_0x2a3d47)=>u(_0x39d8b0,typeof _0x37139a!='symbol'?_0x37139a+'':_0x37139a,_0x2a3d47);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x46e566(0xbd)]{constructor(){const _0x3dc989=_0x46e566;super(...arguments),S(this,_0x3dc989(0xbc));}[_0x46e566(0xba)](_0xcf265e){const _0x5ba229=_0x46e566;this[_0x5ba229(0xbc)]=_0xcf265e[_0x5ba229(0xb7)](s[_0x5ba229(0xa9)]);}[_0x46e566(0xa2)](){const _0x1201c8=_0x46e566;var _0x3802cb;const _0x521664=this[_0x1201c8(0xad)][_0x1201c8(0xb7)](n[_0x1201c8(0xae)])[_0x1201c8(0xbb)](n[_0x1201c8(0xb8)]['UNIVER_SHEET']);if(!_0x521664)throw new Error(_0x1201c8(0xa7));const _0x39670b=_0x521664[_0x1201c8(0x9d)](),_0x26ca4d=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x39670b);return(_0x3802cb=_0x26ca4d==null?void 0x0:_0x26ca4d[_0x1201c8(0xa1)]())!=null?_0x3802cb:s[_0x1201c8(0xb6)][_0x1201c8(0x9f)];}[_0x46e566(0xb1)](){const _0x47154b=_0x46e566,_0x1cc17a=this[_0x47154b(0xad)]['get'](n[_0x47154b(0xae)])[_0x47154b(0xbb)](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x1cc17a)throw new Error(_0x47154b(0xa7));const _0x1e618f=_0x1cc17a[_0x47154b(0x9d)](),_0x4c521b=this['_liveShareController'][_0x47154b(0xa0)](_0x1e618f);if(!_0x4c521b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4c521b['startFollowing']();}[_0x46e566(0x9b)](){const _0x398671=_0x46e566,_0x81c85=this[_0x398671(0xad)][_0x398671(0xb7)](n[_0x398671(0xae)])[_0x398671(0xbb)](n['UniverInstanceType'][_0x398671(0xb4)]);if(!_0x81c85)throw new Error(_0x398671(0xa7));const _0x2c03ec=_0x81c85[_0x398671(0x9d)](),_0x333776=this[_0x398671(0xbc)][_0x398671(0xa0)](_0x2c03ec);if(!_0x333776)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x333776[_0x398671(0x9b)]();}[_0x46e566(0xb5)](){const _0x272499=_0x46e566,_0x45a819=this['_injector'][_0x272499(0xb7)](n[_0x272499(0xae)])['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x45a819)throw new Error(_0x272499(0xa7));const _0x14ce11=_0x45a819['getUnitId'](),_0x18cc62=this[_0x272499(0xbc)][_0x272499(0xa0)](_0x14ce11);if(!_0x18cc62)throw new Error(_0x272499(0xab));_0x18cc62[_0x272499(0x9c)]();}[_0x46e566(0xb0)](){const _0x4a93e4=_0x46e566,_0x3299b9=this[_0x4a93e4(0xad)]['get'](n[_0x4a93e4(0xae)])[_0x4a93e4(0xbb)](n[_0x4a93e4(0xb8)][_0x4a93e4(0xb4)]);if(!_0x3299b9)throw new Error(_0x4a93e4(0xa7));const _0xe31a93=_0x3299b9['getUnitId'](),_0x35940d=this[_0x4a93e4(0xbc)][_0x4a93e4(0xa0)](_0xe31a93);if(!_0x35940d)throw new Error(_0x4a93e4(0xab));_0x35940d[_0x4a93e4(0xb0)]();}}c[_0x46e566(0xbd)][_0x46e566(0x9a)](I);class l extends c['FEnum']{get[_0x46e566(0xb2)](){return s['LiveShareStatus'];}}c['FEnum']['extend'](l);function _0x1a29(){const _0x36d58d=['getLiveShareCoordinatorSync','getStatus','getLiveShareStatus','50JgfSDC','5cqmhlO','1163040CKFUCM','defineProperty','No\x20active\x20workbook\x20found.','2522958WlJoSl','LiveShareController','2383980UdbORH','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','566ENmkeL','_injector','IUniverInstanceService','2730789YSwUPY','stopPresenting','startFollowing','LiveShareStatusEnum','3425WKIXvi','UNIVER_SHEET','startPresenting','LiveShareStatus','get','UniverInstanceType','133816IrFqOn','_initialize','getCurrentUnitOfType','_liveShareController','FUniver','70wLcEBD','extend','stopFollowing','tryStartPresenting','getUnitId','111221jgpQGv','IDLE'];_0x1a29=function(){return _0x36d58d;};return _0x1a29();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xa3ede=_0x1414;(function(_0x3da658,_0x1a6a78){const _0x2752ce=_0x1414,_0x30a035=_0x3da658();while(!![]){try{const _0x45a89f=parseInt(_0x2752ce(0x1a6))/0x1*(parseInt(_0x2752ce(0x165))/0x2)+parseInt(_0x2752ce(0x112))/0x3*(-parseInt(_0x2752ce(0xe6))/0x4)+-parseInt(_0x2752ce(0x116))/0x5+parseInt(_0x2752ce(0x14c))/0x6*(parseInt(_0x2752ce(0x17d))/0x7)+-parseInt(_0x2752ce(0xf8))/0x8+parseInt(_0x2752ce(0x16b))/0x9*(-parseInt(_0x2752ce(0x14d))/0xa)+parseInt(_0x2752ce(0x107))/0xb;if(_0x45a89f===_0x1a6a78)break;else _0x30a035['push'](_0x30a035['shift']());}catch(_0x425210){_0x30a035['push'](_0x30a035['shift']());}}}(_0x409c,0xe5413));var T=Object[_0xa3ede(0xef)],U=(_0x300354,_0x427b65,_0x4d2b6b)=>_0x427b65 in _0x300354?T(_0x300354,_0x427b65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d2b6b}):_0x300354[_0x427b65]=_0x4d2b6b,_=(_0x3679da,_0x59562d,_0x4e5e44)=>U(_0x3679da,typeof _0x59562d!=_0xa3ede(0x1ac)?_0x59562d+'':_0x59562d,_0x4e5e44);Object['defineProperty'](exports,Symbol[_0xa3ede(0x18e)],{'value':_0xa3ede(0xdd)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x2884ac,..._0x42e01f}){const _0x476eb1=_0xa3ede,{icon:_0x404bc4,id:_0x2abea8,className:_0x5e9ce9,extend:_0x1047b3,..._0x27bbe1}=_0x42e01f,_0x1d37ba=(_0x476eb1(0x1aa)+_0x2abea8+'\x20'+(_0x5e9ce9||''))['trim'](),_0x2eb3d1=v[_0x476eb1(0x12f)]('_'+H());return j(_0x404bc4,''+_0x2abea8,{'defIds':_0x404bc4[_0x476eb1(0xe3)],'idSuffix':_0x2eb3d1[_0x476eb1(0x16d)]},{'ref':_0x2884ac,'className':_0x1d37ba,..._0x27bbe1},_0x1047b3);}function j(_0x3c6c89,_0x27b0d8,_0x3cfeb7,_0x5ee408,_0x203de1){const _0x4d87ef=_0xa3ede;return v[_0x4d87ef(0x127)](_0x3c6c89[_0x4d87ef(0x161)],{'key':_0x27b0d8,...y(_0x3c6c89,_0x3cfeb7,_0x203de1),..._0x5ee408},(F(_0x3c6c89,_0x3cfeb7)[_0x4d87ef(0xe7)]||[])[_0x4d87ef(0x147)]((_0x4caf5e,_0x434a75)=>j(_0x4caf5e,_0x27b0d8+'-'+_0x3c6c89[_0x4d87ef(0x161)]+'-'+_0x434a75,_0x3cfeb7,void 0x0,_0x203de1)));}function y(_0x5565a5,_0x492f6b,_0x444303){const _0x535a99=_0xa3ede,_0x112a34={..._0x5565a5[_0x535a99(0x111)]};_0x444303!=null&&_0x444303[_0x535a99(0x122)]&&_0x112a34[_0x535a99(0x17e)]==='colorChannel1'&&(_0x112a34[_0x535a99(0x17e)]=_0x444303[_0x535a99(0x122)]),_0x5565a5[_0x535a99(0x161)]===_0x535a99(0x17a)&&_0x112a34['id']&&(_0x112a34['id']=_0x112a34['id']+_0x492f6b[_0x535a99(0x176)]),Object['entries'](_0x112a34)['forEach'](([_0xf9210a,_0x367f0d])=>{const _0x2ab9f1=_0x535a99;_0xf9210a==='mask'&&typeof _0x367f0d==_0x2ab9f1(0x17b)&&(_0x112a34[_0xf9210a]=_0x367f0d['replace'](/url\(#(.*)\)/,_0x2ab9f1(0x19b)+_0x492f6b[_0x2ab9f1(0x176)]+')'));});const {defIds:_0x18ee2e}=_0x492f6b;return!_0x18ee2e||_0x18ee2e[_0x535a99(0x18c)]===0x0||(_0x5565a5[_0x535a99(0x161)]===_0x535a99(0x13f)&&_0x112a34[_0x535a99(0xf6)]&&(_0x112a34[_0x535a99(0xf6)]=_0x112a34[_0x535a99(0xf6)]+_0x492f6b['idSuffix']),Object['entries'](_0x112a34)[_0x535a99(0x16c)](([_0x4b077,_0x326d8d])=>{const _0x2198e5=_0x535a99;typeof _0x326d8d=='string'&&(_0x112a34[_0x4b077]=_0x326d8d[_0x2198e5(0x169)](/url\(#(.*)\)/,_0x2198e5(0x19b)+_0x492f6b[_0x2198e5(0x176)]+')'));})),_0x112a34;}function F(_0x553783,_0x5ce415){const _0x474973=_0xa3ede;var _0x2dc96f;const {defIds:_0x558bb5}=_0x5ce415;return!_0x558bb5||_0x558bb5[_0x474973(0x18c)]===0x0?_0x553783:_0x553783['tag']==='defs'&&((_0x2dc96f=_0x553783['children'])!=null&&_0x2dc96f[_0x474973(0x18c)])?{..._0x553783,'children':_0x553783[_0x474973(0xe7)][_0x474973(0x147)](_0x3313d6=>typeof _0x3313d6[_0x474973(0x111)]['id']==_0x474973(0x17b)&&_0x558bb5&&_0x558bb5[_0x474973(0x128)](_0x3313d6[_0x474973(0x111)]['id'])?{..._0x3313d6,'attrs':{..._0x3313d6[_0x474973(0x111)],'id':_0x3313d6[_0x474973(0x111)]['id']+_0x5ce415[_0x474973(0x176)]}}:_0x3313d6)}:_0x553783;}function H(){const _0x3c7abf=_0xa3ede;return Math[_0x3c7abf(0x168)]()[_0x3c7abf(0x11f)](0x24)[_0x3c7abf(0xec)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0xa3ede(0xfe),'fill':_0xa3ede(0x175),'viewBox':_0xa3ede(0x146),'width':_0xa3ede(0x12a),'height':_0xa3ede(0x12a)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0xa3ede(0x19f)}},{'tag':_0xa3ede(0x10e),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0xa3ede(0xfa),'clipRule':_0xa3ede(0xfa)}}]},R=v[_0xa3ede(0x137)](function(_0x5ace2e,_0x2bac1c){const _0xefde4a=_0xa3ede;return v[_0xefde4a(0x127)](x,Object['assign']({},_0x5ace2e,{'id':'live-share-icon','ref':_0x2bac1c,'icon':V}));});function _0x1414(_0x2024fb,_0x5ce453){_0x2024fb=_0x2024fb-0xdd;const _0x409cb8=_0x409c();let _0x141418=_0x409cb8[_0x2024fb];return _0x141418;}R[_0xa3ede(0x15f)]=_0xa3ede(0x11e);class E extends o[_0xa3ede(0x141)]{constructor(){const _0xea54e4=_0xa3ede;super(...arguments),_(this,_0xea54e4(0x155),new Set()),_(this,'_reporters',new Set());}['registerSharedOperation'](_0x45976f){const _0x179e48=_0xa3ede;return this[_0x179e48(0x155)][_0x179e48(0x15a)](_0x45976f),o['toDisposable'](()=>this[_0x179e48(0x155)][_0x179e48(0xf3)](_0x45976f));}[_0xa3ede(0x108)](_0x47c66d){const _0x381d42=_0xa3ede;return this[_0x381d42(0x123)][_0x381d42(0x15a)](_0x47c66d),o[_0x381d42(0x13a)](()=>this['_reporters'][_0x381d42(0xf3)](_0x47c66d));}[_0xa3ede(0x16a)](_0x32af55){return this['_sharedOperations']['has'](_0x32af55);}[_0xa3ede(0x13b)](_0x27cb93){const _0x530621=_0xa3ede;return Array['from'](this[_0x530621(0x123)])[_0x530621(0x147)](_0x51ad7d=>_0x51ad7d(_0x27cb93));}}var M=Object[_0xa3ede(0x16f)],P=(_0x253cc8,_0x1302e3,_0x38f866,_0xec46e6)=>{const _0x57c0ef=_0xa3ede;for(var _0x507e4d=_0xec46e6>0x1?void 0x0:_0xec46e6?M(_0x1302e3,_0x38f866):_0x1302e3,_0x2fc534=_0x253cc8[_0x57c0ef(0x18c)]-0x1,_0x227081;_0x2fc534>=0x0;_0x2fc534--)(_0x227081=_0x253cc8[_0x2fc534])&&(_0x507e4d=_0x227081(_0x507e4d)||_0x507e4d);return _0x507e4d;},S=(_0x12bf69,_0x111761)=>(_0x130670,_0xdd08a0)=>_0x111761(_0x130670,_0xdd08a0,_0x12bf69);exports[_0xa3ede(0x191)]=class extends o['RxDisposable']{constructor(_0x1f7cae,_0x258dab,_0x662b03){const _0x7a9516=_0xa3ede;super(),_(this,_0x7a9516(0x167),new Map()),(this['_univerInstanceService']=_0x1f7cae,this[_0x7a9516(0x106)]=_0x258dab,this[_0x7a9516(0x197)]=_0x662b03,this[_0x7a9516(0x131)]());}async[_0xa3ede(0xf9)](_0x5ef58e){const _0x232278=_0xa3ede;return this[_0x232278(0x167)][_0x232278(0xf1)](_0x5ef58e)||await this[_0x232278(0x187)](_0x5ef58e),this[_0x232278(0x167)]['get'](_0x5ef58e);}['getLiveShareCoordinatorSync'](_0x2c9abf){const _0x3f9b84=_0xa3ede;var _0x3328ae;return(_0x3328ae=this[_0x3f9b84(0x167)]['get'](_0x2c9abf))!=null?_0x3328ae:null;}[_0xa3ede(0x131)](){const _0x1c06c8=_0xa3ede;this[_0x1c06c8(0x10d)]['getTypeOfUnitAdded$'](o[_0x1c06c8(0x177)][_0x1c06c8(0x114)])['pipe'](I['takeUntil'](this[_0x1c06c8(0x196)]))[_0x1c06c8(0x14f)](async _0x17465e=>{const _0x322b81=_0x1c06c8,_0x137714=_0x17465e['getUnitId']();this[_0x322b81(0x167)][_0x322b81(0xf1)](_0x137714)||this[_0x322b81(0x187)](_0x137714);}),this[_0x1c06c8(0x10d)][_0x1c06c8(0xe0)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1c06c8(0x17c)](I['takeUntil'](this['dispose$']))[_0x1c06c8(0x14f)](_0x3739ed=>{const _0xbe0895=_0x1c06c8,_0x5c1231=_0x3739ed[_0xbe0895(0x164)](),_0x1eacc9=this[_0xbe0895(0x167)][_0xbe0895(0x1a0)](_0x5c1231);_0x1eacc9==null||_0x1eacc9[_0xbe0895(0xdf)]();});}async[_0xa3ede(0x187)](_0x1ce4eb){const _0x557422=_0xa3ede,_0x3f3964=await this[_0x557422(0x197)][_0x557422(0x118)](_0x1ce4eb),_0x19aab8=this[_0x557422(0x106)]['createInstance'](exports[_0x557422(0x178)],_0x1ce4eb,_0x3f3964);return _0x19aab8[_0x557422(0xeb)](),this[_0x557422(0x167)]['set'](_0x1ce4eb,_0x19aab8),_0x19aab8;}},exports[_0xa3ede(0x191)]=P([S(0x0,o[_0xa3ede(0x11a)]),S(0x1,o[_0xa3ede(0x109)](o['Injector'])),S(0x2,o['Inject'](b[_0xa3ede(0x149)]))],exports[_0xa3ede(0x191)]);var u=(_0x4555d9=>(_0x4555d9['OFFLINE']=_0xa3ede(0x181),_0x4555d9[_0xa3ede(0x1a2)]='idle',_0x4555d9[_0xa3ede(0x12d)]=_0xa3ede(0x172),_0x4555d9['NOT_FOLLOWING']=_0xa3ede(0x1a1),_0x4555d9[_0xa3ede(0x1a4)]='presenting',_0x4555d9))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0xa3ede(0x133)]{constructor(_0x8c8d95,_0x587d4d,_0x403db2,_0x1dd574,_0x7c7d2b){const _0x3b37a0=_0xa3ede;super(),_(this,_0x3b37a0(0x188),new O[(_0x3b37a0(0x1ad))]('idle')),_(this,_0x3b37a0(0x121),this[_0x3b37a0(0x188)][_0x3b37a0(0x1a7)]()),_(this,_0x3b37a0(0x131),!0x1),_(this,_0x3b37a0(0x10b),null),_(this,_0x3b37a0(0x163),null),(this[_0x3b37a0(0x154)]=_0x8c8d95,this[_0x3b37a0(0x129)]=_0x587d4d,this[_0x3b37a0(0x100)]=_0x403db2,this[_0x3b37a0(0x195)]=_0x1dd574,this[_0x3b37a0(0x19a)]=_0x7c7d2b);}get[_0xa3ede(0x189)](){const _0x4bc046=_0xa3ede;return this[_0x4bc046(0x188)]['getValue']();}[_0xa3ede(0xdf)](){const _0x5d9f92=_0xa3ede;var _0x6548a9;(_0x6548a9=this[_0x5d9f92(0x10b)])==null||_0x6548a9[_0x5d9f92(0xdf)](),this[_0x5d9f92(0x188)]['next'](_0x5d9f92(0xe2)),this['_status$'][_0x5d9f92(0x18d)]();}[_0xa3ede(0x138)](){const _0x98b9ac=_0xa3ede;return this[_0x98b9ac(0x189)];}['init'](){const _0x1eea7b=_0xa3ede;this[_0x1eea7b(0x131)]||(this[_0x1eea7b(0x131)]=!0x0,this[_0x1eea7b(0x129)]['sessionStatus$'][_0x1eea7b(0x17c)](I[_0x1eea7b(0x156)](this[_0x1eea7b(0x196)]))['subscribe'](_0x25a14e=>{const _0x5b068e=_0x1eea7b;switch(_0x25a14e){case b[_0x5b068e(0x15e)][_0x5b068e(0x117)]:this[_0x5b068e(0xff)]();break;case b[_0x5b068e(0x15e)]['ONLINE']:this[_0x5b068e(0x110)]();break;}}),this[_0x1eea7b(0x129)][_0x1eea7b(0xed)][_0x1eea7b(0x17c)](I[_0x1eea7b(0x156)](this['dispose$']))[_0x1eea7b(0x14f)](_0x439c9d=>{const _0x36546f=_0x1eea7b,{eventID:_0x4b10cc}=_0x439c9d;switch(_0x4b10cc){case d[_0x36546f(0x170)][_0x36546f(0x14b)]:this['_handleNewHost'](_0x439c9d);break;case d[_0x36546f(0x170)][_0x36546f(0x18a)]:this[_0x36546f(0xf4)](_0x439c9d);break;case d[_0x36546f(0x170)]['LIVESHARE_TERMINATE']:this[_0x36546f(0x1a8)]();break;case d[_0x36546f(0x170)]['NEW_CHANGESETS']:this[_0x36546f(0x198)](_0x439c9d);break;}}));}[_0xa3ede(0xe8)](){const _0x39c099=_0xa3ede;this[_0x39c099(0x129)][_0x39c099(0xf7)]({'eventID':d[_0x39c099(0x170)][_0x39c099(0x15d)],'data':{'unitID':this[_0x39c099(0x154)],'userID':this[_0x39c099(0x129)][_0x39c099(0x135)]()}},this['_unitID']);}[_0xa3ede(0x10f)](){const _0x42ef2d=_0xa3ede;this['_status']===_0x42ef2d(0x14e)&&(this[_0x42ef2d(0x188)][_0x42ef2d(0xfc)](_0x42ef2d(0xe2)),this[_0x42ef2d(0x129)][_0x42ef2d(0xf7)]({'eventID':d[_0x42ef2d(0x170)][_0x42ef2d(0x12e)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0xa3ede(0x1a9)](){const _0x36e6a8=_0xa3ede;this['_status']===_0x36e6a8(0x1a1)&&(this[_0x36e6a8(0x188)]['next'](_0x36e6a8(0x172)),this[_0x36e6a8(0x157)]());}[_0xa3ede(0xf5)](){const _0x31e713=_0xa3ede;this[_0x31e713(0x189)]===_0x31e713(0x172)&&this['_stopFollowing']();}[_0xa3ede(0x153)](_0x248d80){const _0x50611c=_0xa3ede,{presenter:_0x4cb770}=_0x248d80[_0x50611c(0x184)],_0x4200d4=this[_0x50611c(0x129)]['getMemberID']();this[_0x50611c(0x163)]=_0x4cb770,_0x4cb770===_0x4200d4?(this['_stopFollowing'](),this[_0x50611c(0x119)]()):this[_0x50611c(0x189)]!==_0x50611c(0x1a1)&&(this[_0x50611c(0xee)](),this[_0x50611c(0x157)]());}[_0xa3ede(0x12b)](){const _0x3d95ac=_0xa3ede,_0xee313f={'eventID':d[_0x3d95ac(0x170)][_0x3d95ac(0x192)]};this[_0x3d95ac(0x129)][_0x3d95ac(0xf7)](_0xee313f,this[_0x3d95ac(0x154)]);}[_0xa3ede(0x1a8)](){const _0x858827=_0xa3ede;this[_0x858827(0x163)]=null,this['_status']!==_0x858827(0x14e)&&this[_0x858827(0x19e)]();}[_0xa3ede(0x198)](_0x5a2e6e){const _0x455c2a=_0xa3ede;if(this[_0x455c2a(0x189)]===_0x455c2a(0x172)&&this[_0x455c2a(0x163)]===_0x5a2e6e[_0x455c2a(0x184)]['memberID']){const _0x5ad206=d[_0x455c2a(0x174)](_0x5a2e6e[_0x455c2a(0x184)])[_0x455c2a(0xfd)][_0x455c2a(0x18b)]()['find'](_0x39864f=>_0x39864f['id']===C[_0x455c2a(0xe1)]['id']);if(_0x5ad206){const _0x508568=_0x5ad206[_0x455c2a(0x190)][_0x455c2a(0xe4)],_0x3da130=_0x5ad206['params'][_0x455c2a(0x12c)]['id'];setTimeout(()=>{const _0x43ce17=_0x455c2a;this[_0x43ce17(0x19a)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x508568,'subUnitId':_0x3da130},{'fromCollab':!0x0});});}}}[_0xa3ede(0x119)](){const _0x453fc6=_0xa3ede;this[_0x453fc6(0x188)][_0x453fc6(0xfc)](_0x453fc6(0x14e));const _0x1c5703=new Map(),_0x5d8ab=this[_0x453fc6(0x10b)]=new o[(_0x453fc6(0x13d))]();_0x5d8ab[_0x453fc6(0x15a)](o[_0x453fc6(0x13a)](()=>{const _0x30a249=_0x453fc6;_0x1c5703[_0x30a249(0x16c)](_0x16b8ca=>_0x16b8ca[_0x30a249(0x18d)]()),_0x1c5703[_0x30a249(0x15b)]();})),_0x5d8ab[_0x453fc6(0x15a)](this[_0x453fc6(0x19a)][_0x453fc6(0x14a)](_0x3a6088=>{const _0x3227ae=_0x453fc6;var _0x352804;if(_0x3a6088[_0x3227ae(0x11b)]!==o[_0x3227ae(0x144)]['OPERATION']||!this[_0x3227ae(0x195)][_0x3227ae(0x16a)](_0x3a6088['id']))return;const {id:_0x5d2d69}=_0x3a6088;let _0x935d05;_0x1c5703[_0x3227ae(0xf1)](_0x5d2d69)?_0x935d05=_0x1c5703['get'](_0x5d2d69):(_0x935d05=new O[(_0x3227ae(0x1a5))](),_0x1c5703[_0x3227ae(0x1a3)](_0x5d2d69,_0x935d05),_0x935d05[_0x3227ae(0x17c)](I[_0x3227ae(0x1ab)]((_0x352804=this['_configService'][_0x3227ae(0x125)](k))!=null?_0x352804:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xeb50bd=>{const _0x5d366e=_0x3227ae;this[_0x5d366e(0x129)][_0x5d366e(0xf7)]({'eventID':d[_0x5d366e(0x170)][_0x5d366e(0x18a)],'data':{'unitID':this[_0x5d366e(0x154)],'operations':{[_0xeb50bd['id']]:{'id':_0xeb50bd['id'],'params':JSON['stringify'](_0xeb50bd['params'])}}}},this[_0x5d366e(0x154)]);})),_0x935d05['next'](_0x3a6088);})),this[_0x453fc6(0x195)][_0x453fc6(0x13b)](this['_unitID'])[_0x453fc6(0x16c)](_0x127762=>this['_collabSession'][_0x453fc6(0xf7)]({'eventID':d[_0x453fc6(0x170)][_0x453fc6(0x18a)],'data':{'unitID':this[_0x453fc6(0x154)],'operations':{[_0x127762['id']]:{'id':_0x127762['id'],'params':JSON[_0x453fc6(0xf2)](_0x127762[_0x453fc6(0x190)])}}}},this[_0x453fc6(0x154)]));}[_0xa3ede(0xee)](){const _0xb68493=_0xa3ede;var _0x36c989;this['_status$']['next']('idle'),(_0x36c989=this[_0xb68493(0x10b)])==null||_0x36c989['dispose'](),this[_0xb68493(0x10b)]=null;}['_startFollowing'](){const _0x3fb340=_0xa3ede;var _0x11c4ee;(_0x11c4ee=this[_0x3fb340(0x10b)])==null||_0x11c4ee[_0x3fb340(0xdf)](),this[_0x3fb340(0x188)]['next'](_0x3fb340(0x172));}[_0xa3ede(0x19e)](){const _0x50f5ba=_0xa3ede;var _0x5a1b83;this[_0x50f5ba(0x188)][_0x50f5ba(0xfc)](_0x50f5ba(0xe2)),(_0x5a1b83=this[_0x50f5ba(0x10b)])==null||_0x5a1b83[_0x50f5ba(0xdf)](),this[_0x50f5ba(0x10b)]=null;}[_0xa3ede(0x183)](){const _0x24e0b2=_0xa3ede;var _0x1a9b4d;this['_status$']['next']('not-following'),(_0x1a9b4d=this[_0x24e0b2(0x10b)])==null||_0x1a9b4d[_0x24e0b2(0xdf)]();}[_0xa3ede(0xf4)](_0x2e69f5){const _0x4b542b=_0xa3ede;if(['presenting',_0x4b542b(0x1a1),_0x4b542b(0x181)][_0x4b542b(0x128)](this[_0x4b542b(0x189)])||!_0x2e69f5[_0x4b542b(0x184)]['presenter']||_0x2e69f5[_0x4b542b(0x184)][_0x4b542b(0x193)]===this['_collabSession'][_0x4b542b(0x135)]())return;this[_0x4b542b(0x189)]===_0x4b542b(0xe2)&&this[_0x4b542b(0x157)]();const _0x2c5761=_0x2e69f5[_0x4b542b(0x184)]['operations'];Object[_0x4b542b(0x132)](_0x2c5761)[_0x4b542b(0x16c)](_0xfbcfee=>{const _0x19ff34=_0x4b542b;this['_commandService']['executeCommand'](_0xfbcfee['id'],_0xfbcfee[_0x19ff34(0x190)]?JSON[_0x19ff34(0x18f)](_0xfbcfee['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x12523e=_0xa3ede;var _0x21e17f;this[_0x12523e(0x188)][_0x12523e(0xfc)]('offline'),(_0x21e17f=this[_0x12523e(0x10b)])==null||_0x21e17f[_0x12523e(0xdf)]();}[_0xa3ede(0x110)](){const _0x162b10=_0xa3ede;this[_0x162b10(0x188)][_0x162b10(0xfc)](_0x162b10(0xe2)),this['_fetchOperations']();}},exports[_0xa3ede(0x178)]=P([S(0x2,o[_0xa3ede(0xfb)]),S(0x3,o[_0xa3ede(0x109)](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0x530067=_0xa3ede,_0x5e6814=p['useDependency'](exports[_0x530067(0x191)]),_0x582743=p['useDependency'](o[_0x530067(0x11a)]),_0x114552=p['useObservable'](()=>_0x582743['getCurrentTypeOfUnit$'](o[_0x530067(0x177)][_0x530067(0x114)]),void 0x0,!0x1,[]),[_0x5c1b7a,_0x5d53a6]=v[_0x530067(0x113)](null),[_0x7a901f,_0x3f0876]=v['useState'](u[_0x530067(0x1a2)]),_0x570af4=v[_0x530067(0x12f)](null);return v[_0x530067(0x171)](()=>(_0x114552&&_0x5e6814[_0x530067(0xf9)](_0x114552['getUnitId']())[_0x530067(0x19d)](_0x45a76d=>{const _0x184d15=_0x530067;_0x5d53a6(_0x45a76d),_0x570af4[_0x184d15(0x16d)]=_0x45a76d[_0x184d15(0x121)][_0x184d15(0x14f)](_0x4e0ee0=>{_0x3f0876(_0x4e0ee0);});}),()=>{const _0x2deed0=_0x530067;var _0x414224;(_0x414224=_0x570af4['current'])==null||_0x414224[_0x2deed0(0x120)](),_0x570af4['current']=null;}),[_0x114552,_0x5e6814]),_0x5c1b7a?l[_0x530067(0x17f)](f[_0x530067(0xea)],{'align':'end','disabled':_0x7a901f===u[_0x530067(0x117)],'className':_0x530067(0x143),'overlay':l[_0x530067(0x17f)](W,{'status':_0x7a901f,'coordinator':_0x5c1b7a}),'children':l[_0x530067(0x17f)]('button',{'className':f[_0x530067(0x130)](_0x530067(0x11c),{'univer-cursor-not-allowed':_0x7a901f===u[_0x530067(0x117)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x7a901f!==u[_0x530067(0x117)]}),'type':_0x530067(0x104),'children':l['jsx'](R,{'className':_0x530067(0x101)})})}):null;}function W(_0x478f7f){const _0x718012=_0xa3ede,{status:_0x3f2e90,coordinator:_0x666873}=_0x478f7f;switch(_0x3f2e90){case u[_0x718012(0x1a2)]:return l[_0x718012(0x17f)](G,{'coordinator':_0x666873});case u[_0x718012(0x12d)]:return l[_0x718012(0x17f)](B,{'coordinator':_0x666873});case u[_0x718012(0x162)]:return l[_0x718012(0x17f)](Y,{'coordinator':_0x666873});case u[_0x718012(0x117)]:return l[_0x718012(0x17f)](J,{});case u[_0x718012(0x1a4)]:return l[_0x718012(0x17f)](Z,{'coordinator':_0x666873});default:return null;}}function G(_0x8b13e9){const _0xc1f5f9=_0xa3ede,{coordinator:_0x3e7aa1}=_0x8b13e9;return l[_0xc1f5f9(0x136)](l[_0xc1f5f9(0xe5)],{'children':[l['jsx'](_0xc1f5f9(0x10a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l['jsx'](f[_0xc1f5f9(0x159)],{'onClick':()=>_0x3e7aa1[_0xc1f5f9(0xe8)](),'children':_0xc1f5f9(0x160)})]});}function B(_0x314e66){const _0x51e54b=_0xa3ede,{coordinator:_0x5ce518}=_0x314e66;return l[_0x51e54b(0x136)](l[_0x51e54b(0xe5)],{'children':[l[_0x51e54b(0x17f)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x51e54b(0x179)}),l[_0x51e54b(0x17f)](f['Button'],{'onClick':()=>_0x5ce518['stopFollowing'](),'children':_0x51e54b(0x124)})]});}function Y(_0x265305){const _0x3a561f=_0xa3ede,{coordinator:_0x562e13}=_0x265305;return l[_0x3a561f(0x136)](l[_0x3a561f(0xe5)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3a561f(0x158)}),l['jsx'](f[_0x3a561f(0x159)],{'variant':_0x3a561f(0x126),'onClick':()=>_0x562e13['startFollowing'](),'children':_0x3a561f(0x115)})]});}function Z(_0x50e436){const _0x3d67b8=_0xa3ede,{coordinator:_0x523553}=_0x50e436;return l['jsxs'](l[_0x3d67b8(0xe5)],{'children':[l['jsx'](_0x3d67b8(0x10a),{'className':_0x3d67b8(0x11d),'children':_0x3d67b8(0x105)}),l[_0x3d67b8(0x17f)](f[_0x3d67b8(0x159)],{'variant':_0x3d67b8(0x103),'onClick':()=>_0x523553[_0x3d67b8(0x10f)](),'children':_0x3d67b8(0xf0)})]});}function J(){const _0x5bbf1e=_0xa3ede;return l[_0x5bbf1e(0x17f)](l['Fragment'],{'children':_0x5bbf1e(0x186)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x29a78f,_0x2c1996,_0x5cb021,_0x482653)=>{const _0x3a15b6=_0xa3ede;for(var _0x282cd6=_0x482653>0x1?void 0x0:_0x482653?K(_0x2c1996,_0x5cb021):_0x2c1996,_0x115bb9=_0x29a78f[_0x3a15b6(0x18c)]-0x1,_0x3946e0;_0x115bb9>=0x0;_0x115bb9--)(_0x3946e0=_0x29a78f[_0x115bb9])&&(_0x282cd6=_0x3946e0(_0x282cd6)||_0x282cd6);return _0x282cd6;},L=(_0x2a4899,_0x15e169)=>(_0x2db560,_0x399b3c)=>_0x15e169(_0x2db560,_0x399b3c,_0x2a4899);function _0x409c(){const _0x5a9246=['random','replace','shouldShareOperation','137583vlHPKK','forEach','current','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','CollaborationEvent','useEffect','following','LiveShareStatus','parseProtocolChangeset','none','idSuffix','UniverInstanceType','LiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','mask','string','pipe','10311602DjXUaq','fill','jsx','LiveShareService','offline','override','_stopFollowing','data','UNIVER_UNKNOWN','You\x27are\x20offline.','_startLiveShareCoordinator','_status$','_status','LIVESHARE_OPERATION','reverse','length','complete','toStringTag','parse','params','LiveShareController','LIVESHARE_FETCH_OPERATIONS','presenter','BuiltInUIPart','_liveShareService','dispose$','_collabSessionService','_handleNewChangeSets','onStarting','_commandService','url(#$1','Injector','then','_beIdle','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','get','not-following','IDLE','set','PRESENTING','Subject','947oFQwfU','asObservable','_handleTerminate','startFollowing','univerjs-icon\x20univerjs-icon-','throttleTime','symbol','BehaviorSubject','Module','_uiPartsService','dispose','getTypeOfUnitDisposed$','InsertSheetMutation','idle','defIds','unitId','Fragment','44ZHGsDk','children','tryStartPresenting','registerDependencies','Dropdown','init','substring','event$','_stopPresenting','defineProperty','Stop\x20presenting','has','stringify','delete','_handleOperation','stopFollowing','xlink:href','send','13798616DlGxUu','getLiveShareCoordinator','evenodd','IConfigService','next','mutations','http://www.w3.org/2000/svg','_handleOffline','_configService','univer-size-4','SetWorksheetActiveOperation','default','button','You\x27re\x20presenting\x20the\x20document','_injector','55054725wxlibr','registerInitialStateReporter','Inject','div','_commandDisposable','connectInjector','_univerInstanceService','path','stopPresenting','_handleOnline','attrs','351966ARNtWE','useState','UNIVER_SHEET','Start\x20following','6906675pLCEqE','OFFLINE','requireSession','_startPresenting','IUniverInstanceService','type','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','toString','unsubscribe','status$','colorChannel1','_reporters','Stop\x20following','getConfig','text','createElement','includes','_collabSession','1em','_fetchOperations','sheet','FOLLOWING','LIVESHARE_TERMINATE','useRef','clsx','_init','values','RxDisposable','_config','getMemberID','jsxs','forwardRef','getStatus','disposeWithMe','toDisposable','getInitialStates','_mountLiveShare','DisposableCollection','registerSharedOperation','use','UNIVER_LIVE_SHARE_PLUGIN','Disposable','registerComponent','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','SetScrollOperation','0\x200\x2017\x2017','map','setConfig','CollaborationSessionService','onCommandExecuted','LIVESHARE_NEW_HOST','6RstCGn','790NuxsaJ','presenting','subscribe','IUIPartsService','touchDependencies','pluginName','_handleNewHost','_unitID','_sharedOperations','takeUntil','_startFollowing','You\x27re\x20not\x20following\x20the\x20presenter','Button','add','clear','DesktopLiveShareController','LIVESHARE_REQUEST_HOST','SessionStatus','displayName','Start','tag','NOT_FOLLOWING','_presenter','getUnitId','138RXaXQz','UniverLiveSharePlugin','_entities'];_0x409c=function(){return _0x5a9246;};return _0x409c();}exports[_0xa3ede(0x15c)]=class extends o[_0xa3ede(0x141)]{constructor(_0x47912b,_0x496117){const _0x260cc6=_0xa3ede;super(),this['_injector']=_0x47912b,this[_0x260cc6(0xde)]=_0x496117,this['_mountLiveShare']();}[_0xa3ede(0x13c)](){const _0x2d2947=_0xa3ede;this['disposeWithMe'](this[_0x2d2947(0xde)][_0x2d2947(0x142)](p[_0x2d2947(0x194)]['HEADER_MENU'],()=>p[_0x2d2947(0x10c)]($,this[_0x2d2947(0x106)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0xa3ede(0x109)](o[_0xa3ede(0x19c)])),L(0x1,p[_0xa3ede(0x150)])],exports[_0xa3ede(0x15c)]);const Q='live-share.config',w={};var X=Object[_0xa3ede(0x16f)],ee=(_0x48cf39,_0x341092,_0xb0fe9f,_0x5f5d18)=>{const _0x8f9f22=_0xa3ede;for(var _0xe39a18=_0x5f5d18>0x1?void 0x0:_0x5f5d18?X(_0x341092,_0xb0fe9f):_0x341092,_0x134da6=_0x48cf39[_0x8f9f22(0x18c)]-0x1,_0x302ca8;_0x134da6>=0x0;_0x134da6--)(_0x302ca8=_0x48cf39[_0x134da6])&&(_0xe39a18=_0x302ca8(_0xe39a18)||_0xe39a18);return _0xe39a18;},te=(_0x378a6e,_0xe6e1e5)=>(_0x53fadb,_0x7155f2)=>_0xe6e1e5(_0x53fadb,_0x7155f2,_0x378a6e);let m=class extends o['Disposable']{constructor(_0x5c0640){const _0x6b10f2=_0xa3ede;super(),this[_0x6b10f2(0x195)]=_0x5c0640,this['_init']();}[_0xa3ede(0x131)](){const _0x2da8c0=_0xa3ede;[D['SetZoomRatioOperation']['id'],D[_0x2da8c0(0x145)]['id'],C[_0x2da8c0(0x102)]['id']][_0x2da8c0(0x16c)](_0x4e4c4c=>{const _0x66c979=_0x2da8c0;this[_0x66c979(0x139)](this[_0x66c979(0x195)][_0x66c979(0x13e)](_0x4e4c4c));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0xa3ede(0xef)],se=Object[_0xa3ede(0x16f)],ne=(_0x4de822,_0x39a374,_0x15df34)=>_0x39a374 in _0x4de822?ie(_0x4de822,_0x39a374,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15df34}):_0x4de822[_0x39a374]=_0x15df34,re=(_0xf26cfd,_0x31b7b6,_0x4abfaf,_0x46882c)=>{for(var _0x3c85ff=_0x46882c>0x1?void 0x0:_0x46882c?se(_0x31b7b6,_0x4abfaf):_0x31b7b6,_0x2f339a=_0xf26cfd['length']-0x1,_0x8ba626;_0x2f339a>=0x0;_0x2f339a--)(_0x8ba626=_0xf26cfd[_0x2f339a])&&(_0x3c85ff=_0x8ba626(_0x3c85ff)||_0x3c85ff);return _0x3c85ff;},N=(_0x464d5f,_0x115aee)=>(_0x5de1f4,_0x274a32)=>_0x115aee(_0x5de1f4,_0x274a32,_0x464d5f),A=(_0x53c07b,_0x302a6d,_0x18fae7)=>ne(_0x53c07b,typeof _0x302a6d!=_0xa3ede(0x1ac)?_0x302a6d+'':_0x302a6d,_0x18fae7);const oe=_0xa3ede(0x140);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x4ed88c=w,_0x1d3eed,_0x52da9e){const _0x1ef716=_0xa3ede;super(),this[_0x1ef716(0x134)]=_0x4ed88c,this['_injector']=_0x1d3eed,this[_0x1ef716(0x100)]=_0x52da9e;const {..._0x1a4a1c}=o['merge']({},w,this[_0x1ef716(0x134)]);this[_0x1ef716(0x100)][_0x1ef716(0x148)](Q,_0x1a4a1c);}[_0xa3ede(0x199)](){const _0x2c5755=_0xa3ede;o[_0x2c5755(0xe9)](this[_0x2c5755(0x106)],o['mergeOverrideWithDependencies']([[E],[exports[_0x2c5755(0x191)]],[m],[exports[_0x2c5755(0x15c)]]],this[_0x2c5755(0x134)][_0x2c5755(0x182)])),o[_0x2c5755(0x151)](this[_0x2c5755(0x106)],[[m]]);}['onRendered'](){const _0x48bd63=_0xa3ede;o[_0x48bd63(0x151)](this['_injector'],[[exports[_0x48bd63(0x15c)]]]);}},A(exports[_0xa3ede(0x166)],_0xa3ede(0x11b),o[_0xa3ede(0x177)][_0xa3ede(0x185)]),A(exports[_0xa3ede(0x166)],_0xa3ede(0x152),oe),exports[_0xa3ede(0x166)]=re([o['DependentOn'](b[_0xa3ede(0x16e)]),N(0x1,o[_0xa3ede(0x109)](o[_0xa3ede(0x19c)])),N(0x2,o['IConfigService'])],exports[_0xa3ede(0x166)]),exports['LiveShare']=$,exports[_0xa3ede(0x180)]=E,exports[_0xa3ede(0x173)]=u;
|
|
1
|
+
'use strict';const _0x12eb30=_0x4fce;(function(_0x3043d5,_0x4e84a8){const _0x475298=_0x4fce,_0x105f25=_0x3043d5();while(!![]){try{const _0xc4d7ab=-parseInt(_0x475298(0x217))/0x1+parseInt(_0x475298(0x189))/0x2*(parseInt(_0x475298(0x197))/0x3)+-parseInt(_0x475298(0x1d7))/0x4*(parseInt(_0x475298(0x1d9))/0x5)+-parseInt(_0x475298(0x186))/0x6*(parseInt(_0x475298(0x1c5))/0x7)+parseInt(_0x475298(0x195))/0x8*(parseInt(_0x475298(0x1ae))/0x9)+parseInt(_0x475298(0x188))/0xa*(parseInt(_0x475298(0x221))/0xb)+-parseInt(_0x475298(0x1f9))/0xc*(parseInt(_0x475298(0x166))/0xd);if(_0xc4d7ab===_0x4e84a8)break;else _0x105f25['push'](_0x105f25['shift']());}catch(_0x3cd40f){_0x105f25['push'](_0x105f25['shift']());}}}(_0x1996,0x958b2));function _0x4fce(_0x54efbe,_0x5793c5){_0x54efbe=_0x54efbe-0x14f;const _0x199670=_0x1996();let _0x4fce4b=_0x199670[_0x54efbe];return _0x4fce4b;}var T=Object[_0x12eb30(0x1a8)],U=(_0x359897,_0x47715c,_0x7cc2ac)=>_0x47715c in _0x359897?T(_0x359897,_0x47715c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7cc2ac}):_0x359897[_0x47715c]=_0x7cc2ac,_=(_0x4355f3,_0x23d6e1,_0x2b429b)=>U(_0x4355f3,typeof _0x23d6e1!='symbol'?_0x23d6e1+'':_0x23d6e1,_0x2b429b);Object[_0x12eb30(0x1a8)](exports,Symbol[_0x12eb30(0x16d)],{'value':_0x12eb30(0x161)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x5950a1,..._0x1f1ace}){const _0x2589a9=_0x12eb30,{icon:_0x337d9a,id:_0x541aa0,className:_0x5ed5f0,extend:_0x2dc7de,..._0x2e257a}=_0x1f1ace,_0x128200=(_0x2589a9(0x1f1)+_0x541aa0+'\x20'+(_0x5ed5f0||''))[_0x2589a9(0x20c)](),_0x410202=v[_0x2589a9(0x216)]('_'+H());return j(_0x337d9a,''+_0x541aa0,{'defIds':_0x337d9a[_0x2589a9(0x219)],'idSuffix':_0x410202[_0x2589a9(0x1b1)]},{'ref':_0x5950a1,'className':_0x128200,..._0x2e257a},_0x2dc7de);}function j(_0x37c573,_0x46c605,_0x240396,_0x18b1c5,_0x32271b){const _0x31ecf8=_0x12eb30;return v['createElement'](_0x37c573[_0x31ecf8(0x1c3)],{'key':_0x46c605,...y(_0x37c573,_0x240396,_0x32271b),..._0x18b1c5},(F(_0x37c573,_0x240396)['children']||[])[_0x31ecf8(0x227)]((_0x40b665,_0x392e73)=>j(_0x40b665,_0x46c605+'-'+_0x37c573[_0x31ecf8(0x1c3)]+'-'+_0x392e73,_0x240396,void 0x0,_0x32271b)));}function y(_0x45ae33,_0x45a482,_0x50b371){const _0x1ad136=_0x12eb30,_0x56c8ca={..._0x45ae33[_0x1ad136(0x157)]};_0x50b371!=null&&_0x50b371[_0x1ad136(0x18f)]&&_0x56c8ca[_0x1ad136(0x1c8)]===_0x1ad136(0x18f)&&(_0x56c8ca[_0x1ad136(0x1c8)]=_0x50b371[_0x1ad136(0x18f)]),_0x45ae33[_0x1ad136(0x1c3)]===_0x1ad136(0x21e)&&_0x56c8ca['id']&&(_0x56c8ca['id']=_0x56c8ca['id']+_0x45a482[_0x1ad136(0x165)]),Object[_0x1ad136(0x1bf)](_0x56c8ca)[_0x1ad136(0x192)](([_0x338694,_0xe4e625])=>{const _0x49f1f1=_0x1ad136;_0x338694===_0x49f1f1(0x21e)&&typeof _0xe4e625==_0x49f1f1(0x16f)&&(_0x56c8ca[_0x338694]=_0xe4e625[_0x49f1f1(0x1b3)](/url\(#(.*)\)/,'url(#$1'+_0x45a482[_0x49f1f1(0x165)]+')'));});const {defIds:_0x2685f5}=_0x45a482;return!_0x2685f5||_0x2685f5[_0x1ad136(0x180)]===0x0||(_0x45ae33[_0x1ad136(0x1c3)]===_0x1ad136(0x178)&&_0x56c8ca[_0x1ad136(0x151)]&&(_0x56c8ca['xlink:href']=_0x56c8ca[_0x1ad136(0x151)]+_0x45a482['idSuffix']),Object[_0x1ad136(0x1bf)](_0x56c8ca)[_0x1ad136(0x192)](([_0x341b8f,_0xa6259a])=>{const _0xc8b99d=_0x1ad136;typeof _0xa6259a==_0xc8b99d(0x16f)&&(_0x56c8ca[_0x341b8f]=_0xa6259a[_0xc8b99d(0x1b3)](/url\(#(.*)\)/,_0xc8b99d(0x1d5)+_0x45a482[_0xc8b99d(0x165)]+')'));})),_0x56c8ca;}function F(_0x5effcf,_0x101ef4){const _0xfc87f6=_0x12eb30;var _0x59cc4f;const {defIds:_0x992e9a}=_0x101ef4;return!_0x992e9a||_0x992e9a[_0xfc87f6(0x180)]===0x0?_0x5effcf:_0x5effcf['tag']===_0xfc87f6(0x17f)&&((_0x59cc4f=_0x5effcf[_0xfc87f6(0x1d0)])!=null&&_0x59cc4f[_0xfc87f6(0x180)])?{..._0x5effcf,'children':_0x5effcf['children'][_0xfc87f6(0x227)](_0x330ba6=>typeof _0x330ba6[_0xfc87f6(0x157)]['id']==_0xfc87f6(0x16f)&&_0x992e9a&&_0x992e9a['includes'](_0x330ba6['attrs']['id'])?{..._0x330ba6,'attrs':{..._0x330ba6[_0xfc87f6(0x157)],'id':_0x330ba6[_0xfc87f6(0x157)]['id']+_0x101ef4['idSuffix']}}:_0x330ba6)}:_0x5effcf;}function H(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}x[_0x12eb30(0x19b)]=_0x12eb30(0x1e0);const V={'tag':_0x12eb30(0x1d4),'attrs':{'xmlns':_0x12eb30(0x21d),'fill':'none','viewBox':_0x12eb30(0x19f),'width':_0x12eb30(0x183),'height':_0x12eb30(0x183)},'children':[{'tag':_0x12eb30(0x18c),'attrs':{'fill':'currentColor','d':_0x12eb30(0x1da)}},{'tag':'path','attrs':{'fill':_0x12eb30(0x18e),'d':_0x12eb30(0x1e1),'fillRule':_0x12eb30(0x172),'clipRule':'evenodd'}}]},R=v[_0x12eb30(0x15f)](function(_0x556843,_0x5e78e3){const _0x41487f=_0x12eb30;return v[_0x41487f(0x1e3)](x,Object[_0x41487f(0x154)]({},_0x556843,{'id':'live-share-icon','ref':_0x5e78e3,'icon':V}));});function _0x1996(){const _0x14a342=['trim','NOT_FOLLOWING','values','LIVESHARE_NEW_HOST','IConfigService','SessionStatus','executeCommand','jsx','Stop\x20presenting','IUIPartsService','useRef','634633LmzsJp','asObservable','defIds','offline','sheet','LIVESHARE_TERMINATE','http://www.w3.org/2000/svg','mask','_status','following','11PBnheq','IDLE','LiveShareStatus','get','pipe','FOLLOWING','map','You\x27are\x20offline.','_collabSession','CollaborationEvent','_handleOffline','useState','complete','idle','xlink:href','Fragment','div','assign','Dropdown','registerDependencies','attrs','_uiPartsService','You\x27re\x20following\x20the\x20presenter','_stopFollowing','useDependency','clear','stringify','unitId','forwardRef','UniverInstanceType','Module','RxDisposable','not-following','getStatus','idSuffix','13hjdWUF','symbol','getLiveShareCoordinator','_injector','UniverCollaborationClientPlugin','from','getOwnPropertyDescriptor','toStringTag','Plugin','string','_stopPresenting','_beIdle','evenodd','event$','NEW_CHANGESETS','_handleNewChangeSets','_mountLiveShare','getLiveShareCoordinatorSync','use','_handleOperation','registerComponent','type','status$','ONLINE','Disposable','defs','length','_univerInstanceService','UNIVER_SHEET','1em','LiveShareController','includes','1445766uSOZLp','dispose$','12180850tWYsZJ','1918438pGIQDk','connectInjector','getCurrentTypeOfUnit$','path','takeUntil','currentColor','colorChannel1','merge','presenter','forEach','registerSharedOperation','_fetchOperations','40PacLGd','getValue','3bwscoC','DesktopLiveShareController','SetWorksheetActiveOperation','delete','displayName','pluginName','UniverLiveSharePlugin','_config','0\x200\x2017\x2017','_liveShareService','clsx','CommandType','getTypeOfUnitDisposed$','_startFollowing','text','disposeWithMe','parse','defineProperty','Stop\x20following','init','useObservable','UNIVER_UNKNOWN','IUniverInstanceService','1298601iDwEjT','memberID','_unitID','current','_entities','replace','LiveShareCoordinator','PRESENTING','LIVESHARE_OPERATION','find','stopPresenting','ICommandService','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','_sharedOperations','set','Button','entries','shouldShareOperation','add','unsubscribe','tag','HEADER_MENU','14kfNjqL','parseProtocolChangeset','reverse','fill','You\x27re\x20presenting\x20the\x20document','DisposableCollection','_reporters','Inject','univer-size-4','subscribe','Start\x20following','children','sessionStatus$','_handleTerminate','_startLiveShareCoordinator','svg','url(#$1','dispose','1501708rjehqF','DependentOn','5wtNFAC','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','end','_status$','OFFLINE','params','button','UniverIcon','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','CollaborationSessionService','createElement','mutations','then','_handleNewHost','_startPresenting','toDisposable','_configService','Injector','onCommandExecuted','startFollowing','LiveShare','univer-mb-3\x20univer-w-full\x20univer-text-sm','has','_collabSessionService','univerjs-icon\x20univerjs-icon-','data','useEffect','stopFollowing','_commandDisposable','next','LiveShareService','_handleOnline','9530844rlaWWA','tryStartPresenting','_init','BehaviorSubject','getMemberID','Subject','Start','_commandService','getInitialStates','send','override','UNIVER_LIVE_SHARE_PLUGIN','presenting','SAME_OPERATION_SHARE_INTERVAL','operations','mergeOverrideWithDependencies','getTypeOfUnitAdded$','_presenter','getUnitId'];_0x1996=function(){return _0x14a342;};return _0x1996();}R[_0x12eb30(0x19b)]='LiveShareIcon';class E extends o[_0x12eb30(0x17e)]{constructor(){const _0x5d0893=_0x12eb30;super(...arguments),_(this,_0x5d0893(0x1bc),new Set()),_(this,_0x5d0893(0x1cb),new Set());}[_0x12eb30(0x193)](_0x5808dd){const _0x3ee595=_0x12eb30;return this[_0x3ee595(0x1bc)][_0x3ee595(0x1c1)](_0x5808dd),o[_0x3ee595(0x1e8)](()=>this[_0x3ee595(0x1bc)]['delete'](_0x5808dd));}['registerInitialStateReporter'](_0x357f7e){const _0x3f0d81=_0x12eb30;return this[_0x3f0d81(0x1cb)][_0x3f0d81(0x1c1)](_0x357f7e),o[_0x3f0d81(0x1e8)](()=>this[_0x3f0d81(0x1cb)][_0x3f0d81(0x19a)](_0x357f7e));}[_0x12eb30(0x1c0)](_0xb044b9){const _0x56db1c=_0x12eb30;return this['_sharedOperations'][_0x56db1c(0x1ef)](_0xb044b9);}[_0x12eb30(0x201)](_0x16d40a){const _0x20c164=_0x12eb30;return Array[_0x20c164(0x16b)](this[_0x20c164(0x1cb)])[_0x20c164(0x227)](_0x5a47f8=>_0x5a47f8(_0x16d40a));}}var M=Object[_0x12eb30(0x16c)],P=(_0x57474c,_0xdce623,_0x8ac97c,_0x2bfda5)=>{const _0x24b218=_0x12eb30;for(var _0x5bc571=_0x2bfda5>0x1?void 0x0:_0x2bfda5?M(_0xdce623,_0x8ac97c):_0xdce623,_0x568d10=_0x57474c[_0x24b218(0x180)]-0x1,_0xfa0809;_0x568d10>=0x0;_0x568d10--)(_0xfa0809=_0x57474c[_0x568d10])&&(_0x5bc571=_0xfa0809(_0x5bc571)||_0x5bc571);return _0x5bc571;},S=(_0x283004,_0x5bfc61)=>(_0x33c07a,_0x9b5a45)=>_0x5bfc61(_0x33c07a,_0x9b5a45,_0x283004);exports[_0x12eb30(0x184)]=class extends o[_0x12eb30(0x162)]{constructor(_0x558a89,_0x53d526,_0x5e214f){const _0x6c448f=_0x12eb30;super(),_(this,_0x6c448f(0x1b2),new Map()),(this['_univerInstanceService']=_0x558a89,this[_0x6c448f(0x169)]=_0x53d526,this[_0x6c448f(0x1f0)]=_0x5e214f,this[_0x6c448f(0x1fb)]());}async['getLiveShareCoordinator'](_0x57b210){const _0x2a263d=_0x12eb30;return this[_0x2a263d(0x1b2)][_0x2a263d(0x1ef)](_0x57b210)||await this[_0x2a263d(0x1d3)](_0x57b210),this[_0x2a263d(0x1b2)][_0x2a263d(0x224)](_0x57b210);}[_0x12eb30(0x177)](_0x48d700){const _0x4e5281=_0x12eb30;var _0x231182;return(_0x231182=this[_0x4e5281(0x1b2)][_0x4e5281(0x224)](_0x48d700))!=null?_0x231182:null;}[_0x12eb30(0x1fb)](){const _0x73d78=_0x12eb30;this[_0x73d78(0x181)][_0x73d78(0x209)](o['UniverInstanceType'][_0x73d78(0x182)])['pipe'](I[_0x73d78(0x18d)](this[_0x73d78(0x187)]))['subscribe'](async _0x3154b2=>{const _0x344f54=_0x73d78,_0x40c8c3=_0x3154b2[_0x344f54(0x20b)]();this[_0x344f54(0x1b2)][_0x344f54(0x1ef)](_0x40c8c3)||this[_0x344f54(0x1d3)](_0x40c8c3);}),this['_univerInstanceService'][_0x73d78(0x1a3)](o[_0x73d78(0x160)][_0x73d78(0x182)])['pipe'](I[_0x73d78(0x18d)](this['dispose$']))[_0x73d78(0x1ce)](_0x5f0b84=>{const _0x49dff6=_0x73d78,_0x4c1f08=_0x5f0b84[_0x49dff6(0x20b)](),_0x31b2ef=this['_entities'][_0x49dff6(0x224)](_0x4c1f08);_0x31b2ef==null||_0x31b2ef[_0x49dff6(0x1d6)]();});}async[_0x12eb30(0x1d3)](_0x5406c5){const _0x37c71b=_0x12eb30,_0x49ce56=await this[_0x37c71b(0x1f0)]['requireSession'](_0x5406c5),_0x428868=this['_injector']['createInstance'](exports[_0x37c71b(0x1b4)],_0x5406c5,_0x49ce56);return _0x428868[_0x37c71b(0x1aa)](),this[_0x37c71b(0x1b2)][_0x37c71b(0x1bd)](_0x5406c5,_0x428868),_0x428868;}},exports[_0x12eb30(0x184)]=P([S(0x0,o[_0x12eb30(0x1ad)]),S(0x1,o[_0x12eb30(0x1cc)](o[_0x12eb30(0x1ea)])),S(0x2,o[_0x12eb30(0x1cc)](b[_0x12eb30(0x1e2)]))],exports[_0x12eb30(0x184)]);var u=(_0xdd59d0=>(_0xdd59d0[_0x12eb30(0x1dd)]=_0x12eb30(0x21a),_0xdd59d0[_0x12eb30(0x222)]=_0x12eb30(0x150),_0xdd59d0[_0x12eb30(0x226)]=_0x12eb30(0x220),_0xdd59d0[_0x12eb30(0x20d)]=_0x12eb30(0x163),_0xdd59d0[_0x12eb30(0x1b5)]=_0x12eb30(0x205),_0xdd59d0))(u||{});const k=_0x12eb30(0x206),q=0xc8;exports[_0x12eb30(0x1b4)]=class extends o[_0x12eb30(0x162)]{constructor(_0xa28917,_0x46e369,_0x251217,_0x464632,_0x337cb3){const _0x1c436b=_0x12eb30;super(),_(this,_0x1c436b(0x1dc),new O[(_0x1c436b(0x1fc))](_0x1c436b(0x150))),_(this,_0x1c436b(0x17c),this[_0x1c436b(0x1dc)][_0x1c436b(0x218)]()),_(this,_0x1c436b(0x1fb),!0x1),_(this,_0x1c436b(0x1f5),null),_(this,_0x1c436b(0x20a),null),(this[_0x1c436b(0x1b0)]=_0xa28917,this[_0x1c436b(0x229)]=_0x46e369,this[_0x1c436b(0x1e9)]=_0x251217,this[_0x1c436b(0x1a0)]=_0x464632,this['_commandService']=_0x337cb3);}get[_0x12eb30(0x21f)](){const _0x1b128d=_0x12eb30;return this[_0x1b128d(0x1dc)][_0x1b128d(0x196)]();}[_0x12eb30(0x1d6)](){const _0x2c0bd1=_0x12eb30;var _0x4b5ecc;(_0x4b5ecc=this[_0x2c0bd1(0x1f5)])==null||_0x4b5ecc[_0x2c0bd1(0x1d6)](),this[_0x2c0bd1(0x1dc)][_0x2c0bd1(0x1f6)](_0x2c0bd1(0x150)),this[_0x2c0bd1(0x1dc)][_0x2c0bd1(0x14f)]();}[_0x12eb30(0x164)](){const _0x29a1b0=_0x12eb30;return this[_0x29a1b0(0x21f)];}['init'](){const _0x22de9b=_0x12eb30;this['_init']||(this[_0x22de9b(0x1fb)]=!0x0,this[_0x22de9b(0x229)][_0x22de9b(0x1d1)][_0x22de9b(0x225)](I[_0x22de9b(0x18d)](this[_0x22de9b(0x187)]))[_0x22de9b(0x1ce)](_0x477a98=>{const _0x57a4d3=_0x22de9b;switch(_0x477a98){case b[_0x57a4d3(0x211)][_0x57a4d3(0x1dd)]:this[_0x57a4d3(0x22b)]();break;case b[_0x57a4d3(0x211)][_0x57a4d3(0x17d)]:this[_0x57a4d3(0x1f8)]();break;}}),this[_0x22de9b(0x229)][_0x22de9b(0x173)][_0x22de9b(0x225)](I[_0x22de9b(0x18d)](this[_0x22de9b(0x187)]))[_0x22de9b(0x1ce)](_0x1eaf99=>{const _0x1ee9c5=_0x22de9b,{eventID:_0x597bfe}=_0x1eaf99;switch(_0x597bfe){case d['CollaborationEvent'][_0x1ee9c5(0x20f)]:this['_handleNewHost'](_0x1eaf99);break;case d['CollaborationEvent'][_0x1ee9c5(0x1b6)]:this[_0x1ee9c5(0x179)](_0x1eaf99);break;case d[_0x1ee9c5(0x22a)][_0x1ee9c5(0x21c)]:this[_0x1ee9c5(0x1d2)]();break;case d[_0x1ee9c5(0x22a)][_0x1ee9c5(0x174)]:this[_0x1ee9c5(0x175)](_0x1eaf99);break;}}));}[_0x12eb30(0x1fa)](){const _0x3f4b34=_0x12eb30;this['_collabSession'][_0x3f4b34(0x202)]({'eventID':d[_0x3f4b34(0x22a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3f4b34(0x1b0)],'userID':this[_0x3f4b34(0x229)]['getMemberID']()}},this['_unitID']);}[_0x12eb30(0x1b8)](){const _0x5c6229=_0x12eb30;this[_0x5c6229(0x21f)]==='presenting'&&(this[_0x5c6229(0x1dc)][_0x5c6229(0x1f6)](_0x5c6229(0x150)),this[_0x5c6229(0x229)][_0x5c6229(0x202)]({'eventID':d['CollaborationEvent'][_0x5c6229(0x21c)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x12eb30(0x1ec)](){const _0x50152e=_0x12eb30;this[_0x50152e(0x21f)]===_0x50152e(0x163)&&(this['_status$'][_0x50152e(0x1f6)](_0x50152e(0x220)),this[_0x50152e(0x1a4)]());}[_0x12eb30(0x1f4)](){const _0x217aae=_0x12eb30;this[_0x217aae(0x21f)]==='following'&&this['_stopFollowing']();}[_0x12eb30(0x1e6)](_0x190fc2){const _0x4a0bb8=_0x12eb30,{presenter:_0x25af9f}=_0x190fc2['data'],_0x46bb26=this[_0x4a0bb8(0x229)]['getMemberID']();this['_presenter']=_0x25af9f,_0x25af9f===_0x46bb26?(this[_0x4a0bb8(0x15a)](),this[_0x4a0bb8(0x1e7)]()):this[_0x4a0bb8(0x21f)]!==_0x4a0bb8(0x163)&&(this[_0x4a0bb8(0x170)](),this[_0x4a0bb8(0x1a4)]());}[_0x12eb30(0x194)](){const _0x3947c6=_0x12eb30,_0xf72142={'eventID':d[_0x3947c6(0x22a)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3947c6(0x229)][_0x3947c6(0x202)](_0xf72142,this['_unitID']);}['_handleTerminate'](){const _0x2fc7d7=_0x12eb30;this[_0x2fc7d7(0x20a)]=null,this[_0x2fc7d7(0x21f)]!=='presenting'&&this['_beIdle']();}[_0x12eb30(0x175)](_0x389f1e){const _0x4e4a0d=_0x12eb30;if(this[_0x4e4a0d(0x21f)]===_0x4e4a0d(0x220)&&this['_presenter']===_0x389f1e[_0x4e4a0d(0x1f2)][_0x4e4a0d(0x1af)]){const _0x54d72c=d[_0x4e4a0d(0x1c6)](_0x389f1e[_0x4e4a0d(0x1f2)])[_0x4e4a0d(0x1e4)][_0x4e4a0d(0x1c7)]()[_0x4e4a0d(0x1b7)](_0x454292=>_0x454292['id']===C['InsertSheetMutation']['id']);if(_0x54d72c){const _0x38c0b2=_0x54d72c['params'][_0x4e4a0d(0x15e)],_0x49a178=_0x54d72c['params'][_0x4e4a0d(0x21b)]['id'];setTimeout(()=>{const _0x3336a1=_0x4e4a0d;this[_0x3336a1(0x200)]['executeCommand'](C[_0x3336a1(0x199)]['id'],{'unitId':_0x38c0b2,'subUnitId':_0x49a178},{'fromCollab':!0x0});});}}}[_0x12eb30(0x1e7)](){const _0x2ff694=_0x12eb30;this[_0x2ff694(0x1dc)]['next'](_0x2ff694(0x205));const _0xdfb1bd=new Map(),_0x244e87=this[_0x2ff694(0x1f5)]=new o[(_0x2ff694(0x1ca))]();_0x244e87[_0x2ff694(0x1c1)](o[_0x2ff694(0x1e8)](()=>{const _0x330518=_0x2ff694;_0xdfb1bd[_0x330518(0x192)](_0x1fa646=>_0x1fa646[_0x330518(0x14f)]()),_0xdfb1bd[_0x330518(0x15c)]();})),_0x244e87[_0x2ff694(0x1c1)](this[_0x2ff694(0x200)][_0x2ff694(0x1eb)](_0x38da42=>{const _0x3b34b8=_0x2ff694;var _0x47619b;if(_0x38da42[_0x3b34b8(0x17b)]!==o[_0x3b34b8(0x1a2)]['OPERATION']||!this[_0x3b34b8(0x1a0)]['shouldShareOperation'](_0x38da42['id']))return;const {id:_0x2832ea}=_0x38da42;let _0x422411;_0xdfb1bd[_0x3b34b8(0x1ef)](_0x2832ea)?_0x422411=_0xdfb1bd['get'](_0x2832ea):(_0x422411=new O[(_0x3b34b8(0x1fe))](),_0xdfb1bd[_0x3b34b8(0x1bd)](_0x2832ea,_0x422411),_0x422411[_0x3b34b8(0x225)](I['throttleTime']((_0x47619b=this[_0x3b34b8(0x1e9)]['getConfig'](k))!=null?_0x47619b:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4a9a91=>{const _0x1f4bb6=_0x3b34b8;this[_0x1f4bb6(0x229)][_0x1f4bb6(0x202)]({'eventID':d[_0x1f4bb6(0x22a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1f4bb6(0x1b0)],'operations':{[_0x4a9a91['id']]:{'id':_0x4a9a91['id'],'params':JSON[_0x1f4bb6(0x15d)](_0x4a9a91['params'])}}}},this[_0x1f4bb6(0x1b0)]);})),_0x422411[_0x3b34b8(0x1f6)](_0x38da42);})),this['_liveShareService'][_0x2ff694(0x201)](this[_0x2ff694(0x1b0)])[_0x2ff694(0x192)](_0x3ec9ea=>this[_0x2ff694(0x229)][_0x2ff694(0x202)]({'eventID':d[_0x2ff694(0x22a)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3ec9ea['id']]:{'id':_0x3ec9ea['id'],'params':JSON[_0x2ff694(0x15d)](_0x3ec9ea[_0x2ff694(0x1de)])}}}},this[_0x2ff694(0x1b0)]));}[_0x12eb30(0x170)](){const _0xbc60bc=_0x12eb30;var _0x13bcde;this[_0xbc60bc(0x1dc)][_0xbc60bc(0x1f6)](_0xbc60bc(0x150)),(_0x13bcde=this[_0xbc60bc(0x1f5)])==null||_0x13bcde[_0xbc60bc(0x1d6)](),this[_0xbc60bc(0x1f5)]=null;}[_0x12eb30(0x1a4)](){const _0x338f3e=_0x12eb30;var _0x3238ea;(_0x3238ea=this[_0x338f3e(0x1f5)])==null||_0x3238ea[_0x338f3e(0x1d6)](),this[_0x338f3e(0x1dc)][_0x338f3e(0x1f6)](_0x338f3e(0x220));}[_0x12eb30(0x171)](){const _0x2ceab1=_0x12eb30;var _0xd857b6;this[_0x2ceab1(0x1dc)][_0x2ceab1(0x1f6)](_0x2ceab1(0x150)),(_0xd857b6=this[_0x2ceab1(0x1f5)])==null||_0xd857b6[_0x2ceab1(0x1d6)](),this['_commandDisposable']=null;}[_0x12eb30(0x15a)](){const _0x59a1be=_0x12eb30;var _0x25a243;this[_0x59a1be(0x1dc)][_0x59a1be(0x1f6)](_0x59a1be(0x163)),(_0x25a243=this[_0x59a1be(0x1f5)])==null||_0x25a243[_0x59a1be(0x1d6)]();}[_0x12eb30(0x179)](_0x14f9e4){const _0x31af0f=_0x12eb30;if([_0x31af0f(0x205),_0x31af0f(0x163),_0x31af0f(0x21a)][_0x31af0f(0x185)](this[_0x31af0f(0x21f)])||!_0x14f9e4['data'][_0x31af0f(0x191)]||_0x14f9e4[_0x31af0f(0x1f2)][_0x31af0f(0x191)]===this[_0x31af0f(0x229)][_0x31af0f(0x1fd)]())return;this[_0x31af0f(0x21f)]===_0x31af0f(0x150)&&this[_0x31af0f(0x1a4)]();const _0x4f1b30=_0x14f9e4[_0x31af0f(0x1f2)][_0x31af0f(0x207)];Object[_0x31af0f(0x20e)](_0x4f1b30)[_0x31af0f(0x192)](_0x345702=>{const _0x5b5d5f=_0x31af0f;this[_0x5b5d5f(0x200)][_0x5b5d5f(0x212)](_0x345702['id'],_0x345702[_0x5b5d5f(0x1de)]?JSON[_0x5b5d5f(0x1a7)](_0x345702['params']):null,{'fromCollab':!0x0});});}[_0x12eb30(0x22b)](){const _0x223e69=_0x12eb30;var _0x39d284;this[_0x223e69(0x1dc)][_0x223e69(0x1f6)](_0x223e69(0x21a)),(_0x39d284=this[_0x223e69(0x1f5)])==null||_0x39d284[_0x223e69(0x1d6)]();}['_handleOnline'](){const _0xff95c6=_0x12eb30;this[_0xff95c6(0x1dc)][_0xff95c6(0x1f6)](_0xff95c6(0x150)),this[_0xff95c6(0x194)]();}},exports[_0x12eb30(0x1b4)]=P([S(0x2,o[_0x12eb30(0x210)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x12eb30(0x1b9)])],exports[_0x12eb30(0x1b4)]);function $(){const _0x2c5b6f=_0x12eb30,_0x34ebcd=p[_0x2c5b6f(0x15b)](exports['LiveShareController']),_0x45c484=p[_0x2c5b6f(0x15b)](o[_0x2c5b6f(0x1ad)]),_0x15dfb5=p[_0x2c5b6f(0x1ab)](()=>_0x45c484[_0x2c5b6f(0x18b)](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3d4309,_0x459bda]=v['useState'](null),[_0x495c7e,_0x133992]=v[_0x2c5b6f(0x22c)](u[_0x2c5b6f(0x222)]),_0x5a9370=v[_0x2c5b6f(0x216)](null);return v[_0x2c5b6f(0x1f3)](()=>(_0x15dfb5&&_0x34ebcd[_0x2c5b6f(0x168)](_0x15dfb5['getUnitId']())[_0x2c5b6f(0x1e5)](_0xbba9f3=>{const _0x3caa00=_0x2c5b6f;_0x459bda(_0xbba9f3),_0x5a9370['current']=_0xbba9f3[_0x3caa00(0x17c)][_0x3caa00(0x1ce)](_0x5162d8=>{_0x133992(_0x5162d8);});}),()=>{const _0x1d52ea=_0x2c5b6f;var _0x388b78;(_0x388b78=_0x5a9370[_0x1d52ea(0x1b1)])==null||_0x388b78[_0x1d52ea(0x1c2)](),_0x5a9370['current']=null;}),[_0x15dfb5,_0x34ebcd]),_0x3d4309?l[_0x2c5b6f(0x213)](f[_0x2c5b6f(0x155)],{'align':_0x2c5b6f(0x1db),'disabled':_0x495c7e===u['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x2c5b6f(0x213)](W,{'status':_0x495c7e,'coordinator':_0x3d4309}),'children':l[_0x2c5b6f(0x213)](_0x2c5b6f(0x1df),{'className':f[_0x2c5b6f(0x1a1)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x495c7e===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x495c7e!==u[_0x2c5b6f(0x1dd)]}),'type':_0x2c5b6f(0x1df),'children':l[_0x2c5b6f(0x213)](R,{'className':_0x2c5b6f(0x1cd)})})}):null;}function W(_0x2c0dc1){const _0x2b5c40=_0x12eb30,{status:_0x4231db,coordinator:_0x567cec}=_0x2c0dc1;switch(_0x4231db){case u['IDLE']:return l[_0x2b5c40(0x213)](G,{'coordinator':_0x567cec});case u[_0x2b5c40(0x226)]:return l[_0x2b5c40(0x213)](B,{'coordinator':_0x567cec});case u[_0x2b5c40(0x20d)]:return l['jsx'](Y,{'coordinator':_0x567cec});case u[_0x2b5c40(0x1dd)]:return l[_0x2b5c40(0x213)](J,{});case u[_0x2b5c40(0x1b5)]:return l['jsx'](Z,{'coordinator':_0x567cec});default:return null;}}function G(_0x3b8168){const _0x156908=_0x12eb30,{coordinator:_0x12b9cc}=_0x3b8168;return l[_0x156908(0x1ba)](l[_0x156908(0x152)],{'children':[l['jsx'](_0x156908(0x153),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x156908(0x213)](f['Button'],{'onClick':()=>_0x12b9cc[_0x156908(0x1fa)](),'children':_0x156908(0x1ff)})]});}function B(_0x5c9903){const _0x232dfb=_0x12eb30,{coordinator:_0x170c9b}=_0x5c9903;return l[_0x232dfb(0x1ba)](l[_0x232dfb(0x152)],{'children':[l['jsx'](_0x232dfb(0x153),{'className':_0x232dfb(0x1ee),'children':_0x232dfb(0x159)}),l[_0x232dfb(0x213)](f[_0x232dfb(0x1be)],{'onClick':()=>_0x170c9b[_0x232dfb(0x1f4)](),'children':_0x232dfb(0x1a9)})]});}function Y(_0x170734){const _0x33a6ad=_0x12eb30,{coordinator:_0x4fd23c}=_0x170734;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x33a6ad(0x153),{'className':_0x33a6ad(0x1ee),'children':_0x33a6ad(0x1bb)}),l['jsx'](f['Button'],{'variant':_0x33a6ad(0x1a5),'onClick':()=>_0x4fd23c[_0x33a6ad(0x1ec)](),'children':_0x33a6ad(0x1cf)})]});}function Z(_0xb0bf01){const _0x1965d3=_0x12eb30,{coordinator:_0x3f7d27}=_0xb0bf01;return l[_0x1965d3(0x1ba)](l[_0x1965d3(0x152)],{'children':[l[_0x1965d3(0x213)](_0x1965d3(0x153),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1965d3(0x1c9)}),l['jsx'](f[_0x1965d3(0x1be)],{'variant':'default','onClick':()=>_0x3f7d27[_0x1965d3(0x1b8)](),'children':_0x1965d3(0x214)})]});}function J(){const _0x2e2944=_0x12eb30;return l[_0x2e2944(0x213)](l[_0x2e2944(0x152)],{'children':_0x2e2944(0x228)});}var K=Object[_0x12eb30(0x16c)],z=(_0x5142ad,_0x34cba1,_0x302768,_0x41cdbe)=>{const _0x420aeb=_0x12eb30;for(var _0x1c953e=_0x41cdbe>0x1?void 0x0:_0x41cdbe?K(_0x34cba1,_0x302768):_0x34cba1,_0x17ed53=_0x5142ad[_0x420aeb(0x180)]-0x1,_0x2fad75;_0x17ed53>=0x0;_0x17ed53--)(_0x2fad75=_0x5142ad[_0x17ed53])&&(_0x1c953e=_0x2fad75(_0x1c953e)||_0x1c953e);return _0x1c953e;},L=(_0x6aa852,_0x4d329)=>(_0x388ba5,_0x2c38f6)=>_0x4d329(_0x388ba5,_0x2c38f6,_0x6aa852);exports[_0x12eb30(0x198)]=class extends o[_0x12eb30(0x17e)]{constructor(_0x14e8c5,_0x13c1d3){const _0x118ecb=_0x12eb30;super(),this[_0x118ecb(0x169)]=_0x14e8c5,this[_0x118ecb(0x158)]=_0x13c1d3,this[_0x118ecb(0x176)]();}['_mountLiveShare'](){const _0x26a448=_0x12eb30;this[_0x26a448(0x1a6)](this[_0x26a448(0x158)][_0x26a448(0x17a)](p['BuiltInUIPart'][_0x26a448(0x1c4)],()=>p[_0x26a448(0x18a)]($,this[_0x26a448(0x169)])));}},exports[_0x12eb30(0x198)]=z([L(0x0,o[_0x12eb30(0x1cc)](o[_0x12eb30(0x1ea)])),L(0x1,p[_0x12eb30(0x215)])],exports[_0x12eb30(0x198)]);const Q='live-share.config',w={};var X=Object[_0x12eb30(0x16c)],ee=(_0x3dca3c,_0x59b3a5,_0x5ec258,_0x1fc9e3)=>{for(var _0x1e0e6f=_0x1fc9e3>0x1?void 0x0:_0x1fc9e3?X(_0x59b3a5,_0x5ec258):_0x59b3a5,_0xac80fc=_0x3dca3c['length']-0x1,_0x2158bf;_0xac80fc>=0x0;_0xac80fc--)(_0x2158bf=_0x3dca3c[_0xac80fc])&&(_0x1e0e6f=_0x2158bf(_0x1e0e6f)||_0x1e0e6f);return _0x1e0e6f;},te=(_0x563c16,_0x133c83)=>(_0x46da51,_0x3d7ece)=>_0x133c83(_0x46da51,_0x3d7ece,_0x563c16);let m=class extends o[_0x12eb30(0x17e)]{constructor(_0x3ff7d2){const _0x58b840=_0x12eb30;super(),this[_0x58b840(0x1a0)]=_0x3ff7d2,this[_0x58b840(0x1fb)]();}[_0x12eb30(0x1fb)](){const _0x1f80d5=_0x12eb30;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x1f80d5(0x199)]['id']]['forEach'](_0x483487=>{const _0x4e7935=_0x1f80d5;this[_0x4e7935(0x1a6)](this['_liveShareService'][_0x4e7935(0x193)](_0x483487));});}};m=ee([te(0x0,o[_0x12eb30(0x1cc)](E))],m);var ie=Object[_0x12eb30(0x1a8)],se=Object[_0x12eb30(0x16c)],ne=(_0x2bc6b3,_0x439676,_0x5885b2)=>_0x439676 in _0x2bc6b3?ie(_0x2bc6b3,_0x439676,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5885b2}):_0x2bc6b3[_0x439676]=_0x5885b2,re=(_0x16d361,_0x3b871c,_0x5a56e0,_0x16b0eb)=>{for(var _0x390622=_0x16b0eb>0x1?void 0x0:_0x16b0eb?se(_0x3b871c,_0x5a56e0):_0x3b871c,_0x1405f5=_0x16d361['length']-0x1,_0x15794f;_0x1405f5>=0x0;_0x1405f5--)(_0x15794f=_0x16d361[_0x1405f5])&&(_0x390622=_0x15794f(_0x390622)||_0x390622);return _0x390622;},N=(_0x5cc922,_0x407e38)=>(_0x3685fd,_0x153741)=>_0x407e38(_0x3685fd,_0x153741,_0x5cc922),A=(_0x2574b3,_0x4db682,_0x576290)=>ne(_0x2574b3,typeof _0x4db682!=_0x12eb30(0x167)?_0x4db682+'':_0x4db682,_0x576290);const oe=_0x12eb30(0x204);exports[_0x12eb30(0x19d)]=class extends o[_0x12eb30(0x16e)]{constructor(_0x1ed5a9=w,_0x3e09c5,_0x5004b7){const _0x4809df=_0x12eb30;super(),this[_0x4809df(0x19e)]=_0x1ed5a9,this['_injector']=_0x3e09c5,this['_configService']=_0x5004b7;const {..._0x447816}=o[_0x4809df(0x190)]({},w,this[_0x4809df(0x19e)]);this['_configService']['setConfig'](Q,_0x447816);}['onStarting'](){const _0x75ef17=_0x12eb30;o[_0x75ef17(0x156)](this[_0x75ef17(0x169)],o[_0x75ef17(0x208)]([[E],[exports['LiveShareController']],[m],[exports['DesktopLiveShareController']]],this['_config'][_0x75ef17(0x203)])),o['touchDependencies'](this[_0x75ef17(0x169)],[[m]]);}['onRendered'](){const _0x12a3ac=_0x12eb30;o['touchDependencies'](this[_0x12a3ac(0x169)],[[exports[_0x12a3ac(0x198)]]]);}},A(exports[_0x12eb30(0x19d)],_0x12eb30(0x17b),o['UniverInstanceType'][_0x12eb30(0x1ac)]),A(exports[_0x12eb30(0x19d)],_0x12eb30(0x19c),oe),exports[_0x12eb30(0x19d)]=re([o[_0x12eb30(0x1d8)](b[_0x12eb30(0x16a)]),N(0x1,o[_0x12eb30(0x1cc)](o[_0x12eb30(0x1ea)])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x12eb30(0x1ed)]=$,exports[_0x12eb30(0x1f7)]=E,exports[_0x12eb30(0x223)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x444e(_0x5b00e4,_0x18af70){_0x5b00e4=_0x5b00e4-0x10d;const _0x38771f=_0x3877();let _0x444e21=_0x38771f[_0x5b00e4];return _0x444e21;}const _0x54c981=_0x444e;(function(_0xc59aa2,_0x39ffba){const _0x12ac38=_0x444e,_0x4eb295=_0xc59aa2();while(!![]){try{const _0x416e9a=-parseInt(_0x12ac38(0x11c))/0x1*(-parseInt(_0x12ac38(0x10f))/0x2)+parseInt(_0x12ac38(0x117))/0x3+-parseInt(_0x12ac38(0x123))/0x4*(-parseInt(_0x12ac38(0x116))/0x5)+-parseInt(_0x12ac38(0x11f))/0x6+parseInt(_0x12ac38(0x124))/0x7+-parseInt(_0x12ac38(0x128))/0x8+parseInt(_0x12ac38(0x118))/0x9*(-parseInt(_0x12ac38(0x11e))/0xa);if(_0x416e9a===_0x39ffba)break;else _0x4eb295['push'](_0x4eb295['shift']());}catch(_0x4e0303){_0x4eb295['push'](_0x4eb295['shift']());}}}(_0x3877,0x56e21));function _0x3877(){const _0x1b3c58=['_initialize','getLiveShareStatus','1212010hNFTqt','1303797LFTsoo','23445SGGvjk','symbol','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','1uekMXw','defineProperty','4790JoZRzM','533358KHFpVA','_injector','IDLE','getStatus','8IEaTEO','4153870pwfEVI','extend','stopFollowing','startPresenting','3821096xiQrBQ','get','LiveShareStatusEnum','getLiveShareCoordinatorSync','1314770jPHxmf','UNIVER_SHEET','getCurrentUnitOfType','getUnitId','No\x20active\x20workbook\x20found.'];_0x3877=function(){return _0x1b3c58;};return _0x3877();}var l=Object[_0x54c981(0x11d)],w=(_0x195cd0,_0x24ec47,_0x2b8886)=>_0x24ec47 in _0x195cd0?l(_0x195cd0,_0x24ec47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b8886}):_0x195cd0[_0x24ec47]=_0x2b8886,v=(_0x4c90aa,_0x316d83,_0x3b5ab5)=>w(_0x4c90aa,typeof _0x316d83!=_0x54c981(0x119)?_0x316d83+'':_0x316d83,_0x3b5ab5);import{LiveShareController as _0x46bc90,LiveShareStatus as _0x2c9730}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x309931,UniverInstanceType as _0x3d59ca}from'@univerjs/core';import{FUniver as _0x5bd508,FEnum as _0x4dc371}from'@univerjs/core/facade';class g extends _0x5bd508{constructor(){const _0x3118fe=_0x54c981;super(...arguments),v(this,_0x3118fe(0x11b));}[_0x54c981(0x114)](_0x260b8a){const _0x3528fa=_0x54c981;this[_0x3528fa(0x11b)]=_0x260b8a[_0x3528fa(0x129)](_0x46bc90);}[_0x54c981(0x115)](){const _0x5011c1=_0x54c981;var _0x226e95;const _0x2bb8df=this['_injector'][_0x5011c1(0x129)](_0x309931)['getCurrentUnitOfType'](_0x3d59ca['UNIVER_SHEET']);if(!_0x2bb8df)throw new Error('No\x20active\x20workbook\x20found.');const _0x8281dc=_0x2bb8df[_0x5011c1(0x112)](),_0x2d1544=this['_liveShareController'][_0x5011c1(0x10e)](_0x8281dc);return(_0x226e95=_0x2d1544==null?void 0x0:_0x2d1544[_0x5011c1(0x122)]())!=null?_0x226e95:_0x2c9730[_0x5011c1(0x121)];}['startFollowing'](){const _0xc89cbf=_0x54c981,_0x4a0e4f=this[_0xc89cbf(0x120)][_0xc89cbf(0x129)](_0x309931)[_0xc89cbf(0x111)](_0x3d59ca[_0xc89cbf(0x110)]);if(!_0x4a0e4f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4dc35d=_0x4a0e4f[_0xc89cbf(0x112)](),_0x6e6444=this[_0xc89cbf(0x11b)]['getLiveShareCoordinatorSync'](_0x4dc35d);if(!_0x6e6444)throw new Error(_0xc89cbf(0x11a));_0x6e6444['startFollowing']();}[_0x54c981(0x126)](){const _0x36fdcc=_0x54c981,_0xb8bd34=this[_0x36fdcc(0x120)][_0x36fdcc(0x129)](_0x309931)[_0x36fdcc(0x111)](_0x3d59ca[_0x36fdcc(0x110)]);if(!_0xb8bd34)throw new Error(_0x36fdcc(0x113));const _0x4843b4=_0xb8bd34[_0x36fdcc(0x112)](),_0x3425aa=this[_0x36fdcc(0x11b)]['getLiveShareCoordinatorSync'](_0x4843b4);if(!_0x3425aa)throw new Error(_0x36fdcc(0x11a));_0x3425aa['stopFollowing']();}[_0x54c981(0x127)](){const _0x28a4d3=_0x54c981,_0x2fd82d=this[_0x28a4d3(0x120)][_0x28a4d3(0x129)](_0x309931)[_0x28a4d3(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x2fd82d)throw new Error(_0x28a4d3(0x113));const _0x514bcb=_0x2fd82d[_0x28a4d3(0x112)](),_0x40a050=this['_liveShareController'][_0x28a4d3(0x10e)](_0x514bcb);if(!_0x40a050)throw new Error(_0x28a4d3(0x11a));_0x40a050['tryStartPresenting']();}['stopPresenting'](){const _0x2f236d=_0x54c981,_0x49557a=this[_0x2f236d(0x120)][_0x2f236d(0x129)](_0x309931)[_0x2f236d(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x49557a)throw new Error(_0x2f236d(0x113));const _0x307c58=_0x49557a['getUnitId'](),_0x1b93a2=this[_0x2f236d(0x11b)][_0x2f236d(0x10e)](_0x307c58);if(!_0x1b93a2)throw new Error(_0x2f236d(0x11a));_0x1b93a2['stopPresenting']();}}_0x5bd508[_0x54c981(0x125)](g);class f extends _0x4dc371{get[_0x54c981(0x10d)](){return _0x2c9730;}}_0x4dc371[_0x54c981(0x125)](f);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xeaafbf=_0xdc09;(function(_0x3c0e30,_0x38996b){const _0x4dd8d7=_0xdc09,_0x118b02=_0x3c0e30();while(!![]){try{const _0x1065c8=-parseInt(_0x4dd8d7(0x1c2))/0x1+-parseInt(_0x4dd8d7(0x1bd))/0x2+-parseInt(_0x4dd8d7(0x1bb))/0x3+-parseInt(_0x4dd8d7(0x193))/0x4+-parseInt(_0x4dd8d7(0x1a6))/0x5+parseInt(_0x4dd8d7(0x1da))/0x6*(-parseInt(_0x4dd8d7(0x1ef))/0x7)+parseInt(_0x4dd8d7(0x1c4))/0x8*(parseInt(_0x4dd8d7(0x1b8))/0x9);if(_0x1065c8===_0x38996b)break;else _0x118b02['push'](_0x118b02['shift']());}catch(_0xfd1525){_0x118b02['push'](_0x118b02['shift']());}}}(_0x8dab,0x873c4));var J=Object[_0xeaafbf(0x17b)],K=(_0xb0d402,_0x2be509,_0x26d1d6)=>_0x2be509 in _0xb0d402?J(_0xb0d402,_0x2be509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d1d6}):_0xb0d402[_0x2be509]=_0x26d1d6,u=(_0x34ebdc,_0x23eff7,_0x11f60a)=>K(_0x34ebdc,typeof _0x23eff7!=_0xeaafbf(0x180)?_0x23eff7+'':_0x23eff7,_0x11f60a);import{Disposable as _0x469b92,toDisposable as _0x1332f1,Inject as _0x3ffeae,Injector as _0x3e453a,RxDisposable as _0x53e8b0,UniverInstanceType as _0x59dbcd,DisposableCollection as _0x5d9210,CommandType as _0xef2d8d,IUniverInstanceService as _0xe4bcbd,IConfigService as _0x4c72af,ICommandService as _0x465a1b,DependentOn as _0x168090,Plugin as _0x5b0277,merge as _0x3e2e87,registerDependencies as _0x5b8f83,mergeOverrideWithDependencies as _0xed68fc,touchDependencies as _0x98ac8}from'@univerjs/core';import{useDependency as _0x5ec2d9,useObservable as _0x19a9c6,BuiltInUIPart as _0x4f4074,connectInjector as _0x445f22,IUIPartsService as _0x59077d}from'@univerjs/ui';import{jsx as _0x115494,jsxs as _0xe77572,Fragment as _0x8cbe17}from'react/jsx-runtime';import{Dropdown as _0x4dbc1e,clsx as _0x5af8db,Button as _0x39e985}from'@univerjs/design';import{useRef as _0x54096f,createElement as _0x14f037,forwardRef as _0x35b873,useState as _0x2b6511,useEffect as _0x51812f}from'react';import{CollaborationEvent as _0x262122,parseProtocolChangeset as _0x4ddb9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x20d5f8,SessionStatus as _0x5d00b9,UniverCollaborationClientPlugin as _0x2f3e48}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x541fcc,SetWorksheetActiveOperation as _0x23cd6c}from'@univerjs/sheets';import{BehaviorSubject as _0xe1c438,Subject as _0x444884}from'rxjs';import{takeUntil as _0x5b42f5,throttleTime as _0x475c1c}from'rxjs/operators';import{SetZoomRatioOperation as _0x19b70e,SetScrollOperation as _0x49dea0}from'@univerjs/sheets-ui';function k({ref:_0xbb029c,..._0x4f0b59}){const _0x13959b=_0xeaafbf,{icon:_0x492154,id:_0x58f041,className:_0x4663e8,extend:_0x568981,..._0x2e4434}=_0x4f0b59,_0x36dc72=('univerjs-icon\x20univerjs-icon-'+_0x58f041+'\x20'+(_0x4663e8||''))['trim'](),_0xb7e30c=_0x54096f('_'+Oe());return G(_0x492154,''+_0x58f041,{'defIds':_0x492154[_0x13959b(0x1dc)],'idSuffix':_0xb7e30c[_0x13959b(0x1aa)]},{'ref':_0xbb029c,'className':_0x36dc72,..._0x2e4434},_0x568981);}function _0xdc09(_0x2f06b1,_0x2018aa){_0x2f06b1=_0x2f06b1-0x14c;const _0x8dab6e=_0x8dab();let _0xdc0948=_0x8dab6e[_0x2f06b1];return _0xdc0948;}function G(_0x4aa988,_0x200841,_0x965d06,_0x352386,_0x4ba864){const _0x101f96=_0xeaafbf;return _0x14f037(_0x4aa988['tag'],{'key':_0x200841,...be(_0x4aa988,_0x965d06,_0x4ba864),..._0x352386},(Ee(_0x4aa988,_0x965d06)[_0x101f96(0x1a1)]||[])[_0x101f96(0x194)]((_0xed229f,_0x372dc8)=>G(_0xed229f,_0x200841+'-'+_0x4aa988[_0x101f96(0x185)]+'-'+_0x372dc8,_0x965d06,void 0x0,_0x4ba864)));}function be(_0x260322,_0x193244,_0x1241b9){const _0x453856=_0xeaafbf,_0x1916a5={..._0x260322['attrs']};_0x1241b9!=null&&_0x1241b9[_0x453856(0x150)]&&_0x1916a5[_0x453856(0x198)]===_0x453856(0x150)&&(_0x1916a5[_0x453856(0x198)]=_0x1241b9[_0x453856(0x150)]),_0x260322['tag']===_0x453856(0x170)&&_0x1916a5['id']&&(_0x1916a5['id']=_0x1916a5['id']+_0x193244['idSuffix']),Object['entries'](_0x1916a5)[_0x453856(0x19b)](([_0x21237a,_0x2b6fb7])=>{const _0x28e993=_0x453856;_0x21237a===_0x28e993(0x170)&&typeof _0x2b6fb7==_0x28e993(0x1ae)&&(_0x1916a5[_0x21237a]=_0x2b6fb7[_0x28e993(0x173)](/url\(#(.*)\)/,'url(#$1'+_0x193244['idSuffix']+')'));});const {defIds:_0x2de0f6}=_0x193244;return!_0x2de0f6||_0x2de0f6[_0x453856(0x1eb)]===0x0||(_0x260322[_0x453856(0x185)]===_0x453856(0x16b)&&_0x1916a5['xlink:href']&&(_0x1916a5[_0x453856(0x1ba)]=_0x1916a5[_0x453856(0x1ba)]+_0x193244[_0x453856(0x181)]),Object[_0x453856(0x161)](_0x1916a5)['forEach'](([_0x381f4b,_0x4053b4])=>{const _0x28fae8=_0x453856;typeof _0x4053b4==_0x28fae8(0x1ae)&&(_0x1916a5[_0x381f4b]=_0x4053b4[_0x28fae8(0x173)](/url\(#(.*)\)/,_0x28fae8(0x165)+_0x193244[_0x28fae8(0x181)]+')'));})),_0x1916a5;}function Ee(_0x29154a,_0x42a8e8){const _0x41952d=_0xeaafbf;var _0x22b5e6;const {defIds:_0x18175e}=_0x42a8e8;return!_0x18175e||_0x18175e['length']===0x0?_0x29154a:_0x29154a['tag']==='defs'&&((_0x22b5e6=_0x29154a[_0x41952d(0x1a1)])!=null&&_0x22b5e6[_0x41952d(0x1eb)])?{..._0x29154a,'children':_0x29154a[_0x41952d(0x1a1)][_0x41952d(0x194)](_0x5ecaa4=>typeof _0x5ecaa4[_0x41952d(0x1f6)]['id']=='string'&&_0x18175e&&_0x18175e[_0x41952d(0x156)](_0x5ecaa4[_0x41952d(0x1f6)]['id'])?{..._0x5ecaa4,'attrs':{..._0x5ecaa4['attrs'],'id':_0x5ecaa4[_0x41952d(0x1f6)]['id']+_0x42a8e8[_0x41952d(0x181)]}}:_0x5ecaa4)}:_0x29154a;}function Oe(){const _0x429dad=_0xeaafbf;return Math[_0x429dad(0x154)]()['toString'](0x24)['substring'](0x2,0x8);}k['displayName']=_0xeaafbf(0x1b0);const we={'tag':_0xeaafbf(0x1d7),'attrs':{'xmlns':_0xeaafbf(0x1b4),'fill':_0xeaafbf(0x1ca),'viewBox':_0xeaafbf(0x1e8),'width':'1em','height':_0xeaafbf(0x1c5)},'children':[{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':'currentColor','d':_0xeaafbf(0x1b9)}},{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':_0xeaafbf(0x18e),'d':_0xeaafbf(0x199),'fillRule':_0xeaafbf(0x1ec),'clipRule':_0xeaafbf(0x1ec)}}]},W=_0x35b873(function(_0x2586dc,_0x410ffd){const _0x34b4cb=_0xeaafbf;return _0x14f037(k,Object['assign']({},_0x2586dc,{'id':_0x34b4cb(0x151),'ref':_0x410ffd,'icon':we}));});W[_0xeaafbf(0x1c3)]=_0xeaafbf(0x17e);class L extends _0x469b92{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xeaafbf(0x1b3)](_0x3458e5){const _0x47b0b9=_0xeaafbf;return this[_0x47b0b9(0x1cd)][_0x47b0b9(0x19f)](_0x3458e5),_0x1332f1(()=>this[_0x47b0b9(0x1cd)]['delete'](_0x3458e5));}[_0xeaafbf(0x1a9)](_0x5352e4){const _0x83f52b=_0xeaafbf;return this[_0x83f52b(0x1e3)][_0x83f52b(0x19f)](_0x5352e4),_0x1332f1(()=>this[_0x83f52b(0x1e3)][_0x83f52b(0x1b6)](_0x5352e4));}[_0xeaafbf(0x155)](_0x4217a3){const _0x49c1ce=_0xeaafbf;return this[_0x49c1ce(0x1cd)]['has'](_0x4217a3);}[_0xeaafbf(0x17a)](_0x458ab1){const _0x1eefcb=_0xeaafbf;return Array[_0x1eefcb(0x174)](this['_reporters'])[_0x1eefcb(0x194)](_0x494c12=>_0x494c12(_0x458ab1));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0xeac1a2,_0x550436,_0x5bf40,_0x928e9b)=>{const _0x3898e2=_0xeaafbf;for(var _0x336691=_0x928e9b>0x1?void 0x0:_0x928e9b?Ne(_0x550436,_0x5bf40):_0x550436,_0xf083b7=_0xeac1a2[_0x3898e2(0x1eb)]-0x1,_0x27c0d7;_0xf083b7>=0x0;_0xf083b7--)(_0x27c0d7=_0xeac1a2[_0xf083b7])&&(_0x336691=_0x27c0d7(_0x336691)||_0x336691);return _0x336691;},_=(_0x2f0c3c,_0x240e29)=>(_0x548fd3,_0x1cb362)=>_0x240e29(_0x548fd3,_0x1cb362,_0x2f0c3c);let S=class extends _0x53e8b0{constructor(_0x177280,_0x178e3a,_0x4786a1){const _0x193f23=_0xeaafbf;super(),u(this,_0x193f23(0x1d3),new Map()),(this['_univerInstanceService']=_0x177280,this[_0x193f23(0x187)]=_0x178e3a,this[_0x193f23(0x1a4)]=_0x4786a1,this['_init']());}async[_0xeaafbf(0x16e)](_0x1ee66d){const _0x3e853a=_0xeaafbf;return this['_entities']['has'](_0x1ee66d)||await this[_0x3e853a(0x1de)](_0x1ee66d),this['_entities'][_0x3e853a(0x175)](_0x1ee66d);}['getLiveShareCoordinatorSync'](_0x2eaf9e){const _0x2a439b=_0xeaafbf;var _0x566f31;return(_0x566f31=this[_0x2a439b(0x1d3)]['get'](_0x2eaf9e))!=null?_0x566f31:null;}[_0xeaafbf(0x195)](){const _0x138478=_0xeaafbf;this[_0x138478(0x191)]['getTypeOfUnitAdded$'](_0x59dbcd['UNIVER_SHEET'])[_0x138478(0x1e2)](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](async _0x4e3e4a=>{const _0x1c95df=_0x138478,_0x35a83f=_0x4e3e4a['getUnitId']();this[_0x1c95df(0x1d3)]['has'](_0x35a83f)||this['_startLiveShareCoordinator'](_0x35a83f);}),this['_univerInstanceService'][_0x138478(0x14d)](_0x59dbcd[_0x138478(0x1c9)])['pipe'](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](_0x34b40d=>{const _0x387cdc=_0x138478,_0x2c7b46=_0x34b40d[_0x387cdc(0x1e7)](),_0x187c8c=this[_0x387cdc(0x1d3)]['get'](_0x2c7b46);_0x187c8c==null||_0x187c8c[_0x387cdc(0x1ab)]();});}async[_0xeaafbf(0x1de)](_0x2fd9b0){const _0x105aa4=_0xeaafbf,_0x5ea380=await this[_0x105aa4(0x1a4)][_0x105aa4(0x1e6)](_0x2fd9b0),_0x5c0e61=this['_injector'][_0x105aa4(0x19a)](N,_0x2fd9b0,_0x5ea380);return _0x5c0e61[_0x105aa4(0x1f2)](),this['_entities'][_0x105aa4(0x168)](_0x2fd9b0,_0x5c0e61),_0x5c0e61;}};S=Y([_(0x0,_0xe4bcbd),_(0x1,_0x3ffeae(_0x3e453a)),_(0x2,_0x3ffeae(_0x20d5f8))],S);var c=(_0x1b0196=>(_0x1b0196['OFFLINE']=_0xeaafbf(0x1b1),_0x1b0196[_0xeaafbf(0x1ea)]='idle',_0x1b0196[_0xeaafbf(0x1a7)]=_0xeaafbf(0x14f),_0x1b0196[_0xeaafbf(0x18c)]=_0xeaafbf(0x1c1),_0x1b0196[_0xeaafbf(0x1ac)]=_0xeaafbf(0x1e0),_0x1b0196))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x53e8b0{constructor(_0x3402d4,_0x10c663,_0x35e49b,_0x4cee76,_0x2ba87e){const _0x2d9361=_0xeaafbf;super(),u(this,_0x2d9361(0x1e4),new _0xe1c438('idle')),u(this,_0x2d9361(0x164),this['_status$'][_0x2d9361(0x190)]()),u(this,_0x2d9361(0x195),!0x1),u(this,_0x2d9361(0x1c7),null),u(this,_0x2d9361(0x179),null),(this['_unitID']=_0x3402d4,this['_collabSession']=_0x10c663,this['_configService']=_0x35e49b,this[_0x2d9361(0x1af)]=_0x4cee76,this[_0x2d9361(0x157)]=_0x2ba87e);}get[_0xeaafbf(0x186)](){const _0xd7cc41=_0xeaafbf;return this[_0xd7cc41(0x1e4)][_0xd7cc41(0x177)]();}[_0xeaafbf(0x1ab)](){const _0x34dd90=_0xeaafbf;var _0x37718f;(_0x37718f=this[_0x34dd90(0x1c7)])==null||_0x37718f['dispose'](),this[_0x34dd90(0x1e4)][_0x34dd90(0x16c)](_0x34dd90(0x1b5)),this['_status$']['complete']();}[_0xeaafbf(0x1a0)](){return this['_status'];}[_0xeaafbf(0x1f2)](){const _0x2fe4c5=_0xeaafbf;this['_init']||(this[_0x2fe4c5(0x195)]=!0x0,this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x1b2)]['pipe'](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))['subscribe'](_0x1f2199=>{const _0x47b8dd=_0x2fe4c5;switch(_0x1f2199){case _0x5d00b9[_0x47b8dd(0x1d8)]:this[_0x47b8dd(0x15a)]();break;case _0x5d00b9['ONLINE']:this['_handleOnline']();break;}}),this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x158)][_0x2fe4c5(0x1e2)](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))[_0x2fe4c5(0x1a2)](_0xb5e492=>{const _0x3ee01f=_0x2fe4c5,{eventID:_0x3962c5}=_0xb5e492;switch(_0x3962c5){case _0x262122[_0x3ee01f(0x1bc)]:this[_0x3ee01f(0x183)](_0xb5e492);break;case _0x262122['LIVESHARE_OPERATION']:this[_0x3ee01f(0x160)](_0xb5e492);break;case _0x262122[_0x3ee01f(0x1be)]:this[_0x3ee01f(0x1d5)]();break;case _0x262122[_0x3ee01f(0x169)]:this[_0x3ee01f(0x17d)](_0xb5e492);break;}}));}[_0xeaafbf(0x152)](){const _0x37ce68=_0xeaafbf;this[_0x37ce68(0x1d9)]['send']({'eventID':_0x262122[_0x37ce68(0x159)],'data':{'unitID':this[_0x37ce68(0x1f4)],'userID':this[_0x37ce68(0x1d9)][_0x37ce68(0x1d1)]()}},this[_0x37ce68(0x1f4)]);}[_0xeaafbf(0x1ce)](){const _0x119916=_0xeaafbf;this['_status']===_0x119916(0x1e0)&&(this['_status$'][_0x119916(0x16c)](_0x119916(0x1b5)),this[_0x119916(0x1d9)]['send']({'eventID':_0x262122[_0x119916(0x1be)],'data':{'unitID':this['_unitID']}},this[_0x119916(0x1f4)]));}['startFollowing'](){const _0x390d27=_0xeaafbf;this[_0x390d27(0x186)]===_0x390d27(0x1c1)&&(this[_0x390d27(0x1e4)][_0x390d27(0x16c)](_0x390d27(0x14f)),this['_startFollowing']());}[_0xeaafbf(0x178)](){const _0x5e21b5=_0xeaafbf;this['_status']===_0x5e21b5(0x14f)&&this[_0x5e21b5(0x1a3)]();}[_0xeaafbf(0x183)](_0x241bf0){const _0xb5da06=_0xeaafbf,{presenter:_0x1b5428}=_0x241bf0[_0xb5da06(0x19e)],_0x1b4d9d=this[_0xb5da06(0x1d9)][_0xb5da06(0x1d1)]();this[_0xb5da06(0x179)]=_0x1b5428,_0x1b5428===_0x1b4d9d?(this[_0xb5da06(0x1a3)](),this[_0xb5da06(0x16f)]()):this[_0xb5da06(0x186)]!=='not-following'&&(this['_stopPresenting'](),this[_0xb5da06(0x1c0)]());}[_0xeaafbf(0x176)](){const _0x5d7f54=_0xeaafbf,_0x39fe61={'eventID':_0x262122['LIVESHARE_FETCH_OPERATIONS']};this[_0x5d7f54(0x1d9)][_0x5d7f54(0x1a8)](_0x39fe61,this['_unitID']);}[_0xeaafbf(0x1d5)](){const _0x37124c=_0xeaafbf;this[_0x37124c(0x179)]=null,this[_0x37124c(0x186)]!=='presenting'&&this[_0x37124c(0x1f0)]();}[_0xeaafbf(0x17d)](_0x25ae0f){const _0x1665f8=_0xeaafbf;if(this['_status']===_0x1665f8(0x14f)&&this[_0x1665f8(0x179)]===_0x25ae0f['data']['memberID']){const _0x57189f=_0x4ddb9c(_0x25ae0f['data'])['mutations']['reverse']()[_0x1665f8(0x18b)](_0x59434=>_0x59434['id']===_0x541fcc['id']);if(_0x57189f){const _0x31bf58=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x19c)],_0x371dbd=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x1d2)]['id'];setTimeout(()=>{const _0x3ca709=_0x1665f8;this[_0x3ca709(0x157)]['executeCommand'](_0x23cd6c['id'],{'unitId':_0x31bf58,'subUnitId':_0x371dbd},{'fromCollab':!0x0});});}}}[_0xeaafbf(0x16f)](){const _0x2f3047=_0xeaafbf;this['_status$'][_0x2f3047(0x16c)]('presenting');const _0xe52312=new Map(),_0x57b066=this['_commandDisposable']=new _0x5d9210();_0x57b066[_0x2f3047(0x19f)](_0x1332f1(()=>{const _0x55701d=_0x2f3047;_0xe52312['forEach'](_0x4cad1d=>_0x4cad1d[_0x55701d(0x1b7)]()),_0xe52312[_0x55701d(0x14e)]();})),_0x57b066['add'](this['_commandService']['onCommandExecuted'](_0x1db345=>{const _0x448ce9=_0x2f3047;var _0x515726;if(_0x1db345[_0x448ce9(0x1df)]!==_0xef2d8d['OPERATION']||!this[_0x448ce9(0x1af)][_0x448ce9(0x155)](_0x1db345['id']))return;const {id:_0x3788fb}=_0x1db345;let _0x40e6d9;_0xe52312[_0x448ce9(0x184)](_0x3788fb)?_0x40e6d9=_0xe52312[_0x448ce9(0x175)](_0x3788fb):(_0x40e6d9=new _0x444884(),_0xe52312[_0x448ce9(0x168)](_0x3788fb,_0x40e6d9),_0x40e6d9[_0x448ce9(0x1e2)](_0x475c1c((_0x515726=this[_0x448ce9(0x1c8)][_0x448ce9(0x1a5)](Ce))!=null?_0x515726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x448ce9(0x1a2)](_0x12703d=>{const _0x160c8c=_0x448ce9;this['_collabSession'][_0x160c8c(0x1a8)]({'eventID':_0x262122[_0x160c8c(0x18d)],'data':{'unitID':this[_0x160c8c(0x1f4)],'operations':{[_0x12703d['id']]:{'id':_0x12703d['id'],'params':JSON[_0x160c8c(0x162)](_0x12703d[_0x160c8c(0x17f)])}}}},this[_0x160c8c(0x1f4)]);})),_0x40e6d9['next'](_0x1db345);})),this[_0x2f3047(0x1af)][_0x2f3047(0x17a)](this[_0x2f3047(0x1f4)])[_0x2f3047(0x19b)](_0x59d3d3=>this['_collabSession'][_0x2f3047(0x1a8)]({'eventID':_0x262122[_0x2f3047(0x18d)],'data':{'unitID':this[_0x2f3047(0x1f4)],'operations':{[_0x59d3d3['id']]:{'id':_0x59d3d3['id'],'params':JSON['stringify'](_0x59d3d3[_0x2f3047(0x17f)])}}}},this[_0x2f3047(0x1f4)]));}[_0xeaafbf(0x1f5)](){const _0x5ce73b=_0xeaafbf;var _0x1b4eb0;this[_0x5ce73b(0x1e4)][_0x5ce73b(0x16c)](_0x5ce73b(0x1b5)),(_0x1b4eb0=this[_0x5ce73b(0x1c7)])==null||_0x1b4eb0[_0x5ce73b(0x1ab)](),this['_commandDisposable']=null;}[_0xeaafbf(0x1c0)](){const _0x5bdf5a=_0xeaafbf;var _0x52daa3;(_0x52daa3=this[_0x5bdf5a(0x1c7)])==null||_0x52daa3[_0x5bdf5a(0x1ab)](),this[_0x5bdf5a(0x1e4)][_0x5bdf5a(0x16c)]('following');}['_beIdle'](){const _0xfb8a17=_0xeaafbf;var _0x24eedc;this['_status$'][_0xfb8a17(0x16c)](_0xfb8a17(0x1b5)),(_0x24eedc=this[_0xfb8a17(0x1c7)])==null||_0x24eedc[_0xfb8a17(0x1ab)](),this[_0xfb8a17(0x1c7)]=null;}['_stopFollowing'](){const _0x9cf165=_0xeaafbf;var _0x1c2615;this[_0x9cf165(0x1e4)]['next']('not-following'),(_0x1c2615=this[_0x9cf165(0x1c7)])==null||_0x1c2615[_0x9cf165(0x1ab)]();}['_handleOperation'](_0x56bd0b){const _0x5f1201=_0xeaafbf;if(['presenting','not-following',_0x5f1201(0x1b1)][_0x5f1201(0x156)](this[_0x5f1201(0x186)])||!_0x56bd0b['data']['presenter']||_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x15f)]===this[_0x5f1201(0x1d9)]['getMemberID']())return;this['_status']===_0x5f1201(0x1b5)&&this['_startFollowing']();const _0x185482=_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x1d0)];Object[_0x5f1201(0x197)](_0x185482)[_0x5f1201(0x19b)](_0x2176bf=>{const _0x3a16ab=_0x5f1201;this[_0x3a16ab(0x157)][_0x3a16ab(0x1cb)](_0x2176bf['id'],_0x2176bf[_0x3a16ab(0x17f)]?JSON['parse'](_0x2176bf[_0x3a16ab(0x17f)]):null,{'fromCollab':!0x0});});}[_0xeaafbf(0x15a)](){const _0x41b0cf=_0xeaafbf;var _0x4655eb;this[_0x41b0cf(0x1e4)][_0x41b0cf(0x16c)](_0x41b0cf(0x1b1)),(_0x4655eb=this[_0x41b0cf(0x1c7)])==null||_0x4655eb[_0x41b0cf(0x1ab)]();}[_0xeaafbf(0x163)](){const _0x54e03c=_0xeaafbf;this[_0x54e03c(0x1e4)][_0x54e03c(0x16c)]('idle'),this['_fetchOperations']();}};N=Y([_(0x2,_0x4c72af),_(0x3,_0x3ffeae(L)),_(0x4,_0x465a1b)],N);function Le(){const _0x3e3a6b=_0xeaafbf,_0x2fe6ce=_0x5ec2d9(S),_0x14569b=_0x5ec2d9(_0xe4bcbd),_0x4ed2cf=_0x19a9c6(()=>_0x14569b[_0x3e3a6b(0x188)](_0x59dbcd['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x433c77,_0x146c40]=_0x2b6511(null),[_0x218c0a,_0x4c7962]=_0x2b6511(c[_0x3e3a6b(0x1ea)]),_0x16c7cb=_0x54096f(null);return _0x51812f(()=>(_0x4ed2cf&&_0x2fe6ce['getLiveShareCoordinator'](_0x4ed2cf[_0x3e3a6b(0x1e7)]())[_0x3e3a6b(0x18f)](_0x151884=>{const _0x2d8ee4=_0x3e3a6b;_0x146c40(_0x151884),_0x16c7cb['current']=_0x151884['status$'][_0x2d8ee4(0x1a2)](_0x4523a1=>{_0x4c7962(_0x4523a1);});}),()=>{const _0x2ed7c0=_0x3e3a6b;var _0x41decb;(_0x41decb=_0x16c7cb[_0x2ed7c0(0x1aa)])==null||_0x41decb[_0x2ed7c0(0x166)](),_0x16c7cb['current']=null;}),[_0x4ed2cf,_0x2fe6ce]),_0x433c77?_0x115494(_0x4dbc1e,{'align':_0x3e3a6b(0x19d),'disabled':_0x218c0a===c['OFFLINE'],'className':_0x3e3a6b(0x1cc),'overlay':_0x115494(Re,{'status':_0x218c0a,'coordinator':_0x433c77}),'children':_0x115494(_0x3e3a6b(0x192),{'className':_0x5af8db(_0x3e3a6b(0x15e),{'univer-cursor-not-allowed':_0x218c0a===c[_0x3e3a6b(0x1d8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x218c0a!==c['OFFLINE']}),'type':'button','children':_0x115494(W,{'className':_0x3e3a6b(0x189)})})}):null;}function Re(_0x5a29e0){const _0xa34a80=_0xeaafbf,{status:_0x191d5c,coordinator:_0x35fec2}=_0x5a29e0;switch(_0x191d5c){case c[_0xa34a80(0x1ea)]:return _0x115494($e,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1a7)]:return _0x115494(xe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x18c)]:return _0x115494(Pe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1d8)]:return _0x115494(Te,{});case c[_0xa34a80(0x1ac)]:return _0x115494(Ae,{'coordinator':_0x35fec2});default:return null;}}function $e(_0xed49df){const _0x446b3f=_0xeaafbf,{coordinator:_0x3d93d7}=_0xed49df;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x446b3f(0x14c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x446b3f(0x16a)}),_0x115494(_0x39e985,{'onClick':()=>_0x3d93d7[_0x446b3f(0x152)](),'children':_0x446b3f(0x18a)})]});}function xe(_0x567050){const _0x2b63c2=_0xeaafbf,{coordinator:_0x4eedf0}=_0x567050;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x2b63c2(0x14c),{'className':_0x2b63c2(0x1ee),'children':_0x2b63c2(0x1e1)}),_0x115494(_0x39e985,{'onClick':()=>_0x4eedf0[_0x2b63c2(0x178)](),'children':_0x2b63c2(0x1f1)})]});}function Pe(_0x24ca1c){const _0x42fc4e=_0xeaafbf,{coordinator:_0x140011}=_0x24ca1c;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x42fc4e(0x14c),{'className':_0x42fc4e(0x1ee),'children':_0x42fc4e(0x1db)}),_0x115494(_0x39e985,{'variant':_0x42fc4e(0x153),'onClick':()=>_0x140011[_0x42fc4e(0x1ad)](),'children':_0x42fc4e(0x1bf)})]});}function Ae(_0x57ba39){const _0x1d5485=_0xeaafbf,{coordinator:_0x2a6bc1}=_0x57ba39;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x1d5485(0x14c),{'className':_0x1d5485(0x1ee),'children':_0x1d5485(0x171)}),_0x115494(_0x39e985,{'variant':'default','onClick':()=>_0x2a6bc1['stopPresenting'](),'children':_0x1d5485(0x15c)})]});}function Te(){const _0xed729e=_0xeaafbf;return _0x115494(_0x8cbe17,{'children':_0xed729e(0x1cf)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1070ca,_0x2ea655,_0x29f5f4,_0x2d21d1)=>{for(var _0x338152=_0x2d21d1>0x1?void 0x0:_0x2d21d1?Fe(_0x2ea655,_0x29f5f4):_0x2ea655,_0x10d774=_0x1070ca['length']-0x1,_0x4413f7;_0x10d774>=0x0;_0x10d774--)(_0x4413f7=_0x1070ca[_0x10d774])&&(_0x338152=_0x4413f7(_0x338152)||_0x338152);return _0x338152;},A=(_0x4b46c4,_0x2a4cd2)=>(_0x343d3d,_0x3a7621)=>_0x2a4cd2(_0x343d3d,_0x3a7621,_0x4b46c4);let m=class extends _0x469b92{constructor(_0x443b42,_0xceac33){const _0x14068c=_0xeaafbf;super(),this[_0x14068c(0x187)]=_0x443b42,this[_0x14068c(0x16d)]=_0xceac33,this[_0x14068c(0x1e9)]();}[_0xeaafbf(0x1e9)](){const _0x23f52b=_0xeaafbf;this[_0x23f52b(0x15d)](this[_0x23f52b(0x16d)][_0x23f52b(0x1e5)](_0x4f4074[_0x23f52b(0x15b)],()=>_0x445f22(Le,this[_0x23f52b(0x187)])));}};m=He([A(0x0,_0x3ffeae(_0x3e453a)),A(0x1,_0x59077d)],m);const ye='live-share.config',T={};var Ue=Object[_0xeaafbf(0x1d4)],Ve=(_0x5e3edc,_0x2be997,_0x290c48,_0x142563)=>{const _0x106a35=_0xeaafbf;for(var _0xb2325c=_0x142563>0x1?void 0x0:_0x142563?Ue(_0x2be997,_0x290c48):_0x2be997,_0x402af1=_0x5e3edc[_0x106a35(0x1eb)]-0x1,_0x20c30a;_0x402af1>=0x0;_0x402af1--)(_0x20c30a=_0x5e3edc[_0x402af1])&&(_0xb2325c=_0x20c30a(_0xb2325c)||_0xb2325c);return _0xb2325c;},je=(_0x354443,_0x347a1)=>(_0x3e23cb,_0x363b5b)=>_0x347a1(_0x3e23cb,_0x363b5b,_0x354443);let I=class extends _0x469b92{constructor(_0x3374f9){const _0x2d8c35=_0xeaafbf;super(),this[_0x2d8c35(0x1af)]=_0x3374f9,this['_init']();}['_init'](){[_0x19b70e['id'],_0x49dea0['id'],_0x23cd6c['id']]['forEach'](_0x4892fc=>{const _0x14136e=_0xdc09;this[_0x14136e(0x15d)](this[_0x14136e(0x1af)][_0x14136e(0x1b3)](_0x4892fc));});}};I=Ve([je(0x0,_0x3ffeae(L))],I);var Me=Object[_0xeaafbf(0x17b)],ke=Object[_0xeaafbf(0x1d4)],Ge=(_0x2d9aab,_0x2ae8c1,_0x278e7a)=>_0x2ae8c1 in _0x2d9aab?Me(_0x2d9aab,_0x2ae8c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x278e7a}):_0x2d9aab[_0x2ae8c1]=_0x278e7a,We=(_0x2d8af8,_0x59446d,_0x1620ca,_0x40fd14)=>{for(var _0x3a2f05=_0x40fd14>0x1?void 0x0:_0x40fd14?ke(_0x59446d,_0x1620ca):_0x59446d,_0x7c7518=_0x2d8af8['length']-0x1,_0x256f51;_0x7c7518>=0x0;_0x7c7518--)(_0x256f51=_0x2d8af8[_0x7c7518])&&(_0x3a2f05=_0x256f51(_0x3a2f05)||_0x3a2f05);return _0x3a2f05;},F=(_0x28e6b1,_0x24f0b7)=>(_0x852165,_0x264c14)=>_0x24f0b7(_0x852165,_0x264c14,_0x28e6b1),B=(_0x384a9c,_0x1e8801,_0xba87a7)=>Ge(_0x384a9c,typeof _0x1e8801!=_0xeaafbf(0x180)?_0x1e8801+'':_0x1e8801,_0xba87a7);const Ye=_0xeaafbf(0x1ed);let b=class extends _0x5b0277{constructor(_0x4e333b=T,_0x39bb27,_0x4ed240){const _0x148cdf=_0xeaafbf;super(),this[_0x148cdf(0x196)]=_0x4e333b,this[_0x148cdf(0x187)]=_0x39bb27,this[_0x148cdf(0x1c8)]=_0x4ed240;const {..._0x177318}=_0x3e2e87({},T,this[_0x148cdf(0x196)]);this[_0x148cdf(0x1c8)][_0x148cdf(0x182)](ye,_0x177318);}[_0xeaafbf(0x17c)](){const _0x43f473=_0xeaafbf;_0x5b8f83(this[_0x43f473(0x187)],_0xed68fc([[L],[S],[I],[m]],this[_0x43f473(0x196)][_0x43f473(0x1f3)])),_0x98ac8(this[_0x43f473(0x187)],[[I]]);}[_0xeaafbf(0x1c6)](){_0x98ac8(this['_injector'],[[m]]);}};B(b,_0xeaafbf(0x1df),_0x59dbcd[_0xeaafbf(0x167)]),B(b,_0xeaafbf(0x172),Ye),b=We([_0x168090(_0x2f3e48),F(0x1,_0x3ffeae(_0x3e453a)),F(0x2,_0x4c72af)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x8dab(){const _0x21dcb4=['You\x27are\x20offline.','operations','getMemberID','sheet','_entities','getOwnPropertyDescriptor','_handleTerminate','path','svg','OFFLINE','_collabSession','66fjrokb','You\x27re\x20not\x20following\x20the\x20presenter','defIds','dispose$','_startLiveShareCoordinator','type','presenting','You\x27re\x20following\x20the\x20presenter','pipe','_reporters','_status$','registerComponent','requireSession','getUnitId','0\x200\x2017\x2017','_mountLiveShare','IDLE','length','evenodd','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','464394hcOILR','_beIdle','Stop\x20following','init','override','_unitID','_stopPresenting','attrs','div','getTypeOfUnitDisposed$','clear','following','colorChannel1','live-share-icon','tryStartPresenting','text','random','shouldShareOperation','includes','_commandService','event$','LIVESHARE_REQUEST_HOST','_handleOffline','HEADER_MENU','Stop\x20presenting','disposeWithMe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_handleOperation','entries','stringify','_handleOnline','status$','url(#$1','unsubscribe','UNIVER_UNKNOWN','set','NEW_CHANGESETS','Present\x20this\x20document','use','next','_uiPartsService','getLiveShareCoordinator','_startPresenting','mask','You\x27re\x20presenting\x20the\x20document','pluginName','replace','from','get','_fetchOperations','getValue','stopFollowing','_presenter','getInitialStates','defineProperty','onStarting','_handleNewChangeSets','LiveShareIcon','params','symbol','idSuffix','setConfig','_handleNewHost','has','tag','_status','_injector','getCurrentTypeOfUnit$','univer-size-4','Start','find','NOT_FOLLOWING','LIVESHARE_OPERATION','currentColor','then','asObservable','_univerInstanceService','button','617564galGbR','map','_init','_config','values','fill','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','createInstance','forEach','unitId','end','data','add','getStatus','children','subscribe','_stopFollowing','_collabSessionService','getConfig','1966715IjmesY','FOLLOWING','send','registerInitialStateReporter','current','dispose','PRESENTING','startFollowing','string','_liveShareService','UniverIcon','offline','sessionStatus$','registerSharedOperation','http://www.w3.org/2000/svg','idle','delete','complete','9GCYmqs','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','xlink:href','2282085tUNUdw','LIVESHARE_NEW_HOST','1947232rPoilJ','LIVESHARE_TERMINATE','Start\x20following','_startFollowing','not-following','274964UGWBGz','displayName','30725560CxnjQF','1em','onRendered','_commandDisposable','_configService','UNIVER_SHEET','none','executeCommand','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','_sharedOperations','stopPresenting'];_0x8dab=function(){return _0x21dcb4;};return _0x8dab();}
|
|
1
|
+
const _0x222f49=_0x32f8;(function(_0x132553,_0x276501){const _0x2ad240=_0x32f8,_0x5e7b8e=_0x132553();while(!![]){try{const _0x172e37=parseInt(_0x2ad240(0x172))/0x1*(-parseInt(_0x2ad240(0x1a9))/0x2)+parseInt(_0x2ad240(0x1cf))/0x3*(-parseInt(_0x2ad240(0x1e0))/0x4)+-parseInt(_0x2ad240(0x1a4))/0x5+parseInt(_0x2ad240(0x1bc))/0x6*(parseInt(_0x2ad240(0x173))/0x7)+parseInt(_0x2ad240(0x1b2))/0x8+parseInt(_0x2ad240(0x1c5))/0x9+parseInt(_0x2ad240(0x144))/0xa;if(_0x172e37===_0x276501)break;else _0x5e7b8e['push'](_0x5e7b8e['shift']());}catch(_0x27a76d){_0x5e7b8e['push'](_0x5e7b8e['shift']());}}}(_0x1f92,0x5bffa));var J=Object[_0x222f49(0x16d)],K=(_0x131552,_0x67239e,_0x4727fa)=>_0x67239e in _0x131552?J(_0x131552,_0x67239e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4727fa}):_0x131552[_0x67239e]=_0x4727fa,u=(_0x310b23,_0x336579,_0xabdb22)=>K(_0x310b23,typeof _0x336579!=_0x222f49(0x181)?_0x336579+'':_0x336579,_0xabdb22);import{Disposable as _0x1a37e7,toDisposable as _0x5b056a,Inject as _0x1482cd,Injector as _0x4bf49b,RxDisposable as _0x4d23fd,UniverInstanceType as _0x2f11e5,DisposableCollection as _0x4c5763,CommandType as _0xf0a1ab,IUniverInstanceService as _0x42d6a1,IConfigService as _0x2a5d23,ICommandService as _0x49fbbf,DependentOn as _0xa62d83,Plugin as _0x4a80e3,merge as _0x20b0c5,registerDependencies as _0x3e3410,mergeOverrideWithDependencies as _0x443e96,touchDependencies as _0xd36313}from'@univerjs/core';import{useDependency as _0xa82e97,useObservable as _0x169040,BuiltInUIPart as _0x504303,connectInjector as _0x71c5ea,IUIPartsService as _0x2eb621}from'@univerjs/ui';import{jsx as _0x147256,jsxs as _0x5b8e35,Fragment as _0x48919b}from'react/jsx-runtime';import{Dropdown as _0x4032fa,clsx as _0x21e998,Button as _0x343d1a}from'@univerjs/design';import{useRef as _0x2088ee,createElement as _0x35bf0f,forwardRef as _0x1296e9,useState as _0x263a7d,useEffect as _0x5b9c41}from'react';import{CollaborationEvent as _0x3fdbca,parseProtocolChangeset as _0xce55e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ae195,SessionStatus as _0x37958e,UniverCollaborationClientPlugin as _0x2aafaa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c0766,SetWorksheetActiveOperation as _0x18f1ca}from'@univerjs/sheets';import{BehaviorSubject as _0x1af331,Subject as _0x535ba9}from'rxjs';import{takeUntil as _0x4973f2,throttleTime as _0x5b740f}from'rxjs/operators';import{SetZoomRatioOperation as _0x314d69,SetScrollOperation as _0x39a4e2}from'@univerjs/sheets-ui';function k({ref:_0x462cb7,..._0x1c1dff}){const _0x316bad=_0x222f49,{icon:_0x1a8c9f,id:_0x276f33,className:_0x2e7a8e,extend:_0xa00f6a,..._0x2bd088}=_0x1c1dff,_0x50329d=(_0x316bad(0x15c)+_0x276f33+'\x20'+(_0x2e7a8e||''))['trim'](),_0x2261d9=_0x2088ee('_'+Oe());return G(_0x1a8c9f,''+_0x276f33,{'defIds':_0x1a8c9f[_0x316bad(0x1a3)],'idSuffix':_0x2261d9['current']},{'ref':_0x462cb7,'className':_0x50329d,..._0x2bd088},_0xa00f6a);}function G(_0x55cfd2,_0x4adbc0,_0x882380,_0x2bd600,_0x16f876){const _0xdbe3d4=_0x222f49;return _0x35bf0f(_0x55cfd2[_0xdbe3d4(0x1cd)],{'key':_0x4adbc0,...be(_0x55cfd2,_0x882380,_0x16f876),..._0x2bd600},(Ee(_0x55cfd2,_0x882380)[_0xdbe3d4(0x166)]||[])[_0xdbe3d4(0x1da)]((_0x14578b,_0x5b3422)=>G(_0x14578b,_0x4adbc0+'-'+_0x55cfd2[_0xdbe3d4(0x1cd)]+'-'+_0x5b3422,_0x882380,void 0x0,_0x16f876)));}function be(_0x5963be,_0x13093c,_0x4e1677){const _0x30a373=_0x222f49,_0x5e406e={..._0x5963be[_0x30a373(0x178)]};_0x4e1677!=null&&_0x4e1677['colorChannel1']&&_0x5e406e[_0x30a373(0x17b)]==='colorChannel1'&&(_0x5e406e['fill']=_0x4e1677[_0x30a373(0x19b)]),_0x5963be[_0x30a373(0x1cd)]===_0x30a373(0x16f)&&_0x5e406e['id']&&(_0x5e406e['id']=_0x5e406e['id']+_0x13093c[_0x30a373(0x1d3)]),Object['entries'](_0x5e406e)['forEach'](([_0x5e9f2d,_0x4e0b9d])=>{const _0x34b26c=_0x30a373;_0x5e9f2d==='mask'&&typeof _0x4e0b9d==_0x34b26c(0x1d8)&&(_0x5e406e[_0x5e9f2d]=_0x4e0b9d[_0x34b26c(0x14f)](/url\(#(.*)\)/,_0x34b26c(0x151)+_0x13093c[_0x34b26c(0x1d3)]+')'));});const {defIds:_0x59694a}=_0x13093c;return!_0x59694a||_0x59694a[_0x30a373(0x1b0)]===0x0||(_0x5963be[_0x30a373(0x1cd)]==='use'&&_0x5e406e[_0x30a373(0x1bf)]&&(_0x5e406e['xlink:href']=_0x5e406e[_0x30a373(0x1bf)]+_0x13093c[_0x30a373(0x1d3)]),Object[_0x30a373(0x154)](_0x5e406e)[_0x30a373(0x1cb)](([_0x3ea8c0,_0x39bb4c])=>{const _0x5d459c=_0x30a373;typeof _0x39bb4c==_0x5d459c(0x1d8)&&(_0x5e406e[_0x3ea8c0]=_0x39bb4c[_0x5d459c(0x14f)](/url\(#(.*)\)/,'url(#$1'+_0x13093c[_0x5d459c(0x1d3)]+')'));})),_0x5e406e;}function Ee(_0x5ea3b1,_0x2fc3f5){const _0xa9cbff=_0x222f49;var _0xc887a6;const {defIds:_0x40bb30}=_0x2fc3f5;return!_0x40bb30||_0x40bb30[_0xa9cbff(0x1b0)]===0x0?_0x5ea3b1:_0x5ea3b1['tag']===_0xa9cbff(0x1a7)&&((_0xc887a6=_0x5ea3b1['children'])!=null&&_0xc887a6[_0xa9cbff(0x1b0)])?{..._0x5ea3b1,'children':_0x5ea3b1[_0xa9cbff(0x166)][_0xa9cbff(0x1da)](_0x1f1739=>typeof _0x1f1739[_0xa9cbff(0x178)]['id']==_0xa9cbff(0x1d8)&&_0x40bb30&&_0x40bb30[_0xa9cbff(0x182)](_0x1f1739['attrs']['id'])?{..._0x1f1739,'attrs':{..._0x1f1739[_0xa9cbff(0x178)],'id':_0x1f1739[_0xa9cbff(0x178)]['id']+_0x2fc3f5[_0xa9cbff(0x1d3)]}}:_0x1f1739)}:_0x5ea3b1;}function Oe(){const _0x16f1c6=_0x222f49;return Math[_0x16f1c6(0x16c)]()[_0x16f1c6(0x1af)](0x24)['substring'](0x2,0x8);}k[_0x222f49(0x19c)]=_0x222f49(0x198);const we={'tag':_0x222f49(0x19e),'attrs':{'xmlns':_0x222f49(0x1c6),'fill':_0x222f49(0x1ad),'viewBox':_0x222f49(0x1b7),'width':_0x222f49(0x1df),'height':'1em'},'children':[{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1c9)}},{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1b4),'fillRule':_0x222f49(0x1ac),'clipRule':_0x222f49(0x1ac)}}]},W=_0x1296e9(function(_0x3ad358,_0x59951a){const _0x4e5bda=_0x222f49;return _0x35bf0f(k,Object[_0x4e5bda(0x1a0)]({},_0x3ad358,{'id':_0x4e5bda(0x175),'ref':_0x59951a,'icon':we}));});W[_0x222f49(0x19c)]=_0x222f49(0x189);class L extends _0x1a37e7{constructor(){const _0x9a5498=_0x222f49;super(...arguments),u(this,_0x9a5498(0x165),new Set()),u(this,_0x9a5498(0x19f),new Set());}['registerSharedOperation'](_0x51fa91){const _0x51633c=_0x222f49;return this[_0x51633c(0x165)][_0x51633c(0x17a)](_0x51fa91),_0x5b056a(()=>this['_sharedOperations'][_0x51633c(0x163)](_0x51fa91));}[_0x222f49(0x180)](_0x235cc7){const _0x35ad08=_0x222f49;return this[_0x35ad08(0x19f)][_0x35ad08(0x17a)](_0x235cc7),_0x5b056a(()=>this[_0x35ad08(0x19f)][_0x35ad08(0x163)](_0x235cc7));}[_0x222f49(0x162)](_0x5725b3){const _0x4a8736=_0x222f49;return this[_0x4a8736(0x165)][_0x4a8736(0x17c)](_0x5725b3);}[_0x222f49(0x1d2)](_0x50b96c){const _0x485c53=_0x222f49;return Array[_0x485c53(0x188)](this[_0x485c53(0x19f)])['map'](_0x4e2a8f=>_0x4e2a8f(_0x50b96c));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x38ad76,_0x26da5c,_0x8b1786,_0x1a136e)=>{const _0x19311d=_0x222f49;for(var _0x6b88e7=_0x1a136e>0x1?void 0x0:_0x1a136e?Ne(_0x26da5c,_0x8b1786):_0x26da5c,_0x2640d0=_0x38ad76[_0x19311d(0x1b0)]-0x1,_0x56c6e4;_0x2640d0>=0x0;_0x2640d0--)(_0x56c6e4=_0x38ad76[_0x2640d0])&&(_0x6b88e7=_0x56c6e4(_0x6b88e7)||_0x6b88e7);return _0x6b88e7;},_=(_0x26bd72,_0x2e0c36)=>(_0x661ef1,_0x1bae9c)=>_0x2e0c36(_0x661ef1,_0x1bae9c,_0x26bd72);let S=class extends _0x4d23fd{constructor(_0x43f0c5,_0x4c68c8,_0x5ba94c){const _0x4d0c7b=_0x222f49;super(),u(this,_0x4d0c7b(0x18a),new Map()),(this[_0x4d0c7b(0x158)]=_0x43f0c5,this[_0x4d0c7b(0x1c4)]=_0x4c68c8,this[_0x4d0c7b(0x185)]=_0x5ba94c,this[_0x4d0c7b(0x15f)]());}async[_0x222f49(0x1dd)](_0x1c2e6e){const _0x4e9dc9=_0x222f49;return this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x17c)](_0x1c2e6e)||await this['_startLiveShareCoordinator'](_0x1c2e6e),this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x1b1)](_0x1c2e6e);}['getLiveShareCoordinatorSync'](_0x2f9468){const _0x5271e5=_0x222f49;var _0x34ea18;return(_0x34ea18=this[_0x5271e5(0x18a)]['get'](_0x2f9468))!=null?_0x34ea18:null;}[_0x222f49(0x15f)](){const _0x500a8f=_0x222f49;this[_0x500a8f(0x158)]['getTypeOfUnitAdded$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this['dispose$']))[_0x500a8f(0x1c0)](async _0x14537d=>{const _0x11bfd9=_0x500a8f,_0x46c236=_0x14537d[_0x11bfd9(0x1b8)]();this[_0x11bfd9(0x18a)][_0x11bfd9(0x17c)](_0x46c236)||this['_startLiveShareCoordinator'](_0x46c236);}),this[_0x500a8f(0x158)]['getTypeOfUnitDisposed$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this[_0x500a8f(0x19a)]))[_0x500a8f(0x1c0)](_0x6a1e96=>{const _0xdea41c=_0x500a8f,_0x5173e1=_0x6a1e96[_0xdea41c(0x1b8)](),_0x521a08=this[_0xdea41c(0x18a)][_0xdea41c(0x1b1)](_0x5173e1);_0x521a08==null||_0x521a08['dispose']();});}async[_0x222f49(0x14c)](_0xf47cd1){const _0x58df3a=_0x222f49,_0x125981=await this[_0x58df3a(0x185)]['requireSession'](_0xf47cd1),_0xd7029=this['_injector']['createInstance'](N,_0xf47cd1,_0x125981);return _0xd7029['init'](),this['_entities']['set'](_0xf47cd1,_0xd7029),_0xd7029;}};S=Y([_(0x0,_0x42d6a1),_(0x1,_0x1482cd(_0x4bf49b)),_(0x2,_0x1482cd(_0x1ae195))],S);var c=(_0x21da83=>(_0x21da83[_0x222f49(0x1b5)]='offline',_0x21da83[_0x222f49(0x1ab)]=_0x222f49(0x157),_0x21da83['FOLLOWING']='following',_0x21da83[_0x222f49(0x156)]=_0x222f49(0x1b6),_0x21da83[_0x222f49(0x159)]=_0x222f49(0x191),_0x21da83))(c||{});const Ce=_0x222f49(0x152),De=0xc8;let N=class extends _0x4d23fd{constructor(_0x1636ce,_0xc41e87,_0x4dcef3,_0x2a8dfb,_0x454816){const _0x36727e=_0x222f49;super(),u(this,'_status$',new _0x1af331(_0x36727e(0x157))),u(this,_0x36727e(0x1d7),this['_status$']['asObservable']()),u(this,_0x36727e(0x15f),!0x1),u(this,_0x36727e(0x192),null),u(this,_0x36727e(0x1ae),null),(this[_0x36727e(0x194)]=_0x1636ce,this[_0x36727e(0x148)]=_0xc41e87,this['_configService']=_0x4dcef3,this[_0x36727e(0x1de)]=_0x2a8dfb,this['_commandService']=_0x454816);}get[_0x222f49(0x18f)](){const _0x4fd45b=_0x222f49;return this[_0x4fd45b(0x1ba)]['getValue']();}[_0x222f49(0x15e)](){const _0x1cfe29=_0x222f49;var _0x456969;(_0x456969=this[_0x1cfe29(0x192)])==null||_0x456969[_0x1cfe29(0x15e)](),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x160)](_0x1cfe29(0x157)),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x184)]();}[_0x222f49(0x1e4)](){const _0x55ff8c=_0x222f49;return this[_0x55ff8c(0x18f)];}[_0x222f49(0x1e2)](){const _0x2b7144=_0x222f49;this[_0x2b7144(0x15f)]||(this[_0x2b7144(0x15f)]=!0x0,this['_collabSession'][_0x2b7144(0x17f)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0xf3c7a5=>{const _0x40dc20=_0x2b7144;switch(_0xf3c7a5){case _0x37958e['OFFLINE']:this[_0x40dc20(0x16a)]();break;case _0x37958e[_0x40dc20(0x1cc)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x2b7144(0x14b)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0x101772=>{const _0x30ccdb=_0x2b7144,{eventID:_0x460750}=_0x101772;switch(_0x460750){case _0x3fdbca['LIVESHARE_NEW_HOST']:this[_0x30ccdb(0x16e)](_0x101772);break;case _0x3fdbca[_0x30ccdb(0x1ce)]:this[_0x30ccdb(0x1c3)](_0x101772);break;case _0x3fdbca['LIVESHARE_TERMINATE']:this[_0x30ccdb(0x161)]();break;case _0x3fdbca[_0x30ccdb(0x1b9)]:this[_0x30ccdb(0x150)](_0x101772);break;}}));}[_0x222f49(0x183)](){const _0xecb64a=_0x222f49;this[_0xecb64a(0x148)][_0xecb64a(0x199)]({'eventID':_0x3fdbca[_0xecb64a(0x196)],'data':{'unitID':this[_0xecb64a(0x194)],'userID':this['_collabSession'][_0xecb64a(0x18d)]()}},this['_unitID']);}[_0x222f49(0x14d)](){const _0x3adab4=_0x222f49;this[_0x3adab4(0x18f)]===_0x3adab4(0x191)&&(this[_0x3adab4(0x1ba)][_0x3adab4(0x160)](_0x3adab4(0x157)),this[_0x3adab4(0x148)][_0x3adab4(0x199)]({'eventID':_0x3fdbca[_0x3adab4(0x190)],'data':{'unitID':this[_0x3adab4(0x194)]}},this[_0x3adab4(0x194)]));}['startFollowing'](){const _0x2310ca=_0x222f49;this[_0x2310ca(0x18f)]===_0x2310ca(0x1b6)&&(this[_0x2310ca(0x1ba)][_0x2310ca(0x160)](_0x2310ca(0x1e5)),this['_startFollowing']());}[_0x222f49(0x1ca)](){const _0x19ea8e=_0x222f49;this[_0x19ea8e(0x18f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x76a257){const _0x341b8f=_0x222f49,{presenter:_0x4ad5b6}=_0x76a257[_0x341b8f(0x1a6)],_0x25dc34=this[_0x341b8f(0x148)]['getMemberID']();this[_0x341b8f(0x1ae)]=_0x4ad5b6,_0x4ad5b6===_0x25dc34?(this[_0x341b8f(0x174)](),this[_0x341b8f(0x16b)]()):this[_0x341b8f(0x18f)]!==_0x341b8f(0x1b6)&&(this[_0x341b8f(0x17d)](),this[_0x341b8f(0x1c1)]());}[_0x222f49(0x186)](){const _0x421f73=_0x222f49,_0x313e07={'eventID':_0x3fdbca[_0x421f73(0x1db)]};this[_0x421f73(0x148)][_0x421f73(0x199)](_0x313e07,this[_0x421f73(0x194)]);}[_0x222f49(0x161)](){const _0x31376e=_0x222f49;this['_presenter']=null,this[_0x31376e(0x18f)]!==_0x31376e(0x191)&&this[_0x31376e(0x17e)]();}[_0x222f49(0x150)](_0x2445a7){const _0xd6ccef=_0x222f49;if(this[_0xd6ccef(0x18f)]===_0xd6ccef(0x1e5)&&this['_presenter']===_0x2445a7[_0xd6ccef(0x1a6)][_0xd6ccef(0x1d0)]){const _0x2a70b8=_0xce55e(_0x2445a7[_0xd6ccef(0x1a6)])[_0xd6ccef(0x18b)]['reverse']()[_0xd6ccef(0x18e)](_0x1895ae=>_0x1895ae['id']===_0x4c0766['id']);if(_0x2a70b8){const _0x106314=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x187)],_0x2a00ad=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x1d5)]['id'];setTimeout(()=>{const _0x2d47f4=_0xd6ccef;this[_0x2d47f4(0x146)]['executeCommand'](_0x18f1ca['id'],{'unitId':_0x106314,'subUnitId':_0x2a00ad},{'fromCollab':!0x0});});}}}[_0x222f49(0x16b)](){const _0x1da092=_0x222f49;this['_status$']['next'](_0x1da092(0x191));const _0x1c14f5=new Map(),_0x22e09f=this[_0x1da092(0x192)]=new _0x4c5763();_0x22e09f[_0x1da092(0x17a)](_0x5b056a(()=>{const _0x39874f=_0x1da092;_0x1c14f5['forEach'](_0x2dc096=>_0x2dc096[_0x39874f(0x184)]()),_0x1c14f5[_0x39874f(0x1c8)]();})),_0x22e09f['add'](this[_0x1da092(0x146)][_0x1da092(0x153)](_0x30df92=>{const _0x55d7b1=_0x1da092;var _0x568f82;if(_0x30df92['type']!==_0xf0a1ab['OPERATION']||!this[_0x55d7b1(0x1de)]['shouldShareOperation'](_0x30df92['id']))return;const {id:_0x41face}=_0x30df92;let _0xd38261;_0x1c14f5[_0x55d7b1(0x17c)](_0x41face)?_0xd38261=_0x1c14f5[_0x55d7b1(0x1b1)](_0x41face):(_0xd38261=new _0x535ba9(),_0x1c14f5['set'](_0x41face,_0xd38261),_0xd38261[_0x55d7b1(0x1e3)](_0x5b740f((_0x568f82=this[_0x55d7b1(0x147)]['getConfig'](Ce))!=null?_0x568f82:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57e83b=>{const _0x3d258d=_0x55d7b1;this[_0x3d258d(0x148)][_0x3d258d(0x199)]({'eventID':_0x3fdbca[_0x3d258d(0x1ce)],'data':{'unitID':this[_0x3d258d(0x194)],'operations':{[_0x57e83b['id']]:{'id':_0x57e83b['id'],'params':JSON[_0x3d258d(0x169)](_0x57e83b[_0x3d258d(0x15a)])}}}},this[_0x3d258d(0x194)]);})),_0xd38261[_0x55d7b1(0x160)](_0x30df92);})),this[_0x1da092(0x1de)][_0x1da092(0x1d2)](this[_0x1da092(0x194)])[_0x1da092(0x1cb)](_0x2e6d89=>this[_0x1da092(0x148)]['send']({'eventID':_0x3fdbca['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1da092(0x194)],'operations':{[_0x2e6d89['id']]:{'id':_0x2e6d89['id'],'params':JSON[_0x1da092(0x169)](_0x2e6d89['params'])}}}},this[_0x1da092(0x194)]));}['_stopPresenting'](){const _0x33d525=_0x222f49;var _0x5641cf;this[_0x33d525(0x1ba)][_0x33d525(0x160)](_0x33d525(0x157)),(_0x5641cf=this[_0x33d525(0x192)])==null||_0x5641cf[_0x33d525(0x15e)](),this[_0x33d525(0x192)]=null;}[_0x222f49(0x1c1)](){const _0x1a5c91=_0x222f49;var _0x262734;(_0x262734=this[_0x1a5c91(0x192)])==null||_0x262734['dispose'](),this[_0x1a5c91(0x1ba)][_0x1a5c91(0x160)](_0x1a5c91(0x1e5));}[_0x222f49(0x17e)](){const _0x2c053e=_0x222f49;var _0x319506;this[_0x2c053e(0x1ba)][_0x2c053e(0x160)](_0x2c053e(0x157)),(_0x319506=this[_0x2c053e(0x192)])==null||_0x319506[_0x2c053e(0x15e)](),this[_0x2c053e(0x192)]=null;}[_0x222f49(0x174)](){const _0x586ea4=_0x222f49;var _0x1774b0;this[_0x586ea4(0x1ba)]['next'](_0x586ea4(0x1b6)),(_0x1774b0=this[_0x586ea4(0x192)])==null||_0x1774b0[_0x586ea4(0x15e)]();}[_0x222f49(0x1c3)](_0x201f11){const _0x32fd22=_0x222f49;if([_0x32fd22(0x191),_0x32fd22(0x1b6),_0x32fd22(0x195)][_0x32fd22(0x182)](this[_0x32fd22(0x18f)])||!_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]||_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]===this['_collabSession'][_0x32fd22(0x18d)]())return;this[_0x32fd22(0x18f)]===_0x32fd22(0x157)&&this[_0x32fd22(0x1c1)]();const _0x3f981c=_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x15d)];Object[_0x32fd22(0x171)](_0x3f981c)[_0x32fd22(0x1cb)](_0x195b3c=>{const _0x4d97ac=_0x32fd22;this[_0x4d97ac(0x146)]['executeCommand'](_0x195b3c['id'],_0x195b3c['params']?JSON[_0x4d97ac(0x1d1)](_0x195b3c[_0x4d97ac(0x15a)]):null,{'fromCollab':!0x0});});}[_0x222f49(0x16a)](){const _0x117688=_0x222f49;var _0x10c904;this['_status$']['next'](_0x117688(0x195)),(_0x10c904=this[_0x117688(0x192)])==null||_0x10c904[_0x117688(0x15e)]();}[_0x222f49(0x1c7)](){const _0x2daa41=_0x222f49;this[_0x2daa41(0x1ba)][_0x2daa41(0x160)](_0x2daa41(0x157)),this[_0x2daa41(0x186)]();}};N=Y([_(0x2,_0x2a5d23),_(0x3,_0x1482cd(L)),_(0x4,_0x49fbbf)],N);function Le(){const _0x595af5=_0x222f49,_0x1e6a9f=_0xa82e97(S),_0x3d429b=_0xa82e97(_0x42d6a1),_0xad7edf=_0x169040(()=>_0x3d429b[_0x595af5(0x1c2)](_0x2f11e5[_0x595af5(0x167)]),void 0x0,!0x1,[]),[_0x1d0531,_0xf25f]=_0x263a7d(null),[_0x535e52,_0x14cdd5]=_0x263a7d(c[_0x595af5(0x1ab)]),_0x22c6ec=_0x2088ee(null);return _0x5b9c41(()=>(_0xad7edf&&_0x1e6a9f[_0x595af5(0x1dd)](_0xad7edf[_0x595af5(0x1b8)]())[_0x595af5(0x1a5)](_0x39b7e7=>{const _0x49e5e1=_0x595af5;_0xf25f(_0x39b7e7),_0x22c6ec[_0x49e5e1(0x15b)]=_0x39b7e7[_0x49e5e1(0x1d7)][_0x49e5e1(0x1c0)](_0x515ddf=>{_0x14cdd5(_0x515ddf);});}),()=>{const _0x417f1d=_0x595af5;var _0x3c104c;(_0x3c104c=_0x22c6ec[_0x417f1d(0x15b)])==null||_0x3c104c[_0x417f1d(0x1be)](),_0x22c6ec[_0x417f1d(0x15b)]=null;}),[_0xad7edf,_0x1e6a9f]),_0x1d0531?_0x147256(_0x4032fa,{'align':'end','disabled':_0x535e52===c[_0x595af5(0x1b5)],'className':_0x595af5(0x177),'overlay':_0x147256(Re,{'status':_0x535e52,'coordinator':_0x1d0531}),'children':_0x147256('button',{'className':_0x21e998('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x535e52===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x535e52!==c[_0x595af5(0x1b5)]}),'type':_0x595af5(0x18c),'children':_0x147256(W,{'className':_0x595af5(0x193)})})}):null;}function _0x32f8(_0x55cde5,_0x1ba71a){_0x55cde5=_0x55cde5-0x144;const _0x1f9247=_0x1f92();let _0x32f805=_0x1f9247[_0x55cde5];return _0x32f805;}function Re(_0x3ae1e6){const _0x3b8226=_0x222f49,{status:_0x26e94d,coordinator:_0x45f5d3}=_0x3ae1e6;switch(_0x26e94d){case c[_0x3b8226(0x1ab)]:return _0x147256($e,{'coordinator':_0x45f5d3});case c[_0x3b8226(0x1b3)]:return _0x147256(xe,{'coordinator':_0x45f5d3});case c['NOT_FOLLOWING']:return _0x147256(Pe,{'coordinator':_0x45f5d3});case c['OFFLINE']:return _0x147256(Te,{});case c[_0x3b8226(0x159)]:return _0x147256(Ae,{'coordinator':_0x45f5d3});default:return null;}}function $e(_0x1ae728){const _0x13e998=_0x222f49,{coordinator:_0x8df82a}=_0x1ae728;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x13e998(0x1bb),{'className':_0x13e998(0x164),'children':_0x13e998(0x1a2)}),_0x147256(_0x343d1a,{'onClick':()=>_0x8df82a[_0x13e998(0x183)](),'children':'Start'})]});}function _0x1f92(){const _0x24faa7=['sessionStatus$','registerInitialStateReporter','symbol','includes','tryStartPresenting','complete','_collabSessionService','_fetchOperations','unitId','from','LiveShareIcon','_entities','mutations','button','getMemberID','find','_status','LIVESHARE_TERMINATE','presenting','_commandDisposable','univer-size-4','_unitID','offline','LIVESHARE_REQUEST_HOST','Stop\x20presenting','UniverIcon','send','dispose$','colorChannel1','displayName','You\x27are\x20offline.','svg','_reporters','assign','Start\x20following','Present\x20this\x20document','defIds','2431090AlCoHV','then','data','defs','registerSharedOperation','191514hqGhpA','_uiPartsService','IDLE','evenodd','none','_presenter','toString','length','get','4805576DUHMCj','FOLLOWING','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','OFFLINE','not-following','0\x200\x2017\x2017','getUnitId','NEW_CHANGESETS','_status$','div','44118OzvmRD','UNIVER_UNKNOWN','unsubscribe','xlink:href','subscribe','_startFollowing','getCurrentTypeOfUnit$','_handleOperation','_injector','1306485qEEfRE','http://www.w3.org/2000/svg','_handleOnline','clear','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','stopFollowing','forEach','ONLINE','tag','LIVESHARE_OPERATION','9CsyzmS','memberID','parse','getInitialStates','idSuffix','_config','sheet','disposeWithMe','status$','string','live-share.config','map','LIVESHARE_FETCH_OPERATIONS','registerComponent','getLiveShareCoordinator','_liveShareService','1em','414248utlDPT','getOwnPropertyDescriptor','init','pipe','getStatus','following','8698880BtQNUt','onRendered','_commandService','_configService','_collabSession','You\x27re\x20presenting\x20the\x20document','HEADER_MENU','event$','_startLiveShareCoordinator','stopPresenting','currentColor','replace','_handleNewChangeSets','url(#$1','SAME_OPERATION_SHARE_INTERVAL','onCommandExecuted','entries','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','idle','_univerInstanceService','PRESENTING','params','current','univerjs-icon\x20univerjs-icon-','operations','dispose','_init','next','_handleTerminate','shouldShareOperation','delete','univer-mb-3\x20univer-w-full\x20univer-text-sm','_sharedOperations','children','UNIVER_SHEET','presenter','stringify','_handleOffline','_startPresenting','random','defineProperty','_handleNewHost','mask','path','values','5NwakGy','35keXnTT','_stopFollowing','live-share-icon','default','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','attrs','setConfig','add','fill','has','_stopPresenting','_beIdle'];_0x1f92=function(){return _0x24faa7;};return _0x1f92();}function xe(_0x3f4462){const _0x1ea643=_0x222f49,{coordinator:_0x28cd24}=_0x3f4462;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x1ea643(0x1bb),{'className':_0x1ea643(0x164),'children':_0x1ea643(0x155)}),_0x147256(_0x343d1a,{'onClick':()=>_0x28cd24[_0x1ea643(0x1ca)](),'children':'Stop\x20following'})]});}function Pe(_0x2f6795){const _0x352649=_0x222f49,{coordinator:_0xc604e7}=_0x2f6795;return _0x5b8e35(_0x48919b,{'children':[_0x147256('div',{'className':_0x352649(0x164),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x147256(_0x343d1a,{'variant':'text','onClick':()=>_0xc604e7['startFollowing'](),'children':_0x352649(0x1a1)})]});}function Ae(_0x51b98b){const _0x29d1db=_0x222f49,{coordinator:_0x5e6b3b}=_0x51b98b;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x29d1db(0x1bb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29d1db(0x149)}),_0x147256(_0x343d1a,{'variant':_0x29d1db(0x176),'onClick':()=>_0x5e6b3b[_0x29d1db(0x14d)](),'children':_0x29d1db(0x197)})]});}function Te(){const _0x4b4bf3=_0x222f49;return _0x147256(_0x48919b,{'children':_0x4b4bf3(0x19d)});}var Fe=Object[_0x222f49(0x1e1)],He=(_0x20a505,_0x2f59a1,_0x699d44,_0x16b8cd)=>{const _0x2585ec=_0x222f49;for(var _0x46b8ab=_0x16b8cd>0x1?void 0x0:_0x16b8cd?Fe(_0x2f59a1,_0x699d44):_0x2f59a1,_0x112c1a=_0x20a505[_0x2585ec(0x1b0)]-0x1,_0xda2f11;_0x112c1a>=0x0;_0x112c1a--)(_0xda2f11=_0x20a505[_0x112c1a])&&(_0x46b8ab=_0xda2f11(_0x46b8ab)||_0x46b8ab);return _0x46b8ab;},A=(_0x345c45,_0x32671f)=>(_0x22e067,_0x3cdb29)=>_0x32671f(_0x22e067,_0x3cdb29,_0x345c45);let m=class extends _0x1a37e7{constructor(_0x9a6efd,_0x6237a1){const _0x81ac34=_0x222f49;super(),this[_0x81ac34(0x1c4)]=_0x9a6efd,this['_uiPartsService']=_0x6237a1,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1764e5=_0x222f49;this['disposeWithMe'](this[_0x1764e5(0x1aa)][_0x1764e5(0x1dc)](_0x504303[_0x1764e5(0x14a)],()=>_0x71c5ea(Le,this['_injector'])));}};m=He([A(0x0,_0x1482cd(_0x4bf49b)),A(0x1,_0x2eb621)],m);const ye=_0x222f49(0x1d9),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x48c8b5,_0x455180,_0x5a5586,_0x858e3b)=>{const _0x19df28=_0x222f49;for(var _0x2c586f=_0x858e3b>0x1?void 0x0:_0x858e3b?Ue(_0x455180,_0x5a5586):_0x455180,_0x294eed=_0x48c8b5[_0x19df28(0x1b0)]-0x1,_0x47e890;_0x294eed>=0x0;_0x294eed--)(_0x47e890=_0x48c8b5[_0x294eed])&&(_0x2c586f=_0x47e890(_0x2c586f)||_0x2c586f);return _0x2c586f;},je=(_0x548104,_0x3aaed5)=>(_0x47e839,_0x4120f6)=>_0x3aaed5(_0x47e839,_0x4120f6,_0x548104);let I=class extends _0x1a37e7{constructor(_0xadd850){const _0x28c989=_0x222f49;super(),this[_0x28c989(0x1de)]=_0xadd850,this['_init']();}[_0x222f49(0x15f)](){[_0x314d69['id'],_0x39a4e2['id'],_0x18f1ca['id']]['forEach'](_0x199093=>{const _0x336415=_0x32f8;this[_0x336415(0x1d6)](this[_0x336415(0x1de)][_0x336415(0x1a8)](_0x199093));});}};I=Ve([je(0x0,_0x1482cd(L))],I);var Me=Object[_0x222f49(0x16d)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x29c7a9,_0x17ca98,_0x2b7853)=>_0x17ca98 in _0x29c7a9?Me(_0x29c7a9,_0x17ca98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7853}):_0x29c7a9[_0x17ca98]=_0x2b7853,We=(_0x38eeed,_0x3313d7,_0x434e0e,_0x20d09e)=>{for(var _0x504ce3=_0x20d09e>0x1?void 0x0:_0x20d09e?ke(_0x3313d7,_0x434e0e):_0x3313d7,_0x587640=_0x38eeed['length']-0x1,_0x3c295e;_0x587640>=0x0;_0x587640--)(_0x3c295e=_0x38eeed[_0x587640])&&(_0x504ce3=_0x3c295e(_0x504ce3)||_0x504ce3);return _0x504ce3;},F=(_0x35ea2f,_0x237888)=>(_0x5e6ad6,_0x39b551)=>_0x237888(_0x5e6ad6,_0x39b551,_0x35ea2f),B=(_0x571cb2,_0x2a52ed,_0x12a363)=>Ge(_0x571cb2,typeof _0x2a52ed!=_0x222f49(0x181)?_0x2a52ed+'':_0x2a52ed,_0x12a363);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4a80e3{constructor(_0x1633e6=T,_0x7597c4,_0xa2ad7){const _0xda0e29=_0x222f49;super(),this[_0xda0e29(0x1d4)]=_0x1633e6,this[_0xda0e29(0x1c4)]=_0x7597c4,this[_0xda0e29(0x147)]=_0xa2ad7;const {..._0x52fa98}=_0x20b0c5({},T,this[_0xda0e29(0x1d4)]);this[_0xda0e29(0x147)][_0xda0e29(0x179)](ye,_0x52fa98);}['onStarting'](){const _0x1c1aeb=_0x222f49;_0x3e3410(this[_0x1c1aeb(0x1c4)],_0x443e96([[L],[S],[I],[m]],this[_0x1c1aeb(0x1d4)]['override'])),_0xd36313(this[_0x1c1aeb(0x1c4)],[[I]]);}[_0x222f49(0x145)](){const _0x16c20a=_0x222f49;_0xd36313(this[_0x16c20a(0x1c4)],[[m]]);}};B(b,'type',_0x2f11e5[_0x222f49(0x1bd)]),B(b,'pluginName',Ye),b=We([_0xa62d83(_0x2aafaa),F(0x1,_0x1482cd(_0x4bf49b)),F(0x2,_0x2a5d23)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x444e(_0x5b00e4,_0x18af70){_0x5b00e4=_0x5b00e4-0x10d;const _0x38771f=_0x3877();let _0x444e21=_0x38771f[_0x5b00e4];return _0x444e21;}const _0x54c981=_0x444e;(function(_0xc59aa2,_0x39ffba){const _0x12ac38=_0x444e,_0x4eb295=_0xc59aa2();while(!![]){try{const _0x416e9a=-parseInt(_0x12ac38(0x11c))/0x1*(-parseInt(_0x12ac38(0x10f))/0x2)+parseInt(_0x12ac38(0x117))/0x3+-parseInt(_0x12ac38(0x123))/0x4*(-parseInt(_0x12ac38(0x116))/0x5)+-parseInt(_0x12ac38(0x11f))/0x6+parseInt(_0x12ac38(0x124))/0x7+-parseInt(_0x12ac38(0x128))/0x8+parseInt(_0x12ac38(0x118))/0x9*(-parseInt(_0x12ac38(0x11e))/0xa);if(_0x416e9a===_0x39ffba)break;else _0x4eb295['push'](_0x4eb295['shift']());}catch(_0x4e0303){_0x4eb295['push'](_0x4eb295['shift']());}}}(_0x3877,0x56e21));function _0x3877(){const _0x1b3c58=['_initialize','getLiveShareStatus','1212010hNFTqt','1303797LFTsoo','23445SGGvjk','symbol','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','1uekMXw','defineProperty','4790JoZRzM','533358KHFpVA','_injector','IDLE','getStatus','8IEaTEO','4153870pwfEVI','extend','stopFollowing','startPresenting','3821096xiQrBQ','get','LiveShareStatusEnum','getLiveShareCoordinatorSync','1314770jPHxmf','UNIVER_SHEET','getCurrentUnitOfType','getUnitId','No\x20active\x20workbook\x20found.'];_0x3877=function(){return _0x1b3c58;};return _0x3877();}var l=Object[_0x54c981(0x11d)],w=(_0x195cd0,_0x24ec47,_0x2b8886)=>_0x24ec47 in _0x195cd0?l(_0x195cd0,_0x24ec47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b8886}):_0x195cd0[_0x24ec47]=_0x2b8886,v=(_0x4c90aa,_0x316d83,_0x3b5ab5)=>w(_0x4c90aa,typeof _0x316d83!=_0x54c981(0x119)?_0x316d83+'':_0x316d83,_0x3b5ab5);import{LiveShareController as _0x46bc90,LiveShareStatus as _0x2c9730}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x309931,UniverInstanceType as _0x3d59ca}from'@univerjs/core';import{FUniver as _0x5bd508,FEnum as _0x4dc371}from'@univerjs/core/facade';class g extends _0x5bd508{constructor(){const _0x3118fe=_0x54c981;super(...arguments),v(this,_0x3118fe(0x11b));}[_0x54c981(0x114)](_0x260b8a){const _0x3528fa=_0x54c981;this[_0x3528fa(0x11b)]=_0x260b8a[_0x3528fa(0x129)](_0x46bc90);}[_0x54c981(0x115)](){const _0x5011c1=_0x54c981;var _0x226e95;const _0x2bb8df=this['_injector'][_0x5011c1(0x129)](_0x309931)['getCurrentUnitOfType'](_0x3d59ca['UNIVER_SHEET']);if(!_0x2bb8df)throw new Error('No\x20active\x20workbook\x20found.');const _0x8281dc=_0x2bb8df[_0x5011c1(0x112)](),_0x2d1544=this['_liveShareController'][_0x5011c1(0x10e)](_0x8281dc);return(_0x226e95=_0x2d1544==null?void 0x0:_0x2d1544[_0x5011c1(0x122)]())!=null?_0x226e95:_0x2c9730[_0x5011c1(0x121)];}['startFollowing'](){const _0xc89cbf=_0x54c981,_0x4a0e4f=this[_0xc89cbf(0x120)][_0xc89cbf(0x129)](_0x309931)[_0xc89cbf(0x111)](_0x3d59ca[_0xc89cbf(0x110)]);if(!_0x4a0e4f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4dc35d=_0x4a0e4f[_0xc89cbf(0x112)](),_0x6e6444=this[_0xc89cbf(0x11b)]['getLiveShareCoordinatorSync'](_0x4dc35d);if(!_0x6e6444)throw new Error(_0xc89cbf(0x11a));_0x6e6444['startFollowing']();}[_0x54c981(0x126)](){const _0x36fdcc=_0x54c981,_0xb8bd34=this[_0x36fdcc(0x120)][_0x36fdcc(0x129)](_0x309931)[_0x36fdcc(0x111)](_0x3d59ca[_0x36fdcc(0x110)]);if(!_0xb8bd34)throw new Error(_0x36fdcc(0x113));const _0x4843b4=_0xb8bd34[_0x36fdcc(0x112)](),_0x3425aa=this[_0x36fdcc(0x11b)]['getLiveShareCoordinatorSync'](_0x4843b4);if(!_0x3425aa)throw new Error(_0x36fdcc(0x11a));_0x3425aa['stopFollowing']();}[_0x54c981(0x127)](){const _0x28a4d3=_0x54c981,_0x2fd82d=this[_0x28a4d3(0x120)][_0x28a4d3(0x129)](_0x309931)[_0x28a4d3(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x2fd82d)throw new Error(_0x28a4d3(0x113));const _0x514bcb=_0x2fd82d[_0x28a4d3(0x112)](),_0x40a050=this['_liveShareController'][_0x28a4d3(0x10e)](_0x514bcb);if(!_0x40a050)throw new Error(_0x28a4d3(0x11a));_0x40a050['tryStartPresenting']();}['stopPresenting'](){const _0x2f236d=_0x54c981,_0x49557a=this[_0x2f236d(0x120)][_0x2f236d(0x129)](_0x309931)[_0x2f236d(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x49557a)throw new Error(_0x2f236d(0x113));const _0x307c58=_0x49557a['getUnitId'](),_0x1b93a2=this[_0x2f236d(0x11b)][_0x2f236d(0x10e)](_0x307c58);if(!_0x1b93a2)throw new Error(_0x2f236d(0x11a));_0x1b93a2['stopPresenting']();}}_0x5bd508[_0x54c981(0x125)](g);class f extends _0x4dc371{get[_0x54c981(0x10d)](){return _0x2c9730;}}_0x4dc371[_0x54c981(0x125)](f);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xeaafbf=_0xdc09;(function(_0x3c0e30,_0x38996b){const _0x4dd8d7=_0xdc09,_0x118b02=_0x3c0e30();while(!![]){try{const _0x1065c8=-parseInt(_0x4dd8d7(0x1c2))/0x1+-parseInt(_0x4dd8d7(0x1bd))/0x2+-parseInt(_0x4dd8d7(0x1bb))/0x3+-parseInt(_0x4dd8d7(0x193))/0x4+-parseInt(_0x4dd8d7(0x1a6))/0x5+parseInt(_0x4dd8d7(0x1da))/0x6*(-parseInt(_0x4dd8d7(0x1ef))/0x7)+parseInt(_0x4dd8d7(0x1c4))/0x8*(parseInt(_0x4dd8d7(0x1b8))/0x9);if(_0x1065c8===_0x38996b)break;else _0x118b02['push'](_0x118b02['shift']());}catch(_0xfd1525){_0x118b02['push'](_0x118b02['shift']());}}}(_0x8dab,0x873c4));var J=Object[_0xeaafbf(0x17b)],K=(_0xb0d402,_0x2be509,_0x26d1d6)=>_0x2be509 in _0xb0d402?J(_0xb0d402,_0x2be509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d1d6}):_0xb0d402[_0x2be509]=_0x26d1d6,u=(_0x34ebdc,_0x23eff7,_0x11f60a)=>K(_0x34ebdc,typeof _0x23eff7!=_0xeaafbf(0x180)?_0x23eff7+'':_0x23eff7,_0x11f60a);import{Disposable as _0x469b92,toDisposable as _0x1332f1,Inject as _0x3ffeae,Injector as _0x3e453a,RxDisposable as _0x53e8b0,UniverInstanceType as _0x59dbcd,DisposableCollection as _0x5d9210,CommandType as _0xef2d8d,IUniverInstanceService as _0xe4bcbd,IConfigService as _0x4c72af,ICommandService as _0x465a1b,DependentOn as _0x168090,Plugin as _0x5b0277,merge as _0x3e2e87,registerDependencies as _0x5b8f83,mergeOverrideWithDependencies as _0xed68fc,touchDependencies as _0x98ac8}from'@univerjs/core';import{useDependency as _0x5ec2d9,useObservable as _0x19a9c6,BuiltInUIPart as _0x4f4074,connectInjector as _0x445f22,IUIPartsService as _0x59077d}from'@univerjs/ui';import{jsx as _0x115494,jsxs as _0xe77572,Fragment as _0x8cbe17}from'react/jsx-runtime';import{Dropdown as _0x4dbc1e,clsx as _0x5af8db,Button as _0x39e985}from'@univerjs/design';import{useRef as _0x54096f,createElement as _0x14f037,forwardRef as _0x35b873,useState as _0x2b6511,useEffect as _0x51812f}from'react';import{CollaborationEvent as _0x262122,parseProtocolChangeset as _0x4ddb9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x20d5f8,SessionStatus as _0x5d00b9,UniverCollaborationClientPlugin as _0x2f3e48}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x541fcc,SetWorksheetActiveOperation as _0x23cd6c}from'@univerjs/sheets';import{BehaviorSubject as _0xe1c438,Subject as _0x444884}from'rxjs';import{takeUntil as _0x5b42f5,throttleTime as _0x475c1c}from'rxjs/operators';import{SetZoomRatioOperation as _0x19b70e,SetScrollOperation as _0x49dea0}from'@univerjs/sheets-ui';function k({ref:_0xbb029c,..._0x4f0b59}){const _0x13959b=_0xeaafbf,{icon:_0x492154,id:_0x58f041,className:_0x4663e8,extend:_0x568981,..._0x2e4434}=_0x4f0b59,_0x36dc72=('univerjs-icon\x20univerjs-icon-'+_0x58f041+'\x20'+(_0x4663e8||''))['trim'](),_0xb7e30c=_0x54096f('_'+Oe());return G(_0x492154,''+_0x58f041,{'defIds':_0x492154[_0x13959b(0x1dc)],'idSuffix':_0xb7e30c[_0x13959b(0x1aa)]},{'ref':_0xbb029c,'className':_0x36dc72,..._0x2e4434},_0x568981);}function _0xdc09(_0x2f06b1,_0x2018aa){_0x2f06b1=_0x2f06b1-0x14c;const _0x8dab6e=_0x8dab();let _0xdc0948=_0x8dab6e[_0x2f06b1];return _0xdc0948;}function G(_0x4aa988,_0x200841,_0x965d06,_0x352386,_0x4ba864){const _0x101f96=_0xeaafbf;return _0x14f037(_0x4aa988['tag'],{'key':_0x200841,...be(_0x4aa988,_0x965d06,_0x4ba864),..._0x352386},(Ee(_0x4aa988,_0x965d06)[_0x101f96(0x1a1)]||[])[_0x101f96(0x194)]((_0xed229f,_0x372dc8)=>G(_0xed229f,_0x200841+'-'+_0x4aa988[_0x101f96(0x185)]+'-'+_0x372dc8,_0x965d06,void 0x0,_0x4ba864)));}function be(_0x260322,_0x193244,_0x1241b9){const _0x453856=_0xeaafbf,_0x1916a5={..._0x260322['attrs']};_0x1241b9!=null&&_0x1241b9[_0x453856(0x150)]&&_0x1916a5[_0x453856(0x198)]===_0x453856(0x150)&&(_0x1916a5[_0x453856(0x198)]=_0x1241b9[_0x453856(0x150)]),_0x260322['tag']===_0x453856(0x170)&&_0x1916a5['id']&&(_0x1916a5['id']=_0x1916a5['id']+_0x193244['idSuffix']),Object['entries'](_0x1916a5)[_0x453856(0x19b)](([_0x21237a,_0x2b6fb7])=>{const _0x28e993=_0x453856;_0x21237a===_0x28e993(0x170)&&typeof _0x2b6fb7==_0x28e993(0x1ae)&&(_0x1916a5[_0x21237a]=_0x2b6fb7[_0x28e993(0x173)](/url\(#(.*)\)/,'url(#$1'+_0x193244['idSuffix']+')'));});const {defIds:_0x2de0f6}=_0x193244;return!_0x2de0f6||_0x2de0f6[_0x453856(0x1eb)]===0x0||(_0x260322[_0x453856(0x185)]===_0x453856(0x16b)&&_0x1916a5['xlink:href']&&(_0x1916a5[_0x453856(0x1ba)]=_0x1916a5[_0x453856(0x1ba)]+_0x193244[_0x453856(0x181)]),Object[_0x453856(0x161)](_0x1916a5)['forEach'](([_0x381f4b,_0x4053b4])=>{const _0x28fae8=_0x453856;typeof _0x4053b4==_0x28fae8(0x1ae)&&(_0x1916a5[_0x381f4b]=_0x4053b4[_0x28fae8(0x173)](/url\(#(.*)\)/,_0x28fae8(0x165)+_0x193244[_0x28fae8(0x181)]+')'));})),_0x1916a5;}function Ee(_0x29154a,_0x42a8e8){const _0x41952d=_0xeaafbf;var _0x22b5e6;const {defIds:_0x18175e}=_0x42a8e8;return!_0x18175e||_0x18175e['length']===0x0?_0x29154a:_0x29154a['tag']==='defs'&&((_0x22b5e6=_0x29154a[_0x41952d(0x1a1)])!=null&&_0x22b5e6[_0x41952d(0x1eb)])?{..._0x29154a,'children':_0x29154a[_0x41952d(0x1a1)][_0x41952d(0x194)](_0x5ecaa4=>typeof _0x5ecaa4[_0x41952d(0x1f6)]['id']=='string'&&_0x18175e&&_0x18175e[_0x41952d(0x156)](_0x5ecaa4[_0x41952d(0x1f6)]['id'])?{..._0x5ecaa4,'attrs':{..._0x5ecaa4['attrs'],'id':_0x5ecaa4[_0x41952d(0x1f6)]['id']+_0x42a8e8[_0x41952d(0x181)]}}:_0x5ecaa4)}:_0x29154a;}function Oe(){const _0x429dad=_0xeaafbf;return Math[_0x429dad(0x154)]()['toString'](0x24)['substring'](0x2,0x8);}k['displayName']=_0xeaafbf(0x1b0);const we={'tag':_0xeaafbf(0x1d7),'attrs':{'xmlns':_0xeaafbf(0x1b4),'fill':_0xeaafbf(0x1ca),'viewBox':_0xeaafbf(0x1e8),'width':'1em','height':_0xeaafbf(0x1c5)},'children':[{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':'currentColor','d':_0xeaafbf(0x1b9)}},{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':_0xeaafbf(0x18e),'d':_0xeaafbf(0x199),'fillRule':_0xeaafbf(0x1ec),'clipRule':_0xeaafbf(0x1ec)}}]},W=_0x35b873(function(_0x2586dc,_0x410ffd){const _0x34b4cb=_0xeaafbf;return _0x14f037(k,Object['assign']({},_0x2586dc,{'id':_0x34b4cb(0x151),'ref':_0x410ffd,'icon':we}));});W[_0xeaafbf(0x1c3)]=_0xeaafbf(0x17e);class L extends _0x469b92{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xeaafbf(0x1b3)](_0x3458e5){const _0x47b0b9=_0xeaafbf;return this[_0x47b0b9(0x1cd)][_0x47b0b9(0x19f)](_0x3458e5),_0x1332f1(()=>this[_0x47b0b9(0x1cd)]['delete'](_0x3458e5));}[_0xeaafbf(0x1a9)](_0x5352e4){const _0x83f52b=_0xeaafbf;return this[_0x83f52b(0x1e3)][_0x83f52b(0x19f)](_0x5352e4),_0x1332f1(()=>this[_0x83f52b(0x1e3)][_0x83f52b(0x1b6)](_0x5352e4));}[_0xeaafbf(0x155)](_0x4217a3){const _0x49c1ce=_0xeaafbf;return this[_0x49c1ce(0x1cd)]['has'](_0x4217a3);}[_0xeaafbf(0x17a)](_0x458ab1){const _0x1eefcb=_0xeaafbf;return Array[_0x1eefcb(0x174)](this['_reporters'])[_0x1eefcb(0x194)](_0x494c12=>_0x494c12(_0x458ab1));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0xeac1a2,_0x550436,_0x5bf40,_0x928e9b)=>{const _0x3898e2=_0xeaafbf;for(var _0x336691=_0x928e9b>0x1?void 0x0:_0x928e9b?Ne(_0x550436,_0x5bf40):_0x550436,_0xf083b7=_0xeac1a2[_0x3898e2(0x1eb)]-0x1,_0x27c0d7;_0xf083b7>=0x0;_0xf083b7--)(_0x27c0d7=_0xeac1a2[_0xf083b7])&&(_0x336691=_0x27c0d7(_0x336691)||_0x336691);return _0x336691;},_=(_0x2f0c3c,_0x240e29)=>(_0x548fd3,_0x1cb362)=>_0x240e29(_0x548fd3,_0x1cb362,_0x2f0c3c);let S=class extends _0x53e8b0{constructor(_0x177280,_0x178e3a,_0x4786a1){const _0x193f23=_0xeaafbf;super(),u(this,_0x193f23(0x1d3),new Map()),(this['_univerInstanceService']=_0x177280,this[_0x193f23(0x187)]=_0x178e3a,this[_0x193f23(0x1a4)]=_0x4786a1,this['_init']());}async[_0xeaafbf(0x16e)](_0x1ee66d){const _0x3e853a=_0xeaafbf;return this['_entities']['has'](_0x1ee66d)||await this[_0x3e853a(0x1de)](_0x1ee66d),this['_entities'][_0x3e853a(0x175)](_0x1ee66d);}['getLiveShareCoordinatorSync'](_0x2eaf9e){const _0x2a439b=_0xeaafbf;var _0x566f31;return(_0x566f31=this[_0x2a439b(0x1d3)]['get'](_0x2eaf9e))!=null?_0x566f31:null;}[_0xeaafbf(0x195)](){const _0x138478=_0xeaafbf;this[_0x138478(0x191)]['getTypeOfUnitAdded$'](_0x59dbcd['UNIVER_SHEET'])[_0x138478(0x1e2)](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](async _0x4e3e4a=>{const _0x1c95df=_0x138478,_0x35a83f=_0x4e3e4a['getUnitId']();this[_0x1c95df(0x1d3)]['has'](_0x35a83f)||this['_startLiveShareCoordinator'](_0x35a83f);}),this['_univerInstanceService'][_0x138478(0x14d)](_0x59dbcd[_0x138478(0x1c9)])['pipe'](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](_0x34b40d=>{const _0x387cdc=_0x138478,_0x2c7b46=_0x34b40d[_0x387cdc(0x1e7)](),_0x187c8c=this[_0x387cdc(0x1d3)]['get'](_0x2c7b46);_0x187c8c==null||_0x187c8c[_0x387cdc(0x1ab)]();});}async[_0xeaafbf(0x1de)](_0x2fd9b0){const _0x105aa4=_0xeaafbf,_0x5ea380=await this[_0x105aa4(0x1a4)][_0x105aa4(0x1e6)](_0x2fd9b0),_0x5c0e61=this['_injector'][_0x105aa4(0x19a)](N,_0x2fd9b0,_0x5ea380);return _0x5c0e61[_0x105aa4(0x1f2)](),this['_entities'][_0x105aa4(0x168)](_0x2fd9b0,_0x5c0e61),_0x5c0e61;}};S=Y([_(0x0,_0xe4bcbd),_(0x1,_0x3ffeae(_0x3e453a)),_(0x2,_0x3ffeae(_0x20d5f8))],S);var c=(_0x1b0196=>(_0x1b0196['OFFLINE']=_0xeaafbf(0x1b1),_0x1b0196[_0xeaafbf(0x1ea)]='idle',_0x1b0196[_0xeaafbf(0x1a7)]=_0xeaafbf(0x14f),_0x1b0196[_0xeaafbf(0x18c)]=_0xeaafbf(0x1c1),_0x1b0196[_0xeaafbf(0x1ac)]=_0xeaafbf(0x1e0),_0x1b0196))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x53e8b0{constructor(_0x3402d4,_0x10c663,_0x35e49b,_0x4cee76,_0x2ba87e){const _0x2d9361=_0xeaafbf;super(),u(this,_0x2d9361(0x1e4),new _0xe1c438('idle')),u(this,_0x2d9361(0x164),this['_status$'][_0x2d9361(0x190)]()),u(this,_0x2d9361(0x195),!0x1),u(this,_0x2d9361(0x1c7),null),u(this,_0x2d9361(0x179),null),(this['_unitID']=_0x3402d4,this['_collabSession']=_0x10c663,this['_configService']=_0x35e49b,this[_0x2d9361(0x1af)]=_0x4cee76,this[_0x2d9361(0x157)]=_0x2ba87e);}get[_0xeaafbf(0x186)](){const _0xd7cc41=_0xeaafbf;return this[_0xd7cc41(0x1e4)][_0xd7cc41(0x177)]();}[_0xeaafbf(0x1ab)](){const _0x34dd90=_0xeaafbf;var _0x37718f;(_0x37718f=this[_0x34dd90(0x1c7)])==null||_0x37718f['dispose'](),this[_0x34dd90(0x1e4)][_0x34dd90(0x16c)](_0x34dd90(0x1b5)),this['_status$']['complete']();}[_0xeaafbf(0x1a0)](){return this['_status'];}[_0xeaafbf(0x1f2)](){const _0x2fe4c5=_0xeaafbf;this['_init']||(this[_0x2fe4c5(0x195)]=!0x0,this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x1b2)]['pipe'](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))['subscribe'](_0x1f2199=>{const _0x47b8dd=_0x2fe4c5;switch(_0x1f2199){case _0x5d00b9[_0x47b8dd(0x1d8)]:this[_0x47b8dd(0x15a)]();break;case _0x5d00b9['ONLINE']:this['_handleOnline']();break;}}),this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x158)][_0x2fe4c5(0x1e2)](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))[_0x2fe4c5(0x1a2)](_0xb5e492=>{const _0x3ee01f=_0x2fe4c5,{eventID:_0x3962c5}=_0xb5e492;switch(_0x3962c5){case _0x262122[_0x3ee01f(0x1bc)]:this[_0x3ee01f(0x183)](_0xb5e492);break;case _0x262122['LIVESHARE_OPERATION']:this[_0x3ee01f(0x160)](_0xb5e492);break;case _0x262122[_0x3ee01f(0x1be)]:this[_0x3ee01f(0x1d5)]();break;case _0x262122[_0x3ee01f(0x169)]:this[_0x3ee01f(0x17d)](_0xb5e492);break;}}));}[_0xeaafbf(0x152)](){const _0x37ce68=_0xeaafbf;this[_0x37ce68(0x1d9)]['send']({'eventID':_0x262122[_0x37ce68(0x159)],'data':{'unitID':this[_0x37ce68(0x1f4)],'userID':this[_0x37ce68(0x1d9)][_0x37ce68(0x1d1)]()}},this[_0x37ce68(0x1f4)]);}[_0xeaafbf(0x1ce)](){const _0x119916=_0xeaafbf;this['_status']===_0x119916(0x1e0)&&(this['_status$'][_0x119916(0x16c)](_0x119916(0x1b5)),this[_0x119916(0x1d9)]['send']({'eventID':_0x262122[_0x119916(0x1be)],'data':{'unitID':this['_unitID']}},this[_0x119916(0x1f4)]));}['startFollowing'](){const _0x390d27=_0xeaafbf;this[_0x390d27(0x186)]===_0x390d27(0x1c1)&&(this[_0x390d27(0x1e4)][_0x390d27(0x16c)](_0x390d27(0x14f)),this['_startFollowing']());}[_0xeaafbf(0x178)](){const _0x5e21b5=_0xeaafbf;this['_status']===_0x5e21b5(0x14f)&&this[_0x5e21b5(0x1a3)]();}[_0xeaafbf(0x183)](_0x241bf0){const _0xb5da06=_0xeaafbf,{presenter:_0x1b5428}=_0x241bf0[_0xb5da06(0x19e)],_0x1b4d9d=this[_0xb5da06(0x1d9)][_0xb5da06(0x1d1)]();this[_0xb5da06(0x179)]=_0x1b5428,_0x1b5428===_0x1b4d9d?(this[_0xb5da06(0x1a3)](),this[_0xb5da06(0x16f)]()):this[_0xb5da06(0x186)]!=='not-following'&&(this['_stopPresenting'](),this[_0xb5da06(0x1c0)]());}[_0xeaafbf(0x176)](){const _0x5d7f54=_0xeaafbf,_0x39fe61={'eventID':_0x262122['LIVESHARE_FETCH_OPERATIONS']};this[_0x5d7f54(0x1d9)][_0x5d7f54(0x1a8)](_0x39fe61,this['_unitID']);}[_0xeaafbf(0x1d5)](){const _0x37124c=_0xeaafbf;this[_0x37124c(0x179)]=null,this[_0x37124c(0x186)]!=='presenting'&&this[_0x37124c(0x1f0)]();}[_0xeaafbf(0x17d)](_0x25ae0f){const _0x1665f8=_0xeaafbf;if(this['_status']===_0x1665f8(0x14f)&&this[_0x1665f8(0x179)]===_0x25ae0f['data']['memberID']){const _0x57189f=_0x4ddb9c(_0x25ae0f['data'])['mutations']['reverse']()[_0x1665f8(0x18b)](_0x59434=>_0x59434['id']===_0x541fcc['id']);if(_0x57189f){const _0x31bf58=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x19c)],_0x371dbd=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x1d2)]['id'];setTimeout(()=>{const _0x3ca709=_0x1665f8;this[_0x3ca709(0x157)]['executeCommand'](_0x23cd6c['id'],{'unitId':_0x31bf58,'subUnitId':_0x371dbd},{'fromCollab':!0x0});});}}}[_0xeaafbf(0x16f)](){const _0x2f3047=_0xeaafbf;this['_status$'][_0x2f3047(0x16c)]('presenting');const _0xe52312=new Map(),_0x57b066=this['_commandDisposable']=new _0x5d9210();_0x57b066[_0x2f3047(0x19f)](_0x1332f1(()=>{const _0x55701d=_0x2f3047;_0xe52312['forEach'](_0x4cad1d=>_0x4cad1d[_0x55701d(0x1b7)]()),_0xe52312[_0x55701d(0x14e)]();})),_0x57b066['add'](this['_commandService']['onCommandExecuted'](_0x1db345=>{const _0x448ce9=_0x2f3047;var _0x515726;if(_0x1db345[_0x448ce9(0x1df)]!==_0xef2d8d['OPERATION']||!this[_0x448ce9(0x1af)][_0x448ce9(0x155)](_0x1db345['id']))return;const {id:_0x3788fb}=_0x1db345;let _0x40e6d9;_0xe52312[_0x448ce9(0x184)](_0x3788fb)?_0x40e6d9=_0xe52312[_0x448ce9(0x175)](_0x3788fb):(_0x40e6d9=new _0x444884(),_0xe52312[_0x448ce9(0x168)](_0x3788fb,_0x40e6d9),_0x40e6d9[_0x448ce9(0x1e2)](_0x475c1c((_0x515726=this[_0x448ce9(0x1c8)][_0x448ce9(0x1a5)](Ce))!=null?_0x515726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x448ce9(0x1a2)](_0x12703d=>{const _0x160c8c=_0x448ce9;this['_collabSession'][_0x160c8c(0x1a8)]({'eventID':_0x262122[_0x160c8c(0x18d)],'data':{'unitID':this[_0x160c8c(0x1f4)],'operations':{[_0x12703d['id']]:{'id':_0x12703d['id'],'params':JSON[_0x160c8c(0x162)](_0x12703d[_0x160c8c(0x17f)])}}}},this[_0x160c8c(0x1f4)]);})),_0x40e6d9['next'](_0x1db345);})),this[_0x2f3047(0x1af)][_0x2f3047(0x17a)](this[_0x2f3047(0x1f4)])[_0x2f3047(0x19b)](_0x59d3d3=>this['_collabSession'][_0x2f3047(0x1a8)]({'eventID':_0x262122[_0x2f3047(0x18d)],'data':{'unitID':this[_0x2f3047(0x1f4)],'operations':{[_0x59d3d3['id']]:{'id':_0x59d3d3['id'],'params':JSON['stringify'](_0x59d3d3[_0x2f3047(0x17f)])}}}},this[_0x2f3047(0x1f4)]));}[_0xeaafbf(0x1f5)](){const _0x5ce73b=_0xeaafbf;var _0x1b4eb0;this[_0x5ce73b(0x1e4)][_0x5ce73b(0x16c)](_0x5ce73b(0x1b5)),(_0x1b4eb0=this[_0x5ce73b(0x1c7)])==null||_0x1b4eb0[_0x5ce73b(0x1ab)](),this['_commandDisposable']=null;}[_0xeaafbf(0x1c0)](){const _0x5bdf5a=_0xeaafbf;var _0x52daa3;(_0x52daa3=this[_0x5bdf5a(0x1c7)])==null||_0x52daa3[_0x5bdf5a(0x1ab)](),this[_0x5bdf5a(0x1e4)][_0x5bdf5a(0x16c)]('following');}['_beIdle'](){const _0xfb8a17=_0xeaafbf;var _0x24eedc;this['_status$'][_0xfb8a17(0x16c)](_0xfb8a17(0x1b5)),(_0x24eedc=this[_0xfb8a17(0x1c7)])==null||_0x24eedc[_0xfb8a17(0x1ab)](),this[_0xfb8a17(0x1c7)]=null;}['_stopFollowing'](){const _0x9cf165=_0xeaafbf;var _0x1c2615;this[_0x9cf165(0x1e4)]['next']('not-following'),(_0x1c2615=this[_0x9cf165(0x1c7)])==null||_0x1c2615[_0x9cf165(0x1ab)]();}['_handleOperation'](_0x56bd0b){const _0x5f1201=_0xeaafbf;if(['presenting','not-following',_0x5f1201(0x1b1)][_0x5f1201(0x156)](this[_0x5f1201(0x186)])||!_0x56bd0b['data']['presenter']||_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x15f)]===this[_0x5f1201(0x1d9)]['getMemberID']())return;this['_status']===_0x5f1201(0x1b5)&&this['_startFollowing']();const _0x185482=_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x1d0)];Object[_0x5f1201(0x197)](_0x185482)[_0x5f1201(0x19b)](_0x2176bf=>{const _0x3a16ab=_0x5f1201;this[_0x3a16ab(0x157)][_0x3a16ab(0x1cb)](_0x2176bf['id'],_0x2176bf[_0x3a16ab(0x17f)]?JSON['parse'](_0x2176bf[_0x3a16ab(0x17f)]):null,{'fromCollab':!0x0});});}[_0xeaafbf(0x15a)](){const _0x41b0cf=_0xeaafbf;var _0x4655eb;this[_0x41b0cf(0x1e4)][_0x41b0cf(0x16c)](_0x41b0cf(0x1b1)),(_0x4655eb=this[_0x41b0cf(0x1c7)])==null||_0x4655eb[_0x41b0cf(0x1ab)]();}[_0xeaafbf(0x163)](){const _0x54e03c=_0xeaafbf;this[_0x54e03c(0x1e4)][_0x54e03c(0x16c)]('idle'),this['_fetchOperations']();}};N=Y([_(0x2,_0x4c72af),_(0x3,_0x3ffeae(L)),_(0x4,_0x465a1b)],N);function Le(){const _0x3e3a6b=_0xeaafbf,_0x2fe6ce=_0x5ec2d9(S),_0x14569b=_0x5ec2d9(_0xe4bcbd),_0x4ed2cf=_0x19a9c6(()=>_0x14569b[_0x3e3a6b(0x188)](_0x59dbcd['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x433c77,_0x146c40]=_0x2b6511(null),[_0x218c0a,_0x4c7962]=_0x2b6511(c[_0x3e3a6b(0x1ea)]),_0x16c7cb=_0x54096f(null);return _0x51812f(()=>(_0x4ed2cf&&_0x2fe6ce['getLiveShareCoordinator'](_0x4ed2cf[_0x3e3a6b(0x1e7)]())[_0x3e3a6b(0x18f)](_0x151884=>{const _0x2d8ee4=_0x3e3a6b;_0x146c40(_0x151884),_0x16c7cb['current']=_0x151884['status$'][_0x2d8ee4(0x1a2)](_0x4523a1=>{_0x4c7962(_0x4523a1);});}),()=>{const _0x2ed7c0=_0x3e3a6b;var _0x41decb;(_0x41decb=_0x16c7cb[_0x2ed7c0(0x1aa)])==null||_0x41decb[_0x2ed7c0(0x166)](),_0x16c7cb['current']=null;}),[_0x4ed2cf,_0x2fe6ce]),_0x433c77?_0x115494(_0x4dbc1e,{'align':_0x3e3a6b(0x19d),'disabled':_0x218c0a===c['OFFLINE'],'className':_0x3e3a6b(0x1cc),'overlay':_0x115494(Re,{'status':_0x218c0a,'coordinator':_0x433c77}),'children':_0x115494(_0x3e3a6b(0x192),{'className':_0x5af8db(_0x3e3a6b(0x15e),{'univer-cursor-not-allowed':_0x218c0a===c[_0x3e3a6b(0x1d8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x218c0a!==c['OFFLINE']}),'type':'button','children':_0x115494(W,{'className':_0x3e3a6b(0x189)})})}):null;}function Re(_0x5a29e0){const _0xa34a80=_0xeaafbf,{status:_0x191d5c,coordinator:_0x35fec2}=_0x5a29e0;switch(_0x191d5c){case c[_0xa34a80(0x1ea)]:return _0x115494($e,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1a7)]:return _0x115494(xe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x18c)]:return _0x115494(Pe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1d8)]:return _0x115494(Te,{});case c[_0xa34a80(0x1ac)]:return _0x115494(Ae,{'coordinator':_0x35fec2});default:return null;}}function $e(_0xed49df){const _0x446b3f=_0xeaafbf,{coordinator:_0x3d93d7}=_0xed49df;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x446b3f(0x14c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x446b3f(0x16a)}),_0x115494(_0x39e985,{'onClick':()=>_0x3d93d7[_0x446b3f(0x152)](),'children':_0x446b3f(0x18a)})]});}function xe(_0x567050){const _0x2b63c2=_0xeaafbf,{coordinator:_0x4eedf0}=_0x567050;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x2b63c2(0x14c),{'className':_0x2b63c2(0x1ee),'children':_0x2b63c2(0x1e1)}),_0x115494(_0x39e985,{'onClick':()=>_0x4eedf0[_0x2b63c2(0x178)](),'children':_0x2b63c2(0x1f1)})]});}function Pe(_0x24ca1c){const _0x42fc4e=_0xeaafbf,{coordinator:_0x140011}=_0x24ca1c;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x42fc4e(0x14c),{'className':_0x42fc4e(0x1ee),'children':_0x42fc4e(0x1db)}),_0x115494(_0x39e985,{'variant':_0x42fc4e(0x153),'onClick':()=>_0x140011[_0x42fc4e(0x1ad)](),'children':_0x42fc4e(0x1bf)})]});}function Ae(_0x57ba39){const _0x1d5485=_0xeaafbf,{coordinator:_0x2a6bc1}=_0x57ba39;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x1d5485(0x14c),{'className':_0x1d5485(0x1ee),'children':_0x1d5485(0x171)}),_0x115494(_0x39e985,{'variant':'default','onClick':()=>_0x2a6bc1['stopPresenting'](),'children':_0x1d5485(0x15c)})]});}function Te(){const _0xed729e=_0xeaafbf;return _0x115494(_0x8cbe17,{'children':_0xed729e(0x1cf)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1070ca,_0x2ea655,_0x29f5f4,_0x2d21d1)=>{for(var _0x338152=_0x2d21d1>0x1?void 0x0:_0x2d21d1?Fe(_0x2ea655,_0x29f5f4):_0x2ea655,_0x10d774=_0x1070ca['length']-0x1,_0x4413f7;_0x10d774>=0x0;_0x10d774--)(_0x4413f7=_0x1070ca[_0x10d774])&&(_0x338152=_0x4413f7(_0x338152)||_0x338152);return _0x338152;},A=(_0x4b46c4,_0x2a4cd2)=>(_0x343d3d,_0x3a7621)=>_0x2a4cd2(_0x343d3d,_0x3a7621,_0x4b46c4);let m=class extends _0x469b92{constructor(_0x443b42,_0xceac33){const _0x14068c=_0xeaafbf;super(),this[_0x14068c(0x187)]=_0x443b42,this[_0x14068c(0x16d)]=_0xceac33,this[_0x14068c(0x1e9)]();}[_0xeaafbf(0x1e9)](){const _0x23f52b=_0xeaafbf;this[_0x23f52b(0x15d)](this[_0x23f52b(0x16d)][_0x23f52b(0x1e5)](_0x4f4074[_0x23f52b(0x15b)],()=>_0x445f22(Le,this[_0x23f52b(0x187)])));}};m=He([A(0x0,_0x3ffeae(_0x3e453a)),A(0x1,_0x59077d)],m);const ye='live-share.config',T={};var Ue=Object[_0xeaafbf(0x1d4)],Ve=(_0x5e3edc,_0x2be997,_0x290c48,_0x142563)=>{const _0x106a35=_0xeaafbf;for(var _0xb2325c=_0x142563>0x1?void 0x0:_0x142563?Ue(_0x2be997,_0x290c48):_0x2be997,_0x402af1=_0x5e3edc[_0x106a35(0x1eb)]-0x1,_0x20c30a;_0x402af1>=0x0;_0x402af1--)(_0x20c30a=_0x5e3edc[_0x402af1])&&(_0xb2325c=_0x20c30a(_0xb2325c)||_0xb2325c);return _0xb2325c;},je=(_0x354443,_0x347a1)=>(_0x3e23cb,_0x363b5b)=>_0x347a1(_0x3e23cb,_0x363b5b,_0x354443);let I=class extends _0x469b92{constructor(_0x3374f9){const _0x2d8c35=_0xeaafbf;super(),this[_0x2d8c35(0x1af)]=_0x3374f9,this['_init']();}['_init'](){[_0x19b70e['id'],_0x49dea0['id'],_0x23cd6c['id']]['forEach'](_0x4892fc=>{const _0x14136e=_0xdc09;this[_0x14136e(0x15d)](this[_0x14136e(0x1af)][_0x14136e(0x1b3)](_0x4892fc));});}};I=Ve([je(0x0,_0x3ffeae(L))],I);var Me=Object[_0xeaafbf(0x17b)],ke=Object[_0xeaafbf(0x1d4)],Ge=(_0x2d9aab,_0x2ae8c1,_0x278e7a)=>_0x2ae8c1 in _0x2d9aab?Me(_0x2d9aab,_0x2ae8c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x278e7a}):_0x2d9aab[_0x2ae8c1]=_0x278e7a,We=(_0x2d8af8,_0x59446d,_0x1620ca,_0x40fd14)=>{for(var _0x3a2f05=_0x40fd14>0x1?void 0x0:_0x40fd14?ke(_0x59446d,_0x1620ca):_0x59446d,_0x7c7518=_0x2d8af8['length']-0x1,_0x256f51;_0x7c7518>=0x0;_0x7c7518--)(_0x256f51=_0x2d8af8[_0x7c7518])&&(_0x3a2f05=_0x256f51(_0x3a2f05)||_0x3a2f05);return _0x3a2f05;},F=(_0x28e6b1,_0x24f0b7)=>(_0x852165,_0x264c14)=>_0x24f0b7(_0x852165,_0x264c14,_0x28e6b1),B=(_0x384a9c,_0x1e8801,_0xba87a7)=>Ge(_0x384a9c,typeof _0x1e8801!=_0xeaafbf(0x180)?_0x1e8801+'':_0x1e8801,_0xba87a7);const Ye=_0xeaafbf(0x1ed);let b=class extends _0x5b0277{constructor(_0x4e333b=T,_0x39bb27,_0x4ed240){const _0x148cdf=_0xeaafbf;super(),this[_0x148cdf(0x196)]=_0x4e333b,this[_0x148cdf(0x187)]=_0x39bb27,this[_0x148cdf(0x1c8)]=_0x4ed240;const {..._0x177318}=_0x3e2e87({},T,this[_0x148cdf(0x196)]);this[_0x148cdf(0x1c8)][_0x148cdf(0x182)](ye,_0x177318);}[_0xeaafbf(0x17c)](){const _0x43f473=_0xeaafbf;_0x5b8f83(this[_0x43f473(0x187)],_0xed68fc([[L],[S],[I],[m]],this[_0x43f473(0x196)][_0x43f473(0x1f3)])),_0x98ac8(this[_0x43f473(0x187)],[[I]]);}[_0xeaafbf(0x1c6)](){_0x98ac8(this['_injector'],[[m]]);}};B(b,_0xeaafbf(0x1df),_0x59dbcd[_0xeaafbf(0x167)]),B(b,_0xeaafbf(0x172),Ye),b=We([_0x168090(_0x2f3e48),F(0x1,_0x3ffeae(_0x3e453a)),F(0x2,_0x4c72af)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x8dab(){const _0x21dcb4=['You\x27are\x20offline.','operations','getMemberID','sheet','_entities','getOwnPropertyDescriptor','_handleTerminate','path','svg','OFFLINE','_collabSession','66fjrokb','You\x27re\x20not\x20following\x20the\x20presenter','defIds','dispose$','_startLiveShareCoordinator','type','presenting','You\x27re\x20following\x20the\x20presenter','pipe','_reporters','_status$','registerComponent','requireSession','getUnitId','0\x200\x2017\x2017','_mountLiveShare','IDLE','length','evenodd','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','464394hcOILR','_beIdle','Stop\x20following','init','override','_unitID','_stopPresenting','attrs','div','getTypeOfUnitDisposed$','clear','following','colorChannel1','live-share-icon','tryStartPresenting','text','random','shouldShareOperation','includes','_commandService','event$','LIVESHARE_REQUEST_HOST','_handleOffline','HEADER_MENU','Stop\x20presenting','disposeWithMe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_handleOperation','entries','stringify','_handleOnline','status$','url(#$1','unsubscribe','UNIVER_UNKNOWN','set','NEW_CHANGESETS','Present\x20this\x20document','use','next','_uiPartsService','getLiveShareCoordinator','_startPresenting','mask','You\x27re\x20presenting\x20the\x20document','pluginName','replace','from','get','_fetchOperations','getValue','stopFollowing','_presenter','getInitialStates','defineProperty','onStarting','_handleNewChangeSets','LiveShareIcon','params','symbol','idSuffix','setConfig','_handleNewHost','has','tag','_status','_injector','getCurrentTypeOfUnit$','univer-size-4','Start','find','NOT_FOLLOWING','LIVESHARE_OPERATION','currentColor','then','asObservable','_univerInstanceService','button','617564galGbR','map','_init','_config','values','fill','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','createInstance','forEach','unitId','end','data','add','getStatus','children','subscribe','_stopFollowing','_collabSessionService','getConfig','1966715IjmesY','FOLLOWING','send','registerInitialStateReporter','current','dispose','PRESENTING','startFollowing','string','_liveShareService','UniverIcon','offline','sessionStatus$','registerSharedOperation','http://www.w3.org/2000/svg','idle','delete','complete','9GCYmqs','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','xlink:href','2282085tUNUdw','LIVESHARE_NEW_HOST','1947232rPoilJ','LIVESHARE_TERMINATE','Start\x20following','_startFollowing','not-following','274964UGWBGz','displayName','30725560CxnjQF','1em','onRendered','_commandDisposable','_configService','UNIVER_SHEET','none','executeCommand','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','_sharedOperations','stopPresenting'];_0x8dab=function(){return _0x21dcb4;};return _0x8dab();}
|
|
1
|
+
const _0x222f49=_0x32f8;(function(_0x132553,_0x276501){const _0x2ad240=_0x32f8,_0x5e7b8e=_0x132553();while(!![]){try{const _0x172e37=parseInt(_0x2ad240(0x172))/0x1*(-parseInt(_0x2ad240(0x1a9))/0x2)+parseInt(_0x2ad240(0x1cf))/0x3*(-parseInt(_0x2ad240(0x1e0))/0x4)+-parseInt(_0x2ad240(0x1a4))/0x5+parseInt(_0x2ad240(0x1bc))/0x6*(parseInt(_0x2ad240(0x173))/0x7)+parseInt(_0x2ad240(0x1b2))/0x8+parseInt(_0x2ad240(0x1c5))/0x9+parseInt(_0x2ad240(0x144))/0xa;if(_0x172e37===_0x276501)break;else _0x5e7b8e['push'](_0x5e7b8e['shift']());}catch(_0x27a76d){_0x5e7b8e['push'](_0x5e7b8e['shift']());}}}(_0x1f92,0x5bffa));var J=Object[_0x222f49(0x16d)],K=(_0x131552,_0x67239e,_0x4727fa)=>_0x67239e in _0x131552?J(_0x131552,_0x67239e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4727fa}):_0x131552[_0x67239e]=_0x4727fa,u=(_0x310b23,_0x336579,_0xabdb22)=>K(_0x310b23,typeof _0x336579!=_0x222f49(0x181)?_0x336579+'':_0x336579,_0xabdb22);import{Disposable as _0x1a37e7,toDisposable as _0x5b056a,Inject as _0x1482cd,Injector as _0x4bf49b,RxDisposable as _0x4d23fd,UniverInstanceType as _0x2f11e5,DisposableCollection as _0x4c5763,CommandType as _0xf0a1ab,IUniverInstanceService as _0x42d6a1,IConfigService as _0x2a5d23,ICommandService as _0x49fbbf,DependentOn as _0xa62d83,Plugin as _0x4a80e3,merge as _0x20b0c5,registerDependencies as _0x3e3410,mergeOverrideWithDependencies as _0x443e96,touchDependencies as _0xd36313}from'@univerjs/core';import{useDependency as _0xa82e97,useObservable as _0x169040,BuiltInUIPart as _0x504303,connectInjector as _0x71c5ea,IUIPartsService as _0x2eb621}from'@univerjs/ui';import{jsx as _0x147256,jsxs as _0x5b8e35,Fragment as _0x48919b}from'react/jsx-runtime';import{Dropdown as _0x4032fa,clsx as _0x21e998,Button as _0x343d1a}from'@univerjs/design';import{useRef as _0x2088ee,createElement as _0x35bf0f,forwardRef as _0x1296e9,useState as _0x263a7d,useEffect as _0x5b9c41}from'react';import{CollaborationEvent as _0x3fdbca,parseProtocolChangeset as _0xce55e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ae195,SessionStatus as _0x37958e,UniverCollaborationClientPlugin as _0x2aafaa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c0766,SetWorksheetActiveOperation as _0x18f1ca}from'@univerjs/sheets';import{BehaviorSubject as _0x1af331,Subject as _0x535ba9}from'rxjs';import{takeUntil as _0x4973f2,throttleTime as _0x5b740f}from'rxjs/operators';import{SetZoomRatioOperation as _0x314d69,SetScrollOperation as _0x39a4e2}from'@univerjs/sheets-ui';function k({ref:_0x462cb7,..._0x1c1dff}){const _0x316bad=_0x222f49,{icon:_0x1a8c9f,id:_0x276f33,className:_0x2e7a8e,extend:_0xa00f6a,..._0x2bd088}=_0x1c1dff,_0x50329d=(_0x316bad(0x15c)+_0x276f33+'\x20'+(_0x2e7a8e||''))['trim'](),_0x2261d9=_0x2088ee('_'+Oe());return G(_0x1a8c9f,''+_0x276f33,{'defIds':_0x1a8c9f[_0x316bad(0x1a3)],'idSuffix':_0x2261d9['current']},{'ref':_0x462cb7,'className':_0x50329d,..._0x2bd088},_0xa00f6a);}function G(_0x55cfd2,_0x4adbc0,_0x882380,_0x2bd600,_0x16f876){const _0xdbe3d4=_0x222f49;return _0x35bf0f(_0x55cfd2[_0xdbe3d4(0x1cd)],{'key':_0x4adbc0,...be(_0x55cfd2,_0x882380,_0x16f876),..._0x2bd600},(Ee(_0x55cfd2,_0x882380)[_0xdbe3d4(0x166)]||[])[_0xdbe3d4(0x1da)]((_0x14578b,_0x5b3422)=>G(_0x14578b,_0x4adbc0+'-'+_0x55cfd2[_0xdbe3d4(0x1cd)]+'-'+_0x5b3422,_0x882380,void 0x0,_0x16f876)));}function be(_0x5963be,_0x13093c,_0x4e1677){const _0x30a373=_0x222f49,_0x5e406e={..._0x5963be[_0x30a373(0x178)]};_0x4e1677!=null&&_0x4e1677['colorChannel1']&&_0x5e406e[_0x30a373(0x17b)]==='colorChannel1'&&(_0x5e406e['fill']=_0x4e1677[_0x30a373(0x19b)]),_0x5963be[_0x30a373(0x1cd)]===_0x30a373(0x16f)&&_0x5e406e['id']&&(_0x5e406e['id']=_0x5e406e['id']+_0x13093c[_0x30a373(0x1d3)]),Object['entries'](_0x5e406e)['forEach'](([_0x5e9f2d,_0x4e0b9d])=>{const _0x34b26c=_0x30a373;_0x5e9f2d==='mask'&&typeof _0x4e0b9d==_0x34b26c(0x1d8)&&(_0x5e406e[_0x5e9f2d]=_0x4e0b9d[_0x34b26c(0x14f)](/url\(#(.*)\)/,_0x34b26c(0x151)+_0x13093c[_0x34b26c(0x1d3)]+')'));});const {defIds:_0x59694a}=_0x13093c;return!_0x59694a||_0x59694a[_0x30a373(0x1b0)]===0x0||(_0x5963be[_0x30a373(0x1cd)]==='use'&&_0x5e406e[_0x30a373(0x1bf)]&&(_0x5e406e['xlink:href']=_0x5e406e[_0x30a373(0x1bf)]+_0x13093c[_0x30a373(0x1d3)]),Object[_0x30a373(0x154)](_0x5e406e)[_0x30a373(0x1cb)](([_0x3ea8c0,_0x39bb4c])=>{const _0x5d459c=_0x30a373;typeof _0x39bb4c==_0x5d459c(0x1d8)&&(_0x5e406e[_0x3ea8c0]=_0x39bb4c[_0x5d459c(0x14f)](/url\(#(.*)\)/,'url(#$1'+_0x13093c[_0x5d459c(0x1d3)]+')'));})),_0x5e406e;}function Ee(_0x5ea3b1,_0x2fc3f5){const _0xa9cbff=_0x222f49;var _0xc887a6;const {defIds:_0x40bb30}=_0x2fc3f5;return!_0x40bb30||_0x40bb30[_0xa9cbff(0x1b0)]===0x0?_0x5ea3b1:_0x5ea3b1['tag']===_0xa9cbff(0x1a7)&&((_0xc887a6=_0x5ea3b1['children'])!=null&&_0xc887a6[_0xa9cbff(0x1b0)])?{..._0x5ea3b1,'children':_0x5ea3b1[_0xa9cbff(0x166)][_0xa9cbff(0x1da)](_0x1f1739=>typeof _0x1f1739[_0xa9cbff(0x178)]['id']==_0xa9cbff(0x1d8)&&_0x40bb30&&_0x40bb30[_0xa9cbff(0x182)](_0x1f1739['attrs']['id'])?{..._0x1f1739,'attrs':{..._0x1f1739[_0xa9cbff(0x178)],'id':_0x1f1739[_0xa9cbff(0x178)]['id']+_0x2fc3f5[_0xa9cbff(0x1d3)]}}:_0x1f1739)}:_0x5ea3b1;}function Oe(){const _0x16f1c6=_0x222f49;return Math[_0x16f1c6(0x16c)]()[_0x16f1c6(0x1af)](0x24)['substring'](0x2,0x8);}k[_0x222f49(0x19c)]=_0x222f49(0x198);const we={'tag':_0x222f49(0x19e),'attrs':{'xmlns':_0x222f49(0x1c6),'fill':_0x222f49(0x1ad),'viewBox':_0x222f49(0x1b7),'width':_0x222f49(0x1df),'height':'1em'},'children':[{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1c9)}},{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1b4),'fillRule':_0x222f49(0x1ac),'clipRule':_0x222f49(0x1ac)}}]},W=_0x1296e9(function(_0x3ad358,_0x59951a){const _0x4e5bda=_0x222f49;return _0x35bf0f(k,Object[_0x4e5bda(0x1a0)]({},_0x3ad358,{'id':_0x4e5bda(0x175),'ref':_0x59951a,'icon':we}));});W[_0x222f49(0x19c)]=_0x222f49(0x189);class L extends _0x1a37e7{constructor(){const _0x9a5498=_0x222f49;super(...arguments),u(this,_0x9a5498(0x165),new Set()),u(this,_0x9a5498(0x19f),new Set());}['registerSharedOperation'](_0x51fa91){const _0x51633c=_0x222f49;return this[_0x51633c(0x165)][_0x51633c(0x17a)](_0x51fa91),_0x5b056a(()=>this['_sharedOperations'][_0x51633c(0x163)](_0x51fa91));}[_0x222f49(0x180)](_0x235cc7){const _0x35ad08=_0x222f49;return this[_0x35ad08(0x19f)][_0x35ad08(0x17a)](_0x235cc7),_0x5b056a(()=>this[_0x35ad08(0x19f)][_0x35ad08(0x163)](_0x235cc7));}[_0x222f49(0x162)](_0x5725b3){const _0x4a8736=_0x222f49;return this[_0x4a8736(0x165)][_0x4a8736(0x17c)](_0x5725b3);}[_0x222f49(0x1d2)](_0x50b96c){const _0x485c53=_0x222f49;return Array[_0x485c53(0x188)](this[_0x485c53(0x19f)])['map'](_0x4e2a8f=>_0x4e2a8f(_0x50b96c));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x38ad76,_0x26da5c,_0x8b1786,_0x1a136e)=>{const _0x19311d=_0x222f49;for(var _0x6b88e7=_0x1a136e>0x1?void 0x0:_0x1a136e?Ne(_0x26da5c,_0x8b1786):_0x26da5c,_0x2640d0=_0x38ad76[_0x19311d(0x1b0)]-0x1,_0x56c6e4;_0x2640d0>=0x0;_0x2640d0--)(_0x56c6e4=_0x38ad76[_0x2640d0])&&(_0x6b88e7=_0x56c6e4(_0x6b88e7)||_0x6b88e7);return _0x6b88e7;},_=(_0x26bd72,_0x2e0c36)=>(_0x661ef1,_0x1bae9c)=>_0x2e0c36(_0x661ef1,_0x1bae9c,_0x26bd72);let S=class extends _0x4d23fd{constructor(_0x43f0c5,_0x4c68c8,_0x5ba94c){const _0x4d0c7b=_0x222f49;super(),u(this,_0x4d0c7b(0x18a),new Map()),(this[_0x4d0c7b(0x158)]=_0x43f0c5,this[_0x4d0c7b(0x1c4)]=_0x4c68c8,this[_0x4d0c7b(0x185)]=_0x5ba94c,this[_0x4d0c7b(0x15f)]());}async[_0x222f49(0x1dd)](_0x1c2e6e){const _0x4e9dc9=_0x222f49;return this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x17c)](_0x1c2e6e)||await this['_startLiveShareCoordinator'](_0x1c2e6e),this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x1b1)](_0x1c2e6e);}['getLiveShareCoordinatorSync'](_0x2f9468){const _0x5271e5=_0x222f49;var _0x34ea18;return(_0x34ea18=this[_0x5271e5(0x18a)]['get'](_0x2f9468))!=null?_0x34ea18:null;}[_0x222f49(0x15f)](){const _0x500a8f=_0x222f49;this[_0x500a8f(0x158)]['getTypeOfUnitAdded$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this['dispose$']))[_0x500a8f(0x1c0)](async _0x14537d=>{const _0x11bfd9=_0x500a8f,_0x46c236=_0x14537d[_0x11bfd9(0x1b8)]();this[_0x11bfd9(0x18a)][_0x11bfd9(0x17c)](_0x46c236)||this['_startLiveShareCoordinator'](_0x46c236);}),this[_0x500a8f(0x158)]['getTypeOfUnitDisposed$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this[_0x500a8f(0x19a)]))[_0x500a8f(0x1c0)](_0x6a1e96=>{const _0xdea41c=_0x500a8f,_0x5173e1=_0x6a1e96[_0xdea41c(0x1b8)](),_0x521a08=this[_0xdea41c(0x18a)][_0xdea41c(0x1b1)](_0x5173e1);_0x521a08==null||_0x521a08['dispose']();});}async[_0x222f49(0x14c)](_0xf47cd1){const _0x58df3a=_0x222f49,_0x125981=await this[_0x58df3a(0x185)]['requireSession'](_0xf47cd1),_0xd7029=this['_injector']['createInstance'](N,_0xf47cd1,_0x125981);return _0xd7029['init'](),this['_entities']['set'](_0xf47cd1,_0xd7029),_0xd7029;}};S=Y([_(0x0,_0x42d6a1),_(0x1,_0x1482cd(_0x4bf49b)),_(0x2,_0x1482cd(_0x1ae195))],S);var c=(_0x21da83=>(_0x21da83[_0x222f49(0x1b5)]='offline',_0x21da83[_0x222f49(0x1ab)]=_0x222f49(0x157),_0x21da83['FOLLOWING']='following',_0x21da83[_0x222f49(0x156)]=_0x222f49(0x1b6),_0x21da83[_0x222f49(0x159)]=_0x222f49(0x191),_0x21da83))(c||{});const Ce=_0x222f49(0x152),De=0xc8;let N=class extends _0x4d23fd{constructor(_0x1636ce,_0xc41e87,_0x4dcef3,_0x2a8dfb,_0x454816){const _0x36727e=_0x222f49;super(),u(this,'_status$',new _0x1af331(_0x36727e(0x157))),u(this,_0x36727e(0x1d7),this['_status$']['asObservable']()),u(this,_0x36727e(0x15f),!0x1),u(this,_0x36727e(0x192),null),u(this,_0x36727e(0x1ae),null),(this[_0x36727e(0x194)]=_0x1636ce,this[_0x36727e(0x148)]=_0xc41e87,this['_configService']=_0x4dcef3,this[_0x36727e(0x1de)]=_0x2a8dfb,this['_commandService']=_0x454816);}get[_0x222f49(0x18f)](){const _0x4fd45b=_0x222f49;return this[_0x4fd45b(0x1ba)]['getValue']();}[_0x222f49(0x15e)](){const _0x1cfe29=_0x222f49;var _0x456969;(_0x456969=this[_0x1cfe29(0x192)])==null||_0x456969[_0x1cfe29(0x15e)](),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x160)](_0x1cfe29(0x157)),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x184)]();}[_0x222f49(0x1e4)](){const _0x55ff8c=_0x222f49;return this[_0x55ff8c(0x18f)];}[_0x222f49(0x1e2)](){const _0x2b7144=_0x222f49;this[_0x2b7144(0x15f)]||(this[_0x2b7144(0x15f)]=!0x0,this['_collabSession'][_0x2b7144(0x17f)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0xf3c7a5=>{const _0x40dc20=_0x2b7144;switch(_0xf3c7a5){case _0x37958e['OFFLINE']:this[_0x40dc20(0x16a)]();break;case _0x37958e[_0x40dc20(0x1cc)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x2b7144(0x14b)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0x101772=>{const _0x30ccdb=_0x2b7144,{eventID:_0x460750}=_0x101772;switch(_0x460750){case _0x3fdbca['LIVESHARE_NEW_HOST']:this[_0x30ccdb(0x16e)](_0x101772);break;case _0x3fdbca[_0x30ccdb(0x1ce)]:this[_0x30ccdb(0x1c3)](_0x101772);break;case _0x3fdbca['LIVESHARE_TERMINATE']:this[_0x30ccdb(0x161)]();break;case _0x3fdbca[_0x30ccdb(0x1b9)]:this[_0x30ccdb(0x150)](_0x101772);break;}}));}[_0x222f49(0x183)](){const _0xecb64a=_0x222f49;this[_0xecb64a(0x148)][_0xecb64a(0x199)]({'eventID':_0x3fdbca[_0xecb64a(0x196)],'data':{'unitID':this[_0xecb64a(0x194)],'userID':this['_collabSession'][_0xecb64a(0x18d)]()}},this['_unitID']);}[_0x222f49(0x14d)](){const _0x3adab4=_0x222f49;this[_0x3adab4(0x18f)]===_0x3adab4(0x191)&&(this[_0x3adab4(0x1ba)][_0x3adab4(0x160)](_0x3adab4(0x157)),this[_0x3adab4(0x148)][_0x3adab4(0x199)]({'eventID':_0x3fdbca[_0x3adab4(0x190)],'data':{'unitID':this[_0x3adab4(0x194)]}},this[_0x3adab4(0x194)]));}['startFollowing'](){const _0x2310ca=_0x222f49;this[_0x2310ca(0x18f)]===_0x2310ca(0x1b6)&&(this[_0x2310ca(0x1ba)][_0x2310ca(0x160)](_0x2310ca(0x1e5)),this['_startFollowing']());}[_0x222f49(0x1ca)](){const _0x19ea8e=_0x222f49;this[_0x19ea8e(0x18f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x76a257){const _0x341b8f=_0x222f49,{presenter:_0x4ad5b6}=_0x76a257[_0x341b8f(0x1a6)],_0x25dc34=this[_0x341b8f(0x148)]['getMemberID']();this[_0x341b8f(0x1ae)]=_0x4ad5b6,_0x4ad5b6===_0x25dc34?(this[_0x341b8f(0x174)](),this[_0x341b8f(0x16b)]()):this[_0x341b8f(0x18f)]!==_0x341b8f(0x1b6)&&(this[_0x341b8f(0x17d)](),this[_0x341b8f(0x1c1)]());}[_0x222f49(0x186)](){const _0x421f73=_0x222f49,_0x313e07={'eventID':_0x3fdbca[_0x421f73(0x1db)]};this[_0x421f73(0x148)][_0x421f73(0x199)](_0x313e07,this[_0x421f73(0x194)]);}[_0x222f49(0x161)](){const _0x31376e=_0x222f49;this['_presenter']=null,this[_0x31376e(0x18f)]!==_0x31376e(0x191)&&this[_0x31376e(0x17e)]();}[_0x222f49(0x150)](_0x2445a7){const _0xd6ccef=_0x222f49;if(this[_0xd6ccef(0x18f)]===_0xd6ccef(0x1e5)&&this['_presenter']===_0x2445a7[_0xd6ccef(0x1a6)][_0xd6ccef(0x1d0)]){const _0x2a70b8=_0xce55e(_0x2445a7[_0xd6ccef(0x1a6)])[_0xd6ccef(0x18b)]['reverse']()[_0xd6ccef(0x18e)](_0x1895ae=>_0x1895ae['id']===_0x4c0766['id']);if(_0x2a70b8){const _0x106314=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x187)],_0x2a00ad=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x1d5)]['id'];setTimeout(()=>{const _0x2d47f4=_0xd6ccef;this[_0x2d47f4(0x146)]['executeCommand'](_0x18f1ca['id'],{'unitId':_0x106314,'subUnitId':_0x2a00ad},{'fromCollab':!0x0});});}}}[_0x222f49(0x16b)](){const _0x1da092=_0x222f49;this['_status$']['next'](_0x1da092(0x191));const _0x1c14f5=new Map(),_0x22e09f=this[_0x1da092(0x192)]=new _0x4c5763();_0x22e09f[_0x1da092(0x17a)](_0x5b056a(()=>{const _0x39874f=_0x1da092;_0x1c14f5['forEach'](_0x2dc096=>_0x2dc096[_0x39874f(0x184)]()),_0x1c14f5[_0x39874f(0x1c8)]();})),_0x22e09f['add'](this[_0x1da092(0x146)][_0x1da092(0x153)](_0x30df92=>{const _0x55d7b1=_0x1da092;var _0x568f82;if(_0x30df92['type']!==_0xf0a1ab['OPERATION']||!this[_0x55d7b1(0x1de)]['shouldShareOperation'](_0x30df92['id']))return;const {id:_0x41face}=_0x30df92;let _0xd38261;_0x1c14f5[_0x55d7b1(0x17c)](_0x41face)?_0xd38261=_0x1c14f5[_0x55d7b1(0x1b1)](_0x41face):(_0xd38261=new _0x535ba9(),_0x1c14f5['set'](_0x41face,_0xd38261),_0xd38261[_0x55d7b1(0x1e3)](_0x5b740f((_0x568f82=this[_0x55d7b1(0x147)]['getConfig'](Ce))!=null?_0x568f82:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57e83b=>{const _0x3d258d=_0x55d7b1;this[_0x3d258d(0x148)][_0x3d258d(0x199)]({'eventID':_0x3fdbca[_0x3d258d(0x1ce)],'data':{'unitID':this[_0x3d258d(0x194)],'operations':{[_0x57e83b['id']]:{'id':_0x57e83b['id'],'params':JSON[_0x3d258d(0x169)](_0x57e83b[_0x3d258d(0x15a)])}}}},this[_0x3d258d(0x194)]);})),_0xd38261[_0x55d7b1(0x160)](_0x30df92);})),this[_0x1da092(0x1de)][_0x1da092(0x1d2)](this[_0x1da092(0x194)])[_0x1da092(0x1cb)](_0x2e6d89=>this[_0x1da092(0x148)]['send']({'eventID':_0x3fdbca['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1da092(0x194)],'operations':{[_0x2e6d89['id']]:{'id':_0x2e6d89['id'],'params':JSON[_0x1da092(0x169)](_0x2e6d89['params'])}}}},this[_0x1da092(0x194)]));}['_stopPresenting'](){const _0x33d525=_0x222f49;var _0x5641cf;this[_0x33d525(0x1ba)][_0x33d525(0x160)](_0x33d525(0x157)),(_0x5641cf=this[_0x33d525(0x192)])==null||_0x5641cf[_0x33d525(0x15e)](),this[_0x33d525(0x192)]=null;}[_0x222f49(0x1c1)](){const _0x1a5c91=_0x222f49;var _0x262734;(_0x262734=this[_0x1a5c91(0x192)])==null||_0x262734['dispose'](),this[_0x1a5c91(0x1ba)][_0x1a5c91(0x160)](_0x1a5c91(0x1e5));}[_0x222f49(0x17e)](){const _0x2c053e=_0x222f49;var _0x319506;this[_0x2c053e(0x1ba)][_0x2c053e(0x160)](_0x2c053e(0x157)),(_0x319506=this[_0x2c053e(0x192)])==null||_0x319506[_0x2c053e(0x15e)](),this[_0x2c053e(0x192)]=null;}[_0x222f49(0x174)](){const _0x586ea4=_0x222f49;var _0x1774b0;this[_0x586ea4(0x1ba)]['next'](_0x586ea4(0x1b6)),(_0x1774b0=this[_0x586ea4(0x192)])==null||_0x1774b0[_0x586ea4(0x15e)]();}[_0x222f49(0x1c3)](_0x201f11){const _0x32fd22=_0x222f49;if([_0x32fd22(0x191),_0x32fd22(0x1b6),_0x32fd22(0x195)][_0x32fd22(0x182)](this[_0x32fd22(0x18f)])||!_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]||_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]===this['_collabSession'][_0x32fd22(0x18d)]())return;this[_0x32fd22(0x18f)]===_0x32fd22(0x157)&&this[_0x32fd22(0x1c1)]();const _0x3f981c=_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x15d)];Object[_0x32fd22(0x171)](_0x3f981c)[_0x32fd22(0x1cb)](_0x195b3c=>{const _0x4d97ac=_0x32fd22;this[_0x4d97ac(0x146)]['executeCommand'](_0x195b3c['id'],_0x195b3c['params']?JSON[_0x4d97ac(0x1d1)](_0x195b3c[_0x4d97ac(0x15a)]):null,{'fromCollab':!0x0});});}[_0x222f49(0x16a)](){const _0x117688=_0x222f49;var _0x10c904;this['_status$']['next'](_0x117688(0x195)),(_0x10c904=this[_0x117688(0x192)])==null||_0x10c904[_0x117688(0x15e)]();}[_0x222f49(0x1c7)](){const _0x2daa41=_0x222f49;this[_0x2daa41(0x1ba)][_0x2daa41(0x160)](_0x2daa41(0x157)),this[_0x2daa41(0x186)]();}};N=Y([_(0x2,_0x2a5d23),_(0x3,_0x1482cd(L)),_(0x4,_0x49fbbf)],N);function Le(){const _0x595af5=_0x222f49,_0x1e6a9f=_0xa82e97(S),_0x3d429b=_0xa82e97(_0x42d6a1),_0xad7edf=_0x169040(()=>_0x3d429b[_0x595af5(0x1c2)](_0x2f11e5[_0x595af5(0x167)]),void 0x0,!0x1,[]),[_0x1d0531,_0xf25f]=_0x263a7d(null),[_0x535e52,_0x14cdd5]=_0x263a7d(c[_0x595af5(0x1ab)]),_0x22c6ec=_0x2088ee(null);return _0x5b9c41(()=>(_0xad7edf&&_0x1e6a9f[_0x595af5(0x1dd)](_0xad7edf[_0x595af5(0x1b8)]())[_0x595af5(0x1a5)](_0x39b7e7=>{const _0x49e5e1=_0x595af5;_0xf25f(_0x39b7e7),_0x22c6ec[_0x49e5e1(0x15b)]=_0x39b7e7[_0x49e5e1(0x1d7)][_0x49e5e1(0x1c0)](_0x515ddf=>{_0x14cdd5(_0x515ddf);});}),()=>{const _0x417f1d=_0x595af5;var _0x3c104c;(_0x3c104c=_0x22c6ec[_0x417f1d(0x15b)])==null||_0x3c104c[_0x417f1d(0x1be)](),_0x22c6ec[_0x417f1d(0x15b)]=null;}),[_0xad7edf,_0x1e6a9f]),_0x1d0531?_0x147256(_0x4032fa,{'align':'end','disabled':_0x535e52===c[_0x595af5(0x1b5)],'className':_0x595af5(0x177),'overlay':_0x147256(Re,{'status':_0x535e52,'coordinator':_0x1d0531}),'children':_0x147256('button',{'className':_0x21e998('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x535e52===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x535e52!==c[_0x595af5(0x1b5)]}),'type':_0x595af5(0x18c),'children':_0x147256(W,{'className':_0x595af5(0x193)})})}):null;}function _0x32f8(_0x55cde5,_0x1ba71a){_0x55cde5=_0x55cde5-0x144;const _0x1f9247=_0x1f92();let _0x32f805=_0x1f9247[_0x55cde5];return _0x32f805;}function Re(_0x3ae1e6){const _0x3b8226=_0x222f49,{status:_0x26e94d,coordinator:_0x45f5d3}=_0x3ae1e6;switch(_0x26e94d){case c[_0x3b8226(0x1ab)]:return _0x147256($e,{'coordinator':_0x45f5d3});case c[_0x3b8226(0x1b3)]:return _0x147256(xe,{'coordinator':_0x45f5d3});case c['NOT_FOLLOWING']:return _0x147256(Pe,{'coordinator':_0x45f5d3});case c['OFFLINE']:return _0x147256(Te,{});case c[_0x3b8226(0x159)]:return _0x147256(Ae,{'coordinator':_0x45f5d3});default:return null;}}function $e(_0x1ae728){const _0x13e998=_0x222f49,{coordinator:_0x8df82a}=_0x1ae728;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x13e998(0x1bb),{'className':_0x13e998(0x164),'children':_0x13e998(0x1a2)}),_0x147256(_0x343d1a,{'onClick':()=>_0x8df82a[_0x13e998(0x183)](),'children':'Start'})]});}function _0x1f92(){const _0x24faa7=['sessionStatus$','registerInitialStateReporter','symbol','includes','tryStartPresenting','complete','_collabSessionService','_fetchOperations','unitId','from','LiveShareIcon','_entities','mutations','button','getMemberID','find','_status','LIVESHARE_TERMINATE','presenting','_commandDisposable','univer-size-4','_unitID','offline','LIVESHARE_REQUEST_HOST','Stop\x20presenting','UniverIcon','send','dispose$','colorChannel1','displayName','You\x27are\x20offline.','svg','_reporters','assign','Start\x20following','Present\x20this\x20document','defIds','2431090AlCoHV','then','data','defs','registerSharedOperation','191514hqGhpA','_uiPartsService','IDLE','evenodd','none','_presenter','toString','length','get','4805576DUHMCj','FOLLOWING','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','OFFLINE','not-following','0\x200\x2017\x2017','getUnitId','NEW_CHANGESETS','_status$','div','44118OzvmRD','UNIVER_UNKNOWN','unsubscribe','xlink:href','subscribe','_startFollowing','getCurrentTypeOfUnit$','_handleOperation','_injector','1306485qEEfRE','http://www.w3.org/2000/svg','_handleOnline','clear','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','stopFollowing','forEach','ONLINE','tag','LIVESHARE_OPERATION','9CsyzmS','memberID','parse','getInitialStates','idSuffix','_config','sheet','disposeWithMe','status$','string','live-share.config','map','LIVESHARE_FETCH_OPERATIONS','registerComponent','getLiveShareCoordinator','_liveShareService','1em','414248utlDPT','getOwnPropertyDescriptor','init','pipe','getStatus','following','8698880BtQNUt','onRendered','_commandService','_configService','_collabSession','You\x27re\x20presenting\x20the\x20document','HEADER_MENU','event$','_startLiveShareCoordinator','stopPresenting','currentColor','replace','_handleNewChangeSets','url(#$1','SAME_OPERATION_SHARE_INTERVAL','onCommandExecuted','entries','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','idle','_univerInstanceService','PRESENTING','params','current','univerjs-icon\x20univerjs-icon-','operations','dispose','_init','next','_handleTerminate','shouldShareOperation','delete','univer-mb-3\x20univer-w-full\x20univer-text-sm','_sharedOperations','children','UNIVER_SHEET','presenter','stringify','_handleOffline','_startPresenting','random','defineProperty','_handleNewHost','mask','path','values','5NwakGy','35keXnTT','_stopFollowing','live-share-icon','default','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','attrs','setConfig','add','fill','has','_stopPresenting','_beIdle'];_0x1f92=function(){return _0x24faa7;};return _0x1f92();}function xe(_0x3f4462){const _0x1ea643=_0x222f49,{coordinator:_0x28cd24}=_0x3f4462;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x1ea643(0x1bb),{'className':_0x1ea643(0x164),'children':_0x1ea643(0x155)}),_0x147256(_0x343d1a,{'onClick':()=>_0x28cd24[_0x1ea643(0x1ca)](),'children':'Stop\x20following'})]});}function Pe(_0x2f6795){const _0x352649=_0x222f49,{coordinator:_0xc604e7}=_0x2f6795;return _0x5b8e35(_0x48919b,{'children':[_0x147256('div',{'className':_0x352649(0x164),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x147256(_0x343d1a,{'variant':'text','onClick':()=>_0xc604e7['startFollowing'](),'children':_0x352649(0x1a1)})]});}function Ae(_0x51b98b){const _0x29d1db=_0x222f49,{coordinator:_0x5e6b3b}=_0x51b98b;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x29d1db(0x1bb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29d1db(0x149)}),_0x147256(_0x343d1a,{'variant':_0x29d1db(0x176),'onClick':()=>_0x5e6b3b[_0x29d1db(0x14d)](),'children':_0x29d1db(0x197)})]});}function Te(){const _0x4b4bf3=_0x222f49;return _0x147256(_0x48919b,{'children':_0x4b4bf3(0x19d)});}var Fe=Object[_0x222f49(0x1e1)],He=(_0x20a505,_0x2f59a1,_0x699d44,_0x16b8cd)=>{const _0x2585ec=_0x222f49;for(var _0x46b8ab=_0x16b8cd>0x1?void 0x0:_0x16b8cd?Fe(_0x2f59a1,_0x699d44):_0x2f59a1,_0x112c1a=_0x20a505[_0x2585ec(0x1b0)]-0x1,_0xda2f11;_0x112c1a>=0x0;_0x112c1a--)(_0xda2f11=_0x20a505[_0x112c1a])&&(_0x46b8ab=_0xda2f11(_0x46b8ab)||_0x46b8ab);return _0x46b8ab;},A=(_0x345c45,_0x32671f)=>(_0x22e067,_0x3cdb29)=>_0x32671f(_0x22e067,_0x3cdb29,_0x345c45);let m=class extends _0x1a37e7{constructor(_0x9a6efd,_0x6237a1){const _0x81ac34=_0x222f49;super(),this[_0x81ac34(0x1c4)]=_0x9a6efd,this['_uiPartsService']=_0x6237a1,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1764e5=_0x222f49;this['disposeWithMe'](this[_0x1764e5(0x1aa)][_0x1764e5(0x1dc)](_0x504303[_0x1764e5(0x14a)],()=>_0x71c5ea(Le,this['_injector'])));}};m=He([A(0x0,_0x1482cd(_0x4bf49b)),A(0x1,_0x2eb621)],m);const ye=_0x222f49(0x1d9),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x48c8b5,_0x455180,_0x5a5586,_0x858e3b)=>{const _0x19df28=_0x222f49;for(var _0x2c586f=_0x858e3b>0x1?void 0x0:_0x858e3b?Ue(_0x455180,_0x5a5586):_0x455180,_0x294eed=_0x48c8b5[_0x19df28(0x1b0)]-0x1,_0x47e890;_0x294eed>=0x0;_0x294eed--)(_0x47e890=_0x48c8b5[_0x294eed])&&(_0x2c586f=_0x47e890(_0x2c586f)||_0x2c586f);return _0x2c586f;},je=(_0x548104,_0x3aaed5)=>(_0x47e839,_0x4120f6)=>_0x3aaed5(_0x47e839,_0x4120f6,_0x548104);let I=class extends _0x1a37e7{constructor(_0xadd850){const _0x28c989=_0x222f49;super(),this[_0x28c989(0x1de)]=_0xadd850,this['_init']();}[_0x222f49(0x15f)](){[_0x314d69['id'],_0x39a4e2['id'],_0x18f1ca['id']]['forEach'](_0x199093=>{const _0x336415=_0x32f8;this[_0x336415(0x1d6)](this[_0x336415(0x1de)][_0x336415(0x1a8)](_0x199093));});}};I=Ve([je(0x0,_0x1482cd(L))],I);var Me=Object[_0x222f49(0x16d)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x29c7a9,_0x17ca98,_0x2b7853)=>_0x17ca98 in _0x29c7a9?Me(_0x29c7a9,_0x17ca98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7853}):_0x29c7a9[_0x17ca98]=_0x2b7853,We=(_0x38eeed,_0x3313d7,_0x434e0e,_0x20d09e)=>{for(var _0x504ce3=_0x20d09e>0x1?void 0x0:_0x20d09e?ke(_0x3313d7,_0x434e0e):_0x3313d7,_0x587640=_0x38eeed['length']-0x1,_0x3c295e;_0x587640>=0x0;_0x587640--)(_0x3c295e=_0x38eeed[_0x587640])&&(_0x504ce3=_0x3c295e(_0x504ce3)||_0x504ce3);return _0x504ce3;},F=(_0x35ea2f,_0x237888)=>(_0x5e6ad6,_0x39b551)=>_0x237888(_0x5e6ad6,_0x39b551,_0x35ea2f),B=(_0x571cb2,_0x2a52ed,_0x12a363)=>Ge(_0x571cb2,typeof _0x2a52ed!=_0x222f49(0x181)?_0x2a52ed+'':_0x2a52ed,_0x12a363);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4a80e3{constructor(_0x1633e6=T,_0x7597c4,_0xa2ad7){const _0xda0e29=_0x222f49;super(),this[_0xda0e29(0x1d4)]=_0x1633e6,this[_0xda0e29(0x1c4)]=_0x7597c4,this[_0xda0e29(0x147)]=_0xa2ad7;const {..._0x52fa98}=_0x20b0c5({},T,this[_0xda0e29(0x1d4)]);this[_0xda0e29(0x147)][_0xda0e29(0x179)](ye,_0x52fa98);}['onStarting'](){const _0x1c1aeb=_0x222f49;_0x3e3410(this[_0x1c1aeb(0x1c4)],_0x443e96([[L],[S],[I],[m]],this[_0x1c1aeb(0x1d4)]['override'])),_0xd36313(this[_0x1c1aeb(0x1c4)],[[I]]);}[_0x222f49(0x145)](){const _0x16c20a=_0x222f49;_0xd36313(this[_0x16c20a(0x1c4)],[[m]]);}};B(b,'type',_0x2f11e5[_0x222f49(0x1bd)]),B(b,'pluginName',Ye),b=We([_0xa62d83(_0x2aafaa),F(0x1,_0x1482cd(_0x4bf49b)),F(0x2,_0x2a5d23)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x28f5(_0x184df0,_0x3f185c){_0x184df0=_0x184df0-0xd5;const _0x235fb0=_0x235f();let _0x28f57f=_0x235fb0[_0x184df0];return _0x28f57f;}(function(_0xa2cf64,_0x1e4169){const _0x187cc1=_0x28f5,_0x25938c=_0xa2cf64();while(!![]){try{const _0x484a5e=parseInt(_0x187cc1(0xf3))/0x1+parseInt(_0x187cc1(0xdd))/0x2*(parseInt(_0x187cc1(0xe5))/0x3)+-parseInt(_0x187cc1(0xe6))/0x4+-parseInt(_0x187cc1(0xf7))/0x5*(parseInt(_0x187cc1(0xdb))/0x6)+parseInt(_0x187cc1(0xfd))/0x7+-parseInt(_0x187cc1(0xee))/0x8*(-parseInt(_0x187cc1(0xeb))/0x9)+parseInt(_0x187cc1(0xf5))/0xa;if(_0x484a5e===_0x1e4169)break;else _0x25938c['push'](_0x25938c['shift']());}catch(_0x5c05bd){_0x25938c['push'](_0x25938c['shift']());}}}(_0x235f,0xc4522),function(_0x3b3a65,_0x3bf6ab){const _0x51b025=_0x28f5;typeof exports==_0x51b025(0xe3)&&typeof module<'u'?_0x3bf6ab(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x51b025(0xf4)&&define['amd']?define([_0x51b025(0xd5),_0x51b025(0xed),'@univerjs/core/facade'],_0x3bf6ab):(_0x3b3a65=typeof globalThis<'u'?globalThis:_0x3b3a65||self,_0x3bf6ab(_0x3b3a65[_0x51b025(0xe7)],_0x3b3a65[_0x51b025(0xd9)],_0x3b3a65['UniverCoreFacade']));}(this,function(_0xa6f7af,_0x43f5f5,_0x1aed6b){'use strict';const _0x19077e=_0x28f5;var _0x2af0ae=Object[_0x19077e(0xde)],_0x413527=(_0x1147e2,_0x2a870f,_0x4aad46)=>_0x2a870f in _0x1147e2?_0x2af0ae(_0x1147e2,_0x2a870f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4aad46}):_0x1147e2[_0x2a870f]=_0x4aad46,_0x5f48db=(_0x54c6bf,_0x1e4804,_0x315b1c)=>_0x413527(_0x54c6bf,typeof _0x1e4804!=_0x19077e(0xe8)?_0x1e4804+'':_0x1e4804,_0x315b1c);class _0x38f409 extends _0x1aed6b['FUniver']{constructor(){const _0x3209f9=_0x19077e;super(...arguments),_0x5f48db(this,_0x3209f9(0xf0));}[_0x19077e(0xe2)](_0x58e9fa){const _0x3d8e3d=_0x19077e;this[_0x3d8e3d(0xf0)]=_0x58e9fa[_0x3d8e3d(0xf8)](_0xa6f7af[_0x3d8e3d(0xfc)]);}['getLiveShareStatus'](){const _0x3983e=_0x19077e;var _0x3c419e;const _0x41fe83=this['_injector'][_0x3983e(0xf8)](_0x43f5f5[_0x3983e(0xef)])[_0x3983e(0xe0)](_0x43f5f5['UniverInstanceType'][_0x3983e(0xf9)]);if(!_0x41fe83)throw new Error(_0x3983e(0xe9));const _0x5879bd=_0x41fe83[_0x3983e(0xf2)](),_0x5b73a8=this[_0x3983e(0xf0)][_0x3983e(0xf6)](_0x5879bd);return(_0x3c419e=_0x5b73a8==null?void 0x0:_0x5b73a8[_0x3983e(0xd7)]())!=null?_0x3c419e:_0xa6f7af[_0x3983e(0xdf)]['IDLE'];}[_0x19077e(0xe4)](){const _0xa60404=_0x19077e,_0x16e04f=this['_injector']['get'](_0x43f5f5[_0xa60404(0xef)])[_0xa60404(0xe0)](_0x43f5f5[_0xa60404(0xdc)]['UNIVER_SHEET']);if(!_0x16e04f)throw new Error(_0xa60404(0xe9));const _0x35758b=_0x16e04f[_0xa60404(0xf2)](),_0x1f2fe1=this[_0xa60404(0xf0)]['getLiveShareCoordinatorSync'](_0x35758b);if(!_0x1f2fe1)throw new Error(_0xa60404(0xfa));_0x1f2fe1[_0xa60404(0xe4)]();}['stopFollowing'](){const _0x54f086=_0x19077e,_0x37bb5d=this[_0x54f086(0xda)][_0x54f086(0xf8)](_0x43f5f5[_0x54f086(0xef)])[_0x54f086(0xe0)](_0x43f5f5[_0x54f086(0xdc)]['UNIVER_SHEET']);if(!_0x37bb5d)throw new Error(_0x54f086(0xe9));const _0x2fa20d=_0x37bb5d[_0x54f086(0xf2)](),_0x3e5fd3=this[_0x54f086(0xf0)][_0x54f086(0xf6)](_0x2fa20d);if(!_0x3e5fd3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3e5fd3[_0x54f086(0xd6)]();}[_0x19077e(0xf1)](){const _0x57d951=_0x19077e,_0x10a702=this[_0x57d951(0xda)][_0x57d951(0xf8)](_0x43f5f5['IUniverInstanceService'])[_0x57d951(0xe0)](_0x43f5f5[_0x57d951(0xdc)][_0x57d951(0xf9)]);if(!_0x10a702)throw new Error(_0x57d951(0xe9));const _0x9cbea4=_0x10a702['getUnitId'](),_0x494890=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x9cbea4);if(!_0x494890)throw new Error(_0x57d951(0xfa));_0x494890[_0x57d951(0xfe)]();}[_0x19077e(0xfb)](){const _0x1041b4=_0x19077e,_0x105b3c=this[_0x1041b4(0xda)][_0x1041b4(0xf8)](_0x43f5f5[_0x1041b4(0xef)])[_0x1041b4(0xe0)](_0x43f5f5[_0x1041b4(0xdc)][_0x1041b4(0xf9)]);if(!_0x105b3c)throw new Error(_0x1041b4(0xe9));const _0x33668d=_0x105b3c['getUnitId'](),_0x1219e6=this['_liveShareController'][_0x1041b4(0xf6)](_0x33668d);if(!_0x1219e6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1219e6[_0x1041b4(0xfb)]();}}_0x1aed6b[_0x19077e(0xea)]['extend'](_0x38f409);class _0x422807 extends _0x1aed6b[_0x19077e(0xec)]{get[_0x19077e(0xe1)](){return _0xa6f7af['LiveShareStatus'];}}_0x1aed6b[_0x19077e(0xec)][_0x19077e(0xd8)](_0x422807);}));function _0x235f(){const _0x4eb953=['20312980NMRnFs','getLiveShareCoordinatorSync','6185UwwLEb','get','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','LiveShareController','390782hQjBoj','tryStartPresenting','@univerjs-pro/live-share','stopFollowing','getStatus','extend','UniverCore','_injector','5838YWIbEQ','UniverInstanceType','26cBMWzb','defineProperty','LiveShareStatus','getCurrentUnitOfType','LiveShareStatusEnum','_initialize','object','startFollowing','50445rUiKTt','2323984eklsbL','UniverProLiveShare','symbol','No\x20active\x20workbook\x20found.','FUniver','380313vEznzp','FEnum','@univerjs/core','8mHtJVJ','IUniverInstanceService','_liveShareController','startPresenting','getUnitId','240751uxzKww','function'];_0x235f=function(){return _0x4eb953;};return _0x235f();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5045(){const _0x48dae2=['915035youKiY','_liveShareService','react','presenter','getLiveShareCoordinatorSync','toDisposable','tryStartPresenting','575999YioADH','status$','shouldShareOperation','_entities','240MKoiyI','@univerjs/design','mergeOverrideWithDependencies','UNIVER_SHEET','jsxs','@univerjs-pro/collaboration-client','You\x27re\x20not\x20following\x20the\x20presenter','IConfigService','LIVESHARE_TERMINATE','_commandDisposable','Inject','Button','complete','use','LiveShareService','UNIVER_UNKNOWN','defineProperty','SessionStatus','_beIdle','_collabSessionService','IDLE','react/jsx-runtime','NOT_FOLLOWING','next','mutations','exports','has','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','string','_handleNewChangeSets','takeUntil','Module','_handleOperation','registerInitialStateReporter','getValue','pipe','univerjs-icon\x20univerjs-icon-','idSuffix','from','text','_init','event$','@univerjs/ui','xlink:href','live-share.config','PRESENTING','_mountLiveShare','1em','getUnitId','url(#$1','_handleTerminate','colorChannel1','UniverInstanceType','object','forEach','jsx','operations','mask','delete','@univerjs/sheets','0\x200\x2017\x2017','currentColor','_handleOffline','useState','LiveShareController','UniverProCollaboration','getTypeOfUnitAdded$','LIVESHARE_REQUEST_HOST','React','send','parseProtocolChangeset','@univerjs/sheets-ui','getCurrentTypeOfUnit$','fill','18THTKQa','symbol','_stopPresenting','_startPresenting','_configService','forwardRef','values','BehaviorSubject','set','DependentOn','onRendered','BuiltInUIPart','803370DjBfNI','live-share-icon','_fetchOperations','pluginName','CommandType','LIVESHARE_OPERATION','trim','OPERATION','stringify','attrs','function','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','toStringTag','_collabSession','executeCommand','defIds','Start','displayName','memberID','univer-mb-3\x20univer-w-full\x20univer-text-sm','getLiveShareCoordinator','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','rxjs','useRef','tag','Injector','_stopFollowing','OFFLINE','LIVESHARE_FETCH_OPERATIONS','button','connectInjector','InsertSheetMutation','_status','FOLLOWING','svg','http://www.w3.org/2000/svg','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','touchDependencies','useDependency','presenting','UniverCollaborationClientPlugin','type','rxjs/operators','HEADER_MENU','You\x27are\x20offline.','UniverDesign','registerDependencies','following','_presenter','Plugin','data','RxDisposable','@univerjs-pro/collaboration','Present\x20this\x20document','dispose','You\x27re\x20following\x20the\x20presenter','onStarting','reverse','_startFollowing','_unitID','UniverProLiveShare','SetWorksheetActiveOperation','disposeWithMe','requireSession','path','_status$','@univerjs/core','SAME_OPERATION_SHARE_INTERVAL','8694954jCeTRa','entries','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20presenting\x20the\x20document','get','current','stopFollowing','div','add','createElement','stopPresenting','unitId','IUniverInstanceService','offline','Start\x20following','replace','getTypeOfUnitDisposed$','UniverProCollaborationClient','asObservable','dispose$','defs','CollaborationEvent','idle','LiveShare','LiveShareCoordinator','init','785530TFqCNj','params','startFollowing','length','then','sessionStatus$','evenodd','_univerInstanceService','getMemberID','end','sheet','UniverSheetsUi','includes','subscribe','_commandService','DesktopLiveShareController','assign','_handleNewHost','find','CollaborationSessionService','NEW_CHANGESETS','ICommandService','UniverLiveSharePlugin','map','_handleOnline','Fragment','_reporters','operators','_injector','_config','1379vEfHwO','getOwnPropertyDescriptor','unsubscribe','Subject','not-following','85888UbIHaw','getInitialStates','Stop\x20following','Disposable','clear','children','getStatus','Dropdown','_startLiveShareCoordinator','_sharedOperations','21496StrxDf','registerComponent'];_0x5045=function(){return _0x48dae2;};return _0x5045();}function _0x3042(_0x4ceaa7,_0x254c3c){_0x4ceaa7=_0x4ceaa7-0x16d;const _0x5045a3=_0x5045();let _0x3042df=_0x5045a3[_0x4ceaa7];return _0x3042df;}(function(_0x596752,_0x3cad45){const _0xf4d860=_0x3042,_0x19a7a8=_0x596752();while(!![]){try{const _0x35e8cf=parseInt(_0xf4d860(0x1b6))/0x1+-parseInt(_0xf4d860(0x210))/0x2+parseInt(_0xf4d860(0x1ba))/0x3*(parseInt(_0xf4d860(0x1a3))/0x4)+parseInt(_0xf4d860(0x1af))/0x5+-parseInt(_0xf4d860(0x254))/0x6+-parseInt(_0xf4d860(0x19e))/0x7*(-parseInt(_0xf4d860(0x1ad))/0x8)+-parseInt(_0xf4d860(0x204))/0x9*(parseInt(_0xf4d860(0x180))/0xa);if(_0x35e8cf===_0x3cad45)break;else _0x19a7a8['push'](_0x19a7a8['shift']());}catch(_0x46acda){_0x19a7a8['push'](_0x19a7a8['shift']());}}}(_0x5045,0xf3b0b),function(_0x53332a,_0x2b1868){const _0x106b6c=_0x3042;typeof exports==_0x106b6c(0x1ef)&&typeof module<'u'?_0x2b1868(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x106b6c(0x21a)&&define['amd']?define([_0x106b6c(0x1d3),_0x106b6c(0x252),_0x106b6c(0x1e4),_0x106b6c(0x1cf),_0x106b6c(0x1bb),_0x106b6c(0x1b1),_0x106b6c(0x244),_0x106b6c(0x1bf),_0x106b6c(0x1f5),_0x106b6c(0x226),_0x106b6c(0x23a),_0x106b6c(0x201)],_0x2b1868):(_0x53332a=typeof globalThis<'u'?globalThis:_0x53332a||self,_0x2b1868(_0x53332a[_0x106b6c(0x24c)]={},_0x53332a['UniverCore'],_0x53332a['UniverUi'],_0x53332a[_0x106b6c(0x1fe)],_0x53332a[_0x106b6c(0x23d)],_0x53332a[_0x106b6c(0x1fe)],_0x53332a[_0x106b6c(0x1fb)],_0x53332a[_0x106b6c(0x177)],_0x53332a['UniverSheets'],_0x53332a[_0x106b6c(0x226)],_0x53332a['rxjs'][_0x106b6c(0x19b)],_0x53332a[_0x106b6c(0x18b)]));}(this,function(_0x14c64b,_0x3b08ea,_0x38aee4,_0x7a8eef,_0x52db5b,_0x1f34a2,_0x783a72,_0x40969f,_0x251183,_0x116976,_0x1fbc4f,_0x192478){'use strict';const _0x5eb223=_0x3042;var _0x15c28c=Object[_0x5eb223(0x1ca)],_0x3c20d7=(_0x21593b,_0x2eb5ee,_0x24b87f)=>_0x2eb5ee in _0x21593b?_0x15c28c(_0x21593b,_0x2eb5ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24b87f}):_0x21593b[_0x2eb5ee]=_0x24b87f,_0x1e0155=(_0x4dc528,_0x3e17fe,_0x7ebd63)=>_0x3c20d7(_0x4dc528,typeof _0x3e17fe!=_0x5eb223(0x205)?_0x3e17fe+'':_0x3e17fe,_0x7ebd63);function _0x41c359({ref:_0x194369,..._0x32f431}){const _0x334f9b=_0x5eb223,{icon:_0x2a85c1,id:_0x2e7033,className:_0x4d2e00,extend:_0x229223,..._0x3da465}=_0x32f431,_0x13cc38=(_0x334f9b(0x1de)+_0x2e7033+'\x20'+(_0x4d2e00||''))[_0x334f9b(0x216)](),_0x2ae2d1=_0x1f34a2['useRef']('_'+_0x496c9a());return _0x572cb4(_0x2a85c1,''+_0x2e7033,{'defIds':_0x2a85c1[_0x334f9b(0x21f)],'idSuffix':_0x2ae2d1['current']},{'ref':_0x194369,'className':_0x13cc38,..._0x3da465},_0x229223);}function _0x572cb4(_0x35339d,_0x21323c,_0x5836aa,_0x297608,_0x3db32a){const _0x4a0ef6=_0x5eb223;return _0x1f34a2['createElement'](_0x35339d['tag'],{'key':_0x21323c,..._0x81421d(_0x35339d,_0x5836aa,_0x3db32a),..._0x297608},(_0x5e03e7(_0x35339d,_0x5836aa)[_0x4a0ef6(0x1a8)]||[])['map']((_0xa7ef93,_0x5556b0)=>_0x572cb4(_0xa7ef93,_0x21323c+'-'+_0x35339d[_0x4a0ef6(0x228)]+'-'+_0x5556b0,_0x5836aa,void 0x0,_0x3db32a)));}function _0x81421d(_0x4ea638,_0x4993e4,_0x577ec0){const _0x102094=_0x5eb223,_0x4cc069={..._0x4ea638['attrs']};_0x577ec0!=null&&_0x577ec0['colorChannel1']&&_0x4cc069[_0x102094(0x203)]==='colorChannel1'&&(_0x4cc069[_0x102094(0x203)]=_0x577ec0[_0x102094(0x1ed)]),_0x4ea638['tag']===_0x102094(0x1f3)&&_0x4cc069['id']&&(_0x4cc069['id']=_0x4cc069['id']+_0x4993e4['idSuffix']),Object['entries'](_0x4cc069)['forEach'](([_0x11185e,_0x47fb21])=>{const _0x50f43d=_0x102094;_0x11185e===_0x50f43d(0x1f3)&&typeof _0x47fb21==_0x50f43d(0x1d6)&&(_0x4cc069[_0x11185e]=_0x47fb21['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4993e4[_0x50f43d(0x1df)]+')'));});const {defIds:_0x309eb6}=_0x4993e4;return!_0x309eb6||_0x309eb6['length']===0x0||(_0x4ea638['tag']===_0x102094(0x1c7)&&_0x4cc069[_0x102094(0x1e5)]&&(_0x4cc069[_0x102094(0x1e5)]=_0x4cc069['xlink:href']+_0x4993e4[_0x102094(0x1df)]),Object[_0x102094(0x255)](_0x4cc069)[_0x102094(0x1f0)](([_0x48b678,_0x3427b2])=>{const _0xa376c2=_0x102094;typeof _0x3427b2==_0xa376c2(0x1d6)&&(_0x4cc069[_0x48b678]=_0x3427b2[_0xa376c2(0x175)](/url\(#(.*)\)/,_0xa376c2(0x1eb)+_0x4993e4['idSuffix']+')'));})),_0x4cc069;}function _0x5e03e7(_0x2cac65,_0x1f51e7){const _0x267b27=_0x5eb223;var _0x32bf3d;const {defIds:_0x4aaef6}=_0x1f51e7;return!_0x4aaef6||_0x4aaef6[_0x267b27(0x183)]===0x0?_0x2cac65:_0x2cac65[_0x267b27(0x228)]===_0x267b27(0x17a)&&((_0x32bf3d=_0x2cac65[_0x267b27(0x1a8)])!=null&&_0x32bf3d[_0x267b27(0x183)])?{..._0x2cac65,'children':_0x2cac65[_0x267b27(0x1a8)][_0x267b27(0x197)](_0x573928=>typeof _0x573928[_0x267b27(0x219)]['id']==_0x267b27(0x1d6)&&_0x4aaef6&&_0x4aaef6['includes'](_0x573928[_0x267b27(0x219)]['id'])?{..._0x573928,'attrs':{..._0x573928['attrs'],'id':_0x573928[_0x267b27(0x219)]['id']+_0x1f51e7[_0x267b27(0x1df)]}}:_0x573928)}:_0x2cac65;}function _0x496c9a(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x41c359[_0x5eb223(0x221)]='UniverIcon';const _0x4cc053={'tag':_0x5eb223(0x232),'attrs':{'xmlns':_0x5eb223(0x233),'fill':'none','viewBox':_0x5eb223(0x1f6),'width':_0x5eb223(0x1e9),'height':_0x5eb223(0x1e9)},'children':[{'tag':_0x5eb223(0x250),'attrs':{'fill':_0x5eb223(0x1f7),'d':_0x5eb223(0x1d5)}},{'tag':_0x5eb223(0x250),'attrs':{'fill':'currentColor','d':_0x5eb223(0x225),'fillRule':_0x5eb223(0x186),'clipRule':_0x5eb223(0x186)}}]},_0x1f8833=_0x1f34a2[_0x5eb223(0x209)](function(_0xa8ec08,_0x3eb833){const _0x1a06a8=_0x5eb223;return _0x1f34a2[_0x1a06a8(0x16f)](_0x41c359,Object[_0x1a06a8(0x190)]({},_0xa8ec08,{'id':_0x1a06a8(0x211),'ref':_0x3eb833,'icon':_0x4cc053}));});_0x1f8833['displayName']='LiveShareIcon';class _0x17df7c extends _0x3b08ea['Disposable']{constructor(){const _0x3fc30e=_0x5eb223;super(...arguments),_0x1e0155(this,_0x3fc30e(0x1ac),new Set()),_0x1e0155(this,_0x3fc30e(0x19a),new Set());}['registerSharedOperation'](_0x169fb7){const _0x4b1f2a=_0x5eb223;return this[_0x4b1f2a(0x1ac)][_0x4b1f2a(0x16e)](_0x169fb7),_0x3b08ea[_0x4b1f2a(0x1b4)](()=>this['_sharedOperations'][_0x4b1f2a(0x1f4)](_0x169fb7));}[_0x5eb223(0x1db)](_0x29ca7c){const _0x42ce4d=_0x5eb223;return this[_0x42ce4d(0x19a)][_0x42ce4d(0x16e)](_0x29ca7c),_0x3b08ea[_0x42ce4d(0x1b4)](()=>this[_0x42ce4d(0x19a)][_0x42ce4d(0x1f4)](_0x29ca7c));}[_0x5eb223(0x1b8)](_0x59a279){const _0x3089f5=_0x5eb223;return this['_sharedOperations'][_0x3089f5(0x1d4)](_0x59a279);}['getInitialStates'](_0x1258b6){const _0x28c1ba=_0x5eb223;return Array[_0x28c1ba(0x1e0)](this['_reporters'])['map'](_0x5eca17=>_0x5eca17(_0x1258b6));}}var _0x10bb46=Object[_0x5eb223(0x19f)],_0x1cfc5e=(_0x3b7f96,_0x2e6b1b,_0x2c1570,_0x285569)=>{for(var _0x13d114=_0x285569>0x1?void 0x0:_0x285569?_0x10bb46(_0x2e6b1b,_0x2c1570):_0x2e6b1b,_0x27dc79=_0x3b7f96['length']-0x1,_0xe00bd8;_0x27dc79>=0x0;_0x27dc79--)(_0xe00bd8=_0x3b7f96[_0x27dc79])&&(_0x13d114=_0xe00bd8(_0x13d114)||_0x13d114);return _0x13d114;},_0x25ca2a=(_0x3662fb,_0x510d95)=>(_0x2582dc,_0x464624)=>_0x510d95(_0x2582dc,_0x464624,_0x3662fb);_0x14c64b[_0x5eb223(0x1fa)]=class extends _0x3b08ea['RxDisposable']{constructor(_0x2b2fae,_0x2724b7,_0x2db5ca){const _0x9d2c90=_0x5eb223;super(),_0x1e0155(this,_0x9d2c90(0x1b9),new Map()),(this[_0x9d2c90(0x187)]=_0x2b2fae,this[_0x9d2c90(0x19c)]=_0x2724b7,this[_0x9d2c90(0x1cd)]=_0x2db5ca,this[_0x9d2c90(0x1e2)]());}async['getLiveShareCoordinator'](_0x4bfbd0){const _0x337039=_0x5eb223;return this['_entities'][_0x337039(0x1d4)](_0x4bfbd0)||await this[_0x337039(0x1ab)](_0x4bfbd0),this[_0x337039(0x1b9)]['get'](_0x4bfbd0);}[_0x5eb223(0x1b3)](_0x46bb2e){var _0x32a828;return(_0x32a828=this['_entities']['get'](_0x46bb2e))!=null?_0x32a828:null;}['_init'](){const _0x2c9ae1=_0x5eb223;this[_0x2c9ae1(0x187)][_0x2c9ae1(0x1fc)](_0x3b08ea[_0x2c9ae1(0x1ee)]['UNIVER_SHEET'])[_0x2c9ae1(0x1dd)](_0x1fbc4f[_0x2c9ae1(0x1d8)](this[_0x2c9ae1(0x179)]))[_0x2c9ae1(0x18d)](async _0x799fd9=>{const _0x4441eb=_0x2c9ae1,_0x2d859c=_0x799fd9[_0x4441eb(0x1ea)]();this[_0x4441eb(0x1b9)][_0x4441eb(0x1d4)](_0x2d859c)||this[_0x4441eb(0x1ab)](_0x2d859c);}),this[_0x2c9ae1(0x187)][_0x2c9ae1(0x176)](_0x3b08ea['UniverInstanceType'][_0x2c9ae1(0x1bd)])['pipe'](_0x1fbc4f[_0x2c9ae1(0x1d8)](this[_0x2c9ae1(0x179)]))[_0x2c9ae1(0x18d)](_0x811623=>{const _0x1849f6=_0x2c9ae1,_0x486abd=_0x811623[_0x1849f6(0x1ea)](),_0x396b93=this[_0x1849f6(0x1b9)][_0x1849f6(0x258)](_0x486abd);_0x396b93==null||_0x396b93['dispose']();});}async[_0x5eb223(0x1ab)](_0x59ca2e){const _0x56971e=_0x5eb223,_0x237285=await this['_collabSessionService'][_0x56971e(0x24f)](_0x59ca2e),_0x1c3d20=this[_0x56971e(0x19c)]['createInstance'](_0x14c64b[_0x56971e(0x17e)],_0x59ca2e,_0x237285);return _0x1c3d20[_0x56971e(0x17f)](),this[_0x56971e(0x1b9)][_0x56971e(0x20c)](_0x59ca2e,_0x1c3d20),_0x1c3d20;}},_0x14c64b[_0x5eb223(0x1fa)]=_0x1cfc5e([_0x25ca2a(0x0,_0x3b08ea['IUniverInstanceService']),_0x25ca2a(0x1,_0x3b08ea[_0x5eb223(0x1c4)](_0x3b08ea[_0x5eb223(0x229)])),_0x25ca2a(0x2,_0x3b08ea['Inject'](_0x40969f[_0x5eb223(0x193)]))],_0x14c64b[_0x5eb223(0x1fa)]);var _0x43b619=(_0x5d57bb=>(_0x5d57bb[_0x5eb223(0x22b)]='offline',_0x5d57bb['IDLE']=_0x5eb223(0x17c),_0x5d57bb[_0x5eb223(0x231)]='following',_0x5d57bb['NOT_FOLLOWING']=_0x5eb223(0x1a2),_0x5d57bb[_0x5eb223(0x1e7)]=_0x5eb223(0x237),_0x5d57bb))(_0x43b619||{});const _0x4b9604=_0x5eb223(0x253),_0x4e8a3f=0xc8;_0x14c64b[_0x5eb223(0x17e)]=class extends _0x3b08ea[_0x5eb223(0x243)]{constructor(_0x57ff91,_0x376199,_0x2c392f,_0x3c3a62,_0x452cd9){const _0x42fe3e=_0x5eb223;super(),_0x1e0155(this,_0x42fe3e(0x251),new _0x116976[(_0x42fe3e(0x20b))](_0x42fe3e(0x17c))),_0x1e0155(this,_0x42fe3e(0x1b7),this[_0x42fe3e(0x251)][_0x42fe3e(0x178)]()),_0x1e0155(this,'_init',!0x1),_0x1e0155(this,_0x42fe3e(0x1c3),null),_0x1e0155(this,_0x42fe3e(0x240),null),(this[_0x42fe3e(0x24b)]=_0x57ff91,this[_0x42fe3e(0x21d)]=_0x376199,this[_0x42fe3e(0x208)]=_0x2c392f,this[_0x42fe3e(0x1b0)]=_0x3c3a62,this['_commandService']=_0x452cd9);}get[_0x5eb223(0x230)](){const _0x1bc0ba=_0x5eb223;return this[_0x1bc0ba(0x251)][_0x1bc0ba(0x1dc)]();}['dispose'](){const _0x1e39d2=_0x5eb223;var _0x239707;(_0x239707=this[_0x1e39d2(0x1c3)])==null||_0x239707[_0x1e39d2(0x246)](),this[_0x1e39d2(0x251)]['next']('idle'),this[_0x1e39d2(0x251)][_0x1e39d2(0x1c6)]();}[_0x5eb223(0x1a9)](){const _0x1fa8ec=_0x5eb223;return this[_0x1fa8ec(0x230)];}[_0x5eb223(0x17f)](){const _0x13bac7=_0x5eb223;this[_0x13bac7(0x1e2)]||(this[_0x13bac7(0x1e2)]=!0x0,this[_0x13bac7(0x21d)][_0x13bac7(0x185)][_0x13bac7(0x1dd)](_0x1fbc4f[_0x13bac7(0x1d8)](this[_0x13bac7(0x179)]))['subscribe'](_0x3a5d43=>{const _0x41a405=_0x13bac7;switch(_0x3a5d43){case _0x40969f[_0x41a405(0x1cb)][_0x41a405(0x22b)]:this[_0x41a405(0x1f8)]();break;case _0x40969f[_0x41a405(0x1cb)]['ONLINE']:this[_0x41a405(0x198)]();break;}}),this[_0x13bac7(0x21d)][_0x13bac7(0x1e3)][_0x13bac7(0x1dd)](_0x1fbc4f[_0x13bac7(0x1d8)](this['dispose$']))[_0x13bac7(0x18d)](_0x44c2f7=>{const _0xafbeed=_0x13bac7,{eventID:_0x38d204}=_0x44c2f7;switch(_0x38d204){case _0x783a72[_0xafbeed(0x17b)]['LIVESHARE_NEW_HOST']:this[_0xafbeed(0x191)](_0x44c2f7);break;case _0x783a72[_0xafbeed(0x17b)][_0xafbeed(0x215)]:this[_0xafbeed(0x1da)](_0x44c2f7);break;case _0x783a72['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0xafbeed(0x1ec)]();break;case _0x783a72[_0xafbeed(0x17b)][_0xafbeed(0x194)]:this[_0xafbeed(0x1d7)](_0x44c2f7);break;}}));}[_0x5eb223(0x1b5)](){const _0x16d3f4=_0x5eb223;this[_0x16d3f4(0x21d)][_0x16d3f4(0x1ff)]({'eventID':_0x783a72[_0x16d3f4(0x17b)][_0x16d3f4(0x1fd)],'data':{'unitID':this['_unitID'],'userID':this[_0x16d3f4(0x21d)][_0x16d3f4(0x188)]()}},this[_0x16d3f4(0x24b)]);}[_0x5eb223(0x170)](){const _0x1949a5=_0x5eb223;this['_status']==='presenting'&&(this[_0x1949a5(0x251)]['next'](_0x1949a5(0x17c)),this[_0x1949a5(0x21d)][_0x1949a5(0x1ff)]({'eventID':_0x783a72[_0x1949a5(0x17b)][_0x1949a5(0x1c2)],'data':{'unitID':this['_unitID']}},this[_0x1949a5(0x24b)]));}['startFollowing'](){const _0x3e3262=_0x5eb223;this[_0x3e3262(0x230)]===_0x3e3262(0x1a2)&&(this[_0x3e3262(0x251)][_0x3e3262(0x1d1)](_0x3e3262(0x23f)),this[_0x3e3262(0x24a)]());}[_0x5eb223(0x25a)](){const _0x52e193=_0x5eb223;this[_0x52e193(0x230)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x307379){const _0x377977=_0x5eb223,{presenter:_0x22f236}=_0x307379[_0x377977(0x242)],_0x4a86bb=this[_0x377977(0x21d)][_0x377977(0x188)]();this[_0x377977(0x240)]=_0x22f236,_0x22f236===_0x4a86bb?(this['_stopFollowing'](),this[_0x377977(0x207)]()):this[_0x377977(0x230)]!==_0x377977(0x1a2)&&(this[_0x377977(0x206)](),this[_0x377977(0x24a)]());}[_0x5eb223(0x212)](){const _0x530a2d=_0x5eb223,_0x2e4d2a={'eventID':_0x783a72[_0x530a2d(0x17b)][_0x530a2d(0x22c)]};this['_collabSession']['send'](_0x2e4d2a,this[_0x530a2d(0x24b)]);}[_0x5eb223(0x1ec)](){const _0x4f2d9f=_0x5eb223;this[_0x4f2d9f(0x240)]=null,this[_0x4f2d9f(0x230)]!==_0x4f2d9f(0x237)&&this[_0x4f2d9f(0x1cc)]();}['_handleNewChangeSets'](_0x6e86d5){const _0x635e72=_0x5eb223;if(this[_0x635e72(0x230)]==='following'&&this['_presenter']===_0x6e86d5['data'][_0x635e72(0x222)]){const _0x28e984=_0x783a72[_0x635e72(0x200)](_0x6e86d5[_0x635e72(0x242)])[_0x635e72(0x1d2)][_0x635e72(0x249)]()[_0x635e72(0x192)](_0xa86460=>_0xa86460['id']===_0x251183[_0x635e72(0x22f)]['id']);if(_0x28e984){const _0x4d5b47=_0x28e984[_0x635e72(0x181)][_0x635e72(0x171)],_0x4863cb=_0x28e984[_0x635e72(0x181)][_0x635e72(0x18a)]['id'];setTimeout(()=>{const _0x3e365a=_0x635e72;this[_0x3e365a(0x18e)]['executeCommand'](_0x251183[_0x3e365a(0x24d)]['id'],{'unitId':_0x4d5b47,'subUnitId':_0x4863cb},{'fromCollab':!0x0});});}}}[_0x5eb223(0x207)](){const _0x463a20=_0x5eb223;this[_0x463a20(0x251)][_0x463a20(0x1d1)]('presenting');const _0xb76fbb=new Map(),_0x5559a0=this[_0x463a20(0x1c3)]=new _0x3b08ea['DisposableCollection']();_0x5559a0[_0x463a20(0x16e)](_0x3b08ea[_0x463a20(0x1b4)](()=>{const _0xc35cf7=_0x463a20;_0xb76fbb[_0xc35cf7(0x1f0)](_0x46f5c7=>_0x46f5c7['complete']()),_0xb76fbb[_0xc35cf7(0x1a7)]();})),_0x5559a0[_0x463a20(0x16e)](this[_0x463a20(0x18e)]['onCommandExecuted'](_0x812a9e=>{const _0x3c6fc4=_0x463a20;var _0x4ce1d4;if(_0x812a9e[_0x3c6fc4(0x239)]!==_0x3b08ea[_0x3c6fc4(0x214)][_0x3c6fc4(0x217)]||!this['_liveShareService']['shouldShareOperation'](_0x812a9e['id']))return;const {id:_0x4d88a2}=_0x812a9e;let _0xe32717;_0xb76fbb[_0x3c6fc4(0x1d4)](_0x4d88a2)?_0xe32717=_0xb76fbb['get'](_0x4d88a2):(_0xe32717=new _0x116976[(_0x3c6fc4(0x1a1))](),_0xb76fbb[_0x3c6fc4(0x20c)](_0x4d88a2,_0xe32717),_0xe32717[_0x3c6fc4(0x1dd)](_0x1fbc4f['throttleTime']((_0x4ce1d4=this[_0x3c6fc4(0x208)]['getConfig'](_0x4b9604))!=null?_0x4ce1d4:_0x4e8a3f,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x54f501=>{const _0x3079e7=_0x3c6fc4;this[_0x3079e7(0x21d)][_0x3079e7(0x1ff)]({'eventID':_0x783a72[_0x3079e7(0x17b)][_0x3079e7(0x215)],'data':{'unitID':this[_0x3079e7(0x24b)],'operations':{[_0x54f501['id']]:{'id':_0x54f501['id'],'params':JSON[_0x3079e7(0x218)](_0x54f501[_0x3079e7(0x181)])}}}},this[_0x3079e7(0x24b)]);})),_0xe32717[_0x3c6fc4(0x1d1)](_0x812a9e);})),this[_0x463a20(0x1b0)][_0x463a20(0x1a4)](this[_0x463a20(0x24b)])['forEach'](_0x9f9535=>this[_0x463a20(0x21d)][_0x463a20(0x1ff)]({'eventID':_0x783a72['CollaborationEvent'][_0x463a20(0x215)],'data':{'unitID':this[_0x463a20(0x24b)],'operations':{[_0x9f9535['id']]:{'id':_0x9f9535['id'],'params':JSON[_0x463a20(0x218)](_0x9f9535[_0x463a20(0x181)])}}}},this[_0x463a20(0x24b)]));}['_stopPresenting'](){const _0x32deb3=_0x5eb223;var _0x447e1b;this[_0x32deb3(0x251)][_0x32deb3(0x1d1)](_0x32deb3(0x17c)),(_0x447e1b=this['_commandDisposable'])==null||_0x447e1b[_0x32deb3(0x246)](),this[_0x32deb3(0x1c3)]=null;}[_0x5eb223(0x24a)](){const _0xd68181=_0x5eb223;var _0x25be54;(_0x25be54=this[_0xd68181(0x1c3)])==null||_0x25be54['dispose'](),this[_0xd68181(0x251)][_0xd68181(0x1d1)](_0xd68181(0x23f));}['_beIdle'](){const _0x42abe3=_0x5eb223;var _0x15e5f5;this['_status$'][_0x42abe3(0x1d1)](_0x42abe3(0x17c)),(_0x15e5f5=this['_commandDisposable'])==null||_0x15e5f5[_0x42abe3(0x246)](),this[_0x42abe3(0x1c3)]=null;}[_0x5eb223(0x22a)](){const _0x5531a8=_0x5eb223;var _0x26c7c8;this[_0x5531a8(0x251)][_0x5531a8(0x1d1)](_0x5531a8(0x1a2)),(_0x26c7c8=this['_commandDisposable'])==null||_0x26c7c8[_0x5531a8(0x246)]();}[_0x5eb223(0x1da)](_0x4b248a){const _0x48c5d4=_0x5eb223;if(['presenting',_0x48c5d4(0x1a2),_0x48c5d4(0x173)][_0x48c5d4(0x18c)](this[_0x48c5d4(0x230)])||!_0x4b248a['data']['presenter']||_0x4b248a[_0x48c5d4(0x242)][_0x48c5d4(0x1b2)]===this[_0x48c5d4(0x21d)]['getMemberID']())return;this[_0x48c5d4(0x230)]==='idle'&&this[_0x48c5d4(0x24a)]();const _0x40448f=_0x4b248a[_0x48c5d4(0x242)][_0x48c5d4(0x1f2)];Object[_0x48c5d4(0x20a)](_0x40448f)[_0x48c5d4(0x1f0)](_0x527575=>{const _0x3a4b80=_0x48c5d4;this['_commandService'][_0x3a4b80(0x21e)](_0x527575['id'],_0x527575[_0x3a4b80(0x181)]?JSON['parse'](_0x527575[_0x3a4b80(0x181)]):null,{'fromCollab':!0x0});});}[_0x5eb223(0x1f8)](){const _0x731ee2=_0x5eb223;var _0x3dea1e;this['_status$'][_0x731ee2(0x1d1)](_0x731ee2(0x173)),(_0x3dea1e=this['_commandDisposable'])==null||_0x3dea1e[_0x731ee2(0x246)]();}[_0x5eb223(0x198)](){const _0x9aee88=_0x5eb223;this['_status$'][_0x9aee88(0x1d1)]('idle'),this[_0x9aee88(0x212)]();}},_0x14c64b['LiveShareCoordinator']=_0x1cfc5e([_0x25ca2a(0x2,_0x3b08ea[_0x5eb223(0x1c1)]),_0x25ca2a(0x3,_0x3b08ea['Inject'](_0x17df7c)),_0x25ca2a(0x4,_0x3b08ea[_0x5eb223(0x195)])],_0x14c64b['LiveShareCoordinator']);function _0x222f8b(){const _0x41b199=_0x5eb223,_0x5b8602=_0x38aee4[_0x41b199(0x236)](_0x14c64b[_0x41b199(0x1fa)]),_0x6d19e=_0x38aee4[_0x41b199(0x236)](_0x3b08ea[_0x41b199(0x172)]),_0x441f3b=_0x38aee4['useObservable'](()=>_0x6d19e[_0x41b199(0x202)](_0x3b08ea[_0x41b199(0x1ee)][_0x41b199(0x1bd)]),void 0x0,!0x1,[]),[_0x211a3e,_0x363399]=_0x1f34a2[_0x41b199(0x1f9)](null),[_0x2be25d,_0x9d6322]=_0x1f34a2[_0x41b199(0x1f9)](_0x43b619['IDLE']),_0x2ee513=_0x1f34a2[_0x41b199(0x227)](null);return _0x1f34a2['useEffect'](()=>(_0x441f3b&&_0x5b8602[_0x41b199(0x224)](_0x441f3b[_0x41b199(0x1ea)]())[_0x41b199(0x184)](_0x2a5852=>{const _0x595bec=_0x41b199;_0x363399(_0x2a5852),_0x2ee513[_0x595bec(0x259)]=_0x2a5852[_0x595bec(0x1b7)][_0x595bec(0x18d)](_0x225aa4=>{_0x9d6322(_0x225aa4);});}),()=>{const _0x129c9f=_0x41b199;var _0x44751b;(_0x44751b=_0x2ee513['current'])==null||_0x44751b[_0x129c9f(0x1a0)](),_0x2ee513[_0x129c9f(0x259)]=null;}),[_0x441f3b,_0x5b8602]),_0x211a3e?_0x7a8eef['jsx'](_0x52db5b[_0x41b199(0x1aa)],{'align':_0x41b199(0x189),'disabled':_0x2be25d===_0x43b619[_0x41b199(0x22b)],'className':_0x41b199(0x21b),'overlay':_0x7a8eef[_0x41b199(0x1f1)](_0x2f49e5,{'status':_0x2be25d,'coordinator':_0x211a3e}),'children':_0x7a8eef[_0x41b199(0x1f1)](_0x41b199(0x22d),{'className':_0x52db5b['clsx'](_0x41b199(0x234),{'univer-cursor-not-allowed':_0x2be25d===_0x43b619['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2be25d!==_0x43b619[_0x41b199(0x22b)]}),'type':'button','children':_0x7a8eef[_0x41b199(0x1f1)](_0x1f8833,{'className':'univer-size-4'})})}):null;}function _0x2f49e5(_0x38cec3){const _0x311d1b=_0x5eb223,{status:_0x3854ab,coordinator:_0x178f6f}=_0x38cec3;switch(_0x3854ab){case _0x43b619[_0x311d1b(0x1ce)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x536f7f,{'coordinator':_0x178f6f});case _0x43b619[_0x311d1b(0x231)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x108732,{'coordinator':_0x178f6f});case _0x43b619[_0x311d1b(0x1d0)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x509845,{'coordinator':_0x178f6f});case _0x43b619[_0x311d1b(0x22b)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x3e48c9,{});case _0x43b619[_0x311d1b(0x1e7)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x18d8ad,{'coordinator':_0x178f6f});default:return null;}}function _0x536f7f(_0x224566){const _0x5f35b0=_0x5eb223,{coordinator:_0x4d1370}=_0x224566;return _0x7a8eef[_0x5f35b0(0x1be)](_0x7a8eef[_0x5f35b0(0x199)],{'children':[_0x7a8eef[_0x5f35b0(0x1f1)](_0x5f35b0(0x16d),{'className':_0x5f35b0(0x223),'children':_0x5f35b0(0x245)}),_0x7a8eef[_0x5f35b0(0x1f1)](_0x52db5b['Button'],{'onClick':()=>_0x4d1370[_0x5f35b0(0x1b5)](),'children':_0x5f35b0(0x220)})]});}function _0x108732(_0x57be52){const _0x1fb9ef=_0x5eb223,{coordinator:_0xfa032}=_0x57be52;return _0x7a8eef['jsxs'](_0x7a8eef[_0x1fb9ef(0x199)],{'children':[_0x7a8eef[_0x1fb9ef(0x1f1)](_0x1fb9ef(0x16d),{'className':_0x1fb9ef(0x223),'children':_0x1fb9ef(0x247)}),_0x7a8eef[_0x1fb9ef(0x1f1)](_0x52db5b[_0x1fb9ef(0x1c5)],{'onClick':()=>_0xfa032[_0x1fb9ef(0x25a)](),'children':_0x1fb9ef(0x1a5)})]});}function _0x509845(_0x323bce){const _0x586118=_0x5eb223,{coordinator:_0x1dcb1e}=_0x323bce;return _0x7a8eef['jsxs'](_0x7a8eef[_0x586118(0x199)],{'children':[_0x7a8eef[_0x586118(0x1f1)](_0x586118(0x16d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x586118(0x1c0)}),_0x7a8eef[_0x586118(0x1f1)](_0x52db5b[_0x586118(0x1c5)],{'variant':_0x586118(0x1e1),'onClick':()=>_0x1dcb1e[_0x586118(0x182)](),'children':_0x586118(0x174)})]});}function _0x18d8ad(_0x185021){const _0x1c4b9c=_0x5eb223,{coordinator:_0x33866d}=_0x185021;return _0x7a8eef[_0x1c4b9c(0x1be)](_0x7a8eef[_0x1c4b9c(0x199)],{'children':[_0x7a8eef['jsx'](_0x1c4b9c(0x16d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c4b9c(0x257)}),_0x7a8eef[_0x1c4b9c(0x1f1)](_0x52db5b[_0x1c4b9c(0x1c5)],{'variant':'default','onClick':()=>_0x33866d[_0x1c4b9c(0x170)](),'children':'Stop\x20presenting'})]});}function _0x3e48c9(){const _0x2eeb7a=_0x5eb223;return _0x7a8eef[_0x2eeb7a(0x1f1)](_0x7a8eef['Fragment'],{'children':_0x2eeb7a(0x23c)});}var _0x18e130=Object[_0x5eb223(0x19f)],_0x1f4784=(_0x5c180c,_0x464a43,_0x3bbe3d,_0x3b5033)=>{const _0x6d684b=_0x5eb223;for(var _0x2e4df6=_0x3b5033>0x1?void 0x0:_0x3b5033?_0x18e130(_0x464a43,_0x3bbe3d):_0x464a43,_0x1a6165=_0x5c180c[_0x6d684b(0x183)]-0x1,_0x11d446;_0x1a6165>=0x0;_0x1a6165--)(_0x11d446=_0x5c180c[_0x1a6165])&&(_0x2e4df6=_0x11d446(_0x2e4df6)||_0x2e4df6);return _0x2e4df6;},_0x515fdf=(_0x3045af,_0x2acbe4)=>(_0x56e5f1,_0x49d59d)=>_0x2acbe4(_0x56e5f1,_0x49d59d,_0x3045af);_0x14c64b['DesktopLiveShareController']=class extends _0x3b08ea[_0x5eb223(0x1a6)]{constructor(_0x211729,_0x28c858){const _0x5450c6=_0x5eb223;super(),this[_0x5450c6(0x19c)]=_0x211729,this['_uiPartsService']=_0x28c858,this[_0x5450c6(0x1e8)]();}[_0x5eb223(0x1e8)](){const _0x581424=_0x5eb223;this[_0x581424(0x24e)](this['_uiPartsService'][_0x581424(0x1ae)](_0x38aee4[_0x581424(0x20f)][_0x581424(0x23b)],()=>_0x38aee4[_0x581424(0x22e)](_0x222f8b,this[_0x581424(0x19c)])));}},_0x14c64b['DesktopLiveShareController']=_0x1f4784([_0x515fdf(0x0,_0x3b08ea[_0x5eb223(0x1c4)](_0x3b08ea[_0x5eb223(0x229)])),_0x515fdf(0x1,_0x38aee4['IUIPartsService'])],_0x14c64b[_0x5eb223(0x18f)]);const _0x29b329=_0x5eb223(0x1e6),_0x8b2a92={};var _0x86c6fa=Object[_0x5eb223(0x19f)],_0x1bf6a5=(_0x54aac9,_0x3a6d9b,_0xb4298e,_0x4a1cbf)=>{const _0x2b8e23=_0x5eb223;for(var _0x425472=_0x4a1cbf>0x1?void 0x0:_0x4a1cbf?_0x86c6fa(_0x3a6d9b,_0xb4298e):_0x3a6d9b,_0x57ddcb=_0x54aac9[_0x2b8e23(0x183)]-0x1,_0x557d2c;_0x57ddcb>=0x0;_0x57ddcb--)(_0x557d2c=_0x54aac9[_0x57ddcb])&&(_0x425472=_0x557d2c(_0x425472)||_0x425472);return _0x425472;},_0x2abed2=(_0x2cebb0,_0x7f8287)=>(_0x6de0d1,_0x13db94)=>_0x7f8287(_0x6de0d1,_0x13db94,_0x2cebb0);let _0x201342=class extends _0x3b08ea['Disposable']{constructor(_0xb7e199){const _0x2aaa32=_0x5eb223;super(),this['_liveShareService']=_0xb7e199,this[_0x2aaa32(0x1e2)]();}['_init'](){const _0x559dfd=_0x5eb223;[_0x192478['SetZoomRatioOperation']['id'],_0x192478['SetScrollOperation']['id'],_0x251183[_0x559dfd(0x24d)]['id']][_0x559dfd(0x1f0)](_0x1298f3=>{const _0x3ab413=_0x559dfd;this[_0x3ab413(0x24e)](this[_0x3ab413(0x1b0)]['registerSharedOperation'](_0x1298f3));});}};_0x201342=_0x1bf6a5([_0x2abed2(0x0,_0x3b08ea[_0x5eb223(0x1c4)](_0x17df7c))],_0x201342);var _0x5e864e=Object['defineProperty'],_0x9ebeef=Object[_0x5eb223(0x19f)],_0x59ae8f=(_0x3da65f,_0x43e3e6,_0x4cbd48)=>_0x43e3e6 in _0x3da65f?_0x5e864e(_0x3da65f,_0x43e3e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cbd48}):_0x3da65f[_0x43e3e6]=_0x4cbd48,_0xc7c0ed=(_0x43922a,_0x3ed0d2,_0x5ca36a,_0x30e9f0)=>{const _0x2b86e2=_0x5eb223;for(var _0x5c2dc4=_0x30e9f0>0x1?void 0x0:_0x30e9f0?_0x9ebeef(_0x3ed0d2,_0x5ca36a):_0x3ed0d2,_0x56083a=_0x43922a[_0x2b86e2(0x183)]-0x1,_0x29d316;_0x56083a>=0x0;_0x56083a--)(_0x29d316=_0x43922a[_0x56083a])&&(_0x5c2dc4=_0x29d316(_0x5c2dc4)||_0x5c2dc4);return _0x5c2dc4;},_0x5d3601=(_0x3ef1e9,_0x1e9747)=>(_0x19e167,_0x2c8f9b)=>_0x1e9747(_0x19e167,_0x2c8f9b,_0x3ef1e9),_0x41a621=(_0x25fa07,_0x1e979d,_0x9e25b6)=>_0x59ae8f(_0x25fa07,typeof _0x1e979d!=_0x5eb223(0x205)?_0x1e979d+'':_0x1e979d,_0x9e25b6);const _0xd872ed=_0x5eb223(0x256);_0x14c64b[_0x5eb223(0x196)]=class extends _0x3b08ea[_0x5eb223(0x241)]{constructor(_0x50066d=_0x8b2a92,_0x5b10b6,_0x86d5c5){const _0x2ca827=_0x5eb223;super(),this[_0x2ca827(0x19d)]=_0x50066d,this[_0x2ca827(0x19c)]=_0x5b10b6,this[_0x2ca827(0x208)]=_0x86d5c5;const {..._0x2148f9}=_0x3b08ea['merge']({},_0x8b2a92,this[_0x2ca827(0x19d)]);this['_configService']['setConfig'](_0x29b329,_0x2148f9);}[_0x5eb223(0x248)](){const _0x2a9366=_0x5eb223;_0x3b08ea[_0x2a9366(0x23e)](this[_0x2a9366(0x19c)],_0x3b08ea[_0x2a9366(0x1bc)]([[_0x17df7c],[_0x14c64b[_0x2a9366(0x1fa)]],[_0x201342],[_0x14c64b['DesktopLiveShareController']]],this[_0x2a9366(0x19d)]['override'])),_0x3b08ea[_0x2a9366(0x235)](this['_injector'],[[_0x201342]]);}[_0x5eb223(0x20e)](){const _0x5af82a=_0x5eb223;_0x3b08ea[_0x5af82a(0x235)](this[_0x5af82a(0x19c)],[[_0x14c64b[_0x5af82a(0x18f)]]]);}},_0x41a621(_0x14c64b[_0x5eb223(0x196)],_0x5eb223(0x239),_0x3b08ea[_0x5eb223(0x1ee)][_0x5eb223(0x1c9)]),_0x41a621(_0x14c64b['UniverLiveSharePlugin'],_0x5eb223(0x213),_0xd872ed),_0x14c64b[_0x5eb223(0x196)]=_0xc7c0ed([_0x3b08ea[_0x5eb223(0x20d)](_0x40969f[_0x5eb223(0x238)]),_0x5d3601(0x1,_0x3b08ea[_0x5eb223(0x1c4)](_0x3b08ea[_0x5eb223(0x229)])),_0x5d3601(0x2,_0x3b08ea['IConfigService'])],_0x14c64b[_0x5eb223(0x196)]),_0x14c64b[_0x5eb223(0x17d)]=_0x222f8b,_0x14c64b[_0x5eb223(0x1c8)]=_0x17df7c,_0x14c64b['LiveShareStatus']=_0x43b619,Object['defineProperty'](_0x14c64b,Symbol[_0x5eb223(0x21c)],{'value':_0x5eb223(0x1d9)});}));
|
|
1
|
+
(function(_0x25a5f1,_0x5ee2a0){const _0x201ab9=_0xf61e,_0x38baec=_0x25a5f1();while(!![]){try{const _0x34a655=parseInt(_0x201ab9(0x22d))/0x1*(-parseInt(_0x201ab9(0x26c))/0x2)+-parseInt(_0x201ab9(0x299))/0x3*(parseInt(_0x201ab9(0x256))/0x4)+parseInt(_0x201ab9(0x2a7))/0x5+-parseInt(_0x201ab9(0x208))/0x6+-parseInt(_0x201ab9(0x222))/0x7*(-parseInt(_0x201ab9(0x1c6))/0x8)+parseInt(_0x201ab9(0x28c))/0x9+-parseInt(_0x201ab9(0x27f))/0xa;if(_0x34a655===_0x5ee2a0)break;else _0x38baec['push'](_0x38baec['shift']());}catch(_0x415d9f){_0x38baec['push'](_0x38baec['shift']());}}}(_0x29b1,0xd7093),function(_0x458a04,_0x3f8ddf){const _0x2c40ce=_0xf61e;typeof exports==_0x2c40ce(0x210)&&typeof module<'u'?_0x3f8ddf(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x2c40ce(0x23a)&&define[_0x2c40ce(0x28a)]?define([_0x2c40ce(0x288),'@univerjs/core','@univerjs/ui',_0x2c40ce(0x25d),_0x2c40ce(0x1bf),_0x2c40ce(0x1e4),_0x2c40ce(0x232),_0x2c40ce(0x1d4),'@univerjs/sheets',_0x2c40ce(0x1c4),_0x2c40ce(0x1ce),_0x2c40ce(0x1e9)],_0x3f8ddf):(_0x458a04=typeof globalThis<'u'?globalThis:_0x458a04||self,_0x3f8ddf(_0x458a04[_0x2c40ce(0x1f2)]={},_0x458a04[_0x2c40ce(0x1fe)],_0x458a04[_0x2c40ce(0x20a)],_0x458a04['React'],_0x458a04[_0x2c40ce(0x202)],_0x458a04[_0x2c40ce(0x207)],_0x458a04[_0x2c40ce(0x274)],_0x458a04[_0x2c40ce(0x1ec)],_0x458a04[_0x2c40ce(0x225)],_0x458a04[_0x2c40ce(0x1c4)],_0x458a04[_0x2c40ce(0x1c4)]['operators'],_0x458a04['UniverSheetsUi']));}(this,function(_0x23ec27,_0xca07eb,_0x1e8daf,_0x15af52,_0x342ef4,_0x9610cd,_0x4c8e7e,_0x54692a,_0x4e04ed,_0x11b20c,_0x46ba07,_0x14ee55){'use strict';const _0x5cf110=_0xf61e;var _0x2675bf=Object[_0x5cf110(0x22f)],_0x406f52=(_0x12c360,_0xf9a733,_0x34d84d)=>_0xf9a733 in _0x12c360?_0x2675bf(_0x12c360,_0xf9a733,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34d84d}):_0x12c360[_0xf9a733]=_0x34d84d,_0x17060a=(_0x220037,_0x3f9782,_0x4a082e)=>_0x406f52(_0x220037,typeof _0x3f9782!=_0x5cf110(0x1c0)?_0x3f9782+'':_0x3f9782,_0x4a082e);function _0x5c4b67({ref:_0xa409c6,..._0x48372f}){const _0x582d4e=_0x5cf110,{icon:_0x4dbada,id:_0x48c800,className:_0x47a455,extend:_0x8a9f3b,..._0x5625ec}=_0x48372f,_0x3006d5=(_0x582d4e(0x26a)+_0x48c800+'\x20'+(_0x47a455||''))[_0x582d4e(0x27e)](),_0x2df804=_0x9610cd[_0x582d4e(0x278)]('_'+_0x50aa13());return _0x450273(_0x4dbada,''+_0x48c800,{'defIds':_0x4dbada['defIds'],'idSuffix':_0x2df804[_0x582d4e(0x2a1)]},{'ref':_0xa409c6,'className':_0x3006d5,..._0x5625ec},_0x8a9f3b);}function _0x450273(_0x57086e,_0x44b1ec,_0x5a8eaa,_0x3a5579,_0x231daf){const _0x79af4=_0x5cf110;return _0x9610cd['createElement'](_0x57086e[_0x79af4(0x23c)],{'key':_0x44b1ec,..._0x5142da(_0x57086e,_0x5a8eaa,_0x231daf),..._0x3a5579},(_0x20ed56(_0x57086e,_0x5a8eaa)[_0x79af4(0x260)]||[])[_0x79af4(0x1cc)]((_0x4b5498,_0x229bb3)=>_0x450273(_0x4b5498,_0x44b1ec+'-'+_0x57086e[_0x79af4(0x23c)]+'-'+_0x229bb3,_0x5a8eaa,void 0x0,_0x231daf)));}function _0x5142da(_0x532f5e,_0xaa98bd,_0x11e88b){const _0x515516=_0x5cf110,_0x2b949b={..._0x532f5e['attrs']};_0x11e88b!=null&&_0x11e88b[_0x515516(0x28d)]&&_0x2b949b['fill']===_0x515516(0x28d)&&(_0x2b949b[_0x515516(0x29f)]=_0x11e88b[_0x515516(0x28d)]),_0x532f5e[_0x515516(0x23c)]==='mask'&&_0x2b949b['id']&&(_0x2b949b['id']=_0x2b949b['id']+_0xaa98bd[_0x515516(0x24a)]),Object['entries'](_0x2b949b)[_0x515516(0x273)](([_0x3c28c8,_0x50a9d8])=>{const _0xba718b=_0x515516;_0x3c28c8===_0xba718b(0x224)&&typeof _0x50a9d8==_0xba718b(0x2a3)&&(_0x2b949b[_0x3c28c8]=_0x50a9d8[_0xba718b(0x262)](/url\(#(.*)\)/,_0xba718b(0x237)+_0xaa98bd['idSuffix']+')'));});const {defIds:_0x50c15f}=_0xaa98bd;return!_0x50c15f||_0x50c15f[_0x515516(0x242)]===0x0||(_0x532f5e[_0x515516(0x23c)]===_0x515516(0x1f6)&&_0x2b949b['xlink:href']&&(_0x2b949b['xlink:href']=_0x2b949b[_0x515516(0x1e8)]+_0xaa98bd[_0x515516(0x24a)]),Object[_0x515516(0x26b)](_0x2b949b)['forEach'](([_0x51ac02,_0x462a2f])=>{const _0x52b64e=_0x515516;typeof _0x462a2f==_0x52b64e(0x2a3)&&(_0x2b949b[_0x51ac02]=_0x462a2f[_0x52b64e(0x262)](/url\(#(.*)\)/,_0x52b64e(0x237)+_0xaa98bd[_0x52b64e(0x24a)]+')'));})),_0x2b949b;}function _0x20ed56(_0x27f1e3,_0x255b24){const _0x421ae=_0x5cf110;var _0x2217ad;const {defIds:_0x35677c}=_0x255b24;return!_0x35677c||_0x35677c[_0x421ae(0x242)]===0x0?_0x27f1e3:_0x27f1e3['tag']===_0x421ae(0x1e3)&&((_0x2217ad=_0x27f1e3[_0x421ae(0x260)])!=null&&_0x2217ad[_0x421ae(0x242)])?{..._0x27f1e3,'children':_0x27f1e3[_0x421ae(0x260)][_0x421ae(0x1cc)](_0x5583a1=>typeof _0x5583a1[_0x421ae(0x21a)]['id']==_0x421ae(0x2a3)&&_0x35677c&&_0x35677c[_0x421ae(0x227)](_0x5583a1[_0x421ae(0x21a)]['id'])?{..._0x5583a1,'attrs':{..._0x5583a1[_0x421ae(0x21a)],'id':_0x5583a1[_0x421ae(0x21a)]['id']+_0x255b24[_0x421ae(0x24a)]}}:_0x5583a1)}:_0x27f1e3;}function _0x50aa13(){const _0x7bb693=_0x5cf110;return Math[_0x7bb693(0x1eb)]()['toString'](0x24)[_0x7bb693(0x1fb)](0x2,0x8);}_0x5c4b67['displayName']=_0x5cf110(0x1dc);const _0x43fcc5={'tag':_0x5cf110(0x235),'attrs':{'xmlns':_0x5cf110(0x1c3),'fill':'none','viewBox':_0x5cf110(0x24b),'width':_0x5cf110(0x244),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5cf110(0x233)}},{'tag':_0x5cf110(0x29c),'attrs':{'fill':_0x5cf110(0x255),'d':_0x5cf110(0x1fd),'fillRule':_0x5cf110(0x1d8),'clipRule':_0x5cf110(0x1d8)}}]},_0x3b017d=_0x9610cd[_0x5cf110(0x28e)](function(_0x47f382,_0x270bd4){const _0x491f7f=_0x5cf110;return _0x9610cd[_0x491f7f(0x1cd)](_0x5c4b67,Object[_0x491f7f(0x266)]({},_0x47f382,{'id':_0x491f7f(0x1e5),'ref':_0x270bd4,'icon':_0x43fcc5}));});_0x3b017d[_0x5cf110(0x226)]=_0x5cf110(0x1c2);class _0x3a905a extends _0xca07eb['Disposable']{constructor(){const _0x12a75e=_0x5cf110;super(...arguments),_0x17060a(this,_0x12a75e(0x1d6),new Set()),_0x17060a(this,'_reporters',new Set());}[_0x5cf110(0x265)](_0x4e6374){const _0xcf561b=_0x5cf110;return this['_sharedOperations'][_0xcf561b(0x2a2)](_0x4e6374),_0xca07eb[_0xcf561b(0x1fa)](()=>this[_0xcf561b(0x1d6)]['delete'](_0x4e6374));}[_0x5cf110(0x263)](_0x86728a){const _0x4c6017=_0x5cf110;return this[_0x4c6017(0x205)]['add'](_0x86728a),_0xca07eb[_0x4c6017(0x1fa)](()=>this[_0x4c6017(0x205)]['delete'](_0x86728a));}[_0x5cf110(0x25f)](_0x1d4349){const _0x16cc50=_0x5cf110;return this['_sharedOperations'][_0x16cc50(0x254)](_0x1d4349);}[_0x5cf110(0x228)](_0x13bced){const _0x217702=_0x5cf110;return Array[_0x217702(0x248)](this[_0x217702(0x205)])[_0x217702(0x1cc)](_0x334fd9=>_0x334fd9(_0x13bced));}}var _0x2c36bf=Object[_0x5cf110(0x1d7)],_0x52d0df=(_0x4f02df,_0x1c1b1a,_0xb3e0ed,_0x29340a)=>{const _0x4a3064=_0x5cf110;for(var _0xd50ba6=_0x29340a>0x1?void 0x0:_0x29340a?_0x2c36bf(_0x1c1b1a,_0xb3e0ed):_0x1c1b1a,_0x322193=_0x4f02df[_0x4a3064(0x242)]-0x1,_0x196a06;_0x322193>=0x0;_0x322193--)(_0x196a06=_0x4f02df[_0x322193])&&(_0xd50ba6=_0x196a06(_0xd50ba6)||_0xd50ba6);return _0xd50ba6;},_0x4353bc=(_0x1a3cd1,_0x4cbfcb)=>(_0x335ce7,_0x134bf1)=>_0x4cbfcb(_0x335ce7,_0x134bf1,_0x1a3cd1);_0x23ec27[_0x5cf110(0x1da)]=class extends _0xca07eb[_0x5cf110(0x270)]{constructor(_0x3ba277,_0x350f42,_0x48d231){const _0x38fa45=_0x5cf110;super(),_0x17060a(this,_0x38fa45(0x294),new Map()),(this['_univerInstanceService']=_0x3ba277,this[_0x38fa45(0x20d)]=_0x350f42,this['_collabSessionService']=_0x48d231,this[_0x38fa45(0x1d9)]());}async[_0x5cf110(0x1fc)](_0x47e71c){const _0xf85602=_0x5cf110;return this[_0xf85602(0x294)][_0xf85602(0x254)](_0x47e71c)||await this[_0xf85602(0x1f0)](_0x47e71c),this['_entities'][_0xf85602(0x1c8)](_0x47e71c);}['getLiveShareCoordinatorSync'](_0x49c7c1){const _0xb21a96=_0x5cf110;var _0x4c9704;return(_0x4c9704=this['_entities'][_0xb21a96(0x1c8)](_0x49c7c1))!=null?_0x4c9704:null;}[_0x5cf110(0x1d9)](){const _0x2af4ad=_0x5cf110;this[_0x2af4ad(0x1ef)][_0x2af4ad(0x221)](_0xca07eb[_0x2af4ad(0x201)][_0x2af4ad(0x1dd)])['pipe'](_0x46ba07[_0x2af4ad(0x298)](this[_0x2af4ad(0x26f)]))[_0x2af4ad(0x231)](async _0x25bc5e=>{const _0x1f6578=_0x2af4ad,_0x57203f=_0x25bc5e['getUnitId']();this['_entities'][_0x1f6578(0x254)](_0x57203f)||this[_0x1f6578(0x1f0)](_0x57203f);}),this[_0x2af4ad(0x1ef)][_0x2af4ad(0x2a8)](_0xca07eb[_0x2af4ad(0x201)][_0x2af4ad(0x1dd)])[_0x2af4ad(0x1d0)](_0x46ba07[_0x2af4ad(0x298)](this['dispose$']))['subscribe'](_0x49a77a=>{const _0xf9b585=_0x2af4ad,_0xc9092f=_0x49a77a[_0xf9b585(0x203)](),_0x1ff1a7=this[_0xf9b585(0x294)][_0xf9b585(0x1c8)](_0xc9092f);_0x1ff1a7==null||_0x1ff1a7[_0xf9b585(0x236)]();});}async[_0x5cf110(0x1f0)](_0x1682fc){const _0x1eba43=_0x5cf110,_0x3b83e5=await this[_0x1eba43(0x24c)][_0x1eba43(0x272)](_0x1682fc),_0x226a7a=this[_0x1eba43(0x20d)][_0x1eba43(0x22b)](_0x23ec27['LiveShareCoordinator'],_0x1682fc,_0x3b83e5);return _0x226a7a['init'](),this['_entities'][_0x1eba43(0x27c)](_0x1682fc,_0x226a7a),_0x226a7a;}},_0x23ec27[_0x5cf110(0x1da)]=_0x52d0df([_0x4353bc(0x0,_0xca07eb[_0x5cf110(0x238)]),_0x4353bc(0x1,_0xca07eb[_0x5cf110(0x253)](_0xca07eb[_0x5cf110(0x29a)])),_0x4353bc(0x2,_0xca07eb[_0x5cf110(0x253)](_0x54692a[_0x5cf110(0x220)]))],_0x23ec27[_0x5cf110(0x1da)]);var _0xaeb0d4=(_0x5421d5=>(_0x5421d5[_0x5cf110(0x229)]='offline',_0x5421d5[_0x5cf110(0x1d3)]='idle',_0x5421d5['FOLLOWING']='following',_0x5421d5['NOT_FOLLOWING']='not-following',_0x5421d5['PRESENTING']='presenting',_0x5421d5))(_0xaeb0d4||{});const _0x17cac1='SAME_OPERATION_SHARE_INTERVAL',_0x43f6ed=0xc8;_0x23ec27[_0x5cf110(0x275)]=class extends _0xca07eb[_0x5cf110(0x270)]{constructor(_0x20a24f,_0xec2cdf,_0x1cb027,_0x3454fb,_0xe7f611){const _0x20ebef=_0x5cf110;super(),_0x17060a(this,'_status$',new _0x11b20c[(_0x20ebef(0x26e))](_0x20ebef(0x26d))),_0x17060a(this,'status$',this[_0x20ebef(0x257)][_0x20ebef(0x2a6)]()),_0x17060a(this,'_init',!0x1),_0x17060a(this,_0x20ebef(0x285),null),_0x17060a(this,_0x20ebef(0x282),null),(this['_unitID']=_0x20a24f,this['_collabSession']=_0xec2cdf,this[_0x20ebef(0x216)]=_0x1cb027,this[_0x20ebef(0x1ed)]=_0x3454fb,this[_0x20ebef(0x251)]=_0xe7f611);}get['_status'](){const _0x17bf16=_0x5cf110;return this[_0x17bf16(0x257)][_0x17bf16(0x27d)]();}[_0x5cf110(0x236)](){const _0x5286a3=_0x5cf110;var _0x557312;(_0x557312=this[_0x5286a3(0x285)])==null||_0x557312[_0x5286a3(0x236)](),this[_0x5286a3(0x257)]['next'](_0x5286a3(0x26d)),this[_0x5286a3(0x257)][_0x5286a3(0x280)]();}[_0x5cf110(0x296)](){const _0x4e321f=_0x5cf110;return this[_0x4e321f(0x286)];}[_0x5cf110(0x27a)](){const _0x154274=_0x5cf110;this['_init']||(this['_init']=!0x0,this[_0x154274(0x25c)][_0x154274(0x29e)][_0x154274(0x1d0)](_0x46ba07[_0x154274(0x298)](this['dispose$']))[_0x154274(0x231)](_0x227de6=>{const _0x2918ee=_0x154274;switch(_0x227de6){case _0x54692a[_0x2918ee(0x25b)][_0x2918ee(0x229)]:this[_0x2918ee(0x2a5)]();break;case _0x54692a[_0x2918ee(0x25b)]['ONLINE']:this[_0x2918ee(0x271)]();break;}}),this[_0x154274(0x25c)][_0x154274(0x268)][_0x154274(0x1d0)](_0x46ba07[_0x154274(0x298)](this[_0x154274(0x26f)]))[_0x154274(0x231)](_0x290b48=>{const _0x48a2bc=_0x154274,{eventID:_0xd04a0b}=_0x290b48;switch(_0xd04a0b){case _0x4c8e7e[_0x48a2bc(0x21f)][_0x48a2bc(0x1db)]:this[_0x48a2bc(0x1be)](_0x290b48);break;case _0x4c8e7e[_0x48a2bc(0x21f)][_0x48a2bc(0x281)]:this[_0x48a2bc(0x246)](_0x290b48);break;case _0x4c8e7e[_0x48a2bc(0x21f)][_0x48a2bc(0x24d)]:this[_0x48a2bc(0x211)]();break;case _0x4c8e7e[_0x48a2bc(0x21f)]['NEW_CHANGESETS']:this[_0x48a2bc(0x247)](_0x290b48);break;}}));}['tryStartPresenting'](){const _0xde401d=_0x5cf110;this[_0xde401d(0x25c)][_0xde401d(0x219)]({'eventID':_0x4c8e7e[_0xde401d(0x21f)][_0xde401d(0x289)],'data':{'unitID':this[_0xde401d(0x21d)],'userID':this[_0xde401d(0x25c)][_0xde401d(0x283)]()}},this[_0xde401d(0x21d)]);}[_0x5cf110(0x25a)](){const _0x2998dc=_0x5cf110;this[_0x2998dc(0x286)]===_0x2998dc(0x290)&&(this[_0x2998dc(0x257)][_0x2998dc(0x23e)](_0x2998dc(0x26d)),this['_collabSession']['send']({'eventID':_0x4c8e7e[_0x2998dc(0x21f)][_0x2998dc(0x24d)],'data':{'unitID':this['_unitID']}},this[_0x2998dc(0x21d)]));}[_0x5cf110(0x241)](){const _0x1c9d2a=_0x5cf110;this[_0x1c9d2a(0x286)]==='not-following'&&(this[_0x1c9d2a(0x257)][_0x1c9d2a(0x23e)](_0x1c9d2a(0x1e2)),this['_startFollowing']());}[_0x5cf110(0x269)](){const _0x79612b=_0x5cf110;this[_0x79612b(0x286)]===_0x79612b(0x1e2)&&this[_0x79612b(0x218)]();}[_0x5cf110(0x1be)](_0x101772){const _0x5f0745=_0x5cf110,{presenter:_0x15b00b}=_0x101772[_0x5f0745(0x258)],_0xf01e1a=this[_0x5f0745(0x25c)]['getMemberID']();this[_0x5f0745(0x282)]=_0x15b00b,_0x15b00b===_0xf01e1a?(this[_0x5f0745(0x218)](),this[_0x5f0745(0x1f5)]()):this[_0x5f0745(0x286)]!==_0x5f0745(0x1e7)&&(this[_0x5f0745(0x1c7)](),this[_0x5f0745(0x240)]());}[_0x5cf110(0x1de)](){const _0x29da72=_0x5cf110,_0x358023={'eventID':_0x4c8e7e[_0x29da72(0x21f)][_0x29da72(0x287)]};this[_0x29da72(0x25c)][_0x29da72(0x219)](_0x358023,this[_0x29da72(0x21d)]);}[_0x5cf110(0x211)](){const _0xed917f=_0x5cf110;this[_0xed917f(0x282)]=null,this[_0xed917f(0x286)]!==_0xed917f(0x290)&&this[_0xed917f(0x252)]();}[_0x5cf110(0x247)](_0x9b8eaf){const _0x31b593=_0x5cf110;if(this['_status']==='following'&&this[_0x31b593(0x282)]===_0x9b8eaf[_0x31b593(0x258)][_0x31b593(0x277)]){const _0xecd6c0=_0x4c8e7e[_0x31b593(0x21e)](_0x9b8eaf[_0x31b593(0x258)])[_0x31b593(0x204)][_0x31b593(0x223)]()[_0x31b593(0x245)](_0x1f95e2=>_0x1f95e2['id']===_0x4e04ed[_0x31b593(0x23b)]['id']);if(_0xecd6c0){const _0x12e974=_0xecd6c0[_0x31b593(0x213)]['unitId'],_0x5cc125=_0xecd6c0['params'][_0x31b593(0x20b)]['id'];setTimeout(()=>{const _0x3fe0d2=_0x31b593;this['_commandService'][_0x3fe0d2(0x28f)](_0x4e04ed['SetWorksheetActiveOperation']['id'],{'unitId':_0x12e974,'subUnitId':_0x5cc125},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x48f3ac=_0x5cf110;this[_0x48f3ac(0x257)][_0x48f3ac(0x23e)](_0x48f3ac(0x290));const _0x408d8f=new Map(),_0xe3f142=this[_0x48f3ac(0x285)]=new _0xca07eb['DisposableCollection']();_0xe3f142[_0x48f3ac(0x2a2)](_0xca07eb[_0x48f3ac(0x1fa)](()=>{const _0x122f60=_0x48f3ac;_0x408d8f[_0x122f60(0x273)](_0x335511=>_0x335511[_0x122f60(0x280)]()),_0x408d8f[_0x122f60(0x284)]();})),_0xe3f142['add'](this[_0x48f3ac(0x251)]['onCommandExecuted'](_0x46fe50=>{const _0x8ef12d=_0x48f3ac;var _0x4a848e;if(_0x46fe50[_0x8ef12d(0x230)]!==_0xca07eb[_0x8ef12d(0x1ff)][_0x8ef12d(0x297)]||!this[_0x8ef12d(0x1ed)][_0x8ef12d(0x25f)](_0x46fe50['id']))return;const {id:_0xaa39c7}=_0x46fe50;let _0x2a36db;_0x408d8f[_0x8ef12d(0x254)](_0xaa39c7)?_0x2a36db=_0x408d8f['get'](_0xaa39c7):(_0x2a36db=new _0x11b20c[(_0x8ef12d(0x250))](),_0x408d8f[_0x8ef12d(0x27c)](_0xaa39c7,_0x2a36db),_0x2a36db[_0x8ef12d(0x1d0)](_0x46ba07['throttleTime']((_0x4a848e=this[_0x8ef12d(0x216)][_0x8ef12d(0x29b)](_0x17cac1))!=null?_0x4a848e:_0x43f6ed,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x8ef12d(0x231)](_0x439d47=>{const _0x5c9e39=_0x8ef12d;this[_0x5c9e39(0x25c)][_0x5c9e39(0x219)]({'eventID':_0x4c8e7e[_0x5c9e39(0x21f)][_0x5c9e39(0x281)],'data':{'unitID':this['_unitID'],'operations':{[_0x439d47['id']]:{'id':_0x439d47['id'],'params':JSON[_0x5c9e39(0x1d5)](_0x439d47[_0x5c9e39(0x213)])}}}},this[_0x5c9e39(0x21d)]);})),_0x2a36db[_0x8ef12d(0x23e)](_0x46fe50);})),this[_0x48f3ac(0x1ed)][_0x48f3ac(0x228)](this[_0x48f3ac(0x21d)])[_0x48f3ac(0x273)](_0x1172c2=>this[_0x48f3ac(0x25c)][_0x48f3ac(0x219)]({'eventID':_0x4c8e7e[_0x48f3ac(0x21f)][_0x48f3ac(0x281)],'data':{'unitID':this[_0x48f3ac(0x21d)],'operations':{[_0x1172c2['id']]:{'id':_0x1172c2['id'],'params':JSON['stringify'](_0x1172c2['params'])}}}},this[_0x48f3ac(0x21d)]));}[_0x5cf110(0x1c7)](){const _0x14f060=_0x5cf110;var _0x6aa7a3;this[_0x14f060(0x257)][_0x14f060(0x23e)](_0x14f060(0x26d)),(_0x6aa7a3=this[_0x14f060(0x285)])==null||_0x6aa7a3['dispose'](),this[_0x14f060(0x285)]=null;}[_0x5cf110(0x240)](){const _0x227506=_0x5cf110;var _0xa7b8ec;(_0xa7b8ec=this[_0x227506(0x285)])==null||_0xa7b8ec[_0x227506(0x236)](),this[_0x227506(0x257)]['next'](_0x227506(0x1e2));}['_beIdle'](){const _0x13888f=_0x5cf110;var _0x53bd30;this[_0x13888f(0x257)]['next'](_0x13888f(0x26d)),(_0x53bd30=this[_0x13888f(0x285)])==null||_0x53bd30[_0x13888f(0x236)](),this[_0x13888f(0x285)]=null;}[_0x5cf110(0x218)](){const _0x307a0a=_0x5cf110;var _0xd0e6fe;this[_0x307a0a(0x257)]['next'](_0x307a0a(0x1e7)),(_0xd0e6fe=this[_0x307a0a(0x285)])==null||_0xd0e6fe['dispose']();}[_0x5cf110(0x246)](_0x2345e9){const _0x51de06=_0x5cf110;if([_0x51de06(0x290),_0x51de06(0x1e7),'offline'][_0x51de06(0x227)](this[_0x51de06(0x286)])||!_0x2345e9[_0x51de06(0x258)][_0x51de06(0x1ea)]||_0x2345e9[_0x51de06(0x258)]['presenter']===this['_collabSession'][_0x51de06(0x283)]())return;this['_status']===_0x51de06(0x26d)&&this[_0x51de06(0x240)]();const _0x229ee5=_0x2345e9['data'][_0x51de06(0x276)];Object[_0x51de06(0x295)](_0x229ee5)['forEach'](_0x4f32a6=>{const _0x1c9892=_0x51de06;this[_0x1c9892(0x251)]['executeCommand'](_0x4f32a6['id'],_0x4f32a6[_0x1c9892(0x213)]?JSON['parse'](_0x4f32a6[_0x1c9892(0x213)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x20d97a=_0x5cf110;var _0x16836c;this[_0x20d97a(0x257)][_0x20d97a(0x23e)]('offline'),(_0x16836c=this[_0x20d97a(0x285)])==null||_0x16836c[_0x20d97a(0x236)]();}['_handleOnline'](){const _0x20f20b=_0x5cf110;this[_0x20f20b(0x257)]['next'](_0x20f20b(0x26d)),this[_0x20f20b(0x1de)]();}},_0x23ec27['LiveShareCoordinator']=_0x52d0df([_0x4353bc(0x2,_0xca07eb[_0x5cf110(0x261)]),_0x4353bc(0x3,_0xca07eb[_0x5cf110(0x253)](_0x3a905a)),_0x4353bc(0x4,_0xca07eb[_0x5cf110(0x249)])],_0x23ec27[_0x5cf110(0x275)]);function _0x103f34(){const _0xab5e84=_0x5cf110,_0xea4017=_0x1e8daf[_0xab5e84(0x279)](_0x23ec27[_0xab5e84(0x1da)]),_0x204db1=_0x1e8daf[_0xab5e84(0x279)](_0xca07eb['IUniverInstanceService']),_0x38abbf=_0x1e8daf[_0xab5e84(0x239)](()=>_0x204db1[_0xab5e84(0x212)](_0xca07eb[_0xab5e84(0x201)][_0xab5e84(0x1dd)]),void 0x0,!0x1,[]),[_0x52aace,_0x1e25b9]=_0x9610cd[_0xab5e84(0x1e0)](null),[_0x271209,_0x2f5214]=_0x9610cd['useState'](_0xaeb0d4['IDLE']),_0xa7d5be=_0x9610cd[_0xab5e84(0x278)](null);return _0x9610cd[_0xab5e84(0x1df)](()=>(_0x38abbf&&_0xea4017[_0xab5e84(0x1fc)](_0x38abbf['getUnitId']())['then'](_0x33aa41=>{const _0x3c2a99=_0xab5e84;_0x1e25b9(_0x33aa41),_0xa7d5be[_0x3c2a99(0x2a1)]=_0x33aa41[_0x3c2a99(0x2a0)]['subscribe'](_0x28df14=>{_0x2f5214(_0x28df14);});}),()=>{const _0x29250a=_0xab5e84;var _0x353159;(_0x353159=_0xa7d5be[_0x29250a(0x2a1)])==null||_0x353159['unsubscribe'](),_0xa7d5be[_0x29250a(0x2a1)]=null;}),[_0x38abbf,_0xea4017]),_0x52aace?_0x15af52[_0xab5e84(0x291)](_0x342ef4[_0xab5e84(0x21c)],{'align':_0xab5e84(0x1d2),'disabled':_0x271209===_0xaeb0d4[_0xab5e84(0x229)],'className':_0xab5e84(0x1e1),'overlay':_0x15af52[_0xab5e84(0x291)](_0x5052eb,{'status':_0x271209,'coordinator':_0x52aace}),'children':_0x15af52['jsx'](_0xab5e84(0x20e),{'className':_0x342ef4[_0xab5e84(0x209)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x271209===_0xaeb0d4['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x271209!==_0xaeb0d4[_0xab5e84(0x229)]}),'type':'button','children':_0x15af52[_0xab5e84(0x291)](_0x3b017d,{'className':_0xab5e84(0x1cb)})})}):null;}function _0x5052eb(_0x54b05c){const _0x2279d2=_0x5cf110,{status:_0x4d887c,coordinator:_0x5b6a71}=_0x54b05c;switch(_0x4d887c){case _0xaeb0d4['IDLE']:return _0x15af52['jsx'](_0xbf44df,{'coordinator':_0x5b6a71});case _0xaeb0d4['FOLLOWING']:return _0x15af52['jsx'](_0x4f3d8b,{'coordinator':_0x5b6a71});case _0xaeb0d4[_0x2279d2(0x28b)]:return _0x15af52[_0x2279d2(0x291)](_0xeb4a5,{'coordinator':_0x5b6a71});case _0xaeb0d4['OFFLINE']:return _0x15af52['jsx'](_0x4d2454,{});case _0xaeb0d4[_0x2279d2(0x22a)]:return _0x15af52['jsx'](_0x49dd93,{'coordinator':_0x5b6a71});default:return null;}}function _0xbf44df(_0x51e27d){const _0xe212a9=_0x5cf110,{coordinator:_0x22f933}=_0x51e27d;return _0x15af52[_0xe212a9(0x1f4)](_0x15af52[_0xe212a9(0x293)],{'children':[_0x15af52[_0xe212a9(0x291)](_0xe212a9(0x27b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xe212a9(0x1ca)}),_0x15af52[_0xe212a9(0x291)](_0x342ef4[_0xe212a9(0x264)],{'onClick':()=>_0x22f933[_0xe212a9(0x22c)](),'children':'Start'})]});}function _0x4f3d8b(_0x5bd091){const _0x49b5bc=_0x5cf110,{coordinator:_0x5cf21a}=_0x5bd091;return _0x15af52[_0x49b5bc(0x1f4)](_0x15af52[_0x49b5bc(0x293)],{'children':[_0x15af52[_0x49b5bc(0x291)](_0x49b5bc(0x27b),{'className':_0x49b5bc(0x1ee),'children':_0x49b5bc(0x24e)}),_0x15af52[_0x49b5bc(0x291)](_0x342ef4[_0x49b5bc(0x264)],{'onClick':()=>_0x5cf21a[_0x49b5bc(0x269)](),'children':_0x49b5bc(0x1f7)})]});}function _0xeb4a5(_0x506421){const _0x31877a=_0x5cf110,{coordinator:_0x4db131}=_0x506421;return _0x15af52[_0x31877a(0x1f4)](_0x15af52[_0x31877a(0x293)],{'children':[_0x15af52[_0x31877a(0x291)](_0x31877a(0x27b),{'className':_0x31877a(0x1ee),'children':_0x31877a(0x292)}),_0x15af52[_0x31877a(0x291)](_0x342ef4[_0x31877a(0x264)],{'variant':'text','onClick':()=>_0x4db131[_0x31877a(0x241)](),'children':_0x31877a(0x25e)})]});}function _0x49dd93(_0x5355d3){const _0x3df527=_0x5cf110,{coordinator:_0x2d32f6}=_0x5355d3;return _0x15af52[_0x3df527(0x1f4)](_0x15af52[_0x3df527(0x293)],{'children':[_0x15af52[_0x3df527(0x291)](_0x3df527(0x27b),{'className':_0x3df527(0x1ee),'children':_0x3df527(0x20c)}),_0x15af52[_0x3df527(0x291)](_0x342ef4['Button'],{'variant':_0x3df527(0x234),'onClick':()=>_0x2d32f6['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x4d2454(){const _0x323f59=_0x5cf110;return _0x15af52[_0x323f59(0x291)](_0x15af52[_0x323f59(0x293)],{'children':_0x323f59(0x1d1)});}var _0x3d60f7=Object[_0x5cf110(0x1d7)],_0x2b7111=(_0x1ea5c9,_0x389c25,_0x483a5a,_0x2f496a)=>{for(var _0x5cd3e2=_0x2f496a>0x1?void 0x0:_0x2f496a?_0x3d60f7(_0x389c25,_0x483a5a):_0x389c25,_0x4ce88e=_0x1ea5c9['length']-0x1,_0x40e681;_0x4ce88e>=0x0;_0x4ce88e--)(_0x40e681=_0x1ea5c9[_0x4ce88e])&&(_0x5cd3e2=_0x40e681(_0x5cd3e2)||_0x5cd3e2);return _0x5cd3e2;},_0x229ea2=(_0x1787f9,_0x472019)=>(_0x21a1c6,_0x57521b)=>_0x472019(_0x21a1c6,_0x57521b,_0x1787f9);_0x23ec27['DesktopLiveShareController']=class extends _0xca07eb[_0x5cf110(0x1c9)]{constructor(_0x3a04e3,_0x1a7d95){const _0x45dcc1=_0x5cf110;super(),this[_0x45dcc1(0x20d)]=_0x3a04e3,this['_uiPartsService']=_0x1a7d95,this[_0x45dcc1(0x206)]();}['_mountLiveShare'](){const _0x305004=_0x5cf110;this['disposeWithMe'](this[_0x305004(0x23f)]['registerComponent'](_0x1e8daf[_0x305004(0x243)][_0x305004(0x1e6)],()=>_0x1e8daf[_0x305004(0x1cf)](_0x103f34,this[_0x305004(0x20d)])));}},_0x23ec27[_0x5cf110(0x20f)]=_0x2b7111([_0x229ea2(0x0,_0xca07eb[_0x5cf110(0x253)](_0xca07eb[_0x5cf110(0x29a)])),_0x229ea2(0x1,_0x1e8daf[_0x5cf110(0x1c1)])],_0x23ec27['DesktopLiveShareController']);const _0x4969e8=_0x5cf110(0x2a4),_0x27b4c9={};var _0xe815dc=Object[_0x5cf110(0x1d7)],_0x2aa187=(_0x5e04d2,_0x23c955,_0x3d38e9,_0x3838a0)=>{const _0x5eb868=_0x5cf110;for(var _0x86e15b=_0x3838a0>0x1?void 0x0:_0x3838a0?_0xe815dc(_0x23c955,_0x3d38e9):_0x23c955,_0x5254f6=_0x5e04d2[_0x5eb868(0x242)]-0x1,_0x5ef077;_0x5254f6>=0x0;_0x5254f6--)(_0x5ef077=_0x5e04d2[_0x5254f6])&&(_0x86e15b=_0x5ef077(_0x86e15b)||_0x86e15b);return _0x86e15b;},_0x40b8c1=(_0x2813af,_0xbcd3c4)=>(_0x2c13d8,_0x3fcc60)=>_0xbcd3c4(_0x2c13d8,_0x3fcc60,_0x2813af);let _0x7fe0b8=class extends _0xca07eb[_0x5cf110(0x1c9)]{constructor(_0x38d4ac){const _0x34f1ac=_0x5cf110;super(),this['_liveShareService']=_0x38d4ac,this[_0x34f1ac(0x1d9)]();}[_0x5cf110(0x1d9)](){const _0x21cded=_0x5cf110;[_0x14ee55[_0x21cded(0x200)]['id'],_0x14ee55['SetScrollOperation']['id'],_0x4e04ed['SetWorksheetActiveOperation']['id']][_0x21cded(0x273)](_0x18de01=>{const _0x5b1f27=_0x21cded;this[_0x5b1f27(0x215)](this['_liveShareService'][_0x5b1f27(0x265)](_0x18de01));});}};_0x7fe0b8=_0x2aa187([_0x40b8c1(0x0,_0xca07eb['Inject'](_0x3a905a))],_0x7fe0b8);var _0x22048a=Object[_0x5cf110(0x22f)],_0x475edb=Object[_0x5cf110(0x1d7)],_0x383e68=(_0x4a6f74,_0x52b792,_0x5438be)=>_0x52b792 in _0x4a6f74?_0x22048a(_0x4a6f74,_0x52b792,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5438be}):_0x4a6f74[_0x52b792]=_0x5438be,_0xeacbc2=(_0x2e37af,_0x1d816b,_0x33c96b,_0x273a92)=>{const _0xedb46e=_0x5cf110;for(var _0x5343a6=_0x273a92>0x1?void 0x0:_0x273a92?_0x475edb(_0x1d816b,_0x33c96b):_0x1d816b,_0x2e19c5=_0x2e37af[_0xedb46e(0x242)]-0x1,_0x2f7a0f;_0x2e19c5>=0x0;_0x2e19c5--)(_0x2f7a0f=_0x2e37af[_0x2e19c5])&&(_0x5343a6=_0x2f7a0f(_0x5343a6)||_0x5343a6);return _0x5343a6;},_0x4a9630=(_0x2424d5,_0x5286db)=>(_0x5bd3f6,_0x20989c)=>_0x5286db(_0x5bd3f6,_0x20989c,_0x2424d5),_0x318246=(_0x49d6ed,_0x5d41d4,_0x505763)=>_0x383e68(_0x49d6ed,typeof _0x5d41d4!=_0x5cf110(0x1c0)?_0x5d41d4+'':_0x5d41d4,_0x505763);const _0x36d4d6=_0x5cf110(0x24f);_0x23ec27[_0x5cf110(0x21b)]=class extends _0xca07eb['Plugin']{constructor(_0x167ea5=_0x27b4c9,_0x5c774b,_0x20e594){const _0x318b34=_0x5cf110;super(),this[_0x318b34(0x217)]=_0x167ea5,this[_0x318b34(0x20d)]=_0x5c774b,this[_0x318b34(0x216)]=_0x20e594;const {..._0x10c2aa}=_0xca07eb['merge']({},_0x27b4c9,this['_config']);this[_0x318b34(0x216)][_0x318b34(0x267)](_0x4969e8,_0x10c2aa);}[_0x5cf110(0x1f9)](){const _0x513b00=_0x5cf110;_0xca07eb[_0x513b00(0x1f8)](this['_injector'],_0xca07eb[_0x513b00(0x214)]([[_0x3a905a],[_0x23ec27[_0x513b00(0x1da)]],[_0x7fe0b8],[_0x23ec27[_0x513b00(0x20f)]]],this['_config']['override'])),_0xca07eb[_0x513b00(0x29d)](this[_0x513b00(0x20d)],[[_0x7fe0b8]]);}['onRendered'](){const _0x1a1615=_0x5cf110;_0xca07eb[_0x1a1615(0x29d)](this[_0x1a1615(0x20d)],[[_0x23ec27[_0x1a1615(0x20f)]]]);}},_0x318246(_0x23ec27[_0x5cf110(0x21b)],_0x5cf110(0x230),_0xca07eb['UniverInstanceType'][_0x5cf110(0x22e)]),_0x318246(_0x23ec27['UniverLiveSharePlugin'],'pluginName',_0x36d4d6),_0x23ec27[_0x5cf110(0x21b)]=_0xeacbc2([_0xca07eb[_0x5cf110(0x259)](_0x54692a['UniverCollaborationClientPlugin']),_0x4a9630(0x1,_0xca07eb['Inject'](_0xca07eb[_0x5cf110(0x29a)])),_0x4a9630(0x2,_0xca07eb['IConfigService'])],_0x23ec27[_0x5cf110(0x21b)]),_0x23ec27[_0x5cf110(0x1f3)]=_0x103f34,_0x23ec27[_0x5cf110(0x23d)]=_0x3a905a,_0x23ec27[_0x5cf110(0x1c5)]=_0xaeb0d4,Object['defineProperty'](_0x23ec27,Symbol[_0x5cf110(0x1f1)],{'value':'Module'});}));function _0xf61e(_0x4ebb19,_0x176fba){_0x4ebb19=_0x4ebb19-0x1be;const _0x29b11c=_0x29b1();let _0xf61e41=_0x29b11c[_0x4ebb19];return _0xf61e41;}function _0x29b1(){const _0x3143f3=['toStringTag','UniverProLiveShare','LiveShare','jsxs','_startPresenting','use','Stop\x20following','registerDependencies','onStarting','toDisposable','substring','getLiveShareCoordinator','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','UniverCore','CommandType','SetZoomRatioOperation','UniverInstanceType','UniverDesign','getUnitId','mutations','_reporters','_mountLiveShare','React','107214znUZVC','clsx','UniverUi','sheet','You\x27re\x20presenting\x20the\x20document','_injector','button','DesktopLiveShareController','object','_handleTerminate','getCurrentTypeOfUnit$','params','mergeOverrideWithDependencies','disposeWithMe','_configService','_config','_stopFollowing','send','attrs','UniverLiveSharePlugin','Dropdown','_unitID','parseProtocolChangeset','CollaborationEvent','CollaborationSessionService','getTypeOfUnitAdded$','56469subtzP','reverse','mask','UniverSheets','displayName','includes','getInitialStates','OFFLINE','PRESENTING','createInstance','tryStartPresenting','995569Bkiqvi','UNIVER_UNKNOWN','defineProperty','type','subscribe','@univerjs-pro/collaboration','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','default','svg','dispose','url(#$1','IUniverInstanceService','useObservable','function','InsertSheetMutation','tag','LiveShareService','next','_uiPartsService','_startFollowing','startFollowing','length','BuiltInUIPart','1em','find','_handleOperation','_handleNewChangeSets','from','ICommandService','idSuffix','0\x200\x2017\x2017','_collabSessionService','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','Subject','_commandService','_beIdle','Inject','has','currentColor','1051604KUoIjf','_status$','data','DependentOn','stopPresenting','SessionStatus','_collabSession','react/jsx-runtime','Start\x20following','shouldShareOperation','children','IConfigService','replace','registerInitialStateReporter','Button','registerSharedOperation','assign','setConfig','event$','stopFollowing','univerjs-icon\x20univerjs-icon-','entries','2LrXhzv','idle','BehaviorSubject','dispose$','RxDisposable','_handleOnline','requireSession','forEach','UniverProCollaboration','LiveShareCoordinator','operations','memberID','useRef','useDependency','init','div','set','getValue','trim','2275310czGYjq','complete','LIVESHARE_OPERATION','_presenter','getMemberID','clear','_commandDisposable','_status','LIVESHARE_FETCH_OPERATIONS','exports','LIVESHARE_REQUEST_HOST','amd','NOT_FOLLOWING','12916359mTOetM','colorChannel1','forwardRef','executeCommand','presenting','jsx','You\x27re\x20not\x20following\x20the\x20presenter','Fragment','_entities','values','getStatus','OPERATION','takeUntil','18FDicXx','Injector','getConfig','path','touchDependencies','sessionStatus$','fill','status$','current','add','string','live-share.config','_handleOffline','asObservable','3051380OYEpUJ','getTypeOfUnitDisposed$','_handleNewHost','@univerjs/design','symbol','IUIPartsService','LiveShareIcon','http://www.w3.org/2000/svg','rxjs','LiveShareStatus','1640ftbibG','_stopPresenting','get','Disposable','Present\x20this\x20document','univer-size-4','map','createElement','rxjs/operators','connectInjector','pipe','You\x27are\x20offline.','end','IDLE','@univerjs-pro/collaboration-client','stringify','_sharedOperations','getOwnPropertyDescriptor','evenodd','_init','LiveShareController','LIVESHARE_NEW_HOST','UniverIcon','UNIVER_SHEET','_fetchOperations','useEffect','useState','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','following','defs','react','live-share-icon','HEADER_MENU','not-following','xlink:href','@univerjs/sheets-ui','presenter','random','UniverProCollaborationClient','_liveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','_startLiveShareCoordinator'];_0x29b1=function(){return _0x3143f3;};return _0x29b1();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.1.1",
|
|
60
|
-
"@univerjs-pro/collaboration
|
|
61
|
-
"@univerjs-pro/collaboration": "0.15.
|
|
62
|
-
"@univerjs/design": "0.15.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/sheets-ui": "0.15.
|
|
65
|
-
"@univerjs/ui": "0.15.
|
|
66
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.15.4",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.15.4",
|
|
62
|
+
"@univerjs/design": "0.15.4",
|
|
63
|
+
"@univerjs/core": "0.15.4",
|
|
64
|
+
"@univerjs/sheets-ui": "0.15.4",
|
|
65
|
+
"@univerjs/ui": "0.15.4",
|
|
66
|
+
"@univerjs/sheets": "0.15.4"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"postcss": "^8.5.6",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"typescript": "^5.9.3",
|
|
74
74
|
"vite": "^7.3.1",
|
|
75
75
|
"vitest": "^4.0.18",
|
|
76
|
-
"@univerjs/
|
|
77
|
-
"@univerjs
|
|
76
|
+
"@univerjs-infra/shared": "0.15.4",
|
|
77
|
+
"@univerjs/protocol": "0.1.48"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"test": "vitest run",
|