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

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 (97) hide show
  1. package/README.md +8 -2
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/es/facade.js +1 -1
  24. package/lib/es/index.js +1 -1
  25. package/lib/es/locale/ar-SA.js +1 -1
  26. package/lib/es/locale/ca-ES.js +1 -1
  27. package/lib/es/locale/de-DE.js +1 -1
  28. package/lib/es/locale/en-US.js +1 -1
  29. package/lib/es/locale/es-ES.js +1 -1
  30. package/lib/es/locale/fa-IR.js +1 -1
  31. package/lib/es/locale/fr-FR.js +1 -1
  32. package/lib/es/locale/id-ID.js +1 -1
  33. package/lib/es/locale/it-IT.js +1 -1
  34. package/lib/es/locale/ja-JP.js +1 -1
  35. package/lib/es/locale/ko-KR.js +1 -1
  36. package/lib/es/locale/pl-PL.js +1 -1
  37. package/lib/es/locale/pt-BR.js +1 -1
  38. package/lib/es/locale/ru-RU.js +1 -1
  39. package/lib/es/locale/sk-SK.js +1 -1
  40. package/lib/es/locale/vi-VN.js +1 -1
  41. package/lib/es/locale/zh-CN.js +1 -1
  42. package/lib/es/locale/zh-HK.js +1 -1
  43. package/lib/es/locale/zh-TW.js +1 -1
  44. package/lib/facade.js +1 -1
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +8 -2
  66. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -2
  67. package/lib/types/facade/f-collaboration.d.ts +40 -0
  68. package/lib/types/index.d.ts +6 -3
  69. package/lib/types/services/attachment-remote/attachment-io.service.d.ts +1 -4
  70. package/lib/types/services/collaboration-session/collaboration-changeset-translator.d.ts +4 -0
  71. package/lib/types/services/collaboration-session/collaboration-client-adapter.d.ts +39 -0
  72. package/lib/types/services/collaboration-session/collaboration-session.d.ts +5 -4
  73. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +14 -14
  74. package/lib/types/services/data-loader/data-loader.service.d.ts +1 -1
  75. package/lib/types/services/image-remote/image-io.service.d.ts +2 -4
  76. package/lib/umd/facade.js +1 -1
  77. package/lib/umd/index.js +1 -1
  78. package/lib/umd/locale/ar-SA.js +1 -1
  79. package/lib/umd/locale/ca-ES.js +1 -1
  80. package/lib/umd/locale/de-DE.js +1 -1
  81. package/lib/umd/locale/en-US.js +1 -1
  82. package/lib/umd/locale/es-ES.js +1 -1
  83. package/lib/umd/locale/fa-IR.js +1 -1
  84. package/lib/umd/locale/fr-FR.js +1 -1
  85. package/lib/umd/locale/id-ID.js +1 -1
  86. package/lib/umd/locale/it-IT.js +1 -1
  87. package/lib/umd/locale/ja-JP.js +1 -1
  88. package/lib/umd/locale/ko-KR.js +1 -1
  89. package/lib/umd/locale/pl-PL.js +1 -1
  90. package/lib/umd/locale/pt-BR.js +1 -1
  91. package/lib/umd/locale/ru-RU.js +1 -1
  92. package/lib/umd/locale/sk-SK.js +1 -1
  93. package/lib/umd/locale/vi-VN.js +1 -1
  94. package/lib/umd/locale/zh-CN.js +1 -1
  95. package/lib/umd/locale/zh-HK.js +1 -1
  96. package/lib/umd/locale/zh-TW.js +1 -1
  97. package/package.json +15 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x406997=_0xcc0c;(function(_0x1c5940,_0x3bc3b6){const _0x3451ba=_0xcc0c,_0x13147d=_0x1c5940();while(!![]){try{const _0x23c812=-parseInt(_0x3451ba(0x34e))/0x1*(parseInt(_0x3451ba(0x15c))/0x2)+parseInt(_0x3451ba(0x226))/0x3+parseInt(_0x3451ba(0x2f6))/0x4+-parseInt(_0x3451ba(0x3c3))/0x5+-parseInt(_0x3451ba(0x1b5))/0x6*(parseInt(_0x3451ba(0x32a))/0x7)+-parseInt(_0x3451ba(0x214))/0x8+-parseInt(_0x3451ba(0x3ac))/0x9*(-parseInt(_0x3451ba(0x31b))/0xa);if(_0x23c812===_0x3bc3b6)break;else _0x13147d['push'](_0x13147d['shift']());}catch(_0x5501f2){_0x13147d['push'](_0x13147d['shift']());}}}(_0x174c,0xb36b7),Object[_0x406997(0x3f6)](exports,Symbol[_0x406997(0x2cd)],{'value':'Module'}));let e=require('@univerjs-pro/bases'),t=require('@univerjs-pro/collaboration'),n=require('@univerjs/core'),r=require('@univerjs/docs'),i=require('@univerjs/sheets'),a=require('rxjs'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),u=require('@univerjs/network'),d=require('@univerjs-pro/license'),f=require('@univerjs/drawing'),p=require('@noble/ciphers/aes.js'),m=require('@noble/ciphers/utils.js');const h=_0x406997(0x3db),ee={},te='ws://127.0.0.1:8000/universer-api/comb/connect',ne=0x4e20;function re(_0x4e485f){const _0x320cfe=_0x406997;return JSON['stringify'](_0x4e485f)[_0x320cfe(0x327)];}function g(_0x22ef66){'@babel/helpers - typeof';return g=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x456a30){return typeof _0x456a30;}:function(_0x2eab3d){const _0x39f231=_0xcc0c;return _0x2eab3d&&typeof Symbol=='function'&&_0x2eab3d[_0x39f231(0x380)]===Symbol&&_0x2eab3d!==Symbol[_0x39f231(0x3b0)]?_0x39f231(0x210):typeof _0x2eab3d;},g(_0x22ef66);}function ie(_0x20e19d,_0x1ab352){const _0x6d88b=_0x406997;if(g(_0x20e19d)!=_0x6d88b(0x142)||!_0x20e19d)return _0x20e19d;var _0x4d97c4=_0x20e19d[Symbol['toPrimitive']];if(_0x4d97c4!==void 0x0){var _0x528733=_0x4d97c4[_0x6d88b(0x3d6)](_0x20e19d,_0x1ab352||'default');if(g(_0x528733)!=_0x6d88b(0x142))return _0x528733;throw TypeError(_0x6d88b(0x111));}return(_0x1ab352===_0x6d88b(0x24f)?String:Number)(_0x20e19d);}function ae(_0x27a9f7){const _0x408136=_0x406997;var _0x206978=ie(_0x27a9f7,_0x408136(0x24f));return g(_0x206978)==_0x408136(0x210)?_0x206978:_0x206978+'';}function _(_0x2b4e68,_0x5b87d9,_0x5c49ce){const _0x5bef64=_0x406997;return(_0x5b87d9=ae(_0x5b87d9))in _0x2b4e68?Object[_0x5bef64(0x3f6)](_0x2b4e68,_0x5b87d9,{'value':_0x5c49ce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b4e68[_0x5b87d9]=_0x5c49ce,_0x2b4e68;}let oe=function(_0x12ad87){const _0x4bebd1=_0x406997;return _0x12ad87['OTHER_CLIENT_EDITING']=_0x4bebd1(0x30a),_0x12ad87[_0x4bebd1(0x33b)]=_0x4bebd1(0x33b),_0x12ad87[_0x4bebd1(0x268)]=_0x4bebd1(0x268),_0x12ad87[_0x4bebd1(0x2e8)]=_0x4bebd1(0x2e8),_0x12ad87['JOIN_ROOM_FAILED']=_0x4bebd1(0x278),_0x12ad87[_0x4bebd1(0x1e6)]='SOCKET_FAILED_RETRY',_0x12ad87[_0x4bebd1(0x2c1)]=_0x4bebd1(0x2c1),_0x12ad87[_0x4bebd1(0x14b)]=_0x4bebd1(0x14b),_0x12ad87;}({});var v=class{constructor(){const _0x57d180=_0x406997;_(this,_0x57d180(0x285),new a[(_0x57d180(0x342))]()),_(this,_0x57d180(0x375),this[_0x57d180(0x285)][_0x57d180(0x1c0)]());}[_0x406997(0x343)](_0x11d038){const _0x2a792d=_0x406997;this[_0x2a792d(0x285)][_0x2a792d(0x16d)](_0x11d038);}},se=class{constructor(){const _0x5f2970=_0x406997;_(this,_0x5f2970(0x326),new a['Subject']()),_(this,_0x5f2970(0x14f),this[_0x5f2970(0x326)][_0x5f2970(0x1c0)]());}[_0x406997(0x28c)](_0x122bb4){const _0x29632b=_0x406997;this[_0x29632b(0x326)][_0x29632b(0x16d)](_0x122bb4);}};function y(_0x8f3979,_0x2cb229){return function(_0x4514aa,_0x58686d){_0x2cb229(_0x4514aa,_0x58686d,_0x8f3979);};}function b(_0x23daaf,_0x13977e,_0x52d3b2,_0x3f98c5){const _0x41b6af=_0x406997;var _0x346156=arguments[_0x41b6af(0x327)],_0xc857fd=_0x346156<0x3?_0x13977e:_0x3f98c5===null?_0x3f98c5=Object[_0x41b6af(0x359)](_0x13977e,_0x52d3b2):_0x3f98c5,_0x288a57;if(typeof Reflect==_0x41b6af(0x142)&&typeof Reflect['decorate']==_0x41b6af(0x165))_0xc857fd=Reflect[_0x41b6af(0x3f1)](_0x23daaf,_0x13977e,_0x52d3b2,_0x3f98c5);else{for(var _0x3ccfba=_0x23daaf['length']-0x1;_0x3ccfba>=0x0;_0x3ccfba--)(_0x288a57=_0x23daaf[_0x3ccfba])&&(_0xc857fd=(_0x346156<0x3?_0x288a57(_0xc857fd):_0x346156>0x3?_0x288a57(_0x13977e,_0x52d3b2,_0xc857fd):_0x288a57(_0x13977e,_0x52d3b2))||_0xc857fd);}return _0x346156>0x3&&_0xc857fd&&Object[_0x41b6af(0x3f6)](_0x13977e,_0x52d3b2,_0xc857fd),_0xc857fd;}function _0xcc0c(_0x14814f,_0x2bf86f){_0x14814f=_0x14814f-0xfc;const _0x174c0a=_0x174c();let _0xcc0c6d=_0x174c0a[_0x14814f];return _0xcc0c6d;}let x=class extends n[_0x406997(0x2a4)]{constructor(_0xaf0114,_0x19cc95){const _0x5597d7=_0x406997;super(),this[_0x5597d7(0x2ee)]=_0xaf0114,this[_0x5597d7(0x3aa)]=_0x19cc95,_(this,_0x5597d7(0x216),new Map()),_(this,_0x5597d7(0x2fa),new a[(_0x5597d7(0x342))]()),this[_0x5597d7(0x1c1)]((0x0,a[_0x5597d7(0x21c)])(this['_univerInstanceService'][_0x5597d7(0x280)](n[_0x5597d7(0x127)][_0x5597d7(0x225)])['pipe']((0x0,c[_0x5597d7(0x229)])(_0x11486c=>_0x11486c['getUnitId']())),this[_0x5597d7(0x2ee)][_0x5597d7(0x280)](n[_0x5597d7(0x127)][_0x5597d7(0x332)])['pipe']((0x0,c['map'])(_0x328dae=>_0x328dae['getUnitId']())),this[_0x5597d7(0x2ee)][_0x5597d7(0x280)](n[_0x5597d7(0x127)][_0x5597d7(0x23f)])[_0x5597d7(0x119)]((0x0,c[_0x5597d7(0x229)])(_0x494823=>_0x494823[_0x5597d7(0x297)]())))[_0x5597d7(0x3e5)](_0x47d5c4=>this[_0x5597d7(0x1a4)](_0x47d5c4)));}[_0x406997(0x217)](_0x2c7e09){const _0x403699=_0x406997;return this[_0x403699(0x216)][_0x403699(0x22e)](_0x2c7e09)?(0x0,a['of'])(this[_0x403699(0x216)][_0x403699(0x284)](_0x2c7e09)):this[_0x403699(0x2fa)]['pipe']((0x0,c[_0x403699(0x229)])(_0x51b6b2=>{const _0x4b248d=_0x403699;if(_0x51b6b2===_0x2c7e09)return this[_0x4b248d(0x216)][_0x4b248d(0x284)](_0x51b6b2);}));}['setCurrentUser'](_0x1fcec3){const _0x30d34f=_0x406997;this[_0x30d34f(0x3aa)][_0x30d34f(0x168)](_0x1fcec3);}['getCurrentUser'](){const _0x5a66db=_0x406997;return this['_userManagerService'][_0x5a66db(0x2a9)]();}[_0x406997(0x363)](_0x4b13b6,_0x5a760f){const _0x547c16=_0x406997;let _0x1ea39a=this['_roomMembers']['get'](_0x4b13b6);_0x1ea39a||(_0x1ea39a=new ce(),this[_0x547c16(0x216)]['set'](_0x4b13b6,_0x1ea39a),this[_0x547c16(0x2fa)][_0x547c16(0x16d)](_0x4b13b6)),_0x1ea39a[_0x547c16(0x363)](_0x5a760f);}[_0x406997(0x2d3)](_0x3249c,_0x36c094){const _0x557a77=_0x406997;let _0x213c6e=this[_0x557a77(0x216)]['get'](_0x3249c);_0x213c6e&&_0x213c6e[_0x557a77(0x2d3)](_0x36c094);}[_0x406997(0x2f5)](_0x27c60c){const _0x3ff7f4=_0x406997;return this[_0x3ff7f4(0x216)][_0x3ff7f4(0x284)](_0x27c60c);}[_0x406997(0x117)](_0x349140,_0x47f183){let _0xa2f168=this['_roomMembers']['get'](_0x349140);if(_0xa2f168)return _0xa2f168['getMember'](_0x47f183);}['_removeRoom'](_0x507b5a){const _0xcac3e3=_0x406997;let _0x1ea67b=this[_0xcac3e3(0x216)]['get'](_0x507b5a);_0x1ea67b&&(_0x1ea67b[_0xcac3e3(0x34b)](),this[_0xcac3e3(0x216)]['delete'](_0x507b5a));}[_0x406997(0x34b)](){const _0x1387f3=_0x406997;this['_roomMembers'][_0x1387f3(0x1e5)](_0x37c66b=>_0x37c66b[_0x1387f3(0x34b)]()),this[_0x1387f3(0x216)][_0x1387f3(0x32e)](),this[_0x1387f3(0x2fa)][_0x1387f3(0x2f1)]();}};x=b([y(0x0,n[_0x406997(0x131)]),y(0x1,(0x0,n[_0x406997(0x28e)])(n['UserManagerService']))],x);var ce=class extends n[_0x406997(0x2a4)]{constructor(..._0x4bb8ba){const _0x10e95f=_0x406997;super(..._0x4bb8ba),_(this,_0x10e95f(0x1f9),new Map()),_(this,_0x10e95f(0x279),new a[(_0x10e95f(0x3e1))](this['_members'])),_(this,_0x10e95f(0x31d),this[_0x10e95f(0x279)][_0x10e95f(0x1c0)]());}[_0x406997(0x34b)](){const _0x42d8bc=_0x406997;this[_0x42d8bc(0x1f9)][_0x42d8bc(0x32e)](),this[_0x42d8bc(0x279)][_0x42d8bc(0x2f1)]();}[_0x406997(0x363)](_0xbe5087){const _0x5dd1ac=_0x406997;this['_members'][_0x5dd1ac(0x355)](_0xbe5087['memberID'],_0xbe5087),this['_emitMembers']();}[_0x406997(0x2d3)](_0x2eb752){const _0x11851d=_0x406997;this['_members'][_0x11851d(0x28a)](_0x2eb752),this[_0x11851d(0x267)]();}[_0x406997(0x117)](_0x4531df){const _0x39e4b7=_0x406997;return this['_members'][_0x39e4b7(0x284)](_0x4531df);}[_0x406997(0x247)](){const _0x8f5976=_0x406997;return Array[_0x8f5976(0x1a3)](this['_members'][_0x8f5976(0x205)]());}[_0x406997(0x267)](){const _0x8f4a1b=_0x406997;this['_members$'][_0x8f4a1b(0x16d)](this[_0x8f4a1b(0x1f9)]);}};let le=function(_0x4a7058){const _0x36474e=_0x406997;return _0x4a7058[_0x4a7058[_0x36474e(0x2f2)]=0x0]='IDLE',_0x4a7058[_0x4a7058['JOINING']=0x1]=_0x36474e(0x3b9),_0x4a7058[_0x4a7058['OFFLINE']=0x2]=_0x36474e(0x183),_0x4a7058[_0x4a7058[_0x36474e(0x3ea)]=0x3]=_0x36474e(0x3ea),_0x4a7058;}({});const ue={[o[_0x406997(0x15b)][_0x406997(0x176)]]:'session.join-failed',[o[_0x406997(0x15b)][_0x406997(0x227)]]:_0x406997(0x200),[o[_0x406997(0x15b)][_0x406997(0x10d)]]:_0x406997(0x25c),[o['CmdRspCode'][_0x406997(0x3d2)]]:_0x406997(0x20c),[o[_0x406997(0x15b)][_0x406997(0x1e1)]]:'session.room-cnt-exceeds'};let S=class extends n[_0x406997(0x1cd)]{get[_0x406997(0x24c)](){const _0x4257a7=_0x406997;return this[_0x4257a7(0x23a)][_0x4257a7(0x376)]();}constructor(_0x4b3699,_0x2ea994,_0x36de52,_0x4547b8,_0x24de77,_0x79fd1f,_0x45a75f,_0x44773c){const _0x3c7acc=_0x406997;super(),this[_0x3c7acc(0x3da)]=_0x4b3699,this['_logService']=_0x36de52,this['_configService']=_0x4547b8,this[_0x3c7acc(0x1fe)]=_0x24de77,this[_0x3c7acc(0x3de)]=_0x79fd1f,this[_0x3c7acc(0x3ec)]=_0x45a75f,this[_0x3c7acc(0x287)]=_0x44773c,_(this,'_sessionStatus$',new a[(_0x3c7acc(0x3e1))](0x0)),_(this,_0x3c7acc(0x2d7),this[_0x3c7acc(0x23a)][_0x3c7acc(0x1c0)]()),_(this,_0x3c7acc(0x285),new a[(_0x3c7acc(0x342))]()),_(this,_0x3c7acc(0x375),this[_0x3c7acc(0x285)][_0x3c7acc(0x1c0)]()),_(this,_0x3c7acc(0x241),void 0x0),_(this,_0x3c7acc(0x249),void 0x0),_(this,_0x3c7acc(0x2f8),void 0x0),_(this,_0x3c7acc(0x1d1),!0x1),_(this,_0x3c7acc(0x101),null),this[_0x3c7acc(0x1d1)]=!!this[_0x3c7acc(0x287)],_0x2ea994['pipe']((0x0,a[_0x3c7acc(0x39c)])(this[_0x3c7acc(0x33c)]))[_0x3c7acc(0x3e5)](_0x2d1a71=>{const _0x10fc54=_0x3c7acc;if(_0x2d1a71!==void 0x0){if(this['_socket']=_0x2d1a71,_0x2d1a71)this[_0x10fc54(0x3bb)](_0x2d1a71),this[_0x10fc54(0x249)]=_0x2d1a71[_0x10fc54(0x181)][_0x10fc54(0x3e5)](_0x4809b4=>{const _0x43f248=_0x10fc54;_0x4809b4['routeKey']===this[_0x43f248(0x3da)]&&this[_0x43f248(0x3e7)](_0x4809b4);});else{var _0x13ff82;this[_0x10fc54(0x138)](),this[_0x10fc54(0x23a)][_0x10fc54(0x16d)](0x2),(_0x13ff82=this['_socketMessageSubscription'])==null||_0x13ff82['unsubscribe'](),this[_0x10fc54(0x249)]=null;}}});}[_0x406997(0x23b)](){const _0x1f19b4=_0x406997;var _0x4ca68d,_0x4b4864;return(_0x4ca68d=(_0x4b4864=this[_0x1f19b4(0x241)])==null?void 0x0:_0x4b4864[_0x1f19b4(0x3b5)])==null?null:_0x4ca68d;}[_0x406997(0x34b)](){const _0x25aea0=_0x406997;super[_0x25aea0(0x34b)](),this[_0x25aea0(0x29f)](),this[_0x25aea0(0x33c)][_0x25aea0(0x16d)](),this[_0x25aea0(0x33c)][_0x25aea0(0x2f1)]();}[_0x406997(0x29f)](){const _0x24f9bd=_0x406997;var _0x4e181e,_0x563649;this['_throwTelemetryCollaborationNewChangeset'](),(_0x4e181e=this[_0x24f9bd(0x241)])==null||_0x4e181e['send']({'cmd':o[_0x24f9bd(0x1dc)][_0x24f9bd(0x1a5)],'data':{'roomID':this[_0x24f9bd(0x3da)]}}),(_0x563649=this['_socket'])==null||_0x563649[_0x24f9bd(0x29f)](),this[_0x24f9bd(0x285)][_0x24f9bd(0x2f1)](),this[_0x24f9bd(0x23a)]['complete']();}[_0x406997(0x3e7)](_0x4b006f){const _0x4109d8=_0x406997;_0x4b006f[_0x4109d8(0x163)]===o[_0x4109d8(0x1dc)][_0x4109d8(0x1ad)]?this['_onJoinRoomEvent'](_0x4b006f):_0x4b006f['cmd']===o[_0x4109d8(0x1dc)]['RECV']&&this[_0x4109d8(0xfc)](_0x4b006f);}[_0x406997(0x3bb)](_0x593b3f){const _0x5f5a5e=_0x406997;this[_0x5f5a5e(0x23a)][_0x5f5a5e(0x16d)](0x1),_0x593b3f[_0x5f5a5e(0x218)]({'cmd':o[_0x5f5a5e(0x1dc)][_0x5f5a5e(0x1ad)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x5f5a5e(0x3da)]}]}});}['_onJoinRoomEvent'](_0x5c86cd){const _0x3d2124=_0x406997;var _0x314e84;if(_0x5c86cd['code']in ue){this[_0x3d2124(0x3ec)][_0x3d2124(0x343)]({'id':_0x3d2124(0x278),'data':ue[_0x5c86cd[_0x3d2124(0x334)]]}),this['_sessionStatus$'][_0x3d2124(0x16d)](0x2);return;}this[_0x3d2124(0x23a)][_0x3d2124(0x16d)](0x3);let _0x56080b=(_0x314e84=_0x5c86cd[_0x3d2124(0x379)][_0x3d2124(0x10c)][this[_0x3d2124(0x3da)]])==null?void 0x0:_0x314e84[_0x3d2124(0x255)];_0x56080b&&_0x56080b[_0x3d2124(0x1e5)](_0x2ffef6=>this[_0x3d2124(0x1fe)]['updateMember'](this[_0x3d2124(0x3da)],_0x2ffef6));}[_0x406997(0xfc)](_0x5a7de5){const _0x493ac4=_0x406997;try{let _0x3795b9=_0x5a7de5[_0x493ac4(0x379)];switch(_0x3795b9[_0x493ac4(0x2a1)]){case t[_0x493ac4(0x1fd)][_0x493ac4(0x396)]:this[_0x493ac4(0x182)](_0x3795b9),this[_0x493ac4(0x285)][_0x493ac4(0x16d)](_0x3795b9);break;case t[_0x493ac4(0x1fd)][_0x493ac4(0x148)]:this[_0x493ac4(0x22b)](_0x3795b9),this[_0x493ac4(0x285)]['next'](_0x3795b9);break;case t[_0x493ac4(0x1fd)]['CHANGESET_ACK']:case t[_0x493ac4(0x1fd)][_0x493ac4(0x27c)]:this[_0x493ac4(0x32b)](),this['_clearCollaborationTimeoutTimer'](),this[_0x493ac4(0x285)][_0x493ac4(0x16d)](_0x3795b9);break;case t['CollaborationEvent']['MSG_FOR_ERROR']:this[_0x493ac4(0x185)]['error'](_0x493ac4(0x2b2)+JSON[_0x493ac4(0x400)](_0x3795b9)),this[_0x493ac4(0x285)]['next'](_0x3795b9);break;case t[_0x493ac4(0x1fd)][_0x493ac4(0x27b)]:this[_0x493ac4(0x3de)][_0x493ac4(0x28c)](_0x3795b9[_0x493ac4(0x379)]),this[_0x493ac4(0x285)][_0x493ac4(0x16d)](_0x3795b9);break;default:this['_event$'][_0x493ac4(0x16d)](_0x3795b9);}}catch(_0x30253f){this[_0x493ac4(0x185)][_0x493ac4(0x2a8)](_0x30253f,_0x5a7de5);}}[_0x406997(0x182)](_0x1b0816){const _0x4e5431=_0x406997;this[_0x4e5431(0x1fe)]['updateMember'](this[_0x4e5431(0x3da)],_0x1b0816[_0x4e5431(0x379)]);}[_0x406997(0x22b)](_0x3cabd2){const _0x22341a=_0x406997;this[_0x22341a(0x1fe)]['removeMember'](this[_0x22341a(0x3da)],_0x3cabd2['data'][_0x22341a(0x3b5)]);}async[_0x406997(0x218)](_0x4cc570,_0x4cfc18){const _0x3b8d9d=_0x406997;if(this[_0x3b8d9d(0x24c)]!==0x3||!this[_0x3b8d9d(0x241)])throw Error(_0x3b8d9d(0x3e8));try{_0x4cc570[_0x3b8d9d(0x2a1)]===t[_0x3b8d9d(0x1fd)][_0x3b8d9d(0x3ba)]&&(this[_0x3b8d9d(0x24d)](),this[_0x3b8d9d(0x264)](_0x4cc570)),this[_0x3b8d9d(0x241)][_0x3b8d9d(0x218)]({'cmd':o[_0x3b8d9d(0x1dc)][_0x3b8d9d(0x156)],'routeKey':_0x4cfc18,'routeType':'','data':_0x4cc570});}catch(_0x3aab24){this[_0x3b8d9d(0x185)][_0x3b8d9d(0x2a8)](_0x3aab24);}}['_scheduleCollaborationTimeoutTimer'](){const _0x490e95=_0x406997;var _0x3b4a3a;this[_0x490e95(0x2f8)]=setTimeout(()=>{const _0x170771=_0x490e95;this[_0x170771(0x2f8)]=null,this[_0x170771(0x3ec)][_0x170771(0x343)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x3b4a3a=this[_0x490e95(0x102)][_0x490e95(0x2df)](_0x490e95(0x198)))==null?ne:_0x3b4a3a);}['_clearCollaborationTimeoutTimer'](){const _0x4e013e=_0x406997;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x4e013e(0x2f8)]),this[_0x4e013e(0x2f8)]=null);}[_0x406997(0x264)](_0x5d7cd1){const _0x49521a=_0x406997;if(!this[_0x49521a(0x1d1)])return;let {data:_0x1bc79a}=_0x5d7cd1,{unitID:_0x4fc6b5,changeset:_0x40de42}=_0x1bc79a,{mutations:_0x44a70f,type:_0x3d45e8}=_0x40de42;this['_telemetryInfo']={'unitId':_0x4fc6b5,'type':_0x3d45e8,'startTime':performance[_0x49521a(0x12e)](),'stopTime':0x0,'duration':0x0,'size':re(_0x44a70f)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x3ec909=_0x406997;if(this['_shouldReportTelemetry']){if(!this[_0x3ec909(0x101)]){this[_0x3ec909(0x185)]['error'](_0x3ec909(0x2c3),_0x3ec909(0x275));return;}this['_telemetryInfo'][_0x3ec909(0x3ca)]=performance[_0x3ec909(0x12e)](),this[_0x3ec909(0x101)][_0x3ec909(0x105)]=this[_0x3ec909(0x101)][_0x3ec909(0x3ca)]-this[_0x3ec909(0x101)][_0x3ec909(0x172)],this[_0x3ec909(0x287)][_0x3ec909(0x265)](_0x3ec909(0x313),this[_0x3ec909(0x101)]),this[_0x3ec909(0x101)]=null;}}[_0x406997(0x138)](){this['_telemetryInfo']=null;}};S=b([y(0x2,n[_0x406997(0x152)]),y(0x3,n['IConfigService']),y(0x4,(0x0,n[_0x406997(0x28e)])(x)),y(0x5,(0x0,n['Inject'])(se)),y(0x6,(0x0,n[_0x406997(0x28e)])(v)),y(0x7,(0x0,n[_0x406997(0x161)])(s[_0x406997(0x30e)]))],S);const C=(0x0,n[_0x406997(0x1bd)])(_0x406997(0x2e1));function de(_0x3abd13){const _0x1f2485=_0x406997;return _0x1f2485(0x364)+_0x3abd13;}function fe(_0x108b76){const _0x23d9c0=_0x406997;let {unitID:_0xb004cb,mutations:_0x3f9c5e}=_0x108b76;return{'unitId':_0xb004cb,'subUnitId':_0x3f9c5e[_0x23d9c0(0x327)]>0x0?_0x3f9c5e[0x0]['params'][_0x23d9c0(0x160)]:null};}let w=class{constructor(_0x15930b,_0x2ccfae,_0xc17864){const _0x492592=_0x406997;this[_0x492592(0x1cb)]=_0x15930b,this[_0x492592(0x34a)]=_0x2ccfae,this[_0x492592(0x253)]=_0xc17864;}[_0x406997(0x36d)](_0x13c417){const _0x344534=_0x406997;var _0x5bf341,_0xb2a357;let _0xd03828=this[_0x344534(0x1cb)]['get'](i['SheetsSelectionsService']),{unitId:_0x330f07,subUnitId:_0x3773b6}=fe(_0x13c417),_0x4cf9cf=_0xd03828==null?void 0x0:_0xd03828[_0x344534(0x1df)](_0x330f07)[_0x344534(0x401)](),_0x880a39=(_0x5bf341=this[_0x344534(0x253)][_0x344534(0x173)](_0x330f07))==null||(_0x5bf341=_0x5bf341[_0x344534(0x233)]())==null?void 0x0:_0x5bf341[_0x344534(0x2ec)]();if(_0x4cf9cf[_0x344534(0x327)]===0x0||!_0x330f07||!_0x3773b6)return;let _0x20ff92=[{'id':i['SetSelectionsOperation']['id'],'params':{'unitId':_0x330f07,'subUnitId':_0x880a39,'selections':n[_0x344534(0x1c6)][_0x344534(0x20d)](_0x4cf9cf)}}],_0x4e1a43=this[_0x344534(0x34a)][_0x344534(0x1ae)](_0x13c417,_0x20ff92);if(!(0x0,t[_0x344534(0x12b)])(_0x4e1a43))throw _0x4e1a43[_0x344534(0x2a8)];let _0x2ad1a0=(_0xb2a357=_0x4e1a43['m2Prime'][0x0])==null||(_0xb2a357=_0xb2a357[_0x344534(0x3d0)])==null?void 0x0:_0xb2a357[_0x344534(0x2b6)];if(Array[_0x344534(0xff)](_0x2ad1a0)&&_0x2ad1a0[_0x344534(0x327)]){if(_0x2ad1a0['length']===_0x20ff92[0x0]['params']['selections'][_0x344534(0x327)]&&_0x2ad1a0['every']((_0x3b56de,_0x40e87e)=>n[_0x344534(0x3fc)][_0x344534(0x206)](_0x3b56de[_0x344534(0x236)],_0x20ff92[0x0][_0x344534(0x3d0)][_0x344534(0x2b6)][_0x40e87e]['range'])))return;this[_0x344534(0x1cb)][_0x344534(0x284)](n['ICommandService'])['executeCommand'](i[_0x344534(0x2e6)]['id'],{'unitId':_0x330f07,'subUnitId':_0x880a39,'selections':_0x2ad1a0});}}};w=b([y(0x0,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x321)])),y(0x1,t[_0x406997(0x17d)]),y(0x2,n['IUniverInstanceService'])],w);const T=(0x0,n[_0x406997(0x1bd)])('univer-pro.collaboration-client.single-active-unit-service');let pe=function(_0x4336e6){const _0x2fafb2=_0x406997;return _0x4336e6[_0x4336e6[_0x2fafb2(0x3b2)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x4336e6[_0x4336e6['OTHER_CLIENTS_EDITING']=0x1]=_0x2fafb2(0x288),_0x4336e6;}({});function me(_0x5335d6){const _0x4adcdf=_0x406997;var _0x341867;return!!((_0x341867=_0x5335d6[_0x4adcdf(0x3d0)])!=null&&_0x341867[_0x4adcdf(0x3f3)]);}const he=new Set([i['InsertSheetMutation']['id']]),ge=new Set([l['AddSlidePageMutation']['id'],l['EnsureSlideMasterPageMutation']['id'],l[_0x406997(0x1d5)]['id'],l[_0x406997(0x33e)]['id']]);function _e(_0x149d33,_0x26ff8a=he){const _0x1a6cca=_0x406997;let _0x1f7bee=[];for(let _0x4f2463 of _0x149d33){if(_0x26ff8a[_0x1a6cca(0x22e)](_0x4f2463['id'])){if(_0x1f7bee[_0x1a6cca(0x327)]>0x0)break;_0x1f7bee['push'](_0x4f2463);break;}if(me(_0x4f2463)){if(_0x1f7bee[_0x1a6cca(0x327)]>0x0)break;_0x1f7bee[_0x1a6cca(0x1db)](_0x4f2463);break;}_0x1f7bee[_0x1a6cca(0x1db)](_0x4f2463);}return _0x1f7bee;}function ve(_0x58f9cf,_0x570822,_0x4d80c5,_0x22b09b,_0x2c4ce1){const _0x4d5344=_0x406997;var _0xc51c13,_0x36b132,_0x4cf49d,_0x235393;let _0x4e5fe1=_e(_0x58f9cf),_0x1495c6=(_0xc51c13=(_0x36b132=_0x2c4ce1['getCurrentUser']())==null?void 0x0:_0x36b132[_0x4d5344(0x1e3)])==null?_0x4d5344(0x338):_0xc51c13,_0xf9b1e=(_0x4cf49d=(_0x235393=_0x2c4ce1['getCurrentUser']())==null?void 0x0:_0x235393[_0x4d5344(0x3b5)])==null?'unknown':_0x4cf49d;return{'changeset':{'unitID':_0x570822,'type':(0x0,t[_0x4d5344(0x37e)])(_0x4d80c5['getUnitType'](_0x570822)),'baseRev':_0x22b09b[_0x4d5344(0x196)](_0x570822),'revision':0x0,'userID':_0x1495c6,'memberID':_0xf9b1e,'mutations':_0x4e5fe1},'pendingMutations':_0x58f9cf[_0x4d5344(0x24a)](_0x4e5fe1[_0x4d5344(0x327)])};}const ye=ve;function be(_0x5c721d,_0x5af1ac,_0x57d2a7,_0x48c9b6,_0x10f6db){return ve(_0x5c721d,_0x5af1ac,_0x57d2a7,_0x48c9b6,_0x10f6db);}function xe(_0x30a725,_0x17e192,_0x26aaf6,_0x566c88,_0x253d88){const _0x1c6095=_0x406997;var _0x40b3e6,_0xe61ca9,_0x291e69,_0x31b265;let _0x3d44cb=_e(_0x30a725,ge),_0x2b349e=(_0x40b3e6=(_0xe61ca9=_0x253d88['getCurrentUser']())==null?void 0x0:_0xe61ca9[_0x1c6095(0x1e3)])==null?_0x1c6095(0x338):_0x40b3e6,_0x123425=(_0x291e69=(_0x31b265=_0x253d88['getCurrentUser']())==null?void 0x0:_0x31b265[_0x1c6095(0x3b5)])==null?_0x1c6095(0x338):_0x291e69;return{'changeset':{'unitID':_0x17e192,'type':(0x0,t[_0x1c6095(0x37e)])(_0x26aaf6[_0x1c6095(0x1f0)](_0x17e192)),'baseRev':_0x566c88[_0x1c6095(0x196)](_0x17e192),'revision':0x0,'userID':_0x2b349e,'memberID':_0x123425,'mutations':_0x3d44cb},'pendingMutations':_0x30a725['slice'](_0x3d44cb[_0x1c6095(0x327)])};}function Se(_0x5baea7,_0x528bc6,_0x3dc168,_0x4f2deb,_0x1c6df3){const _0x583a14=_0x406997;var _0x565f7e,_0x439dec,_0x2af608,_0x2bd82b;let _0x35a6ed=_0x5baea7['reduce']((_0xf35f8d,_0x1c7ecc)=>{const _0x42954d=_0xcc0c;let _0x1138e3=_0xf35f8d[_0xf35f8d[_0x42954d(0x327)]-0x1],{id:_0x1ffef2}=_0x1138e3==null?{}:_0x1138e3,{id:_0x1bc92a,type:_0x4a415c}=_0x1c7ecc,_0x3372d2=_0x1c7ecc['params'];if(_0x1ffef2&&_0x1ffef2!==_0x1bc92a)throw Error(_0x42954d(0x269)+_0x1ffef2+_0x42954d(0x316)+_0x1bc92a+'.');if(!_0x1138e3)return[{'id':_0x1bc92a,'type':_0x4a415c,'params':{'unitId':_0x3372d2[_0x42954d(0x3ff)],'textRanges':_0x3372d2[_0x42954d(0x2a5)],'actions':_0x3372d2[_0x42954d(0x371)]}}];let _0x2f3fac=_0x1138e3[_0x42954d(0x3d0)];return Ce(_0x2f3fac[_0x42954d(0x371)],_0x3372d2[_0x42954d(0x371)])?[..._0xf35f8d[_0x42954d(0x24a)](0x0,-0x1),{..._0x1138e3,'id':_0x1bc92a,'type':_0x4a415c,'params':{'unitId':_0x3372d2['unitId'],'textRanges':_0x3372d2[_0x42954d(0x2a5)],'actions':n[_0x42954d(0x27e)][_0x42954d(0x348)](_0x2f3fac[_0x42954d(0x371)],_0x3372d2[_0x42954d(0x371)])}}]:[..._0xf35f8d,{'id':_0x1bc92a,'type':_0x4a415c,'params':{'unitId':_0x3372d2[_0x42954d(0x3ff)],'textRanges':_0x3372d2[_0x42954d(0x2a5)],'actions':_0x3372d2['actions']}}];},[]),_0xe74434=(_0x565f7e=(_0x439dec=_0x1c6df3['getCurrentUser']())==null?void 0x0:_0x439dec[_0x583a14(0x1e3)])==null?'unknown':_0x565f7e,_0xbfe173=(_0x2af608=(_0x2bd82b=_0x1c6df3[_0x583a14(0x2a9)]())==null?void 0x0:_0x2bd82b[_0x583a14(0x3b5)])==null?_0x583a14(0x338):_0x2af608;return{'changeset':{'unitID':_0x528bc6,'type':(0x0,t[_0x583a14(0x37e)])(_0x3dc168[_0x583a14(0x1f0)](_0x528bc6)),'baseRev':_0x4f2deb['getCurrentRevOfUnit'](_0x528bc6),'revision':0x0,'userID':_0xe74434,'memberID':_0xbfe173,'mutations':_0x35a6ed},'pendingMutations':_0x5baea7[_0x583a14(0x24a)](_0x5baea7[_0x583a14(0x327)])};}function Ce(_0x1942d2,_0xb880e0){return we(_0x1942d2)&&we(_0xb880e0)&&!Te(_0x1942d2)&&!Te(_0xb880e0);}function we(_0x3e0b54){const _0xe05e95=_0x406997;return Ee(_0x3e0b54)[_0xe05e95(0x2af)](_0x41923e=>De(_0x41923e)&&_0x41923e['et']===_0xe05e95(0x1ff));}function Te(_0x29096c){const _0x55b3c3=_0x406997;return Ee(_0x29096c)[_0x55b3c3(0x2af)](_0x500611=>Array[_0x55b3c3(0xff)](_0x500611)||typeof _0x500611=='string'||typeof _0x500611==_0x55b3c3(0x38b));}function Ee(_0x4f0b90){const _0x4f4fe7=_0x406997;if(!Array['isArray'](_0x4f0b90))return[];let _0x242841=_0x4f0b90[_0x4f4fe7(0x16e)](_0x4f4fe7(0x1c7))?_0x4f0b90:_0x4f0b90[_0x4f4fe7(0x312)](_0x5f1fc6=>Array['isArray'](_0x5f1fc6)&&_0x5f1fc6['includes'](_0x4f4fe7(0x1c7)));if(!Array[_0x4f4fe7(0xff)](_0x242841))return[];let _0x63c8a5=_0x242841[_0x4f4fe7(0x311)]('body');return _0x63c8a5===-0x1?[]:_0x242841[_0x4f4fe7(0x24a)](_0x63c8a5+0x1);}function De(_0x41bb76){return typeof _0x41bb76=='object'&&!!_0x41bb76&&!Array['isArray'](_0x41bb76);}function Oe(_0x11945d,_0x3e4ee6){const _0x3566a6=_0x406997;let _0x13b93f=new a['ReplaySubject'](0x1);return setTimeout(()=>_0x13b93f[_0x3566a6(0x16d)](_0x3e4ee6),_0x11945d),_0x13b93f[_0x3566a6(0x1c0)]()[_0x3566a6(0x119)]((0x0,a[_0x3566a6(0x2f9)])(0x1));}var E,D,O;let ke=function(_0x10bd2a){const _0x3c72f3=_0x406997;return _0x10bd2a['NOT_COLLAB']='not_collab',_0x10bd2a['SYNCED']=_0x3c72f3(0x26b),_0x10bd2a[_0x3c72f3(0x19b)]='pending',_0x10bd2a['AWAITING']=_0x3c72f3(0x2d4),_0x10bd2a[_0x3c72f3(0x2b3)]=_0x3c72f3(0x1e4),_0x10bd2a[_0x3c72f3(0x154)]=_0x3c72f3(0x1ed),_0x10bd2a[_0x3c72f3(0x268)]=_0x3c72f3(0x115),_0x10bd2a[_0x3c72f3(0x183)]='offline',_0x10bd2a;}({});const Ae=0x4e20,je=0x2bf20;var k=class{constructor(_0xa31290,_0x22606e,_0x4cb861,_0x4d7447,_0x113bd1,_0x41c3a3,_0x11280a,_0x3e14ca,_0x109e36){const _0x2fa9ba=_0x406997;this[_0x2fa9ba(0x187)]=_0xa31290,this['type']=_0x22606e,this[_0x2fa9ba(0x276)]=_0x113bd1,this['_commandService']=_0x41c3a3,this[_0x2fa9ba(0x3d5)]=_0x11280a,this[_0x2fa9ba(0x12c)]=_0x3e14ca,this[_0x2fa9ba(0x2ce)]=_0x109e36,_(this,_0x2fa9ba(0x1b7),null),_(this,_0x2fa9ba(0x240),[]),this[_0x2fa9ba(0x1b7)]=_0x4cb861,this[_0x2fa9ba(0x240)]=_0x4d7447;}[_0x406997(0x2ff)](_0x4ffe88){const _0x292b72=_0x406997;let _0x445df9=this['_revisionService']['getCurrentRevOfUnit'](this[_0x292b72(0x187)]);return _0x4ffe88[_0x292b72(0x340)]>_0x445df9+0x1?(this['_handler'][_0x292b72(0x107)]({'from':_0x445df9,'to':_0x4ffe88[_0x292b72(0x340)]-0x1}),!0x0):!0x1;}[_0x406997(0x124)](_0x556dfb){const _0x4768fb=_0x406997;this[_0x4768fb(0x3d5)][_0x4768fb(0x11c)](this[_0x4768fb(0x187)],_0x556dfb);}['_transformSelections'](_0xdc5316){const _0x277e6e=_0x406997;var _0x43be56,_0xdfd619;(_0x43be56=(_0xdfd619=this[_0x277e6e(0x276)])['onTransformSelections'])==null||_0x43be56[_0x277e6e(0x3d6)](_0xdfd619,_0xdc5316);}[_0x406997(0x14d)](_0xbaecb0){const _0x5d94a2=_0x406997;var _0x3eb217,_0x22d144;return(_0x3eb217=(_0x22d144=this[_0x5d94a2(0x276)])[_0x5d94a2(0x3f8)])==null?void 0x0:_0x3eb217[_0x5d94a2(0x3d6)](_0x22d144,_0xbaecb0);}['_transformStateCache'](_0x5c1fcc){const _0x21b196=_0x406997;var _0x40b997,_0x261ce8;return(_0x40b997=(_0x261ce8=this[_0x21b196(0x276)])[_0x21b196(0x26c)])==null?void 0x0:_0x40b997[_0x21b196(0x3d6)](_0x261ce8,_0x5c1fcc);}[_0x406997(0x320)](_0x2c73da){var _0x19b848,_0x39fa1a,_0x3a15fd;return(_0x19b848=(_0x39fa1a=(_0x3a15fd=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x39fa1a['call'](_0x3a15fd,_0x2c73da))==null?_0x2c73da:_0x19b848;}[_0x406997(0x35e)](_0x33d99f){const _0x44ffe2=_0x406997;var _0x4a17ca,_0x552bbb,_0x15911a;return(_0x4a17ca=(_0x552bbb=(_0x15911a=this[_0x44ffe2(0x276)])[_0x44ffe2(0x360)])==null?void 0x0:_0x552bbb[_0x44ffe2(0x3d6)](_0x15911a,_0x33d99f))==null?_0x33d99f:_0x4a17ca;}[_0x406997(0x2e2)](_0x45d6df){const _0x34adeb=_0x406997;if(this[_0x34adeb(0x132)]===n['UniverInstanceType'][_0x34adeb(0x332)]){let {unitID:_0x136970,mutations:_0x46a165,memberID:_0x5e07e9}=_0x45d6df,_0x60bad6=_0x46a165[_0x34adeb(0x327)]>0x0?_0x46a165[0x0][_0x34adeb(0x3d0)][_0x34adeb(0x2a5)]:[];if(Array[_0x34adeb(0xff)](_0x60bad6)&&_0x60bad6[_0x34adeb(0x327)]>0x0){var _0x40520c,_0x42097c;(_0x40520c=(_0x42097c=this[_0x34adeb(0x276)])[_0x34adeb(0x15d)])==null||_0x40520c['call'](_0x42097c,{'unitID':_0x136970,'memberID':_0x5e07e9,'textRanges':_0x60bad6});}}}['_updateLocalCache'](){const _0x8b67f3=_0x406997;var _0x5e7088;(_0x5e7088=this[_0x8b67f3(0x2ce)])==null||_0x5e7088['updateOfflineData'](this[_0x8b67f3(0x187)],this[_0x8b67f3(0x132)],this[_0x8b67f3(0x1b7)],this[_0x8b67f3(0x240)]);}['_getCurrentRevision'](){const _0x58f923=_0x406997;return this[_0x58f923(0x12c)][_0x58f923(0x196)](this[_0x58f923(0x187)]);}[_0x406997(0x1d6)](){const _0x1fd9d1=_0x406997;this[_0x1fd9d1(0x12c)]['incrementRevOfUnit'](this[_0x1fd9d1(0x187)]);}[_0x406997(0x3d1)](_0xb8599c){const _0x5c5157=_0x406997;let _0x1c293c=this['_transformRemoteChangesetByIMECache'](_0xb8599c);_0x1c293c=this[_0x5c5157(0x35e)](_0x1c293c);let _0x38982b=(0x0,n['sequenceExecute'])(_0x1c293c[_0x5c5157(0x393)],this['_commandService'],{'fromCollab':!0x0});if(!_0x38982b[_0x5c5157(0x3f9)]){var _0x222f1c;throw _0x38982b['error']instanceof Error?_0x38982b[_0x5c5157(0x2a8)]:Error((_0x222f1c=_0x38982b[_0x5c5157(0x2a8)])==null?_0x5c5157(0x394):_0x222f1c);}this[_0x5c5157(0x14d)](_0x1c293c),this['_transformStateCache'](_0x1c293c),this['_transformUndoredo'](_0xb8599c),this['_transformSelections'](_0x1c293c),this[_0x5c5157(0x2e2)](_0x1c293c),this[_0x5c5157(0x1d6)]();}};let A=class extends k{constructor(_0x301cd3,_0x3e1b2c,_0x23365e,_0xf76f87,_0x1d7ac8,_0x28e631,_0x3d3eab,_0x12cf83,_0x4fde3e,_0x46892a){const _0x13f166=_0x406997;super(_0x301cd3,_0x3e1b2c,null,[],_0x23365e,_0x3d3eab,_0x28e631,_0xf76f87,_0x46892a),this[_0x13f166(0x1cb)]=_0x1d7ac8,this[_0x13f166(0x185)]=_0x12cf83,this[_0x13f166(0x34a)]=_0x4fde3e,this[_0x13f166(0x1c4)]=_0x46892a,_(this,_0x13f166(0x2a6),_0x13f166(0x26b));}[_0x406997(0x3b7)](_0x179e9e){const _0x34363c=_0x406997;let _0x22b50e=this[_0x34363c(0x1cb)]['createInstance'](j,this[_0x34363c(0x187)],this[_0x34363c(0x132)],[_0x179e9e],this[_0x34363c(0x276)]);return _0x22b50e[_0x34363c(0x351)](),_0x22b50e[_0x34363c(0x1dd)](),_0x22b50e;}[_0x406997(0x3a1)](_0x7a7ba){const _0x1c4333=_0x406997;if(this['_checkMissing'](_0x7a7ba))return this[_0x1c4333(0x1cb)][_0x1c4333(0x244)](I,this[_0x1c4333(0x187)],this['type'],null,[],null,[_0x7a7ba],this['_handler']);try{let _0x434b8a=this[_0x1c4333(0x34a)][_0x1c4333(0x1ae)](_0x7a7ba,[t[_0x1c4333(0x3a0)]]);if((0x0,t['isTransformMutationsWithChangesetSuccess'])(_0x434b8a)){let {c1Prime:_0x59e1a9}=_0x434b8a;return this[_0x1c4333(0x3d1)](_0x59e1a9),this;}throw _0x434b8a['error'];}catch(_0x5470f4){return this[_0x1c4333(0x185)]['error'](_0x5470f4),this[_0x1c4333(0x3e6)](!0x1);}}[_0x406997(0x3e6)](_0x2675ae){const _0x4190b0=_0x406997;return this[_0x4190b0(0x1cb)][_0x4190b0(0x244)](P,this[_0x4190b0(0x187)],this[_0x4190b0(0x132)],null,[],this[_0x4190b0(0x276)],_0x2675ae);}[_0x406997(0x2a3)](_0x456911){const _0x2ac2d8=_0x406997;if(_0x456911[_0x2ac2d8(0x340)]<=this['_getCurrentRevision']())return this;throw Error(_0x2ac2d8(0x38c));}[_0x406997(0x166)](){const _0x499d79=_0x406997;throw Error(_0x499d79(0x292));}[_0x406997(0x1f7)](){return this;}['toggleOffline'](){const _0x573f72=_0x406997;return this[_0x573f72(0x1cb)]['createInstance'](F,this[_0x573f72(0x187)],this[_0x573f72(0x132)],null,[],this[_0x573f72(0x276)]);}[_0x406997(0x18d)](){return this;}['resend'](){const _0x2597bc=_0x406997;throw Error(_0x2597bc(0x309));}[_0x406997(0x2b9)](){const _0xc72fda=_0x406997;let _0x3a07ae=this[_0xc72fda(0x12c)]['getCurrentRevOfUnit'](this[_0xc72fda(0x187)]);return this['_handler'][_0xc72fda(0x107)]({'from':_0x3a07ae,'to':0x0}),this[_0xc72fda(0x1cb)][_0xc72fda(0x244)](I,this[_0xc72fda(0x187)],this[_0xc72fda(0x132)],null,[],null,[],this[_0xc72fda(0x276)]);}};A=b([y(0x3,(0x0,n[_0x406997(0x28e)])(t['RevisionService'])),y(0x4,(0x0,n['Inject'])(n['Injector'])),y(0x5,n[_0x406997(0x16f)]),y(0x6,n['ICommandService']),y(0x7,n[_0x406997(0x152)]),y(0x8,t[_0x406997(0x17d)]),y(0x9,(0x0,n[_0x406997(0x161)])(C))],A);let j=E=class extends k{constructor(_0x111913,_0x5b4e1c,_0x468ad2,_0x330655,_0x45a6fc,_0x303cde,_0xcb41c3,_0x119e24,_0x479bd4,_0x325ea8,_0x88e54c,_0xeadd73,_0x2e16e4,_0x403bd9){const _0x3833b8=_0x406997;super(_0x111913,_0x5b4e1c,null,_0x468ad2,_0x330655,_0x479bd4,_0x2e16e4,_0x303cde,_0x403bd9),this['_injector']=_0x45a6fc,this[_0x3833b8(0x1fe)]=_0xcb41c3,this['_logService']=_0x119e24,this[_0x3833b8(0x102)]=_0x325ea8,this[_0x3833b8(0x34a)]=_0x88e54c,this['_univerInstanceService']=_0xeadd73,_(this,'status',_0x3833b8(0x3cd)),_(this,'_scheduleCompleteTimestamp',null),_(this,'_sendingTimer',null);}[_0x406997(0x3b7)](_0x5650ad){const _0x556346=_0x406997;return this[_0x556346(0x240)]['push'](_0x5650ad),this[_0x556346(0x1dd)](),this;}[_0x406997(0x3a1)](_0x3464a7){const _0xaa95e9=_0x406997;if(this[_0xaa95e9(0x2ff)](_0x3464a7))return this['_clearScheduledTask'](),this[_0xaa95e9(0x1cb)][_0xaa95e9(0x244)](I,this[_0xaa95e9(0x187)],this[_0xaa95e9(0x132)],null,this[_0xaa95e9(0x240)],null,[_0x3464a7],this[_0xaa95e9(0x276)]);try{let _0x28460c=this[_0xaa95e9(0x34a)]['transformMutationsWithChangeset'](_0x3464a7,this[_0xaa95e9(0x240)]);if((0x0,t[_0xaa95e9(0x12b)])(_0x28460c)){let {c1Prime:_0x3e215b,m2Prime:_0x4feb5a}=_0x28460c;this['_executeRemoteChangeset'](_0x3e215b);let _0x25a923=this[_0xaa95e9(0x1cb)][_0xaa95e9(0x244)](E,this['unitID'],this[_0xaa95e9(0x132)],_0x4feb5a,this[_0xaa95e9(0x276)]);this[_0xaa95e9(0x104)]();let _0x3d6cac=new Date()[_0xaa95e9(0x228)](),_0x3494ed=this[_0xaa95e9(0x372)]?Math['max'](this['_scheduleCompleteTimestamp']-_0x3d6cac,0x0):this[_0xaa95e9(0x3ce)]();return _0x25a923['_schedule'](_0x3494ed),_0x25a923;}throw _0x28460c[_0xaa95e9(0x2a8)];}catch(_0x31814c){return this[_0xaa95e9(0x185)][_0xaa95e9(0x2a8)](_0x31814c),this['_onConflict'](!0x1);}}[_0x406997(0x2a3)](_0xa5caf8){const _0x1fc60c=_0x406997;if(_0xa5caf8[_0x1fc60c(0x340)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x406997(0x166)](){const _0x26d319=_0x406997;throw Error(_0x26d319(0x324));}[_0x406997(0x1f7)](){return this;}[_0x406997(0x15e)](){const _0x2d0a83=_0x406997;return this['_clearScheduledTask'](),this[_0x2d0a83(0x1cb)][_0x2d0a83(0x244)](F,this[_0x2d0a83(0x187)],this[_0x2d0a83(0x132)],null,this[_0x2d0a83(0x240)],this[_0x2d0a83(0x276)]);}['toggleOnline'](){return this;}[_0x406997(0x351)](_0x75778b){const _0x62e0f8=_0x406997;let _0x148c2c=_0x75778b==null?this[_0x62e0f8(0x3ce)]():_0x75778b;this[_0x62e0f8(0x372)]=new Date()[_0x62e0f8(0x228)]()+_0x148c2c,this[_0x62e0f8(0x242)]=setTimeout(()=>{const _0x3affbf=_0x62e0f8;this[_0x3affbf(0x104)]();let _0x5e337b=null;switch(this['type']){case n[_0x3affbf(0x127)][_0x3affbf(0x225)]:_0x5e337b=ye(this[_0x3affbf(0x240)],this['unitID'],this[_0x3affbf(0x2ee)],this[_0x3affbf(0x12c)],this[_0x3affbf(0x1fe)]);break;case n['UniverInstanceType']['UNIVER_DOC']:_0x5e337b=this[_0x3affbf(0x240)]['every'](_0x237b22=>_0x237b22['id']===r[_0x3affbf(0x30b)]['id'])?Se(this[_0x3affbf(0x240)],this[_0x3affbf(0x187)],this[_0x3affbf(0x2ee)],this[_0x3affbf(0x12c)],this[_0x3affbf(0x1fe)]):ye(this[_0x3affbf(0x240)],this[_0x3affbf(0x187)],this['_univerInstanceService'],this[_0x3affbf(0x12c)],this[_0x3affbf(0x1fe)]);break;case n[_0x3affbf(0x127)][_0x3affbf(0x3bf)]:_0x5e337b=xe(this[_0x3affbf(0x240)],this[_0x3affbf(0x187)],this[_0x3affbf(0x2ee)],this[_0x3affbf(0x12c)],this[_0x3affbf(0x1fe)]);break;case n[_0x3affbf(0x127)]['UNIVER_BASE']:_0x5e337b=be(this[_0x3affbf(0x240)],this['unitID'],this[_0x3affbf(0x2ee)],this[_0x3affbf(0x12c)],this[_0x3affbf(0x1fe)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x3affbf(0x132)]+'\x20in\x20_schedule.');}let {changeset:_0x3b44e7,pendingMutations:_0xd16393}=_0x5e337b;this[_0x3affbf(0x276)][_0x3affbf(0x2e7)](_0x3b44e7);let _0x4ed296=_0xd16393[_0x3affbf(0x327)]?this['_injector'][_0x3affbf(0x244)](N,this['unitID'],this[_0x3affbf(0x132)],_0x3b44e7,_0xd16393,this[_0x3affbf(0x276)],void 0x0):this[_0x3affbf(0x1cb)][_0x3affbf(0x244)](M,this['unitID'],this[_0x3affbf(0x132)],_0x3b44e7,this[_0x3affbf(0x276)]);_0x4ed296['_updateLocalCache'](),this[_0x3affbf(0x276)][_0x3affbf(0x323)](this,_0x4ed296);},_0x148c2c);}[_0x406997(0x3ce)](){const _0x4c66e3=_0x406997;var _0x3a9979;let _0x7a529c=this[_0x4c66e3(0x102)][_0x4c66e3(0x2df)](h);return(_0x3a9979=_0x7a529c==null?void 0x0:_0x7a529c[_0x4c66e3(0x388)])==null?0x7d0:_0x3a9979;}['resend'](){const _0x11f67b=_0x406997;throw Error(_0x11f67b(0x286));}['_clearScheduledTask'](){const _0x39e95d=_0x406997;this[_0x39e95d(0x242)]!=null&&(clearTimeout(this[_0x39e95d(0x242)]),this[_0x39e95d(0x242)]=null);}['_onConflict'](_0x39f569){const _0x495c53=_0x406997;return this[_0x495c53(0x104)](),this[_0x495c53(0x1cb)]['createInstance'](P,this[_0x495c53(0x187)],this['type'],null,this[_0x495c53(0x240)],this[_0x495c53(0x276)],_0x39f569);}};j=E=b([y(0x4,(0x0,n['Inject'])(n[_0x406997(0x321)])),y(0x5,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x137)])),y(0x6,(0x0,n[_0x406997(0x28e)])(x)),y(0x7,n[_0x406997(0x152)]),y(0x8,n[_0x406997(0x1f2)]),y(0x9,n[_0x406997(0x262)]),y(0xa,t['ITransformService']),y(0xb,n['IUniverInstanceService']),y(0xc,n['IUndoRedoService']),y(0xd,(0x0,n[_0x406997(0x161)])(C))],j);let M=D=class extends k{constructor(_0x42447d,_0x38011b,_0x566360,_0x257b91,_0x583272,_0x59ed2a,_0x1e2d80,_0x42663a,_0x4cc0b2,_0x3a9621,_0x1e798d){const _0xbd5473=_0x406997;super(_0x42447d,_0x38011b,_0x566360,[],_0x257b91,_0x1e2d80,_0x3a9621,_0x59ed2a,_0x1e798d),this['_injector']=_0x583272,this[_0xbd5473(0x185)]=_0x42663a,this[_0xbd5473(0x34a)]=_0x4cc0b2,_(this,_0xbd5473(0x2a6),'awaiting'),_(this,'_resendTimeout',0x0),_(this,'_maxTotalRetryTimeout',0x0),_(this,'_resendTimer',void 0x0),_(this,_0xbd5473(0x230),void 0x0);}[_0x406997(0x3b7)](_0x3d4f75){const _0x3a8179=_0x406997;this[_0x3a8179(0x104)]();let _0x4a2766=this[_0x3a8179(0x1cb)]['createInstance'](N,this[_0x3a8179(0x187)],this[_0x3a8179(0x132)],this['_awaitingChangeset'],[_0x3d4f75],this['_handler'],this[_0x3a8179(0x16a)]);return _0x4a2766[_0x3a8179(0x1dd)](),_0x4a2766;}[_0x406997(0x3a1)](_0x20ae84){const _0x3240c4=_0x406997;if(this[_0x3240c4(0x2ff)](_0x20ae84))return this[_0x3240c4(0x104)](),this[_0x3240c4(0x1cb)][_0x3240c4(0x244)](I,this[_0x3240c4(0x187)],this[_0x3240c4(0x132)],this[_0x3240c4(0x1b7)],[],null,[_0x20ae84],this['_handler']);try{let _0x29e709=this[_0x3240c4(0x34a)]['transformChangesets']([_0x20ae84],[this[_0x3240c4(0x1b7)]],!0x1);if((0x0,t[_0x3240c4(0x248)])(_0x29e709)){let {c1Prime:_0x20f483,c2Prime:_0x227b42}=_0x29e709;this[_0x3240c4(0x3d1)](_0x20f483[0x0]),_0x227b42[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x3240c4(0x104)]();let _0x2db640=this[_0x3240c4(0x1cb)][_0x3240c4(0x244)](D,this[_0x3240c4(0x187)],this[_0x3240c4(0x132)],_0x227b42[0x0],this[_0x3240c4(0x276)]);return _0x2db640[_0x3240c4(0x1dd)](),_0x2db640;}throw _0x29e709['error'];}catch(_0x801f0b){return this[_0x3240c4(0x185)]['error'](_0x801f0b),this['_onConflict'](!0x1);}}[_0x406997(0x2a3)](_0x477822){const _0x2fdd71=_0x406997;this[_0x2fdd71(0x104)]();let _0x31b726=this[_0x2fdd71(0x12c)]['getCurrentRevOfUnit'](this['unitID']);if(_0x477822[_0x2fdd71(0x340)]<=_0x31b726)return this;if(this[_0x2fdd71(0x2ff)](_0x477822))return this[_0x2fdd71(0x1cb)]['createInstance'](I,this[_0x2fdd71(0x187)],this[_0x2fdd71(0x132)],this['_awaitingChangeset'],[],_0x477822[_0x2fdd71(0x340)],[],this[_0x2fdd71(0x276)]);this[_0x2fdd71(0x1d6)]();let _0x36c7cd=this[_0x2fdd71(0x1cb)][_0x2fdd71(0x244)](A,this['unitID'],this[_0x2fdd71(0x132)],this[_0x2fdd71(0x276)]);return _0x36c7cd[_0x2fdd71(0x1dd)](),_0x36c7cd;}['onRemoteRej'](_0x523d1b){const _0x1353c9=_0x406997;return this[_0x1353c9(0x3e6)](!!(_0x523d1b!=null&&_0x523d1b[_0x1353c9(0x3a5)]));}['onRemoteRetry'](_0x10b245){const _0x20e57c=_0x406997;return this['_maxTotalRetryTimeout']>je?this[_0x20e57c(0x15e)]():(this['_resendTimer']=Oe(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x10b245[_0x20e57c(0x223)]}),this[_0x20e57c(0x230)]=this[_0x20e57c(0x16a)][_0x20e57c(0x3e5)](({reqId:_0xf307ac,timeout:_0x30375d})=>{this['_resendWithTimeout'](_0xf307ac,_0x30375d);}),this);}[_0x406997(0x15e)](){const _0x28b5d5=_0x406997;return this['_clearScheduledTask'](),this[_0x28b5d5(0x1cb)]['createInstance'](F,this['unitID'],this[_0x28b5d5(0x132)],this[_0x28b5d5(0x1b7)],[],this['_handler']);}[_0x406997(0x18d)](){return this;}[_0x406997(0x2a0)](){const _0x3ee7e4=_0x406997;this[_0x3ee7e4(0x276)]['onSendChangeset'](this[_0x3ee7e4(0x1b7)]);}[_0x406997(0x3e6)](_0x17043a){const _0x478c00=_0x406997;return this[_0x478c00(0x104)](),this[_0x478c00(0x1cb)][_0x478c00(0x244)](P,this[_0x478c00(0x187)],this['type'],this[_0x478c00(0x1b7)],[],this[_0x478c00(0x276)],_0x17043a);}[_0x406997(0x1a9)](_0x3beda1,_0x60792e){const _0x35c766=_0x406997;var _0x3f6127;_0x3beda1===((_0x3f6127=this[_0x35c766(0x1b7)])==null?void 0x0:_0x3f6127[_0x35c766(0x223)])&&(this[_0x35c766(0x2a0)](),this[_0x35c766(0x25a)]=_0x60792e===0x0?0x3e8:Math[_0x35c766(0x39d)](_0x60792e*0x2,Ae),this[_0x35c766(0x38a)]+=this[_0x35c766(0x25a)]);}[_0x406997(0x104)](){const _0x973c4e=_0x406997;var _0x112f27;(_0x112f27=this[_0x973c4e(0x230)])==null||_0x112f27['unsubscribe'](),this['_resendTimeout']=0x0,this[_0x973c4e(0x38a)]=0x0;}};M=D=b([y(0x4,(0x0,n['Inject'])(n[_0x406997(0x321)])),y(0x5,(0x0,n[_0x406997(0x28e)])(t['RevisionService'])),y(0x6,n[_0x406997(0x1f2)]),y(0x7,n['ILogService']),y(0x8,t[_0x406997(0x17d)]),y(0x9,n[_0x406997(0x16f)]),y(0xa,(0x0,n[_0x406997(0x161)])(C))],M);let N=O=class extends k{constructor(_0x5e5db9,_0xa0be7f,_0x8a3e23,_0x36bcec,_0x46c01,_0x497269,_0x3d9449,_0x5940b3,_0x3f5f47,_0x51e7bd,_0x127a82,_0x4f13f4,_0x4f728b){const _0x51d6c9=_0x406997;super(_0x5e5db9,_0xa0be7f,_0x8a3e23,_0x36bcec,_0x46c01,_0x3f5f47,_0x4f13f4,_0x5940b3,_0x4f728b),this[_0x51d6c9(0x1cb)]=_0x3d9449,this['_logService']=_0x51e7bd,this[_0x51d6c9(0x34a)]=_0x127a82,this[_0x51d6c9(0x1c4)]=_0x4f728b,_(this,'status',_0x51d6c9(0x1e4)),_(this,_0x51d6c9(0x25a),0x0),_(this,_0x51d6c9(0x38a),0x0),_(this,_0x51d6c9(0x16a),void 0x0),_(this,_0x51d6c9(0x230),void 0x0),_0x497269&&(this[_0x51d6c9(0x16a)]=_0x497269,this[_0x51d6c9(0x230)]=this[_0x51d6c9(0x16a)][_0x51d6c9(0x3e5)](({reqId:_0x9fff8f,timeout:_0x7e38ac})=>{const _0x403ca4=_0x51d6c9;this[_0x403ca4(0x1a9)](_0x9fff8f,_0x7e38ac);}));}['appendMutation'](_0x5f55b1){const _0x4638a7=_0x406997;return this['_pendingMutations'][_0x4638a7(0x1db)](_0x5f55b1),this;}[_0x406997(0x3a1)](_0x5a1ade){const _0x76a6e=_0x406997;if(this[_0x76a6e(0x2ff)](_0x5a1ade))return this[_0x76a6e(0x104)](),this[_0x76a6e(0x1cb)][_0x76a6e(0x244)](I,this['unitID'],this[_0x76a6e(0x132)],this[_0x76a6e(0x1b7)],this[_0x76a6e(0x240)],null,[_0x5a1ade],this[_0x76a6e(0x276)]);try{let _0x489251=this[_0x76a6e(0x34a)][_0x76a6e(0x353)]([_0x5a1ade],[this[_0x76a6e(0x1b7)]],!0x1);if((0x0,t['isTransformChangesetsSuccess'])(_0x489251)){let {c1Prime:_0x1d89f0,c2Prime:_0x564887}=_0x489251,_0xdc7ea6=this[_0x76a6e(0x34a)]['transformMutationsWithChangeset'](_0x1d89f0[0x0],this['_pendingMutations']);if((0x0,t[_0x76a6e(0x12b)])(_0xdc7ea6)){let {c1Prime:_0x587580,m2Prime:_0x5e7cb1}=_0xdc7ea6;return this[_0x76a6e(0x3d1)](_0x587580),_0x564887[0x0][_0x76a6e(0x1c3)]=this[_0x76a6e(0x293)](),this[_0x76a6e(0x104)](),this[_0x76a6e(0x1cb)][_0x76a6e(0x244)](O,this['unitID'],this[_0x76a6e(0x132)],_0x564887[0x0],_0x5e7cb1,this[_0x76a6e(0x276)],void 0x0);}throw _0xdc7ea6[_0x76a6e(0x2a8)];}throw _0x489251[_0x76a6e(0x2a8)];}catch(_0x2091ba){return this['_logService'][_0x76a6e(0x2a8)](_0x2091ba),this[_0x76a6e(0x3e6)](!0x1);}}[_0x406997(0x2a3)](_0x5ab91b){const _0x4d9712=_0x406997;this[_0x4d9712(0x104)]();let _0x3be5e2=this['_getCurrentRevision']();if(_0x5ab91b[_0x4d9712(0x340)]<=_0x3be5e2)return this;if(this[_0x4d9712(0x2ff)](_0x5ab91b))return this['_injector'][_0x4d9712(0x244)](I,this[_0x4d9712(0x187)],this[_0x4d9712(0x132)],this[_0x4d9712(0x1b7)],this['_pendingMutations'],_0x5ab91b[_0x4d9712(0x340)],[],this[_0x4d9712(0x276)]);this[_0x4d9712(0x1d6)]();let _0x3f6975=this[_0x4d9712(0x1cb)][_0x4d9712(0x244)](j,this[_0x4d9712(0x187)],this['type'],this[_0x4d9712(0x240)],this[_0x4d9712(0x276)]);return _0x3f6975[_0x4d9712(0x351)](),_0x3f6975[_0x4d9712(0x1dd)](),_0x3f6975;}[_0x406997(0x166)](_0x5e35a1){const _0x51a80a=_0x406997;return this[_0x51a80a(0x3e6)](!!(_0x5e35a1!=null&&_0x5e35a1['isPermissionRej']));}[_0x406997(0x1f7)](_0x13f057){const _0x34ed4e=_0x406997;return this[_0x34ed4e(0x38a)]>je?this[_0x34ed4e(0x15e)]():(this['_resendTimer']=Oe(this[_0x34ed4e(0x25a)],{'timeout':this[_0x34ed4e(0x25a)],'reqId':_0x13f057[_0x34ed4e(0x223)]}),this[_0x34ed4e(0x230)]=this[_0x34ed4e(0x16a)]['subscribe'](({reqId:_0x4ef857,timeout:_0xb0d9e7})=>{const _0x23dcd2=_0x34ed4e;this[_0x23dcd2(0x1a9)](_0x4ef857,_0xb0d9e7);}),this);}[_0x406997(0x15e)](){const _0x48a912=_0x406997;return this[_0x48a912(0x104)](),this[_0x48a912(0x1cb)][_0x48a912(0x244)](F,this[_0x48a912(0x187)],this[_0x48a912(0x132)],this[_0x48a912(0x1b7)],this[_0x48a912(0x240)],this[_0x48a912(0x276)]);}[_0x406997(0x18d)](){return this;}[_0x406997(0x2a0)](){const _0x3d3db4=_0x406997;this[_0x3d3db4(0x276)][_0x3d3db4(0x2e7)](this[_0x3d3db4(0x1b7)]);}[_0x406997(0x3e6)](_0x187da1){const _0x17fbf5=_0x406997;return this[_0x17fbf5(0x104)](),this[_0x17fbf5(0x1cb)]['createInstance'](P,this[_0x17fbf5(0x187)],this[_0x17fbf5(0x132)],null,this[_0x17fbf5(0x240)],this[_0x17fbf5(0x276)],_0x187da1);}['_resendWithTimeout'](_0x4642e8,_0x4f3832){const _0x373804=_0x406997;var _0x3fe093;_0x4642e8===((_0x3fe093=this[_0x373804(0x1b7)])==null?void 0x0:_0x3fe093['reqId'])&&(this['resend'](),this[_0x373804(0x25a)]=_0x4f3832===0x0?0x3e8:Math[_0x373804(0x39d)](_0x4f3832*0x2,Ae),this[_0x373804(0x38a)]+=this[_0x373804(0x25a)]);}['_clearScheduledTask'](){const _0x22add2=_0x406997;var _0x47d7ab;(_0x47d7ab=this['_sender'])==null||_0x47d7ab[_0x22add2(0x37a)](),this['_resendTimeout']=0x0,this[_0x22add2(0x38a)]=0x0;}};N=O=b([y(0x6,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x321)])),y(0x7,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x137)])),y(0x8,n[_0x406997(0x1f2)]),y(0x9,n[_0x406997(0x152)]),y(0xa,t[_0x406997(0x17d)]),y(0xb,n[_0x406997(0x16f)]),y(0xc,(0x0,n[_0x406997(0x161)])(C))],N);let P=class extends k{constructor(_0x3c9421,_0xcc1a59,_0x7766c3,_0x33863f,_0x21d01f,_0xc64b80=!0x1,_0x184c90,_0x40f8ef,_0x2a0258,_0xf85852,_0x58de98,_0x2fccb4,_0x2be877){const _0x2f8550=_0x406997;super(_0x3c9421,_0xcc1a59,_0x7766c3,_0x33863f,_0x21d01f,_0x40f8ef,_0x2a0258,_0xf85852,_0x2be877),this[_0x2f8550(0x1af)]=_0xc64b80,this['_permissionService']=_0x184c90,this[_0x2f8550(0x3cc)]=_0x58de98,this[_0x2f8550(0x3ec)]=_0x2fccb4,this['localCacheService']=_0x2be877,_(this,_0x2f8550(0x2a6),_0x2f8550(0x115)),this['_showConflictNotification'](),this[_0x2f8550(0x1f4)](),this[_0x2f8550(0x2c7)]();}['appendMutation'](){return this;}[_0x406997(0x3a1)](){return this;}['onRemoteAck'](){return this;}[_0x406997(0x166)](){return this;}[_0x406997(0x1f7)](){return this;}[_0x406997(0x15e)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x431ef8=_0x406997;throw Error(_0x431ef8(0x29a));}[_0x406997(0x1f4)](){const _0x265d65=_0x406997;var _0xd1def5,_0xb932e7,_0x1a38d0;(_0xd1def5=this[_0x265d65(0x2ce)])==null||(_0xb932e7=_0xd1def5[_0x265d65(0x11b)])==null||(_0xb932e7=_0xb932e7[_0x265d65(0x3d6)](_0xd1def5,this[_0x265d65(0x187)],_0x265d65(0x115)))==null||_0xb932e7[_0x265d65(0x398)](()=>void 0x0),(_0x1a38d0=this[_0x265d65(0x2ce)])==null||_0x1a38d0[_0x265d65(0x329)](this['unitID'],this[_0x265d65(0x132)],null,[]);}['_showConflictNotification'](){const _0x15bdef=_0x406997;this[_0x15bdef(0x1af)]?this[_0x15bdef(0x3ec)]['emitEvent']({'id':_0x15bdef(0x33b)}):this[_0x15bdef(0x3ec)][_0x15bdef(0x343)]({'id':_0x15bdef(0x268)});}[_0x406997(0x2c7)](){const _0xf9e4cc=_0x406997;this['_permissionService']['updatePermissionPoint'](new i[(_0xf9e4cc(0x352))](this[_0xf9e4cc(0x187)])['id'],!0x1);}};P=b([y(0x6,(0x0,n['Inject'])(n[_0x406997(0x27f)])),y(0x7,n[_0x406997(0x1f2)]),y(0x8,n[_0x406997(0x16f)]),y(0x9,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x137)])),y(0xa,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x3d3)])),y(0xb,(0x0,n['Inject'])(v)),y(0xc,(0x0,n[_0x406997(0x161)])(C))],P);let F=class extends k{constructor(_0x28e4d3,_0x4d6e3d,_0x395e4c,_0x21312e,_0x76427,_0x1b5b30,_0x48fa72,_0x25624a,_0x59cece,_0x1566ad){const _0x5cd581=_0x406997;super(_0x28e4d3,_0x4d6e3d,_0x395e4c,_0x21312e,_0x76427,_0x25624a,_0x59cece,_0x48fa72,_0x1566ad),this['_injector']=_0x1b5b30,_(this,'status',_0x5cd581(0x3fd));}['appendMutation'](_0x20d83f){const _0x5cb731=_0x406997;return this['_pendingMutations'][_0x5cb731(0x1db)](_0x20d83f),this[_0x5cb731(0x1dd)](),this;}[_0x406997(0x3a1)](_0x5906a5){const _0x1fb8a8=_0x406997;throw Error(_0x1fb8a8(0x146));}[_0x406997(0x2a3)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x24ed53=_0x406997;throw Error(_0x24ed53(0x17c));}['onRemoteRetry'](){return this;}[_0x406997(0x15e)](){return this;}[_0x406997(0x18d)](){const _0x4270f3=_0x406997;let {_injector:_0x4cbe38,_pendingMutations:_0x465c2d,_awaitingChangeset:_0x1474bd,unitID:_0x2e2107,_handler:_0xcc3e02,type:_0x143243}=this,_0x198112=Me(_0x4cbe38,_0x2e2107,_0x143243,_0x1474bd,_0x465c2d,_0xcc3e02);return _0x198112 instanceof j?_0x198112['_schedule']():(_0x198112 instanceof N||_0x198112 instanceof M)&&_0x198112[_0x4270f3(0x2a0)](),_0x198112;}[_0x406997(0x2a0)](){const _0x4889d3=_0x406997;throw Error(_0x4889d3(0x112));}};F=b([y(0x5,(0x0,n[_0x406997(0x28e)])(n['Injector'])),y(0x6,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x137)])),y(0x7,n[_0x406997(0x1f2)]),y(0x8,n[_0x406997(0x16f)]),y(0x9,(0x0,n[_0x406997(0x161)])(C))],F);let I=class extends k{constructor(_0x232920,_0xf6f62b,_0x4c7c39,_0x531677,_0x17c5e0,_0x4dd56a,_0x230347,_0x4f441a,_0x34c840,_0x3fb3cf,_0x317fa2,_0x58282e,_0x11f8d5,_0x1a1807){const _0x593083=_0x406997;super(_0x232920,_0xf6f62b,_0x4c7c39,_0x531677,_0x230347,_0x317fa2,_0x58282e,_0x34c840,_0x1a1807),this[_0x593083(0x28d)]=_0x17c5e0,this[_0x593083(0x252)]=_0x4dd56a,this[_0x593083(0x1cb)]=_0x4f441a,this[_0x593083(0x185)]=_0x3fb3cf,this['_transformService']=_0x11f8d5,this[_0x593083(0x1c4)]=_0x1a1807,_(this,_0x593083(0x2a6),_0x593083(0x1ed));}[_0x406997(0x3b6)](_0x45ef3a){const _0x3f5348=_0x406997;try{if(this[_0x3f5348(0x243)](_0x45ef3a)['missingChangesets'])throw Error(_0x3f5348(0x199));if(this['_handleRemoteChangesets']([...this[_0x3f5348(0x252)]][_0x3f5348(0x20e)]((_0x4bcc40,_0x488fc8)=>_0x4bcc40[_0x3f5348(0x340)]-_0x488fc8[_0x3f5348(0x340)]))[_0x3f5348(0x18b)])return this['_queuedRemoteChangesets']=[],this[_0x3f5348(0x1dd)](),this[_0x3f5348(0x276)][_0x3f5348(0x107)]({'from':this[_0x3f5348(0x293)](),'to':0x0}),this;let _0x549dcb=this[_0x3f5348(0x1b7)],_0x38bf0f=this['_pendingMutations'],_0x542932;if(_0x549dcb&&_0x38bf0f['length']!==0x0)_0x542932=this[_0x3f5348(0x1cb)][_0x3f5348(0x244)](N,this[_0x3f5348(0x187)],this[_0x3f5348(0x132)],_0x549dcb,_0x38bf0f,this['_handler'],void 0x0);else{if(_0x549dcb&&_0x38bf0f[_0x3f5348(0x327)]===0x0)_0x549dcb[_0x3f5348(0x1c3)]=this[_0x3f5348(0x293)](),_0x542932=this[_0x3f5348(0x1cb)][_0x3f5348(0x244)](M,this['unitID'],this['type'],_0x549dcb,this[_0x3f5348(0x276)]);else{if(_0x38bf0f['length']!==0x0){let _0x19236b=this['_injector'][_0x3f5348(0x244)](j,this['unitID'],this['type'],_0x38bf0f,this['_handler']);_0x19236b[_0x3f5348(0x351)](),_0x542932=_0x19236b;}else _0x542932=this[_0x3f5348(0x1cb)][_0x3f5348(0x244)](A,this[_0x3f5348(0x187)],this[_0x3f5348(0x132)],this[_0x3f5348(0x276)]);}}return _0x542932[_0x3f5348(0x1dd)](),_0x542932;}catch(_0x593dd3){return this['_logService'][_0x3f5348(0x2a8)](_0x3f5348(0x170),'failed\x20to\x20apply\x20missed\x20changesets!',_0x593dd3),this[_0x3f5348(0x1cb)][_0x3f5348(0x244)](P,this['unitID'],this[_0x3f5348(0x132)],this[_0x3f5348(0x1b7)],this[_0x3f5348(0x240)],this['_handler'],!0x1);}}[_0x406997(0x243)](_0x19ea11){const _0x4e33dc=_0x406997;this[_0x4e33dc(0x1cf)]();for(let _0x4df3af=0x0;_0x4df3af<_0x19ea11[_0x4e33dc(0x327)];_0x4df3af++){let _0x166d39=_0x19ea11[_0x4df3af],_0x51c4be=this[_0x4e33dc(0x293)]();if(!(_0x166d39[_0x4e33dc(0x340)]<=_0x51c4be)){if(_0x166d39[_0x4e33dc(0x340)]>_0x51c4be+0x1)return{'missingChangesets':!0x0};if(this[_0x4e33dc(0x2d0)](_0x166d39)){this[_0x4e33dc(0x315)]();continue;}this[_0x4e33dc(0x224)](_0x166d39),this[_0x4e33dc(0x1cf)]();}}return{'missingChangesets':!0x1};}[_0x406997(0x224)](_0xbc96d){const _0x64a9cd=_0x406997;let _0x1e781a=_0xbc96d,_0x42ec93=this[_0x64a9cd(0x1b7)];if(_0x42ec93){let _0x7d0bd0=this['_transformService'][_0x64a9cd(0x353)]([_0xbc96d],[_0x42ec93],!0x1);if(!(0x0,t['isTransformChangesetsSuccess'])(_0x7d0bd0))throw _0x7d0bd0[_0x64a9cd(0x2a8)];_0x1e781a=_0x7d0bd0[_0x64a9cd(0x3dc)][0x0],_0x42ec93=_0x7d0bd0[_0x64a9cd(0x305)][0x0];}let _0x3198d4=this['_pendingMutations'];if(_0x3198d4[_0x64a9cd(0x327)]){let _0x2a8cb4=this[_0x64a9cd(0x34a)][_0x64a9cd(0x1ae)](_0x1e781a,_0x3198d4);if(!(0x0,t[_0x64a9cd(0x12b)])(_0x2a8cb4))throw _0x2a8cb4['error'];_0x1e781a=_0x2a8cb4['c1Prime'],_0x3198d4=_0x2a8cb4[_0x64a9cd(0x2c8)];}this[_0x64a9cd(0x3d1)](_0x1e781a),_0x42ec93&&(_0x42ec93[_0x64a9cd(0x1c3)]=this[_0x64a9cd(0x293)]()),this[_0x64a9cd(0x1b7)]=_0x42ec93,this['_pendingMutations']=_0x3198d4;}[_0x406997(0x1cf)](){const _0x201753=_0x406997;if(!this[_0x201753(0x1b7)]||this[_0x201753(0x28d)]==null)return;let _0x4e0f2a=this[_0x201753(0x293)]();if(this['_acknowledgedAwaitingRevision']<=_0x4e0f2a)throw Error(_0x201753(0x3ef)+this[_0x201753(0x28d)]+'.');this[_0x201753(0x28d)]===_0x4e0f2a+0x1&&this[_0x201753(0x315)]();}[_0x406997(0x315)](){const _0x4221a7=_0x406997;this[_0x4221a7(0x1d6)](),this[_0x4221a7(0x1b7)]=null,this[_0x4221a7(0x28d)]=null;}[_0x406997(0x2d0)](_0x37d0a8){const _0x1261b5=_0x406997;let _0x13f6b2=this[_0x1261b5(0x1b7)];return!_0x13f6b2||!_0x13f6b2[_0x1261b5(0x390)]||_0x13f6b2[_0x1261b5(0x223)]===null||_0x13f6b2[_0x1261b5(0x223)]===void 0x0?!0x1:_0x37d0a8[_0x1261b5(0x187)]===_0x13f6b2['unitID']&&_0x37d0a8[_0x1261b5(0x390)]===_0x13f6b2[_0x1261b5(0x390)]&&_0x37d0a8['reqId']===_0x13f6b2[_0x1261b5(0x223)];}[_0x406997(0x2a0)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x406997(0x3b7)](_0x6a1199){const _0x1384ec=_0x406997;return this[_0x1384ec(0x240)][_0x1384ec(0x1db)](_0x6a1199),this;}[_0x406997(0x3a1)](_0x34c3a0){const _0x508b37=_0x406997;return this[_0x508b37(0x252)]['push'](_0x34c3a0),this;}[_0x406997(0x2a3)](_0xa27aa4){const _0x5869c9=_0x406997;if(this['_awaitingChangeset']){let _0x2acc7d=this[_0x5869c9(0x293)]();return _0xa27aa4[_0x5869c9(0x340)]<=_0x2acc7d||(_0x2acc7d+0x1===_0xa27aa4[_0x5869c9(0x340)]?(this[_0x5869c9(0x1d6)](),this[_0x5869c9(0x1b7)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0x5869c9(0x28d)]=_0xa27aa4[_0x5869c9(0x340)]),this;}if(_0xa27aa4[_0x5869c9(0x340)]<=this[_0x5869c9(0x293)]())return this;throw Error(_0x5869c9(0x38e));}[_0x406997(0x166)](_0x199c76){const _0x4f4b1c=_0x406997;return this[_0x4f4b1c(0x3e6)](!!(_0x199c76!=null&&_0x199c76[_0x4f4b1c(0x3a5)]));}[_0x406997(0x1f7)](){return this;}[_0x406997(0x15e)](){const _0x1530e5=_0x406997;return this['_injector'][_0x1530e5(0x244)](F,this[_0x1530e5(0x187)],this[_0x1530e5(0x132)],this[_0x1530e5(0x1b7)],this['_pendingMutations'],this[_0x1530e5(0x276)]);}[_0x406997(0x18d)](){return this;}[_0x406997(0x3e6)](_0x4c839a){const _0x59aa3a=_0x406997;return this[_0x59aa3a(0x1cb)][_0x59aa3a(0x244)](P,this[_0x59aa3a(0x187)],this[_0x59aa3a(0x132)],this[_0x59aa3a(0x1b7)],this[_0x59aa3a(0x240)],this[_0x59aa3a(0x276)],_0x4c839a);}};I=b([y(0x7,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x321)])),y(0x8,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x137)])),y(0x9,n[_0x406997(0x152)]),y(0xa,n[_0x406997(0x1f2)]),y(0xb,n[_0x406997(0x16f)]),y(0xc,t[_0x406997(0x17d)]),y(0xd,(0x0,n[_0x406997(0x161)])(C))],I);function Me(_0x4d5472,_0x2e01c7,_0x51c6a2,_0x4d2ec3,_0x65f186,_0x442883){const _0x204969=_0x406997;return _0x4d2ec3&&_0x65f186[_0x204969(0x327)]?_0x4d5472['createInstance'](N,_0x2e01c7,_0x51c6a2,_0x4d2ec3,_0x65f186,_0x442883,void 0x0):_0x4d2ec3?_0x4d5472[_0x204969(0x244)](M,_0x2e01c7,_0x51c6a2,_0x4d2ec3,_0x442883):_0x65f186[_0x204969(0x327)]?_0x4d5472[_0x204969(0x244)](j,_0x2e01c7,_0x51c6a2,_0x65f186,_0x442883):_0x4d5472[_0x204969(0x244)](A,_0x2e01c7,_0x51c6a2,_0x442883);}let L=class extends n[_0x406997(0x1cd)]{get[_0x406997(0x370)](){const _0x32e82e=_0x406997;return this[_0x32e82e(0x3a4)];}constructor(_0x25d829,_0x492895,_0x53fc2c,_0x124b3a,_0x4b856f,_0x28846b,_0x10788f,_0x38198e,_0x4b6e9d,_0x1f55cc,_0x5d7bea,_0x26bff9,_0x19b5b8,_0x4e6f96){const _0x433b06=_0x406997;super(),this[_0x433b06(0x187)]=_0x25d829,this['session']=_0x492895,this[_0x433b06(0x358)]=_0x53fc2c,this[_0x433b06(0x1cb)]=_0x124b3a,this[_0x433b06(0x31c)]=_0x4b856f,this[_0x433b06(0x3cc)]=_0x28846b,this[_0x433b06(0x12c)]=_0x10788f,this[_0x433b06(0x344)]=_0x38198e,this[_0x433b06(0x2ee)]=_0x4b6e9d,this['_logService']=_0x1f55cc,this[_0x433b06(0x26d)]=_0x5d7bea,this[_0x433b06(0x3b4)]=_0x26bff9,this[_0x433b06(0x18e)]=_0x19b5b8,this['_localCacheService']=_0x4e6f96,_(this,'_state$',new a[(_0x433b06(0x3e1))](null)),_(this,'state$',this[_0x433b06(0x1ca)][_0x433b06(0x1c0)]()),_(this,_0x433b06(0x3a4),void 0x0),_(this,_0x433b06(0x130),!0x1),_(this,_0x433b06(0x274),''),_(this,_0x433b06(0x395),0x0),_(this,'status$',this[_0x433b06(0x2c0)]['pipe']((0x0,a['map'])(_0x3b1930=>_0x3b1930?_0x3b1930[_0x433b06(0x2a6)]:_0x433b06(0x3fd)),(0x0,a['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_(this,'_transitionLocked',!0x1),_(this,_0x433b06(0x16b),[]);}async['init'](){const _0x1866ef=_0x406997;if(this[_0x1866ef(0x370)])throw Error(_0x1866ef(0x2c2));await this['_init']();}[_0x406997(0x25f)](){const _0x293a75=_0x406997;return this[_0x293a75(0x130)]=!0x0,(0x0,n['toDisposable'])(()=>{const _0x265e63=_0x293a75;this[_0x265e63(0x130)]=!0x1,this[_0x265e63(0x2e0)]();});}[_0x406997(0x13e)](_0x67e3e5){const _0x557f46=_0x406997;this[_0x557f46(0x19a)](_0x67e3e5);}[_0x406997(0x256)](_0x1e52ea){const _0x44c0cf=_0x406997;this[_0x44c0cf(0x3a4)]=_0x1e52ea,this[_0x44c0cf(0x1ca)][_0x44c0cf(0x16d)](_0x1e52ea);}async[_0x406997(0x1be)](){const _0x3005ba=_0x406997;if(this[_0x3005ba(0x256)](await this[_0x3005ba(0x289)]()),this[_0x3005ba(0x18e)]){var _0x2bbf55;(_0x2bbf55=this['_singleActiveUnitService'])==null||_0x2bbf55['editingUnit'](this['unitID']),this[_0x3005ba(0x1c1)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x3005ba(0x187)])[_0x3005ba(0x3e5)](_0x1b92c8=>{const _0x36a4ec=_0x3005ba;this[_0x36a4ec(0x185)][_0x36a4ec(0x19e)](_0x36a4ec(0x2fd),_0x36a4ec(0x3a8),_0x1b92c8),_0x1b92c8===0x1?(this[_0x36a4ec(0x344)]['emitEvent']({'id':_0x36a4ec(0x30a)}),this[_0x36a4ec(0x3b4)]['updatePermissionPoint'](new i[(_0x36a4ec(0x352))](this[_0x36a4ec(0x187)])['id'],!0x1),this[_0x36a4ec(0x3b4)][_0x36a4ec(0x2ef)](!0x1)):(this[_0x36a4ec(0x3b4)][_0x36a4ec(0x239)](new i[(_0x36a4ec(0x352))](this['unitID'])['id'],!0x0),this[_0x36a4ec(0x3b4)][_0x36a4ec(0x2ef)](!0x0));}));}let _0x58b179=!0x1;return this[_0x3005ba(0x1c1)](this[_0x3005ba(0x2ac)][_0x3005ba(0x2d7)]['subscribe'](_0x2f6355=>{const _0x53e101=_0x3005ba;_0x2f6355===0x3?this[_0x53e101(0x301)](_0x58b179):_0x2f6355===0x2&&(_0x58b179=!0x0,this[_0x53e101(0x314)]());})),this[_0x3005ba(0x1c1)](this[_0x3005ba(0x2ac)]['event$']['subscribe'](_0x299c30=>{const _0x57cd44=_0x3005ba;try{switch(_0x299c30[_0x57cd44(0x2a1)]){case t[_0x57cd44(0x1fd)][_0x57cd44(0x2fe)]:this[_0x57cd44(0x257)]((0x0,t[_0x57cd44(0x13f)])(_0x299c30['data']));break;case t[_0x57cd44(0x1fd)][_0x57cd44(0x354)]:this[_0x57cd44(0x1bf)](_0x299c30[_0x57cd44(0x379)]);break;case t[_0x57cd44(0x1fd)][_0x57cd44(0x211)]:this['_onRemoteRejected']();break;case t[_0x57cd44(0x1fd)][_0x57cd44(0x27c)]:this[_0x57cd44(0x1ba)](_0x299c30[_0x57cd44(0x379)]);break;case t[_0x57cd44(0x1fd)][_0x57cd44(0x299)]:this[_0x57cd44(0x20a)](_0x299c30[_0x57cd44(0x379)][_0x57cd44(0x3c5)][_0x57cd44(0x229)](_0x187f4d=>(0x0,t[_0x57cd44(0x13f)])(_0x187f4d)));break;case t['CollaborationEvent']['PERMISSION_REJ']:this[_0x57cd44(0x387)]({'isPermissionRej':!0x0});break;case t[_0x57cd44(0x1fd)][_0x57cd44(0x271)]:break;}}catch(_0x3ac3bf){throw console[_0x57cd44(0x2a8)](_0x57cd44(0x207),_0x3ac3bf),_0x3ac3bf;}})),this[_0x3005ba(0x3a4)];}[_0x406997(0x3c2)](){const _0x47bf2d=_0x406997;this[_0x47bf2d(0x3c9)]=!0x1;}[_0x406997(0x23d)](){const _0x27b643=_0x406997;if(this[_0x27b643(0x3c9)])throw Error(_0x27b643(0x147));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x3ca007){const _0x1a42aa=_0x406997;this[_0x1a42aa(0x23d)](),this['_updateState'](this[_0x1a42aa(0x3a4)][_0x1a42aa(0x3b7)](_0x3ca007)),this[_0x1a42aa(0x3c2)]();}[_0x406997(0x257)](_0x2086df){const _0x93ffa9=_0x406997;if(!(_0x2086df[_0x93ffa9(0x340)]<=this['_revisionService'][_0x93ffa9(0x196)](this[_0x93ffa9(0x187)]))){if(this[_0x93ffa9(0x130)]){this[_0x93ffa9(0x16b)][_0x93ffa9(0x1db)](_0x2086df);return;}this[_0x93ffa9(0x3ed)](_0x2086df);}}[_0x406997(0x2e0)](){const _0x5e546e=_0x406997;this[_0x5e546e(0x16b)][_0x5e546e(0x1e5)](_0x6455cf=>this[_0x5e546e(0x3ed)](_0x6455cf)),this['_remoteChangesetQueue']=[];}[_0x406997(0x3ed)](_0x5ecfd6){const _0x4cc22f=_0x406997;let _0x50dce9=this[_0x4cc22f(0x31c)]['interceptor'][_0x4cc22f(0x11f)](this[_0x4cc22f(0x31c)][_0x4cc22f(0x1a7)]['getInterceptPoints']()[_0x4cc22f(0x150)])(_0x5ecfd6[_0x4cc22f(0x393)],null)||_0x5ecfd6[_0x4cc22f(0x393)],_0x4eaa40={..._0x5ecfd6,'mutations':_0x50dce9};this[_0x4cc22f(0x23d)](),this[_0x4cc22f(0x256)](this[_0x4cc22f(0x3a4)]['onRemoteChangeset'](_0x4eaa40)),this[_0x4cc22f(0x3c2)]();}[_0x406997(0x1bf)](_0x4288e6){const _0xb59cd=_0x406997;this[_0xb59cd(0x23d)](),this[_0xb59cd(0x256)](this[_0xb59cd(0x3a4)][_0xb59cd(0x2a3)](_0x4288e6)),this[_0xb59cd(0x3c2)]();}['_onRemoteRejected'](_0x52b6f7){const _0xf6ed4b=_0x406997;this[_0xf6ed4b(0x23d)](),this[_0xf6ed4b(0x256)](this[_0xf6ed4b(0x3a4)][_0xf6ed4b(0x166)](_0x52b6f7)),this['_unlockTransition']();}['_onRemoteRetry'](_0x17841d){const _0x5ad89a=_0x406997;this['_lockTransition'](),this[_0x5ad89a(0x256)](this['_state'][_0x5ad89a(0x1f7)](_0x17841d)),this['_unlockTransition']();}['_onFetchMissResult'](_0x1b7d93){const _0xcc4c1d=_0x406997;if(!(this['_state']instanceof I))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x2f3798=_0x1b7d93[_0xcc4c1d(0x229)](_0x4f9599=>{const _0x401439=_0xcc4c1d;let _0x14b093=this[_0x401439(0x31c)]['interceptor']['fetchThroughInterceptors'](this[_0x401439(0x31c)][_0x401439(0x1a7)][_0x401439(0x135)]()['COMPRESS_MUTATION_APPLY'])(_0x4f9599['mutations'],null)||_0x4f9599[_0x401439(0x393)];return{..._0x4f9599,'mutations':_0x14b093};});this['_lockTransition'](),this[_0xcc4c1d(0x256)](this['_state'][_0xcc4c1d(0x3b6)](_0x2f3798)),this[_0xcc4c1d(0x3c2)]();}[_0x406997(0x314)](){const _0x4878ec=_0x406997;this[_0x4878ec(0x23d)](),this['_updateState'](this[_0x4878ec(0x3a4)][_0x4878ec(0x15e)]()),this['_unlockTransition']();}[_0x406997(0x301)](_0x83db69=!0x1){const _0x27b736=_0x406997;this[_0x27b736(0x23d)](),this['_updateState'](this[_0x27b736(0x3a4)]['toggleOnline']()),this[_0x27b736(0x3c2)]();let _0x2ca6d8=this[_0x27b736(0x3a4)];_0x83db69&&_0x2ca6d8 instanceof A&&(this[_0x27b736(0x23d)](),this[_0x27b736(0x256)](_0x2ca6d8[_0x27b736(0x2b9)]()),this['_unlockTransition']());}async[_0x406997(0x289)](){return new Promise(_0x56bda7=>{const _0x3c164e=_0xcc0c;this[_0x3c164e(0x2ac)][_0x3c164e(0x2d7)][_0x3c164e(0x119)]((0x0,a[_0x3c164e(0x2f9)])(0x1))[_0x3c164e(0x3e5)](async _0x1b7c28=>{_0x56bda7(await this['_createInitialStateImpl'](_0x1b7c28===0x3));});});}[_0x406997(0x294)](){let _0x1dd0a6=this['unitID'];return{'onStateChange':(_0x57a37b,_0x1ac9d7)=>{const _0x4cd36c=_0xcc0c;if(_0x57a37b!==this['_state'])throw Error(_0x4cd36c(0x232)+_0x57a37b[_0x4cd36c(0x2a6)]+_0x4cd36c(0x16c)+_0x1ac9d7[_0x4cd36c(0x2a6)]+'\x0aCurrent:\x20'+this[_0x4cd36c(0x3a4)][_0x4cd36c(0x2a6)]);this['_updateState'](_0x1ac9d7);},'onSendChangeset':_0x194f52=>{const _0x31161c=_0xcc0c;_0x194f52[_0x31161c(0x390)]||(_0x194f52[_0x31161c(0x390)]=this[_0x31161c(0x274)],_0x194f52[_0x31161c(0x223)]=++this[_0x31161c(0x395)]);let _0x8d8d60={'eventID':t[_0x31161c(0x1fd)][_0x31161c(0x3ba)],'data':{'unitID':_0x194f52[_0x31161c(0x187)],'unitType':this[_0x31161c(0x358)],'changeset':_0x194f52,'memberID':this['session'][_0x31161c(0x23b)]()}};this[_0x31161c(0x2ac)][_0x31161c(0x218)](_0x8d8d60,this[_0x31161c(0x187)]);},'onMissingChangesets':({from:_0x7fed22,to:_0x25bfd})=>{const _0x5a0437=_0xcc0c;this[_0x5a0437(0x185)][_0x5a0437(0x19e)](_0x5a0437(0x2fd),_0x5a0437(0x2f3)+_0x7fed22+_0x5a0437(0x261)+_0x25bfd);let _0x767ff9={'eventID':t[_0x5a0437(0x1fd)]['FETCH_MISSING'],'data':{'unitID':_0x1dd0a6,'unitType':this[_0x5a0437(0x358)],'from':_0x7fed22,'to':_0x25bfd}};this[_0x5a0437(0x2ac)][_0x5a0437(0x218)](_0x767ff9,this[_0x5a0437(0x187)]);}};}async[_0x406997(0x365)](_0x3ca6f5){const _0x4f4c30=_0x406997;var _0x4b1740,_0x137ae1,_0x1ced17;let _0x3e611=await((_0x4b1740=this['_localCacheService'])==null?void 0x0:_0x4b1740['loadOfflineData'](this[_0x4f4c30(0x187)])),_0x10d226=(_0x137ae1=_0x3e611==null?void 0x0:_0x3e611[_0x4f4c30(0x393)])==null?[]:_0x137ae1,_0x287fde=(_0x1ced17=_0x3e611==null?void 0x0:_0x3e611[_0x4f4c30(0x1e7)])==null?null:_0x1ced17,_0x24545d=!!(_0x287fde!=null&&_0x287fde['sid'])&&!!(_0x287fde!=null&&_0x287fde[_0x4f4c30(0x223)]);this[_0x4f4c30(0x274)]=_0x24545d?_0x287fde['sid']:(0x0,t[_0x4f4c30(0x133)])(),this[_0x4f4c30(0x395)]=_0x24545d?_0x287fde[_0x4f4c30(0x223)]:0x0;let _0x8f7de1=this[_0x4f4c30(0x187)];try{this[_0x4f4c30(0x302)](_0x287fde,_0x10d226);}catch(_0x3fe920){this['_logService'][_0x4f4c30(0x2a8)](_0x3fe920);}let _0x154492=this[_0x4f4c30(0x294)]();if(_0x3ca6f5){let _0x21a3d3=Me(this['_injector'],_0x8f7de1,this[_0x4f4c30(0x358)],_0x287fde,_0x10d226,_0x154492);return _0x21a3d3 instanceof j?_0x21a3d3[_0x4f4c30(0x351)]():(_0x21a3d3 instanceof N||_0x21a3d3 instanceof M)&&_0x21a3d3['resend'](),_0x21a3d3;}return this[_0x4f4c30(0x1cb)][_0x4f4c30(0x244)](F,_0x8f7de1,this[_0x4f4c30(0x358)],_0x287fde,_0x10d226,_0x154492);}[_0x406997(0x302)](_0x38494d,_0x31dc5d){const _0x12a65d=_0x406997;var _0x4359eb,_0x1e1c93;let _0x2f31f5=this['_compressMutationService'][_0x12a65d(0x1a7)][_0x12a65d(0x11f)](this[_0x12a65d(0x31c)][_0x12a65d(0x1a7)][_0x12a65d(0x135)]()[_0x12a65d(0x150)]);(_0x4359eb=_0x2f31f5((_0x38494d==null?void 0x0:_0x38494d[_0x12a65d(0x393)])||[],null))==null||_0x4359eb['forEach'](_0x2c028c=>this['_commandService'][_0x12a65d(0x12f)](_0x2c028c['id'],_0x2c028c[_0x12a65d(0x3d0)])),(_0x1e1c93=_0x2f31f5(_0x31dc5d||[],null))==null||_0x1e1c93['forEach'](_0x13a384=>this['_commandService'][_0x12a65d(0x12f)](_0x13a384['id'],_0x13a384[_0x12a65d(0x3d0)]));}};L=b([y(0x3,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x321)])),y(0x4,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x1c5)])),y(0x5,(0x0,n[_0x406997(0x28e)])(n['LocaleService'])),y(0x6,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x137)])),y(0x7,(0x0,n[_0x406997(0x28e)])(v)),y(0x8,n[_0x406997(0x131)]),y(0x9,n[_0x406997(0x152)]),y(0xa,n['ICommandService']),y(0xb,n[_0x406997(0x27f)]),y(0xc,(0x0,n[_0x406997(0x161)])(T)),y(0xd,(0x0,n[_0x406997(0x161)])(C))],L);let R=class extends L{constructor(_0x5322e6,_0x3aa459,_0x2b97b8,_0x54d459,_0x5c4f1b,_0x5ce5bf,_0x3ea863,_0x37afef,_0x2631b9,_0x45178a,_0x2bc039,_0x4f14f6,_0x382c09,_0x78db78,_0x28e4fe){const _0x1ff181=_0x406997;super(_0x5322e6,_0x2b97b8,_0x3aa459,_0x54d459,_0x5c4f1b,_0x5ce5bf,_0x3ea863,_0x37afef,_0x2631b9,_0x45178a,_0x2bc039,_0x4f14f6,_0x78db78,_0x28e4fe),this[_0x1ff181(0x187)]=_0x5322e6,this[_0x1ff181(0x132)]=_0x3aa459,this[_0x1ff181(0x2b8)]=_0x382c09,_(this,'_handlerCallback',null);}[_0x406997(0x310)](_0xdd4359){this['_handlerCallback']=_0xdd4359;}[_0x406997(0x34b)](){const _0xd54e27=_0x406997;this[_0xd54e27(0x2de)]=null,super['dispose']();}[_0x406997(0x294)](){const _0x512d26=_0x406997;let _0x7e17c4=super['_createHandler']();return _0x7e17c4[_0x512d26(0x3f8)]=_0x573a3f=>{const _0x185618=_0x512d26;var _0x18187a,_0x42002e;return(_0x18187a=this[_0x185618(0x2de)])==null||(_0x42002e=_0x18187a['onTransformIME'])==null?void 0x0:_0x42002e[_0x185618(0x3d6)](_0x18187a,_0x573a3f);},_0x7e17c4[_0x512d26(0x26c)]=_0x4ff6d8=>{const _0x4b1d49=_0x512d26;var _0x1d34fa,_0x4684d4;return(_0x1d34fa=this[_0x4b1d49(0x2de)])==null||(_0x4684d4=_0x1d34fa[_0x4b1d49(0x26c)])==null?void 0x0:_0x4684d4[_0x4b1d49(0x3d6)](_0x1d34fa,_0x4ff6d8);},_0x7e17c4[_0x512d26(0x1b0)]=_0x12bb59=>{const _0x26a3d6=_0x512d26;var _0x173933,_0x12b69f;return(_0x173933=this[_0x26a3d6(0x2de)])==null||(_0x12b69f=_0x173933['onTransformSelections'])==null?void 0x0:_0x12b69f['call'](_0x173933,_0x12bb59);},_0x7e17c4[_0x512d26(0x15d)]=_0x51ed68=>{const _0x32cb30=_0x512d26;var _0x547bfc,_0x5d4fb4;return(_0x547bfc=this[_0x32cb30(0x2de)])==null||(_0x5d4fb4=_0x547bfc[_0x32cb30(0x15d)])==null?void 0x0:_0x5d4fb4[_0x32cb30(0x3d6)](_0x547bfc,_0x51ed68);},_0x7e17c4[_0x512d26(0x2b5)]=_0x5d1a81=>{const _0x4fd4c2=_0x512d26;var _0x2de756,_0x38257e,_0xc7f63c;return(_0x2de756=(_0x38257e=this[_0x4fd4c2(0x2de)])==null||(_0xc7f63c=_0x38257e['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xc7f63c[_0x4fd4c2(0x3d6)](_0x38257e,_0x5d1a81))==null?_0x5d1a81:_0x2de756;},_0x7e17c4[_0x512d26(0x360)]=_0x55bc19=>{const _0x292a44=_0x512d26;var _0xf88fc1,_0x38561f,_0x3e77c8;return(_0xf88fc1=(_0x38561f=this[_0x292a44(0x2de)])==null||(_0x3e77c8=_0x38561f[_0x292a44(0x360)])==null?void 0x0:_0x3e77c8[_0x292a44(0x3d6)](_0x38561f,_0x55bc19))==null?_0x55bc19:_0xf88fc1;},_0x7e17c4;}async[_0x406997(0x1be)](){const _0x44f793=_0x406997;if(this['_docStateChangeManagerService']==null)throw Error(_0x44f793(0x2cf));let _0x237c3b=await super[_0x44f793(0x1be)]();return this['disposeWithMe'](this['_docStateChangeManagerService'][_0x44f793(0x35d)][_0x44f793(0x3e5)](_0x8cbcd1=>{const _0xc69a84=_0x44f793;if(_0x8cbcd1==null||_0x8cbcd1[_0xc69a84(0x3ff)]!==this[_0xc69a84(0x187)])return;let {commandId:_0x1c4ccf,redoState:_0x13dafe,unitId:_0x52f48c}=_0x8cbcd1,_0x448398={'id':_0x1c4ccf,'type':n[_0xc69a84(0x1b1)]['MUTATION'],'params':{'unitId':_0x52f48c,'actions':_0x13dafe[_0xc69a84(0x371)],'textRanges':null}};this['_onLocalMutation'](_0x448398);})),this['disposeWithMe'](this[_0x44f793(0x26d)][_0x44f793(0x37d)]((_0x484a10,_0x5c66b7)=>{const _0x2b611d=_0x44f793;if(_0x484a10[_0x2b611d(0x132)]!==n[_0x2b611d(0x1b1)][_0x2b611d(0x384)]||_0x5c66b7!=null&&_0x5c66b7[_0x2b611d(0x300)]||_0x5c66b7!=null&&_0x5c66b7[_0x2b611d(0x3eb)]||_0x484a10['id']===r[_0x2b611d(0x30b)]['id'])return;let _0x2c80f4=_0x484a10[_0x2b611d(0x3d0)];if((_0x2c80f4==null?void 0x0:_0x2c80f4[_0x2b611d(0x3ff)])!==this[_0x2b611d(0x187)])return;let _0x4ea07e=_0x484a10,_0x12abf8=this['_compressMutationService'][_0x2b611d(0x1a7)][_0x2b611d(0x11f)](this['_compressMutationService'][_0x2b611d(0x1a7)][_0x2b611d(0x135)]()[_0x2b611d(0x38d)])([_0x4ea07e],this[_0x2b611d(0x2ee)])||[_0x4ea07e];this[_0x2b611d(0x19a)](_0x12abf8[0x0]);})),_0x237c3b;}};R=b([y(0x3,(0x0,n[_0x406997(0x28e)])(n['Injector'])),y(0x4,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x1c5)])),y(0x5,(0x0,n[_0x406997(0x28e)])(n['LocaleService'])),y(0x6,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x137)])),y(0x7,(0x0,n[_0x406997(0x28e)])(v)),y(0x8,n[_0x406997(0x131)]),y(0x9,n[_0x406997(0x152)]),y(0xa,n[_0x406997(0x1f2)]),y(0xb,n['IPermissionService']),y(0xc,(0x0,n[_0x406997(0x161)])(r[_0x406997(0x2c5)])),y(0xd,(0x0,n[_0x406997(0x161)])(T)),y(0xe,(0x0,n[_0x406997(0x161)])(C))],R);let Ne=class extends L{constructor(_0x5a6e44,_0x2e016e,_0x1cc890,_0x12cfd3,_0x562951,_0x29d53b,_0x64a294,_0x4e5d2d,_0x1ad329,_0x4fdafd,_0x3ced1f,_0x18ef09,_0x197789,_0x1ad6bd){const _0x282136=_0x406997;super(_0x5a6e44,_0x1cc890,_0x2e016e,_0x12cfd3,_0x562951,_0x29d53b,_0x64a294,_0x4e5d2d,_0x1ad329,_0x4fdafd,_0x3ced1f,_0x18ef09,_0x197789,_0x1ad6bd),this[_0x282136(0x187)]=_0x5a6e44,this[_0x282136(0x132)]=_0x2e016e;}async[_0x406997(0x1be)](){const _0x3a9e0b=_0x406997;let _0x539e8f=await super[_0x3a9e0b(0x1be)]();return this[_0x3a9e0b(0x1c1)](this['_commandService']['onMutationExecutedForCollab']((_0x445118,_0x4795b1)=>{const _0x4cf886=_0x3a9e0b;if(_0x445118[_0x4cf886(0x132)]!==n[_0x4cf886(0x1b1)][_0x4cf886(0x384)]||_0x4795b1!=null&&_0x4795b1[_0x4cf886(0x300)]||_0x4795b1!=null&&_0x4795b1[_0x4cf886(0x3eb)]||_0x445118['id']!==e[_0x4cf886(0x179)]['id'])return;let _0x225a97=_0x445118[_0x4cf886(0x3d0)];if((_0x225a97==null?void 0x0:_0x225a97[_0x4cf886(0x3ff)])!==this[_0x4cf886(0x187)])return;let _0x1a02a2=_0x445118,_0x26d134=this[_0x4cf886(0x31c)][_0x4cf886(0x1a7)][_0x4cf886(0x11f)](this[_0x4cf886(0x31c)]['interceptor'][_0x4cf886(0x135)]()[_0x4cf886(0x38d)])([_0x1a02a2],this[_0x4cf886(0x2ee)])||[_0x1a02a2];this['_onLocalMutation'](_0x26d134[0x0]);})),_0x539e8f;}};Ne=b([y(0x3,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x321)])),y(0x4,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x1c5)])),y(0x5,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x3d3)])),y(0x6,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x137)])),y(0x7,(0x0,n[_0x406997(0x28e)])(v)),y(0x8,n[_0x406997(0x131)]),y(0x9,n['ILogService']),y(0xa,n[_0x406997(0x1f2)]),y(0xb,n[_0x406997(0x27f)]),y(0xc,(0x0,n[_0x406997(0x161)])(T)),y(0xd,(0x0,n[_0x406997(0x161)])(C))],Ne);let z=class extends L{constructor(_0x168926,_0x342696,_0x2e3ba1,_0x5f0ce8,_0x4535ec,_0x6f00e6,_0x36be5b,_0x11449c,_0x2f1721,_0x47ba73,_0x56dfc6,_0x4dbb06,_0x128f95,_0xf136e,_0x9aeccd){const _0x76a9cf=_0x406997;super(_0x168926,_0x2e3ba1,_0x342696,_0x5f0ce8,_0x4535ec,_0x6f00e6,_0x36be5b,_0x2f1721,_0x47ba73,_0x56dfc6,_0x4dbb06,_0x128f95,_0xf136e,_0x9aeccd),this[_0x76a9cf(0x187)]=_0x168926,this[_0x76a9cf(0x132)]=_0x342696,this[_0x76a9cf(0x29b)]=_0x11449c;}[_0x406997(0x294)](){const _0x4451f8=_0x406997;let _0x113a12=super[_0x4451f8(0x294)]();return _0x113a12[_0x4451f8(0x1b0)]=_0xe2f972=>this[_0x4451f8(0x29b)][_0x4451f8(0x36d)](_0xe2f972),_0x113a12;}async[_0x406997(0x1be)](){const _0x6a8548=_0x406997;let _0x58d304=await super[_0x6a8548(0x1be)]();return this['disposeWithMe'](this['_commandService']['onMutationExecutedForCollab']((_0x416b82,_0x8f0614)=>{const _0x36dcb3=_0x6a8548;if(_0x416b82[_0x36dcb3(0x132)]!==n['CommandType'][_0x36dcb3(0x384)]||_0x8f0614!=null&&_0x8f0614[_0x36dcb3(0x300)]||_0x8f0614!=null&&_0x8f0614['onlyLocal'])return;let _0x1b3b6d=_0x416b82[_0x36dcb3(0x3d0)];if((_0x1b3b6d==null?void 0x0:_0x1b3b6d[_0x36dcb3(0x3ff)])!==this['unitID'])return;let _0x165270=_0x416b82,_0x23bb6=this[_0x36dcb3(0x31c)][_0x36dcb3(0x1a7)][_0x36dcb3(0x11f)](this[_0x36dcb3(0x31c)]['interceptor'][_0x36dcb3(0x135)]()['COMPRESS_MUTATION_SEND'])([_0x165270],this['_univerInstanceService'])||[_0x165270];this['_onLocalMutation'](_0x23bb6[0x0]);})),_0x58d304;}};z=b([y(0x3,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x321)])),y(0x4,(0x0,n['Inject'])(t[_0x406997(0x1c5)])),y(0x5,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x3d3)])),y(0x6,(0x0,n['Inject'])(t['RevisionService'])),y(0x7,(0x0,n['Inject'])(w)),y(0x8,(0x0,n[_0x406997(0x28e)])(v)),y(0x9,n['IUniverInstanceService']),y(0xa,n[_0x406997(0x152)]),y(0xb,n['ICommandService']),y(0xc,n['IPermissionService']),y(0xd,(0x0,n['Optional'])(T)),y(0xe,(0x0,n[_0x406997(0x161)])(C))],z);let B=class extends L{constructor(_0x3f9e71,_0x1f3fb2,_0x24d83b,_0x1ab958,_0x4c7302,_0x27cde6,_0x1ea80d,_0x322096,_0xc92ac2,_0x2fe0ce,_0x314b50,_0x1ea4ac,_0x30f621,_0x2e3c76){const _0x1e3b95=_0x406997;super(_0x3f9e71,_0x24d83b,_0x1f3fb2,_0x1ab958,_0x4c7302,_0x27cde6,_0x1ea80d,_0x322096,_0xc92ac2,_0x2fe0ce,_0x314b50,_0x1ea4ac,_0x30f621,_0x2e3c76),this['unitID']=_0x3f9e71,this[_0x1e3b95(0x132)]=_0x1f3fb2;}async[_0x406997(0x1be)](){const _0x141eae=_0x406997;let _0x159da9=await super[_0x141eae(0x1be)]();return this['disposeWithMe'](this[_0x141eae(0x26d)][_0x141eae(0x37d)]((_0x221e48,_0x38aeeb)=>{const _0x58fc14=_0x141eae;if(_0x221e48[_0x58fc14(0x132)]!==n['CommandType'][_0x58fc14(0x384)]||_0x38aeeb!=null&&_0x38aeeb['fromCollab']||_0x38aeeb!=null&&_0x38aeeb[_0x58fc14(0x3eb)])return;let _0x5acd7f=_0x221e48['params'];if((_0x5acd7f==null?void 0x0:_0x5acd7f[_0x58fc14(0x3ff)])!==this[_0x58fc14(0x187)])return;let _0x5ca47d=_0x221e48,_0x390da2=this['_compressMutationService'][_0x58fc14(0x1a7)][_0x58fc14(0x11f)](this[_0x58fc14(0x31c)][_0x58fc14(0x1a7)][_0x58fc14(0x135)]()[_0x58fc14(0x38d)])([_0x5ca47d],this[_0x58fc14(0x2ee)])||[_0x5ca47d];this[_0x58fc14(0x19a)](_0x390da2[0x0]);})),_0x159da9;}};B=b([y(0x3,(0x0,n[_0x406997(0x28e)])(n['Injector'])),y(0x4,(0x0,n['Inject'])(t[_0x406997(0x1c5)])),y(0x5,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x3d3)])),y(0x6,(0x0,n[_0x406997(0x28e)])(t[_0x406997(0x137)])),y(0x7,(0x0,n['Inject'])(v)),y(0x8,n[_0x406997(0x131)]),y(0x9,n[_0x406997(0x152)]),y(0xa,n[_0x406997(0x1f2)]),y(0xb,n['IPermissionService']),y(0xc,(0x0,n[_0x406997(0x161)])(T)),y(0xd,(0x0,n[_0x406997(0x161)])(C))],B);const Pe=(0x0,n[_0x406997(0x1bd)])('univer-pro.collaboration-client.network-condition.service');function Fe(_0x178971){const _0x5a8d60=_0x406997;let _0x227975=_0x178971[_0x5a8d60(0x379)],_0x42551d=JSON['parse'](_0x227975);switch(_0x42551d['cmd']){case o[_0x5a8d60(0x1dc)][_0x5a8d60(0x259)]:case o[_0x5a8d60(0x1dc)][_0x5a8d60(0x3c0)]:{let _0x171580=_0x42551d[_0x5a8d60(0x123)];return{..._0x42551d,'data':_0x171580,'cmd':_0x42551d[_0x5a8d60(0x163)]};}case o['CombCmd'][_0x5a8d60(0x1ad)]:{let _0x106cf1=_0x42551d[_0x5a8d60(0x295)];return{..._0x42551d,'data':_0x106cf1,'cmd':_0x42551d[_0x5a8d60(0x163)]};}case o[_0x5a8d60(0x1dc)]['RECV']:{let _0x1457fa=_0x42551d[_0x5a8d60(0x3af)];switch(_0x1457fa['eventID']){case t[_0x5a8d60(0x1fd)]['PERMISSION_REJ']:var _0x469a86;return{..._0x42551d,'data':{..._0x1457fa,'data':(_0x469a86=_0x1457fa['permissionRejEvent'])==null?void 0x0:_0x469a86['cs']},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x354)]:var _0x489093;return{..._0x42551d,'data':{..._0x1457fa,'data':(_0x489093=_0x1457fa[_0x5a8d60(0x349)])==null?void 0x0:_0x489093['cs']},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x2fe)]:var _0x45bfa5;return{..._0x42551d,'data':{..._0x1457fa,'data':(_0x45bfa5=_0x1457fa[_0x5a8d60(0x149)])==null?void 0x0:_0x45bfa5['cs']},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)]['CHANGESET_REJ']:var _0x299b42;return{..._0x42551d,'data':{..._0x1457fa,'data':(_0x299b42=_0x1457fa[_0x5a8d60(0x18c)])==null?void 0x0:_0x299b42['cs']},'cmd':_0x42551d['cmd']};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x27c)]:var _0xeae04b;return{..._0x42551d,'data':{..._0x1457fa,'data':(_0xeae04b=_0x1457fa[_0x5a8d60(0x3f5)])==null?void 0x0:_0xeae04b['cs']},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x356)]:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa[_0x5a8d60(0x35c)]},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)]['USERS_ENTER']:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa[_0x5a8d60(0x3ae)]},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x148)]:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa[_0x5a8d60(0x24b)]},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x273)]:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa['liveShareNewHost']},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x194)]:case t['CollaborationEvent'][_0x5a8d60(0x2cc)]:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa[_0x5a8d60(0x158)]},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x3df)]:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa[_0x5a8d60(0x30d)]},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x178)]:return{..._0x42551d,'data':_0x1457fa,'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x27b)]:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa[_0x5a8d60(0x250)]},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)][_0x5a8d60(0x39e)]:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa[_0x5a8d60(0x118)]},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t['CollaborationEvent'][_0x5a8d60(0x304)]:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa[_0x5a8d60(0x155)]},'cmd':_0x42551d[_0x5a8d60(0x163)]};case t[_0x5a8d60(0x1fd)]['UNISCRIPT_RUN']:return{..._0x42551d,'data':{..._0x1457fa,'data':_0x1457fa[_0x5a8d60(0x2fb)]},'cmd':_0x42551d['cmd']};default:return _0x42551d;}}default:return _0x42551d;}}function Ie(_0x4124d4){const _0x444c4c=_0x406997;switch(_0x4124d4['cmd']){case o[_0x444c4c(0x1dc)][_0x444c4c(0x259)]:case o['CombCmd'][_0x444c4c(0x3c0)]:return JSON['stringify']({'cmd':_0x4124d4[_0x444c4c(0x163)],'routeKey':_0x4124d4['routeKey']});case o[_0x444c4c(0x1dc)][_0x444c4c(0x156)]:{let _0x4a4857;switch(_0x4124d4[_0x444c4c(0x379)]['eventID']){case t['CollaborationEvent'][_0x444c4c(0x356)]:_0x4a4857={'eventID':t[_0x444c4c(0x1fd)][_0x444c4c(0x356)],'updateCursorEvent':_0x4124d4[_0x444c4c(0x379)]['data']};break;case t[_0x444c4c(0x1fd)]['USERS_LEAVE']:_0x4a4857={'eventID':t[_0x444c4c(0x1fd)][_0x444c4c(0x148)],'leaveEvent':_0x4124d4[_0x444c4c(0x379)][_0x444c4c(0x379)]};break;case t[_0x444c4c(0x1fd)][_0x444c4c(0x396)]:_0x4a4857={'eventID':t['CollaborationEvent'][_0x444c4c(0x396)],'joinEvent':_0x4124d4[_0x444c4c(0x379)]['data']};break;case t[_0x444c4c(0x1fd)][_0x444c4c(0x273)]:_0x4a4857={'eventID':t['CollaborationEvent'][_0x444c4c(0x273)],'liveShareNewHost':_0x4124d4['data']['data']};break;case t[_0x444c4c(0x1fd)][_0x444c4c(0x2cc)]:_0x4a4857={'eventID':t[_0x444c4c(0x1fd)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x4124d4[_0x444c4c(0x379)][_0x444c4c(0x379)]};break;case t[_0x444c4c(0x1fd)][_0x444c4c(0x3df)]:_0x4a4857={'eventID':t[_0x444c4c(0x1fd)][_0x444c4c(0x3df)],'liveShareTerminate':_0x4124d4[_0x444c4c(0x379)]['data']};break;case t['CollaborationEvent'][_0x444c4c(0x27d)]:_0x4a4857={'eventID':t[_0x444c4c(0x1fd)][_0x444c4c(0x27d)],'liveShareRequestHost':_0x4124d4[_0x444c4c(0x379)][_0x444c4c(0x379)]};break;case t['CollaborationEvent'][_0x444c4c(0x194)]:_0x4a4857={'eventID':t[_0x444c4c(0x1fd)][_0x444c4c(0x194)]};break;default:_0x4a4857={'eventID':_0x4124d4[_0x444c4c(0x379)]['eventID']};}return JSON['stringify']({'cmd':_0x4124d4[_0x444c4c(0x163)],'routeKey':_0x4124d4[_0x444c4c(0x20f)],'collaMsg':_0x4a4857});}case o['CombCmd'][_0x444c4c(0x1ad)]:return JSON[_0x444c4c(0x400)]({'cmd':_0x4124d4[_0x444c4c(0x163)],'routeKey':_0x4124d4['routeKey'],'joinReq':_0x4124d4[_0x444c4c(0x379)]});case o[_0x444c4c(0x1dc)][_0x444c4c(0x1a5)]:return JSON[_0x444c4c(0x400)]({'cmd':_0x4124d4['cmd'],'routeKey':_0x4124d4[_0x444c4c(0x20f)],'leaveReq':_0x4124d4[_0x444c4c(0x379)]});default:throw Error(_0x444c4c(0x195));}}const Le=(0x0,n[_0x406997(0x1bd)])('univer-pro.collaboration-client-socket-service');function Re(_0x4d3d49,_0x517e10,_0x31b7c0){const _0x2b3f54=_0x406997;return _0x4d3d49+'/'+_0x517e10+'/unit/'+_0x31b7c0+_0x2b3f54(0x277);}let ze=class extends n[_0x406997(0x2a4)]{constructor(_0x15adee,_0x25841a,_0xaf9fca,_0x3e456f,_0x50cbca){const _0x2cca27=_0x406997;super(),this['_injector']=_0x15adee,this[_0x2cca27(0x1b4)]=_0x25841a,this['_configService']=_0xaf9fca,this['_logService']=_0x3e456f,this[_0x2cca27(0x34d)]=_0x50cbca;}[_0x406997(0x122)](_0x28f670){const _0x1f6002=_0x406997;let _0x1f50ed=this[_0x1f6002(0x1cb)][_0x1f6002(0x284)](u[_0x1f6002(0x186)]);if(!_0x1f50ed)throw Error(_0x1f6002(0x3e9));let _0x3334e3=_0x1f50ed[_0x1f6002(0x238)](_0x28f670);if(!_0x3334e3)throw Error(_0x1f6002(0x3b8));let _0x10ecaa=new n[(_0x1f6002(0x1c2))](),_0x6ff75c=new a[(_0x1f6002(0x342))]();_0x10ecaa[_0x1f6002(0x1e8)](_0x3334e3['close$'][_0x1f6002(0x3e5)](_0x5e9961=>_0x6ff75c[_0x1f6002(0x16d)](_0x5e9961))),_0x10ecaa[_0x1f6002(0x1e8)]((0x0,n[_0x1f6002(0x325)])(()=>_0x6ff75c[_0x1f6002(0x2f1)]()));let _0x255bc2=new a[(_0x1f6002(0x342))]();_0x10ecaa['add'](_0x3334e3[_0x1f6002(0x1e0)][_0x1f6002(0x3e5)](_0x19b4ae=>_0x255bc2[_0x1f6002(0x16d)](_0x19b4ae))),_0x10ecaa[_0x1f6002(0x1e8)]((0x0,n[_0x1f6002(0x325)])(()=>_0x255bc2[_0x1f6002(0x2f1)]()));let _0x8e9e5a=new a[(_0x1f6002(0x342))]();_0x10ecaa[_0x1f6002(0x1e8)](_0x3334e3[_0x1f6002(0x181)][_0x1f6002(0x3e5)](_0x3230a0=>{const _0x52dc47=_0x1f6002;let _0x228562=Fe(_0x3230a0);_0x8e9e5a[_0x52dc47(0x16d)](_0x228562);})),_0x10ecaa[_0x1f6002(0x1e8)]((0x0,n[_0x1f6002(0x325)])(()=>_0x8e9e5a[_0x1f6002(0x2f1)]()));let _0x2aca6a,_0xab490f=()=>{const _0x4d3d72=_0x1f6002;_0x255bc2[_0x4d3d72(0x16d)](new Event(_0x4d3d72(0x113))),_0x6ff75c[_0x4d3d72(0x16d)](new Event(_0x4d3d72(0x113))),_0x2aca6a[_0x4d3d72(0x29f)]();};return _0x2aca6a={'memberID':'','close$':_0x6ff75c[_0x1f6002(0x1c0)](),'error$':_0x255bc2[_0x1f6002(0x1c0)](),'open$':_0x3334e3[_0x1f6002(0x3e2)],'message$':_0x8e9e5a[_0x1f6002(0x1c0)](),'send':_0x583241=>{const _0x582593=_0x1f6002;if(_0x583241[_0x582593(0x163)]===o[_0x582593(0x1dc)][_0x582593(0x156)]){if(_0x583241['data'][_0x582593(0x2a1)]===t[_0x582593(0x1fd)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x2aca6a,_0x583241[_0x582593(0x379)])[_0x582593(0x398)](_0x2c1882=>{this['_logService']['error'](_0x2c1882),_0xab490f();});return;}if(_0x583241[_0x582593(0x379)][_0x582593(0x2a1)]===t[_0x582593(0x1fd)][_0x582593(0x303)]){let _0x2ce823=_0x583241[_0x582593(0x379)];this['_fetchMissChangesets'](_0x2ce823)['then'](_0x448191=>{const _0x25b866=_0x582593;_0x8e9e5a[_0x25b866(0x16d)]({'cmd':o['CombCmd'][_0x25b866(0x3cf)],'code':o[_0x25b866(0x15b)]['OK'],'routeKey':_0x2ce823[_0x25b866(0x379)]['unitID'],'routeType':'','data':{'eventID':t[_0x25b866(0x1fd)][_0x25b866(0x299)],'data':{'changesets':_0x448191}}});})['catch'](_0x5e304f=>{const _0x1ddd00=_0x582593;this[_0x1ddd00(0x185)][_0x1ddd00(0x2a8)](_0x5e304f),_0xab490f();});return;}}_0x3334e3['send'](Ie(_0x583241));},'close':()=>{const _0x2ba28b=_0x1f6002;_0x3334e3[_0x2ba28b(0x29f)](),_0x10ecaa[_0x2ba28b(0x34b)]();}},_0x2aca6a;}async['_submitChangeset'](_0x387cd0,_0x901df8){const _0x1ab87f=_0x406997;var _0x270129;let {unitType:_0x4f18a3,unitID:_0x3fc0ad,changeset:_0x511a06}=_0x901df8[_0x1ab87f(0x379)],_0x2e6189={'unitID':_0x3fc0ad,'memberID':_0x387cd0['memberID'],'type':_0x4f18a3,'changeset':(0x0,t['parseChangesetToProtocol'])(_0x511a06)},_0x8e5164=this[_0x1ab87f(0x102)][_0x1ab87f(0x2df)](h),_0x455a99=Re((_0x270129=_0x8e5164==null?void 0x0:_0x8e5164[_0x1ab87f(0x317)])==null?_0x1ab87f(0x1f6):_0x270129,_0x4f18a3,_0x3fc0ad);try{await this[_0x1ab87f(0x1b4)][_0x1ab87f(0x318)](_0x455a99,{'body':_0x2e6189});}catch(_0x199204){throw this['_logService'][_0x1ab87f(0x2a8)]('[CollaborationSession]',_0x1ab87f(0x381)),_0x199204;}}async[_0x406997(0x245)](_0x21d0f0){const _0x5d6996=_0x406997;let {unitID:_0x1acb0e,from:_0x3194b9,to:_0xa0d146,unitType:_0x5616b9}=_0x21d0f0[_0x5d6996(0x379)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1acb0e,'type':_0x5616b9,'from':_0x3194b9,'to':_0xa0d146}))['changesets'][_0x5d6996(0x229)](_0x16b5b0=>((_0x16b5b0[_0x5d6996(0x393)]===null||_0x16b5b0[_0x5d6996(0x393)]===void 0x0)&&(_0x16b5b0[_0x5d6996(0x393)]=[]),_0x16b5b0));}};ze=b([y(0x0,(0x0,n['Inject'])(n[_0x406997(0x321)])),y(0x1,(0x0,n['Inject'])(u[_0x406997(0x220)])),y(0x2,n[_0x406997(0x262)]),y(0x3,n[_0x406997(0x152)]),y(0x4,t[_0x406997(0x2a7)])],ze);let V=class extends n['Disposable']{get['_socket'](){const _0x35852c=_0x406997;return this['_socket$'][_0x35852c(0x376)]();}constructor(_0x381570,_0xa0b8ab,_0x4456a6,_0x1f88fa,_0x3c4b53,_0x308ab9){const _0xad783d=_0x406997;super(),this[_0xad783d(0x1cb)]=_0x381570,this[_0xad783d(0x185)]=_0xa0b8ab,this['_configService']=_0x4456a6,this[_0xad783d(0x1fa)]=_0x1f88fa,this[_0xad783d(0x3ec)]=_0x3c4b53,this['_networkConditionService']=_0x308ab9,_(this,_0xad783d(0x10a),new a[(_0xad783d(0x3e1))](void 0x0)),_(this,_0xad783d(0x121),this[_0xad783d(0x10a)][_0xad783d(0x1c0)]()),_(this,_0xad783d(0x3dd),null),_(this,_0xad783d(0x2fc),new Map()),_(this,'_status$',new a[(_0xad783d(0x3e1))](0x0)),_(this,_0xad783d(0x151),this[_0xad783d(0x189)][_0xad783d(0x1c0)]()),_(this,_0xad783d(0x374),!0x1),_(this,_0xad783d(0x11a),void 0x0),_(this,_0xad783d(0x337),0x0),_(this,_0xad783d(0x249),null),_(this,_0xad783d(0x341),void 0x0),_(this,_0xad783d(0x128),void 0x0),this[_0xad783d(0x382)]();}[_0x406997(0x382)](){const _0x113d8d=_0x406997;this[_0x113d8d(0x391)]&&this['disposeWithMe'](this[_0x113d8d(0x391)][_0x113d8d(0x3e0)]['subscribe'](_0x14d3b8=>{const _0x9c9d5a=_0x113d8d;_0x14d3b8&&!this[_0x9c9d5a(0x241)]&&this[_0x9c9d5a(0x12d)](),_0x14d3b8||this[_0x9c9d5a(0x2b7)]();}));}['dispose'](){const _0x5087ab=_0x406997;var _0x194a6b;super[_0x5087ab(0x34b)](),(_0x194a6b=this[_0x5087ab(0x249)])==null||_0x194a6b['unsubscribe'](),this[_0x5087ab(0x249)]=null,this[_0x5087ab(0x17b)](),this['_clearTimeoutTimer'](),this[_0x5087ab(0x212)](),this[_0x5087ab(0x2fc)]['forEach'](_0x43b156=>_0x43b156[_0x5087ab(0x34b)]()),this[_0x5087ab(0x2fc)][_0x5087ab(0x32e)](),this['_status$']['complete']();}async['requireSession'](_0x380699){const _0x50177f=_0x406997;if(this[_0x50177f(0x2fc)][_0x50177f(0x22e)](_0x380699))return this[_0x50177f(0x2fc)]['get'](_0x380699);this[_0x50177f(0x26e)]();let _0x45e385=this[_0x50177f(0x1cb)][_0x50177f(0x244)](S,_0x380699,this[_0x50177f(0x10a)][_0x50177f(0x1c0)]());return this[_0x50177f(0x2fc)]['set'](_0x380699,_0x45e385),_0x45e385;}['closeSession'](_0x7b456b){const _0x36edcd=_0x406997;let _0x4e0349=this[_0x36edcd(0x2fc)]['get'](_0x7b456b);if(_0x4e0349&&(this[_0x36edcd(0x2fc)][_0x36edcd(0x28a)](_0x7b456b),_0x4e0349['close']()),!this[_0x36edcd(0x2fc)][_0x36edcd(0x2ea)]){var _0x237ba2;(_0x237ba2=this[_0x36edcd(0x241)])==null||_0x237ba2[_0x36edcd(0x29f)]();}}[_0x406997(0x12d)](){const _0x3bf3eb=_0x406997;this[_0x3bf3eb(0x337)]=0x0,this[_0x3bf3eb(0x17b)](),this[_0x3bf3eb(0x330)]();}[_0x406997(0x17b)](){const _0x22d94e=_0x406997;this[_0x22d94e(0x11a)]!=null&&(clearTimeout(this[_0x22d94e(0x11a)]),this[_0x22d94e(0x11a)]=null);}async[_0x406997(0x272)](){const _0x426de5=_0x406997;var _0x1064ab;let _0x403fe8=this['_configService']['getConfig'](h),_0x2bb428=(_0x1064ab=_0x403fe8==null?void 0x0:_0x403fe8[_0x426de5(0x13c)])==null?te:_0x1064ab,_0x309a1f=await this[_0x426de5(0x1fa)][_0x426de5(0x238)](_0x2bb428);return this['_candidateSocket']=_0x309a1f,_0x309a1f;}async[_0x406997(0x26e)](){const _0x354e04=_0x406997;try{var _0x1f0937,_0x12e1a4;let _0x505360=(_0x1f0937=(_0x12e1a4=this['_socket'])==null?this[_0x354e04(0x3dd)]:_0x12e1a4)==null?await this[_0x354e04(0x272)]():_0x1f0937;if(_0x505360){var _0x2a83cc;let _0x19013f=_0x505360[_0x354e04(0x218)];_0x505360[_0x354e04(0x218)]=_0x5d7c83=>(_0x5d7c83[_0x354e04(0x163)]!==o['CombCmd']['LEAVE']&&this[_0x354e04(0x1ac)](),_0x19013f['apply'](_0x505360,[_0x5d7c83])),(_0x2a83cc=this[_0x354e04(0x249)])==null||_0x2a83cc[_0x354e04(0x37a)](),this[_0x354e04(0x249)]=null,this['_socketMessageSubscription']=_0x505360[_0x354e04(0x181)][_0x354e04(0x3e5)](_0x414b5a=>this[_0x354e04(0x3ab)](_0x505360,_0x414b5a)),_0x505360[_0x354e04(0x1e0)][_0x354e04(0x119)]((0x0,c[_0x354e04(0x2f9)])(0x1))[_0x354e04(0x3e5)](_0xf1424e=>this[_0x354e04(0x185)][_0x354e04(0x2a8)]('[CollaborationSessionService]:\x20socket\x20error',_0xf1424e)),_0x505360[_0x354e04(0x3e2)][_0x354e04(0x119)]((0x0,c[_0x354e04(0x2f9)])(0x1))[_0x354e04(0x3e5)](()=>{const _0x4cae50=_0x354e04;this[_0x4cae50(0x21d)](_0x505360);}),_0x505360[_0x354e04(0x1d7)][_0x354e04(0x119)]((0x0,c[_0x354e04(0x2f9)])(0x1))[_0x354e04(0x3e5)](_0x2af2f4=>{const _0x136be5=_0x354e04;this[_0x136be5(0x185)][_0x136be5(0x19e)](_0x136be5(0x1a6),_0x136be5(0x1b2),_0x2af2f4),this[_0x136be5(0x2db)]();});}}catch(_0x44cd6d){this[_0x354e04(0x185)][_0x354e04(0x2a8)](_0x44cd6d),this[_0x354e04(0x2db)]();}}[_0x406997(0x21d)](_0x331457){const _0x391059=_0x406997;this[_0x391059(0x185)][_0x391059(0x19e)](_0x391059(0x1a6),_0x391059(0x18a)),_0x331457[_0x391059(0x218)]({'cmd':o['CombCmd'][_0x391059(0x3c0)]}),this['_rescheduleHeartbeat']();}[_0x406997(0x2b7)](){const _0x265473=_0x406997;this['_socketReady']=!0x1,this[_0x265473(0x3dd)]=null,this[_0x265473(0x189)]['next'](0x2),this[_0x265473(0x10a)]['next'](null),this[_0x265473(0x2ad)](),this['_clearHeartbeatTimer']();}[_0x406997(0x2db)](){const _0x533ce8=_0x406997;var _0xf1e3f7;this[_0x533ce8(0x2b7)](),this['_retryCount']<((_0xf1e3f7=this[_0x533ce8(0x102)]['getConfig'](_0x533ce8(0x296)))==null?0x3:_0xf1e3f7)?(this['_collaborationUIEventService'][_0x533ce8(0x343)]({'id':_0x533ce8(0x1e6)}),this[_0x533ce8(0x330)]()):this[_0x533ce8(0x3ec)][_0x533ce8(0x343)]({'id':'SOCKET_FAILED'});}[_0x406997(0x330)](){const _0x59bbc8=_0x406997;var _0x2a3b52;let _0x109630=this[_0x59bbc8(0x337)],_0x1b1d25=this[_0x59bbc8(0x102)]['getConfig'](h),_0x8e6e61=_0x109630===0x0?0x0:((_0x2a3b52=_0x1b1d25==null?void 0x0:_0x1b1d25[_0x59bbc8(0x30f)])==null?0x4e20:_0x2a3b52)*0x2**_0x109630;this[_0x59bbc8(0x11a)]=setTimeout(()=>{const _0x20b181=_0x59bbc8;clearTimeout(this[_0x20b181(0x11a)]),this[_0x20b181(0x11a)]=null,this[_0x20b181(0x26e)]();},_0x8e6e61),this[_0x59bbc8(0x337)]+=0x1;}[_0x406997(0x3ab)](_0x3137b2,_0x40200a){const _0x50dc7d=_0x406997;let {cmd:_0x58d281}=_0x40200a;_0x58d281===o[_0x50dc7d(0x1dc)]['HELLO']&&!this['_socketReady']&&(_0x3137b2[_0x50dc7d(0x3b5)]=_0x40200a[_0x50dc7d(0x379)][_0x50dc7d(0x3b5)],this[_0x50dc7d(0x10a)]['next'](_0x3137b2),this[_0x50dc7d(0x189)][_0x50dc7d(0x16d)](0x3),this['_socketReady']=!0x0,this[_0x50dc7d(0x3dd)]=null),_0x58d281===o[_0x50dc7d(0x1dc)][_0x50dc7d(0x259)]&&this[_0x50dc7d(0x2ad)](),this[_0x50dc7d(0x1ac)]();}['_rescheduleHeartbeat'](){const _0x11ff57=_0x406997;var _0x84950c;this[_0x11ff57(0x212)](),this[_0x11ff57(0x341)]=setTimeout(()=>this[_0x11ff57(0x169)](),(_0x84950c=this[_0x11ff57(0x102)][_0x11ff57(0x2df)](_0x11ff57(0x1f5)))==null?0x7530:_0x84950c);}[_0x406997(0x169)](){const _0x24d883=_0x406997;this[_0x24d883(0x241)]['send']({'cmd':o['CombCmd']['HEARTBEAT']}),this[_0x24d883(0x3f4)]();}[_0x406997(0x3f4)](){const _0x1a8cd3=_0x406997;var _0x3f125e;this[_0x1a8cd3(0x128)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x3f125e=this[_0x1a8cd3(0x102)][_0x1a8cd3(0x2df)](_0x1a8cd3(0x198)))==null?ne:_0x3f125e);}[_0x406997(0x212)](){const _0x53a835=_0x406997;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x53a835(0x341)]),this[_0x53a835(0x341)]=null);}[_0x406997(0x2ad)](){const _0xa79bfa=_0x406997;this[_0xa79bfa(0x128)]!=null&&(clearTimeout(this[_0xa79bfa(0x128)]),this[_0xa79bfa(0x128)]=null);}};V=b([y(0x0,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x321)])),y(0x1,n[_0x406997(0x152)]),y(0x2,n[_0x406997(0x262)]),y(0x3,Le),y(0x4,(0x0,n[_0x406997(0x28e)])(v)),y(0x5,(0x0,n[_0x406997(0x161)])(Pe))],V);let H=class extends n['RxDisposable']{constructor(_0xb7b1e0,_0x5c9dc1,_0x101e8d,_0x27cf54){const _0x3fbf0d=_0x406997;var _0x3e6b3a;super(),this[_0x3fbf0d(0x1cb)]=_0xb7b1e0,this['_collabSessionService']=_0x5c9dc1,this[_0x3fbf0d(0x102)]=_0x101e8d,this[_0x3fbf0d(0x2ee)]=_0x27cf54,_(this,_0x3fbf0d(0x167),new Map()),_(this,_0x3fbf0d(0x2dc),new a[(_0x3fbf0d(0x342))]()),_(this,_0x3fbf0d(0x171),this[_0x3fbf0d(0x2dc)][_0x3fbf0d(0x1c0)]()),((_0x3e6b3a=this['_configService'][_0x3fbf0d(0x2df)]('collaboration-client.config'))==null?void 0x0:_0x3e6b3a[_0x3fbf0d(0xfe)])!==!0x1&&this[_0x3fbf0d(0x1be)]();}[_0x406997(0x34b)](){const _0x60a281=_0x406997;super[_0x60a281(0x34b)](),this['_entities'][_0x60a281(0x1e5)](_0x55c848=>_0x55c848['dispose']()),this['_entities'][_0x60a281(0x32e)]();}[_0x406997(0x180)](_0x495d58){const _0x9af8cd=_0x406997;var _0x28629f;return(_0x28629f=this[_0x9af8cd(0x167)][_0x9af8cd(0x284)](_0x495d58))==null?null:_0x28629f;}[_0x406997(0x3fa)](_0xec28ff){const _0x138e58=_0x406997;let _0x32f072=this[_0x138e58(0x180)](_0xec28ff);return _0x32f072?(0x0,a['of'])(_0x32f072):this[_0x138e58(0x2dc)][_0x138e58(0x119)]((0x0,c[_0x138e58(0x1e9)])(_0x5320f2=>_0x5320f2[_0x138e58(0x187)]===_0xec28ff));}[_0x406997(0x2b0)](_0x1f1fa7){const _0x236ce0=_0x406997;return(0x0,a[_0x236ce0(0x2f0)])(this[_0x236ce0(0x3fa)](_0x1f1fa7)[_0x236ce0(0x119)]((0x0,c[_0x236ce0(0x229)])(()=>void 0x0)));}[_0x406997(0x1be)](){const _0x5cd3bd=_0x406997;this[_0x5cd3bd(0x2ee)][_0x5cd3bd(0x21e)](n[_0x5cd3bd(0x127)][_0x5cd3bd(0x225)])[_0x5cd3bd(0x119)]((0x0,a[_0x5cd3bd(0x39c)])(this[_0x5cd3bd(0x33c)]),(0x0,c[_0x5cd3bd(0x392)])(0x10))['subscribe'](async _0x31894f=>{const _0x1540cb=_0x5cd3bd;let _0x115aee=_0x31894f['unit']['getUnitId'](),_0x779287=await this[_0x1540cb(0x108)](_0x115aee,n[_0x1540cb(0x127)]['UNIVER_SHEET']);this[_0x1540cb(0x167)]['set'](_0x115aee,_0x779287);}),this[_0x5cd3bd(0x2ee)][_0x5cd3bd(0x21e)](n[_0x5cd3bd(0x127)][_0x5cd3bd(0x332)])[_0x5cd3bd(0x119)]((0x0,a['takeUntil'])(this[_0x5cd3bd(0x33c)]),(0x0,c[_0x5cd3bd(0x392)])(0x10))[_0x5cd3bd(0x119)]((0x0,c[_0x5cd3bd(0x1e9)])(_0x5d561c=>!_0x5d561c[_0x5cd3bd(0x109)][_0x5cd3bd(0x297)]()[_0x5cd3bd(0x177)]('__')))['subscribe'](async _0x417438=>{const _0x10f6e7=_0x5cd3bd;let _0x474702=_0x417438[_0x10f6e7(0x109)]['getUnitId'](),_0x1a140c=await this['_startCollaboration'](_0x474702,n[_0x10f6e7(0x127)][_0x10f6e7(0x332)]);this[_0x10f6e7(0x167)][_0x10f6e7(0x355)](_0x474702,_0x1a140c);}),this['_univerInstanceService'][_0x5cd3bd(0x21e)](n['UniverInstanceType'][_0x5cd3bd(0x3bf)])[_0x5cd3bd(0x119)]((0x0,a[_0x5cd3bd(0x39c)])(this['dispose$']),(0x0,c['delay'])(0x10))['subscribe'](async _0x2f6ef7=>{const _0x302ca1=_0x5cd3bd;let _0x4a297d=_0x2f6ef7[_0x302ca1(0x109)][_0x302ca1(0x297)](),_0x46197f=await this[_0x302ca1(0x108)](_0x4a297d,n[_0x302ca1(0x127)][_0x302ca1(0x3bf)]);this[_0x302ca1(0x167)]['set'](_0x4a297d,_0x46197f);}),this[_0x5cd3bd(0x2ee)]['getTypeOfUnitAdded$'](n[_0x5cd3bd(0x127)][_0x5cd3bd(0x23f)])[_0x5cd3bd(0x119)]((0x0,a[_0x5cd3bd(0x39c)])(this[_0x5cd3bd(0x33c)]),(0x0,c[_0x5cd3bd(0x392)])(0x10))[_0x5cd3bd(0x3e5)](async _0x207b86=>{const _0x58c4a5=_0x5cd3bd;let _0x5d6c96=_0x207b86['unit'][_0x58c4a5(0x297)](),_0x2e4182=await this[_0x58c4a5(0x108)](_0x5d6c96,n['UniverInstanceType']['UNIVER_BASE']);this[_0x58c4a5(0x167)][_0x58c4a5(0x355)](_0x5d6c96,_0x2e4182);}),(0x0,a['merge'])(this[_0x5cd3bd(0x2ee)][_0x5cd3bd(0x280)](n[_0x5cd3bd(0x127)][_0x5cd3bd(0x225)]),this[_0x5cd3bd(0x2ee)][_0x5cd3bd(0x280)](n['UniverInstanceType']['UNIVER_DOC']),this[_0x5cd3bd(0x2ee)]['getTypeOfUnitDisposed$'](n[_0x5cd3bd(0x127)]['UNIVER_SLIDE']),this[_0x5cd3bd(0x2ee)][_0x5cd3bd(0x280)](n[_0x5cd3bd(0x127)][_0x5cd3bd(0x23f)]))[_0x5cd3bd(0x119)]((0x0,a[_0x5cd3bd(0x39c)])(this[_0x5cd3bd(0x33c)]))['subscribe'](_0x2f6abc=>{const _0x2a0aeb=_0x5cd3bd;let _0x40d91d=_0x2f6abc[_0x2a0aeb(0x297)](),_0x44f967=this[_0x2a0aeb(0x167)][_0x2a0aeb(0x284)](_0x40d91d);_0x44f967&&(_0x44f967[_0x2a0aeb(0x34b)](),this[_0x2a0aeb(0x167)]['delete'](_0x40d91d));});}async[_0x406997(0x108)](_0x3594a1,_0x19faf1){const _0x142b15=_0x406997;let _0x16a431=await this['_collabSessionService'][_0x142b15(0x114)](_0x3594a1),_0x52f757=this['_injector'][_0x142b15(0x244)](this['_getCtorByUniverInstanceType'](_0x19faf1),_0x3594a1,_0x19faf1,_0x16a431);return await _0x52f757[_0x142b15(0x1b8)](),this[_0x142b15(0x2dc)][_0x142b15(0x16d)](_0x52f757),_0x52f757;}[_0x406997(0x106)](_0x4c9658){const _0x33efae=_0x406997;switch(_0x4c9658){case n[_0x33efae(0x127)][_0x33efae(0x332)]:return R;case n[_0x33efae(0x127)][_0x33efae(0x225)]:return z;case n[_0x33efae(0x127)]['UNIVER_SLIDE']:return B;case n[_0x33efae(0x127)][_0x33efae(0x23f)]:return Ne;default:throw Error(_0x33efae(0x2a2)+_0x4c9658);}}};H=b([y(0x0,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x321)])),y(0x1,(0x0,n[_0x406997(0x28e)])(V)),y(0x2,n['IConfigService']),y(0x3,n[_0x406997(0x131)])],H);var Be=_0x406997(0x2c6),Ve='1.0.0-alpha.2';let He=class extends n['Disposable']{constructor(_0x157a17,_0x21066e){const _0x19f17b=_0x406997;super(),this[_0x19f17b(0x2ee)]=_0x157a17,this[_0x19f17b(0x102)]=_0x21066e,this[_0x19f17b(0x1be)]();}[_0x406997(0x1be)](){const _0x1c7842=_0x406997;this[_0x1c7842(0x1c1)](this[_0x1c7842(0x2ee)][_0x1c7842(0x3f0)][_0x1c7842(0x3e5)](()=>{const _0x425c88=_0x1c7842;var _0x39ce92;let _0x1ebcbb=this[_0x425c88(0x2ee)]['getFocusedUnit'](),_0x2fe4b3=(_0x39ce92=this['_configService'][_0x425c88(0x2df)](_0x425c88(0x39a)))==null?_0x425c88(0x282):_0x39ce92;_0x1ebcbb instanceof n[_0x425c88(0x11e)]&&(_0x2fe4b3=_0x1ebcbb[_0x425c88(0x35a)]),document[_0x425c88(0x21f)]=_0x2fe4b3;}));}};He=b([y(0x0,n[_0x406997(0x131)]),y(0x1,n['IConfigService'])],He);let Ue=function(_0x17deb2){const _0x45fe6a=_0x406997;return _0x17deb2['URL']=_0x45fe6a(0x103),_0x17deb2['UUID']=_0x45fe6a(0x1b9),_0x17deb2[_0x45fe6a(0x22a)]='BASE64',_0x17deb2;}({});const We=(0x0,n[_0x406997(0x1bd)])(_0x406997(0x3c8));let U=class{constructor(_0x32557d,_0x4f144a,_0x31f282){const _0x34cb1f=_0x406997;this[_0x34cb1f(0x1b4)]=_0x32557d,this[_0x34cb1f(0x102)]=_0x4f144a,this['_univerInstanceService']=_0x31f282;}[_0x406997(0x1f3)](){const _0x480da6=_0x406997;var _0x37ed6f;return(_0x37ed6f=this[_0x480da6(0x1ce)]()[_0x480da6(0x1de)])==null?{}:_0x37ed6f;}async[_0x406997(0x2da)](_0x630513){const _0xd6f3b2=_0x406997;let _0x29621c=this[_0xd6f3b2(0x1f3)]();if(Ge(_0x630513,_0x29621c),_0x29621c[_0xd6f3b2(0x3a3)])return _0x29621c[_0xd6f3b2(0x3a3)](_0x630513);let _0x11cc4b=await this['_upload'](_0x630513);return{'id':_0x11cc4b,'name':_0x630513['name'],'mimeType':_0x630513['type'],'size':_0x630513[_0xd6f3b2(0x2ea)],'sourceType':_0xd6f3b2(0x1b9),'source':_0x11cc4b};}async['_upload'](_0x41a8fa){const _0x302cbd=_0x406997;let _0x4a6d7b=this[_0x302cbd(0x2ee)][_0x302cbd(0x14a)](),_0x1df10f=_0x4a6d7b==null?void 0x0:_0x4a6d7b[_0x302cbd(0x297)]();if(!_0x1df10f)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x203268=new FormData();_0x203268[_0x302cbd(0x193)](_0x302cbd(0x190),_0x41a8fa);let _0xef6efc=this[_0x302cbd(0x3c1)]()+_0x302cbd(0x203)+_0x41a8fa[_0x302cbd(0x2ea)][_0x302cbd(0x18f)]()+_0x302cbd(0x222)+o['FileSource'][_0x302cbd(0x27a)]+_0x302cbd(0x1a8)+encodeURIComponent(_0x1df10f),_0x587c47=(await this[_0x302cbd(0x1b4)][_0x302cbd(0x318)](_0xef6efc,{'body':_0x203268}))[_0x302cbd(0x1c7)][_0x302cbd(0x29d)];if(typeof _0x587c47!=_0x302cbd(0x24f)||!_0x587c47)throw Error(_0x302cbd(0x139));return _0x587c47;}[_0x406997(0x3c1)](){const _0x30b0de=_0x406997;var _0x12a701;return(_0x12a701=this['_getConfig']()[_0x30b0de(0x2be)])==null?_0x30b0de(0x32d):_0x12a701;}[_0x406997(0x1ce)](){const _0x2bbab2=_0x406997;var _0x357cac;return(_0x357cac=this[_0x2bbab2(0x102)][_0x2bbab2(0x2df)](_0x2bbab2(0x3db)))==null?{}:_0x357cac;}};U=b([y(0x0,(0x0,n['Inject'])(u[_0x406997(0x220)])),y(0x1,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x262)])),y(0x2,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x131)]))],U);function Ge(_0x6ff09d,_0x745e7d){const _0x5d1599=_0x406997;var _0x4f4876;if(_0x745e7d['maxSize']!=null&&_0x6ff09d['size']>_0x745e7d[_0x5d1599(0x36f)])throw Error(_0x5d1599(0x10f));if((_0x4f4876=_0x745e7d['accept'])!=null&&_0x4f4876['length']&&!_0x745e7d[_0x5d1599(0x37b)][_0x5d1599(0x2af)](_0x260a4d=>_0x6ff09d[_0x5d1599(0x132)]===_0x260a4d||_0x6ff09d[_0x5d1599(0x35a)]['endsWith'](_0x260a4d)||_0x260a4d[_0x5d1599(0x26a)]('/*')&&_0x6ff09d[_0x5d1599(0x132)][_0x5d1599(0x177)](_0x260a4d['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let W=class{constructor(_0x244a70,_0x33fedd,_0x2a1ef5){const _0x5893d9=_0x406997;this['_configService']=_0x244a70,this[_0x5893d9(0x1b4)]=_0x33fedd,this[_0x5893d9(0x1d4)]=_0x2a1ef5,this[_0x5893d9(0x1b8)]();}[_0x406997(0x1b8)](){const _0x3081db=_0x406997;this[_0x3081db(0x1b4)][_0x3081db(0x23c)]({'priority':0x1,'interceptor':(_0x525dff,_0x457b7d)=>_0x457b7d(_0x525dff)['pipe']((0x0,a['concatMap'])(async _0x1b571e=>{const _0x139681=_0x3081db;let _0x515313=_0x1b571e;if(_0x515313[_0x139681(0x2a6)]===0x191){if(typeof window>'u')throw Error(_0x139681(0x30c));if(window['confirm'](this[_0x139681(0x1d4)]['t'](_0x139681(0x197)))){let _0x576745=window[_0x139681(0x2e9)](window[_0x139681(0x159)][_0x139681(0x3b3)]);window[_0x139681(0x159)][_0x139681(0x3b3)]=this['_getLoginPath']()+_0x139681(0x13b)+_0x576745;}}return _0x515313;}))});}[_0x406997(0x399)](){const _0x2ee64c=_0x406997;var _0x30f1b6;let _0x5738e6=this[_0x2ee64c(0x102)][_0x2ee64c(0x2df)](h);return(_0x30f1b6=_0x5738e6==null?void 0x0:_0x5738e6['loginUrlKey'])==null?_0x2ee64c(0x2cb):_0x30f1b6;}};W=b([y(0x0,n['IConfigService']),y(0x1,(0x0,n[_0x406997(0x28e)])(u[_0x406997(0x220)])),y(0x2,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x3d3)]))],W);let G=class extends n['Disposable']{constructor(_0x25eee9,_0xcc493b){const _0x170fca=_0x406997;super(),this['_HTTPService']=_0x25eee9,this[_0x170fca(0x102)]=_0xcc493b,_(this,'_cfgEnableObjInherit',!0x1),this[_0x170fca(0x29e)]();}['_initMergeInterceptor'](){const _0x17144c=_0x406997;let _0x10e735=this;this[_0x17144c(0x1c1)](this[_0x17144c(0x202)][_0x17144c(0x23c)]({'priority':0x3e7,'interceptor':(0x0,u[_0x17144c(0x322)])({'isMatch'(_0x4f754e){const _0x2a389f=_0x17144c;var _0x5f0fa5;if(_0x4f754e[_0x2a389f(0x1fc)]==='POST'&&(_0x5f0fa5=_0x4f754e[_0x2a389f(0x2ed)])!=null&&_0x5f0fa5[_0x2a389f(0x1c7)]){let {objectID:_0x324996,objectType:_0x4be569}=_0x4f754e[_0x2a389f(0x2ed)][_0x2a389f(0x1c7)]||{};if(!_0x324996||_0x4be569===void 0x0)return!0x1;let _0x3d43ff=_0x10e735['_getAPIPrefixPath']()+'/'+_0x4be569+_0x2a389f(0x145)+_0x324996+_0x2a389f(0x1ee);if(_0x4f754e[_0x2a389f(0x17e)]===_0x3d43ff)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x95e9b3){const _0x5ad51c=_0x17144c;var _0x5a028b;return(_0x5a028b=_0x95e9b3['requestParams'])==null?void 0x0:_0x5a028b[_0x5ad51c(0x1c7)];},'mergeParamsToRequest'(_0x1f7f6b,_0xc0d052){const _0x5e2544=_0x17144c;let _0x46f23b=_0x10e735['_getAPIPrefixPath']()+_0x5e2544(0x37f),_0x27a1e7=_0x1f7f6b[_0x5e2544(0x213)]((_0x3784f7,_0x202057)=>{const _0x5e4f8f=_0x5e2544;let {unitID:_0x54ef12,objectID:_0x4e3c7a,objectType:_0x58907b,actions:_0x4240b2}=_0x202057;return _0x3784f7[_0x54ef12]||(_0x3784f7[_0x54ef12]={}),_0x3784f7[_0x54ef12][_0x4e3c7a]||(_0x3784f7[_0x54ef12][_0x4e3c7a]={'objectID':_0x4e3c7a,'objectType':_0x58907b,'actions':[]}),_0x3784f7[_0x54ef12][_0x4e3c7a][_0x5e4f8f(0x371)][_0x5e4f8f(0x1db)](..._0x4240b2),_0x3784f7;},{}),_0xf544e9=[];for(let _0x3715e7 in _0x27a1e7)for(let _0x1516a5 in _0x27a1e7[_0x3715e7]){let {actions:_0x284a10,objectType:_0x193439}=_0x27a1e7[_0x3715e7][_0x1516a5],_0x38b469=[...new Set(_0x284a10)];_0xf544e9['push']({'unitID':_0x3715e7,'objectID':_0x1516a5,'objectType':_0x193439,'actions':_0x38b469});}return new u[(_0x5e2544(0x129))](_0x5e2544(0x19f),_0x46f23b,{'headers':_0xc0d052['headers'],'withCredentials':_0xc0d052['withCredentials'],'responseType':_0xc0d052[_0x5e2544(0x1aa)],'body':{'requests':_0xf544e9}});}},{'distributeResult'(_0x294342,_0x39f5ab){let {objectActions:_0x5dfd7b}=_0x294342;return _0x39f5ab['map'](_0x5dc81f=>{const _0x41ca21=_0xcc0c;let {unitID:_0x19620d,objectID:_0x2f444c,actions:_0x53c265}=_0x5dc81f,_0x2a93f0=_0x5dfd7b[_0x41ca21(0x312)](_0xf21b3e=>_0xf21b3e['unitID']===_0x19620d&&_0xf21b3e[_0x41ca21(0x361)]===_0x2f444c);return{'config':_0x5dc81f,'result':{'actions':_0x53c265[_0x41ca21(0x229)](_0xeefa45=>_0x2a93f0==null?void 0x0:_0x2a93f0[_0x41ca21(0x371)][_0x41ca21(0x312)](_0x3e2358=>_0x3e2358['action']===_0xeefa45))[_0x41ca21(0x1e9)](_0x471a13=>!!_0x471a13),'error':_0x294342[_0x41ca21(0x2a8)]}};});}})}));}[_0x406997(0x3ad)](){const _0x148e78=_0x406997;var _0x541665;let _0x33fda3=this[_0x148e78(0x102)]['getConfig'](h);return(_0x541665=_0x33fda3==null?void 0x0:_0x33fda3[_0x148e78(0x188)])==null?_0x148e78(0x350):_0x541665;}async[_0x406997(0x33f)](_0xf545ea){const _0x1c5299=_0x406997;let _0x2b49c=this[_0x1c5299(0x3ad)]()+'/'+_0xf545ea[_0x1c5299(0x345)]+_0x1c5299(0x1bc);return(await this[_0x1c5299(0x202)][_0x1c5299(0x318)](_0x2b49c,{'body':_0xf545ea}))['body'][_0x1c5299(0x361)]||'';}async['list'](_0x129b64){const _0x1a1dd7=_0x406997;let _0x6e524=this[_0x1a1dd7(0x3ad)]()+_0x1a1dd7(0x1f8);return(await this[_0x1a1dd7(0x202)]['post'](_0x6e524,{'body':_0x129b64}))[_0x1a1dd7(0x1c7)][_0x1a1dd7(0x33a)];}async['update'](_0x42d3fa){const _0x195642=_0x406997;var _0x12664f;let _0x3a13c9=this['_getAPIPrefixPath']()+'/'+_0x42d3fa['objectType']+_0x195642(0x145)+_0x42d3fa[_0x195642(0x361)],_0x3d2ac4=await this[_0x195642(0x202)][_0x195642(0x143)](_0x3a13c9,{'body':_0x42d3fa});if((_0x3d2ac4==null||(_0x12664f=_0x3d2ac4[_0x195642(0x1c7)])==null||(_0x12664f=_0x12664f[_0x195642(0x2a8)])==null?void 0x0:_0x12664f[_0x195642(0x334)])!==0x1)throw Error(_0x195642(0x263));}async[_0x406997(0x36b)](_0x1341c3){const _0xea2eeb=_0x406997;let _0x5e5865=this['_getAPIPrefixPath']()+'/'+_0x1341c3[_0xea2eeb(0x345)]+_0xea2eeb(0x145)+_0x1341c3[_0xea2eeb(0x361)]+'/allowed';return(await this[_0xea2eeb(0x202)][_0xea2eeb(0x318)](_0x5e5865,{'body':_0x1341c3}))[_0xea2eeb(0x1c7)][_0xea2eeb(0x371)];}async[_0x406997(0x34f)](_0x38e9fd){const _0x3f6977=_0x406997;let _0x5ba96e=this[_0x3f6977(0x3ad)]()+'/-/object/-/batch_allowed';return(await this[_0x3f6977(0x202)][_0x3f6977(0x318)](_0x5ba96e,{'body':{'requests':_0x38e9fd}}))['body'][_0x3f6977(0x164)];}async[_0x406997(0x385)](_0x567747){const _0x423421=_0x406997;let _0x42692a=this['_getAPIPrefixPath']()+'/'+_0x567747['objectType']+'/role',_0x457e88=await this[_0x423421(0x202)][_0x423421(0x318)](_0x42692a,{'body':_0x567747});return{'roles':_0x457e88[_0x423421(0x1c7)][_0x423421(0x1bb)],'actions':_0x457e88[_0x423421(0x1c7)][_0x423421(0x371)]};}async[_0x406997(0x3bd)](_0x5aef2b){const _0x28b183=_0x406997;let _0x169481=this[_0x28b183(0x3ad)]()+_0x28b183(0x2eb);await this['_HTTPService'][_0x28b183(0x28a)](_0x169481,{'params':{'collaboratorID':_0x5aef2b[_0x28b183(0x36c)],'objectID':_0x5aef2b[_0x28b183(0x361)],'unitID':_0x5aef2b[_0x28b183(0x187)]}});}async['updateCollaborator'](_0x534975){const _0x493671=_0x406997;let _0x35f361=this['_getAPIPrefixPath']()+_0x493671(0x2eb);await this[_0x493671(0x202)]['patch'](_0x35f361,{'body':_0x534975});}async[_0x406997(0x209)](_0x491571){const _0x5ab3b7=_0x406997;let _0x40ce52=this[_0x5ab3b7(0x3ad)]()+'/collaborator';await this[_0x5ab3b7(0x202)][_0x5ab3b7(0x318)](_0x40ce52,{'body':_0x491571});}async[_0x406997(0x2e5)](_0x16630a){const _0x2e7c97=_0x406997;var _0x2beaf3;let _0x3fd65e=this[_0x2e7c97(0x3ad)]()+'/collaborator',_0xe38e68=await this[_0x2e7c97(0x202)][_0x2e7c97(0x284)](_0x3fd65e,{'params':{'objectID':_0x16630a[_0x2e7c97(0x361)],'unitID':_0x16630a[_0x2e7c97(0x187)]}});return this[_0x2e7c97(0x125)]((_0x2beaf3=_0xe38e68[_0x2e7c97(0x1c7)][_0x2e7c97(0x219)])==null?!0x1:_0x2beaf3),_0xe38e68[_0x2e7c97(0x1c7)][_0x2e7c97(0x1ab)];}async[_0x406997(0x2bb)](_0x57af98){const _0x4f0ae8=_0x406997;let _0x11ea43=this['_getAPIPrefixPath']()+_0x4f0ae8(0x2eb);await this[_0x4f0ae8(0x202)][_0x4f0ae8(0x143)](_0x11ea43,{'body':_0x57af98});}[_0x406997(0x125)](_0x4ccc3e){this['_cfgEnableObjInherit']=_0x4ccc3e;}[_0x406997(0x1e2)](){return this['_cfgEnableObjInherit'];}};function _0x174c(){const _0x12e94e=['unsubscribe','accept','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','onMutationExecutedForCollab','mapDocumentTypeToUniverInstanceType','/-/object/-/batch_allowed','constructor','submit\x20changeset\x20error!','_listenToNetworkCondition','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','MUTATION','listRoles','isTransformMutationsWithChangesetFailure','_onRemoteRejected','sendChangesetTimeout','unitLoaded$','_maxTotalRetryTimeout','number','[SyncedState]:\x20received\x20acknowledgement.','COMPRESS_MUTATION_SEND','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','IMentionIOService','sid','_networkConditionService','delay','mutations','[CollaborationState]:\x20apply\x20error!','_changesetReqId','USERS_ENTER','ImageUploadStatusType','catch','_getLoginPath','DEFAULT_FILE_NAME','/unit/','takeUntil','min','UPDATE_PERMISSION_OBJ','ERROR_IMAGE_TYPE','EmptyMutationInfo','onRemoteChangeset','getResourcesRequest','upload','_state','isPermissionRej','change$','mergeOverrideWithDependencies','editing\x20status\x20changed\x20to','MemberService','_userManagerService','_onMessage','117Fzgdco','_getAPIPrefixPath','joinEvent','collaMsg','prototype','_getAPIPrefix','NO_OTHER_CLIENTS_EDITING','href','_permissionService','memberID','onMissedChangesetFetched','appendMutation','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','JOINING','SUBMIT_CHANGESET','_joinRoom','unitId\x20is\x20not\x20found','deleteCollaborator','_clearUndo','UNIVER_SLIDE','HELLO','_getUploadFileURL','_unlockTransition','4927450peTEhB','src','changesets','originalMeta','LOCAL_CACHE_INTERVAL','base-ui.attachment-io.service','_transitionLocked','stopTime','saveSheetBlock','_localeService','pending','_getSendChangesetTimeout','RECV','params','_executeRemoteChangeset','JOIN_ROOM_PERMISSION_DENIED','LocaleService','registerDependencies','_undoRedoService','call','SheetTransformSelectionsService','enableSingleActiveInstanceLock','[DataLoaderService]','_unitID','collaboration-client.config','c1Prime','_candidateSocket','_commentService','LIVESHARE_TERMINATE','online$','BehaviorSubject','open$','ERROR_EXCEED_SIZE','getDeserializedSheetBlock','subscribe','_onConflict','_onCombEvent','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','ONLINE','onlyLocal','_collaborationUIEventService','_applyRemoteChangeset','updateSnapshot','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','focused$','decorate','CollaborationStatus','__splitChunk__','_waitForHeartbeatResponse','csShouldRetryEvent','defineProperty','DocCollaborationEntity','onTransformIME','result','getCollabEntity$','ERROR_IMAGE','Rectangle','offline','AwaitingState','unitId','stringify','getCurrentSelections','_onRecvEvent','loadBase','enableCollaboration','isArray','utf8ToBytes','_telemetryInfo','_configService','URL','_clearScheduledTask','duration','_getCtorByUniverInstanceType','onMissingChangesets','_startCollaboration','unit','_socket$','/block/','roomInfos','JOIN_ROOM_NOT_EXISTS','_substituteUndoStack','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','connection\x20error','requireSession','conflict','encrypt','getMember','updatePermissionObjEvent','pipe','_retryConnectingTimer','backupOfflineData','transformUndoRedo','subject','Workbook','fetchThroughInterceptors','initWorkbookPermissionChange','socket$','_doCreateSocket','infoRsp','_transformUndoredo','setCfgEnableObjInherit','snapshotServerUrl','UniverInstanceType','_timeoutTimer','HTTPRequest','deserializeToCombResponse','isTransformMutationsWithChangesetSuccess','_revisionService','reconnect','now','executeCommand','_collaborationPaused','IUniverInstanceService','type','uuidv4','loadSheet','getInterceptPoints','_registerDependencies','RevisionService','_throwTelemetryCollaborationNewChangeset','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','saveImage','?url=','collabWebSocketUrl','CollaborativeUndoRedoService','onLocalMutation','parseProtocolChangeset','replace','ICollaborationSocketService','object','put','encode','/object/','[OfflineState]:\x20received\x20changeset.','[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.','USERS_LEAVE','newCsEvent','getFocusedUnit','SUBMIT_CHANGESET_TIMEOUT','ISingleActiveUnitService','_transformIMECache','/universer-api/snapshot','commentUpdate$','COMPRESS_MUTATION_APPLY','status$','ILogService','CollaborationController','FETCH_MISS','shouldCloseConn','INGEST','ILocalCacheService','liveShareOperation','location','AuthzIoHttpService','CmdRspCode','17026nYgUyH','onSyncEditingCollabCursor','toggleOffline','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','subUnitId','Optional','charCodeAt','cmd','objectActions','function','onRemoteRej','_entities','setCurrentUser','_sendHeartbeat','_resendTimer','_remoteChangesetQueue','\x0aAfter:\x20','next','includes','IUndoRedoService','[FetchMissState]','entityInit$','startTime','getUnit','_initRequestHeader','_waitCount','FAIL','startsWith','MSG_FOR_ERROR','ApplyBaseJson1Mutation','/rev/','_clearRetryConnectingTimer','[OfflineState]:\x20received\x20rejection.','ITransformService','url','_replaceFileID','getCollabEntity','message$','_onUserJoin','OFFLINE','setConfig','_logService','ISocketService','unitID','authzUrl','_status$','socket\x20open.','missingChangesets','csRejEvent','toggleOnline','_singleActiveUnitService','toString','file','PERSON','[CollaborationUndoRedoService]','append','LIVESHARE_FETCH_OPERATIONS','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getCurrentRevOfUnit','collaboration-client.auth.needGotoLoginAlert','HEARTBEAT_TIMEOUT','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_onLocalMutation','PENDING','People','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','debug','POST','getSnapshotAPIPath','floor','splice','from','_removeRoom','LEAVE','[CollaborationSessionService]','interceptor','&assign=','_resendWithTimeout','responseType','collaborators','_rescheduleHeartbeat','JOIN','transformMutationsWithChangeset','_isPermissionRej','onTransformSelections','CommandType','socket\x20close','_transformStack','_httpService','2892612ObeVwJ','enableOfflineEditing','_awaitingChangeset','init','UUID','_onRemoteRetry','roles','/object','createIdentifier','_init','_onRemoteACK','asObservable','disposeWithMe','DisposableCollection','baseRev','localCacheService','CompressMutationService','Tools','body','AwaitingWithPendingState','avatar','_state$','_injector','cbc','RxDisposable','_getConfig','_acknowledgeAwaitingIfReady','addImageSourceCache','_shouldReportTelemetry','LocalUndoRedoService','UniverCollaborationClientPlugin','localeService','MoveSlidePageMutation','_incrementRevisionNumber','close$','fetchMissingChangesets','FileSource','CollaborationSession','push','CombCmd','_updateLocalCache','attachment','getWorkbookSelections','error$','GLOBAL_ROOMS_CNT_EXCEEDS','getCfgEnableObjInherit','userID','awaiting_with_pending','forEach','SOCKET_FAILED_RETRY','awaitingChangeset','add','filter','CollaborationUIEventService','HEARTBEAT_INTERVAL_KEY','_getRedoStack','fetch_missing','/allowed','RETRY_CONNECTING_MAX_COUNT_KEY','getUnitType','isInternalEditorID','ICommandService','getUploadOptions','_clearLocalCache','HEARTBEAT_INTERVAL','/universer-api/comb','onRemoteRetry','/-/object/list','_members','_socketService','textEncoder','method','CollaborationEvent','_memberService','text-x','session.room-full','loadOfflineData','_HTTPService','?size=','enableAuthServer','values','equals','Error\x20on\x20receiving\x20event','_initCloseConn','createCollaborator','_onFetchMissResult','reject','session.room-permission-denied','deepClone','sort','routeKey','symbol','CHANGESET_REJ','_clearHeartbeatTimer','reduce','9190984CyUYVW','reverse','_roomMembers','waitForRoom$','send','cfgEnableObjInherit','serializeCombRequest','saveChangeset','merge','_onConnectionOpen','getTypeOfUnitAdded$','title','HTTPService','__Key__','&source=','reqId','_transformAndApplyRemoteChangeset','UNIVER_SHEET','708846YcrzAN','JOIN_ROOM_FULL','getTime','map','BASE64','_onUserLeave','SheetCollaborationEntity','DEFAULT_WS_SESSION_TICKET_URL','has','_unitLoaded$','_sender','closeSession','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getActiveSheet','IContextService','hostname','range','ImageSourceType','createSocket','updatePermissionPoint','_sessionStatus$','getMemberID','registerHTTPInterceptor','_lockTransition','_config','UNIVER_BASE','_pendingMutations','_socket','_sendingTimer','_handleRemoteChangesets','createInstance','_fetchMissChangesets','Quantity','getAllMembers','isTransformChangesetsSuccess','_socketMessageSubscription','slice','leaveEvent','sessionStatus','_scheduleCollaborationTimeoutTimer','override','string','commentUpdateEvent','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_queuedRemoteChangesets','_instanceService','UniverNetworkPlugin','members','_updateState','_onRemoteChangeset','&to=','HEARTBEAT','_resendTimeout','readAsDataURL','session.room-not-exists','_getUndoStack','DataLoaderService','pauseCollaboration','loadDoc','\x20to\x20','IConfigService','Failed\x20to\x20update\x20permission\x20point','_startTelemetryCollaborationNewChangeset','capture','_initUnitPermissionChange','_emitMembers','CONFLICT','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','endsWith','synced','onTransformState','_commandService','_tryEnsureSocket','origin','ThresholdInterceptorFactory','UNISCRIPT_RUN','_createSocket','LIVESHARE_NEW_HOST','_changesetSessionId','telemetry\x20info\x20is\x20not\x20initialized','_handler','/new_changes','JOIN_ROOM_FAILED','_members$','UnitEmbedded','COMMENT_UPDATE','CHANGESET_SHOULD_RETRY','LIVESHARE_REQUEST_HOST','JSONX','IPermissionService','getTypeOfUnitDisposed$','onload','Univer','headers','get','_event$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_telemetryService','OTHER_CLIENTS_EDITING','_createInitialState','delete','generateRandomId','onCommentUpdate','_acknowledgedAwaitingRevision','Inject','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_unitInfo$','loadSlide','[SyncedState]:\x20received\x20rejection.','_getCurrentRevision','_createHandler','joinRsp','RETRY_CONNECTING_MAX_COUNT','getUnitId','disableLocalCache','PSEUDO_FETCH_MISSING_RESULT','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_sheetTransformSelectionsService','SnapshotServerOverHTTPService','FileId','_initMergeInterceptor','close','resend','eventID','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onRemoteAck','Disposable','textRanges','status','ISnapshotServerService','error','getCurrentUser','_redoStacks','ConflictState','session','_clearTimeoutTimer','resolveWithBasePath','some','readyForCollab','_substituteRedoStack','save\x20fail\x20reason\x20is\x20','AWAITING_WITH_PENDING','_getDownloadEndpointURL','onTransformRemoteChangesetByIMECache','selections','_onOffline','_docStateChangeManagerService','fetchMiss','saveSnapshot','putCollaborators','socketService','sheets','uploadFileServerUrl','UNIVER_COLLABORATION_CLIENT_PLUGIN','state$','SOCKET_FAILED','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','[CollaborationSession]','_getSignURL','DocStateChangeManagerService','@univerjs-pro/collaboration-client','_disableEditing','m2Prime','/universer-api/uniscript','MentionType','/universer-api/oidc/authpage','LIVESHARE_OPERATION','toStringTag','_localCacheService','[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.','_isEchoedAwaitingChangeset','entries','PendingState','removeMember','awaiting','/fetchmissing?from=','refreshPermission','sessionStatus$','AttachmentSourceType','setWaitCount','saveAttachment','_onConnectionFailed','_entityInit$','OPTIONAL','_handlerCallback','getConfig','_exhaustRemoteChangesetQueue','collaboration-client.local-cache-service','_syncEditingCollabCursor','_decreaseWaiting','b64DecodeUnicode','listCollaborators','SetSelectionsOperation','onSendChangeset','CLOSE_ROOM','encodeURIComponent','size','/collaborator','getSheetId','requestParams','_univerInstanceService','setShowComponents','firstValueFrom','complete','IDLE','fetching\x20missing\x20changesets\x20from\x20','_initDependencies','getRoom','5574520fLtZaP','list','_collaborationTimeoutTimer','take','_roomCreated$','uniscriptRunEvent','_sessions','[CollaborationEntity]','NEW_CHANGESETS','_checkMissing','fromCollab','_toggleOnline','_replayCachedMutations','FETCH_MISSING','SHOULD_CLOSE_CONN','c2Prime','SheetPermissionInitController','getLatestCsReqIdBySid','FetchingMissState','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','OTHER_CLIENT_EDITING','RichTextEditingMutation','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','liveShareNewHost','ITelemetryService','retryConnectingInterval','addHandlerCallback','indexOf','find','collaboration_new_changeset','_toggleOffline','_acknowledgeAwaiting','\x20-\x20','collabSubmitChangesetUrl','post','CollaborationSocketService','_collaborationSessionService','1714690SsTOXm','_compressMutationService','members$','_undoStacks','touchDependencies','_transformRemoteChangesetByIMECache','Injector','MergeInterceptorFactory','onStateChange','[PendingState]:\x20received\x20rejection.','toDisposable','_commentUpdate$','length','/universer-api/user/session-ticket','updateOfflineData','14JfwBJU','_stopTelemetryCollaborationNewChangeset','getUnitOnRev','/universer-api/stream/file/upload','clear','downloadEndpointUrl','_tryReconnect','CollaborationImageIoService','UNIVER_DOC','getGlobalObject','code','LOCAL_CACHE_INTERVAL_KEY','UniverCollaborationPlugin','_retryCount','unknown','CommentService','objects','PERMISSION_DENIED','dispose$','CollaborationAttachmentIoService','RemoveSlidePageMutation','create','revision','_sendHeartbeatTimer','Subject','emitEvent','_eventService','objectType','_snapshotService','resolve','compose','csAckEvent','_transformService','dispose','fromCharCode','_snapshotServerService','3qGkDxC','batchAllowed','/universer-api/authz','_schedule','WorkbookEditablePermission','transformChangesets','CHANGESET_ACK','set','UPDATE_CURSOR','/resources','_type','getOwnPropertyDescriptor','name','_clearRedo','updateCursorEvent','docStateChange$','_transformRemoteChangesetByStateCache','SessionStatus','onTransformRemoteChangesetByStateCache','objectID','CollaborationEntity','updateMember','unit-cache-','_createInitialStateImpl','_updateStatus','OfflineState','_imageSourceCache','loadUnitOfRevision','concatBytes','allowed','collaboratorID','transformSelections','SnapshotService','maxSize','state','actions','_scheduleCompleteTimestamp','/universer-api/snapshot/','_socketReady','event$','getValue','_change$','target','data'];_0x174c=function(){return _0x12e94e;};return _0x174c();}G=b([y(0x0,(0x0,n[_0x406997(0x28e)])(u['HTTPService'])),y(0x1,(0x0,n[_0x406997(0x28e)])(n['IConfigService']))],G);function Ke(_0x5964b0){const _0x1b1473=_0x406997;let _0x330ad0=atob(_0x5964b0),_0x393bbf=new Uint8Array(_0x330ad0[_0x1b1473(0x327)]);for(let _0x1f0c82=0x0;_0x1f0c82<_0x330ad0[_0x1b1473(0x327)];_0x1f0c82++)_0x393bbf[_0x1f0c82]=_0x330ad0[_0x1b1473(0x162)](_0x1f0c82);return _0x393bbf;}function qe(_0x3f9398){const _0x503059=_0x406997;let _0x3a1d09='';for(let _0x12ad24=0x0;_0x12ad24<_0x3f9398[_0x503059(0x327)];_0x12ad24++)_0x3a1d09+=String[_0x503059(0x34c)](_0x3f9398[_0x12ad24]);return btoa(_0x3a1d09);}function Je(_0x2f43c0,_0x3d486e){const _0x25ddaa=_0x406997;let _0x4d778e=Ke(_0x3d486e),_0x2100fd=(0x0,m['randomBytes'])(0x10);return qe((0x0,m[_0x25ddaa(0x36a)])(_0x2100fd,(0x0,p[_0x25ddaa(0x1cc)])(_0x4d778e,_0x2100fd)[_0x25ddaa(0x116)]((0x0,m[_0x25ddaa(0x100)])(_0x2f43c0))));}function Ye(){const _0x10492e=_0x406997;let _0x1b3420=(0x0,d[_0x10492e(0x333)])()[_0x10492e(0x221)];if(typeof window<'u'&&window[_0x10492e(0x159)]!==void 0x0&&_0x1b3420){let _0x78304b={'time':Math[_0x10492e(0x1a1)](Date[_0x10492e(0x12e)]()/0x3e8),'domain':location[_0x10492e(0x235)]};return Je(JSON['stringify'](_0x78304b),_0x1b3420);}}let K=class{constructor(_0x37d06d){const _0x6c8915=_0x406997;this[_0x6c8915(0x1b4)]=_0x37d06d,this[_0x6c8915(0x174)]();}[_0x406997(0x174)](){const _0x6a5e90=_0x406997;this[_0x6a5e90(0x1b4)][_0x6a5e90(0x23c)]({'interceptor':(_0x14a27e,_0x484907)=>{const _0x413459=_0x6a5e90;let _0x3b931c=Ye();return _0x3b931c&&_0x14a27e[_0x413459(0x283)]['set']('x-univer-host',_0x3b931c),_0x484907(_0x14a27e);}});}};K=b([y(0x0,(0x0,n[_0x406997(0x28e)])(u[_0x406997(0x220)]))],K);let q=class extends n[_0x406997(0x1cd)]{constructor(_0x13cb5d,_0xd5add,_0x1e4eef){const _0x3bdf0b=_0x406997;super(),this[_0x3bdf0b(0x185)]=_0x13cb5d,this[_0x3bdf0b(0x346)]=_0xd5add,this[_0x3bdf0b(0x2ce)]=_0x1e4eef,_(this,_0x3bdf0b(0x290),new a[(_0x3bdf0b(0x3e1))](null)),_(this,_0x3bdf0b(0x22f),new a[(_0x3bdf0b(0x342))]()),_(this,'unitInfo$',this[_0x3bdf0b(0x290)]['asObservable']()),_(this,_0x3bdf0b(0x389),this[_0x3bdf0b(0x22f)][_0x3bdf0b(0x1c0)]());}['dispose'](){const _0x4fc4f2=_0x406997;super['dispose'](),this[_0x4fc4f2(0x22f)][_0x4fc4f2(0x2f1)](),this[_0x4fc4f2(0x290)][_0x4fc4f2(0x2f1)]();}async[_0x406997(0x369)](_0x58c3f7,_0x1572fe,_0x4f6681){const _0x573aad=_0x406997;this[_0x573aad(0x290)]['next']({'unitId':_0x58c3f7,'type':_0x1572fe});let _0x2a4a21=null;switch(_0x1572fe){case n['UniverInstanceType'][_0x573aad(0x225)]:_0x2a4a21=await this[_0x573aad(0x346)][_0x573aad(0x134)](_0x58c3f7,_0x4f6681);break;case n[_0x573aad(0x127)]['UNIVER_DOC']:_0x2a4a21=await this[_0x573aad(0x346)][_0x573aad(0x260)](_0x58c3f7,_0x4f6681);break;case n[_0x573aad(0x127)][_0x573aad(0x3bf)]:_0x2a4a21=await this[_0x573aad(0x346)][_0x573aad(0x291)](_0x58c3f7,_0x4f6681);break;case n[_0x573aad(0x127)]['UNIVER_BASE']:_0x2a4a21=await this['_snapshotService'][_0x573aad(0xfd)](_0x58c3f7,_0x4f6681);break;default:this['_logService'][_0x573aad(0x2a8)]('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x2a4a21&&this['_unitLoaded$'][_0x573aad(0x16d)](_0x2a4a21),_0x2a4a21;}async['loadUnit'](_0x9e2521,_0x5a4bc4,_0x5536a6){const _0x17bb6b=_0x406997;var _0x57416a;this[_0x17bb6b(0x290)][_0x17bb6b(0x16d)]({'unitId':_0x9e2521,'type':_0x5a4bc4,'subUnitId':_0x5536a6});let _0x4295df=0x0,_0x332caa=await((_0x57416a=this[_0x17bb6b(0x2ce)])==null?void 0x0:_0x57416a[_0x17bb6b(0x201)](_0x9e2521));return _0x332caa&&(_0x332caa[_0x17bb6b(0x1e7)]||_0x332caa[_0x17bb6b(0x393)][_0x17bb6b(0x327)]!==0x0)&&(_0x4295df=_0x332caa['rev']),_0x4295df===0x0&&this[_0x17bb6b(0x185)][_0x17bb6b(0x19e)](_0x17bb6b(0x3d9),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x17bb6b(0x369)](_0x9e2521,_0x5a4bc4,_0x4295df);}};q=b([y(0x0,n[_0x406997(0x152)]),y(0x1,(0x0,n['Inject'])(t[_0x406997(0x36e)])),y(0x2,(0x0,n[_0x406997(0x161)])(C))],q);let J=class{constructor(_0x55113d,_0x51ce8e,_0x2d0df0){const _0x5e663d=_0x406997;this[_0x5e663d(0x1b4)]=_0x55113d,this['_configService']=_0x51ce8e,this[_0x5e663d(0x2ee)]=_0x2d0df0,_(this,_0x5e663d(0x175),0x0),_(this,_0x5e663d(0x377),new a[(_0x5e663d(0x342))]()),_(this,_0x5e663d(0x3a6),this[_0x5e663d(0x377)]),_(this,_0x5e663d(0x368),new Map());}[_0x406997(0x2d9)](_0x4c0429){const _0x5c45c9=_0x406997;this[_0x5c45c9(0x175)]=_0x4c0429,this[_0x5c45c9(0x377)][_0x5c45c9(0x16d)](_0x4c0429);}['getImageSourceCache'](_0x55dc9e,_0x40302c){const _0x5c41b9=_0x406997;if(_0x40302c===f[_0x5c41b9(0x237)]['BASE64']){let _0x4add49=new Image();return _0x4add49[_0x5c41b9(0x3c4)]=_0x55dc9e,_0x4add49;}return this[_0x5c41b9(0x368)]['get'](_0x55dc9e);}[_0x406997(0x1d0)](_0x2f3795,_0x30ff5a,_0x5e386d){const _0xe4b84c=_0x406997;_0x30ff5a===f[_0xe4b84c(0x237)][_0xe4b84c(0x22a)]||_0x5e386d==null||this[_0xe4b84c(0x368)][_0xe4b84c(0x355)](_0x2f3795,_0x5e386d);}async['getImage'](_0x42bf3a){const _0xb4c04e=_0x406997;try{let _0x1e3fe7=this['_replaceFileID'](this[_0xb4c04e(0x2c4)](),''+_0x42bf3a),_0x4d6327=(await this['_httpService']['get'](_0x1e3fe7))['body'];if(_0x4d6327[_0xb4c04e(0x2a8)]&&_0x4d6327[_0xb4c04e(0x2a8)][_0xb4c04e(0x334)]===o['ErrorCode']['OK']){let _0x3d9a04=(0x0,n[_0xb4c04e(0x2ae)])(_0x4d6327[_0xb4c04e(0x17e)],this[_0xb4c04e(0x2b4)]());return Promise[_0xb4c04e(0x347)](_0x3d9a04);}return Promise['reject'](_0x4d6327['error']);}catch(_0x23782e){return Promise[_0xb4c04e(0x20b)](_0x23782e);}}async[_0x406997(0x13a)](_0x2370d7){const _0x4fe53c=_0x406997;let _0x2e9ae9='';if(!f[_0x4fe53c(0x251)][_0x4fe53c(0x16e)](_0x2370d7[_0x4fe53c(0x132)]))return this[_0x4fe53c(0x2e3)](),Promise[_0x4fe53c(0x20b)](Error(f[_0x4fe53c(0x397)][_0x4fe53c(0x39f)]));if(_0x2370d7[_0x4fe53c(0x2ea)]>(0x0,f['getDrawingImageAllowSize'])())return this[_0x4fe53c(0x2e3)](),Promise['reject'](Error(f[_0x4fe53c(0x397)][_0x4fe53c(0x3e3)]));try{let _0x1475ff=new FormData();_0x1475ff[_0x4fe53c(0x193)](_0x4fe53c(0x190),_0x2370d7);let _0x3587b2=this[_0x4fe53c(0x2ee)]['getFocusedUnit'](),_0x5c27d8=_0x3587b2==null?void 0x0:_0x3587b2['getUnitId']();if(!_0x5c27d8)throw Error(_0x4fe53c(0x3bc));let _0x5b0867=this['_getUploadFileURL']()+'?size='+_0x2370d7[_0x4fe53c(0x2ea)][_0x4fe53c(0x18f)]()+'&source='+o[_0x4fe53c(0x1d9)][_0x4fe53c(0x27a)]+_0x4fe53c(0x1a8)+encodeURIComponent(_0x5c27d8),_0x2ad370={'body':_0x1475ff},_0x244046=(await this[_0x4fe53c(0x1b4)][_0x4fe53c(0x318)](_0x5b0867,_0x2ad370))[_0x4fe53c(0x1c7)];if(typeof _0x244046['FileId']!=_0x4fe53c(0x24f))return this[_0x4fe53c(0x2e3)](),Promise['reject'](Error(f[_0x4fe53c(0x397)][_0x4fe53c(0x3fb)]));_0x2e9ae9=_0x244046[_0x4fe53c(0x29d)];}catch{return this[_0x4fe53c(0x2e3)](),Promise['reject'](Error(f['ImageUploadStatusType'][_0x4fe53c(0x3fb)]));}return new Promise((_0x157640,_0x1e0715)=>{const _0x3dbdf5=_0x4fe53c;let _0x5c0562=new FileReader();_0x5c0562[_0x3dbdf5(0x25b)](_0x2370d7),_0x5c0562[_0x3dbdf5(0x281)]=_0x30312f=>{const _0x3d4864=_0x3dbdf5;var _0x3af795;let _0x4b72b4=(_0x3af795=_0x30312f[_0x3d4864(0x378)])==null?void 0x0:_0x3af795[_0x3d4864(0x3f9)];if(_0x4b72b4==null){this[_0x3d4864(0x2e3)](),_0x1e0715(Error(f[_0x3d4864(0x397)][_0x3d4864(0x3fb)]));return;}_0x157640({'imageId':(0x0,n[_0x3d4864(0x28b)])(0x6),'imageSourceType':f[_0x3d4864(0x237)][_0x3d4864(0x1b9)],'source':_0x2e9ae9,'base64Cache':_0x4b72b4,'status':f[_0x3d4864(0x397)]['SUCCUSS']}),this[_0x3d4864(0x2e3)]();};});}[_0x406997(0x3c1)](){const _0x2294a6=_0x406997;var _0x5ccbcb;let _0x24d6c2=this['_configService'][_0x2294a6(0x2df)](h);return(_0x5ccbcb=_0x24d6c2==null?void 0x0:_0x24d6c2[_0x2294a6(0x2be)])==null?'/universer-api/stream/file/upload':_0x5ccbcb;}[_0x406997(0x2c4)](){const _0x392301=_0x406997;var _0x2f9a65;let _0x42975f=this[_0x392301(0x102)][_0x392301(0x2df)](h);return(_0x2f9a65=_0x42975f==null?void 0x0:_0x42975f['signUrlServerUrl'])==null?'/universer-api/file/{fileID}/sign-url':_0x2f9a65;}[_0x406997(0x2b4)](){const _0x13c9f0=_0x406997;var _0xab43a;let _0x4fb21b=this[_0x13c9f0(0x102)][_0x13c9f0(0x2df)](h);return(_0xab43a=_0x4fb21b==null?void 0x0:_0x4fb21b[_0x13c9f0(0x32f)])==null?location[_0x13c9f0(0x26f)]:_0xab43a;}[_0x406997(0x17f)](_0x32803f,_0x3ec540){const _0x5e12d0=_0x406997;return _0x32803f[_0x5e12d0(0x140)]('{fileID}',_0x3ec540);}['_decreaseWaiting'](){const _0x47f880=_0x406997;--this[_0x47f880(0x175)],this['_change$'][_0x47f880(0x16d)](this['_waitCount']);}};J=b([y(0x0,(0x0,n[_0x406997(0x28e)])(u[_0x406997(0x220)])),y(0x1,n[_0x406997(0x262)]),y(0x2,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x131)]))],J);let Y=class{constructor(_0x1ae9de,_0x207e23){const _0x458d0e=_0x406997;this[_0x458d0e(0x102)]=_0x1ae9de,this[_0x458d0e(0x202)]=_0x207e23;}[_0x406997(0x3ad)](){const _0x1bc923=_0x406997;var _0x14a935;let _0x1c2ab2=this[_0x1bc923(0x102)][_0x1bc923(0x2df)](h);return(_0x14a935=_0x1c2ab2==null?void 0x0:_0x1c2ab2[_0x1bc923(0x188)])==null?_0x1bc923(0x350):_0x14a935;}async[_0x406997(0x2f7)](_0x14cbf9){const _0x521bed=_0x406997;let _0x57ee01=this[_0x521bed(0x3ad)]()+'/collaborator';return{'list':[{'title':_0x521bed(0x19c),'mentions':(await this[_0x521bed(0x202)][_0x521bed(0x284)](_0x57ee01,{'params':{'objectID':_0x14cbf9['unitId'],'unitID':_0x14cbf9[_0x521bed(0x3ff)]}}))[_0x521bed(0x1c7)][_0x521bed(0x1ab)]['map'](_0xb2e01e=>({'objectId':_0xb2e01e['id'],'name':_0xb2e01e[_0x521bed(0x11d)]['name'],'metadata':{'icon':_0xb2e01e[_0x521bed(0x11d)][_0x521bed(0x1c9)]},'label':_0xb2e01e[_0x521bed(0x11d)][_0x521bed(0x35a)],'objectType':n[_0x521bed(0x2ca)]['PERSON']})),'metadata':{},'type':n[_0x521bed(0x2ca)][_0x521bed(0x191)]}]};}};Y=b([y(0x0,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x262)])),y(0x1,(0x0,n[_0x406997(0x28e)])(u[_0x406997(0x220)]))],Y);let X=class extends n[_0x406997(0x1cd)]{constructor(_0x4e4a70,_0x1bc168,_0x36defb,_0x220137,_0x32a194){const _0x57eadd=_0x406997;super(),this[_0x57eadd(0x1cb)]=_0x4e4a70,this['_univerInstanceService']=_0x1bc168,this[_0x57eadd(0x3b4)]=_0x36defb,this['_collaborationSessionService']=_0x220137,this[_0x57eadd(0x3ec)]=_0x32a194,this[_0x57eadd(0x266)](),this[_0x57eadd(0x208)]();}['_initCloseConn'](){const _0x2eded6=_0x406997;let _0x13bf3f=async _0x24a730=>{const _0x2a27e8=_0xcc0c;(await this[_0x2a27e8(0x31a)][_0x2a27e8(0x114)](_0x24a730))[_0x2a27e8(0x375)]['pipe']((0x0,c[_0x2a27e8(0x1e9)])(_0x4e92f5=>_0x4e92f5[_0x2a27e8(0x2a1)]===t[_0x2a27e8(0x1fd)][_0x2a27e8(0x304)]),(0x0,c['takeUntil'])(this['dispose$']))[_0x2a27e8(0x3e5)](_0x513514=>{const _0x2ebeb9=_0x2a27e8;let {reason:_0x112cec}=_0x513514[_0x2ebeb9(0x379)];this[_0x2ebeb9(0x3ec)][_0x2ebeb9(0x343)]({'id':_0x2ebeb9(0x2e8),'data':_0x112cec}),this[_0x2ebeb9(0x3b4)][_0x2ebeb9(0x239)](new i[(_0x2ebeb9(0x352))](_0x24a730)['id'],!0x1),this['_collaborationSessionService'][_0x2ebeb9(0x231)](_0x24a730);});};(0x0,a['merge'])(this[_0x2eded6(0x2ee)][_0x2eded6(0x21e)](n[_0x2eded6(0x127)][_0x2eded6(0x225)]),this['_univerInstanceService'][_0x2eded6(0x21e)](n[_0x2eded6(0x127)][_0x2eded6(0x332)]),this['_univerInstanceService'][_0x2eded6(0x21e)](n[_0x2eded6(0x127)][_0x2eded6(0x23f)]))['pipe']((0x0,c[_0x2eded6(0x229)])(_0x853753=>_0x853753['unit'][_0x2eded6(0x297)]()),(0x0,c['filter'])(_0x4249dc=>!(0x0,n[_0x2eded6(0x1f1)])(_0x4249dc)),(0x0,c[_0x2eded6(0x39c)])(this[_0x2eded6(0x33c)]))[_0x2eded6(0x3e5)](_0x24e1d0=>{_0x13bf3f(_0x24e1d0);});}[_0x406997(0x266)](){const _0x454a73=_0x406997;let _0xbabec0=async _0x3273e9=>{const _0x217f4=_0xcc0c;let _0x257f4e=await this['_collaborationSessionService'][_0x217f4(0x114)](_0x3273e9),_0x2ffc35=this['_injector']['get'](i[_0x217f4(0x306)]);_0x257f4e[_0x217f4(0x375)][_0x217f4(0x119)]((0x0,c[_0x217f4(0x1e9)])(_0x39023f=>_0x39023f[_0x217f4(0x2a1)]===t[_0x217f4(0x1fd)][_0x217f4(0x39e)]),(0x0,c['takeUntil'])(this[_0x217f4(0x33c)]))[_0x217f4(0x3e5)](_0x1aaeee=>{const _0x417eac=_0x217f4;let {objectId:_0x4c409d}=_0x1aaeee['data'];_0x4c409d===_0x3273e9?_0x2ffc35[_0x417eac(0x120)](_0x3273e9):_0x2ffc35[_0x417eac(0x2d6)](_0x3273e9,_0x4c409d);});};(0x0,a[_0x454a73(0x21c)])(this[_0x454a73(0x2ee)][_0x454a73(0x21e)](n[_0x454a73(0x127)]['UNIVER_SHEET']))['pipe']((0x0,c[_0x454a73(0x229)])(_0x480b4e=>_0x480b4e[_0x454a73(0x109)]['getUnitId']()),(0x0,c['filter'])(_0x5e5378=>!(0x0,n[_0x454a73(0x1f1)])(_0x5e5378)),(0x0,c[_0x454a73(0x39c)])(this[_0x454a73(0x33c)]))[_0x454a73(0x3e5)](_0x1fabda=>{_0xbabec0(_0x1fabda);});}};X=b([y(0x0,(0x0,n[_0x406997(0x28e)])(n[_0x406997(0x321)])),y(0x1,n['IUniverInstanceService']),y(0x2,n['IPermissionService']),y(0x3,(0x0,n[_0x406997(0x28e)])(V)),y(0x4,(0x0,n[_0x406997(0x28e)])(v))],X);let Z=class{constructor(_0x243977,_0x2ebc4c){const _0x450a96=_0x406997;this['_configService']=_0x243977,this[_0x450a96(0x1b4)]=_0x2ebc4c;}async[_0x406997(0x32c)](_0x5c48d3,_0x3ed906){const _0x3dd6ca=_0x406997;var _0x4dc4e7;let {unitID:_0x524887,type:_0x8d8f0d,revision:_0x59eadd=0x0}=_0x3ed906,_0x7d0b2b=this[_0x3dd6ca(0x1a0)]()+'/'+_0x8d8f0d+_0x3dd6ca(0x39b)+_0x524887+_0x3dd6ca(0x17a)+_0x59eadd,_0x554d93=(await this['_httpService']['get'](_0x7d0b2b))[_0x3dd6ca(0x1c7)],_0x2bed9f=(_0x4dc4e7=_0x554d93['snapshot'])==null?void 0x0:_0x4dc4e7['workbook'];if(_0x2bed9f){let _0x5273a4=_0x2bed9f==null?void 0x0:_0x2bed9f['originalMeta'];_0x2bed9f[_0x3dd6ca(0x3c6)]=t[_0x3dd6ca(0x1fb)]['encode']((0x0,t['b64DecodeUnicode'])(_0x5273a4)),Object[_0x3dd6ca(0x2d1)](_0x2bed9f[_0x3dd6ca(0x2bd)])['forEach'](([,_0x2e4f4b])=>{const _0x5d0e09=_0x3dd6ca;let _0x55d3a9=_0x2e4f4b[_0x5d0e09(0x3c6)];_0x2e4f4b[_0x5d0e09(0x3c6)]=t[_0x5d0e09(0x1fb)][_0x5d0e09(0x144)]((0x0,t[_0x5d0e09(0x2e4)])(_0x55d3a9));});}return _0x554d93;}async['getSheetBlock'](_0x56e03a,_0x44c2c4){const _0x192d81=_0x406997;let {unitID:_0x26b79b,type:_0x46ca1e,blockID:_0x414f16}=_0x44c2c4,_0x22ed6a=this[_0x192d81(0x3b1)]()+'/'+_0x46ca1e+_0x192d81(0x39b)+_0x26b79b+'/block/'+_0x414f16;return(await this[_0x192d81(0x1b4)][_0x192d81(0x284)](_0x22ed6a))[_0x192d81(0x1c7)];}async[_0x406997(0x3e4)](_0xc7026,_0x1bdcaf){const _0x1904f4=_0x406997;let {unitID:_0x42f8fc,type:_0x21565a,blockID:_0x24b89a}=_0x1bdcaf,_0x5380dd=this[_0x1904f4(0x3b1)]()+_0x1904f4(0x10b)+_0x21565a+_0x1904f4(0x39b)+_0x42f8fc+_0x1904f4(0x10b)+_0x24b89a;return(await this[_0x1904f4(0x1b4)][_0x1904f4(0x284)](_0x5380dd))[_0x1904f4(0x1c7)];}async[_0x406997(0x1d8)](_0x52eea7,_0x211598){const _0x5b62eb=_0x406997;let {unitID:_0x55ee83,type:_0x216889,from:_0x1f4b59,to:_0x3456ee}=_0x211598,_0x3da343=this[_0x5b62eb(0x3b1)]()+'/'+_0x216889+_0x5b62eb(0x39b)+_0x55ee83+_0x5b62eb(0x2d5)+_0x1f4b59+_0x5b62eb(0x258)+_0x3456ee;return(await this[_0x5b62eb(0x1b4)]['get'](_0x3da343))[_0x5b62eb(0x1c7)];}[_0x406997(0x1a0)](){var _0x3d5efc;return(_0x3d5efc=this['_configService']['getConfig']('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0x3d5efc;}[_0x406997(0x3b1)](){const _0x9b89c8=_0x406997;var _0x32246c;let _0xbb8195=this[_0x9b89c8(0x102)][_0x9b89c8(0x2df)](h);return(_0x32246c=_0xbb8195==null?void 0x0:_0xbb8195[_0x9b89c8(0x126)])==null?_0x9b89c8(0x14e):_0x32246c;}async[_0x406997(0x3a2)](_0x424f41,_0x41ecd9){const _0x21a56b=_0x406997;let _0x5d3c3c=_0x21a56b(0x373)+_0x41ecd9[_0x21a56b(0x132)]+'/unit/'+_0x41ecd9['unitID']+_0x21a56b(0x357);return(await this[_0x21a56b(0x1b4)]['get'](_0x5d3c3c,{'params':{'resourceId':JSON[_0x21a56b(0x400)](_0x41ecd9['resourceIDs'])}}))[_0x21a56b(0x1c7)];}[_0x406997(0x2ba)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x406997(0x3ee)](){const _0x34bc4c=_0x406997;throw Error(_0x34bc4c(0x19d));}[_0x406997(0x3cb)](){const _0x4440d4=_0x406997;throw Error(_0x4440d4(0x19d));}[_0x406997(0x21b)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x4d4982=_0x406997;throw Error(_0x4d4982(0x19d));}[_0x406997(0x307)](){const _0x1f63d7=_0x406997;throw Error(_0x1f63d7(0x19d));}};Z=b([y(0x0,n[_0x406997(0x262)]),y(0x1,(0x0,n[_0x406997(0x28e)])(u[_0x406997(0x220)]))],Z);let Q=class extends n[_0x406997(0x1d2)]{constructor(_0x1ec8ab,_0x1e2d08,_0x3f88ba,_0x16966b,_0x135b05){const _0x258434=_0x406997;super(_0x1ec8ab,_0x1e2d08,_0x3f88ba),this[_0x258434(0x34a)]=_0x16966b,this['_logService']=_0x135b05;}['transformUndoRedo'](_0x4aa7e1,_0x256790){const _0x4588e7=_0x406997;let _0x2832ba=this[_0x4588e7(0x25d)](_0x4aa7e1);if(_0x2832ba)try{let _0x265d0d=this[_0x4588e7(0x1b3)](_0x2832ba,_0x256790);this[_0x4588e7(0x10e)](_0x4aa7e1,_0x265d0d);}catch(_0x11087c){this['_logService'][_0x4588e7(0x2a8)](_0x4588e7(0x192),_0x11087c),this[_0x4588e7(0x3be)](_0x4aa7e1);}let _0x25efe9=this[_0x4588e7(0x1ec)](_0x4aa7e1);if(_0x25efe9)try{let _0x507a24=this[_0x4588e7(0x1b3)](_0x25efe9,_0x256790);this[_0x4588e7(0x2b1)](_0x4aa7e1,_0x507a24);}catch(_0x4f9521){this[_0x4588e7(0x185)][_0x4588e7(0x2a8)](_0x4f9521),this[_0x4588e7(0x35b)](_0x4aa7e1);}}['_clearUndo'](_0x27482d){const _0x295c41=_0x406997;let _0x50da35=this[_0x295c41(0x25d)](_0x27482d);_0x50da35&&(_0x50da35[_0x295c41(0x327)]=0x0,this[_0x295c41(0x366)]());}[_0x406997(0x35b)](_0x4087df){const _0x258ade=_0x406997;let _0x31d57f=this[_0x258ade(0x1ec)](_0x4087df);_0x31d57f&&(_0x31d57f['length']=0x0,this[_0x258ade(0x366)]());}[_0x406997(0x10e)](_0x1619e7,_0x21c64b){const _0x5776c8=_0x406997;this[_0x5776c8(0x31e)][_0x5776c8(0x355)](_0x1619e7,_0x21c64b),this[_0x5776c8(0x366)]();}['_substituteRedoStack'](_0x30de0c,_0x43f6da){const _0x16d4d4=_0x406997;this[_0x16d4d4(0x2aa)][_0x16d4d4(0x355)](_0x30de0c,_0x43f6da),this[_0x16d4d4(0x366)]();}[_0x406997(0x1b3)](_0x5e6a5f,_0x2a8464){const _0x532b8e=_0x406997;let _0x48913d=[],_0x916e5f=_0x2a8464,_0x452222=_0x2a8464;for(let _0x31310a=_0x5e6a5f['length']-0x1;_0x31310a>=0x0;_0x31310a--){let {unitID:_0x496c82,undoMutations:_0x206248,redoMutations:_0x1c71d1}=_0x5e6a5f[_0x31310a],_0x3629c5=this[_0x532b8e(0x34a)][_0x532b8e(0x1ae)](_0x916e5f,_0x206248),_0x3a78a0=this[_0x532b8e(0x34a)][_0x532b8e(0x1ae)](_0x452222,_0x1c71d1);if((0x0,t[_0x532b8e(0x386)])(_0x3629c5)||(0x0,t[_0x532b8e(0x386)])(_0x3a78a0)){this[_0x532b8e(0x185)][_0x532b8e(0x2a8)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x3629c5,_0x3a78a0);break;}_0x916e5f=_0x3629c5['c1Prime'],_0x452222=_0x3a78a0[_0x532b8e(0x3dc)],_0x48913d[_0x532b8e(0x1db)]({'unitID':_0x496c82,'undoMutations':_0x3629c5[_0x532b8e(0x2c8)],'redoMutations':_0x3a78a0[_0x532b8e(0x2c8)]});}return _0x48913d[_0x532b8e(0x215)]();}};Q=b([y(0x0,n[_0x406997(0x131)]),y(0x1,n[_0x406997(0x1f2)]),y(0x2,n[_0x406997(0x234)]),y(0x3,t[_0x406997(0x17d)]),y(0x4,n['ILogService'])],Q);let $=class extends n['Plugin']{constructor(_0x151e89=ee,_0x1f7f0d,_0x23b5d8,_0x414a35){const _0x29fefd=_0x406997;super(),this[_0x29fefd(0x23e)]=_0x151e89,this[_0x29fefd(0x185)]=_0x1f7f0d,this[_0x29fefd(0x1cb)]=_0x23b5d8,this[_0x29fefd(0x102)]=_0x414a35;let {..._0x1797bc}=(0x0,n[_0x29fefd(0x21c)])({},ee,this['_config']);if(!_0x1797bc[_0x29fefd(0x2bc)])throw Error(_0x29fefd(0x15f));this[_0x29fefd(0x23e)]=_0x1797bc,this[_0x29fefd(0x102)][_0x29fefd(0x184)](h,_0x1797bc);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}[_0x406997(0x136)](){const _0x3a1d25=_0x406997;var _0x27ea34,_0xaba099;this[_0x3a1d25(0x1cb)][_0x3a1d25(0x22e)](n[_0x3a1d25(0x16f)])&&this[_0x3a1d25(0x185)][_0x3a1d25(0x2a8)]('[UniverCollaborationClientPlugin]',_0x3a1d25(0x383));let _0x12f35a=(0x0,n[_0x3a1d25(0x3a7)])([[n[_0x3a1d25(0x16f)],{'useClass':Q}],[V],[x],[w],[W],[K],[se],[X],[v],[q],[Le,{'useClass':this[_0x3a1d25(0x23e)][_0x3a1d25(0x2bc)]}],[t['ISnapshotServerService'],{'useClass':Z}],[n['IAuthzIoService'],{'useClass':G}],[f['IImageIoService'],{'useClass':J}],[We,{'useClass':U}],[n[_0x3a1d25(0x38f)],{'useClass':Y}],[H],[He]],(_0x27ea34=this[_0x3a1d25(0x23e)])==null?void 0x0:_0x27ea34[_0x3a1d25(0x24e)]);if(!((_0xaba099=this[_0x3a1d25(0x23e)])!=null&&_0xaba099[_0x3a1d25(0x3d8)])){let _0x4d5854=_0x12f35a['findIndex'](([_0x2661f0])=>_0x2661f0===T);_0x4d5854!==-0x1&&_0x12f35a[_0x3a1d25(0x1a2)](_0x4d5854,0x1);}(0x0,n[_0x3a1d25(0x3d4)])(this[_0x3a1d25(0x1cb)],_0x12f35a);}[_0x406997(0x2f4)](){const _0x5aa581=_0x406997;var _0x54d0a7,_0x379bcb;if(this[_0x5aa581(0x1cb)]['get'](u[_0x5aa581(0x220)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,u[_0x5aa581(0x270)])({'maxParallel':0x6})}),!((_0x54d0a7=this[_0x5aa581(0x23e)])!=null&&_0x54d0a7[_0x5aa581(0x1b6)])){var _0x5e623d;(_0x5e623d=this[_0x5aa581(0x1cb)][_0x5aa581(0x284)](C,n[_0x5aa581(0x246)][_0x5aa581(0x2dd)]))==null||_0x5e623d[_0x5aa581(0x298)]();}(_0x379bcb=this[_0x5aa581(0x23e)])!=null&&_0x379bcb[_0x5aa581(0x204)]&&(0x0,n['touchDependencies'])(this[_0x5aa581(0x1cb)],[[W]]),(0x0,n[_0x5aa581(0x31f)])(this[_0x5aa581(0x1cb)],[[K],[H],[X]]);}};_($,'pluginName',_0x406997(0x2bf)),_($,'packageName',Be),_($,'version',Ve),$=b([(0x0,n['DependentOn'])(d['UniverLicensePlugin'],t[_0x406997(0x336)],u[_0x406997(0x254)]),y(0x1,n[_0x406997(0x152)]),y(0x2,(0x0,n['Inject'])(n[_0x406997(0x321)])),y(0x3,n[_0x406997(0x262)])],$),exports[_0x406997(0x2d8)]=Ue,Object[_0x406997(0x3f6)](exports,_0x406997(0x15a),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x3fe),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x1c8),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x406997(0x37c)]=h,Object[_0x406997(0x3f6)](exports,_0x406997(0x33d),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x153),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x362),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x331),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x1da),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x406997(0x3f6)](exports,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x319),{'enumerable':!0x0,'get':function(){return ze;}}),exports[_0x406997(0x3f2)]=ke,exports['CollaborationUIEventId']=oe,exports[_0x406997(0x1ea)]=v,Object[_0x406997(0x3f6)](exports,_0x406997(0x13d),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x406997(0x339)]=se,Object[_0x406997(0x3f6)](exports,_0x406997(0x2ab),{'enumerable':!0x0,'get':function(){return P;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=te,exports[_0x406997(0x28f)]=_0x406997(0x2c9),exports[_0x406997(0x22d)]=_0x406997(0x328),Object[_0x406997(0x3f6)](exports,_0x406997(0x25e),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x3f7),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x308),{'enumerable':!0x0,'get':function(){return I;}}),exports[_0x406997(0x1eb)]=_0x406997(0x1f5),exports['HEARTBEAT_TIMEOUT_KEY']='HEARTBEAT_TIMEOUT',exports['IAttachmentIoService']=We,exports[_0x406997(0x141)]=Le,exports[_0x406997(0x157)]=C,exports['INetworkConditionService']=Pe,exports[_0x406997(0x14c)]=T,exports[_0x406997(0x3c7)]=0x3e8,exports[_0x406997(0x335)]=_0x406997(0x3c7),Object[_0x406997(0x3f6)](exports,_0x406997(0x3a9),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x406997(0x3f6)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Y;}}),Object['defineProperty'](exports,_0x406997(0x367),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x2d2),{'enumerable':!0x0,'get':function(){return j;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x406997(0x110),exports[_0x406997(0x1ef)]=_0x406997(0x296),exports[_0x406997(0x35f)]=le,Object['defineProperty'](exports,_0x406997(0x22c),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x3d7),{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x406997(0x3f6)](exports,_0x406997(0x29c),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return A;}}),exports['UnitStatus']=pe,Object[_0x406997(0x3f6)](exports,_0x406997(0x1d3),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x406997(0x12a)]=Fe,exports['getLocalCacheKey']=de,exports[_0x406997(0x21a)]=Ie;
1
+ const _0x85662d=_0x342d;(function(_0x354854,_0x1b6066){const _0x5b9b99=_0x342d,_0x7577be=_0x354854();while(!![]){try{const _0x5d5748=-parseInt(_0x5b9b99(0x28f))/0x1+parseInt(_0x5b9b99(0x32f))/0x2+parseInt(_0x5b9b99(0x39c))/0x3*(parseInt(_0x5b9b99(0x3fe))/0x4)+-parseInt(_0x5b9b99(0x372))/0x5+parseInt(_0x5b9b99(0x41a))/0x6+-parseInt(_0x5b9b99(0x472))/0x7*(-parseInt(_0x5b9b99(0x3cd))/0x8)+parseInt(_0x5b9b99(0x31c))/0x9*(-parseInt(_0x5b9b99(0x2b4))/0xa);if(_0x5d5748===_0x1b6066)break;else _0x7577be['push'](_0x7577be['shift']());}catch(_0x451f5b){_0x7577be['push'](_0x7577be['shift']());}}}(_0x1d52,0xa8362),Object['defineProperty'](exports,Symbol[_0x85662d(0x345)],{'value':_0x85662d(0x4cd)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m='collaboration-client.config',ee={},te=_0x85662d(0x38b),ne=0x4e20;function re(_0x24db35){const _0x3d6c3f=_0x85662d;return JSON['stringify'](_0x24db35)[_0x3d6c3f(0x45a)];}function h(_0x5a7a71){'@babel/helpers - typeof';const _0x25861b=_0x85662d;return h=typeof Symbol==_0x25861b(0x297)&&typeof Symbol[_0x25861b(0x300)]=='symbol'?function(_0x2c3fee){return typeof _0x2c3fee;}:function(_0x1a2322){const _0x4e2096=_0x25861b;return _0x1a2322&&typeof Symbol==_0x4e2096(0x297)&&_0x1a2322[_0x4e2096(0x4f8)]===Symbol&&_0x1a2322!==Symbol[_0x4e2096(0x442)]?_0x4e2096(0x433):typeof _0x1a2322;},h(_0x5a7a71);}function ie(_0x1c95e5,_0x48d91a){const _0x11365d=_0x85662d;if(h(_0x1c95e5)!=_0x11365d(0x316)||!_0x1c95e5)return _0x1c95e5;var _0x1d56fb=_0x1c95e5[Symbol[_0x11365d(0x403)]];if(_0x1d56fb!==void 0x0){var _0x2ffe91=_0x1d56fb[_0x11365d(0x380)](_0x1c95e5,_0x48d91a||_0x11365d(0x1e8));if(h(_0x2ffe91)!='object')return _0x2ffe91;throw TypeError(_0x11365d(0x466));}return(_0x48d91a==='string'?String:Number)(_0x1c95e5);}function ae(_0xf01706){const _0x1d9b91=_0x85662d;var _0x4707d5=ie(_0xf01706,_0x1d9b91(0x1dc));return h(_0x4707d5)=='symbol'?_0x4707d5:_0x4707d5+'';}function g(_0x1bd518,_0x1ea489,_0x1e55af){const _0x5db8ec=_0x85662d;return(_0x1ea489=ae(_0x1ea489))in _0x1bd518?Object[_0x5db8ec(0x4bf)](_0x1bd518,_0x1ea489,{'value':_0x1e55af,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bd518[_0x1ea489]=_0x1e55af,_0x1bd518;}let oe=function(_0x20f15e){const _0xd4d47=_0x85662d;return _0x20f15e[_0xd4d47(0x4c4)]='OTHER_CLIENT_EDITING',_0x20f15e[_0xd4d47(0x2a7)]=_0xd4d47(0x2a7),_0x20f15e[_0xd4d47(0x374)]=_0xd4d47(0x374),_0x20f15e[_0xd4d47(0x446)]=_0xd4d47(0x446),_0x20f15e[_0xd4d47(0x1c9)]='JOIN_ROOM_FAILED',_0x20f15e[_0xd4d47(0x3e3)]=_0xd4d47(0x3e3),_0x20f15e[_0xd4d47(0x22f)]=_0xd4d47(0x22f),_0x20f15e[_0xd4d47(0x2a2)]=_0xd4d47(0x2a2),_0x20f15e;}({});var _=class{constructor(){const _0x7c36c2=_0x85662d;g(this,'_event$',new i[(_0x7c36c2(0x439))]()),g(this,_0x7c36c2(0x25d),this[_0x7c36c2(0x289)][_0x7c36c2(0x2dd)]());}[_0x85662d(0x3ae)](_0x5e5c7b){this['_event$']['next'](_0x5e5c7b);}},se=class{constructor(){const _0x53b488=_0x85662d;g(this,_0x53b488(0x215),new i[(_0x53b488(0x439))]()),g(this,_0x53b488(0x3e8),this[_0x53b488(0x215)]['asObservable']());}['onCommentUpdate'](_0x4f2871){const _0x305db6=_0x85662d;this[_0x305db6(0x215)][_0x305db6(0x49a)](_0x4f2871);}};function v(_0x5bfead,_0x5ba5b5){return function(_0x2091ec,_0x1d5600){_0x5ba5b5(_0x2091ec,_0x1d5600,_0x5bfead);};}function y(_0x5a92f0,_0x3d07b0,_0x3e95b4,_0x1e9a8f){const _0x2fbf8e=_0x85662d;var _0x508c23=arguments[_0x2fbf8e(0x45a)],_0x4c1295=_0x508c23<0x3?_0x3d07b0:_0x1e9a8f===null?_0x1e9a8f=Object[_0x2fbf8e(0x4ac)](_0x3d07b0,_0x3e95b4):_0x1e9a8f,_0x5771a6;if(typeof Reflect==_0x2fbf8e(0x316)&&typeof Reflect[_0x2fbf8e(0x3a6)]==_0x2fbf8e(0x297))_0x4c1295=Reflect[_0x2fbf8e(0x3a6)](_0x5a92f0,_0x3d07b0,_0x3e95b4,_0x1e9a8f);else{for(var _0x14ed8d=_0x5a92f0['length']-0x1;_0x14ed8d>=0x0;_0x14ed8d--)(_0x5771a6=_0x5a92f0[_0x14ed8d])&&(_0x4c1295=(_0x508c23<0x3?_0x5771a6(_0x4c1295):_0x508c23>0x3?_0x5771a6(_0x3d07b0,_0x3e95b4,_0x4c1295):_0x5771a6(_0x3d07b0,_0x3e95b4))||_0x4c1295);}return _0x508c23>0x3&&_0x4c1295&&Object[_0x2fbf8e(0x4bf)](_0x3d07b0,_0x3e95b4,_0x4c1295),_0x4c1295;}let b=class extends t[_0x85662d(0x304)]{constructor(_0x2eaea4,_0x21c400){const _0x4f7c9e=_0x85662d;super(),this['_univerInstanceService']=_0x2eaea4,this[_0x4f7c9e(0x2f3)]=_0x21c400,g(this,'_roomMembers',new Map()),g(this,_0x4f7c9e(0x2ac),new i[(_0x4f7c9e(0x439))]()),this[_0x4f7c9e(0x221)]((0x0,i[_0x4f7c9e(0x22e)])(this[_0x4f7c9e(0x22a)][_0x4f7c9e(0x4b8)](t[_0x4f7c9e(0x378)]['UNIVER_SHEET'])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0x4e5a0e=>_0x4e5a0e[_0x4f7c9e(0x3b9)]())),this[_0x4f7c9e(0x22a)]['getTypeOfUnitDisposed$'](t[_0x4f7c9e(0x378)][_0x4f7c9e(0x39f)])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0xf5fc77=>_0xf5fc77[_0x4f7c9e(0x3b9)]())),this[_0x4f7c9e(0x22a)]['getTypeOfUnitDisposed$'](t[_0x4f7c9e(0x378)][_0x4f7c9e(0x4b5)])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0x16111a=>_0x16111a[_0x4f7c9e(0x3b9)]())),this[_0x4f7c9e(0x22a)][_0x4f7c9e(0x4b8)](t[_0x4f7c9e(0x378)][_0x4f7c9e(0x440)])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0x31d578=>_0x31d578['getUnitId']())))['subscribe'](_0x396b7a=>this[_0x4f7c9e(0x41f)](_0x396b7a)));}[_0x85662d(0x3e6)](_0x349c05){const _0x54433b=_0x85662d;return this['_roomMembers'][_0x54433b(0x4ca)](_0x349c05)?(0x0,i['of'])(this[_0x54433b(0x35f)][_0x54433b(0x39b)](_0x349c05)):this['_roomCreated$'][_0x54433b(0x4bd)]((0x0,s[_0x54433b(0x3fc)])(_0x2ec3ac=>{const _0xe8e7cc=_0x54433b;if(_0x2ec3ac===_0x349c05)return this[_0xe8e7cc(0x35f)][_0xe8e7cc(0x39b)](_0x2ec3ac);}));}[_0x85662d(0x3d2)](_0x210e79){const _0x19b25f=_0x85662d;this[_0x19b25f(0x2f3)][_0x19b25f(0x3d2)](_0x210e79);}[_0x85662d(0x4f7)](){const _0x5b9620=_0x85662d;return this[_0x5b9620(0x2f3)]['getCurrentUser']();}['updateMember'](_0x4dcf4d,_0xa373c5){const _0x5a7588=_0x85662d;let _0x8b4912=this['_roomMembers'][_0x5a7588(0x39b)](_0x4dcf4d);_0x8b4912||(_0x8b4912=new ce(),this[_0x5a7588(0x35f)][_0x5a7588(0x43f)](_0x4dcf4d,_0x8b4912),this[_0x5a7588(0x2ac)][_0x5a7588(0x49a)](_0x4dcf4d)),_0x8b4912['updateMember'](_0xa373c5);}['removeMember'](_0x5b4a29,_0x3aa0c4){const _0x300c82=_0x85662d;let _0x93c9d3=this[_0x300c82(0x35f)][_0x300c82(0x39b)](_0x5b4a29);_0x93c9d3&&_0x93c9d3[_0x300c82(0x3e0)](_0x3aa0c4);}[_0x85662d(0x4de)](_0x1774e2){const _0x194d95=_0x85662d;return this[_0x194d95(0x35f)]['get'](_0x1774e2);}[_0x85662d(0x3c8)](_0x2f0c3c,_0xc4fc1){const _0x53e1f6=_0x85662d;let _0x55992b=this[_0x53e1f6(0x35f)][_0x53e1f6(0x39b)](_0x2f0c3c);if(_0x55992b)return _0x55992b[_0x53e1f6(0x3c8)](_0xc4fc1);}[_0x85662d(0x41f)](_0x264c0c){const _0x40d458=_0x85662d;let _0x28f7d2=this[_0x40d458(0x35f)]['get'](_0x264c0c);_0x28f7d2&&(_0x28f7d2['dispose'](),this[_0x40d458(0x35f)]['delete'](_0x264c0c));}['dispose'](){const _0x244602=_0x85662d;this[_0x244602(0x35f)]['forEach'](_0x3ff220=>_0x3ff220[_0x244602(0x469)]()),this[_0x244602(0x35f)][_0x244602(0x214)](),this[_0x244602(0x2ac)]['complete']();}};b=y([v(0x0,t['IUniverInstanceService']),v(0x1,(0x0,t['Inject'])(t[_0x85662d(0x43e)]))],b);var ce=class extends t[_0x85662d(0x304)]{constructor(..._0x4f28f0){const _0x17b095=_0x85662d;super(..._0x4f28f0),g(this,'_members',new Map()),g(this,'_members$',new i[(_0x17b095(0x475))](this['_members'])),g(this,_0x17b095(0x213),this[_0x17b095(0x4d4)][_0x17b095(0x2dd)]());}['dispose'](){const _0x45a590=_0x85662d;this[_0x45a590(0x283)][_0x45a590(0x214)](),this['_members$'][_0x45a590(0x3ab)]();}[_0x85662d(0x23b)](_0x1f94ae){const _0x2637eb=_0x85662d;this[_0x2637eb(0x283)][_0x2637eb(0x43f)](_0x1f94ae['memberID'],_0x1f94ae),this[_0x2637eb(0x381)]();}[_0x85662d(0x3e0)](_0x542615){const _0x2be152=_0x85662d;this['_members'][_0x2be152(0x36e)](_0x542615),this['_emitMembers']();}[_0x85662d(0x3c8)](_0x36fafc){const _0x258bce=_0x85662d;return this[_0x258bce(0x283)][_0x258bce(0x39b)](_0x36fafc);}[_0x85662d(0x363)](){const _0xf44e0e=_0x85662d;return Array['from'](this[_0xf44e0e(0x283)][_0xf44e0e(0x28c)]());}[_0x85662d(0x381)](){const _0x452e68=_0x85662d;this['_members$'][_0x452e68(0x49a)](this['_members']);}};function le(_0x54b37b,_0x458aaa){const _0x6c6741=_0x85662d;if(de(_0x54b37b))return _0x458aaa;if(_0x458aaa['eventID']===e[_0x6c6741(0x3fb)][_0x6c6741(0x4c6)]){var _0x222952;let _0x4c8367=ge(_0x54b37b),_0x25fe97=_0x458aaa;return{..._0x25fe97,'data':{..._0x25fe97[_0x6c6741(0x28a)],'unitID':_0x54b37b[_0x6c6741(0x1f0)][_0x6c6741(0x420)],'unitType':(_0x222952=_0x54b37b[_0x6c6741(0x1f0)]['unitType'])==null?_0x25fe97[_0x6c6741(0x28a)][_0x6c6741(0x369)]:_0x222952,'changeset':_0x4c8367[_0x6c6741(0x253)](_0x25fe97['data']['changeset'],_e(_0x54b37b))}};}if(_0x458aaa[_0x6c6741(0x336)]===e[_0x6c6741(0x3fb)][_0x6c6741(0x415)]){var _0x3ebbf3;let _0x48840f=_0x458aaa;return{..._0x48840f,'data':{..._0x48840f['data'],'unitID':_0x54b37b[_0x6c6741(0x1f0)][_0x6c6741(0x420)],'unitType':(_0x3ebbf3=_0x54b37b['target']['unitType'])==null?_0x48840f['data'][_0x6c6741(0x369)]:_0x3ebbf3}};}return _0x458aaa;}function ue(_0x67a866,_0x3ce6a5){const _0x2d0496=_0x85662d;if(de(_0x67a866))return[_0x3ce6a5];switch(_0x3ce6a5[_0x2d0496(0x336)]){case e[_0x2d0496(0x3fb)][_0x2d0496(0x2ae)]:return[fe(_0x67a866,_0x3ce6a5)];case e[_0x2d0496(0x3fb)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x67a866,_0x3ce6a5)];case e[_0x2d0496(0x3fb)]['CHANGESET_SHOULD_RETRY']:return[pe(_0x67a866,_0x3ce6a5)];default:return[_0x3ce6a5];}}function de(_0xa9e9ec){const _0x26a648=_0x85662d;return _0xa9e9ec[_0x26a648(0x1f0)]['endpoint']==null&&_0xa9e9ec['target'][_0x26a648(0x420)]===_0xa9e9ec[_0x26a648(0x329)]&&!_0xa9e9ec['changeset'];}function fe(_0x4292bd,_0x3494cf){const _0x462c7f=_0x85662d;return{..._0x3494cf,'data':(0x0,e[_0x462c7f(0x1e0)])(he(_0x4292bd,(0x0,e[_0x462c7f(0x486)])(_0x3494cf[_0x462c7f(0x28a)])))};}function pe(_0x35cb33,_0x43a235){const _0x4bbe00=_0x85662d;return{..._0x43a235,'data':he(_0x35cb33,_0x43a235[_0x4bbe00(0x28a)])};}function me(_0x2ab5ab,_0xf792ad){const _0x25033f=_0x85662d;let _0x7e5c64=_0xf792ad[_0x25033f(0x28a)];return{..._0xf792ad,'data':{..._0x7e5c64,'changesets':_0x7e5c64[_0x25033f(0x251)]['map'](_0x3f34da=>(0x0,e['parseChangesetToProtocol'])(he(_0x2ab5ab,(0x0,e[_0x25033f(0x486)])(_0x3f34da))))}};}function he(_0x204f70,_0x35c46d){const _0x2c4345=_0x85662d;return ge(_0x204f70)[_0x2c4345(0x3be)](_0x35c46d,_e(_0x204f70));}function ge(_0x2b6eb0){const _0x3cb2ba=_0x85662d;if(!_0x2b6eb0[_0x3cb2ba(0x45c)])throw Error(_0x3cb2ba(0x4e5));return _0x2b6eb0[_0x3cb2ba(0x45c)];}function _e(_0x41bb38){const _0x1b7e77=_0x85662d;return{'localUnitId':_0x41bb38[_0x1b7e77(0x329)],'unitType':_0x41bb38['unitType'],'target':_0x41bb38['target']};}let ve=function(_0x579976){const _0x5c5f88=_0x85662d;return _0x579976[_0x579976[_0x5c5f88(0x46d)]=0x0]=_0x5c5f88(0x46d),_0x579976[_0x579976[_0x5c5f88(0x3b3)]=0x1]=_0x5c5f88(0x3b3),_0x579976[_0x579976[_0x5c5f88(0x4c0)]=0x2]=_0x5c5f88(0x4c0),_0x579976[_0x579976['ONLINE']=0x3]=_0x5c5f88(0x389),_0x579976;}({});function _0x342d(_0x5e7c8a,_0x37e7a8){_0x5e7c8a=_0x5e7c8a-0x1c8;const _0x1d52f7=_0x1d52();let _0x342d5f=_0x1d52f7[_0x5e7c8a];return _0x342d5f;}const ye={[a[_0x85662d(0x25c)][_0x85662d(0x2e1)]]:_0x85662d(0x322),[a[_0x85662d(0x25c)][_0x85662d(0x1f2)]]:_0x85662d(0x1de),[a[_0x85662d(0x25c)][_0x85662d(0x3b4)]]:_0x85662d(0x375),[a['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:_0x85662d(0x2cb),[a[_0x85662d(0x25c)][_0x85662d(0x26e)]]:'session.room-cnt-exceeds'};let x=class extends t[_0x85662d(0x42c)]{get[_0x85662d(0x4b6)](){return this['_sessionStatus$']['getValue']();}constructor(_0x14e86b,_0x5e97c0,_0x1283bd,_0x4f71c7,_0x2a3137,_0x3e9456,_0x3c3e17,_0x13975b){const _0x270c16=_0x85662d;super(),this[_0x270c16(0x3ce)]=_0x14e86b,this[_0x270c16(0x29f)]=_0x1283bd,this['_configService']=_0x4f71c7,this[_0x270c16(0x2fe)]=_0x2a3137,this[_0x270c16(0x3f6)]=_0x3e9456,this[_0x270c16(0x46e)]=_0x3c3e17,this[_0x270c16(0x4da)]=_0x13975b,g(this,_0x270c16(0x202),new i[(_0x270c16(0x475))](0x0)),g(this,_0x270c16(0x332),this[_0x270c16(0x202)]['asObservable']()),g(this,'_event$',new i['Subject']()),g(this,_0x270c16(0x25d),this[_0x270c16(0x289)][_0x270c16(0x2dd)]()),g(this,_0x270c16(0x1e5),void 0x0),g(this,_0x270c16(0x217),void 0x0),g(this,_0x270c16(0x4d8),void 0x0),g(this,_0x270c16(0x2d9),!0x1),g(this,_0x270c16(0x3dc),null),this[_0x270c16(0x2d9)]=!!this[_0x270c16(0x4da)],_0x5e97c0[_0x270c16(0x4bd)]((0x0,i[_0x270c16(0x2fc)])(this[_0x270c16(0x3df)]))[_0x270c16(0x46c)](_0x424b02=>{const _0x5eebd4=_0x270c16;if(_0x424b02!==void 0x0){if(this[_0x5eebd4(0x1e5)]=_0x424b02,_0x424b02)this['_joinRoom'](_0x424b02),this[_0x5eebd4(0x217)]=_0x424b02[_0x5eebd4(0x21b)]['subscribe'](_0x2bea40=>{const _0x923a93=_0x5eebd4;_0x2bea40[_0x923a93(0x349)]===this[_0x923a93(0x3ce)]['target'][_0x923a93(0x420)]&&this[_0x923a93(0x30b)](_0x2bea40);});else{var _0x1fb32b;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5eebd4(0x202)][_0x5eebd4(0x49a)](0x2),(_0x1fb32b=this[_0x5eebd4(0x217)])==null||_0x1fb32b[_0x5eebd4(0x269)](),this[_0x5eebd4(0x217)]=null;}}});}[_0x85662d(0x4b7)](){const _0x4a49f2=_0x85662d;var _0x15707c,_0x5bf16f;return(_0x15707c=(_0x5bf16f=this['_socket'])==null?void 0x0:_0x5bf16f[_0x4a49f2(0x4e4)])==null?null:_0x15707c;}[_0x85662d(0x469)](){const _0x21484b=_0x85662d;super['dispose'](),this[_0x21484b(0x418)](),this[_0x21484b(0x3df)][_0x21484b(0x49a)](),this['dispose$']['complete']();}[_0x85662d(0x418)](){const _0x40f522=_0x85662d;var _0x3f8ef5;this[_0x40f522(0x2af)](),(_0x3f8ef5=this[_0x40f522(0x1e5)])==null||_0x3f8ef5[_0x40f522(0x48b)]({'cmd':a[_0x40f522(0x44a)]['LEAVE'],'data':{'roomID':this[_0x40f522(0x3ce)][_0x40f522(0x1f0)][_0x40f522(0x420)]}}),this[_0x40f522(0x289)][_0x40f522(0x3ab)](),this['_sessionStatus$'][_0x40f522(0x3ab)]();}[_0x85662d(0x30b)](_0x3f6e80){const _0x1fe370=_0x85662d;_0x3f6e80['cmd']===a[_0x1fe370(0x44a)][_0x1fe370(0x1e7)]?this['_onJoinRoomEvent'](_0x3f6e80):_0x3f6e80[_0x1fe370(0x348)]===a[_0x1fe370(0x44a)]['RECV']&&this[_0x1fe370(0x33c)](_0x3f6e80);}['_joinRoom'](_0x50b030){const _0x1a3f35=_0x85662d;this[_0x1a3f35(0x202)]['next'](0x1),_0x50b030[_0x1a3f35(0x48b)]({'cmd':a[_0x1a3f35(0x44a)][_0x1a3f35(0x1e7)],'routeKey':this['_identity'][_0x1a3f35(0x1f0)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x1a3f35(0x1f0)][_0x1a3f35(0x420)]}]}});}['_onJoinRoomEvent'](_0x5e0b27){const _0x53a725=_0x85662d;var _0x4da6cc;if(_0x5e0b27['code']in ye){this[_0x53a725(0x46e)][_0x53a725(0x3ae)]({'id':_0x53a725(0x1c9),'data':ye[_0x5e0b27[_0x53a725(0x1d4)]]}),this[_0x53a725(0x202)]['next'](0x2);return;}this[_0x53a725(0x202)][_0x53a725(0x49a)](0x3);let _0x11bb27=(_0x4da6cc=_0x5e0b27['data'][_0x53a725(0x4d2)][this[_0x53a725(0x3ce)][_0x53a725(0x1f0)][_0x53a725(0x420)]])==null?void 0x0:_0x4da6cc[_0x53a725(0x49d)];_0x11bb27&&_0x11bb27[_0x53a725(0x30f)](_0x475390=>this[_0x53a725(0x2fe)]['updateMember'](this[_0x53a725(0x3ce)][_0x53a725(0x329)],_0x475390));}[_0x85662d(0x33c)](_0x16c3f1){const _0x37c573=_0x85662d;try{let _0x77342f=ue(this[_0x37c573(0x3ce)],_0x16c3f1[_0x37c573(0x28a)]);for(let _0xde405a of _0x77342f)switch(_0xde405a[_0x37c573(0x336)]){case e[_0x37c573(0x3fb)]['USERS_ENTER']:this[_0x37c573(0x44d)](_0xde405a),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x2fb)]:this[_0x37c573(0x1e2)](_0xde405a),this[_0x37c573(0x289)]['next'](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x410)]:case e[_0x37c573(0x3fb)]['CHANGESET_SHOULD_RETRY']:this[_0x37c573(0x260)](),this[_0x37c573(0x480)](),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x4c3)]:this[_0x37c573(0x29f)][_0x37c573(0x3cc)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x37c573(0x407)](_0xde405a)),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x267)]:this[_0x37c573(0x3f6)][_0x37c573(0x3ca)](_0xde405a['data']),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;default:this[_0x37c573(0x289)]['next'](_0xde405a);}}catch(_0x2f5627){this[_0x37c573(0x29f)][_0x37c573(0x3cc)](_0x2f5627,_0x16c3f1);}}[_0x85662d(0x44d)](_0x5223f9){const _0x597338=_0x85662d;this['_memberService'][_0x597338(0x23b)](this['_identity'][_0x597338(0x329)],_0x5223f9[_0x597338(0x28a)]);}[_0x85662d(0x1e2)](_0x37c003){const _0x44265b=_0x85662d;this[_0x44265b(0x2fe)][_0x44265b(0x3e0)](this[_0x44265b(0x3ce)][_0x44265b(0x329)],_0x37c003[_0x44265b(0x28a)][_0x44265b(0x4e4)]);}async[_0x85662d(0x48b)](_0x2bfaa3,_0xbf53ee){const _0x5dd9ad=_0x85662d;if(this['sessionStatus']!==0x3||!this[_0x5dd9ad(0x1e5)])throw Error(_0x5dd9ad(0x2c1));try{let _0x5a2874=le(this['_identity'],_0x2bfaa3);_0x5a2874['eventID']===e[_0x5dd9ad(0x3fb)][_0x5dd9ad(0x4c6)]&&(this[_0x5dd9ad(0x422)](),this[_0x5dd9ad(0x3b0)](_0x5a2874)),this[_0x5dd9ad(0x1e5)]['send']({'cmd':a[_0x5dd9ad(0x44a)][_0x5dd9ad(0x205)],'routeKey':this[_0x5dd9ad(0x3ce)]['target'][_0x5dd9ad(0x420)],'routeType':'','data':_0x5a2874});}catch(_0x3046bf){this['_logService'][_0x5dd9ad(0x3cc)](_0x3046bf);}}[_0x85662d(0x422)](){const _0x569e76=_0x85662d;var _0x4f35c8;this[_0x569e76(0x4d8)]=setTimeout(()=>{const _0x4bc15b=_0x569e76;this[_0x4bc15b(0x4d8)]=null,this[_0x4bc15b(0x46e)]['emitEvent']({'id':_0x4bc15b(0x2a2)});},(_0x4f35c8=this[_0x569e76(0x377)][_0x569e76(0x262)](_0x569e76(0x258)))==null?ne:_0x4f35c8);}[_0x85662d(0x480)](){const _0x5b8e1d=_0x85662d;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5b8e1d(0x4d8)]),this[_0x5b8e1d(0x4d8)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x177a6c){const _0x3ef665=_0x85662d;if(!this['_shouldReportTelemetry'])return;let {data:_0xb141e0}=_0x177a6c,{unitID:_0x2d969b,changeset:_0x5dd049}=_0xb141e0,{mutations:_0x13ad5d,type:_0x26ecbc}=_0x5dd049;this[_0x3ef665(0x3dc)]={'unitId':_0x2d969b,'type':_0x26ecbc,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':re(_0x13ad5d)};}[_0x85662d(0x260)](){const _0x3b6d08=_0x85662d;if(this[_0x3b6d08(0x2d9)]){if(!this[_0x3b6d08(0x3dc)]){this[_0x3b6d08(0x29f)][_0x3b6d08(0x3cc)]('[CollaborationSession]',_0x3b6d08(0x492));return;}this[_0x3b6d08(0x3dc)][_0x3b6d08(0x4b2)]=performance[_0x3b6d08(0x1d2)](),this['_telemetryInfo'][_0x3b6d08(0x1f6)]=this[_0x3b6d08(0x3dc)][_0x3b6d08(0x4b2)]-this['_telemetryInfo'][_0x3b6d08(0x47a)],this[_0x3b6d08(0x4da)][_0x3b6d08(0x219)](_0x3b6d08(0x261),this[_0x3b6d08(0x3dc)]),this[_0x3b6d08(0x3dc)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x11faa2=_0x85662d;this[_0x11faa2(0x3dc)]=null;}};x=y([v(0x2,t['ILogService']),v(0x3,t[_0x85662d(0x29d)]),v(0x4,(0x0,t[_0x85662d(0x340)])(b)),v(0x5,(0x0,t[_0x85662d(0x340)])(se)),v(0x6,(0x0,t[_0x85662d(0x340)])(_)),v(0x7,(0x0,t[_0x85662d(0x32e)])(o[_0x85662d(0x37f)]))],x);const S=(0x0,t[_0x85662d(0x3ea)])(_0x85662d(0x498));function be(_0x1b4fbf){const _0x481aef=_0x85662d;return _0x481aef(0x353)+_0x1b4fbf;}function xe(_0x36455f){const _0x1c0822=_0x85662d;let {unitID:_0x221150,mutations:_0x59d52e}=_0x36455f;return{'unitId':_0x221150,'subUnitId':_0x59d52e[_0x1c0822(0x45a)]>0x0?_0x59d52e[0x0][_0x1c0822(0x3c0)][_0x1c0822(0x31f)]:null};}let C=class{constructor(_0x1786c8,_0x3b7cee,_0x272c95){const _0x5ec1b8=_0x85662d;this[_0x5ec1b8(0x3f3)]=_0x1786c8,this[_0x5ec1b8(0x30e)]=_0x3b7cee,this[_0x5ec1b8(0x25e)]=_0x272c95;}[_0x85662d(0x45e)](_0x1b3058){const _0x450ce6=_0x85662d;var _0x849711,_0x13d25e;let _0xb4289d=this[_0x450ce6(0x3f3)][_0x450ce6(0x39b)](r['SheetsSelectionsService']),{unitId:_0x2b9576,subUnitId:_0x41a4a3}=xe(_0x1b3058),_0x323260=_0xb4289d==null?void 0x0:_0xb4289d['getWorkbookSelections'](_0x2b9576)[_0x450ce6(0x291)](),_0x4e678a=(_0x849711=this['_instanceService'][_0x450ce6(0x445)](_0x2b9576))==null||(_0x849711=_0x849711[_0x450ce6(0x42b)]())==null?void 0x0:_0x849711[_0x450ce6(0x3ed)]();if(_0x323260[_0x450ce6(0x45a)]===0x0||!_0x2b9576||!_0x41a4a3)return;let _0x39fce1=[{'id':r[_0x450ce6(0x1f9)]['id'],'params':{'unitId':_0x2b9576,'subUnitId':_0x4e678a,'selections':t[_0x450ce6(0x39e)][_0x450ce6(0x1db)](_0x323260)}}],_0x5f503b=this['_transformService'][_0x450ce6(0x3cf)](_0x1b3058,_0x39fce1);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x5f503b))throw _0x5f503b[_0x450ce6(0x3cc)];let _0x5bc9f1=(_0x13d25e=_0x5f503b['m2Prime'][0x0])==null||(_0x13d25e=_0x13d25e[_0x450ce6(0x3c0)])==null?void 0x0:_0x13d25e[_0x450ce6(0x278)];if(Array[_0x450ce6(0x24f)](_0x5bc9f1)&&_0x5bc9f1[_0x450ce6(0x45a)]){if(_0x5bc9f1[_0x450ce6(0x45a)]===_0x39fce1[0x0][_0x450ce6(0x3c0)][_0x450ce6(0x278)]['length']&&_0x5bc9f1[_0x450ce6(0x2c0)]((_0x260d1f,_0x157667)=>t[_0x450ce6(0x3d8)][_0x450ce6(0x2d5)](_0x260d1f[_0x450ce6(0x34d)],_0x39fce1[0x0][_0x450ce6(0x3c0)][_0x450ce6(0x278)][_0x157667]['range'])))return;this[_0x450ce6(0x3f3)][_0x450ce6(0x39b)](t[_0x450ce6(0x448)])[_0x450ce6(0x227)](r[_0x450ce6(0x1f9)]['id'],{'unitId':_0x2b9576,'subUnitId':_0x4e678a,'selections':_0x5bc9f1});}}};C=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x1,e[_0x85662d(0x301)]),v(0x2,t[_0x85662d(0x33e)])],C);const w=(0x0,t['createIdentifier'])(_0x85662d(0x3e1));let Se=function(_0x20e66a){const _0x1e2e0c=_0x85662d;return _0x20e66a[_0x20e66a[_0x1e2e0c(0x4ed)]=0x0]=_0x1e2e0c(0x4ed),_0x20e66a[_0x20e66a[_0x1e2e0c(0x42f)]=0x1]='OTHER_CLIENTS_EDITING',_0x20e66a;}({});function Ce(_0x5ba452){const _0x4f0a89=_0x85662d;var _0x3483d4;return!!((_0x3483d4=_0x5ba452[_0x4f0a89(0x3c0)])!=null&&_0x3483d4['__splitChunk__']);}const we=new Set([r[_0x85662d(0x3f7)]['id']]),Te=new Set([c['AddSlidePageMutation']['id'],c['EnsureSlideMasterPageMutation']['id'],c[_0x85662d(0x2ea)]['id'],c['RemoveSlidePageMutation']['id']]);function Ee(_0x19396e,_0x2eb7cf=we){const _0x4cb637=_0x85662d;let _0x30bef3=[];for(let _0x5962b2 of _0x19396e){if(_0x2eb7cf['has'](_0x5962b2['id'])){if(_0x30bef3['length']>0x0)break;_0x30bef3[_0x4cb637(0x4e6)](_0x5962b2);break;}if(Ce(_0x5962b2)){if(_0x30bef3[_0x4cb637(0x45a)]>0x0)break;_0x30bef3['push'](_0x5962b2);break;}_0x30bef3[_0x4cb637(0x4e6)](_0x5962b2);}return _0x30bef3;}function T(_0x3511b2,_0x12f96f,_0x39a384,_0x262410,_0x414db6){const _0x52937f=_0x85662d;var _0x3a2453,_0x599788,_0x3c25f8,_0x1410b1;let _0x1178c4=Ee(_0x3511b2),_0xc87791=(_0x3a2453=(_0x599788=_0x414db6['getCurrentUser']())==null?void 0x0:_0x599788[_0x52937f(0x302)])==null?_0x52937f(0x3f4):_0x3a2453,_0x3fcd7f=(_0x3c25f8=(_0x1410b1=_0x414db6[_0x52937f(0x4f7)]())==null?void 0x0:_0x1410b1[_0x52937f(0x4e4)])==null?'unknown':_0x3c25f8;return{'changeset':{'unitID':_0x12f96f,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x39a384['getUnitType'](_0x12f96f)),'baseRev':_0x262410[_0x52937f(0x337)](_0x12f96f),'revision':0x0,'userID':_0xc87791,'memberID':_0x3fcd7f,'mutations':_0x1178c4},'pendingMutations':_0x3511b2[_0x52937f(0x409)](_0x1178c4['length'])};}function De(_0x121dc4,_0x5b0137,_0x1a082a,_0x4b90e4,_0x2a248b){const _0x58c454=_0x85662d;var _0x370158,_0x32b6b5,_0x19d190,_0x4b55ee;let _0x524389=Ee(_0x121dc4,Te),_0x54dd61=(_0x370158=(_0x32b6b5=_0x2a248b[_0x58c454(0x4f7)]())==null?void 0x0:_0x32b6b5[_0x58c454(0x302)])==null?_0x58c454(0x3f4):_0x370158,_0x5be3b8=(_0x19d190=(_0x4b55ee=_0x2a248b[_0x58c454(0x4f7)]())==null?void 0x0:_0x4b55ee[_0x58c454(0x4e4)])==null?'unknown':_0x19d190;return{'changeset':{'unitID':_0x5b0137,'type':(0x0,e[_0x58c454(0x444)])(_0x1a082a[_0x58c454(0x238)](_0x5b0137)),'baseRev':_0x4b90e4[_0x58c454(0x337)](_0x5b0137),'revision':0x0,'userID':_0x54dd61,'memberID':_0x5be3b8,'mutations':_0x524389},'pendingMutations':_0x121dc4[_0x58c454(0x409)](_0x524389[_0x58c454(0x45a)])};}function Oe(_0x14e24f,_0x6013d1,_0x3daf4a,_0x42fc0e,_0x5f12c3){const _0x52b4a7=_0x85662d;var _0x464b25,_0x3bddf0,_0x1e57ad,_0x1632ae;let _0x5bfc17=_0x14e24f[_0x52b4a7(0x399)]((_0x583380,_0x27b5c3)=>{const _0x5e5b5c=_0x52b4a7;let _0x2beb24=_0x583380[_0x583380[_0x5e5b5c(0x45a)]-0x1],{id:_0x8e721b}=_0x2beb24==null?{}:_0x2beb24,{id:_0x216782,type:_0x3235f3}=_0x27b5c3,_0x15cc0d=_0x27b5c3['params'];if(_0x8e721b&&_0x8e721b!==_0x216782)throw Error(_0x5e5b5c(0x447)+_0x8e721b+_0x5e5b5c(0x2de)+_0x216782+'.');if(!_0x2beb24)return[{'id':_0x216782,'type':_0x3235f3,'params':{'unitId':_0x15cc0d[_0x5e5b5c(0x420)],'textRanges':_0x15cc0d[_0x5e5b5c(0x240)],'actions':_0x15cc0d['actions']}}];let _0x30c3fb=_0x2beb24[_0x5e5b5c(0x3c0)];return ke(_0x30c3fb,_0x15cc0d)?[..._0x583380[_0x5e5b5c(0x409)](0x0,-0x1),{..._0x2beb24,'id':_0x216782,'type':_0x3235f3,'params':{'unitId':_0x15cc0d[_0x5e5b5c(0x420)],'textRanges':_0x15cc0d[_0x5e5b5c(0x240)],'actions':t[_0x5e5b5c(0x339)][_0x5e5b5c(0x3bb)](_0x30c3fb[_0x5e5b5c(0x470)],_0x15cc0d[_0x5e5b5c(0x470)])}}]:[..._0x583380,{'id':_0x216782,'type':_0x3235f3,'params':{'unitId':_0x15cc0d[_0x5e5b5c(0x420)],'textRanges':_0x15cc0d['textRanges'],'actions':_0x15cc0d[_0x5e5b5c(0x470)]}}];},[]),_0x2e0262=(_0x464b25=(_0x3bddf0=_0x5f12c3[_0x52b4a7(0x4f7)]())==null?void 0x0:_0x3bddf0[_0x52b4a7(0x302)])==null?'unknown':_0x464b25,_0x12e0e9=(_0x1e57ad=(_0x1632ae=_0x5f12c3[_0x52b4a7(0x4f7)]())==null?void 0x0:_0x1632ae[_0x52b4a7(0x4e4)])==null?'unknown':_0x1e57ad;return{'changeset':{'unitID':_0x6013d1,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x3daf4a[_0x52b4a7(0x238)](_0x6013d1)),'baseRev':_0x42fc0e['getCurrentRevOfUnit'](_0x6013d1),'revision':0x0,'userID':_0x2e0262,'memberID':_0x12e0e9,'mutations':_0x5bfc17},'pendingMutations':_0x14e24f[_0x52b4a7(0x409)](_0x14e24f['length'])};}function ke(_0x556153,_0x50abed){const _0x54105e=_0x85662d;return!Ae(_0x556153)&&!Ae(_0x50abed)&&je(_0x556153[_0x54105e(0x470)],_0x50abed[_0x54105e(0x470)]);}function Ae(_0x5c1ba4){const _0x1cfd7b=_0x85662d;return _0x5c1ba4[_0x1cfd7b(0x460)]!==void 0x0;}function je(_0x62b585,_0x381daa){return Me(_0x62b585)&&Me(_0x381daa)&&!Pe(_0x62b585)&&!Pe(_0x381daa)&&!Ne(_0x62b585)&&!Ne(_0x381daa);}function Me(_0xee7391){const _0x25fbd4=_0x85662d;return Fe(_0xee7391)['some'](_0x18db19=>E(_0x18db19)&&_0x18db19['et']===_0x25fbd4(0x23a));}function Ne(_0x575607){const _0x143de3=_0x85662d;return Fe(_0x575607)[_0x143de3(0x450)](_0x26169a=>Array[_0x143de3(0x24f)](_0x26169a)||typeof _0x26169a==_0x143de3(0x1dc)||typeof _0x26169a==_0x143de3(0x24d));}function Pe(_0xa85a2d){const _0x9446e8=_0x85662d;return Fe(_0xa85a2d)[_0x9446e8(0x450)](_0x52f9de=>!E(_0x52f9de)||_0x52f9de['et']!==_0x9446e8(0x23a)||!Array[_0x9446e8(0x24f)](_0x52f9de['e'])?!0x1:_0x52f9de['e'][_0x9446e8(0x450)](_0x25bdec=>!E(_0x25bdec)||!E(_0x25bdec[_0x9446e8(0x2a6)])?!0x1:Object[_0x9446e8(0x442)]['hasOwnProperty']['call'](_0x25bdec['body'],_0x9446e8(0x21a))||Object[_0x9446e8(0x442)][_0x9446e8(0x47d)][_0x9446e8(0x380)](_0x25bdec[_0x9446e8(0x2a6)],_0x9446e8(0x310))||Object['prototype'][_0x9446e8(0x47d)][_0x9446e8(0x380)](_0x25bdec[_0x9446e8(0x2a6)],_0x9446e8(0x2bc))));}function Fe(_0x24e9a7){const _0x42b4d6=_0x85662d;if(!Array['isArray'](_0x24e9a7))return[];let _0x52a0a6=_0x24e9a7[_0x42b4d6(0x314)]('body')?_0x24e9a7:_0x24e9a7['find'](_0x2dac03=>Array[_0x42b4d6(0x24f)](_0x2dac03)&&_0x2dac03[_0x42b4d6(0x314)]('body'));if(!Array[_0x42b4d6(0x24f)](_0x52a0a6))return[];let _0x561241=_0x52a0a6[_0x42b4d6(0x4a4)]('body');return _0x561241===-0x1?[]:_0x52a0a6['slice'](_0x561241+0x1);}function E(_0x2e22a0){const _0x13f534=_0x85662d;return typeof _0x2e22a0==_0x13f534(0x316)&&!!_0x2e22a0&&!Array[_0x13f534(0x24f)](_0x2e22a0);}function Ie(_0xf8e76a,_0x33604d){const _0x59b6b3=_0x85662d;let _0x4a5dac=new i[(_0x59b6b3(0x392))](0x1);return setTimeout(()=>_0x4a5dac[_0x59b6b3(0x49a)](_0x33604d),_0xf8e76a),_0x4a5dac[_0x59b6b3(0x2dd)]()[_0x59b6b3(0x4bd)]((0x0,i[_0x59b6b3(0x3e5)])(0x1));}var Le,Re,ze;function _0x1d52(){const _0x1154c0=['[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','isTransformChangesetsSuccess','toPrimitive','offline','loadBase','mutations','stringify','ERROR_IMAGE','slice','signUrlServerUrl','getTime','getValue','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','list','method','CHANGESET_ACK','onSendChangeset','packageName','retryConnectingTimer','SNAPSHOT_URL_KEY','FETCH_MISSING','WorkbookEditablePermission','uniscriptRunEvent','close','_networkConditionService','8108040VJQwsy','SHOULD_CLOSE_CONN','_imageSourceCache','endpointKey','_registerDependencies','_removeRoom','unitId','candidateSocket','_scheduleCollaborationTimeoutTimer','sendHeartbeatTimer','_unlockTransition','DocCollaborationEntity','AWAITING_WITH_PENDING','socketReady','_getConfig','_singleActiveUnitService','parse','getActiveSheet','RxDisposable','ThresholdInterceptorFactory','[CollaborationEntity]','OTHER_CLIENTS_EDITING','liveShareNewHost','_waitForHeartbeatResponse','incrementRevOfUnit','symbol','reject','_updateStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','updateOfflineData','touchDependencies','Subject','\x20to\x20','COMPRESS_MUTATION_SEND','accept','UnitEmbedded','UserManagerService','set','UNIVER_BASE','fromCollab','prototype','encode','mapDocumentTypeToUniverInstanceType','getUnit','CLOSE_ROOM','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','ICommandService','requestParams','CombCmd','/new_changes','toggleOnline','_onUserJoin','_cfgEnableObjInherit','_acknowledgedAwaitingRevision','some','getLatestCsReqIdBySid','?size=','_unitLoaded$','_getLoginPath','toggleOffline','override','confirm','_tryEnsureSocket','_sessionChannels','length','isTransformMutationsWithChangesetSuccess','changeset','joinRsp','transformSelections','_onLocalMutation','isCompositionEnd','result','[SyncedState]:\x20received\x20rejection.','permissionRejEvent','_resendWithTimeout','updateCursorEvent','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_status$','transformUndoRedo','dispose','avatar','SheetCollaborationEntity','subscribe','IDLE','_collaborationUIEventService','revision','actions','max','89565bnoltP','_onFetchMissResult','getInterceptPoints','BehaviorSubject','SlideCollaborationEntity','subject','_changesetReqId','_transformStateCache','startTime','UPDATE_CURSOR','endpoint','hasOwnProperty','_getSignURL','HELLO','_clearCollaborationTimeoutTimer','originalMeta','roles','loadDoc','_sendHeartbeat','snapshotServerUrl','parseProtocolChangeset','MentionIoHttpService','collaborators','ImageSourceType','PERMISSION_REJ','send','collaboration-client.auth.needGotoLoginAlert','addHandlerCallback','Error\x20on\x20receiving\x20event','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','socket$','_getCurrentRevision','telemetry\x20info\x20is\x20not\x20initialized','_transformRemoteChangesetByStateCache','apply','[CollaborationSessionService]','_transitionLocked','href','collaboration-client.local-cache-service','DRAWING_IMAGE_ALLOW_IMAGE_LIST','next','saveImage','enableOfflineEditing','members','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_handler','_fetchMissChangesets','setCfgEnableObjInherit','_clearHeartbeatTimer','_clearScheduledTask','indexOf','catch','readyForCollab','onSyncEditingCollabCursor','isPermissionRej','registerHTTPInterceptor','loadBoard','LIVESHARE_TERMINATE','getOwnPropertyDescriptor','_replaceFileID','SyncedState','saveChangeset','textEncoder','PSEUDO_FETCH_MISSING_RESULT','stopTime','_pendingMutations','/collaborator','UNIVER_BOARD','sessionStatus','getMemberID','getTypeOfUnitDisposed$','awaitingChangeset','_toggleOnline','setConfig','create','pipe','awaiting_with_pending','defineProperty','OFFLINE','saveAttachment','SheetTransformSelectionsService','MSG_FOR_ERROR','OTHER_CLIENT_EDITING','CompressMutationService','SUBMIT_CHANGESET','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','batchAllowed','file','has','CollaborationAttachmentIoService','[CollaborationState]:\x20apply\x20error!','Module','URL','ISingleActiveUnitService','snapshot','SessionStatus','roomInfos','UNIVER_SHEET','_members$','find','close$','LOCAL_CACHE_INTERVAL_KEY','_collaborationTimeoutTimer','_tryReconnect','_telemetryService','[UniverCollaborationClientPlugin]','Univer','_createInitialState','getRoom','_transformStack','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','fetch_missing','enableSingleActiveInstanceLock','_type','memberID','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','push','concatMap','_isEchoedAwaitingChangeset','_onConnectionOpen','&assign=','[OfflineState]:\x20received\x20rejection.','refreshPermission','NO_OTHER_CLIENTS_EDITING','backupOfflineData','CHANGESET_REJ','&to=','_updateLocalCache','onTransformIME','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','IPermissionService','entityInit$','_onMessage','getCurrentUser','constructor','charCodeAt','JOIN_ROOM_FAILED','RichTextEditingMutation','_undoStacks','_showConflictNotification','IImageIoService','reqId','session','conflict','_queuedRemoteChangesets','now','randomBytes','code','uuidv4','ImageUploadStatusType','update','RETRY_CONNECTING_MAX_COUNT','_sender','closeSession','deepClone','string','fromCharCode','session.room-full','onMissedChangesetFetched','parseChangesetToProtocol','univer-pro.collaboration-client-adapter-service','_onUserLeave','_getUndoStack','_createInitialStateImpl','_socket','getTypeOfUnitAdded$','JOIN','default','listRoles','[CollaborationSessionService]:\x20socket\x20error','Plugin','ICollaborationSocketService','RECV','downloadEndpointUrl','[PendingState]:\x20received\x20rejection.','target','MemberService','JOIN_ROOM_FULL','updatePermissionObjEvent','_localCacheService','fetchThroughInterceptors','duration','IAuthzIoService','getSheetBlock','SetSelectionsOperation','action','_awaitingChangeset','MergeInterceptorFactory','_onConnectionFailed','onlyLocal','objectType','CollaborationUIEventService','_createSocket','_sessionStatus$','_clearTimeoutTimer','_transformRemoteChangesetByIMECache','INGEST','OPTIONAL','isInternalEditorID','ERROR_IMAGE_TYPE','listCollaborators','infoRsp','LIVESHARE_OPERATION','_scheduleCompleteTimestamp','docStateChange$','disableLocalCache','_onOffline','enableAuthServer','_transformIMECache','type','members$','clear','_commentUpdate$','_change$','_socketMessageSubscription','deleteCollaborator','capture','tables','message$','_remoteChangesetQueue','putCollaborators','splice','ERROR_EXCEED_SIZE','_resolveSessionIdentity','disposeWithMe','_clearRetryConnectingTimer','open$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_decreaseWaiting','shareReplay','executeCommand','pauseCollaboration','loginUrlKey','_univerInstanceService','localCacheService','IMentionIOService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','merge','SOCKET_FAILED','_onRemoteACK','_getUploadFileURL','requireSession','ErrorCode','state','getGlobalObject','DependentOn','c1Prime','getUnitType','name','text-x','updateMember','_permissionService','_onRemoteRejected','missingChangesets','\x0aAfter:\x20','textRanges','AwaitingWithPendingState','MUTATION','_state$','reconnect','cfgEnableObjInherit','ISnapshotServerService','/unit/','not_collab','IUndoRedoService','_checkMissing','onTransformRemoteChangesetByStateCache','c2Prime','number','patch','isArray','_resendTimeout','changesets','/universer-api/snapshot','toRemote','updateCollaborator','PERSON','trim','_handlerCallback','HEARTBEAT_TIMEOUT','_clearUndo','_toggleOffline','_adapter','CmdRspCode','event$','_instanceService','_sheetTransformSelectionsService','_stopTelemetryCollaborationNewChangeset','collaboration_new_changeset','getConfig','onStarting','loadOfflineData','_sendingTimer','serializeCombRequest','COMMENT_UPDATE','@univerjs-pro/collaboration-client','unsubscribe','url','getFocusedUnit','_resendTimer','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','GLOBAL_ROOMS_CNT_EXCEEDS','_incrementRevisionNumber','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LEAVE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationUndoRedoService]','responseType','RevisionService','getCollabEntity','replace','selections','getCfgEnableObjInherit','updatePermissionPoint','onTransformState','onRemoteChangeset','FileSource','sort','status$','unit','/universer-api/authz','onRemoteRetry','_members','localeService','LocaleService','collabWebSocketUrl','isTransformMutationsWithChangesetFailure','socket\x20open.','_event$','data','collabSubmitChangesetUrl','values','objects','_httpService','221537fCDPhn','BASE64','getCurrentSelections','leaveEvent','/object/','_initMergeInterceptor','CollaborationEntity','objectID','function','FetchingMissState','CollaborativeUndoRedoService','_rescheduleHeartbeat','allowed','socketMessageSubscription','IConfigService','_config','_logService','registerDependencies','LIVESHARE_REQUEST_HOST','SUBMIT_CHANGESET_TIMEOUT','_getSendChangesetTimeout','_createHandler','timeoutTimer','body','PERMISSION_DENIED','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_sessions','loadSlide','upload','_roomCreated$','/-/object/-/batch_allowed','NEW_CHANGESETS','_throwTelemetryCollaborationNewChangeset','_changesetSessionId','DEFAULT_WS_SESSION_TICKET_URL','_onRemoteRetry','unitInfo$','120BeDBcS','put','cbc','unitLoaded$','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','HEARTBEAT','fetchMissingChangesets','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','blockRanges','_getSocketChannel','_acknowledgeAwaitingIfReady','appendMutation','every','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_compressMutationService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','maxSize','workbook','editing\x20status\x20changed\x20to','_hasSessionsForEndpoint','headers','CHANGESET_SHOULD_RETRY','filter','session.room-permission-denied','__Key__','_undoRedoService','newCsEvent','UNIVER_SLIDE','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_isPermissionRej','_startCollaboration','delay','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','equals','add','_getRedoStack','_clearLocalCache','_shouldReportTelemetry','toString','focused$','UniverCollaborationClientPlugin','asObservable','\x20-\x20','ILocalCacheService','append','FAIL','_state','saveSnapshot','generateRandomId','resolve','_docStateChangeManagerService','pluginName','createInstance','[PendingState]:\x20received\x20acknowledgement.','MoveSlidePageMutation','floor','LIVESHARE_FETCH_OPERATIONS','_onConflict','status','resend','_collabSessionService','objectActions','enableCollaboration','_userManagerService','authzUrl','transformStack\x20failed!','_waitCount','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','m2Prime','HEARTBEAT_TIMEOUT_KEY','_lockTransition','USERS_LEAVE','takeUntil','retryCount','_memberService','UNISCRIPT_RUN','iterator','ITransformService','userID','_getDownloadEndpointURL','Disposable','ISocketService','_getAPIPrefixPath','_schedule','FileId','PENDING','CommandType','_onCombEvent','_initDependencies','init','_transformService','forEach','columnGroups','_eventService','_initCloseConn','interceptor','includes','HTTPService','object','[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.','failed\x20to\x20apply\x20missed\x20changesets!','min','AWAITING','_exhaustRemoteChangesetQueue','950769OuYusP','_entityInit$','resolveWithBasePath','subUnitId','pending','_handleRemoteChangesets','session.join-failed','HEARTBEAT_INTERVAL','&source=','_snapshotService','/universer-api/stream/file/upload','findIndex','_collaborationSessionService','localUnitId','INetworkConditionService','x-univer-host','/-/object/list','_onRemoteChangeset','Optional','2108692WCTwsY','Injector','submit\x20changeset\x20error!','sessionStatus$','getResourcesRequest','_initUnitPermissionChange','OfflineState','eventID','getCurrentRevOfUnit','Failed\x20to\x20update\x20permission\x20point','JSONX','/fetchmissing?from=','_collaborationPaused','_onRecvEvent','_entities','IUniverInstanceService','[SyncedState]:\x20received\x20acknowledgement.','Inject','baseRev','entries','onStateChange','_unitInfo$','toStringTag','sendChangesetTimeout','onRemoteAck','cmd','routeKey','version','DataLoaderService','_maxTotalRetryTimeout','range','error$','RETRY_CONNECTING_MAX_COUNT_KEY','awaiting','COMPRESS_MUTATION_APPLY','_revisionService','unit-cache-','DocStateChangeManagerService','_pendingSessions','_localeService','unitID','_getAPIPrefix','fetchMiss','USERS_ENTER','People','_transformUndoredo','CollaborationSessionService','getCollabEntity$','_roomMembers','addImageSourceCache','AuthzIoHttpService','size','getAllMembers','_socketService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','SUCCUSS','reverse','SheetPermissionInitController','unitType','/universer-api/comb','_initRequestHeader','_upload','b64DecodeUnicode','delete','getLocalCacheKey','_disableEditing','LIVESHARE_NEW_HOST','2310160vueqIW','MentionType','CONFLICT','session.room-not-exists','onload','_configService','UniverInstanceType','FETCH_MISS','getDrawingImageAllowSize','saveSheetBlock','/role','loadUnitOfRevision','_applyRemoteChangeset','ITelemetryService','call','_emitMembers','_updateState','[CollaborationSession]','createCollaborator','/block/','?url=','createSocket','onRemoteRej','ONLINE','CollaborationImageIoService','ws://127.0.0.1:8000/universer-api/comb/connect','_init','CommentService','BaseCollaborationEntity','CollaborationSocketService','retryConnectingInterval','uploadFileServerUrl','ReplaySubject','/universer-api/snapshot/','_submitChangeset','joinEvent','withCredentials','connection\x20error','readAsDataURL','reduce','PendingState','get','84tofDBn','_getCtorByUniverInstanceType','Tools','UNIVER_DOC','sid','_redoStacks','origin','_executeRemoteChangeset','ILogService','{fileID}','decorate','resolveUnit','sheets','debug','_HTTPService','complete','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','unitId\x20is\x20not\x20found','emitEvent','mergeOverrideWithDependencies','_startTelemetryCollaborationNewChangeset','UUID','onMutationExecutedForCollab','JOINING','JOIN_ROOM_NOT_EXISTS','hostname','then','fetching\x20missing\x20changesets\x20from\x20','getDeserializedSheetBlock','getUnitId','startsWith','compose','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','socket\x20close','toLocal','_transformAndApplyRemoteChangeset','params','setShowComponents','getSnapshotAPIPath','location','initWorkbookPermissionChange','onMissingChangesets','setWaitCount','/rev/','getMember','/allowed','onCommentUpdate','_socketChannels','error','120DxLhzl','_identity','transformMutationsWithChangeset','DEFAULT_FILE_NAME','[OfflineState]:\x20received\x20acknowledgement.','setCurrentUser','deserializeToCombResponse','post','_commandService','toDisposable','_createSession','Rectangle','_transformSelections','onTransformSelections','POST','_telemetryInfo','_acknowledgeAwaiting','onTransformRemoteChangesetByIMECache','dispose$','removeMember','univer-pro.collaboration-client.single-active-unit-service','attachment','SOCKET_FAILED_RETRY','copyFileMeta','take','waitForRoom$','DEFAULT_COLLAB_WEB_SOCKET_URL','commentUpdate$','[FetchMissState]','createIdentifier','state$','LOCAL_CACHE_INTERVAL','getSheetId','synced','socketService','[OfflineState]:\x20received\x20changeset.','getUploadOptions','_replayCachedMutations','_injector','unknown','CollaborationSession','_commentService','InsertSheetMutation','LocalUndoRedoService','src','getImageSourceCache','CollaborationEvent','map','firstValueFrom','6092kMoHoF','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','resourceIDs'];_0x1d52=function(){return _0x1154c0;};return _0x1d52();}let Be=function(_0x1441f3){const _0x162a54=_0x85662d;return _0x1441f3['NOT_COLLAB']=_0x162a54(0x248),_0x1441f3['SYNCED']=_0x162a54(0x3ee),_0x1441f3[_0x162a54(0x309)]=_0x162a54(0x320),_0x1441f3[_0x162a54(0x31a)]=_0x162a54(0x350),_0x1441f3[_0x162a54(0x426)]=_0x162a54(0x4be),_0x1441f3[_0x162a54(0x379)]=_0x162a54(0x4e1),_0x1441f3[_0x162a54(0x374)]=_0x162a54(0x1d0),_0x1441f3[_0x162a54(0x4c0)]='offline',_0x1441f3;}({});const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0xc838c2,_0x2d826d,_0x25bea0,_0x24e9ed,_0x565391,_0x117c2c,_0x2f13d0,_0x4fcb08,_0x179e21){const _0xf0381a=_0x85662d;this['unitID']=_0xc838c2,this[_0xf0381a(0x212)]=_0x2d826d,this[_0xf0381a(0x49f)]=_0x565391,this['_commandService']=_0x117c2c,this[_0xf0381a(0x2cd)]=_0x2f13d0,this[_0xf0381a(0x352)]=_0x4fcb08,this[_0xf0381a(0x1f4)]=_0x179e21,g(this,'_awaitingChangeset',null),g(this,_0xf0381a(0x4b3),[]),this[_0xf0381a(0x1fb)]=_0x25bea0,this[_0xf0381a(0x4b3)]=_0x24e9ed;}[_0x85662d(0x24a)](_0x578e7f){const _0x3471ce=_0x85662d;let _0x48c9fd=this[_0x3471ce(0x352)][_0x3471ce(0x337)](this[_0x3471ce(0x357)]);return _0x578e7f[_0x3471ce(0x46f)]>_0x48c9fd+0x1?(this[_0x3471ce(0x49f)][_0x3471ce(0x3c5)]({'from':_0x48c9fd,'to':_0x578e7f[_0x3471ce(0x46f)]-0x1}),!0x0):!0x1;}[_0x85662d(0x35c)](_0x4ad0bc){const _0x31b955=_0x85662d;this[_0x31b955(0x2cd)][_0x31b955(0x468)](this[_0x31b955(0x357)],_0x4ad0bc);}[_0x85662d(0x3d9)](_0x1eeded){const _0x3695fd=_0x85662d;var _0x4bb343,_0x339c1f;(_0x4bb343=(_0x339c1f=this['_handler'])[_0x3695fd(0x3da)])==null||_0x4bb343[_0x3695fd(0x380)](_0x339c1f,_0x1eeded);}[_0x85662d(0x211)](_0x24249e){const _0x4bed15=_0x85662d;var _0x59f67b,_0x177f39;return(_0x59f67b=(_0x177f39=this[_0x4bed15(0x49f)])[_0x4bed15(0x4f2)])==null?void 0x0:_0x59f67b[_0x4bed15(0x380)](_0x177f39,_0x24249e);}['_transformStateCache'](_0x5e511e){const _0x46135a=_0x85662d;var _0x5b6c50,_0x57c3c8;return(_0x5b6c50=(_0x57c3c8=this[_0x46135a(0x49f)])[_0x46135a(0x27b)])==null?void 0x0:_0x5b6c50[_0x46135a(0x380)](_0x57c3c8,_0x5e511e);}[_0x85662d(0x204)](_0x53824a){const _0xc1123e=_0x85662d;var _0x2152ee,_0x358ce4,_0x27fc64;return(_0x2152ee=(_0x358ce4=(_0x27fc64=this[_0xc1123e(0x49f)])[_0xc1123e(0x3de)])==null?void 0x0:_0x358ce4[_0xc1123e(0x380)](_0x27fc64,_0x53824a))==null?_0x53824a:_0x2152ee;}[_0x85662d(0x493)](_0x3fb48c){const _0x336b02=_0x85662d;var _0x261281,_0x42c88a,_0x3486f3;return(_0x261281=(_0x42c88a=(_0x3486f3=this['_handler'])[_0x336b02(0x24b)])==null?void 0x0:_0x42c88a[_0x336b02(0x380)](_0x3486f3,_0x3fb48c))==null?_0x3fb48c:_0x261281;}['_syncEditingCollabCursor'](_0x37ed7b){const _0x3ed8e0=_0x85662d;if(this['type']===t[_0x3ed8e0(0x378)][_0x3ed8e0(0x39f)]){let {unitID:_0x2f56a5,mutations:_0x15b152,memberID:_0x48ca32}=_0x37ed7b,_0x2cde3f=_0x15b152[_0x3ed8e0(0x45a)]>0x0?_0x15b152[0x0]['params'][_0x3ed8e0(0x240)]:[];if(Array[_0x3ed8e0(0x24f)](_0x2cde3f)&&_0x2cde3f[_0x3ed8e0(0x45a)]>0x0){var _0x13cbe2,_0x202759;(_0x13cbe2=(_0x202759=this[_0x3ed8e0(0x49f)])[_0x3ed8e0(0x4a7)])==null||_0x13cbe2[_0x3ed8e0(0x380)](_0x202759,{'unitID':_0x2f56a5,'memberID':_0x48ca32,'textRanges':_0x2cde3f});}}}[_0x85662d(0x4f1)](){const _0x39d3ef=_0x85662d;var _0x383e55;(_0x383e55=this[_0x39d3ef(0x1f4)])==null||_0x383e55[_0x39d3ef(0x437)](this[_0x39d3ef(0x357)],this[_0x39d3ef(0x212)],this[_0x39d3ef(0x1fb)],this['_pendingMutations']);}[_0x85662d(0x491)](){const _0x18cfb7=_0x85662d;return this[_0x18cfb7(0x352)]['getCurrentRevOfUnit'](this[_0x18cfb7(0x357)]);}['_incrementRevisionNumber'](){const _0x33910d=_0x85662d;this[_0x33910d(0x352)][_0x33910d(0x432)](this[_0x33910d(0x357)]);}[_0x85662d(0x3a3)](_0x4ff8c6){const _0x39e184=_0x85662d;let _0x41ea66=this[_0x39e184(0x204)](_0x4ff8c6);_0x41ea66=this[_0x39e184(0x493)](_0x41ea66);let _0x196ca9=(0x0,t['sequenceExecute'])(_0x41ea66[_0x39e184(0x406)],this[_0x39e184(0x3d5)],{'fromCollab':!0x0});if(!_0x196ca9['result']){var _0x3861b5;throw _0x196ca9[_0x39e184(0x3cc)]instanceof Error?_0x196ca9[_0x39e184(0x3cc)]:Error((_0x3861b5=_0x196ca9['error'])==null?_0x39e184(0x4cc):_0x3861b5);}this[_0x39e184(0x211)](_0x41ea66),this[_0x39e184(0x479)](_0x41ea66),this[_0x39e184(0x35c)](_0x4ff8c6),this[_0x39e184(0x3d9)](_0x41ea66),this['_syncEditingCollabCursor'](_0x41ea66),this[_0x39e184(0x26f)]();}};let O=class extends D{constructor(_0x3d2298,_0x518483,_0x2e843a,_0x1a7ca0,_0x590178,_0x1d786b,_0x1b5214,_0x3e500d,_0x3cb6ce,_0x2769b8){const _0x11170d=_0x85662d;super(_0x3d2298,_0x518483,null,[],_0x2e843a,_0x1b5214,_0x1d786b,_0x1a7ca0,_0x2769b8),this[_0x11170d(0x3f3)]=_0x590178,this[_0x11170d(0x29f)]=_0x3e500d,this['_transformService']=_0x3cb6ce,this[_0x11170d(0x22b)]=_0x2769b8,g(this,_0x11170d(0x2ee),_0x11170d(0x3ee));}[_0x85662d(0x2bf)](_0x2d12e9){const _0x17143=_0x85662d;let _0x5b93ad=this[_0x17143(0x3f3)]['createInstance'](k,this['unitID'],this[_0x17143(0x212)],[_0x2d12e9],this['_handler']);return _0x5b93ad[_0x17143(0x307)](),_0x5b93ad[_0x17143(0x4f1)](),_0x5b93ad;}[_0x85662d(0x27c)](_0x47edea){const _0x8cc0eb=_0x85662d;if(this[_0x8cc0eb(0x24a)](_0x47edea))return this['_injector'][_0x8cc0eb(0x2e8)](P,this['unitID'],this[_0x8cc0eb(0x212)],null,[],null,[_0x47edea],this[_0x8cc0eb(0x49f)]);try{let _0x138a4a=this[_0x8cc0eb(0x30e)][_0x8cc0eb(0x3cf)](_0x47edea,[e['EmptyMutationInfo']]);if((0x0,e[_0x8cc0eb(0x45b)])(_0x138a4a)){let {c1Prime:_0x46b20a}=_0x138a4a;return this[_0x8cc0eb(0x3a3)](_0x46b20a),this;}throw _0x138a4a[_0x8cc0eb(0x3cc)];}catch(_0x34aa49){return this[_0x8cc0eb(0x29f)]['error'](_0x34aa49),this['_onConflict'](!0x1);}}[_0x85662d(0x2ed)](_0x2d5ab7){const _0x3bf647=_0x85662d;return this['_injector'][_0x3bf647(0x2e8)](M,this['unitID'],this[_0x3bf647(0x212)],null,[],this[_0x3bf647(0x49f)],_0x2d5ab7);}[_0x85662d(0x347)](_0x2994e1){const _0x44bb66=_0x85662d;if(_0x2994e1['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x44bb66(0x33f));}['onRemoteRej'](){const _0x197e1b=_0x85662d;throw Error(_0x197e1b(0x462));}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){const _0x1c6763=_0x85662d;return this['_injector'][_0x1c6763(0x2e8)](N,this['unitID'],this['type'],null,[],this[_0x1c6763(0x49f)]);}[_0x85662d(0x44c)](){return this;}['resend'](){const _0x4c62df=_0x85662d;throw Error(_0x4c62df(0x365));}[_0x85662d(0x359)](){const _0x3bec8a=_0x85662d;let _0x3abc4e=this[_0x3bec8a(0x352)][_0x3bec8a(0x337)](this['unitID']);return this[_0x3bec8a(0x49f)]['onMissingChangesets']({'from':_0x3abc4e,'to':0x0}),this['_injector']['createInstance'](P,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};O=y([v(0x3,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,t[_0x85662d(0x249)]),v(0x6,t[_0x85662d(0x448)]),v(0x7,t[_0x85662d(0x3a4)]),v(0x8,e[_0x85662d(0x301)]),v(0x9,(0x0,t[_0x85662d(0x32e)])(S))],O);let k=Le=class extends D{constructor(_0x466e92,_0x47d668,_0x334847,_0x5ae941,_0x5b71d6,_0xa29e0c,_0x3a17e0,_0x132981,_0x352a16,_0x23c788,_0x30a858,_0x4c94e2,_0x1f8d7b,_0x20d605){const _0x113fb0=_0x85662d;super(_0x466e92,_0x47d668,null,_0x334847,_0x5ae941,_0x352a16,_0x1f8d7b,_0xa29e0c,_0x20d605),this['_injector']=_0x5b71d6,this[_0x113fb0(0x2fe)]=_0x3a17e0,this[_0x113fb0(0x29f)]=_0x132981,this[_0x113fb0(0x377)]=_0x23c788,this[_0x113fb0(0x30e)]=_0x30a858,this[_0x113fb0(0x22a)]=_0x4c94e2,g(this,_0x113fb0(0x2ee),_0x113fb0(0x320)),g(this,_0x113fb0(0x20c),null),g(this,_0x113fb0(0x265),null);}['appendMutation'](_0x5eaaef){const _0x564277=_0x85662d;return this[_0x564277(0x4b3)]['push'](_0x5eaaef),this[_0x564277(0x4f1)](),this;}[_0x85662d(0x27c)](_0x1dae4a){const _0x194c7b=_0x85662d;if(this[_0x194c7b(0x24a)](_0x1dae4a))return this[_0x194c7b(0x4a3)](),this['_injector'][_0x194c7b(0x2e8)](P,this[_0x194c7b(0x357)],this[_0x194c7b(0x212)],null,this[_0x194c7b(0x4b3)],null,[_0x1dae4a],this[_0x194c7b(0x49f)]);try{let _0x5f315d=this[_0x194c7b(0x30e)][_0x194c7b(0x3cf)](_0x1dae4a,this[_0x194c7b(0x4b3)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x5f315d)){let {c1Prime:_0x1c67ed,m2Prime:_0x446013}=_0x5f315d;this[_0x194c7b(0x3a3)](_0x1c67ed);let _0x39f3b6=this[_0x194c7b(0x3f3)][_0x194c7b(0x2e8)](Le,this[_0x194c7b(0x357)],this[_0x194c7b(0x212)],_0x446013,this[_0x194c7b(0x49f)]);this['_clearScheduledTask']();let _0xdf4dbe=new Date()[_0x194c7b(0x40b)](),_0x57eff0=this[_0x194c7b(0x20c)]?Math[_0x194c7b(0x471)](this[_0x194c7b(0x20c)]-_0xdf4dbe,0x0):this[_0x194c7b(0x2a3)]();return _0x39f3b6[_0x194c7b(0x307)](_0x57eff0),_0x39f3b6;}throw _0x5f315d[_0x194c7b(0x3cc)];}catch(_0x1abdf1){return this[_0x194c7b(0x29f)][_0x194c7b(0x3cc)](_0x1abdf1),this[_0x194c7b(0x2ed)](!0x1);}}[_0x85662d(0x347)](_0x53b507){const _0x502737=_0x85662d;if(_0x53b507[_0x502737(0x46f)]<=this[_0x502737(0x491)]())return this;throw Error(_0x502737(0x2e9));}[_0x85662d(0x388)](){const _0x16b99b=_0x85662d;throw Error(_0x16b99b(0x1ef));}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){const _0x28ab60=_0x85662d;return this['_clearScheduledTask'](),this[_0x28ab60(0x3f3)][_0x28ab60(0x2e8)](N,this['unitID'],this[_0x28ab60(0x212)],null,this[_0x28ab60(0x4b3)],this[_0x28ab60(0x49f)]);}['toggleOnline'](){return this;}[_0x85662d(0x307)](_0x3941e9){const _0x3d68e0=_0x85662d;let _0x9a6a56=_0x3941e9==null?this[_0x3d68e0(0x2a3)]():_0x3941e9;this[_0x3d68e0(0x20c)]=new Date()[_0x3d68e0(0x40b)]()+_0x9a6a56,this[_0x3d68e0(0x265)]=setTimeout(()=>{const _0x9e1a3b=_0x3d68e0;this[_0x9e1a3b(0x4a3)]();let _0x440044=null;switch(this[_0x9e1a3b(0x212)]){case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x4d3)]:_0x440044=T(this[_0x9e1a3b(0x4b3)],this['unitID'],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this[_0x9e1a3b(0x2fe)]);break;case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x39f)]:_0x440044=this[_0x9e1a3b(0x4b3)][_0x9e1a3b(0x2c0)](_0xeac230=>_0xeac230['id']===n[_0x9e1a3b(0x1ca)]['id'])?Oe(this['_pendingMutations'],this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this['_memberService']):T(this['_pendingMutations'],this['unitID'],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this[_0x9e1a3b(0x2fe)]);break;case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x2cf)]:_0x440044=De(this[_0x9e1a3b(0x4b3)],this[_0x9e1a3b(0x357)],this['_univerInstanceService'],this['_revisionService'],this[_0x9e1a3b(0x2fe)]);break;case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x4b5)]:_0x440044=T(this[_0x9e1a3b(0x4b3)],this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this['_memberService']);break;case t['UniverInstanceType']['UNIVER_BASE']:_0x440044=T(this[_0x9e1a3b(0x4b3)],this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this[_0x9e1a3b(0x2fe)]);break;default:throw Error(_0x9e1a3b(0x272)+this[_0x9e1a3b(0x212)]+'\x20in\x20_schedule.');}let {changeset:_0x4a6487,pendingMutations:_0x3d5532}=_0x440044;this[_0x9e1a3b(0x49f)]['onSendChangeset'](_0x4a6487);let _0x2d6cee=_0x3d5532[_0x9e1a3b(0x45a)]?this[_0x9e1a3b(0x3f3)][_0x9e1a3b(0x2e8)](j,this[_0x9e1a3b(0x357)],this['type'],_0x4a6487,_0x3d5532,this['_handler'],void 0x0):this[_0x9e1a3b(0x3f3)]['createInstance'](A,this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x212)],_0x4a6487,this['_handler']);_0x2d6cee['_updateLocalCache'](),this[_0x9e1a3b(0x49f)][_0x9e1a3b(0x343)](this,_0x2d6cee);},_0x9a6a56);}[_0x85662d(0x2a3)](){const _0x5dbcf5=_0x85662d;var _0x1b5f70;let _0x5e61eb=this[_0x5dbcf5(0x377)][_0x5dbcf5(0x262)](m);return(_0x1b5f70=_0x5e61eb==null?void 0x0:_0x5e61eb[_0x5dbcf5(0x346)])==null?0x7d0:_0x1b5f70;}[_0x85662d(0x2ef)](){const _0x3ae44b=_0x85662d;throw Error(_0x3ae44b(0x48f));}[_0x85662d(0x4a3)](){const _0x2e6703=_0x85662d;this[_0x2e6703(0x265)]!=null&&(clearTimeout(this[_0x2e6703(0x265)]),this[_0x2e6703(0x265)]=null);}['_onConflict'](_0x3e775f){const _0x1ba8e7=_0x85662d;return this['_clearScheduledTask'](),this[_0x1ba8e7(0x3f3)]['createInstance'](M,this[_0x1ba8e7(0x357)],this['type'],null,this[_0x1ba8e7(0x4b3)],this['_handler'],_0x3e775f);}};k=Le=y([v(0x4,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x5,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x6,(0x0,t[_0x85662d(0x340)])(b)),v(0x7,t[_0x85662d(0x3a4)]),v(0x8,t[_0x85662d(0x448)]),v(0x9,t[_0x85662d(0x29d)]),v(0xa,e[_0x85662d(0x301)]),v(0xb,t['IUniverInstanceService']),v(0xc,t[_0x85662d(0x249)]),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],k);let A=Re=class extends D{constructor(_0x4a5d22,_0x1291ca,_0x353be1,_0x40ad7c,_0x2f3804,_0x27a40a,_0xba29b3,_0x4a7c9a,_0x2a7fc3,_0x2b56f8,_0x3f38c4){const _0x1982c4=_0x85662d;super(_0x4a5d22,_0x1291ca,_0x353be1,[],_0x40ad7c,_0xba29b3,_0x2b56f8,_0x27a40a,_0x3f38c4),this[_0x1982c4(0x3f3)]=_0x2f3804,this[_0x1982c4(0x29f)]=_0x4a7c9a,this[_0x1982c4(0x30e)]=_0x2a7fc3,g(this,_0x1982c4(0x2ee),_0x1982c4(0x350)),g(this,'_resendTimeout',0x0),g(this,_0x1982c4(0x34c),0x0),g(this,_0x1982c4(0x26c),void 0x0),g(this,_0x1982c4(0x1d9),void 0x0);}['appendMutation'](_0x23b656){const _0xfdb959=_0x85662d;this[_0xfdb959(0x4a3)]();let _0x99ab43=this['_injector'][_0xfdb959(0x2e8)](j,this[_0xfdb959(0x357)],this[_0xfdb959(0x212)],this[_0xfdb959(0x1fb)],[_0x23b656],this['_handler'],this[_0xfdb959(0x26c)]);return _0x99ab43[_0xfdb959(0x4f1)](),_0x99ab43;}[_0x85662d(0x27c)](_0x212899){const _0x43e39f=_0x85662d;if(this['_checkMissing'](_0x212899))return this[_0x43e39f(0x4a3)](),this[_0x43e39f(0x3f3)][_0x43e39f(0x2e8)](P,this['unitID'],this[_0x43e39f(0x212)],this[_0x43e39f(0x1fb)],[],null,[_0x212899],this[_0x43e39f(0x49f)]);try{let _0x16608b=this['_transformService']['transformChangesets']([_0x212899],[this[_0x43e39f(0x1fb)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x16608b)){let {c1Prime:_0x4f679a,c2Prime:_0x7b0f41}=_0x16608b;this[_0x43e39f(0x3a3)](_0x4f679a[0x0]),_0x7b0f41[0x0][_0x43e39f(0x341)]=this[_0x43e39f(0x491)](),this['_clearScheduledTask']();let _0x49bd94=this[_0x43e39f(0x3f3)][_0x43e39f(0x2e8)](Re,this['unitID'],this['type'],_0x7b0f41[0x0],this['_handler']);return _0x49bd94[_0x43e39f(0x4f1)](),_0x49bd94;}throw _0x16608b[_0x43e39f(0x3cc)];}catch(_0x46e1b2){return this[_0x43e39f(0x29f)]['error'](_0x46e1b2),this[_0x43e39f(0x2ed)](!0x1);}}[_0x85662d(0x347)](_0x2a54e4){const _0x4d3e04=_0x85662d;this['_clearScheduledTask']();let _0x53c638=this['_revisionService'][_0x4d3e04(0x337)](this[_0x4d3e04(0x357)]);if(_0x2a54e4[_0x4d3e04(0x46f)]<=_0x53c638)return this;if(this[_0x4d3e04(0x24a)](_0x2a54e4))return this['_injector']['createInstance'](P,this['unitID'],this[_0x4d3e04(0x212)],this[_0x4d3e04(0x1fb)],[],_0x2a54e4[_0x4d3e04(0x46f)],[],this[_0x4d3e04(0x49f)]);this[_0x4d3e04(0x26f)]();let _0x3f755f=this[_0x4d3e04(0x3f3)][_0x4d3e04(0x2e8)](O,this[_0x4d3e04(0x357)],this[_0x4d3e04(0x212)],this['_handler']);return _0x3f755f['_updateLocalCache'](),_0x3f755f;}[_0x85662d(0x388)](_0x5a709d){const _0x23f836=_0x85662d;return this[_0x23f836(0x2ed)](!!(_0x5a709d!=null&&_0x5a709d[_0x23f836(0x4a8)]));}['onRemoteRetry'](_0xd4eee6){const _0x3e6c2f=_0x85662d;return this[_0x3e6c2f(0x34c)]>He?this[_0x3e6c2f(0x455)]():(this[_0x3e6c2f(0x26c)]=Ie(this[_0x3e6c2f(0x250)],{'timeout':this['_resendTimeout'],'reqId':_0xd4eee6[_0x3e6c2f(0x1ce)]}),this[_0x3e6c2f(0x1d9)]=this[_0x3e6c2f(0x26c)][_0x3e6c2f(0x46c)](({reqId:_0x5222f9,timeout:_0x3b9f76})=>{const _0x638a68=_0x3e6c2f;this[_0x638a68(0x464)](_0x5222f9,_0x3b9f76);}),this);}[_0x85662d(0x455)](){const _0x29f898=_0x85662d;return this[_0x29f898(0x4a3)](),this['_injector'][_0x29f898(0x2e8)](N,this['unitID'],this[_0x29f898(0x212)],this[_0x29f898(0x1fb)],[],this['_handler']);}[_0x85662d(0x44c)](){return this;}[_0x85662d(0x2ef)](){const _0x5271fd=_0x85662d;this[_0x5271fd(0x49f)][_0x5271fd(0x411)](this[_0x5271fd(0x1fb)]);}[_0x85662d(0x2ed)](_0x31309b){const _0x171438=_0x85662d;return this[_0x171438(0x4a3)](),this[_0x171438(0x3f3)][_0x171438(0x2e8)](M,this[_0x171438(0x357)],this['type'],this['_awaitingChangeset'],[],this[_0x171438(0x49f)],_0x31309b);}['_resendWithTimeout'](_0xdfb237,_0x1c4662){const _0x5b836d=_0x85662d;var _0x16bf59;_0xdfb237===((_0x16bf59=this[_0x5b836d(0x1fb)])==null?void 0x0:_0x16bf59[_0x5b836d(0x1ce)])&&(this[_0x5b836d(0x2ef)](),this[_0x5b836d(0x250)]=_0x1c4662===0x0?0x3e8:Math[_0x5b836d(0x319)](_0x1c4662*0x2,Ve),this[_0x5b836d(0x34c)]+=this[_0x5b836d(0x250)]);}['_clearScheduledTask'](){const _0x1f3ae5=_0x85662d;var _0x1aafb0;(_0x1aafb0=this[_0x1f3ae5(0x1d9)])==null||_0x1aafb0[_0x1f3ae5(0x269)](),this['_resendTimeout']=0x0,this[_0x1f3ae5(0x34c)]=0x0;}};A=Re=y([v(0x4,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x5,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x6,t[_0x85662d(0x448)]),v(0x7,t[_0x85662d(0x3a4)]),v(0x8,e[_0x85662d(0x301)]),v(0x9,t['IUndoRedoService']),v(0xa,(0x0,t[_0x85662d(0x32e)])(S))],A);let j=ze=class extends D{constructor(_0x1fefc8,_0xf49f71,_0x219a22,_0x3442c7,_0x37bdfa,_0x504780,_0x3419a8,_0x3a3275,_0x1fe20c,_0x101a35,_0x3f6ff5,_0x5b8b72,_0x31214f){const _0x3bd3f5=_0x85662d;super(_0x1fefc8,_0xf49f71,_0x219a22,_0x3442c7,_0x37bdfa,_0x1fe20c,_0x5b8b72,_0x3a3275,_0x31214f),this[_0x3bd3f5(0x3f3)]=_0x3419a8,this[_0x3bd3f5(0x29f)]=_0x101a35,this[_0x3bd3f5(0x30e)]=_0x3f6ff5,this[_0x3bd3f5(0x22b)]=_0x31214f,g(this,_0x3bd3f5(0x2ee),_0x3bd3f5(0x4be)),g(this,_0x3bd3f5(0x250),0x0),g(this,_0x3bd3f5(0x34c),0x0),g(this,_0x3bd3f5(0x26c),void 0x0),g(this,_0x3bd3f5(0x1d9),void 0x0),_0x504780&&(this[_0x3bd3f5(0x26c)]=_0x504780,this[_0x3bd3f5(0x1d9)]=this[_0x3bd3f5(0x26c)][_0x3bd3f5(0x46c)](({reqId:_0x3ecc62,timeout:_0x2dc785})=>{const _0xb8bff2=_0x3bd3f5;this[_0xb8bff2(0x464)](_0x3ecc62,_0x2dc785);}));}[_0x85662d(0x2bf)](_0x203c69){const _0x37edb5=_0x85662d;return this[_0x37edb5(0x4b3)][_0x37edb5(0x4e6)](_0x203c69),this;}[_0x85662d(0x27c)](_0x54138c){const _0x453294=_0x85662d;if(this[_0x453294(0x24a)](_0x54138c))return this['_clearScheduledTask'](),this[_0x453294(0x3f3)]['createInstance'](P,this[_0x453294(0x357)],this[_0x453294(0x212)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x54138c],this[_0x453294(0x49f)]);try{let _0x4c321b=this[_0x453294(0x30e)]['transformChangesets']([_0x54138c],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x453294(0x402)])(_0x4c321b)){let {c1Prime:_0x5e3433,c2Prime:_0x3da3e0}=_0x4c321b,_0x550a3e=this[_0x453294(0x30e)]['transformMutationsWithChangeset'](_0x5e3433[0x0],this[_0x453294(0x4b3)]);if((0x0,e[_0x453294(0x45b)])(_0x550a3e)){let {c1Prime:_0x4eefdf,m2Prime:_0x366c26}=_0x550a3e;return this[_0x453294(0x3a3)](_0x4eefdf),_0x3da3e0[0x0][_0x453294(0x341)]=this[_0x453294(0x491)](),this[_0x453294(0x4a3)](),this['_injector']['createInstance'](ze,this[_0x453294(0x357)],this[_0x453294(0x212)],_0x3da3e0[0x0],_0x366c26,this[_0x453294(0x49f)],void 0x0);}throw _0x550a3e[_0x453294(0x3cc)];}throw _0x4c321b[_0x453294(0x3cc)];}catch(_0x3c382e){return this[_0x453294(0x29f)][_0x453294(0x3cc)](_0x3c382e),this[_0x453294(0x2ed)](!0x1);}}[_0x85662d(0x347)](_0x405957){const _0x297626=_0x85662d;this[_0x297626(0x4a3)]();let _0x16197d=this['_getCurrentRevision']();if(_0x405957[_0x297626(0x46f)]<=_0x16197d)return this;if(this[_0x297626(0x24a)](_0x405957))return this[_0x297626(0x3f3)][_0x297626(0x2e8)](P,this['unitID'],this[_0x297626(0x212)],this[_0x297626(0x1fb)],this[_0x297626(0x4b3)],_0x405957['revision'],[],this[_0x297626(0x49f)]);this[_0x297626(0x26f)]();let _0x555a1b=this[_0x297626(0x3f3)][_0x297626(0x2e8)](k,this[_0x297626(0x357)],this[_0x297626(0x212)],this['_pendingMutations'],this[_0x297626(0x49f)]);return _0x555a1b[_0x297626(0x307)](),_0x555a1b[_0x297626(0x4f1)](),_0x555a1b;}['onRemoteRej'](_0x3b3d66){const _0x23fafb=_0x85662d;return this[_0x23fafb(0x2ed)](!!(_0x3b3d66!=null&&_0x3b3d66[_0x23fafb(0x4a8)]));}[_0x85662d(0x282)](_0x5dda80){const _0x45306f=_0x85662d;return this[_0x45306f(0x34c)]>He?this[_0x45306f(0x455)]():(this[_0x45306f(0x26c)]=Ie(this[_0x45306f(0x250)],{'timeout':this[_0x45306f(0x250)],'reqId':_0x5dda80[_0x45306f(0x1ce)]}),this['_sender']=this[_0x45306f(0x26c)]['subscribe'](({reqId:_0x28ae47,timeout:_0x23d20a})=>{this['_resendWithTimeout'](_0x28ae47,_0x23d20a);}),this);}[_0x85662d(0x455)](){const _0x1c0951=_0x85662d;return this['_clearScheduledTask'](),this[_0x1c0951(0x3f3)][_0x1c0951(0x2e8)](N,this[_0x1c0951(0x357)],this[_0x1c0951(0x212)],this[_0x1c0951(0x1fb)],this[_0x1c0951(0x4b3)],this[_0x1c0951(0x49f)]);}[_0x85662d(0x44c)](){return this;}['resend'](){const _0x45c1fb=_0x85662d;this[_0x45c1fb(0x49f)]['onSendChangeset'](this[_0x45c1fb(0x1fb)]);}[_0x85662d(0x2ed)](_0x3de8d0){const _0x1c574a=_0x85662d;return this['_clearScheduledTask'](),this[_0x1c574a(0x3f3)][_0x1c574a(0x2e8)](M,this[_0x1c574a(0x357)],this[_0x1c574a(0x212)],null,this[_0x1c574a(0x4b3)],this['_handler'],_0x3de8d0);}[_0x85662d(0x464)](_0x2d126c,_0x1c1272){const _0x53b388=_0x85662d;var _0x2ea59f;_0x2d126c===((_0x2ea59f=this['_awaitingChangeset'])==null?void 0x0:_0x2ea59f['reqId'])&&(this['resend'](),this[_0x53b388(0x250)]=_0x1c1272===0x0?0x3e8:Math[_0x53b388(0x319)](_0x1c1272*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0x53b388(0x250)]);}[_0x85662d(0x4a3)](){const _0x31ea6=_0x85662d;var _0x5bf2a1;(_0x5bf2a1=this[_0x31ea6(0x1d9)])==null||_0x5bf2a1[_0x31ea6(0x269)](),this[_0x31ea6(0x250)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};j=ze=y([v(0x6,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x7,(0x0,t[_0x85662d(0x340)])(e['RevisionService'])),v(0x8,t['ICommandService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,e[_0x85662d(0x301)]),v(0xb,t[_0x85662d(0x249)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(S))],j);let M=class extends D{constructor(_0x1874f6,_0x4575f7,_0x3ae217,_0xe93c79,_0x3fcac9,_0x31cc3b=!0x1,_0x4174c6,_0x55651c,_0x36a980,_0x2215b7,_0xef4348,_0x3259c8,_0x3ec51f){const _0xc65fa5=_0x85662d;super(_0x1874f6,_0x4575f7,_0x3ae217,_0xe93c79,_0x3fcac9,_0x55651c,_0x36a980,_0x2215b7,_0x3ec51f),this[_0xc65fa5(0x2d1)]=_0x31cc3b,this[_0xc65fa5(0x23c)]=_0x4174c6,this[_0xc65fa5(0x356)]=_0xef4348,this[_0xc65fa5(0x46e)]=_0x3259c8,this[_0xc65fa5(0x22b)]=_0x3ec51f,g(this,_0xc65fa5(0x2ee),'conflict'),this[_0xc65fa5(0x1cc)](),this['_clearLocalCache'](),this[_0xc65fa5(0x370)]();}['appendMutation'](){return this;}[_0x85662d(0x27c)](){return this;}['onRemoteAck'](){return this;}[_0x85662d(0x388)](){return this;}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){return this;}['toggleOnline'](){return this;}[_0x85662d(0x2ef)](){const _0x4f6297=_0x85662d;throw Error(_0x4f6297(0x2f7));}[_0x85662d(0x2d8)](){const _0x11e066=_0x85662d;var _0x1709e6,_0x26b989,_0x59e4ba;(_0x1709e6=this[_0x11e066(0x1f4)])==null||(_0x26b989=_0x1709e6[_0x11e066(0x4ee)])==null||(_0x26b989=_0x26b989['call'](_0x1709e6,this[_0x11e066(0x357)],_0x11e066(0x1d0)))==null||_0x26b989[_0x11e066(0x4a5)](()=>void 0x0),(_0x59e4ba=this[_0x11e066(0x1f4)])==null||_0x59e4ba[_0x11e066(0x437)](this[_0x11e066(0x357)],this[_0x11e066(0x212)],null,[]);}['_showConflictNotification'](){const _0x4e800c=_0x85662d;this['_isPermissionRej']?this[_0x4e800c(0x46e)][_0x4e800c(0x3ae)]({'id':_0x4e800c(0x2a7)}):this[_0x4e800c(0x46e)][_0x4e800c(0x3ae)]({'id':_0x4e800c(0x374)});}[_0x85662d(0x370)](){const _0x3ee06c=_0x85662d;this['_permissionService']['updatePermissionPoint'](new r[(_0x3ee06c(0x416))](this[_0x3ee06c(0x357)])['id'],!0x1);}};M=y([v(0x6,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x4f4)])),v(0x7,t[_0x85662d(0x448)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0xa,(0x0,t[_0x85662d(0x340)])(t['LocaleService'])),v(0xb,(0x0,t[_0x85662d(0x340)])(_)),v(0xc,(0x0,t[_0x85662d(0x32e)])(S))],M);let N=class extends D{constructor(_0xf2acc5,_0x6d5f02,_0x5c1511,_0x3a753c,_0x205007,_0x3b6f69,_0x3de831,_0x880355,_0xec1c7f,_0x342960){const _0x367289=_0x85662d;super(_0xf2acc5,_0x6d5f02,_0x5c1511,_0x3a753c,_0x205007,_0x880355,_0xec1c7f,_0x3de831,_0x342960),this['_injector']=_0x3b6f69,g(this,_0x367289(0x2ee),_0x367289(0x404));}[_0x85662d(0x2bf)](_0x19415c){const _0x1725e6=_0x85662d;return this[_0x1725e6(0x4b3)][_0x1725e6(0x4e6)](_0x19415c),this[_0x1725e6(0x4f1)](),this;}[_0x85662d(0x27c)](_0x44ec48){const _0xa028ae=_0x85662d;throw Error(_0xa028ae(0x3f0));}[_0x85662d(0x347)](){const _0x3e95ec=_0x85662d;throw Error(_0x3e95ec(0x3d1));}[_0x85662d(0x388)](){const _0xe53cec=_0x85662d;throw Error(_0xe53cec(0x4eb));}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){return this;}[_0x85662d(0x44c)](){let {_injector:_0x4de471,_pendingMutations:_0x1a801e,_awaitingChangeset:_0x21c6c6,unitID:_0x533519,_handler:_0x485c55,type:_0x577655}=this,_0x5e453d=Ue(_0x4de471,_0x533519,_0x577655,_0x21c6c6,_0x1a801e,_0x485c55);return _0x5e453d instanceof k?_0x5e453d['_schedule']():(_0x5e453d instanceof j||_0x5e453d instanceof A)&&_0x5e453d['resend'](),_0x5e453d;}[_0x85662d(0x2ef)](){const _0x528e1d=_0x85662d;throw Error(_0x528e1d(0x3ff));}};N=y([v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,t[_0x85662d(0x448)]),v(0x8,t[_0x85662d(0x249)]),v(0x9,(0x0,t[_0x85662d(0x32e)])(S))],N);let P=class extends D{constructor(_0x31c6de,_0x59a597,_0x1fc1b3,_0x253bd7,_0x353f2d,_0x55cbef,_0x4c0be4,_0x4a71f3,_0x16231b,_0x3b4177,_0x242323,_0x5d4ff6,_0x55f2de,_0x2b0066){const _0x541849=_0x85662d;super(_0x31c6de,_0x59a597,_0x1fc1b3,_0x253bd7,_0x4c0be4,_0x242323,_0x5d4ff6,_0x16231b,_0x2b0066),this[_0x541849(0x44f)]=_0x353f2d,this['_queuedRemoteChangesets']=_0x55cbef,this[_0x541849(0x3f3)]=_0x4a71f3,this[_0x541849(0x29f)]=_0x3b4177,this[_0x541849(0x30e)]=_0x55f2de,this[_0x541849(0x22b)]=_0x2b0066,g(this,'status',_0x541849(0x4e1));}[_0x85662d(0x1df)](_0x35035f){const _0x1e4c96=_0x85662d;try{if(this[_0x1e4c96(0x321)](_0x35035f)[_0x1e4c96(0x23e)])throw Error(_0x1e4c96(0x2b8));if(this[_0x1e4c96(0x321)]([...this[_0x1e4c96(0x1d1)]][_0x1e4c96(0x27e)]((_0x4ffee2,_0x529daf)=>_0x4ffee2[_0x1e4c96(0x46f)]-_0x529daf[_0x1e4c96(0x46f)]))[_0x1e4c96(0x23e)])return this[_0x1e4c96(0x1d1)]=[],this[_0x1e4c96(0x4f1)](),this['_handler']['onMissingChangesets']({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xed8984=this[_0x1e4c96(0x1fb)],_0x3f8b7a=this['_pendingMutations'],_0x4ce654;if(_0xed8984&&_0x3f8b7a[_0x1e4c96(0x45a)]!==0x0)_0x4ce654=this[_0x1e4c96(0x3f3)]['createInstance'](j,this[_0x1e4c96(0x357)],this[_0x1e4c96(0x212)],_0xed8984,_0x3f8b7a,this[_0x1e4c96(0x49f)],void 0x0);else{if(_0xed8984&&_0x3f8b7a[_0x1e4c96(0x45a)]===0x0)_0xed8984[_0x1e4c96(0x341)]=this[_0x1e4c96(0x491)](),_0x4ce654=this[_0x1e4c96(0x3f3)][_0x1e4c96(0x2e8)](A,this[_0x1e4c96(0x357)],this[_0x1e4c96(0x212)],_0xed8984,this[_0x1e4c96(0x49f)]);else{if(_0x3f8b7a[_0x1e4c96(0x45a)]!==0x0){let _0x2337f7=this['_injector'][_0x1e4c96(0x2e8)](k,this['unitID'],this['type'],_0x3f8b7a,this[_0x1e4c96(0x49f)]);_0x2337f7[_0x1e4c96(0x307)](),_0x4ce654=_0x2337f7;}else _0x4ce654=this[_0x1e4c96(0x3f3)][_0x1e4c96(0x2e8)](O,this['unitID'],this['type'],this['_handler']);}}return _0x4ce654[_0x1e4c96(0x4f1)](),_0x4ce654;}catch(_0x477167){return this['_logService']['error'](_0x1e4c96(0x3e9),_0x1e4c96(0x318),_0x477167),this[_0x1e4c96(0x3f3)][_0x1e4c96(0x2e8)](M,this[_0x1e4c96(0x357)],this[_0x1e4c96(0x212)],this[_0x1e4c96(0x1fb)],this[_0x1e4c96(0x4b3)],this[_0x1e4c96(0x49f)],!0x1);}}[_0x85662d(0x321)](_0x10b83c){const _0x4b7cbe=_0x85662d;this[_0x4b7cbe(0x2be)]();for(let _0x180730=0x0;_0x180730<_0x10b83c['length'];_0x180730++){let _0x97fb14=_0x10b83c[_0x180730],_0x55b4e8=this[_0x4b7cbe(0x491)]();if(!(_0x97fb14[_0x4b7cbe(0x46f)]<=_0x55b4e8)){if(_0x97fb14['revision']>_0x55b4e8+0x1)return{'missingChangesets':!0x0};if(this[_0x4b7cbe(0x4e8)](_0x97fb14)){this['_acknowledgeAwaiting']();continue;}this[_0x4b7cbe(0x3bf)](_0x97fb14),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x1211ac){const _0x34194d=_0x85662d;let _0x4d1bc9=_0x1211ac,_0x2f3f0a=this[_0x34194d(0x1fb)];if(_0x2f3f0a){let _0x244fa2=this['_transformService']['transformChangesets']([_0x1211ac],[_0x2f3f0a],!0x1);if(!(0x0,e[_0x34194d(0x402)])(_0x244fa2))throw _0x244fa2[_0x34194d(0x3cc)];_0x4d1bc9=_0x244fa2[_0x34194d(0x237)][0x0],_0x2f3f0a=_0x244fa2[_0x34194d(0x24c)][0x0];}let _0x18bf99=this[_0x34194d(0x4b3)];if(_0x18bf99[_0x34194d(0x45a)]){let _0x34ee54=this['_transformService'][_0x34194d(0x3cf)](_0x4d1bc9,_0x18bf99);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x34ee54))throw _0x34ee54[_0x34194d(0x3cc)];_0x4d1bc9=_0x34ee54[_0x34194d(0x237)],_0x18bf99=_0x34ee54[_0x34194d(0x2f8)];}this[_0x34194d(0x3a3)](_0x4d1bc9),_0x2f3f0a&&(_0x2f3f0a[_0x34194d(0x341)]=this[_0x34194d(0x491)]()),this[_0x34194d(0x1fb)]=_0x2f3f0a,this['_pendingMutations']=_0x18bf99;}[_0x85662d(0x2be)](){const _0x27231b=_0x85662d;if(!this['_awaitingChangeset']||this[_0x27231b(0x44f)]==null)return;let _0x4797d1=this[_0x27231b(0x491)]();if(this[_0x27231b(0x44f)]<=_0x4797d1)throw Error(_0x27231b(0x2d4)+this[_0x27231b(0x44f)]+'.');this[_0x27231b(0x44f)]===_0x4797d1+0x1&&this[_0x27231b(0x3dd)]();}['_acknowledgeAwaiting'](){const _0x23b911=_0x85662d;this['_incrementRevisionNumber'](),this[_0x23b911(0x1fb)]=null,this[_0x23b911(0x44f)]=null;}[_0x85662d(0x4e8)](_0x14783f){const _0x53a5f7=_0x85662d;let _0x1b2f76=this['_awaitingChangeset'];return!_0x1b2f76||!_0x1b2f76[_0x53a5f7(0x3a0)]||_0x1b2f76[_0x53a5f7(0x1ce)]===null||_0x1b2f76[_0x53a5f7(0x1ce)]===void 0x0?!0x1:_0x14783f[_0x53a5f7(0x357)]===_0x1b2f76[_0x53a5f7(0x357)]&&_0x14783f[_0x53a5f7(0x3a0)]===_0x1b2f76['sid']&&_0x14783f['reqId']===_0x1b2f76['reqId'];}[_0x85662d(0x2ef)](){const _0x3ede61=_0x85662d;throw Error(_0x3ede61(0x436));}['appendMutation'](_0x47006e){const _0x2bd76a=_0x85662d;return this['_pendingMutations'][_0x2bd76a(0x4e6)](_0x47006e),this;}[_0x85662d(0x27c)](_0x24c8c4){const _0xc61f8b=_0x85662d;return this[_0xc61f8b(0x1d1)][_0xc61f8b(0x4e6)](_0x24c8c4),this;}[_0x85662d(0x347)](_0x56543a){const _0x51943f=_0x85662d;if(this[_0x51943f(0x1fb)]){let _0x5d3ac7=this[_0x51943f(0x491)]();return _0x56543a['revision']<=_0x5d3ac7||(_0x5d3ac7+0x1===_0x56543a[_0x51943f(0x46f)]?(this[_0x51943f(0x26f)](),this[_0x51943f(0x1fb)]=null,this[_0x51943f(0x44f)]=null):this[_0x51943f(0x44f)]=_0x56543a[_0x51943f(0x46f)]),this;}if(_0x56543a['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x51943f(0x2bb));}[_0x85662d(0x388)](_0x5ad611){const _0x59ba8e=_0x85662d;return this[_0x59ba8e(0x2ed)](!!(_0x5ad611!=null&&_0x5ad611['isPermissionRej']));}[_0x85662d(0x282)](){return this;}['toggleOffline'](){const _0x8144d5=_0x85662d;return this[_0x8144d5(0x3f3)][_0x8144d5(0x2e8)](N,this[_0x8144d5(0x357)],this['type'],this[_0x8144d5(0x1fb)],this[_0x8144d5(0x4b3)],this[_0x8144d5(0x49f)]);}[_0x85662d(0x44c)](){return this;}['_onConflict'](_0x33aa67){const _0x5db760=_0x85662d;return this[_0x5db760(0x3f3)]['createInstance'](M,this[_0x5db760(0x357)],this[_0x5db760(0x212)],this[_0x5db760(0x1fb)],this[_0x5db760(0x4b3)],this['_handler'],_0x33aa67);}};P=y([v(0x7,(0x0,t['Inject'])(t['Injector'])),v(0x8,(0x0,t[_0x85662d(0x340)])(e['RevisionService'])),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t['ICommandService']),v(0xb,t[_0x85662d(0x249)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t['Optional'])(S))],P);function Ue(_0x594975,_0x40d9f3,_0x1ddfe9,_0x40be76,_0x3387b1,_0x1af369){const _0x3efcea=_0x85662d;return _0x40be76&&_0x3387b1[_0x3efcea(0x45a)]?_0x594975[_0x3efcea(0x2e8)](j,_0x40d9f3,_0x1ddfe9,_0x40be76,_0x3387b1,_0x1af369,void 0x0):_0x40be76?_0x594975[_0x3efcea(0x2e8)](A,_0x40d9f3,_0x1ddfe9,_0x40be76,_0x1af369):_0x3387b1['length']?_0x594975[_0x3efcea(0x2e8)](k,_0x40d9f3,_0x1ddfe9,_0x3387b1,_0x1af369):_0x594975[_0x3efcea(0x2e8)](O,_0x40d9f3,_0x1ddfe9,_0x1af369);}let F=class extends t['RxDisposable']{get[_0x85662d(0x234)](){return this['_state'];}constructor(_0x3203eb,_0x285f6d,_0x483616,_0x4e1fc7,_0x2880c3,_0x14a7dd,_0x27e8c3,_0x54bb26,_0x4a8011,_0x420587,_0x2359b1,_0xa6bd0f,_0x343f3e,_0x1c4f1b){const _0x1ea154=_0x85662d;super(),this[_0x1ea154(0x357)]=_0x3203eb,this[_0x1ea154(0x1cf)]=_0x285f6d,this[_0x1ea154(0x4e3)]=_0x483616,this['_injector']=_0x4e1fc7,this['_compressMutationService']=_0x2880c3,this[_0x1ea154(0x356)]=_0x14a7dd,this[_0x1ea154(0x352)]=_0x27e8c3,this[_0x1ea154(0x311)]=_0x54bb26,this[_0x1ea154(0x22a)]=_0x4a8011,this['_logService']=_0x420587,this[_0x1ea154(0x3d5)]=_0x2359b1,this[_0x1ea154(0x23c)]=_0xa6bd0f,this[_0x1ea154(0x429)]=_0x343f3e,this[_0x1ea154(0x1f4)]=_0x1c4f1b,g(this,'_state$',new i[(_0x1ea154(0x475))](null)),g(this,_0x1ea154(0x3eb),this[_0x1ea154(0x243)]['asObservable']()),g(this,_0x1ea154(0x2e2),void 0x0),g(this,_0x1ea154(0x33b),!0x1),g(this,_0x1ea154(0x2b0),''),g(this,_0x1ea154(0x478),0x0),g(this,'status$',this[_0x1ea154(0x3eb)][_0x1ea154(0x4bd)]((0x0,i['map'])(_0x169a73=>_0x169a73?_0x169a73[_0x1ea154(0x2ee)]:_0x1ea154(0x404)),(0x0,i[_0x1ea154(0x226)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x1ea154(0x496),!0x1),g(this,_0x1ea154(0x21c),[]);}async[_0x85662d(0x30d)](){const _0x14ccf0=_0x85662d;if(this[_0x14ccf0(0x234)])throw Error(_0x14ccf0(0x3bc));await this[_0x14ccf0(0x38c)]();}[_0x85662d(0x228)](){const _0x30a88e=_0x85662d;return this[_0x30a88e(0x33b)]=!0x0,(0x0,t[_0x30a88e(0x3d6)])(()=>{const _0x41b8b3=_0x30a88e;this[_0x41b8b3(0x33b)]=!0x1,this[_0x41b8b3(0x31b)]();});}['onLocalMutation'](_0x5804b8){const _0x5028e4=_0x85662d;this[_0x5028e4(0x45f)](_0x5804b8);}['_updateState'](_0x1d6637){const _0x59068a=_0x85662d;this[_0x59068a(0x2e2)]=_0x1d6637,this['_state$'][_0x59068a(0x49a)](_0x1d6637);}async[_0x85662d(0x38c)](){const _0x410be0=_0x85662d;if(this[_0x410be0(0x382)](await this[_0x410be0(0x4dd)]()),this[_0x410be0(0x429)]){var _0x46982b;(_0x46982b=this[_0x410be0(0x429)])==null||_0x46982b['editingUnit'](this[_0x410be0(0x357)]),this[_0x410be0(0x221)](this[_0x410be0(0x429)]['getUnitStatus$'](this[_0x410be0(0x357)])[_0x410be0(0x46c)](_0x4dcf52=>{const _0x2e0238=_0x410be0;this[_0x2e0238(0x29f)][_0x2e0238(0x3a9)](_0x2e0238(0x42e),_0x2e0238(0x2c6),_0x4dcf52),_0x4dcf52===0x1?(this[_0x2e0238(0x311)][_0x2e0238(0x3ae)]({'id':_0x2e0238(0x4c4)}),this[_0x2e0238(0x23c)][_0x2e0238(0x27a)](new r[(_0x2e0238(0x416))](this['unitID'])['id'],!0x1),this[_0x2e0238(0x23c)][_0x2e0238(0x3c1)](!0x1)):(this[_0x2e0238(0x23c)][_0x2e0238(0x27a)](new r[(_0x2e0238(0x416))](this[_0x2e0238(0x357)])['id'],!0x0),this[_0x2e0238(0x23c)][_0x2e0238(0x3c1)](!0x0));}));}let _0x5856e9=!0x1;return this['disposeWithMe'](this[_0x410be0(0x1cf)][_0x410be0(0x332)][_0x410be0(0x46c)](_0x3d8e82=>{const _0x50bb3f=_0x410be0;_0x3d8e82===0x3?this[_0x50bb3f(0x4ba)](_0x5856e9):_0x3d8e82===0x2&&(_0x5856e9=!0x0,this[_0x50bb3f(0x25a)]());})),this[_0x410be0(0x221)](this[_0x410be0(0x1cf)]['event$'][_0x410be0(0x46c)](_0xa1e891=>{const _0xa9ec1a=_0x410be0;try{switch(_0xa1e891[_0xa9ec1a(0x336)]){case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x2ae)]:this[_0xa9ec1a(0x32d)]((0x0,e[_0xa9ec1a(0x486)])(_0xa1e891[_0xa9ec1a(0x28a)]));break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x410)]:this[_0xa9ec1a(0x230)](_0xa1e891[_0xa9ec1a(0x28a)]);break;case e['CollaborationEvent'][_0xa9ec1a(0x4ef)]:this[_0xa9ec1a(0x23d)]();break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x2c9)]:this[_0xa9ec1a(0x2b2)](_0xa1e891[_0xa9ec1a(0x28a)]);break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x4b1)]:this['_onFetchMissResult'](_0xa1e891['data'][_0xa9ec1a(0x251)][_0xa9ec1a(0x3fc)](_0x2d509d=>(0x0,e['parseProtocolChangeset'])(_0x2d509d)));break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x48a)]:this[_0xa9ec1a(0x23d)]({'isPermissionRej':!0x0});break;case e[_0xa9ec1a(0x3fb)]['UNISCRIPT_RUN']:break;}}catch(_0x247068){throw console[_0xa9ec1a(0x3cc)](_0xa9ec1a(0x48e),_0x247068),_0x247068;}})),this[_0x410be0(0x2e2)];}[_0x85662d(0x424)](){const _0x148400=_0x85662d;this[_0x148400(0x496)]=!0x1;}['_lockTransition'](){const _0x301d45=_0x85662d;if(this['_transitionLocked'])throw Error(_0x301d45(0x317));this[_0x301d45(0x496)]=!0x0;}[_0x85662d(0x45f)](_0x55b940){const _0x4f2dce=_0x85662d;this['_lockTransition'](),this[_0x4f2dce(0x382)](this[_0x4f2dce(0x2e2)]['appendMutation'](_0x55b940)),this['_unlockTransition']();}[_0x85662d(0x32d)](_0x262d9a){const _0x10c84e=_0x85662d;if(!(_0x262d9a[_0x10c84e(0x46f)]<=this[_0x10c84e(0x352)][_0x10c84e(0x337)](this[_0x10c84e(0x357)]))){if(this[_0x10c84e(0x33b)]){this['_remoteChangesetQueue'][_0x10c84e(0x4e6)](_0x262d9a);return;}this[_0x10c84e(0x37e)](_0x262d9a);}}['_exhaustRemoteChangesetQueue'](){const _0x50f2ae=_0x85662d;this['_remoteChangesetQueue'][_0x50f2ae(0x30f)](_0x3a711b=>this['_applyRemoteChangeset'](_0x3a711b)),this[_0x50f2ae(0x21c)]=[];}[_0x85662d(0x37e)](_0x4ef358){const _0x42fa09=_0x85662d;let _0x19bce5=this[_0x42fa09(0x2c2)][_0x42fa09(0x313)][_0x42fa09(0x1f5)](this['_compressMutationService']['interceptor'][_0x42fa09(0x474)]()['COMPRESS_MUTATION_APPLY'])(_0x4ef358[_0x42fa09(0x406)],null)||_0x4ef358[_0x42fa09(0x406)],_0x3a21ce={..._0x4ef358,'mutations':_0x19bce5};this[_0x42fa09(0x2fa)](),this[_0x42fa09(0x382)](this['_state'][_0x42fa09(0x27c)](_0x3a21ce)),this['_unlockTransition']();}[_0x85662d(0x230)](_0x4d9755){const _0x33c434=_0x85662d;this[_0x33c434(0x2fa)](),this[_0x33c434(0x382)](this[_0x33c434(0x2e2)]['onRemoteAck'](_0x4d9755)),this[_0x33c434(0x424)]();}[_0x85662d(0x23d)](_0x1b037a){const _0x241b92=_0x85662d;this['_lockTransition'](),this['_updateState'](this[_0x241b92(0x2e2)][_0x241b92(0x388)](_0x1b037a)),this[_0x241b92(0x424)]();}[_0x85662d(0x2b2)](_0x25faec){const _0x1da11a=_0x85662d;this[_0x1da11a(0x2fa)](),this[_0x1da11a(0x382)](this[_0x1da11a(0x2e2)][_0x1da11a(0x282)](_0x25faec)),this[_0x1da11a(0x424)]();}[_0x85662d(0x473)](_0x2a88c9){const _0x289ca5=_0x85662d;if(!(this['_state']instanceof P))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x23cd29=_0x2a88c9['map'](_0x58218f=>{const _0xf63e92=_0x342d;let _0x1318a9=this[_0xf63e92(0x2c2)][_0xf63e92(0x313)][_0xf63e92(0x1f5)](this[_0xf63e92(0x2c2)][_0xf63e92(0x313)][_0xf63e92(0x474)]()[_0xf63e92(0x351)])(_0x58218f[_0xf63e92(0x406)],null)||_0x58218f[_0xf63e92(0x406)];return{..._0x58218f,'mutations':_0x1318a9};});this[_0x289ca5(0x2fa)](),this[_0x289ca5(0x382)](this[_0x289ca5(0x2e2)]['onMissedChangesetFetched'](_0x23cd29)),this[_0x289ca5(0x424)]();}[_0x85662d(0x25a)](){const _0x1bf2b8=_0x85662d;this[_0x1bf2b8(0x2fa)](),this[_0x1bf2b8(0x382)](this[_0x1bf2b8(0x2e2)]['toggleOffline']()),this[_0x1bf2b8(0x424)]();}[_0x85662d(0x4ba)](_0x41696c=!0x1){const _0x48e54e=_0x85662d;this[_0x48e54e(0x2fa)](),this[_0x48e54e(0x382)](this[_0x48e54e(0x2e2)][_0x48e54e(0x44c)]()),this[_0x48e54e(0x424)]();let _0x544837=this[_0x48e54e(0x2e2)];_0x41696c&&_0x544837 instanceof O&&(this[_0x48e54e(0x2fa)](),this[_0x48e54e(0x382)](_0x544837[_0x48e54e(0x359)]()),this['_unlockTransition']());}async[_0x85662d(0x4dd)](){return new Promise(_0xea8d2c=>{const _0x5ac276=_0x342d;this[_0x5ac276(0x1cf)][_0x5ac276(0x332)][_0x5ac276(0x4bd)]((0x0,i[_0x5ac276(0x3e5)])(0x1))['subscribe'](async _0x4a4758=>{const _0x4c2320=_0x5ac276;_0xea8d2c(await this[_0x4c2320(0x1e4)](_0x4a4758===0x3));});});}[_0x85662d(0x2a4)](){const _0x34bd20=_0x85662d;let _0x441eca=this[_0x34bd20(0x357)];return{'onStateChange':(_0x17eb35,_0x370427)=>{const _0x2e5848=_0x34bd20;if(_0x17eb35!==this['_state'])throw Error(_0x2e5848(0x2d0)+_0x17eb35['status']+_0x2e5848(0x23f)+_0x370427[_0x2e5848(0x2ee)]+'\x0aCurrent:\x20'+this[_0x2e5848(0x2e2)]['status']);this[_0x2e5848(0x382)](_0x370427);},'onSendChangeset':_0x3a5511=>{const _0x5f0507=_0x34bd20;_0x3a5511[_0x5f0507(0x3a0)]||(_0x3a5511[_0x5f0507(0x3a0)]=this[_0x5f0507(0x2b0)],_0x3a5511[_0x5f0507(0x1ce)]=++this['_changesetReqId']);let _0x27db60={'eventID':e[_0x5f0507(0x3fb)][_0x5f0507(0x4c6)],'data':{'unitID':_0x3a5511['unitID'],'unitType':this[_0x5f0507(0x4e3)],'changeset':_0x3a5511,'memberID':this['session']['getMemberID']()}};this[_0x5f0507(0x1cf)][_0x5f0507(0x48b)](_0x27db60,this[_0x5f0507(0x357)]);},'onMissingChangesets':({from:_0x425153,to:_0x52504b})=>{const _0x1bb8bb=_0x34bd20;this[_0x1bb8bb(0x29f)][_0x1bb8bb(0x3a9)](_0x1bb8bb(0x42e),_0x1bb8bb(0x3b7)+_0x425153+_0x1bb8bb(0x43a)+_0x52504b);let _0x285e63={'eventID':e[_0x1bb8bb(0x3fb)][_0x1bb8bb(0x415)],'data':{'unitID':_0x441eca,'unitType':this[_0x1bb8bb(0x4e3)],'from':_0x425153,'to':_0x52504b}};this[_0x1bb8bb(0x1cf)][_0x1bb8bb(0x48b)](_0x285e63,this[_0x1bb8bb(0x357)]);}};}async[_0x85662d(0x1e4)](_0x25b1eb){const _0xa4f607=_0x85662d;var _0x3aa7ad,_0x4c3892,_0x2c3571;let _0x15da24=await((_0x3aa7ad=this[_0xa4f607(0x1f4)])==null?void 0x0:_0x3aa7ad[_0xa4f607(0x264)](this[_0xa4f607(0x357)])),_0x4c27b0=(_0x4c3892=_0x15da24==null?void 0x0:_0x15da24[_0xa4f607(0x406)])==null?[]:_0x4c3892,_0x124f62=(_0x2c3571=_0x15da24==null?void 0x0:_0x15da24[_0xa4f607(0x4b9)])==null?null:_0x2c3571,_0x528572=!!(_0x124f62!=null&&_0x124f62[_0xa4f607(0x3a0)])&&!!(_0x124f62!=null&&_0x124f62[_0xa4f607(0x1ce)]);this[_0xa4f607(0x2b0)]=_0x528572?_0x124f62[_0xa4f607(0x3a0)]:(0x0,e[_0xa4f607(0x1d5)])(),this['_changesetReqId']=_0x528572?_0x124f62[_0xa4f607(0x1ce)]:0x0;let _0xfce9c=this['unitID'];try{this['_replayCachedMutations'](_0x124f62,_0x4c27b0);}catch(_0x5707ef){this[_0xa4f607(0x29f)][_0xa4f607(0x3cc)](_0x5707ef);}let _0x2f64f1=this['_createHandler']();if(_0x25b1eb){let _0x1fe9e7=Ue(this['_injector'],_0xfce9c,this['_type'],_0x124f62,_0x4c27b0,_0x2f64f1);return _0x1fe9e7 instanceof k?_0x1fe9e7[_0xa4f607(0x307)]():(_0x1fe9e7 instanceof j||_0x1fe9e7 instanceof A)&&_0x1fe9e7[_0xa4f607(0x2ef)](),_0x1fe9e7;}return this[_0xa4f607(0x3f3)][_0xa4f607(0x2e8)](N,_0xfce9c,this['_type'],_0x124f62,_0x4c27b0,_0x2f64f1);}[_0x85662d(0x3f2)](_0x113d82,_0x18ee28){const _0x16e0d2=_0x85662d;var _0x20e27b,_0x27566f;let _0xb5d7cf=this[_0x16e0d2(0x2c2)][_0x16e0d2(0x313)][_0x16e0d2(0x1f5)](this['_compressMutationService'][_0x16e0d2(0x313)]['getInterceptPoints']()[_0x16e0d2(0x351)]);(_0x20e27b=_0xb5d7cf((_0x113d82==null?void 0x0:_0x113d82[_0x16e0d2(0x406)])||[],null))==null||_0x20e27b[_0x16e0d2(0x30f)](_0xbf9634=>this[_0x16e0d2(0x3d5)]['executeCommand'](_0xbf9634['id'],_0xbf9634['params'])),(_0x27566f=_0xb5d7cf(_0x18ee28||[],null))==null||_0x27566f['forEach'](_0x3bd521=>this[_0x16e0d2(0x3d5)]['executeCommand'](_0x3bd521['id'],_0x3bd521[_0x16e0d2(0x3c0)]));}};F=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t['ICommandService']),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],F);let I=class extends F{constructor(_0x2f831b,_0x28db75,_0x18fe7e,_0x2e57ca,_0x137184,_0x1bf174,_0x1afaf4,_0x43427e,_0x1d091b,_0x4bde49,_0x3d7c52,_0x36e97b,_0x4be2b9,_0xc8267a,_0x10f527){const _0x1f3141=_0x85662d;super(_0x2f831b,_0x18fe7e,_0x28db75,_0x2e57ca,_0x137184,_0x1bf174,_0x1afaf4,_0x43427e,_0x1d091b,_0x4bde49,_0x3d7c52,_0x36e97b,_0xc8267a,_0x10f527),this['unitID']=_0x2f831b,this['type']=_0x28db75,this[_0x1f3141(0x2e6)]=_0x4be2b9,g(this,_0x1f3141(0x257),null);}[_0x85662d(0x48d)](_0x7c8cb9){const _0x212956=_0x85662d;this[_0x212956(0x257)]=_0x7c8cb9;}[_0x85662d(0x469)](){const _0x13207c=_0x85662d;this[_0x13207c(0x257)]=null,super['dispose']();}[_0x85662d(0x2a4)](){const _0x1887c4=_0x85662d;let _0x33e700=super[_0x1887c4(0x2a4)]();return _0x33e700[_0x1887c4(0x4f2)]=_0x2c1444=>{const _0x466153=_0x1887c4;var _0x30556d,_0x5068a5;return(_0x30556d=this[_0x466153(0x257)])==null||(_0x5068a5=_0x30556d[_0x466153(0x4f2)])==null?void 0x0:_0x5068a5[_0x466153(0x380)](_0x30556d,_0x2c1444);},_0x33e700['onTransformState']=_0x25674d=>{const _0xbbc431=_0x1887c4;var _0x47c5af,_0x48535d;return(_0x47c5af=this[_0xbbc431(0x257)])==null||(_0x48535d=_0x47c5af['onTransformState'])==null?void 0x0:_0x48535d[_0xbbc431(0x380)](_0x47c5af,_0x25674d);},_0x33e700[_0x1887c4(0x3da)]=_0x53ef1c=>{const _0x1a4bcf=_0x1887c4;var _0x5b98d9,_0x5dda8a;return(_0x5b98d9=this[_0x1a4bcf(0x257)])==null||(_0x5dda8a=_0x5b98d9[_0x1a4bcf(0x3da)])==null?void 0x0:_0x5dda8a[_0x1a4bcf(0x380)](_0x5b98d9,_0x53ef1c);},_0x33e700[_0x1887c4(0x4a7)]=_0x4b943d=>{const _0x546254=_0x1887c4;var _0x338553,_0x1c48fe;return(_0x338553=this[_0x546254(0x257)])==null||(_0x1c48fe=_0x338553['onSyncEditingCollabCursor'])==null?void 0x0:_0x1c48fe[_0x546254(0x380)](_0x338553,_0x4b943d);},_0x33e700[_0x1887c4(0x3de)]=_0x63cbf7=>{const _0x10fac2=_0x1887c4;var _0x3c080e,_0x16acc0,_0x45125b;return(_0x3c080e=(_0x16acc0=this[_0x10fac2(0x257)])==null||(_0x45125b=_0x16acc0[_0x10fac2(0x3de)])==null?void 0x0:_0x45125b[_0x10fac2(0x380)](_0x16acc0,_0x63cbf7))==null?_0x63cbf7:_0x3c080e;},_0x33e700[_0x1887c4(0x24b)]=_0x57807c=>{const _0x5b1dfc=_0x1887c4;var _0x44fb89,_0x495b44,_0x2b7ad4;return(_0x44fb89=(_0x495b44=this[_0x5b1dfc(0x257)])==null||(_0x2b7ad4=_0x495b44[_0x5b1dfc(0x24b)])==null?void 0x0:_0x2b7ad4['call'](_0x495b44,_0x57807c))==null?_0x57807c:_0x44fb89;},_0x33e700;}async['_init'](){const _0x3dc897=_0x85662d;let _0xd65abe=await super[_0x3dc897(0x38c)]();return this[_0x3dc897(0x221)](this[_0x3dc897(0x2e6)][_0x3dc897(0x20d)][_0x3dc897(0x46c)](_0x2128d2=>{const _0xc4a4b3=_0x3dc897;if(_0x2128d2==null||_0x2128d2['unitId']!==this[_0xc4a4b3(0x357)])return;let {commandId:_0x3b5593,redoState:_0x2740b7,unitId:_0x160110}=_0x2128d2,_0x1b0dd3={'id':_0x3b5593,'type':t[_0xc4a4b3(0x30a)][_0xc4a4b3(0x242)],'params':{'unitId':_0x160110,'actions':_0x2740b7[_0xc4a4b3(0x470)],'textRanges':null}};this[_0xc4a4b3(0x45f)](_0x1b0dd3);})),this['disposeWithMe'](this[_0x3dc897(0x3d5)]['onMutationExecutedForCollab']((_0x39903a,_0x1d2911)=>{const _0x2378b4=_0x3dc897;if(_0x39903a[_0x2378b4(0x212)]!==t[_0x2378b4(0x30a)][_0x2378b4(0x242)]||_0x1d2911!=null&&_0x1d2911[_0x2378b4(0x441)]||_0x1d2911!=null&&_0x1d2911[_0x2378b4(0x1fe)]||_0x39903a['id']===n['RichTextEditingMutation']['id'])return;let _0x1bd386=_0x39903a[_0x2378b4(0x3c0)];if((_0x1bd386==null?void 0x0:_0x1bd386[_0x2378b4(0x420)])!==this['unitID'])return;let _0x24afcf=_0x39903a,_0x1951ba=this[_0x2378b4(0x2c2)][_0x2378b4(0x313)]['fetchThroughInterceptors'](this[_0x2378b4(0x2c2)][_0x2378b4(0x313)]['getInterceptPoints']()[_0x2378b4(0x43b)])([_0x24afcf],this[_0x2378b4(0x22a)])||[_0x24afcf];this[_0x2378b4(0x45f)](_0x1951ba[0x0]);})),_0xd65abe;}};I=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t['Inject'])(t[_0x85662d(0x285)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e['RevisionService'])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t['ICommandService']),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x340)])(n[_0x85662d(0x354)])),v(0xd,(0x0,t[_0x85662d(0x32e)])(w)),v(0xe,(0x0,t[_0x85662d(0x32e)])(S))],I);let L=class extends F{constructor(_0x39b4de,_0x4e59b,_0x80140f,_0x3a1a7c,_0x409168,_0x309193,_0x4beb47,_0x82aac3,_0x3c8eab,_0x3a33c8,_0x3cf8a6,_0x187837,_0x11ec8a,_0x212ab5){const _0x3fc9f4=_0x85662d;super(_0x39b4de,_0x80140f,_0x4e59b,_0x3a1a7c,_0x409168,_0x309193,_0x4beb47,_0x82aac3,_0x3c8eab,_0x3a33c8,_0x3cf8a6,_0x187837,_0x11ec8a,_0x212ab5),this['unitID']=_0x39b4de,this[_0x3fc9f4(0x212)]=_0x4e59b;}async[_0x85662d(0x38c)](){const _0xe51cf7=_0x85662d;let _0x38b765=await super[_0xe51cf7(0x38c)]();return this['disposeWithMe'](this[_0xe51cf7(0x3d5)][_0xe51cf7(0x3b2)]((_0x1e04e0,_0x442959)=>{const _0x19e8f6=_0xe51cf7;if(_0x1e04e0[_0x19e8f6(0x212)]!==t[_0x19e8f6(0x30a)][_0x19e8f6(0x242)]||_0x442959!=null&&_0x442959['fromCollab']||_0x442959!=null&&_0x442959[_0x19e8f6(0x1fe)])return;let _0xebf4c5=_0x1e04e0['params'];if((_0xebf4c5==null?void 0x0:_0xebf4c5['unitId'])!==this[_0x19e8f6(0x357)])return;let _0x2adff2=_0x1e04e0,_0x407574=this['_compressMutationService'][_0x19e8f6(0x313)][_0x19e8f6(0x1f5)](this[_0x19e8f6(0x2c2)][_0x19e8f6(0x313)]['getInterceptPoints']()[_0x19e8f6(0x43b)])([_0x2adff2],this[_0x19e8f6(0x22a)])||[_0x2adff2];this[_0x19e8f6(0x45f)](_0x407574[0x0]);})),_0x38b765;}};L=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)])),v(0x6,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t[_0x85662d(0x448)]),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],L);let R=class extends F{constructor(_0x201036,_0x5e6df,_0x543b5c,_0x2a63a4,_0x258151,_0x340b48,_0x42a299,_0x2b98b6,_0xc1044,_0x295b00,_0x45d8b7,_0x7f7880,_0x3403aa,_0x1bc354,_0x79a51b){const _0x2b70a9=_0x85662d;super(_0x201036,_0x543b5c,_0x5e6df,_0x2a63a4,_0x258151,_0x340b48,_0x42a299,_0xc1044,_0x295b00,_0x45d8b7,_0x7f7880,_0x3403aa,_0x1bc354,_0x79a51b),this[_0x2b70a9(0x357)]=_0x201036,this['type']=_0x5e6df,this['_sheetTransformSelectionsService']=_0x2b98b6;}[_0x85662d(0x2a4)](){const _0x25fa9d=_0x85662d;let _0x2a46c7=super[_0x25fa9d(0x2a4)]();return _0x2a46c7[_0x25fa9d(0x3da)]=_0x144d1d=>this[_0x25fa9d(0x25f)][_0x25fa9d(0x45e)](_0x144d1d),_0x2a46c7;}async[_0x85662d(0x38c)](){const _0xe82cd5=_0x85662d;let _0x22a1a4=await super[_0xe82cd5(0x38c)]();return this['disposeWithMe'](this[_0xe82cd5(0x3d5)][_0xe82cd5(0x3b2)]((_0x5df824,_0xcdbec7)=>{const _0x3a22b7=_0xe82cd5;if(_0x5df824['type']!==t[_0x3a22b7(0x30a)][_0x3a22b7(0x242)]||_0xcdbec7!=null&&_0xcdbec7['fromCollab']||_0xcdbec7!=null&&_0xcdbec7[_0x3a22b7(0x1fe)])return;let _0x322a3d=_0x5df824[_0x3a22b7(0x3c0)];if((_0x322a3d==null?void 0x0:_0x322a3d[_0x3a22b7(0x420)])!==this[_0x3a22b7(0x357)])return;let _0x2e1f26=_0x5df824,_0x1baff6=this[_0x3a22b7(0x2c2)][_0x3a22b7(0x313)]['fetchThroughInterceptors'](this[_0x3a22b7(0x2c2)][_0x3a22b7(0x313)][_0x3a22b7(0x474)]()[_0x3a22b7(0x43b)])([_0x2e1f26],this['_univerInstanceService'])||[_0x2e1f26];this[_0x3a22b7(0x45f)](_0x1baff6[0x0]);})),_0x22a1a4;}};R=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t['Injector'])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t[_0x85662d(0x340)])(t['LocaleService'])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(C)),v(0x8,(0x0,t['Inject'])(_)),v(0x9,t[_0x85662d(0x33e)]),v(0xa,t[_0x85662d(0x3a4)]),v(0xb,t[_0x85662d(0x448)]),v(0xc,t[_0x85662d(0x4f4)]),v(0xd,(0x0,t[_0x85662d(0x32e)])(w)),v(0xe,(0x0,t['Optional'])(S))],R);let z=class extends F{constructor(_0x10cb60,_0x2cc04a,_0x26a626,_0x3a526d,_0x4829d8,_0x487fa6,_0x2334da,_0x293e7e,_0x28c414,_0x52a39a,_0x680143,_0x5d3585,_0xd4c9a3,_0xf3398a){const _0x2d0686=_0x85662d;super(_0x10cb60,_0x26a626,_0x2cc04a,_0x3a526d,_0x4829d8,_0x487fa6,_0x2334da,_0x293e7e,_0x28c414,_0x52a39a,_0x680143,_0x5d3585,_0xd4c9a3,_0xf3398a),this['unitID']=_0x10cb60,this[_0x2d0686(0x212)]=_0x2cc04a;}async['_init'](){const _0x5ef7e2=_0x85662d;let _0x450f76=await super[_0x5ef7e2(0x38c)]();return this[_0x5ef7e2(0x221)](this[_0x5ef7e2(0x3d5)][_0x5ef7e2(0x3b2)]((_0x2257de,_0x389d11)=>{const _0x1e09be=_0x5ef7e2;if(_0x2257de['type']!==t[_0x1e09be(0x30a)][_0x1e09be(0x242)]||_0x389d11!=null&&_0x389d11[_0x1e09be(0x441)]||_0x389d11!=null&&_0x389d11['onlyLocal'])return;let _0x12f044=_0x2257de[_0x1e09be(0x3c0)];if((_0x12f044==null?void 0x0:_0x12f044[_0x1e09be(0x420)])!==this[_0x1e09be(0x357)])return;let _0x2896d0=_0x2257de,_0x4d904c=this[_0x1e09be(0x2c2)][_0x1e09be(0x313)][_0x1e09be(0x1f5)](this['_compressMutationService'][_0x1e09be(0x313)]['getInterceptPoints']()[_0x1e09be(0x43b)])([_0x2896d0],this[_0x1e09be(0x22a)])||[_0x2896d0];this['_onLocalMutation'](_0x4d904c[0x0]);})),_0x450f76;}};z=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t['Inject'])(t[_0x85662d(0x285)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t[_0x85662d(0x33e)]),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t[_0x85662d(0x448)]),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],z);let B=class extends F{constructor(_0x2afecc,_0x6fd30a,_0x155104,_0x1cd296,_0x2b1b69,_0x53fec6,_0x59867b,_0x1fc6a7,_0x21c02f,_0x479919,_0x3b42ca,_0x382319,_0x4116f6,_0xa07762){const _0x664d2f=_0x85662d;super(_0x2afecc,_0x155104,_0x6fd30a,_0x1cd296,_0x2b1b69,_0x53fec6,_0x59867b,_0x1fc6a7,_0x21c02f,_0x479919,_0x3b42ca,_0x382319,_0x4116f6,_0xa07762),this[_0x664d2f(0x357)]=_0x2afecc,this[_0x664d2f(0x212)]=_0x6fd30a;}async['_init'](){const _0x2ea372=_0x85662d;let _0x4efeaa=await super[_0x2ea372(0x38c)]();return this['disposeWithMe'](this[_0x2ea372(0x3d5)][_0x2ea372(0x3b2)]((_0x4d4ac8,_0xe689ae)=>{const _0x3ce779=_0x2ea372;if(_0x4d4ac8[_0x3ce779(0x212)]!==t[_0x3ce779(0x30a)][_0x3ce779(0x242)]||_0xe689ae!=null&&_0xe689ae[_0x3ce779(0x441)]||_0xe689ae!=null&&_0xe689ae[_0x3ce779(0x1fe)])return;let _0xf986a3=_0x4d4ac8[_0x3ce779(0x3c0)];if((_0xf986a3==null?void 0x0:_0xf986a3['unitId'])!==this[_0x3ce779(0x357)])return;let _0x23d545=_0x4d4ac8,_0x1885bb=this[_0x3ce779(0x2c2)][_0x3ce779(0x313)]['fetchThroughInterceptors'](this[_0x3ce779(0x2c2)][_0x3ce779(0x313)][_0x3ce779(0x474)]()['COMPRESS_MUTATION_SEND'])([_0x23d545],this[_0x3ce779(0x22a)])||[_0x23d545];this[_0x3ce779(0x45f)](_0x1885bb[0x0]);})),_0x4efeaa;}};B=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)])),v(0x6,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x85662d(0x33e)]),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t[_0x85662d(0x448)]),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t['Optional'])(S))],B);const We=(0x0,t['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function Ge(_0xed36fc){const _0x23340e=_0x85662d;let _0x58b2a5=_0xed36fc[_0x23340e(0x28a)],_0x49294c=JSON[_0x23340e(0x42a)](_0x58b2a5);switch(_0x49294c['cmd']){case a['CombCmd'][_0x23340e(0x2b9)]:case a[_0x23340e(0x44a)][_0x23340e(0x47f)]:{let _0x3de02e=_0x49294c[_0x23340e(0x20a)];return{..._0x49294c,'data':_0x3de02e,'cmd':_0x49294c[_0x23340e(0x348)]};}case a[_0x23340e(0x44a)][_0x23340e(0x1e7)]:{let _0x17c244=_0x49294c[_0x23340e(0x45d)];return{..._0x49294c,'data':_0x17c244,'cmd':_0x49294c[_0x23340e(0x348)]};}case a[_0x23340e(0x44a)][_0x23340e(0x1ed)]:{let _0x567b37=_0x49294c['collaMsg'];switch(_0x567b37[_0x23340e(0x336)]){case e['CollaborationEvent'][_0x23340e(0x48a)]:var _0x2e507c;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x2e507c=_0x567b37[_0x23340e(0x463)])==null?void 0x0:_0x2e507c['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x410)]:var _0x39bdcc;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x39bdcc=_0x567b37['csAckEvent'])==null?void 0x0:_0x39bdcc['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x2ae)]:var _0x413b6c;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x413b6c=_0x567b37[_0x23340e(0x2ce)])==null?void 0x0:_0x413b6c['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x4ef)]:var _0x5e1df5;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x5e1df5=_0x567b37['csRejEvent'])==null?void 0x0:_0x5e1df5['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x2c9)]:var _0x192f0a;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x192f0a=_0x567b37['csShouldRetryEvent'])==null?void 0x0:_0x192f0a['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x47b)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x465)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x35a)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x395)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e['CollaborationEvent'][_0x23340e(0x2fb)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x292)]},'cmd':_0x49294c['cmd']};case e['CollaborationEvent'][_0x23340e(0x371)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x430)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x2ec)]:case e[_0x23340e(0x3fb)][_0x23340e(0x20b)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37['liveShareOperation']},'cmd':_0x49294c['cmd']};case e[_0x23340e(0x3fb)]['LIVESHARE_TERMINATE']:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x430)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x4c3)]:return{..._0x49294c,'data':_0x567b37,'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x267)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37['commentUpdateEvent']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)]['UPDATE_PERMISSION_OBJ']:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x1f3)]},'cmd':_0x49294c['cmd']};case e[_0x23340e(0x3fb)][_0x23340e(0x41b)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37['shouldCloseConn']},'cmd':_0x49294c[_0x23340e(0x348)]};case e['CollaborationEvent'][_0x23340e(0x2ff)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x417)]},'cmd':_0x49294c[_0x23340e(0x348)]};default:return _0x49294c;}}default:return _0x49294c;}}function Ke(_0x558e5a){const _0x57b409=_0x85662d;switch(_0x558e5a[_0x57b409(0x348)]){case a[_0x57b409(0x44a)]['HEARTBEAT']:case a[_0x57b409(0x44a)]['HELLO']:return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a[_0x57b409(0x348)],'routeKey':_0x558e5a['routeKey']});case a[_0x57b409(0x44a)][_0x57b409(0x205)]:{let _0x111596;switch(_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x336)]){case e[_0x57b409(0x3fb)]['UPDATE_CURSOR']:_0x111596={'eventID':e[_0x57b409(0x3fb)]['UPDATE_CURSOR'],'updateCursorEvent':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)][_0x57b409(0x2fb)]:_0x111596={'eventID':e[_0x57b409(0x3fb)]['USERS_LEAVE'],'leaveEvent':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)]['USERS_ENTER']:_0x111596={'eventID':e[_0x57b409(0x3fb)][_0x57b409(0x35a)],'joinEvent':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)][_0x57b409(0x371)]:_0x111596={'eventID':e[_0x57b409(0x3fb)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)][_0x57b409(0x20b)]:_0x111596={'eventID':e[_0x57b409(0x3fb)][_0x57b409(0x20b)],'liveShareOperation':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e['CollaborationEvent'][_0x57b409(0x4ab)]:_0x111596={'eventID':e[_0x57b409(0x3fb)][_0x57b409(0x4ab)],'liveShareTerminate':_0x558e5a['data'][_0x57b409(0x28a)]};break;case e['CollaborationEvent'][_0x57b409(0x2a1)]:_0x111596={'eventID':e['CollaborationEvent'][_0x57b409(0x2a1)],'liveShareRequestHost':_0x558e5a[_0x57b409(0x28a)]['data']};break;case e['CollaborationEvent'][_0x57b409(0x2ec)]:_0x111596={'eventID':e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x111596={'eventID':_0x558e5a['data'][_0x57b409(0x336)]};}return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a[_0x57b409(0x348)],'routeKey':_0x558e5a[_0x57b409(0x349)],'collaMsg':_0x111596});}case a[_0x57b409(0x44a)][_0x57b409(0x1e7)]:return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a[_0x57b409(0x348)],'routeKey':_0x558e5a[_0x57b409(0x349)],'joinReq':_0x558e5a[_0x57b409(0x28a)]});case a[_0x57b409(0x44a)][_0x57b409(0x271)]:return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a['cmd'],'routeKey':_0x558e5a[_0x57b409(0x349)],'leaveReq':_0x558e5a[_0x57b409(0x28a)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const qe=(0x0,t['createIdentifier'])('univer-pro.collaboration-client-socket-service');function Je(_0x110675,_0x398042,_0x2ac39){const _0x2fd9ab=_0x85662d;return _0x110675+'/'+_0x398042+'/unit/'+_0x2ac39+_0x2fd9ab(0x44b);}let Ye=class extends t[_0x85662d(0x304)]{constructor(_0x34618c,_0xd81207,_0x1b09d4,_0x25629b,_0x5122b9){const _0x1ec8b0=_0x85662d;super(),this[_0x1ec8b0(0x3f3)]=_0x34618c,this[_0x1ec8b0(0x28e)]=_0xd81207,this[_0x1ec8b0(0x377)]=_0x1b09d4,this['_logService']=_0x25629b,this['_snapshotServerService']=_0x5122b9;}['_doCreateSocket'](_0x268d5c){const _0x3fdb23=_0x85662d;let _0x31c007=this[_0x3fdb23(0x3f3)][_0x3fdb23(0x39b)](l[_0x3fdb23(0x305)]);if(!_0x31c007)throw Error(_0x3fdb23(0x26d));let _0x171e67=_0x31c007[_0x3fdb23(0x387)](_0x268d5c);if(!_0x171e67)throw Error(_0x3fdb23(0x401));let _0x429a2f=new t['DisposableCollection'](),_0x519e34=new i['Subject']();_0x429a2f[_0x3fdb23(0x2d6)](_0x171e67[_0x3fdb23(0x4d6)][_0x3fdb23(0x46c)](_0x2a814b=>_0x519e34[_0x3fdb23(0x49a)](_0x2a814b))),_0x429a2f[_0x3fdb23(0x2d6)]((0x0,t['toDisposable'])(()=>_0x519e34[_0x3fdb23(0x3ab)]()));let _0x41a523=new i[(_0x3fdb23(0x439))]();_0x429a2f[_0x3fdb23(0x2d6)](_0x171e67['error$'][_0x3fdb23(0x46c)](_0xdafcec=>_0x41a523[_0x3fdb23(0x49a)](_0xdafcec))),_0x429a2f[_0x3fdb23(0x2d6)]((0x0,t['toDisposable'])(()=>_0x41a523[_0x3fdb23(0x3ab)]()));let _0x53b5b1=new i[(_0x3fdb23(0x439))]();_0x429a2f[_0x3fdb23(0x2d6)](_0x171e67[_0x3fdb23(0x21b)][_0x3fdb23(0x46c)](_0x535f25=>{const _0x59f4cf=_0x3fdb23;let _0x5d76ee=Ge(_0x535f25);_0x53b5b1[_0x59f4cf(0x49a)](_0x5d76ee);})),_0x429a2f['add']((0x0,t[_0x3fdb23(0x3d6)])(()=>_0x53b5b1[_0x3fdb23(0x3ab)]()));let _0x4b48d0,_0x3d4fcc=()=>{const _0x82917e=_0x3fdb23;_0x41a523[_0x82917e(0x49a)](new Event(_0x82917e(0x397))),_0x519e34[_0x82917e(0x49a)](new Event(_0x82917e(0x397))),_0x4b48d0[_0x82917e(0x418)]();};return _0x4b48d0={'memberID':'','close$':_0x519e34[_0x3fdb23(0x2dd)](),'error$':_0x41a523['asObservable'](),'open$':_0x171e67['open$'],'message$':_0x53b5b1['asObservable'](),'send':_0x4811b1=>{const _0xf99d0b=_0x3fdb23;if(_0x4811b1[_0xf99d0b(0x348)]===a['CombCmd'][_0xf99d0b(0x205)]){if(_0x4811b1[_0xf99d0b(0x28a)][_0xf99d0b(0x336)]===e[_0xf99d0b(0x3fb)]['SUBMIT_CHANGESET']){this[_0xf99d0b(0x394)](_0x4b48d0,_0x4811b1[_0xf99d0b(0x28a)])[_0xf99d0b(0x4a5)](_0x2f1ca3=>{const _0x468693=_0xf99d0b;this[_0x468693(0x29f)][_0x468693(0x3cc)](_0x2f1ca3),_0x3d4fcc();});return;}if(_0x4811b1[_0xf99d0b(0x28a)][_0xf99d0b(0x336)]===e[_0xf99d0b(0x3fb)][_0xf99d0b(0x415)]){let _0x5aa5d2=_0x4811b1['data'];this[_0xf99d0b(0x4a0)](_0x5aa5d2)[_0xf99d0b(0x3b6)](_0x3591ff=>{const _0x3497c1=_0xf99d0b;_0x53b5b1[_0x3497c1(0x49a)]({'cmd':a[_0x3497c1(0x44a)][_0x3497c1(0x1ed)],'code':a['CmdRspCode']['OK'],'routeKey':_0x5aa5d2[_0x3497c1(0x28a)][_0x3497c1(0x357)],'routeType':'','data':{'eventID':e[_0x3497c1(0x3fb)][_0x3497c1(0x4b1)],'data':{'changesets':_0x3591ff}}});})[_0xf99d0b(0x4a5)](_0x29610e=>{const _0xc11f58=_0xf99d0b;this[_0xc11f58(0x29f)]['error'](_0x29610e),_0x3d4fcc();});return;}}_0x171e67[_0xf99d0b(0x48b)](Ke(_0x4811b1));},'close':()=>{_0x171e67['close'](),_0x429a2f['dispose']();}},_0x4b48d0;}async[_0x85662d(0x394)](_0x28278a,_0x15adde){const _0x2b7d35=_0x85662d;var _0x355e14;let {unitType:_0x24b931,unitID:_0x22b9ad,changeset:_0xd012c4}=_0x15adde[_0x2b7d35(0x28a)],_0xf91cc8={'unitID':_0x22b9ad,'memberID':_0x28278a[_0x2b7d35(0x4e4)],'type':_0x24b931,'changeset':(0x0,e[_0x2b7d35(0x1e0)])(_0xd012c4)},_0x17eb62=this[_0x2b7d35(0x377)][_0x2b7d35(0x262)](m),_0x5eb89d=Je((_0x355e14=_0x17eb62==null?void 0x0:_0x17eb62[_0x2b7d35(0x28b)])==null?_0x2b7d35(0x36a):_0x355e14,_0x24b931,_0x22b9ad);try{await this['_httpService'][_0x2b7d35(0x3d4)](_0x5eb89d,{'body':_0xf91cc8});}catch(_0x10c4ec){throw this[_0x2b7d35(0x29f)]['error'](_0x2b7d35(0x383),_0x2b7d35(0x331)),_0x10c4ec;}}async['_fetchMissChangesets'](_0x473ca8){const _0x2227d4=_0x85662d;let {unitID:_0x4fe467,from:_0x3209e1,to:_0x329c48,unitType:_0x10a0a5}=_0x473ca8['data'];return(await this['_snapshotServerService'][_0x2227d4(0x2ba)]({'metadata':void 0x0},{'unitID':_0x4fe467,'type':_0x10a0a5,'from':_0x3209e1,'to':_0x329c48}))[_0x2227d4(0x251)][_0x2227d4(0x3fc)](_0x10e69e=>((_0x10e69e[_0x2227d4(0x406)]===null||_0x10e69e['mutations']===void 0x0)&&(_0x10e69e[_0x2227d4(0x406)]=[]),_0x10e69e));}};Ye=y([v(0x0,(0x0,t['Inject'])(t[_0x85662d(0x330)])),v(0x1,(0x0,t[_0x85662d(0x340)])(l[_0x85662d(0x315)])),v(0x2,t[_0x85662d(0x29d)]),v(0x3,t[_0x85662d(0x3a4)]),v(0x4,e[_0x85662d(0x246)])],Ye);const Xe=(0x0,t['createIdentifier'])(_0x85662d(0x1e1));function Ze(_0x103215={}){const _0x54db85=_0x85662d;return _0x103215[_0x54db85(0x3a7)]?{'resolveUnit':_0x103215[_0x54db85(0x3a7)]}:{'resolveUnit':_0x19d810=>({'target':{'unitId':_0x19d810[_0x54db85(0x420)],'unitType':_0x19d810[_0x54db85(0x369)]}})};}function Qe(_0x2ea9a7,_0x14cd62,_0x558b4b){const _0x395a6c=_0x85662d;var _0x4b3217;let _0x16b5ee=_0x558b4b[_0x395a6c(0x1f0)]['endpoint'];if(_0x16b5ee!=null&&_0x16b5ee[_0x395a6c(0x256)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x558b4b[_0x395a6c(0x1f0)][_0x395a6c(0x420)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x2ea9a7,'unitType':_0x14cd62,'target':{'endpoint':_0x16b5ee,'unitId':_0x558b4b['target'][_0x395a6c(0x420)],'unitType':(_0x4b3217=_0x558b4b['target'][_0x395a6c(0x369)])==null?_0x14cd62:_0x4b3217},'changeset':_0x558b4b['changeset']};}let V=class extends t[_0x85662d(0x304)]{constructor(_0x5d153e,_0x55cfd8,_0x597a05,_0x5141d5,_0x59de15,_0x1ca5b1,_0x58da8d){const _0x44e921=_0x85662d;super(),this['_injector']=_0x5d153e,this[_0x44e921(0x29f)]=_0x55cfd8,this[_0x44e921(0x377)]=_0x597a05,this[_0x44e921(0x364)]=_0x5141d5,this[_0x44e921(0x46e)]=_0x59de15,this['_adapter']=_0x1ca5b1,this[_0x44e921(0x419)]=_0x58da8d,g(this,_0x44e921(0x2a9),new Map()),g(this,_0x44e921(0x355),new Map()),g(this,_0x44e921(0x459),new Map()),g(this,'_socketChannels',new Map()),g(this,'socket$',this[_0x44e921(0x2bd)](void 0x0)[_0x44e921(0x490)][_0x44e921(0x2dd)]()),g(this,'_status$',new i[(_0x44e921(0x475))](0x0)),g(this,_0x44e921(0x27f),this[_0x44e921(0x467)][_0x44e921(0x2dd)]()),this['_listenToNetworkCondition']();}['_listenToNetworkCondition'](){const _0x44908a=_0x85662d;this['_networkConditionService']&&this[_0x44908a(0x221)](this[_0x44908a(0x419)]['online$']['subscribe'](_0xddd348=>{const _0x5f1f71=_0x44908a;_0xddd348&&this[_0x5f1f71(0x244)](),_0xddd348||this[_0x5f1f71(0x3cb)][_0x5f1f71(0x30f)](_0xb3ad80=>this[_0x5f1f71(0x20f)](_0xb3ad80));}));}[_0x85662d(0x469)](){const _0x3bcb56=_0x85662d;super[_0x3bcb56(0x469)](),this[_0x3bcb56(0x3cb)][_0x3bcb56(0x30f)](_0x32b3e9=>{const _0x965835=_0x3bcb56;var _0xf2fddf,_0x3e5a81;(_0xf2fddf=_0x32b3e9['socketMessageSubscription'])==null||_0xf2fddf['unsubscribe'](),_0x32b3e9[_0x965835(0x29c)]=null,this[_0x965835(0x222)](_0x32b3e9),this['_clearTimeoutTimer'](_0x32b3e9),this['_clearHeartbeatTimer'](_0x32b3e9),(_0x3e5a81=_0x32b3e9['socket$'][_0x965835(0x40c)]())==null||_0x3e5a81[_0x965835(0x418)](),_0x32b3e9['socket$'][_0x965835(0x3ab)]();}),this[_0x3bcb56(0x3cb)][_0x3bcb56(0x214)](),this[_0x3bcb56(0x2a9)][_0x3bcb56(0x30f)](_0xc731ce=>_0xc731ce[_0x3bcb56(0x469)]()),this[_0x3bcb56(0x2a9)][_0x3bcb56(0x214)](),this['_sessionChannels']['clear'](),this[_0x3bcb56(0x467)][_0x3bcb56(0x3ab)]();}async[_0x85662d(0x232)](_0x23df54,_0x55e65d){const _0x115e0c=_0x85662d;if(this[_0x115e0c(0x2a9)][_0x115e0c(0x4ca)](_0x23df54))return this['_sessions'][_0x115e0c(0x39b)](_0x23df54);let _0x2a17ee=this['_pendingSessions'][_0x115e0c(0x39b)](_0x23df54);if(_0x2a17ee)return _0x2a17ee;let _0x563551=this[_0x115e0c(0x3d7)](_0x23df54,_0x55e65d);this[_0x115e0c(0x355)]['set'](_0x23df54,_0x563551);try{return await _0x563551;}finally{this[_0x115e0c(0x355)]['delete'](_0x23df54);}}async['_createSession'](_0x453533,_0x2886b7){const _0x10cc0c=_0x85662d;let _0x441c06=await this[_0x10cc0c(0x220)](_0x453533,_0x2886b7),_0x5c1d55=this[_0x10cc0c(0x2bd)](_0x441c06['target'][_0x10cc0c(0x47c)]);this[_0x10cc0c(0x458)](_0x5c1d55);let _0x4690ab=this[_0x10cc0c(0x3f3)]['createInstance'](x,_0x441c06,_0x5c1d55[_0x10cc0c(0x490)][_0x10cc0c(0x2dd)]());return this[_0x10cc0c(0x2a9)][_0x10cc0c(0x43f)](_0x453533,_0x4690ab),this[_0x10cc0c(0x459)]['set'](_0x453533,_0x5c1d55[_0x10cc0c(0x41d)]),_0x4690ab;}[_0x85662d(0x1da)](_0x370b23){const _0x469d6e=_0x85662d;let _0x2ccc5f=this[_0x469d6e(0x2a9)]['get'](_0x370b23),_0x2b763c=this[_0x469d6e(0x459)][_0x469d6e(0x39b)](_0x370b23);if(_0x2ccc5f&&(this[_0x469d6e(0x2a9)][_0x469d6e(0x36e)](_0x370b23),this[_0x469d6e(0x459)][_0x469d6e(0x36e)](_0x370b23),_0x2ccc5f[_0x469d6e(0x418)]()),_0x2b763c&&!this[_0x469d6e(0x2c7)](_0x2b763c)){var _0x32cca5;let _0x4fd0c9=this['_socketChannels'][_0x469d6e(0x39b)](_0x2b763c);_0x4fd0c9==null||(_0x32cca5=_0x4fd0c9['socket$'][_0x469d6e(0x40c)]())==null||_0x32cca5[_0x469d6e(0x418)]();}}[_0x85662d(0x244)](){const _0x46bf77=_0x85662d;(this[_0x46bf77(0x3cb)]['size']?[...this['_socketChannels'][_0x46bf77(0x28c)]()]:[this[_0x46bf77(0x2bd)](void 0x0)])['forEach'](_0x598a0e=>{const _0x19d902=_0x46bf77;_0x598a0e[_0x19d902(0x2fd)]=0x0,this[_0x19d902(0x222)](_0x598a0e),this[_0x19d902(0x4d9)](_0x598a0e);});}[_0x85662d(0x222)](_0x2333a2){const _0x2a6678=_0x85662d;_0x2333a2[_0x2a6678(0x413)]!=null&&(clearTimeout(_0x2333a2['retryConnectingTimer']),_0x2333a2['retryConnectingTimer']=null);}async[_0x85662d(0x201)](_0x1907cd){const _0x207184=_0x85662d;var _0x446faf,_0x3a4879;let _0x164bb4=this[_0x207184(0x377)]['getConfig'](m),_0x50c7b4=(_0x446faf=(_0x3a4879=_0x1907cd[_0x207184(0x47c)])==null?_0x164bb4==null?void 0x0:_0x164bb4[_0x207184(0x286)]:_0x3a4879)==null?te:_0x446faf,_0x5f2eff=await this[_0x207184(0x364)][_0x207184(0x387)](_0x50c7b4);return _0x1907cd['candidateSocket']=_0x5f2eff,_0x5f2eff;}async[_0x85662d(0x458)](_0x1f1059){const _0x38fb05=_0x85662d;try{var _0x4464b3,_0x2a014c;let _0x1b033a=(_0x4464b3=(_0x2a014c=_0x1f1059[_0x38fb05(0x490)][_0x38fb05(0x40c)]())==null?_0x1f1059['candidateSocket']:_0x2a014c)==null?await this[_0x38fb05(0x201)](_0x1f1059):_0x4464b3;if(_0x1b033a){var _0x360d7f;let _0xeabb99=_0x1b033a[_0x38fb05(0x48b)];_0x1b033a[_0x38fb05(0x48b)]=_0x1d9697=>(_0x1d9697[_0x38fb05(0x348)]!==a['CombCmd'][_0x38fb05(0x271)]&&this['_rescheduleHeartbeat'](_0x1f1059),_0xeabb99[_0x38fb05(0x494)](_0x1b033a,[_0x1d9697])),(_0x360d7f=_0x1f1059['socketMessageSubscription'])==null||_0x360d7f['unsubscribe'](),_0x1f1059[_0x38fb05(0x29c)]=null,_0x1f1059[_0x38fb05(0x29c)]=_0x1b033a[_0x38fb05(0x21b)][_0x38fb05(0x46c)](_0x4b38af=>this[_0x38fb05(0x4f6)](_0x1f1059,_0x1b033a,_0x4b38af)),_0x1b033a[_0x38fb05(0x34e)][_0x38fb05(0x4bd)]((0x0,s[_0x38fb05(0x3e5)])(0x1))['subscribe'](_0x2e51fa=>this[_0x38fb05(0x29f)][_0x38fb05(0x3cc)](_0x38fb05(0x1ea),_0x2e51fa)),_0x1b033a[_0x38fb05(0x223)][_0x38fb05(0x4bd)]((0x0,s[_0x38fb05(0x3e5)])(0x1))[_0x38fb05(0x46c)](()=>{const _0x399268=_0x38fb05;this[_0x399268(0x4e9)](_0x1f1059,_0x1b033a);}),_0x1b033a[_0x38fb05(0x4d6)][_0x38fb05(0x4bd)]((0x0,s[_0x38fb05(0x3e5)])(0x1))[_0x38fb05(0x46c)](_0x1bcf6=>{const _0xd34ffc=_0x38fb05;this[_0xd34ffc(0x29f)]['debug'](_0xd34ffc(0x495),_0xd34ffc(0x3bd),_0x1bcf6),this[_0xd34ffc(0x1fd)](_0x1f1059);});}}catch(_0x4be0e5){this[_0x38fb05(0x29f)][_0x38fb05(0x3cc)](_0x4be0e5),this[_0x38fb05(0x1fd)](_0x1f1059);}}[_0x85662d(0x4e9)](_0xaad9a1,_0x1ed70e){const _0x2de4d3=_0x85662d;this[_0x2de4d3(0x29f)][_0x2de4d3(0x3a9)](_0x2de4d3(0x495),_0x2de4d3(0x288)),_0x1ed70e[_0x2de4d3(0x48b)]({'cmd':a[_0x2de4d3(0x44a)][_0x2de4d3(0x47f)]}),this[_0x2de4d3(0x29a)](_0xaad9a1);}[_0x85662d(0x20f)](_0x101697){const _0x251b47=_0x85662d;_0x101697[_0x251b47(0x427)]=!0x1,_0x101697[_0x251b47(0x421)]=null,this[_0x251b47(0x467)]['next'](0x2),_0x101697[_0x251b47(0x490)][_0x251b47(0x49a)](null),this[_0x251b47(0x203)](_0x101697),this[_0x251b47(0x4a2)](_0x101697);}[_0x85662d(0x1fd)](_0x18415f){const _0x47c791=_0x85662d;var _0x5c723c;this[_0x47c791(0x20f)](_0x18415f),this[_0x47c791(0x2c7)](_0x18415f[_0x47c791(0x41d)])&&(_0x18415f[_0x47c791(0x2fd)]<((_0x5c723c=this[_0x47c791(0x377)][_0x47c791(0x262)]('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x5c723c)?(this[_0x47c791(0x46e)][_0x47c791(0x3ae)]({'id':_0x47c791(0x3e3)}),this[_0x47c791(0x4d9)](_0x18415f)):this[_0x47c791(0x46e)][_0x47c791(0x3ae)]({'id':_0x47c791(0x22f)}));}[_0x85662d(0x4d9)](_0x38bec7){const _0x537dab=_0x85662d;var _0x5a0216;let _0x15655a=_0x38bec7[_0x537dab(0x2fd)],_0x3621af=this[_0x537dab(0x377)]['getConfig'](m),_0x376094=_0x15655a===0x0?0x0:((_0x5a0216=_0x3621af==null?void 0x0:_0x3621af[_0x537dab(0x390)])==null?0x4e20:_0x5a0216)*0x2**_0x15655a;_0x38bec7[_0x537dab(0x413)]=setTimeout(()=>{const _0x4ad548=_0x537dab;clearTimeout(_0x38bec7['retryConnectingTimer']),_0x38bec7[_0x4ad548(0x413)]=null,this['_tryEnsureSocket'](_0x38bec7);},_0x376094),_0x38bec7[_0x537dab(0x2fd)]+=0x1;}async['_resolveSessionIdentity'](_0x5d19db,_0x58faea){const _0x35dcf4=_0x85662d;return Qe(_0x5d19db,_0x58faea,await this[_0x35dcf4(0x25b)][_0x35dcf4(0x3a7)]({'unitId':_0x5d19db,'unitType':_0x58faea}));}[_0x85662d(0x4f6)](_0x49de8e,_0x1d1058,_0x878bf7){const _0x504d9c=_0x85662d;let {cmd:_0x14e1d9}=_0x878bf7;_0x14e1d9===a[_0x504d9c(0x44a)]['HELLO']&&!_0x49de8e[_0x504d9c(0x427)]&&(_0x1d1058[_0x504d9c(0x4e4)]=_0x878bf7['data'][_0x504d9c(0x4e4)],_0x49de8e[_0x504d9c(0x490)][_0x504d9c(0x49a)](_0x1d1058),this[_0x504d9c(0x467)][_0x504d9c(0x49a)](0x3),_0x49de8e['socketReady']=!0x0,_0x49de8e['candidateSocket']=null),_0x14e1d9===a[_0x504d9c(0x44a)][_0x504d9c(0x2b9)]&&this['_clearTimeoutTimer'](_0x49de8e),this['_rescheduleHeartbeat'](_0x49de8e);}[_0x85662d(0x2c7)](_0x14cb3d){const _0x1629cf=_0x85662d;return[...this[_0x1629cf(0x459)]['values']()][_0x1629cf(0x450)](_0x477064=>_0x477064===_0x14cb3d);}[_0x85662d(0x2bd)](_0x1a1443){const _0x266fdd=_0x85662d;let _0xcc9fa7=_0x1a1443==null?'':_0x1a1443,_0x351c32=this[_0x266fdd(0x3cb)][_0x266fdd(0x39b)](_0xcc9fa7);if(_0x351c32)return _0x351c32;let _0x1accff={'endpointKey':_0xcc9fa7,'endpoint':_0x1a1443,'socket$':new i[(_0x266fdd(0x475))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x266fdd(0x43f)](_0xcc9fa7,_0x1accff),_0x1accff;}[_0x85662d(0x29a)](_0x509299){const _0xb9d244=_0x85662d;var _0x4cf77f;this[_0xb9d244(0x4a2)](_0x509299),_0x509299[_0xb9d244(0x423)]=setTimeout(()=>this['_sendHeartbeat'](_0x509299),(_0x4cf77f=this[_0xb9d244(0x377)][_0xb9d244(0x262)](_0xb9d244(0x323)))==null?0x7530:_0x4cf77f);}[_0x85662d(0x484)](_0x4a6f7a){const _0x149830=_0x85662d;_0x4a6f7a[_0x149830(0x490)]['getValue']()[_0x149830(0x48b)]({'cmd':a[_0x149830(0x44a)][_0x149830(0x2b9)]}),this[_0x149830(0x431)](_0x4a6f7a);}[_0x85662d(0x431)](_0x2f7fb5){const _0x1778ad=_0x85662d;var _0x3006e3;_0x2f7fb5['timeoutTimer']=setTimeout(()=>this[_0x1778ad(0x1fd)](_0x2f7fb5),(_0x3006e3=this[_0x1778ad(0x377)]['getConfig'](_0x1778ad(0x258)))==null?ne:_0x3006e3);}[_0x85662d(0x4a2)](_0x50f9fc){const _0x146377=_0x85662d;_0x50f9fc['sendHeartbeatTimer']!=null&&(clearTimeout(_0x50f9fc[_0x146377(0x423)]),_0x50f9fc[_0x146377(0x423)]=null);}[_0x85662d(0x203)](_0xa8493f){const _0x376aaa=_0x85662d;_0xa8493f['timeoutTimer']!=null&&(clearTimeout(_0xa8493f['timeoutTimer']),_0xa8493f[_0x376aaa(0x2a5)]=null);}};V=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x1,t[_0x85662d(0x3a4)]),v(0x2,t[_0x85662d(0x29d)]),v(0x3,qe),v(0x4,(0x0,t[_0x85662d(0x340)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x85662d(0x32e)])(We))],V);let H=class extends t[_0x85662d(0x42c)]{constructor(_0x161da1,_0x7bcefd,_0x3c9068,_0xad26ae){const _0x537b38=_0x85662d;var _0x1e843f;super(),this[_0x537b38(0x3f3)]=_0x161da1,this[_0x537b38(0x2f0)]=_0x7bcefd,this[_0x537b38(0x377)]=_0x3c9068,this[_0x537b38(0x22a)]=_0xad26ae,g(this,_0x537b38(0x33d),new Map()),g(this,_0x537b38(0x31d),new i['Subject']()),g(this,_0x537b38(0x4f5),this[_0x537b38(0x31d)][_0x537b38(0x2dd)]()),((_0x1e843f=this[_0x537b38(0x377)][_0x537b38(0x262)]('collaboration-client.config'))==null?void 0x0:_0x1e843f[_0x537b38(0x2f2)])!==!0x1&&this[_0x537b38(0x38c)]();}[_0x85662d(0x469)](){const _0x361664=_0x85662d;super[_0x361664(0x469)](),this['_entities']['forEach'](_0x1315fa=>_0x1315fa[_0x361664(0x469)]()),this[_0x361664(0x33d)][_0x361664(0x214)]();}[_0x85662d(0x276)](_0x12665b){const _0x464a8b=_0x85662d;var _0x32e8b8;return(_0x32e8b8=this[_0x464a8b(0x33d)]['get'](_0x12665b))==null?null:_0x32e8b8;}[_0x85662d(0x35e)](_0x807d59){const _0x55a555=_0x85662d;let _0x36be4c=this[_0x55a555(0x276)](_0x807d59);return _0x36be4c?(0x0,i['of'])(_0x36be4c):this[_0x55a555(0x31d)][_0x55a555(0x4bd)]((0x0,s[_0x55a555(0x2ca)])(_0x2b5e54=>_0x2b5e54[_0x55a555(0x357)]===_0x807d59));}[_0x85662d(0x4a6)](_0x3ffc8f){const _0x5cfd3c=_0x85662d;return(0x0,i[_0x5cfd3c(0x3fd)])(this[_0x5cfd3c(0x35e)](_0x3ffc8f)['pipe']((0x0,s[_0x5cfd3c(0x3fc)])(()=>void 0x0)));}[_0x85662d(0x38c)](){const _0x4cc06a=_0x85662d;this[_0x4cc06a(0x22a)][_0x4cc06a(0x1e6)](t[_0x4cc06a(0x378)]['UNIVER_SHEET'])[_0x4cc06a(0x4bd)]((0x0,i['takeUntil'])(this[_0x4cc06a(0x3df)]),(0x0,s['delay'])(0x10))[_0x4cc06a(0x46c)](async _0x5f2f4b=>{const _0x4ecb30=_0x4cc06a;let _0x54eb96=_0x5f2f4b[_0x4ecb30(0x280)][_0x4ecb30(0x3b9)](),_0x3962db=await this[_0x4ecb30(0x2d2)](_0x54eb96,t[_0x4ecb30(0x378)]['UNIVER_SHEET']);this[_0x4ecb30(0x33d)][_0x4ecb30(0x43f)](_0x54eb96,_0x3962db);}),this[_0x4cc06a(0x22a)][_0x4cc06a(0x1e6)](t[_0x4cc06a(0x378)][_0x4cc06a(0x39f)])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x4cc06a(0x4bd)]((0x0,s[_0x4cc06a(0x2ca)])(_0x12287f=>!_0x12287f[_0x4cc06a(0x280)][_0x4cc06a(0x3b9)]()[_0x4cc06a(0x3ba)]('__')))[_0x4cc06a(0x46c)](async _0x219e73=>{const _0x4da646=_0x4cc06a;let _0x52e79f=_0x219e73[_0x4da646(0x280)][_0x4da646(0x3b9)](),_0xcd9fb7=await this[_0x4da646(0x2d2)](_0x52e79f,t[_0x4da646(0x378)][_0x4da646(0x39f)]);this[_0x4da646(0x33d)]['set'](_0x52e79f,_0xcd9fb7);}),this['_univerInstanceService'][_0x4cc06a(0x1e6)](t[_0x4cc06a(0x378)][_0x4cc06a(0x2cf)])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this[_0x4cc06a(0x3df)]),(0x0,s['delay'])(0x10))['subscribe'](async _0x114a9d=>{const _0x19bbd=_0x4cc06a;let _0x304dbd=_0x114a9d[_0x19bbd(0x280)][_0x19bbd(0x3b9)](),_0x4b2abc=await this['_startCollaboration'](_0x304dbd,t['UniverInstanceType'][_0x19bbd(0x2cf)]);this[_0x19bbd(0x33d)][_0x19bbd(0x43f)](_0x304dbd,_0x4b2abc);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x4cc06a(0x378)]['UNIVER_BOARD'])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this['dispose$']),(0x0,s[_0x4cc06a(0x2d3)])(0x10))[_0x4cc06a(0x46c)](async _0x37cf3c=>{const _0x1b984d=_0x4cc06a;let _0xf72355=_0x37cf3c[_0x1b984d(0x280)][_0x1b984d(0x3b9)](),_0x56617f=await this['_startCollaboration'](_0xf72355,t[_0x1b984d(0x378)][_0x1b984d(0x4b5)]);this[_0x1b984d(0x33d)][_0x1b984d(0x43f)](_0xf72355,_0x56617f);}),this[_0x4cc06a(0x22a)][_0x4cc06a(0x1e6)](t['UniverInstanceType'][_0x4cc06a(0x440)])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this[_0x4cc06a(0x3df)]),(0x0,s[_0x4cc06a(0x2d3)])(0x10))[_0x4cc06a(0x46c)](async _0xbd7d47=>{const _0x534ef5=_0x4cc06a;let _0x5c0bb3=_0xbd7d47[_0x534ef5(0x280)][_0x534ef5(0x3b9)](),_0x368eca=await this[_0x534ef5(0x2d2)](_0x5c0bb3,t[_0x534ef5(0x378)][_0x534ef5(0x440)]);this[_0x534ef5(0x33d)][_0x534ef5(0x43f)](_0x5c0bb3,_0x368eca);}),(0x0,i[_0x4cc06a(0x22e)])(this['_univerInstanceService'][_0x4cc06a(0x4b8)](t['UniverInstanceType'][_0x4cc06a(0x4d3)]),this[_0x4cc06a(0x22a)]['getTypeOfUnitDisposed$'](t[_0x4cc06a(0x378)]['UNIVER_DOC']),this[_0x4cc06a(0x22a)][_0x4cc06a(0x4b8)](t[_0x4cc06a(0x378)]['UNIVER_SLIDE']),this['_univerInstanceService'][_0x4cc06a(0x4b8)](t['UniverInstanceType']['UNIVER_BOARD']),this['_univerInstanceService'][_0x4cc06a(0x4b8)](t['UniverInstanceType'][_0x4cc06a(0x440)]))['pipe']((0x0,i['takeUntil'])(this[_0x4cc06a(0x3df)]))['subscribe'](_0x3f23aa=>{const _0x5eafbd=_0x4cc06a;let _0x2b4191=_0x3f23aa[_0x5eafbd(0x3b9)](),_0x40c863=this[_0x5eafbd(0x33d)][_0x5eafbd(0x39b)](_0x2b4191);_0x40c863&&(_0x40c863['dispose'](),this[_0x5eafbd(0x33d)][_0x5eafbd(0x36e)](_0x2b4191));});}async[_0x85662d(0x2d2)](_0x354b4a,_0x59f2e3){const _0x1f119f=_0x85662d;let _0x597c0f=await this['_collabSessionService'][_0x1f119f(0x232)](_0x354b4a),_0x159db4=this[_0x1f119f(0x3f3)][_0x1f119f(0x2e8)](this[_0x1f119f(0x39d)](_0x59f2e3),_0x354b4a,_0x59f2e3,_0x597c0f);return await _0x159db4['init'](),this[_0x1f119f(0x31d)]['next'](_0x159db4),_0x159db4;}[_0x85662d(0x39d)](_0x5e58a8){const _0x1d4763=_0x85662d;switch(_0x5e58a8){case t[_0x1d4763(0x378)][_0x1d4763(0x39f)]:return I;case t[_0x1d4763(0x378)][_0x1d4763(0x4d3)]:return R;case t[_0x1d4763(0x378)][_0x1d4763(0x2cf)]:return z;case t[_0x1d4763(0x378)][_0x1d4763(0x4b5)]:return B;case t[_0x1d4763(0x378)][_0x1d4763(0x440)]:return L;default:throw Error(_0x1d4763(0x49e)+_0x5e58a8);}}};H=y([v(0x0,(0x0,t['Inject'])(t[_0x85662d(0x330)])),v(0x1,(0x0,t[_0x85662d(0x340)])(V)),v(0x2,t[_0x85662d(0x29d)]),v(0x3,t['IUniverInstanceService'])],H);var $e=_0x85662d(0x268),et='1.0.0-alpha.4';let tt=class extends t[_0x85662d(0x304)]{constructor(_0x385521,_0x1566b1){super(),this['_univerInstanceService']=_0x385521,this['_configService']=_0x1566b1,this['_init']();}['_init'](){const _0x462d28=_0x85662d;this[_0x462d28(0x221)](this['_univerInstanceService'][_0x462d28(0x2db)][_0x462d28(0x46c)](()=>{const _0x43d430=_0x462d28;var _0x419251;let _0x163300=this[_0x43d430(0x22a)][_0x43d430(0x26b)](),_0x45656b=(_0x419251=this[_0x43d430(0x377)][_0x43d430(0x262)](_0x43d430(0x3d0)))==null?_0x43d430(0x4dc):_0x419251;_0x163300 instanceof t['Workbook']&&(_0x45656b=_0x163300[_0x43d430(0x239)]),document['title']=_0x45656b;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t['IConfigService'])],tt);let nt=function(_0x3e29ec){const _0x54b78d=_0x85662d;return _0x3e29ec[_0x54b78d(0x4ce)]=_0x54b78d(0x4ce),_0x3e29ec[_0x54b78d(0x3b1)]=_0x54b78d(0x3b1),_0x3e29ec['BASE64']=_0x54b78d(0x290),_0x3e29ec;}({});const rt=(0x0,t['createIdentifier'])('base-ui.attachment-io.service');let U=class{constructor(_0x27a9e9,_0x535eef,_0x5e00a8){const _0x2bd9e8=_0x85662d;this[_0x2bd9e8(0x28e)]=_0x27a9e9,this[_0x2bd9e8(0x377)]=_0x535eef,this[_0x2bd9e8(0x22a)]=_0x5e00a8;}[_0x85662d(0x3f1)](){const _0x542a7b=_0x85662d;var _0x85c2e;return(_0x85c2e=this[_0x542a7b(0x428)]()[_0x542a7b(0x3e2)])==null?{}:_0x85c2e;}async[_0x85662d(0x4c1)](_0x4c3087){const _0x2ff425=_0x85662d;let _0x5bc593=this[_0x2ff425(0x3f1)]();if(it(_0x4c3087,_0x5bc593),_0x5bc593[_0x2ff425(0x2ab)])return _0x5bc593[_0x2ff425(0x2ab)](_0x4c3087);let _0x3772c8=await this[_0x2ff425(0x36c)](_0x4c3087);return{'id':_0x3772c8,'name':_0x4c3087['name'],'mimeType':_0x4c3087[_0x2ff425(0x212)],'size':_0x4c3087[_0x2ff425(0x362)],'sourceType':_0x2ff425(0x3b1),'source':_0x3772c8};}async[_0x85662d(0x36c)](_0x3b9962){const _0x3f3aa2=_0x85662d;let _0x3e080e=this[_0x3f3aa2(0x22a)][_0x3f3aa2(0x26b)](),_0x2221ad=_0x3e080e==null?void 0x0:_0x3e080e[_0x3f3aa2(0x3b9)]();if(!_0x2221ad)throw Error(_0x3f3aa2(0x4f3));let _0x3a525d=new FormData();_0x3a525d[_0x3f3aa2(0x2e0)]('file',_0x3b9962);let _0x1ef508=this[_0x3f3aa2(0x231)]()+_0x3f3aa2(0x452)+_0x3b9962[_0x3f3aa2(0x362)][_0x3f3aa2(0x2da)]()+_0x3f3aa2(0x324)+a[_0x3f3aa2(0x27d)]['UnitEmbedded']+'&assign='+encodeURIComponent(_0x2221ad),_0x10d654=(await this['_httpService']['post'](_0x1ef508,{'body':_0x3a525d}))['body'][_0x3f3aa2(0x308)];if(typeof _0x10d654!=_0x3f3aa2(0x1dc)||!_0x10d654)throw Error(_0x3f3aa2(0x22d));return _0x10d654;}[_0x85662d(0x231)](){var _0x5622d5;return(_0x5622d5=this['_getConfig']()['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x5622d5;}[_0x85662d(0x428)](){const _0x145549=_0x85662d;var _0x43b5d1;return(_0x43b5d1=this[_0x145549(0x377)]['getConfig']('collaboration-client.config'))==null?{}:_0x43b5d1;}};U=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l['HTTPService'])),v(0x1,(0x0,t[_0x85662d(0x340)])(t['IConfigService'])),v(0x2,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x33e)]))],U);function it(_0x2875ab,_0x353ae9){const _0x1afe23=_0x85662d;var _0x320c44;if(_0x353ae9[_0x1afe23(0x2c4)]!=null&&_0x2875ab[_0x1afe23(0x362)]>_0x353ae9[_0x1afe23(0x2c4)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x320c44=_0x353ae9[_0x1afe23(0x43c)])!=null&&_0x320c44[_0x1afe23(0x45a)]&&!_0x353ae9[_0x1afe23(0x43c)][_0x1afe23(0x450)](_0x471d06=>_0x2875ab[_0x1afe23(0x212)]===_0x471d06||_0x2875ab[_0x1afe23(0x239)]['endsWith'](_0x471d06)||_0x471d06['endsWith']('/*')&&_0x2875ab['type'][_0x1afe23(0x3ba)](_0x471d06[_0x1afe23(0x409)](0x0,-0x1))))throw Error(_0x1afe23(0x3ac));}let W=class{constructor(_0x3b3ab,_0x39d027,_0x378b6d){const _0x5923be=_0x85662d;this['_configService']=_0x3b3ab,this[_0x5923be(0x28e)]=_0x39d027,this[_0x5923be(0x284)]=_0x378b6d,this[_0x5923be(0x30d)]();}[_0x85662d(0x30d)](){const _0x5b9db6=_0x85662d;this[_0x5b9db6(0x28e)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x343d22,_0x4cc6ee)=>_0x4cc6ee(_0x343d22)[_0x5b9db6(0x4bd)]((0x0,i[_0x5b9db6(0x4e7)])(async _0x3ec9ba=>{const _0x4cc76e=_0x5b9db6;let _0x101d10=_0x3ec9ba;if(_0x101d10['status']===0x191){if(typeof window>'u')throw Error(_0x4cc76e(0x4c7));if(window[_0x4cc76e(0x457)](this['localeService']['t'](_0x4cc76e(0x48c)))){let _0x3129ef=window['encodeURIComponent'](window['location'][_0x4cc76e(0x497)]);window['location'][_0x4cc76e(0x497)]=this[_0x4cc76e(0x454)]()+_0x4cc76e(0x386)+_0x3129ef;}}return _0x101d10;}))});}[_0x85662d(0x454)](){const _0x14acae=_0x85662d;var _0x32ed67;let _0xd60b38=this[_0x14acae(0x377)][_0x14acae(0x262)](m);return(_0x32ed67=_0xd60b38==null?void 0x0:_0xd60b38[_0x14acae(0x229)])==null?'/universer-api/oidc/authpage':_0x32ed67;}};W=y([v(0x0,t[_0x85662d(0x29d)]),v(0x1,(0x0,t['Inject'])(l[_0x85662d(0x315)])),v(0x2,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)]))],W);let G=class extends t[_0x85662d(0x304)]{constructor(_0x4b4b6b,_0x267724){const _0x3e37f2=_0x85662d;super(),this[_0x3e37f2(0x3aa)]=_0x4b4b6b,this['_configService']=_0x267724,g(this,_0x3e37f2(0x44e),!0x1),this[_0x3e37f2(0x294)]();}[_0x85662d(0x294)](){const _0x2ce24f=_0x85662d;let _0x412e74=this;this[_0x2ce24f(0x221)](this[_0x2ce24f(0x3aa)][_0x2ce24f(0x4a9)]({'priority':0x3e7,'interceptor':(0x0,l[_0x2ce24f(0x1fc)])({'isMatch'(_0x4ba2ae){const _0x57a3e4=_0x2ce24f;var _0xc097b6;if(_0x4ba2ae[_0x57a3e4(0x40f)]==='POST'&&(_0xc097b6=_0x4ba2ae[_0x57a3e4(0x449)])!=null&&_0xc097b6[_0x57a3e4(0x2a6)]){let {objectID:_0x40731a,objectType:_0x1bde77}=_0x4ba2ae['requestParams'][_0x57a3e4(0x2a6)]||{};if(!_0x40731a||_0x1bde77===void 0x0)return!0x1;let _0x133434=_0x412e74[_0x57a3e4(0x306)]()+'/'+_0x1bde77+_0x57a3e4(0x293)+_0x40731a+_0x57a3e4(0x3c9);if(_0x4ba2ae[_0x57a3e4(0x26a)]===_0x133434)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2a6fbb){const _0x44e6c0=_0x2ce24f;var _0x2d7671;return(_0x2d7671=_0x2a6fbb[_0x44e6c0(0x449)])==null?void 0x0:_0x2d7671['body'];},'mergeParamsToRequest'(_0x39eb1a,_0x488565){const _0x3da612=_0x2ce24f;let _0x448f68=_0x412e74[_0x3da612(0x306)]()+_0x3da612(0x2ad),_0x6c91be=_0x39eb1a[_0x3da612(0x399)]((_0x7190ee,_0x330e7e)=>{const _0x6fbfc8=_0x3da612;let {unitID:_0x3d962b,objectID:_0x4dfc6b,objectType:_0x56446f,actions:_0xcd3c3d}=_0x330e7e;return _0x7190ee[_0x3d962b]||(_0x7190ee[_0x3d962b]={}),_0x7190ee[_0x3d962b][_0x4dfc6b]||(_0x7190ee[_0x3d962b][_0x4dfc6b]={'objectID':_0x4dfc6b,'objectType':_0x56446f,'actions':[]}),_0x7190ee[_0x3d962b][_0x4dfc6b][_0x6fbfc8(0x470)][_0x6fbfc8(0x4e6)](..._0xcd3c3d),_0x7190ee;},{}),_0xa8f753=[];for(let _0x2ee7e1 in _0x6c91be)for(let _0x1084a3 in _0x6c91be[_0x2ee7e1]){let {actions:_0x12b2dd,objectType:_0x58278e}=_0x6c91be[_0x2ee7e1][_0x1084a3],_0x200239=[...new Set(_0x12b2dd)];_0xa8f753['push']({'unitID':_0x2ee7e1,'objectID':_0x1084a3,'objectType':_0x58278e,'actions':_0x200239});}return new l['HTTPRequest'](_0x3da612(0x3db),_0x448f68,{'headers':_0x488565['headers'],'withCredentials':_0x488565[_0x3da612(0x396)],'responseType':_0x488565[_0x3da612(0x274)],'body':{'requests':_0xa8f753}});}},{'distributeResult'(_0xbed74b,_0x4b743c){const _0x20bf68=_0x2ce24f;let {objectActions:_0x45a286}=_0xbed74b;return _0x4b743c[_0x20bf68(0x3fc)](_0x2e9a7b=>{const _0x38e508=_0x20bf68;let {unitID:_0x8e9a7,objectID:_0x58559d,actions:_0x21af16}=_0x2e9a7b,_0x5c8326=_0x45a286[_0x38e508(0x4d5)](_0x212ba2=>_0x212ba2['unitID']===_0x8e9a7&&_0x212ba2[_0x38e508(0x296)]===_0x58559d);return{'config':_0x2e9a7b,'result':{'actions':_0x21af16[_0x38e508(0x3fc)](_0x47e84e=>_0x5c8326==null?void 0x0:_0x5c8326['actions'][_0x38e508(0x4d5)](_0x54dd64=>_0x54dd64[_0x38e508(0x1fa)]===_0x47e84e))[_0x38e508(0x2ca)](_0x29bb98=>!!_0x29bb98),'error':_0xbed74b[_0x38e508(0x3cc)]}};});}})}));}[_0x85662d(0x306)](){const _0x3ab698=_0x85662d;var _0x559a4d;let _0x50ad83=this[_0x3ab698(0x377)][_0x3ab698(0x262)](m);return(_0x559a4d=_0x50ad83==null?void 0x0:_0x50ad83[_0x3ab698(0x2f4)])==null?'/universer-api/authz':_0x559a4d;}async[_0x85662d(0x4bc)](_0x261fb0){const _0x1dcbe9=_0x85662d;let _0xd7458d=this['_getAPIPrefixPath']()+'/'+_0x261fb0[_0x1dcbe9(0x1ff)]+'/object';return(await this[_0x1dcbe9(0x3aa)][_0x1dcbe9(0x3d4)](_0xd7458d,{'body':_0x261fb0}))[_0x1dcbe9(0x2a6)][_0x1dcbe9(0x296)]||'';}async[_0x85662d(0x40e)](_0x55a3df){const _0x59ee93=_0x85662d;let _0x310990=this[_0x59ee93(0x306)]()+_0x59ee93(0x32c);return(await this[_0x59ee93(0x3aa)][_0x59ee93(0x3d4)](_0x310990,{'body':_0x55a3df}))[_0x59ee93(0x2a6)][_0x59ee93(0x28d)];}async[_0x85662d(0x1d7)](_0x3a081b){const _0x5286f6=_0x85662d;var _0x4c46ea;let _0x3108e2=this[_0x5286f6(0x306)]()+'/'+_0x3a081b[_0x5286f6(0x1ff)]+'/object/'+_0x3a081b[_0x5286f6(0x296)],_0xd2eda0=await this[_0x5286f6(0x3aa)][_0x5286f6(0x2b5)](_0x3108e2,{'body':_0x3a081b});if((_0xd2eda0==null||(_0x4c46ea=_0xd2eda0['body'])==null||(_0x4c46ea=_0x4c46ea[_0x5286f6(0x3cc)])==null?void 0x0:_0x4c46ea[_0x5286f6(0x1d4)])!==0x1)throw Error(_0x5286f6(0x338));}async[_0x85662d(0x29b)](_0x5e3667){const _0x5e4ee8=_0x85662d;let _0x266e2e=this[_0x5e4ee8(0x306)]()+'/'+_0x5e3667[_0x5e4ee8(0x1ff)]+_0x5e4ee8(0x293)+_0x5e3667[_0x5e4ee8(0x296)]+_0x5e4ee8(0x3c9);return(await this[_0x5e4ee8(0x3aa)][_0x5e4ee8(0x3d4)](_0x266e2e,{'body':_0x5e3667}))[_0x5e4ee8(0x2a6)][_0x5e4ee8(0x470)];}async[_0x85662d(0x4c8)](_0xc87ac8){const _0x2841e9=_0x85662d;let _0x41b1e8=this[_0x2841e9(0x306)]()+_0x2841e9(0x2ad);return(await this[_0x2841e9(0x3aa)]['post'](_0x41b1e8,{'body':{'requests':_0xc87ac8}}))[_0x2841e9(0x2a6)][_0x2841e9(0x2f1)];}async[_0x85662d(0x1e9)](_0x29ac78){const _0x45f7f4=_0x85662d;let _0x11b125=this[_0x45f7f4(0x306)]()+'/'+_0x29ac78[_0x45f7f4(0x1ff)]+_0x45f7f4(0x37c),_0x1a6b23=await this[_0x45f7f4(0x3aa)][_0x45f7f4(0x3d4)](_0x11b125,{'body':_0x29ac78});return{'roles':_0x1a6b23[_0x45f7f4(0x2a6)][_0x45f7f4(0x482)],'actions':_0x1a6b23[_0x45f7f4(0x2a6)]['actions']};}async[_0x85662d(0x218)](_0x1d900a){const _0x174d67=_0x85662d;let _0x3071a2=this[_0x174d67(0x306)]()+'/collaborator';await this['_HTTPService'][_0x174d67(0x36e)](_0x3071a2,{'params':{'collaboratorID':_0x1d900a['collaboratorID'],'objectID':_0x1d900a[_0x174d67(0x296)],'unitID':_0x1d900a[_0x174d67(0x357)]}});}async[_0x85662d(0x254)](_0x1a7e9a){const _0x38f54c=_0x85662d;let _0x56b74e=this[_0x38f54c(0x306)]()+_0x38f54c(0x4b4);await this['_HTTPService'][_0x38f54c(0x24e)](_0x56b74e,{'body':_0x1a7e9a});}async[_0x85662d(0x384)](_0xb7240e){const _0x5b20f6=_0x85662d;let _0x3633af=this[_0x5b20f6(0x306)]()+'/collaborator';await this['_HTTPService'][_0x5b20f6(0x3d4)](_0x3633af,{'body':_0xb7240e});}async[_0x85662d(0x209)](_0x494507){const _0x739d83=_0x85662d;var _0x5b00ce;let _0x3340ab=this['_getAPIPrefixPath']()+_0x739d83(0x4b4),_0x48ebd7=await this[_0x739d83(0x3aa)][_0x739d83(0x39b)](_0x3340ab,{'params':{'objectID':_0x494507['objectID'],'unitID':_0x494507['unitID']}});return this[_0x739d83(0x4a1)]((_0x5b00ce=_0x48ebd7[_0x739d83(0x2a6)][_0x739d83(0x245)])==null?!0x1:_0x5b00ce),_0x48ebd7['body'][_0x739d83(0x488)];}async[_0x85662d(0x21d)](_0x17666b){const _0x8a3bba=_0x85662d;let _0x8b538f=this[_0x8a3bba(0x306)]()+_0x8a3bba(0x4b4);await this[_0x8a3bba(0x3aa)]['put'](_0x8b538f,{'body':_0x17666b});}['setCfgEnableObjInherit'](_0x2d432c){const _0x4f41a2=_0x85662d;this[_0x4f41a2(0x44e)]=_0x2d432c;}[_0x85662d(0x279)](){const _0x58249c=_0x85662d;return this[_0x58249c(0x44e)];}};G=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l[_0x85662d(0x315)])),v(0x1,(0x0,t['Inject'])(t[_0x85662d(0x29d)]))],G);function at(_0x42061c){const _0x1804f5=_0x85662d;let _0x444529=atob(_0x42061c),_0x318dfd=new Uint8Array(_0x444529[_0x1804f5(0x45a)]);for(let _0x3016de=0x0;_0x3016de<_0x444529[_0x1804f5(0x45a)];_0x3016de++)_0x318dfd[_0x3016de]=_0x444529[_0x1804f5(0x1c8)](_0x3016de);return _0x318dfd;}function ot(_0x1da944){const _0x41d3f9=_0x85662d;let _0x275574='';for(let _0x3d62dc=0x0;_0x3d62dc<_0x1da944[_0x41d3f9(0x45a)];_0x3d62dc++)_0x275574+=String[_0x41d3f9(0x1dd)](_0x1da944[_0x3d62dc]);return btoa(_0x275574);}function st(_0x17ace0,_0x2d9146){const _0x1f5dcd=_0x85662d;let _0xec8330=at(_0x2d9146),_0x4efe8d=(0x0,f[_0x1f5dcd(0x1d3)])(0x10);return ot((0x0,f['concatBytes'])(_0x4efe8d,(0x0,d[_0x1f5dcd(0x2b6)])(_0xec8330,_0x4efe8d)['encrypt']((0x0,f['utf8ToBytes'])(_0x17ace0))));}function ct(){const _0x2ede1b=_0x85662d;let _0x24b808=(0x0,u[_0x2ede1b(0x235)])()[_0x2ede1b(0x2cc)];if(typeof window<'u'&&window[_0x2ede1b(0x3c3)]!==void 0x0&&_0x24b808){let _0x539360={'time':Math[_0x2ede1b(0x2eb)](Date[_0x2ede1b(0x1d2)]()/0x3e8),'domain':location[_0x2ede1b(0x3b5)]};return st(JSON['stringify'](_0x539360),_0x24b808);}}let K=class{constructor(_0x44c064){const _0x251cc6=_0x85662d;this[_0x251cc6(0x28e)]=_0x44c064,this[_0x251cc6(0x36b)]();}[_0x85662d(0x36b)](){const _0x2c5943=_0x85662d;this['_httpService'][_0x2c5943(0x4a9)]({'interceptor':(_0x215837,_0x1c71b7)=>{const _0xb165e8=_0x2c5943;let _0x4ffb97=ct();return _0x4ffb97&&_0x215837[_0xb165e8(0x2c8)][_0xb165e8(0x43f)](_0xb165e8(0x32b),_0x4ffb97),_0x1c71b7(_0x215837);}});}};K=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l['HTTPService']))],K);let q=class extends t[_0x85662d(0x42c)]{constructor(_0x580b7a,_0x52a4fc,_0x368210){const _0x51e38c=_0x85662d;super(),this[_0x51e38c(0x29f)]=_0x580b7a,this[_0x51e38c(0x325)]=_0x52a4fc,this['_localCacheService']=_0x368210,g(this,_0x51e38c(0x344),new i['BehaviorSubject'](null)),g(this,_0x51e38c(0x453),new i[(_0x51e38c(0x439))]()),g(this,_0x51e38c(0x2b3),this['_unitInfo$']['asObservable']()),g(this,_0x51e38c(0x2b7),this[_0x51e38c(0x453)][_0x51e38c(0x2dd)]());}['dispose'](){const _0x34c467=_0x85662d;super[_0x34c467(0x469)](),this[_0x34c467(0x453)][_0x34c467(0x3ab)](),this[_0x34c467(0x344)][_0x34c467(0x3ab)]();}async[_0x85662d(0x37d)](_0x1e12d7,_0x9f891b,_0x25af12,_0x321c22){const _0x2d2ec4=_0x85662d;this[_0x2d2ec4(0x344)][_0x2d2ec4(0x49a)]({'unitId':_0x1e12d7,'type':_0x9f891b,'subUnitId':_0x321c22});let _0x5bd4e6=null;switch(_0x9f891b){case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x4d3)]:_0x5bd4e6=await this[_0x2d2ec4(0x325)]['loadSheet'](_0x1e12d7,_0x25af12,void 0x0,{'initialSubUnitId':_0x321c22});break;case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x39f)]:_0x5bd4e6=await this['_snapshotService'][_0x2d2ec4(0x483)](_0x1e12d7,_0x25af12);break;case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x2cf)]:_0x5bd4e6=await this[_0x2d2ec4(0x325)][_0x2d2ec4(0x2aa)](_0x1e12d7,_0x25af12);break;case t['UniverInstanceType'][_0x2d2ec4(0x4b5)]:_0x5bd4e6=await this[_0x2d2ec4(0x325)][_0x2d2ec4(0x4aa)](_0x1e12d7,_0x25af12);break;case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x440)]:_0x5bd4e6=await this['_snapshotService'][_0x2d2ec4(0x405)](_0x1e12d7,_0x25af12);break;default:this[_0x2d2ec4(0x29f)][_0x2d2ec4(0x3cc)]('[DataLoaderService]',_0x2d2ec4(0x40d));break;}return _0x5bd4e6&&this[_0x2d2ec4(0x453)][_0x2d2ec4(0x49a)](_0x5bd4e6),_0x5bd4e6;}async['loadUnit'](_0x4d2002,_0x2b9d51,_0x2d5d23){const _0x517d5d=_0x85662d;var _0x41bbe8;this['_unitInfo$'][_0x517d5d(0x49a)]({'unitId':_0x4d2002,'type':_0x2b9d51,'subUnitId':_0x2d5d23});let _0x533efa=0x0,_0x390efc=await((_0x41bbe8=this[_0x517d5d(0x1f4)])==null?void 0x0:_0x41bbe8[_0x517d5d(0x264)](_0x4d2002));return _0x390efc&&(_0x390efc[_0x517d5d(0x4b9)]||_0x390efc[_0x517d5d(0x406)][_0x517d5d(0x45a)]!==0x0)&&(_0x533efa=_0x390efc['rev']),_0x533efa===0x0&&this[_0x517d5d(0x29f)][_0x517d5d(0x3a9)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x517d5d(0x37d)](_0x4d2002,_0x2b9d51,_0x533efa,_0x2d5d23);}};q=y([v(0x0,t[_0x85662d(0x3a4)]),v(0x1,(0x0,t[_0x85662d(0x340)])(e['SnapshotService'])),v(0x2,(0x0,t['Optional'])(S))],q);let J=class{constructor(_0x218d5d,_0x5c1667,_0x56f0f3){const _0x2bbbf6=_0x85662d;this[_0x2bbbf6(0x28e)]=_0x218d5d,this['_configService']=_0x5c1667,this['_univerInstanceService']=_0x56f0f3,g(this,_0x2bbbf6(0x2f6),0x0),g(this,_0x2bbbf6(0x216),new i[(_0x2bbbf6(0x439))]()),g(this,'change$',this['_change$']),g(this,_0x2bbbf6(0x41c),new Map());}[_0x85662d(0x3c6)](_0x5f3547){const _0x3cca59=_0x85662d;this[_0x3cca59(0x2f6)]=_0x5f3547,this[_0x3cca59(0x216)][_0x3cca59(0x49a)](_0x5f3547);}[_0x85662d(0x3fa)](_0x86cc3e,_0x19360a){const _0xb8b351=_0x85662d;if(_0x19360a===t[_0xb8b351(0x489)]['BASE64']){let _0x2e4ec4=new Image();return _0x2e4ec4[_0xb8b351(0x3f9)]=_0x86cc3e,_0x2e4ec4;}return this['_imageSourceCache'][_0xb8b351(0x39b)](_0x86cc3e);}[_0x85662d(0x360)](_0x258225,_0x142f43,_0x22d9cc){const _0xc9861c=_0x85662d;_0x142f43===t[_0xc9861c(0x489)][_0xc9861c(0x290)]||_0x22d9cc==null||this[_0xc9861c(0x41c)]['set'](_0x258225,_0x22d9cc);}async['getImage'](_0x4035c3){const _0x294322=_0x85662d;try{let _0x395b7f=this[_0x294322(0x4ad)](this[_0x294322(0x47e)](),''+_0x4035c3),_0x23a4f0=(await this[_0x294322(0x28e)][_0x294322(0x39b)](_0x395b7f))[_0x294322(0x2a6)];if(_0x23a4f0[_0x294322(0x3cc)]&&_0x23a4f0[_0x294322(0x3cc)][_0x294322(0x1d4)]===a[_0x294322(0x233)]['OK']){let _0x382ed2=(0x0,t[_0x294322(0x31e)])(_0x23a4f0[_0x294322(0x26a)],this[_0x294322(0x303)]());return Promise[_0x294322(0x2e5)](_0x382ed2);}return Promise[_0x294322(0x434)](_0x23a4f0[_0x294322(0x3cc)]);}catch(_0x1900a4){return Promise['reject'](_0x1900a4);}}async[_0x85662d(0x49b)](_0xa3767b){const _0x315da3=_0x85662d;let _0x38f4d7='';if(!p[_0x315da3(0x499)]['includes'](_0xa3767b['type']))return this['_decreaseWaiting'](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)][_0x315da3(0x208)]));if(_0xa3767b[_0x315da3(0x362)]>(0x0,p[_0x315da3(0x37a)])())return this['_decreaseWaiting'](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)][_0x315da3(0x21f)]));try{let _0x5d7a33=new FormData();_0x5d7a33[_0x315da3(0x2e0)](_0x315da3(0x4c9),_0xa3767b);let _0x321ae4=this[_0x315da3(0x22a)][_0x315da3(0x26b)](),_0x1df79e=_0x321ae4==null?void 0x0:_0x321ae4['getUnitId']();if(!_0x1df79e)throw Error(_0x315da3(0x3ad));let _0x243c8=this[_0x315da3(0x231)]()+_0x315da3(0x452)+_0xa3767b[_0x315da3(0x362)][_0x315da3(0x2da)]()+_0x315da3(0x324)+a[_0x315da3(0x27d)][_0x315da3(0x43d)]+_0x315da3(0x4ea)+encodeURIComponent(_0x1df79e),_0x10d974={'body':_0x5d7a33},_0x4a8c01=(await this[_0x315da3(0x28e)][_0x315da3(0x3d4)](_0x243c8,_0x10d974))['body'];if(typeof _0x4a8c01[_0x315da3(0x308)]!=_0x315da3(0x1dc))return this['_decreaseWaiting'](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)]['ERROR_IMAGE']));_0x38f4d7=_0x4a8c01[_0x315da3(0x308)];}catch{return this[_0x315da3(0x225)](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)][_0x315da3(0x408)]));}return new Promise((_0x445f76,_0xabcc69)=>{const _0x4e35a0=_0x315da3;let _0x586ab7=new FileReader();_0x586ab7[_0x4e35a0(0x398)](_0xa3767b),_0x586ab7[_0x4e35a0(0x376)]=_0x270491=>{const _0x1cd786=_0x4e35a0;var _0x57c965;let _0x5923eb=(_0x57c965=_0x270491[_0x1cd786(0x1f0)])==null?void 0x0:_0x57c965[_0x1cd786(0x461)];if(_0x5923eb==null){this[_0x1cd786(0x225)](),_0xabcc69(Error(t[_0x1cd786(0x1d6)][_0x1cd786(0x408)]));return;}_0x445f76({'imageId':(0x0,t[_0x1cd786(0x2e4)])(0x6),'imageSourceType':t[_0x1cd786(0x489)]['UUID'],'source':_0x38f4d7,'base64Cache':_0x5923eb,'status':t[_0x1cd786(0x1d6)][_0x1cd786(0x366)]}),this['_decreaseWaiting']();};});}[_0x85662d(0x231)](){const _0x4d7ea0=_0x85662d;var _0x1f4adf;let _0x3c6e07=this[_0x4d7ea0(0x377)][_0x4d7ea0(0x262)](m);return(_0x1f4adf=_0x3c6e07==null?void 0x0:_0x3c6e07[_0x4d7ea0(0x391)])==null?_0x4d7ea0(0x326):_0x1f4adf;}[_0x85662d(0x47e)](){const _0x3d2596=_0x85662d;var _0x50e230;let _0x12dcc4=this['_configService'][_0x3d2596(0x262)](m);return(_0x50e230=_0x12dcc4==null?void 0x0:_0x12dcc4[_0x3d2596(0x40a)])==null?'/universer-api/file/{fileID}/sign-url':_0x50e230;}[_0x85662d(0x303)](){const _0x2deb8c=_0x85662d;var _0x290fa7;let _0x3849ee=this[_0x2deb8c(0x377)]['getConfig'](m);return(_0x290fa7=_0x3849ee==null?void 0x0:_0x3849ee[_0x2deb8c(0x1ee)])==null?location[_0x2deb8c(0x3a2)]:_0x290fa7;}['_replaceFileID'](_0x7de463,_0x2e060c){const _0x52bab0=_0x85662d;return _0x7de463[_0x52bab0(0x277)](_0x52bab0(0x3a5),_0x2e060c);}['_decreaseWaiting'](){const _0x57b04c=_0x85662d;--this['_waitCount'],this['_change$'][_0x57b04c(0x49a)](this['_waitCount']);}};J=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l['HTTPService'])),v(0x1,t[_0x85662d(0x29d)]),v(0x2,(0x0,t['Inject'])(t[_0x85662d(0x33e)]))],J);let Y=class{constructor(_0x5202b0,_0x2f9fb6){const _0x2c8481=_0x85662d;this[_0x2c8481(0x377)]=_0x5202b0,this[_0x2c8481(0x3aa)]=_0x2f9fb6;}[_0x85662d(0x306)](){const _0x8d697e=_0x85662d;var _0x2ab710;let _0x31dda9=this[_0x8d697e(0x377)][_0x8d697e(0x262)](m);return(_0x2ab710=_0x31dda9==null?void 0x0:_0x31dda9[_0x8d697e(0x2f4)])==null?_0x8d697e(0x281):_0x2ab710;}async['list'](_0x5af184){const _0x21c584=_0x85662d;let _0x2cd81d=this[_0x21c584(0x306)]()+_0x21c584(0x4b4);return{'list':[{'title':_0x21c584(0x35b),'mentions':(await this[_0x21c584(0x3aa)][_0x21c584(0x39b)](_0x2cd81d,{'params':{'objectID':_0x5af184['unitId'],'unitID':_0x5af184[_0x21c584(0x420)]}}))[_0x21c584(0x2a6)][_0x21c584(0x488)][_0x21c584(0x3fc)](_0x537678=>({'objectId':_0x537678['id'],'name':_0x537678[_0x21c584(0x477)][_0x21c584(0x239)],'metadata':{'icon':_0x537678['subject'][_0x21c584(0x46a)]},'label':_0x537678[_0x21c584(0x477)][_0x21c584(0x239)],'objectType':t['MentionType'][_0x21c584(0x255)]})),'metadata':{},'type':t[_0x21c584(0x373)][_0x21c584(0x255)]}]};}};Y=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t['IConfigService'])),v(0x1,(0x0,t[_0x85662d(0x340)])(l[_0x85662d(0x315)]))],Y);let X=class extends t[_0x85662d(0x42c)]{constructor(_0x492ad9,_0x208316,_0x59f5f5,_0x1a3f80,_0x1a181b){const _0x20940e=_0x85662d;super(),this['_injector']=_0x492ad9,this[_0x20940e(0x22a)]=_0x208316,this[_0x20940e(0x23c)]=_0x59f5f5,this[_0x20940e(0x328)]=_0x1a3f80,this[_0x20940e(0x46e)]=_0x1a181b,this['_initUnitPermissionChange'](),this[_0x20940e(0x312)]();}[_0x85662d(0x312)](){const _0x4d8152=_0x85662d;let _0x431d=async _0x175f7a=>{const _0x270acd=_0x342d;(await this[_0x270acd(0x328)][_0x270acd(0x232)](_0x175f7a))[_0x270acd(0x25d)][_0x270acd(0x4bd)]((0x0,s['filter'])(_0x198487=>_0x198487['eventID']===e[_0x270acd(0x3fb)][_0x270acd(0x41b)]),(0x0,s[_0x270acd(0x2fc)])(this[_0x270acd(0x3df)]))[_0x270acd(0x46c)](_0x14c30e=>{const _0x149b9e=_0x270acd;let {reason:_0x20aaaa}=_0x14c30e[_0x149b9e(0x28a)];this[_0x149b9e(0x46e)][_0x149b9e(0x3ae)]({'id':_0x149b9e(0x446),'data':_0x20aaaa}),this[_0x149b9e(0x23c)]['updatePermissionPoint'](new r[(_0x149b9e(0x416))](_0x175f7a)['id'],!0x1),this[_0x149b9e(0x328)][_0x149b9e(0x1da)](_0x175f7a);});};(0x0,i[_0x4d8152(0x22e)])(this[_0x4d8152(0x22a)][_0x4d8152(0x1e6)](t[_0x4d8152(0x378)][_0x4d8152(0x4d3)]),this[_0x4d8152(0x22a)]['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x4d8152(0x39f)]),this[_0x4d8152(0x22a)]['getTypeOfUnitAdded$'](t[_0x4d8152(0x378)]['UNIVER_BOARD']),this[_0x4d8152(0x22a)][_0x4d8152(0x1e6)](t[_0x4d8152(0x378)]['UNIVER_BASE']))[_0x4d8152(0x4bd)]((0x0,s[_0x4d8152(0x3fc)])(_0x2929eb=>_0x2929eb[_0x4d8152(0x280)][_0x4d8152(0x3b9)]()),(0x0,s[_0x4d8152(0x2ca)])(_0x386e05=>!(0x0,t[_0x4d8152(0x207)])(_0x386e05)),(0x0,s[_0x4d8152(0x2fc)])(this['dispose$']))['subscribe'](_0x40a1a9=>{_0x431d(_0x40a1a9);});}[_0x85662d(0x334)](){const _0x324ade=_0x85662d;let _0x9d20fc=async _0x3ac512=>{const _0x36aabe=_0x342d;let _0x41e5b8=await this['_collaborationSessionService'][_0x36aabe(0x232)](_0x3ac512),_0x3a0041=this[_0x36aabe(0x3f3)][_0x36aabe(0x39b)](r[_0x36aabe(0x368)]);_0x41e5b8[_0x36aabe(0x25d)][_0x36aabe(0x4bd)]((0x0,s[_0x36aabe(0x2ca)])(_0x55abd4=>_0x55abd4[_0x36aabe(0x336)]===e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,s['takeUntil'])(this[_0x36aabe(0x3df)]))[_0x36aabe(0x46c)](_0x23800a=>{const _0x3f599d=_0x36aabe;let {objectId:_0x3a629a}=_0x23800a[_0x3f599d(0x28a)];_0x3a629a===_0x3ac512?_0x3a0041[_0x3f599d(0x3c4)](_0x3ac512):_0x3a0041[_0x3f599d(0x4ec)](_0x3ac512,_0x3a629a);});};(0x0,i['merge'])(this['_univerInstanceService'][_0x324ade(0x1e6)](t[_0x324ade(0x378)][_0x324ade(0x4d3)]))[_0x324ade(0x4bd)]((0x0,s['map'])(_0x322edb=>_0x322edb['unit']['getUnitId']()),(0x0,s[_0x324ade(0x2ca)])(_0xf139a=>!(0x0,t[_0x324ade(0x207)])(_0xf139a)),(0x0,s['takeUntil'])(this[_0x324ade(0x3df)]))[_0x324ade(0x46c)](_0x15954b=>{_0x9d20fc(_0x15954b);});}};X=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x1,t[_0x85662d(0x33e)]),v(0x2,t[_0x85662d(0x4f4)]),v(0x3,(0x0,t[_0x85662d(0x340)])(V)),v(0x4,(0x0,t[_0x85662d(0x340)])(_))],X);let Z=class{constructor(_0x1c2b8d,_0x5e60bb){const _0x4dd761=_0x85662d;this[_0x4dd761(0x377)]=_0x1c2b8d,this['_httpService']=_0x5e60bb;}async['getUnitOnRev'](_0x43c215,_0x249ce4){const _0x3c6bf6=_0x85662d;var _0x17eb76;let {unitID:_0x4c0342,type:_0x4c2bf9,revision:_0x36f710=0x0}=_0x249ce4,_0x185348=this[_0x3c6bf6(0x3c2)]()+'/'+_0x4c2bf9+'/unit/'+_0x4c0342+_0x3c6bf6(0x3c7)+_0x36f710,_0x214d42=(await this[_0x3c6bf6(0x28e)]['get'](_0x185348))[_0x3c6bf6(0x2a6)],_0x13caa8=(_0x17eb76=_0x214d42[_0x3c6bf6(0x4d0)])==null?void 0x0:_0x17eb76[_0x3c6bf6(0x2c5)];if(_0x13caa8){let _0x2476db=_0x13caa8==null?void 0x0:_0x13caa8[_0x3c6bf6(0x481)];_0x13caa8[_0x3c6bf6(0x481)]=e[_0x3c6bf6(0x4b0)][_0x3c6bf6(0x443)]((0x0,e[_0x3c6bf6(0x36d)])(_0x2476db)),Object[_0x3c6bf6(0x342)](_0x13caa8[_0x3c6bf6(0x3a8)])[_0x3c6bf6(0x30f)](([,_0x3a913c])=>{const _0xd77f3e=_0x3c6bf6;let _0x341bf2=_0x3a913c[_0xd77f3e(0x481)];_0x3a913c['originalMeta']=e['textEncoder']['encode']((0x0,e[_0xd77f3e(0x36d)])(_0x341bf2));});}return _0x214d42;}async[_0x85662d(0x1f8)](_0x44ffe8,_0x38137a){const _0x5dc77b=_0x85662d;let {unitID:_0x5a72e7,type:_0x5608d7,blockID:_0x3934ad}=_0x38137a,_0x46bf16=this[_0x5dc77b(0x358)]()+'/'+_0x5608d7+_0x5dc77b(0x247)+_0x5a72e7+_0x5dc77b(0x385)+_0x3934ad;return(await this[_0x5dc77b(0x28e)]['get'](_0x46bf16))[_0x5dc77b(0x2a6)];}async[_0x85662d(0x3b8)](_0x52396c,_0x338904){const _0x4e53fc=_0x85662d;let {unitID:_0x5d3611,type:_0x340df3,blockID:_0x3b6aae}=_0x338904,_0x55de11=this[_0x4e53fc(0x358)]()+'/block/'+_0x340df3+_0x4e53fc(0x247)+_0x5d3611+_0x4e53fc(0x385)+_0x3b6aae;return(await this['_httpService'][_0x4e53fc(0x39b)](_0x55de11))['body'];}async[_0x85662d(0x2ba)](_0x26965f,_0x3a6c88){const _0x30d6cf=_0x85662d;let {unitID:_0x2b4174,type:_0x3c8dfb,from:_0x493d6a,to:_0x5ce97e}=_0x3a6c88,_0x25c49b=this[_0x30d6cf(0x358)]()+'/'+_0x3c8dfb+'/unit/'+_0x2b4174+_0x30d6cf(0x33a)+_0x493d6a+_0x30d6cf(0x4f0)+_0x5ce97e;return(await this[_0x30d6cf(0x28e)]['get'](_0x25c49b))[_0x30d6cf(0x2a6)];}['getSnapshotAPIPath'](){const _0x52c476=_0x85662d;var _0x1b68ab;return(_0x1b68ab=this['_configService'][_0x52c476(0x262)](_0x52c476(0x414)))==null?this[_0x52c476(0x358)]():_0x1b68ab;}[_0x85662d(0x358)](){const _0x190235=_0x85662d;var _0xac2528;let _0x3f8634=this['_configService'][_0x190235(0x262)](m);return(_0xac2528=_0x3f8634==null?void 0x0:_0x3f8634[_0x190235(0x485)])==null?_0x190235(0x252):_0xac2528;}async[_0x85662d(0x333)](_0x36b0d9,_0x109395){const _0x55aabb=_0x85662d;let _0x4a9740=_0x55aabb(0x393)+_0x109395[_0x55aabb(0x212)]+_0x55aabb(0x247)+_0x109395[_0x55aabb(0x357)]+'/resources';return(await this[_0x55aabb(0x28e)][_0x55aabb(0x39b)](_0x4a9740,{'params':{'resourceId':JSON['stringify'](_0x109395[_0x55aabb(0x400)])}}))[_0x55aabb(0x2a6)];}[_0x85662d(0x2e3)](){const _0x24ebbc=_0x85662d;throw Error(_0x24ebbc(0x270));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x85662d(0x37b)](){const _0x49ba45=_0x85662d;throw Error(_0x49ba45(0x270));}[_0x85662d(0x4af)](){const _0x4423ad=_0x85662d;throw Error(_0x4423ad(0x270));}[_0x85662d(0x3e4)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x85662d(0x451)](){const _0x2d16b0=_0x85662d;throw Error(_0x2d16b0(0x270));}};Z=y([v(0x0,t[_0x85662d(0x29d)]),v(0x1,(0x0,t[_0x85662d(0x340)])(l['HTTPService']))],Z);let Q=class extends t[_0x85662d(0x3f8)]{constructor(_0x11a669,_0x473311,_0x21acbf,_0x5a4e2d,_0x4b3604){const _0x14b28a=_0x85662d;super(_0x11a669,_0x473311,_0x21acbf),this[_0x14b28a(0x30e)]=_0x5a4e2d,this[_0x14b28a(0x29f)]=_0x4b3604;}['transformUndoRedo'](_0x109fda,_0x32889d){const _0x184735=_0x85662d;let _0x11217f=this[_0x184735(0x1e3)](_0x109fda);if(_0x11217f)try{let _0xa5b222=this[_0x184735(0x4df)](_0x11217f,_0x32889d);this['_substituteUndoStack'](_0x109fda,_0xa5b222);}catch(_0x3dc90c){this[_0x184735(0x29f)][_0x184735(0x3cc)]('[CollaborationUndoRedoService]',_0x3dc90c),this[_0x184735(0x259)](_0x109fda);}let _0xfc7357=this[_0x184735(0x2d7)](_0x109fda);if(_0xfc7357)try{let _0x4e8ed8=this[_0x184735(0x4df)](_0xfc7357,_0x32889d);this['_substituteRedoStack'](_0x109fda,_0x4e8ed8);}catch(_0x33e197){this[_0x184735(0x29f)]['error'](_0x33e197),this['_clearRedo'](_0x109fda);}}[_0x85662d(0x259)](_0x2463ba){const _0x38b9db=_0x85662d;let _0x2187be=this['_getUndoStack'](_0x2463ba);_0x2187be&&(_0x2187be[_0x38b9db(0x45a)]=0x0,this[_0x38b9db(0x435)]());}['_clearRedo'](_0x41400f){const _0x3af4a4=_0x85662d;let _0x297c5e=this[_0x3af4a4(0x2d7)](_0x41400f);_0x297c5e&&(_0x297c5e[_0x3af4a4(0x45a)]=0x0,this[_0x3af4a4(0x435)]());}['_substituteUndoStack'](_0x2de000,_0x38a8c6){const _0x55615d=_0x85662d;this[_0x55615d(0x1cb)][_0x55615d(0x43f)](_0x2de000,_0x38a8c6),this[_0x55615d(0x435)]();}['_substituteRedoStack'](_0x1704db,_0xa0a85){const _0x1c2ec1=_0x85662d;this[_0x1c2ec1(0x3a1)][_0x1c2ec1(0x43f)](_0x1704db,_0xa0a85),this[_0x1c2ec1(0x435)]();}['_transformStack'](_0x148843,_0x4eb93b){const _0x19cafc=_0x85662d;let _0x25d00a=[],_0x14c3be=_0x4eb93b,_0x3c1983=_0x4eb93b;for(let _0x52015c=_0x148843[_0x19cafc(0x45a)]-0x1;_0x52015c>=0x0;_0x52015c--){let {unitID:_0x118abb,undoMutations:_0x184bdc,redoMutations:_0x4db6e9}=_0x148843[_0x52015c],_0x1d881f=this[_0x19cafc(0x30e)]['transformMutationsWithChangeset'](_0x14c3be,_0x184bdc),_0x267f27=this[_0x19cafc(0x30e)][_0x19cafc(0x3cf)](_0x3c1983,_0x4db6e9);if((0x0,e[_0x19cafc(0x287)])(_0x1d881f)||(0x0,e[_0x19cafc(0x287)])(_0x267f27)){this[_0x19cafc(0x29f)][_0x19cafc(0x3cc)](_0x19cafc(0x273),_0x19cafc(0x2f5),_0x1d881f,_0x267f27);break;}_0x14c3be=_0x1d881f[_0x19cafc(0x237)],_0x3c1983=_0x267f27[_0x19cafc(0x237)],_0x25d00a[_0x19cafc(0x4e6)]({'unitID':_0x118abb,'undoMutations':_0x1d881f[_0x19cafc(0x2f8)],'redoMutations':_0x267f27[_0x19cafc(0x2f8)]});}return _0x25d00a[_0x19cafc(0x367)]();}};Q=y([v(0x0,t[_0x85662d(0x33e)]),v(0x1,t[_0x85662d(0x448)]),v(0x2,t['IContextService']),v(0x3,e['ITransformService']),v(0x4,t[_0x85662d(0x3a4)])],Q);let $=class extends t[_0x85662d(0x1eb)]{constructor(_0x50d56e=ee,_0x46ab32,_0x3f3208,_0x1ff1ec){const _0xd6580f=_0x85662d;super(),this[_0xd6580f(0x29e)]=_0x50d56e,this[_0xd6580f(0x29f)]=_0x46ab32,this[_0xd6580f(0x3f3)]=_0x3f3208,this['_configService']=_0x1ff1ec;let {..._0x2068ee}=(0x0,t[_0xd6580f(0x22e)])({},ee,this[_0xd6580f(0x29e)]);if(!_0x2068ee['socketService'])throw Error(_0xd6580f(0x2a8));this[_0xd6580f(0x29e)]=_0x2068ee,this['_configService'][_0xd6580f(0x4bb)](m,_0x2068ee);}[_0x85662d(0x263)](){const _0x5ccb15=_0x85662d;this[_0x5ccb15(0x41e)](),this[_0x5ccb15(0x30c)]();}[_0x85662d(0x41e)](){const _0x5f1a1b=_0x85662d;var _0x1322f7,_0x5166f0;this[_0x5f1a1b(0x3f3)][_0x5f1a1b(0x4ca)](t[_0x5f1a1b(0x249)])&&this[_0x5f1a1b(0x29f)]['error'](_0x5f1a1b(0x4db),_0x5f1a1b(0x4e0));let _0x5c33a7=(0x0,t[_0x5f1a1b(0x3af)])([[t[_0x5f1a1b(0x249)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this[_0x5f1a1b(0x29e)][_0x5f1a1b(0x3ef)]}],[e[_0x5f1a1b(0x246)],{'useClass':Z}],[t[_0x5f1a1b(0x1f7)],{'useClass':G}],[t[_0x5f1a1b(0x1cd)],{'useClass':J}],[rt,{'useClass':U}],[t[_0x5f1a1b(0x22c)],{'useClass':Y}],[H],[tt]],(_0x1322f7=this[_0x5f1a1b(0x29e)])==null?void 0x0:_0x1322f7[_0x5f1a1b(0x456)]);if(!((_0x5166f0=this[_0x5f1a1b(0x29e)])!=null&&_0x5166f0[_0x5f1a1b(0x4e2)])){let _0x478dd7=_0x5c33a7[_0x5f1a1b(0x327)](([_0x27de6c])=>_0x27de6c===w);_0x478dd7!==-0x1&&_0x5c33a7[_0x5f1a1b(0x21e)](_0x478dd7,0x1);}(0x0,t[_0x5f1a1b(0x2a0)])(this['_injector'],_0x5c33a7);}['_initDependencies'](){const _0x8a8588=_0x85662d;var _0x11a3ca,_0x5bb54a;if(this[_0x8a8588(0x3f3)]['get'](l[_0x8a8588(0x315)])[_0x8a8588(0x4a9)]({'priority':0x14,'interceptor':(0x0,l[_0x8a8588(0x42d)])({'maxParallel':0x6})}),!((_0x11a3ca=this['_config'])!=null&&_0x11a3ca[_0x8a8588(0x49c)])){var _0x5a120d;(_0x5a120d=this[_0x8a8588(0x3f3)]['get'](S,t['Quantity'][_0x8a8588(0x206)]))==null||_0x5a120d[_0x8a8588(0x20e)]();}(_0x5bb54a=this[_0x8a8588(0x29e)])!=null&&_0x5bb54a[_0x8a8588(0x210)]&&(0x0,t['touchDependencies'])(this[_0x8a8588(0x3f3)],[[W]]),(0x0,t[_0x8a8588(0x438)])(this[_0x8a8588(0x3f3)],[[K],[H],[X]]);}};g($,_0x85662d(0x2e7),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),g($,_0x85662d(0x412),$e),g($,_0x85662d(0x34a),et),$=y([(0x0,t[_0x85662d(0x236)])(u['UniverLicensePlugin'],e['UniverCollaborationPlugin'],l['UniverNetworkPlugin']),v(0x1,t['ILogService']),v(0x2,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x3,t[_0x85662d(0x29d)])],$),exports['AttachmentSourceType']=nt,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x361),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x85662d(0x4bf)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x241),{'enumerable':!0x0,'get':function(){return j;}}),Object['defineProperty'](exports,_0x85662d(0x38e),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x85662d(0x4bf)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),exports[_0x85662d(0x2c3)]=m,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x4cb),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x85662d(0x4bf)](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x295),{'enumerable':!0x0,'get':function(){return F;}}),Object['defineProperty'](exports,_0x85662d(0x38a),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x3f5),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x35d),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x38f),{'enumerable':!0x0,'get':function(){return Ye;}}),exports['CollaborationStatus']=Be,exports['CollaborationUIEventId']=oe,exports[_0x85662d(0x200)]=_,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x299),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x85662d(0x38d)]=se,Object[_0x85662d(0x4bf)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x85662d(0x3e7)]=te,exports['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',exports[_0x85662d(0x2b1)]='/universer-api/user/session-ticket',Object['defineProperty'](exports,_0x85662d(0x34b),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x425),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x298),{'enumerable':!0x0,'get':function(){return P;}}),exports['HEARTBEAT_INTERVAL_KEY']=_0x85662d(0x323),exports[_0x85662d(0x2f9)]=_0x85662d(0x258),exports['IAttachmentIoService']=rt,exports['ICollaborationClientAdapterService']=Xe,exports[_0x85662d(0x1ec)]=qe,exports[_0x85662d(0x2df)]=S,exports[_0x85662d(0x32a)]=We,exports[_0x85662d(0x4cf)]=w,exports[_0x85662d(0x3ec)]=0x3e8,exports[_0x85662d(0x4d7)]='LOCAL_CACHE_INTERVAL',Object[_0x85662d(0x4bf)](exports,_0x85662d(0x1f1),{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x85662d(0x487),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x335),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x39a),{'enumerable':!0x0,'get':function(){return k;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x85662d(0x224),exports[_0x85662d(0x34f)]=_0x85662d(0x1d8),exports[_0x85662d(0x4d1)]=ve,Object['defineProperty'](exports,_0x85662d(0x46b),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x4c2),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x476),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x85662d(0x4ae),{'enumerable':!0x0,'get':function(){return O;}}),exports['UnitStatus']=Se,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x2dc),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports[_0x85662d(0x3d3)]=Ge,exports[_0x85662d(0x36f)]=be,exports[_0x85662d(0x266)]=Ke;