@univerjs-pro/collaboration-client 1.0.0-beta.1 → 1.0.0-beta.2

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.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +16 -16
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x32d820=_0x345d;(function(_0xd209c8,_0x4ee0f5){const _0xdb385=_0x345d,_0x5b9591=_0xd209c8();while(!![]){try{const _0x1985f0=-parseInt(_0xdb385(0x169))/0x1+parseInt(_0xdb385(0x17a))/0x2+-parseInt(_0xdb385(0x157))/0x3+parseInt(_0xdb385(0x1a6))/0x4*(parseInt(_0xdb385(0x1a1))/0x5)+-parseInt(_0xdb385(0x15f))/0x6*(-parseInt(_0xdb385(0x16f))/0x7)+-parseInt(_0xdb385(0x18b))/0x8*(parseInt(_0xdb385(0x18e))/0x9)+parseInt(_0xdb385(0x1a3))/0xa*(-parseInt(_0xdb385(0x1ab))/0xb);if(_0x1985f0===_0x4ee0f5)break;else _0x5b9591['push'](_0x5b9591['shift']());}catch(_0x4e6216){_0x5b9591['push'](_0x5b9591['shift']());}}}(_0x5cc9,0xd36aa),Object[_0x32d820(0x173)](exports,Symbol[_0x32d820(0x191)],{'value':_0x32d820(0x1ac)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');var a=class extends t[_0x32d820(0x194)]{get['CollaborationStatus'](){return e['CollaborationStatus'];}};t[_0x32d820(0x194)][_0x32d820(0x168)](a);var o=class extends t[_0x32d820(0x163)]{get[_0x32d820(0x187)](){return'CollaborationStatusChanged';}};t[_0x32d820(0x163)]['extend'](o);function _0x5cc9(){const _0x9e1598=['get','loadSheetAsync','210NGVwFI','FUniver','getFocusedUnit','loadPdfAsync','FEventName','loadPdf','members$','ms.','getPresentation','extend','847659OZBBjv','status$','waitForRoom$','FBase','from','SYNCED','143178WhWxhN','getCollaborationStatus','subscribe','_snapshotService','defineProperty','registerEventHandler','Inject','pipe','getPdf','loadUnit','getWorkbook','2876918NOUKWb','status','_resolveUnitId','getCollaboration','resolve','DataLoaderService','loadUnitOfRevision','Injector','CollaborationStatus','switchMap','getDocument','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','_univerInstanceService','CollaborationStatusChanged','length','DisposableCollection','readyForCollab','8XggjoU','values','loadBoardAsync','5267385KwuLkO','\x22\x20after\x20','getBoard','toStringTag','createInstance','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','FEnum','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','subscribeCollaborators','getOwnPropertyDescriptor','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','[FCollaboration]:\x20Unit\x20\x22','loadDocAsync','_initialize','state','_collaborationController','getCollabEntity','loadDoc','NOT_COLLAB','5zhArLz','unsubscribe','60340bsqpfw','fireEvent','disposeWithMe','1762248emRIHN','CollaborationController','loadServerUnit','_handler','_injector','187thKChA','Module','MemberService','toDisposable','CONFLICT','loadBaseAsync','getBase','loadSlide','Event','580341axHqiK','loadServerUnitOfRevision','FCollaboration','reject','loadSheet','IUniverInstanceService'];_0x5cc9=function(){return _0x9e1598;};return _0x5cc9();}function s(_0x4cb9d9,_0x533f94){return function(_0x158a67,_0x3b152d){_0x533f94(_0x158a67,_0x3b152d,_0x4cb9d9);};}function _0x345d(_0x198ef5,_0x412919){_0x198ef5=_0x198ef5-0x152;const _0x5cc96d=_0x5cc9();let _0x345d4b=_0x5cc96d[_0x198ef5];return _0x345d4b;}function c(_0x4cbe7a,_0xe40e91,_0xcc6c2e,_0x36f88b){const _0x32fc26=_0x32d820;var _0x178aff=arguments['length'],_0x44e2e=_0x178aff<0x3?_0xe40e91:_0x36f88b===null?_0x36f88b=Object[_0x32fc26(0x197)](_0xe40e91,_0xcc6c2e):_0x36f88b,_0x3cca0b;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x44e2e=Reflect['decorate'](_0x4cbe7a,_0xe40e91,_0xcc6c2e,_0x36f88b);else{for(var _0x4c46a0=_0x4cbe7a[_0x32fc26(0x188)]-0x1;_0x4c46a0>=0x0;_0x4c46a0--)(_0x3cca0b=_0x4cbe7a[_0x4c46a0])&&(_0x44e2e=(_0x178aff<0x3?_0x3cca0b(_0x44e2e):_0x178aff>0x3?_0x3cca0b(_0xe40e91,_0xcc6c2e,_0x44e2e):_0x3cca0b(_0xe40e91,_0xcc6c2e))||_0x44e2e);}return _0x178aff>0x3&&_0x44e2e&&Object['defineProperty'](_0xe40e91,_0xcc6c2e,_0x44e2e),_0x44e2e;}let l=class extends t[_0x32d820(0x16c)]{constructor(_0x49f2cb,_0x487bac,_0x587e7a,_0x4f41f0,_0x491adb){const _0x4d0077=_0x32d820;super(),this[_0x4d0077(0x1a9)]=_0x49f2cb,this[_0x4d0077(0x1aa)]=_0x487bac,this[_0x4d0077(0x186)]=_0x587e7a,this['_snapshotService']=_0x4f41f0,this[_0x4d0077(0x19d)]=_0x491adb;}async[_0x32d820(0x15e)](_0xf2188,_0xd5ac48){const _0x24b1a2=_0x32d820;return await this['_snapshotService'][_0x24b1a2(0x15b)](_0xf2188,0x0,_0xd5ac48)?(await this['_collaborationController']['readyForCollab'](_0xf2188),this[_0x24b1a2(0x1a9)][_0x24b1a2(0x179)](_0xf2188)):null;}async[_0x32d820(0x19a)](_0x5c8f90,_0x14c6c7){const _0x54fb3b=_0x32d820;return await this[_0x54fb3b(0x172)][_0x54fb3b(0x19f)](_0x5c8f90,0x0,_0x14c6c7)?(await this[_0x54fb3b(0x19d)][_0x54fb3b(0x18a)](_0x5c8f90),this['_handler'][_0x54fb3b(0x184)](_0x5c8f90)):null;}async[_0x32d820(0x153)](_0x3211e7,_0x5ea694){const _0x285832=_0x32d820;return await this['_snapshotService']['loadBase'](_0x3211e7,0x0,_0x5ea694)?(await this[_0x285832(0x19d)]['readyForCollab'](_0x3211e7),this['_handler']['getBase'](_0x3211e7)):null;}async['loadSlideAsync'](_0x1f918e,_0xc785a){const _0x26cbf2=_0x32d820;return await this[_0x26cbf2(0x172)][_0x26cbf2(0x155)](_0x1f918e,0x0,_0xc785a)?(await this[_0x26cbf2(0x19d)][_0x26cbf2(0x18a)](_0x1f918e),this['_handler'][_0x26cbf2(0x167)](_0x1f918e)):null;}async[_0x32d820(0x18d)](_0x594fd3,_0x57a1b6){const _0x1aa837=_0x32d820;return await this[_0x1aa837(0x172)]['loadBoard'](_0x594fd3,0x0,_0x57a1b6)?(await this['_collaborationController']['readyForCollab'](_0x594fd3),this[_0x1aa837(0x1a9)][_0x1aa837(0x190)](_0x594fd3)):null;}async[_0x32d820(0x162)](_0x1865db,_0x2f4866){const _0x871c97=_0x32d820;return await this[_0x871c97(0x172)][_0x871c97(0x164)](_0x1865db,0x0,_0x2f4866)?(await this[_0x871c97(0x19d)][_0x871c97(0x18a)](_0x1865db),this['_handler'][_0x871c97(0x177)](_0x1865db)):null;}[_0x32d820(0x196)](_0x3f62b2,_0x7cf20f){const _0x16ac7d=_0x32d820;return(0x0,n['toDisposable'])(this[_0x16ac7d(0x1aa)][_0x16ac7d(0x15d)](e[_0x16ac7d(0x1ad)])[_0x16ac7d(0x16b)](_0x3f62b2)[_0x16ac7d(0x176)]((0x0,i[_0x16ac7d(0x183)])(_0x3da89f=>_0x3da89f[_0x16ac7d(0x165)]))[_0x16ac7d(0x171)](_0xee582d=>_0x7cf20f(Array[_0x16ac7d(0x16d)](_0xee582d[_0x16ac7d(0x18c)]()))));}[_0x32d820(0x170)](_0x4d5150){const _0x546da9=_0x32d820;let _0x3c5033=this[_0x546da9(0x17c)](_0x4d5150);if(!_0x3c5033)return e['CollaborationStatus'][_0x546da9(0x1a0)];let _0x670d9c=this[_0x546da9(0x19d)][_0x546da9(0x19e)](_0x3c5033);return(_0x670d9c==null?void 0x0:_0x670d9c['state'][_0x546da9(0x17b)])??e[_0x546da9(0x182)][_0x546da9(0x1a0)];}['flush'](_0x3cdeec,_0x199886={}){const _0x402228=_0x32d820;let _0x5eb2ce=this[_0x402228(0x17c)](_0x3cdeec);if(!_0x5eb2ce)return Promise[_0x402228(0x15a)](Error(_0x402228(0x195)));let _0x48562a=this[_0x402228(0x19d)]['getCollabEntity'](_0x5eb2ce);if(!_0x48562a)return Promise[_0x402228(0x15a)](Error(_0x402228(0x199)+_0x5eb2ce+_0x402228(0x198)));let _0x38c9b4=_0x48562a[_0x402228(0x19c)]['status'];if(_0x38c9b4===e[_0x402228(0x182)][_0x402228(0x16e)])return Promise[_0x402228(0x17e)]();let _0x521c7f=u(_0x5eb2ce,_0x38c9b4);if(_0x521c7f)return Promise[_0x402228(0x15a)](_0x521c7f);let _0x424d52=_0x199886['timeout']??0x7530;return new Promise((_0x39b090,_0x1373b8)=>{const _0x3bb3ad=_0x402228;let _0x1a6d0b=!0x1,_0x56a561=null,_0x21795f=setTimeout(()=>{const _0x2f6365=_0x345d;_0x1a6d0b=!0x0,_0x56a561==null||_0x56a561[_0x2f6365(0x1a2)](),_0x1373b8(Error(_0x2f6365(0x185)+_0x5eb2ce+_0x2f6365(0x18f)+_0x424d52+_0x2f6365(0x166)));},_0x424d52),_0x395bc9=()=>{_0x1a6d0b=!0x0,clearTimeout(_0x21795f),_0x56a561==null||_0x56a561['unsubscribe']();};_0x56a561=_0x48562a['status$'][_0x3bb3ad(0x171)](_0x5bcc90=>{const _0xc8787d=_0x3bb3ad;if(_0x1a6d0b)return;if(_0x5bcc90===e['CollaborationStatus'][_0xc8787d(0x16e)]){_0x395bc9(),_0x39b090();return;}let _0xde5303=u(_0x5eb2ce,_0x5bcc90);_0xde5303&&(_0x395bc9(),_0x1373b8(_0xde5303));});});}[_0x32d820(0x17c)](_0xb0666a){const _0xa51663=_0x32d820;var _0x48b0a7;return _0xb0666a||((_0x48b0a7=this[_0xa51663(0x186)][_0xa51663(0x161)]())==null?void 0x0:_0x48b0a7['getUnitId']());}};l=c([s(0x1,(0x0,n[_0x32d820(0x175)])(n[_0x32d820(0x181)])),s(0x2,n[_0x32d820(0x15c)]),s(0x3,(0x0,n[_0x32d820(0x175)])(r['SnapshotService'])),s(0x4,(0x0,n[_0x32d820(0x175)])(e[_0x32d820(0x1a7)]))],l);function u(_0x3886b2,_0x339607){const _0x82aace=_0x32d820;return _0x339607===e[_0x82aace(0x182)][_0x82aace(0x152)]||_0x339607===e[_0x82aace(0x182)][_0x82aace(0x1a0)]?Error(_0x82aace(0x193)+_0x3886b2+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x339607+'.'):null;}var d=class extends t['FUniver']{[_0x32d820(0x19b)](_0x5492e8){const _0x4eb598=_0x32d820;let _0x46c3c1=_0x5492e8[_0x4eb598(0x15d)](e[_0x4eb598(0x1a7)]);this[_0x4eb598(0x1a5)](this[_0x4eb598(0x174)](this[_0x4eb598(0x156)][_0x4eb598(0x187)],()=>{const _0x172367=_0x4eb598;let _0x1a0586=new n[(_0x172367(0x189))](),_0x17e11f=_0x46c3c1['entityInit$'][_0x172367(0x171)](_0x3559aa=>{const _0x40ed5e=_0x172367;let _0x43136a=_0x3559aa[_0x40ed5e(0x16a)]['subscribe'](_0x3d1f9b=>{const _0x23489e=_0x40ed5e;let _0x32ae1e={'unitId':_0x3559aa['unitID'],'status':_0x3d1f9b};this[_0x23489e(0x1a4)](this['Event']['CollaborationStatusChanged'],_0x32ae1e);});_0x1a0586['add']((0x0,n[_0x40ed5e(0x1ae)])(_0x43136a));});return _0x1a0586['add']((0x0,n[_0x172367(0x1ae)])(_0x17e11f)),_0x1a0586;}));}[_0x32d820(0x17d)](){const _0x27054d=_0x32d820;return this['_injector'][_0x27054d(0x192)](l,{'getWorkbook':_0x5eb36a=>this[_0x27054d(0x179)](_0x5eb36a),'getDocument':_0x87e267=>this['getDocument'](_0x87e267),'getPresentation':_0x121ab3=>this[_0x27054d(0x167)](_0x121ab3),'getBase':_0x226dfe=>this[_0x27054d(0x154)](_0x226dfe),'getBoard':_0xf14028=>this[_0x27054d(0x190)](_0xf14028),'getPdf':_0x198680=>this[_0x27054d(0x177)](_0x198680)});}[_0x32d820(0x1a8)](_0x3575cd,_0x371985,_0x18b819){const _0x3a8239=_0x32d820;return this[_0x3a8239(0x1aa)]['get'](e[_0x3a8239(0x17f)])[_0x3a8239(0x178)](_0x3575cd,_0x371985,_0x18b819);}[_0x32d820(0x158)](_0x5da083,_0x4dfd3d,_0xe15e96){const _0x45a076=_0x32d820;return this[_0x45a076(0x1aa)]['get'](e[_0x45a076(0x17f)])[_0x45a076(0x180)](_0x5da083,_0x4dfd3d,_0xe15e96);}};t[_0x32d820(0x160)][_0x32d820(0x168)](d),Object[_0x32d820(0x173)](exports,_0x32d820(0x159),{'enumerable':!0x0,'get':function(){return l;}});
1
+ function _0x10b7(_0x313877,_0x361200){_0x313877=_0x313877-0xc7;const _0x3373bf=_0x3373();let _0x10b7fb=_0x3373bf[_0x313877];return _0x10b7fb;}const _0x35c7c6=_0x10b7;(function(_0xe8d2cc,_0x26b3b6){const _0x5db4a2=_0x10b7,_0x3c58aa=_0xe8d2cc();while(!![]){try{const _0xd8dea0=-parseInt(_0x5db4a2(0x102))/0x1+-parseInt(_0x5db4a2(0xc9))/0x2*(-parseInt(_0x5db4a2(0xe2))/0x3)+parseInt(_0x5db4a2(0xe4))/0x4+parseInt(_0x5db4a2(0x118))/0x5+-parseInt(_0x5db4a2(0xfb))/0x6+parseInt(_0x5db4a2(0xe9))/0x7+-parseInt(_0x5db4a2(0x11a))/0x8*(-parseInt(_0x5db4a2(0xd5))/0x9);if(_0xd8dea0===_0x26b3b6)break;else _0x3c58aa['push'](_0x3c58aa['shift']());}catch(_0x2a869e){_0x3c58aa['push'](_0x3c58aa['shift']());}}}(_0x3373,0x8046c),Object[_0x35c7c6(0x11c)](exports,Symbol['toStringTag'],{'value':_0x35c7c6(0x104)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');var a=class extends t[_0x35c7c6(0xdf)]{get['CollaborationStatus'](){const _0x147c8f=_0x35c7c6;return e[_0x147c8f(0xf4)];}};t[_0x35c7c6(0xdf)]['extend'](a);var o=class extends t[_0x35c7c6(0xf3)]{get[_0x35c7c6(0xd6)](){return'CollaborationStatusChanged';}};t[_0x35c7c6(0xf3)]['extend'](o);function s(_0x2e3121,_0x3f93a1){return function(_0xd69d7e,_0x1bb468){_0x3f93a1(_0xd69d7e,_0x1bb468,_0x2e3121);};}function c(_0x3ff7d0,_0x5da75e,_0x409857,_0x5e2d9b){const _0x2a5ee9=_0x35c7c6;var _0x811287=arguments[_0x2a5ee9(0x111)],_0x412631=_0x811287<0x3?_0x5da75e:_0x5e2d9b===null?_0x5e2d9b=Object['getOwnPropertyDescriptor'](_0x5da75e,_0x409857):_0x5e2d9b,_0x53364d;if(typeof Reflect==_0x2a5ee9(0xd9)&&typeof Reflect[_0x2a5ee9(0xf0)]==_0x2a5ee9(0xde))_0x412631=Reflect[_0x2a5ee9(0xf0)](_0x3ff7d0,_0x5da75e,_0x409857,_0x5e2d9b);else{for(var _0x141d4c=_0x3ff7d0[_0x2a5ee9(0x111)]-0x1;_0x141d4c>=0x0;_0x141d4c--)(_0x53364d=_0x3ff7d0[_0x141d4c])&&(_0x412631=(_0x811287<0x3?_0x53364d(_0x412631):_0x811287>0x3?_0x53364d(_0x5da75e,_0x409857,_0x412631):_0x53364d(_0x5da75e,_0x409857))||_0x412631);}return _0x811287>0x3&&_0x412631&&Object[_0x2a5ee9(0x11c)](_0x5da75e,_0x409857,_0x412631),_0x412631;}let l=class extends t[_0x35c7c6(0xe6)]{constructor(_0x281ce9,_0x29b3e0,_0x38172d,_0x107424,_0x3ad16c){const _0x22ac15=_0x35c7c6;super(),this[_0x22ac15(0xff)]=_0x281ce9,this[_0x22ac15(0xce)]=_0x29b3e0,this[_0x22ac15(0xe7)]=_0x38172d,this[_0x22ac15(0xd2)]=_0x107424,this['_collaborationController']=_0x3ad16c;}async[_0x35c7c6(0x114)](_0x234c4a,_0x50c892){const _0x2c1020=_0x35c7c6;return await this[_0x2c1020(0xd2)][_0x2c1020(0xef)](_0x234c4a,0x0,_0x50c892)?(await this['_collaborationController'][_0x2c1020(0xfd)](_0x234c4a),this['_handler'][_0x2c1020(0xd7)](_0x234c4a)):null;}async[_0x35c7c6(0x11b)](_0x4c3cd9,_0x352c5d){const _0x1cf328=_0x35c7c6;return await this[_0x1cf328(0xd2)][_0x1cf328(0x103)](_0x4c3cd9,0x0,_0x352c5d)?(await this['_collaborationController']['readyForCollab'](_0x4c3cd9),this[_0x1cf328(0xff)]['getDocument'](_0x4c3cd9)):null;}async[_0x35c7c6(0x109)](_0x230e44,_0x331679){const _0x1c3a64=_0x35c7c6;return await this[_0x1c3a64(0xd2)][_0x1c3a64(0xcb)](_0x230e44,0x0,_0x331679)?(await this['_collaborationController']['readyForCollab'](_0x230e44),this[_0x1c3a64(0xff)][_0x1c3a64(0xd1)](_0x230e44)):null;}async[_0x35c7c6(0xed)](_0xfdb187,_0x28a636){const _0x4a1c68=_0x35c7c6;return await this['_snapshotService'][_0x4a1c68(0x106)](_0xfdb187,0x0,_0x28a636)?(await this[_0x4a1c68(0xec)]['readyForCollab'](_0xfdb187),this[_0x4a1c68(0xff)][_0x4a1c68(0x116)](_0xfdb187)):null;}async[_0x35c7c6(0x10a)](_0x11100b,_0x3db1a8){const _0x25e033=_0x35c7c6;return await this['_snapshotService']['loadBoard'](_0x11100b,0x0,_0x3db1a8)?(await this[_0x25e033(0xec)][_0x25e033(0xfd)](_0x11100b),this['_handler'][_0x25e033(0xf5)](_0x11100b)):null;}async[_0x35c7c6(0xfc)](_0x31d9fc,_0x316f18){const _0x3a4df6=_0x35c7c6;return await this[_0x3a4df6(0xd2)][_0x3a4df6(0xfa)](_0x31d9fc,0x0,_0x316f18)?(await this[_0x3a4df6(0xec)]['readyForCollab'](_0x31d9fc),this['_handler'][_0x3a4df6(0x11d)](_0x31d9fc)):null;}[_0x35c7c6(0x117)](_0xa85405,_0x283ff5){const _0x29a7ce=_0x35c7c6;return(0x0,n['toDisposable'])(this[_0x29a7ce(0xce)][_0x29a7ce(0x119)](e[_0x29a7ce(0xdb)])[_0x29a7ce(0xe1)](_0xa85405)[_0x29a7ce(0xe0)]((0x0,i['switchMap'])(_0x5f0d53=>_0x5f0d53['members$']))[_0x29a7ce(0xdd)](_0xf27779=>_0x283ff5(Array['from'](_0xf27779[_0x29a7ce(0xc7)]()))));}['getCollaborationStatus'](_0x3fe248){const _0x3d8179=_0x35c7c6;let _0x1514af=this[_0x3d8179(0xee)](_0x3fe248);if(!_0x1514af)return e[_0x3d8179(0xf4)]['NOT_COLLAB'];let _0x199b03=this[_0x3d8179(0xec)][_0x3d8179(0xfe)](_0x1514af);return(_0x199b03==null?void 0x0:_0x199b03['state'][_0x3d8179(0x10c)])??e[_0x3d8179(0xf4)][_0x3d8179(0xf2)];}[_0x35c7c6(0x113)](_0x5ef070,_0x12c820={}){const _0x4883e4=_0x35c7c6;let _0x2f92f9=this[_0x4883e4(0xee)](_0x5ef070);if(!_0x2f92f9)return Promise[_0x4883e4(0xc8)](Error(_0x4883e4(0xea)));let _0x4345ae=this[_0x4883e4(0xec)]['getCollabEntity'](_0x2f92f9);if(!_0x4345ae)return Promise[_0x4883e4(0xc8)](Error(_0x4883e4(0xe3)+_0x2f92f9+_0x4883e4(0xdc)));let _0x18130f=_0x4345ae[_0x4883e4(0x110)]['status'];if(_0x18130f===e[_0x4883e4(0xf4)][_0x4883e4(0xf1)])return Promise[_0x4883e4(0xe8)]();let _0x1562dd=u(_0x2f92f9,_0x18130f);if(_0x1562dd)return Promise[_0x4883e4(0xc8)](_0x1562dd);let _0x2b3870=_0x12c820[_0x4883e4(0x101)]??0x7530;return new Promise((_0x26fced,_0x43dcc5)=>{const _0x5195b2=_0x4883e4;let _0x223d3f=!0x1,_0x454c58=null,_0x16bedd=setTimeout(()=>{const _0x24c950=_0x10b7;_0x223d3f=!0x0,_0x454c58==null||_0x454c58['unsubscribe'](),_0x43dcc5(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x2f92f9+_0x24c950(0x108)+_0x2b3870+_0x24c950(0xf8)));},_0x2b3870),_0x4cfce1=()=>{const _0x4df819=_0x10b7;_0x223d3f=!0x0,clearTimeout(_0x16bedd),_0x454c58==null||_0x454c58[_0x4df819(0xd0)]();};_0x454c58=_0x4345ae['status$'][_0x5195b2(0xdd)](_0x4ca747=>{const _0x148fac=_0x5195b2;if(_0x223d3f)return;if(_0x4ca747===e[_0x148fac(0xf4)][_0x148fac(0xf1)]){_0x4cfce1(),_0x26fced();return;}let _0x3c290e=u(_0x2f92f9,_0x4ca747);_0x3c290e&&(_0x4cfce1(),_0x43dcc5(_0x3c290e));});});}[_0x35c7c6(0xee)](_0x5ae51c){const _0x11c8c7=_0x35c7c6;var _0x4dc41f;return _0x5ae51c||((_0x4dc41f=this[_0x11c8c7(0xe7)]['getFocusedUnit']())==null?void 0x0:_0x4dc41f[_0x11c8c7(0xda)]());}};l=c([s(0x1,(0x0,n[_0x35c7c6(0xd8)])(n[_0x35c7c6(0xd3)])),s(0x2,n[_0x35c7c6(0x10b)]),s(0x3,(0x0,n[_0x35c7c6(0xd8)])(r[_0x35c7c6(0x10d)])),s(0x4,(0x0,n[_0x35c7c6(0xd8)])(e[_0x35c7c6(0xf6)]))],l);function u(_0x3d1da7,_0x5c17c1){const _0x569d6e=_0x35c7c6;return _0x5c17c1===e[_0x569d6e(0xf4)][_0x569d6e(0xcd)]||_0x5c17c1===e[_0x569d6e(0xf4)][_0x569d6e(0xf2)]?Error(_0x569d6e(0x10f)+_0x3d1da7+_0x569d6e(0x100)+_0x5c17c1+'.'):null;}function _0x3373(){const _0x1412c2=['MemberService','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','subscribe','function','FEnum','pipe','waitForRoom$','3RDjTrD','[FCollaboration]:\x20Unit\x20\x22','1945892pCTWOv','createInstance','FBase','_univerInstanceService','resolve','1868167aTMmSa','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','getDocument','_collaborationController','loadSlideAsync','_resolveUnitId','loadSheet','decorate','SYNCED','NOT_COLLAB','FEventName','CollaborationStatus','getBoard','CollaborationController','loadServerUnit','ms.','FUniver','loadPdf','3895470vGTDuK','loadPdfAsync','readyForCollab','getCollabEntity','_handler','\x22\x20while\x20collaboration\x20status\x20is\x20','timeout','287357jToaoX','loadDoc','Module','Event','loadSlide','fireEvent','\x22\x20after\x20','loadBaseAsync','loadBoardAsync','IUniverInstanceService','status','SnapshotService','loadUnit','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','state','length','_initialize','flush','loadSheetAsync','add','getPresentation','subscribeCollaborators','1857900vxZtwP','get','1695944thyljD','loadDocAsync','defineProperty','getPdf','status$','values','reject','250190WUwoCX','loadServerUnitOfRevision','loadBase','toDisposable','CONFLICT','_injector','DataLoaderService','unsubscribe','getBase','_snapshotService','Injector','disposeWithMe','9DCibyX','CollaborationStatusChanged','getWorkbook','Inject','object','getUnitId'];_0x3373=function(){return _0x1412c2;};return _0x3373();}var d=class extends t['FUniver']{[_0x35c7c6(0x112)](_0x5e8e43){const _0x442325=_0x35c7c6;let _0x504957=_0x5e8e43[_0x442325(0x119)](e[_0x442325(0xf6)]);this[_0x442325(0xd4)](this['registerEventHandler'](this[_0x442325(0x105)]['CollaborationStatusChanged'],()=>{const _0xe5f641=_0x442325;let _0x2e3a06=new n['DisposableCollection'](),_0x496f5d=_0x504957['entityInit$']['subscribe'](_0x4ca662=>{const _0x30c227=_0x10b7;let _0x2bccd1=_0x4ca662[_0x30c227(0x11e)]['subscribe'](_0x346485=>{const _0x80460f=_0x30c227;let _0x398887={'unitId':_0x4ca662['unitID'],'status':_0x346485};this[_0x80460f(0x107)](this['Event'][_0x80460f(0xd6)],_0x398887);});_0x2e3a06[_0x30c227(0x115)]((0x0,n[_0x30c227(0xcc)])(_0x2bccd1));});return _0x2e3a06[_0xe5f641(0x115)]((0x0,n[_0xe5f641(0xcc)])(_0x496f5d)),_0x2e3a06;}));}['getCollaboration'](){const _0xbc1162=_0x35c7c6;return this['_injector'][_0xbc1162(0xe5)](l,{'getWorkbook':_0x39a598=>this[_0xbc1162(0xd7)](_0x39a598),'getDocument':_0x55f212=>this[_0xbc1162(0xeb)](_0x55f212),'getPresentation':_0x4c5a38=>this['getPresentation'](_0x4c5a38),'getBase':_0x2739a3=>this[_0xbc1162(0xd1)](_0x2739a3),'getBoard':_0x4ff5d9=>this[_0xbc1162(0xf5)](_0x4ff5d9),'getPdf':_0x47828a=>this[_0xbc1162(0x11d)](_0x47828a)});}[_0x35c7c6(0xf7)](_0x252bb9,_0x42623d,_0x5d6e01){const _0x176ea2=_0x35c7c6;return this[_0x176ea2(0xce)][_0x176ea2(0x119)](e[_0x176ea2(0xcf)])[_0x176ea2(0x10e)](_0x252bb9,_0x42623d,_0x5d6e01);}[_0x35c7c6(0xca)](_0x2373a7,_0x256722,_0x5ecb43){const _0x482bd3=_0x35c7c6;return this[_0x482bd3(0xce)]['get'](e[_0x482bd3(0xcf)])['loadUnitOfRevision'](_0x2373a7,_0x256722,_0x5ecb43);}};t[_0x35c7c6(0xf9)]['extend'](d),Object[_0x35c7c6(0x11c)](exports,'FCollaboration',{'enumerable':!0x0,'get':function(){return l;}});