@univerjs-pro/collaboration-client 1.2.0 → 1.3.1

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/changeset-submitter.d.ts +2 -2
  65. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +4 -4
  66. package/lib/types/controllers/collaboration/collaboration-state.d.ts +24 -22
  67. package/lib/types/facade/f-event.d.ts +3 -1
  68. package/lib/types/index.d.ts +1 -1
  69. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -0
  70. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +2 -0
  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 -15
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2c10(_0x746c76,_0x5e5ca2){_0x746c76=_0x746c76-0x95;const _0x4cd7a4=_0x4cd7();let _0x2c1008=_0x4cd7a4[_0x746c76];return _0x2c1008;}(function(_0x55079a,_0x3e7846){const _0x273ad6=_0x2c10,_0x1cb562=_0x55079a();while(!![]){try{const _0x19029c=-parseInt(_0x273ad6(0xc1))/0x1*(parseInt(_0x273ad6(0x3e7))/0x2)+-parseInt(_0x273ad6(0x382))/0x3*(-parseInt(_0x273ad6(0x2b8))/0x4)+parseInt(_0x273ad6(0x1eb))/0x5+parseInt(_0x273ad6(0x1e9))/0x6*(parseInt(_0x273ad6(0x2f3))/0x7)+parseInt(_0x273ad6(0x31a))/0x8*(parseInt(_0x273ad6(0x2d3))/0x9)+parseInt(_0x273ad6(0x185))/0xa*(-parseInt(_0x273ad6(0xf4))/0xb)+-parseInt(_0x273ad6(0x451))/0xc;if(_0x19029c===_0x3e7846)break;else _0x1cb562['push'](_0x1cb562['shift']());}catch(_0xe3b56d){_0x1cb562['push'](_0x1cb562['shift']());}}}(_0x4cd7,0xc30b2),function(_0x4979ef,_0x3fbbd2){const _0x5b5327=_0x2c10;typeof exports==_0x5b5327(0x265)&&typeof module<'u'?_0x3fbbd2(exports,require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x5b5327(0x44d)]?define([_0x5b5327(0x14f),_0x5b5327(0x287),'rxjs',_0x5b5327(0x43b),_0x5b5327(0x478),_0x5b5327(0x34d),'@univerjs/sheets','@univerjs/protocol',_0x5b5327(0x1f3),_0x5b5327(0x379),_0x5b5327(0x44b),_0x5b5327(0x397),_0x5b5327(0x415)],_0x3fbbd2):(_0x4979ef=typeof globalThis<'u'?globalThis:_0x4979ef||self,_0x3fbbd2(_0x4979ef[_0x5b5327(0x2c3)]={},_0x4979ef[_0x5b5327(0x1f4)],_0x4979ef[_0x5b5327(0x3a9)],_0x4979ef[_0x5b5327(0x344)],_0x4979ef[_0x5b5327(0xa6)],_0x4979ef[_0x5b5327(0x284)],_0x4979ef['UniverSheets'],_0x4979ef[_0x5b5327(0x3c6)],_0x4979ef[_0x5b5327(0x3f5)],_0x4979ef['rxjs'][_0x5b5327(0xc3)],_0x4979ef[_0x5b5327(0x1fd)],_0x4979ef[_0x5b5327(0x156)],_0x4979ef['UniverDrawing']));}(this,function(_0x23db49,_0x18cba4,_0x1fdbe2,_0x4524ba,_0x325f28,_0x285e73,_0x29d3a5,_0x483212,_0x15e7af,_0xa8b74d,_0x2ee164,_0x35d7c3,_0x2115ce){const _0x315216=_0x2c10;Object['defineProperty'](_0x23db49,Symbol['toStringTag'],{'value':'Module'});let _0x3a344c=_0x315216(0x146),_0x1e0f56={};function _0x2a0071(_0x2a257e){'@babel/helpers - typeof';const _0x2362f5=_0x315216;return _0x2a0071=typeof Symbol==_0x2362f5(0x246)&&typeof Symbol['iterator']==_0x2362f5(0x327)?function(_0x2b8327){return typeof _0x2b8327;}:function(_0x5dcf18){const _0x57175b=_0x2362f5;return _0x5dcf18&&typeof Symbol==_0x57175b(0x246)&&_0x5dcf18['constructor']===Symbol&&_0x5dcf18!==Symbol[_0x57175b(0x40b)]?_0x57175b(0x327):typeof _0x5dcf18;},_0x2a0071(_0x2a257e);}function _0x23348b(_0x2fb15e,_0xbfd1bb){const _0x27dc8b=_0x315216;if(_0x2a0071(_0x2fb15e)!=_0x27dc8b(0x265)||!_0x2fb15e)return _0x2fb15e;var _0x5ccec1=_0x2fb15e[Symbol[_0x27dc8b(0x1f5)]];if(_0x5ccec1!==void 0x0){var _0x15aeaf=_0x5ccec1[_0x27dc8b(0x20c)](_0x2fb15e,_0xbfd1bb||_0x27dc8b(0x2fa));if(_0x2a0071(_0x15aeaf)!=_0x27dc8b(0x265))return _0x15aeaf;throw TypeError(_0x27dc8b(0x138));}return(_0xbfd1bb===_0x27dc8b(0xd5)?String:Number)(_0x2fb15e);}function _0x485e0c(_0x406d92){const _0x45ea86=_0x315216;var _0x2b7e74=_0x23348b(_0x406d92,_0x45ea86(0xd5));return _0x2a0071(_0x2b7e74)==_0x45ea86(0x327)?_0x2b7e74:_0x2b7e74+'';}function _0x4da1f9(_0x2da904,_0x3aed30,_0x90936f){const _0x51fa02=_0x315216;return(_0x3aed30=_0x485e0c(_0x3aed30))in _0x2da904?Object[_0x51fa02(0xb2)](_0x2da904,_0x3aed30,{'value':_0x90936f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2da904[_0x3aed30]=_0x90936f,_0x2da904;}var _0x18c848=class{constructor(_0x457fc2,_0x830692,_0x3254d3={}){const _0x5b0fc0=_0x315216;this[_0x5b0fc0(0x2db)]=_0x830692,this[_0x5b0fc0(0x45a)]=_0x3254d3,_0x4da1f9(this,'_attempt',0x0),_0x4da1f9(this,_0x5b0fc0(0x16a),void 0x0),_0x4da1f9(this,'_ackTimeout',void 0x0),_0x4da1f9(this,_0x5b0fc0(0x3d3),void 0x0),_0x4da1f9(this,'_retryBackoff',0x0),_0x4da1f9(this,_0x5b0fc0(0x387),0x0),_0x4da1f9(this,_0x5b0fc0(0x12d),null),_0x4da1f9(this,_0x5b0fc0(0x34c),null),_0x4da1f9(this,_0x5b0fc0(0x46d),null),_0x4da1f9(this,_0x5b0fc0(0x2c5),0x0),_0x4da1f9(this,_0x5b0fc0(0x43c),!0x1),_0x4da1f9(this,_0x5b0fc0(0x1e6),void 0x0),_0x4da1f9(this,_0x5b0fc0(0x98),void 0x0),this['_reqId']=_0x457fc2,this['_ackTimeout']=_0x3254d3[_0x5b0fc0(0x370)]??0x4e20,this[_0x5b0fc0(0x3d3)]=Math[_0x5b0fc0(0x30e)](_0x3254d3[_0x5b0fc0(0x2ec)]??0x1d4c0,this['_ackTimeout']),this['_now']=_0x3254d3['now']??(()=>Date['now']()),this[_0x5b0fc0(0x16a)]=this[_0x5b0fc0(0x1e6)]();}get[_0x315216(0x3d0)](){const _0x1013ca=_0x315216;return this[_0x1013ca(0x98)];}get[_0x315216(0x378)](){const _0x2bcacb=_0x315216;return this[_0x2bcacb(0x1fc)];}get['nextDelayMs'](){const _0x487693=_0x315216;return this[_0x487693(0x387)];}get['elapsedMs'](){const _0x25fbd3=_0x315216;return this[_0x25fbd3(0x1e6)]()-this[_0x25fbd3(0x16a)];}[_0x315216(0x3cf)](_0x175a97){const _0x4b030e=_0x315216;if(this[_0x4b030e(0x43c)])return;this[_0x4b030e(0x46d)]=_0x175a97;let _0x2caf26=this['_pendingReason'];_0x2caf26&&(this[_0x4b030e(0x34c)]=null,this['_resend'](_0x2caf26));}['unbind'](){const _0x13bed1=_0x315216;this[_0x13bed1(0x46d)]=null;}[_0x315216(0x2ac)](_0x3a9f1e,_0x43ffb9,_0x42ea86){const _0x1ecfd1=_0x315216;this['_disposed']||(_0x42ea86&&this[_0x1ecfd1(0x19f)](_0x42ea86),this['armAckTimeout'](),this[_0x1ecfd1(0xc7)](_0x3a9f1e),this[_0x1ecfd1(0x98)]=_0x3a9f1e['reqId']??this[_0x1ecfd1(0x98)],_0x42ea86&&this['_notifyResend'](_0x42ea86,_0x43ffb9));}[_0x315216(0x431)](){const _0x5a7fe6=_0x315216;this[_0x5a7fe6(0x122)](this[_0x5a7fe6(0x1ba)],_0x5a7fe6(0xf2));}[_0x315216(0x37d)](){const _0x1af61a=_0x315216;this[_0x1af61a(0x122)](this[_0x1af61a(0x14c)],_0x1af61a(0x281));}[_0x315216(0x15a)](){const _0x1dc062=_0x315216;this['_disposed']=!0x0,this[_0x1dc062(0x434)](),this[_0x1dc062(0x46d)]=null,this['_pendingReason']=null;}['_deliver'](_0x5a9390){const _0x3c58eb=_0x315216;let _0x5a4ab1=++this[_0x3c58eb(0x2c5)],_0x40e93d;try{_0x40e93d=this['_send'](_0x5a9390,{'timeout':this[_0x3c58eb(0x1ba)]});}catch(_0x1e7a3b){this[_0x3c58eb(0x294)](_0x5a4ab1,_0x1e7a3b);return;}_0x40e93d instanceof Promise&&_0x40e93d['catch'](_0xd28712=>this['_onRequestFailed'](_0x5a4ab1,_0xd28712));}[_0x315216(0x294)](_0x545d2e,_0x60681a){const _0x4c2a1b=_0x315216;if(this[_0x4c2a1b(0x43c)]||_0x545d2e!==this[_0x4c2a1b(0x2c5)])return;let _0x2b378e=_0x496eca(_0x60681a,this[_0x4c2a1b(0x14c)]);_0x2b378e!==null&&this[_0x4c2a1b(0x122)](_0x2b378e,'request_failed');}[_0x315216(0x122)](_0x3e62f4,_0xaa41c7){const _0x5b615c=_0x315216;this[_0x5b615c(0x43c)]||(this['_clearTimer'](),this['_pendingReason']=null,this['_nextDelay']=_0x3e62f4,this['_timer']=setTimeout(()=>{const _0x274125=_0x5b615c;this[_0x274125(0x12d)]=null,this[_0x274125(0x46d)]?this['_resend'](_0xaa41c7):this[_0x274125(0x34c)]=_0xaa41c7;},_0x3e62f4));}['_resend'](_0x2e747f){const _0x82c7f7=_0x315216;let _0x45a25f=this[_0x82c7f7(0x46d)];if(!_0x45a25f||this[_0x82c7f7(0x43c)])return;let {changeset:_0x1d023c,unsyncedMutationCount:_0x2f19b0}=_0x45a25f();this[_0x82c7f7(0x19f)](_0x2e747f),this[_0x82c7f7(0x431)](),this['_deliver'](_0x1d023c),this[_0x82c7f7(0x98)]=_0x1d023c['reqId']??this[_0x82c7f7(0x98)],this[_0x82c7f7(0x2ef)](_0x2e747f,_0x2f19b0);}[_0x315216(0x19f)](_0x15c4db){const _0x3f00b1=_0x315216;this[_0x3f00b1(0x1fc)]+=0x1,_0x15c4db===_0x3f00b1(0x281)||_0x15c4db==='request_failed'?this[_0x3f00b1(0x14c)]=this[_0x3f00b1(0x14c)]===0x0?0x3e8:Math[_0x3f00b1(0xef)](this[_0x3f00b1(0x14c)]*0x2,0x4e20):_0x15c4db===_0x3f00b1(0xf2)&&(this[_0x3f00b1(0x1ba)]=Math[_0x3f00b1(0xef)](this[_0x3f00b1(0x1ba)]*0x2,this[_0x3f00b1(0x3d3)]));}['_notifyResend'](_0x37f42d,_0x9a6719){const _0x5b4149=_0x315216;var _0x10eb5d,_0x2d0623;this[_0x5b4149(0x43c)]||(_0x10eb5d=(_0x2d0623=this[_0x5b4149(0x45a)])[_0x5b4149(0x237)])==null||_0x10eb5d[_0x5b4149(0x20c)](_0x2d0623,{'reqId':this['_reqId'],'reason':_0x37f42d,'attempt':this[_0x5b4149(0x1fc)],'elapsedMs':this[_0x5b4149(0x462)],'unsyncedMutationCount':_0x9a6719,'nextDelayMs':this[_0x5b4149(0x1ba)]});}[_0x315216(0x434)](){const _0x5f33ad=_0x315216;this[_0x5f33ad(0x12d)]!=null&&(clearTimeout(this[_0x5f33ad(0x12d)]),this[_0x5f33ad(0x12d)]=null);}};function _0x496eca(_0x4bacae,_0x481059){const _0x442026=_0x315216;if(_0x4bacae instanceof _0x1fdbe2[_0x442026(0x3d6)])return null;if(_0x4bacae instanceof _0x18cba4['HTTPResponseError']){let _0x265c00=_0x4bacae[_0x442026(0x326)]??0x0;return _0x265c00===0x0||_0x265c00===0x198||_0x265c00===0x1ad||_0x265c00>=0x1f4?Math[_0x442026(0x30e)](_0x481059,_0x55b716(_0x4bacae)):null;}return _0x481059;}function _0x55b716(_0x49fe1d){const _0x39e06c=_0x315216;var _0x58088d;let _0x3e7ca1=(_0x58088d=_0x49fe1d[_0x39e06c(0xff)])==null||(_0x58088d=_0x58088d[_0x39e06c(0x1df)](_0x39e06c(0xfc)))==null?void 0x0:_0x58088d[0x0],_0x17ebaf=_0x3e7ca1===void 0x0?NaN:Number(_0x3e7ca1);return Number[_0x39e06c(0x141)](_0x17ebaf)&&_0x17ebaf>0x0?_0x17ebaf*0x3e8:0x0;}function _0x3dae32(_0x33a108){return JSON['stringify'](_0x33a108)['length'];}let _0x4c99b2=function(_0x3cbe0){const _0x30b45e=_0x315216;return _0x3cbe0['OTHER_CLIENT_EDITING']=_0x30b45e(0x1ee),_0x3cbe0[_0x30b45e(0x117)]='PERMISSION_DENIED',_0x3cbe0[_0x30b45e(0x2aa)]='CONFLICT_PROCESSING',_0x3cbe0[_0x30b45e(0x2d1)]=_0x30b45e(0x2d1),_0x3cbe0[_0x30b45e(0x37c)]=_0x30b45e(0x37c),_0x3cbe0[_0x30b45e(0x1bd)]=_0x30b45e(0x1bd),_0x3cbe0[_0x30b45e(0x25b)]=_0x30b45e(0x25b),_0x3cbe0['SOCKET_FAILED_RETRY']=_0x30b45e(0x28c),_0x3cbe0[_0x30b45e(0x2c1)]=_0x30b45e(0x2c1),_0x3cbe0[_0x30b45e(0x114)]='SUBMIT_CHANGESET_TIMEOUT',_0x3cbe0;}({});var _0x11f58a=class{constructor(){const _0x5c8a8d=_0x315216;_0x4da1f9(this,_0x5c8a8d(0x2e5),new _0x1fdbe2['Subject']()),_0x4da1f9(this,_0x5c8a8d(0x376),this[_0x5c8a8d(0x2e5)]['asObservable']());}[_0x315216(0x436)](_0x172b48){const _0x3dfc8d=_0x315216;this['_event$'][_0x3dfc8d(0x407)](_0x172b48);}},_0x3313da=class{constructor(){const _0x9db487=_0x315216;_0x4da1f9(this,'_commentUpdate$',new _0x1fdbe2['Subject']()),_0x4da1f9(this,_0x9db487(0x440),this[_0x9db487(0x258)]['asObservable']());}[_0x315216(0xec)](_0x4c079c){this['_commentUpdate$']['next'](_0x4c079c);}};function _0x557b04(_0x5f2ec1,_0x1418c6){return function(_0x2ce30c,_0x57d9c3){_0x1418c6(_0x2ce30c,_0x57d9c3,_0x5f2ec1);};}function _0x5af442(_0x551068,_0x14b4a9,_0x2e4beb,_0x4f52df){const _0x32a1ca=_0x315216;var _0xdd6c7b=arguments['length'],_0x1b3829=_0xdd6c7b<0x3?_0x14b4a9:_0x4f52df===null?_0x4f52df=Object[_0x32a1ca(0x173)](_0x14b4a9,_0x2e4beb):_0x4f52df,_0x50b0ba;if(typeof Reflect==_0x32a1ca(0x265)&&typeof Reflect[_0x32a1ca(0x25c)]=='function')_0x1b3829=Reflect[_0x32a1ca(0x25c)](_0x551068,_0x14b4a9,_0x2e4beb,_0x4f52df);else{for(var _0x188ceb=_0x551068[_0x32a1ca(0x250)]-0x1;_0x188ceb>=0x0;_0x188ceb--)(_0x50b0ba=_0x551068[_0x188ceb])&&(_0x1b3829=(_0xdd6c7b<0x3?_0x50b0ba(_0x1b3829):_0xdd6c7b>0x3?_0x50b0ba(_0x14b4a9,_0x2e4beb,_0x1b3829):_0x50b0ba(_0x14b4a9,_0x2e4beb))||_0x1b3829);}return _0xdd6c7b>0x3&&_0x1b3829&&Object[_0x32a1ca(0xb2)](_0x14b4a9,_0x2e4beb,_0x1b3829),_0x1b3829;}let _0x26f228=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x1ee15f){const _0x3ba1ed=_0x315216;super(),this[_0x3ba1ed(0x23b)]=_0x1ee15f,_0x4da1f9(this,_0x3ba1ed(0x267),new Map()),_0x4da1f9(this,'_roomCreated$',new _0x1fdbe2[(_0x3ba1ed(0x112))]()),this[_0x3ba1ed(0x41e)]((0x0,_0x1fdbe2[_0x3ba1ed(0x3f7)])(this[_0x3ba1ed(0x23b)][_0x3ba1ed(0x1b4)](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0x33b)])[_0x3ba1ed(0xa4)]((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x18d913=>_0x18d913[_0x3ba1ed(0x119)]())),this[_0x3ba1ed(0x23b)]['getTypeOfUnitDisposed$'](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0x2a4)])['pipe']((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x548c17=>_0x548c17[_0x3ba1ed(0x119)]())),this[_0x3ba1ed(0x23b)][_0x3ba1ed(0x1b4)](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0x3a4)])[_0x3ba1ed(0xa4)]((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x4cc685=>_0x4cc685[_0x3ba1ed(0x119)]())),this[_0x3ba1ed(0x23b)]['getTypeOfUnitDisposed$'](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0xc9)])[_0x3ba1ed(0xa4)]((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x1e0f44=>_0x1e0f44[_0x3ba1ed(0x119)]())))[_0x3ba1ed(0x28f)](_0x16cbac=>this['_removeRoom'](_0x16cbac)));}[_0x315216(0x21e)](_0x5bbd4e){const _0x37a6d3=_0x315216;return this['_roomMembers']['has'](_0x5bbd4e)?(0x0,_0x1fdbe2['of'])(this[_0x37a6d3(0x267)]['get'](_0x5bbd4e)):this[_0x37a6d3(0x247)][_0x37a6d3(0xa4)]((0x0,_0xa8b74d['map'])(_0x41567b=>{const _0x8d3d6c=_0x37a6d3;if(_0x41567b===_0x5bbd4e)return this[_0x8d3d6c(0x267)][_0x8d3d6c(0x1df)](_0x41567b);}));}[_0x315216(0x1bc)](_0x285d3d,_0x117484){const _0x4e6c33=_0x315216;let _0x2c6dfa=this[_0x4e6c33(0x267)]['get'](_0x285d3d);_0x2c6dfa||(_0x2c6dfa=new _0x1d7d86(),this[_0x4e6c33(0x267)][_0x4e6c33(0x232)](_0x285d3d,_0x2c6dfa),this[_0x4e6c33(0x247)]['next'](_0x285d3d)),_0x2c6dfa[_0x4e6c33(0x1bc)](_0x117484);}[_0x315216(0x22b)](_0x16c35a,_0x19de3a){const _0x57288b=_0x315216;let _0x172569=this[_0x57288b(0x267)][_0x57288b(0x1df)](_0x16c35a);_0x172569&&_0x172569[_0x57288b(0x22b)](_0x19de3a);}[_0x315216(0x32f)](_0x572e9b){const _0x38256f=_0x315216;return this[_0x38256f(0x267)][_0x38256f(0x1df)](_0x572e9b);}[_0x315216(0xcb)](_0x4c5910,_0x52ee28){const _0x57a4ae=_0x315216;let _0x462a17=this['_roomMembers']['get'](_0x4c5910);if(_0x462a17)return _0x462a17[_0x57a4ae(0xcb)](_0x52ee28);}[_0x315216(0x364)](_0x1f3545){const _0x3823f0=_0x315216;let _0x238734=this[_0x3823f0(0x267)][_0x3823f0(0x1df)](_0x1f3545);_0x238734&&(_0x238734[_0x3823f0(0x15a)](),this[_0x3823f0(0x267)]['delete'](_0x1f3545));}[_0x315216(0x15a)](){const _0x3b1a8d=_0x315216;this[_0x3b1a8d(0x267)][_0x3b1a8d(0x216)](_0x158154=>_0x158154[_0x3b1a8d(0x15a)]()),this[_0x3b1a8d(0x267)]['clear'](),this[_0x3b1a8d(0x247)]['complete']();}};_0x26f228=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0xd2)])],_0x26f228);var _0x1d7d86=class extends _0x325f28[_0x315216(0x14a)]{constructor(..._0x40a773){const _0x394a09=_0x315216;super(..._0x40a773),_0x4da1f9(this,_0x394a09(0x188),new Map()),_0x4da1f9(this,_0x394a09(0x22d),new _0x1fdbe2[(_0x394a09(0x1c7))](this[_0x394a09(0x188)])),_0x4da1f9(this,_0x394a09(0x11c),this[_0x394a09(0x22d)][_0x394a09(0xf1)]());}[_0x315216(0x15a)](){const _0x135639=_0x315216;this['_members'][_0x135639(0x14e)](),this[_0x135639(0x22d)][_0x135639(0x313)]();}[_0x315216(0x1bc)](_0x244917){const _0x27dc91=_0x315216;this[_0x27dc91(0x188)][_0x27dc91(0x232)](_0x244917['memberID'],_0x244917),this[_0x27dc91(0x19a)]();}['removeMember'](_0x354071){const _0x28593a=_0x315216;this[_0x28593a(0x188)][_0x28593a(0x385)](_0x354071),this[_0x28593a(0x19a)]();}[_0x315216(0xcb)](_0x735e26){const _0x28dd61=_0x315216;return this['_members'][_0x28dd61(0x1df)](_0x735e26);}['getAllMembers'](){const _0x288ffc=_0x315216;return Array['from'](this[_0x288ffc(0x188)]['values']());}[_0x315216(0x19a)](){const _0x22d5dc=_0x315216;this['_members$'][_0x22d5dc(0x407)](this[_0x22d5dc(0x188)]);}};function _0x5c1479(_0x4c4263,_0x1ae618){const _0x53e28c=_0x315216;if(_0x7e427c(_0x4c4263))return _0x1ae618;if(_0x1ae618[_0x53e28c(0x32e)]===_0x4524ba['CollaborationEvent'][_0x53e28c(0x227)]){let _0x18519f=_0x2a74da(_0x4c4263),_0x19bf61=_0x1ae618;return{..._0x19bf61,'data':{..._0x19bf61['data'],'unitID':_0x4c4263[_0x53e28c(0x41c)][_0x53e28c(0x352)],'unitType':_0x4c4263['target'][_0x53e28c(0x318)]??_0x19bf61[_0x53e28c(0x2a1)][_0x53e28c(0x318)],'changeset':_0x18519f[_0x53e28c(0xa7)](_0x19bf61['data'][_0x53e28c(0x275)],_0x529707(_0x4c4263))}};}if(_0x1ae618[_0x53e28c(0x32e)]===_0x4524ba['CollaborationEvent'][_0x53e28c(0x2dd)]){let _0x3f9675=_0x1ae618;return{..._0x3f9675,'data':{..._0x3f9675[_0x53e28c(0x2a1)],'unitID':_0x4c4263[_0x53e28c(0x41c)][_0x53e28c(0x352)],'unitType':_0x4c4263[_0x53e28c(0x41c)][_0x53e28c(0x318)]??_0x3f9675[_0x53e28c(0x2a1)][_0x53e28c(0x318)]}};}return _0x1ae618;}function _0x533e59(_0x55f5d7,_0x4e64b5){const _0x5e9674=_0x315216;if(_0x7e427c(_0x55f5d7))return[_0x4e64b5];switch(_0x4e64b5[_0x5e9674(0x32e)]){case _0x4524ba['CollaborationEvent'][_0x5e9674(0xf7)]:return[_0x50bdd5(_0x55f5d7,_0x4e64b5)];case _0x4524ba[_0x5e9674(0x1d7)]['PSEUDO_FETCH_MISSING_RESULT']:return[_0x97baf(_0x55f5d7,_0x4e64b5)];case _0x4524ba[_0x5e9674(0x1d7)][_0x5e9674(0xab)]:return[_0xda20c6(_0x55f5d7,_0x4e64b5)];default:return[_0x4e64b5];}}function _0x7e427c(_0x59a6ce){const _0x2b486d=_0x315216;return _0x59a6ce[_0x2b486d(0x41c)][_0x2b486d(0x253)]==null&&_0x59a6ce[_0x2b486d(0x41c)]['unitId']===_0x59a6ce['localUnitId']&&!_0x59a6ce[_0x2b486d(0x275)];}function _0x50bdd5(_0x131493,_0x214ea1){const _0x5a7b35=_0x315216;return{..._0x214ea1,'data':(0x0,_0x4524ba[_0x5a7b35(0xe4)])(_0x636a6b(_0x131493,(0x0,_0x4524ba[_0x5a7b35(0x3cc)])(_0x214ea1[_0x5a7b35(0x2a1)])))};}function _0xda20c6(_0x1337c8,_0x1462a2){const _0x57ce28=_0x315216;return{..._0x1462a2,'data':_0x636a6b(_0x1337c8,_0x1462a2[_0x57ce28(0x2a1)])};}function _0x97baf(_0x1d0273,_0x262e12){const _0x26932a=_0x315216;let _0x169ce4=_0x262e12[_0x26932a(0x2a1)];return{..._0x262e12,'data':{..._0x169ce4,'changesets':_0x169ce4['changesets'][_0x26932a(0x403)](_0x33a059=>(0x0,_0x4524ba[_0x26932a(0xe4)])(_0x636a6b(_0x1d0273,(0x0,_0x4524ba[_0x26932a(0x3cc)])(_0x33a059))))}};}function _0x636a6b(_0x15a75a,_0x22a593){const _0x1712a1=_0x315216;return _0x2a74da(_0x15a75a)[_0x1712a1(0x278)](_0x22a593,_0x529707(_0x15a75a));}function _0x2a74da(_0x41dc03){if(!_0x41dc03['changeset'])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x41dc03['changeset'];}function _0x529707(_0x6928ee){const _0x282d58=_0x315216;return{'localUnitId':_0x6928ee[_0x282d58(0x212)],'unitType':_0x6928ee[_0x282d58(0x318)],'target':_0x6928ee['target']};}let _0x50a43f=function(_0x3d39e5){const _0x4c7ffa=_0x315216;return _0x3d39e5[_0x3d39e5['IDLE']=0x0]=_0x4c7ffa(0x355),_0x3d39e5[_0x3d39e5[_0x4c7ffa(0x1f8)]=0x1]=_0x4c7ffa(0x1f8),_0x3d39e5[_0x3d39e5[_0x4c7ffa(0x260)]=0x2]=_0x4c7ffa(0x260),_0x3d39e5[_0x3d39e5[_0x4c7ffa(0x336)]=0x3]=_0x4c7ffa(0x336),_0x3d39e5;}({}),_0xf16957={[_0x483212[_0x315216(0x353)][_0x315216(0x124)]]:_0x315216(0x423),[_0x483212[_0x315216(0x353)][_0x315216(0x28a)]]:_0x315216(0x235),[_0x483212[_0x315216(0x353)][_0x315216(0x368)]]:'session.room-not-exists',[_0x483212['CmdRspCode'][_0x315216(0x467)]]:_0x315216(0x424),[_0x483212[_0x315216(0x353)][_0x315216(0x1db)]]:_0x315216(0x24e)},_0x7f99f9=class extends _0x325f28[_0x315216(0x10c)]{get[_0x315216(0x19d)](){const _0x437c57=_0x315216;return this[_0x437c57(0x38d)][_0x437c57(0x3aa)]();}constructor(_0x4d547f,_0xebfd57,_0x3bfc08,_0x147f7b,_0x122b4e,_0x4637ca,_0x358a4b){const _0x2635fb=_0x315216;super(),this[_0x2635fb(0x3be)]=_0x4d547f,this[_0x2635fb(0xb8)]=_0x3bfc08,this[_0x2635fb(0x3dd)]=_0x147f7b,this['_commentService']=_0x122b4e,this[_0x2635fb(0x190)]=_0x4637ca,this[_0x2635fb(0x3f2)]=_0x358a4b,_0x4da1f9(this,_0x2635fb(0x38d),new _0x1fdbe2['BehaviorSubject'](0x0)),_0x4da1f9(this,'sessionStatus$',this[_0x2635fb(0x38d)]['asObservable']()),_0x4da1f9(this,_0x2635fb(0x2e5),new _0x1fdbe2['Subject']()),_0x4da1f9(this,_0x2635fb(0x376),this[_0x2635fb(0x2e5)][_0x2635fb(0xf1)]()),_0x4da1f9(this,'_socket',void 0x0),_0x4da1f9(this,_0x2635fb(0x2b2),void 0x0),_0x4da1f9(this,_0x2635fb(0x3a0),!0x1),_0x4da1f9(this,_0x2635fb(0x248),null),this[_0x2635fb(0x3a0)]=!!this['_telemetryService'],_0xebfd57[_0x2635fb(0xa4)]((0x0,_0x1fdbe2[_0x2635fb(0xf5)])(this[_0x2635fb(0x42a)]))[_0x2635fb(0x28f)](_0x2770be=>{const _0x181d14=_0x2635fb;if(_0x2770be!==void 0x0){if(this[_0x181d14(0x96)]=_0x2770be,_0x2770be)this[_0x181d14(0x97)](_0x2770be),this[_0x181d14(0x2b2)]=_0x2770be['message$'][_0x181d14(0x28f)](_0x8c0a0=>{const _0x3252a8=_0x181d14;_0x8c0a0['routeKey']===this[_0x3252a8(0x3be)]['target'][_0x3252a8(0x352)]&&this[_0x3252a8(0x359)](_0x8c0a0);});else{var _0x910944;this[_0x181d14(0x147)](),this[_0x181d14(0x38d)][_0x181d14(0x407)](0x2),(_0x910944=this['_socketMessageSubscription'])==null||_0x910944[_0x181d14(0x223)](),this[_0x181d14(0x2b2)]=null;}}});}[_0x315216(0x171)](){var _0x308320;return((_0x308320=this['_socket'])==null?void 0x0:_0x308320['memberID'])??null;}[_0x315216(0x15a)](){const _0x31b6d9=_0x315216;super[_0x31b6d9(0x15a)](),this[_0x31b6d9(0x358)](),this[_0x31b6d9(0x42a)][_0x31b6d9(0x407)](),this['dispose$']['complete']();}[_0x315216(0x358)](){const _0x3be4de=_0x315216;var _0x2989d3;this[_0x3be4de(0x147)](),(_0x2989d3=this[_0x3be4de(0x96)])==null||_0x2989d3['send']({'cmd':_0x483212[_0x3be4de(0x422)][_0x3be4de(0x239)],'data':{'roomID':this[_0x3be4de(0x3be)][_0x3be4de(0x41c)]['unitId']}}),this[_0x3be4de(0x2e5)][_0x3be4de(0x313)](),this[_0x3be4de(0x38d)]['complete']();}[_0x315216(0x359)](_0x320a9b){const _0x56c01e=_0x315216;_0x320a9b[_0x56c01e(0x291)]===_0x483212[_0x56c01e(0x422)][_0x56c01e(0x3b6)]?this[_0x56c01e(0x38e)](_0x320a9b):_0x320a9b[_0x56c01e(0x291)]===_0x483212[_0x56c01e(0x422)][_0x56c01e(0x2de)]&&this[_0x56c01e(0x468)](_0x320a9b);}[_0x315216(0x97)](_0x33d4ac){const _0x296105=_0x315216;this['_sessionStatus$'][_0x296105(0x407)](0x1),_0x33d4ac[_0x296105(0x325)]({'cmd':_0x483212[_0x296105(0x422)][_0x296105(0x3b6)],'routeKey':this[_0x296105(0x3be)][_0x296105(0x41c)][_0x296105(0x352)],'routeType':'','data':{'rooms':[{'roomID':this[_0x296105(0x3be)]['target'][_0x296105(0x352)]}]}});}[_0x315216(0x38e)](_0x435662){const _0x119c0a=_0x315216;var _0x5d7272;if(_0x435662[_0x119c0a(0xdf)]in _0xf16957){this[_0x119c0a(0x190)][_0x119c0a(0x436)]({'id':_0x119c0a(0x25b),'data':_0xf16957[_0x435662[_0x119c0a(0xdf)]]}),this[_0x119c0a(0x38d)][_0x119c0a(0x407)](0x2);return;}this[_0x119c0a(0x38d)][_0x119c0a(0x407)](0x3);let _0x13878c=(_0x5d7272=_0x435662[_0x119c0a(0x2a1)]['roomInfos'][this[_0x119c0a(0x3be)][_0x119c0a(0x41c)][_0x119c0a(0x352)]])==null?void 0x0:_0x5d7272[_0x119c0a(0x3c7)];_0x13878c&&_0x13878c[_0x119c0a(0x216)](_0x3fcab2=>this['_memberService'][_0x119c0a(0x1bc)](this[_0x119c0a(0x3be)]['localUnitId'],_0x3fcab2));}[_0x315216(0x468)](_0x37140f){const _0x1e1948=_0x315216;try{let _0x5d21b3=_0x533e59(this[_0x1e1948(0x3be)],_0x37140f['data']);for(let _0x4e5f01 of _0x5d21b3)switch(_0x4e5f01[_0x1e1948(0x32e)]){case _0x4524ba[_0x1e1948(0x1d7)]['USERS_ENTER']:this[_0x1e1948(0x40c)](_0x4e5f01),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0x29c)]:this['_onUserLeave'](_0x4e5f01),this['_event$'][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0x299)]:case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0xab)]:this[_0x1e1948(0x3a1)](),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba['CollaborationEvent'][_0x1e1948(0x2e9)]:this[_0x1e1948(0xb8)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x1e1948(0x302)](_0x4e5f01)),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0x374)]:this[_0x1e1948(0x292)]['onCommentUpdate'](_0x4e5f01[_0x1e1948(0x2a1)]),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;default:this['_event$'][_0x1e1948(0x407)](_0x4e5f01);}}catch(_0x20a546){this[_0x1e1948(0xb8)]['error'](_0x20a546,_0x37140f);}}[_0x315216(0x40c)](_0xecdaeb){const _0x1fd051=_0x315216;this['_memberService']['updateMember'](this['_identity'][_0x1fd051(0x212)],_0xecdaeb[_0x1fd051(0x2a1)]);}['_onUserLeave'](_0x10d742){const _0x415abe=_0x315216;this[_0x415abe(0x3dd)]['removeMember'](this[_0x415abe(0x3be)]['localUnitId'],_0x10d742['data'][_0x415abe(0x471)]);}async['send'](_0x91f56,_0x4cfe82,_0x5f0955){const _0x58634=_0x315216;if(this['sessionStatus']!==0x3||!this[_0x58634(0x96)])throw Error(_0x58634(0x1b3));try{let _0x239750=_0x5c1479(this[_0x58634(0x3be)],_0x91f56);_0x239750[_0x58634(0x32e)]===_0x4524ba[_0x58634(0x1d7)][_0x58634(0x227)]&&this[_0x58634(0x45d)](_0x239750);let _0x18c9ff={'cmd':_0x483212[_0x58634(0x422)][_0x58634(0x9c)],'routeKey':this[_0x58634(0x3be)][_0x58634(0x41c)][_0x58634(0x352)],'routeType':'','data':_0x239750};return _0x5f0955===void 0x0?this[_0x58634(0x96)][_0x58634(0x325)](_0x18c9ff):this[_0x58634(0x96)]['send'](_0x18c9ff,_0x5f0955);}catch(_0x255905){this[_0x58634(0xb8)][_0x58634(0xd6)](_0x255905);}}[_0x315216(0x45d)](_0x436296){const _0x52da52=_0x315216;if(!this[_0x52da52(0x3a0)])return;let {data:_0xa1de06}=_0x436296,{unitID:_0xb7b79e,changeset:_0x2a44ad}=_0xa1de06,{mutations:_0x4c5d35,type:_0x411530}=_0x2a44ad;this[_0x52da52(0x248)]={'unitId':_0xb7b79e,'type':_0x411530,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x3dae32(_0x4c5d35)};}[_0x315216(0x3a1)](){const _0x5bcca0=_0x315216;this[_0x5bcca0(0x3a0)]&&(this['_telemetryInfo']?(this[_0x5bcca0(0x248)][_0x5bcca0(0x13c)]=performance[_0x5bcca0(0x3fe)](),this[_0x5bcca0(0x248)][_0x5bcca0(0x1ef)]=this[_0x5bcca0(0x248)][_0x5bcca0(0x13c)]-this[_0x5bcca0(0x248)]['startTime'],this[_0x5bcca0(0x3f2)][_0x5bcca0(0x428)](_0x5bcca0(0x482),this[_0x5bcca0(0x248)]),this[_0x5bcca0(0x248)]=null):this[_0x5bcca0(0xb8)][_0x5bcca0(0xd6)](_0x5bcca0(0x254),_0x5bcca0(0x2f2)));}[_0x315216(0x147)](){const _0x3e7225=_0x315216;this[_0x3e7225(0x248)]=null;}};_0x7f99f9=_0x5af442([_0x557b04(0x2,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x26f228)),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x3313da)),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x6,(0x0,_0x325f28['Optional'])(_0x15e7af[_0x315216(0x2eb)]))],_0x7f99f9);let _0x21eb59=(0x0,_0x325f28[_0x315216(0x1ac)])('collaboration-client.local-cache-service');function _0x5b750c(_0x1e8cfe,_0x144640){const _0x12cd34=_0x315216;return _0x144640===''||_0x144640==null?_0x12cd34(0x2d7)+_0x1e8cfe:_0x12cd34(0x2d7)+_0x1e8cfe+'-'+encodeURIComponent(_0x144640);}function _0x61d13b(_0x9688){const _0x27a861=_0x315216;let {unitID:_0x417c08,mutations:_0x3122a4}=_0x9688;return{'unitId':_0x417c08,'subUnitId':_0x3122a4[_0x27a861(0x250)]>0x0?_0x3122a4[0x0]['params'][_0x27a861(0x159)]:null};}let _0x5d0dca=class{constructor(_0x243b8d,_0x2e48d7,_0x3d57ab){const _0x483115=_0x315216;this['_injector']=_0x243b8d,this[_0x483115(0x466)]=_0x2e48d7,this[_0x483115(0x45c)]=_0x3d57ab;}['transformSelections'](_0x274cf8){const _0x169c78=_0x315216;var _0x126ec7,_0x5ef7de;let _0x5643a3=this[_0x169c78(0xe7)][_0x169c78(0x1df)](_0x29d3a5[_0x169c78(0xfb)]),{unitId:_0x1cee05,subUnitId:_0x1a01a3}=_0x61d13b(_0x274cf8),_0x40a64c=_0x5643a3==null?void 0x0:_0x5643a3['getWorkbookSelections'](_0x1cee05)[_0x169c78(0x13f)](),_0x1d6fc2=(_0x126ec7=this[_0x169c78(0x45c)][_0x169c78(0x33c)](_0x1cee05))==null||(_0x126ec7=_0x126ec7[_0x169c78(0x3d4)]())==null?void 0x0:_0x126ec7['getSheetId']();if(_0x40a64c[_0x169c78(0x250)]===0x0||!_0x1cee05||!_0x1a01a3)return;let _0x554886=[{'id':_0x29d3a5[_0x169c78(0x31d)]['id'],'params':{'unitId':_0x1cee05,'subUnitId':_0x1d6fc2,'selections':_0x325f28[_0x169c78(0x261)][_0x169c78(0x209)](_0x40a64c)}}],_0x5222ff=this[_0x169c78(0x466)][_0x169c78(0x425)](_0x274cf8,_0x554886);if(!(0x0,_0x4524ba[_0x169c78(0x2fd)])(_0x5222ff))throw _0x5222ff[_0x169c78(0xd6)];let _0x53fa9c=(_0x5ef7de=_0x5222ff['m2Prime'][0x0])==null||(_0x5ef7de=_0x5ef7de[_0x169c78(0x296)])==null?void 0x0:_0x5ef7de[_0x169c78(0x44f)];if(Array[_0x169c78(0x24d)](_0x53fa9c)&&_0x53fa9c[_0x169c78(0x250)]){if(_0x53fa9c['length']===_0x554886[0x0][_0x169c78(0x296)][_0x169c78(0x44f)][_0x169c78(0x250)]&&_0x53fa9c[_0x169c78(0x2c6)]((_0x3b0844,_0x2d70ce)=>_0x325f28['Rectangle']['equals'](_0x3b0844[_0x169c78(0x1e5)],_0x554886[0x0][_0x169c78(0x296)][_0x169c78(0x44f)][_0x2d70ce][_0x169c78(0x1e5)])))return;this[_0x169c78(0xe7)][_0x169c78(0x1df)](_0x325f28['ICommandService'])['executeCommand'](_0x29d3a5['SetSelectionsOperation']['id'],{'unitId':_0x1cee05,'subUnitId':_0x1d6fc2,'selections':_0x53fa9c});}}};_0x5d0dca=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0x2,_0x325f28[_0x315216(0xd2)])],_0x5d0dca);let _0x556ae0=(0x0,_0x325f28[_0x315216(0x1ac)])('univer-pro.collaboration-client.single-active-unit-service'),_0x7a50dc=function(_0x598815){const _0x564342=_0x315216;return _0x598815[_0x598815[_0x564342(0x3b4)]=0x0]=_0x564342(0x3b4),_0x598815[_0x598815[_0x564342(0x312)]=0x1]=_0x564342(0x312),_0x598815;}({});function _0x535e3e(_0x5c50a7){const _0xe65d1f=_0x315216;var _0x368a76;return!!((_0x368a76=_0x5c50a7[_0xe65d1f(0x296)])!=null&&_0x368a76['__splitChunk__']);}let _0x3a6f2f=new Set([_0x29d3a5['InsertSheetMutation']['id']]),_0x3f25c0=new Set([_0x2ee164[_0x315216(0x2df)]['id'],_0x2ee164[_0x315216(0x3ca)]['id'],_0x2ee164[_0x315216(0x2f8)]['id'],_0x2ee164[_0x315216(0x447)]['id']]);function _0x2a129c(_0x5be200,_0x993049=_0x3a6f2f){const _0x59610b=_0x315216;let _0x4a2e10=[];for(let _0x57e6e2 of _0x5be200){if(_0x993049['has'](_0x57e6e2['id'])||_0x535e3e(_0x57e6e2)){if(_0x4a2e10[_0x59610b(0x250)]>0x0)break;_0x4a2e10[_0x59610b(0x46e)](_0x57e6e2);break;}_0x4a2e10[_0x59610b(0x46e)](_0x57e6e2);}return _0x4a2e10;}function _0x3ea32d(_0x1458be,_0x4d5739,_0x2cd52a,_0x44660e,_0x1aa0d9){const _0x5a5299=_0x315216;let _0x14eaf6=_0x2a129c(_0x1458be),_0x541e13=_0x1aa0d9[_0x5a5299(0xbb)](),_0x2b4571=(_0x541e13==null?void 0x0:_0x541e13[_0x5a5299(0x3da)])??_0x5a5299(0x120),_0x12bb08=(_0x541e13==null?void 0x0:_0x541e13[_0x5a5299(0x471)])??_0x5a5299(0x120);return{'changeset':{'unitID':_0x4d5739,'type':(0x0,_0x4524ba[_0x5a5299(0x362)])(_0x2cd52a[_0x5a5299(0x371)](_0x4d5739)),'baseRev':_0x44660e['getCurrentRevOfUnit'](_0x4d5739),'revision':0x0,'userID':_0x2b4571,'memberID':_0x12bb08,'mutations':_0x14eaf6},'pendingMutations':_0x1458be[_0x5a5299(0x106)](_0x14eaf6[_0x5a5299(0x250)])};}let _0x548fbe=_0x3ea32d;function _0x5d8c7d(_0x3888c0,_0x134a47,_0x389b1a,_0x49c6f1,_0x53a789){const _0x1e25d3=_0x315216;let _0x49fd0f=_0x2a129c(_0x3888c0,_0x3f25c0),_0x7573c2=_0x53a789[_0x1e25d3(0xbb)](),_0x1b1cb4=(_0x7573c2==null?void 0x0:_0x7573c2[_0x1e25d3(0x3da)])??'unknown',_0x2a366f=(_0x7573c2==null?void 0x0:_0x7573c2[_0x1e25d3(0x471)])??_0x1e25d3(0x120);return{'changeset':{'unitID':_0x134a47,'type':(0x0,_0x4524ba[_0x1e25d3(0x362)])(_0x389b1a[_0x1e25d3(0x371)](_0x134a47)),'baseRev':_0x49c6f1['getCurrentRevOfUnit'](_0x134a47),'revision':0x0,'userID':_0x1b1cb4,'memberID':_0x2a366f,'mutations':_0x49fd0f},'pendingMutations':_0x3888c0['slice'](_0x49fd0f[_0x1e25d3(0x250)])};}function _0x102089(_0x434ad9,_0xb49a22,_0x3f58b7,_0xcb3d67,_0x52bcc6){const _0x441ad1=_0x315216;let _0x5dfd94=_0x434ad9[_0x441ad1(0x2cc)]((_0x53d428,_0x4282e1)=>{const _0xb4bd08=_0x441ad1;let _0x3d1909=_0x53d428[_0x53d428[_0xb4bd08(0x250)]-0x1],{id:_0x55522f}=_0x3d1909??{},{id:_0x1ab841,type:_0x1748e2}=_0x4282e1,_0x3d8772=_0x4282e1[_0xb4bd08(0x296)];if(_0x55522f&&_0x55522f!==_0x1ab841)throw Error(_0xb4bd08(0x30a)+_0x55522f+_0xb4bd08(0x348)+_0x1ab841+'.');if(!_0x3d1909)return[{'id':_0x1ab841,'type':_0x1748e2,'params':{'unitId':_0x3d8772[_0xb4bd08(0x352)],'textRanges':_0x3d8772[_0xb4bd08(0x1d0)],'actions':_0x3d8772[_0xb4bd08(0x3ab)]}}];let _0x5b1b4f=_0x3d1909['params'];return _0x1ad963(_0x5b1b4f,_0x3d8772)?[..._0x53d428['slice'](0x0,-0x1),{..._0x3d1909,'id':_0x1ab841,'type':_0x1748e2,'params':{'unitId':_0x3d8772[_0xb4bd08(0x352)],'textRanges':_0x3d8772[_0xb4bd08(0x1d0)],'actions':_0x325f28[_0xb4bd08(0x226)][_0xb4bd08(0x3a8)](_0x5b1b4f[_0xb4bd08(0x3ab)],_0x3d8772['actions'])}}]:[..._0x53d428,{'id':_0x1ab841,'type':_0x1748e2,'params':{'unitId':_0x3d8772['unitId'],'textRanges':_0x3d8772[_0xb4bd08(0x1d0)],'actions':_0x3d8772[_0xb4bd08(0x3ab)]}}];},[]),_0x5055dc=_0x52bcc6[_0x441ad1(0xbb)](),_0x4ccab6=(_0x5055dc==null?void 0x0:_0x5055dc['userID'])??_0x441ad1(0x120),_0x556ebb=(_0x5055dc==null?void 0x0:_0x5055dc[_0x441ad1(0x471)])??_0x441ad1(0x120);return{'changeset':{'unitID':_0xb49a22,'type':(0x0,_0x4524ba[_0x441ad1(0x362)])(_0x3f58b7[_0x441ad1(0x371)](_0xb49a22)),'baseRev':_0xcb3d67['getCurrentRevOfUnit'](_0xb49a22),'revision':0x0,'userID':_0x4ccab6,'memberID':_0x556ebb,'mutations':_0x5dfd94},'pendingMutations':_0x434ad9[_0x441ad1(0x106)](_0x434ad9[_0x441ad1(0x250)])};}function _0x1ad963(_0x2b07d3,_0x5163b9){const _0xc011e9=_0x315216;return!_0x2839aa(_0x2b07d3)&&!_0x2839aa(_0x5163b9)&&_0x5305f1(_0x2b07d3[_0xc011e9(0x3ab)],_0x5163b9[_0xc011e9(0x3ab)]);}function _0x2839aa(_0x3a8f60){const _0x2f8bb6=_0x315216;return _0x3a8f60[_0x2f8bb6(0x3c4)]!==void 0x0;}function _0x5305f1(_0x4f420f,_0x22bb29){return _0x1ad2cf(_0x4f420f)&&_0x1ad2cf(_0x22bb29)&&!_0x498a83(_0x4f420f)&&!_0x498a83(_0x22bb29)&&!_0x3ced51(_0x4f420f)&&!_0x3ced51(_0x22bb29);}function _0x1ad2cf(_0x4f6956){const _0x5a6098=_0x315216;return _0x4de3f5(_0x4f6956)['some'](_0x4ed88f=>_0x259145(_0x4ed88f)&&_0x4ed88f['et']===_0x5a6098(0x300));}function _0x3ced51(_0x411752){const _0x2ef23a=_0x315216;return _0x4de3f5(_0x411752)['some'](_0x4439db=>Array['isArray'](_0x4439db)||typeof _0x4439db==_0x2ef23a(0xd5)||typeof _0x4439db==_0x2ef23a(0x3b0));}function _0x498a83(_0x265d92){const _0x14da45=_0x315216;return _0x4de3f5(_0x265d92)[_0x14da45(0x142)](_0x5041b8=>!_0x259145(_0x5041b8)||_0x5041b8['et']!==_0x14da45(0x300)||!Array[_0x14da45(0x24d)](_0x5041b8['e'])?!0x1:_0x5041b8['e'][_0x14da45(0x142)](_0x192822=>!_0x259145(_0x192822)||!_0x259145(_0x192822[_0x14da45(0x3d5)])?!0x1:Object[_0x14da45(0x40b)][_0x14da45(0x266)][_0x14da45(0x20c)](_0x192822[_0x14da45(0x3d5)],'tables')||Object['prototype'][_0x14da45(0x266)][_0x14da45(0x20c)](_0x192822[_0x14da45(0x3d5)],_0x14da45(0xb6))||Object[_0x14da45(0x40b)][_0x14da45(0x266)][_0x14da45(0x20c)](_0x192822[_0x14da45(0x3d5)],_0x14da45(0x1f6))));}function _0x4de3f5(_0x173340){const _0x187451=_0x315216;if(!Array[_0x187451(0x24d)](_0x173340))return[];let _0x487532=_0x173340[_0x187451(0x3e1)](_0x187451(0x3d5))?_0x173340:_0x173340['find'](_0x295890=>Array[_0x187451(0x24d)](_0x295890)&&_0x295890['includes']('body'));if(!Array[_0x187451(0x24d)](_0x487532))return[];let _0x448e9b=_0x487532[_0x187451(0x304)](_0x187451(0x3d5));return _0x448e9b===-0x1?[]:_0x487532[_0x187451(0x106)](_0x448e9b+0x1);}function _0x259145(_0x299513){const _0x4bcc45=_0x315216;return typeof _0x299513=='object'&&!!_0x299513&&!Array[_0x4bcc45(0x24d)](_0x299513);}function _0x43988d(_0x429d9b,_0x36a595){const _0x12bca3=_0x315216;for(let _0x3e3b16 of _0x429d9b['mutations']){if(_0x3e3b16['id']!==_0x4524ba[_0x12bca3(0x10d)]['id'])continue;let _0x3e7d22=_0x3e3b16[_0x12bca3(0x296)];if((_0x3e7d22==null?void 0x0:_0x3e7d22['unitId'])===_0x36a595&&typeof _0x3e7d22[_0x12bca3(0x187)]==_0x12bca3(0x3b0))return{'unitId':_0x3e7d22['unitId'],'revision':_0x3e7d22[_0x12bca3(0x187)]};}return null;}var _0x2452b4,_0x38d979,_0x45930f,_0x2da8fc=class extends Error{constructor(_0x18da59){const _0x4086e3=_0x315216;super(_0x18da59 instanceof Error?_0x18da59[_0x4086e3(0x186)]:typeof _0x18da59==_0x4086e3(0xd5)?_0x18da59:_0x4086e3(0x17a)),this['applyError']=_0x18da59,this[_0x4086e3(0x163)]='RemoteChangesetApplyError';}},_0x2073a1=class extends Error{constructor(_0x33ce37){const _0x340aeb=_0x315216;var _0x1689ce;super(_0x340aeb(0x2e3)+((_0x1689ce=_0x33ce37[_0x340aeb(0x357)])==null?void 0x0:_0x1689ce[_0x340aeb(0x187)])+'.'),this[_0x340aeb(0xdd)]=_0x33ce37,this[_0x340aeb(0x163)]=_0x340aeb(0x36e);}};let _0x133dfa=function(_0x5c10b4){const _0x13fce1=_0x315216;return _0x5c10b4[_0x13fce1(0x242)]=_0x13fce1(0x131),_0x5c10b4[_0x13fce1(0x47e)]='synced',_0x5c10b4['PENDING']=_0x13fce1(0x47f),_0x5c10b4[_0x13fce1(0x28e)]='awaiting',_0x5c10b4['AWAITING_WITH_PENDING']=_0x13fce1(0x155),_0x5c10b4['FETCH_MISS']=_0x13fce1(0x39a),_0x5c10b4['CONFLICT']=_0x13fce1(0x151),_0x5c10b4[_0x13fce1(0x260)]=_0x13fce1(0x12e),_0x5c10b4;}({});var _0x34cd3b=class{constructor(_0x4d3160,_0x14332d,_0x1c59e0,_0x69b604,_0x3db01e,_0x2ad0a,_0x73c4f6,_0x26e342,_0x34ebd7){const _0x4ef89c=_0x315216;this[_0x4ef89c(0x154)]=_0x4d3160,this[_0x4ef89c(0x438)]=_0x14332d,this[_0x4ef89c(0x430)]=_0x3db01e,this[_0x4ef89c(0x337)]=_0x2ad0a,this[_0x4ef89c(0xea)]=_0x73c4f6,this[_0x4ef89c(0x1e2)]=_0x26e342,this[_0x4ef89c(0x249)]=_0x34ebd7,_0x4da1f9(this,'_awaitingChangeset',null),_0x4da1f9(this,_0x4ef89c(0x45e),[]),this[_0x4ef89c(0x208)]=_0x1c59e0,this[_0x4ef89c(0x45e)]=_0x69b604;}['hasLocalChanges'](){const _0x3b9962=_0x315216;return!!this[_0x3b9962(0x208)]||this[_0x3b9962(0x45e)]['length']>0x0;}[_0x315216(0x15a)](){}['_unsyncedMutationCount'](){const _0x301c79=_0x315216;var _0x559bdf;return(((_0x559bdf=this[_0x301c79(0x208)])==null?void 0x0:_0x559bdf['mutations'][_0x301c79(0x250)])??0x0)+this[_0x301c79(0x45e)][_0x301c79(0x250)];}[_0x315216(0xa5)](_0x22e041){const _0x3a3cbc=_0x315216;return new _0x18c848(_0x22e041[_0x3a3cbc(0x3d0)]??0x0,(_0x1e1a1e,_0xa5b3ce)=>this[_0x3a3cbc(0x430)][_0x3a3cbc(0x37a)](_0x1e1a1e,_0xa5b3ce),{...this[_0x3a3cbc(0x430)][_0x3a3cbc(0x238)],'onResend':_0x424352=>{const _0x2fee2a=_0x3a3cbc;var _0xdd4c50,_0x29d190;return(_0xdd4c50=(_0x29d190=this[_0x2fee2a(0x430)])['onChangesetResend'])==null?void 0x0:_0xdd4c50['call'](_0x29d190,_0x424352);}});}[_0x315216(0x3ea)](_0x38b99d){const _0x3a6c28=_0x315216;if(this[_0x3a6c28(0x317)](_0x38b99d))return _0x3a6c28(0x14d);if(_0x43988d(_0x38b99d,this[_0x3a6c28(0x154)]))return _0x3a6c28(0x2e0);let _0x9afbf8=this[_0x3a6c28(0x384)]();return _0x38b99d[_0x3a6c28(0x187)]<=_0x9afbf8?_0x3a6c28(0x475):_0x38b99d[_0x3a6c28(0x187)]>_0x9afbf8+0x1?_0x3a6c28(0x28b):_0x3a6c28(0x2dc);}[_0x315216(0x43d)](_0x5f0bca){const _0x5e41ef=_0x315216;let _0x37811b=this[_0x5e41ef(0x384)]();return _0x5f0bca[_0x5e41ef(0x187)]<=_0x37811b?this['_isAckOfAwaitingChangeset'](_0x5f0bca)?_0x5e41ef(0x240):'stale':_0x5f0bca[_0x5e41ef(0x187)]>_0x37811b+0x1?_0x5e41ef(0x28b):_0x5e41ef(0x407);}[_0x315216(0x401)](_0x1ade49,_0x42cfdf){const _0x29d7bc=_0x315216;switch(this[_0x29d7bc(0x3ea)](_0x1ade49)){case _0x29d7bc(0x14d):return this['onRemoteAck'](_0x1ade49);case _0x29d7bc(0x2e0):return _0x42cfdf[_0x29d7bc(0x18b)](_0x1ade49);case'applied':return this;case'missing':return this[_0x29d7bc(0x457)](_0x1ade49['revision']),_0x42cfdf[_0x29d7bc(0x456)](_0x1ade49);case'apply':return _0x42cfdf[_0x29d7bc(0x15f)](_0x1ade49);}}[_0x315216(0xdc)](_0x165d36){const _0x5c1d67=_0x315216;return{'reason':_0x5c1d67(0x2e0),'revert':{'revision':_0x43988d(_0x165d36,this[_0x5c1d67(0x154)])['revision'],'memberId':_0x165d36['memberID'],'userId':_0x165d36[_0x5c1d67(0x3da)]}};}[_0x315216(0x40a)](_0x27d931){const _0x17a5d8=_0x315216;return{'reason':_0x27d931 instanceof _0x2da8fc?_0x17a5d8(0x193):_0x17a5d8(0x196),'message':_0x27d931 instanceof Error?_0x27d931[_0x17a5d8(0x186)]:typeof _0x27d931==_0x17a5d8(0xd5)?_0x27d931:void 0x0};}[_0x315216(0x420)](_0x4c26d1){const _0x31b687=_0x315216;return{'reason':_0x4c26d1!=null&&_0x4c26d1[_0x31b687(0x1d5)]?_0x31b687(0x409):'changeset_rejected'};}[_0x315216(0x457)](_0x32098f){const _0x5976a7=_0x315216;this[_0x5976a7(0x430)]['onMissingChangesets']({'from':this['_getCurrentRevision'](),'to':_0x32098f-0x1});}[_0x315216(0x1d6)](_0x1823f1){const _0x2a59b6=_0x315216;this['_undoRedoService'][_0x2a59b6(0x474)](this[_0x2a59b6(0x154)],_0x1823f1);}[_0x315216(0x224)](_0xd2c947){const _0x202470=_0x315216;var _0x15af0a,_0x4353ec;(_0x15af0a=(_0x4353ec=this['_handler'])['onTransformSelections'])==null||_0x15af0a[_0x202470(0x20c)](_0x4353ec,_0xd2c947);}['_prepareTransformSelections'](_0x447134){const _0x3f25f6=_0x315216;var _0x23b6b3,_0x2a9469;return((_0x23b6b3=(_0x2a9469=this['_handler'])[_0x3f25f6(0x319)])==null?void 0x0:_0x23b6b3[_0x3f25f6(0x20c)](_0x2a9469,_0x447134))??null;}[_0x315216(0x452)](_0x58813c){const _0xdc9139=_0x315216;var _0x487fa9,_0x1d370e;return(_0x487fa9=(_0x1d370e=this[_0xdc9139(0x430)])['onTransformIME'])==null?void 0x0:_0x487fa9[_0xdc9139(0x20c)](_0x1d370e,_0x58813c);}[_0x315216(0x429)](_0x3cbba2){const _0x305f7f=_0x315216;var _0x4fda34,_0x14e9f9;return(_0x4fda34=(_0x14e9f9=this[_0x305f7f(0x430)])['onTransformState'])==null?void 0x0:_0x4fda34[_0x305f7f(0x20c)](_0x14e9f9,_0x3cbba2);}['_transformRemoteChangesetByIMECache'](_0x466180){const _0x2c005f=_0x315216;var _0x21564e,_0x450563;return((_0x21564e=(_0x450563=this[_0x2c005f(0x430)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x21564e[_0x2c005f(0x20c)](_0x450563,_0x466180))??_0x466180;}[_0x315216(0x280)](_0x38e7b2){const _0xc8b7fc=_0x315216;var _0x181536,_0x268533;return((_0x181536=(_0x268533=this[_0xc8b7fc(0x430)])[_0xc8b7fc(0x40d)])==null?void 0x0:_0x181536[_0xc8b7fc(0x20c)](_0x268533,_0x38e7b2))??_0x38e7b2;}[_0x315216(0x342)](_0xd3f2c3){const _0xa2565c=_0x315216;if(this[_0xa2565c(0x438)]===_0x325f28['UniverInstanceType'][_0xa2565c(0x2a4)]){let {unitID:_0x75228a,mutations:_0x2d3573,memberID:_0x31229e}=_0xd3f2c3,_0xbd0a9a=_0x2d3573[_0xa2565c(0x250)]>0x0?_0x2d3573[0x0][_0xa2565c(0x296)][_0xa2565c(0x1d0)]:[];if(Array[_0xa2565c(0x24d)](_0xbd0a9a)&&_0xbd0a9a['length']>0x0){var _0xb0a76f,_0x536f6f;(_0xb0a76f=(_0x536f6f=this['_handler'])[_0xa2565c(0x464)])==null||_0xb0a76f[_0xa2565c(0x20c)](_0x536f6f,{'unitID':_0x75228a,'memberID':_0x31229e,'textRanges':_0xbd0a9a});}}}[_0x315216(0x3e8)](){const _0x52b5ed=_0x315216;var _0x51d9e9;(_0x51d9e9=this[_0x52b5ed(0x249)])==null||_0x51d9e9['updateOfflineData'](this[_0x52b5ed(0x154)],this['type'],this[_0x52b5ed(0x208)],this[_0x52b5ed(0x45e)]);}[_0x315216(0x384)](){const _0x9bc6d7=_0x315216;return this[_0x9bc6d7(0x1e2)][_0x9bc6d7(0x2bd)](this['unitID']);}['_isEchoedAwaitingChangeset'](_0x4b1dfe){const _0x3aea35=_0x315216;let _0x5987d4=this['_awaitingChangeset'];return!_0x5987d4||!_0x5987d4[_0x3aea35(0x402)]||_0x5987d4[_0x3aea35(0x3d0)]===null||_0x5987d4[_0x3aea35(0x3d0)]===void 0x0?!0x1:_0x4b1dfe[_0x3aea35(0x154)]===_0x5987d4[_0x3aea35(0x154)]&&_0x4b1dfe[_0x3aea35(0x402)]===_0x5987d4[_0x3aea35(0x402)]&&_0x4b1dfe[_0x3aea35(0x3d0)]===_0x5987d4['reqId'];}[_0x315216(0x288)](_0x56ce29){const _0x3051e0=_0x315216;let _0x5ecc3c=this[_0x3051e0(0x208)];return!(_0x5ecc3c!=null&&_0x5ecc3c[_0x3051e0(0x402)])||_0x5ecc3c[_0x3051e0(0x3d0)]==null||!_0x56ce29['sid']||_0x56ce29[_0x3051e0(0x3d0)]==null?!0x1:_0x56ce29[_0x3051e0(0x402)]===_0x5ecc3c['sid']&&_0x56ce29[_0x3051e0(0x3d0)]===_0x5ecc3c[_0x3051e0(0x3d0)];}[_0x315216(0x290)](){const _0x542354=_0x315216;this[_0x542354(0x1e2)]['incrementRevOfUnit'](this[_0x542354(0x154)]);}['_executeRemoteChangeset'](_0x102409){const _0x5df526=_0x315216;let _0x351ce4=this['_transformRemoteChangesetByIMECache'](_0x102409);_0x351ce4=this[_0x5df526(0x280)](_0x351ce4);let _0x2c6ccc=this['_prepareTransformSelections'](_0x351ce4),_0x24c4e3=(0x0,_0x325f28[_0x5df526(0x26e)])(_0x351ce4[_0x5df526(0x383)],this[_0x5df526(0x337)],{'fromCollab':!0x0});if(!_0x24c4e3['result'])throw _0x2c6ccc==null||_0x2c6ccc[_0x5df526(0x448)](),new _0x2da8fc(_0x24c4e3[_0x5df526(0xd6)]);_0x2c6ccc==null||_0x2c6ccc[_0x5df526(0x366)](),this[_0x5df526(0x452)](_0x351ce4),this[_0x5df526(0x429)](_0x351ce4),this[_0x5df526(0x1d6)](_0x102409),this[_0x5df526(0x224)](_0x351ce4),this[_0x5df526(0x342)](_0x351ce4),this[_0x5df526(0x290)]();}};let _0x30f87e=class extends _0x34cd3b{constructor(_0x43786d,_0x3e15de,_0x24a3eb,_0x482ca7,_0x5cad17,_0x10fc61,_0x1e6aed,_0x4a7b51,_0x7073dd,_0x1bdd5d){const _0x39728c=_0x315216;super(_0x43786d,_0x3e15de,null,[],_0x24a3eb,_0x1e6aed,_0x10fc61,_0x482ca7,_0x1bdd5d),this[_0x39728c(0xe7)]=_0x5cad17,this[_0x39728c(0xb8)]=_0x4a7b51,this[_0x39728c(0x466)]=_0x7073dd,this[_0x39728c(0x3a5)]=_0x1bdd5d,_0x4da1f9(this,_0x39728c(0x326),_0x39728c(0x27b));}['appendMutation'](_0x38b5dd){const _0x3f7ad9=_0x315216;let _0x4d2600=this[_0x3f7ad9(0xe7)][_0x3f7ad9(0x40e)](_0x2f13d7,this[_0x3f7ad9(0x154)],this[_0x3f7ad9(0x438)],[_0x38b5dd],this['_handler']);return _0x4d2600['_schedule'](),_0x4d2600[_0x3f7ad9(0x3e8)](),_0x4d2600;}['onRemoteChangeset'](_0x5f0820){const _0x1f2ec0=_0x315216;return this[_0x1f2ec0(0x401)](_0x5f0820,{'onMissing':()=>this['_injector'][_0x1f2ec0(0x40e)](_0x157fa1,this[_0x1f2ec0(0x154)],this['type'],null,[],null,[_0x5f0820],this['_handler'],void 0x0),'onApply':()=>this[_0x1f2ec0(0x411)](_0x5f0820),'onRemoteRevert':()=>this[_0x1f2ec0(0x412)](this['_remoteRevertInfo'](_0x5f0820))});}[_0x315216(0x411)](_0x44fb1c){const _0x326b21=_0x315216;try{let _0x1c6cc6=this[_0x326b21(0x466)][_0x326b21(0x425)](_0x44fb1c,[_0x4524ba[_0x326b21(0x3d8)]]);if((0x0,_0x4524ba['isTransformMutationsWithChangesetSuccess'])(_0x1c6cc6)){let {c1Prime:_0x4384db}=_0x1c6cc6;return this[_0x326b21(0x18f)](_0x4384db),this;}throw _0x1c6cc6[_0x326b21(0xd6)];}catch(_0x28f0e5){return this[_0x326b21(0xb8)]['error'](_0x28f0e5),this[_0x326b21(0x412)](this['_conflictInfoFromError'](_0x28f0e5));}}['_onConflict'](_0x450b3a){const _0x144f04=_0x315216;return this[_0x144f04(0xe7)][_0x144f04(0x40e)](_0x3a7d93,this[_0x144f04(0x154)],this[_0x144f04(0x438)],null,[],this[_0x144f04(0x430)],_0x450b3a);}['onRemoteAck'](_0x149953){if(this['_classifyAck'](_0x149953)==='stale')return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x39245f=_0x315216;throw Error(_0x39245f(0x9f));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x278b97=_0x315216;return this['_injector']['createInstance'](_0x224cab,this[_0x278b97(0x154)],this[_0x278b97(0x438)],null,[],this[_0x278b97(0x430)]);}[_0x315216(0x162)](){return this;}[_0x315216(0x3ba)](){const _0x2f0816=_0x315216;throw Error(_0x2f0816(0x111));}[_0x315216(0x1ec)](){const _0x576d9a=_0x315216;let _0x51365c=this[_0x576d9a(0x1e2)]['getCurrentRevOfUnit'](this['unitID']);return this[_0x576d9a(0x430)][_0x576d9a(0x3d2)]({'from':_0x51365c,'to':0x0}),this[_0x576d9a(0xe7)][_0x576d9a(0x40e)](_0x157fa1,this[_0x576d9a(0x154)],this['type'],null,[],null,[],this[_0x576d9a(0x430)],void 0x0);}};_0x30f87e=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x5,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0x6,_0x325f28[_0x315216(0x158)]),_0x557b04(0x7,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x8,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0x9,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x30f87e);let _0x2f13d7=_0x2452b4=class extends _0x34cd3b{constructor(_0x319083,_0x3ae0aa,_0x199e8c,_0x450c8c,_0x2d2cab,_0x1b503d,_0x277685,_0xd389e1,_0x3e40f9,_0x1d73cc,_0x32b3b1,_0x2b16ba,_0x50e9be,_0x304be6){const _0x6fcfa9=_0x315216;super(_0x319083,_0x3ae0aa,null,_0x199e8c,_0x450c8c,_0x3e40f9,_0x50e9be,_0x1b503d,_0x304be6),this['_injector']=_0x2d2cab,this[_0x6fcfa9(0x413)]=_0x277685,this[_0x6fcfa9(0xb8)]=_0xd389e1,this[_0x6fcfa9(0x1ed)]=_0x1d73cc,this[_0x6fcfa9(0x466)]=_0x32b3b1,this[_0x6fcfa9(0x23b)]=_0x2b16ba,_0x4da1f9(this,_0x6fcfa9(0x326),'pending'),_0x4da1f9(this,_0x6fcfa9(0x1a7),null),_0x4da1f9(this,_0x6fcfa9(0x2f6),null);}[_0x315216(0x2d0)](_0x6c4250){const _0x4811a4=_0x315216;return this['_pendingMutations'][_0x4811a4(0x46e)](_0x6c4250),this[_0x4811a4(0x3e8)](),this;}['onRemoteChangeset'](_0x517a47){const _0x37abb0=_0x315216;return this['_dispatchRemoteChangeset'](_0x517a47,{'onMissing':()=>(this[_0x37abb0(0x9b)](),this[_0x37abb0(0xe7)][_0x37abb0(0x40e)](_0x157fa1,this[_0x37abb0(0x154)],this[_0x37abb0(0x438)],null,this[_0x37abb0(0x45e)],null,[_0x517a47],this[_0x37abb0(0x430)],void 0x0)),'onApply':()=>this[_0x37abb0(0x411)](_0x517a47),'onRemoteRevert':()=>this[_0x37abb0(0x412)](this[_0x37abb0(0xdc)](_0x517a47))});}[_0x315216(0x411)](_0x3286f0){const _0x1abfda=_0x315216;try{let _0x295045=this[_0x1abfda(0x466)][_0x1abfda(0x425)](_0x3286f0,this[_0x1abfda(0x45e)]);if((0x0,_0x4524ba[_0x1abfda(0x2fd)])(_0x295045)){let {c1Prime:_0x728896,m2Prime:_0x125dd4}=_0x295045;this['_executeRemoteChangeset'](_0x728896);let _0x268ba9=this[_0x1abfda(0xe7)][_0x1abfda(0x40e)](_0x2452b4,this[_0x1abfda(0x154)],this['type'],_0x125dd4,this[_0x1abfda(0x430)]);_0x268ba9[_0x1abfda(0x3e8)](),this['_clearScheduledTask']();let _0x39d2e7=new Date()['getTime'](),_0x18ed1a=this[_0x1abfda(0x1a7)]?Math[_0x1abfda(0x30e)](this[_0x1abfda(0x1a7)]-_0x39d2e7,0x0):this[_0x1abfda(0xda)]();return _0x268ba9['_schedule'](_0x18ed1a),_0x268ba9;}throw _0x295045['error'];}catch(_0x31e2d0){return this[_0x1abfda(0xb8)][_0x1abfda(0xd6)](_0x31e2d0),this[_0x1abfda(0x412)](this['_conflictInfoFromError'](_0x31e2d0));}}['onRemoteAck'](_0x417db3){const _0x42be15=_0x315216;if(this[_0x42be15(0x43d)](_0x417db3)===_0x42be15(0x47c))return this;throw Error(_0x42be15(0x3f4));}[_0x315216(0x2ba)](){const _0x2f8891=_0x315216;throw Error(_0x2f8891(0x1d3));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x577ae2=_0x315216;return this['_clearScheduledTask'](),this[_0x577ae2(0xe7)][_0x577ae2(0x40e)](_0x224cab,this['unitID'],this['type'],null,this[_0x577ae2(0x45e)],this[_0x577ae2(0x430)]);}['toggleOnline'](){return this;}[_0x315216(0x122)](_0x226472){const _0x3049a9=_0x315216;let _0x5af2ed=_0x226472??this[_0x3049a9(0xda)]();this['_scheduleCompleteTimestamp']=new Date()[_0x3049a9(0x2e4)]()+_0x5af2ed,this['_sendingTimer']=setTimeout(()=>{const _0x2906a2=_0x3049a9;this[_0x2906a2(0x9b)]();let _0x271f48=null;switch(this[_0x2906a2(0x438)]){case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x33b)]:_0x271f48=_0x3ea32d(this['_pendingMutations'],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x2a4)]:_0x271f48=this[_0x2906a2(0x45e)][_0x2906a2(0x2c6)](_0x40da23=>_0x40da23['id']===_0x285e73[_0x2906a2(0x1fb)]['id'])?_0x102089(this[_0x2906a2(0x45e)],this[_0x2906a2(0x154)],this['_univerInstanceService'],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]):_0x3ea32d(this[_0x2906a2(0x45e)],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this['_revisionService'],this[_0x2906a2(0x413)]);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x1c3)]:_0x271f48=_0x5d8c7d(this['_pendingMutations'],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this['_userManagerService']);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x45f)]:_0x271f48=_0x548fbe(this[_0x2906a2(0x45e)],this['unitID'],this['_univerInstanceService'],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]);break;case _0x325f28['UniverInstanceType'][_0x2906a2(0x3a4)]:_0x271f48=_0x3ea32d(this[_0x2906a2(0x45e)],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0xc9)]:_0x271f48=_0x3ea32d(this[_0x2906a2(0x45e)],this['unitID'],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this['_userManagerService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x2906a2(0x373));}let {changeset:_0x4ccdd4,pendingMutations:_0x5a3adc}=_0x271f48,_0x514684=this[_0x2906a2(0xa5)](_0x4ccdd4);_0x514684[_0x2906a2(0x2ac)](_0x4ccdd4,_0x4ccdd4[_0x2906a2(0x383)]['length']+_0x5a3adc['length']);let _0x5677bd=_0x5a3adc[_0x2906a2(0x250)]?this[_0x2906a2(0xe7)]['createInstance'](_0x432f81,this[_0x2906a2(0x154)],this[_0x2906a2(0x438)],_0x4ccdd4,_0x5a3adc,this['_handler'],_0x514684):this[_0x2906a2(0xe7)][_0x2906a2(0x40e)](_0x299420,this[_0x2906a2(0x154)],this['type'],_0x4ccdd4,this['_handler'],_0x514684);_0x5677bd[_0x2906a2(0x3e8)](),this[_0x2906a2(0x430)][_0x2906a2(0x320)](this,_0x5677bd);},_0x5af2ed);}[_0x315216(0xda)](){const _0x43e7e5=_0x315216;let _0x4cccd8=this['_configService']['getConfig'](_0x3a344c);return(_0x4cccd8==null?void 0x0:_0x4cccd8[_0x43e7e5(0x473)])??0x7d0;}[_0x315216(0x3ba)](){const _0x2ed211=_0x315216;throw Error(_0x2ed211(0x399));}[_0x315216(0x9b)](){const _0x2e04bf=_0x315216;this[_0x2e04bf(0x2f6)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x2e04bf(0x2f6)]=null);}[_0x315216(0x15a)](){const _0x256c88=_0x315216;this[_0x256c88(0x9b)]();}['_onConflict'](_0x200fcb){const _0x1359b9=_0x315216;return this['_clearScheduledTask'](),this['_injector'][_0x1359b9(0x40e)](_0x3a7d93,this['unitID'],this['type'],null,this[_0x1359b9(0x45e)],this[_0x1359b9(0x430)],_0x200fcb);}};_0x2f13d7=_0x2452b4=_0x5af442([_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['Injector'])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x6,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x1b9)])),_0x557b04(0x7,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x8,_0x325f28[_0x315216(0x158)]),_0x557b04(0x9,_0x325f28['IConfigService']),_0x557b04(0xa,_0x4524ba['ITransformService']),_0x557b04(0xb,_0x325f28[_0x315216(0xd2)]),_0x557b04(0xc,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x2f13d7);let _0x299420=_0x38d979=class extends _0x34cd3b{constructor(_0x481e9f,_0x31cff2,_0x4a4153,_0x18d521,_0x250834,_0x3c7b32,_0x21f51e,_0x1c7d98,_0x314a4c,_0x476ab9,_0x17561a,_0x33022b){const _0x311168=_0x315216;super(_0x481e9f,_0x31cff2,_0x4a4153,[],_0x18d521,_0x1c7d98,_0x17561a,_0x21f51e,_0x33022b),this[_0x311168(0xe7)]=_0x3c7b32,this[_0x311168(0xb8)]=_0x314a4c,this[_0x311168(0x466)]=_0x476ab9,_0x4da1f9(this,'status',_0x311168(0x2e7)),_0x4da1f9(this,'_submitter',void 0x0),this[_0x311168(0x1a8)]=_0x250834??this['_createChangesetSubmitter'](_0x4a4153),this['_submitter'][_0x311168(0x3cf)](()=>({'changeset':this['_awaitingChangeset'],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x250834||this[_0x311168(0x1a8)][_0x311168(0x431)]();}[_0x315216(0x2d0)](_0x836d95){const _0x2c98f5=_0x315216;this[_0x2c98f5(0x236)]();let _0x2fbf5d=this[_0x2c98f5(0xe7)]['createInstance'](_0x432f81,this[_0x2c98f5(0x154)],this[_0x2c98f5(0x438)],this[_0x2c98f5(0x208)],[_0x836d95],this[_0x2c98f5(0x430)],this[_0x2c98f5(0x1a8)]);return _0x2fbf5d[_0x2c98f5(0x3e8)](),_0x2fbf5d;}[_0x315216(0xee)](_0x151951){const _0x1af2bd=_0x315216;return this[_0x1af2bd(0x401)](_0x151951,{'onMissing':()=>(this['_detachSubmitter'](),this[_0x1af2bd(0xe7)][_0x1af2bd(0x40e)](_0x157fa1,this[_0x1af2bd(0x154)],this[_0x1af2bd(0x438)],this['_awaitingChangeset'],[],null,[_0x151951],this['_handler'],this[_0x1af2bd(0x1a8)])),'onApply':()=>this['_transformAndApply'](_0x151951),'onRemoteRevert':()=>this['_onConflict'](this[_0x1af2bd(0xdc)](_0x151951))});}[_0x315216(0x411)](_0x1372f9){const _0x57bef1=_0x315216;try{let _0x41c887=this['_transformService']['transformChangesets']([_0x1372f9],[this[_0x57bef1(0x208)]],!0x1);if((0x0,_0x4524ba[_0x57bef1(0x38c)])(_0x41c887)){let {c1Prime:_0x564a8a,c2Prime:_0x44adb5}=_0x41c887;this['_executeRemoteChangeset'](_0x564a8a[0x0]),_0x44adb5[0x0][_0x57bef1(0x1d8)]=this[_0x57bef1(0x384)](),this[_0x57bef1(0x236)]();let _0x5249da=this['_injector'][_0x57bef1(0x40e)](_0x38d979,this[_0x57bef1(0x154)],this['type'],_0x44adb5[0x0],this[_0x57bef1(0x430)],this[_0x57bef1(0x1a8)]);return _0x5249da[_0x57bef1(0x3e8)](),_0x5249da;}throw _0x41c887['error'];}catch(_0x503071){return this[_0x57bef1(0xb8)][_0x57bef1(0xd6)](_0x503071),this[_0x57bef1(0x412)](this['_conflictInfoFromError'](_0x503071));}}[_0x315216(0x144)](_0x55bb68){const _0x53bb30=_0x315216;switch(this[_0x53bb30(0x43d)](_0x55bb68)){case _0x53bb30(0x47c):return this[_0x53bb30(0xb8)][_0x53bb30(0x3e5)]('[AwaitingState]',_0x53bb30(0x29b)+_0x55bb68[_0x53bb30(0x187)]+'\x20at\x20revision\x20'+this[_0x53bb30(0x384)]()+'.'),this;case _0x53bb30(0x240):return this[_0x53bb30(0x1a8)][_0x53bb30(0x15a)](),this[_0x53bb30(0x354)]();case _0x53bb30(0x28b):return this['_submitter']['dispose'](),this[_0x53bb30(0x457)](_0x55bb68[_0x53bb30(0x187)]),this[_0x53bb30(0xe7)][_0x53bb30(0x40e)](_0x157fa1,this[_0x53bb30(0x154)],this[_0x53bb30(0x438)],this[_0x53bb30(0x208)],[],_0x55bb68[_0x53bb30(0x187)],[],this[_0x53bb30(0x430)],void 0x0);case _0x53bb30(0x407):return this[_0x53bb30(0x1a8)]['dispose'](),this[_0x53bb30(0x290)](),this['_toSynced']();}}['_toSynced'](){const _0x3f9b04=_0x315216;let _0x465970=this[_0x3f9b04(0xe7)][_0x3f9b04(0x40e)](_0x30f87e,this[_0x3f9b04(0x154)],this[_0x3f9b04(0x438)],this['_handler']);return _0x465970['_updateLocalCache'](),_0x465970;}[_0x315216(0x2ba)](_0x2db33f){const _0x3a23dc=_0x315216;return this[_0x3a23dc(0x412)](this['_rejectionInfo'](_0x2db33f));}[_0x315216(0x3bf)](_0x4aa12b){const _0x4cb843=_0x315216;var _0x3a3684;return _0x4aa12b[_0x4cb843(0x3d0)]===((_0x3a3684=this[_0x4cb843(0x208)])==null?void 0x0:_0x3a3684['reqId'])&&this[_0x4cb843(0x1a8)][_0x4cb843(0x37d)](),this;}[_0x315216(0x3fc)](){const _0x18f8ae=_0x315216;return this['_submitter'][_0x18f8ae(0x15a)](),this[_0x18f8ae(0xe7)][_0x18f8ae(0x40e)](_0x224cab,this[_0x18f8ae(0x154)],this[_0x18f8ae(0x438)],this[_0x18f8ae(0x208)],[],this[_0x18f8ae(0x430)]);}[_0x315216(0x162)](){return this;}['resend'](_0xfdccac='reconnect'){const _0x5b01a2=_0x315216;this[_0x5b01a2(0x1a8)][_0x5b01a2(0x2ac)](this[_0x5b01a2(0x208)],this[_0x5b01a2(0x126)](),_0xfdccac);}[_0x315216(0x412)](_0x3bbc97){const _0xd76e22=_0x315216;return this[_0xd76e22(0x1a8)]['dispose'](),this[_0xd76e22(0xe7)][_0xd76e22(0x40e)](_0x3a7d93,this[_0xd76e22(0x154)],this[_0xd76e22(0x438)],this[_0xd76e22(0x208)],[],this['_handler'],_0x3bbc97);}[_0x315216(0x15a)](){const _0x25ab17=_0x315216;this[_0x25ab17(0x1a8)]['dispose']();}['_detachSubmitter'](){const _0x85c3e5=_0x315216;this['_submitter'][_0x85c3e5(0x1c8)]();}};_0x299420=_0x38d979=_0x5af442([_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,_0x325f28[_0x315216(0x158)]),_0x557b04(0x8,_0x325f28['ILogService']),_0x557b04(0x9,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0xa,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0xb,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x299420);let _0x432f81=_0x45930f=class extends _0x34cd3b{constructor(_0x335f5c,_0xd6fc5f,_0x50c574,_0x53eb3e,_0x27f13e,_0x23c87f,_0x23e2ce,_0x2f6d38,_0x1c10b3,_0x55571f,_0x19d261,_0x55156e,_0xbe951f){const _0x39430d=_0x315216;super(_0x335f5c,_0xd6fc5f,_0x50c574,_0x53eb3e,_0x27f13e,_0x1c10b3,_0x55156e,_0x2f6d38,_0xbe951f),this[_0x39430d(0xe7)]=_0x23e2ce,this[_0x39430d(0xb8)]=_0x55571f,this['_transformService']=_0x19d261,this[_0x39430d(0x3a5)]=_0xbe951f,_0x4da1f9(this,_0x39430d(0x326),_0x39430d(0x155)),_0x4da1f9(this,'_submitter',void 0x0),this[_0x39430d(0x1a8)]=_0x23c87f??this[_0x39430d(0xa5)](_0x50c574),this[_0x39430d(0x1a8)]['bind'](()=>({'changeset':this[_0x39430d(0x208)],'unsyncedMutationCount':this[_0x39430d(0x126)]()})),_0x23c87f||this[_0x39430d(0x1a8)][_0x39430d(0x431)]();}[_0x315216(0x2d0)](_0x22af20){const _0x2b461a=_0x315216;return this[_0x2b461a(0x45e)][_0x2b461a(0x46e)](_0x22af20),this['_updateLocalCache'](),this;}[_0x315216(0xee)](_0x1618c0){const _0x195a4a=_0x315216;return this[_0x195a4a(0x401)](_0x1618c0,{'onMissing':()=>(this[_0x195a4a(0x236)](),this[_0x195a4a(0xe7)][_0x195a4a(0x40e)](_0x157fa1,this['unitID'],this[_0x195a4a(0x438)],this[_0x195a4a(0x208)],this[_0x195a4a(0x45e)],null,[_0x1618c0],this['_handler'],this[_0x195a4a(0x1a8)])),'onApply':()=>this[_0x195a4a(0x411)](_0x1618c0),'onRemoteRevert':()=>this[_0x195a4a(0x412)](this['_remoteRevertInfo'](_0x1618c0))});}[_0x315216(0x411)](_0x2ae433){const _0x2326dc=_0x315216;try{let _0x5bd7dd=this[_0x2326dc(0x466)][_0x2326dc(0x18c)]([_0x2ae433],[this['_awaitingChangeset']],!0x1);if((0x0,_0x4524ba[_0x2326dc(0x38c)])(_0x5bd7dd)){let {c1Prime:_0xf41fc,c2Prime:_0x44e12f}=_0x5bd7dd,_0x50eed8=this['_transformService'][_0x2326dc(0x425)](_0xf41fc[0x0],this[_0x2326dc(0x45e)]);if((0x0,_0x4524ba[_0x2326dc(0x2fd)])(_0x50eed8)){let {c1Prime:_0x2de89d,m2Prime:_0x537b8c}=_0x50eed8;this[_0x2326dc(0x18f)](_0x2de89d),_0x44e12f[0x0][_0x2326dc(0x1d8)]=this['_getCurrentRevision'](),this['_detachSubmitter']();let _0x345f36=this['_injector'][_0x2326dc(0x40e)](_0x45930f,this[_0x2326dc(0x154)],this[_0x2326dc(0x438)],_0x44e12f[0x0],_0x537b8c,this['_handler'],this[_0x2326dc(0x1a8)]);return _0x345f36[_0x2326dc(0x3e8)](),_0x345f36;}throw _0x50eed8[_0x2326dc(0xd6)];}throw _0x5bd7dd[_0x2326dc(0xd6)];}catch(_0x5e8da2){return this[_0x2326dc(0xb8)][_0x2326dc(0xd6)](_0x5e8da2),this['_onConflict'](this[_0x2326dc(0x40a)](_0x5e8da2));}}[_0x315216(0x144)](_0x48ff31){const _0x33f5a7=_0x315216;switch(this[_0x33f5a7(0x43d)](_0x48ff31)){case'stale':return this[_0x33f5a7(0xb8)]['debug'](_0x33f5a7(0x269),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x48ff31[_0x33f5a7(0x187)]+'\x20at\x20revision\x20'+this[_0x33f5a7(0x384)]()+'.'),this;case _0x33f5a7(0x240):return this[_0x33f5a7(0x1a8)][_0x33f5a7(0x15a)](),this[_0x33f5a7(0x174)]();case _0x33f5a7(0x28b):return this[_0x33f5a7(0x1a8)][_0x33f5a7(0x15a)](),this[_0x33f5a7(0x457)](_0x48ff31[_0x33f5a7(0x187)]),this[_0x33f5a7(0xe7)][_0x33f5a7(0x40e)](_0x157fa1,this[_0x33f5a7(0x154)],this[_0x33f5a7(0x438)],this[_0x33f5a7(0x208)],this[_0x33f5a7(0x45e)],_0x48ff31[_0x33f5a7(0x187)],[],this[_0x33f5a7(0x430)],void 0x0);case _0x33f5a7(0x407):return this[_0x33f5a7(0x1a8)][_0x33f5a7(0x15a)](),this[_0x33f5a7(0x290)](),this[_0x33f5a7(0x174)]();}}[_0x315216(0x174)](){const _0x2e7ccf=_0x315216;let _0x1d2afd=this['_injector'][_0x2e7ccf(0x40e)](_0x2f13d7,this['unitID'],this[_0x2e7ccf(0x438)],this[_0x2e7ccf(0x45e)],this[_0x2e7ccf(0x430)]);return _0x1d2afd[_0x2e7ccf(0x122)](),_0x1d2afd[_0x2e7ccf(0x3e8)](),_0x1d2afd;}['onRemoteRej'](_0x5c2844){const _0x41bf79=_0x315216;return this[_0x41bf79(0x412)](this[_0x41bf79(0x420)](_0x5c2844));}[_0x315216(0x3bf)](_0x35febf){const _0x36a8a3=_0x315216;var _0x5926cd;return _0x35febf[_0x36a8a3(0x3d0)]===((_0x5926cd=this[_0x36a8a3(0x208)])==null?void 0x0:_0x5926cd[_0x36a8a3(0x3d0)])&&this[_0x36a8a3(0x1a8)][_0x36a8a3(0x37d)](),this;}[_0x315216(0x3fc)](){const _0x4052a8=_0x315216;return this[_0x4052a8(0x1a8)][_0x4052a8(0x15a)](),this[_0x4052a8(0xe7)]['createInstance'](_0x224cab,this['unitID'],this[_0x4052a8(0x438)],this[_0x4052a8(0x208)],this[_0x4052a8(0x45e)],this[_0x4052a8(0x430)]);}[_0x315216(0x162)](){return this;}[_0x315216(0x3ba)](_0x3c2733=_0x315216(0x3b1)){const _0x4e3d8b=_0x315216;this[_0x4e3d8b(0x1a8)][_0x4e3d8b(0x2ac)](this[_0x4e3d8b(0x208)],this[_0x4e3d8b(0x126)](),_0x3c2733);}[_0x315216(0x412)](_0x1cc167){const _0x284670=_0x315216;return this[_0x284670(0x1a8)][_0x284670(0x15a)](),this[_0x284670(0xe7)][_0x284670(0x40e)](_0x3a7d93,this['unitID'],this[_0x284670(0x438)],this[_0x284670(0x208)],this[_0x284670(0x45e)],this[_0x284670(0x430)],_0x1cc167);}['dispose'](){const _0x20b801=_0x315216;this[_0x20b801(0x1a8)][_0x20b801(0x15a)]();}[_0x315216(0x236)](){const _0x336028=_0x315216;this[_0x336028(0x1a8)][_0x336028(0x1c8)]();}};_0x432f81=_0x45930f=_0x5af442([_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x8,_0x325f28['ICommandService']),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0xb,_0x325f28['IUndoRedoService']),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x432f81);let _0x3a7d93=class extends _0x34cd3b{constructor(_0x1e0e25,_0x30ba83,_0x3e0c45,_0x32898d,_0x22f041,_0x110325,_0xdca19b,_0x45619c,_0x32fd7c,_0x3b9d0e,_0x2361e5,_0x1b6d5c,_0x91c98a,_0x336b9b){const _0x53b7da=_0x315216;var _0x2a46f2;super(_0x1e0e25,_0x30ba83,_0x3e0c45,_0x32898d,_0x22f041,_0x45619c,_0x32fd7c,_0x3b9d0e,_0x336b9b),this['info']=_0x110325,this[_0x53b7da(0x1bf)]=_0xdca19b,this[_0x53b7da(0x413)]=_0x2361e5,this['_logService']=_0x1b6d5c,this[_0x53b7da(0x190)]=_0x91c98a,this[_0x53b7da(0x3a5)]=_0x336b9b,_0x4da1f9(this,_0x53b7da(0x326),_0x53b7da(0x151)),_0x4da1f9(this,_0x53b7da(0x19c),void 0x0);let _0x240cd6=((_0x2a46f2=this[_0x53b7da(0x413)]['getCurrentUser']())==null?void 0x0:_0x2a46f2[_0x53b7da(0x3da)])??'';this[_0x53b7da(0x19c)]=_0x3e0c45||_0x32898d[_0x53b7da(0x250)]?{'unitID':_0x1e0e25,'userId':_0x240cd6||void 0x0,'type':_0x30ba83,'rev':this[_0x53b7da(0x384)](),'awaitingChangeset':_0x3e0c45,'mutations':_0x32898d}:null,this[_0x53b7da(0x179)](),this[_0x53b7da(0x1c9)](),this['_prepareConflictRecovery'](_0x240cd6)['catch'](_0x4bcf94=>this[_0x53b7da(0xb8)][_0x53b7da(0xd6)](_0x4bcf94));}async['_prepareConflictRecovery'](_0x3df7b0){const _0x1f0c2e=_0x315216;var _0x92cee4,_0x2937fd,_0x53c060,_0x4fc2c3;await((_0x92cee4=this['_localCacheService'])==null||(_0x2937fd=_0x92cee4['backupOfflineData'])==null?void 0x0:_0x2937fd[_0x1f0c2e(0x20c)](_0x92cee4,this['unitID'],this[_0x1f0c2e(0xdd)][_0x1f0c2e(0x328)],_0x3df7b0)[_0x1f0c2e(0x195)](()=>void 0x0));let _0xfb5fc0=!0x0;try{var _0x13f967;await((_0x13f967=this[_0x1f0c2e(0x249)])==null?void 0x0:_0x13f967[_0x1f0c2e(0xf0)](this[_0x1f0c2e(0x154)],_0x3df7b0));}catch{_0xfb5fc0=!0x1,this[_0x1f0c2e(0x190)][_0x1f0c2e(0x436)]({'id':_0x1f0c2e(0x2d1),'unitID':this[_0x1f0c2e(0x154)],'userId':_0x3df7b0});}(_0x53c060=(_0x4fc2c3=this[_0x1f0c2e(0x430)])[_0x1f0c2e(0x161)])==null||_0x53c060['call'](_0x4fc2c3,this[_0x1f0c2e(0xdd)],this['localChanges'],_0xfb5fc0);}[_0x315216(0x2d0)](){return this;}['onRemoteChangeset'](){return this;}[_0x315216(0x144)](){return this;}[_0x315216(0x2ba)](){return this;}[_0x315216(0x3bf)](){return this;}[_0x315216(0x3fc)](){return this;}['toggleOnline'](){return this;}[_0x315216(0x3ba)](){const _0xacb3e7=_0x315216;throw Error(_0xacb3e7(0x11b));}['_showConflictProcessingNotification'](){const _0x3f238b=_0x315216;this[_0x3f238b(0x190)][_0x3f238b(0x436)]({'id':'CONFLICT_PROCESSING','unitID':this[_0x3f238b(0x154)]});}[_0x315216(0x179)](){const _0xdeba55=_0x315216;this[_0xdeba55(0x1bf)][_0xdeba55(0x26c)](new _0x29d3a5[(_0xdeba55(0x329))](this[_0xdeba55(0x154)])['id'],!0x1);}};_0x3a7d93=_0x5af442([_0x557b04(0x6,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x43e)])),_0x557b04(0x7,_0x325f28[_0x315216(0x158)]),_0x557b04(0x8,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0x9,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0xa,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['UserManagerService'])),_0x557b04(0xb,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xc,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x3a7d93);let _0x224cab=class extends _0x34cd3b{constructor(_0x5de791,_0x4c12a2,_0xd7a444,_0x5800dc,_0x56f9df,_0x40216b,_0x451cfe,_0x16a47d,_0x5497f1,_0x551365,_0x4da1fd){const _0x8f67f3=_0x315216;super(_0x5de791,_0x4c12a2,_0xd7a444,_0x5800dc,_0x56f9df,_0x16a47d,_0x5497f1,_0x451cfe,_0x4da1fd),this[_0x8f67f3(0xe7)]=_0x40216b,this[_0x8f67f3(0xb8)]=_0x551365,_0x4da1f9(this,_0x8f67f3(0x326),'offline');}[_0x315216(0x2d0)](_0x4851c5){const _0x2ae72f=_0x315216;return this[_0x2ae72f(0x45e)][_0x2ae72f(0x46e)](_0x4851c5),this[_0x2ae72f(0x3e8)](),this;}[_0x315216(0xee)](_0x3cc8cc){const _0x264b31=_0x315216;return this[_0x264b31(0xb8)]['debug'](_0x264b31(0x14b),'ignored\x20remote\x20changeset\x20of\x20revision\x20'+_0x3cc8cc[_0x264b31(0x187)]+'.'),this;}[_0x315216(0x144)](_0x306c6e){const _0x5ca500=_0x315216;return this[_0x5ca500(0xb8)][_0x5ca500(0x3e5)](_0x5ca500(0x14b),_0x5ca500(0x175)+_0x306c6e[_0x5ca500(0x187)]+'.'),this;}[_0x315216(0x2ba)](){const _0x43ec8d=_0x315216;return this[_0x43ec8d(0xb8)][_0x43ec8d(0x3e5)](_0x43ec8d(0x14b),'ignored\x20rejection.'),this;}[_0x315216(0x3bf)](){return this;}[_0x315216(0x3fc)](){return this;}[_0x315216(0x162)](){const _0x3d118e=_0x315216;let {_injector:_0x2a5bb7,_pendingMutations:_0x181e3b,_awaitingChangeset:_0x2dae22,unitID:_0x136c14,_handler:_0x2f509e,type:_0x57d137}=this,_0x12a052=_0x5a0323(_0x2a5bb7,_0x136c14,_0x57d137,_0x2dae22,_0x181e3b,_0x2f509e);return _0x12a052 instanceof _0x2f13d7?_0x12a052[_0x3d118e(0x122)]():(_0x12a052 instanceof _0x432f81||_0x12a052 instanceof _0x299420)&&_0x12a052[_0x3d118e(0x3ba)](),_0x12a052;}['resend'](){const _0x33ed30=_0x315216;throw Error(_0x33ed30(0x343));}};_0x224cab=_0x5af442([_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,_0x325f28[_0x315216(0x158)]),_0x557b04(0x8,_0x325f28['IUndoRedoService']),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x224cab);let _0x157fa1=class extends _0x34cd3b{constructor(_0x2a7d1a,_0x2f56bc,_0x1b778a,_0x302fb2,_0x19ab0b,_0x1c3504,_0x1c3248,_0x7df096,_0x1e1dab,_0x3b1c38,_0x31a2de,_0x3fade5,_0x2cc061,_0xbe3163,_0x49808d){const _0x109df4=_0x315216;super(_0x2a7d1a,_0x2f56bc,_0x1b778a,_0x302fb2,_0x1c3248,_0x3fade5,_0x2cc061,_0x3b1c38,_0x49808d),this[_0x109df4(0x230)]=_0x19ab0b,this[_0x109df4(0x1a6)]=_0x1c3504,this[_0x109df4(0x1a8)]=_0x7df096,this['_injector']=_0x1e1dab,this[_0x109df4(0xb8)]=_0x31a2de,this['_transformService']=_0xbe3163,this['localCacheService']=_0x49808d,_0x4da1f9(this,_0x109df4(0x326),_0x109df4(0x39a));}[_0x315216(0x125)](_0x5f5566){const _0x94720d=_0x315216;try{if(this[_0x94720d(0x148)](_0x5f5566)[_0x94720d(0x39b)])throw Error(_0x94720d(0x2d8));if(this[_0x94720d(0x148)]([...this[_0x94720d(0x1a6)]][_0x94720d(0x47b)]((_0x21d2d4,_0xed23d3)=>_0x21d2d4['revision']-_0xed23d3[_0x94720d(0x187)]))['missingChangesets'])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x94720d(0x430)][_0x94720d(0x3d2)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xc394f=this['_awaitingChangeset'],_0x2a79a6=this[_0x94720d(0x45e)],_0x3bcb26;if(_0xc394f&&_0x2a79a6[_0x94720d(0x250)]!==0x0)_0x3bcb26=this[_0x94720d(0xe7)][_0x94720d(0x40e)](_0x432f81,this[_0x94720d(0x154)],this['type'],_0xc394f,_0x2a79a6,this['_handler'],this[_0x94720d(0x1a8)]);else{if(_0xc394f&&_0x2a79a6[_0x94720d(0x250)]===0x0)_0xc394f[_0x94720d(0x1d8)]=this[_0x94720d(0x384)](),_0x3bcb26=this[_0x94720d(0xe7)][_0x94720d(0x40e)](_0x299420,this[_0x94720d(0x154)],this['type'],_0xc394f,this[_0x94720d(0x430)],this[_0x94720d(0x1a8)]);else{if(_0x2a79a6['length']!==0x0){let _0x294926=this[_0x94720d(0xe7)]['createInstance'](_0x2f13d7,this['unitID'],this[_0x94720d(0x438)],_0x2a79a6,this['_handler']);_0x294926[_0x94720d(0x122)](),_0x3bcb26=_0x294926;}else _0x3bcb26=this[_0x94720d(0xe7)][_0x94720d(0x40e)](_0x30f87e,this[_0x94720d(0x154)],this[_0x94720d(0x438)],this['_handler']);}}return _0x3bcb26[_0x94720d(0x3e8)](),_0x3bcb26;}catch(_0x5bac43){return _0x5bac43 instanceof _0x2073a1?(this[_0x94720d(0xb8)]['debug'](_0x94720d(0x46b),_0x5bac43[_0x94720d(0x186)]),this[_0x94720d(0x412)](_0x5bac43[_0x94720d(0xdd)])):(this[_0x94720d(0xb8)][_0x94720d(0xd6)](_0x94720d(0x46b),'failed\x20to\x20apply\x20missed\x20changesets!',_0x5bac43),this[_0x94720d(0x412)](this['_conflictInfoFromError'](_0x5bac43)));}}['_handleRemoteChangesets'](_0x14d7d0){const _0x24a0f3=_0x315216;this[_0x24a0f3(0x127)]();for(let _0x15a7be=0x0;_0x15a7be<_0x14d7d0[_0x24a0f3(0x250)];_0x15a7be++){let _0x5d0c87=_0x14d7d0[_0x15a7be];switch(this[_0x24a0f3(0x3ea)](_0x5d0c87)){case _0x24a0f3(0x14d):{let _0x1b89b6=this[_0x24a0f3(0x384)]();if(_0x5d0c87[_0x24a0f3(0x187)]>_0x1b89b6+0x1)return{'missingChangesets':!0x0};_0x5d0c87['revision']<=_0x1b89b6?this[_0x24a0f3(0x309)]():this[_0x24a0f3(0x229)]();break;}case _0x24a0f3(0x2e0):throw new _0x2073a1(this[_0x24a0f3(0xdc)](_0x5d0c87));case _0x24a0f3(0x475):break;case'missing':return{'missingChangesets':!0x0};case _0x24a0f3(0x2dc):this[_0x24a0f3(0x29f)](_0x5d0c87),this[_0x24a0f3(0x127)]();}}return{'missingChangesets':!0x1};}[_0x315216(0x29f)](_0x3a74a4){const _0x1ca888=_0x315216;let _0x29b232=_0x3a74a4,_0x2d7760=this[_0x1ca888(0x208)];if(_0x2d7760){let _0x4f0e4c=this[_0x1ca888(0x466)][_0x1ca888(0x18c)]([_0x3a74a4],[_0x2d7760],!0x1);if(!(0x0,_0x4524ba[_0x1ca888(0x38c)])(_0x4f0e4c))throw _0x4f0e4c[_0x1ca888(0xd6)];_0x29b232=_0x4f0e4c[_0x1ca888(0x167)][0x0],_0x2d7760=_0x4f0e4c['c2Prime'][0x0];}let _0x13ec6a=this[_0x1ca888(0x45e)];if(_0x13ec6a[_0x1ca888(0x250)]){let _0x3a41c9=this[_0x1ca888(0x466)][_0x1ca888(0x425)](_0x29b232,_0x13ec6a);if(!(0x0,_0x4524ba[_0x1ca888(0x2fd)])(_0x3a41c9))throw _0x3a41c9[_0x1ca888(0xd6)];_0x29b232=_0x3a41c9[_0x1ca888(0x167)],_0x13ec6a=_0x3a41c9[_0x1ca888(0xb7)];}this['_executeRemoteChangeset'](_0x29b232),_0x2d7760&&(_0x2d7760['baseRev']=this[_0x1ca888(0x384)]()),this[_0x1ca888(0x208)]=_0x2d7760,this[_0x1ca888(0x45e)]=_0x13ec6a;}[_0x315216(0x127)](){const _0x4eb9f4=_0x315216;if(!this[_0x4eb9f4(0x208)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x17fe1a=this[_0x4eb9f4(0x384)]();if(this[_0x4eb9f4(0x230)]<=_0x17fe1a)throw Error(_0x4eb9f4(0x2fb)+this[_0x4eb9f4(0x230)]+'.');this['_acknowledgedAwaitingRevision']===_0x17fe1a+0x1&&this['_acknowledgeAwaiting']();}[_0x315216(0x229)](){const _0x8cbe28=_0x315216;this[_0x8cbe28(0x290)](),this['_dropAcknowledgedAwaiting']();}[_0x315216(0x309)](){const _0x6ea233=_0x315216;this[_0x6ea233(0x208)]=null,this['_acknowledgedAwaitingRevision']=null,this[_0x6ea233(0x206)]();}[_0x315216(0x206)](){const _0x9a5aa3=_0x315216;var _0x261c33;(_0x261c33=this[_0x9a5aa3(0x1a8)])==null||_0x261c33[_0x9a5aa3(0x15a)](),this[_0x9a5aa3(0x1a8)]=void 0x0;}[_0x315216(0x15a)](){const _0x5ea806=_0x315216;this[_0x5ea806(0x206)]();}[_0x315216(0x3ba)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x315216(0x2d0)](_0x39d2aa){const _0x4c39c7=_0x315216;return this[_0x4c39c7(0x45e)]['push'](_0x39d2aa),this[_0x4c39c7(0x3e8)](),this;}[_0x315216(0xee)](_0x2858dc){const _0x3c4280=_0x315216;return this['_queuedRemoteChangesets'][_0x3c4280(0x46e)](_0x2858dc),this;}[_0x315216(0x144)](_0xb1ef76){const _0x59525d=_0x315216;let _0x3c9309=this[_0x59525d(0x43d)](_0xb1ef76);if(this['_awaitingChangeset']){switch(_0x3c9309){case _0x59525d(0x240):this[_0x59525d(0x309)]();break;case'stale':break;case _0x59525d(0x407):this[_0x59525d(0x229)]();break;case'missing':this[_0x59525d(0x230)]=_0xb1ef76[_0x59525d(0x187)],this[_0x59525d(0x206)]();}return this;}if(_0x3c9309==='stale')return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x315216(0x2ba)](_0x290d42){const _0x184f50=_0x315216;return this[_0x184f50(0x412)](this[_0x184f50(0x420)](_0x290d42));}[_0x315216(0x3bf)](_0x3fdacb){const _0x10a102=_0x315216;var _0x2c10cf;return this[_0x10a102(0x230)]!=null||_0x3fdacb['reqId']!==((_0x2c10cf=this[_0x10a102(0x208)])==null?void 0x0:_0x2c10cf[_0x10a102(0x3d0)])||(this[_0x10a102(0x1a8)]??=this[_0x10a102(0xa5)](this[_0x10a102(0x208)]),this[_0x10a102(0x1a8)][_0x10a102(0x37d)]()),this;}[_0x315216(0x3fc)](){const _0x2c74ba=_0x315216;return this[_0x2c74ba(0x206)](),this[_0x2c74ba(0xe7)][_0x2c74ba(0x40e)](_0x224cab,this[_0x2c74ba(0x154)],this[_0x2c74ba(0x438)],this[_0x2c74ba(0x208)],this[_0x2c74ba(0x45e)],this[_0x2c74ba(0x430)]);}['toggleOnline'](){return this;}[_0x315216(0x412)](_0x39d617){const _0x3e9175=_0x315216;return this['_disposeSubmitter'](),this['_injector'][_0x3e9175(0x40e)](_0x3a7d93,this[_0x3e9175(0x154)],this[_0x3e9175(0x438)],this[_0x3e9175(0x208)],this[_0x3e9175(0x45e)],this[_0x3e9175(0x430)],_0x39d617);}};_0x157fa1=_0x5af442([_0x557b04(0x8,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x9,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['RevisionService'])),_0x557b04(0xa,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xb,_0x325f28[_0x315216(0x158)]),_0x557b04(0xc,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0xd,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0xe,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x157fa1);function _0x5a0323(_0x55d5e6,_0x4747bf,_0x16c89c,_0x5ca0a1,_0x2d010c,_0x4737e2){const _0xe1c49=_0x315216;return _0x5ca0a1&&_0x2d010c['length']?_0x55d5e6['createInstance'](_0x432f81,_0x4747bf,_0x16c89c,_0x5ca0a1,_0x2d010c,_0x4737e2,void 0x0):_0x5ca0a1?_0x55d5e6[_0xe1c49(0x40e)](_0x299420,_0x4747bf,_0x16c89c,_0x5ca0a1,_0x4737e2,void 0x0):_0x2d010c['length']?_0x55d5e6[_0xe1c49(0x40e)](_0x2f13d7,_0x4747bf,_0x16c89c,_0x2d010c,_0x4737e2):_0x55d5e6[_0xe1c49(0x40e)](_0x30f87e,_0x4747bf,_0x16c89c,_0x4737e2);}let _0x1683e1=class extends _0x325f28[_0x315216(0x10c)]{get[_0x315216(0x2b3)](){const _0xcd750d=_0x315216;return this[_0xcd750d(0xe0)];}constructor(_0x233e9a,_0x4707eb,_0x2be4b2,_0x452d01,_0x405002,_0x5d00c5,_0x4b0128,_0x5c03c4,_0x3b089a,_0x3d6204,_0x469616,_0x2179e2,_0x4f4841,_0x33e458){const _0x5c2117=_0x315216;super(),this[_0x5c2117(0x154)]=_0x233e9a,this[_0x5c2117(0x29e)]=_0x4707eb,this[_0x5c2117(0x272)]=_0x2be4b2,this[_0x5c2117(0xe7)]=_0x452d01,this[_0x5c2117(0x3e3)]=_0x405002,this['_localeService']=_0x5d00c5,this['_revisionService']=_0x4b0128,this[_0x5c2117(0x321)]=_0x5c03c4,this[_0x5c2117(0x23b)]=_0x3b089a,this[_0x5c2117(0xb8)]=_0x3d6204,this['_commandService']=_0x469616,this[_0x5c2117(0x1bf)]=_0x2179e2,this['_singleActiveUnitService']=_0x4f4841,this[_0x5c2117(0x249)]=_0x33e458,_0x4da1f9(this,_0x5c2117(0x228),new _0x1fdbe2[(_0x5c2117(0x1c7))](null)),_0x4da1f9(this,'state$',this[_0x5c2117(0x228)][_0x5c2117(0xf1)]()),_0x4da1f9(this,_0x5c2117(0xe0),void 0x0),_0x4da1f9(this,_0x5c2117(0x95),!0x1),_0x4da1f9(this,'_changesetSessionId',''),_0x4da1f9(this,_0x5c2117(0x443),0x0),_0x4da1f9(this,'status$',this['state$']['pipe']((0x0,_0x1fdbe2['map'])(_0x3a8c55=>_0x3a8c55?_0x3a8c55[_0x5c2117(0x326)]:'offline'),(0x0,_0x1fdbe2[_0x5c2117(0x21b)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4da1f9(this,_0x5c2117(0x398),new _0x1fdbe2[(_0x5c2117(0x112))]()),_0x4da1f9(this,_0x5c2117(0x3a7),this[_0x5c2117(0x398)][_0x5c2117(0xf1)]()),_0x4da1f9(this,_0x5c2117(0x1ea),new _0x1fdbe2[(_0x5c2117(0x112))]()),_0x4da1f9(this,'conflict$',this[_0x5c2117(0x1ea)][_0x5c2117(0xf1)]()),_0x4da1f9(this,_0x5c2117(0x2a5),!0x1),_0x4da1f9(this,'_remoteChangesetQueue',[]);}async[_0x315216(0x41d)](){const _0x19d4ca=_0x315216;if(this['state'])throw Error(_0x19d4ca(0x107));await this[_0x19d4ca(0x1e3)]();}[_0x315216(0xe1)](){const _0x44ddfe=_0x315216;return this[_0x44ddfe(0x95)]=!0x0,(0x0,_0x325f28[_0x44ddfe(0x25f)])(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}['onLocalMutation'](_0x398058){const _0x4dcf4a=_0x315216;this[_0x4dcf4a(0xfa)](_0x398058);}[_0x315216(0x386)](){const _0x3b9da0=_0x315216;var _0x241a62;return((_0x241a62=this[_0x3b9da0(0xe0)])==null?void 0x0:_0x241a62['hasLocalChanges']())??!0x1;}[_0x315216(0x15a)](){const _0xa6bddb=_0x315216;var _0x557f3f;super['dispose'](),(_0x557f3f=this[_0xa6bddb(0xe0)])==null||_0x557f3f[_0xa6bddb(0x15a)](),this[_0xa6bddb(0x398)][_0xa6bddb(0x313)](),this[_0xa6bddb(0x1ea)]['complete']();}[_0x315216(0x1f2)](_0x1fbfb4){const _0x3b3ac3=_0x315216;this[_0x3b3ac3(0xe0)]=_0x1fbfb4,this['_state$'][_0x3b3ac3(0x407)](_0x1fbfb4);}async['_init'](){const _0x491ca5=_0x315216;if(this[_0x491ca5(0x1f2)](await this[_0x491ca5(0x46f)]()),this[_0x491ca5(0x347)]){var _0x1e1b26;(_0x1e1b26=this[_0x491ca5(0x347)])==null||_0x1e1b26['editingUnit'](this[_0x491ca5(0x154)]),this[_0x491ca5(0x41e)](this[_0x491ca5(0x347)][_0x491ca5(0xa8)](this['unitID'])[_0x491ca5(0x28f)](_0x2b92e3=>{const _0x56212c=_0x491ca5;this[_0x56212c(0xb8)]['debug'](_0x56212c(0x2da),'editing\x20status\x20changed\x20to',_0x2b92e3),_0x2b92e3===0x1?(this[_0x56212c(0x321)][_0x56212c(0x436)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x56212c(0x1bf)]['updatePermissionPoint'](new _0x29d3a5[(_0x56212c(0x329))](this[_0x56212c(0x154)])['id'],!0x1),this[_0x56212c(0x1bf)]['setShowComponents'](!0x1)):(this['_permissionService'][_0x56212c(0x26c)](new _0x29d3a5[(_0x56212c(0x329))](this[_0x56212c(0x154)])['id'],!0x0),this[_0x56212c(0x1bf)]['setShowComponents'](!0x0));}));}let _0x43f17c=!0x1;return this[_0x491ca5(0x41e)](this[_0x491ca5(0x29e)][_0x491ca5(0x26d)]['subscribe'](_0x4912f6=>{const _0x1bf994=_0x491ca5;_0x4912f6===0x3?this['_toggleOnline'](_0x43f17c):_0x4912f6===0x2&&(_0x43f17c=!0x0,this[_0x1bf994(0x2a9)]());})),this['disposeWithMe'](this[_0x491ca5(0x29e)][_0x491ca5(0x376)]['subscribe'](_0x235243=>{const _0x43d701=_0x491ca5;try{switch(_0x235243[_0x43d701(0x32e)]){case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0xf7)]:this[_0x43d701(0xfe)]((0x0,_0x4524ba[_0x43d701(0x3cc)])(_0x235243[_0x43d701(0x2a1)]));break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x299)]:this[_0x43d701(0x445)](_0x235243[_0x43d701(0x2a1)]);break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x2a8)]:this[_0x43d701(0x180)]();break;case _0x4524ba['CollaborationEvent'][_0x43d701(0xab)]:this[_0x43d701(0x100)](_0x235243[_0x43d701(0x2a1)]);break;case _0x4524ba['CollaborationEvent'][_0x43d701(0xa9)]:this[_0x43d701(0x341)](_0x235243[_0x43d701(0x2a1)][_0x43d701(0x45b)][_0x43d701(0x403)](_0x4d45b2=>(0x0,_0x4524ba[_0x43d701(0x3cc)])(_0x4d45b2)));break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x465)]:this[_0x43d701(0x180)]({'isPermissionRej':!0x0});break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x469)]:}}catch(_0x55f59f){throw console[_0x43d701(0xd6)]('Error\x20on\x20receiving\x20event',_0x55f59f),_0x55f59f;}})),this['_state'];}[_0x315216(0x454)](){const _0x680fd8=_0x315216;this[_0x680fd8(0x2a5)]=!0x1;}[_0x315216(0x1c0)](){const _0x5694d9=_0x315216;if(this[_0x5694d9(0x2a5)])throw Error(_0x5694d9(0x479));this[_0x5694d9(0x2a5)]=!0x0;}['_transit'](_0x56f41a){const _0x547805=_0x315216;this[_0x547805(0x1c0)]();try{this[_0x547805(0x1f2)](_0x56f41a());}finally{this['_unlockTransition']();}}[_0x315216(0xfa)](_0x2f5974){const _0x3a69d5=_0x315216;this[_0x3a69d5(0x307)](()=>this[_0x3a69d5(0xe0)][_0x3a69d5(0x2d0)](_0x2f5974));}['_onRemoteChangeset'](_0x4fc0ee){const _0x4bb938=_0x315216;this[_0x4bb938(0x95)]?this['_remoteChangesetQueue'][_0x4bb938(0x46e)](_0x4fc0ee):this['_applyRemoteChangeset'](_0x4fc0ee);}[_0x315216(0x202)](){const _0x47e1f1=_0x315216;this[_0x47e1f1(0x330)][_0x47e1f1(0x216)](_0x4c1127=>this[_0x47e1f1(0x400)](_0x4c1127)),this[_0x47e1f1(0x330)]=[];}[_0x315216(0x400)](_0x29fe5a){const _0x7f0e92=_0x315216;let _0x1a75b4=this['_compressMutationService'][_0x7f0e92(0x24b)][_0x7f0e92(0x2f9)](this[_0x7f0e92(0x3e3)][_0x7f0e92(0x24b)][_0x7f0e92(0x164)]()[_0x7f0e92(0x243)])(_0x29fe5a[_0x7f0e92(0x383)],null)||_0x29fe5a['mutations'],_0x4786c2={..._0x29fe5a,'mutations':_0x1a75b4};this['_transit'](()=>this[_0x7f0e92(0xe0)][_0x7f0e92(0xee)](_0x4786c2));}[_0x315216(0x445)](_0x4d7f59){const _0x4ba320=_0x315216;this[_0x4ba320(0x307)](()=>this['_state'][_0x4ba320(0x144)](_0x4d7f59));}[_0x315216(0x180)](_0x3f6701){const _0x381562=_0x315216;this['_transit'](()=>this['_state'][_0x381562(0x2ba)](_0x3f6701));}[_0x315216(0x100)](_0x1b5e39){const _0x54ad69=_0x315216;this['_transit'](()=>this[_0x54ad69(0xe0)][_0x54ad69(0x3bf)](_0x1b5e39));}['_onFetchMissResult'](_0x13d1ec){const _0x57bf23=_0x315216;let _0x282e4e=this['_state'];if(!(_0x282e4e instanceof _0x157fa1))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x22db7c=_0x13d1ec[_0x57bf23(0x403)](_0x38cd95=>{const _0x5ede17=_0x57bf23;let _0x5dc0e7=this['_compressMutationService'][_0x5ede17(0x24b)][_0x5ede17(0x2f9)](this[_0x5ede17(0x3e3)][_0x5ede17(0x24b)][_0x5ede17(0x164)]()[_0x5ede17(0x243)])(_0x38cd95['mutations'],null)||_0x38cd95[_0x5ede17(0x383)];return{..._0x38cd95,'mutations':_0x5dc0e7};});this['_transit'](()=>_0x282e4e[_0x57bf23(0x125)](_0x22db7c));}[_0x315216(0x2a9)](){const _0x5a4057=_0x315216;this[_0x5a4057(0x307)](()=>this['_state'][_0x5a4057(0x3fc)]());}[_0x315216(0x1b8)](_0x45d181=!0x1){const _0x4f4caf=_0x315216;this[_0x4f4caf(0x307)](()=>this[_0x4f4caf(0xe0)][_0x4f4caf(0x162)]());let _0x2966fc=this[_0x4f4caf(0xe0)];_0x45d181&&_0x2966fc instanceof _0x30f87e&&this[_0x4f4caf(0x307)](()=>_0x2966fc[_0x4f4caf(0x1ec)]());}async[_0x315216(0x46f)](){return new Promise(_0x26a965=>{const _0x1f60fa=_0x2c10;this[_0x1f60fa(0x29e)]['sessionStatus$'][_0x1f60fa(0xa4)]((0x0,_0x1fdbe2[_0x1f60fa(0xcf)])(0x1))[_0x1f60fa(0x28f)](async _0x240255=>{const _0x15f555=_0x1f60fa;_0x26a965(await this[_0x15f555(0x3a6)](_0x240255===0x3));});});}[_0x315216(0x189)](){const _0x37b778=_0x315216;let _0x432f5e=this[_0x37b778(0x154)],_0x106848=this[_0x37b778(0xe7)]['get'](_0x325f28[_0x37b778(0x1cf)])[_0x37b778(0x455)](_0x3a344c);return{'resendTimeouts':{'ackTimeout':_0x106848==null?void 0x0:_0x106848[_0x37b778(0x34a)],'maxAckTimeout':_0x106848==null?void 0x0:_0x106848['maxChangesetAckTimeout']},'onStateChange':(_0x174078,_0x95bf28)=>{const _0x5e2d6f=_0x37b778;if(_0x174078!==this[_0x5e2d6f(0xe0)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x174078[_0x5e2d6f(0x326)]+_0x5e2d6f(0x406)+_0x95bf28[_0x5e2d6f(0x326)]+'\x0aCurrent:\x20'+this[_0x5e2d6f(0xe0)][_0x5e2d6f(0x326)]);this[_0x5e2d6f(0x1f2)](_0x95bf28);},'onSendChangeset':(_0x4cf655,_0x4fde90)=>{const _0x38d661=_0x37b778;_0x4cf655[_0x38d661(0x402)]||(_0x4cf655['sid']=this[_0x38d661(0x2f1)],_0x4cf655['reqId']=++this[_0x38d661(0x443)]);let _0x43eae3={'eventID':_0x4524ba[_0x38d661(0x1d7)][_0x38d661(0x227)],'data':{'unitID':_0x4cf655[_0x38d661(0x154)],'unitType':this[_0x38d661(0x272)],'changeset':_0x4cf655,'memberID':this[_0x38d661(0x29e)]['getMemberID']()}};return this['session'][_0x38d661(0x325)](_0x43eae3,this[_0x38d661(0x154)],_0x4fde90);},'onConflict':(_0x43ba91,_0x317237,_0x36b23b)=>{const _0x130e91=_0x37b778;this[_0x130e91(0x1ea)]['closed']||this[_0x130e91(0x1ea)][_0x130e91(0x407)]({'unitID':_0x432f5e,..._0x43ba91,'localChanges':_0x317237,'cacheCleared':_0x36b23b});},'onChangesetResend':_0x51ed56=>{const _0x359978=_0x37b778;this[_0x359978(0xb8)]['debug']('[CollaborationEntity]',_0x359978(0x3d9)+_0x51ed56[_0x359978(0x3d0)]+'\x20('+_0x51ed56[_0x359978(0x328)]+',\x20attempt\x20'+_0x51ed56[_0x359978(0x378)]+')'),queueMicrotask(()=>{const _0x44d981=_0x359978;this['_changesetResend$']['closed']||this[_0x44d981(0x398)][_0x44d981(0x407)]({'unitID':_0x432f5e,..._0x51ed56});});},'onMissingChangesets':({from:_0x4bf592,to:_0x5d4ddc})=>{const _0x457741=_0x37b778;this['_logService']['debug'](_0x457741(0x2da),_0x457741(0x201)+_0x4bf592+_0x457741(0x26b)+_0x5d4ddc);let _0x5377d5={'eventID':_0x4524ba[_0x457741(0x1d7)][_0x457741(0x2dd)],'data':{'unitID':_0x432f5e,'unitType':this[_0x457741(0x272)],'from':_0x4bf592,'to':_0x5d4ddc}};this['session'][_0x457741(0x325)](_0x5377d5,this[_0x457741(0x154)]);}};}async[_0x315216(0x3a6)](_0x4c2c48){const _0x67e15b=_0x315216;var _0x195ee0;let _0x48413f=await((_0x195ee0=this['_localCacheService'])==null?void 0x0:_0x195ee0['loadOfflineData'](this[_0x67e15b(0x154)])),_0x93b8e=(_0x48413f==null?void 0x0:_0x48413f['mutations'])??[],_0x26e716=(_0x48413f==null?void 0x0:_0x48413f[_0x67e15b(0x421)])??null,_0x228e1b=!!(_0x26e716!=null&&_0x26e716[_0x67e15b(0x402)])&&!!(_0x26e716!=null&&_0x26e716['reqId']);this[_0x67e15b(0x2f1)]=_0x228e1b?_0x26e716[_0x67e15b(0x402)]:(0x0,_0x4524ba['uuidv4'])(),this[_0x67e15b(0x443)]=_0x228e1b?_0x26e716[_0x67e15b(0x3d0)]:0x0;let _0x5da059=this[_0x67e15b(0x154)];try{this['_replayCachedMutations'](_0x26e716,_0x93b8e);}catch(_0x497a88){this[_0x67e15b(0xb8)]['error'](_0x497a88);}let _0x12ad5f=this[_0x67e15b(0x189)]();if(_0x4c2c48){let _0x4f8b2e=_0x5a0323(this['_injector'],_0x5da059,this[_0x67e15b(0x272)],_0x26e716,_0x93b8e,_0x12ad5f);return _0x4f8b2e instanceof _0x2f13d7?_0x4f8b2e[_0x67e15b(0x122)]():(_0x4f8b2e instanceof _0x432f81||_0x4f8b2e instanceof _0x299420)&&_0x4f8b2e[_0x67e15b(0x3ba)](),_0x4f8b2e;}return this[_0x67e15b(0xe7)][_0x67e15b(0x40e)](_0x224cab,_0x5da059,this['_type'],_0x26e716,_0x93b8e,_0x12ad5f);}[_0x315216(0x2ed)](_0x237567,_0x29f93e){const _0x19a5b2=_0x315216;var _0x5f0cec,_0xb88269;let _0x257f6f=this[_0x19a5b2(0x3e3)][_0x19a5b2(0x24b)][_0x19a5b2(0x2f9)](this[_0x19a5b2(0x3e3)][_0x19a5b2(0x24b)]['getInterceptPoints']()[_0x19a5b2(0x243)]);(_0x5f0cec=_0x257f6f((_0x237567==null?void 0x0:_0x237567[_0x19a5b2(0x383)])||[],null))==null||_0x5f0cec[_0x19a5b2(0x216)](_0x25103a=>this[_0x19a5b2(0x337)]['executeCommand'](_0x25103a['id'],_0x25103a[_0x19a5b2(0x296)])),(_0xb88269=_0x257f6f(_0x29f93e||[],null))==null||_0xb88269[_0x19a5b2(0x216)](_0x110d25=>this[_0x19a5b2(0x337)][_0x19a5b2(0x231)](_0x110d25['id'],_0x110d25['params']));}};_0x1683e1=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['CompressMutationService'])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x1683e1);let _0x464598=class extends _0x1683e1{constructor(_0x2ee5cf,_0x4e913c,_0x3a39a6,_0x1975db,_0x316bbe,_0x4d0a,_0x2ebbba,_0x57ab4d,_0x28b2e6,_0x34c10f,_0x5b2bc2,_0x53b1e4,_0xba9624,_0xd9bfe,_0x24fa05){const _0x22b82d=_0x315216;super(_0x2ee5cf,_0x3a39a6,_0x4e913c,_0x1975db,_0x316bbe,_0x4d0a,_0x2ebbba,_0x57ab4d,_0x28b2e6,_0x34c10f,_0x5b2bc2,_0x53b1e4,_0xd9bfe,_0x24fa05),this['unitID']=_0x2ee5cf,this['type']=_0x4e913c,this[_0x22b82d(0x27f)]=_0xba9624,_0x4da1f9(this,_0x22b82d(0x160),null);}[_0x315216(0x427)](_0x53d5dc){const _0x1130a8=_0x315216;this[_0x1130a8(0x160)]=_0x53d5dc;}[_0x315216(0x15a)](){const _0x3bcd88=_0x315216;this[_0x3bcd88(0x160)]=null,super[_0x3bcd88(0x15a)]();}[_0x315216(0x189)](){const _0x2ddbc9=_0x315216;let _0x50236e=super['_createHandler']();return _0x50236e[_0x2ddbc9(0x2c0)]=_0x1063ce=>{const _0x731234=_0x2ddbc9;var _0x313b96,_0x1ab75c;return(_0x313b96=this['_handlerCallback'])==null||(_0x1ab75c=_0x313b96[_0x731234(0x2c0)])==null?void 0x0:_0x1ab75c[_0x731234(0x20c)](_0x313b96,_0x1063ce);},_0x50236e[_0x2ddbc9(0x2bb)]=_0x5275ea=>{const _0x1e2516=_0x2ddbc9;var _0x5614c0,_0x1d8e9d;return(_0x5614c0=this[_0x1e2516(0x160)])==null||(_0x1d8e9d=_0x5614c0[_0x1e2516(0x2bb)])==null?void 0x0:_0x1d8e9d[_0x1e2516(0x20c)](_0x5614c0,_0x5275ea);},_0x50236e['onPrepareTransformSelections']=_0x283f0c=>{const _0x484c00=_0x2ddbc9;var _0x1f820c,_0x28e5e2;return((_0x1f820c=this['_handlerCallback'])==null||(_0x28e5e2=_0x1f820c[_0x484c00(0x319)])==null?void 0x0:_0x28e5e2[_0x484c00(0x20c)](_0x1f820c,_0x283f0c))??null;},_0x50236e['onTransformSelections']=_0x39a664=>{const _0x48a315=_0x2ddbc9;var _0x409de3,_0x1b454b;return(_0x409de3=this[_0x48a315(0x160)])==null||(_0x1b454b=_0x409de3[_0x48a315(0x3b9)])==null?void 0x0:_0x1b454b[_0x48a315(0x20c)](_0x409de3,_0x39a664);},_0x50236e[_0x2ddbc9(0x464)]=_0x5c2c2b=>{const _0x37efac=_0x2ddbc9;var _0x54e6ef,_0xf410e1;return(_0x54e6ef=this[_0x37efac(0x160)])==null||(_0xf410e1=_0x54e6ef[_0x37efac(0x464)])==null?void 0x0:_0xf410e1['call'](_0x54e6ef,_0x5c2c2b);},_0x50236e[_0x2ddbc9(0x23a)]=_0x4c8e17=>{const _0x1adede=_0x2ddbc9;var _0x2522d2,_0x3e094b;return((_0x2522d2=this['_handlerCallback'])==null||(_0x3e094b=_0x2522d2[_0x1adede(0x23a)])==null?void 0x0:_0x3e094b[_0x1adede(0x20c)](_0x2522d2,_0x4c8e17))??_0x4c8e17;},_0x50236e[_0x2ddbc9(0x40d)]=_0x12b99e=>{const _0x11ebff=_0x2ddbc9;var _0x478e6a,_0x1cdcf7;return((_0x478e6a=this[_0x11ebff(0x160)])==null||(_0x1cdcf7=_0x478e6a[_0x11ebff(0x40d)])==null?void 0x0:_0x1cdcf7[_0x11ebff(0x20c)](_0x478e6a,_0x12b99e))??_0x12b99e;},_0x50236e;}async['_init'](){const _0x239b76=_0x315216;let _0x23c4e4=await super[_0x239b76(0x1e3)]();return this[_0x239b76(0x41e)](this[_0x239b76(0x27f)][_0x239b76(0x295)][_0x239b76(0x28f)](_0x5bb045=>{const _0x9b89d0=_0x239b76;if(_0x5bb045==null||_0x5bb045[_0x9b89d0(0x352)]!==this[_0x9b89d0(0x154)])return;let {commandId:_0x570a26,redoState:_0x2f241f,unitId:_0x1900cb}=_0x5bb045,_0x55e4c1={'id':_0x570a26,'type':_0x325f28[_0x9b89d0(0x31f)][_0x9b89d0(0xb1)],'params':{'unitId':_0x1900cb,'actions':_0x2f241f[_0x9b89d0(0x3ab)],'textRanges':null}};this[_0x9b89d0(0xfa)](_0x55e4c1);})),this[_0x239b76(0x41e)](this[_0x239b76(0x337)][_0x239b76(0xc6)]((_0x4a20d0,_0x22e7df)=>{const _0x293f82=_0x239b76;if(_0x4a20d0[_0x293f82(0x438)]!==_0x325f28['CommandType'][_0x293f82(0xb1)]||_0x22e7df!=null&&_0x22e7df[_0x293f82(0x3ac)]||_0x22e7df!=null&&_0x22e7df[_0x293f82(0x207)]||_0x4a20d0['id']===_0x285e73[_0x293f82(0x1fb)]['id'])return;let _0x3a2523=_0x4a20d0['params'];if((_0x3a2523==null?void 0x0:_0x3a2523[_0x293f82(0x352)])!==this[_0x293f82(0x154)])return;let _0xd3d112=_0x4a20d0,_0x1ca3b3=this[_0x293f82(0x3e3)][_0x293f82(0x24b)][_0x293f82(0x2f9)](this[_0x293f82(0x3e3)][_0x293f82(0x24b)][_0x293f82(0x164)]()[_0x293f82(0x3b8)])([_0xd3d112],this['_univerInstanceService'])||[_0xd3d112];this['_onLocalMutation'](_0x1ca3b3[0x0]);})),_0x23c4e4;}};_0x464598=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28['Inject'])(_0x325f28['Injector'])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['CompressMutationService'])),_0x557b04(0x5,(0x0,_0x325f28['Inject'])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28['Inject'])(_0x285e73[_0x315216(0x129)])),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xe,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x464598);let _0x2033f7=class extends _0x1683e1{constructor(_0x402931,_0x45b5ec,_0x2b4cbb,_0x43fcf1,_0x5ebb7e,_0x17b257,_0x59acf2,_0x41ee17,_0x252c5c,_0x1131e4,_0x1802c3,_0xc04e93,_0x360b32,_0xeecde0){const _0x1b9ffa=_0x315216;super(_0x402931,_0x2b4cbb,_0x45b5ec,_0x43fcf1,_0x5ebb7e,_0x17b257,_0x59acf2,_0x41ee17,_0x252c5c,_0x1131e4,_0x1802c3,_0xc04e93,_0x360b32,_0xeecde0),this['unitID']=_0x402931,this[_0x1b9ffa(0x438)]=_0x45b5ec;}async[_0x315216(0x1e3)](){const _0x27a791=_0x315216;let _0x355e5e=await super['_init']();return this[_0x27a791(0x41e)](this[_0x27a791(0x337)][_0x27a791(0xc6)]((_0x5c6b22,_0x598910)=>{const _0x466802=_0x27a791;if(_0x5c6b22[_0x466802(0x438)]!==_0x325f28['CommandType'][_0x466802(0xb1)]||_0x598910!=null&&_0x598910['fromCollab']||_0x598910!=null&&_0x598910['onlyLocal'])return;let _0x3a10ae=_0x5c6b22[_0x466802(0x296)];if((_0x3a10ae==null?void 0x0:_0x3a10ae[_0x466802(0x352)])!==this[_0x466802(0x154)])return;let _0x4ac2ee=_0x5c6b22,_0x1a4e23=this['_compressMutationService'][_0x466802(0x24b)][_0x466802(0x2f9)](this[_0x466802(0x3e3)]['interceptor'][_0x466802(0x164)]()[_0x466802(0x3b8)])([_0x4ac2ee],this['_univerInstanceService'])||[_0x4ac2ee];this[_0x466802(0xfa)](_0x1a4e23[0x0]);})),_0x355e5e;}};_0x2033f7=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x2ae)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28['ICommandService']),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28['Optional'])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x2033f7);let _0x3a3d85=class extends _0x1683e1{constructor(_0x4730c1,_0xcfbcf4,_0x412fc7,_0x5f2939,_0x2aa9ef,_0x282d6f,_0x5eabd1,_0xb7f1f9,_0xfeeb21,_0x141413,_0x91163e,_0x40ff0b,_0x37ea41,_0x595958,_0x1ae9c1){const _0x7333c6=_0x315216;super(_0x4730c1,_0x412fc7,_0xcfbcf4,_0x5f2939,_0x2aa9ef,_0x282d6f,_0x5eabd1,_0xfeeb21,_0x141413,_0x91163e,_0x40ff0b,_0x37ea41,_0x595958,_0x1ae9c1),this[_0x7333c6(0x154)]=_0x4730c1,this[_0x7333c6(0x438)]=_0xcfbcf4,this[_0x7333c6(0x27d)]=_0xb7f1f9;}['_createHandler'](){const _0x369761=_0x315216;let _0x53f2bc=super[_0x369761(0x189)]();return _0x53f2bc[_0x369761(0x3b9)]=_0x13f3ed=>this[_0x369761(0x27d)][_0x369761(0x218)](_0x13f3ed),_0x53f2bc;}async[_0x315216(0x1e3)](){const _0x191c92=_0x315216;let _0x154833=await super['_init']();return this[_0x191c92(0x41e)](this[_0x191c92(0x337)]['onMutationExecutedForCollab']((_0x44151e,_0x16eae4)=>{const _0x20e844=_0x191c92;if(_0x44151e[_0x20e844(0x438)]!==_0x325f28[_0x20e844(0x31f)][_0x20e844(0xb1)]||_0x16eae4!=null&&_0x16eae4[_0x20e844(0x3ac)]||_0x16eae4!=null&&_0x16eae4[_0x20e844(0x207)])return;let _0x33a1f6=_0x44151e[_0x20e844(0x296)];if((_0x33a1f6==null?void 0x0:_0x33a1f6[_0x20e844(0x352)])!==this[_0x20e844(0x154)])return;let _0x2d4f58=_0x44151e,_0x5bcd29=this[_0x20e844(0x3e3)][_0x20e844(0x24b)][_0x20e844(0x2f9)](this[_0x20e844(0x3e3)][_0x20e844(0x24b)][_0x20e844(0x164)]()[_0x20e844(0x3b8)])([_0x2d4f58],this[_0x20e844(0x23b)])||[_0x2d4f58];this[_0x20e844(0xfa)](_0x5bcd29[0x0]);})),_0x154833;}};_0x3a3d85=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['Injector'])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x5d0dca)),_0x557b04(0x8,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x9,_0x325f28[_0x315216(0xd2)]),_0x557b04(0xa,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xb,_0x325f28[_0x315216(0x158)]),_0x557b04(0xc,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xe,(0x0,_0x325f28['Optional'])(_0x21eb59))],_0x3a3d85);let _0x37ab5d=class extends _0x1683e1{constructor(_0x49c9a2,_0x22f187,_0x332961,_0x5b830b,_0x2c4305,_0x196147,_0x26789a,_0x3e077d,_0x504862,_0x2b3f06,_0x3f8972,_0x52e9e2,_0x9bb87c,_0x356170){const _0xc07d40=_0x315216;super(_0x49c9a2,_0x332961,_0x22f187,_0x5b830b,_0x2c4305,_0x196147,_0x26789a,_0x3e077d,_0x504862,_0x2b3f06,_0x3f8972,_0x52e9e2,_0x9bb87c,_0x356170),this[_0xc07d40(0x154)]=_0x49c9a2,this['type']=_0x22f187;}async[_0x315216(0x1e3)](){const _0x238189=_0x315216;let _0xfe398b=await super[_0x238189(0x1e3)]();return this[_0x238189(0x41e)](this[_0x238189(0x337)][_0x238189(0xc6)]((_0x1951b1,_0x4bf06e)=>{const _0x4ed562=_0x238189;if(_0x1951b1[_0x4ed562(0x438)]!==_0x325f28[_0x4ed562(0x31f)][_0x4ed562(0xb1)]||_0x4bf06e!=null&&_0x4bf06e['fromCollab']||_0x4bf06e!=null&&_0x4bf06e['onlyLocal'])return;let _0x169e63=_0x1951b1[_0x4ed562(0x296)];if((_0x169e63==null?void 0x0:_0x169e63[_0x4ed562(0x352)])!==this[_0x4ed562(0x154)])return;let _0x141e66=_0x1951b1,_0x1b34d5=this['_compressMutationService']['interceptor'][_0x4ed562(0x2f9)](this[_0x4ed562(0x3e3)][_0x4ed562(0x24b)][_0x4ed562(0x164)]()[_0x4ed562(0x3b8)])([_0x141e66],this[_0x4ed562(0x23b)])||[_0x141e66];this[_0x4ed562(0xfa)](_0x1b34d5[0x0]);})),_0xfe398b;}};_0x37ab5d=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x2ae)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x37ab5d);let _0x4df8c8=class extends _0x1683e1{constructor(_0x245354,_0x2a3f7c,_0x22a372,_0x978694,_0x20e647,_0x3e1336,_0x55738a,_0x3a6dd0,_0x5bbaca,_0xdb883e,_0x9d0a9a,_0x1b9375,_0x3e7e01,_0x4b781b){const _0x5a18c6=_0x315216;super(_0x245354,_0x22a372,_0x2a3f7c,_0x978694,_0x20e647,_0x3e1336,_0x55738a,_0x3a6dd0,_0x5bbaca,_0xdb883e,_0x9d0a9a,_0x1b9375,_0x3e7e01,_0x4b781b),this[_0x5a18c6(0x154)]=_0x245354,this[_0x5a18c6(0x438)]=_0x2a3f7c;}async[_0x315216(0x1e3)](){const _0x48918=_0x315216;let _0x1f243a=await super[_0x48918(0x1e3)]();return this[_0x48918(0x41e)](this['_commandService'][_0x48918(0xc6)]((_0x47fbe0,_0x28fb85)=>{const _0x2158f3=_0x48918;if(_0x47fbe0['type']!==_0x325f28[_0x2158f3(0x31f)]['MUTATION']||_0x28fb85!=null&&_0x28fb85[_0x2158f3(0x3ac)]||_0x28fb85!=null&&_0x28fb85[_0x2158f3(0x207)])return;let _0x1514fd=_0x47fbe0[_0x2158f3(0x296)];if((_0x1514fd==null?void 0x0:_0x1514fd[_0x2158f3(0x352)])!==this[_0x2158f3(0x154)])return;let _0x53f6cb=_0x47fbe0,_0x4f1328=this[_0x2158f3(0x3e3)]['interceptor'][_0x2158f3(0x2f9)](this[_0x2158f3(0x3e3)][_0x2158f3(0x24b)][_0x2158f3(0x164)]()[_0x2158f3(0x3b8)])([_0x53f6cb],this[_0x2158f3(0x23b)])||[_0x53f6cb];this[_0x2158f3(0xfa)](_0x4f1328[0x0]);})),_0x1f243a;}};_0x4df8c8=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['Injector'])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x2ae)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28['ICommandService']),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28['Optional'])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x4df8c8);let _0x1e25ce=class extends _0x1683e1{constructor(_0x4450af,_0x173fec,_0x271d0c,_0xe738ae,_0xf74c7,_0x4220d1,_0x40d29e,_0x14d28d,_0x19fc63,_0x220032,_0x4c5b9b,_0x5c6ce8,_0x3d3f95,_0x4ee332){const _0x3df10a=_0x315216;super(_0x4450af,_0x271d0c,_0x173fec,_0xe738ae,_0xf74c7,_0x4220d1,_0x40d29e,_0x14d28d,_0x19fc63,_0x220032,_0x4c5b9b,_0x5c6ce8,_0x3d3f95,_0x4ee332),this[_0x3df10a(0x154)]=_0x4450af,this[_0x3df10a(0x438)]=_0x173fec;}async[_0x315216(0x1e3)](){const _0x105e1b=_0x315216;let _0x288b2d=await super['_init']();return this[_0x105e1b(0x41e)](this['_commandService'][_0x105e1b(0xc6)]((_0x2873c2,_0x1a3d8f)=>{const _0x2f0534=_0x105e1b;if(_0x2873c2[_0x2f0534(0x438)]!==_0x325f28['CommandType']['MUTATION']||_0x1a3d8f!=null&&_0x1a3d8f['fromCollab']||_0x1a3d8f!=null&&_0x1a3d8f['onlyLocal'])return;let _0x1fc8db=_0x2873c2[_0x2f0534(0x296)];if((_0x1fc8db==null?void 0x0:_0x1fc8db['unitId'])!==this[_0x2f0534(0x154)])return;let _0x13d07e=_0x2873c2,_0x31fa33=this[_0x2f0534(0x3e3)][_0x2f0534(0x24b)][_0x2f0534(0x2f9)](this[_0x2f0534(0x3e3)][_0x2f0534(0x24b)]['getInterceptPoints']()[_0x2f0534(0x3b8)])([_0x13d07e],this[_0x2f0534(0x23b)])||[_0x13d07e];this[_0x2f0534(0xfa)](_0x31fa33[0x0]);})),_0x288b2d;}};_0x1e25ce=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['RevisionService'])),_0x557b04(0x7,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0x8,_0x325f28['IUniverInstanceService']),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28['IPermissionService']),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28['Optional'])(_0x21eb59))],_0x1e25ce);let _0x2665e4=(0x0,_0x325f28['createIdentifier'])(_0x315216(0x259));function _0x4703e7(_0xa29de){const _0x33f14a=_0x315216;let _0x187ddf=_0xa29de[_0x33f14a(0x2a1)],_0x2c7bd1=JSON[_0x33f14a(0x20e)](_0x187ddf);switch(_0x2c7bd1[_0x33f14a(0x291)]){case _0x483212['CombCmd'][_0x33f14a(0xe8)]:case _0x483212[_0x33f14a(0x422)]['HELLO']:{let _0x43c6d4=_0x2c7bd1['infoRsp'];return{..._0x2c7bd1,'data':_0x43c6d4,'cmd':_0x2c7bd1[_0x33f14a(0x291)]};}case _0x483212[_0x33f14a(0x422)]['JOIN']:{let _0x469dd5=_0x2c7bd1['joinRsp'];return{..._0x2c7bd1,'data':_0x469dd5,'cmd':_0x2c7bd1['cmd']};}case _0x483212[_0x33f14a(0x422)][_0x33f14a(0x2de)]:{let _0x3cc0bb=_0x2c7bd1[_0x33f14a(0x205)];switch(_0x3cc0bb[_0x33f14a(0x32e)]){case _0x4524ba['CollaborationEvent'][_0x33f14a(0x465)]:var _0x56f83d;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x56f83d=_0x3cc0bb['permissionRejEvent'])==null?void 0x0:_0x56f83d['cs']},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)]['CHANGESET_ACK']:var _0x43128e;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x43128e=_0x3cc0bb[_0x33f14a(0x1d4)])==null?void 0x0:_0x43128e['cs']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent']['NEW_CHANGESETS']:var _0x485c47;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x485c47=_0x3cc0bb[_0x33f14a(0x182)])==null?void 0x0:_0x485c47['cs']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x2a8)]:var _0x143a5f;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x143a5f=_0x3cc0bb['csRejEvent'])==null?void 0x0:_0x143a5f['cs']},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0xab)]:var _0x3fe394;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x3fe394=_0x3cc0bb[_0x33f14a(0xd4)])==null?void 0x0:_0x3fe394['cs']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x3dc)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb['updateCursorEvent']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x2a7)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x3c2)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x29c)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x1ca)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x324)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x310)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent'][_0x33f14a(0x3e2)]:case _0x4524ba[_0x33f14a(0x1d7)]['LIVESHARE_OPERATION']:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x369)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent'][_0x33f14a(0x1e4)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x310)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2c7bd1,'data':_0x3cc0bb,'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent'][_0x33f14a(0x374)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x408)]},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x1ce)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x2bf)]},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x15e)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0xae)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x469)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0xc0)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};default:return _0x2c7bd1;}}default:return _0x2c7bd1;}}function _0x3a4172(_0x36f777){const _0x11ec09=_0x315216;switch(_0x36f777[_0x11ec09(0x291)]){case _0x483212[_0x11ec09(0x422)]['HEARTBEAT']:case _0x483212[_0x11ec09(0x422)][_0x11ec09(0x34e)]:return JSON[_0x11ec09(0x302)]({'cmd':_0x36f777[_0x11ec09(0x291)],'routeKey':_0x36f777['routeKey']});case _0x483212['CombCmd'][_0x11ec09(0x9c)]:{let _0x2bfc44;switch(_0x36f777['data']['eventID']){case _0x4524ba['CollaborationEvent'][_0x11ec09(0x3dc)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x3dc)],'updateCursorEvent':_0x36f777['data'][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x29c)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x29c)],'leaveEvent':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x2a7)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x2a7)],'joinEvent':_0x36f777['data']['data']};break;case _0x4524ba['CollaborationEvent'][_0x11ec09(0x324)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x324)],'liveShareNewHost':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x262)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x262)],'liveShareOperation':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba['CollaborationEvent'][_0x11ec09(0x1e4)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba['CollaborationEvent'][_0x11ec09(0x3a3)]:_0x2bfc44={'eventID':_0x4524ba['CollaborationEvent'][_0x11ec09(0x3a3)],'liveShareRequestHost':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x3e2)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x3e2)]};break;default:_0x2bfc44={'eventID':_0x36f777[_0x11ec09(0x2a1)]['eventID']};}return JSON[_0x11ec09(0x302)]({'cmd':_0x36f777[_0x11ec09(0x291)],'routeKey':_0x36f777[_0x11ec09(0x241)],'collaMsg':_0x2bfc44});}case _0x483212[_0x11ec09(0x422)][_0x11ec09(0x3b6)]:return JSON[_0x11ec09(0x302)]({'cmd':_0x36f777[_0x11ec09(0x291)],'routeKey':_0x36f777[_0x11ec09(0x241)],'joinReq':_0x36f777['data']});case _0x483212[_0x11ec09(0x422)][_0x11ec09(0x239)]:return JSON['stringify']({'cmd':_0x36f777['cmd'],'routeKey':_0x36f777[_0x11ec09(0x241)],'leaveReq':_0x36f777[_0x11ec09(0x2a1)]});default:throw Error(_0x11ec09(0x274));}}let _0x84bd5=(0x0,_0x325f28[_0x315216(0x1ac)])(_0x315216(0x18d));function _0x121798(_0x7d55a0,_0x130a41,_0x270597){const _0xf56efa=_0x315216;return _0x7d55a0+'/'+_0x130a41+_0xf56efa(0x172)+_0x270597+_0xf56efa(0x3cb);}let _0x121d26=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x25458d,_0x5820d4,_0x450a79,_0x2db1ac,_0x4d4d9a){const _0x26da50=_0x315216;super(),this['_injector']=_0x25458d,this[_0x26da50(0xde)]=_0x5820d4,this['_configService']=_0x450a79,this[_0x26da50(0xb8)]=_0x2db1ac,this[_0x26da50(0x375)]=_0x4d4d9a;}[_0x315216(0x44e)](_0x43d68e){const _0x304004=_0x315216;let _0x5e7e09=this[_0x304004(0xe7)][_0x304004(0x1df)](_0x18cba4['ISocketService']);if(!_0x5e7e09)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x35c3bf=_0x5e7e09['createSocket'](_0x43d68e);if(!_0x35c3bf)throw Error(_0x304004(0x203));let _0x5b6ae3=new _0x325f28[(_0x304004(0x16f))](),_0x2bdad2=new _0x1fdbe2[(_0x304004(0x112))]();_0x5b6ae3[_0x304004(0xd9)](_0x35c3bf[_0x304004(0x256)][_0x304004(0x28f)](_0x565e4e=>_0x2bdad2['next'](_0x565e4e))),_0x5b6ae3[_0x304004(0xd9)]((0x0,_0x325f28[_0x304004(0x25f)])(()=>_0x2bdad2[_0x304004(0x313)]()));let _0x39685d=new _0x1fdbe2[(_0x304004(0x112))]();_0x5b6ae3[_0x304004(0xd9)](_0x35c3bf[_0x304004(0x200)]['subscribe'](_0x2454ae=>_0x39685d[_0x304004(0x407)](_0x2454ae))),_0x5b6ae3['add']((0x0,_0x325f28[_0x304004(0x25f)])(()=>_0x39685d[_0x304004(0x313)]()));let _0x5a16a4=new _0x1fdbe2[(_0x304004(0x112))]();_0x5b6ae3['add'](_0x35c3bf[_0x304004(0x32a)][_0x304004(0x28f)](_0x52e8eb=>{let _0x4eaeff=_0x4703e7(_0x52e8eb);_0x5a16a4['next'](_0x4eaeff);})),_0x5b6ae3[_0x304004(0xd9)]((0x0,_0x325f28[_0x304004(0x25f)])(()=>_0x5a16a4[_0x304004(0x313)]()));let _0x1b5ad9,_0xb9e22b=()=>{const _0x36de22=_0x304004;_0x39685d[_0x36de22(0x407)](new Event(_0x36de22(0x16c))),_0x2bdad2[_0x36de22(0x407)](new Event(_0x36de22(0x16c))),_0x1b5ad9[_0x36de22(0x358)]();};return _0x1b5ad9={'memberID':'','close$':_0x2bdad2[_0x304004(0xf1)](),'error$':_0x39685d[_0x304004(0xf1)](),'open$':_0x35c3bf[_0x304004(0x3bb)],'message$':_0x5a16a4[_0x304004(0xf1)](),'send':(_0x38e340,_0x309bd7)=>{const _0x51e3f8=_0x304004;if(_0x38e340[_0x51e3f8(0x291)]===_0x483212[_0x51e3f8(0x422)][_0x51e3f8(0x9c)]){if(_0x38e340[_0x51e3f8(0x2a1)]['eventID']===_0x4524ba[_0x51e3f8(0x1d7)][_0x51e3f8(0x227)]){let _0x36c241=this[_0x51e3f8(0x10a)](_0x1b5ad9,_0x38e340['data'],(_0x309bd7==null?void 0x0:_0x309bd7[_0x51e3f8(0x314)])??0x1d4c0);return _0x36c241['catch'](()=>void 0x0),_0x36c241;}if(_0x38e340['data'][_0x51e3f8(0x32e)]===_0x4524ba['CollaborationEvent'][_0x51e3f8(0x2dd)]){let _0x377fd7=_0x38e340[_0x51e3f8(0x2a1)];this[_0x51e3f8(0x204)](_0x377fd7)[_0x51e3f8(0xd0)](_0x12e792=>{const _0x12f75f=_0x51e3f8;_0x5a16a4[_0x12f75f(0x407)]({'cmd':_0x483212[_0x12f75f(0x422)][_0x12f75f(0x2de)],'code':_0x483212[_0x12f75f(0x353)]['OK'],'routeKey':_0x377fd7[_0x12f75f(0x2a1)][_0x12f75f(0x154)],'routeType':'','data':{'eventID':_0x4524ba[_0x12f75f(0x1d7)][_0x12f75f(0xa9)],'data':{'changesets':_0x12e792}}});})[_0x51e3f8(0x195)](_0x48cf5c=>{const _0xfa009c=_0x51e3f8;this[_0xfa009c(0xb8)][_0xfa009c(0xd6)](_0x48cf5c),_0xb9e22b();});return;}}_0x35c3bf['send'](_0x3a4172(_0x38e340));},'close':()=>{const _0x17dd57=_0x304004;_0x35c3bf['close'](),_0x5b6ae3[_0x17dd57(0x15a)]();}},_0x1b5ad9;}['_submitChangeset'](_0x14b24c,_0x45b21c,_0x21f7a0){const _0x5ec540=_0x315216;let {unitType:_0x5cdf6e,unitID:_0x9f2e7e,changeset:_0x4404dd}=_0x45b21c[_0x5ec540(0x2a1)],_0x2be8df={'unitID':_0x9f2e7e,'memberID':_0x14b24c[_0x5ec540(0x471)],'type':_0x5cdf6e,'changeset':(0x0,_0x4524ba[_0x5ec540(0xe4)])(_0x4404dd)},_0x110197=this[_0x5ec540(0x1ed)][_0x5ec540(0x455)](_0x3a344c),_0x2db7ae=_0x121798((_0x110197==null?void 0x0:_0x110197['collabSubmitChangesetUrl'])??_0x5ec540(0x315),_0x5cdf6e,_0x9f2e7e);return(0x0,_0x1fdbe2[_0x5ec540(0x214)])(this[_0x5ec540(0xde)]['stream']('POST',_0x2db7ae,{'body':_0x2be8df})['pipe']((0x0,_0x1fdbe2[_0x5ec540(0x22a)])(_0x5b808d=>_0x5b808d[_0x5ec540(0x438)]===_0x18cba4['HTTPEventType'][_0x5ec540(0xd8)]),(0x0,_0x1fdbe2[_0x5ec540(0x314)])(_0x21f7a0)))[_0x5ec540(0xd0)](()=>void 0x0,_0x356fb2=>{const _0x7430e1=_0x5ec540;throw this[_0x7430e1(0xb8)][_0x7430e1(0xbf)](_0x7430e1(0x301),'submitting\x20changeset\x20'+_0x4404dd[_0x7430e1(0x402)]+':'+_0x4404dd[_0x7430e1(0x3d0)]+'\x20failed:\x20'+_0x29c25b(_0x356fb2)),_0x356fb2;});}async[_0x315216(0x204)](_0x41984f){const _0x34f606=_0x315216;let {unitID:_0x1eff37,from:_0x5e9529,to:_0x501979,unitType:_0x2e88f5}=_0x41984f[_0x34f606(0x2a1)];return(await this[_0x34f606(0x375)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1eff37,'type':_0x2e88f5,'from':_0x5e9529,'to':_0x501979}))['changesets'][_0x34f606(0x403)](_0x2c84cc=>((_0x2c84cc[_0x34f606(0x383)]===null||_0x2c84cc[_0x34f606(0x383)]===void 0x0)&&(_0x2c84cc['mutations']=[]),_0x2c84cc));}};_0x121d26=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x325f28['Injector'])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)])),_0x557b04(0x2,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x3,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x4,_0x4524ba[_0x315216(0x289)])],_0x121d26);function _0x29c25b(_0xfe4758){const _0x1b9bec=_0x315216;return _0xfe4758 instanceof _0x18cba4[_0x1b9bec(0x2fe)]?_0x1b9bec(0x2f7)+(_0xfe4758[_0x1b9bec(0x326)]??0x0):_0xfe4758 instanceof Error?_0xfe4758['name']:String(_0xfe4758);}let _0xe6d4d9=(0x0,_0x325f28['createIdentifier'])(_0x315216(0x17b));function _0x1b6d59(_0x4cfd8c={}){const _0x5e7eda=_0x315216;return _0x4cfd8c['resolveUnit']?{'resolveUnit':_0x4cfd8c['resolveUnit']}:{'resolveUnit':_0x498d30=>({'target':{'unitId':_0x498d30[_0x5e7eda(0x352)],'unitType':_0x498d30[_0x5e7eda(0x318)]}})};}function _0x34b57a(_0x458d84,_0x36f9f5,_0x364e50){const _0x301610=_0x315216;let _0x4192ad=_0x364e50[_0x301610(0x41c)][_0x301610(0x253)];if(_0x4192ad!=null&&_0x4192ad[_0x301610(0x34b)]()==='')throw Error(_0x301610(0x433));if(!_0x364e50[_0x301610(0x41c)][_0x301610(0x352)])throw Error(_0x301610(0x15b));return{'localUnitId':_0x458d84,'unitType':_0x36f9f5,'target':{'endpoint':_0x4192ad,'unitId':_0x364e50[_0x301610(0x41c)]['unitId'],'unitType':_0x364e50[_0x301610(0x41c)][_0x301610(0x318)]??_0x36f9f5},'changeset':_0x364e50[_0x301610(0x275)]};}let _0x2c8ade=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x5d524d,_0x3f8519,_0x5592d9,_0x5b95c6,_0x576dab,_0x3ca042){const _0x5a673e=_0x315216;super(),this[_0x5a673e(0xe7)]=_0x5d524d,this[_0x5a673e(0xb8)]=_0x3f8519,this[_0x5a673e(0x1ed)]=_0x5592d9,this[_0x5a673e(0x13e)]=_0x5b95c6,this['_collaborationUIEventService']=_0x576dab,this['_adapter']=_0x3ca042,_0x4da1f9(this,_0x5a673e(0x1af),new Map()),_0x4da1f9(this,'_pendingSessions',new Map()),_0x4da1f9(this,'_sessionChannels',new Map()),_0x4da1f9(this,_0x5a673e(0x1a0),new Map()),_0x4da1f9(this,_0x5a673e(0x480),void 0x0),_0x4da1f9(this,_0x5a673e(0x42b),this['_getSocketChannel'](void 0x0)[_0x5a673e(0x42b)][_0x5a673e(0xf1)]()),_0x4da1f9(this,_0x5a673e(0x3c5),new _0x1fdbe2['BehaviorSubject'](0x0)),_0x4da1f9(this,'status$',this[_0x5a673e(0x3c5)]['asObservable']());}[_0x315216(0x1cc)](){const _0x1173b1=_0x315216;this[_0x1173b1(0x480)]||(this[_0x1173b1(0x480)]=this['_injector']['get'](_0x2665e4,_0x325f28[_0x1173b1(0x323)][_0x1173b1(0x3f1)])??void 0x0,this[_0x1173b1(0x480)]&&this['disposeWithMe'](this[_0x1173b1(0x480)]['online$'][_0x1173b1(0x28f)](_0x2fd1d8=>{const _0x4279b7=_0x1173b1;_0x2fd1d8&&this[_0x4279b7(0x3b1)](),_0x2fd1d8||this[_0x4279b7(0x1a0)]['forEach'](_0x1df1fa=>this[_0x4279b7(0x2d2)](_0x1df1fa));})));}[_0x315216(0x15a)](){const _0x9c6294=_0x315216;super[_0x9c6294(0x15a)](),this[_0x9c6294(0x1a0)]['forEach'](_0x738a82=>{const _0x378748=_0x9c6294;var _0x19b16e,_0x40c947,_0x46783a;(_0x19b16e=_0x738a82[_0x378748(0xb9)])==null||_0x19b16e['unsubscribe'](),_0x738a82[_0x378748(0xb9)]=null,this[_0x378748(0x42e)](_0x738a82),this['_clearRetryConnectingTimer'](_0x738a82),this[_0x378748(0x2ea)](_0x738a82),this[_0x378748(0x1c6)](_0x738a82),(_0x40c947=_0x738a82[_0x378748(0x42b)][_0x378748(0x3aa)]())==null||_0x40c947['close'](),(_0x46783a=_0x738a82['candidateSocket'])==null||_0x46783a[_0x378748(0x358)](),_0x738a82[_0x378748(0x42b)][_0x378748(0x313)]();}),this[_0x9c6294(0x1a0)][_0x9c6294(0x14e)](),this[_0x9c6294(0x1af)]['forEach'](_0x4b1eb6=>_0x4b1eb6[_0x9c6294(0x15a)]()),this[_0x9c6294(0x1af)][_0x9c6294(0x14e)](),this[_0x9c6294(0xbd)][_0x9c6294(0x14e)](),this[_0x9c6294(0x3c5)][_0x9c6294(0x313)]();}async[_0x315216(0x3fb)](_0x2ba215,_0x3cbc3f){const _0x11bcc7=_0x315216;if(this['_listenToNetworkCondition'](),this[_0x11bcc7(0x1af)][_0x11bcc7(0xd1)](_0x2ba215))return this['_sessions'][_0x11bcc7(0x1df)](_0x2ba215);let _0x412c7e=this[_0x11bcc7(0x17d)][_0x11bcc7(0x1df)](_0x2ba215);if(_0x412c7e)return _0x412c7e;let _0x568689=this[_0x11bcc7(0x2c9)](_0x2ba215,_0x3cbc3f);this[_0x11bcc7(0x17d)][_0x11bcc7(0x232)](_0x2ba215,_0x568689);try{return await _0x568689;}finally{this[_0x11bcc7(0x17d)]['delete'](_0x2ba215);}}async['_createSession'](_0x18bd9,_0x24c65d){const _0x30b41d=_0x315216;let _0x2ceca4=await this[_0x30b41d(0x3eb)](_0x18bd9,_0x24c65d),_0x5ecf42=this[_0x30b41d(0x283)](_0x2ceca4[_0x30b41d(0x41c)][_0x30b41d(0x253)]);this[_0x30b41d(0xca)](_0x5ecf42);let _0x1f955b=this[_0x30b41d(0xe7)][_0x30b41d(0x40e)](_0x7f99f9,_0x2ceca4,_0x5ecf42['socket$'][_0x30b41d(0xf1)]());return this[_0x30b41d(0x1af)][_0x30b41d(0x232)](_0x18bd9,_0x1f955b),this[_0x30b41d(0xbd)][_0x30b41d(0x232)](_0x18bd9,_0x5ecf42[_0x30b41d(0x217)]),_0x1f955b;}[_0x315216(0x316)](_0x1720e4){const _0x530df8=_0x315216;let _0x2ca199=this['_sessions']['get'](_0x1720e4),_0x3ec5a5=this['_sessionChannels'][_0x530df8(0x1df)](_0x1720e4);if(_0x2ca199&&(this[_0x530df8(0x1af)]['delete'](_0x1720e4),this['_sessionChannels'][_0x530df8(0x385)](_0x1720e4),_0x2ca199[_0x530df8(0x358)]()),_0x3ec5a5!==void 0x0&&!this[_0x530df8(0x30b)](_0x3ec5a5)){let _0xc9f356=this[_0x530df8(0x1a0)]['get'](_0x3ec5a5);_0xc9f356&&this[_0x530df8(0x2d2)](_0xc9f356);}}[_0x315216(0x3b1)](){const _0x190d86=_0x315216;(this[_0x190d86(0x1a0)][_0x190d86(0x3e0)]?[...this[_0x190d86(0x1a0)][_0x190d86(0x133)]()]:[this[_0x190d86(0x283)](void 0x0)])[_0x190d86(0x216)](_0x397c02=>{const _0x3574cf=_0x190d86;!this[_0x3574cf(0x30b)](_0x397c02[_0x3574cf(0x217)])||_0x397c02['socketReady']||_0x397c02['candidateSocket']||_0x397c02[_0x3574cf(0x213)]||(_0x397c02['retryCount']=0x0,this['_clearRetryConnectingTimer'](_0x397c02),this[_0x3574cf(0xe5)](_0x397c02));});}[_0x315216(0x3e4)](_0x3f744f){const _0x431700=_0x315216;_0x3f744f['retryConnectingTimer']!=null&&(clearTimeout(_0x3f744f[_0x431700(0x169)]),_0x3f744f[_0x431700(0x169)]=null);}[_0x315216(0x32c)](_0x27decf){const _0x2a9f2c=_0x315216;let _0x2e8685=this[_0x2a9f2c(0x1ed)][_0x2a9f2c(0x455)](_0x3a344c),_0x2a6f2b=_0x27decf['endpoint']??(_0x2e8685==null?void 0x0:_0x2e8685['collabWebSocketUrl'])??'ws://127.0.0.1:8000/universer-api/comb/connect';return this[_0x2a9f2c(0x13e)]['createSocket'](_0x2a6f2b);}async[_0x315216(0xca)](_0x36e61c){const _0x130ca6=_0x315216;var _0x53edfa;if(this[_0x130ca6(0x43c)]||((_0x53edfa=this['_networkConditionService'])==null?void 0x0:_0x53edfa[_0x130ca6(0x115)])===!0x1||_0x36e61c[_0x130ca6(0x3b3)]||_0x36e61c[_0x130ca6(0x365)]||_0x36e61c[_0x130ca6(0x213)])return;let _0x2dbabb={};_0x36e61c[_0x130ca6(0x213)]=_0x2dbabb;try{let _0x34c4aa=await this[_0x130ca6(0x32c)](_0x36e61c);if(this[_0x130ca6(0x43c)]||_0x36e61c[_0x130ca6(0x213)]!==_0x2dbabb){_0x34c4aa==null||_0x34c4aa[_0x130ca6(0x358)]();return;}if(_0x34c4aa){var _0x791420;_0x36e61c[_0x130ca6(0x365)]=_0x34c4aa,_0x36e61c[_0x130ca6(0x191)]=setTimeout(()=>{const _0x20e4a3=_0x130ca6;!this[_0x20e4a3(0x43c)]&&_0x36e61c[_0x20e4a3(0x365)]===_0x34c4aa&&this[_0x20e4a3(0x418)](_0x36e61c);},0x4e20);let _0x5b47b8=_0x34c4aa['send'];_0x34c4aa[_0x130ca6(0x325)]=(_0x2baf09,_0x1d7624)=>(_0x2baf09[_0x130ca6(0x291)]!==_0x483212[_0x130ca6(0x422)][_0x130ca6(0x239)]&&!_0x2428fb(_0x2baf09)&&_0x36e61c['socketReady']&&_0x36e61c[_0x130ca6(0x42b)][_0x130ca6(0x3aa)]()===_0x34c4aa&&this['_rescheduleHeartbeat'](_0x36e61c),_0x1d7624===void 0x0?_0x5b47b8[_0x130ca6(0x20c)](_0x34c4aa,_0x2baf09):_0x5b47b8[_0x130ca6(0x20c)](_0x34c4aa,_0x2baf09,_0x1d7624)),(_0x791420=_0x36e61c[_0x130ca6(0xb9)])==null||_0x791420['unsubscribe']();let _0x1e0224=new _0x1fdbe2[(_0x130ca6(0x3ad))]();_0x36e61c[_0x130ca6(0xb9)]=_0x1e0224,_0x1e0224[_0x130ca6(0xd9)](_0x34c4aa[_0x130ca6(0x32a)][_0x130ca6(0x28f)](_0x16d9a3=>this[_0x130ca6(0x102)](_0x36e61c,_0x34c4aa,_0x16d9a3))),_0x1e0224['add'](_0x34c4aa['error$']['pipe']((0x0,_0xa8b74d[_0x130ca6(0xcf)])(0x1))[_0x130ca6(0x28f)](_0x207c93=>this[_0x130ca6(0xb8)][_0x130ca6(0xd6)](_0x130ca6(0x1c5),_0x207c93))),_0x1e0224[_0x130ca6(0xd9)](_0x34c4aa[_0x130ca6(0x3bb)][_0x130ca6(0xa4)]((0x0,_0xa8b74d[_0x130ca6(0xcf)])(0x1))['subscribe'](()=>{const _0x5e9361=_0x130ca6;this[_0x5e9361(0x139)](_0x36e61c,_0x34c4aa);})),_0x1e0224['add'](_0x34c4aa[_0x130ca6(0x256)][_0x130ca6(0xa4)]((0x0,_0xa8b74d['take'])(0x1))[_0x130ca6(0x28f)](_0x4ae19f=>{const _0x3c6583=_0x130ca6;(_0x36e61c[_0x3c6583(0x365)]===_0x34c4aa||_0x36e61c[_0x3c6583(0x42b)][_0x3c6583(0x3aa)]()===_0x34c4aa)&&(this['_logService'][_0x3c6583(0x3e5)]('[CollaborationSessionService]',_0x3c6583(0x108),_0x4ae19f),this[_0x3c6583(0x418)](_0x36e61c));}));}}catch(_0x290f85){if(_0x36e61c[_0x130ca6(0x213)]!==_0x2dbabb)return;this[_0x130ca6(0xb8)][_0x130ca6(0xd6)](_0x290f85),this[_0x130ca6(0x418)](_0x36e61c);}finally{_0x36e61c['connectionAttempt']===_0x2dbabb&&(_0x36e61c[_0x130ca6(0x213)]=null);}}[_0x315216(0x139)](_0x30e35c,_0x34b2c7){const _0xf6d635=_0x315216;this[_0xf6d635(0x43c)]||_0x30e35c['candidateSocket']!==_0x34b2c7||(this[_0xf6d635(0xb8)][_0xf6d635(0x3e5)](_0xf6d635(0x39e),_0xf6d635(0x361)),_0x34b2c7['send']({'cmd':_0x483212[_0xf6d635(0x422)]['HELLO']}));}['_onOffline'](_0xcf00b0){const _0x2b1efa=_0x315216;var _0x40cab9;let _0x1928cd=_0xcf00b0['socket$'][_0x2b1efa(0x3aa)]()??_0xcf00b0[_0x2b1efa(0x365)];_0xcf00b0['connectionAttempt']=null,_0xcf00b0['socketReady']=!0x1,_0xcf00b0[_0x2b1efa(0x365)]=null,(_0x40cab9=_0xcf00b0[_0x2b1efa(0xb9)])==null||_0x40cab9[_0x2b1efa(0x223)](),_0xcf00b0[_0x2b1efa(0xb9)]=null,this[_0x2b1efa(0x3c5)]['next'](0x2),_0xcf00b0[_0x2b1efa(0x42b)]['next'](null),this[_0x2b1efa(0x3e4)](_0xcf00b0),this[_0x2b1efa(0x42e)](_0xcf00b0),this['_clearTimeoutTimer'](_0xcf00b0),this[_0x2b1efa(0x1c6)](_0xcf00b0),_0x1928cd==null||_0x1928cd[_0x2b1efa(0x358)]();}[_0x315216(0x418)](_0x39512f){const _0x1b2b2f=_0x315216;var _0x56e55b;this[_0x1b2b2f(0x2d2)](_0x39512f),!this[_0x1b2b2f(0x43c)]&&((_0x56e55b=this[_0x1b2b2f(0x480)])==null?void 0x0:_0x56e55b[_0x1b2b2f(0x115)])!==!0x1&&this[_0x1b2b2f(0x30b)](_0x39512f['endpointKey'])&&(_0x39512f['retryCount']<(this[_0x1b2b2f(0x1ed)]['getConfig'](_0x1b2b2f(0x2c7))??0x3)?(this[_0x1b2b2f(0x190)]['emitEvent']({'id':_0x1b2b2f(0x28c)}),this[_0x1b2b2f(0xe5)](_0x39512f)):this[_0x1b2b2f(0x190)][_0x1b2b2f(0x436)]({'id':_0x1b2b2f(0x2c1)}));}[_0x315216(0xe5)](_0x41bce4){const _0x5c6f46=_0x315216;let _0x3e4edd=_0x41bce4[_0x5c6f46(0x40f)],_0x15ef86=this[_0x5c6f46(0x1ed)][_0x5c6f46(0x455)](_0x3a344c),_0x4bac81=_0x3e4edd===0x0?0x0:((_0x15ef86==null?void 0x0:_0x15ef86[_0x5c6f46(0x30f)])??0x4e20)*0x2**_0x3e4edd;_0x41bce4[_0x5c6f46(0x169)]=setTimeout(()=>{const _0x5ebceb=_0x5c6f46;clearTimeout(_0x41bce4[_0x5ebceb(0x169)]),_0x41bce4[_0x5ebceb(0x169)]=null,this[_0x5ebceb(0xca)](_0x41bce4);},_0x4bac81),_0x41bce4[_0x5c6f46(0x40f)]+=0x1;}async[_0x315216(0x3eb)](_0x4e7cad,_0x22ad34){const _0x2b4149=_0x315216;return _0x34b57a(_0x4e7cad,_0x22ad34,await this['_adapter'][_0x2b4149(0x10e)]({'unitId':_0x4e7cad,'unitType':_0x22ad34}));}[_0x315216(0x102)](_0x2eac8f,_0x1f088b,_0x26967c){const _0x5868b4=_0x315216;if(this[_0x5868b4(0x43c)]||_0x2eac8f[_0x5868b4(0x365)]!==_0x1f088b&&_0x2eac8f[_0x5868b4(0x42b)]['getValue']()!==_0x1f088b)return;let {cmd:_0x460b87}=_0x26967c;if(_0x460b87===_0x483212[_0x5868b4(0x422)][_0x5868b4(0x34e)]&&!_0x2eac8f[_0x5868b4(0x3b3)]){var _0x47f826;if((_0x26967c['code']??_0x483212[_0x5868b4(0x353)]['OK'])!==_0x483212[_0x5868b4(0x353)]['OK']||!((_0x47f826=_0x26967c[_0x5868b4(0x2a1)])!=null&&_0x47f826[_0x5868b4(0x471)])){this['_onConnectionFailed'](_0x2eac8f);return;}this[_0x5868b4(0x42e)](_0x2eac8f),_0x1f088b[_0x5868b4(0x471)]=_0x26967c['data'][_0x5868b4(0x471)],_0x2eac8f[_0x5868b4(0x40f)]=0x0,_0x2eac8f['socketReady']=!0x0,_0x2eac8f[_0x5868b4(0x365)]=null,_0x2eac8f['socket$'][_0x5868b4(0x407)](_0x1f088b),this[_0x5868b4(0x3c5)][_0x5868b4(0x407)](0x3);}_0x460b87===_0x483212[_0x5868b4(0x422)][_0x5868b4(0xe8)]&&this['_clearTimeoutTimer'](_0x2eac8f),this[_0x5868b4(0x459)](_0x2eac8f);}['_hasSessionsForEndpoint'](_0x4c1976){const _0x29b928=_0x315216;return[...this['_sessionChannels'][_0x29b928(0x133)]()]['some'](_0x270d06=>_0x270d06===_0x4c1976);}[_0x315216(0x283)](_0x555573){const _0x1b9c2e=_0x315216;let _0x414f73=_0x555573??'',_0x15af4b=this[_0x1b9c2e(0x1a0)][_0x1b9c2e(0x1df)](_0x414f73);if(_0x15af4b)return _0x15af4b;let _0x4018a6={'endpointKey':_0x414f73,'endpoint':_0x555573,'socket$':new _0x1fdbe2[(_0x1b9c2e(0x1c7))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1b9c2e(0x1a0)]['set'](_0x414f73,_0x4018a6),_0x4018a6;}[_0x315216(0x42e)](_0x4685c0){const _0x2b35ae=_0x315216;_0x4685c0['handshakeTimer']!=null&&(clearTimeout(_0x4685c0[_0x2b35ae(0x191)]),_0x4685c0['handshakeTimer']=null);}[_0x315216(0x459)](_0xa351fe){const _0x46e7bd=_0x315216;this[_0x46e7bd(0x1c6)](_0xa351fe),_0xa351fe[_0x46e7bd(0x3b3)]&&(_0xa351fe[_0x46e7bd(0x303)]=setTimeout(()=>this[_0x46e7bd(0x31b)](_0xa351fe),this['_configService'][_0x46e7bd(0x455)](_0x46e7bd(0x388))??0x7530));}[_0x315216(0x31b)](_0xcf432a){const _0x10f797=_0x315216;let _0x45257b=_0xcf432a[_0x10f797(0x42b)][_0x10f797(0x3aa)]();_0xcf432a[_0x10f797(0x3b3)]&&_0x45257b&&(_0x45257b[_0x10f797(0x325)]({'cmd':_0x483212[_0x10f797(0x422)][_0x10f797(0xe8)]}),this[_0x10f797(0x31e)](_0xcf432a));}[_0x315216(0x31e)](_0x4ed53e){const _0x557ffe=_0x315216;_0x4ed53e[_0x557ffe(0x2f5)]=setTimeout(()=>this[_0x557ffe(0x418)](_0x4ed53e),this[_0x557ffe(0x1ed)][_0x557ffe(0x455)](_0x557ffe(0x113))??0x4e20);}[_0x315216(0x1c6)](_0x298537){const _0x3dea0a=_0x315216;_0x298537[_0x3dea0a(0x303)]!=null&&(clearTimeout(_0x298537[_0x3dea0a(0x303)]),_0x298537[_0x3dea0a(0x303)]=null);}[_0x315216(0x2ea)](_0x875d62){const _0x184702=_0x315216;_0x875d62[_0x184702(0x2f5)]!=null&&(clearTimeout(_0x875d62[_0x184702(0x2f5)]),_0x875d62[_0x184702(0x2f5)]=null);}};_0x2c8ade=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x2,_0x325f28['IConfigService']),_0x557b04(0x3,_0x84bd5),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x5,_0xe6d4d9)],_0x2c8ade);function _0x2428fb(_0x5868e2){const _0x5b591a=_0x315216;if(_0x5868e2[_0x5b591a(0x291)]!==_0x483212[_0x5b591a(0x422)][_0x5b591a(0x9c)])return!0x1;let _0x132886=_0x5868e2[_0x5b591a(0x2a1)][_0x5b591a(0x32e)];return _0x132886===_0x4524ba[_0x5b591a(0x1d7)][_0x5b591a(0x227)]||_0x132886===_0x4524ba[_0x5b591a(0x1d7)]['FETCH_MISSING'];}let _0x4b66f1=class extends _0x325f28[_0x315216(0x10c)]{constructor(_0x56456b,_0x35a390,_0x7c51cb,_0x1517a7){const _0x3f6f50=_0x315216;var _0x28c5e9;super(),this[_0x3f6f50(0xe7)]=_0x56456b,this['_collabSessionService']=_0x35a390,this[_0x3f6f50(0x1ed)]=_0x7c51cb,this[_0x3f6f50(0x23b)]=_0x1517a7,_0x4da1f9(this,'_entities',new Map()),_0x4da1f9(this,_0x3f6f50(0x22e),new _0x1fdbe2[(_0x3f6f50(0x112))]()),_0x4da1f9(this,_0x3f6f50(0x137),this[_0x3f6f50(0x22e)][_0x3f6f50(0xf1)]()),((_0x28c5e9=this['_configService']['getConfig']('collaboration-client.config'))==null?void 0x0:_0x28c5e9[_0x3f6f50(0x441)])!==!0x1&&this[_0x3f6f50(0x1e3)]();}[_0x315216(0x15a)](){const _0xd13161=_0x315216;super[_0xd13161(0x15a)](),this[_0xd13161(0x9e)][_0xd13161(0x216)](_0x5537ca=>_0x5537ca[_0xd13161(0x15a)]()),this[_0xd13161(0x9e)][_0xd13161(0x14e)]();}[_0x315216(0xa3)](_0x4ed8a8){const _0x50ea6d=_0x315216;return this[_0x50ea6d(0x9e)][_0x50ea6d(0x1df)](_0x4ed8a8)??null;}[_0x315216(0x44a)](){const _0x578593=_0x315216;return Array[_0x578593(0x29a)](this[_0x578593(0x9e)][_0x578593(0x133)]());}[_0x315216(0x109)](_0x3277e1){const _0x415307=_0x315216;let _0x1a9c03=this[_0x415307(0xa3)](_0x3277e1);return _0x1a9c03?(0x0,_0x1fdbe2['of'])(_0x1a9c03):this[_0x415307(0x22e)]['pipe']((0x0,_0xa8b74d[_0x415307(0x22a)])(_0x4b0d9a=>_0x4b0d9a[_0x415307(0x154)]===_0x3277e1));}[_0x315216(0x2e2)](_0x982780){const _0x1f16ea=_0x315216;return(0x0,_0x1fdbe2[_0x1f16ea(0x214)])(this[_0x1f16ea(0x109)](_0x982780)[_0x1f16ea(0xa4)]((0x0,_0xa8b74d[_0x1f16ea(0x403)])(()=>void 0x0)));}[_0x315216(0x386)](_0x29c3c5){const _0x1d36db=_0x315216;if(_0x29c3c5!==void 0x0){var _0x120336;return((_0x120336=this['_entities'][_0x1d36db(0x1df)](_0x29c3c5))==null?void 0x0:_0x120336[_0x1d36db(0x386)]())??!0x1;}for(let _0x376280 of this[_0x1d36db(0x9e)][_0x1d36db(0x133)]())if(_0x376280[_0x1d36db(0x386)]())return!0x0;return!0x1;}['_init'](){const _0x2ff494=_0x315216;this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28['UniverInstanceType'][_0x2ff494(0x33b)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2['takeUntil'])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))[_0x2ff494(0x28f)](async _0x48d7af=>{const _0x396d46=_0x2ff494;let _0x5e7b30=_0x48d7af[_0x396d46(0x42f)]['getUnitId'](),_0x5f003b=await this[_0x396d46(0x35f)](_0x5e7b30,_0x325f28[_0x396d46(0x41f)][_0x396d46(0x33b)]);this['_entities']['set'](_0x5e7b30,_0x5f003b);}),this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x2a4)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d['delay'])(0x10))[_0x2ff494(0xa4)]((0x0,_0xa8b74d[_0x2ff494(0x22a)])(_0xbde8d2=>!_0xbde8d2[_0x2ff494(0x42f)][_0x2ff494(0x119)]()[_0x2ff494(0x35a)]('__')))[_0x2ff494(0x28f)](async _0xb54df3=>{const _0x1a40a2=_0x2ff494;let _0x347fa3=_0xb54df3[_0x1a40a2(0x42f)][_0x1a40a2(0x119)](),_0x562bd3=await this[_0x1a40a2(0x35f)](_0x347fa3,_0x325f28[_0x1a40a2(0x41f)]['UNIVER_DOC']);this[_0x1a40a2(0x9e)][_0x1a40a2(0x232)](_0x347fa3,_0x562bd3);}),this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x1c3)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))['subscribe'](async _0x487ab8=>{const _0x232b17=_0x2ff494;let _0xb6b5cb=_0x487ab8['unit'][_0x232b17(0x119)](),_0x250b5a=await this['_startCollaboration'](_0xb6b5cb,_0x325f28[_0x232b17(0x41f)][_0x232b17(0x1c3)]);this[_0x232b17(0x9e)]['set'](_0xb6b5cb,_0x250b5a);}),this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x3a4)])['pipe']((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d['delay'])(0x10))[_0x2ff494(0x28f)](async _0x103b6d=>{const _0x1b0714=_0x2ff494;let _0x12a0e2=_0x103b6d['unit'][_0x1b0714(0x119)](),_0x51c396=await this[_0x1b0714(0x35f)](_0x12a0e2,_0x325f28[_0x1b0714(0x41f)]['UNIVER_BOARD']);this[_0x1b0714(0x9e)][_0x1b0714(0x232)](_0x12a0e2,_0x51c396);}),this[_0x2ff494(0x23b)]['getTypeOfUnitAdded$'](_0x325f28[_0x2ff494(0x41f)]['UNIVER_BASE'])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))[_0x2ff494(0x28f)](async _0x5e5f28=>{const _0x408705=_0x2ff494;let _0x1379d5=_0x5e5f28[_0x408705(0x42f)]['getUnitId'](),_0x407389=await this['_startCollaboration'](_0x1379d5,_0x325f28[_0x408705(0x41f)]['UNIVER_BASE']);this['_entities'][_0x408705(0x232)](_0x1379d5,_0x407389);}),this[_0x2ff494(0x23b)]['getTypeOfUnitAdded$'](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x45f)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))['subscribe'](async _0x43aa89=>{const _0x17e44e=_0x2ff494;let _0x5f4bc6=_0x43aa89['unit'][_0x17e44e(0x119)](),_0x44e096=await this[_0x17e44e(0x35f)](_0x5f4bc6,_0x325f28[_0x17e44e(0x41f)]['UNIVER_PDF']);this[_0x17e44e(0x9e)][_0x17e44e(0x232)](_0x5f4bc6,_0x44e096);}),(0x0,_0x1fdbe2['merge'])(this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x33b)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)]['UNIVER_DOC']),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x1c3)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28['UniverInstanceType'][_0x2ff494(0x3a4)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28['UniverInstanceType'][_0x2ff494(0xc9)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x45f)]))[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]))['subscribe'](_0x27bfef=>{const _0x4b8b0c=_0x2ff494;let _0x275160=_0x27bfef[_0x4b8b0c(0x119)](),_0x5793b6=this[_0x4b8b0c(0x9e)][_0x4b8b0c(0x1df)](_0x275160);_0x5793b6&&(_0x5793b6[_0x4b8b0c(0x15a)](),this['_entities']['delete'](_0x275160));});}async[_0x315216(0x35f)](_0x577f64,_0x5b30e7){const _0xda098d=_0x315216;let _0x407042=await this[_0xda098d(0x404)][_0xda098d(0x3fb)](_0x577f64),_0x21c3a3=this['_injector']['createInstance'](this['_getCtorByUniverInstanceType'](_0x5b30e7),_0x577f64,_0x5b30e7,_0x407042);return await _0x21c3a3[_0xda098d(0x41d)](),this[_0xda098d(0x22e)][_0xda098d(0x407)](_0x21c3a3),_0x21c3a3;}['_getCtorByUniverInstanceType'](_0x56ef3a){const _0x51ef7e=_0x315216;switch(_0x56ef3a){case _0x325f28['UniverInstanceType']['UNIVER_DOC']:return _0x464598;case _0x325f28['UniverInstanceType'][_0x51ef7e(0x33b)]:return _0x3a3d85;case _0x325f28[_0x51ef7e(0x41f)][_0x51ef7e(0x1c3)]:return _0x37ab5d;case _0x325f28['UniverInstanceType'][_0x51ef7e(0x3a4)]:return _0x4df8c8;case _0x325f28[_0x51ef7e(0x41f)][_0x51ef7e(0xc9)]:return _0x2033f7;case _0x325f28['UniverInstanceType']['UNIVER_PDF']:return _0x1e25ce;default:throw Error(_0x51ef7e(0x472)+_0x56ef3a);}}};_0x4b66f1=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,(0x0,_0x325f28['Inject'])(_0x2c8ade)),_0x557b04(0x2,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x3,_0x325f28[_0x315216(0xd2)])],_0x4b66f1);var _0x5268b1=_0x315216(0x1d2),_0xc74a63=_0x315216(0x1be);let _0x473a89=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x39f217,_0x391b7b){const _0x323b0e=_0x315216;super(),this[_0x323b0e(0x23b)]=_0x39f217,this['_configService']=_0x391b7b,this[_0x323b0e(0x1e3)]();}[_0x315216(0x1e3)](){const _0x5efd4a=_0x315216;this[_0x5efd4a(0x41e)](this[_0x5efd4a(0x23b)]['focused$'][_0x5efd4a(0x28f)](()=>{const _0x9115d9=_0x5efd4a;let _0x15755d=this[_0x9115d9(0x23b)][_0x9115d9(0x3ed)](),_0x5e5d4a=this[_0x9115d9(0x1ed)][_0x9115d9(0x455)]('DEFAULT_FILE_NAME')??_0x9115d9(0x30d);_0x15755d instanceof _0x325f28['Workbook']&&(_0x5e5d4a=_0x15755d['name']),document[_0x9115d9(0x194)]=_0x5e5d4a;}));}};_0x473a89=_0x5af442([_0x557b04(0x0,_0x325f28['IUniverInstanceService']),_0x557b04(0x1,_0x325f28[_0x315216(0x1cf)])],_0x473a89);let _0x3a6c7e=(0x0,_0x325f28['createIdentifier'])(_0x315216(0x340)),_0x3c9a1b=class{constructor(_0x36d566,_0x9dfac4,_0xbe46f2){const _0x2b8335=_0x315216;this['_httpService']=_0x36d566,this[_0x2b8335(0x1ed)]=_0x9dfac4,this[_0x2b8335(0x23b)]=_0xbe46f2;}[_0x315216(0x2c2)](){const _0xc92d3f=_0x315216;return this[_0xc92d3f(0x331)]()[_0xc92d3f(0x367)]??{};}async[_0x315216(0x449)](_0x52586a){const _0x496384=_0x315216;let _0xe9295c=this[_0x496384(0x2c2)]();if(_0x5708d6(_0x52586a,_0xe9295c),_0xe9295c[_0x496384(0x170)])return _0xe9295c[_0x496384(0x170)](_0x52586a);let _0x8626c0=await this[_0x496384(0x30c)](_0x52586a);return{'id':_0x8626c0,'name':_0x52586a['name'],'mimeType':_0x52586a[_0x496384(0x438)],'size':_0x52586a[_0x496384(0x3e0)],'sourceType':_0x325f28[_0x496384(0x3f6)][_0x496384(0x439)],'source':_0x8626c0};}async['getAttachmentUrl'](_0x52416e,_0x5cf4e0){const _0x5c4c88=_0x315216;if(_0x5cf4e0!==_0x325f28[_0x5c4c88(0x3f6)]['UUID'])return _0x52416e;let _0x1ab950=(await this['_httpService'][_0x5c4c88(0x1df)](this[_0x5c4c88(0xed)]()[_0x5c4c88(0x3bd)](_0x5c4c88(0x23e),_0x52416e)))[_0x5c4c88(0x3d5)];if(_0x1ab950[_0x5c4c88(0xd6)]&&_0x1ab950[_0x5c4c88(0xd6)][_0x5c4c88(0xdf)]!==_0x483212[_0x5c4c88(0x349)]['OK'])throw _0x1ab950[_0x5c4c88(0xd6)];if(!_0x1ab950[_0x5c4c88(0x35c)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,_0x325f28[_0x5c4c88(0x1f1)])(_0x1ab950['url'],this[_0x5c4c88(0x298)]());}async[_0x315216(0x30c)](_0x62ea6c){const _0x468d58=_0x315216;let _0x2f9b0c=this[_0x468d58(0x23b)][_0x468d58(0x3ed)](),_0xd741b4=_0x2f9b0c==null?void 0x0:_0x2f9b0c['getUnitId']();if(!_0xd741b4)throw Error(_0x468d58(0xeb));let _0x1a70bf=new FormData();_0x1a70bf[_0x468d58(0x2b1)](_0x468d58(0xe9),_0x62ea6c);let _0x31b646=this[_0x468d58(0x9a)]()+_0x468d58(0x3ee)+_0x62ea6c[_0x468d58(0x3e0)][_0x468d58(0x3c8)]()+_0x468d58(0x136)+_0x483212[_0x468d58(0x2e8)][_0x468d58(0x392)]+_0x468d58(0x20f)+encodeURIComponent(_0xd741b4),_0xdc969e=(await this[_0x468d58(0xde)]['post'](_0x31b646,{'body':_0x1a70bf}))[_0x468d58(0x3d5)][_0x468d58(0x458)];if(typeof _0xdc969e!='string'||!_0xdc969e)throw Error(_0x468d58(0x15d));return _0xdc969e;}['_getUploadFileURL'](){const _0x3c3860=_0x315216;return this[_0x3c3860(0x331)]()[_0x3c3860(0x322)]??'/universer-api/stream/file/upload';}[_0x315216(0xed)](){const _0x1362ba=_0x315216;return this[_0x1362ba(0x331)]()[_0x1362ba(0x18e)]??_0x1362ba(0x153);}[_0x315216(0x298)](){const _0x55dd69=_0x315216;let _0x52e319=this[_0x55dd69(0x331)]();return _0x52e319[_0x55dd69(0x36a)]?_0x52e319['downloadEndpointUrl']:typeof location<'u'?location['origin']:_0x52e319[_0x55dd69(0x322)]??'';}[_0x315216(0x331)](){const _0x4bae3d=_0x315216;return this[_0x4bae3d(0x1ed)][_0x4bae3d(0x455)](_0x4bae3d(0x146))??{};}};_0x3c9a1b=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x18cba4['HTTPService'])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x1cf)])),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['IUniverInstanceService']))],_0x3c9a1b);function _0x5708d6(_0x57d8fa,_0x7c90f){const _0x25027b=_0x315216;var _0x205782;if(_0x7c90f['maxSize']!=null&&_0x57d8fa[_0x25027b(0x3e0)]>_0x7c90f['maxSize'])throw Error(_0x25027b(0x130));if((_0x205782=_0x7c90f[_0x25027b(0x3ae)])!=null&&_0x205782[_0x25027b(0x250)]&&!_0x7c90f[_0x25027b(0x3ae)][_0x25027b(0x142)](_0x2ed3e8=>_0x57d8fa['type']===_0x2ed3e8||_0x57d8fa[_0x25027b(0x163)]['endsWith'](_0x2ed3e8)||_0x2ed3e8[_0x25027b(0x2e1)]('/*')&&_0x57d8fa[_0x25027b(0x438)][_0x25027b(0x35a)](_0x2ed3e8[_0x25027b(0x106)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x5ef8ed=class{constructor(_0x393ae3,_0x4ce70a,_0xa7fe99){const _0x45fdd2=_0x315216;this[_0x45fdd2(0x1ed)]=_0x393ae3,this[_0x45fdd2(0xde)]=_0x4ce70a,this[_0x45fdd2(0x33e)]=_0xa7fe99,this[_0x45fdd2(0x41d)]();}[_0x315216(0x41d)](){const _0x20cfac=_0x315216;this[_0x20cfac(0xde)][_0x20cfac(0x1c1)]({'priority':0x1,'interceptor':(_0x57a7c5,_0x16ab35)=>_0x16ab35(_0x57a7c5)[_0x20cfac(0xa4)]((0x0,_0x1fdbe2[_0x20cfac(0x391)])(async _0x2e96c9=>{const _0x2b9b2d=_0x20cfac;let _0x5773f8=_0x2e96c9;if(_0x5773f8[_0x2b9b2d(0x326)]===0x191){if(typeof window>'u')throw Error(_0x2b9b2d(0x145));if(window[_0x2b9b2d(0x1dd)](this['localeService']['t'](_0x2b9b2d(0x1d1)))){let _0x5141cb=window[_0x2b9b2d(0x1e8)](window[_0x2b9b2d(0xcd)]['href']);window[_0x2b9b2d(0xcd)][_0x2b9b2d(0x1cb)]=this[_0x2b9b2d(0x103)]()+_0x2b9b2d(0x442)+_0x5141cb;}}return _0x5773f8;}))});}[_0x315216(0x103)](){const _0x107544=_0x315216;let _0x49e9a2=this[_0x107544(0x1ed)][_0x107544(0x455)](_0x3a344c);return(_0x49e9a2==null?void 0x0:_0x49e9a2['loginUrlKey'])??_0x107544(0x3c1);}};_0x5ef8ed=_0x5af442([_0x557b04(0x0,_0x325f28['IConfigService']),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)])),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x2ae)]))],_0x5ef8ed);let _0x26c5f0=class extends _0x325f28['Disposable']{constructor(_0x549d28,_0x198d58){const _0x3c5b86=_0x315216;super(),this[_0x3c5b86(0x255)]=_0x549d28,this[_0x3c5b86(0x1ed)]=_0x198d58,_0x4da1f9(this,_0x3c5b86(0x1fa),!0x1),this[_0x3c5b86(0x1da)]();}['_initMergeInterceptor'](){const _0x136bc7=_0x315216;let _0x1b86c9=this;this[_0x136bc7(0x41e)](this[_0x136bc7(0x255)][_0x136bc7(0x1c1)]({'priority':0x3e7,'interceptor':(0x0,_0x18cba4[_0x136bc7(0x264)])({'isMatch'(_0x56b2fa){const _0x56a34f=_0x136bc7;var _0xe139ab;if(_0x56b2fa[_0x56a34f(0x17c)]==='POST'&&(_0xe139ab=_0x56b2fa['requestParams'])!=null&&_0xe139ab[_0x56a34f(0x3d5)]){let {objectID:_0x7d0b8b,objectType:_0x5a0c83}=_0x56b2fa[_0x56a34f(0x3c3)][_0x56a34f(0x3d5)]||{};if(!_0x7d0b8b||_0x5a0c83===void 0x0)return!0x1;let _0x41bd9d=_0x1b86c9[_0x56a34f(0x27a)]()+'/'+_0x5a0c83+_0x56a34f(0x140)+encodeURIComponent(_0x7d0b8b)+'/allowed';if(_0x56b2fa[_0x56a34f(0x35c)]===_0x41bd9d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x315c89){const _0x5db7fa=_0x136bc7;var _0x234e4f;return(_0x234e4f=_0x315c89[_0x5db7fa(0x3c3)])==null?void 0x0:_0x234e4f['body'];},'mergeParamsToRequest'(_0x20aaef,_0x5234eb){const _0x5a3b4c=_0x136bc7;let _0x5896dd=_0x1b86c9[_0x5a3b4c(0x27a)]()+_0x5a3b4c(0x34f),_0x39d0f2=_0x20aaef[_0x5a3b4c(0x2cc)]((_0x5ce8bf,_0x4d7602)=>{const _0x134f3a=_0x5a3b4c;let {unitID:_0x5cdf54,objectID:_0x541537,objectType:_0x239838,actions:_0x2c3e9a}=_0x4d7602;return _0x5ce8bf[_0x5cdf54]||(_0x5ce8bf[_0x5cdf54]=Object['create'](null)),_0x5ce8bf[_0x5cdf54][_0x541537]||(_0x5ce8bf[_0x5cdf54][_0x541537]={'objectID':_0x541537,'objectType':_0x239838,'actions':[]}),_0x5ce8bf[_0x5cdf54][_0x541537]['actions'][_0x134f3a(0x46e)](..._0x2c3e9a),_0x5ce8bf;},Object[_0x5a3b4c(0x39d)](null)),_0x29d2c3=[];for(let _0x4f9bfe in _0x39d0f2)for(let _0x43d91a in _0x39d0f2[_0x4f9bfe]){let {actions:_0x190754,objectType:_0xe01cd0}=_0x39d0f2[_0x4f9bfe][_0x43d91a],_0xe51278=[...new Set(_0x190754)];_0x29d2c3[_0x5a3b4c(0x46e)]({'unitID':_0x4f9bfe,'objectID':_0x43d91a,'objectType':_0xe01cd0,'actions':_0xe51278});}return new _0x18cba4[(_0x5a3b4c(0xf6))](_0x5a3b4c(0x2f4),_0x5896dd,{'headers':_0x5234eb[_0x5a3b4c(0xff)],'withCredentials':_0x5234eb[_0x5a3b4c(0x25a)],'responseType':_0x5234eb[_0x5a3b4c(0x1f0)],'body':{'requests':_0x29d2c3}});}},{'distributeResult'(_0x3b6fe0,_0x505d39){let {objectActions:_0x1d39d6}=_0x3b6fe0;return _0x505d39['map'](_0x254d70=>{const _0x315e92=_0x2c10;let {unitID:_0x30d7db,objectID:_0x579895,actions:_0x24f2c3}=_0x254d70,_0x38a40b=_0x1d39d6['find'](_0x310f2e=>_0x310f2e[_0x315e92(0x154)]===_0x30d7db&&_0x310f2e[_0x315e92(0x46c)]===_0x579895);return{'config':_0x254d70,'result':{'actions':_0x24f2c3[_0x315e92(0x403)](_0x240d3c=>_0x38a40b==null?void 0x0:_0x38a40b[_0x315e92(0x3ab)][_0x315e92(0x3df)](_0xa9ef49=>_0xa9ef49[_0x315e92(0x1b6)]===_0x240d3c))['filter'](_0x1d554f=>!!_0x1d554f),'error':_0x3b6fe0[_0x315e92(0xd6)]}};});}})}));}['_getAPIPrefixPath'](){const _0x28c20a=_0x315216;let _0xea863d=this[_0x28c20a(0x1ed)]['getConfig'](_0x3a344c);return(_0xea863d==null?void 0x0:_0xea863d[_0x28c20a(0x2bc)])??_0x28c20a(0xf9);}async['create'](_0x3fdf56){const _0x2e4566=_0x315216;let _0x2c4150=this['_getAPIPrefixPath']()+'/'+_0x3fdf56[_0x2e4566(0x24f)]+_0x2e4566(0x2a2);return(await this[_0x2e4566(0x255)][_0x2e4566(0x178)](_0x2c4150,{'body':_0x3fdf56}))[_0x2e4566(0x3d5)][_0x2e4566(0x46c)]||'';}async[_0x315216(0x211)](_0x518e3c){const _0x1942ce=_0x315216;let _0x566fad=this[_0x1942ce(0x27a)]()+_0x1942ce(0x17e);return(await this[_0x1942ce(0x255)]['post'](_0x566fad,{'body':_0x518e3c}))[_0x1942ce(0x3d5)][_0x1942ce(0xb0)];}async[_0x315216(0x394)](_0x1ee8cf){const _0x33a302=_0x315216;var _0x5697ed;let _0x3fbb7a=this[_0x33a302(0x27a)]()+'/'+_0x1ee8cf[_0x33a302(0x24f)]+_0x33a302(0x140)+encodeURIComponent(_0x1ee8cf[_0x33a302(0x46c)]),_0x26ac6c=await this[_0x33a302(0x255)][_0x33a302(0x36f)](_0x3fbb7a,{'body':_0x1ee8cf});if((_0x26ac6c==null||(_0x5697ed=_0x26ac6c[_0x33a302(0x3d5)])==null||(_0x5697ed=_0x5697ed['error'])==null?void 0x0:_0x5697ed['code'])!==0x1)throw Error(_0x33a302(0x306));}async[_0x315216(0x257)](_0x23646d){const _0x402f52=_0x315216;let _0x232aa3=this[_0x402f52(0x27a)]()+'/'+_0x23646d[_0x402f52(0x24f)]+'/object/'+encodeURIComponent(_0x23646d[_0x402f52(0x46c)])+_0x402f52(0x2d6);return(await this[_0x402f52(0x255)]['post'](_0x232aa3,{'body':_0x23646d}))[_0x402f52(0x3d5)][_0x402f52(0x3ab)];}async[_0x315216(0x27e)](_0x378aab){const _0x2eb749=_0x315216;let _0x1f5310=this[_0x2eb749(0x27a)]()+_0x2eb749(0x34f);return(await this['_HTTPService']['post'](_0x1f5310,{'body':{'requests':_0x378aab}}))[_0x2eb749(0x3d5)][_0x2eb749(0x1cd)];}async[_0x315216(0x152)](_0x3a147a){const _0x27844c=_0x315216;let _0xb0a7e8=this['_getAPIPrefixPath']()+'/'+_0x3a147a[_0x27844c(0x24f)]+_0x27844c(0x128),_0x43bbd1=await this['_HTTPService']['post'](_0xb0a7e8,{'body':_0x3a147a});return{'roles':_0x43bbd1['body'][_0x27844c(0x461)],'actions':_0x43bbd1[_0x27844c(0x3d5)][_0x27844c(0x3ab)]};}async[_0x315216(0x234)](_0x3b0f12){const _0x14f90c=_0x315216;let _0x2bfeac=this[_0x14f90c(0x27a)]()+_0x14f90c(0x339);await this[_0x14f90c(0x255)]['delete'](_0x2bfeac,{'params':{'collaboratorID':_0x3b0f12[_0x14f90c(0x23d)],'objectID':_0x3b0f12[_0x14f90c(0x46c)],'unitID':_0x3b0f12['unitID']}});}async[_0x315216(0x2c4)](_0x8725e7){const _0x26441e=_0x315216;let _0xec0460=this[_0x26441e(0x27a)]()+_0x26441e(0x339);await this[_0x26441e(0x255)]['patch'](_0xec0460,{'body':_0x8725e7});}async[_0x315216(0x308)](_0x318063){const _0x494a12=_0x315216;let _0x508112=this[_0x494a12(0x27a)]()+'/collaborator';await this['_HTTPService']['post'](_0x508112,{'body':_0x318063});}async['listCollaborators'](_0x42f93b){const _0x2fba28=_0x315216;let _0x3fae2d=this[_0x2fba28(0x27a)]()+'/collaborator',_0x81afe6=await this['_HTTPService']['get'](_0x3fae2d,{'params':{'objectID':_0x42f93b['objectID'],'unitID':_0x42f93b[_0x2fba28(0x154)]}});return this['setCfgEnableObjInherit'](_0x81afe6['body'][_0x2fba28(0x26f)]??!0x1),_0x81afe6[_0x2fba28(0x3d5)][_0x2fba28(0x390)];}async[_0x315216(0x26a)](_0x3c2901){const _0x383aa2=_0x315216;let _0x4f03a1=this[_0x383aa2(0x27a)]()+_0x383aa2(0x339);await this[_0x383aa2(0x255)][_0x383aa2(0x36f)](_0x4f03a1,{'body':_0x3c2901});}['setCfgEnableObjInherit'](_0x5a5d88){const _0xd3e225=_0x315216;this[_0xd3e225(0x1fa)]=_0x5a5d88;}['getCfgEnableObjInherit'](){const _0x158b9f=_0x315216;return this[_0x158b9f(0x1fa)];}};_0x26c5f0=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4['HTTPService'])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['IConfigService']))],_0x26c5f0);function _0x1dd4fc(_0x541c9c){const _0x16b45c=_0x315216;return _0x541c9c instanceof Uint8Array||ArrayBuffer[_0x16b45c(0x35e)](_0x541c9c)&&_0x541c9c[_0x16b45c(0x3b5)][_0x16b45c(0x163)]===_0x16b45c(0x46a)&&'BYTES_PER_ELEMENT'in _0x541c9c&&_0x541c9c[_0x16b45c(0x3db)]===0x1;}let _0x2f2fa7=_0x2cc876=>_0x2cc876?'\x22'+_0x2cc876+'\x22\x20':'';function _0x3edc45(_0x459f47,_0x4b9fcd=''){const _0xaaa34a=_0x315216;if(typeof _0x459f47!='number')throw TypeError(_0x2f2fa7(_0x4b9fcd)+_0xaaa34a(0x335)+typeof _0x459f47);if(!Number[_0xaaa34a(0x21a)](_0x459f47)||_0x459f47<0x0)throw RangeError(_0x2f2fa7(_0x4b9fcd)+_0xaaa34a(0x286)+_0x459f47);return _0x459f47;}function _0x19408d(_0x29e86d,_0x2b608b,_0x456356=''){const _0x5c02d5=_0x315216;if(_0x1dd4fc(_0x29e86d)&&(_0x2b608b===void 0x0||_0x29e86d[_0x5c02d5(0x250)]===_0x2b608b))return _0x29e86d;_0x2b608b!==void 0x0&&_0x3edc45(_0x2b608b,_0x5c02d5(0x250));let _0x489fa1=_0x1dd4fc(_0x29e86d),_0x26e522=_0x2b608b===void 0x0?'':'\x20of\x20length\x20'+_0x2b608b,_0x5e416c=_0x489fa1?'length='+_0x29e86d[_0x5c02d5(0x250)]:_0x5c02d5(0x419)+typeof _0x29e86d,_0x2704de=_0x2f2fa7(_0x456356)+_0x5c02d5(0xbc)+_0x26e522+',\x20got\x20'+_0x5e416c;throw _0x489fa1?RangeError(_0x2704de):TypeError(_0x2704de);}function _0xda7b2(_0x14ac33){const _0x3f5b47=_0x315216;return new Uint32Array(_0x14ac33[_0x3f5b47(0x12b)],_0x14ac33[_0x3f5b47(0x293)],Math[_0x3f5b47(0x244)](_0x14ac33['byteLength']/0x4));}function _0x4fce4b(..._0xf0f3cc){const _0x3b9f0f=_0x315216;for(let _0x233cd1=0x0;_0x233cd1<_0xf0f3cc[_0x3b9f0f(0x250)];_0x233cd1++)_0xf0f3cc[_0x233cd1]['fill'](0x0);}let _0x558a35=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44;function _0x2ae8b0(_0x43498b){return _0x43498b<<0x18&0xff000000|_0x43498b<<0x8&0xff0000|_0x43498b>>>0x8&0xff00|_0x43498b>>>0x18&0xff;}function _0xe55cb4(_0x168ebf){const _0x487a7e=_0x315216;for(let _0x37ef61=0x0;_0x37ef61<_0x168ebf[_0x487a7e(0x250)];_0x37ef61++)_0x168ebf[_0x37ef61]=_0x2ae8b0(_0x168ebf[_0x37ef61]);return _0x168ebf;}let _0x430bce=_0x558a35?_0x20f4ea=>_0x20f4ea:_0xe55cb4;function _0x4bf143(_0x2a5a8b){const _0x5f3b70=_0x315216;if(typeof _0x2a5a8b!=_0x5f3b70(0xd5))throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x5f3b70(0x476)](_0x2a5a8b));}function _0x52bccf(_0x304908,_0x6bb8de){const _0x1463d0=_0x315216;return!_0x304908[_0x1463d0(0x41a)]||!_0x6bb8de[_0x1463d0(0x41a)]?!0x1:_0x304908[_0x1463d0(0x12b)]===_0x6bb8de['buffer']&&_0x304908['byteOffset']<_0x6bb8de[_0x1463d0(0x293)]+_0x6bb8de['byteLength']&&_0x6bb8de[_0x1463d0(0x293)]<_0x304908['byteOffset']+_0x304908[_0x1463d0(0x41a)];}function _0x49ac1c(_0x7da41d,_0x1b2baa){const _0x579645=_0x315216;if(_0x52bccf(_0x7da41d,_0x1b2baa)&&_0x7da41d[_0x579645(0x293)]<_0x1b2baa['byteOffset'])throw Error(_0x579645(0x3ce));}function _0x2dd4f9(..._0x14902b){const _0x4d3c9d=_0x315216;let _0x5d335e=0x0;for(let _0x568ad4=0x0;_0x568ad4<_0x14902b[_0x4d3c9d(0x250)];_0x568ad4++){let _0x5a66e2=_0x14902b[_0x568ad4];_0x19408d(_0x5a66e2),_0x5d335e+=_0x5a66e2[_0x4d3c9d(0x250)];}let _0x5b4226=new Uint8Array(_0x5d335e);for(let _0x3cbd9d=0x0,_0x327bfc=0x0;_0x3cbd9d<_0x14902b['length'];_0x3cbd9d++){let _0x4a608f=_0x14902b[_0x3cbd9d];_0x5b4226[_0x4d3c9d(0x232)](_0x4a608f,_0x327bfc),_0x327bfc+=_0x4a608f[_0x4d3c9d(0x250)];}return _0x5b4226;}let _0x293aa1=(_0x21d106,_0x1fb69a)=>{const _0x428fe7=_0x315216;function _0x3d8120(_0x1bb6ee,..._0x22a897){const _0x4b6aec=_0x2c10;if(_0x19408d(_0x1bb6ee,void 0x0,'key'),_0x21d106['nonceLength']!==void 0x0){let _0x1e5ce4=_0x22a897[0x0];_0x19408d(_0x1e5ce4,_0x21d106[_0x4b6aec(0x118)]?void 0x0:_0x21d106[_0x4b6aec(0x198)],_0x4b6aec(0x28d));}let _0x13858d=_0x21d106[_0x4b6aec(0x416)],_0x1a1524=_0x21d106[_0x4b6aec(0x198)]===void 0x0?0x0:0x1;if(!_0x21d106[_0x4b6aec(0x16b)]){for(let _0x543c6f=_0x1a1524;_0x543c6f<_0x22a897[_0x4b6aec(0x250)];_0x543c6f++)if(_0x1dd4fc(_0x22a897[_0x543c6f]))throw Error(_0x4b6aec(0x345));}_0x21d106[_0x4b6aec(0x16b)]&&_0x22a897[_0x1a1524]!==void 0x0&&_0x19408d(_0x22a897[_0x1a1524],void 0x0,'AAD');let _0x5447dd=_0x1fb69a(_0x1bb6ee,..._0x22a897),_0x3a7298=(_0x34f765,_0x3c793c)=>{const _0x1871bc=_0x4b6aec;if(_0x3c793c!==void 0x0){if(_0x34f765!==0x2)throw Error(_0x1871bc(0x47d));_0x19408d(_0x3c793c,void 0x0,_0x1871bc(0xdb));}},_0x34eebf=!0x1;return{'encrypt'(_0x789aef,_0x129397){const _0x15e4ad=_0x4b6aec;if(_0x34eebf)throw Error('cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce');return _0x34eebf=!0x0,_0x19408d(_0x789aef,void 0x0,_0x15e4ad(0x2a1)),_0x3a7298(_0x5447dd[_0x15e4ad(0xce)]['length'],_0x129397),_0x5447dd['encrypt'](_0x789aef,_0x129397);},'decrypt'(_0x43e058,_0x2e5697){const _0x5eba06=_0x4b6aec;if(_0x19408d(_0x43e058,void 0x0,_0x5eba06(0x2a1)),_0x13858d&&_0x43e058[_0x5eba06(0x250)]<_0x13858d)throw Error(_0x5eba06(0x11e)+_0x13858d);return _0x3a7298(_0x5447dd[_0x5eba06(0x176)][_0x5eba06(0x250)],_0x2e5697),_0x5447dd['decrypt'](_0x43e058,_0x2e5697);}};}return Object[_0x428fe7(0x3de)](_0x3d8120,_0x21d106),_0x3d8120;};function _0x22c370(_0x404296,_0xffd89,_0x146b2e=!0x0){const _0xc9dc88=_0x315216;if(_0xffd89===void 0x0)return new Uint8Array(_0x404296);if(_0x19408d(_0xffd89,_0x404296,_0xc9dc88(0xdb)),_0x146b2e&&!_0x212fd2(_0xffd89))throw Error(_0xc9dc88(0x3b2));return _0xffd89;}function _0x212fd2(_0xae6b93){const _0x4d7eb9=_0x315216;return _0xae6b93[_0x4d7eb9(0x293)]%0x4==0x0;}function _0x70eb6a(_0x20c493){const _0x40a373=_0x315216;return Uint8Array[_0x40a373(0x29a)](_0x19408d(_0x20c493));}function _0x59afa8(_0x10740b=0x20){const _0x1093cd=_0x315216;_0x3edc45(_0x10740b,_0x1093cd(0x134));let _0x5782f4=typeof globalThis==_0x1093cd(0x265)?globalThis['crypto']:null;if(typeof(_0x5782f4==null?void 0x0:_0x5782f4[_0x1093cd(0x38f)])!=_0x1093cd(0x246))throw Error(_0x1093cd(0x2cd));if(_0x10740b>0x10000)throw RangeError('\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20'+_0x10740b);return _0x5782f4[_0x1093cd(0x38f)](new Uint8Array(_0x10740b));}function _0x236875(_0x5dd9c3){const _0x1e8192=_0x315216;if(![0x10,0x18,0x20]['includes'](_0x5dd9c3[_0x1e8192(0x250)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x5dd9c3[_0x1e8192(0x250)]);}function _0x218f06(_0x1d1d88){return _0x1d1d88<<0x1^0x11b&-(_0x1d1d88>>0x7);}function _0x4906b7(_0x4d4ee7,_0x19d325){let _0x826e90=0x0;for(;_0x19d325>0x0;_0x19d325>>=0x1)_0x826e90^=_0x4d4ee7&-(_0x19d325&0x1),_0x4d4ee7=_0x218f06(_0x4d4ee7);return _0x826e90;}let _0x19fd20=((()=>{let _0x1bfc61=new Uint8Array(0x100);for(let _0x1a26b0=0x0,_0x8fcce7=0x1;_0x1a26b0<0x100;_0x1a26b0++,_0x8fcce7^=_0x218f06(_0x8fcce7))_0x1bfc61[_0x1a26b0]=_0x8fcce7;let _0x55f60f=new Uint8Array(0x100);_0x55f60f[0x0]=0x63;for(let _0x12d2f7=0x0;_0x12d2f7<0xff;_0x12d2f7++){let _0x31077d=_0x1bfc61[0xff-_0x12d2f7];_0x31077d|=_0x31077d<<0x8,_0x55f60f[_0x1bfc61[_0x12d2f7]]=(_0x31077d^_0x31077d>>0x4^_0x31077d>>0x5^_0x31077d>>0x6^_0x31077d>>0x7^0x63)&0xff;}return _0x4fce4b(_0x1bfc61),_0x55f60f;})()),_0x14796c=_0x19fd20[_0x315216(0x403)]((_0x100db8,_0x450d79)=>_0x19fd20[_0x315216(0x304)](_0x450d79)),_0x5e237d=_0x2bbf40=>_0x2bbf40<<0x18|_0x2bbf40>>>0x8,_0x571415=_0x4f14f0=>_0x4f14f0<<0x8|_0x4f14f0>>>0x18;function _0x38385c(_0x4c9017,_0x1c59f2){const _0xa57bfe=_0x315216;if(_0x4c9017['length']!==0x100)throw Error(_0xa57bfe(0x23f));let _0x3137cb=new Uint32Array(0x100)[_0xa57bfe(0x403)]((_0x4b5d37,_0xe49d09)=>_0x1c59f2(_0x4c9017[_0xe49d09])),_0x4fe794=_0x3137cb['map'](_0x571415),_0x526e32=_0x4fe794[_0xa57bfe(0x403)](_0x571415),_0x129ee4=_0x526e32[_0xa57bfe(0x403)](_0x571415),_0xaa6ddf=new Uint32Array(0x10000),_0x5775a6=new Uint32Array(0x10000),_0x5a8d9a=new Uint16Array(0x10000);for(let _0x3141d4=0x0;_0x3141d4<0x100;_0x3141d4++)for(let _0x34c8c0=0x0;_0x34c8c0<0x100;_0x34c8c0++){let _0x112c76=_0x3141d4*0x100+_0x34c8c0;_0xaa6ddf[_0x112c76]=_0x3137cb[_0x3141d4]^_0x4fe794[_0x34c8c0],_0x5775a6[_0x112c76]=_0x526e32[_0x3141d4]^_0x129ee4[_0x34c8c0],_0x5a8d9a[_0x112c76]=_0x4c9017[_0x3141d4]<<0x8|_0x4c9017[_0x34c8c0];}return{'sbox':_0x4c9017,'sbox2':_0x5a8d9a,'T0':_0x3137cb,'T1':_0x4fe794,'T2':_0x526e32,'T3':_0x129ee4,'T01':_0xaa6ddf,'T23':_0x5775a6};}let _0x475e9b=_0x38385c(_0x19fd20,_0x2077dc=>_0x4906b7(_0x2077dc,0x3)<<0x18|_0x2077dc<<0x10|_0x2077dc<<0x8|_0x4906b7(_0x2077dc,0x2)),_0x15efc8=_0x38385c(_0x14796c,_0xf30f65=>_0x4906b7(_0xf30f65,0xb)<<0x18|_0x4906b7(_0xf30f65,0xd)<<0x10|_0x4906b7(_0xf30f65,0x9)<<0x8|_0x4906b7(_0xf30f65,0xe)),_0x126857=((()=>{let _0x31724c=new Uint8Array(0x10);for(let _0x14fc08=0x0,_0x360013=0x1;_0x14fc08<0x10;_0x14fc08++,_0x360013=_0x218f06(_0x360013))_0x31724c[_0x14fc08]=_0x360013;return _0x31724c;})());function _0x267767(_0x338b9a){const _0x53e70c=_0x315216;_0x19408d(_0x338b9a);let _0x445860=_0x338b9a[_0x53e70c(0x250)];_0x236875(_0x338b9a);let {sbox2:_0xa3407}=_0x475e9b,_0x26671f=[];(!_0x558a35||!_0x212fd2(_0x338b9a))&&_0x26671f[_0x53e70c(0x46e)](_0x338b9a=_0x70eb6a(_0x338b9a));let _0x154c71=_0x430bce(_0xda7b2(_0x338b9a)),_0x4b61e9=_0x154c71[_0x53e70c(0x250)],_0x13ce4e=_0x1b5c39=>_0x234054(_0xa3407,_0x1b5c39,_0x1b5c39,_0x1b5c39,_0x1b5c39),_0x362b96=new Uint32Array(_0x445860+0x1c);_0x362b96[_0x53e70c(0x232)](_0x154c71);for(let _0x5925af=_0x4b61e9;_0x5925af<_0x362b96['length'];_0x5925af++){let _0x4c8230=_0x362b96[_0x5925af-0x1];_0x5925af%_0x4b61e9===0x0?_0x4c8230=_0x13ce4e(_0x5e237d(_0x4c8230))^_0x126857[_0x5925af/_0x4b61e9-0x1]:_0x4b61e9>0x6&&_0x5925af%_0x4b61e9===0x4&&(_0x4c8230=_0x13ce4e(_0x4c8230)),_0x362b96[_0x5925af]=_0x362b96[_0x5925af-_0x4b61e9]^_0x4c8230;}return _0x4fce4b(..._0x26671f),_0x362b96;}function _0x14b8de(_0x5f2b08){const _0x34fcf6=_0x315216;let _0x400897=_0x267767(_0x5f2b08),_0x5e9ef3=_0x400897['slice'](),_0x121a6b=_0x400897[_0x34fcf6(0x250)],{sbox2:_0x1a9850}=_0x475e9b,{T0:_0x54e2e9,T1:_0x36eb1a,T2:_0x5eb669,T3:_0x1c01be}=_0x15efc8;for(let _0x1394ca=0x0;_0x1394ca<_0x121a6b;_0x1394ca+=0x4)for(let _0x1ed687=0x0;_0x1ed687<0x4;_0x1ed687++)_0x5e9ef3[_0x1394ca+_0x1ed687]=_0x400897[_0x121a6b-_0x1394ca-0x4+_0x1ed687];_0x4fce4b(_0x400897);for(let _0x3abd69=0x4;_0x3abd69<_0x121a6b-0x4;_0x3abd69++){let _0x1d5b24=_0x5e9ef3[_0x3abd69],_0x471f9f=_0x234054(_0x1a9850,_0x1d5b24,_0x1d5b24,_0x1d5b24,_0x1d5b24);_0x5e9ef3[_0x3abd69]=_0x54e2e9[_0x471f9f&0xff]^_0x36eb1a[_0x471f9f>>>0x8&0xff]^_0x5eb669[_0x471f9f>>>0x10&0xff]^_0x1c01be[_0x471f9f>>>0x18];}return _0x5e9ef3;}function _0x3814a0(_0x56ad66,_0x464104,_0x3826c0,_0x3ad95a,_0x30278d,_0x11420d){return _0x56ad66[_0x3826c0<<0x8&0xff00|_0x3ad95a>>>0x8&0xff]^_0x464104[_0x30278d>>>0x8&0xff00|_0x11420d>>>0x18&0xff];}function _0x234054(_0x178334,_0x3714c6,_0x1db586,_0x27237a,_0x28ddbf){return _0x178334[_0x3714c6&0xff|_0x1db586&0xff00]|_0x178334[_0x27237a>>>0x10&0xff|_0x28ddbf>>>0x10&0xff00]<<0x10;}function _0x431705(_0x9a196e,_0x517c9f,_0x443821,_0x314296,_0x1bca62){const _0x30637c=_0x315216;let {sbox2:_0x5781d4,T01:_0x453818,T23:_0x53b47d}=_0x475e9b,_0x2b3da5=0x0;_0x517c9f^=_0x9a196e[_0x2b3da5++],_0x443821^=_0x9a196e[_0x2b3da5++],_0x314296^=_0x9a196e[_0x2b3da5++],_0x1bca62^=_0x9a196e[_0x2b3da5++];let _0x2e803d=_0x9a196e[_0x30637c(0x250)]/0x4-0x2;for(let _0x433f7e=0x0;_0x433f7e<_0x2e803d;_0x433f7e++){let _0x41f102=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x517c9f,_0x443821,_0x314296,_0x1bca62),_0x1e690e=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x443821,_0x314296,_0x1bca62,_0x517c9f),_0x444e97=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x314296,_0x1bca62,_0x517c9f,_0x443821),_0x4550be=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x1bca62,_0x517c9f,_0x443821,_0x314296);_0x517c9f=_0x41f102,_0x443821=_0x1e690e,_0x314296=_0x444e97,_0x1bca62=_0x4550be;}return{'s0':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x517c9f,_0x443821,_0x314296,_0x1bca62),'s1':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x443821,_0x314296,_0x1bca62,_0x517c9f),'s2':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x314296,_0x1bca62,_0x517c9f,_0x443821),'s3':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x1bca62,_0x517c9f,_0x443821,_0x314296)};}function _0x310254(_0x48c282,_0x457fe6,_0x179109,_0x435d95,_0x2368ef){const _0x2156b6=_0x315216;let {sbox2:_0x2fdc40,T01:_0x104988,T23:_0x2e07cf}=_0x15efc8,_0x498a3d=0x0;_0x457fe6^=_0x48c282[_0x498a3d++],_0x179109^=_0x48c282[_0x498a3d++],_0x435d95^=_0x48c282[_0x498a3d++],_0x2368ef^=_0x48c282[_0x498a3d++];let _0x15dd5b=_0x48c282[_0x2156b6(0x250)]/0x4-0x2;for(let _0x4466f1=0x0;_0x4466f1<_0x15dd5b;_0x4466f1++){let _0x3e3372=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x457fe6,_0x2368ef,_0x435d95,_0x179109),_0xab6926=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x179109,_0x457fe6,_0x2368ef,_0x435d95),_0xdab7e4=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x435d95,_0x179109,_0x457fe6,_0x2368ef),_0x5d1179=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x2368ef,_0x435d95,_0x179109,_0x457fe6);_0x457fe6=_0x3e3372,_0x179109=_0xab6926,_0x435d95=_0xdab7e4,_0x2368ef=_0x5d1179;}return{'s0':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x457fe6,_0x2368ef,_0x435d95,_0x179109),'s1':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x179109,_0x457fe6,_0x2368ef,_0x435d95),'s2':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x435d95,_0x179109,_0x457fe6,_0x2368ef),'s3':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x2368ef,_0x435d95,_0x179109,_0x457fe6)};}function _0x1c7ed6(_0x57ae1e,_0x2fdeba){const _0x26fd02=_0x315216;if(_0x19408d(_0x57ae1e),_0x57ae1e[_0x26fd02(0x250)]%0x10!=0x0)throw Error(_0x26fd02(0x356));_0x2fdeba!==void 0x0&&(_0x22c370(_0x57ae1e[_0x26fd02(0x250)],_0x2fdeba),_0x49ac1c(_0x57ae1e,_0x2fdeba));}function _0x5e4a48(_0x35cdb7,_0x5180e5,_0x42092b){const _0x324564=_0x315216;_0x19408d(_0x35cdb7);let _0xcd86b2=_0x35cdb7[_0x324564(0x250)],_0x3f7c5e=_0xcd86b2%0x10;if(!_0x5180e5&&_0x3f7c5e!==0x0)throw Error(_0x324564(0xbe));if(_0x5180e5){let _0x72d7d6=0x10-_0x3f7c5e;_0x72d7d6||=0x10,_0xcd86b2+=_0x72d7d6;}return _0x42092b!==void 0x0&&(_0x22c370(_0xcd86b2,_0x42092b),_0x49ac1c(_0x35cdb7,_0x42092b)),_0xcd86b2;}function _0x3e7174(_0x23e0c2,_0x378e23,_0x390362){_0x390362===void 0x0&&(_0x390362=new Uint8Array(_0x378e23)),(!_0x558a35||!_0x212fd2(_0x23e0c2))&&(_0x23e0c2=_0x70eb6a(_0x23e0c2));let _0x12b033=_0xda7b2(_0x390362);return{'b':_0x23e0c2,'o':_0x12b033,'out':_0x390362};}function _0x387d35(_0x2e2214,_0x2dd714){const _0x15d0c8=_0x315216;if(!_0x2dd714)return _0x2e2214;let _0x1646ab=_0x2e2214[_0x15d0c8(0x250)];if(_0x1646ab===0x0)throw Error(_0x15d0c8(0x1b0));let _0x1d573a=_0x2e2214[_0x1646ab-0x1],_0x46086c=0x1;_0x46086c&=_0x1d573a-0x1>>>0x1f^0x1,_0x46086c&=0x10-_0x1d573a>>>0x1f^0x1;for(let _0x400dfa=0x0;_0x400dfa<0x10;_0x400dfa++){let _0x3d4075=_0x400dfa-_0x1d573a>>>0x1f,_0x49a0d8=+((_0x2e2214[_0x1646ab-0x1-_0x400dfa]^_0x1d573a)===0x0);_0x46086c&=_0x49a0d8|_0x3d4075^0x1;}if(!_0x46086c)throw Error(_0x15d0c8(0x1e1));return _0x2e2214[_0x15d0c8(0x245)](0x0,_0x1646ab-_0x1d573a);}function _0x201441(_0x2367f6){const _0x274294=_0x315216;let _0xed50f=new Uint8Array(0x10),_0x444c7b=_0xda7b2(_0xed50f);_0xed50f[_0x274294(0x232)](_0x2367f6);let _0x433e84=0x10-_0x2367f6[_0x274294(0x250)];for(let _0x467f39=0x10-_0x433e84;_0x467f39<0x10;_0x467f39++)_0xed50f[_0x467f39]=_0x433e84;return _0x444c7b;}let _0x57f3f7=_0x293aa1({'blockSize':0x10,'nonceLength':0x10},function(_0x4a80d5,_0x168b04,_0x466aec={}){const _0x250446=_0x315216;let _0x30f50f=!_0x466aec[_0x250446(0x39c)];return{'encrypt'(_0x54a95a,_0x3f319e){const _0xcb64d=_0x250446;let _0x1caf31=_0x5e4a48(_0x54a95a,_0x30f50f,_0x3f319e),_0x13bdb3=_0x267767(_0x4a80d5),{b:_0x517598,o:_0xd55007,out:_0x37cc04}=_0x3e7174(_0x54a95a,_0x1caf31,_0x3f319e),_0xc33403=_0xda7b2(_0x517598);_0x430bce(_0xc33403);let _0x3d665d=_0x168b04,_0x22a61a=[_0x13bdb3];(!_0x558a35||!_0x212fd2(_0x3d665d))&&_0x22a61a['push'](_0x3d665d=_0x70eb6a(_0x3d665d));let _0x2d3de7=_0xda7b2(_0x3d665d);_0x430bce(_0x2d3de7);let _0x2fd527=_0x2d3de7[0x0],_0x37d638=_0x2d3de7[0x1],_0x30ba85=_0x2d3de7[0x2],_0x5162f7=_0x2d3de7[0x3],_0x2cf5d7=0x0;for(;_0x2cf5d7+0x4<=_0xc33403[_0xcb64d(0x250)];)_0x2fd527^=_0xc33403[_0x2cf5d7+0x0],_0x37d638^=_0xc33403[_0x2cf5d7+0x1],_0x30ba85^=_0xc33403[_0x2cf5d7+0x2],_0x5162f7^=_0xc33403[_0x2cf5d7+0x3],{s0:_0x2fd527,s1:_0x37d638,s2:_0x30ba85,s3:_0x5162f7}=_0x431705(_0x13bdb3,_0x2fd527,_0x37d638,_0x30ba85,_0x5162f7),_0xd55007[_0x2cf5d7++]=_0x2fd527,_0xd55007[_0x2cf5d7++]=_0x37d638,_0xd55007[_0x2cf5d7++]=_0x30ba85,_0xd55007[_0x2cf5d7++]=_0x5162f7;if(_0x30f50f){let _0x1aa192=_0x201441(_0x54a95a[_0xcb64d(0x245)](_0x2cf5d7*0x4));_0x430bce(_0x1aa192),_0x2fd527^=_0x1aa192[0x0],_0x37d638^=_0x1aa192[0x1],_0x30ba85^=_0x1aa192[0x2],_0x5162f7^=_0x1aa192[0x3],{s0:_0x2fd527,s1:_0x37d638,s2:_0x30ba85,s3:_0x5162f7}=_0x431705(_0x13bdb3,_0x2fd527,_0x37d638,_0x30ba85,_0x5162f7),_0xd55007[_0x2cf5d7++]=_0x2fd527,_0xd55007[_0x2cf5d7++]=_0x37d638,_0xd55007[_0x2cf5d7++]=_0x30ba85,_0xd55007[_0x2cf5d7++]=_0x5162f7,_0x4fce4b(_0x1aa192);}return _0x430bce(_0xd55007),_0x4fce4b(..._0x22a61a),_0x517598!==_0x54a95a&&_0x4fce4b(_0x517598),_0x37cc04;},'decrypt'(_0x41cc13,_0x14fd25){const _0x2fb131=_0x250446;_0x1c7ed6(_0x41cc13,_0x14fd25);let _0x439c5e=_0x14b8de(_0x4a80d5);_0x14fd25===void 0x0&&(_0x14fd25=new Uint8Array(_0x41cc13[_0x2fb131(0x250)]));let _0x2241f6=_0x168b04,_0x47ef26=[_0x439c5e];(!_0x558a35||!_0x212fd2(_0x2241f6))&&_0x47ef26[_0x2fb131(0x46e)](_0x2241f6=_0x70eb6a(_0x2241f6));let _0x5b45d3=_0xda7b2(_0x2241f6);_0x430bce(_0x5b45d3),(!_0x558a35||!_0x212fd2(_0x41cc13))&&_0x47ef26['push'](_0x41cc13=_0x70eb6a(_0x41cc13));let _0x46f23c=_0xda7b2(_0x41cc13),_0x35bfbe=_0xda7b2(_0x14fd25);_0x430bce(_0x46f23c);let _0x536e03=_0x5b45d3[0x0],_0x2b5a95=_0x5b45d3[0x1],_0x5edfbe=_0x5b45d3[0x2],_0x3eaa80=_0x5b45d3[0x3];for(let _0x5a37cf=0x0;_0x5a37cf+0x4<=_0x46f23c['length'];){let _0x50e760=_0x536e03,_0xcb7b8=_0x2b5a95,_0x5c7244=_0x5edfbe,_0x178c58=_0x3eaa80;_0x536e03=_0x46f23c[_0x5a37cf+0x0],_0x2b5a95=_0x46f23c[_0x5a37cf+0x1],_0x5edfbe=_0x46f23c[_0x5a37cf+0x2],_0x3eaa80=_0x46f23c[_0x5a37cf+0x3];let {s0:_0x48ff4c,s1:_0x247648,s2:_0x450596,s3:_0x4e084e}=_0x310254(_0x439c5e,_0x536e03,_0x2b5a95,_0x5edfbe,_0x3eaa80);_0x35bfbe[_0x5a37cf++]=_0x48ff4c^_0x50e760,_0x35bfbe[_0x5a37cf++]=_0x247648^_0xcb7b8,_0x35bfbe[_0x5a37cf++]=_0x450596^_0x5c7244,_0x35bfbe[_0x5a37cf++]=_0x4e084e^_0x178c58;}return _0x430bce(_0x35bfbe),_0x4fce4b(..._0x47ef26),_0x387d35(_0x14fd25,_0x30f50f);}};});function _0x326be3(_0x5e9421){const _0x3c501c=_0x315216;let _0x517c7c=atob(_0x5e9421),_0x60b1e7=new Uint8Array(_0x517c7c['length']);for(let _0xd937a8=0x0;_0xd937a8<_0x517c7c[_0x3c501c(0x250)];_0xd937a8++)_0x60b1e7[_0xd937a8]=_0x517c7c[_0x3c501c(0x3b7)](_0xd937a8);return _0x60b1e7;}function _0x207ea7(_0x374782){const _0x41fff6=_0x315216;let _0x4a58eb='';for(let _0x256282=0x0;_0x256282<_0x374782[_0x41fff6(0x250)];_0x256282++)_0x4a58eb+=String['fromCharCode'](_0x374782[_0x256282]);return btoa(_0x4a58eb);}function _0x5ab43a(_0x3a7db1,_0x11f357){const _0x3e8124=_0x315216;let _0xe3f842=_0x326be3(_0x11f357),_0x562d90=_0x59afa8(0x10);return _0x207ea7(_0x2dd4f9(_0x562d90,_0x57f3f7(_0xe3f842,_0x562d90)[_0x3e8124(0xce)](_0x4bf143(_0x3a7db1))));}function _0x4aaa18(){const _0x5f423c=_0x315216;let _0x229e04=(0x0,_0x35d7c3['getGlobalObject'])()[_0x5f423c(0x405)];if(typeof window<'u'&&window[_0x5f423c(0xcd)]!==void 0x0&&_0x229e04){let _0x216977={'time':Math[_0x5f423c(0x244)](Date['now']()/0x3e8),'domain':location[_0x5f423c(0x165)]};return _0x5ab43a(JSON[_0x5f423c(0x302)](_0x216977),_0x229e04);}}let _0x114505=class{constructor(_0x454377){const _0x500b66=_0x315216;this[_0x500b66(0xde)]=_0x454377,this[_0x500b66(0x36b)]();}['_initRequestHeader'](){const _0x3c879a=_0x315216;this[_0x3c879a(0xde)][_0x3c879a(0x1c1)]({'interceptor':(_0x4bb2a5,_0x31d8e8)=>{const _0x4ae850=_0x3c879a;let _0x4ed677=_0x4aaa18();return _0x4ed677&&_0x4bb2a5['headers'][_0x4ae850(0x232)](_0x4ae850(0xe2),_0x4ed677),_0x31d8e8(_0x4bb2a5);}});}};_0x114505=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)]))],_0x114505);let _0x4e5ab6=class extends _0x325f28[_0x315216(0x10c)]{constructor(_0x4303c0,_0x93d14c,_0x2f0426){const _0x33f2b8=_0x315216;super(),this['_logService']=_0x4303c0,this[_0x33f2b8(0x10f)]=_0x93d14c,this[_0x33f2b8(0x249)]=_0x2f0426,_0x4da1f9(this,_0x33f2b8(0x432),new _0x1fdbe2[(_0x33f2b8(0x1c7))](null)),_0x4da1f9(this,_0x33f2b8(0x2b9),new _0x1fdbe2['Subject']()),_0x4da1f9(this,'unitInfo$',this['_unitInfo$'][_0x33f2b8(0xf1)]()),_0x4da1f9(this,_0x33f2b8(0x23c),this[_0x33f2b8(0x2b9)][_0x33f2b8(0xf1)]());}[_0x315216(0x15a)](){const _0x1a379f=_0x315216;super[_0x1a379f(0x15a)](),this[_0x1a379f(0x2b9)][_0x1a379f(0x313)](),this[_0x1a379f(0x432)][_0x1a379f(0x313)]();}[_0x315216(0x2e6)](_0x3727bf,_0x4e6f19,_0x5ad3d0,_0x13ee13,_0x527897){return this['_loadUnit'](_0x3727bf,_0x4e6f19,_0x5ad3d0,_0x13ee13,_0x527897);}[_0x315216(0x1b7)](_0x1e8e1e,_0x218a35,_0x588ae9,_0x19ec81){return this['_loadUnit'](_0x1e8e1e,_0x218a35,void 0x0,_0x588ae9,_0x19ec81);}async[_0x315216(0x271)](_0x2ba25d,_0x3e2e1d,_0x50f923,_0x56664d,_0x374fcd){const _0x1609c2=_0x315216;this[_0x1609c2(0x432)][_0x1609c2(0x407)]({'unitId':_0x2ba25d,'type':_0x3e2e1d,'subUnitId':_0x56664d});let _0x18faeb=_0x50f923;if(_0x18faeb===void 0x0){var _0x20fc39;let _0xf20147=await((_0x20fc39=this[_0x1609c2(0x249)])==null?void 0x0:_0x20fc39[_0x1609c2(0x1ab)](_0x2ba25d));_0x18faeb=_0xf20147&&(_0xf20147[_0x1609c2(0x421)]||_0xf20147[_0x1609c2(0x383)]['length']!==0x0)?_0xf20147[_0x1609c2(0x13a)]:0x0,_0x18faeb===0x0&&this[_0x1609c2(0xb8)][_0x1609c2(0x3e5)](_0x1609c2(0x99),_0x1609c2(0x143));}return this[_0x1609c2(0x2ee)](_0x2ba25d,_0x3e2e1d,_0x18faeb,_0x56664d,_0x374fcd);}async[_0x315216(0x2ee)](_0x576db5,_0x57685c,_0x4e51ba,_0x13b830,_0x45b8d2){const _0x5eb528=_0x315216;let _0xe8fc10=null;switch(_0x57685c){case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x33b)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x1c2)](_0x576db5,_0x4e51ba,_0x45b8d2,{'initialSubUnitId':_0x13b830});break;case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x2a4)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x1f9)](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28[_0x5eb528(0x41f)]['UNIVER_SLIDE']:_0xe8fc10=await this[_0x5eb528(0x10f)]['loadSlide'](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x3a4)]:_0xe8fc10=await this[_0x5eb528(0x10f)]['loadBoard'](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28['UniverInstanceType'][_0x5eb528(0xc9)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x3f8)](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x45f)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x43f)](_0x576db5,_0x4e51ba,_0x45b8d2);break;default:this[_0x5eb528(0xb8)]['error']('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0xe8fc10&&this[_0x5eb528(0x2b9)][_0x5eb528(0x407)](_0xe8fc10),_0xe8fc10;}};_0x4e5ab6=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x2b0)])),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x4e5ab6);let _0x18c5f6=class{constructor(_0x55e397,_0x1fe691,_0x1284c1){const _0x5954cf=_0x315216;this[_0x5954cf(0xde)]=_0x55e397,this[_0x5954cf(0x1ed)]=_0x1fe691,this['_univerInstanceService']=_0x1284c1,_0x4da1f9(this,_0x5954cf(0x42d),0x0),_0x4da1f9(this,_0x5954cf(0x396),new _0x1fdbe2[(_0x5954cf(0x112))]()),_0x4da1f9(this,_0x5954cf(0x380),this[_0x5954cf(0x396)]),_0x4da1f9(this,_0x5954cf(0xa0),new Map());}[_0x315216(0xc4)](_0x21c8b3){const _0x56d17d=_0x315216;this[_0x56d17d(0x42d)]=_0x21c8b3,this[_0x56d17d(0x396)][_0x56d17d(0x407)](_0x21c8b3);}[_0x315216(0x1a5)](_0x544643,_0x4b404d){const _0x6afa51=_0x315216;if(_0x4b404d===_0x325f28[_0x6afa51(0x3f6)]['BASE64']){let _0x21a095=new Image();return _0x21a095['src']=_0x544643,_0x21a095;}return this['_imageSourceCache'][_0x6afa51(0x1df)](_0x544643);}[_0x315216(0x273)](_0x1c9f53,_0x24d543,_0x1951d8){const _0x36d33c=_0x315216;_0x24d543!==_0x325f28[_0x36d33c(0x3f6)][_0x36d33c(0x460)]&&_0x1951d8!=null&&this[_0x36d33c(0xa0)][_0x36d33c(0x232)](_0x1c9f53,_0x1951d8);}async[_0x315216(0x3a2)](_0x41a112){const _0x4f7280=_0x315216;try{let _0xedbcc8=this['_replaceFileID'](this['_getSignURL'](),''+_0x41a112),_0x21a222=(await this['_httpService'][_0x4f7280(0x1df)](_0xedbcc8))[_0x4f7280(0x3d5)];if(_0x21a222['error']&&_0x21a222['error'][_0x4f7280(0xdf)]===_0x483212[_0x4f7280(0x349)]['OK']){let _0x5789c8=(0x0,_0x325f28[_0x4f7280(0x1f1)])(_0x21a222['url'],this[_0x4f7280(0x298)]());return Promise['resolve'](_0x5789c8);}return Promise[_0x4f7280(0xf3)](_0x21a222[_0x4f7280(0xd6)]);}catch(_0x271b8f){return Promise[_0x4f7280(0xf3)](_0x271b8f);}}async[_0x315216(0x150)](_0x29f57d){const _0x39e911=_0x315216;let _0xc1978='';if(!_0x2115ce[_0x39e911(0xa2)][_0x39e911(0x3e1)](_0x29f57d[_0x39e911(0x438)]))return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)]['ERROR_IMAGE_TYPE']));if(_0x29f57d[_0x39e911(0x3e0)]>(0x0,_0x2115ce[_0x39e911(0x3fa)])())return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)]['ERROR_EXCEED_SIZE']));try{let _0x2f5eee=new FormData();_0x2f5eee[_0x39e911(0x2b1)](_0x39e911(0xe9),_0x29f57d);let _0x22ec9a=this[_0x39e911(0x23b)][_0x39e911(0x3ed)](),_0x2458c2=_0x22ec9a==null?void 0x0:_0x22ec9a['getUnitId']();if(!_0x2458c2)throw Error('unitId\x20is\x20not\x20found');let _0x1039e3=this['_getUploadFileURL']()+'?size='+_0x29f57d['size'][_0x39e911(0x3c8)]()+_0x39e911(0x136)+_0x483212[_0x39e911(0x2e8)]['UnitEmbedded']+_0x39e911(0x20f)+encodeURIComponent(_0x2458c2),_0x259620={'body':_0x2f5eee},_0x376efa=(await this['_httpService'][_0x39e911(0x178)](_0x1039e3,_0x259620))[_0x39e911(0x3d5)];if(typeof _0x376efa[_0x39e911(0x458)]!='string')return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)][_0x39e911(0xf8)]));_0xc1978=_0x376efa['FileId'];}catch{return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)][_0x39e911(0xf8)]));}return new Promise((_0x46b6fb,_0x3b70e4)=>{const _0x583c0d=_0x39e911;let _0x389a35=new FileReader();_0x389a35[_0x583c0d(0xaf)](_0x29f57d),_0x389a35[_0x583c0d(0x414)]=_0x4ab1ca=>{const _0x4de928=_0x583c0d;var _0x24e466;let _0x3bc4c2=(_0x24e466=_0x4ab1ca[_0x4de928(0x41c)])==null?void 0x0:_0x24e466[_0x4de928(0x123)];_0x3bc4c2==null?(this[_0x4de928(0x252)](),_0x3b70e4(Error(_0x325f28['ImageUploadStatusType']['ERROR_IMAGE']))):(_0x46b6fb({'imageId':(0x0,_0x325f28[_0x4de928(0x36d)])(0x6),'imageSourceType':_0x325f28[_0x4de928(0x3f6)][_0x4de928(0x439)],'source':_0xc1978,'base64Cache':_0x3bc4c2,'status':_0x325f28[_0x4de928(0xaa)]['SUCCUSS']}),this[_0x4de928(0x252)]());};});}['_getUploadFileURL'](){const _0x4344c5=_0x315216;let _0x5ec8ed=this[_0x4344c5(0x1ed)]['getConfig'](_0x3a344c);return(_0x5ec8ed==null?void 0x0:_0x5ec8ed[_0x4344c5(0x322)])??_0x4344c5(0x43a);}[_0x315216(0xed)](){const _0x3259f2=_0x315216;let _0x57ef78=this[_0x3259f2(0x1ed)][_0x3259f2(0x455)](_0x3a344c);return(_0x57ef78==null?void 0x0:_0x57ef78[_0x3259f2(0x18e)])??_0x3259f2(0x153);}[_0x315216(0x298)](){const _0x3f4a4c=_0x315216;let _0xe67c07=this[_0x3f4a4c(0x1ed)][_0x3f4a4c(0x455)](_0x3a344c);return(_0xe67c07==null?void 0x0:_0xe67c07[_0x3f4a4c(0x36a)])??location[_0x3f4a4c(0x2ad)];}[_0x315216(0x333)](_0x3abe38,_0x525c9f){const _0x169f8b=_0x315216;return _0x3abe38[_0x169f8b(0x3bd)]('{fileID}',_0x525c9f);}[_0x315216(0x252)](){const _0x36c38b=_0x315216;--this[_0x36c38b(0x42d)],this[_0x36c38b(0x396)][_0x36c38b(0x407)](this['_waitCount']);}};_0x18c5f6=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x18cba4['HTTPService'])),_0x557b04(0x1,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0xd2)]))],_0x18c5f6);let _0x37d84f=class{constructor(_0xe57ebe,_0x83f2b5){const _0x539372=_0x315216;this['_configService']=_0xe57ebe,this[_0x539372(0x255)]=_0x83f2b5;}[_0x315216(0x27a)](){const _0x1fecfc=_0x315216;let _0x2b7e76=this[_0x1fecfc(0x1ed)][_0x1fecfc(0x455)](_0x3a344c);return(_0x2b7e76==null?void 0x0:_0x2b7e76['authzUrl'])??_0x1fecfc(0xf9);}async[_0x315216(0x211)](_0x533235){const _0x59bbb5=_0x315216;let _0x37c235=this[_0x59bbb5(0x27a)]()+_0x59bbb5(0x339);return{'list':[{'title':_0x59bbb5(0x18a),'mentions':(await this[_0x59bbb5(0x255)][_0x59bbb5(0x1df)](_0x37c235,{'params':{'objectID':_0x533235['unitId'],'unitID':_0x533235[_0x59bbb5(0x352)]}}))[_0x59bbb5(0x3d5)][_0x59bbb5(0x390)][_0x59bbb5(0x403)](_0x109c82=>({'objectId':_0x109c82['id'],'name':_0x109c82[_0x59bbb5(0x2b5)][_0x59bbb5(0x163)],'metadata':{'icon':_0x109c82[_0x59bbb5(0x2b5)][_0x59bbb5(0x24c)]},'label':_0x109c82['subject'][_0x59bbb5(0x163)],'objectType':_0x325f28[_0x59bbb5(0x1ff)][_0x59bbb5(0x225)]})),'metadata':{},'type':_0x325f28[_0x59bbb5(0x1ff)][_0x59bbb5(0x225)]}]};}};_0x37d84f=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x1cf)])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4['HTTPService']))],_0x37d84f);let _0x484143=class extends _0x325f28[_0x315216(0x10c)]{constructor(_0x1f55ec,_0x22da6c,_0x4b0095,_0x10ad71,_0x4a8574,_0x10fce4){const _0x49aa98=_0x315216;super(),this[_0x49aa98(0xe7)]=_0x1f55ec,this[_0x49aa98(0x23b)]=_0x22da6c,this['_permissionService']=_0x4b0095,this[_0x49aa98(0x21d)]=_0x10ad71,this[_0x49aa98(0x19b)]=_0x4a8574,this[_0x49aa98(0x190)]=_0x10fce4,_0x4da1f9(this,_0x49aa98(0x24a),new Set()),this[_0x49aa98(0x41e)](()=>this['_closedUnits'][_0x49aa98(0x14e)]()),this['disposeWithMe'](_0x3bc91a(this[_0x49aa98(0x23b)])[_0x49aa98(0x28f)](({unitId:_0x47feac})=>this[_0x49aa98(0x24a)]['delete'](_0x47feac))),this['_initUnitPermissionChange'](),this[_0x49aa98(0x22f)](),[_0x325f28['UniverInstanceType'][_0x49aa98(0x2a4)],_0x325f28[_0x49aa98(0x41f)][_0x49aa98(0x1c3)],_0x325f28[_0x49aa98(0x41f)][_0x49aa98(0xc9)],_0x325f28['UniverInstanceType'][_0x49aa98(0x3a4)]][_0x49aa98(0x216)](_0x5cc962=>{const _0x38a02d=_0x49aa98;this[_0x38a02d(0x41e)](this[_0x38a02d(0x23b)]['getTypeOfUnitDisposed$'](_0x5cc962)[_0x38a02d(0x28f)](_0x3eb010=>{const _0x55725a=_0x38a02d;this[_0x55725a(0x24a)][_0x55725a(0xd9)](_0x3eb010['getUnitId']()),this[_0x55725a(0xe7)][_0x55725a(0x1df)](_0x325f28[_0x55725a(0x2ab)])[_0x55725a(0x222)](_0x3eb010[_0x55725a(0x119)]());}));});}[_0x315216(0x22f)](){const _0x10510a=_0x315216;let _0x5390d4=async(_0x44612d,_0x1daa62)=>{const _0x4b90b1=_0x2c10;let _0x5f5781=await this[_0x4b90b1(0x19b)]['requireSession'](_0x44612d);this[_0x4b90b1(0x43c)]||this[_0x4b90b1(0x24a)][_0x4b90b1(0xd1)](_0x44612d)||!this[_0x4b90b1(0x23b)]['getUnit'](_0x44612d)||_0x5f5781[_0x4b90b1(0x376)]['pipe']((0x0,_0xa8b74d[_0x4b90b1(0x22a)])(_0x355652=>_0x355652[_0x4b90b1(0x32e)]===_0x4524ba[_0x4b90b1(0x1d7)][_0x4b90b1(0x15e)]),(0x0,_0xa8b74d[_0x4b90b1(0xf5)])((0x0,_0x1fdbe2[_0x4b90b1(0x3f7)])(this[_0x4b90b1(0x42a)],this[_0x4b90b1(0x23b)]['unitDisposed$'][_0x4b90b1(0xa4)]((0x0,_0xa8b74d[_0x4b90b1(0x22a)])(_0x2a681d=>_0x2a681d['getUnitId']()===_0x44612d)))))[_0x4b90b1(0x28f)](_0x17d367=>{const _0x209d26=_0x4b90b1;let {reason:_0x39c697}=_0x17d367['data'];this[_0x209d26(0x190)]['emitEvent']({'id':_0x209d26(0x1bd),'data':_0x39c697}),this[_0x209d26(0x24a)][_0x209d26(0xd9)](_0x44612d),this[_0x209d26(0xe7)]['get'](_0x325f28['ObjectPermissionService'])[_0x209d26(0x222)](_0x44612d);let _0x3ea7bf=_0x11f2de(_0x1daa62);_0x3ea7bf!=null&&this[_0x209d26(0x1a3)](_0x44612d,_0x3ea7bf,_0x483212[_0x209d26(0x2ca)][_0x209d26(0x297)],!0x1),this[_0x209d26(0x19b)][_0x209d26(0x316)](_0x44612d);});};_0x3bc91a(this[_0x10510a(0x23b)])[_0x10510a(0xa4)]((0x0,_0xa8b74d[_0x10510a(0x22a)])(({unitId:_0x481ecc})=>!(0x0,_0x325f28['isInternalEditorID'])(_0x481ecc)),(0x0,_0xa8b74d[_0x10510a(0xf5)])(this[_0x10510a(0x42a)]))['subscribe'](({type:_0x52b96c,unitId:_0x29c30c})=>{const _0x36232c=_0x10510a;_0x5390d4(_0x29c30c,_0x52b96c)[_0x36232c(0x195)](_0x441be5=>this[_0x36232c(0xe7)]['get'](_0x325f28[_0x36232c(0x25d)])[_0x36232c(0xd6)](_0x441be5));});}[_0x315216(0x166)](){const _0x56ac8d=_0x315216;let _0x488edd=async(_0xf960f9,_0x34f52a)=>{const _0x169a7b=_0x2c10;let _0x12d0f3=await this['_collaborationSessionService']['requireSession'](_0xf960f9);if(!(this['_disposed']||this[_0x169a7b(0x24a)][_0x169a7b(0xd1)](_0xf960f9)||!this[_0x169a7b(0x23b)][_0x169a7b(0x33c)](_0xf960f9))){if(_0x34f52a===_0x325f28[_0x169a7b(0x41f)][_0x169a7b(0x33b)]){let _0x2e9d3a=this['_injector'][_0x169a7b(0x1df)](_0x29d3a5[_0x169a7b(0x3f0)]);await _0x2e9d3a[_0x169a7b(0x12c)](_0xf960f9),_0x12d0f3[_0x169a7b(0x376)][_0x169a7b(0xa4)]((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x57836c=>_0x57836c[_0x169a7b(0x32e)]===_0x4524ba[_0x169a7b(0x1d7)][_0x169a7b(0x1ce)]),(0x0,_0xa8b74d['takeUntil'])((0x0,_0x1fdbe2['merge'])(this[_0x169a7b(0x42a)],_0x12d0f3[_0x169a7b(0x376)][_0x169a7b(0xa4)]((0x0,_0xa8b74d['filter'])(_0x950e92=>_0x950e92[_0x169a7b(0x32e)]===_0x4524ba[_0x169a7b(0x1d7)][_0x169a7b(0x15e)])),this[_0x169a7b(0x23b)][_0x169a7b(0x360)][_0x169a7b(0xa4)]((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x36c4db=>_0x36c4db[_0x169a7b(0x119)]()===_0xf960f9)))))['subscribe'](_0x1d6ff8=>{const _0x5b174c=_0x169a7b;let {objectId:_0x1d2dc2}=_0x1d6ff8[_0x5b174c(0x2a1)];_0x1d2dc2===_0xf960f9?_0x2e9d3a[_0x5b174c(0x12c)](_0xf960f9):_0x2e9d3a[_0x5b174c(0x450)](_0xf960f9,_0x1d2dc2);});}else _0x12d0f3[_0x169a7b(0x376)]['pipe']((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x40cfe4=>_0x40cfe4[_0x169a7b(0x32e)]===_0x4524ba['CollaborationEvent'][_0x169a7b(0x1ce)]),(0x0,_0xa8b74d[_0x169a7b(0xf5)])((0x0,_0x1fdbe2[_0x169a7b(0x3f7)])(this[_0x169a7b(0x42a)],_0x12d0f3[_0x169a7b(0x376)][_0x169a7b(0xa4)]((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x40cd2f=>_0x40cd2f[_0x169a7b(0x32e)]===_0x4524ba['CollaborationEvent'][_0x169a7b(0x15e)])),this['_univerInstanceService']['unitDisposed$']['pipe']((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x50cdc8=>_0x50cdc8['getUnitId']()===_0xf960f9)))))['subscribe'](()=>{const _0x5b2d53=_0x169a7b;this[_0x5b2d53(0x2fc)](_0xf960f9,_0x34f52a)['catch'](_0x484847=>this[_0x5b2d53(0xe7)]['get'](_0x325f28[_0x5b2d53(0x25d)])[_0x5b2d53(0xd6)](_0x484847));}),await this['_refreshUnitPermission'](_0xf960f9,_0x34f52a);}};_0x3bc91a(this[_0x56ac8d(0x23b)])[_0x56ac8d(0xa4)]((0x0,_0xa8b74d[_0x56ac8d(0x22a)])(({unitId:_0x8c60ac})=>!(0x0,_0x325f28[_0x56ac8d(0x453)])(_0x8c60ac)),(0x0,_0xa8b74d['takeUntil'])(this[_0x56ac8d(0x42a)]))[_0x56ac8d(0x28f)](({type:_0x285ffb,unitId:_0x34239c})=>{const _0xac0cd4=_0x56ac8d;_0x488edd(_0x34239c,_0x285ffb)[_0xac0cd4(0x195)](_0x4147a5=>this[_0xac0cd4(0xe7)][_0xac0cd4(0x1df)](_0x325f28[_0xac0cd4(0x25d)])[_0xac0cd4(0xd6)](_0x4147a5));});}async['_refreshUnitPermission'](_0x2510ed,_0x110c60){const _0x4a77d7=_0x315216;let _0x2dee13=_0x11f2de(_0x110c60);if(_0x2dee13==null)return;let _0x175368=this[_0x4a77d7(0xe7)][_0x4a77d7(0x1df)](_0x325f28[_0x4a77d7(0x2ab)]);if(_0x175368[_0x4a77d7(0x36c)]({'unitId':_0x2510ed,'objectId':_0x2510ed,'objectType':_0x2dee13})){await _0x175368[_0x4a77d7(0x11d)](_0x2510ed);return;}let _0x3e2b43=this[_0x4a77d7(0xc8)](_0x2510ed,_0x2dee13);if(!_0x3e2b43['length'])return;let _0xba8e2=await this[_0x4a77d7(0x21d)]['allowed']({'objectID':_0x2510ed,'objectType':_0x2dee13,'unitID':_0x2510ed,'actions':_0x3e2b43[_0x4a77d7(0x403)](({action:_0x346bd9})=>_0x346bd9)});this[_0x4a77d7(0x43c)]||this[_0x4a77d7(0x24a)]['has'](_0x2510ed)||!this[_0x4a77d7(0x23b)]['getUnit'](_0x2510ed)||_0xba8e2['forEach'](_0x3762be=>{const _0x4c8297=_0x4a77d7;let _0x41dc31=_0x3762be['action'],_0x4bb933=_0x3762be['allowed'];_0x41dc31!=null&&_0x4bb933!=null&&_0x3e2b43[_0x4c8297(0x22a)](_0x3d9059=>_0x3d9059['action']===_0x41dc31)[_0x4c8297(0x216)](_0x3f8346=>this[_0x4c8297(0x1bf)][_0x4c8297(0x26c)](_0x3f8346['id'],_0x4bb933));});}[_0x315216(0xc8)](_0x2eabbf,_0x4662fb){const _0x34a274=_0x315216;let _0x4a6f90=[];return this[_0x34a274(0x1bf)][_0x34a274(0x393)]()['forEach']((_0x27ae55,_0x3116e6)=>{_0x27ae55['subscribe'](_0x16d7ce=>{const _0x42b6a3=_0x2c10;_0x16d7ce[_0x42b6a3(0x438)]===_0x4662fb&&_0x42b6a3(0x352)in _0x16d7ce&&_0x16d7ce[_0x42b6a3(0x352)]===_0x2eabbf&&(!('objectId'in _0x16d7ce)||_0x16d7ce[_0x42b6a3(0x338)]===_0x2eabbf)&&_0x4a6f90[_0x42b6a3(0x46e)]({'id':_0x3116e6,'action':_0x16d7ce['subType']});})['unsubscribe']();}),_0x4a6f90;}[_0x315216(0x1a3)](_0x35533a,_0x32b191,_0x2326a1,_0x21c91b){const _0x3448dd=_0x315216;this['_permissionService'][_0x3448dd(0x393)]()[_0x3448dd(0x216)]((_0x360026,_0x448439)=>{const _0x56dde2=_0x3448dd;let _0x321c08=!0x1;_0x360026[_0x56dde2(0x28f)](_0x2547ee=>{const _0x537cec=_0x56dde2;_0x321c08=_0x2547ee[_0x537cec(0x438)]===_0x32b191&&_0x2547ee[_0x537cec(0x35b)]===_0x2326a1&&_0x537cec(0x352)in _0x2547ee&&_0x2547ee['unitId']===_0x35533a&&(!(_0x537cec(0x338)in _0x2547ee)||_0x2547ee[_0x537cec(0x338)]===_0x35533a);})[_0x56dde2(0x223)](),_0x321c08&&this[_0x56dde2(0x1bf)]['updatePermissionPoint'](_0x448439,_0x21c91b);});}};_0x484143=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,_0x325f28['IUniverInstanceService']),_0x557b04(0x2,_0x325f28[_0x315216(0x43e)]),_0x557b04(0x3,_0x325f28['IAuthzIoService']),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x2c8ade)),_0x557b04(0x5,(0x0,_0x325f28['Inject'])(_0x11f58a))],_0x484143);function _0x3bc91a(_0x404b02){const _0x534ddf=_0x315216;return(0x0,_0x1fdbe2[_0x534ddf(0x3f7)])(...[_0x325f28[_0x534ddf(0x41f)][_0x534ddf(0x33b)],_0x325f28[_0x534ddf(0x41f)][_0x534ddf(0x2a4)],_0x325f28[_0x534ddf(0x41f)][_0x534ddf(0x1c3)],_0x325f28[_0x534ddf(0x41f)]['UNIVER_BOARD'],_0x325f28[_0x534ddf(0x41f)]['UNIVER_BASE']][_0x534ddf(0x403)](_0x465bf7=>_0x404b02[_0x534ddf(0x2cb)](_0x465bf7)['pipe']((0x0,_0xa8b74d[_0x534ddf(0x403)])(_0x562484=>({'type':_0x465bf7,'unitId':_0x562484['unit']['getUnitId']()})))));}function _0x11f2de(_0xbe9c7a){const _0x586250=_0x315216;switch(_0xbe9c7a){case _0x325f28['UniverInstanceType'][_0x586250(0x33b)]:return _0x483212[_0x586250(0x22c)][_0x586250(0x199)];case _0x325f28['UniverInstanceType']['UNIVER_DOC']:return _0x483212[_0x586250(0x22c)][_0x586250(0x2b4)];case _0x325f28[_0x586250(0x41f)]['UNIVER_SLIDE']:return _0x483212['UnitObject'][_0x586250(0x168)];case _0x325f28[_0x586250(0x41f)][_0x586250(0x3a4)]:return _0x483212[_0x586250(0x22c)][_0x586250(0x2ce)];case _0x325f28[_0x586250(0x41f)][_0x586250(0xc9)]:return _0x483212[_0x586250(0x22c)]['Base'];default:return;}}let _0x4241ec=class{constructor(_0x1d7511,_0x250a06){const _0x4cd673=_0x315216;this[_0x4cd673(0x1ed)]=_0x1d7511,this[_0x4cd673(0xde)]=_0x250a06;}async[_0x315216(0x268)](_0x4903a8,_0x1fd9d6){const _0x30b63c=_0x315216;var _0x5877d1;let {unitID:_0x49da11,type:_0x1c5211,revision:_0x458047=0x0}=_0x1fd9d6,_0xdd6f3a=this[_0x30b63c(0x32d)]()+'/'+_0x1c5211+_0x30b63c(0x172)+_0x49da11+_0x30b63c(0x3fd)+_0x458047,_0x7d3dcd=(await this['_httpService'][_0x30b63c(0x1df)](_0xdd6f3a))[_0x30b63c(0x3d5)],_0x3262dc=(_0x5877d1=_0x7d3dcd[_0x30b63c(0x2a0)])==null?void 0x0:_0x5877d1[_0x30b63c(0x3e9)];if(_0x3262dc){let _0x4c9d8b=_0x3262dc==null?void 0x0:_0x3262dc['originalMeta'];_0x3262dc[_0x30b63c(0x444)]=_0x4524ba[_0x30b63c(0x105)][_0x30b63c(0x476)]((0x0,_0x4524ba[_0x30b63c(0xfd)])(_0x4c9d8b)),Object['entries'](_0x3262dc['sheets'])[_0x30b63c(0x216)](([,_0x1de8f9])=>{const _0x3ef606=_0x30b63c;let _0x356688=_0x1de8f9[_0x3ef606(0x444)];_0x1de8f9['originalMeta']=_0x4524ba[_0x3ef606(0x105)]['encode']((0x0,_0x4524ba['b64DecodeUnicode'])(_0x356688));});}return _0x7d3dcd;}async[_0x315216(0x35d)](_0x9bdf55,_0x4b1a6c){const _0x1fa5bf=_0x315216;let {unitID:_0x39951b,type:_0x401af9,blockID:_0x2555a8}=_0x4b1a6c,_0x10da04=this[_0x1fa5bf(0x121)]()+'/'+_0x401af9+_0x1fa5bf(0x172)+_0x39951b+_0x1fa5bf(0x47a)+_0x2555a8;return(await this[_0x1fa5bf(0xde)]['get'](_0x10da04))[_0x1fa5bf(0x3d5)];}async[_0x315216(0x2b6)](_0xa0760a,_0x2a1986){const _0x22ebd4=_0x315216;let {unitID:_0x9d889f,type:_0x535850,blockID:_0x73b702}=_0x2a1986,_0xe59188=this[_0x22ebd4(0x121)]()+'/block/'+_0x535850+_0x22ebd4(0x172)+_0x9d889f+'/block/'+_0x73b702;return(await this[_0x22ebd4(0xde)][_0x22ebd4(0x1df)](_0xe59188))['body'];}async['fetchMissingChangesets'](_0x229401,_0xd91083){const _0x2fe11e=_0x315216;let {unitID:_0x3ff518,type:_0x421041,from:_0x488516,to:_0x7ae142}=_0xd91083,_0x4fdc4b=this[_0x2fe11e(0x121)]()+'/'+_0x421041+_0x2fe11e(0x172)+_0x3ff518+_0x2fe11e(0x37e)+_0x488516+_0x2fe11e(0x116)+_0x7ae142;return(await this['_httpService'][_0x2fe11e(0x1df)](_0x4fdc4b))[_0x2fe11e(0x3d5)];}['getSnapshotAPIPath'](){const _0x379aaa=_0x315216;return this[_0x379aaa(0x1ed)][_0x379aaa(0x455)](_0x379aaa(0x31c))??this[_0x379aaa(0x121)]();}[_0x315216(0x121)](){const _0x160af0=_0x315216;let _0x3d9ff4=this[_0x160af0(0x1ed)]['getConfig'](_0x3a344c);return(_0x3d9ff4==null?void 0x0:_0x3d9ff4[_0x160af0(0x282)])??_0x160af0(0xe6);}async[_0x315216(0x263)](_0x1ceeff,_0x5d9a6f){const _0x5a5647=_0x315216;let _0x3b5bad=_0x5a5647(0xba)+_0x5d9a6f[_0x5a5647(0x438)]+'/unit/'+_0x5d9a6f[_0x5a5647(0x154)]+'/resources';return(await this[_0x5a5647(0xde)][_0x5a5647(0x1df)](_0x3b5bad,{'params':{'resourceId':JSON[_0x5a5647(0x302)](_0x5d9a6f[_0x5a5647(0xac)])}}))[_0x5a5647(0x3d5)];}[_0x315216(0x285)](){const _0x48af49=_0x315216;throw Error(_0x48af49(0x210));}['updateSnapshot'](){const _0x5bc758=_0x315216;throw Error(_0x5bc758(0x210));}[_0x315216(0x37b)](){const _0x18aa18=_0x315216;throw Error(_0x18aa18(0x210));}['saveChangeset'](){const _0x1ae383=_0x315216;throw Error(_0x1ae383(0x210));}['copyFileMeta'](){const _0x565db7=_0x315216;throw Error(_0x565db7(0x210));}[_0x315216(0x135)](){const _0xc24761=_0x315216;throw Error(_0xc24761(0x210));}};_0x4241ec=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)]))],_0x4241ec);let _0x19d53d=class extends _0x325f28[_0x315216(0x377)]{constructor(_0x52de08,_0x52f72a,_0x185e26,_0x3c7b57,_0x15d3c5,_0xc937a2){const _0x63f06a=_0x315216;super(_0x52de08,_0x52f72a,_0x185e26,_0x3c7b57),this['_transformService']=_0x15d3c5,this[_0x63f06a(0xb8)]=_0xc937a2;}[_0x315216(0x474)](_0x577a7e,_0x398e11){const _0x3410e8=_0x315216;let _0x27570f=this[_0x3410e8(0x12a)](_0x577a7e);if(_0x27570f)try{let _0x189186=this[_0x3410e8(0x13b)](_0x27570f,_0x398e11);this[_0x3410e8(0x1de)](_0x577a7e,_0x189186);}catch(_0x3aa08e){this[_0x3410e8(0xb8)][_0x3410e8(0xd6)](_0x3410e8(0x20d),_0x3aa08e),this[_0x3410e8(0x20a)](_0x577a7e);}let _0x2dabe1=this[_0x3410e8(0x2a6)](_0x577a7e);if(_0x2dabe1)try{let _0x41a0b7=this[_0x3410e8(0x13b)](_0x2dabe1,_0x398e11,!0x0);this[_0x3410e8(0x3d1)](_0x577a7e,_0x41a0b7);}catch(_0x21e4c6){this['_logService'][_0x3410e8(0xd6)](_0x21e4c6),this['_clearRedo'](_0x577a7e);}}[_0x315216(0x20a)](_0xb9afdf){const _0x585aef=_0x315216;let _0x23615d=this[_0x585aef(0x12a)](_0xb9afdf);_0x23615d&&(_0x23615d[_0x585aef(0x250)]=0x0,this[_0x585aef(0x3d7)]());}['_clearRedo'](_0xe6c817){const _0x31f6f9=_0x315216;let _0x150d3a=this[_0x31f6f9(0x2a6)](_0xe6c817);_0x150d3a&&(_0x150d3a[_0x31f6f9(0x250)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x3a3081,_0xa5575a){const _0x2d0400=_0x315216;this['_undoStacks'][_0x2d0400(0x232)](_0x3a3081,_0xa5575a),this['_updateStatus']();}['_substituteRedoStack'](_0x5ef62f,_0xbdb3d8){const _0x4c3eb1=_0x315216;this[_0x4c3eb1(0x3f9)]['set'](_0x5ef62f,_0xbdb3d8),this['_updateStatus']();}[_0x315216(0x13b)](_0x5a7c77,_0x568ef1,_0x52a439=!0x1){const _0x588334=_0x315216;if(!_0x5a7c77[_0x588334(0x250)])return[];let _0x42d216=[],_0x551a94=_0x568ef1,_0x185242=_0x568ef1[_0x588334(0x438)]===_0x325f28[_0x588334(0x41f)][_0x588334(0x2a4)]?this[_0x588334(0x23b)][_0x588334(0x33c)](_0x568ef1[_0x588334(0x154)],_0x325f28[_0x588334(0x41f)][_0x588334(0x2a4)]):null,_0x360ffd=_0x185242?{'id':_0x185242['getUnitId'](),'documentStyle':{},'tableSource':_0x325f28[_0x588334(0x261)][_0x588334(0x209)](_0x185242[_0x588334(0x305)]()[_0x588334(0x426)]??{})}:null;for(let _0x425dfe=_0x5a7c77[_0x588334(0x250)]-0x1;_0x425dfe>=0x0;_0x425dfe--){let {unitID:_0x120c2f,undoMutations:_0x1d68a3,redoMutations:_0x30d75b}=_0x5a7c77[_0x425dfe],_0x513e74=_0x52a439?_0x30d75b:_0x1d68a3,_0x53ba7d=this[_0x588334(0x101)](_0x551a94,_0x513e74);if((0x0,_0x4524ba[_0x588334(0x483)])(_0x53ba7d)){this['_logService'][_0x588334(0xd6)](_0x588334(0x20d),_0x588334(0x1f7),_0x53ba7d);break;}let _0x12f450=_0x52a439?_0x1d68a3:_0x30d75b,_0x4c8985=this[_0x588334(0x101)](_0x53ba7d[_0x588334(0x167)],_0x12f450);if((0x0,_0x4524ba['isTransformMutationsWithChangesetFailure'])(_0x4c8985)){this[_0x588334(0xb8)]['error'](_0x588334(0x20d),_0x588334(0x1f7),_0x4c8985);break;}let _0x56590b=_0x52a439?_0x4c8985:_0x53ba7d,_0x264e46=_0x52a439?_0x53ba7d:_0x4c8985;_0x551a94=_0x53ba7d[_0x588334(0x167)],_0x360ffd&&=this[_0x588334(0x13d)](_0x360ffd,_0x53ba7d['m2Prime'],_0x4c8985[_0x588334(0xb7)]),_0x42d216[_0x588334(0x46e)]({'unitID':_0x120c2f,'undoMutations':_0x56590b[_0x588334(0xb7)],'redoMutations':_0x264e46[_0x588334(0xb7)]});}return _0x42d216[_0x588334(0x29d)]();}[_0x315216(0x101)](_0xbca9fb,_0x4bd7e5){const _0x496cc4=_0x315216;if(_0xbca9fb['type']!==_0x325f28[_0x496cc4(0x41f)]['UNIVER_DOC']||_0x4bd7e5[_0x496cc4(0x142)](_0x2f4708=>_0x2f4708['id']!==_0x285e73[_0x496cc4(0x1fb)]['id']))return this[_0x496cc4(0x466)][_0x496cc4(0x425)](_0xbca9fb,_0x4bd7e5);let _0x3a993b=_0x325f28['Tools'][_0x496cc4(0x209)](_0x4bd7e5),_0x4d1a14=[];for(let _0x59b172 of _0xbca9fb[_0x496cc4(0x383)]){let _0x4eacf1={..._0xbca9fb,'mutations':[_0x59b172]},_0x22bc75=[];for(let _0x32251a of _0x3a993b){_0x4eacf1=this[_0x496cc4(0x410)](_0x4eacf1,[_0x32251a]);let _0x2eef6c=this['_transformService'][_0x496cc4(0x425)](_0x4eacf1,[_0x32251a]);if((0x0,_0x4524ba[_0x496cc4(0x483)])(_0x2eef6c))return _0x2eef6c;_0x4eacf1=_0x2eef6c['c1Prime'],_0x22bc75[_0x496cc4(0x46e)](..._0x2eef6c[_0x496cc4(0xb7)]);}_0x3a993b=_0x22bc75,_0x4d1a14['push'](..._0x4eacf1[_0x496cc4(0x383)]);}return{'m2Prime':_0x3a993b,'c1Prime':{..._0xbca9fb,'mutations':_0x4d1a14}};}[_0x315216(0x410)](_0x20e058,_0x44ce9c){const _0xb5c1af=_0x315216;let _0x111b7b=new Map(),_0x2eb194=_0x325f28[_0xb5c1af(0x2a3)][_0xb5c1af(0x438)][_0xb5c1af(0x3ec)](_0x44ce9c[0x0][_0xb5c1af(0x296)][_0xb5c1af(0x3ab)]);if(_0x2eb194[_0xb5c1af(0x27c)](null,_0x156476=>{const _0x2db689=_0xb5c1af;if(_0x156476['et']!=='text-x')return;let _0x4d57ab=JSON['stringify'](_0x2eb194[_0x2db689(0x41b)]()),_0x3cd735=_0x111b7b[_0x2db689(0x1df)](_0x4d57ab)??new Map(),_0x4a684=0x0;for(let _0x16ed92 of _0x156476['e']){if(_0x16ed92['t']===_0x325f28[_0x2db689(0x1d9)][_0x2db689(0x1a1)]){var _0x411a22;for(let _0x2cf02c of((_0x411a22=_0x16ed92[_0x2db689(0x3d5)])==null?void 0x0:_0x411a22['paragraphs'])??[])_0x3cd735['set'](_0x4a684+_0x2cf02c[_0x2db689(0x1b2)],{'paragraph':_0x2cf02c,'replace':_0x16ed92[_0x2db689(0x477)]===_0x325f28['UpdateDocsAttributeType'][_0x2db689(0x25e)]});}_0x16ed92['t']!==_0x325f28[_0x2db689(0x1d9)][_0x2db689(0x157)]&&(_0x4a684+=_0x16ed92[_0x2db689(0x19e)]);}_0x3cd735['size']>0x0&&_0x111b7b[_0x2db689(0x232)](_0x4d57ab,_0x3cd735);}),_0x111b7b['size']===0x0)return _0x20e058;let _0x76688e=_0x325f28[_0xb5c1af(0x261)][_0xb5c1af(0x209)](_0x20e058);for(let _0x4704c7 of _0x76688e[_0xb5c1af(0x383)]){if(_0x4704c7['id']!==_0x285e73[_0xb5c1af(0x1fb)]['id'])continue;let _0x30b355=_0x325f28[_0xb5c1af(0x2a3)][_0xb5c1af(0x438)][_0xb5c1af(0x3ec)](_0x4704c7[_0xb5c1af(0x296)][_0xb5c1af(0x3ab)]);_0x30b355['traverse'](null,_0x1b0884=>{const _0x560bef=_0xb5c1af;if(_0x1b0884['et']!==_0x560bef(0x300))return;let _0x4919a4=JSON[_0x560bef(0x302)](_0x30b355[_0x560bef(0x41b)]()),_0x89b4c0=_0x111b7b[_0x560bef(0x1df)](_0x4919a4);if(!(_0x89b4c0!=null&&_0x89b4c0[_0x560bef(0x3e0)]))return;let _0x29316a=0x0;for(let _0x4813e6 of _0x1b0884['e']){if(_0x4813e6['t']===_0x325f28[_0x560bef(0x1d9)]['RETAIN']&&_0x4813e6[_0x560bef(0x477)]===_0x325f28[_0x560bef(0xd7)][_0x560bef(0x25e)]){var _0x258535;for(let _0x1eb2bb of((_0x258535=_0x4813e6[_0x560bef(0x3d5)])==null?void 0x0:_0x258535['paragraphs'])??[]){var _0x517210;let _0x3223b9=(_0x517210=_0x4813e6[_0x560bef(0x3ff)])==null||(_0x517210=_0x517210[_0x560bef(0xad)])==null?void 0x0:_0x517210[_0x560bef(0x3df)](_0x30ed2b=>_0x30ed2b[_0x560bef(0x1b2)]===_0x1eb2bb[_0x560bef(0x1b2)]),_0x1f4f10=_0x89b4c0['get'](_0x29316a+_0x1eb2bb['startIndex']);if(_0x3223b9&&_0x1f4f10){this[_0x560bef(0x381)](_0x1eb2bb,_0x3223b9,_0x1f4f10['paragraph'],_0x1f4f10[_0x560bef(0x3bd)]);let _0x13163e=_0x1f4f10['replace']?new Set([...Object[_0x560bef(0x346)](_0x1f4f10['paragraph']),...Object[_0x560bef(0x346)](_0x1eb2bb)]):Object[_0x560bef(0x346)](_0x1f4f10[_0x560bef(0x233)]);for(let _0x41a292 of _0x13163e){if(_0x41a292==='startIndex'||_0x41a292===_0x560bef(0x197))continue;let _0x24e27c=Reflect[_0x560bef(0x1df)](_0x1eb2bb,_0x41a292);_0x24e27c===void 0x0?Reflect[_0x560bef(0x1ae)](_0x1f4f10[_0x560bef(0x233)],_0x41a292):Reflect[_0x560bef(0x232)](_0x1f4f10['paragraph'],_0x41a292,_0x325f28[_0x560bef(0x261)][_0x560bef(0x209)](_0x24e27c));}}}}_0x4813e6['t']!==_0x325f28['TextXActionType'][_0x560bef(0x157)]&&(_0x29316a+=_0x4813e6[_0x560bef(0x19e)]);}});}return _0x76688e;}[_0x315216(0x381)](_0x3094ea,_0x5574bd,_0x275d8c,_0x2e5542){const _0x5c4188=_0x315216;let _0x478977=new Set([...Object[_0x5c4188(0x346)](_0x3094ea),...Object['keys'](_0x5574bd),...Object['keys'](_0x275d8c)]);for(let _0x54d1f6 of _0x478977){if(_0x54d1f6==='startIndex'||_0x54d1f6===_0x5c4188(0x197))continue;let _0x26020d=Reflect['get'](_0x3094ea,_0x54d1f6),_0x4b293a=Reflect[_0x5c4188(0x1df)](_0x5574bd,_0x54d1f6),_0xfb3ba4=Reflect[_0x5c4188(0x1df)](_0x275d8c,_0x54d1f6);if(_0x2e5542||_0xfb3ba4!==void 0x0){if(_0x325f28[_0x5c4188(0x261)][_0x5c4188(0xe3)](_0x26020d,_0x4b293a))_0xfb3ba4===void 0x0?(Reflect['deleteProperty'](_0x3094ea,_0x54d1f6),Reflect[_0x5c4188(0x1ae)](_0x5574bd,_0x54d1f6)):(Reflect[_0x5c4188(0x232)](_0x3094ea,_0x54d1f6,_0x325f28[_0x5c4188(0x261)][_0x5c4188(0x209)](_0xfb3ba4)),Reflect['set'](_0x5574bd,_0x54d1f6,_0x325f28[_0x5c4188(0x261)]['deepClone'](_0xfb3ba4)));else{if(_0x325f28[_0x5c4188(0x261)][_0x5c4188(0xcc)](_0x26020d)&&(_0x325f28[_0x5c4188(0x261)]['isObject'](_0x4b293a)||_0x4b293a===void 0x0)){let _0x46517f=_0x4b293a??{};this['_rebaseUnchangedAttributes'](_0x26020d,_0x46517f,_0x325f28[_0x5c4188(0x261)][_0x5c4188(0xcc)](_0xfb3ba4)?_0xfb3ba4:{},_0x2e5542),(_0x4b293a!==void 0x0||Object[_0x5c4188(0x346)](_0x46517f)['length']>0x0)&&Reflect[_0x5c4188(0x232)](_0x5574bd,_0x54d1f6,_0x46517f);}}}}}[_0x315216(0x13d)](_0x1d9d9c,_0x424b30,_0x9505c3){const _0x5c9754=_0x315216;if(_0x424b30[_0x5c9754(0x250)]!==0x1||_0x9505c3[_0x5c9754(0x250)]!==0x1||_0x424b30[0x0]['id']!==_0x285e73['RichTextEditingMutation']['id']||_0x9505c3[0x0]['id']!==_0x285e73[_0x5c9754(0x1fb)]['id'])return _0x1d9d9c;let _0x23299a=_0x424b30[0x0][_0x5c9754(0x296)],_0x3efe09=_0x9505c3[0x0][_0x5c9754(0x296)],_0x2b3f86=this['_filterTableActions'](_0x23299a['actions'],!0x0);return _0x325f28['JSONX']['isNoop'](_0x2b3f86)?_0x1d9d9c:(_0x3efe09[_0x5c9754(0x3ab)]=_0x325f28[_0x5c9754(0x226)]['compose'](this[_0x5c9754(0x395)](_0x3efe09[_0x5c9754(0x3ab)],!0x1),_0x325f28[_0x5c9754(0x226)][_0x5c9754(0x11f)](_0x2b3f86,_0x1d9d9c)),_0x325f28[_0x5c9754(0x226)][_0x5c9754(0x2dc)](_0x1d9d9c,_0x2b3f86)??_0x1d9d9c);}[_0x315216(0x395)](_0x188f73,_0x43a4f0){const _0x3ad3cc=_0x315216;let _0x31f211=_0x325f28[_0x3ad3cc(0x2a3)][_0x3ad3cc(0x438)][_0x3ad3cc(0x3ec)](_0x188f73),_0x317340=_0x325f28[_0x3ad3cc(0x2a3)][_0x3ad3cc(0x438)]['writeCursor']();return _0x31f211[_0x3ad3cc(0x27c)](null,_0x5a6073=>{const _0x1ad447=_0x3ad3cc;let _0x24c96e=_0x31f211[_0x1ad447(0x41b)]();if(_0x24c96e[0x0]===_0x1ad447(0x426)===_0x43a4f0){for(let _0xa298f3 of Object[_0x1ad447(0x346)](_0x5a6073))_0x317340['writeAtPath'](_0x24c96e,_0xa298f3,_0x5a6073[_0xa298f3]);}}),_0x317340[_0x3ad3cc(0x1df)]();}};_0x19d53d=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x1,_0x325f28['ICommandService']),_0x557b04(0x2,_0x325f28[_0x315216(0x1fe)]),_0x557b04(0x3,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x4,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0x5,_0x325f28[_0x315216(0x25d)])],_0x19d53d);let _0x2e8fa6=class extends _0x325f28[_0x315216(0x15c)]{constructor(_0x5a09ae=_0x1e0f56,_0x2cf8d2,_0x5eb0cc,_0xd44c81){const _0xfe90b3=_0x315216;super(),this['_config']=_0x5a09ae,this['_logService']=_0x2cf8d2,this[_0xfe90b3(0xe7)]=_0x5eb0cc,this[_0xfe90b3(0x1ed)]=_0xd44c81;let {..._0x4c70e7}=(0x0,_0x325f28[_0xfe90b3(0x3f7)])({},_0x1e0f56,this['_config']);if(!_0x4c70e7[_0xfe90b3(0x192)])throw Error(_0xfe90b3(0x42c));this[_0xfe90b3(0x1ad)]=_0x4c70e7,this[_0xfe90b3(0x1ed)][_0xfe90b3(0x334)](_0x3a344c,_0x4c70e7);}[_0x315216(0xb5)](){const _0x2054ae=_0x315216;this[_0x2054ae(0x1ed)][_0x2054ae(0x334)](_0x325f28[_0x2054ae(0x463)],this[_0x2054ae(0x1ad)][_0x2054ae(0x3cd)]??[]),this[_0x2054ae(0x3bc)](),this[_0x2054ae(0x181)]();}[_0x315216(0x3bc)](){const _0x1e1beb=_0x315216;var _0x2965be,_0xbcfb26;this[_0x1e1beb(0xe7)][_0x1e1beb(0xd1)](_0x325f28['IUndoRedoService'])&&this[_0x1e1beb(0xb8)][_0x1e1beb(0xd6)]('[UniverCollaborationClientPlugin]',_0x1e1beb(0xd3));let _0x3821a4=(0x0,_0x325f28[_0x1e1beb(0x351)])([[_0x325f28[_0x1e1beb(0x3e6)],{'useClass':_0x19d53d}],[_0xe6d4d9,{'useValue':_0x1b6d59()}],[_0x2c8ade],[_0x26f228],[_0x5d0dca],[_0x5ef8ed],[_0x114505],[_0x3313da],[_0x484143],[_0x11f58a],[_0x4e5ab6],[_0x84bd5,{'useClass':this[_0x1e1beb(0x1ad)][_0x1e1beb(0x192)]}],[_0x4524ba[_0x1e1beb(0x289)],{'useClass':_0x4241ec}],[_0x325f28[_0x1e1beb(0x1dc)],{'useClass':_0x26c5f0}],[_0x325f28[_0x1e1beb(0x372)],{'useClass':_0x18c5f6}],[_0x3a6c7e,{'useClass':_0x3c9a1b}],[_0x325f28[_0x1e1beb(0x17f)],{'useClass':_0x37d84f}],[_0x4b66f1],[_0x473a89]],(_0x2965be=this[_0x1e1beb(0x1ad)])==null?void 0x0:_0x2965be[_0x1e1beb(0x3c0)]);if(!((_0xbcfb26=this[_0x1e1beb(0x1ad)])!=null&&_0xbcfb26['enableSingleActiveInstanceLock'])){let _0x476451=_0x3821a4[_0x1e1beb(0x1aa)](([_0x530972])=>_0x530972===_0x556ae0);_0x476451!==-0x1&&_0x3821a4['splice'](_0x476451,0x1);}(0x0,_0x325f28[_0x1e1beb(0x446)])(this['_injector'],_0x3821a4);}[_0x315216(0x181)](){const _0xe83d98=_0x315216;var _0x43e231,_0x4eb3a6;if(this[_0xe83d98(0xe7)]['get'](_0x18cba4['HTTPService'])[_0xe83d98(0x1c1)]({'priority':0x14,'interceptor':(0x0,_0x18cba4['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x43e231=this[_0xe83d98(0x1ad)])!=null&&_0x43e231[_0xe83d98(0x1a4)])){var _0x22097f;(_0x22097f=this['_injector'][_0xe83d98(0x1df)](_0x21eb59,_0x325f28['Quantity'][_0xe83d98(0x3f1)]))==null||_0x22097f[_0xe83d98(0x417)]();}(_0x4eb3a6=this[_0xe83d98(0x1ad)])!=null&&_0x4eb3a6[_0xe83d98(0x437)]&&(0x0,_0x325f28[_0xe83d98(0x1bb)])(this[_0xe83d98(0xe7)],[[_0x5ef8ed]]),(0x0,_0x325f28[_0xe83d98(0x1bb)])(this[_0xe83d98(0xe7)],[[_0x114505],[_0x4b66f1],[_0x484143]]);}};_0x4da1f9(_0x2e8fa6,_0x315216(0x183),_0x315216(0x2ff)),_0x4da1f9(_0x2e8fa6,_0x315216(0x38b),_0x5268b1),_0x4da1f9(_0x2e8fa6,'version',_0xc74a63),_0x2e8fa6=_0x5af442([(0x0,_0x325f28[_0x315216(0x470)])(_0x35d7c3[_0x315216(0x2d9)],_0x18cba4[_0x315216(0x3f3)],_0x4524ba[_0x315216(0x33a)]),_0x557b04(0x1,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x3,_0x325f28[_0x315216(0x1cf)])],_0x2e8fa6),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x39f),{'enumerable':!0x0,'get':function(){return _0x26c5f0;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x1e7),{'enumerable':!0x0,'get':function(){return _0x299420;}}),Object['defineProperty'](_0x23db49,_0x315216(0xb3),{'enumerable':!0x0,'get':function(){return _0x432f81;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x2be),{'enumerable':!0x0,'get':function(){return _0x2033f7;}}),Object['defineProperty'](_0x23db49,_0x315216(0x481),{'enumerable':!0x0,'get':function(){return _0x4df8c8;}}),_0x23db49[_0x315216(0x9d)]=_0x3a344c,_0x23db49['ChangesetSubmitter']=_0x18c848,Object[_0x315216(0xb2)](_0x23db49,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x3c9a1b;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x363),{'enumerable':!0x0,'get':function(){return _0x4b66f1;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x21f),{'enumerable':!0x0,'get':function(){return _0x1683e1;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x21c),{'enumerable':!0x0,'get':function(){return _0x18c5f6;}}),Object['defineProperty'](_0x23db49,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x7f99f9;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x3af),{'enumerable':!0x0,'get':function(){return _0x2c8ade;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x251),{'enumerable':!0x0,'get':function(){return _0x121d26;}}),_0x23db49[_0x315216(0x32b)]=_0x133dfa,_0x23db49[_0x315216(0x184)]=_0x4c99b2,_0x23db49[_0x315216(0x10b)]=_0x11f58a,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x11a),{'enumerable':!0x0,'get':function(){return _0x19d53d;}}),_0x23db49[_0x315216(0x215)]=_0x3313da,Object['defineProperty'](_0x23db49,_0x315216(0x1e0),{'enumerable':!0x0,'get':function(){return _0x3a7d93;}}),_0x23db49[_0x315216(0x177)]=0x4e20,_0x23db49['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x315216(0x38a),_0x23db49[_0x315216(0x16e)]=_0x315216(0x12f),_0x23db49[_0x315216(0x20b)]=_0x315216(0x33f),Object[_0x315216(0xb2)](_0x23db49,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x4e5ab6;}}),Object['defineProperty'](_0x23db49,_0x315216(0x220),{'enumerable':!0x0,'get':function(){return _0x464598;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x2cf),{'enumerable':!0x0,'get':function(){return _0x157fa1;}}),_0x23db49[_0x315216(0xc5)]=_0x315216(0x388),_0x23db49[_0x315216(0x270)]=_0x315216(0x113),_0x23db49[_0x315216(0x1b5)]=_0x3a6c7e,_0x23db49['ICollaborationClientAdapterService']=_0xe6d4d9,_0x23db49[_0x315216(0x389)]=_0x84bd5,_0x23db49[_0x315216(0x1b1)]=_0x21eb59,_0x23db49[_0x315216(0x2b7)]=_0x2665e4,_0x23db49[_0x315216(0x110)]=_0x556ae0,_0x23db49[_0x315216(0x2d5)]=0x3e8,_0x23db49[_0x315216(0x2f0)]=_0x315216(0x2d5),_0x23db49[_0x315216(0x3ef)]=0x1d4c0,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x311),{'enumerable':!0x0,'get':function(){return _0x26f228;}}),Object[_0x315216(0xb2)](_0x23db49,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x37d84f;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x2c8),{'enumerable':!0x0,'get':function(){return _0x224cab;}}),Object['defineProperty'](_0x23db49,_0x315216(0x2af),{'enumerable':!0x0,'get':function(){return _0x1e25ce;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x16d),{'enumerable':!0x0,'get':function(){return _0x2f13d7;}}),_0x23db49[_0x315216(0x37f)]=_0x315216(0x221),_0x23db49[_0x315216(0xb4)]=_0x315216(0x2c7),_0x23db49[_0x315216(0x33d)]=_0x50a43f,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x332),{'enumerable':!0x0,'get':function(){return _0x3a3d85;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0xa1),{'enumerable':!0x0,'get':function(){return _0x5d0dca;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x3c9),{'enumerable':!0x0,'get':function(){return _0x37ab5d;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x104),{'enumerable':!0x0,'get':function(){return _0x4241ec;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x276),{'enumerable':!0x0,'get':function(){return _0x30f87e;}}),_0x23db49[_0x315216(0x279)]=_0x7a50dc,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x132),{'enumerable':!0x0,'get':function(){return _0x2e8fa6;}}),_0x23db49[_0x315216(0x1c4)]=_0x1b6d59,_0x23db49[_0x315216(0x277)]=_0x4703e7,_0x23db49['getLocalCacheKey']=_0x5b750c,_0x23db49[_0x315216(0x219)]=_0x3a4172;}));function _0x4cd7(){const _0x36e483=['_createSocket','getSnapshotAPIPath','eventID','getRoom','_remoteChangesetQueue','_getConfig','SheetCollaborationEntity','_replaceFileID','setConfig','expected\x20number,\x20got\x20','ONLINE','_commandService','objectId','/collaborator','UniverCollaborationPlugin','UNIVER_SHEET','getUnit','SessionStatus','localeService','/universer-api/user/session-ticket','base-ui.attachment-io.service','_onFetchMissResult','_syncEditingCollabCursor','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','UniverProCollaboration','AAD\x20not\x20supported','keys','_singleActiveUnitService','\x20-\x20','ErrorCode','changesetAckTimeout','trim','_pendingReason','@univerjs/docs','HELLO','/-/object/-/batch_allowed','delay','mergeOverrideWithDependencies','unitId','CmdRspCode','_toSynced','IDLE','ciphertext\x20must\x20be\x20multiple\x20of\x2016','revert','close','_onCombEvent','startsWith','subType','url','getSheetBlock','isView','_startCollaboration','unitDisposed$','socket\x20open.','mapDocumentTypeToUniverInstanceType','CollaborationController','_removeRoom','candidateSocket','commit','attachment','JOIN_ROOM_NOT_EXISTS','liveShareOperation','downloadEndpointUrl','_initRequestHeader','supports','generateRandomId','RemoteRevertError','put','ackTimeout','getUnitType','IImageIoService','\x20in\x20_schedule.','COMMENT_UPDATE','_snapshotServerService','event$','LocalUndoRedoService','attempt','rxjs/operators','onSendChangeset','saveSheetBlock','CONFLICT','requestRetry','/fetchmissing?from=','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','change$','_rebaseUnchangedAttributes','21SmoWqK','mutations','_getCurrentRevision','delete','hasWritePending','_nextDelay','HEARTBEAT_INTERVAL','ICollaborationSocketService','ws://127.0.0.1:8000/universer-api/comb/connect','packageName','isTransformChangesetsSuccess','_sessionStatus$','_onJoinRoomEvent','getRandomValues','collaborators','concatMap','UnitEmbedded','getAllPermissionPoint','update','_filterTableActions','_change$','@univerjs-pro/license','_changesetResend$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','fetch_missing','missingChangesets','disablePadding','create','[CollaborationSessionService]','AuthzIoHttpService','_shouldReportTelemetry','_stopTelemetryCollaborationNewChangeset','getImage','LIVESHARE_REQUEST_HOST','UNIVER_BOARD','localCacheService','_createInitialStateImpl','changesetResend$','compose','rxjs','getValue','actions','fromCollab','Subscription','accept','CollaborationSessionService','number','reconnect','invalid\x20output,\x20must\x20be\x20aligned','socketReady','NO_OTHER_CLIENTS_EDITING','constructor','JOIN','charCodeAt','COMPRESS_MUTATION_SEND','onTransformSelections','resend','open$','_registerDependencies','replace','_identity','onRemoteRetry','override','/universer-api/oidc/authpage','joinEvent','requestParams','isCompositionEnd','_status$','UniverProtocol','members','toString','SlideCollaborationEntity','EnsureSlideMasterPageMutation','/new_changes','parseProtocolChangeset','objectPermissionTypes','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','bind','reqId','_substituteRedoStack','onMissingChangesets','_maxAckTimeout','getActiveSheet','body','TimeoutError','_updateStatus','EmptyMutationInfo','resent\x20changeset\x20','userID','BYTES_PER_ELEMENT','UPDATE_CURSOR','_memberService','assign','find','size','includes','LIVESHARE_FETCH_OPERATIONS','_compressMutationService','_clearRetryConnectingTimer','debug','IUndoRedoService','102866WqZdPQ','_updateLocalCache','workbook','_classifyRemoteChangeset','_resolveSessionIdentity','readCursor','getFocusedUnit','?size=','MAX_ACK_TIMEOUT','SheetPermissionInitController','OPTIONAL','_telemetryService','UniverNetworkPlugin','[PendingState]:\x20received\x20acknowledgement.','UniverTelemetry','ImageSourceType','merge','loadBase','_redoStacks','getDrawingImageAllowSize','requireSession','toggleOffline','/rev/','now','oldBody','_applyRemoteChangeset','_dispatchRemoteChangeset','sid','map','_collabSessionService','__Key__','\x0aAfter:\x20','next','commentUpdateEvent','permission_rejected','_conflictInfoFromError','prototype','_onUserJoin','onTransformRemoteChangesetByStateCache','createInstance','retryCount','_rebaseParagraphHistory','_transformAndApply','_onConflict','_userManagerService','onload','@univerjs/drawing','tagLength','disableLocalCache','_onConnectionFailed','type=','byteLength','getPath','target','init','disposeWithMe','UniverInstanceType','_rejectionInfo','awaitingChangeset','CombCmd','session.join-failed','session.room-permission-denied','transformMutationsWithChangeset','tableSource','addHandlerCallback','capture','_transformStateCache','dispose$','socket$','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_waitCount','_clearHandshakeTimer','unit','_handler','armAckTimeout','_unitInfo$','COLLABORATION_ENDPOINT_INVALID','_clearTimer','Injector','emitEvent','enableAuthServer','type','UUID','/universer-api/stream/file/upload','@univerjs-pro/collaboration','_disposed','_classifyAck','IPermissionService','loadPdf','commentUpdate$','enableCollaboration','?url=','_changesetReqId','originalMeta','_onRemoteACK','registerDependencies','RemoveSlidePageMutation','rollback','saveAttachment','getCollabEntities','@univerjs-pro/slides','ITransformService','amd','_doCreateSocket','selections','refreshPermission','5739756TAfSmj','_transformIMECache','isInternalEditorID','_unlockTransition','getConfig','onMissing','_requestMissingChangesets','FileId','_rescheduleHeartbeat','_options','changesets','_instanceService','_startTelemetryCollaborationNewChangeset','_pendingMutations','UNIVER_PDF','BASE64','roles','elapsedMs','OBJECT_PERMISSION_CONFIG_KEY','onSyncEditingCollabCursor','PERMISSION_REJ','_transformService','JOIN_ROOM_PERMISSION_DENIED','_onRecvEvent','UNISCRIPT_RUN','Uint8Array','[FetchMissState]','objectID','_source','push','_createInitialState','DependentOn','memberID','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','sendChangesetTimeout','transformUndoRedo','applied','encode','coverType','@univerjs/core','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','/block/','sort','stale','cipher\x20output\x20not\x20supported','SYNCED','pending','_networkConditionService','BoardCollaborationEntity','collaboration_new_changeset','isTransformMutationsWithChangesetFailure','_collaborationPaused','_socket','_joinRoom','_reqId','[DataLoaderService]','_getUploadFileURL','_clearScheduledTask','INGEST','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_entities','[SyncedState]:\x20received\x20rejection.','_imageSourceCache','SheetTransformSelectionsService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','getCollabEntity','pipe','_createChangesetSubmitter','UniverCore','toRemote','getUnitStatus$','PSEUDO_FETCH_MISSING_RESULT','ImageUploadStatusType','CHANGESET_SHOULD_RETRY','resourceIDs','paragraphs','shouldCloseConn','readAsDataURL','objects','MUTATION','defineProperty','AwaitingWithPendingState','RETRY_CONNECTING_MAX_COUNT_KEY','onStarting','columnGroups','m2Prime','_logService','socketSubscription','/universer-api/snapshot/','getCurrentUser','expected\x20Uint8Array','_sessionChannels','plaintext\x20must\x20be\x20multiple\x20of\x2016','warn','uniscriptRunEvent','31xMzgUq','RevisionService','operators','setWaitCount','HEARTBEAT_INTERVAL_KEY','onMutationExecutedForCollab','_deliver','_getUnitPermissionPoints','UNIVER_BASE','_tryEnsureSocket','getMember','isObject','location','encrypt','take','then','has','IUniverInstanceService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','csShouldRetryEvent','string','error','UpdateDocsAttributeType','Response','add','_getSendChangesetTimeout','output','_remoteRevertInfo','info','_httpService','code','_state','pauseCollaboration','x-univer-host','diffValue','parseChangesetToProtocol','_tryReconnect','/universer-api/snapshot','_injector','HEARTBEAT','file','_undoRedoService','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','onCommentUpdate','_getSignURL','onRemoteChangeset','min','clearOfflineData','asObservable','ack_timeout','reject','7802245WpSVTw','takeUntil','HTTPRequest','NEW_CHANGESETS','ERROR_IMAGE','/universer-api/authz','_onLocalMutation','SheetsSelectionsService','retry-after','b64DecodeUnicode','_onRemoteChangeset','headers','_onRemoteRetry','_transformHistoryMutations','_onMessage','_getLoginPath','SnapshotServerOverHTTPService','textEncoder','slice','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','socket\x20close','getCollabEntity$','_submitChangeset','CollaborationUIEventService','RxDisposable','RevertRevisionMutation','resolveUnit','_snapshotService','ISingleActiveUnitService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','Subject','HEARTBEAT_TIMEOUT','SUBMIT_CHANGESET_TIMEOUT','online','&to=','PERMISSION_DENIED','varSizeNonce','getUnitId','CollaborativeUndoRedoService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','members$','refreshUnit','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','invertWithDoc','unknown','_getAPIPrefix','_schedule','result','FAIL','onMissedChangesetFetched','_unsyncedMutationCount','_acknowledgeAwaitingIfReady','/role','DocStateChangeManagerService','_getUndoStack','buffer','initWorkbookPermissionChange','_timer','offline','/universer-api/uniscript','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','not_collab','UniverCollaborationClientPlugin','values','bytesLength','getLatestCsReqIdBySid','&source=','entityInit$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onConnectionOpen','rev','_transformStack','stopTime','_invertDocumentHistory','_socketService','getCurrentSelections','/object/','isFinite','some','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onRemoteAck','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','collaboration-client.config','_throwTelemetryCollaborationNewChangeset','_handleRemoteChangesets','HTTPService','Disposable','[OfflineState]','_retryBackoff','echo','clear','exports','saveImage','conflict','listRoles','/universer-api/file/{fileID}/sign-url','unitID','awaiting_with_pending','UniverProLicense','INSERT','ICommandService','subUnitId','dispose','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','Plugin','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','SHOULD_CLOSE_CONN','onApply','_handlerCallback','onConflict','toggleOnline','name','getInterceptPoints','hostname','_initUnitPermissionChange','c1Prime','Slide','retryConnectingTimer','_firstSentAt','withAAD','connection\x20error','PendingState','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DisposableCollection','upload','getMemberID','/unit/','getOwnPropertyDescriptor','_toPending','ignored\x20acknowledgement\x20of\x20revision\x20','decrypt','DEFAULT_ACK_TIMEOUT','post','_disableEditing','[CollaborationState]:\x20apply\x20error!','univer-pro.collaboration-client-adapter-service','method','_pendingSessions','/-/object/list','IMentionIOService','_onRemoteRejected','_initDependencies','newCsEvent','pluginName','CollaborationUIEventId','20VmXTey','message','revision','_members','_createHandler','People','onRemoteRevert','transformChangesets','univer-pro.collaboration-client-socket-service','signUrlServerUrl','_executeRemoteChangeset','_collaborationUIEventService','handshakeTimer','socketService','apply_failed','title','catch','transform_failed','paragraphId','nonceLength','Workbook','_emitMembers','_collaborationSessionService','localChanges','sessionStatus','len','_countResend','_socketChannels','RETAIN','Inject','_updateUnitPermissionPoint','enableOfflineEditing','getImageSourceCache','_queuedRemoteChangesets','_scheduleCompleteTimestamp','_submitter','CompressMutationService','findIndex','loadOfflineData','createIdentifier','_config','deleteProperty','_sessions','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','ILocalCacheService','startIndex','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getTypeOfUnitDisposed$','IAttachmentIoService','action','loadUnit','_toggleOnline','UserManagerService','_ackTimeout','touchDependencies','updateMember','CLOSE_ROOM','1.2.0','_permissionService','_lockTransition','registerHTTPInterceptor','loadSheet','UNIVER_SLIDE','createUniverCollaborationAdapter','[CollaborationSessionService]:\x20socket\x20error','_clearHeartbeatTimer','BehaviorSubject','unbind','_showConflictProcessingNotification','leaveEvent','href','_listenToNetworkCondition','objectActions','UPDATE_PERMISSION_OBJ','IConfigService','textRanges','collaboration-client.auth.needGotoLoginAlert','@univerjs-pro/collaboration-client','[PendingState]:\x20received\x20rejection.','csAckEvent','isPermissionRej','_transformUndoredo','CollaborationEvent','baseRev','TextXActionType','_initMergeInterceptor','GLOBAL_ROOMS_CNT_EXCEEDS','IAuthzIoService','confirm','_substituteUndoStack','get','ConflictState','aes:\x20bad\x20decrypt','_revisionService','_init','LIVESHARE_TERMINATE','range','_now','AwaitingState','encodeURIComponent','15294FQHzmk','_conflict$','4426630SXyVPF','fetchMiss','_configService','OTHER_CLIENT_EDITING','duration','responseType','resolveWithBasePath','_updateState','@univerjs/telemetry','UniverNetwork','toPrimitive','blockRanges','transformStack\x20failed!','JOINING','loadDoc','_cfgEnableObjInherit','RichTextEditingMutation','_attempt','UniverProSlides','IContextService','MentionType','error$','fetching\x20missing\x20changesets\x20from\x20','_exhaustRemoteChangesetQueue','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_fetchMissChangesets','collaMsg','_disposeSubmitter','onlyLocal','_awaitingChangeset','deepClone','_clearUndo','DEFAULT_WS_SESSION_TICKET_URL','call','[CollaborationUndoRedoService]','parse','&assign=','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','list','localUnitId','connectionAttempt','firstValueFrom','CommentService','forEach','endpointKey','transformSelections','serializeCombRequest','isSafeInteger','shareReplay','CollaborationImageIoService','_authzIoService','waitForRoom$','CollaborationEntity','DocCollaborationEntity','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','clearUnit','unsubscribe','_transformSelections','PERSON','JSONX','SUBMIT_CHANGESET','_state$','_acknowledgeAwaiting','filter','removeMember','UnitObject','_members$','_entityInit$','_initCloseConn','_acknowledgedAwaitingRevision','executeCommand','set','paragraph','deleteCollaborator','session.room-full','_detachSubmitter','onResend','resendTimeouts','LEAVE','onTransformRemoteChangesetByIMECache','_univerInstanceService','unitLoaded$','collaboratorID','{fileID}','wrong\x20sbox\x20length','ack_of_awaiting','routeKey','NOT_COLLAB','COMPRESS_MUTATION_APPLY','floor','subarray','function','_roomCreated$','_telemetryInfo','_localCacheService','_closedUnits','interceptor','avatar','isArray','session.room-cnt-exceeds','objectType','length','CollaborationSocketService','_decreaseWaiting','endpoint','[CollaborationSession]','_HTTPService','close$','allowed','_commentUpdate$','univer-pro.collaboration-client.network-condition.service','withCredentials','JOIN_ROOM_FAILED','decorate','ILogService','REPLACE','toDisposable','OFFLINE','Tools','LIVESHARE_OPERATION','getResourcesRequest','MergeInterceptorFactory','object','hasOwnProperty','_roomMembers','getUnitOnRev','[AwaitingWithPendingState]','putCollaborators','\x20to\x20','updatePermissionPoint','sessionStatus$','sequenceExecute','cfgEnableObjInherit','HEARTBEAT_TIMEOUT_KEY','_loadUnit','_type','addImageSourceCache','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','changeset','SyncedState','deserializeToCombResponse','toLocal','UnitStatus','_getAPIPrefixPath','synced','traverse','_sheetTransformSelectionsService','batchAllowed','_docStateChangeManagerService','_transformRemoteChangesetByStateCache','should_retry','snapshotServerUrl','_getSocketChannel','UniverDocs','saveSnapshot','expected\x20integer\x20>=\x200,\x20got\x20','@univerjs/network','_isAckOfAwaitingChangeset','ISnapshotServerService','JOIN_ROOM_FULL','missing','SOCKET_FAILED_RETRY','nonce','AWAITING','subscribe','_incrementRevisionNumber','cmd','_commentService','byteOffset','_onRequestFailed','docStateChange$','params','Edit','_getDownloadEndpointURL','CHANGESET_ACK','from','ignored\x20stale\x20ack\x20of\x20revision\x20','USERS_LEAVE','reverse','session','_transformAndApplyRemoteChangeset','snapshot','data','/object','JSON1','UNIVER_DOC','_transitionLocked','_getRedoStack','USERS_ENTER','CHANGESET_REJ','_toggleOffline','CONFLICT_PROCESSING','ObjectPermissionService','submit','origin','LocaleService','PdfCollaborationEntity','SnapshotService','append','_socketMessageSubscription','state','Document','subject','getDeserializedSheetBlock','INetworkConditionService','882460eIMVKd','_unitLoaded$','onRemoteRej','onTransformState','authzUrl','getCurrentRevOfUnit','BaseCollaborationEntity','updatePermissionObjEvent','onTransformIME','SOCKET_FAILED','getUploadOptions','UniverProCollaborationClient','updateCollaborator','_sendToken','every','RETRY_CONNECTING_MAX_COUNT','OfflineState','_createSession','UnitAction','getTypeOfUnitAdded$','reduce','crypto.getRandomValues\x20must\x20be\x20defined','Board','FetchingMissState','appendMutation','CONFLICT_CACHE_CLEAR_FAILED','_onOffline','1899McqWsa','Optional','LOCAL_CACHE_INTERVAL','/allowed','unit-cache-','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','UniverLicensePlugin','[CollaborationEntity]','_send','apply','FETCH_MISSING','RECV','AddSlidePageMutation','remote_revert','endsWith','readyForCollab','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','getTime','_event$','loadUnitOfRevision','awaiting','FileSource','MSG_FOR_ERROR','_clearTimeoutTimer','ITelemetryService','maxAckTimeout','_replayCachedMutations','_loadSnapshot','_notifyResend','LOCAL_CACHE_INTERVAL_KEY','_changesetSessionId','telemetry\x20info\x20is\x20not\x20initialized','3647tUIUQo','POST','timeoutTimer','_sendingTimer','HTTP\x20','MoveSlidePageMutation','fetchThroughInterceptors','default','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_refreshUnitPermission','isTransformMutationsWithChangesetSuccess','HTTPResponseError','UNIVER_COLLABORATION_CLIENT_PLUGIN','text-x','[CollaborationSocketService]','stringify','sendHeartbeatTimer','indexOf','getSnapshot','Failed\x20to\x20update\x20permission\x20point','_transit','createCollaborator','_dropAcknowledgedAwaiting','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_hasSessionsForEndpoint','_upload','Univer','max','retryConnectingInterval','liveShareNewHost','MemberService','OTHER_CLIENTS_EDITING','complete','timeout','/universer-api/comb','closeSession','_isEchoedAwaitingChangeset','unitType','onPrepareTransformSelections','20192MoyDnB','_sendHeartbeat','SNAPSHOT_URL_KEY','SetSelectionsOperation','_waitForHeartbeatResponse','CommandType','onStateChange','_eventService','uploadFileServerUrl','Quantity','LIVESHARE_NEW_HOST','send','status','symbol','reason','WorkbookEditablePermission','message$','CollaborationStatus'];_0x4cd7=function(){return _0x36e483;};return _0x4cd7();}
1
+ function _0x33dd(){const _0x392ae2=['[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_revisionService','_sendToken','getUnitType','loadBoard','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','localCacheService','_clearRetryConnectingTimer','string\x20expected','JOIN_ROOM_FULL','onApply','_now','CmdRspCode','deleteProperty','_schedule','synced','add','prototype','_notifyResend','WorkbookEditablePermission','reason','unitDisposed$','/collaborator','uniscriptRunEvent','m2Prime','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','elapsedMs','_initCloseConn','should_retry','subType','_toPending','getOwnPropertyDescriptor','_replayCachedMutations','cmd','EmptyMutationInfo','UNIVER_DOC','fetchMissingChangesets','exports','_listenToNetworkCondition','baseRev','expected\x20integer\x20>=\x200,\x20got\x20','serializeCombRequest','updateOfflineData','writeCursor','UniverProLicense','incrementRevOfUnit','_sessions','parseChangesetToProtocol','loadUnitOfRevision','resend','range','CHANGESET_ACK','IUndoRedoService','_fetchMissChangesets','_createSession','IMentionIOService','_getRedoStack','reconnect','isView','hasLocalChanges','2460829XcZRiI','collaboration-client.auth.needGotoLoginAlert','Univer','SnapshotService','UniverTelemetry','&assign=','handshakeTimer','ciphertext\x20must\x20be\x20multiple\x20of\x2016','\x20to\x20','_config','_clearTimer','dispose$','subscribe','refreshPermission','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','timeout','isTransformMutationsWithChangesetFailure','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','@univerjs/core','RETRY_CONNECTING_MAX_COUNT_KEY','number','_undoRedoService','_httpService','getImageSourceCache','_dispatchRemoteChangeset','appendMutation','_acknowledgeAwaitingIfReady','_handlerCallback','onRemoteAck','MentionIoHttpService','allowed','_createChangesetSubmitter','varSizeNonce','_options','refreshUnit','_decreaseWaiting','init','onRemoteRej','@univerjs/drawing','diffValue','_roomCreated$','_commentUpdate$','onMissingChangesets','disablePadding','transformChangesets','_executeRemoteChangeset','_onRequestFailed','withAAD','splice','getUnit','BoardCollaborationEntity','_onRemoteRejected','/universer-api/user/session-ticket','setCfgEnableObjInherit','GLOBAL_ROOMS_CNT_EXCEEDS','set','_substituteUndoStack','/new_changes','POST','UniverLicensePlugin','c2Prime','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','trim','Slide','_rejectionInfo','getAllPermissionPoint','list','expected\x20Uint8Array','_ackTimeout','sessionStatus$','_configService','retryConnectingTimer','UniverCore','getMember','_classifyAck','CHANGESET_REJ','_applyRemoteChangeset','open$','unit-cache-','RevertRevisionMutation','UNIVER_SLIDE','requestRetry','_countResend','/universer-api/comb','maxChangesetAckTimeout','indexOf','_conflict$','clear','SheetPermissionInitController','event$','INGEST','FileId','&to=','UniverNetworkPlugin','COMPRESS_MUTATION_SEND','delay','_getAPIPrefix','telemetry\x20info\x20is\x20not\x20initialized','_substituteRedoStack','operators','UniverDocs','UUID','PERSON','onlyLocal','from','onload','Subscription','interceptor','_roomMembers','upload','registerHTTPInterceptor','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_snapshotService','length=','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','\x20-\x20','_clearHeartbeatTimer','_doCreateSocket','DisposableCollection','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','ack_timeout','ISocketService','timeoutTimer','LocaleService','onTransformRemoteChangesetByIMECache','HTTPEventType','[CollaborationSessionService]','IDLE','HELLO','HTTPRequest','forEach','rxjs','RemoteChangesetApplyError','replace','LocalUndoRedoService','[CollaborationSession]','_lockTransition','unitId\x20is\x20not\x20found','missing','?url=','size','mergeOverrideWithDependencies','session.join-failed','getUnitId','CombCmd','getConfig','hasOwnProperty','onSyncEditingCollabCursor','getWorkbookSelections','object','conflict','onStarting','_unsyncedMutationCount','ITransformService','_source','expected\x20number,\x20got\x20','[UniverCollaborationClientPlugin]','version','_disableEditing','ImageSourceType','initWorkbookPermissionChange','liveShareOperation','UnitAction','FileSource','socket\x20close','SUBMIT_CHANGESET','roomInfos','_deliver','UnitEmbedded','COLLABORATION_ENDPOINT_INVALID','_onLocalMutation','toggleOnline','min','_clearUndo','unitLoaded$','stopTime','ONLINE','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformHistoryMutations','values','_state','code','_invertDocumentHistory','reverse','1076300lJVbdj','failed\x20to\x20apply\x20missed\x20changesets!','\x20of\x20length\x20','floor','_commandService','blockRanges','CollaborationEntity','pipe','_disposed','_entities','OPTIONAL','reduce','UniverInstanceType','MemberService','saveSnapshot','IImageIoService','_getConfig','REPLACE','_acknowledgedAwaitingRevision','DataLoaderService','textEncoder','SheetTransformSelectionsService','message','_tryReconnect','unitId','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','_unlockTransition','BYTES_PER_ELEMENT','[SyncedState]:\x20received\x20acknowledgement.','Edit','aes:\x20bad\x20decrypt','Quantity','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','ERROR_IMAGE','onCommentUpdate','_getAPIPrefixPath','CollaborationStatus','license_unit_type_rejected','sheets','decorate','leaveEvent','_docStateChangeManagerService','_getDownloadEndpointURL','output','getTypeOfUnitAdded$','reject','transformUndoRedo','_transit','backupOfflineData','_pendingReason','unsubscribe','IAuthzIoService','IPermissionService','disposeWithMe','transform_failed','liveShareNewHost','_changesetReqId','JOIN','objects','@univerjs/telemetry','snapshot','JOIN_ROOM_FAILED','HTTPService','unknown','avatar','collabWebSocketUrl','_createHandler','\x20in\x20_schedule.','CollaborationController','downloadEndpointUrl','complete','subject','_acknowledgeAwaiting','transformMutationsWithChangeset','PERMISSION_REJ','getSnapshot','_waitCount','session','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','error','isPermissionRej','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','univer-pro.collaboration-client-socket-service','SHOULD_CLOSE_CONN','AwaitingWithPendingState','update','ws://127.0.0.1:8000/universer-api/comb/connect','getTypeOfUnitDisposed$','RemoteRevertError','_joinRoom','[CollaborationSocketService]','UNIVER_SHEET','SlideCollaborationEntity','mutations','[DataLoaderService]','authzUrl','getSheetBlock','collaboration_new_changeset','isCompositionEnd','requireSession','_collaborationUIEventService','saveSheetBlock','_compressMutationService','RevisionService','objectID','revert','_incrementRevisionNumber','generateRandomId','_resolveSessionIdentity','UniverSheets','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_singleActiveUnitService','PENDING','cipher\x20output\x20not\x20supported','_isAckOfAwaitingChangeset','INetworkConditionService','Rectangle','DEFAULT_FILE_NAME','nonce','accept','objectActions','MUTATION','LIVESHARE_OPERATION','createUniverCollaborationAdapter','textRanges','memberID','retryCount','_telemetryInfo','_getUnitPermissionPoints','readAsDataURL','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','_updateState','ICollaborationSocketService','_logService','subarray','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_collaborationSessionService','close$','_getCtorByUniverInstanceType','_identity','DependentOn','_initUnitPermissionChange','_replaceFileID','UPDATE_PERMISSION_OBJ','?size=','univer-pro.collaboration-client.single-active-unit-service','_userManagerService','[CollaborationUndoRedoService]','_injector','status','onSendChangeset','Subject','close','joinRsp','LICENSE_DOMAIN_REJECTED','/-/object/list','getUploadOptions','updateCollaborator','/rev/','onMissing','_imageSourceCache',',\x20got\x20','_reqId','_event$','commentUpdateEvent','ObjectPermissionService','ChangesetSubmitter','submitting\x20changeset\x20','Injector','traverse','commentUpdate$','_onRecvEvent','collaboration-client.config','_classifyRemoteChangeset','_conflictInfoFromError','removeMember','every','session.room-not-exists','_tryEnsureSocket','enableAuthServer','_socketChannels','_submitter','_getCurrentRevision','collaborators','touchDependencies','RECV','_clearHandshakeTimer','disableLocalCache','_getSocketChannel','_requestMissingChangesets','DEFAULT_WS_SESSION_TICKET_URL','Response','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','length','_rebaseUnchangedAttributes','onTransformRemoteChangesetByStateCache','bytesLength','ignored\x20acknowledgement\x20of\x20revision\x20','concatMap','_snapshotServerService','changesetAckTimeout','catch','getAttachmentUrl','send','ignored\x20remote\x20changeset\x20of\x20revision\x20','_HTTPService','_onRemoteRetry','[PendingState]:\x20received\x20rejection.','COMPRESS_MUTATION_APPLY','parse','create','_clearTimeoutTimer','HEARTBEAT_INTERVAL','/universer-api/stream/file/upload','endsWith','listCollaborators','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','JSON1','firstValueFrom','99ZFrvOI','/block/','OTHER_CLIENT_EDITING','ack_of_awaiting','_syncEditingCollabCursor','/universer-api/oidc/authpage','8HHXFVA','missingChangesets','getInterceptPoints','_disposeSubmitter','19313767NuqTkK','_registerDependencies','SOCKET_FAILED','collaboration-client.local-cache-service','LICENSE_UNIT_TYPE_REJECTED','sort','headers','_changesetSessionId','actions','_onConnectionOpen','getRandomValues','_cfgEnableObjInherit','setConfig','_remoteRevertInfo','IContextService','_queuedRemoteChangesets','socketReady','filter','localeService','[AwaitingWithPendingState]','_permissionService','LIVESHARE_NEW_HOST','IUniverInstanceService','waitForRoom$','resent\x20changeset\x20','amd','OTHER_CLIENTS_EDITING','CommandType','getValue','LOCAL_CACHE_INTERVAL_KEY','connectionAttempt','state$','startTime','title','ignored\x20stale\x20ack\x20of\x20revision\x20','UniverCollaborationClientPlugin','getCollabEntities','_loadSnapshot','SYNCED','file','_shouldReportTelemetry','Inject','startIndex','nextDelayMs','getFocusedUnit','nonceLength','fill','collaMsg','FETCH_MISS','data','_send','AuthzIoHttpService','_submitChangeset','plaintext\x20must\x20be\x20multiple\x20of\x2016','collaboratorID','getCollabEntity$','IConfigService','/universer-api/authz','_socket','merge','updateSnapshot','loginUrlKey','dispose','_createInitialState','Failed\x20to\x20update\x20permission\x20point','SOCKET_FAILED_RETRY','UNIVER_PDF','resendTimeouts','_toggleOnline','_unitLoaded$','_retryBackoff','_stopTelemetryCollaborationNewChangeset','CONFLICT','BASE64','MSG_FOR_ERROR','tagLength','debug','_transformService','_resend','ignored\x20rejection.','DRAWING_IMAGE_ALLOW_IMAGE_LIST','univer-pro.collaboration-client-adapter-service','UnitObject','_transformSelections','retry-after','maxSize','CompressMutationService','LOCAL_CACHE_INTERVAL','offline','stringify','_onCombEvent','_exhaustRemoteChangesetQueue','_scheduleCompleteTimestamp','ICommandService','SheetsSelectionsService','mapDocumentTypeToUniverInstanceType','Optional','_getLoginPath','CollaborationEvent','permission_rejected','next','createCollaborator','_onUserLeave','symbol','_remoteChangesetQueue','_commentService','UNIVER_BOARD','rev','PendingState','JSONX','[FetchMissState]','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','executeCommand','session.room-permission-denied','isTransformChangesetsSuccess','takeUntil','subUnitId','originalMeta','_firstSentAt','_prepareTransformSelections','info','_rescheduleHeartbeat','take','toString','UNIVER_BASE','unit','_sheetTransformSelectionsService','docStateChange$','PdfCollaborationEntity','_timer','_dropAcknowledgedAwaiting','charCodeAt','ErrorCode','resourceIDs','getPath','result','UniverNetwork','onRemoteRetry','SNAPSHOT_URL_KEY',',\x20attempt\x20','save\x20fail\x20reason\x20is\x20','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','/allowed','BaseCollaborationEntity','getCollabEntity','fetching\x20missing\x20changesets\x20from\x20','createSocket','_localCacheService','AWAITING_WITH_PENDING','slice','SetSelectionsOperation','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','MentionType','_awaitingChangeset','ImageUploadStatusType','[AwaitingState]','batchAllowed','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_toSynced','LEAVE','snapshotServerUrl','has','call','JOINING','defineProperty','submit','sendHeartbeatTimer','unitType','paragraph','_changesetResend$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','UpdateDocsAttributeType','NEW_CHANGESETS','type=','getSheetId','UniverProSlides','onTransformIME','_handleRemoteChangesets','getRoom','_createSocket','_networkConditionService','_socketService','clearUnit','982Wedxny','@univerjs/network','HEARTBEAT_TIMEOUT_KEY','People','unitInfo$','socketSubscription','paragraphId','attempt','_pendingSessions','roles','loadSlide','parseProtocolChangeset','_members','endpointKey','online$','_maxAckTimeout','1.3.1','remote_revert','12HHCRrA','csShouldRetryEvent','NO_OTHER_CLIENTS_EDITING','HTTPResponseError','CollaborationSocketService','/-/object/-/batch_allowed','_getUndoStack','url','readyForCollab','license_editing_connections_exceeded','COMMENT_UPDATE','_transformAndApplyRemoteChangeset','resolveUnit','_eventService','_transitionLocked','some','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','shareReplay','string','_sendingTimer','[CollaborationState]:\x20apply\x20error!','getAllMembers','RxDisposable','applied','requestParams','USERS_ENTER','shouldCloseConn','_emitMembers','patch','updateCursorEvent','195290pSsBpr','name','keys','PSEUDO_FETCH_MISSING_RESULT','FETCH_MISSING','status$','_detachSubmitter','UniverDrawing','_attempt','_prepareConflictRecovery','_sessionStatus$','/object/','resolveWithBasePath','_undoStacks','awaiting_with_pending','getMemberID','ILogService','_transformRemoteChangesetByStateCache','_onJoinRoomEvent','getActiveSheet','encrypt','capture','then','wrong\x20sbox\x20length','LIVESHARE_REQUEST_HOST','setShowComponents','RichTextEditingMutation','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_transformIMECache','UNISCRIPT_RUN','fetchThroughInterceptors','columnGroups','addHandlerCallback','unbind','@univerjs/docs','changesetResend$','href','_hasSessionsForEndpoint','_onConnectionFailed','CONFLICT_PROCESSING','_sessionChannels','JOIN_ROOM_NOT_EXISTS','LIVESHARE_TERMINATE','getUnitOnRev','localUnitId','fromCollab','Document','__splitChunk__','[CollaborationEntity]','duration','signUrlServerUrl','HEARTBEAT_INTERVAL_KEY','_throwTelemetryCollaborationNewChangeset','routeKey','_isEchoedAwaitingChangeset','onMissedChangesetFetched','_nextDelay','loadSheet','UniverProCollaboration','tableSource','selections','{fileID}','&source=','loadPdf','_startCollaboration','listRoles','revision','Base','_transformUndoredo','sid','onChangesetResend','CHANGESET_SHOULD_RETRY','_startTelemetryCollaborationNewChangeset','post','armAckTimeout','_initMergeInterceptor','ERROR_IMAGE_TYPE','_collabSessionService','socket$','error$','_initDependencies','eventID','delete','_waitForHeartbeatResponse','Module','objectType','CollaborationAttachmentIoService','SUBMIT_CHANGESET_TIMEOUT','bind','_toggleOffline','[SyncedState]:\x20received\x20rejection.','CommentService','_transformRemoteChangesetByIMECache','CONFLICT_CACHE_CLEAR_FAILED','registerDependencies','push','_showConflictProcessingNotification','toPrimitive','awaitingChangeset','_handler','_authzIoService','OfflineState','hostname','_onConflict','key','BehaviorSubject','getGlobalObject','get','_init','CLOSE_ROOM','closed','toStringTag','origin','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','1575XNGvFt','49183pxrQYg','map','USERS_LEAVE','entityInit$','CollaborationUIEventService','UniverCollaborationPlugin','_onUserJoin','_members$','onMutationExecutedForCollab','/universer-api/snapshot','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','byteLength','csAckEvent','closeSession','@univerjs-pro/collaboration-client','_updateUnitPermissionPoint','isFinite','crypto','onConflict','isInternalEditorID','_telemetryService','commit','onTransformSelections','type','_rebaseParagraphHistory','RETAIN','pauseCollaboration','_getSignURL','toDisposable','now','localChanges','updatePermissionObjEvent','UniverProCollaborationClient','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','isNoop','getTime','put','max','HEARTBEAT_TIMEOUT','_adapter','/role','CollaborationImageIoService','candidateSocket','HEARTBEAT','text-x','members','PERMISSION_DENIED','RETRY_CONNECTING_MAX_COUNT','cfgEnableObjInherit','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','override','isTransformMutationsWithChangesetSuccess','loadOfflineData','b64DecodeUnicode','rollback','objectId','\x20failed:\x20','_onRemoteACK','encodeURIComponent','retryConnectingInterval','transformSelections','state','UserManagerService','CollaborationSession','SessionStatus','changeset','Tools','userID','assign','request_failed','params','onRemoteChangeset','createInstance','fromCharCode','RemoveSlidePageMutation','stream','Disposable','_collaborationPaused','action','INSERT','_getUploadFileURL','append','_updateStatus','_status$','_entityInit$','_state$','ConflictState','_createInitialStateImpl','_removeRoom','@univerjs-pro/slides','confirm','decrypt','SheetCollaborationEntity','ThresholdInterceptorFactory','sessionStatus','CollaborativeUndoRedoService','permissionRejEvent','compose','getDrawingImageAllowSize','_change$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','location','changesets','entries','UNIVER_COLLABORATION_CLIENT_PLUGIN','infoRsp','function','saveChangeset','changeset_rejected','onTransformState','Workbook','transformStack\x20failed!','c1Prime','_transformStack','updateMember','fetch_missing','getCurrentUser','hasWritePending','enableSingleActiveInstanceLock','onPrepareTransformSelections','oldBody','isSafeInteger','getImage','message$','_redoStacks','@univerjs/protocol','loadBase','TextXActionType','_onOffline','echo','asObservable','session.room-full','_refreshUnitPermission','_type','_pendingMutations','createIdentifier','_memberService','UPDATE_CURSOR','/unit/','MoveSlidePageMutation','_onLicenseRejected','paragraphs','_onFetchMissResult','pending','unitID','_socketMessageSubscription','AAD','body','coverType','reqId','2377104PPtlEA','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','target','[PendingState]:\x20unhandled\x20univer\x20type:\x20','endpoint','buffer','_onRemoteChangeset','Board','byteOffset','isArray','encode','isObject','objectPermissionTypes','_clearScheduledTask','stale','ISnapshotServerService','[CollaborationSessionService]:\x20socket\x20error','includes','updatePermissionPoint','ILocalCacheService','_retryReason','uploadFileServerUrl','iterator','AWAITING','_updateLocalCache','toggleOffline','AddSlidePageMutation','getDeserializedSheetBlock','IAttachmentIoService','online','_instanceService','deleteCollaborator','@univerjs-pro/license','find','startsWith','OBJECT_PERMISSION_CONFIG_KEY','OFFLINE','sendChangesetTimeout','readCursor','_unitInfo$','_closedUnits','responseType','equals','loadUnit','getSnapshotAPIPath','deepClone','_transformAndApply','emitEvent','\x20at\x20revision\x20','AAD\x20not\x20supported','awaiting'];_0x33dd=function(){return _0x392ae2;};return _0x33dd();}function _0x3cef(_0x2a2df1,_0x374737){_0x2a2df1=_0x2a2df1-0xa6;const _0x33dd90=_0x33dd();let _0x3cef60=_0x33dd90[_0x2a2df1];return _0x3cef60;}(function(_0x15dd04,_0x4ec21e){const _0x4e77ec=_0x3cef,_0x51e0d3=_0x15dd04();while(!![]){try{const _0x365860=-parseInt(_0x4e77ec(0x224))/0x1+-parseInt(_0x4e77ec(0x180))/0x2*(parseInt(_0x4e77ec(0x223))/0x3)+-parseInt(_0x4e77ec(0x192))/0x4*(parseInt(_0x4e77ec(0x3e1))/0x5)+parseInt(_0x4e77ec(0x2ba))/0x6+-parseInt(_0x4e77ec(0x329))/0x7*(parseInt(_0x4e77ec(0xc5))/0x8)+parseInt(_0x4e77ec(0xbf))/0x9*(-parseInt(_0x4e77ec(0x1b1))/0xa)+parseInt(_0x4e77ec(0xc9))/0xb;if(_0x365860===_0x4ec21e)break;else _0x51e0d3['push'](_0x51e0d3['shift']());}catch(_0x5eadcd){_0x51e0d3['push'](_0x51e0d3['shift']());}}}(_0x33dd,0x9a82d),function(_0x123dfe,_0x2a604e){const _0x5525e5=_0x3cef;typeof exports==_0x5525e5(0x3be)&&typeof module<'u'?_0x2a604e(exports,require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x5525e5(0x28e)&&define[_0x5525e5(0xe2)]?define([_0x5525e5(0x312),_0x5525e5(0x181),_0x5525e5(0x3ac),'@univerjs-pro/collaboration',_0x5525e5(0x33b),_0x5525e5(0x1d3),'@univerjs/sheets',_0x5525e5(0x2a1),_0x5525e5(0x41c),'rxjs/operators',_0x5525e5(0x27d),_0x5525e5(0x2da),_0x5525e5(0x34f)],_0x2a604e):(_0x123dfe=typeof globalThis<'u'?globalThis:_0x123dfe||self,_0x2a604e(_0x123dfe[_0x5525e5(0x244)]={},_0x123dfe[_0x5525e5(0x151)],_0x123dfe[_0x5525e5(0x3ac)],_0x123dfe[_0x5525e5(0x1eb)],_0x123dfe[_0x5525e5(0x371)],_0x123dfe[_0x5525e5(0x38d)],_0x123dfe[_0x5525e5(0x44e)],_0x123dfe['UniverProtocol'],_0x123dfe[_0x5525e5(0x32d)],_0x123dfe[_0x5525e5(0x3ac)][_0x5525e5(0x38c)],_0x123dfe[_0x5525e5(0x178)],_0x123dfe[_0x5525e5(0x319)],_0x123dfe[_0x5525e5(0x1b8)]));}(this,function(_0x16c048,_0x38af37,_0x5d1b30,_0x59e2cb,_0x594924,_0xbdd057,_0x2f8369,_0x4500fa,_0x276fcd,_0x47dd8f,_0x25004e,_0x350a94,_0x4d18e5){const _0x28ce9c=_0x3cef;Object[_0x28ce9c(0x16d)](_0x16c048,Symbol[_0x28ce9c(0x220)],{'value':_0x28ce9c(0x205)});let _0xe358d2=_0x28ce9c(0x48e),_0x13ba20={};function _0x2abf2d(_0x42f22c){'@babel/helpers - typeof';const _0x200cda=_0x28ce9c;return _0x2abf2d=typeof Symbol=='function'&&typeof Symbol[_0x200cda(0x2d0)]=='symbol'?function(_0x62a3ae){return typeof _0x62a3ae;}:function(_0x5963ec){const _0x3c4643=_0x200cda;return _0x5963ec&&typeof Symbol=='function'&&_0x5963ec['constructor']===Symbol&&_0x5963ec!==Symbol[_0x3c4643(0x2fe)]?_0x3c4643(0x130):typeof _0x5963ec;},_0x2abf2d(_0x42f22c);}function _0x511fa7(_0x1b5a3a,_0x160f5d){const _0x3557f2=_0x28ce9c;if(_0x2abf2d(_0x1b5a3a)!=_0x3557f2(0x3be)||!_0x1b5a3a)return _0x1b5a3a;var _0x4a8c2d=_0x1b5a3a[Symbol[_0x3557f2(0x212)]];if(_0x4a8c2d!==void 0x0){var _0x147fc2=_0x4a8c2d[_0x3557f2(0x16b)](_0x1b5a3a,_0x160f5d||'default');if(_0x2abf2d(_0x147fc2)!=_0x3557f2(0x3be))return _0x147fc2;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x160f5d===_0x3557f2(0x1a5)?String:Number)(_0x1b5a3a);}function _0x556ef3(_0x443644){const _0x470b1d=_0x28ce9c;var _0x5721cd=_0x511fa7(_0x443644,_0x470b1d(0x1a5));return _0x2abf2d(_0x5721cd)==_0x470b1d(0x130)?_0x5721cd:_0x5721cd+'';}function _0x4c0132(_0x102ba0,_0x9f2235,_0x42698d){return(_0x9f2235=_0x556ef3(_0x9f2235))in _0x102ba0?Object['defineProperty'](_0x102ba0,_0x9f2235,{'value':_0x42698d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x102ba0[_0x9f2235]=_0x42698d,_0x102ba0;}var _0x1591bd=class{constructor(_0x155117,_0x4bc87c,_0x1f88a9={}){const _0x5caef9=_0x28ce9c;this[_0x5caef9(0xfb)]=_0x4bc87c,this['_options']=_0x1f88a9,_0x4c0132(this,_0x5caef9(0x1b9),0x0),_0x4c0132(this,_0x5caef9(0x13f),void 0x0),_0x4c0132(this,_0x5caef9(0x36d),void 0x0),_0x4c0132(this,_0x5caef9(0x18f),void 0x0),_0x4c0132(this,_0x5caef9(0x10f),0x0),_0x4c0132(this,'_nextDelay',0x0),_0x4c0132(this,_0x5caef9(0x14a),null),_0x4c0132(this,'_pendingReason',null),_0x4c0132(this,_0x5caef9(0x3c3),null),_0x4c0132(this,_0x5caef9(0x2ef),0x0),_0x4c0132(this,_0x5caef9(0x3e9),!0x1),_0x4c0132(this,_0x5caef9(0x2f8),void 0x0),_0x4c0132(this,_0x5caef9(0x484),void 0x0),this[_0x5caef9(0x484)]=_0x155117,this[_0x5caef9(0x36d)]=_0x1f88a9['ackTimeout']??0x4e20,this[_0x5caef9(0x18f)]=Math[_0x5caef9(0x249)](_0x1f88a9['maxAckTimeout']??0x1d4c0,this['_ackTimeout']),this[_0x5caef9(0x2f8)]=_0x1f88a9['now']??(()=>Date[_0x5caef9(0x241)]()),this[_0x5caef9(0x13f)]=this[_0x5caef9(0x2f8)]();}get[_0x28ce9c(0x2b9)](){const _0x289f03=_0x28ce9c;return this[_0x289f03(0x484)];}get['attempt'](){const _0x210ad0=_0x28ce9c;return this[_0x210ad0(0x1b9)];}get[_0x28ce9c(0xf4)](){const _0x3996e5=_0x28ce9c;return this[_0x3996e5(0x1e9)];}get[_0x28ce9c(0x307)](){const _0x160718=_0x28ce9c;return this[_0x160718(0x2f8)]()-this[_0x160718(0x13f)];}[_0x28ce9c(0x209)](_0x3ecc7e){const _0x4b2407=_0x28ce9c;if(this[_0x4b2407(0x3e9)])return;this['_source']=_0x3ecc7e;let _0x24844b=this[_0x4b2407(0x412)];_0x24844b&&(this[_0x4b2407(0x412)]=null,this[_0x4b2407(0x117)](_0x24844b));}['unbind'](){const _0x3d8f5a=_0x28ce9c;this[_0x3d8f5a(0x3c3)]=null;}[_0x28ce9c(0x16e)](_0x8a570a,_0xcd671c,_0x1f9b4c){const _0x33414a=_0x28ce9c;this['_disposed']||(_0x1f9b4c&&this['_countResend'](_0x1f9b4c),this[_0x33414a(0x1fb)](),this['_deliver'](_0x8a570a),this[_0x33414a(0x484)]=_0x8a570a[_0x33414a(0x2b9)]??this['_reqId'],_0x1f9b4c&&this[_0x33414a(0x2ff)](_0x1f9b4c,_0xcd671c));}[_0x28ce9c(0x1fb)](){const _0x3e25be=_0x28ce9c;this[_0x3e25be(0x2fb)](this[_0x3e25be(0x36d)],'ack_timeout');}[_0x28ce9c(0x37a)](_0xc45617=_0x28ce9c(0x309)){const _0x5989e7=_0x28ce9c;this[_0x5989e7(0x2fb)](this[_0x5989e7(0x10f)],_0xc45617);}[_0x28ce9c(0x107)](){const _0x1a8d89=_0x28ce9c;this['_disposed']=!0x0,this[_0x1a8d89(0x333)](),this['_source']=null,this['_pendingReason']=null;}[_0x28ce9c(0x3d0)](_0x2ee855){const _0x35f4ae=_0x28ce9c;let _0x1e6081=++this[_0x35f4ae(0x2ef)],_0x5eba34;try{_0x5eba34=this['_send'](_0x2ee855,{'timeout':this[_0x35f4ae(0x36d)]});}catch(_0x2d39f2){this['_onRequestFailed'](_0x1e6081,_0x2d39f2);return;}_0x5eba34 instanceof Promise&&_0x5eba34[_0x35f4ae(0xad)](_0x4de9b6=>this[_0x35f4ae(0x357)](_0x1e6081,_0x4de9b6));}[_0x28ce9c(0x357)](_0x2688aa,_0x4600cd){const _0x4e8df9=_0x28ce9c;if(this[_0x4e8df9(0x3e9)]||_0x2688aa!==this['_sendToken'])return;let _0x387dc9=_0x4cf44a(_0x4600cd,this[_0x4e8df9(0x10f)]);_0x387dc9!==null&&this[_0x4e8df9(0x2fb)](_0x387dc9,_0x4e8df9(0x269));}[_0x28ce9c(0x2fb)](_0x5bf3fb,_0x36b1b2){const _0x44df36=_0x28ce9c;this['_disposed']||(this[_0x44df36(0x333)](),this['_pendingReason']=null,this[_0x44df36(0x1e9)]=_0x5bf3fb,this['_timer']=setTimeout(()=>{const _0x205e66=_0x44df36;this['_timer']=null,this[_0x205e66(0x3c3)]?this[_0x205e66(0x117)](_0x36b1b2):this[_0x205e66(0x412)]=_0x36b1b2;},_0x5bf3fb));}[_0x28ce9c(0x117)](_0x2887d6){const _0x51586a=_0x28ce9c;let _0x4f53d8=this[_0x51586a(0x3c3)];if(!_0x4f53d8||this[_0x51586a(0x3e9)])return;let {changeset:_0x404716,unsyncedMutationCount:_0x55e6eb}=_0x4f53d8();this[_0x51586a(0x37b)](_0x2887d6),this[_0x51586a(0x1fb)](),this['_deliver'](_0x404716),this[_0x51586a(0x484)]=_0x404716[_0x51586a(0x2b9)]??this[_0x51586a(0x484)],this['_notifyResend'](_0x2887d6,_0x55e6eb);}['_countResend'](_0x3d608d){const _0x3a4862=_0x28ce9c;this[_0x3a4862(0x1b9)]+=0x1,_0x3d608d===_0x3a4862(0x309)||_0x3d608d===_0x3a4862(0x269)||_0x3d608d===_0x3a4862(0x19b)?this[_0x3a4862(0x10f)]=this[_0x3a4862(0x10f)]===0x0?0x3e8:Math[_0x3a4862(0x3d5)](this[_0x3a4862(0x10f)]*0x2,0x4e20):_0x3d608d===_0x3a4862(0x3a1)&&(this['_ackTimeout']=Math[_0x3a4862(0x3d5)](this[_0x3a4862(0x36d)]*0x2,this['_maxAckTimeout']));}[_0x28ce9c(0x2ff)](_0x17e80e,_0x37bfe6){const _0x3dae2b=_0x28ce9c;var _0x3319db,_0x3e4f13;this[_0x3dae2b(0x3e9)]||(_0x3319db=(_0x3e4f13=this[_0x3dae2b(0x34a)])['onResend'])==null||_0x3319db[_0x3dae2b(0x16b)](_0x3e4f13,{'reqId':this[_0x3dae2b(0x484)],'reason':_0x17e80e,'attempt':this[_0x3dae2b(0x1b9)],'elapsedMs':this[_0x3dae2b(0x307)],'unsyncedMutationCount':_0x37bfe6,'nextDelayMs':this[_0x3dae2b(0x36d)]});}[_0x28ce9c(0x333)](){const _0xcd98c5=_0x28ce9c;this[_0xcd98c5(0x14a)]!=null&&(clearTimeout(this[_0xcd98c5(0x14a)]),this[_0xcd98c5(0x14a)]=null);}};function _0x4cf44a(_0x21c806,_0x4c725d){const _0xb1a1d6=_0x28ce9c;if(_0x21c806 instanceof _0x5d1b30['TimeoutError'])return null;if(_0x21c806 instanceof _0x38af37[_0xb1a1d6(0x195)]){let _0x3c2fb8=_0x21c806[_0xb1a1d6(0x477)]??0x0;return _0x3c2fb8===0x0||_0x3c2fb8===0x198||_0x3c2fb8===0x1ad||_0x3c2fb8>=0x1f4?Math[_0xb1a1d6(0x249)](_0x4c725d,_0x546dda(_0x21c806)):null;}return _0x4c725d;}function _0x546dda(_0x637688){const _0xba4ff7=_0x28ce9c;var _0x344fd7;let _0x2eb7f3=(_0x344fd7=_0x637688[_0xba4ff7(0xcf)])==null||(_0x344fd7=_0x344fd7[_0xba4ff7(0x21c)](_0xba4ff7(0x11d)))==null?void 0x0:_0x344fd7[0x0],_0x53b56b=_0x2eb7f3===void 0x0?NaN:Number(_0x2eb7f3);return Number[_0xba4ff7(0x234)](_0x53b56b)&&_0x53b56b>0x0?_0x53b56b*0x3e8:0x0;}function _0x12d214(_0xf0482d){const _0x25258e=_0x28ce9c;return JSON[_0x25258e(0x122)](_0xf0482d)[_0x25258e(0x4a3)];}let _0x181346=function(_0x16bd94){const _0x4403de=_0x28ce9c;return _0x16bd94[_0x4403de(0xc1)]=_0x4403de(0xc1),_0x16bd94[_0x4403de(0x252)]=_0x4403de(0x252),_0x16bd94[_0x4403de(0x1d8)]=_0x4403de(0x1d8),_0x16bd94[_0x4403de(0x20e)]=_0x4403de(0x20e),_0x16bd94['CONFLICT']=_0x4403de(0x111),_0x16bd94[_0x4403de(0x21e)]=_0x4403de(0x21e),_0x16bd94[_0x4403de(0x41e)]=_0x4403de(0x41e),_0x16bd94[_0x4403de(0x10a)]=_0x4403de(0x10a),_0x16bd94[_0x4403de(0xcb)]=_0x4403de(0xcb),_0x16bd94[_0x4403de(0x47c)]=_0x4403de(0x47c),_0x16bd94[_0x4403de(0x208)]=_0x4403de(0x208),_0x16bd94;}({});var _0x361972=class{constructor(){const _0x57f95d=_0x28ce9c;_0x4c0132(this,'_event$',new _0x5d1b30[(_0x57f95d(0x479))]()),_0x4c0132(this,_0x57f95d(0x382),this[_0x57f95d(0x485)]['asObservable']());}[_0x28ce9c(0x2e9)](_0x199701){const _0x59f557=_0x28ce9c;this[_0x59f557(0x485)][_0x59f557(0x12d)](_0x199701);}},_0x3e652d=class{constructor(){const _0x28cfef=_0x28ce9c;_0x4c0132(this,_0x28cfef(0x352),new _0x5d1b30[(_0x28cfef(0x479))]()),_0x4c0132(this,_0x28cfef(0x48c),this[_0x28cfef(0x352)][_0x28cfef(0x2a6)]());}[_0x28ce9c(0x403)](_0x429873){const _0x3c9811=_0x28ce9c;this['_commentUpdate$'][_0x3c9811(0x12d)](_0x429873);}};function _0x26312a(_0x162878,_0x5edc7b){return function(_0x3fd03d,_0x35f975){_0x5edc7b(_0x3fd03d,_0x35f975,_0x162878);};}function _0x5da6ca(_0x4e9904,_0x52f341,_0x2812d0,_0x1fc31c){const _0x548cfe=_0x28ce9c;var _0x1b96d0=arguments['length'],_0xfa29d8=_0x1b96d0<0x3?_0x52f341:_0x1fc31c===null?_0x1fc31c=Object[_0x548cfe(0x30c)](_0x52f341,_0x2812d0):_0x1fc31c,_0x33c147;if(typeof Reflect==_0x548cfe(0x3be)&&typeof Reflect[_0x548cfe(0x408)]=='function')_0xfa29d8=Reflect[_0x548cfe(0x408)](_0x4e9904,_0x52f341,_0x2812d0,_0x1fc31c);else{for(var _0x35fc23=_0x4e9904[_0x548cfe(0x4a3)]-0x1;_0x35fc23>=0x0;_0x35fc23--)(_0x33c147=_0x4e9904[_0x35fc23])&&(_0xfa29d8=(_0x1b96d0<0x3?_0x33c147(_0xfa29d8):_0x1b96d0>0x3?_0x33c147(_0x52f341,_0x2812d0,_0xfa29d8):_0x33c147(_0x52f341,_0x2812d0))||_0xfa29d8);}return _0x1b96d0>0x3&&_0xfa29d8&&Object[_0x548cfe(0x16d)](_0x52f341,_0x2812d0,_0xfa29d8),_0xfa29d8;}let _0x2a43bc=class extends _0x594924[_0x28ce9c(0x270)]{constructor(_0x152be0){const _0x278982=_0x28ce9c;super(),this['_univerInstanceService']=_0x152be0,_0x4c0132(this,_0x278982(0x395),new Map()),_0x4c0132(this,_0x278982(0x351),new _0x5d1b30[(_0x278982(0x479))]()),this[_0x278982(0x416)]((0x0,_0x5d1b30['merge'])(this[_0x278982(0x464)]['getTypeOfUnitDisposed$'](_0x594924[_0x278982(0x3ed)][_0x278982(0x43c)])[_0x278982(0x3e8)]((0x0,_0x47dd8f[_0x278982(0x225)])(_0x3f3085=>_0x3f3085[_0x278982(0x3b8)]())),this[_0x278982(0x464)]['getTypeOfUnitDisposed$'](_0x594924[_0x278982(0x3ed)][_0x278982(0x310)])['pipe']((0x0,_0x47dd8f[_0x278982(0x225)])(_0x51e1db=>_0x51e1db[_0x278982(0x3b8)]())),this[_0x278982(0x464)][_0x278982(0x438)](_0x594924[_0x278982(0x3ed)][_0x278982(0x133)])[_0x278982(0x3e8)]((0x0,_0x47dd8f[_0x278982(0x225)])(_0x2a2725=>_0x2a2725[_0x278982(0x3b8)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x594924[_0x278982(0x3ed)][_0x278982(0x145)])[_0x278982(0x3e8)]((0x0,_0x47dd8f['map'])(_0x29f9df=>_0x29f9df[_0x278982(0x3b8)]())))[_0x278982(0x335)](_0x30375e=>this[_0x278982(0x27c)](_0x30375e)));}[_0x28ce9c(0xe0)](_0x315899){const _0x425ec5=_0x28ce9c;return this[_0x425ec5(0x395)][_0x425ec5(0x16a)](_0x315899)?(0x0,_0x5d1b30['of'])(this['_roomMembers'][_0x425ec5(0x21c)](_0x315899)):this['_roomCreated$'][_0x425ec5(0x3e8)]((0x0,_0x47dd8f[_0x425ec5(0x225)])(_0xbe807e=>{const _0x3dd805=_0x425ec5;if(_0xbe807e===_0x315899)return this['_roomMembers'][_0x3dd805(0x21c)](_0xbe807e);}));}[_0x28ce9c(0x296)](_0x566515,_0x214650){const _0x4110f8=_0x28ce9c;let _0x3be5fd=this[_0x4110f8(0x395)][_0x4110f8(0x21c)](_0x566515);_0x3be5fd||(_0x3be5fd=new _0x40354b(),this[_0x4110f8(0x395)][_0x4110f8(0x360)](_0x566515,_0x3be5fd),this[_0x4110f8(0x351)]['next'](_0x566515)),_0x3be5fd[_0x4110f8(0x296)](_0x214650);}['removeMember'](_0xc26e3d,_0x61e9f2){const _0x53f05d=_0x28ce9c;let _0x44d2b5=this[_0x53f05d(0x395)][_0x53f05d(0x21c)](_0xc26e3d);_0x44d2b5&&_0x44d2b5[_0x53f05d(0x491)](_0x61e9f2);}[_0x28ce9c(0x17b)](_0x51c4f3){const _0x7bc85d=_0x28ce9c;return this['_roomMembers'][_0x7bc85d(0x21c)](_0x51c4f3);}[_0x28ce9c(0x372)](_0x4627d6,_0x2a68d7){const _0x119416=_0x28ce9c;let _0x8f10dd=this[_0x119416(0x395)]['get'](_0x4627d6);if(_0x8f10dd)return _0x8f10dd[_0x119416(0x372)](_0x2a68d7);}[_0x28ce9c(0x27c)](_0x32becf){const _0xf66214=_0x28ce9c;let _0x2597e8=this['_roomMembers'][_0xf66214(0x21c)](_0x32becf);_0x2597e8&&(_0x2597e8[_0xf66214(0x107)](),this[_0xf66214(0x395)][_0xf66214(0x203)](_0x32becf));}[_0x28ce9c(0x107)](){const _0x463023=_0x28ce9c;this[_0x463023(0x395)][_0x463023(0x3ab)](_0x3e3e58=>_0x3e3e58[_0x463023(0x107)]()),this[_0x463023(0x395)][_0x463023(0x380)](),this[_0x463023(0x351)]['complete']();}};_0x2a43bc=_0x5da6ca([_0x26312a(0x0,_0x594924['IUniverInstanceService'])],_0x2a43bc);var _0x40354b=class extends _0x594924[_0x28ce9c(0x270)]{constructor(..._0x2f2fbc){const _0xf117af=_0x28ce9c;super(..._0x2f2fbc),_0x4c0132(this,_0xf117af(0x18c),new Map()),_0x4c0132(this,'_members$',new _0x5d1b30[(_0xf117af(0x21a))](this['_members'])),_0x4c0132(this,'members$',this['_members$']['asObservable']());}['dispose'](){const _0x1f3ca5=_0x28ce9c;this['_members']['clear'](),this[_0x1f3ca5(0x22b)]['complete']();}[_0x28ce9c(0x296)](_0x3ccb0a){const _0x3b20d7=_0x28ce9c;this[_0x3b20d7(0x18c)][_0x3b20d7(0x360)](_0x3ccb0a[_0x3b20d7(0x45e)],_0x3ccb0a),this[_0x3b20d7(0x1ae)]();}[_0x28ce9c(0x491)](_0xcffa39){const _0x5a47c9=_0x28ce9c;this[_0x5a47c9(0x18c)][_0x5a47c9(0x203)](_0xcffa39),this[_0x5a47c9(0x1ae)]();}[_0x28ce9c(0x372)](_0x5178cd){const _0x81e177=_0x28ce9c;return this[_0x81e177(0x18c)][_0x81e177(0x21c)](_0x5178cd);}[_0x28ce9c(0x1a8)](){const _0xac8f20=_0x28ce9c;return Array['from'](this[_0xac8f20(0x18c)][_0xac8f20(0x3dc)]());}[_0x28ce9c(0x1ae)](){const _0x5867e2=_0x28ce9c;this['_members$']['next'](this[_0x5867e2(0x18c)]);}};function _0x5b2e83(_0x237d44,_0x230eb4){const _0xa7c81b=_0x28ce9c;if(_0x387d19(_0x237d44))return _0x230eb4;if(_0x230eb4[_0xa7c81b(0x202)]===_0x59e2cb[_0xa7c81b(0x12b)][_0xa7c81b(0x3ce)]){let _0x15d9a0=_0x2b454c(_0x237d44),_0x419340=_0x230eb4;return{..._0x419340,'data':{..._0x419340[_0xa7c81b(0xfa)],'unitID':_0x237d44[_0xa7c81b(0x2bc)][_0xa7c81b(0x3f9)],'unitType':_0x237d44[_0xa7c81b(0x2bc)][_0xa7c81b(0x170)]??_0x419340[_0xa7c81b(0xfa)][_0xa7c81b(0x170)],'changeset':_0x15d9a0['toRemote'](_0x419340['data'][_0xa7c81b(0x265)],_0x555520(_0x237d44))}};}if(_0x230eb4[_0xa7c81b(0x202)]===_0x59e2cb[_0xa7c81b(0x12b)][_0xa7c81b(0x1b5)]){let _0x300f2d=_0x230eb4;return{..._0x300f2d,'data':{..._0x300f2d[_0xa7c81b(0xfa)],'unitID':_0x237d44[_0xa7c81b(0x2bc)][_0xa7c81b(0x3f9)],'unitType':_0x237d44[_0xa7c81b(0x2bc)][_0xa7c81b(0x170)]??_0x300f2d[_0xa7c81b(0xfa)][_0xa7c81b(0x170)]}};}return _0x230eb4;}function _0x17d79e(_0x28e7c4,_0x3c184d){const _0x55de9a=_0x28ce9c;if(_0x387d19(_0x28e7c4))return[_0x3c184d];switch(_0x3c184d[_0x55de9a(0x202)]){case _0x59e2cb[_0x55de9a(0x12b)][_0x55de9a(0x175)]:return[_0x146e75(_0x28e7c4,_0x3c184d)];case _0x59e2cb[_0x55de9a(0x12b)][_0x55de9a(0x1b4)]:return[_0x41e254(_0x28e7c4,_0x3c184d)];case _0x59e2cb['CollaborationEvent'][_0x55de9a(0x1f8)]:return[_0x7c1ce7(_0x28e7c4,_0x3c184d)];default:return[_0x3c184d];}}function _0x387d19(_0x5d0ff4){const _0x1d093e=_0x28ce9c;return _0x5d0ff4[_0x1d093e(0x2bc)][_0x1d093e(0x2be)]==null&&_0x5d0ff4['target'][_0x1d093e(0x3f9)]===_0x5d0ff4[_0x1d093e(0x1dd)]&&!_0x5d0ff4['changeset'];}function _0x146e75(_0x255a14,_0x2d585c){const _0x676785=_0x28ce9c;return{..._0x2d585c,'data':(0x0,_0x59e2cb[_0x676785(0x31c)])(_0x36322c(_0x255a14,(0x0,_0x59e2cb[_0x676785(0x18b)])(_0x2d585c[_0x676785(0xfa)])))};}function _0x7c1ce7(_0x3efe4e,_0x22300f){const _0x1945c7=_0x28ce9c;return{..._0x22300f,'data':_0x36322c(_0x3efe4e,_0x22300f[_0x1945c7(0xfa)])};}function _0x41e254(_0x4b2721,_0x485d81){const _0x16931d=_0x28ce9c;let _0x177d5e=_0x485d81[_0x16931d(0xfa)];return{..._0x485d81,'data':{..._0x177d5e,'changesets':_0x177d5e[_0x16931d(0x28a)][_0x16931d(0x225)](_0x122bcd=>(0x0,_0x59e2cb[_0x16931d(0x31c)])(_0x36322c(_0x4b2721,(0x0,_0x59e2cb[_0x16931d(0x18b)])(_0x122bcd))))}};}function _0x36322c(_0x5c9b60,_0x54d15f){return _0x2b454c(_0x5c9b60)['toLocal'](_0x54d15f,_0x555520(_0x5c9b60));}function _0x2b454c(_0x5af31d){const _0x4a669e=_0x28ce9c;if(!_0x5af31d[_0x4a669e(0x265)])throw Error(_0x4a669e(0x4a2));return _0x5af31d[_0x4a669e(0x265)];}function _0x555520(_0xa8289f){const _0x442cdc=_0x28ce9c;return{'localUnitId':_0xa8289f[_0x442cdc(0x1dd)],'unitType':_0xa8289f[_0x442cdc(0x170)],'target':_0xa8289f[_0x442cdc(0x2bc)]};}let _0x483f95=function(_0x52e006){const _0x20a5f1=_0x28ce9c;return _0x52e006[_0x52e006[_0x20a5f1(0x3a8)]=0x0]=_0x20a5f1(0x3a8),_0x52e006[_0x52e006[_0x20a5f1(0x16c)]=0x1]=_0x20a5f1(0x16c),_0x52e006[_0x52e006[_0x20a5f1(0x2de)]=0x2]=_0x20a5f1(0x2de),_0x52e006[_0x52e006[_0x20a5f1(0x3d9)]=0x3]=_0x20a5f1(0x3d9),_0x52e006;}({}),_0x316e3e={[_0x4500fa['CmdRspCode']['FAIL']]:_0x28ce9c(0x3b7),[_0x4500fa[_0x28ce9c(0x2f9)][_0x28ce9c(0x2f6)]]:_0x28ce9c(0x2a7),[_0x4500fa[_0x28ce9c(0x2f9)][_0x28ce9c(0x1da)]]:_0x28ce9c(0x493),[_0x4500fa[_0x28ce9c(0x2f9)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x28ce9c(0x13a),[_0x4500fa[_0x28ce9c(0x2f9)][_0x28ce9c(0x35f)]]:'session.room-cnt-exceeds'},_0x5e5039=class extends _0x594924[_0x28ce9c(0x1a9)]{get[_0x28ce9c(0x282)](){const _0x2cbe46=_0x28ce9c;return this[_0x2cbe46(0x1bb)][_0x2cbe46(0xe5)]();}constructor(_0x5cb59b,_0x17619c,_0x200477,_0x35eeb5,_0x5d1206,_0x57a429,_0x254859){const _0x9b7d01=_0x28ce9c;super(),this['_identity']=_0x5cb59b,this[_0x9b7d01(0x467)]=_0x200477,this['_memberService']=_0x35eeb5,this[_0x9b7d01(0x132)]=_0x5d1206,this[_0x9b7d01(0x445)]=_0x57a429,this[_0x9b7d01(0x238)]=_0x254859,_0x4c0132(this,_0x9b7d01(0x1bb),new _0x5d1b30[(_0x9b7d01(0x21a))](0x0)),_0x4c0132(this,'sessionStatus$',this[_0x9b7d01(0x1bb)]['asObservable']()),_0x4c0132(this,'_event$',new _0x5d1b30['Subject']()),_0x4c0132(this,'event$',this[_0x9b7d01(0x485)][_0x9b7d01(0x2a6)]()),_0x4c0132(this,_0x9b7d01(0x103),void 0x0),_0x4c0132(this,_0x9b7d01(0x2b5),void 0x0),_0x4c0132(this,_0x9b7d01(0xf1),!0x1),_0x4c0132(this,_0x9b7d01(0x460),null),this[_0x9b7d01(0xf1)]=!!this['_telemetryService'],_0x17619c[_0x9b7d01(0x3e8)]((0x0,_0x5d1b30[_0x9b7d01(0x13c)])(this['dispose$']))[_0x9b7d01(0x335)](_0x2565cc=>{const _0x54f05f=_0x9b7d01;if(_0x2565cc!==void 0x0){if(this[_0x54f05f(0x103)]=_0x2565cc,_0x2565cc)this[_0x54f05f(0x43a)](_0x2565cc),this[_0x54f05f(0x2b5)]=_0x2565cc[_0x54f05f(0x29f)]['subscribe'](_0x72989d=>{const _0x16871e=_0x54f05f;_0x72989d[_0x16871e(0x1e6)]===this[_0x16871e(0x46d)][_0x16871e(0x2bc)][_0x16871e(0x3f9)]&&this[_0x16871e(0x123)](_0x72989d);});else{var _0x63be7e;this[_0x54f05f(0x1e5)](),this['_sessionStatus$'][_0x54f05f(0x12d)](0x2),(_0x63be7e=this[_0x54f05f(0x2b5)])==null||_0x63be7e[_0x54f05f(0x413)](),this[_0x54f05f(0x2b5)]=null;}}});}[_0x28ce9c(0x1c0)](){const _0x4caca2=_0x28ce9c;var _0x276a07;return((_0x276a07=this[_0x4caca2(0x103)])==null?void 0x0:_0x276a07[_0x4caca2(0x45e)])??null;}['dispose'](){const _0x5f5350=_0x28ce9c;super[_0x5f5350(0x107)](),this['close'](),this[_0x5f5350(0x334)]['next'](),this[_0x5f5350(0x334)]['complete']();}[_0x28ce9c(0x47a)](){const _0x2e4f95=_0x28ce9c;var _0x31062b;this['_throwTelemetryCollaborationNewChangeset'](),(_0x31062b=this['_socket'])==null||_0x31062b['send']({'cmd':_0x4500fa[_0x2e4f95(0x3b9)][_0x2e4f95(0x168)],'data':{'roomID':this[_0x2e4f95(0x46d)][_0x2e4f95(0x2bc)][_0x2e4f95(0x3f9)]}}),this['_event$'][_0x2e4f95(0x427)](),this[_0x2e4f95(0x1bb)][_0x2e4f95(0x427)]();}[_0x28ce9c(0x123)](_0x3513e7){const _0x393369=_0x28ce9c;_0x3513e7[_0x393369(0x30e)]===_0x4500fa[_0x393369(0x3b9)][_0x393369(0x41a)]?this[_0x393369(0x1c3)](_0x3513e7):_0x3513e7[_0x393369(0x30e)]===_0x4500fa[_0x393369(0x3b9)][_0x393369(0x49b)]&&this[_0x393369(0x48d)](_0x3513e7);}[_0x28ce9c(0x43a)](_0x216381){const _0x2661ca=_0x28ce9c;this[_0x2661ca(0x1bb)][_0x2661ca(0x12d)](0x1),_0x216381[_0x2661ca(0xaf)]({'cmd':_0x4500fa[_0x2661ca(0x3b9)][_0x2661ca(0x41a)],'routeKey':this['_identity']['target'][_0x2661ca(0x3f9)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2661ca(0x46d)][_0x2661ca(0x2bc)]['unitId']}]}});}[_0x28ce9c(0x1c3)](_0x34676f){const _0x3388cb=_0x28ce9c;var _0x35c21c;if(_0x34676f['code']in _0x316e3e){this['_collaborationUIEventService'][_0x3388cb(0x2e9)]({'id':_0x3388cb(0x41e),'data':_0x316e3e[_0x34676f['code']]}),this[_0x3388cb(0x1bb)][_0x3388cb(0x12d)](0x2);return;}this[_0x3388cb(0x1bb)][_0x3388cb(0x12d)](0x3);let _0x27c0d3=(_0x35c21c=_0x34676f[_0x3388cb(0xfa)][_0x3388cb(0x3cf)][this[_0x3388cb(0x46d)][_0x3388cb(0x2bc)]['unitId']])==null?void 0x0:_0x35c21c[_0x3388cb(0x251)];_0x27c0d3&&_0x27c0d3[_0x3388cb(0x3ab)](_0x2c1238=>this[_0x3388cb(0x2ac)]['updateMember'](this['_identity'][_0x3388cb(0x1dd)],_0x2c1238));}[_0x28ce9c(0x48d)](_0x2d700e){const _0x52c413=_0x28ce9c;try{let _0x2378ad=_0x17d79e(this['_identity'],_0x2d700e[_0x52c413(0xfa)]);for(let _0x583cd7 of _0x2378ad)switch(_0x583cd7[_0x52c413(0x202)]){case _0x59e2cb[_0x52c413(0x12b)]['USERS_ENTER']:this['_onUserJoin'](_0x583cd7),this[_0x52c413(0x485)]['next'](_0x583cd7);break;case _0x59e2cb[_0x52c413(0x12b)][_0x52c413(0x226)]:this['_onUserLeave'](_0x583cd7),this[_0x52c413(0x485)][_0x52c413(0x12d)](_0x583cd7);break;case _0x59e2cb[_0x52c413(0x12b)][_0x52c413(0x320)]:case _0x59e2cb[_0x52c413(0x12b)]['CHANGESET_SHOULD_RETRY']:this[_0x52c413(0x110)](),this['_event$'][_0x52c413(0x12d)](_0x583cd7);break;case _0x59e2cb[_0x52c413(0x12b)]['MSG_FOR_ERROR']:this['_logService'][_0x52c413(0x430)](_0x52c413(0x155)+JSON[_0x52c413(0x122)](_0x583cd7)),this[_0x52c413(0x485)][_0x52c413(0x12d)](_0x583cd7);break;case _0x59e2cb[_0x52c413(0x12b)][_0x52c413(0x19c)]:this[_0x52c413(0x132)][_0x52c413(0x403)](_0x583cd7[_0x52c413(0xfa)]),this[_0x52c413(0x485)]['next'](_0x583cd7);break;default:this[_0x52c413(0x485)][_0x52c413(0x12d)](_0x583cd7);}}catch(_0x267d74){this[_0x52c413(0x467)][_0x52c413(0x430)](_0x267d74,_0x2d700e);}}[_0x28ce9c(0x22a)](_0x3656ae){const _0x9d8e6c=_0x28ce9c;this[_0x9d8e6c(0x2ac)][_0x9d8e6c(0x296)](this[_0x9d8e6c(0x46d)]['localUnitId'],_0x3656ae[_0x9d8e6c(0xfa)]);}[_0x28ce9c(0x12f)](_0x42662b){const _0x494b76=_0x28ce9c;this[_0x494b76(0x2ac)][_0x494b76(0x491)](this[_0x494b76(0x46d)]['localUnitId'],_0x42662b[_0x494b76(0xfa)][_0x494b76(0x45e)]);}async['send'](_0x1f83c0,_0x5ec4df,_0x43e0dc){const _0x524378=_0x28ce9c;if(this[_0x524378(0x282)]!==0x3||!this['_socket'])throw Error(_0x524378(0x3da));try{let _0x5f3c08=_0x5b2e83(this[_0x524378(0x46d)],_0x1f83c0);_0x5f3c08['eventID']===_0x59e2cb[_0x524378(0x12b)]['SUBMIT_CHANGESET']&&this[_0x524378(0x1f9)](_0x5f3c08);let _0xd5a189={'cmd':_0x4500fa[_0x524378(0x3b9)][_0x524378(0x383)],'routeKey':this[_0x524378(0x46d)][_0x524378(0x2bc)]['unitId'],'routeType':'','data':_0x5f3c08};return _0x43e0dc===void 0x0?this['_socket'][_0x524378(0xaf)](_0xd5a189):this[_0x524378(0x103)]['send'](_0xd5a189,_0x43e0dc);}catch(_0x2955e9){this['_logService'][_0x524378(0x430)](_0x2955e9);}}[_0x28ce9c(0x1f9)](_0x5c05e5){const _0x2b48bb=_0x28ce9c;if(!this['_shouldReportTelemetry'])return;let {data:_0x5a2122}=_0x5c05e5,{unitID:_0x1395ae,changeset:_0x3d906f}=_0x5a2122,{mutations:_0x3200a,type:_0x1b1255}=_0x3d906f;this[_0x2b48bb(0x460)]={'unitId':_0x1395ae,'type':_0x1b1255,'startTime':performance[_0x2b48bb(0x241)](),'stopTime':0x0,'duration':0x0,'size':_0x12d214(_0x3200a)};}[_0x28ce9c(0x110)](){const _0x4c2851=_0x28ce9c;this[_0x4c2851(0xf1)]&&(this['_telemetryInfo']?(this[_0x4c2851(0x460)][_0x4c2851(0x3d8)]=performance[_0x4c2851(0x241)](),this[_0x4c2851(0x460)][_0x4c2851(0x1e2)]=this['_telemetryInfo'][_0x4c2851(0x3d8)]-this[_0x4c2851(0x460)][_0x4c2851(0xe9)],this[_0x4c2851(0x238)][_0x4c2851(0x1c6)](_0x4c2851(0x442),this[_0x4c2851(0x460)]),this['_telemetryInfo']=null):this['_logService'][_0x4c2851(0x430)](_0x4c2851(0x3b0),_0x4c2851(0x38a)));}[_0x28ce9c(0x1e5)](){this['_telemetryInfo']=null;}};_0x5e5039=_0x5da6ca([_0x26312a(0x2,_0x594924['ILogService']),_0x26312a(0x3,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x2a43bc)),_0x26312a(0x4,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x3e652d)),_0x26312a(0x5,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972)),_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x276fcd['ITelemetryService']))],_0x5e5039);let _0x2d518e=(0x0,_0x594924[_0x28ce9c(0x2ab)])(_0x28ce9c(0xcc));function _0x2499a5(_0xe65a2d,_0x243925){const _0x333e46=_0x28ce9c;return _0x243925===''||_0x243925==null?_0x333e46(0x377)+_0xe65a2d:_0x333e46(0x377)+_0xe65a2d+'-'+encodeURIComponent(_0x243925);}function _0x55f048(_0x3095f6){const _0x5d70d7=_0x28ce9c;let {unitID:_0xc27ca0,mutations:_0x3275fb}=_0x3095f6;return{'unitId':_0xc27ca0,'subUnitId':_0x3275fb[_0x5d70d7(0x4a3)]>0x0?_0x3275fb[0x0][_0x5d70d7(0x26a)][_0x5d70d7(0x13d)]:null};}let _0x18fc5c=class{constructor(_0x46d7e2,_0x3c9f73,_0x15084c){const _0x14a834=_0x28ce9c;this[_0x14a834(0x476)]=_0x46d7e2,this[_0x14a834(0x116)]=_0x3c9f73,this[_0x14a834(0x2d8)]=_0x15084c;}['transformSelections'](_0x5026c){const _0x22c6a7=_0x28ce9c;var _0x3f2c01,_0x1e3ec1;let _0x4c37d1=this[_0x22c6a7(0x476)][_0x22c6a7(0x21c)](_0x2f8369[_0x22c6a7(0x127)]),{unitId:_0x3f4743,subUnitId:_0x220891}=_0x55f048(_0x5026c),_0x448d1a=_0x4c37d1==null?void 0x0:_0x4c37d1[_0x22c6a7(0x3bd)](_0x3f4743)['getCurrentSelections'](),_0x158930=(_0x3f2c01=this[_0x22c6a7(0x2d8)][_0x22c6a7(0x35a)](_0x3f4743))==null||(_0x3f2c01=_0x3f2c01[_0x22c6a7(0x1c4)]())==null?void 0x0:_0x3f2c01[_0x22c6a7(0x177)]();if(_0x448d1a['length']===0x0||!_0x3f4743||!_0x220891)return;let _0x5b1c47=[{'id':_0x2f8369[_0x22c6a7(0x15f)]['id'],'params':{'unitId':_0x3f4743,'subUnitId':_0x158930,'selections':_0x594924[_0x22c6a7(0x266)][_0x22c6a7(0x2e7)](_0x448d1a)}}],_0x43711f=this[_0x22c6a7(0x116)][_0x22c6a7(0x42a)](_0x5026c,_0x5b1c47);if(!(0x0,_0x59e2cb[_0x22c6a7(0x257)])(_0x43711f))throw _0x43711f[_0x22c6a7(0x430)];let _0x1b03fb=(_0x1e3ec1=_0x43711f[_0x22c6a7(0x305)][0x0])==null||(_0x1e3ec1=_0x1e3ec1[_0x22c6a7(0x26a)])==null?void 0x0:_0x1e3ec1[_0x22c6a7(0x1ed)];if(Array[_0x22c6a7(0x2c3)](_0x1b03fb)&&_0x1b03fb['length']){if(_0x1b03fb[_0x22c6a7(0x4a3)]===_0x5b1c47[0x0][_0x22c6a7(0x26a)][_0x22c6a7(0x1ed)][_0x22c6a7(0x4a3)]&&_0x1b03fb['every']((_0x3c9437,_0x56276e)=>_0x594924[_0x22c6a7(0x455)][_0x22c6a7(0x2e4)](_0x3c9437[_0x22c6a7(0x31f)],_0x5b1c47[0x0]['params'][_0x22c6a7(0x1ed)][_0x56276e][_0x22c6a7(0x31f)])))return;this[_0x22c6a7(0x476)][_0x22c6a7(0x21c)](_0x594924[_0x22c6a7(0x126)])[_0x22c6a7(0x139)](_0x2f8369['SetSelectionsOperation']['id'],{'unitId':_0x3f4743,'subUnitId':_0x158930,'selections':_0x1b03fb});}}};_0x18fc5c=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x1,_0x59e2cb[_0x28ce9c(0x3c2)]),_0x26312a(0x2,_0x594924['IUniverInstanceService'])],_0x18fc5c);let _0x141436=(0x0,_0x594924[_0x28ce9c(0x2ab)])(_0x28ce9c(0x473)),_0x269d12=function(_0x5ab3bd){const _0x4d56c8=_0x28ce9c;return _0x5ab3bd[_0x5ab3bd[_0x4d56c8(0x194)]=0x0]=_0x4d56c8(0x194),_0x5ab3bd[_0x5ab3bd['OTHER_CLIENTS_EDITING']=0x1]=_0x4d56c8(0xe3),_0x5ab3bd;}({});function _0x2e1348(_0x39fea2){const _0x5b0dae=_0x28ce9c;var _0x56094d;return!!((_0x56094d=_0x39fea2[_0x5b0dae(0x26a)])!=null&&_0x56094d[_0x5b0dae(0x1e0)]);}let _0x23d2e2=new Set([_0x2f8369['InsertSheetMutation']['id']]),_0xb4df6=new Set([_0x25004e[_0x28ce9c(0x2d4)]['id'],_0x25004e['EnsureSlideMasterPageMutation']['id'],_0x25004e[_0x28ce9c(0x2af)]['id'],_0x25004e[_0x28ce9c(0x26e)]['id']]);function _0x346ae0(_0x4e7fac,_0x1fc1a4=_0x23d2e2){const _0x17865b=_0x28ce9c;let _0x175af2=[];for(let _0x1a451a of _0x4e7fac){if(_0x1fc1a4[_0x17865b(0x16a)](_0x1a451a['id'])||_0x2e1348(_0x1a451a)){if(_0x175af2[_0x17865b(0x4a3)]>0x0)break;_0x175af2['push'](_0x1a451a);break;}_0x175af2[_0x17865b(0x210)](_0x1a451a);}return _0x175af2;}function _0x2907bf(_0x2ddcf2,_0x5ad065,_0x31a9a1,_0x50df7a,_0x2869d5){const _0x473adc=_0x28ce9c;let _0x2fba56=_0x346ae0(_0x2ddcf2),_0x21e2c7=_0x2869d5[_0x473adc(0x298)](),_0x1f6190=(_0x21e2c7==null?void 0x0:_0x21e2c7[_0x473adc(0x267)])??_0x473adc(0x420),_0x48b91c=(_0x21e2c7==null?void 0x0:_0x21e2c7[_0x473adc(0x45e)])??'unknown';return{'changeset':{'unitID':_0x5ad065,'type':(0x0,_0x59e2cb[_0x473adc(0x128)])(_0x31a9a1[_0x473adc(0x2f0)](_0x5ad065)),'baseRev':_0x50df7a['getCurrentRevOfUnit'](_0x5ad065),'revision':0x0,'userID':_0x1f6190,'memberID':_0x48b91c,'mutations':_0x2fba56},'pendingMutations':_0x2ddcf2['slice'](_0x2fba56[_0x473adc(0x4a3)])};}let _0x1f5471=_0x2907bf;function _0x306945(_0x529225,_0x2752a4,_0x2bc812,_0x426c22,_0x359afd){const _0x5e7f08=_0x28ce9c;let _0x44c16f=_0x346ae0(_0x529225,_0xb4df6),_0x1bc19d=_0x359afd[_0x5e7f08(0x298)](),_0xf59f26=(_0x1bc19d==null?void 0x0:_0x1bc19d[_0x5e7f08(0x267)])??'unknown',_0x18f6ea=(_0x1bc19d==null?void 0x0:_0x1bc19d[_0x5e7f08(0x45e)])??_0x5e7f08(0x420);return{'changeset':{'unitID':_0x2752a4,'type':(0x0,_0x59e2cb['mapDocumentTypeToUniverInstanceType'])(_0x2bc812[_0x5e7f08(0x2f0)](_0x2752a4)),'baseRev':_0x426c22['getCurrentRevOfUnit'](_0x2752a4),'revision':0x0,'userID':_0xf59f26,'memberID':_0x18f6ea,'mutations':_0x44c16f},'pendingMutations':_0x529225[_0x5e7f08(0x15e)](_0x44c16f[_0x5e7f08(0x4a3)])};}function _0x2ee504(_0x5a7ef0,_0x2264cc,_0x95a4fe,_0x2afa68,_0x2e721b){const _0x45b47d=_0x28ce9c;let _0x30dbc2=_0x5a7ef0[_0x45b47d(0x3ec)]((_0x2aaa5e,_0x1b9ef6)=>{const _0xb30809=_0x45b47d;let _0x2a03ba=_0x2aaa5e[_0x2aaa5e[_0xb30809(0x4a3)]-0x1],{id:_0x2b8237}=_0x2a03ba??{},{id:_0x2f1e22,type:_0x26f529}=_0x1b9ef6,_0x5e0657=_0x1b9ef6[_0xb30809(0x26a)];if(_0x2b8237&&_0x2b8237!==_0x2f1e22)throw Error(_0xb30809(0x255)+_0x2b8237+_0xb30809(0x39c)+_0x2f1e22+'.');if(!_0x2a03ba)return[{'id':_0x2f1e22,'type':_0x26f529,'params':{'unitId':_0x5e0657['unitId'],'textRanges':_0x5e0657[_0xb30809(0x45d)],'actions':_0x5e0657[_0xb30809(0xd1)]}}];let _0x5e0784=_0x2a03ba[_0xb30809(0x26a)];return _0x333ef5(_0x5e0784,_0x5e0657)?[..._0x2aaa5e[_0xb30809(0x15e)](0x0,-0x1),{..._0x2a03ba,'id':_0x2f1e22,'type':_0x26f529,'params':{'unitId':_0x5e0657[_0xb30809(0x3f9)],'textRanges':_0x5e0657[_0xb30809(0x45d)],'actions':_0x594924['JSONX'][_0xb30809(0x285)](_0x5e0784[_0xb30809(0xd1)],_0x5e0657[_0xb30809(0xd1)])}}]:[..._0x2aaa5e,{'id':_0x2f1e22,'type':_0x26f529,'params':{'unitId':_0x5e0657[_0xb30809(0x3f9)],'textRanges':_0x5e0657[_0xb30809(0x45d)],'actions':_0x5e0657['actions']}}];},[]),_0x4bf063=_0x2e721b[_0x45b47d(0x298)](),_0x14c770=(_0x4bf063==null?void 0x0:_0x4bf063[_0x45b47d(0x267)])??_0x45b47d(0x420),_0x3a3d2f=(_0x4bf063==null?void 0x0:_0x4bf063[_0x45b47d(0x45e)])??'unknown';return{'changeset':{'unitID':_0x2264cc,'type':(0x0,_0x59e2cb[_0x45b47d(0x128)])(_0x95a4fe[_0x45b47d(0x2f0)](_0x2264cc)),'baseRev':_0x2afa68['getCurrentRevOfUnit'](_0x2264cc),'revision':0x0,'userID':_0x14c770,'memberID':_0x3a3d2f,'mutations':_0x30dbc2},'pendingMutations':_0x5a7ef0[_0x45b47d(0x15e)](_0x5a7ef0[_0x45b47d(0x4a3)])};}function _0x333ef5(_0xc644da,_0x41cb32){const _0x48d9e2=_0x28ce9c;return!_0x575d58(_0xc644da)&&!_0x575d58(_0x41cb32)&&_0x23bcd4(_0xc644da[_0x48d9e2(0xd1)],_0x41cb32[_0x48d9e2(0xd1)]);}function _0x575d58(_0x434350){const _0x5cadd2=_0x28ce9c;return _0x434350[_0x5cadd2(0x443)]!==void 0x0;}function _0x23bcd4(_0x40e860,_0x5202f8){return _0x32081a(_0x40e860)&&_0x32081a(_0x5202f8)&&!_0x210d4e(_0x40e860)&&!_0x210d4e(_0x5202f8)&&!_0x403653(_0x40e860)&&!_0x403653(_0x5202f8);}function _0x32081a(_0x27d919){const _0x1fbab9=_0x28ce9c;return _0x41b5aa(_0x27d919)[_0x1fbab9(0x1a1)](_0x1da7ce=>_0x2f8465(_0x1da7ce)&&_0x1da7ce['et']===_0x1fbab9(0x250));}function _0x403653(_0xe1011){const _0xe00d9=_0x28ce9c;return _0x41b5aa(_0xe1011)[_0xe00d9(0x1a1)](_0x2d53e4=>Array[_0xe00d9(0x2c3)](_0x2d53e4)||typeof _0x2d53e4==_0xe00d9(0x1a5)||typeof _0x2d53e4==_0xe00d9(0x33d));}function _0x210d4e(_0x1e7aa3){const _0x1a5984=_0x28ce9c;return _0x41b5aa(_0x1e7aa3)[_0x1a5984(0x1a1)](_0x17b07d=>!_0x2f8465(_0x17b07d)||_0x17b07d['et']!==_0x1a5984(0x250)||!Array['isArray'](_0x17b07d['e'])?!0x1:_0x17b07d['e']['some'](_0x199cbc=>!_0x2f8465(_0x199cbc)||!_0x2f8465(_0x199cbc[_0x1a5984(0x2b7)])?!0x1:Object[_0x1a5984(0x2fe)]['hasOwnProperty']['call'](_0x199cbc[_0x1a5984(0x2b7)],'tables')||Object[_0x1a5984(0x2fe)][_0x1a5984(0x3bb)][_0x1a5984(0x16b)](_0x199cbc[_0x1a5984(0x2b7)],_0x1a5984(0x1d0))||Object[_0x1a5984(0x2fe)][_0x1a5984(0x3bb)][_0x1a5984(0x16b)](_0x199cbc[_0x1a5984(0x2b7)],_0x1a5984(0x3e6))));}function _0x41b5aa(_0x5a1445){const _0x22b852=_0x28ce9c;if(!Array['isArray'](_0x5a1445))return[];let _0x2d7e47=_0x5a1445[_0x22b852(0x2cb)](_0x22b852(0x2b7))?_0x5a1445:_0x5a1445[_0x22b852(0x2db)](_0x3bbba2=>Array[_0x22b852(0x2c3)](_0x3bbba2)&&_0x3bbba2[_0x22b852(0x2cb)](_0x22b852(0x2b7)));if(!Array['isArray'](_0x2d7e47))return[];let _0x1a3aa6=_0x2d7e47[_0x22b852(0x37e)]('body');return _0x1a3aa6===-0x1?[]:_0x2d7e47[_0x22b852(0x15e)](_0x1a3aa6+0x1);}function _0x2f8465(_0x923197){const _0x5a513f=_0x28ce9c;return typeof _0x923197==_0x5a513f(0x3be)&&!!_0x923197&&!Array[_0x5a513f(0x2c3)](_0x923197);}function _0x27c171(_0x569582,_0x5e7e2f){const _0x2d35a8=_0x28ce9c;for(let _0x196eba of _0x569582[_0x2d35a8(0x43e)]){if(_0x196eba['id']!==_0x59e2cb[_0x2d35a8(0x378)]['id'])continue;let _0x1ff286=_0x196eba['params'];if((_0x1ff286==null?void 0x0:_0x1ff286[_0x2d35a8(0x3f9)])===_0x5e7e2f&&typeof _0x1ff286[_0x2d35a8(0x1f3)]==_0x2d35a8(0x33d))return{'unitId':_0x1ff286['unitId'],'revision':_0x1ff286[_0x2d35a8(0x1f3)]};}return null;}var _0x298b02,_0x2bd4c8,_0x134962,_0xbbbaf8=class extends Error{constructor(_0x1df697){const _0x3f848a=_0x28ce9c;super(_0x1df697 instanceof Error?_0x1df697[_0x3f848a(0x3f7)]:typeof _0x1df697==_0x3f848a(0x1a5)?_0x1df697:_0x3f848a(0x1a7)),this['applyError']=_0x1df697,this[_0x3f848a(0x1b2)]=_0x3f848a(0x3ad);}},_0x5828ce=class extends Error{constructor(_0xe0cd){const _0x5a791e=_0x28ce9c;var _0x598146;super(_0x5a791e(0x2f2)+((_0x598146=_0xe0cd[_0x5a791e(0x44a)])==null?void 0x0:_0x598146[_0x5a791e(0x1f3)])+'.'),this[_0x5a791e(0x141)]=_0xe0cd,this[_0x5a791e(0x1b2)]=_0x5a791e(0x439);}};let _0xe6a82b=function(_0x50355c){const _0x308d92=_0x28ce9c;return _0x50355c['NOT_COLLAB']='not_collab',_0x50355c[_0x308d92(0xef)]=_0x308d92(0x2fc),_0x50355c[_0x308d92(0x451)]=_0x308d92(0x2b3),_0x50355c[_0x308d92(0x2d1)]=_0x308d92(0x2ec),_0x50355c[_0x308d92(0x15d)]=_0x308d92(0x1bf),_0x50355c[_0x308d92(0xf9)]=_0x308d92(0x297),_0x50355c[_0x308d92(0x111)]=_0x308d92(0x3bf),_0x50355c[_0x308d92(0x2de)]='offline',_0x50355c;}({});var _0x4f8c8c=class{constructor(_0x25d176,_0x71f1e5,_0x594b95,_0xf1a7a8,_0x504919,_0x24ad70,_0x7f89bd,_0x3c4d09,_0x4fcd56){const _0x2eda62=_0x28ce9c;this[_0x2eda62(0x2b4)]=_0x25d176,this[_0x2eda62(0x23b)]=_0x71f1e5,this['_handler']=_0x504919,this['_commandService']=_0x24ad70,this[_0x2eda62(0x33e)]=_0x7f89bd,this[_0x2eda62(0x2ee)]=_0x3c4d09,this[_0x2eda62(0x15c)]=_0x4fcd56,_0x4c0132(this,'_awaitingChangeset',null),_0x4c0132(this,_0x2eda62(0x2aa),[]),this[_0x2eda62(0x162)]=_0x594b95,this[_0x2eda62(0x2aa)]=_0xf1a7a8;}[_0x28ce9c(0x328)](){const _0x45f8ea=_0x28ce9c;return!!this[_0x45f8ea(0x162)]||this['_pendingMutations'][_0x45f8ea(0x4a3)]>0x0;}[_0x28ce9c(0x107)](){}[_0x28ce9c(0x3c1)](){const _0x2d7740=_0x28ce9c;var _0x55174d;return(((_0x55174d=this[_0x2d7740(0x162)])==null?void 0x0:_0x55174d['mutations'][_0x2d7740(0x4a3)])??0x0)+this[_0x2d7740(0x2aa)][_0x2d7740(0x4a3)];}[_0x28ce9c(0x348)](_0x460113){const _0x1266a9=_0x28ce9c;return new _0x1591bd(_0x460113[_0x1266a9(0x2b9)]??0x0,(_0x1fe595,_0x268c6e)=>this[_0x1266a9(0x214)][_0x1266a9(0x478)](_0x1fe595,_0x268c6e),{...this['_handler'][_0x1266a9(0x10c)],'onResend':_0x2d08c9=>{const _0x16cb57=_0x1266a9;var _0x333e19,_0x26e1ea;return(_0x333e19=(_0x26e1ea=this[_0x16cb57(0x214)])[_0x16cb57(0x1f7)])==null?void 0x0:_0x333e19[_0x16cb57(0x16b)](_0x26e1ea,_0x2d08c9);}});}[_0x28ce9c(0x48f)](_0x2e53dc){const _0x5d0dd4=_0x28ce9c;if(this['_isEchoedAwaitingChangeset'](_0x2e53dc))return _0x5d0dd4(0x2a5);if(_0x27c171(_0x2e53dc,this[_0x5d0dd4(0x2b4)]))return _0x5d0dd4(0x191);let _0x5e07c7=this[_0x5d0dd4(0x498)]();return _0x2e53dc['revision']<=_0x5e07c7?_0x5d0dd4(0x1aa):_0x2e53dc[_0x5d0dd4(0x1f3)]>_0x5e07c7+0x1?'missing':'apply';}[_0x28ce9c(0x373)](_0x4ca5a4){const _0x1141b4=_0x28ce9c;let _0x5b0858=this[_0x1141b4(0x498)]();return _0x4ca5a4[_0x1141b4(0x1f3)]<=_0x5b0858?this['_isAckOfAwaitingChangeset'](_0x4ca5a4)?_0x1141b4(0xc2):'stale':_0x4ca5a4[_0x1141b4(0x1f3)]>_0x5b0858+0x1?_0x1141b4(0x3b3):_0x1141b4(0x12d);}[_0x28ce9c(0x341)](_0x5bc006,_0x25638b){const _0x54dce3=_0x28ce9c;switch(this[_0x54dce3(0x48f)](_0x5bc006)){case'echo':return this['onRemoteAck'](_0x5bc006);case _0x54dce3(0x191):return _0x25638b['onRemoteRevert'](_0x5bc006);case _0x54dce3(0x1aa):return this;case _0x54dce3(0x3b3):return this[_0x54dce3(0x49f)](_0x5bc006['revision']),_0x25638b[_0x54dce3(0x481)](_0x5bc006);case'apply':return _0x25638b[_0x54dce3(0x2f7)](_0x5bc006);}}[_0x28ce9c(0xd6)](_0x8023f5){const _0x4ad9c1=_0x28ce9c;return{'reason':'remote_revert','revert':{'revision':_0x27c171(_0x8023f5,this[_0x4ad9c1(0x2b4)])[_0x4ad9c1(0x1f3)],'memberId':_0x8023f5[_0x4ad9c1(0x45e)],'userId':_0x8023f5[_0x4ad9c1(0x267)]}};}[_0x28ce9c(0x490)](_0x2996c5){const _0x505f6e=_0x28ce9c;return{'reason':_0x2996c5 instanceof _0xbbbaf8?'apply_failed':_0x505f6e(0x417),'message':_0x2996c5 instanceof Error?_0x2996c5[_0x505f6e(0x3f7)]:typeof _0x2996c5==_0x505f6e(0x1a5)?_0x2996c5:void 0x0};}[_0x28ce9c(0x369)](_0x1cef6e){const _0x5c7371=_0x28ce9c;return{'reason':_0x1cef6e!=null&&_0x1cef6e[_0x5c7371(0x431)]?_0x5c7371(0x12c):(_0x1cef6e==null?void 0x0:_0x1cef6e['code'])===_0x4500fa[_0x5c7371(0x14d)][_0x5c7371(0xcd)]?_0x5c7371(0x406):_0x5c7371(0x290),'message':_0x1cef6e==null?void 0x0:_0x1cef6e['reason']};}['_retryReason'](_0x4b4f7c){const _0x14ec25=_0x28ce9c;return _0x4b4f7c===_0x4500fa['ErrorCode']['LICENSE_EDITING_CONNECTIONS_EXCEEDED']?_0x14ec25(0x19b):_0x14ec25(0x309);}[_0x28ce9c(0x49f)](_0x4060bc){const _0x4aa17c=_0x28ce9c;this['_handler'][_0x4aa17c(0x353)]({'from':this[_0x4aa17c(0x498)](),'to':_0x4060bc-0x1});}['_transformUndoredo'](_0x5f2062){const _0x539341=_0x28ce9c;this[_0x539341(0x33e)][_0x539341(0x40f)](this[_0x539341(0x2b4)],_0x5f2062);}[_0x28ce9c(0x11c)](_0x3d83a4){const _0x200c77=_0x28ce9c;var _0x5ae8e3,_0x5e8fa9;(_0x5ae8e3=(_0x5e8fa9=this[_0x200c77(0x214)])[_0x200c77(0x23a)])==null||_0x5ae8e3[_0x200c77(0x16b)](_0x5e8fa9,_0x3d83a4);}['_prepareTransformSelections'](_0x1c1c1e){const _0x181f41=_0x28ce9c;var _0x4444eb,_0xb9ea0b;return((_0x4444eb=(_0xb9ea0b=this['_handler'])[_0x181f41(0x29b)])==null?void 0x0:_0x4444eb[_0x181f41(0x16b)](_0xb9ea0b,_0x1c1c1e))??null;}[_0x28ce9c(0x1cd)](_0x3e8c87){const _0x13945a=_0x28ce9c;var _0x102b17,_0x1c44b6;return(_0x102b17=(_0x1c44b6=this['_handler'])[_0x13945a(0x179)])==null?void 0x0:_0x102b17[_0x13945a(0x16b)](_0x1c44b6,_0x3e8c87);}['_transformStateCache'](_0x13a69a){const _0x5a3ba3=_0x28ce9c;var _0x926ea5,_0x409445;return(_0x926ea5=(_0x409445=this[_0x5a3ba3(0x214)])[_0x5a3ba3(0x291)])==null?void 0x0:_0x926ea5[_0x5a3ba3(0x16b)](_0x409445,_0x13a69a);}[_0x28ce9c(0x20d)](_0xa2a595){const _0x14f33b=_0x28ce9c;var _0x53ccbd,_0xaf4673;return((_0x53ccbd=(_0xaf4673=this[_0x14f33b(0x214)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x53ccbd[_0x14f33b(0x16b)](_0xaf4673,_0xa2a595))??_0xa2a595;}[_0x28ce9c(0x1c2)](_0x4ced7f){const _0x18b190=_0x28ce9c;var _0xa698aa,_0x3e48a8;return((_0xa698aa=(_0x3e48a8=this[_0x18b190(0x214)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xa698aa['call'](_0x3e48a8,_0x4ced7f))??_0x4ced7f;}['_syncEditingCollabCursor'](_0x4d6c97){const _0x568b8b=_0x28ce9c;if(this[_0x568b8b(0x23b)]===_0x594924['UniverInstanceType']['UNIVER_DOC']){let {unitID:_0x39e99a,mutations:_0xa7f1d4,memberID:_0x36cfdf}=_0x4d6c97,_0x115059=_0xa7f1d4['length']>0x0?_0xa7f1d4[0x0][_0x568b8b(0x26a)]['textRanges']:[];if(Array['isArray'](_0x115059)&&_0x115059[_0x568b8b(0x4a3)]>0x0){var _0x1e6553,_0x11d91b;(_0x1e6553=(_0x11d91b=this[_0x568b8b(0x214)])[_0x568b8b(0x3bc)])==null||_0x1e6553[_0x568b8b(0x16b)](_0x11d91b,{'unitID':_0x39e99a,'memberID':_0x36cfdf,'textRanges':_0x115059});}}}['_updateLocalCache'](){const _0x22bd2c=_0x28ce9c;var _0x56f373;(_0x56f373=this[_0x22bd2c(0x15c)])==null||_0x56f373[_0x22bd2c(0x317)](this[_0x22bd2c(0x2b4)],this['type'],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x28ce9c(0x498)](){const _0xa740ea=_0x28ce9c;return this['_revisionService']['getCurrentRevOfUnit'](this[_0xa740ea(0x2b4)]);}[_0x28ce9c(0x1e7)](_0x2bb350){const _0x381e09=_0x28ce9c;let _0x5923a0=this[_0x381e09(0x162)];return!_0x5923a0||!_0x5923a0[_0x381e09(0x1f6)]||_0x5923a0[_0x381e09(0x2b9)]===null||_0x5923a0[_0x381e09(0x2b9)]===void 0x0?!0x1:_0x2bb350[_0x381e09(0x2b4)]===_0x5923a0['unitID']&&_0x2bb350[_0x381e09(0x1f6)]===_0x5923a0['sid']&&_0x2bb350[_0x381e09(0x2b9)]===_0x5923a0[_0x381e09(0x2b9)];}[_0x28ce9c(0x453)](_0x534885){const _0x4d4af1=_0x28ce9c;let _0x5414fb=this[_0x4d4af1(0x162)];return!(_0x5414fb!=null&&_0x5414fb[_0x4d4af1(0x1f6)])||_0x5414fb[_0x4d4af1(0x2b9)]==null||!_0x534885[_0x4d4af1(0x1f6)]||_0x534885[_0x4d4af1(0x2b9)]==null?!0x1:_0x534885[_0x4d4af1(0x1f6)]===_0x5414fb[_0x4d4af1(0x1f6)]&&_0x534885['reqId']===_0x5414fb['reqId'];}[_0x28ce9c(0x44b)](){const _0x29146a=_0x28ce9c;this[_0x29146a(0x2ee)][_0x29146a(0x31a)](this['unitID']);}['_executeRemoteChangeset'](_0x3a4139){const _0x5abadc=_0x28ce9c;let _0x3cee69=this[_0x5abadc(0x20d)](_0x3a4139);_0x3cee69=this[_0x5abadc(0x1c2)](_0x3cee69);let _0x5c02b0=this[_0x5abadc(0x140)](_0x3cee69),_0xab3fe1=(0x0,_0x594924['sequenceExecute'])(_0x3cee69['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0xab3fe1[_0x5abadc(0x150)])throw _0x5c02b0==null||_0x5c02b0[_0x5abadc(0x25a)](),new _0xbbbaf8(_0xab3fe1[_0x5abadc(0x430)]);_0x5c02b0==null||_0x5c02b0[_0x5abadc(0x239)](),this[_0x5abadc(0x1cd)](_0x3cee69),this['_transformStateCache'](_0x3cee69),this[_0x5abadc(0x1f5)](_0x3a4139),this[_0x5abadc(0x11c)](_0x3cee69),this[_0x5abadc(0xc3)](_0x3cee69),this[_0x5abadc(0x44b)]();}};let _0x200cdc=class extends _0x4f8c8c{constructor(_0x175e96,_0x18b613,_0x67fb8a,_0x40e47d,_0x5d571a,_0x25e4ff,_0x5a0f17,_0x11b939,_0x551867,_0x100011){const _0x106164=_0x28ce9c;super(_0x175e96,_0x18b613,null,[],_0x67fb8a,_0x5a0f17,_0x25e4ff,_0x40e47d,_0x100011),this[_0x106164(0x476)]=_0x5d571a,this['_logService']=_0x11b939,this[_0x106164(0x116)]=_0x551867,this[_0x106164(0x2f3)]=_0x100011,_0x4c0132(this,_0x106164(0x477),'synced');}[_0x28ce9c(0x342)](_0x19f867){const _0x100f3b=_0x28ce9c;let _0x1f5bf0=this[_0x100f3b(0x476)]['createInstance'](_0xd87b49,this[_0x100f3b(0x2b4)],this[_0x100f3b(0x23b)],[_0x19f867],this['_handler']);return _0x1f5bf0[_0x100f3b(0x2fb)](),_0x1f5bf0[_0x100f3b(0x2d2)](),_0x1f5bf0;}[_0x28ce9c(0x26b)](_0x33688f){const _0x134fd9=_0x28ce9c;return this[_0x134fd9(0x341)](_0x33688f,{'onMissing':()=>this['_injector'][_0x134fd9(0x26c)](_0x1b7c12,this[_0x134fd9(0x2b4)],this['type'],null,[],null,[_0x33688f],this[_0x134fd9(0x214)],void 0x0),'onApply':()=>this[_0x134fd9(0x2e8)](_0x33688f),'onRemoteRevert':()=>this[_0x134fd9(0x218)](this['_remoteRevertInfo'](_0x33688f))});}[_0x28ce9c(0x2e8)](_0x6f97db){const _0x57e7c7=_0x28ce9c;try{let _0x5edcde=this['_transformService'][_0x57e7c7(0x42a)](_0x6f97db,[_0x59e2cb[_0x57e7c7(0x30f)]]);if((0x0,_0x59e2cb[_0x57e7c7(0x257)])(_0x5edcde)){let {c1Prime:_0x13bf1d}=_0x5edcde;return this[_0x57e7c7(0x356)](_0x13bf1d),this;}throw _0x5edcde[_0x57e7c7(0x430)];}catch(_0x33d5cc){return this[_0x57e7c7(0x467)][_0x57e7c7(0x430)](_0x33d5cc),this[_0x57e7c7(0x218)](this['_conflictInfoFromError'](_0x33d5cc));}}[_0x28ce9c(0x218)](_0x1983b5){const _0x452eee=_0x28ce9c;return this[_0x452eee(0x476)][_0x452eee(0x26c)](_0x40e010,this['unitID'],this[_0x452eee(0x23b)],null,[],this[_0x452eee(0x214)],_0x1983b5);}['onRemoteAck'](_0x45e408){const _0x3c41fd=_0x28ce9c;if(this[_0x3c41fd(0x373)](_0x45e408)==='stale')return this;throw Error(_0x3c41fd(0x3fd));}[_0x28ce9c(0x34e)](){const _0x1b9c3c=_0x28ce9c;throw Error(_0x1b9c3c(0x20b));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x292a09=_0x28ce9c;return this['_injector'][_0x292a09(0x26c)](_0x1f738c,this['unitID'],this[_0x292a09(0x23b)],null,[],this[_0x292a09(0x214)]);}[_0x28ce9c(0x3d4)](){return this;}[_0x28ce9c(0x31e)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x61705a=_0x28ce9c;let _0x294896=this[_0x61705a(0x2ee)]['getCurrentRevOfUnit'](this[_0x61705a(0x2b4)]);return this[_0x61705a(0x214)][_0x61705a(0x353)]({'from':_0x294896,'to':0x0}),this[_0x61705a(0x476)][_0x61705a(0x26c)](_0x1b7c12,this[_0x61705a(0x2b4)],this['type'],null,[],null,[],this[_0x61705a(0x214)],void 0x0);}};_0x200cdc=_0x5da6ca([_0x26312a(0x3,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x4,(0x0,_0x594924['Inject'])(_0x594924['Injector'])),_0x26312a(0x5,_0x594924[_0x28ce9c(0x321)]),_0x26312a(0x6,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0x7,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0x8,_0x59e2cb[_0x28ce9c(0x3c2)]),_0x26312a(0x9,(0x0,_0x594924['Optional'])(_0x2d518e))],_0x200cdc);let _0xd87b49=_0x298b02=class extends _0x4f8c8c{constructor(_0x3ff970,_0x386b58,_0x407967,_0x253477,_0x53f156,_0xadbae6,_0x11cddb,_0x49f28c,_0xd74d41,_0xa756d0,_0x4c8d07,_0x3deace,_0x2dd779,_0x36b9e8){const _0x3c8d38=_0x28ce9c;super(_0x3ff970,_0x386b58,null,_0x407967,_0x253477,_0xd74d41,_0x2dd779,_0xadbae6,_0x36b9e8),this['_injector']=_0x53f156,this[_0x3c8d38(0x474)]=_0x11cddb,this['_logService']=_0x49f28c,this['_configService']=_0xa756d0,this[_0x3c8d38(0x116)]=_0x4c8d07,this[_0x3c8d38(0x464)]=_0x3deace,_0x4c0132(this,_0x3c8d38(0x477),_0x3c8d38(0x2b3)),_0x4c0132(this,_0x3c8d38(0x125),null),_0x4c0132(this,_0x3c8d38(0x1a6),null);}[_0x28ce9c(0x342)](_0x11da69){const _0x443ddc=_0x28ce9c;return this[_0x443ddc(0x2aa)][_0x443ddc(0x210)](_0x11da69),this['_updateLocalCache'](),this;}[_0x28ce9c(0x26b)](_0x117b4a){const _0x2373dd=_0x28ce9c;return this['_dispatchRemoteChangeset'](_0x117b4a,{'onMissing':()=>(this[_0x2373dd(0x2c7)](),this[_0x2373dd(0x476)]['createInstance'](_0x1b7c12,this['unitID'],this[_0x2373dd(0x23b)],null,this[_0x2373dd(0x2aa)],null,[_0x117b4a],this[_0x2373dd(0x214)],void 0x0)),'onApply':()=>this[_0x2373dd(0x2e8)](_0x117b4a),'onRemoteRevert':()=>this[_0x2373dd(0x218)](this['_remoteRevertInfo'](_0x117b4a))});}[_0x28ce9c(0x2e8)](_0x7885a0){const _0x2c38ee=_0x28ce9c;try{let _0x2b4852=this[_0x2c38ee(0x116)][_0x2c38ee(0x42a)](_0x7885a0,this['_pendingMutations']);if((0x0,_0x59e2cb[_0x2c38ee(0x257)])(_0x2b4852)){let {c1Prime:_0x1e98d4,m2Prime:_0x2163de}=_0x2b4852;this['_executeRemoteChangeset'](_0x1e98d4);let _0x3af766=this[_0x2c38ee(0x476)][_0x2c38ee(0x26c)](_0x298b02,this[_0x2c38ee(0x2b4)],this['type'],_0x2163de,this[_0x2c38ee(0x214)]);_0x3af766[_0x2c38ee(0x2d2)](),this['_clearScheduledTask']();let _0x7bfdf6=new Date()[_0x2c38ee(0x247)](),_0x2098ba=this[_0x2c38ee(0x125)]?Math[_0x2c38ee(0x249)](this[_0x2c38ee(0x125)]-_0x7bfdf6,0x0):this['_getSendChangesetTimeout']();return _0x3af766[_0x2c38ee(0x2fb)](_0x2098ba),_0x3af766;}throw _0x2b4852['error'];}catch(_0x266ab5){return this['_logService'][_0x2c38ee(0x430)](_0x266ab5),this[_0x2c38ee(0x218)](this[_0x2c38ee(0x490)](_0x266ab5));}}[_0x28ce9c(0x345)](_0x480f2a){const _0x33bdb3=_0x28ce9c;if(this[_0x33bdb3(0x373)](_0x480f2a)===_0x33bdb3(0x2c8))return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x28ce9c(0x34e)](){const _0x54cba5=_0x28ce9c;throw Error(_0x54cba5(0xb3));}[_0x28ce9c(0x152)](){return this;}[_0x28ce9c(0x2d3)](){const _0x178a95=_0x28ce9c;return this[_0x178a95(0x2c7)](),this[_0x178a95(0x476)]['createInstance'](_0x1f738c,this[_0x178a95(0x2b4)],this[_0x178a95(0x23b)],null,this[_0x178a95(0x2aa)],this[_0x178a95(0x214)]);}[_0x28ce9c(0x3d4)](){return this;}[_0x28ce9c(0x2fb)](_0x1ca0a1){const _0x54d451=_0x28ce9c;let _0x49aa1c=_0x1ca0a1??this['_getSendChangesetTimeout']();this[_0x54d451(0x125)]=new Date()['getTime']()+_0x49aa1c,this[_0x54d451(0x1a6)]=setTimeout(()=>{const _0x5ce60c=_0x54d451;this[_0x5ce60c(0x2c7)]();let _0x54e28c=null;switch(this['type']){case _0x594924['UniverInstanceType'][_0x5ce60c(0x43c)]:_0x54e28c=_0x2907bf(this[_0x5ce60c(0x2aa)],this['unitID'],this[_0x5ce60c(0x464)],this['_revisionService'],this[_0x5ce60c(0x474)]);break;case _0x594924[_0x5ce60c(0x3ed)][_0x5ce60c(0x310)]:_0x54e28c=this[_0x5ce60c(0x2aa)][_0x5ce60c(0x492)](_0x19a94e=>_0x19a94e['id']===_0xbdd057[_0x5ce60c(0x1cb)]['id'])?_0x2ee504(this['_pendingMutations'],this[_0x5ce60c(0x2b4)],this[_0x5ce60c(0x464)],this[_0x5ce60c(0x2ee)],this['_userManagerService']):_0x2907bf(this[_0x5ce60c(0x2aa)],this[_0x5ce60c(0x2b4)],this[_0x5ce60c(0x464)],this[_0x5ce60c(0x2ee)],this['_userManagerService']);break;case _0x594924[_0x5ce60c(0x3ed)]['UNIVER_SLIDE']:_0x54e28c=_0x306945(this[_0x5ce60c(0x2aa)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x5ce60c(0x474)]);break;case _0x594924['UniverInstanceType']['UNIVER_PDF']:_0x54e28c=_0x1f5471(this[_0x5ce60c(0x2aa)],this[_0x5ce60c(0x2b4)],this[_0x5ce60c(0x464)],this[_0x5ce60c(0x2ee)],this[_0x5ce60c(0x474)]);break;case _0x594924[_0x5ce60c(0x3ed)]['UNIVER_BOARD']:_0x54e28c=_0x2907bf(this[_0x5ce60c(0x2aa)],this[_0x5ce60c(0x2b4)],this['_univerInstanceService'],this[_0x5ce60c(0x2ee)],this[_0x5ce60c(0x474)]);break;case _0x594924[_0x5ce60c(0x3ed)][_0x5ce60c(0x145)]:_0x54e28c=_0x2907bf(this[_0x5ce60c(0x2aa)],this['unitID'],this['_univerInstanceService'],this[_0x5ce60c(0x2ee)],this[_0x5ce60c(0x474)]);break;default:throw Error(_0x5ce60c(0x2bd)+this['type']+_0x5ce60c(0x424));}let {changeset:_0x47e070,pendingMutations:_0x2d4e05}=_0x54e28c,_0x1927f1=this[_0x5ce60c(0x348)](_0x47e070);_0x1927f1[_0x5ce60c(0x16e)](_0x47e070,_0x47e070[_0x5ce60c(0x43e)]['length']+_0x2d4e05[_0x5ce60c(0x4a3)]);let _0x5796f4=_0x2d4e05[_0x5ce60c(0x4a3)]?this[_0x5ce60c(0x476)][_0x5ce60c(0x26c)](_0x594950,this[_0x5ce60c(0x2b4)],this[_0x5ce60c(0x23b)],_0x47e070,_0x2d4e05,this[_0x5ce60c(0x214)],_0x1927f1):this['_injector'][_0x5ce60c(0x26c)](_0x3d552f,this['unitID'],this[_0x5ce60c(0x23b)],_0x47e070,this['_handler'],_0x1927f1);_0x5796f4['_updateLocalCache'](),this[_0x5ce60c(0x214)]['onStateChange'](this,_0x5796f4);},_0x49aa1c);}['_getSendChangesetTimeout'](){const _0x55e233=_0x28ce9c;let _0x42cb75=this[_0x55e233(0x36f)][_0x55e233(0x3ba)](_0xe358d2);return(_0x42cb75==null?void 0x0:_0x42cb75[_0x55e233(0x2df)])??0x7d0;}['resend'](){const _0x11ef4d=_0x28ce9c;throw Error(_0x11ef4d(0x173));}[_0x28ce9c(0x2c7)](){const _0x40d370=_0x28ce9c;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x40d370(0x1a6)]=null);}[_0x28ce9c(0x107)](){const _0x3172e9=_0x28ce9c;this[_0x3172e9(0x2c7)]();}[_0x28ce9c(0x218)](_0x1ebd97){const _0x120725=_0x28ce9c;return this[_0x120725(0x2c7)](),this[_0x120725(0x476)][_0x120725(0x26c)](_0x40e010,this[_0x120725(0x2b4)],this[_0x120725(0x23b)],null,this[_0x120725(0x2aa)],this[_0x120725(0x214)],_0x1ebd97);}};_0xd87b49=_0x298b02=_0x5da6ca([_0x26312a(0x4,(0x0,_0x594924['Inject'])(_0x594924['Injector'])),_0x26312a(0x5,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x262)])),_0x26312a(0x7,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0x8,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0x9,_0x594924['IConfigService']),_0x26312a(0xa,_0x59e2cb['ITransformService']),_0x26312a(0xb,_0x594924[_0x28ce9c(0xdf)]),_0x26312a(0xc,_0x594924[_0x28ce9c(0x321)]),_0x26312a(0xd,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0xd87b49);let _0x3d552f=_0x2bd4c8=class extends _0x4f8c8c{constructor(_0x25a000,_0x19e983,_0x5de84a,_0x18afd7,_0x53aa18,_0x17e099,_0x4cce0b,_0x9d975e,_0x451247,_0x13beef,_0x57eec3,_0xf99277){const _0x3dee1f=_0x28ce9c;super(_0x25a000,_0x19e983,_0x5de84a,[],_0x18afd7,_0x9d975e,_0x57eec3,_0x4cce0b,_0xf99277),this[_0x3dee1f(0x476)]=_0x17e099,this[_0x3dee1f(0x467)]=_0x451247,this[_0x3dee1f(0x116)]=_0x13beef,_0x4c0132(this,'status',_0x3dee1f(0x2ec)),_0x4c0132(this,'_submitter',void 0x0),this[_0x3dee1f(0x497)]=_0x53aa18??this['_createChangesetSubmitter'](_0x5de84a),this[_0x3dee1f(0x497)][_0x3dee1f(0x209)](()=>({'changeset':this[_0x3dee1f(0x162)],'unsyncedMutationCount':this[_0x3dee1f(0x3c1)]()})),_0x53aa18||this['_submitter'][_0x3dee1f(0x1fb)]();}[_0x28ce9c(0x342)](_0x2272ea){const _0x300dcf=_0x28ce9c;this['_detachSubmitter']();let _0x271f93=this['_injector'][_0x300dcf(0x26c)](_0x594950,this[_0x300dcf(0x2b4)],this[_0x300dcf(0x23b)],this[_0x300dcf(0x162)],[_0x2272ea],this[_0x300dcf(0x214)],this['_submitter']);return _0x271f93[_0x300dcf(0x2d2)](),_0x271f93;}[_0x28ce9c(0x26b)](_0x389e1e){const _0xb78eb8=_0x28ce9c;return this[_0xb78eb8(0x341)](_0x389e1e,{'onMissing':()=>(this['_detachSubmitter'](),this[_0xb78eb8(0x476)][_0xb78eb8(0x26c)](_0x1b7c12,this[_0xb78eb8(0x2b4)],this[_0xb78eb8(0x23b)],this[_0xb78eb8(0x162)],[],null,[_0x389e1e],this[_0xb78eb8(0x214)],this[_0xb78eb8(0x497)])),'onApply':()=>this[_0xb78eb8(0x2e8)](_0x389e1e),'onRemoteRevert':()=>this[_0xb78eb8(0x218)](this[_0xb78eb8(0xd6)](_0x389e1e))});}[_0x28ce9c(0x2e8)](_0x256bfc){const _0x3746ea=_0x28ce9c;try{let _0x324f5a=this[_0x3746ea(0x116)][_0x3746ea(0x355)]([_0x256bfc],[this[_0x3746ea(0x162)]],!0x1);if((0x0,_0x59e2cb[_0x3746ea(0x13b)])(_0x324f5a)){let {c1Prime:_0x5be88a,c2Prime:_0x21424a}=_0x324f5a;this[_0x3746ea(0x356)](_0x5be88a[0x0]),_0x21424a[0x0][_0x3746ea(0x314)]=this['_getCurrentRevision'](),this[_0x3746ea(0x1b7)]();let _0x28be34=this[_0x3746ea(0x476)]['createInstance'](_0x2bd4c8,this[_0x3746ea(0x2b4)],this['type'],_0x21424a[0x0],this[_0x3746ea(0x214)],this[_0x3746ea(0x497)]);return _0x28be34[_0x3746ea(0x2d2)](),_0x28be34;}throw _0x324f5a[_0x3746ea(0x430)];}catch(_0x19f6ed){return this[_0x3746ea(0x467)]['error'](_0x19f6ed),this[_0x3746ea(0x218)](this[_0x3746ea(0x490)](_0x19f6ed));}}[_0x28ce9c(0x345)](_0x283d02){const _0x46d1d7=_0x28ce9c;switch(this['_classifyAck'](_0x283d02)){case _0x46d1d7(0x2c8):return this[_0x46d1d7(0x467)][_0x46d1d7(0x115)](_0x46d1d7(0x164),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x283d02[_0x46d1d7(0x1f3)]+_0x46d1d7(0x2ea)+this[_0x46d1d7(0x498)]()+'.'),this;case _0x46d1d7(0xc2):return this[_0x46d1d7(0x497)][_0x46d1d7(0x107)](),this['_toSynced']();case _0x46d1d7(0x3b3):return this['_submitter'][_0x46d1d7(0x107)](),this[_0x46d1d7(0x49f)](_0x283d02[_0x46d1d7(0x1f3)]),this['_injector'][_0x46d1d7(0x26c)](_0x1b7c12,this[_0x46d1d7(0x2b4)],this['type'],this['_awaitingChangeset'],[],_0x283d02[_0x46d1d7(0x1f3)],[],this[_0x46d1d7(0x214)],void 0x0);case'next':return this[_0x46d1d7(0x497)][_0x46d1d7(0x107)](),this[_0x46d1d7(0x44b)](),this[_0x46d1d7(0x167)]();}}[_0x28ce9c(0x167)](){const _0x181f7e=_0x28ce9c;let _0x23da45=this[_0x181f7e(0x476)][_0x181f7e(0x26c)](_0x200cdc,this['unitID'],this[_0x181f7e(0x23b)],this[_0x181f7e(0x214)]);return _0x23da45[_0x181f7e(0x2d2)](),_0x23da45;}[_0x28ce9c(0x34e)](_0xe14ef3){const _0x2202d3=_0x28ce9c;return this[_0x2202d3(0x218)](this[_0x2202d3(0x369)](_0xe14ef3));}[_0x28ce9c(0x152)](_0x4a50ec,_0x4cfe35){const _0x5b4c8b=_0x28ce9c;var _0x27f54b;return _0x4a50ec[_0x5b4c8b(0x2b9)]===((_0x27f54b=this[_0x5b4c8b(0x162)])==null?void 0x0:_0x27f54b[_0x5b4c8b(0x2b9)])&&this[_0x5b4c8b(0x497)]['requestRetry'](this['_retryReason'](_0x4cfe35)),this;}[_0x28ce9c(0x2d3)](){const _0x267ddd=_0x28ce9c;return this[_0x267ddd(0x497)][_0x267ddd(0x107)](),this[_0x267ddd(0x476)][_0x267ddd(0x26c)](_0x1f738c,this[_0x267ddd(0x2b4)],this['type'],this[_0x267ddd(0x162)],[],this[_0x267ddd(0x214)]);}[_0x28ce9c(0x3d4)](){return this;}[_0x28ce9c(0x31e)](_0x23c2b4=_0x28ce9c(0x326)){const _0x2af597=_0x28ce9c;this[_0x2af597(0x497)][_0x2af597(0x16e)](this[_0x2af597(0x162)],this['_unsyncedMutationCount'](),_0x23c2b4);}[_0x28ce9c(0x218)](_0x2486c4){const _0x2b67dd=_0x28ce9c;return this[_0x2b67dd(0x497)]['dispose'](),this[_0x2b67dd(0x476)]['createInstance'](_0x40e010,this[_0x2b67dd(0x2b4)],this[_0x2b67dd(0x23b)],this[_0x2b67dd(0x162)],[],this[_0x2b67dd(0x214)],_0x2486c4);}[_0x28ce9c(0x107)](){this['_submitter']['dispose']();}[_0x28ce9c(0x1b7)](){const _0x615b9d=_0x28ce9c;this[_0x615b9d(0x497)][_0x615b9d(0x1d2)]();}};_0x3d552f=_0x2bd4c8=_0x5da6ca([_0x26312a(0x5,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x7,_0x594924['ICommandService']),_0x26312a(0x8,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0x9,_0x59e2cb[_0x28ce9c(0x3c2)]),_0x26312a(0xa,_0x594924[_0x28ce9c(0x321)]),_0x26312a(0xb,(0x0,_0x594924['Optional'])(_0x2d518e))],_0x3d552f);let _0x594950=_0x134962=class extends _0x4f8c8c{constructor(_0x1ebfaa,_0x468172,_0x1e4064,_0x1bbbc4,_0x10414c,_0x6fcde8,_0x4ad608,_0x42e801,_0x2551fa,_0x328cfc,_0x4a94fb,_0x1654e6,_0x50aa7c){const _0x262d56=_0x28ce9c;super(_0x1ebfaa,_0x468172,_0x1e4064,_0x1bbbc4,_0x10414c,_0x2551fa,_0x1654e6,_0x42e801,_0x50aa7c),this[_0x262d56(0x476)]=_0x4ad608,this[_0x262d56(0x467)]=_0x328cfc,this[_0x262d56(0x116)]=_0x4a94fb,this[_0x262d56(0x2f3)]=_0x50aa7c,_0x4c0132(this,'status','awaiting_with_pending'),_0x4c0132(this,_0x262d56(0x497),void 0x0),this['_submitter']=_0x6fcde8??this[_0x262d56(0x348)](_0x1e4064),this[_0x262d56(0x497)][_0x262d56(0x209)](()=>({'changeset':this[_0x262d56(0x162)],'unsyncedMutationCount':this[_0x262d56(0x3c1)]()})),_0x6fcde8||this[_0x262d56(0x497)]['armAckTimeout']();}['appendMutation'](_0x4e939a){const _0x43ddf1=_0x28ce9c;return this[_0x43ddf1(0x2aa)][_0x43ddf1(0x210)](_0x4e939a),this[_0x43ddf1(0x2d2)](),this;}[_0x28ce9c(0x26b)](_0x56e0c9){const _0x38493b=_0x28ce9c;return this[_0x38493b(0x341)](_0x56e0c9,{'onMissing':()=>(this[_0x38493b(0x1b7)](),this['_injector'][_0x38493b(0x26c)](_0x1b7c12,this[_0x38493b(0x2b4)],this['type'],this[_0x38493b(0x162)],this[_0x38493b(0x2aa)],null,[_0x56e0c9],this[_0x38493b(0x214)],this[_0x38493b(0x497)])),'onApply':()=>this[_0x38493b(0x2e8)](_0x56e0c9),'onRemoteRevert':()=>this[_0x38493b(0x218)](this[_0x38493b(0xd6)](_0x56e0c9))});}[_0x28ce9c(0x2e8)](_0x1813b6){const _0x22e6cc=_0x28ce9c;try{let _0x167ec6=this[_0x22e6cc(0x116)][_0x22e6cc(0x355)]([_0x1813b6],[this[_0x22e6cc(0x162)]],!0x1);if((0x0,_0x59e2cb[_0x22e6cc(0x13b)])(_0x167ec6)){let {c1Prime:_0x3c1920,c2Prime:_0x19fc4b}=_0x167ec6,_0x308665=this[_0x22e6cc(0x116)][_0x22e6cc(0x42a)](_0x3c1920[0x0],this[_0x22e6cc(0x2aa)]);if((0x0,_0x59e2cb[_0x22e6cc(0x257)])(_0x308665)){let {c1Prime:_0x9af6a0,m2Prime:_0x350e32}=_0x308665;this[_0x22e6cc(0x356)](_0x9af6a0),_0x19fc4b[0x0][_0x22e6cc(0x314)]=this[_0x22e6cc(0x498)](),this[_0x22e6cc(0x1b7)]();let _0x3eee5f=this['_injector'][_0x22e6cc(0x26c)](_0x134962,this[_0x22e6cc(0x2b4)],this['type'],_0x19fc4b[0x0],_0x350e32,this[_0x22e6cc(0x214)],this[_0x22e6cc(0x497)]);return _0x3eee5f[_0x22e6cc(0x2d2)](),_0x3eee5f;}throw _0x308665['error'];}throw _0x167ec6[_0x22e6cc(0x430)];}catch(_0xd68693){return this[_0x22e6cc(0x467)][_0x22e6cc(0x430)](_0xd68693),this[_0x22e6cc(0x218)](this[_0x22e6cc(0x490)](_0xd68693));}}[_0x28ce9c(0x345)](_0x132325){const _0x378681=_0x28ce9c;switch(this[_0x378681(0x373)](_0x132325)){case'stale':return this[_0x378681(0x467)]['debug'](_0x378681(0xdc),_0x378681(0xeb)+_0x132325[_0x378681(0x1f3)]+_0x378681(0x2ea)+this['_getCurrentRevision']()+'.'),this;case _0x378681(0xc2):return this[_0x378681(0x497)]['dispose'](),this[_0x378681(0x30b)]();case'missing':return this[_0x378681(0x497)][_0x378681(0x107)](),this[_0x378681(0x49f)](_0x132325[_0x378681(0x1f3)]),this[_0x378681(0x476)]['createInstance'](_0x1b7c12,this['unitID'],this[_0x378681(0x23b)],this[_0x378681(0x162)],this['_pendingMutations'],_0x132325[_0x378681(0x1f3)],[],this['_handler'],void 0x0);case _0x378681(0x12d):return this['_submitter']['dispose'](),this[_0x378681(0x44b)](),this['_toPending']();}}['_toPending'](){const _0x5494da=_0x28ce9c;let _0x81b930=this[_0x5494da(0x476)]['createInstance'](_0xd87b49,this[_0x5494da(0x2b4)],this[_0x5494da(0x23b)],this[_0x5494da(0x2aa)],this[_0x5494da(0x214)]);return _0x81b930[_0x5494da(0x2fb)](),_0x81b930['_updateLocalCache'](),_0x81b930;}[_0x28ce9c(0x34e)](_0x113380){const _0x316c32=_0x28ce9c;return this[_0x316c32(0x218)](this[_0x316c32(0x369)](_0x113380));}[_0x28ce9c(0x152)](_0x15b048,_0x107862){const _0x3d391f=_0x28ce9c;var _0x1b3eae;return _0x15b048['reqId']===((_0x1b3eae=this[_0x3d391f(0x162)])==null?void 0x0:_0x1b3eae[_0x3d391f(0x2b9)])&&this[_0x3d391f(0x497)]['requestRetry'](this[_0x3d391f(0x2ce)](_0x107862)),this;}[_0x28ce9c(0x2d3)](){const _0x3de676=_0x28ce9c;return this[_0x3de676(0x497)][_0x3de676(0x107)](),this[_0x3de676(0x476)][_0x3de676(0x26c)](_0x1f738c,this[_0x3de676(0x2b4)],this[_0x3de676(0x23b)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3de676(0x214)]);}[_0x28ce9c(0x3d4)](){return this;}[_0x28ce9c(0x31e)](_0x431b65=_0x28ce9c(0x326)){const _0x1ba170=_0x28ce9c;this['_submitter'][_0x1ba170(0x16e)](this[_0x1ba170(0x162)],this[_0x1ba170(0x3c1)](),_0x431b65);}['_onConflict'](_0x52806d){const _0x17aff3=_0x28ce9c;return this[_0x17aff3(0x497)][_0x17aff3(0x107)](),this[_0x17aff3(0x476)][_0x17aff3(0x26c)](_0x40e010,this[_0x17aff3(0x2b4)],this['type'],this[_0x17aff3(0x162)],this['_pendingMutations'],this[_0x17aff3(0x214)],_0x52806d);}['dispose'](){const _0x3cdd01=_0x28ce9c;this[_0x3cdd01(0x497)][_0x3cdd01(0x107)]();}[_0x28ce9c(0x1b7)](){const _0x46648f=_0x28ce9c;this[_0x46648f(0x497)][_0x46648f(0x1d2)]();}};_0x594950=_0x134962=_0x5da6ca([_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924['Injector'])),_0x26312a(0x7,(0x0,_0x594924['Inject'])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x8,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0x9,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xa,_0x59e2cb['ITransformService']),_0x26312a(0xb,_0x594924[_0x28ce9c(0x321)]),_0x26312a(0xc,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x594950);let _0x40e010=class extends _0x4f8c8c{constructor(_0x55ff2f,_0x39e59d,_0x49dc0e,_0x123797,_0x5277f7,_0x206cac,_0xf9452,_0x312d9c,_0x4a7bd4,_0x207c32,_0x5abc2c,_0x453406,_0x1cecb1,_0x298561){const _0x45d071=_0x28ce9c;var _0x45c7c5;super(_0x55ff2f,_0x39e59d,_0x49dc0e,_0x123797,_0x5277f7,_0x312d9c,_0x4a7bd4,_0x207c32,_0x298561),this[_0x45d071(0x141)]=_0x206cac,this[_0x45d071(0xdd)]=_0xf9452,this[_0x45d071(0x474)]=_0x5abc2c,this['_logService']=_0x453406,this['_collaborationUIEventService']=_0x1cecb1,this['localCacheService']=_0x298561,_0x4c0132(this,_0x45d071(0x477),_0x45d071(0x3bf)),_0x4c0132(this,'localChanges',void 0x0);let _0x4799d9=((_0x45c7c5=this[_0x45d071(0x474)][_0x45d071(0x298)]())==null?void 0x0:_0x45c7c5[_0x45d071(0x267)])??'';this[_0x45d071(0x242)]=_0x49dc0e||_0x123797[_0x45d071(0x4a3)]?{'unitID':_0x55ff2f,'userId':_0x4799d9||void 0x0,'type':_0x39e59d,'rev':this[_0x45d071(0x498)](),'awaitingChangeset':_0x49dc0e,'mutations':_0x123797}:null,this['_disableEditing'](),this[_0x45d071(0x211)](),this['_prepareConflictRecovery'](_0x4799d9)[_0x45d071(0xad)](_0x3c1cd6=>this[_0x45d071(0x467)][_0x45d071(0x430)](_0x3c1cd6));}async[_0x28ce9c(0x1ba)](_0x5b512a){const _0x484cab=_0x28ce9c;var _0x58c868,_0x506766,_0x1ba699,_0x246eec;await((_0x58c868=this[_0x484cab(0x15c)])==null||(_0x506766=_0x58c868[_0x484cab(0x411)])==null?void 0x0:_0x506766[_0x484cab(0x16b)](_0x58c868,this[_0x484cab(0x2b4)],this[_0x484cab(0x141)][_0x484cab(0x301)],_0x5b512a)[_0x484cab(0xad)](()=>void 0x0));let _0x4a2820=!0x0;try{var _0x294348;await((_0x294348=this['_localCacheService'])==null?void 0x0:_0x294348['clearOfflineData'](this[_0x484cab(0x2b4)],_0x5b512a));}catch{_0x4a2820=!0x1,this[_0x484cab(0x445)][_0x484cab(0x2e9)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x484cab(0x2b4)],'userId':_0x5b512a});}(_0x1ba699=(_0x246eec=this[_0x484cab(0x214)])[_0x484cab(0x236)])==null||_0x1ba699[_0x484cab(0x16b)](_0x246eec,this[_0x484cab(0x141)],this[_0x484cab(0x242)],_0x4a2820);}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x28ce9c(0x345)](){return this;}['onRemoteRej'](){return this;}[_0x28ce9c(0x152)](){return this;}[_0x28ce9c(0x2d3)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x594abd=_0x28ce9c;throw Error(_0x594abd(0x366));}['_showConflictProcessingNotification'](){const _0x135155=_0x28ce9c;this[_0x135155(0x445)][_0x135155(0x2e9)]({'id':_0x135155(0x1d8),'unitID':this[_0x135155(0x2b4)]});}[_0x28ce9c(0x3c7)](){const _0x208b04=_0x28ce9c;this[_0x208b04(0xdd)]['updatePermissionPoint'](new _0x2f8369[(_0x208b04(0x300))](this['unitID'])['id'],!0x1);}};_0x40e010=_0x5da6ca([_0x26312a(0x6,(0x0,_0x594924['Inject'])(_0x594924[_0x28ce9c(0x415)])),_0x26312a(0x7,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0x8,_0x594924[_0x28ce9c(0x321)]),_0x26312a(0x9,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0xa,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x262)])),_0x26312a(0xb,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xc,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972)),_0x26312a(0xd,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x40e010);let _0x1f738c=class extends _0x4f8c8c{constructor(_0x480e1c,_0x503e1a,_0x2dee56,_0x354140,_0xfa55e4,_0x4a4745,_0x57888c,_0x168922,_0xe4d6af,_0x32be4d,_0x1726e5){const _0x2adf44=_0x28ce9c;super(_0x480e1c,_0x503e1a,_0x2dee56,_0x354140,_0xfa55e4,_0x168922,_0xe4d6af,_0x57888c,_0x1726e5),this[_0x2adf44(0x476)]=_0x4a4745,this[_0x2adf44(0x467)]=_0x32be4d,_0x4c0132(this,_0x2adf44(0x477),_0x2adf44(0x121));}[_0x28ce9c(0x342)](_0x293e52){const _0x8c977f=_0x28ce9c;return this[_0x8c977f(0x2aa)][_0x8c977f(0x210)](_0x293e52),this[_0x8c977f(0x2d2)](),this;}['onRemoteChangeset'](_0x558fb7){const _0x6582cd=_0x28ce9c;return this[_0x6582cd(0x467)]['debug']('[OfflineState]',_0x6582cd(0xb0)+_0x558fb7[_0x6582cd(0x1f3)]+'.'),this;}[_0x28ce9c(0x345)](_0x3245bb){const _0x249b6f=_0x28ce9c;return this[_0x249b6f(0x467)]['debug']('[OfflineState]',_0x249b6f(0xa9)+_0x3245bb['revision']+'.'),this;}['onRemoteRej'](){const _0x2dd8bd=_0x28ce9c;return this['_logService'][_0x2dd8bd(0x115)]('[OfflineState]',_0x2dd8bd(0x118)),this;}[_0x28ce9c(0x152)](){return this;}['toggleOffline'](){return this;}[_0x28ce9c(0x3d4)](){let {_injector:_0x376b41,_pendingMutations:_0x2bb0d7,_awaitingChangeset:_0x4ec399,unitID:_0x2ee63e,_handler:_0x2b7ed5,type:_0x1f15ee}=this,_0x5640bb=_0x394aa8(_0x376b41,_0x2ee63e,_0x1f15ee,_0x4ec399,_0x2bb0d7,_0x2b7ed5);return _0x5640bb instanceof _0xd87b49?_0x5640bb['_schedule']():(_0x5640bb instanceof _0x594950||_0x5640bb instanceof _0x3d552f)&&_0x5640bb['resend'](),_0x5640bb;}[_0x28ce9c(0x31e)](){const _0x47689a=_0x28ce9c;throw Error(_0x47689a(0x44f));}};_0x1f738c=_0x5da6ca([_0x26312a(0x5,(0x0,_0x594924['Inject'])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x7,_0x594924['ICommandService']),_0x26312a(0x8,_0x594924[_0x28ce9c(0x321)]),_0x26312a(0x9,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xa,(0x0,_0x594924['Optional'])(_0x2d518e))],_0x1f738c);let _0x1b7c12=class extends _0x4f8c8c{constructor(_0x368e1d,_0x55452a,_0x478ab3,_0x2fda66,_0x204ff7,_0x5d2314,_0x319bdc,_0x2f1dc4,_0x477433,_0x356046,_0x45b3d7,_0x399439,_0x7ded0d,_0x4cc716,_0x43c315){const _0x307254=_0x28ce9c;super(_0x368e1d,_0x55452a,_0x478ab3,_0x2fda66,_0x319bdc,_0x399439,_0x7ded0d,_0x356046,_0x43c315),this[_0x307254(0x3f3)]=_0x204ff7,this[_0x307254(0xd8)]=_0x5d2314,this['_submitter']=_0x2f1dc4,this['_injector']=_0x477433,this[_0x307254(0x467)]=_0x45b3d7,this[_0x307254(0x116)]=_0x4cc716,this[_0x307254(0x2f3)]=_0x43c315,_0x4c0132(this,'status',_0x307254(0x297));}[_0x28ce9c(0x1e8)](_0xccff5b){const _0x5758ca=_0x28ce9c;try{if(this['_handleRemoteChangesets'](_0xccff5b)[_0x5758ca(0xc6)])throw Error(_0x5758ca(0x2ed));if(this[_0x5758ca(0x17a)]([...this[_0x5758ca(0xd8)]][_0x5758ca(0xce)]((_0x5e9226,_0x420878)=>_0x5e9226[_0x5758ca(0x1f3)]-_0x420878[_0x5758ca(0x1f3)]))[_0x5758ca(0xc6)])return this['_queuedRemoteChangesets']=[],this[_0x5758ca(0x2d2)](),this['_handler'][_0x5758ca(0x353)]({'from':this[_0x5758ca(0x498)](),'to':0x0}),this;let _0xb607a6=this[_0x5758ca(0x162)],_0x56d16b=this['_pendingMutations'],_0x3b3637;if(_0xb607a6&&_0x56d16b[_0x5758ca(0x4a3)]!==0x0)_0x3b3637=this[_0x5758ca(0x476)]['createInstance'](_0x594950,this[_0x5758ca(0x2b4)],this[_0x5758ca(0x23b)],_0xb607a6,_0x56d16b,this['_handler'],this[_0x5758ca(0x497)]);else{if(_0xb607a6&&_0x56d16b['length']===0x0)_0xb607a6[_0x5758ca(0x314)]=this[_0x5758ca(0x498)](),_0x3b3637=this['_injector'][_0x5758ca(0x26c)](_0x3d552f,this[_0x5758ca(0x2b4)],this[_0x5758ca(0x23b)],_0xb607a6,this[_0x5758ca(0x214)],this['_submitter']);else{if(_0x56d16b['length']!==0x0){let _0x1a54c4=this[_0x5758ca(0x476)][_0x5758ca(0x26c)](_0xd87b49,this[_0x5758ca(0x2b4)],this[_0x5758ca(0x23b)],_0x56d16b,this[_0x5758ca(0x214)]);_0x1a54c4[_0x5758ca(0x2fb)](),_0x3b3637=_0x1a54c4;}else _0x3b3637=this[_0x5758ca(0x476)]['createInstance'](_0x200cdc,this[_0x5758ca(0x2b4)],this[_0x5758ca(0x23b)],this['_handler']);}}return _0x3b3637[_0x5758ca(0x2d2)](),_0x3b3637;}catch(_0x3ee44e){return _0x3ee44e instanceof _0x5828ce?(this['_logService'][_0x5758ca(0x115)](_0x5758ca(0x137),_0x3ee44e[_0x5758ca(0x3f7)]),this[_0x5758ca(0x218)](_0x3ee44e[_0x5758ca(0x141)])):(this['_logService']['error'](_0x5758ca(0x137),_0x5758ca(0x3e2),_0x3ee44e),this['_onConflict'](this[_0x5758ca(0x490)](_0x3ee44e)));}}[_0x28ce9c(0x17a)](_0x5452df){const _0x4801df=_0x28ce9c;this['_acknowledgeAwaitingIfReady']();for(let _0x599c3c=0x0;_0x599c3c<_0x5452df[_0x4801df(0x4a3)];_0x599c3c++){let _0x5ab164=_0x5452df[_0x599c3c];switch(this[_0x4801df(0x48f)](_0x5ab164)){case _0x4801df(0x2a5):{let _0x577541=this[_0x4801df(0x498)]();if(_0x5ab164[_0x4801df(0x1f3)]>_0x577541+0x1)return{'missingChangesets':!0x0};_0x5ab164[_0x4801df(0x1f3)]<=_0x577541?this[_0x4801df(0x14b)]():this[_0x4801df(0x429)]();break;}case _0x4801df(0x191):throw new _0x5828ce(this['_remoteRevertInfo'](_0x5ab164));case _0x4801df(0x1aa):break;case _0x4801df(0x3b3):return{'missingChangesets':!0x0};case'apply':this[_0x4801df(0x19d)](_0x5ab164),this[_0x4801df(0x343)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x3b2ad2){const _0x164814=_0x28ce9c;let _0x3869a6=_0x3b2ad2,_0xabcab2=this['_awaitingChangeset'];if(_0xabcab2){let _0x4a6dfe=this[_0x164814(0x116)][_0x164814(0x355)]([_0x3b2ad2],[_0xabcab2],!0x1);if(!(0x0,_0x59e2cb['isTransformChangesetsSuccess'])(_0x4a6dfe))throw _0x4a6dfe[_0x164814(0x430)];_0x3869a6=_0x4a6dfe[_0x164814(0x294)][0x0],_0xabcab2=_0x4a6dfe[_0x164814(0x365)][0x0];}let _0x162911=this[_0x164814(0x2aa)];if(_0x162911['length']){let _0x1b615c=this['_transformService'][_0x164814(0x42a)](_0x3869a6,_0x162911);if(!(0x0,_0x59e2cb[_0x164814(0x257)])(_0x1b615c))throw _0x1b615c['error'];_0x3869a6=_0x1b615c['c1Prime'],_0x162911=_0x1b615c[_0x164814(0x305)];}this[_0x164814(0x356)](_0x3869a6),_0xabcab2&&(_0xabcab2[_0x164814(0x314)]=this[_0x164814(0x498)]()),this[_0x164814(0x162)]=_0xabcab2,this[_0x164814(0x2aa)]=_0x162911;}[_0x28ce9c(0x343)](){const _0x2e1940=_0x28ce9c;if(!this[_0x2e1940(0x162)]||this['_acknowledgedAwaitingRevision']==null)return;let _0xa321d6=this[_0x2e1940(0x498)]();if(this['_acknowledgedAwaitingRevision']<=_0xa321d6)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this['_acknowledgedAwaitingRevision']+'.');this['_acknowledgedAwaitingRevision']===_0xa321d6+0x1&&this[_0x2e1940(0x429)]();}[_0x28ce9c(0x429)](){const _0x447a85=_0x28ce9c;this['_incrementRevisionNumber'](),this[_0x447a85(0x14b)]();}['_dropAcknowledgedAwaiting'](){const _0x478a0d=_0x28ce9c;this[_0x478a0d(0x162)]=null,this['_acknowledgedAwaitingRevision']=null,this[_0x478a0d(0xc8)]();}[_0x28ce9c(0xc8)](){const _0x376b90=_0x28ce9c;var _0x1dc033;(_0x1dc033=this[_0x376b90(0x497)])==null||_0x1dc033[_0x376b90(0x107)](),this[_0x376b90(0x497)]=void 0x0;}['dispose'](){const _0x5932ba=_0x28ce9c;this[_0x5932ba(0xc8)]();}[_0x28ce9c(0x31e)](){const _0x4b0c12=_0x28ce9c;throw Error(_0x4b0c12(0x401));}[_0x28ce9c(0x342)](_0x50aa56){const _0x3cca92=_0x28ce9c;return this[_0x3cca92(0x2aa)]['push'](_0x50aa56),this[_0x3cca92(0x2d2)](),this;}[_0x28ce9c(0x26b)](_0x1ffcfb){const _0x2b18d5=_0x28ce9c;return this[_0x2b18d5(0xd8)][_0x2b18d5(0x210)](_0x1ffcfb),this;}[_0x28ce9c(0x345)](_0x3a1569){const _0x424688=_0x28ce9c;let _0x590a2b=this[_0x424688(0x373)](_0x3a1569);if(this[_0x424688(0x162)]){switch(_0x590a2b){case _0x424688(0xc2):this[_0x424688(0x14b)]();break;case _0x424688(0x2c8):break;case _0x424688(0x12d):this[_0x424688(0x429)]();break;case _0x424688(0x3b3):this[_0x424688(0x3f3)]=_0x3a1569[_0x424688(0x1f3)],this[_0x424688(0xc8)]();}return this;}if(_0x590a2b==='stale')return this;throw Error(_0x424688(0x2bb));}['onRemoteRej'](_0x2af68a){const _0x3ee2cf=_0x28ce9c;return this[_0x3ee2cf(0x218)](this[_0x3ee2cf(0x369)](_0x2af68a));}['onRemoteRetry'](_0xddf4fb,_0x529564){const _0xdc484d=_0x28ce9c;var _0x5c6704;return this[_0xdc484d(0x3f3)]!=null||_0xddf4fb[_0xdc484d(0x2b9)]!==((_0x5c6704=this[_0xdc484d(0x162)])==null?void 0x0:_0x5c6704[_0xdc484d(0x2b9)])||(this[_0xdc484d(0x497)]??=this[_0xdc484d(0x348)](this[_0xdc484d(0x162)]),this[_0xdc484d(0x497)]['requestRetry'](this[_0xdc484d(0x2ce)](_0x529564))),this;}[_0x28ce9c(0x2d3)](){const _0x4f0726=_0x28ce9c;return this[_0x4f0726(0xc8)](),this[_0x4f0726(0x476)][_0x4f0726(0x26c)](_0x1f738c,this[_0x4f0726(0x2b4)],this['type'],this[_0x4f0726(0x162)],this['_pendingMutations'],this[_0x4f0726(0x214)]);}[_0x28ce9c(0x3d4)](){return this;}[_0x28ce9c(0x218)](_0x3f4f6c){const _0x2a2de8=_0x28ce9c;return this['_disposeSubmitter'](),this['_injector'][_0x2a2de8(0x26c)](_0x40e010,this[_0x2a2de8(0x2b4)],this[_0x2a2de8(0x23b)],this[_0x2a2de8(0x162)],this['_pendingMutations'],this['_handler'],_0x3f4f6c);}};_0x1b7c12=_0x5da6ca([_0x26312a(0x8,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x9,(0x0,_0x594924['Inject'])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0xa,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xb,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0xc,_0x594924[_0x28ce9c(0x321)]),_0x26312a(0xd,_0x59e2cb[_0x28ce9c(0x3c2)]),_0x26312a(0xe,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x1b7c12);function _0x394aa8(_0x951e8d,_0x416d30,_0x50c27e,_0x8353e2,_0x95ce6f,_0x2641ff){const _0x168921=_0x28ce9c;return _0x8353e2&&_0x95ce6f[_0x168921(0x4a3)]?_0x951e8d[_0x168921(0x26c)](_0x594950,_0x416d30,_0x50c27e,_0x8353e2,_0x95ce6f,_0x2641ff,void 0x0):_0x8353e2?_0x951e8d[_0x168921(0x26c)](_0x3d552f,_0x416d30,_0x50c27e,_0x8353e2,_0x2641ff,void 0x0):_0x95ce6f['length']?_0x951e8d[_0x168921(0x26c)](_0xd87b49,_0x416d30,_0x50c27e,_0x95ce6f,_0x2641ff):_0x951e8d[_0x168921(0x26c)](_0x200cdc,_0x416d30,_0x50c27e,_0x2641ff);}let _0x4e94dc=class extends _0x594924[_0x28ce9c(0x1a9)]{get[_0x28ce9c(0x261)](){const _0x12cd24=_0x28ce9c;return this[_0x12cd24(0x3dd)];}constructor(_0x7e349c,_0xa0fe67,_0x3b2c54,_0x813673,_0x21ca75,_0x789d24,_0xd3875d,_0x562165,_0x2a0996,_0x193bb4,_0x2327d3,_0x5e8f18,_0x1f013e,_0x52b2d1){const _0x372d63=_0x28ce9c;super(),this[_0x372d63(0x2b4)]=_0x7e349c,this[_0x372d63(0x42e)]=_0xa0fe67,this[_0x372d63(0x2a9)]=_0x3b2c54,this['_injector']=_0x813673,this[_0x372d63(0x447)]=_0x21ca75,this['_localeService']=_0x789d24,this['_revisionService']=_0xd3875d,this['_eventService']=_0x562165,this[_0x372d63(0x464)]=_0x2a0996,this[_0x372d63(0x467)]=_0x193bb4,this['_commandService']=_0x2327d3,this['_permissionService']=_0x5e8f18,this[_0x372d63(0x450)]=_0x1f013e,this['_localCacheService']=_0x52b2d1,_0x4c0132(this,'_state$',new _0x5d1b30['BehaviorSubject'](null)),_0x4c0132(this,_0x372d63(0xe8),this[_0x372d63(0x279)][_0x372d63(0x2a6)]()),_0x4c0132(this,_0x372d63(0x3dd),void 0x0),_0x4c0132(this,'_collaborationPaused',!0x1),_0x4c0132(this,_0x372d63(0xd0),''),_0x4c0132(this,_0x372d63(0x419),0x0),_0x4c0132(this,_0x372d63(0x1b6),this[_0x372d63(0xe8)][_0x372d63(0x3e8)]((0x0,_0x5d1b30[_0x372d63(0x225)])(_0x22c811=>_0x22c811?_0x22c811[_0x372d63(0x477)]:_0x372d63(0x121)),(0x0,_0x5d1b30[_0x372d63(0x1a4)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4c0132(this,_0x372d63(0x172),new _0x5d1b30['Subject']()),_0x4c0132(this,_0x372d63(0x1d4),this[_0x372d63(0x172)][_0x372d63(0x2a6)]()),_0x4c0132(this,_0x372d63(0x37f),new _0x5d1b30['Subject']()),_0x4c0132(this,'conflict$',this[_0x372d63(0x37f)][_0x372d63(0x2a6)]()),_0x4c0132(this,'_transitionLocked',!0x1),_0x4c0132(this,_0x372d63(0x131),[]);}async[_0x28ce9c(0x34d)](){const _0x43ff3b=_0x28ce9c;if(this[_0x43ff3b(0x261)])throw Error(_0x43ff3b(0x432));await this[_0x43ff3b(0x21d)]();}[_0x28ce9c(0x23e)](){const _0x11850d=_0x28ce9c;return this[_0x11850d(0x271)]=!0x0,(0x0,_0x594924[_0x11850d(0x240)])(()=>{const _0x2c0d7c=_0x11850d;this['_collaborationPaused']=!0x1,this[_0x2c0d7c(0x124)]();});}['onLocalMutation'](_0x59c5a2){this['_onLocalMutation'](_0x59c5a2);}[_0x28ce9c(0x299)](){const _0x135675=_0x28ce9c;var _0x628010;return((_0x628010=this[_0x135675(0x3dd)])==null?void 0x0:_0x628010['hasLocalChanges']())??!0x1;}['dispose'](){const _0x59486c=_0x28ce9c;var _0x519a14;super[_0x59486c(0x107)](),(_0x519a14=this['_state'])==null||_0x519a14[_0x59486c(0x107)](),this[_0x59486c(0x172)][_0x59486c(0x427)](),this[_0x59486c(0x37f)][_0x59486c(0x427)]();}[_0x28ce9c(0x465)](_0x4b42d0){const _0x32bb0d=_0x28ce9c;this[_0x32bb0d(0x3dd)]=_0x4b42d0,this['_state$'][_0x32bb0d(0x12d)](_0x4b42d0);}async['_init'](){const _0x2b5a50=_0x28ce9c;if(this['_updateState'](await this[_0x2b5a50(0x108)]()),this[_0x2b5a50(0x450)]){var _0xc47edc;(_0xc47edc=this[_0x2b5a50(0x450)])==null||_0xc47edc['editingUnit'](this['unitID']),this[_0x2b5a50(0x416)](this[_0x2b5a50(0x450)]['getUnitStatus$'](this[_0x2b5a50(0x2b4)])[_0x2b5a50(0x335)](_0x3faa4a=>{const _0x320bef=_0x2b5a50;this[_0x320bef(0x467)][_0x320bef(0x115)](_0x320bef(0x1e1),'editing\x20status\x20changed\x20to',_0x3faa4a),_0x3faa4a===0x1?(this[_0x320bef(0x19f)][_0x320bef(0x2e9)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x320bef(0xdd)][_0x320bef(0x2cc)](new _0x2f8369[(_0x320bef(0x300))](this['unitID'])['id'],!0x1),this[_0x320bef(0xdd)][_0x320bef(0x1ca)](!0x1)):(this[_0x320bef(0xdd)]['updatePermissionPoint'](new _0x2f8369[(_0x320bef(0x300))](this[_0x320bef(0x2b4)])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));}));}let _0x235cc2=!0x1;return this[_0x2b5a50(0x416)](this[_0x2b5a50(0x42e)][_0x2b5a50(0x36e)][_0x2b5a50(0x335)](_0x19753c=>{const _0x5614c8=_0x2b5a50;_0x19753c===0x3?this[_0x5614c8(0x10d)](_0x235cc2):_0x19753c===0x2&&(_0x235cc2=!0x0,this[_0x5614c8(0x20a)]());})),this[_0x2b5a50(0x416)](this['session'][_0x2b5a50(0x382)][_0x2b5a50(0x335)](_0x2508f0=>{const _0x3c86c0=_0x2b5a50;try{switch(_0x2508f0[_0x3c86c0(0x202)]){case _0x59e2cb[_0x3c86c0(0x12b)][_0x3c86c0(0x175)]:this[_0x3c86c0(0x2c0)]((0x0,_0x59e2cb[_0x3c86c0(0x18b)])(_0x2508f0[_0x3c86c0(0xfa)]));break;case _0x59e2cb[_0x3c86c0(0x12b)][_0x3c86c0(0x320)]:this[_0x3c86c0(0x25d)](_0x2508f0[_0x3c86c0(0xfa)]);break;case _0x59e2cb[_0x3c86c0(0x12b)][_0x3c86c0(0x374)]:this[_0x3c86c0(0x35c)]({'isPermissionRej':!0x1,'reason':_0x2508f0[_0x3c86c0(0x301)],'code':_0x2508f0[_0x3c86c0(0x3de)]});break;case _0x59e2cb[_0x3c86c0(0x12b)][_0x3c86c0(0x1f8)]:{let _0xd851a8=_0x2508f0;this[_0x3c86c0(0xb2)](_0xd851a8[_0x3c86c0(0xfa)],_0xd851a8[_0x3c86c0(0x3de)]);break;}case _0x59e2cb[_0x3c86c0(0x12b)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x3c86c0(0x2b2)](_0x2508f0['data'][_0x3c86c0(0x28a)][_0x3c86c0(0x225)](_0x1b20c7=>(0x0,_0x59e2cb['parseProtocolChangeset'])(_0x1b20c7)));break;case _0x59e2cb[_0x3c86c0(0x12b)][_0x3c86c0(0x42b)]:this[_0x3c86c0(0x35c)]({'isPermissionRej':!0x0,'reason':_0x2508f0[_0x3c86c0(0x301)],'code':_0x2508f0[_0x3c86c0(0x3de)]});break;case _0x59e2cb[_0x3c86c0(0x12b)][_0x3c86c0(0x1ce)]:}}catch(_0x4871bc){throw console['error']('Error\x20on\x20receiving\x20event',_0x4871bc),_0x4871bc;}})),this[_0x2b5a50(0x3dd)];}[_0x28ce9c(0x3fb)](){const _0x3c7996=_0x28ce9c;this[_0x3c7996(0x1a0)]=!0x1;}[_0x28ce9c(0x3b1)](){const _0x3335f9=_0x28ce9c;if(this[_0x3335f9(0x1a0)])throw Error(_0x3335f9(0x138));this[_0x3335f9(0x1a0)]=!0x0;}['_transit'](_0x5a6433){const _0x546111=_0x28ce9c;this[_0x546111(0x3b1)]();try{this[_0x546111(0x465)](_0x5a6433());}finally{this['_unlockTransition']();}}[_0x28ce9c(0x3d3)](_0x54897f){const _0xfe0d0e=_0x28ce9c;this[_0xfe0d0e(0x410)](()=>this[_0xfe0d0e(0x3dd)][_0xfe0d0e(0x342)](_0x54897f));}['_onRemoteChangeset'](_0x425536){const _0x297b18=_0x28ce9c;this[_0x297b18(0x271)]?this[_0x297b18(0x131)][_0x297b18(0x210)](_0x425536):this[_0x297b18(0x375)](_0x425536);}['_exhaustRemoteChangesetQueue'](){const _0xf80faa=_0x28ce9c;this[_0xf80faa(0x131)]['forEach'](_0x49a89b=>this[_0xf80faa(0x375)](_0x49a89b)),this[_0xf80faa(0x131)]=[];}[_0x28ce9c(0x375)](_0x1d6373){const _0xb1dd6c=_0x28ce9c;let _0x1e6f5b=this['_compressMutationService'][_0xb1dd6c(0x394)][_0xb1dd6c(0x1cf)](this[_0xb1dd6c(0x447)][_0xb1dd6c(0x394)][_0xb1dd6c(0xc7)]()['COMPRESS_MUTATION_APPLY'])(_0x1d6373[_0xb1dd6c(0x43e)],null)||_0x1d6373['mutations'],_0x421bd5={..._0x1d6373,'mutations':_0x1e6f5b};this[_0xb1dd6c(0x410)](()=>this['_state'][_0xb1dd6c(0x26b)](_0x421bd5));}['_onRemoteACK'](_0x354637){const _0x27a9ad=_0x28ce9c;this[_0x27a9ad(0x410)](()=>this[_0x27a9ad(0x3dd)][_0x27a9ad(0x345)](_0x354637));}[_0x28ce9c(0x35c)](_0x1c49bb){const _0x24c475=_0x28ce9c;this[_0x24c475(0x410)](()=>this['_state'][_0x24c475(0x34e)](_0x1c49bb));}[_0x28ce9c(0xb2)](_0x5c6cbf,_0x2d9214){const _0x4bcba7=_0x28ce9c;this['_transit'](()=>this[_0x4bcba7(0x3dd)]['onRemoteRetry'](_0x5c6cbf,_0x2d9214));}[_0x28ce9c(0x2b2)](_0x4e7600){const _0x55e684=_0x28ce9c;let _0x4e0409=this[_0x55e684(0x3dd)];if(!(_0x4e0409 instanceof _0x1b7c12))throw TypeError(_0x55e684(0x1cc));let _0x555331=_0x4e7600[_0x55e684(0x225)](_0x27b3c8=>{const _0x45135f=_0x55e684;let _0x5775bc=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x45135f(0x447)][_0x45135f(0x394)][_0x45135f(0xc7)]()[_0x45135f(0xb4)])(_0x27b3c8['mutations'],null)||_0x27b3c8[_0x45135f(0x43e)];return{..._0x27b3c8,'mutations':_0x5775bc};});this['_transit'](()=>_0x4e0409[_0x55e684(0x1e8)](_0x555331));}[_0x28ce9c(0x20a)](){const _0x4d3889=_0x28ce9c;this[_0x4d3889(0x410)](()=>this[_0x4d3889(0x3dd)][_0x4d3889(0x2d3)]());}[_0x28ce9c(0x10d)](_0x509d73=!0x1){const _0x218603=_0x28ce9c;this[_0x218603(0x410)](()=>this[_0x218603(0x3dd)][_0x218603(0x3d4)]());let _0x58d297=this[_0x218603(0x3dd)];_0x509d73&&_0x58d297 instanceof _0x200cdc&&this[_0x218603(0x410)](()=>_0x58d297['fetchMiss']());}async[_0x28ce9c(0x108)](){return new Promise(_0x308837=>{const _0x471205=_0x3cef;this[_0x471205(0x42e)][_0x471205(0x36e)][_0x471205(0x3e8)]((0x0,_0x5d1b30[_0x471205(0x143)])(0x1))[_0x471205(0x335)](async _0x4aae69=>{const _0xbd834b=_0x471205;_0x308837(await this[_0xbd834b(0x27b)](_0x4aae69===0x3));});});}[_0x28ce9c(0x423)](){const _0x309fae=_0x28ce9c;let _0x1fa633=this[_0x309fae(0x2b4)],_0x50539b=this[_0x309fae(0x476)][_0x309fae(0x21c)](_0x594924[_0x309fae(0x101)])['getConfig'](_0xe358d2);return{'resendTimeouts':{'ackTimeout':_0x50539b==null?void 0x0:_0x50539b[_0x309fae(0xac)],'maxAckTimeout':_0x50539b==null?void 0x0:_0x50539b[_0x309fae(0x37d)]},'onStateChange':(_0x1535e9,_0x46bf48)=>{const _0x4735fb=_0x309fae;if(_0x1535e9!==this[_0x4735fb(0x3dd)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1535e9['status']+'\x0aAfter:\x20'+_0x46bf48['status']+'\x0aCurrent:\x20'+this[_0x4735fb(0x3dd)][_0x4735fb(0x477)]);this[_0x4735fb(0x465)](_0x46bf48);},'onSendChangeset':(_0x24fef2,_0x80ea97)=>{const _0x3cf0f3=_0x309fae;_0x24fef2[_0x3cf0f3(0x1f6)]||(_0x24fef2['sid']=this[_0x3cf0f3(0xd0)],_0x24fef2[_0x3cf0f3(0x2b9)]=++this[_0x3cf0f3(0x419)]);let _0x59d54c={'eventID':_0x59e2cb[_0x3cf0f3(0x12b)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x24fef2['unitID'],'unitType':this[_0x3cf0f3(0x2a9)],'changeset':_0x24fef2,'memberID':this[_0x3cf0f3(0x42e)][_0x3cf0f3(0x1c0)]()}};return this['session']['send'](_0x59d54c,this['unitID'],_0x80ea97);},'onConflict':(_0x41c1c0,_0x20c7e9,_0x24ead0)=>{const _0xbcd32c=_0x309fae;this['_conflict$'][_0xbcd32c(0x21f)]||this[_0xbcd32c(0x37f)][_0xbcd32c(0x12d)]({'unitID':_0x1fa633,..._0x41c1c0,'localChanges':_0x20c7e9,'cacheCleared':_0x24ead0});},'onChangesetResend':_0x939ab5=>{const _0x344ebf=_0x309fae;this[_0x344ebf(0x467)][_0x344ebf(0x115)](_0x344ebf(0x1e1),_0x344ebf(0xe1)+_0x939ab5[_0x344ebf(0x2b9)]+'\x20('+_0x939ab5[_0x344ebf(0x301)]+_0x344ebf(0x154)+_0x939ab5[_0x344ebf(0x187)]+')'),queueMicrotask(()=>{const _0x48ef05=_0x344ebf;this[_0x48ef05(0x172)]['closed']||this[_0x48ef05(0x172)][_0x48ef05(0x12d)]({'unitID':_0x1fa633,..._0x939ab5});});},'onMissingChangesets':({from:_0x581763,to:_0x41abfd})=>{const _0x54818d=_0x309fae;this['_logService'][_0x54818d(0x115)](_0x54818d(0x1e1),_0x54818d(0x15a)+_0x581763+_0x54818d(0x331)+_0x41abfd);let _0x284210={'eventID':_0x59e2cb[_0x54818d(0x12b)][_0x54818d(0x1b5)],'data':{'unitID':_0x1fa633,'unitType':this['_type'],'from':_0x581763,'to':_0x41abfd}};this[_0x54818d(0x42e)][_0x54818d(0xaf)](_0x284210,this['unitID']);}};}async[_0x28ce9c(0x27b)](_0x16efb3){const _0x84051a=_0x28ce9c;var _0x353077;let _0x13f6fe=await((_0x353077=this[_0x84051a(0x15c)])==null?void 0x0:_0x353077[_0x84051a(0x258)](this[_0x84051a(0x2b4)])),_0x230057=(_0x13f6fe==null?void 0x0:_0x13f6fe[_0x84051a(0x43e)])??[],_0x1fb29e=(_0x13f6fe==null?void 0x0:_0x13f6fe[_0x84051a(0x213)])??null,_0x4d59e3=!!(_0x1fb29e!=null&&_0x1fb29e['sid'])&&!!(_0x1fb29e!=null&&_0x1fb29e[_0x84051a(0x2b9)]);this[_0x84051a(0xd0)]=_0x4d59e3?_0x1fb29e[_0x84051a(0x1f6)]:(0x0,_0x59e2cb['uuidv4'])(),this['_changesetReqId']=_0x4d59e3?_0x1fb29e[_0x84051a(0x2b9)]:0x0;let _0x608d6c=this['unitID'];try{this[_0x84051a(0x30d)](_0x1fb29e,_0x230057);}catch(_0x751159){this[_0x84051a(0x467)][_0x84051a(0x430)](_0x751159);}let _0x28ef44=this[_0x84051a(0x423)]();if(_0x16efb3){let _0x1524de=_0x394aa8(this[_0x84051a(0x476)],_0x608d6c,this[_0x84051a(0x2a9)],_0x1fb29e,_0x230057,_0x28ef44);return _0x1524de instanceof _0xd87b49?_0x1524de['_schedule']():(_0x1524de instanceof _0x594950||_0x1524de instanceof _0x3d552f)&&_0x1524de[_0x84051a(0x31e)](),_0x1524de;}return this[_0x84051a(0x476)][_0x84051a(0x26c)](_0x1f738c,_0x608d6c,this[_0x84051a(0x2a9)],_0x1fb29e,_0x230057,_0x28ef44);}[_0x28ce9c(0x30d)](_0x3e1c52,_0x52b733){const _0x51cde2=_0x28ce9c;var _0x4d9591,_0x317578;let _0x34514f=this[_0x51cde2(0x447)][_0x51cde2(0x394)][_0x51cde2(0x1cf)](this['_compressMutationService'][_0x51cde2(0x394)][_0x51cde2(0xc7)]()['COMPRESS_MUTATION_APPLY']);(_0x4d9591=_0x34514f((_0x3e1c52==null?void 0x0:_0x3e1c52[_0x51cde2(0x43e)])||[],null))==null||_0x4d9591[_0x51cde2(0x3ab)](_0x512203=>this[_0x51cde2(0x3e5)]['executeCommand'](_0x512203['id'],_0x512203['params'])),(_0x317578=_0x34514f(_0x52b733||[],null))==null||_0x317578[_0x51cde2(0x3ab)](_0x49d7a1=>this[_0x51cde2(0x3e5)][_0x51cde2(0x139)](_0x49d7a1['id'],_0x49d7a1[_0x51cde2(0x26a)]));}};_0x4e94dc=_0x5da6ca([_0x26312a(0x3,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x4,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x11f)])),_0x26312a(0x5,(0x0,_0x594924['Inject'])(_0x594924[_0x28ce9c(0x3a4)])),_0x26312a(0x6,(0x0,_0x594924['Inject'])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x7,(0x0,_0x594924['Inject'])(_0x361972)),_0x26312a(0x8,_0x594924['IUniverInstanceService']),_0x26312a(0x9,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xa,_0x594924['ICommandService']),_0x26312a(0xb,_0x594924['IPermissionService']),_0x26312a(0xc,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x141436)),_0x26312a(0xd,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x4e94dc);let _0x4a949e=class extends _0x4e94dc{constructor(_0x535407,_0x3564e6,_0x24e35c,_0x586924,_0x34aba7,_0x57a799,_0x3dcf6a,_0xbde9a1,_0x2d27e3,_0x2299a3,_0x2aa7f4,_0x4edd14,_0x2bffa0,_0x1b929e,_0x340203){const _0x2d4085=_0x28ce9c;super(_0x535407,_0x24e35c,_0x3564e6,_0x586924,_0x34aba7,_0x57a799,_0x3dcf6a,_0xbde9a1,_0x2d27e3,_0x2299a3,_0x2aa7f4,_0x4edd14,_0x1b929e,_0x340203),this['unitID']=_0x535407,this['type']=_0x3564e6,this[_0x2d4085(0x40a)]=_0x2bffa0,_0x4c0132(this,_0x2d4085(0x344),null);}[_0x28ce9c(0x1d1)](_0x45c553){const _0x1a2f06=_0x28ce9c;this[_0x1a2f06(0x344)]=_0x45c553;}['dispose'](){const _0x14f5f4=_0x28ce9c;this[_0x14f5f4(0x344)]=null,super[_0x14f5f4(0x107)]();}[_0x28ce9c(0x423)](){const _0x389d17=_0x28ce9c;let _0x325802=super[_0x389d17(0x423)]();return _0x325802[_0x389d17(0x179)]=_0x31b92c=>{const _0x38af72=_0x389d17;var _0x209541,_0x19c832;return(_0x209541=this[_0x38af72(0x344)])==null||(_0x19c832=_0x209541['onTransformIME'])==null?void 0x0:_0x19c832[_0x38af72(0x16b)](_0x209541,_0x31b92c);},_0x325802[_0x389d17(0x291)]=_0x2e9188=>{const _0x163ae1=_0x389d17;var _0x16e75f,_0x3cc12b;return(_0x16e75f=this[_0x163ae1(0x344)])==null||(_0x3cc12b=_0x16e75f[_0x163ae1(0x291)])==null?void 0x0:_0x3cc12b[_0x163ae1(0x16b)](_0x16e75f,_0x2e9188);},_0x325802['onPrepareTransformSelections']=_0x1e9769=>{const _0x4a69ce=_0x389d17;var _0x27f933,_0x49c30f;return((_0x27f933=this[_0x4a69ce(0x344)])==null||(_0x49c30f=_0x27f933['onPrepareTransformSelections'])==null?void 0x0:_0x49c30f[_0x4a69ce(0x16b)](_0x27f933,_0x1e9769))??null;},_0x325802[_0x389d17(0x23a)]=_0x16d360=>{var _0x3fce12,_0x51f377;return(_0x3fce12=this['_handlerCallback'])==null||(_0x51f377=_0x3fce12['onTransformSelections'])==null?void 0x0:_0x51f377['call'](_0x3fce12,_0x16d360);},_0x325802['onSyncEditingCollabCursor']=_0x423f20=>{const _0x298a35=_0x389d17;var _0x555041,_0x3a0a3b;return(_0x555041=this['_handlerCallback'])==null||(_0x3a0a3b=_0x555041[_0x298a35(0x3bc)])==null?void 0x0:_0x3a0a3b[_0x298a35(0x16b)](_0x555041,_0x423f20);},_0x325802[_0x389d17(0x3a5)]=_0x590870=>{const _0x203188=_0x389d17;var _0xa0067e,_0x3fc3b3;return((_0xa0067e=this['_handlerCallback'])==null||(_0x3fc3b3=_0xa0067e[_0x203188(0x3a5)])==null?void 0x0:_0x3fc3b3[_0x203188(0x16b)](_0xa0067e,_0x590870))??_0x590870;},_0x325802[_0x389d17(0xa7)]=_0x519dfa=>{const _0x56fa78=_0x389d17;var _0x4079b2,_0x3f33e8;return((_0x4079b2=this['_handlerCallback'])==null||(_0x3f33e8=_0x4079b2[_0x56fa78(0xa7)])==null?void 0x0:_0x3f33e8['call'](_0x4079b2,_0x519dfa))??_0x519dfa;},_0x325802;}async['_init'](){const _0x420315=_0x28ce9c;let _0x1e2199=await super[_0x420315(0x21d)]();return this[_0x420315(0x416)](this['_docStateChangeManagerService'][_0x420315(0x148)][_0x420315(0x335)](_0x44f1ea=>{const _0x244423=_0x420315;if(_0x44f1ea==null||_0x44f1ea['unitId']!==this[_0x244423(0x2b4)])return;let {commandId:_0x2775ab,redoState:_0xb8bd2a,unitId:_0x5baff8}=_0x44f1ea,_0x480c65={'id':_0x2775ab,'type':_0x594924['CommandType'][_0x244423(0x45a)],'params':{'unitId':_0x5baff8,'actions':_0xb8bd2a[_0x244423(0xd1)],'textRanges':null}};this[_0x244423(0x3d3)](_0x480c65);})),this[_0x420315(0x416)](this[_0x420315(0x3e5)]['onMutationExecutedForCollab']((_0x22227d,_0x20e618)=>{const _0x523c7f=_0x420315;if(_0x22227d[_0x523c7f(0x23b)]!==_0x594924['CommandType']['MUTATION']||_0x20e618!=null&&_0x20e618[_0x523c7f(0x1de)]||_0x20e618!=null&&_0x20e618[_0x523c7f(0x390)]||_0x22227d['id']===_0xbdd057[_0x523c7f(0x1cb)]['id'])return;let _0x59cf10=_0x22227d[_0x523c7f(0x26a)];if((_0x59cf10==null?void 0x0:_0x59cf10[_0x523c7f(0x3f9)])!==this['unitID'])return;let _0x42cea5=_0x22227d,_0x5a68e1=this['_compressMutationService']['interceptor'][_0x523c7f(0x1cf)](this['_compressMutationService']['interceptor'][_0x523c7f(0xc7)]()[_0x523c7f(0x387)])([_0x42cea5],this[_0x523c7f(0x464)])||[_0x42cea5];this[_0x523c7f(0x3d3)](_0x5a68e1[0x0]);})),_0x1e2199;}};_0x4a949e=_0x5da6ca([_0x26312a(0x3,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x4,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x11f)])),_0x26312a(0x5,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x3a4)])),_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x7,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972)),_0x26312a(0x8,_0x594924[_0x28ce9c(0xdf)]),_0x26312a(0x9,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xa,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0xb,_0x594924['IPermissionService']),_0x26312a(0xc,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0xbdd057['DocStateChangeManagerService'])),_0x26312a(0xd,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x141436)),_0x26312a(0xe,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x4a949e);let _0x4b8df2=class extends _0x4e94dc{constructor(_0x1d8b5c,_0x2c302d,_0x14b4b8,_0x3a2ce0,_0x333cc0,_0x43463f,_0xa8317d,_0x69ec2e,_0x3ccfb6,_0x1724d3,_0x4bd96a,_0x34d3fe,_0x4b6de2,_0x416bf0){const _0x10684b=_0x28ce9c;super(_0x1d8b5c,_0x14b4b8,_0x2c302d,_0x3a2ce0,_0x333cc0,_0x43463f,_0xa8317d,_0x69ec2e,_0x3ccfb6,_0x1724d3,_0x4bd96a,_0x34d3fe,_0x4b6de2,_0x416bf0),this['unitID']=_0x1d8b5c,this[_0x10684b(0x23b)]=_0x2c302d;}async[_0x28ce9c(0x21d)](){const _0x52f298=_0x28ce9c;let _0xa34d0d=await super['_init']();return this[_0x52f298(0x416)](this[_0x52f298(0x3e5)]['onMutationExecutedForCollab']((_0x63dcd3,_0x3c4e67)=>{const _0x4d8d8b=_0x52f298;if(_0x63dcd3[_0x4d8d8b(0x23b)]!==_0x594924[_0x4d8d8b(0xe4)][_0x4d8d8b(0x45a)]||_0x3c4e67!=null&&_0x3c4e67[_0x4d8d8b(0x1de)]||_0x3c4e67!=null&&_0x3c4e67['onlyLocal'])return;let _0xe7ed00=_0x63dcd3[_0x4d8d8b(0x26a)];if((_0xe7ed00==null?void 0x0:_0xe7ed00[_0x4d8d8b(0x3f9)])!==this[_0x4d8d8b(0x2b4)])return;let _0x2fd3c8=_0x63dcd3,_0x2ac43a=this['_compressMutationService'][_0x4d8d8b(0x394)]['fetchThroughInterceptors'](this[_0x4d8d8b(0x447)]['interceptor'][_0x4d8d8b(0xc7)]()['COMPRESS_MUTATION_SEND'])([_0x2fd3c8],this[_0x4d8d8b(0x464)])||[_0x2fd3c8];this[_0x4d8d8b(0x3d3)](_0x2ac43a[0x0]);})),_0xa34d0d;}};_0x4b8df2=_0x5da6ca([_0x26312a(0x3,(0x0,_0x594924['Inject'])(_0x594924['Injector'])),_0x26312a(0x4,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x11f)])),_0x26312a(0x5,(0x0,_0x594924['Inject'])(_0x594924[_0x28ce9c(0x3a4)])),_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x7,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972)),_0x26312a(0x8,_0x594924[_0x28ce9c(0xdf)]),_0x26312a(0x9,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xa,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0xb,_0x594924[_0x28ce9c(0x415)]),_0x26312a(0xc,(0x0,_0x594924['Optional'])(_0x141436)),_0x26312a(0xd,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x4b8df2);let _0x5afe54=class extends _0x4e94dc{constructor(_0x8f1438,_0x4bfc8c,_0x1db915,_0x206f3b,_0x551270,_0x431cf6,_0x42b88b,_0x411cca,_0x4bbb4b,_0x199ff2,_0xc1a219,_0x5400ce,_0x373d89,_0x27dd42,_0x1ac92d){const _0x596e4e=_0x28ce9c;super(_0x8f1438,_0x1db915,_0x4bfc8c,_0x206f3b,_0x551270,_0x431cf6,_0x42b88b,_0x4bbb4b,_0x199ff2,_0xc1a219,_0x5400ce,_0x373d89,_0x27dd42,_0x1ac92d),this[_0x596e4e(0x2b4)]=_0x8f1438,this[_0x596e4e(0x23b)]=_0x4bfc8c,this[_0x596e4e(0x147)]=_0x411cca;}['_createHandler'](){const _0xdc9472=_0x28ce9c;let _0x1ac0d4=super[_0xdc9472(0x423)]();return _0x1ac0d4[_0xdc9472(0x23a)]=_0x474835=>this[_0xdc9472(0x147)][_0xdc9472(0x260)](_0x474835),_0x1ac0d4;}async['_init'](){const _0x7750e3=_0x28ce9c;let _0x360c94=await super['_init']();return this[_0x7750e3(0x416)](this[_0x7750e3(0x3e5)][_0x7750e3(0x22c)]((_0x4a6146,_0x16c529)=>{const _0x4ac6eb=_0x7750e3;if(_0x4a6146['type']!==_0x594924['CommandType'][_0x4ac6eb(0x45a)]||_0x16c529!=null&&_0x16c529['fromCollab']||_0x16c529!=null&&_0x16c529[_0x4ac6eb(0x390)])return;let _0x33610d=_0x4a6146[_0x4ac6eb(0x26a)];if((_0x33610d==null?void 0x0:_0x33610d['unitId'])!==this[_0x4ac6eb(0x2b4)])return;let _0x2f253c=_0x4a6146,_0x4047fb=this[_0x4ac6eb(0x447)][_0x4ac6eb(0x394)][_0x4ac6eb(0x1cf)](this[_0x4ac6eb(0x447)][_0x4ac6eb(0x394)][_0x4ac6eb(0xc7)]()[_0x4ac6eb(0x387)])([_0x2f253c],this[_0x4ac6eb(0x464)])||[_0x2f253c];this[_0x4ac6eb(0x3d3)](_0x4047fb[0x0]);})),_0x360c94;}};_0x5afe54=_0x5da6ca([_0x26312a(0x3,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x4,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb['CompressMutationService'])),_0x26312a(0x5,(0x0,_0x594924['Inject'])(_0x594924['LocaleService'])),_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb['RevisionService'])),_0x26312a(0x7,(0x0,_0x594924['Inject'])(_0x18fc5c)),_0x26312a(0x8,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972)),_0x26312a(0x9,_0x594924[_0x28ce9c(0xdf)]),_0x26312a(0xa,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xb,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0xc,_0x594924[_0x28ce9c(0x415)]),_0x26312a(0xd,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x141436)),_0x26312a(0xe,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x5afe54);let _0x32033d=class extends _0x4e94dc{constructor(_0x4e50d2,_0x4e9582,_0x9ceac8,_0x99d534,_0x869b6,_0x5021b6,_0x17ee29,_0x58c6fc,_0x54a634,_0x4533b7,_0x4e31d7,_0x40d916,_0x4c4169,_0x3597cc){const _0x299640=_0x28ce9c;super(_0x4e50d2,_0x9ceac8,_0x4e9582,_0x99d534,_0x869b6,_0x5021b6,_0x17ee29,_0x58c6fc,_0x54a634,_0x4533b7,_0x4e31d7,_0x40d916,_0x4c4169,_0x3597cc),this[_0x299640(0x2b4)]=_0x4e50d2,this[_0x299640(0x23b)]=_0x4e9582;}async[_0x28ce9c(0x21d)](){const _0x221367=_0x28ce9c;let _0x4a3c70=await super[_0x221367(0x21d)]();return this[_0x221367(0x416)](this[_0x221367(0x3e5)][_0x221367(0x22c)]((_0x59adc1,_0x2d232e)=>{const _0x4e5640=_0x221367;if(_0x59adc1['type']!==_0x594924['CommandType'][_0x4e5640(0x45a)]||_0x2d232e!=null&&_0x2d232e['fromCollab']||_0x2d232e!=null&&_0x2d232e[_0x4e5640(0x390)])return;let _0x4625fb=_0x59adc1[_0x4e5640(0x26a)];if((_0x4625fb==null?void 0x0:_0x4625fb['unitId'])!==this[_0x4e5640(0x2b4)])return;let _0x19840d=_0x59adc1,_0x42d4c4=this[_0x4e5640(0x447)][_0x4e5640(0x394)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x4e5640(0x394)][_0x4e5640(0xc7)]()['COMPRESS_MUTATION_SEND'])([_0x19840d],this[_0x4e5640(0x464)])||[_0x19840d];this[_0x4e5640(0x3d3)](_0x42d4c4[0x0]);})),_0x4a3c70;}};_0x32033d=_0x5da6ca([_0x26312a(0x3,(0x0,_0x594924['Inject'])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x4,(0x0,_0x594924['Inject'])(_0x59e2cb[_0x28ce9c(0x11f)])),_0x26312a(0x5,(0x0,_0x594924['Inject'])(_0x594924[_0x28ce9c(0x3a4)])),_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x7,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972)),_0x26312a(0x8,_0x594924['IUniverInstanceService']),_0x26312a(0x9,_0x594924['ILogService']),_0x26312a(0xa,_0x594924['ICommandService']),_0x26312a(0xb,_0x594924[_0x28ce9c(0x415)]),_0x26312a(0xc,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x141436)),_0x26312a(0xd,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x32033d);let _0x59d8da=class extends _0x4e94dc{constructor(_0x5b1e1d,_0x1d69c8,_0x5cb287,_0x1b5f50,_0x37a38d,_0x1cab54,_0xf06e05,_0x1be076,_0x2424aa,_0x2af418,_0x57003d,_0x2b631c,_0x3c1bfa,_0x31b843){const _0x5ae1cd=_0x28ce9c;super(_0x5b1e1d,_0x5cb287,_0x1d69c8,_0x1b5f50,_0x37a38d,_0x1cab54,_0xf06e05,_0x1be076,_0x2424aa,_0x2af418,_0x57003d,_0x2b631c,_0x3c1bfa,_0x31b843),this[_0x5ae1cd(0x2b4)]=_0x5b1e1d,this['type']=_0x1d69c8;}async['_init'](){const _0x397327=_0x28ce9c;let _0x5d2d66=await super[_0x397327(0x21d)]();return this[_0x397327(0x416)](this[_0x397327(0x3e5)][_0x397327(0x22c)]((_0x1d732e,_0x2b5269)=>{const _0xf84110=_0x397327;if(_0x1d732e[_0xf84110(0x23b)]!==_0x594924[_0xf84110(0xe4)][_0xf84110(0x45a)]||_0x2b5269!=null&&_0x2b5269[_0xf84110(0x1de)]||_0x2b5269!=null&&_0x2b5269[_0xf84110(0x390)])return;let _0x144433=_0x1d732e['params'];if((_0x144433==null?void 0x0:_0x144433[_0xf84110(0x3f9)])!==this[_0xf84110(0x2b4)])return;let _0x160a96=_0x1d732e,_0x2dfd5a=this[_0xf84110(0x447)]['interceptor']['fetchThroughInterceptors'](this[_0xf84110(0x447)][_0xf84110(0x394)]['getInterceptPoints']()[_0xf84110(0x387)])([_0x160a96],this[_0xf84110(0x464)])||[_0x160a96];this[_0xf84110(0x3d3)](_0x2dfd5a[0x0]);})),_0x5d2d66;}};_0x59d8da=_0x5da6ca([_0x26312a(0x3,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x4,(0x0,_0x594924['Inject'])(_0x59e2cb['CompressMutationService'])),_0x26312a(0x5,(0x0,_0x594924['Inject'])(_0x594924[_0x28ce9c(0x3a4)])),_0x26312a(0x6,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x448)])),_0x26312a(0x7,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972)),_0x26312a(0x8,_0x594924[_0x28ce9c(0xdf)]),_0x26312a(0x9,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xa,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0xb,_0x594924[_0x28ce9c(0x415)]),_0x26312a(0xc,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x141436)),_0x26312a(0xd,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x59d8da);let _0x2b7afa=class extends _0x4e94dc{constructor(_0x486393,_0x5332c4,_0x4fbd1b,_0x4b8f9c,_0xfe6e9a,_0x43992f,_0x25d417,_0x3422b8,_0x5405c2,_0x21cd86,_0x306236,_0x2a0d03,_0x12d47e,_0x52dfeb){const _0x1f9fc8=_0x28ce9c;super(_0x486393,_0x4fbd1b,_0x5332c4,_0x4b8f9c,_0xfe6e9a,_0x43992f,_0x25d417,_0x3422b8,_0x5405c2,_0x21cd86,_0x306236,_0x2a0d03,_0x12d47e,_0x52dfeb),this[_0x1f9fc8(0x2b4)]=_0x486393,this[_0x1f9fc8(0x23b)]=_0x5332c4;}async[_0x28ce9c(0x21d)](){const _0x4b80d5=_0x28ce9c;let _0x110a64=await super[_0x4b80d5(0x21d)]();return this[_0x4b80d5(0x416)](this[_0x4b80d5(0x3e5)][_0x4b80d5(0x22c)]((_0x107a8d,_0x16dea8)=>{const _0x88dd6b=_0x4b80d5;if(_0x107a8d[_0x88dd6b(0x23b)]!==_0x594924[_0x88dd6b(0xe4)][_0x88dd6b(0x45a)]||_0x16dea8!=null&&_0x16dea8['fromCollab']||_0x16dea8!=null&&_0x16dea8[_0x88dd6b(0x390)])return;let _0x416ad4=_0x107a8d['params'];if((_0x416ad4==null?void 0x0:_0x416ad4[_0x88dd6b(0x3f9)])!==this[_0x88dd6b(0x2b4)])return;let _0x340c38=_0x107a8d,_0x3679c2=this[_0x88dd6b(0x447)][_0x88dd6b(0x394)][_0x88dd6b(0x1cf)](this[_0x88dd6b(0x447)]['interceptor'][_0x88dd6b(0xc7)]()[_0x88dd6b(0x387)])([_0x340c38],this[_0x88dd6b(0x464)])||[_0x340c38];this[_0x88dd6b(0x3d3)](_0x3679c2[0x0]);})),_0x110a64;}};_0x2b7afa=_0x5da6ca([_0x26312a(0x3,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x4,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x11f)])),_0x26312a(0x5,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x3a4)])),_0x26312a(0x6,(0x0,_0x594924['Inject'])(_0x59e2cb['RevisionService'])),_0x26312a(0x7,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972)),_0x26312a(0x8,_0x594924['IUniverInstanceService']),_0x26312a(0x9,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0xa,_0x594924['ICommandService']),_0x26312a(0xb,_0x594924[_0x28ce9c(0x415)]),_0x26312a(0xc,(0x0,_0x594924['Optional'])(_0x141436)),_0x26312a(0xd,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x2b7afa);let _0x2ed4c4=(0x0,_0x594924[_0x28ce9c(0x2ab)])('univer-pro.collaboration-client.network-condition.service');function _0x41b36b(_0x4c55d9){const _0x5ef502=_0x28ce9c;let _0x447d38=_0x4c55d9['data'],_0x5e4942=JSON[_0x5ef502(0xb5)](_0x447d38);switch(_0x5e4942['cmd']){case _0x4500fa['CombCmd'][_0x5ef502(0x24f)]:case _0x4500fa[_0x5ef502(0x3b9)][_0x5ef502(0x3a9)]:{let _0x5c50d9=_0x5e4942[_0x5ef502(0x28d)];return{..._0x5e4942,'data':_0x5c50d9,'cmd':_0x5e4942[_0x5ef502(0x30e)]};}case _0x4500fa[_0x5ef502(0x3b9)][_0x5ef502(0x41a)]:{let _0x427745=_0x5e4942[_0x5ef502(0x47b)];return{..._0x5e4942,'data':_0x427745,'cmd':_0x5e4942[_0x5ef502(0x30e)]};}case _0x4500fa[_0x5ef502(0x3b9)][_0x5ef502(0x49b)]:{let _0x3cfbd8=_0x5e4942[_0x5ef502(0xf8)];switch(_0x3cfbd8[_0x5ef502(0x202)]){case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0x42b)]:{let {cs:_0x4cd3c4,code:_0x1430b4,reason:_0x420f8c}=_0x3cfbd8[_0x5ef502(0x284)]??{};return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x4cd3c4,'code':_0x1430b4,'reason':_0x420f8c},'cmd':_0x5e4942[_0x5ef502(0x30e)]};}case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0x320)]:var _0x1458a6;return{..._0x5e4942,'data':{..._0x3cfbd8,'data':(_0x1458a6=_0x3cfbd8[_0x5ef502(0x230)])==null?void 0x0:_0x1458a6['cs']},'cmd':_0x5e4942[_0x5ef502(0x30e)]};case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0x175)]:var _0xe7aa7;return{..._0x5e4942,'data':{..._0x3cfbd8,'data':(_0xe7aa7=_0x3cfbd8['newCsEvent'])==null?void 0x0:_0xe7aa7['cs']},'cmd':_0x5e4942['cmd']};case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0x374)]:{let {cs:_0x1a2749,code:_0x2f9e3e,reason:_0x679c19}=_0x3cfbd8['csRejEvent']??{};return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x1a2749,'code':_0x2f9e3e,'reason':_0x679c19},'cmd':_0x5e4942['cmd']};}case _0x59e2cb[_0x5ef502(0x12b)]['CHANGESET_SHOULD_RETRY']:{let {cs:_0x556165,code:_0x31dcff,reason:_0xded66e}=_0x3cfbd8[_0x5ef502(0x193)]??{};return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x556165,'code':_0x31dcff,'reason':_0xded66e},'cmd':_0x5e4942[_0x5ef502(0x30e)]};}case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0x2ad)]:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8[_0x5ef502(0x1b0)]},'cmd':_0x5e4942[_0x5ef502(0x30e)]};case _0x59e2cb['CollaborationEvent']['USERS_ENTER']:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8['joinEvent']},'cmd':_0x5e4942[_0x5ef502(0x30e)]};case _0x59e2cb[_0x5ef502(0x12b)]['USERS_LEAVE']:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8[_0x5ef502(0x409)]},'cmd':_0x5e4942[_0x5ef502(0x30e)]};case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0xde)]:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8[_0x5ef502(0x418)]},'cmd':_0x5e4942[_0x5ef502(0x30e)]};case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0x463)]:case _0x59e2cb['CollaborationEvent'][_0x5ef502(0x45b)]:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8[_0x5ef502(0x3ca)]},'cmd':_0x5e4942[_0x5ef502(0x30e)]};case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0x1db)]:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8['liveShareNewHost']},'cmd':_0x5e4942['cmd']};case _0x59e2cb['CollaborationEvent'][_0x5ef502(0x113)]:return{..._0x5e4942,'data':_0x3cfbd8,'cmd':_0x5e4942['cmd']};case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0x19c)]:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8[_0x5ef502(0x486)]},'cmd':_0x5e4942[_0x5ef502(0x30e)]};case _0x59e2cb[_0x5ef502(0x12b)]['UPDATE_PERMISSION_OBJ']:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8[_0x5ef502(0x243)]},'cmd':_0x5e4942[_0x5ef502(0x30e)]};case _0x59e2cb['CollaborationEvent']['SHOULD_CLOSE_CONN']:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8[_0x5ef502(0x1ad)]},'cmd':_0x5e4942['cmd']};case _0x59e2cb[_0x5ef502(0x12b)][_0x5ef502(0x1ce)]:return{..._0x5e4942,'data':{..._0x3cfbd8,'data':_0x3cfbd8[_0x5ef502(0x304)]},'cmd':_0x5e4942[_0x5ef502(0x30e)]};default:return _0x5e4942;}}default:return _0x5e4942;}}function _0x1e9454(_0x49da7e){const _0x5220d7=_0x28ce9c;switch(_0x49da7e[_0x5220d7(0x30e)]){case _0x4500fa[_0x5220d7(0x3b9)]['HEARTBEAT']:case _0x4500fa['CombCmd'][_0x5220d7(0x3a9)]:return JSON['stringify']({'cmd':_0x49da7e[_0x5220d7(0x30e)],'routeKey':_0x49da7e['routeKey']});case _0x4500fa[_0x5220d7(0x3b9)][_0x5220d7(0x383)]:{let _0x466be5;switch(_0x49da7e[_0x5220d7(0xfa)][_0x5220d7(0x202)]){case _0x59e2cb[_0x5220d7(0x12b)][_0x5220d7(0x2ad)]:_0x466be5={'eventID':_0x59e2cb[_0x5220d7(0x12b)][_0x5220d7(0x2ad)],'updateCursorEvent':_0x49da7e[_0x5220d7(0xfa)]['data']};break;case _0x59e2cb['CollaborationEvent']['USERS_LEAVE']:_0x466be5={'eventID':_0x59e2cb[_0x5220d7(0x12b)][_0x5220d7(0x226)],'leaveEvent':_0x49da7e[_0x5220d7(0xfa)][_0x5220d7(0xfa)]};break;case _0x59e2cb['CollaborationEvent'][_0x5220d7(0x1ac)]:_0x466be5={'eventID':_0x59e2cb[_0x5220d7(0x12b)][_0x5220d7(0x1ac)],'joinEvent':_0x49da7e[_0x5220d7(0xfa)][_0x5220d7(0xfa)]};break;case _0x59e2cb['CollaborationEvent'][_0x5220d7(0xde)]:_0x466be5={'eventID':_0x59e2cb[_0x5220d7(0x12b)][_0x5220d7(0xde)],'liveShareNewHost':_0x49da7e[_0x5220d7(0xfa)][_0x5220d7(0xfa)]};break;case _0x59e2cb[_0x5220d7(0x12b)][_0x5220d7(0x45b)]:_0x466be5={'eventID':_0x59e2cb['CollaborationEvent'][_0x5220d7(0x45b)],'liveShareOperation':_0x49da7e[_0x5220d7(0xfa)]['data']};break;case _0x59e2cb['CollaborationEvent'][_0x5220d7(0x1db)]:_0x466be5={'eventID':_0x59e2cb[_0x5220d7(0x12b)][_0x5220d7(0x1db)],'liveShareTerminate':_0x49da7e[_0x5220d7(0xfa)]['data']};break;case _0x59e2cb[_0x5220d7(0x12b)][_0x5220d7(0x1c9)]:_0x466be5={'eventID':_0x59e2cb['CollaborationEvent'][_0x5220d7(0x1c9)],'liveShareRequestHost':_0x49da7e['data'][_0x5220d7(0xfa)]};break;case _0x59e2cb['CollaborationEvent'][_0x5220d7(0x463)]:_0x466be5={'eventID':_0x59e2cb[_0x5220d7(0x12b)][_0x5220d7(0x463)]};break;default:_0x466be5={'eventID':_0x49da7e[_0x5220d7(0xfa)][_0x5220d7(0x202)]};}return JSON[_0x5220d7(0x122)]({'cmd':_0x49da7e[_0x5220d7(0x30e)],'routeKey':_0x49da7e[_0x5220d7(0x1e6)],'collaMsg':_0x466be5});}case _0x4500fa['CombCmd'][_0x5220d7(0x41a)]:return JSON[_0x5220d7(0x122)]({'cmd':_0x49da7e[_0x5220d7(0x30e)],'routeKey':_0x49da7e['routeKey'],'joinReq':_0x49da7e['data']});case _0x4500fa[_0x5220d7(0x3b9)][_0x5220d7(0x168)]:return JSON[_0x5220d7(0x122)]({'cmd':_0x49da7e[_0x5220d7(0x30e)],'routeKey':_0x49da7e['routeKey'],'leaveReq':_0x49da7e[_0x5220d7(0xfa)]});default:throw Error(_0x5220d7(0x22e));}}let _0x51dc05=(0x0,_0x594924[_0x28ce9c(0x2ab)])(_0x28ce9c(0x433));function _0x228f6f(_0x26c3a3,_0x3ece18,_0x529cba){const _0x477c71=_0x28ce9c;return _0x26c3a3+'/'+_0x3ece18+_0x477c71(0x2ae)+_0x529cba+_0x477c71(0x362);}let _0x5bdcdd=class extends _0x594924[_0x28ce9c(0x270)]{constructor(_0x2e301c,_0x4094e8,_0x5db7fc,_0x4be9f1,_0x3cc583){const _0x598043=_0x28ce9c;super(),this[_0x598043(0x476)]=_0x2e301c,this['_httpService']=_0x4094e8,this[_0x598043(0x36f)]=_0x5db7fc,this[_0x598043(0x467)]=_0x4be9f1,this[_0x598043(0xab)]=_0x3cc583;}[_0x28ce9c(0x39e)](_0x31ff6c){const _0x4698c6=_0x28ce9c;let _0x3680b0=this[_0x4698c6(0x476)][_0x4698c6(0x21c)](_0x38af37[_0x4698c6(0x3a2)]);if(!_0x3680b0)throw Error(_0x4698c6(0x156));let _0x2ceddc=_0x3680b0[_0x4698c6(0x15b)](_0x31ff6c);if(!_0x2ceddc)throw Error(_0x4698c6(0x288));let _0x43b811=new _0x594924[(_0x4698c6(0x39f))](),_0x3a7afe=new _0x5d1b30['Subject']();_0x43b811[_0x4698c6(0x2fd)](_0x2ceddc['close$'][_0x4698c6(0x335)](_0x50636c=>_0x3a7afe['next'](_0x50636c))),_0x43b811[_0x4698c6(0x2fd)]((0x0,_0x594924[_0x4698c6(0x240)])(()=>_0x3a7afe['complete']()));let _0x504284=new _0x5d1b30[(_0x4698c6(0x479))]();_0x43b811[_0x4698c6(0x2fd)](_0x2ceddc[_0x4698c6(0x200)][_0x4698c6(0x335)](_0x213cf3=>_0x504284[_0x4698c6(0x12d)](_0x213cf3))),_0x43b811[_0x4698c6(0x2fd)]((0x0,_0x594924['toDisposable'])(()=>_0x504284[_0x4698c6(0x427)]()));let _0xf68492=new _0x5d1b30[(_0x4698c6(0x479))]();_0x43b811[_0x4698c6(0x2fd)](_0x2ceddc[_0x4698c6(0x29f)]['subscribe'](_0x1a70de=>{const _0x5d2c50=_0x4698c6;let _0x19bb73=_0x41b36b(_0x1a70de);_0xf68492[_0x5d2c50(0x12d)](_0x19bb73);})),_0x43b811[_0x4698c6(0x2fd)]((0x0,_0x594924[_0x4698c6(0x240)])(()=>_0xf68492[_0x4698c6(0x427)]()));let _0xd629ce,_0x2c1182=()=>{const _0x4e4a96=_0x4698c6;_0x504284[_0x4e4a96(0x12d)](new Event('connection\x20error')),_0x3a7afe[_0x4e4a96(0x12d)](new Event('connection\x20error')),_0xd629ce[_0x4e4a96(0x47a)]();};return _0xd629ce={'memberID':'','close$':_0x3a7afe[_0x4698c6(0x2a6)](),'error$':_0x504284[_0x4698c6(0x2a6)](),'open$':_0x2ceddc['open$'],'message$':_0xf68492[_0x4698c6(0x2a6)](),'send':(_0x3cc687,_0x9f0b82)=>{const _0x4e0271=_0x4698c6;if(_0x3cc687[_0x4e0271(0x30e)]===_0x4500fa[_0x4e0271(0x3b9)][_0x4e0271(0x383)]){if(_0x3cc687[_0x4e0271(0xfa)][_0x4e0271(0x202)]===_0x59e2cb['CollaborationEvent'][_0x4e0271(0x3ce)]){let _0x409076=this[_0x4e0271(0xfd)](_0xd629ce,_0x3cc687['data'],(_0x9f0b82==null?void 0x0:_0x9f0b82[_0x4e0271(0x338)])??0x1d4c0);return _0x409076[_0x4e0271(0xad)](()=>void 0x0),_0x409076;}if(_0x3cc687[_0x4e0271(0xfa)][_0x4e0271(0x202)]===_0x59e2cb[_0x4e0271(0x12b)][_0x4e0271(0x1b5)]){let _0x1849f6=_0x3cc687[_0x4e0271(0xfa)];this[_0x4e0271(0x322)](_0x1849f6)[_0x4e0271(0x1c7)](_0x3d0788=>{const _0x44e6ef=_0x4e0271;_0xf68492['next']({'cmd':_0x4500fa['CombCmd'][_0x44e6ef(0x49b)],'code':_0x4500fa['CmdRspCode']['OK'],'routeKey':_0x1849f6[_0x44e6ef(0xfa)]['unitID'],'routeType':'','data':{'eventID':_0x59e2cb[_0x44e6ef(0x12b)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3d0788}}});})['catch'](_0x444da6=>{const _0xce004e=_0x4e0271;this[_0xce004e(0x467)][_0xce004e(0x430)](_0x444da6),_0x2c1182();});return;}}_0x2ceddc[_0x4e0271(0xaf)](_0x1e9454(_0x3cc687));},'close':()=>{const _0x34b0ad=_0x4698c6;_0x2ceddc[_0x34b0ad(0x47a)](),_0x43b811[_0x34b0ad(0x107)]();}},_0xd629ce;}[_0x28ce9c(0xfd)](_0x2e6ed2,_0x2eeb50,_0x35580b){const _0x4e86ef=_0x28ce9c;let {unitType:_0xcba00c,unitID:_0x51a084,changeset:_0x33256f}=_0x2eeb50[_0x4e86ef(0xfa)],_0xbb4bd9={'unitID':_0x51a084,'memberID':_0x2e6ed2['memberID'],'type':_0xcba00c,'changeset':(0x0,_0x59e2cb[_0x4e86ef(0x31c)])(_0x33256f)},_0x486b23=this['_configService'][_0x4e86ef(0x3ba)](_0xe358d2),_0x4d825d=_0x228f6f((_0x486b23==null?void 0x0:_0x486b23['collabSubmitChangesetUrl'])??_0x4e86ef(0x37c),_0xcba00c,_0x51a084);return(0x0,_0x5d1b30['firstValueFrom'])(this[_0x4e86ef(0x33f)][_0x4e86ef(0x26f)](_0x4e86ef(0x363),_0x4d825d,{'body':_0xbb4bd9})[_0x4e86ef(0x3e8)]((0x0,_0x5d1b30['filter'])(_0x991a75=>_0x991a75[_0x4e86ef(0x23b)]===_0x38af37[_0x4e86ef(0x3a6)][_0x4e86ef(0x4a1)]),(0x0,_0x5d1b30['timeout'])(_0x35580b)))[_0x4e86ef(0x1c7)](()=>void 0x0,_0x453192=>{const _0x3494c5=_0x4e86ef;throw this[_0x3494c5(0x467)]['warn'](_0x3494c5(0x43b),_0x3494c5(0x489)+_0x33256f['sid']+':'+_0x33256f[_0x3494c5(0x2b9)]+_0x3494c5(0x25c)+_0x590939(_0x453192)),_0x453192;});}async['_fetchMissChangesets'](_0x5e3a9a){const _0x2219b6=_0x28ce9c;let {unitID:_0x16ad76,from:_0x1dcfc9,to:_0x2dd375,unitType:_0x1244ef}=_0x5e3a9a[_0x2219b6(0xfa)];return(await this['_snapshotServerService'][_0x2219b6(0x311)]({'metadata':void 0x0},{'unitID':_0x16ad76,'type':_0x1244ef,'from':_0x1dcfc9,'to':_0x2dd375}))[_0x2219b6(0x28a)][_0x2219b6(0x225)](_0x35a377=>((_0x35a377['mutations']===null||_0x35a377[_0x2219b6(0x43e)]===void 0x0)&&(_0x35a377['mutations']=[]),_0x35a377));}};_0x5bdcdd=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924['Injector'])),_0x26312a(0x1,(0x0,_0x594924['Inject'])(_0x38af37[_0x28ce9c(0x41f)])),_0x26312a(0x2,_0x594924[_0x28ce9c(0x101)]),_0x26312a(0x3,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0x4,_0x59e2cb['ISnapshotServerService'])],_0x5bdcdd);function _0x590939(_0xcde9d5){const _0xc3bca7=_0x28ce9c;return _0xcde9d5 instanceof _0x38af37['HTTPResponseError']?'HTTP\x20'+(_0xcde9d5[_0xc3bca7(0x477)]??0x0):_0xcde9d5 instanceof Error?_0xcde9d5[_0xc3bca7(0x1b2)]:String(_0xcde9d5);}let _0x8830e8=(0x0,_0x594924['createIdentifier'])(_0x28ce9c(0x11a));function _0x5273fe(_0x7ed67d={}){const _0x591d48=_0x28ce9c;return _0x7ed67d[_0x591d48(0x19e)]?{'resolveUnit':_0x7ed67d[_0x591d48(0x19e)]}:{'resolveUnit':_0x199d3d=>({'target':{'unitId':_0x199d3d[_0x591d48(0x3f9)],'unitType':_0x199d3d[_0x591d48(0x170)]}})};}function _0x5641f6(_0x24c0ad,_0x27c160,_0x49a1be){const _0x4cecb5=_0x28ce9c;let _0x5b3d0a=_0x49a1be['target'][_0x4cecb5(0x2be)];if(_0x5b3d0a!=null&&_0x5b3d0a[_0x4cecb5(0x367)]()==='')throw Error(_0x4cecb5(0x3d2));if(!_0x49a1be[_0x4cecb5(0x2bc)][_0x4cecb5(0x3f9)])throw Error(_0x4cecb5(0x33a));return{'localUnitId':_0x24c0ad,'unitType':_0x27c160,'target':{'endpoint':_0x5b3d0a,'unitId':_0x49a1be['target'][_0x4cecb5(0x3f9)],'unitType':_0x49a1be[_0x4cecb5(0x2bc)][_0x4cecb5(0x170)]??_0x27c160},'changeset':_0x49a1be[_0x4cecb5(0x265)]};}let _0x1c7cac=class extends _0x594924[_0x28ce9c(0x270)]{constructor(_0x3d2ff0,_0x1c51b2,_0x5f140b,_0x3f1bd5,_0x2e457c,_0x413bb0){const _0x1bdc96=_0x28ce9c;super(),this[_0x1bdc96(0x476)]=_0x3d2ff0,this[_0x1bdc96(0x467)]=_0x1c51b2,this['_configService']=_0x5f140b,this[_0x1bdc96(0x17e)]=_0x3f1bd5,this[_0x1bdc96(0x445)]=_0x2e457c,this['_adapter']=_0x413bb0,_0x4c0132(this,'_sessions',new Map()),_0x4c0132(this,_0x1bdc96(0x188),new Map()),_0x4c0132(this,_0x1bdc96(0x1d9),new Map()),_0x4c0132(this,_0x1bdc96(0x496),new Map()),_0x4c0132(this,'_networkConditionService',void 0x0),_0x4c0132(this,'socket$',this['_getSocketChannel'](void 0x0)[_0x1bdc96(0x1ff)]['asObservable']()),_0x4c0132(this,_0x1bdc96(0x277),new _0x5d1b30[(_0x1bdc96(0x21a))](0x0)),_0x4c0132(this,_0x1bdc96(0x1b6),this[_0x1bdc96(0x277)][_0x1bdc96(0x2a6)]());}[_0x28ce9c(0x313)](){const _0x2a2d86=_0x28ce9c;this[_0x2a2d86(0x17d)]||(this[_0x2a2d86(0x17d)]=this['_injector']['get'](_0x2ed4c4,_0x594924[_0x2a2d86(0x400)][_0x2a2d86(0x3eb)])??void 0x0,this[_0x2a2d86(0x17d)]&&this[_0x2a2d86(0x416)](this['_networkConditionService'][_0x2a2d86(0x18e)]['subscribe'](_0xa100a6=>{const _0x2ec441=_0x2a2d86;_0xa100a6&&this['reconnect'](),_0xa100a6||this[_0x2ec441(0x496)][_0x2ec441(0x3ab)](_0x5670ce=>this[_0x2ec441(0x2a4)](_0x5670ce));})));}['dispose'](){const _0x9358fa=_0x28ce9c;super[_0x9358fa(0x107)](),this[_0x9358fa(0x496)][_0x9358fa(0x3ab)](_0x3bf835=>{const _0x3908ad=_0x9358fa;var _0x31be3d,_0x296509,_0x1866fd;(_0x31be3d=_0x3bf835[_0x3908ad(0x185)])==null||_0x31be3d['unsubscribe'](),_0x3bf835[_0x3908ad(0x185)]=null,this[_0x3908ad(0x49c)](_0x3bf835),this[_0x3908ad(0x2f4)](_0x3bf835),this['_clearTimeoutTimer'](_0x3bf835),this[_0x3908ad(0x39d)](_0x3bf835),(_0x296509=_0x3bf835[_0x3908ad(0x1ff)][_0x3908ad(0xe5)]())==null||_0x296509[_0x3908ad(0x47a)](),(_0x1866fd=_0x3bf835['candidateSocket'])==null||_0x1866fd[_0x3908ad(0x47a)](),_0x3bf835[_0x3908ad(0x1ff)]['complete']();}),this[_0x9358fa(0x496)][_0x9358fa(0x380)](),this[_0x9358fa(0x31b)][_0x9358fa(0x3ab)](_0x1157a0=>_0x1157a0[_0x9358fa(0x107)]()),this['_sessions']['clear'](),this[_0x9358fa(0x1d9)][_0x9358fa(0x380)](),this[_0x9358fa(0x277)]['complete']();}async[_0x28ce9c(0x444)](_0x200f28,_0x13e0b3){const _0x554820=_0x28ce9c;if(this[_0x554820(0x313)](),this[_0x554820(0x31b)]['has'](_0x200f28))return this['_sessions'][_0x554820(0x21c)](_0x200f28);let _0x3ecc90=this[_0x554820(0x188)]['get'](_0x200f28);if(_0x3ecc90)return _0x3ecc90;let _0x1957d4=this[_0x554820(0x323)](_0x200f28,_0x13e0b3);this[_0x554820(0x188)]['set'](_0x200f28,_0x1957d4);try{return await _0x1957d4;}finally{this['_pendingSessions'][_0x554820(0x203)](_0x200f28);}}async[_0x28ce9c(0x323)](_0x4ef5d4,_0x21d2f9){const _0x568fec=_0x28ce9c;let _0x305ec8=await this[_0x568fec(0x44d)](_0x4ef5d4,_0x21d2f9),_0x1bf5c8=this[_0x568fec(0x49e)](_0x305ec8[_0x568fec(0x2bc)][_0x568fec(0x2be)]);this[_0x568fec(0x494)](_0x1bf5c8);let _0xfe738d=this['_injector'][_0x568fec(0x26c)](_0x5e5039,_0x305ec8,_0x1bf5c8[_0x568fec(0x1ff)][_0x568fec(0x2a6)]());return this[_0x568fec(0x31b)][_0x568fec(0x360)](_0x4ef5d4,_0xfe738d),this[_0x568fec(0x1d9)]['set'](_0x4ef5d4,_0x1bf5c8[_0x568fec(0x18d)]),_0xfe738d;}[_0x28ce9c(0x231)](_0x1ad185){const _0x5f12fc=_0x28ce9c;let _0x9b798=this['_sessions']['get'](_0x1ad185),_0x115c61=this[_0x5f12fc(0x1d9)][_0x5f12fc(0x21c)](_0x1ad185);if(_0x9b798&&(this[_0x5f12fc(0x31b)]['delete'](_0x1ad185),this[_0x5f12fc(0x1d9)]['delete'](_0x1ad185),_0x9b798[_0x5f12fc(0x47a)]()),_0x115c61!==void 0x0&&!this[_0x5f12fc(0x1d6)](_0x115c61)){let _0x11fde3=this[_0x5f12fc(0x496)][_0x5f12fc(0x21c)](_0x115c61);_0x11fde3&&this[_0x5f12fc(0x2a4)](_0x11fde3);}}[_0x28ce9c(0x326)](){const _0x51de6f=_0x28ce9c;(this['_socketChannels']['size']?[...this[_0x51de6f(0x496)][_0x51de6f(0x3dc)]()]:[this[_0x51de6f(0x49e)](void 0x0)])[_0x51de6f(0x3ab)](_0xb1c09a=>{const _0x5f2f28=_0x51de6f;!this[_0x5f2f28(0x1d6)](_0xb1c09a[_0x5f2f28(0x18d)])||_0xb1c09a[_0x5f2f28(0xd9)]||_0xb1c09a['candidateSocket']||_0xb1c09a[_0x5f2f28(0xe7)]||(_0xb1c09a['retryCount']=0x0,this[_0x5f2f28(0x2f4)](_0xb1c09a),this['_tryReconnect'](_0xb1c09a));});}[_0x28ce9c(0x2f4)](_0x4a6b6f){const _0x4e42bb=_0x28ce9c;_0x4a6b6f[_0x4e42bb(0x370)]!=null&&(clearTimeout(_0x4a6b6f[_0x4e42bb(0x370)]),_0x4a6b6f[_0x4e42bb(0x370)]=null);}[_0x28ce9c(0x17c)](_0x47ac28){const _0x527678=_0x28ce9c;let _0x27e7f0=this[_0x527678(0x36f)]['getConfig'](_0xe358d2),_0x142b21=_0x47ac28[_0x527678(0x2be)]??(_0x27e7f0==null?void 0x0:_0x27e7f0[_0x527678(0x422)])??_0x527678(0x437);return this['_socketService'][_0x527678(0x15b)](_0x142b21);}async[_0x28ce9c(0x494)](_0x3b280b){const _0x772a64=_0x28ce9c;var _0x558760;if(this[_0x772a64(0x3e9)]||((_0x558760=this[_0x772a64(0x17d)])==null?void 0x0:_0x558760[_0x772a64(0x2d7)])===!0x1||_0x3b280b[_0x772a64(0xd9)]||_0x3b280b[_0x772a64(0x24e)]||_0x3b280b[_0x772a64(0xe7)])return;let _0x312d7a={};_0x3b280b['connectionAttempt']=_0x312d7a;try{let _0x1e9a29=await this[_0x772a64(0x17c)](_0x3b280b);if(this[_0x772a64(0x3e9)]||_0x3b280b['connectionAttempt']!==_0x312d7a){_0x1e9a29==null||_0x1e9a29[_0x772a64(0x47a)]();return;}if(_0x1e9a29){var _0x5c1464;_0x3b280b[_0x772a64(0x24e)]=_0x1e9a29,_0x3b280b[_0x772a64(0x32f)]=setTimeout(()=>{const _0x4f8efb=_0x772a64;!this['_disposed']&&_0x3b280b[_0x4f8efb(0x24e)]===_0x1e9a29&&this[_0x4f8efb(0x1d7)](_0x3b280b);},0x4e20);let _0xc1ae4e=_0x1e9a29[_0x772a64(0xaf)];_0x1e9a29['send']=(_0x2511b5,_0x1d4bcd)=>{const _0xe1daca=_0x772a64;_0x2511b5[_0xe1daca(0x30e)]!==_0x4500fa['CombCmd'][_0xe1daca(0x168)]&&!_0x3d169f(_0x2511b5)&&_0x3b280b[_0xe1daca(0xd9)]&&_0x3b280b[_0xe1daca(0x1ff)][_0xe1daca(0xe5)]()===_0x1e9a29&&this[_0xe1daca(0x142)](_0x3b280b);let _0x21ebcb=_0x1d4bcd===void 0x0?_0xc1ae4e[_0xe1daca(0x16b)](_0x1e9a29,_0x2511b5):_0xc1ae4e[_0xe1daca(0x16b)](_0x1e9a29,_0x2511b5,_0x1d4bcd);return _0x21ebcb instanceof Promise&&_0x21ebcb[_0xe1daca(0xad)](_0x540f19=>{const _0xa8ecdd=_0xe1daca;_0x143146(_0x540f19)&&_0x3b280b[_0xa8ecdd(0x1ff)][_0xa8ecdd(0xe5)]()===_0x1e9a29&&this[_0xa8ecdd(0x2b0)](_0x3b280b);}),_0x21ebcb;},(_0x5c1464=_0x3b280b[_0x772a64(0x185)])==null||_0x5c1464[_0x772a64(0x413)]();let _0x52506d=new _0x5d1b30[(_0x772a64(0x393))]();_0x3b280b[_0x772a64(0x185)]=_0x52506d,_0x52506d['add'](_0x1e9a29[_0x772a64(0x29f)]['subscribe'](_0x443083=>this['_onMessage'](_0x3b280b,_0x1e9a29,_0x443083))),_0x52506d['add'](_0x1e9a29[_0x772a64(0x200)][_0x772a64(0x3e8)]((0x0,_0x47dd8f[_0x772a64(0x143)])(0x1))['subscribe'](_0x28edfd=>this[_0x772a64(0x467)][_0x772a64(0x430)](_0x772a64(0x2ca),_0x28edfd))),_0x52506d['add'](_0x1e9a29[_0x772a64(0x376)][_0x772a64(0x3e8)]((0x0,_0x47dd8f[_0x772a64(0x143)])(0x1))[_0x772a64(0x335)](()=>{this['_onConnectionOpen'](_0x3b280b,_0x1e9a29);})),_0x52506d[_0x772a64(0x2fd)](_0x1e9a29[_0x772a64(0x46b)][_0x772a64(0x3e8)]((0x0,_0x47dd8f[_0x772a64(0x143)])(0x1))[_0x772a64(0x335)](_0x239843=>{const _0x1a9e01=_0x772a64;(_0x3b280b[_0x1a9e01(0x24e)]===_0x1e9a29||_0x3b280b['socket$'][_0x1a9e01(0xe5)]()===_0x1e9a29)&&(this[_0x1a9e01(0x467)][_0x1a9e01(0x115)](_0x1a9e01(0x3a7),_0x1a9e01(0x3cd),_0x239843),this[_0x1a9e01(0x1d7)](_0x3b280b));}));}}catch(_0x1e5967){if(_0x3b280b[_0x772a64(0xe7)]!==_0x312d7a)return;if(_0x143146(_0x1e5967)){this[_0x772a64(0x2b0)](_0x3b280b);return;}this[_0x772a64(0x467)][_0x772a64(0x430)](_0x1e5967),this[_0x772a64(0x1d7)](_0x3b280b);}finally{_0x3b280b[_0x772a64(0xe7)]===_0x312d7a&&(_0x3b280b[_0x772a64(0xe7)]=null);}}[_0x28ce9c(0xd2)](_0x4d7120,_0x324eef){const _0x3a4a5e=_0x28ce9c;this[_0x3a4a5e(0x3e9)]||_0x4d7120[_0x3a4a5e(0x24e)]!==_0x324eef||(this[_0x3a4a5e(0x467)][_0x3a4a5e(0x115)](_0x3a4a5e(0x3a7),'socket\x20open.'),_0x324eef[_0x3a4a5e(0xaf)]({'cmd':_0x4500fa[_0x3a4a5e(0x3b9)][_0x3a4a5e(0x3a9)]}));}[_0x28ce9c(0x2a4)](_0x418271){const _0x4c8316=_0x28ce9c;var _0x5b4517;let _0x39b215=_0x418271['socket$'][_0x4c8316(0xe5)]()??_0x418271[_0x4c8316(0x24e)];_0x418271[_0x4c8316(0xe7)]=null,_0x418271[_0x4c8316(0xd9)]=!0x1,_0x418271[_0x4c8316(0x24e)]=null,(_0x5b4517=_0x418271['socketSubscription'])==null||_0x5b4517['unsubscribe'](),_0x418271[_0x4c8316(0x185)]=null,this[_0x4c8316(0x277)][_0x4c8316(0x12d)](0x2),_0x418271[_0x4c8316(0x1ff)][_0x4c8316(0x12d)](null),this[_0x4c8316(0x2f4)](_0x418271),this[_0x4c8316(0x49c)](_0x418271),this[_0x4c8316(0xb7)](_0x418271),this[_0x4c8316(0x39d)](_0x418271),_0x39b215==null||_0x39b215[_0x4c8316(0x47a)]();}[_0x28ce9c(0x2b0)](_0x58593a){const _0x411b0c=_0x28ce9c;this[_0x411b0c(0x2a4)](_0x58593a),this[_0x411b0c(0x445)][_0x411b0c(0x2e9)]({'id':_0x411b0c(0x47c)});}['_onConnectionFailed'](_0x11697f){const _0x344e4e=_0x28ce9c;var _0x5a8b24;this[_0x344e4e(0x2a4)](_0x11697f),!this['_disposed']&&((_0x5a8b24=this[_0x344e4e(0x17d)])==null?void 0x0:_0x5a8b24['online'])!==!0x1&&this['_hasSessionsForEndpoint'](_0x11697f[_0x344e4e(0x18d)])&&(_0x11697f['retryCount']<(this[_0x344e4e(0x36f)]['getConfig'](_0x344e4e(0x253))??0x3)?(this[_0x344e4e(0x445)][_0x344e4e(0x2e9)]({'id':_0x344e4e(0x10a)}),this[_0x344e4e(0x3f8)](_0x11697f)):this['_collaborationUIEventService'][_0x344e4e(0x2e9)]({'id':_0x344e4e(0xcb)}));}[_0x28ce9c(0x3f8)](_0xa47634){const _0xa1ec62=_0x28ce9c;let _0x1e8ce6=_0xa47634[_0xa1ec62(0x45f)],_0x5eb3a3=this['_configService']['getConfig'](_0xe358d2),_0x725619=_0x1e8ce6===0x0?0x0:((_0x5eb3a3==null?void 0x0:_0x5eb3a3[_0xa1ec62(0x25f)])??0x4e20)*0x2**_0x1e8ce6;_0xa47634[_0xa1ec62(0x370)]=setTimeout(()=>{const _0x4a60d2=_0xa1ec62;clearTimeout(_0xa47634[_0x4a60d2(0x370)]),_0xa47634['retryConnectingTimer']=null,this[_0x4a60d2(0x494)](_0xa47634);},_0x725619),_0xa47634[_0xa1ec62(0x45f)]+=0x1;}async[_0x28ce9c(0x44d)](_0x4a7576,_0xecbe18){const _0x383520=_0x28ce9c;return _0x5641f6(_0x4a7576,_0xecbe18,await this[_0x383520(0x24b)]['resolveUnit']({'unitId':_0x4a7576,'unitType':_0xecbe18}));}['_onMessage'](_0x495e1b,_0x531372,_0x27353c){const _0x179281=_0x28ce9c;if(this[_0x179281(0x3e9)]||_0x495e1b[_0x179281(0x24e)]!==_0x531372&&_0x495e1b['socket$']['getValue']()!==_0x531372)return;let {cmd:_0x543ee1}=_0x27353c;if(_0x543ee1===_0x4500fa[_0x179281(0x3b9)][_0x179281(0x3a9)]&&!_0x495e1b[_0x179281(0xd9)]){var _0x79c5b1;if((_0x27353c[_0x179281(0x3de)]??_0x4500fa[_0x179281(0x2f9)]['OK'])!==_0x4500fa[_0x179281(0x2f9)]['OK']||!((_0x79c5b1=_0x27353c[_0x179281(0xfa)])!=null&&_0x79c5b1[_0x179281(0x45e)])){this[_0x179281(0x1d7)](_0x495e1b);return;}this[_0x179281(0x49c)](_0x495e1b),_0x531372[_0x179281(0x45e)]=_0x27353c[_0x179281(0xfa)]['memberID'],_0x495e1b[_0x179281(0x45f)]=0x0,_0x495e1b[_0x179281(0xd9)]=!0x0,_0x495e1b[_0x179281(0x24e)]=null,_0x495e1b[_0x179281(0x1ff)][_0x179281(0x12d)](_0x531372),this[_0x179281(0x277)]['next'](0x3);}_0x543ee1===_0x4500fa[_0x179281(0x3b9)][_0x179281(0x24f)]&&this['_clearTimeoutTimer'](_0x495e1b),this[_0x179281(0x142)](_0x495e1b);}[_0x28ce9c(0x1d6)](_0x10d9de){const _0x2d22da=_0x28ce9c;return[...this[_0x2d22da(0x1d9)][_0x2d22da(0x3dc)]()][_0x2d22da(0x1a1)](_0x1d9ea6=>_0x1d9ea6===_0x10d9de);}['_getSocketChannel'](_0x5650a8){const _0x1f0261=_0x28ce9c;let _0x1d4664=_0x5650a8??'',_0xe66f75=this[_0x1f0261(0x496)][_0x1f0261(0x21c)](_0x1d4664);if(_0xe66f75)return _0xe66f75;let _0x106ed3={'endpointKey':_0x1d4664,'endpoint':_0x5650a8,'socket$':new _0x5d1b30['BehaviorSubject'](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x1f0261(0x360)](_0x1d4664,_0x106ed3),_0x106ed3;}[_0x28ce9c(0x49c)](_0x54f0b2){const _0x41a275=_0x28ce9c;_0x54f0b2[_0x41a275(0x32f)]!=null&&(clearTimeout(_0x54f0b2[_0x41a275(0x32f)]),_0x54f0b2[_0x41a275(0x32f)]=null);}[_0x28ce9c(0x142)](_0x183eab){const _0xdac857=_0x28ce9c;this['_clearHeartbeatTimer'](_0x183eab),_0x183eab[_0xdac857(0xd9)]&&(_0x183eab[_0xdac857(0x16f)]=setTimeout(()=>this['_sendHeartbeat'](_0x183eab),this[_0xdac857(0x36f)]['getConfig'](_0xdac857(0xb8))??0x7530));}['_sendHeartbeat'](_0x1ca8b9){const _0x2247a2=_0x28ce9c;let _0x440722=_0x1ca8b9[_0x2247a2(0x1ff)]['getValue']();_0x1ca8b9['socketReady']&&_0x440722&&(_0x440722['send']({'cmd':_0x4500fa['CombCmd'][_0x2247a2(0x24f)]}),this[_0x2247a2(0x204)](_0x1ca8b9));}[_0x28ce9c(0x204)](_0x5cecf5){const _0x28ca2c=_0x28ce9c;_0x5cecf5['timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](_0x5cecf5),this[_0x28ca2c(0x36f)][_0x28ca2c(0x3ba)](_0x28ca2c(0x24a))??0x4e20);}['_clearHeartbeatTimer'](_0x246f66){const _0xf78845=_0x28ce9c;_0x246f66[_0xf78845(0x16f)]!=null&&(clearTimeout(_0x246f66[_0xf78845(0x16f)]),_0x246f66['sendHeartbeatTimer']=null);}[_0x28ce9c(0xb7)](_0x30949f){const _0x19a8d9=_0x28ce9c;_0x30949f[_0x19a8d9(0x3a3)]!=null&&(clearTimeout(_0x30949f[_0x19a8d9(0x3a3)]),_0x30949f[_0x19a8d9(0x3a3)]=null);}};_0x1c7cac=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924['Inject'])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x1,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0x2,_0x594924[_0x28ce9c(0x101)]),_0x26312a(0x3,_0x51dc05),_0x26312a(0x4,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972)),_0x26312a(0x5,_0x8830e8)],_0x1c7cac);function _0x3d169f(_0x27d738){const _0x4c29ba=_0x28ce9c;if(_0x27d738['cmd']!==_0x4500fa[_0x4c29ba(0x3b9)][_0x4c29ba(0x383)])return!0x1;let _0x33e393=_0x27d738['data'][_0x4c29ba(0x202)];return _0x33e393===_0x59e2cb[_0x4c29ba(0x12b)][_0x4c29ba(0x3ce)]||_0x33e393===_0x59e2cb[_0x4c29ba(0x12b)]['FETCH_MISSING'];}function _0x143146(_0x313eda){const _0xeeb3aa=_0x28ce9c;var _0x58596a;if(!(_0x313eda instanceof _0x38af37[_0xeeb3aa(0x195)])||_0x313eda['status']!==0x193)return!0x1;let _0x3b3a8c=_0x313eda[_0xeeb3aa(0x430)];return(_0x3b3a8c==null||(_0x58596a=_0x3b3a8c[_0xeeb3aa(0x430)])==null?void 0x0:_0x58596a[_0xeeb3aa(0x3de)])===_0x4500fa[_0xeeb3aa(0x14d)][_0xeeb3aa(0x47c)];}let _0x22775e=class extends _0x594924[_0x28ce9c(0x1a9)]{constructor(_0x3da362,_0x3c6f3c,_0x23b1e8,_0x4007ec){const _0x49112c=_0x28ce9c;var _0x5b9bb6;super(),this[_0x49112c(0x476)]=_0x3da362,this[_0x49112c(0x1fe)]=_0x3c6f3c,this[_0x49112c(0x36f)]=_0x23b1e8,this[_0x49112c(0x464)]=_0x4007ec,_0x4c0132(this,'_entities',new Map()),_0x4c0132(this,_0x49112c(0x278),new _0x5d1b30[(_0x49112c(0x479))]()),_0x4c0132(this,_0x49112c(0x227),this[_0x49112c(0x278)][_0x49112c(0x2a6)]()),((_0x5b9bb6=this[_0x49112c(0x36f)][_0x49112c(0x3ba)]('collaboration-client.config'))==null?void 0x0:_0x5b9bb6['enableCollaboration'])!==!0x1&&this[_0x49112c(0x21d)]();}[_0x28ce9c(0x107)](){const _0x2502ff=_0x28ce9c;super[_0x2502ff(0x107)](),this[_0x2502ff(0x3ea)]['forEach'](_0xf84dbd=>_0xf84dbd[_0x2502ff(0x107)]()),this[_0x2502ff(0x3ea)][_0x2502ff(0x380)]();}[_0x28ce9c(0x159)](_0x51c602){const _0x45e3cb=_0x28ce9c;return this[_0x45e3cb(0x3ea)][_0x45e3cb(0x21c)](_0x51c602)??null;}[_0x28ce9c(0xed)](){const _0x3131bb=_0x28ce9c;return Array[_0x3131bb(0x391)](this[_0x3131bb(0x3ea)][_0x3131bb(0x3dc)]());}[_0x28ce9c(0x100)](_0xe61a46){const _0x2bbc5f=_0x28ce9c;let _0x129611=this[_0x2bbc5f(0x159)](_0xe61a46);return _0x129611?(0x0,_0x5d1b30['of'])(_0x129611):this[_0x2bbc5f(0x278)][_0x2bbc5f(0x3e8)]((0x0,_0x47dd8f['filter'])(_0x324cbb=>_0x324cbb[_0x2bbc5f(0x2b4)]===_0xe61a46));}[_0x28ce9c(0x19a)](_0x4e160b){const _0x145ef8=_0x28ce9c;return(0x0,_0x5d1b30[_0x145ef8(0xbe)])(this[_0x145ef8(0x100)](_0x4e160b)[_0x145ef8(0x3e8)]((0x0,_0x47dd8f['map'])(()=>void 0x0)));}[_0x28ce9c(0x299)](_0x3d9501){const _0x232b71=_0x28ce9c;if(_0x3d9501!==void 0x0){var _0x3fc5db;return((_0x3fc5db=this[_0x232b71(0x3ea)][_0x232b71(0x21c)](_0x3d9501))==null?void 0x0:_0x3fc5db[_0x232b71(0x299)]())??!0x1;}for(let _0x24e0a0 of this[_0x232b71(0x3ea)][_0x232b71(0x3dc)]())if(_0x24e0a0[_0x232b71(0x299)]())return!0x0;return!0x1;}[_0x28ce9c(0x21d)](){const _0x3fd245=_0x28ce9c;this[_0x3fd245(0x464)][_0x3fd245(0x40d)](_0x594924[_0x3fd245(0x3ed)][_0x3fd245(0x43c)])[_0x3fd245(0x3e8)]((0x0,_0x5d1b30[_0x3fd245(0x13c)])(this[_0x3fd245(0x334)]),(0x0,_0x47dd8f[_0x3fd245(0x388)])(0x10))[_0x3fd245(0x335)](async _0x1cb553=>{const _0x34c746=_0x3fd245;let _0x18948c=_0x1cb553[_0x34c746(0x146)][_0x34c746(0x3b8)](),_0x5c90d5=await this[_0x34c746(0x1f1)](_0x18948c,_0x594924['UniverInstanceType'][_0x34c746(0x43c)]);this['_entities'][_0x34c746(0x360)](_0x18948c,_0x5c90d5);}),this[_0x3fd245(0x464)][_0x3fd245(0x40d)](_0x594924[_0x3fd245(0x3ed)][_0x3fd245(0x310)])[_0x3fd245(0x3e8)]((0x0,_0x5d1b30[_0x3fd245(0x13c)])(this[_0x3fd245(0x334)]),(0x0,_0x47dd8f[_0x3fd245(0x388)])(0x10))[_0x3fd245(0x3e8)]((0x0,_0x47dd8f[_0x3fd245(0xda)])(_0x7fb864=>!_0x7fb864[_0x3fd245(0x146)][_0x3fd245(0x3b8)]()[_0x3fd245(0x2dc)]('__')))[_0x3fd245(0x335)](async _0x140e8f=>{const _0x35813a=_0x3fd245;let _0x1e2861=_0x140e8f[_0x35813a(0x146)][_0x35813a(0x3b8)](),_0x13a698=await this[_0x35813a(0x1f1)](_0x1e2861,_0x594924[_0x35813a(0x3ed)][_0x35813a(0x310)]);this['_entities'][_0x35813a(0x360)](_0x1e2861,_0x13a698);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x594924[_0x3fd245(0x3ed)][_0x3fd245(0x379)])[_0x3fd245(0x3e8)]((0x0,_0x5d1b30[_0x3fd245(0x13c)])(this[_0x3fd245(0x334)]),(0x0,_0x47dd8f[_0x3fd245(0x388)])(0x10))['subscribe'](async _0x138412=>{const _0x33a8cc=_0x3fd245;let _0x29802e=_0x138412[_0x33a8cc(0x146)][_0x33a8cc(0x3b8)](),_0x128b75=await this[_0x33a8cc(0x1f1)](_0x29802e,_0x594924[_0x33a8cc(0x3ed)]['UNIVER_SLIDE']);this[_0x33a8cc(0x3ea)][_0x33a8cc(0x360)](_0x29802e,_0x128b75);}),this['_univerInstanceService'][_0x3fd245(0x40d)](_0x594924[_0x3fd245(0x3ed)][_0x3fd245(0x133)])[_0x3fd245(0x3e8)]((0x0,_0x5d1b30[_0x3fd245(0x13c)])(this['dispose$']),(0x0,_0x47dd8f['delay'])(0x10))[_0x3fd245(0x335)](async _0x295c2d=>{const _0x5da426=_0x3fd245;let _0x1e04b6=_0x295c2d[_0x5da426(0x146)][_0x5da426(0x3b8)](),_0x224b4e=await this['_startCollaboration'](_0x1e04b6,_0x594924[_0x5da426(0x3ed)][_0x5da426(0x133)]);this[_0x5da426(0x3ea)][_0x5da426(0x360)](_0x1e04b6,_0x224b4e);}),this[_0x3fd245(0x464)][_0x3fd245(0x40d)](_0x594924[_0x3fd245(0x3ed)]['UNIVER_BASE'])[_0x3fd245(0x3e8)]((0x0,_0x5d1b30[_0x3fd245(0x13c)])(this[_0x3fd245(0x334)]),(0x0,_0x47dd8f[_0x3fd245(0x388)])(0x10))[_0x3fd245(0x335)](async _0x5ab8f5=>{const _0x39887a=_0x3fd245;let _0x24f868=_0x5ab8f5['unit']['getUnitId'](),_0x2e2022=await this['_startCollaboration'](_0x24f868,_0x594924[_0x39887a(0x3ed)]['UNIVER_BASE']);this[_0x39887a(0x3ea)][_0x39887a(0x360)](_0x24f868,_0x2e2022);}),this[_0x3fd245(0x464)]['getTypeOfUnitAdded$'](_0x594924['UniverInstanceType'][_0x3fd245(0x10b)])[_0x3fd245(0x3e8)]((0x0,_0x5d1b30[_0x3fd245(0x13c)])(this[_0x3fd245(0x334)]),(0x0,_0x47dd8f[_0x3fd245(0x388)])(0x10))[_0x3fd245(0x335)](async _0x45d813=>{const _0x7cb407=_0x3fd245;let _0x4eb768=_0x45d813['unit'][_0x7cb407(0x3b8)](),_0x1a100c=await this[_0x7cb407(0x1f1)](_0x4eb768,_0x594924[_0x7cb407(0x3ed)]['UNIVER_PDF']);this['_entities']['set'](_0x4eb768,_0x1a100c);}),(0x0,_0x5d1b30[_0x3fd245(0x104)])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x594924[_0x3fd245(0x3ed)]['UNIVER_SHEET']),this[_0x3fd245(0x464)]['getTypeOfUnitDisposed$'](_0x594924[_0x3fd245(0x3ed)][_0x3fd245(0x310)]),this[_0x3fd245(0x464)]['getTypeOfUnitDisposed$'](_0x594924[_0x3fd245(0x3ed)][_0x3fd245(0x379)]),this[_0x3fd245(0x464)]['getTypeOfUnitDisposed$'](_0x594924[_0x3fd245(0x3ed)][_0x3fd245(0x133)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x594924[_0x3fd245(0x3ed)]['UNIVER_BASE']),this[_0x3fd245(0x464)]['getTypeOfUnitDisposed$'](_0x594924[_0x3fd245(0x3ed)]['UNIVER_PDF']))['pipe']((0x0,_0x5d1b30['takeUntil'])(this[_0x3fd245(0x334)]))[_0x3fd245(0x335)](_0x5499d1=>{const _0x337861=_0x3fd245;let _0x3a6d06=_0x5499d1[_0x337861(0x3b8)](),_0x36b08b=this['_entities'][_0x337861(0x21c)](_0x3a6d06);_0x36b08b&&(_0x36b08b[_0x337861(0x107)](),this[_0x337861(0x3ea)][_0x337861(0x203)](_0x3a6d06));});}async[_0x28ce9c(0x1f1)](_0x3ab04b,_0x3a74ee){const _0xd2d5f0=_0x28ce9c;let _0x5869ca=await this[_0xd2d5f0(0x1fe)]['requireSession'](_0x3ab04b),_0x1a849d=this['_injector']['createInstance'](this['_getCtorByUniverInstanceType'](_0x3a74ee),_0x3ab04b,_0x3a74ee,_0x5869ca);return await _0x1a849d[_0xd2d5f0(0x34d)](),this[_0xd2d5f0(0x278)][_0xd2d5f0(0x12d)](_0x1a849d),_0x1a849d;}[_0x28ce9c(0x46c)](_0x5514f7){const _0x8e457c=_0x28ce9c;switch(_0x5514f7){case _0x594924[_0x8e457c(0x3ed)][_0x8e457c(0x310)]:return _0x4a949e;case _0x594924[_0x8e457c(0x3ed)][_0x8e457c(0x43c)]:return _0x5afe54;case _0x594924[_0x8e457c(0x3ed)][_0x8e457c(0x379)]:return _0x32033d;case _0x594924[_0x8e457c(0x3ed)][_0x8e457c(0x133)]:return _0x59d8da;case _0x594924['UniverInstanceType'][_0x8e457c(0x145)]:return _0x4b8df2;case _0x594924[_0x8e457c(0x3ed)][_0x8e457c(0x10b)]:return _0x2b7afa;default:throw Error(_0x8e457c(0x306)+_0x5514f7);}}};_0x22775e=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924['Inject'])(_0x594924['Injector'])),_0x26312a(0x1,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x1c7cac)),_0x26312a(0x2,_0x594924[_0x28ce9c(0x101)]),_0x26312a(0x3,_0x594924[_0x28ce9c(0xdf)])],_0x22775e);var _0x3ca81e=_0x28ce9c(0x232),_0xcbc3c0=_0x28ce9c(0x190);let _0x301b65=class extends _0x594924['Disposable']{constructor(_0x5463de,_0x13fdf3){const _0xada7d2=_0x28ce9c;super(),this[_0xada7d2(0x464)]=_0x5463de,this[_0xada7d2(0x36f)]=_0x13fdf3,this[_0xada7d2(0x21d)]();}[_0x28ce9c(0x21d)](){const _0x2dded0=_0x28ce9c;this[_0x2dded0(0x416)](this['_univerInstanceService']['focused$']['subscribe'](()=>{const _0x2155c1=_0x2dded0;let _0x4e16a4=this[_0x2155c1(0x464)][_0x2155c1(0xf5)](),_0x570654=this[_0x2155c1(0x36f)]['getConfig'](_0x2155c1(0x456))??_0x2155c1(0x32b);_0x4e16a4 instanceof _0x594924[_0x2155c1(0x292)]&&(_0x570654=_0x4e16a4['name']),document[_0x2155c1(0xea)]=_0x570654;}));}};_0x301b65=_0x5da6ca([_0x26312a(0x0,_0x594924[_0x28ce9c(0xdf)]),_0x26312a(0x1,_0x594924[_0x28ce9c(0x101)])],_0x301b65);let _0x4e9a00=(0x0,_0x594924[_0x28ce9c(0x2ab)])('base-ui.attachment-io.service'),_0x1e204e=class{constructor(_0x280a83,_0x571b98,_0x2dfbbb){const _0x4bcb13=_0x28ce9c;this[_0x4bcb13(0x33f)]=_0x280a83,this[_0x4bcb13(0x36f)]=_0x571b98,this[_0x4bcb13(0x464)]=_0x2dfbbb;}['getUploadOptions'](){const _0x7488bc=_0x28ce9c;return this[_0x7488bc(0x3f1)]()['attachment']??{};}async['saveAttachment'](_0x2060ce){const _0x47ead9=_0x28ce9c;let _0x103a68=this[_0x47ead9(0x47e)]();if(_0x3678aa(_0x2060ce,_0x103a68),_0x103a68[_0x47ead9(0x396)])return _0x103a68[_0x47ead9(0x396)](_0x2060ce);let _0x30e4f7=await this['_upload'](_0x2060ce);return{'id':_0x30e4f7,'name':_0x2060ce[_0x47ead9(0x1b2)],'mimeType':_0x2060ce[_0x47ead9(0x23b)],'size':_0x2060ce[_0x47ead9(0x3b5)],'sourceType':_0x594924[_0x47ead9(0x3c8)][_0x47ead9(0x38e)],'source':_0x30e4f7};}async[_0x28ce9c(0xae)](_0x10bd44,_0x50f4f9){const _0x4bc9ce=_0x28ce9c;if(_0x50f4f9!==_0x594924[_0x4bc9ce(0x3c8)][_0x4bc9ce(0x38e)])return _0x10bd44;let _0x496afc=(await this['_httpService'][_0x4bc9ce(0x21c)](this[_0x4bc9ce(0x23f)]()[_0x4bc9ce(0x3ae)](_0x4bc9ce(0x1ee),_0x10bd44)))['body'];if(_0x496afc[_0x4bc9ce(0x430)]&&_0x496afc[_0x4bc9ce(0x430)][_0x4bc9ce(0x3de)]!==_0x4500fa[_0x4bc9ce(0x14d)]['OK'])throw _0x496afc[_0x4bc9ce(0x430)];if(!_0x496afc[_0x4bc9ce(0x199)])throw Error(_0x4bc9ce(0x1a2));return(0x0,_0x594924[_0x4bc9ce(0x1bd)])(_0x496afc[_0x4bc9ce(0x199)],this[_0x4bc9ce(0x40b)]());}async['_upload'](_0x1b3524){const _0x11f790=_0x28ce9c;let _0x1f6443=this[_0x11f790(0x464)]['getFocusedUnit'](),_0x1dce80=_0x1f6443==null?void 0x0:_0x1f6443[_0x11f790(0x3b8)]();if(!_0x1dce80)throw Error(_0x11f790(0x3fa));let _0xb480ba=new FormData();_0xb480ba[_0x11f790(0x275)](_0x11f790(0xf0),_0x1b3524);let _0x2ad7d8=this['_getUploadFileURL']()+_0x11f790(0x472)+_0x1b3524[_0x11f790(0x3b5)][_0x11f790(0x144)]()+_0x11f790(0x1ef)+_0x4500fa[_0x11f790(0x3cc)][_0x11f790(0x3d1)]+'&assign='+encodeURIComponent(_0x1dce80),_0x22afa4=(await this[_0x11f790(0x33f)][_0x11f790(0x1fa)](_0x2ad7d8,{'body':_0xb480ba}))['body']['FileId'];if(typeof _0x22afa4!=_0x11f790(0x1a5)||!_0x22afa4)throw Error(_0x11f790(0x166));return _0x22afa4;}['_getUploadFileURL'](){const _0x442f77=_0x28ce9c;return this[_0x442f77(0x3f1)]()[_0x442f77(0x2cf)]??_0x442f77(0xb9);}[_0x28ce9c(0x23f)](){const _0x30cc83=_0x28ce9c;return this[_0x30cc83(0x3f1)]()[_0x30cc83(0x1e3)]??'/universer-api/file/{fileID}/sign-url';}['_getDownloadEndpointURL'](){const _0x32e3d9=_0x28ce9c;let _0x460504=this['_getConfig']();return _0x460504['downloadEndpointUrl']?_0x460504[_0x32e3d9(0x426)]:typeof location<'u'?location['origin']:_0x460504[_0x32e3d9(0x2cf)]??'';}[_0x28ce9c(0x3f1)](){const _0xec919e=_0x28ce9c;return this[_0xec919e(0x36f)][_0xec919e(0x3ba)](_0xec919e(0x48e))??{};}};_0x1e204e=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x38af37[_0x28ce9c(0x41f)])),_0x26312a(0x1,(0x0,_0x594924['Inject'])(_0x594924[_0x28ce9c(0x101)])),_0x26312a(0x2,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924['IUniverInstanceService']))],_0x1e204e);function _0x3678aa(_0x493b70,_0x2b436f){const _0x5b08a1=_0x28ce9c;var _0xce53d5;if(_0x2b436f[_0x5b08a1(0x11e)]!=null&&_0x493b70[_0x5b08a1(0x3b5)]>_0x2b436f[_0x5b08a1(0x11e)])throw Error(_0x5b08a1(0x469));if((_0xce53d5=_0x2b436f[_0x5b08a1(0x458)])!=null&&_0xce53d5[_0x5b08a1(0x4a3)]&&!_0x2b436f['accept'][_0x5b08a1(0x1a1)](_0x3bcbba=>_0x493b70['type']===_0x3bcbba||_0x493b70['name']['endsWith'](_0x3bcbba)||_0x3bcbba[_0x5b08a1(0xba)]('/*')&&_0x493b70[_0x5b08a1(0x23b)][_0x5b08a1(0x2dc)](_0x3bcbba[_0x5b08a1(0x15e)](0x0,-0x1))))throw Error(_0x5b08a1(0x398));}let _0x300808=class{constructor(_0x4bf24f,_0x5ec962,_0x2ef7c7){const _0x2851ff=_0x28ce9c;this[_0x2851ff(0x36f)]=_0x4bf24f,this['_httpService']=_0x5ec962,this[_0x2851ff(0xdb)]=_0x2ef7c7,this[_0x2851ff(0x34d)]();}[_0x28ce9c(0x34d)](){const _0x18020b=_0x28ce9c;this[_0x18020b(0x33f)][_0x18020b(0x397)]({'priority':0x1,'interceptor':(_0x5b3080,_0x2d23ce)=>_0x2d23ce(_0x5b3080)[_0x18020b(0x3e8)]((0x0,_0x5d1b30[_0x18020b(0xaa)])(async _0x1c081e=>{const _0xb3366a=_0x18020b;let _0x57d3be=_0x1c081e;if(_0x57d3be[_0xb3366a(0x477)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0xb3366a(0x27e)](this[_0xb3366a(0xdb)]['t'](_0xb3366a(0x32a)))){let _0x13a1e9=window[_0xb3366a(0x25e)](window[_0xb3366a(0x289)]['href']);window[_0xb3366a(0x289)][_0xb3366a(0x1d5)]=this[_0xb3366a(0x12a)]()+_0xb3366a(0x3b4)+_0x13a1e9;}}return _0x57d3be;}))});}[_0x28ce9c(0x12a)](){const _0x222e3f=_0x28ce9c;let _0x53bc08=this[_0x222e3f(0x36f)]['getConfig'](_0xe358d2);return(_0x53bc08==null?void 0x0:_0x53bc08[_0x222e3f(0x106)])??_0x222e3f(0xc4);}};_0x300808=_0x5da6ca([_0x26312a(0x0,_0x594924['IConfigService']),_0x26312a(0x1,(0x0,_0x594924['Inject'])(_0x38af37['HTTPService'])),_0x26312a(0x2,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x3a4)]))],_0x300808);let _0x30f9ac=class extends _0x594924['Disposable']{constructor(_0x4a3d7e,_0x5494b9){const _0x4e2119=_0x28ce9c;super(),this['_HTTPService']=_0x4a3d7e,this['_configService']=_0x5494b9,_0x4c0132(this,'_cfgEnableObjInherit',!0x1),this[_0x4e2119(0x1fc)]();}[_0x28ce9c(0x1fc)](){const _0x17b284=_0x28ce9c;let _0x510b7e=this;this[_0x17b284(0x416)](this[_0x17b284(0xb1)][_0x17b284(0x397)]({'priority':0x3e7,'interceptor':(0x0,_0x38af37['MergeInterceptorFactory'])({'isMatch'(_0x52202e){const _0x4dd0b6=_0x17b284;var _0x11cf00;if(_0x52202e['method']===_0x4dd0b6(0x363)&&(_0x11cf00=_0x52202e[_0x4dd0b6(0x1ab)])!=null&&_0x11cf00[_0x4dd0b6(0x2b7)]){let {objectID:_0x1cde14,objectType:_0xac2676}=_0x52202e[_0x4dd0b6(0x1ab)][_0x4dd0b6(0x2b7)]||{};if(!_0x1cde14||_0xac2676===void 0x0)return!0x1;let _0x49b498=_0x510b7e[_0x4dd0b6(0x404)]()+'/'+_0xac2676+_0x4dd0b6(0x1bc)+encodeURIComponent(_0x1cde14)+'/allowed';if(_0x52202e[_0x4dd0b6(0x199)]===_0x49b498)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x13e794){const _0x240df3=_0x17b284;var _0x306177;return(_0x306177=_0x13e794[_0x240df3(0x1ab)])==null?void 0x0:_0x306177[_0x240df3(0x2b7)];},'mergeParamsToRequest'(_0x4c20e9,_0x2d2626){const _0x3f883f=_0x17b284;let _0x11e314=_0x510b7e[_0x3f883f(0x404)]()+_0x3f883f(0x197),_0x2680fb=_0x4c20e9[_0x3f883f(0x3ec)]((_0x278a92,_0x58fd79)=>{const _0x2ddc99=_0x3f883f;let {unitID:_0x3845de,objectID:_0x22d47e,objectType:_0x1b253a,actions:_0x4a1aae}=_0x58fd79;return _0x278a92[_0x3845de]||(_0x278a92[_0x3845de]=Object['create'](null)),_0x278a92[_0x3845de][_0x22d47e]||(_0x278a92[_0x3845de][_0x22d47e]={'objectID':_0x22d47e,'objectType':_0x1b253a,'actions':[]}),_0x278a92[_0x3845de][_0x22d47e][_0x2ddc99(0xd1)][_0x2ddc99(0x210)](..._0x4a1aae),_0x278a92;},Object[_0x3f883f(0xb6)](null)),_0x5e8ef4=[];for(let _0x443489 in _0x2680fb)for(let _0x109c41 in _0x2680fb[_0x443489]){let {actions:_0xbfcef2,objectType:_0x5796b9}=_0x2680fb[_0x443489][_0x109c41],_0x5e50ad=[...new Set(_0xbfcef2)];_0x5e8ef4['push']({'unitID':_0x443489,'objectID':_0x109c41,'objectType':_0x5796b9,'actions':_0x5e50ad});}return new _0x38af37[(_0x3f883f(0x3aa))]('POST',_0x11e314,{'headers':_0x2d2626[_0x3f883f(0xcf)],'withCredentials':_0x2d2626['withCredentials'],'responseType':_0x2d2626[_0x3f883f(0x2e3)],'body':{'requests':_0x5e8ef4}});}},{'distributeResult'(_0x5436dc,_0x355cdc){const _0x176662=_0x17b284;let {objectActions:_0x1d9723}=_0x5436dc;return _0x355cdc[_0x176662(0x225)](_0x5cac0e=>{const _0x1a0c96=_0x176662;let {unitID:_0x3d3eb9,objectID:_0x2e1e90,actions:_0xa60862}=_0x5cac0e,_0x4fa2c5=_0x1d9723[_0x1a0c96(0x2db)](_0x3fe476=>_0x3fe476[_0x1a0c96(0x2b4)]===_0x3d3eb9&&_0x3fe476[_0x1a0c96(0x449)]===_0x2e1e90);return{'config':_0x5cac0e,'result':{'actions':_0xa60862[_0x1a0c96(0x225)](_0x54d518=>_0x4fa2c5==null?void 0x0:_0x4fa2c5[_0x1a0c96(0xd1)][_0x1a0c96(0x2db)](_0x2c17a2=>_0x2c17a2[_0x1a0c96(0x272)]===_0x54d518))['filter'](_0x2a83a1=>!!_0x2a83a1),'error':_0x5436dc['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x3fca2f=_0x28ce9c;let _0x53b439=this['_configService'][_0x3fca2f(0x3ba)](_0xe358d2);return(_0x53b439==null?void 0x0:_0x53b439[_0x3fca2f(0x440)])??_0x3fca2f(0x102);}async[_0x28ce9c(0xb6)](_0x692d8b){const _0xb2b061=_0x28ce9c;let _0x58ee5a=this[_0xb2b061(0x404)]()+'/'+_0x692d8b[_0xb2b061(0x206)]+'/object';return(await this['_HTTPService'][_0xb2b061(0x1fa)](_0x58ee5a,{'body':_0x692d8b}))[_0xb2b061(0x2b7)]['objectID']||'';}async[_0x28ce9c(0x36b)](_0x1eb97d){const _0x185cfb=_0x28ce9c;let _0x579930=this[_0x185cfb(0x404)]()+_0x185cfb(0x47d);return(await this[_0x185cfb(0xb1)]['post'](_0x579930,{'body':_0x1eb97d}))['body'][_0x185cfb(0x41b)];}async[_0x28ce9c(0x436)](_0x2bed1e){const _0x18c2c2=_0x28ce9c;var _0x120f5a;let _0x4cfca4=this['_getAPIPrefixPath']()+'/'+_0x2bed1e[_0x18c2c2(0x206)]+_0x18c2c2(0x1bc)+encodeURIComponent(_0x2bed1e[_0x18c2c2(0x449)]),_0x5b51d7=await this[_0x18c2c2(0xb1)][_0x18c2c2(0x248)](_0x4cfca4,{'body':_0x2bed1e});if((_0x5b51d7==null||(_0x120f5a=_0x5b51d7[_0x18c2c2(0x2b7)])==null||(_0x120f5a=_0x120f5a[_0x18c2c2(0x430)])==null?void 0x0:_0x120f5a['code'])!==0x1)throw Error(_0x18c2c2(0x109));}async[_0x28ce9c(0x347)](_0x5d115b){const _0x11ca85=_0x28ce9c;let _0x519b36=this[_0x11ca85(0x404)]()+'/'+_0x5d115b[_0x11ca85(0x206)]+_0x11ca85(0x1bc)+encodeURIComponent(_0x5d115b[_0x11ca85(0x449)])+_0x11ca85(0x157);return(await this[_0x11ca85(0xb1)][_0x11ca85(0x1fa)](_0x519b36,{'body':_0x5d115b}))[_0x11ca85(0x2b7)][_0x11ca85(0xd1)];}async[_0x28ce9c(0x165)](_0x4693b5){const _0x271fa4=_0x28ce9c;let _0x410ab9=this[_0x271fa4(0x404)]()+_0x271fa4(0x197);return(await this[_0x271fa4(0xb1)][_0x271fa4(0x1fa)](_0x410ab9,{'body':{'requests':_0x4693b5}}))[_0x271fa4(0x2b7)][_0x271fa4(0x459)];}async[_0x28ce9c(0x1f2)](_0x903d64){const _0x2e88b4=_0x28ce9c;let _0x1b229b=this[_0x2e88b4(0x404)]()+'/'+_0x903d64['objectType']+_0x2e88b4(0x24c),_0x48e111=await this[_0x2e88b4(0xb1)]['post'](_0x1b229b,{'body':_0x903d64});return{'roles':_0x48e111[_0x2e88b4(0x2b7)][_0x2e88b4(0x189)],'actions':_0x48e111[_0x2e88b4(0x2b7)][_0x2e88b4(0xd1)]};}async[_0x28ce9c(0x2d9)](_0x3d922b){const _0x3214eb=_0x28ce9c;let _0x5f3bf6=this[_0x3214eb(0x404)]()+_0x3214eb(0x303);await this[_0x3214eb(0xb1)][_0x3214eb(0x203)](_0x5f3bf6,{'params':{'collaboratorID':_0x3d922b[_0x3214eb(0xff)],'objectID':_0x3d922b[_0x3214eb(0x449)],'unitID':_0x3d922b[_0x3214eb(0x2b4)]}});}async[_0x28ce9c(0x47f)](_0x59b6ad){const _0x47a98b=_0x28ce9c;let _0x2263eb=this[_0x47a98b(0x404)]()+'/collaborator';await this[_0x47a98b(0xb1)][_0x47a98b(0x1af)](_0x2263eb,{'body':_0x59b6ad});}async[_0x28ce9c(0x12e)](_0x253c53){const _0x2667c2=_0x28ce9c;let _0x739172=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x2667c2(0xb1)][_0x2667c2(0x1fa)](_0x739172,{'body':_0x253c53});}async[_0x28ce9c(0xbb)](_0x344674){const _0x16efa3=_0x28ce9c;let _0x496cc6=this[_0x16efa3(0x404)]()+_0x16efa3(0x303),_0x1a943f=await this[_0x16efa3(0xb1)][_0x16efa3(0x21c)](_0x496cc6,{'params':{'objectID':_0x344674['objectID'],'unitID':_0x344674[_0x16efa3(0x2b4)]}});return this[_0x16efa3(0x35e)](_0x1a943f[_0x16efa3(0x2b7)][_0x16efa3(0x254)]??!0x1),_0x1a943f[_0x16efa3(0x2b7)][_0x16efa3(0x499)];}async['putCollaborators'](_0x38f8d6){const _0x1c48b8=_0x28ce9c;let _0x546935=this[_0x1c48b8(0x404)]()+_0x1c48b8(0x303);await this[_0x1c48b8(0xb1)]['put'](_0x546935,{'body':_0x38f8d6});}[_0x28ce9c(0x35e)](_0x692736){const _0x27423b=_0x28ce9c;this[_0x27423b(0xd4)]=_0x692736;}['getCfgEnableObjInherit'](){const _0x2de9b2=_0x28ce9c;return this[_0x2de9b2(0xd4)];}};_0x30f9ac=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x38af37['HTTPService'])),_0x26312a(0x1,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x101)]))],_0x30f9ac);function _0x353855(_0x3f5d4c){const _0x5f274f=_0x28ce9c;return _0x3f5d4c instanceof Uint8Array||ArrayBuffer[_0x5f274f(0x327)](_0x3f5d4c)&&_0x3f5d4c['constructor']['name']==='Uint8Array'&&_0x5f274f(0x3fc)in _0x3f5d4c&&_0x3f5d4c[_0x5f274f(0x3fc)]===0x1;}let _0x38b34f=_0x59c5a8=>_0x59c5a8?'\x22'+_0x59c5a8+'\x22\x20':'';function _0x51220a(_0x11ef41,_0x21eac5=''){const _0x462240=_0x28ce9c;if(typeof _0x11ef41!=_0x462240(0x33d))throw TypeError(_0x38b34f(_0x21eac5)+_0x462240(0x3c4)+typeof _0x11ef41);if(!Number[_0x462240(0x29d)](_0x11ef41)||_0x11ef41<0x0)throw RangeError(_0x38b34f(_0x21eac5)+_0x462240(0x315)+_0x11ef41);return _0x11ef41;}function _0xa7c855(_0x562ad4,_0x47f9a2,_0x7a5c7d=''){const _0x1d0f42=_0x28ce9c;if(_0x353855(_0x562ad4)&&(_0x47f9a2===void 0x0||_0x562ad4['length']===_0x47f9a2))return _0x562ad4;_0x47f9a2!==void 0x0&&_0x51220a(_0x47f9a2,'length');let _0x3b948b=_0x353855(_0x562ad4),_0x1bad49=_0x47f9a2===void 0x0?'':_0x1d0f42(0x3e3)+_0x47f9a2,_0x43be93=_0x3b948b?_0x1d0f42(0x39a)+_0x562ad4[_0x1d0f42(0x4a3)]:_0x1d0f42(0x176)+typeof _0x562ad4,_0x1cfdc9=_0x38b34f(_0x7a5c7d)+_0x1d0f42(0x36c)+_0x1bad49+_0x1d0f42(0x483)+_0x43be93;throw _0x3b948b?RangeError(_0x1cfdc9):TypeError(_0x1cfdc9);}function _0x5b41f9(_0x17d9e0){const _0x1d5cc9=_0x28ce9c;return new Uint32Array(_0x17d9e0[_0x1d5cc9(0x2bf)],_0x17d9e0[_0x1d5cc9(0x2c2)],Math['floor'](_0x17d9e0[_0x1d5cc9(0x22f)]/0x4));}function _0x43d9d2(..._0x33114a){const _0x4041af=_0x28ce9c;for(let _0x2904c8=0x0;_0x2904c8<_0x33114a[_0x4041af(0x4a3)];_0x2904c8++)_0x33114a[_0x2904c8][_0x4041af(0xf7)](0x0);}let _0xab4a8=new Uint8Array(new Uint32Array([0x11223344])[_0x28ce9c(0x2bf)])[0x0]===0x44;function _0x32e79b(_0x45c7a7){return _0x45c7a7<<0x18&0xff000000|_0x45c7a7<<0x8&0xff0000|_0x45c7a7>>>0x8&0xff00|_0x45c7a7>>>0x18&0xff;}function _0x2daa10(_0x9dc1a0){const _0x191e29=_0x28ce9c;for(let _0x3979fe=0x0;_0x3979fe<_0x9dc1a0[_0x191e29(0x4a3)];_0x3979fe++)_0x9dc1a0[_0x3979fe]=_0x32e79b(_0x9dc1a0[_0x3979fe]);return _0x9dc1a0;}let _0x590274=_0xab4a8?_0x9ab695=>_0x9ab695:_0x2daa10;function _0x433712(_0x1eb9ff){const _0x4c1ed8=_0x28ce9c;if(typeof _0x1eb9ff!=_0x4c1ed8(0x1a5))throw TypeError(_0x4c1ed8(0x2f5));return new Uint8Array(new TextEncoder()[_0x4c1ed8(0x2c4)](_0x1eb9ff));}function _0x50f7de(_0x236654,_0x59a73b){const _0x34fb96=_0x28ce9c;return!_0x236654[_0x34fb96(0x22f)]||!_0x59a73b[_0x34fb96(0x22f)]?!0x1:_0x236654[_0x34fb96(0x2bf)]===_0x59a73b[_0x34fb96(0x2bf)]&&_0x236654[_0x34fb96(0x2c2)]<_0x59a73b[_0x34fb96(0x2c2)]+_0x59a73b['byteLength']&&_0x59a73b[_0x34fb96(0x2c2)]<_0x236654[_0x34fb96(0x2c2)]+_0x236654[_0x34fb96(0x22f)];}function _0xccb3df(_0x192e11,_0xda1ccb){const _0xddb7eb=_0x28ce9c;if(_0x50f7de(_0x192e11,_0xda1ccb)&&_0x192e11['byteOffset']<_0xda1ccb[_0xddb7eb(0x2c2)])throw Error(_0xddb7eb(0x1a3));}function _0x5bda9f(..._0xe88608){const _0x288d62=_0x28ce9c;let _0x55183d=0x0;for(let _0x3ce11b=0x0;_0x3ce11b<_0xe88608[_0x288d62(0x4a3)];_0x3ce11b++){let _0x30c376=_0xe88608[_0x3ce11b];_0xa7c855(_0x30c376),_0x55183d+=_0x30c376[_0x288d62(0x4a3)];}let _0x148d8e=new Uint8Array(_0x55183d);for(let _0x42b29f=0x0,_0x57e2db=0x0;_0x42b29f<_0xe88608[_0x288d62(0x4a3)];_0x42b29f++){let _0x434992=_0xe88608[_0x42b29f];_0x148d8e[_0x288d62(0x360)](_0x434992,_0x57e2db),_0x57e2db+=_0x434992[_0x288d62(0x4a3)];}return _0x148d8e;}let _0x56531b=(_0x2db41b,_0x36ae19)=>{const _0x2f2d20=_0x28ce9c;function _0x5caf85(_0x127063,..._0x22913b){const _0x1a6cc3=_0x3cef;if(_0xa7c855(_0x127063,void 0x0,_0x1a6cc3(0x219)),_0x2db41b[_0x1a6cc3(0xf6)]!==void 0x0){let _0x4a6158=_0x22913b[0x0];_0xa7c855(_0x4a6158,_0x2db41b[_0x1a6cc3(0x349)]?void 0x0:_0x2db41b[_0x1a6cc3(0xf6)],_0x1a6cc3(0x457));}let _0x59c68f=_0x2db41b[_0x1a6cc3(0x114)],_0x14947e=_0x2db41b[_0x1a6cc3(0xf6)]===void 0x0?0x0:0x1;if(!_0x2db41b['withAAD']){for(let _0x2ba806=_0x14947e;_0x2ba806<_0x22913b[_0x1a6cc3(0x4a3)];_0x2ba806++)if(_0x353855(_0x22913b[_0x2ba806]))throw Error(_0x1a6cc3(0x2eb));}_0x2db41b[_0x1a6cc3(0x358)]&&_0x22913b[_0x14947e]!==void 0x0&&_0xa7c855(_0x22913b[_0x14947e],void 0x0,_0x1a6cc3(0x2b6));let _0x5ab262=_0x36ae19(_0x127063,..._0x22913b),_0x4ca7c0=(_0x567fb9,_0x6dadc3)=>{const _0xfb983a=_0x1a6cc3;if(_0x6dadc3!==void 0x0){if(_0x567fb9!==0x2)throw Error(_0xfb983a(0x452));_0xa7c855(_0x6dadc3,void 0x0,'output');}},_0x2093a4=!0x1;return{'encrypt'(_0x9f46e7,_0x401852){const _0x1d4199=_0x1a6cc3;if(_0x2093a4)throw Error('cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce');return _0x2093a4=!0x0,_0xa7c855(_0x9f46e7,void 0x0,'data'),_0x4ca7c0(_0x5ab262[_0x1d4199(0x1c5)]['length'],_0x401852),_0x5ab262[_0x1d4199(0x1c5)](_0x9f46e7,_0x401852);},'decrypt'(_0x209ed4,_0x5db1d2){const _0x22b220=_0x1a6cc3;if(_0xa7c855(_0x209ed4,void 0x0,_0x22b220(0xfa)),_0x59c68f&&_0x209ed4[_0x22b220(0x4a3)]<_0x59c68f)throw Error(_0x22b220(0x337)+_0x59c68f);return _0x4ca7c0(_0x5ab262[_0x22b220(0x27f)][_0x22b220(0x4a3)],_0x5db1d2),_0x5ab262[_0x22b220(0x27f)](_0x209ed4,_0x5db1d2);}};}return Object[_0x2f2d20(0x268)](_0x5caf85,_0x2db41b),_0x5caf85;};function _0x2d854f(_0x325eba,_0x4fd980,_0x3fbe42=!0x0){const _0x9413d=_0x28ce9c;if(_0x4fd980===void 0x0)return new Uint8Array(_0x325eba);if(_0xa7c855(_0x4fd980,_0x325eba,_0x9413d(0x40c)),_0x3fbe42&&!_0x3e109b(_0x4fd980))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x4fd980;}function _0x3e109b(_0x4f857f){const _0x14376b=_0x28ce9c;return _0x4f857f[_0x14376b(0x2c2)]%0x4==0x0;}function _0x57b968(_0x18aa85){return Uint8Array['from'](_0xa7c855(_0x18aa85));}function _0x4e2e1d(_0x48634d=0x20){const _0x3d26ab=_0x28ce9c;_0x51220a(_0x48634d,_0x3d26ab(0xa8));let _0x47473e=typeof globalThis=='object'?globalThis[_0x3d26ab(0x235)]:null;if(typeof(_0x47473e==null?void 0x0:_0x47473e[_0x3d26ab(0xd3)])!=_0x3d26ab(0x28e))throw Error('crypto.getRandomValues\x20must\x20be\x20defined');if(_0x48634d>0x10000)throw RangeError(_0x3d26ab(0x3a0)+_0x48634d);return _0x47473e[_0x3d26ab(0xd3)](new Uint8Array(_0x48634d));}function _0x215eb3(_0x560458){const _0x485fd0=_0x28ce9c;if(![0x10,0x18,0x20][_0x485fd0(0x2cb)](_0x560458[_0x485fd0(0x4a3)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x560458['length']);}function _0x52f7e6(_0x5285a3){return _0x5285a3<<0x1^0x11b&-(_0x5285a3>>0x7);}function _0x158ceb(_0x30e6fc,_0x5bbe90){let _0x34dca0=0x0;for(;_0x5bbe90>0x0;_0x5bbe90>>=0x1)_0x34dca0^=_0x30e6fc&-(_0x5bbe90&0x1),_0x30e6fc=_0x52f7e6(_0x30e6fc);return _0x34dca0;}let _0x56c8e9=((()=>{let _0x652354=new Uint8Array(0x100);for(let _0x2f8dc7=0x0,_0x220641=0x1;_0x2f8dc7<0x100;_0x2f8dc7++,_0x220641^=_0x52f7e6(_0x220641))_0x652354[_0x2f8dc7]=_0x220641;let _0x761f8b=new Uint8Array(0x100);_0x761f8b[0x0]=0x63;for(let _0x346007=0x0;_0x346007<0xff;_0x346007++){let _0x3090cf=_0x652354[0xff-_0x346007];_0x3090cf|=_0x3090cf<<0x8,_0x761f8b[_0x652354[_0x346007]]=(_0x3090cf^_0x3090cf>>0x4^_0x3090cf>>0x5^_0x3090cf>>0x6^_0x3090cf>>0x7^0x63)&0xff;}return _0x43d9d2(_0x652354),_0x761f8b;})()),_0x1bbd61=_0x56c8e9[_0x28ce9c(0x225)]((_0x2d3b62,_0x308a32)=>_0x56c8e9[_0x28ce9c(0x37e)](_0x308a32)),_0x2c985d=_0x2a4d96=>_0x2a4d96<<0x18|_0x2a4d96>>>0x8,_0x4cc244=_0x44962e=>_0x44962e<<0x8|_0x44962e>>>0x18;function _0x4ecbd0(_0x51bc22,_0x571e19){const _0xe4b367=_0x28ce9c;if(_0x51bc22[_0xe4b367(0x4a3)]!==0x100)throw Error(_0xe4b367(0x1c8));let _0x564c70=new Uint32Array(0x100)['map']((_0xf77839,_0x531779)=>_0x571e19(_0x51bc22[_0x531779])),_0x1cdb4f=_0x564c70['map'](_0x4cc244),_0x1e7b26=_0x1cdb4f[_0xe4b367(0x225)](_0x4cc244),_0x2eae34=_0x1e7b26[_0xe4b367(0x225)](_0x4cc244),_0xb5f100=new Uint32Array(0x10000),_0x25be30=new Uint32Array(0x10000),_0x5e4f62=new Uint16Array(0x10000);for(let _0x112c6f=0x0;_0x112c6f<0x100;_0x112c6f++)for(let _0x523d4a=0x0;_0x523d4a<0x100;_0x523d4a++){let _0x24e913=_0x112c6f*0x100+_0x523d4a;_0xb5f100[_0x24e913]=_0x564c70[_0x112c6f]^_0x1cdb4f[_0x523d4a],_0x25be30[_0x24e913]=_0x1e7b26[_0x112c6f]^_0x2eae34[_0x523d4a],_0x5e4f62[_0x24e913]=_0x51bc22[_0x112c6f]<<0x8|_0x51bc22[_0x523d4a];}return{'sbox':_0x51bc22,'sbox2':_0x5e4f62,'T0':_0x564c70,'T1':_0x1cdb4f,'T2':_0x1e7b26,'T3':_0x2eae34,'T01':_0xb5f100,'T23':_0x25be30};}let _0x2edc03=_0x4ecbd0(_0x56c8e9,_0x169556=>_0x158ceb(_0x169556,0x3)<<0x18|_0x169556<<0x10|_0x169556<<0x8|_0x158ceb(_0x169556,0x2)),_0x32c735=_0x4ecbd0(_0x1bbd61,_0x86d85b=>_0x158ceb(_0x86d85b,0xb)<<0x18|_0x158ceb(_0x86d85b,0xd)<<0x10|_0x158ceb(_0x86d85b,0x9)<<0x8|_0x158ceb(_0x86d85b,0xe)),_0x49fb06=((()=>{let _0x1cac55=new Uint8Array(0x10);for(let _0x58e7b5=0x0,_0x343b31=0x1;_0x58e7b5<0x10;_0x58e7b5++,_0x343b31=_0x52f7e6(_0x343b31))_0x1cac55[_0x58e7b5]=_0x343b31;return _0x1cac55;})());function _0x323da(_0x113405){const _0x5db092=_0x28ce9c;_0xa7c855(_0x113405);let _0x4f3a7d=_0x113405[_0x5db092(0x4a3)];_0x215eb3(_0x113405);let {sbox2:_0x749881}=_0x2edc03,_0x3f28d7=[];(!_0xab4a8||!_0x3e109b(_0x113405))&&_0x3f28d7[_0x5db092(0x210)](_0x113405=_0x57b968(_0x113405));let _0x545bcf=_0x590274(_0x5b41f9(_0x113405)),_0x30e66c=_0x545bcf[_0x5db092(0x4a3)],_0x103bdb=_0x5d43d9=>_0x82aee0(_0x749881,_0x5d43d9,_0x5d43d9,_0x5d43d9,_0x5d43d9),_0x39f82e=new Uint32Array(_0x4f3a7d+0x1c);_0x39f82e[_0x5db092(0x360)](_0x545bcf);for(let _0x1f1194=_0x30e66c;_0x1f1194<_0x39f82e[_0x5db092(0x4a3)];_0x1f1194++){let _0x303491=_0x39f82e[_0x1f1194-0x1];_0x1f1194%_0x30e66c===0x0?_0x303491=_0x103bdb(_0x2c985d(_0x303491))^_0x49fb06[_0x1f1194/_0x30e66c-0x1]:_0x30e66c>0x6&&_0x1f1194%_0x30e66c===0x4&&(_0x303491=_0x103bdb(_0x303491)),_0x39f82e[_0x1f1194]=_0x39f82e[_0x1f1194-_0x30e66c]^_0x303491;}return _0x43d9d2(..._0x3f28d7),_0x39f82e;}function _0x229351(_0x298908){const _0x231763=_0x28ce9c;let _0x2ce6ba=_0x323da(_0x298908),_0x1d1e36=_0x2ce6ba['slice'](),_0x109b8d=_0x2ce6ba[_0x231763(0x4a3)],{sbox2:_0x11f15a}=_0x2edc03,{T0:_0x408163,T1:_0x54e71b,T2:_0x5d78b0,T3:_0x328d1f}=_0x32c735;for(let _0x55d07f=0x0;_0x55d07f<_0x109b8d;_0x55d07f+=0x4)for(let _0x12e141=0x0;_0x12e141<0x4;_0x12e141++)_0x1d1e36[_0x55d07f+_0x12e141]=_0x2ce6ba[_0x109b8d-_0x55d07f-0x4+_0x12e141];_0x43d9d2(_0x2ce6ba);for(let _0x136b72=0x4;_0x136b72<_0x109b8d-0x4;_0x136b72++){let _0x5c9e7d=_0x1d1e36[_0x136b72],_0x41c8d2=_0x82aee0(_0x11f15a,_0x5c9e7d,_0x5c9e7d,_0x5c9e7d,_0x5c9e7d);_0x1d1e36[_0x136b72]=_0x408163[_0x41c8d2&0xff]^_0x54e71b[_0x41c8d2>>>0x8&0xff]^_0x5d78b0[_0x41c8d2>>>0x10&0xff]^_0x328d1f[_0x41c8d2>>>0x18];}return _0x1d1e36;}function _0x4c1536(_0x6e40db,_0x1e305d,_0x83ec62,_0x30adad,_0x4a2493,_0x39a4f7){return _0x6e40db[_0x83ec62<<0x8&0xff00|_0x30adad>>>0x8&0xff]^_0x1e305d[_0x4a2493>>>0x8&0xff00|_0x39a4f7>>>0x18&0xff];}function _0x82aee0(_0x47d16c,_0x16454f,_0x13e229,_0x3764,_0x537109){return _0x47d16c[_0x16454f&0xff|_0x13e229&0xff00]|_0x47d16c[_0x3764>>>0x10&0xff|_0x537109>>>0x10&0xff00]<<0x10;}function _0x2b02c0(_0x551cff,_0x248029,_0x17201e,_0x3e4640,_0x40713a){const _0x2e8de4=_0x28ce9c;let {sbox2:_0xb9f380,T01:_0x37938c,T23:_0x3c26b4}=_0x2edc03,_0x165200=0x0;_0x248029^=_0x551cff[_0x165200++],_0x17201e^=_0x551cff[_0x165200++],_0x3e4640^=_0x551cff[_0x165200++],_0x40713a^=_0x551cff[_0x165200++];let _0x36a6fd=_0x551cff[_0x2e8de4(0x4a3)]/0x4-0x2;for(let _0x424c09=0x0;_0x424c09<_0x36a6fd;_0x424c09++){let _0x3c331d=_0x551cff[_0x165200++]^_0x4c1536(_0x37938c,_0x3c26b4,_0x248029,_0x17201e,_0x3e4640,_0x40713a),_0x21b08e=_0x551cff[_0x165200++]^_0x4c1536(_0x37938c,_0x3c26b4,_0x17201e,_0x3e4640,_0x40713a,_0x248029),_0x4fbc19=_0x551cff[_0x165200++]^_0x4c1536(_0x37938c,_0x3c26b4,_0x3e4640,_0x40713a,_0x248029,_0x17201e),_0x3c4d85=_0x551cff[_0x165200++]^_0x4c1536(_0x37938c,_0x3c26b4,_0x40713a,_0x248029,_0x17201e,_0x3e4640);_0x248029=_0x3c331d,_0x17201e=_0x21b08e,_0x3e4640=_0x4fbc19,_0x40713a=_0x3c4d85;}return{'s0':_0x551cff[_0x165200++]^_0x82aee0(_0xb9f380,_0x248029,_0x17201e,_0x3e4640,_0x40713a),'s1':_0x551cff[_0x165200++]^_0x82aee0(_0xb9f380,_0x17201e,_0x3e4640,_0x40713a,_0x248029),'s2':_0x551cff[_0x165200++]^_0x82aee0(_0xb9f380,_0x3e4640,_0x40713a,_0x248029,_0x17201e),'s3':_0x551cff[_0x165200++]^_0x82aee0(_0xb9f380,_0x40713a,_0x248029,_0x17201e,_0x3e4640)};}function _0x494581(_0x59e077,_0x17da25,_0x17a45d,_0x144985,_0x42983a){const _0x4c931d=_0x28ce9c;let {sbox2:_0x4c40aa,T01:_0x27cef4,T23:_0x12e4b4}=_0x32c735,_0x54cfde=0x0;_0x17da25^=_0x59e077[_0x54cfde++],_0x17a45d^=_0x59e077[_0x54cfde++],_0x144985^=_0x59e077[_0x54cfde++],_0x42983a^=_0x59e077[_0x54cfde++];let _0x29825e=_0x59e077[_0x4c931d(0x4a3)]/0x4-0x2;for(let _0x18018e=0x0;_0x18018e<_0x29825e;_0x18018e++){let _0x4a4638=_0x59e077[_0x54cfde++]^_0x4c1536(_0x27cef4,_0x12e4b4,_0x17da25,_0x42983a,_0x144985,_0x17a45d),_0x4d4674=_0x59e077[_0x54cfde++]^_0x4c1536(_0x27cef4,_0x12e4b4,_0x17a45d,_0x17da25,_0x42983a,_0x144985),_0x13bed2=_0x59e077[_0x54cfde++]^_0x4c1536(_0x27cef4,_0x12e4b4,_0x144985,_0x17a45d,_0x17da25,_0x42983a),_0x19e80b=_0x59e077[_0x54cfde++]^_0x4c1536(_0x27cef4,_0x12e4b4,_0x42983a,_0x144985,_0x17a45d,_0x17da25);_0x17da25=_0x4a4638,_0x17a45d=_0x4d4674,_0x144985=_0x13bed2,_0x42983a=_0x19e80b;}return{'s0':_0x59e077[_0x54cfde++]^_0x82aee0(_0x4c40aa,_0x17da25,_0x42983a,_0x144985,_0x17a45d),'s1':_0x59e077[_0x54cfde++]^_0x82aee0(_0x4c40aa,_0x17a45d,_0x17da25,_0x42983a,_0x144985),'s2':_0x59e077[_0x54cfde++]^_0x82aee0(_0x4c40aa,_0x144985,_0x17a45d,_0x17da25,_0x42983a),'s3':_0x59e077[_0x54cfde++]^_0x82aee0(_0x4c40aa,_0x42983a,_0x144985,_0x17a45d,_0x17da25)};}function _0x5b7d45(_0x82c144,_0x702d8c){const _0x13f727=_0x28ce9c;if(_0xa7c855(_0x82c144),_0x82c144[_0x13f727(0x4a3)]%0x10!=0x0)throw Error(_0x13f727(0x330));_0x702d8c!==void 0x0&&(_0x2d854f(_0x82c144['length'],_0x702d8c),_0xccb3df(_0x82c144,_0x702d8c));}function _0x2a8c49(_0x3b17d0,_0x3dc390,_0x1e3478){const _0xa608aa=_0x28ce9c;_0xa7c855(_0x3b17d0);let _0x4d0983=_0x3b17d0[_0xa608aa(0x4a3)],_0x3e6424=_0x4d0983%0x10;if(!_0x3dc390&&_0x3e6424!==0x0)throw Error(_0xa608aa(0xfe));if(_0x3dc390){let _0x258103=0x10-_0x3e6424;_0x258103||=0x10,_0x4d0983+=_0x258103;}return _0x1e3478!==void 0x0&&(_0x2d854f(_0x4d0983,_0x1e3478),_0xccb3df(_0x3b17d0,_0x1e3478)),_0x4d0983;}function _0x1472c9(_0x377517,_0x3557d7,_0x35c4a2){_0x35c4a2===void 0x0&&(_0x35c4a2=new Uint8Array(_0x3557d7)),(!_0xab4a8||!_0x3e109b(_0x377517))&&(_0x377517=_0x57b968(_0x377517));let _0x337565=_0x5b41f9(_0x35c4a2);return{'b':_0x377517,'o':_0x337565,'out':_0x35c4a2};}function _0x25cb51(_0x1c1874,_0x11b624){const _0x278589=_0x28ce9c;if(!_0x11b624)return _0x1c1874;let _0x17adba=_0x1c1874['length'];if(_0x17adba===0x0)throw Error('pkcs7:\x20empty\x20ciphertext\x20not\x20allowed');let _0x1df5a1=_0x1c1874[_0x17adba-0x1],_0x4d0036=0x1;_0x4d0036&=_0x1df5a1-0x1>>>0x1f^0x1,_0x4d0036&=0x10-_0x1df5a1>>>0x1f^0x1;for(let _0x27d7eb=0x0;_0x27d7eb<0x10;_0x27d7eb++){let _0x56e07f=_0x27d7eb-_0x1df5a1>>>0x1f,_0x549e05=+((_0x1c1874[_0x17adba-0x1-_0x27d7eb]^_0x1df5a1)===0x0);_0x4d0036&=_0x549e05|_0x56e07f^0x1;}if(!_0x4d0036)throw Error(_0x278589(0x3ff));return _0x1c1874['subarray'](0x0,_0x17adba-_0x1df5a1);}function _0x36a581(_0x1183cd){const _0x40b8f4=_0x28ce9c;let _0x4579f7=new Uint8Array(0x10),_0x4941af=_0x5b41f9(_0x4579f7);_0x4579f7[_0x40b8f4(0x360)](_0x1183cd);let _0x4beb38=0x10-_0x1183cd[_0x40b8f4(0x4a3)];for(let _0x3c9f17=0x10-_0x4beb38;_0x3c9f17<0x10;_0x3c9f17++)_0x4579f7[_0x3c9f17]=_0x4beb38;return _0x4941af;}let _0x3a9d27=_0x56531b({'blockSize':0x10,'nonceLength':0x10},function(_0x3feb03,_0x77aca0,_0x399dc9={}){const _0x2f5772=_0x28ce9c;let _0x37cbc4=!_0x399dc9[_0x2f5772(0x354)];return{'encrypt'(_0xd66cc0,_0x18fe43){const _0x4a3eae=_0x2f5772;let _0x30b08f=_0x2a8c49(_0xd66cc0,_0x37cbc4,_0x18fe43),_0x5cdad9=_0x323da(_0x3feb03),{b:_0x230216,o:_0x5056d1,out:_0x1ee197}=_0x1472c9(_0xd66cc0,_0x30b08f,_0x18fe43),_0x139a2b=_0x5b41f9(_0x230216);_0x590274(_0x139a2b);let _0x280fa4=_0x77aca0,_0x5031db=[_0x5cdad9];(!_0xab4a8||!_0x3e109b(_0x280fa4))&&_0x5031db[_0x4a3eae(0x210)](_0x280fa4=_0x57b968(_0x280fa4));let _0x5e517e=_0x5b41f9(_0x280fa4);_0x590274(_0x5e517e);let _0x8fc196=_0x5e517e[0x0],_0x23be3d=_0x5e517e[0x1],_0x2ab334=_0x5e517e[0x2],_0x395246=_0x5e517e[0x3],_0x39da2f=0x0;for(;_0x39da2f+0x4<=_0x139a2b[_0x4a3eae(0x4a3)];)_0x8fc196^=_0x139a2b[_0x39da2f+0x0],_0x23be3d^=_0x139a2b[_0x39da2f+0x1],_0x2ab334^=_0x139a2b[_0x39da2f+0x2],_0x395246^=_0x139a2b[_0x39da2f+0x3],{s0:_0x8fc196,s1:_0x23be3d,s2:_0x2ab334,s3:_0x395246}=_0x2b02c0(_0x5cdad9,_0x8fc196,_0x23be3d,_0x2ab334,_0x395246),_0x5056d1[_0x39da2f++]=_0x8fc196,_0x5056d1[_0x39da2f++]=_0x23be3d,_0x5056d1[_0x39da2f++]=_0x2ab334,_0x5056d1[_0x39da2f++]=_0x395246;if(_0x37cbc4){let _0x478b89=_0x36a581(_0xd66cc0[_0x4a3eae(0x468)](_0x39da2f*0x4));_0x590274(_0x478b89),_0x8fc196^=_0x478b89[0x0],_0x23be3d^=_0x478b89[0x1],_0x2ab334^=_0x478b89[0x2],_0x395246^=_0x478b89[0x3],{s0:_0x8fc196,s1:_0x23be3d,s2:_0x2ab334,s3:_0x395246}=_0x2b02c0(_0x5cdad9,_0x8fc196,_0x23be3d,_0x2ab334,_0x395246),_0x5056d1[_0x39da2f++]=_0x8fc196,_0x5056d1[_0x39da2f++]=_0x23be3d,_0x5056d1[_0x39da2f++]=_0x2ab334,_0x5056d1[_0x39da2f++]=_0x395246,_0x43d9d2(_0x478b89);}return _0x590274(_0x5056d1),_0x43d9d2(..._0x5031db),_0x230216!==_0xd66cc0&&_0x43d9d2(_0x230216),_0x1ee197;},'decrypt'(_0x1da432,_0x44c71e){const _0x337133=_0x2f5772;_0x5b7d45(_0x1da432,_0x44c71e);let _0x39ad68=_0x229351(_0x3feb03);_0x44c71e===void 0x0&&(_0x44c71e=new Uint8Array(_0x1da432[_0x337133(0x4a3)]));let _0x240fcc=_0x77aca0,_0x343a67=[_0x39ad68];(!_0xab4a8||!_0x3e109b(_0x240fcc))&&_0x343a67[_0x337133(0x210)](_0x240fcc=_0x57b968(_0x240fcc));let _0x3b9e01=_0x5b41f9(_0x240fcc);_0x590274(_0x3b9e01),(!_0xab4a8||!_0x3e109b(_0x1da432))&&_0x343a67[_0x337133(0x210)](_0x1da432=_0x57b968(_0x1da432));let _0x284098=_0x5b41f9(_0x1da432),_0x150074=_0x5b41f9(_0x44c71e);_0x590274(_0x284098);let _0x5acb0f=_0x3b9e01[0x0],_0x2153a5=_0x3b9e01[0x1],_0xf1a785=_0x3b9e01[0x2],_0x4bbcbb=_0x3b9e01[0x3];for(let _0x3424af=0x0;_0x3424af+0x4<=_0x284098[_0x337133(0x4a3)];){let _0x30cc78=_0x5acb0f,_0x3d6ce7=_0x2153a5,_0x31ae53=_0xf1a785,_0x73b2c8=_0x4bbcbb;_0x5acb0f=_0x284098[_0x3424af+0x0],_0x2153a5=_0x284098[_0x3424af+0x1],_0xf1a785=_0x284098[_0x3424af+0x2],_0x4bbcbb=_0x284098[_0x3424af+0x3];let {s0:_0x17e469,s1:_0x2ed708,s2:_0x20994b,s3:_0x5c0724}=_0x494581(_0x39ad68,_0x5acb0f,_0x2153a5,_0xf1a785,_0x4bbcbb);_0x150074[_0x3424af++]=_0x17e469^_0x30cc78,_0x150074[_0x3424af++]=_0x2ed708^_0x3d6ce7,_0x150074[_0x3424af++]=_0x20994b^_0x31ae53,_0x150074[_0x3424af++]=_0x5c0724^_0x73b2c8;}return _0x590274(_0x150074),_0x43d9d2(..._0x343a67),_0x25cb51(_0x44c71e,_0x37cbc4);}};});function _0x592eb4(_0x2e5755){const _0x313221=_0x28ce9c;let _0x560a4f=atob(_0x2e5755),_0x3ea29b=new Uint8Array(_0x560a4f[_0x313221(0x4a3)]);for(let _0x217318=0x0;_0x217318<_0x560a4f['length'];_0x217318++)_0x3ea29b[_0x217318]=_0x560a4f[_0x313221(0x14c)](_0x217318);return _0x3ea29b;}function _0x3c71cc(_0x1e53e2){const _0x16c9d1=_0x28ce9c;let _0x2ff29f='';for(let _0x362ffd=0x0;_0x362ffd<_0x1e53e2[_0x16c9d1(0x4a3)];_0x362ffd++)_0x2ff29f+=String[_0x16c9d1(0x26d)](_0x1e53e2[_0x362ffd]);return btoa(_0x2ff29f);}function _0x5cfea6(_0x4c462d,_0x4bbb4a){const _0x1795f7=_0x28ce9c;let _0x289bed=_0x592eb4(_0x4bbb4a),_0x323de6=_0x4e2e1d(0x10);return _0x3c71cc(_0x5bda9f(_0x323de6,_0x3a9d27(_0x289bed,_0x323de6)[_0x1795f7(0x1c5)](_0x433712(_0x4c462d))));}function _0x34c55a(){const _0x799fca=_0x28ce9c;let _0x405b97=(0x0,_0x350a94[_0x799fca(0x21b)])()['__Key__'];if(typeof window<'u'&&window['location']!==void 0x0&&_0x405b97){let _0x24ade9={'time':Math[_0x799fca(0x3e4)](Date[_0x799fca(0x241)]()/0x3e8),'domain':location[_0x799fca(0x217)]};return _0x5cfea6(JSON[_0x799fca(0x122)](_0x24ade9),_0x405b97);}}let _0x25e64e=class{constructor(_0x25d1df){const _0x280b5c=_0x28ce9c;this[_0x280b5c(0x33f)]=_0x25d1df,this['_initRequestHeader']();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x3bbf0f,_0x503cdc)=>{const _0x1e593d=_0x3cef;let _0x305430=_0x34c55a();return _0x305430&&_0x3bbf0f[_0x1e593d(0xcf)][_0x1e593d(0x360)]('x-univer-host',_0x305430),_0x503cdc(_0x3bbf0f);}});}};_0x25e64e=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924['Inject'])(_0x38af37['HTTPService']))],_0x25e64e);let _0x4cae7c=class extends _0x594924['RxDisposable']{constructor(_0x40172b,_0x2a3888,_0x3707d7){const _0x2e6204=_0x28ce9c;super(),this[_0x2e6204(0x467)]=_0x40172b,this[_0x2e6204(0x399)]=_0x2a3888,this[_0x2e6204(0x15c)]=_0x3707d7,_0x4c0132(this,_0x2e6204(0x2e1),new _0x5d1b30[(_0x2e6204(0x21a))](null)),_0x4c0132(this,_0x2e6204(0x10e),new _0x5d1b30[(_0x2e6204(0x479))]()),_0x4c0132(this,_0x2e6204(0x184),this[_0x2e6204(0x2e1)][_0x2e6204(0x2a6)]()),_0x4c0132(this,_0x2e6204(0x3d7),this['_unitLoaded$'][_0x2e6204(0x2a6)]());}[_0x28ce9c(0x107)](){const _0x218a10=_0x28ce9c;super[_0x218a10(0x107)](),this[_0x218a10(0x10e)]['complete'](),this['_unitInfo$'][_0x218a10(0x427)]();}[_0x28ce9c(0x31d)](_0x4c7410,_0x8cd3b5,_0x4f6e65,_0x4f1bb6,_0x3f50ed){return this['_loadUnit'](_0x4c7410,_0x8cd3b5,_0x4f6e65,_0x4f1bb6,_0x3f50ed);}[_0x28ce9c(0x2e5)](_0x405777,_0xdc5b07,_0x4d1bfc,_0x2e77c3){return this['_loadUnit'](_0x405777,_0xdc5b07,void 0x0,_0x4d1bfc,_0x2e77c3);}async['_loadUnit'](_0x143816,_0x5ce9ba,_0x5ee7c7,_0x58cca9,_0x1368b4){const _0x345f04=_0x28ce9c;this['_unitInfo$']['next']({'unitId':_0x143816,'type':_0x5ce9ba,'subUnitId':_0x58cca9});let _0x11f5cf=_0x5ee7c7;if(_0x11f5cf===void 0x0){var _0x1ac93c;let _0x2a1919=await((_0x1ac93c=this[_0x345f04(0x15c)])==null?void 0x0:_0x1ac93c[_0x345f04(0x258)](_0x143816));_0x11f5cf=_0x2a1919&&(_0x2a1919[_0x345f04(0x213)]||_0x2a1919[_0x345f04(0x43e)][_0x345f04(0x4a3)]!==0x0)?_0x2a1919[_0x345f04(0x134)]:0x0,_0x11f5cf===0x0&&this['_logService']['debug'](_0x345f04(0x43f),_0x345f04(0x160));}return this[_0x345f04(0xee)](_0x143816,_0x5ce9ba,_0x11f5cf,_0x58cca9,_0x1368b4);}async[_0x28ce9c(0xee)](_0x26901a,_0x2db076,_0x2ccb5e,_0x2cca3c,_0x378358){const _0x4c3b80=_0x28ce9c;let _0x567b41=null;switch(_0x2db076){case _0x594924[_0x4c3b80(0x3ed)][_0x4c3b80(0x43c)]:_0x567b41=await this[_0x4c3b80(0x399)][_0x4c3b80(0x1ea)](_0x26901a,_0x2ccb5e,_0x378358,{'initialSubUnitId':_0x2cca3c});break;case _0x594924[_0x4c3b80(0x3ed)]['UNIVER_DOC']:_0x567b41=await this[_0x4c3b80(0x399)]['loadDoc'](_0x26901a,_0x2ccb5e,_0x378358);break;case _0x594924[_0x4c3b80(0x3ed)][_0x4c3b80(0x379)]:_0x567b41=await this['_snapshotService'][_0x4c3b80(0x18a)](_0x26901a,_0x2ccb5e,_0x378358);break;case _0x594924['UniverInstanceType'][_0x4c3b80(0x133)]:_0x567b41=await this[_0x4c3b80(0x399)][_0x4c3b80(0x2f1)](_0x26901a,_0x2ccb5e,_0x378358);break;case _0x594924[_0x4c3b80(0x3ed)][_0x4c3b80(0x145)]:_0x567b41=await this[_0x4c3b80(0x399)][_0x4c3b80(0x2a2)](_0x26901a,_0x2ccb5e,_0x378358);break;case _0x594924['UniverInstanceType'][_0x4c3b80(0x10b)]:_0x567b41=await this[_0x4c3b80(0x399)][_0x4c3b80(0x1f0)](_0x26901a,_0x2ccb5e,_0x378358);break;default:this['_logService'][_0x4c3b80(0x430)](_0x4c3b80(0x43f),_0x4c3b80(0x222));}return _0x567b41&&this['_unitLoaded$'][_0x4c3b80(0x12d)](_0x567b41),_0x567b41;}};_0x4cae7c=_0x5da6ca([_0x26312a(0x0,_0x594924['ILogService']),_0x26312a(0x1,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x59e2cb[_0x28ce9c(0x32c)])),_0x26312a(0x2,(0x0,_0x594924[_0x28ce9c(0x129)])(_0x2d518e))],_0x4cae7c);let _0x42ab22=class{constructor(_0x130ebe,_0x4a19cd,_0x422939){const _0x314584=_0x28ce9c;this[_0x314584(0x33f)]=_0x130ebe,this[_0x314584(0x36f)]=_0x4a19cd,this[_0x314584(0x464)]=_0x422939,_0x4c0132(this,'_waitCount',0x0),_0x4c0132(this,_0x314584(0x287),new _0x5d1b30['Subject']()),_0x4c0132(this,'change$',this[_0x314584(0x287)]),_0x4c0132(this,'_imageSourceCache',new Map());}['setWaitCount'](_0x5de124){const _0x4b1f20=_0x28ce9c;this[_0x4b1f20(0x42d)]=_0x5de124,this['_change$'][_0x4b1f20(0x12d)](_0x5de124);}[_0x28ce9c(0x340)](_0x2a55ac,_0x2e4bd3){const _0x546303=_0x28ce9c;if(_0x2e4bd3===_0x594924['ImageSourceType'][_0x546303(0x112)]){let _0x4ac625=new Image();return _0x4ac625['src']=_0x2a55ac,_0x4ac625;}return this['_imageSourceCache'][_0x546303(0x21c)](_0x2a55ac);}['addImageSourceCache'](_0x8d3e7e,_0x44403d,_0x3604b0){const _0x30e9d9=_0x28ce9c;_0x44403d!==_0x594924[_0x30e9d9(0x3c8)][_0x30e9d9(0x112)]&&_0x3604b0!=null&&this[_0x30e9d9(0x482)][_0x30e9d9(0x360)](_0x8d3e7e,_0x3604b0);}async[_0x28ce9c(0x29e)](_0x41bc24){const _0x131354=_0x28ce9c;try{let _0x5a66d8=this[_0x131354(0x470)](this[_0x131354(0x23f)](),''+_0x41bc24),_0x445167=(await this['_httpService'][_0x131354(0x21c)](_0x5a66d8))[_0x131354(0x2b7)];if(_0x445167['error']&&_0x445167[_0x131354(0x430)][_0x131354(0x3de)]===_0x4500fa[_0x131354(0x14d)]['OK']){let _0x415fd7=(0x0,_0x594924[_0x131354(0x1bd)])(_0x445167['url'],this[_0x131354(0x40b)]());return Promise['resolve'](_0x415fd7);}return Promise['reject'](_0x445167['error']);}catch(_0x10c49a){return Promise[_0x131354(0x40e)](_0x10c49a);}}async['saveImage'](_0x54b34c){const _0x1e4704=_0x28ce9c;let _0x50916d='';if(!_0x4d18e5[_0x1e4704(0x119)]['includes'](_0x54b34c[_0x1e4704(0x23b)]))return this['_decreaseWaiting'](),Promise[_0x1e4704(0x40e)](Error(_0x594924[_0x1e4704(0x163)][_0x1e4704(0x1fd)]));if(_0x54b34c[_0x1e4704(0x3b5)]>(0x0,_0x4d18e5[_0x1e4704(0x286)])())return this[_0x1e4704(0x34c)](),Promise[_0x1e4704(0x40e)](Error(_0x594924[_0x1e4704(0x163)]['ERROR_EXCEED_SIZE']));try{let _0x30fad3=new FormData();_0x30fad3[_0x1e4704(0x275)](_0x1e4704(0xf0),_0x54b34c);let _0x18c4c5=this[_0x1e4704(0x464)][_0x1e4704(0xf5)](),_0x1e2f1e=_0x18c4c5==null?void 0x0:_0x18c4c5[_0x1e4704(0x3b8)]();if(!_0x1e2f1e)throw Error(_0x1e4704(0x3b2));let _0x2536d6=this['_getUploadFileURL']()+_0x1e4704(0x472)+_0x54b34c['size'][_0x1e4704(0x144)]()+_0x1e4704(0x1ef)+_0x4500fa[_0x1e4704(0x3cc)][_0x1e4704(0x3d1)]+_0x1e4704(0x32e)+encodeURIComponent(_0x1e2f1e),_0x5af321={'body':_0x30fad3},_0x44d7a5=(await this[_0x1e4704(0x33f)][_0x1e4704(0x1fa)](_0x2536d6,_0x5af321))[_0x1e4704(0x2b7)];if(typeof _0x44d7a5['FileId']!='string')return this[_0x1e4704(0x34c)](),Promise[_0x1e4704(0x40e)](Error(_0x594924['ImageUploadStatusType'][_0x1e4704(0x402)]));_0x50916d=_0x44d7a5[_0x1e4704(0x384)];}catch{return this[_0x1e4704(0x34c)](),Promise[_0x1e4704(0x40e)](Error(_0x594924[_0x1e4704(0x163)][_0x1e4704(0x402)]));}return new Promise((_0x3408db,_0x1de51b)=>{const _0x9693f8=_0x1e4704;let _0x57c6fe=new FileReader();_0x57c6fe[_0x9693f8(0x462)](_0x54b34c),_0x57c6fe[_0x9693f8(0x392)]=_0x417cf9=>{const _0x10658c=_0x9693f8;var _0x352acb;let _0x3512f6=(_0x352acb=_0x417cf9[_0x10658c(0x2bc)])==null?void 0x0:_0x352acb['result'];_0x3512f6==null?(this[_0x10658c(0x34c)](),_0x1de51b(Error(_0x594924[_0x10658c(0x163)][_0x10658c(0x402)]))):(_0x3408db({'imageId':(0x0,_0x594924[_0x10658c(0x44c)])(0x6),'imageSourceType':_0x594924[_0x10658c(0x3c8)][_0x10658c(0x38e)],'source':_0x50916d,'base64Cache':_0x3512f6,'status':_0x594924[_0x10658c(0x163)]['SUCCUSS']}),this['_decreaseWaiting']());};});}[_0x28ce9c(0x274)](){const _0x58a513=_0x28ce9c;let _0x15ad49=this[_0x58a513(0x36f)][_0x58a513(0x3ba)](_0xe358d2);return(_0x15ad49==null?void 0x0:_0x15ad49[_0x58a513(0x2cf)])??_0x58a513(0xb9);}[_0x28ce9c(0x23f)](){const _0x1a9ca3=_0x28ce9c;let _0x29094e=this[_0x1a9ca3(0x36f)][_0x1a9ca3(0x3ba)](_0xe358d2);return(_0x29094e==null?void 0x0:_0x29094e[_0x1a9ca3(0x1e3)])??'/universer-api/file/{fileID}/sign-url';}[_0x28ce9c(0x40b)](){const _0x588204=_0x28ce9c;let _0x383a11=this[_0x588204(0x36f)][_0x588204(0x3ba)](_0xe358d2);return(_0x383a11==null?void 0x0:_0x383a11[_0x588204(0x426)])??location[_0x588204(0x221)];}['_replaceFileID'](_0x71c751,_0x110fae){const _0x5b2318=_0x28ce9c;return _0x71c751[_0x5b2318(0x3ae)](_0x5b2318(0x1ee),_0x110fae);}['_decreaseWaiting'](){const _0x1c62b3=_0x28ce9c;--this[_0x1c62b3(0x42d)],this['_change$'][_0x1c62b3(0x12d)](this[_0x1c62b3(0x42d)]);}};_0x42ab22=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x38af37['HTTPService'])),_0x26312a(0x1,_0x594924[_0x28ce9c(0x101)]),_0x26312a(0x2,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924['IUniverInstanceService']))],_0x42ab22);let _0x10bf02=class{constructor(_0x1946e4,_0x4248e3){const _0x1b761c=_0x28ce9c;this[_0x1b761c(0x36f)]=_0x1946e4,this[_0x1b761c(0xb1)]=_0x4248e3;}[_0x28ce9c(0x404)](){const _0x180429=_0x28ce9c;let _0x5f0243=this[_0x180429(0x36f)][_0x180429(0x3ba)](_0xe358d2);return(_0x5f0243==null?void 0x0:_0x5f0243['authzUrl'])??'/universer-api/authz';}async[_0x28ce9c(0x36b)](_0x5ed740){const _0x26e7e2=_0x28ce9c;let _0x586270=this[_0x26e7e2(0x404)]()+_0x26e7e2(0x303);return{'list':[{'title':_0x26e7e2(0x183),'mentions':(await this[_0x26e7e2(0xb1)][_0x26e7e2(0x21c)](_0x586270,{'params':{'objectID':_0x5ed740[_0x26e7e2(0x3f9)],'unitID':_0x5ed740[_0x26e7e2(0x3f9)]}}))[_0x26e7e2(0x2b7)][_0x26e7e2(0x499)][_0x26e7e2(0x225)](_0x211251=>({'objectId':_0x211251['id'],'name':_0x211251[_0x26e7e2(0x428)][_0x26e7e2(0x1b2)],'metadata':{'icon':_0x211251['subject'][_0x26e7e2(0x421)]},'label':_0x211251['subject'][_0x26e7e2(0x1b2)],'objectType':_0x594924[_0x26e7e2(0x161)][_0x26e7e2(0x38f)]})),'metadata':{},'type':_0x594924[_0x26e7e2(0x161)]['PERSON']}]};}};_0x10bf02=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x101)])),_0x26312a(0x1,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x38af37[_0x28ce9c(0x41f)]))],_0x10bf02);let _0x331bdd=class extends _0x594924[_0x28ce9c(0x1a9)]{constructor(_0x4fb999,_0x374ee5,_0x55599f,_0x8f257,_0x35217a,_0x548f6a){const _0x442890=_0x28ce9c;super(),this[_0x442890(0x476)]=_0x4fb999,this['_univerInstanceService']=_0x374ee5,this[_0x442890(0xdd)]=_0x55599f,this[_0x442890(0x215)]=_0x8f257,this[_0x442890(0x46a)]=_0x35217a,this[_0x442890(0x445)]=_0x548f6a,_0x4c0132(this,_0x442890(0x2e2),new Set()),this[_0x442890(0x416)](()=>this[_0x442890(0x2e2)][_0x442890(0x380)]()),this[_0x442890(0x416)](_0x4a5fa1(this[_0x442890(0x464)])[_0x442890(0x335)](({unitId:_0xdfc1a7})=>this[_0x442890(0x2e2)][_0x442890(0x203)](_0xdfc1a7))),this[_0x442890(0x46f)](),this[_0x442890(0x308)](),[_0x594924[_0x442890(0x3ed)][_0x442890(0x310)],_0x594924['UniverInstanceType'][_0x442890(0x379)],_0x594924['UniverInstanceType'][_0x442890(0x145)],_0x594924[_0x442890(0x3ed)][_0x442890(0x133)]]['forEach'](_0x18b6fd=>{const _0x3b40e9=_0x442890;this['disposeWithMe'](this[_0x3b40e9(0x464)][_0x3b40e9(0x438)](_0x18b6fd)[_0x3b40e9(0x335)](_0x3a00c1=>{const _0x4120f9=_0x3b40e9;this[_0x4120f9(0x2e2)][_0x4120f9(0x2fd)](_0x3a00c1[_0x4120f9(0x3b8)]()),this[_0x4120f9(0x476)][_0x4120f9(0x21c)](_0x594924[_0x4120f9(0x487)])[_0x4120f9(0x17f)](_0x3a00c1[_0x4120f9(0x3b8)]());}));});}[_0x28ce9c(0x308)](){const _0x99cab4=_0x28ce9c;let _0x5163d8=async(_0x4a2688,_0xc979ec)=>{const _0x141916=_0x3cef;let _0xdceeab=await this[_0x141916(0x46a)][_0x141916(0x444)](_0x4a2688);this[_0x141916(0x3e9)]||this[_0x141916(0x2e2)][_0x141916(0x16a)](_0x4a2688)||!this['_univerInstanceService'][_0x141916(0x35a)](_0x4a2688)||_0xdceeab[_0x141916(0x382)][_0x141916(0x3e8)]((0x0,_0x47dd8f[_0x141916(0xda)])(_0x3dcf9c=>_0x3dcf9c[_0x141916(0x202)]===_0x59e2cb[_0x141916(0x12b)][_0x141916(0x434)]),(0x0,_0x47dd8f[_0x141916(0x13c)])((0x0,_0x5d1b30[_0x141916(0x104)])(this['dispose$'],this['_univerInstanceService'][_0x141916(0x302)]['pipe']((0x0,_0x47dd8f[_0x141916(0xda)])(_0xe7e321=>_0xe7e321[_0x141916(0x3b8)]()===_0x4a2688)))))[_0x141916(0x335)](_0x28a967=>{const _0x3d86db=_0x141916;let {reason:_0x5ee17b}=_0x28a967[_0x3d86db(0xfa)];this[_0x3d86db(0x445)][_0x3d86db(0x2e9)]({'id':'CLOSE_ROOM','data':_0x5ee17b}),this[_0x3d86db(0x2e2)][_0x3d86db(0x2fd)](_0x4a2688),this[_0x3d86db(0x476)][_0x3d86db(0x21c)](_0x594924[_0x3d86db(0x487)])[_0x3d86db(0x17f)](_0x4a2688);let _0x2218bc=_0x391a0e(_0xc979ec);_0x2218bc!=null&&this[_0x3d86db(0x233)](_0x4a2688,_0x2218bc,_0x4500fa[_0x3d86db(0x3cb)][_0x3d86db(0x3fe)],!0x1),this[_0x3d86db(0x46a)][_0x3d86db(0x231)](_0x4a2688);});};_0x4a5fa1(this[_0x99cab4(0x464)])[_0x99cab4(0x3e8)]((0x0,_0x47dd8f[_0x99cab4(0xda)])(({unitId:_0x263f9c})=>!(0x0,_0x594924[_0x99cab4(0x237)])(_0x263f9c)),(0x0,_0x47dd8f['takeUntil'])(this[_0x99cab4(0x334)]))[_0x99cab4(0x335)](({type:_0x70176c,unitId:_0x7786dd})=>{const _0x528a38=_0x99cab4;_0x5163d8(_0x7786dd,_0x70176c)[_0x528a38(0xad)](_0xa3e00e=>this[_0x528a38(0x476)]['get'](_0x594924[_0x528a38(0x1c1)])[_0x528a38(0x430)](_0xa3e00e));});}[_0x28ce9c(0x46f)](){const _0x5d7bcf=_0x28ce9c;let _0x513201=async(_0x523626,_0x59a1fb)=>{const _0x2983e7=_0x3cef;let _0x26c81e=await this[_0x2983e7(0x46a)][_0x2983e7(0x444)](_0x523626);if(!(this[_0x2983e7(0x3e9)]||this[_0x2983e7(0x2e2)][_0x2983e7(0x16a)](_0x523626)||!this[_0x2983e7(0x464)][_0x2983e7(0x35a)](_0x523626))){if(_0x59a1fb===_0x594924[_0x2983e7(0x3ed)]['UNIVER_SHEET']){let _0x226e87=this[_0x2983e7(0x476)][_0x2983e7(0x21c)](_0x2f8369[_0x2983e7(0x381)]);await _0x226e87[_0x2983e7(0x3c9)](_0x523626),_0x26c81e[_0x2983e7(0x382)][_0x2983e7(0x3e8)]((0x0,_0x47dd8f[_0x2983e7(0xda)])(_0x4edc98=>_0x4edc98[_0x2983e7(0x202)]===_0x59e2cb[_0x2983e7(0x12b)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x47dd8f[_0x2983e7(0x13c)])((0x0,_0x5d1b30[_0x2983e7(0x104)])(this[_0x2983e7(0x334)],_0x26c81e[_0x2983e7(0x382)][_0x2983e7(0x3e8)]((0x0,_0x47dd8f[_0x2983e7(0xda)])(_0x2bce72=>_0x2bce72['eventID']===_0x59e2cb['CollaborationEvent'][_0x2983e7(0x434)])),this[_0x2983e7(0x464)][_0x2983e7(0x302)][_0x2983e7(0x3e8)]((0x0,_0x47dd8f[_0x2983e7(0xda)])(_0x4f3d37=>_0x4f3d37[_0x2983e7(0x3b8)]()===_0x523626)))))['subscribe'](_0x56f103=>{const _0x12c097=_0x2983e7;let {objectId:_0x28d635}=_0x56f103[_0x12c097(0xfa)];_0x28d635===_0x523626?_0x226e87[_0x12c097(0x3c9)](_0x523626):_0x226e87[_0x12c097(0x336)](_0x523626,_0x28d635);});}else _0x26c81e[_0x2983e7(0x382)][_0x2983e7(0x3e8)]((0x0,_0x47dd8f[_0x2983e7(0xda)])(_0x2bb8c8=>_0x2bb8c8[_0x2983e7(0x202)]===_0x59e2cb['CollaborationEvent'][_0x2983e7(0x471)]),(0x0,_0x47dd8f[_0x2983e7(0x13c)])((0x0,_0x5d1b30[_0x2983e7(0x104)])(this[_0x2983e7(0x334)],_0x26c81e[_0x2983e7(0x382)][_0x2983e7(0x3e8)]((0x0,_0x47dd8f[_0x2983e7(0xda)])(_0x557943=>_0x557943[_0x2983e7(0x202)]===_0x59e2cb[_0x2983e7(0x12b)]['SHOULD_CLOSE_CONN'])),this[_0x2983e7(0x464)][_0x2983e7(0x302)][_0x2983e7(0x3e8)]((0x0,_0x47dd8f[_0x2983e7(0xda)])(_0x85144=>_0x85144[_0x2983e7(0x3b8)]()===_0x523626)))))[_0x2983e7(0x335)](()=>{const _0x5e16cf=_0x2983e7;this['_refreshUnitPermission'](_0x523626,_0x59a1fb)[_0x5e16cf(0xad)](_0x56e276=>this[_0x5e16cf(0x476)][_0x5e16cf(0x21c)](_0x594924[_0x5e16cf(0x1c1)])['error'](_0x56e276));}),await this[_0x2983e7(0x2a8)](_0x523626,_0x59a1fb);}};_0x4a5fa1(this['_univerInstanceService'])[_0x5d7bcf(0x3e8)]((0x0,_0x47dd8f[_0x5d7bcf(0xda)])(({unitId:_0x46370b})=>!(0x0,_0x594924['isInternalEditorID'])(_0x46370b)),(0x0,_0x47dd8f[_0x5d7bcf(0x13c)])(this[_0x5d7bcf(0x334)]))[_0x5d7bcf(0x335)](({type:_0x4b29d3,unitId:_0x4e0a07})=>{const _0x207c06=_0x5d7bcf;_0x513201(_0x4e0a07,_0x4b29d3)['catch'](_0x52d543=>this[_0x207c06(0x476)][_0x207c06(0x21c)](_0x594924[_0x207c06(0x1c1)])['error'](_0x52d543));});}async[_0x28ce9c(0x2a8)](_0x2c41d5,_0x2dd310){const _0xe5f614=_0x28ce9c;let _0x389a00=_0x391a0e(_0x2dd310);if(_0x389a00==null)return;let _0x16bf81=this[_0xe5f614(0x476)][_0xe5f614(0x21c)](_0x594924['ObjectPermissionService']);if(_0x16bf81['supports']({'unitId':_0x2c41d5,'objectId':_0x2c41d5,'objectType':_0x389a00})){await _0x16bf81[_0xe5f614(0x34b)](_0x2c41d5);return;}let _0x51451b=this['_getUnitPermissionPoints'](_0x2c41d5,_0x389a00);if(!_0x51451b[_0xe5f614(0x4a3)])return;let _0x58d7b8=await this[_0xe5f614(0x215)]['allowed']({'objectID':_0x2c41d5,'objectType':_0x389a00,'unitID':_0x2c41d5,'actions':_0x51451b[_0xe5f614(0x225)](({action:_0x5abc6e})=>_0x5abc6e)});this['_disposed']||this[_0xe5f614(0x2e2)][_0xe5f614(0x16a)](_0x2c41d5)||!this[_0xe5f614(0x464)][_0xe5f614(0x35a)](_0x2c41d5)||_0x58d7b8['forEach'](_0x36fcc8=>{const _0x46d504=_0xe5f614;let _0x4a446b=_0x36fcc8['action'],_0x5557ba=_0x36fcc8['allowed'];_0x4a446b!=null&&_0x5557ba!=null&&_0x51451b[_0x46d504(0xda)](_0x7d156c=>_0x7d156c['action']===_0x4a446b)[_0x46d504(0x3ab)](_0x1519ab=>this[_0x46d504(0xdd)][_0x46d504(0x2cc)](_0x1519ab['id'],_0x5557ba));});}[_0x28ce9c(0x461)](_0x257b4d,_0x5774c3){const _0x519cd1=_0x28ce9c;let _0x3d8473=[];return this[_0x519cd1(0xdd)][_0x519cd1(0x36a)]()[_0x519cd1(0x3ab)]((_0x2c3a3b,_0x3f9609)=>{const _0x2b7080=_0x519cd1;_0x2c3a3b[_0x2b7080(0x335)](_0x4145ec=>{const _0x373b2e=_0x2b7080;_0x4145ec[_0x373b2e(0x23b)]===_0x5774c3&&'unitId'in _0x4145ec&&_0x4145ec['unitId']===_0x257b4d&&(!('objectId'in _0x4145ec)||_0x4145ec[_0x373b2e(0x25b)]===_0x257b4d)&&_0x3d8473[_0x373b2e(0x210)]({'id':_0x3f9609,'action':_0x4145ec[_0x373b2e(0x30a)]});})[_0x2b7080(0x413)]();}),_0x3d8473;}[_0x28ce9c(0x233)](_0x1a5aaf,_0x44aae8,_0x88ceb1,_0x10717f){const _0x412cf5=_0x28ce9c;this[_0x412cf5(0xdd)][_0x412cf5(0x36a)]()[_0x412cf5(0x3ab)]((_0x14cbda,_0x5a6e03)=>{const _0x11bce7=_0x412cf5;let _0x2f91e2=!0x1;_0x14cbda[_0x11bce7(0x335)](_0x1b7598=>{const _0x211ae6=_0x11bce7;_0x2f91e2=_0x1b7598[_0x211ae6(0x23b)]===_0x44aae8&&_0x1b7598[_0x211ae6(0x30a)]===_0x88ceb1&&_0x211ae6(0x3f9)in _0x1b7598&&_0x1b7598[_0x211ae6(0x3f9)]===_0x1a5aaf&&(!(_0x211ae6(0x25b)in _0x1b7598)||_0x1b7598[_0x211ae6(0x25b)]===_0x1a5aaf);})[_0x11bce7(0x413)](),_0x2f91e2&&this[_0x11bce7(0xdd)][_0x11bce7(0x2cc)](_0x5a6e03,_0x10717f);});}};_0x331bdd=_0x5da6ca([_0x26312a(0x0,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924[_0x28ce9c(0x48a)])),_0x26312a(0x1,_0x594924[_0x28ce9c(0xdf)]),_0x26312a(0x2,_0x594924[_0x28ce9c(0x415)]),_0x26312a(0x3,_0x594924['IAuthzIoService']),_0x26312a(0x4,(0x0,_0x594924['Inject'])(_0x1c7cac)),_0x26312a(0x5,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x361972))],_0x331bdd);function _0x4a5fa1(_0xb47e1c){const _0x6ca7b=_0x28ce9c;return(0x0,_0x5d1b30[_0x6ca7b(0x104)])(...[_0x594924[_0x6ca7b(0x3ed)][_0x6ca7b(0x43c)],_0x594924[_0x6ca7b(0x3ed)][_0x6ca7b(0x310)],_0x594924['UniverInstanceType'][_0x6ca7b(0x379)],_0x594924[_0x6ca7b(0x3ed)][_0x6ca7b(0x133)],_0x594924[_0x6ca7b(0x3ed)][_0x6ca7b(0x145)]][_0x6ca7b(0x225)](_0x49e817=>_0xb47e1c['getTypeOfUnitAdded$'](_0x49e817)[_0x6ca7b(0x3e8)]((0x0,_0x47dd8f['map'])(_0x2197bb=>({'type':_0x49e817,'unitId':_0x2197bb['unit'][_0x6ca7b(0x3b8)]()})))));}function _0x391a0e(_0x219623){const _0x2713fa=_0x28ce9c;switch(_0x219623){case _0x594924[_0x2713fa(0x3ed)][_0x2713fa(0x43c)]:return _0x4500fa[_0x2713fa(0x11b)][_0x2713fa(0x292)];case _0x594924[_0x2713fa(0x3ed)]['UNIVER_DOC']:return _0x4500fa[_0x2713fa(0x11b)][_0x2713fa(0x1df)];case _0x594924['UniverInstanceType'][_0x2713fa(0x379)]:return _0x4500fa[_0x2713fa(0x11b)][_0x2713fa(0x368)];case _0x594924[_0x2713fa(0x3ed)][_0x2713fa(0x133)]:return _0x4500fa[_0x2713fa(0x11b)][_0x2713fa(0x2c1)];case _0x594924['UniverInstanceType'][_0x2713fa(0x145)]:return _0x4500fa['UnitObject'][_0x2713fa(0x1f4)];default:return;}}let _0x49276e=class{constructor(_0x11fd3f,_0x51320e){const _0x5529af=_0x28ce9c;this[_0x5529af(0x36f)]=_0x11fd3f,this[_0x5529af(0x33f)]=_0x51320e;}async[_0x28ce9c(0x1dc)](_0x344e0e,_0x1daff9){const _0x1e0326=_0x28ce9c;var _0xba9e31;let {unitID:_0x43c92e,type:_0x3bf6bc,revision:_0x166735=0x0}=_0x1daff9,_0x49458e=this[_0x1e0326(0x2e6)]()+'/'+_0x3bf6bc+_0x1e0326(0x2ae)+_0x43c92e+_0x1e0326(0x480)+_0x166735,_0x2f6ed9=(await this[_0x1e0326(0x33f)]['get'](_0x49458e))[_0x1e0326(0x2b7)],_0xab98c=(_0xba9e31=_0x2f6ed9[_0x1e0326(0x41d)])==null?void 0x0:_0xba9e31['workbook'];if(_0xab98c){let _0x3b7ea9=_0xab98c==null?void 0x0:_0xab98c['originalMeta'];_0xab98c['originalMeta']=_0x59e2cb[_0x1e0326(0x3f5)][_0x1e0326(0x2c4)]((0x0,_0x59e2cb[_0x1e0326(0x259)])(_0x3b7ea9)),Object[_0x1e0326(0x28b)](_0xab98c[_0x1e0326(0x407)])[_0x1e0326(0x3ab)](([,_0x235e93])=>{const _0x3c1ec3=_0x1e0326;let _0x3fdf88=_0x235e93[_0x3c1ec3(0x13e)];_0x235e93[_0x3c1ec3(0x13e)]=_0x59e2cb['textEncoder'][_0x3c1ec3(0x2c4)]((0x0,_0x59e2cb[_0x3c1ec3(0x259)])(_0x3fdf88));});}return _0x2f6ed9;}async[_0x28ce9c(0x441)](_0x1cb82c,_0x1e5225){const _0x3a463e=_0x28ce9c;let {unitID:_0x48355e,type:_0x113b1a,blockID:_0x52620e}=_0x1e5225,_0x3f037c=this[_0x3a463e(0x389)]()+'/'+_0x113b1a+_0x3a463e(0x2ae)+_0x48355e+_0x3a463e(0xc0)+_0x52620e;return(await this[_0x3a463e(0x33f)]['get'](_0x3f037c))[_0x3a463e(0x2b7)];}async[_0x28ce9c(0x2d5)](_0xa2903,_0x52c27e){const _0x190228=_0x28ce9c;let {unitID:_0x434af7,type:_0x1c7a51,blockID:_0x4f7cb6}=_0x52c27e,_0x3ecd68=this[_0x190228(0x389)]()+_0x190228(0xc0)+_0x1c7a51+_0x190228(0x2ae)+_0x434af7+_0x190228(0xc0)+_0x4f7cb6;return(await this['_httpService'][_0x190228(0x21c)](_0x3ecd68))[_0x190228(0x2b7)];}async[_0x28ce9c(0x311)](_0x3614e6,_0x54515e){const _0xd5beb=_0x28ce9c;let {unitID:_0x1eb69e,type:_0x3a09f2,from:_0x37bf24,to:_0x3b5a62}=_0x54515e,_0x1e4f9c=this['_getAPIPrefix']()+'/'+_0x3a09f2+_0xd5beb(0x2ae)+_0x1eb69e+'/fetchmissing?from='+_0x37bf24+_0xd5beb(0x385)+_0x3b5a62;return(await this[_0xd5beb(0x33f)][_0xd5beb(0x21c)](_0x1e4f9c))[_0xd5beb(0x2b7)];}[_0x28ce9c(0x2e6)](){const _0x363ee5=_0x28ce9c;return this[_0x363ee5(0x36f)]['getConfig'](_0x363ee5(0x153))??this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0xef63f2=_0x28ce9c;let _0x356080=this[_0xef63f2(0x36f)]['getConfig'](_0xe358d2);return(_0x356080==null?void 0x0:_0x356080[_0xef63f2(0x169)])??_0xef63f2(0x22d);}async['getResourcesRequest'](_0xf143d4,_0x48e5d7){const _0x2f5b1b=_0x28ce9c;let _0x18d19d='/universer-api/snapshot/'+_0x48e5d7[_0x2f5b1b(0x23b)]+_0x2f5b1b(0x2ae)+_0x48e5d7[_0x2f5b1b(0x2b4)]+'/resources';return(await this[_0x2f5b1b(0x33f)][_0x2f5b1b(0x21c)](_0x18d19d,{'params':{'resourceId':JSON[_0x2f5b1b(0x122)](_0x48e5d7[_0x2f5b1b(0x14e)])}}))[_0x2f5b1b(0x2b7)];}[_0x28ce9c(0x3ef)](){const _0x54e76f=_0x28ce9c;throw Error(_0x54e76f(0x42f));}[_0x28ce9c(0x105)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x28ce9c(0x446)](){const _0x3ef3d4=_0x28ce9c;throw Error(_0x3ef3d4(0x42f));}[_0x28ce9c(0x28f)](){const _0xe54d73=_0x28ce9c;throw Error(_0xe54d73(0x42f));}['copyFileMeta'](){const _0x3c4875=_0x28ce9c;throw Error(_0x3c4875(0x42f));}['getLatestCsReqIdBySid'](){const _0x74d3d7=_0x28ce9c;throw Error(_0x74d3d7(0x42f));}};_0x49276e=_0x5da6ca([_0x26312a(0x0,_0x594924[_0x28ce9c(0x101)]),_0x26312a(0x1,(0x0,_0x594924['Inject'])(_0x38af37[_0x28ce9c(0x41f)]))],_0x49276e);let _0x2c5bf1=class extends _0x594924[_0x28ce9c(0x3af)]{constructor(_0x42278f,_0x3f75f7,_0x41c80a,_0x5eacc6,_0x5ea726,_0x329937){const _0x30a2bf=_0x28ce9c;super(_0x42278f,_0x3f75f7,_0x41c80a,_0x5eacc6),this[_0x30a2bf(0x116)]=_0x5ea726,this[_0x30a2bf(0x467)]=_0x329937;}[_0x28ce9c(0x40f)](_0x5305c6,_0x55e554){const _0x3bfbf9=_0x28ce9c;let _0x113149=this[_0x3bfbf9(0x198)](_0x5305c6);if(_0x113149)try{let _0x5b2572=this[_0x3bfbf9(0x295)](_0x113149,_0x55e554);this['_substituteUndoStack'](_0x5305c6,_0x5b2572);}catch(_0x57af37){this[_0x3bfbf9(0x467)][_0x3bfbf9(0x430)]('[CollaborationUndoRedoService]',_0x57af37),this[_0x3bfbf9(0x3d6)](_0x5305c6);}let _0x50548f=this[_0x3bfbf9(0x325)](_0x5305c6);if(_0x50548f)try{let _0xf77b89=this[_0x3bfbf9(0x295)](_0x50548f,_0x55e554,!0x0);this['_substituteRedoStack'](_0x5305c6,_0xf77b89);}catch(_0x16f3cf){this[_0x3bfbf9(0x467)][_0x3bfbf9(0x430)](_0x16f3cf),this['_clearRedo'](_0x5305c6);}}[_0x28ce9c(0x3d6)](_0x5914b9){const _0x554ae5=_0x28ce9c;let _0x199c7b=this[_0x554ae5(0x198)](_0x5914b9);_0x199c7b&&(_0x199c7b[_0x554ae5(0x4a3)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x57afa4){const _0x5ab1bb=_0x28ce9c;let _0x135a5d=this[_0x5ab1bb(0x325)](_0x57afa4);_0x135a5d&&(_0x135a5d['length']=0x0,this[_0x5ab1bb(0x276)]());}[_0x28ce9c(0x361)](_0x167b17,_0x24d6aa){const _0x2c92bf=_0x28ce9c;this[_0x2c92bf(0x1be)]['set'](_0x167b17,_0x24d6aa),this[_0x2c92bf(0x276)]();}[_0x28ce9c(0x38b)](_0x4659aa,_0x14187d){const _0x216352=_0x28ce9c;this[_0x216352(0x2a0)][_0x216352(0x360)](_0x4659aa,_0x14187d),this[_0x216352(0x276)]();}[_0x28ce9c(0x295)](_0x24a191,_0x4ae282,_0x18ac70=!0x1){const _0x3f8cfe=_0x28ce9c;if(!_0x24a191[_0x3f8cfe(0x4a3)])return[];let _0x3bb140=[],_0x22620f=_0x4ae282,_0x19f814=_0x4ae282[_0x3f8cfe(0x23b)]===_0x594924['UniverInstanceType'][_0x3f8cfe(0x310)]?this[_0x3f8cfe(0x464)][_0x3f8cfe(0x35a)](_0x4ae282[_0x3f8cfe(0x2b4)],_0x594924[_0x3f8cfe(0x3ed)]['UNIVER_DOC']):null,_0x5a4bca=_0x19f814?{'id':_0x19f814[_0x3f8cfe(0x3b8)](),'documentStyle':{},'tableSource':_0x594924[_0x3f8cfe(0x266)][_0x3f8cfe(0x2e7)](_0x19f814[_0x3f8cfe(0x42c)]()[_0x3f8cfe(0x1ec)]??{})}:null;for(let _0x28b42f=_0x24a191['length']-0x1;_0x28b42f>=0x0;_0x28b42f--){let {unitID:_0x4c9742,undoMutations:_0x1e7d1b,redoMutations:_0x16774b}=_0x24a191[_0x28b42f],_0x584b71=_0x18ac70?_0x16774b:_0x1e7d1b,_0x59e61b=this['_transformHistoryMutations'](_0x22620f,_0x584b71);if((0x0,_0x59e2cb[_0x3f8cfe(0x339)])(_0x59e61b)){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3f8cfe(0x293),_0x59e61b);break;}let _0x15b8ac=_0x18ac70?_0x1e7d1b:_0x16774b,_0x27ef9d=this[_0x3f8cfe(0x3db)](_0x59e61b['c1Prime'],_0x15b8ac);if((0x0,_0x59e2cb[_0x3f8cfe(0x339)])(_0x27ef9d)){this[_0x3f8cfe(0x467)]['error'](_0x3f8cfe(0x475),'transformStack\x20failed!',_0x27ef9d);break;}let _0x3cee0d=_0x18ac70?_0x27ef9d:_0x59e61b,_0x1d2d68=_0x18ac70?_0x59e61b:_0x27ef9d;_0x22620f=_0x59e61b[_0x3f8cfe(0x294)],_0x5a4bca&&=this[_0x3f8cfe(0x3df)](_0x5a4bca,_0x59e61b[_0x3f8cfe(0x305)],_0x27ef9d[_0x3f8cfe(0x305)]),_0x3bb140[_0x3f8cfe(0x210)]({'unitID':_0x4c9742,'undoMutations':_0x3cee0d[_0x3f8cfe(0x305)],'redoMutations':_0x1d2d68[_0x3f8cfe(0x305)]});}return _0x3bb140[_0x3f8cfe(0x3e0)]();}[_0x28ce9c(0x3db)](_0x47ebd2,_0x109e09){const _0x67e1fe=_0x28ce9c;if(_0x47ebd2[_0x67e1fe(0x23b)]!==_0x594924[_0x67e1fe(0x3ed)][_0x67e1fe(0x310)]||_0x109e09[_0x67e1fe(0x1a1)](_0x212fc=>_0x212fc['id']!==_0xbdd057[_0x67e1fe(0x1cb)]['id']))return this[_0x67e1fe(0x116)]['transformMutationsWithChangeset'](_0x47ebd2,_0x109e09);let _0x2729a4=_0x594924['Tools'][_0x67e1fe(0x2e7)](_0x109e09),_0x14f5cb=[];for(let _0x13ce86 of _0x47ebd2['mutations']){let _0x32bfe8={..._0x47ebd2,'mutations':[_0x13ce86]},_0x56d75a=[];for(let _0x1b8cd4 of _0x2729a4){_0x32bfe8=this[_0x67e1fe(0x23c)](_0x32bfe8,[_0x1b8cd4]);let _0x581394=this[_0x67e1fe(0x116)][_0x67e1fe(0x42a)](_0x32bfe8,[_0x1b8cd4]);if((0x0,_0x59e2cb[_0x67e1fe(0x339)])(_0x581394))return _0x581394;_0x32bfe8=_0x581394['c1Prime'],_0x56d75a[_0x67e1fe(0x210)](..._0x581394[_0x67e1fe(0x305)]);}_0x2729a4=_0x56d75a,_0x14f5cb[_0x67e1fe(0x210)](..._0x32bfe8['mutations']);}return{'m2Prime':_0x2729a4,'c1Prime':{..._0x47ebd2,'mutations':_0x14f5cb}};}[_0x28ce9c(0x23c)](_0x17d3b3,_0x585cfe){const _0x32aac9=_0x28ce9c;let _0x52d968=new Map(),_0x5c19c9=_0x594924[_0x32aac9(0xbd)][_0x32aac9(0x23b)][_0x32aac9(0x2e0)](_0x585cfe[0x0][_0x32aac9(0x26a)][_0x32aac9(0xd1)]);if(_0x5c19c9[_0x32aac9(0x48b)](null,_0x344176=>{const _0xcb0616=_0x32aac9;if(_0x344176['et']!==_0xcb0616(0x250))return;let _0x9b3938=JSON['stringify'](_0x5c19c9['getPath']()),_0x3a2f19=_0x52d968[_0xcb0616(0x21c)](_0x9b3938)??new Map(),_0x14d522=0x0;for(let _0x329ab4 of _0x344176['e']){if(_0x329ab4['t']===_0x594924[_0xcb0616(0x2a3)][_0xcb0616(0x23d)]){var _0x3574aa;for(let _0xf14db0 of((_0x3574aa=_0x329ab4[_0xcb0616(0x2b7)])==null?void 0x0:_0x3574aa[_0xcb0616(0x2b1)])??[])_0x3a2f19[_0xcb0616(0x360)](_0x14d522+_0xf14db0['startIndex'],{'paragraph':_0xf14db0,'replace':_0x329ab4[_0xcb0616(0x2b8)]===_0x594924[_0xcb0616(0x174)][_0xcb0616(0x3f2)]});}_0x329ab4['t']!==_0x594924[_0xcb0616(0x2a3)][_0xcb0616(0x273)]&&(_0x14d522+=_0x329ab4['len']);}_0x3a2f19[_0xcb0616(0x3b5)]>0x0&&_0x52d968['set'](_0x9b3938,_0x3a2f19);}),_0x52d968[_0x32aac9(0x3b5)]===0x0)return _0x17d3b3;let _0xe85b6a=_0x594924[_0x32aac9(0x266)][_0x32aac9(0x2e7)](_0x17d3b3);for(let _0x561fb6 of _0xe85b6a[_0x32aac9(0x43e)]){if(_0x561fb6['id']!==_0xbdd057[_0x32aac9(0x1cb)]['id'])continue;let _0x2b07b9=_0x594924[_0x32aac9(0xbd)]['type'][_0x32aac9(0x2e0)](_0x561fb6[_0x32aac9(0x26a)]['actions']);_0x2b07b9['traverse'](null,_0x45b18c=>{const _0x421ced=_0x32aac9;if(_0x45b18c['et']!==_0x421ced(0x250))return;let _0x2d0463=JSON[_0x421ced(0x122)](_0x2b07b9[_0x421ced(0x14f)]()),_0x52e7fc=_0x52d968[_0x421ced(0x21c)](_0x2d0463);if(!(_0x52e7fc!=null&&_0x52e7fc[_0x421ced(0x3b5)]))return;let _0x46be3d=0x0;for(let _0x4acd2e of _0x45b18c['e']){if(_0x4acd2e['t']===_0x594924[_0x421ced(0x2a3)]['RETAIN']&&_0x4acd2e['coverType']===_0x594924['UpdateDocsAttributeType']['REPLACE']){var _0x5a0e8d;for(let _0x5ec3e7 of((_0x5a0e8d=_0x4acd2e['body'])==null?void 0x0:_0x5a0e8d[_0x421ced(0x2b1)])??[]){var _0x29912b;let _0x54949d=(_0x29912b=_0x4acd2e[_0x421ced(0x29c)])==null||(_0x29912b=_0x29912b[_0x421ced(0x2b1)])==null?void 0x0:_0x29912b[_0x421ced(0x2db)](_0x34d6fa=>_0x34d6fa[_0x421ced(0xf3)]===_0x5ec3e7[_0x421ced(0xf3)]),_0x4d76ec=_0x52e7fc[_0x421ced(0x21c)](_0x46be3d+_0x5ec3e7['startIndex']);if(_0x54949d&&_0x4d76ec){this[_0x421ced(0xa6)](_0x5ec3e7,_0x54949d,_0x4d76ec['paragraph'],_0x4d76ec[_0x421ced(0x3ae)]);let _0x439320=_0x4d76ec[_0x421ced(0x3ae)]?new Set([...Object[_0x421ced(0x1b3)](_0x4d76ec[_0x421ced(0x171)]),...Object['keys'](_0x5ec3e7)]):Object['keys'](_0x4d76ec[_0x421ced(0x171)]);for(let _0x5e10e1 of _0x439320){if(_0x5e10e1===_0x421ced(0xf3)||_0x5e10e1===_0x421ced(0x186))continue;let _0xd6ecd7=Reflect[_0x421ced(0x21c)](_0x5ec3e7,_0x5e10e1);_0xd6ecd7===void 0x0?Reflect[_0x421ced(0x2fa)](_0x4d76ec[_0x421ced(0x171)],_0x5e10e1):Reflect[_0x421ced(0x360)](_0x4d76ec[_0x421ced(0x171)],_0x5e10e1,_0x594924[_0x421ced(0x266)][_0x421ced(0x2e7)](_0xd6ecd7));}}}}_0x4acd2e['t']!==_0x594924[_0x421ced(0x2a3)][_0x421ced(0x273)]&&(_0x46be3d+=_0x4acd2e['len']);}});}return _0xe85b6a;}[_0x28ce9c(0xa6)](_0x490b4c,_0x4d8bce,_0x4e5001,_0x36d872){const _0x3a3ebe=_0x28ce9c;let _0x95c9d7=new Set([...Object[_0x3a3ebe(0x1b3)](_0x490b4c),...Object[_0x3a3ebe(0x1b3)](_0x4d8bce),...Object[_0x3a3ebe(0x1b3)](_0x4e5001)]);for(let _0x1bb963 of _0x95c9d7){if(_0x1bb963===_0x3a3ebe(0xf3)||_0x1bb963==='paragraphId')continue;let _0x1b25e5=Reflect[_0x3a3ebe(0x21c)](_0x490b4c,_0x1bb963),_0x20ecda=Reflect['get'](_0x4d8bce,_0x1bb963),_0x27d330=Reflect[_0x3a3ebe(0x21c)](_0x4e5001,_0x1bb963);if(_0x36d872||_0x27d330!==void 0x0){if(_0x594924[_0x3a3ebe(0x266)][_0x3a3ebe(0x350)](_0x1b25e5,_0x20ecda))_0x27d330===void 0x0?(Reflect[_0x3a3ebe(0x2fa)](_0x490b4c,_0x1bb963),Reflect['deleteProperty'](_0x4d8bce,_0x1bb963)):(Reflect['set'](_0x490b4c,_0x1bb963,_0x594924[_0x3a3ebe(0x266)]['deepClone'](_0x27d330)),Reflect['set'](_0x4d8bce,_0x1bb963,_0x594924['Tools'][_0x3a3ebe(0x2e7)](_0x27d330)));else{if(_0x594924[_0x3a3ebe(0x266)]['isObject'](_0x1b25e5)&&(_0x594924[_0x3a3ebe(0x266)][_0x3a3ebe(0x2c5)](_0x20ecda)||_0x20ecda===void 0x0)){let _0x31c0f2=_0x20ecda??{};this[_0x3a3ebe(0xa6)](_0x1b25e5,_0x31c0f2,_0x594924['Tools'][_0x3a3ebe(0x2c5)](_0x27d330)?_0x27d330:{},_0x36d872),(_0x20ecda!==void 0x0||Object[_0x3a3ebe(0x1b3)](_0x31c0f2)[_0x3a3ebe(0x4a3)]>0x0)&&Reflect[_0x3a3ebe(0x360)](_0x4d8bce,_0x1bb963,_0x31c0f2);}}}}}[_0x28ce9c(0x3df)](_0xceee33,_0x5eda94,_0x42e1de){const _0x118871=_0x28ce9c;if(_0x5eda94[_0x118871(0x4a3)]!==0x1||_0x42e1de['length']!==0x1||_0x5eda94[0x0]['id']!==_0xbdd057[_0x118871(0x1cb)]['id']||_0x42e1de[0x0]['id']!==_0xbdd057[_0x118871(0x1cb)]['id'])return _0xceee33;let _0x2931d0=_0x5eda94[0x0][_0x118871(0x26a)],_0x198b24=_0x42e1de[0x0][_0x118871(0x26a)],_0x54528f=this['_filterTableActions'](_0x2931d0[_0x118871(0xd1)],!0x0);return _0x594924[_0x118871(0x136)][_0x118871(0x246)](_0x54528f)?_0xceee33:(_0x198b24['actions']=_0x594924[_0x118871(0x136)]['compose'](this['_filterTableActions'](_0x198b24['actions'],!0x1),_0x594924[_0x118871(0x136)]['invertWithDoc'](_0x54528f,_0xceee33)),_0x594924[_0x118871(0x136)]['apply'](_0xceee33,_0x54528f)??_0xceee33);}['_filterTableActions'](_0x329ba6,_0x2c65ab){const _0x37f6fa=_0x28ce9c;let _0x2fe1ef=_0x594924['JSON1'][_0x37f6fa(0x23b)][_0x37f6fa(0x2e0)](_0x329ba6),_0x411dd9=_0x594924['JSON1'][_0x37f6fa(0x23b)][_0x37f6fa(0x318)]();return _0x2fe1ef[_0x37f6fa(0x48b)](null,_0x417d06=>{const _0x5eb1d7=_0x37f6fa;let _0x4e22d4=_0x2fe1ef['getPath']();if(_0x4e22d4[0x0]===_0x5eb1d7(0x1ec)===_0x2c65ab){for(let _0x54a6ea of Object[_0x5eb1d7(0x1b3)](_0x417d06))_0x411dd9['writeAtPath'](_0x4e22d4,_0x54a6ea,_0x417d06[_0x54a6ea]);}}),_0x411dd9[_0x37f6fa(0x21c)]();}};_0x2c5bf1=_0x5da6ca([_0x26312a(0x0,_0x594924['IUniverInstanceService']),_0x26312a(0x1,_0x594924[_0x28ce9c(0x126)]),_0x26312a(0x2,_0x594924[_0x28ce9c(0xd7)]),_0x26312a(0x3,_0x594924[_0x28ce9c(0x101)]),_0x26312a(0x4,_0x59e2cb['ITransformService']),_0x26312a(0x5,_0x594924['ILogService'])],_0x2c5bf1);let _0x2d5a6e=class extends _0x594924['Plugin']{constructor(_0xad0cf=_0x13ba20,_0x5339b9,_0x5245d0,_0x5c24d1){const _0xa62795=_0x28ce9c;super(),this[_0xa62795(0x332)]=_0xad0cf,this[_0xa62795(0x467)]=_0x5339b9,this[_0xa62795(0x476)]=_0x5245d0,this['_configService']=_0x5c24d1;let {..._0x24d922}=(0x0,_0x594924[_0xa62795(0x104)])({},_0x13ba20,this[_0xa62795(0x332)]);if(!_0x24d922['socketService'])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x24d922,this[_0xa62795(0x36f)][_0xa62795(0xd5)](_0xe358d2,_0x24d922);}[_0x28ce9c(0x3c0)](){const _0x32d031=_0x28ce9c;this[_0x32d031(0x36f)]['setConfig'](_0x594924[_0x32d031(0x2dd)],this[_0x32d031(0x332)][_0x32d031(0x2c6)]??[]),this[_0x32d031(0xca)](),this[_0x32d031(0x201)]();}[_0x28ce9c(0xca)](){const _0x266e4d=_0x28ce9c;var _0x1bbbe9,_0x110213;this[_0x266e4d(0x476)][_0x266e4d(0x16a)](_0x594924[_0x266e4d(0x321)])&&this[_0x266e4d(0x467)][_0x266e4d(0x430)](_0x266e4d(0x3c5),_0x266e4d(0xbc));let _0x6f2e2=(0x0,_0x594924[_0x266e4d(0x3b6)])([[_0x594924[_0x266e4d(0x321)],{'useClass':_0x2c5bf1}],[_0x8830e8,{'useValue':_0x5273fe()}],[_0x1c7cac],[_0x2a43bc],[_0x18fc5c],[_0x300808],[_0x25e64e],[_0x3e652d],[_0x331bdd],[_0x361972],[_0x4cae7c],[_0x51dc05,{'useClass':this[_0x266e4d(0x332)]['socketService']}],[_0x59e2cb[_0x266e4d(0x2c9)],{'useClass':_0x49276e}],[_0x594924[_0x266e4d(0x414)],{'useClass':_0x30f9ac}],[_0x594924[_0x266e4d(0x3f0)],{'useClass':_0x42ab22}],[_0x4e9a00,{'useClass':_0x1e204e}],[_0x594924[_0x266e4d(0x324)],{'useClass':_0x10bf02}],[_0x22775e],[_0x301b65]],(_0x1bbbe9=this[_0x266e4d(0x332)])==null?void 0x0:_0x1bbbe9[_0x266e4d(0x256)]);if(!((_0x110213=this[_0x266e4d(0x332)])!=null&&_0x110213[_0x266e4d(0x29a)])){let _0x5b7a86=_0x6f2e2['findIndex'](([_0x327232])=>_0x327232===_0x141436);_0x5b7a86!==-0x1&&_0x6f2e2[_0x266e4d(0x359)](_0x5b7a86,0x1);}(0x0,_0x594924[_0x266e4d(0x20f)])(this['_injector'],_0x6f2e2);}[_0x28ce9c(0x201)](){const _0x583a18=_0x28ce9c;var _0x970334,_0x3c3aa0;if(this[_0x583a18(0x476)][_0x583a18(0x21c)](_0x38af37[_0x583a18(0x41f)])[_0x583a18(0x397)]({'priority':0x14,'interceptor':(0x0,_0x38af37[_0x583a18(0x281)])({'maxParallel':0x6})}),!((_0x970334=this[_0x583a18(0x332)])!=null&&_0x970334['enableOfflineEditing'])){var _0x264e8a;(_0x264e8a=this[_0x583a18(0x476)][_0x583a18(0x21c)](_0x2d518e,_0x594924[_0x583a18(0x400)][_0x583a18(0x3eb)]))==null||_0x264e8a[_0x583a18(0x49d)]();}(_0x3c3aa0=this['_config'])!=null&&_0x3c3aa0[_0x583a18(0x495)]&&(0x0,_0x594924[_0x583a18(0x49a)])(this[_0x583a18(0x476)],[[_0x300808]]),(0x0,_0x594924['touchDependencies'])(this[_0x583a18(0x476)],[[_0x25e64e],[_0x22775e],[_0x331bdd]]);}};_0x4c0132(_0x2d5a6e,'pluginName',_0x28ce9c(0x28c)),_0x4c0132(_0x2d5a6e,'packageName',_0x3ca81e),_0x4c0132(_0x2d5a6e,_0x28ce9c(0x3c6),_0xcbc3c0),_0x2d5a6e=_0x5da6ca([(0x0,_0x594924[_0x28ce9c(0x46e)])(_0x350a94[_0x28ce9c(0x364)],_0x38af37[_0x28ce9c(0x386)],_0x59e2cb[_0x28ce9c(0x229)]),_0x26312a(0x1,_0x594924[_0x28ce9c(0x1c1)]),_0x26312a(0x2,(0x0,_0x594924[_0x28ce9c(0xf2)])(_0x594924['Injector'])),_0x26312a(0x3,_0x594924['IConfigService'])],_0x2d5a6e),Object['defineProperty'](_0x16c048,_0x28ce9c(0xfc),{'enumerable':!0x0,'get':function(){return _0x30f9ac;}}),Object[_0x28ce9c(0x16d)](_0x16c048,'AwaitingState',{'enumerable':!0x0,'get':function(){return _0x3d552f;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x435),{'enumerable':!0x0,'get':function(){return _0x594950;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x158),{'enumerable':!0x0,'get':function(){return _0x4b8df2;}}),Object['defineProperty'](_0x16c048,_0x28ce9c(0x35b),{'enumerable':!0x0,'get':function(){return _0x59d8da;}}),_0x16c048[_0x28ce9c(0x245)]=_0xe358d2,_0x16c048[_0x28ce9c(0x488)]=_0x1591bd,Object['defineProperty'](_0x16c048,_0x28ce9c(0x207),{'enumerable':!0x0,'get':function(){return _0x1e204e;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x425),{'enumerable':!0x0,'get':function(){return _0x22775e;}}),Object['defineProperty'](_0x16c048,_0x28ce9c(0x3e7),{'enumerable':!0x0,'get':function(){return _0x4e94dc;}}),Object['defineProperty'](_0x16c048,_0x28ce9c(0x24d),{'enumerable':!0x0,'get':function(){return _0x42ab22;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x263),{'enumerable':!0x0,'get':function(){return _0x5e5039;}}),Object['defineProperty'](_0x16c048,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x1c7cac;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x196),{'enumerable':!0x0,'get':function(){return _0x5bdcdd;}}),_0x16c048[_0x28ce9c(0x405)]=_0xe6a82b,_0x16c048['CollaborationUIEventId']=_0x181346,_0x16c048[_0x28ce9c(0x228)]=_0x361972,Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x283),{'enumerable':!0x0,'get':function(){return _0x2c5bf1;}}),_0x16c048[_0x28ce9c(0x20c)]=_0x3e652d,Object['defineProperty'](_0x16c048,_0x28ce9c(0x27a),{'enumerable':!0x0,'get':function(){return _0x40e010;}}),_0x16c048['DEFAULT_ACK_TIMEOUT']=0x4e20,_0x16c048['DEFAULT_COLLAB_WEB_SOCKET_URL']='ws://127.0.0.1:8000/universer-api/comb/connect',_0x16c048['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',_0x16c048[_0x28ce9c(0x4a0)]=_0x28ce9c(0x35d),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x3f4),{'enumerable':!0x0,'get':function(){return _0x4cae7c;}}),Object[_0x28ce9c(0x16d)](_0x16c048,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x4a949e;}}),Object[_0x28ce9c(0x16d)](_0x16c048,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x1b7c12;}}),_0x16c048[_0x28ce9c(0x1e4)]=_0x28ce9c(0xb8),_0x16c048[_0x28ce9c(0x182)]=_0x28ce9c(0x24a),_0x16c048[_0x28ce9c(0x2d6)]=_0x4e9a00,_0x16c048['ICollaborationClientAdapterService']=_0x8830e8,_0x16c048[_0x28ce9c(0x466)]=_0x51dc05,_0x16c048[_0x28ce9c(0x2cd)]=_0x2d518e,_0x16c048[_0x28ce9c(0x454)]=_0x2ed4c4,_0x16c048['ISingleActiveUnitService']=_0x141436,_0x16c048[_0x28ce9c(0x120)]=0x3e8,_0x16c048[_0x28ce9c(0xe6)]=_0x28ce9c(0x120),_0x16c048['MAX_ACK_TIMEOUT']=0x1d4c0,Object['defineProperty'](_0x16c048,_0x28ce9c(0x3ee),{'enumerable':!0x0,'get':function(){return _0x2a43bc;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x346),{'enumerable':!0x0,'get':function(){return _0x10bf02;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x216),{'enumerable':!0x0,'get':function(){return _0x1f738c;}}),Object['defineProperty'](_0x16c048,_0x28ce9c(0x149),{'enumerable':!0x0,'get':function(){return _0x2b7afa;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x135),{'enumerable':!0x0,'get':function(){return _0xd87b49;}}),_0x16c048['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x28ce9c(0x39b),_0x16c048[_0x28ce9c(0x33c)]='RETRY_CONNECTING_MAX_COUNT',_0x16c048[_0x28ce9c(0x264)]=_0x483f95,Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x280),{'enumerable':!0x0,'get':function(){return _0x5afe54;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x3f6),{'enumerable':!0x0,'get':function(){return _0x18fc5c;}}),Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0x43d),{'enumerable':!0x0,'get':function(){return _0x32033d;}}),Object[_0x28ce9c(0x16d)](_0x16c048,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x49276e;}}),Object[_0x28ce9c(0x16d)](_0x16c048,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x200cdc;}}),_0x16c048['UnitStatus']=_0x269d12,Object[_0x28ce9c(0x16d)](_0x16c048,_0x28ce9c(0xec),{'enumerable':!0x0,'get':function(){return _0x2d5a6e;}}),_0x16c048[_0x28ce9c(0x45c)]=_0x5273fe,_0x16c048['deserializeToCombResponse']=_0x41b36b,_0x16c048['getLocalCacheKey']=_0x2499a5,_0x16c048[_0x28ce9c(0x316)]=_0x1e9454;}));