@univerjs-pro/collaboration-client 1.0.0-alpha.4 → 1.0.0-alpha.6

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 +14 -14
@@ -1 +1 @@
1
- const _0xa4d642=_0x2c27;(function(_0x3376e7,_0x23df22){const _0x2a2695=_0x2c27,_0x3c1e01=_0x3376e7();while(!![]){try{const _0x305d14=parseInt(_0x2a2695(0x168))/0x1*(-parseInt(_0x2a2695(0x162))/0x2)+-parseInt(_0x2a2695(0x15d))/0x3+parseInt(_0x2a2695(0x14f))/0x4*(parseInt(_0x2a2695(0x15c))/0x5)+parseInt(_0x2a2695(0x151))/0x6+parseInt(_0x2a2695(0x163))/0x7*(parseInt(_0x2a2695(0x155))/0x8)+parseInt(_0x2a2695(0x14e))/0x9*(parseInt(_0x2a2695(0x15b))/0xa)+-parseInt(_0x2a2695(0x161))/0xb*(parseInt(_0x2a2695(0x159))/0xc);if(_0x305d14===_0x23df22)break;else _0x3c1e01['push'](_0x3c1e01['shift']());}catch(_0x1be8e6){_0x3c1e01['push'](_0x3c1e01['shift']());}}}(_0x1edd,0xca142));function _0x2c27(_0x326025,_0x9495ac){_0x326025=_0x326025-0x14e;const _0x1edd6e=_0x1edd();let _0x2c277c=_0x1edd6e[_0x326025];return _0x2c277c;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0xa4d642(0x167)}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':_0xa4d642(0x156),'notCollab':_0xa4d642(0x166),'synced':_0xa4d642(0x15e),'syncing':_0xa4d642(0x154),'offline':_0xa4d642(0x16c)},'session':{'connection-failed':_0xa4d642(0x16a),'will-retry':_0xa4d642(0x16b),'room-full':_0xa4d642(0x152),'join-failed':_0xa4d642(0x153),'room-not-exists':_0xa4d642(0x158),'room-permission-denied':_0xa4d642(0x169),'room-cnt-exceeds':_0xa4d642(0x164),'collaboration-timeout':_0xa4d642(0x160)},'conflict':{'title':_0xa4d642(0x165),'content':_0xa4d642(0x15a)},'permission':{'title':_0xa4d642(0x150),'content':_0xa4d642(0x15f)},'collaboration':{'single-unit':{'warning':_0xa4d642(0x157)},'closeRoom':_0xa4d642(0x16d)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};export{e as default};function _0x1edd(){const _0x48f5a7=['3464400ISoOXW','此文件協作人數已達上限,您的編輯將暫存於本機。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','同步中...','16IIWsPG','編輯衝突','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','加入協作失敗,您的編輯將暫存於本機。','48DvvRmo','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','750JEBhYE','2495930DEVARE','83685hDTnvn','已同步','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','伺服器未回應協作請求,您的編輯將儲存在本機。','2429768lCXJwG','4qrHlZl','751583ZvgdVP','協作文件數量超過限制,您的編輯將暫存於本機。','協作衝突','本機檔案','點擊重新連線','659387HESHiY','沒有協作權限,您的編輯將暫存於本機。','連線失敗,請檢查您的網路。','連線失敗,將在稍後重試連線。','已離線,編輯將儲存在本機','由於協作房間已關閉,編輯權限已被收回。','152091ASVfTD','8nJOtmK','認證錯誤'];_0x1edd=function(){return _0x48f5a7;};return _0x1edd();}
1
+ const _0x5236c6=_0x384f;function _0x384f(_0x30e188,_0xf03d48){_0x30e188=_0x30e188-0x9d;const _0x10dd93=_0x10dd();let _0x384f37=_0x10dd93[_0x30e188];return _0x384f37;}(function(_0x34e3fb,_0x3cf953){const _0x2ba0aa=_0x384f,_0x2a314c=_0x34e3fb();while(!![]){try{const _0x32e75f=-parseInt(_0x2ba0aa(0xb2))/0x1+parseInt(_0x2ba0aa(0xa7))/0x2+parseInt(_0x2ba0aa(0xb7))/0x3+-parseInt(_0x2ba0aa(0xab))/0x4+-parseInt(_0x2ba0aa(0xad))/0x5+parseInt(_0x2ba0aa(0x9d))/0x6*(parseInt(_0x2ba0aa(0x9e))/0x7)+parseInt(_0x2ba0aa(0xaa))/0x8*(parseInt(_0x2ba0aa(0xb1))/0x9);if(_0x32e75f===_0x3cf953)break;else _0x2a314c['push'](_0x2a314c['shift']());}catch(_0x4ae41a){_0x2a314c['push'](_0x2a314c['shift']());}}}(_0x10dd,0xddc8e));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x5236c6(0xa4)}},'collabStatus':{'fetchMiss':_0x5236c6(0xa6),'conflict':_0x5236c6(0xb5),'notCollab':_0x5236c6(0xb0),'synced':_0x5236c6(0xae),'syncing':'同步中...','offline':_0x5236c6(0xb6)},'session':{'connection-failed':_0x5236c6(0xa2),'will-retry':_0x5236c6(0xb3),'room-full':'此文件協作人數已達上限,您的編輯將暫存於本機。','join-failed':_0x5236c6(0xa8),'room-not-exists':_0x5236c6(0xa3),'room-permission-denied':_0x5236c6(0xa5),'room-cnt-exceeds':'協作文件數量超過限制,您的編輯將暫存於本機。','collaboration-timeout':_0x5236c6(0xaf)},'conflict':{'title':_0x5236c6(0x9f),'content':_0x5236c6(0xb4)},'permission':{'title':_0x5236c6(0xac),'content':_0x5236c6(0xa9)},'collaboration':{'single-unit':{'warning':_0x5236c6(0xa1)},'closeRoom':_0x5236c6(0xa0)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};export{e as default};function _0x10dd(){const _0x583d46=['1878550lkJLbG','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','32CupYpv','1936160bQynLE','認證錯誤','6402945IMttPz','已同步','伺服器未回應協作請求,您的編輯將儲存在本機。','本機檔案','993915wYgbtR','588769jZmlsk','連線失敗,將在稍後重試連線。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','編輯衝突','已離線,編輯將儲存在本機','4237707ZFpAHJ','401352kZRzxu','49Szkiht','協作衝突','由於協作房間已關閉,編輯權限已被收回。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','連線失敗,請檢查您的網路。','加入協作失敗,您的編輯將暫存於本機。','點擊重新連線','沒有協作權限,您的編輯將暫存於本機。','正在擷取伺服器資料...'];_0x10dd=function(){return _0x583d46;};return _0x10dd();}
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4eff(){const _0xebc6ef=['loadSheetAsync','_collaborationController','FBase','status$','ms.','_initialize','getPresentation','rxjs','1079299iGGoRT','_resolveUnitId','loadBase','state','extend','SYNCED','FCollaboration','FEnum','[FCollaboration]:\x20Unit\x20\x22','toStringTag','NOT_COLLAB','CollaborationController','Module','loadUnit','values','43945ASdzbh','object','registerEventHandler','loadDoc','@univerjs-pro/collaboration-client','loadBoard','unitID','length','defineProperty','exports','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','toDisposable','15mfSXen','unsubscribe','function','resolve','_injector','loadSheet','getCollabEntity','loadDocAsync','loadServerUnit','_handler','582gRdBoo','191943faFbow','@univerjs/core','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','getDocument','getOwnPropertyDescriptor','SnapshotService','amd','status','get','add','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','\x22\x20after\x20','719512gGESDx','loadBoardAsync','readyForCollab','getFocusedUnit','from','getBoard','subscribe','Event','entityInit$','createInstance','IUniverInstanceService','CollaborationStatusChanged','@univerjs/core/facade','getWorkbook','DisposableCollection','_snapshotService','12538830myrTXf','DataLoaderService','loadUnitOfRevision','_univerInstanceService','reject','UniverProCollaborationClientFacade','CollaborationStatus','MemberService','CONFLICT','@univerjs-pro/collaboration','FEventName','fireEvent','UniverCore','decorate','flush','loadBaseAsync','2410289wDTmeD','getCollaboration','8FdeXVk','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','getBase','FUniver','Inject','loadServerUnitOfRevision','2398804YjGFeO','UniverProCollaborationClient'];_0x4eff=function(){return _0xebc6ef;};return _0x4eff();}function _0x299f(_0x19dac4,_0x41173c){_0x19dac4=_0x19dac4-0x75;const _0x4effc9=_0x4eff();let _0x299f49=_0x4effc9[_0x19dac4];return _0x299f49;}(function(_0x4ce818,_0x4b9724){const _0x270c0f=_0x299f,_0xab29d7=_0x4ce818();while(!![]){try{const _0xaed5b1=parseInt(_0x270c0f(0x9a))/0x1+parseInt(_0x270c0f(0x90))/0x2+parseInt(_0x270c0f(0xb5))/0x3*(-parseInt(_0x270c0f(0xcc))/0x4)+-parseInt(_0x270c0f(0xa9))/0x5*(-parseInt(_0x270c0f(0xbf))/0x6)+-parseInt(_0x270c0f(0x88))/0x7*(parseInt(_0x270c0f(0x8a))/0x8)+parseInt(_0x270c0f(0xc0))/0x9+-parseInt(_0x270c0f(0x78))/0xa;if(_0xaed5b1===_0x4b9724)break;else _0xab29d7['push'](_0xab29d7['shift']());}catch(_0x1cc992){_0xab29d7['push'](_0xab29d7['shift']());}}}(_0x4eff,0x9fe71),function(_0x1e08f6,_0x3548bc){const _0x4e24c0=_0x299f;typeof exports==_0x4e24c0(0xaa)&&typeof module<'u'?_0x3548bc(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x4e24c0(0xb7)&&define[_0x4e24c0(0xc6)]?define([_0x4e24c0(0xb2),_0x4e24c0(0xad),_0x4e24c0(0xd8),_0x4e24c0(0xc1),_0x4e24c0(0x81),_0x4e24c0(0x99)],_0x3548bc):(_0x1e08f6=typeof globalThis<'u'?globalThis:_0x1e08f6||self,_0x3548bc(_0x1e08f6[_0x4e24c0(0x7d)]={},_0x1e08f6[_0x4e24c0(0x91)],_0x1e08f6['UniverCoreFacade'],_0x1e08f6[_0x4e24c0(0x84)],_0x1e08f6['UniverProCollaboration'],_0x1e08f6['rxjs']));}(this,function(_0x4ca478,_0x15892a,_0x26c841,_0x16f7fc,_0x4bf555,_0x3a4b4f){const _0xb49d29=_0x299f;Object[_0xb49d29(0xb1)](_0x4ca478,Symbol[_0xb49d29(0xa3)],{'value':_0xb49d29(0xa6)});var _0x2e42bf=class extends _0x26c841['FEnum']{get[_0xb49d29(0x7e)](){const _0x4040f4=_0xb49d29;return _0x15892a[_0x4040f4(0x7e)];}};_0x26c841[_0xb49d29(0xa1)]['extend'](_0x2e42bf);var _0x9bc4cd=class extends _0x26c841[_0xb49d29(0x82)]{get[_0xb49d29(0xd7)](){const _0x5ac31f=_0xb49d29;return _0x5ac31f(0xd7);}};_0x26c841[_0xb49d29(0x82)][_0xb49d29(0x9e)](_0x9bc4cd);function _0x50d807(_0x2cf027,_0x303320){return function(_0x44768f,_0x41b71f){_0x303320(_0x44768f,_0x41b71f,_0x2cf027);};}function _0x431474(_0x2d8b95,_0x298c87,_0x3491da,_0x5afd55){const _0xb968ea=_0xb49d29;var _0x3fd37c=arguments[_0xb968ea(0xb0)],_0x563069=_0x3fd37c<0x3?_0x298c87:_0x5afd55===null?_0x5afd55=Object[_0xb968ea(0xc4)](_0x298c87,_0x3491da):_0x5afd55,_0x5dfa78;if(typeof Reflect=='object'&&typeof Reflect[_0xb968ea(0x85)]==_0xb968ea(0xb7))_0x563069=Reflect['decorate'](_0x2d8b95,_0x298c87,_0x3491da,_0x5afd55);else{for(var _0x26045d=_0x2d8b95[_0xb968ea(0xb0)]-0x1;_0x26045d>=0x0;_0x26045d--)(_0x5dfa78=_0x2d8b95[_0x26045d])&&(_0x563069=(_0x3fd37c<0x3?_0x5dfa78(_0x563069):_0x3fd37c>0x3?_0x5dfa78(_0x298c87,_0x3491da,_0x563069):_0x5dfa78(_0x298c87,_0x3491da))||_0x563069);}return _0x3fd37c>0x3&&_0x563069&&Object[_0xb968ea(0xb1)](_0x298c87,_0x3491da,_0x563069),_0x563069;}let _0x15f830=class extends _0x26c841[_0xb49d29(0x94)]{constructor(_0x2e6823,_0x1033d4,_0x261f06,_0x5bfe3c,_0x4c3393){const _0x41f6b9=_0xb49d29;super(),this['_handler']=_0x2e6823,this[_0x41f6b9(0xb9)]=_0x1033d4,this[_0x41f6b9(0x7b)]=_0x261f06,this[_0x41f6b9(0x77)]=_0x5bfe3c,this[_0x41f6b9(0x93)]=_0x4c3393;}async[_0xb49d29(0x92)](_0x5c5c70,_0x25dae7){const _0x486e63=_0xb49d29;return await this['_snapshotService'][_0x486e63(0xba)](_0x5c5c70,0x0,_0x25dae7)?(await this[_0x486e63(0x93)][_0x486e63(0xce)](_0x5c5c70),this[_0x486e63(0xbe)]['getWorkbook'](_0x5c5c70)):null;}async[_0xb49d29(0xbc)](_0x3bf73e,_0x21946d){const _0x118bf3=_0xb49d29;return await this[_0x118bf3(0x77)][_0x118bf3(0xac)](_0x3bf73e,0x0,_0x21946d)?(await this[_0x118bf3(0x93)][_0x118bf3(0xce)](_0x3bf73e),this[_0x118bf3(0xbe)][_0x118bf3(0xc3)](_0x3bf73e)):null;}async[_0xb49d29(0x87)](_0x5331f8,_0x40242a){const _0xdfc7b3=_0xb49d29;return await this[_0xdfc7b3(0x77)][_0xdfc7b3(0x9c)](_0x5331f8,0x0,_0x40242a)?(await this[_0xdfc7b3(0x93)][_0xdfc7b3(0xce)](_0x5331f8),this[_0xdfc7b3(0xbe)][_0xdfc7b3(0x8c)](_0x5331f8)):null;}async['loadSlideAsync'](_0x11644d,_0x46bdf4){const _0xe374a2=_0xb49d29;return await this[_0xe374a2(0x77)]['loadSlide'](_0x11644d,0x0,_0x46bdf4)?(await this[_0xe374a2(0x93)][_0xe374a2(0xce)](_0x11644d),this['_handler'][_0xe374a2(0x98)](_0x11644d)):null;}async[_0xb49d29(0xcd)](_0x33d66b,_0x2f1834){const _0x1d6ad2=_0xb49d29;return await this[_0x1d6ad2(0x77)][_0x1d6ad2(0xae)](_0x33d66b,0x0,_0x2f1834)?(await this[_0x1d6ad2(0x93)][_0x1d6ad2(0xce)](_0x33d66b),this[_0x1d6ad2(0xbe)][_0x1d6ad2(0xd1)](_0x33d66b)):null;}['subscribeCollaborators'](_0x3eadd4,_0x4783d9){const _0x3485e9=_0xb49d29;return(0x0,_0x16f7fc['toDisposable'])(this[_0x3485e9(0xb9)][_0x3485e9(0xc8)](_0x15892a[_0x3485e9(0x7f)])['waitForRoom$'](_0x3eadd4)['pipe']((0x0,_0x3a4b4f['switchMap'])(_0xc9fa6=>_0xc9fa6['members$']))['subscribe'](_0x5d76f1=>_0x4783d9(Array[_0x3485e9(0xd0)](_0x5d76f1[_0x3485e9(0xa8)]()))));}['getCollaborationStatus'](_0x1014a0){const _0x2c059f=_0xb49d29;var _0x1c1e18;let _0x1ae4aa=this['_resolveUnitId'](_0x1014a0);if(!_0x1ae4aa)return _0x15892a['CollaborationStatus']['NOT_COLLAB'];let _0x476e5c=this['_collaborationController'][_0x2c059f(0xbb)](_0x1ae4aa);return(_0x1c1e18=_0x476e5c==null?void 0x0:_0x476e5c['state'][_0x2c059f(0xc7)])==null?_0x15892a[_0x2c059f(0x7e)]['NOT_COLLAB']:_0x1c1e18;}[_0xb49d29(0x86)](_0x33506b,_0x51259a={}){const _0x1e6668=_0xb49d29;var _0x503ec2;let _0x3c3acf=this[_0x1e6668(0x9b)](_0x33506b);if(!_0x3c3acf)return Promise[_0x1e6668(0x7c)](Error(_0x1e6668(0xca)));let _0x13e7a7=this[_0x1e6668(0x93)]['getCollabEntity'](_0x3c3acf);if(!_0x13e7a7)return Promise[_0x1e6668(0x7c)](Error(_0x1e6668(0xa2)+_0x3c3acf+_0x1e6668(0xb3)));let _0x38c5d9=_0x13e7a7[_0x1e6668(0x9d)]['status'];if(_0x38c5d9===_0x15892a[_0x1e6668(0x7e)][_0x1e6668(0x9f)])return Promise[_0x1e6668(0xb8)]();let _0x182800=_0x5e889e(_0x3c3acf,_0x38c5d9);if(_0x182800)return Promise[_0x1e6668(0x7c)](_0x182800);let _0xc1d9d4=(_0x503ec2=_0x51259a['timeout'])==null?0x7530:_0x503ec2;return new Promise((_0x15866b,_0x2ed0e0)=>{const _0x1e4a20=_0x1e6668;let _0x83b2af=!0x1,_0xb91cb9=null,_0x578267=setTimeout(()=>{const _0x4a47bb=_0x299f;_0x83b2af=!0x0,_0xb91cb9==null||_0xb91cb9[_0x4a47bb(0xb6)](),_0x2ed0e0(Error(_0x4a47bb(0x8b)+_0x3c3acf+_0x4a47bb(0xcb)+_0xc1d9d4+_0x4a47bb(0x96)));},_0xc1d9d4),_0x7653ff=()=>{const _0x115e45=_0x299f;_0x83b2af=!0x0,clearTimeout(_0x578267),_0xb91cb9==null||_0xb91cb9[_0x115e45(0xb6)]();};_0xb91cb9=_0x13e7a7['status$'][_0x1e4a20(0xd2)](_0x1a9ce7=>{const _0x35363b=_0x1e4a20;if(_0x83b2af)return;if(_0x1a9ce7===_0x15892a[_0x35363b(0x7e)][_0x35363b(0x9f)]){_0x7653ff(),_0x15866b();return;}let _0x5bf0e3=_0x5e889e(_0x3c3acf,_0x1a9ce7);_0x5bf0e3&&(_0x7653ff(),_0x2ed0e0(_0x5bf0e3));});});}[_0xb49d29(0x9b)](_0x364d63){const _0xaf0fb6=_0xb49d29;var _0x44a688;return _0x364d63||((_0x44a688=this[_0xaf0fb6(0x7b)][_0xaf0fb6(0xcf)]())==null?void 0x0:_0x44a688['getUnitId']());}};_0x15f830=_0x431474([_0x50d807(0x1,(0x0,_0x16f7fc[_0xb49d29(0x8e)])(_0x16f7fc['Injector'])),_0x50d807(0x2,_0x16f7fc[_0xb49d29(0xd6)]),_0x50d807(0x3,(0x0,_0x16f7fc[_0xb49d29(0x8e)])(_0x4bf555[_0xb49d29(0xc5)])),_0x50d807(0x4,(0x0,_0x16f7fc[_0xb49d29(0x8e)])(_0x15892a[_0xb49d29(0xa5)]))],_0x15f830);function _0x5e889e(_0x274e69,_0xaed991){const _0x262823=_0xb49d29;return _0xaed991===_0x15892a['CollaborationStatus'][_0x262823(0x80)]||_0xaed991===_0x15892a[_0x262823(0x7e)][_0x262823(0xa4)]?Error(_0x262823(0xc2)+_0x274e69+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0xaed991+'.'):null;}var _0x514769=class extends _0x26c841[_0xb49d29(0x8d)]{[_0xb49d29(0x97)](_0x53adda){const _0x12ed27=_0xb49d29;let _0x1d512a=_0x53adda['get'](_0x15892a[_0x12ed27(0xa5)]);this['disposeWithMe'](this[_0x12ed27(0xab)](this['Event']['CollaborationStatusChanged'],()=>{const _0x445de5=_0x12ed27;let _0x92e2ce=new _0x16f7fc[(_0x445de5(0x76))](),_0x37da96=_0x1d512a[_0x445de5(0xd4)]['subscribe'](_0x3a935a=>{const _0x4bb353=_0x445de5;let _0x5a1456=_0x3a935a[_0x4bb353(0x95)][_0x4bb353(0xd2)](_0xa89233=>{const _0x1c8ea8=_0x4bb353;let _0x5d80ac={'unitId':_0x3a935a[_0x1c8ea8(0xaf)],'status':_0xa89233};this[_0x1c8ea8(0x83)](this[_0x1c8ea8(0xd3)]['CollaborationStatusChanged'],_0x5d80ac);});_0x92e2ce[_0x4bb353(0xc9)]((0x0,_0x16f7fc[_0x4bb353(0xb4)])(_0x5a1456));});return _0x92e2ce['add']((0x0,_0x16f7fc[_0x445de5(0xb4)])(_0x37da96)),_0x92e2ce;}));}[_0xb49d29(0x89)](){const _0x1027a5=_0xb49d29;return this['_injector'][_0x1027a5(0xd5)](_0x15f830,{'getWorkbook':_0x4cd6ab=>this[_0x1027a5(0x75)](_0x4cd6ab),'getDocument':_0x5ddeb8=>this[_0x1027a5(0xc3)](_0x5ddeb8),'getPresentation':_0xe47905=>this[_0x1027a5(0x98)](_0xe47905),'getBase':_0x5e1b04=>this[_0x1027a5(0x8c)](_0x5e1b04),'getBoard':_0x497cd5=>this[_0x1027a5(0xd1)](_0x497cd5)});}[_0xb49d29(0xbd)](_0x4ac871,_0x477dc0,_0x4b329f){const _0x577ed6=_0xb49d29;return this[_0x577ed6(0xb9)]['get'](_0x15892a['DataLoaderService'])[_0x577ed6(0xa7)](_0x4ac871,_0x477dc0,_0x4b329f);}[_0xb49d29(0x8f)](_0x18e378,_0xe0178c,_0x2bff0e){const _0x28c641=_0xb49d29;return this['_injector'][_0x28c641(0xc8)](_0x15892a[_0x28c641(0x79)])[_0x28c641(0x7a)](_0x18e378,_0xe0178c,_0x2bff0e);}};_0x26c841[_0xb49d29(0x8d)]['extend'](_0x514769),Object[_0xb49d29(0xb1)](_0x4ca478,_0xb49d29(0xa0),{'enumerable':!0x0,'get':function(){return _0x15f830;}});}));
1
+ function _0x350e(_0x463cfa,_0x4ee3a6){_0x463cfa=_0x463cfa-0x1b7;const _0x3f1247=_0x3f12();let _0x350e5d=_0x3f1247[_0x463cfa];return _0x350e5d;}function _0x3f12(){const _0x22b44d=['\x22\x20after\x20','length','reject','exports','@univerjs-pro/collaboration','loadDoc','IUniverInstanceService','extend','loadServerUnitOfRevision','loadSlideAsync','entityInit$','132908cRcHoY','Inject','UniverCoreFacade','values','Module','from','[FCollaboration]:\x20Unit\x20\x22','decorate','24wOuQKA','subscribe','unsubscribe','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','FEventName','2404335FdYGxW','12856151NofHtV','_univerInstanceService','object','loadSlide','_handler','CollaborationStatusChanged','SYNCED','get','subscribeCollaborators','FEnum','getDocument','getFocusedUnit','state','getCollabEntity','loadDocAsync','loadUnitOfRevision','loadBoardAsync','FCollaboration','6ORikPS','105282mTLler','CollaborationController','loadSheet','getBase','loadBoard','rxjs','getBoard','toDisposable','_injector','flush','Injector','679JegCwH','loadSheetAsync','MemberService','status$','495124mzCBsd','_snapshotService','readyForCollab','UniverProCollaborationClientFacade','disposeWithMe','NOT_COLLAB','104eakSXE','members$','getUnitId','UniverProCollaboration','loadServerUnit','CollaborationStatus','timeout','loadBase','FUniver','getCollaborationStatus','@univerjs/core','2152OyKfmq','add','@univerjs/core/facade','DataLoaderService','SnapshotService','_resolveUnitId','status','createInstance','getPresentation','unitID','5942260HNciIW','defineProperty','Event','toStringTag','_collaborationController','\x22\x20while\x20collaboration\x20status\x20is\x20','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'];_0x3f12=function(){return _0x22b44d;};return _0x3f12();}(function(_0xfbe1ee,_0xd8f8ae){const _0x4ed459=_0x350e,_0x3f3ca3=_0xfbe1ee();while(!![]){try{const _0x57a7bf=parseInt(_0x4ed459(0x1f2))/0x1*(-parseInt(_0x4ed459(0x207))/0x2)+parseInt(_0x4ed459(0x1ce))/0x3*(-parseInt(_0x4ed459(0x1c6))/0x4)+parseInt(_0x4ed459(0x1d3))/0x5*(-parseInt(_0x4ed459(0x1e6))/0x6)+-parseInt(_0x4ed459(0x1f6))/0x7+-parseInt(_0x4ed459(0x1fc))/0x8*(-parseInt(_0x4ed459(0x1e7))/0x9)+parseInt(_0x4ed459(0x211))/0xa+parseInt(_0x4ed459(0x1d4))/0xb;if(_0x57a7bf===_0xd8f8ae)break;else _0x3f3ca3['push'](_0x3f3ca3['shift']());}catch(_0x3bd16d){_0x3f3ca3['push'](_0x3f3ca3['shift']());}}}(_0x3f12,0x599ae),function(_0x4d56ea,_0x253143){const _0x485e68=_0x350e;typeof exports==_0x485e68(0x1d6)&&typeof module<'u'?_0x253143(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define=='function'&&define['amd']?define([_0x485e68(0x1be),'@univerjs-pro/collaboration-client',_0x485e68(0x209),_0x485e68(0x206),_0x485e68(0x1bf),_0x485e68(0x1ec)],_0x253143):(_0x4d56ea=typeof globalThis<'u'?globalThis:_0x4d56ea||self,_0x253143(_0x4d56ea[_0x485e68(0x1f9)]={},_0x4d56ea['UniverProCollaborationClient'],_0x4d56ea[_0x485e68(0x1c8)],_0x4d56ea['UniverCore'],_0x4d56ea[_0x485e68(0x1ff)],_0x4d56ea[_0x485e68(0x1ec)]));}(this,function(_0x862acb,_0xa0823e,_0x57d6e3,_0x484e38,_0x217e93,_0x3f6322){const _0x5b5894=_0x350e;Object[_0x5b5894(0x212)](_0x862acb,Symbol[_0x5b5894(0x1b7)],{'value':_0x5b5894(0x1ca)});var _0x44f0cf=class extends _0x57d6e3[_0x5b5894(0x1dd)]{get[_0x5b5894(0x201)](){return _0xa0823e['CollaborationStatus'];}};_0x57d6e3[_0x5b5894(0x1dd)][_0x5b5894(0x1c2)](_0x44f0cf);var _0x5834ea=class extends _0x57d6e3[_0x5b5894(0x1d2)]{get[_0x5b5894(0x1d9)](){const _0x2ad635=_0x5b5894;return _0x2ad635(0x1d9);}};_0x57d6e3[_0x5b5894(0x1d2)][_0x5b5894(0x1c2)](_0x5834ea);function _0xd29c33(_0x1b4706,_0x825115){return function(_0x57703a,_0x5142f6){_0x825115(_0x57703a,_0x5142f6,_0x1b4706);};}function _0x54c5f4(_0x2e7c8c,_0x4ef18f,_0x4517e6,_0x18eb5a){const _0x46243a=_0x5b5894;var _0x5dd2de=arguments['length'],_0x3e34d6=_0x5dd2de<0x3?_0x4ef18f:_0x18eb5a===null?_0x18eb5a=Object['getOwnPropertyDescriptor'](_0x4ef18f,_0x4517e6):_0x18eb5a,_0x1ca925;if(typeof Reflect==_0x46243a(0x1d6)&&typeof Reflect[_0x46243a(0x1cd)]=='function')_0x3e34d6=Reflect[_0x46243a(0x1cd)](_0x2e7c8c,_0x4ef18f,_0x4517e6,_0x18eb5a);else{for(var _0x4c38d=_0x2e7c8c[_0x46243a(0x1bc)]-0x1;_0x4c38d>=0x0;_0x4c38d--)(_0x1ca925=_0x2e7c8c[_0x4c38d])&&(_0x3e34d6=(_0x5dd2de<0x3?_0x1ca925(_0x3e34d6):_0x5dd2de>0x3?_0x1ca925(_0x4ef18f,_0x4517e6,_0x3e34d6):_0x1ca925(_0x4ef18f,_0x4517e6))||_0x3e34d6);}return _0x5dd2de>0x3&&_0x3e34d6&&Object[_0x46243a(0x212)](_0x4ef18f,_0x4517e6,_0x3e34d6),_0x3e34d6;}let _0x4e1150=class extends _0x57d6e3['FBase']{constructor(_0x4ff85b,_0x618d08,_0x1f83a4,_0x586792,_0xff5313){const _0x12f2d6=_0x5b5894;super(),this['_handler']=_0x4ff85b,this[_0x12f2d6(0x1ef)]=_0x618d08,this['_univerInstanceService']=_0x1f83a4,this[_0x12f2d6(0x1f7)]=_0x586792,this[_0x12f2d6(0x1b8)]=_0xff5313;}async[_0x5b5894(0x1f3)](_0x21e3c7,_0x3b7240){const _0x1a25fc=_0x5b5894;return await this[_0x1a25fc(0x1f7)][_0x1a25fc(0x1e9)](_0x21e3c7,0x0,_0x3b7240)?(await this['_collaborationController'][_0x1a25fc(0x1f8)](_0x21e3c7),this[_0x1a25fc(0x1d8)]['getWorkbook'](_0x21e3c7)):null;}async[_0x5b5894(0x1e2)](_0x1de9c2,_0x158df2){const _0x2786b9=_0x5b5894;return await this[_0x2786b9(0x1f7)][_0x2786b9(0x1c0)](_0x1de9c2,0x0,_0x158df2)?(await this['_collaborationController'][_0x2786b9(0x1f8)](_0x1de9c2),this[_0x2786b9(0x1d8)][_0x2786b9(0x1de)](_0x1de9c2)):null;}async['loadBaseAsync'](_0x3589bd,_0x1c6488){const _0x42ccb1=_0x5b5894;return await this[_0x42ccb1(0x1f7)][_0x42ccb1(0x203)](_0x3589bd,0x0,_0x1c6488)?(await this[_0x42ccb1(0x1b8)]['readyForCollab'](_0x3589bd),this['_handler']['getBase'](_0x3589bd)):null;}async[_0x5b5894(0x1c4)](_0x37174e,_0x80d0b3){const _0x4925a3=_0x5b5894;return await this[_0x4925a3(0x1f7)][_0x4925a3(0x1d7)](_0x37174e,0x0,_0x80d0b3)?(await this['_collaborationController'][_0x4925a3(0x1f8)](_0x37174e),this['_handler'][_0x4925a3(0x20f)](_0x37174e)):null;}async[_0x5b5894(0x1e4)](_0x533f75,_0xed9528){const _0x3e2c51=_0x5b5894;return await this[_0x3e2c51(0x1f7)][_0x3e2c51(0x1eb)](_0x533f75,0x0,_0xed9528)?(await this[_0x3e2c51(0x1b8)][_0x3e2c51(0x1f8)](_0x533f75),this[_0x3e2c51(0x1d8)]['getBoard'](_0x533f75)):null;}[_0x5b5894(0x1dc)](_0x5ca2b2,_0xb87f3b){const _0x52e155=_0x5b5894;return(0x0,_0x484e38[_0x52e155(0x1ee)])(this[_0x52e155(0x1ef)][_0x52e155(0x1db)](_0xa0823e[_0x52e155(0x1f4)])['waitForRoom$'](_0x5ca2b2)['pipe']((0x0,_0x3f6322['switchMap'])(_0x5ebfc1=>_0x5ebfc1[_0x52e155(0x1fd)]))['subscribe'](_0x21f215=>_0xb87f3b(Array[_0x52e155(0x1cb)](_0x21f215[_0x52e155(0x1c9)]()))));}[_0x5b5894(0x205)](_0x1e541d){const _0x29e0b6=_0x5b5894;var _0x4fc763;let _0x3c16fc=this[_0x29e0b6(0x20c)](_0x1e541d);if(!_0x3c16fc)return _0xa0823e['CollaborationStatus'][_0x29e0b6(0x1fb)];let _0x592bac=this[_0x29e0b6(0x1b8)][_0x29e0b6(0x1e1)](_0x3c16fc);return(_0x4fc763=_0x592bac==null?void 0x0:_0x592bac[_0x29e0b6(0x1e0)][_0x29e0b6(0x20d)])==null?_0xa0823e[_0x29e0b6(0x201)][_0x29e0b6(0x1fb)]:_0x4fc763;}[_0x5b5894(0x1f0)](_0x1a7bfa,_0x4319ae={}){const _0x1ef9fd=_0x5b5894;var _0x1828a3;let _0x16440a=this[_0x1ef9fd(0x20c)](_0x1a7bfa);if(!_0x16440a)return Promise[_0x1ef9fd(0x1bd)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x5f1890=this['_collaborationController'][_0x1ef9fd(0x1e1)](_0x16440a);if(!_0x5f1890)return Promise[_0x1ef9fd(0x1bd)](Error(_0x1ef9fd(0x1cc)+_0x16440a+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x1041b8=_0x5f1890['state']['status'];if(_0x1041b8===_0xa0823e['CollaborationStatus'][_0x1ef9fd(0x1da)])return Promise['resolve']();let _0xfdfe78=_0x4eca6e(_0x16440a,_0x1041b8);if(_0xfdfe78)return Promise[_0x1ef9fd(0x1bd)](_0xfdfe78);let _0x2d9dbc=(_0x1828a3=_0x4319ae[_0x1ef9fd(0x202)])==null?0x7530:_0x1828a3;return new Promise((_0x514bd6,_0x5c31e7)=>{const _0x2fc5c1=_0x1ef9fd;let _0x125a7c=!0x1,_0x2c2184=null,_0x56716f=setTimeout(()=>{const _0x7595f7=_0x350e;_0x125a7c=!0x0,_0x2c2184==null||_0x2c2184[_0x7595f7(0x1d0)](),_0x5c31e7(Error(_0x7595f7(0x1d1)+_0x16440a+_0x7595f7(0x1bb)+_0x2d9dbc+'ms.'));},_0x2d9dbc),_0xa96aee=()=>{const _0x478771=_0x350e;_0x125a7c=!0x0,clearTimeout(_0x56716f),_0x2c2184==null||_0x2c2184[_0x478771(0x1d0)]();};_0x2c2184=_0x5f1890[_0x2fc5c1(0x1f5)][_0x2fc5c1(0x1cf)](_0x1a1068=>{const _0x43cfec=_0x2fc5c1;if(_0x125a7c)return;if(_0x1a1068===_0xa0823e['CollaborationStatus'][_0x43cfec(0x1da)]){_0xa96aee(),_0x514bd6();return;}let _0x3e379c=_0x4eca6e(_0x16440a,_0x1a1068);_0x3e379c&&(_0xa96aee(),_0x5c31e7(_0x3e379c));});});}[_0x5b5894(0x20c)](_0x26f6ff){const _0x312864=_0x5b5894;var _0x33e11c;return _0x26f6ff||((_0x33e11c=this[_0x312864(0x1d5)][_0x312864(0x1df)]())==null?void 0x0:_0x33e11c[_0x312864(0x1fe)]());}};_0x4e1150=_0x54c5f4([_0xd29c33(0x1,(0x0,_0x484e38[_0x5b5894(0x1c7)])(_0x484e38[_0x5b5894(0x1f1)])),_0xd29c33(0x2,_0x484e38[_0x5b5894(0x1c1)]),_0xd29c33(0x3,(0x0,_0x484e38['Inject'])(_0x217e93[_0x5b5894(0x20b)])),_0xd29c33(0x4,(0x0,_0x484e38[_0x5b5894(0x1c7)])(_0xa0823e['CollaborationController']))],_0x4e1150);function _0x4eca6e(_0x19bcc6,_0x196844){const _0x5d6dcf=_0x5b5894;return _0x196844===_0xa0823e[_0x5d6dcf(0x201)]['CONFLICT']||_0x196844===_0xa0823e[_0x5d6dcf(0x201)][_0x5d6dcf(0x1fb)]?Error(_0x5d6dcf(0x1ba)+_0x19bcc6+_0x5d6dcf(0x1b9)+_0x196844+'.'):null;}var _0x22e07e=class extends _0x57d6e3['FUniver']{['_initialize'](_0x14dd50){const _0x1c27c5=_0x5b5894;let _0x416cf1=_0x14dd50['get'](_0xa0823e[_0x1c27c5(0x1e8)]);this[_0x1c27c5(0x1fa)](this['registerEventHandler'](this[_0x1c27c5(0x213)][_0x1c27c5(0x1d9)],()=>{const _0x2594fe=_0x1c27c5;let _0x4f44f4=new _0x484e38['DisposableCollection'](),_0xdfa203=_0x416cf1[_0x2594fe(0x1c5)]['subscribe'](_0xc0ebb7=>{const _0x5581eb=_0x2594fe;let _0x32b6ac=_0xc0ebb7[_0x5581eb(0x1f5)][_0x5581eb(0x1cf)](_0x2626d2=>{const _0x4aedd6=_0x5581eb;let _0x26db13={'unitId':_0xc0ebb7[_0x4aedd6(0x210)],'status':_0x2626d2};this['fireEvent'](this[_0x4aedd6(0x213)][_0x4aedd6(0x1d9)],_0x26db13);});_0x4f44f4[_0x5581eb(0x208)]((0x0,_0x484e38['toDisposable'])(_0x32b6ac));});return _0x4f44f4['add']((0x0,_0x484e38[_0x2594fe(0x1ee)])(_0xdfa203)),_0x4f44f4;}));}['getCollaboration'](){const _0x175c76=_0x5b5894;return this[_0x175c76(0x1ef)][_0x175c76(0x20e)](_0x4e1150,{'getWorkbook':_0x2b6212=>this['getWorkbook'](_0x2b6212),'getDocument':_0x42d95a=>this[_0x175c76(0x1de)](_0x42d95a),'getPresentation':_0x1957c0=>this[_0x175c76(0x20f)](_0x1957c0),'getBase':_0x5bbf7b=>this[_0x175c76(0x1ea)](_0x5bbf7b),'getBoard':_0x376bc5=>this[_0x175c76(0x1ed)](_0x376bc5)});}[_0x5b5894(0x200)](_0x482271,_0x300e6e,_0x46bd3b){const _0x42274e=_0x5b5894;return this[_0x42274e(0x1ef)]['get'](_0xa0823e['DataLoaderService'])['loadUnit'](_0x482271,_0x300e6e,_0x46bd3b);}[_0x5b5894(0x1c3)](_0x1e80f8,_0x3acf55,_0x9a2bac){const _0x2050e7=_0x5b5894;return this[_0x2050e7(0x1ef)][_0x2050e7(0x1db)](_0xa0823e[_0x2050e7(0x20a)])[_0x2050e7(0x1e3)](_0x1e80f8,_0x3acf55,_0x9a2bac);}};_0x57d6e3[_0x5b5894(0x204)][_0x5b5894(0x1c2)](_0x22e07e),Object[_0x5b5894(0x212)](_0x862acb,_0x5b5894(0x1e5),{'enumerable':!0x0,'get':function(){return _0x4e1150;}});}));