@univerjs-pro/collaboration-client 1.0.2 → 1.0.3
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/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2c13(_0xf6b7e,_0x3148b5){_0xf6b7e=_0xf6b7e-0xec;const _0x4970ae=_0x4970();let _0x2c13b3=_0x4970ae[_0xf6b7e];return _0x2c13b3;}(function(_0x313c1c,_0x54a603){const _0x562dfc=_0x2c13,_0x3987b3=_0x313c1c();while(!![]){try{const _0x511f0b=parseInt(_0x562dfc(0x112))/0x1*(parseInt(_0x562dfc(0x13d))/0x2)+-parseInt(_0x562dfc(0x12a))/0x3+-parseInt(_0x562dfc(0xfb))/0x4*(parseInt(_0x562dfc(0x10b))/0x5)+-parseInt(_0x562dfc(0x126))/0x6+-parseInt(_0x562dfc(0x146))/0x7+-parseInt(_0x562dfc(0xf8))/0x8+parseInt(_0x562dfc(0x10e))/0x9;if(_0x511f0b===_0x54a603)break;else _0x3987b3['push'](_0x3987b3['shift']());}catch(_0x20553b){_0x3987b3['push'](_0x3987b3['shift']());}}}(_0x4970,0xa717d),function(_0x3be33f,_0x1970f3){const _0x495f82=_0x2c13;typeof exports==_0x495f82(0x13b)&&typeof module<'u'?_0x1970f3(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x495f82(0x124)&&define['amd']?define([_0x495f82(0x116),_0x495f82(0xef),_0x495f82(0x127),_0x495f82(0x118),_0x495f82(0xee),'rxjs'],_0x1970f3):(_0x3be33f=typeof globalThis<'u'?globalThis:_0x3be33f||self,_0x1970f3(_0x3be33f['UniverProCollaborationClientFacade']={},_0x3be33f['UniverProCollaborationClient'],_0x3be33f[_0x495f82(0x139)],_0x3be33f[_0x495f82(0x100)],_0x3be33f[_0x495f82(0x119)],_0x3be33f[_0x495f82(0x11e)]));}(this,function(_0x2aa6e2,_0x369473,_0x30e191,_0x1908eb,_0x30e20f,_0x1ae8fb){const _0x2d0b6b=_0x2c13;Object['defineProperty'](_0x2aa6e2,Symbol[_0x2d0b6b(0x107)],{'value':_0x2d0b6b(0x111)});var _0xe1bcfe=class extends _0x30e191[_0x2d0b6b(0x129)]{get[_0x2d0b6b(0x102)](){return _0x369473['CollaborationStatus'];}};_0x30e191[_0x2d0b6b(0x129)][_0x2d0b6b(0xf7)](_0xe1bcfe);var _0x18eea7=class extends _0x30e191['FEventName']{get[_0x2d0b6b(0x106)](){return'CollaborationStatusChanged';}};_0x30e191['FEventName']['extend'](_0x18eea7);function _0x602e99(_0x204d70,_0x1213b4){return function(_0x5b32a9,_0x5f3013){_0x1213b4(_0x5b32a9,_0x5f3013,_0x204d70);};}function _0x3b5d22(_0x368d63,_0x184f0e,_0x4e67a4,_0x1bd94d){const _0x3d0d96=_0x2d0b6b;var _0x5cf733=arguments[_0x3d0d96(0x14d)],_0x5c8bb1=_0x5cf733<0x3?_0x184f0e:_0x1bd94d===null?_0x1bd94d=Object[_0x3d0d96(0x11c)](_0x184f0e,_0x4e67a4):_0x1bd94d,_0x3a4656;if(typeof Reflect==_0x3d0d96(0x13b)&&typeof Reflect[_0x3d0d96(0x141)]==_0x3d0d96(0x124))_0x5c8bb1=Reflect['decorate'](_0x368d63,_0x184f0e,_0x4e67a4,_0x1bd94d);else{for(var _0x6c2923=_0x368d63[_0x3d0d96(0x14d)]-0x1;_0x6c2923>=0x0;_0x6c2923--)(_0x3a4656=_0x368d63[_0x6c2923])&&(_0x5c8bb1=(_0x5cf733<0x3?_0x3a4656(_0x5c8bb1):_0x5cf733>0x3?_0x3a4656(_0x184f0e,_0x4e67a4,_0x5c8bb1):_0x3a4656(_0x184f0e,_0x4e67a4))||_0x5c8bb1);}return _0x5cf733>0x3&&_0x5c8bb1&&Object[_0x3d0d96(0xec)](_0x184f0e,_0x4e67a4,_0x5c8bb1),_0x5c8bb1;}let _0x546303=class extends _0x30e191[_0x2d0b6b(0x13f)]{constructor(_0x3d46a7,_0x4e1bbb,_0x1c7911,_0x28957f,_0x3203da){const _0x5e61f7=_0x2d0b6b;super(),this[_0x5e61f7(0x12d)]=_0x3d46a7,this[_0x5e61f7(0x131)]=_0x4e1bbb,this[_0x5e61f7(0x130)]=_0x1c7911,this['_snapshotService']=_0x28957f,this[_0x5e61f7(0x13e)]=_0x3203da;}async['loadSheetAsync'](_0x49cd8b,_0xf3e5b7){const _0x5d1e81=_0x2d0b6b;return await this[_0x5d1e81(0x136)]['loadSheet'](_0x49cd8b,0x0,_0xf3e5b7)?(await this[_0x5d1e81(0x13e)]['readyForCollab'](_0x49cd8b),this[_0x5d1e81(0x12d)][_0x5d1e81(0x14b)](_0x49cd8b)):null;}async[_0x2d0b6b(0x10d)](_0x2e1daf,_0x3d2270){const _0x45a7b2=_0x2d0b6b;return await this[_0x45a7b2(0x136)]['loadDoc'](_0x2e1daf,0x0,_0x3d2270)?(await this['_collaborationController'][_0x45a7b2(0xed)](_0x2e1daf),this[_0x45a7b2(0x12d)][_0x45a7b2(0xff)](_0x2e1daf)):null;}async[_0x2d0b6b(0x132)](_0xdc7c70,_0x57dbf2){const _0x2c68bb=_0x2d0b6b;return await this[_0x2c68bb(0x136)][_0x2c68bb(0x114)](_0xdc7c70,0x0,_0x57dbf2)?(await this['_collaborationController']['readyForCollab'](_0xdc7c70),this[_0x2c68bb(0x12d)]['getBase'](_0xdc7c70)):null;}async[_0x2d0b6b(0x135)](_0x3d6d29,_0x2bd150){const _0x9f7144=_0x2d0b6b;return await this[_0x9f7144(0x136)][_0x9f7144(0x145)](_0x3d6d29,0x0,_0x2bd150)?(await this[_0x9f7144(0x13e)][_0x9f7144(0xed)](_0x3d6d29),this[_0x9f7144(0x12d)]['getPresentation'](_0x3d6d29)):null;}async[_0x2d0b6b(0x143)](_0x50fc1f,_0x873c64){const _0x264093=_0x2d0b6b;return await this[_0x264093(0x136)][_0x264093(0x134)](_0x50fc1f,0x0,_0x873c64)?(await this['_collaborationController']['readyForCollab'](_0x50fc1f),this[_0x264093(0x12d)][_0x264093(0x12f)](_0x50fc1f)):null;}async['loadPdfAsync'](_0x4aa54a,_0x489548){const _0x459e40=_0x2d0b6b;return await this[_0x459e40(0x136)][_0x459e40(0x10c)](_0x4aa54a,0x0,_0x489548)?(await this[_0x459e40(0x13e)][_0x459e40(0xed)](_0x4aa54a),this[_0x459e40(0x12d)][_0x459e40(0x149)](_0x4aa54a)):null;}[_0x2d0b6b(0x12e)](_0x1949a4,_0x17197d){const _0x3f38ef=_0x2d0b6b;let _0x1fa8fc=this[_0x3f38ef(0x131)][_0x3f38ef(0x123)](_0x369473[_0x3f38ef(0x147)])[_0x3f38ef(0x142)](_0x1949a4)[_0x3f38ef(0x110)]((0x0,_0x1ae8fb[_0x3f38ef(0xf1)])(_0xdd0b5a=>_0xdd0b5a[_0x3f38ef(0xf0)]))[_0x3f38ef(0xf5)](_0x41a2aa=>_0x17197d(Array[_0x3f38ef(0x120)](_0x41a2aa[_0x3f38ef(0x109)]())));return(0x0,_0x1908eb['toDisposable'])(_0x1fa8fc);}['getCollaborationStatus'](_0x3c9acc){const _0x44bf00=_0x2d0b6b;let _0x43b202=this['_resolveUnitId'](_0x3c9acc);if(!_0x43b202)return _0x369473['CollaborationStatus'][_0x44bf00(0xfd)];let _0xb5eaa2=this['_collaborationController'][_0x44bf00(0xf9)](_0x43b202);return(_0xb5eaa2==null?void 0x0:_0xb5eaa2['state']['status'])??_0x369473[_0x44bf00(0x102)][_0x44bf00(0xfd)];}[_0x2d0b6b(0x108)](_0x198b70,_0x5203e8={}){const _0x1aa279=_0x2d0b6b;let _0x5cdba8=this[_0x1aa279(0x137)](_0x198b70);if(!_0x5cdba8)return Promise[_0x1aa279(0xfe)](Error(_0x1aa279(0xf4)));let _0x33dfcc=this[_0x1aa279(0x13e)]['getCollabEntity'](_0x5cdba8);if(!_0x33dfcc)return Promise[_0x1aa279(0xfe)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x5cdba8+_0x1aa279(0x11a)));let _0x1fa5fc=_0x33dfcc[_0x1aa279(0x11b)]['status'];if(_0x1fa5fc===_0x369473[_0x1aa279(0x102)][_0x1aa279(0x117)])return Promise[_0x1aa279(0x140)]();let _0x2d6df9=_0xe7e1d(_0x5cdba8,_0x1fa5fc);if(_0x2d6df9)return Promise[_0x1aa279(0xfe)](_0x2d6df9);let _0x3b2ae9=_0x5203e8[_0x1aa279(0x14a)]??0x7530;return new Promise((_0x4264b5,_0x137073)=>{const _0x468654=_0x1aa279;let _0x412666=!0x1,_0x385177=null,_0x549f35=setTimeout(()=>{const _0x3e85c0=_0x2c13;_0x412666=!0x0,_0x385177==null||_0x385177[_0x3e85c0(0x122)](),_0x137073(Error(_0x3e85c0(0x10f)+_0x5cdba8+'\x22\x20after\x20'+_0x3b2ae9+_0x3e85c0(0x12b)));},_0x3b2ae9),_0x2c8c23=()=>{const _0x65d654=_0x2c13;_0x412666=!0x0,clearTimeout(_0x549f35),_0x385177==null||_0x385177[_0x65d654(0x122)]();};_0x385177=_0x33dfcc[_0x468654(0x13a)][_0x468654(0xf5)](_0x403c57=>{const _0x92994a=_0x468654;if(_0x412666)return;if(_0x403c57===_0x369473[_0x92994a(0x102)][_0x92994a(0x117)]){_0x2c8c23(),_0x4264b5();return;}let _0x47a6d5=_0xe7e1d(_0x5cdba8,_0x403c57);_0x47a6d5&&(_0x2c8c23(),_0x137073(_0x47a6d5));});});}[_0x2d0b6b(0x137)](_0x5cee69){const _0x5290d3=_0x2d0b6b;var _0x33f021;return _0x5cee69||((_0x33f021=this['_univerInstanceService'][_0x5290d3(0xf6)]())==null?void 0x0:_0x33f021[_0x5290d3(0x103)]());}};_0x546303=_0x3b5d22([_0x602e99(0x1,(0x0,_0x1908eb[_0x2d0b6b(0x148)])(_0x1908eb[_0x2d0b6b(0x101)])),_0x602e99(0x2,_0x1908eb[_0x2d0b6b(0x104)]),_0x602e99(0x3,(0x0,_0x1908eb[_0x2d0b6b(0x148)])(_0x30e20f[_0x2d0b6b(0x14c)])),_0x602e99(0x4,(0x0,_0x1908eb[_0x2d0b6b(0x148)])(_0x369473[_0x2d0b6b(0x125)]))],_0x546303);function _0xe7e1d(_0x8cf6aa,_0x275f9a){const _0xd91597=_0x2d0b6b;return _0x275f9a===_0x369473['CollaborationStatus']['CONFLICT']||_0x275f9a===_0x369473['CollaborationStatus'][_0xd91597(0xfd)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x8cf6aa+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x275f9a+'.'):null;}var _0x5ef736=class extends _0x30e191[_0x2d0b6b(0x11f)]{[_0x2d0b6b(0x11d)](_0x154938){const _0x28709e=_0x2d0b6b;let _0x5d0671=_0x154938[_0x28709e(0x123)](_0x369473['CollaborationController']);this['disposeWithMe'](this[_0x28709e(0xf3)](this[_0x28709e(0x113)][_0x28709e(0x106)],()=>{const _0x3fd46d=_0x28709e;let _0xecda40=new _0x1908eb[(_0x3fd46d(0x12c))](),_0x3a54a5=_0x5d0671[_0x3fd46d(0x144)]['subscribe'](_0x1c1e74=>{const _0x5d4bf0=_0x3fd46d;let _0x50936b=_0x1c1e74[_0x5d4bf0(0x13a)][_0x5d4bf0(0xf5)](_0x121375=>{const _0x1db955=_0x5d4bf0;let _0x5d2894={'unitId':_0x1c1e74['unitID'],'status':_0x121375};this[_0x1db955(0x133)](this[_0x1db955(0x113)]['CollaborationStatusChanged'],_0x5d2894);});_0xecda40[_0x5d4bf0(0x13c)]((0x0,_0x1908eb[_0x5d4bf0(0x128)])(_0x50936b));});return _0xecda40[_0x3fd46d(0x13c)]((0x0,_0x1908eb[_0x3fd46d(0x128)])(_0x3a54a5)),_0xecda40;}));}[_0x2d0b6b(0xfa)](){const _0x1cd9ab=_0x2d0b6b;return this[_0x1cd9ab(0x131)]['createInstance'](_0x546303,{'getWorkbook':_0xe7504e=>this[_0x1cd9ab(0x14b)](_0xe7504e),'getDocument':_0x3d0cbd=>this['getDocument'](_0x3d0cbd),'getPresentation':_0x1677a3=>this[_0x1cd9ab(0x105)](_0x1677a3),'getBase':_0x4dcaa1=>this['getBase'](_0x4dcaa1),'getBoard':_0x536def=>this['getBoard'](_0x536def),'getPdf':_0xd9011f=>this['getPdf'](_0xd9011f)});}[_0x2d0b6b(0xf2)](_0x40e401,_0xce5eb4,_0x435d6e){const _0x428fc9=_0x2d0b6b;return this[_0x428fc9(0x131)][_0x428fc9(0x123)](_0x369473[_0x428fc9(0xfc)])[_0x428fc9(0x115)](_0x40e401,_0xce5eb4,_0x435d6e);}[_0x2d0b6b(0x10a)](_0x23feaa,_0x368779,_0x59b179){const _0x50cf6f=_0x2d0b6b;return this[_0x50cf6f(0x131)][_0x50cf6f(0x123)](_0x369473[_0x50cf6f(0xfc)])[_0x50cf6f(0x121)](_0x23feaa,_0x368779,_0x59b179);}};_0x30e191[_0x2d0b6b(0x11f)][_0x2d0b6b(0xf7)](_0x5ef736),Object[_0x2d0b6b(0xec)](_0x2aa6e2,_0x2d0b6b(0x138),{'enumerable':!0x0,'get':function(){return _0x546303;}});}));function _0x4970(){const _0x5c24b7=['getBoard','_univerInstanceService','_injector','loadBaseAsync','fireEvent','loadBoard','loadSlideAsync','_snapshotService','_resolveUnitId','FCollaboration','UniverCoreFacade','status$','object','add','140YYHikN','_collaborationController','FBase','resolve','decorate','waitForRoom$','loadBoardAsync','entityInit$','loadSlide','5450046YpNTHp','MemberService','Inject','getPdf','timeout','getWorkbook','SnapshotService','length','defineProperty','readyForCollab','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','members$','switchMap','loadServerUnit','registerEventHandler','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','subscribe','getFocusedUnit','extend','1457104TXcpRl','getCollabEntity','getCollaboration','456876BFGNJs','DataLoaderService','NOT_COLLAB','reject','getDocument','UniverCore','Injector','CollaborationStatus','getUnitId','IUniverInstanceService','getPresentation','CollaborationStatusChanged','toStringTag','flush','values','loadServerUnitOfRevision','35QECbsn','loadPdf','loadDocAsync','16895934KWQYOF','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','pipe','Module','18637EnJSzo','Event','loadBase','loadUnit','exports','SYNCED','@univerjs/core','UniverProCollaboration','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','state','getOwnPropertyDescriptor','_initialize','rxjs','FUniver','from','loadUnitOfRevision','unsubscribe','get','function','CollaborationController','2684802nntMzf','@univerjs/core/facade','toDisposable','FEnum','869361uUeuIN','ms.','DisposableCollection','_handler','subscribeCollaborators'];_0x4970=function(){return _0x5c24b7;};return _0x4970();}
|
|
1
|
+
function _0x4178(){const _0x171a91=['exports','DataLoaderService','FEventName','add','@univerjs/core/facade','DisposableCollection','getCollaboration','@univerjs-pro/collaboration-client','17745SQhgPs','UniverCore','getCollabEntity','115906EQColz','Event','toStringTag','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','getUnitId','toDisposable','ms.','loadServerUnit','loadBaseAsync','_handler','loadDoc','loadSlide','_resolveUnitId','readyForCollab','\x22\x20after\x20','loadUnitOfRevision','CollaborationStatusChanged','flush','_snapshotService','loadServerUnitOfRevision','UniverProCollaborationClientFacade','object','325991ARBIxG','1411056KUGugY','getBoard','_univerInstanceService','getPresentation','2268837FETNUs','loadBase','358076herWWJ','FEnum','FUniver','FBase','NOT_COLLAB','function','loadPdf','FCollaboration','extend','unsubscribe','status$','switchMap','amd','Injector','UniverProCollaboration','getOwnPropertyDescriptor','CollaborationController','get','getFocusedUnit','10hPlzjB','loadPdfAsync','getDocument','fireEvent','6uoBtHT','Inject','disposeWithMe','pipe','loadSlideAsync','getCollaborationStatus','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','defineProperty','values','144shBQUj','rxjs','MemberService','subscribeCollaborators','timeout','decorate','Module','getBase','waitForRoom$','loadBoardAsync','loadUnit','_collaborationController','getWorkbook','registerEventHandler','@univerjs-pro/collaboration','loadBoard','3046410UkfBrG','SYNCED','length','CollaborationStatus','unitID','subscribe','resolve','status','loadSheet','members$','reject','state','UniverCoreFacade','getPdf','_injector'];_0x4178=function(){return _0x171a91;};return _0x4178();}function _0x46ec(_0x11ab44,_0x45e4ac){_0x11ab44=_0x11ab44-0xd0;const _0x4178a3=_0x4178();let _0x46ec85=_0x4178a3[_0x11ab44];return _0x46ec85;}(function(_0x1627c0,_0x1dbf51){const _0x1ddbf4=_0x46ec,_0x4b36d4=_0x1627c0();while(!![]){try{const _0x40fc8f=parseInt(_0x1ddbf4(0x121))/0x1+parseInt(_0x1ddbf4(0x10b))/0x2*(parseInt(_0x1ddbf4(0xd8))/0x3)+parseInt(_0x1ddbf4(0x128))/0x4*(parseInt(_0x1ddbf4(0xd4))/0x5)+-parseInt(_0x1ddbf4(0xe1))/0x6*(parseInt(_0x1ddbf4(0x108))/0x7)+parseInt(_0x1ddbf4(0x122))/0x8+-parseInt(_0x1ddbf4(0x126))/0x9+-parseInt(_0x1ddbf4(0xf1))/0xa;if(_0x40fc8f===_0x1dbf51)break;else _0x4b36d4['push'](_0x4b36d4['shift']());}catch(_0x30d4a7){_0x4b36d4['push'](_0x4b36d4['shift']());}}}(_0x4178,0x2be1f),function(_0x4b3fac,_0x2390bc){const _0x32761d=_0x46ec;typeof exports==_0x32761d(0x120)&&typeof module<'u'?_0x2390bc(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x32761d(0x12d)&&define[_0x32761d(0x134)]?define([_0x32761d(0x100),_0x32761d(0x107),_0x32761d(0x104),'@univerjs/core',_0x32761d(0xef),_0x32761d(0xe2)],_0x2390bc):(_0x4b3fac=typeof globalThis<'u'?globalThis:_0x4b3fac||self,_0x2390bc(_0x4b3fac[_0x32761d(0x11f)]={},_0x4b3fac['UniverProCollaborationClient'],_0x4b3fac[_0x32761d(0xfd)],_0x4b3fac[_0x32761d(0x109)],_0x4b3fac[_0x32761d(0x136)],_0x4b3fac[_0x32761d(0xe2)]));}(this,function(_0x4d25f7,_0x5a9ff5,_0x74564e,_0x28b429,_0x429641,_0x5c90fd){const _0x7bb825=_0x46ec;Object[_0x7bb825(0xdf)](_0x4d25f7,Symbol[_0x7bb825(0x10d)],{'value':_0x7bb825(0xe7)});var _0x1044e0=class extends _0x74564e[_0x7bb825(0x129)]{get[_0x7bb825(0xf4)](){const _0x3d1416=_0x7bb825;return _0x5a9ff5[_0x3d1416(0xf4)];}};_0x74564e['FEnum'][_0x7bb825(0x130)](_0x1044e0);var _0x4dbfe5=class extends _0x74564e['FEventName']{get[_0x7bb825(0x11b)](){const _0x400495=_0x7bb825;return _0x400495(0x11b);}};_0x74564e[_0x7bb825(0x102)][_0x7bb825(0x130)](_0x4dbfe5);function _0x63836b(_0x261404,_0x55cfae){return function(_0x1fbaa7,_0x48d7d7){_0x55cfae(_0x1fbaa7,_0x48d7d7,_0x261404);};}function _0x59ec6b(_0x3063a2,_0xee7bd0,_0x5d6f78,_0x56b86c){const _0x25793b=_0x7bb825;var _0x143648=arguments[_0x25793b(0xf3)],_0x6c828c=_0x143648<0x3?_0xee7bd0:_0x56b86c===null?_0x56b86c=Object[_0x25793b(0xd0)](_0xee7bd0,_0x5d6f78):_0x56b86c,_0x38b4cd;if(typeof Reflect==_0x25793b(0x120)&&typeof Reflect['decorate']==_0x25793b(0x12d))_0x6c828c=Reflect[_0x25793b(0xe6)](_0x3063a2,_0xee7bd0,_0x5d6f78,_0x56b86c);else{for(var _0x5b9095=_0x3063a2['length']-0x1;_0x5b9095>=0x0;_0x5b9095--)(_0x38b4cd=_0x3063a2[_0x5b9095])&&(_0x6c828c=(_0x143648<0x3?_0x38b4cd(_0x6c828c):_0x143648>0x3?_0x38b4cd(_0xee7bd0,_0x5d6f78,_0x6c828c):_0x38b4cd(_0xee7bd0,_0x5d6f78))||_0x6c828c);}return _0x143648>0x3&&_0x6c828c&&Object[_0x25793b(0xdf)](_0xee7bd0,_0x5d6f78,_0x6c828c),_0x6c828c;}let _0x1a2363=class extends _0x74564e[_0x7bb825(0x12b)]{constructor(_0x2a6daa,_0x482f5a,_0x15c930,_0x519c7a,_0x13c953){const _0x115b46=_0x7bb825;super(),this['_handler']=_0x2a6daa,this[_0x115b46(0xff)]=_0x482f5a,this[_0x115b46(0x124)]=_0x15c930,this[_0x115b46(0x11d)]=_0x519c7a,this[_0x115b46(0xec)]=_0x13c953;}async['loadSheetAsync'](_0x3bfd68,_0x3351cd){const _0xf4a1a8=_0x7bb825;return await this[_0xf4a1a8(0x11d)][_0xf4a1a8(0xf9)](_0x3bfd68,0x0,_0x3351cd)?(await this[_0xf4a1a8(0xec)]['readyForCollab'](_0x3bfd68),this[_0xf4a1a8(0x114)]['getWorkbook'](_0x3bfd68)):null;}async['loadDocAsync'](_0x41c835,_0x529f25){const _0x513f59=_0x7bb825;return await this['_snapshotService'][_0x513f59(0x115)](_0x41c835,0x0,_0x529f25)?(await this[_0x513f59(0xec)]['readyForCollab'](_0x41c835),this['_handler'][_0x513f59(0xd6)](_0x41c835)):null;}async[_0x7bb825(0x113)](_0xd05731,_0x2b44c6){const _0x43b3e0=_0x7bb825;return await this['_snapshotService'][_0x43b3e0(0x127)](_0xd05731,0x0,_0x2b44c6)?(await this['_collaborationController'][_0x43b3e0(0x118)](_0xd05731),this[_0x43b3e0(0x114)]['getBase'](_0xd05731)):null;}async[_0x7bb825(0xdc)](_0x22b36e,_0x4aa71e){const _0x15d76=_0x7bb825;return await this[_0x15d76(0x11d)][_0x15d76(0x116)](_0x22b36e,0x0,_0x4aa71e)?(await this[_0x15d76(0xec)]['readyForCollab'](_0x22b36e),this[_0x15d76(0x114)][_0x15d76(0x125)](_0x22b36e)):null;}async[_0x7bb825(0xea)](_0x4b6c30,_0x32613c){const _0x5258cd=_0x7bb825;return await this[_0x5258cd(0x11d)][_0x5258cd(0xf0)](_0x4b6c30,0x0,_0x32613c)?(await this[_0x5258cd(0xec)][_0x5258cd(0x118)](_0x4b6c30),this[_0x5258cd(0x114)]['getBoard'](_0x4b6c30)):null;}async[_0x7bb825(0xd5)](_0x97ae9b,_0x325e08){const _0x5c500a=_0x7bb825;return await this[_0x5c500a(0x11d)][_0x5c500a(0x12e)](_0x97ae9b,0x0,_0x325e08)?(await this['_collaborationController'][_0x5c500a(0x118)](_0x97ae9b),this[_0x5c500a(0x114)][_0x5c500a(0xfe)](_0x97ae9b)):null;}[_0x7bb825(0xe4)](_0x4c7e47,_0x46f332){const _0x2b642d=_0x7bb825;let _0x14b85a=this[_0x2b642d(0xff)][_0x2b642d(0xd2)](_0x5a9ff5[_0x2b642d(0xe3)])[_0x2b642d(0xe9)](_0x4c7e47)[_0x2b642d(0xdb)]((0x0,_0x5c90fd[_0x2b642d(0x133)])(_0x58897d=>_0x58897d[_0x2b642d(0xfa)]))[_0x2b642d(0xf6)](_0x49a577=>_0x46f332(Array['from'](_0x49a577[_0x2b642d(0xe0)]())));return(0x0,_0x28b429[_0x2b642d(0x110)])(_0x14b85a);}[_0x7bb825(0xdd)](_0x7570ec){const _0x251b8b=_0x7bb825;let _0x1c0911=this[_0x251b8b(0x117)](_0x7570ec);if(!_0x1c0911)return _0x5a9ff5[_0x251b8b(0xf4)]['NOT_COLLAB'];let _0x36496e=this[_0x251b8b(0xec)][_0x251b8b(0x10a)](_0x1c0911);return(_0x36496e==null?void 0x0:_0x36496e[_0x251b8b(0xfc)][_0x251b8b(0xf8)])??_0x5a9ff5['CollaborationStatus'][_0x251b8b(0x12c)];}[_0x7bb825(0x11c)](_0x4a023f,_0x100c41={}){const _0x3947de=_0x7bb825;let _0x27ff9c=this['_resolveUnitId'](_0x4a023f);if(!_0x27ff9c)return Promise[_0x3947de(0xfb)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x13e910=this[_0x3947de(0xec)][_0x3947de(0x10a)](_0x27ff9c);if(!_0x13e910)return Promise[_0x3947de(0xfb)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x27ff9c+_0x3947de(0x10e)));let _0x4b4c35=_0x13e910[_0x3947de(0xfc)][_0x3947de(0xf8)];if(_0x4b4c35===_0x5a9ff5[_0x3947de(0xf4)][_0x3947de(0xf2)])return Promise[_0x3947de(0xf7)]();let _0x5cdd31=_0x11cd49(_0x27ff9c,_0x4b4c35);if(_0x5cdd31)return Promise['reject'](_0x5cdd31);let _0x599ea1=_0x100c41[_0x3947de(0xe5)]??0x7530;return new Promise((_0x48c11d,_0x31e204)=>{const _0x19d6e2=_0x3947de;let _0x3f6d3b=!0x1,_0x561cee=null,_0x6070d3=setTimeout(()=>{const _0x252f87=_0x46ec;_0x3f6d3b=!0x0,_0x561cee==null||_0x561cee[_0x252f87(0x131)](),_0x31e204(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x27ff9c+_0x252f87(0x119)+_0x599ea1+_0x252f87(0x111)));},_0x599ea1),_0x845cfe=()=>{const _0x5cef9a=_0x46ec;_0x3f6d3b=!0x0,clearTimeout(_0x6070d3),_0x561cee==null||_0x561cee[_0x5cef9a(0x131)]();};_0x561cee=_0x13e910[_0x19d6e2(0x132)][_0x19d6e2(0xf6)](_0x33dbbf=>{const _0x3ef791=_0x19d6e2;if(_0x3f6d3b)return;if(_0x33dbbf===_0x5a9ff5[_0x3ef791(0xf4)][_0x3ef791(0xf2)]){_0x845cfe(),_0x48c11d();return;}let _0x4f90c1=_0x11cd49(_0x27ff9c,_0x33dbbf);_0x4f90c1&&(_0x845cfe(),_0x31e204(_0x4f90c1));});});}[_0x7bb825(0x117)](_0x32bfca){const _0x3a2e97=_0x7bb825;var _0xb3003d;return _0x32bfca||((_0xb3003d=this['_univerInstanceService'][_0x3a2e97(0xd3)]())==null?void 0x0:_0xb3003d[_0x3a2e97(0x10f)]());}};_0x1a2363=_0x59ec6b([_0x63836b(0x1,(0x0,_0x28b429[_0x7bb825(0xd9)])(_0x28b429[_0x7bb825(0x135)])),_0x63836b(0x2,_0x28b429['IUniverInstanceService']),_0x63836b(0x3,(0x0,_0x28b429['Inject'])(_0x429641['SnapshotService'])),_0x63836b(0x4,(0x0,_0x28b429['Inject'])(_0x5a9ff5[_0x7bb825(0xd1)]))],_0x1a2363);function _0x11cd49(_0x4ff4db,_0x514984){const _0x40864b=_0x7bb825;return _0x514984===_0x5a9ff5[_0x40864b(0xf4)]['CONFLICT']||_0x514984===_0x5a9ff5[_0x40864b(0xf4)][_0x40864b(0x12c)]?Error(_0x40864b(0xde)+_0x4ff4db+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x514984+'.'):null;}var _0x20caa4=class extends _0x74564e['FUniver']{['_initialize'](_0x2fb22b){const _0x30e37b=_0x7bb825;let _0x3bc4cd=_0x2fb22b[_0x30e37b(0xd2)](_0x5a9ff5[_0x30e37b(0xd1)]);this[_0x30e37b(0xda)](this[_0x30e37b(0xee)](this['Event']['CollaborationStatusChanged'],()=>{const _0xca243a=_0x30e37b;let _0x6f8478=new _0x28b429[(_0xca243a(0x105))](),_0x39ed31=_0x3bc4cd['entityInit$'][_0xca243a(0xf6)](_0x31fa3b=>{const _0x14ac47=_0xca243a;let _0xd532a7=_0x31fa3b[_0x14ac47(0x132)][_0x14ac47(0xf6)](_0x4a0e64=>{const _0x2dc196=_0x14ac47;let _0x1b240c={'unitId':_0x31fa3b[_0x2dc196(0xf5)],'status':_0x4a0e64};this[_0x2dc196(0xd7)](this[_0x2dc196(0x10c)][_0x2dc196(0x11b)],_0x1b240c);});_0x6f8478[_0x14ac47(0x103)]((0x0,_0x28b429[_0x14ac47(0x110)])(_0xd532a7));});return _0x6f8478[_0xca243a(0x103)]((0x0,_0x28b429[_0xca243a(0x110)])(_0x39ed31)),_0x6f8478;}));}[_0x7bb825(0x106)](){const _0x4892a4=_0x7bb825;return this['_injector']['createInstance'](_0x1a2363,{'getWorkbook':_0x3eda6a=>this[_0x4892a4(0xed)](_0x3eda6a),'getDocument':_0xd3458c=>this[_0x4892a4(0xd6)](_0xd3458c),'getPresentation':_0x1a1d94=>this[_0x4892a4(0x125)](_0x1a1d94),'getBase':_0x4c2095=>this[_0x4892a4(0xe8)](_0x4c2095),'getBoard':_0x125da5=>this[_0x4892a4(0x123)](_0x125da5),'getPdf':_0x43f355=>this['getPdf'](_0x43f355)});}[_0x7bb825(0x112)](_0x1b8218,_0x14eb26,_0x42d8a6){const _0x423bd6=_0x7bb825;return this[_0x423bd6(0xff)][_0x423bd6(0xd2)](_0x5a9ff5['DataLoaderService'])[_0x423bd6(0xeb)](_0x1b8218,_0x14eb26,_0x42d8a6);}[_0x7bb825(0x11e)](_0x2db66e,_0x2cace7,_0x29e469){const _0x574435=_0x7bb825;return this[_0x574435(0xff)][_0x574435(0xd2)](_0x5a9ff5[_0x574435(0x101)])[_0x574435(0x11a)](_0x2db66e,_0x2cace7,_0x29e469);}};_0x74564e[_0x7bb825(0x12a)]['extend'](_0x20caa4),Object[_0x7bb825(0xdf)](_0x4d25f7,_0x7bb825(0x12f),{'enumerable':!0x0,'get':function(){return _0x1a2363;}});}));
|