@univerjs-pro/collaboration-client 1.0.0-alpha.7 → 1.0.0-beta.0

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 (92) 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/types/controllers/collaboration/collaboration-entity.d.ts +6 -0
  65. package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -4
  66. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +8 -5
  67. package/lib/types/index.d.ts +2 -3
  68. package/lib/types/services/attachment-remote/attachment-io.service.d.ts +9 -4
  69. package/lib/types/services/attachment-remote/types.d.ts +2 -19
  70. package/lib/types/services/member/member.service.d.ts +2 -15
  71. package/lib/umd/facade.js +1 -1
  72. package/lib/umd/index.js +1 -1
  73. package/lib/umd/locale/ar-SA.js +1 -1
  74. package/lib/umd/locale/ca-ES.js +1 -1
  75. package/lib/umd/locale/de-DE.js +1 -1
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/id-ID.js +1 -1
  81. package/lib/umd/locale/it-IT.js +1 -1
  82. package/lib/umd/locale/ja-JP.js +1 -1
  83. package/lib/umd/locale/ko-KR.js +1 -1
  84. package/lib/umd/locale/pl-PL.js +1 -1
  85. package/lib/umd/locale/pt-BR.js +1 -1
  86. package/lib/umd/locale/ru-RU.js +1 -1
  87. package/lib/umd/locale/sk-SK.js +1 -1
  88. package/lib/umd/locale/vi-VN.js +1 -1
  89. package/lib/umd/locale/zh-CN.js +1 -1
  90. package/lib/umd/locale/zh-HK.js +1 -1
  91. package/lib/umd/locale/zh-TW.js +1 -1
  92. package/package.json +15 -14
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0xf2d9fc=_0x2a88;(function(_0x341f5b,_0x28f94b){const _0x36910e=_0x2a88,_0x536022=_0x341f5b();while(!![]){try{const _0x402a33=-parseInt(_0x36910e(0x147))/0x1*(-parseInt(_0x36910e(0x166))/0x2)+-parseInt(_0x36910e(0x17b))/0x3*(-parseInt(_0x36910e(0x189))/0x4)+-parseInt(_0x36910e(0x13a))/0x5*(-parseInt(_0x36910e(0x183))/0x6)+parseInt(_0x36910e(0x175))/0x7*(parseInt(_0x36910e(0x192))/0x8)+parseInt(_0x36910e(0x155))/0x9+-parseInt(_0x36910e(0x152))/0xa*(parseInt(_0x36910e(0x138))/0xb)+-parseInt(_0x36910e(0x15d))/0xc;if(_0x402a33===_0x28f94b)break;else _0x536022['push'](_0x536022['shift']());}catch(_0x2684cf){_0x536022['push'](_0x536022['shift']());}}}(_0x4b81,0xf01ce),Object[_0xf2d9fc(0x174)](exports,Symbol[_0xf2d9fc(0x140)],{'value':_0xf2d9fc(0x145)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');function _0x4b81(){const _0x442b84=['ms.','_resolveUnitId','status$','48107376xlPKua','_snapshotService','resolve','loadBoard','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','DisposableCollection','length','getWorkbook','loadBase','374ULdROA','function','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadSlideAsync','DataLoaderService','decorate','loadSlide','SYNCED','switchMap','\x22\x20after\x20','object','members$','getFocusedUnit','unsubscribe','defineProperty','56OVLVfA','FEventName','getUnitId','status','FUniver','getCollabEntity','42rrkWVq','Event','add','_injector','loadBaseAsync','values','subscribe','[FCollaboration]:\x20Unit\x20\x22','6PcLJxB','getPresentation','SnapshotService','getBoard','CollaborationStatus','getBase','371540FpMwZa','loadDocAsync','disposeWithMe','extend','Inject','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','CollaborationStatusChanged','loadServerUnitOfRevision','registerEventHandler','336152lLAFiE','FCollaboration','entityInit$','\x22\x20while\x20collaboration\x20status\x20is\x20','1991KhidiM','loadSheet','1499465vBOGZi','FEnum','MemberService','from','loadUnit','getDocument','toStringTag','flush','NOT_COLLAB','unitID','get','Module','_univerInstanceService','10136EZrmkE','getCollaboration','CONFLICT','_collaborationController','getOwnPropertyDescriptor','loadSheetAsync','createInstance','getCollaborationStatus','loadBoardAsync','toDisposable','timeout','14670Gwinvf','CollaborationController','_handler','12834990qlVpTS','reject','state','readyForCollab','subscribeCollaborators'];_0x4b81=function(){return _0x442b84;};return _0x4b81();}var a=class extends t[_0xf2d9fc(0x13b)]{get[_0xf2d9fc(0x187)](){return e['CollaborationStatus'];}};t['FEnum'][_0xf2d9fc(0x18c)](a);var o=class extends t[_0xf2d9fc(0x176)]{get[_0xf2d9fc(0x18f)](){const _0x4b6565=_0xf2d9fc;return _0x4b6565(0x18f);}};t[_0xf2d9fc(0x176)]['extend'](o);function s(_0x1c4618,_0x3ff3ed){return function(_0x2468c8,_0x4df6d4){_0x3ff3ed(_0x2468c8,_0x4df6d4,_0x1c4618);};}function c(_0x54cc0f,_0x22b98b,_0x1df523,_0xa36be5){const _0x36b063=_0xf2d9fc;var _0x4ef875=arguments[_0x36b063(0x163)],_0x58f516=_0x4ef875<0x3?_0x22b98b:_0xa36be5===null?_0xa36be5=Object[_0x36b063(0x14b)](_0x22b98b,_0x1df523):_0xa36be5,_0x344c2c;if(typeof Reflect==_0x36b063(0x170)&&typeof Reflect[_0x36b063(0x16b)]==_0x36b063(0x167))_0x58f516=Reflect[_0x36b063(0x16b)](_0x54cc0f,_0x22b98b,_0x1df523,_0xa36be5);else{for(var _0x4824d5=_0x54cc0f[_0x36b063(0x163)]-0x1;_0x4824d5>=0x0;_0x4824d5--)(_0x344c2c=_0x54cc0f[_0x4824d5])&&(_0x58f516=(_0x4ef875<0x3?_0x344c2c(_0x58f516):_0x4ef875>0x3?_0x344c2c(_0x22b98b,_0x1df523,_0x58f516):_0x344c2c(_0x22b98b,_0x1df523))||_0x58f516);}return _0x4ef875>0x3&&_0x58f516&&Object[_0x36b063(0x174)](_0x22b98b,_0x1df523,_0x58f516),_0x58f516;}let l=class extends t['FBase']{constructor(_0x557c28,_0x3901d7,_0xaeb79d,_0x357ba5,_0x40d60d){const _0x3f0b96=_0xf2d9fc;super(),this[_0x3f0b96(0x154)]=_0x557c28,this[_0x3f0b96(0x17e)]=_0x3901d7,this[_0x3f0b96(0x146)]=_0xaeb79d,this[_0x3f0b96(0x15e)]=_0x357ba5,this[_0x3f0b96(0x14a)]=_0x40d60d;}async[_0xf2d9fc(0x14c)](_0x2d6ec1,_0x550c58){const _0x187983=_0xf2d9fc;return await this[_0x187983(0x15e)][_0x187983(0x139)](_0x2d6ec1,0x0,_0x550c58)?(await this['_collaborationController'][_0x187983(0x158)](_0x2d6ec1),this[_0x187983(0x154)][_0x187983(0x164)](_0x2d6ec1)):null;}async[_0xf2d9fc(0x18a)](_0x3249e7,_0x1e26d0){const _0x42abbf=_0xf2d9fc;return await this[_0x42abbf(0x15e)]['loadDoc'](_0x3249e7,0x0,_0x1e26d0)?(await this[_0x42abbf(0x14a)][_0x42abbf(0x158)](_0x3249e7),this[_0x42abbf(0x154)][_0x42abbf(0x13f)](_0x3249e7)):null;}async[_0xf2d9fc(0x17f)](_0x4c4323,_0x211ffc){const _0x1ded1e=_0xf2d9fc;return await this[_0x1ded1e(0x15e)][_0x1ded1e(0x165)](_0x4c4323,0x0,_0x211ffc)?(await this['_collaborationController']['readyForCollab'](_0x4c4323),this[_0x1ded1e(0x154)][_0x1ded1e(0x188)](_0x4c4323)):null;}async[_0xf2d9fc(0x169)](_0x563fd5,_0x3a6c5e){const _0x550f87=_0xf2d9fc;return await this['_snapshotService'][_0x550f87(0x16c)](_0x563fd5,0x0,_0x3a6c5e)?(await this[_0x550f87(0x14a)][_0x550f87(0x158)](_0x563fd5),this['_handler'][_0x550f87(0x184)](_0x563fd5)):null;}async[_0xf2d9fc(0x14f)](_0x324c32,_0x25b6e0){const _0x148520=_0xf2d9fc;return await this[_0x148520(0x15e)][_0x148520(0x160)](_0x324c32,0x0,_0x25b6e0)?(await this[_0x148520(0x14a)][_0x148520(0x158)](_0x324c32),this[_0x148520(0x154)][_0x148520(0x186)](_0x324c32)):null;}[_0xf2d9fc(0x159)](_0x676dc9,_0x278e0a){const _0x23492c=_0xf2d9fc;return(0x0,n[_0x23492c(0x150)])(this['_injector']['get'](e[_0x23492c(0x13c)])['waitForRoom$'](_0x676dc9)['pipe']((0x0,i[_0x23492c(0x16e)])(_0x461227=>_0x461227[_0x23492c(0x171)]))[_0x23492c(0x181)](_0x3ab0bb=>_0x278e0a(Array[_0x23492c(0x13d)](_0x3ab0bb[_0x23492c(0x180)]()))));}[_0xf2d9fc(0x14e)](_0x184000){const _0x1d1648=_0xf2d9fc;var _0x47c990;let _0x38f78e=this['_resolveUnitId'](_0x184000);if(!_0x38f78e)return e[_0x1d1648(0x187)]['NOT_COLLAB'];let _0x2dddcb=this['_collaborationController'][_0x1d1648(0x17a)](_0x38f78e);return(_0x47c990=_0x2dddcb==null?void 0x0:_0x2dddcb[_0x1d1648(0x157)][_0x1d1648(0x178)])==null?e['CollaborationStatus']['NOT_COLLAB']:_0x47c990;}[_0xf2d9fc(0x141)](_0x56e85c,_0x3c096a={}){const _0x5c5b97=_0xf2d9fc;var _0x278902;let _0x36399f=this[_0x5c5b97(0x15b)](_0x56e85c);if(!_0x36399f)return Promise[_0x5c5b97(0x156)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x27bce7=this[_0x5c5b97(0x14a)][_0x5c5b97(0x17a)](_0x36399f);if(!_0x27bce7)return Promise[_0x5c5b97(0x156)](Error(_0x5c5b97(0x182)+_0x36399f+_0x5c5b97(0x18e)));let _0x55fb37=_0x27bce7[_0x5c5b97(0x157)][_0x5c5b97(0x178)];if(_0x55fb37===e[_0x5c5b97(0x187)][_0x5c5b97(0x16d)])return Promise[_0x5c5b97(0x15f)]();let _0x1f1e89=u(_0x36399f,_0x55fb37);if(_0x1f1e89)return Promise[_0x5c5b97(0x156)](_0x1f1e89);let _0x598a5d=(_0x278902=_0x3c096a[_0x5c5b97(0x151)])==null?0x7530:_0x278902;return new Promise((_0x544723,_0x2e8bd7)=>{const _0x240786=_0x5c5b97;let _0x590039=!0x1,_0x199156=null,_0x52842c=setTimeout(()=>{const _0x378166=_0x2a88;_0x590039=!0x0,_0x199156==null||_0x199156['unsubscribe'](),_0x2e8bd7(Error(_0x378166(0x161)+_0x36399f+_0x378166(0x16f)+_0x598a5d+_0x378166(0x15a)));},_0x598a5d),_0x37cbda=()=>{const _0x13f753=_0x2a88;_0x590039=!0x0,clearTimeout(_0x52842c),_0x199156==null||_0x199156[_0x13f753(0x173)]();};_0x199156=_0x27bce7[_0x240786(0x15c)][_0x240786(0x181)](_0x332197=>{const _0x17f1d5=_0x240786;if(_0x590039)return;if(_0x332197===e[_0x17f1d5(0x187)][_0x17f1d5(0x16d)]){_0x37cbda(),_0x544723();return;}let _0x40290d=u(_0x36399f,_0x332197);_0x40290d&&(_0x37cbda(),_0x2e8bd7(_0x40290d));});});}['_resolveUnitId'](_0x2ef195){const _0x35b60d=_0xf2d9fc;var _0x4bc43e;return _0x2ef195||((_0x4bc43e=this[_0x35b60d(0x146)][_0x35b60d(0x172)]())==null?void 0x0:_0x4bc43e[_0x35b60d(0x177)]());}};function _0x2a88(_0xd82428,_0x38dd3a){_0xd82428=_0xd82428-0x136;const _0x4b8129=_0x4b81();let _0x2a88ce=_0x4b8129[_0xd82428];return _0x2a88ce;}l=c([s(0x1,(0x0,n[_0xf2d9fc(0x18d)])(n['Injector'])),s(0x2,n['IUniverInstanceService']),s(0x3,(0x0,n[_0xf2d9fc(0x18d)])(r[_0xf2d9fc(0x185)])),s(0x4,(0x0,n[_0xf2d9fc(0x18d)])(e['CollaborationController']))],l);function u(_0x4f87c7,_0x42b70a){const _0x2f55eb=_0xf2d9fc;return _0x42b70a===e[_0x2f55eb(0x187)][_0x2f55eb(0x149)]||_0x42b70a===e[_0x2f55eb(0x187)][_0x2f55eb(0x142)]?Error(_0x2f55eb(0x168)+_0x4f87c7+_0x2f55eb(0x137)+_0x42b70a+'.'):null;}var d=class extends t[_0xf2d9fc(0x179)]{['_initialize'](_0x1bcd74){const _0x54b2f0=_0xf2d9fc;let _0x43d136=_0x1bcd74[_0x54b2f0(0x144)](e[_0x54b2f0(0x153)]);this[_0x54b2f0(0x18b)](this[_0x54b2f0(0x191)](this['Event'][_0x54b2f0(0x18f)],()=>{const _0x4064a7=_0x54b2f0;let _0xb45945=new n[(_0x4064a7(0x162))](),_0x27056d=_0x43d136[_0x4064a7(0x136)][_0x4064a7(0x181)](_0x252e8e=>{const _0x44142e=_0x4064a7;let _0x461a4d=_0x252e8e['status$']['subscribe'](_0x1ae752=>{const _0x1531a2=_0x2a88;let _0x2392fe={'unitId':_0x252e8e[_0x1531a2(0x143)],'status':_0x1ae752};this['fireEvent'](this[_0x1531a2(0x17c)]['CollaborationStatusChanged'],_0x2392fe);});_0xb45945[_0x44142e(0x17d)]((0x0,n[_0x44142e(0x150)])(_0x461a4d));});return _0xb45945[_0x4064a7(0x17d)]((0x0,n[_0x4064a7(0x150)])(_0x27056d)),_0xb45945;}));}[_0xf2d9fc(0x148)](){const _0xd5ee1f=_0xf2d9fc;return this[_0xd5ee1f(0x17e)][_0xd5ee1f(0x14d)](l,{'getWorkbook':_0x572d4f=>this['getWorkbook'](_0x572d4f),'getDocument':_0x14a4d4=>this[_0xd5ee1f(0x13f)](_0x14a4d4),'getPresentation':_0x59444b=>this[_0xd5ee1f(0x184)](_0x59444b),'getBase':_0x562a2b=>this[_0xd5ee1f(0x188)](_0x562a2b),'getBoard':_0x1d8676=>this['getBoard'](_0x1d8676)});}['loadServerUnit'](_0x3cd9d0,_0x42f8d5,_0x1fc3d3){const _0x4d4b61=_0xf2d9fc;return this['_injector'][_0x4d4b61(0x144)](e[_0x4d4b61(0x16a)])[_0x4d4b61(0x13e)](_0x3cd9d0,_0x42f8d5,_0x1fc3d3);}[_0xf2d9fc(0x190)](_0x30984b,_0x249008,_0xb76de1){const _0x5c2020=_0xf2d9fc;return this[_0x5c2020(0x17e)]['get'](e[_0x5c2020(0x16a)])['loadUnitOfRevision'](_0x30984b,_0x249008,_0xb76de1);}};t[_0xf2d9fc(0x179)][_0xf2d9fc(0x18c)](d),Object[_0xf2d9fc(0x174)](exports,_0xf2d9fc(0x193),{'enumerable':!0x0,'get':function(){return l;}});
1
+ function _0xc692(_0x375ea6,_0xbf6fda){_0x375ea6=_0x375ea6-0x108;const _0x2eeca5=_0x2eec();let _0xc6925d=_0x2eeca5[_0x375ea6];return _0xc6925d;}const _0x1992c8=_0xc692;(function(_0x1ee022,_0x3510d7){const _0x3477eb=_0xc692,_0x26f9d4=_0x1ee022();while(!![]){try{const _0x4dfcea=-parseInt(_0x3477eb(0x11e))/0x1+-parseInt(_0x3477eb(0x115))/0x2+-parseInt(_0x3477eb(0x149))/0x3+-parseInt(_0x3477eb(0x108))/0x4+-parseInt(_0x3477eb(0x14d))/0x5+parseInt(_0x3477eb(0x155))/0x6+-parseInt(_0x3477eb(0x13e))/0x7*(-parseInt(_0x3477eb(0x13b))/0x8);if(_0x4dfcea===_0x3510d7)break;else _0x26f9d4['push'](_0x26f9d4['shift']());}catch(_0x128f8c){_0x26f9d4['push'](_0x26f9d4['shift']());}}}(_0x2eec,0x2f451),Object[_0x1992c8(0x118)](exports,Symbol['toStringTag'],{'value':_0x1992c8(0x151)}));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['FEnum']{get[_0x1992c8(0x145)](){const _0x1bc132=_0x1992c8;return e[_0x1bc132(0x145)];}};t['FEnum']['extend'](a);var o=class extends t[_0x1992c8(0x110)]{get[_0x1992c8(0x116)](){const _0x58d476=_0x1992c8;return _0x58d476(0x116);}};t[_0x1992c8(0x110)][_0x1992c8(0x109)](o);function s(_0x51c04b,_0x49284e){return function(_0x2d640,_0x43fb7a){_0x49284e(_0x2d640,_0x43fb7a,_0x51c04b);};}function c(_0xcc2396,_0x352784,_0x52a85a,_0x2c35fb){const _0x286e88=_0x1992c8;var _0x234b08=arguments['length'],_0x5394a3=_0x234b08<0x3?_0x352784:_0x2c35fb===null?_0x2c35fb=Object[_0x286e88(0x131)](_0x352784,_0x52a85a):_0x2c35fb,_0x5c329b;if(typeof Reflect=='object'&&typeof Reflect[_0x286e88(0x124)]==_0x286e88(0x152))_0x5394a3=Reflect[_0x286e88(0x124)](_0xcc2396,_0x352784,_0x52a85a,_0x2c35fb);else{for(var _0x4eeb28=_0xcc2396[_0x286e88(0x140)]-0x1;_0x4eeb28>=0x0;_0x4eeb28--)(_0x5c329b=_0xcc2396[_0x4eeb28])&&(_0x5394a3=(_0x234b08<0x3?_0x5c329b(_0x5394a3):_0x234b08>0x3?_0x5c329b(_0x352784,_0x52a85a,_0x5394a3):_0x5c329b(_0x352784,_0x52a85a))||_0x5394a3);}return _0x234b08>0x3&&_0x5394a3&&Object[_0x286e88(0x118)](_0x352784,_0x52a85a,_0x5394a3),_0x5394a3;}let l=class extends t[_0x1992c8(0x128)]{constructor(_0x2a6f31,_0x5734a4,_0x29abb8,_0x429070,_0x2c4e0a){const _0xd29750=_0x1992c8;super(),this['_handler']=_0x2a6f31,this[_0xd29750(0x156)]=_0x5734a4,this['_univerInstanceService']=_0x29abb8,this[_0xd29750(0x159)]=_0x429070,this[_0xd29750(0x10a)]=_0x2c4e0a;}async[_0x1992c8(0x133)](_0x54632c,_0x5e6c88){const _0x10ce5f=_0x1992c8;return await this[_0x10ce5f(0x159)]['loadSheet'](_0x54632c,0x0,_0x5e6c88)?(await this[_0x10ce5f(0x10a)][_0x10ce5f(0x129)](_0x54632c),this['_handler'][_0x10ce5f(0x12c)](_0x54632c)):null;}async[_0x1992c8(0x11f)](_0x2e0fd4,_0x5dc9dd){const _0x1ee66d=_0x1992c8;return await this[_0x1ee66d(0x159)][_0x1ee66d(0x13c)](_0x2e0fd4,0x0,_0x5dc9dd)?(await this[_0x1ee66d(0x10a)][_0x1ee66d(0x129)](_0x2e0fd4),this[_0x1ee66d(0x119)][_0x1ee66d(0x14c)](_0x2e0fd4)):null;}async['loadBaseAsync'](_0x16590e,_0x5a98a6){const _0x20bc15=_0x1992c8;return await this[_0x20bc15(0x159)][_0x20bc15(0x123)](_0x16590e,0x0,_0x5a98a6)?(await this[_0x20bc15(0x10a)]['readyForCollab'](_0x16590e),this[_0x20bc15(0x119)][_0x20bc15(0x112)](_0x16590e)):null;}async[_0x1992c8(0x146)](_0x1c9cc3,_0x1b7650){const _0x41fad0=_0x1992c8;return await this[_0x41fad0(0x159)][_0x41fad0(0x137)](_0x1c9cc3,0x0,_0x1b7650)?(await this[_0x41fad0(0x10a)]['readyForCollab'](_0x1c9cc3),this[_0x41fad0(0x119)][_0x41fad0(0x12b)](_0x1c9cc3)):null;}async[_0x1992c8(0x135)](_0xf77c76,_0x223c04){const _0x2ca265=_0x1992c8;return await this[_0x2ca265(0x159)][_0x2ca265(0x10c)](_0xf77c76,0x0,_0x223c04)?(await this[_0x2ca265(0x10a)][_0x2ca265(0x129)](_0xf77c76),this[_0x2ca265(0x119)][_0x2ca265(0x158)](_0xf77c76)):null;}[_0x1992c8(0x144)](_0x2805eb,_0x3ff58c){const _0x32fd74=_0x1992c8;return(0x0,n[_0x32fd74(0x114)])(this[_0x32fd74(0x156)][_0x32fd74(0x143)](e['MemberService'])['waitForRoom$'](_0x2805eb)['pipe']((0x0,i[_0x32fd74(0x117)])(_0x578b9c=>_0x578b9c[_0x32fd74(0x111)]))['subscribe'](_0x2231ab=>_0x3ff58c(Array[_0x32fd74(0x121)](_0x2231ab[_0x32fd74(0x130)]()))));}[_0x1992c8(0x150)](_0x4c4bdf){const _0x344b69=_0x1992c8;let _0x36af15=this[_0x344b69(0x120)](_0x4c4bdf);if(!_0x36af15)return e[_0x344b69(0x145)][_0x344b69(0x13d)];let _0x16679d=this[_0x344b69(0x10a)][_0x344b69(0x148)](_0x36af15);return(_0x16679d==null?void 0x0:_0x16679d[_0x344b69(0x10d)][_0x344b69(0x154)])??e[_0x344b69(0x145)]['NOT_COLLAB'];}['flush'](_0x3f15d1,_0x5ba783={}){const _0x50aa1a=_0x1992c8;let _0x280be6=this[_0x50aa1a(0x120)](_0x3f15d1);if(!_0x280be6)return Promise[_0x50aa1a(0x11c)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x52c8f7=this['_collaborationController'][_0x50aa1a(0x148)](_0x280be6);if(!_0x52c8f7)return Promise[_0x50aa1a(0x11c)](Error(_0x50aa1a(0x125)+_0x280be6+_0x50aa1a(0x14a)));let _0x1d5372=_0x52c8f7[_0x50aa1a(0x10d)]['status'];if(_0x1d5372===e[_0x50aa1a(0x145)][_0x50aa1a(0x11d)])return Promise['resolve']();let _0x266c45=u(_0x280be6,_0x1d5372);if(_0x266c45)return Promise['reject'](_0x266c45);let _0x2b0ade=_0x5ba783[_0x50aa1a(0x15a)]??0x7530;return new Promise((_0x5bfdc2,_0x316220)=>{const _0x2c1386=_0x50aa1a;let _0x44dc8b=!0x1,_0x4a33d5=null,_0x4f6fe0=setTimeout(()=>{const _0x5dc1ea=_0xc692;_0x44dc8b=!0x0,_0x4a33d5==null||_0x4a33d5[_0x5dc1ea(0x139)](),_0x316220(Error(_0x5dc1ea(0x12d)+_0x280be6+_0x5dc1ea(0x122)+_0x2b0ade+_0x5dc1ea(0x113)));},_0x2b0ade),_0x37fa83=()=>{_0x44dc8b=!0x0,clearTimeout(_0x4f6fe0),_0x4a33d5==null||_0x4a33d5['unsubscribe']();};_0x4a33d5=_0x52c8f7['status$'][_0x2c1386(0x157)](_0x5d33f4=>{const _0x2b424f=_0x2c1386;if(_0x44dc8b)return;if(_0x5d33f4===e[_0x2b424f(0x145)]['SYNCED']){_0x37fa83(),_0x5bfdc2();return;}let _0x18f4c1=u(_0x280be6,_0x5d33f4);_0x18f4c1&&(_0x37fa83(),_0x316220(_0x18f4c1));});});}[_0x1992c8(0x120)](_0x30eba6){const _0x5aa50f=_0x1992c8;var _0x54cb5d;return _0x30eba6||((_0x54cb5d=this[_0x5aa50f(0x147)][_0x5aa50f(0x142)]())==null?void 0x0:_0x54cb5d[_0x5aa50f(0x12f)]());}};l=c([s(0x1,(0x0,n[_0x1992c8(0x127)])(n[_0x1992c8(0x132)])),s(0x2,n[_0x1992c8(0x126)]),s(0x3,(0x0,n[_0x1992c8(0x127)])(r['SnapshotService'])),s(0x4,(0x0,n[_0x1992c8(0x127)])(e[_0x1992c8(0x134)]))],l);function _0x2eec(){const _0x2f5f1c=['SYNCED','150405uBniHm','loadDocAsync','_resolveUnitId','from','\x22\x20after\x20','loadBase','decorate','[FCollaboration]:\x20Unit\x20\x22','IUniverInstanceService','Inject','FBase','readyForCollab','loadServerUnit','getPresentation','getWorkbook','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','FUniver','getUnitId','values','getOwnPropertyDescriptor','Injector','loadSheetAsync','CollaborationController','loadBoardAsync','createInstance','loadSlide','\x22\x20while\x20collaboration\x20status\x20is\x20','unsubscribe','loadUnitOfRevision','559448cBFyBz','loadDoc','NOT_COLLAB','98CwLaAO','fireEvent','length','DataLoaderService','getFocusedUnit','get','subscribeCollaborators','CollaborationStatus','loadSlideAsync','_univerInstanceService','getCollabEntity','886359PGFhLS','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','loadUnit','getDocument','376445cFMqcI','DisposableCollection','registerEventHandler','getCollaborationStatus','Module','function','Event','status','1322340brBYRN','_injector','subscribe','getBoard','_snapshotService','timeout','loadServerUnitOfRevision','FCollaboration','1150320vHmoEw','extend','_collaborationController','unitID','loadBoard','state','getCollaboration','_initialize','FEventName','members$','getBase','ms.','toDisposable','394160LRjCjN','CollaborationStatusChanged','switchMap','defineProperty','_handler','add','disposeWithMe','reject'];_0x2eec=function(){return _0x2f5f1c;};return _0x2eec();}function u(_0x996f4,_0x388630){const _0x560a49=_0x1992c8;return _0x388630===e[_0x560a49(0x145)]['CONFLICT']||_0x388630===e[_0x560a49(0x145)]['NOT_COLLAB']?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x996f4+_0x560a49(0x138)+_0x388630+'.'):null;}var d=class extends t[_0x1992c8(0x12e)]{[_0x1992c8(0x10f)](_0x23b9dd){const _0x79f2f=_0x1992c8;let _0x34e35c=_0x23b9dd[_0x79f2f(0x143)](e[_0x79f2f(0x134)]);this[_0x79f2f(0x11b)](this[_0x79f2f(0x14f)](this['Event'][_0x79f2f(0x116)],()=>{const _0x1533ae=_0x79f2f;let _0x31bdd0=new n[(_0x1533ae(0x14e))](),_0x13c663=_0x34e35c['entityInit$'][_0x1533ae(0x157)](_0x2bd1b2=>{const _0x1e904c=_0x1533ae;let _0x1aa191=_0x2bd1b2['status$'][_0x1e904c(0x157)](_0x2210f2=>{const _0x1de646=_0x1e904c;let _0x227f90={'unitId':_0x2bd1b2[_0x1de646(0x10b)],'status':_0x2210f2};this[_0x1de646(0x13f)](this[_0x1de646(0x153)][_0x1de646(0x116)],_0x227f90);});_0x31bdd0[_0x1e904c(0x11a)]((0x0,n['toDisposable'])(_0x1aa191));});return _0x31bdd0[_0x1533ae(0x11a)]((0x0,n[_0x1533ae(0x114)])(_0x13c663)),_0x31bdd0;}));}[_0x1992c8(0x10e)](){const _0xf7491c=_0x1992c8;return this['_injector'][_0xf7491c(0x136)](l,{'getWorkbook':_0x39376a=>this[_0xf7491c(0x12c)](_0x39376a),'getDocument':_0x4b7583=>this[_0xf7491c(0x14c)](_0x4b7583),'getPresentation':_0x264128=>this[_0xf7491c(0x12b)](_0x264128),'getBase':_0x5cda47=>this['getBase'](_0x5cda47),'getBoard':_0x444141=>this[_0xf7491c(0x158)](_0x444141)});}[_0x1992c8(0x12a)](_0x18f245,_0x28c9b8,_0x594581){const _0x379091=_0x1992c8;return this['_injector']['get'](e['DataLoaderService'])[_0x379091(0x14b)](_0x18f245,_0x28c9b8,_0x594581);}[_0x1992c8(0x15b)](_0x41cbe1,_0x11c111,_0x51e320){const _0x2df705=_0x1992c8;return this[_0x2df705(0x156)][_0x2df705(0x143)](e[_0x2df705(0x141)])[_0x2df705(0x13a)](_0x41cbe1,_0x11c111,_0x51e320);}};t[_0x1992c8(0x12e)][_0x1992c8(0x109)](d),Object[_0x1992c8(0x118)](exports,_0x1992c8(0x15c),{'enumerable':!0x0,'get':function(){return l;}});