@univerjs-pro/collaboration-client 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +2 -0
  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/config/config.d.ts +19 -0
  66. package/lib/types/controllers/collaboration/changeset-submitter.d.ts +132 -0
  67. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +28 -1
  68. package/lib/types/controllers/collaboration/collaboration-state.d.ts +162 -70
  69. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +7 -0
  70. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +7 -3
  71. package/lib/types/facade/f-collaboration.d.ts +17 -0
  72. package/lib/types/facade/f-event.d.ts +87 -2
  73. package/lib/types/index.d.ts +5 -3
  74. package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -8
  75. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -1
  76. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +8 -0
  77. package/lib/types/services/socket/collaboration-socket.service.d.ts +10 -2
  78. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +5 -0
  79. package/lib/umd/facade.js +1 -1
  80. package/lib/umd/index.js +1 -1
  81. package/lib/umd/locale/ar-SA.js +1 -1
  82. package/lib/umd/locale/ca-ES.js +1 -1
  83. package/lib/umd/locale/de-DE.js +1 -1
  84. package/lib/umd/locale/en-US.js +1 -1
  85. package/lib/umd/locale/es-ES.js +1 -1
  86. package/lib/umd/locale/fa-IR.js +1 -1
  87. package/lib/umd/locale/fr-FR.js +1 -1
  88. package/lib/umd/locale/id-ID.js +1 -1
  89. package/lib/umd/locale/it-IT.js +1 -1
  90. package/lib/umd/locale/ja-JP.js +1 -1
  91. package/lib/umd/locale/ko-KR.js +1 -1
  92. package/lib/umd/locale/pl-PL.js +1 -1
  93. package/lib/umd/locale/pt-BR.js +1 -1
  94. package/lib/umd/locale/ru-RU.js +1 -1
  95. package/lib/umd/locale/sk-SK.js +1 -1
  96. package/lib/umd/locale/vi-VN.js +1 -1
  97. package/lib/umd/locale/zh-CN.js +1 -1
  98. package/lib/umd/locale/zh-HK.js +1 -1
  99. package/lib/umd/locale/zh-TW.js +1 -1
  100. package/package.json +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x47c516=_0x88a9;(function(_0x4ac19e,_0x39e52e){const _0xad1a30=_0x88a9,_0xb8ac0e=_0x4ac19e();while(!![]){try{const _0x113a92=parseInt(_0xad1a30(0x23a))/0x1*(-parseInt(_0xad1a30(0x4ca))/0x2)+parseInt(_0xad1a30(0x3f3))/0x3+parseInt(_0xad1a30(0x407))/0x4*(-parseInt(_0xad1a30(0x355))/0x5)+-parseInt(_0xad1a30(0x34f))/0x6*(parseInt(_0xad1a30(0x434))/0x7)+parseInt(_0xad1a30(0x52e))/0x8+-parseInt(_0xad1a30(0x22a))/0x9+parseInt(_0xad1a30(0x261))/0xa*(parseInt(_0xad1a30(0x414))/0xb);if(_0x113a92===_0x39e52e)break;else _0xb8ac0e['push'](_0xb8ac0e['shift']());}catch(_0x5e1e75){_0xb8ac0e['push'](_0xb8ac0e['shift']());}}}(_0x6063,0x6a4ee),Object[_0x47c516(0x202)](exports,Symbol[_0x47c516(0x517)],{'value':_0x47c516(0x45d)}));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={};function te(_0x29630b){const _0x2e0734=_0x47c516;return JSON[_0x2e0734(0x307)](_0x29630b)['length'];}function h(_0x34f693){'@babel/helpers - typeof';const _0x2571e4=_0x47c516;return h=typeof Symbol==_0x2571e4(0x484)&&typeof Symbol[_0x2571e4(0x4bd)]==_0x2571e4(0x380)?function(_0x506617){return typeof _0x506617;}:function(_0x1c699d){const _0xccdb02=_0x2571e4;return _0x1c699d&&typeof Symbol=='function'&&_0x1c699d[_0xccdb02(0x253)]===Symbol&&_0x1c699d!==Symbol['prototype']?_0xccdb02(0x380):typeof _0x1c699d;},h(_0x34f693);}function ne(_0x535a94,_0x426faa){const _0x18cef0=_0x47c516;if(h(_0x535a94)!=_0x18cef0(0x227)||!_0x535a94)return _0x535a94;var _0x2ae51f=_0x535a94[Symbol['toPrimitive']];if(_0x2ae51f!==void 0x0){var _0xc3ee7b=_0x2ae51f['call'](_0x535a94,_0x426faa||_0x18cef0(0x46f));if(h(_0xc3ee7b)!=_0x18cef0(0x227))return _0xc3ee7b;throw TypeError(_0x18cef0(0x3b7));}return(_0x426faa==='string'?String:Number)(_0x535a94);}function re(_0x41813d){const _0x5cd8b2=_0x47c516;var _0x22dd5d=ne(_0x41813d,_0x5cd8b2(0x46a));return h(_0x22dd5d)=='symbol'?_0x22dd5d:_0x22dd5d+'';}function g(_0x53a630,_0x99b030,_0x533b57){return(_0x99b030=re(_0x99b030))in _0x53a630?Object['defineProperty'](_0x53a630,_0x99b030,{'value':_0x533b57,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53a630[_0x99b030]=_0x533b57,_0x53a630;}let ie=function(_0x2aea50){const _0x246dd1=_0x47c516;return _0x2aea50[_0x246dd1(0x451)]='OTHER_CLIENT_EDITING',_0x2aea50[_0x246dd1(0x33b)]=_0x246dd1(0x33b),_0x2aea50[_0x246dd1(0x3f9)]='CONFLICT_PROCESSING',_0x2aea50[_0x246dd1(0x216)]=_0x246dd1(0x216),_0x2aea50[_0x246dd1(0x30f)]=_0x246dd1(0x30f),_0x2aea50['CLOSE_ROOM']='CLOSE_ROOM',_0x2aea50[_0x246dd1(0x345)]='JOIN_ROOM_FAILED',_0x2aea50['SOCKET_FAILED_RETRY']=_0x246dd1(0x3fb),_0x2aea50[_0x246dd1(0x4ce)]=_0x246dd1(0x4ce),_0x2aea50['SUBMIT_CHANGESET_TIMEOUT']=_0x246dd1(0x3e5),_0x2aea50;}({});var _=class{constructor(){const _0x1807f4=_0x47c516;g(this,_0x1807f4(0x21c),new i[(_0x1807f4(0x369))]()),g(this,'event$',this[_0x1807f4(0x21c)]['asObservable']());}['emitEvent'](_0x1b909f){const _0x215380=_0x47c516;this[_0x215380(0x21c)][_0x215380(0x485)](_0x1b909f);}},ae=class{constructor(){const _0xde36e9=_0x47c516;g(this,_0xde36e9(0x338),new i[(_0xde36e9(0x369))]()),g(this,_0xde36e9(0x28d),this['_commentUpdate$'][_0xde36e9(0x404)]());}['onCommentUpdate'](_0x5156e3){const _0x127118=_0x47c516;this['_commentUpdate$'][_0x127118(0x485)](_0x5156e3);}};function v(_0x3bdf90,_0x53ec26){return function(_0x36cccd,_0x2bf602){_0x53ec26(_0x36cccd,_0x2bf602,_0x3bdf90);};}function y(_0x439018,_0x4fa86e,_0x18fbc7,_0x104305){const _0x348ab=_0x47c516;var _0x3c1e38=arguments[_0x348ab(0x476)],_0x22ff1f=_0x3c1e38<0x3?_0x4fa86e:_0x104305===null?_0x104305=Object[_0x348ab(0x2ef)](_0x4fa86e,_0x18fbc7):_0x104305,_0x1ca185;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x22ff1f=Reflect[_0x348ab(0x37c)](_0x439018,_0x4fa86e,_0x18fbc7,_0x104305);else{for(var _0x9d5403=_0x439018[_0x348ab(0x476)]-0x1;_0x9d5403>=0x0;_0x9d5403--)(_0x1ca185=_0x439018[_0x9d5403])&&(_0x22ff1f=(_0x3c1e38<0x3?_0x1ca185(_0x22ff1f):_0x3c1e38>0x3?_0x1ca185(_0x4fa86e,_0x18fbc7,_0x22ff1f):_0x1ca185(_0x4fa86e,_0x18fbc7))||_0x22ff1f);}return _0x3c1e38>0x3&&_0x22ff1f&&Object[_0x348ab(0x202)](_0x4fa86e,_0x18fbc7,_0x22ff1f),_0x22ff1f;}let b=class extends t[_0x47c516(0x542)]{constructor(_0x3b6da9){const _0x548d73=_0x47c516;super(),this[_0x548d73(0x2af)]=_0x3b6da9,g(this,_0x548d73(0x27c),new Map()),g(this,_0x548d73(0x35e),new i['Subject']()),this[_0x548d73(0x4dc)]((0x0,i[_0x548d73(0x4f0)])(this[_0x548d73(0x2af)][_0x548d73(0x4bf)](t[_0x548d73(0x4f3)][_0x548d73(0x4ab)])[_0x548d73(0x3e8)]((0x0,s[_0x548d73(0x41a)])(_0x2b5f7f=>_0x2b5f7f[_0x548d73(0x4fc)]())),this[_0x548d73(0x2af)][_0x548d73(0x4bf)](t[_0x548d73(0x4f3)][_0x548d73(0x48e)])[_0x548d73(0x3e8)]((0x0,s[_0x548d73(0x41a)])(_0x42c348=>_0x42c348['getUnitId']())),this['_univerInstanceService'][_0x548d73(0x4bf)](t[_0x548d73(0x4f3)]['UNIVER_BOARD'])[_0x548d73(0x3e8)]((0x0,s[_0x548d73(0x41a)])(_0x59addf=>_0x59addf['getUnitId']())),this['_univerInstanceService'][_0x548d73(0x4bf)](t[_0x548d73(0x4f3)]['UNIVER_BASE'])[_0x548d73(0x3e8)]((0x0,s[_0x548d73(0x41a)])(_0x1adf9c=>_0x1adf9c[_0x548d73(0x4fc)]())))[_0x548d73(0x51a)](_0x7d5735=>this[_0x548d73(0x2c8)](_0x7d5735)));}['waitForRoom$'](_0x21206b){const _0x4e6f06=_0x47c516;return this['_roomMembers'][_0x4e6f06(0x51d)](_0x21206b)?(0x0,i['of'])(this[_0x4e6f06(0x27c)][_0x4e6f06(0x1fa)](_0x21206b)):this[_0x4e6f06(0x35e)][_0x4e6f06(0x3e8)]((0x0,s[_0x4e6f06(0x41a)])(_0x1989d8=>{const _0x492aa4=_0x4e6f06;if(_0x1989d8===_0x21206b)return this[_0x492aa4(0x27c)][_0x492aa4(0x1fa)](_0x1989d8);}));}[_0x47c516(0x388)](_0x4a725f,_0x5dab26){const _0x274fd6=_0x47c516;let _0x329d77=this[_0x274fd6(0x27c)][_0x274fd6(0x1fa)](_0x4a725f);_0x329d77||(_0x329d77=new oe(),this[_0x274fd6(0x27c)][_0x274fd6(0x2f5)](_0x4a725f,_0x329d77),this[_0x274fd6(0x35e)]['next'](_0x4a725f)),_0x329d77[_0x274fd6(0x388)](_0x5dab26);}['removeMember'](_0x14ec26,_0x25c124){const _0x58cb09=_0x47c516;let _0x5bfd9e=this[_0x58cb09(0x27c)][_0x58cb09(0x1fa)](_0x14ec26);_0x5bfd9e&&_0x5bfd9e[_0x58cb09(0x4a5)](_0x25c124);}[_0x47c516(0x2bc)](_0x395396){const _0x190e9e=_0x47c516;return this[_0x190e9e(0x27c)]['get'](_0x395396);}[_0x47c516(0x457)](_0xc6e158,_0x1a9b22){const _0xf75555=_0x47c516;let _0x56c2a5=this[_0xf75555(0x27c)][_0xf75555(0x1fa)](_0xc6e158);if(_0x56c2a5)return _0x56c2a5['getMember'](_0x1a9b22);}[_0x47c516(0x2c8)](_0xb02f40){const _0x18c547=_0x47c516;let _0x5b8988=this[_0x18c547(0x27c)]['get'](_0xb02f40);_0x5b8988&&(_0x5b8988[_0x18c547(0x328)](),this['_roomMembers'][_0x18c547(0x512)](_0xb02f40));}['dispose'](){const _0x23db99=_0x47c516;this['_roomMembers'][_0x23db99(0x4b1)](_0x257923=>_0x257923['dispose']()),this[_0x23db99(0x27c)]['clear'](),this[_0x23db99(0x35e)]['complete']();}};b=y([v(0x0,t['IUniverInstanceService'])],b);var oe=class extends t[_0x47c516(0x542)]{constructor(..._0x26025d){const _0x183587=_0x47c516;super(..._0x26025d),g(this,_0x183587(0x3fd),new Map()),g(this,_0x183587(0x2b3),new i[(_0x183587(0x2f4))](this[_0x183587(0x3fd)])),g(this,_0x183587(0x40a),this[_0x183587(0x2b3)]['asObservable']());}['dispose'](){const _0xbffcc8=_0x47c516;this['_members'][_0xbffcc8(0x4c9)](),this['_members$'][_0xbffcc8(0x2ce)]();}[_0x47c516(0x388)](_0x28fc36){const _0x39df6f=_0x47c516;this['_members']['set'](_0x28fc36[_0x39df6f(0x46e)],_0x28fc36),this[_0x39df6f(0x4af)]();}[_0x47c516(0x4a5)](_0x2bbafb){const _0x3d7f9a=_0x47c516;this[_0x3d7f9a(0x3fd)]['delete'](_0x2bbafb),this['_emitMembers']();}[_0x47c516(0x457)](_0x436ad2){const _0x1439a0=_0x47c516;return this[_0x1439a0(0x3fd)][_0x1439a0(0x1fa)](_0x436ad2);}[_0x47c516(0x3bc)](){const _0x24481e=_0x47c516;return Array['from'](this[_0x24481e(0x3fd)][_0x24481e(0x283)]());}[_0x47c516(0x4af)](){const _0x12c804=_0x47c516;this[_0x12c804(0x2b3)][_0x12c804(0x485)](this[_0x12c804(0x3fd)]);}};function se(_0x54661e,_0x53eb66){const _0x24b451=_0x47c516;if(le(_0x54661e))return _0x53eb66;if(_0x53eb66[_0x24b451(0x393)]===e[_0x24b451(0x427)][_0x24b451(0x45e)]){let _0x5731c4=me(_0x54661e),_0x5b1285=_0x53eb66;return{..._0x5b1285,'data':{..._0x5b1285[_0x24b451(0x3cf)],'unitID':_0x54661e[_0x24b451(0x2cf)][_0x24b451(0x220)],'unitType':_0x54661e[_0x24b451(0x2cf)][_0x24b451(0x4aa)]??_0x5b1285[_0x24b451(0x3cf)][_0x24b451(0x4aa)],'changeset':_0x5731c4['toRemote'](_0x5b1285[_0x24b451(0x3cf)][_0x24b451(0x28a)],he(_0x54661e))}};}if(_0x53eb66[_0x24b451(0x393)]===e[_0x24b451(0x427)][_0x24b451(0x525)]){let _0x5b553b=_0x53eb66;return{..._0x5b553b,'data':{..._0x5b553b[_0x24b451(0x3cf)],'unitID':_0x54661e[_0x24b451(0x2cf)][_0x24b451(0x220)],'unitType':_0x54661e[_0x24b451(0x2cf)]['unitType']??_0x5b553b['data']['unitType']}};}return _0x53eb66;}function ce(_0x2671cd,_0x5f5549){const _0x41a59c=_0x47c516;if(le(_0x2671cd))return[_0x5f5549];switch(_0x5f5549['eventID']){case e[_0x41a59c(0x427)][_0x41a59c(0x363)]:return[ue(_0x2671cd,_0x5f5549)];case e[_0x41a59c(0x427)][_0x41a59c(0x446)]:return[fe(_0x2671cd,_0x5f5549)];case e[_0x41a59c(0x427)][_0x41a59c(0x2fa)]:return[de(_0x2671cd,_0x5f5549)];default:return[_0x5f5549];}}function le(_0x385d21){const _0x591c82=_0x47c516;return _0x385d21[_0x591c82(0x2cf)]['endpoint']==null&&_0x385d21[_0x591c82(0x2cf)][_0x591c82(0x220)]===_0x385d21[_0x591c82(0x399)]&&!_0x385d21[_0x591c82(0x28a)];}function ue(_0x510c01,_0x28e64b){const _0x342d5e=_0x47c516;return{..._0x28e64b,'data':(0x0,e[_0x342d5e(0x505)])(pe(_0x510c01,(0x0,e[_0x342d5e(0x450)])(_0x28e64b[_0x342d5e(0x3cf)])))};}function de(_0x4ba7c5,_0x80ce01){const _0xb9edf3=_0x47c516;return{..._0x80ce01,'data':pe(_0x4ba7c5,_0x80ce01[_0xb9edf3(0x3cf)])};}function fe(_0x5dc88b,_0x560d9e){const _0x9106f3=_0x47c516;let _0x6f951c=_0x560d9e[_0x9106f3(0x3cf)];return{..._0x560d9e,'data':{..._0x6f951c,'changesets':_0x6f951c[_0x9106f3(0x4a9)][_0x9106f3(0x41a)](_0x573f2d=>(0x0,e[_0x9106f3(0x505)])(pe(_0x5dc88b,(0x0,e['parseProtocolChangeset'])(_0x573f2d))))}};}function pe(_0x225916,_0x109844){const _0x26ea88=_0x47c516;return me(_0x225916)[_0x26ea88(0x41b)](_0x109844,he(_0x225916));}function me(_0x547872){const _0x2dc92b=_0x47c516;if(!_0x547872[_0x2dc92b(0x28a)])throw Error(_0x2dc92b(0x364));return _0x547872['changeset'];}function he(_0x3b90f0){const _0x29fbc5=_0x47c516;return{'localUnitId':_0x3b90f0[_0x29fbc5(0x399)],'unitType':_0x3b90f0[_0x29fbc5(0x4aa)],'target':_0x3b90f0['target']};}let ge=function(_0xf7bd12){const _0x5c34ea=_0x47c516;return _0xf7bd12[_0xf7bd12[_0x5c34ea(0x53d)]=0x0]=_0x5c34ea(0x53d),_0xf7bd12[_0xf7bd12[_0x5c34ea(0x428)]=0x1]=_0x5c34ea(0x428),_0xf7bd12[_0xf7bd12['OFFLINE']=0x2]='OFFLINE',_0xf7bd12[_0xf7bd12[_0x5c34ea(0x392)]=0x3]=_0x5c34ea(0x392),_0xf7bd12;}({});const _e={[a[_0x47c516(0x487)][_0x47c516(0x252)]]:_0x47c516(0x3da),[a[_0x47c516(0x487)][_0x47c516(0x211)]]:_0x47c516(0x21b),[a[_0x47c516(0x487)][_0x47c516(0x453)]]:_0x47c516(0x25e),[a[_0x47c516(0x487)][_0x47c516(0x33f)]]:'session.room-permission-denied',[a['CmdRspCode']['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x47c516(0x300)};let ve=class extends t[_0x47c516(0x3b6)]{get[_0x47c516(0x462)](){const _0x328a2e=_0x47c516;return this[_0x328a2e(0x291)][_0x328a2e(0x28b)]();}constructor(_0x14f800,_0x34e89d,_0x370e7d,_0x2e62a1,_0x5638ab,_0x31729a,_0x8ca638,_0x297e8b){const _0xf0d411=_0x47c516;super(),this[_0xf0d411(0x4c7)]=_0x14f800,this[_0xf0d411(0x266)]=_0x370e7d,this[_0xf0d411(0x469)]=_0x2e62a1,this[_0xf0d411(0x2e6)]=_0x5638ab,this['_commentService']=_0x31729a,this[_0xf0d411(0x396)]=_0x8ca638,this[_0xf0d411(0x228)]=_0x297e8b,g(this,_0xf0d411(0x291),new i[(_0xf0d411(0x2f4))](0x0)),g(this,_0xf0d411(0x455),this[_0xf0d411(0x291)][_0xf0d411(0x404)]()),g(this,_0xf0d411(0x21c),new i[(_0xf0d411(0x369))]()),g(this,_0xf0d411(0x502),this['_event$'][_0xf0d411(0x404)]()),g(this,_0xf0d411(0x36a),void 0x0),g(this,'_socketMessageSubscription',void 0x0),g(this,_0xf0d411(0x4dd),void 0x0),g(this,_0xf0d411(0x49b),!0x1),g(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this[_0xf0d411(0x228)],_0x34e89d[_0xf0d411(0x3e8)]((0x0,i['takeUntil'])(this[_0xf0d411(0x25f)]))[_0xf0d411(0x51a)](_0x15c67b=>{const _0x4d5652=_0xf0d411;if(_0x15c67b!==void 0x0){if(this[_0x4d5652(0x36a)]=_0x15c67b,_0x15c67b)this['_joinRoom'](_0x15c67b),this[_0x4d5652(0x39e)]=_0x15c67b['message$']['subscribe'](_0x499420=>{const _0x44b284=_0x4d5652;_0x499420[_0x44b284(0x46d)]===this[_0x44b284(0x4c7)][_0x44b284(0x2cf)][_0x44b284(0x220)]&&this[_0x44b284(0x2ac)](_0x499420);});else{var _0x37759a;this[_0x4d5652(0x4ff)](),this[_0x4d5652(0x291)]['next'](0x2),(_0x37759a=this[_0x4d5652(0x39e)])==null||_0x37759a[_0x4d5652(0x44d)](),this[_0x4d5652(0x39e)]=null;}}});}['getMemberID'](){const _0x29327d=_0x47c516;var _0x3837ad;return((_0x3837ad=this[_0x29327d(0x36a)])==null?void 0x0:_0x3837ad[_0x29327d(0x46e)])??null;}['dispose'](){const _0x4decf2=_0x47c516;super['dispose'](),this[_0x4decf2(0x37d)](),this[_0x4decf2(0x25f)][_0x4decf2(0x485)](),this[_0x4decf2(0x25f)][_0x4decf2(0x2ce)]();}[_0x47c516(0x37d)](){const _0x8f794f=_0x47c516;var _0x469fdf;this[_0x8f794f(0x4ff)](),(_0x469fdf=this['_socket'])==null||_0x469fdf[_0x8f794f(0x422)]({'cmd':a[_0x8f794f(0x513)][_0x8f794f(0x269)],'data':{'roomID':this[_0x8f794f(0x4c7)]['target'][_0x8f794f(0x220)]}}),this['_event$']['complete'](),this['_sessionStatus$'][_0x8f794f(0x2ce)]();}[_0x47c516(0x2ac)](_0x216bf1){const _0x379a9f=_0x47c516;_0x216bf1[_0x379a9f(0x3ab)]===a[_0x379a9f(0x513)][_0x379a9f(0x342)]?this[_0x379a9f(0x3e7)](_0x216bf1):_0x216bf1[_0x379a9f(0x3ab)]===a[_0x379a9f(0x513)][_0x379a9f(0x2dc)]&&this[_0x379a9f(0x32d)](_0x216bf1);}[_0x47c516(0x4b5)](_0x23e07e){const _0xdd6b44=_0x47c516;this[_0xdd6b44(0x291)]['next'](0x1),_0x23e07e['send']({'cmd':a[_0xdd6b44(0x513)]['JOIN'],'routeKey':this[_0xdd6b44(0x4c7)][_0xdd6b44(0x2cf)][_0xdd6b44(0x220)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0xdd6b44(0x2cf)]['unitId']}]}});}[_0x47c516(0x3e7)](_0x36c7ba){const _0x30e0cb=_0x47c516;var _0x46cca0;if(_0x36c7ba[_0x30e0cb(0x30a)]in _e){this[_0x30e0cb(0x396)]['emitEvent']({'id':_0x30e0cb(0x345),'data':_e[_0x36c7ba[_0x30e0cb(0x30a)]]}),this[_0x30e0cb(0x291)]['next'](0x2);return;}this[_0x30e0cb(0x291)]['next'](0x3);let _0x794874=(_0x46cca0=_0x36c7ba[_0x30e0cb(0x3cf)][_0x30e0cb(0x271)][this['_identity']['target'][_0x30e0cb(0x220)]])==null?void 0x0:_0x46cca0['members'];_0x794874&&_0x794874[_0x30e0cb(0x4b1)](_0x5044a6=>this[_0x30e0cb(0x2e6)][_0x30e0cb(0x388)](this[_0x30e0cb(0x4c7)][_0x30e0cb(0x399)],_0x5044a6));}['_onRecvEvent'](_0x296ca1){const _0x5802ca=_0x47c516;try{let _0x2adf94=ce(this[_0x5802ca(0x4c7)],_0x296ca1[_0x5802ca(0x3cf)]);for(let _0x3949e5 of _0x2adf94)switch(_0x3949e5['eventID']){case e[_0x5802ca(0x427)]['USERS_ENTER']:this[_0x5802ca(0x4d6)](_0x3949e5),this['_event$'][_0x5802ca(0x485)](_0x3949e5);break;case e[_0x5802ca(0x427)][_0x5802ca(0x235)]:this[_0x5802ca(0x21e)](_0x3949e5),this[_0x5802ca(0x21c)][_0x5802ca(0x485)](_0x3949e5);break;case e[_0x5802ca(0x427)][_0x5802ca(0x30b)]:case e['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x5802ca(0x4c5)](),this[_0x5802ca(0x523)](),this[_0x5802ca(0x21c)][_0x5802ca(0x485)](_0x3949e5);break;case e[_0x5802ca(0x427)]['MSG_FOR_ERROR']:this[_0x5802ca(0x266)][_0x5802ca(0x492)](_0x5802ca(0x2a2)+JSON[_0x5802ca(0x307)](_0x3949e5)),this[_0x5802ca(0x21c)]['next'](_0x3949e5);break;case e[_0x5802ca(0x427)][_0x5802ca(0x507)]:this[_0x5802ca(0x254)][_0x5802ca(0x4df)](_0x3949e5['data']),this[_0x5802ca(0x21c)][_0x5802ca(0x485)](_0x3949e5);break;default:this[_0x5802ca(0x21c)]['next'](_0x3949e5);}}catch(_0x2d65dd){this[_0x5802ca(0x266)][_0x5802ca(0x492)](_0x2d65dd,_0x296ca1);}}['_onUserJoin'](_0xdb62aa){const _0x1d21a5=_0x47c516;this['_memberService'][_0x1d21a5(0x388)](this[_0x1d21a5(0x4c7)][_0x1d21a5(0x399)],_0xdb62aa[_0x1d21a5(0x3cf)]);}[_0x47c516(0x21e)](_0x3f1aef){const _0x2b3efd=_0x47c516;this[_0x2b3efd(0x2e6)]['removeMember'](this[_0x2b3efd(0x4c7)][_0x2b3efd(0x399)],_0x3f1aef[_0x2b3efd(0x3cf)]['memberID']);}async['send'](_0x1c911c,_0x316b2a){const _0xaaf7e5=_0x47c516;if(this[_0xaaf7e5(0x462)]!==0x3||!this['_socket'])throw Error(_0xaaf7e5(0x2e5));try{let _0x4fabf7=se(this['_identity'],_0x1c911c);_0x4fabf7[_0xaaf7e5(0x393)]===e[_0xaaf7e5(0x427)][_0xaaf7e5(0x45e)]&&(this[_0xaaf7e5(0x296)](),this['_startTelemetryCollaborationNewChangeset'](_0x4fabf7)),this[_0xaaf7e5(0x36a)][_0xaaf7e5(0x422)]({'cmd':a[_0xaaf7e5(0x513)][_0xaaf7e5(0x467)],'routeKey':this['_identity'][_0xaaf7e5(0x2cf)][_0xaaf7e5(0x220)],'routeType':'','data':_0x4fabf7});}catch(_0x2c3430){this[_0xaaf7e5(0x266)][_0xaaf7e5(0x492)](_0x2c3430);}}['_scheduleCollaborationTimeoutTimer'](){const _0x48b056=_0x47c516;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x3481d3=_0x88a9;this[_0x3481d3(0x4dd)]=null,this[_0x3481d3(0x396)][_0x3481d3(0x315)]({'id':_0x3481d3(0x3e5)});},this[_0x48b056(0x469)][_0x48b056(0x33e)](_0x48b056(0x540))??0x4e20);}[_0x47c516(0x523)](){this['_collaborationTimeoutTimer']&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}[_0x47c516(0x336)](_0xe80764){const _0x489bd3=_0x47c516;if(!this['_shouldReportTelemetry'])return;let {data:_0x2853d5}=_0xe80764,{unitID:_0x454715,changeset:_0x49bd93}=_0x2853d5,{mutations:_0x730a2e,type:_0x2f6817}=_0x49bd93;this[_0x489bd3(0x518)]={'unitId':_0x454715,'type':_0x2f6817,'startTime':performance[_0x489bd3(0x3e6)](),'stopTime':0x0,'duration':0x0,'size':te(_0x730a2e)};}[_0x47c516(0x4c5)](){const _0x4d7817=_0x47c516;this[_0x4d7817(0x49b)]&&(this[_0x4d7817(0x518)]?(this[_0x4d7817(0x518)][_0x4d7817(0x368)]=performance['now'](),this[_0x4d7817(0x518)][_0x4d7817(0x49d)]=this['_telemetryInfo'][_0x4d7817(0x368)]-this[_0x4d7817(0x518)]['startTime'],this['_telemetryService'][_0x4d7817(0x4d3)]('collaboration_new_changeset',this[_0x4d7817(0x518)]),this[_0x4d7817(0x518)]=null):this['_logService'][_0x4d7817(0x492)](_0x4d7817(0x239),'telemetry\x20info\x20is\x20not\x20initialized'));}[_0x47c516(0x4ff)](){const _0x2e9b43=_0x47c516;this[_0x2e9b43(0x518)]=null;}};function _0x6063(){const _0x4b802d=['now','_onJoinRoomEvent','pipe','some','_tryEnsureSocket','_handler','_rescheduleHeartbeat','_schedule','getCurrentUser','objects','_substituteRedoStack','BoardCollaborationEntity','resolveUnit','121125hLKEPn','getLocalCacheKey','HEARTBEAT_INTERVAL_KEY','ITransformService','_clearHandshakeTimer','find','CONFLICT_PROCESSING','awaiting','SOCKET_FAILED_RETRY','IAuthzIoService','_members','USERS_ENTER','onTransformSelections','_injector','setCfgEnableObjInherit','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','/object/','asObservable','_acknowledgedAwaitingRevision','serializeCombRequest','4bveDLV','_loadUnit','getFocusedUnit','members$','_runScheduledResend','ImageUploadStatusType','getUploadOptions','objectActions','_prepareConflictRecovery','refreshUnit','collaboration-client.auth.needGotoLoginAlert','_onOffline','[CollaborationUndoRedoService]','258049UDIbJi','SnapshotService','Injector','editing\x20status\x20changed\x20to','HEARTBEAT_INTERVAL','setWaitCount','map','toLocal','state','_fetchMissChangesets','_getUnitPermissionPoints','onTransformRemoteChangesetByIMECache','unitDisposed$','getCollabEntity','send','DocStateChangeManagerService','getUnitOnRev','_getSignURL','subType','CollaborationEvent','JOINING','isInternalEditorID','RETRY_CONNECTING_MAX_COUNT_KEY','socketReady','_tryReconnect','MoveSlidePageMutation','resend','getImage','equals','ISnapshotServerService','allowed','collaborators','112wPpebV','[SyncedState]:\x20received\x20rejection.','signUrlServerUrl','_getLoginPath','DependentOn','userID','getDeserializedSheetBlock','_maxTotalRetryTimeout','getUnitStatus$','timeoutTimer','reject','text-x','_disposed','filter','OPTIONAL','_compressMutationService','UnitStatus','HELLO','PSEUDO_FETCH_MISSING_RESULT','[OfflineState]:\x20received\x20rejection.','\x20in\x20_schedule.','loadSlide','_pendingSessions','PERSON','textEncoder','unsubscribe','/universer-api/oidc/authpage','_replayCachedMutations','parseProtocolChangeset','OTHER_CLIENT_EDITING','_handlerCallback','JOIN_ROOM_NOT_EXISTS','downloadEndpointUrl','sessionStatus$','docStateChange$','getMember','_eventService','updatePermissionObjEvent','delay','HTTPService','UnitEmbedded','Module','SUBMIT_CHANGESET','unit-cache-','appendMutation','ICollaborationSocketService','sessionStatus','CollaborationImageIoService','error$','location','_authzIoService','INGEST','getTime','_configService','string','_refreshUnitPermission','_executeRemoteChangeset','routeKey','memberID','default','?url=','MentionIoHttpService','socketSubscription','_registerDependencies','IMentionIOService','onStarting','length','_onLocalMutation','_clearUndo','getCurrentRevOfUnit','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','/universer-api/snapshot','getWorkbookSelections','localeService','deepClone','_type','unit','_showConflictNotification','includes','CollaborationUIEventService','function','next','_unitInfo$','CmdRspCode','_clearHeartbeatTimer','CommentService','/universer-api/stream/file/upload','createCollaborator','_createInitialState','roles','UNIVER_DOC','UNIVER_BOARD','onSyncEditingCollabCursor','_change$','error','IUniverInstanceService','onMissedChangesetFetched','ignored\x20stale\x20ack\x20of\x20revision\x20','_awaitingChangeset','min','_resendTimer','socketService','_status$','_shouldReportTelemetry','[OfflineState]:\x20received\x20changeset.','duration','&source=','[CollaborationSessionService]','method','LIVESHARE_OPERATION','timer','AwaitingState','createIdentifier','removeMember','executeCommand','UNIVER_PDF','PendingState','changesets','unitType','UNIVER_SHEET','getSheetBlock','saveChangeset','closeSession','_emitMembers','_acknowledgeAwaiting','forEach','/block/','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_exhaustRemoteChangesetQueue','_joinRoom','SheetsSelectionsService','CollaborationSession','endpoint','awaitingChangeset','localCacheService','UnitObject','splice','iterator','unitLoaded$','getTypeOfUnitDisposed$','selections','saveSnapshot','__Key__','_listenToNetworkCondition','onSendChangeset','_stopTelemetryCollaborationNewChangeset','ConflictState','_identity','/collaborator','clear','177830EdptYu','POST','_socketChannels','IContextService','SOCKET_FAILED','call','_sender','UNIVER_BASE','conflict','capture','AWAITING','loadPdf','_onUserJoin','UUID','UserManagerService','sendHeartbeatTimer','c2Prime','UniverLicensePlugin','disposeWithMe','_collaborationTimeoutTimer','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onCommentUpdate','ILogService','onTransformState','not_collab','OTHER_CLIENTS_EDITING','_revisionService','getCollabEntity$','SNAPSHOT_URL_KEY','backupOfflineData','take','unitID','LIVESHARE_FETCH_OPERATIONS','_HTTPService','onPrepareTransformSelections','_snapshotService','_getConfig','collaMsg','merge','\x20at\x20revision\x20','getSnapshotAPIPath','UniverInstanceType','\x0aCurrent:\x20','status','_changesetSessionId','m2Prime','DEFAULT_COLLAB_WEB_SOCKET_URL','baseRev','SUCCUSS','result','getUnitId','_userManagerService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_throwTelemetryCollaborationNewChangeset','SHOULD_CLOSE_CONN','createSocket','event$','_httpService','_clearScheduledTask','parseChangesetToProtocol','[PendingState]:\x20received\x20rejection.','COMMENT_UPDATE','_collaborationSessionService','_submitChangeset','uuidv4','_isAppliedRevision','/allowed','awaiting_with_pending','IImageIoService','WorkbookEditablePermission','_dropAcknowledgedAwaiting','BaseCollaborationEntity','delete','CombCmd','OFFLINE','_clearTimeoutTimer','textRanges','toStringTag','_telemetryInfo','deleteCollaborator','subscribe','socket$','responseType','has','deserializeToCombResponse','_singleActiveUnitService','revision','prototype','LIVESHARE_REQUEST_HOST','_clearCollaborationTimeoutTimer','_networkConditionService','FETCH_MISSING','IUndoRedoService','_remoteChangesetQueue','Inject','retryConnectingInterval','fetchMiss','getAllPermissionPoint','concatMap','_sheetTransformSelectionsService','4520720bQcUUs','fromCharCode','saveImage','_createSocket','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','rev','&to=','_transitionLocked','UniverCollaborationPlugin','__splitChunk__','snapshotServerUrl','_permissionService','?size=','onRemoteRej','registerHTTPInterceptor','IDLE','getResourcesRequest','_onConflict','HEARTBEAT_TIMEOUT','number','Disposable','addHandlerCallback','collabWebSocketUrl','entityInit$','encodeURIComponent','_disableEditing','ObjectPermissionService','JSONX','randomBytes','_getSendChangesetTimeout','online','actions','updateSnapshot','resolveWithBasePath','OfflineState','updateCursorEvent','reverse','sid','get','_instanceService','loadSheet','total','type','_snapshotServerService','_queuedRemoteChangesets','onlyLocal','defineProperty','_substituteUndoStack','entries','_transformRemoteChangesetByStateCache','loginUrlKey','unknown','state$','action','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','create','UPDATE_PERMISSION_OBJ','then','\x20to\x20','Board','EmptyMutationInfo','JOIN_ROOM_FULL','ICommandService','_commandService','ErrorCode','ws://127.0.0.1:8000/universer-api/comb/connect','CONFLICT_CACHE_CLEAR_FAILED','_initRequestHeader','isTransformMutationsWithChangesetSuccess','subUnitId','encrypt','session.room-full','_event$','mapDocumentTypeToUniverInstanceType','_onUserLeave','RevisionService','unitId','retryCount','subject','mutations','CollaborationStatus','DataLoaderService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','object','_telemetryService','UnitAction','3702348mHnrcf','PENDING','_getUndoStack','Rectangle','liveShareNewHost','add','ImageSourceType','_getAPIPrefixPath','ThresholdInterceptorFactory','_showConflictProcessingNotification','handshakeTimer','USERS_LEAVE','NO_OTHER_CLIENTS_EDITING','FileSource','fetch_missing','[CollaborationSession]','1gstNtL','_sendHeartbeat','_updateUnitPermissionPoint','/-/object/list','isArray','_sessionChannels','CommandType','enableOfflineEditing','_subscribeResendTimer','init','_collaborationPaused','_transformRemoteChangesetByIMECache','OBJECT_PERMISSION_CONFIG_KEY','_closedUnits','getInterceptPoints','connectionAttempt','b64DecodeUnicode','accept','maxSize','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/universer-api/file/{fileID}/sign-url','_hasSessionsForEndpoint','_updateLocalCache','_replaceFileID','FAIL','constructor','_commentService','CollaborationController','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','session','/-/object/-/batch_allowed','_incrementRevisionNumber','_startCollaboration','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','IAttachmentIoService','saveAttachment','session.room-not-exists','dispose$','transformUndoRedo','570VaLEeh','ILocalCacheService','Optional','_getUploadFileURL','getLatestCsReqIdBySid','_logService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','body','LEAVE','getUnit','putCollaborators','every','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LOCAL_CACHE_INTERVAL_KEY','_resendSchedule','range','roomInfos','liveShareOperation','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','[DataLoaderService]','replace','version','requestParams','resourceIDs','message$','_resendTimeout','_transformAndApplyRemoteChangeset','_roomMembers','Failed\x20to\x20update\x20permission\x20point','_loadSnapshot','columnGroups','batchAllowed','file','originalMeta','values','DEFAULT_FILE_NAME','csAckEvent','joinRsp','authzUrl','RichTextEditingMutation','_redoStacks','changeset','getValue','isTransformChangesetsSuccess','commentUpdate$','put','c1Prime','Slide','_sessionStatus$','sequenceExecute','append','indexOf','loadBase','_scheduleCollaborationTimeoutTimer','_updateState','getSheetId','_localeService','[FetchMissState]','loadUnitOfRevision','concatBytes','LOCAL_CACHE_INTERVAL','SlideCollaborationEntity','post','_createHandler','_toggleOnline','save\x20fail\x20reason\x20is\x20','hasOwnProperty','_isEchoedAwaitingChangeset','ICollaborationClientAdapterService','CompressMutationService','upload','candidateSocket','_clearRedo','getActiveSheet','onMissingChangesets','_onCombEvent','offline','IConfigService','_univerInstanceService','\x0aAfter:\x20','/unit/','floor','_members$','UNIVER_SLIDE','_updateStatus','params','x-univer-host','UniverNetworkPlugin','max','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','COMPRESS_MUTATION_APPLY','getRoom','ReplaySubject','saveSheetBlock','_prepareTransformSelections','CollaborationUIEventId','[AwaitingWithPendingState]','withCredentials','transformSelections','close$','url','CollaborationSocketService','_init','_removeRoom','Quantity','attachment','transformMutationsWithChangeset','initWorkbookPermissionChange','[CollaborationState]:\x20apply\x20error!','complete','target','enableCollaboration','pluginName','getCfgEnableObjInherit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','toggleOnline','objectType','change$','[SyncedState]:\x20received\x20acknowledgement.','_undoStacks','size','copyFileMeta','readAsDataURL','RECV','_initCloseConn','hostname','uploadFileServerUrl','_lockTransition','onRemoteAck','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_transformSelections','Workbook','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_memberService','ITelemetryService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onRemoteChangeset','updateOfflineData','retryConnectingTimer','MentionType','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','getTypeOfUnitAdded$','getOwnPropertyDescriptor','touchDependencies','getCurrentSelections','toggleOffline','HEARTBEAT','BehaviorSubject','set','_entities','_scheduleCompleteTimestamp','_onConnectionFailed','newCsEvent','CHANGESET_SHOULD_RETRY','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','loadUnit','_changesetReqId','_initDependencies','_entityInit$','session.room-cnt-exceeds','DEFAULT_WS_SESSION_TICKET_URL','_state$','_cfgEnableObjInherit','_checkMissing','COLLABORATION_ENDPOINT_INVALID','/universer-api/authz','stringify','getUnitType','transformChangesets','code','CHANGESET_ACK','onRemoteRetry','snapshot','endsWith','CONFLICT','name','CollaborationAttachmentIoService','sendChangesetTimeout','collaboration-client.config','focused$','emitEvent','_unitLoaded$','{fileID}','_onConnectionOpen','SheetTransformSelectionsService','isCompositionEnd','ERROR_IMAGE','_toggleOffline','_sendingTimer','RETRY_CONNECTING_MAX_COUNT','confirm','addImageSourceCache','_socketService','_undoRedoService','/rev/','UNIVER_COLLABORATION_CLIENT_PLUGIN','push','_config','1.1.0','dispose','[CollaborationSessionService]:\x20socket\x20error','_onRemoteACK','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','/object','_onRecvEvent','_unlockTransition','_getCtorByUniverInstanceType','fetchMissingChangesets','FileId','_transformIMECache','IPermissionService','_getDownloadEndpointURL','parse','_startTelemetryCollaborationNewChangeset','_waitForHeartbeatResponse','_commentUpdate$','tables','slice','PERMISSION_DENIED','INetworkConditionService','Univer','getConfig','JOIN_ROOM_PERMISSION_DENIED','readyForCollab','createInstance','JOIN','_pendingMutations','_localCacheService','JOIN_ROOM_FAILED','LocaleService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','unitInfo$','_doCreateSocket','setShowComponents','_transformStateCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','uniscriptRunEvent','_upload','146562rUxadX','registerDependencies','shouldCloseConn','list','missingChangesets','LIVESHARE_NEW_HOST','3080355eklVmq','_state','takeUntil','packageName','resolve','_docStateChangeManagerService','Plugin','shareReplay','online$','_roomCreated$','_waitCount','[UniverCollaborationClientPlugin]','CHANGESET_REJ','interceptor','NEW_CHANGESETS','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','origin','listCollaborators','fromCollab','stopTime','Subject','_socket','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','pauseCollaboration','firstValueFrom','SessionStatus','BASE64','_acknowledgeAwaitingIfReady','CollaborationEntity','_onRemoteRejected','workbook','_initUnitPermissionChange','MUTATION','MemberService','univer-pro.collaboration-client.single-active-unit-service','csRejEvent','timeout','_handleRemoteChangesets','loadOfflineData','decorate','close','DisposableCollection','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','symbol','_sessions','_decreaseWaiting','PERMISSION_REJ','objectID','AuthzIoHttpService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','status$','updateMember','reconnect','LIVESHARE_TERMINATE','onMutationExecutedForCollab','requireSession','startsWith','@univerjs-pro/collaboration-client','AWAITING_WITH_PENDING','_getCurrentRevision','UPDATE_CURSOR','ONLINE','eventID','SheetPermissionInitController','supports','_collaborationUIEventService','Tools','_isPermissionRej','localUnitId','objectId','loadBoard','updateCollaborator','reduce','_socketMessageSubscription','univer-pro.collaboration-client-socket-service','_onRemoteChangeset','infoRsp','_isAckOfAwaitingChangeset','sheets','clearUnit','EnsureSlideMasterPageMutation','objectPermissionTypes','/universer-api/uniscript','cbc','_transformStack','_initMergeInterceptor','cmd','refreshPermission','pending','SYNCED','_clearRetryConnectingTimer','avatar','MergeInterceptorFactory','_getSocketChannel','_collabSessionService','toDisposable','collaboratorID','RxDisposable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','UNISCRIPT_RUN','_resolveSessionIdentity','incrementRevOfUnit','getAllMembers','_createInitialStateImpl','updatePermissionPoint','_getAPIPrefix','onLocalMutation','SnapshotServerOverHTTPService','reqId','onTransformRemoteChangesetByStateCache','debug','joinEvent','collabSubmitChangesetUrl','isPermissionRej','compose','InsertSheetMutation','open$','RemoveSlidePageMutation','href','leaveEvent','getAttachmentUrl','data','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_adapter','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_onFetchMissResult','listRoles','charCodeAt','title','HEARTBEAT_TIMEOUT_KEY','_onRemoteRetry','SetSelectionsOperation','session.join-failed','HTTPRequest','catch','_applyRemoteChangeset','onTransformIME','COMPRESS_MUTATION_SEND','/universer-api/snapshot/','endpointKey','fetchThroughInterceptors','UniverCollaborationClientPlugin','_transformService','SUBMIT_CHANGESET_TIMEOUT'];_0x6063=function(){return _0x4b802d;};return _0x6063();}ve=y([v(0x2,t[_0x47c516(0x4e0)]),v(0x3,t[_0x47c516(0x2ae)]),v(0x4,(0x0,t[_0x47c516(0x528)])(b)),v(0x5,(0x0,t[_0x47c516(0x528)])(ae)),v(0x6,(0x0,t[_0x47c516(0x528)])(_)),v(0x7,(0x0,t[_0x47c516(0x263)])(o[_0x47c516(0x2e7)]))],ve);const x=(0x0,t[_0x47c516(0x4a4)])('collaboration-client.local-cache-service');function ye(_0x308df2,_0x1e1d08){const _0x48f451=_0x47c516;return _0x1e1d08===''||_0x1e1d08==null?_0x48f451(0x45f)+_0x308df2:_0x48f451(0x45f)+_0x308df2+'-'+encodeURIComponent(_0x1e1d08);}function be(_0x2c4174){const _0x44da82=_0x47c516;let {unitID:_0xdf4b43,mutations:_0x3c1f8a}=_0x2c4174;return{'unitId':_0xdf4b43,'subUnitId':_0x3c1f8a[_0x44da82(0x476)]>0x0?_0x3c1f8a[0x0][_0x44da82(0x2b6)][_0x44da82(0x219)]:null};}let S=class{constructor(_0x1de769,_0x31908a,_0x102fbc){const _0x249d78=_0x47c516;this[_0x249d78(0x400)]=_0x1de769,this[_0x249d78(0x3e4)]=_0x31908a,this[_0x249d78(0x1fb)]=_0x102fbc;}['transformSelections'](_0xd451e5){const _0x443558=_0x47c516;var _0x3a4cbe,_0x4fb713;let _0x145ce6=this['_injector'][_0x443558(0x1fa)](r[_0x443558(0x4b6)]),{unitId:_0x8d453d,subUnitId:_0x3753a7}=be(_0xd451e5),_0x25d2f0=_0x145ce6==null?void 0x0:_0x145ce6[_0x443558(0x47c)](_0x8d453d)[_0x443558(0x2f1)](),_0x1d5cf7=(_0x3a4cbe=this[_0x443558(0x1fb)][_0x443558(0x26a)](_0x8d453d))==null||(_0x3a4cbe=_0x3a4cbe[_0x443558(0x2aa)]())==null?void 0x0:_0x3a4cbe[_0x443558(0x298)]();if(_0x25d2f0[_0x443558(0x476)]===0x0||!_0x8d453d||!_0x3753a7)return;let _0x4cba84=[{'id':r[_0x443558(0x3d9)]['id'],'params':{'unitId':_0x8d453d,'subUnitId':_0x1d5cf7,'selections':t[_0x443558(0x397)][_0x443558(0x47e)](_0x25d2f0)}}],_0x2bffde=this['_transformService']['transformMutationsWithChangeset'](_0xd451e5,_0x4cba84);if(!(0x0,e[_0x443558(0x218)])(_0x2bffde))throw _0x2bffde['error'];let _0x7a742e=(_0x4fb713=_0x2bffde[_0x443558(0x4f7)][0x0])==null||(_0x4fb713=_0x4fb713['params'])==null?void 0x0:_0x4fb713['selections'];if(Array[_0x443558(0x23e)](_0x7a742e)&&_0x7a742e[_0x443558(0x476)]){if(_0x7a742e[_0x443558(0x476)]===_0x4cba84[0x0][_0x443558(0x2b6)]['selections'][_0x443558(0x476)]&&_0x7a742e[_0x443558(0x26c)]((_0x5276ac,_0x114209)=>t[_0x443558(0x22d)][_0x443558(0x430)](_0x5276ac[_0x443558(0x270)],_0x4cba84[0x0][_0x443558(0x2b6)][_0x443558(0x4c0)][_0x114209][_0x443558(0x270)])))return;this['_injector'][_0x443558(0x1fa)](t[_0x443558(0x212)])[_0x443558(0x4a6)](r['SetSelectionsOperation']['id'],{'unitId':_0x8d453d,'subUnitId':_0x1d5cf7,'selections':_0x7a742e});}}};S=y([v(0x0,(0x0,t['Inject'])(t['Injector'])),v(0x1,e[_0x47c516(0x3f6)]),v(0x2,t[_0x47c516(0x493)])],S);const C=(0x0,t[_0x47c516(0x4a4)])(_0x47c516(0x377));let xe=function(_0x28e67f){const _0x30a8d9=_0x47c516;return _0x28e67f[_0x28e67f[_0x30a8d9(0x236)]=0x0]=_0x30a8d9(0x236),_0x28e67f[_0x28e67f[_0x30a8d9(0x4e3)]=0x1]=_0x30a8d9(0x4e3),_0x28e67f;}({});function Se(_0x2930b4){const _0x39969b=_0x47c516;var _0x1b41c6;return!!((_0x1b41c6=_0x2930b4[_0x39969b(0x2b6)])!=null&&_0x1b41c6[_0x39969b(0x537)]);}const Ce=new Set([r[_0x47c516(0x3c9)]['id']]),we=new Set([c['AddSlidePageMutation']['id'],c[_0x47c516(0x3a5)]['id'],c[_0x47c516(0x42d)]['id'],c[_0x47c516(0x3cb)]['id']]);function Te(_0x1e0089,_0x1ad1fd=Ce){const _0x28f75f=_0x47c516;let _0x50dc57=[];for(let _0x43719c of _0x1e0089){if(_0x1ad1fd[_0x28f75f(0x51d)](_0x43719c['id'])||Se(_0x43719c)){if(_0x50dc57['length']>0x0)break;_0x50dc57[_0x28f75f(0x325)](_0x43719c);break;}_0x50dc57[_0x28f75f(0x325)](_0x43719c);}return _0x50dc57;}function w(_0x1cf9c3,_0x32caa7,_0x220684,_0x2af43f,_0x16d7fc){const _0x22a95c=_0x47c516;let _0x1c7448=Te(_0x1cf9c3),_0x4f2c98=_0x16d7fc['getCurrentUser'](),_0x1e1fb9=(_0x4f2c98==null?void 0x0:_0x4f2c98[_0x22a95c(0x439)])??_0x22a95c(0x207),_0x369387=(_0x4f2c98==null?void 0x0:_0x4f2c98[_0x22a95c(0x46e)])??_0x22a95c(0x207);return{'changeset':{'unitID':_0x32caa7,'type':(0x0,e[_0x22a95c(0x21d)])(_0x220684['getUnitType'](_0x32caa7)),'baseRev':_0x2af43f[_0x22a95c(0x479)](_0x32caa7),'revision':0x0,'userID':_0x1e1fb9,'memberID':_0x369387,'mutations':_0x1c7448},'pendingMutations':_0x1cf9c3[_0x22a95c(0x33a)](_0x1c7448[_0x22a95c(0x476)])};}const Ee=w;function De(_0x3077d9,_0x25f4e8,_0x39c3de,_0x44d936,_0x1dcccf){const _0x4db887=_0x47c516;let _0x2986aa=Te(_0x3077d9,we),_0x24e502=_0x1dcccf[_0x4db887(0x3ee)](),_0x4015de=(_0x24e502==null?void 0x0:_0x24e502['userID'])??_0x4db887(0x207),_0x363d52=(_0x24e502==null?void 0x0:_0x24e502[_0x4db887(0x46e)])??'unknown';return{'changeset':{'unitID':_0x25f4e8,'type':(0x0,e[_0x4db887(0x21d)])(_0x39c3de[_0x4db887(0x308)](_0x25f4e8)),'baseRev':_0x44d936['getCurrentRevOfUnit'](_0x25f4e8),'revision':0x0,'userID':_0x4015de,'memberID':_0x363d52,'mutations':_0x2986aa},'pendingMutations':_0x3077d9[_0x4db887(0x33a)](_0x2986aa[_0x4db887(0x476)])};}function Oe(_0x178266,_0x328665,_0x33fdfc,_0x40f9f8,_0x375b8a){const _0x35dfb9=_0x47c516;let _0x4725ec=_0x178266[_0x35dfb9(0x39d)]((_0x326f21,_0x351b80)=>{const _0x8e2129=_0x35dfb9;let _0x4a7a18=_0x326f21[_0x326f21[_0x8e2129(0x476)]-0x1],{id:_0x3b19fa}=_0x4a7a18??{},{id:_0xa41935,type:_0x4685c0}=_0x351b80,_0x46e8c0=_0x351b80[_0x8e2129(0x2b6)];if(_0x3b19fa&&_0x3b19fa!==_0xa41935)throw Error(_0x8e2129(0x20a)+_0x3b19fa+'\x20-\x20'+_0xa41935+'.');if(!_0x4a7a18)return[{'id':_0xa41935,'type':_0x4685c0,'params':{'unitId':_0x46e8c0[_0x8e2129(0x220)],'textRanges':_0x46e8c0[_0x8e2129(0x516)],'actions':_0x46e8c0[_0x8e2129(0x1f3)]}}];let _0x542932=_0x4a7a18[_0x8e2129(0x2b6)];return ke(_0x542932,_0x46e8c0)?[..._0x326f21['slice'](0x0,-0x1),{..._0x4a7a18,'id':_0xa41935,'type':_0x4685c0,'params':{'unitId':_0x46e8c0[_0x8e2129(0x220)],'textRanges':_0x46e8c0[_0x8e2129(0x516)],'actions':t[_0x8e2129(0x1ef)][_0x8e2129(0x3c8)](_0x542932['actions'],_0x46e8c0[_0x8e2129(0x1f3)])}}]:[..._0x326f21,{'id':_0xa41935,'type':_0x4685c0,'params':{'unitId':_0x46e8c0[_0x8e2129(0x220)],'textRanges':_0x46e8c0[_0x8e2129(0x516)],'actions':_0x46e8c0[_0x8e2129(0x1f3)]}}];},[]),_0x3b5ef7=_0x375b8a[_0x35dfb9(0x3ee)](),_0x4cf4e5=(_0x3b5ef7==null?void 0x0:_0x3b5ef7[_0x35dfb9(0x439)])??'unknown',_0x4f53b0=(_0x3b5ef7==null?void 0x0:_0x3b5ef7[_0x35dfb9(0x46e)])??'unknown';return{'changeset':{'unitID':_0x328665,'type':(0x0,e[_0x35dfb9(0x21d)])(_0x33fdfc['getUnitType'](_0x328665)),'baseRev':_0x40f9f8[_0x35dfb9(0x479)](_0x328665),'revision':0x0,'userID':_0x4cf4e5,'memberID':_0x4f53b0,'mutations':_0x4725ec},'pendingMutations':_0x178266[_0x35dfb9(0x33a)](_0x178266['length'])};}function ke(_0x1f378f,_0x170866){const _0x800dd7=_0x47c516;return!Ae(_0x1f378f)&&!Ae(_0x170866)&&je(_0x1f378f[_0x800dd7(0x1f3)],_0x170866[_0x800dd7(0x1f3)]);}function Ae(_0x3a5fef){const _0x52fa3e=_0x47c516;return _0x3a5fef[_0x52fa3e(0x31a)]!==void 0x0;}function je(_0x5b9e88,_0x10cc02){return Me(_0x5b9e88)&&Me(_0x10cc02)&&!Pe(_0x5b9e88)&&!Pe(_0x10cc02)&&!Ne(_0x5b9e88)&&!Ne(_0x10cc02);}function Me(_0x49ed67){const _0x283bdb=_0x47c516;return Fe(_0x49ed67)[_0x283bdb(0x3e9)](_0x5a7370=>T(_0x5a7370)&&_0x5a7370['et']===_0x283bdb(0x43f));}function Ne(_0x3a383b){const _0x22c7d8=_0x47c516;return Fe(_0x3a383b)['some'](_0x13f99e=>Array[_0x22c7d8(0x23e)](_0x13f99e)||typeof _0x13f99e==_0x22c7d8(0x46a)||typeof _0x13f99e==_0x22c7d8(0x541));}function Pe(_0x408188){const _0x22297a=_0x47c516;return Fe(_0x408188)['some'](_0x19f632=>!T(_0x19f632)||_0x19f632['et']!=='text-x'||!Array[_0x22297a(0x23e)](_0x19f632['e'])?!0x1:_0x19f632['e'][_0x22297a(0x3e9)](_0x3d225d=>!T(_0x3d225d)||!T(_0x3d225d[_0x22297a(0x268)])?!0x1:Object['prototype'][_0x22297a(0x2a3)][_0x22297a(0x4cf)](_0x3d225d[_0x22297a(0x268)],_0x22297a(0x339))||Object[_0x22297a(0x521)][_0x22297a(0x2a3)][_0x22297a(0x4cf)](_0x3d225d[_0x22297a(0x268)],_0x22297a(0x27f))||Object[_0x22297a(0x521)][_0x22297a(0x2a3)][_0x22297a(0x4cf)](_0x3d225d[_0x22297a(0x268)],'blockRanges')));}function Fe(_0x362999){const _0x14ae4c=_0x47c516;if(!Array[_0x14ae4c(0x23e)](_0x362999))return[];let _0x4de7bd=_0x362999[_0x14ae4c(0x482)](_0x14ae4c(0x268))?_0x362999:_0x362999[_0x14ae4c(0x3f8)](_0x111a44=>Array[_0x14ae4c(0x23e)](_0x111a44)&&_0x111a44[_0x14ae4c(0x482)](_0x14ae4c(0x268)));if(!Array[_0x14ae4c(0x23e)](_0x4de7bd))return[];let _0x18aeb3=_0x4de7bd[_0x14ae4c(0x294)](_0x14ae4c(0x268));return _0x18aeb3===-0x1?[]:_0x4de7bd[_0x14ae4c(0x33a)](_0x18aeb3+0x1);}function T(_0x2d3501){const _0x46b585=_0x47c516;return typeof _0x2d3501==_0x46b585(0x227)&&!!_0x2d3501&&!Array[_0x46b585(0x23e)](_0x2d3501);}function Ie(_0x368deb,_0x38a1b1){const _0x3fe3a9=_0x47c516;let _0x9a2bb8=new i[(_0x3fe3a9(0x2bd))](0x1);return setTimeout(()=>_0x9a2bb8['next'](_0x38a1b1),_0x368deb),_0x9a2bb8[_0x3fe3a9(0x404)]()[_0x3fe3a9(0x3e8)]((0x0,i[_0x3fe3a9(0x4e8)])(0x1));}var Le,Re,ze;let Be=function(_0x33fe8d){const _0x74c6dc=_0x47c516;return _0x33fe8d['NOT_COLLAB']=_0x74c6dc(0x4e2),_0x33fe8d[_0x74c6dc(0x3ae)]='synced',_0x33fe8d[_0x74c6dc(0x22b)]='pending',_0x33fe8d[_0x74c6dc(0x4d4)]=_0x74c6dc(0x3fa),_0x33fe8d[_0x74c6dc(0x38f)]=_0x74c6dc(0x50d),_0x33fe8d['FETCH_MISS']=_0x74c6dc(0x238),_0x33fe8d[_0x74c6dc(0x30f)]=_0x74c6dc(0x4d2),_0x33fe8d[_0x74c6dc(0x514)]='offline',_0x33fe8d;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x5c76f7,_0x15a372,_0x1ef5b5,_0x26afd0,_0x1a35d3,_0x71871e,_0x1b2de2,_0x5ed80c,_0x43953f){const _0x38a0d0=_0x47c516;this[_0x38a0d0(0x4e9)]=_0x5c76f7,this[_0x38a0d0(0x1fe)]=_0x15a372,this[_0x38a0d0(0x3eb)]=_0x1a35d3,this[_0x38a0d0(0x213)]=_0x71871e,this[_0x38a0d0(0x322)]=_0x1b2de2,this[_0x38a0d0(0x4e4)]=_0x5ed80c,this['_localCacheService']=_0x43953f,g(this,'_awaitingChangeset',null),g(this,_0x38a0d0(0x343),[]),this[_0x38a0d0(0x496)]=_0x1ef5b5,this['_pendingMutations']=_0x26afd0;}[_0x47c516(0x304)](_0x5b529b){const _0x599a94=_0x47c516;let _0x514fb5=this[_0x599a94(0x4e4)][_0x599a94(0x479)](this[_0x599a94(0x4e9)]);return _0x5b529b[_0x599a94(0x520)]>_0x514fb5+0x1&&(this[_0x599a94(0x3eb)][_0x599a94(0x2ab)]({'from':_0x514fb5,'to':_0x5b529b[_0x599a94(0x520)]-0x1}),!0x0);}['_transformUndoredo'](_0x92bdb6){const _0x516b89=_0x47c516;this[_0x516b89(0x322)][_0x516b89(0x260)](this[_0x516b89(0x4e9)],_0x92bdb6);}[_0x47c516(0x2e3)](_0x1fbf66){const _0xfeb4a7=_0x47c516;var _0x334fb9,_0x404337;(_0x334fb9=(_0x404337=this[_0xfeb4a7(0x3eb)])['onTransformSelections'])==null||_0x334fb9[_0xfeb4a7(0x4cf)](_0x404337,_0x1fbf66);}[_0x47c516(0x2bf)](_0x3facf6){const _0x369769=_0x47c516;var _0x4d49d9,_0x3a65ff;return((_0x4d49d9=(_0x3a65ff=this[_0x369769(0x3eb)])[_0x369769(0x4ec)])==null?void 0x0:_0x4d49d9[_0x369769(0x4cf)](_0x3a65ff,_0x3facf6))??null;}[_0x47c516(0x332)](_0x3911d2){const _0x15a781=_0x47c516;var _0xb38569,_0x1274c4;return(_0xb38569=(_0x1274c4=this[_0x15a781(0x3eb)])[_0x15a781(0x3de)])==null?void 0x0:_0xb38569[_0x15a781(0x4cf)](_0x1274c4,_0x3911d2);}[_0x47c516(0x34b)](_0x408352){const _0x5cc7fd=_0x47c516;var _0x4945dd,_0x4ef912;return(_0x4945dd=(_0x4ef912=this[_0x5cc7fd(0x3eb)])[_0x5cc7fd(0x4e1)])==null?void 0x0:_0x4945dd[_0x5cc7fd(0x4cf)](_0x4ef912,_0x408352);}[_0x47c516(0x245)](_0x4d95f5){const _0xc8795e=_0x47c516;var _0x384910,_0x309282;return((_0x384910=(_0x309282=this[_0xc8795e(0x3eb)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x384910[_0xc8795e(0x4cf)](_0x309282,_0x4d95f5))??_0x4d95f5;}['_transformRemoteChangesetByStateCache'](_0x40242a){const _0x2a1ba8=_0x47c516;var _0x2ceae3,_0x4d49db;return((_0x2ceae3=(_0x4d49db=this[_0x2a1ba8(0x3eb)])[_0x2a1ba8(0x3c3)])==null?void 0x0:_0x2ceae3[_0x2a1ba8(0x4cf)](_0x4d49db,_0x40242a))??_0x40242a;}['_syncEditingCollabCursor'](_0x4932eb){const _0x56c269=_0x47c516;if(this['type']===t[_0x56c269(0x4f3)][_0x56c269(0x48e)]){let {unitID:_0x5520e7,mutations:_0x1ed4ba,memberID:_0x2b1742}=_0x4932eb,_0x2ec751=_0x1ed4ba[_0x56c269(0x476)]>0x0?_0x1ed4ba[0x0]['params'][_0x56c269(0x516)]:[];if(Array[_0x56c269(0x23e)](_0x2ec751)&&_0x2ec751[_0x56c269(0x476)]>0x0){var _0x54a4a4,_0x4fc608;(_0x54a4a4=(_0x4fc608=this[_0x56c269(0x3eb)])[_0x56c269(0x490)])==null||_0x54a4a4[_0x56c269(0x4cf)](_0x4fc608,{'unitID':_0x5520e7,'memberID':_0x2b1742,'textRanges':_0x2ec751});}}}[_0x47c516(0x250)](){const _0x2a6470=_0x47c516;var _0x4a3ef0;(_0x4a3ef0=this[_0x2a6470(0x344)])==null||_0x4a3ef0[_0x2a6470(0x2ea)](this[_0x2a6470(0x4e9)],this[_0x2a6470(0x1fe)],this['_awaitingChangeset'],this[_0x2a6470(0x343)]);}['_getCurrentRevision'](){const _0x2adf45=_0x47c516;return this[_0x2adf45(0x4e4)][_0x2adf45(0x479)](this[_0x2adf45(0x4e9)]);}[_0x47c516(0x50b)](_0x32c2c4){const _0x3e846c=_0x47c516;return _0x32c2c4[_0x3e846c(0x520)]<=this[_0x3e846c(0x390)]();}[_0x47c516(0x2a4)](_0x766827){const _0x3c05b5=_0x47c516;let _0x86cfa3=this[_0x3c05b5(0x496)];return!_0x86cfa3||!_0x86cfa3[_0x3c05b5(0x1f9)]||_0x86cfa3[_0x3c05b5(0x3c2)]===null||_0x86cfa3[_0x3c05b5(0x3c2)]===void 0x0?!0x1:_0x766827[_0x3c05b5(0x4e9)]===_0x86cfa3[_0x3c05b5(0x4e9)]&&_0x766827[_0x3c05b5(0x1f9)]===_0x86cfa3['sid']&&_0x766827[_0x3c05b5(0x3c2)]===_0x86cfa3[_0x3c05b5(0x3c2)];}[_0x47c516(0x3a2)](_0x54e120){const _0x5c5643=_0x47c516;let _0x296da2=this[_0x5c5643(0x496)];return!(_0x296da2!=null&&_0x296da2['sid'])||_0x296da2['reqId']==null||!_0x54e120[_0x5c5643(0x1f9)]||_0x54e120['reqId']==null?!0x1:_0x54e120['sid']===_0x296da2['sid']&&_0x54e120[_0x5c5643(0x3c2)]===_0x296da2[_0x5c5643(0x3c2)];}['_incrementRevisionNumber'](){const _0x27544b=_0x47c516;this[_0x27544b(0x4e4)][_0x27544b(0x3bb)](this[_0x27544b(0x4e9)]);}['_executeRemoteChangeset'](_0x2d4c3b){const _0x328b61=_0x47c516;let _0x52275f=this[_0x328b61(0x245)](_0x2d4c3b);_0x52275f=this[_0x328b61(0x205)](_0x52275f);let _0x329f15=this[_0x328b61(0x2bf)](_0x52275f),_0x545360=(0x0,t[_0x328b61(0x292)])(_0x52275f[_0x328b61(0x223)],this['_commandService'],{'fromCollab':!0x0});if(!_0x545360['result'])throw _0x329f15==null||_0x329f15['rollback'](),_0x545360[_0x328b61(0x492)]instanceof Error?_0x545360[_0x328b61(0x492)]:Error(_0x545360['error']??_0x328b61(0x2cd));_0x329f15==null||_0x329f15['commit'](),this[_0x328b61(0x332)](_0x52275f),this[_0x328b61(0x34b)](_0x52275f),this['_transformUndoredo'](_0x2d4c3b),this[_0x328b61(0x2e3)](_0x52275f),this['_syncEditingCollabCursor'](_0x52275f),this['_incrementRevisionNumber']();}};let D=class extends E{constructor(_0x6e8898,_0x15a6ae,_0x30963b,_0x15b0a4,_0x318077,_0x530950,_0x49b18d,_0x58c19c,_0x27d2dc,_0x5c5ffb){const _0x1d1d26=_0x47c516;super(_0x6e8898,_0x15a6ae,null,[],_0x30963b,_0x49b18d,_0x530950,_0x15b0a4,_0x5c5ffb),this[_0x1d1d26(0x400)]=_0x318077,this[_0x1d1d26(0x266)]=_0x58c19c,this[_0x1d1d26(0x3e4)]=_0x27d2dc,this[_0x1d1d26(0x4ba)]=_0x5c5ffb,g(this,'status','synced');}[_0x47c516(0x460)](_0x3dd408){const _0x3e47ff=_0x47c516;let _0xa6b0d9=this[_0x3e47ff(0x400)]['createInstance'](O,this[_0x3e47ff(0x4e9)],this['type'],[_0x3dd408],this[_0x3e47ff(0x3eb)]);return _0xa6b0d9['_schedule'](),_0xa6b0d9['_updateLocalCache'](),_0xa6b0d9;}[_0x47c516(0x2e9)](_0x4a3206){const _0x517983=_0x47c516;if(this['_isAppliedRevision'](_0x4a3206))return this;if(this[_0x517983(0x304)](_0x4a3206))return this[_0x517983(0x400)][_0x517983(0x341)](N,this[_0x517983(0x4e9)],this[_0x517983(0x1fe)],null,[],null,[_0x4a3206],this[_0x517983(0x3eb)],void 0x0);try{let _0x22102e=this[_0x517983(0x3e4)][_0x517983(0x2cb)](_0x4a3206,[e[_0x517983(0x210)]]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x22102e)){let {c1Prime:_0x3fc64b}=_0x22102e;return this[_0x517983(0x46c)](_0x3fc64b),this;}throw _0x22102e[_0x517983(0x492)];}catch(_0x2c0483){return this[_0x517983(0x266)][_0x517983(0x492)](_0x2c0483),this[_0x517983(0x53f)](!0x1);}}[_0x47c516(0x53f)](_0xbf75ed){const _0x195918=_0x47c516;return this[_0x195918(0x400)]['createInstance'](j,this[_0x195918(0x4e9)],this['type'],null,[],this[_0x195918(0x3eb)],_0xbf75ed);}[_0x47c516(0x2e1)](_0x3d2261){const _0x69ba05=_0x47c516;if(_0x3d2261[_0x69ba05(0x520)]<=this[_0x69ba05(0x390)]())return this;throw Error(_0x69ba05(0x2d7));}['onRemoteRej'](){const _0x3f1186=_0x47c516;throw Error(_0x3f1186(0x435));}['onRemoteRetry'](){return this;}[_0x47c516(0x2f2)](){const _0x3c0fae=_0x47c516;return this[_0x3c0fae(0x400)]['createInstance'](M,this['unitID'],this[_0x3c0fae(0x1fe)],null,[],this[_0x3c0fae(0x3eb)]);}[_0x47c516(0x2d4)](){return this;}[_0x47c516(0x42e)](){const _0x361f80=_0x47c516;throw Error(_0x361f80(0x3d0));}[_0x47c516(0x52a)](){const _0x227ab5=_0x47c516;let _0x52c234=this[_0x227ab5(0x4e4)][_0x227ab5(0x479)](this[_0x227ab5(0x4e9)]);return this[_0x227ab5(0x3eb)][_0x227ab5(0x2ab)]({'from':_0x52c234,'to':0x0}),this[_0x227ab5(0x400)][_0x227ab5(0x341)](N,this[_0x227ab5(0x4e9)],this['type'],null,[],null,[],this['_handler'],void 0x0);}};D=y([v(0x3,(0x0,t['Inject'])(e['RevisionService'])),v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,t['IUndoRedoService']),v(0x6,t[_0x47c516(0x212)]),v(0x7,t[_0x47c516(0x4e0)]),v(0x8,e['ITransformService']),v(0x9,(0x0,t['Optional'])(x))],D);let O=Le=class extends E{constructor(_0x4abf50,_0x3fa849,_0x5c1536,_0x4802fb,_0x26d9f5,_0x4dc70f,_0x16bc32,_0x403759,_0x1b8fe3,_0x1c3df2,_0x471599,_0x406bac,_0x34652a,_0x219f8b){const _0x5e887f=_0x47c516;super(_0x4abf50,_0x3fa849,null,_0x5c1536,_0x4802fb,_0x1b8fe3,_0x34652a,_0x4dc70f,_0x219f8b),this[_0x5e887f(0x400)]=_0x26d9f5,this[_0x5e887f(0x4fd)]=_0x16bc32,this[_0x5e887f(0x266)]=_0x403759,this[_0x5e887f(0x469)]=_0x1c3df2,this[_0x5e887f(0x3e4)]=_0x471599,this[_0x5e887f(0x2af)]=_0x406bac,g(this,'status',_0x5e887f(0x3ad)),g(this,_0x5e887f(0x2f7),null),g(this,_0x5e887f(0x31d),null);}[_0x47c516(0x460)](_0x19b6d){const _0x525fbe=_0x47c516;return this[_0x525fbe(0x343)][_0x525fbe(0x325)](_0x19b6d),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x20d0c2){const _0x1064da=_0x47c516;if(this[_0x1064da(0x50b)](_0x20d0c2))return this;if(this['_checkMissing'](_0x20d0c2))return this['_clearScheduledTask'](),this[_0x1064da(0x400)][_0x1064da(0x341)](N,this['unitID'],this[_0x1064da(0x1fe)],null,this[_0x1064da(0x343)],null,[_0x20d0c2],this[_0x1064da(0x3eb)],void 0x0);try{let _0x3b86bc=this[_0x1064da(0x3e4)][_0x1064da(0x2cb)](_0x20d0c2,this['_pendingMutations']);if((0x0,e[_0x1064da(0x218)])(_0x3b86bc)){let {c1Prime:_0x50e723,m2Prime:_0x447549}=_0x3b86bc;this[_0x1064da(0x46c)](_0x50e723);let _0x2e2854=this[_0x1064da(0x400)]['createInstance'](Le,this[_0x1064da(0x4e9)],this[_0x1064da(0x1fe)],_0x447549,this['_handler']);this[_0x1064da(0x504)]();let _0x4d2d5b=new Date()[_0x1064da(0x468)](),_0x4f47cd=this[_0x1064da(0x2f7)]?Math[_0x1064da(0x2b9)](this[_0x1064da(0x2f7)]-_0x4d2d5b,0x0):this[_0x1064da(0x1f1)]();return _0x2e2854[_0x1064da(0x3ed)](_0x4f47cd),_0x2e2854;}throw _0x3b86bc[_0x1064da(0x492)];}catch(_0x5aef27){return this[_0x1064da(0x266)]['error'](_0x5aef27),this['_onConflict'](!0x1);}}[_0x47c516(0x2e1)](_0x17c595){const _0x57c13a=_0x47c516;if(_0x17c595['revision']<=this[_0x57c13a(0x390)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x47c516(0x53b)](){const _0x9be495=_0x47c516;throw Error(_0x9be495(0x506));}[_0x47c516(0x30c)](){return this;}[_0x47c516(0x2f2)](){const _0x2289ea=_0x47c516;return this[_0x2289ea(0x504)](),this['_injector'][_0x2289ea(0x341)](M,this[_0x2289ea(0x4e9)],this['type'],null,this[_0x2289ea(0x343)],this[_0x2289ea(0x3eb)]);}[_0x47c516(0x2d4)](){return this;}[_0x47c516(0x3ed)](_0x58e474){const _0x5642e5=_0x47c516;let _0x27c3bd=_0x58e474??this['_getSendChangesetTimeout']();this[_0x5642e5(0x2f7)]=new Date()[_0x5642e5(0x468)]()+_0x27c3bd,this[_0x5642e5(0x31d)]=setTimeout(()=>{const _0x4869cb=_0x5642e5;this[_0x4869cb(0x504)]();let _0x54635e=null;switch(this[_0x4869cb(0x1fe)]){case t[_0x4869cb(0x4f3)][_0x4869cb(0x4ab)]:_0x54635e=w(this[_0x4869cb(0x343)],this['unitID'],this[_0x4869cb(0x2af)],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]);break;case t[_0x4869cb(0x4f3)][_0x4869cb(0x48e)]:_0x54635e=this['_pendingMutations'][_0x4869cb(0x26c)](_0x9fa69d=>_0x9fa69d['id']===n['RichTextEditingMutation']['id'])?Oe(this[_0x4869cb(0x343)],this[_0x4869cb(0x4e9)],this['_univerInstanceService'],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]):w(this[_0x4869cb(0x343)],this['unitID'],this[_0x4869cb(0x2af)],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]);break;case t['UniverInstanceType'][_0x4869cb(0x2b4)]:_0x54635e=De(this[_0x4869cb(0x343)],this[_0x4869cb(0x4e9)],this['_univerInstanceService'],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]);break;case t[_0x4869cb(0x4f3)][_0x4869cb(0x4a7)]:_0x54635e=Ee(this[_0x4869cb(0x343)],this[_0x4869cb(0x4e9)],this[_0x4869cb(0x2af)],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]);break;case t[_0x4869cb(0x4f3)][_0x4869cb(0x48f)]:_0x54635e=w(this['_pendingMutations'],this['unitID'],this[_0x4869cb(0x2af)],this[_0x4869cb(0x4e4)],this['_userManagerService']);break;case t['UniverInstanceType']['UNIVER_BASE']:_0x54635e=w(this[_0x4869cb(0x343)],this[_0x4869cb(0x4e9)],this[_0x4869cb(0x2af)],this['_revisionService'],this[_0x4869cb(0x4fd)]);break;default:throw Error(_0x4869cb(0x24d)+this['type']+_0x4869cb(0x448));}let {changeset:_0x3d410d,pendingMutations:_0x121818}=_0x54635e;this['_handler'][_0x4869cb(0x4c4)](_0x3d410d);let _0x224379=_0x121818[_0x4869cb(0x476)]?this[_0x4869cb(0x400)]['createInstance'](A,this[_0x4869cb(0x4e9)],this[_0x4869cb(0x1fe)],_0x3d410d,_0x121818,this[_0x4869cb(0x3eb)],void 0x0):this[_0x4869cb(0x400)][_0x4869cb(0x341)](k,this[_0x4869cb(0x4e9)],this[_0x4869cb(0x1fe)],_0x3d410d,this['_handler'],void 0x0);_0x224379[_0x4869cb(0x250)](),this[_0x4869cb(0x3eb)]['onStateChange'](this,_0x224379);},_0x27c3bd);}[_0x47c516(0x1f1)](){const _0x7677e2=_0x47c516;let _0x22d602=this[_0x7677e2(0x469)]['getConfig'](m);return(_0x22d602==null?void 0x0:_0x22d602[_0x7677e2(0x312)])??0x7d0;}['resend'](){const _0x8c6a5c=_0x47c516;throw Error(_0x8c6a5c(0x34c));}[_0x47c516(0x504)](){const _0x7ef2de=_0x47c516;this[_0x7ef2de(0x31d)]!=null&&(clearTimeout(this[_0x7ef2de(0x31d)]),this[_0x7ef2de(0x31d)]=null);}[_0x47c516(0x53f)](_0x2094fb){const _0x5edadf=_0x47c516;return this[_0x5edadf(0x504)](),this['_injector']['createInstance'](j,this[_0x5edadf(0x4e9)],this[_0x5edadf(0x1fe)],null,this[_0x5edadf(0x343)],this['_handler'],_0x2094fb);}};O=Le=y([v(0x4,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x5,(0x0,t['Inject'])(e[_0x47c516(0x21f)])),v(0x6,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x4d8)])),v(0x7,t[_0x47c516(0x4e0)]),v(0x8,t['ICommandService']),v(0x9,t[_0x47c516(0x2ae)]),v(0xa,e[_0x47c516(0x3f6)]),v(0xb,t[_0x47c516(0x493)]),v(0xc,t[_0x47c516(0x526)]),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],O);let k=Re=class extends E{constructor(_0x4b11c4,_0x45719e,_0x1b9cf1,_0x4642c8,_0x358e38,_0x2cfc8e,_0x109f06,_0x17d06f,_0x53026a,_0x2db839,_0x1eb1ee,_0x2fa88b){const _0x362826=_0x47c516;super(_0x4b11c4,_0x45719e,_0x1b9cf1,[],_0x4642c8,_0x17d06f,_0x1eb1ee,_0x109f06,_0x2fa88b),this[_0x362826(0x400)]=_0x2cfc8e,this[_0x362826(0x266)]=_0x53026a,this[_0x362826(0x3e4)]=_0x2db839,g(this,_0x362826(0x4f5),_0x362826(0x3fa)),g(this,_0x362826(0x27a),0x0),g(this,_0x362826(0x43b),0x0),g(this,'_resendTimer',void 0x0),g(this,_0x362826(0x4d0),void 0x0),_0x358e38&&(this['_resendTimeout']=_0x358e38[_0x362826(0x379)],this[_0x362826(0x43b)]=_0x358e38['total'],this['_subscribeResendTimer'](_0x358e38[_0x362826(0x4a2)]));}[_0x47c516(0x460)](_0x4441b1){const _0xec1562=_0x47c516;this[_0xec1562(0x504)]();let _0x2b2fca=this[_0xec1562(0x400)][_0xec1562(0x341)](A,this['unitID'],this[_0xec1562(0x1fe)],this[_0xec1562(0x496)],[_0x4441b1],this[_0xec1562(0x3eb)],this[_0xec1562(0x26f)]());return _0x2b2fca[_0xec1562(0x250)](),_0x2b2fca;}[_0x47c516(0x2e9)](_0x1e7b5c){const _0x4be7ca=_0x47c516;if(this[_0x4be7ca(0x2a4)](_0x1e7b5c))return this[_0x4be7ca(0x2e1)](_0x1e7b5c);if(this[_0x4be7ca(0x50b)](_0x1e7b5c))return this;if(this[_0x4be7ca(0x304)](_0x1e7b5c))return this[_0x4be7ca(0x504)](),this[_0x4be7ca(0x400)][_0x4be7ca(0x341)](N,this[_0x4be7ca(0x4e9)],this[_0x4be7ca(0x1fe)],this[_0x4be7ca(0x496)],[],null,[_0x1e7b5c],this[_0x4be7ca(0x3eb)],this[_0x4be7ca(0x26f)]());try{let _0x341854=this['_transformService'][_0x4be7ca(0x309)]([_0x1e7b5c],[this[_0x4be7ca(0x496)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x341854)){let {c1Prime:_0x45d921,c2Prime:_0x235dd4}=_0x341854;this[_0x4be7ca(0x46c)](_0x45d921[0x0]),_0x235dd4[0x0]['baseRev']=this[_0x4be7ca(0x390)](),this[_0x4be7ca(0x504)]();let _0x307b33=this[_0x4be7ca(0x400)][_0x4be7ca(0x341)](Re,this[_0x4be7ca(0x4e9)],this[_0x4be7ca(0x1fe)],_0x235dd4[0x0],this['_handler'],this[_0x4be7ca(0x26f)]());return _0x307b33[_0x4be7ca(0x250)](),_0x307b33;}throw _0x341854[_0x4be7ca(0x492)];}catch(_0x5df29b){return this[_0x4be7ca(0x266)][_0x4be7ca(0x492)](_0x5df29b),this[_0x4be7ca(0x53f)](!0x1);}}[_0x47c516(0x2e1)](_0x4d182f){const _0x51f319=_0x47c516;let _0x420824=this[_0x51f319(0x4e4)][_0x51f319(0x479)](this[_0x51f319(0x4e9)]);if(_0x4d182f['revision']<=_0x420824){if(this[_0x51f319(0x3a2)](_0x4d182f)){this[_0x51f319(0x504)]();let _0x1cdede=this[_0x51f319(0x400)][_0x51f319(0x341)](D,this[_0x51f319(0x4e9)],this[_0x51f319(0x1fe)],this[_0x51f319(0x3eb)]);return _0x1cdede[_0x51f319(0x250)](),_0x1cdede;}return this[_0x51f319(0x266)][_0x51f319(0x3c4)]('[AwaitingState]',_0x51f319(0x495)+_0x4d182f[_0x51f319(0x520)]+_0x51f319(0x4f1)+_0x420824+'.'),this;}if(this[_0x51f319(0x504)](),this['_checkMissing'](_0x4d182f))return this[_0x51f319(0x400)][_0x51f319(0x341)](N,this['unitID'],this['type'],this[_0x51f319(0x496)],[],_0x4d182f[_0x51f319(0x520)],[],this[_0x51f319(0x3eb)],void 0x0);this[_0x51f319(0x259)]();let _0x48f2f2=this[_0x51f319(0x400)]['createInstance'](D,this[_0x51f319(0x4e9)],this[_0x51f319(0x1fe)],this[_0x51f319(0x3eb)]);return _0x48f2f2['_updateLocalCache'](),_0x48f2f2;}['onRemoteRej'](_0x355e66){const _0x340681=_0x47c516;return this[_0x340681(0x53f)](!!(_0x355e66!=null&&_0x355e66['isPermissionRej']));}[_0x47c516(0x30c)](_0x2fee08){const _0x32aa73=_0x47c516;var _0x3c9a98;return _0x2fee08[_0x32aa73(0x3c2)]===((_0x3c9a98=this['_awaitingChangeset'])==null?void 0x0:_0x3c9a98[_0x32aa73(0x3c2)])?this[_0x32aa73(0x43b)]>He?this['toggleOffline']():(this[_0x32aa73(0x242)](Ie(this[_0x32aa73(0x27a)],{'reqId':_0x2fee08[_0x32aa73(0x3c2)]})),this):this;}['toggleOffline'](){const _0x49937c=_0x47c516;return this[_0x49937c(0x504)](),this[_0x49937c(0x400)]['createInstance'](M,this['unitID'],this[_0x49937c(0x1fe)],this[_0x49937c(0x496)],[],this['_handler']);}[_0x47c516(0x2d4)](){return this;}[_0x47c516(0x42e)](){const _0x5cc0f5=_0x47c516;this[_0x5cc0f5(0x3eb)][_0x5cc0f5(0x4c4)](this['_awaitingChangeset']);}[_0x47c516(0x53f)](_0x3668be){const _0x2206fd=_0x47c516;return this['_clearScheduledTask'](),this[_0x2206fd(0x400)][_0x2206fd(0x341)](j,this[_0x2206fd(0x4e9)],this['type'],this[_0x2206fd(0x496)],[],this[_0x2206fd(0x3eb)],_0x3668be);}[_0x47c516(0x242)](_0x5a22d1){const _0x5f5b2d=_0x47c516;var _0x2f3d23;(_0x2f3d23=this[_0x5f5b2d(0x4d0)])==null||_0x2f3d23[_0x5f5b2d(0x44d)](),this[_0x5f5b2d(0x498)]=_0x5a22d1,this[_0x5f5b2d(0x4d0)]=_0x5a22d1==null?void 0x0:_0x5a22d1[_0x5f5b2d(0x51a)](({reqId:_0x164d85})=>this[_0x5f5b2d(0x40b)](_0x164d85));}[_0x47c516(0x40b)](_0x357311){const _0x324e51=_0x47c516;var _0x54c005;_0x357311===((_0x54c005=this[_0x324e51(0x496)])==null?void 0x0:_0x54c005[_0x324e51(0x3c2)])&&(this[_0x324e51(0x498)]=void 0x0,this[_0x324e51(0x42e)](),this[_0x324e51(0x27a)]=this['_resendTimeout']===0x0?0x3e8:Math[_0x324e51(0x497)](this['_resendTimeout']*0x2,Ve),this[_0x324e51(0x43b)]+=this[_0x324e51(0x27a)]);}[_0x47c516(0x26f)](){const _0x3306c6=_0x47c516;return{'timer':this[_0x3306c6(0x498)],'timeout':this['_resendTimeout'],'total':this[_0x3306c6(0x43b)]};}[_0x47c516(0x504)](){const _0x66dc38=_0x47c516;var _0x4a0ccb;(_0x4a0ccb=this['_sender'])==null||_0x4a0ccb[_0x66dc38(0x44d)]();}};k=Re=y([v(0x5,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,t[_0x47c516(0x212)]),v(0x8,t[_0x47c516(0x4e0)]),v(0x9,e['ITransformService']),v(0xa,t['IUndoRedoService']),v(0xb,(0x0,t[_0x47c516(0x263)])(x))],k);let A=ze=class extends E{constructor(_0x109189,_0x1ab65e,_0x4532a6,_0x32aa1f,_0x2bdca5,_0xcd5d8,_0x434865,_0x18c6d8,_0x563569,_0x5a1bfd,_0x2384f7,_0x1a6570,_0x5f3713){const _0x529b40=_0x47c516;super(_0x109189,_0x1ab65e,_0x4532a6,_0x32aa1f,_0x2bdca5,_0x563569,_0x1a6570,_0x18c6d8,_0x5f3713),this[_0x529b40(0x400)]=_0x434865,this[_0x529b40(0x266)]=_0x5a1bfd,this[_0x529b40(0x3e4)]=_0x2384f7,this[_0x529b40(0x4ba)]=_0x5f3713,g(this,_0x529b40(0x4f5),_0x529b40(0x50d)),g(this,'_resendTimeout',0x0),g(this,_0x529b40(0x43b),0x0),g(this,_0x529b40(0x498),void 0x0),g(this,'_sender',void 0x0),_0xcd5d8&&(this[_0x529b40(0x27a)]=_0xcd5d8[_0x529b40(0x379)],this[_0x529b40(0x43b)]=_0xcd5d8['total'],this[_0x529b40(0x242)](_0xcd5d8['timer']));}['appendMutation'](_0x15b87b){const _0xc8656c=_0x47c516;return this[_0xc8656c(0x343)][_0xc8656c(0x325)](_0x15b87b),this;}['onRemoteChangeset'](_0x4632e6){const _0x41b46a=_0x47c516;if(this['_isEchoedAwaitingChangeset'](_0x4632e6))return this[_0x41b46a(0x2e1)](_0x4632e6);if(this[_0x41b46a(0x50b)](_0x4632e6))return this;if(this['_checkMissing'](_0x4632e6))return this['_clearScheduledTask'](),this[_0x41b46a(0x400)]['createInstance'](N,this[_0x41b46a(0x4e9)],this[_0x41b46a(0x1fe)],this[_0x41b46a(0x496)],this['_pendingMutations'],null,[_0x4632e6],this[_0x41b46a(0x3eb)],this[_0x41b46a(0x26f)]());try{let _0x25c412=this['_transformService'][_0x41b46a(0x309)]([_0x4632e6],[this[_0x41b46a(0x496)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x25c412)){let {c1Prime:_0x332c4c,c2Prime:_0x8d44ea}=_0x25c412,_0x40b0f6=this['_transformService'][_0x41b46a(0x2cb)](_0x332c4c[0x0],this[_0x41b46a(0x343)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x40b0f6)){let {c1Prime:_0x1423eb,m2Prime:_0x45ad94}=_0x40b0f6;return this[_0x41b46a(0x46c)](_0x1423eb),_0x8d44ea[0x0][_0x41b46a(0x4f9)]=this[_0x41b46a(0x390)](),this[_0x41b46a(0x504)](),this[_0x41b46a(0x400)][_0x41b46a(0x341)](ze,this[_0x41b46a(0x4e9)],this[_0x41b46a(0x1fe)],_0x8d44ea[0x0],_0x45ad94,this[_0x41b46a(0x3eb)],this[_0x41b46a(0x26f)]());}throw _0x40b0f6[_0x41b46a(0x492)];}throw _0x25c412[_0x41b46a(0x492)];}catch(_0x33829d){return this[_0x41b46a(0x266)][_0x41b46a(0x492)](_0x33829d),this[_0x41b46a(0x53f)](!0x1);}}[_0x47c516(0x2e1)](_0x39c511){const _0x12d906=_0x47c516;let _0x4cd881=this[_0x12d906(0x390)]();if(_0x39c511[_0x12d906(0x520)]<=_0x4cd881){if(this[_0x12d906(0x3a2)](_0x39c511)){this[_0x12d906(0x504)]();let _0x21b5e2=this['_injector'][_0x12d906(0x341)](O,this[_0x12d906(0x4e9)],this[_0x12d906(0x1fe)],this['_pendingMutations'],this[_0x12d906(0x3eb)]);return _0x21b5e2[_0x12d906(0x3ed)](),_0x21b5e2[_0x12d906(0x250)](),_0x21b5e2;}return this[_0x12d906(0x266)][_0x12d906(0x3c4)](_0x12d906(0x2c1),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x39c511[_0x12d906(0x520)]+_0x12d906(0x4f1)+_0x4cd881+'.'),this;}if(this[_0x12d906(0x504)](),this[_0x12d906(0x304)](_0x39c511))return this[_0x12d906(0x400)]['createInstance'](N,this['unitID'],this[_0x12d906(0x1fe)],this[_0x12d906(0x496)],this[_0x12d906(0x343)],_0x39c511['revision'],[],this[_0x12d906(0x3eb)],void 0x0);this['_incrementRevisionNumber']();let _0x1b5ff7=this[_0x12d906(0x400)][_0x12d906(0x341)](O,this[_0x12d906(0x4e9)],this[_0x12d906(0x1fe)],this[_0x12d906(0x343)],this[_0x12d906(0x3eb)]);return _0x1b5ff7[_0x12d906(0x3ed)](),_0x1b5ff7[_0x12d906(0x250)](),_0x1b5ff7;}[_0x47c516(0x53b)](_0x439365){const _0x5c4f5d=_0x47c516;return this[_0x5c4f5d(0x53f)](!!(_0x439365!=null&&_0x439365[_0x5c4f5d(0x3c7)]));}['onRemoteRetry'](_0x35c6fe){const _0x55f18f=_0x47c516;var _0x1d8366;return _0x35c6fe[_0x55f18f(0x3c2)]===((_0x1d8366=this[_0x55f18f(0x496)])==null?void 0x0:_0x1d8366['reqId'])?this['_maxTotalRetryTimeout']>He?this[_0x55f18f(0x2f2)]():(this['_subscribeResendTimer'](Ie(this[_0x55f18f(0x27a)],{'reqId':_0x35c6fe[_0x55f18f(0x3c2)]})),this):this;}[_0x47c516(0x2f2)](){const _0x52be52=_0x47c516;return this['_clearScheduledTask'](),this[_0x52be52(0x400)][_0x52be52(0x341)](M,this[_0x52be52(0x4e9)],this[_0x52be52(0x1fe)],this[_0x52be52(0x496)],this[_0x52be52(0x343)],this[_0x52be52(0x3eb)]);}[_0x47c516(0x2d4)](){return this;}[_0x47c516(0x42e)](){const _0x5f2c2c=_0x47c516;this[_0x5f2c2c(0x3eb)][_0x5f2c2c(0x4c4)](this[_0x5f2c2c(0x496)]);}[_0x47c516(0x53f)](_0x2d43aa){const _0x3594a4=_0x47c516;return this[_0x3594a4(0x504)](),this[_0x3594a4(0x400)][_0x3594a4(0x341)](j,this[_0x3594a4(0x4e9)],this[_0x3594a4(0x1fe)],null,this[_0x3594a4(0x343)],this['_handler'],_0x2d43aa);}[_0x47c516(0x242)](_0x315551){const _0x44a4a9=_0x47c516;var _0x1d9a05;(_0x1d9a05=this[_0x44a4a9(0x4d0)])==null||_0x1d9a05[_0x44a4a9(0x44d)](),this[_0x44a4a9(0x498)]=_0x315551,this[_0x44a4a9(0x4d0)]=_0x315551==null?void 0x0:_0x315551[_0x44a4a9(0x51a)](({reqId:_0x416211})=>this[_0x44a4a9(0x40b)](_0x416211));}['_runScheduledResend'](_0x1ceaac){const _0x18acea=_0x47c516;var _0x13f936;_0x1ceaac===((_0x13f936=this[_0x18acea(0x496)])==null?void 0x0:_0x13f936[_0x18acea(0x3c2)])&&(this[_0x18acea(0x498)]=void 0x0,this[_0x18acea(0x42e)](),this[_0x18acea(0x27a)]=this[_0x18acea(0x27a)]===0x0?0x3e8:Math[_0x18acea(0x497)](this['_resendTimeout']*0x2,Ve),this[_0x18acea(0x43b)]+=this[_0x18acea(0x27a)]);}[_0x47c516(0x26f)](){const _0x338edb=_0x47c516;return{'timer':this[_0x338edb(0x498)],'timeout':this[_0x338edb(0x27a)],'total':this['_maxTotalRetryTimeout']};}[_0x47c516(0x504)](){const _0x189db8=_0x47c516;var _0x2429ca;(_0x2429ca=this[_0x189db8(0x4d0)])==null||_0x2429ca['unsubscribe']();}};A=ze=y([v(0x6,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x7,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x8,t['ICommandService']),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,e[_0x47c516(0x3f6)]),v(0xb,t[_0x47c516(0x526)]),v(0xc,(0x0,t['Optional'])(x))],A);let j=class extends E{constructor(_0x7b7434,_0x78440,_0x519430,_0x355891,_0x117648,_0x262b96=!0x1,_0x32a22c,_0xa89d2d,_0x53c134,_0xa9e77e,_0x3e4c8c,_0x50e395,_0x576921,_0x40bd11,_0x2e66d2){const _0x587537=_0x47c516;super(_0x7b7434,_0x78440,_0x519430,_0x355891,_0x117648,_0xa89d2d,_0x53c134,_0xa9e77e,_0x2e66d2),this[_0x587537(0x398)]=_0x262b96,this[_0x587537(0x539)]=_0x32a22c,this[_0x587537(0x299)]=_0x3e4c8c,this['_userManagerService']=_0x50e395,this[_0x587537(0x266)]=_0x576921,this['_collaborationUIEventService']=_0x40bd11,this[_0x587537(0x4ba)]=_0x2e66d2,g(this,_0x587537(0x4f5),_0x587537(0x4d2)),this[_0x587537(0x547)](),this[_0x587537(0x233)](),this[_0x587537(0x40f)]()['catch'](_0x21815c=>this[_0x587537(0x266)]['error'](_0x21815c));}[_0x47c516(0x460)](){return this;}[_0x47c516(0x2e9)](){return this;}[_0x47c516(0x2e1)](){return this;}[_0x47c516(0x53b)](){return this;}[_0x47c516(0x30c)](){return this;}[_0x47c516(0x2f2)](){return this;}['toggleOnline'](){return this;}[_0x47c516(0x42e)](){const _0x3d36dc=_0x47c516;throw Error(_0x3d36dc(0x386));}async['_prepareConflictRecovery'](){const _0x3e56d0=_0x47c516;var _0x3a724b,_0x488333,_0xfeff9e;let _0x43148a=((_0x3a724b=this[_0x3e56d0(0x4fd)][_0x3e56d0(0x3ee)]())==null?void 0x0:_0x3a724b['userID'])??'';await((_0x488333=this[_0x3e56d0(0x344)])==null||(_0xfeff9e=_0x488333[_0x3e56d0(0x4e7)])==null?void 0x0:_0xfeff9e[_0x3e56d0(0x4cf)](_0x488333,this[_0x3e56d0(0x4e9)],_0x3e56d0(0x4d2),_0x43148a)['catch'](()=>void 0x0));try{var _0x249e53;await((_0x249e53=this[_0x3e56d0(0x344)])==null?void 0x0:_0x249e53['clearOfflineData'](this[_0x3e56d0(0x4e9)],_0x43148a));}catch{this[_0x3e56d0(0x396)][_0x3e56d0(0x315)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x3e56d0(0x4e9)],'userId':_0x43148a});return;}this[_0x3e56d0(0x481)]();}[_0x47c516(0x233)](){const _0x9243e5=_0x47c516;this['_collaborationUIEventService'][_0x9243e5(0x315)]({'id':'CONFLICT_PROCESSING'});}['_showConflictNotification'](){const _0x2c2a2e=_0x47c516;this[_0x2c2a2e(0x398)]?this[_0x2c2a2e(0x396)][_0x2c2a2e(0x315)]({'id':_0x2c2a2e(0x33b)}):this[_0x2c2a2e(0x396)]['emitEvent']({'id':_0x2c2a2e(0x30f)});}[_0x47c516(0x547)](){const _0x424044=_0x47c516;this[_0x424044(0x539)][_0x424044(0x3be)](new r[(_0x424044(0x50f))](this['unitID'])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x333)])),v(0x7,t[_0x47c516(0x212)]),v(0x8,t[_0x47c516(0x526)]),v(0x9,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0xa,(0x0,t['Inject'])(t[_0x47c516(0x346)])),v(0xb,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x4d8)])),v(0xc,t[_0x47c516(0x4e0)]),v(0xd,(0x0,t[_0x47c516(0x528)])(_)),v(0xe,(0x0,t[_0x47c516(0x263)])(x))],j);let M=class extends E{constructor(_0x597d71,_0x19f8ee,_0x556f12,_0x5f2e11,_0x130c8c,_0x235303,_0x7e9dd1,_0x3a47a1,_0x22e24a,_0x3ceca8){const _0x32183b=_0x47c516;super(_0x597d71,_0x19f8ee,_0x556f12,_0x5f2e11,_0x130c8c,_0x3a47a1,_0x22e24a,_0x7e9dd1,_0x3ceca8),this[_0x32183b(0x400)]=_0x235303,g(this,_0x32183b(0x4f5),_0x32183b(0x2ad));}[_0x47c516(0x460)](_0x4e5c2a){const _0x5d29b7=_0x47c516;return this['_pendingMutations'][_0x5d29b7(0x325)](_0x4e5c2a),this['_updateLocalCache'](),this;}[_0x47c516(0x2e9)](_0x4d8c11){const _0x4b034e=_0x47c516;throw Error(_0x4b034e(0x49c));}[_0x47c516(0x2e1)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x47c516(0x53b)](){const _0x238989=_0x47c516;throw Error(_0x238989(0x447));}[_0x47c516(0x30c)](){return this;}['toggleOffline'](){return this;}[_0x47c516(0x2d4)](){const _0x3382f8=_0x47c516;let {_injector:_0x33588e,_pendingMutations:_0xbce035,_awaitingChangeset:_0x1041f0,unitID:_0x22893d,_handler:_0x40154f,type:_0x4e420a}=this,_0xe7c175=Ue(_0x33588e,_0x22893d,_0x4e420a,_0x1041f0,_0xbce035,_0x40154f);return _0xe7c175 instanceof O?_0xe7c175[_0x3382f8(0x3ed)]():(_0xe7c175 instanceof A||_0xe7c175 instanceof k)&&_0xe7c175['resend'](),_0xe7c175;}[_0x47c516(0x42e)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};M=y([v(0x5,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x6,(0x0,t['Inject'])(e[_0x47c516(0x21f)])),v(0x7,t['ICommandService']),v(0x8,t[_0x47c516(0x526)]),v(0x9,(0x0,t[_0x47c516(0x263)])(x))],M);function _0x88a9(_0x444fdc,_0x50131f){_0x444fdc=_0x444fdc-0x1ee;const _0x606370=_0x6063();let _0x88a978=_0x606370[_0x444fdc];return _0x88a978;}let N=class extends E{constructor(_0x14701a,_0x15af1a,_0x53bcfb,_0x3a9fd5,_0x3799da,_0x869b8b,_0x5c397f,_0x1966fb,_0x5c8825,_0x1310b8,_0x1c7db0,_0x27d364,_0x57206d,_0x8b134a,_0x543c90){const _0x3fd50d=_0x47c516;super(_0x14701a,_0x15af1a,_0x53bcfb,_0x3a9fd5,_0x5c397f,_0x27d364,_0x57206d,_0x1310b8,_0x543c90),this['_acknowledgedAwaitingRevision']=_0x3799da,this[_0x3fd50d(0x200)]=_0x869b8b,this['_resendSchedule']=_0x1966fb,this[_0x3fd50d(0x400)]=_0x5c8825,this['_logService']=_0x1c7db0,this[_0x3fd50d(0x3e4)]=_0x8b134a,this[_0x3fd50d(0x4ba)]=_0x543c90,g(this,'status',_0x3fd50d(0x238));}[_0x47c516(0x494)](_0x12fcf7){const _0x1504e5=_0x47c516;try{if(this[_0x1504e5(0x37a)](_0x12fcf7)[_0x1504e5(0x353)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this['_handleRemoteChangesets']([...this[_0x1504e5(0x200)]]['sort']((_0x1a83f8,_0xdbeefd)=>_0x1a83f8[_0x1504e5(0x520)]-_0xdbeefd[_0x1504e5(0x520)]))[_0x1504e5(0x353)])return this['_queuedRemoteChangesets']=[],this[_0x1504e5(0x250)](),this[_0x1504e5(0x3eb)][_0x1504e5(0x2ab)]({'from':this[_0x1504e5(0x390)](),'to':0x0}),this;let _0x45ce7d=this[_0x1504e5(0x496)],_0x178c51=this['_pendingMutations'],_0x1f391e;if(_0x45ce7d&&_0x178c51['length']!==0x0)_0x1f391e=this['_injector'][_0x1504e5(0x341)](A,this[_0x1504e5(0x4e9)],this[_0x1504e5(0x1fe)],_0x45ce7d,_0x178c51,this[_0x1504e5(0x3eb)],this[_0x1504e5(0x26f)]);else{if(_0x45ce7d&&_0x178c51['length']===0x0)_0x45ce7d[_0x1504e5(0x4f9)]=this[_0x1504e5(0x390)](),_0x1f391e=this[_0x1504e5(0x400)][_0x1504e5(0x341)](k,this[_0x1504e5(0x4e9)],this['type'],_0x45ce7d,this[_0x1504e5(0x3eb)],this[_0x1504e5(0x26f)]);else{if(_0x178c51['length']!==0x0){let _0x3c42d2=this[_0x1504e5(0x400)][_0x1504e5(0x341)](O,this[_0x1504e5(0x4e9)],this[_0x1504e5(0x1fe)],_0x178c51,this[_0x1504e5(0x3eb)]);_0x3c42d2[_0x1504e5(0x3ed)](),_0x1f391e=_0x3c42d2;}else _0x1f391e=this[_0x1504e5(0x400)][_0x1504e5(0x341)](D,this[_0x1504e5(0x4e9)],this[_0x1504e5(0x1fe)],this[_0x1504e5(0x3eb)]);}}return _0x1f391e[_0x1504e5(0x250)](),_0x1f391e;}catch(_0x566a29){return this[_0x1504e5(0x266)][_0x1504e5(0x492)](_0x1504e5(0x29a),'failed\x20to\x20apply\x20missed\x20changesets!',_0x566a29),this['_injector']['createInstance'](j,this[_0x1504e5(0x4e9)],this[_0x1504e5(0x1fe)],this[_0x1504e5(0x496)],this[_0x1504e5(0x343)],this[_0x1504e5(0x3eb)],!0x1);}}['_handleRemoteChangesets'](_0x345b92){const _0x902ce9=_0x47c516;this[_0x902ce9(0x370)]();for(let _0x4096b7=0x0;_0x4096b7<_0x345b92['length'];_0x4096b7++){let _0x430c56=_0x345b92[_0x4096b7],_0x1f1c39=this['_getCurrentRevision']();if(this[_0x902ce9(0x2a4)](_0x430c56)){if(_0x430c56[_0x902ce9(0x520)]>_0x1f1c39+0x1)return{'missingChangesets':!0x0};_0x430c56[_0x902ce9(0x520)]<=_0x1f1c39?this[_0x902ce9(0x510)]():this[_0x902ce9(0x4b0)]();}else{if(!(_0x430c56['revision']<=_0x1f1c39)){if(_0x430c56['revision']>_0x1f1c39+0x1)return{'missingChangesets':!0x0};this['_transformAndApplyRemoteChangeset'](_0x430c56),this['_acknowledgeAwaitingIfReady']();}}}return{'missingChangesets':!0x1};}[_0x47c516(0x27b)](_0x387d1b){const _0x1e06e8=_0x47c516;let _0x2aeee8=_0x387d1b,_0x4053e4=this['_awaitingChangeset'];if(_0x4053e4){let _0x2a5fb7=this[_0x1e06e8(0x3e4)][_0x1e06e8(0x309)]([_0x387d1b],[_0x4053e4],!0x1);if(!(0x0,e[_0x1e06e8(0x28c)])(_0x2a5fb7))throw _0x2a5fb7['error'];_0x2aeee8=_0x2a5fb7['c1Prime'][0x0],_0x4053e4=_0x2a5fb7[_0x1e06e8(0x4da)][0x0];}let _0x4362e1=this[_0x1e06e8(0x343)];if(_0x4362e1[_0x1e06e8(0x476)]){let _0x35c235=this['_transformService'][_0x1e06e8(0x2cb)](_0x2aeee8,_0x4362e1);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x35c235))throw _0x35c235[_0x1e06e8(0x492)];_0x2aeee8=_0x35c235[_0x1e06e8(0x28f)],_0x4362e1=_0x35c235[_0x1e06e8(0x4f7)];}this['_executeRemoteChangeset'](_0x2aeee8),_0x4053e4&&(_0x4053e4[_0x1e06e8(0x4f9)]=this[_0x1e06e8(0x390)]()),this['_awaitingChangeset']=_0x4053e4,this[_0x1e06e8(0x343)]=_0x4362e1;}['_acknowledgeAwaitingIfReady'](){const _0x24cafd=_0x47c516;if(!this[_0x24cafd(0x496)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x4c8523=this[_0x24cafd(0x390)]();if(this['_acknowledgedAwaitingRevision']<=_0x4c8523)throw Error(_0x24cafd(0x2fb)+this[_0x24cafd(0x405)]+'.');this[_0x24cafd(0x405)]===_0x4c8523+0x1&&this['_acknowledgeAwaiting']();}[_0x47c516(0x4b0)](){const _0x2d0c5d=_0x47c516;this[_0x2d0c5d(0x259)](),this[_0x2d0c5d(0x510)]();}['_dropAcknowledgedAwaiting'](){const _0xc3139e=_0x47c516;this['_awaitingChangeset']=null,this[_0xc3139e(0x405)]=null,this['_resendSchedule']=void 0x0;}['resend'](){const _0x35ed9d=_0x47c516;throw Error(_0x35ed9d(0x226));}['appendMutation'](_0x106f5d){const _0x4847d2=_0x47c516;return this[_0x4847d2(0x343)][_0x4847d2(0x325)](_0x106f5d),this;}[_0x47c516(0x2e9)](_0x4767f8){const _0x7cec81=_0x47c516;return this[_0x7cec81(0x200)][_0x7cec81(0x325)](_0x4767f8),this;}[_0x47c516(0x2e1)](_0x3eaeb6){const _0x5d2301=_0x47c516;if(this[_0x5d2301(0x496)]){let _0x5803c5=this['_getCurrentRevision']();return _0x3eaeb6[_0x5d2301(0x520)]<=_0x5803c5?(this[_0x5d2301(0x3a2)](_0x3eaeb6)&&this[_0x5d2301(0x510)](),this):(_0x5803c5+0x1===_0x3eaeb6[_0x5d2301(0x520)]?this[_0x5d2301(0x4b0)]():(this['_acknowledgedAwaitingRevision']=_0x3eaeb6[_0x5d2301(0x520)],this[_0x5d2301(0x26f)]=void 0x0),this);}if(_0x3eaeb6[_0x5d2301(0x520)]<=this[_0x5d2301(0x390)]())return this;throw Error(_0x5d2301(0x267));}[_0x47c516(0x53b)](_0x1f4362){const _0x552e7b=_0x47c516;return this[_0x552e7b(0x53f)](!!(_0x1f4362!=null&&_0x1f4362[_0x552e7b(0x3c7)]));}['onRemoteRetry'](_0x3ebea9){const _0x23a6c0=_0x47c516;var _0x1d1a32;if(this[_0x23a6c0(0x405)]!=null||_0x3ebea9[_0x23a6c0(0x3c2)]!==((_0x1d1a32=this[_0x23a6c0(0x496)])==null?void 0x0:_0x1d1a32[_0x23a6c0(0x3c2)]))return this;let _0xfd4773=this[_0x23a6c0(0x26f)]??{'timer':void 0x0,'timeout':0x0,'total':0x0};return _0xfd4773[_0x23a6c0(0x4a2)]?this:_0xfd4773[_0x23a6c0(0x1fd)]>He?this[_0x23a6c0(0x2f2)]():(this[_0x23a6c0(0x26f)]={..._0xfd4773,'timer':Ie(_0xfd4773[_0x23a6c0(0x379)],{'reqId':_0x3ebea9[_0x23a6c0(0x3c2)]})},this);}[_0x47c516(0x2f2)](){const _0x36190d=_0x47c516;return this[_0x36190d(0x400)][_0x36190d(0x341)](M,this['unitID'],this['type'],this[_0x36190d(0x496)],this[_0x36190d(0x343)],this[_0x36190d(0x3eb)]);}['toggleOnline'](){return this;}[_0x47c516(0x53f)](_0x41e0db){const _0xf2003f=_0x47c516;return this[_0xf2003f(0x400)][_0xf2003f(0x341)](j,this['unitID'],this[_0xf2003f(0x1fe)],this['_awaitingChangeset'],this[_0xf2003f(0x343)],this[_0xf2003f(0x3eb)],_0x41e0db);}};N=y([v(0x8,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x9,(0x0,t['Inject'])(e['RevisionService'])),v(0xa,t[_0x47c516(0x4e0)]),v(0xb,t[_0x47c516(0x212)]),v(0xc,t[_0x47c516(0x526)]),v(0xd,e['ITransformService']),v(0xe,(0x0,t[_0x47c516(0x263)])(x))],N);function Ue(_0x12963e,_0x4f4421,_0x1a91e9,_0xf95dae,_0xa0d25e,_0x4c0374){const _0x5dfcd9=_0x47c516;return _0xf95dae&&_0xa0d25e[_0x5dfcd9(0x476)]?_0x12963e[_0x5dfcd9(0x341)](A,_0x4f4421,_0x1a91e9,_0xf95dae,_0xa0d25e,_0x4c0374,void 0x0):_0xf95dae?_0x12963e[_0x5dfcd9(0x341)](k,_0x4f4421,_0x1a91e9,_0xf95dae,_0x4c0374,void 0x0):_0xa0d25e[_0x5dfcd9(0x476)]?_0x12963e['createInstance'](O,_0x4f4421,_0x1a91e9,_0xa0d25e,_0x4c0374):_0x12963e[_0x5dfcd9(0x341)](D,_0x4f4421,_0x1a91e9,_0x4c0374);}let P=class extends t[_0x47c516(0x3b6)]{get[_0x47c516(0x41c)](){const _0x39913a=_0x47c516;return this[_0x39913a(0x356)];}constructor(_0xe7ac27,_0x15c45a,_0x43872f,_0x1e1b5f,_0x3d46bf,_0x586f06,_0x42768e,_0x54c7fc,_0x4ba864,_0xaec247,_0x4badea,_0x17ca9a,_0x586f70,_0x3db6e){const _0xcbba4=_0x47c516;super(),this[_0xcbba4(0x4e9)]=_0xe7ac27,this[_0xcbba4(0x257)]=_0x15c45a,this['_type']=_0x43872f,this[_0xcbba4(0x400)]=_0x1e1b5f,this[_0xcbba4(0x443)]=_0x3d46bf,this['_localeService']=_0x586f06,this[_0xcbba4(0x4e4)]=_0x42768e,this[_0xcbba4(0x458)]=_0x54c7fc,this[_0xcbba4(0x2af)]=_0x4ba864,this[_0xcbba4(0x266)]=_0xaec247,this[_0xcbba4(0x213)]=_0x4badea,this['_permissionService']=_0x17ca9a,this[_0xcbba4(0x51f)]=_0x586f70,this[_0xcbba4(0x344)]=_0x3db6e,g(this,_0xcbba4(0x302),new i[(_0xcbba4(0x2f4))](null)),g(this,_0xcbba4(0x208),this[_0xcbba4(0x302)][_0xcbba4(0x404)]()),g(this,_0xcbba4(0x356),void 0x0),g(this,_0xcbba4(0x244),!0x1),g(this,_0xcbba4(0x4f6),''),g(this,'_changesetReqId',0x0),g(this,'status$',this['state$']['pipe']((0x0,i[_0xcbba4(0x41a)])(_0x47cd68=>_0x47cd68?_0x47cd68[_0xcbba4(0x4f5)]:_0xcbba4(0x2ad)),(0x0,i[_0xcbba4(0x35c)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0xcbba4(0x535),!0x1),g(this,_0xcbba4(0x527),[]);}async[_0x47c516(0x243)](){const _0x5ea469=_0x47c516;if(this[_0x5ea469(0x41c)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x47c516(0x36c)](){const _0x35337b=_0x47c516;return this[_0x35337b(0x244)]=!0x0,(0x0,t[_0x35337b(0x3b4)])(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x47c516(0x3c0)](_0x130c47){const _0x85ae4=_0x47c516;this[_0x85ae4(0x477)](_0x130c47);}['_updateState'](_0x7eab3b){const _0x5e4f42=_0x47c516;this['_state']=_0x7eab3b,this[_0x5e4f42(0x302)][_0x5e4f42(0x485)](_0x7eab3b);}async[_0x47c516(0x2c7)](){const _0x54e190=_0x47c516;if(this[_0x54e190(0x297)](await this[_0x54e190(0x48c)]()),this[_0x54e190(0x51f)]){var _0x162043;(_0x162043=this['_singleActiveUnitService'])==null||_0x162043['editingUnit'](this[_0x54e190(0x4e9)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x54e190(0x43c)](this[_0x54e190(0x4e9)])[_0x54e190(0x51a)](_0xffa5b1=>{const _0xe9a271=_0x54e190;this[_0xe9a271(0x266)][_0xe9a271(0x3c4)]('[CollaborationEntity]',_0xe9a271(0x417),_0xffa5b1),_0xffa5b1===0x1?(this[_0xe9a271(0x458)]['emitEvent']({'id':_0xe9a271(0x451)}),this[_0xe9a271(0x539)][_0xe9a271(0x3be)](new r['WorkbookEditablePermission'](this[_0xe9a271(0x4e9)])['id'],!0x1),this[_0xe9a271(0x539)][_0xe9a271(0x34a)](!0x1)):(this[_0xe9a271(0x539)][_0xe9a271(0x3be)](new r[(_0xe9a271(0x50f))](this[_0xe9a271(0x4e9)])['id'],!0x0),this['_permissionService'][_0xe9a271(0x34a)](!0x0));}));}let _0x2ee624=!0x1;return this[_0x54e190(0x4dc)](this['session'][_0x54e190(0x455)]['subscribe'](_0x518069=>{const _0x56d6a9=_0x54e190;_0x518069===0x3?this[_0x56d6a9(0x2a1)](_0x2ee624):_0x518069===0x2&&(_0x2ee624=!0x0,this[_0x56d6a9(0x31c)]());})),this[_0x54e190(0x4dc)](this['session'][_0x54e190(0x502)][_0x54e190(0x51a)](_0x394057=>{const _0x50d73a=_0x54e190;try{switch(_0x394057[_0x50d73a(0x393)]){case e['CollaborationEvent'][_0x50d73a(0x363)]:this[_0x50d73a(0x3a0)]((0x0,e[_0x50d73a(0x450)])(_0x394057[_0x50d73a(0x3cf)]));break;case e[_0x50d73a(0x427)]['CHANGESET_ACK']:this[_0x50d73a(0x32a)](_0x394057[_0x50d73a(0x3cf)]);break;case e[_0x50d73a(0x427)][_0x50d73a(0x361)]:this[_0x50d73a(0x372)]();break;case e[_0x50d73a(0x427)][_0x50d73a(0x2fa)]:this[_0x50d73a(0x3d8)](_0x394057[_0x50d73a(0x3cf)]);break;case e[_0x50d73a(0x427)][_0x50d73a(0x446)]:this['_onFetchMissResult'](_0x394057[_0x50d73a(0x3cf)][_0x50d73a(0x4a9)]['map'](_0x552131=>(0x0,e['parseProtocolChangeset'])(_0x552131)));break;case e[_0x50d73a(0x427)][_0x50d73a(0x383)]:this[_0x50d73a(0x372)]({'isPermissionRej':!0x0});break;case e[_0x50d73a(0x427)]['UNISCRIPT_RUN']:}}catch(_0x4b7ea0){throw console[_0x50d73a(0x492)]('Error\x20on\x20receiving\x20event',_0x4b7ea0),_0x4b7ea0;}})),this[_0x54e190(0x356)];}[_0x47c516(0x32e)](){const _0x2beb65=_0x47c516;this[_0x2beb65(0x535)]=!0x1;}[_0x47c516(0x2e0)](){const _0x5a4366=_0x47c516;if(this[_0x5a4366(0x535)])throw Error('[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.');this[_0x5a4366(0x535)]=!0x0;}[_0x47c516(0x477)](_0x5ee127){const _0x285de4=_0x47c516;this['_lockTransition'](),this[_0x285de4(0x297)](this[_0x285de4(0x356)]['appendMutation'](_0x5ee127)),this[_0x285de4(0x32e)]();}[_0x47c516(0x3a0)](_0xdfdeb){const _0x2c50cd=_0x47c516;this['_collaborationPaused']?this[_0x2c50cd(0x527)][_0x2c50cd(0x325)](_0xdfdeb):this['_applyRemoteChangeset'](_0xdfdeb);}[_0x47c516(0x4b4)](){const _0x7bfab6=_0x47c516;this['_remoteChangesetQueue'][_0x7bfab6(0x4b1)](_0x116d77=>this['_applyRemoteChangeset'](_0x116d77)),this[_0x7bfab6(0x527)]=[];}[_0x47c516(0x3dd)](_0x59f584){const _0x41b518=_0x47c516;let _0x59dd95=this[_0x41b518(0x443)][_0x41b518(0x362)][_0x41b518(0x3e2)](this[_0x41b518(0x443)][_0x41b518(0x362)][_0x41b518(0x248)]()['COMPRESS_MUTATION_APPLY'])(_0x59f584[_0x41b518(0x223)],null)||_0x59f584[_0x41b518(0x223)],_0x59a6c8={..._0x59f584,'mutations':_0x59dd95};this[_0x41b518(0x2e0)](),this[_0x41b518(0x297)](this['_state'][_0x41b518(0x2e9)](_0x59a6c8)),this[_0x41b518(0x32e)]();}[_0x47c516(0x32a)](_0x3de175){const _0x4562ad=_0x47c516;this[_0x4562ad(0x2e0)](),this[_0x4562ad(0x297)](this[_0x4562ad(0x356)][_0x4562ad(0x2e1)](_0x3de175)),this[_0x4562ad(0x32e)]();}['_onRemoteRejected'](_0x3a35e4){const _0x2ae0ae=_0x47c516;this['_lockTransition'](),this['_updateState'](this['_state'][_0x2ae0ae(0x53b)](_0x3a35e4)),this[_0x2ae0ae(0x32e)]();}[_0x47c516(0x3d8)](_0x157d44){const _0x4f8bfe=_0x47c516;this[_0x4f8bfe(0x2e0)](),this['_updateState'](this['_state'][_0x4f8bfe(0x30c)](_0x157d44)),this['_unlockTransition']();}[_0x47c516(0x3d3)](_0x4d208e){const _0x470fba=_0x47c516;if(!(this['_state']instanceof N))throw TypeError(_0x470fba(0x2e2));let _0x55d612=_0x4d208e[_0x470fba(0x41a)](_0x3041a9=>{const _0x4db05d=_0x470fba;let _0x3fe027=this[_0x4db05d(0x443)]['interceptor'][_0x4db05d(0x3e2)](this[_0x4db05d(0x443)][_0x4db05d(0x362)][_0x4db05d(0x248)]()[_0x4db05d(0x2bb)])(_0x3041a9[_0x4db05d(0x223)],null)||_0x3041a9[_0x4db05d(0x223)];return{..._0x3041a9,'mutations':_0x3fe027};});this[_0x470fba(0x2e0)](),this['_updateState'](this['_state'][_0x470fba(0x494)](_0x55d612)),this[_0x470fba(0x32e)]();}['_toggleOffline'](){const _0x509c8b=_0x47c516;this[_0x509c8b(0x2e0)](),this['_updateState'](this[_0x509c8b(0x356)]['toggleOffline']()),this[_0x509c8b(0x32e)]();}[_0x47c516(0x2a1)](_0x823a9a=!0x1){const _0x47a8d6=_0x47c516;this[_0x47a8d6(0x2e0)](),this['_updateState'](this[_0x47a8d6(0x356)][_0x47a8d6(0x2d4)]()),this[_0x47a8d6(0x32e)]();let _0x4e2d7f=this[_0x47a8d6(0x356)];_0x823a9a&&_0x4e2d7f instanceof D&&(this[_0x47a8d6(0x2e0)](),this['_updateState'](_0x4e2d7f['fetchMiss']()),this[_0x47a8d6(0x32e)]());}async[_0x47c516(0x48c)](){return new Promise(_0x5c352c=>{const _0x5bafb5=_0x88a9;this['session'][_0x5bafb5(0x455)]['pipe']((0x0,i['take'])(0x1))[_0x5bafb5(0x51a)](async _0x54611a=>{const _0x2dd7fc=_0x5bafb5;_0x5c352c(await this[_0x2dd7fc(0x3bd)](_0x54611a===0x3));});});}[_0x47c516(0x2a0)](){const _0x40f881=_0x47c516;let _0x1b2f13=this[_0x40f881(0x4e9)];return{'onStateChange':(_0x46adad,_0x2fcda0)=>{const _0x178e52=_0x40f881;if(_0x46adad!==this[_0x178e52(0x356)])throw Error(_0x178e52(0x36b)+_0x46adad[_0x178e52(0x4f5)]+_0x178e52(0x2b0)+_0x2fcda0[_0x178e52(0x4f5)]+_0x178e52(0x4f4)+this[_0x178e52(0x356)][_0x178e52(0x4f5)]);this['_updateState'](_0x2fcda0);},'onSendChangeset':_0x27ea3d=>{const _0x5043a9=_0x40f881;_0x27ea3d[_0x5043a9(0x1f9)]||(_0x27ea3d[_0x5043a9(0x1f9)]=this['_changesetSessionId'],_0x27ea3d['reqId']=++this[_0x5043a9(0x2fd)]);let _0x5786a4={'eventID':e[_0x5043a9(0x427)][_0x5043a9(0x45e)],'data':{'unitID':_0x27ea3d[_0x5043a9(0x4e9)],'unitType':this[_0x5043a9(0x47f)],'changeset':_0x27ea3d,'memberID':this['session']['getMemberID']()}};this[_0x5043a9(0x257)][_0x5043a9(0x422)](_0x5786a4,this[_0x5043a9(0x4e9)]);},'onMissingChangesets':({from:_0x575321,to:_0x17ae77})=>{const _0x1796c3=_0x40f881;this[_0x1796c3(0x266)][_0x1796c3(0x3c4)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x575321+_0x1796c3(0x20e)+_0x17ae77);let _0x44e70d={'eventID':e[_0x1796c3(0x427)]['FETCH_MISSING'],'data':{'unitID':_0x1b2f13,'unitType':this[_0x1796c3(0x47f)],'from':_0x575321,'to':_0x17ae77}};this[_0x1796c3(0x257)]['send'](_0x44e70d,this['unitID']);}};}async[_0x47c516(0x3bd)](_0x34a839){const _0x10e133=_0x47c516;var _0x2480f3;let _0x47572c=await((_0x2480f3=this[_0x10e133(0x344)])==null?void 0x0:_0x2480f3[_0x10e133(0x37b)](this['unitID'])),_0x5a51ca=(_0x47572c==null?void 0x0:_0x47572c[_0x10e133(0x223)])??[],_0x2561ad=(_0x47572c==null?void 0x0:_0x47572c[_0x10e133(0x4b9)])??null,_0x375973=!!(_0x2561ad!=null&&_0x2561ad[_0x10e133(0x1f9)])&&!!(_0x2561ad!=null&&_0x2561ad[_0x10e133(0x3c2)]);this['_changesetSessionId']=_0x375973?_0x2561ad['sid']:(0x0,e[_0x10e133(0x50a)])(),this[_0x10e133(0x2fd)]=_0x375973?_0x2561ad[_0x10e133(0x3c2)]:0x0;let _0x459a69=this[_0x10e133(0x4e9)];try{this['_replayCachedMutations'](_0x2561ad,_0x5a51ca);}catch(_0x59da74){this[_0x10e133(0x266)][_0x10e133(0x492)](_0x59da74);}let _0xc4c466=this[_0x10e133(0x2a0)]();if(_0x34a839){let _0x2c74f5=Ue(this[_0x10e133(0x400)],_0x459a69,this[_0x10e133(0x47f)],_0x2561ad,_0x5a51ca,_0xc4c466);return _0x2c74f5 instanceof O?_0x2c74f5[_0x10e133(0x3ed)]():(_0x2c74f5 instanceof A||_0x2c74f5 instanceof k)&&_0x2c74f5[_0x10e133(0x42e)](),_0x2c74f5;}return this[_0x10e133(0x400)][_0x10e133(0x341)](M,_0x459a69,this[_0x10e133(0x47f)],_0x2561ad,_0x5a51ca,_0xc4c466);}[_0x47c516(0x44f)](_0x35911b,_0x244d4b){const _0x10b837=_0x47c516;var _0x44aa8c,_0x34622c;let _0x577349=this['_compressMutationService'][_0x10b837(0x362)][_0x10b837(0x3e2)](this[_0x10b837(0x443)][_0x10b837(0x362)][_0x10b837(0x248)]()[_0x10b837(0x2bb)]);(_0x44aa8c=_0x577349((_0x35911b==null?void 0x0:_0x35911b['mutations'])||[],null))==null||_0x44aa8c[_0x10b837(0x4b1)](_0x5c6688=>this[_0x10b837(0x213)][_0x10b837(0x4a6)](_0x5c6688['id'],_0x5c6688[_0x10b837(0x2b6)])),(_0x34622c=_0x577349(_0x244d4b||[],null))==null||_0x34622c[_0x10b837(0x4b1)](_0x29801c=>this[_0x10b837(0x213)][_0x10b837(0x4a6)](_0x29801c['id'],_0x29801c[_0x10b837(0x2b6)]));}};P=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t[_0x47c516(0x528)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x47c516(0x528)])(t['LocaleService'])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t[_0x47c516(0x528)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t[_0x47c516(0x212)]),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x263)])(C)),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],P);let F=class extends P{constructor(_0x5271bb,_0x5241fb,_0x13a64e,_0x17dec9,_0x55fc01,_0x3b4e7c,_0x286237,_0x6f46fa,_0x3008e0,_0x3f0c4c,_0x449c3a,_0x32b7b3,_0x1fc657,_0x30f4ad,_0x343a40){const _0x27ab98=_0x47c516;super(_0x5271bb,_0x13a64e,_0x5241fb,_0x17dec9,_0x55fc01,_0x3b4e7c,_0x286237,_0x6f46fa,_0x3008e0,_0x3f0c4c,_0x449c3a,_0x32b7b3,_0x30f4ad,_0x343a40),this['unitID']=_0x5271bb,this[_0x27ab98(0x1fe)]=_0x5241fb,this[_0x27ab98(0x35a)]=_0x1fc657,g(this,'_handlerCallback',null);}[_0x47c516(0x543)](_0x253b1f){const _0x528204=_0x47c516;this[_0x528204(0x452)]=_0x253b1f;}['dispose'](){const _0xf5cf53=_0x47c516;this[_0xf5cf53(0x452)]=null,super[_0xf5cf53(0x328)]();}[_0x47c516(0x2a0)](){const _0x3978c1=_0x47c516;let _0x59e15c=super[_0x3978c1(0x2a0)]();return _0x59e15c[_0x3978c1(0x3de)]=_0x7fffef=>{const _0x2a1568=_0x3978c1;var _0x4089f7,_0x5b9b7f;return(_0x4089f7=this[_0x2a1568(0x452)])==null||(_0x5b9b7f=_0x4089f7[_0x2a1568(0x3de)])==null?void 0x0:_0x5b9b7f[_0x2a1568(0x4cf)](_0x4089f7,_0x7fffef);},_0x59e15c[_0x3978c1(0x4e1)]=_0x4e55ea=>{const _0x3effd1=_0x3978c1;var _0x2ab44e,_0x511d39;return(_0x2ab44e=this[_0x3effd1(0x452)])==null||(_0x511d39=_0x2ab44e[_0x3effd1(0x4e1)])==null?void 0x0:_0x511d39['call'](_0x2ab44e,_0x4e55ea);},_0x59e15c[_0x3978c1(0x4ec)]=_0x2462ad=>{const _0x4014f7=_0x3978c1;var _0x21746f,_0x25e8f8;return((_0x21746f=this[_0x4014f7(0x452)])==null||(_0x25e8f8=_0x21746f[_0x4014f7(0x4ec)])==null?void 0x0:_0x25e8f8[_0x4014f7(0x4cf)](_0x21746f,_0x2462ad))??null;},_0x59e15c[_0x3978c1(0x3ff)]=_0x5a7f41=>{var _0x41dff2,_0x410ff8;return(_0x41dff2=this['_handlerCallback'])==null||(_0x410ff8=_0x41dff2['onTransformSelections'])==null?void 0x0:_0x410ff8['call'](_0x41dff2,_0x5a7f41);},_0x59e15c[_0x3978c1(0x490)]=_0x10d14b=>{const _0x314f47=_0x3978c1;var _0x10cd7a,_0x4ad7d8;return(_0x10cd7a=this[_0x314f47(0x452)])==null||(_0x4ad7d8=_0x10cd7a['onSyncEditingCollabCursor'])==null?void 0x0:_0x4ad7d8[_0x314f47(0x4cf)](_0x10cd7a,_0x10d14b);},_0x59e15c[_0x3978c1(0x41f)]=_0x37861b=>{const _0x4b74dc=_0x3978c1;var _0x353764,_0x487dd3;return((_0x353764=this['_handlerCallback'])==null||(_0x487dd3=_0x353764[_0x4b74dc(0x41f)])==null?void 0x0:_0x487dd3[_0x4b74dc(0x4cf)](_0x353764,_0x37861b))??_0x37861b;},_0x59e15c[_0x3978c1(0x3c3)]=_0x43c3f4=>{const _0x14501a=_0x3978c1;var _0x5dc8f5,_0x58f1f2;return((_0x5dc8f5=this['_handlerCallback'])==null||(_0x58f1f2=_0x5dc8f5[_0x14501a(0x3c3)])==null?void 0x0:_0x58f1f2[_0x14501a(0x4cf)](_0x5dc8f5,_0x43c3f4))??_0x43c3f4;},_0x59e15c;}async[_0x47c516(0x2c7)](){const _0x13ccaa=_0x47c516;let _0x2697a4=await super['_init']();return this[_0x13ccaa(0x4dc)](this['_docStateChangeManagerService'][_0x13ccaa(0x456)][_0x13ccaa(0x51a)](_0x418d97=>{const _0x595675=_0x13ccaa;if(_0x418d97==null||_0x418d97[_0x595675(0x220)]!==this[_0x595675(0x4e9)])return;let {commandId:_0x408c0b,redoState:_0x3cb623,unitId:_0x550a0c}=_0x418d97,_0x5dde7e={'id':_0x408c0b,'type':t[_0x595675(0x240)]['MUTATION'],'params':{'unitId':_0x550a0c,'actions':_0x3cb623['actions'],'textRanges':null}};this['_onLocalMutation'](_0x5dde7e);})),this[_0x13ccaa(0x4dc)](this[_0x13ccaa(0x213)]['onMutationExecutedForCollab']((_0x4ddb3e,_0x28f5ce)=>{const _0x472869=_0x13ccaa;if(_0x4ddb3e[_0x472869(0x1fe)]!==t[_0x472869(0x240)][_0x472869(0x375)]||_0x28f5ce!=null&&_0x28f5ce[_0x472869(0x367)]||_0x28f5ce!=null&&_0x28f5ce[_0x472869(0x201)]||_0x4ddb3e['id']===n[_0x472869(0x288)]['id'])return;let _0xc6a2dd=_0x4ddb3e[_0x472869(0x2b6)];if((_0xc6a2dd==null?void 0x0:_0xc6a2dd[_0x472869(0x220)])!==this[_0x472869(0x4e9)])return;let _0x46ebe1=_0x4ddb3e,_0x3d3085=this[_0x472869(0x443)][_0x472869(0x362)][_0x472869(0x3e2)](this[_0x472869(0x443)][_0x472869(0x362)]['getInterceptPoints']()[_0x472869(0x3df)])([_0x46ebe1],this[_0x472869(0x2af)])||[_0x46ebe1];this[_0x472869(0x477)](_0x3d3085[0x0]);})),_0x2697a4;}};F=y([v(0x3,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x4,(0x0,t['Inject'])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x346)])),v(0x6,(0x0,t[_0x47c516(0x528)])(e['RevisionService'])),v(0x7,(0x0,t[_0x47c516(0x528)])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t[_0x47c516(0x212)]),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x528)])(n[_0x47c516(0x423)])),v(0xd,(0x0,t[_0x47c516(0x263)])(C)),v(0xe,(0x0,t['Optional'])(x))],F);let I=class extends P{constructor(_0x1b8e5e,_0x40863d,_0x396694,_0x308a48,_0x4da81d,_0x1673ff,_0x59d716,_0x2de02c,_0x61f743,_0x26f335,_0x5b191c,_0x4bf198,_0x33ceeb,_0x475c23){const _0x49f529=_0x47c516;super(_0x1b8e5e,_0x396694,_0x40863d,_0x308a48,_0x4da81d,_0x1673ff,_0x59d716,_0x2de02c,_0x61f743,_0x26f335,_0x5b191c,_0x4bf198,_0x33ceeb,_0x475c23),this['unitID']=_0x1b8e5e,this[_0x49f529(0x1fe)]=_0x40863d;}async[_0x47c516(0x2c7)](){const _0x44f905=_0x47c516;let _0x4e1f97=await super[_0x44f905(0x2c7)]();return this[_0x44f905(0x4dc)](this[_0x44f905(0x213)][_0x44f905(0x38b)]((_0x40f48e,_0x4a48dd)=>{const _0x59a23b=_0x44f905;if(_0x40f48e[_0x59a23b(0x1fe)]!==t[_0x59a23b(0x240)][_0x59a23b(0x375)]||_0x4a48dd!=null&&_0x4a48dd[_0x59a23b(0x367)]||_0x4a48dd!=null&&_0x4a48dd[_0x59a23b(0x201)])return;let _0x294df0=_0x40f48e[_0x59a23b(0x2b6)];if((_0x294df0==null?void 0x0:_0x294df0['unitId'])!==this[_0x59a23b(0x4e9)])return;let _0x1cbb74=_0x40f48e,_0x288bc2=this[_0x59a23b(0x443)][_0x59a23b(0x362)][_0x59a23b(0x3e2)](this[_0x59a23b(0x443)][_0x59a23b(0x362)][_0x59a23b(0x248)]()[_0x59a23b(0x3df)])([_0x1cbb74],this['_univerInstanceService'])||[_0x1cbb74];this[_0x59a23b(0x477)](_0x288bc2[0x0]);})),_0x4e1f97;}};I=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t['Injector'])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x47c516(0x528)])(t['LocaleService'])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t[_0x47c516(0x528)])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t['ICommandService']),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x263)])(C)),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],I);let L=class extends P{constructor(_0x203163,_0x55c474,_0x278808,_0x33491d,_0x38ef55,_0x3acc79,_0x3d2e43,_0x58d44c,_0x1d70a7,_0x2a397a,_0x2e5d9b,_0x2154df,_0xbcaf5f,_0x59ddcc,_0x205222){const _0x4b19f=_0x47c516;super(_0x203163,_0x278808,_0x55c474,_0x33491d,_0x38ef55,_0x3acc79,_0x3d2e43,_0x1d70a7,_0x2a397a,_0x2e5d9b,_0x2154df,_0xbcaf5f,_0x59ddcc,_0x205222),this[_0x4b19f(0x4e9)]=_0x203163,this[_0x4b19f(0x1fe)]=_0x55c474,this[_0x4b19f(0x52d)]=_0x58d44c;}[_0x47c516(0x2a0)](){const _0x159619=_0x47c516;let _0x6fa60d=super[_0x159619(0x2a0)]();return _0x6fa60d[_0x159619(0x3ff)]=_0xbf5888=>this[_0x159619(0x52d)][_0x159619(0x2c3)](_0xbf5888),_0x6fa60d;}async['_init'](){const _0x3e760d=_0x47c516;let _0x22cd63=await super[_0x3e760d(0x2c7)]();return this[_0x3e760d(0x4dc)](this[_0x3e760d(0x213)]['onMutationExecutedForCollab']((_0x5bdcb6,_0x32118c)=>{const _0x43a383=_0x3e760d;if(_0x5bdcb6['type']!==t[_0x43a383(0x240)][_0x43a383(0x375)]||_0x32118c!=null&&_0x32118c[_0x43a383(0x367)]||_0x32118c!=null&&_0x32118c[_0x43a383(0x201)])return;let _0x448aa0=_0x5bdcb6[_0x43a383(0x2b6)];if((_0x448aa0==null?void 0x0:_0x448aa0[_0x43a383(0x220)])!==this[_0x43a383(0x4e9)])return;let _0x2e32c5=_0x5bdcb6,_0xc3e544=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x43a383(0x443)][_0x43a383(0x362)][_0x43a383(0x248)]()[_0x43a383(0x3df)])([_0x2e32c5],this[_0x43a383(0x2af)])||[_0x2e32c5];this['_onLocalMutation'](_0xc3e544[0x0]);})),_0x22cd63;}};L=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x4,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t[_0x47c516(0x528)])(S)),v(0x8,(0x0,t['Inject'])(_)),v(0x9,t[_0x47c516(0x493)]),v(0xa,t['ILogService']),v(0xb,t[_0x47c516(0x212)]),v(0xc,t['IPermissionService']),v(0xd,(0x0,t[_0x47c516(0x263)])(C)),v(0xe,(0x0,t[_0x47c516(0x263)])(x))],L);let R=class extends P{constructor(_0x454a03,_0x20f58f,_0x233fd,_0x20b82d,_0x3d131f,_0x291322,_0x55db48,_0x55a601,_0x303744,_0x6053a4,_0x135e15,_0x5ae066,_0x57e718,_0x322bba){const _0x574855=_0x47c516;super(_0x454a03,_0x233fd,_0x20f58f,_0x20b82d,_0x3d131f,_0x291322,_0x55db48,_0x55a601,_0x303744,_0x6053a4,_0x135e15,_0x5ae066,_0x57e718,_0x322bba),this[_0x574855(0x4e9)]=_0x454a03,this[_0x574855(0x1fe)]=_0x20f58f;}async[_0x47c516(0x2c7)](){const _0x2f9cc1=_0x47c516;let _0x1eae05=await super[_0x2f9cc1(0x2c7)]();return this[_0x2f9cc1(0x4dc)](this[_0x2f9cc1(0x213)][_0x2f9cc1(0x38b)]((_0xce2a85,_0x2b368c)=>{const _0x265a3a=_0x2f9cc1;if(_0xce2a85['type']!==t[_0x265a3a(0x240)][_0x265a3a(0x375)]||_0x2b368c!=null&&_0x2b368c[_0x265a3a(0x367)]||_0x2b368c!=null&&_0x2b368c[_0x265a3a(0x201)])return;let _0x28ec55=_0xce2a85[_0x265a3a(0x2b6)];if((_0x28ec55==null?void 0x0:_0x28ec55[_0x265a3a(0x220)])!==this['unitID'])return;let _0x5abb7a=_0xce2a85,_0x3955f8=this[_0x265a3a(0x443)][_0x265a3a(0x362)]['fetchThroughInterceptors'](this[_0x265a3a(0x443)]['interceptor'][_0x265a3a(0x248)]()[_0x265a3a(0x3df)])([_0x5abb7a],this['_univerInstanceService'])||[_0x5abb7a];this[_0x265a3a(0x477)](_0x3955f8[0x0]);})),_0x1eae05;}};R=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x4,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x346)])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t[_0x47c516(0x212)]),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x263)])(C)),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],R);let z=class extends P{constructor(_0x324edc,_0xd52cf9,_0x19b824,_0x5b0e9d,_0x19302c,_0x17adea,_0x1e12d1,_0x52b902,_0x160714,_0xe72212,_0x177b64,_0x5c8aad,_0x3e0958,_0x3440c4){const _0x4cba9c=_0x47c516;super(_0x324edc,_0x19b824,_0xd52cf9,_0x5b0e9d,_0x19302c,_0x17adea,_0x1e12d1,_0x52b902,_0x160714,_0xe72212,_0x177b64,_0x5c8aad,_0x3e0958,_0x3440c4),this[_0x4cba9c(0x4e9)]=_0x324edc,this[_0x4cba9c(0x1fe)]=_0xd52cf9;}async['_init'](){const _0x24eac7=_0x47c516;let _0x408625=await super[_0x24eac7(0x2c7)]();return this[_0x24eac7(0x4dc)](this['_commandService'][_0x24eac7(0x38b)]((_0xf3cd1b,_0x3bcdeb)=>{const _0x76e673=_0x24eac7;if(_0xf3cd1b[_0x76e673(0x1fe)]!==t['CommandType'][_0x76e673(0x375)]||_0x3bcdeb!=null&&_0x3bcdeb[_0x76e673(0x367)]||_0x3bcdeb!=null&&_0x3bcdeb[_0x76e673(0x201)])return;let _0x581931=_0xf3cd1b[_0x76e673(0x2b6)];if((_0x581931==null?void 0x0:_0x581931[_0x76e673(0x220)])!==this[_0x76e673(0x4e9)])return;let _0x1db547=_0xf3cd1b,_0x2f450b=this[_0x76e673(0x443)]['interceptor'][_0x76e673(0x3e2)](this[_0x76e673(0x443)][_0x76e673(0x362)][_0x76e673(0x248)]()['COMPRESS_MUTATION_SEND'])([_0x1db547],this[_0x76e673(0x2af)])||[_0x1db547];this[_0x76e673(0x477)](_0x2f450b[0x0]);})),_0x408625;}};z=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x4,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t['LocaleService'])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t['ICommandService']),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x263)])(C)),v(0xd,(0x0,t['Optional'])(x))],z);let B=class extends P{constructor(_0x1c4905,_0x22e48a,_0xc0d6c6,_0x426f0c,_0x2be24f,_0x1c3372,_0x8df6c3,_0x1599a5,_0x21b196,_0x4f2852,_0x254045,_0x5489da,_0x1f8b1e,_0x2630bd){const _0xf29db3=_0x47c516;super(_0x1c4905,_0xc0d6c6,_0x22e48a,_0x426f0c,_0x2be24f,_0x1c3372,_0x8df6c3,_0x1599a5,_0x21b196,_0x4f2852,_0x254045,_0x5489da,_0x1f8b1e,_0x2630bd),this[_0xf29db3(0x4e9)]=_0x1c4905,this['type']=_0x22e48a;}async['_init'](){const _0x23477f=_0x47c516;let _0x1113a6=await super[_0x23477f(0x2c7)]();return this['disposeWithMe'](this[_0x23477f(0x213)][_0x23477f(0x38b)]((_0x16ea77,_0x40d22d)=>{const _0x45ad9c=_0x23477f;if(_0x16ea77['type']!==t[_0x45ad9c(0x240)][_0x45ad9c(0x375)]||_0x40d22d!=null&&_0x40d22d['fromCollab']||_0x40d22d!=null&&_0x40d22d[_0x45ad9c(0x201)])return;let _0x51a468=_0x16ea77['params'];if((_0x51a468==null?void 0x0:_0x51a468[_0x45ad9c(0x220)])!==this[_0x45ad9c(0x4e9)])return;let _0xce5eaf=_0x16ea77,_0x2fd7ad=this['_compressMutationService'][_0x45ad9c(0x362)][_0x45ad9c(0x3e2)](this[_0x45ad9c(0x443)]['interceptor'][_0x45ad9c(0x248)]()[_0x45ad9c(0x3df)])([_0xce5eaf],this[_0x45ad9c(0x2af)])||[_0xce5eaf];this[_0x45ad9c(0x477)](_0x2fd7ad[0x0]);})),_0x1113a6;}};B=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x4,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x346)])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t[_0x47c516(0x528)])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t[_0x47c516(0x212)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],B);const We=(0x0,t[_0x47c516(0x4a4)])('univer-pro.collaboration-client.network-condition.service');function Ge(_0x2cc5de){const _0x49cc5c=_0x47c516;let _0xcfe1a4=_0x2cc5de[_0x49cc5c(0x3cf)],_0x96d731=JSON[_0x49cc5c(0x335)](_0xcfe1a4);switch(_0x96d731[_0x49cc5c(0x3ab)]){case a[_0x49cc5c(0x513)][_0x49cc5c(0x2f3)]:case a['CombCmd'][_0x49cc5c(0x445)]:{let _0x31a3ef=_0x96d731[_0x49cc5c(0x3a1)];return{..._0x96d731,'data':_0x31a3ef,'cmd':_0x96d731[_0x49cc5c(0x3ab)]};}case a[_0x49cc5c(0x513)][_0x49cc5c(0x342)]:{let _0x12985b=_0x96d731[_0x49cc5c(0x286)];return{..._0x96d731,'data':_0x12985b,'cmd':_0x96d731[_0x49cc5c(0x3ab)]};}case a[_0x49cc5c(0x513)][_0x49cc5c(0x2dc)]:{let _0x4747fc=_0x96d731[_0x49cc5c(0x4ef)];switch(_0x4747fc[_0x49cc5c(0x393)]){case e['CollaborationEvent']['PERMISSION_REJ']:var _0x285917;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x285917=_0x4747fc['permissionRejEvent'])==null?void 0x0:_0x285917['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent'][_0x49cc5c(0x30b)]:var _0x2a8055;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x2a8055=_0x4747fc[_0x49cc5c(0x285)])==null?void 0x0:_0x2a8055['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent']['NEW_CHANGESETS']:var _0x5192e5;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x5192e5=_0x4747fc[_0x49cc5c(0x2f9)])==null?void 0x0:_0x5192e5['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent']['CHANGESET_REJ']:var _0x42aa68;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x42aa68=_0x4747fc[_0x49cc5c(0x378)])==null?void 0x0:_0x42aa68['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x2fa)]:var _0x419955;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x419955=_0x4747fc['csShouldRetryEvent'])==null?void 0x0:_0x419955['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x391)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x1f7)]},'cmd':_0x96d731['cmd']};case e['CollaborationEvent']['USERS_ENTER']:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x3c5)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent'][_0x49cc5c(0x235)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x3cd)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x354)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x22e)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x4ea)]:case e[_0x49cc5c(0x427)]['LIVESHARE_OPERATION']:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x272)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x38a)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x22e)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)]['MSG_FOR_ERROR']:return{..._0x96d731,'data':_0x4747fc,'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x507)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc['commentUpdateEvent']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x459)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent']['SHOULD_CLOSE_CONN']:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x351)]},'cmd':_0x96d731['cmd']};case e[_0x49cc5c(0x427)][_0x49cc5c(0x3b9)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x34d)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};default:return _0x96d731;}}default:return _0x96d731;}}function Ke(_0x3d13b8){const _0xae62ff=_0x47c516;switch(_0x3d13b8[_0xae62ff(0x3ab)]){case a[_0xae62ff(0x513)][_0xae62ff(0x2f3)]:case a[_0xae62ff(0x513)][_0xae62ff(0x445)]:return JSON[_0xae62ff(0x307)]({'cmd':_0x3d13b8[_0xae62ff(0x3ab)],'routeKey':_0x3d13b8[_0xae62ff(0x46d)]});case a[_0xae62ff(0x513)]['INGEST']:{let _0x14397c;switch(_0x3d13b8[_0xae62ff(0x3cf)]['eventID']){case e[_0xae62ff(0x427)][_0xae62ff(0x391)]:_0x14397c={'eventID':e['CollaborationEvent'][_0xae62ff(0x391)],'updateCursorEvent':_0x3d13b8[_0xae62ff(0x3cf)][_0xae62ff(0x3cf)]};break;case e['CollaborationEvent'][_0xae62ff(0x235)]:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x235)],'leaveEvent':_0x3d13b8['data'][_0xae62ff(0x3cf)]};break;case e['CollaborationEvent']['USERS_ENTER']:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x3fe)],'joinEvent':_0x3d13b8[_0xae62ff(0x3cf)]['data']};break;case e[_0xae62ff(0x427)]['LIVESHARE_NEW_HOST']:_0x14397c={'eventID':e['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x3d13b8[_0xae62ff(0x3cf)][_0xae62ff(0x3cf)]};break;case e[_0xae62ff(0x427)]['LIVESHARE_OPERATION']:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x4a1)],'liveShareOperation':_0x3d13b8['data']['data']};break;case e[_0xae62ff(0x427)][_0xae62ff(0x38a)]:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x38a)],'liveShareTerminate':_0x3d13b8[_0xae62ff(0x3cf)][_0xae62ff(0x3cf)]};break;case e[_0xae62ff(0x427)][_0xae62ff(0x522)]:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x522)],'liveShareRequestHost':_0x3d13b8[_0xae62ff(0x3cf)]['data']};break;case e[_0xae62ff(0x427)][_0xae62ff(0x4ea)]:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x4ea)]};break;default:_0x14397c={'eventID':_0x3d13b8[_0xae62ff(0x3cf)][_0xae62ff(0x393)]};}return JSON[_0xae62ff(0x307)]({'cmd':_0x3d13b8[_0xae62ff(0x3ab)],'routeKey':_0x3d13b8[_0xae62ff(0x46d)],'collaMsg':_0x14397c});}case a['CombCmd'][_0xae62ff(0x342)]:return JSON[_0xae62ff(0x307)]({'cmd':_0x3d13b8['cmd'],'routeKey':_0x3d13b8[_0xae62ff(0x46d)],'joinReq':_0x3d13b8[_0xae62ff(0x3cf)]});case a['CombCmd'][_0xae62ff(0x269)]:return JSON[_0xae62ff(0x307)]({'cmd':_0x3d13b8[_0xae62ff(0x3ab)],'routeKey':_0x3d13b8['routeKey'],'leaveReq':_0x3d13b8[_0xae62ff(0x3cf)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const qe=(0x0,t['createIdentifier'])(_0x47c516(0x39f));function Je(_0x5df600,_0x4306ad,_0x519a1c){const _0x4a0e3d=_0x47c516;return _0x5df600+'/'+_0x4306ad+_0x4a0e3d(0x2b1)+_0x519a1c+'/new_changes';}let Ye=class extends t['Disposable']{constructor(_0x29b781,_0x3495df,_0x1f3426,_0x34d7c9,_0x51253c){const _0x3c3c79=_0x47c516;super(),this['_injector']=_0x29b781,this['_httpService']=_0x3495df,this[_0x3c3c79(0x469)]=_0x1f3426,this['_logService']=_0x34d7c9,this[_0x3c3c79(0x1ff)]=_0x51253c;}[_0x47c516(0x349)](_0x181233){const _0x3173a9=_0x47c516;let _0x2d5824=this[_0x3173a9(0x400)][_0x3173a9(0x1fa)](l['ISocketService']);if(!_0x2d5824)throw Error(_0x3173a9(0x4b3));let _0x1b88b6=_0x2d5824[_0x3173a9(0x501)](_0x181233);if(!_0x1b88b6)throw Error(_0x3173a9(0x25b));let _0x2b6dc4=new t[(_0x3173a9(0x37e))](),_0x24c814=new i[(_0x3173a9(0x369))]();_0x2b6dc4[_0x3173a9(0x22f)](_0x1b88b6[_0x3173a9(0x2c4)]['subscribe'](_0x54b94b=>_0x24c814[_0x3173a9(0x485)](_0x54b94b))),_0x2b6dc4[_0x3173a9(0x22f)]((0x0,t['toDisposable'])(()=>_0x24c814[_0x3173a9(0x2ce)]()));let _0x2eb531=new i['Subject']();_0x2b6dc4[_0x3173a9(0x22f)](_0x1b88b6['error$'][_0x3173a9(0x51a)](_0x2814c1=>_0x2eb531['next'](_0x2814c1))),_0x2b6dc4[_0x3173a9(0x22f)]((0x0,t[_0x3173a9(0x3b4)])(()=>_0x2eb531['complete']()));let _0x1fdb29=new i[(_0x3173a9(0x369))]();_0x2b6dc4[_0x3173a9(0x22f)](_0x1b88b6[_0x3173a9(0x279)]['subscribe'](_0xe5926=>{let _0xcf19bc=Ge(_0xe5926);_0x1fdb29['next'](_0xcf19bc);})),_0x2b6dc4[_0x3173a9(0x22f)]((0x0,t[_0x3173a9(0x3b4)])(()=>_0x1fdb29[_0x3173a9(0x2ce)]()));let _0x3c4e1a,_0x18779a=()=>{const _0x43b9b4=_0x3173a9;_0x2eb531[_0x43b9b4(0x485)](new Event('connection\x20error')),_0x24c814[_0x43b9b4(0x485)](new Event('connection\x20error')),_0x3c4e1a[_0x43b9b4(0x37d)]();};return _0x3c4e1a={'memberID':'','close$':_0x24c814[_0x3173a9(0x404)](),'error$':_0x2eb531['asObservable'](),'open$':_0x1b88b6[_0x3173a9(0x3ca)],'message$':_0x1fdb29[_0x3173a9(0x404)](),'send':_0x4f420d=>{const _0x1468f2=_0x3173a9;if(_0x4f420d[_0x1468f2(0x3ab)]===a['CombCmd'][_0x1468f2(0x467)]){if(_0x4f420d['data'][_0x1468f2(0x393)]===e[_0x1468f2(0x427)][_0x1468f2(0x45e)]){this[_0x1468f2(0x509)](_0x3c4e1a,_0x4f420d[_0x1468f2(0x3cf)])[_0x1468f2(0x3dc)](_0x2484c7=>{const _0x459963=_0x1468f2;this[_0x459963(0x266)]['error'](_0x2484c7),_0x18779a();});return;}if(_0x4f420d[_0x1468f2(0x3cf)]['eventID']===e[_0x1468f2(0x427)]['FETCH_MISSING']){let _0x195197=_0x4f420d['data'];this[_0x1468f2(0x41d)](_0x195197)[_0x1468f2(0x20d)](_0x55279f=>{const _0x5d9dc1=_0x1468f2;_0x1fdb29[_0x5d9dc1(0x485)]({'cmd':a[_0x5d9dc1(0x513)]['RECV'],'code':a['CmdRspCode']['OK'],'routeKey':_0x195197[_0x5d9dc1(0x3cf)]['unitID'],'routeType':'','data':{'eventID':e[_0x5d9dc1(0x427)][_0x5d9dc1(0x446)],'data':{'changesets':_0x55279f}}});})[_0x1468f2(0x3dc)](_0x19d9e8=>{const _0x171c5d=_0x1468f2;this['_logService'][_0x171c5d(0x492)](_0x19d9e8),_0x18779a();});return;}}_0x1b88b6['send'](Ke(_0x4f420d));},'close':()=>{const _0x30d754=_0x3173a9;_0x1b88b6[_0x30d754(0x37d)](),_0x2b6dc4[_0x30d754(0x328)]();}},_0x3c4e1a;}async[_0x47c516(0x509)](_0x33b6e4,_0x377c95){const _0xa4fac2=_0x47c516;let {unitType:_0x347af0,unitID:_0x2769e6,changeset:_0x2eb819}=_0x377c95[_0xa4fac2(0x3cf)],_0x1ef198={'unitID':_0x2769e6,'memberID':_0x33b6e4[_0xa4fac2(0x46e)],'type':_0x347af0,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x2eb819)},_0x32a64f=this['_configService']['getConfig'](m),_0x117d33=Je((_0x32a64f==null?void 0x0:_0x32a64f[_0xa4fac2(0x3c6)])??'/universer-api/comb',_0x347af0,_0x2769e6);try{await this[_0xa4fac2(0x503)][_0xa4fac2(0x29f)](_0x117d33,{'body':_0x1ef198});}catch(_0x17d144){throw this[_0xa4fac2(0x266)][_0xa4fac2(0x492)](_0xa4fac2(0x239),'submit\x20changeset\x20error!'),_0x17d144;}}async[_0x47c516(0x41d)](_0x362ee3){const _0x28cab4=_0x47c516;let {unitID:_0x57f476,from:_0x4479df,to:_0x59fd7d,unitType:_0x5ed9bb}=_0x362ee3[_0x28cab4(0x3cf)];return(await this[_0x28cab4(0x1ff)][_0x28cab4(0x330)]({'metadata':void 0x0},{'unitID':_0x57f476,'type':_0x5ed9bb,'from':_0x4479df,'to':_0x59fd7d}))['changesets'][_0x28cab4(0x41a)](_0x23bc7d=>((_0x23bc7d[_0x28cab4(0x223)]===null||_0x23bc7d[_0x28cab4(0x223)]===void 0x0)&&(_0x23bc7d['mutations']=[]),_0x23bc7d));}};Ye=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x1,(0x0,t['Inject'])(l[_0x47c516(0x45b)])),v(0x2,t[_0x47c516(0x2ae)]),v(0x3,t[_0x47c516(0x4e0)]),v(0x4,e['ISnapshotServerService'])],Ye);const Xe=(0x0,t[_0x47c516(0x4a4)])('univer-pro.collaboration-client-adapter-service');function Ze(_0x2ccc1a={}){const _0x47b8d5=_0x47c516;return _0x2ccc1a['resolveUnit']?{'resolveUnit':_0x2ccc1a[_0x47b8d5(0x3f2)]}:{'resolveUnit':_0x3e5a43=>({'target':{'unitId':_0x3e5a43[_0x47b8d5(0x220)],'unitType':_0x3e5a43[_0x47b8d5(0x4aa)]}})};}function Qe(_0x57b33a,_0x18fbac,_0x22a09f){const _0x53f5c7=_0x47c516;let _0x1057d9=_0x22a09f[_0x53f5c7(0x2cf)][_0x53f5c7(0x4b8)];if(_0x1057d9!=null&&_0x1057d9['trim']()==='')throw Error(_0x53f5c7(0x305));if(!_0x22a09f[_0x53f5c7(0x2cf)][_0x53f5c7(0x220)])throw Error(_0x53f5c7(0x2ba));return{'localUnitId':_0x57b33a,'unitType':_0x18fbac,'target':{'endpoint':_0x1057d9,'unitId':_0x22a09f[_0x53f5c7(0x2cf)]['unitId'],'unitType':_0x22a09f[_0x53f5c7(0x2cf)][_0x53f5c7(0x4aa)]??_0x18fbac},'changeset':_0x22a09f[_0x53f5c7(0x28a)]};}let V=class extends t[_0x47c516(0x542)]{constructor(_0x1331bf,_0x4f4244,_0x41a1d4,_0x916a98,_0x525495,_0x3a5c28){const _0x573c05=_0x47c516;super(),this[_0x573c05(0x400)]=_0x1331bf,this[_0x573c05(0x266)]=_0x4f4244,this[_0x573c05(0x469)]=_0x41a1d4,this[_0x573c05(0x321)]=_0x916a98,this['_collaborationUIEventService']=_0x525495,this['_adapter']=_0x3a5c28,g(this,_0x573c05(0x381),new Map()),g(this,_0x573c05(0x44a),new Map()),g(this,_0x573c05(0x23f),new Map()),g(this,_0x573c05(0x4cc),new Map()),g(this,_0x573c05(0x524),void 0x0),g(this,_0x573c05(0x51b),this[_0x573c05(0x3b2)](void 0x0)[_0x573c05(0x51b)][_0x573c05(0x404)]()),g(this,_0x573c05(0x49a),new i[(_0x573c05(0x2f4))](0x0)),g(this,_0x573c05(0x387),this['_status$'][_0x573c05(0x404)]());}[_0x47c516(0x4c3)](){const _0x417c99=_0x47c516;this['_networkConditionService']||(this[_0x417c99(0x524)]=this[_0x417c99(0x400)]['get'](We,t[_0x417c99(0x2c9)][_0x417c99(0x442)])??void 0x0,this['_networkConditionService']&&this[_0x417c99(0x4dc)](this[_0x417c99(0x524)][_0x417c99(0x35d)]['subscribe'](_0x1e7c04=>{const _0x5769ce=_0x417c99;_0x1e7c04&&this[_0x5769ce(0x389)](),_0x1e7c04||this['_socketChannels'][_0x5769ce(0x4b1)](_0x4db9d6=>this['_onOffline'](_0x4db9d6));})));}['dispose'](){const _0x7e871b=_0x47c516;super[_0x7e871b(0x328)](),this[_0x7e871b(0x4cc)][_0x7e871b(0x4b1)](_0x30b03d=>{const _0x3df5f9=_0x7e871b;var _0x5ea9df,_0xa31039,_0x203cf8;(_0x5ea9df=_0x30b03d[_0x3df5f9(0x472)])==null||_0x5ea9df[_0x3df5f9(0x44d)](),_0x30b03d[_0x3df5f9(0x472)]=null,this[_0x3df5f9(0x3f7)](_0x30b03d),this[_0x3df5f9(0x3af)](_0x30b03d),this[_0x3df5f9(0x515)](_0x30b03d),this[_0x3df5f9(0x488)](_0x30b03d),(_0xa31039=_0x30b03d[_0x3df5f9(0x51b)][_0x3df5f9(0x28b)]())==null||_0xa31039[_0x3df5f9(0x37d)](),(_0x203cf8=_0x30b03d['candidateSocket'])==null||_0x203cf8[_0x3df5f9(0x37d)](),_0x30b03d[_0x3df5f9(0x51b)][_0x3df5f9(0x2ce)]();}),this['_socketChannels']['clear'](),this[_0x7e871b(0x381)][_0x7e871b(0x4b1)](_0x34ed06=>_0x34ed06[_0x7e871b(0x328)]()),this[_0x7e871b(0x381)][_0x7e871b(0x4c9)](),this[_0x7e871b(0x23f)][_0x7e871b(0x4c9)](),this[_0x7e871b(0x49a)][_0x7e871b(0x2ce)]();}async[_0x47c516(0x38c)](_0x56223a,_0x343079){const _0x345d26=_0x47c516;if(this[_0x345d26(0x4c3)](),this[_0x345d26(0x381)][_0x345d26(0x51d)](_0x56223a))return this['_sessions']['get'](_0x56223a);let _0xef0fa=this[_0x345d26(0x44a)][_0x345d26(0x1fa)](_0x56223a);if(_0xef0fa)return _0xef0fa;let _0x349573=this['_createSession'](_0x56223a,_0x343079);this['_pendingSessions'][_0x345d26(0x2f5)](_0x56223a,_0x349573);try{return await _0x349573;}finally{this[_0x345d26(0x44a)][_0x345d26(0x512)](_0x56223a);}}async['_createSession'](_0x5864f5,_0x20cf87){const _0x448b62=_0x47c516;let _0x437296=await this[_0x448b62(0x3ba)](_0x5864f5,_0x20cf87),_0x1cb261=this[_0x448b62(0x3b2)](_0x437296[_0x448b62(0x2cf)][_0x448b62(0x4b8)]);this['_tryEnsureSocket'](_0x1cb261);let _0x1b52fb=this[_0x448b62(0x400)][_0x448b62(0x341)](ve,_0x437296,_0x1cb261[_0x448b62(0x51b)][_0x448b62(0x404)]());return this[_0x448b62(0x381)][_0x448b62(0x2f5)](_0x5864f5,_0x1b52fb),this['_sessionChannels'][_0x448b62(0x2f5)](_0x5864f5,_0x1cb261[_0x448b62(0x3e1)]),_0x1b52fb;}[_0x47c516(0x4ae)](_0x399873){const _0x2d4044=_0x47c516;let _0x370cca=this[_0x2d4044(0x381)][_0x2d4044(0x1fa)](_0x399873),_0x272921=this['_sessionChannels'][_0x2d4044(0x1fa)](_0x399873);if(_0x370cca&&(this[_0x2d4044(0x381)][_0x2d4044(0x512)](_0x399873),this['_sessionChannels'][_0x2d4044(0x512)](_0x399873),_0x370cca[_0x2d4044(0x37d)]()),_0x272921!==void 0x0&&!this[_0x2d4044(0x24f)](_0x272921)){let _0x59a305=this[_0x2d4044(0x4cc)][_0x2d4044(0x1fa)](_0x272921);_0x59a305&&this[_0x2d4044(0x412)](_0x59a305);}}[_0x47c516(0x389)](){const _0x224e31=_0x47c516;(this[_0x224e31(0x4cc)][_0x224e31(0x2d9)]?[...this[_0x224e31(0x4cc)][_0x224e31(0x283)]()]:[this[_0x224e31(0x3b2)](void 0x0)])[_0x224e31(0x4b1)](_0x245a43=>{const _0x298799=_0x224e31;!this[_0x298799(0x24f)](_0x245a43[_0x298799(0x3e1)])||_0x245a43[_0x298799(0x42b)]||_0x245a43[_0x298799(0x2a8)]||_0x245a43[_0x298799(0x249)]||(_0x245a43[_0x298799(0x221)]=0x0,this[_0x298799(0x3af)](_0x245a43),this['_tryReconnect'](_0x245a43));});}['_clearRetryConnectingTimer'](_0xe39d0b){const _0x5f3003=_0x47c516;_0xe39d0b['retryConnectingTimer']!=null&&(clearTimeout(_0xe39d0b[_0x5f3003(0x2eb)]),_0xe39d0b[_0x5f3003(0x2eb)]=null);}[_0x47c516(0x531)](_0x12a89f){const _0x198a48=_0x47c516;let _0x1a87cd=this[_0x198a48(0x469)][_0x198a48(0x33e)](m),_0x56e4c3=_0x12a89f[_0x198a48(0x4b8)]??(_0x1a87cd==null?void 0x0:_0x1a87cd[_0x198a48(0x544)])??_0x198a48(0x215);return this['_socketService']['createSocket'](_0x56e4c3);}async[_0x47c516(0x3ea)](_0x363bf1){const _0x5ebb3a=_0x47c516;var _0x371171;if(this['_disposed']||((_0x371171=this[_0x5ebb3a(0x524)])==null?void 0x0:_0x371171['online'])===!0x1||_0x363bf1[_0x5ebb3a(0x42b)]||_0x363bf1['candidateSocket']||_0x363bf1['connectionAttempt'])return;let _0x87e9b7={};_0x363bf1[_0x5ebb3a(0x249)]=_0x87e9b7;try{let _0x41f58f=await this[_0x5ebb3a(0x531)](_0x363bf1);if(this[_0x5ebb3a(0x440)]||_0x363bf1[_0x5ebb3a(0x249)]!==_0x87e9b7){_0x41f58f==null||_0x41f58f['close']();return;}if(_0x41f58f){var _0x187cdc;_0x363bf1[_0x5ebb3a(0x2a8)]=_0x41f58f,_0x363bf1['handshakeTimer']=setTimeout(()=>{const _0x562f19=_0x5ebb3a;!this['_disposed']&&_0x363bf1[_0x562f19(0x2a8)]===_0x41f58f&&this[_0x562f19(0x2f8)](_0x363bf1);},0x4e20);let _0x3b4873=_0x41f58f[_0x5ebb3a(0x422)];_0x41f58f['send']=_0x1c2dc4=>(_0x1c2dc4[_0x5ebb3a(0x3ab)]!==a['CombCmd'][_0x5ebb3a(0x269)]&&_0x363bf1[_0x5ebb3a(0x42b)]&&_0x363bf1[_0x5ebb3a(0x51b)][_0x5ebb3a(0x28b)]()===_0x41f58f&&this[_0x5ebb3a(0x3ec)](_0x363bf1),_0x3b4873['apply'](_0x41f58f,[_0x1c2dc4])),(_0x187cdc=_0x363bf1['socketSubscription'])==null||_0x187cdc['unsubscribe']();let _0x5a5f3a=new i['Subscription']();_0x363bf1[_0x5ebb3a(0x472)]=_0x5a5f3a,_0x5a5f3a['add'](_0x41f58f[_0x5ebb3a(0x279)][_0x5ebb3a(0x51a)](_0x3b3862=>this['_onMessage'](_0x363bf1,_0x41f58f,_0x3b3862))),_0x5a5f3a[_0x5ebb3a(0x22f)](_0x41f58f[_0x5ebb3a(0x464)][_0x5ebb3a(0x3e8)]((0x0,s[_0x5ebb3a(0x4e8)])(0x1))[_0x5ebb3a(0x51a)](_0xa7767d=>this[_0x5ebb3a(0x266)]['error'](_0x5ebb3a(0x329),_0xa7767d))),_0x5a5f3a[_0x5ebb3a(0x22f)](_0x41f58f[_0x5ebb3a(0x3ca)]['pipe']((0x0,s['take'])(0x1))[_0x5ebb3a(0x51a)](()=>{const _0x16a729=_0x5ebb3a;this[_0x16a729(0x318)](_0x363bf1,_0x41f58f);})),_0x5a5f3a[_0x5ebb3a(0x22f)](_0x41f58f[_0x5ebb3a(0x2c4)]['pipe']((0x0,s[_0x5ebb3a(0x4e8)])(0x1))[_0x5ebb3a(0x51a)](_0xaca9f6=>{const _0x1b616c=_0x5ebb3a;(_0x363bf1['candidateSocket']===_0x41f58f||_0x363bf1[_0x1b616c(0x51b)][_0x1b616c(0x28b)]()===_0x41f58f)&&(this['_logService']['debug'](_0x1b616c(0x49f),'socket\x20close',_0xaca9f6),this[_0x1b616c(0x2f8)](_0x363bf1));}));}}catch(_0xe1446){if(_0x363bf1['connectionAttempt']!==_0x87e9b7)return;this[_0x5ebb3a(0x266)][_0x5ebb3a(0x492)](_0xe1446),this[_0x5ebb3a(0x2f8)](_0x363bf1);}finally{_0x363bf1[_0x5ebb3a(0x249)]===_0x87e9b7&&(_0x363bf1['connectionAttempt']=null);}}['_onConnectionOpen'](_0x20424b,_0x4687df){const _0x37faa3=_0x47c516;this[_0x37faa3(0x440)]||_0x20424b[_0x37faa3(0x2a8)]!==_0x4687df||(this[_0x37faa3(0x266)][_0x37faa3(0x3c4)](_0x37faa3(0x49f),'socket\x20open.'),_0x4687df[_0x37faa3(0x422)]({'cmd':a[_0x37faa3(0x513)]['HELLO']}));}['_onOffline'](_0x44ba15){const _0x27fdd2=_0x47c516;var _0x54b633;let _0x375c03=_0x44ba15[_0x27fdd2(0x51b)][_0x27fdd2(0x28b)]()??_0x44ba15[_0x27fdd2(0x2a8)];_0x44ba15[_0x27fdd2(0x249)]=null,_0x44ba15['socketReady']=!0x1,_0x44ba15[_0x27fdd2(0x2a8)]=null,(_0x54b633=_0x44ba15[_0x27fdd2(0x472)])==null||_0x54b633[_0x27fdd2(0x44d)](),_0x44ba15['socketSubscription']=null,this[_0x27fdd2(0x49a)][_0x27fdd2(0x485)](0x2),_0x44ba15[_0x27fdd2(0x51b)]['next'](null),this[_0x27fdd2(0x3af)](_0x44ba15),this[_0x27fdd2(0x3f7)](_0x44ba15),this['_clearTimeoutTimer'](_0x44ba15),this[_0x27fdd2(0x488)](_0x44ba15),_0x375c03==null||_0x375c03[_0x27fdd2(0x37d)]();}[_0x47c516(0x2f8)](_0x1b5198){const _0x17ace0=_0x47c516;var _0x590c0f;this['_onOffline'](_0x1b5198),!this[_0x17ace0(0x440)]&&((_0x590c0f=this[_0x17ace0(0x524)])==null?void 0x0:_0x590c0f[_0x17ace0(0x1f2)])!==!0x1&&this[_0x17ace0(0x24f)](_0x1b5198[_0x17ace0(0x3e1)])&&(_0x1b5198['retryCount']<(this['_configService'][_0x17ace0(0x33e)](_0x17ace0(0x31e))??0x3)?(this[_0x17ace0(0x396)][_0x17ace0(0x315)]({'id':_0x17ace0(0x3fb)}),this[_0x17ace0(0x42c)](_0x1b5198)):this[_0x17ace0(0x396)][_0x17ace0(0x315)]({'id':_0x17ace0(0x4ce)}));}['_tryReconnect'](_0x4ab34d){const _0x38b213=_0x47c516;let _0x20468c=_0x4ab34d[_0x38b213(0x221)],_0x583479=this[_0x38b213(0x469)][_0x38b213(0x33e)](m),_0x487b89=_0x20468c===0x0?0x0:((_0x583479==null?void 0x0:_0x583479[_0x38b213(0x529)])??0x4e20)*0x2**_0x20468c;_0x4ab34d['retryConnectingTimer']=setTimeout(()=>{const _0x1caba2=_0x38b213;clearTimeout(_0x4ab34d[_0x1caba2(0x2eb)]),_0x4ab34d['retryConnectingTimer']=null,this[_0x1caba2(0x3ea)](_0x4ab34d);},_0x487b89),_0x4ab34d[_0x38b213(0x221)]+=0x1;}async[_0x47c516(0x3ba)](_0x57e69d,_0x5f5521){const _0x56fd03=_0x47c516;return Qe(_0x57e69d,_0x5f5521,await this[_0x56fd03(0x3d1)][_0x56fd03(0x3f2)]({'unitId':_0x57e69d,'unitType':_0x5f5521}));}['_onMessage'](_0x334421,_0x415a3b,_0x2d59b5){const _0x2fa49e=_0x47c516;if(this[_0x2fa49e(0x440)]||_0x334421[_0x2fa49e(0x2a8)]!==_0x415a3b&&_0x334421[_0x2fa49e(0x51b)][_0x2fa49e(0x28b)]()!==_0x415a3b)return;let {cmd:_0x4df583}=_0x2d59b5;if(_0x4df583===a[_0x2fa49e(0x513)][_0x2fa49e(0x445)]&&!_0x334421['socketReady']){var _0x35ae99;if((_0x2d59b5[_0x2fa49e(0x30a)]??a[_0x2fa49e(0x487)]['OK'])!==a[_0x2fa49e(0x487)]['OK']||!((_0x35ae99=_0x2d59b5['data'])!=null&&_0x35ae99[_0x2fa49e(0x46e)])){this[_0x2fa49e(0x2f8)](_0x334421);return;}this[_0x2fa49e(0x3f7)](_0x334421),_0x415a3b[_0x2fa49e(0x46e)]=_0x2d59b5['data'][_0x2fa49e(0x46e)],_0x334421[_0x2fa49e(0x221)]=0x0,_0x334421[_0x2fa49e(0x42b)]=!0x0,_0x334421['candidateSocket']=null,_0x334421['socket$']['next'](_0x415a3b),this['_status$']['next'](0x3);}_0x4df583===a['CombCmd'][_0x2fa49e(0x2f3)]&&this[_0x2fa49e(0x515)](_0x334421),this['_rescheduleHeartbeat'](_0x334421);}[_0x47c516(0x24f)](_0x4ec065){const _0x3a8c90=_0x47c516;return[...this[_0x3a8c90(0x23f)][_0x3a8c90(0x283)]()]['some'](_0x3fc933=>_0x3fc933===_0x4ec065);}[_0x47c516(0x3b2)](_0x1e49c3){const _0x5f2b10=_0x47c516;let _0x57fa7c=_0x1e49c3??'',_0x11f692=this[_0x5f2b10(0x4cc)]['get'](_0x57fa7c);if(_0x11f692)return _0x11f692;let _0x5f1ce6={'endpointKey':_0x57fa7c,'endpoint':_0x1e49c3,'socket$':new i[(_0x5f2b10(0x2f4))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x5f2b10(0x4cc)][_0x5f2b10(0x2f5)](_0x57fa7c,_0x5f1ce6),_0x5f1ce6;}[_0x47c516(0x3f7)](_0x14067c){const _0x50cb53=_0x47c516;_0x14067c[_0x50cb53(0x234)]!=null&&(clearTimeout(_0x14067c[_0x50cb53(0x234)]),_0x14067c[_0x50cb53(0x234)]=null);}[_0x47c516(0x3ec)](_0x2c7044){const _0x299674=_0x47c516;this[_0x299674(0x488)](_0x2c7044),_0x2c7044[_0x299674(0x42b)]&&(_0x2c7044['sendHeartbeatTimer']=setTimeout(()=>this[_0x299674(0x23b)](_0x2c7044),this['_configService'][_0x299674(0x33e)](_0x299674(0x418))??0x7530));}[_0x47c516(0x23b)](_0x1fbfaa){const _0x3090a3=_0x47c516;let _0x49eca5=_0x1fbfaa[_0x3090a3(0x51b)][_0x3090a3(0x28b)]();_0x1fbfaa[_0x3090a3(0x42b)]&&_0x49eca5&&(_0x49eca5[_0x3090a3(0x422)]({'cmd':a[_0x3090a3(0x513)][_0x3090a3(0x2f3)]}),this[_0x3090a3(0x337)](_0x1fbfaa));}[_0x47c516(0x337)](_0x18d6b8){const _0x40549b=_0x47c516;_0x18d6b8['timeoutTimer']=setTimeout(()=>this[_0x40549b(0x2f8)](_0x18d6b8),this[_0x40549b(0x469)][_0x40549b(0x33e)]('HEARTBEAT_TIMEOUT')??0x4e20);}['_clearHeartbeatTimer'](_0x2ad265){const _0x22968e=_0x47c516;_0x2ad265[_0x22968e(0x4d9)]!=null&&(clearTimeout(_0x2ad265['sendHeartbeatTimer']),_0x2ad265[_0x22968e(0x4d9)]=null);}[_0x47c516(0x515)](_0x1e3a71){const _0x3ac7e4=_0x47c516;_0x1e3a71[_0x3ac7e4(0x43d)]!=null&&(clearTimeout(_0x1e3a71[_0x3ac7e4(0x43d)]),_0x1e3a71['timeoutTimer']=null);}};V=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x1,t[_0x47c516(0x4e0)]),v(0x2,t['IConfigService']),v(0x3,qe),v(0x4,(0x0,t[_0x47c516(0x528)])(_)),v(0x5,Xe)],V);let H=class extends t[_0x47c516(0x3b6)]{constructor(_0x4fc1be,_0xaa4f8c,_0x537c29,_0x3a8e2b){const _0x449c60=_0x47c516;var _0x256cba;super(),this[_0x449c60(0x400)]=_0x4fc1be,this[_0x449c60(0x3b3)]=_0xaa4f8c,this[_0x449c60(0x469)]=_0x537c29,this[_0x449c60(0x2af)]=_0x3a8e2b,g(this,_0x449c60(0x2f6),new Map()),g(this,'_entityInit$',new i[(_0x449c60(0x369))]()),g(this,_0x449c60(0x545),this[_0x449c60(0x2ff)][_0x449c60(0x404)]()),((_0x256cba=this['_configService'][_0x449c60(0x33e)](_0x449c60(0x313)))==null?void 0x0:_0x256cba[_0x449c60(0x2d0)])!==!0x1&&this['_init']();}[_0x47c516(0x328)](){const _0x2f5322=_0x47c516;super[_0x2f5322(0x328)](),this[_0x2f5322(0x2f6)]['forEach'](_0x56b3ae=>_0x56b3ae[_0x2f5322(0x328)]()),this[_0x2f5322(0x2f6)][_0x2f5322(0x4c9)]();}[_0x47c516(0x421)](_0x2144b6){const _0xee2ecd=_0x47c516;return this[_0xee2ecd(0x2f6)][_0xee2ecd(0x1fa)](_0x2144b6)??null;}[_0x47c516(0x4e5)](_0x58151e){const _0x57bf41=_0x47c516;let _0x312380=this[_0x57bf41(0x421)](_0x58151e);return _0x312380?(0x0,i['of'])(_0x312380):this[_0x57bf41(0x2ff)][_0x57bf41(0x3e8)]((0x0,s[_0x57bf41(0x441)])(_0x3e2015=>_0x3e2015[_0x57bf41(0x4e9)]===_0x58151e));}[_0x47c516(0x340)](_0x53460c){const _0x8f5458=_0x47c516;return(0x0,i[_0x8f5458(0x36d)])(this['getCollabEntity$'](_0x53460c)[_0x8f5458(0x3e8)]((0x0,s[_0x8f5458(0x41a)])(()=>void 0x0)));}[_0x47c516(0x2c7)](){const _0x43e2a7=_0x47c516;this['_univerInstanceService'][_0x43e2a7(0x2ee)](t['UniverInstanceType'][_0x43e2a7(0x4ab)])[_0x43e2a7(0x3e8)]((0x0,i['takeUntil'])(this['dispose$']),(0x0,s[_0x43e2a7(0x45a)])(0x10))[_0x43e2a7(0x51a)](async _0x58a050=>{const _0x14fc65=_0x43e2a7;let _0x75212c=_0x58a050['unit'][_0x14fc65(0x4fc)](),_0x278b0f=await this[_0x14fc65(0x25a)](_0x75212c,t[_0x14fc65(0x4f3)][_0x14fc65(0x4ab)]);this[_0x14fc65(0x2f6)][_0x14fc65(0x2f5)](_0x75212c,_0x278b0f);}),this['_univerInstanceService'][_0x43e2a7(0x2ee)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x48e)])[_0x43e2a7(0x3e8)]((0x0,i[_0x43e2a7(0x357)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x43e2a7(0x3e8)]((0x0,s['filter'])(_0x3358a9=>!_0x3358a9[_0x43e2a7(0x480)][_0x43e2a7(0x4fc)]()[_0x43e2a7(0x38d)]('__')))[_0x43e2a7(0x51a)](async _0x3dde4b=>{const _0x4bca5c=_0x43e2a7;let _0x157108=_0x3dde4b[_0x4bca5c(0x480)][_0x4bca5c(0x4fc)](),_0x29deb6=await this['_startCollaboration'](_0x157108,t[_0x4bca5c(0x4f3)]['UNIVER_DOC']);this[_0x4bca5c(0x2f6)]['set'](_0x157108,_0x29deb6);}),this[_0x43e2a7(0x2af)][_0x43e2a7(0x2ee)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x2b4)])['pipe']((0x0,i[_0x43e2a7(0x357)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x43e2a7(0x51a)](async _0x32f6e2=>{const _0xb8a53d=_0x43e2a7;let _0xca2b1e=_0x32f6e2[_0xb8a53d(0x480)][_0xb8a53d(0x4fc)](),_0x58af0b=await this[_0xb8a53d(0x25a)](_0xca2b1e,t['UniverInstanceType']['UNIVER_SLIDE']);this[_0xb8a53d(0x2f6)][_0xb8a53d(0x2f5)](_0xca2b1e,_0x58af0b);}),this[_0x43e2a7(0x2af)]['getTypeOfUnitAdded$'](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x48f)])['pipe']((0x0,i[_0x43e2a7(0x357)])(this[_0x43e2a7(0x25f)]),(0x0,s[_0x43e2a7(0x45a)])(0x10))[_0x43e2a7(0x51a)](async _0x2d0567=>{const _0x777777=_0x43e2a7;let _0x10b14f=_0x2d0567[_0x777777(0x480)][_0x777777(0x4fc)](),_0x141cc5=await this[_0x777777(0x25a)](_0x10b14f,t['UniverInstanceType'][_0x777777(0x48f)]);this[_0x777777(0x2f6)]['set'](_0x10b14f,_0x141cc5);}),this[_0x43e2a7(0x2af)][_0x43e2a7(0x2ee)](t[_0x43e2a7(0x4f3)]['UNIVER_BASE'])[_0x43e2a7(0x3e8)]((0x0,i[_0x43e2a7(0x357)])(this[_0x43e2a7(0x25f)]),(0x0,s['delay'])(0x10))['subscribe'](async _0x1d05f2=>{const _0x2986ab=_0x43e2a7;let _0x2c38e1=_0x1d05f2['unit'][_0x2986ab(0x4fc)](),_0x42cafa=await this[_0x2986ab(0x25a)](_0x2c38e1,t[_0x2986ab(0x4f3)][_0x2986ab(0x4d1)]);this[_0x2986ab(0x2f6)][_0x2986ab(0x2f5)](_0x2c38e1,_0x42cafa);}),this['_univerInstanceService'][_0x43e2a7(0x2ee)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x4a7)])['pipe']((0x0,i['takeUntil'])(this[_0x43e2a7(0x25f)]),(0x0,s[_0x43e2a7(0x45a)])(0x10))['subscribe'](async _0x542676=>{const _0x531721=_0x43e2a7;let _0x154a87=_0x542676['unit']['getUnitId'](),_0x19289a=await this['_startCollaboration'](_0x154a87,t[_0x531721(0x4f3)][_0x531721(0x4a7)]);this[_0x531721(0x2f6)][_0x531721(0x2f5)](_0x154a87,_0x19289a);}),(0x0,i['merge'])(this[_0x43e2a7(0x2af)][_0x43e2a7(0x4bf)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x4ab)]),this[_0x43e2a7(0x2af)][_0x43e2a7(0x4bf)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x48e)]),this['_univerInstanceService'][_0x43e2a7(0x4bf)](t[_0x43e2a7(0x4f3)]['UNIVER_SLIDE']),this[_0x43e2a7(0x2af)][_0x43e2a7(0x4bf)](t[_0x43e2a7(0x4f3)]['UNIVER_BOARD']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x4d1)]),this[_0x43e2a7(0x2af)]['getTypeOfUnitDisposed$'](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x4a7)]))[_0x43e2a7(0x3e8)]((0x0,i[_0x43e2a7(0x357)])(this[_0x43e2a7(0x25f)]))['subscribe'](_0x38b6e1=>{const _0x1f3125=_0x43e2a7;let _0x4a2cfe=_0x38b6e1[_0x1f3125(0x4fc)](),_0x5abd64=this['_entities']['get'](_0x4a2cfe);_0x5abd64&&(_0x5abd64[_0x1f3125(0x328)](),this['_entities'][_0x1f3125(0x512)](_0x4a2cfe));});}async[_0x47c516(0x25a)](_0x4130a6,_0x293741){const _0x1e9ad2=_0x47c516;let _0xec4247=await this[_0x1e9ad2(0x3b3)]['requireSession'](_0x4130a6),_0x379237=this['_injector']['createInstance'](this[_0x1e9ad2(0x32f)](_0x293741),_0x4130a6,_0x293741,_0xec4247);return await _0x379237[_0x1e9ad2(0x243)](),this[_0x1e9ad2(0x2ff)]['next'](_0x379237),_0x379237;}[_0x47c516(0x32f)](_0x2b6cb1){const _0x55b91e=_0x47c516;switch(_0x2b6cb1){case t[_0x55b91e(0x4f3)][_0x55b91e(0x48e)]:return F;case t[_0x55b91e(0x4f3)]['UNIVER_SHEET']:return L;case t[_0x55b91e(0x4f3)][_0x55b91e(0x2b4)]:return R;case t['UniverInstanceType'][_0x55b91e(0x48f)]:return z;case t[_0x55b91e(0x4f3)][_0x55b91e(0x4d1)]:return I;case t[_0x55b91e(0x4f3)]['UNIVER_PDF']:return B;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2b6cb1);}}};H=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x1,(0x0,t['Inject'])(V)),v(0x2,t[_0x47c516(0x2ae)]),v(0x3,t[_0x47c516(0x493)])],H);var $e=_0x47c516(0x38e),et=_0x47c516(0x327);let tt=class extends t[_0x47c516(0x542)]{constructor(_0xada6b8,_0x2e4fc4){const _0x3460e0=_0x47c516;super(),this[_0x3460e0(0x2af)]=_0xada6b8,this['_configService']=_0x2e4fc4,this[_0x3460e0(0x2c7)]();}['_init'](){const _0xc2156=_0x47c516;this[_0xc2156(0x4dc)](this['_univerInstanceService'][_0xc2156(0x314)][_0xc2156(0x51a)](()=>{const _0x5c49ba=_0xc2156;let _0x38bc11=this[_0x5c49ba(0x2af)][_0x5c49ba(0x409)](),_0x1f3d37=this['_configService'][_0x5c49ba(0x33e)](_0x5c49ba(0x284))??_0x5c49ba(0x33d);_0x38bc11 instanceof t[_0x5c49ba(0x2e4)]&&(_0x1f3d37=_0x38bc11[_0x5c49ba(0x310)]),document[_0x5c49ba(0x3d6)]=_0x1f3d37;}));}};tt=y([v(0x0,t[_0x47c516(0x493)]),v(0x1,t[_0x47c516(0x2ae)])],tt);const nt=(0x0,t[_0x47c516(0x4a4)])('base-ui.attachment-io.service');let U=class{constructor(_0x469b12,_0x4d369b,_0x2235ce){const _0x4b766f=_0x47c516;this[_0x4b766f(0x503)]=_0x469b12,this[_0x4b766f(0x469)]=_0x4d369b,this[_0x4b766f(0x2af)]=_0x2235ce;}[_0x47c516(0x40d)](){const _0x45d218=_0x47c516;return this[_0x45d218(0x4ee)]()[_0x45d218(0x2ca)]??{};}async[_0x47c516(0x25d)](_0x3847b7){const _0x1c6c0f=_0x47c516;let _0x2f3d8a=this[_0x1c6c0f(0x40d)]();if(rt(_0x3847b7,_0x2f3d8a),_0x2f3d8a[_0x1c6c0f(0x2a7)])return _0x2f3d8a['upload'](_0x3847b7);let _0x569b58=await this['_upload'](_0x3847b7);return{'id':_0x569b58,'name':_0x3847b7[_0x1c6c0f(0x310)],'mimeType':_0x3847b7[_0x1c6c0f(0x1fe)],'size':_0x3847b7[_0x1c6c0f(0x2d9)],'sourceType':t[_0x1c6c0f(0x230)][_0x1c6c0f(0x4d7)],'source':_0x569b58};}async[_0x47c516(0x3ce)](_0x17395c,_0x569774){const _0x21e364=_0x47c516;if(_0x569774!==t[_0x21e364(0x230)]['UUID'])return _0x17395c;let _0x3318a2=(await this[_0x21e364(0x503)][_0x21e364(0x1fa)](this['_getSignURL']()[_0x21e364(0x275)](_0x21e364(0x317),_0x17395c)))[_0x21e364(0x268)];if(_0x3318a2[_0x21e364(0x492)]&&_0x3318a2[_0x21e364(0x492)]['code']!==a[_0x21e364(0x214)]['OK'])throw _0x3318a2['error'];if(!_0x3318a2[_0x21e364(0x2c5)])throw Error(_0x21e364(0x2d3));return(0x0,t[_0x21e364(0x1f5)])(_0x3318a2[_0x21e364(0x2c5)],this[_0x21e364(0x334)]());}async[_0x47c516(0x34e)](_0x484eb5){const _0x7f6d70=_0x47c516;let _0x40b7cb=this[_0x7f6d70(0x2af)][_0x7f6d70(0x409)](),_0x1407cd=_0x40b7cb==null?void 0x0:_0x40b7cb[_0x7f6d70(0x4fc)]();if(!_0x1407cd)throw Error(_0x7f6d70(0x402));let _0x51edb2=new FormData();_0x51edb2[_0x7f6d70(0x293)](_0x7f6d70(0x281),_0x484eb5);let _0x35c2c9=this['_getUploadFileURL']()+'?size='+_0x484eb5['size']['toString']()+'&source='+a['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0x1407cd),_0x1766d6=(await this[_0x7f6d70(0x503)]['post'](_0x35c2c9,{'body':_0x51edb2}))[_0x7f6d70(0x268)]['FileId'];if(typeof _0x1766d6!=_0x7f6d70(0x46a)||!_0x1766d6)throw Error(_0x7f6d70(0x2ed));return _0x1766d6;}[_0x47c516(0x264)](){const _0x8cdbbc=_0x47c516;return this['_getConfig']()['uploadFileServerUrl']??_0x8cdbbc(0x48a);}[_0x47c516(0x425)](){const _0x414d7b=_0x47c516;return this[_0x414d7b(0x4ee)]()['signUrlServerUrl']??_0x414d7b(0x24e);}[_0x47c516(0x334)](){const _0x543d99=_0x47c516;let _0x62e88=this[_0x543d99(0x4ee)]();return _0x62e88[_0x543d99(0x454)]?_0x62e88['downloadEndpointUrl']:typeof location<'u'?location[_0x543d99(0x365)]:_0x62e88[_0x543d99(0x2df)]??'';}[_0x47c516(0x4ee)](){const _0x323863=_0x47c516;return this['_configService'][_0x323863(0x33e)](_0x323863(0x313))??{};}};U=y([v(0x0,(0x0,t['Inject'])(l[_0x47c516(0x45b)])),v(0x1,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x2ae)])),v(0x2,(0x0,t['Inject'])(t[_0x47c516(0x493)]))],U);function rt(_0x21e556,_0x4a89e8){const _0x456211=_0x47c516;var _0xb5af35;if(_0x4a89e8['maxSize']!=null&&_0x21e556[_0x456211(0x2d9)]>_0x4a89e8[_0x456211(0x24c)])throw Error(_0x456211(0x32b));if((_0xb5af35=_0x4a89e8[_0x456211(0x24b)])!=null&&_0xb5af35[_0x456211(0x476)]&&!_0x4a89e8[_0x456211(0x24b)][_0x456211(0x3e9)](_0x12ae28=>_0x21e556[_0x456211(0x1fe)]===_0x12ae28||_0x21e556[_0x456211(0x310)][_0x456211(0x30e)](_0x12ae28)||_0x12ae28[_0x456211(0x30e)]('/*')&&_0x21e556[_0x456211(0x1fe)][_0x456211(0x38d)](_0x12ae28[_0x456211(0x33a)](0x0,-0x1))))throw Error(_0x456211(0x37f));}let W=class{constructor(_0x469ce5,_0x59a34d,_0x17c65d){const _0x116d1d=_0x47c516;this[_0x116d1d(0x469)]=_0x469ce5,this[_0x116d1d(0x503)]=_0x59a34d,this['localeService']=_0x17c65d,this[_0x116d1d(0x243)]();}[_0x47c516(0x243)](){const _0x3293d8=_0x47c516;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x439a00,_0x23744a)=>_0x23744a(_0x439a00)[_0x3293d8(0x3e8)]((0x0,i[_0x3293d8(0x52c)])(async _0x5be297=>{const _0x3b3089=_0x3293d8;let _0x386b84=_0x5be297;if(_0x386b84[_0x3b3089(0x4f5)]===0x191){if(typeof window>'u')throw Error(_0x3b3089(0x256));if(window[_0x3b3089(0x31f)](this[_0x3b3089(0x47d)]['t'](_0x3b3089(0x411)))){let _0x14dd4b=window[_0x3b3089(0x546)](window[_0x3b3089(0x465)][_0x3b3089(0x3cc)]);window['location']['href']=this[_0x3b3089(0x437)]()+_0x3b3089(0x470)+_0x14dd4b;}}return _0x386b84;}))});}[_0x47c516(0x437)](){const _0x528dbe=_0x47c516;let _0x305715=this[_0x528dbe(0x469)][_0x528dbe(0x33e)](m);return(_0x305715==null?void 0x0:_0x305715[_0x528dbe(0x206)])??_0x528dbe(0x44e);}};W=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x47c516(0x528)])(l[_0x47c516(0x45b)])),v(0x2,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x346)]))],W);let G=class extends t[_0x47c516(0x542)]{constructor(_0x3e9200,_0x2ca22a){const _0x31a218=_0x47c516;super(),this[_0x31a218(0x4eb)]=_0x3e9200,this[_0x31a218(0x469)]=_0x2ca22a,g(this,'_cfgEnableObjInherit',!0x1),this[_0x31a218(0x3aa)]();}[_0x47c516(0x3aa)](){const _0x1eb340=_0x47c516;let _0x37aa34=this;this[_0x1eb340(0x4dc)](this[_0x1eb340(0x4eb)][_0x1eb340(0x53c)]({'priority':0x3e7,'interceptor':(0x0,l[_0x1eb340(0x3b1)])({'isMatch'(_0x83bb45){const _0x51b1e9=_0x1eb340;var _0x2a0fbf;if(_0x83bb45[_0x51b1e9(0x4a0)]==='POST'&&(_0x2a0fbf=_0x83bb45[_0x51b1e9(0x277)])!=null&&_0x2a0fbf[_0x51b1e9(0x268)]){let {objectID:_0x23eeff,objectType:_0x420a4e}=_0x83bb45[_0x51b1e9(0x277)][_0x51b1e9(0x268)]||{};if(!_0x23eeff||_0x420a4e===void 0x0)return!0x1;let _0x32ca39=_0x37aa34[_0x51b1e9(0x231)]()+'/'+_0x420a4e+'/object/'+encodeURIComponent(_0x23eeff)+_0x51b1e9(0x50c);if(_0x83bb45['url']===_0x32ca39)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x191fee){const _0x4dd376=_0x1eb340;var _0x1b1342;return(_0x1b1342=_0x191fee[_0x4dd376(0x277)])==null?void 0x0:_0x1b1342['body'];},'mergeParamsToRequest'(_0x297515,_0x2a428a){const _0x43dab2=_0x1eb340;let _0x438cf5=_0x37aa34[_0x43dab2(0x231)]()+_0x43dab2(0x258),_0x3c2a17=_0x297515[_0x43dab2(0x39d)]((_0x101d9d,_0x231b05)=>{const _0x28eced=_0x43dab2;let {unitID:_0x21d0ca,objectID:_0x4517a1,objectType:_0x25b405,actions:_0x4e5f46}=_0x231b05;return _0x101d9d[_0x21d0ca]||(_0x101d9d[_0x21d0ca]=Object['create'](null)),_0x101d9d[_0x21d0ca][_0x4517a1]||(_0x101d9d[_0x21d0ca][_0x4517a1]={'objectID':_0x4517a1,'objectType':_0x25b405,'actions':[]}),_0x101d9d[_0x21d0ca][_0x4517a1][_0x28eced(0x1f3)][_0x28eced(0x325)](..._0x4e5f46),_0x101d9d;},Object['create'](null)),_0xb396f5=[];for(let _0x2f3cbf in _0x3c2a17)for(let _0x4cca14 in _0x3c2a17[_0x2f3cbf]){let {actions:_0x133db0,objectType:_0x3eb52f}=_0x3c2a17[_0x2f3cbf][_0x4cca14],_0x4337d0=[...new Set(_0x133db0)];_0xb396f5[_0x43dab2(0x325)]({'unitID':_0x2f3cbf,'objectID':_0x4cca14,'objectType':_0x3eb52f,'actions':_0x4337d0});}return new l[(_0x43dab2(0x3db))](_0x43dab2(0x4cb),_0x438cf5,{'headers':_0x2a428a['headers'],'withCredentials':_0x2a428a[_0x43dab2(0x2c2)],'responseType':_0x2a428a[_0x43dab2(0x51c)],'body':{'requests':_0xb396f5}});}},{'distributeResult'(_0x51df89,_0x594ef4){let {objectActions:_0x6dc5b8}=_0x51df89;return _0x594ef4['map'](_0x1bdfe3=>{const _0x53eee1=_0x88a9;let {unitID:_0x3fba2e,objectID:_0x45f8c5,actions:_0x40de98}=_0x1bdfe3,_0x35ddd9=_0x6dc5b8['find'](_0x13d70b=>_0x13d70b[_0x53eee1(0x4e9)]===_0x3fba2e&&_0x13d70b[_0x53eee1(0x384)]===_0x45f8c5);return{'config':_0x1bdfe3,'result':{'actions':_0x40de98[_0x53eee1(0x41a)](_0xc0dc35=>_0x35ddd9==null?void 0x0:_0x35ddd9['actions'][_0x53eee1(0x3f8)](_0x5c3313=>_0x5c3313[_0x53eee1(0x209)]===_0xc0dc35))[_0x53eee1(0x441)](_0x51049f=>!!_0x51049f),'error':_0x51df89[_0x53eee1(0x492)]}};});}})}));}['_getAPIPrefixPath'](){const _0x5b86d0=_0x47c516;let _0x42a5c1=this[_0x5b86d0(0x469)][_0x5b86d0(0x33e)](m);return(_0x42a5c1==null?void 0x0:_0x42a5c1[_0x5b86d0(0x287)])??_0x5b86d0(0x306);}async[_0x47c516(0x20b)](_0xda19a1){const _0x32aa65=_0x47c516;let _0x5ce8b8=this[_0x32aa65(0x231)]()+'/'+_0xda19a1[_0x32aa65(0x2d5)]+_0x32aa65(0x32c);return(await this[_0x32aa65(0x4eb)][_0x32aa65(0x29f)](_0x5ce8b8,{'body':_0xda19a1}))[_0x32aa65(0x268)][_0x32aa65(0x384)]||'';}async[_0x47c516(0x352)](_0x113dc3){const _0x1ead66=_0x47c516;let _0x4dc4a6=this['_getAPIPrefixPath']()+_0x1ead66(0x23d);return(await this[_0x1ead66(0x4eb)][_0x1ead66(0x29f)](_0x4dc4a6,{'body':_0x113dc3}))[_0x1ead66(0x268)][_0x1ead66(0x3ef)];}async['update'](_0x4a9236){const _0x5039b4=_0x47c516;var _0xabf7e4;let _0x1797b7=this[_0x5039b4(0x231)]()+'/'+_0x4a9236['objectType']+_0x5039b4(0x403)+encodeURIComponent(_0x4a9236['objectID']),_0x1d0907=await this[_0x5039b4(0x4eb)][_0x5039b4(0x28e)](_0x1797b7,{'body':_0x4a9236});if((_0x1d0907==null||(_0xabf7e4=_0x1d0907[_0x5039b4(0x268)])==null||(_0xabf7e4=_0xabf7e4[_0x5039b4(0x492)])==null?void 0x0:_0xabf7e4[_0x5039b4(0x30a)])!==0x1)throw Error(_0x5039b4(0x27d));}async['allowed'](_0x4030ad){const _0x521573=_0x47c516;let _0x310821=this[_0x521573(0x231)]()+'/'+_0x4030ad['objectType']+'/object/'+encodeURIComponent(_0x4030ad['objectID'])+_0x521573(0x50c);return(await this[_0x521573(0x4eb)][_0x521573(0x29f)](_0x310821,{'body':_0x4030ad}))[_0x521573(0x268)][_0x521573(0x1f3)];}async[_0x47c516(0x280)](_0x5de166){const _0x260571=_0x47c516;let _0x82a23e=this[_0x260571(0x231)]()+'/-/object/-/batch_allowed';return(await this[_0x260571(0x4eb)][_0x260571(0x29f)](_0x82a23e,{'body':{'requests':_0x5de166}}))[_0x260571(0x268)][_0x260571(0x40e)];}async[_0x47c516(0x3d4)](_0x39d04e){const _0x3d4aec=_0x47c516;let _0x3a787d=this[_0x3d4aec(0x231)]()+'/'+_0x39d04e[_0x3d4aec(0x2d5)]+'/role',_0x2d79fb=await this[_0x3d4aec(0x4eb)][_0x3d4aec(0x29f)](_0x3a787d,{'body':_0x39d04e});return{'roles':_0x2d79fb['body'][_0x3d4aec(0x48d)],'actions':_0x2d79fb[_0x3d4aec(0x268)]['actions']};}async[_0x47c516(0x519)](_0x1872c6){const _0x2a411b=_0x47c516;let _0x714e98=this['_getAPIPrefixPath']()+'/collaborator';await this['_HTTPService'][_0x2a411b(0x512)](_0x714e98,{'params':{'collaboratorID':_0x1872c6[_0x2a411b(0x3b5)],'objectID':_0x1872c6[_0x2a411b(0x384)],'unitID':_0x1872c6['unitID']}});}async[_0x47c516(0x39c)](_0x71edbe){const _0x5a2a9e=_0x47c516;let _0x26ef07=this[_0x5a2a9e(0x231)]()+_0x5a2a9e(0x4c8);await this['_HTTPService']['patch'](_0x26ef07,{'body':_0x71edbe});}async[_0x47c516(0x48b)](_0x305bf9){const _0x5bf040=_0x47c516;let _0x1f481b=this[_0x5bf040(0x231)]()+_0x5bf040(0x4c8);await this[_0x5bf040(0x4eb)][_0x5bf040(0x29f)](_0x1f481b,{'body':_0x305bf9});}async[_0x47c516(0x366)](_0x397fc3){const _0x163c19=_0x47c516;let _0x1515a0=this['_getAPIPrefixPath']()+_0x163c19(0x4c8),_0x182385=await this[_0x163c19(0x4eb)][_0x163c19(0x1fa)](_0x1515a0,{'params':{'objectID':_0x397fc3[_0x163c19(0x384)],'unitID':_0x397fc3[_0x163c19(0x4e9)]}});return this[_0x163c19(0x401)](_0x182385['body']['cfgEnableObjInherit']??!0x1),_0x182385[_0x163c19(0x268)]['collaborators'];}async[_0x47c516(0x26b)](_0x5de595){const _0x401884=_0x47c516;let _0x2c709b=this[_0x401884(0x231)]()+_0x401884(0x4c8);await this[_0x401884(0x4eb)][_0x401884(0x28e)](_0x2c709b,{'body':_0x5de595});}[_0x47c516(0x401)](_0x4ae532){const _0x3591b3=_0x47c516;this[_0x3591b3(0x303)]=_0x4ae532;}[_0x47c516(0x2d2)](){const _0x326a0e=_0x47c516;return this[_0x326a0e(0x303)];}};G=y([v(0x0,(0x0,t['Inject'])(l[_0x47c516(0x45b)])),v(0x1,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x2ae)]))],G);function it(_0x5c491f){const _0x10b04f=_0x47c516;let _0x413d8b=atob(_0x5c491f),_0x5d2627=new Uint8Array(_0x413d8b[_0x10b04f(0x476)]);for(let _0x3f1622=0x0;_0x3f1622<_0x413d8b[_0x10b04f(0x476)];_0x3f1622++)_0x5d2627[_0x3f1622]=_0x413d8b[_0x10b04f(0x3d5)](_0x3f1622);return _0x5d2627;}function at(_0x590987){const _0x15b24e=_0x47c516;let _0x31db10='';for(let _0x1f4716=0x0;_0x1f4716<_0x590987['length'];_0x1f4716++)_0x31db10+=String[_0x15b24e(0x52f)](_0x590987[_0x1f4716]);return btoa(_0x31db10);}function ot(_0x194114,_0x1e8369){const _0x5f4ff5=_0x47c516;let _0x53187d=it(_0x1e8369),_0x38f2fe=(0x0,f[_0x5f4ff5(0x1f0)])(0x10),_0x29ecc0=(0x0,d[_0x5f4ff5(0x3a8)])(_0x53187d,_0x38f2fe)[_0x5f4ff5(0x21a)]((0x0,f['utf8ToBytes'])(_0x194114));return at((0x0,f[_0x5f4ff5(0x29c)])(_0x38f2fe,_0x29ecc0));}function st(){const _0x52c5ee=_0x47c516;let _0xe9e151=(0x0,u['getGlobalObject'])()[_0x52c5ee(0x4c2)];if(typeof window<'u'&&window[_0x52c5ee(0x465)]!==void 0x0&&_0xe9e151){let _0x25c872={'time':Math[_0x52c5ee(0x2b2)](Date[_0x52c5ee(0x3e6)]()/0x3e8),'domain':location[_0x52c5ee(0x2de)]};return ot(JSON[_0x52c5ee(0x307)](_0x25c872),_0xe9e151);}}let K=class{constructor(_0x51d6f2){const _0x3394b0=_0x47c516;this['_httpService']=_0x51d6f2,this[_0x3394b0(0x217)]();}[_0x47c516(0x217)](){const _0x580441=_0x47c516;this[_0x580441(0x503)][_0x580441(0x53c)]({'interceptor':(_0x1ec577,_0x553a03)=>{const _0x34918=_0x580441;let _0x140742=st();return _0x140742&&_0x1ec577['headers'][_0x34918(0x2f5)](_0x34918(0x2b7),_0x140742),_0x553a03(_0x1ec577);}});}};K=y([v(0x0,(0x0,t[_0x47c516(0x528)])(l[_0x47c516(0x45b)]))],K);let q=class extends t[_0x47c516(0x3b6)]{constructor(_0x5d74f9,_0x298cff,_0x1363ff){const _0x57ca26=_0x47c516;super(),this[_0x57ca26(0x266)]=_0x5d74f9,this[_0x57ca26(0x4ed)]=_0x298cff,this[_0x57ca26(0x344)]=_0x1363ff,g(this,_0x57ca26(0x486),new i['BehaviorSubject'](null)),g(this,_0x57ca26(0x316),new i['Subject']()),g(this,_0x57ca26(0x348),this[_0x57ca26(0x486)]['asObservable']()),g(this,_0x57ca26(0x4be),this[_0x57ca26(0x316)]['asObservable']());}[_0x47c516(0x328)](){const _0x1a7f99=_0x47c516;super['dispose'](),this[_0x1a7f99(0x316)][_0x1a7f99(0x2ce)](),this[_0x1a7f99(0x486)][_0x1a7f99(0x2ce)]();}[_0x47c516(0x29b)](_0xa50bff,_0x5f03f8,_0x94042c,_0x327232,_0x4b07e4){const _0x24b210=_0x47c516;return this[_0x24b210(0x408)](_0xa50bff,_0x5f03f8,_0x94042c,_0x327232,_0x4b07e4);}[_0x47c516(0x2fc)](_0x42a930,_0x33f2fc,_0x2e826c,_0x2833b0){const _0x3d2f26=_0x47c516;return this[_0x3d2f26(0x408)](_0x42a930,_0x33f2fc,void 0x0,_0x2e826c,_0x2833b0);}async[_0x47c516(0x408)](_0x52c907,_0x43d45c,_0x5e031a,_0x5f25ed,_0x566436){const _0x4110e5=_0x47c516;this[_0x4110e5(0x486)][_0x4110e5(0x485)]({'unitId':_0x52c907,'type':_0x43d45c,'subUnitId':_0x5f25ed});let _0x37f9a8=_0x5e031a;if(_0x37f9a8===void 0x0){var _0x11340c;let _0x56b989=await((_0x11340c=this[_0x4110e5(0x344)])==null?void 0x0:_0x11340c[_0x4110e5(0x37b)](_0x52c907));_0x37f9a8=_0x56b989&&(_0x56b989[_0x4110e5(0x4b9)]||_0x56b989[_0x4110e5(0x223)][_0x4110e5(0x476)]!==0x0)?_0x56b989[_0x4110e5(0x533)]:0x0,_0x37f9a8===0x0&&this[_0x4110e5(0x266)][_0x4110e5(0x3c4)](_0x4110e5(0x274),_0x4110e5(0x3b8));}return this[_0x4110e5(0x27e)](_0x52c907,_0x43d45c,_0x37f9a8,_0x5f25ed,_0x566436);}async['_loadSnapshot'](_0x57adf3,_0x2c8f3b,_0x3d7ed8,_0x5c4db4,_0x4c0e3f){const _0x335526=_0x47c516;let _0x3acc40=null;switch(_0x2c8f3b){case t[_0x335526(0x4f3)]['UNIVER_SHEET']:_0x3acc40=await this[_0x335526(0x4ed)][_0x335526(0x1fc)](_0x57adf3,_0x3d7ed8,_0x4c0e3f,{'initialSubUnitId':_0x5c4db4});break;case t[_0x335526(0x4f3)]['UNIVER_DOC']:_0x3acc40=await this[_0x335526(0x4ed)]['loadDoc'](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;case t[_0x335526(0x4f3)][_0x335526(0x2b4)]:_0x3acc40=await this['_snapshotService'][_0x335526(0x449)](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;case t['UniverInstanceType'][_0x335526(0x48f)]:_0x3acc40=await this[_0x335526(0x4ed)][_0x335526(0x39b)](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;case t[_0x335526(0x4f3)][_0x335526(0x4d1)]:_0x3acc40=await this[_0x335526(0x4ed)][_0x335526(0x295)](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;case t[_0x335526(0x4f3)][_0x335526(0x4a7)]:_0x3acc40=await this[_0x335526(0x4ed)][_0x335526(0x4d5)](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;default:this['_logService'][_0x335526(0x492)](_0x335526(0x274),_0x335526(0x3d2));}return _0x3acc40&&this[_0x335526(0x316)][_0x335526(0x485)](_0x3acc40),_0x3acc40;}};q=y([v(0x0,t[_0x47c516(0x4e0)]),v(0x1,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x415)])),v(0x2,(0x0,t[_0x47c516(0x263)])(x))],q);let J=class{constructor(_0x3b638e,_0x483dc8,_0x158698){const _0x52b492=_0x47c516;this[_0x52b492(0x503)]=_0x3b638e,this[_0x52b492(0x469)]=_0x483dc8,this[_0x52b492(0x2af)]=_0x158698,g(this,_0x52b492(0x35f),0x0),g(this,_0x52b492(0x491),new i['Subject']()),g(this,_0x52b492(0x2d6),this[_0x52b492(0x491)]),g(this,'_imageSourceCache',new Map());}[_0x47c516(0x419)](_0x243daa){const _0x27ed76=_0x47c516;this['_waitCount']=_0x243daa,this[_0x27ed76(0x491)]['next'](_0x243daa);}['getImageSourceCache'](_0x3b66a9,_0x492ff1){const _0x4826f4=_0x47c516;if(_0x492ff1===t[_0x4826f4(0x230)][_0x4826f4(0x36f)]){let _0x206090=new Image();return _0x206090['src']=_0x3b66a9,_0x206090;}return this['_imageSourceCache'][_0x4826f4(0x1fa)](_0x3b66a9);}[_0x47c516(0x320)](_0x6e9f78,_0x3a94d2,_0x11f813){const _0x31fdc8=_0x47c516;_0x3a94d2!==t['ImageSourceType'][_0x31fdc8(0x36f)]&&_0x11f813!=null&&this['_imageSourceCache'][_0x31fdc8(0x2f5)](_0x6e9f78,_0x11f813);}async[_0x47c516(0x42f)](_0x4c4d99){const _0x389215=_0x47c516;try{let _0x98ad00=this['_replaceFileID'](this[_0x389215(0x425)](),''+_0x4c4d99),_0x2dca4f=(await this[_0x389215(0x503)][_0x389215(0x1fa)](_0x98ad00))['body'];if(_0x2dca4f['error']&&_0x2dca4f[_0x389215(0x492)][_0x389215(0x30a)]===a['ErrorCode']['OK']){let _0x584172=(0x0,t[_0x389215(0x1f5)])(_0x2dca4f['url'],this[_0x389215(0x334)]());return Promise[_0x389215(0x359)](_0x584172);}return Promise['reject'](_0x2dca4f[_0x389215(0x492)]);}catch(_0x16edc2){return Promise[_0x389215(0x43e)](_0x16edc2);}}async[_0x47c516(0x530)](_0x47eb65){const _0x290c69=_0x47c516;let _0xb51cc='';if(!p[_0x290c69(0x347)][_0x290c69(0x482)](_0x47eb65['type']))return this[_0x290c69(0x382)](),Promise[_0x290c69(0x43e)](Error(t[_0x290c69(0x40c)]['ERROR_IMAGE_TYPE']));if(_0x47eb65[_0x290c69(0x2d9)]>(0x0,p['getDrawingImageAllowSize'])())return this[_0x290c69(0x382)](),Promise['reject'](Error(t['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{let _0x511890=new FormData();_0x511890[_0x290c69(0x293)]('file',_0x47eb65);let _0x1cb85d=this[_0x290c69(0x2af)][_0x290c69(0x409)](),_0x583e1b=_0x1cb85d==null?void 0x0:_0x1cb85d[_0x290c69(0x4fc)]();if(!_0x583e1b)throw Error('unitId\x20is\x20not\x20found');let _0x110af6=this['_getUploadFileURL']()+_0x290c69(0x53a)+_0x47eb65[_0x290c69(0x2d9)]['toString']()+_0x290c69(0x49e)+a[_0x290c69(0x237)][_0x290c69(0x45c)]+'&assign='+encodeURIComponent(_0x583e1b),_0x4030d8={'body':_0x511890},_0x2ff453=(await this[_0x290c69(0x503)]['post'](_0x110af6,_0x4030d8))[_0x290c69(0x268)];if(typeof _0x2ff453[_0x290c69(0x331)]!=_0x290c69(0x46a))return this[_0x290c69(0x382)](),Promise[_0x290c69(0x43e)](Error(t['ImageUploadStatusType'][_0x290c69(0x31b)]));_0xb51cc=_0x2ff453[_0x290c69(0x331)];}catch{return this[_0x290c69(0x382)](),Promise[_0x290c69(0x43e)](Error(t[_0x290c69(0x40c)][_0x290c69(0x31b)]));}return new Promise((_0x3981f6,_0x2262a0)=>{const _0x2030c1=_0x290c69;let _0x3e8e36=new FileReader();_0x3e8e36[_0x2030c1(0x2db)](_0x47eb65),_0x3e8e36['onload']=_0x107fde=>{const _0x580d50=_0x2030c1;var _0xa6ad42;let _0x3a0b72=(_0xa6ad42=_0x107fde['target'])==null?void 0x0:_0xa6ad42[_0x580d50(0x4fb)];_0x3a0b72==null?(this[_0x580d50(0x382)](),_0x2262a0(Error(t['ImageUploadStatusType'][_0x580d50(0x31b)]))):(_0x3981f6({'imageId':(0x0,t['generateRandomId'])(0x6),'imageSourceType':t[_0x580d50(0x230)][_0x580d50(0x4d7)],'source':_0xb51cc,'base64Cache':_0x3a0b72,'status':t[_0x580d50(0x40c)][_0x580d50(0x4fa)]}),this['_decreaseWaiting']());};});}[_0x47c516(0x264)](){const _0x2c9aa6=_0x47c516;let _0x369e12=this[_0x2c9aa6(0x469)][_0x2c9aa6(0x33e)](m);return(_0x369e12==null?void 0x0:_0x369e12[_0x2c9aa6(0x2df)])??'/universer-api/stream/file/upload';}[_0x47c516(0x425)](){const _0x46e275=_0x47c516;let _0xbd4e4d=this[_0x46e275(0x469)][_0x46e275(0x33e)](m);return(_0xbd4e4d==null?void 0x0:_0xbd4e4d[_0x46e275(0x436)])??_0x46e275(0x24e);}['_getDownloadEndpointURL'](){const _0x595e27=_0x47c516;let _0x1b7500=this['_configService'][_0x595e27(0x33e)](m);return(_0x1b7500==null?void 0x0:_0x1b7500[_0x595e27(0x454)])??location[_0x595e27(0x365)];}[_0x47c516(0x251)](_0x149bd5,_0x47142d){const _0x249ff5=_0x47c516;return _0x149bd5[_0x249ff5(0x275)](_0x249ff5(0x317),_0x47142d);}[_0x47c516(0x382)](){const _0x209bb8=_0x47c516;--this[_0x209bb8(0x35f)],this['_change$'][_0x209bb8(0x485)](this['_waitCount']);}};J=y([v(0x0,(0x0,t['Inject'])(l[_0x47c516(0x45b)])),v(0x1,t['IConfigService']),v(0x2,(0x0,t[_0x47c516(0x528)])(t['IUniverInstanceService']))],J);let Y=class{constructor(_0x2008d7,_0x362fe8){const _0x3d2d25=_0x47c516;this[_0x3d2d25(0x469)]=_0x2008d7,this[_0x3d2d25(0x4eb)]=_0x362fe8;}[_0x47c516(0x231)](){const _0x2bda0b=_0x47c516;let _0x28e6fa=this['_configService']['getConfig'](m);return(_0x28e6fa==null?void 0x0:_0x28e6fa[_0x2bda0b(0x287)])??_0x2bda0b(0x306);}async[_0x47c516(0x352)](_0x267a59){const _0x4a9cfe=_0x47c516;let _0xaa1778=this[_0x4a9cfe(0x231)]()+_0x4a9cfe(0x4c8);return{'list':[{'title':'People','mentions':(await this[_0x4a9cfe(0x4eb)]['get'](_0xaa1778,{'params':{'objectID':_0x267a59[_0x4a9cfe(0x220)],'unitID':_0x267a59['unitId']}}))[_0x4a9cfe(0x268)][_0x4a9cfe(0x433)][_0x4a9cfe(0x41a)](_0x38d7c8=>({'objectId':_0x38d7c8['id'],'name':_0x38d7c8[_0x4a9cfe(0x222)][_0x4a9cfe(0x310)],'metadata':{'icon':_0x38d7c8[_0x4a9cfe(0x222)][_0x4a9cfe(0x3b0)]},'label':_0x38d7c8['subject']['name'],'objectType':t['MentionType'][_0x4a9cfe(0x44b)]})),'metadata':{},'type':t[_0x4a9cfe(0x2ec)]['PERSON']}]};}};Y=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x2ae)])),v(0x1,(0x0,t[_0x47c516(0x528)])(l[_0x47c516(0x45b)]))],Y);let X=class extends t[_0x47c516(0x3b6)]{constructor(_0x57fe0e,_0x51ea56,_0x61fa49,_0x5b8a27,_0x105247,_0x867327){const _0x2aa5f5=_0x47c516;super(),this[_0x2aa5f5(0x400)]=_0x57fe0e,this[_0x2aa5f5(0x2af)]=_0x51ea56,this[_0x2aa5f5(0x539)]=_0x61fa49,this[_0x2aa5f5(0x466)]=_0x5b8a27,this['_collaborationSessionService']=_0x105247,this[_0x2aa5f5(0x396)]=_0x867327,g(this,_0x2aa5f5(0x247),new Set()),this[_0x2aa5f5(0x4dc)](()=>this[_0x2aa5f5(0x247)][_0x2aa5f5(0x4c9)]()),this[_0x2aa5f5(0x4dc)](ct(this[_0x2aa5f5(0x2af)])[_0x2aa5f5(0x51a)](({unitId:_0x1d7c7b})=>this[_0x2aa5f5(0x247)]['delete'](_0x1d7c7b))),this[_0x2aa5f5(0x374)](),this['_initCloseConn'](),[t[_0x2aa5f5(0x4f3)][_0x2aa5f5(0x48e)],t[_0x2aa5f5(0x4f3)][_0x2aa5f5(0x2b4)],t['UniverInstanceType'][_0x2aa5f5(0x4d1)],t[_0x2aa5f5(0x4f3)][_0x2aa5f5(0x48f)]][_0x2aa5f5(0x4b1)](_0x2cc506=>{const _0x2c7a16=_0x2aa5f5;this['disposeWithMe'](this[_0x2c7a16(0x2af)]['getTypeOfUnitDisposed$'](_0x2cc506)[_0x2c7a16(0x51a)](_0x1be67e=>{const _0x10ed92=_0x2c7a16;this[_0x10ed92(0x247)][_0x10ed92(0x22f)](_0x1be67e[_0x10ed92(0x4fc)]()),this['_injector'][_0x10ed92(0x1fa)](t[_0x10ed92(0x1ee)])[_0x10ed92(0x3a4)](_0x1be67e[_0x10ed92(0x4fc)]());}));});}[_0x47c516(0x2dd)](){const _0xe1ad5d=_0x47c516;let _0x13e85d=async(_0x144667,_0x1afc92)=>{const _0x445a66=_0x88a9;let _0x175929=await this['_collaborationSessionService'][_0x445a66(0x38c)](_0x144667);this[_0x445a66(0x440)]||this[_0x445a66(0x247)][_0x445a66(0x51d)](_0x144667)||!this[_0x445a66(0x2af)][_0x445a66(0x26a)](_0x144667)||_0x175929[_0x445a66(0x502)][_0x445a66(0x3e8)]((0x0,s['filter'])(_0x5d51a2=>_0x5d51a2[_0x445a66(0x393)]===e['CollaborationEvent'][_0x445a66(0x500)]),(0x0,s['takeUntil'])((0x0,i[_0x445a66(0x4f0)])(this['dispose$'],this[_0x445a66(0x2af)][_0x445a66(0x420)][_0x445a66(0x3e8)]((0x0,s[_0x445a66(0x441)])(_0x2934f9=>_0x2934f9[_0x445a66(0x4fc)]()===_0x144667)))))['subscribe'](_0xd408a3=>{const _0xa35c4f=_0x445a66;let {reason:_0xff5b96}=_0xd408a3[_0xa35c4f(0x3cf)];this[_0xa35c4f(0x396)][_0xa35c4f(0x315)]({'id':'CLOSE_ROOM','data':_0xff5b96}),this[_0xa35c4f(0x247)][_0xa35c4f(0x22f)](_0x144667),this['_injector'][_0xa35c4f(0x1fa)](t[_0xa35c4f(0x1ee)])[_0xa35c4f(0x3a4)](_0x144667);let _0x53037e=lt(_0x1afc92);_0x53037e!=null&&this['_updateUnitPermissionPoint'](_0x144667,_0x53037e,a[_0xa35c4f(0x229)]['Edit'],!0x1),this[_0xa35c4f(0x508)][_0xa35c4f(0x4ae)](_0x144667);});};ct(this[_0xe1ad5d(0x2af)])[_0xe1ad5d(0x3e8)]((0x0,s[_0xe1ad5d(0x441)])(({unitId:_0x4b2c17})=>!(0x0,t[_0xe1ad5d(0x429)])(_0x4b2c17)),(0x0,s[_0xe1ad5d(0x357)])(this[_0xe1ad5d(0x25f)]))['subscribe'](({type:_0x1bdf77,unitId:_0x4997d2})=>{const _0x429d6c=_0xe1ad5d;_0x13e85d(_0x4997d2,_0x1bdf77)['catch'](_0x48c3dd=>this[_0x429d6c(0x400)][_0x429d6c(0x1fa)](t[_0x429d6c(0x4e0)])['error'](_0x48c3dd));});}[_0x47c516(0x374)](){const _0x36432a=_0x47c516;let _0x3d8593=async(_0x813fd2,_0x5755db)=>{const _0x2689e1=_0x88a9;let _0x30585a=await this[_0x2689e1(0x508)]['requireSession'](_0x813fd2);if(!(this[_0x2689e1(0x440)]||this[_0x2689e1(0x247)][_0x2689e1(0x51d)](_0x813fd2)||!this['_univerInstanceService'][_0x2689e1(0x26a)](_0x813fd2))){if(_0x5755db===t['UniverInstanceType'][_0x2689e1(0x4ab)]){let _0x3bfe3b=this['_injector'][_0x2689e1(0x1fa)](r[_0x2689e1(0x394)]);await _0x3bfe3b[_0x2689e1(0x2cc)](_0x813fd2),_0x30585a['event$'][_0x2689e1(0x3e8)]((0x0,s[_0x2689e1(0x441)])(_0x50d060=>_0x50d060['eventID']===e[_0x2689e1(0x427)][_0x2689e1(0x20c)]),(0x0,s[_0x2689e1(0x357)])((0x0,i[_0x2689e1(0x4f0)])(this[_0x2689e1(0x25f)],_0x30585a[_0x2689e1(0x502)][_0x2689e1(0x3e8)]((0x0,s[_0x2689e1(0x441)])(_0xf47c7d=>_0xf47c7d[_0x2689e1(0x393)]===e[_0x2689e1(0x427)][_0x2689e1(0x500)])),this[_0x2689e1(0x2af)][_0x2689e1(0x420)][_0x2689e1(0x3e8)]((0x0,s['filter'])(_0x2ca111=>_0x2ca111[_0x2689e1(0x4fc)]()===_0x813fd2)))))[_0x2689e1(0x51a)](_0x3edb2a=>{const _0x299188=_0x2689e1;let {objectId:_0x23db1e}=_0x3edb2a[_0x299188(0x3cf)];_0x23db1e===_0x813fd2?_0x3bfe3b[_0x299188(0x2cc)](_0x813fd2):_0x3bfe3b[_0x299188(0x3ac)](_0x813fd2,_0x23db1e);});}else _0x30585a['event$']['pipe']((0x0,s['filter'])(_0xf7c23c=>_0xf7c23c[_0x2689e1(0x393)]===e[_0x2689e1(0x427)][_0x2689e1(0x20c)]),(0x0,s['takeUntil'])((0x0,i[_0x2689e1(0x4f0)])(this['dispose$'],_0x30585a['event$'][_0x2689e1(0x3e8)]((0x0,s['filter'])(_0x2532d1=>_0x2532d1[_0x2689e1(0x393)]===e[_0x2689e1(0x427)][_0x2689e1(0x500)])),this[_0x2689e1(0x2af)][_0x2689e1(0x420)][_0x2689e1(0x3e8)]((0x0,s[_0x2689e1(0x441)])(_0x9466ce=>_0x9466ce[_0x2689e1(0x4fc)]()===_0x813fd2)))))[_0x2689e1(0x51a)](()=>{const _0xcbae20=_0x2689e1;this[_0xcbae20(0x46b)](_0x813fd2,_0x5755db)[_0xcbae20(0x3dc)](_0x3741ee=>this[_0xcbae20(0x400)]['get'](t[_0xcbae20(0x4e0)])[_0xcbae20(0x492)](_0x3741ee));}),await this[_0x2689e1(0x46b)](_0x813fd2,_0x5755db);}};ct(this[_0x36432a(0x2af)])[_0x36432a(0x3e8)]((0x0,s[_0x36432a(0x441)])(({unitId:_0x582221})=>!(0x0,t[_0x36432a(0x429)])(_0x582221)),(0x0,s[_0x36432a(0x357)])(this[_0x36432a(0x25f)]))[_0x36432a(0x51a)](({type:_0x52582b,unitId:_0x120cff})=>{const _0x908e7b=_0x36432a;_0x3d8593(_0x120cff,_0x52582b)[_0x908e7b(0x3dc)](_0x366dca=>this[_0x908e7b(0x400)]['get'](t[_0x908e7b(0x4e0)])[_0x908e7b(0x492)](_0x366dca));});}async[_0x47c516(0x46b)](_0x5b401a,_0x23c356){const _0x35da36=_0x47c516;let _0x119b16=lt(_0x23c356);if(_0x119b16==null)return;let _0xe3c23c=this[_0x35da36(0x400)]['get'](t[_0x35da36(0x1ee)]);if(_0xe3c23c[_0x35da36(0x395)]({'unitId':_0x5b401a,'objectId':_0x5b401a,'objectType':_0x119b16})){await _0xe3c23c[_0x35da36(0x410)](_0x5b401a);return;}let _0x2871cc=this['_getUnitPermissionPoints'](_0x5b401a,_0x119b16);if(!_0x2871cc[_0x35da36(0x476)])return;let _0x73dbc2=await this[_0x35da36(0x466)]['allowed']({'objectID':_0x5b401a,'objectType':_0x119b16,'unitID':_0x5b401a,'actions':_0x2871cc[_0x35da36(0x41a)](({action:_0x50b62c})=>_0x50b62c)});this[_0x35da36(0x440)]||this[_0x35da36(0x247)]['has'](_0x5b401a)||!this['_univerInstanceService'][_0x35da36(0x26a)](_0x5b401a)||_0x73dbc2[_0x35da36(0x4b1)](_0x4fb444=>{const _0x9f7b6c=_0x35da36;let _0x4c2b8a=_0x4fb444[_0x9f7b6c(0x209)],_0x532820=_0x4fb444[_0x9f7b6c(0x432)];_0x4c2b8a!=null&&_0x532820!=null&&_0x2871cc[_0x9f7b6c(0x441)](_0x741149=>_0x741149[_0x9f7b6c(0x209)]===_0x4c2b8a)['forEach'](_0x49b98a=>this['_permissionService'][_0x9f7b6c(0x3be)](_0x49b98a['id'],_0x532820));});}[_0x47c516(0x41e)](_0x3b7de1,_0x1b0f6b){const _0x553912=_0x47c516;let _0x1c343a=[];return this[_0x553912(0x539)][_0x553912(0x52b)]()[_0x553912(0x4b1)]((_0x3dc00d,_0x5cb8d6)=>{const _0x380338=_0x553912;_0x3dc00d['subscribe'](_0x4ce2d2=>{const _0x24d001=_0x88a9;_0x4ce2d2['type']===_0x1b0f6b&&'unitId'in _0x4ce2d2&&_0x4ce2d2[_0x24d001(0x220)]===_0x3b7de1&&(!(_0x24d001(0x39a)in _0x4ce2d2)||_0x4ce2d2[_0x24d001(0x39a)]===_0x3b7de1)&&_0x1c343a[_0x24d001(0x325)]({'id':_0x5cb8d6,'action':_0x4ce2d2[_0x24d001(0x426)]});})[_0x380338(0x44d)]();}),_0x1c343a;}[_0x47c516(0x23c)](_0x35951a,_0x2586c8,_0x3cbc20,_0x2f954a){const _0x44f608=_0x47c516;this[_0x44f608(0x539)][_0x44f608(0x52b)]()[_0x44f608(0x4b1)]((_0x16b8b3,_0x4b8a3f)=>{const _0x53a7af=_0x44f608;let _0x3631d5=!0x1;_0x16b8b3[_0x53a7af(0x51a)](_0x579951=>{const _0xa22b4d=_0x53a7af;_0x3631d5=_0x579951[_0xa22b4d(0x1fe)]===_0x2586c8&&_0x579951[_0xa22b4d(0x426)]===_0x3cbc20&&_0xa22b4d(0x220)in _0x579951&&_0x579951[_0xa22b4d(0x220)]===_0x35951a&&(!(_0xa22b4d(0x39a)in _0x579951)||_0x579951['objectId']===_0x35951a);})[_0x53a7af(0x44d)](),_0x3631d5&&this[_0x53a7af(0x539)][_0x53a7af(0x3be)](_0x4b8a3f,_0x2f954a);});}};X=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x47c516(0x333)]),v(0x3,t[_0x47c516(0x3fc)]),v(0x4,(0x0,t[_0x47c516(0x528)])(V)),v(0x5,(0x0,t[_0x47c516(0x528)])(_))],X);function ct(_0x29127c){const _0x54b6b3=_0x47c516;return(0x0,i[_0x54b6b3(0x4f0)])(...[t['UniverInstanceType'][_0x54b6b3(0x4ab)],t[_0x54b6b3(0x4f3)][_0x54b6b3(0x48e)],t[_0x54b6b3(0x4f3)][_0x54b6b3(0x2b4)],t[_0x54b6b3(0x4f3)][_0x54b6b3(0x48f)],t['UniverInstanceType'][_0x54b6b3(0x4d1)]][_0x54b6b3(0x41a)](_0xdca99f=>_0x29127c[_0x54b6b3(0x2ee)](_0xdca99f)[_0x54b6b3(0x3e8)]((0x0,s[_0x54b6b3(0x41a)])(_0x4b31ed=>({'type':_0xdca99f,'unitId':_0x4b31ed['unit'][_0x54b6b3(0x4fc)]()})))));}function lt(_0x870ff7){const _0x46924d=_0x47c516;switch(_0x870ff7){case t[_0x46924d(0x4f3)][_0x46924d(0x4ab)]:return a[_0x46924d(0x4bb)][_0x46924d(0x2e4)];case t[_0x46924d(0x4f3)][_0x46924d(0x48e)]:return a['UnitObject']['Document'];case t['UniverInstanceType'][_0x46924d(0x2b4)]:return a[_0x46924d(0x4bb)][_0x46924d(0x290)];case t[_0x46924d(0x4f3)][_0x46924d(0x48f)]:return a['UnitObject'][_0x46924d(0x20f)];case t[_0x46924d(0x4f3)][_0x46924d(0x4d1)]:return a[_0x46924d(0x4bb)]['Base'];default:return;}}let Z=class{constructor(_0x5bb902,_0x42503b){const _0x526f74=_0x47c516;this[_0x526f74(0x469)]=_0x5bb902,this[_0x526f74(0x503)]=_0x42503b;}async[_0x47c516(0x424)](_0x5c5044,_0x2c0abd){const _0x47849e=_0x47c516;var _0x2747c0;let {unitID:_0x294a8d,type:_0x4fe899,revision:_0x417b9e=0x0}=_0x2c0abd,_0x39be96=this[_0x47849e(0x4f2)]()+'/'+_0x4fe899+_0x47849e(0x2b1)+_0x294a8d+_0x47849e(0x323)+_0x417b9e,_0x3fa1aa=(await this['_httpService'][_0x47849e(0x1fa)](_0x39be96))['body'],_0x659ad=(_0x2747c0=_0x3fa1aa[_0x47849e(0x30d)])==null?void 0x0:_0x2747c0[_0x47849e(0x373)];if(_0x659ad){let _0x1322f2=_0x659ad==null?void 0x0:_0x659ad['originalMeta'];_0x659ad[_0x47849e(0x282)]=e[_0x47849e(0x44c)]['encode']((0x0,e[_0x47849e(0x24a)])(_0x1322f2)),Object[_0x47849e(0x204)](_0x659ad[_0x47849e(0x3a3)])[_0x47849e(0x4b1)](([,_0x200f5c])=>{let _0x37ac2b=_0x200f5c['originalMeta'];_0x200f5c['originalMeta']=e['textEncoder']['encode']((0x0,e['b64DecodeUnicode'])(_0x37ac2b));});}return _0x3fa1aa;}async[_0x47c516(0x4ac)](_0x2bc1e1,_0x9c2cb3){const _0x7e44fa=_0x47c516;let {unitID:_0x168e23,type:_0x55078a,blockID:_0x1edca9}=_0x9c2cb3,_0x2396d2=this[_0x7e44fa(0x3bf)]()+'/'+_0x55078a+'/unit/'+_0x168e23+_0x7e44fa(0x4b2)+_0x1edca9;return(await this[_0x7e44fa(0x503)]['get'](_0x2396d2))[_0x7e44fa(0x268)];}async[_0x47c516(0x43a)](_0x4de253,_0x485deb){const _0x19e1c6=_0x47c516;let {unitID:_0x20e9ee,type:_0x3d7d17,blockID:_0x5090c2}=_0x485deb,_0x13eb7d=this[_0x19e1c6(0x3bf)]()+'/block/'+_0x3d7d17+'/unit/'+_0x20e9ee+_0x19e1c6(0x4b2)+_0x5090c2;return(await this[_0x19e1c6(0x503)][_0x19e1c6(0x1fa)](_0x13eb7d))[_0x19e1c6(0x268)];}async['fetchMissingChangesets'](_0x1e2c75,_0x3e6e44){const _0x4a7589=_0x47c516;let {unitID:_0x1c1d49,type:_0x168947,from:_0x300942,to:_0x3e686b}=_0x3e6e44,_0x444729=this[_0x4a7589(0x3bf)]()+'/'+_0x168947+_0x4a7589(0x2b1)+_0x1c1d49+'/fetchmissing?from='+_0x300942+_0x4a7589(0x534)+_0x3e686b;return(await this[_0x4a7589(0x503)][_0x4a7589(0x1fa)](_0x444729))['body'];}[_0x47c516(0x4f2)](){const _0x3feb3a=_0x47c516;return this[_0x3feb3a(0x469)][_0x3feb3a(0x33e)](_0x3feb3a(0x4e6))??this['_getAPIPrefix']();}[_0x47c516(0x3bf)](){const _0x222ac2=_0x47c516;let _0x20d766=this[_0x222ac2(0x469)][_0x222ac2(0x33e)](m);return(_0x20d766==null?void 0x0:_0x20d766[_0x222ac2(0x538)])??_0x222ac2(0x47b);}async[_0x47c516(0x53e)](_0x5d5865,_0x14c274){const _0x11e631=_0x47c516;let _0x1ac025=_0x11e631(0x3e0)+_0x14c274[_0x11e631(0x1fe)]+_0x11e631(0x2b1)+_0x14c274['unitID']+'/resources';return(await this['_httpService'][_0x11e631(0x1fa)](_0x1ac025,{'params':{'resourceId':JSON[_0x11e631(0x307)](_0x14c274[_0x11e631(0x278)])}}))[_0x11e631(0x268)];}[_0x47c516(0x4c1)](){const _0x1005e2=_0x47c516;throw Error(_0x1005e2(0x532));}[_0x47c516(0x1f4)](){const _0x609ed4=_0x47c516;throw Error(_0x609ed4(0x532));}[_0x47c516(0x2be)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x47c516(0x4ad)](){const _0x51fafe=_0x47c516;throw Error(_0x51fafe(0x532));}[_0x47c516(0x2da)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x47c516(0x265)](){const _0x5a3baf=_0x47c516;throw Error(_0x5a3baf(0x532));}};Z=y([v(0x0,t[_0x47c516(0x2ae)]),v(0x1,(0x0,t[_0x47c516(0x528)])(l[_0x47c516(0x45b)]))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x38f697,_0x256cc1,_0x3c533b,_0x110a6e,_0x4ade2f,_0x30790b){const _0x39c6c7=_0x47c516;super(_0x38f697,_0x256cc1,_0x3c533b,_0x110a6e),this[_0x39c6c7(0x3e4)]=_0x4ade2f,this[_0x39c6c7(0x266)]=_0x30790b;}[_0x47c516(0x260)](_0x1c1443,_0x5e9f42){const _0x3efe09=_0x47c516;let _0x44c0dd=this[_0x3efe09(0x22c)](_0x1c1443);if(_0x44c0dd)try{let _0x3f81e0=this[_0x3efe09(0x3a9)](_0x44c0dd,_0x5e9f42);this[_0x3efe09(0x203)](_0x1c1443,_0x3f81e0);}catch(_0x3c47bc){this[_0x3efe09(0x266)][_0x3efe09(0x492)](_0x3efe09(0x413),_0x3c47bc),this[_0x3efe09(0x478)](_0x1c1443);}let _0x235903=this['_getRedoStack'](_0x1c1443);if(_0x235903)try{let _0x398af9=this['_transformStack'](_0x235903,_0x5e9f42);this[_0x3efe09(0x3f0)](_0x1c1443,_0x398af9);}catch(_0xa9d8a7){this[_0x3efe09(0x266)]['error'](_0xa9d8a7),this[_0x3efe09(0x2a9)](_0x1c1443);}}[_0x47c516(0x478)](_0x21ae0d){const _0x356734=_0x47c516;let _0x4b97ee=this[_0x356734(0x22c)](_0x21ae0d);_0x4b97ee&&(_0x4b97ee[_0x356734(0x476)]=0x0,this[_0x356734(0x2b5)]());}[_0x47c516(0x2a9)](_0x449909){let _0x7e109a=this['_getRedoStack'](_0x449909);_0x7e109a&&(_0x7e109a['length']=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x54232b,_0x33d8ac){const _0x25a042=_0x47c516;this[_0x25a042(0x2d8)]['set'](_0x54232b,_0x33d8ac),this[_0x25a042(0x2b5)]();}[_0x47c516(0x3f0)](_0x23488b,_0x140510){const _0xc5722c=_0x47c516;this[_0xc5722c(0x289)][_0xc5722c(0x2f5)](_0x23488b,_0x140510),this[_0xc5722c(0x2b5)]();}['_transformStack'](_0x3b7c96,_0x503036){const _0x448d5f=_0x47c516;let _0x9e61ac=[],_0x593b7b=_0x503036,_0x18309f=_0x503036;for(let _0x30ab5d=_0x3b7c96[_0x448d5f(0x476)]-0x1;_0x30ab5d>=0x0;_0x30ab5d--){let {unitID:_0x1c0548,undoMutations:_0x3e0c52,redoMutations:_0x564d72}=_0x3b7c96[_0x30ab5d],_0x2e9849=this[_0x448d5f(0x3e4)]['transformMutationsWithChangeset'](_0x593b7b,_0x3e0c52),_0x57342e=this['_transformService']['transformMutationsWithChangeset'](_0x18309f,_0x564d72);if((0x0,e['isTransformMutationsWithChangesetFailure'])(_0x2e9849)||(0x0,e['isTransformMutationsWithChangesetFailure'])(_0x57342e)){this[_0x448d5f(0x266)][_0x448d5f(0x492)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2e9849,_0x57342e);break;}_0x593b7b=_0x2e9849[_0x448d5f(0x28f)],_0x18309f=_0x57342e[_0x448d5f(0x28f)],_0x9e61ac[_0x448d5f(0x325)]({'unitID':_0x1c0548,'undoMutations':_0x2e9849['m2Prime'],'redoMutations':_0x57342e['m2Prime']});}return _0x9e61ac[_0x448d5f(0x1f8)]();}};Q=y([v(0x0,t[_0x47c516(0x493)]),v(0x1,t[_0x47c516(0x212)]),v(0x2,t[_0x47c516(0x4cd)]),v(0x3,t[_0x47c516(0x2ae)]),v(0x4,e[_0x47c516(0x3f6)]),v(0x5,t[_0x47c516(0x4e0)])],Q);let $=class extends t[_0x47c516(0x35b)]{constructor(_0x4a331c=ee,_0x249303,_0x1ac833,_0x358196){const _0x19cbcd=_0x47c516;super(),this[_0x19cbcd(0x326)]=_0x4a331c,this['_logService']=_0x249303,this[_0x19cbcd(0x400)]=_0x1ac833,this[_0x19cbcd(0x469)]=_0x358196;let {..._0x3bd00f}=(0x0,t[_0x19cbcd(0x4f0)])({},ee,this['_config']);if(!_0x3bd00f[_0x19cbcd(0x499)])throw Error(_0x19cbcd(0x273));this[_0x19cbcd(0x326)]=_0x3bd00f,this[_0x19cbcd(0x469)]['setConfig'](m,_0x3bd00f);}[_0x47c516(0x475)](){const _0x4c9fb5=_0x47c516;this[_0x4c9fb5(0x469)]['setConfig'](t[_0x4c9fb5(0x246)],this[_0x4c9fb5(0x326)][_0x4c9fb5(0x3a6)]??[]),this['_registerDependencies'](),this[_0x4c9fb5(0x2fe)]();}[_0x47c516(0x473)](){const _0x2bf828=_0x47c516;var _0x206c62,_0xae688;this[_0x2bf828(0x400)]['has'](t[_0x2bf828(0x526)])&&this[_0x2bf828(0x266)][_0x2bf828(0x492)](_0x2bf828(0x360),_0x2bf828(0x47a));let _0x3d581e=(0x0,t['mergeOverrideWithDependencies'])([[t[_0x2bf828(0x526)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this[_0x2bf828(0x326)][_0x2bf828(0x499)]}],[e[_0x2bf828(0x431)],{'useClass':Z}],[t[_0x2bf828(0x3fc)],{'useClass':G}],[t[_0x2bf828(0x50e)],{'useClass':J}],[nt,{'useClass':U}],[t[_0x2bf828(0x474)],{'useClass':Y}],[H],[tt]],(_0x206c62=this[_0x2bf828(0x326)])==null?void 0x0:_0x206c62['override']);if(!((_0xae688=this[_0x2bf828(0x326)])!=null&&_0xae688['enableSingleActiveInstanceLock'])){let _0x4a5fa2=_0x3d581e['findIndex'](([_0x5a7559])=>_0x5a7559===C);_0x4a5fa2!==-0x1&&_0x3d581e[_0x2bf828(0x4bc)](_0x4a5fa2,0x1);}(0x0,t[_0x2bf828(0x350)])(this[_0x2bf828(0x400)],_0x3d581e);}[_0x47c516(0x2fe)](){const _0x548e8b=_0x47c516;var _0x1ad70a,_0x2d3c34;if(this[_0x548e8b(0x400)][_0x548e8b(0x1fa)](l[_0x548e8b(0x45b)])[_0x548e8b(0x53c)]({'priority':0x14,'interceptor':(0x0,l[_0x548e8b(0x232)])({'maxParallel':0x6})}),!((_0x1ad70a=this['_config'])!=null&&_0x1ad70a[_0x548e8b(0x241)])){var _0x235586;(_0x235586=this[_0x548e8b(0x400)][_0x548e8b(0x1fa)](x,t[_0x548e8b(0x2c9)][_0x548e8b(0x442)]))==null||_0x235586['disableLocalCache']();}(_0x2d3c34=this[_0x548e8b(0x326)])!=null&&_0x2d3c34['enableAuthServer']&&(0x0,t[_0x548e8b(0x2f0)])(this[_0x548e8b(0x400)],[[W]]),(0x0,t[_0x548e8b(0x2f0)])(this[_0x548e8b(0x400)],[[K],[H],[X]]);}};g($,_0x47c516(0x2d1),_0x47c516(0x324)),g($,_0x47c516(0x358),$e),g($,_0x47c516(0x276),et),$=y([(0x0,t[_0x47c516(0x438)])(u[_0x47c516(0x4db)],l[_0x47c516(0x2b8)],e[_0x47c516(0x536)]),v(0x1,t[_0x47c516(0x4e0)]),v(0x2,(0x0,t[_0x47c516(0x528)])(t['Injector'])),v(0x3,t[_0x47c516(0x2ae)])],$),Object[_0x47c516(0x202)](exports,_0x47c516(0x385),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x4a3),{'enumerable':!0x0,'get':function(){return k;}}),Object['defineProperty'](exports,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x511),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x3f1),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x47c516(0x26d)]=m,Object[_0x47c516(0x202)](exports,_0x47c516(0x311),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x255),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x371),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x463),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x4b7),{'enumerable':!0x0,'get':function(){return ve;}}),Object[_0x47c516(0x202)](exports,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x2c6),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x47c516(0x224)]=Be,exports[_0x47c516(0x2c0)]=ie,exports[_0x47c516(0x483)]=_,Object['defineProperty'](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x47c516(0x489)]=ae,Object[_0x47c516(0x202)](exports,_0x47c516(0x4c6),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x47c516(0x4f8)]=_0x47c516(0x215),exports[_0x47c516(0x4de)]=_0x47c516(0x3a7),exports[_0x47c516(0x301)]='/universer-api/user/session-ticket',Object[_0x47c516(0x202)](exports,_0x47c516(0x225),{'enumerable':!0x0,'get':function(){return q;}}),Object['defineProperty'](exports,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x47c516(0x202)](exports,'FetchingMissState',{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x47c516(0x3f5)]=_0x47c516(0x418),exports[_0x47c516(0x3d7)]=_0x47c516(0x540),exports[_0x47c516(0x25c)]=nt,exports[_0x47c516(0x2a5)]=Xe,exports[_0x47c516(0x461)]=qe,exports[_0x47c516(0x262)]=x,exports[_0x47c516(0x33c)]=We,exports['ISingleActiveUnitService']=C,exports[_0x47c516(0x29d)]=0x3e8,exports[_0x47c516(0x26e)]='LOCAL_CACHE_INTERVAL',Object[_0x47c516(0x202)](exports,_0x47c516(0x376),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x471),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x1f6),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x47c516(0x202)](exports,'PdfCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x4a8),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x47c516(0x4fe)]=_0x47c516(0x2e8),exports[_0x47c516(0x42a)]=_0x47c516(0x31e),exports[_0x47c516(0x36e)]=ge,Object['defineProperty'](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x319),{'enumerable':!0x0,'get':function(){return S;}}),Object['defineProperty'](exports,_0x47c516(0x29e),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x3c1),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return D;}}),exports[_0x47c516(0x444)]=xe,Object[_0x47c516(0x202)](exports,_0x47c516(0x3e3),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports[_0x47c516(0x51e)]=Ge,exports[_0x47c516(0x3f4)]=ye,exports[_0x47c516(0x406)]=Ke;
1
+ const _0x28bbb9=_0x53d0;(function(_0x595e4b,_0x280e2d){const _0x46e188=_0x53d0,_0x5aa3db=_0x595e4b();while(!![]){try{const _0x133258=parseInt(_0x46e188(0x45d))/0x1*(-parseInt(_0x46e188(0x2ce))/0x2)+parseInt(_0x46e188(0x416))/0x3*(-parseInt(_0x46e188(0x42c))/0x4)+parseInt(_0x46e188(0x1fc))/0x5*(-parseInt(_0x46e188(0x2a7))/0x6)+-parseInt(_0x46e188(0x4f2))/0x7+parseInt(_0x46e188(0x3be))/0x8+-parseInt(_0x46e188(0x25d))/0x9*(parseInt(_0x46e188(0x4af))/0xa)+parseInt(_0x46e188(0x4c8))/0xb;if(_0x133258===_0x280e2d)break;else _0x5aa3db['push'](_0x5aa3db['shift']());}catch(_0x57c9c6){_0x5aa3db['push'](_0x5aa3db['shift']());}}}(_0x1757,0xf26c5),Object['defineProperty'](exports,Symbol[_0x28bbb9(0x315)],{'value':'Module'}));let e=require('@univerjs/network'),t=require('rxjs'),n=require('@univerjs-pro/collaboration'),r=require('@univerjs/core'),i=require('@univerjs/docs'),a=require('@univerjs/sheets'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),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',h={};function g(_0x1ccc31){'@babel/helpers - typeof';const _0x193dcf=_0x28bbb9;return g=typeof Symbol==_0x193dcf(0x258)&&typeof Symbol['iterator']==_0x193dcf(0x302)?function(_0x13f3a7){return typeof _0x13f3a7;}:function(_0x8e196){const _0x18c4e8=_0x193dcf;return _0x8e196&&typeof Symbol==_0x18c4e8(0x258)&&_0x8e196[_0x18c4e8(0x274)]===Symbol&&_0x8e196!==Symbol['prototype']?_0x18c4e8(0x302):typeof _0x8e196;},g(_0x1ccc31);}function ee(_0x9dc7ec,_0x2a6f7d){const _0x49b740=_0x28bbb9;if(g(_0x9dc7ec)!=_0x49b740(0x25b)||!_0x9dc7ec)return _0x9dc7ec;var _0xd2bae4=_0x9dc7ec[Symbol[_0x49b740(0x2d0)]];if(_0xd2bae4!==void 0x0){var _0x417900=_0xd2bae4['call'](_0x9dc7ec,_0x2a6f7d||'default');if(g(_0x417900)!=_0x49b740(0x25b))return _0x417900;throw TypeError(_0x49b740(0x205));}return(_0x2a6f7d===_0x49b740(0x2d4)?String:Number)(_0x9dc7ec);}function te(_0x256c48){const _0x49f750=_0x28bbb9;var _0x39add3=ee(_0x256c48,_0x49f750(0x2d4));return g(_0x39add3)==_0x49f750(0x302)?_0x39add3:_0x39add3+'';}function _(_0x296558,_0x4b7012,_0x41a371){const _0x4ea6dc=_0x28bbb9;return(_0x4b7012=te(_0x4b7012))in _0x296558?Object[_0x4ea6dc(0x41f)](_0x296558,_0x4b7012,{'value':_0x41a371,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x296558[_0x4b7012]=_0x41a371,_0x296558;}var ne=class{constructor(_0x1ce8a5,_0x2596b7,_0xe9bdcd={}){const _0x319a36=_0x28bbb9;this['_send']=_0x2596b7,this[_0x319a36(0x261)]=_0xe9bdcd,_(this,'_attempt',0x0),_(this,'_firstSentAt',void 0x0),_(this,_0x319a36(0x201),void 0x0),_(this,'_maxAckTimeout',void 0x0),_(this,_0x319a36(0x1c4),0x0),_(this,_0x319a36(0x44f),0x0),_(this,_0x319a36(0x510),null),_(this,_0x319a36(0x4ee),null),_(this,_0x319a36(0x48a),null),_(this,_0x319a36(0x247),0x0),_(this,_0x319a36(0x1c7),!0x1),_(this,_0x319a36(0x2a2),void 0x0),_(this,_0x319a36(0x255),void 0x0),this[_0x319a36(0x255)]=_0x1ce8a5,this[_0x319a36(0x201)]=_0xe9bdcd['ackTimeout']??0x4e20,this[_0x319a36(0x4cc)]=Math[_0x319a36(0x3fc)](_0xe9bdcd[_0x319a36(0x4ca)]??0x1d4c0,this[_0x319a36(0x201)]),this[_0x319a36(0x2a2)]=_0xe9bdcd[_0x319a36(0x4a3)]??(()=>Date[_0x319a36(0x4a3)]()),this[_0x319a36(0x4c4)]=this[_0x319a36(0x2a2)]();}get['reqId'](){const _0x27511b=_0x28bbb9;return this[_0x27511b(0x255)];}get[_0x28bbb9(0x543)](){const _0x3e9d36=_0x28bbb9;return this[_0x3e9d36(0x439)];}get[_0x28bbb9(0x4f0)](){const _0x24f7e2=_0x28bbb9;return this[_0x24f7e2(0x44f)];}get[_0x28bbb9(0x51a)](){const _0x51a368=_0x28bbb9;return this[_0x51a368(0x2a2)]()-this[_0x51a368(0x4c4)];}[_0x28bbb9(0x260)](_0x4517a2){const _0x1434e5=_0x28bbb9;if(this[_0x1434e5(0x1c7)])return;this['_source']=_0x4517a2;let _0xcaa421=this[_0x1434e5(0x4ee)];_0xcaa421&&(this[_0x1434e5(0x4ee)]=null,this[_0x1434e5(0x2ed)](_0xcaa421));}[_0x28bbb9(0x3ef)](){const _0x35a47d=_0x28bbb9;this[_0x35a47d(0x48a)]=null;}[_0x28bbb9(0x1c1)](_0x12c0c5,_0x1cd681,_0x52f27f){const _0x16cabd=_0x28bbb9;this[_0x16cabd(0x1c7)]||(_0x52f27f&&this[_0x16cabd(0x53f)](_0x52f27f),this['armAckTimeout'](),this[_0x16cabd(0x470)](_0x12c0c5),this['_reqId']=_0x12c0c5[_0x16cabd(0x4cd)]??this['_reqId'],_0x52f27f&&this[_0x16cabd(0x451)](_0x52f27f,_0x1cd681));}[_0x28bbb9(0x25e)](){const _0x713283=_0x28bbb9;this['_schedule'](this['_ackTimeout'],_0x713283(0x23f));}['requestRetry'](){const _0x300c1d=_0x28bbb9;this[_0x300c1d(0x3d2)](this['_retryBackoff'],'should_retry');}[_0x28bbb9(0x3ac)](){const _0x39da6d=_0x28bbb9;this[_0x39da6d(0x1c7)]=!0x0,this[_0x39da6d(0x3d4)](),this[_0x39da6d(0x48a)]=null,this[_0x39da6d(0x4ee)]=null;}[_0x28bbb9(0x470)](_0x181324){const _0x5d67a1=_0x28bbb9;let _0x289cba=++this[_0x5d67a1(0x247)],_0x406055;try{_0x406055=this[_0x5d67a1(0x31a)](_0x181324,{'timeout':this['_ackTimeout']});}catch(_0x3ff000){this[_0x5d67a1(0x259)](_0x289cba,_0x3ff000);return;}_0x406055 instanceof Promise&&_0x406055[_0x5d67a1(0x4a4)](_0x5ad0b3=>this[_0x5d67a1(0x259)](_0x289cba,_0x5ad0b3));}[_0x28bbb9(0x259)](_0x164a1d,_0x50c847){const _0x147c03=_0x28bbb9;if(this[_0x147c03(0x1c7)]||_0x164a1d!==this[_0x147c03(0x247)])return;let _0x2f5981=re(_0x50c847,this[_0x147c03(0x1c4)]);_0x2f5981!==null&&this[_0x147c03(0x3d2)](_0x2f5981,_0x147c03(0x27e));}['_schedule'](_0x14b52a,_0xf8330d){const _0x5e4230=_0x28bbb9;this[_0x5e4230(0x1c7)]||(this[_0x5e4230(0x3d4)](),this[_0x5e4230(0x4ee)]=null,this[_0x5e4230(0x44f)]=_0x14b52a,this[_0x5e4230(0x510)]=setTimeout(()=>{const _0x43afd7=_0x5e4230;this[_0x43afd7(0x510)]=null,this['_source']?this[_0x43afd7(0x2ed)](_0xf8330d):this[_0x43afd7(0x4ee)]=_0xf8330d;},_0x14b52a));}[_0x28bbb9(0x2ed)](_0xb0c1d3){const _0xd32630=_0x28bbb9;let _0x5f2f53=this['_source'];if(!_0x5f2f53||this[_0xd32630(0x1c7)])return;let {changeset:_0x54a2b5,unsyncedMutationCount:_0x4fdc76}=_0x5f2f53();this[_0xd32630(0x53f)](_0xb0c1d3),this[_0xd32630(0x25e)](),this[_0xd32630(0x470)](_0x54a2b5),this[_0xd32630(0x255)]=_0x54a2b5[_0xd32630(0x4cd)]??this[_0xd32630(0x255)],this['_notifyResend'](_0xb0c1d3,_0x4fdc76);}[_0x28bbb9(0x53f)](_0x340792){const _0x3f3b03=_0x28bbb9;this[_0x3f3b03(0x439)]+=0x1,_0x340792==='should_retry'||_0x340792===_0x3f3b03(0x27e)?this[_0x3f3b03(0x1c4)]=this['_retryBackoff']===0x0?0x3e8:Math[_0x3f3b03(0x492)](this[_0x3f3b03(0x1c4)]*0x2,0x4e20):_0x340792===_0x3f3b03(0x23f)&&(this['_ackTimeout']=Math[_0x3f3b03(0x492)](this[_0x3f3b03(0x201)]*0x2,this[_0x3f3b03(0x4cc)]));}['_notifyResend'](_0x3c175a,_0x3d2cb3){const _0x354118=_0x28bbb9;var _0x5f4cc7,_0x448dd7;this[_0x354118(0x1c7)]||(_0x5f4cc7=(_0x448dd7=this[_0x354118(0x261)])[_0x354118(0x526)])==null||_0x5f4cc7[_0x354118(0x446)](_0x448dd7,{'reqId':this[_0x354118(0x255)],'reason':_0x3c175a,'attempt':this['_attempt'],'elapsedMs':this[_0x354118(0x51a)],'unsyncedMutationCount':_0x3d2cb3,'nextDelayMs':this['_ackTimeout']});}['_clearTimer'](){const _0x57958c=_0x28bbb9;this[_0x57958c(0x510)]!=null&&(clearTimeout(this[_0x57958c(0x510)]),this[_0x57958c(0x510)]=null);}};function re(_0x3abeb6,_0x5624ea){const _0x2c8002=_0x28bbb9;if(_0x3abeb6 instanceof t[_0x2c8002(0x4bc)])return null;if(_0x3abeb6 instanceof e['HTTPResponseError']){let _0x501ec1=_0x3abeb6[_0x2c8002(0x290)]??0x0;return _0x501ec1===0x0||_0x501ec1===0x198||_0x501ec1===0x1ad||_0x501ec1>=0x1f4?Math[_0x2c8002(0x3fc)](_0x5624ea,ie(_0x3abeb6)):null;}return _0x5624ea;}function ie(_0x14f364){const _0x33a044=_0x28bbb9;var _0x31bb9e;let _0x3c9446=(_0x31bb9e=_0x14f364[_0x33a044(0x1bd)])==null||(_0x31bb9e=_0x31bb9e['get']('retry-after'))==null?void 0x0:_0x31bb9e[0x0],_0x6eaed0=_0x3c9446===void 0x0?NaN:Number(_0x3c9446);return Number[_0x33a044(0x425)](_0x6eaed0)&&_0x6eaed0>0x0?_0x6eaed0*0x3e8:0x0;}function ae(_0x19bc83){const _0x5dff42=_0x28bbb9;return JSON[_0x5dff42(0x4d3)](_0x19bc83)[_0x5dff42(0x47a)];}let oe=function(_0x484f59){const _0x2e3d21=_0x28bbb9;return _0x484f59[_0x2e3d21(0x4da)]='OTHER_CLIENT_EDITING',_0x484f59['PERMISSION_DENIED']=_0x2e3d21(0x1d7),_0x484f59[_0x2e3d21(0x4b3)]=_0x2e3d21(0x4b3),_0x484f59[_0x2e3d21(0x503)]='CONFLICT_CACHE_CLEAR_FAILED',_0x484f59['CONFLICT']='CONFLICT',_0x484f59[_0x2e3d21(0x2f0)]=_0x2e3d21(0x2f0),_0x484f59['JOIN_ROOM_FAILED']=_0x2e3d21(0x353),_0x484f59['SOCKET_FAILED_RETRY']='SOCKET_FAILED_RETRY',_0x484f59[_0x2e3d21(0x46b)]='SOCKET_FAILED',_0x484f59[_0x2e3d21(0x20a)]=_0x2e3d21(0x20a),_0x484f59;}({});var v=class{constructor(){const _0x218013=_0x28bbb9;_(this,_0x218013(0x228),new t[(_0x218013(0x39a))]()),_(this,_0x218013(0x2f3),this[_0x218013(0x228)][_0x218013(0x32f)]());}['emitEvent'](_0x33a58e){this['_event$']['next'](_0x33a58e);}},se=class{constructor(){const _0x27ac54=_0x28bbb9;_(this,_0x27ac54(0x54d),new t[(_0x27ac54(0x39a))]()),_(this,_0x27ac54(0x224),this[_0x27ac54(0x54d)][_0x27ac54(0x32f)]());}['onCommentUpdate'](_0x37de6a){const _0x2c5971=_0x28bbb9;this[_0x2c5971(0x54d)]['next'](_0x37de6a);}};function y(_0x3d6b4a,_0x40849a){return function(_0x2a0a14,_0x5eb887){_0x40849a(_0x2a0a14,_0x5eb887,_0x3d6b4a);};}function b(_0x33dc08,_0x2dabac,_0x410ee0,_0x514fbf){const _0x521219=_0x28bbb9;var _0x25abde=arguments[_0x521219(0x47a)],_0x20b739=_0x25abde<0x3?_0x2dabac:_0x514fbf===null?_0x514fbf=Object[_0x521219(0x3f2)](_0x2dabac,_0x410ee0):_0x514fbf,_0x3eb2b6;if(typeof Reflect==_0x521219(0x25b)&&typeof Reflect['decorate']=='function')_0x20b739=Reflect[_0x521219(0x360)](_0x33dc08,_0x2dabac,_0x410ee0,_0x514fbf);else{for(var _0xa6da60=_0x33dc08[_0x521219(0x47a)]-0x1;_0xa6da60>=0x0;_0xa6da60--)(_0x3eb2b6=_0x33dc08[_0xa6da60])&&(_0x20b739=(_0x25abde<0x3?_0x3eb2b6(_0x20b739):_0x25abde>0x3?_0x3eb2b6(_0x2dabac,_0x410ee0,_0x20b739):_0x3eb2b6(_0x2dabac,_0x410ee0))||_0x20b739);}return _0x25abde>0x3&&_0x20b739&&Object[_0x521219(0x41f)](_0x2dabac,_0x410ee0,_0x20b739),_0x20b739;}let x=class extends r[_0x28bbb9(0x3ad)]{constructor(_0x5601b1){const _0x5ab4c3=_0x28bbb9;super(),this[_0x5ab4c3(0x4b7)]=_0x5601b1,_(this,_0x5ab4c3(0x2b0),new Map()),_(this,_0x5ab4c3(0x27d),new t[(_0x5ab4c3(0x39a))]()),this[_0x5ab4c3(0x457)]((0x0,t[_0x5ab4c3(0x3e1)])(this[_0x5ab4c3(0x4b7)][_0x5ab4c3(0x3ce)](r['UniverInstanceType'][_0x5ab4c3(0x486)])[_0x5ab4c3(0x213)]((0x0,c[_0x5ab4c3(0x485)])(_0x4196d4=>_0x4196d4[_0x5ab4c3(0x3e7)]())),this[_0x5ab4c3(0x4b7)]['getTypeOfUnitDisposed$'](r[_0x5ab4c3(0x24b)][_0x5ab4c3(0x297)])[_0x5ab4c3(0x213)]((0x0,c['map'])(_0x1b30bf=>_0x1b30bf[_0x5ab4c3(0x3e7)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](r[_0x5ab4c3(0x24b)]['UNIVER_BOARD'])['pipe']((0x0,c[_0x5ab4c3(0x485)])(_0x3e2cee=>_0x3e2cee[_0x5ab4c3(0x3e7)]())),this[_0x5ab4c3(0x4b7)][_0x5ab4c3(0x3ce)](r[_0x5ab4c3(0x24b)][_0x5ab4c3(0x3bb)])[_0x5ab4c3(0x213)]((0x0,c[_0x5ab4c3(0x485)])(_0x306803=>_0x306803[_0x5ab4c3(0x3e7)]())))['subscribe'](_0x3a3fc1=>this[_0x5ab4c3(0x568)](_0x3a3fc1)));}[_0x28bbb9(0x52c)](_0x403f7d){const _0x540622=_0x28bbb9;return this[_0x540622(0x2b0)][_0x540622(0x546)](_0x403f7d)?(0x0,t['of'])(this['_roomMembers']['get'](_0x403f7d)):this[_0x540622(0x27d)][_0x540622(0x213)]((0x0,c[_0x540622(0x485)])(_0x5efc94=>{const _0x545475=_0x540622;if(_0x5efc94===_0x403f7d)return this['_roomMembers'][_0x545475(0x285)](_0x5efc94);}));}['updateMember'](_0x2f3c2a,_0x55042a){const _0x30992b=_0x28bbb9;let _0x3261f8=this[_0x30992b(0x2b0)][_0x30992b(0x285)](_0x2f3c2a);_0x3261f8||(_0x3261f8=new ce(),this[_0x30992b(0x2b0)][_0x30992b(0x36a)](_0x2f3c2a,_0x3261f8),this['_roomCreated$'][_0x30992b(0x512)](_0x2f3c2a)),_0x3261f8[_0x30992b(0x434)](_0x55042a);}[_0x28bbb9(0x1d1)](_0x2c98f7,_0x556961){const _0x145000=_0x28bbb9;let _0x79b7d2=this[_0x145000(0x2b0)][_0x145000(0x285)](_0x2c98f7);_0x79b7d2&&_0x79b7d2[_0x145000(0x1d1)](_0x556961);}[_0x28bbb9(0x2f9)](_0x37c7ad){const _0xc895b3=_0x28bbb9;return this['_roomMembers'][_0xc895b3(0x285)](_0x37c7ad);}[_0x28bbb9(0x262)](_0x3b076f,_0x2fdfa7){const _0x2f6abc=_0x28bbb9;let _0x856721=this[_0x2f6abc(0x2b0)][_0x2f6abc(0x285)](_0x3b076f);if(_0x856721)return _0x856721[_0x2f6abc(0x262)](_0x2fdfa7);}[_0x28bbb9(0x568)](_0x41d259){const _0x556706=_0x28bbb9;let _0xe79f89=this[_0x556706(0x2b0)]['get'](_0x41d259);_0xe79f89&&(_0xe79f89[_0x556706(0x3ac)](),this['_roomMembers']['delete'](_0x41d259));}['dispose'](){const _0x204d50=_0x28bbb9;this[_0x204d50(0x2b0)]['forEach'](_0x1a030b=>_0x1a030b[_0x204d50(0x3ac)]()),this['_roomMembers']['clear'](),this[_0x204d50(0x27d)][_0x204d50(0x30f)]();}};x=b([y(0x0,r[_0x28bbb9(0x51c)])],x);var ce=class extends r[_0x28bbb9(0x3ad)]{constructor(..._0x5c4d20){const _0x18f845=_0x28bbb9;super(..._0x5c4d20),_(this,_0x18f845(0x30d),new Map()),_(this,_0x18f845(0x2e5),new t[(_0x18f845(0x45f))](this[_0x18f845(0x30d)])),_(this,_0x18f845(0x441),this['_members$'][_0x18f845(0x32f)]());}[_0x28bbb9(0x3ac)](){const _0x54d3b5=_0x28bbb9;this[_0x54d3b5(0x30d)][_0x54d3b5(0x311)](),this[_0x54d3b5(0x2e5)]['complete']();}['updateMember'](_0x1b77ba){const _0x2f2274=_0x28bbb9;this[_0x2f2274(0x30d)][_0x2f2274(0x36a)](_0x1b77ba[_0x2f2274(0x362)],_0x1b77ba),this[_0x2f2274(0x1d2)]();}[_0x28bbb9(0x1d1)](_0x538894){const _0x43929b=_0x28bbb9;this[_0x43929b(0x30d)][_0x43929b(0x551)](_0x538894),this[_0x43929b(0x1d2)]();}[_0x28bbb9(0x262)](_0x584756){const _0x4762ae=_0x28bbb9;return this[_0x4762ae(0x30d)][_0x4762ae(0x285)](_0x584756);}[_0x28bbb9(0x393)](){const _0x3782f5=_0x28bbb9;return Array[_0x3782f5(0x3f8)](this[_0x3782f5(0x30d)]['values']());}[_0x28bbb9(0x1d2)](){this['_members$']['next'](this['_members']);}};function le(_0x6b064c,_0x20f2ca){const _0x587b16=_0x28bbb9;if(de(_0x6b064c))return _0x20f2ca;if(_0x20f2ca[_0x587b16(0x2ff)]===n[_0x587b16(0x33f)][_0x587b16(0x296)]){let _0x4bb809=ge(_0x6b064c),_0x1f7e0b=_0x20f2ca;return{..._0x1f7e0b,'data':{..._0x1f7e0b[_0x587b16(0x350)],'unitID':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x212)],'unitType':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x3da)]??_0x1f7e0b['data'][_0x587b16(0x3da)],'changeset':_0x4bb809[_0x587b16(0x407)](_0x1f7e0b['data'][_0x587b16(0x2d9)],_e(_0x6b064c))}};}if(_0x20f2ca[_0x587b16(0x2ff)]===n[_0x587b16(0x33f)]['FETCH_MISSING']){let _0x2db5ec=_0x20f2ca;return{..._0x2db5ec,'data':{..._0x2db5ec[_0x587b16(0x350)],'unitID':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x212)],'unitType':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x3da)]??_0x2db5ec[_0x587b16(0x350)][_0x587b16(0x3da)]}};}return _0x20f2ca;}function ue(_0x5f5ced,_0x437dfc){const _0x4310ad=_0x28bbb9;if(de(_0x5f5ced))return[_0x437dfc];switch(_0x437dfc[_0x4310ad(0x2ff)]){case n[_0x4310ad(0x33f)][_0x4310ad(0x49b)]:return[fe(_0x5f5ced,_0x437dfc)];case n[_0x4310ad(0x33f)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x5f5ced,_0x437dfc)];case n[_0x4310ad(0x33f)][_0x4310ad(0x422)]:return[pe(_0x5f5ced,_0x437dfc)];default:return[_0x437dfc];}}function de(_0x2093da){const _0x32f645=_0x28bbb9;return _0x2093da['target'][_0x32f645(0x1e4)]==null&&_0x2093da[_0x32f645(0x29d)][_0x32f645(0x212)]===_0x2093da[_0x32f645(0x4f9)]&&!_0x2093da[_0x32f645(0x2d9)];}function fe(_0x19cf3e,_0x4dabf3){const _0x3b2dc4=_0x28bbb9;return{..._0x4dabf3,'data':(0x0,n[_0x3b2dc4(0x50d)])(he(_0x19cf3e,(0x0,n[_0x3b2dc4(0x4e4)])(_0x4dabf3[_0x3b2dc4(0x350)])))};}function pe(_0x5b2733,_0x43ac4d){const _0x434554=_0x28bbb9;return{..._0x43ac4d,'data':he(_0x5b2733,_0x43ac4d[_0x434554(0x350)])};}function me(_0x1878a1,_0x4057bd){const _0x522930=_0x28bbb9;let _0x533b0a=_0x4057bd[_0x522930(0x350)];return{..._0x4057bd,'data':{..._0x533b0a,'changesets':_0x533b0a[_0x522930(0x509)][_0x522930(0x485)](_0x4a6660=>(0x0,n['parseChangesetToProtocol'])(he(_0x1878a1,(0x0,n[_0x522930(0x4e4)])(_0x4a6660))))}};}function he(_0x53acd4,_0x6c88cb){const _0xa9f688=_0x28bbb9;return ge(_0x53acd4)[_0xa9f688(0x231)](_0x6c88cb,_e(_0x53acd4));}function ge(_0x324662){const _0x5360ed=_0x28bbb9;if(!_0x324662['changeset'])throw Error(_0x5360ed(0x3f6));return _0x324662[_0x5360ed(0x2d9)];}function _e(_0x4a70c7){const _0x4dfc29=_0x28bbb9;return{'localUnitId':_0x4a70c7[_0x4dfc29(0x4f9)],'unitType':_0x4a70c7[_0x4dfc29(0x3da)],'target':_0x4a70c7[_0x4dfc29(0x29d)]};}let ve=function(_0x369069){const _0x1ecc87=_0x28bbb9;return _0x369069[_0x369069[_0x1ecc87(0x237)]=0x0]=_0x1ecc87(0x237),_0x369069[_0x369069[_0x1ecc87(0x4f1)]=0x1]=_0x1ecc87(0x4f1),_0x369069[_0x369069[_0x1ecc87(0x35a)]=0x2]=_0x1ecc87(0x35a),_0x369069[_0x369069['ONLINE']=0x3]='ONLINE',_0x369069;}({});const ye={[o[_0x28bbb9(0x2e7)][_0x28bbb9(0x316)]]:'session.join-failed',[o['CmdRspCode']['JOIN_ROOM_FULL']]:_0x28bbb9(0x1e5),[o[_0x28bbb9(0x2e7)]['JOIN_ROOM_NOT_EXISTS']]:_0x28bbb9(0x4e0),[o[_0x28bbb9(0x2e7)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x28bbb9(0x26e),[o[_0x28bbb9(0x2e7)][_0x28bbb9(0x44e)]]:_0x28bbb9(0x437)};let S=class extends r[_0x28bbb9(0x22c)]{get['sessionStatus'](){const _0x1ee7d1=_0x28bbb9;return this[_0x1ee7d1(0x537)]['getValue']();}constructor(_0x250ecd,_0x3e5de1,_0x3a2b56,_0x173abb,_0x390966,_0x2544f1,_0x5aa390){const _0x2a9a41=_0x28bbb9;super(),this[_0x2a9a41(0x399)]=_0x250ecd,this[_0x2a9a41(0x41e)]=_0x3a2b56,this[_0x2a9a41(0x334)]=_0x173abb,this['_commentService']=_0x390966,this[_0x2a9a41(0x3b5)]=_0x2544f1,this['_telemetryService']=_0x5aa390,_(this,'_sessionStatus$',new t[(_0x2a9a41(0x45f))](0x0)),_(this,_0x2a9a41(0x3f5),this[_0x2a9a41(0x537)]['asObservable']()),_(this,_0x2a9a41(0x228),new t[(_0x2a9a41(0x39a))]()),_(this,_0x2a9a41(0x2f3),this['_event$']['asObservable']()),_(this,_0x2a9a41(0x308),void 0x0),_(this,_0x2a9a41(0x37e),void 0x0),_(this,_0x2a9a41(0x2ee),!0x1),_(this,_0x2a9a41(0x508),null),this[_0x2a9a41(0x2ee)]=!!this[_0x2a9a41(0x553)],_0x3e5de1[_0x2a9a41(0x213)]((0x0,t[_0x2a9a41(0x418)])(this[_0x2a9a41(0x55d)]))[_0x2a9a41(0x264)](_0x5dd4f5=>{const _0x182b23=_0x2a9a41;if(_0x5dd4f5!==void 0x0){if(this[_0x182b23(0x308)]=_0x5dd4f5,_0x5dd4f5)this[_0x182b23(0x514)](_0x5dd4f5),this['_socketMessageSubscription']=_0x5dd4f5[_0x182b23(0x3fa)][_0x182b23(0x264)](_0xcbe643=>{const _0x5880d6=_0x182b23;_0xcbe643[_0x5880d6(0x1e3)]===this[_0x5880d6(0x399)][_0x5880d6(0x29d)][_0x5880d6(0x212)]&&this[_0x5880d6(0x4a6)](_0xcbe643);});else{var _0x477c32;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x182b23(0x537)][_0x182b23(0x512)](0x2),(_0x477c32=this[_0x182b23(0x37e)])==null||_0x477c32[_0x182b23(0x3c7)](),this[_0x182b23(0x37e)]=null;}}});}[_0x28bbb9(0x268)](){const _0x234d90=_0x28bbb9;var _0x161b51;return((_0x161b51=this[_0x234d90(0x308)])==null?void 0x0:_0x161b51[_0x234d90(0x362)])??null;}[_0x28bbb9(0x3ac)](){const _0x1825c5=_0x28bbb9;super[_0x1825c5(0x3ac)](),this[_0x1825c5(0x326)](),this[_0x1825c5(0x55d)][_0x1825c5(0x512)](),this['dispose$']['complete']();}[_0x28bbb9(0x326)](){const _0x5aacad=_0x28bbb9;var _0x125e2f;this[_0x5aacad(0x39e)](),(_0x125e2f=this[_0x5aacad(0x308)])==null||_0x125e2f[_0x5aacad(0x1d8)]({'cmd':o[_0x5aacad(0x291)]['LEAVE'],'data':{'roomID':this['_identity'][_0x5aacad(0x29d)]['unitId']}}),this[_0x5aacad(0x228)][_0x5aacad(0x30f)](),this[_0x5aacad(0x537)][_0x5aacad(0x30f)]();}[_0x28bbb9(0x4a6)](_0x399e34){const _0x497f6e=_0x28bbb9;_0x399e34[_0x497f6e(0x329)]===o[_0x497f6e(0x291)]['JOIN']?this[_0x497f6e(0x1f9)](_0x399e34):_0x399e34[_0x497f6e(0x329)]===o[_0x497f6e(0x291)][_0x497f6e(0x540)]&&this[_0x497f6e(0x272)](_0x399e34);}[_0x28bbb9(0x514)](_0x12ed63){const _0x1e273d=_0x28bbb9;this[_0x1e273d(0x537)]['next'](0x1),_0x12ed63['send']({'cmd':o['CombCmd'][_0x1e273d(0x21f)],'routeKey':this['_identity'][_0x1e273d(0x29d)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x1e273d(0x399)][_0x1e273d(0x29d)]['unitId']}]}});}[_0x28bbb9(0x1f9)](_0x5cd57d){const _0x3f4411=_0x28bbb9;var _0x391949;if(_0x5cd57d[_0x3f4411(0x4d2)]in ye){this[_0x3f4411(0x3b5)][_0x3f4411(0x40c)]({'id':_0x3f4411(0x353),'data':ye[_0x5cd57d[_0x3f4411(0x4d2)]]}),this['_sessionStatus$'][_0x3f4411(0x512)](0x2);return;}this[_0x3f4411(0x537)]['next'](0x3);let _0x4401e7=(_0x391949=_0x5cd57d[_0x3f4411(0x350)][_0x3f4411(0x204)][this['_identity']['target'][_0x3f4411(0x212)]])==null?void 0x0:_0x391949[_0x3f4411(0x2c6)];_0x4401e7&&_0x4401e7[_0x3f4411(0x3e9)](_0xfbf782=>this[_0x3f4411(0x334)]['updateMember'](this[_0x3f4411(0x399)]['localUnitId'],_0xfbf782));}[_0x28bbb9(0x272)](_0x5ac1db){const _0x18da65=_0x28bbb9;try{let _0x488d7e=ue(this['_identity'],_0x5ac1db[_0x18da65(0x350)]);for(let _0x2778df of _0x488d7e)switch(_0x2778df['eventID']){case n['CollaborationEvent'][_0x18da65(0x313)]:this[_0x18da65(0x330)](_0x2778df),this[_0x18da65(0x228)]['next'](_0x2778df);break;case n['CollaborationEvent'][_0x18da65(0x3e8)]:this['_onUserLeave'](_0x2778df),this[_0x18da65(0x228)][_0x18da65(0x512)](_0x2778df);break;case n[_0x18da65(0x33f)][_0x18da65(0x31f)]:case n[_0x18da65(0x33f)][_0x18da65(0x422)]:this[_0x18da65(0x3dc)](),this[_0x18da65(0x228)][_0x18da65(0x512)](_0x2778df);break;case n[_0x18da65(0x33f)][_0x18da65(0x346)]:this[_0x18da65(0x41e)][_0x18da65(0x456)](_0x18da65(0x4c7)+JSON['stringify'](_0x2778df)),this[_0x18da65(0x228)][_0x18da65(0x512)](_0x2778df);break;case n[_0x18da65(0x33f)][_0x18da65(0x43c)]:this[_0x18da65(0x1cb)]['onCommentUpdate'](_0x2778df[_0x18da65(0x350)]),this['_event$'][_0x18da65(0x512)](_0x2778df);break;default:this['_event$'][_0x18da65(0x512)](_0x2778df);}}catch(_0x2815f4){this['_logService'][_0x18da65(0x456)](_0x2815f4,_0x5ac1db);}}[_0x28bbb9(0x330)](_0x1ed8aa){const _0x46cab2=_0x28bbb9;this['_memberService'][_0x46cab2(0x434)](this[_0x46cab2(0x399)][_0x46cab2(0x4f9)],_0x1ed8aa['data']);}['_onUserLeave'](_0x3ef6b8){const _0x387077=_0x28bbb9;this['_memberService']['removeMember'](this[_0x387077(0x399)][_0x387077(0x4f9)],_0x3ef6b8['data'][_0x387077(0x362)]);}async[_0x28bbb9(0x1d8)](_0x12194b,_0xc749be,_0x51e855){const _0x5a5fec=_0x28bbb9;if(this[_0x5a5fec(0x3a8)]!==0x3||!this['_socket'])throw Error(_0x5a5fec(0x414));try{let _0x1e4a69=le(this[_0x5a5fec(0x399)],_0x12194b);_0x1e4a69[_0x5a5fec(0x2ff)]===n['CollaborationEvent']['SUBMIT_CHANGESET']&&this[_0x5a5fec(0x467)](_0x1e4a69);let _0x15f29e={'cmd':o[_0x5a5fec(0x291)][_0x5a5fec(0x31c)],'routeKey':this['_identity'][_0x5a5fec(0x29d)]['unitId'],'routeType':'','data':_0x1e4a69};return _0x51e855===void 0x0?this['_socket'][_0x5a5fec(0x1d8)](_0x15f29e):this[_0x5a5fec(0x308)][_0x5a5fec(0x1d8)](_0x15f29e,_0x51e855);}catch(_0x2c6c04){this[_0x5a5fec(0x41e)]['error'](_0x2c6c04);}}[_0x28bbb9(0x467)](_0x1353de){const _0x208e3e=_0x28bbb9;if(!this[_0x208e3e(0x2ee)])return;let {data:_0x5156ae}=_0x1353de,{unitID:_0x419f7f,changeset:_0x460159}=_0x5156ae,{mutations:_0x453943,type:_0x33dde1}=_0x460159;this[_0x208e3e(0x508)]={'unitId':_0x419f7f,'type':_0x33dde1,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':ae(_0x453943)};}[_0x28bbb9(0x3dc)](){const _0x5c7082=_0x28bbb9;this[_0x5c7082(0x2ee)]&&(this[_0x5c7082(0x508)]?(this['_telemetryInfo']['stopTime']=performance['now'](),this[_0x5c7082(0x508)][_0x5c7082(0x211)]=this[_0x5c7082(0x508)][_0x5c7082(0x2c5)]-this[_0x5c7082(0x508)][_0x5c7082(0x53a)],this['_telemetryService'][_0x5c7082(0x4d1)](_0x5c7082(0x3bc),this[_0x5c7082(0x508)]),this[_0x5c7082(0x508)]=null):this[_0x5c7082(0x41e)]['error']('[CollaborationSession]',_0x5c7082(0x28f)));}['_throwTelemetryCollaborationNewChangeset'](){const _0x3dfaa1=_0x28bbb9;this[_0x3dfaa1(0x508)]=null;}};S=b([y(0x2,r[_0x28bbb9(0x369)]),y(0x3,(0x0,r[_0x28bbb9(0x431)])(x)),y(0x4,(0x0,r[_0x28bbb9(0x431)])(se)),y(0x5,(0x0,r['Inject'])(v)),y(0x6,(0x0,r[_0x28bbb9(0x1cd)])(s[_0x28bbb9(0x558)]))],S);const C=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x21d));function be(_0x505801,_0x3acce1){const _0x23b2ef=_0x28bbb9;return _0x3acce1===''||_0x3acce1==null?_0x23b2ef(0x1c3)+_0x505801:_0x23b2ef(0x1c3)+_0x505801+'-'+encodeURIComponent(_0x3acce1);}function xe(_0x23f990){const _0x530660=_0x28bbb9;let {unitID:_0x5e4ddb,mutations:_0xb801eb}=_0x23f990;return{'unitId':_0x5e4ddb,'subUnitId':_0xb801eb[_0x530660(0x47a)]>0x0?_0xb801eb[0x0][_0x530660(0x453)][_0x530660(0x3f9)]:null};}let w=class{constructor(_0x5aff56,_0x171c47,_0x15a562){const _0x3213ca=_0x28bbb9;this[_0x3213ca(0x475)]=_0x5aff56,this[_0x3213ca(0x1f2)]=_0x171c47,this[_0x3213ca(0x2db)]=_0x15a562;}[_0x28bbb9(0x2df)](_0x36d572){const _0x149e15=_0x28bbb9;var _0x52c233,_0x2d30ad;let _0x2679c3=this['_injector'][_0x149e15(0x285)](a['SheetsSelectionsService']),{unitId:_0x2ded11,subUnitId:_0x2e0eb2}=xe(_0x36d572),_0x1f2afe=_0x2679c3==null?void 0x0:_0x2679c3[_0x149e15(0x210)](_0x2ded11)['getCurrentSelections'](),_0x3c30ac=(_0x52c233=this['_instanceService'][_0x149e15(0x1e2)](_0x2ded11))==null||(_0x52c233=_0x52c233[_0x149e15(0x1db)]())==null?void 0x0:_0x52c233[_0x149e15(0x388)]();if(_0x1f2afe['length']===0x0||!_0x2ded11||!_0x2e0eb2)return;let _0x50e951=[{'id':a[_0x149e15(0x2a3)]['id'],'params':{'unitId':_0x2ded11,'subUnitId':_0x3c30ac,'selections':r[_0x149e15(0x4cf)][_0x149e15(0x417)](_0x1f2afe)}}],_0x88490a=this[_0x149e15(0x1f2)][_0x149e15(0x541)](_0x36d572,_0x50e951);if(!(0x0,n['isTransformMutationsWithChangesetSuccess'])(_0x88490a))throw _0x88490a[_0x149e15(0x456)];let _0x48bde5=(_0x2d30ad=_0x88490a[_0x149e15(0x3bd)][0x0])==null||(_0x2d30ad=_0x2d30ad['params'])==null?void 0x0:_0x2d30ad[_0x149e15(0x3c1)];if(Array[_0x149e15(0x2e8)](_0x48bde5)&&_0x48bde5[_0x149e15(0x47a)]){if(_0x48bde5['length']===_0x50e951[0x0][_0x149e15(0x453)][_0x149e15(0x3c1)][_0x149e15(0x47a)]&&_0x48bde5[_0x149e15(0x219)]((_0x1d1777,_0x1ac32b)=>r[_0x149e15(0x3e3)][_0x149e15(0x4c2)](_0x1d1777[_0x149e15(0x2ae)],_0x50e951[0x0]['params'][_0x149e15(0x3c1)][_0x1ac32b][_0x149e15(0x2ae)])))return;this[_0x149e15(0x475)]['get'](r[_0x149e15(0x382)])[_0x149e15(0x2bd)](a['SetSelectionsOperation']['id'],{'unitId':_0x2ded11,'subUnitId':_0x3c30ac,'selections':_0x48bde5});}}};w=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x1,n[_0x28bbb9(0x4fc)]),y(0x2,r['IUniverInstanceService'])],w);const T=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x3a6));let Se=function(_0x26309b){const _0x41638f=_0x28bbb9;return _0x26309b[_0x26309b['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x26309b[_0x26309b['OTHER_CLIENTS_EDITING']=0x1]=_0x41638f(0x2eb),_0x26309b;}({});function Ce(_0xd6c3f0){const _0x1fe896=_0x28bbb9;var _0x234dbd;return!!((_0x234dbd=_0xd6c3f0[_0x1fe896(0x453)])!=null&&_0x234dbd[_0x1fe896(0x236)]);}const we=new Set([a[_0x28bbb9(0x1c5)]['id']]),Te=new Set([l[_0x28bbb9(0x4bb)]['id'],l['EnsureSlideMasterPageMutation']['id'],l[_0x28bbb9(0x1ba)]['id'],l[_0x28bbb9(0x56b)]['id']]);function Ee(_0x5a6432,_0x59741e=we){const _0x3297c0=_0x28bbb9;let _0x2d78ae=[];for(let _0xdc67c6 of _0x5a6432){if(_0x59741e[_0x3297c0(0x546)](_0xdc67c6['id'])||Ce(_0xdc67c6)){if(_0x2d78ae[_0x3297c0(0x47a)]>0x0)break;_0x2d78ae[_0x3297c0(0x4ec)](_0xdc67c6);break;}_0x2d78ae[_0x3297c0(0x4ec)](_0xdc67c6);}return _0x2d78ae;}function E(_0x5211fa,_0x1b405e,_0x1a2654,_0x51dc10,_0x453d4f){const _0x4dc86b=_0x28bbb9;let _0x2ae2b8=Ee(_0x5211fa),_0x1c9e4c=_0x453d4f[_0x4dc86b(0x1f5)](),_0x482d42=(_0x1c9e4c==null?void 0x0:_0x1c9e4c['userID'])??_0x4dc86b(0x4e3),_0xe3ccbc=(_0x1c9e4c==null?void 0x0:_0x1c9e4c[_0x4dc86b(0x362)])??'unknown';return{'changeset':{'unitID':_0x1b405e,'type':(0x0,n[_0x4dc86b(0x38e)])(_0x1a2654['getUnitType'](_0x1b405e)),'baseRev':_0x51dc10[_0x4dc86b(0x1f3)](_0x1b405e),'revision':0x0,'userID':_0x482d42,'memberID':_0xe3ccbc,'mutations':_0x2ae2b8},'pendingMutations':_0x5211fa[_0x4dc86b(0x4e6)](_0x2ae2b8[_0x4dc86b(0x47a)])};}const De=E;function Oe(_0x2cd178,_0x248195,_0x46d0cc,_0x3c7785,_0x116244){const _0x272a82=_0x28bbb9;let _0x2a3715=Ee(_0x2cd178,Te),_0x45b761=_0x116244[_0x272a82(0x1f5)](),_0x278d77=(_0x45b761==null?void 0x0:_0x45b761[_0x272a82(0x47b)])??'unknown',_0x110319=(_0x45b761==null?void 0x0:_0x45b761['memberID'])??_0x272a82(0x4e3);return{'changeset':{'unitID':_0x248195,'type':(0x0,n[_0x272a82(0x38e)])(_0x46d0cc[_0x272a82(0x286)](_0x248195)),'baseRev':_0x3c7785['getCurrentRevOfUnit'](_0x248195),'revision':0x0,'userID':_0x278d77,'memberID':_0x110319,'mutations':_0x2a3715},'pendingMutations':_0x2cd178['slice'](_0x2a3715[_0x272a82(0x47a)])};}function ke(_0x19e2a7,_0x21f7b6,_0x45f9aa,_0x44cf4f,_0xd5ba42){const _0x1c5961=_0x28bbb9;let _0x19a2a8=_0x19e2a7[_0x1c5961(0x3b9)]((_0x8876e6,_0x50fe1f)=>{const _0x2398ec=_0x1c5961;let _0x3698ec=_0x8876e6[_0x8876e6[_0x2398ec(0x47a)]-0x1],{id:_0x2afa1a}=_0x3698ec??{},{id:_0x46e83b,type:_0x479d6f}=_0x50fe1f,_0x4486d8=_0x50fe1f[_0x2398ec(0x453)];if(_0x2afa1a&&_0x2afa1a!==_0x46e83b)throw Error(_0x2398ec(0x359)+_0x2afa1a+'\x20-\x20'+_0x46e83b+'.');if(!_0x3698ec)return[{'id':_0x46e83b,'type':_0x479d6f,'params':{'unitId':_0x4486d8[_0x2398ec(0x212)],'textRanges':_0x4486d8[_0x2398ec(0x41a)],'actions':_0x4486d8[_0x2398ec(0x3d1)]}}];let _0x227cf8=_0x3698ec[_0x2398ec(0x453)];return Ae(_0x227cf8,_0x4486d8)?[..._0x8876e6[_0x2398ec(0x4e6)](0x0,-0x1),{..._0x3698ec,'id':_0x46e83b,'type':_0x479d6f,'params':{'unitId':_0x4486d8['unitId'],'textRanges':_0x4486d8[_0x2398ec(0x41a)],'actions':r[_0x2398ec(0x413)]['compose'](_0x227cf8[_0x2398ec(0x3d1)],_0x4486d8[_0x2398ec(0x3d1)])}}]:[..._0x8876e6,{'id':_0x46e83b,'type':_0x479d6f,'params':{'unitId':_0x4486d8[_0x2398ec(0x212)],'textRanges':_0x4486d8['textRanges'],'actions':_0x4486d8[_0x2398ec(0x3d1)]}}];},[]),_0x168c56=_0xd5ba42['getCurrentUser'](),_0x453f00=(_0x168c56==null?void 0x0:_0x168c56[_0x1c5961(0x47b)])??'unknown',_0x1d042e=(_0x168c56==null?void 0x0:_0x168c56['memberID'])??_0x1c5961(0x4e3);return{'changeset':{'unitID':_0x21f7b6,'type':(0x0,n[_0x1c5961(0x38e)])(_0x45f9aa[_0x1c5961(0x286)](_0x21f7b6)),'baseRev':_0x44cf4f[_0x1c5961(0x1f3)](_0x21f7b6),'revision':0x0,'userID':_0x453f00,'memberID':_0x1d042e,'mutations':_0x19a2a8},'pendingMutations':_0x19e2a7['slice'](_0x19e2a7['length'])};}function Ae(_0x4df04a,_0x213c73){const _0x348c19=_0x28bbb9;return!je(_0x4df04a)&&!je(_0x213c73)&&Me(_0x4df04a[_0x348c19(0x3d1)],_0x213c73[_0x348c19(0x3d1)]);}function je(_0x5add37){return _0x5add37['isCompositionEnd']!==void 0x0;}function Me(_0x1b22ae,_0x5a806b){return Ne(_0x1b22ae)&&Ne(_0x5a806b)&&!Fe(_0x1b22ae)&&!Fe(_0x5a806b)&&!Pe(_0x1b22ae)&&!Pe(_0x5a806b);}function Ne(_0x22dfec){const _0x24610b=_0x28bbb9;return Ie(_0x22dfec)[_0x24610b(0x33e)](_0x2f68e8=>D(_0x2f68e8)&&_0x2f68e8['et']==='text-x');}function Pe(_0xdd4a19){const _0x2210e1=_0x28bbb9;return Ie(_0xdd4a19)[_0x2210e1(0x33e)](_0x1c5615=>Array[_0x2210e1(0x2e8)](_0x1c5615)||typeof _0x1c5615==_0x2210e1(0x2d4)||typeof _0x1c5615==_0x2210e1(0x378));}function Fe(_0x46d851){const _0x19d36a=_0x28bbb9;return Ie(_0x46d851)['some'](_0x42be8e=>!D(_0x42be8e)||_0x42be8e['et']!=='text-x'||!Array[_0x19d36a(0x2e8)](_0x42be8e['e'])?!0x1:_0x42be8e['e'][_0x19d36a(0x33e)](_0x22fb98=>!D(_0x22fb98)||!D(_0x22fb98[_0x19d36a(0x340)])?!0x1:Object['prototype']['hasOwnProperty'][_0x19d36a(0x446)](_0x22fb98[_0x19d36a(0x340)],_0x19d36a(0x428))||Object[_0x19d36a(0x30e)][_0x19d36a(0x36d)]['call'](_0x22fb98[_0x19d36a(0x340)],'columnGroups')||Object['prototype'][_0x19d36a(0x36d)][_0x19d36a(0x446)](_0x22fb98[_0x19d36a(0x340)],_0x19d36a(0x3a4))));}function Ie(_0x5ab935){const _0x2fac49=_0x28bbb9;if(!Array[_0x2fac49(0x2e8)](_0x5ab935))return[];let _0x4fef3c=_0x5ab935[_0x2fac49(0x539)](_0x2fac49(0x340))?_0x5ab935:_0x5ab935['find'](_0x1a5491=>Array[_0x2fac49(0x2e8)](_0x1a5491)&&_0x1a5491['includes']('body'));if(!Array[_0x2fac49(0x2e8)](_0x4fef3c))return[];let _0x54c7dc=_0x4fef3c[_0x2fac49(0x383)]('body');return _0x54c7dc===-0x1?[]:_0x4fef3c[_0x2fac49(0x4e6)](_0x54c7dc+0x1);}function D(_0x1a2c43){const _0x55e5ef=_0x28bbb9;return typeof _0x1a2c43==_0x55e5ef(0x25b)&&!!_0x1a2c43&&!Array[_0x55e5ef(0x2e8)](_0x1a2c43);}function Le(_0x3b98e5,_0x178115){const _0x27cf20=_0x28bbb9;for(let _0x2317bb of _0x3b98e5[_0x27cf20(0x220)]){if(_0x2317bb['id']!==n[_0x27cf20(0x1bc)]['id'])continue;let _0xb860ee=_0x2317bb[_0x27cf20(0x453)];if((_0xb860ee==null?void 0x0:_0xb860ee[_0x27cf20(0x212)])===_0x178115&&typeof _0xb860ee['revision']==_0x27cf20(0x378))return{'unitId':_0xb860ee[_0x27cf20(0x212)],'revision':_0xb860ee[_0x27cf20(0x27c)]};}return null;}var Re,ze,Be,Ve=class extends Error{constructor(_0x3a868f){const _0x28f07f=_0x28bbb9;super(_0x3a868f instanceof Error?_0x3a868f['message']:typeof _0x3a868f=='string'?_0x3a868f:'[CollaborationState]:\x20apply\x20error!'),this[_0x28f07f(0x415)]=_0x3a868f,this['name']=_0x28f07f(0x2f8);}},He=class extends Error{constructor(_0x2bd778){const _0x4575e7=_0x28bbb9;var _0x37609c;super('[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20'+((_0x37609c=_0x2bd778[_0x4575e7(0x34f)])==null?void 0x0:_0x37609c[_0x4575e7(0x27c)])+'.'),this['info']=_0x2bd778,this[_0x4575e7(0x234)]=_0x4575e7(0x2ad);}};let Ue=function(_0x527c46){const _0x179bfc=_0x28bbb9;return _0x527c46['NOT_COLLAB']='not_collab',_0x527c46['SYNCED']=_0x179bfc(0x4e8),_0x527c46[_0x179bfc(0x4e9)]=_0x179bfc(0x432),_0x527c46[_0x179bfc(0x349)]='awaiting',_0x527c46['AWAITING_WITH_PENDING']=_0x179bfc(0x472),_0x527c46[_0x179bfc(0x4a0)]=_0x179bfc(0x48c),_0x527c46[_0x179bfc(0x2b1)]=_0x179bfc(0x257),_0x527c46['OFFLINE']='offline',_0x527c46;}({});var O=class{constructor(_0x8ebd13,_0x30500e,_0x1d1528,_0x43ba5c,_0x5b423a,_0x402a96,_0x2bf7a5,_0x5dc368,_0x29b634){const _0x2a6c2a=_0x28bbb9;this[_0x2a6c2a(0x2e9)]=_0x8ebd13,this[_0x2a6c2a(0x538)]=_0x30500e,this[_0x2a6c2a(0x2a8)]=_0x5b423a,this[_0x2a6c2a(0x265)]=_0x402a96,this[_0x2a6c2a(0x377)]=_0x2bf7a5,this[_0x2a6c2a(0x460)]=_0x5dc368,this[_0x2a6c2a(0x4a5)]=_0x29b634,_(this,_0x2a6c2a(0x524),null),_(this,_0x2a6c2a(0x4f8),[]),this[_0x2a6c2a(0x524)]=_0x1d1528,this[_0x2a6c2a(0x4f8)]=_0x43ba5c;}[_0x28bbb9(0x40b)](){const _0x43b9cc=_0x28bbb9;return!!this[_0x43b9cc(0x524)]||this['_pendingMutations'][_0x43b9cc(0x47a)]>0x0;}[_0x28bbb9(0x3ac)](){}[_0x28bbb9(0x4b2)](){const _0x24ea80=_0x28bbb9;var _0x207997;return(((_0x207997=this[_0x24ea80(0x524)])==null?void 0x0:_0x207997[_0x24ea80(0x220)][_0x24ea80(0x47a)])??0x0)+this['_pendingMutations'][_0x24ea80(0x47a)];}[_0x28bbb9(0x478)](_0x4e067c){const _0x17d1a6=_0x28bbb9;return new ne(_0x4e067c[_0x17d1a6(0x4cd)]??0x0,(_0x45d6fc,_0x2a2786)=>this[_0x17d1a6(0x2a8)][_0x17d1a6(0x49a)](_0x45d6fc,_0x2a2786),{...this['_handler'][_0x17d1a6(0x245)],'onResend':_0x3dbe8d=>{const _0x1f2538=_0x17d1a6;var _0x57b89b,_0x5b0873;return(_0x57b89b=(_0x5b0873=this[_0x1f2538(0x2a8)])['onChangesetResend'])==null?void 0x0:_0x57b89b[_0x1f2538(0x446)](_0x5b0873,_0x3dbe8d);}});}[_0x28bbb9(0x4d6)](_0x143464){const _0x527e70=_0x28bbb9;if(this[_0x527e70(0x53b)](_0x143464))return _0x527e70(0x1ec);if(Le(_0x143464,this[_0x527e70(0x2e9)]))return _0x527e70(0x318);let _0x2c63ab=this['_getCurrentRevision']();return _0x143464['revision']<=_0x2c63ab?_0x527e70(0x363):_0x143464[_0x527e70(0x27c)]>_0x2c63ab+0x1?_0x527e70(0x518):_0x527e70(0x1ea);}[_0x28bbb9(0x373)](_0xc76ab9){const _0x3ee7f9=_0x28bbb9;let _0x4009ec=this['_getCurrentRevision']();return _0xc76ab9[_0x3ee7f9(0x27c)]<=_0x4009ec?this[_0x3ee7f9(0x502)](_0xc76ab9)?_0x3ee7f9(0x497):_0x3ee7f9(0x338):_0xc76ab9['revision']>_0x4009ec+0x1?_0x3ee7f9(0x518):_0x3ee7f9(0x512);}[_0x28bbb9(0x2bc)](_0x4107af,_0x59ec2d){const _0x4d9330=_0x28bbb9;switch(this['_classifyRemoteChangeset'](_0x4107af)){case'echo':return this['onRemoteAck'](_0x4107af);case _0x4d9330(0x318):return _0x59ec2d[_0x4d9330(0x2e0)](_0x4107af);case _0x4d9330(0x363):return this;case _0x4d9330(0x518):return this[_0x4d9330(0x429)](_0x4107af[_0x4d9330(0x27c)]),_0x59ec2d['onMissing'](_0x4107af);case _0x4d9330(0x1ea):return _0x59ec2d[_0x4d9330(0x459)](_0x4107af);}}['_remoteRevertInfo'](_0x4f6642){const _0x4d1478=_0x28bbb9;return{'reason':'remote_revert','revert':{'revision':Le(_0x4f6642,this['unitID'])[_0x4d1478(0x27c)],'memberId':_0x4f6642[_0x4d1478(0x362)],'userId':_0x4f6642[_0x4d1478(0x47b)]}};}[_0x28bbb9(0x4c5)](_0x4bd102){const _0x39d85a=_0x28bbb9;return{'reason':_0x4bd102 instanceof Ve?_0x39d85a(0x3bf):_0x39d85a(0x20e),'message':_0x4bd102 instanceof Error?_0x4bd102[_0x39d85a(0x34c)]:typeof _0x4bd102==_0x39d85a(0x2d4)?_0x4bd102:void 0x0};}[_0x28bbb9(0x37a)](_0x365a91){const _0x5bd19c=_0x28bbb9;return{'reason':_0x365a91!=null&&_0x365a91['isPermissionRej']?_0x5bd19c(0x3cd):_0x5bd19c(0x2a0)};}['_requestMissingChangesets'](_0x1b877c){const _0x447d53=_0x28bbb9;this[_0x447d53(0x2a8)][_0x447d53(0x241)]({'from':this[_0x447d53(0x2b6)](),'to':_0x1b877c-0x1});}[_0x28bbb9(0x46a)](_0x4dc70e){const _0x3bb9a2=_0x28bbb9;this['_undoRedoService'][_0x3bb9a2(0x2be)](this[_0x3bb9a2(0x2e9)],_0x4dc70e);}[_0x28bbb9(0x495)](_0x2e6b8b){const _0x112ab6=_0x28bbb9;var _0x250da4,_0xc3d981;(_0x250da4=(_0xc3d981=this[_0x112ab6(0x2a8)])['onTransformSelections'])==null||_0x250da4[_0x112ab6(0x446)](_0xc3d981,_0x2e6b8b);}[_0x28bbb9(0x3d0)](_0x367495){const _0x58c1a=_0x28bbb9;var _0x3ea1a2,_0x4d062c;return((_0x3ea1a2=(_0x4d062c=this['_handler'])[_0x58c1a(0x51d)])==null?void 0x0:_0x3ea1a2['call'](_0x4d062c,_0x367495))??null;}[_0x28bbb9(0x3f3)](_0x2f8239){const _0x1a0088=_0x28bbb9;var _0x4b112a,_0x30efe2;return(_0x4b112a=(_0x30efe2=this[_0x1a0088(0x2a8)])[_0x1a0088(0x317)])==null?void 0x0:_0x4b112a[_0x1a0088(0x446)](_0x30efe2,_0x2f8239);}[_0x28bbb9(0x3ca)](_0x4edef5){const _0x26391d=_0x28bbb9;var _0x2619ec,_0x33f959;return(_0x2619ec=(_0x33f959=this[_0x26391d(0x2a8)])['onTransformState'])==null?void 0x0:_0x2619ec['call'](_0x33f959,_0x4edef5);}[_0x28bbb9(0x51e)](_0x56c47e){const _0xbcd0e3=_0x28bbb9;var _0x5d7174,_0x213920;return((_0x5d7174=(_0x213920=this[_0xbcd0e3(0x2a8)])[_0xbcd0e3(0x348)])==null?void 0x0:_0x5d7174['call'](_0x213920,_0x56c47e))??_0x56c47e;}[_0x28bbb9(0x517)](_0x3575f5){const _0x430e23=_0x28bbb9;var _0x5ba327,_0x21e778;return((_0x5ba327=(_0x21e778=this['_handler'])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x5ba327[_0x430e23(0x446)](_0x21e778,_0x3575f5))??_0x3575f5;}[_0x28bbb9(0x435)](_0x46492f){const _0x63f775=_0x28bbb9;if(this['type']===r['UniverInstanceType'][_0x63f775(0x297)]){let {unitID:_0x4f9c32,mutations:_0xc215b2,memberID:_0x122d5b}=_0x46492f,_0xe12b32=_0xc215b2['length']>0x0?_0xc215b2[0x0]['params'][_0x63f775(0x41a)]:[];if(Array['isArray'](_0xe12b32)&&_0xe12b32['length']>0x0){var _0x22f5be,_0x7236fe;(_0x22f5be=(_0x7236fe=this[_0x63f775(0x2a8)])[_0x63f775(0x2a6)])==null||_0x22f5be['call'](_0x7236fe,{'unitID':_0x4f9c32,'memberID':_0x122d5b,'textRanges':_0xe12b32});}}}[_0x28bbb9(0x2ac)](){const _0x105a89=_0x28bbb9;var _0x510a7f;(_0x510a7f=this['_localCacheService'])==null||_0x510a7f[_0x105a89(0x55b)](this[_0x105a89(0x2e9)],this[_0x105a89(0x538)],this[_0x105a89(0x524)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x8b7869=_0x28bbb9;return this[_0x8b7869(0x460)]['getCurrentRevOfUnit'](this[_0x8b7869(0x2e9)]);}[_0x28bbb9(0x53b)](_0x25bced){const _0x5bd553=_0x28bbb9;let _0x1f6a02=this[_0x5bd553(0x524)];return!_0x1f6a02||!_0x1f6a02[_0x5bd553(0x32d)]||_0x1f6a02['reqId']===null||_0x1f6a02[_0x5bd553(0x4cd)]===void 0x0?!0x1:_0x25bced[_0x5bd553(0x2e9)]===_0x1f6a02['unitID']&&_0x25bced[_0x5bd553(0x32d)]===_0x1f6a02[_0x5bd553(0x32d)]&&_0x25bced['reqId']===_0x1f6a02[_0x5bd553(0x4cd)];}['_isAckOfAwaitingChangeset'](_0x32499d){const _0x1b0b08=_0x28bbb9;let _0x25f4fc=this[_0x1b0b08(0x524)];return!(_0x25f4fc!=null&&_0x25f4fc[_0x1b0b08(0x32d)])||_0x25f4fc[_0x1b0b08(0x4cd)]==null||!_0x32499d[_0x1b0b08(0x32d)]||_0x32499d[_0x1b0b08(0x4cd)]==null?!0x1:_0x32499d['sid']===_0x25f4fc[_0x1b0b08(0x32d)]&&_0x32499d[_0x1b0b08(0x4cd)]===_0x25f4fc[_0x1b0b08(0x4cd)];}['_incrementRevisionNumber'](){const _0x52312d=_0x28bbb9;this[_0x52312d(0x460)]['incrementRevOfUnit'](this[_0x52312d(0x2e9)]);}[_0x28bbb9(0x3c5)](_0x551b9b){const _0x52eece=_0x28bbb9;let _0x2087a5=this[_0x52eece(0x51e)](_0x551b9b);_0x2087a5=this[_0x52eece(0x517)](_0x2087a5);let _0x2cde65=this[_0x52eece(0x3d0)](_0x2087a5),_0xad7c3f=(0x0,r['sequenceExecute'])(_0x2087a5[_0x52eece(0x220)],this[_0x52eece(0x265)],{'fromCollab':!0x0});if(!_0xad7c3f['result'])throw _0x2cde65==null||_0x2cde65[_0x52eece(0x2d6)](),new Ve(_0xad7c3f[_0x52eece(0x456)]);_0x2cde65==null||_0x2cde65[_0x52eece(0x4b6)](),this[_0x52eece(0x3f3)](_0x2087a5),this[_0x52eece(0x3ca)](_0x2087a5),this['_transformUndoredo'](_0x551b9b),this[_0x52eece(0x495)](_0x2087a5),this['_syncEditingCollabCursor'](_0x2087a5),this['_incrementRevisionNumber']();}};let k=class extends O{constructor(_0x526a7c,_0x576622,_0x49e89e,_0x5347b5,_0x3df163,_0x96b77b,_0x57dc9b,_0x230e1d,_0x52c31b,_0x1260b5){const _0x438bea=_0x28bbb9;super(_0x526a7c,_0x576622,null,[],_0x49e89e,_0x57dc9b,_0x96b77b,_0x5347b5,_0x1260b5),this[_0x438bea(0x475)]=_0x3df163,this[_0x438bea(0x41e)]=_0x230e1d,this[_0x438bea(0x1f2)]=_0x52c31b,this[_0x438bea(0x28a)]=_0x1260b5,_(this,_0x438bea(0x290),_0x438bea(0x4e8));}['appendMutation'](_0x5ccd84){const _0x25f5b3=_0x28bbb9;let _0x351aa0=this[_0x25f5b3(0x475)]['createInstance'](A,this['unitID'],this['type'],[_0x5ccd84],this['_handler']);return _0x351aa0[_0x25f5b3(0x3d2)](),_0x351aa0[_0x25f5b3(0x2ac)](),_0x351aa0;}[_0x28bbb9(0x458)](_0x4f63e1){const _0x16bd97=_0x28bbb9;return this[_0x16bd97(0x2bc)](_0x4f63e1,{'onMissing':()=>this['_injector'][_0x16bd97(0x3e2)](F,this['unitID'],this['type'],null,[],null,[_0x4f63e1],this[_0x16bd97(0x2a8)],void 0x0),'onApply':()=>this['_transformAndApply'](_0x4f63e1),'onRemoteRevert':()=>this[_0x16bd97(0x1c0)](this[_0x16bd97(0x208)](_0x4f63e1))});}['_transformAndApply'](_0x558f79){const _0x138a1f=_0x28bbb9;try{let _0x1f287d=this[_0x138a1f(0x1f2)]['transformMutationsWithChangeset'](_0x558f79,[n[_0x138a1f(0x324)]]);if((0x0,n[_0x138a1f(0x4a7)])(_0x1f287d)){let {c1Prime:_0x4630ae}=_0x1f287d;return this[_0x138a1f(0x3c5)](_0x4630ae),this;}throw _0x1f287d[_0x138a1f(0x456)];}catch(_0xe26467){return this['_logService'][_0x138a1f(0x456)](_0xe26467),this['_onConflict'](this['_conflictInfoFromError'](_0xe26467));}}[_0x28bbb9(0x1c0)](_0x4a3238){const _0x168397=_0x28bbb9;return this[_0x168397(0x475)][_0x168397(0x3e2)](N,this[_0x168397(0x2e9)],this[_0x168397(0x538)],null,[],this[_0x168397(0x2a8)],_0x4a3238);}[_0x28bbb9(0x48f)](_0x1964a1){const _0x5e750f=_0x28bbb9;if(this[_0x5e750f(0x373)](_0x1964a1)==='stale')return this;throw Error(_0x5e750f(0x226));}[_0x28bbb9(0x4df)](){const _0x1eea3e=_0x28bbb9;throw Error(_0x1eea3e(0x385));}[_0x28bbb9(0x49f)](){return this;}[_0x28bbb9(0x27a)](){const _0xb2e0f3=_0x28bbb9;return this[_0xb2e0f3(0x475)][_0xb2e0f3(0x3e2)](P,this[_0xb2e0f3(0x2e9)],this['type'],null,[],this['_handler']);}[_0x28bbb9(0x2e4)](){return this;}[_0x28bbb9(0x462)](){const _0x153d95=_0x28bbb9;throw Error(_0x153d95(0x42f));}[_0x28bbb9(0x202)](){const _0xdbcd49=_0x28bbb9;let _0x4e49eb=this[_0xdbcd49(0x460)]['getCurrentRevOfUnit'](this[_0xdbcd49(0x2e9)]);return this['_handler']['onMissingChangesets']({'from':_0x4e49eb,'to':0x0}),this[_0xdbcd49(0x475)][_0xdbcd49(0x3e2)](F,this[_0xdbcd49(0x2e9)],this[_0xdbcd49(0x538)],null,[],null,[],this[_0xdbcd49(0x2a8)],void 0x0);}};k=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x5,r['IUndoRedoService']),y(0x6,r['ICommandService']),y(0x7,r[_0x28bbb9(0x369)]),y(0x8,n[_0x28bbb9(0x4fc)]),y(0x9,(0x0,r[_0x28bbb9(0x1cd)])(C))],k);let A=Re=class extends O{constructor(_0x427d55,_0x5d6fe6,_0x2a7e53,_0x2c78c0,_0x302ae3,_0xa5a2fc,_0x46f361,_0x57898b,_0x1b55fe,_0x4d4719,_0x1b0c8b,_0x2cece4,_0x512a12,_0x29e1b6){const _0x469d5d=_0x28bbb9;super(_0x427d55,_0x5d6fe6,null,_0x2a7e53,_0x2c78c0,_0x1b55fe,_0x512a12,_0xa5a2fc,_0x29e1b6),this[_0x469d5d(0x475)]=_0x302ae3,this['_userManagerService']=_0x46f361,this['_logService']=_0x57898b,this[_0x469d5d(0x2c8)]=_0x4d4719,this['_transformService']=_0x1b0c8b,this[_0x469d5d(0x4b7)]=_0x2cece4,_(this,_0x469d5d(0x290),_0x469d5d(0x432)),_(this,_0x469d5d(0x442),null),_(this,'_sendingTimer',null);}[_0x28bbb9(0x2b9)](_0x211a19){const _0x35fb5b=_0x28bbb9;return this[_0x35fb5b(0x4f8)][_0x35fb5b(0x4ec)](_0x211a19),this['_updateLocalCache'](),this;}[_0x28bbb9(0x458)](_0x4a7731){const _0x2d0f5c=_0x28bbb9;return this[_0x2d0f5c(0x2bc)](_0x4a7731,{'onMissing':()=>(this[_0x2d0f5c(0x54a)](),this[_0x2d0f5c(0x475)]['createInstance'](F,this[_0x2d0f5c(0x2e9)],this[_0x2d0f5c(0x538)],null,this[_0x2d0f5c(0x4f8)],null,[_0x4a7731],this['_handler'],void 0x0)),'onApply':()=>this['_transformAndApply'](_0x4a7731),'onRemoteRevert':()=>this[_0x2d0f5c(0x1c0)](this[_0x2d0f5c(0x208)](_0x4a7731))});}[_0x28bbb9(0x47f)](_0x1ee4cc){const _0x3d2c69=_0x28bbb9;try{let _0x5f247d=this[_0x3d2c69(0x1f2)][_0x3d2c69(0x541)](_0x1ee4cc,this[_0x3d2c69(0x4f8)]);if((0x0,n['isTransformMutationsWithChangesetSuccess'])(_0x5f247d)){let {c1Prime:_0xd7db23,m2Prime:_0x3fd5dc}=_0x5f247d;this[_0x3d2c69(0x3c5)](_0xd7db23);let _0x3733f1=this[_0x3d2c69(0x475)][_0x3d2c69(0x3e2)](Re,this['unitID'],this[_0x3d2c69(0x538)],_0x3fd5dc,this[_0x3d2c69(0x2a8)]);_0x3733f1[_0x3d2c69(0x2ac)](),this['_clearScheduledTask']();let _0x277771=new Date()[_0x3d2c69(0x402)](),_0x41d52a=this[_0x3d2c69(0x442)]?Math[_0x3d2c69(0x3fc)](this['_scheduleCompleteTimestamp']-_0x277771,0x0):this[_0x3d2c69(0x379)]();return _0x3733f1[_0x3d2c69(0x3d2)](_0x41d52a),_0x3733f1;}throw _0x5f247d['error'];}catch(_0x316a09){return this['_logService'][_0x3d2c69(0x456)](_0x316a09),this['_onConflict'](this[_0x3d2c69(0x4c5)](_0x316a09));}}[_0x28bbb9(0x48f)](_0x5d18b8){const _0x179854=_0x28bbb9;if(this[_0x179854(0x373)](_0x5d18b8)==='stale')return this;throw Error(_0x179854(0x20d));}['onRemoteRej'](){const _0x178853=_0x28bbb9;throw Error(_0x178853(0x37b));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x301647=_0x28bbb9;return this[_0x301647(0x54a)](),this[_0x301647(0x475)]['createInstance'](P,this['unitID'],this[_0x301647(0x538)],null,this[_0x301647(0x4f8)],this[_0x301647(0x2a8)]);}['toggleOnline'](){return this;}[_0x28bbb9(0x3d2)](_0xc686bc){const _0x4603c5=_0x28bbb9;let _0x592302=_0xc686bc??this[_0x4603c5(0x379)]();this['_scheduleCompleteTimestamp']=new Date()[_0x4603c5(0x402)]()+_0x592302,this[_0x4603c5(0x2c9)]=setTimeout(()=>{const _0x439b4f=_0x4603c5;this[_0x439b4f(0x54a)]();let _0x15dbb0=null;switch(this[_0x439b4f(0x538)]){case r[_0x439b4f(0x24b)]['UNIVER_SHEET']:_0x15dbb0=E(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r['UniverInstanceType']['UNIVER_DOC']:_0x15dbb0=this[_0x439b4f(0x4f8)]['every'](_0x632e86=>_0x632e86['id']===i[_0x439b4f(0x4d7)]['id'])?ke(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this['_userManagerService']):E(this[_0x439b4f(0x4f8)],this['unitID'],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x405)]:_0x15dbb0=Oe(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this['_univerInstanceService'],this['_revisionService'],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x367)]:_0x15dbb0=De(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x449)]:_0x15dbb0=E(this[_0x439b4f(0x4f8)],this['unitID'],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x3bb)]:_0x15dbb0=E(this[_0x439b4f(0x4f8)],this['unitID'],this[_0x439b4f(0x4b7)],this['_revisionService'],this[_0x439b4f(0x433)]);break;default:throw Error(_0x439b4f(0x1f6)+this[_0x439b4f(0x538)]+_0x439b4f(0x30c));}let {changeset:_0x341044,pendingMutations:_0x33f476}=_0x15dbb0,_0x15e6cb=this[_0x439b4f(0x478)](_0x341044);_0x15e6cb[_0x439b4f(0x1c1)](_0x341044,_0x341044[_0x439b4f(0x220)][_0x439b4f(0x47a)]+_0x33f476[_0x439b4f(0x47a)]);let _0x347e4e=_0x33f476['length']?this[_0x439b4f(0x475)][_0x439b4f(0x3e2)](M,this[_0x439b4f(0x2e9)],this[_0x439b4f(0x538)],_0x341044,_0x33f476,this[_0x439b4f(0x2a8)],_0x15e6cb):this[_0x439b4f(0x475)][_0x439b4f(0x3e2)](j,this[_0x439b4f(0x2e9)],this[_0x439b4f(0x538)],_0x341044,this['_handler'],_0x15e6cb);_0x347e4e['_updateLocalCache'](),this['_handler'][_0x439b4f(0x20c)](this,_0x347e4e);},_0x592302);}[_0x28bbb9(0x379)](){const _0x4d7231=_0x28bbb9;let _0x31bb7d=this['_configService'][_0x4d7231(0x230)](m);return(_0x31bb7d==null?void 0x0:_0x31bb7d[_0x4d7231(0x306)])??0x7d0;}[_0x28bbb9(0x462)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x28bbb9(0x54a)](){const _0x7023c5=_0x28bbb9;this[_0x7023c5(0x2c9)]!=null&&(clearTimeout(this[_0x7023c5(0x2c9)]),this['_sendingTimer']=null);}['dispose'](){this['_clearScheduledTask']();}[_0x28bbb9(0x1c0)](_0x618426){const _0x38ac6f=_0x28bbb9;return this[_0x38ac6f(0x54a)](),this['_injector'][_0x38ac6f(0x3e2)](N,this[_0x38ac6f(0x2e9)],this[_0x38ac6f(0x538)],null,this[_0x38ac6f(0x4f8)],this['_handler'],_0x618426);}};A=Re=b([y(0x4,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x6,(0x0,r['Inject'])(r[_0x28bbb9(0x42e)])),y(0x7,r[_0x28bbb9(0x369)]),y(0x8,r['ICommandService']),y(0x9,r[_0x28bbb9(0x421)]),y(0xa,n[_0x28bbb9(0x4fc)]),y(0xb,r['IUniverInstanceService']),y(0xc,r['IUndoRedoService']),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],A);let j=ze=class extends O{constructor(_0x51d913,_0x44f327,_0x3d874d,_0x503792,_0x4ac092,_0x3802d9,_0x2c5040,_0x2c2a18,_0xf012c2,_0x4c2b23,_0x4b1150,_0x3ecb36){const _0x432333=_0x28bbb9;super(_0x51d913,_0x44f327,_0x3d874d,[],_0x503792,_0x2c2a18,_0x4b1150,_0x2c5040,_0x3ecb36),this[_0x432333(0x475)]=_0x3802d9,this[_0x432333(0x41e)]=_0xf012c2,this[_0x432333(0x1f2)]=_0x4c2b23,_(this,_0x432333(0x290),_0x432333(0x35e)),_(this,_0x432333(0x455),void 0x0),this[_0x432333(0x455)]=_0x4ac092??this[_0x432333(0x478)](_0x3d874d),this[_0x432333(0x455)][_0x432333(0x260)](()=>({'changeset':this[_0x432333(0x524)],'unsyncedMutationCount':this[_0x432333(0x4b2)]()})),_0x4ac092||this['_submitter'][_0x432333(0x25e)]();}[_0x28bbb9(0x2b9)](_0x23f6f5){const _0x11b43a=_0x28bbb9;this[_0x11b43a(0x375)]();let _0x5eaaf4=this[_0x11b43a(0x475)][_0x11b43a(0x3e2)](M,this[_0x11b43a(0x2e9)],this[_0x11b43a(0x538)],this['_awaitingChangeset'],[_0x23f6f5],this[_0x11b43a(0x2a8)],this['_submitter']);return _0x5eaaf4['_updateLocalCache'](),_0x5eaaf4;}[_0x28bbb9(0x458)](_0x394f60){const _0x54f0dc=_0x28bbb9;return this[_0x54f0dc(0x2bc)](_0x394f60,{'onMissing':()=>(this['_detachSubmitter'](),this[_0x54f0dc(0x475)]['createInstance'](F,this[_0x54f0dc(0x2e9)],this[_0x54f0dc(0x538)],this[_0x54f0dc(0x524)],[],null,[_0x394f60],this[_0x54f0dc(0x2a8)],this[_0x54f0dc(0x455)])),'onApply':()=>this['_transformAndApply'](_0x394f60),'onRemoteRevert':()=>this[_0x54f0dc(0x1c0)](this['_remoteRevertInfo'](_0x394f60))});}[_0x28bbb9(0x47f)](_0x1f9753){const _0x450247=_0x28bbb9;try{let _0x15aa77=this[_0x450247(0x1f2)]['transformChangesets']([_0x1f9753],[this[_0x450247(0x524)]],!0x1);if((0x0,n[_0x450247(0x55e)])(_0x15aa77)){let {c1Prime:_0x318060,c2Prime:_0x287a2b}=_0x15aa77;this[_0x450247(0x3c5)](_0x318060[0x0]),_0x287a2b[0x0]['baseRev']=this[_0x450247(0x2b6)](),this[_0x450247(0x375)]();let _0x508479=this[_0x450247(0x475)][_0x450247(0x3e2)](ze,this[_0x450247(0x2e9)],this['type'],_0x287a2b[0x0],this[_0x450247(0x2a8)],this[_0x450247(0x455)]);return _0x508479[_0x450247(0x2ac)](),_0x508479;}throw _0x15aa77[_0x450247(0x456)];}catch(_0x4cec7f){return this[_0x450247(0x41e)][_0x450247(0x456)](_0x4cec7f),this['_onConflict'](this[_0x450247(0x4c5)](_0x4cec7f));}}['onRemoteAck'](_0x1ea40e){const _0x1cd3a1=_0x28bbb9;switch(this[_0x1cd3a1(0x373)](_0x1ea40e)){case _0x1cd3a1(0x338):return this[_0x1cd3a1(0x41e)][_0x1cd3a1(0x2ba)]('[AwaitingState]',_0x1cd3a1(0x1cc)+_0x1ea40e[_0x1cd3a1(0x27c)]+_0x1cd3a1(0x561)+this[_0x1cd3a1(0x2b6)]()+'.'),this;case _0x1cd3a1(0x497):return this['_submitter'][_0x1cd3a1(0x3ac)](),this[_0x1cd3a1(0x4fd)]();case _0x1cd3a1(0x518):return this[_0x1cd3a1(0x455)][_0x1cd3a1(0x3ac)](),this[_0x1cd3a1(0x429)](_0x1ea40e[_0x1cd3a1(0x27c)]),this[_0x1cd3a1(0x475)][_0x1cd3a1(0x3e2)](F,this[_0x1cd3a1(0x2e9)],this[_0x1cd3a1(0x538)],this[_0x1cd3a1(0x524)],[],_0x1ea40e['revision'],[],this[_0x1cd3a1(0x2a8)],void 0x0);case'next':return this['_submitter'][_0x1cd3a1(0x3ac)](),this['_incrementRevisionNumber'](),this[_0x1cd3a1(0x4fd)]();}}[_0x28bbb9(0x4fd)](){const _0x19ebc1=_0x28bbb9;let _0x45bc4e=this['_injector']['createInstance'](k,this[_0x19ebc1(0x2e9)],this['type'],this[_0x19ebc1(0x2a8)]);return _0x45bc4e[_0x19ebc1(0x2ac)](),_0x45bc4e;}['onRemoteRej'](_0x5d1b73){const _0x4bbf41=_0x28bbb9;return this[_0x4bbf41(0x1c0)](this['_rejectionInfo'](_0x5d1b73));}[_0x28bbb9(0x49f)](_0x42dba6){const _0x5bd0eb=_0x28bbb9;var _0x63c731;return _0x42dba6[_0x5bd0eb(0x4cd)]===((_0x63c731=this[_0x5bd0eb(0x524)])==null?void 0x0:_0x63c731[_0x5bd0eb(0x4cd)])&&this[_0x5bd0eb(0x455)][_0x5bd0eb(0x34d)](),this;}[_0x28bbb9(0x27a)](){const _0x542bc8=_0x28bbb9;return this['_submitter'][_0x542bc8(0x3ac)](),this['_injector'][_0x542bc8(0x3e2)](P,this['unitID'],this[_0x542bc8(0x538)],this['_awaitingChangeset'],[],this[_0x542bc8(0x2a8)]);}[_0x28bbb9(0x2e4)](){return this;}['resend'](_0x514999=_0x28bbb9(0x4d8)){const _0x565232=_0x28bbb9;this[_0x565232(0x455)][_0x565232(0x1c1)](this[_0x565232(0x524)],this[_0x565232(0x4b2)](),_0x514999);}[_0x28bbb9(0x1c0)](_0x25e9f1){const _0x37d05f=_0x28bbb9;return this[_0x37d05f(0x455)][_0x37d05f(0x3ac)](),this['_injector'][_0x37d05f(0x3e2)](N,this[_0x37d05f(0x2e9)],this[_0x37d05f(0x538)],this[_0x37d05f(0x524)],[],this[_0x37d05f(0x2a8)],_0x25e9f1);}[_0x28bbb9(0x3ac)](){const _0x11ccbb=_0x28bbb9;this['_submitter'][_0x11ccbb(0x3ac)]();}[_0x28bbb9(0x375)](){const _0x6cc1d5=_0x28bbb9;this[_0x6cc1d5(0x455)][_0x6cc1d5(0x3ef)]();}};j=ze=b([y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,r[_0x28bbb9(0x382)]),y(0x8,r['ILogService']),y(0x9,n[_0x28bbb9(0x4fc)]),y(0xa,r['IUndoRedoService']),y(0xb,(0x0,r['Optional'])(C))],j);let M=Be=class extends O{constructor(_0x286811,_0x29fa0c,_0x5473f5,_0x33d931,_0x312750,_0x1dfe05,_0x357794,_0x44d6c0,_0x8cd02f,_0xe55954,_0xb94652,_0xc745d7,_0xe098b9){const _0x3bbcfa=_0x28bbb9;super(_0x286811,_0x29fa0c,_0x5473f5,_0x33d931,_0x312750,_0x8cd02f,_0xc745d7,_0x44d6c0,_0xe098b9),this[_0x3bbcfa(0x475)]=_0x357794,this['_logService']=_0xe55954,this[_0x3bbcfa(0x1f2)]=_0xb94652,this['localCacheService']=_0xe098b9,_(this,_0x3bbcfa(0x290),_0x3bbcfa(0x472)),_(this,_0x3bbcfa(0x455),void 0x0),this[_0x3bbcfa(0x455)]=_0x1dfe05??this[_0x3bbcfa(0x478)](_0x5473f5),this[_0x3bbcfa(0x455)][_0x3bbcfa(0x260)](()=>({'changeset':this[_0x3bbcfa(0x524)],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x1dfe05||this[_0x3bbcfa(0x455)]['armAckTimeout']();}[_0x28bbb9(0x2b9)](_0x563aad){const _0x2a869a=_0x28bbb9;return this[_0x2a869a(0x4f8)][_0x2a869a(0x4ec)](_0x563aad),this['_updateLocalCache'](),this;}[_0x28bbb9(0x458)](_0x25d26f){const _0x452204=_0x28bbb9;return this[_0x452204(0x2bc)](_0x25d26f,{'onMissing':()=>(this[_0x452204(0x375)](),this['_injector'][_0x452204(0x3e2)](F,this[_0x452204(0x2e9)],this[_0x452204(0x538)],this[_0x452204(0x524)],this[_0x452204(0x4f8)],null,[_0x25d26f],this[_0x452204(0x2a8)],this['_submitter'])),'onApply':()=>this['_transformAndApply'](_0x25d26f),'onRemoteRevert':()=>this[_0x452204(0x1c0)](this[_0x452204(0x208)](_0x25d26f))});}[_0x28bbb9(0x47f)](_0x42a231){const _0x4c9b70=_0x28bbb9;try{let _0x3bdc25=this['_transformService']['transformChangesets']([_0x42a231],[this[_0x4c9b70(0x524)]],!0x1);if((0x0,n[_0x4c9b70(0x55e)])(_0x3bdc25)){let {c1Prime:_0x1ecc76,c2Prime:_0x56b8d2}=_0x3bdc25,_0x22fe67=this[_0x4c9b70(0x1f2)][_0x4c9b70(0x541)](_0x1ecc76[0x0],this[_0x4c9b70(0x4f8)]);if((0x0,n[_0x4c9b70(0x4a7)])(_0x22fe67)){let {c1Prime:_0x226004,m2Prime:_0x4c0a17}=_0x22fe67;this[_0x4c9b70(0x3c5)](_0x226004),_0x56b8d2[0x0][_0x4c9b70(0x3a5)]=this[_0x4c9b70(0x2b6)](),this[_0x4c9b70(0x375)]();let _0x4f8d27=this[_0x4c9b70(0x475)][_0x4c9b70(0x3e2)](Be,this[_0x4c9b70(0x2e9)],this[_0x4c9b70(0x538)],_0x56b8d2[0x0],_0x4c0a17,this['_handler'],this['_submitter']);return _0x4f8d27[_0x4c9b70(0x2ac)](),_0x4f8d27;}throw _0x22fe67[_0x4c9b70(0x456)];}throw _0x3bdc25[_0x4c9b70(0x456)];}catch(_0x1f8469){return this['_logService'][_0x4c9b70(0x456)](_0x1f8469),this['_onConflict'](this[_0x4c9b70(0x4c5)](_0x1f8469));}}[_0x28bbb9(0x48f)](_0x4ead12){const _0x3d2474=_0x28bbb9;switch(this[_0x3d2474(0x373)](_0x4ead12)){case _0x3d2474(0x338):return this[_0x3d2474(0x41e)][_0x3d2474(0x2ba)]('[AwaitingWithPendingState]','ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x4ead12[_0x3d2474(0x27c)]+'\x20at\x20revision\x20'+this[_0x3d2474(0x2b6)]()+'.'),this;case _0x3d2474(0x497):return this[_0x3d2474(0x455)][_0x3d2474(0x3ac)](),this[_0x3d2474(0x347)]();case _0x3d2474(0x518):return this[_0x3d2474(0x455)][_0x3d2474(0x3ac)](),this[_0x3d2474(0x429)](_0x4ead12[_0x3d2474(0x27c)]),this[_0x3d2474(0x475)]['createInstance'](F,this[_0x3d2474(0x2e9)],this[_0x3d2474(0x538)],this[_0x3d2474(0x524)],this['_pendingMutations'],_0x4ead12['revision'],[],this[_0x3d2474(0x2a8)],void 0x0);case _0x3d2474(0x512):return this[_0x3d2474(0x455)]['dispose'](),this['_incrementRevisionNumber'](),this[_0x3d2474(0x347)]();}}[_0x28bbb9(0x347)](){const _0x335efb=_0x28bbb9;let _0x316270=this[_0x335efb(0x475)][_0x335efb(0x3e2)](A,this['unitID'],this[_0x335efb(0x538)],this[_0x335efb(0x4f8)],this[_0x335efb(0x2a8)]);return _0x316270[_0x335efb(0x3d2)](),_0x316270[_0x335efb(0x2ac)](),_0x316270;}[_0x28bbb9(0x4df)](_0x54b292){const _0x7fd001=_0x28bbb9;return this[_0x7fd001(0x1c0)](this[_0x7fd001(0x37a)](_0x54b292));}[_0x28bbb9(0x49f)](_0x304313){const _0xce9ba=_0x28bbb9;var _0x242ee8;return _0x304313[_0xce9ba(0x4cd)]===((_0x242ee8=this[_0xce9ba(0x524)])==null?void 0x0:_0x242ee8[_0xce9ba(0x4cd)])&&this[_0xce9ba(0x455)][_0xce9ba(0x34d)](),this;}[_0x28bbb9(0x27a)](){const _0x285743=_0x28bbb9;return this[_0x285743(0x455)]['dispose'](),this[_0x285743(0x475)][_0x285743(0x3e2)](P,this['unitID'],this[_0x285743(0x538)],this[_0x285743(0x524)],this['_pendingMutations'],this[_0x285743(0x2a8)]);}['toggleOnline'](){return this;}['resend'](_0x386f0f=_0x28bbb9(0x4d8)){const _0xfb8486=_0x28bbb9;this['_submitter'][_0xfb8486(0x1c1)](this['_awaitingChangeset'],this[_0xfb8486(0x4b2)](),_0x386f0f);}[_0x28bbb9(0x1c0)](_0x5240d8){const _0x4629bb=_0x28bbb9;return this[_0x4629bb(0x455)][_0x4629bb(0x3ac)](),this[_0x4629bb(0x475)][_0x4629bb(0x3e2)](N,this[_0x4629bb(0x2e9)],this['type'],this[_0x4629bb(0x524)],this[_0x4629bb(0x4f8)],this[_0x4629bb(0x2a8)],_0x5240d8);}[_0x28bbb9(0x3ac)](){const _0xbf9dff=_0x28bbb9;this[_0xbf9dff(0x455)][_0xbf9dff(0x3ac)]();}['_detachSubmitter'](){const _0x4ca758=_0x28bbb9;this[_0x4ca758(0x455)]['unbind']();}};M=Be=b([y(0x6,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x8,r['ICommandService']),y(0x9,r['ILogService']),y(0xa,n[_0x28bbb9(0x4fc)]),y(0xb,r['IUndoRedoService']),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(C))],M);let N=class extends O{constructor(_0x4c3f5f,_0x3a894f,_0x508978,_0x20bfcf,_0x54c62f,_0x2b5f80,_0x2d7218,_0x20c26e,_0xaad8fe,_0xbdc42e,_0x2b216d,_0x2253d8,_0x26cb95,_0x12b021){const _0x1e64f6=_0x28bbb9;var _0x2bb17e;super(_0x4c3f5f,_0x3a894f,_0x508978,_0x20bfcf,_0x54c62f,_0x20c26e,_0xaad8fe,_0xbdc42e,_0x12b021),this['info']=_0x2b5f80,this[_0x1e64f6(0x370)]=_0x2d7218,this[_0x1e64f6(0x433)]=_0x2b216d,this[_0x1e64f6(0x41e)]=_0x2253d8,this[_0x1e64f6(0x3b5)]=_0x26cb95,this[_0x1e64f6(0x28a)]=_0x12b021,_(this,'status','conflict'),_(this,_0x1e64f6(0x4ac),void 0x0);let _0x1989f0=((_0x2bb17e=this[_0x1e64f6(0x433)][_0x1e64f6(0x1f5)]())==null?void 0x0:_0x2bb17e['userID'])??'';this[_0x1e64f6(0x4ac)]=_0x508978||_0x20bfcf[_0x1e64f6(0x47a)]?{'unitID':_0x4c3f5f,'userId':_0x1989f0||void 0x0,'type':_0x3a894f,'rev':this['_getCurrentRevision'](),'awaitingChangeset':_0x508978,'mutations':_0x20bfcf}:null,this[_0x1e64f6(0x39d)](),this[_0x1e64f6(0x550)](),this[_0x1e64f6(0x3e6)](_0x1989f0)[_0x1e64f6(0x4a4)](_0x1b78e3=>this[_0x1e64f6(0x41e)][_0x1e64f6(0x456)](_0x1b78e3));}async[_0x28bbb9(0x3e6)](_0x3230e2){const _0x425032=_0x28bbb9;var _0x2b6dc2,_0x9cde12,_0x1b3cf5,_0x2a450a;await((_0x2b6dc2=this[_0x425032(0x4a5)])==null||(_0x9cde12=_0x2b6dc2['backupOfflineData'])==null?void 0x0:_0x9cde12['call'](_0x2b6dc2,this[_0x425032(0x2e9)],this[_0x425032(0x520)][_0x425032(0x489)],_0x3230e2)['catch'](()=>void 0x0));let _0x222edb=!0x0;try{var _0x59c548;await((_0x59c548=this[_0x425032(0x4a5)])==null?void 0x0:_0x59c548['clearOfflineData'](this[_0x425032(0x2e9)],_0x3230e2));}catch{_0x222edb=!0x1,this[_0x425032(0x3b5)][_0x425032(0x40c)]({'id':_0x425032(0x503),'unitID':this['unitID'],'userId':_0x3230e2});}(_0x1b3cf5=(_0x2a450a=this[_0x425032(0x2a8)])[_0x425032(0x248)])==null||_0x1b3cf5['call'](_0x2a450a,this[_0x425032(0x520)],this['localChanges'],_0x222edb);}[_0x28bbb9(0x2b9)](){return this;}[_0x28bbb9(0x458)](){return this;}['onRemoteAck'](){return this;}[_0x28bbb9(0x4df)](){return this;}['onRemoteRetry'](){return this;}[_0x28bbb9(0x27a)](){return this;}[_0x28bbb9(0x2e4)](){return this;}[_0x28bbb9(0x462)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_showConflictProcessingNotification'](){const _0x284cf4=_0x28bbb9;this[_0x284cf4(0x3b5)][_0x284cf4(0x40c)]({'id':'CONFLICT_PROCESSING','unitID':this[_0x284cf4(0x2e9)]});}[_0x28bbb9(0x39d)](){const _0x1a5844=_0x28bbb9;this[_0x1a5844(0x370)][_0x1a5844(0x3cc)](new a[(_0x1a5844(0x371))](this[_0x1a5844(0x2e9)])['id'],!0x1);}};N=b([y(0x6,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x427)])),y(0x7,r[_0x28bbb9(0x382)]),y(0x8,r[_0x28bbb9(0x493)]),y(0x9,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0xa,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x42e)])),y(0xb,r[_0x28bbb9(0x369)]),y(0xc,(0x0,r[_0x28bbb9(0x431)])(v)),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],N);let P=class extends O{constructor(_0x1fc119,_0x160ffa,_0x5d3a05,_0x25616b,_0x2de8e8,_0x4cc16d,_0x12e180,_0x111b6a,_0x1d3d10,_0x42adde,_0x3aecb2){const _0x1888a2=_0x28bbb9;super(_0x1fc119,_0x160ffa,_0x5d3a05,_0x25616b,_0x2de8e8,_0x111b6a,_0x1d3d10,_0x12e180,_0x3aecb2),this[_0x1888a2(0x475)]=_0x4cc16d,this[_0x1888a2(0x41e)]=_0x42adde,_(this,_0x1888a2(0x290),_0x1888a2(0x203));}[_0x28bbb9(0x2b9)](_0x411c0e){const _0x324915=_0x28bbb9;return this['_pendingMutations']['push'](_0x411c0e),this[_0x324915(0x2ac)](),this;}[_0x28bbb9(0x458)](_0x59ae22){const _0x5420b1=_0x28bbb9;return this[_0x5420b1(0x41e)][_0x5420b1(0x2ba)]('[OfflineState]',_0x5420b1(0x3c6)+_0x59ae22[_0x5420b1(0x27c)]+'.'),this;}['onRemoteAck'](_0x1f11ee){const _0x48d50c=_0x28bbb9;return this[_0x48d50c(0x41e)][_0x48d50c(0x2ba)](_0x48d50c(0x47c),_0x48d50c(0x2e2)+_0x1f11ee[_0x48d50c(0x27c)]+'.'),this;}[_0x28bbb9(0x4df)](){const _0x417452=_0x28bbb9;return this[_0x417452(0x41e)][_0x417452(0x2ba)](_0x417452(0x47c),'ignored\x20rejection.'),this;}['onRemoteRetry'](){return this;}[_0x28bbb9(0x27a)](){return this;}[_0x28bbb9(0x2e4)](){const _0x5d1a25=_0x28bbb9;let {_injector:_0x3c8f76,_pendingMutations:_0x4f8098,_awaitingChangeset:_0x53e2f7,unitID:_0x222b80,_handler:_0xd7b2fd,type:_0x544c45}=this,_0x1cff36=We(_0x3c8f76,_0x222b80,_0x544c45,_0x53e2f7,_0x4f8098,_0xd7b2fd);return _0x1cff36 instanceof A?_0x1cff36[_0x5d1a25(0x3d2)]():(_0x1cff36 instanceof M||_0x1cff36 instanceof j)&&_0x1cff36[_0x5d1a25(0x462)](),_0x1cff36;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};P=b([y(0x5,(0x0,r['Inject'])(r[_0x28bbb9(0x506)])),y(0x6,(0x0,r['Inject'])(n[_0x28bbb9(0x49e)])),y(0x7,r[_0x28bbb9(0x382)]),y(0x8,r[_0x28bbb9(0x493)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,(0x0,r[_0x28bbb9(0x1cd)])(C))],P);let F=class extends O{constructor(_0x5428ba,_0x4ec649,_0x5a19d4,_0x500cfe,_0x17ff7e,_0x271b46,_0x4152c0,_0x300c7c,_0x9706cd,_0x4ad3ba,_0x10e3f5,_0x283de0,_0x4a150f,_0x3bf167,_0x1c3b93){const _0x3d1e86=_0x28bbb9;super(_0x5428ba,_0x4ec649,_0x5a19d4,_0x500cfe,_0x4152c0,_0x283de0,_0x4a150f,_0x4ad3ba,_0x1c3b93),this[_0x3d1e86(0x21b)]=_0x17ff7e,this[_0x3d1e86(0x392)]=_0x271b46,this[_0x3d1e86(0x455)]=_0x300c7c,this[_0x3d1e86(0x475)]=_0x9706cd,this['_logService']=_0x10e3f5,this[_0x3d1e86(0x1f2)]=_0x3bf167,this[_0x3d1e86(0x28a)]=_0x1c3b93,_(this,'status',_0x3d1e86(0x48c));}[_0x28bbb9(0x4f6)](_0x1c378e){const _0x11f103=_0x28bbb9;try{if(this[_0x11f103(0x406)](_0x1c378e)['missingChangesets'])throw Error(_0x11f103(0x293));if(this[_0x11f103(0x406)]([...this[_0x11f103(0x392)]][_0x11f103(0x26b)]((_0x56fdba,_0xb49833)=>_0x56fdba[_0x11f103(0x27c)]-_0xb49833[_0x11f103(0x27c)]))[_0x11f103(0x366)])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x11f103(0x2a8)][_0x11f103(0x241)]({'from':this[_0x11f103(0x2b6)](),'to':0x0}),this;let _0x52ebd0=this[_0x11f103(0x524)],_0x42c3ce=this['_pendingMutations'],_0x121c64;if(_0x52ebd0&&_0x42c3ce[_0x11f103(0x47a)]!==0x0)_0x121c64=this['_injector'][_0x11f103(0x3e2)](M,this['unitID'],this[_0x11f103(0x538)],_0x52ebd0,_0x42c3ce,this[_0x11f103(0x2a8)],this[_0x11f103(0x455)]);else{if(_0x52ebd0&&_0x42c3ce['length']===0x0)_0x52ebd0['baseRev']=this[_0x11f103(0x2b6)](),_0x121c64=this[_0x11f103(0x475)][_0x11f103(0x3e2)](j,this[_0x11f103(0x2e9)],this[_0x11f103(0x538)],_0x52ebd0,this[_0x11f103(0x2a8)],this[_0x11f103(0x455)]);else{if(_0x42c3ce[_0x11f103(0x47a)]!==0x0){let _0x30e805=this[_0x11f103(0x475)]['createInstance'](A,this['unitID'],this[_0x11f103(0x538)],_0x42c3ce,this[_0x11f103(0x2a8)]);_0x30e805['_schedule'](),_0x121c64=_0x30e805;}else _0x121c64=this[_0x11f103(0x475)][_0x11f103(0x3e2)](k,this[_0x11f103(0x2e9)],this[_0x11f103(0x538)],this[_0x11f103(0x2a8)]);}}return _0x121c64[_0x11f103(0x2ac)](),_0x121c64;}catch(_0x36f16f){return _0x36f16f instanceof He?(this['_logService'][_0x11f103(0x2ba)]('[FetchMissState]',_0x36f16f[_0x11f103(0x34c)]),this[_0x11f103(0x1c0)](_0x36f16f[_0x11f103(0x520)])):(this['_logService'][_0x11f103(0x456)](_0x11f103(0x479),'failed\x20to\x20apply\x20missed\x20changesets!',_0x36f16f),this[_0x11f103(0x1c0)](this[_0x11f103(0x4c5)](_0x36f16f)));}}['_handleRemoteChangesets'](_0x5b95ab){const _0x54ef7e=_0x28bbb9;this['_acknowledgeAwaitingIfReady']();for(let _0x1dc71b=0x0;_0x1dc71b<_0x5b95ab[_0x54ef7e(0x47a)];_0x1dc71b++){let _0x42d67f=_0x5b95ab[_0x1dc71b];switch(this['_classifyRemoteChangeset'](_0x42d67f)){case'echo':{let _0x30376c=this['_getCurrentRevision']();if(_0x42d67f[_0x54ef7e(0x27c)]>_0x30376c+0x1)return{'missingChangesets':!0x0};_0x42d67f[_0x54ef7e(0x27c)]<=_0x30376c?this[_0x54ef7e(0x40f)]():this['_acknowledgeAwaiting']();break;}case _0x54ef7e(0x318):throw new He(this[_0x54ef7e(0x208)](_0x42d67f));case _0x54ef7e(0x363):break;case'missing':return{'missingChangesets':!0x0};case _0x54ef7e(0x1ea):this[_0x54ef7e(0x44b)](_0x42d67f),this[_0x54ef7e(0x3b3)]();}}return{'missingChangesets':!0x1};}[_0x28bbb9(0x44b)](_0x2fd23d){const _0x3320aa=_0x28bbb9;let _0x1b1b4a=_0x2fd23d,_0x227b7f=this[_0x3320aa(0x524)];if(_0x227b7f){let _0x46b3a8=this[_0x3320aa(0x1f2)][_0x3320aa(0x515)]([_0x2fd23d],[_0x227b7f],!0x1);if(!(0x0,n[_0x3320aa(0x55e)])(_0x46b3a8))throw _0x46b3a8['error'];_0x1b1b4a=_0x46b3a8[_0x3320aa(0x310)][0x0],_0x227b7f=_0x46b3a8[_0x3320aa(0x254)][0x0];}let _0x4fb769=this[_0x3320aa(0x4f8)];if(_0x4fb769[_0x3320aa(0x47a)]){let _0x478396=this[_0x3320aa(0x1f2)][_0x3320aa(0x541)](_0x1b1b4a,_0x4fb769);if(!(0x0,n[_0x3320aa(0x4a7)])(_0x478396))throw _0x478396['error'];_0x1b1b4a=_0x478396[_0x3320aa(0x310)],_0x4fb769=_0x478396[_0x3320aa(0x3bd)];}this[_0x3320aa(0x3c5)](_0x1b1b4a),_0x227b7f&&(_0x227b7f['baseRev']=this[_0x3320aa(0x2b6)]()),this['_awaitingChangeset']=_0x227b7f,this['_pendingMutations']=_0x4fb769;}['_acknowledgeAwaitingIfReady'](){const _0xc52883=_0x28bbb9;if(!this[_0xc52883(0x524)]||this['_acknowledgedAwaitingRevision']==null)return;let _0xefeddc=this['_getCurrentRevision']();if(this[_0xc52883(0x21b)]<=_0xefeddc)throw Error(_0xc52883(0x4a9)+this['_acknowledgedAwaitingRevision']+'.');this[_0xc52883(0x21b)]===_0xefeddc+0x1&&this[_0xc52883(0x35d)]();}[_0x28bbb9(0x35d)](){const _0x2c679e=_0x28bbb9;this['_incrementRevisionNumber'](),this[_0x2c679e(0x40f)]();}[_0x28bbb9(0x40f)](){const _0x53d614=_0x28bbb9;this[_0x53d614(0x524)]=null,this['_acknowledgedAwaitingRevision']=null,this[_0x53d614(0x42d)]();}['_disposeSubmitter'](){const _0x70cbdc=_0x28bbb9;var _0x35bc27;(_0x35bc27=this[_0x70cbdc(0x455)])==null||_0x35bc27[_0x70cbdc(0x3ac)](),this['_submitter']=void 0x0;}['dispose'](){const _0x4e0289=_0x28bbb9;this[_0x4e0289(0x42d)]();}[_0x28bbb9(0x462)](){const _0x31cd2d=_0x28bbb9;throw Error(_0x31cd2d(0x3a9));}[_0x28bbb9(0x2b9)](_0x34b04a){const _0x59f29a=_0x28bbb9;return this[_0x59f29a(0x4f8)]['push'](_0x34b04a),this[_0x59f29a(0x2ac)](),this;}[_0x28bbb9(0x458)](_0x25c986){const _0x171f0f=_0x28bbb9;return this[_0x171f0f(0x392)][_0x171f0f(0x4ec)](_0x25c986),this;}[_0x28bbb9(0x48f)](_0x1cb8fd){const _0x4013e4=_0x28bbb9;let _0x501c90=this['_classifyAck'](_0x1cb8fd);if(this[_0x4013e4(0x524)]){switch(_0x501c90){case'ack_of_awaiting':this[_0x4013e4(0x40f)]();break;case'stale':break;case _0x4013e4(0x512):this[_0x4013e4(0x35d)]();break;case _0x4013e4(0x518):this[_0x4013e4(0x21b)]=_0x1cb8fd[_0x4013e4(0x27c)],this['_disposeSubmitter']();}return this;}if(_0x501c90==='stale')return this;throw Error(_0x4013e4(0x4a1));}[_0x28bbb9(0x4df)](_0x1cf335){const _0x174bf2=_0x28bbb9;return this[_0x174bf2(0x1c0)](this['_rejectionInfo'](_0x1cf335));}[_0x28bbb9(0x49f)](_0x57f361){const _0x4000d9=_0x28bbb9;var _0x325d50;return this[_0x4000d9(0x21b)]!=null||_0x57f361[_0x4000d9(0x4cd)]!==((_0x325d50=this[_0x4000d9(0x524)])==null?void 0x0:_0x325d50[_0x4000d9(0x4cd)])||(this[_0x4000d9(0x455)]??=this['_createChangesetSubmitter'](this[_0x4000d9(0x524)]),this[_0x4000d9(0x455)][_0x4000d9(0x34d)]()),this;}[_0x28bbb9(0x27a)](){const _0x5a1718=_0x28bbb9;return this[_0x5a1718(0x42d)](),this[_0x5a1718(0x475)]['createInstance'](P,this[_0x5a1718(0x2e9)],this[_0x5a1718(0x538)],this[_0x5a1718(0x524)],this[_0x5a1718(0x4f8)],this[_0x5a1718(0x2a8)]);}[_0x28bbb9(0x2e4)](){return this;}[_0x28bbb9(0x1c0)](_0x4883b9){const _0x16ef32=_0x28bbb9;return this[_0x16ef32(0x42d)](),this[_0x16ef32(0x475)][_0x16ef32(0x3e2)](N,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x16ef32(0x4f8)],this[_0x16ef32(0x2a8)],_0x4883b9);}};F=b([y(0x8,(0x0,r['Inject'])(r[_0x28bbb9(0x506)])),y(0x9,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0xa,r[_0x28bbb9(0x369)]),y(0xb,r[_0x28bbb9(0x382)]),y(0xc,r['IUndoRedoService']),y(0xd,n[_0x28bbb9(0x4fc)]),y(0xe,(0x0,r[_0x28bbb9(0x1cd)])(C))],F);function _0x1757(){const _0x10b0f4=['forEach','confirm','deleteCollaborator','liveShareOperation','_refreshUnitPermission','_clearRedo','unbind','getLatestCsReqIdBySid','liveShareNewHost','getOwnPropertyDescriptor','_transformIMECache','allowed','sessionStatus$','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_hasSessionsForEndpoint','from','subUnitId','message$','maxSize','max','LIVESHARE_OPERATION','createSocket','HTTPService','univer-pro.collaboration-client-socket-service','_upload','getTime','_waitForHeartbeatResponse','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','UNIVER_SLIDE','_handleRemoteChangesets','toRemote','/-/object/list','_createInitialState','[DataLoaderService]','hasLocalChanges','emitEvent','refreshPermission','putCollaborators','_dropAcknowledgedAwaiting','Slide','/universer-api/oidc/authpage','PSEUDO_FETCH_MISSING_RESULT','JSONX','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','applyError','6gYFRkN','deepClone','takeUntil','infoRsp','textRanges','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_transit','Base','_logService','defineProperty','deleteProperty','IConfigService','CHANGESET_SHOULD_RETRY','setCfgEnableObjInherit','getFocusedUnit','isFinite','/fetchmissing?from=','IPermissionService','tables','_requestMissingChangesets','_adapter','candidateSocket','1977772EhjSud','_disposeSubmitter','UserManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_initRequestHeader','Inject','pending','_userManagerService','updateMember','_syncEditingCollabCursor','getUploadOptions','session.room-cnt-exceeds','awaitingChangeset','_attempt','_status$','_sendHeartbeat','COMMENT_UPDATE','UnitEmbedded','_onOffline','IMentionIOService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','members$','_scheduleCompleteTimestamp','enableSingleActiveInstanceLock','_loadSnapshot','newCsEvent','call','workbook','csShouldRetryEvent','UNIVER_BOARD','CollaborationSession','_transformAndApplyRemoteChangeset','collaborators','LIVESHARE_NEW_HOST','GLOBAL_ROOMS_CNT_EXCEEDS','_nextDelay','_getSocketChannel','_notifyResend','ICollaborationSocketService','params','text-x','_submitter','error','disposeWithMe','onRemoteChangeset','onApply','REPLACE','createIdentifier','_onRemoteRetry','433hVzgDk','LEAVE','BehaviorSubject','_revisionService','_undoStacks','resend','_redoStacks','RETRY_CONNECTING_MAX_COUNT_KEY','_updateState','\x20to\x20','_startTelemetryCollaborationNewChangeset','_eventService','upload','_transformUndoredo','SOCKET_FAILED','len','retryConnectingTimer','_getAPIPrefix','filter','_deliver','SnapshotService','awaiting_with_pending','_docStateChangeManagerService','IAttachmentIoService','_injector','packageName','univer-pro.collaboration-client.network-condition.service','_createChangesetSubmitter','[FetchMissState]','length','userID','[OfflineState]','loginUrlKey','objectActions','_transformAndApply','sheets','reject','_lockTransition','session','replace','map','UNIVER_SHEET','invertWithDoc','_onMessage','reason','_source','resent\x20changeset\x20','fetch_missing','enableAuthServer','changesetAckTimeout','onRemoteAck','b64DecodeUnicode','delay','min','IUndoRedoService','_snapshotService','_transformSelections','?url=','ack_of_awaiting','FETCH_MISSING','HEARTBEAT','onSendChangeset','NEW_CHANGESETS','writeAtPath','registerHTTPInterceptor','RevisionService','onRemoteRetry','FETCH_MISS','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_fetchMissChangesets','now','catch','_localCacheService','_onCombEvent','isTransformMutationsWithChangesetSuccess','createUniverCollaborationAdapter','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','MUTATION','_transformStack','localChanges','saveImage','updateCollaborator','2046070JosXRQ','MemberService','findIndex','_unsyncedMutationCount','CONFLICT_PROCESSING','then','UnitAction','commit','_univerInstanceService','_socketService','collaboratorID','/-/object/-/batch_allowed','AddSlidePageMutation','TimeoutError','_submitChangeset','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','connection\x20error','toString','action','equals','UNIVER_COLLABORATION_CLIENT_PLUGIN','_firstSentAt','_conflictInfoFromError','getCollabEntity','save\x20fail\x20reason\x20is\x20','49749513ulYfjy','_createSocket','maxAckTimeout','state$','_maxAckTimeout','reqId','_initMergeInterceptor','Tools','[CollaborationSocketService]','capture','code','stringify','endsWith','authzUrl','_classifyRemoteChangeset','RichTextEditingMutation','reconnect','_unlockTransition','OTHER_CLIENT_EDITING','trim','COMPRESS_MUTATION_SEND','startsWith','withCredentials','onRemoteRej','session.room-not-exists','PERSON','_state','unknown','parseProtocolChangeset','Failed\x20to\x20update\x20permission\x20point','slice','_handlerCallback','synced','PENDING','_onConnectionOpen','UpdateDocsAttributeType','push','SnapshotServerOverHTTPService','_pendingReason','_registerDependencies','nextDelayMs','JOINING','3884363PDbCxW','ImageSourceType','RETAIN','getGlobalObject','onMissedChangesetFetched','_clearHandshakeTimer','_pendingMutations','localUnitId','/universer-api/authz','keys','ITransformService','_toSynced','CollaborationStatus','/universer-api/user/session-ticket','_waitCount','create','_isAckOfAwaitingChangeset','CONFLICT_CACHE_CLEAR_FAILED','submitting\x20changeset\x20','_invertDocumentHistory','Injector','DocCollaborationEntity','_telemetryInfo','changesets','People','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','state','parseChangesetToProtocol','MentionType','PendingState','_timer','getAttachmentUrl','next','entityInit$','_joinRoom','transformChangesets','_getUploadFileURL','_transformRemoteChangesetByStateCache','missing','pauseCollaboration','elapsedMs','CollaborationSocketService','IUniverInstanceService','onPrepareTransformSelections','_transformRemoteChangesetByIMECache','tableSource','info','diffValue','Plugin','createCollaborator','_awaitingChangeset','TextXActionType','onResend','getImage','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','/resources','HELLO','_clearRetryConnectingTimer','waitForRoom$','SheetCollaborationEntity','socketReady','Error\x20on\x20receiving\x20event','_tryReconnect','conflict$','_socketChannels','UNISCRIPT_RUN','isObject','disableLocalCache','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_sessionStatus$','type','includes','startTime','_isEchoedAwaitingChangeset','enableCollaboration','isInternalEditorID','retryConnectingInterval','_countResend','RECV','transformMutationsWithChangeset','collabSubmitChangesetUrl','attempt','{fileID}','/universer-api/file/{fileID}/sign-url','has','_change$','cbc','DisposableCollection','_clearScheduledTask','_loadUnit','/universer-api/snapshot','_commentUpdate$','SessionStatus','unit','_showConflictProcessingNotification','delete','find','_telemetryService','_initUnitPermissionChange','ICollaborationClientAdapterService','fetchMissingChangesets','collaboration-client.auth.needGotoLoginAlert','ITelemetryService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_toggleOnline','updateOfflineData','saveChangeset','dispose$','isTransformChangesetsSuccess','loadUnit','updateCursorEvent','\x20at\x20revision\x20','_toggleOffline','ImageUploadStatusType','getSheetBlock','ws://127.0.0.1:8000/universer-api/comb/connect','unitInfo$','enableOfflineEditing','_removeRoom','Edit','_closedUnits','RemoveSlidePageMutation','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','snapshotServerUrl','/object','ErrorCode','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','[UniverCollaborationClientPlugin]','MoveSlidePageMutation','BASE64','RevertRevisionMutation','headers','_onLocalMutation','editingUnit','_onConflict','submit','/universer-api/stream/file/upload','unit-cache-','_retryBackoff','InsertSheetMutation','_clearUndo','_disposed','_updateUnitPermissionPoint','addHandlerCallback','splice','_commentService','ignored\x20stale\x20ack\x20of\x20revision\x20','Optional','loadSheet','[CollaborationSessionService]','\x0aCurrent:\x20','removeMember','_emitMembers','UUID','_sheetTransformSelectionsService','ConflictState','version','PERMISSION_DENIED','send','serializeCombRequest','_sessions','getActiveSheet','UniverLicensePlugin','getUnitStatus$','_conflict$','CompressMutationService','refreshUnit','_decreaseWaiting','getUnit','routeKey','endpoint','session.room-full','_changesetSessionId','collabWebSocketUrl','size','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','apply','_createInitialStateImpl','echo','uploadFileServerUrl','UPDATE_CURSOR','append','CollaborationSessionService','getSnapshot','_transformService','getCurrentRevOfUnit','\x0aAfter:\x20','getCurrentUser','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_pendingSessions','close$','_onJoinRoomEvent','Univer','DEFAULT_ACK_TIMEOUT','329790lYNSju','/collaborator','_rescheduleHeartbeat','interceptor','closeSession','_ackTimeout','fetchMiss','offline','roomInfos','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','loadDoc','hasWritePending','_remoteRevertInfo','concatMap','SUBMIT_CHANGESET_TIMEOUT','_substituteUndoStack','onStateChange','[PendingState]:\x20received\x20acknowledgement.','transform_failed','_unitInfo$','getWorkbookSelections','duration','unitId','pipe','objects','entries','encode','FileId','Workbook','every','__Key__','_acknowledgedAwaitingRevision','_entities','collaboration-client.local-cache-service','sendHeartbeatTimer','JOIN','mutations','[CollaborationEntity]','_localeService','CommentService','commentUpdate$','_authzIoService','[SyncedState]:\x20received\x20acknowledgement.','_remoteChangesetQueue','_event$','[CollaborationSessionService]:\x20socket\x20error','SHOULD_CLOSE_CONN','unitDisposed$','RxDisposable','_collaborationSessionService','readyForCollab','closed','getConfig','toLocal','SUCCUSS','_singleActiveUnitService','name','_clearTimeoutTimer','__splitChunk__','IDLE','_collaborationPaused','/object/','Subscription','collaMsg','_getCtorByUniverInstanceType','_transitionLocked','writeCursor','ack_timeout','_init','onMissingChangesets','objectID','base-ui.attachment-io.service','_onConnectionFailed','resendTimeouts','file','_sendToken','onConflict','supports','ISingleActiveUnitService','UniverInstanceType','compose','_HTTPService','location','generateRandomId','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','getAllPermissionPoint','_clearHeartbeatTimer','stream','c2Prime','_reqId','getImageSourceCache','conflict','function','_onRequestFailed','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','object','LocaleService','45RFfapT','armAckTimeout','_rebaseUnchangedAttributes','bind','_options','getMember','hostname','subscribe','_commandService','onMutationExecutedForCollab','PdfCollaborationEntity','getMemberID','HEARTBEAT_TIMEOUT','getSnapshotAPIPath','sort','_entityInit$','POST','session.room-permission-denied','requestParams','CollaborationController','UniverCollaborationPlugin','_onRecvEvent','_initCloseConn','constructor','reverse','_getRedoStack','objectType','toDisposable','coverType','toggleOffline','_state$','revision','_roomCreated$','request_failed','/universer-api/uniscript','LocalUndoRedoService','endpointKey','getInterceptPoints','LIVESHARE_FETCH_OPERATIONS','_replayCachedMutations','get','getUnitType','OBJECT_PERMISSION_CONFIG_KEY','[CollaborationUndoRedoService]','href','localCacheService','_listenToNetworkCondition','resolveWithBasePath','HTTPRequest','AwaitingWithPendingState','telemetry\x20info\x20is\x20not\x20initialized','status','CombCmd','_filterTableActions','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getCollabEntities','registerDependencies','SUBMIT_CHANGESET','UNIVER_DOC','socket$','status$','paragraphId','SlideCollaborationEntity','_createHandler','target','timeout','attachment','changeset_rejected','addImageSourceCache','_now','SetSelectionsOperation','_httpService','_substituteRedoStack','onSyncEditingCollabCursor','66pyjrjD','_handler','/allowed','saveAttachment','_compressMutationService','_updateLocalCache','RemoteRevertError','range','signUrlServerUrl','_roomMembers','CONFLICT','_type','timeoutTimer','HTTPResponseError','Response','_getCurrentRevision','_networkConditionService','mergeOverrideWithDependencies','appendMutation','debug','onStarting','_dispatchRemoteChangeset','executeCommand','transformUndoRedo','AwaitingState','SNAPSHOT_URL_KEY','DEFAULT_COLLAB_WEB_SOCKET_URL','ThresholdInterceptorFactory','isTransformMutationsWithChangesetFailure','UnitObject','stopTime','members','_config','_configService','_sendingTimer','CollaborationUIEventId','_cfgEnableObjInherit','getValue','roles','3226KQYVYD','?size=','toPrimitive','_changesetReqId','encodeURIComponent','AuthzIoHttpService','string','subject','rollback','touchDependencies','_getUndoStack','changeset','setConfig','_instanceService','_rebaseParagraphHistory','uniscriptRunEvent','onTransformRemoteChangesetByStateCache','transformSelections','onRemoteRevert','_getAPIPrefixPath','ignored\x20acknowledgement\x20of\x20revision\x20','origin','toggleOnline','_members$','handshakeTimer','CmdRspCode','isArray','unitID','localeService','OTHER_CLIENTS_EDITING','retryCount','_resend','_shouldReportTelemetry','_getSignURL','CLOSE_ROOM','resolveUnit','_getUnitPermissionPoints','event$','subType','_tryEnsureSocket','online','getDrawingImageAllowSize','RemoteChangesetApplyError','getRoom','_onRemoteChangeset','DEFAULT_FILE_NAME','&source=','getCollabEntity$','values','eventID','/unit/','fetchThroughInterceptors','symbol','RETRY_CONNECTING_MAX_COUNT','deserializeToCombResponse','&to=','sendChangesetTimeout','_applyRemoteChangeset','_socket','startIndex','paragraph','_onRemoteRejected','\x20in\x20_schedule.','_members','prototype','complete','c1Prime','clear','unitLoaded$','USERS_ENTER','CommandType','toStringTag','FAIL','onTransformIME','remote_revert','result','_send','updatePermissionObjEvent','INGEST','url','readAsDataURL','CHANGESET_ACK','ISocketService','uuidv4','ChangesetSubmitter','CollaborativeUndoRedoService','EmptyMutationInfo','leaveEvent','close','onlyLocal','paragraphs','cmd','OPTIONAL','fromCollab','clearUnit','sid','COLLABORATION_ENDPOINT_INVALID','asObservable','_onUserJoin','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','LOCAL_CACHE_INTERVAL_KEY','src','_memberService','CollaborationImageIoService','listCollaborators','loadBase','stale','override','onLocalMutation','isNoop','saveSheetBlock','getPath','some','CollaborationEvent','body','_startCollaboration','getTypeOfUnitAdded$','MergeInterceptorFactory','_sessionChannels','requireSession','MSG_FOR_ERROR','_toPending','onTransformRemoteChangesetByIMECache','AWAITING','readCursor','/universer-api/snapshot/','message','requestRetry','_unitLoaded$','revert','data','editing\x20status\x20changed\x20to','focused$','JOIN_ROOM_FAILED','init','textEncoder','HEARTBEAT_INTERVAL_KEY','Document','pluginName','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','OFFLINE','joinRsp','LIVESHARE_TERMINATE','_acknowledgeAwaiting','awaiting','ISnapshotServerService','decorate','initWorkbookPermissionChange','memberID','applied','getResourcesRequest','DependentOn','missingChangesets','UNIVER_PDF','SyncedState','ILogService','set','post','originalMeta','hasOwnProperty','open$','@univerjs-pro/collaboration-client','_permissionService','WorkbookEditablePermission','objectPermissionTypes','_classifyAck','_onFetchMissResult','_detachSubmitter','transformStack\x20failed!','_undoRedoService','number','_getSendChangesetTimeout','_rejectionInfo','[PendingState]:\x20received\x20rejection.','setWaitCount','UPDATE_PERMISSION_OBJ','_socketMessageSubscription','CHANGESET_REJ','downloadEndpointUrl','randomBytes','ICommandService','indexOf','socketService','[SyncedState]:\x20received\x20rejection.','_getLoginPath','_onRemoteACK','getSheetId','CollaborationEntity','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getDeserializedSheetBlock','CollaborationUIEventService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','mapDocumentTypeToUniverInstanceType','charCodeAt','utf8ToBytes','onTransformSelections','_queuedRemoteChangesets','getAllMembers','objectId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Board','_changesetResend$','copyFileMeta','_identity','Subject','HEARTBEAT_INTERVAL','error$','_disableEditing','_throwTelemetryCollaborationNewChangeset','saveSnapshot','connectionAttempt','PERMISSION_REJ','LOCAL_CACHE_INTERVAL','add','blockRanges','baseRev','univer-pro.collaboration-client.single-active-unit-service','_createSession','sessionStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','DocStateChangeManagerService','HTTP\x20','dispose','Disposable','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','rev','_updateStatus','socketSubscription','IAuthzIoService','_acknowledgeAwaitingIfReady','MAX_ACK_TIMEOUT','_collaborationUIEventService','LIVESHARE_REQUEST_HOST','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','loadOfflineData','reduce','ObjectPermissionService','UNIVER_BASE','collaboration_new_changeset','m2Prime','3688632YtMDKx','apply_failed','_getConfig','selections','_imageSourceCache','/new_changes','HTTPEventType','_executeRemoteChangeset','ignored\x20remote\x20changeset\x20of\x20revision\x20','unsubscribe','BaseCollaborationEntity','_transformHistoryMutations','_transformStateCache','take','updatePermissionPoint','permission_rejected','getTypeOfUnitDisposed$','socket\x20open.','_prepareTransformSelections','actions','_schedule','JSON1','_clearTimer','/block/','commentUpdateEvent','loadSlide','_replaceFileID','_exhaustRemoteChangesetQueue','unitType','Quantity','_stopTelemetryCollaborationNewChangeset','_initDependencies','csAckEvent','_getDownloadEndpointURL','_resolveSessionIdentity','merge','createInstance','Rectangle','INSERT','traverse','_prepareConflictRecovery','getUnitId','USERS_LEAVE'];_0x1757=function(){return _0x10b0f4;};return _0x1757();}function We(_0x476143,_0x3e9aad,_0x18247e,_0x55e8ff,_0x316f3a,_0x5d3f8c){const _0x19d168=_0x28bbb9;return _0x55e8ff&&_0x316f3a[_0x19d168(0x47a)]?_0x476143[_0x19d168(0x3e2)](M,_0x3e9aad,_0x18247e,_0x55e8ff,_0x316f3a,_0x5d3f8c,void 0x0):_0x55e8ff?_0x476143[_0x19d168(0x3e2)](j,_0x3e9aad,_0x18247e,_0x55e8ff,_0x5d3f8c,void 0x0):_0x316f3a[_0x19d168(0x47a)]?_0x476143[_0x19d168(0x3e2)](A,_0x3e9aad,_0x18247e,_0x316f3a,_0x5d3f8c):_0x476143[_0x19d168(0x3e2)](k,_0x3e9aad,_0x18247e,_0x5d3f8c);}let I=class extends r['RxDisposable']{get[_0x28bbb9(0x50c)](){return this['_state'];}constructor(_0x2a92fe,_0x1e3d30,_0x356965,_0x45c54a,_0x5b6d18,_0xb0120e,_0x21f09a,_0x472fce,_0x205cb4,_0x17a613,_0x490e3c,_0x12b434,_0x3524d1,_0x1b7f96){const _0x4f1443=_0x28bbb9;super(),this[_0x4f1443(0x2e9)]=_0x2a92fe,this[_0x4f1443(0x483)]=_0x1e3d30,this[_0x4f1443(0x2b2)]=_0x356965,this[_0x4f1443(0x475)]=_0x45c54a,this[_0x4f1443(0x2ab)]=_0x5b6d18,this[_0x4f1443(0x222)]=_0xb0120e,this[_0x4f1443(0x460)]=_0x21f09a,this[_0x4f1443(0x468)]=_0x472fce,this[_0x4f1443(0x4b7)]=_0x205cb4,this['_logService']=_0x17a613,this['_commandService']=_0x490e3c,this[_0x4f1443(0x370)]=_0x12b434,this[_0x4f1443(0x233)]=_0x3524d1,this[_0x4f1443(0x4a5)]=_0x1b7f96,_(this,_0x4f1443(0x27b),new t[(_0x4f1443(0x45f))](null)),_(this,_0x4f1443(0x4cb),this['_state$'][_0x4f1443(0x32f)]()),_(this,'_state',void 0x0),_(this,_0x4f1443(0x238),!0x1),_(this,'_changesetSessionId',''),_(this,'_changesetReqId',0x0),_(this,_0x4f1443(0x299),this[_0x4f1443(0x4cb)][_0x4f1443(0x213)]((0x0,t[_0x4f1443(0x485)])(_0x10f010=>_0x10f010?_0x10f010['status']:_0x4f1443(0x203)),(0x0,t['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0x4f1443(0x397),new t[(_0x4f1443(0x39a))]()),_(this,'changesetResend$',this[_0x4f1443(0x397)][_0x4f1443(0x32f)]()),_(this,_0x4f1443(0x1de),new t[(_0x4f1443(0x39a))]()),_(this,_0x4f1443(0x531),this['_conflict$'][_0x4f1443(0x32f)]()),_(this,_0x4f1443(0x23d),!0x1),_(this,_0x4f1443(0x227),[]);}async[_0x28bbb9(0x354)](){const _0x3e7b1e=_0x28bbb9;if(this[_0x3e7b1e(0x50c)])throw Error(_0x3e7b1e(0x56c));await this[_0x3e7b1e(0x240)]();}[_0x28bbb9(0x519)](){return this['_collaborationPaused']=!0x0,(0x0,r['toDisposable'])(()=>{const _0x5f3317=_0x53d0;this[_0x5f3317(0x238)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x28bbb9(0x33a)](_0x5eb3a0){const _0x55d191=_0x28bbb9;this[_0x55d191(0x1be)](_0x5eb3a0);}['hasWritePending'](){const _0x1c33b4=_0x28bbb9;var _0x234f6c;return((_0x234f6c=this['_state'])==null?void 0x0:_0x234f6c[_0x1c33b4(0x40b)]())??!0x1;}[_0x28bbb9(0x3ac)](){const _0x590fbe=_0x28bbb9;var _0x46b8c3;super['dispose'](),(_0x46b8c3=this[_0x590fbe(0x4e2)])==null||_0x46b8c3['dispose'](),this[_0x590fbe(0x397)][_0x590fbe(0x30f)](),this[_0x590fbe(0x1de)][_0x590fbe(0x30f)]();}['_updateState'](_0x211cec){const _0x24daa1=_0x28bbb9;this[_0x24daa1(0x4e2)]=_0x211cec,this[_0x24daa1(0x27b)]['next'](_0x211cec);}async['_init'](){const _0x104f31=_0x28bbb9;if(this[_0x104f31(0x465)](await this[_0x104f31(0x409)]()),this[_0x104f31(0x233)]){var _0x15561c;(_0x15561c=this[_0x104f31(0x233)])==null||_0x15561c[_0x104f31(0x1bf)](this[_0x104f31(0x2e9)]),this[_0x104f31(0x457)](this['_singleActiveUnitService'][_0x104f31(0x1dd)](this[_0x104f31(0x2e9)])[_0x104f31(0x264)](_0x284cad=>{const _0x1031d6=_0x104f31;this[_0x1031d6(0x41e)][_0x1031d6(0x2ba)](_0x1031d6(0x221),_0x1031d6(0x351),_0x284cad),_0x284cad===0x1?(this[_0x1031d6(0x468)][_0x1031d6(0x40c)]({'id':_0x1031d6(0x4da)}),this[_0x1031d6(0x370)][_0x1031d6(0x3cc)](new a[(_0x1031d6(0x371))](this['unitID'])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this['_permissionService'][_0x1031d6(0x3cc)](new a['WorkbookEditablePermission'](this[_0x1031d6(0x2e9)])['id'],!0x0),this[_0x1031d6(0x370)]['setShowComponents'](!0x0));}));}let _0x4b8ae8=!0x1;return this[_0x104f31(0x457)](this['session'][_0x104f31(0x3f5)][_0x104f31(0x264)](_0x1928ba=>{const _0x1ecc34=_0x104f31;_0x1928ba===0x3?this[_0x1ecc34(0x55a)](_0x4b8ae8):_0x1928ba===0x2&&(_0x4b8ae8=!0x0,this['_toggleOffline']());})),this[_0x104f31(0x457)](this[_0x104f31(0x483)][_0x104f31(0x2f3)][_0x104f31(0x264)](_0x31d114=>{const _0x5bd0bf=_0x104f31;try{switch(_0x31d114[_0x5bd0bf(0x2ff)]){case n[_0x5bd0bf(0x33f)]['NEW_CHANGESETS']:this[_0x5bd0bf(0x2fa)]((0x0,n[_0x5bd0bf(0x4e4)])(_0x31d114[_0x5bd0bf(0x350)]));break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x31f)]:this[_0x5bd0bf(0x387)](_0x31d114[_0x5bd0bf(0x350)]);break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x37f)]:this[_0x5bd0bf(0x30b)]();break;case n['CollaborationEvent'][_0x5bd0bf(0x422)]:this[_0x5bd0bf(0x45c)](_0x31d114[_0x5bd0bf(0x350)]);break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x412)]:this[_0x5bd0bf(0x374)](_0x31d114[_0x5bd0bf(0x350)][_0x5bd0bf(0x509)][_0x5bd0bf(0x485)](_0x4c02ed=>(0x0,n[_0x5bd0bf(0x4e4)])(_0x4c02ed)));break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x3a1)]:this[_0x5bd0bf(0x30b)]({'isPermissionRej':!0x0});break;case n['CollaborationEvent']['UNISCRIPT_RUN']:}}catch(_0x357388){throw console[_0x5bd0bf(0x456)](_0x5bd0bf(0x52f),_0x357388),_0x357388;}})),this['_state'];}[_0x28bbb9(0x4d9)](){this['_transitionLocked']=!0x1;}[_0x28bbb9(0x482)](){const _0x2a1484=_0x28bbb9;if(this['_transitionLocked'])throw Error('[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.');this[_0x2a1484(0x23d)]=!0x0;}[_0x28bbb9(0x41c)](_0x2b073a){const _0x10baa7=_0x28bbb9;this['_lockTransition']();try{this[_0x10baa7(0x465)](_0x2b073a());}finally{this[_0x10baa7(0x4d9)]();}}[_0x28bbb9(0x1be)](_0x2ef994){const _0x22f7d1=_0x28bbb9;this['_transit'](()=>this[_0x22f7d1(0x4e2)][_0x22f7d1(0x2b9)](_0x2ef994));}['_onRemoteChangeset'](_0x2985a1){const _0x3bb587=_0x28bbb9;this[_0x3bb587(0x238)]?this[_0x3bb587(0x227)]['push'](_0x2985a1):this[_0x3bb587(0x307)](_0x2985a1);}[_0x28bbb9(0x3d9)](){const _0x3556e7=_0x28bbb9;this[_0x3556e7(0x227)]['forEach'](_0x28683d=>this[_0x3556e7(0x307)](_0x28683d)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x142168){const _0x49f46c=_0x28bbb9;let _0x57540b=this['_compressMutationService'][_0x49f46c(0x1ff)][_0x49f46c(0x301)](this['_compressMutationService'][_0x49f46c(0x1ff)][_0x49f46c(0x282)]()['COMPRESS_MUTATION_APPLY'])(_0x142168['mutations'],null)||_0x142168['mutations'],_0x5efe4a={..._0x142168,'mutations':_0x57540b};this[_0x49f46c(0x41c)](()=>this[_0x49f46c(0x4e2)][_0x49f46c(0x458)](_0x5efe4a));}['_onRemoteACK'](_0x35c5a8){const _0x2cb4b5=_0x28bbb9;this[_0x2cb4b5(0x41c)](()=>this['_state'][_0x2cb4b5(0x48f)](_0x35c5a8));}[_0x28bbb9(0x30b)](_0xf024d6){const _0x1f3ed2=_0x28bbb9;this[_0x1f3ed2(0x41c)](()=>this[_0x1f3ed2(0x4e2)][_0x1f3ed2(0x4df)](_0xf024d6));}['_onRemoteRetry'](_0x2daebe){const _0x33cb97=_0x28bbb9;this[_0x33cb97(0x41c)](()=>this[_0x33cb97(0x4e2)][_0x33cb97(0x49f)](_0x2daebe));}[_0x28bbb9(0x374)](_0xe3a8ca){const _0x4bfa84=_0x28bbb9;let _0x1b954f=this[_0x4bfa84(0x4e2)];if(!(_0x1b954f instanceof F))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x5dd757=_0xe3a8ca[_0x4bfa84(0x485)](_0x1af16f=>{const _0x237c28=_0x4bfa84;let _0x3f2b07=this['_compressMutationService'][_0x237c28(0x1ff)]['fetchThroughInterceptors'](this[_0x237c28(0x2ab)][_0x237c28(0x1ff)][_0x237c28(0x282)]()['COMPRESS_MUTATION_APPLY'])(_0x1af16f[_0x237c28(0x220)],null)||_0x1af16f[_0x237c28(0x220)];return{..._0x1af16f,'mutations':_0x3f2b07};});this['_transit'](()=>_0x1b954f[_0x4bfa84(0x4f6)](_0x5dd757));}[_0x28bbb9(0x562)](){const _0x39379e=_0x28bbb9;this[_0x39379e(0x41c)](()=>this['_state'][_0x39379e(0x27a)]());}[_0x28bbb9(0x55a)](_0x48c511=!0x1){const _0x2502fc=_0x28bbb9;this[_0x2502fc(0x41c)](()=>this[_0x2502fc(0x4e2)][_0x2502fc(0x2e4)]());let _0x348725=this[_0x2502fc(0x4e2)];_0x48c511&&_0x348725 instanceof k&&this['_transit'](()=>_0x348725[_0x2502fc(0x202)]());}async['_createInitialState'](){return new Promise(_0x5e4987=>{const _0x17098d=_0x53d0;this[_0x17098d(0x483)][_0x17098d(0x3f5)]['pipe']((0x0,t[_0x17098d(0x3cb)])(0x1))['subscribe'](async _0x40607d=>{_0x5e4987(await this['_createInitialStateImpl'](_0x40607d===0x3));});});}['_createHandler'](){const _0x3cc255=_0x28bbb9;let _0x46c168=this[_0x3cc255(0x2e9)],_0x1d1b39=this[_0x3cc255(0x475)][_0x3cc255(0x285)](r['IConfigService'])[_0x3cc255(0x230)](m);return{'resendTimeouts':{'ackTimeout':_0x1d1b39==null?void 0x0:_0x1d1b39[_0x3cc255(0x48e)],'maxAckTimeout':_0x1d1b39==null?void 0x0:_0x1d1b39['maxChangesetAckTimeout']},'onStateChange':(_0x519d12,_0x21b04a)=>{const _0x41c08b=_0x3cc255;if(_0x519d12!==this[_0x41c08b(0x4e2)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x519d12[_0x41c08b(0x290)]+_0x41c08b(0x1f4)+_0x21b04a[_0x41c08b(0x290)]+_0x41c08b(0x1d0)+this['_state'][_0x41c08b(0x290)]);this[_0x41c08b(0x465)](_0x21b04a);},'onSendChangeset':(_0x10546b,_0x9e6383)=>{const _0x33ab73=_0x3cc255;_0x10546b[_0x33ab73(0x32d)]||(_0x10546b[_0x33ab73(0x32d)]=this[_0x33ab73(0x1e6)],_0x10546b[_0x33ab73(0x4cd)]=++this['_changesetReqId']);let _0x507a97={'eventID':n[_0x33ab73(0x33f)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x10546b[_0x33ab73(0x2e9)],'unitType':this[_0x33ab73(0x2b2)],'changeset':_0x10546b,'memberID':this['session'][_0x33ab73(0x268)]()}};return this[_0x33ab73(0x483)][_0x33ab73(0x1d8)](_0x507a97,this[_0x33ab73(0x2e9)],_0x9e6383);},'onConflict':(_0x1f28e8,_0x11f147,_0x3656d5)=>{const _0x44da31=_0x3cc255;this[_0x44da31(0x1de)][_0x44da31(0x22f)]||this[_0x44da31(0x1de)][_0x44da31(0x512)]({'unitID':_0x46c168,..._0x1f28e8,'localChanges':_0x11f147,'cacheCleared':_0x3656d5});},'onChangesetResend':_0x2e2e61=>{const _0x5cc95f=_0x3cc255;this[_0x5cc95f(0x41e)]['debug'](_0x5cc95f(0x221),_0x5cc95f(0x48b)+_0x2e2e61['reqId']+'\x20('+_0x2e2e61[_0x5cc95f(0x489)]+',\x20attempt\x20'+_0x2e2e61[_0x5cc95f(0x543)]+')'),queueMicrotask(()=>{const _0x3b0a6a=_0x5cc95f;this['_changesetResend$']['closed']||this[_0x3b0a6a(0x397)]['next']({'unitID':_0x46c168,..._0x2e2e61});});},'onMissingChangesets':({from:_0x355732,to:_0x4536c9})=>{const _0x4b1a50=_0x3cc255;this[_0x4b1a50(0x41e)][_0x4b1a50(0x2ba)](_0x4b1a50(0x221),'fetching\x20missing\x20changesets\x20from\x20'+_0x355732+_0x4b1a50(0x466)+_0x4536c9);let _0x3eba17={'eventID':n[_0x4b1a50(0x33f)][_0x4b1a50(0x498)],'data':{'unitID':_0x46c168,'unitType':this[_0x4b1a50(0x2b2)],'from':_0x355732,'to':_0x4536c9}};this['session']['send'](_0x3eba17,this['unitID']);}};}async[_0x28bbb9(0x1eb)](_0x38c913){const _0x2d00c3=_0x28bbb9;var _0x1b6c24;let _0x1fb57b=await((_0x1b6c24=this[_0x2d00c3(0x4a5)])==null?void 0x0:_0x1b6c24['loadOfflineData'](this['unitID'])),_0x431d9f=(_0x1fb57b==null?void 0x0:_0x1fb57b['mutations'])??[],_0x189cfa=(_0x1fb57b==null?void 0x0:_0x1fb57b[_0x2d00c3(0x438)])??null,_0x235bd6=!!(_0x189cfa!=null&&_0x189cfa['sid'])&&!!(_0x189cfa!=null&&_0x189cfa[_0x2d00c3(0x4cd)]);this[_0x2d00c3(0x1e6)]=_0x235bd6?_0x189cfa[_0x2d00c3(0x32d)]:(0x0,n[_0x2d00c3(0x321)])(),this[_0x2d00c3(0x2d1)]=_0x235bd6?_0x189cfa[_0x2d00c3(0x4cd)]:0x0;let _0x4b8bd3=this['unitID'];try{this[_0x2d00c3(0x284)](_0x189cfa,_0x431d9f);}catch(_0x3dced6){this['_logService'][_0x2d00c3(0x456)](_0x3dced6);}let _0xdad307=this[_0x2d00c3(0x29c)]();if(_0x38c913){let _0x2b93ac=We(this[_0x2d00c3(0x475)],_0x4b8bd3,this['_type'],_0x189cfa,_0x431d9f,_0xdad307);return _0x2b93ac instanceof A?_0x2b93ac[_0x2d00c3(0x3d2)]():(_0x2b93ac instanceof M||_0x2b93ac instanceof j)&&_0x2b93ac['resend'](),_0x2b93ac;}return this[_0x2d00c3(0x475)][_0x2d00c3(0x3e2)](P,_0x4b8bd3,this[_0x2d00c3(0x2b2)],_0x189cfa,_0x431d9f,_0xdad307);}[_0x28bbb9(0x284)](_0x1df330,_0x5b0445){const _0x6947f6=_0x28bbb9;var _0x4e53a6,_0x40d28c;let _0x9483d2=this[_0x6947f6(0x2ab)]['interceptor'][_0x6947f6(0x301)](this[_0x6947f6(0x2ab)][_0x6947f6(0x1ff)][_0x6947f6(0x282)]()['COMPRESS_MUTATION_APPLY']);(_0x4e53a6=_0x9483d2((_0x1df330==null?void 0x0:_0x1df330[_0x6947f6(0x220)])||[],null))==null||_0x4e53a6[_0x6947f6(0x3e9)](_0xc091d5=>this[_0x6947f6(0x265)][_0x6947f6(0x2bd)](_0xc091d5['id'],_0xc091d5[_0x6947f6(0x453)])),(_0x40d28c=_0x9483d2(_0x5b0445||[],null))==null||_0x40d28c[_0x6947f6(0x3e9)](_0x38f18d=>this[_0x6947f6(0x265)][_0x6947f6(0x2bd)](_0x38f18d['id'],_0x38f18d[_0x6947f6(0x453)]));}};I=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r['ICommandService']),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r['Optional'])(C))],I);let L=class extends I{constructor(_0x4391ef,_0x3f55af,_0x21127f,_0x496040,_0xb33541,_0x267c46,_0x5736e6,_0xa0242,_0x5770a5,_0x337f27,_0x133e46,_0x4b305e,_0x3cf5b0,_0xf077bf,_0x5f1951){const _0x41a241=_0x28bbb9;super(_0x4391ef,_0x21127f,_0x3f55af,_0x496040,_0xb33541,_0x267c46,_0x5736e6,_0xa0242,_0x5770a5,_0x337f27,_0x133e46,_0x4b305e,_0xf077bf,_0x5f1951),this['unitID']=_0x4391ef,this[_0x41a241(0x538)]=_0x3f55af,this[_0x41a241(0x473)]=_0x3cf5b0,_(this,_0x41a241(0x4e7),null);}[_0x28bbb9(0x1c9)](_0x5df634){const _0x564297=_0x28bbb9;this[_0x564297(0x4e7)]=_0x5df634;}[_0x28bbb9(0x3ac)](){const _0x1ce794=_0x28bbb9;this[_0x1ce794(0x4e7)]=null,super[_0x1ce794(0x3ac)]();}[_0x28bbb9(0x29c)](){const _0x467d70=_0x28bbb9;let _0x43c8e0=super[_0x467d70(0x29c)]();return _0x43c8e0[_0x467d70(0x317)]=_0x428f6d=>{const _0x13da0c=_0x467d70;var _0xf0569d,_0x12e616;return(_0xf0569d=this[_0x13da0c(0x4e7)])==null||(_0x12e616=_0xf0569d[_0x13da0c(0x317)])==null?void 0x0:_0x12e616[_0x13da0c(0x446)](_0xf0569d,_0x428f6d);},_0x43c8e0['onTransformState']=_0x397d0c=>{const _0x18da02=_0x467d70;var _0x164c76,_0x5e17ce;return(_0x164c76=this[_0x18da02(0x4e7)])==null||(_0x5e17ce=_0x164c76['onTransformState'])==null?void 0x0:_0x5e17ce['call'](_0x164c76,_0x397d0c);},_0x43c8e0['onPrepareTransformSelections']=_0x179ea1=>{const _0x5708b7=_0x467d70;var _0x319773,_0x2fafef;return((_0x319773=this[_0x5708b7(0x4e7)])==null||(_0x2fafef=_0x319773[_0x5708b7(0x51d)])==null?void 0x0:_0x2fafef[_0x5708b7(0x446)](_0x319773,_0x179ea1))??null;},_0x43c8e0[_0x467d70(0x391)]=_0x1eb729=>{const _0x297669=_0x467d70;var _0x3c9197,_0x5c4c9b;return(_0x3c9197=this[_0x297669(0x4e7)])==null||(_0x5c4c9b=_0x3c9197[_0x297669(0x391)])==null?void 0x0:_0x5c4c9b[_0x297669(0x446)](_0x3c9197,_0x1eb729);},_0x43c8e0[_0x467d70(0x2a6)]=_0x161030=>{const _0x3e818a=_0x467d70;var _0x533deb,_0x186d33;return(_0x533deb=this[_0x3e818a(0x4e7)])==null||(_0x186d33=_0x533deb[_0x3e818a(0x2a6)])==null?void 0x0:_0x186d33[_0x3e818a(0x446)](_0x533deb,_0x161030);},_0x43c8e0['onTransformRemoteChangesetByIMECache']=_0x17aa52=>{const _0x2cadf8=_0x467d70;var _0x304d11,_0x1d7286;return((_0x304d11=this[_0x2cadf8(0x4e7)])==null||(_0x1d7286=_0x304d11[_0x2cadf8(0x348)])==null?void 0x0:_0x1d7286[_0x2cadf8(0x446)](_0x304d11,_0x17aa52))??_0x17aa52;},_0x43c8e0[_0x467d70(0x2de)]=_0x18ea56=>{const _0x5e183d=_0x467d70;var _0xf07aaf,_0xc116f9;return((_0xf07aaf=this[_0x5e183d(0x4e7)])==null||(_0xc116f9=_0xf07aaf[_0x5e183d(0x2de)])==null?void 0x0:_0xc116f9[_0x5e183d(0x446)](_0xf07aaf,_0x18ea56))??_0x18ea56;},_0x43c8e0;}async['_init'](){const _0x21c210=_0x28bbb9;let _0x284f03=await super[_0x21c210(0x240)]();return this['disposeWithMe'](this[_0x21c210(0x473)]['docStateChange$'][_0x21c210(0x264)](_0x12110c=>{const _0x2b02ed=_0x21c210;if(_0x12110c==null||_0x12110c['unitId']!==this[_0x2b02ed(0x2e9)])return;let {commandId:_0x3c6d2f,redoState:_0x5230d9,unitId:_0x12ae03}=_0x12110c,_0x1c9d42={'id':_0x3c6d2f,'type':r[_0x2b02ed(0x314)][_0x2b02ed(0x4aa)],'params':{'unitId':_0x12ae03,'actions':_0x5230d9['actions'],'textRanges':null}};this[_0x2b02ed(0x1be)](_0x1c9d42);})),this[_0x21c210(0x457)](this['_commandService'][_0x21c210(0x266)]((_0x25c0ec,_0x1d76e2)=>{const _0x53d424=_0x21c210;if(_0x25c0ec[_0x53d424(0x538)]!==r[_0x53d424(0x314)][_0x53d424(0x4aa)]||_0x1d76e2!=null&&_0x1d76e2[_0x53d424(0x32b)]||_0x1d76e2!=null&&_0x1d76e2[_0x53d424(0x327)]||_0x25c0ec['id']===i['RichTextEditingMutation']['id'])return;let _0x356666=_0x25c0ec['params'];if((_0x356666==null?void 0x0:_0x356666[_0x53d424(0x212)])!==this['unitID'])return;let _0x500f3b=_0x25c0ec,_0x39e368=this[_0x53d424(0x2ab)][_0x53d424(0x1ff)][_0x53d424(0x301)](this['_compressMutationService'][_0x53d424(0x1ff)][_0x53d424(0x282)]()[_0x53d424(0x4dc)])([_0x500f3b],this[_0x53d424(0x4b7)])||[_0x500f3b];this[_0x53d424(0x1be)](_0x39e368[0x0]);})),_0x284f03;}};L=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r['Inject'])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r['ICommandService']),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x431)])(i[_0x28bbb9(0x3aa)])),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xe,(0x0,r['Optional'])(C))],L);let R=class extends I{constructor(_0x2108e1,_0x1610fa,_0x19e8b0,_0x39f73d,_0x4e057c,_0x513185,_0x4d1a43,_0x197b45,_0x130f3e,_0x4c882a,_0x3cfde2,_0x546d4b,_0x145833,_0x5b022c){const _0x29a43b=_0x28bbb9;super(_0x2108e1,_0x19e8b0,_0x1610fa,_0x39f73d,_0x4e057c,_0x513185,_0x4d1a43,_0x197b45,_0x130f3e,_0x4c882a,_0x3cfde2,_0x546d4b,_0x145833,_0x5b022c),this[_0x29a43b(0x2e9)]=_0x2108e1,this[_0x29a43b(0x538)]=_0x1610fa;}async[_0x28bbb9(0x240)](){const _0x3e1bf3=_0x28bbb9;let _0x40ce42=await super['_init']();return this['disposeWithMe'](this[_0x3e1bf3(0x265)]['onMutationExecutedForCollab']((_0xbe6314,_0x1d4915)=>{const _0x259c1a=_0x3e1bf3;if(_0xbe6314[_0x259c1a(0x538)]!==r[_0x259c1a(0x314)][_0x259c1a(0x4aa)]||_0x1d4915!=null&&_0x1d4915[_0x259c1a(0x32b)]||_0x1d4915!=null&&_0x1d4915[_0x259c1a(0x327)])return;let _0x34520b=_0xbe6314[_0x259c1a(0x453)];if((_0x34520b==null?void 0x0:_0x34520b[_0x259c1a(0x212)])!==this['unitID'])return;let _0x1ba166=_0xbe6314,_0x8f592e=this[_0x259c1a(0x2ab)][_0x259c1a(0x1ff)][_0x259c1a(0x301)](this[_0x259c1a(0x2ab)][_0x259c1a(0x1ff)][_0x259c1a(0x282)]()[_0x259c1a(0x4dc)])([_0x1ba166],this[_0x259c1a(0x4b7)])||[_0x1ba166];this[_0x259c1a(0x1be)](_0x8f592e[0x0]);})),_0x40ce42;}};R=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n['RevisionService'])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r[_0x28bbb9(0x382)]),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],R);let z=class extends I{constructor(_0x570b6c,_0x58ef12,_0x3baba3,_0x1dd776,_0x31b799,_0x5f48a8,_0x2a5b45,_0x25c240,_0x42f302,_0x500cd5,_0x151782,_0x16e351,_0x2b512a,_0x4d600e,_0x597fb3){const _0x22f194=_0x28bbb9;super(_0x570b6c,_0x3baba3,_0x58ef12,_0x1dd776,_0x31b799,_0x5f48a8,_0x2a5b45,_0x42f302,_0x500cd5,_0x151782,_0x16e351,_0x2b512a,_0x4d600e,_0x597fb3),this[_0x22f194(0x2e9)]=_0x570b6c,this['type']=_0x58ef12,this[_0x22f194(0x1d4)]=_0x25c240;}[_0x28bbb9(0x29c)](){const _0x3319c0=_0x28bbb9;let _0x23c915=super['_createHandler']();return _0x23c915[_0x3319c0(0x391)]=_0x5c46b2=>this[_0x3319c0(0x1d4)][_0x3319c0(0x2df)](_0x5c46b2),_0x23c915;}async[_0x28bbb9(0x240)](){const _0xa9eba1=_0x28bbb9;let _0x527abb=await super[_0xa9eba1(0x240)]();return this[_0xa9eba1(0x457)](this[_0xa9eba1(0x265)]['onMutationExecutedForCollab']((_0x4758e9,_0x23b730)=>{const _0xbfeb75=_0xa9eba1;if(_0x4758e9[_0xbfeb75(0x538)]!==r[_0xbfeb75(0x314)][_0xbfeb75(0x4aa)]||_0x23b730!=null&&_0x23b730[_0xbfeb75(0x32b)]||_0x23b730!=null&&_0x23b730[_0xbfeb75(0x327)])return;let _0xeecaaa=_0x4758e9[_0xbfeb75(0x453)];if((_0xeecaaa==null?void 0x0:_0xeecaaa[_0xbfeb75(0x212)])!==this[_0xbfeb75(0x2e9)])return;let _0x5d5a0d=_0x4758e9,_0x106941=this[_0xbfeb75(0x2ab)][_0xbfeb75(0x1ff)][_0xbfeb75(0x301)](this['_compressMutationService'][_0xbfeb75(0x1ff)][_0xbfeb75(0x282)]()[_0xbfeb75(0x4dc)])([_0x5d5a0d],this['_univerInstanceService'])||[_0x5d5a0d];this[_0xbfeb75(0x1be)](_0x106941[0x0]);})),_0x527abb;}};z=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r['LocaleService'])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(w)),y(0x8,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x9,r[_0x28bbb9(0x51c)]),y(0xa,r[_0x28bbb9(0x369)]),y(0xb,r[_0x28bbb9(0x382)]),y(0xc,r[_0x28bbb9(0x427)]),y(0xd,(0x0,r['Optional'])(T)),y(0xe,(0x0,r[_0x28bbb9(0x1cd)])(C))],z);let B=class extends I{constructor(_0x426b28,_0x572139,_0x1abeaa,_0x202abf,_0x20458c,_0x12de6e,_0x408984,_0x12943e,_0x5f20f9,_0x8233f1,_0x14c779,_0x1520ab,_0x54e99e,_0x4137ec){const _0x26d8fd=_0x28bbb9;super(_0x426b28,_0x1abeaa,_0x572139,_0x202abf,_0x20458c,_0x12de6e,_0x408984,_0x12943e,_0x5f20f9,_0x8233f1,_0x14c779,_0x1520ab,_0x54e99e,_0x4137ec),this[_0x26d8fd(0x2e9)]=_0x426b28,this[_0x26d8fd(0x538)]=_0x572139;}async['_init'](){const _0x9f3ee=_0x28bbb9;let _0x437fe6=await super['_init']();return this[_0x9f3ee(0x457)](this['_commandService'][_0x9f3ee(0x266)]((_0x4cb48c,_0x3ec3ac)=>{const _0x32fef6=_0x9f3ee;if(_0x4cb48c[_0x32fef6(0x538)]!==r[_0x32fef6(0x314)][_0x32fef6(0x4aa)]||_0x3ec3ac!=null&&_0x3ec3ac[_0x32fef6(0x32b)]||_0x3ec3ac!=null&&_0x3ec3ac[_0x32fef6(0x327)])return;let _0x17fd52=_0x4cb48c['params'];if((_0x17fd52==null?void 0x0:_0x17fd52[_0x32fef6(0x212)])!==this['unitID'])return;let _0x208256=_0x4cb48c,_0x414604=this[_0x32fef6(0x2ab)][_0x32fef6(0x1ff)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x32fef6(0x282)]()[_0x32fef6(0x4dc)])([_0x208256],this[_0x32fef6(0x4b7)])||[_0x208256];this[_0x32fef6(0x1be)](_0x414604[0x0]);})),_0x437fe6;}};B=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r['Inject'])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r[_0x28bbb9(0x382)]),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r['Optional'])(C))],B);let V=class extends I{constructor(_0x261d73,_0x3fad4f,_0x25aad7,_0x4ebb08,_0x3be3f3,_0x1e7e34,_0xac4f66,_0x32b2c9,_0x36de61,_0x3a11e3,_0x45c8d8,_0x3891c1,_0x5316b1,_0x19b6c0){const _0x10c5ef=_0x28bbb9;super(_0x261d73,_0x25aad7,_0x3fad4f,_0x4ebb08,_0x3be3f3,_0x1e7e34,_0xac4f66,_0x32b2c9,_0x36de61,_0x3a11e3,_0x45c8d8,_0x3891c1,_0x5316b1,_0x19b6c0),this[_0x10c5ef(0x2e9)]=_0x261d73,this[_0x10c5ef(0x538)]=_0x3fad4f;}async[_0x28bbb9(0x240)](){const _0x3e65e3=_0x28bbb9;let _0x54a705=await super[_0x3e65e3(0x240)]();return this[_0x3e65e3(0x457)](this['_commandService']['onMutationExecutedForCollab']((_0x50573c,_0x457a3f)=>{const _0x81d55a=_0x3e65e3;if(_0x50573c[_0x81d55a(0x538)]!==r[_0x81d55a(0x314)]['MUTATION']||_0x457a3f!=null&&_0x457a3f[_0x81d55a(0x32b)]||_0x457a3f!=null&&_0x457a3f[_0x81d55a(0x327)])return;let _0x5a1fba=_0x50573c[_0x81d55a(0x453)];if((_0x5a1fba==null?void 0x0:_0x5a1fba['unitId'])!==this[_0x81d55a(0x2e9)])return;let _0x283eac=_0x50573c,_0x158a41=this[_0x81d55a(0x2ab)]['interceptor'][_0x81d55a(0x301)](this[_0x81d55a(0x2ab)][_0x81d55a(0x1ff)]['getInterceptPoints']()[_0x81d55a(0x4dc)])([_0x283eac],this[_0x81d55a(0x4b7)])||[_0x283eac];this[_0x81d55a(0x1be)](_0x158a41[0x0]);})),_0x54a705;}};V=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r['ICommandService']),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r['Optional'])(T)),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],V);let H=class extends I{constructor(_0x5cd0c0,_0x3f028b,_0x13e4b2,_0x5b29a2,_0x33c6a2,_0x231296,_0x501059,_0x2693dc,_0x1499bf,_0x147839,_0x1f1c2c,_0x3304c2,_0x3432f4,_0x1ae6e8){const _0x55e856=_0x28bbb9;super(_0x5cd0c0,_0x13e4b2,_0x3f028b,_0x5b29a2,_0x33c6a2,_0x231296,_0x501059,_0x2693dc,_0x1499bf,_0x147839,_0x1f1c2c,_0x3304c2,_0x3432f4,_0x1ae6e8),this['unitID']=_0x5cd0c0,this[_0x55e856(0x538)]=_0x3f028b;}async['_init'](){const _0x2f082b=_0x28bbb9;let _0xf3484b=await super[_0x2f082b(0x240)]();return this[_0x2f082b(0x457)](this[_0x2f082b(0x265)]['onMutationExecutedForCollab']((_0x2dd136,_0x3469cf)=>{const _0x572d27=_0x2f082b;if(_0x2dd136[_0x572d27(0x538)]!==r[_0x572d27(0x314)]['MUTATION']||_0x3469cf!=null&&_0x3469cf[_0x572d27(0x32b)]||_0x3469cf!=null&&_0x3469cf[_0x572d27(0x327)])return;let _0x45c1fc=_0x2dd136[_0x572d27(0x453)];if((_0x45c1fc==null?void 0x0:_0x45c1fc[_0x572d27(0x212)])!==this[_0x572d27(0x2e9)])return;let _0x1f3176=_0x2dd136,_0x4d1e2a=this['_compressMutationService'][_0x572d27(0x1ff)]['fetchThroughInterceptors'](this[_0x572d27(0x2ab)]['interceptor'][_0x572d27(0x282)]()[_0x572d27(0x4dc)])([_0x1f3176],this['_univerInstanceService'])||[_0x1f3176];this[_0x572d27(0x1be)](_0x4d1e2a[0x0]);})),_0xf3484b;}};H=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r['Inject'])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r[_0x28bbb9(0x382)]),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r['Optional'])(C))],H);const Ge=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x477));function Ke(_0x4b6bad){const _0x2ede10=_0x28bbb9;let _0x5ee1b0=_0x4b6bad['data'],_0x1e6eb0=JSON['parse'](_0x5ee1b0);switch(_0x1e6eb0['cmd']){case o['CombCmd'][_0x2ede10(0x499)]:case o[_0x2ede10(0x291)][_0x2ede10(0x52a)]:{let _0xedd6bd=_0x1e6eb0[_0x2ede10(0x419)];return{..._0x1e6eb0,'data':_0xedd6bd,'cmd':_0x1e6eb0[_0x2ede10(0x329)]};}case o[_0x2ede10(0x291)][_0x2ede10(0x21f)]:{let _0x101df6=_0x1e6eb0[_0x2ede10(0x35b)];return{..._0x1e6eb0,'data':_0x101df6,'cmd':_0x1e6eb0[_0x2ede10(0x329)]};}case o[_0x2ede10(0x291)][_0x2ede10(0x540)]:{let _0x14ed50=_0x1e6eb0[_0x2ede10(0x23b)];switch(_0x14ed50[_0x2ede10(0x2ff)]){case n['CollaborationEvent'][_0x2ede10(0x3a1)]:var _0x1c9b30;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0x1c9b30=_0x14ed50['permissionRejEvent'])==null?void 0x0:_0x1c9b30['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)]['CHANGESET_ACK']:var _0x36bef5;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0x36bef5=_0x14ed50[_0x2ede10(0x3de)])==null?void 0x0:_0x36bef5['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x49b)]:var _0xe6e0e9;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0xe6e0e9=_0x14ed50[_0x2ede10(0x445)])==null?void 0x0:_0xe6e0e9['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x37f)]:var _0xf3ab76;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0xf3ab76=_0x14ed50['csRejEvent'])==null?void 0x0:_0xf3ab76['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n['CollaborationEvent'][_0x2ede10(0x422)]:var _0xe501d;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0xe501d=_0x14ed50[_0x2ede10(0x448)])==null?void 0x0:_0xe501d['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x1ee)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x560)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x313)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50['joinEvent']},'cmd':_0x1e6eb0['cmd']};case n[_0x2ede10(0x33f)]['USERS_LEAVE']:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x325)]},'cmd':_0x1e6eb0['cmd']};case n['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3f1)]},'cmd':_0x1e6eb0['cmd']};case n['CollaborationEvent'][_0x2ede10(0x283)]:case n[_0x2ede10(0x33f)][_0x2ede10(0x3fd)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3ec)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x35c)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3f1)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)]['MSG_FOR_ERROR']:return{..._0x1e6eb0,'data':_0x14ed50,'cmd':_0x1e6eb0['cmd']};case n['CollaborationEvent'][_0x2ede10(0x43c)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3d6)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n['CollaborationEvent'][_0x2ede10(0x37d)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x31b)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)]['SHOULD_CLOSE_CONN']:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50['shouldCloseConn']},'cmd':_0x1e6eb0['cmd']};case n[_0x2ede10(0x33f)][_0x2ede10(0x533)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x2dd)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};default:return _0x1e6eb0;}}default:return _0x1e6eb0;}}function qe(_0x4f78c8){const _0x138381=_0x28bbb9;switch(_0x4f78c8['cmd']){case o[_0x138381(0x291)][_0x138381(0x499)]:case o[_0x138381(0x291)]['HELLO']:return JSON[_0x138381(0x4d3)]({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8[_0x138381(0x1e3)]});case o[_0x138381(0x291)]['INGEST']:{let _0x404959;switch(_0x4f78c8[_0x138381(0x350)][_0x138381(0x2ff)]){case n[_0x138381(0x33f)][_0x138381(0x1ee)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x1ee)],'updateCursorEvent':_0x4f78c8[_0x138381(0x350)][_0x138381(0x350)]};break;case n[_0x138381(0x33f)][_0x138381(0x3e8)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x3e8)],'leaveEvent':_0x4f78c8[_0x138381(0x350)][_0x138381(0x350)]};break;case n[_0x138381(0x33f)][_0x138381(0x313)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x313)],'joinEvent':_0x4f78c8[_0x138381(0x350)]['data']};break;case n[_0x138381(0x33f)][_0x138381(0x44d)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x44d)],'liveShareNewHost':_0x4f78c8[_0x138381(0x350)]['data']};break;case n[_0x138381(0x33f)][_0x138381(0x3fd)]:_0x404959={'eventID':n[_0x138381(0x33f)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x4f78c8[_0x138381(0x350)][_0x138381(0x350)]};break;case n[_0x138381(0x33f)][_0x138381(0x35c)]:_0x404959={'eventID':n['CollaborationEvent'][_0x138381(0x35c)],'liveShareTerminate':_0x4f78c8[_0x138381(0x350)]['data']};break;case n[_0x138381(0x33f)][_0x138381(0x3b6)]:_0x404959={'eventID':n[_0x138381(0x33f)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4f78c8['data']['data']};break;case n['CollaborationEvent'][_0x138381(0x283)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x283)]};break;default:_0x404959={'eventID':_0x4f78c8['data'][_0x138381(0x2ff)]};}return JSON[_0x138381(0x4d3)]({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8[_0x138381(0x1e3)],'collaMsg':_0x404959});}case o[_0x138381(0x291)][_0x138381(0x21f)]:return JSON[_0x138381(0x4d3)]({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8['routeKey'],'joinReq':_0x4f78c8[_0x138381(0x350)]});case o['CombCmd'][_0x138381(0x45e)]:return JSON['stringify']({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8[_0x138381(0x1e3)],'leaveReq':_0x4f78c8[_0x138381(0x350)]});default:throw Error(_0x138381(0x25a));}}const Je=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x400));function Ye(_0x167730,_0x385838,_0x134e24){const _0x46c5e6=_0x28bbb9;return _0x167730+'/'+_0x385838+_0x46c5e6(0x300)+_0x134e24+_0x46c5e6(0x3c3);}let Xe=class extends r[_0x28bbb9(0x3ad)]{constructor(_0xc38506,_0x1a8230,_0x362406,_0x87ab5,_0x52d211){const _0x5389c6=_0x28bbb9;super(),this['_injector']=_0xc38506,this[_0x5389c6(0x2a4)]=_0x1a8230,this[_0x5389c6(0x2c8)]=_0x362406,this[_0x5389c6(0x41e)]=_0x87ab5,this['_snapshotServerService']=_0x52d211;}['_doCreateSocket'](_0x5a7098){const _0xeb189f=_0x28bbb9;let _0x43eee6=this[_0xeb189f(0x475)][_0xeb189f(0x285)](e[_0xeb189f(0x320)]);if(!_0x43eee6)throw Error(_0xeb189f(0x3b7));let _0x2f101b=_0x43eee6[_0xeb189f(0x3fe)](_0x5a7098);if(!_0x2f101b)throw Error(_0xeb189f(0x3ae));let _0x2e27ea=new r[(_0xeb189f(0x549))](),_0x32de0d=new t['Subject']();_0x2e27ea['add'](_0x2f101b['close$'][_0xeb189f(0x264)](_0x303951=>_0x32de0d[_0xeb189f(0x512)](_0x303951))),_0x2e27ea[_0xeb189f(0x3a3)]((0x0,r[_0xeb189f(0x278)])(()=>_0x32de0d[_0xeb189f(0x30f)]()));let _0x37bb1e=new t[(_0xeb189f(0x39a))]();_0x2e27ea[_0xeb189f(0x3a3)](_0x2f101b[_0xeb189f(0x39c)][_0xeb189f(0x264)](_0x133be2=>_0x37bb1e[_0xeb189f(0x512)](_0x133be2))),_0x2e27ea[_0xeb189f(0x3a3)]((0x0,r[_0xeb189f(0x278)])(()=>_0x37bb1e['complete']()));let _0x142c34=new t[(_0xeb189f(0x39a))]();_0x2e27ea[_0xeb189f(0x3a3)](_0x2f101b[_0xeb189f(0x3fa)][_0xeb189f(0x264)](_0x344404=>{const _0x89b1db=_0xeb189f;let _0x3a91cf=Ke(_0x344404);_0x142c34[_0x89b1db(0x512)](_0x3a91cf);})),_0x2e27ea[_0xeb189f(0x3a3)]((0x0,r['toDisposable'])(()=>_0x142c34['complete']()));let _0x5a80fc,_0x36e1c8=()=>{const _0x4c87c5=_0xeb189f;_0x37bb1e[_0x4c87c5(0x512)](new Event(_0x4c87c5(0x4bf))),_0x32de0d['next'](new Event('connection\x20error')),_0x5a80fc['close']();};return _0x5a80fc={'memberID':'','close$':_0x32de0d[_0xeb189f(0x32f)](),'error$':_0x37bb1e['asObservable'](),'open$':_0x2f101b[_0xeb189f(0x36e)],'message$':_0x142c34[_0xeb189f(0x32f)](),'send':(_0x22ac73,_0x477ac1)=>{const _0x2fa564=_0xeb189f;if(_0x22ac73[_0x2fa564(0x329)]===o[_0x2fa564(0x291)][_0x2fa564(0x31c)]){if(_0x22ac73['data']['eventID']===n[_0x2fa564(0x33f)]['SUBMIT_CHANGESET']){let _0x221692=this[_0x2fa564(0x4bd)](_0x5a80fc,_0x22ac73['data'],(_0x477ac1==null?void 0x0:_0x477ac1[_0x2fa564(0x29e)])??0x1d4c0);return _0x221692[_0x2fa564(0x4a4)](()=>void 0x0),_0x221692;}if(_0x22ac73[_0x2fa564(0x350)][_0x2fa564(0x2ff)]===n['CollaborationEvent']['FETCH_MISSING']){let _0x2d5ed3=_0x22ac73['data'];this[_0x2fa564(0x4a2)](_0x2d5ed3)[_0x2fa564(0x4b4)](_0x14940a=>{const _0x4114e4=_0x2fa564;_0x142c34[_0x4114e4(0x512)]({'cmd':o[_0x4114e4(0x291)][_0x4114e4(0x540)],'code':o[_0x4114e4(0x2e7)]['OK'],'routeKey':_0x2d5ed3['data']['unitID'],'routeType':'','data':{'eventID':n[_0x4114e4(0x33f)][_0x4114e4(0x412)],'data':{'changesets':_0x14940a}}});})[_0x2fa564(0x4a4)](_0xb532cc=>{const _0x239c31=_0x2fa564;this[_0x239c31(0x41e)][_0x239c31(0x456)](_0xb532cc),_0x36e1c8();});return;}}_0x2f101b[_0x2fa564(0x1d8)](qe(_0x22ac73));},'close':()=>{_0x2f101b['close'](),_0x2e27ea['dispose']();}},_0x5a80fc;}[_0x28bbb9(0x4bd)](_0x1c6bb1,_0x3f4a07,_0x1af040){const _0x6a2fe3=_0x28bbb9;let {unitType:_0x94888,unitID:_0x151f34,changeset:_0x252f48}=_0x3f4a07[_0x6a2fe3(0x350)],_0x4f02cf={'unitID':_0x151f34,'memberID':_0x1c6bb1['memberID'],'type':_0x94888,'changeset':(0x0,n[_0x6a2fe3(0x50d)])(_0x252f48)},_0xd5fe9b=this[_0x6a2fe3(0x2c8)][_0x6a2fe3(0x230)](m),_0xb09f3f=Ye((_0xd5fe9b==null?void 0x0:_0xd5fe9b[_0x6a2fe3(0x542)])??'/universer-api/comb',_0x94888,_0x151f34);return(0x0,t['firstValueFrom'])(this[_0x6a2fe3(0x2a4)][_0x6a2fe3(0x253)]('POST',_0xb09f3f,{'body':_0x4f02cf})[_0x6a2fe3(0x213)]((0x0,t[_0x6a2fe3(0x46f)])(_0x541c99=>_0x541c99[_0x6a2fe3(0x538)]===e[_0x6a2fe3(0x3c4)][_0x6a2fe3(0x2b5)]),(0x0,t[_0x6a2fe3(0x29e)])(_0x1af040)))[_0x6a2fe3(0x4b4)](()=>void 0x0,_0x5b202d=>{const _0x471b3f=_0x6a2fe3;throw this[_0x471b3f(0x41e)]['warn'](_0x471b3f(0x4d0),_0x471b3f(0x504)+_0x252f48['sid']+':'+_0x252f48[_0x471b3f(0x4cd)]+'\x20failed:\x20'+Ze(_0x5b202d)),_0x5b202d;});}async[_0x28bbb9(0x4a2)](_0x3ed87d){const _0x3e6b2f=_0x28bbb9;let {unitID:_0x1959f6,from:_0x4ab51d,to:_0x10c388,unitType:_0x3a2302}=_0x3ed87d[_0x3e6b2f(0x350)];return(await this['_snapshotServerService'][_0x3e6b2f(0x556)]({'metadata':void 0x0},{'unitID':_0x1959f6,'type':_0x3a2302,'from':_0x4ab51d,'to':_0x10c388}))[_0x3e6b2f(0x509)][_0x3e6b2f(0x485)](_0xb2207a=>((_0xb2207a[_0x3e6b2f(0x220)]===null||_0xb2207a[_0x3e6b2f(0x220)]===void 0x0)&&(_0xb2207a['mutations']=[]),_0xb2207a));}};Xe=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x1,(0x0,r['Inject'])(e['HTTPService'])),y(0x2,r[_0x28bbb9(0x421)]),y(0x3,r[_0x28bbb9(0x369)]),y(0x4,n[_0x28bbb9(0x35f)])],Xe);function Ze(_0x402950){const _0x40a6b7=_0x28bbb9;return _0x402950 instanceof e[_0x40a6b7(0x2b4)]?_0x40a6b7(0x3ab)+(_0x402950['status']??0x0):_0x402950 instanceof Error?_0x402950['name']:String(_0x402950);}const Qe=(0x0,r[_0x28bbb9(0x45b)])('univer-pro.collaboration-client-adapter-service');function $e(_0x305898={}){const _0x8884bc=_0x28bbb9;return _0x305898[_0x8884bc(0x2f1)]?{'resolveUnit':_0x305898[_0x8884bc(0x2f1)]}:{'resolveUnit':_0x23d778=>({'target':{'unitId':_0x23d778[_0x8884bc(0x212)],'unitType':_0x23d778[_0x8884bc(0x3da)]}})};}function et(_0x220e7d,_0xa69128,_0x7b30fa){const _0x31c49a=_0x28bbb9;let _0x349358=_0x7b30fa[_0x31c49a(0x29d)][_0x31c49a(0x1e4)];if(_0x349358!=null&&_0x349358[_0x31c49a(0x4db)]()==='')throw Error(_0x31c49a(0x32e));if(!_0x7b30fa[_0x31c49a(0x29d)][_0x31c49a(0x212)])throw Error(_0x31c49a(0x331));return{'localUnitId':_0x220e7d,'unitType':_0xa69128,'target':{'endpoint':_0x349358,'unitId':_0x7b30fa[_0x31c49a(0x29d)][_0x31c49a(0x212)],'unitType':_0x7b30fa['target'][_0x31c49a(0x3da)]??_0xa69128},'changeset':_0x7b30fa[_0x31c49a(0x2d9)]};}let U=class extends r[_0x28bbb9(0x3ad)]{constructor(_0x1902d7,_0x66e012,_0x4e7bc5,_0x5721dd,_0x4b3e02,_0x307fbf){const _0x45327d=_0x28bbb9;super(),this[_0x45327d(0x475)]=_0x1902d7,this[_0x45327d(0x41e)]=_0x66e012,this[_0x45327d(0x2c8)]=_0x4e7bc5,this[_0x45327d(0x4b8)]=_0x5721dd,this[_0x45327d(0x3b5)]=_0x4b3e02,this[_0x45327d(0x42a)]=_0x307fbf,_(this,_0x45327d(0x1da),new Map()),_(this,'_pendingSessions',new Map()),_(this,_0x45327d(0x344),new Map()),_(this,_0x45327d(0x532),new Map()),_(this,'_networkConditionService',void 0x0),_(this,'socket$',this[_0x45327d(0x450)](void 0x0)[_0x45327d(0x298)][_0x45327d(0x32f)]()),_(this,_0x45327d(0x43a),new t[(_0x45327d(0x45f))](0x0)),_(this,_0x45327d(0x299),this['_status$'][_0x45327d(0x32f)]());}[_0x28bbb9(0x28b)](){const _0x1a7a54=_0x28bbb9;this['_networkConditionService']||(this[_0x1a7a54(0x2b7)]=this[_0x1a7a54(0x475)][_0x1a7a54(0x285)](Ge,r[_0x1a7a54(0x3db)][_0x1a7a54(0x32a)])??void 0x0,this['_networkConditionService']&&this[_0x1a7a54(0x457)](this[_0x1a7a54(0x2b7)]['online$'][_0x1a7a54(0x264)](_0x4c1bfc=>{const _0x44a246=_0x1a7a54;_0x4c1bfc&&this[_0x44a246(0x4d8)](),_0x4c1bfc||this[_0x44a246(0x532)][_0x44a246(0x3e9)](_0x3ac2f3=>this[_0x44a246(0x43e)](_0x3ac2f3));})));}['dispose'](){const _0x2f5c58=_0x28bbb9;super[_0x2f5c58(0x3ac)](),this[_0x2f5c58(0x532)][_0x2f5c58(0x3e9)](_0x3401ea=>{const _0x53eb32=_0x2f5c58;var _0x47465c,_0x5f5ae2,_0x5b3a82;(_0x47465c=_0x3401ea['socketSubscription'])==null||_0x47465c[_0x53eb32(0x3c7)](),_0x3401ea[_0x53eb32(0x3b1)]=null,this[_0x53eb32(0x4f7)](_0x3401ea),this[_0x53eb32(0x52b)](_0x3401ea),this[_0x53eb32(0x235)](_0x3401ea),this['_clearHeartbeatTimer'](_0x3401ea),(_0x5f5ae2=_0x3401ea[_0x53eb32(0x298)][_0x53eb32(0x2cc)]())==null||_0x5f5ae2[_0x53eb32(0x326)](),(_0x5b3a82=_0x3401ea[_0x53eb32(0x42b)])==null||_0x5b3a82[_0x53eb32(0x326)](),_0x3401ea['socket$'][_0x53eb32(0x30f)]();}),this['_socketChannels']['clear'](),this[_0x2f5c58(0x1da)]['forEach'](_0xeb2640=>_0xeb2640[_0x2f5c58(0x3ac)]()),this[_0x2f5c58(0x1da)][_0x2f5c58(0x311)](),this[_0x2f5c58(0x344)]['clear'](),this['_status$'][_0x2f5c58(0x30f)]();}async[_0x28bbb9(0x345)](_0x3a8e0d,_0x57a685){const _0x2cdcd0=_0x28bbb9;if(this['_listenToNetworkCondition'](),this[_0x2cdcd0(0x1da)][_0x2cdcd0(0x546)](_0x3a8e0d))return this['_sessions'][_0x2cdcd0(0x285)](_0x3a8e0d);let _0x30f82c=this[_0x2cdcd0(0x1f7)][_0x2cdcd0(0x285)](_0x3a8e0d);if(_0x30f82c)return _0x30f82c;let _0x49cb81=this[_0x2cdcd0(0x3a7)](_0x3a8e0d,_0x57a685);this[_0x2cdcd0(0x1f7)][_0x2cdcd0(0x36a)](_0x3a8e0d,_0x49cb81);try{return await _0x49cb81;}finally{this[_0x2cdcd0(0x1f7)][_0x2cdcd0(0x551)](_0x3a8e0d);}}async[_0x28bbb9(0x3a7)](_0x2b4116,_0x365054){const _0x4ee3ee=_0x28bbb9;let _0x4ae5da=await this[_0x4ee3ee(0x3e0)](_0x2b4116,_0x365054),_0x2a087e=this[_0x4ee3ee(0x450)](_0x4ae5da[_0x4ee3ee(0x29d)]['endpoint']);this[_0x4ee3ee(0x2f5)](_0x2a087e);let _0x30e04a=this[_0x4ee3ee(0x475)][_0x4ee3ee(0x3e2)](S,_0x4ae5da,_0x2a087e[_0x4ee3ee(0x298)][_0x4ee3ee(0x32f)]());return this['_sessions']['set'](_0x2b4116,_0x30e04a),this[_0x4ee3ee(0x344)][_0x4ee3ee(0x36a)](_0x2b4116,_0x2a087e['endpointKey']),_0x30e04a;}[_0x28bbb9(0x200)](_0x184cdf){const _0x35aa0a=_0x28bbb9;let _0x17c6ff=this[_0x35aa0a(0x1da)]['get'](_0x184cdf),_0x318d82=this[_0x35aa0a(0x344)][_0x35aa0a(0x285)](_0x184cdf);if(_0x17c6ff&&(this[_0x35aa0a(0x1da)]['delete'](_0x184cdf),this['_sessionChannels'][_0x35aa0a(0x551)](_0x184cdf),_0x17c6ff[_0x35aa0a(0x326)]()),_0x318d82!==void 0x0&&!this[_0x35aa0a(0x3f7)](_0x318d82)){let _0x4613aa=this['_socketChannels'][_0x35aa0a(0x285)](_0x318d82);_0x4613aa&&this[_0x35aa0a(0x43e)](_0x4613aa);}}[_0x28bbb9(0x4d8)](){const _0x161149=_0x28bbb9;(this[_0x161149(0x532)][_0x161149(0x1e8)]?[...this[_0x161149(0x532)][_0x161149(0x2fe)]()]:[this[_0x161149(0x450)](void 0x0)])[_0x161149(0x3e9)](_0x5e59bc=>{const _0x3f50a2=_0x161149;!this[_0x3f50a2(0x3f7)](_0x5e59bc[_0x3f50a2(0x281)])||_0x5e59bc['socketReady']||_0x5e59bc[_0x3f50a2(0x42b)]||_0x5e59bc['connectionAttempt']||(_0x5e59bc[_0x3f50a2(0x2ec)]=0x0,this[_0x3f50a2(0x52b)](_0x5e59bc),this[_0x3f50a2(0x530)](_0x5e59bc));});}['_clearRetryConnectingTimer'](_0x3bdcbe){const _0x4239dd=_0x28bbb9;_0x3bdcbe[_0x4239dd(0x46d)]!=null&&(clearTimeout(_0x3bdcbe[_0x4239dd(0x46d)]),_0x3bdcbe['retryConnectingTimer']=null);}[_0x28bbb9(0x4c9)](_0x564de5){const _0x5adf1a=_0x28bbb9;let _0x591b84=this[_0x5adf1a(0x2c8)][_0x5adf1a(0x230)](m),_0x3f05d9=_0x564de5[_0x5adf1a(0x1e4)]??(_0x591b84==null?void 0x0:_0x591b84[_0x5adf1a(0x1e7)])??_0x5adf1a(0x565);return this['_socketService'][_0x5adf1a(0x3fe)](_0x3f05d9);}async[_0x28bbb9(0x2f5)](_0xb291a4){const _0x53c5c7=_0x28bbb9;var _0x59476c;if(this[_0x53c5c7(0x1c7)]||((_0x59476c=this[_0x53c5c7(0x2b7)])==null?void 0x0:_0x59476c['online'])===!0x1||_0xb291a4[_0x53c5c7(0x52e)]||_0xb291a4[_0x53c5c7(0x42b)]||_0xb291a4[_0x53c5c7(0x3a0)])return;let _0x57df96={};_0xb291a4[_0x53c5c7(0x3a0)]=_0x57df96;try{let _0x76c655=await this[_0x53c5c7(0x4c9)](_0xb291a4);if(this[_0x53c5c7(0x1c7)]||_0xb291a4[_0x53c5c7(0x3a0)]!==_0x57df96){_0x76c655==null||_0x76c655[_0x53c5c7(0x326)]();return;}if(_0x76c655){var _0x38e425;_0xb291a4[_0x53c5c7(0x42b)]=_0x76c655,_0xb291a4['handshakeTimer']=setTimeout(()=>{const _0x552894=_0x53c5c7;!this['_disposed']&&_0xb291a4['candidateSocket']===_0x76c655&&this[_0x552894(0x244)](_0xb291a4);},0x4e20);let _0x2e0456=_0x76c655[_0x53c5c7(0x1d8)];_0x76c655[_0x53c5c7(0x1d8)]=(_0x1a6a53,_0x386b31)=>(_0x1a6a53[_0x53c5c7(0x329)]!==o['CombCmd']['LEAVE']&&!tt(_0x1a6a53)&&_0xb291a4['socketReady']&&_0xb291a4[_0x53c5c7(0x298)][_0x53c5c7(0x2cc)]()===_0x76c655&&this[_0x53c5c7(0x1fe)](_0xb291a4),_0x386b31===void 0x0?_0x2e0456[_0x53c5c7(0x446)](_0x76c655,_0x1a6a53):_0x2e0456[_0x53c5c7(0x446)](_0x76c655,_0x1a6a53,_0x386b31)),(_0x38e425=_0xb291a4[_0x53c5c7(0x3b1)])==null||_0x38e425[_0x53c5c7(0x3c7)]();let _0x2010cf=new t[(_0x53c5c7(0x23a))]();_0xb291a4[_0x53c5c7(0x3b1)]=_0x2010cf,_0x2010cf[_0x53c5c7(0x3a3)](_0x76c655['message$'][_0x53c5c7(0x264)](_0x6ef193=>this[_0x53c5c7(0x488)](_0xb291a4,_0x76c655,_0x6ef193))),_0x2010cf[_0x53c5c7(0x3a3)](_0x76c655[_0x53c5c7(0x39c)][_0x53c5c7(0x213)]((0x0,c[_0x53c5c7(0x3cb)])(0x1))[_0x53c5c7(0x264)](_0x4ae2c2=>this[_0x53c5c7(0x41e)][_0x53c5c7(0x456)](_0x53c5c7(0x229),_0x4ae2c2))),_0x2010cf[_0x53c5c7(0x3a3)](_0x76c655['open$'][_0x53c5c7(0x213)]((0x0,c[_0x53c5c7(0x3cb)])(0x1))[_0x53c5c7(0x264)](()=>{const _0x1cac00=_0x53c5c7;this[_0x1cac00(0x4ea)](_0xb291a4,_0x76c655);})),_0x2010cf['add'](_0x76c655[_0x53c5c7(0x1f8)][_0x53c5c7(0x213)]((0x0,c[_0x53c5c7(0x3cb)])(0x1))[_0x53c5c7(0x264)](_0x8b2514=>{const _0x208d06=_0x53c5c7;(_0xb291a4['candidateSocket']===_0x76c655||_0xb291a4[_0x208d06(0x298)][_0x208d06(0x2cc)]()===_0x76c655)&&(this[_0x208d06(0x41e)][_0x208d06(0x2ba)]('[CollaborationSessionService]','socket\x20close',_0x8b2514),this[_0x208d06(0x244)](_0xb291a4));}));}}catch(_0x11ab9b){if(_0xb291a4[_0x53c5c7(0x3a0)]!==_0x57df96)return;this[_0x53c5c7(0x41e)][_0x53c5c7(0x456)](_0x11ab9b),this[_0x53c5c7(0x244)](_0xb291a4);}finally{_0xb291a4[_0x53c5c7(0x3a0)]===_0x57df96&&(_0xb291a4[_0x53c5c7(0x3a0)]=null);}}[_0x28bbb9(0x4ea)](_0x3dd350,_0x38de64){const _0x1a5218=_0x28bbb9;this['_disposed']||_0x3dd350['candidateSocket']!==_0x38de64||(this[_0x1a5218(0x41e)]['debug'](_0x1a5218(0x1cf),_0x1a5218(0x3cf)),_0x38de64['send']({'cmd':o['CombCmd']['HELLO']}));}[_0x28bbb9(0x43e)](_0x7fdcb6){const _0x4275c3=_0x28bbb9;var _0x5ea74d;let _0x2d9c4f=_0x7fdcb6[_0x4275c3(0x298)][_0x4275c3(0x2cc)]()??_0x7fdcb6[_0x4275c3(0x42b)];_0x7fdcb6[_0x4275c3(0x3a0)]=null,_0x7fdcb6[_0x4275c3(0x52e)]=!0x1,_0x7fdcb6[_0x4275c3(0x42b)]=null,(_0x5ea74d=_0x7fdcb6[_0x4275c3(0x3b1)])==null||_0x5ea74d[_0x4275c3(0x3c7)](),_0x7fdcb6[_0x4275c3(0x3b1)]=null,this['_status$'][_0x4275c3(0x512)](0x2),_0x7fdcb6['socket$']['next'](null),this[_0x4275c3(0x52b)](_0x7fdcb6),this[_0x4275c3(0x4f7)](_0x7fdcb6),this[_0x4275c3(0x235)](_0x7fdcb6),this['_clearHeartbeatTimer'](_0x7fdcb6),_0x2d9c4f==null||_0x2d9c4f[_0x4275c3(0x326)]();}['_onConnectionFailed'](_0x4db6e7){const _0x4581d3=_0x28bbb9;var _0x4bda13;this[_0x4581d3(0x43e)](_0x4db6e7),!this[_0x4581d3(0x1c7)]&&((_0x4bda13=this[_0x4581d3(0x2b7)])==null?void 0x0:_0x4bda13[_0x4581d3(0x2f6)])!==!0x1&&this[_0x4581d3(0x3f7)](_0x4db6e7['endpointKey'])&&(_0x4db6e7['retryCount']<(this[_0x4581d3(0x2c8)]['getConfig'](_0x4581d3(0x303))??0x3)?(this[_0x4581d3(0x3b5)]['emitEvent']({'id':'SOCKET_FAILED_RETRY'}),this[_0x4581d3(0x530)](_0x4db6e7)):this[_0x4581d3(0x3b5)]['emitEvent']({'id':'SOCKET_FAILED'}));}[_0x28bbb9(0x530)](_0x3a3841){const _0x5da755=_0x28bbb9;let _0x4b888e=_0x3a3841[_0x5da755(0x2ec)],_0x4ea66c=this['_configService'][_0x5da755(0x230)](m),_0x4bee2a=_0x4b888e===0x0?0x0:((_0x4ea66c==null?void 0x0:_0x4ea66c[_0x5da755(0x53e)])??0x4e20)*0x2**_0x4b888e;_0x3a3841[_0x5da755(0x46d)]=setTimeout(()=>{const _0x3ed724=_0x5da755;clearTimeout(_0x3a3841[_0x3ed724(0x46d)]),_0x3a3841['retryConnectingTimer']=null,this[_0x3ed724(0x2f5)](_0x3a3841);},_0x4bee2a),_0x3a3841[_0x5da755(0x2ec)]+=0x1;}async[_0x28bbb9(0x3e0)](_0x3ecd08,_0x3a55c0){const _0x454d61=_0x28bbb9;return et(_0x3ecd08,_0x3a55c0,await this[_0x454d61(0x42a)][_0x454d61(0x2f1)]({'unitId':_0x3ecd08,'unitType':_0x3a55c0}));}['_onMessage'](_0x5cf24f,_0xbce756,_0x35de7c){const _0x4e9d52=_0x28bbb9;if(this[_0x4e9d52(0x1c7)]||_0x5cf24f[_0x4e9d52(0x42b)]!==_0xbce756&&_0x5cf24f['socket$']['getValue']()!==_0xbce756)return;let {cmd:_0x28a626}=_0x35de7c;if(_0x28a626===o[_0x4e9d52(0x291)]['HELLO']&&!_0x5cf24f['socketReady']){var _0x4f53c2;if((_0x35de7c[_0x4e9d52(0x4d2)]??o[_0x4e9d52(0x2e7)]['OK'])!==o[_0x4e9d52(0x2e7)]['OK']||!((_0x4f53c2=_0x35de7c[_0x4e9d52(0x350)])!=null&&_0x4f53c2[_0x4e9d52(0x362)])){this[_0x4e9d52(0x244)](_0x5cf24f);return;}this[_0x4e9d52(0x4f7)](_0x5cf24f),_0xbce756['memberID']=_0x35de7c['data'][_0x4e9d52(0x362)],_0x5cf24f['retryCount']=0x0,_0x5cf24f[_0x4e9d52(0x52e)]=!0x0,_0x5cf24f[_0x4e9d52(0x42b)]=null,_0x5cf24f[_0x4e9d52(0x298)]['next'](_0xbce756),this[_0x4e9d52(0x43a)][_0x4e9d52(0x512)](0x3);}_0x28a626===o[_0x4e9d52(0x291)][_0x4e9d52(0x499)]&&this[_0x4e9d52(0x235)](_0x5cf24f),this[_0x4e9d52(0x1fe)](_0x5cf24f);}[_0x28bbb9(0x3f7)](_0x267143){const _0x36e9ac=_0x28bbb9;return[...this[_0x36e9ac(0x344)][_0x36e9ac(0x2fe)]()][_0x36e9ac(0x33e)](_0x28494e=>_0x28494e===_0x267143);}[_0x28bbb9(0x450)](_0x5ed8dd){const _0x49e4e5=_0x28bbb9;let _0x6eecfd=_0x5ed8dd??'',_0x282c62=this[_0x49e4e5(0x532)][_0x49e4e5(0x285)](_0x6eecfd);if(_0x282c62)return _0x282c62;let _0x4c34b8={'endpointKey':_0x6eecfd,'endpoint':_0x5ed8dd,'socket$':new t[(_0x49e4e5(0x45f))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x49e4e5(0x36a)](_0x6eecfd,_0x4c34b8),_0x4c34b8;}[_0x28bbb9(0x4f7)](_0x851f3f){const _0x58a14a=_0x28bbb9;_0x851f3f[_0x58a14a(0x2e6)]!=null&&(clearTimeout(_0x851f3f[_0x58a14a(0x2e6)]),_0x851f3f['handshakeTimer']=null);}[_0x28bbb9(0x1fe)](_0x2a2bde){const _0xeff5bb=_0x28bbb9;this['_clearHeartbeatTimer'](_0x2a2bde),_0x2a2bde['socketReady']&&(_0x2a2bde[_0xeff5bb(0x21e)]=setTimeout(()=>this[_0xeff5bb(0x43b)](_0x2a2bde),this[_0xeff5bb(0x2c8)][_0xeff5bb(0x230)]('HEARTBEAT_INTERVAL')??0x7530));}[_0x28bbb9(0x43b)](_0x50f77d){const _0x2a3ca0=_0x28bbb9;let _0x43ead1=_0x50f77d[_0x2a3ca0(0x298)][_0x2a3ca0(0x2cc)]();_0x50f77d['socketReady']&&_0x43ead1&&(_0x43ead1[_0x2a3ca0(0x1d8)]({'cmd':o[_0x2a3ca0(0x291)]['HEARTBEAT']}),this[_0x2a3ca0(0x403)](_0x50f77d));}['_waitForHeartbeatResponse'](_0x324ba7){const _0x21637b=_0x28bbb9;_0x324ba7[_0x21637b(0x2b3)]=setTimeout(()=>this['_onConnectionFailed'](_0x324ba7),this['_configService']['getConfig'](_0x21637b(0x269))??0x4e20);}[_0x28bbb9(0x252)](_0x3b0c3a){const _0x1cc49d=_0x28bbb9;_0x3b0c3a[_0x1cc49d(0x21e)]!=null&&(clearTimeout(_0x3b0c3a['sendHeartbeatTimer']),_0x3b0c3a[_0x1cc49d(0x21e)]=null);}[_0x28bbb9(0x235)](_0x5c962e){const _0x12acbe=_0x28bbb9;_0x5c962e['timeoutTimer']!=null&&(clearTimeout(_0x5c962e[_0x12acbe(0x2b3)]),_0x5c962e[_0x12acbe(0x2b3)]=null);}};function _0x53d0(_0x58f3f8,_0x3d0e11){_0x58f3f8=_0x58f3f8-0x1b5;const _0x175792=_0x1757();let _0x53d08b=_0x175792[_0x58f3f8];return _0x53d08b;}U=b([y(0x0,(0x0,r['Inject'])(r[_0x28bbb9(0x506)])),y(0x1,r[_0x28bbb9(0x369)]),y(0x2,r['IConfigService']),y(0x3,Je),y(0x4,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x5,Qe)],U);function tt(_0x4aca3e){const _0x11626c=_0x28bbb9;if(_0x4aca3e[_0x11626c(0x329)]!==o[_0x11626c(0x291)][_0x11626c(0x31c)])return!0x1;let _0x223e63=_0x4aca3e[_0x11626c(0x350)]['eventID'];return _0x223e63===n[_0x11626c(0x33f)][_0x11626c(0x296)]||_0x223e63===n['CollaborationEvent']['FETCH_MISSING'];}let W=class extends r[_0x28bbb9(0x22c)]{constructor(_0x1a718a,_0x1bbfde,_0x421e46,_0x39e6e4){const _0x473404=_0x28bbb9;var _0x19c178;super(),this[_0x473404(0x475)]=_0x1a718a,this['_collabSessionService']=_0x1bbfde,this[_0x473404(0x2c8)]=_0x421e46,this['_univerInstanceService']=_0x39e6e4,_(this,_0x473404(0x21c),new Map()),_(this,_0x473404(0x26c),new t[(_0x473404(0x39a))]()),_(this,_0x473404(0x513),this[_0x473404(0x26c)][_0x473404(0x32f)]()),((_0x19c178=this[_0x473404(0x2c8)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x19c178[_0x473404(0x53c)])!==!0x1&&this['_init']();}[_0x28bbb9(0x3ac)](){const _0x462d2b=_0x28bbb9;super['dispose'](),this[_0x462d2b(0x21c)][_0x462d2b(0x3e9)](_0x29c404=>_0x29c404[_0x462d2b(0x3ac)]()),this['_entities'][_0x462d2b(0x311)]();}[_0x28bbb9(0x4c6)](_0x1d3b62){const _0x519ab7=_0x28bbb9;return this[_0x519ab7(0x21c)][_0x519ab7(0x285)](_0x1d3b62)??null;}[_0x28bbb9(0x294)](){const _0x4a739b=_0x28bbb9;return Array[_0x4a739b(0x3f8)](this[_0x4a739b(0x21c)][_0x4a739b(0x2fe)]());}[_0x28bbb9(0x2fd)](_0xdcb763){const _0x1d5258=_0x28bbb9;let _0x53c029=this[_0x1d5258(0x4c6)](_0xdcb763);return _0x53c029?(0x0,t['of'])(_0x53c029):this[_0x1d5258(0x26c)][_0x1d5258(0x213)]((0x0,c[_0x1d5258(0x46f)])(_0xe74755=>_0xe74755['unitID']===_0xdcb763));}[_0x28bbb9(0x22e)](_0x112f50){const _0x566905=_0x28bbb9;return(0x0,t['firstValueFrom'])(this[_0x566905(0x2fd)](_0x112f50)[_0x566905(0x213)]((0x0,c[_0x566905(0x485)])(()=>void 0x0)));}[_0x28bbb9(0x207)](_0xb7b911){const _0x38af60=_0x28bbb9;if(_0xb7b911!==void 0x0){var _0xf95834;return((_0xf95834=this[_0x38af60(0x21c)]['get'](_0xb7b911))==null?void 0x0:_0xf95834[_0x38af60(0x207)]())??!0x1;}for(let _0x3380ea of this[_0x38af60(0x21c)][_0x38af60(0x2fe)]())if(_0x3380ea[_0x38af60(0x207)]())return!0x0;return!0x1;}[_0x28bbb9(0x240)](){const _0x47900f=_0x28bbb9;this[_0x47900f(0x4b7)]['getTypeOfUnitAdded$'](r[_0x47900f(0x24b)]['UNIVER_SHEET'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x264)](async _0x1712f0=>{const _0x436c49=_0x47900f;let _0x474a9e=_0x1712f0[_0x436c49(0x54f)][_0x436c49(0x3e7)](),_0x28dd4b=await this[_0x436c49(0x341)](_0x474a9e,r[_0x436c49(0x24b)][_0x436c49(0x486)]);this[_0x436c49(0x21c)]['set'](_0x474a9e,_0x28dd4b);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r[_0x47900f(0x24b)]['UNIVER_DOC'])[_0x47900f(0x213)]((0x0,t['takeUntil'])(this[_0x47900f(0x55d)]),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x213)]((0x0,c[_0x47900f(0x46f)])(_0x389b76=>!_0x389b76[_0x47900f(0x54f)][_0x47900f(0x3e7)]()['startsWith']('__')))['subscribe'](async _0xf6ec7=>{const _0x3d7702=_0x47900f;let _0x3e7097=_0xf6ec7['unit'][_0x3d7702(0x3e7)](),_0x1007e1=await this[_0x3d7702(0x341)](_0x3e7097,r[_0x3d7702(0x24b)]['UNIVER_DOC']);this[_0x3d7702(0x21c)][_0x3d7702(0x36a)](_0x3e7097,_0x1007e1);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r[_0x47900f(0x24b)]['UNIVER_SLIDE'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x264)](async _0x541d8a=>{const _0x493de4=_0x47900f;let _0x2834b1=_0x541d8a['unit'][_0x493de4(0x3e7)](),_0x73e1e1=await this[_0x493de4(0x341)](_0x2834b1,r[_0x493de4(0x24b)]['UNIVER_SLIDE']);this['_entities'][_0x493de4(0x36a)](_0x2834b1,_0x73e1e1);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r['UniverInstanceType']['UNIVER_BOARD'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c['delay'])(0x10))[_0x47900f(0x264)](async _0x2bd0bb=>{const _0x246475=_0x47900f;let _0x1acfe4=_0x2bd0bb[_0x246475(0x54f)]['getUnitId'](),_0x575d9c=await this['_startCollaboration'](_0x1acfe4,r['UniverInstanceType'][_0x246475(0x449)]);this['_entities'][_0x246475(0x36a)](_0x1acfe4,_0x575d9c);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r[_0x47900f(0x24b)][_0x47900f(0x3bb)])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c['delay'])(0x10))['subscribe'](async _0x38af90=>{const _0x57cdb2=_0x47900f;let _0xbdbad=_0x38af90[_0x57cdb2(0x54f)]['getUnitId'](),_0x3f86c5=await this[_0x57cdb2(0x341)](_0xbdbad,r[_0x57cdb2(0x24b)][_0x57cdb2(0x3bb)]);this['_entities'][_0x57cdb2(0x36a)](_0xbdbad,_0x3f86c5);}),this['_univerInstanceService'][_0x47900f(0x342)](r[_0x47900f(0x24b)]['UNIVER_PDF'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this['dispose$']),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x264)](async _0x5bc2f4=>{const _0x3f6d9c=_0x47900f;let _0x1c5865=_0x5bc2f4[_0x3f6d9c(0x54f)][_0x3f6d9c(0x3e7)](),_0x195756=await this[_0x3f6d9c(0x341)](_0x1c5865,r[_0x3f6d9c(0x24b)][_0x3f6d9c(0x367)]);this[_0x3f6d9c(0x21c)]['set'](_0x1c5865,_0x195756);}),(0x0,t[_0x47900f(0x3e1)])(this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r['UniverInstanceType'][_0x47900f(0x486)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r['UniverInstanceType'][_0x47900f(0x297)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x405)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x449)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x3bb)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x367)]))['pipe']((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]))[_0x47900f(0x264)](_0x2dd825=>{const _0x39a13b=_0x47900f;let _0x218092=_0x2dd825['getUnitId'](),_0x507cb7=this['_entities']['get'](_0x218092);_0x507cb7&&(_0x507cb7[_0x39a13b(0x3ac)](),this[_0x39a13b(0x21c)]['delete'](_0x218092));});}async[_0x28bbb9(0x341)](_0x5c4921,_0x58ca0b){const _0x663165=_0x28bbb9;let _0x359cb8=await this['_collabSessionService'][_0x663165(0x345)](_0x5c4921),_0xa34501=this[_0x663165(0x475)][_0x663165(0x3e2)](this[_0x663165(0x23c)](_0x58ca0b),_0x5c4921,_0x58ca0b,_0x359cb8);return await _0xa34501['init'](),this[_0x663165(0x26c)]['next'](_0xa34501),_0xa34501;}[_0x28bbb9(0x23c)](_0x4b3b9b){const _0x2fe2cc=_0x28bbb9;switch(_0x4b3b9b){case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x297)]:return L;case r['UniverInstanceType'][_0x2fe2cc(0x486)]:return z;case r['UniverInstanceType']['UNIVER_SLIDE']:return B;case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x449)]:return V;case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x3bb)]:return R;case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x367)]:return H;default:throw Error(_0x2fe2cc(0x404)+_0x4b3b9b);}}};W=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(U)),y(0x2,r[_0x28bbb9(0x421)]),y(0x3,r[_0x28bbb9(0x51c)])],W);var nt=_0x28bbb9(0x36f),rt='1.2.0';let it=class extends r['Disposable']{constructor(_0x311fb8,_0x4e69f4){const _0x4a899b=_0x28bbb9;super(),this['_univerInstanceService']=_0x311fb8,this[_0x4a899b(0x2c8)]=_0x4e69f4,this[_0x4a899b(0x240)]();}[_0x28bbb9(0x240)](){const _0x2c3dea=_0x28bbb9;this['disposeWithMe'](this['_univerInstanceService'][_0x2c3dea(0x352)][_0x2c3dea(0x264)](()=>{const _0x318ffb=_0x2c3dea;let _0x3da952=this[_0x318ffb(0x4b7)][_0x318ffb(0x424)](),_0x18815f=this['_configService'][_0x318ffb(0x230)](_0x318ffb(0x2fb))??_0x318ffb(0x1fa);_0x3da952 instanceof r[_0x318ffb(0x218)]&&(_0x18815f=_0x3da952[_0x318ffb(0x234)]),document['title']=_0x18815f;}));}};it=b([y(0x0,r[_0x28bbb9(0x51c)]),y(0x1,r['IConfigService'])],it);const at=(0x0,r['createIdentifier'])(_0x28bbb9(0x243));let G=class{constructor(_0x3764be,_0xc7075e,_0x19ca76){const _0x4b6d1b=_0x28bbb9;this[_0x4b6d1b(0x2a4)]=_0x3764be,this[_0x4b6d1b(0x2c8)]=_0xc7075e,this[_0x4b6d1b(0x4b7)]=_0x19ca76;}['getUploadOptions'](){const _0x19d827=_0x28bbb9;return this[_0x19d827(0x3c0)]()[_0x19d827(0x29f)]??{};}async[_0x28bbb9(0x2aa)](_0x10813b){const _0x1ca5eb=_0x28bbb9;let _0x1fd27b=this[_0x1ca5eb(0x436)]();if(ot(_0x10813b,_0x1fd27b),_0x1fd27b[_0x1ca5eb(0x469)])return _0x1fd27b['upload'](_0x10813b);let _0x4ea171=await this[_0x1ca5eb(0x401)](_0x10813b);return{'id':_0x4ea171,'name':_0x10813b[_0x1ca5eb(0x234)],'mimeType':_0x10813b[_0x1ca5eb(0x538)],'size':_0x10813b['size'],'sourceType':r['ImageSourceType']['UUID'],'source':_0x4ea171};}async[_0x28bbb9(0x511)](_0x7de473,_0x4025fa){const _0x54f1e7=_0x28bbb9;if(_0x4025fa!==r['ImageSourceType'][_0x54f1e7(0x1d3)])return _0x7de473;let _0x148238=(await this[_0x54f1e7(0x2a4)]['get'](this[_0x54f1e7(0x2ef)]()['replace'](_0x54f1e7(0x544),_0x7de473)))[_0x54f1e7(0x340)];if(_0x148238[_0x54f1e7(0x456)]&&_0x148238[_0x54f1e7(0x456)][_0x54f1e7(0x4d2)]!==o[_0x54f1e7(0x1b7)]['OK'])throw _0x148238['error'];if(!_0x148238[_0x54f1e7(0x31d)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,r[_0x54f1e7(0x28c)])(_0x148238[_0x54f1e7(0x31d)],this['_getDownloadEndpointURL']());}async['_upload'](_0x1b4378){const _0x3faab4=_0x28bbb9;let _0x5ae676=this[_0x3faab4(0x4b7)][_0x3faab4(0x424)](),_0x67e9ef=_0x5ae676==null?void 0x0:_0x5ae676[_0x3faab4(0x3e7)]();if(!_0x67e9ef)throw Error(_0x3faab4(0x38a));let _0x4fecf9=new FormData();_0x4fecf9[_0x3faab4(0x1ef)](_0x3faab4(0x246),_0x1b4378);let _0x28c2e9=this['_getUploadFileURL']()+_0x3faab4(0x2cf)+_0x1b4378['size'][_0x3faab4(0x4c0)]()+_0x3faab4(0x2fc)+o['FileSource'][_0x3faab4(0x43d)]+'&assign='+encodeURIComponent(_0x67e9ef),_0x5206d0=(await this['_httpService'][_0x3faab4(0x36b)](_0x28c2e9,{'body':_0x4fecf9}))[_0x3faab4(0x340)][_0x3faab4(0x217)];if(typeof _0x5206d0!=_0x3faab4(0x2d4)||!_0x5206d0)throw Error(_0x3faab4(0x50b));return _0x5206d0;}[_0x28bbb9(0x516)](){const _0x59cb40=_0x28bbb9;return this['_getConfig']()['uploadFileServerUrl']??_0x59cb40(0x1c2);}[_0x28bbb9(0x2ef)](){const _0x2935eb=_0x28bbb9;return this[_0x2935eb(0x3c0)]()[_0x2935eb(0x2af)]??_0x2935eb(0x545);}[_0x28bbb9(0x3df)](){const _0x2b9418=_0x28bbb9;let _0x31280c=this[_0x2b9418(0x3c0)]();return _0x31280c[_0x2b9418(0x380)]?_0x31280c[_0x2b9418(0x380)]:typeof location<'u'?location[_0x2b9418(0x2e3)]:_0x31280c['uploadFileServerUrl']??'';}[_0x28bbb9(0x3c0)](){const _0x332fce=_0x28bbb9;return this['_configService'][_0x332fce(0x230)]('collaboration-client.config')??{};}};G=b([y(0x0,(0x0,r['Inject'])(e['HTTPService'])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(r['IConfigService'])),y(0x2,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x51c)]))],G);function ot(_0x2b8fab,_0x5d71b1){const _0x298d70=_0x28bbb9;var _0x4fde8c;if(_0x5d71b1['maxSize']!=null&&_0x2b8fab[_0x298d70(0x1e8)]>_0x5d71b1[_0x298d70(0x3fb)])throw Error(_0x298d70(0x1b8));if((_0x4fde8c=_0x5d71b1['accept'])!=null&&_0x4fde8c[_0x298d70(0x47a)]&&!_0x5d71b1['accept'][_0x298d70(0x33e)](_0x49e26b=>_0x2b8fab[_0x298d70(0x538)]===_0x49e26b||_0x2b8fab[_0x298d70(0x234)][_0x298d70(0x4d4)](_0x49e26b)||_0x49e26b['endsWith']('/*')&&_0x2b8fab[_0x298d70(0x538)][_0x298d70(0x4dd)](_0x49e26b[_0x298d70(0x4e6)](0x0,-0x1))))throw Error(_0x298d70(0x250));}let K=class{constructor(_0x5c9d87,_0x492847,_0x3b7d79){const _0x59ff52=_0x28bbb9;this[_0x59ff52(0x2c8)]=_0x5c9d87,this[_0x59ff52(0x2a4)]=_0x492847,this['localeService']=_0x3b7d79,this['init']();}[_0x28bbb9(0x354)](){const _0x228ecc=_0x28bbb9;this[_0x228ecc(0x2a4)][_0x228ecc(0x49d)]({'priority':0x1,'interceptor':(_0x187b0e,_0x3920d7)=>_0x3920d7(_0x187b0e)[_0x228ecc(0x213)]((0x0,t[_0x228ecc(0x209)])(async _0x2674b3=>{const _0x199eaa=_0x228ecc;let _0x173d3d=_0x2674b3;if(_0x173d3d[_0x199eaa(0x290)]===0x191){if(typeof window>'u')throw Error(_0x199eaa(0x528));if(window[_0x199eaa(0x3ea)](this[_0x199eaa(0x2ea)]['t'](_0x199eaa(0x557)))){let _0x538e03=window[_0x199eaa(0x2d2)](window[_0x199eaa(0x24e)][_0x199eaa(0x289)]);window[_0x199eaa(0x24e)][_0x199eaa(0x289)]=this[_0x199eaa(0x386)]()+_0x199eaa(0x496)+_0x538e03;}}return _0x173d3d;}))});}[_0x28bbb9(0x386)](){const _0x9b14dc=_0x28bbb9;let _0x57221b=this[_0x9b14dc(0x2c8)]['getConfig'](m);return(_0x57221b==null?void 0x0:_0x57221b[_0x9b14dc(0x47d)])??_0x9b14dc(0x411);}};K=b([y(0x0,r[_0x28bbb9(0x421)]),y(0x1,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)])),y(0x2,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)]))],K);let q=class extends r[_0x28bbb9(0x3ad)]{constructor(_0x366185,_0x3df6f1){const _0x3adc49=_0x28bbb9;super(),this[_0x3adc49(0x24d)]=_0x366185,this[_0x3adc49(0x2c8)]=_0x3df6f1,_(this,_0x3adc49(0x2cb),!0x1),this[_0x3adc49(0x4ce)]();}[_0x28bbb9(0x4ce)](){const _0xced2c5=_0x28bbb9;let _0x357be2=this;this['disposeWithMe'](this[_0xced2c5(0x24d)][_0xced2c5(0x49d)]({'priority':0x3e7,'interceptor':(0x0,e[_0xced2c5(0x343)])({'isMatch'(_0x39d9bb){const _0x40607e=_0xced2c5;var _0x1cc6e8;if(_0x39d9bb['method']===_0x40607e(0x26d)&&(_0x1cc6e8=_0x39d9bb[_0x40607e(0x26f)])!=null&&_0x1cc6e8[_0x40607e(0x340)]){let {objectID:_0x7945e1,objectType:_0x398b21}=_0x39d9bb[_0x40607e(0x26f)][_0x40607e(0x340)]||{};if(!_0x7945e1||_0x398b21===void 0x0)return!0x1;let _0x540d2a=_0x357be2['_getAPIPrefixPath']()+'/'+_0x398b21+_0x40607e(0x239)+encodeURIComponent(_0x7945e1)+_0x40607e(0x2a9);if(_0x39d9bb[_0x40607e(0x31d)]===_0x540d2a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2f496e){const _0x21f29a=_0xced2c5;var _0x78438;return(_0x78438=_0x2f496e['requestParams'])==null?void 0x0:_0x78438[_0x21f29a(0x340)];},'mergeParamsToRequest'(_0x3956ea,_0x4c231c){const _0x5e81e3=_0xced2c5;let _0xb0b62e=_0x357be2[_0x5e81e3(0x2e1)]()+_0x5e81e3(0x4ba),_0x5cd883=_0x3956ea[_0x5e81e3(0x3b9)]((_0x21b407,_0x153a6f)=>{const _0x2afc16=_0x5e81e3;let {unitID:_0x46efd6,objectID:_0x3ec70c,objectType:_0x21496f,actions:_0x449bb8}=_0x153a6f;return _0x21b407[_0x46efd6]||(_0x21b407[_0x46efd6]=Object['create'](null)),_0x21b407[_0x46efd6][_0x3ec70c]||(_0x21b407[_0x46efd6][_0x3ec70c]={'objectID':_0x3ec70c,'objectType':_0x21496f,'actions':[]}),_0x21b407[_0x46efd6][_0x3ec70c][_0x2afc16(0x3d1)][_0x2afc16(0x4ec)](..._0x449bb8),_0x21b407;},Object[_0x5e81e3(0x501)](null)),_0x6e32f9=[];for(let _0x10fc56 in _0x5cd883)for(let _0x4341be in _0x5cd883[_0x10fc56]){let {actions:_0x416f17,objectType:_0x7a8dc6}=_0x5cd883[_0x10fc56][_0x4341be],_0x6d2525=[...new Set(_0x416f17)];_0x6e32f9[_0x5e81e3(0x4ec)]({'unitID':_0x10fc56,'objectID':_0x4341be,'objectType':_0x7a8dc6,'actions':_0x6d2525});}return new e[(_0x5e81e3(0x28d))]('POST',_0xb0b62e,{'headers':_0x4c231c['headers'],'withCredentials':_0x4c231c[_0x5e81e3(0x4de)],'responseType':_0x4c231c['responseType'],'body':{'requests':_0x6e32f9}});}},{'distributeResult'(_0x4f768b,_0x427454){const _0x516681=_0xced2c5;let {objectActions:_0x3285f5}=_0x4f768b;return _0x427454[_0x516681(0x485)](_0x29d219=>{const _0x45fa89=_0x516681;let {unitID:_0xe9e810,objectID:_0x53cdfe,actions:_0x38d139}=_0x29d219,_0x19f829=_0x3285f5[_0x45fa89(0x552)](_0x59f698=>_0x59f698[_0x45fa89(0x2e9)]===_0xe9e810&&_0x59f698[_0x45fa89(0x242)]===_0x53cdfe);return{'config':_0x29d219,'result':{'actions':_0x38d139[_0x45fa89(0x485)](_0x2ab671=>_0x19f829==null?void 0x0:_0x19f829[_0x45fa89(0x3d1)][_0x45fa89(0x552)](_0x311165=>_0x311165[_0x45fa89(0x4c1)]===_0x2ab671))[_0x45fa89(0x46f)](_0xb50ffc=>!!_0xb50ffc),'error':_0x4f768b[_0x45fa89(0x456)]}};});}})}));}[_0x28bbb9(0x2e1)](){const _0x2486ba=_0x28bbb9;let _0x8aa7df=this[_0x2486ba(0x2c8)]['getConfig'](m);return(_0x8aa7df==null?void 0x0:_0x8aa7df[_0x2486ba(0x4d5)])??_0x2486ba(0x4fa);}async[_0x28bbb9(0x501)](_0x11d25d){const _0x4fc330=_0x28bbb9;let _0x679600=this[_0x4fc330(0x2e1)]()+'/'+_0x11d25d[_0x4fc330(0x277)]+_0x4fc330(0x1b6);return(await this[_0x4fc330(0x24d)][_0x4fc330(0x36b)](_0x679600,{'body':_0x11d25d}))[_0x4fc330(0x340)][_0x4fc330(0x242)]||'';}async['list'](_0x82ae19){const _0x30fb20=_0x28bbb9;let _0x514190=this[_0x30fb20(0x2e1)]()+_0x30fb20(0x408);return(await this['_HTTPService'][_0x30fb20(0x36b)](_0x514190,{'body':_0x82ae19}))['body'][_0x30fb20(0x214)];}async['update'](_0x161520){const _0x195370=_0x28bbb9;var _0x5b5726;let _0x596022=this[_0x195370(0x2e1)]()+'/'+_0x161520[_0x195370(0x277)]+_0x195370(0x239)+encodeURIComponent(_0x161520[_0x195370(0x242)]),_0x38b23f=await this[_0x195370(0x24d)]['put'](_0x596022,{'body':_0x161520});if((_0x38b23f==null||(_0x5b5726=_0x38b23f[_0x195370(0x340)])==null||(_0x5b5726=_0x5b5726[_0x195370(0x456)])==null?void 0x0:_0x5b5726[_0x195370(0x4d2)])!==0x1)throw Error(_0x195370(0x4e5));}async[_0x28bbb9(0x3f4)](_0x55268f){const _0x1c6e2a=_0x28bbb9;let _0x21a8b7=this['_getAPIPrefixPath']()+'/'+_0x55268f[_0x1c6e2a(0x277)]+_0x1c6e2a(0x239)+encodeURIComponent(_0x55268f['objectID'])+'/allowed';return(await this[_0x1c6e2a(0x24d)]['post'](_0x21a8b7,{'body':_0x55268f}))[_0x1c6e2a(0x340)][_0x1c6e2a(0x3d1)];}async['batchAllowed'](_0x3188f3){const _0xe4f176=_0x28bbb9;let _0x1c0ec3=this[_0xe4f176(0x2e1)]()+'/-/object/-/batch_allowed';return(await this[_0xe4f176(0x24d)][_0xe4f176(0x36b)](_0x1c0ec3,{'body':{'requests':_0x3188f3}}))[_0xe4f176(0x340)][_0xe4f176(0x47e)];}async['listRoles'](_0x751340){const _0x412db7=_0x28bbb9;let _0x52cb58=this[_0x412db7(0x2e1)]()+'/'+_0x751340['objectType']+'/role',_0x150f2f=await this[_0x412db7(0x24d)][_0x412db7(0x36b)](_0x52cb58,{'body':_0x751340});return{'roles':_0x150f2f[_0x412db7(0x340)][_0x412db7(0x2cd)],'actions':_0x150f2f[_0x412db7(0x340)][_0x412db7(0x3d1)]};}async[_0x28bbb9(0x3eb)](_0x5a09fe){const _0x582feb=_0x28bbb9;let _0x4a7fed=this[_0x582feb(0x2e1)]()+_0x582feb(0x1fd);await this[_0x582feb(0x24d)][_0x582feb(0x551)](_0x4a7fed,{'params':{'collaboratorID':_0x5a09fe[_0x582feb(0x4b9)],'objectID':_0x5a09fe['objectID'],'unitID':_0x5a09fe[_0x582feb(0x2e9)]}});}async[_0x28bbb9(0x4ae)](_0x4c43a2){const _0x375d0e=_0x28bbb9;let _0x3e6510=this[_0x375d0e(0x2e1)]()+_0x375d0e(0x1fd);await this[_0x375d0e(0x24d)]['patch'](_0x3e6510,{'body':_0x4c43a2});}async[_0x28bbb9(0x523)](_0x376979){const _0xe71979=_0x28bbb9;let _0x21c404=this[_0xe71979(0x2e1)]()+_0xe71979(0x1fd);await this[_0xe71979(0x24d)][_0xe71979(0x36b)](_0x21c404,{'body':_0x376979});}async[_0x28bbb9(0x336)](_0x46bef5){const _0x23fef4=_0x28bbb9;let _0x1b1425=this[_0x23fef4(0x2e1)]()+_0x23fef4(0x1fd),_0x5d575f=await this['_HTTPService'][_0x23fef4(0x285)](_0x1b1425,{'params':{'objectID':_0x46bef5[_0x23fef4(0x242)],'unitID':_0x46bef5['unitID']}});return this[_0x23fef4(0x423)](_0x5d575f[_0x23fef4(0x340)]['cfgEnableObjInherit']??!0x1),_0x5d575f[_0x23fef4(0x340)][_0x23fef4(0x44c)];}async[_0x28bbb9(0x40e)](_0x10b568){const _0x22f09c=_0x28bbb9;let _0x5d3a58=this[_0x22f09c(0x2e1)]()+'/collaborator';await this[_0x22f09c(0x24d)]['put'](_0x5d3a58,{'body':_0x10b568});}[_0x28bbb9(0x423)](_0x24dd26){const _0x293bc2=_0x28bbb9;this[_0x293bc2(0x2cb)]=_0x24dd26;}['getCfgEnableObjInherit'](){const _0x47ffdf=_0x28bbb9;return this[_0x47ffdf(0x2cb)];}};q=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x421)]))],q);function st(_0x2d4863){const _0x19562e=_0x28bbb9;let _0xbae5f3=atob(_0x2d4863),_0x318e06=new Uint8Array(_0xbae5f3[_0x19562e(0x47a)]);for(let _0x19ceff=0x0;_0x19ceff<_0xbae5f3['length'];_0x19ceff++)_0x318e06[_0x19ceff]=_0xbae5f3[_0x19562e(0x38f)](_0x19ceff);return _0x318e06;}function ct(_0x3535cd){const _0x500913=_0x28bbb9;let _0x5907eb='';for(let _0x266efa=0x0;_0x266efa<_0x3535cd[_0x500913(0x47a)];_0x266efa++)_0x5907eb+=String['fromCharCode'](_0x3535cd[_0x266efa]);return btoa(_0x5907eb);}function lt(_0x1daf59,_0x296371){const _0x2ec6f6=_0x28bbb9;let _0x5ea617=st(_0x296371),_0x2adcfa=(0x0,f[_0x2ec6f6(0x381)])(0x10),_0x1434bb=(0x0,d[_0x2ec6f6(0x548)])(_0x5ea617,_0x2adcfa)['encrypt']((0x0,f[_0x2ec6f6(0x390)])(_0x1daf59));return ct((0x0,f['concatBytes'])(_0x2adcfa,_0x1434bb));}function ut(){const _0x227614=_0x28bbb9;let _0x5eaf19=(0x0,u[_0x227614(0x4f5)])()[_0x227614(0x21a)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x5eaf19){let _0x4db7fa={'time':Math['floor'](Date[_0x227614(0x4a3)]()/0x3e8),'domain':location[_0x227614(0x263)]};return lt(JSON[_0x227614(0x4d3)](_0x4db7fa),_0x5eaf19);}}let J=class{constructor(_0x8b52b5){const _0x2441de=_0x28bbb9;this[_0x2441de(0x2a4)]=_0x8b52b5,this[_0x2441de(0x430)]();}[_0x28bbb9(0x430)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1589c3,_0x310eab)=>{const _0x54e7aa=_0x53d0;let _0x35541f=ut();return _0x35541f&&_0x1589c3['headers'][_0x54e7aa(0x36a)]('x-univer-host',_0x35541f),_0x310eab(_0x1589c3);}});}};J=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(e['HTTPService']))],J);let Y=class extends r['RxDisposable']{constructor(_0x42a047,_0xe81de1,_0xd96e7d){const _0x4bf90f=_0x28bbb9;super(),this[_0x4bf90f(0x41e)]=_0x42a047,this[_0x4bf90f(0x494)]=_0xe81de1,this[_0x4bf90f(0x4a5)]=_0xd96e7d,_(this,'_unitInfo$',new t[(_0x4bf90f(0x45f))](null)),_(this,_0x4bf90f(0x34e),new t[(_0x4bf90f(0x39a))]()),_(this,_0x4bf90f(0x566),this[_0x4bf90f(0x20f)][_0x4bf90f(0x32f)]()),_(this,_0x4bf90f(0x312),this['_unitLoaded$'][_0x4bf90f(0x32f)]());}[_0x28bbb9(0x3ac)](){const _0x13480c=_0x28bbb9;super[_0x13480c(0x3ac)](),this['_unitLoaded$'][_0x13480c(0x30f)](),this[_0x13480c(0x20f)][_0x13480c(0x30f)]();}['loadUnitOfRevision'](_0x554788,_0x3a41c3,_0x4fffcf,_0x4850e7,_0xefd3c4){return this['_loadUnit'](_0x554788,_0x3a41c3,_0x4fffcf,_0x4850e7,_0xefd3c4);}[_0x28bbb9(0x55f)](_0x48b8f,_0x37eaca,_0x4d61ce,_0x1e5f60){const _0x2f4647=_0x28bbb9;return this[_0x2f4647(0x54b)](_0x48b8f,_0x37eaca,void 0x0,_0x4d61ce,_0x1e5f60);}async[_0x28bbb9(0x54b)](_0x24de53,_0x30e847,_0x528d17,_0x1c7c6a,_0x1b8799){const _0x393911=_0x28bbb9;this[_0x393911(0x20f)][_0x393911(0x512)]({'unitId':_0x24de53,'type':_0x30e847,'subUnitId':_0x1c7c6a});let _0x306e70=_0x528d17;if(_0x306e70===void 0x0){var _0x50a06c;let _0x511c47=await((_0x50a06c=this[_0x393911(0x4a5)])==null?void 0x0:_0x50a06c[_0x393911(0x3b8)](_0x24de53));_0x306e70=_0x511c47&&(_0x511c47[_0x393911(0x438)]||_0x511c47[_0x393911(0x220)][_0x393911(0x47a)]!==0x0)?_0x511c47[_0x393911(0x3af)]:0x0,_0x306e70===0x0&&this[_0x393911(0x41e)][_0x393911(0x2ba)](_0x393911(0x40a),_0x393911(0x559));}return this[_0x393911(0x444)](_0x24de53,_0x30e847,_0x306e70,_0x1c7c6a,_0x1b8799);}async['_loadSnapshot'](_0x3b2e95,_0x33176b,_0x55c09b,_0x293ea9,_0x20a06a){const _0x34caef=_0x28bbb9;let _0xac0583=null;switch(_0x33176b){case r[_0x34caef(0x24b)][_0x34caef(0x486)]:_0xac0583=await this[_0x34caef(0x494)][_0x34caef(0x1ce)](_0x3b2e95,_0x55c09b,_0x20a06a,{'initialSubUnitId':_0x293ea9});break;case r[_0x34caef(0x24b)][_0x34caef(0x297)]:_0xac0583=await this['_snapshotService'][_0x34caef(0x206)](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x405)]:_0xac0583=await this['_snapshotService'][_0x34caef(0x3d7)](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x449)]:_0xac0583=await this['_snapshotService']['loadBoard'](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x3bb)]:_0xac0583=await this['_snapshotService'][_0x34caef(0x337)](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x367)]:_0xac0583=await this['_snapshotService']['loadPdf'](_0x3b2e95,_0x55c09b,_0x20a06a);break;default:this[_0x34caef(0x41e)][_0x34caef(0x456)](_0x34caef(0x40a),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0xac0583&&this[_0x34caef(0x34e)][_0x34caef(0x512)](_0xac0583),_0xac0583;}};Y=b([y(0x0,r[_0x28bbb9(0x369)]),y(0x1,(0x0,r['Inject'])(n[_0x28bbb9(0x471)])),y(0x2,(0x0,r[_0x28bbb9(0x1cd)])(C))],Y);let X=class{constructor(_0x2913ae,_0x22a6c9,_0x34a138){const _0x4040fa=_0x28bbb9;this[_0x4040fa(0x2a4)]=_0x2913ae,this['_configService']=_0x22a6c9,this[_0x4040fa(0x4b7)]=_0x34a138,_(this,'_waitCount',0x0),_(this,_0x4040fa(0x547),new t[(_0x4040fa(0x39a))]()),_(this,'change$',this[_0x4040fa(0x547)]),_(this,_0x4040fa(0x3c2),new Map());}[_0x28bbb9(0x37c)](_0x428a9c){const _0x191d24=_0x28bbb9;this['_waitCount']=_0x428a9c,this[_0x191d24(0x547)]['next'](_0x428a9c);}[_0x28bbb9(0x256)](_0x22611c,_0x3090d1){const _0x2fcb3d=_0x28bbb9;if(_0x3090d1===r[_0x2fcb3d(0x4f3)]['BASE64']){let _0x48c750=new Image();return _0x48c750[_0x2fcb3d(0x333)]=_0x22611c,_0x48c750;}return this[_0x2fcb3d(0x3c2)][_0x2fcb3d(0x285)](_0x22611c);}[_0x28bbb9(0x2a1)](_0x29bd6a,_0x4ab156,_0x2c64d7){const _0x2cde2c=_0x28bbb9;_0x4ab156!==r[_0x2cde2c(0x4f3)][_0x2cde2c(0x1bb)]&&_0x2c64d7!=null&&this[_0x2cde2c(0x3c2)]['set'](_0x29bd6a,_0x2c64d7);}async[_0x28bbb9(0x527)](_0xeb13d){const _0x328baf=_0x28bbb9;try{let _0x316fb8=this[_0x328baf(0x3d8)](this[_0x328baf(0x2ef)](),''+_0xeb13d),_0x5ee50b=(await this['_httpService'][_0x328baf(0x285)](_0x316fb8))[_0x328baf(0x340)];if(_0x5ee50b['error']&&_0x5ee50b['error']['code']===o[_0x328baf(0x1b7)]['OK']){let _0x2cf382=(0x0,r[_0x328baf(0x28c)])(_0x5ee50b['url'],this[_0x328baf(0x3df)]());return Promise['resolve'](_0x2cf382);}return Promise[_0x328baf(0x481)](_0x5ee50b[_0x328baf(0x456)]);}catch(_0x44e53c){return Promise[_0x328baf(0x481)](_0x44e53c);}}async[_0x28bbb9(0x4ad)](_0x8ba2cc){const _0x1b9cff=_0x28bbb9;let _0x305644='';if(!p['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x1b9cff(0x539)](_0x8ba2cc[_0x1b9cff(0x538)]))return this['_decreaseWaiting'](),Promise[_0x1b9cff(0x481)](Error(r[_0x1b9cff(0x563)]['ERROR_IMAGE_TYPE']));if(_0x8ba2cc['size']>(0x0,p[_0x1b9cff(0x2f7)])())return this[_0x1b9cff(0x1e1)](),Promise['reject'](Error(r['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{let _0x1234f8=new FormData();_0x1234f8[_0x1b9cff(0x1ef)](_0x1b9cff(0x246),_0x8ba2cc);let _0x5176ed=this['_univerInstanceService']['getFocusedUnit'](),_0x15a5ba=_0x5176ed==null?void 0x0:_0x5176ed[_0x1b9cff(0x3e7)]();if(!_0x15a5ba)throw Error('unitId\x20is\x20not\x20found');let _0x16a6c2=this[_0x1b9cff(0x516)]()+'?size='+_0x8ba2cc[_0x1b9cff(0x1e8)][_0x1b9cff(0x4c0)]()+_0x1b9cff(0x2fc)+o['FileSource'][_0x1b9cff(0x43d)]+'&assign='+encodeURIComponent(_0x15a5ba),_0x5bf507={'body':_0x1234f8},_0x8b8c42=(await this['_httpService'][_0x1b9cff(0x36b)](_0x16a6c2,_0x5bf507))[_0x1b9cff(0x340)];if(typeof _0x8b8c42['FileId']!=_0x1b9cff(0x2d4))return this[_0x1b9cff(0x1e1)](),Promise[_0x1b9cff(0x481)](Error(r[_0x1b9cff(0x563)]['ERROR_IMAGE']));_0x305644=_0x8b8c42[_0x1b9cff(0x217)];}catch{return this['_decreaseWaiting'](),Promise[_0x1b9cff(0x481)](Error(r[_0x1b9cff(0x563)]['ERROR_IMAGE']));}return new Promise((_0x36bb09,_0x246328)=>{const _0x82ca04=_0x1b9cff;let _0xb43a39=new FileReader();_0xb43a39[_0x82ca04(0x31e)](_0x8ba2cc),_0xb43a39['onload']=_0x3dc964=>{const _0x47f873=_0x82ca04;var _0x4039af;let _0x442a80=(_0x4039af=_0x3dc964[_0x47f873(0x29d)])==null?void 0x0:_0x4039af[_0x47f873(0x319)];_0x442a80==null?(this[_0x47f873(0x1e1)](),_0x246328(Error(r[_0x47f873(0x563)]['ERROR_IMAGE']))):(_0x36bb09({'imageId':(0x0,r[_0x47f873(0x24f)])(0x6),'imageSourceType':r[_0x47f873(0x4f3)]['UUID'],'source':_0x305644,'base64Cache':_0x442a80,'status':r[_0x47f873(0x563)][_0x47f873(0x232)]}),this['_decreaseWaiting']());};});}['_getUploadFileURL'](){const _0x4826c5=_0x28bbb9;let _0x7f8794=this['_configService'][_0x4826c5(0x230)](m);return(_0x7f8794==null?void 0x0:_0x7f8794[_0x4826c5(0x1ed)])??_0x4826c5(0x1c2);}[_0x28bbb9(0x2ef)](){const _0x102eef=_0x28bbb9;let _0x2aa09f=this['_configService']['getConfig'](m);return(_0x2aa09f==null?void 0x0:_0x2aa09f[_0x102eef(0x2af)])??_0x102eef(0x545);}[_0x28bbb9(0x3df)](){const _0x53dbe4=_0x28bbb9;let _0x4d6ede=this[_0x53dbe4(0x2c8)][_0x53dbe4(0x230)](m);return(_0x4d6ede==null?void 0x0:_0x4d6ede[_0x53dbe4(0x380)])??location[_0x53dbe4(0x2e3)];}[_0x28bbb9(0x3d8)](_0x525b40,_0x1488a0){const _0x17d529=_0x28bbb9;return _0x525b40[_0x17d529(0x484)](_0x17d529(0x544),_0x1488a0);}[_0x28bbb9(0x1e1)](){const _0x561f43=_0x28bbb9;--this[_0x561f43(0x500)],this[_0x561f43(0x547)][_0x561f43(0x512)](this[_0x561f43(0x500)]);}};X=b([y(0x0,(0x0,r['Inject'])(e['HTTPService'])),y(0x1,r[_0x28bbb9(0x421)]),y(0x2,(0x0,r['Inject'])(r['IUniverInstanceService']))],X);let Z=class{constructor(_0x19ee94,_0x3d532){const _0x386bcb=_0x28bbb9;this['_configService']=_0x19ee94,this[_0x386bcb(0x24d)]=_0x3d532;}[_0x28bbb9(0x2e1)](){const _0x1d371d=_0x28bbb9;let _0x17e2e5=this[_0x1d371d(0x2c8)][_0x1d371d(0x230)](m);return(_0x17e2e5==null?void 0x0:_0x17e2e5[_0x1d371d(0x4d5)])??'/universer-api/authz';}async['list'](_0x4330da){const _0x3c0f93=_0x28bbb9;let _0x3c54bf=this[_0x3c0f93(0x2e1)]()+_0x3c0f93(0x1fd);return{'list':[{'title':_0x3c0f93(0x50a),'mentions':(await this[_0x3c0f93(0x24d)][_0x3c0f93(0x285)](_0x3c54bf,{'params':{'objectID':_0x4330da[_0x3c0f93(0x212)],'unitID':_0x4330da[_0x3c0f93(0x212)]}}))['body']['collaborators'][_0x3c0f93(0x485)](_0x4b9923=>({'objectId':_0x4b9923['id'],'name':_0x4b9923[_0x3c0f93(0x2d5)][_0x3c0f93(0x234)],'metadata':{'icon':_0x4b9923[_0x3c0f93(0x2d5)]['avatar']},'label':_0x4b9923[_0x3c0f93(0x2d5)]['name'],'objectType':r[_0x3c0f93(0x50e)]['PERSON']})),'metadata':{},'type':r['MentionType'][_0x3c0f93(0x4e1)]}]};}};Z=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x421)])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)]))],Z);let Q=class extends r[_0x28bbb9(0x22c)]{constructor(_0x34c637,_0x2f1071,_0x51e64c,_0x18835c,_0x45e2e5,_0x4a536a){const _0x444068=_0x28bbb9;super(),this['_injector']=_0x34c637,this['_univerInstanceService']=_0x2f1071,this[_0x444068(0x370)]=_0x51e64c,this[_0x444068(0x225)]=_0x18835c,this[_0x444068(0x22d)]=_0x45e2e5,this[_0x444068(0x3b5)]=_0x4a536a,_(this,_0x444068(0x56a),new Set()),this[_0x444068(0x457)](()=>this[_0x444068(0x56a)]['clear']()),this['disposeWithMe'](dt(this[_0x444068(0x4b7)])[_0x444068(0x264)](({unitId:_0x45c6f5})=>this['_closedUnits'][_0x444068(0x551)](_0x45c6f5))),this['_initUnitPermissionChange'](),this[_0x444068(0x273)](),[r[_0x444068(0x24b)][_0x444068(0x297)],r[_0x444068(0x24b)][_0x444068(0x405)],r[_0x444068(0x24b)][_0x444068(0x3bb)],r[_0x444068(0x24b)][_0x444068(0x449)]]['forEach'](_0x5cafea=>{const _0x52ca24=_0x444068;this[_0x52ca24(0x457)](this[_0x52ca24(0x4b7)][_0x52ca24(0x3ce)](_0x5cafea)[_0x52ca24(0x264)](_0x3cc33c=>{const _0x414d93=_0x52ca24;this[_0x414d93(0x56a)][_0x414d93(0x3a3)](_0x3cc33c[_0x414d93(0x3e7)]()),this[_0x414d93(0x475)]['get'](r[_0x414d93(0x3ba)])['clearUnit'](_0x3cc33c['getUnitId']());}));});}[_0x28bbb9(0x273)](){const _0x9af16c=_0x28bbb9;let _0x29f560=async(_0x3702b2,_0x149226)=>{const _0x4c9eac=_0x53d0;let _0x4a6e49=await this['_collaborationSessionService'][_0x4c9eac(0x345)](_0x3702b2);this['_disposed']||this['_closedUnits']['has'](_0x3702b2)||!this[_0x4c9eac(0x4b7)][_0x4c9eac(0x1e2)](_0x3702b2)||_0x4a6e49[_0x4c9eac(0x2f3)][_0x4c9eac(0x213)]((0x0,c[_0x4c9eac(0x46f)])(_0x294ad9=>_0x294ad9[_0x4c9eac(0x2ff)]===n['CollaborationEvent']['SHOULD_CLOSE_CONN']),(0x0,c['takeUntil'])((0x0,t[_0x4c9eac(0x3e1)])(this[_0x4c9eac(0x55d)],this[_0x4c9eac(0x4b7)][_0x4c9eac(0x22b)][_0x4c9eac(0x213)]((0x0,c['filter'])(_0x2e2b18=>_0x2e2b18[_0x4c9eac(0x3e7)]()===_0x3702b2)))))[_0x4c9eac(0x264)](_0xc3ef60=>{const _0x27b2a8=_0x4c9eac;let {reason:_0x1539a3}=_0xc3ef60[_0x27b2a8(0x350)];this[_0x27b2a8(0x3b5)][_0x27b2a8(0x40c)]({'id':'CLOSE_ROOM','data':_0x1539a3}),this[_0x27b2a8(0x56a)][_0x27b2a8(0x3a3)](_0x3702b2),this[_0x27b2a8(0x475)][_0x27b2a8(0x285)](r[_0x27b2a8(0x3ba)])[_0x27b2a8(0x32c)](_0x3702b2);let _0x6a4c3b=ft(_0x149226);_0x6a4c3b!=null&&this[_0x27b2a8(0x1c8)](_0x3702b2,_0x6a4c3b,o[_0x27b2a8(0x4b5)][_0x27b2a8(0x569)],!0x1),this[_0x27b2a8(0x22d)][_0x27b2a8(0x200)](_0x3702b2);});};dt(this[_0x9af16c(0x4b7)])[_0x9af16c(0x213)]((0x0,c[_0x9af16c(0x46f)])(({unitId:_0x4a00fd})=>!(0x0,r[_0x9af16c(0x53d)])(_0x4a00fd)),(0x0,c['takeUntil'])(this[_0x9af16c(0x55d)]))[_0x9af16c(0x264)](({type:_0x40b18f,unitId:_0x5a2460})=>{const _0x4d9fbb=_0x9af16c;_0x29f560(_0x5a2460,_0x40b18f)['catch'](_0x17354b=>this['_injector'][_0x4d9fbb(0x285)](r[_0x4d9fbb(0x369)])['error'](_0x17354b));});}[_0x28bbb9(0x554)](){const _0x18e54c=_0x28bbb9;let _0x5ae7db=async(_0x223bbd,_0xcbaecb)=>{const _0x2c1613=_0x53d0;let _0x5d48f5=await this[_0x2c1613(0x22d)]['requireSession'](_0x223bbd);if(!(this[_0x2c1613(0x1c7)]||this[_0x2c1613(0x56a)][_0x2c1613(0x546)](_0x223bbd)||!this[_0x2c1613(0x4b7)]['getUnit'](_0x223bbd))){if(_0xcbaecb===r[_0x2c1613(0x24b)][_0x2c1613(0x486)]){let _0x5380c0=this[_0x2c1613(0x475)][_0x2c1613(0x285)](a['SheetPermissionInitController']);await _0x5380c0[_0x2c1613(0x361)](_0x223bbd),_0x5d48f5[_0x2c1613(0x2f3)][_0x2c1613(0x213)]((0x0,c['filter'])(_0x56c413=>_0x56c413[_0x2c1613(0x2ff)]===n['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,c[_0x2c1613(0x418)])((0x0,t['merge'])(this[_0x2c1613(0x55d)],_0x5d48f5[_0x2c1613(0x2f3)][_0x2c1613(0x213)]((0x0,c[_0x2c1613(0x46f)])(_0x5c0273=>_0x5c0273[_0x2c1613(0x2ff)]===n[_0x2c1613(0x33f)][_0x2c1613(0x22a)])),this[_0x2c1613(0x4b7)]['unitDisposed$']['pipe']((0x0,c[_0x2c1613(0x46f)])(_0x5ecbb7=>_0x5ecbb7[_0x2c1613(0x3e7)]()===_0x223bbd)))))[_0x2c1613(0x264)](_0x55d6a7=>{const _0x315d7a=_0x2c1613;let {objectId:_0x2f4ebb}=_0x55d6a7[_0x315d7a(0x350)];_0x2f4ebb===_0x223bbd?_0x5380c0['initWorkbookPermissionChange'](_0x223bbd):_0x5380c0[_0x315d7a(0x40d)](_0x223bbd,_0x2f4ebb);});}else _0x5d48f5[_0x2c1613(0x2f3)]['pipe']((0x0,c[_0x2c1613(0x46f)])(_0x25942a=>_0x25942a[_0x2c1613(0x2ff)]===n[_0x2c1613(0x33f)]['UPDATE_PERMISSION_OBJ']),(0x0,c[_0x2c1613(0x418)])((0x0,t[_0x2c1613(0x3e1)])(this[_0x2c1613(0x55d)],_0x5d48f5[_0x2c1613(0x2f3)][_0x2c1613(0x213)]((0x0,c[_0x2c1613(0x46f)])(_0x28e153=>_0x28e153[_0x2c1613(0x2ff)]===n[_0x2c1613(0x33f)]['SHOULD_CLOSE_CONN'])),this[_0x2c1613(0x4b7)][_0x2c1613(0x22b)]['pipe']((0x0,c['filter'])(_0xf4919c=>_0xf4919c[_0x2c1613(0x3e7)]()===_0x223bbd)))))[_0x2c1613(0x264)](()=>{const _0x25f1ca=_0x2c1613;this[_0x25f1ca(0x3ed)](_0x223bbd,_0xcbaecb)[_0x25f1ca(0x4a4)](_0x5f0cf6=>this[_0x25f1ca(0x475)][_0x25f1ca(0x285)](r[_0x25f1ca(0x369)])[_0x25f1ca(0x456)](_0x5f0cf6));}),await this[_0x2c1613(0x3ed)](_0x223bbd,_0xcbaecb);}};dt(this[_0x18e54c(0x4b7)])['pipe']((0x0,c[_0x18e54c(0x46f)])(({unitId:_0x18ba12})=>!(0x0,r[_0x18e54c(0x53d)])(_0x18ba12)),(0x0,c[_0x18e54c(0x418)])(this[_0x18e54c(0x55d)]))[_0x18e54c(0x264)](({type:_0x2b4eea,unitId:_0x51e246})=>{const _0x458272=_0x18e54c;_0x5ae7db(_0x51e246,_0x2b4eea)['catch'](_0x4764e9=>this['_injector']['get'](r[_0x458272(0x369)])[_0x458272(0x456)](_0x4764e9));});}async[_0x28bbb9(0x3ed)](_0x4c19db,_0x571908){const _0x3384ba=_0x28bbb9;let _0xa4c899=ft(_0x571908);if(_0xa4c899==null)return;let _0x553be6=this['_injector'][_0x3384ba(0x285)](r[_0x3384ba(0x3ba)]);if(_0x553be6[_0x3384ba(0x249)]({'unitId':_0x4c19db,'objectId':_0x4c19db,'objectType':_0xa4c899})){await _0x553be6[_0x3384ba(0x1e0)](_0x4c19db);return;}let _0x2afd38=this[_0x3384ba(0x2f2)](_0x4c19db,_0xa4c899);if(!_0x2afd38[_0x3384ba(0x47a)])return;let _0x232247=await this[_0x3384ba(0x225)][_0x3384ba(0x3f4)]({'objectID':_0x4c19db,'objectType':_0xa4c899,'unitID':_0x4c19db,'actions':_0x2afd38[_0x3384ba(0x485)](({action:_0x57f9ab})=>_0x57f9ab)});this[_0x3384ba(0x1c7)]||this['_closedUnits'][_0x3384ba(0x546)](_0x4c19db)||!this[_0x3384ba(0x4b7)][_0x3384ba(0x1e2)](_0x4c19db)||_0x232247[_0x3384ba(0x3e9)](_0x20e190=>{const _0x1eceb4=_0x3384ba;let _0x498595=_0x20e190[_0x1eceb4(0x4c1)],_0xcb80df=_0x20e190[_0x1eceb4(0x3f4)];_0x498595!=null&&_0xcb80df!=null&&_0x2afd38[_0x1eceb4(0x46f)](_0x32af35=>_0x32af35[_0x1eceb4(0x4c1)]===_0x498595)[_0x1eceb4(0x3e9)](_0x7cfb7f=>this['_permissionService'][_0x1eceb4(0x3cc)](_0x7cfb7f['id'],_0xcb80df));});}['_getUnitPermissionPoints'](_0x4358d4,_0x241f39){const _0x4050e7=_0x28bbb9;let _0x5495bd=[];return this[_0x4050e7(0x370)][_0x4050e7(0x251)]()[_0x4050e7(0x3e9)]((_0x1065f3,_0x25b261)=>{_0x1065f3['subscribe'](_0x284c23=>{const _0x3dd4f0=_0x53d0;_0x284c23[_0x3dd4f0(0x538)]===_0x241f39&&_0x3dd4f0(0x212)in _0x284c23&&_0x284c23[_0x3dd4f0(0x212)]===_0x4358d4&&(!(_0x3dd4f0(0x394)in _0x284c23)||_0x284c23['objectId']===_0x4358d4)&&_0x5495bd[_0x3dd4f0(0x4ec)]({'id':_0x25b261,'action':_0x284c23[_0x3dd4f0(0x2f4)]});})['unsubscribe']();}),_0x5495bd;}[_0x28bbb9(0x1c8)](_0x4c7508,_0x41a119,_0x4c0862,_0x3f69ce){const _0x1cadb9=_0x28bbb9;this['_permissionService'][_0x1cadb9(0x251)]()[_0x1cadb9(0x3e9)]((_0x30e853,_0x1cf78f)=>{const _0x160a04=_0x1cadb9;let _0x1a8410=!0x1;_0x30e853['subscribe'](_0x2dbf55=>{const _0x4d3f08=_0x53d0;_0x1a8410=_0x2dbf55[_0x4d3f08(0x538)]===_0x41a119&&_0x2dbf55[_0x4d3f08(0x2f4)]===_0x4c0862&&_0x4d3f08(0x212)in _0x2dbf55&&_0x2dbf55['unitId']===_0x4c7508&&(!(_0x4d3f08(0x394)in _0x2dbf55)||_0x2dbf55[_0x4d3f08(0x394)]===_0x4c7508);})[_0x160a04(0x3c7)](),_0x1a8410&&this[_0x160a04(0x370)][_0x160a04(0x3cc)](_0x1cf78f,_0x3f69ce);});}};Q=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x1,r[_0x28bbb9(0x51c)]),y(0x2,r['IPermissionService']),y(0x3,r[_0x28bbb9(0x3b2)]),y(0x4,(0x0,r['Inject'])(U)),y(0x5,(0x0,r[_0x28bbb9(0x431)])(v))],Q);function dt(_0x14ba21){const _0x5d29c2=_0x28bbb9;return(0x0,t[_0x5d29c2(0x3e1)])(...[r[_0x5d29c2(0x24b)][_0x5d29c2(0x486)],r['UniverInstanceType'][_0x5d29c2(0x297)],r['UniverInstanceType'][_0x5d29c2(0x405)],r['UniverInstanceType']['UNIVER_BOARD'],r[_0x5d29c2(0x24b)]['UNIVER_BASE']][_0x5d29c2(0x485)](_0x5921f6=>_0x14ba21[_0x5d29c2(0x342)](_0x5921f6)[_0x5d29c2(0x213)]((0x0,c['map'])(_0x3be352=>({'type':_0x5921f6,'unitId':_0x3be352[_0x5d29c2(0x54f)][_0x5d29c2(0x3e7)]()})))));}function ft(_0x5d134d){const _0x39ff35=_0x28bbb9;switch(_0x5d134d){case r[_0x39ff35(0x24b)][_0x39ff35(0x486)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x218)];case r[_0x39ff35(0x24b)][_0x39ff35(0x297)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x357)];case r[_0x39ff35(0x24b)][_0x39ff35(0x405)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x410)];case r[_0x39ff35(0x24b)][_0x39ff35(0x449)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x396)];case r['UniverInstanceType'][_0x39ff35(0x3bb)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x41d)];default:return;}}let pt=class{constructor(_0x6d69b6,_0x45e2ac){const _0x3f9e91=_0x28bbb9;this[_0x3f9e91(0x2c8)]=_0x6d69b6,this['_httpService']=_0x45e2ac;}async['getUnitOnRev'](_0x17e73c,_0x27050d){const _0x1a58c7=_0x28bbb9;var _0xf73452;let {unitID:_0x30cebf,type:_0x43fa26,revision:_0xf195fb=0x0}=_0x27050d,_0x4b9a99=this[_0x1a58c7(0x26a)]()+'/'+_0x43fa26+_0x1a58c7(0x300)+_0x30cebf+'/rev/'+_0xf195fb,_0xea705f=(await this[_0x1a58c7(0x2a4)]['get'](_0x4b9a99))['body'],_0x430789=(_0xf73452=_0xea705f['snapshot'])==null?void 0x0:_0xf73452[_0x1a58c7(0x447)];if(_0x430789){let _0xfdea4d=_0x430789==null?void 0x0:_0x430789[_0x1a58c7(0x36c)];_0x430789[_0x1a58c7(0x36c)]=n[_0x1a58c7(0x355)][_0x1a58c7(0x216)]((0x0,n[_0x1a58c7(0x490)])(_0xfdea4d)),Object[_0x1a58c7(0x215)](_0x430789[_0x1a58c7(0x480)])[_0x1a58c7(0x3e9)](([,_0x488dbd])=>{const _0x50a2f6=_0x1a58c7;let _0x367679=_0x488dbd['originalMeta'];_0x488dbd[_0x50a2f6(0x36c)]=n[_0x50a2f6(0x355)][_0x50a2f6(0x216)]((0x0,n[_0x50a2f6(0x490)])(_0x367679));});}return _0xea705f;}async[_0x28bbb9(0x564)](_0x31b213,_0x32d7c0){const _0x4b81fb=_0x28bbb9;let {unitID:_0x4296e0,type:_0xbf222f,blockID:_0x55128e}=_0x32d7c0,_0x401e1a=this[_0x4b81fb(0x46e)]()+'/'+_0xbf222f+_0x4b81fb(0x300)+_0x4296e0+_0x4b81fb(0x3d5)+_0x55128e;return(await this['_httpService'][_0x4b81fb(0x285)](_0x401e1a))[_0x4b81fb(0x340)];}async[_0x28bbb9(0x38b)](_0x46edca,_0xf78edc){const _0x48082e=_0x28bbb9;let {unitID:_0x3e6eab,type:_0x1205c0,blockID:_0x333fb8}=_0xf78edc,_0x3cef51=this[_0x48082e(0x46e)]()+_0x48082e(0x3d5)+_0x1205c0+_0x48082e(0x300)+_0x3e6eab+_0x48082e(0x3d5)+_0x333fb8;return(await this[_0x48082e(0x2a4)][_0x48082e(0x285)](_0x3cef51))[_0x48082e(0x340)];}async[_0x28bbb9(0x556)](_0x2b850f,_0x22a44b){const _0x4d43fd=_0x28bbb9;let {unitID:_0x14a18f,type:_0x2a697d,from:_0x5f0a2b,to:_0x4c991d}=_0x22a44b,_0x3b7b9b=this[_0x4d43fd(0x46e)]()+'/'+_0x2a697d+_0x4d43fd(0x300)+_0x14a18f+_0x4d43fd(0x426)+_0x5f0a2b+_0x4d43fd(0x305)+_0x4c991d;return(await this[_0x4d43fd(0x2a4)][_0x4d43fd(0x285)](_0x3b7b9b))[_0x4d43fd(0x340)];}['getSnapshotAPIPath'](){const _0x51f96b=_0x28bbb9;return this[_0x51f96b(0x2c8)][_0x51f96b(0x230)](_0x51f96b(0x2c0))??this[_0x51f96b(0x46e)]();}[_0x28bbb9(0x46e)](){const _0x30c156=_0x28bbb9;let _0x1ef613=this[_0x30c156(0x2c8)][_0x30c156(0x230)](m);return(_0x1ef613==null?void 0x0:_0x1ef613[_0x30c156(0x1b5)])??_0x30c156(0x54c);}async[_0x28bbb9(0x364)](_0x205861,_0x684f18){const _0x3606fe=_0x28bbb9;let _0x2b67a4=_0x3606fe(0x34b)+_0x684f18['type']+'/unit/'+_0x684f18['unitID']+_0x3606fe(0x529);return(await this[_0x3606fe(0x2a4)][_0x3606fe(0x285)](_0x2b67a4,{'params':{'resourceId':JSON['stringify'](_0x684f18['resourceIDs'])}}))[_0x3606fe(0x340)];}[_0x28bbb9(0x39f)](){const _0x54d2c4=_0x28bbb9;throw Error(_0x54d2c4(0x536));}['updateSnapshot'](){const _0x4592e6=_0x28bbb9;throw Error(_0x4592e6(0x536));}[_0x28bbb9(0x33c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x28bbb9(0x55c)](){const _0x186f82=_0x28bbb9;throw Error(_0x186f82(0x536));}[_0x28bbb9(0x398)](){const _0xfe465c=_0x28bbb9;throw Error(_0xfe465c(0x536));}[_0x28bbb9(0x3f0)](){const _0x1f13c2=_0x28bbb9;throw Error(_0x1f13c2(0x536));}};pt=b([y(0x0,r['IConfigService']),y(0x1,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)]))],pt);let mt=class extends r[_0x28bbb9(0x280)]{constructor(_0x1e0218,_0x2cec4a,_0x49970a,_0x59e61f,_0x2a5bb2,_0x75fa72){const _0x38dfa5=_0x28bbb9;super(_0x1e0218,_0x2cec4a,_0x49970a,_0x59e61f),this[_0x38dfa5(0x1f2)]=_0x2a5bb2,this['_logService']=_0x75fa72;}[_0x28bbb9(0x2be)](_0x446ab7,_0x8170d5){const _0x12a77c=_0x28bbb9;let _0x11c848=this[_0x12a77c(0x2d8)](_0x446ab7);if(_0x11c848)try{let _0x324fed=this[_0x12a77c(0x4ab)](_0x11c848,_0x8170d5);this['_substituteUndoStack'](_0x446ab7,_0x324fed);}catch(_0x539ced){this[_0x12a77c(0x41e)][_0x12a77c(0x456)](_0x12a77c(0x288),_0x539ced),this['_clearUndo'](_0x446ab7);}let _0x29c106=this[_0x12a77c(0x276)](_0x446ab7);if(_0x29c106)try{let _0x3de0a5=this[_0x12a77c(0x4ab)](_0x29c106,_0x8170d5,!0x0);this['_substituteRedoStack'](_0x446ab7,_0x3de0a5);}catch(_0xf3c114){this['_logService']['error'](_0xf3c114),this[_0x12a77c(0x3ee)](_0x446ab7);}}[_0x28bbb9(0x1c6)](_0x593656){const _0x53440f=_0x28bbb9;let _0x54d1a1=this[_0x53440f(0x2d8)](_0x593656);_0x54d1a1&&(_0x54d1a1[_0x53440f(0x47a)]=0x0,this[_0x53440f(0x3b0)]());}['_clearRedo'](_0x53e3e9){const _0x3b7978=_0x28bbb9;let _0x4cdd6c=this['_getRedoStack'](_0x53e3e9);_0x4cdd6c&&(_0x4cdd6c[_0x3b7978(0x47a)]=0x0,this[_0x3b7978(0x3b0)]());}[_0x28bbb9(0x20b)](_0x4940ad,_0x22526e){const _0x444e0f=_0x28bbb9;this[_0x444e0f(0x461)]['set'](_0x4940ad,_0x22526e),this['_updateStatus']();}[_0x28bbb9(0x2a5)](_0x5d6c03,_0x361d6f){const _0x2b7fe4=_0x28bbb9;this[_0x2b7fe4(0x463)][_0x2b7fe4(0x36a)](_0x5d6c03,_0x361d6f),this[_0x2b7fe4(0x3b0)]();}[_0x28bbb9(0x4ab)](_0x26b3d5,_0x48ffd2,_0x252352=!0x1){const _0x135d51=_0x28bbb9;if(!_0x26b3d5['length'])return[];let _0x5e2495=[],_0x18ac63=_0x48ffd2,_0x3a3d68=_0x48ffd2['type']===r[_0x135d51(0x24b)]['UNIVER_DOC']?this[_0x135d51(0x4b7)]['getUnit'](_0x48ffd2['unitID'],r[_0x135d51(0x24b)]['UNIVER_DOC']):null,_0x363c5f=_0x3a3d68?{'id':_0x3a3d68[_0x135d51(0x3e7)](),'documentStyle':{},'tableSource':r[_0x135d51(0x4cf)]['deepClone'](_0x3a3d68[_0x135d51(0x1f1)]()[_0x135d51(0x51f)]??{})}:null;for(let _0x403d90=_0x26b3d5[_0x135d51(0x47a)]-0x1;_0x403d90>=0x0;_0x403d90--){let {unitID:_0x181808,undoMutations:_0x414ce7,redoMutations:_0x54be73}=_0x26b3d5[_0x403d90],_0xe2b6cf=_0x252352?_0x54be73:_0x414ce7,_0x1a9a13=this[_0x135d51(0x3c9)](_0x18ac63,_0xe2b6cf);if((0x0,n[_0x135d51(0x2c3)])(_0x1a9a13)){this[_0x135d51(0x41e)]['error'](_0x135d51(0x288),_0x135d51(0x376),_0x1a9a13);break;}let _0x1bb0fe=_0x252352?_0x414ce7:_0x54be73,_0x131e0d=this[_0x135d51(0x3c9)](_0x1a9a13[_0x135d51(0x310)],_0x1bb0fe);if((0x0,n[_0x135d51(0x2c3)])(_0x131e0d)){this[_0x135d51(0x41e)]['error'](_0x135d51(0x288),_0x135d51(0x376),_0x131e0d);break;}let _0xc523f2=_0x252352?_0x131e0d:_0x1a9a13,_0x50ef10=_0x252352?_0x1a9a13:_0x131e0d;_0x18ac63=_0x1a9a13['c1Prime'],_0x363c5f&&=this[_0x135d51(0x505)](_0x363c5f,_0x1a9a13['m2Prime'],_0x131e0d[_0x135d51(0x3bd)]),_0x5e2495[_0x135d51(0x4ec)]({'unitID':_0x181808,'undoMutations':_0xc523f2[_0x135d51(0x3bd)],'redoMutations':_0x50ef10['m2Prime']});}return _0x5e2495[_0x135d51(0x275)]();}[_0x28bbb9(0x3c9)](_0x258c4c,_0x244afe){const _0x1c1ccc=_0x28bbb9;if(_0x258c4c[_0x1c1ccc(0x538)]!==r['UniverInstanceType'][_0x1c1ccc(0x297)]||_0x244afe[_0x1c1ccc(0x33e)](_0x4981a1=>_0x4981a1['id']!==i[_0x1c1ccc(0x4d7)]['id']))return this[_0x1c1ccc(0x1f2)]['transformMutationsWithChangeset'](_0x258c4c,_0x244afe);let _0x579bc7=r['Tools'][_0x1c1ccc(0x417)](_0x244afe),_0x46a132=[];for(let _0xa7c975 of _0x258c4c[_0x1c1ccc(0x220)]){let _0x2efcbf={..._0x258c4c,'mutations':[_0xa7c975]},_0x13c0fa=[];for(let _0x5c4832 of _0x579bc7){_0x2efcbf=this['_rebaseParagraphHistory'](_0x2efcbf,[_0x5c4832]);let _0x4ca4be=this[_0x1c1ccc(0x1f2)][_0x1c1ccc(0x541)](_0x2efcbf,[_0x5c4832]);if((0x0,n[_0x1c1ccc(0x2c3)])(_0x4ca4be))return _0x4ca4be;_0x2efcbf=_0x4ca4be[_0x1c1ccc(0x310)],_0x13c0fa[_0x1c1ccc(0x4ec)](..._0x4ca4be[_0x1c1ccc(0x3bd)]);}_0x579bc7=_0x13c0fa,_0x46a132['push'](..._0x2efcbf[_0x1c1ccc(0x220)]);}return{'m2Prime':_0x579bc7,'c1Prime':{..._0x258c4c,'mutations':_0x46a132}};}[_0x28bbb9(0x2dc)](_0x5be293,_0x36fbe5){const _0xf7e4d8=_0x28bbb9;let _0x47381c=new Map(),_0x49fc8e=r[_0xf7e4d8(0x3d3)][_0xf7e4d8(0x538)][_0xf7e4d8(0x34a)](_0x36fbe5[0x0][_0xf7e4d8(0x453)][_0xf7e4d8(0x3d1)]);if(_0x49fc8e[_0xf7e4d8(0x3e5)](null,_0x109907=>{const _0x3100a3=_0xf7e4d8;if(_0x109907['et']!==_0x3100a3(0x454))return;let _0xf06ea3=JSON[_0x3100a3(0x4d3)](_0x49fc8e[_0x3100a3(0x33d)]()),_0x1b96a9=_0x47381c['get'](_0xf06ea3)??new Map(),_0x549684=0x0;for(let _0x5f357f of _0x109907['e']){if(_0x5f357f['t']===r[_0x3100a3(0x525)]['RETAIN']){var _0x12dded;for(let _0x3e6a52 of((_0x12dded=_0x5f357f[_0x3100a3(0x340)])==null?void 0x0:_0x12dded[_0x3100a3(0x328)])??[])_0x1b96a9[_0x3100a3(0x36a)](_0x549684+_0x3e6a52[_0x3100a3(0x309)],{'paragraph':_0x3e6a52,'replace':_0x5f357f[_0x3100a3(0x279)]===r[_0x3100a3(0x4eb)][_0x3100a3(0x45a)]});}_0x5f357f['t']!==r[_0x3100a3(0x525)][_0x3100a3(0x3e4)]&&(_0x549684+=_0x5f357f[_0x3100a3(0x46c)]);}_0x1b96a9[_0x3100a3(0x1e8)]>0x0&&_0x47381c[_0x3100a3(0x36a)](_0xf06ea3,_0x1b96a9);}),_0x47381c[_0xf7e4d8(0x1e8)]===0x0)return _0x5be293;let _0x352904=r[_0xf7e4d8(0x4cf)][_0xf7e4d8(0x417)](_0x5be293);for(let _0x48b538 of _0x352904[_0xf7e4d8(0x220)]){if(_0x48b538['id']!==i['RichTextEditingMutation']['id'])continue;let _0x4aa48b=r[_0xf7e4d8(0x3d3)][_0xf7e4d8(0x538)][_0xf7e4d8(0x34a)](_0x48b538[_0xf7e4d8(0x453)][_0xf7e4d8(0x3d1)]);_0x4aa48b[_0xf7e4d8(0x3e5)](null,_0x5da7d9=>{const _0x1d2fdc=_0xf7e4d8;if(_0x5da7d9['et']!=='text-x')return;let _0x58fa2d=JSON['stringify'](_0x4aa48b[_0x1d2fdc(0x33d)]()),_0x572346=_0x47381c['get'](_0x58fa2d);if(!(_0x572346!=null&&_0x572346[_0x1d2fdc(0x1e8)]))return;let _0x47d08b=0x0;for(let _0x1445ee of _0x5da7d9['e']){if(_0x1445ee['t']===r['TextXActionType'][_0x1d2fdc(0x4f4)]&&_0x1445ee[_0x1d2fdc(0x279)]===r[_0x1d2fdc(0x4eb)][_0x1d2fdc(0x45a)]){var _0x56bbe8;for(let _0x18375c of((_0x56bbe8=_0x1445ee['body'])==null?void 0x0:_0x56bbe8[_0x1d2fdc(0x328)])??[]){var _0x46bcbf;let _0xabf1a7=(_0x46bcbf=_0x1445ee['oldBody'])==null||(_0x46bcbf=_0x46bcbf['paragraphs'])==null?void 0x0:_0x46bcbf[_0x1d2fdc(0x552)](_0x1ce1ac=>_0x1ce1ac[_0x1d2fdc(0x309)]===_0x18375c[_0x1d2fdc(0x309)]),_0x21c18a=_0x572346[_0x1d2fdc(0x285)](_0x47d08b+_0x18375c[_0x1d2fdc(0x309)]);if(_0xabf1a7&&_0x21c18a){this[_0x1d2fdc(0x25f)](_0x18375c,_0xabf1a7,_0x21c18a[_0x1d2fdc(0x30a)],_0x21c18a[_0x1d2fdc(0x484)]);let _0x5e9463=_0x21c18a['replace']?new Set([...Object['keys'](_0x21c18a['paragraph']),...Object[_0x1d2fdc(0x4fb)](_0x18375c)]):Object[_0x1d2fdc(0x4fb)](_0x21c18a[_0x1d2fdc(0x30a)]);for(let _0xe144a1 of _0x5e9463){if(_0xe144a1===_0x1d2fdc(0x309)||_0xe144a1===_0x1d2fdc(0x29a))continue;let _0x3f43f3=Reflect[_0x1d2fdc(0x285)](_0x18375c,_0xe144a1);_0x3f43f3===void 0x0?Reflect[_0x1d2fdc(0x420)](_0x21c18a[_0x1d2fdc(0x30a)],_0xe144a1):Reflect[_0x1d2fdc(0x36a)](_0x21c18a['paragraph'],_0xe144a1,r[_0x1d2fdc(0x4cf)][_0x1d2fdc(0x417)](_0x3f43f3));}}}}_0x1445ee['t']!==r[_0x1d2fdc(0x525)][_0x1d2fdc(0x3e4)]&&(_0x47d08b+=_0x1445ee[_0x1d2fdc(0x46c)]);}});}return _0x352904;}[_0x28bbb9(0x25f)](_0x392ae0,_0x515069,_0x34c531,_0x200a76){const _0x24716b=_0x28bbb9;let _0x2233fe=new Set([...Object[_0x24716b(0x4fb)](_0x392ae0),...Object[_0x24716b(0x4fb)](_0x515069),...Object[_0x24716b(0x4fb)](_0x34c531)]);for(let _0x5d20af of _0x2233fe){if(_0x5d20af===_0x24716b(0x309)||_0x5d20af===_0x24716b(0x29a))continue;let _0x2224a9=Reflect[_0x24716b(0x285)](_0x392ae0,_0x5d20af),_0xe5dd64=Reflect[_0x24716b(0x285)](_0x515069,_0x5d20af),_0x47077b=Reflect[_0x24716b(0x285)](_0x34c531,_0x5d20af);if(_0x200a76||_0x47077b!==void 0x0){if(r['Tools'][_0x24716b(0x521)](_0x2224a9,_0xe5dd64))_0x47077b===void 0x0?(Reflect[_0x24716b(0x420)](_0x392ae0,_0x5d20af),Reflect[_0x24716b(0x420)](_0x515069,_0x5d20af)):(Reflect[_0x24716b(0x36a)](_0x392ae0,_0x5d20af,r[_0x24716b(0x4cf)][_0x24716b(0x417)](_0x47077b)),Reflect[_0x24716b(0x36a)](_0x515069,_0x5d20af,r[_0x24716b(0x4cf)][_0x24716b(0x417)](_0x47077b)));else{if(r[_0x24716b(0x4cf)]['isObject'](_0x2224a9)&&(r['Tools'][_0x24716b(0x534)](_0xe5dd64)||_0xe5dd64===void 0x0)){let _0x5896d1=_0xe5dd64??{};this[_0x24716b(0x25f)](_0x2224a9,_0x5896d1,r['Tools'][_0x24716b(0x534)](_0x47077b)?_0x47077b:{},_0x200a76),(_0xe5dd64!==void 0x0||Object['keys'](_0x5896d1)[_0x24716b(0x47a)]>0x0)&&Reflect[_0x24716b(0x36a)](_0x515069,_0x5d20af,_0x5896d1);}}}}}[_0x28bbb9(0x505)](_0x196f80,_0x98632e,_0x349bb8){const _0x4d7ee9=_0x28bbb9;if(_0x98632e['length']!==0x1||_0x349bb8[_0x4d7ee9(0x47a)]!==0x1||_0x98632e[0x0]['id']!==i[_0x4d7ee9(0x4d7)]['id']||_0x349bb8[0x0]['id']!==i['RichTextEditingMutation']['id'])return _0x196f80;let _0x53941f=_0x98632e[0x0][_0x4d7ee9(0x453)],_0x5955c3=_0x349bb8[0x0][_0x4d7ee9(0x453)],_0x5be373=this[_0x4d7ee9(0x292)](_0x53941f[_0x4d7ee9(0x3d1)],!0x0);return r[_0x4d7ee9(0x413)][_0x4d7ee9(0x33b)](_0x5be373)?_0x196f80:(_0x5955c3[_0x4d7ee9(0x3d1)]=r[_0x4d7ee9(0x413)][_0x4d7ee9(0x24c)](this[_0x4d7ee9(0x292)](_0x5955c3['actions'],!0x1),r[_0x4d7ee9(0x413)][_0x4d7ee9(0x487)](_0x5be373,_0x196f80)),r[_0x4d7ee9(0x413)]['apply'](_0x196f80,_0x5be373)??_0x196f80);}[_0x28bbb9(0x292)](_0x3280fe,_0x3855fd){const _0x358b5b=_0x28bbb9;let _0x5be5e4=r['JSON1'][_0x358b5b(0x538)][_0x358b5b(0x34a)](_0x3280fe),_0x1211a4=r[_0x358b5b(0x3d3)]['type'][_0x358b5b(0x23e)]();return _0x5be5e4[_0x358b5b(0x3e5)](null,_0x3a0d68=>{const _0x1f1576=_0x358b5b;let _0x34ce05=_0x5be5e4[_0x1f1576(0x33d)]();if(_0x34ce05[0x0]===_0x1f1576(0x51f)===_0x3855fd){for(let _0x35c44b of Object[_0x1f1576(0x4fb)](_0x3a0d68))_0x1211a4[_0x1f1576(0x49c)](_0x34ce05,_0x35c44b,_0x3a0d68[_0x35c44b]);}}),_0x1211a4[_0x358b5b(0x285)]();}};mt=b([y(0x0,r['IUniverInstanceService']),y(0x1,r['ICommandService']),y(0x2,r['IContextService']),y(0x3,r[_0x28bbb9(0x421)]),y(0x4,n[_0x28bbb9(0x4fc)]),y(0x5,r[_0x28bbb9(0x369)])],mt);let $=class extends r[_0x28bbb9(0x522)]{constructor(_0x588744=h,_0x2a9aab,_0x112115,_0x50e49e){const _0x559972=_0x28bbb9;super(),this[_0x559972(0x2c7)]=_0x588744,this[_0x559972(0x41e)]=_0x2a9aab,this[_0x559972(0x475)]=_0x112115,this[_0x559972(0x2c8)]=_0x50e49e;let {..._0x41bd80}=(0x0,r[_0x559972(0x3e1)])({},h,this[_0x559972(0x2c7)]);if(!_0x41bd80['socketService'])throw Error(_0x559972(0x1e9));this['_config']=_0x41bd80,this[_0x559972(0x2c8)][_0x559972(0x2da)](m,_0x41bd80);}[_0x28bbb9(0x2bb)](){const _0x4b1ba2=_0x28bbb9;this[_0x4b1ba2(0x2c8)][_0x4b1ba2(0x2da)](r[_0x4b1ba2(0x287)],this[_0x4b1ba2(0x2c7)][_0x4b1ba2(0x372)]??[]),this[_0x4b1ba2(0x4ef)](),this[_0x4b1ba2(0x3dd)]();}[_0x28bbb9(0x4ef)](){const _0x22befe=_0x28bbb9;var _0x4a3d3b,_0x3e0aaa;this['_injector'][_0x22befe(0x546)](r[_0x22befe(0x493)])&&this[_0x22befe(0x41e)]['error'](_0x22befe(0x1b9),_0x22befe(0x440));let _0x479c55=(0x0,r[_0x22befe(0x2b8)])([[r['IUndoRedoService'],{'useClass':mt}],[Qe,{'useValue':$e()}],[U],[x],[w],[K],[J],[se],[Q],[v],[Y],[Je,{'useClass':this['_config'][_0x22befe(0x384)]}],[n[_0x22befe(0x35f)],{'useClass':pt}],[r[_0x22befe(0x3b2)],{'useClass':q}],[r['IImageIoService'],{'useClass':X}],[at,{'useClass':G}],[r[_0x22befe(0x43f)],{'useClass':Z}],[W],[it]],(_0x4a3d3b=this[_0x22befe(0x2c7)])==null?void 0x0:_0x4a3d3b[_0x22befe(0x339)]);if(!((_0x3e0aaa=this['_config'])!=null&&_0x3e0aaa[_0x22befe(0x443)])){let _0x363010=_0x479c55[_0x22befe(0x4b1)](([_0x65565b])=>_0x65565b===T);_0x363010!==-0x1&&_0x479c55[_0x22befe(0x1ca)](_0x363010,0x1);}(0x0,r[_0x22befe(0x295)])(this[_0x22befe(0x475)],_0x479c55);}[_0x28bbb9(0x3dd)](){const _0xc80d94=_0x28bbb9;var _0x5ffd34,_0x366c6c;if(this['_injector'][_0xc80d94(0x285)](e[_0xc80d94(0x3ff)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,e[_0xc80d94(0x2c2)])({'maxParallel':0x6})}),!((_0x5ffd34=this['_config'])!=null&&_0x5ffd34[_0xc80d94(0x567)])){var _0x3e97ee;(_0x3e97ee=this[_0xc80d94(0x475)][_0xc80d94(0x285)](C,r[_0xc80d94(0x3db)][_0xc80d94(0x32a)]))==null||_0x3e97ee[_0xc80d94(0x535)]();}(_0x366c6c=this['_config'])!=null&&_0x366c6c[_0xc80d94(0x48d)]&&(0x0,r[_0xc80d94(0x2d7)])(this[_0xc80d94(0x475)],[[K]]),(0x0,r[_0xc80d94(0x2d7)])(this[_0xc80d94(0x475)],[[J],[W],[Q]]);}};_($,_0x28bbb9(0x358),_0x28bbb9(0x4c3)),_($,_0x28bbb9(0x476),nt),_($,_0x28bbb9(0x1d6),rt),$=b([(0x0,r[_0x28bbb9(0x365)])(u[_0x28bbb9(0x1dc)],e['UniverNetworkPlugin'],n[_0x28bbb9(0x271)]),y(0x1,r[_0x28bbb9(0x369)]),y(0x2,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x3,r['IConfigService'])],$),Object['defineProperty'](exports,_0x28bbb9(0x2d3),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x2bf),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x28e),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x3c8),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x28bbb9(0x41f)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x28bbb9(0x38d)]=m,exports[_0x28bbb9(0x322)]=ne,Object[_0x28bbb9(0x41f)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x270),{'enumerable':!0x0,'get':function(){return W;}}),Object['defineProperty'](exports,_0x28bbb9(0x389),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x28bbb9(0x335),{'enumerable':!0x0,'get':function(){return X;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x44a),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x1f0),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x51b),{'enumerable':!0x0,'get':function(){return Xe;}}),exports[_0x28bbb9(0x4fe)]=Ue,exports[_0x28bbb9(0x2ca)]=oe,exports[_0x28bbb9(0x38c)]=v,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x323),{'enumerable':!0x0,'get':function(){return mt;}}),exports[_0x28bbb9(0x223)]=se,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x1d5),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x28bbb9(0x1fb)]=0x4e20,exports[_0x28bbb9(0x2c1)]='ws://127.0.0.1:8000/universer-api/comb/connect',exports[_0x28bbb9(0x41b)]=_0x28bbb9(0x27f),exports['DEFAULT_WS_SESSION_TICKET_URL']=_0x28bbb9(0x4ff),Object[_0x28bbb9(0x41f)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x507),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x28bbb9(0x41f)](exports,'FetchingMissState',{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x28bbb9(0x356)]=_0x28bbb9(0x39b),exports['HEARTBEAT_TIMEOUT_KEY']=_0x28bbb9(0x269),exports[_0x28bbb9(0x474)]=at,exports[_0x28bbb9(0x555)]=Qe,exports[_0x28bbb9(0x452)]=Je,exports['ILocalCacheService']=C,exports['INetworkConditionService']=Ge,exports[_0x28bbb9(0x24a)]=T,exports[_0x28bbb9(0x3a2)]=0x3e8,exports[_0x28bbb9(0x332)]=_0x28bbb9(0x3a2),exports[_0x28bbb9(0x3b4)]=0x1d4c0,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x4b0),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x28bbb9(0x41f)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x28bbb9(0x41f)](exports,'OfflineState',{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x267),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x50f),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x28bbb9(0x4be)]=_0x28bbb9(0x395),exports[_0x28bbb9(0x464)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x28bbb9(0x54e)]=ve,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x52d),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x29b),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x4ed),{'enumerable':!0x0,'get':function(){return pt;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x368),{'enumerable':!0x0,'get':function(){return k;}}),exports['UnitStatus']=Se,Object[_0x28bbb9(0x41f)](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x28bbb9(0x4a8)]=$e,exports[_0x28bbb9(0x304)]=Ke,exports['getLocalCacheKey']=be,exports[_0x28bbb9(0x1d9)]=qe;