@univerjs-pro/collaboration-client 1.0.0-beta.0 → 1.0.0-beta.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 (87) 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/facade/f-collaboration.d.ts +14 -0
  65. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +2 -2
  66. package/lib/umd/facade.js +1 -1
  67. package/lib/umd/index.js +1 -1
  68. package/lib/umd/locale/ar-SA.js +1 -1
  69. package/lib/umd/locale/ca-ES.js +1 -1
  70. package/lib/umd/locale/de-DE.js +1 -1
  71. package/lib/umd/locale/en-US.js +1 -1
  72. package/lib/umd/locale/es-ES.js +1 -1
  73. package/lib/umd/locale/fa-IR.js +1 -1
  74. package/lib/umd/locale/fr-FR.js +1 -1
  75. package/lib/umd/locale/id-ID.js +1 -1
  76. package/lib/umd/locale/it-IT.js +1 -1
  77. package/lib/umd/locale/ja-JP.js +1 -1
  78. package/lib/umd/locale/ko-KR.js +1 -1
  79. package/lib/umd/locale/pl-PL.js +1 -1
  80. package/lib/umd/locale/pt-BR.js +1 -1
  81. package/lib/umd/locale/ru-RU.js +1 -1
  82. package/lib/umd/locale/sk-SK.js +1 -1
  83. package/lib/umd/locale/vi-VN.js +1 -1
  84. package/lib/umd/locale/zh-CN.js +1 -1
  85. package/lib/umd/locale/zh-HK.js +1 -1
  86. package/lib/umd/locale/zh-TW.js +1 -1
  87. package/package.json +15 -15
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1600(_0x36de73,_0x3d78ce){_0x36de73=_0x36de73-0xa9;const _0x1aa588=_0x1aa5();let _0x1600c3=_0x1aa588[_0x36de73];return _0x1600c3;}(function(_0x1473c2,_0x347b28){const _0x4d6cf9=_0x1600,_0x46fd9d=_0x1473c2();while(!![]){try{const _0x4c0d35=parseInt(_0x4d6cf9(0x2ee))/0x1*(parseInt(_0x4d6cf9(0x3b6))/0x2)+-parseInt(_0x4d6cf9(0x103))/0x3+-parseInt(_0x4d6cf9(0x3db))/0x4*(parseInt(_0x4d6cf9(0x31c))/0x5)+parseInt(_0x4d6cf9(0x3fd))/0x6*(parseInt(_0x4d6cf9(0x1eb))/0x7)+-parseInt(_0x4d6cf9(0x128))/0x8*(-parseInt(_0x4d6cf9(0x1ba))/0x9)+-parseInt(_0x4d6cf9(0x322))/0xa*(-parseInt(_0x4d6cf9(0xac))/0xb)+-parseInt(_0x4d6cf9(0x18c))/0xc*(parseInt(_0x4d6cf9(0x1dd))/0xd);if(_0x4c0d35===_0x347b28)break;else _0x46fd9d['push'](_0x46fd9d['shift']());}catch(_0x33c899){_0x46fd9d['push'](_0x46fd9d['shift']());}}}(_0x1aa5,0x487ea),function(_0x35300b,_0x19dbc7){const _0x25c5ed=_0x1600;typeof exports==_0x25c5ed(0x31d)&&typeof module<'u'?_0x19dbc7(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x25c5ed(0xf0)&&define[_0x25c5ed(0x2b8)]?define(['exports',_0x25c5ed(0xf4),'@univerjs/core',_0x25c5ed(0x2a3),_0x25c5ed(0x1a3),_0x25c5ed(0x325),_0x25c5ed(0x17a),'@univerjs/telemetry',_0x25c5ed(0x27d),_0x25c5ed(0x24f),'@univerjs/network',_0x25c5ed(0x37f),_0x25c5ed(0x1d4)],_0x19dbc7):(_0x35300b=typeof globalThis<'u'?globalThis:_0x35300b||self,_0x19dbc7(_0x35300b[_0x25c5ed(0x1e0)]={},_0x35300b[_0x25c5ed(0x32e)],_0x35300b['UniverCore'],_0x35300b[_0x25c5ed(0x1ae)],_0x35300b[_0x25c5ed(0x126)],_0x35300b[_0x25c5ed(0x325)],_0x35300b['UniverProtocol'],_0x35300b[_0x25c5ed(0xe6)],_0x35300b['rxjs'][_0x25c5ed(0x121)],_0x35300b['UniverProSlides'],_0x35300b[_0x25c5ed(0x2d5)],_0x35300b[_0x25c5ed(0xcb)],_0x35300b[_0x25c5ed(0x262)]));}(this,function(_0x38e016,_0x5d8fae,_0x3ea0ad,_0x160e88,_0x1dfeb2,_0x3a9bce,_0x2a4603,_0x280742,_0x6cc357,_0x438df1,_0x2e88c0,_0x575549,_0x43a3a3){const _0x387812=_0x1600;Object[_0x387812(0x1b6)](_0x38e016,Symbol[_0x387812(0x23c)],{'value':_0x387812(0x3f5)});let _0xeb659=_0x387812(0x315),_0x15b9fd={};function _0x36eca6(_0x24299d){const _0x1a3719=_0x387812;return JSON[_0x1a3719(0x1e5)](_0x24299d)['length'];}function _0x5e7288(_0x258576){'@babel/helpers - typeof';const _0x479b8b=_0x387812;return _0x5e7288=typeof Symbol==_0x479b8b(0xf0)&&typeof Symbol['iterator']==_0x479b8b(0x277)?function(_0x1f7220){return typeof _0x1f7220;}:function(_0x3460d4){const _0x4e7d3c=_0x479b8b;return _0x3460d4&&typeof Symbol==_0x4e7d3c(0xf0)&&_0x3460d4['constructor']===Symbol&&_0x3460d4!==Symbol['prototype']?_0x4e7d3c(0x277):typeof _0x3460d4;},_0x5e7288(_0x258576);}function _0x43f02a(_0x384a4f,_0x263627){const _0x52f3cf=_0x387812;if(_0x5e7288(_0x384a4f)!=_0x52f3cf(0x31d)||!_0x384a4f)return _0x384a4f;var _0x5cbdb3=_0x384a4f[Symbol['toPrimitive']];if(_0x5cbdb3!==void 0x0){var _0x4651f5=_0x5cbdb3[_0x52f3cf(0x3dd)](_0x384a4f,_0x263627||_0x52f3cf(0x39d));if(_0x5e7288(_0x4651f5)!=_0x52f3cf(0x31d))return _0x4651f5;throw TypeError(_0x52f3cf(0x170));}return(_0x263627===_0x52f3cf(0x17f)?String:Number)(_0x384a4f);}function _0x11f448(_0xb3a690){const _0x2d7710=_0x387812;var _0x1bc45b=_0x43f02a(_0xb3a690,_0x2d7710(0x17f));return _0x5e7288(_0x1bc45b)=='symbol'?_0x1bc45b:_0x1bc45b+'';}function _0x309f50(_0xdf46b5,_0x3e496c,_0x580647){return(_0x3e496c=_0x11f448(_0x3e496c))in _0xdf46b5?Object['defineProperty'](_0xdf46b5,_0x3e496c,{'value':_0x580647,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xdf46b5[_0x3e496c]=_0x580647,_0xdf46b5;}let _0x4e47c0=function(_0x47f0d2){const _0x21bd7d=_0x387812;return _0x47f0d2['OTHER_CLIENT_EDITING']=_0x21bd7d(0x1bb),_0x47f0d2['PERMISSION_DENIED']=_0x21bd7d(0x34f),_0x47f0d2[_0x21bd7d(0x129)]=_0x21bd7d(0x129),_0x47f0d2['CLOSE_ROOM']='CLOSE_ROOM',_0x47f0d2['JOIN_ROOM_FAILED']=_0x21bd7d(0x10b),_0x47f0d2[_0x21bd7d(0x3d5)]=_0x21bd7d(0x3d5),_0x47f0d2[_0x21bd7d(0x218)]=_0x21bd7d(0x218),_0x47f0d2[_0x21bd7d(0x3e3)]=_0x21bd7d(0x3e3),_0x47f0d2;}({});var _0x359cbb=class{constructor(){const _0x5dc07c=_0x387812;_0x309f50(this,_0x5dc07c(0x2e0),new _0x3a9bce[(_0x5dc07c(0x20a))]()),_0x309f50(this,_0x5dc07c(0x36d),this[_0x5dc07c(0x2e0)][_0x5dc07c(0x1fe)]());}[_0x387812(0x11a)](_0x46f071){const _0x589933=_0x387812;this[_0x589933(0x2e0)][_0x589933(0x316)](_0x46f071);}},_0x579ca0=class{constructor(){const _0x20d470=_0x387812;_0x309f50(this,_0x20d470(0xe1),new _0x3a9bce[(_0x20d470(0x20a))]()),_0x309f50(this,_0x20d470(0x394),this[_0x20d470(0xe1)][_0x20d470(0x1fe)]());}[_0x387812(0x2d4)](_0x2a27b0){const _0x144ebf=_0x387812;this[_0x144ebf(0xe1)][_0x144ebf(0x316)](_0x2a27b0);}};function _0x29ab6d(_0x3c72c6,_0x324da4){return function(_0x44d639,_0x2719e4){_0x324da4(_0x44d639,_0x2719e4,_0x3c72c6);};}function _0x48064b(_0x2b0317,_0x1e3277,_0x56e13c,_0x29bc23){const _0x2afeb0=_0x387812;var _0x59b657=arguments[_0x2afeb0(0x141)],_0x4cac3a=_0x59b657<0x3?_0x1e3277:_0x29bc23===null?_0x29bc23=Object[_0x2afeb0(0x36e)](_0x1e3277,_0x56e13c):_0x29bc23,_0xee8eb4;if(typeof Reflect==_0x2afeb0(0x31d)&&typeof Reflect['decorate']=='function')_0x4cac3a=Reflect[_0x2afeb0(0xb9)](_0x2b0317,_0x1e3277,_0x56e13c,_0x29bc23);else{for(var _0x4e32b3=_0x2b0317[_0x2afeb0(0x141)]-0x1;_0x4e32b3>=0x0;_0x4e32b3--)(_0xee8eb4=_0x2b0317[_0x4e32b3])&&(_0x4cac3a=(_0x59b657<0x3?_0xee8eb4(_0x4cac3a):_0x59b657>0x3?_0xee8eb4(_0x1e3277,_0x56e13c,_0x4cac3a):_0xee8eb4(_0x1e3277,_0x56e13c))||_0x4cac3a);}return _0x59b657>0x3&&_0x4cac3a&&Object[_0x2afeb0(0x1b6)](_0x1e3277,_0x56e13c,_0x4cac3a),_0x4cac3a;}let _0x3f167c=class extends _0x3ea0ad['Disposable']{constructor(_0x3dabd0){const _0x412994=_0x387812;super(),this[_0x412994(0xc8)]=_0x3dabd0,_0x309f50(this,_0x412994(0x25d),new Map()),_0x309f50(this,'_roomCreated$',new _0x3a9bce['Subject']()),this['disposeWithMe']((0x0,_0x3a9bce[_0x412994(0x365)])(this[_0x412994(0xc8)][_0x412994(0x19f)](_0x3ea0ad['UniverInstanceType']['UNIVER_SHEET'])[_0x412994(0x298)]((0x0,_0x6cc357[_0x412994(0x1a7)])(_0x248a9b=>_0x248a9b[_0x412994(0x1c4)]())),this[_0x412994(0xc8)]['getTypeOfUnitDisposed$'](_0x3ea0ad[_0x412994(0x20e)][_0x412994(0x2e8)])[_0x412994(0x298)]((0x0,_0x6cc357[_0x412994(0x1a7)])(_0x5811be=>_0x5811be[_0x412994(0x1c4)]())),this['_univerInstanceService'][_0x412994(0x19f)](_0x3ea0ad[_0x412994(0x20e)][_0x412994(0x237)])[_0x412994(0x298)]((0x0,_0x6cc357[_0x412994(0x1a7)])(_0x2a48ce=>_0x2a48ce[_0x412994(0x1c4)]())),this[_0x412994(0xc8)][_0x412994(0x19f)](_0x3ea0ad['UniverInstanceType'][_0x412994(0x382)])['pipe']((0x0,_0x6cc357[_0x412994(0x1a7)])(_0x10321d=>_0x10321d[_0x412994(0x1c4)]())))['subscribe'](_0x8d1833=>this[_0x412994(0x354)](_0x8d1833)));}[_0x387812(0x39a)](_0xd3e6d){const _0xe17c3b=_0x387812;return this[_0xe17c3b(0x25d)][_0xe17c3b(0xc6)](_0xd3e6d)?(0x0,_0x3a9bce['of'])(this[_0xe17c3b(0x25d)][_0xe17c3b(0x32a)](_0xd3e6d)):this[_0xe17c3b(0x108)][_0xe17c3b(0x298)]((0x0,_0x6cc357[_0xe17c3b(0x1a7)])(_0x2f8100=>{const _0x3b501f=_0xe17c3b;if(_0x2f8100===_0xd3e6d)return this[_0x3b501f(0x25d)][_0x3b501f(0x32a)](_0x2f8100);}));}[_0x387812(0xc0)](_0xa9c061,_0x3b0460){const _0xbdbd9b=_0x387812;let _0x3a0f76=this[_0xbdbd9b(0x25d)]['get'](_0xa9c061);_0x3a0f76||(_0x3a0f76=new _0x59a7e4(),this[_0xbdbd9b(0x25d)][_0xbdbd9b(0x15c)](_0xa9c061,_0x3a0f76),this[_0xbdbd9b(0x108)][_0xbdbd9b(0x316)](_0xa9c061)),_0x3a0f76['updateMember'](_0x3b0460);}[_0x387812(0x2d8)](_0xa1b2d8,_0x368aeb){const _0x5a79fe=_0x387812;let _0x59ab25=this[_0x5a79fe(0x25d)][_0x5a79fe(0x32a)](_0xa1b2d8);_0x59ab25&&_0x59ab25['removeMember'](_0x368aeb);}['getRoom'](_0x136d64){const _0x5e75ea=_0x387812;return this[_0x5e75ea(0x25d)][_0x5e75ea(0x32a)](_0x136d64);}[_0x387812(0xd6)](_0x287e04,_0x254319){const _0x2d3f56=_0x387812;let _0x3d7672=this[_0x2d3f56(0x25d)][_0x2d3f56(0x32a)](_0x287e04);if(_0x3d7672)return _0x3d7672[_0x2d3f56(0xd6)](_0x254319);}[_0x387812(0x354)](_0x340b4f){const _0x50f37a=_0x387812;let _0x1622a6=this['_roomMembers']['get'](_0x340b4f);_0x1622a6&&(_0x1622a6[_0x50f37a(0x102)](),this[_0x50f37a(0x25d)][_0x50f37a(0x3c5)](_0x340b4f));}[_0x387812(0x102)](){const _0x577893=_0x387812;this[_0x577893(0x25d)]['forEach'](_0x48247f=>_0x48247f[_0x577893(0x102)]()),this['_roomMembers'][_0x577893(0x19d)](),this['_roomCreated$'][_0x577893(0xca)]();}};_0x3f167c=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad[_0x387812(0x2fe)])],_0x3f167c);var _0x59a7e4=class extends _0x3ea0ad['Disposable']{constructor(..._0x2c35d9){const _0x51fdef=_0x387812;super(..._0x2c35d9),_0x309f50(this,_0x51fdef(0x2f9),new Map()),_0x309f50(this,_0x51fdef(0x13d),new _0x3a9bce[(_0x51fdef(0x24a))](this[_0x51fdef(0x2f9)])),_0x309f50(this,'members$',this[_0x51fdef(0x13d)][_0x51fdef(0x1fe)]());}[_0x387812(0x102)](){const _0x5ba86b=_0x387812;this['_members']['clear'](),this[_0x5ba86b(0x13d)][_0x5ba86b(0xca)]();}[_0x387812(0xc0)](_0x383ccf){const _0x49243b=_0x387812;this[_0x49243b(0x2f9)][_0x49243b(0x15c)](_0x383ccf[_0x49243b(0x2c9)],_0x383ccf),this[_0x49243b(0x30b)]();}[_0x387812(0x2d8)](_0x5aed8c){const _0x3a3b05=_0x387812;this[_0x3a3b05(0x2f9)][_0x3a3b05(0x3c5)](_0x5aed8c),this[_0x3a3b05(0x30b)]();}[_0x387812(0xd6)](_0x29f148){const _0x5eac69=_0x387812;return this[_0x5eac69(0x2f9)][_0x5eac69(0x32a)](_0x29f148);}[_0x387812(0x2f2)](){const _0x25788d=_0x387812;return Array[_0x25788d(0x287)](this['_members'][_0x25788d(0x2a0)]());}[_0x387812(0x30b)](){const _0x59d1ed=_0x387812;this[_0x59d1ed(0x13d)][_0x59d1ed(0x316)](this[_0x59d1ed(0x2f9)]);}};function _0xc299da(_0x48dbf0,_0x887e1b){const _0x5902d5=_0x387812;if(_0x18e6a6(_0x48dbf0))return _0x887e1b;if(_0x887e1b[_0x5902d5(0x217)]===_0x5d8fae['CollaborationEvent'][_0x5902d5(0x340)]){let _0x56c20f=_0x4ad4bf(_0x48dbf0),_0x124652=_0x887e1b;return{..._0x124652,'data':{..._0x124652[_0x5902d5(0x31b)],'unitID':_0x48dbf0[_0x5902d5(0x3d4)][_0x5902d5(0x397)],'unitType':_0x48dbf0[_0x5902d5(0x3d4)][_0x5902d5(0x27f)]??_0x124652[_0x5902d5(0x31b)][_0x5902d5(0x27f)],'changeset':_0x56c20f[_0x5902d5(0x320)](_0x124652['data'][_0x5902d5(0x2c2)],_0x91c61b(_0x48dbf0))}};}if(_0x887e1b['eventID']===_0x5d8fae['CollaborationEvent'][_0x5902d5(0x25e)]){let _0x5960d1=_0x887e1b;return{..._0x5960d1,'data':{..._0x5960d1[_0x5902d5(0x31b)],'unitID':_0x48dbf0[_0x5902d5(0x3d4)]['unitId'],'unitType':_0x48dbf0[_0x5902d5(0x3d4)][_0x5902d5(0x27f)]??_0x5960d1[_0x5902d5(0x31b)][_0x5902d5(0x27f)]}};}return _0x887e1b;}function _0x86d9c3(_0x5dd355,_0xd9f69c){const _0xe19744=_0x387812;if(_0x18e6a6(_0x5dd355))return[_0xd9f69c];switch(_0xd9f69c[_0xe19744(0x217)]){case _0x5d8fae[_0xe19744(0x13b)][_0xe19744(0x363)]:return[_0x4803f2(_0x5dd355,_0xd9f69c)];case _0x5d8fae['CollaborationEvent'][_0xe19744(0x244)]:return[_0xdb3203(_0x5dd355,_0xd9f69c)];case _0x5d8fae['CollaborationEvent'][_0xe19744(0x147)]:return[_0x29b6da(_0x5dd355,_0xd9f69c)];default:return[_0xd9f69c];}}function _0x18e6a6(_0x21c20b){const _0x62d93e=_0x387812;return _0x21c20b[_0x62d93e(0x3d4)][_0x62d93e(0x1ed)]==null&&_0x21c20b[_0x62d93e(0x3d4)][_0x62d93e(0x397)]===_0x21c20b[_0x62d93e(0x19c)]&&!_0x21c20b[_0x62d93e(0x2c2)];}function _0x4803f2(_0x2f5f6a,_0x309f38){const _0x519d72=_0x387812;return{..._0x309f38,'data':(0x0,_0x5d8fae[_0x519d72(0x2b4)])(_0x53a8b6(_0x2f5f6a,(0x0,_0x5d8fae[_0x519d72(0x104)])(_0x309f38[_0x519d72(0x31b)])))};}function _0x29b6da(_0x15b26c,_0x21fc05){const _0x320668=_0x387812;return{..._0x21fc05,'data':_0x53a8b6(_0x15b26c,_0x21fc05[_0x320668(0x31b)])};}function _0xdb3203(_0xfa033d,_0x8b8368){const _0x48b5c2=_0x387812;let _0xf0d107=_0x8b8368[_0x48b5c2(0x31b)];return{..._0x8b8368,'data':{..._0xf0d107,'changesets':_0xf0d107['changesets'][_0x48b5c2(0x1a7)](_0x52f44e=>(0x0,_0x5d8fae['parseChangesetToProtocol'])(_0x53a8b6(_0xfa033d,(0x0,_0x5d8fae[_0x48b5c2(0x104)])(_0x52f44e))))}};}function _0x53a8b6(_0x18457c,_0x13ff5f){const _0x4a175d=_0x387812;return _0x4ad4bf(_0x18457c)[_0x4a175d(0x2ae)](_0x13ff5f,_0x91c61b(_0x18457c));}function _0x4ad4bf(_0x3aaab2){const _0x462c68=_0x387812;if(!_0x3aaab2[_0x462c68(0x2c2)])throw Error(_0x462c68(0x1dc));return _0x3aaab2[_0x462c68(0x2c2)];}function _0x91c61b(_0x721502){const _0x8113d=_0x387812;return{'localUnitId':_0x721502[_0x8113d(0x19c)],'unitType':_0x721502[_0x8113d(0x27f)],'target':_0x721502['target']};}let _0x56411b=function(_0x5c6a14){const _0x50d432=_0x387812;return _0x5c6a14[_0x5c6a14[_0x50d432(0x120)]=0x0]=_0x50d432(0x120),_0x5c6a14[_0x5c6a14['JOINING']=0x1]=_0x50d432(0x402),_0x5c6a14[_0x5c6a14[_0x50d432(0x2ac)]=0x2]=_0x50d432(0x2ac),_0x5c6a14[_0x5c6a14['ONLINE']=0x3]='ONLINE',_0x5c6a14;}({}),_0x1da0f7={[_0x2a4603[_0x387812(0x3d3)][_0x387812(0x258)]]:_0x387812(0x3f2),[_0x2a4603[_0x387812(0x3d3)][_0x387812(0x21c)]]:'session.room-full',[_0x2a4603['CmdRspCode'][_0x387812(0x209)]]:_0x387812(0x30e),[_0x2a4603[_0x387812(0x3d3)][_0x387812(0x241)]]:_0x387812(0x13c),[_0x2a4603['CmdRspCode']['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x387812(0x11c)},_0x3c2d9d=class extends _0x3ea0ad[_0x387812(0x150)]{get[_0x387812(0x313)](){const _0x27f0b9=_0x387812;return this['_sessionStatus$'][_0x27f0b9(0x355)]();}constructor(_0x3d4900,_0x5020c6,_0x2d165b,_0xd8d946,_0x1392c1,_0x56594a,_0x31b7dd,_0x1cad30){const _0x5ee4db=_0x387812;super(),this[_0x5ee4db(0x3c8)]=_0x3d4900,this[_0x5ee4db(0x1fc)]=_0x2d165b,this[_0x5ee4db(0x327)]=_0xd8d946,this[_0x5ee4db(0x228)]=_0x1392c1,this[_0x5ee4db(0x130)]=_0x56594a,this[_0x5ee4db(0x378)]=_0x31b7dd,this['_telemetryService']=_0x1cad30,_0x309f50(this,_0x5ee4db(0x1d5),new _0x3a9bce['BehaviorSubject'](0x0)),_0x309f50(this,_0x5ee4db(0x303),this['_sessionStatus$'][_0x5ee4db(0x1fe)]()),_0x309f50(this,'_event$',new _0x3a9bce[(_0x5ee4db(0x20a))]()),_0x309f50(this,_0x5ee4db(0x36d),this[_0x5ee4db(0x2e0)]['asObservable']()),_0x309f50(this,_0x5ee4db(0x3cd),void 0x0),_0x309f50(this,_0x5ee4db(0x1ad),void 0x0),_0x309f50(this,'_collaborationTimeoutTimer',void 0x0),_0x309f50(this,'_shouldReportTelemetry',!0x1),_0x309f50(this,_0x5ee4db(0x230),null),this[_0x5ee4db(0xeb)]=!!this[_0x5ee4db(0x10e)],_0x5020c6[_0x5ee4db(0x298)]((0x0,_0x3a9bce['takeUntil'])(this[_0x5ee4db(0x235)]))[_0x5ee4db(0x1a6)](_0x1efe82=>{const _0x3795d6=_0x5ee4db;if(_0x1efe82!==void 0x0){if(this['_socket']=_0x1efe82,_0x1efe82)this[_0x3795d6(0x360)](_0x1efe82),this[_0x3795d6(0x1ad)]=_0x1efe82[_0x3795d6(0x1d6)][_0x3795d6(0x1a6)](_0xa1d59e=>{const _0x58c063=_0x3795d6;_0xa1d59e[_0x58c063(0xb2)]===this[_0x58c063(0x3c8)][_0x58c063(0x3d4)]['unitId']&&this['_onCombEvent'](_0xa1d59e);});else{var _0x782a96;this[_0x3795d6(0x3bb)](),this[_0x3795d6(0x1d5)]['next'](0x2),(_0x782a96=this[_0x3795d6(0x1ad)])==null||_0x782a96[_0x3795d6(0x23d)](),this['_socketMessageSubscription']=null;}}});}['getMemberID'](){const _0x299b25=_0x387812;var _0x3d41f4;return((_0x3d41f4=this[_0x299b25(0x3cd)])==null?void 0x0:_0x3d41f4[_0x299b25(0x2c9)])??null;}[_0x387812(0x102)](){const _0x2a9c95=_0x387812;super[_0x2a9c95(0x102)](),this[_0x2a9c95(0xc5)](),this[_0x2a9c95(0x235)][_0x2a9c95(0x316)](),this[_0x2a9c95(0x235)]['complete']();}['close'](){const _0xda0a87=_0x387812;var _0xc2f04e;this[_0xda0a87(0x3bb)](),(_0xc2f04e=this['_socket'])==null||_0xc2f04e[_0xda0a87(0x1da)]({'cmd':_0x2a4603['CombCmd'][_0xda0a87(0x1cd)],'data':{'roomID':this[_0xda0a87(0x3c8)]['target'][_0xda0a87(0x397)]}}),this['_event$'][_0xda0a87(0xca)](),this[_0xda0a87(0x1d5)][_0xda0a87(0xca)]();}[_0x387812(0x290)](_0x2cfe32){const _0x546bef=_0x387812;_0x2cfe32['cmd']===_0x2a4603[_0x546bef(0x396)][_0x546bef(0x148)]?this[_0x546bef(0x1cb)](_0x2cfe32):_0x2cfe32[_0x546bef(0xdf)]===_0x2a4603[_0x546bef(0x396)][_0x546bef(0x2dc)]&&this[_0x546bef(0x2b1)](_0x2cfe32);}[_0x387812(0x360)](_0x2efc34){const _0x399b0d=_0x387812;this[_0x399b0d(0x1d5)]['next'](0x1),_0x2efc34['send']({'cmd':_0x2a4603[_0x399b0d(0x396)]['JOIN'],'routeKey':this[_0x399b0d(0x3c8)]['target'][_0x399b0d(0x397)],'routeType':'','data':{'rooms':[{'roomID':this[_0x399b0d(0x3c8)]['target'][_0x399b0d(0x397)]}]}});}[_0x387812(0x1cb)](_0x29b3b8){const _0x4ab7e0=_0x387812;var _0x4194fd;if(_0x29b3b8['code']in _0x1da0f7){this['_collaborationUIEventService'][_0x4ab7e0(0x11a)]({'id':_0x4ab7e0(0x10b),'data':_0x1da0f7[_0x29b3b8[_0x4ab7e0(0x299)]]}),this['_sessionStatus$'][_0x4ab7e0(0x316)](0x2);return;}this[_0x4ab7e0(0x1d5)][_0x4ab7e0(0x316)](0x3);let _0x497ac2=(_0x4194fd=_0x29b3b8['data'][_0x4ab7e0(0x29f)][this['_identity'][_0x4ab7e0(0x3d4)][_0x4ab7e0(0x397)]])==null?void 0x0:_0x4194fd['members'];_0x497ac2&&_0x497ac2['forEach'](_0x1e7542=>this[_0x4ab7e0(0x228)][_0x4ab7e0(0xc0)](this[_0x4ab7e0(0x3c8)]['localUnitId'],_0x1e7542));}[_0x387812(0x2b1)](_0x10ac89){const _0x452dea=_0x387812;try{let _0x637e9d=_0x86d9c3(this[_0x452dea(0x3c8)],_0x10ac89[_0x452dea(0x31b)]);for(let _0x4e4259 of _0x637e9d)switch(_0x4e4259['eventID']){case _0x5d8fae[_0x452dea(0x13b)][_0x452dea(0x3c1)]:this[_0x452dea(0x28a)](_0x4e4259),this['_event$']['next'](_0x4e4259);break;case _0x5d8fae['CollaborationEvent'][_0x452dea(0xbe)]:this[_0x452dea(0x3a1)](_0x4e4259),this[_0x452dea(0x2e0)]['next'](_0x4e4259);break;case _0x5d8fae[_0x452dea(0x13b)]['CHANGESET_ACK']:case _0x5d8fae[_0x452dea(0x13b)][_0x452dea(0x147)]:this[_0x452dea(0x35b)](),this[_0x452dea(0xd2)](),this[_0x452dea(0x2e0)][_0x452dea(0x316)](_0x4e4259);break;case _0x5d8fae[_0x452dea(0x13b)][_0x452dea(0x3c0)]:this['_logService'][_0x452dea(0xcf)](_0x452dea(0x1f9)+JSON[_0x452dea(0x1e5)](_0x4e4259)),this['_event$'][_0x452dea(0x316)](_0x4e4259);break;case _0x5d8fae[_0x452dea(0x13b)]['COMMENT_UPDATE']:this[_0x452dea(0x130)][_0x452dea(0x2d4)](_0x4e4259[_0x452dea(0x31b)]),this[_0x452dea(0x2e0)]['next'](_0x4e4259);break;default:this[_0x452dea(0x2e0)][_0x452dea(0x316)](_0x4e4259);}}catch(_0x3bab79){this[_0x452dea(0x1fc)][_0x452dea(0xcf)](_0x3bab79,_0x10ac89);}}[_0x387812(0x28a)](_0x26baaa){const _0x393b18=_0x387812;this[_0x393b18(0x228)][_0x393b18(0xc0)](this[_0x393b18(0x3c8)]['localUnitId'],_0x26baaa[_0x393b18(0x31b)]);}['_onUserLeave'](_0x3a8ee9){const _0xfce405=_0x387812;this['_memberService'][_0xfce405(0x2d8)](this[_0xfce405(0x3c8)][_0xfce405(0x19c)],_0x3a8ee9[_0xfce405(0x31b)][_0xfce405(0x2c9)]);}async['send'](_0x5791b9,_0x5e0c84){const _0x55aca0=_0x387812;if(this['sessionStatus']!==0x3||!this[_0x55aca0(0x3cd)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x39dc8f=_0xc299da(this[_0x55aca0(0x3c8)],_0x5791b9);_0x39dc8f[_0x55aca0(0x217)]===_0x5d8fae['CollaborationEvent']['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x55aca0(0x319)](_0x39dc8f)),this[_0x55aca0(0x3cd)][_0x55aca0(0x1da)]({'cmd':_0x2a4603['CombCmd'][_0x55aca0(0x2cf)],'routeKey':this[_0x55aca0(0x3c8)][_0x55aca0(0x3d4)]['unitId'],'routeType':'','data':_0x39dc8f});}catch(_0x40df60){this[_0x55aca0(0x1fc)][_0x55aca0(0xcf)](_0x40df60);}}[_0x387812(0x3de)](){const _0x1096fe=_0x387812;this[_0x1096fe(0x24e)]=setTimeout(()=>{const _0x159145=_0x1096fe;this[_0x159145(0x24e)]=null,this['_collaborationUIEventService']['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x1096fe(0x327)][_0x1096fe(0x346)](_0x1096fe(0x278))??0x4e20);}[_0x387812(0xd2)](){const _0x4ae2a4=_0x387812;this[_0x4ae2a4(0x24e)]&&=(clearTimeout(this[_0x4ae2a4(0x24e)]),null);}['_startTelemetryCollaborationNewChangeset'](_0x3775cd){const _0x18e61f=_0x387812;if(!this['_shouldReportTelemetry'])return;let {data:_0x1bad4f}=_0x3775cd,{unitID:_0x12dd93,changeset:_0x4f8540}=_0x1bad4f,{mutations:_0x3b1962,type:_0xd50058}=_0x4f8540;this[_0x18e61f(0x230)]={'unitId':_0x12dd93,'type':_0xd50058,'startTime':performance[_0x18e61f(0x3d7)](),'stopTime':0x0,'duration':0x0,'size':_0x36eca6(_0x3b1962)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x43b0d8=_0x387812;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this['_logService'][_0x43b0d8(0xcf)](_0x43b0d8(0x192),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x43b0d8(0x230)]['stopTime']=performance[_0x43b0d8(0x3d7)](),this[_0x43b0d8(0x230)][_0x43b0d8(0x329)]=this[_0x43b0d8(0x230)]['stopTime']-this[_0x43b0d8(0x230)][_0x43b0d8(0x3ab)],this['_telemetryService'][_0x43b0d8(0xd8)](_0x43b0d8(0x190),this[_0x43b0d8(0x230)]),this[_0x43b0d8(0x230)]=null;}}[_0x387812(0x3bb)](){this['_telemetryInfo']=null;}};_0x3c2d9d=_0x48064b([_0x29ab6d(0x2,_0x3ea0ad['ILogService']),_0x29ab6d(0x3,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3f167c)),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x579ca0)),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x280742[_0x387812(0x257)]))],_0x3c2d9d);let _0x4e9987=(0x0,_0x3ea0ad[_0x387812(0x359)])(_0x387812(0x39f));function _0x3492e6(_0x532ef1){const _0x2b2c40=_0x387812;return _0x2b2c40(0x356)+_0x532ef1;}function _0x396100(_0x2fd569){const _0x453b39=_0x387812;let {unitID:_0x367de0,mutations:_0x3b927f}=_0x2fd569;return{'unitId':_0x367de0,'subUnitId':_0x3b927f[_0x453b39(0x141)]>0x0?_0x3b927f[0x0]['params'][_0x453b39(0x275)]:null};}let _0x5ad7dd=class{constructor(_0xce3755,_0x5e1392,_0x4ffa26){const _0x2ad42e=_0x387812;this[_0x2ad42e(0x26d)]=_0xce3755,this[_0x2ad42e(0xb8)]=_0x5e1392,this[_0x2ad42e(0x229)]=_0x4ffa26;}[_0x387812(0xd9)](_0x105924){const _0x5d1125=_0x387812;var _0x3f1887,_0x49f87e;let _0x61161c=this[_0x5d1125(0x26d)][_0x5d1125(0x32a)](_0x1dfeb2[_0x5d1125(0x23e)]),{unitId:_0x1071c3,subUnitId:_0x45d743}=_0x396100(_0x105924),_0x2ee2b6=_0x61161c==null?void 0x0:_0x61161c[_0x5d1125(0x3ea)](_0x1071c3)['getCurrentSelections'](),_0x3bd998=(_0x3f1887=this['_instanceService'][_0x5d1125(0x2cb)](_0x1071c3))==null||(_0x3f1887=_0x3f1887[_0x5d1125(0x3ff)]())==null?void 0x0:_0x3f1887['getSheetId']();if(_0x2ee2b6['length']===0x0||!_0x1071c3||!_0x45d743)return;let _0x584538=[{'id':_0x1dfeb2[_0x5d1125(0x1b7)]['id'],'params':{'unitId':_0x1071c3,'subUnitId':_0x3bd998,'selections':_0x3ea0ad[_0x5d1125(0x3f3)][_0x5d1125(0x208)](_0x2ee2b6)}}],_0x190048=this[_0x5d1125(0xb8)][_0x5d1125(0xa9)](_0x105924,_0x584538);if(!(0x0,_0x5d8fae[_0x5d1125(0x1d0)])(_0x190048))throw _0x190048[_0x5d1125(0xcf)];let _0x4acc22=(_0x49f87e=_0x190048[_0x5d1125(0x22c)][0x0])==null||(_0x49f87e=_0x49f87e[_0x5d1125(0x247)])==null?void 0x0:_0x49f87e[_0x5d1125(0x3dc)];if(Array['isArray'](_0x4acc22)&&_0x4acc22[_0x5d1125(0x141)]){if(_0x4acc22[_0x5d1125(0x141)]===_0x584538[0x0][_0x5d1125(0x247)]['selections'][_0x5d1125(0x141)]&&_0x4acc22[_0x5d1125(0x1e3)]((_0x23210a,_0x6286c9)=>_0x3ea0ad[_0x5d1125(0x3ee)][_0x5d1125(0x2fb)](_0x23210a[_0x5d1125(0x260)],_0x584538[0x0][_0x5d1125(0x247)][_0x5d1125(0x3dc)][_0x6286c9][_0x5d1125(0x260)])))return;this[_0x5d1125(0x26d)]['get'](_0x3ea0ad[_0x5d1125(0x35e)])[_0x5d1125(0x151)](_0x1dfeb2['SetSelectionsOperation']['id'],{'unitId':_0x1071c3,'subUnitId':_0x3bd998,'selections':_0x4acc22});}}};_0x5ad7dd=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x1,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0x2fe)])],_0x5ad7dd);let _0x989852=(0x0,_0x3ea0ad[_0x387812(0x359)])('univer-pro.collaboration-client.single-active-unit-service'),_0x1dcdde=function(_0x28dfe3){const _0x4e6148=_0x387812;return _0x28dfe3[_0x28dfe3[_0x4e6148(0x11e)]=0x0]=_0x4e6148(0x11e),_0x28dfe3[_0x28dfe3[_0x4e6148(0x1ec)]=0x1]=_0x4e6148(0x1ec),_0x28dfe3;}({});function _0x18f735(_0x4dbb99){const _0x2403f9=_0x387812;var _0x2b4747;return!!((_0x2b4747=_0x4dbb99[_0x2403f9(0x247)])!=null&&_0x2b4747[_0x2403f9(0x17e)]);}let _0x56b5ff=new Set([_0x1dfeb2['InsertSheetMutation']['id']]),_0x3c2f68=new Set([_0x438df1[_0x387812(0x181)]['id'],_0x438df1[_0x387812(0x285)]['id'],_0x438df1['MoveSlidePageMutation']['id'],_0x438df1[_0x387812(0x19a)]['id']]);function _0x53635f(_0x2b20c9,_0x399ca2=_0x56b5ff){const _0x86cb5e=_0x387812;let _0x2f3720=[];for(let _0x408c5b of _0x2b20c9){if(_0x399ca2[_0x86cb5e(0xc6)](_0x408c5b['id'])){if(_0x2f3720['length']>0x0)break;_0x2f3720[_0x86cb5e(0x223)](_0x408c5b);break;}if(_0x18f735(_0x408c5b)){if(_0x2f3720[_0x86cb5e(0x141)]>0x0)break;_0x2f3720[_0x86cb5e(0x223)](_0x408c5b);break;}_0x2f3720[_0x86cb5e(0x223)](_0x408c5b);}return _0x2f3720;}function _0x4e9ac9(_0x4b22f1,_0x2ad306,_0x196041,_0x106ec2,_0x3a4059){const _0x3ef126=_0x387812;let _0xb34173=_0x53635f(_0x4b22f1),_0x4767cc=_0x3a4059['getCurrentUser'](),_0x189f6b=(_0x4767cc==null?void 0x0:_0x4767cc[_0x3ef126(0x349)])??_0x3ef126(0x367),_0x124176=(_0x4767cc==null?void 0x0:_0x4767cc[_0x3ef126(0x2c9)])??_0x3ef126(0x367);return{'changeset':{'unitID':_0x2ad306,'type':(0x0,_0x5d8fae['mapDocumentTypeToUniverInstanceType'])(_0x196041[_0x3ef126(0x280)](_0x2ad306)),'baseRev':_0x106ec2[_0x3ef126(0x1ea)](_0x2ad306),'revision':0x0,'userID':_0x189f6b,'memberID':_0x124176,'mutations':_0xb34173},'pendingMutations':_0x4b22f1[_0x3ef126(0x3af)](_0xb34173[_0x3ef126(0x141)])};}let _0x4ac4d2=_0x4e9ac9;function _0x58baf6(_0x2b48f7,_0x47e213,_0x38ddd5,_0x410664,_0x2283f6){const _0x14e1fd=_0x387812;let _0x4fc4ef=_0x53635f(_0x2b48f7,_0x3c2f68),_0x2688c0=_0x2283f6[_0x14e1fd(0x34b)](),_0x345bce=(_0x2688c0==null?void 0x0:_0x2688c0[_0x14e1fd(0x349)])??_0x14e1fd(0x367),_0x318ef0=(_0x2688c0==null?void 0x0:_0x2688c0[_0x14e1fd(0x2c9)])??_0x14e1fd(0x367);return{'changeset':{'unitID':_0x47e213,'type':(0x0,_0x5d8fae['mapDocumentTypeToUniverInstanceType'])(_0x38ddd5[_0x14e1fd(0x280)](_0x47e213)),'baseRev':_0x410664[_0x14e1fd(0x1ea)](_0x47e213),'revision':0x0,'userID':_0x345bce,'memberID':_0x318ef0,'mutations':_0x4fc4ef},'pendingMutations':_0x2b48f7[_0x14e1fd(0x3af)](_0x4fc4ef[_0x14e1fd(0x141)])};}function _0x26b88c(_0xbd356e,_0x3b5d44,_0x5bea28,_0x22e5fe,_0x212176){const _0x3e31aa=_0x387812;let _0x38705d=_0xbd356e[_0x3e31aa(0x3cf)]((_0x3ddea5,_0x14e908)=>{const _0x4ee905=_0x3e31aa;let _0x3ab401=_0x3ddea5[_0x3ddea5[_0x4ee905(0x141)]-0x1],{id:_0x214ea4}=_0x3ab401??{},{id:_0x8e2a0,type:_0x2d10b1}=_0x14e908,_0xac8c45=_0x14e908[_0x4ee905(0x247)];if(_0x214ea4&&_0x214ea4!==_0x8e2a0)throw Error(_0x4ee905(0x24b)+_0x214ea4+'\x20-\x20'+_0x8e2a0+'.');if(!_0x3ab401)return[{'id':_0x8e2a0,'type':_0x2d10b1,'params':{'unitId':_0xac8c45[_0x4ee905(0x397)],'textRanges':_0xac8c45[_0x4ee905(0x259)],'actions':_0xac8c45[_0x4ee905(0x34c)]}}];let _0x37cb8a=_0x3ab401[_0x4ee905(0x247)];return _0x2bc1a6(_0x37cb8a,_0xac8c45)?[..._0x3ddea5[_0x4ee905(0x3af)](0x0,-0x1),{..._0x3ab401,'id':_0x8e2a0,'type':_0x2d10b1,'params':{'unitId':_0xac8c45[_0x4ee905(0x397)],'textRanges':_0xac8c45[_0x4ee905(0x259)],'actions':_0x3ea0ad[_0x4ee905(0x2ed)][_0x4ee905(0x2db)](_0x37cb8a['actions'],_0xac8c45[_0x4ee905(0x34c)])}}]:[..._0x3ddea5,{'id':_0x8e2a0,'type':_0x2d10b1,'params':{'unitId':_0xac8c45[_0x4ee905(0x397)],'textRanges':_0xac8c45[_0x4ee905(0x259)],'actions':_0xac8c45[_0x4ee905(0x34c)]}}];},[]),_0x433a82=_0x212176['getCurrentUser'](),_0x3b18ca=(_0x433a82==null?void 0x0:_0x433a82[_0x3e31aa(0x349)])??'unknown',_0x32219e=(_0x433a82==null?void 0x0:_0x433a82[_0x3e31aa(0x2c9)])??_0x3e31aa(0x367);return{'changeset':{'unitID':_0x3b5d44,'type':(0x0,_0x5d8fae['mapDocumentTypeToUniverInstanceType'])(_0x5bea28[_0x3e31aa(0x280)](_0x3b5d44)),'baseRev':_0x22e5fe[_0x3e31aa(0x1ea)](_0x3b5d44),'revision':0x0,'userID':_0x3b18ca,'memberID':_0x32219e,'mutations':_0x38705d},'pendingMutations':_0xbd356e[_0x3e31aa(0x3af)](_0xbd356e[_0x3e31aa(0x141)])};}function _0x2bc1a6(_0x466e59,_0x4455a9){const _0x4f52e6=_0x387812;return!_0x39fbb9(_0x466e59)&&!_0x39fbb9(_0x4455a9)&&_0x5a66f3(_0x466e59[_0x4f52e6(0x34c)],_0x4455a9[_0x4f52e6(0x34c)]);}function _0x39fbb9(_0x57b309){const _0x27bad1=_0x387812;return _0x57b309[_0x27bad1(0x37a)]!==void 0x0;}function _0x5a66f3(_0x7be381,_0x5e7b6d){return _0x4b21ca(_0x7be381)&&_0x4b21ca(_0x5e7b6d)&&!_0x51976a(_0x7be381)&&!_0x51976a(_0x5e7b6d)&&!_0x4338e4(_0x7be381)&&!_0x4338e4(_0x5e7b6d);}function _0x4b21ca(_0x51fde4){const _0x2b388a=_0x387812;return _0x47d724(_0x51fde4)[_0x2b388a(0x344)](_0xfa1715=>_0x2c696c(_0xfa1715)&&_0xfa1715['et']===_0x2b388a(0xaa));}function _0x4338e4(_0x4a9bea){const _0xde65e5=_0x387812;return _0x47d724(_0x4a9bea)[_0xde65e5(0x344)](_0x65a9f1=>Array[_0xde65e5(0x3bf)](_0x65a9f1)||typeof _0x65a9f1==_0xde65e5(0x17f)||typeof _0x65a9f1==_0xde65e5(0x2bc));}function _0x51976a(_0x422647){const _0x1d8e56=_0x387812;return _0x47d724(_0x422647)['some'](_0x37c33b=>!_0x2c696c(_0x37c33b)||_0x37c33b['et']!==_0x1d8e56(0xaa)||!Array[_0x1d8e56(0x3bf)](_0x37c33b['e'])?!0x1:_0x37c33b['e'][_0x1d8e56(0x344)](_0xb60e8a=>!_0x2c696c(_0xb60e8a)||!_0x2c696c(_0xb60e8a[_0x1d8e56(0x2a8)])?!0x1:Object['prototype'][_0x1d8e56(0x2c0)][_0x1d8e56(0x3dd)](_0xb60e8a[_0x1d8e56(0x2a8)],_0x1d8e56(0x248))||Object[_0x1d8e56(0x1d8)][_0x1d8e56(0x2c0)]['call'](_0xb60e8a[_0x1d8e56(0x2a8)],_0x1d8e56(0x2ff))||Object[_0x1d8e56(0x1d8)][_0x1d8e56(0x2c0)][_0x1d8e56(0x3dd)](_0xb60e8a['body'],'blockRanges')));}function _0x47d724(_0x115f1f){const _0x267ea6=_0x387812;if(!Array[_0x267ea6(0x3bf)](_0x115f1f))return[];let _0x56eda1=_0x115f1f[_0x267ea6(0x34d)](_0x267ea6(0x2a8))?_0x115f1f:_0x115f1f[_0x267ea6(0x1ee)](_0x1e88a5=>Array['isArray'](_0x1e88a5)&&_0x1e88a5[_0x267ea6(0x34d)](_0x267ea6(0x2a8)));if(!Array[_0x267ea6(0x3bf)](_0x56eda1))return[];let _0x10d89b=_0x56eda1[_0x267ea6(0x161)](_0x267ea6(0x2a8));return _0x10d89b===-0x1?[]:_0x56eda1[_0x267ea6(0x3af)](_0x10d89b+0x1);}function _0x2c696c(_0x5a746d){const _0x41f01f=_0x387812;return typeof _0x5a746d==_0x41f01f(0x31d)&&!!_0x5a746d&&!Array[_0x41f01f(0x3bf)](_0x5a746d);}function _0x79682b(_0x1e345f,_0x3a801e){const _0x294d19=_0x387812;let _0x4c1cca=new _0x3a9bce['ReplaySubject'](0x1);return setTimeout(()=>_0x4c1cca[_0x294d19(0x316)](_0x3a801e),_0x1e345f),_0x4c1cca[_0x294d19(0x1fe)]()['pipe']((0x0,_0x3a9bce['take'])(0x1));}var _0x34696c,_0x13fbcf,_0x39ef6a;let _0x2a8e35=function(_0x4e8e7c){const _0x27c1ff=_0x387812;return _0x4e8e7c[_0x27c1ff(0x1c5)]='not_collab',_0x4e8e7c['SYNCED']='synced',_0x4e8e7c['PENDING']=_0x27c1ff(0x3b7),_0x4e8e7c[_0x27c1ff(0x2ab)]=_0x27c1ff(0xc9),_0x4e8e7c[_0x27c1ff(0x261)]=_0x27c1ff(0x3e7),_0x4e8e7c[_0x27c1ff(0x293)]=_0x27c1ff(0x337),_0x4e8e7c[_0x27c1ff(0x129)]=_0x27c1ff(0x375),_0x4e8e7c[_0x27c1ff(0x2ac)]=_0x27c1ff(0x3fb),_0x4e8e7c;}({}),_0x41e167=0x4e20,_0x3acf04=0x2bf20;var _0x523ae7=class{constructor(_0x19e641,_0x5eb5d1,_0x30d344,_0x4b3c13,_0x50cfd0,_0x33a07d,_0x31b4ea,_0x43ad4b,_0x1d8052){const _0x437e41=_0x387812;this[_0x437e41(0x2be)]=_0x19e641,this['type']=_0x5eb5d1,this['_handler']=_0x50cfd0,this[_0x437e41(0x10a)]=_0x33a07d,this[_0x437e41(0x13a)]=_0x31b4ea,this[_0x437e41(0x2d3)]=_0x43ad4b,this[_0x437e41(0x3fe)]=_0x1d8052,_0x309f50(this,_0x437e41(0xb5),null),_0x309f50(this,_0x437e41(0x35a),[]),this['_awaitingChangeset']=_0x30d344,this[_0x437e41(0x35a)]=_0x4b3c13;}[_0x387812(0x350)](_0x4ab7d3){const _0x105e54=_0x387812;let _0x2ca078=this[_0x105e54(0x2d3)][_0x105e54(0x1ea)](this[_0x105e54(0x2be)]);return _0x4ab7d3['revision']>_0x2ca078+0x1?(this[_0x105e54(0x2a9)][_0x105e54(0x2f8)]({'from':_0x2ca078,'to':_0x4ab7d3[_0x105e54(0x3da)]-0x1}),!0x0):!0x1;}[_0x387812(0x28c)](_0x42bbe4){const _0x35bbe2=_0x387812;this[_0x35bbe2(0x13a)][_0x35bbe2(0x2b9)](this['unitID'],_0x42bbe4);}[_0x387812(0xe9)](_0x55767d){const _0x1765c5=_0x387812;var _0x164056,_0x55a42e;(_0x164056=(_0x55a42e=this[_0x1765c5(0x2a9)])['onTransformSelections'])==null||_0x164056[_0x1765c5(0x3dd)](_0x55a42e,_0x55767d);}[_0x387812(0x3b1)](_0x4e6ed3){const _0x2e5c74=_0x387812;var _0x465b2a,_0x3db034;return(_0x465b2a=(_0x3db034=this[_0x2e5c74(0x2a9)])['onTransformIME'])==null?void 0x0:_0x465b2a['call'](_0x3db034,_0x4e6ed3);}['_transformStateCache'](_0x3c4d33){const _0xa67846=_0x387812;var _0x39000c,_0x4379b1;return(_0x39000c=(_0x4379b1=this[_0xa67846(0x2a9)])[_0xa67846(0x267)])==null?void 0x0:_0x39000c['call'](_0x4379b1,_0x3c4d33);}['_transformRemoteChangesetByIMECache'](_0x59fa06){const _0x4e5780=_0x387812;var _0x1ee655,_0x4d590f;return((_0x1ee655=(_0x4d590f=this[_0x4e5780(0x2a9)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1ee655[_0x4e5780(0x3dd)](_0x4d590f,_0x59fa06))??_0x59fa06;}['_transformRemoteChangesetByStateCache'](_0x1d3f25){const _0x3a27e6=_0x387812;var _0x3c1dd5,_0x34a03f;return((_0x3c1dd5=(_0x34a03f=this[_0x3a27e6(0x2a9)])[_0x3a27e6(0x33c)])==null?void 0x0:_0x3c1dd5[_0x3a27e6(0x3dd)](_0x34a03f,_0x1d3f25))??_0x1d3f25;}[_0x387812(0x160)](_0x41990f){const _0x170e5d=_0x387812;if(this[_0x170e5d(0x131)]===_0x3ea0ad[_0x170e5d(0x20e)][_0x170e5d(0x2e8)]){let {unitID:_0x469df8,mutations:_0x2a6566,memberID:_0x262ca8}=_0x41990f,_0x29e3e3=_0x2a6566[_0x170e5d(0x141)]>0x0?_0x2a6566[0x0][_0x170e5d(0x247)][_0x170e5d(0x259)]:[];if(Array[_0x170e5d(0x3bf)](_0x29e3e3)&&_0x29e3e3[_0x170e5d(0x141)]>0x0){var _0x56973d,_0x2d99bc;(_0x56973d=(_0x2d99bc=this[_0x170e5d(0x2a9)])[_0x170e5d(0x288)])==null||_0x56973d[_0x170e5d(0x3dd)](_0x2d99bc,{'unitID':_0x469df8,'memberID':_0x262ca8,'textRanges':_0x29e3e3});}}}[_0x387812(0x332)](){const _0x34da4c=_0x387812;var _0x1b763f;(_0x1b763f=this[_0x34da4c(0x3fe)])==null||_0x1b763f[_0x34da4c(0x18a)](this['unitID'],this[_0x34da4c(0x131)],this[_0x34da4c(0xb5)],this[_0x34da4c(0x35a)]);}['_getCurrentRevision'](){const _0x268466=_0x387812;return this[_0x268466(0x2d3)][_0x268466(0x1ea)](this[_0x268466(0x2be)]);}[_0x387812(0x2a6)](){const _0x313cd2=_0x387812;this['_revisionService']['incrementRevOfUnit'](this[_0x313cd2(0x2be)]);}[_0x387812(0x3ce)](_0x520580){const _0x42815b=_0x387812;let _0x2c8011=this[_0x42815b(0x24d)](_0x520580);_0x2c8011=this[_0x42815b(0x187)](_0x2c8011);let _0x181bd4=(0x0,_0x3ea0ad[_0x42815b(0x255)])(_0x2c8011[_0x42815b(0x3bd)],this[_0x42815b(0x10a)],{'fromCollab':!0x0});if(!_0x181bd4[_0x42815b(0xff)])throw _0x181bd4[_0x42815b(0xcf)]instanceof Error?_0x181bd4[_0x42815b(0xcf)]:Error(_0x181bd4[_0x42815b(0xcf)]??_0x42815b(0x2ba));this[_0x42815b(0x3b1)](_0x2c8011),this[_0x42815b(0x362)](_0x2c8011),this[_0x42815b(0x28c)](_0x520580),this[_0x42815b(0xe9)](_0x2c8011),this[_0x42815b(0x160)](_0x2c8011),this[_0x42815b(0x2a6)]();}};let _0x5d844f=class extends _0x523ae7{constructor(_0x4f363f,_0x2516af,_0x170f23,_0x5570a3,_0x3557f,_0x320ad8,_0x3d0546,_0x42f8d0,_0x19c46a,_0x6e9626){const _0x165b74=_0x387812;super(_0x4f363f,_0x2516af,null,[],_0x170f23,_0x3d0546,_0x320ad8,_0x5570a3,_0x6e9626),this['_injector']=_0x3557f,this[_0x165b74(0x1fc)]=_0x42f8d0,this['_transformService']=_0x19c46a,this[_0x165b74(0x39c)]=_0x6e9626,_0x309f50(this,_0x165b74(0x210),_0x165b74(0x3c4));}[_0x387812(0x387)](_0x4ca139){const _0x2303a5=_0x387812;let _0x4729e3=this[_0x2303a5(0x26d)][_0x2303a5(0xc4)](_0x5b6c26,this[_0x2303a5(0x2be)],this[_0x2303a5(0x131)],[_0x4ca139],this[_0x2303a5(0x2a9)]);return _0x4729e3[_0x2303a5(0x2f6)](),_0x4729e3['_updateLocalCache'](),_0x4729e3;}[_0x387812(0x201)](_0x46776c){const _0x46767f=_0x387812;if(this[_0x46767f(0x350)](_0x46776c))return this[_0x46767f(0x26d)][_0x46767f(0xc4)](_0x1c9a8a,this[_0x46767f(0x2be)],this['type'],null,[],null,[_0x46776c],this[_0x46767f(0x2a9)]);try{let _0x2969bf=this[_0x46767f(0xb8)]['transformMutationsWithChangeset'](_0x46776c,[_0x5d8fae[_0x46767f(0x1cc)]]);if((0x0,_0x5d8fae[_0x46767f(0x1d0)])(_0x2969bf)){let {c1Prime:_0x50f87f}=_0x2969bf;return this[_0x46767f(0x3ce)](_0x50f87f),this;}throw _0x2969bf[_0x46767f(0xcf)];}catch(_0x18da32){return this['_logService'][_0x46767f(0xcf)](_0x18da32),this[_0x46767f(0x157)](!0x1);}}['_onConflict'](_0x39b824){const _0x93458f=_0x387812;return this[_0x93458f(0x26d)][_0x93458f(0xc4)](_0x205b67,this[_0x93458f(0x2be)],this['type'],null,[],this[_0x93458f(0x2a9)],_0x39b824);}[_0x387812(0x398)](_0x39143f){const _0x1751e3=_0x387812;if(_0x39143f[_0x1751e3(0x3da)]<=this[_0x1751e3(0x36c)]())return this;throw Error(_0x1751e3(0x3e6));}[_0x387812(0x1ac)](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x387812(0x1d3)](){return this;}[_0x387812(0x283)](){const _0x8e84d8=_0x387812;return this['_injector'][_0x8e84d8(0xc4)](_0x119cc1,this[_0x8e84d8(0x2be)],this[_0x8e84d8(0x131)],null,[],this['_handler']);}[_0x387812(0x304)](){return this;}[_0x387812(0x331)](){const _0x5d3510=_0x387812;throw Error(_0x5d3510(0x1e6));}[_0x387812(0xfc)](){const _0x2c33cb=_0x387812;let _0x431712=this[_0x2c33cb(0x2d3)][_0x2c33cb(0x1ea)](this[_0x2c33cb(0x2be)]);return this['_handler'][_0x2c33cb(0x2f8)]({'from':_0x431712,'to':0x0}),this[_0x2c33cb(0x26d)][_0x2c33cb(0xc4)](_0x1c9a8a,this[_0x2c33cb(0x2be)],this[_0x2c33cb(0x131)],null,[],null,[],this[_0x2c33cb(0x2a9)]);}};_0x5d844f=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x5,_0x3ea0ad['IUndoRedoService']),_0x29ab6d(0x6,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x7,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x8,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0x9,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x5d844f);let _0x5b6c26=_0x34696c=class extends _0x523ae7{constructor(_0x16faae,_0x3b27b7,_0x586b47,_0x5ffe8f,_0x475575,_0x14b3a0,_0x3afe05,_0x28e962,_0x11dda5,_0x4537cf,_0x37c57,_0x6a3ecd,_0x3d3524,_0x9d2347){const _0x42ed47=_0x387812;super(_0x16faae,_0x3b27b7,null,_0x586b47,_0x5ffe8f,_0x11dda5,_0x3d3524,_0x14b3a0,_0x9d2347),this[_0x42ed47(0x26d)]=_0x475575,this[_0x42ed47(0x1af)]=_0x3afe05,this[_0x42ed47(0x1fc)]=_0x28e962,this[_0x42ed47(0x327)]=_0x4537cf,this[_0x42ed47(0xb8)]=_0x37c57,this[_0x42ed47(0xc8)]=_0x6a3ecd,_0x309f50(this,'status',_0x42ed47(0x3b7)),_0x309f50(this,_0x42ed47(0xe7),null),_0x309f50(this,'_sendingTimer',null);}[_0x387812(0x387)](_0x2ed534){const _0x3e2442=_0x387812;return this[_0x3e2442(0x35a)][_0x3e2442(0x223)](_0x2ed534),this[_0x3e2442(0x332)](),this;}['onRemoteChangeset'](_0x479b7a){const _0x4125c5=_0x387812;if(this[_0x4125c5(0x350)](_0x479b7a))return this[_0x4125c5(0x22b)](),this[_0x4125c5(0x26d)]['createInstance'](_0x1c9a8a,this[_0x4125c5(0x2be)],this[_0x4125c5(0x131)],null,this[_0x4125c5(0x35a)],null,[_0x479b7a],this[_0x4125c5(0x2a9)]);try{let _0x1070ef=this[_0x4125c5(0xb8)]['transformMutationsWithChangeset'](_0x479b7a,this['_pendingMutations']);if((0x0,_0x5d8fae['isTransformMutationsWithChangesetSuccess'])(_0x1070ef)){let {c1Prime:_0x1a24b1,m2Prime:_0xd13112}=_0x1070ef;this[_0x4125c5(0x3ce)](_0x1a24b1);let _0x3d0754=this[_0x4125c5(0x26d)]['createInstance'](_0x34696c,this['unitID'],this[_0x4125c5(0x131)],_0xd13112,this[_0x4125c5(0x2a9)]);this[_0x4125c5(0x22b)]();let _0x574d27=new Date()[_0x4125c5(0x221)](),_0x2458df=this['_scheduleCompleteTimestamp']?Math[_0x4125c5(0xb4)](this['_scheduleCompleteTimestamp']-_0x574d27,0x0):this[_0x4125c5(0x296)]();return _0x3d0754[_0x4125c5(0x2f6)](_0x2458df),_0x3d0754;}throw _0x1070ef[_0x4125c5(0xcf)];}catch(_0x5e2a3b){return this[_0x4125c5(0x1fc)]['error'](_0x5e2a3b),this['_onConflict'](!0x1);}}[_0x387812(0x398)](_0x471409){const _0x224e3a=_0x387812;if(_0x471409['revision']<=this[_0x224e3a(0x36c)]())return this;throw Error(_0x224e3a(0x20f));}[_0x387812(0x1ac)](){const _0x1fd386=_0x387812;throw Error(_0x1fd386(0x1fd));}[_0x387812(0x1d3)](){return this;}[_0x387812(0x283)](){const _0xccad26=_0x387812;return this[_0xccad26(0x22b)](),this['_injector'][_0xccad26(0xc4)](_0x119cc1,this['unitID'],this[_0xccad26(0x131)],null,this[_0xccad26(0x35a)],this[_0xccad26(0x2a9)]);}['toggleOnline'](){return this;}[_0x387812(0x2f6)](_0x1baa08){const _0x498944=_0x387812;let _0x2bc864=_0x1baa08??this['_getSendChangesetTimeout']();this[_0x498944(0xe7)]=new Date()['getTime']()+_0x2bc864,this[_0x498944(0x36f)]=setTimeout(()=>{const _0x104d43=_0x498944;this['_clearScheduledTask']();let _0x26a3dc=null;switch(this[_0x104d43(0x131)]){case _0x3ea0ad[_0x104d43(0x20e)]['UNIVER_SHEET']:_0x26a3dc=_0x4e9ac9(this['_pendingMutations'],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this['_revisionService'],this[_0x104d43(0x1af)]);break;case _0x3ea0ad['UniverInstanceType'][_0x104d43(0x2e8)]:_0x26a3dc=this[_0x104d43(0x35a)][_0x104d43(0x1e3)](_0x494713=>_0x494713['id']===_0x160e88[_0x104d43(0x2b3)]['id'])?_0x26b88c(this['_pendingMutations'],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this[_0x104d43(0x2d3)],this[_0x104d43(0x1af)]):_0x4e9ac9(this[_0x104d43(0x35a)],this['unitID'],this[_0x104d43(0xc8)],this[_0x104d43(0x2d3)],this[_0x104d43(0x1af)]);break;case _0x3ea0ad[_0x104d43(0x20e)][_0x104d43(0x105)]:_0x26a3dc=_0x58baf6(this[_0x104d43(0x35a)],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this[_0x104d43(0x2d3)],this['_userManagerService']);break;case _0x3ea0ad[_0x104d43(0x20e)][_0x104d43(0x389)]:_0x26a3dc=_0x4ac4d2(this[_0x104d43(0x35a)],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this['_revisionService'],this[_0x104d43(0x1af)]);break;case _0x3ea0ad[_0x104d43(0x20e)][_0x104d43(0x237)]:_0x26a3dc=_0x4e9ac9(this[_0x104d43(0x35a)],this['unitID'],this['_univerInstanceService'],this[_0x104d43(0x2d3)],this[_0x104d43(0x1af)]);break;case _0x3ea0ad[_0x104d43(0x20e)][_0x104d43(0x382)]:_0x26a3dc=_0x4e9ac9(this[_0x104d43(0x35a)],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this['_revisionService'],this['_userManagerService']);break;default:throw Error(_0x104d43(0x3a8)+this[_0x104d43(0x131)]+_0x104d43(0x3fc));}let {changeset:_0x127eff,pendingMutations:_0x5357fb}=_0x26a3dc;this[_0x104d43(0x2a9)][_0x104d43(0x140)](_0x127eff);let _0x53e62a=_0x5357fb[_0x104d43(0x141)]?this[_0x104d43(0x26d)][_0x104d43(0xc4)](_0x4ebec0,this[_0x104d43(0x2be)],this['type'],_0x127eff,_0x5357fb,this['_handler'],void 0x0):this[_0x104d43(0x26d)][_0x104d43(0xc4)](_0x70527d,this['unitID'],this[_0x104d43(0x131)],_0x127eff,this[_0x104d43(0x2a9)]);_0x53e62a[_0x104d43(0x332)](),this['_handler'][_0x104d43(0x204)](this,_0x53e62a);},_0x2bc864);}[_0x387812(0x296)](){const _0x184904=_0x387812;let _0x2ede1f=this[_0x184904(0x327)]['getConfig'](_0xeb659);return(_0x2ede1f==null?void 0x0:_0x2ede1f[_0x184904(0x1c8)])??0x7d0;}[_0x387812(0x331)](){const _0x50ea25=_0x387812;throw Error(_0x50ea25(0x19e));}[_0x387812(0x22b)](){const _0xe52e1a=_0x387812;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0xe52e1a(0x36f)]=null);}[_0x387812(0x157)](_0x29b450){const _0x292b99=_0x387812;return this[_0x292b99(0x22b)](),this['_injector']['createInstance'](_0x205b67,this[_0x292b99(0x2be)],this[_0x292b99(0x131)],null,this[_0x292b99(0x35a)],this[_0x292b99(0x2a9)],_0x29b450);}};_0x5b6c26=_0x34696c=_0x48064b([_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x20c)])),_0x29ab6d(0x7,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0xa,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0xc,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0xd,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0x5b6c26);let _0x70527d=_0x13fbcf=class extends _0x523ae7{constructor(_0x48220a,_0x232a73,_0x1ef5da,_0x263c65,_0x1c35ff,_0x360804,_0xe49e23,_0x37a441,_0x5bd73b,_0x3ed242,_0x40997b){const _0x424baa=_0x387812;super(_0x48220a,_0x232a73,_0x1ef5da,[],_0x263c65,_0xe49e23,_0x3ed242,_0x360804,_0x40997b),this[_0x424baa(0x26d)]=_0x1c35ff,this[_0x424baa(0x1fc)]=_0x37a441,this[_0x424baa(0xb8)]=_0x5bd73b,_0x309f50(this,_0x424baa(0x210),_0x424baa(0xc9)),_0x309f50(this,'_resendTimeout',0x0),_0x309f50(this,_0x424baa(0x212),0x0),_0x309f50(this,_0x424baa(0x312),void 0x0),_0x309f50(this,_0x424baa(0x3ae),void 0x0);}[_0x387812(0x387)](_0x46cc21){const _0x216187=_0x387812;this[_0x216187(0x22b)]();let _0x29c000=this[_0x216187(0x26d)]['createInstance'](_0x4ebec0,this[_0x216187(0x2be)],this['type'],this[_0x216187(0xb5)],[_0x46cc21],this[_0x216187(0x2a9)],this[_0x216187(0x312)]);return _0x29c000['_updateLocalCache'](),_0x29c000;}[_0x387812(0x201)](_0x12075c){const _0x197145=_0x387812;if(this[_0x197145(0x350)](_0x12075c))return this[_0x197145(0x22b)](),this['_injector'][_0x197145(0xc4)](_0x1c9a8a,this[_0x197145(0x2be)],this[_0x197145(0x131)],this[_0x197145(0xb5)],[],null,[_0x12075c],this[_0x197145(0x2a9)]);try{let _0x58b217=this[_0x197145(0xb8)]['transformChangesets']([_0x12075c],[this[_0x197145(0xb5)]],!0x1);if((0x0,_0x5d8fae['isTransformChangesetsSuccess'])(_0x58b217)){let {c1Prime:_0x54b9ab,c2Prime:_0x1aa3f8}=_0x58b217;this[_0x197145(0x3ce)](_0x54b9ab[0x0]),_0x1aa3f8[0x0]['baseRev']=this[_0x197145(0x36c)](),this[_0x197145(0x22b)]();let _0x5b8da3=this[_0x197145(0x26d)][_0x197145(0xc4)](_0x13fbcf,this[_0x197145(0x2be)],this[_0x197145(0x131)],_0x1aa3f8[0x0],this[_0x197145(0x2a9)]);return _0x5b8da3[_0x197145(0x332)](),_0x5b8da3;}throw _0x58b217[_0x197145(0xcf)];}catch(_0x5ee986){return this['_logService'][_0x197145(0xcf)](_0x5ee986),this[_0x197145(0x157)](!0x1);}}[_0x387812(0x398)](_0x16d048){const _0x133bdb=_0x387812;this[_0x133bdb(0x22b)]();let _0x4852a4=this[_0x133bdb(0x2d3)]['getCurrentRevOfUnit'](this['unitID']);if(_0x16d048[_0x133bdb(0x3da)]<=_0x4852a4)return this;if(this[_0x133bdb(0x350)](_0x16d048))return this[_0x133bdb(0x26d)][_0x133bdb(0xc4)](_0x1c9a8a,this[_0x133bdb(0x2be)],this['type'],this['_awaitingChangeset'],[],_0x16d048[_0x133bdb(0x3da)],[],this[_0x133bdb(0x2a9)]);this[_0x133bdb(0x2a6)]();let _0x3e981e=this['_injector'][_0x133bdb(0xc4)](_0x5d844f,this[_0x133bdb(0x2be)],this[_0x133bdb(0x131)],this[_0x133bdb(0x2a9)]);return _0x3e981e[_0x133bdb(0x332)](),_0x3e981e;}['onRemoteRej'](_0x342f52){const _0x5b33b1=_0x387812;return this['_onConflict'](!!(_0x342f52!=null&&_0x342f52[_0x5b33b1(0x118)]));}['onRemoteRetry'](_0x1bdc04){const _0x31b02d=_0x387812;return this['_maxTotalRetryTimeout']>_0x3acf04?this[_0x31b02d(0x283)]():(this['_resendTimer']=_0x79682b(this[_0x31b02d(0x11b)],{'timeout':this[_0x31b02d(0x11b)],'reqId':_0x1bdc04[_0x31b02d(0x1ce)]}),this['_sender']=this['_resendTimer'][_0x31b02d(0x1a6)](({reqId:_0x18d80a,timeout:_0x362cf6})=>{const _0x377d0d=_0x31b02d;this[_0x377d0d(0xef)](_0x18d80a,_0x362cf6);}),this);}[_0x387812(0x283)](){const _0x1769f6=_0x387812;return this[_0x1769f6(0x22b)](),this[_0x1769f6(0x26d)]['createInstance'](_0x119cc1,this['unitID'],this[_0x1769f6(0x131)],this[_0x1769f6(0xb5)],[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x4564a6=_0x387812;this[_0x4564a6(0x2a9)][_0x4564a6(0x140)](this['_awaitingChangeset']);}[_0x387812(0x157)](_0x34aafa){const _0x1022e9=_0x387812;return this[_0x1022e9(0x22b)](),this['_injector'][_0x1022e9(0xc4)](_0x205b67,this['unitID'],this['type'],this[_0x1022e9(0xb5)],[],this[_0x1022e9(0x2a9)],_0x34aafa);}[_0x387812(0xef)](_0x38b22c,_0x345e1a){const _0x2c85aa=_0x387812;var _0x50acda;_0x38b22c===((_0x50acda=this[_0x2c85aa(0xb5)])==null?void 0x0:_0x50acda['reqId'])&&(this[_0x2c85aa(0x331)](),this[_0x2c85aa(0x11b)]=_0x345e1a===0x0?0x3e8:Math[_0x2c85aa(0x33e)](_0x345e1a*0x2,_0x41e167),this[_0x2c85aa(0x212)]+=this[_0x2c85aa(0x11b)]);}[_0x387812(0x22b)](){const _0x16e955=_0x387812;var _0x10b5c8;(_0x10b5c8=this[_0x16e955(0x3ae)])==null||_0x10b5c8[_0x16e955(0x23d)](),this['_resendTimeout']=0x0,this[_0x16e955(0x212)]=0x0;}};_0x70527d=_0x13fbcf=_0x48064b([_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad['Injector'])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x6,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x7,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x8,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0xa,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x70527d);let _0x4ebec0=_0x39ef6a=class extends _0x523ae7{constructor(_0x22465e,_0x5e2750,_0x4395e2,_0x2a545c,_0x53b4f5,_0x5ed91d,_0x10767f,_0x231b19,_0x52a159,_0x466a1f,_0x4c27ec,_0x10f4cc,_0x27b030){const _0x5d1fee=_0x387812;super(_0x22465e,_0x5e2750,_0x4395e2,_0x2a545c,_0x53b4f5,_0x52a159,_0x10f4cc,_0x231b19,_0x27b030),this['_injector']=_0x10767f,this['_logService']=_0x466a1f,this[_0x5d1fee(0xb8)]=_0x4c27ec,this[_0x5d1fee(0x39c)]=_0x27b030,_0x309f50(this,_0x5d1fee(0x210),_0x5d1fee(0x3e7)),_0x309f50(this,_0x5d1fee(0x11b),0x0),_0x309f50(this,'_maxTotalRetryTimeout',0x0),_0x309f50(this,_0x5d1fee(0x312),void 0x0),_0x309f50(this,_0x5d1fee(0x3ae),void 0x0),_0x5ed91d&&(this[_0x5d1fee(0x312)]=_0x5ed91d,this['_sender']=this[_0x5d1fee(0x312)][_0x5d1fee(0x1a6)](({reqId:_0x3aac36,timeout:_0x4cceaa})=>{const _0x2c9bb9=_0x5d1fee;this[_0x2c9bb9(0xef)](_0x3aac36,_0x4cceaa);}));}[_0x387812(0x387)](_0x2ac673){const _0x2becc8=_0x387812;return this[_0x2becc8(0x35a)][_0x2becc8(0x223)](_0x2ac673),this;}[_0x387812(0x201)](_0x1039b6){const _0x315cdf=_0x387812;if(this[_0x315cdf(0x350)](_0x1039b6))return this[_0x315cdf(0x22b)](),this['_injector'][_0x315cdf(0xc4)](_0x1c9a8a,this[_0x315cdf(0x2be)],this['type'],this[_0x315cdf(0xb5)],this[_0x315cdf(0x35a)],null,[_0x1039b6],this[_0x315cdf(0x2a9)]);try{let _0x3db7c0=this[_0x315cdf(0xb8)][_0x315cdf(0x31a)]([_0x1039b6],[this[_0x315cdf(0xb5)]],!0x1);if((0x0,_0x5d8fae['isTransformChangesetsSuccess'])(_0x3db7c0)){let {c1Prime:_0x4c0e9b,c2Prime:_0x4de5d5}=_0x3db7c0,_0x2d31d3=this['_transformService'][_0x315cdf(0xa9)](_0x4c0e9b[0x0],this[_0x315cdf(0x35a)]);if((0x0,_0x5d8fae['isTransformMutationsWithChangesetSuccess'])(_0x2d31d3)){let {c1Prime:_0x2816b1,m2Prime:_0xbd82fb}=_0x2d31d3;return this[_0x315cdf(0x3ce)](_0x2816b1),_0x4de5d5[0x0][_0x315cdf(0x250)]=this[_0x315cdf(0x36c)](),this['_clearScheduledTask'](),this[_0x315cdf(0x26d)][_0x315cdf(0xc4)](_0x39ef6a,this[_0x315cdf(0x2be)],this[_0x315cdf(0x131)],_0x4de5d5[0x0],_0xbd82fb,this[_0x315cdf(0x2a9)],void 0x0);}throw _0x2d31d3['error'];}throw _0x3db7c0[_0x315cdf(0xcf)];}catch(_0x2e0b2){return this[_0x315cdf(0x1fc)][_0x315cdf(0xcf)](_0x2e0b2),this[_0x315cdf(0x157)](!0x1);}}[_0x387812(0x398)](_0x4859d3){const _0x1f529b=_0x387812;this[_0x1f529b(0x22b)]();let _0x3c88d0=this['_getCurrentRevision']();if(_0x4859d3[_0x1f529b(0x3da)]<=_0x3c88d0)return this;if(this[_0x1f529b(0x350)](_0x4859d3))return this[_0x1f529b(0x26d)][_0x1f529b(0xc4)](_0x1c9a8a,this[_0x1f529b(0x2be)],this['type'],this[_0x1f529b(0xb5)],this['_pendingMutations'],_0x4859d3[_0x1f529b(0x3da)],[],this[_0x1f529b(0x2a9)]);this[_0x1f529b(0x2a6)]();let _0x40983a=this['_injector'][_0x1f529b(0xc4)](_0x5b6c26,this[_0x1f529b(0x2be)],this[_0x1f529b(0x131)],this[_0x1f529b(0x35a)],this[_0x1f529b(0x2a9)]);return _0x40983a[_0x1f529b(0x2f6)](),_0x40983a[_0x1f529b(0x332)](),_0x40983a;}[_0x387812(0x1ac)](_0x1d781f){const _0x2a1578=_0x387812;return this['_onConflict'](!!(_0x1d781f!=null&&_0x1d781f[_0x2a1578(0x118)]));}['onRemoteRetry'](_0x358ddf){const _0x2e7e98=_0x387812;return this['_maxTotalRetryTimeout']>_0x3acf04?this[_0x2e7e98(0x283)]():(this['_resendTimer']=_0x79682b(this[_0x2e7e98(0x11b)],{'timeout':this[_0x2e7e98(0x11b)],'reqId':_0x358ddf[_0x2e7e98(0x1ce)]}),this[_0x2e7e98(0x3ae)]=this['_resendTimer'][_0x2e7e98(0x1a6)](({reqId:_0x42da15,timeout:_0x20a062})=>{const _0x6e431b=_0x2e7e98;this[_0x6e431b(0xef)](_0x42da15,_0x20a062);}),this);}[_0x387812(0x283)](){const _0x70362e=_0x387812;return this[_0x70362e(0x22b)](),this[_0x70362e(0x26d)][_0x70362e(0xc4)](_0x119cc1,this[_0x70362e(0x2be)],this[_0x70362e(0x131)],this[_0x70362e(0xb5)],this[_0x70362e(0x35a)],this['_handler']);}[_0x387812(0x304)](){return this;}[_0x387812(0x331)](){const _0x5a5d44=_0x387812;this['_handler'][_0x5a5d44(0x140)](this[_0x5a5d44(0xb5)]);}['_onConflict'](_0x4f2624){const _0x37c1ad=_0x387812;return this[_0x37c1ad(0x22b)](),this[_0x37c1ad(0x26d)][_0x37c1ad(0xc4)](_0x205b67,this['unitID'],this['type'],null,this[_0x37c1ad(0x35a)],this[_0x37c1ad(0x2a9)],_0x4f2624);}['_resendWithTimeout'](_0x450261,_0x480159){const _0x4b6324=_0x387812;var _0x120c3a;_0x450261===((_0x120c3a=this['_awaitingChangeset'])==null?void 0x0:_0x120c3a[_0x4b6324(0x1ce)])&&(this[_0x4b6324(0x331)](),this[_0x4b6324(0x11b)]=_0x480159===0x0?0x3e8:Math[_0x4b6324(0x33e)](_0x480159*0x2,_0x41e167),this[_0x4b6324(0x212)]+=this[_0x4b6324(0x11b)]);}[_0x387812(0x22b)](){const _0x472667=_0x387812;var _0x15a215;(_0x15a215=this[_0x472667(0x3ae)])==null||_0x15a215[_0x472667(0x23d)](),this[_0x472667(0x11b)]=0x0,this[_0x472667(0x212)]=0x0;}};_0x4ebec0=_0x39ef6a=_0x48064b([_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['Injector'])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x9,_0x3ea0ad['ILogService']),_0x29ab6d(0xa,_0x5d8fae['ITransformService']),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0x4ebec0);let _0x205b67=class extends _0x523ae7{constructor(_0x4574c8,_0x3c9fca,_0x5db450,_0x377743,_0x93d004,_0x40d8be=!0x1,_0x19de48,_0x88112e,_0x23e38b,_0x556fa8,_0x270b88,_0x562c4e,_0x92fd1c){const _0x145485=_0x387812;super(_0x4574c8,_0x3c9fca,_0x5db450,_0x377743,_0x93d004,_0x88112e,_0x23e38b,_0x556fa8,_0x92fd1c),this[_0x145485(0xad)]=_0x40d8be,this[_0x145485(0x14b)]=_0x19de48,this['_localeService']=_0x270b88,this[_0x145485(0x378)]=_0x562c4e,this[_0x145485(0x39c)]=_0x92fd1c,_0x309f50(this,_0x145485(0x210),'conflict'),this[_0x145485(0x1be)](),this[_0x145485(0x338)](),this[_0x145485(0x13f)]();}[_0x387812(0x387)](){return this;}[_0x387812(0x201)](){return this;}[_0x387812(0x398)](){return this;}['onRemoteRej'](){return this;}[_0x387812(0x1d3)](){return this;}['toggleOffline'](){return this;}[_0x387812(0x304)](){return this;}[_0x387812(0x331)](){const _0x1a7695=_0x387812;throw Error(_0x1a7695(0x380));}[_0x387812(0x338)](){const _0x1be9a9=_0x387812;var _0x3c1921,_0x4ef68e,_0x151ed1;(_0x3c1921=this[_0x1be9a9(0x3fe)])==null||(_0x4ef68e=_0x3c1921['backupOfflineData'])==null||(_0x4ef68e=_0x4ef68e[_0x1be9a9(0x3dd)](_0x3c1921,this['unitID'],_0x1be9a9(0x375)))==null||_0x4ef68e[_0x1be9a9(0x18e)](()=>void 0x0),(_0x151ed1=this[_0x1be9a9(0x3fe)])==null||_0x151ed1[_0x1be9a9(0x18a)](this[_0x1be9a9(0x2be)],this[_0x1be9a9(0x131)],null,[]);}[_0x387812(0x1be)](){const _0x2f3658=_0x387812;this[_0x2f3658(0xad)]?this['_collaborationUIEventService'][_0x2f3658(0x11a)]({'id':_0x2f3658(0x34f)}):this['_collaborationUIEventService'][_0x2f3658(0x11a)]({'id':_0x2f3658(0x129)});}[_0x387812(0x13f)](){const _0x14fa8e=_0x387812;this[_0x14fa8e(0x14b)][_0x14fa8e(0xcc)](new _0x1dfeb2[(_0x14fa8e(0x276))](this[_0x14fa8e(0x2be)])['id'],!0x1);}};_0x205b67=_0x48064b([_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x2d2)])),_0x29ab6d(0x7,_0x3ea0ad['ICommandService']),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0x9,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0xa,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0xb,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x205b67);let _0x119cc1=class extends _0x523ae7{constructor(_0x34d280,_0x2b1774,_0x35f6cb,_0xf991e6,_0xe46ba4,_0x306465,_0xdd039f,_0x27dad5,_0x2a0a20,_0x5c1f30){const _0x15de74=_0x387812;super(_0x34d280,_0x2b1774,_0x35f6cb,_0xf991e6,_0xe46ba4,_0x27dad5,_0x2a0a20,_0xdd039f,_0x5c1f30),this[_0x15de74(0x26d)]=_0x306465,_0x309f50(this,_0x15de74(0x210),_0x15de74(0x3fb));}[_0x387812(0x387)](_0x3ae122){const _0x21bd5e=_0x387812;return this[_0x21bd5e(0x35a)][_0x21bd5e(0x223)](_0x3ae122),this[_0x21bd5e(0x332)](),this;}[_0x387812(0x201)](_0x5424f1){const _0x130c70=_0x387812;throw Error(_0x130c70(0x13e));}[_0x387812(0x398)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x387812(0x1ac)](){const _0x4040ba=_0x387812;throw Error(_0x4040ba(0x333));}[_0x387812(0x1d3)](){return this;}[_0x387812(0x283)](){return this;}['toggleOnline'](){const _0xae747=_0x387812;let {_injector:_0x58c790,_pendingMutations:_0x1a426d,_awaitingChangeset:_0x50de50,unitID:_0x1c11b7,_handler:_0x2e6b5f,type:_0x2e3c4}=this,_0x5f035c=_0x3aa677(_0x58c790,_0x1c11b7,_0x2e3c4,_0x50de50,_0x1a426d,_0x2e6b5f);return _0x5f035c instanceof _0x5b6c26?_0x5f035c[_0xae747(0x2f6)]():(_0x5f035c instanceof _0x4ebec0||_0x5f035c instanceof _0x70527d)&&_0x5f035c[_0xae747(0x331)](),_0x5f035c;}['resend'](){const _0x5b48c7=_0x387812;throw Error(_0x5b48c7(0x3eb));}};_0x119cc1=_0x48064b([_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,_0x3ea0ad['ICommandService']),_0x29ab6d(0x8,_0x3ea0ad['IUndoRedoService']),_0x29ab6d(0x9,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x119cc1);let _0x1c9a8a=class extends _0x523ae7{constructor(_0x18570b,_0x509155,_0x5572f0,_0x2d4125,_0x3b90bd,_0x3cf701,_0x16f557,_0x17f801,_0x2101d8,_0x3412f4,_0x3d71bb,_0x3624b2,_0x34bfbc,_0x4a4c17){const _0x3cf2c7=_0x387812;super(_0x18570b,_0x509155,_0x5572f0,_0x2d4125,_0x16f557,_0x3d71bb,_0x3624b2,_0x2101d8,_0x4a4c17),this[_0x3cf2c7(0x16c)]=_0x3b90bd,this[_0x3cf2c7(0x139)]=_0x3cf701,this[_0x3cf2c7(0x26d)]=_0x17f801,this[_0x3cf2c7(0x1fc)]=_0x3412f4,this['_transformService']=_0x34bfbc,this['localCacheService']=_0x4a4c17,_0x309f50(this,'status',_0x3cf2c7(0x337));}[_0x387812(0x122)](_0x12043e){const _0x558f7b=_0x387812;try{if(this[_0x558f7b(0x203)](_0x12043e)[_0x558f7b(0x2e6)])throw Error(_0x558f7b(0x16e));if(this[_0x558f7b(0x203)]([...this['_queuedRemoteChangesets']][_0x558f7b(0x179)]((_0x1d0671,_0x297b17)=>_0x1d0671[_0x558f7b(0x3da)]-_0x297b17['revision']))[_0x558f7b(0x2e6)])return this[_0x558f7b(0x139)]=[],this['_updateLocalCache'](),this[_0x558f7b(0x2a9)][_0x558f7b(0x2f8)]({'from':this[_0x558f7b(0x36c)](),'to':0x0}),this;let _0x5ea393=this['_awaitingChangeset'],_0xd273d9=this[_0x558f7b(0x35a)],_0x4a0c48;if(_0x5ea393&&_0xd273d9['length']!==0x0)_0x4a0c48=this[_0x558f7b(0x26d)][_0x558f7b(0xc4)](_0x4ebec0,this[_0x558f7b(0x2be)],this[_0x558f7b(0x131)],_0x5ea393,_0xd273d9,this[_0x558f7b(0x2a9)],void 0x0);else{if(_0x5ea393&&_0xd273d9[_0x558f7b(0x141)]===0x0)_0x5ea393[_0x558f7b(0x250)]=this['_getCurrentRevision'](),_0x4a0c48=this[_0x558f7b(0x26d)][_0x558f7b(0xc4)](_0x70527d,this['unitID'],this[_0x558f7b(0x131)],_0x5ea393,this[_0x558f7b(0x2a9)]);else{if(_0xd273d9[_0x558f7b(0x141)]!==0x0){let _0x37d7c7=this[_0x558f7b(0x26d)]['createInstance'](_0x5b6c26,this[_0x558f7b(0x2be)],this['type'],_0xd273d9,this[_0x558f7b(0x2a9)]);_0x37d7c7[_0x558f7b(0x2f6)](),_0x4a0c48=_0x37d7c7;}else _0x4a0c48=this[_0x558f7b(0x26d)][_0x558f7b(0xc4)](_0x5d844f,this['unitID'],this[_0x558f7b(0x131)],this[_0x558f7b(0x2a9)]);}}return _0x4a0c48['_updateLocalCache'](),_0x4a0c48;}catch(_0x437a7f){return this['_logService'][_0x558f7b(0xcf)](_0x558f7b(0x11f),'failed\x20to\x20apply\x20missed\x20changesets!',_0x437a7f),this[_0x558f7b(0x26d)][_0x558f7b(0xc4)](_0x205b67,this[_0x558f7b(0x2be)],this['type'],this[_0x558f7b(0xb5)],this['_pendingMutations'],this['_handler'],!0x1);}}[_0x387812(0x203)](_0x87cd21){const _0x4f5ed7=_0x387812;this[_0x4f5ed7(0x300)]();for(let _0x24bb27=0x0;_0x24bb27<_0x87cd21[_0x4f5ed7(0x141)];_0x24bb27++){let _0x517164=_0x87cd21[_0x24bb27],_0x2feced=this[_0x4f5ed7(0x36c)]();if(!(_0x517164[_0x4f5ed7(0x3da)]<=_0x2feced)){if(_0x517164[_0x4f5ed7(0x3da)]>_0x2feced+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x517164)){this[_0x4f5ed7(0x3a0)]();continue;}this[_0x4f5ed7(0x348)](_0x517164),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x387812(0x348)](_0x7e433d){const _0x445603=_0x387812;let _0x486d85=_0x7e433d,_0x54ecbc=this['_awaitingChangeset'];if(_0x54ecbc){let _0x373774=this[_0x445603(0xb8)]['transformChangesets']([_0x7e433d],[_0x54ecbc],!0x1);if(!(0x0,_0x5d8fae['isTransformChangesetsSuccess'])(_0x373774))throw _0x373774['error'];_0x486d85=_0x373774[_0x445603(0x2e3)][0x0],_0x54ecbc=_0x373774[_0x445603(0x1f4)][0x0];}let _0x35c39d=this[_0x445603(0x35a)];if(_0x35c39d['length']){let _0x52faf8=this[_0x445603(0xb8)][_0x445603(0xa9)](_0x486d85,_0x35c39d);if(!(0x0,_0x5d8fae[_0x445603(0x1d0)])(_0x52faf8))throw _0x52faf8[_0x445603(0xcf)];_0x486d85=_0x52faf8[_0x445603(0x2e3)],_0x35c39d=_0x52faf8[_0x445603(0x22c)];}this[_0x445603(0x3ce)](_0x486d85),_0x54ecbc&&(_0x54ecbc[_0x445603(0x250)]=this[_0x445603(0x36c)]()),this['_awaitingChangeset']=_0x54ecbc,this[_0x445603(0x35a)]=_0x35c39d;}[_0x387812(0x300)](){const _0x319b95=_0x387812;if(!this[_0x319b95(0xb5)]||this[_0x319b95(0x16c)]==null)return;let _0x49077c=this['_getCurrentRevision']();if(this[_0x319b95(0x16c)]<=_0x49077c)throw Error(_0x319b95(0xba)+this[_0x319b95(0x16c)]+'.');this[_0x319b95(0x16c)]===_0x49077c+0x1&&this[_0x319b95(0x3a0)]();}['_acknowledgeAwaiting'](){const _0x3727ba=_0x387812;this['_incrementRevisionNumber'](),this[_0x3727ba(0xb5)]=null,this['_acknowledgedAwaitingRevision']=null;}[_0x387812(0x29d)](_0xddc761){const _0x1af4f0=_0x387812;let _0x4d5391=this[_0x1af4f0(0xb5)];return!_0x4d5391||!_0x4d5391['sid']||_0x4d5391['reqId']===null||_0x4d5391[_0x1af4f0(0x1ce)]===void 0x0?!0x1:_0xddc761[_0x1af4f0(0x2be)]===_0x4d5391['unitID']&&_0xddc761[_0x1af4f0(0x2cd)]===_0x4d5391['sid']&&_0xddc761[_0x1af4f0(0x1ce)]===_0x4d5391[_0x1af4f0(0x1ce)];}['resend'](){const _0x1ce6f8=_0x387812;throw Error(_0x1ce6f8(0x284));}[_0x387812(0x387)](_0x231194){const _0x4a4ac6=_0x387812;return this['_pendingMutations'][_0x4a4ac6(0x223)](_0x231194),this;}[_0x387812(0x201)](_0x3fc0ca){const _0x1af243=_0x387812;return this[_0x1af243(0x139)]['push'](_0x3fc0ca),this;}['onRemoteAck'](_0x324a21){const _0x258ec5=_0x387812;if(this[_0x258ec5(0xb5)]){let _0x4519b0=this['_getCurrentRevision']();return _0x324a21[_0x258ec5(0x3da)]<=_0x4519b0||(_0x4519b0+0x1===_0x324a21[_0x258ec5(0x3da)]?(this[_0x258ec5(0x2a6)](),this[_0x258ec5(0xb5)]=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0x324a21[_0x258ec5(0x3da)]),this;}if(_0x324a21['revision']<=this[_0x258ec5(0x36c)]())return this;throw Error(_0x258ec5(0x2f7));}['onRemoteRej'](_0x1a419a){const _0x30518e=_0x387812;return this['_onConflict'](!!(_0x1a419a!=null&&_0x1a419a[_0x30518e(0x118)]));}[_0x387812(0x1d3)](){return this;}[_0x387812(0x283)](){const _0x1253db=_0x387812;return this[_0x1253db(0x26d)][_0x1253db(0xc4)](_0x119cc1,this[_0x1253db(0x2be)],this[_0x1253db(0x131)],this[_0x1253db(0xb5)],this[_0x1253db(0x35a)],this['_handler']);}[_0x387812(0x304)](){return this;}['_onConflict'](_0x574520){const _0x569694=_0x387812;return this[_0x569694(0x26d)]['createInstance'](_0x205b67,this[_0x569694(0x2be)],this[_0x569694(0x131)],this[_0x569694(0xb5)],this[_0x569694(0x35a)],this[_0x569694(0x2a9)],_0x574520);}};_0x1c9a8a=_0x48064b([_0x29ab6d(0x7,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x8,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0xc,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x1c9a8a);function _0x3aa677(_0x32c829,_0x5d0130,_0x14b58c,_0x25ea5b,_0x20118e,_0x4ee491){const _0xfad08a=_0x387812;return _0x25ea5b&&_0x20118e[_0xfad08a(0x141)]?_0x32c829['createInstance'](_0x4ebec0,_0x5d0130,_0x14b58c,_0x25ea5b,_0x20118e,_0x4ee491,void 0x0):_0x25ea5b?_0x32c829[_0xfad08a(0xc4)](_0x70527d,_0x5d0130,_0x14b58c,_0x25ea5b,_0x4ee491):_0x20118e[_0xfad08a(0x141)]?_0x32c829[_0xfad08a(0xc4)](_0x5b6c26,_0x5d0130,_0x14b58c,_0x20118e,_0x4ee491):_0x32c829['createInstance'](_0x5d844f,_0x5d0130,_0x14b58c,_0x4ee491);}let _0xf00944=class extends _0x3ea0ad[_0x387812(0x150)]{get[_0x387812(0x12b)](){return this['_state'];}constructor(_0x3ed55d,_0x54bcf2,_0x21bef2,_0x507e5e,_0x1b642b,_0x6ead6,_0x483ac5,_0x3c7b77,_0x53a2e8,_0x25e711,_0x1f8bb5,_0x582543,_0x51ef93,_0x234566){const _0x2ec04f=_0x387812;super(),this[_0x2ec04f(0x2be)]=_0x3ed55d,this[_0x2ec04f(0x309)]=_0x54bcf2,this[_0x2ec04f(0x2ce)]=_0x21bef2,this[_0x2ec04f(0x26d)]=_0x507e5e,this[_0x2ec04f(0x291)]=_0x1b642b,this[_0x2ec04f(0x38a)]=_0x6ead6,this['_revisionService']=_0x483ac5,this['_eventService']=_0x3c7b77,this[_0x2ec04f(0xc8)]=_0x53a2e8,this[_0x2ec04f(0x1fc)]=_0x25e711,this[_0x2ec04f(0x10a)]=_0x1f8bb5,this['_permissionService']=_0x582543,this[_0x2ec04f(0x339)]=_0x51ef93,this['_localCacheService']=_0x234566,_0x309f50(this,_0x2ec04f(0xdb),new _0x3a9bce[(_0x2ec04f(0x24a))](null)),_0x309f50(this,'state$',this['_state$'][_0x2ec04f(0x1fe)]()),_0x309f50(this,_0x2ec04f(0xf1),void 0x0),_0x309f50(this,_0x2ec04f(0x390),!0x1),_0x309f50(this,'_changesetSessionId',''),_0x309f50(this,_0x2ec04f(0xce),0x0),_0x309f50(this,'status$',this[_0x2ec04f(0xcd)][_0x2ec04f(0x298)]((0x0,_0x3a9bce['map'])(_0x58c24a=>_0x58c24a?_0x58c24a[_0x2ec04f(0x210)]:'offline'),(0x0,_0x3a9bce[_0x2ec04f(0x239)])({'bufferSize':0x1,'refCount':!0x0}))),_0x309f50(this,'_transitionLocked',!0x1),_0x309f50(this,'_remoteChangesetQueue',[]);}async[_0x387812(0x183)](){const _0x3993a5=_0x387812;if(this[_0x3993a5(0x12b)])throw Error(_0x3993a5(0xbf));await this[_0x3993a5(0x3a4)]();}[_0x387812(0x311)](){const _0x566430=_0x387812;return this['_collaborationPaused']=!0x0,(0x0,_0x3ea0ad[_0x566430(0x21f)])(()=>{const _0x5ab08b=_0x566430;this[_0x5ab08b(0x390)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['onLocalMutation'](_0xd46493){const _0x2e6ae0=_0x387812;this[_0x2e6ae0(0x1d9)](_0xd46493);}[_0x387812(0x265)](_0x59a395){const _0x2b37b4=_0x387812;this[_0x2b37b4(0xf1)]=_0x59a395,this[_0x2b37b4(0xdb)][_0x2b37b4(0x316)](_0x59a395);}async[_0x387812(0x3a4)](){const _0x480185=_0x387812;if(this[_0x480185(0x265)](await this[_0x480185(0x32c)]()),this[_0x480185(0x339)]){var _0x3bf5e0;(_0x3bf5e0=this['_singleActiveUnitService'])==null||_0x3bf5e0['editingUnit'](this[_0x480185(0x2be)]),this[_0x480185(0x1b5)](this['_singleActiveUnitService'][_0x480185(0x109)](this['unitID'])[_0x480185(0x1a6)](_0x1a1649=>{const _0x3dc4e8=_0x480185;this['_logService'][_0x3dc4e8(0x2f0)](_0x3dc4e8(0x21b),'editing\x20status\x20changed\x20to',_0x1a1649),_0x1a1649===0x1?(this[_0x3dc4e8(0x234)][_0x3dc4e8(0x11a)]({'id':_0x3dc4e8(0x1bb)}),this[_0x3dc4e8(0x14b)][_0x3dc4e8(0xcc)](new _0x1dfeb2['WorkbookEditablePermission'](this[_0x3dc4e8(0x2be)])['id'],!0x1),this['_permissionService'][_0x3dc4e8(0x37b)](!0x1)):(this['_permissionService'][_0x3dc4e8(0xcc)](new _0x1dfeb2[(_0x3dc4e8(0x276))](this[_0x3dc4e8(0x2be)])['id'],!0x0),this['_permissionService'][_0x3dc4e8(0x37b)](!0x0));}));}let _0x4a5b18=!0x1;return this[_0x480185(0x1b5)](this[_0x480185(0x309)][_0x480185(0x303)][_0x480185(0x1a6)](_0x17bd95=>{const _0x12e377=_0x480185;_0x17bd95===0x3?this[_0x12e377(0x27e)](_0x4a5b18):_0x17bd95===0x2&&(_0x4a5b18=!0x0,this['_toggleOffline']());})),this[_0x480185(0x1b5)](this[_0x480185(0x309)][_0x480185(0x36d)][_0x480185(0x1a6)](_0x4c2069=>{const _0x4a1156=_0x480185;try{switch(_0x4c2069[_0x4a1156(0x217)]){case _0x5d8fae[_0x4a1156(0x13b)][_0x4a1156(0x363)]:this['_onRemoteChangeset']((0x0,_0x5d8fae['parseProtocolChangeset'])(_0x4c2069[_0x4a1156(0x31b)]));break;case _0x5d8fae[_0x4a1156(0x13b)]['CHANGESET_ACK']:this[_0x4a1156(0x180)](_0x4c2069['data']);break;case _0x5d8fae[_0x4a1156(0x13b)]['CHANGESET_REJ']:this['_onRemoteRejected']();break;case _0x5d8fae['CollaborationEvent'][_0x4a1156(0x147)]:this['_onRemoteRetry'](_0x4c2069[_0x4a1156(0x31b)]);break;case _0x5d8fae[_0x4a1156(0x13b)][_0x4a1156(0x244)]:this[_0x4a1156(0x2e5)](_0x4c2069['data'][_0x4a1156(0x3c6)]['map'](_0x4b32f8=>(0x0,_0x5d8fae[_0x4a1156(0x104)])(_0x4b32f8)));break;case _0x5d8fae[_0x4a1156(0x13b)]['PERMISSION_REJ']:this[_0x4a1156(0x381)]({'isPermissionRej':!0x0});break;case _0x5d8fae[_0x4a1156(0x13b)][_0x4a1156(0x2fc)]:break;}}catch(_0x2baaa4){throw console[_0x4a1156(0xcf)](_0x4a1156(0x2ea),_0x2baaa4),_0x2baaa4;}})),this[_0x480185(0xf1)];}[_0x387812(0x186)](){const _0x1559a4=_0x387812;this[_0x1559a4(0x124)]=!0x1;}[_0x387812(0x1ff)](){const _0x24b926=_0x387812;if(this[_0x24b926(0x124)])throw Error(_0x24b926(0x30f));this['_transitionLocked']=!0x0;}[_0x387812(0x1d9)](_0x19c6ff){const _0x1e3107=_0x387812;this[_0x1e3107(0x1ff)](),this[_0x1e3107(0x265)](this[_0x1e3107(0xf1)]['appendMutation'](_0x19c6ff)),this[_0x1e3107(0x186)]();}[_0x387812(0x22f)](_0x464583){const _0x5c4751=_0x387812;if(!(_0x464583[_0x5c4751(0x3da)]<=this[_0x5c4751(0x2d3)][_0x5c4751(0x1ea)](this[_0x5c4751(0x2be)]))){if(this[_0x5c4751(0x390)]){this[_0x5c4751(0x3d1)][_0x5c4751(0x223)](_0x464583);return;}this[_0x5c4751(0x372)](_0x464583);}}[_0x387812(0x35c)](){const _0x10764e=_0x387812;this['_remoteChangesetQueue']['forEach'](_0x481fb9=>this['_applyRemoteChangeset'](_0x481fb9)),this[_0x10764e(0x3d1)]=[];}[_0x387812(0x372)](_0x14c049){const _0x588713=_0x387812;let _0x445df3=this[_0x588713(0x291)]['interceptor'][_0x588713(0x371)](this[_0x588713(0x291)][_0x588713(0x263)][_0x588713(0x245)]()[_0x588713(0x101)])(_0x14c049['mutations'],null)||_0x14c049[_0x588713(0x3bd)],_0x5b181b={..._0x14c049,'mutations':_0x445df3};this[_0x588713(0x1ff)](),this[_0x588713(0x265)](this[_0x588713(0xf1)][_0x588713(0x201)](_0x5b181b)),this[_0x588713(0x186)]();}[_0x387812(0x180)](_0x4eaef5){const _0x8a944e=_0x387812;this[_0x8a944e(0x1ff)](),this[_0x8a944e(0x265)](this['_state'][_0x8a944e(0x398)](_0x4eaef5)),this[_0x8a944e(0x186)]();}['_onRemoteRejected'](_0x28f82d){const _0x398ee6=_0x387812;this['_lockTransition'](),this[_0x398ee6(0x265)](this[_0x398ee6(0xf1)][_0x398ee6(0x1ac)](_0x28f82d)),this[_0x398ee6(0x186)]();}[_0x387812(0x33a)](_0x210756){const _0x59448f=_0x387812;this[_0x59448f(0x1ff)](),this[_0x59448f(0x265)](this['_state'][_0x59448f(0x1d3)](_0x210756)),this[_0x59448f(0x186)]();}[_0x387812(0x2e5)](_0x437240){const _0x3f5605=_0x387812;if(!(this[_0x3f5605(0xf1)]instanceof _0x1c9a8a))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x20cfe9=_0x437240['map'](_0x4b1459=>{const _0x3179e3=_0x3f5605;let _0x389f50=this['_compressMutationService'][_0x3179e3(0x263)][_0x3179e3(0x371)](this[_0x3179e3(0x291)][_0x3179e3(0x263)][_0x3179e3(0x245)]()[_0x3179e3(0x101)])(_0x4b1459['mutations'],null)||_0x4b1459[_0x3179e3(0x3bd)];return{..._0x4b1459,'mutations':_0x389f50};});this['_lockTransition'](),this[_0x3f5605(0x265)](this[_0x3f5605(0xf1)][_0x3f5605(0x122)](_0x20cfe9)),this[_0x3f5605(0x186)]();}['_toggleOffline'](){const _0x45d38b=_0x387812;this[_0x45d38b(0x1ff)](),this[_0x45d38b(0x265)](this[_0x45d38b(0xf1)][_0x45d38b(0x283)]()),this[_0x45d38b(0x186)]();}[_0x387812(0x27e)](_0x41e1fd=!0x1){const _0x265255=_0x387812;this['_lockTransition'](),this['_updateState'](this[_0x265255(0xf1)]['toggleOnline']()),this['_unlockTransition']();let _0x42eac3=this[_0x265255(0xf1)];_0x41e1fd&&_0x42eac3 instanceof _0x5d844f&&(this[_0x265255(0x1ff)](),this[_0x265255(0x265)](_0x42eac3[_0x265255(0xfc)]()),this[_0x265255(0x186)]());}async[_0x387812(0x32c)](){return new Promise(_0x317e21=>{const _0x407af6=_0x1600;this[_0x407af6(0x309)][_0x407af6(0x303)][_0x407af6(0x298)]((0x0,_0x3a9bce['take'])(0x1))[_0x407af6(0x1a6)](async _0x3f27f6=>{_0x317e21(await this['_createInitialStateImpl'](_0x3f27f6===0x3));});});}[_0x387812(0x3b2)](){const _0x454333=_0x387812;let _0x31d612=this[_0x454333(0x2be)];return{'onStateChange':(_0x325065,_0x208121)=>{const _0x1efce5=_0x454333;if(_0x325065!==this['_state'])throw Error(_0x1efce5(0x27c)+_0x325065[_0x1efce5(0x210)]+_0x1efce5(0x17d)+_0x208121[_0x1efce5(0x210)]+'\x0aCurrent:\x20'+this[_0x1efce5(0xf1)][_0x1efce5(0x210)]);this['_updateState'](_0x208121);},'onSendChangeset':_0x4191ed=>{const _0xa5751e=_0x454333;_0x4191ed['sid']||(_0x4191ed[_0xa5751e(0x2cd)]=this[_0xa5751e(0x305)],_0x4191ed[_0xa5751e(0x1ce)]=++this[_0xa5751e(0xce)]);let _0x3ae542={'eventID':_0x5d8fae['CollaborationEvent'][_0xa5751e(0x340)],'data':{'unitID':_0x4191ed[_0xa5751e(0x2be)],'unitType':this[_0xa5751e(0x2ce)],'changeset':_0x4191ed,'memberID':this[_0xa5751e(0x309)][_0xa5751e(0x2cc)]()}};this[_0xa5751e(0x309)][_0xa5751e(0x1da)](_0x3ae542,this['unitID']);},'onMissingChangesets':({from:_0x50705a,to:_0x726f01})=>{const _0xdc4dcb=_0x454333;this[_0xdc4dcb(0x1fc)][_0xdc4dcb(0x2f0)](_0xdc4dcb(0x21b),'fetching\x20missing\x20changesets\x20from\x20'+_0x50705a+_0xdc4dcb(0x15b)+_0x726f01);let _0x17aeb4={'eventID':_0x5d8fae[_0xdc4dcb(0x13b)][_0xdc4dcb(0x25e)],'data':{'unitID':_0x31d612,'unitType':this['_type'],'from':_0x50705a,'to':_0x726f01}};this['session']['send'](_0x17aeb4,this[_0xdc4dcb(0x2be)]);}};}async['_createInitialStateImpl'](_0x2f6f37){const _0x97ad06=_0x387812;var _0x2acc71;let _0x30ae84=await((_0x2acc71=this[_0x97ad06(0x3fe)])==null?void 0x0:_0x2acc71[_0x97ad06(0x3b5)](this[_0x97ad06(0x2be)])),_0x5255f4=(_0x30ae84==null?void 0x0:_0x30ae84['mutations'])??[],_0x196833=(_0x30ae84==null?void 0x0:_0x30ae84[_0x97ad06(0x146)])??null,_0x5d9474=!!(_0x196833!=null&&_0x196833[_0x97ad06(0x2cd)])&&!!(_0x196833!=null&&_0x196833[_0x97ad06(0x1ce)]);this[_0x97ad06(0x305)]=_0x5d9474?_0x196833['sid']:(0x0,_0x5d8fae[_0x97ad06(0x3a3)])(),this[_0x97ad06(0xce)]=_0x5d9474?_0x196833[_0x97ad06(0x1ce)]:0x0;let _0x3829c4=this[_0x97ad06(0x2be)];try{this[_0x97ad06(0x154)](_0x196833,_0x5255f4);}catch(_0x5763fe){this[_0x97ad06(0x1fc)][_0x97ad06(0xcf)](_0x5763fe);}let _0x29a1f5=this['_createHandler']();if(_0x2f6f37){let _0x48e414=_0x3aa677(this[_0x97ad06(0x26d)],_0x3829c4,this[_0x97ad06(0x2ce)],_0x196833,_0x5255f4,_0x29a1f5);return _0x48e414 instanceof _0x5b6c26?_0x48e414[_0x97ad06(0x2f6)]():(_0x48e414 instanceof _0x4ebec0||_0x48e414 instanceof _0x70527d)&&_0x48e414[_0x97ad06(0x331)](),_0x48e414;}return this[_0x97ad06(0x26d)][_0x97ad06(0xc4)](_0x119cc1,_0x3829c4,this[_0x97ad06(0x2ce)],_0x196833,_0x5255f4,_0x29a1f5);}[_0x387812(0x154)](_0x3962c9,_0x14da26){const _0xf5fc6e=_0x387812;var _0x2976b1,_0x58b639;let _0xbba704=this[_0xf5fc6e(0x291)][_0xf5fc6e(0x263)][_0xf5fc6e(0x371)](this['_compressMutationService'][_0xf5fc6e(0x263)][_0xf5fc6e(0x245)]()['COMPRESS_MUTATION_APPLY']);(_0x2976b1=_0xbba704((_0x3962c9==null?void 0x0:_0x3962c9[_0xf5fc6e(0x3bd)])||[],null))==null||_0x2976b1[_0xf5fc6e(0x3e5)](_0x37975c=>this['_commandService'][_0xf5fc6e(0x151)](_0x37975c['id'],_0x37975c['params'])),(_0x58b639=_0xbba704(_0x14da26||[],null))==null||_0x58b639[_0xf5fc6e(0x3e5)](_0x561b63=>this[_0xf5fc6e(0x10a)][_0xf5fc6e(0x151)](_0x561b63['id'],_0x561b63[_0xf5fc6e(0x247)]));}};_0xf00944=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['LocaleService'])),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad['Inject'])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0xf00944);let _0x4264a3=class extends _0xf00944{constructor(_0xf008ad,_0x5bab70,_0x407dae,_0x3c182c,_0x47b4be,_0xf385e2,_0x3a0ff7,_0x2480de,_0x276fde,_0x35ab94,_0x1d6d92,_0x407133,_0x14e972,_0x5b66d7,_0x360697){const _0x5c7d95=_0x387812;super(_0xf008ad,_0x407dae,_0x5bab70,_0x3c182c,_0x47b4be,_0xf385e2,_0x3a0ff7,_0x2480de,_0x276fde,_0x35ab94,_0x1d6d92,_0x407133,_0x5b66d7,_0x360697),this[_0x5c7d95(0x2be)]=_0xf008ad,this[_0x5c7d95(0x131)]=_0x5bab70,this[_0x5c7d95(0x195)]=_0x14e972,_0x309f50(this,'_handlerCallback',null);}[_0x387812(0x1fb)](_0x219dd4){this['_handlerCallback']=_0x219dd4;}[_0x387812(0x102)](){const _0x3200e2=_0x387812;this[_0x3200e2(0x207)]=null,super['dispose']();}[_0x387812(0x3b2)](){const _0x5b0d89=_0x387812;let _0x1d94ae=super['_createHandler']();return _0x1d94ae['onTransformIME']=_0x36e0e8=>{const _0x1aa962=_0x1600;var _0x4b1ca6,_0x58aeff;return(_0x4b1ca6=this[_0x1aa962(0x207)])==null||(_0x58aeff=_0x4b1ca6['onTransformIME'])==null?void 0x0:_0x58aeff[_0x1aa962(0x3dd)](_0x4b1ca6,_0x36e0e8);},_0x1d94ae[_0x5b0d89(0x267)]=_0x5999d6=>{const _0x2dec2a=_0x5b0d89;var _0x1af3d1,_0x5538f1;return(_0x1af3d1=this['_handlerCallback'])==null||(_0x5538f1=_0x1af3d1[_0x2dec2a(0x267)])==null?void 0x0:_0x5538f1['call'](_0x1af3d1,_0x5999d6);},_0x1d94ae[_0x5b0d89(0x379)]=_0x1bb066=>{const _0x12fb14=_0x5b0d89;var _0x5a2a71,_0x5c5714;return(_0x5a2a71=this['_handlerCallback'])==null||(_0x5c5714=_0x5a2a71[_0x12fb14(0x379)])==null?void 0x0:_0x5c5714[_0x12fb14(0x3dd)](_0x5a2a71,_0x1bb066);},_0x1d94ae[_0x5b0d89(0x288)]=_0x25f873=>{const _0x4566f7=_0x5b0d89;var _0x40f572,_0x1c49f6;return(_0x40f572=this[_0x4566f7(0x207)])==null||(_0x1c49f6=_0x40f572['onSyncEditingCollabCursor'])==null?void 0x0:_0x1c49f6[_0x4566f7(0x3dd)](_0x40f572,_0x25f873);},_0x1d94ae['onTransformRemoteChangesetByIMECache']=_0x58bdaf=>{const _0x20dde9=_0x5b0d89;var _0xdc0ac5,_0x2179d4;return((_0xdc0ac5=this[_0x20dde9(0x207)])==null||(_0x2179d4=_0xdc0ac5[_0x20dde9(0x249)])==null?void 0x0:_0x2179d4['call'](_0xdc0ac5,_0x58bdaf))??_0x58bdaf;},_0x1d94ae[_0x5b0d89(0x33c)]=_0x6d0d70=>{const _0x35b326=_0x5b0d89;var _0x1f565a,_0x2ac08e;return((_0x1f565a=this[_0x35b326(0x207)])==null||(_0x2ac08e=_0x1f565a[_0x35b326(0x33c)])==null?void 0x0:_0x2ac08e['call'](_0x1f565a,_0x6d0d70))??_0x6d0d70;},_0x1d94ae;}async[_0x387812(0x3a4)](){const _0x596071=_0x387812;let _0x111770=await super[_0x596071(0x3a4)]();return this[_0x596071(0x1b5)](this[_0x596071(0x195)]['docStateChange$'][_0x596071(0x1a6)](_0x57eb47=>{const _0x5f38d8=_0x596071;if(_0x57eb47==null||_0x57eb47[_0x5f38d8(0x397)]!==this[_0x5f38d8(0x2be)])return;let {commandId:_0x1858c3,redoState:_0x2f36d4,unitId:_0x21a9ec}=_0x57eb47,_0x52859a={'id':_0x1858c3,'type':_0x3ea0ad[_0x5f38d8(0x15a)][_0x5f38d8(0x198)],'params':{'unitId':_0x21a9ec,'actions':_0x2f36d4[_0x5f38d8(0x34c)],'textRanges':null}};this[_0x5f38d8(0x1d9)](_0x52859a);})),this[_0x596071(0x1b5)](this[_0x596071(0x10a)][_0x596071(0x3b8)]((_0xd06d0e,_0x4f7d6c)=>{const _0x84d51d=_0x596071;if(_0xd06d0e[_0x84d51d(0x131)]!==_0x3ea0ad['CommandType'][_0x84d51d(0x198)]||_0x4f7d6c!=null&&_0x4f7d6c[_0x84d51d(0x324)]||_0x4f7d6c!=null&&_0x4f7d6c[_0x84d51d(0x1a4)]||_0xd06d0e['id']===_0x160e88[_0x84d51d(0x2b3)]['id'])return;let _0x506106=_0xd06d0e[_0x84d51d(0x247)];if((_0x506106==null?void 0x0:_0x506106['unitId'])!==this[_0x84d51d(0x2be)])return;let _0x3b2e4e=_0xd06d0e,_0x1fbbb0=this[_0x84d51d(0x291)][_0x84d51d(0x263)][_0x84d51d(0x371)](this['_compressMutationService'][_0x84d51d(0x263)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x3b2e4e],this[_0x84d51d(0xc8)])||[_0x3b2e4e];this[_0x84d51d(0x1d9)](_0x1fbbb0[0x0]);})),_0x111770;}};_0x4264a3=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae['RevisionService'])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad['ILogService']),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x160e88[_0x387812(0x3cc)])),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xe,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x4264a3);let _0x461db8=class extends _0xf00944{constructor(_0x6c5819,_0x48c305,_0x5b1453,_0x3d5178,_0x561532,_0x58c918,_0x4cfd62,_0x2f03c6,_0x31a6c8,_0xd5899d,_0x184aa3,_0x9a6948,_0x2e9f71,_0x14fd8a){const _0x3ccb52=_0x387812;super(_0x6c5819,_0x5b1453,_0x48c305,_0x3d5178,_0x561532,_0x58c918,_0x4cfd62,_0x2f03c6,_0x31a6c8,_0xd5899d,_0x184aa3,_0x9a6948,_0x2e9f71,_0x14fd8a),this[_0x3ccb52(0x2be)]=_0x6c5819,this['type']=_0x48c305;}async[_0x387812(0x3a4)](){const _0x49723b=_0x387812;let _0x2f32de=await super[_0x49723b(0x3a4)]();return this[_0x49723b(0x1b5)](this[_0x49723b(0x10a)][_0x49723b(0x3b8)]((_0x38ec1a,_0xbadccc)=>{const _0x13b2c1=_0x49723b;if(_0x38ec1a[_0x13b2c1(0x131)]!==_0x3ea0ad['CommandType'][_0x13b2c1(0x198)]||_0xbadccc!=null&&_0xbadccc[_0x13b2c1(0x324)]||_0xbadccc!=null&&_0xbadccc[_0x13b2c1(0x1a4)])return;let _0x2e45c3=_0x38ec1a[_0x13b2c1(0x247)];if((_0x2e45c3==null?void 0x0:_0x2e45c3[_0x13b2c1(0x397)])!==this[_0x13b2c1(0x2be)])return;let _0x557a65=_0x38ec1a,_0x540356=this[_0x13b2c1(0x291)]['interceptor']['fetchThroughInterceptors'](this[_0x13b2c1(0x291)][_0x13b2c1(0x263)]['getInterceptPoints']()[_0x13b2c1(0xfb)])([_0x557a65],this['_univerInstanceService'])||[_0x557a65];this['_onLocalMutation'](_0x540356[0x0]);})),_0x2f32de;}};_0x461db8=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad['ILogService']),_0x29ab6d(0xa,_0x3ea0ad['ICommandService']),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x461db8);let _0x1a3266=class extends _0xf00944{constructor(_0x1fab00,_0x228064,_0x4789fe,_0x411f92,_0x26dad0,_0x3449ec,_0x4002da,_0x4448ba,_0x1767c2,_0x41095c,_0x2fa822,_0x446463,_0x5178a2,_0x525573,_0x38eb4b){const _0x237932=_0x387812;super(_0x1fab00,_0x4789fe,_0x228064,_0x411f92,_0x26dad0,_0x3449ec,_0x4002da,_0x1767c2,_0x41095c,_0x2fa822,_0x446463,_0x5178a2,_0x525573,_0x38eb4b),this[_0x237932(0x2be)]=_0x1fab00,this[_0x237932(0x131)]=_0x228064,this[_0x237932(0x22e)]=_0x4448ba;}[_0x387812(0x3b2)](){const _0x1dd485=_0x387812;let _0x80ed23=super[_0x1dd485(0x3b2)]();return _0x80ed23['onTransformSelections']=_0x2ff5db=>this[_0x1dd485(0x22e)][_0x1dd485(0xd9)](_0x2ff5db),_0x80ed23;}async['_init'](){const _0x5d668e=_0x387812;let _0x4c1e3d=await super['_init']();return this[_0x5d668e(0x1b5)](this[_0x5d668e(0x10a)][_0x5d668e(0x3b8)]((_0x1cb783,_0x1b17fb)=>{const _0x29e1c3=_0x5d668e;if(_0x1cb783[_0x29e1c3(0x131)]!==_0x3ea0ad['CommandType'][_0x29e1c3(0x198)]||_0x1b17fb!=null&&_0x1b17fb[_0x29e1c3(0x324)]||_0x1b17fb!=null&&_0x1b17fb[_0x29e1c3(0x1a4)])return;let _0x29c4b5=_0x1cb783[_0x29e1c3(0x247)];if((_0x29c4b5==null?void 0x0:_0x29c4b5[_0x29e1c3(0x397)])!==this[_0x29e1c3(0x2be)])return;let _0x7f48db=_0x1cb783,_0x25655c=this[_0x29e1c3(0x291)][_0x29e1c3(0x263)][_0x29e1c3(0x371)](this['_compressMutationService'][_0x29e1c3(0x263)][_0x29e1c3(0x245)]()[_0x29e1c3(0xfb)])([_0x7f48db],this[_0x29e1c3(0xc8)])||[_0x7f48db];this[_0x29e1c3(0x1d9)](_0x25655c[0x0]);})),_0x4c1e3d;}};_0x1a3266=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad['Injector'])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5ad7dd)),_0x29ab6d(0x8,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xc,_0x3ea0ad['IPermissionService']),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xe,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0x1a3266);let _0xa14eef=class extends _0xf00944{constructor(_0x469e80,_0x62e69,_0x41ebdb,_0x4a97cf,_0x527170,_0x4ec515,_0x3d112e,_0x18eeaf,_0x2b0b5d,_0x578775,_0xb88d1b,_0x547661,_0x20829c,_0x403bdb){const _0x531334=_0x387812;super(_0x469e80,_0x41ebdb,_0x62e69,_0x4a97cf,_0x527170,_0x4ec515,_0x3d112e,_0x18eeaf,_0x2b0b5d,_0x578775,_0xb88d1b,_0x547661,_0x20829c,_0x403bdb),this[_0x531334(0x2be)]=_0x469e80,this[_0x531334(0x131)]=_0x62e69;}async[_0x387812(0x3a4)](){const _0x13a17e=_0x387812;let _0x39005c=await super[_0x13a17e(0x3a4)]();return this[_0x13a17e(0x1b5)](this[_0x13a17e(0x10a)]['onMutationExecutedForCollab']((_0x10905d,_0x5b6aec)=>{const _0x49142c=_0x13a17e;if(_0x10905d['type']!==_0x3ea0ad['CommandType'][_0x49142c(0x198)]||_0x5b6aec!=null&&_0x5b6aec['fromCollab']||_0x5b6aec!=null&&_0x5b6aec[_0x49142c(0x1a4)])return;let _0x39ac48=_0x10905d[_0x49142c(0x247)];if((_0x39ac48==null?void 0x0:_0x39ac48['unitId'])!==this[_0x49142c(0x2be)])return;let _0x3839da=_0x10905d,_0x3c9252=this[_0x49142c(0x291)][_0x49142c(0x263)][_0x49142c(0x371)](this['_compressMutationService'][_0x49142c(0x263)][_0x49142c(0x245)]()[_0x49142c(0xfb)])([_0x3839da],this[_0x49142c(0xc8)])||[_0x3839da];this[_0x49142c(0x1d9)](_0x3c9252[0x0]);})),_0x39005c;}};_0xa14eef=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae['RevisionService'])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0xa14eef);let _0x2b44e6=class extends _0xf00944{constructor(_0x240a8f,_0x336d6a,_0x3aff8f,_0x521fa7,_0x184179,_0x406eda,_0x4d11be,_0x47441c,_0x4c2b44,_0x5b09c3,_0xdf7bc9,_0x945a05,_0x54eb1c,_0xa92ad2){const _0x260a75=_0x387812;super(_0x240a8f,_0x3aff8f,_0x336d6a,_0x521fa7,_0x184179,_0x406eda,_0x4d11be,_0x47441c,_0x4c2b44,_0x5b09c3,_0xdf7bc9,_0x945a05,_0x54eb1c,_0xa92ad2),this[_0x260a75(0x2be)]=_0x240a8f,this[_0x260a75(0x131)]=_0x336d6a;}async[_0x387812(0x3a4)](){const _0x60323=_0x387812;let _0x4e4e25=await super[_0x60323(0x3a4)]();return this[_0x60323(0x1b5)](this[_0x60323(0x10a)][_0x60323(0x3b8)]((_0x3076de,_0x3f290b)=>{const _0x3f000b=_0x60323;if(_0x3076de[_0x3f000b(0x131)]!==_0x3ea0ad[_0x3f000b(0x15a)][_0x3f000b(0x198)]||_0x3f290b!=null&&_0x3f290b[_0x3f000b(0x324)]||_0x3f290b!=null&&_0x3f290b[_0x3f000b(0x1a4)])return;let _0x4a4fd6=_0x3076de[_0x3f000b(0x247)];if((_0x4a4fd6==null?void 0x0:_0x4a4fd6[_0x3f000b(0x397)])!==this[_0x3f000b(0x2be)])return;let _0x57b3c8=_0x3076de,_0x52e2f6=this[_0x3f000b(0x291)][_0x3f000b(0x263)][_0x3f000b(0x371)](this[_0x3f000b(0x291)][_0x3f000b(0x263)][_0x3f000b(0x245)]()[_0x3f000b(0xfb)])([_0x57b3c8],this[_0x3f000b(0xc8)])||[_0x57b3c8];this[_0x3f000b(0x1d9)](_0x52e2f6[0x0]);})),_0x4e4e25;}};_0x2b44e6=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad['IUniverInstanceService']),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x2b44e6);let _0x56abff=class extends _0xf00944{constructor(_0x32ee07,_0x3d4266,_0x45e7d5,_0x3bd905,_0x487477,_0x2b6c7a,_0x55bf5a,_0x582b72,_0x35916e,_0x35de92,_0x454516,_0x3681ae,_0x2ae14e,_0x26b45c){const _0x2e20bd=_0x387812;super(_0x32ee07,_0x45e7d5,_0x3d4266,_0x3bd905,_0x487477,_0x2b6c7a,_0x55bf5a,_0x582b72,_0x35916e,_0x35de92,_0x454516,_0x3681ae,_0x2ae14e,_0x26b45c),this[_0x2e20bd(0x2be)]=_0x32ee07,this[_0x2e20bd(0x131)]=_0x3d4266;}async['_init'](){const _0x9e2c3e=_0x387812;let _0x1de0c7=await super['_init']();return this[_0x9e2c3e(0x1b5)](this['_commandService'][_0x9e2c3e(0x3b8)]((_0x4473f0,_0x7815ef)=>{const _0xfe9233=_0x9e2c3e;if(_0x4473f0['type']!==_0x3ea0ad[_0xfe9233(0x15a)][_0xfe9233(0x198)]||_0x7815ef!=null&&_0x7815ef['fromCollab']||_0x7815ef!=null&&_0x7815ef[_0xfe9233(0x1a4)])return;let _0x4d7047=_0x4473f0[_0xfe9233(0x247)];if((_0x4d7047==null?void 0x0:_0x4d7047[_0xfe9233(0x397)])!==this[_0xfe9233(0x2be)])return;let _0x5874f7=_0x4473f0,_0x5d73aa=this[_0xfe9233(0x291)]['interceptor'][_0xfe9233(0x371)](this[_0xfe9233(0x291)][_0xfe9233(0x263)]['getInterceptPoints']()[_0xfe9233(0xfb)])([_0x5874f7],this[_0xfe9233(0xc8)])||[_0x5874f7];this[_0xfe9233(0x1d9)](_0x5d73aa[0x0]);})),_0x1de0c7;}};_0x56abff=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad['Inject'])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad['IPermissionService']),_0x29ab6d(0xc,(0x0,_0x3ea0ad['Optional'])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0x56abff);let _0x3bc50a=(0x0,_0x3ea0ad[_0x387812(0x359)])(_0x387812(0x30a));function _0x38114d(_0x47beb1){const _0x1b8cb0=_0x387812;let _0x157ef4=_0x47beb1[_0x1b8cb0(0x31b)],_0x564fd8=JSON[_0x1b8cb0(0x26f)](_0x157ef4);switch(_0x564fd8[_0x1b8cb0(0xdf)]){case _0x2a4603[_0x1b8cb0(0x396)][_0x1b8cb0(0x2e2)]:case _0x2a4603[_0x1b8cb0(0x396)][_0x1b8cb0(0x3cb)]:{let _0x54f1ce=_0x564fd8[_0x1b8cb0(0x162)];return{..._0x564fd8,'data':_0x54f1ce,'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};}case _0x2a4603['CombCmd']['JOIN']:{let _0x1864b3=_0x564fd8[_0x1b8cb0(0x273)];return{..._0x564fd8,'data':_0x1864b3,'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};}case _0x2a4603[_0x1b8cb0(0x396)]['RECV']:{let _0x561e4d=_0x564fd8[_0x1b8cb0(0x269)];switch(_0x561e4d[_0x1b8cb0(0x217)]){case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x295)]:var _0x39280c;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x39280c=_0x561e4d[_0x1b8cb0(0x279)])==null?void 0x0:_0x39280c['cs']},'cmd':_0x564fd8['cmd']};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x3b9)]:var _0x4a2589;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x4a2589=_0x561e4d['csAckEvent'])==null?void 0x0:_0x4a2589['cs']},'cmd':_0x564fd8['cmd']};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x363)]:var _0x49802d;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x49802d=_0x561e4d[_0x1b8cb0(0x1ef)])==null?void 0x0:_0x49802d['cs']},'cmd':_0x564fd8['cmd']};case _0x5d8fae['CollaborationEvent']['CHANGESET_REJ']:var _0x50bf50;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x50bf50=_0x561e4d[_0x1b8cb0(0xee)])==null?void 0x0:_0x50bf50['cs']},'cmd':_0x564fd8['cmd']};case _0x5d8fae['CollaborationEvent'][_0x1b8cb0(0x147)]:var _0x180b59;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x180b59=_0x561e4d[_0x1b8cb0(0x2b6)])==null?void 0x0:_0x180b59['cs']},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae['CollaborationEvent'][_0x1b8cb0(0xe2)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x28d)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x3c1)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d['joinEvent']},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0xbe)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x1c6)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)]['LIVESHARE_NEW_HOST']:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x3f0)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae['CollaborationEvent'][_0x1b8cb0(0x38c)]:case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x236)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x111)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x3ac)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x3f0)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x3c0)]:return{..._0x564fd8,'data':_0x561e4d,'cmd':_0x564fd8['cmd']};case _0x5d8fae['CollaborationEvent'][_0x1b8cb0(0xc7)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0xda)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x1e9)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x286)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x107)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x3e0)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)]['UNISCRIPT_RUN']:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d['uniscriptRunEvent']},'cmd':_0x564fd8['cmd']};default:return _0x564fd8;}}default:return _0x564fd8;}}function _0x485eef(_0xadf505){const _0x3f79e7=_0x387812;switch(_0xadf505[_0x3f79e7(0xdf)]){case _0x2a4603[_0x3f79e7(0x396)][_0x3f79e7(0x2e2)]:case _0x2a4603[_0x3f79e7(0x396)][_0x3f79e7(0x3cb)]:return JSON[_0x3f79e7(0x1e5)]({'cmd':_0xadf505[_0x3f79e7(0xdf)],'routeKey':_0xadf505[_0x3f79e7(0xb2)]});case _0x2a4603[_0x3f79e7(0x396)][_0x3f79e7(0x2cf)]:{let _0x7a4926;switch(_0xadf505[_0x3f79e7(0x31b)][_0x3f79e7(0x217)]){case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xe2)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xe2)],'updateCursorEvent':_0xadf505[_0x3f79e7(0x31b)]['data']};break;case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xbe)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xbe)],'leaveEvent':_0xadf505['data'][_0x3f79e7(0x31b)]};break;case _0x5d8fae['CollaborationEvent'][_0x3f79e7(0x3c1)]:_0x7a4926={'eventID':_0x5d8fae['CollaborationEvent'][_0x3f79e7(0x3c1)],'joinEvent':_0xadf505[_0x3f79e7(0x31b)][_0x3f79e7(0x31b)]};break;case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xe5)]:_0x7a4926={'eventID':_0x5d8fae['CollaborationEvent'][_0x3f79e7(0xe5)],'liveShareNewHost':_0xadf505[_0x3f79e7(0x31b)]['data']};break;case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x236)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x236)],'liveShareOperation':_0xadf505['data']['data']};break;case _0x5d8fae['CollaborationEvent'][_0x3f79e7(0x3ac)]:_0x7a4926={'eventID':_0x5d8fae['CollaborationEvent'][_0x3f79e7(0x3ac)],'liveShareTerminate':_0xadf505[_0x3f79e7(0x31b)]['data']};break;case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x323)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x323)],'liveShareRequestHost':_0xadf505[_0x3f79e7(0x31b)][_0x3f79e7(0x31b)]};break;case _0x5d8fae['CollaborationEvent'][_0x3f79e7(0x38c)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x38c)]};break;default:_0x7a4926={'eventID':_0xadf505[_0x3f79e7(0x31b)]['eventID']};}return JSON['stringify']({'cmd':_0xadf505['cmd'],'routeKey':_0xadf505[_0x3f79e7(0xb2)],'collaMsg':_0x7a4926});}case _0x2a4603[_0x3f79e7(0x396)][_0x3f79e7(0x148)]:return JSON['stringify']({'cmd':_0xadf505[_0x3f79e7(0xdf)],'routeKey':_0xadf505[_0x3f79e7(0xb2)],'joinReq':_0xadf505[_0x3f79e7(0x31b)]});case _0x2a4603['CombCmd'][_0x3f79e7(0x1cd)]:return JSON[_0x3f79e7(0x1e5)]({'cmd':_0xadf505[_0x3f79e7(0xdf)],'routeKey':_0xadf505[_0x3f79e7(0xb2)],'leaveReq':_0xadf505['data']});default:throw Error(_0x3f79e7(0x3ca));}}let _0x3155d1=(0x0,_0x3ea0ad[_0x387812(0x359)])(_0x387812(0x3e1));function _0x360320(_0x18bc2a,_0x23d40a,_0x57f708){const _0x4d1399=_0x387812;return _0x18bc2a+'/'+_0x23d40a+_0x4d1399(0x1f2)+_0x57f708+'/new_changes';}let _0x9b3649=class extends _0x3ea0ad[_0x387812(0x18f)]{constructor(_0x48de93,_0x12bf67,_0xe9014,_0x439021,_0xec521e){const _0x57db42=_0x387812;super(),this[_0x57db42(0x26d)]=_0x48de93,this[_0x57db42(0x20d)]=_0x12bf67,this[_0x57db42(0x327)]=_0xe9014,this['_logService']=_0x439021,this[_0x57db42(0x15d)]=_0xec521e;}[_0x387812(0x321)](_0x3707de){const _0x509297=_0x387812;let _0x413a79=this[_0x509297(0x26d)]['get'](_0x2e88c0[_0x509297(0x194)]);if(!_0x413a79)throw Error(_0x509297(0x15e));let _0x45ade6=_0x413a79[_0x509297(0x3b4)](_0x3707de);if(!_0x45ade6)throw Error(_0x509297(0x168));let _0x44ac6a=new _0x3ea0ad[(_0x509297(0x30c))](),_0x253a53=new _0x3a9bce[(_0x509297(0x20a))]();_0x44ac6a[_0x509297(0x232)](_0x45ade6[_0x509297(0x3c3)]['subscribe'](_0x48bb45=>_0x253a53[_0x509297(0x316)](_0x48bb45))),_0x44ac6a[_0x509297(0x232)]((0x0,_0x3ea0ad[_0x509297(0x21f)])(()=>_0x253a53[_0x509297(0xca)]()));let _0x1d6d3f=new _0x3a9bce[(_0x509297(0x20a))]();_0x44ac6a[_0x509297(0x232)](_0x45ade6[_0x509297(0x224)][_0x509297(0x1a6)](_0x353199=>_0x1d6d3f[_0x509297(0x316)](_0x353199))),_0x44ac6a[_0x509297(0x232)]((0x0,_0x3ea0ad[_0x509297(0x21f)])(()=>_0x1d6d3f[_0x509297(0xca)]()));let _0x3d4e43=new _0x3a9bce[(_0x509297(0x20a))]();_0x44ac6a[_0x509297(0x232)](_0x45ade6[_0x509297(0x1d6)][_0x509297(0x1a6)](_0x1920be=>{const _0x3f21ed=_0x509297;let _0x582878=_0x38114d(_0x1920be);_0x3d4e43[_0x3f21ed(0x316)](_0x582878);})),_0x44ac6a[_0x509297(0x232)]((0x0,_0x3ea0ad[_0x509297(0x21f)])(()=>_0x3d4e43['complete']()));let _0x1cc4aa,_0x39e64a=()=>{const _0x31f869=_0x509297;_0x1d6d3f['next'](new Event('connection\x20error')),_0x253a53[_0x31f869(0x316)](new Event(_0x31f869(0x3c9))),_0x1cc4aa[_0x31f869(0xc5)]();};return _0x1cc4aa={'memberID':'','close$':_0x253a53[_0x509297(0x1fe)](),'error$':_0x1d6d3f[_0x509297(0x1fe)](),'open$':_0x45ade6[_0x509297(0x2d1)],'message$':_0x3d4e43['asObservable'](),'send':_0x2b039a=>{const _0x2e09ce=_0x509297;if(_0x2b039a['cmd']===_0x2a4603['CombCmd'][_0x2e09ce(0x2cf)]){if(_0x2b039a[_0x2e09ce(0x31b)][_0x2e09ce(0x217)]===_0x5d8fae['CollaborationEvent'][_0x2e09ce(0x340)]){this['_submitChangeset'](_0x1cc4aa,_0x2b039a['data'])[_0x2e09ce(0x18e)](_0x21e6dc=>{const _0x673fd8=_0x2e09ce;this[_0x673fd8(0x1fc)]['error'](_0x21e6dc),_0x39e64a();});return;}if(_0x2b039a['data'][_0x2e09ce(0x217)]===_0x5d8fae[_0x2e09ce(0x13b)][_0x2e09ce(0x25e)]){let _0xd7a67b=_0x2b039a['data'];this[_0x2e09ce(0x21d)](_0xd7a67b)['then'](_0x5449da=>{const _0x56b81d=_0x2e09ce;_0x3d4e43[_0x56b81d(0x316)]({'cmd':_0x2a4603[_0x56b81d(0x396)][_0x56b81d(0x2dc)],'code':_0x2a4603['CmdRspCode']['OK'],'routeKey':_0xd7a67b[_0x56b81d(0x31b)][_0x56b81d(0x2be)],'routeType':'','data':{'eventID':_0x5d8fae[_0x56b81d(0x13b)][_0x56b81d(0x244)],'data':{'changesets':_0x5449da}}});})[_0x2e09ce(0x18e)](_0x3074f6=>{this['_logService']['error'](_0x3074f6),_0x39e64a();});return;}}_0x45ade6[_0x2e09ce(0x1da)](_0x485eef(_0x2b039a));},'close':()=>{const _0x3f289c=_0x509297;_0x45ade6[_0x3f289c(0xc5)](),_0x44ac6a['dispose']();}},_0x1cc4aa;}async[_0x387812(0x115)](_0x21db11,_0x14823f){const _0x2d442e=_0x387812;let {unitType:_0x1680b1,unitID:_0x38bd91,changeset:_0x1239d1}=_0x14823f[_0x2d442e(0x31b)],_0x40e764={'unitID':_0x38bd91,'memberID':_0x21db11[_0x2d442e(0x2c9)],'type':_0x1680b1,'changeset':(0x0,_0x5d8fae[_0x2d442e(0x2b4)])(_0x1239d1)},_0x37a1df=this[_0x2d442e(0x327)][_0x2d442e(0x346)](_0xeb659),_0x241d5b=_0x360320((_0x37a1df==null?void 0x0:_0x37a1df[_0x2d442e(0x38f)])??_0x2d442e(0x3ec),_0x1680b1,_0x38bd91);try{await this[_0x2d442e(0x20d)][_0x2d442e(0x233)](_0x241d5b,{'body':_0x40e764});}catch(_0x56481f){throw this[_0x2d442e(0x1fc)][_0x2d442e(0xcf)](_0x2d442e(0x192),_0x2d442e(0x352)),_0x56481f;}}async[_0x387812(0x21d)](_0x1024f5){const _0xe476dd=_0x387812;let {unitID:_0x128eac,from:_0x4b1144,to:_0x567af6,unitType:_0x1e57f7}=_0x1024f5[_0xe476dd(0x31b)];return(await this[_0xe476dd(0x15d)][_0xe476dd(0x20b)]({'metadata':void 0x0},{'unitID':_0x128eac,'type':_0x1e57f7,'from':_0x4b1144,'to':_0x567af6}))['changesets'][_0xe476dd(0x1a7)](_0x17af17=>((_0x17af17[_0xe476dd(0x3bd)]===null||_0x17af17['mutations']===void 0x0)&&(_0x17af17[_0xe476dd(0x3bd)]=[]),_0x17af17));}};_0x9b3649=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x2e88c0[_0x387812(0x264)])),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x3,_0x3ea0ad['ILogService']),_0x29ab6d(0x4,_0x5d8fae[_0x387812(0x211)])],_0x9b3649);let _0xfd750d=(0x0,_0x3ea0ad[_0x387812(0x359)])('univer-pro.collaboration-client-adapter-service');function _0x2488e3(_0x1bd6fe={}){const _0x43b3ee=_0x387812;return _0x1bd6fe[_0x43b3ee(0xe3)]?{'resolveUnit':_0x1bd6fe[_0x43b3ee(0xe3)]}:{'resolveUnit':_0x11df21=>({'target':{'unitId':_0x11df21['unitId'],'unitType':_0x11df21[_0x43b3ee(0x27f)]}})};}function _0x1fabaf(_0x159d1b,_0x14d44a,_0x3282c7){const _0x5c89bc=_0x387812;let _0xa2dc45=_0x3282c7[_0x5c89bc(0x3d4)][_0x5c89bc(0x1ed)];if(_0xa2dc45!=null&&_0xa2dc45[_0x5c89bc(0x401)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x3282c7[_0x5c89bc(0x3d4)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x159d1b,'unitType':_0x14d44a,'target':{'endpoint':_0xa2dc45,'unitId':_0x3282c7[_0x5c89bc(0x3d4)]['unitId'],'unitType':_0x3282c7['target'][_0x5c89bc(0x27f)]??_0x14d44a},'changeset':_0x3282c7['changeset']};}let _0x16256e=class extends _0x3ea0ad[_0x387812(0x18f)]{constructor(_0x5d29ce,_0x21a078,_0x15054c,_0x2ecad7,_0x53964f,_0x5d0704,_0x20e57f){const _0x177b3b=_0x387812;super(),this[_0x177b3b(0x26d)]=_0x5d29ce,this[_0x177b3b(0x1fc)]=_0x21a078,this[_0x177b3b(0x327)]=_0x15054c,this['_socketService']=_0x2ecad7,this[_0x177b3b(0x378)]=_0x53964f,this[_0x177b3b(0x138)]=_0x5d0704,this['_networkConditionService']=_0x20e57f,_0x309f50(this,_0x177b3b(0x1c7),new Map()),_0x309f50(this,_0x177b3b(0x1e2),new Map()),_0x309f50(this,_0x177b3b(0x23a),new Map()),_0x309f50(this,_0x177b3b(0x172),new Map()),_0x309f50(this,_0x177b3b(0x1f5),this[_0x177b3b(0xb7)](void 0x0)['socket$'][_0x177b3b(0x1fe)]()),_0x309f50(this,_0x177b3b(0x2e4),new _0x3a9bce[(_0x177b3b(0x24a))](0x0)),_0x309f50(this,'status$',this[_0x177b3b(0x2e4)][_0x177b3b(0x1fe)]()),this['_listenToNetworkCondition']();}[_0x387812(0x395)](){const _0x1e3e1f=_0x387812;this[_0x1e3e1f(0x29c)]&&this[_0x1e3e1f(0x1b5)](this[_0x1e3e1f(0x29c)][_0x1e3e1f(0x12f)]['subscribe'](_0x31a729=>{const _0x5c0ef7=_0x1e3e1f;_0x31a729&&this[_0x5c0ef7(0x23b)](),_0x31a729||this[_0x5c0ef7(0x172)][_0x5c0ef7(0x3e5)](_0x2a3927=>this[_0x5c0ef7(0x37d)](_0x2a3927));}));}[_0x387812(0x102)](){const _0x21fadc=_0x387812;super[_0x21fadc(0x102)](),this['_socketChannels']['forEach'](_0x16cff4=>{const _0x2a822f=_0x21fadc;var _0xcdec26,_0x3acb8e;(_0xcdec26=_0x16cff4[_0x2a822f(0x32d)])==null||_0xcdec26[_0x2a822f(0x23d)](),_0x16cff4['socketMessageSubscription']=null,this[_0x2a822f(0x1d1)](_0x16cff4),this[_0x2a822f(0x383)](_0x16cff4),this[_0x2a822f(0xb6)](_0x16cff4),(_0x3acb8e=_0x16cff4[_0x2a822f(0x1f5)][_0x2a822f(0x355)]())==null||_0x3acb8e[_0x2a822f(0xc5)](),_0x16cff4[_0x2a822f(0x1f5)][_0x2a822f(0xca)]();}),this[_0x21fadc(0x172)][_0x21fadc(0x19d)](),this[_0x21fadc(0x1c7)][_0x21fadc(0x3e5)](_0x48aa92=>_0x48aa92[_0x21fadc(0x102)]()),this[_0x21fadc(0x1c7)][_0x21fadc(0x19d)](),this[_0x21fadc(0x23a)][_0x21fadc(0x19d)](),this[_0x21fadc(0x2e4)][_0x21fadc(0xca)]();}async[_0x387812(0x1f8)](_0x675537,_0x551e23){const _0x6ac3f7=_0x387812;if(this[_0x6ac3f7(0x1c7)]['has'](_0x675537))return this['_sessions'][_0x6ac3f7(0x32a)](_0x675537);let _0x4d48c0=this[_0x6ac3f7(0x1e2)][_0x6ac3f7(0x32a)](_0x675537);if(_0x4d48c0)return _0x4d48c0;let _0x15f526=this[_0x6ac3f7(0xbc)](_0x675537,_0x551e23);this[_0x6ac3f7(0x1e2)][_0x6ac3f7(0x15c)](_0x675537,_0x15f526);try{return await _0x15f526;}finally{this[_0x6ac3f7(0x1e2)]['delete'](_0x675537);}}async[_0x387812(0xbc)](_0xab8abf,_0x1269cb){const _0x8d38fb=_0x387812;let _0x348e9e=await this[_0x8d38fb(0x1db)](_0xab8abf,_0x1269cb),_0x10a498=this[_0x8d38fb(0xb7)](_0x348e9e['target'][_0x8d38fb(0x1ed)]);this[_0x8d38fb(0x377)](_0x10a498);let _0x2e4d80=this['_injector']['createInstance'](_0x3c2d9d,_0x348e9e,_0x10a498[_0x8d38fb(0x1f5)][_0x8d38fb(0x1fe)]());return this[_0x8d38fb(0x1c7)][_0x8d38fb(0x15c)](_0xab8abf,_0x2e4d80),this[_0x8d38fb(0x23a)]['set'](_0xab8abf,_0x10a498['endpointKey']),_0x2e4d80;}[_0x387812(0x3bc)](_0x2c5524){const _0x3e4f9b=_0x387812;let _0x49487f=this[_0x3e4f9b(0x1c7)]['get'](_0x2c5524),_0x266cec=this[_0x3e4f9b(0x23a)][_0x3e4f9b(0x32a)](_0x2c5524);if(_0x49487f&&(this['_sessions'][_0x3e4f9b(0x3c5)](_0x2c5524),this[_0x3e4f9b(0x23a)][_0x3e4f9b(0x3c5)](_0x2c5524),_0x49487f[_0x3e4f9b(0xc5)]()),_0x266cec&&!this[_0x3e4f9b(0x156)](_0x266cec)){var _0x2f8723;let _0x7653fa=this[_0x3e4f9b(0x172)][_0x3e4f9b(0x32a)](_0x266cec);_0x7653fa==null||(_0x2f8723=_0x7653fa[_0x3e4f9b(0x1f5)]['getValue']())==null||_0x2f8723['close']();}}['reconnect'](){const _0x51d0b4=_0x387812;(this[_0x51d0b4(0x172)][_0x51d0b4(0x171)]?[...this[_0x51d0b4(0x172)][_0x51d0b4(0x2a0)]()]:[this[_0x51d0b4(0xb7)](void 0x0)])[_0x51d0b4(0x3e5)](_0x342404=>{const _0x4fbda2=_0x51d0b4;_0x342404['retryCount']=0x0,this[_0x4fbda2(0x1d1)](_0x342404),this[_0x4fbda2(0x17c)](_0x342404);});}[_0x387812(0x1d1)](_0x13f9f0){const _0x45f09e=_0x387812;_0x13f9f0['retryConnectingTimer']!=null&&(clearTimeout(_0x13f9f0[_0x45f09e(0x22d)]),_0x13f9f0['retryConnectingTimer']=null);}async[_0x387812(0x1f6)](_0x2d7285){const _0x17dcf6=_0x387812;let _0x53fc94=this[_0x17dcf6(0x327)][_0x17dcf6(0x346)](_0xeb659),_0x649778=_0x2d7285[_0x17dcf6(0x1ed)]??(_0x53fc94==null?void 0x0:_0x53fc94[_0x17dcf6(0x191)])??_0x17dcf6(0x369),_0x3e3b80=await this[_0x17dcf6(0x399)]['createSocket'](_0x649778);return _0x2d7285[_0x17dcf6(0x2bd)]=_0x3e3b80,_0x3e3b80;}async[_0x387812(0x377)](_0x318b10){const _0x40f2e1=_0x387812;try{let _0x435972=_0x318b10[_0x40f2e1(0x1f5)][_0x40f2e1(0x355)]()??_0x318b10[_0x40f2e1(0x2bd)]??await this['_createSocket'](_0x318b10);if(_0x435972){var _0x3600a9;let _0x49d4cc=_0x435972[_0x40f2e1(0x1da)];_0x435972[_0x40f2e1(0x1da)]=_0x2bc601=>(_0x2bc601['cmd']!==_0x2a4603['CombCmd'][_0x40f2e1(0x1cd)]&&this[_0x40f2e1(0x3d9)](_0x318b10),_0x49d4cc[_0x40f2e1(0x1f0)](_0x435972,[_0x2bc601])),(_0x3600a9=_0x318b10[_0x40f2e1(0x32d)])==null||_0x3600a9[_0x40f2e1(0x23d)](),_0x318b10[_0x40f2e1(0x32d)]=null,_0x318b10[_0x40f2e1(0x32d)]=_0x435972[_0x40f2e1(0x1d6)][_0x40f2e1(0x1a6)](_0x577e86=>this[_0x40f2e1(0x1bc)](_0x318b10,_0x435972,_0x577e86)),_0x435972[_0x40f2e1(0x224)]['pipe']((0x0,_0x6cc357[_0x40f2e1(0x310)])(0x1))[_0x40f2e1(0x1a6)](_0x27d8d2=>this[_0x40f2e1(0x1fc)]['error'](_0x40f2e1(0xd0),_0x27d8d2)),_0x435972[_0x40f2e1(0x2d1)]['pipe']((0x0,_0x6cc357[_0x40f2e1(0x310)])(0x1))[_0x40f2e1(0x1a6)](()=>{const _0xb849bf=_0x40f2e1;this[_0xb849bf(0x2c6)](_0x318b10,_0x435972);}),_0x435972[_0x40f2e1(0x3c3)][_0x40f2e1(0x298)]((0x0,_0x6cc357[_0x40f2e1(0x310)])(0x1))[_0x40f2e1(0x1a6)](_0x5c0d6c=>{const _0x3b6078=_0x40f2e1;this['_logService'][_0x3b6078(0x2f0)]('[CollaborationSessionService]',_0x3b6078(0x36b),_0x5c0d6c),this[_0x3b6078(0x12d)](_0x318b10);});}}catch(_0x3778d9){this[_0x40f2e1(0x1fc)][_0x40f2e1(0xcf)](_0x3778d9),this[_0x40f2e1(0x12d)](_0x318b10);}}[_0x387812(0x2c6)](_0x20e27d,_0xbaa2d1){const _0x3d3526=_0x387812;this['_logService'][_0x3d3526(0x2f0)](_0x3d3526(0x23f),'socket\x20open.'),_0xbaa2d1[_0x3d3526(0x1da)]({'cmd':_0x2a4603[_0x3d3526(0x396)][_0x3d3526(0x3cb)]}),this['_rescheduleHeartbeat'](_0x20e27d);}['_onOffline'](_0xc1e4de){const _0x518b94=_0x387812;_0xc1e4de['socketReady']=!0x1,_0xc1e4de[_0x518b94(0x2bd)]=null,this['_status$'][_0x518b94(0x316)](0x2),_0xc1e4de['socket$']['next'](null),this[_0x518b94(0x383)](_0xc1e4de),this[_0x518b94(0xb6)](_0xc1e4de);}[_0x387812(0x12d)](_0x1af954){const _0x4af17a=_0x387812;this[_0x4af17a(0x37d)](_0x1af954),this[_0x4af17a(0x156)](_0x1af954[_0x4af17a(0x112)])&&(_0x1af954[_0x4af17a(0x3f4)]<(this['_configService'][_0x4af17a(0x346)](_0x4af17a(0x144))??0x3)?(this[_0x4af17a(0x378)][_0x4af17a(0x11a)]({'id':_0x4af17a(0x3d5)}),this[_0x4af17a(0x17c)](_0x1af954)):this[_0x4af17a(0x378)][_0x4af17a(0x11a)]({'id':'SOCKET_FAILED'}));}[_0x387812(0x17c)](_0x3ffbf7){const _0x1c5779=_0x387812;let _0xd048a2=_0x3ffbf7['retryCount'],_0x5ca33e=this[_0x1c5779(0x327)]['getConfig'](_0xeb659),_0x1491b6=_0xd048a2===0x0?0x0:((_0x5ca33e==null?void 0x0:_0x5ca33e[_0x1c5779(0x16d)])??0x4e20)*0x2**_0xd048a2;_0x3ffbf7['retryConnectingTimer']=setTimeout(()=>{const _0x129b79=_0x1c5779;clearTimeout(_0x3ffbf7[_0x129b79(0x22d)]),_0x3ffbf7['retryConnectingTimer']=null,this[_0x129b79(0x377)](_0x3ffbf7);},_0x1491b6),_0x3ffbf7[_0x1c5779(0x3f4)]+=0x1;}async[_0x387812(0x1db)](_0x3d7001,_0x5235be){const _0x1f0102=_0x387812;return _0x1fabaf(_0x3d7001,_0x5235be,await this[_0x1f0102(0x138)][_0x1f0102(0xe3)]({'unitId':_0x3d7001,'unitType':_0x5235be}));}[_0x387812(0x1bc)](_0x312f90,_0x1911cd,_0x19413c){const _0x447ea9=_0x387812;let {cmd:_0x5e2237}=_0x19413c;_0x5e2237===_0x2a4603[_0x447ea9(0x396)][_0x447ea9(0x3cb)]&&!_0x312f90[_0x447ea9(0x17b)]&&(_0x1911cd[_0x447ea9(0x2c9)]=_0x19413c['data'][_0x447ea9(0x2c9)],_0x312f90[_0x447ea9(0x1f5)][_0x447ea9(0x316)](_0x1911cd),this['_status$'][_0x447ea9(0x316)](0x3),_0x312f90[_0x447ea9(0x17b)]=!0x0,_0x312f90[_0x447ea9(0x2bd)]=null),_0x5e2237===_0x2a4603[_0x447ea9(0x396)][_0x447ea9(0x2e2)]&&this[_0x447ea9(0x383)](_0x312f90),this[_0x447ea9(0x3d9)](_0x312f90);}['_hasSessionsForEndpoint'](_0x2f4679){const _0x4b2cf8=_0x387812;return[...this[_0x4b2cf8(0x23a)]['values']()][_0x4b2cf8(0x344)](_0x1b9f54=>_0x1b9f54===_0x2f4679);}['_getSocketChannel'](_0x1e9db6){const _0x5c1b85=_0x387812;let _0x209dd2=_0x1e9db6??'',_0x4a86d5=this[_0x5c1b85(0x172)][_0x5c1b85(0x32a)](_0x209dd2);if(_0x4a86d5)return _0x4a86d5;let _0x4ba9de={'endpointKey':_0x209dd2,'endpoint':_0x1e9db6,'socket$':new _0x3a9bce[(_0x5c1b85(0x24a))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels']['set'](_0x209dd2,_0x4ba9de),_0x4ba9de;}['_rescheduleHeartbeat'](_0x2b235d){const _0x5ede7d=_0x387812;this['_clearHeartbeatTimer'](_0x2b235d),_0x2b235d['sendHeartbeatTimer']=setTimeout(()=>this[_0x5ede7d(0x29a)](_0x2b235d),this['_configService'][_0x5ede7d(0x346)]('HEARTBEAT_INTERVAL')??0x7530);}[_0x387812(0x29a)](_0x414a16){const _0x367ef0=_0x387812;_0x414a16[_0x367ef0(0x1f5)]['getValue']()[_0x367ef0(0x1da)]({'cmd':_0x2a4603[_0x367ef0(0x396)]['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x414a16);}['_waitForHeartbeatResponse'](_0x59984e){const _0x459677=_0x387812;_0x59984e[_0x459677(0x164)]=setTimeout(()=>this[_0x459677(0x12d)](_0x59984e),this['_configService'][_0x459677(0x346)](_0x459677(0x278))??0x4e20);}[_0x387812(0xb6)](_0x44465f){const _0x2e0f18=_0x387812;_0x44465f[_0x2e0f18(0x1b2)]!=null&&(clearTimeout(_0x44465f[_0x2e0f18(0x1b2)]),_0x44465f['sendHeartbeatTimer']=null);}[_0x387812(0x383)](_0x7b1190){const _0x3a808b=_0x387812;_0x7b1190[_0x3a808b(0x164)]!=null&&(clearTimeout(_0x7b1190[_0x3a808b(0x164)]),_0x7b1190['timeoutTimer']=null);}};_0x16256e=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x1,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x3,_0x3155d1),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x5,_0xfd750d),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Optional'])(_0x3bc50a))],_0x16256e);let _0x56403c=class extends _0x3ea0ad['RxDisposable']{constructor(_0x5612d0,_0x1d4274,_0xa99950,_0x2208e1){const _0xa680f2=_0x387812;var _0x19aaf1;super(),this[_0xa680f2(0x26d)]=_0x5612d0,this['_collabSessionService']=_0x1d4274,this[_0xa680f2(0x327)]=_0xa99950,this[_0xa680f2(0xc8)]=_0x2208e1,_0x309f50(this,'_entities',new Map()),_0x309f50(this,_0xa680f2(0x175),new _0x3a9bce[(_0xa680f2(0x20a))]()),_0x309f50(this,_0xa680f2(0xd7),this[_0xa680f2(0x175)][_0xa680f2(0x1fe)]()),((_0x19aaf1=this[_0xa680f2(0x327)][_0xa680f2(0x346)](_0xa680f2(0x315)))==null?void 0x0:_0x19aaf1[_0xa680f2(0x392)])!==!0x1&&this['_init']();}[_0x387812(0x102)](){const _0x33e555=_0x387812;super[_0x33e555(0x102)](),this[_0x33e555(0x2e9)][_0x33e555(0x3e5)](_0x3e156a=>_0x3e156a['dispose']()),this[_0x33e555(0x2e9)][_0x33e555(0x19d)]();}[_0x387812(0x25f)](_0x35adcd){const _0x4fe19d=_0x387812;return this[_0x4fe19d(0x2e9)][_0x4fe19d(0x32a)](_0x35adcd)??null;}[_0x387812(0x12a)](_0x6760b5){const _0x508e0a=_0x387812;let _0x11dc1a=this[_0x508e0a(0x25f)](_0x6760b5);return _0x11dc1a?(0x0,_0x3a9bce['of'])(_0x11dc1a):this['_entityInit$'][_0x508e0a(0x298)]((0x0,_0x6cc357['filter'])(_0x1eceb0=>_0x1eceb0[_0x508e0a(0x2be)]===_0x6760b5));}[_0x387812(0x2eb)](_0x458601){const _0x10641d=_0x387812;return(0x0,_0x3a9bce['firstValueFrom'])(this[_0x10641d(0x12a)](_0x458601)[_0x10641d(0x298)]((0x0,_0x6cc357[_0x10641d(0x1a7)])(()=>void 0x0)));}[_0x387812(0x3a4)](){const _0x23374c=_0x387812;this[_0x23374c(0xc8)][_0x23374c(0x266)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x31e)])[_0x23374c(0x298)]((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))[_0x23374c(0x1a6)](async _0x3efbb4=>{const _0x531f88=_0x23374c;let _0x17d1c4=_0x3efbb4[_0x531f88(0xaf)][_0x531f88(0x1c4)](),_0x28906f=await this[_0x531f88(0x353)](_0x17d1c4,_0x3ea0ad[_0x531f88(0x20e)][_0x531f88(0x31e)]);this[_0x531f88(0x2e9)][_0x531f88(0x15c)](_0x17d1c4,_0x28906f);}),this[_0x23374c(0xc8)][_0x23374c(0x266)](_0x3ea0ad[_0x23374c(0x20e)]['UNIVER_DOC'])[_0x23374c(0x298)]((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))['pipe']((0x0,_0x6cc357[_0x23374c(0x2d7)])(_0x2df275=>!_0x2df275[_0x23374c(0xaf)][_0x23374c(0x1c4)]()[_0x23374c(0x370)]('__')))['subscribe'](async _0x72c5d6=>{const _0x218c33=_0x23374c;let _0x355c72=_0x72c5d6[_0x218c33(0xaf)][_0x218c33(0x1c4)](),_0x309ea7=await this[_0x218c33(0x353)](_0x355c72,_0x3ea0ad[_0x218c33(0x20e)][_0x218c33(0x2e8)]);this[_0x218c33(0x2e9)][_0x218c33(0x15c)](_0x355c72,_0x309ea7);}),this[_0x23374c(0xc8)]['getTypeOfUnitAdded$'](_0x3ea0ad['UniverInstanceType'][_0x23374c(0x105)])[_0x23374c(0x298)]((0x0,_0x3a9bce['takeUntil'])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))[_0x23374c(0x1a6)](async _0x36ea16=>{const _0x4582fa=_0x23374c;let _0x2a889e=_0x36ea16['unit'][_0x4582fa(0x1c4)](),_0x36d833=await this[_0x4582fa(0x353)](_0x2a889e,_0x3ea0ad[_0x4582fa(0x20e)][_0x4582fa(0x105)]);this[_0x4582fa(0x2e9)]['set'](_0x2a889e,_0x36d833);}),this['_univerInstanceService'][_0x23374c(0x266)](_0x3ea0ad['UniverInstanceType'][_0x23374c(0x237)])[_0x23374c(0x298)]((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this['dispose$']),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))[_0x23374c(0x1a6)](async _0x479c41=>{const _0x3edc5f=_0x23374c;let _0x4a8ca1=_0x479c41[_0x3edc5f(0xaf)]['getUnitId'](),_0x29eb2a=await this[_0x3edc5f(0x353)](_0x4a8ca1,_0x3ea0ad[_0x3edc5f(0x20e)][_0x3edc5f(0x237)]);this[_0x3edc5f(0x2e9)][_0x3edc5f(0x15c)](_0x4a8ca1,_0x29eb2a);}),this[_0x23374c(0xc8)][_0x23374c(0x266)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x382)])['pipe']((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))[_0x23374c(0x1a6)](async _0x2a85a7=>{const _0x471540=_0x23374c;let _0x482984=_0x2a85a7[_0x471540(0xaf)][_0x471540(0x1c4)](),_0x583386=await this[_0x471540(0x353)](_0x482984,_0x3ea0ad['UniverInstanceType'][_0x471540(0x382)]);this[_0x471540(0x2e9)][_0x471540(0x15c)](_0x482984,_0x583386);}),this['_univerInstanceService'][_0x23374c(0x266)](_0x3ea0ad['UniverInstanceType']['UNIVER_PDF'])[_0x23374c(0x298)]((0x0,_0x3a9bce['takeUntil'])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))['subscribe'](async _0x6eea6d=>{const _0x293ec8=_0x23374c;let _0x351820=_0x6eea6d['unit'][_0x293ec8(0x1c4)](),_0x5f1f76=await this[_0x293ec8(0x353)](_0x351820,_0x3ea0ad['UniverInstanceType']['UNIVER_PDF']);this['_entities']['set'](_0x351820,_0x5f1f76);}),(0x0,_0x3a9bce[_0x23374c(0x365)])(this['_univerInstanceService'][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x31e)]),this[_0x23374c(0xc8)][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x2e8)]),this['_univerInstanceService'][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x105)]),this[_0x23374c(0xc8)][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)]['UNIVER_BOARD']),this[_0x23374c(0xc8)][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x382)]),this[_0x23374c(0xc8)][_0x23374c(0x19f)](_0x3ea0ad['UniverInstanceType'][_0x23374c(0x389)]))[_0x23374c(0x298)]((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this[_0x23374c(0x235)]))[_0x23374c(0x1a6)](_0x403880=>{const _0x56dfd9=_0x23374c;let _0x42b704=_0x403880[_0x56dfd9(0x1c4)](),_0x5012b1=this[_0x56dfd9(0x2e9)][_0x56dfd9(0x32a)](_0x42b704);_0x5012b1&&(_0x5012b1[_0x56dfd9(0x102)](),this[_0x56dfd9(0x2e9)][_0x56dfd9(0x3c5)](_0x42b704));});}async[_0x387812(0x353)](_0x4cb7ba,_0x1c54b7){const _0x33ff58=_0x387812;let _0x2f921f=await this[_0x33ff58(0x2de)][_0x33ff58(0x1f8)](_0x4cb7ba),_0x21ddae=this[_0x33ff58(0x26d)][_0x33ff58(0xc4)](this[_0x33ff58(0x2a5)](_0x1c54b7),_0x4cb7ba,_0x1c54b7,_0x2f921f);return await _0x21ddae[_0x33ff58(0x183)](),this['_entityInit$'][_0x33ff58(0x316)](_0x21ddae),_0x21ddae;}[_0x387812(0x2a5)](_0x119d55){const _0x246df7=_0x387812;switch(_0x119d55){case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x2e8)]:return _0x4264a3;case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x31e)]:return _0x1a3266;case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x105)]:return _0xa14eef;case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x237)]:return _0x2b44e6;case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x382)]:return _0x461db8;case _0x3ea0ad[_0x246df7(0x20e)]['UNIVER_PDF']:return _0x56abff;default:throw Error(_0x246df7(0x1a2)+_0x119d55);}}};_0x56403c=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x1,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x16256e)),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x3,_0x3ea0ad[_0x387812(0x2fe)])],_0x56403c);var _0x297e46='@univerjs-pro/collaboration-client',_0x18149d=_0x387812(0x3b0);let _0xe73302=class extends _0x3ea0ad['Disposable']{constructor(_0x4fbb67,_0x3e5f1a){const _0x1cf987=_0x387812;super(),this[_0x1cf987(0xc8)]=_0x4fbb67,this[_0x1cf987(0x327)]=_0x3e5f1a,this['_init']();}[_0x387812(0x3a4)](){const _0x510b80=_0x387812;this[_0x510b80(0x1b5)](this[_0x510b80(0xc8)][_0x510b80(0x341)]['subscribe'](()=>{const _0x35b265=_0x510b80;let _0x5eb8dc=this[_0x35b265(0xc8)][_0x35b265(0x12c)](),_0x15c99c=this[_0x35b265(0x327)][_0x35b265(0x346)](_0x35b265(0x133))??_0x35b265(0x152);_0x5eb8dc instanceof _0x3ea0ad['Workbook']&&(_0x15c99c=_0x5eb8dc['name']),document[_0x35b265(0x3aa)]=_0x15c99c;}));}};_0xe73302=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad['IUniverInstanceService']),_0x29ab6d(0x1,_0x3ea0ad['IConfigService'])],_0xe73302);let _0x37f9b3=(0x0,_0x3ea0ad[_0x387812(0x359)])(_0x387812(0xc2)),_0x4d9046=class{constructor(_0x2e7e51,_0x1a4a20,_0x2187ee){const _0x545af1=_0x387812;this[_0x545af1(0x20d)]=_0x2e7e51,this[_0x545af1(0x327)]=_0x1a4a20,this[_0x545af1(0xc8)]=_0x2187ee;}[_0x387812(0x297)](){const _0x81e4f8=_0x387812;return this['_getConfig']()[_0x81e4f8(0x35d)]??{};}async[_0x387812(0x28b)](_0x1320ce){const _0x341020=_0x387812;let _0x4609e1=this[_0x341020(0x297)]();if(_0x3c8265(_0x1320ce,_0x4609e1),_0x4609e1[_0x341020(0x33f)])return _0x4609e1[_0x341020(0x33f)](_0x1320ce);let _0x453991=await this[_0x341020(0x125)](_0x1320ce);return{'id':_0x453991,'name':_0x1320ce[_0x341020(0xe8)],'mimeType':_0x1320ce[_0x341020(0x131)],'size':_0x1320ce[_0x341020(0x171)],'sourceType':_0x3ea0ad[_0x341020(0x39b)][_0x341020(0x1d7)],'source':_0x453991};}async[_0x387812(0x137)](_0x32f222,_0x3d0340){const _0x142dc7=_0x387812;if(_0x3d0340!==_0x3ea0ad[_0x142dc7(0x39b)]['UUID'])return _0x32f222;let _0x1131e7=(await this['_httpService']['get'](this[_0x142dc7(0x14e)]()[_0x142dc7(0x14d)](_0x142dc7(0x391),_0x32f222)))[_0x142dc7(0x2a8)];if(_0x1131e7['error']&&_0x1131e7[_0x142dc7(0xcf)][_0x142dc7(0x299)]!==_0x2a4603[_0x142dc7(0x16b)]['OK'])throw _0x1131e7[_0x142dc7(0xcf)];if(!_0x1131e7[_0x142dc7(0x29b)])throw Error(_0x142dc7(0x302));return(0x0,_0x3ea0ad[_0x142dc7(0x3ba)])(_0x1131e7[_0x142dc7(0x29b)],this['_getDownloadEndpointURL']());}async[_0x387812(0x125)](_0x5079b9){const _0x40bfe7=_0x387812;let _0x421cd2=this[_0x40bfe7(0xc8)][_0x40bfe7(0x12c)](),_0x528f4e=_0x421cd2==null?void 0x0:_0x421cd2[_0x40bfe7(0x1c4)]();if(!_0x528f4e)throw Error(_0x40bfe7(0x158));let _0x9424d3=new FormData();_0x9424d3[_0x40bfe7(0x330)]('file',_0x5079b9);let _0x31626d=this[_0x40bfe7(0x1f7)]()+_0x40bfe7(0x272)+_0x5079b9[_0x40bfe7(0x171)][_0x40bfe7(0x242)]()+'&source='+_0x2a4603[_0x40bfe7(0x347)][_0x40bfe7(0xec)]+_0x40bfe7(0x167)+encodeURIComponent(_0x528f4e),_0x482470=(await this[_0x40bfe7(0x20d)][_0x40bfe7(0x233)](_0x31626d,{'body':_0x9424d3}))[_0x40bfe7(0x2a8)][_0x40bfe7(0x28e)];if(typeof _0x482470!=_0x40bfe7(0x17f)||!_0x482470)throw Error(_0x40bfe7(0x307));return _0x482470;}[_0x387812(0x1f7)](){const _0x3e1c19=_0x387812;return this[_0x3e1c19(0x1c3)]()[_0x3e1c19(0x185)]??_0x3e1c19(0x3a2);}[_0x387812(0x14e)](){const _0x287cac=_0x387812;return this['_getConfig']()[_0x287cac(0x289)]??'/universer-api/file/{fileID}/sign-url';}['_getDownloadEndpointURL'](){const _0x35f23c=_0x387812;let _0x2adb71=this[_0x35f23c(0x1c3)]();return _0x2adb71[_0x35f23c(0x39e)]?_0x2adb71[_0x35f23c(0x39e)]:typeof location<'u'?location['origin']:_0x2adb71[_0x35f23c(0x185)]??'';}[_0x387812(0x1c3)](){const _0x474d67=_0x387812;return this['_configService'][_0x474d67(0x346)]('collaboration-client.config')??{};}};_0x4d9046=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0['HTTPService'])),_0x29ab6d(0x1,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x2b5)])),_0x29ab6d(0x2,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x2fe)]))],_0x4d9046);function _0x3c8265(_0x2c02d4,_0x3806e8){const _0x598684=_0x387812;var _0x11edb8;if(_0x3806e8[_0x598684(0x21a)]!=null&&_0x2c02d4[_0x598684(0x171)]>_0x3806e8[_0x598684(0x21a)])throw Error(_0x598684(0x2fd));if((_0x11edb8=_0x3806e8['accept'])!=null&&_0x11edb8[_0x598684(0x141)]&&!_0x3806e8[_0x598684(0x268)]['some'](_0x2df29a=>_0x2c02d4[_0x598684(0x131)]===_0x2df29a||_0x2c02d4[_0x598684(0xe8)]['endsWith'](_0x2df29a)||_0x2df29a[_0x598684(0x2c8)]('/*')&&_0x2c02d4[_0x598684(0x131)]['startsWith'](_0x2df29a['slice'](0x0,-0x1))))throw Error(_0x598684(0x159));}let _0x2d5274=class{constructor(_0x5ccb9e,_0x187289,_0x372b3f){const _0x2c4836=_0x387812;this[_0x2c4836(0x327)]=_0x5ccb9e,this['_httpService']=_0x187289,this[_0x2c4836(0x282)]=_0x372b3f,this[_0x2c4836(0x183)]();}[_0x387812(0x183)](){const _0x1d6849=_0x387812;this['_httpService'][_0x1d6849(0x216)]({'priority':0x1,'interceptor':(_0x4cd764,_0x1aae2d)=>_0x1aae2d(_0x4cd764)[_0x1d6849(0x298)]((0x0,_0x3a9bce['concatMap'])(async _0x47733e=>{const _0x16ce0b=_0x1d6849;let _0xad4834=_0x47733e;if(_0xad4834['status']===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window['confirm'](this[_0x16ce0b(0x282)]['t'](_0x16ce0b(0x251)))){let _0x54645f=window['encodeURIComponent'](window[_0x16ce0b(0x25c)]['href']);window['location'][_0x16ce0b(0x3a6)]=this['_getLoginPath']()+_0x16ce0b(0x1aa)+_0x54645f;}}return _0xad4834;}))});}[_0x387812(0x189)](){const _0x115847=_0x387812;let _0x5887ce=this[_0x115847(0x327)][_0x115847(0x346)](_0xeb659);return(_0x5887ce==null?void 0x0:_0x5887ce[_0x115847(0x38b)])??_0x115847(0x1fa);}};_0x2d5274=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x1,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0['HTTPService'])),_0x29ab6d(0x2,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)]))],_0x2d5274);let _0xd648b3=class extends _0x3ea0ad[_0x387812(0x18f)]{constructor(_0x1ee45e,_0x55eeae){const _0x5022f1=_0x387812;super(),this[_0x5022f1(0xb1)]=_0x1ee45e,this[_0x5022f1(0x327)]=_0x55eeae,_0x309f50(this,_0x5022f1(0xab),!0x1),this[_0x5022f1(0xc1)]();}[_0x387812(0xc1)](){const _0x26731f=_0x387812;let _0x212be2=this;this[_0x26731f(0x1b5)](this[_0x26731f(0xb1)][_0x26731f(0x216)]({'priority':0x3e7,'interceptor':(0x0,_0x2e88c0['MergeInterceptorFactory'])({'isMatch'(_0x533ac2){const _0x38aa27=_0x26731f;var _0x41171b;if(_0x533ac2['method']===_0x38aa27(0x342)&&(_0x41171b=_0x533ac2['requestParams'])!=null&&_0x41171b[_0x38aa27(0x2a8)]){let {objectID:_0x1afafb,objectType:_0x2ec9de}=_0x533ac2[_0x38aa27(0x145)]['body']||{};if(!_0x1afafb||_0x2ec9de===void 0x0)return!0x1;let _0xc84d54=_0x212be2[_0x38aa27(0x3ad)]()+'/'+_0x2ec9de+'/object/'+_0x1afafb+_0x38aa27(0x127);if(_0x533ac2[_0x38aa27(0x29b)]===_0xc84d54)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5610ad){const _0x36c961=_0x26731f;var _0x2f1cd7;return(_0x2f1cd7=_0x5610ad[_0x36c961(0x145)])==null?void 0x0:_0x2f1cd7[_0x36c961(0x2a8)];},'mergeParamsToRequest'(_0x16ecaa,_0x2cf6f6){const _0x12cdf0=_0x26731f;let _0x3ef102=_0x212be2[_0x12cdf0(0x3ad)]()+'/-/object/-/batch_allowed',_0xfc7376=_0x16ecaa[_0x12cdf0(0x3cf)]((_0x25103b,_0x19ba60)=>{const _0x144684=_0x12cdf0;let {unitID:_0x1db0b7,objectID:_0x53042d,objectType:_0x2456ef,actions:_0x436c82}=_0x19ba60;return _0x25103b[_0x1db0b7]||(_0x25103b[_0x1db0b7]={}),_0x25103b[_0x1db0b7][_0x53042d]||(_0x25103b[_0x1db0b7][_0x53042d]={'objectID':_0x53042d,'objectType':_0x2456ef,'actions':[]}),_0x25103b[_0x1db0b7][_0x53042d]['actions'][_0x144684(0x223)](..._0x436c82),_0x25103b;},{}),_0x3272d6=[];for(let _0x5f45c5 in _0xfc7376)for(let _0x371a8e in _0xfc7376[_0x5f45c5]){let {actions:_0x4d9cee,objectType:_0x30b230}=_0xfc7376[_0x5f45c5][_0x371a8e],_0x12a437=[...new Set(_0x4d9cee)];_0x3272d6[_0x12cdf0(0x223)]({'unitID':_0x5f45c5,'objectID':_0x371a8e,'objectType':_0x30b230,'actions':_0x12a437});}return new _0x2e88c0['HTTPRequest'](_0x12cdf0(0x342),_0x3ef102,{'headers':_0x2cf6f6[_0x12cdf0(0x3b3)],'withCredentials':_0x2cf6f6[_0x12cdf0(0x12e)],'responseType':_0x2cf6f6[_0x12cdf0(0x178)],'body':{'requests':_0x3272d6}});}},{'distributeResult'(_0x127320,_0x201510){let {objectActions:_0x337a70}=_0x127320;return _0x201510['map'](_0xcaad4f=>{const _0x5e0e7e=_0x1600;let {unitID:_0x1a7983,objectID:_0x560a15,actions:_0x25634e}=_0xcaad4f,_0x3b71f1=_0x337a70['find'](_0x524ae9=>_0x524ae9['unitID']===_0x1a7983&&_0x524ae9[_0x5e0e7e(0x220)]===_0x560a15);return{'config':_0xcaad4f,'result':{'actions':_0x25634e[_0x5e0e7e(0x1a7)](_0x4e4a5b=>_0x3b71f1==null?void 0x0:_0x3b71f1['actions'][_0x5e0e7e(0x1ee)](_0x31ecde=>_0x31ecde[_0x5e0e7e(0x32f)]===_0x4e4a5b))[_0x5e0e7e(0x2d7)](_0x2e2efb=>!!_0x2e2efb),'error':_0x127320[_0x5e0e7e(0xcf)]}};});}})}));}[_0x387812(0x3ad)](){const _0x4e8e35=_0x387812;let _0x15d0f6=this[_0x4e8e35(0x327)][_0x4e8e35(0x346)](_0xeb659);return(_0x15d0f6==null?void 0x0:_0x15d0f6[_0x4e8e35(0x400)])??_0x4e8e35(0x184);}async[_0x387812(0xf6)](_0x3db82f){const _0x539a9c=_0x387812;let _0x451b50=this[_0x539a9c(0x3ad)]()+'/'+_0x3db82f['objectType']+'/object';return(await this['_HTTPService'][_0x539a9c(0x233)](_0x451b50,{'body':_0x3db82f}))[_0x539a9c(0x2a8)][_0x539a9c(0x220)]||'';}async[_0x387812(0x188)](_0x2cf155){const _0x58f0f0=_0x387812;let _0x464122=this['_getAPIPrefixPath']()+'/-/object/list';return(await this['_HTTPService'][_0x58f0f0(0x233)](_0x464122,{'body':_0x2cf155}))[_0x58f0f0(0x2a8)][_0x58f0f0(0x374)];}async[_0x387812(0x19b)](_0x52b7a9){const _0x290c79=_0x387812;var _0x1b6556;let _0x284d8a=this[_0x290c79(0x3ad)]()+'/'+_0x52b7a9[_0x290c79(0x246)]+_0x290c79(0x2fa)+_0x52b7a9[_0x290c79(0x220)],_0x55ec43=await this[_0x290c79(0xb1)][_0x290c79(0x27b)](_0x284d8a,{'body':_0x52b7a9});if((_0x55ec43==null||(_0x1b6556=_0x55ec43[_0x290c79(0x2a8)])==null||(_0x1b6556=_0x1b6556[_0x290c79(0xcf)])==null?void 0x0:_0x1b6556[_0x290c79(0x299)])!==0x1)throw Error(_0x290c79(0xd3));}async['allowed'](_0x48d6ae){const _0xfb47cb=_0x387812;let _0x31be8b=this[_0xfb47cb(0x3ad)]()+'/'+_0x48d6ae[_0xfb47cb(0x246)]+_0xfb47cb(0x2fa)+_0x48d6ae[_0xfb47cb(0x220)]+_0xfb47cb(0x127);return(await this[_0xfb47cb(0xb1)]['post'](_0x31be8b,{'body':_0x48d6ae}))['body']['actions'];}async[_0x387812(0x2f5)](_0x19811f){const _0xe5445f=_0x387812;let _0x14e3df=this[_0xe5445f(0x3ad)]()+_0xe5445f(0xf3);return(await this[_0xe5445f(0xb1)][_0xe5445f(0x233)](_0x14e3df,{'body':{'requests':_0x19811f}}))['body'][_0xe5445f(0x3e2)];}async[_0x387812(0x386)](_0x310d24){const _0x4fcaad=_0x387812;let _0x5cf539=this[_0x4fcaad(0x3ad)]()+'/'+_0x310d24['objectType']+_0x4fcaad(0x357),_0x2ff788=await this[_0x4fcaad(0xb1)][_0x4fcaad(0x233)](_0x5cf539,{'body':_0x310d24});return{'roles':_0x2ff788[_0x4fcaad(0x2a8)]['roles'],'actions':_0x2ff788['body'][_0x4fcaad(0x34c)]};}async['deleteCollaborator'](_0x477f95){const _0x9c8dd6=_0x387812;let _0x38593b=this[_0x9c8dd6(0x3ad)]()+'/collaborator';await this[_0x9c8dd6(0xb1)][_0x9c8dd6(0x3c5)](_0x38593b,{'params':{'collaboratorID':_0x477f95[_0x9c8dd6(0x364)],'objectID':_0x477f95['objectID'],'unitID':_0x477f95['unitID']}});}async[_0x387812(0x134)](_0x2370f2){const _0xeafed4=_0x387812;let _0x643e4=this[_0xeafed4(0x3ad)]()+_0xeafed4(0x33b);await this[_0xeafed4(0xb1)][_0xeafed4(0x3d2)](_0x643e4,{'body':_0x2370f2});}async[_0x387812(0x31f)](_0x227616){const _0x5cb920=_0x387812;let _0x300779=this['_getAPIPrefixPath']()+_0x5cb920(0x33b);await this[_0x5cb920(0xb1)][_0x5cb920(0x233)](_0x300779,{'body':_0x227616});}async[_0x387812(0x1cf)](_0x4098d4){const _0x3632e5=_0x387812;let _0x44322c=this[_0x3632e5(0x3ad)]()+_0x3632e5(0x33b),_0x1de936=await this['_HTTPService'][_0x3632e5(0x32a)](_0x44322c,{'params':{'objectID':_0x4098d4[_0x3632e5(0x220)],'unitID':_0x4098d4['unitID']}});return this[_0x3632e5(0x3f7)](_0x1de936[_0x3632e5(0x2a8)][_0x3632e5(0x376)]??!0x1),_0x1de936[_0x3632e5(0x2a8)][_0x3632e5(0x193)];}async['putCollaborators'](_0x24f73d){const _0x13ba98=_0x387812;let _0x6a861=this[_0x13ba98(0x3ad)]()+_0x13ba98(0x33b);await this[_0x13ba98(0xb1)][_0x13ba98(0x27b)](_0x6a861,{'body':_0x24f73d});}['setCfgEnableObjInherit'](_0x5ce5e4){const _0x1c12d2=_0x387812;this[_0x1c12d2(0xab)]=_0x5ce5e4;}[_0x387812(0x292)](){return this['_cfgEnableObjInherit'];}};_0xd648b3=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0[_0x387812(0x264)])),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['IConfigService']))],_0xd648b3);function _0x449244(_0x46d9ab){const _0x36a2d0=_0x387812;return _0x46d9ab instanceof Uint8Array||ArrayBuffer[_0x36a2d0(0x197)](_0x46d9ab)&&_0x46d9ab['constructor'][_0x36a2d0(0xe8)]===_0x36a2d0(0x1ca)&&_0x36a2d0(0xde)in _0x46d9ab&&_0x46d9ab[_0x36a2d0(0xde)]===0x1;}function _0x25e2d3(_0x6853a9){const _0xb254b6=_0x387812;if(typeof _0x6853a9!=_0xb254b6(0x2bc))throw TypeError(_0xb254b6(0x1bf)+typeof _0x6853a9);if(!Number[_0xb254b6(0x136)](_0x6853a9)||_0x6853a9<0x0)throw RangeError(_0xb254b6(0x100)+_0x6853a9);}function _0x21ee81(_0x173a94,_0x10df51,_0x1fcf9c=''){const _0x609dd6=_0x387812;let _0x44ab54=_0x449244(_0x173a94),_0x3c766d=_0x173a94==null?void 0x0:_0x173a94[_0x609dd6(0x141)],_0x529eff=_0x10df51!==void 0x0;if(!_0x44ab54||_0x529eff&&_0x3c766d!==_0x10df51){let _0xfcff2e=_0x1fcf9c&&'\x22'+_0x1fcf9c+'\x22\x20',_0xa170c0=_0x529eff?'\x20of\x20length\x20'+_0x10df51:'',_0x2dc24b=_0x44ab54?'length='+_0x3c766d:'type='+typeof _0x173a94,_0x1f3412=_0xfcff2e+_0x609dd6(0x196)+_0xa170c0+_0x609dd6(0x345)+_0x2dc24b;throw _0x44ab54?RangeError(_0x1f3412):TypeError(_0x1f3412);}return _0x173a94;}function _0x58d5f9(_0x4be763){const _0x3b230d=_0x387812;return new Uint32Array(_0x4be763[_0x3b230d(0x114)],_0x4be763[_0x3b230d(0x301)],Math['floor'](_0x4be763['byteLength']/0x4));}function _0x3322bb(..._0x5a43bf){const _0x449fbf=_0x387812;for(let _0x4fa629=0x0;_0x4fa629<_0x5a43bf[_0x449fbf(0x141)];_0x4fa629++)_0x5a43bf[_0x4fa629][_0x449fbf(0x385)](0x0);}let _0x5777bd=new Uint8Array(new Uint32Array([0x11223344])[_0x387812(0x114)])[0x0]===0x44,_0x2c99ce=_0x53f3df=>_0x53f3df<<0x18&0xff000000|_0x53f3df<<0x8&0xff0000|_0x53f3df>>>0x8&0xff00|_0x53f3df>>>0x18&0xff,_0x32c214=_0x5777bd?_0x34d021=>_0x34d021:_0x1c4443=>{const _0x4d63ff=_0x387812;for(let _0x4e8bff=0x0;_0x4e8bff<_0x1c4443[_0x4d63ff(0x141)];_0x4e8bff++)_0x1c4443[_0x4e8bff]=_0x2c99ce(_0x1c4443[_0x4e8bff]);return _0x1c4443;};function _0x4026a5(_0x34cb92){const _0x1de5a7=_0x387812;if(typeof _0x34cb92!=_0x1de5a7(0x17f))throw TypeError(_0x1de5a7(0x254));return new Uint8Array(new TextEncoder()['encode'](_0x34cb92));}function _0xff90e1(_0x3032c9,_0x485b1f){const _0x21e194=_0x387812;return!_0x3032c9[_0x21e194(0x143)]||!_0x485b1f[_0x21e194(0x143)]?!0x1:_0x3032c9[_0x21e194(0x114)]===_0x485b1f['buffer']&&_0x3032c9[_0x21e194(0x301)]<_0x485b1f[_0x21e194(0x301)]+_0x485b1f[_0x21e194(0x143)]&&_0x485b1f[_0x21e194(0x301)]<_0x3032c9['byteOffset']+_0x3032c9[_0x21e194(0x143)];}function _0xe733e1(_0x1141be,_0x377272){const _0xa759e8=_0x387812;if(_0xff90e1(_0x1141be,_0x377272)&&_0x1141be[_0xa759e8(0x301)]<_0x377272[_0xa759e8(0x301)])throw Error(_0xa759e8(0x15f));}function _0x139a1d(..._0x5b7187){const _0xdd4894=_0x387812;let _0x3b6a0f=0x0;for(let _0x2d6d58=0x0;_0x2d6d58<_0x5b7187[_0xdd4894(0x141)];_0x2d6d58++){let _0x214714=_0x5b7187[_0x2d6d58];_0x21ee81(_0x214714),_0x3b6a0f+=_0x214714['length'];}let _0x3bdac5=new Uint8Array(_0x3b6a0f);for(let _0x5bf9de=0x0,_0x5850c9=0x0;_0x5bf9de<_0x5b7187[_0xdd4894(0x141)];_0x5bf9de++){let _0x4b098b=_0x5b7187[_0x5bf9de];_0x3bdac5[_0xdd4894(0x15c)](_0x4b098b,_0x5850c9),_0x5850c9+=_0x4b098b[_0xdd4894(0x141)];}return _0x3bdac5;}let _0x2a7d01=(_0x1efa0b,_0x325761)=>{const _0x327a25=_0x387812;function _0x32ee4d(_0x2d7c6b,..._0x4d1c49){const _0x2485aa=_0x1600;if(_0x21ee81(_0x2d7c6b,void 0x0,_0x2485aa(0x26e)),_0x1efa0b[_0x2485aa(0x3a7)]!==void 0x0){let _0x4f3a3c=_0x4d1c49[0x0];_0x21ee81(_0x4f3a3c,_0x1efa0b[_0x2485aa(0x3f1)]?void 0x0:_0x1efa0b[_0x2485aa(0x3a7)],_0x2485aa(0x200));}let _0x41a268=_0x1efa0b[_0x2485aa(0x336)];_0x41a268&&_0x4d1c49[0x1]!==void 0x0&&_0x21ee81(_0x4d1c49[0x1],void 0x0,_0x2485aa(0x2c3));let _0x53718d=_0x325761(_0x2d7c6b,..._0x4d1c49),_0x74fc61=(_0x2e53d4,_0x162b3b)=>{const _0x46d69e=_0x2485aa;if(_0x162b3b!==void 0x0){if(_0x2e53d4!==0x2)throw Error(_0x46d69e(0x155));_0x21ee81(_0x162b3b,void 0x0,'output');}},_0x21f1c2=!0x1;return{'encrypt'(_0x5cb051,_0x18486f){const _0x2ba004=_0x2485aa;if(_0x21f1c2)throw Error(_0x2ba004(0x2f3));return _0x21f1c2=!0x0,_0x21ee81(_0x5cb051),_0x74fc61(_0x53718d[_0x2ba004(0x149)]['length'],_0x18486f),_0x53718d[_0x2ba004(0x149)](_0x5cb051,_0x18486f);},'decrypt'(_0x4dc291,_0x29296d){const _0x4bd930=_0x2485aa;if(_0x21ee81(_0x4dc291),_0x41a268&&_0x4dc291[_0x4bd930(0x141)]<_0x41a268)throw Error(_0x4bd930(0x153)+_0x41a268);return _0x74fc61(_0x53718d[_0x4bd930(0x3e9)]['length'],_0x29296d),_0x53718d['decrypt'](_0x4dc291,_0x29296d);}};}return Object[_0x327a25(0x334)](_0x32ee4d,_0x1efa0b),_0x32ee4d;};function _0x345aad(_0x421f20,_0x462fd5,_0x58bb01=!0x0){const _0xe5614a=_0x387812;if(_0x462fd5===void 0x0)return new Uint8Array(_0x421f20);if(_0x21ee81(_0x462fd5,void 0x0,'output'),_0x462fd5[_0xe5614a(0x141)]!==_0x421f20)throw Error(_0xe5614a(0x243)+_0x421f20+_0xe5614a(0xd5)+_0x462fd5['length']);if(_0x58bb01&&!_0x32710f(_0x462fd5))throw Error(_0xe5614a(0x2dd));return _0x462fd5;}function _0x32710f(_0x41e3d6){const _0x58fd8c=_0x387812;return _0x41e3d6[_0x58fd8c(0x301)]%0x4==0x0;}function _0x10715d(_0x3aa5e9){const _0x4d1440=_0x387812;return Uint8Array[_0x4d1440(0x287)](_0x21ee81(_0x3aa5e9));}function _0x317914(_0x4010f0=0x20){const _0x101459=_0x387812;_0x25e2d3(_0x4010f0);let _0x1cc06e=typeof globalThis=='object'?globalThis[_0x101459(0x33d)]:null;if(typeof(_0x1cc06e==null?void 0x0:_0x1cc06e[_0x101459(0xf2)])!=_0x101459(0xf0))throw Error(_0x101459(0x205));return _0x1cc06e[_0x101459(0xf2)](new Uint8Array(_0x4010f0));}function _0x5a8b6a(_0x545010){const _0x109d1b=_0x387812;if(![0x10,0x18,0x20][_0x109d1b(0x34d)](_0x545010['length']))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x545010[_0x109d1b(0x141)]);}function _0x53f2d4(_0x4ac23d){return _0x4ac23d<<0x1^0x11b&-(_0x4ac23d>>0x7);}function _0x26d149(_0x227cea,_0x388e5b){let _0x38081f=0x0;for(;_0x388e5b>0x0;_0x388e5b>>=0x1)_0x38081f^=_0x227cea&-(_0x388e5b&0x1),_0x227cea=_0x53f2d4(_0x227cea);return _0x38081f;}let _0x5c93d4=((()=>{let _0x4f9782=new Uint8Array(0x100);for(let _0x381f7c=0x0,_0x3d3f27=0x1;_0x381f7c<0x100;_0x381f7c++,_0x3d3f27^=_0x53f2d4(_0x3d3f27))_0x4f9782[_0x381f7c]=_0x3d3f27;let _0x78af45=new Uint8Array(0x100);_0x78af45[0x0]=0x63;for(let _0x329473=0x0;_0x329473<0xff;_0x329473++){let _0xf8f75=_0x4f9782[0xff-_0x329473];_0xf8f75|=_0xf8f75<<0x8,_0x78af45[_0x4f9782[_0x329473]]=(_0xf8f75^_0xf8f75>>0x4^_0xf8f75>>0x5^_0xf8f75>>0x6^_0xf8f75>>0x7^0x63)&0xff;}return _0x3322bb(_0x4f9782),_0x78af45;})()),_0x5b7296=_0x5c93d4['map']((_0x20d576,_0x1972b8)=>_0x5c93d4[_0x387812(0x161)](_0x1972b8)),_0x408394=_0x20c080=>_0x20c080<<0x18|_0x20c080>>>0x8,_0x5726c5=_0x1319b5=>_0x1319b5<<0x8|_0x1319b5>>>0x18;function _0x1e5d82(_0x333fe2,_0x1e381e){const _0x34b4a2=_0x387812;if(_0x333fe2[_0x34b4a2(0x141)]!==0x100)throw Error(_0x34b4a2(0x177));let _0x2d08b4=new Uint32Array(0x100)['map']((_0x3c6371,_0x5dd743)=>_0x1e381e(_0x333fe2[_0x5dd743])),_0x21fd24=_0x2d08b4[_0x34b4a2(0x1a7)](_0x5726c5),_0x1ee0fd=_0x21fd24[_0x34b4a2(0x1a7)](_0x5726c5),_0x10318e=_0x1ee0fd['map'](_0x5726c5),_0x4aef86=new Uint32Array(0x100*0x100),_0x8e9740=new Uint32Array(0x100*0x100),_0x1b459c=new Uint16Array(0x100*0x100);for(let _0x39a430=0x0;_0x39a430<0x100;_0x39a430++)for(let _0x3238cf=0x0;_0x3238cf<0x100;_0x3238cf++){let _0x5c0010=_0x39a430*0x100+_0x3238cf;_0x4aef86[_0x5c0010]=_0x2d08b4[_0x39a430]^_0x21fd24[_0x3238cf],_0x8e9740[_0x5c0010]=_0x1ee0fd[_0x39a430]^_0x10318e[_0x3238cf],_0x1b459c[_0x5c0010]=_0x333fe2[_0x39a430]<<0x8|_0x333fe2[_0x3238cf];}return{'sbox':_0x333fe2,'sbox2':_0x1b459c,'T0':_0x2d08b4,'T1':_0x21fd24,'T2':_0x1ee0fd,'T3':_0x10318e,'T01':_0x4aef86,'T23':_0x8e9740};}let _0x31e021=_0x1e5d82(_0x5c93d4,_0x17d6fc=>_0x26d149(_0x17d6fc,0x3)<<0x18|_0x17d6fc<<0x10|_0x17d6fc<<0x8|_0x26d149(_0x17d6fc,0x2)),_0x376d8e=_0x1e5d82(_0x5b7296,_0x2f5b6c=>_0x26d149(_0x2f5b6c,0xb)<<0x18|_0x26d149(_0x2f5b6c,0xd)<<0x10|_0x26d149(_0x2f5b6c,0x9)<<0x8|_0x26d149(_0x2f5b6c,0xe)),_0x49fb0e=((()=>{let _0x342a45=new Uint8Array(0x10);for(let _0xebd611=0x0,_0x10e195=0x1;_0xebd611<0x10;_0xebd611++,_0x10e195=_0x53f2d4(_0x10e195))_0x342a45[_0xebd611]=_0x10e195;return _0x342a45;})());function _0xb20a94(_0x11ab83){_0x21ee81(_0x11ab83);let _0x1b788c=_0x11ab83['length'];_0x5a8b6a(_0x11ab83);let {sbox2:_0x1069cb}=_0x31e021,_0x499474=[];(!_0x5777bd||!_0x32710f(_0x11ab83))&&_0x499474['push'](_0x11ab83=_0x10715d(_0x11ab83));let _0x38c1f4=_0x32c214(_0x58d5f9(_0x11ab83)),_0x473892=_0x38c1f4['length'],_0x34f3ac=_0x570afe=>_0xaf44e6(_0x1069cb,_0x570afe,_0x570afe,_0x570afe,_0x570afe),_0x28bd9f=new Uint32Array(_0x1b788c+0x1c);_0x28bd9f['set'](_0x38c1f4);for(let _0x508065=_0x473892;_0x508065<_0x28bd9f['length'];_0x508065++){let _0xeb0e50=_0x28bd9f[_0x508065-0x1];_0x508065%_0x473892===0x0?_0xeb0e50=_0x34f3ac(_0x408394(_0xeb0e50))^_0x49fb0e[_0x508065/_0x473892-0x1]:_0x473892>0x6&&_0x508065%_0x473892===0x4&&(_0xeb0e50=_0x34f3ac(_0xeb0e50)),_0x28bd9f[_0x508065]=_0x28bd9f[_0x508065-_0x473892]^_0xeb0e50;}return _0x3322bb(..._0x499474),_0x28bd9f;}function _0xb16692(_0xb9034f){const _0x525e0a=_0x387812;let _0x537fff=_0xb20a94(_0xb9034f),_0x400a51=_0x537fff[_0x525e0a(0x3af)](),_0x588c4d=_0x537fff['length'],{sbox2:_0x2b7820}=_0x31e021,{T0:_0x2c18de,T1:_0x5ec18b,T2:_0x3c0291,T3:_0x4e3618}=_0x376d8e;for(let _0x278528=0x0;_0x278528<_0x588c4d;_0x278528+=0x4)for(let _0x4e8b6a=0x0;_0x4e8b6a<0x4;_0x4e8b6a++)_0x400a51[_0x278528+_0x4e8b6a]=_0x537fff[_0x588c4d-_0x278528-0x4+_0x4e8b6a];_0x3322bb(_0x537fff);for(let _0x143301=0x4;_0x143301<_0x588c4d-0x4;_0x143301++){let _0x56d180=_0x400a51[_0x143301],_0x67b66b=_0xaf44e6(_0x2b7820,_0x56d180,_0x56d180,_0x56d180,_0x56d180);_0x400a51[_0x143301]=_0x2c18de[_0x67b66b&0xff]^_0x5ec18b[_0x67b66b>>>0x8&0xff]^_0x3c0291[_0x67b66b>>>0x10&0xff]^_0x4e3618[_0x67b66b>>>0x18];}return _0x400a51;}function _0x12c8de(_0x5a6a0d,_0x191254,_0x5e64ad,_0x5b474d,_0x8769b9,_0x1c82c3){return _0x5a6a0d[_0x5e64ad<<0x8&0xff00|_0x5b474d>>>0x8&0xff]^_0x191254[_0x8769b9>>>0x8&0xff00|_0x1c82c3>>>0x18&0xff];}function _0xaf44e6(_0x552ac8,_0x24c76b,_0xe24d47,_0x44cea3,_0x1edea8){return _0x552ac8[_0x24c76b&0xff|_0xe24d47&0xff00]|_0x552ac8[_0x44cea3>>>0x10&0xff|_0x1edea8>>>0x10&0xff00]<<0x10;}function _0xee21aa(_0x1fda1d,_0x1f0f4c,_0x469846,_0x45d20b,_0x490b64){let {sbox2:_0x3f22cb,T01:_0x2cb05e,T23:_0x149b56}=_0x31e021,_0x1353a4=0x0;_0x1f0f4c^=_0x1fda1d[_0x1353a4++],_0x469846^=_0x1fda1d[_0x1353a4++],_0x45d20b^=_0x1fda1d[_0x1353a4++],_0x490b64^=_0x1fda1d[_0x1353a4++];let _0x23892f=_0x1fda1d['length']/0x4-0x2;for(let _0x1ba3b8=0x0;_0x1ba3b8<_0x23892f;_0x1ba3b8++){let _0x402440=_0x1fda1d[_0x1353a4++]^_0x12c8de(_0x2cb05e,_0x149b56,_0x1f0f4c,_0x469846,_0x45d20b,_0x490b64),_0x16ccd5=_0x1fda1d[_0x1353a4++]^_0x12c8de(_0x2cb05e,_0x149b56,_0x469846,_0x45d20b,_0x490b64,_0x1f0f4c),_0x35d685=_0x1fda1d[_0x1353a4++]^_0x12c8de(_0x2cb05e,_0x149b56,_0x45d20b,_0x490b64,_0x1f0f4c,_0x469846),_0xc128de=_0x1fda1d[_0x1353a4++]^_0x12c8de(_0x2cb05e,_0x149b56,_0x490b64,_0x1f0f4c,_0x469846,_0x45d20b);_0x1f0f4c=_0x402440,_0x469846=_0x16ccd5,_0x45d20b=_0x35d685,_0x490b64=_0xc128de;}return{'s0':_0x1fda1d[_0x1353a4++]^_0xaf44e6(_0x3f22cb,_0x1f0f4c,_0x469846,_0x45d20b,_0x490b64),'s1':_0x1fda1d[_0x1353a4++]^_0xaf44e6(_0x3f22cb,_0x469846,_0x45d20b,_0x490b64,_0x1f0f4c),'s2':_0x1fda1d[_0x1353a4++]^_0xaf44e6(_0x3f22cb,_0x45d20b,_0x490b64,_0x1f0f4c,_0x469846),'s3':_0x1fda1d[_0x1353a4++]^_0xaf44e6(_0x3f22cb,_0x490b64,_0x1f0f4c,_0x469846,_0x45d20b)};}function _0x30ecbf(_0x27728f,_0xf1b25c,_0x47e2ee,_0x6e2a3e,_0x3e1ef1){const _0x2958e9=_0x387812;let {sbox2:_0x30afad,T01:_0x4659b8,T23:_0x17e9e6}=_0x376d8e,_0x4bb055=0x0;_0xf1b25c^=_0x27728f[_0x4bb055++],_0x47e2ee^=_0x27728f[_0x4bb055++],_0x6e2a3e^=_0x27728f[_0x4bb055++],_0x3e1ef1^=_0x27728f[_0x4bb055++];let _0x5acaf5=_0x27728f[_0x2958e9(0x141)]/0x4-0x2;for(let _0x57b622=0x0;_0x57b622<_0x5acaf5;_0x57b622++){let _0x23ec9c=_0x27728f[_0x4bb055++]^_0x12c8de(_0x4659b8,_0x17e9e6,_0xf1b25c,_0x3e1ef1,_0x6e2a3e,_0x47e2ee),_0x200ada=_0x27728f[_0x4bb055++]^_0x12c8de(_0x4659b8,_0x17e9e6,_0x47e2ee,_0xf1b25c,_0x3e1ef1,_0x6e2a3e),_0x2b9464=_0x27728f[_0x4bb055++]^_0x12c8de(_0x4659b8,_0x17e9e6,_0x6e2a3e,_0x47e2ee,_0xf1b25c,_0x3e1ef1),_0x4e8af5=_0x27728f[_0x4bb055++]^_0x12c8de(_0x4659b8,_0x17e9e6,_0x3e1ef1,_0x6e2a3e,_0x47e2ee,_0xf1b25c);_0xf1b25c=_0x23ec9c,_0x47e2ee=_0x200ada,_0x6e2a3e=_0x2b9464,_0x3e1ef1=_0x4e8af5;}return{'s0':_0x27728f[_0x4bb055++]^_0xaf44e6(_0x30afad,_0xf1b25c,_0x3e1ef1,_0x6e2a3e,_0x47e2ee),'s1':_0x27728f[_0x4bb055++]^_0xaf44e6(_0x30afad,_0x47e2ee,_0xf1b25c,_0x3e1ef1,_0x6e2a3e),'s2':_0x27728f[_0x4bb055++]^_0xaf44e6(_0x30afad,_0x6e2a3e,_0x47e2ee,_0xf1b25c,_0x3e1ef1),'s3':_0x27728f[_0x4bb055++]^_0xaf44e6(_0x30afad,_0x3e1ef1,_0x6e2a3e,_0x47e2ee,_0xf1b25c)};}function _0x49e61c(_0x4c6093){const _0x4fb32f=_0x387812;if(_0x21ee81(_0x4c6093),_0x4c6093['length']%0x10!=0x0)throw Error(_0x4fb32f(0xb3));}function _0x3b1059(_0x57e1a4,_0x23920e,_0x1a64d4){const _0x5a02bb=_0x387812;_0x21ee81(_0x57e1a4);let _0x4ebfd5=_0x57e1a4[_0x5a02bb(0x141)],_0x1f7f41=_0x4ebfd5%0x10;if(!_0x23920e&&_0x1f7f41!==0x0)throw Error('aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding');if(_0x23920e){let _0x3a7651=0x10-_0x1f7f41;_0x3a7651||=0x10,_0x4ebfd5+=_0x3a7651;}_0x1a64d4=_0x345aad(_0x4ebfd5,_0x1a64d4),_0xe733e1(_0x57e1a4,_0x1a64d4),(!_0x5777bd||!_0x32710f(_0x57e1a4))&&(_0x57e1a4=_0x10715d(_0x57e1a4));let _0x583a22=_0x58d5f9(_0x57e1a4);return _0x32c214(_0x583a22),{'b':_0x583a22,'o':_0x58d5f9(_0x1a64d4),'out':_0x1a64d4};}function _0x356157(_0x3d8b67,_0x477b97){const _0x3c2a8f=_0x387812;if(!_0x477b97)return _0x3d8b67;let _0x4eda2a=_0x3d8b67[_0x3c2a8f(0x141)];if(_0x4eda2a===0x0)throw Error(_0x3c2a8f(0x1a5));let _0x335691=_0x3d8b67[_0x4eda2a-0x1],_0x3ebddf=0x1;_0x3ebddf&=_0x335691-0x1>>>0x1f^0x1,_0x3ebddf&=0x10-_0x335691>>>0x1f^0x1;for(let _0xd5b1a0=0x0;_0xd5b1a0<0x10;_0xd5b1a0++){let _0x1efae8=_0xd5b1a0-_0x335691>>>0x1f,_0x16720e=+((_0x3d8b67[_0x4eda2a-0x1-_0xd5b1a0]^_0x335691)===0x0);_0x3ebddf&=_0x16720e|_0x1efae8^0x1;}if(!_0x3ebddf)throw Error(_0x3c2a8f(0x3d0));return _0x3d8b67[_0x3c2a8f(0x25a)](0x0,_0x4eda2a-_0x335691);}function _0x3b26c1(_0x1afb5b){const _0x37f834=_0x387812;let _0x9eeb4b=new Uint8Array(0x10),_0x21d55a=_0x58d5f9(_0x9eeb4b);_0x9eeb4b[_0x37f834(0x15c)](_0x1afb5b);let _0x6686c3=0x10-_0x1afb5b[_0x37f834(0x141)];for(let _0x2a923d=0x10-_0x6686c3;_0x2a923d<0x10;_0x2a923d++)_0x9eeb4b[_0x2a923d]=_0x6686c3;return _0x21d55a;}let _0xdd7d22=_0x2a7d01({'blockSize':0x10,'nonceLength':0x10},function(_0x95b3c1,_0x6b05e0,_0x496c4c={}){const _0x3df70d=_0x387812;let _0x228661=!_0x496c4c[_0x3df70d(0xfa)];return{'encrypt'(_0x408779,_0x26e36a){const _0x2e8937=_0x3df70d;let _0x5eeb22=_0xb20a94(_0x95b3c1),{b:_0xadcc7b,o:_0x12cc58,out:_0xab31bd}=_0x3b1059(_0x408779,_0x228661,_0x26e36a),_0x329e90=_0x6b05e0,_0x29774a=[_0x5eeb22];(!_0x5777bd||!_0x32710f(_0x329e90))&&_0x29774a[_0x2e8937(0x223)](_0x329e90=_0x10715d(_0x329e90));let _0xe7cc05=_0x58d5f9(_0x329e90);_0x32c214(_0xe7cc05);let _0x5dee37=_0xe7cc05[0x0],_0x1f9090=_0xe7cc05[0x1],_0x244c6a=_0xe7cc05[0x2],_0x1de908=_0xe7cc05[0x3],_0x11e42f=0x0;for(;_0x11e42f+0x4<=_0xadcc7b[_0x2e8937(0x141)];)_0x5dee37^=_0xadcc7b[_0x11e42f+0x0],_0x1f9090^=_0xadcc7b[_0x11e42f+0x1],_0x244c6a^=_0xadcc7b[_0x11e42f+0x2],_0x1de908^=_0xadcc7b[_0x11e42f+0x3],{s0:_0x5dee37,s1:_0x1f9090,s2:_0x244c6a,s3:_0x1de908}=_0xee21aa(_0x5eeb22,_0x5dee37,_0x1f9090,_0x244c6a,_0x1de908),_0x12cc58[_0x11e42f++]=_0x5dee37,_0x12cc58[_0x11e42f++]=_0x1f9090,_0x12cc58[_0x11e42f++]=_0x244c6a,_0x12cc58[_0x11e42f++]=_0x1de908;if(_0x228661){let _0x5f01d5=_0x3b26c1(_0x408779[_0x2e8937(0x25a)](_0x11e42f*0x4));_0x32c214(_0x5f01d5),_0x5dee37^=_0x5f01d5[0x0],_0x1f9090^=_0x5f01d5[0x1],_0x244c6a^=_0x5f01d5[0x2],_0x1de908^=_0x5f01d5[0x3],{s0:_0x5dee37,s1:_0x1f9090,s2:_0x244c6a,s3:_0x1de908}=_0xee21aa(_0x5eeb22,_0x5dee37,_0x1f9090,_0x244c6a,_0x1de908),_0x12cc58[_0x11e42f++]=_0x5dee37,_0x12cc58[_0x11e42f++]=_0x1f9090,_0x12cc58[_0x11e42f++]=_0x244c6a,_0x12cc58[_0x11e42f++]=_0x1de908;}return _0x32c214(_0x12cc58),_0x3322bb(..._0x29774a),_0xab31bd;},'decrypt'(_0xdeffda,_0x4864cf){const _0x1e3c0e=_0x3df70d;_0x49e61c(_0xdeffda);let _0x14bbd7=_0xb16692(_0x95b3c1),_0x1969ab=_0x6b05e0,_0x204b27=[_0x14bbd7];(!_0x5777bd||!_0x32710f(_0x1969ab))&&_0x204b27[_0x1e3c0e(0x223)](_0x1969ab=_0x10715d(_0x1969ab));let _0x29da9e=_0x58d5f9(_0x1969ab);_0x32c214(_0x29da9e),_0x4864cf=_0x345aad(_0xdeffda[_0x1e3c0e(0x141)],_0x4864cf),_0xe733e1(_0xdeffda,_0x4864cf),(!_0x5777bd||!_0x32710f(_0xdeffda))&&_0x204b27[_0x1e3c0e(0x223)](_0xdeffda=_0x10715d(_0xdeffda));let _0x4a5cce=_0x58d5f9(_0xdeffda),_0x57bfcf=_0x58d5f9(_0x4864cf);_0x32c214(_0x4a5cce);let _0xd5499b=_0x29da9e[0x0],_0x143bd1=_0x29da9e[0x1],_0x4c29f4=_0x29da9e[0x2],_0x24673e=_0x29da9e[0x3];for(let _0x954722=0x0;_0x954722+0x4<=_0x4a5cce[_0x1e3c0e(0x141)];){let _0x3ba304=_0xd5499b,_0x3177eb=_0x143bd1,_0x3fcb2f=_0x4c29f4,_0x44b539=_0x24673e;_0xd5499b=_0x4a5cce[_0x954722+0x0],_0x143bd1=_0x4a5cce[_0x954722+0x1],_0x4c29f4=_0x4a5cce[_0x954722+0x2],_0x24673e=_0x4a5cce[_0x954722+0x3];let {s0:_0x18153b,s1:_0x1a7a61,s2:_0x41334b,s3:_0x23610f}=_0x30ecbf(_0x14bbd7,_0xd5499b,_0x143bd1,_0x4c29f4,_0x24673e);_0x57bfcf[_0x954722++]=_0x18153b^_0x3ba304,_0x57bfcf[_0x954722++]=_0x1a7a61^_0x3177eb,_0x57bfcf[_0x954722++]=_0x41334b^_0x3fcb2f,_0x57bfcf[_0x954722++]=_0x23610f^_0x44b539;}return _0x32c214(_0x57bfcf),_0x3322bb(..._0x204b27),_0x356157(_0x4864cf,_0x228661);}};});function _0x557031(_0x44755e){const _0x102f3a=_0x387812;let _0x44f6dc=atob(_0x44755e),_0x240c04=new Uint8Array(_0x44f6dc[_0x102f3a(0x141)]);for(let _0x3a160b=0x0;_0x3a160b<_0x44f6dc[_0x102f3a(0x141)];_0x3a160b++)_0x240c04[_0x3a160b]=_0x44f6dc[_0x102f3a(0x213)](_0x3a160b);return _0x240c04;}function _0x3e942a(_0x16356f){const _0x348ec2=_0x387812;let _0xe6523c='';for(let _0x1d8542=0x0;_0x1d8542<_0x16356f[_0x348ec2(0x141)];_0x1d8542++)_0xe6523c+=String[_0x348ec2(0x1c2)](_0x16356f[_0x1d8542]);return btoa(_0xe6523c);}function _0x15e45a(_0x39b581,_0x4d6386){let _0x386859=_0x557031(_0x4d6386),_0x1f437b=_0x317914(0x10);return _0x3e942a(_0x139a1d(_0x1f437b,_0xdd7d22(_0x386859,_0x1f437b)['encrypt'](_0x4026a5(_0x39b581))));}function _0x377bed(){const _0xad148=_0x387812;let _0x39eba5=(0x0,_0x575549[_0xad148(0x135)])()[_0xad148(0x219)];if(typeof window<'u'&&window[_0xad148(0x25c)]!==void 0x0&&_0x39eba5){let _0x2b47fc={'time':Math[_0xad148(0x1c1)](Date[_0xad148(0x3d7)]()/0x3e8),'domain':location[_0xad148(0x11d)]};return _0x15e45a(JSON[_0xad148(0x1e5)](_0x2b47fc),_0x39eba5);}}let _0x4e018c=class{constructor(_0x1767fc){const _0x4a9986=_0x387812;this[_0x4a9986(0x20d)]=_0x1767fc,this[_0x4a9986(0x388)]();}['_initRequestHeader'](){const _0x517319=_0x387812;this['_httpService'][_0x517319(0x216)]({'interceptor':(_0x250717,_0x114cfb)=>{const _0xcd6d6e=_0x517319;let _0x49a5b7=_0x377bed();return _0x49a5b7&&_0x250717['headers'][_0xcd6d6e(0x15c)]('x-univer-host',_0x49a5b7),_0x114cfb(_0x250717);}});}};_0x4e018c=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0[_0x387812(0x264)]))],_0x4e018c);let _0x5a12bf=class extends _0x3ea0ad['RxDisposable']{constructor(_0x2d6c3b,_0x476625,_0xa76d4d){const _0x8e6051=_0x387812;super(),this['_logService']=_0x2d6c3b,this['_snapshotService']=_0x476625,this[_0x8e6051(0x3fe)]=_0xa76d4d,_0x309f50(this,_0x8e6051(0x22a),new _0x3a9bce[(_0x8e6051(0x24a))](null)),_0x309f50(this,'_unitLoaded$',new _0x3a9bce['Subject']()),_0x309f50(this,_0x8e6051(0x3c2),this[_0x8e6051(0x22a)][_0x8e6051(0x1fe)]()),_0x309f50(this,_0x8e6051(0x2a7),this[_0x8e6051(0x3d6)][_0x8e6051(0x1fe)]());}[_0x387812(0x102)](){const _0x211f40=_0x387812;super[_0x211f40(0x102)](),this['_unitLoaded$'][_0x211f40(0xca)](),this[_0x211f40(0x22a)][_0x211f40(0xca)]();}async[_0x387812(0x202)](_0x98acc9,_0x23e94a,_0x3d9081,_0x916299){const _0x5655ea=_0x387812;this[_0x5655ea(0x22a)][_0x5655ea(0x316)]({'unitId':_0x98acc9,'type':_0x23e94a,'subUnitId':_0x916299});let _0x1f1bae=null;switch(_0x23e94a){case _0x3ea0ad[_0x5655ea(0x20e)][_0x5655ea(0x31e)]:_0x1f1bae=await this[_0x5655ea(0x366)][_0x5655ea(0x3ef)](_0x98acc9,_0x3d9081,void 0x0,{'initialSubUnitId':_0x916299});break;case _0x3ea0ad['UniverInstanceType'][_0x5655ea(0x2e8)]:_0x1f1bae=await this[_0x5655ea(0x366)]['loadDoc'](_0x98acc9,_0x3d9081);break;case _0x3ea0ad[_0x5655ea(0x20e)][_0x5655ea(0x105)]:_0x1f1bae=await this[_0x5655ea(0x366)]['loadSlide'](_0x98acc9,_0x3d9081);break;case _0x3ea0ad[_0x5655ea(0x20e)]['UNIVER_BOARD']:_0x1f1bae=await this[_0x5655ea(0x366)][_0x5655ea(0x1f1)](_0x98acc9,_0x3d9081);break;case _0x3ea0ad[_0x5655ea(0x20e)]['UNIVER_BASE']:_0x1f1bae=await this[_0x5655ea(0x366)][_0x5655ea(0x1a0)](_0x98acc9,_0x3d9081);break;case _0x3ea0ad['UniverInstanceType']['UNIVER_PDF']:_0x1f1bae=await this[_0x5655ea(0x366)][_0x5655ea(0x317)](_0x98acc9,_0x3d9081);break;default:this[_0x5655ea(0x1fc)]['error'](_0x5655ea(0x225),_0x5655ea(0x123));break;}return _0x1f1bae&&this['_unitLoaded$'][_0x5655ea(0x316)](_0x1f1bae),_0x1f1bae;}async[_0x387812(0x113)](_0x3d5032,_0x2ed4e3,_0x6f991b){const _0x4af982=_0x387812;var _0xca5f51;this['_unitInfo$'][_0x4af982(0x316)]({'unitId':_0x3d5032,'type':_0x2ed4e3,'subUnitId':_0x6f991b});let _0x19a692=0x0,_0x3e46c0=await((_0xca5f51=this[_0x4af982(0x3fe)])==null?void 0x0:_0xca5f51[_0x4af982(0x3b5)](_0x3d5032));return _0x3e46c0&&(_0x3e46c0[_0x4af982(0x146)]||_0x3e46c0[_0x4af982(0x3bd)][_0x4af982(0x141)]!==0x0)&&(_0x19a692=_0x3e46c0['rev']),_0x19a692===0x0&&this[_0x4af982(0x1fc)][_0x4af982(0x2f0)]('[DataLoaderService]',_0x4af982(0x132)),this[_0x4af982(0x202)](_0x3d5032,_0x2ed4e3,_0x19a692,_0x6f991b);}};_0x5a12bf=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0xbd)])),_0x29ab6d(0x2,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x5a12bf);let _0x52b72b=class{constructor(_0x57bc8e,_0x4493f9,_0x314f2a){const _0x3c8899=_0x387812;this[_0x3c8899(0x20d)]=_0x57bc8e,this['_configService']=_0x4493f9,this[_0x3c8899(0xc8)]=_0x314f2a,_0x309f50(this,_0x3c8899(0x231),0x0),_0x309f50(this,_0x3c8899(0x2d0),new _0x3a9bce['Subject']()),_0x309f50(this,_0x3c8899(0x214),this['_change$']),_0x309f50(this,_0x3c8899(0x26a),new Map());}['setWaitCount'](_0x23eba2){const _0x17a0e5=_0x387812;this[_0x17a0e5(0x231)]=_0x23eba2,this[_0x17a0e5(0x2d0)][_0x17a0e5(0x316)](_0x23eba2);}[_0x387812(0x1a1)](_0x4a1d95,_0xfff3f){const _0x32b50d=_0x387812;if(_0xfff3f===_0x3ea0ad[_0x32b50d(0x39b)][_0x32b50d(0xea)]){let _0x1b3339=new Image();return _0x1b3339[_0x32b50d(0x3d8)]=_0x4a1d95,_0x1b3339;}return this[_0x32b50d(0x26a)][_0x32b50d(0x32a)](_0x4a1d95);}['addImageSourceCache'](_0x13238c,_0x22829d,_0x5b3b1d){const _0x4398fe=_0x387812;_0x22829d!==_0x3ea0ad[_0x4398fe(0x39b)][_0x4398fe(0xea)]&&_0x5b3b1d!=null&&this[_0x4398fe(0x26a)][_0x4398fe(0x15c)](_0x13238c,_0x5b3b1d);}async[_0x387812(0xed)](_0x2b0b27){const _0x548512=_0x387812;try{let _0x3e36e5=this['_replaceFileID'](this[_0x548512(0x14e)](),''+_0x2b0b27),_0x2399ab=(await this[_0x548512(0x20d)][_0x548512(0x32a)](_0x3e36e5))['body'];if(_0x2399ab['error']&&_0x2399ab[_0x548512(0xcf)]['code']===_0x2a4603['ErrorCode']['OK']){let _0x46e4f0=(0x0,_0x3ea0ad[_0x548512(0x3ba)])(_0x2399ab[_0x548512(0x29b)],this['_getDownloadEndpointURL']());return Promise[_0x548512(0x117)](_0x46e4f0);}return Promise['reject'](_0x2399ab[_0x548512(0xcf)]);}catch(_0x488f67){return Promise[_0x548512(0x173)](_0x488f67);}}async['saveImage'](_0x5c290c){const _0x1ec01b=_0x387812;let _0x24fa73='';if(!_0x43a3a3[_0x1ec01b(0x274)][_0x1ec01b(0x34d)](_0x5c290c[_0x1ec01b(0x131)]))return this['_decreaseWaiting'](),Promise[_0x1ec01b(0x173)](Error(_0x3ea0ad[_0x1ec01b(0x35f)]['ERROR_IMAGE_TYPE']));if(_0x5c290c[_0x1ec01b(0x171)]>(0x0,_0x43a3a3[_0x1ec01b(0x3fa)])())return this['_decreaseWaiting'](),Promise['reject'](Error(_0x3ea0ad['ImageUploadStatusType'][_0x1ec01b(0x1a9)]));try{let _0x549f73=new FormData();_0x549f73[_0x1ec01b(0x330)](_0x1ec01b(0x174),_0x5c290c);let _0x3ac553=this[_0x1ec01b(0xc8)][_0x1ec01b(0x12c)](),_0x1b7acc=_0x3ac553==null?void 0x0:_0x3ac553[_0x1ec01b(0x1c4)]();if(!_0x1b7acc)throw Error(_0x1ec01b(0x3be));let _0x4a70b8=this[_0x1ec01b(0x1f7)]()+'?size='+_0x5c290c['size'][_0x1ec01b(0x242)]()+_0x1ec01b(0x3df)+_0x2a4603['FileSource']['UnitEmbedded']+_0x1ec01b(0x167)+encodeURIComponent(_0x1b7acc),_0x16b930={'body':_0x549f73},_0x4795f4=(await this['_httpService'][_0x1ec01b(0x233)](_0x4a70b8,_0x16b930))['body'];if(typeof _0x4795f4['FileId']!=_0x1ec01b(0x17f))return this[_0x1ec01b(0x199)](),Promise[_0x1ec01b(0x173)](Error(_0x3ea0ad[_0x1ec01b(0x35f)][_0x1ec01b(0xc3)]));_0x24fa73=_0x4795f4[_0x1ec01b(0x28e)];}catch{return this[_0x1ec01b(0x199)](),Promise['reject'](Error(_0x3ea0ad[_0x1ec01b(0x35f)]['ERROR_IMAGE']));}return new Promise((_0x410606,_0x2e4db7)=>{const _0xf3df0a=_0x1ec01b;let _0x4032e6=new FileReader();_0x4032e6[_0xf3df0a(0x169)](_0x5c290c),_0x4032e6[_0xf3df0a(0x238)]=_0x351e98=>{const _0x2de6dc=_0xf3df0a;var _0x19fe24;let _0x4e463f=(_0x19fe24=_0x351e98[_0x2de6dc(0x3d4)])==null?void 0x0:_0x19fe24[_0x2de6dc(0xff)];if(_0x4e463f==null){this[_0x2de6dc(0x199)](),_0x2e4db7(Error(_0x3ea0ad[_0x2de6dc(0x35f)]['ERROR_IMAGE']));return;}_0x410606({'imageId':(0x0,_0x3ea0ad['generateRandomId'])(0x6),'imageSourceType':_0x3ea0ad[_0x2de6dc(0x39b)]['UUID'],'source':_0x24fa73,'base64Cache':_0x4e463f,'status':_0x3ea0ad[_0x2de6dc(0x35f)][_0x2de6dc(0x1e8)]}),this[_0x2de6dc(0x199)]();};});}[_0x387812(0x1f7)](){const _0x3db902=_0x387812;let _0x24b716=this['_configService'][_0x3db902(0x346)](_0xeb659);return(_0x24b716==null?void 0x0:_0x24b716[_0x3db902(0x185)])??'/universer-api/stream/file/upload';}[_0x387812(0x14e)](){const _0x47f6d2=_0x387812;let _0x2fbb26=this[_0x47f6d2(0x327)][_0x47f6d2(0x346)](_0xeb659);return(_0x2fbb26==null?void 0x0:_0x2fbb26[_0x47f6d2(0x289)])??'/universer-api/file/{fileID}/sign-url';}[_0x387812(0x358)](){const _0x1dae19=_0x387812;let _0x3d4915=this[_0x1dae19(0x327)][_0x1dae19(0x346)](_0xeb659);return(_0x3d4915==null?void 0x0:_0x3d4915[_0x1dae19(0x39e)])??location[_0x1dae19(0x373)];}[_0x387812(0x28f)](_0x2530dd,_0x5cb87c){const _0x1035cb=_0x387812;return _0x2530dd['replace'](_0x1035cb(0x391),_0x5cb87c);}[_0x387812(0x199)](){const _0x1bc971=_0x387812;--this['_waitCount'],this[_0x1bc971(0x2d0)]['next'](this[_0x1bc971(0x231)]);}};_0x52b72b=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0[_0x387812(0x264)])),_0x29ab6d(0x1,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x2,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['IUniverInstanceService']))],_0x52b72b);let _0x2961f8=class{constructor(_0x59610a,_0x29d45e){const _0x1c9d3a=_0x387812;this[_0x1c9d3a(0x327)]=_0x59610a,this[_0x1c9d3a(0xb1)]=_0x29d45e;}['_getAPIPrefixPath'](){let _0x1b17b6=this['_configService']['getConfig'](_0xeb659);return(_0x1b17b6==null?void 0x0:_0x1b17b6['authzUrl'])??'/universer-api/authz';}async[_0x387812(0x188)](_0x365c0d){const _0x5ea777=_0x387812;let _0x558a9d=this[_0x5ea777(0x3ad)]()+_0x5ea777(0x33b);return{'list':[{'title':_0x5ea777(0x21e),'mentions':(await this['_HTTPService'][_0x5ea777(0x32a)](_0x558a9d,{'params':{'objectID':_0x365c0d[_0x5ea777(0x397)],'unitID':_0x365c0d[_0x5ea777(0x397)]}}))[_0x5ea777(0x2a8)][_0x5ea777(0x193)][_0x5ea777(0x1a7)](_0x442b59=>({'objectId':_0x442b59['id'],'name':_0x442b59['subject'][_0x5ea777(0xe8)],'metadata':{'icon':_0x442b59['subject']['avatar']},'label':_0x442b59['subject'][_0x5ea777(0xe8)],'objectType':_0x3ea0ad['MentionType'][_0x5ea777(0x294)]})),'metadata':{},'type':_0x3ea0ad[_0x5ea777(0x343)]['PERSON']}]};}};_0x2961f8=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x2b5)])),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x2e88c0[_0x387812(0x264)]))],_0x2961f8);let _0x2d0a67=class extends _0x3ea0ad['RxDisposable']{constructor(_0x2c7c54,_0x235a6d,_0xb42504,_0x17435e,_0x5a9a4c){const _0xd3c7ac=_0x387812;super(),this['_injector']=_0x2c7c54,this[_0xd3c7ac(0xc8)]=_0x235a6d,this[_0xd3c7ac(0x14b)]=_0xb42504,this[_0xd3c7ac(0x3e8)]=_0x17435e,this['_collaborationUIEventService']=_0x5a9a4c,this['_initUnitPermissionChange'](),this[_0xd3c7ac(0x351)]();}[_0x387812(0x351)](){const _0x3db445=_0x387812;let _0xa1df90=async _0x36dc06=>{const _0x2a4775=_0x1600;(await this[_0x2a4775(0x3e8)]['requireSession'](_0x36dc06))[_0x2a4775(0x36d)][_0x2a4775(0x298)]((0x0,_0x6cc357['filter'])(_0x2d3ad2=>_0x2d3ad2[_0x2a4775(0x217)]===_0x5d8fae['CollaborationEvent'][_0x2a4775(0x107)]),(0x0,_0x6cc357['takeUntil'])(this[_0x2a4775(0x235)]))['subscribe'](_0x253b7b=>{const _0x1187da=_0x2a4775;let {reason:_0x4b5919}=_0x253b7b['data'];this[_0x1187da(0x378)][_0x1187da(0x11a)]({'id':_0x1187da(0x227),'data':_0x4b5919}),this['_permissionService'][_0x1187da(0xcc)](new _0x1dfeb2[(_0x1187da(0x276))](_0x36dc06)['id'],!0x1),this[_0x1187da(0x3e8)]['closeSession'](_0x36dc06);});};(0x0,_0x3a9bce[_0x3db445(0x365)])(this[_0x3db445(0xc8)]['getTypeOfUnitAdded$'](_0x3ea0ad[_0x3db445(0x20e)]['UNIVER_SHEET']),this[_0x3db445(0xc8)]['getTypeOfUnitAdded$'](_0x3ea0ad[_0x3db445(0x20e)][_0x3db445(0x2e8)]),this[_0x3db445(0xc8)][_0x3db445(0x266)](_0x3ea0ad['UniverInstanceType'][_0x3db445(0x237)]),this[_0x3db445(0xc8)][_0x3db445(0x266)](_0x3ea0ad['UniverInstanceType'][_0x3db445(0x382)]))[_0x3db445(0x298)]((0x0,_0x6cc357[_0x3db445(0x1a7)])(_0x5a0d6f=>_0x5a0d6f[_0x3db445(0xaf)][_0x3db445(0x1c4)]()),(0x0,_0x6cc357[_0x3db445(0x2d7)])(_0x985f1b=>!(0x0,_0x3ea0ad[_0x3db445(0x1f3)])(_0x985f1b)),(0x0,_0x6cc357[_0x3db445(0x1a8)])(this[_0x3db445(0x235)]))[_0x3db445(0x1a6)](_0x57ec3f=>{_0xa1df90(_0x57ec3f);});}[_0x387812(0x10c)](){const _0x4402eb=_0x387812;let _0x3e96d1=async _0x43f948=>{const _0x3c30a7=_0x1600;let _0x3a1841=await this['_collaborationSessionService'][_0x3c30a7(0x1f8)](_0x43f948),_0x196836=this[_0x3c30a7(0x26d)][_0x3c30a7(0x32a)](_0x1dfeb2[_0x3c30a7(0x256)]);_0x3a1841[_0x3c30a7(0x36d)][_0x3c30a7(0x298)]((0x0,_0x6cc357[_0x3c30a7(0x2d7)])(_0x26a739=>_0x26a739[_0x3c30a7(0x217)]===_0x5d8fae['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,_0x6cc357[_0x3c30a7(0x1a8)])(this[_0x3c30a7(0x235)]))[_0x3c30a7(0x1a6)](_0xf1a36f=>{const _0x172348=_0x3c30a7;let {objectId:_0x11189}=_0xf1a36f[_0x172348(0x31b)];_0x11189===_0x43f948?_0x196836['initWorkbookPermissionChange'](_0x43f948):_0x196836['refreshPermission'](_0x43f948,_0x11189);});};(0x0,_0x3a9bce['merge'])(this['_univerInstanceService'][_0x4402eb(0x266)](_0x3ea0ad[_0x4402eb(0x20e)]['UNIVER_SHEET']))[_0x4402eb(0x298)]((0x0,_0x6cc357[_0x4402eb(0x1a7)])(_0x4c5bee=>_0x4c5bee[_0x4402eb(0xaf)][_0x4402eb(0x1c4)]()),(0x0,_0x6cc357[_0x4402eb(0x2d7)])(_0x10de97=>!(0x0,_0x3ea0ad[_0x4402eb(0x1f3)])(_0x10de97)),(0x0,_0x6cc357[_0x4402eb(0x1a8)])(this['dispose$']))[_0x4402eb(0x1a6)](_0x2a25b7=>{_0x3e96d1(_0x2a25b7);});}};_0x2d0a67=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['Injector'])),_0x29ab6d(0x1,_0x3ea0ad['IUniverInstanceService']),_0x29ab6d(0x2,_0x3ea0ad['IPermissionService']),_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x16256e)),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb))],_0x2d0a67);let _0x5b7913=class{constructor(_0x3e1f29,_0xddb436){const _0x3de187=_0x387812;this[_0x3de187(0x327)]=_0x3e1f29,this[_0x3de187(0x20d)]=_0xddb436;}async[_0x387812(0x318)](_0x36a1a8,_0x117cc1){const _0x2aa101=_0x387812;var _0x492144;let {unitID:_0x4e5c21,type:_0x2ba1f5,revision:_0x5c3eb6=0x0}=_0x117cc1,_0x2ca6ae=this[_0x2aa101(0x2ef)]()+'/'+_0x2ba1f5+_0x2aa101(0x1f2)+_0x4e5c21+_0x2aa101(0x361)+_0x5c3eb6,_0x4a9de2=(await this['_httpService'][_0x2aa101(0x32a)](_0x2ca6ae))[_0x2aa101(0x2a8)],_0x40d932=(_0x492144=_0x4a9de2[_0x2aa101(0x2ec)])==null?void 0x0:_0x492144[_0x2aa101(0x270)];if(_0x40d932){let _0xbb8aaf=_0x40d932==null?void 0x0:_0x40d932['originalMeta'];_0x40d932[_0x2aa101(0x2c5)]=_0x5d8fae[_0x2aa101(0x16a)]['encode']((0x0,_0x5d8fae[_0x2aa101(0x1df)])(_0xbb8aaf)),Object[_0x2aa101(0x253)](_0x40d932[_0x2aa101(0x27a)])[_0x2aa101(0x3e5)](([,_0x2fcde7])=>{const _0x25e92d=_0x2aa101;let _0x3d26be=_0x2fcde7[_0x25e92d(0x2c5)];_0x2fcde7[_0x25e92d(0x2c5)]=_0x5d8fae[_0x25e92d(0x16a)]['encode']((0x0,_0x5d8fae[_0x25e92d(0x1df)])(_0x3d26be));});}return _0x4a9de2;}async[_0x387812(0x38e)](_0x524769,_0x52c643){const _0x4c5360=_0x387812;let {unitID:_0x4f38aa,type:_0x4884f6,blockID:_0x194615}=_0x52c643,_0x45ccd8=this['_getAPIPrefix']()+'/'+_0x4884f6+_0x4c5360(0x1f2)+_0x4f38aa+'/block/'+_0x194615;return(await this['_httpService'][_0x4c5360(0x32a)](_0x45ccd8))[_0x4c5360(0x2a8)];}async[_0x387812(0x2f4)](_0x22c6e4,_0x516866){const _0x28c73c=_0x387812;let {unitID:_0x5489a6,type:_0x1fe868,blockID:_0x543d38}=_0x516866,_0x33e0bf=this['_getAPIPrefix']()+'/block/'+_0x1fe868+'/unit/'+_0x5489a6+'/block/'+_0x543d38;return(await this['_httpService'][_0x28c73c(0x32a)](_0x33e0bf))[_0x28c73c(0x2a8)];}async['fetchMissingChangesets'](_0x2f0d49,_0x261b8a){const _0x1273d4=_0x387812;let {unitID:_0x4ed490,type:_0x3a0dec,from:_0x508bb1,to:_0x3db04f}=_0x261b8a,_0x3b8bac=this['_getAPIPrefix']()+'/'+_0x3a0dec+_0x1273d4(0x1f2)+_0x4ed490+_0x1273d4(0xbb)+_0x508bb1+_0x1273d4(0x2ad)+_0x3db04f;return(await this['_httpService']['get'](_0x3b8bac))[_0x1273d4(0x2a8)];}['getSnapshotAPIPath'](){const _0x1713b6=_0x387812;return this[_0x1713b6(0x327)]['getConfig'](_0x1713b6(0x328))??this[_0x1713b6(0x3a9)]();}[_0x387812(0x3a9)](){const _0x5754c4=_0x387812;let _0x14a67f=this[_0x5754c4(0x327)][_0x5754c4(0x346)](_0xeb659);return(_0x14a67f==null?void 0x0:_0x14a67f['snapshotServerUrl'])??_0x5754c4(0x1b1);}async[_0x387812(0xf8)](_0x553215,_0x17148b){const _0x8aaa88=_0x387812;let _0x54be1d=_0x8aaa88(0x2a1)+_0x17148b['type']+'/unit/'+_0x17148b[_0x8aaa88(0x2be)]+'/resources';return(await this[_0x8aaa88(0x20d)][_0x8aaa88(0x32a)](_0x54be1d,{'params':{'resourceId':JSON['stringify'](_0x17148b[_0x8aaa88(0x3e4)])}}))[_0x8aaa88(0x2a8)];}[_0x387812(0x26c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x387812(0x393)](){const _0x12c656=_0x387812;throw Error(_0x12c656(0x2d6));}[_0x387812(0x2e7)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x387812(0x1bd)](){const _0x49578b=_0x387812;throw Error(_0x49578b(0x2d6));}[_0x387812(0x163)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x387812(0xf5)](){const _0x4bf329=_0x387812;throw Error(_0x4bf329(0x2d6));}};_0x5b7913=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad['IConfigService']),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x2e88c0[_0x387812(0x264)]))],_0x5b7913);let _0x495660=class extends _0x3ea0ad[_0x387812(0x2c7)]{constructor(_0x15ed14,_0x1944a6,_0x3cc085,_0x9b8d6d,_0x4ca535){const _0x4ec9a5=_0x387812;super(_0x15ed14,_0x1944a6,_0x3cc085),this[_0x4ec9a5(0xb8)]=_0x9b8d6d,this[_0x4ec9a5(0x1fc)]=_0x4ca535;}['transformUndoRedo'](_0x2874ea,_0x269850){const _0x19e90c=_0x387812;let _0x1e3e99=this[_0x19e90c(0x32b)](_0x2874ea);if(_0x1e3e99)try{let _0x326c35=this['_transformStack'](_0x1e3e99,_0x269850);this[_0x19e90c(0xdc)](_0x2874ea,_0x326c35);}catch(_0x153615){this['_logService'][_0x19e90c(0xcf)](_0x19e90c(0x215),_0x153615),this[_0x19e90c(0xd1)](_0x2874ea);}let _0xccdba4=this[_0x19e90c(0x3a5)](_0x2874ea);if(_0xccdba4)try{let _0x181e8e=this[_0x19e90c(0x16f)](_0xccdba4,_0x269850);this['_substituteRedoStack'](_0x2874ea,_0x181e8e);}catch(_0x2fbf90){this['_logService'][_0x19e90c(0xcf)](_0x2fbf90),this[_0x19e90c(0x30d)](_0x2874ea);}}[_0x387812(0xd1)](_0x1f2f62){const _0x3a0d79=_0x387812;let _0x253881=this[_0x3a0d79(0x32b)](_0x1f2f62);_0x253881&&(_0x253881['length']=0x0,this[_0x3a0d79(0x1e4)]());}[_0x387812(0x30d)](_0x42ecd7){const _0xe1e541=_0x387812;let _0x4f929f=this[_0xe1e541(0x3a5)](_0x42ecd7);_0x4f929f&&(_0x4f929f[_0xe1e541(0x141)]=0x0,this[_0xe1e541(0x1e4)]());}[_0x387812(0xdc)](_0x4a7fe3,_0x3e91de){const _0x298237=_0x387812;this[_0x298237(0x24c)][_0x298237(0x15c)](_0x4a7fe3,_0x3e91de),this['_updateStatus']();}[_0x387812(0xfd)](_0x377643,_0x548a28){const _0x4d5225=_0x387812;this[_0x4d5225(0x106)][_0x4d5225(0x15c)](_0x377643,_0x548a28),this[_0x4d5225(0x1e4)]();}[_0x387812(0x16f)](_0x10dc21,_0xe4625b){const _0x5ef57e=_0x387812;let _0x32b179=[],_0x286e5f=_0xe4625b,_0x2a8723=_0xe4625b;for(let _0x56fa09=_0x10dc21[_0x5ef57e(0x141)]-0x1;_0x56fa09>=0x0;_0x56fa09--){let {unitID:_0x4f23b3,undoMutations:_0x4c667b,redoMutations:_0xd58930}=_0x10dc21[_0x56fa09],_0x1d5507=this['_transformService'][_0x5ef57e(0xa9)](_0x286e5f,_0x4c667b),_0x367a5c=this[_0x5ef57e(0xb8)][_0x5ef57e(0xa9)](_0x2a8723,_0xd58930);if((0x0,_0x5d8fae[_0x5ef57e(0x10d)])(_0x1d5507)||(0x0,_0x5d8fae[_0x5ef57e(0x10d)])(_0x367a5c)){this[_0x5ef57e(0x1fc)][_0x5ef57e(0xcf)](_0x5ef57e(0x215),_0x5ef57e(0x2df),_0x1d5507,_0x367a5c);break;}_0x286e5f=_0x1d5507['c1Prime'],_0x2a8723=_0x367a5c['c1Prime'],_0x32b179[_0x5ef57e(0x223)]({'unitID':_0x4f23b3,'undoMutations':_0x1d5507[_0x5ef57e(0x22c)],'redoMutations':_0x367a5c[_0x5ef57e(0x22c)]});}return _0x32b179[_0x5ef57e(0x36a)]();}};_0x495660=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad['IUniverInstanceService']),_0x29ab6d(0x1,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0xf7)]),_0x29ab6d(0x3,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0x4,_0x3ea0ad[_0x387812(0x2a4)])],_0x495660);let _0x31993c=class extends _0x3ea0ad['Plugin']{constructor(_0x25c0a8=_0x15b9fd,_0x5a8887,_0x11a3c2,_0x311f2d){const _0x529124=_0x387812;super(),this['_config']=_0x25c0a8,this[_0x529124(0x1fc)]=_0x5a8887,this[_0x529124(0x26d)]=_0x11a3c2,this[_0x529124(0x327)]=_0x311f2d;let {..._0x46f407}=(0x0,_0x3ea0ad[_0x529124(0x365)])({},_0x15b9fd,this['_config']);if(!_0x46f407[_0x529124(0x1d2)])throw Error(_0x529124(0xe4));this['_config']=_0x46f407,this[_0x529124(0x327)][_0x529124(0x34a)](_0xeb659,_0x46f407);}[_0x387812(0x314)](){const _0x3ed74c=_0x387812;this[_0x3ed74c(0x1c0)](),this[_0x3ed74c(0x1b0)]();}[_0x387812(0x1c0)](){const _0xb68d35=_0x387812;var _0x557c53,_0x53b576;this[_0xb68d35(0x26d)]['has'](_0x3ea0ad['IUndoRedoService'])&&this[_0xb68d35(0x1fc)][_0xb68d35(0xcf)](_0xb68d35(0x2b2),_0xb68d35(0x119));let _0x49953a=(0x0,_0x3ea0ad['mergeOverrideWithDependencies'])([[_0x3ea0ad[_0xb68d35(0x240)],{'useClass':_0x495660}],[_0xfd750d,{'useValue':_0x2488e3()}],[_0x16256e],[_0x3f167c],[_0x5ad7dd],[_0x2d5274],[_0x4e018c],[_0x579ca0],[_0x2d0a67],[_0x359cbb],[_0x5a12bf],[_0x3155d1,{'useClass':this[_0xb68d35(0x3f9)]['socketService']}],[_0x5d8fae[_0xb68d35(0x211)],{'useClass':_0x5b7913}],[_0x3ea0ad[_0xb68d35(0xdd)],{'useClass':_0xd648b3}],[_0x3ea0ad['IImageIoService'],{'useClass':_0x52b72b}],[_0x37f9b3,{'useClass':_0x4d9046}],[_0x3ea0ad[_0xb68d35(0x252)],{'useClass':_0x2961f8}],[_0x56403c],[_0xe73302]],(_0x557c53=this[_0xb68d35(0x3f9)])==null?void 0x0:_0x557c53[_0xb68d35(0x335)]);if(!((_0x53b576=this['_config'])!=null&&_0x53b576['enableSingleActiveInstanceLock'])){let _0x3ec4e0=_0x49953a[_0xb68d35(0x38d)](([_0x25086d])=>_0x25086d===_0x989852);_0x3ec4e0!==-0x1&&_0x49953a[_0xb68d35(0x2b0)](_0x3ec4e0,0x1);}(0x0,_0x3ea0ad[_0xb68d35(0x2aa)])(this[_0xb68d35(0x26d)],_0x49953a);}[_0x387812(0x1b0)](){const _0x50c81b=_0x387812;var _0x5a1f97,_0x3e936e;if(this[_0x50c81b(0x26d)][_0x50c81b(0x32a)](_0x2e88c0[_0x50c81b(0x264)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x2e88c0[_0x50c81b(0x1b4)])({'maxParallel':0x6})}),!((_0x5a1f97=this[_0x50c81b(0x3f9)])!=null&&_0x5a1f97[_0x50c81b(0x2d9)])){var _0x3fc9fe;(_0x3fc9fe=this[_0x50c81b(0x26d)]['get'](_0x4e9987,_0x3ea0ad[_0x50c81b(0x165)][_0x50c81b(0x166)]))==null||_0x3fc9fe['disableLocalCache']();}(_0x3e936e=this[_0x50c81b(0x3f9)])!=null&&_0x3e936e[_0x50c81b(0x2bb)]&&(0x0,_0x3ea0ad[_0x50c81b(0x2b7)])(this['_injector'],[[_0x2d5274]]),(0x0,_0x3ea0ad[_0x50c81b(0x2b7)])(this['_injector'],[[_0x4e018c],[_0x56403c],[_0x2d0a67]]);}};_0x309f50(_0x31993c,'pluginName','UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x309f50(_0x31993c,_0x387812(0x142),_0x297e46),_0x309f50(_0x31993c,'version',_0x18149d),_0x31993c=_0x48064b([(0x0,_0x3ea0ad[_0x387812(0x182)])(_0x575549[_0x387812(0x10f)],_0x2e88c0[_0x387812(0x1ab)],_0x5d8fae[_0x387812(0x2f1)]),_0x29ab6d(0x1,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x2,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x3,_0x3ea0ad[_0x387812(0x2b5)])],_0x31993c),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x29e),{'enumerable':!0x0,'get':function(){return _0xd648b3;}}),Object[_0x387812(0x1b6)](_0x38e016,'AwaitingState',{'enumerable':!0x0,'get':function(){return _0x70527d;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x368),{'enumerable':!0x0,'get':function(){return _0x4ebec0;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x3ed),{'enumerable':!0x0,'get':function(){return _0x461db8;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x18b),{'enumerable':!0x0,'get':function(){return _0x2b44e6;}}),_0x38e016[_0x387812(0x3f8)]=_0xeb659,Object[_0x387812(0x1b6)](_0x38e016,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x4d9046;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x25b),{'enumerable':!0x0,'get':function(){return _0x56403c;}}),Object['defineProperty'](_0x38e016,_0x387812(0x2c1),{'enumerable':!0x0,'get':function(){return _0xf00944;}}),Object['defineProperty'](_0x38e016,_0x387812(0x1e1),{'enumerable':!0x0,'get':function(){return _0x52b72b;}}),Object[_0x387812(0x1b6)](_0x38e016,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x3c2d9d;}}),Object[_0x387812(0x1b6)](_0x38e016,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x16256e;}}),Object[_0x387812(0x1b6)](_0x38e016,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x9b3649;}}),_0x38e016[_0x387812(0x1b9)]=_0x2a8e35,_0x38e016[_0x387812(0xfe)]=_0x4e47c0,_0x38e016['CollaborationUIEventService']=_0x359cbb,Object['defineProperty'](_0x38e016,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x495660;}}),_0x38e016[_0x387812(0x226)]=_0x579ca0,Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x3c7),{'enumerable':!0x0,'get':function(){return _0x205b67;}}),_0x38e016[_0x387812(0x308)]='ws://127.0.0.1:8000/universer-api/comb/connect',_0x38e016['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x387812(0xe0),_0x38e016[_0x387812(0x222)]='/universer-api/user/session-ticket',Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x110),{'enumerable':!0x0,'get':function(){return _0x5a12bf;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x116),{'enumerable':!0x0,'get':function(){return _0x4264a3;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0xb0),{'enumerable':!0x0,'get':function(){return _0x1c9a8a;}}),_0x38e016[_0x387812(0x384)]=_0x387812(0x1b8),_0x38e016['HEARTBEAT_TIMEOUT_KEY']=_0x387812(0x278),_0x38e016[_0x387812(0xf9)]=_0x37f9b3,_0x38e016[_0x387812(0x18d)]=_0xfd750d,_0x38e016[_0x387812(0x2af)]=_0x3155d1,_0x38e016[_0x387812(0x34e)]=_0x4e9987,_0x38e016[_0x387812(0xae)]=_0x3bc50a,_0x38e016[_0x387812(0x2bf)]=_0x989852,_0x38e016[_0x387812(0xd4)]=0x3e8,_0x38e016[_0x387812(0x37e)]='LOCAL_CACHE_INTERVAL',Object['defineProperty'](_0x38e016,_0x387812(0x1de),{'enumerable':!0x0,'get':function(){return _0x3f167c;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x37c),{'enumerable':!0x0,'get':function(){return _0x2961f8;}}),Object[_0x387812(0x1b6)](_0x38e016,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x119cc1;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x14f),{'enumerable':!0x0,'get':function(){return _0x56abff;}}),Object[_0x387812(0x1b6)](_0x38e016,'PendingState',{'enumerable':!0x0,'get':function(){return _0x5b6c26;}}),_0x38e016[_0x387812(0x306)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x38e016['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x387812(0x144),_0x38e016['SessionStatus']=_0x56411b,Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x176),{'enumerable':!0x0,'get':function(){return _0x1a3266;}}),Object[_0x387812(0x1b6)](_0x38e016,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return _0x5ad7dd;}}),Object['defineProperty'](_0x38e016,_0x387812(0x2a2),{'enumerable':!0x0,'get':function(){return _0xa14eef;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x1e7),{'enumerable':!0x0,'get':function(){return _0x5b7913;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x2ca),{'enumerable':!0x0,'get':function(){return _0x5d844f;}}),_0x38e016[_0x387812(0x3f6)]=_0x1dcdde,Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x2e1),{'enumerable':!0x0,'get':function(){return _0x31993c;}}),_0x38e016['createUniverCollaborationAdapter']=_0x2488e3,_0x38e016[_0x387812(0x326)]=_0x38114d,_0x38e016[_0x387812(0x14c)]=_0x3492e6,_0x38e016[_0x387812(0x2da)]=_0x485eef;}));function _0x1aa5(){const _0x512f01=['string\x20expected','sequenceExecute','SheetPermissionInitController','ITelemetryService','FAIL','textRanges','subarray','CollaborationController','location','_roomMembers','FETCH_MISSING','getCollabEntity','range','AWAITING_WITH_PENDING','UniverDrawing','interceptor','HTTPService','_updateState','getTypeOfUnitAdded$','onTransformState','accept','collaMsg','_imageSourceCache','LocaleService','saveSnapshot','_injector','key','parse','workbook','Injector','?size=','joinRsp','DRAWING_IMAGE_ALLOW_IMAGE_LIST','subUnitId','WorkbookEditablePermission','symbol','HEARTBEAT_TIMEOUT','permissionRejEvent','sheets','put','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','rxjs/operators','_toggleOnline','unitType','getUnitType','ITransformService','localeService','toggleOffline','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','EnsureSlideMasterPageMutation','updatePermissionObjEvent','from','onSyncEditingCollabCursor','signUrlServerUrl','_onUserJoin','saveAttachment','_transformUndoredo','updateCursorEvent','FileId','_replaceFileID','_onCombEvent','_compressMutationService','getCfgEnableObjInherit','FETCH_MISS','PERSON','PERMISSION_REJ','_getSendChangesetTimeout','getUploadOptions','pipe','code','_sendHeartbeat','url','_networkConditionService','_isEchoedAwaitingChangeset','AuthzIoHttpService','roomInfos','values','/universer-api/snapshot/','SlideCollaborationEntity','@univerjs/docs','ILogService','_getCtorByUniverInstanceType','_incrementRevisionNumber','unitLoaded$','body','_handler','registerDependencies','AWAITING','OFFLINE','&to=','toLocal','ICollaborationSocketService','splice','_onRecvEvent','[UniverCollaborationClientPlugin]','RichTextEditingMutation','parseChangesetToProtocol','IConfigService','csShouldRetryEvent','touchDependencies','amd','transformUndoRedo','[CollaborationState]:\x20apply\x20error!','enableAuthServer','number','candidateSocket','unitID','ISingleActiveUnitService','hasOwnProperty','CollaborationEntity','changeset','AAD','Inject','originalMeta','_onConnectionOpen','LocalUndoRedoService','endsWith','memberID','SyncedState','getUnit','getMemberID','sid','_type','INGEST','_change$','open$','IPermissionService','_revisionService','onCommentUpdate','UniverNetwork','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','filter','removeMember','enableOfflineEditing','serializeCombRequest','compose','RECV','invalid\x20output,\x20must\x20be\x20aligned','_collabSessionService','transformStack\x20failed!','_event$','UniverCollaborationClientPlugin','HEARTBEAT','c1Prime','_status$','_onFetchMissResult','missingChangesets','saveSheetBlock','UNIVER_DOC','_entities','Error\x20on\x20receiving\x20event','readyForCollab','snapshot','JSONX','29619oeVGvH','getSnapshotAPIPath','debug','UniverCollaborationPlugin','getAllMembers','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','getDeserializedSheetBlock','batchAllowed','_schedule','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onMissingChangesets','_members','/object/','equals','UNISCRIPT_RUN','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','IUniverInstanceService','columnGroups','_acknowledgeAwaitingIfReady','byteOffset','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','sessionStatus$','toggleOnline','_changesetSessionId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','DEFAULT_COLLAB_WEB_SOCKET_URL','session','univer-pro.collaboration-client.network-condition.service','_emitMembers','DisposableCollection','_clearRedo','session.room-not-exists','[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.','take','pauseCollaboration','_resendTimer','sessionStatus','onStarting','collaboration-client.config','next','loadPdf','getUnitOnRev','_startTelemetryCollaborationNewChangeset','transformChangesets','data','10nsuICx','object','UNIVER_SHEET','createCollaborator','toRemote','_doCreateSocket','30wmBImD','LIVESHARE_REQUEST_HOST','fromCollab','rxjs','deserializeToCombResponse','_configService','SNAPSHOT_URL_KEY','duration','get','_getUndoStack','_createInitialState','socketMessageSubscription','UniverProCollaboration','action','append','resend','_updateLocalCache','[OfflineState]:\x20received\x20rejection.','assign','override','tagLength','fetch_missing','_clearLocalCache','_singleActiveUnitService','_onRemoteRetry','/collaborator','onTransformRemoteChangesetByStateCache','crypto','min','upload','SUBMIT_CHANGESET','focused$','POST','MentionType','some',',\x20got\x20','getConfig','FileSource','_transformAndApplyRemoteChangeset','userID','setConfig','getCurrentUser','actions','includes','ILocalCacheService','PERMISSION_DENIED','_checkMissing','_initCloseConn','submit\x20changeset\x20error!','_startCollaboration','_removeRoom','getValue','unit-cache-','/role','_getDownloadEndpointURL','createIdentifier','_pendingMutations','_stopTelemetryCollaborationNewChangeset','_exhaustRemoteChangesetQueue','attachment','ICommandService','ImageUploadStatusType','_joinRoom','/rev/','_transformStateCache','NEW_CHANGESETS','collaboratorID','merge','_snapshotService','unknown','AwaitingWithPendingState','ws://127.0.0.1:8000/universer-api/comb/connect','reverse','socket\x20close','_getCurrentRevision','event$','getOwnPropertyDescriptor','_sendingTimer','startsWith','fetchThroughInterceptors','_applyRemoteChangeset','origin','objects','conflict','cfgEnableObjInherit','_tryEnsureSocket','_collaborationUIEventService','onTransformSelections','isCompositionEnd','setShowComponents','MentionIoHttpService','_onOffline','LOCAL_CACHE_INTERVAL_KEY','@univerjs-pro/license','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteRejected','UNIVER_BASE','_clearTimeoutTimer','HEARTBEAT_INTERVAL_KEY','fill','listRoles','appendMutation','_initRequestHeader','UNIVER_PDF','_localeService','loginUrlKey','LIVESHARE_FETCH_OPERATIONS','findIndex','getSheetBlock','collabSubmitChangesetUrl','_collaborationPaused','{fileID}','enableCollaboration','updateSnapshot','commentUpdate$','_listenToNetworkCondition','CombCmd','unitId','onRemoteAck','_socketService','waitForRoom$','ImageSourceType','localCacheService','default','downloadEndpointUrl','collaboration-client.local-cache-service','_acknowledgeAwaiting','_onUserLeave','/universer-api/stream/file/upload','uuidv4','_init','_getRedoStack','href','nonceLength','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_getAPIPrefix','title','startTime','LIVESHARE_TERMINATE','_getAPIPrefixPath','_sender','slice','1.0.0-beta.0','_transformIMECache','_createHandler','headers','createSocket','loadOfflineData','32QGIVkJ','pending','onMutationExecutedForCollab','CHANGESET_ACK','resolveWithBasePath','_throwTelemetryCollaborationNewChangeset','closeSession','mutations','unitId\x20is\x20not\x20found','isArray','MSG_FOR_ERROR','USERS_ENTER','unitInfo$','close$','synced','delete','changesets','ConflictState','_identity','connection\x20error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','HELLO','DocStateChangeManagerService','_socket','_executeRemoteChangeset','reduce','aes/pkcs7:\x20wrong\x20padding','_remoteChangesetQueue','patch','CmdRspCode','target','SOCKET_FAILED_RETRY','_unitLoaded$','now','src','_rescheduleHeartbeat','revision','603580pfaIGU','selections','call','_scheduleCollaborationTimeoutTimer','&source=','shouldCloseConn','univer-pro.collaboration-client-socket-service','objectActions','SUBMIT_CHANGESET_TIMEOUT','resourceIDs','forEach','[SyncedState]:\x20received\x20acknowledgement.','awaiting_with_pending','_collaborationSessionService','decrypt','getWorkbookSelections','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/comb','BaseCollaborationEntity','Rectangle','loadSheet','liveShareNewHost','varSizeNonce','session.join-failed','Tools','retryCount','Module','UnitStatus','setCfgEnableObjInherit','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_config','getDrawingImageAllowSize','offline','\x20in\x20_schedule.','90OAJClQ','_localCacheService','getActiveSheet','authzUrl','trim','JOINING','transformMutationsWithChangeset','text-x','_cfgEnableObjInherit','781231XCiNSc','_isPermissionRej','INetworkConditionService','unit','FetchingMissState','_HTTPService','routeKey','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','max','_awaitingChangeset','_clearHeartbeatTimer','_getSocketChannel','_transformService','decorate','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','/fetchmissing?from=','_createSession','SnapshotService','USERS_LEAVE','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','updateMember','_initMergeInterceptor','base-ui.attachment-io.service','ERROR_IMAGE','createInstance','close','has','COMMENT_UPDATE','_univerInstanceService','awaiting','complete','UniverProLicense','updatePermissionPoint','state$','_changesetReqId','error','[CollaborationSessionService]:\x20socket\x20error','_clearUndo','_clearCollaborationTimeoutTimer','Failed\x20to\x20update\x20permission\x20point','LOCAL_CACHE_INTERVAL',',\x20got:\x20','getMember','entityInit$','capture','transformSelections','commentUpdateEvent','_state$','_substituteUndoStack','IAuthzIoService','BYTES_PER_ELEMENT','cmd','/universer-api/uniscript','_commentUpdate$','UPDATE_CURSOR','resolveUnit','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','LIVESHARE_NEW_HOST','UniverTelemetry','_scheduleCompleteTimestamp','name','_transformSelections','BASE64','_shouldReportTelemetry','UnitEmbedded','getImage','csRejEvent','_resendWithTimeout','function','_state','getRandomValues','/-/object/-/batch_allowed','@univerjs-pro/collaboration','getLatestCsReqIdBySid','create','IContextService','getResourcesRequest','IAttachmentIoService','disablePadding','COMPRESS_MUTATION_SEND','fetchMiss','_substituteRedoStack','CollaborationUIEventId','result','positive\x20integer\x20expected,\x20got\x20','COMPRESS_MUTATION_APPLY','dispose','1125228rMLris','parseProtocolChangeset','UNIVER_SLIDE','_redoStacks','SHOULD_CLOSE_CONN','_roomCreated$','getUnitStatus$','_commandService','JOIN_ROOM_FAILED','_initUnitPermissionChange','isTransformMutationsWithChangesetFailure','_telemetryService','UniverLicensePlugin','DataLoaderService','liveShareOperation','endpointKey','loadUnit','buffer','_submitChangeset','DocCollaborationEntity','resolve','isPermissionRej','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','emitEvent','_resendTimeout','session.room-cnt-exceeds','hostname','NO_OTHER_CLIENTS_EDITING','[FetchMissState]','IDLE','operators','onMissedChangesetFetched','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_transitionLocked','_upload','UniverSheets','/allowed','8mMdBPA','CONFLICT','getCollabEntity$','state','getFocusedUnit','_onConnectionFailed','withCredentials','online$','_commentService','type','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','DEFAULT_FILE_NAME','updateCollaborator','getGlobalObject','isSafeInteger','getAttachmentUrl','_adapter','_queuedRemoteChangesets','_undoRedoService','CollaborationEvent','session.room-permission-denied','_members$','[OfflineState]:\x20received\x20changeset.','_disableEditing','onSendChangeset','length','packageName','byteLength','RETRY_CONNECTING_MAX_COUNT','requestParams','awaitingChangeset','CHANGESET_SHOULD_RETRY','JOIN','encrypt','delay','_permissionService','getLocalCacheKey','replace','_getSignURL','PdfCollaborationEntity','RxDisposable','executeCommand','Univer','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','_replayCachedMutations','cipher\x20output\x20not\x20supported','_hasSessionsForEndpoint','_onConflict','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','CommandType','\x20to\x20','set','_snapshotServerService','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','_syncEditingCollabCursor','indexOf','infoRsp','copyFileMeta','timeoutTimer','Quantity','OPTIONAL','&assign=','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','readAsDataURL','textEncoder','ErrorCode','_acknowledgedAwaitingRevision','retryConnectingInterval','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_transformStack','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','size','_socketChannels','reject','file','_entityInit$','SheetCollaborationEntity','Wrong\x20sbox\x20length','responseType','sort','@univerjs/protocol','socketReady','_tryReconnect','\x0aAfter:\x20','__splitChunk__','string','_onRemoteACK','AddSlidePageMutation','DependentOn','init','/universer-api/authz','uploadFileServerUrl','_unlockTransition','_transformRemoteChangesetByStateCache','list','_getLoginPath','updateOfflineData','BoardCollaborationEntity','176856QdFHRT','ICollaborationClientAdapterService','catch','Disposable','collaboration_new_changeset','collabWebSocketUrl','[CollaborationSession]','collaborators','ISocketService','_docStateChangeManagerService','expected\x20Uint8Array','isView','MUTATION','_decreaseWaiting','RemoveSlidePageMutation','update','localUnitId','clear','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitDisposed$','loadBase','getImageSourceCache','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','@univerjs/sheets','onlyLocal','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','subscribe','map','takeUntil','ERROR_EXCEED_SIZE','?url=','UniverNetworkPlugin','onRemoteRej','_socketMessageSubscription','UniverDocs','_userManagerService','_initDependencies','/universer-api/snapshot','sendHeartbeatTimer','CompressMutationService','ThresholdInterceptorFactory','disposeWithMe','defineProperty','SetSelectionsOperation','HEARTBEAT_INTERVAL','CollaborationStatus','2813067prDaqX','OTHER_CLIENT_EDITING','_onMessage','saveChangeset','_showConflictNotification','number\x20expected,\x20got\x20','_registerDependencies','floor','fromCharCode','_getConfig','getUnitId','NOT_COLLAB','leaveEvent','_sessions','sendChangesetTimeout','RevisionService','Uint8Array','_onJoinRoomEvent','EmptyMutationInfo','LEAVE','reqId','listCollaborators','isTransformMutationsWithChangesetSuccess','_clearRetryConnectingTimer','socketService','onRemoteRetry','@univerjs/drawing','_sessionStatus$','message$','UUID','prototype','_onLocalMutation','send','_resolveSessionIdentity','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','26dtXuTq','MemberService','b64DecodeUnicode','UniverProCollaborationClient','CollaborationImageIoService','_pendingSessions','every','_updateStatus','stringify','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','SnapshotServerOverHTTPService','SUCCUSS','UPDATE_PERMISSION_OBJ','getCurrentRevOfUnit','1750NWVjTk','OTHER_CLIENTS_EDITING','endpoint','find','newCsEvent','apply','loadBoard','/unit/','isInternalEditorID','c2Prime','socket$','_createSocket','_getUploadFileURL','requireSession','save\x20fail\x20reason\x20is\x20','/universer-api/oidc/authpage','addHandlerCallback','_logService','[PendingState]:\x20received\x20rejection.','asObservable','_lockTransition','nonce','onRemoteChangeset','loadUnitOfRevision','_handleRemoteChangesets','onStateChange','crypto.getRandomValues\x20must\x20be\x20defined','Optional','_handlerCallback','deepClone','JOIN_ROOM_NOT_EXISTS','Subject','fetchMissingChangesets','UserManagerService','_httpService','UniverInstanceType','[PendingState]:\x20received\x20acknowledgement.','status','ISnapshotServerService','_maxTotalRetryTimeout','charCodeAt','change$','[CollaborationUndoRedoService]','registerHTTPInterceptor','eventID','SOCKET_FAILED','__Key__','maxSize','[CollaborationEntity]','JOIN_ROOM_FULL','_fetchMissChangesets','People','toDisposable','objectID','getTime','DEFAULT_WS_SESSION_TICKET_URL','push','error$','[DataLoaderService]','CommentService','CLOSE_ROOM','_memberService','_instanceService','_unitInfo$','_clearScheduledTask','m2Prime','retryConnectingTimer','_sheetTransformSelectionsService','_onRemoteChangeset','_telemetryInfo','_waitCount','add','post','_eventService','dispose$','LIVESHARE_OPERATION','UNIVER_BOARD','onload','shareReplay','_sessionChannels','reconnect','toStringTag','unsubscribe','SheetsSelectionsService','[CollaborationSessionService]','IUndoRedoService','JOIN_ROOM_PERMISSION_DENIED','toString','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','PSEUDO_FETCH_MISSING_RESULT','getInterceptPoints','objectType','params','tables','onTransformRemoteChangesetByIMECache','BehaviorSubject','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_undoStacks','_transformRemoteChangesetByIMECache','_collaborationTimeoutTimer','@univerjs-pro/slides','baseRev','collaboration-client.auth.needGotoLoginAlert','IMentionIOService','entries'];_0x1aa5=function(){return _0x512f01;};return _0x1aa5();}
1
+ function _0x2dd0(_0x19487f,_0x5c2d18){_0x19487f=_0x19487f-0xc0;const _0x39dfa4=_0x39df();let _0x2dd0b0=_0x39dfa4[_0x19487f];return _0x2dd0b0;}(function(_0x15e79b,_0x28bfa9){const _0x475340=_0x2dd0,_0x42b35c=_0x15e79b();while(!![]){try{const _0x1f19bd=parseInt(_0x475340(0x365))/0x1+parseInt(_0x475340(0x16e))/0x2+-parseInt(_0x475340(0x29f))/0x3+-parseInt(_0x475340(0x123))/0x4+parseInt(_0x475340(0x1cf))/0x5+-parseInt(_0x475340(0x307))/0x6*(-parseInt(_0x475340(0x379))/0x7)+parseInt(_0x475340(0x143))/0x8;if(_0x1f19bd===_0x28bfa9)break;else _0x42b35c['push'](_0x42b35c['shift']());}catch(_0x3b4d00){_0x42b35c['push'](_0x42b35c['shift']());}}}(_0x39df,0xe7a83),function(_0x427d11,_0x2cd5ff){const _0x2860f5=_0x2dd0;typeof exports==_0x2860f5(0x3c6)&&typeof module<'u'?_0x2cd5ff(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x2860f5(0x1d0)&&define['amd']?define([_0x2860f5(0x32b),_0x2860f5(0x3eb),_0x2860f5(0xe6),_0x2860f5(0x1f3),_0x2860f5(0x15b),_0x2860f5(0x308),_0x2860f5(0x27f),_0x2860f5(0x3a6),'rxjs/operators',_0x2860f5(0x138),_0x2860f5(0x411),_0x2860f5(0x188),_0x2860f5(0x3ad)],_0x2cd5ff):(_0x427d11=typeof globalThis<'u'?globalThis:_0x427d11||self,_0x2cd5ff(_0x427d11[_0x2860f5(0x33f)]={},_0x427d11[_0x2860f5(0x1bf)],_0x427d11[_0x2860f5(0x14d)],_0x427d11[_0x2860f5(0x381)],_0x427d11[_0x2860f5(0x2a4)],_0x427d11['rxjs'],_0x427d11['UniverProtocol'],_0x427d11['UniverTelemetry'],_0x427d11[_0x2860f5(0x308)][_0x2860f5(0x1e4)],_0x427d11[_0x2860f5(0x302)],_0x427d11[_0x2860f5(0x2e5)],_0x427d11[_0x2860f5(0x3b1)],_0x427d11[_0x2860f5(0x225)]));}(this,function(_0x16b920,_0x3d4600,_0x17ede7,_0xc72b83,_0x43c3be,_0x1f9457,_0x3d2f85,_0x327e6c,_0x1756fd,_0x3160c0,_0x4bbb37,_0x90a78a,_0x536602){const _0x473efc=_0x2dd0;Object[_0x473efc(0x345)](_0x16b920,Symbol[_0x473efc(0x38d)],{'value':_0x473efc(0x1e6)});let _0x1f8831='collaboration-client.config',_0x12effe={};function _0x143912(_0x39dafa){const _0x4fefe5=_0x473efc;return JSON[_0x4fefe5(0x317)](_0x39dafa)['length'];}function _0x259b8c(_0x65dc4b){'@babel/helpers - typeof';const _0x5ec490=_0x473efc;return _0x259b8c=typeof Symbol==_0x5ec490(0x1d0)&&typeof Symbol[_0x5ec490(0x222)]==_0x5ec490(0x2ad)?function(_0x463947){return typeof _0x463947;}:function(_0x26b312){const _0xa5cf63=_0x5ec490;return _0x26b312&&typeof Symbol==_0xa5cf63(0x1d0)&&_0x26b312['constructor']===Symbol&&_0x26b312!==Symbol['prototype']?_0xa5cf63(0x2ad):typeof _0x26b312;},_0x259b8c(_0x65dc4b);}function _0x2b1ca1(_0x20baaf,_0x26055e){const _0x971f6d=_0x473efc;if(_0x259b8c(_0x20baaf)!=_0x971f6d(0x3c6)||!_0x20baaf)return _0x20baaf;var _0x5069e1=_0x20baaf[Symbol[_0x971f6d(0x328)]];if(_0x5069e1!==void 0x0){var _0x1c5ac6=_0x5069e1[_0x971f6d(0x107)](_0x20baaf,_0x26055e||'default');if(_0x259b8c(_0x1c5ac6)!=_0x971f6d(0x3c6))return _0x1c5ac6;throw TypeError(_0x971f6d(0x386));}return(_0x26055e===_0x971f6d(0x2fb)?String:Number)(_0x20baaf);}function _0x314abf(_0x578444){const _0x1f303f=_0x473efc;var _0x1634d4=_0x2b1ca1(_0x578444,_0x1f303f(0x2fb));return _0x259b8c(_0x1634d4)=='symbol'?_0x1634d4:_0x1634d4+'';}function _0x17f3d2(_0x55b432,_0x5ce36f,_0x48c7f5){const _0x5187d9=_0x473efc;return(_0x5ce36f=_0x314abf(_0x5ce36f))in _0x55b432?Object[_0x5187d9(0x345)](_0x55b432,_0x5ce36f,{'value':_0x48c7f5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x55b432[_0x5ce36f]=_0x48c7f5,_0x55b432;}let _0x420899=function(_0x3a070d){const _0x40000c=_0x473efc;return _0x3a070d[_0x40000c(0x1c1)]=_0x40000c(0x1c1),_0x3a070d[_0x40000c(0x217)]=_0x40000c(0x217),_0x3a070d[_0x40000c(0x2fe)]=_0x40000c(0x2fe),_0x3a070d[_0x40000c(0x192)]=_0x40000c(0x192),_0x3a070d[_0x40000c(0x375)]=_0x40000c(0x375),_0x3a070d[_0x40000c(0x2ed)]='SOCKET_FAILED_RETRY',_0x3a070d[_0x40000c(0x407)]=_0x40000c(0x407),_0x3a070d[_0x40000c(0x288)]=_0x40000c(0x288),_0x3a070d;}({});var _0x2d7dce=class{constructor(){const _0x514526=_0x473efc;_0x17f3d2(this,_0x514526(0xd3),new _0x1f9457[(_0x514526(0x2d8))]()),_0x17f3d2(this,_0x514526(0x2be),this['_event$']['asObservable']());}[_0x473efc(0x3b3)](_0x55c39b){const _0xe4c1c6=_0x473efc;this[_0xe4c1c6(0xd3)][_0xe4c1c6(0x2f5)](_0x55c39b);}},_0x113b06=class{constructor(){const _0x3b0ad5=_0x473efc;_0x17f3d2(this,_0x3b0ad5(0x33c),new _0x1f9457[(_0x3b0ad5(0x2d8))]()),_0x17f3d2(this,_0x3b0ad5(0x198),this[_0x3b0ad5(0x33c)][_0x3b0ad5(0x1b5)]());}[_0x473efc(0x3ec)](_0x9cc73f){this['_commentUpdate$']['next'](_0x9cc73f);}};function _0x9a3e23(_0x44ee43,_0x3f97c4){return function(_0x524b65,_0x10d911){_0x3f97c4(_0x524b65,_0x10d911,_0x44ee43);};}function _0x4da91b(_0x5de9ce,_0x4a3313,_0x1aaff4,_0x4eba19){const _0x28b5f1=_0x473efc;var _0x515b2d=arguments['length'],_0x558195=_0x515b2d<0x3?_0x4a3313:_0x4eba19===null?_0x4eba19=Object[_0x28b5f1(0x167)](_0x4a3313,_0x1aaff4):_0x4eba19,_0x133eca;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x28b5f1(0x1d0))_0x558195=Reflect['decorate'](_0x5de9ce,_0x4a3313,_0x1aaff4,_0x4eba19);else{for(var _0x1a390e=_0x5de9ce[_0x28b5f1(0x2b6)]-0x1;_0x1a390e>=0x0;_0x1a390e--)(_0x133eca=_0x5de9ce[_0x1a390e])&&(_0x558195=(_0x515b2d<0x3?_0x133eca(_0x558195):_0x515b2d>0x3?_0x133eca(_0x4a3313,_0x1aaff4,_0x558195):_0x133eca(_0x4a3313,_0x1aaff4))||_0x558195);}return _0x515b2d>0x3&&_0x558195&&Object['defineProperty'](_0x4a3313,_0x1aaff4,_0x558195),_0x558195;}let _0x34dd44=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x3ea028){const _0x465167=_0x473efc;super(),this[_0x465167(0x171)]=_0x3ea028,_0x17f3d2(this,_0x465167(0x39b),new Map()),_0x17f3d2(this,_0x465167(0x3fa),new _0x1f9457['Subject']()),this[_0x465167(0x12e)]((0x0,_0x1f9457['merge'])(this[_0x465167(0x171)][_0x465167(0x3ef)](_0x17ede7[_0x465167(0x1c0)][_0x465167(0x1bc)])[_0x465167(0x2bf)]((0x0,_0x1756fd[_0x465167(0xfb)])(_0x344acc=>_0x344acc[_0x465167(0x204)]())),this[_0x465167(0x171)][_0x465167(0x3ef)](_0x17ede7['UniverInstanceType']['UNIVER_DOC'])['pipe']((0x0,_0x1756fd[_0x465167(0xfb)])(_0x525a72=>_0x525a72[_0x465167(0x204)]())),this[_0x465167(0x171)][_0x465167(0x3ef)](_0x17ede7[_0x465167(0x1c0)][_0x465167(0x3b5)])[_0x465167(0x2bf)]((0x0,_0x1756fd[_0x465167(0xfb)])(_0x5dc40e=>_0x5dc40e[_0x465167(0x204)]())),this['_univerInstanceService'][_0x465167(0x3ef)](_0x17ede7[_0x465167(0x1c0)][_0x465167(0x3e8)])[_0x465167(0x2bf)]((0x0,_0x1756fd[_0x465167(0xfb)])(_0x196c29=>_0x196c29[_0x465167(0x204)]())))[_0x465167(0x3bf)](_0x5b4c95=>this[_0x465167(0x28b)](_0x5b4c95)));}[_0x473efc(0x1d2)](_0x5cb34a){const _0x49e76d=_0x473efc;return this[_0x49e76d(0x39b)][_0x49e76d(0x406)](_0x5cb34a)?(0x0,_0x1f9457['of'])(this[_0x49e76d(0x39b)][_0x49e76d(0x3af)](_0x5cb34a)):this[_0x49e76d(0x3fa)][_0x49e76d(0x2bf)]((0x0,_0x1756fd[_0x49e76d(0xfb)])(_0x2a675c=>{const _0x1f24e4=_0x49e76d;if(_0x2a675c===_0x5cb34a)return this['_roomMembers'][_0x1f24e4(0x3af)](_0x2a675c);}));}['updateMember'](_0x24cdab,_0x4334c6){const _0x2fbcc4=_0x473efc;let _0x1802d0=this[_0x2fbcc4(0x39b)][_0x2fbcc4(0x3af)](_0x24cdab);_0x1802d0||(_0x1802d0=new _0x4a1bd1(),this['_roomMembers'][_0x2fbcc4(0x184)](_0x24cdab,_0x1802d0),this[_0x2fbcc4(0x3fa)][_0x2fbcc4(0x2f5)](_0x24cdab)),_0x1802d0['updateMember'](_0x4334c6);}[_0x473efc(0x13e)](_0x14d07d,_0x19cbc3){const _0x2b796b=_0x473efc;let _0x4f0335=this[_0x2b796b(0x39b)][_0x2b796b(0x3af)](_0x14d07d);_0x4f0335&&_0x4f0335[_0x2b796b(0x13e)](_0x19cbc3);}['getRoom'](_0x7a8efb){const _0x1afb4e=_0x473efc;return this[_0x1afb4e(0x39b)][_0x1afb4e(0x3af)](_0x7a8efb);}[_0x473efc(0x404)](_0x5aa718,_0x292ece){const _0x5f43bd=_0x473efc;let _0x3f7faa=this[_0x5f43bd(0x39b)][_0x5f43bd(0x3af)](_0x5aa718);if(_0x3f7faa)return _0x3f7faa['getMember'](_0x292ece);}['_removeRoom'](_0x56a2cf){const _0xeb836a=_0x473efc;let _0x1f6946=this[_0xeb836a(0x39b)]['get'](_0x56a2cf);_0x1f6946&&(_0x1f6946[_0xeb836a(0x335)](),this[_0xeb836a(0x39b)][_0xeb836a(0x2ce)](_0x56a2cf));}[_0x473efc(0x335)](){const _0x53a18f=_0x473efc;this[_0x53a18f(0x39b)][_0x53a18f(0x343)](_0x5c9f8d=>_0x5c9f8d[_0x53a18f(0x335)]()),this[_0x53a18f(0x39b)]['clear'](),this[_0x53a18f(0x3fa)][_0x53a18f(0x403)]();}};_0x34dd44=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x2c6)])],_0x34dd44);var _0x4a1bd1=class extends _0x17ede7['Disposable']{constructor(..._0x567f68){const _0x33e543=_0x473efc;super(..._0x567f68),_0x17f3d2(this,_0x33e543(0x3e3),new Map()),_0x17f3d2(this,_0x33e543(0x366),new _0x1f9457[(_0x33e543(0x3c1))](this[_0x33e543(0x3e3)])),_0x17f3d2(this,_0x33e543(0x339),this[_0x33e543(0x366)][_0x33e543(0x1b5)]());}[_0x473efc(0x335)](){const _0x4adc83=_0x473efc;this[_0x4adc83(0x3e3)][_0x4adc83(0x40f)](),this[_0x4adc83(0x366)][_0x4adc83(0x403)]();}[_0x473efc(0x385)](_0x42247e){const _0x4825f4=_0x473efc;this[_0x4825f4(0x3e3)][_0x4825f4(0x184)](_0x42247e[_0x4825f4(0x2e0)],_0x42247e),this[_0x4825f4(0xc8)]();}[_0x473efc(0x13e)](_0x5cd937){const _0x1f2352=_0x473efc;this[_0x1f2352(0x3e3)][_0x1f2352(0x2ce)](_0x5cd937),this[_0x1f2352(0xc8)]();}[_0x473efc(0x404)](_0x76d0a7){const _0x2424ce=_0x473efc;return this[_0x2424ce(0x3e3)][_0x2424ce(0x3af)](_0x76d0a7);}[_0x473efc(0x141)](){const _0x3d8650=_0x473efc;return Array[_0x3d8650(0x2e1)](this[_0x3d8650(0x3e3)]['values']());}[_0x473efc(0xc8)](){const _0x5dc03c=_0x473efc;this[_0x5dc03c(0x366)][_0x5dc03c(0x2f5)](this[_0x5dc03c(0x3e3)]);}};function _0x4a55a2(_0x33db03,_0x1168f5){const _0x1286d5=_0x473efc;if(_0x5c41b8(_0x33db03))return _0x1168f5;if(_0x1168f5[_0x1286d5(0x1fb)]===_0x3d4600[_0x1286d5(0x350)][_0x1286d5(0x2da)]){let _0x4cd8d3=_0x52a406(_0x33db03),_0x56c5db=_0x1168f5;return{..._0x56c5db,'data':{..._0x56c5db[_0x1286d5(0x1ab)],'unitID':_0x33db03[_0x1286d5(0x36c)][_0x1286d5(0x298)],'unitType':_0x33db03[_0x1286d5(0x36c)]['unitType']??_0x56c5db[_0x1286d5(0x1ab)][_0x1286d5(0x19a)],'changeset':_0x4cd8d3[_0x1286d5(0x387)](_0x56c5db['data'][_0x1286d5(0x364)],_0xe17918(_0x33db03))}};}if(_0x1168f5[_0x1286d5(0x1fb)]===_0x3d4600['CollaborationEvent'][_0x1286d5(0x161)]){let _0x527ff7=_0x1168f5;return{..._0x527ff7,'data':{..._0x527ff7['data'],'unitID':_0x33db03[_0x1286d5(0x36c)]['unitId'],'unitType':_0x33db03['target'][_0x1286d5(0x19a)]??_0x527ff7['data']['unitType']}};}return _0x1168f5;}function _0x3d663f(_0xd9fa38,_0x424baf){const _0x2440a4=_0x473efc;if(_0x5c41b8(_0xd9fa38))return[_0x424baf];switch(_0x424baf[_0x2440a4(0x1fb)]){case _0x3d4600['CollaborationEvent']['NEW_CHANGESETS']:return[_0x50f351(_0xd9fa38,_0x424baf)];case _0x3d4600['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:return[_0x97c847(_0xd9fa38,_0x424baf)];case _0x3d4600[_0x2440a4(0x350)][_0x2440a4(0x289)]:return[_0x293146(_0xd9fa38,_0x424baf)];default:return[_0x424baf];}}function _0x5c41b8(_0x5df41b){const _0x2e7c4f=_0x473efc;return _0x5df41b[_0x2e7c4f(0x36c)][_0x2e7c4f(0x152)]==null&&_0x5df41b[_0x2e7c4f(0x36c)][_0x2e7c4f(0x298)]===_0x5df41b[_0x2e7c4f(0xe4)]&&!_0x5df41b[_0x2e7c4f(0x364)];}function _0x50f351(_0x31cddf,_0xc94f63){const _0x123ce5=_0x473efc;return{..._0xc94f63,'data':(0x0,_0x3d4600[_0x123ce5(0xeb)])(_0x5d5ad7(_0x31cddf,(0x0,_0x3d4600[_0x123ce5(0x388)])(_0xc94f63['data'])))};}function _0x293146(_0x3495ff,_0x37737f){const _0x192c39=_0x473efc;return{..._0x37737f,'data':_0x5d5ad7(_0x3495ff,_0x37737f[_0x192c39(0x1ab)])};}function _0x97c847(_0x3f9b90,_0x9f0e8a){const _0x16c92e=_0x473efc;let _0x13e908=_0x9f0e8a[_0x16c92e(0x1ab)];return{..._0x9f0e8a,'data':{..._0x13e908,'changesets':_0x13e908[_0x16c92e(0x122)][_0x16c92e(0xfb)](_0x36431a=>(0x0,_0x3d4600['parseChangesetToProtocol'])(_0x5d5ad7(_0x3f9b90,(0x0,_0x3d4600['parseProtocolChangeset'])(_0x36431a))))}};}function _0x5d5ad7(_0x3fc017,_0x1e8fd2){const _0x393e71=_0x473efc;return _0x52a406(_0x3fc017)[_0x393e71(0x37c)](_0x1e8fd2,_0xe17918(_0x3fc017));}function _0x52a406(_0x3296a7){const _0x5cefba=_0x473efc;if(!_0x3296a7[_0x5cefba(0x364)])throw Error(_0x5cefba(0x2cb));return _0x3296a7[_0x5cefba(0x364)];}function _0xe17918(_0x4e15a4){const _0x3cd0e4=_0x473efc;return{'localUnitId':_0x4e15a4[_0x3cd0e4(0xe4)],'unitType':_0x4e15a4['unitType'],'target':_0x4e15a4['target']};}let _0xcf341c=function(_0x1f79ec){const _0x147e18=_0x473efc;return _0x1f79ec[_0x1f79ec[_0x147e18(0x23d)]=0x0]=_0x147e18(0x23d),_0x1f79ec[_0x1f79ec['JOINING']=0x1]=_0x147e18(0x3b9),_0x1f79ec[_0x1f79ec[_0x147e18(0x1ca)]=0x2]=_0x147e18(0x1ca),_0x1f79ec[_0x1f79ec[_0x147e18(0x17d)]=0x3]=_0x147e18(0x17d),_0x1f79ec;}({}),_0x429f9b={[_0x3d2f85[_0x473efc(0x3e4)][_0x473efc(0x1fc)]]:_0x473efc(0x3ca),[_0x3d2f85[_0x473efc(0x3e4)]['JOIN_ROOM_FULL']]:'session.room-full',[_0x3d2f85[_0x473efc(0x3e4)][_0x473efc(0x3cd)]]:_0x473efc(0x1bb),[_0x3d2f85['CmdRspCode'][_0x473efc(0x382)]]:'session.room-permission-denied',[_0x3d2f85[_0x473efc(0x3e4)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x473efc(0x279)},_0x1fbd86=class extends _0x17ede7[_0x473efc(0x1a3)]{get[_0x473efc(0x36f)](){const _0x4ff898=_0x473efc;return this[_0x4ff898(0x20c)]['getValue']();}constructor(_0x4c9950,_0xef856,_0x3bb653,_0x3ca5e3,_0x7192db,_0x1e8dfa,_0x1bbcea,_0xba0bbe){const _0x4e3b20=_0x473efc;super(),this[_0x4e3b20(0x145)]=_0x4c9950,this[_0x4e3b20(0x309)]=_0x3bb653,this[_0x4e3b20(0x414)]=_0x3ca5e3,this[_0x4e3b20(0x2f3)]=_0x7192db,this[_0x4e3b20(0x318)]=_0x1e8dfa,this[_0x4e3b20(0x1fd)]=_0x1bbcea,this[_0x4e3b20(0x194)]=_0xba0bbe,_0x17f3d2(this,_0x4e3b20(0x20c),new _0x1f9457[(_0x4e3b20(0x3c1))](0x0)),_0x17f3d2(this,_0x4e3b20(0x1bd),this[_0x4e3b20(0x20c)][_0x4e3b20(0x1b5)]()),_0x17f3d2(this,_0x4e3b20(0xd3),new _0x1f9457[(_0x4e3b20(0x2d8))]()),_0x17f3d2(this,_0x4e3b20(0x2be),this[_0x4e3b20(0xd3)][_0x4e3b20(0x1b5)]()),_0x17f3d2(this,'_socket',void 0x0),_0x17f3d2(this,_0x4e3b20(0xf7),void 0x0),_0x17f3d2(this,_0x4e3b20(0x2ec),void 0x0),_0x17f3d2(this,'_shouldReportTelemetry',!0x1),_0x17f3d2(this,'_telemetryInfo',null),this[_0x4e3b20(0x3c4)]=!!this[_0x4e3b20(0x194)],_0xef856['pipe']((0x0,_0x1f9457[_0x4e3b20(0x28a)])(this['dispose$']))['subscribe'](_0x5b3937=>{const _0x2aa202=_0x4e3b20;if(_0x5b3937!==void 0x0){if(this[_0x2aa202(0x16d)]=_0x5b3937,_0x5b3937)this[_0x2aa202(0xcb)](_0x5b3937),this['_socketMessageSubscription']=_0x5b3937[_0x2aa202(0x38f)][_0x2aa202(0x3bf)](_0xf4f348=>{const _0x55f2af=_0x2aa202;_0xf4f348['routeKey']===this['_identity'][_0x55f2af(0x36c)]['unitId']&&this['_onCombEvent'](_0xf4f348);});else{var _0x228fbd;this[_0x2aa202(0xc4)](),this[_0x2aa202(0x20c)][_0x2aa202(0x2f5)](0x2),(_0x228fbd=this['_socketMessageSubscription'])==null||_0x228fbd[_0x2aa202(0x278)](),this['_socketMessageSubscription']=null;}}});}[_0x473efc(0x3be)](){const _0x5c61c0=_0x473efc;var _0x4961d0;return((_0x4961d0=this[_0x5c61c0(0x16d)])==null?void 0x0:_0x4961d0['memberID'])??null;}['dispose'](){const _0x21c4b5=_0x473efc;super[_0x21c4b5(0x335)](),this[_0x21c4b5(0x11f)](),this[_0x21c4b5(0x2cf)]['next'](),this[_0x21c4b5(0x2cf)][_0x21c4b5(0x403)]();}['close'](){const _0x5ebfc1=_0x473efc;var _0x53c226;this[_0x5ebfc1(0xc4)](),(_0x53c226=this[_0x5ebfc1(0x16d)])==null||_0x53c226[_0x5ebfc1(0x10c)]({'cmd':_0x3d2f85[_0x5ebfc1(0x1c9)][_0x5ebfc1(0x3b7)],'data':{'roomID':this[_0x5ebfc1(0x145)]['target'][_0x5ebfc1(0x298)]}}),this[_0x5ebfc1(0xd3)][_0x5ebfc1(0x403)](),this[_0x5ebfc1(0x20c)][_0x5ebfc1(0x403)]();}[_0x473efc(0x3ce)](_0x579969){const _0x1231b6=_0x473efc;_0x579969[_0x1231b6(0x258)]===_0x3d2f85[_0x1231b6(0x1c9)][_0x1231b6(0x102)]?this[_0x1231b6(0x3a3)](_0x579969):_0x579969[_0x1231b6(0x258)]===_0x3d2f85[_0x1231b6(0x1c9)][_0x1231b6(0x111)]&&this[_0x1231b6(0x13d)](_0x579969);}[_0x473efc(0xcb)](_0x514699){const _0x185587=_0x473efc;this['_sessionStatus$'][_0x185587(0x2f5)](0x1),_0x514699['send']({'cmd':_0x3d2f85[_0x185587(0x1c9)][_0x185587(0x102)],'routeKey':this[_0x185587(0x145)][_0x185587(0x36c)][_0x185587(0x298)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x185587(0x36c)][_0x185587(0x298)]}]}});}[_0x473efc(0x3a3)](_0x56b192){const _0x1e4c21=_0x473efc;var _0x42a3c2;if(_0x56b192[_0x1e4c21(0x3e1)]in _0x429f9b){this[_0x1e4c21(0x1fd)][_0x1e4c21(0x3b3)]({'id':_0x1e4c21(0x375),'data':_0x429f9b[_0x56b192['code']]}),this[_0x1e4c21(0x20c)][_0x1e4c21(0x2f5)](0x2);return;}this['_sessionStatus$'][_0x1e4c21(0x2f5)](0x3);let _0x1d52b1=(_0x42a3c2=_0x56b192[_0x1e4c21(0x1ab)][_0x1e4c21(0x2e9)][this['_identity'][_0x1e4c21(0x36c)][_0x1e4c21(0x298)]])==null?void 0x0:_0x42a3c2[_0x1e4c21(0x12a)];_0x1d52b1&&_0x1d52b1[_0x1e4c21(0x343)](_0x61cf7d=>this[_0x1e4c21(0x2f3)]['updateMember'](this['_identity'][_0x1e4c21(0xe4)],_0x61cf7d));}['_onRecvEvent'](_0x5a3cd5){const _0x262391=_0x473efc;try{let _0x2e689b=_0x3d663f(this['_identity'],_0x5a3cd5['data']);for(let _0x41bf40 of _0x2e689b)switch(_0x41bf40['eventID']){case _0x3d4600[_0x262391(0x350)][_0x262391(0x1ef)]:this[_0x262391(0x13a)](_0x41bf40),this[_0x262391(0xd3)][_0x262391(0x2f5)](_0x41bf40);break;case _0x3d4600[_0x262391(0x350)][_0x262391(0x3a9)]:this[_0x262391(0xc6)](_0x41bf40),this['_event$'][_0x262391(0x2f5)](_0x41bf40);break;case _0x3d4600[_0x262391(0x350)][_0x262391(0x183)]:case _0x3d4600[_0x262391(0x350)][_0x262391(0x289)]:this[_0x262391(0x324)](),this[_0x262391(0x35f)](),this[_0x262391(0xd3)][_0x262391(0x2f5)](_0x41bf40);break;case _0x3d4600['CollaborationEvent']['MSG_FOR_ERROR']:this['_logService']['error'](_0x262391(0x2c4)+JSON[_0x262391(0x317)](_0x41bf40)),this['_event$']['next'](_0x41bf40);break;case _0x3d4600[_0x262391(0x350)][_0x262391(0x214)]:this[_0x262391(0x318)][_0x262391(0x3ec)](_0x41bf40[_0x262391(0x1ab)]),this[_0x262391(0xd3)]['next'](_0x41bf40);break;default:this['_event$'][_0x262391(0x2f5)](_0x41bf40);}}catch(_0x1d2b80){this[_0x262391(0x309)][_0x262391(0x3e6)](_0x1d2b80,_0x5a3cd5);}}[_0x473efc(0x13a)](_0x3d100f){const _0x10988a=_0x473efc;this[_0x10988a(0x2f3)]['updateMember'](this[_0x10988a(0x145)][_0x10988a(0xe4)],_0x3d100f[_0x10988a(0x1ab)]);}['_onUserLeave'](_0x1a2f9b){const _0x31a511=_0x473efc;this['_memberService'][_0x31a511(0x13e)](this[_0x31a511(0x145)][_0x31a511(0xe4)],_0x1a2f9b['data'][_0x31a511(0x2e0)]);}async['send'](_0x3434e4,_0x1713e7){const _0xf3071a=_0x473efc;if(this[_0xf3071a(0x36f)]!==0x3||!this[_0xf3071a(0x16d)])throw Error(_0xf3071a(0x255));try{let _0x4dc018=_0x4a55a2(this['_identity'],_0x3434e4);_0x4dc018['eventID']===_0x3d4600[_0xf3071a(0x350)][_0xf3071a(0x2da)]&&(this[_0xf3071a(0x114)](),this[_0xf3071a(0xdb)](_0x4dc018)),this[_0xf3071a(0x16d)]['send']({'cmd':_0x3d2f85[_0xf3071a(0x1c9)][_0xf3071a(0xfa)],'routeKey':this[_0xf3071a(0x145)][_0xf3071a(0x36c)][_0xf3071a(0x298)],'routeType':'','data':_0x4dc018});}catch(_0x2d1afa){this['_logService'][_0xf3071a(0x3e6)](_0x2d1afa);}}[_0x473efc(0x114)](){const _0x5275df=_0x473efc;this[_0x5275df(0x2ec)]=setTimeout(()=>{const _0x337b71=_0x5275df;this[_0x337b71(0x2ec)]=null,this[_0x337b71(0x1fd)]['emitEvent']({'id':_0x337b71(0x288)});},this[_0x5275df(0x414)]['getConfig'](_0x5275df(0x2dc))??0x4e20);}[_0x473efc(0x35f)](){const _0x3cc8ad=_0x473efc;this[_0x3cc8ad(0x2ec)]&&=(clearTimeout(this[_0x3cc8ad(0x2ec)]),null);}[_0x473efc(0xdb)](_0x4d5008){const _0x154946=_0x473efc;if(!this[_0x154946(0x3c4)])return;let {data:_0x176d47}=_0x4d5008,{unitID:_0x4a9cf1,changeset:_0x5139de}=_0x176d47,{mutations:_0x5b665c,type:_0x48d6be}=_0x5139de;this[_0x154946(0x1ee)]={'unitId':_0x4a9cf1,'type':_0x48d6be,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x143912(_0x5b665c)};}[_0x473efc(0x324)](){const _0x2b6c3e=_0x473efc;if(this[_0x2b6c3e(0x3c4)]){if(!this[_0x2b6c3e(0x1ee)]){this[_0x2b6c3e(0x309)][_0x2b6c3e(0x3e6)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x2b6c3e(0x1ee)]['stopTime']=performance['now'](),this[_0x2b6c3e(0x1ee)][_0x2b6c3e(0x40b)]=this[_0x2b6c3e(0x1ee)][_0x2b6c3e(0x153)]-this[_0x2b6c3e(0x1ee)][_0x2b6c3e(0x118)],this['_telemetryService'][_0x2b6c3e(0x2a5)]('collaboration_new_changeset',this[_0x2b6c3e(0x1ee)]),this[_0x2b6c3e(0x1ee)]=null;}}[_0x473efc(0xc4)](){const _0x3791e9=_0x473efc;this[_0x3791e9(0x1ee)]=null;}};_0x1fbd86=_0x4da91b([_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x3,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x4,(0x0,_0x17ede7['Inject'])(_0x34dd44)),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x113b06)),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x327e6c[_0x473efc(0x37b)]))],_0x1fbd86);let _0x4386bd=(0x0,_0x17ede7[_0x473efc(0x1cb)])(_0x473efc(0x37d));function _0x5f3492(_0x40d874){const _0x34f031=_0x473efc;return _0x34f031(0x124)+_0x40d874;}function _0x52a47b(_0x44b85e){const _0x56f1e8=_0x473efc;let {unitID:_0x4b36a7,mutations:_0x22092a}=_0x44b85e;return{'unitId':_0x4b36a7,'subUnitId':_0x22092a['length']>0x0?_0x22092a[0x0]['params'][_0x56f1e8(0x20f)]:null};}let _0x62027=class{constructor(_0x13b511,_0x5bde39,_0x350517){const _0x4375bd=_0x473efc;this['_injector']=_0x13b511,this[_0x4375bd(0x11c)]=_0x5bde39,this[_0x4375bd(0x2cc)]=_0x350517;}[_0x473efc(0x19c)](_0x5500bc){const _0x737c07=_0x473efc;var _0x5e1cd1,_0xc62632;let _0x4c1f56=this[_0x737c07(0x28c)][_0x737c07(0x3af)](_0x43c3be[_0x737c07(0x160)]),{unitId:_0x57f83c,subUnitId:_0x11ad27}=_0x52a47b(_0x5500bc),_0x1392e3=_0x4c1f56==null?void 0x0:_0x4c1f56['getWorkbookSelections'](_0x57f83c)[_0x737c07(0x1ad)](),_0x212bac=(_0x5e1cd1=this[_0x737c07(0x2cc)][_0x737c07(0x1a9)](_0x57f83c))==null||(_0x5e1cd1=_0x5e1cd1[_0x737c07(0x329)]())==null?void 0x0:_0x5e1cd1[_0x737c07(0x2d3)]();if(_0x1392e3[_0x737c07(0x2b6)]===0x0||!_0x57f83c||!_0x11ad27)return;let _0x57b17f=[{'id':_0x43c3be[_0x737c07(0x37a)]['id'],'params':{'unitId':_0x57f83c,'subUnitId':_0x212bac,'selections':_0x17ede7[_0x737c07(0x1ea)]['deepClone'](_0x1392e3)}}],_0x252555=this[_0x737c07(0x11c)][_0x737c07(0x12f)](_0x5500bc,_0x57b17f);if(!(0x0,_0x3d4600[_0x737c07(0x2ba)])(_0x252555))throw _0x252555[_0x737c07(0x3e6)];let _0x101531=(_0xc62632=_0x252555[_0x737c07(0x377)][0x0])==null||(_0xc62632=_0xc62632[_0x737c07(0x1de)])==null?void 0x0:_0xc62632[_0x737c07(0x378)];if(Array[_0x737c07(0x2fd)](_0x101531)&&_0x101531['length']){if(_0x101531['length']===_0x57b17f[0x0][_0x737c07(0x1de)][_0x737c07(0x378)]['length']&&_0x101531['every']((_0x151bbb,_0x5349a7)=>_0x17ede7[_0x737c07(0x27b)][_0x737c07(0x416)](_0x151bbb[_0x737c07(0x323)],_0x57b17f[0x0][_0x737c07(0x1de)][_0x737c07(0x378)][_0x5349a7][_0x737c07(0x323)])))return;this[_0x737c07(0x28c)]['get'](_0x17ede7[_0x737c07(0x31c)])['executeCommand'](_0x43c3be[_0x737c07(0x37a)]['id'],{'unitId':_0x57f83c,'subUnitId':_0x212bac,'selections':_0x101531});}}};_0x62027=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x1,_0x3d4600['ITransformService']),_0x9a3e23(0x2,_0x17ede7['IUniverInstanceService'])],_0x62027);let _0x549ce8=(0x0,_0x17ede7[_0x473efc(0x1cb)])('univer-pro.collaboration-client.single-active-unit-service'),_0x3f32fb=function(_0x3164ee){const _0x1ae73f=_0x473efc;return _0x3164ee[_0x3164ee[_0x1ae73f(0x30f)]=0x0]=_0x1ae73f(0x30f),_0x3164ee[_0x3164ee[_0x1ae73f(0x21f)]=0x1]=_0x1ae73f(0x21f),_0x3164ee;}({});function _0x28abbf(_0x304fe1){const _0x1ac3d7=_0x473efc;var _0x28c168;return!!((_0x28c168=_0x304fe1[_0x1ac3d7(0x1de)])!=null&&_0x28c168['__splitChunk__']);}let _0x483519=new Set([_0x43c3be[_0x473efc(0xe2)]['id']]),_0x33aa6e=new Set([_0x3160c0['AddSlidePageMutation']['id'],_0x3160c0[_0x473efc(0x363)]['id'],_0x3160c0[_0x473efc(0x418)]['id'],_0x3160c0[_0x473efc(0x3db)]['id']]);function _0x5a4f86(_0x3e8d37,_0x4d0b1c=_0x483519){const _0x4102f0=_0x473efc;let _0x332986=[];for(let _0x3caa6f of _0x3e8d37){if(_0x4d0b1c[_0x4102f0(0x406)](_0x3caa6f['id'])){if(_0x332986['length']>0x0)break;_0x332986[_0x4102f0(0x283)](_0x3caa6f);break;}if(_0x28abbf(_0x3caa6f)){if(_0x332986['length']>0x0)break;_0x332986['push'](_0x3caa6f);break;}_0x332986['push'](_0x3caa6f);}return _0x332986;}function _0x57ca29(_0x587a02,_0x1db3f4,_0x493405,_0x25fa95,_0xd591db){const _0x16d84b=_0x473efc;let _0x3a73d5=_0x5a4f86(_0x587a02),_0x280879=_0xd591db['getCurrentUser'](),_0x49b0ac=(_0x280879==null?void 0x0:_0x280879[_0x16d84b(0x36b)])??'unknown',_0x3af4be=(_0x280879==null?void 0x0:_0x280879[_0x16d84b(0x2e0)])??_0x16d84b(0x3a5);return{'changeset':{'unitID':_0x1db3f4,'type':(0x0,_0x3d4600[_0x16d84b(0x2c1)])(_0x493405[_0x16d84b(0x291)](_0x1db3f4)),'baseRev':_0x25fa95[_0x16d84b(0x1aa)](_0x1db3f4),'revision':0x0,'userID':_0x49b0ac,'memberID':_0x3af4be,'mutations':_0x3a73d5},'pendingMutations':_0x587a02[_0x16d84b(0xd2)](_0x3a73d5[_0x16d84b(0x2b6)])};}let _0x138757=_0x57ca29;function _0x17cfb5(_0x209f1c,_0xe8497a,_0x18ebec,_0x10b1da,_0x337663){const _0x29b19a=_0x473efc;let _0x565c41=_0x5a4f86(_0x209f1c,_0x33aa6e),_0x475797=_0x337663[_0x29b19a(0x224)](),_0x1e3187=(_0x475797==null?void 0x0:_0x475797[_0x29b19a(0x36b)])??_0x29b19a(0x3a5),_0x598e58=(_0x475797==null?void 0x0:_0x475797['memberID'])??'unknown';return{'changeset':{'unitID':_0xe8497a,'type':(0x0,_0x3d4600[_0x29b19a(0x2c1)])(_0x18ebec[_0x29b19a(0x291)](_0xe8497a)),'baseRev':_0x10b1da[_0x29b19a(0x1aa)](_0xe8497a),'revision':0x0,'userID':_0x1e3187,'memberID':_0x598e58,'mutations':_0x565c41},'pendingMutations':_0x209f1c[_0x29b19a(0xd2)](_0x565c41[_0x29b19a(0x2b6)])};}function _0x33b986(_0x278328,_0x4547a2,_0x14c05e,_0x20f36c,_0xaefed2){const _0x26380d=_0x473efc;let _0x394566=_0x278328[_0x26380d(0x3dc)]((_0x20c962,_0x4bb75b)=>{const _0x2bbed7=_0x26380d;let _0x4515ef=_0x20c962[_0x20c962['length']-0x1],{id:_0x1f3ea8}=_0x4515ef??{},{id:_0x976803,type:_0x5ed209}=_0x4bb75b,_0x287ad6=_0x4bb75b[_0x2bbed7(0x1de)];if(_0x1f3ea8&&_0x1f3ea8!==_0x976803)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1f3ea8+_0x2bbed7(0x246)+_0x976803+'.');if(!_0x4515ef)return[{'id':_0x976803,'type':_0x5ed209,'params':{'unitId':_0x287ad6[_0x2bbed7(0x298)],'textRanges':_0x287ad6['textRanges'],'actions':_0x287ad6['actions']}}];let _0x47fe4f=_0x4515ef[_0x2bbed7(0x1de)];return _0x200591(_0x47fe4f,_0x287ad6)?[..._0x20c962['slice'](0x0,-0x1),{..._0x4515ef,'id':_0x976803,'type':_0x5ed209,'params':{'unitId':_0x287ad6['unitId'],'textRanges':_0x287ad6[_0x2bbed7(0x2d9)],'actions':_0x17ede7['JSONX'][_0x2bbed7(0x240)](_0x47fe4f['actions'],_0x287ad6[_0x2bbed7(0x1a8)])}}]:[..._0x20c962,{'id':_0x976803,'type':_0x5ed209,'params':{'unitId':_0x287ad6[_0x2bbed7(0x298)],'textRanges':_0x287ad6['textRanges'],'actions':_0x287ad6[_0x2bbed7(0x1a8)]}}];},[]),_0x34f58b=_0xaefed2['getCurrentUser'](),_0x58dc4f=(_0x34f58b==null?void 0x0:_0x34f58b[_0x26380d(0x36b)])??_0x26380d(0x3a5),_0x12c2af=(_0x34f58b==null?void 0x0:_0x34f58b['memberID'])??_0x26380d(0x3a5);return{'changeset':{'unitID':_0x4547a2,'type':(0x0,_0x3d4600['mapDocumentTypeToUniverInstanceType'])(_0x14c05e[_0x26380d(0x291)](_0x4547a2)),'baseRev':_0x20f36c['getCurrentRevOfUnit'](_0x4547a2),'revision':0x0,'userID':_0x58dc4f,'memberID':_0x12c2af,'mutations':_0x394566},'pendingMutations':_0x278328[_0x26380d(0xd2)](_0x278328[_0x26380d(0x2b6)])};}function _0x200591(_0x1ceb40,_0x382d85){const _0x3adda3=_0x473efc;return!_0x610fa6(_0x1ceb40)&&!_0x610fa6(_0x382d85)&&_0x7142a2(_0x1ceb40[_0x3adda3(0x1a8)],_0x382d85[_0x3adda3(0x1a8)]);}function _0x610fa6(_0x2e84eb){const _0x3a91ee=_0x473efc;return _0x2e84eb[_0x3a91ee(0x1c5)]!==void 0x0;}function _0x7142a2(_0x1b9e2c,_0x2e256f){return _0x28e450(_0x1b9e2c)&&_0x28e450(_0x2e256f)&&!_0x432363(_0x1b9e2c)&&!_0x432363(_0x2e256f)&&!_0x9803f0(_0x1b9e2c)&&!_0x9803f0(_0x2e256f);}function _0x28e450(_0x574f66){const _0x4e3ba2=_0x473efc;return _0x28a1eb(_0x574f66)[_0x4e3ba2(0x26a)](_0x2a2db0=>_0x2c025f(_0x2a2db0)&&_0x2a2db0['et']===_0x4e3ba2(0x408));}function _0x9803f0(_0x8301d7){const _0x39aed7=_0x473efc;return _0x28a1eb(_0x8301d7)['some'](_0x29893d=>Array[_0x39aed7(0x2fd)](_0x29893d)||typeof _0x29893d==_0x39aed7(0x2fb)||typeof _0x29893d==_0x39aed7(0x3cb));}function _0x432363(_0x5f3c94){const _0x5ea247=_0x473efc;return _0x28a1eb(_0x5f3c94)[_0x5ea247(0x26a)](_0xb370ce=>!_0x2c025f(_0xb370ce)||_0xb370ce['et']!=='text-x'||!Array[_0x5ea247(0x2fd)](_0xb370ce['e'])?!0x1:_0xb370ce['e'][_0x5ea247(0x26a)](_0x3ffcaa=>!_0x2c025f(_0x3ffcaa)||!_0x2c025f(_0x3ffcaa[_0x5ea247(0xc9)])?!0x1:Object['prototype'][_0x5ea247(0x392)]['call'](_0x3ffcaa[_0x5ea247(0xc9)],'tables')||Object[_0x5ea247(0x2ab)][_0x5ea247(0x392)][_0x5ea247(0x107)](_0x3ffcaa[_0x5ea247(0xc9)],_0x5ea247(0x369))||Object['prototype'][_0x5ea247(0x392)][_0x5ea247(0x107)](_0x3ffcaa['body'],_0x5ea247(0x40e))));}function _0x28a1eb(_0x12a0de){const _0x3187d8=_0x473efc;if(!Array[_0x3187d8(0x2fd)](_0x12a0de))return[];let _0x30e535=_0x12a0de['includes']('body')?_0x12a0de:_0x12a0de['find'](_0x3a3fdd=>Array[_0x3187d8(0x2fd)](_0x3a3fdd)&&_0x3a3fdd[_0x3187d8(0x218)](_0x3187d8(0xc9)));if(!Array[_0x3187d8(0x2fd)](_0x30e535))return[];let _0x1633db=_0x30e535[_0x3187d8(0x2b8)](_0x3187d8(0xc9));return _0x1633db===-0x1?[]:_0x30e535[_0x3187d8(0xd2)](_0x1633db+0x1);}function _0x2c025f(_0x50fb2e){return typeof _0x50fb2e=='object'&&!!_0x50fb2e&&!Array['isArray'](_0x50fb2e);}function _0x2a77ac(_0x51dc52,_0x48da1b){const _0x176d8b=_0x473efc;let _0x5430db=new _0x1f9457[(_0x176d8b(0x18e))](0x1);return setTimeout(()=>_0x5430db[_0x176d8b(0x2f5)](_0x48da1b),_0x51dc52),_0x5430db[_0x176d8b(0x1b5)]()[_0x176d8b(0x2bf)]((0x0,_0x1f9457[_0x176d8b(0x207)])(0x1));}var _0x33d01f,_0x322b5f,_0x179f55;let _0x555db4=function(_0x46a58b){const _0x304f10=_0x473efc;return _0x46a58b[_0x304f10(0x3c3)]=_0x304f10(0x31e),_0x46a58b[_0x304f10(0x1f1)]=_0x304f10(0x303),_0x46a58b[_0x304f10(0x259)]='pending',_0x46a58b[_0x304f10(0x1f6)]='awaiting',_0x46a58b['AWAITING_WITH_PENDING']=_0x304f10(0x1b2),_0x46a58b[_0x304f10(0xe1)]=_0x304f10(0x1f0),_0x46a58b[_0x304f10(0x2fe)]=_0x304f10(0x187),_0x46a58b[_0x304f10(0x1ca)]=_0x304f10(0x29c),_0x46a58b;}({}),_0xe821d0=0x4e20,_0x3c8c0d=0x2bf20;var _0x23a139=class{constructor(_0x289599,_0x1eb78c,_0xa02497,_0x220b37,_0x4351f3,_0x4492df,_0x140b2d,_0x56df5e,_0x2a944a){const _0x33a081=_0x473efc;this[_0x33a081(0xec)]=_0x289599,this['type']=_0x1eb78c,this[_0x33a081(0x186)]=_0x4351f3,this[_0x33a081(0x39f)]=_0x4492df,this[_0x33a081(0x26c)]=_0x140b2d,this[_0x33a081(0x1e3)]=_0x56df5e,this[_0x33a081(0x3d0)]=_0x2a944a,_0x17f3d2(this,_0x33a081(0x3dd),null),_0x17f3d2(this,_0x33a081(0x2c2),[]),this[_0x33a081(0x3dd)]=_0xa02497,this[_0x33a081(0x2c2)]=_0x220b37;}[_0x473efc(0x236)](_0x1b3c13){const _0x3a9586=_0x473efc;let _0x145252=this[_0x3a9586(0x1e3)][_0x3a9586(0x1aa)](this[_0x3a9586(0xec)]);return _0x1b3c13[_0x3a9586(0x1e7)]>_0x145252+0x1?(this['_handler'][_0x3a9586(0x2c0)]({'from':_0x145252,'to':_0x1b3c13[_0x3a9586(0x1e7)]-0x1}),!0x0):!0x1;}[_0x473efc(0x1cc)](_0x10298f){const _0x19ba09=_0x473efc;this[_0x19ba09(0x26c)][_0x19ba09(0x3bd)](this['unitID'],_0x10298f);}[_0x473efc(0x37e)](_0x4ff857){const _0x51a75a=_0x473efc;var _0x158da6,_0x4d781a;(_0x158da6=(_0x4d781a=this['_handler'])[_0x51a75a(0x157)])==null||_0x158da6['call'](_0x4d781a,_0x4ff857);}['_transformIMECache'](_0x4011c6){const _0x426f00=_0x473efc;var _0x49bb47,_0x31a0d1;return(_0x49bb47=(_0x31a0d1=this['_handler'])[_0x426f00(0xde)])==null?void 0x0:_0x49bb47['call'](_0x31a0d1,_0x4011c6);}[_0x473efc(0x3bb)](_0x102489){const _0x37485e=_0x473efc;var _0x46cb3d,_0x192005;return(_0x46cb3d=(_0x192005=this[_0x37485e(0x186)])[_0x37485e(0x27c)])==null?void 0x0:_0x46cb3d[_0x37485e(0x107)](_0x192005,_0x102489);}['_transformRemoteChangesetByIMECache'](_0x80908d){const _0x2c3d78=_0x473efc;var _0x4236c8,_0x521a35;return((_0x4236c8=(_0x521a35=this[_0x2c3d78(0x186)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4236c8['call'](_0x521a35,_0x80908d))??_0x80908d;}[_0x473efc(0x178)](_0x20d58d){const _0x5d5ef7=_0x473efc;var _0x18d126,_0x571806;return((_0x18d126=(_0x571806=this[_0x5d5ef7(0x186)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x18d126['call'](_0x571806,_0x20d58d))??_0x20d58d;}['_syncEditingCollabCursor'](_0x29a917){const _0x3e286f=_0x473efc;if(this[_0x3e286f(0x3d5)]===_0x17ede7['UniverInstanceType'][_0x3e286f(0x399)]){let {unitID:_0x43633d,mutations:_0x369944,memberID:_0xfc0598}=_0x29a917,_0x266ede=_0x369944['length']>0x0?_0x369944[0x0][_0x3e286f(0x1de)]['textRanges']:[];if(Array[_0x3e286f(0x2fd)](_0x266ede)&&_0x266ede[_0x3e286f(0x2b6)]>0x0){var _0x22c34c,_0x596dc7;(_0x22c34c=(_0x596dc7=this[_0x3e286f(0x186)])[_0x3e286f(0x270)])==null||_0x22c34c[_0x3e286f(0x107)](_0x596dc7,{'unitID':_0x43633d,'memberID':_0xfc0598,'textRanges':_0x266ede});}}}[_0x473efc(0x272)](){const _0x10571b=_0x473efc;var _0x23651b;(_0x23651b=this[_0x10571b(0x3d0)])==null||_0x23651b[_0x10571b(0x409)](this[_0x10571b(0xec)],this['type'],this[_0x10571b(0x3dd)],this[_0x10571b(0x2c2)]);}[_0x473efc(0x2a8)](){const _0x226456=_0x473efc;return this[_0x226456(0x1e3)][_0x226456(0x1aa)](this[_0x226456(0xec)]);}[_0x473efc(0x355)](){const _0x13a615=_0x473efc;this[_0x13a615(0x1e3)]['incrementRevOfUnit'](this[_0x13a615(0xec)]);}['_executeRemoteChangeset'](_0x5797b5){const _0x33da0a=_0x473efc;let _0x27ea94=this['_transformRemoteChangesetByIMECache'](_0x5797b5);_0x27ea94=this['_transformRemoteChangesetByStateCache'](_0x27ea94);let _0xd9fbe7=(0x0,_0x17ede7[_0x33da0a(0x17f)])(_0x27ea94['mutations'],this[_0x33da0a(0x39f)],{'fromCollab':!0x0});if(!_0xd9fbe7[_0x33da0a(0x22d)])throw _0xd9fbe7[_0x33da0a(0x3e6)]instanceof Error?_0xd9fbe7[_0x33da0a(0x3e6)]:Error(_0xd9fbe7[_0x33da0a(0x3e6)]??'[CollaborationState]:\x20apply\x20error!');this[_0x33da0a(0x16a)](_0x27ea94),this['_transformStateCache'](_0x27ea94),this['_transformUndoredo'](_0x5797b5),this['_transformSelections'](_0x27ea94),this['_syncEditingCollabCursor'](_0x27ea94),this['_incrementRevisionNumber']();}};let _0x4e41d6=class extends _0x23a139{constructor(_0x8fbe91,_0x4c3217,_0x47074e,_0x55108d,_0x23797e,_0x4b537a,_0x1c69bf,_0x4dcbb9,_0x256bca,_0x18d96f){const _0x51e303=_0x473efc;super(_0x8fbe91,_0x4c3217,null,[],_0x47074e,_0x1c69bf,_0x4b537a,_0x55108d,_0x18d96f),this[_0x51e303(0x28c)]=_0x23797e,this[_0x51e303(0x309)]=_0x4dcbb9,this[_0x51e303(0x11c)]=_0x256bca,this[_0x51e303(0x14c)]=_0x18d96f,_0x17f3d2(this,'status',_0x51e303(0x303));}[_0x473efc(0xdd)](_0x12ab71){const _0x5c6838=_0x473efc;let _0xbc031c=this['_injector']['createInstance'](_0xe416b5,this[_0x5c6838(0xec)],this[_0x5c6838(0x3d5)],[_0x12ab71],this['_handler']);return _0xbc031c['_schedule'](),_0xbc031c[_0x5c6838(0x272)](),_0xbc031c;}['onRemoteChangeset'](_0x3ecb57){const _0x283fd2=_0x473efc;if(this['_checkMissing'](_0x3ecb57))return this['_injector']['createInstance'](_0x1c5382,this[_0x283fd2(0xec)],this[_0x283fd2(0x3d5)],null,[],null,[_0x3ecb57],this[_0x283fd2(0x186)]);try{let _0x5c5f79=this[_0x283fd2(0x11c)][_0x283fd2(0x12f)](_0x3ecb57,[_0x3d4600['EmptyMutationInfo']]);if((0x0,_0x3d4600['isTransformMutationsWithChangesetSuccess'])(_0x5c5f79)){let {c1Prime:_0x470a38}=_0x5c5f79;return this['_executeRemoteChangeset'](_0x470a38),this;}throw _0x5c5f79['error'];}catch(_0x1689ea){return this['_logService'][_0x283fd2(0x3e6)](_0x1689ea),this[_0x283fd2(0x3a0)](!0x1);}}[_0x473efc(0x3a0)](_0x41694d){const _0xab9584=_0x473efc;return this[_0xab9584(0x28c)][_0xab9584(0x172)](_0x3b4b0d,this['unitID'],this['type'],null,[],this[_0xab9584(0x186)],_0x41694d);}[_0x473efc(0x147)](_0x51f9d6){const _0x4d2875=_0x473efc;if(_0x51f9d6[_0x4d2875(0x1e7)]<=this['_getCurrentRevision']())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x473efc(0x3b8)](){const _0x1526d6=_0x473efc;throw Error(_0x1526d6(0x121));}[_0x473efc(0x32a)](){return this;}[_0x473efc(0x2d1)](){const _0x5d051c=_0x473efc;return this[_0x5d051c(0x28c)]['createInstance'](_0x25311e,this['unitID'],this[_0x5d051c(0x3d5)],null,[],this[_0x5d051c(0x186)]);}['toggleOnline'](){return this;}[_0x473efc(0x16c)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x473efc(0xc1)](){const _0x7dea10=_0x473efc;let _0x3df072=this[_0x7dea10(0x1e3)]['getCurrentRevOfUnit'](this[_0x7dea10(0xec)]);return this[_0x7dea10(0x186)][_0x7dea10(0x2c0)]({'from':_0x3df072,'to':0x0}),this[_0x7dea10(0x28c)][_0x7dea10(0x172)](_0x1c5382,this[_0x7dea10(0xec)],this[_0x7dea10(0x3d5)],null,[],null,[],this[_0x7dea10(0x186)]);}};_0x4e41d6=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x4,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x5,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0x6,_0x17ede7['ICommandService']),_0x9a3e23(0x7,_0x17ede7['ILogService']),_0x9a3e23(0x8,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0x9,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x4e41d6);let _0xe416b5=_0x33d01f=class extends _0x23a139{constructor(_0x49111f,_0x1a7d47,_0x3c9f19,_0x4dd806,_0x212cea,_0x5541c9,_0x2fa426,_0x446128,_0x81dd0a,_0x22b0b1,_0x16a679,_0x4ebff1,_0x27400a,_0x408e31){const _0x4f70fb=_0x473efc;super(_0x49111f,_0x1a7d47,null,_0x3c9f19,_0x4dd806,_0x81dd0a,_0x27400a,_0x5541c9,_0x408e31),this[_0x4f70fb(0x28c)]=_0x212cea,this[_0x4f70fb(0x2b9)]=_0x2fa426,this[_0x4f70fb(0x309)]=_0x446128,this[_0x4f70fb(0x414)]=_0x22b0b1,this['_transformService']=_0x16a679,this[_0x4f70fb(0x171)]=_0x4ebff1,_0x17f3d2(this,_0x4f70fb(0x273),'pending'),_0x17f3d2(this,_0x4f70fb(0x100),null),_0x17f3d2(this,_0x4f70fb(0x1d8),null);}[_0x473efc(0xdd)](_0x3fb83d){const _0x4a5a3d=_0x473efc;return this[_0x4a5a3d(0x2c2)][_0x4a5a3d(0x283)](_0x3fb83d),this[_0x4a5a3d(0x272)](),this;}['onRemoteChangeset'](_0xb6aa56){const _0x39277e=_0x473efc;if(this[_0x39277e(0x236)](_0xb6aa56))return this[_0x39277e(0x389)](),this[_0x39277e(0x28c)][_0x39277e(0x172)](_0x1c5382,this[_0x39277e(0xec)],this[_0x39277e(0x3d5)],null,this[_0x39277e(0x2c2)],null,[_0xb6aa56],this[_0x39277e(0x186)]);try{let _0x23c803=this[_0x39277e(0x11c)][_0x39277e(0x12f)](_0xb6aa56,this[_0x39277e(0x2c2)]);if((0x0,_0x3d4600['isTransformMutationsWithChangesetSuccess'])(_0x23c803)){let {c1Prime:_0x48f35b,m2Prime:_0x1d1b9a}=_0x23c803;this[_0x39277e(0xfe)](_0x48f35b);let _0x482a10=this[_0x39277e(0x28c)][_0x39277e(0x172)](_0x33d01f,this[_0x39277e(0xec)],this[_0x39277e(0x3d5)],_0x1d1b9a,this[_0x39277e(0x186)]);this[_0x39277e(0x389)]();let _0x4fadb3=new Date()[_0x39277e(0x29a)](),_0x56a6d7=this[_0x39277e(0x100)]?Math[_0x39277e(0x28e)](this[_0x39277e(0x100)]-_0x4fadb3,0x0):this[_0x39277e(0xd7)]();return _0x482a10[_0x39277e(0x15a)](_0x56a6d7),_0x482a10;}throw _0x23c803[_0x39277e(0x3e6)];}catch(_0x368fa2){return this['_logService']['error'](_0x368fa2),this[_0x39277e(0x3a0)](!0x1);}}[_0x473efc(0x147)](_0xa364b8){const _0x54d9bc=_0x473efc;if(_0xa364b8[_0x54d9bc(0x1e7)]<=this['_getCurrentRevision']())return this;throw Error(_0x54d9bc(0x185));}[_0x473efc(0x3b8)](){const _0x2291eb=_0x473efc;throw Error(_0x2291eb(0x3f5));}[_0x473efc(0x32a)](){return this;}['toggleOffline'](){const _0x33bebb=_0x473efc;return this[_0x33bebb(0x389)](),this[_0x33bebb(0x28c)][_0x33bebb(0x172)](_0x25311e,this['unitID'],this[_0x33bebb(0x3d5)],null,this[_0x33bebb(0x2c2)],this[_0x33bebb(0x186)]);}[_0x473efc(0x354)](){return this;}[_0x473efc(0x15a)](_0x35ae6f){const _0x3222ee=_0x473efc;let _0x17f59b=_0x35ae6f??this[_0x3222ee(0xd7)]();this[_0x3222ee(0x100)]=new Date()[_0x3222ee(0x29a)]()+_0x17f59b,this['_sendingTimer']=setTimeout(()=>{const _0x40a4d5=_0x3222ee;this['_clearScheduledTask']();let _0x229aef=null;switch(this[_0x40a4d5(0x3d5)]){case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0x1bc)]:_0x229aef=_0x57ca29(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this[_0x40a4d5(0x171)],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]);break;case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0x399)]:_0x229aef=this['_pendingMutations']['every'](_0x5da340=>_0x5da340['id']===_0xc72b83[_0x40a4d5(0x169)]['id'])?_0x33b986(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this['_univerInstanceService'],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]):_0x57ca29(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this[_0x40a4d5(0x171)],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]);break;case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0xf2)]:_0x229aef=_0x17cfb5(this[_0x40a4d5(0x2c2)],this['unitID'],this['_univerInstanceService'],this[_0x40a4d5(0x1e3)],this['_userManagerService']);break;case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0x1ce)]:_0x229aef=_0x138757(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this['_univerInstanceService'],this['_revisionService'],this['_userManagerService']);break;case _0x17ede7['UniverInstanceType'][_0x40a4d5(0x3b5)]:_0x229aef=_0x57ca29(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this[_0x40a4d5(0x171)],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]);break;case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0x3e8)]:_0x229aef=_0x57ca29(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this[_0x40a4d5(0x171)],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]);break;default:throw Error(_0x40a4d5(0x24f)+this['type']+_0x40a4d5(0x244));}let {changeset:_0x4b8dfe,pendingMutations:_0x16c101}=_0x229aef;this['_handler'][_0x40a4d5(0x3c2)](_0x4b8dfe);let _0xde464=_0x16c101[_0x40a4d5(0x2b6)]?this[_0x40a4d5(0x28c)][_0x40a4d5(0x172)](_0x163822,this['unitID'],this[_0x40a4d5(0x3d5)],_0x4b8dfe,_0x16c101,this[_0x40a4d5(0x186)],void 0x0):this[_0x40a4d5(0x28c)][_0x40a4d5(0x172)](_0x236f1c,this[_0x40a4d5(0xec)],this[_0x40a4d5(0x3d5)],_0x4b8dfe,this[_0x40a4d5(0x186)]);_0xde464['_updateLocalCache'](),this[_0x40a4d5(0x186)][_0x40a4d5(0x410)](this,_0xde464);},_0x17f59b);}[_0x473efc(0xd7)](){const _0xcc8e1e=_0x473efc;let _0x32be3e=this[_0xcc8e1e(0x414)][_0xcc8e1e(0x205)](_0x1f8831);return(_0x32be3e==null?void 0x0:_0x32be3e['sendChangesetTimeout'])??0x7d0;}[_0x473efc(0x16c)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x473efc(0x389)](){const _0x190706=_0x473efc;this[_0x190706(0x1d8)]!=null&&(clearTimeout(this[_0x190706(0x1d8)]),this[_0x190706(0x1d8)]=null);}[_0x473efc(0x3a0)](_0x7beb7){const _0x18ea2c=_0x473efc;return this['_clearScheduledTask'](),this['_injector'][_0x18ea2c(0x172)](_0x3b4b0d,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x18ea2c(0x186)],_0x7beb7);}};_0xe416b5=_0x33d01f=_0x4da91b([_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['RevisionService'])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x3d4)])),_0x9a3e23(0x7,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0xa,_0x3d4600['ITransformService']),_0x9a3e23(0xb,_0x17ede7['IUniverInstanceService']),_0x9a3e23(0xc,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0xe416b5);let _0x236f1c=_0x322b5f=class extends _0x23a139{constructor(_0x10a110,_0x5d13f3,_0x14900a,_0x58faa6,_0x3d8f07,_0x20148f,_0x530ea2,_0x154a4e,_0x375993,_0xae6a2a,_0x1597fc){const _0xeda210=_0x473efc;super(_0x10a110,_0x5d13f3,_0x14900a,[],_0x58faa6,_0x530ea2,_0xae6a2a,_0x20148f,_0x1597fc),this[_0xeda210(0x28c)]=_0x3d8f07,this[_0xeda210(0x309)]=_0x154a4e,this[_0xeda210(0x11c)]=_0x375993,_0x17f3d2(this,'status',_0xeda210(0x142)),_0x17f3d2(this,_0xeda210(0x29e),0x0),_0x17f3d2(this,_0xeda210(0x199),0x0),_0x17f3d2(this,_0xeda210(0x1c3),void 0x0),_0x17f3d2(this,_0xeda210(0x2e7),void 0x0);}[_0x473efc(0xdd)](_0x2dfd04){const _0x3e9913=_0x473efc;this[_0x3e9913(0x389)]();let _0xe0d14b=this[_0x3e9913(0x28c)][_0x3e9913(0x172)](_0x163822,this[_0x3e9913(0xec)],this['type'],this['_awaitingChangeset'],[_0x2dfd04],this[_0x3e9913(0x186)],this[_0x3e9913(0x1c3)]);return _0xe0d14b[_0x3e9913(0x272)](),_0xe0d14b;}['onRemoteChangeset'](_0x1d6d30){const _0x31b913=_0x473efc;if(this[_0x31b913(0x236)](_0x1d6d30))return this[_0x31b913(0x389)](),this[_0x31b913(0x28c)][_0x31b913(0x172)](_0x1c5382,this[_0x31b913(0xec)],this[_0x31b913(0x3d5)],this[_0x31b913(0x3dd)],[],null,[_0x1d6d30],this[_0x31b913(0x186)]);try{let _0x2a0a9f=this[_0x31b913(0x11c)][_0x31b913(0x21b)]([_0x1d6d30],[this['_awaitingChangeset']],!0x1);if((0x0,_0x3d4600['isTransformChangesetsSuccess'])(_0x2a0a9f)){let {c1Prime:_0x36e38e,c2Prime:_0x3f9e0e}=_0x2a0a9f;this['_executeRemoteChangeset'](_0x36e38e[0x0]),_0x3f9e0e[0x0][_0x31b913(0x231)]=this['_getCurrentRevision'](),this[_0x31b913(0x389)]();let _0x352e9f=this[_0x31b913(0x28c)][_0x31b913(0x172)](_0x322b5f,this[_0x31b913(0xec)],this[_0x31b913(0x3d5)],_0x3f9e0e[0x0],this['_handler']);return _0x352e9f['_updateLocalCache'](),_0x352e9f;}throw _0x2a0a9f['error'];}catch(_0x36b5b6){return this[_0x31b913(0x309)][_0x31b913(0x3e6)](_0x36b5b6),this[_0x31b913(0x3a0)](!0x1);}}[_0x473efc(0x147)](_0x17a5ce){const _0x1996b9=_0x473efc;this[_0x1996b9(0x389)]();let _0x10014c=this[_0x1996b9(0x1e3)]['getCurrentRevOfUnit'](this[_0x1996b9(0xec)]);if(_0x17a5ce[_0x1996b9(0x1e7)]<=_0x10014c)return this;if(this[_0x1996b9(0x236)](_0x17a5ce))return this['_injector'][_0x1996b9(0x172)](_0x1c5382,this[_0x1996b9(0xec)],this[_0x1996b9(0x3d5)],this['_awaitingChangeset'],[],_0x17a5ce[_0x1996b9(0x1e7)],[],this[_0x1996b9(0x186)]);this[_0x1996b9(0x355)]();let _0x16cbbd=this[_0x1996b9(0x28c)]['createInstance'](_0x4e41d6,this[_0x1996b9(0xec)],this[_0x1996b9(0x3d5)],this['_handler']);return _0x16cbbd[_0x1996b9(0x272)](),_0x16cbbd;}['onRemoteRej'](_0x316ad7){const _0x411448=_0x473efc;return this['_onConflict'](!!(_0x316ad7!=null&&_0x316ad7[_0x411448(0x248)]));}[_0x473efc(0x32a)](_0x4466b9){const _0x54e8b2=_0x473efc;return this[_0x54e8b2(0x199)]>_0x3c8c0d?this['toggleOffline']():(this[_0x54e8b2(0x1c3)]=_0x2a77ac(this[_0x54e8b2(0x29e)],{'timeout':this[_0x54e8b2(0x29e)],'reqId':_0x4466b9[_0x54e8b2(0xe3)]}),this[_0x54e8b2(0x2e7)]=this[_0x54e8b2(0x1c3)][_0x54e8b2(0x3bf)](({reqId:_0x5a1592,timeout:_0x4eba47})=>{const _0xc623c5=_0x54e8b2;this[_0xc623c5(0x334)](_0x5a1592,_0x4eba47);}),this);}[_0x473efc(0x2d1)](){const _0x4adb0e=_0x473efc;return this['_clearScheduledTask'](),this['_injector'][_0x4adb0e(0x172)](_0x25311e,this[_0x4adb0e(0xec)],this[_0x4adb0e(0x3d5)],this['_awaitingChangeset'],[],this[_0x4adb0e(0x186)]);}[_0x473efc(0x354)](){return this;}[_0x473efc(0x16c)](){const _0x5b5862=_0x473efc;this[_0x5b5862(0x186)][_0x5b5862(0x3c2)](this[_0x5b5862(0x3dd)]);}[_0x473efc(0x3a0)](_0xe892a7){const _0x3c8390=_0x473efc;return this[_0x3c8390(0x389)](),this['_injector'][_0x3c8390(0x172)](_0x3b4b0d,this[_0x3c8390(0xec)],this['type'],this[_0x3c8390(0x3dd)],[],this[_0x3c8390(0x186)],_0xe892a7);}[_0x473efc(0x334)](_0x4b5fe2,_0x182c9f){const _0xb9aedc=_0x473efc;var _0x3091e2;_0x4b5fe2===((_0x3091e2=this[_0xb9aedc(0x3dd)])==null?void 0x0:_0x3091e2[_0xb9aedc(0xe3)])&&(this[_0xb9aedc(0x16c)](),this['_resendTimeout']=_0x182c9f===0x0?0x3e8:Math['min'](_0x182c9f*0x2,_0xe821d0),this[_0xb9aedc(0x199)]+=this['_resendTimeout']);}[_0x473efc(0x389)](){const _0x4f7774=_0x473efc;var _0x39d9cb;(_0x39d9cb=this[_0x4f7774(0x2e7)])==null||_0x39d9cb['unsubscribe'](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x236f1c=_0x322b5f=_0x4da91b([_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x6,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0x7,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x8,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0xa,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x236f1c);let _0x163822=_0x179f55=class extends _0x23a139{constructor(_0x1d889f,_0x3b4132,_0x4dcd34,_0x2a8cc7,_0x10d6e6,_0x36a756,_0x1dc8cf,_0xc29e01,_0x26966b,_0x2d5b45,_0x1b6f51,_0x2bb798,_0x5aa475){const _0x29165c=_0x473efc;super(_0x1d889f,_0x3b4132,_0x4dcd34,_0x2a8cc7,_0x10d6e6,_0x26966b,_0x2bb798,_0xc29e01,_0x5aa475),this[_0x29165c(0x28c)]=_0x1dc8cf,this[_0x29165c(0x309)]=_0x2d5b45,this['_transformService']=_0x1b6f51,this['localCacheService']=_0x5aa475,_0x17f3d2(this,'status',_0x29165c(0x1b2)),_0x17f3d2(this,_0x29165c(0x29e),0x0),_0x17f3d2(this,_0x29165c(0x199),0x0),_0x17f3d2(this,'_resendTimer',void 0x0),_0x17f3d2(this,'_sender',void 0x0),_0x36a756&&(this['_resendTimer']=_0x36a756,this[_0x29165c(0x2e7)]=this['_resendTimer'][_0x29165c(0x3bf)](({reqId:_0x51943a,timeout:_0xbc87a})=>{const _0x46a5f4=_0x29165c;this[_0x46a5f4(0x334)](_0x51943a,_0xbc87a);}));}[_0x473efc(0xdd)](_0x8edb57){const _0x45678b=_0x473efc;return this['_pendingMutations'][_0x45678b(0x283)](_0x8edb57),this;}[_0x473efc(0x419)](_0x274967){const _0x19ef59=_0x473efc;if(this[_0x19ef59(0x236)](_0x274967))return this[_0x19ef59(0x389)](),this[_0x19ef59(0x28c)][_0x19ef59(0x172)](_0x1c5382,this[_0x19ef59(0xec)],this[_0x19ef59(0x3d5)],this[_0x19ef59(0x3dd)],this[_0x19ef59(0x2c2)],null,[_0x274967],this[_0x19ef59(0x186)]);try{let _0x3a5a20=this[_0x19ef59(0x11c)][_0x19ef59(0x21b)]([_0x274967],[this[_0x19ef59(0x3dd)]],!0x1);if((0x0,_0x3d4600[_0x19ef59(0x168)])(_0x3a5a20)){let {c1Prime:_0x164d43,c2Prime:_0x1d9b6c}=_0x3a5a20,_0x4c7b3a=this[_0x19ef59(0x11c)][_0x19ef59(0x12f)](_0x164d43[0x0],this[_0x19ef59(0x2c2)]);if((0x0,_0x3d4600[_0x19ef59(0x2ba)])(_0x4c7b3a)){let {c1Prime:_0x4a62a3,m2Prime:_0x4af58e}=_0x4c7b3a;return this[_0x19ef59(0xfe)](_0x4a62a3),_0x1d9b6c[0x0][_0x19ef59(0x231)]=this[_0x19ef59(0x2a8)](),this[_0x19ef59(0x389)](),this[_0x19ef59(0x28c)][_0x19ef59(0x172)](_0x179f55,this['unitID'],this[_0x19ef59(0x3d5)],_0x1d9b6c[0x0],_0x4af58e,this['_handler'],void 0x0);}throw _0x4c7b3a['error'];}throw _0x3a5a20[_0x19ef59(0x3e6)];}catch(_0x156120){return this[_0x19ef59(0x309)][_0x19ef59(0x3e6)](_0x156120),this[_0x19ef59(0x3a0)](!0x1);}}[_0x473efc(0x147)](_0x5489aa){const _0x25ee09=_0x473efc;this[_0x25ee09(0x389)]();let _0x12f589=this['_getCurrentRevision']();if(_0x5489aa['revision']<=_0x12f589)return this;if(this[_0x25ee09(0x236)](_0x5489aa))return this[_0x25ee09(0x28c)][_0x25ee09(0x172)](_0x1c5382,this[_0x25ee09(0xec)],this['type'],this[_0x25ee09(0x3dd)],this[_0x25ee09(0x2c2)],_0x5489aa[_0x25ee09(0x1e7)],[],this[_0x25ee09(0x186)]);this[_0x25ee09(0x355)]();let _0x16f364=this[_0x25ee09(0x28c)][_0x25ee09(0x172)](_0xe416b5,this[_0x25ee09(0xec)],this[_0x25ee09(0x3d5)],this[_0x25ee09(0x2c2)],this[_0x25ee09(0x186)]);return _0x16f364[_0x25ee09(0x15a)](),_0x16f364['_updateLocalCache'](),_0x16f364;}[_0x473efc(0x3b8)](_0x449bcd){const _0x46dbb0=_0x473efc;return this[_0x46dbb0(0x3a0)](!!(_0x449bcd!=null&&_0x449bcd[_0x46dbb0(0x248)]));}[_0x473efc(0x32a)](_0x2485cd){const _0x5ce77a=_0x473efc;return this[_0x5ce77a(0x199)]>_0x3c8c0d?this[_0x5ce77a(0x2d1)]():(this[_0x5ce77a(0x1c3)]=_0x2a77ac(this['_resendTimeout'],{'timeout':this[_0x5ce77a(0x29e)],'reqId':_0x2485cd[_0x5ce77a(0xe3)]}),this[_0x5ce77a(0x2e7)]=this[_0x5ce77a(0x1c3)][_0x5ce77a(0x3bf)](({reqId:_0x510582,timeout:_0x566aa0})=>{this['_resendWithTimeout'](_0x510582,_0x566aa0);}),this);}['toggleOffline'](){const _0x2a0f75=_0x473efc;return this['_clearScheduledTask'](),this[_0x2a0f75(0x28c)][_0x2a0f75(0x172)](_0x25311e,this[_0x2a0f75(0xec)],this[_0x2a0f75(0x3d5)],this[_0x2a0f75(0x3dd)],this['_pendingMutations'],this[_0x2a0f75(0x186)]);}[_0x473efc(0x354)](){return this;}['resend'](){const _0x10c1ed=_0x473efc;this['_handler'][_0x10c1ed(0x3c2)](this[_0x10c1ed(0x3dd)]);}[_0x473efc(0x3a0)](_0x30ccbf){const _0x45fe0d=_0x473efc;return this['_clearScheduledTask'](),this[_0x45fe0d(0x28c)]['createInstance'](_0x3b4b0d,this[_0x45fe0d(0xec)],this[_0x45fe0d(0x3d5)],null,this[_0x45fe0d(0x2c2)],this[_0x45fe0d(0x186)],_0x30ccbf);}[_0x473efc(0x334)](_0x4fb08a,_0x500c29){const _0x1fc554=_0x473efc;var _0x13a5ee;_0x4fb08a===((_0x13a5ee=this[_0x1fc554(0x3dd)])==null?void 0x0:_0x13a5ee['reqId'])&&(this[_0x1fc554(0x16c)](),this['_resendTimeout']=_0x500c29===0x0?0x3e8:Math['min'](_0x500c29*0x2,_0xe821d0),this[_0x1fc554(0x199)]+=this[_0x1fc554(0x29e)]);}[_0x473efc(0x389)](){const _0x287150=_0x473efc;var _0x45ac93;(_0x45ac93=this[_0x287150(0x2e7)])==null||_0x45ac93['unsubscribe'](),this[_0x287150(0x29e)]=0x0,this[_0x287150(0x199)]=0x0;}};_0x163822=_0x179f55=_0x4da91b([_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x8,_0x17ede7['ICommandService']),_0x9a3e23(0x9,_0x17ede7['ILogService']),_0x9a3e23(0xa,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x163822);let _0x3b4b0d=class extends _0x23a139{constructor(_0x23f8e0,_0x314b24,_0x49e44b,_0xd87891,_0x459891,_0x555109=!0x1,_0x4d96b2,_0x5b3ab0,_0xcc55ca,_0x3e194f,_0xa9ea19,_0x5081c3,_0x1d2d74){const _0x1ed29e=_0x473efc;super(_0x23f8e0,_0x314b24,_0x49e44b,_0xd87891,_0x459891,_0x5b3ab0,_0xcc55ca,_0x3e194f,_0x1d2d74),this[_0x1ed29e(0x15f)]=_0x555109,this['_permissionService']=_0x4d96b2,this[_0x1ed29e(0x196)]=_0xa9ea19,this[_0x1ed29e(0x1fd)]=_0x5081c3,this[_0x1ed29e(0x14c)]=_0x1d2d74,_0x17f3d2(this,_0x1ed29e(0x273),_0x1ed29e(0x187)),this[_0x1ed29e(0x30c)](),this['_clearLocalCache'](),this[_0x1ed29e(0x120)]();}['appendMutation'](){return this;}[_0x473efc(0x419)](){return this;}[_0x473efc(0x147)](){return this;}[_0x473efc(0x3b8)](){return this;}[_0x473efc(0x32a)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0xd786c5=_0x473efc;throw Error(_0xd786c5(0x137));}[_0x473efc(0x18c)](){const _0x443bf5=_0x473efc;var _0x21ec3b,_0x4d1dfd,_0x3f294f;(_0x21ec3b=this['_localCacheService'])==null||(_0x4d1dfd=_0x21ec3b[_0x443bf5(0x2f8)])==null||(_0x4d1dfd=_0x4d1dfd[_0x443bf5(0x107)](_0x21ec3b,this[_0x443bf5(0xec)],'conflict'))==null||_0x4d1dfd[_0x443bf5(0x1e1)](()=>void 0x0),(_0x3f294f=this['_localCacheService'])==null||_0x3f294f[_0x443bf5(0x409)](this['unitID'],this[_0x443bf5(0x3d5)],null,[]);}[_0x473efc(0x30c)](){const _0x270fcd=_0x473efc;this[_0x270fcd(0x15f)]?this['_collaborationUIEventService'][_0x270fcd(0x3b3)]({'id':_0x270fcd(0x217)}):this['_collaborationUIEventService'][_0x270fcd(0x3b3)]({'id':_0x270fcd(0x2fe)});}['_disableEditing'](){const _0x4d1c84=_0x473efc;this[_0x4d1c84(0x359)]['updatePermissionPoint'](new _0x43c3be['WorkbookEditablePermission'](this[_0x4d1c84(0xec)])['id'],!0x1);}};_0x3b4b0d=_0x4da91b([_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x29b)])),_0x9a3e23(0x7,_0x17ede7['ICommandService']),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0x9,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['RevisionService'])),_0x9a3e23(0xa,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x10e)])),_0x9a3e23(0xb,(0x0,_0x17ede7['Inject'])(_0x2d7dce)),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x3b4b0d);let _0x25311e=class extends _0x23a139{constructor(_0x10ef67,_0x206edb,_0x385078,_0x469200,_0x35693f,_0x3d1060,_0x5da40f,_0x1f92b7,_0x54a108,_0x3bbae9){const _0x2b190e=_0x473efc;super(_0x10ef67,_0x206edb,_0x385078,_0x469200,_0x35693f,_0x1f92b7,_0x54a108,_0x5da40f,_0x3bbae9),this[_0x2b190e(0x28c)]=_0x3d1060,_0x17f3d2(this,_0x2b190e(0x273),'offline');}[_0x473efc(0xdd)](_0x31f95d){const _0x2a9d60=_0x473efc;return this[_0x2a9d60(0x2c2)]['push'](_0x31f95d),this[_0x2a9d60(0x272)](),this;}[_0x473efc(0x419)](_0x2b178b){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0xa44814=_0x473efc;throw Error(_0xa44814(0x358));}[_0x473efc(0x3b8)](){const _0x3d30e7=_0x473efc;throw Error(_0x3d30e7(0x2c8));}[_0x473efc(0x32a)](){return this;}[_0x473efc(0x2d1)](){return this;}[_0x473efc(0x354)](){const _0x4e62e4=_0x473efc;let {_injector:_0x543199,_pendingMutations:_0x35d7e8,_awaitingChangeset:_0x35c2cd,unitID:_0xc327e9,_handler:_0x1910c8,type:_0xfd5f15}=this,_0x5ba051=_0xc3a618(_0x543199,_0xc327e9,_0xfd5f15,_0x35c2cd,_0x35d7e8,_0x1910c8);return _0x5ba051 instanceof _0xe416b5?_0x5ba051[_0x4e62e4(0x15a)]():(_0x5ba051 instanceof _0x163822||_0x5ba051 instanceof _0x236f1c)&&_0x5ba051[_0x4e62e4(0x16c)](),_0x5ba051;}['resend'](){const _0x3e17ae=_0x473efc;throw Error(_0x3e17ae(0x39d));}};_0x25311e=_0x4da91b([_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x6,(0x0,_0x17ede7['Inject'])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0x8,_0x17ede7['IUndoRedoService']),_0x9a3e23(0x9,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x25311e);let _0x1c5382=class extends _0x23a139{constructor(_0x3c567c,_0x2e8109,_0x142235,_0x299f8a,_0x33f13e,_0x55b03a,_0x1b4cd4,_0x365a31,_0x43851a,_0xd8e2e9,_0x5ba702,_0x1a3e83,_0x52f06f,_0x3bc8b3){const _0x1f238e=_0x473efc;super(_0x3c567c,_0x2e8109,_0x142235,_0x299f8a,_0x1b4cd4,_0x5ba702,_0x1a3e83,_0x43851a,_0x3bc8b3),this[_0x1f238e(0x3b4)]=_0x33f13e,this['_queuedRemoteChangesets']=_0x55b03a,this[_0x1f238e(0x28c)]=_0x365a31,this['_logService']=_0xd8e2e9,this[_0x1f238e(0x11c)]=_0x52f06f,this[_0x1f238e(0x14c)]=_0x3bc8b3,_0x17f3d2(this,'status',_0x1f238e(0x1f0));}[_0x473efc(0x2d6)](_0x310488){const _0x1ad277=_0x473efc;try{if(this['_handleRemoteChangesets'](_0x310488)[_0x1ad277(0x300)])throw Error(_0x1ad277(0x3fb));if(this['_handleRemoteChangesets']([...this[_0x1ad277(0x266)]][_0x1ad277(0x34c)]((_0xe292de,_0x47d456)=>_0xe292de[_0x1ad277(0x1e7)]-_0x47d456['revision']))[_0x1ad277(0x300)])return this['_queuedRemoteChangesets']=[],this[_0x1ad277(0x272)](),this[_0x1ad277(0x186)][_0x1ad277(0x2c0)]({'from':this[_0x1ad277(0x2a8)](),'to':0x0}),this;let _0x50bdff=this[_0x1ad277(0x3dd)],_0x5caf9b=this[_0x1ad277(0x2c2)],_0x171320;if(_0x50bdff&&_0x5caf9b[_0x1ad277(0x2b6)]!==0x0)_0x171320=this[_0x1ad277(0x28c)][_0x1ad277(0x172)](_0x163822,this[_0x1ad277(0xec)],this[_0x1ad277(0x3d5)],_0x50bdff,_0x5caf9b,this[_0x1ad277(0x186)],void 0x0);else{if(_0x50bdff&&_0x5caf9b['length']===0x0)_0x50bdff['baseRev']=this[_0x1ad277(0x2a8)](),_0x171320=this['_injector']['createInstance'](_0x236f1c,this[_0x1ad277(0xec)],this[_0x1ad277(0x3d5)],_0x50bdff,this[_0x1ad277(0x186)]);else{if(_0x5caf9b[_0x1ad277(0x2b6)]!==0x0){let _0xf50f05=this[_0x1ad277(0x28c)]['createInstance'](_0xe416b5,this['unitID'],this[_0x1ad277(0x3d5)],_0x5caf9b,this[_0x1ad277(0x186)]);_0xf50f05[_0x1ad277(0x15a)](),_0x171320=_0xf50f05;}else _0x171320=this[_0x1ad277(0x28c)][_0x1ad277(0x172)](_0x4e41d6,this[_0x1ad277(0xec)],this[_0x1ad277(0x3d5)],this[_0x1ad277(0x186)]);}}return _0x171320['_updateLocalCache'](),_0x171320;}catch(_0x482556){return this[_0x1ad277(0x309)][_0x1ad277(0x3e6)](_0x1ad277(0x193),_0x1ad277(0x1b8),_0x482556),this[_0x1ad277(0x28c)][_0x1ad277(0x172)](_0x3b4b0d,this[_0x1ad277(0xec)],this[_0x1ad277(0x3d5)],this['_awaitingChangeset'],this[_0x1ad277(0x2c2)],this[_0x1ad277(0x186)],!0x1);}}[_0x473efc(0xc3)](_0x674460){const _0x50e43a=_0x473efc;this[_0x50e43a(0x3f0)]();for(let _0x29c627=0x0;_0x29c627<_0x674460[_0x50e43a(0x2b6)];_0x29c627++){let _0x2ce405=_0x674460[_0x29c627],_0x5a7440=this[_0x50e43a(0x2a8)]();if(!(_0x2ce405['revision']<=_0x5a7440)){if(_0x2ce405[_0x50e43a(0x1e7)]>_0x5a7440+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x2ce405)){this['_acknowledgeAwaiting']();continue;}this[_0x50e43a(0x37f)](_0x2ce405),this[_0x50e43a(0x3f0)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x4b64f9){const _0x3e5657=_0x473efc;let _0x5b9526=_0x4b64f9,_0x1a4d69=this['_awaitingChangeset'];if(_0x1a4d69){let _0x131f24=this[_0x3e5657(0x11c)][_0x3e5657(0x21b)]([_0x4b64f9],[_0x1a4d69],!0x1);if(!(0x0,_0x3d4600[_0x3e5657(0x168)])(_0x131f24))throw _0x131f24[_0x3e5657(0x3e6)];_0x5b9526=_0x131f24[_0x3e5657(0x162)][0x0],_0x1a4d69=_0x131f24['c2Prime'][0x0];}let _0x25cee1=this[_0x3e5657(0x2c2)];if(_0x25cee1[_0x3e5657(0x2b6)]){let _0x3a3364=this[_0x3e5657(0x11c)][_0x3e5657(0x12f)](_0x5b9526,_0x25cee1);if(!(0x0,_0x3d4600[_0x3e5657(0x2ba)])(_0x3a3364))throw _0x3a3364[_0x3e5657(0x3e6)];_0x5b9526=_0x3a3364[_0x3e5657(0x162)],_0x25cee1=_0x3a3364['m2Prime'];}this['_executeRemoteChangeset'](_0x5b9526),_0x1a4d69&&(_0x1a4d69[_0x3e5657(0x231)]=this['_getCurrentRevision']()),this[_0x3e5657(0x3dd)]=_0x1a4d69,this[_0x3e5657(0x2c2)]=_0x25cee1;}[_0x473efc(0x3f0)](){const _0x55a4dd=_0x473efc;if(!this[_0x55a4dd(0x3dd)]||this[_0x55a4dd(0x3b4)]==null)return;let _0x14f877=this[_0x55a4dd(0x2a8)]();if(this[_0x55a4dd(0x3b4)]<=_0x14f877)throw Error(_0x55a4dd(0x360)+this['_acknowledgedAwaitingRevision']+'.');this[_0x55a4dd(0x3b4)]===_0x14f877+0x1&&this[_0x55a4dd(0x38b)]();}[_0x473efc(0x38b)](){const _0x1693c5=_0x473efc;this[_0x1693c5(0x355)](),this[_0x1693c5(0x3dd)]=null,this[_0x1693c5(0x3b4)]=null;}['_isEchoedAwaitingChangeset'](_0x5820db){const _0x3bec9d=_0x473efc;let _0x204aff=this['_awaitingChangeset'];return!_0x204aff||!_0x204aff[_0x3bec9d(0x1ae)]||_0x204aff[_0x3bec9d(0xe3)]===null||_0x204aff['reqId']===void 0x0?!0x1:_0x5820db[_0x3bec9d(0xec)]===_0x204aff[_0x3bec9d(0xec)]&&_0x5820db[_0x3bec9d(0x1ae)]===_0x204aff[_0x3bec9d(0x1ae)]&&_0x5820db[_0x3bec9d(0xe3)]===_0x204aff[_0x3bec9d(0xe3)];}['resend'](){const _0x3f847a=_0x473efc;throw Error(_0x3f847a(0x2d4));}[_0x473efc(0xdd)](_0x29d3dc){const _0x4fb041=_0x473efc;return this[_0x4fb041(0x2c2)][_0x4fb041(0x283)](_0x29d3dc),this;}[_0x473efc(0x419)](_0x28f8f9){const _0x20030f=_0x473efc;return this[_0x20030f(0x266)][_0x20030f(0x283)](_0x28f8f9),this;}[_0x473efc(0x147)](_0x1e2e3d){const _0x33b08c=_0x473efc;if(this['_awaitingChangeset']){let _0x4bae1f=this[_0x33b08c(0x2a8)]();return _0x1e2e3d['revision']<=_0x4bae1f||(_0x4bae1f+0x1===_0x1e2e3d[_0x33b08c(0x1e7)]?(this[_0x33b08c(0x355)](),this['_awaitingChangeset']=null,this[_0x33b08c(0x3b4)]=null):this['_acknowledgedAwaitingRevision']=_0x1e2e3d['revision']),this;}if(_0x1e2e3d[_0x33b08c(0x1e7)]<=this[_0x33b08c(0x2a8)]())return this;throw Error(_0x33b08c(0x29d));}['onRemoteRej'](_0x31c97e){const _0x3dd008=_0x473efc;return this[_0x3dd008(0x3a0)](!!(_0x31c97e!=null&&_0x31c97e[_0x3dd008(0x248)]));}[_0x473efc(0x32a)](){return this;}[_0x473efc(0x2d1)](){const _0x358942=_0x473efc;return this[_0x358942(0x28c)][_0x358942(0x172)](_0x25311e,this[_0x358942(0xec)],this['type'],this[_0x358942(0x3dd)],this[_0x358942(0x2c2)],this[_0x358942(0x186)]);}[_0x473efc(0x354)](){return this;}[_0x473efc(0x3a0)](_0x25d202){const _0x7b2d91=_0x473efc;return this[_0x7b2d91(0x28c)][_0x7b2d91(0x172)](_0x3b4b0d,this[_0x7b2d91(0xec)],this[_0x7b2d91(0x3d5)],this[_0x7b2d91(0x3dd)],this[_0x7b2d91(0x2c2)],this['_handler'],_0x25d202);}};_0x1c5382=_0x4da91b([_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x8,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0xb,_0x17ede7['IUndoRedoService']),_0x9a3e23(0xc,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x1c5382);function _0xc3a618(_0x4230bb,_0x49fbf6,_0x22ab3a,_0x453b6b,_0x513014,_0x17911e){const _0x2164fa=_0x473efc;return _0x453b6b&&_0x513014[_0x2164fa(0x2b6)]?_0x4230bb[_0x2164fa(0x172)](_0x163822,_0x49fbf6,_0x22ab3a,_0x453b6b,_0x513014,_0x17911e,void 0x0):_0x453b6b?_0x4230bb[_0x2164fa(0x172)](_0x236f1c,_0x49fbf6,_0x22ab3a,_0x453b6b,_0x17911e):_0x513014[_0x2164fa(0x2b6)]?_0x4230bb[_0x2164fa(0x172)](_0xe416b5,_0x49fbf6,_0x22ab3a,_0x513014,_0x17911e):_0x4230bb[_0x2164fa(0x172)](_0x4e41d6,_0x49fbf6,_0x22ab3a,_0x17911e);}let _0x458bcf=class extends _0x17ede7[_0x473efc(0x1a3)]{get[_0x473efc(0x195)](){const _0x531e28=_0x473efc;return this[_0x531e28(0x166)];}constructor(_0x2b8fbf,_0x3ee9ec,_0x2e8616,_0x1f2995,_0x19e6cd,_0x3b4f77,_0x14b177,_0x520cdc,_0x1916a7,_0x5b8fc7,_0x3a2a1c,_0x4659b7,_0x443334,_0x2fbbdc){const _0x13d8e1=_0x473efc;super(),this[_0x13d8e1(0xec)]=_0x2b8fbf,this[_0x13d8e1(0x305)]=_0x3ee9ec,this[_0x13d8e1(0xca)]=_0x2e8616,this['_injector']=_0x1f2995,this['_compressMutationService']=_0x19e6cd,this['_localeService']=_0x3b4f77,this[_0x13d8e1(0x1e3)]=_0x14b177,this[_0x13d8e1(0x26b)]=_0x520cdc,this[_0x13d8e1(0x171)]=_0x1916a7,this[_0x13d8e1(0x309)]=_0x5b8fc7,this['_commandService']=_0x3a2a1c,this['_permissionService']=_0x4659b7,this[_0x13d8e1(0x301)]=_0x443334,this[_0x13d8e1(0x3d0)]=_0x2fbbdc,_0x17f3d2(this,_0x13d8e1(0x268),new _0x1f9457[(_0x13d8e1(0x3c1))](null)),_0x17f3d2(this,_0x13d8e1(0x10b),this[_0x13d8e1(0x268)][_0x13d8e1(0x1b5)]()),_0x17f3d2(this,'_state',void 0x0),_0x17f3d2(this,'_collaborationPaused',!0x1),_0x17f3d2(this,_0x13d8e1(0x210),''),_0x17f3d2(this,'_changesetReqId',0x0),_0x17f3d2(this,'status$',this[_0x13d8e1(0x10b)][_0x13d8e1(0x2bf)]((0x0,_0x1f9457[_0x13d8e1(0xfb)])(_0xd9db4f=>_0xd9db4f?_0xd9db4f[_0x13d8e1(0x273)]:_0x13d8e1(0x29c)),(0x0,_0x1f9457[_0x13d8e1(0x1ac)])({'bufferSize':0x1,'refCount':!0x0}))),_0x17f3d2(this,_0x13d8e1(0x1a1),!0x1),_0x17f3d2(this,_0x13d8e1(0x2a7),[]);}async[_0x473efc(0x233)](){if(this['state'])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x473efc(0x40a)](){const _0x4ba744=_0x473efc;return this[_0x4ba744(0x253)]=!0x0,(0x0,_0x17ede7['toDisposable'])(()=>{const _0x55d588=_0x4ba744;this[_0x55d588(0x253)]=!0x1,this[_0x55d588(0x176)]();});}['onLocalMutation'](_0x9d8b16){const _0x4333e4=_0x473efc;this[_0x4333e4(0x129)](_0x9d8b16);}['_updateState'](_0xa3b39f){const _0x21965d=_0x473efc;this[_0x21965d(0x166)]=_0xa3b39f,this['_state$'][_0x21965d(0x2f5)](_0xa3b39f);}async[_0x473efc(0x215)](){const _0x148640=_0x473efc;if(this[_0x148640(0x11a)](await this[_0x148640(0x372)]()),this[_0x148640(0x301)]){var _0x3c3a42;(_0x3c3a42=this[_0x148640(0x301)])==null||_0x3c3a42['editingUnit'](this['unitID']),this[_0x148640(0x12e)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x148640(0xec)])[_0x148640(0x3bf)](_0x532297=>{const _0xb168c8=_0x148640;this[_0xb168c8(0x309)][_0xb168c8(0x2f9)](_0xb168c8(0x2ca),_0xb168c8(0x1dc),_0x532297),_0x532297===0x1?(this['_eventService'][_0xb168c8(0x3b3)]({'id':'OTHER_CLIENT_EDITING'}),this[_0xb168c8(0x359)][_0xb168c8(0xd4)](new _0x43c3be[(_0xb168c8(0x400))](this['unitID'])['id'],!0x1),this[_0xb168c8(0x359)][_0xb168c8(0x373)](!0x1)):(this['_permissionService'][_0xb168c8(0xd4)](new _0x43c3be[(_0xb168c8(0x400))](this[_0xb168c8(0xec)])['id'],!0x0),this[_0xb168c8(0x359)][_0xb168c8(0x373)](!0x0));}));}let _0x28f1f1=!0x1;return this['disposeWithMe'](this['session'][_0x148640(0x1bd)][_0x148640(0x3bf)](_0x54a771=>{const _0x8c4930=_0x148640;_0x54a771===0x3?this[_0x8c4930(0x117)](_0x28f1f1):_0x54a771===0x2&&(_0x28f1f1=!0x0,this[_0x8c4930(0x3a1)]());})),this[_0x148640(0x12e)](this[_0x148640(0x305)][_0x148640(0x2be)]['subscribe'](_0x1beb1e=>{const _0x2bc6af=_0x148640;try{switch(_0x1beb1e[_0x2bc6af(0x1fb)]){case _0x3d4600[_0x2bc6af(0x350)]['NEW_CHANGESETS']:this[_0x2bc6af(0x1c2)]((0x0,_0x3d4600[_0x2bc6af(0x388)])(_0x1beb1e['data']));break;case _0x3d4600['CollaborationEvent'][_0x2bc6af(0x183)]:this[_0x2bc6af(0x3d2)](_0x1beb1e[_0x2bc6af(0x1ab)]);break;case _0x3d4600[_0x2bc6af(0x350)][_0x2bc6af(0x30b)]:this['_onRemoteRejected']();break;case _0x3d4600[_0x2bc6af(0x350)]['CHANGESET_SHOULD_RETRY']:this[_0x2bc6af(0xc7)](_0x1beb1e[_0x2bc6af(0x1ab)]);break;case _0x3d4600[_0x2bc6af(0x350)][_0x2bc6af(0x25f)]:this[_0x2bc6af(0x2e6)](_0x1beb1e[_0x2bc6af(0x1ab)][_0x2bc6af(0x122)][_0x2bc6af(0xfb)](_0x5efeb4=>(0x0,_0x3d4600[_0x2bc6af(0x388)])(_0x5efeb4)));break;case _0x3d4600['CollaborationEvent']['PERMISSION_REJ']:this[_0x2bc6af(0x35d)]({'isPermissionRej':!0x0});break;case _0x3d4600['CollaborationEvent'][_0x2bc6af(0x31a)]:break;}}catch(_0x2d6bbd){throw console['error']('Error\x20on\x20receiving\x20event',_0x2d6bbd),_0x2d6bbd;}})),this['_state'];}['_unlockTransition'](){const _0x1f1736=_0x473efc;this[_0x1f1736(0x1a1)]=!0x1;}[_0x473efc(0x396)](){const _0x5eb3d3=_0x473efc;if(this[_0x5eb3d3(0x1a1)])throw Error(_0x5eb3d3(0xd9));this[_0x5eb3d3(0x1a1)]=!0x0;}['_onLocalMutation'](_0x327b40){const _0x15e6f0=_0x473efc;this['_lockTransition'](),this[_0x15e6f0(0x11a)](this['_state']['appendMutation'](_0x327b40)),this[_0x15e6f0(0x286)]();}[_0x473efc(0x1c2)](_0x5d4030){const _0x4ab717=_0x473efc;if(!(_0x5d4030['revision']<=this[_0x4ab717(0x1e3)][_0x4ab717(0x1aa)](this[_0x4ab717(0xec)]))){if(this[_0x4ab717(0x253)]){this[_0x4ab717(0x2a7)][_0x4ab717(0x283)](_0x5d4030);return;}this[_0x4ab717(0x220)](_0x5d4030);}}[_0x473efc(0x176)](){const _0x4a19c0=_0x473efc;this[_0x4a19c0(0x2a7)]['forEach'](_0xc3b616=>this[_0x4a19c0(0x220)](_0xc3b616)),this[_0x4a19c0(0x2a7)]=[];}['_applyRemoteChangeset'](_0xf50976){const _0x1ef998=_0x473efc;let _0x487c10=this[_0x1ef998(0x1e8)][_0x1ef998(0x1dd)][_0x1ef998(0x35c)](this[_0x1ef998(0x1e8)]['interceptor'][_0x1ef998(0x395)]()[_0x1ef998(0x11e)])(_0xf50976['mutations'],null)||_0xf50976[_0x1ef998(0x237)],_0x4ca38a={..._0xf50976,'mutations':_0x487c10};this[_0x1ef998(0x396)](),this[_0x1ef998(0x11a)](this['_state']['onRemoteChangeset'](_0x4ca38a)),this[_0x1ef998(0x286)]();}[_0x473efc(0x3d2)](_0x933695){const _0x385ea7=_0x473efc;this[_0x385ea7(0x396)](),this['_updateState'](this[_0x385ea7(0x166)][_0x385ea7(0x147)](_0x933695)),this['_unlockTransition']();}[_0x473efc(0x35d)](_0xe13a6f){const _0x139b50=_0x473efc;this[_0x139b50(0x396)](),this['_updateState'](this[_0x139b50(0x166)][_0x139b50(0x3b8)](_0xe13a6f)),this['_unlockTransition']();}[_0x473efc(0xc7)](_0x434e04){const _0x5a0066=_0x473efc;this[_0x5a0066(0x396)](),this[_0x5a0066(0x11a)](this[_0x5a0066(0x166)]['onRemoteRetry'](_0x434e04)),this[_0x5a0066(0x286)]();}[_0x473efc(0x2e6)](_0x48e8b5){const _0x1608e0=_0x473efc;if(!(this['_state']instanceof _0x1c5382))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x97f7f0=_0x48e8b5[_0x1608e0(0xfb)](_0x54e346=>{const _0x46f52a=_0x1608e0;let _0x4bd8a1=this[_0x46f52a(0x1e8)][_0x46f52a(0x1dd)][_0x46f52a(0x35c)](this['_compressMutationService'][_0x46f52a(0x1dd)][_0x46f52a(0x395)]()[_0x46f52a(0x11e)])(_0x54e346[_0x46f52a(0x237)],null)||_0x54e346['mutations'];return{..._0x54e346,'mutations':_0x4bd8a1};});this[_0x1608e0(0x396)](),this['_updateState'](this['_state'][_0x1608e0(0x2d6)](_0x97f7f0)),this[_0x1608e0(0x286)]();}[_0x473efc(0x3a1)](){const _0x5eb1a8=_0x473efc;this[_0x5eb1a8(0x396)](),this[_0x5eb1a8(0x11a)](this[_0x5eb1a8(0x166)][_0x5eb1a8(0x2d1)]()),this[_0x5eb1a8(0x286)]();}[_0x473efc(0x117)](_0xf13786=!0x1){const _0x40566e=_0x473efc;this[_0x40566e(0x396)](),this[_0x40566e(0x11a)](this[_0x40566e(0x166)][_0x40566e(0x354)]()),this[_0x40566e(0x286)]();let _0x2454a0=this[_0x40566e(0x166)];_0xf13786&&_0x2454a0 instanceof _0x4e41d6&&(this[_0x40566e(0x396)](),this[_0x40566e(0x11a)](_0x2454a0[_0x40566e(0xc1)]()),this[_0x40566e(0x286)]());}async[_0x473efc(0x372)](){return new Promise(_0x3bd16c=>{const _0x3d7f12=_0x2dd0;this['session'][_0x3d7f12(0x1bd)][_0x3d7f12(0x2bf)]((0x0,_0x1f9457[_0x3d7f12(0x207)])(0x1))[_0x3d7f12(0x3bf)](async _0x4416ec=>{const _0x219f3e=_0x3d7f12;_0x3bd16c(await this[_0x219f3e(0x3aa)](_0x4416ec===0x3));});});}[_0x473efc(0x2ff)](){const _0x2f6c5f=_0x473efc;let _0x133e16=this[_0x2f6c5f(0xec)];return{'onStateChange':(_0x2be4e2,_0x1e3553)=>{const _0x5806c3=_0x2f6c5f;if(_0x2be4e2!==this[_0x5806c3(0x166)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2be4e2[_0x5806c3(0x273)]+_0x5806c3(0x2ef)+_0x1e3553[_0x5806c3(0x273)]+_0x5806c3(0x175)+this['_state'][_0x5806c3(0x273)]);this['_updateState'](_0x1e3553);},'onSendChangeset':_0x82fc10=>{const _0x1b8493=_0x2f6c5f;_0x82fc10['sid']||(_0x82fc10[_0x1b8493(0x1ae)]=this[_0x1b8493(0x210)],_0x82fc10[_0x1b8493(0xe3)]=++this[_0x1b8493(0x23c)]);let _0x4d804a={'eventID':_0x3d4600[_0x1b8493(0x350)][_0x1b8493(0x2da)],'data':{'unitID':_0x82fc10['unitID'],'unitType':this[_0x1b8493(0xca)],'changeset':_0x82fc10,'memberID':this[_0x1b8493(0x305)][_0x1b8493(0x3be)]()}};this[_0x1b8493(0x305)]['send'](_0x4d804a,this['unitID']);},'onMissingChangesets':({from:_0x146b5a,to:_0x482490})=>{const _0x560453=_0x2f6c5f;this[_0x560453(0x309)][_0x560453(0x2f9)](_0x560453(0x2ca),_0x560453(0x276)+_0x146b5a+'\x20to\x20'+_0x482490);let _0x4e445d={'eventID':_0x3d4600[_0x560453(0x350)][_0x560453(0x161)],'data':{'unitID':_0x133e16,'unitType':this[_0x560453(0xca)],'from':_0x146b5a,'to':_0x482490}};this['session']['send'](_0x4e445d,this[_0x560453(0xec)]);}};}async[_0x473efc(0x3aa)](_0x54afb9){const _0x338bf1=_0x473efc;var _0x4d5415;let _0x307a39=await((_0x4d5415=this[_0x338bf1(0x3d0)])==null?void 0x0:_0x4d5415['loadOfflineData'](this[_0x338bf1(0xec)])),_0x396f12=(_0x307a39==null?void 0x0:_0x307a39[_0x338bf1(0x237)])??[],_0x19bb7a=(_0x307a39==null?void 0x0:_0x307a39[_0x338bf1(0x1da)])??null,_0x2a7eb6=!!(_0x19bb7a!=null&&_0x19bb7a[_0x338bf1(0x1ae)])&&!!(_0x19bb7a!=null&&_0x19bb7a[_0x338bf1(0xe3)]);this[_0x338bf1(0x210)]=_0x2a7eb6?_0x19bb7a[_0x338bf1(0x1ae)]:(0x0,_0x3d4600[_0x338bf1(0x3f3)])(),this['_changesetReqId']=_0x2a7eb6?_0x19bb7a[_0x338bf1(0xe3)]:0x0;let _0x1c6c0f=this[_0x338bf1(0xec)];try{this[_0x338bf1(0x25b)](_0x19bb7a,_0x396f12);}catch(_0x4c4e29){this['_logService']['error'](_0x4c4e29);}let _0x5389e8=this['_createHandler']();if(_0x54afb9){let _0x48328a=_0xc3a618(this[_0x338bf1(0x28c)],_0x1c6c0f,this[_0x338bf1(0xca)],_0x19bb7a,_0x396f12,_0x5389e8);return _0x48328a instanceof _0xe416b5?_0x48328a[_0x338bf1(0x15a)]():(_0x48328a instanceof _0x163822||_0x48328a instanceof _0x236f1c)&&_0x48328a[_0x338bf1(0x16c)](),_0x48328a;}return this[_0x338bf1(0x28c)][_0x338bf1(0x172)](_0x25311e,_0x1c6c0f,this['_type'],_0x19bb7a,_0x396f12,_0x5389e8);}[_0x473efc(0x25b)](_0x272049,_0x4efdae){const _0x4a5a77=_0x473efc;var _0x2c6c54,_0x2ee6ea;let _0x389ab3=this['_compressMutationService'][_0x4a5a77(0x1dd)][_0x4a5a77(0x35c)](this[_0x4a5a77(0x1e8)][_0x4a5a77(0x1dd)]['getInterceptPoints']()[_0x4a5a77(0x11e)]);(_0x2c6c54=_0x389ab3((_0x272049==null?void 0x0:_0x272049[_0x4a5a77(0x237)])||[],null))==null||_0x2c6c54[_0x4a5a77(0x343)](_0xf7b0bf=>this[_0x4a5a77(0x39f)][_0x4a5a77(0x2c7)](_0xf7b0bf['id'],_0xf7b0bf[_0x4a5a77(0x1de)])),(_0x2ee6ea=_0x389ab3(_0x4efdae||[],null))==null||_0x2ee6ea[_0x4a5a77(0x343)](_0x59849f=>this[_0x4a5a77(0x39f)]['executeCommand'](_0x59849f['id'],_0x59849f[_0x4a5a77(0x1de)]));}};_0x458bcf=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0x13f)])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['LocaleService'])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0xb,_0x17ede7['IPermissionService']),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x458bcf);let _0x5a3607=class extends _0x458bcf{constructor(_0x1a8ad1,_0x2db41e,_0x347591,_0x110a31,_0x15200d,_0x475e6c,_0x436687,_0x4bc98f,_0x4e8b7d,_0x1928b9,_0x374880,_0x5bdf2f,_0x6ce72a,_0x166540,_0x1042df){const _0x385ee8=_0x473efc;super(_0x1a8ad1,_0x347591,_0x2db41e,_0x110a31,_0x15200d,_0x475e6c,_0x436687,_0x4bc98f,_0x4e8b7d,_0x1928b9,_0x374880,_0x5bdf2f,_0x166540,_0x1042df),this['unitID']=_0x1a8ad1,this[_0x385ee8(0x3d5)]=_0x2db41e,this[_0x385ee8(0x38e)]=_0x6ce72a,_0x17f3d2(this,_0x385ee8(0x232),null);}['addHandlerCallback'](_0x5a7a93){const _0xcfaa37=_0x473efc;this[_0xcfaa37(0x232)]=_0x5a7a93;}[_0x473efc(0x335)](){const _0x196163=_0x473efc;this[_0x196163(0x232)]=null,super[_0x196163(0x335)]();}[_0x473efc(0x2ff)](){const _0x1db4b7=_0x473efc;let _0x3dc06b=super[_0x1db4b7(0x2ff)]();return _0x3dc06b[_0x1db4b7(0xde)]=_0x56f69d=>{const _0x9ba35f=_0x1db4b7;var _0x4bc7fd,_0x42cd9b;return(_0x4bc7fd=this[_0x9ba35f(0x232)])==null||(_0x42cd9b=_0x4bc7fd['onTransformIME'])==null?void 0x0:_0x42cd9b[_0x9ba35f(0x107)](_0x4bc7fd,_0x56f69d);},_0x3dc06b[_0x1db4b7(0x27c)]=_0x53c662=>{const _0xbbc9bc=_0x1db4b7;var _0x535cba,_0x4869b8;return(_0x535cba=this[_0xbbc9bc(0x232)])==null||(_0x4869b8=_0x535cba[_0xbbc9bc(0x27c)])==null?void 0x0:_0x4869b8[_0xbbc9bc(0x107)](_0x535cba,_0x53c662);},_0x3dc06b[_0x1db4b7(0x157)]=_0x16bd04=>{const _0xce4a01=_0x1db4b7;var _0x3af13c,_0x247190;return(_0x3af13c=this[_0xce4a01(0x232)])==null||(_0x247190=_0x3af13c[_0xce4a01(0x157)])==null?void 0x0:_0x247190[_0xce4a01(0x107)](_0x3af13c,_0x16bd04);},_0x3dc06b['onSyncEditingCollabCursor']=_0x157793=>{const _0x18e94c=_0x1db4b7;var _0x10783e,_0x2bf976;return(_0x10783e=this[_0x18e94c(0x232)])==null||(_0x2bf976=_0x10783e[_0x18e94c(0x270)])==null?void 0x0:_0x2bf976[_0x18e94c(0x107)](_0x10783e,_0x157793);},_0x3dc06b[_0x1db4b7(0x3d9)]=_0x22771f=>{const _0x4ec465=_0x1db4b7;var _0x1c5455,_0x165301;return((_0x1c5455=this[_0x4ec465(0x232)])==null||(_0x165301=_0x1c5455['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x165301['call'](_0x1c5455,_0x22771f))??_0x22771f;},_0x3dc06b['onTransformRemoteChangesetByStateCache']=_0x472be4=>{const _0x415842=_0x1db4b7;var _0x3e2625,_0x5cfb4d;return((_0x3e2625=this[_0x415842(0x232)])==null||(_0x5cfb4d=_0x3e2625['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x5cfb4d[_0x415842(0x107)](_0x3e2625,_0x472be4))??_0x472be4;},_0x3dc06b;}async[_0x473efc(0x215)](){const _0x528528=_0x473efc;let _0x14f59d=await super['_init']();return this['disposeWithMe'](this[_0x528528(0x38e)]['docStateChange$']['subscribe'](_0x3a2100=>{const _0x2ed379=_0x528528;if(_0x3a2100==null||_0x3a2100[_0x2ed379(0x298)]!==this[_0x2ed379(0xec)])return;let {commandId:_0x5456fa,redoState:_0xb806f4,unitId:_0x147bb9}=_0x3a2100,_0x501226={'id':_0x5456fa,'type':_0x17ede7[_0x2ed379(0x1a6)][_0x2ed379(0x3d1)],'params':{'unitId':_0x147bb9,'actions':_0xb806f4[_0x2ed379(0x1a8)],'textRanges':null}};this[_0x2ed379(0x129)](_0x501226);})),this[_0x528528(0x12e)](this[_0x528528(0x39f)][_0x528528(0x2e2)]((_0x57bb63,_0x13a59d)=>{const _0x56735e=_0x528528;if(_0x57bb63['type']!==_0x17ede7[_0x56735e(0x1a6)][_0x56735e(0x3d1)]||_0x13a59d!=null&&_0x13a59d[_0x56735e(0x3a4)]||_0x13a59d!=null&&_0x13a59d[_0x56735e(0x2ae)]||_0x57bb63['id']===_0xc72b83['RichTextEditingMutation']['id'])return;let _0x390a17=_0x57bb63['params'];if((_0x390a17==null?void 0x0:_0x390a17['unitId'])!==this[_0x56735e(0xec)])return;let _0x3088f3=_0x57bb63,_0x1d96b5=this[_0x56735e(0x1e8)][_0x56735e(0x1dd)][_0x56735e(0x35c)](this[_0x56735e(0x1e8)][_0x56735e(0x1dd)][_0x56735e(0x395)]()[_0x56735e(0x39e)])([_0x3088f3],this[_0x56735e(0x171)])||[_0x3088f3];this[_0x56735e(0x129)](_0x1d96b5[0x0]);})),_0x14f59d;}};_0x5a3607=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7['Inject'])(_0x3d4600[_0x473efc(0x13f)])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x10e)])),_0x9a3e23(0x6,(0x0,_0x17ede7['Inject'])(_0x3d4600['RevisionService'])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7['IUniverInstanceService']),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0xc72b83['DocStateChangeManagerService'])),_0x9a3e23(0xd,(0x0,_0x17ede7['Optional'])(_0x549ce8)),_0x9a3e23(0xe,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x5a3607);let _0x1cfeae=class extends _0x458bcf{constructor(_0x210998,_0x5d1a61,_0x27e9da,_0x56c0c4,_0x4e79d3,_0x27cc38,_0x89c858,_0xd36b1b,_0x32ffd4,_0x358db0,_0x324a26,_0x264725,_0x51595a,_0x7b5ca5){const _0x5266c7=_0x473efc;super(_0x210998,_0x27e9da,_0x5d1a61,_0x56c0c4,_0x4e79d3,_0x27cc38,_0x89c858,_0xd36b1b,_0x32ffd4,_0x358db0,_0x324a26,_0x264725,_0x51595a,_0x7b5ca5),this[_0x5266c7(0xec)]=_0x210998,this[_0x5266c7(0x3d5)]=_0x5d1a61;}async[_0x473efc(0x215)](){const _0x32da93=_0x473efc;let _0x44bf1c=await super[_0x32da93(0x215)]();return this[_0x32da93(0x12e)](this[_0x32da93(0x39f)][_0x32da93(0x2e2)]((_0x350a71,_0x4307ed)=>{const _0x3d600f=_0x32da93;if(_0x350a71['type']!==_0x17ede7[_0x3d600f(0x1a6)][_0x3d600f(0x3d1)]||_0x4307ed!=null&&_0x4307ed[_0x3d600f(0x3a4)]||_0x4307ed!=null&&_0x4307ed[_0x3d600f(0x2ae)])return;let _0x43af36=_0x350a71[_0x3d600f(0x1de)];if((_0x43af36==null?void 0x0:_0x43af36['unitId'])!==this[_0x3d600f(0xec)])return;let _0xedbb99=_0x350a71,_0x111fd1=this['_compressMutationService'][_0x3d600f(0x1dd)][_0x3d600f(0x35c)](this['_compressMutationService'][_0x3d600f(0x1dd)]['getInterceptPoints']()[_0x3d600f(0x39e)])([_0xedbb99],this[_0x3d600f(0x171)])||[_0xedbb99];this[_0x3d600f(0x129)](_0x111fd1[0x0]);})),_0x44bf1c;}};_0x1cfeae=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['CompressMutationService'])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x10e)])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['RevisionService'])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7['ICommandService']),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x1cfeae);let _0x399b0b=class extends _0x458bcf{constructor(_0x21660a,_0x4fa001,_0x21f0ca,_0x546f72,_0x2e19f0,_0x480331,_0x6ec786,_0x1b122f,_0x3f863a,_0x110a8d,_0x369268,_0xc04629,_0x54c242,_0x5ac226,_0x89a460){const _0x3a48ec=_0x473efc;super(_0x21660a,_0x21f0ca,_0x4fa001,_0x546f72,_0x2e19f0,_0x480331,_0x6ec786,_0x3f863a,_0x110a8d,_0x369268,_0xc04629,_0x54c242,_0x5ac226,_0x89a460),this[_0x3a48ec(0xec)]=_0x21660a,this[_0x3a48ec(0x3d5)]=_0x4fa001,this[_0x3a48ec(0x212)]=_0x1b122f;}[_0x473efc(0x2ff)](){const _0x16f1b5=_0x473efc;let _0x28b1af=super['_createHandler']();return _0x28b1af[_0x16f1b5(0x157)]=_0x206807=>this[_0x16f1b5(0x212)][_0x16f1b5(0x19c)](_0x206807),_0x28b1af;}async['_init'](){const _0x544a20=_0x473efc;let _0x2e4ef4=await super[_0x544a20(0x215)]();return this[_0x544a20(0x12e)](this[_0x544a20(0x39f)][_0x544a20(0x2e2)]((_0x5dbc10,_0xf95eaa)=>{const _0x4af06e=_0x544a20;if(_0x5dbc10[_0x4af06e(0x3d5)]!==_0x17ede7[_0x4af06e(0x1a6)]['MUTATION']||_0xf95eaa!=null&&_0xf95eaa[_0x4af06e(0x3a4)]||_0xf95eaa!=null&&_0xf95eaa[_0x4af06e(0x2ae)])return;let _0x4154cb=_0x5dbc10[_0x4af06e(0x1de)];if((_0x4154cb==null?void 0x0:_0x4154cb[_0x4af06e(0x298)])!==this[_0x4af06e(0xec)])return;let _0x528786=_0x5dbc10,_0x50d3b0=this[_0x4af06e(0x1e8)][_0x4af06e(0x1dd)][_0x4af06e(0x35c)](this[_0x4af06e(0x1e8)]['interceptor'][_0x4af06e(0x395)]()[_0x4af06e(0x39e)])([_0x528786],this['_univerInstanceService'])||[_0x528786];this['_onLocalMutation'](_0x50d3b0[0x0]);})),_0x2e4ef4;}};_0x399b0b=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0x13f)])),_0x9a3e23(0x5,(0x0,_0x17ede7['Inject'])(_0x17ede7['LocaleService'])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,(0x0,_0x17ede7['Inject'])(_0x62027)),_0x9a3e23(0x8,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xb,_0x17ede7['ICommandService']),_0x9a3e23(0xc,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xe,(0x0,_0x17ede7['Optional'])(_0x4386bd))],_0x399b0b);let _0x7459fd=class extends _0x458bcf{constructor(_0x368a26,_0x45639d,_0x5b6337,_0x9dc73b,_0x3d4bfd,_0xe7a133,_0x18946f,_0x560635,_0xa61bf4,_0xed4ed0,_0x47bddc,_0x13ba05,_0x31b7b2,_0x4b0b6c){const _0x362341=_0x473efc;super(_0x368a26,_0x5b6337,_0x45639d,_0x9dc73b,_0x3d4bfd,_0xe7a133,_0x18946f,_0x560635,_0xa61bf4,_0xed4ed0,_0x47bddc,_0x13ba05,_0x31b7b2,_0x4b0b6c),this[_0x362341(0xec)]=_0x368a26,this[_0x362341(0x3d5)]=_0x45639d;}async['_init'](){const _0x4614ab=_0x473efc;let _0x65ecdd=await super[_0x4614ab(0x215)]();return this['disposeWithMe'](this[_0x4614ab(0x39f)]['onMutationExecutedForCollab']((_0x44c854,_0x345b8e)=>{const _0x32daf3=_0x4614ab;if(_0x44c854[_0x32daf3(0x3d5)]!==_0x17ede7[_0x32daf3(0x1a6)]['MUTATION']||_0x345b8e!=null&&_0x345b8e[_0x32daf3(0x3a4)]||_0x345b8e!=null&&_0x345b8e[_0x32daf3(0x2ae)])return;let _0x1e9705=_0x44c854[_0x32daf3(0x1de)];if((_0x1e9705==null?void 0x0:_0x1e9705[_0x32daf3(0x298)])!==this['unitID'])return;let _0xf5ecc4=_0x44c854,_0x34862a=this[_0x32daf3(0x1e8)]['interceptor'][_0x32daf3(0x35c)](this[_0x32daf3(0x1e8)][_0x32daf3(0x1dd)][_0x32daf3(0x395)]()[_0x32daf3(0x39e)])([_0xf5ecc4],this[_0x32daf3(0x171)])||[_0xf5ecc4];this[_0x32daf3(0x129)](_0x34862a[0x0]);})),_0x65ecdd;}};_0x7459fd=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['CompressMutationService'])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['LocaleService'])),_0x9a3e23(0x6,(0x0,_0x17ede7['Inject'])(_0x3d4600['RevisionService'])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0xb,_0x17ede7['IPermissionService']),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7['Optional'])(_0x4386bd))],_0x7459fd);let _0x28070e=class extends _0x458bcf{constructor(_0xb28fe,_0x5bf5f3,_0x6c8d62,_0x11f398,_0x26f7e3,_0x30d4b5,_0x64a599,_0xe40f40,_0x33fc08,_0x4f8984,_0x2d20e5,_0x52e5d6,_0x344a12,_0x5806f0){const _0x5c4bca=_0x473efc;super(_0xb28fe,_0x6c8d62,_0x5bf5f3,_0x11f398,_0x26f7e3,_0x30d4b5,_0x64a599,_0xe40f40,_0x33fc08,_0x4f8984,_0x2d20e5,_0x52e5d6,_0x344a12,_0x5806f0),this[_0x5c4bca(0xec)]=_0xb28fe,this[_0x5c4bca(0x3d5)]=_0x5bf5f3;}async[_0x473efc(0x215)](){const _0x129272=_0x473efc;let _0x5d4e00=await super[_0x129272(0x215)]();return this[_0x129272(0x12e)](this[_0x129272(0x39f)][_0x129272(0x2e2)]((_0x2b04f9,_0x5684c8)=>{const _0x5999d6=_0x129272;if(_0x2b04f9[_0x5999d6(0x3d5)]!==_0x17ede7[_0x5999d6(0x1a6)][_0x5999d6(0x3d1)]||_0x5684c8!=null&&_0x5684c8[_0x5999d6(0x3a4)]||_0x5684c8!=null&&_0x5684c8[_0x5999d6(0x2ae)])return;let _0x36743e=_0x2b04f9['params'];if((_0x36743e==null?void 0x0:_0x36743e[_0x5999d6(0x298)])!==this[_0x5999d6(0xec)])return;let _0x1cb23=_0x2b04f9,_0x4fa770=this[_0x5999d6(0x1e8)][_0x5999d6(0x1dd)][_0x5999d6(0x35c)](this[_0x5999d6(0x1e8)][_0x5999d6(0x1dd)][_0x5999d6(0x395)]()[_0x5999d6(0x39e)])([_0x1cb23],this[_0x5999d6(0x171)])||[_0x1cb23];this[_0x5999d6(0x129)](_0x4fa770[0x0]);})),_0x5d4e00;}};_0x28070e=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0x13f)])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['LocaleService'])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7['ICommandService']),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x28070e);let _0x30dd3f=class extends _0x458bcf{constructor(_0x5a7990,_0x10500b,_0x5386da,_0x4f4872,_0x57d515,_0x40d158,_0xf36c73,_0x3e9056,_0x47eace,_0x2c3a10,_0x5ceb83,_0x74ea3b,_0x4a7b98,_0x27dfb7){const _0x51f097=_0x473efc;super(_0x5a7990,_0x5386da,_0x10500b,_0x4f4872,_0x57d515,_0x40d158,_0xf36c73,_0x3e9056,_0x47eace,_0x2c3a10,_0x5ceb83,_0x74ea3b,_0x4a7b98,_0x27dfb7),this[_0x51f097(0xec)]=_0x5a7990,this['type']=_0x10500b;}async[_0x473efc(0x215)](){const _0xcc21ca=_0x473efc;let _0x1e5965=await super[_0xcc21ca(0x215)]();return this[_0xcc21ca(0x12e)](this[_0xcc21ca(0x39f)]['onMutationExecutedForCollab']((_0x336826,_0x31a370)=>{const _0x333878=_0xcc21ca;if(_0x336826[_0x333878(0x3d5)]!==_0x17ede7['CommandType'][_0x333878(0x3d1)]||_0x31a370!=null&&_0x31a370[_0x333878(0x3a4)]||_0x31a370!=null&&_0x31a370[_0x333878(0x2ae)])return;let _0x6b564c=_0x336826[_0x333878(0x1de)];if((_0x6b564c==null?void 0x0:_0x6b564c['unitId'])!==this['unitID'])return;let _0x4bddba=_0x336826,_0x401bc4=this[_0x333878(0x1e8)][_0x333878(0x1dd)][_0x333878(0x35c)](this[_0x333878(0x1e8)]['interceptor'][_0x333878(0x395)]()[_0x333878(0x39e)])([_0x4bddba],this[_0x333878(0x171)])||[_0x4bddba];this[_0x333878(0x129)](_0x401bc4[0x0]);})),_0x1e5965;}};_0x30dd3f=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x4,(0x0,_0x17ede7['Inject'])(_0x3d4600['CompressMutationService'])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x10e)])),_0x9a3e23(0x6,(0x0,_0x17ede7['Inject'])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7['ICommandService']),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xc,(0x0,_0x17ede7['Optional'])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x30dd3f);let _0x4c48ae=(0x0,_0x17ede7[_0x473efc(0x1cb)])(_0x473efc(0x25a));function _0x598fbe(_0x400b16){const _0x541fd7=_0x473efc;let _0x29cc7f=_0x400b16['data'],_0x559ce9=JSON[_0x541fd7(0x206)](_0x29cc7f);switch(_0x559ce9[_0x541fd7(0x258)]){case _0x3d2f85[_0x541fd7(0x1c9)][_0x541fd7(0x203)]:case _0x3d2f85[_0x541fd7(0x1c9)][_0x541fd7(0x18f)]:{let _0x529456=_0x559ce9[_0x541fd7(0x2d5)];return{..._0x559ce9,'data':_0x529456,'cmd':_0x559ce9[_0x541fd7(0x258)]};}case _0x3d2f85[_0x541fd7(0x1c9)][_0x541fd7(0x102)]:{let _0x3b54ee=_0x559ce9[_0x541fd7(0x2b2)];return{..._0x559ce9,'data':_0x3b54ee,'cmd':_0x559ce9['cmd']};}case _0x3d2f85[_0x541fd7(0x1c9)][_0x541fd7(0x111)]:{let _0x21916b=_0x559ce9[_0x541fd7(0x190)];switch(_0x21916b[_0x541fd7(0x1fb)]){case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x348)]:var _0x498883;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x498883=_0x21916b[_0x541fd7(0x1c7)])==null?void 0x0:_0x498883['cs']},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)]['CHANGESET_ACK']:var _0x172d90;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x172d90=_0x21916b[_0x541fd7(0x20d)])==null?void 0x0:_0x172d90['cs']},'cmd':_0x559ce9['cmd']};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x211)]:var _0x1b7fb7;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x1b7fb7=_0x21916b[_0x541fd7(0x112)])==null?void 0x0:_0x1b7fb7['cs']},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x30b)]:var _0x4b7e07;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x4b7e07=_0x21916b[_0x541fd7(0x31b)])==null?void 0x0:_0x4b7e07['cs']},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x289)]:var _0x18823d;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x18823d=_0x21916b[_0x541fd7(0x3f1)])==null?void 0x0:_0x18823d['cs']},'cmd':_0x559ce9['cmd']};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x1f2)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x299)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x1ef)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x25c)]},'cmd':_0x559ce9['cmd']};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x3a9)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x1be)]},'cmd':_0x559ce9['cmd']};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x110)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x2b5)]},'cmd':_0x559ce9['cmd']};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x19e)]:case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x2bc)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x338)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x262)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x2b5)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x34e)]:return{..._0x559ce9,'data':_0x21916b,'cmd':_0x559ce9['cmd']};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x214)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0xf1)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x384)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b['updatePermissionObjEvent']},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x3a8)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x132)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x31a)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x336)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};default:return _0x559ce9;}}default:return _0x559ce9;}}function _0x91444b(_0x3a0f3d){const _0x182f1a=_0x473efc;switch(_0x3a0f3d[_0x182f1a(0x258)]){case _0x3d2f85['CombCmd'][_0x182f1a(0x203)]:case _0x3d2f85[_0x182f1a(0x1c9)]['HELLO']:return JSON[_0x182f1a(0x317)]({'cmd':_0x3a0f3d[_0x182f1a(0x258)],'routeKey':_0x3a0f3d['routeKey']});case _0x3d2f85['CombCmd'][_0x182f1a(0xfa)]:{let _0x4c8624;switch(_0x3a0f3d[_0x182f1a(0x1ab)][_0x182f1a(0x1fb)]){case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x1f2)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x1f2)],'updateCursorEvent':_0x3a0f3d[_0x182f1a(0x1ab)][_0x182f1a(0x1ab)]};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x3a9)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)]['USERS_LEAVE'],'leaveEvent':_0x3a0f3d[_0x182f1a(0x1ab)]['data']};break;case _0x3d4600[_0x182f1a(0x350)]['USERS_ENTER']:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)]['USERS_ENTER'],'joinEvent':_0x3a0f3d['data'][_0x182f1a(0x1ab)]};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x110)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x110)],'liveShareNewHost':_0x3a0f3d['data'][_0x182f1a(0x1ab)]};break;case _0x3d4600[_0x182f1a(0x350)]['LIVESHARE_OPERATION']:_0x4c8624={'eventID':_0x3d4600['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x3a0f3d[_0x182f1a(0x1ab)]['data']};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x262)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x262)],'liveShareTerminate':_0x3a0f3d[_0x182f1a(0x1ab)][_0x182f1a(0x1ab)]};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x351)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x351)],'liveShareRequestHost':_0x3a0f3d[_0x182f1a(0x1ab)]['data']};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x19e)]:_0x4c8624={'eventID':_0x3d4600['CollaborationEvent'][_0x182f1a(0x19e)]};break;default:_0x4c8624={'eventID':_0x3a0f3d[_0x182f1a(0x1ab)][_0x182f1a(0x1fb)]};}return JSON[_0x182f1a(0x317)]({'cmd':_0x3a0f3d[_0x182f1a(0x258)],'routeKey':_0x3a0f3d[_0x182f1a(0x28d)],'collaMsg':_0x4c8624});}case _0x3d2f85[_0x182f1a(0x1c9)][_0x182f1a(0x102)]:return JSON[_0x182f1a(0x317)]({'cmd':_0x3a0f3d['cmd'],'routeKey':_0x3a0f3d[_0x182f1a(0x28d)],'joinReq':_0x3a0f3d[_0x182f1a(0x1ab)]});case _0x3d2f85['CombCmd'][_0x182f1a(0x3b7)]:return JSON['stringify']({'cmd':_0x3a0f3d[_0x182f1a(0x258)],'routeKey':_0x3a0f3d[_0x182f1a(0x28d)],'leaveReq':_0x3a0f3d[_0x182f1a(0x1ab)]});default:throw Error(_0x182f1a(0x287));}}let _0x2e376b=(0x0,_0x17ede7[_0x473efc(0x1cb)])(_0x473efc(0x1b7));function _0x2c930a(_0x5a693c,_0x20836b,_0x2b951e){const _0x497a8e=_0x473efc;return _0x5a693c+'/'+_0x20836b+'/unit/'+_0x2b951e+_0x497a8e(0x2de);}let _0x7e2dbe=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x40a710,_0x19fa93,_0x35ab82,_0x529f53,_0x39ce4d){const _0x53a77e=_0x473efc;super(),this['_injector']=_0x40a710,this[_0x53a77e(0x2b0)]=_0x19fa93,this[_0x53a77e(0x414)]=_0x35ab82,this[_0x53a77e(0x309)]=_0x529f53,this[_0x53a77e(0x3f2)]=_0x39ce4d;}['_doCreateSocket'](_0x2a77e7){const _0x5005c7=_0x473efc;let _0x3f143c=this[_0x5005c7(0x28c)]['get'](_0x4bbb37['ISocketService']);if(!_0x3f143c)throw Error(_0x5005c7(0x331));let _0x4a85c4=_0x3f143c[_0x5005c7(0x3c0)](_0x2a77e7);if(!_0x4a85c4)throw Error(_0x5005c7(0x28f));let _0x7f4c2d=new _0x17ede7[(_0x5005c7(0x146))](),_0x19d7f0=new _0x1f9457[(_0x5005c7(0x2d8))]();_0x7f4c2d['add'](_0x4a85c4[_0x5005c7(0x25e)][_0x5005c7(0x3bf)](_0x3c1eba=>_0x19d7f0[_0x5005c7(0x2f5)](_0x3c1eba))),_0x7f4c2d[_0x5005c7(0x32d)]((0x0,_0x17ede7[_0x5005c7(0xf9)])(()=>_0x19d7f0[_0x5005c7(0x403)]()));let _0x3d7e6d=new _0x1f9457[(_0x5005c7(0x2d8))]();_0x7f4c2d[_0x5005c7(0x32d)](_0x4a85c4[_0x5005c7(0x2b4)][_0x5005c7(0x3bf)](_0x351b8a=>_0x3d7e6d[_0x5005c7(0x2f5)](_0x351b8a))),_0x7f4c2d[_0x5005c7(0x32d)]((0x0,_0x17ede7[_0x5005c7(0xf9)])(()=>_0x3d7e6d[_0x5005c7(0x403)]()));let _0x50dca8=new _0x1f9457[(_0x5005c7(0x2d8))]();_0x7f4c2d[_0x5005c7(0x32d)](_0x4a85c4[_0x5005c7(0x38f)][_0x5005c7(0x3bf)](_0x47bc67=>{const _0x39a6b9=_0x5005c7;let _0xe3f023=_0x598fbe(_0x47bc67);_0x50dca8[_0x39a6b9(0x2f5)](_0xe3f023);})),_0x7f4c2d[_0x5005c7(0x32d)]((0x0,_0x17ede7[_0x5005c7(0xf9)])(()=>_0x50dca8[_0x5005c7(0x403)]()));let _0x4bb8e3,_0x399dba=()=>{const _0x7f2510=_0x5005c7;_0x3d7e6d['next'](new Event(_0x7f2510(0x139))),_0x19d7f0['next'](new Event(_0x7f2510(0x139))),_0x4bb8e3[_0x7f2510(0x11f)]();};return _0x4bb8e3={'memberID':'','close$':_0x19d7f0[_0x5005c7(0x1b5)](),'error$':_0x3d7e6d[_0x5005c7(0x1b5)](),'open$':_0x4a85c4[_0x5005c7(0x297)],'message$':_0x50dca8['asObservable'](),'send':_0x23ec27=>{const _0xf7b293=_0x5005c7;if(_0x23ec27[_0xf7b293(0x258)]===_0x3d2f85[_0xf7b293(0x1c9)]['INGEST']){if(_0x23ec27[_0xf7b293(0x1ab)][_0xf7b293(0x1fb)]===_0x3d4600[_0xf7b293(0x350)][_0xf7b293(0x2da)]){this[_0xf7b293(0x228)](_0x4bb8e3,_0x23ec27[_0xf7b293(0x1ab)])[_0xf7b293(0x1e1)](_0x1c241e=>{const _0x3c914c=_0xf7b293;this['_logService'][_0x3c914c(0x3e6)](_0x1c241e),_0x399dba();});return;}if(_0x23ec27['data']['eventID']===_0x3d4600['CollaborationEvent']['FETCH_MISSING']){let _0x5d864b=_0x23ec27[_0xf7b293(0x1ab)];this['_fetchMissChangesets'](_0x5d864b)[_0xf7b293(0x1e5)](_0x286aef=>{const _0x5162b8=_0xf7b293;_0x50dca8[_0x5162b8(0x2f5)]({'cmd':_0x3d2f85[_0x5162b8(0x1c9)]['RECV'],'code':_0x3d2f85['CmdRspCode']['OK'],'routeKey':_0x5d864b[_0x5162b8(0x1ab)][_0x5162b8(0xec)],'routeType':'','data':{'eventID':_0x3d4600[_0x5162b8(0x350)][_0x5162b8(0x25f)],'data':{'changesets':_0x286aef}}});})[_0xf7b293(0x1e1)](_0x18e914=>{const _0x3971e2=_0xf7b293;this['_logService'][_0x3971e2(0x3e6)](_0x18e914),_0x399dba();});return;}}_0x4a85c4[_0xf7b293(0x10c)](_0x91444b(_0x23ec27));},'close':()=>{const _0x461819=_0x5005c7;_0x4a85c4[_0x461819(0x11f)](),_0x7f4c2d[_0x461819(0x335)]();}},_0x4bb8e3;}async['_submitChangeset'](_0x5073fa,_0x1e432f){const _0x1412f7=_0x473efc;let {unitType:_0x2d6889,unitID:_0x23a7f0,changeset:_0x944c3d}=_0x1e432f[_0x1412f7(0x1ab)],_0x430686={'unitID':_0x23a7f0,'memberID':_0x5073fa[_0x1412f7(0x2e0)],'type':_0x2d6889,'changeset':(0x0,_0x3d4600[_0x1412f7(0xeb)])(_0x944c3d)},_0x462b7b=this['_configService'][_0x1412f7(0x205)](_0x1f8831),_0x398bb0=_0x2c930a((_0x462b7b==null?void 0x0:_0x462b7b[_0x1412f7(0x402)])??'/universer-api/comb',_0x2d6889,_0x23a7f0);try{await this[_0x1412f7(0x2b0)]['post'](_0x398bb0,{'body':_0x430686});}catch(_0x19b6b4){throw this[_0x1412f7(0x309)][_0x1412f7(0x3e6)](_0x1412f7(0x332),'submit\x20changeset\x20error!'),_0x19b6b4;}}async[_0x473efc(0xcf)](_0x33ce95){const _0x38d5fb=_0x473efc;let {unitID:_0xc5e4e0,from:_0x84e86f,to:_0x5dcb90,unitType:_0x7ed8c4}=_0x33ce95[_0x38d5fb(0x1ab)];return(await this[_0x38d5fb(0x3f2)][_0x38d5fb(0x3ae)]({'metadata':void 0x0},{'unitID':_0xc5e4e0,'type':_0x7ed8c4,'from':_0x84e86f,'to':_0x5dcb90}))[_0x38d5fb(0x122)]['map'](_0x4e11a8=>((_0x4e11a8[_0x38d5fb(0x237)]===null||_0x4e11a8[_0x38d5fb(0x237)]===void 0x0)&&(_0x4e11a8[_0x38d5fb(0x237)]=[]),_0x4e11a8));}};_0x7e2dbe=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x4bbb37[_0x473efc(0x1f7)])),_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x3,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x4,_0x3d4600['ISnapshotServerService'])],_0x7e2dbe);let _0xa5a1c7=(0x0,_0x17ede7[_0x473efc(0x1cb)])(_0x473efc(0x115));function _0x47199c(_0x405e0e={}){const _0x4b44b5=_0x473efc;return _0x405e0e[_0x4b44b5(0xe5)]?{'resolveUnit':_0x405e0e[_0x4b44b5(0xe5)]}:{'resolveUnit':_0x1d3741=>({'target':{'unitId':_0x1d3741[_0x4b44b5(0x298)],'unitType':_0x1d3741[_0x4b44b5(0x19a)]}})};}function _0xe859dc(_0x308ce7,_0x343248,_0x19c857){const _0x56d185=_0x473efc;let _0x359466=_0x19c857[_0x56d185(0x36c)][_0x56d185(0x152)];if(_0x359466!=null&&_0x359466[_0x56d185(0x31f)]()==='')throw Error(_0x56d185(0x104));if(!_0x19c857[_0x56d185(0x36c)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x308ce7,'unitType':_0x343248,'target':{'endpoint':_0x359466,'unitId':_0x19c857[_0x56d185(0x36c)][_0x56d185(0x298)],'unitType':_0x19c857[_0x56d185(0x36c)]['unitType']??_0x343248},'changeset':_0x19c857[_0x56d185(0x364)]};}let _0x40f859=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x1b060b,_0x513568,_0x5dfb43,_0x2cd9e3,_0x4a2d64,_0x1b13ca,_0x6178e7){const _0x4a9d28=_0x473efc;super(),this[_0x4a9d28(0x28c)]=_0x1b060b,this[_0x4a9d28(0x309)]=_0x513568,this[_0x4a9d28(0x414)]=_0x5dfb43,this[_0x4a9d28(0x2d2)]=_0x2cd9e3,this[_0x4a9d28(0x1fd)]=_0x4a2d64,this[_0x4a9d28(0x221)]=_0x1b13ca,this[_0x4a9d28(0xc0)]=_0x6178e7,_0x17f3d2(this,_0x4a9d28(0x14b),new Map()),_0x17f3d2(this,_0x4a9d28(0x3f6),new Map()),_0x17f3d2(this,'_sessionChannels',new Map()),_0x17f3d2(this,_0x4a9d28(0x3f8),new Map()),_0x17f3d2(this,_0x4a9d28(0x3cc),this[_0x4a9d28(0x274)](void 0x0)[_0x4a9d28(0x3cc)]['asObservable']()),_0x17f3d2(this,_0x4a9d28(0x1d6),new _0x1f9457[(_0x4a9d28(0x3c1))](0x0)),_0x17f3d2(this,_0x4a9d28(0x208),this['_status$']['asObservable']()),this[_0x4a9d28(0x290)]();}[_0x473efc(0x290)](){const _0x14b04e=_0x473efc;this[_0x14b04e(0xc0)]&&this[_0x14b04e(0x12e)](this[_0x14b04e(0xc0)][_0x14b04e(0x1a5)]['subscribe'](_0xd83c4b=>{const _0x3c76c9=_0x14b04e;_0xd83c4b&&this['reconnect'](),_0xd83c4b||this['_socketChannels'][_0x3c76c9(0x343)](_0x3e2f52=>this[_0x3c76c9(0x1c8)](_0x3e2f52));}));}[_0x473efc(0x335)](){const _0x3c16d4=_0x473efc;super[_0x3c16d4(0x335)](),this[_0x3c16d4(0x3f8)][_0x3c16d4(0x343)](_0x34e53a=>{const _0x5b9b17=_0x3c16d4;var _0xe8cc72,_0x2bbff7;(_0xe8cc72=_0x34e53a['socketMessageSubscription'])==null||_0xe8cc72[_0x5b9b17(0x278)](),_0x34e53a[_0x5b9b17(0x33e)]=null,this[_0x5b9b17(0x234)](_0x34e53a),this[_0x5b9b17(0x17e)](_0x34e53a),this['_clearHeartbeatTimer'](_0x34e53a),(_0x2bbff7=_0x34e53a['socket$'][_0x5b9b17(0x2a2)]())==null||_0x2bbff7[_0x5b9b17(0x11f)](),_0x34e53a[_0x5b9b17(0x3cc)][_0x5b9b17(0x403)]();}),this['_socketChannels'][_0x3c16d4(0x40f)](),this['_sessions'][_0x3c16d4(0x343)](_0x4ad072=>_0x4ad072[_0x3c16d4(0x335)]()),this['_sessions']['clear'](),this[_0x3c16d4(0x340)]['clear'](),this['_status$'][_0x3c16d4(0x403)]();}async['requireSession'](_0x5e4c35,_0x3f0cb2){const _0x2030d7=_0x473efc;if(this[_0x2030d7(0x14b)][_0x2030d7(0x406)](_0x5e4c35))return this[_0x2030d7(0x14b)]['get'](_0x5e4c35);let _0x1624c6=this[_0x2030d7(0x3f6)][_0x2030d7(0x3af)](_0x5e4c35);if(_0x1624c6)return _0x1624c6;let _0x2dd264=this[_0x2030d7(0x34f)](_0x5e4c35,_0x3f0cb2);this['_pendingSessions']['set'](_0x5e4c35,_0x2dd264);try{return await _0x2dd264;}finally{this[_0x2030d7(0x3f6)]['delete'](_0x5e4c35);}}async[_0x473efc(0x34f)](_0x333c7e,_0x3cafe6){const _0xe358db=_0x473efc;let _0x16a57a=await this[_0xe358db(0x11d)](_0x333c7e,_0x3cafe6),_0x47ea91=this[_0xe358db(0x274)](_0x16a57a[_0xe358db(0x36c)][_0xe358db(0x152)]);this[_0xe358db(0x1e0)](_0x47ea91);let _0x3bc39c=this[_0xe358db(0x28c)][_0xe358db(0x172)](_0x1fbd86,_0x16a57a,_0x47ea91[_0xe358db(0x3cc)]['asObservable']());return this[_0xe358db(0x14b)][_0xe358db(0x184)](_0x333c7e,_0x3bc39c),this[_0xe358db(0x340)][_0xe358db(0x184)](_0x333c7e,_0x47ea91[_0xe358db(0x20a)]),_0x3bc39c;}[_0x473efc(0x180)](_0x4aba43){const _0x446114=_0x473efc;let _0x28bf0c=this[_0x446114(0x14b)][_0x446114(0x3af)](_0x4aba43),_0x9add0f=this[_0x446114(0x340)]['get'](_0x4aba43);if(_0x28bf0c&&(this[_0x446114(0x14b)]['delete'](_0x4aba43),this[_0x446114(0x340)][_0x446114(0x2ce)](_0x4aba43),_0x28bf0c[_0x446114(0x11f)]()),_0x9add0f&&!this['_hasSessionsForEndpoint'](_0x9add0f)){var _0x4c3f43;let _0x1da1b8=this['_socketChannels'][_0x446114(0x3af)](_0x9add0f);_0x1da1b8==null||(_0x4c3f43=_0x1da1b8[_0x446114(0x3cc)]['getValue']())==null||_0x4c3f43[_0x446114(0x11f)]();}}[_0x473efc(0x325)](){const _0x46aa6b=_0x473efc;(this[_0x46aa6b(0x3f8)][_0x46aa6b(0x3c9)]?[...this['_socketChannels'][_0x46aa6b(0x313)]()]:[this[_0x46aa6b(0x274)](void 0x0)])[_0x46aa6b(0x343)](_0x62c42f=>{const _0x259e02=_0x46aa6b;_0x62c42f['retryCount']=0x0,this[_0x259e02(0x234)](_0x62c42f),this[_0x259e02(0xfd)](_0x62c42f);});}[_0x473efc(0x234)](_0x2fc0ae){const _0x2c9288=_0x473efc;_0x2fc0ae[_0x2c9288(0x2f7)]!=null&&(clearTimeout(_0x2fc0ae['retryConnectingTimer']),_0x2fc0ae[_0x2c9288(0x2f7)]=null);}async[_0x473efc(0x3f4)](_0x70bc8){const _0x1f93f0=_0x473efc;let _0x1555a5=this[_0x1f93f0(0x414)][_0x1f93f0(0x205)](_0x1f8831),_0x1c5df2=_0x70bc8[_0x1f93f0(0x152)]??(_0x1555a5==null?void 0x0:_0x1555a5['collabWebSocketUrl'])??_0x1f93f0(0x22a),_0xfea8d0=await this[_0x1f93f0(0x2d2)][_0x1f93f0(0x3c0)](_0x1c5df2);return _0x70bc8[_0x1f93f0(0x397)]=_0xfea8d0,_0xfea8d0;}async[_0x473efc(0x1e0)](_0xa85515){const _0x5ce5b4=_0x473efc;try{let _0x42d7a5=_0xa85515[_0x5ce5b4(0x3cc)]['getValue']()??_0xa85515[_0x5ce5b4(0x397)]??await this[_0x5ce5b4(0x3f4)](_0xa85515);if(_0x42d7a5){var _0x40db5e;let _0x76245a=_0x42d7a5[_0x5ce5b4(0x10c)];_0x42d7a5[_0x5ce5b4(0x10c)]=_0x55c62d=>(_0x55c62d[_0x5ce5b4(0x258)]!==_0x3d2f85[_0x5ce5b4(0x1c9)][_0x5ce5b4(0x3b7)]&&this['_rescheduleHeartbeat'](_0xa85515),_0x76245a[_0x5ce5b4(0x2a6)](_0x42d7a5,[_0x55c62d])),(_0x40db5e=_0xa85515[_0x5ce5b4(0x33e)])==null||_0x40db5e[_0x5ce5b4(0x278)](),_0xa85515[_0x5ce5b4(0x33e)]=null,_0xa85515[_0x5ce5b4(0x33e)]=_0x42d7a5[_0x5ce5b4(0x38f)][_0x5ce5b4(0x3bf)](_0x5c1487=>this['_onMessage'](_0xa85515,_0x42d7a5,_0x5c1487)),_0x42d7a5[_0x5ce5b4(0x2b4)][_0x5ce5b4(0x2bf)]((0x0,_0x1756fd[_0x5ce5b4(0x207)])(0x1))[_0x5ce5b4(0x3bf)](_0x4bca36=>this[_0x5ce5b4(0x309)][_0x5ce5b4(0x3e6)](_0x5ce5b4(0x27a),_0x4bca36)),_0x42d7a5['open$']['pipe']((0x0,_0x1756fd['take'])(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0xa85515,_0x42d7a5);}),_0x42d7a5[_0x5ce5b4(0x25e)][_0x5ce5b4(0x2bf)]((0x0,_0x1756fd[_0x5ce5b4(0x207)])(0x1))[_0x5ce5b4(0x3bf)](_0x2b4c21=>{const _0x3e6384=_0x5ce5b4;this['_logService']['debug'](_0x3e6384(0x394),_0x3e6384(0x2dd),_0x2b4c21),this[_0x3e6384(0x101)](_0xa85515);});}}catch(_0x399e40){this[_0x5ce5b4(0x309)][_0x5ce5b4(0x3e6)](_0x399e40),this['_onConnectionFailed'](_0xa85515);}}[_0x473efc(0x2af)](_0x1143f3,_0xdcb892){const _0x584535=_0x473efc;this[_0x584535(0x309)][_0x584535(0x2f9)](_0x584535(0x394),_0x584535(0x105)),_0xdcb892[_0x584535(0x10c)]({'cmd':_0x3d2f85['CombCmd'][_0x584535(0x18f)]}),this['_rescheduleHeartbeat'](_0x1143f3);}[_0x473efc(0x1c8)](_0x2d062b){const _0x1168b6=_0x473efc;_0x2d062b[_0x1168b6(0xdf)]=!0x1,_0x2d062b[_0x1168b6(0x397)]=null,this['_status$'][_0x1168b6(0x2f5)](0x2),_0x2d062b[_0x1168b6(0x3cc)][_0x1168b6(0x2f5)](null),this['_clearTimeoutTimer'](_0x2d062b),this['_clearHeartbeatTimer'](_0x2d062b);}[_0x473efc(0x101)](_0x4c3a37){const _0x17b4f8=_0x473efc;this[_0x17b4f8(0x1c8)](_0x4c3a37),this[_0x17b4f8(0x2ac)](_0x4c3a37[_0x17b4f8(0x20a)])&&(_0x4c3a37[_0x17b4f8(0x133)]<(this[_0x17b4f8(0x414)]['getConfig'](_0x17b4f8(0x22e))??0x3)?(this[_0x17b4f8(0x1fd)][_0x17b4f8(0x3b3)]({'id':_0x17b4f8(0x2ed)}),this[_0x17b4f8(0xfd)](_0x4c3a37)):this[_0x17b4f8(0x1fd)][_0x17b4f8(0x3b3)]({'id':_0x17b4f8(0x407)}));}[_0x473efc(0xfd)](_0x362f0e){const _0x915c48=_0x473efc;let _0x26604f=_0x362f0e[_0x915c48(0x133)],_0x14c179=this[_0x915c48(0x414)]['getConfig'](_0x1f8831),_0x1bbf1b=_0x26604f===0x0?0x0:((_0x14c179==null?void 0x0:_0x14c179[_0x915c48(0x12b)])??0x4e20)*0x2**_0x26604f;_0x362f0e[_0x915c48(0x2f7)]=setTimeout(()=>{const _0x43ba25=_0x915c48;clearTimeout(_0x362f0e[_0x43ba25(0x2f7)]),_0x362f0e[_0x43ba25(0x2f7)]=null,this[_0x43ba25(0x1e0)](_0x362f0e);},_0x1bbf1b),_0x362f0e[_0x915c48(0x133)]+=0x1;}async[_0x473efc(0x11d)](_0x239e5c,_0x16e70c){const _0x4a5792=_0x473efc;return _0xe859dc(_0x239e5c,_0x16e70c,await this[_0x4a5792(0x221)][_0x4a5792(0xe5)]({'unitId':_0x239e5c,'unitType':_0x16e70c}));}[_0x473efc(0x1ba)](_0x216357,_0x3b051d,_0x22a1e4){const _0x1fd4ea=_0x473efc;let {cmd:_0x23c32f}=_0x22a1e4;_0x23c32f===_0x3d2f85[_0x1fd4ea(0x1c9)][_0x1fd4ea(0x18f)]&&!_0x216357['socketReady']&&(_0x3b051d[_0x1fd4ea(0x2e0)]=_0x22a1e4['data'][_0x1fd4ea(0x2e0)],_0x216357[_0x1fd4ea(0x3cc)]['next'](_0x3b051d),this['_status$']['next'](0x3),_0x216357[_0x1fd4ea(0xdf)]=!0x0,_0x216357['candidateSocket']=null),_0x23c32f===_0x3d2f85[_0x1fd4ea(0x1c9)][_0x1fd4ea(0x203)]&&this[_0x1fd4ea(0x17e)](_0x216357),this[_0x1fd4ea(0x38c)](_0x216357);}[_0x473efc(0x2ac)](_0x53e0d3){const _0x5ae51b=_0x473efc;return[...this[_0x5ae51b(0x340)]['values']()]['some'](_0x49438a=>_0x49438a===_0x53e0d3);}['_getSocketChannel'](_0x38665e){const _0x205e8a=_0x473efc;let _0x12bb96=_0x38665e??'',_0x255ec6=this[_0x205e8a(0x3f8)][_0x205e8a(0x3af)](_0x12bb96);if(_0x255ec6)return _0x255ec6;let _0x42664f={'endpointKey':_0x12bb96,'endpoint':_0x38665e,'socket$':new _0x1f9457[(_0x205e8a(0x3c1))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x205e8a(0x3f8)][_0x205e8a(0x184)](_0x12bb96,_0x42664f),_0x42664f;}[_0x473efc(0x38c)](_0x2d6df3){const _0x249795=_0x473efc;this[_0x249795(0x1d1)](_0x2d6df3),_0x2d6df3[_0x249795(0x200)]=setTimeout(()=>this[_0x249795(0x1e9)](_0x2d6df3),this[_0x249795(0x414)][_0x249795(0x205)](_0x249795(0xef))??0x7530);}[_0x473efc(0x1e9)](_0x5c5774){const _0x264ee5=_0x473efc;_0x5c5774['socket$'][_0x264ee5(0x2a2)]()[_0x264ee5(0x10c)]({'cmd':_0x3d2f85['CombCmd']['HEARTBEAT']}),this[_0x264ee5(0x155)](_0x5c5774);}['_waitForHeartbeatResponse'](_0x2692b6){const _0x4afdf8=_0x473efc;_0x2692b6['timeoutTimer']=setTimeout(()=>this[_0x4afdf8(0x101)](_0x2692b6),this[_0x4afdf8(0x414)]['getConfig'](_0x4afdf8(0x2dc))??0x4e20);}[_0x473efc(0x1d1)](_0x1d7bb1){const _0x1d39ac=_0x473efc;_0x1d7bb1[_0x1d39ac(0x200)]!=null&&(clearTimeout(_0x1d7bb1[_0x1d39ac(0x200)]),_0x1d7bb1[_0x1d39ac(0x200)]=null);}[_0x473efc(0x17e)](_0x17b536){const _0x2a6ef=_0x473efc;_0x17b536[_0x2a6ef(0xdc)]!=null&&(clearTimeout(_0x17b536[_0x2a6ef(0xdc)]),_0x17b536[_0x2a6ef(0xdc)]=null);}};_0x40f859=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x1,_0x17ede7['ILogService']),_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x3,_0x2e376b),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x5,_0xa5a1c7),_0x9a3e23(0x6,(0x0,_0x17ede7['Optional'])(_0x4c48ae))],_0x40f859);let _0x5ea503=class extends _0x17ede7[_0x473efc(0x1a3)]{constructor(_0x3e15cf,_0x566c4d,_0x15a242,_0x53fcf5){const _0x29055e=_0x473efc;var _0x3b8bd5;super(),this[_0x29055e(0x28c)]=_0x3e15cf,this[_0x29055e(0x219)]=_0x566c4d,this['_configService']=_0x15a242,this[_0x29055e(0x171)]=_0x53fcf5,_0x17f3d2(this,_0x29055e(0x34b),new Map()),_0x17f3d2(this,_0x29055e(0x3b6),new _0x1f9457[(_0x29055e(0x2d8))]()),_0x17f3d2(this,_0x29055e(0x265),this['_entityInit$'][_0x29055e(0x1b5)]()),((_0x3b8bd5=this[_0x29055e(0x414)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x3b8bd5['enableCollaboration'])!==!0x1&&this[_0x29055e(0x215)]();}['dispose'](){const _0x27bbd8=_0x473efc;super[_0x27bbd8(0x335)](),this[_0x27bbd8(0x34b)][_0x27bbd8(0x343)](_0x5bfe6e=>_0x5bfe6e[_0x27bbd8(0x335)]()),this[_0x27bbd8(0x34b)][_0x27bbd8(0x40f)]();}[_0x473efc(0xc5)](_0x374658){const _0x2bc13b=_0x473efc;return this[_0x2bc13b(0x34b)][_0x2bc13b(0x3af)](_0x374658)??null;}['getCollabEntity$'](_0x3b9bc2){const _0x48f0c6=_0x473efc;let _0x4f049d=this['getCollabEntity'](_0x3b9bc2);return _0x4f049d?(0x0,_0x1f9457['of'])(_0x4f049d):this[_0x48f0c6(0x3b6)][_0x48f0c6(0x2bf)]((0x0,_0x1756fd['filter'])(_0x27f637=>_0x27f637['unitID']===_0x3b9bc2));}[_0x473efc(0x24d)](_0x4b6a33){const _0x18e986=_0x473efc;return(0x0,_0x1f9457[_0x18e986(0x2b3)])(this['getCollabEntity$'](_0x4b6a33)[_0x18e986(0x2bf)]((0x0,_0x1756fd[_0x18e986(0xfb)])(()=>void 0x0)));}[_0x473efc(0x215)](){const _0x3f0af9=_0x473efc;this[_0x3f0af9(0x171)][_0x3f0af9(0x256)](_0x17ede7[_0x3f0af9(0x1c0)]['UNIVER_SHEET'])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd[_0x3f0af9(0x250)])(0x10))[_0x3f0af9(0x3bf)](async _0x5b4fcc=>{const _0x1a7b51=_0x3f0af9;let _0x409232=_0x5b4fcc[_0x1a7b51(0x3b2)][_0x1a7b51(0x204)](),_0x2da80b=await this[_0x1a7b51(0x119)](_0x409232,_0x17ede7[_0x1a7b51(0x1c0)]['UNIVER_SHEET']);this['_entities'][_0x1a7b51(0x184)](_0x409232,_0x2da80b);}),this[_0x3f0af9(0x171)][_0x3f0af9(0x256)](_0x17ede7['UniverInstanceType'][_0x3f0af9(0x399)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this['dispose$']),(0x0,_0x1756fd[_0x3f0af9(0x250)])(0x10))[_0x3f0af9(0x2bf)]((0x0,_0x1756fd['filter'])(_0x34dfe9=>!_0x34dfe9['unit'][_0x3f0af9(0x204)]()[_0x3f0af9(0x1b0)]('__')))[_0x3f0af9(0x3bf)](async _0x1c48c6=>{const _0x33cb92=_0x3f0af9;let _0x19b2ca=_0x1c48c6[_0x33cb92(0x3b2)][_0x33cb92(0x204)](),_0x175089=await this[_0x33cb92(0x119)](_0x19b2ca,_0x17ede7['UniverInstanceType'][_0x33cb92(0x399)]);this[_0x33cb92(0x34b)][_0x33cb92(0x184)](_0x19b2ca,_0x175089);}),this['_univerInstanceService'][_0x3f0af9(0x256)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0xf2)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd[_0x3f0af9(0x250)])(0x10))[_0x3f0af9(0x3bf)](async _0x537492=>{const _0x3043e0=_0x3f0af9;let _0x5d2ec1=_0x537492[_0x3043e0(0x3b2)][_0x3043e0(0x204)](),_0x4090b4=await this[_0x3043e0(0x119)](_0x5d2ec1,_0x17ede7[_0x3043e0(0x1c0)][_0x3043e0(0xf2)]);this['_entities'][_0x3043e0(0x184)](_0x5d2ec1,_0x4090b4);}),this['_univerInstanceService'][_0x3f0af9(0x256)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x3b5)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457['takeUntil'])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd['delay'])(0x10))[_0x3f0af9(0x3bf)](async _0x718e03=>{const _0x531e83=_0x3f0af9;let _0x1a545b=_0x718e03['unit'][_0x531e83(0x204)](),_0x54ae3f=await this[_0x531e83(0x119)](_0x1a545b,_0x17ede7['UniverInstanceType']['UNIVER_BOARD']);this[_0x531e83(0x34b)][_0x531e83(0x184)](_0x1a545b,_0x54ae3f);}),this[_0x3f0af9(0x171)]['getTypeOfUnitAdded$'](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x3e8)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd[_0x3f0af9(0x250)])(0x10))[_0x3f0af9(0x3bf)](async _0x18bf3e=>{const _0x1be78a=_0x3f0af9;let _0x52721e=_0x18bf3e[_0x1be78a(0x3b2)][_0x1be78a(0x204)](),_0x2e3c41=await this['_startCollaboration'](_0x52721e,_0x17ede7[_0x1be78a(0x1c0)][_0x1be78a(0x3e8)]);this['_entities']['set'](_0x52721e,_0x2e3c41);}),this[_0x3f0af9(0x171)][_0x3f0af9(0x256)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x1ce)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd['delay'])(0x10))[_0x3f0af9(0x3bf)](async _0x3694e6=>{const _0x828156=_0x3f0af9;let _0x1c1776=_0x3694e6[_0x828156(0x3b2)][_0x828156(0x204)](),_0x2048a0=await this[_0x828156(0x119)](_0x1c1776,_0x17ede7[_0x828156(0x1c0)][_0x828156(0x1ce)]);this[_0x828156(0x34b)][_0x828156(0x184)](_0x1c1776,_0x2048a0);}),(0x0,_0x1f9457[_0x3f0af9(0x1a2)])(this[_0x3f0af9(0x171)][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)]['UNIVER_SHEET']),this[_0x3f0af9(0x171)][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)]['UNIVER_DOC']),this['_univerInstanceService'][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0xf2)]),this[_0x3f0af9(0x171)][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x3b5)]),this[_0x3f0af9(0x171)]['getTypeOfUnitDisposed$'](_0x17ede7[_0x3f0af9(0x1c0)]['UNIVER_BASE']),this[_0x3f0af9(0x171)][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x1ce)]))[_0x3f0af9(0x2bf)]((0x0,_0x1f9457['takeUntil'])(this[_0x3f0af9(0x2cf)]))[_0x3f0af9(0x3bf)](_0x5c9017=>{const _0x2fe97b=_0x3f0af9;let _0x3bb2e8=_0x5c9017[_0x2fe97b(0x204)](),_0xfe9a11=this[_0x2fe97b(0x34b)][_0x2fe97b(0x3af)](_0x3bb2e8);_0xfe9a11&&(_0xfe9a11[_0x2fe97b(0x335)](),this[_0x2fe97b(0x34b)]['delete'](_0x3bb2e8));});}async[_0x473efc(0x119)](_0x4b5798,_0x12f2c3){const _0x511bc8=_0x473efc;let _0x3b5d58=await this[_0x511bc8(0x219)][_0x511bc8(0x1ec)](_0x4b5798),_0x5f138d=this[_0x511bc8(0x28c)][_0x511bc8(0x172)](this[_0x511bc8(0x23f)](_0x12f2c3),_0x4b5798,_0x12f2c3,_0x3b5d58);return await _0x5f138d[_0x511bc8(0x233)](),this[_0x511bc8(0x3b6)]['next'](_0x5f138d),_0x5f138d;}['_getCtorByUniverInstanceType'](_0x2afb70){const _0x5bf8ab=_0x473efc;switch(_0x2afb70){case _0x17ede7[_0x5bf8ab(0x1c0)][_0x5bf8ab(0x399)]:return _0x5a3607;case _0x17ede7['UniverInstanceType']['UNIVER_SHEET']:return _0x399b0b;case _0x17ede7[_0x5bf8ab(0x1c0)][_0x5bf8ab(0xf2)]:return _0x7459fd;case _0x17ede7[_0x5bf8ab(0x1c0)][_0x5bf8ab(0x3b5)]:return _0x28070e;case _0x17ede7['UniverInstanceType']['UNIVER_BASE']:return _0x1cfeae;case _0x17ede7[_0x5bf8ab(0x1c0)]['UNIVER_PDF']:return _0x30dd3f;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2afb70);}}};_0x5ea503=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x40f859)),_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x3,_0x17ede7[_0x473efc(0x2c6)])],_0x5ea503);var _0x1f67f4='@univerjs-pro/collaboration-client',_0x27bebf='1.0.0-beta.1';let _0x1b4eea=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x185156,_0x29b415){const _0x65d426=_0x473efc;super(),this[_0x65d426(0x171)]=_0x185156,this[_0x65d426(0x414)]=_0x29b415,this[_0x65d426(0x215)]();}[_0x473efc(0x215)](){const _0x581b93=_0x473efc;this['disposeWithMe'](this[_0x581b93(0x171)][_0x581b93(0x247)]['subscribe'](()=>{const _0xad1d03=_0x581b93;let _0x30b830=this[_0xad1d03(0x171)][_0xad1d03(0x24e)](),_0x25344b=this[_0xad1d03(0x414)][_0xad1d03(0x205)](_0xad1d03(0x15d))??'Univer';_0x30b830 instanceof _0x17ede7['Workbook']&&(_0x25344b=_0x30b830[_0xad1d03(0x40d)]),document[_0xad1d03(0x1d4)]=_0x25344b;}));}};_0x1b4eea=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x1,_0x17ede7['IConfigService'])],_0x1b4eea);let _0x189025=(0x0,_0x17ede7[_0x473efc(0x1cb)])('base-ui.attachment-io.service'),_0x5b01a0=class{constructor(_0x548094,_0x4bf46c,_0x29a414){const _0x569f9b=_0x473efc;this[_0x569f9b(0x2b0)]=_0x548094,this[_0x569f9b(0x414)]=_0x4bf46c,this[_0x569f9b(0x171)]=_0x29a414;}[_0x473efc(0x326)](){const _0x6c66af=_0x473efc;return this[_0x6c66af(0x106)]()[_0x6c66af(0x113)]??{};}async[_0x473efc(0x17a)](_0x509dcf){const _0x2e47fc=_0x473efc;let _0x13b481=this[_0x2e47fc(0x326)]();if(_0x1c2984(_0x509dcf,_0x13b481),_0x13b481[_0x2e47fc(0x18b)])return _0x13b481['upload'](_0x509dcf);let _0x38ad7c=await this[_0x2e47fc(0x306)](_0x509dcf);return{'id':_0x38ad7c,'name':_0x509dcf[_0x2e47fc(0x40d)],'mimeType':_0x509dcf['type'],'size':_0x509dcf[_0x2e47fc(0x3c9)],'sourceType':_0x17ede7['ImageSourceType'][_0x2e47fc(0x2aa)],'source':_0x38ad7c};}async[_0x473efc(0x21d)](_0x15dbbd,_0x3ea9c4){const _0x3206cb=_0x473efc;if(_0x3ea9c4!==_0x17ede7['ImageSourceType']['UUID'])return _0x15dbbd;let _0x4d4349=(await this[_0x3206cb(0x2b0)][_0x3206cb(0x3af)](this[_0x3206cb(0x170)]()[_0x3206cb(0x1fe)](_0x3206cb(0x11b),_0x15dbbd)))[_0x3206cb(0xc9)];if(_0x4d4349['error']&&_0x4d4349[_0x3206cb(0x3e6)]['code']!==_0x3d2f85[_0x3206cb(0x135)]['OK'])throw _0x4d4349[_0x3206cb(0x3e6)];if(!_0x4d4349['url'])throw Error(_0x3206cb(0x150));return(0x0,_0x17ede7[_0x3206cb(0x2db)])(_0x4d4349[_0x3206cb(0x38a)],this['_getDownloadEndpointURL']());}async['_upload'](_0x535686){const _0x2d71dd=_0x473efc;let _0x562802=this[_0x2d71dd(0x171)][_0x2d71dd(0x24e)](),_0x1cd9e5=_0x562802==null?void 0x0:_0x562802[_0x2d71dd(0x204)]();if(!_0x1cd9e5)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x41f97a=new FormData();_0x41f97a[_0x2d71dd(0x10a)](_0x2d71dd(0x280),_0x535686);let _0x15481f=this[_0x2d71dd(0x277)]()+'?size='+_0x535686['size']['toString']()+_0x2d71dd(0x33d)+_0x3d2f85['FileSource'][_0x2d71dd(0xe9)]+_0x2d71dd(0x252)+encodeURIComponent(_0x1cd9e5),_0x2f132d=(await this['_httpService'][_0x2d71dd(0x315)](_0x15481f,{'body':_0x41f97a}))[_0x2d71dd(0xc9)][_0x2d71dd(0x1e2)];if(typeof _0x2f132d!='string'||!_0x2f132d)throw Error(_0x2d71dd(0x321));return _0x2f132d;}[_0x473efc(0x277)](){const _0x5ae96c=_0x473efc;return this[_0x5ae96c(0x106)]()[_0x5ae96c(0x2a1)]??_0x5ae96c(0x2e3);}[_0x473efc(0x170)](){const _0xff2253=_0x473efc;return this[_0xff2253(0x106)]()[_0xff2253(0x18d)]??_0xff2253(0x2f6);}[_0x473efc(0x398)](){const _0x52c151=_0x473efc;let _0x2b6aad=this[_0x52c151(0x106)]();return _0x2b6aad[_0x52c151(0x12c)]?_0x2b6aad['downloadEndpointUrl']:typeof location<'u'?location['origin']:_0x2b6aad[_0x52c151(0x2a1)]??'';}['_getConfig'](){const _0x3bafe1=_0x473efc;return this[_0x3bafe1(0x414)][_0x3bafe1(0x205)](_0x3bafe1(0x310))??{};}};_0x5b01a0=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7['Inject'])(_0x4bbb37[_0x473efc(0x1f7)])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x201)])),_0x9a3e23(0x2,(0x0,_0x17ede7['Inject'])(_0x17ede7['IUniverInstanceService']))],_0x5b01a0);function _0x1c2984(_0x300911,_0x161ccd){const _0x58a2a1=_0x473efc;var _0xb9d415;if(_0x161ccd[_0x58a2a1(0x39a)]!=null&&_0x300911[_0x58a2a1(0x3c9)]>_0x161ccd[_0x58a2a1(0x39a)])throw Error(_0x58a2a1(0x10d));if((_0xb9d415=_0x161ccd[_0x58a2a1(0x2bb)])!=null&&_0xb9d415[_0x58a2a1(0x2b6)]&&!_0x161ccd[_0x58a2a1(0x2bb)][_0x58a2a1(0x26a)](_0x2920de=>_0x300911[_0x58a2a1(0x3d5)]===_0x2920de||_0x300911[_0x58a2a1(0x40d)][_0x58a2a1(0x3e5)](_0x2920de)||_0x2920de[_0x58a2a1(0x3e5)]('/*')&&_0x300911[_0x58a2a1(0x3d5)][_0x58a2a1(0x1b0)](_0x2920de[_0x58a2a1(0xd2)](0x0,-0x1))))throw Error(_0x58a2a1(0x251));}let _0x3780cb=class{constructor(_0x122684,_0x564e0e,_0x3c4449){const _0x77109d=_0x473efc;this[_0x77109d(0x414)]=_0x122684,this[_0x77109d(0x2b0)]=_0x564e0e,this[_0x77109d(0x294)]=_0x3c4449,this['init']();}[_0x473efc(0x233)](){const _0x16856e=_0x473efc;this[_0x16856e(0x2b0)][_0x16856e(0x36a)]({'priority':0x1,'interceptor':(_0x35bb00,_0x1ee959)=>_0x1ee959(_0x35bb00)[_0x16856e(0x2bf)]((0x0,_0x1f9457[_0x16856e(0x2b7)])(async _0x5925c2=>{const _0x232d77=_0x16856e;let _0x5b3ed2=_0x5925c2;if(_0x5b3ed2['status']===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x232d77(0x148)](this[_0x232d77(0x294)]['t'](_0x232d77(0x103)))){let _0x1b0fde=window[_0x232d77(0x3f9)](window[_0x232d77(0x3ea)][_0x232d77(0x374)]);window[_0x232d77(0x3ea)][_0x232d77(0x374)]=this[_0x232d77(0x2d7)]()+_0x232d77(0x275)+_0x1b0fde;}}return _0x5b3ed2;}))});}[_0x473efc(0x2d7)](){const _0x205b4c=_0x473efc;let _0x35d4af=this['_configService']['getConfig'](_0x1f8831);return(_0x35d4af==null?void 0x0:_0x35d4af[_0x205b4c(0x19f)])??_0x205b4c(0xff);}};_0x3780cb=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x1,(0x0,_0x17ede7['Inject'])(_0x4bbb37['HTTPService'])),_0x9a3e23(0x2,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x10e)]))],_0x3780cb);let _0x172c09=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x27ed26,_0x492dea){const _0x160d44=_0x473efc;super(),this[_0x160d44(0x2e4)]=_0x27ed26,this['_configService']=_0x492dea,_0x17f3d2(this,_0x160d44(0x126),!0x1),this[_0x160d44(0x368)]();}['_initMergeInterceptor'](){const _0x489eb2=_0x473efc;let _0x1fb9e2=this;this['disposeWithMe'](this[_0x489eb2(0x2e4)][_0x489eb2(0x36a)]({'priority':0x3e7,'interceptor':(0x0,_0x4bbb37[_0x489eb2(0x3ed)])({'isMatch'(_0x54d35c){const _0x14200c=_0x489eb2;var _0x17ae4f;if(_0x54d35c[_0x14200c(0xd6)]===_0x14200c(0x22b)&&(_0x17ae4f=_0x54d35c[_0x14200c(0x1cd)])!=null&&_0x17ae4f[_0x14200c(0xc9)]){let {objectID:_0x1f99ff,objectType:_0x284927}=_0x54d35c['requestParams'][_0x14200c(0xc9)]||{};if(!_0x1f99ff||_0x284927===void 0x0)return!0x1;let _0x43b78a=_0x1fb9e2[_0x14200c(0x24c)]()+'/'+_0x284927+_0x14200c(0x1a0)+_0x1f99ff+_0x14200c(0x3ab);if(_0x54d35c[_0x14200c(0x38a)]===_0x43b78a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x12d105){const _0x1b13fa=_0x489eb2;var _0x171b82;return(_0x171b82=_0x12d105[_0x1b13fa(0x1cd)])==null?void 0x0:_0x171b82[_0x1b13fa(0xc9)];},'mergeParamsToRequest'(_0x1636db,_0x582c59){const _0x264554=_0x489eb2;let _0xf7dbad=_0x1fb9e2[_0x264554(0x24c)]()+'/-/object/-/batch_allowed',_0x461b29=_0x1636db[_0x264554(0x3dc)]((_0x3b068d,_0x511023)=>{const _0x36d15b=_0x264554;let {unitID:_0x22c937,objectID:_0x49abb5,objectType:_0x3e77c4,actions:_0x5cd039}=_0x511023;return _0x3b068d[_0x22c937]||(_0x3b068d[_0x22c937]={}),_0x3b068d[_0x22c937][_0x49abb5]||(_0x3b068d[_0x22c937][_0x49abb5]={'objectID':_0x49abb5,'objectType':_0x3e77c4,'actions':[]}),_0x3b068d[_0x22c937][_0x49abb5][_0x36d15b(0x1a8)][_0x36d15b(0x283)](..._0x5cd039),_0x3b068d;},{}),_0x2f4181=[];for(let _0x197288 in _0x461b29)for(let _0x59d232 in _0x461b29[_0x197288]){let {actions:_0x57e969,objectType:_0x5af4cf}=_0x461b29[_0x197288][_0x59d232],_0x16f16c=[...new Set(_0x57e969)];_0x2f4181[_0x264554(0x283)]({'unitID':_0x197288,'objectID':_0x59d232,'objectType':_0x5af4cf,'actions':_0x16f16c});}return new _0x4bbb37[(_0x264554(0x238))]('POST',_0xf7dbad,{'headers':_0x582c59[_0x264554(0x3d7)],'withCredentials':_0x582c59[_0x264554(0xf0)],'responseType':_0x582c59[_0x264554(0x261)],'body':{'requests':_0x2f4181}});}},{'distributeResult'(_0x37c920,_0x534cfa){const _0x3212ce=_0x489eb2;let {objectActions:_0xd78e01}=_0x37c920;return _0x534cfa[_0x3212ce(0xfb)](_0xd2fed1=>{const _0x49cb75=_0x3212ce;let {unitID:_0x1f1682,objectID:_0x22183a,actions:_0x4a1ecc}=_0xd2fed1,_0x517583=_0xd78e01[_0x49cb75(0x14e)](_0x249508=>_0x249508[_0x49cb75(0xec)]===_0x1f1682&&_0x249508[_0x49cb75(0x1b3)]===_0x22183a);return{'config':_0xd2fed1,'result':{'actions':_0x4a1ecc['map'](_0x1e7483=>_0x517583==null?void 0x0:_0x517583['actions'][_0x49cb75(0x14e)](_0x53ca73=>_0x53ca73[_0x49cb75(0x18a)]===_0x1e7483))[_0x49cb75(0x30e)](_0x236530=>!!_0x236530),'error':_0x37c920[_0x49cb75(0x3e6)]}};});}})}));}[_0x473efc(0x24c)](){const _0x4cde9a=_0x473efc;let _0x555b1d=this[_0x4cde9a(0x414)]['getConfig'](_0x1f8831);return(_0x555b1d==null?void 0x0:_0x555b1d['authzUrl'])??_0x4cde9a(0x15e);}async[_0x473efc(0x33b)](_0x2a2c30){const _0x3ac798=_0x473efc;let _0x51d829=this['_getAPIPrefixPath']()+'/'+_0x2a2c30[_0x3ac798(0x380)]+_0x3ac798(0x3f7);return(await this[_0x3ac798(0x2e4)]['post'](_0x51d829,{'body':_0x2a2c30}))[_0x3ac798(0xc9)][_0x3ac798(0x1b3)]||'';}async[_0x473efc(0x26e)](_0x13c8c7){const _0xbc62a0=_0x473efc;let _0x6e281a=this[_0xbc62a0(0x24c)]()+_0xbc62a0(0x370);return(await this[_0xbc62a0(0x2e4)][_0xbc62a0(0x315)](_0x6e281a,{'body':_0x13c8c7}))['body'][_0xbc62a0(0x2cd)];}async[_0x473efc(0x269)](_0xd3d8f0){const _0xfd2af1=_0x473efc;var _0x48f03d;let _0x161969=this[_0xfd2af1(0x24c)]()+'/'+_0xd3d8f0[_0xfd2af1(0x380)]+_0xfd2af1(0x1a0)+_0xd3d8f0[_0xfd2af1(0x1b3)],_0xbcf271=await this[_0xfd2af1(0x2e4)][_0xfd2af1(0xfc)](_0x161969,{'body':_0xd3d8f0});if((_0xbcf271==null||(_0x48f03d=_0xbcf271[_0xfd2af1(0xc9)])==null||(_0x48f03d=_0x48f03d[_0xfd2af1(0x3e6)])==null?void 0x0:_0x48f03d[_0xfd2af1(0x3e1)])!==0x1)throw Error(_0xfd2af1(0x311));}async[_0x473efc(0x2a9)](_0xbe1fea){const _0x1c01c5=_0x473efc;let _0x1d0a62=this[_0x1c01c5(0x24c)]()+'/'+_0xbe1fea['objectType']+_0x1c01c5(0x1a0)+_0xbe1fea[_0x1c01c5(0x1b3)]+_0x1c01c5(0x3ab);return(await this['_HTTPService'][_0x1c01c5(0x315)](_0x1d0a62,{'body':_0xbe1fea}))[_0x1c01c5(0xc9)][_0x1c01c5(0x1a8)];}async[_0x473efc(0x3ba)](_0x237a1){const _0x6bb217=_0x473efc;let _0x8d8423=this[_0x6bb217(0x24c)]()+_0x6bb217(0x337);return(await this[_0x6bb217(0x2e4)][_0x6bb217(0x315)](_0x8d8423,{'body':{'requests':_0x237a1}}))[_0x6bb217(0xc9)][_0x6bb217(0x405)];}async['listRoles'](_0x4963e1){const _0x588392=_0x473efc;let _0x23af02=this[_0x588392(0x24c)]()+'/'+_0x4963e1[_0x588392(0x380)]+_0x588392(0x24a),_0x1a56a1=await this['_HTTPService'][_0x588392(0x315)](_0x23af02,{'body':_0x4963e1});return{'roles':_0x1a56a1[_0x588392(0xc9)][_0x588392(0x1c4)],'actions':_0x1a56a1['body']['actions']};}async[_0x473efc(0x242)](_0x46eb05){const _0x4d0dc8=_0x473efc;let _0x3e3694=this[_0x4d0dc8(0x24c)]()+_0x4d0dc8(0xf3);await this[_0x4d0dc8(0x2e4)][_0x4d0dc8(0x2ce)](_0x3e3694,{'params':{'collaboratorID':_0x46eb05['collaboratorID'],'objectID':_0x46eb05[_0x4d0dc8(0x1b3)],'unitID':_0x46eb05[_0x4d0dc8(0xec)]}});}async[_0x473efc(0x3d3)](_0x52ab53){const _0x36d145=_0x473efc;let _0xf7d5aa=this[_0x36d145(0x24c)]()+_0x36d145(0xf3);await this[_0x36d145(0x2e4)][_0x36d145(0x128)](_0xf7d5aa,{'body':_0x52ab53});}async['createCollaborator'](_0x20f5b7){const _0x3439bb=_0x473efc;let _0x30882b=this[_0x3439bb(0x24c)]()+'/collaborator';await this['_HTTPService']['post'](_0x30882b,{'body':_0x20f5b7});}async[_0x473efc(0xf4)](_0x540506){const _0x5e6ad0=_0x473efc;let _0x486f63=this[_0x5e6ad0(0x24c)]()+_0x5e6ad0(0xf3),_0x3fa609=await this['_HTTPService'][_0x5e6ad0(0x3af)](_0x486f63,{'params':{'objectID':_0x540506[_0x5e6ad0(0x1b3)],'unitID':_0x540506[_0x5e6ad0(0xec)]}});return this['setCfgEnableObjInherit'](_0x3fa609[_0x5e6ad0(0xc9)]['cfgEnableObjInherit']??!0x1),_0x3fa609[_0x5e6ad0(0xc9)]['collaborators'];}async[_0x473efc(0x1af)](_0x21b990){const _0x308be9=_0x473efc;let _0x456d2c=this[_0x308be9(0x24c)]()+_0x308be9(0xf3);await this[_0x308be9(0x2e4)][_0x308be9(0xfc)](_0x456d2c,{'body':_0x21b990});}[_0x473efc(0x346)](_0x594574){const _0x24d698=_0x473efc;this[_0x24d698(0x126)]=_0x594574;}[_0x473efc(0xd0)](){const _0x51a1e0=_0x473efc;return this[_0x51a1e0(0x126)];}};_0x172c09=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x4bbb37['HTTPService'])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x201)]))],_0x172c09);function _0x144df6(_0x167c42){const _0x5ebd49=_0x473efc;return _0x167c42 instanceof Uint8Array||ArrayBuffer[_0x5ebd49(0xd5)](_0x167c42)&&_0x167c42[_0x5ebd49(0x2c5)][_0x5ebd49(0x40d)]===_0x5ebd49(0x1b6)&&_0x5ebd49(0x13c)in _0x167c42&&_0x167c42[_0x5ebd49(0x13c)]===0x1;}function _0x55ea55(_0x177fd0){const _0x792eb3=_0x473efc;if(typeof _0x177fd0!=_0x792eb3(0x3cb))throw TypeError(_0x792eb3(0x130)+typeof _0x177fd0);if(!Number[_0x792eb3(0x131)](_0x177fd0)||_0x177fd0<0x0)throw RangeError(_0x792eb3(0x116)+_0x177fd0);}function _0x1ba694(_0x59b1f0,_0x5aa928,_0x578c11=''){const _0xc84493=_0x473efc;let _0x5147a4=_0x144df6(_0x59b1f0),_0x3cfbf7=_0x59b1f0==null?void 0x0:_0x59b1f0['length'],_0x32e6a2=_0x5aa928!==void 0x0;if(!_0x5147a4||_0x32e6a2&&_0x3cfbf7!==_0x5aa928){let _0x2c53c9=_0x578c11&&'\x22'+_0x578c11+'\x22\x20',_0xb8273d=_0x32e6a2?'\x20of\x20length\x20'+_0x5aa928:'',_0x4b46db=_0x5147a4?_0xc84493(0x1d7)+_0x3cfbf7:_0xc84493(0x357)+typeof _0x59b1f0,_0x1a3b4b=_0x2c53c9+_0xc84493(0x1d5)+_0xb8273d+_0xc84493(0x2ee)+_0x4b46db;throw _0x5147a4?RangeError(_0x1a3b4b):TypeError(_0x1a3b4b);}return _0x59b1f0;}function _0x41c118(_0x46e33b){const _0x5e64e6=_0x473efc;return new Uint32Array(_0x46e33b[_0x5e64e6(0x285)],_0x46e33b['byteOffset'],Math[_0x5e64e6(0x312)](_0x46e33b[_0x5e64e6(0x1ff)]/0x4));}function _0x2423b8(..._0x3b528a){const _0x4e20db=_0x473efc;for(let _0x1ff212=0x0;_0x1ff212<_0x3b528a[_0x4e20db(0x2b6)];_0x1ff212++)_0x3b528a[_0x1ff212]['fill'](0x0);}let _0x55f104=new Uint8Array(new Uint32Array([0x11223344])[_0x473efc(0x285)])[0x0]===0x44,_0x490465=_0x303280=>_0x303280<<0x18&0xff000000|_0x303280<<0x8&0xff0000|_0x303280>>>0x8&0xff00|_0x303280>>>0x18&0xff,_0x4bff9e=_0x55f104?_0x2b632e=>_0x2b632e:_0x56a366=>{const _0x190cc8=_0x473efc;for(let _0x31d1b7=0x0;_0x31d1b7<_0x56a366[_0x190cc8(0x2b6)];_0x31d1b7++)_0x56a366[_0x31d1b7]=_0x490465(_0x56a366[_0x31d1b7]);return _0x56a366;};function _0x1838a9(_0x217941){const _0x49ea81=_0x473efc;if(typeof _0x217941!=_0x49ea81(0x2fb))throw TypeError(_0x49ea81(0x177));return new Uint8Array(new TextEncoder()[_0x49ea81(0xf5)](_0x217941));}function _0x203c7a(_0x49d22f,_0x209b25){const _0x4283c9=_0x473efc;return!_0x49d22f[_0x4283c9(0x1ff)]||!_0x209b25[_0x4283c9(0x1ff)]?!0x1:_0x49d22f['buffer']===_0x209b25[_0x4283c9(0x285)]&&_0x49d22f['byteOffset']<_0x209b25[_0x4283c9(0x390)]+_0x209b25[_0x4283c9(0x1ff)]&&_0x209b25[_0x4283c9(0x390)]<_0x49d22f['byteOffset']+_0x49d22f['byteLength'];}function _0x36ea5f(_0xbe89af,_0x3ec588){const _0x3f0faf=_0x473efc;if(_0x203c7a(_0xbe89af,_0x3ec588)&&_0xbe89af[_0x3f0faf(0x390)]<_0x3ec588['byteOffset'])throw Error(_0x3f0faf(0x376));}function _0x58bcca(..._0x480888){const _0x522d3f=_0x473efc;let _0x1cb4f9=0x0;for(let _0x1f0cbe=0x0;_0x1f0cbe<_0x480888[_0x522d3f(0x2b6)];_0x1f0cbe++){let _0x4d6008=_0x480888[_0x1f0cbe];_0x1ba694(_0x4d6008),_0x1cb4f9+=_0x4d6008[_0x522d3f(0x2b6)];}let _0x20c616=new Uint8Array(_0x1cb4f9);for(let _0x161956=0x0,_0x24fc87=0x0;_0x161956<_0x480888[_0x522d3f(0x2b6)];_0x161956++){let _0x5d2b0c=_0x480888[_0x161956];_0x20c616[_0x522d3f(0x184)](_0x5d2b0c,_0x24fc87),_0x24fc87+=_0x5d2b0c[_0x522d3f(0x2b6)];}return _0x20c616;}let _0x50e0cb=(_0x40d5ee,_0x4e7ab3)=>{const _0x10151e=_0x473efc;function _0xe51498(_0x2831c6,..._0x71da69){const _0x23c7dd=_0x2dd0;if(_0x1ba694(_0x2831c6,void 0x0,_0x23c7dd(0x1b1)),_0x40d5ee[_0x23c7dd(0x34a)]!==void 0x0){let _0x469e10=_0x71da69[0x0];_0x1ba694(_0x469e10,_0x40d5ee[_0x23c7dd(0x32e)]?void 0x0:_0x40d5ee[_0x23c7dd(0x34a)],_0x23c7dd(0x23a));}let _0x4793f5=_0x40d5ee[_0x23c7dd(0x3fd)];_0x4793f5&&_0x71da69[0x1]!==void 0x0&&_0x1ba694(_0x71da69[0x1],void 0x0,_0x23c7dd(0x304));let _0x5c8477=_0x4e7ab3(_0x2831c6,..._0x71da69),_0x1f526b=(_0x4e7508,_0x4a0ba5)=>{const _0x263e3a=_0x23c7dd;if(_0x4a0ba5!==void 0x0){if(_0x4e7508!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x1ba694(_0x4a0ba5,void 0x0,_0x263e3a(0x353));}},_0x36d2fd=!0x1;return{'encrypt'(_0x57aa17,_0x1fb59b){const _0x564544=_0x23c7dd;if(_0x36d2fd)throw Error(_0x564544(0x1d3));return _0x36d2fd=!0x0,_0x1ba694(_0x57aa17),_0x1f526b(_0x5c8477[_0x564544(0x393)]['length'],_0x1fb59b),_0x5c8477[_0x564544(0x393)](_0x57aa17,_0x1fb59b);},'decrypt'(_0x3db4b5,_0x1c581d){const _0x3e8b18=_0x23c7dd;if(_0x1ba694(_0x3db4b5),_0x4793f5&&_0x3db4b5['length']<_0x4793f5)throw Error(_0x3e8b18(0x1f8)+_0x4793f5);return _0x1f526b(_0x5c8477[_0x3e8b18(0x245)][_0x3e8b18(0x2b6)],_0x1c581d),_0x5c8477[_0x3e8b18(0x245)](_0x3db4b5,_0x1c581d);}};}return Object[_0x10151e(0x1eb)](_0xe51498,_0x40d5ee),_0xe51498;};function _0x528a5f(_0x29cb40,_0x2b7e7f,_0x4efbaf=!0x0){const _0x4038d3=_0x473efc;if(_0x2b7e7f===void 0x0)return new Uint8Array(_0x29cb40);if(_0x1ba694(_0x2b7e7f,void 0x0,'output'),_0x2b7e7f[_0x4038d3(0x2b6)]!==_0x29cb40)throw Error('\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20'+_0x29cb40+_0x4038d3(0x1ed)+_0x2b7e7f[_0x4038d3(0x2b6)]);if(_0x4efbaf&&!_0x2adbb1(_0x2b7e7f))throw Error(_0x4038d3(0xee));return _0x2b7e7f;}function _0x2adbb1(_0x241dd0){const _0x50809d=_0x473efc;return _0x241dd0[_0x50809d(0x390)]%0x4==0x0;}function _0x7b02af(_0x22ac6b){return Uint8Array['from'](_0x1ba694(_0x22ac6b));}function _0x4d70c7(_0x2b7019=0x20){const _0x471242=_0x473efc;_0x55ea55(_0x2b7019);let _0x46ec17=typeof globalThis==_0x471242(0x3c6)?globalThis[_0x471242(0x292)]:null;if(typeof(_0x46ec17==null?void 0x0:_0x46ec17[_0x471242(0x26f)])!=_0x471242(0x1d0))throw Error(_0x471242(0xcd));return _0x46ec17['getRandomValues'](new Uint8Array(_0x2b7019));}function _0xf3b63d(_0x4d04ee){if(![0x10,0x18,0x20]['includes'](_0x4d04ee['length']))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x4d04ee['length']);}function _0x146f0f(_0x834536){return _0x834536<<0x1^0x11b&-(_0x834536>>0x7);}function _0x204d1d(_0x1e335b,_0x37e749){let _0x19c5b7=0x0;for(;_0x37e749>0x0;_0x37e749>>=0x1)_0x19c5b7^=_0x1e335b&-(_0x37e749&0x1),_0x1e335b=_0x146f0f(_0x1e335b);return _0x19c5b7;}let _0x145c08=((()=>{let _0x239b3f=new Uint8Array(0x100);for(let _0x3a4c25=0x0,_0xdb36d8=0x1;_0x3a4c25<0x100;_0x3a4c25++,_0xdb36d8^=_0x146f0f(_0xdb36d8))_0x239b3f[_0x3a4c25]=_0xdb36d8;let _0x227465=new Uint8Array(0x100);_0x227465[0x0]=0x63;for(let _0x53036b=0x0;_0x53036b<0xff;_0x53036b++){let _0x2b913f=_0x239b3f[0xff-_0x53036b];_0x2b913f|=_0x2b913f<<0x8,_0x227465[_0x239b3f[_0x53036b]]=(_0x2b913f^_0x2b913f>>0x4^_0x2b913f>>0x5^_0x2b913f>>0x6^_0x2b913f>>0x7^0x63)&0xff;}return _0x2423b8(_0x239b3f),_0x227465;})()),_0x2a7bfd=_0x145c08[_0x473efc(0xfb)]((_0x1ed0cf,_0x45cce0)=>_0x145c08[_0x473efc(0x2b8)](_0x45cce0)),_0x1e75a6=_0x576856=>_0x576856<<0x18|_0x576856>>>0x8,_0x1082eb=_0x491f16=>_0x491f16<<0x8|_0x491f16>>>0x18;function _0x4d27d8(_0x341a80,_0x34f778){const _0x5dd4f5=_0x473efc;if(_0x341a80[_0x5dd4f5(0x2b6)]!==0x100)throw Error('Wrong\x20sbox\x20length');let _0xf86595=new Uint32Array(0x100)[_0x5dd4f5(0xfb)]((_0x44523e,_0x2db47f)=>_0x34f778(_0x341a80[_0x2db47f])),_0x140141=_0xf86595[_0x5dd4f5(0xfb)](_0x1082eb),_0x28d5c0=_0x140141['map'](_0x1082eb),_0x599927=_0x28d5c0[_0x5dd4f5(0xfb)](_0x1082eb),_0x529695=new Uint32Array(0x100*0x100),_0x4004c4=new Uint32Array(0x100*0x100),_0x5287a1=new Uint16Array(0x100*0x100);for(let _0x24ee6f=0x0;_0x24ee6f<0x100;_0x24ee6f++)for(let _0x2f841e=0x0;_0x2f841e<0x100;_0x2f841e++){let _0x5e46c9=_0x24ee6f*0x100+_0x2f841e;_0x529695[_0x5e46c9]=_0xf86595[_0x24ee6f]^_0x140141[_0x2f841e],_0x4004c4[_0x5e46c9]=_0x28d5c0[_0x24ee6f]^_0x599927[_0x2f841e],_0x5287a1[_0x5e46c9]=_0x341a80[_0x24ee6f]<<0x8|_0x341a80[_0x2f841e];}return{'sbox':_0x341a80,'sbox2':_0x5287a1,'T0':_0xf86595,'T1':_0x140141,'T2':_0x28d5c0,'T3':_0x599927,'T01':_0x529695,'T23':_0x4004c4};}let _0x4bbc3b=_0x4d27d8(_0x145c08,_0x5a1f62=>_0x204d1d(_0x5a1f62,0x3)<<0x18|_0x5a1f62<<0x10|_0x5a1f62<<0x8|_0x204d1d(_0x5a1f62,0x2)),_0x4c301e=_0x4d27d8(_0x2a7bfd,_0x3bdf82=>_0x204d1d(_0x3bdf82,0xb)<<0x18|_0x204d1d(_0x3bdf82,0xd)<<0x10|_0x204d1d(_0x3bdf82,0x9)<<0x8|_0x204d1d(_0x3bdf82,0xe)),_0x57e723=((()=>{let _0x502a4b=new Uint8Array(0x10);for(let _0x3fcb94=0x0,_0x3cb262=0x1;_0x3fcb94<0x10;_0x3fcb94++,_0x3cb262=_0x146f0f(_0x3cb262))_0x502a4b[_0x3fcb94]=_0x3cb262;return _0x502a4b;})());function _0x2b9020(_0x4eadd5){const _0x4e67f7=_0x473efc;_0x1ba694(_0x4eadd5);let _0x3b7ad7=_0x4eadd5[_0x4e67f7(0x2b6)];_0xf3b63d(_0x4eadd5);let {sbox2:_0x55f77c}=_0x4bbc3b,_0x10de22=[];(!_0x55f104||!_0x2adbb1(_0x4eadd5))&&_0x10de22['push'](_0x4eadd5=_0x7b02af(_0x4eadd5));let _0x36f454=_0x4bff9e(_0x41c118(_0x4eadd5)),_0x5c5c77=_0x36f454[_0x4e67f7(0x2b6)],_0x5855ae=_0x2bd688=>_0x22d989(_0x55f77c,_0x2bd688,_0x2bd688,_0x2bd688,_0x2bd688),_0x25f121=new Uint32Array(_0x3b7ad7+0x1c);_0x25f121[_0x4e67f7(0x184)](_0x36f454);for(let _0x66a86e=_0x5c5c77;_0x66a86e<_0x25f121['length'];_0x66a86e++){let _0x538091=_0x25f121[_0x66a86e-0x1];_0x66a86e%_0x5c5c77===0x0?_0x538091=_0x5855ae(_0x1e75a6(_0x538091))^_0x57e723[_0x66a86e/_0x5c5c77-0x1]:_0x5c5c77>0x6&&_0x66a86e%_0x5c5c77===0x4&&(_0x538091=_0x5855ae(_0x538091)),_0x25f121[_0x66a86e]=_0x25f121[_0x66a86e-_0x5c5c77]^_0x538091;}return _0x2423b8(..._0x10de22),_0x25f121;}function _0x1682fa(_0x935716){const _0x63775c=_0x473efc;let _0x51a2ef=_0x2b9020(_0x935716),_0x1f63c9=_0x51a2ef[_0x63775c(0xd2)](),_0x3bd4a2=_0x51a2ef[_0x63775c(0x2b6)],{sbox2:_0x1cf0e5}=_0x4bbc3b,{T0:_0x17cf1a,T1:_0x4facb4,T2:_0x1b379b,T3:_0x10987d}=_0x4c301e;for(let _0x120d3f=0x0;_0x120d3f<_0x3bd4a2;_0x120d3f+=0x4)for(let _0x3f0c16=0x0;_0x3f0c16<0x4;_0x3f0c16++)_0x1f63c9[_0x120d3f+_0x3f0c16]=_0x51a2ef[_0x3bd4a2-_0x120d3f-0x4+_0x3f0c16];_0x2423b8(_0x51a2ef);for(let _0x59a4ee=0x4;_0x59a4ee<_0x3bd4a2-0x4;_0x59a4ee++){let _0x39784e=_0x1f63c9[_0x59a4ee],_0x317de6=_0x22d989(_0x1cf0e5,_0x39784e,_0x39784e,_0x39784e,_0x39784e);_0x1f63c9[_0x59a4ee]=_0x17cf1a[_0x317de6&0xff]^_0x4facb4[_0x317de6>>>0x8&0xff]^_0x1b379b[_0x317de6>>>0x10&0xff]^_0x10987d[_0x317de6>>>0x18];}return _0x1f63c9;}function _0x3c6194(_0x5a987a,_0x5ece1c,_0x41a0c6,_0x2f1c19,_0x436404,_0x266052){return _0x5a987a[_0x41a0c6<<0x8&0xff00|_0x2f1c19>>>0x8&0xff]^_0x5ece1c[_0x436404>>>0x8&0xff00|_0x266052>>>0x18&0xff];}function _0x22d989(_0x162cb7,_0x5769b9,_0x6445fb,_0x4ae97c,_0x58975b){return _0x162cb7[_0x5769b9&0xff|_0x6445fb&0xff00]|_0x162cb7[_0x4ae97c>>>0x10&0xff|_0x58975b>>>0x10&0xff00]<<0x10;}function _0x138c25(_0xf85c9b,_0x4a3529,_0xac3e35,_0xa332ac,_0x499a6b){let {sbox2:_0x306949,T01:_0x56541e,T23:_0x5c2e63}=_0x4bbc3b,_0xbaaed3=0x0;_0x4a3529^=_0xf85c9b[_0xbaaed3++],_0xac3e35^=_0xf85c9b[_0xbaaed3++],_0xa332ac^=_0xf85c9b[_0xbaaed3++],_0x499a6b^=_0xf85c9b[_0xbaaed3++];let _0x2e143c=_0xf85c9b['length']/0x4-0x2;for(let _0x1dc720=0x0;_0x1dc720<_0x2e143c;_0x1dc720++){let _0xfa3ca1=_0xf85c9b[_0xbaaed3++]^_0x3c6194(_0x56541e,_0x5c2e63,_0x4a3529,_0xac3e35,_0xa332ac,_0x499a6b),_0x51c09c=_0xf85c9b[_0xbaaed3++]^_0x3c6194(_0x56541e,_0x5c2e63,_0xac3e35,_0xa332ac,_0x499a6b,_0x4a3529),_0x3d2b1d=_0xf85c9b[_0xbaaed3++]^_0x3c6194(_0x56541e,_0x5c2e63,_0xa332ac,_0x499a6b,_0x4a3529,_0xac3e35),_0x4a4fce=_0xf85c9b[_0xbaaed3++]^_0x3c6194(_0x56541e,_0x5c2e63,_0x499a6b,_0x4a3529,_0xac3e35,_0xa332ac);_0x4a3529=_0xfa3ca1,_0xac3e35=_0x51c09c,_0xa332ac=_0x3d2b1d,_0x499a6b=_0x4a4fce;}return{'s0':_0xf85c9b[_0xbaaed3++]^_0x22d989(_0x306949,_0x4a3529,_0xac3e35,_0xa332ac,_0x499a6b),'s1':_0xf85c9b[_0xbaaed3++]^_0x22d989(_0x306949,_0xac3e35,_0xa332ac,_0x499a6b,_0x4a3529),'s2':_0xf85c9b[_0xbaaed3++]^_0x22d989(_0x306949,_0xa332ac,_0x499a6b,_0x4a3529,_0xac3e35),'s3':_0xf85c9b[_0xbaaed3++]^_0x22d989(_0x306949,_0x499a6b,_0x4a3529,_0xac3e35,_0xa332ac)};}function _0x30e2c1(_0x4959c5,_0x647bfe,_0xe82bed,_0x165983,_0x1839db){const _0x16add1=_0x473efc;let {sbox2:_0x2ed5b2,T01:_0x354bec,T23:_0x2b852f}=_0x4c301e,_0x1a57cd=0x0;_0x647bfe^=_0x4959c5[_0x1a57cd++],_0xe82bed^=_0x4959c5[_0x1a57cd++],_0x165983^=_0x4959c5[_0x1a57cd++],_0x1839db^=_0x4959c5[_0x1a57cd++];let _0x3e40eb=_0x4959c5[_0x16add1(0x2b6)]/0x4-0x2;for(let _0x587534=0x0;_0x587534<_0x3e40eb;_0x587534++){let _0x192f2f=_0x4959c5[_0x1a57cd++]^_0x3c6194(_0x354bec,_0x2b852f,_0x647bfe,_0x1839db,_0x165983,_0xe82bed),_0x28aad4=_0x4959c5[_0x1a57cd++]^_0x3c6194(_0x354bec,_0x2b852f,_0xe82bed,_0x647bfe,_0x1839db,_0x165983),_0xae36f=_0x4959c5[_0x1a57cd++]^_0x3c6194(_0x354bec,_0x2b852f,_0x165983,_0xe82bed,_0x647bfe,_0x1839db),_0x381c70=_0x4959c5[_0x1a57cd++]^_0x3c6194(_0x354bec,_0x2b852f,_0x1839db,_0x165983,_0xe82bed,_0x647bfe);_0x647bfe=_0x192f2f,_0xe82bed=_0x28aad4,_0x165983=_0xae36f,_0x1839db=_0x381c70;}return{'s0':_0x4959c5[_0x1a57cd++]^_0x22d989(_0x2ed5b2,_0x647bfe,_0x1839db,_0x165983,_0xe82bed),'s1':_0x4959c5[_0x1a57cd++]^_0x22d989(_0x2ed5b2,_0xe82bed,_0x647bfe,_0x1839db,_0x165983),'s2':_0x4959c5[_0x1a57cd++]^_0x22d989(_0x2ed5b2,_0x165983,_0xe82bed,_0x647bfe,_0x1839db),'s3':_0x4959c5[_0x1a57cd++]^_0x22d989(_0x2ed5b2,_0x1839db,_0x165983,_0xe82bed,_0x647bfe)};}function _0x2c3ff3(_0x161692){const _0x9bf6cb=_0x473efc;if(_0x1ba694(_0x161692),_0x161692[_0x9bf6cb(0x2b6)]%0x10!=0x0)throw Error(_0x9bf6cb(0x2fc));}function _0x57580a(_0x4a5a32,_0x3d2dbc,_0x29df4a){const _0x53b9f9=_0x473efc;_0x1ba694(_0x4a5a32);let _0x4bd699=_0x4a5a32[_0x53b9f9(0x2b6)],_0x4c94c5=_0x4bd699%0x10;if(!_0x3d2dbc&&_0x4c94c5!==0x0)throw Error(_0x53b9f9(0x144));if(_0x3d2dbc){let _0x490ada=0x10-_0x4c94c5;_0x490ada||=0x10,_0x4bd699+=_0x490ada;}_0x29df4a=_0x528a5f(_0x4bd699,_0x29df4a),_0x36ea5f(_0x4a5a32,_0x29df4a),(!_0x55f104||!_0x2adbb1(_0x4a5a32))&&(_0x4a5a32=_0x7b02af(_0x4a5a32));let _0x38f31c=_0x41c118(_0x4a5a32);return _0x4bff9e(_0x38f31c),{'b':_0x38f31c,'o':_0x41c118(_0x29df4a),'out':_0x29df4a};}function _0x3a3f1b(_0x489fe8,_0x2ec616){const _0x5c5370=_0x473efc;if(!_0x2ec616)return _0x489fe8;let _0xd1238d=_0x489fe8[_0x5c5370(0x2b6)];if(_0xd1238d===0x0)throw Error(_0x5c5370(0x25d));let _0x226c05=_0x489fe8[_0xd1238d-0x1],_0x2774a7=0x1;_0x2774a7&=_0x226c05-0x1>>>0x1f^0x1,_0x2774a7&=0x10-_0x226c05>>>0x1f^0x1;for(let _0x17b7d2=0x0;_0x17b7d2<0x10;_0x17b7d2++){let _0x1252dd=_0x17b7d2-_0x226c05>>>0x1f,_0x4a9b66=+((_0x489fe8[_0xd1238d-0x1-_0x17b7d2]^_0x226c05)===0x0);_0x2774a7&=_0x4a9b66|_0x1252dd^0x1;}if(!_0x2774a7)throw Error(_0x5c5370(0x2fa));return _0x489fe8[_0x5c5370(0x17b)](0x0,_0xd1238d-_0x226c05);}function _0x50fb98(_0x24b11e){const _0x312bf1=_0x473efc;let _0x2341b9=new Uint8Array(0x10),_0x939141=_0x41c118(_0x2341b9);_0x2341b9[_0x312bf1(0x184)](_0x24b11e);let _0x388e52=0x10-_0x24b11e[_0x312bf1(0x2b6)];for(let _0x2287cf=0x10-_0x388e52;_0x2287cf<0x10;_0x2287cf++)_0x2341b9[_0x2287cf]=_0x388e52;return _0x939141;}let _0x39eaa2=_0x50e0cb({'blockSize':0x10,'nonceLength':0x10},function(_0x58ecee,_0x169a80,_0x2604ab={}){const _0x1d98c7=_0x473efc;let _0x352aec=!_0x2604ab[_0x1d98c7(0x342)];return{'encrypt'(_0x100cf5,_0x256bae){const _0x2533ba=_0x1d98c7;let _0x351888=_0x2b9020(_0x58ecee),{b:_0x401b86,o:_0x36030e,out:_0x3a2383}=_0x57580a(_0x100cf5,_0x352aec,_0x256bae),_0x13e61d=_0x169a80,_0x2c963e=[_0x351888];(!_0x55f104||!_0x2adbb1(_0x13e61d))&&_0x2c963e[_0x2533ba(0x283)](_0x13e61d=_0x7b02af(_0x13e61d));let _0x1f39ec=_0x41c118(_0x13e61d);_0x4bff9e(_0x1f39ec);let _0x4d7f09=_0x1f39ec[0x0],_0x244d46=_0x1f39ec[0x1],_0x4f618d=_0x1f39ec[0x2],_0x19fd72=_0x1f39ec[0x3],_0x5a5c55=0x0;for(;_0x5a5c55+0x4<=_0x401b86['length'];)_0x4d7f09^=_0x401b86[_0x5a5c55+0x0],_0x244d46^=_0x401b86[_0x5a5c55+0x1],_0x4f618d^=_0x401b86[_0x5a5c55+0x2],_0x19fd72^=_0x401b86[_0x5a5c55+0x3],{s0:_0x4d7f09,s1:_0x244d46,s2:_0x4f618d,s3:_0x19fd72}=_0x138c25(_0x351888,_0x4d7f09,_0x244d46,_0x4f618d,_0x19fd72),_0x36030e[_0x5a5c55++]=_0x4d7f09,_0x36030e[_0x5a5c55++]=_0x244d46,_0x36030e[_0x5a5c55++]=_0x4f618d,_0x36030e[_0x5a5c55++]=_0x19fd72;if(_0x352aec){let _0xd6d791=_0x50fb98(_0x100cf5[_0x2533ba(0x17b)](_0x5a5c55*0x4));_0x4bff9e(_0xd6d791),_0x4d7f09^=_0xd6d791[0x0],_0x244d46^=_0xd6d791[0x1],_0x4f618d^=_0xd6d791[0x2],_0x19fd72^=_0xd6d791[0x3],{s0:_0x4d7f09,s1:_0x244d46,s2:_0x4f618d,s3:_0x19fd72}=_0x138c25(_0x351888,_0x4d7f09,_0x244d46,_0x4f618d,_0x19fd72),_0x36030e[_0x5a5c55++]=_0x4d7f09,_0x36030e[_0x5a5c55++]=_0x244d46,_0x36030e[_0x5a5c55++]=_0x4f618d,_0x36030e[_0x5a5c55++]=_0x19fd72;}return _0x4bff9e(_0x36030e),_0x2423b8(..._0x2c963e),_0x3a2383;},'decrypt'(_0x449926,_0x5d81b2){const _0x28f45a=_0x1d98c7;_0x2c3ff3(_0x449926);let _0x33da1f=_0x1682fa(_0x58ecee),_0x30ac64=_0x169a80,_0x24b137=[_0x33da1f];(!_0x55f104||!_0x2adbb1(_0x30ac64))&&_0x24b137['push'](_0x30ac64=_0x7b02af(_0x30ac64));let _0xdf1a1f=_0x41c118(_0x30ac64);_0x4bff9e(_0xdf1a1f),_0x5d81b2=_0x528a5f(_0x449926[_0x28f45a(0x2b6)],_0x5d81b2),_0x36ea5f(_0x449926,_0x5d81b2),(!_0x55f104||!_0x2adbb1(_0x449926))&&_0x24b137[_0x28f45a(0x283)](_0x449926=_0x7b02af(_0x449926));let _0x5a40fd=_0x41c118(_0x449926),_0xba52c6=_0x41c118(_0x5d81b2);_0x4bff9e(_0x5a40fd);let _0x33d514=_0xdf1a1f[0x0],_0x18031e=_0xdf1a1f[0x1],_0x592493=_0xdf1a1f[0x2],_0x5585d9=_0xdf1a1f[0x3];for(let _0x2194a7=0x0;_0x2194a7+0x4<=_0x5a40fd[_0x28f45a(0x2b6)];){let _0x5567ad=_0x33d514,_0x47e1fd=_0x18031e,_0x183e88=_0x592493,_0x1b0c28=_0x5585d9;_0x33d514=_0x5a40fd[_0x2194a7+0x0],_0x18031e=_0x5a40fd[_0x2194a7+0x1],_0x592493=_0x5a40fd[_0x2194a7+0x2],_0x5585d9=_0x5a40fd[_0x2194a7+0x3];let {s0:_0x1fc6c0,s1:_0x3841aa,s2:_0x571969,s3:_0x278b40}=_0x30e2c1(_0x33da1f,_0x33d514,_0x18031e,_0x592493,_0x5585d9);_0xba52c6[_0x2194a7++]=_0x1fc6c0^_0x5567ad,_0xba52c6[_0x2194a7++]=_0x3841aa^_0x47e1fd,_0xba52c6[_0x2194a7++]=_0x571969^_0x183e88,_0xba52c6[_0x2194a7++]=_0x278b40^_0x1b0c28;}return _0x4bff9e(_0xba52c6),_0x2423b8(..._0x24b137),_0x3a3f1b(_0x5d81b2,_0x352aec);}};});function _0x20a368(_0x1b0863){const _0x258990=_0x473efc;let _0x2cc921=atob(_0x1b0863),_0x14fec0=new Uint8Array(_0x2cc921['length']);for(let _0x2e25fd=0x0;_0x2e25fd<_0x2cc921[_0x258990(0x2b6)];_0x2e25fd++)_0x14fec0[_0x2e25fd]=_0x2cc921['charCodeAt'](_0x2e25fd);return _0x14fec0;}function _0x52bba5(_0x163007){const _0x37fd12=_0x473efc;let _0x1daa82='';for(let _0x39417f=0x0;_0x39417f<_0x163007[_0x37fd12(0x2b6)];_0x39417f++)_0x1daa82+=String[_0x37fd12(0x413)](_0x163007[_0x39417f]);return btoa(_0x1daa82);}function _0x312ee6(_0xc9252e,_0x1933e6){let _0x2d2c31=_0x20a368(_0x1933e6),_0xa267ca=_0x4d70c7(0x10);return _0x52bba5(_0x58bcca(_0xa267ca,_0x39eaa2(_0x2d2c31,_0xa267ca)['encrypt'](_0x1838a9(_0xc9252e))));}function _0x342257(){const _0x1dca38=_0x473efc;let _0x1decfd=(0x0,_0x90a78a[_0x1dca38(0x26d)])()[_0x1dca38(0x415)];if(typeof window<'u'&&window[_0x1dca38(0x3ea)]!==void 0x0&&_0x1decfd){let _0x18cea2={'time':Math['floor'](Date[_0x1dca38(0x319)]()/0x3e8),'domain':location['hostname']};return _0x312ee6(JSON[_0x1dca38(0x317)](_0x18cea2),_0x1decfd);}}let _0x69e359=class{constructor(_0x56a9ff){const _0x29a102=_0x473efc;this[_0x29a102(0x2b0)]=_0x56a9ff,this[_0x29a102(0xe0)]();}[_0x473efc(0xe0)](){const _0x40f0b0=_0x473efc;this[_0x40f0b0(0x2b0)][_0x40f0b0(0x36a)]({'interceptor':(_0x33d485,_0x1f5a10)=>{const _0x398c7d=_0x40f0b0;let _0x31383d=_0x342257();return _0x31383d&&_0x33d485[_0x398c7d(0x3d7)][_0x398c7d(0x184)](_0x398c7d(0xce),_0x31383d),_0x1f5a10(_0x33d485);}});}};_0x69e359=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7['Inject'])(_0x4bbb37[_0x473efc(0x1f7)]))],_0x69e359);let _0x21b227=class extends _0x17ede7[_0x473efc(0x1a3)]{constructor(_0x3660a4,_0x494fa2,_0x4169e){const _0x10ccc2=_0x473efc;super(),this[_0x10ccc2(0x309)]=_0x3660a4,this['_snapshotService']=_0x494fa2,this[_0x10ccc2(0x3d0)]=_0x4169e,_0x17f3d2(this,_0x10ccc2(0x322),new _0x1f9457[(_0x10ccc2(0x3c1))](null)),_0x17f3d2(this,_0x10ccc2(0x30a),new _0x1f9457[(_0x10ccc2(0x2d8))]()),_0x17f3d2(this,_0x10ccc2(0x34d),this['_unitInfo$']['asObservable']()),_0x17f3d2(this,_0x10ccc2(0x36e),this[_0x10ccc2(0x30a)]['asObservable']());}[_0x473efc(0x335)](){const _0x4d74ac=_0x473efc;super[_0x4d74ac(0x335)](),this[_0x4d74ac(0x30a)][_0x4d74ac(0x403)](),this[_0x4d74ac(0x322)][_0x4d74ac(0x403)]();}async[_0x473efc(0x159)](_0x3703a9,_0x45e106,_0x1b5171,_0x28d4d1){const _0x4c22c3=_0x473efc;this[_0x4c22c3(0x322)][_0x4c22c3(0x2f5)]({'unitId':_0x3703a9,'type':_0x45e106,'subUnitId':_0x28d4d1});let _0x16b31d=null;switch(_0x45e106){case _0x17ede7[_0x4c22c3(0x1c0)][_0x4c22c3(0x1bc)]:_0x16b31d=await this[_0x4c22c3(0x3df)][_0x4c22c3(0x3bc)](_0x3703a9,_0x1b5171,void 0x0,{'initialSubUnitId':_0x28d4d1});break;case _0x17ede7[_0x4c22c3(0x1c0)][_0x4c22c3(0x399)]:_0x16b31d=await this[_0x4c22c3(0x3df)][_0x4c22c3(0x30d)](_0x3703a9,_0x1b5171);break;case _0x17ede7[_0x4c22c3(0x1c0)]['UNIVER_SLIDE']:_0x16b31d=await this[_0x4c22c3(0x3df)][_0x4c22c3(0x3d8)](_0x3703a9,_0x1b5171);break;case _0x17ede7[_0x4c22c3(0x1c0)][_0x4c22c3(0x3b5)]:_0x16b31d=await this['_snapshotService'][_0x4c22c3(0x216)](_0x3703a9,_0x1b5171);break;case _0x17ede7[_0x4c22c3(0x1c0)]['UNIVER_BASE']:_0x16b31d=await this[_0x4c22c3(0x3df)][_0x4c22c3(0x3e2)](_0x3703a9,_0x1b5171);break;case _0x17ede7[_0x4c22c3(0x1c0)][_0x4c22c3(0x1ce)]:_0x16b31d=await this['_snapshotService'][_0x4c22c3(0x362)](_0x3703a9,_0x1b5171);break;default:this[_0x4c22c3(0x309)][_0x4c22c3(0x3e6)](_0x4c22c3(0x3c7),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x16b31d&&this[_0x4c22c3(0x30a)][_0x4c22c3(0x2f5)](_0x16b31d),_0x16b31d;}async[_0x473efc(0x316)](_0x4e54b0,_0x28d040,_0x36f111){const _0x26fd3c=_0x473efc;var _0xb1a57e;this[_0x26fd3c(0x322)][_0x26fd3c(0x2f5)]({'unitId':_0x4e54b0,'type':_0x28d040,'subUnitId':_0x36f111});let _0x2e9ee5=0x0,_0x162f2b=await((_0xb1a57e=this[_0x26fd3c(0x3d0)])==null?void 0x0:_0xb1a57e[_0x26fd3c(0x191)](_0x4e54b0));return _0x162f2b&&(_0x162f2b[_0x26fd3c(0x1da)]||_0x162f2b[_0x26fd3c(0x237)][_0x26fd3c(0x2b6)]!==0x0)&&(_0x2e9ee5=_0x162f2b[_0x26fd3c(0x21e)]),_0x2e9ee5===0x0&&this['_logService'][_0x26fd3c(0x2f9)](_0x26fd3c(0x3c7),_0x26fd3c(0x295)),this[_0x26fd3c(0x159)](_0x4e54b0,_0x28d040,_0x2e9ee5,_0x36f111);}};_0x21b227=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0x17c)])),_0x9a3e23(0x2,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x21b227);let _0x32adc1=class{constructor(_0x128b75,_0x531091,_0x2f2d4a){const _0xbeb160=_0x473efc;this['_httpService']=_0x128b75,this[_0xbeb160(0x414)]=_0x531091,this[_0xbeb160(0x171)]=_0x2f2d4a,_0x17f3d2(this,_0xbeb160(0x10f),0x0),_0x17f3d2(this,_0xbeb160(0x35b),new _0x1f9457[(_0xbeb160(0x2d8))]()),_0x17f3d2(this,'change$',this[_0xbeb160(0x35b)]),_0x17f3d2(this,_0xbeb160(0x264),new Map());}[_0x473efc(0xea)](_0x5cdb4f){const _0x5d1a02=_0x473efc;this[_0x5d1a02(0x10f)]=_0x5cdb4f,this[_0x5d1a02(0x35b)][_0x5d1a02(0x2f5)](_0x5cdb4f);}[_0x473efc(0x3fc)](_0x24914a,_0x12f890){const _0x2b88a6=_0x473efc;if(_0x12f890===_0x17ede7[_0x2b88a6(0x2b1)]['BASE64']){let _0x1b7093=new Image();return _0x1b7093[_0x2b88a6(0x1db)]=_0x24914a,_0x1b7093;}return this['_imageSourceCache']['get'](_0x24914a);}['addImageSourceCache'](_0x914f48,_0x566dc0,_0x1db682){const _0x3890ec=_0x473efc;_0x566dc0!==_0x17ede7[_0x3890ec(0x2b1)][_0x3890ec(0x361)]&&_0x1db682!=null&&this[_0x3890ec(0x264)]['set'](_0x914f48,_0x1db682);}async['getImage'](_0x12a7a6){const _0x2f2853=_0x473efc;try{let _0x1fd8c1=this['_replaceFileID'](this[_0x2f2853(0x170)](),''+_0x12a7a6),_0x2c17a4=(await this[_0x2f2853(0x2b0)]['get'](_0x1fd8c1))[_0x2f2853(0xc9)];if(_0x2c17a4[_0x2f2853(0x3e6)]&&_0x2c17a4[_0x2f2853(0x3e6)][_0x2f2853(0x3e1)]===_0x3d2f85[_0x2f2853(0x135)]['OK']){let _0x39ef6e=(0x0,_0x17ede7[_0x2f2853(0x2db)])(_0x2c17a4[_0x2f2853(0x38a)],this[_0x2f2853(0x398)]());return Promise[_0x2f2853(0x19b)](_0x39ef6e);}return Promise[_0x2f2853(0x3a2)](_0x2c17a4[_0x2f2853(0x3e6)]);}catch(_0x1eb487){return Promise['reject'](_0x1eb487);}}async[_0x473efc(0x314)](_0x9812ea){const _0xdaf9f2=_0x473efc;let _0x4a9298='';if(!_0x536602['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0xdaf9f2(0x218)](_0x9812ea['type']))return this['_decreaseWaiting'](),Promise['reject'](Error(_0x17ede7[_0xdaf9f2(0x23e)][_0xdaf9f2(0x27e)]));if(_0x9812ea['size']>(0x0,_0x536602['getDrawingImageAllowSize'])())return this[_0xdaf9f2(0x1a4)](),Promise[_0xdaf9f2(0x3a2)](Error(_0x17ede7[_0xdaf9f2(0x23e)][_0xdaf9f2(0x181)]));try{let _0x585a48=new FormData();_0x585a48[_0xdaf9f2(0x10a)](_0xdaf9f2(0x280),_0x9812ea);let _0x3a8296=this[_0xdaf9f2(0x171)]['getFocusedUnit'](),_0x5b9cd0=_0x3a8296==null?void 0x0:_0x3a8296[_0xdaf9f2(0x204)]();if(!_0x5b9cd0)throw Error(_0xdaf9f2(0x19d));let _0x5c09ac=this['_getUploadFileURL']()+_0xdaf9f2(0x223)+_0x9812ea[_0xdaf9f2(0x3c9)][_0xdaf9f2(0x202)]()+_0xdaf9f2(0x33d)+_0x3d2f85[_0xdaf9f2(0x156)]['UnitEmbedded']+_0xdaf9f2(0x252)+encodeURIComponent(_0x5b9cd0),_0x3be8b5={'body':_0x585a48},_0x570711=(await this[_0xdaf9f2(0x2b0)][_0xdaf9f2(0x315)](_0x5c09ac,_0x3be8b5))['body'];if(typeof _0x570711[_0xdaf9f2(0x1e2)]!=_0xdaf9f2(0x2fb))return this[_0xdaf9f2(0x1a4)](),Promise[_0xdaf9f2(0x3a2)](Error(_0x17ede7[_0xdaf9f2(0x23e)]['ERROR_IMAGE']));_0x4a9298=_0x570711[_0xdaf9f2(0x1e2)];}catch{return this[_0xdaf9f2(0x1a4)](),Promise['reject'](Error(_0x17ede7[_0xdaf9f2(0x23e)][_0xdaf9f2(0x1c6)]));}return new Promise((_0x41013c,_0x116ad8)=>{const _0x488e35=_0xdaf9f2;let _0x4633ef=new FileReader();_0x4633ef[_0x488e35(0x213)](_0x9812ea),_0x4633ef[_0x488e35(0x282)]=_0x220dc0=>{const _0x31031a=_0x488e35;var _0x267ee3;let _0x18d415=(_0x267ee3=_0x220dc0[_0x31031a(0x36c)])==null?void 0x0:_0x267ee3[_0x31031a(0x22d)];if(_0x18d415==null){this['_decreaseWaiting'](),_0x116ad8(Error(_0x17ede7['ImageUploadStatusType']['ERROR_IMAGE']));return;}_0x41013c({'imageId':(0x0,_0x17ede7['generateRandomId'])(0x6),'imageSourceType':_0x17ede7[_0x31031a(0x2b1)][_0x31031a(0x2aa)],'source':_0x4a9298,'base64Cache':_0x18d415,'status':_0x17ede7[_0x31031a(0x23e)][_0x31031a(0xd1)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x1fa5ea=_0x473efc;let _0x309816=this['_configService'][_0x1fa5ea(0x205)](_0x1f8831);return(_0x309816==null?void 0x0:_0x309816[_0x1fa5ea(0x2a1)])??_0x1fa5ea(0x2e3);}[_0x473efc(0x170)](){const _0xeddf37=_0x473efc;let _0x2971a6=this[_0xeddf37(0x414)][_0xeddf37(0x205)](_0x1f8831);return(_0x2971a6==null?void 0x0:_0x2971a6[_0xeddf37(0x18d)])??_0xeddf37(0x2f6);}['_getDownloadEndpointURL'](){const _0x46c433=_0x473efc;let _0x22a7b0=this[_0x46c433(0x414)][_0x46c433(0x205)](_0x1f8831);return(_0x22a7b0==null?void 0x0:_0x22a7b0[_0x46c433(0x12c)])??location[_0x46c433(0x14a)];}['_replaceFileID'](_0x5190c2,_0x475568){const _0x5b3359=_0x473efc;return _0x5190c2[_0x5b3359(0x1fe)](_0x5b3359(0x11b),_0x475568);}['_decreaseWaiting'](){const _0x81d9b6=_0x473efc;--this[_0x81d9b6(0x10f)],this[_0x81d9b6(0x35b)][_0x81d9b6(0x2f5)](this['_waitCount']);}};_0x32adc1=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x4bbb37[_0x473efc(0x1f7)])),_0x9a3e23(0x1,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x2,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['IUniverInstanceService']))],_0x32adc1);let _0x4ff04e=class{constructor(_0x55efc7,_0x1ae976){const _0x99c927=_0x473efc;this[_0x99c927(0x414)]=_0x55efc7,this[_0x99c927(0x2e4)]=_0x1ae976;}[_0x473efc(0x24c)](){const _0x594c81=_0x473efc;let _0x3210dc=this['_configService'][_0x594c81(0x205)](_0x1f8831);return(_0x3210dc==null?void 0x0:_0x3210dc['authzUrl'])??_0x594c81(0x15e);}async[_0x473efc(0x26e)](_0x4110dd){const _0xd0d643=_0x473efc;let _0x447e8b=this[_0xd0d643(0x24c)]()+'/collaborator';return{'list':[{'title':_0xd0d643(0x13b),'mentions':(await this[_0xd0d643(0x2e4)][_0xd0d643(0x3af)](_0x447e8b,{'params':{'objectID':_0x4110dd[_0xd0d643(0x298)],'unitID':_0x4110dd[_0xd0d643(0x298)]}}))[_0xd0d643(0xc9)][_0xd0d643(0x197)][_0xd0d643(0xfb)](_0x32014d=>({'objectId':_0x32014d['id'],'name':_0x32014d[_0xd0d643(0x3ac)]['name'],'metadata':{'icon':_0x32014d[_0xd0d643(0x3ac)][_0xd0d643(0x163)]},'label':_0x32014d[_0xd0d643(0x3ac)]['name'],'objectType':_0x17ede7['MentionType']['PERSON']})),'metadata':{},'type':_0x17ede7[_0xd0d643(0x3c8)][_0xd0d643(0x151)]}]};}};_0x4ff04e=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x201)])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x4bbb37[_0x473efc(0x1f7)]))],_0x4ff04e);let _0xd02bbe=class extends _0x17ede7[_0x473efc(0x1a3)]{constructor(_0x1d7244,_0x3136dc,_0x11f9ca,_0x2874e0,_0x1e42cb){const _0x74e549=_0x473efc;super(),this[_0x74e549(0x28c)]=_0x1d7244,this['_univerInstanceService']=_0x3136dc,this[_0x74e549(0x359)]=_0x11f9ca,this[_0x74e549(0x1f9)]=_0x2874e0,this['_collaborationUIEventService']=_0x1e42cb,this[_0x74e549(0x241)](),this[_0x74e549(0x254)]();}[_0x473efc(0x254)](){const _0x32cfa2=_0x473efc;let _0x227888=async _0x118026=>{const _0x15502b=_0x2dd0;(await this['_collaborationSessionService'][_0x15502b(0x1ec)](_0x118026))[_0x15502b(0x2be)]['pipe']((0x0,_0x1756fd[_0x15502b(0x30e)])(_0x335881=>_0x335881[_0x15502b(0x1fb)]===_0x3d4600[_0x15502b(0x350)]['SHOULD_CLOSE_CONN']),(0x0,_0x1756fd[_0x15502b(0x28a)])(this[_0x15502b(0x2cf)]))['subscribe'](_0x5b5414=>{const _0x294bb1=_0x15502b;let {reason:_0x1fcfab}=_0x5b5414[_0x294bb1(0x1ab)];this[_0x294bb1(0x1fd)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x1fcfab}),this[_0x294bb1(0x359)][_0x294bb1(0xd4)](new _0x43c3be[(_0x294bb1(0x400))](_0x118026)['id'],!0x1),this[_0x294bb1(0x1f9)][_0x294bb1(0x180)](_0x118026);});};(0x0,_0x1f9457[_0x32cfa2(0x1a2)])(this[_0x32cfa2(0x171)][_0x32cfa2(0x256)](_0x17ede7[_0x32cfa2(0x1c0)][_0x32cfa2(0x1bc)]),this['_univerInstanceService'][_0x32cfa2(0x256)](_0x17ede7[_0x32cfa2(0x1c0)]['UNIVER_DOC']),this[_0x32cfa2(0x171)]['getTypeOfUnitAdded$'](_0x17ede7['UniverInstanceType']['UNIVER_BOARD']),this[_0x32cfa2(0x171)][_0x32cfa2(0x256)](_0x17ede7[_0x32cfa2(0x1c0)][_0x32cfa2(0x3e8)]))['pipe']((0x0,_0x1756fd[_0x32cfa2(0xfb)])(_0x261b0c=>_0x261b0c[_0x32cfa2(0x3b2)][_0x32cfa2(0x204)]()),(0x0,_0x1756fd[_0x32cfa2(0x30e)])(_0x318aa1=>!(0x0,_0x17ede7[_0x32cfa2(0xf6)])(_0x318aa1)),(0x0,_0x1756fd[_0x32cfa2(0x28a)])(this['dispose$']))['subscribe'](_0x8b42e0=>{_0x227888(_0x8b42e0);});}[_0x473efc(0x241)](){const _0x3dee28=_0x473efc;let _0x452d7b=async _0x2349ee=>{const _0x3d7e1f=_0x2dd0;let _0x12ec12=await this[_0x3d7e1f(0x1f9)][_0x3d7e1f(0x1ec)](_0x2349ee),_0xe9a824=this['_injector']['get'](_0x43c3be['SheetPermissionInitController']);_0x12ec12[_0x3d7e1f(0x2be)][_0x3d7e1f(0x2bf)]((0x0,_0x1756fd[_0x3d7e1f(0x30e)])(_0x48cb3b=>_0x48cb3b[_0x3d7e1f(0x1fb)]===_0x3d4600['CollaborationEvent'][_0x3d7e1f(0x384)]),(0x0,_0x1756fd['takeUntil'])(this[_0x3d7e1f(0x2cf)]))[_0x3d7e1f(0x3bf)](_0xe1a68b=>{const _0x519b69=_0x3d7e1f;let {objectId:_0x33e5d9}=_0xe1a68b[_0x519b69(0x1ab)];_0x33e5d9===_0x2349ee?_0xe9a824['initWorkbookPermissionChange'](_0x2349ee):_0xe9a824[_0x519b69(0x257)](_0x2349ee,_0x33e5d9);});};(0x0,_0x1f9457[_0x3dee28(0x1a2)])(this['_univerInstanceService'][_0x3dee28(0x256)](_0x17ede7[_0x3dee28(0x1c0)][_0x3dee28(0x1bc)]))[_0x3dee28(0x2bf)]((0x0,_0x1756fd[_0x3dee28(0xfb)])(_0x4d6b07=>_0x4d6b07[_0x3dee28(0x3b2)]['getUnitId']()),(0x0,_0x1756fd[_0x3dee28(0x30e)])(_0x5139d6=>!(0x0,_0x17ede7['isInternalEditorID'])(_0x5139d6)),(0x0,_0x1756fd[_0x3dee28(0x28a)])(this[_0x3dee28(0x2cf)]))[_0x3dee28(0x3bf)](_0x3c2f96=>{_0x452d7b(_0x3c2f96);});}};_0xd02bbe=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x1,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x2,_0x17ede7['IPermissionService']),_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x40f859)),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce))],_0xd02bbe);let _0x338e48=class{constructor(_0x47b8c6,_0x40ee28){const _0x25f7df=_0x473efc;this[_0x25f7df(0x414)]=_0x47b8c6,this[_0x25f7df(0x2b0)]=_0x40ee28;}async[_0x473efc(0x243)](_0x487a61,_0x29a73c){const _0x3d7a38=_0x473efc;var _0x272394;let {unitID:_0xf52402,type:_0x4bfd3b,revision:_0x2f154a=0x0}=_0x29a73c,_0x2b94cd=this[_0x3d7a38(0x330)]()+'/'+_0x4bfd3b+_0x3d7a38(0x154)+_0xf52402+'/rev/'+_0x2f154a,_0x432a5c=(await this[_0x3d7a38(0x2b0)][_0x3d7a38(0x3af)](_0x2b94cd))['body'],_0x191c90=(_0x272394=_0x432a5c[_0x3d7a38(0x173)])==null?void 0x0:_0x272394['workbook'];if(_0x191c90){let _0x583919=_0x191c90==null?void 0x0:_0x191c90['originalMeta'];_0x191c90[_0x3d7a38(0x2df)]=_0x3d4600[_0x3d7a38(0x391)][_0x3d7a38(0xf5)]((0x0,_0x3d4600[_0x3d7a38(0x263)])(_0x583919)),Object[_0x3d7a38(0x347)](_0x191c90['sheets'])['forEach'](([,_0x2d248f])=>{const _0x26d47d=_0x3d7a38;let _0x1466fb=_0x2d248f[_0x26d47d(0x2df)];_0x2d248f[_0x26d47d(0x2df)]=_0x3d4600[_0x26d47d(0x391)][_0x26d47d(0xf5)]((0x0,_0x3d4600[_0x26d47d(0x263)])(_0x1466fb));});}return _0x432a5c;}async['getSheetBlock'](_0x5aaf09,_0xa8b6e9){const _0x8bdc3e=_0x473efc;let {unitID:_0x1ae252,type:_0x24163e,blockID:_0x369caa}=_0xa8b6e9,_0x5ba7f9=this[_0x8bdc3e(0x229)]()+'/'+_0x24163e+_0x8bdc3e(0x154)+_0x1ae252+_0x8bdc3e(0x3cf)+_0x369caa;return(await this['_httpService']['get'](_0x5ba7f9))[_0x8bdc3e(0xc9)];}async['getDeserializedSheetBlock'](_0x4fcc58,_0xe3d5f0){const _0xdea284=_0x473efc;let {unitID:_0x33c6b5,type:_0x32fadf,blockID:_0x4841ed}=_0xe3d5f0,_0x2fec38=this['_getAPIPrefix']()+_0xdea284(0x3cf)+_0x32fadf+_0xdea284(0x154)+_0x33c6b5+_0xdea284(0x3cf)+_0x4841ed;return(await this[_0xdea284(0x2b0)][_0xdea284(0x3af)](_0x2fec38))[_0xdea284(0xc9)];}async['fetchMissingChangesets'](_0x1ce4b5,_0x52f277){const _0x2b2ca8=_0x473efc;let {unitID:_0x1d04f7,type:_0x454d7d,from:_0xc4271e,to:_0x75d9ad}=_0x52f277,_0x4cfea3=this['_getAPIPrefix']()+'/'+_0x454d7d+_0x2b2ca8(0x154)+_0x1d04f7+_0x2b2ca8(0xe8)+_0xc4271e+_0x2b2ca8(0x149)+_0x75d9ad;return(await this['_httpService'][_0x2b2ca8(0x3af)](_0x4cfea3))[_0x2b2ca8(0xc9)];}[_0x473efc(0x330)](){const _0x2f93b1=_0x473efc;return this[_0x2f93b1(0x414)][_0x2f93b1(0x205)](_0x2f93b1(0x1b9))??this[_0x2f93b1(0x229)]();}[_0x473efc(0x229)](){const _0x79d02a=_0x473efc;let _0x376006=this[_0x79d02a(0x414)][_0x79d02a(0x205)](_0x1f8831);return(_0x376006==null?void 0x0:_0x376006['snapshotServerUrl'])??'/universer-api/snapshot';}async[_0x473efc(0x344)](_0x37a2aa,_0x4bf1d7){const _0xa470b7=_0x473efc;let _0x5d2feb=_0xa470b7(0x2f2)+_0x4bf1d7[_0xa470b7(0x3d5)]+_0xa470b7(0x154)+_0x4bf1d7[_0xa470b7(0xec)]+'/resources';return(await this[_0xa470b7(0x2b0)][_0xa470b7(0x3af)](_0x5d2feb,{'params':{'resourceId':JSON[_0xa470b7(0x317)](_0x4bf1d7['resourceIDs'])}}))['body'];}[_0x473efc(0x32c)](){const _0x365741=_0x473efc;throw Error(_0x365741(0x3fe));}[_0x473efc(0x2f4)](){const _0x7b0575=_0x473efc;throw Error(_0x7b0575(0x3fe));}[_0x473efc(0x136)](){const _0x46f5c0=_0x473efc;throw Error(_0x46f5c0(0x3fe));}[_0x473efc(0x293)](){const _0x1201fc=_0x473efc;throw Error(_0x1201fc(0x3fe));}[_0x473efc(0x3a7)](){const _0x17488b=_0x473efc;throw Error(_0x17488b(0x3fe));}[_0x473efc(0x3e9)](){const _0x12e888=_0x473efc;throw Error(_0x12e888(0x3fe));}};_0x338e48=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x1,(0x0,_0x17ede7['Inject'])(_0x4bbb37[_0x473efc(0x1f7)]))],_0x338e48);let _0x1219d4=class extends _0x17ede7[_0x473efc(0x16f)]{constructor(_0x34f8c9,_0x2165c7,_0x4e5f63,_0x4bb6f2,_0x4955a8,_0x595366){const _0x3238ab=_0x473efc;super(_0x34f8c9,_0x2165c7,_0x4e5f63,_0x4bb6f2),this['_transformService']=_0x4955a8,this[_0x3238ab(0x309)]=_0x595366;}[_0x473efc(0x3bd)](_0x22b2bf,_0x4211e6){const _0x164aea=_0x473efc;let _0x5e72aa=this[_0x164aea(0x164)](_0x22b2bf);if(_0x5e72aa)try{let _0x1ff5f1=this[_0x164aea(0x32f)](_0x5e72aa,_0x4211e6);this[_0x164aea(0xe7)](_0x22b2bf,_0x1ff5f1);}catch(_0x471c70){this[_0x164aea(0x309)][_0x164aea(0x3e6)]('[CollaborationUndoRedoService]',_0x471c70),this['_clearUndo'](_0x22b2bf);}let _0x3f3a6f=this[_0x164aea(0x127)](_0x22b2bf);if(_0x3f3a6f)try{let _0x221c46=this[_0x164aea(0x32f)](_0x3f3a6f,_0x4211e6);this[_0x164aea(0x3ee)](_0x22b2bf,_0x221c46);}catch(_0x37a2ef){this[_0x164aea(0x309)][_0x164aea(0x3e6)](_0x37a2ef),this[_0x164aea(0x3b0)](_0x22b2bf);}}[_0x473efc(0x2a3)](_0x14d411){const _0x5162af=_0x473efc;let _0x4bc224=this[_0x5162af(0x164)](_0x14d411);_0x4bc224&&(_0x4bc224[_0x5162af(0x2b6)]=0x0,this['_updateStatus']());}[_0x473efc(0x3b0)](_0x49de31){const _0x2d5a48=_0x473efc;let _0x293030=this[_0x2d5a48(0x127)](_0x49de31);_0x293030&&(_0x293030[_0x2d5a48(0x2b6)]=0x0,this[_0x2d5a48(0xc2)]());}[_0x473efc(0xe7)](_0x54eb4a,_0x133d8a){const _0x2059b2=_0x473efc;this[_0x2059b2(0x108)][_0x2059b2(0x184)](_0x54eb4a,_0x133d8a),this[_0x2059b2(0xc2)]();}[_0x473efc(0x3ee)](_0x2df184,_0x3ddbb4){const _0x578f0f=_0x473efc;this[_0x578f0f(0x235)][_0x578f0f(0x184)](_0x2df184,_0x3ddbb4),this[_0x578f0f(0xc2)]();}['_transformStack'](_0x18375c,_0x1f2cb0){const _0x53bca8=_0x473efc;let _0x475263=[],_0x44cd10=_0x1f2cb0,_0x1bc69b=_0x1f2cb0;for(let _0x1252b1=_0x18375c['length']-0x1;_0x1252b1>=0x0;_0x1252b1--){let {unitID:_0x58e73e,undoMutations:_0x32c2e8,redoMutations:_0x41e2a9}=_0x18375c[_0x1252b1],_0x49a651=this[_0x53bca8(0x11c)][_0x53bca8(0x12f)](_0x44cd10,_0x32c2e8),_0x4b6ff6=this[_0x53bca8(0x11c)][_0x53bca8(0x12f)](_0x1bc69b,_0x41e2a9);if((0x0,_0x3d4600['isTransformMutationsWithChangesetFailure'])(_0x49a651)||(0x0,_0x3d4600[_0x53bca8(0x226)])(_0x4b6ff6)){this[_0x53bca8(0x309)][_0x53bca8(0x3e6)](_0x53bca8(0x3c5),_0x53bca8(0x174),_0x49a651,_0x4b6ff6);break;}_0x44cd10=_0x49a651[_0x53bca8(0x162)],_0x1bc69b=_0x4b6ff6[_0x53bca8(0x162)],_0x475263[_0x53bca8(0x283)]({'unitID':_0x58e73e,'undoMutations':_0x49a651['m2Prime'],'redoMutations':_0x4b6ff6[_0x53bca8(0x377)]});}return _0x475263[_0x53bca8(0x1a7)]();}};_0x1219d4=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x1,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x3ff)]),_0x9a3e23(0x3,_0x17ede7['IConfigService']),_0x9a3e23(0x4,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0x5,_0x17ede7[_0x473efc(0x20e)])],_0x1219d4);let _0x308f37=class extends _0x17ede7[_0x473efc(0x12d)]{constructor(_0x43e398=_0x12effe,_0x21a499,_0x15b218,_0xd421bc){const _0xaca84c=_0x473efc;super(),this[_0xaca84c(0x371)]=_0x43e398,this[_0xaca84c(0x309)]=_0x21a499,this['_injector']=_0x15b218,this[_0xaca84c(0x414)]=_0xd421bc;let {..._0x2d7af3}=(0x0,_0x17ede7[_0xaca84c(0x1a2)])({},_0x12effe,this['_config']);if(!_0x2d7af3['socketService'])throw Error(_0xaca84c(0x2eb));this['_config']=_0x2d7af3,this[_0xaca84c(0x414)][_0xaca84c(0x1b4)](_0x1f8831,_0x2d7af3);}[_0x473efc(0x189)](){const _0x52e530=_0x473efc;this[_0x52e530(0x401)](),this[_0x52e530(0x281)]();}[_0x473efc(0x401)](){const _0x4b3398=_0x473efc;var _0xe9f897,_0x2d9516;this[_0x4b3398(0x28c)]['has'](_0x17ede7[_0x4b3398(0x158)])&&this[_0x4b3398(0x309)]['error'](_0x4b3398(0x260),_0x4b3398(0x227));let _0x3e5035=(0x0,_0x17ede7[_0x4b3398(0x24b)])([[_0x17ede7[_0x4b3398(0x158)],{'useClass':_0x1219d4}],[_0xa5a1c7,{'useValue':_0x47199c()}],[_0x40f859],[_0x34dd44],[_0x62027],[_0x3780cb],[_0x69e359],[_0x113b06],[_0xd02bbe],[_0x2d7dce],[_0x21b227],[_0x2e376b,{'useClass':this[_0x4b3398(0x371)][_0x4b3398(0x333)]}],[_0x3d4600[_0x4b3398(0x383)],{'useClass':_0x338e48}],[_0x17ede7[_0x4b3398(0x16b)],{'useClass':_0x172c09}],[_0x17ede7[_0x4b3398(0x35e)],{'useClass':_0x32adc1}],[_0x189025,{'useClass':_0x5b01a0}],[_0x17ede7[_0x4b3398(0x341)],{'useClass':_0x4ff04e}],[_0x5ea503],[_0x1b4eea]],(_0xe9f897=this[_0x4b3398(0x371)])==null?void 0x0:_0xe9f897[_0x4b3398(0x209)]);if(!((_0x2d9516=this[_0x4b3398(0x371)])!=null&&_0x2d9516[_0x4b3398(0x2bd)])){let _0x31c610=_0x3e5035[_0x4b3398(0x356)](([_0x3e6c67])=>_0x3e6c67===_0x549ce8);_0x31c610!==-0x1&&_0x3e5035[_0x4b3398(0x284)](_0x31c610,0x1);}(0x0,_0x17ede7[_0x4b3398(0x1fa)])(this['_injector'],_0x3e5035);}[_0x473efc(0x281)](){const _0x43eb71=_0x473efc;var _0x2edad1,_0x1ceae5;if(this[_0x43eb71(0x28c)][_0x43eb71(0x3af)](_0x4bbb37[_0x43eb71(0x1f7)])[_0x43eb71(0x36a)]({'priority':0x14,'interceptor':(0x0,_0x4bbb37[_0x43eb71(0x3d6)])({'maxParallel':0x6})}),!((_0x2edad1=this[_0x43eb71(0x371)])!=null&&_0x2edad1[_0x43eb71(0x367)])){var _0x35e0e6;(_0x35e0e6=this[_0x43eb71(0x28c)]['get'](_0x4386bd,_0x17ede7[_0x43eb71(0x1d9)][_0x43eb71(0x125)]))==null||_0x35e0e6['disableLocalCache']();}(_0x1ceae5=this['_config'])!=null&&_0x1ceae5[_0x43eb71(0x320)]&&(0x0,_0x17ede7[_0x43eb71(0x179)])(this[_0x43eb71(0x28c)],[[_0x3780cb]]),(0x0,_0x17ede7[_0x43eb71(0x179)])(this[_0x43eb71(0x28c)],[[_0x69e359],[_0x5ea503],[_0xd02bbe]]);}};_0x17f3d2(_0x308f37,_0x473efc(0x2a0),_0x473efc(0x230)),_0x17f3d2(_0x308f37,'packageName',_0x1f67f4),_0x17f3d2(_0x308f37,_0x473efc(0x109),_0x27bebf),_0x308f37=_0x4da91b([(0x0,_0x17ede7['DependentOn'])(_0x90a78a['UniverLicensePlugin'],_0x4bbb37[_0x473efc(0xcc)],_0x3d4600['UniverCollaborationPlugin']),_0x9a3e23(0x1,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x2,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x3,_0x17ede7['IConfigService'])],_0x308f37),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x1df),{'enumerable':!0x0,'get':function(){return _0x172c09;}}),Object['defineProperty'](_0x16b920,'AwaitingState',{'enumerable':!0x0,'get':function(){return _0x236f1c;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x22c),{'enumerable':!0x0,'get':function(){return _0x163822;}}),Object[_0x473efc(0x345)](_0x16b920,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x1cfeae;}}),Object[_0x473efc(0x345)](_0x16b920,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x28070e;}}),_0x16b920[_0x473efc(0x134)]=_0x1f8831,Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x33a),{'enumerable':!0x0,'get':function(){return _0x5b01a0;}}),Object['defineProperty'](_0x16b920,'CollaborationController',{'enumerable':!0x0,'get':function(){return _0x5ea503;}}),Object['defineProperty'](_0x16b920,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x458bcf;}}),Object['defineProperty'](_0x16b920,_0x473efc(0x417),{'enumerable':!0x0,'get':function(){return _0x32adc1;}}),Object['defineProperty'](_0x16b920,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x1fbd86;}}),Object['defineProperty'](_0x16b920,_0x473efc(0x327),{'enumerable':!0x0,'get':function(){return _0x40f859;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x35a),{'enumerable':!0x0,'get':function(){return _0x7e2dbe;}}),_0x16b920[_0x473efc(0x14f)]=_0x555db4,_0x16b920[_0x473efc(0xf8)]=_0x420899,_0x16b920[_0x473efc(0x3e0)]=_0x2d7dce,Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x2f1),{'enumerable':!0x0,'get':function(){return _0x1219d4;}}),_0x16b920[_0x473efc(0x31d)]=_0x113b06,Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x15c),{'enumerable':!0x0,'get':function(){return _0x3b4b0d;}}),_0x16b920[_0x473efc(0xda)]=_0x473efc(0x22a),_0x16b920['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x473efc(0x2d0),_0x16b920[_0x473efc(0x3e7)]=_0x473efc(0x22f),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x349),{'enumerable':!0x0,'get':function(){return _0x21b227;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x412),{'enumerable':!0x0,'get':function(){return _0x5a3607;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x2ea),{'enumerable':!0x0,'get':function(){return _0x1c5382;}}),_0x16b920[_0x473efc(0x3da)]=_0x473efc(0xef),_0x16b920[_0x473efc(0x21a)]=_0x473efc(0x2dc),_0x16b920['IAttachmentIoService']=_0x189025,_0x16b920[_0x473efc(0x249)]=_0xa5a1c7,_0x16b920[_0x473efc(0x20b)]=_0x2e376b,_0x16b920[_0x473efc(0xd8)]=_0x4386bd,_0x16b920[_0x473efc(0x352)]=_0x4c48ae,_0x16b920[_0x473efc(0x23b)]=_0x549ce8,_0x16b920['LOCAL_CACHE_INTERVAL']=0x3e8,_0x16b920['LOCAL_CACHE_INTERVAL_KEY']=_0x473efc(0x36d),Object[_0x473efc(0x345)](_0x16b920,'MemberService',{'enumerable':!0x0,'get':function(){return _0x34dd44;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x2c3),{'enumerable':!0x0,'get':function(){return _0x4ff04e;}}),Object[_0x473efc(0x345)](_0x16b920,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x25311e;}}),Object['defineProperty'](_0x16b920,_0x473efc(0x2e8),{'enumerable':!0x0,'get':function(){return _0x30dd3f;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x271),{'enumerable':!0x0,'get':function(){return _0xe416b5;}}),_0x16b920[_0x473efc(0x296)]=_0x473efc(0x239),_0x16b920[_0x473efc(0x140)]='RETRY_CONNECTING_MAX_COUNT',_0x16b920[_0x473efc(0x2c9)]=_0xcf341c,Object[_0x473efc(0x345)](_0x16b920,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x399b0b;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x40c),{'enumerable':!0x0,'get':function(){return _0x62027;}}),Object[_0x473efc(0x345)](_0x16b920,'SlideCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x7459fd;}}),Object['defineProperty'](_0x16b920,_0x473efc(0x27d),{'enumerable':!0x0,'get':function(){return _0x338e48;}}),Object[_0x473efc(0x345)](_0x16b920,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x4e41d6;}}),_0x16b920['UnitStatus']=_0x3f32fb,Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x2f0),{'enumerable':!0x0,'get':function(){return _0x308f37;}}),_0x16b920[_0x473efc(0x3de)]=_0x47199c,_0x16b920[_0x473efc(0x267)]=_0x598fbe,_0x16b920[_0x473efc(0x1f4)]=_0x5f3492,_0x16b920['serializeCombRequest']=_0x91444b;}));function _0x39df(){const _0x6c7985=['_commentService','now','UNISCRIPT_RUN','csRejEvent','ICommandService','CommentService','not_collab','trim','enableAuthServer','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_unitInfo$','range','_stopTelemetryCollaborationNewChangeset','reconnect','getUploadOptions','CollaborationSessionService','toPrimitive','getActiveSheet','onRemoteRetry','exports','saveSnapshot','add','varSizeNonce','_transformStack','getSnapshotAPIPath','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','[CollaborationSession]','socketService','_resendWithTimeout','dispose','uniscriptRunEvent','/-/object/-/batch_allowed','liveShareOperation','members$','CollaborationAttachmentIoService','create','_commentUpdate$','&source=','socketMessageSubscription','UniverProCollaborationClient','_sessionChannels','IMentionIOService','disablePadding','forEach','getResourcesRequest','defineProperty','setCfgEnableObjInherit','entries','PERMISSION_REJ','DataLoaderService','nonceLength','_entities','sort','unitInfo$','MSG_FOR_ERROR','_createSession','CollaborationEvent','LIVESHARE_REQUEST_HOST','INetworkConditionService','output','toggleOnline','_incrementRevisionNumber','findIndex','type=','[OfflineState]:\x20received\x20acknowledgement.','_permissionService','CollaborationSocketService','_change$','fetchThroughInterceptors','_onRemoteRejected','IImageIoService','_clearCollaborationTimeoutTimer','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','BASE64','loadPdf','EnsureSlideMasterPageMutation','changeset','1240508rtcRbk','_members$','enableOfflineEditing','_initMergeInterceptor','columnGroups','registerHTTPInterceptor','userID','target','LOCAL_CACHE_INTERVAL','unitLoaded$','sessionStatus','/-/object/list','_config','_createInitialState','setShowComponents','href','JOIN_ROOM_FAILED','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','m2Prime','selections','1806dkUNyU','SetSelectionsOperation','ITelemetryService','toLocal','collaboration-client.local-cache-service','_transformSelections','_transformAndApplyRemoteChangeset','objectType','UniverDocs','JOIN_ROOM_PERMISSION_DENIED','ISnapshotServerService','UPDATE_PERMISSION_OBJ','updateMember','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toRemote','parseProtocolChangeset','_clearScheduledTask','url','_acknowledgeAwaiting','_rescheduleHeartbeat','toStringTag','_docStateChangeManagerService','message$','byteOffset','textEncoder','hasOwnProperty','encrypt','[CollaborationSessionService]','getInterceptPoints','_lockTransition','candidateSocket','_getDownloadEndpointURL','UNIVER_DOC','maxSize','_roomMembers','Disposable','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','COMPRESS_MUTATION_SEND','_commandService','_onConflict','_toggleOffline','reject','_onJoinRoomEvent','fromCollab','unknown','@univerjs/telemetry','copyFileMeta','SHOULD_CLOSE_CONN','USERS_LEAVE','_createInitialStateImpl','/allowed','subject','@univerjs/drawing','fetchMissingChangesets','get','_clearRedo','UniverProLicense','unit','emitEvent','_acknowledgedAwaitingRevision','UNIVER_BOARD','_entityInit$','LEAVE','onRemoteRej','JOINING','batchAllowed','_transformStateCache','loadSheet','transformUndoRedo','getMemberID','subscribe','createSocket','BehaviorSubject','onSendChangeset','NOT_COLLAB','_shouldReportTelemetry','[CollaborationUndoRedoService]','object','[DataLoaderService]','MentionType','size','session.join-failed','number','socket$','JOIN_ROOM_NOT_EXISTS','_onCombEvent','/block/','_localCacheService','MUTATION','_onRemoteACK','updateCollaborator','UserManagerService','type','ThresholdInterceptorFactory','headers','loadSlide','onTransformRemoteChangesetByIMECache','HEARTBEAT_INTERVAL_KEY','RemoveSlidePageMutation','reduce','_awaitingChangeset','createUniverCollaborationAdapter','_snapshotService','CollaborationUIEventService','code','loadBase','_members','CmdRspCode','endsWith','error','DEFAULT_WS_SESSION_TICKET_URL','UNIVER_BASE','getLatestCsReqIdBySid','location','@univerjs-pro/collaboration','onCommentUpdate','MergeInterceptorFactory','_substituteRedoStack','getTypeOfUnitDisposed$','_acknowledgeAwaitingIfReady','csShouldRetryEvent','_snapshotServerService','uuidv4','_createSocket','[PendingState]:\x20received\x20rejection.','_pendingSessions','/object','_socketChannels','encodeURIComponent','_roomCreated$','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getImageSourceCache','tagLength','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','IContextService','WorkbookEditablePermission','_registerDependencies','collabSubmitChangesetUrl','complete','getMember','objectActions','has','SOCKET_FAILED','text-x','updateOfflineData','pauseCollaboration','duration','SheetTransformSelectionsService','name','blockRanges','clear','onStateChange','@univerjs/network','DocCollaborationEntity','fromCharCode','_configService','__Key__','equals','CollaborationImageIoService','MoveSlidePageMutation','onRemoteChangeset','_networkConditionService','fetchMiss','_updateStatus','_handleRemoteChangesets','_throwTelemetryCollaborationNewChangeset','getCollabEntity','_onUserLeave','_onRemoteRetry','_emitMembers','body','_type','_joinRoom','UniverNetworkPlugin','crypto.getRandomValues\x20must\x20be\x20defined','x-univer-host','_fetchMissChangesets','getCfgEnableObjInherit','SUCCUSS','slice','_event$','updatePermissionPoint','isView','method','_getSendChangesetTimeout','ILocalCacheService','[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.','DEFAULT_COLLAB_WEB_SOCKET_URL','_startTelemetryCollaborationNewChangeset','timeoutTimer','appendMutation','onTransformIME','socketReady','_initRequestHeader','FETCH_MISS','InsertSheetMutation','reqId','localUnitId','resolveUnit','@univerjs/core','_substituteUndoStack','/fetchmissing?from=','UnitEmbedded','setWaitCount','parseChangesetToProtocol','unitID','RevisionService','invalid\x20output,\x20must\x20be\x20aligned','HEARTBEAT_INTERVAL','withCredentials','commentUpdateEvent','UNIVER_SLIDE','/collaborator','listCollaborators','encode','isInternalEditorID','_socketMessageSubscription','CollaborationUIEventId','toDisposable','INGEST','map','put','_tryReconnect','_executeRemoteChangeset','/universer-api/oidc/authpage','_scheduleCompleteTimestamp','_onConnectionFailed','JOIN','collaboration-client.auth.needGotoLoginAlert','COLLABORATION_ENDPOINT_INVALID','socket\x20open.','_getConfig','call','_undoStacks','version','append','state$','send','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','LocaleService','_waitCount','LIVESHARE_NEW_HOST','RECV','newCsEvent','attachment','_scheduleCollaborationTimeoutTimer','univer-pro.collaboration-client-adapter-service','positive\x20integer\x20expected,\x20got\x20','_toggleOnline','startTime','_startCollaboration','_updateState','{fileID}','_transformService','_resolveSessionIdentity','COMPRESS_MUTATION_APPLY','close','_disableEditing','[SyncedState]:\x20received\x20rejection.','changesets','5420536pggXhL','unit-cache-','OPTIONAL','_cfgEnableObjInherit','_getRedoStack','patch','_onLocalMutation','members','retryConnectingInterval','downloadEndpointUrl','Plugin','disposeWithMe','transformMutationsWithChangeset','number\x20expected,\x20got\x20','isSafeInteger','shouldCloseConn','retryCount','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ErrorCode','saveSheetBlock','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs-pro/slides','connection\x20error','_onUserJoin','People','BYTES_PER_ELEMENT','_onRecvEvent','removeMember','CompressMutationService','RETRY_CONNECTING_MAX_COUNT_KEY','getAllMembers','awaiting','6332480uYwlbt','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_identity','DisposableCollection','onRemoteAck','confirm','&to=','origin','_sessions','localCacheService','UniverCore','find','CollaborationStatus','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','PERSON','endpoint','stopTime','/unit/','_waitForHeartbeatResponse','FileSource','onTransformSelections','IUndoRedoService','loadUnitOfRevision','_schedule','@univerjs/sheets','ConflictState','DEFAULT_FILE_NAME','/universer-api/authz','_isPermissionRej','SheetsSelectionsService','FETCH_MISSING','c1Prime','avatar','_getUndoStack','Optional','_state','getOwnPropertyDescriptor','isTransformChangesetsSuccess','RichTextEditingMutation','_transformIMECache','IAuthzIoService','resend','_socket','1159878SFNbmD','LocalUndoRedoService','_getSignURL','_univerInstanceService','createInstance','snapshot','transformStack\x20failed!','\x0aCurrent:\x20','_exhaustRemoteChangesetQueue','string\x20expected','_transformRemoteChangesetByStateCache','touchDependencies','saveAttachment','subarray','SnapshotService','ONLINE','_clearTimeoutTimer','sequenceExecute','closeSession','ERROR_EXCEED_SIZE','ITransformService','CHANGESET_ACK','set','[PendingState]:\x20received\x20acknowledgement.','_handler','conflict','@univerjs-pro/license','onStarting','action','upload','_clearLocalCache','signUrlServerUrl','ReplaySubject','HELLO','collaMsg','loadOfflineData','CLOSE_ROOM','[FetchMissState]','_telemetryService','state','_localeService','collaborators','commentUpdate$','_maxTotalRetryTimeout','unitType','resolve','transformSelections','unitId\x20is\x20not\x20found','LIVESHARE_FETCH_OPERATIONS','loginUrlKey','/object/','_transitionLocked','merge','RxDisposable','_decreaseWaiting','online$','CommandType','reverse','actions','getUnit','getCurrentRevOfUnit','data','shareReplay','getCurrentSelections','sid','putCollaborators','startsWith','key','awaiting_with_pending','objectID','setConfig','asObservable','Uint8Array','univer-pro.collaboration-client-socket-service','failed\x20to\x20apply\x20missed\x20changesets!','SNAPSHOT_URL_KEY','_onMessage','session.room-not-exists','UNIVER_SHEET','sessionStatus$','leaveEvent','UniverProCollaboration','UniverInstanceType','OTHER_CLIENT_EDITING','_onRemoteChangeset','_resendTimer','roles','isCompositionEnd','ERROR_IMAGE','permissionRejEvent','_onOffline','CombCmd','OFFLINE','createIdentifier','_transformUndoredo','requestParams','UNIVER_PDF','4563015oidXmy','function','_clearHeartbeatTimer','waitForRoom$','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','title','expected\x20Uint8Array','_status$','length=','_sendingTimer','Quantity','awaitingChangeset','src','editing\x20status\x20changed\x20to','interceptor','params','AuthzIoHttpService','_tryEnsureSocket','catch','FileId','_revisionService','operators','then','Module','revision','_compressMutationService','_sendHeartbeat','Tools','assign','requireSession',',\x20got:\x20','_telemetryInfo','USERS_ENTER','fetch_missing','SYNCED','UPDATE_CURSOR','@univerjs/docs','getLocalCacheKey','Inject','AWAITING','HTTPService','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','_collaborationSessionService','registerDependencies','eventID','FAIL','_collaborationUIEventService','replace','byteLength','sendHeartbeatTimer','IConfigService','toString','HEARTBEAT','getUnitId','getConfig','parse','take','status$','override','endpointKey','ICollaborationSocketService','_sessionStatus$','csAckEvent','ILogService','subUnitId','_changesetSessionId','NEW_CHANGESETS','_sheetTransformSelectionsService','readAsDataURL','COMMENT_UPDATE','_init','loadBoard','PERMISSION_DENIED','includes','_collabSessionService','HEARTBEAT_TIMEOUT_KEY','transformChangesets','Injector','getAttachmentUrl','rev','OTHER_CLIENTS_EDITING','_applyRemoteChangeset','_adapter','iterator','?size=','getCurrentUser','UniverDrawing','isTransformMutationsWithChangesetFailure','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_submitChangeset','_getAPIPrefix','ws://127.0.0.1:8000/universer-api/comb/connect','POST','AwaitingWithPendingState','result','RETRY_CONNECTING_MAX_COUNT','/universer-api/user/session-ticket','UNIVER_COLLABORATION_CLIENT_PLUGIN','baseRev','_handlerCallback','init','_clearRetryConnectingTimer','_redoStacks','_checkMissing','mutations','HTTPRequest','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','nonce','ISingleActiveUnitService','_changesetReqId','IDLE','ImageUploadStatusType','_getCtorByUniverInstanceType','compose','_initUnitPermissionChange','deleteCollaborator','getUnitOnRev','\x20in\x20_schedule.','decrypt','\x20-\x20','focused$','isPermissionRej','ICollaborationClientAdapterService','/role','mergeOverrideWithDependencies','_getAPIPrefixPath','readyForCollab','getFocusedUnit','[PendingState]:\x20unhandled\x20univer\x20type:\x20','delay','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','&assign=','_collaborationPaused','_initCloseConn','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getTypeOfUnitAdded$','refreshPermission','cmd','PENDING','univer-pro.collaboration-client.network-condition.service','_replayCachedMutations','joinEvent','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','close$','PSEUDO_FETCH_MISSING_RESULT','[UniverCollaborationClientPlugin]','responseType','LIVESHARE_TERMINATE','b64DecodeUnicode','_imageSourceCache','entityInit$','_queuedRemoteChangesets','deserializeToCombResponse','_state$','update','some','_eventService','_undoRedoService','getGlobalObject','list','getRandomValues','onSyncEditingCollabCursor','PendingState','_updateLocalCache','status','_getSocketChannel','?url=','fetching\x20missing\x20changesets\x20from\x20','_getUploadFileURL','unsubscribe','session.room-cnt-exceeds','[CollaborationSessionService]:\x20socket\x20error','Rectangle','onTransformState','SnapshotServerOverHTTPService','ERROR_IMAGE_TYPE','@univerjs/protocol','file','_initDependencies','onload','push','splice','buffer','_unlockTransition','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','SUBMIT_CHANGESET_TIMEOUT','CHANGESET_SHOULD_RETRY','takeUntil','_removeRoom','_injector','routeKey','max','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_listenToNetworkCondition','getUnitType','crypto','saveChangeset','localeService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','open$','unitId','updateCursorEvent','getTime','IPermissionService','offline','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_resendTimeout','5277165LSNrCY','pluginName','uploadFileServerUrl','getValue','_clearUndo','UniverSheets','capture','apply','_remoteChangesetQueue','_getCurrentRevision','allowed','UUID','prototype','_hasSessionsForEndpoint','symbol','onlyLocal','_onConnectionOpen','_httpService','ImageSourceType','joinRsp','firstValueFrom','error$','liveShareNewHost','length','concatMap','indexOf','_userManagerService','isTransformMutationsWithChangesetSuccess','accept','LIVESHARE_OPERATION','enableSingleActiveInstanceLock','event$','pipe','onMissingChangesets','mapDocumentTypeToUniverInstanceType','_pendingMutations','MentionIoHttpService','save\x20fail\x20reason\x20is\x20','constructor','IUniverInstanceService','executeCommand','[OfflineState]:\x20received\x20rejection.','SessionStatus','[CollaborationEntity]','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_instanceService','objects','delete','dispose$','/universer-api/uniscript','toggleOffline','_socketService','getSheetId','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','infoRsp','onMissedChangesetFetched','_getLoginPath','Subject','textRanges','SUBMIT_CHANGESET','resolveWithBasePath','HEARTBEAT_TIMEOUT','socket\x20close','/new_changes','originalMeta','memberID','from','onMutationExecutedForCollab','/universer-api/stream/file/upload','_HTTPService','UniverNetwork','_onFetchMissResult','_sender','PdfCollaborationEntity','roomInfos','FetchingMissState','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_collaborationTimeoutTimer','SOCKET_FAILED_RETRY',',\x20got\x20','\x0aAfter:\x20','UniverCollaborationClientPlugin','CollaborativeUndoRedoService','/universer-api/snapshot/','_memberService','updateSnapshot','next','/universer-api/file/{fileID}/sign-url','retryConnectingTimer','backupOfflineData','debug','aes/pkcs7:\x20wrong\x20padding','string','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','isArray','CONFLICT','_createHandler','missingChangesets','_singleActiveUnitService','UniverProSlides','synced','AAD','session','_upload','12522SrPXwW','rxjs','_logService','_unitLoaded$','CHANGESET_REJ','_showConflictNotification','loadDoc','filter','NO_OTHER_CLIENTS_EDITING','collaboration-client.config','Failed\x20to\x20update\x20permission\x20point','floor','values','saveImage','post','loadUnit','stringify'];_0x39df=function(){return _0x6c7985;};return _0x39df();}