@univerjs-pro/collaboration-client 1.0.0 → 1.0.2

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 (86) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +15 -15
  86. package/lib/types/controllers/config.schema.d.ts +0 -64
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1a65c6=_0x53a0;(function(_0x11bab0,_0x538456){const _0x2dc562=_0x53a0,_0x4a96ea=_0x11bab0();while(!![]){try{const _0x3d3291=-parseInt(_0x2dc562(0x255))/0x1*(parseInt(_0x2dc562(0x1f5))/0x2)+parseInt(_0x2dc562(0x38b))/0x3*(parseInt(_0x2dc562(0x291))/0x4)+-parseInt(_0x2dc562(0x427))/0x5+parseInt(_0x2dc562(0x310))/0x6+-parseInt(_0x2dc562(0x36f))/0x7*(-parseInt(_0x2dc562(0x20b))/0x8)+-parseInt(_0x2dc562(0x37d))/0x9*(parseInt(_0x2dc562(0x34a))/0xa)+-parseInt(_0x2dc562(0x2f5))/0xb*(-parseInt(_0x2dc562(0x2e0))/0xc);if(_0x3d3291===_0x538456)break;else _0x4a96ea['push'](_0x4a96ea['shift']());}catch(_0x4f85d4){_0x4a96ea['push'](_0x4a96ea['shift']());}}}(_0x4255,0x67ee7),Object[_0x1a65c6(0x155)](exports,Symbol[_0x1a65c6(0x3a2)],{'value':'Module'}));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=_0x1a65c6(0x26d),ee={};function te(_0x1206aa){const _0x3f20a4=_0x1a65c6;return JSON[_0x3f20a4(0x3ec)](_0x1206aa)[_0x3f20a4(0x306)];}function h(_0x58f3e2){'@babel/helpers - typeof';const _0x3faa35=_0x1a65c6;return h=typeof Symbol==_0x3faa35(0x209)&&typeof Symbol[_0x3faa35(0x1ad)]==_0x3faa35(0x2a1)?function(_0x3f45a7){return typeof _0x3f45a7;}:function(_0x1ae42c){const _0x723a17=_0x3faa35;return _0x1ae42c&&typeof Symbol==_0x723a17(0x209)&&_0x1ae42c[_0x723a17(0x2e7)]===Symbol&&_0x1ae42c!==Symbol[_0x723a17(0x1dc)]?_0x723a17(0x2a1):typeof _0x1ae42c;},h(_0x58f3e2);}function ne(_0x3e9ac2,_0x3edae1){const _0x14115b=_0x1a65c6;if(h(_0x3e9ac2)!=_0x14115b(0x282)||!_0x3e9ac2)return _0x3e9ac2;var _0x5026cc=_0x3e9ac2[Symbol[_0x14115b(0x33a)]];if(_0x5026cc!==void 0x0){var _0x421163=_0x5026cc[_0x14115b(0x2c5)](_0x3e9ac2,_0x3edae1||_0x14115b(0x376));if(h(_0x421163)!='object')return _0x421163;throw TypeError(_0x14115b(0x200));}return(_0x3edae1===_0x14115b(0x223)?String:Number)(_0x3e9ac2);}function re(_0x5882e4){const _0x2abf6b=_0x1a65c6;var _0x15d2b0=ne(_0x5882e4,'string');return h(_0x15d2b0)==_0x2abf6b(0x2a1)?_0x15d2b0:_0x15d2b0+'';}function g(_0x57340a,_0x25db99,_0x326cc0){const _0x9a74ab=_0x1a65c6;return(_0x25db99=re(_0x25db99))in _0x57340a?Object[_0x9a74ab(0x155)](_0x57340a,_0x25db99,{'value':_0x326cc0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57340a[_0x25db99]=_0x326cc0,_0x57340a;}let ie=function(_0x5012ff){const _0x503ed9=_0x1a65c6;return _0x5012ff[_0x503ed9(0x21a)]='OTHER_CLIENT_EDITING',_0x5012ff['PERMISSION_DENIED']=_0x503ed9(0x452),_0x5012ff[_0x503ed9(0x203)]=_0x503ed9(0x203),_0x5012ff[_0x503ed9(0x25a)]=_0x503ed9(0x25a),_0x5012ff[_0x503ed9(0x308)]=_0x503ed9(0x308),_0x5012ff[_0x503ed9(0x1e6)]=_0x503ed9(0x1e6),_0x5012ff[_0x503ed9(0x45f)]=_0x503ed9(0x45f),_0x5012ff[_0x503ed9(0x360)]='SOCKET_FAILED_RETRY',_0x5012ff[_0x503ed9(0x367)]=_0x503ed9(0x367),_0x5012ff[_0x503ed9(0x2ae)]=_0x503ed9(0x2ae),_0x5012ff;}({});var _=class{constructor(){const _0x2508b0=_0x1a65c6;g(this,_0x2508b0(0x451),new i[(_0x2508b0(0x35d))]()),g(this,_0x2508b0(0x2d2),this['_event$']['asObservable']());}[_0x1a65c6(0x1bc)](_0x435cb9){const _0x46aa40=_0x1a65c6;this[_0x46aa40(0x451)][_0x46aa40(0x163)](_0x435cb9);}},ae=class{constructor(){const _0x3ffd25=_0x1a65c6;g(this,_0x3ffd25(0x35b),new i[(_0x3ffd25(0x35d))]()),g(this,_0x3ffd25(0x40f),this[_0x3ffd25(0x35b)]['asObservable']());}['onCommentUpdate'](_0xa5230){const _0x15a370=_0x1a65c6;this[_0x15a370(0x35b)]['next'](_0xa5230);}};function v(_0x17146d,_0x545346){return function(_0x4a13c4,_0x25f083){_0x545346(_0x4a13c4,_0x25f083,_0x17146d);};}function y(_0x334dc2,_0xe3d2e8,_0x4d457b,_0x4fd7d2){const _0x45e984=_0x1a65c6;var _0x34b562=arguments[_0x45e984(0x306)],_0x211613=_0x34b562<0x3?_0xe3d2e8:_0x4fd7d2===null?_0x4fd7d2=Object[_0x45e984(0x1bd)](_0xe3d2e8,_0x4d457b):_0x4fd7d2,_0x300e90;if(typeof Reflect==_0x45e984(0x282)&&typeof Reflect[_0x45e984(0x1ec)]==_0x45e984(0x209))_0x211613=Reflect[_0x45e984(0x1ec)](_0x334dc2,_0xe3d2e8,_0x4d457b,_0x4fd7d2);else{for(var _0x1441a2=_0x334dc2[_0x45e984(0x306)]-0x1;_0x1441a2>=0x0;_0x1441a2--)(_0x300e90=_0x334dc2[_0x1441a2])&&(_0x211613=(_0x34b562<0x3?_0x300e90(_0x211613):_0x34b562>0x3?_0x300e90(_0xe3d2e8,_0x4d457b,_0x211613):_0x300e90(_0xe3d2e8,_0x4d457b))||_0x211613);}return _0x34b562>0x3&&_0x211613&&Object['defineProperty'](_0xe3d2e8,_0x4d457b,_0x211613),_0x211613;}let b=class extends t[_0x1a65c6(0x26a)]{constructor(_0x468ab1){const _0x3e6263=_0x1a65c6;super(),this[_0x3e6263(0x3fb)]=_0x468ab1,g(this,_0x3e6263(0x197),new Map()),g(this,_0x3e6263(0x2d7),new i[(_0x3e6263(0x35d))]()),this['disposeWithMe']((0x0,i[_0x3e6263(0x3c8)])(this['_univerInstanceService'][_0x3e6263(0x2d3)](t[_0x3e6263(0x2e4)]['UNIVER_SHEET'])[_0x3e6263(0x3d8)]((0x0,s[_0x3e6263(0x400)])(_0x2b999e=>_0x2b999e['getUnitId']())),this['_univerInstanceService'][_0x3e6263(0x2d3)](t[_0x3e6263(0x2e4)][_0x3e6263(0x292)])[_0x3e6263(0x3d8)]((0x0,s[_0x3e6263(0x400)])(_0x1989ab=>_0x1989ab[_0x3e6263(0x29c)]())),this[_0x3e6263(0x3fb)][_0x3e6263(0x2d3)](t['UniverInstanceType'][_0x3e6263(0x3c6)])[_0x3e6263(0x3d8)]((0x0,s[_0x3e6263(0x400)])(_0x3926bb=>_0x3926bb[_0x3e6263(0x29c)]())),this[_0x3e6263(0x3fb)][_0x3e6263(0x2d3)](t[_0x3e6263(0x2e4)][_0x3e6263(0x168)])[_0x3e6263(0x3d8)]((0x0,s[_0x3e6263(0x400)])(_0x22384b=>_0x22384b[_0x3e6263(0x29c)]())))[_0x3e6263(0x338)](_0x5d27c4=>this[_0x3e6263(0x25f)](_0x5d27c4)));}[_0x1a65c6(0x1a0)](_0x41082f){const _0xcdfb6=_0x1a65c6;return this[_0xcdfb6(0x197)][_0xcdfb6(0x1e4)](_0x41082f)?(0x0,i['of'])(this[_0xcdfb6(0x197)][_0xcdfb6(0x3ac)](_0x41082f)):this['_roomCreated$'][_0xcdfb6(0x3d8)]((0x0,s[_0xcdfb6(0x400)])(_0x1248d7=>{const _0x20b9c5=_0xcdfb6;if(_0x1248d7===_0x41082f)return this['_roomMembers'][_0x20b9c5(0x3ac)](_0x1248d7);}));}[_0x1a65c6(0x3b0)](_0x1cd5c1,_0x1e7d1c){const _0x531722=_0x1a65c6;let _0x17599d=this[_0x531722(0x197)][_0x531722(0x3ac)](_0x1cd5c1);_0x17599d||(_0x17599d=new oe(),this['_roomMembers']['set'](_0x1cd5c1,_0x17599d),this['_roomCreated$'][_0x531722(0x163)](_0x1cd5c1)),_0x17599d[_0x531722(0x3b0)](_0x1e7d1c);}['removeMember'](_0x56aa8e,_0x832342){const _0x500801=_0x1a65c6;let _0x1b3d0d=this[_0x500801(0x197)]['get'](_0x56aa8e);_0x1b3d0d&&_0x1b3d0d[_0x500801(0x3ad)](_0x832342);}[_0x1a65c6(0x1e3)](_0x1be85f){const _0x2bf7c9=_0x1a65c6;return this[_0x2bf7c9(0x197)][_0x2bf7c9(0x3ac)](_0x1be85f);}[_0x1a65c6(0x3f0)](_0x50c20b,_0x1d2ac7){const _0x1673bb=_0x1a65c6;let _0x5ba321=this[_0x1673bb(0x197)][_0x1673bb(0x3ac)](_0x50c20b);if(_0x5ba321)return _0x5ba321[_0x1673bb(0x3f0)](_0x1d2ac7);}[_0x1a65c6(0x25f)](_0xd30dda){const _0x5b1ff0=_0x1a65c6;let _0x2fa4cf=this[_0x5b1ff0(0x197)][_0x5b1ff0(0x3ac)](_0xd30dda);_0x2fa4cf&&(_0x2fa4cf[_0x5b1ff0(0x157)](),this['_roomMembers'][_0x5b1ff0(0x381)](_0xd30dda));}[_0x1a65c6(0x157)](){const _0x917ae4=_0x1a65c6;this[_0x917ae4(0x197)]['forEach'](_0x57a1d4=>_0x57a1d4['dispose']()),this[_0x917ae4(0x197)][_0x917ae4(0x1ce)](),this[_0x917ae4(0x2d7)][_0x917ae4(0x37f)]();}};b=y([v(0x0,t[_0x1a65c6(0x458)])],b);var oe=class extends t[_0x1a65c6(0x26a)]{constructor(..._0x4c3808){const _0x26d6fc=_0x1a65c6;super(..._0x4c3808),g(this,_0x26d6fc(0x434),new Map()),g(this,_0x26d6fc(0x326),new i[(_0x26d6fc(0x3c4))](this[_0x26d6fc(0x434)])),g(this,_0x26d6fc(0x3f8),this[_0x26d6fc(0x326)]['asObservable']());}[_0x1a65c6(0x157)](){const _0x150227=_0x1a65c6;this['_members'][_0x150227(0x1ce)](),this[_0x150227(0x326)][_0x150227(0x37f)]();}[_0x1a65c6(0x3b0)](_0x14b46d){const _0x10efd6=_0x1a65c6;this[_0x10efd6(0x434)]['set'](_0x14b46d[_0x10efd6(0x1d7)],_0x14b46d),this['_emitMembers']();}['removeMember'](_0xf9101d){const _0x28773a=_0x1a65c6;this['_members'][_0x28773a(0x381)](_0xf9101d),this[_0x28773a(0x405)]();}[_0x1a65c6(0x3f0)](_0x25ac4e){return this['_members']['get'](_0x25ac4e);}[_0x1a65c6(0x22f)](){const _0x357158=_0x1a65c6;return Array[_0x357158(0x429)](this['_members']['values']());}[_0x1a65c6(0x405)](){const _0x2937c2=_0x1a65c6;this['_members$'][_0x2937c2(0x163)](this['_members']);}};function se(_0x1e2bca,_0x57da2c){const _0x317fdb=_0x1a65c6;if(le(_0x1e2bca))return _0x57da2c;if(_0x57da2c['eventID']===e['CollaborationEvent'][_0x317fdb(0x1a3)]){let _0x198219=me(_0x1e2bca),_0x7a7cf1=_0x57da2c;return{..._0x7a7cf1,'data':{..._0x7a7cf1[_0x317fdb(0x229)],'unitID':_0x1e2bca[_0x317fdb(0x40b)][_0x317fdb(0x2f3)],'unitType':_0x1e2bca[_0x317fdb(0x40b)][_0x317fdb(0x297)]??_0x7a7cf1[_0x317fdb(0x229)]['unitType'],'changeset':_0x198219['toRemote'](_0x7a7cf1[_0x317fdb(0x229)][_0x317fdb(0x453)],he(_0x1e2bca))}};}if(_0x57da2c[_0x317fdb(0x2b7)]===e[_0x317fdb(0x166)][_0x317fdb(0x190)]){let _0x12bfb8=_0x57da2c;return{..._0x12bfb8,'data':{..._0x12bfb8['data'],'unitID':_0x1e2bca['target'][_0x317fdb(0x2f3)],'unitType':_0x1e2bca[_0x317fdb(0x40b)][_0x317fdb(0x297)]??_0x12bfb8[_0x317fdb(0x229)][_0x317fdb(0x297)]}};}return _0x57da2c;}function ce(_0x5d8262,_0x195bc2){const _0x170ca9=_0x1a65c6;if(le(_0x5d8262))return[_0x195bc2];switch(_0x195bc2[_0x170ca9(0x2b7)]){case e[_0x170ca9(0x166)][_0x170ca9(0x42d)]:return[ue(_0x5d8262,_0x195bc2)];case e['CollaborationEvent'][_0x170ca9(0x253)]:return[fe(_0x5d8262,_0x195bc2)];case e[_0x170ca9(0x166)][_0x170ca9(0x165)]:return[de(_0x5d8262,_0x195bc2)];default:return[_0x195bc2];}}function le(_0x232446){const _0x3c5219=_0x1a65c6;return _0x232446[_0x3c5219(0x40b)][_0x3c5219(0x2a6)]==null&&_0x232446[_0x3c5219(0x40b)][_0x3c5219(0x2f3)]===_0x232446['localUnitId']&&!_0x232446[_0x3c5219(0x453)];}function ue(_0xe023ca,_0x334b8d){const _0x5854ae=_0x1a65c6;return{..._0x334b8d,'data':(0x0,e['parseChangesetToProtocol'])(pe(_0xe023ca,(0x0,e[_0x5854ae(0x446)])(_0x334b8d['data'])))};}function de(_0x6d39ed,_0x2e1fb7){const _0x258790=_0x1a65c6;return{..._0x2e1fb7,'data':pe(_0x6d39ed,_0x2e1fb7[_0x258790(0x229)])};}function fe(_0x257a4b,_0x310816){const _0x9385f4=_0x1a65c6;let _0x353062=_0x310816['data'];return{..._0x310816,'data':{..._0x353062,'changesets':_0x353062[_0x9385f4(0x361)][_0x9385f4(0x400)](_0x3c0806=>(0x0,e[_0x9385f4(0x2fd)])(pe(_0x257a4b,(0x0,e[_0x9385f4(0x446)])(_0x3c0806))))}};}function pe(_0xeb62f4,_0x6700fa){const _0x154489=_0x1a65c6;return me(_0xeb62f4)[_0x154489(0x2bc)](_0x6700fa,he(_0xeb62f4));}function _0x4255(){const _0x547f7b=['UniverInstanceType','_substituteUndoStack','_entities','constructor','OfflineState','registerHTTPInterceptor','[FetchMissState]','localCacheService','session.room-cnt-exceeds','objectId','then','appendMutation','[CollaborationUndoRedoService]','transformUndoRedo','/universer-api/snapshot','unitId','awaiting','594vAMxDL','unknown','FileSource','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_getSendChangesetTimeout','_adapter','getLocalCacheKey','_clearHeartbeatTimer','parseChangesetToProtocol','getInterceptPoints','createInstance','_incrementRevisionNumber','subject','endsWith','EnsureSlideMasterPageMutation','c2Prime','filter','length','onlyLocal','CONFLICT','isInternalEditorID','_getConfig','saveSnapshot','NOT_COLLAB','pauseCollaboration','_changesetReqId','CollaborationSession','2232582CBAUty','ILocalCacheService','_hasSessionsForEndpoint','close','_transformRemoteChangesetByIMECache','timeoutTimer','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','every','createSocket','joinEvent','socket$','getValue','getFocusedUnit','loadPdf','loadUnit','_getSocketChannel','_transformStateCache','CollaborationEntity','getCurrentSelections','hasOwnProperty','ICommandService','indexOf','_members$','_isEchoedAwaitingChangeset','size','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_showConflictProcessingNotification','_collaborationTimeoutTimer','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','csAckEvent','_clearUndo','_prepareConflictRecovery','_socketChannels','IAuthzIoService','_permissionService','status','headers','_undoStacks','_shouldReportTelemetry','charCodeAt','subscribe','missingChangesets','toPrimitive','result','_startCollaboration','RECV','_undoRedoService','/universer-api/file/{fileID}/sign-url','entries','GLOBAL_ROOMS_CNT_EXCEEDS','refreshPermission','createUniverCollaborationAdapter','CompressMutationService','put','confirm','_joinRoom','univer-pro.collaboration-client.single-active-unit-service','sessionStatus$','30ZNRufi','IConfigService','collaboration-client.local-cache-service','/universer-api/authz','_disposed','roles','LEAVE','Slide','fetch_missing','concatMap','onRemoteAck','session.room-full','updatePermissionPoint','RemoveSlidePageMutation','CollaborationStatus','_checkMissing','liveShareNewHost','_commentUpdate$','_telemetryService','Subject','_onConnectionFailed','_initCloseConn','SOCKET_FAILED_RETRY','changesets','DEFAULT_FILE_NAME','trim','userID','conflict','message$','SOCKET_FAILED','getSheetBlock','setWaitCount','ImageSourceType','_socket','CHANGESET_ACK','SNAPSHOT_URL_KEY','state$','532sZhpBu','[CollaborationEntity]','LIVESHARE_OPERATION','/block/','_getCtorByUniverInstanceType','LIVESHARE_FETCH_OPERATIONS','joinRsp','default','SheetPermissionInitController','debug','getUploadOptions','UNIVER_SHEET','takeUntil','socket\x20open.','1266984awrMbt','_acknowledgeAwaitingIfReady','complete','MUTATION','delete','utf8ToBytes','awaiting_with_pending','getAllPermissionPoint','HEARTBEAT','clearOfflineData','_sessions','LIVESHARE_TERMINATE','_sendHeartbeat','cfgEnableObjInherit','1229871NvpzwO','/universer-api/comb','rev','_onConnectionOpen','sessionStatus','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getCurrentUser','toggleOnline','_commentService','_getAPIPrefix','SlideCollaborationEntity','LOCAL_CACHE_INTERVAL','_transformRemoteChangesetByStateCache','DataLoaderService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_sheetTransformSelectionsService','csRejEvent','reduce','UUID','_snapshotService','MentionIoHttpService','[PendingState]:\x20received\x20acknowledgement.','_scheduleCollaborationTimeoutTimer','toStringTag','add','IPermissionService','CmdRspCode','_configService','saveAttachment','transformStack\x20failed!','enableOfflineEditing','CollaborationSocketService','setShowComponents','get','removeMember','_unitLoaded$','allowed','updateMember','some','synced','ERROR_EXCEED_SIZE','getActiveSheet','MergeInterceptorFactory','csShouldRetryEvent','isPermissionRej','WorkbookEditablePermission','findIndex','url','_disableEditing','UnitObject','generateRandomId','[PendingState]:\x20received\x20rejection.','[UniverCollaborationClientPlugin]','_status$','toggleOffline','JOIN_ROOM_NOT_EXISTS','mergeOverrideWithDependencies','BehaviorSubject','textEncoder','UNIVER_BOARD','onMissedChangesetFetched','merge','params','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','?url=','INGEST','_onLocalMutation','sequenceExecute','disposeWithMe','onLocalMutation','__Key__','_createHandler','LocaleService','onTransformRemoteChangesetByIMECache','ws://127.0.0.1:8000/universer-api/comb/connect','objectPermissionTypes','_replayCachedMutations','pipe','[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.','replace','src','IUndoRedoService','/unit/','_unitInfo$','Inject','downloadEndpointUrl','_schedule','_onRemoteRetry','_waitCount','_onJoinRoomEvent','localUnitId','upload','catch','addHandlerCallback','POST','[CollaborationSession]','status$','stringify','listCollaborators','UNIVER_SLIDE','Error\x20on\x20receiving\x20event','getMember','closeSession','transformSelections','_closedUnits','toDisposable','_maxTotalRetryTimeout','[SyncedState]:\x20received\x20rejection.','_instanceService','members$','_state','name','_univerInstanceService','_stopTelemetryCollaborationNewChangeset','getCollabEntity','mutations','onload','map','CollaborationController','reconnect','/collaborator','forEach','_emitMembers','newCsEvent','_remoteChangesetQueue','columnGroups','open$','\x20-\x20','target','set','_telemetryInfo','interceptor','commentUpdate$','objects','_singleActiveUnitService','createCollaborator','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','resend','_getLoginPath','Workbook','number','init','DocStateChangeManagerService','NO_OTHER_CLIENTS_EDITING','collaborators','sheets','failed\x20to\x20apply\x20missed\x20changesets!','SessionStatus','_commandService','_getSignURL','univer-pro.collaboration-client-socket-service','attachment','splice','post','unitId\x20is\x20not\x20found','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','2272120SwGOaH','_resolveSessionIdentity','from','initWorkbookPermissionChange','_upload','_acknowledgeAwaiting','NEW_CHANGESETS','UNISCRIPT_RUN','[OfflineState]:\x20received\x20rejection.','PdfCollaborationEntity','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_eventService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_members','getUnitOnRev','RichTextEditingMutation','transformMutationsWithChangeset','_handlerCallback','InsertSheetMutation','_toggleOnline','_transformService','socketMessageSubscription','leaveEvent','USERS_LEAVE','BoardCollaborationEntity','createIdentifier','PERSON','\x0aAfter:\x20','pending','setConfig','unit-cache-','parseProtocolChangeset','uniscriptRunEvent','ObjectPermissionService','[OfflineState]:\x20received\x20changeset.','_registerDependencies','FileId','_onConflict','_pendingMutations','touchDependencies','endpointKey','_createInitialStateImpl','_event$','PERMISSION_DENIED','changeset','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','AddSlidePageMutation','[SyncedState]:\x20received\x20acknowledgement.','roomInfos','IUniverInstanceService','COMPRESS_MUTATION_APPLY','reverse','HTTPRequest','_collaborationSessionService','isArray','_createSocket','JOIN_ROOM_FAILED','Quantity','_logService','slice','/universer-api/stream/file/upload','@univerjs-pro/collaboration-client','isCompositionEnd','list','sid','DocCollaborationEntity','_tryEnsureSocket','_compressMutationService','CombCmd','[OfflineState]:\x20received\x20acknowledgement.','Rectangle','objectType','_applyRemoteChangeset','_initRequestHeader','_memberService','range','putCollaborators','apply','offline','RxDisposable','UnitAction','includes','/-/object/list','onPrepareTransformSelections','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','SheetsSelectionsService','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_executeRemoteChangeset','_revisionService','/object','USERS_ENTER','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','CommentService','patch','getUnit','uuidv4','getWorkbookSelections','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','ReplaySubject','UniverNetworkPlugin','OTHER_CLIENTS_EDITING','encode','HEARTBEAT_INTERVAL_KEY','LIVESHARE_REQUEST_HOST','isTransformMutationsWithChangesetFailure','commit','infoRsp','_config','_resendTimer','sendHeartbeatTimer','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','defineProperty','_toggleOffline','dispose','/-/object/-/batch_allowed','_initMergeInterceptor','FetchingMissState','onRemoteRetry','Injector','getTypeOfUnitAdded$','_collaborationPaused','ERROR_IMAGE','LIVESHARE_NEW_HOST','fromCollab','OFFLINE','next','_onRemoteChangeset','CHANGESET_SHOULD_RETRY','CollaborationEvent','objectID','UNIVER_BASE','append','DisposableCollection','ILogService','reqId','_getAPIPrefixPath','find','SheetCollaborationEntity','_scheduleCompleteTimestamp','tables','executeCommand','hostname','MentionType','onTransformSelections','_handleRemoteChangesets','_httpService','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','Plugin','\x20in\x20_schedule.','_createInitialState','selections','univer-pro.collaboration-client.network-condition.service','_clearRetryConnectingTimer','&assign=','_updateUnitPermissionPoint','_transformSelections','baseRev','fetching\x20missing\x20changesets\x20from\x20','SyncedState','_localCacheService','editing\x20status\x20changed\x20to','_resendTimeout','candidateSocket','_clearTimeoutTimer','deleteCollaborator','onStarting','ITransformService','onMissingChangesets','focused$','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FETCH_MISSING','_updateState','subType','updateCollaborator','retryConnectingTimer','CHANGESET_REJ','[DataLoaderService]','_roomMembers','_getUploadFileURL','objectActions','getGlobalObject','unitDisposed$','editingUnit','reject','supports','_transformUndoredo','waitForRoom$','_cfgEnableObjInherit','[CollaborationSessionService]','SUBMIT_CHANGESET','_getDownloadEndpointURL','_transitionLocked','getMemberID','_waitForHeartbeatResponse','_imageSourceCache','ITelemetryService','_networkConditionService','_fetchMissChangesets','close$','iterator','b64DecodeUnicode','push','_collabSessionService','loadOfflineData','isTransformChangesetsSuccess','CollaborationUIEventId','resolveUnit','revision','_clearRedo','_onRecvEvent','onRemoteRej','body','_collaborationUIEventService','error','emitEvent','getOwnPropertyDescriptor','getCurrentRevOfUnit','take','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','batchAllowed','actions','_getRedoStack','_initDependencies','override','getCollabEntity$','onSendChangeset','asObservable','_pendingSessions','firstValueFrom','&source=','HELLO','getSnapshotAPIPath','clear','registerDependencies','_transformStack','capture','telemetry\x20info\x20is\x20not\x20initialized','JOIN_ROOM_FULL','snapshotServerUrl','ISnapshotServerService','originalMeta','memberID','fetchMiss','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','socketService','RETRY_CONNECTING_MAX_COUNT','prototype','setCfgEnableObjInherit','deserializeToCombResponse','_refreshUnitPermission','avatar','concatBytes','&to=','getRoom','has','AwaitingState','CLOSE_ROOM','compose','requestParams','_authzIoService','href','UnitEmbedded','decorate','toString','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','isTransformMutationsWithChangesetSuccess','transformChangesets','_showConflictNotification','UNIVER_PDF','loadSheet','_HTTPService','140906msMeyR','getCfgEnableObjInherit','_getCurrentRevision','title','signUrlServerUrl','_replaceFileID','_changesetSessionId','maxSize','session.room-not-exists','_onFetchMissResult','duration','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onUserLeave','PERMISSION_REJ','CONFLICT_PROCESSING','_updateLocalCache','SnapshotServerOverHTTPService','ImageUploadStatusType','session','saveImage','function','fetchThroughInterceptors','57944xpgtqg','onSyncEditingCollabCursor','_onRemoteACK','text-x','_acknowledgedAwaitingRevision','_type','_transformAndApplyRemoteChangeset','UPDATE_PERMISSION_OBJ','UniverCollaborationClientPlugin','Optional','refreshUnit','getConfig','JOIN_ROOM_PERMISSION_DENIED','connection\x20error','_throwTelemetryCollaborationNewChangeset','OTHER_CLIENT_EDITING','SetSelectionsOperation','unit','ErrorCode','_onOffline','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','_unlockTransition','OPTIONAL','/resources','string','encrypt','session.room-permission-denied','getUnitType','/object/','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','data','shareReplay','_doCreateSocket','HTTPService','addImageSourceCache','saveSheetBlock','getAllMembers','HEARTBEAT_TIMEOUT_KEY','1.0.0','_lockTransition','LocalUndoRedoService','_sendingTimer','AuthzIoHttpService','SYNCED','m2Prime','getTime','RevisionService','_handler','_prepareTransformSelections','origin','create','/role','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','update','_injector','online$','_clearScheduledTask','_socketMessageSubscription','unsubscribe','_startTelemetryCollaborationNewChangeset','COMMENT_UPDATE','/allowed','Univer','error$','_createSession','COLLABORATION_ENDPOINT_INVALID','\x20to\x20','SheetTransformSelectionsService','accept','_change$','encodeURIComponent','onTransformRemoteChangesetByStateCache','PSEUDO_FETCH_MISSING_RESULT','fetchMissingChangesets','7zsEDXu','_onUserJoin','base-ui.attachment-io.service','workbook','onTransformState','CONFLICT_CACHE_CLEAR_FAILED','_sender','UPDATE_CURSOR','Base','getAttachmentUrl','_removeRoom','dispose$','unitInfo$','type','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_queuedRemoteChangesets','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','getImage','_awaitingChangeset','resolve','_rescheduleHeartbeat','Disposable','Tools','getDeserializedSheetBlock','collaboration-client.config','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_init','CommandType','\x0aCurrent:\x20','_docStateChangeManagerService','IAttachmentIoService','enableAuthServer','_decreaseWaiting','_substituteRedoStack','delay','uploadFileServerUrl','startsWith','clearUnit','method','_getUndoStack','packageName','values','stopTime','permissionRejEvent','textRanges','object','updatePermissionObjEvent','/new_changes','Document','ERROR_IMAGE_TYPE','_entityInit$','HEARTBEAT_INTERVAL','updateOfflineData','min','_state$','requireSession','_onRemoteRejected','onTransformIME','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','commentUpdateEvent','4zstULn','UNIVER_DOC','unitID','file','_redoStacks','_submitChangeset','unitType','/rev/','_socketService','_transformIMECache','parse','getUnitId','JOIN','onRemoteChangeset','mapDocumentTypeToUniverInstanceType','MSG_FOR_ERROR','symbol','_onCombEvent','UniverCollaborationPlugin','COMPRESS_MUTATION_SEND','{fileID}','endpoint','_resendWithTimeout','Edit','_initUnitPermissionChange','BaseCollaborationEntity','onStateChange','UNIVER_COLLABORATION_CLIENT_PLUGIN','People','SUBMIT_CHANGESET_TIMEOUT','sort','SHOULD_CLOSE_CONN','rollback','_exhaustRemoteChangesetQueue','_isPermissionRej','loadBoard','enableCollaboration','socketReady','eventID','location','authzUrl','PENDING','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','toLocal','max','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_localeService','_sessionChannels','enableSingleActiveInstanceLock','_identity','cmd','Board','call','equals','_getUnitPermissionPoints','incrementRevOfUnit','collaboration_new_changeset','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','state','_sessionStatus$','_userManagerService','_clearCollaborationTimeoutTimer','c1Prime','action','RETRY_CONNECTING_MAX_COUNT_KEY','event$','getTypeOfUnitDisposed$','onCommentUpdate','IDLE','onMutationExecutedForCollab','_roomCreated$','retryCount','awaitingChangeset','collaboration-client.auth.needGotoLoginAlert','_tryReconnect','_updateStatus','HEARTBEAT_TIMEOUT','now','routeKey','102912jbnWus','send','ONLINE','code'];_0x4255=function(){return _0x547f7b;};return _0x4255();}function me(_0x1e627d){const _0x1f3d26=_0x1a65c6;if(!_0x1e627d[_0x1f3d26(0x453)])throw Error(_0x1f3d26(0x2ca));return _0x1e627d[_0x1f3d26(0x453)];}function he(_0x4f1307){const _0x208fc2=_0x1a65c6;return{'localUnitId':_0x4f1307[_0x208fc2(0x3e5)],'unitType':_0x4f1307[_0x208fc2(0x297)],'target':_0x4f1307[_0x208fc2(0x40b)]};}let ge=function(_0x4a26a3){const _0x4b423c=_0x1a65c6;return _0x4a26a3[_0x4a26a3[_0x4b423c(0x2d5)]=0x0]=_0x4b423c(0x2d5),_0x4a26a3[_0x4a26a3['JOINING']=0x1]='JOINING',_0x4a26a3[_0x4a26a3[_0x4b423c(0x162)]=0x2]=_0x4b423c(0x162),_0x4a26a3[_0x4a26a3[_0x4b423c(0x2e2)]=0x3]=_0x4b423c(0x2e2),_0x4a26a3;}({});const _e={[a[_0x1a65c6(0x3a5)]['FAIL']]:'session.join-failed',[a[_0x1a65c6(0x3a5)][_0x1a65c6(0x1d3)]]:_0x1a65c6(0x355),[a[_0x1a65c6(0x3a5)][_0x1a65c6(0x3c2)]]:_0x1a65c6(0x1fd),[a[_0x1a65c6(0x3a5)][_0x1a65c6(0x217)]]:_0x1a65c6(0x225),[a['CmdRspCode'][_0x1a65c6(0x341)]]:_0x1a65c6(0x2ec)};let ve=class extends t[_0x1a65c6(0x476)]{get[_0x1a65c6(0x38f)](){return this['_sessionStatus$']['getValue']();}constructor(_0x37c386,_0x525ebb,_0x5294d5,_0xcf59df,_0x3fb4c4,_0x254d94,_0x46aea6,_0x39dbec){const _0x10047e=_0x1a65c6;super(),this[_0x10047e(0x2c2)]=_0x37c386,this[_0x10047e(0x461)]=_0x5294d5,this[_0x10047e(0x3a6)]=_0xcf59df,this['_memberService']=_0x3fb4c4,this['_commentService']=_0x254d94,this[_0x10047e(0x1ba)]=_0x46aea6,this[_0x10047e(0x35c)]=_0x39dbec,g(this,_0x10047e(0x2cc),new i[(_0x10047e(0x3c4))](0x0)),g(this,'sessionStatus$',this[_0x10047e(0x2cc)][_0x10047e(0x1c8)]()),g(this,'_event$',new i['Subject']()),g(this,_0x10047e(0x2d2),this[_0x10047e(0x451)][_0x10047e(0x1c8)]()),g(this,_0x10047e(0x36b),void 0x0),g(this,_0x10047e(0x244),void 0x0),g(this,_0x10047e(0x32b),void 0x0),g(this,'_shouldReportTelemetry',!0x1),g(this,_0x10047e(0x40d),null),this[_0x10047e(0x336)]=!!this[_0x10047e(0x35c)],_0x525ebb[_0x10047e(0x3d8)]((0x0,i[_0x10047e(0x37b)])(this[_0x10047e(0x260)]))['subscribe'](_0x4c3aff=>{const _0x587e1c=_0x10047e;if(_0x4c3aff!==void 0x0){if(this[_0x587e1c(0x36b)]=_0x4c3aff,_0x4c3aff)this[_0x587e1c(0x347)](_0x4c3aff),this[_0x587e1c(0x244)]=_0x4c3aff[_0x587e1c(0x366)][_0x587e1c(0x338)](_0x413b0f=>{const _0x5f4fcc=_0x587e1c;_0x413b0f[_0x5f4fcc(0x2df)]===this[_0x5f4fcc(0x2c2)]['target']['unitId']&&this['_onCombEvent'](_0x413b0f);});else{var _0x34c928;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x587e1c(0x2cc)]['next'](0x2),(_0x34c928=this[_0x587e1c(0x244)])==null||_0x34c928[_0x587e1c(0x245)](),this[_0x587e1c(0x244)]=null;}}});}[_0x1a65c6(0x1a6)](){const _0x411866=_0x1a65c6;var _0x153e08;return((_0x153e08=this[_0x411866(0x36b)])==null?void 0x0:_0x153e08[_0x411866(0x1d7)])??null;}['dispose'](){const _0x2e01d1=_0x1a65c6;super[_0x2e01d1(0x157)](),this[_0x2e01d1(0x313)](),this[_0x2e01d1(0x260)][_0x2e01d1(0x163)](),this[_0x2e01d1(0x260)][_0x2e01d1(0x37f)]();}[_0x1a65c6(0x313)](){const _0x5d92c6=_0x1a65c6;var _0x3db4b5;this[_0x5d92c6(0x219)](),(_0x3db4b5=this['_socket'])==null||_0x3db4b5['send']({'cmd':a[_0x5d92c6(0x46b)][_0x5d92c6(0x350)],'data':{'roomID':this[_0x5d92c6(0x2c2)]['target'][_0x5d92c6(0x2f3)]}}),this['_event$'][_0x5d92c6(0x37f)](),this[_0x5d92c6(0x2cc)][_0x5d92c6(0x37f)]();}[_0x1a65c6(0x2a2)](_0x1998e7){const _0x28a56d=_0x1a65c6;_0x1998e7[_0x28a56d(0x2c3)]===a['CombCmd'][_0x28a56d(0x29d)]?this[_0x28a56d(0x3e4)](_0x1998e7):_0x1998e7[_0x28a56d(0x2c3)]===a[_0x28a56d(0x46b)]['RECV']&&this['_onRecvEvent'](_0x1998e7);}[_0x1a65c6(0x347)](_0x1d7f1d){const _0x32cfff=_0x1a65c6;this[_0x32cfff(0x2cc)]['next'](0x1),_0x1d7f1d['send']({'cmd':a['CombCmd'][_0x32cfff(0x29d)],'routeKey':this[_0x32cfff(0x2c2)][_0x32cfff(0x40b)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x32cfff(0x2c2)][_0x32cfff(0x40b)][_0x32cfff(0x2f3)]}]}});}['_onJoinRoomEvent'](_0x1312da){const _0x32cf23=_0x1a65c6;var _0x132ca0;if(_0x1312da[_0x32cf23(0x2e3)]in _e){this[_0x32cf23(0x1ba)][_0x32cf23(0x1bc)]({'id':_0x32cf23(0x45f),'data':_e[_0x1312da[_0x32cf23(0x2e3)]]}),this[_0x32cf23(0x2cc)][_0x32cf23(0x163)](0x2);return;}this[_0x32cf23(0x2cc)][_0x32cf23(0x163)](0x3);let _0x56fd8e=(_0x132ca0=_0x1312da[_0x32cf23(0x229)][_0x32cf23(0x457)][this[_0x32cf23(0x2c2)][_0x32cf23(0x40b)]['unitId']])==null?void 0x0:_0x132ca0['members'];_0x56fd8e&&_0x56fd8e[_0x32cf23(0x404)](_0x143418=>this[_0x32cf23(0x471)][_0x32cf23(0x3b0)](this[_0x32cf23(0x2c2)][_0x32cf23(0x3e5)],_0x143418));}[_0x1a65c6(0x1b7)](_0x23e0f6){const _0x40f2fd=_0x1a65c6;try{let _0x38c489=ce(this[_0x40f2fd(0x2c2)],_0x23e0f6[_0x40f2fd(0x229)]);for(let _0x2f0c05 of _0x38c489)switch(_0x2f0c05[_0x40f2fd(0x2b7)]){case e[_0x40f2fd(0x166)][_0x40f2fd(0x140)]:this[_0x40f2fd(0x256)](_0x2f0c05),this['_event$']['next'](_0x2f0c05);break;case e[_0x40f2fd(0x166)][_0x40f2fd(0x43e)]:this[_0x40f2fd(0x201)](_0x2f0c05),this['_event$'][_0x40f2fd(0x163)](_0x2f0c05);break;case e['CollaborationEvent'][_0x40f2fd(0x36c)]:case e[_0x40f2fd(0x166)][_0x40f2fd(0x165)]:this[_0x40f2fd(0x3fc)](),this['_clearCollaborationTimeoutTimer'](),this[_0x40f2fd(0x451)]['next'](_0x2f0c05);break;case e[_0x40f2fd(0x166)][_0x40f2fd(0x2a0)]:this[_0x40f2fd(0x461)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x40f2fd(0x3ec)](_0x2f0c05)),this[_0x40f2fd(0x451)][_0x40f2fd(0x163)](_0x2f0c05);break;case e[_0x40f2fd(0x166)][_0x40f2fd(0x247)]:this[_0x40f2fd(0x393)][_0x40f2fd(0x2d4)](_0x2f0c05[_0x40f2fd(0x229)]),this[_0x40f2fd(0x451)]['next'](_0x2f0c05);break;default:this[_0x40f2fd(0x451)]['next'](_0x2f0c05);}}catch(_0x598090){this[_0x40f2fd(0x461)][_0x40f2fd(0x1bb)](_0x598090,_0x23e0f6);}}[_0x1a65c6(0x256)](_0x4c4997){const _0x31391c=_0x1a65c6;this[_0x31391c(0x471)][_0x31391c(0x3b0)](this[_0x31391c(0x2c2)][_0x31391c(0x3e5)],_0x4c4997['data']);}['_onUserLeave'](_0x5545fb){const _0x4016c6=_0x1a65c6;this[_0x4016c6(0x471)]['removeMember'](this[_0x4016c6(0x2c2)][_0x4016c6(0x3e5)],_0x5545fb['data']['memberID']);}async['send'](_0x2261ca,_0x457a05){const _0x3e17c3=_0x1a65c6;if(this[_0x3e17c3(0x38f)]!==0x3||!this[_0x3e17c3(0x36b)])throw Error(_0x3e17c3(0x3ca));try{let _0x343520=se(this['_identity'],_0x2261ca);_0x343520[_0x3e17c3(0x2b7)]===e[_0x3e17c3(0x166)]['SUBMIT_CHANGESET']&&(this[_0x3e17c3(0x3a1)](),this[_0x3e17c3(0x246)](_0x343520)),this['_socket']['send']({'cmd':a[_0x3e17c3(0x46b)]['INGEST'],'routeKey':this[_0x3e17c3(0x2c2)][_0x3e17c3(0x40b)][_0x3e17c3(0x2f3)],'routeType':'','data':_0x343520});}catch(_0x1829d2){this[_0x3e17c3(0x461)][_0x3e17c3(0x1bb)](_0x1829d2);}}[_0x1a65c6(0x3a1)](){const _0x5e23b2=_0x1a65c6;this[_0x5e23b2(0x32b)]=setTimeout(()=>{const _0x3f4d53=_0x5e23b2;this[_0x3f4d53(0x32b)]=null,this[_0x3f4d53(0x1ba)][_0x3f4d53(0x1bc)]({'id':_0x3f4d53(0x2ae)});},this['_configService'][_0x5e23b2(0x216)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x1a65c6(0x2ce)](){const _0x4f382e=_0x1a65c6;this[_0x4f382e(0x32b)]&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}[_0x1a65c6(0x246)](_0x2e63fc){const _0x1e8d38=_0x1a65c6;if(!this[_0x1e8d38(0x336)])return;let {data:_0x3ad750}=_0x2e63fc,{unitID:_0x1ddcd7,changeset:_0x4ac46c}=_0x3ad750,{mutations:_0x34e6be,type:_0x40309e}=_0x4ac46c;this[_0x1e8d38(0x40d)]={'unitId':_0x1ddcd7,'type':_0x40309e,'startTime':performance[_0x1e8d38(0x2de)](),'stopTime':0x0,'duration':0x0,'size':te(_0x34e6be)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x14e3b4=_0x1a65c6;if(this[_0x14e3b4(0x336)]){if(!this[_0x14e3b4(0x40d)]){this[_0x14e3b4(0x461)][_0x14e3b4(0x1bb)](_0x14e3b4(0x3ea),_0x14e3b4(0x1d2));return;}this['_telemetryInfo'][_0x14e3b4(0x27f)]=performance[_0x14e3b4(0x2de)](),this['_telemetryInfo'][_0x14e3b4(0x1ff)]=this[_0x14e3b4(0x40d)][_0x14e3b4(0x27f)]-this[_0x14e3b4(0x40d)]['startTime'],this['_telemetryService'][_0x14e3b4(0x1d1)](_0x14e3b4(0x2c9),this[_0x14e3b4(0x40d)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}};ve=y([v(0x2,t['ILogService']),v(0x3,t[_0x1a65c6(0x34b)]),v(0x4,(0x0,t[_0x1a65c6(0x3df)])(b)),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(ae)),v(0x6,(0x0,t[_0x1a65c6(0x3df)])(_)),v(0x7,(0x0,t[_0x1a65c6(0x214)])(o[_0x1a65c6(0x1a9)]))],ve);const x=(0x0,t[_0x1a65c6(0x440)])(_0x1a65c6(0x34c));function ye(_0x3a694c){const _0x14efc0=_0x1a65c6;return _0x14efc0(0x445)+_0x3a694c;}function be(_0x19b4e9){const _0x4f6d90=_0x1a65c6;let {unitID:_0x40684b,mutations:_0x32e96e}=_0x19b4e9;return{'unitId':_0x40684b,'subUnitId':_0x32e96e[_0x4f6d90(0x306)]>0x0?_0x32e96e[0x0][_0x4f6d90(0x3c9)]['subUnitId']:null};}let S=class{constructor(_0x5f2569,_0x3f4aa7,_0x36fe7c){const _0x5827c1=_0x1a65c6;this['_injector']=_0x5f2569,this['_transformService']=_0x3f4aa7,this[_0x5827c1(0x3f7)]=_0x36fe7c;}[_0x1a65c6(0x3f2)](_0x72d9a9){const _0x1828b6=_0x1a65c6;var _0xa8960a,_0x27adf1;let _0x129219=this[_0x1828b6(0x241)][_0x1828b6(0x3ac)](r[_0x1828b6(0x13b)]),{unitId:_0xd3c379,subUnitId:_0x289d12}=be(_0x72d9a9),_0x3fe384=_0x129219==null?void 0x0:_0x129219[_0x1828b6(0x146)](_0xd3c379)[_0x1828b6(0x322)](),_0x2c4f38=(_0xa8960a=this[_0x1828b6(0x3f7)][_0x1828b6(0x144)](_0xd3c379))==null||(_0xa8960a=_0xa8960a[_0x1828b6(0x3b4)]())==null?void 0x0:_0xa8960a['getSheetId']();if(_0x3fe384[_0x1828b6(0x306)]===0x0||!_0xd3c379||!_0x289d12)return;let _0x17771a=[{'id':r[_0x1828b6(0x21b)]['id'],'params':{'unitId':_0xd3c379,'subUnitId':_0x2c4f38,'selections':t[_0x1828b6(0x26b)]['deepClone'](_0x3fe384)}}],_0x208206=this[_0x1828b6(0x43b)][_0x1828b6(0x437)](_0x72d9a9,_0x17771a);if(!(0x0,e[_0x1828b6(0x1ef)])(_0x208206))throw _0x208206[_0x1828b6(0x1bb)];let _0x1d13e6=(_0x27adf1=_0x208206['m2Prime'][0x0])==null||(_0x27adf1=_0x27adf1[_0x1828b6(0x3c9)])==null?void 0x0:_0x27adf1['selections'];if(Array[_0x1828b6(0x45d)](_0x1d13e6)&&_0x1d13e6['length']){if(_0x1d13e6['length']===_0x17771a[0x0][_0x1828b6(0x3c9)][_0x1828b6(0x17c)]['length']&&_0x1d13e6[_0x1828b6(0x317)]((_0xded6df,_0x2e59a0)=>t[_0x1828b6(0x46d)][_0x1828b6(0x2c6)](_0xded6df['range'],_0x17771a[0x0][_0x1828b6(0x3c9)][_0x1828b6(0x17c)][_0x2e59a0][_0x1828b6(0x472)])))return;this[_0x1828b6(0x241)][_0x1828b6(0x3ac)](t['ICommandService'])[_0x1828b6(0x172)](r[_0x1828b6(0x21b)]['id'],{'unitId':_0xd3c379,'subUnitId':_0x2c4f38,'selections':_0x1d13e6});}}};S=y([v(0x0,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x15c)])),v(0x1,e[_0x1a65c6(0x18c)]),v(0x2,t[_0x1a65c6(0x458)])],S);const C=(0x0,t[_0x1a65c6(0x440)])(_0x1a65c6(0x348));let xe=function(_0x5f0cdc){const _0x216d77=_0x1a65c6;return _0x5f0cdc[_0x5f0cdc['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x216d77(0x41a),_0x5f0cdc[_0x5f0cdc[_0x216d77(0x14a)]=0x1]=_0x216d77(0x14a),_0x5f0cdc;}({});function Se(_0x582e14){const _0x2bb517=_0x1a65c6;var _0x5de93f;return!!((_0x5de93f=_0x582e14[_0x2bb517(0x3c9)])!=null&&_0x5de93f['__splitChunk__']);}const Ce=new Set([r[_0x1a65c6(0x439)]['id']]),we=new Set([c[_0x1a65c6(0x455)]['id'],c[_0x1a65c6(0x303)]['id'],c['MoveSlidePageMutation']['id'],c[_0x1a65c6(0x357)]['id']]);function Te(_0x39f371,_0x5d92a9=Ce){const _0xbafcb8=_0x1a65c6;let _0x493607=[];for(let _0x453469 of _0x39f371){if(_0x5d92a9[_0xbafcb8(0x1e4)](_0x453469['id'])){if(_0x493607['length']>0x0)break;_0x493607[_0xbafcb8(0x1af)](_0x453469);break;}if(Se(_0x453469)){if(_0x493607[_0xbafcb8(0x306)]>0x0)break;_0x493607[_0xbafcb8(0x1af)](_0x453469);break;}_0x493607[_0xbafcb8(0x1af)](_0x453469);}return _0x493607;}function w(_0x17155f,_0x48990c,_0x1239b8,_0x274dc0,_0x14bafc){const _0x110bc5=_0x1a65c6;let _0x32b922=Te(_0x17155f),_0x4f60a0=_0x14bafc['getCurrentUser'](),_0x239819=(_0x4f60a0==null?void 0x0:_0x4f60a0[_0x110bc5(0x364)])??_0x110bc5(0x2f6),_0x4d4157=(_0x4f60a0==null?void 0x0:_0x4f60a0[_0x110bc5(0x1d7)])??_0x110bc5(0x2f6);return{'changeset':{'unitID':_0x48990c,'type':(0x0,e[_0x110bc5(0x29f)])(_0x1239b8[_0x110bc5(0x226)](_0x48990c)),'baseRev':_0x274dc0[_0x110bc5(0x1be)](_0x48990c),'revision':0x0,'userID':_0x239819,'memberID':_0x4d4157,'mutations':_0x32b922},'pendingMutations':_0x17155f[_0x110bc5(0x462)](_0x32b922[_0x110bc5(0x306)])};}const Ee=w;function De(_0x3e0ab5,_0x2311e6,_0x1d2229,_0x14b48a,_0x5e0aa7){const _0x21961d=_0x1a65c6;let _0x1132c0=Te(_0x3e0ab5,we),_0x149cf7=_0x5e0aa7[_0x21961d(0x391)](),_0x389543=(_0x149cf7==null?void 0x0:_0x149cf7['userID'])??_0x21961d(0x2f6),_0x344098=(_0x149cf7==null?void 0x0:_0x149cf7['memberID'])??_0x21961d(0x2f6);return{'changeset':{'unitID':_0x2311e6,'type':(0x0,e[_0x21961d(0x29f)])(_0x1d2229['getUnitType'](_0x2311e6)),'baseRev':_0x14b48a[_0x21961d(0x1be)](_0x2311e6),'revision':0x0,'userID':_0x389543,'memberID':_0x344098,'mutations':_0x1132c0},'pendingMutations':_0x3e0ab5['slice'](_0x1132c0['length'])};}function Oe(_0x57fb24,_0x207ce1,_0x2abbd8,_0x2ebdef,_0x835f7c){const _0x4e9c02=_0x1a65c6;let _0x253d0b=_0x57fb24[_0x4e9c02(0x39c)]((_0x1ead0a,_0x32371d)=>{const _0x5aa8ab=_0x4e9c02;let _0x3b868e=_0x1ead0a[_0x1ead0a['length']-0x1],{id:_0x3f1058}=_0x3b868e??{},{id:_0x1402ba,type:_0x1c8507}=_0x32371d,_0x142373=_0x32371d[_0x5aa8ab(0x3c9)];if(_0x3f1058&&_0x3f1058!==_0x1402ba)throw Error(_0x5aa8ab(0x413)+_0x3f1058+_0x5aa8ab(0x40a)+_0x1402ba+'.');if(!_0x3b868e)return[{'id':_0x1402ba,'type':_0x1c8507,'params':{'unitId':_0x142373[_0x5aa8ab(0x2f3)],'textRanges':_0x142373[_0x5aa8ab(0x281)],'actions':_0x142373[_0x5aa8ab(0x1c2)]}}];let _0xf20c99=_0x3b868e[_0x5aa8ab(0x3c9)];return ke(_0xf20c99,_0x142373)?[..._0x1ead0a[_0x5aa8ab(0x462)](0x0,-0x1),{..._0x3b868e,'id':_0x1402ba,'type':_0x1c8507,'params':{'unitId':_0x142373[_0x5aa8ab(0x2f3)],'textRanges':_0x142373['textRanges'],'actions':t['JSONX'][_0x5aa8ab(0x1e7)](_0xf20c99['actions'],_0x142373[_0x5aa8ab(0x1c2)])}}]:[..._0x1ead0a,{'id':_0x1402ba,'type':_0x1c8507,'params':{'unitId':_0x142373[_0x5aa8ab(0x2f3)],'textRanges':_0x142373['textRanges'],'actions':_0x142373[_0x5aa8ab(0x1c2)]}}];},[]),_0x35ab71=_0x835f7c[_0x4e9c02(0x391)](),_0x48623f=(_0x35ab71==null?void 0x0:_0x35ab71[_0x4e9c02(0x364)])??_0x4e9c02(0x2f6),_0x1e4b33=(_0x35ab71==null?void 0x0:_0x35ab71[_0x4e9c02(0x1d7)])??'unknown';return{'changeset':{'unitID':_0x207ce1,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x2abbd8[_0x4e9c02(0x226)](_0x207ce1)),'baseRev':_0x2ebdef[_0x4e9c02(0x1be)](_0x207ce1),'revision':0x0,'userID':_0x48623f,'memberID':_0x1e4b33,'mutations':_0x253d0b},'pendingMutations':_0x57fb24[_0x4e9c02(0x462)](_0x57fb24[_0x4e9c02(0x306)])};}function ke(_0x193317,_0x34e30a){const _0x2191f0=_0x1a65c6;return!Ae(_0x193317)&&!Ae(_0x34e30a)&&je(_0x193317[_0x2191f0(0x1c2)],_0x34e30a[_0x2191f0(0x1c2)]);}function Ae(_0x35baa5){const _0x53613f=_0x1a65c6;return _0x35baa5[_0x53613f(0x465)]!==void 0x0;}function je(_0x2ebd40,_0x4a7b95){return Me(_0x2ebd40)&&Me(_0x4a7b95)&&!Pe(_0x2ebd40)&&!Pe(_0x4a7b95)&&!Ne(_0x2ebd40)&&!Ne(_0x4a7b95);}function Me(_0x124585){const _0x1d405e=_0x1a65c6;return Fe(_0x124585)[_0x1d405e(0x3b1)](_0x5f0fbb=>T(_0x5f0fbb)&&_0x5f0fbb['et']==='text-x');}function Ne(_0x3bc91f){const _0x1ce256=_0x1a65c6;return Fe(_0x3bc91f)['some'](_0x19b060=>Array['isArray'](_0x19b060)||typeof _0x19b060=='string'||typeof _0x19b060==_0x1ce256(0x417));}function Pe(_0x53cef7){const _0x5d05fd=_0x1a65c6;return Fe(_0x53cef7)['some'](_0x53d465=>!T(_0x53d465)||_0x53d465['et']!==_0x5d05fd(0x20e)||!Array[_0x5d05fd(0x45d)](_0x53d465['e'])?!0x1:_0x53d465['e']['some'](_0x35dc05=>!T(_0x35dc05)||!T(_0x35dc05[_0x5d05fd(0x1b9)])?!0x1:Object[_0x5d05fd(0x1dc)][_0x5d05fd(0x323)][_0x5d05fd(0x2c5)](_0x35dc05[_0x5d05fd(0x1b9)],_0x5d05fd(0x171))||Object[_0x5d05fd(0x1dc)]['hasOwnProperty'][_0x5d05fd(0x2c5)](_0x35dc05['body'],_0x5d05fd(0x408))||Object[_0x5d05fd(0x1dc)][_0x5d05fd(0x323)]['call'](_0x35dc05['body'],'blockRanges')));}function Fe(_0x21ead5){const _0x1ea0b6=_0x1a65c6;if(!Array[_0x1ea0b6(0x45d)](_0x21ead5))return[];let _0x556bd8=_0x21ead5[_0x1ea0b6(0x478)](_0x1ea0b6(0x1b9))?_0x21ead5:_0x21ead5[_0x1ea0b6(0x16e)](_0x5d03f3=>Array[_0x1ea0b6(0x45d)](_0x5d03f3)&&_0x5d03f3['includes'](_0x1ea0b6(0x1b9)));if(!Array['isArray'](_0x556bd8))return[];let _0x1b2c4b=_0x556bd8[_0x1ea0b6(0x325)](_0x1ea0b6(0x1b9));return _0x1b2c4b===-0x1?[]:_0x556bd8['slice'](_0x1b2c4b+0x1);}function T(_0x104565){const _0x5edb93=_0x1a65c6;return typeof _0x104565==_0x5edb93(0x282)&&!!_0x104565&&!Array[_0x5edb93(0x45d)](_0x104565);}function Ie(_0x11520e,_0x38537e){const _0x311169=_0x1a65c6;let _0x3c1562=new i[(_0x311169(0x148))](0x1);return setTimeout(()=>_0x3c1562['next'](_0x38537e),_0x11520e),_0x3c1562[_0x311169(0x1c8)]()[_0x311169(0x3d8)]((0x0,i[_0x311169(0x1bf)])(0x1));}var Le,Re,ze;let Be=function(_0x486912){const _0x2139f9=_0x1a65c6;return _0x486912[_0x2139f9(0x30c)]='not_collab',_0x486912[_0x2139f9(0x236)]='synced',_0x486912[_0x2139f9(0x2ba)]=_0x2139f9(0x443),_0x486912['AWAITING']=_0x2139f9(0x2f4),_0x486912['AWAITING_WITH_PENDING']=_0x2139f9(0x383),_0x486912['FETCH_MISS']='fetch_missing',_0x486912[_0x2139f9(0x308)]='conflict',_0x486912['OFFLINE']=_0x2139f9(0x475),_0x486912;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x28e676,_0x5c6acc,_0x1bdfcc,_0xd0b0bc,_0x5f0532,_0x50856b,_0x327ec3,_0x155d48,_0x128eab){const _0x44236f=_0x1a65c6;this['unitID']=_0x28e676,this[_0x44236f(0x262)]=_0x5c6acc,this[_0x44236f(0x23a)]=_0x5f0532,this[_0x44236f(0x41f)]=_0x50856b,this[_0x44236f(0x33e)]=_0x327ec3,this[_0x44236f(0x13e)]=_0x155d48,this[_0x44236f(0x185)]=_0x128eab,g(this,_0x44236f(0x267),null),g(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x1bdfcc,this[_0x44236f(0x44d)]=_0xd0b0bc;}[_0x1a65c6(0x359)](_0x4cbbd5){const _0x1e7743=_0x1a65c6;let _0x26024e=this['_revisionService'][_0x1e7743(0x1be)](this[_0x1e7743(0x293)]);return _0x4cbbd5[_0x1e7743(0x1b5)]>_0x26024e+0x1&&(this[_0x1e7743(0x23a)][_0x1e7743(0x18d)]({'from':_0x26024e,'to':_0x4cbbd5['revision']-0x1}),!0x0);}[_0x1a65c6(0x19f)](_0x4333fd){const _0x5130ca=_0x1a65c6;this['_undoRedoService']['transformUndoRedo'](this[_0x5130ca(0x293)],_0x4333fd);}[_0x1a65c6(0x181)](_0x1d3fc9){const _0x3e1e59=_0x1a65c6;var _0x34d9d1,_0x950213;(_0x34d9d1=(_0x950213=this['_handler'])[_0x3e1e59(0x175)])==null||_0x34d9d1['call'](_0x950213,_0x1d3fc9);}[_0x1a65c6(0x23b)](_0x22c48d){const _0x1d8f27=_0x1a65c6;var _0xf2e080,_0x59a90e;return((_0xf2e080=(_0x59a90e=this['_handler'])[_0x1d8f27(0x47a)])==null?void 0x0:_0xf2e080[_0x1d8f27(0x2c5)](_0x59a90e,_0x22c48d))??null;}['_transformIMECache'](_0x56c373){const _0x40f463=_0x1a65c6;var _0x2816df,_0x199b2c;return(_0x2816df=(_0x199b2c=this[_0x40f463(0x23a)])[_0x40f463(0x28e)])==null?void 0x0:_0x2816df[_0x40f463(0x2c5)](_0x199b2c,_0x56c373);}[_0x1a65c6(0x320)](_0x43e7dc){const _0x2327aa=_0x1a65c6;var _0x118c38,_0x6e560f;return(_0x118c38=(_0x6e560f=this[_0x2327aa(0x23a)])[_0x2327aa(0x259)])==null?void 0x0:_0x118c38[_0x2327aa(0x2c5)](_0x6e560f,_0x43e7dc);}[_0x1a65c6(0x314)](_0x26a45b){const _0x4b488b=_0x1a65c6;var _0x17db09,_0x3050dd;return((_0x17db09=(_0x3050dd=this[_0x4b488b(0x23a)])[_0x4b488b(0x3d4)])==null?void 0x0:_0x17db09[_0x4b488b(0x2c5)](_0x3050dd,_0x26a45b))??_0x26a45b;}[_0x1a65c6(0x397)](_0x151a53){const _0x307caf=_0x1a65c6;var _0x24c5f4,_0x4e7370;return((_0x24c5f4=(_0x4e7370=this[_0x307caf(0x23a)])[_0x307caf(0x252)])==null?void 0x0:_0x24c5f4[_0x307caf(0x2c5)](_0x4e7370,_0x151a53))??_0x151a53;}['_syncEditingCollabCursor'](_0x49a05c){const _0x4bb46f=_0x1a65c6;if(this[_0x4bb46f(0x262)]===t[_0x4bb46f(0x2e4)]['UNIVER_DOC']){let {unitID:_0x2d4a28,mutations:_0x2bb906,memberID:_0x245b24}=_0x49a05c,_0x1c9135=_0x2bb906[_0x4bb46f(0x306)]>0x0?_0x2bb906[0x0][_0x4bb46f(0x3c9)][_0x4bb46f(0x281)]:[];if(Array[_0x4bb46f(0x45d)](_0x1c9135)&&_0x1c9135['length']>0x0){var _0x4872b9,_0x48cbef;(_0x4872b9=(_0x48cbef=this[_0x4bb46f(0x23a)])['onSyncEditingCollabCursor'])==null||_0x4872b9['call'](_0x48cbef,{'unitID':_0x2d4a28,'memberID':_0x245b24,'textRanges':_0x1c9135});}}}[_0x1a65c6(0x204)](){const _0x3cb411=_0x1a65c6;var _0x451880;(_0x451880=this[_0x3cb411(0x185)])==null||_0x451880[_0x3cb411(0x289)](this[_0x3cb411(0x293)],this[_0x3cb411(0x262)],this[_0x3cb411(0x267)],this[_0x3cb411(0x44d)]);}['_getCurrentRevision'](){const _0x3cc91e=_0x1a65c6;return this[_0x3cc91e(0x13e)][_0x3cc91e(0x1be)](this[_0x3cc91e(0x293)]);}['_incrementRevisionNumber'](){const _0x34ee51=_0x1a65c6;this[_0x34ee51(0x13e)][_0x34ee51(0x2c8)](this[_0x34ee51(0x293)]);}[_0x1a65c6(0x13d)](_0x37dbc1){const _0x1b6396=_0x1a65c6;let _0x4cacd2=this[_0x1b6396(0x314)](_0x37dbc1);_0x4cacd2=this[_0x1b6396(0x397)](_0x4cacd2);let _0x4605aa=this[_0x1b6396(0x23b)](_0x4cacd2),_0x50d0c4=(0x0,t[_0x1b6396(0x3ce)])(_0x4cacd2[_0x1b6396(0x3fe)],this[_0x1b6396(0x41f)],{'fromCollab':!0x0});if(!_0x50d0c4[_0x1b6396(0x33b)])throw _0x4605aa==null||_0x4605aa[_0x1b6396(0x2b1)](),_0x50d0c4['error']instanceof Error?_0x50d0c4[_0x1b6396(0x1bb)]:Error(_0x50d0c4[_0x1b6396(0x1bb)]??'[CollaborationState]:\x20apply\x20error!');_0x4605aa==null||_0x4605aa[_0x1b6396(0x14f)](),this[_0x1b6396(0x29a)](_0x4cacd2),this[_0x1b6396(0x320)](_0x4cacd2),this[_0x1b6396(0x19f)](_0x37dbc1),this[_0x1b6396(0x181)](_0x4cacd2),this['_syncEditingCollabCursor'](_0x4cacd2),this[_0x1b6396(0x300)]();}};let D=class extends E{constructor(_0x3ec5c2,_0x2bd284,_0xfc4e16,_0x4d1e33,_0x295d53,_0x1f7a47,_0x536d63,_0x2dbcc5,_0x436d9a,_0x257fee){const _0x1e2f91=_0x1a65c6;super(_0x3ec5c2,_0x2bd284,null,[],_0xfc4e16,_0x536d63,_0x1f7a47,_0x4d1e33,_0x257fee),this[_0x1e2f91(0x241)]=_0x295d53,this[_0x1e2f91(0x461)]=_0x2dbcc5,this[_0x1e2f91(0x43b)]=_0x436d9a,this['localCacheService']=_0x257fee,g(this,_0x1e2f91(0x333),_0x1e2f91(0x3b2));}[_0x1a65c6(0x2ef)](_0x2426cc){const _0x102136=_0x1a65c6;let _0x461e9a=this[_0x102136(0x241)][_0x102136(0x2ff)](O,this['unitID'],this[_0x102136(0x262)],[_0x2426cc],this[_0x102136(0x23a)]);return _0x461e9a[_0x102136(0x3e1)](),_0x461e9a[_0x102136(0x204)](),_0x461e9a;}[_0x1a65c6(0x29e)](_0x2e96f8){const _0x5e24e7=_0x1a65c6;if(this[_0x5e24e7(0x359)](_0x2e96f8))return this[_0x5e24e7(0x241)][_0x5e24e7(0x2ff)](N,this['unitID'],this[_0x5e24e7(0x262)],null,[],null,[_0x2e96f8],this[_0x5e24e7(0x23a)]);try{let _0x14fb61=this[_0x5e24e7(0x43b)][_0x5e24e7(0x437)](_0x2e96f8,[e['EmptyMutationInfo']]);if((0x0,e[_0x5e24e7(0x1ef)])(_0x14fb61)){let {c1Prime:_0x42f2f4}=_0x14fb61;return this['_executeRemoteChangeset'](_0x42f2f4),this;}throw _0x14fb61[_0x5e24e7(0x1bb)];}catch(_0x2d626b){return this['_logService'][_0x5e24e7(0x1bb)](_0x2d626b),this[_0x5e24e7(0x44c)](!0x1);}}[_0x1a65c6(0x44c)](_0x4f6074){const _0x14c03b=_0x1a65c6;return this[_0x14c03b(0x241)][_0x14c03b(0x2ff)](j,this[_0x14c03b(0x293)],this[_0x14c03b(0x262)],null,[],this['_handler'],_0x4f6074);}[_0x1a65c6(0x354)](_0x5107cf){const _0x543929=_0x1a65c6;if(_0x5107cf[_0x543929(0x1b5)]<=this[_0x543929(0x1f7)]())return this;throw Error(_0x543929(0x456));}[_0x1a65c6(0x1b8)](){const _0x304ff6=_0x1a65c6;throw Error(_0x304ff6(0x3f6));}['onRemoteRetry'](){return this;}[_0x1a65c6(0x3c1)](){const _0x1c7826=_0x1a65c6;return this['_injector'][_0x1c7826(0x2ff)](M,this[_0x1c7826(0x293)],this[_0x1c7826(0x262)],null,[],this[_0x1c7826(0x23a)]);}[_0x1a65c6(0x392)](){return this;}[_0x1a65c6(0x414)](){const _0x3b3fba=_0x1a65c6;throw Error(_0x3b3fba(0x426));}[_0x1a65c6(0x1d8)](){const _0x317980=_0x1a65c6;let _0xee909e=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return this[_0x317980(0x23a)]['onMissingChangesets']({'from':_0xee909e,'to':0x0}),this[_0x317980(0x241)]['createInstance'](N,this[_0x317980(0x293)],this[_0x317980(0x262)],null,[],null,[],this[_0x317980(0x23a)]);}};D=y([v(0x3,(0x0,t[_0x1a65c6(0x3df)])(e['RevisionService'])),v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,t[_0x1a65c6(0x3dc)]),v(0x6,t[_0x1a65c6(0x324)]),v(0x7,t[_0x1a65c6(0x16b)]),v(0x8,e['ITransformService']),v(0x9,(0x0,t[_0x1a65c6(0x214)])(x))],D);let O=Le=class extends E{constructor(_0x4857fb,_0x5d7c82,_0x3950d5,_0xaaa2fd,_0xed7a80,_0x5af6f0,_0x286449,_0x43e731,_0x517707,_0x10eaa6,_0x23d6cc,_0x2fbd3c,_0x19ea1f,_0x43f1e0){const _0xbec275=_0x1a65c6;super(_0x4857fb,_0x5d7c82,null,_0x3950d5,_0xaaa2fd,_0x517707,_0x19ea1f,_0x5af6f0,_0x43f1e0),this[_0xbec275(0x241)]=_0xed7a80,this[_0xbec275(0x2cd)]=_0x286449,this[_0xbec275(0x461)]=_0x43e731,this[_0xbec275(0x3a6)]=_0x10eaa6,this['_transformService']=_0x23d6cc,this['_univerInstanceService']=_0x2fbd3c,g(this,_0xbec275(0x333),_0xbec275(0x443)),g(this,_0xbec275(0x170),null),g(this,_0xbec275(0x234),null);}[_0x1a65c6(0x2ef)](_0x5b24c9){const _0x471d10=_0x1a65c6;return this[_0x471d10(0x44d)][_0x471d10(0x1af)](_0x5b24c9),this['_updateLocalCache'](),this;}[_0x1a65c6(0x29e)](_0x12d38d){const _0x5e9f9c=_0x1a65c6;if(this[_0x5e9f9c(0x359)](_0x12d38d))return this[_0x5e9f9c(0x243)](),this['_injector'][_0x5e9f9c(0x2ff)](N,this[_0x5e9f9c(0x293)],this['type'],null,this[_0x5e9f9c(0x44d)],null,[_0x12d38d],this[_0x5e9f9c(0x23a)]);try{let _0x40ff0b=this[_0x5e9f9c(0x43b)][_0x5e9f9c(0x437)](_0x12d38d,this[_0x5e9f9c(0x44d)]);if((0x0,e[_0x5e9f9c(0x1ef)])(_0x40ff0b)){let {c1Prime:_0x402c9c,m2Prime:_0x25bc15}=_0x40ff0b;this[_0x5e9f9c(0x13d)](_0x402c9c);let _0x2f9ab8=this[_0x5e9f9c(0x241)]['createInstance'](Le,this[_0x5e9f9c(0x293)],this['type'],_0x25bc15,this[_0x5e9f9c(0x23a)]);this[_0x5e9f9c(0x243)]();let _0x11a3c3=new Date()['getTime'](),_0x55d825=this[_0x5e9f9c(0x170)]?Math[_0x5e9f9c(0x2bd)](this[_0x5e9f9c(0x170)]-_0x11a3c3,0x0):this[_0x5e9f9c(0x2f9)]();return _0x2f9ab8[_0x5e9f9c(0x3e1)](_0x55d825),_0x2f9ab8;}throw _0x40ff0b['error'];}catch(_0x26034a){return this[_0x5e9f9c(0x461)][_0x5e9f9c(0x1bb)](_0x26034a),this[_0x5e9f9c(0x44c)](!0x1);}}[_0x1a65c6(0x354)](_0x33bcba){const _0x517a74=_0x1a65c6;if(_0x33bcba[_0x517a74(0x1b5)]<=this['_getCurrentRevision']())return this;throw Error(_0x517a74(0x3a0));}[_0x1a65c6(0x1b8)](){const _0x14d155=_0x1a65c6;throw Error(_0x14d155(0x3be));}[_0x1a65c6(0x15b)](){return this;}['toggleOffline'](){const _0x25029b=_0x1a65c6;return this['_clearScheduledTask'](),this[_0x25029b(0x241)][_0x25029b(0x2ff)](M,this[_0x25029b(0x293)],this[_0x25029b(0x262)],null,this[_0x25029b(0x44d)],this['_handler']);}[_0x1a65c6(0x392)](){return this;}[_0x1a65c6(0x3e1)](_0x5be4bd){const _0x2f1ef6=_0x1a65c6;let _0x23698=_0x5be4bd??this['_getSendChangesetTimeout']();this[_0x2f1ef6(0x170)]=new Date()[_0x2f1ef6(0x238)]()+_0x23698,this[_0x2f1ef6(0x234)]=setTimeout(()=>{const _0x42577c=_0x2f1ef6;this[_0x42577c(0x243)]();let _0x4c76a=null;switch(this[_0x42577c(0x262)]){case t[_0x42577c(0x2e4)]['UNIVER_SHEET']:_0x4c76a=w(this[_0x42577c(0x44d)],this[_0x42577c(0x293)],this[_0x42577c(0x3fb)],this['_revisionService'],this['_userManagerService']);break;case t[_0x42577c(0x2e4)][_0x42577c(0x292)]:_0x4c76a=this[_0x42577c(0x44d)][_0x42577c(0x317)](_0x207eeb=>_0x207eeb['id']===n[_0x42577c(0x436)]['id'])?Oe(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this['_userManagerService']):w(this[_0x42577c(0x44d)],this[_0x42577c(0x293)],this['_univerInstanceService'],this[_0x42577c(0x13e)],this[_0x42577c(0x2cd)]);break;case t[_0x42577c(0x2e4)][_0x42577c(0x3ee)]:_0x4c76a=De(this[_0x42577c(0x44d)],this['unitID'],this['_univerInstanceService'],this[_0x42577c(0x13e)],this['_userManagerService']);break;case t['UniverInstanceType'][_0x42577c(0x1f2)]:_0x4c76a=Ee(this[_0x42577c(0x44d)],this[_0x42577c(0x293)],this[_0x42577c(0x3fb)],this['_revisionService'],this['_userManagerService']);break;case t[_0x42577c(0x2e4)][_0x42577c(0x3c6)]:_0x4c76a=w(this[_0x42577c(0x44d)],this[_0x42577c(0x293)],this[_0x42577c(0x3fb)],this['_revisionService'],this[_0x42577c(0x2cd)]);break;case t[_0x42577c(0x2e4)][_0x42577c(0x168)]:_0x4c76a=w(this[_0x42577c(0x44d)],this[_0x42577c(0x293)],this[_0x42577c(0x3fb)],this[_0x42577c(0x13e)],this[_0x42577c(0x2cd)]);break;default:throw Error(_0x42577c(0x26e)+this[_0x42577c(0x262)]+_0x42577c(0x17a));}let {changeset:_0x844a7c,pendingMutations:_0x36e7f5}=_0x4c76a;this['_handler'][_0x42577c(0x1c7)](_0x844a7c);let _0x5f03e8=_0x36e7f5['length']?this['_injector'][_0x42577c(0x2ff)](A,this[_0x42577c(0x293)],this[_0x42577c(0x262)],_0x844a7c,_0x36e7f5,this['_handler'],void 0x0):this[_0x42577c(0x241)]['createInstance'](k,this[_0x42577c(0x293)],this['type'],_0x844a7c,this[_0x42577c(0x23a)]);_0x5f03e8[_0x42577c(0x204)](),this[_0x42577c(0x23a)][_0x42577c(0x2ab)](this,_0x5f03e8);},_0x23698);}[_0x1a65c6(0x2f9)](){const _0x2487ae=_0x1a65c6;let _0xd64e3b=this['_configService'][_0x2487ae(0x216)](m);return(_0xd64e3b==null?void 0x0:_0xd64e3b['sendChangesetTimeout'])??0x7d0;}[_0x1a65c6(0x414)](){const _0x4f2946=_0x1a65c6;throw Error(_0x4f2946(0x228));}['_clearScheduledTask'](){const _0x55381f=_0x1a65c6;this[_0x55381f(0x234)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x55381f(0x234)]=null);}[_0x1a65c6(0x44c)](_0x4ebad7){const _0x3b2b9b=_0x1a65c6;return this['_clearScheduledTask'](),this['_injector']['createInstance'](j,this[_0x3b2b9b(0x293)],this['type'],null,this[_0x3b2b9b(0x44d)],this['_handler'],_0x4ebad7);}};O=Le=y([v(0x4,(0x0,t[_0x1a65c6(0x3df)])(t['Injector'])),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x239)])),v(0x6,(0x0,t[_0x1a65c6(0x3df)])(t['UserManagerService'])),v(0x7,t[_0x1a65c6(0x16b)]),v(0x8,t[_0x1a65c6(0x324)]),v(0x9,t[_0x1a65c6(0x34b)]),v(0xa,e[_0x1a65c6(0x18c)]),v(0xb,t[_0x1a65c6(0x458)]),v(0xc,t['IUndoRedoService']),v(0xd,(0x0,t[_0x1a65c6(0x214)])(x))],O);let k=Re=class extends E{constructor(_0xcd69b6,_0x2362f3,_0x55a17e,_0x2f6ddf,_0xdd1664,_0x22ac2f,_0x36359f,_0x3fbfa5,_0x2d2ee6,_0x29ad32,_0x28ae70){const _0xbfb4d5=_0x1a65c6;super(_0xcd69b6,_0x2362f3,_0x55a17e,[],_0x2f6ddf,_0x36359f,_0x29ad32,_0x22ac2f,_0x28ae70),this[_0xbfb4d5(0x241)]=_0xdd1664,this['_logService']=_0x3fbfa5,this[_0xbfb4d5(0x43b)]=_0x2d2ee6,g(this,_0xbfb4d5(0x333),_0xbfb4d5(0x2f4)),g(this,_0xbfb4d5(0x187),0x0),g(this,_0xbfb4d5(0x3f5),0x0),g(this,_0xbfb4d5(0x152),void 0x0),g(this,_0xbfb4d5(0x25b),void 0x0);}[_0x1a65c6(0x2ef)](_0x43da0c){const _0x52a542=_0x1a65c6;this[_0x52a542(0x243)]();let _0x159d3b=this[_0x52a542(0x241)]['createInstance'](A,this[_0x52a542(0x293)],this['type'],this[_0x52a542(0x267)],[_0x43da0c],this[_0x52a542(0x23a)],this[_0x52a542(0x152)]);return _0x159d3b[_0x52a542(0x204)](),_0x159d3b;}[_0x1a65c6(0x29e)](_0x1a615e){const _0x235525=_0x1a65c6;if(this['_checkMissing'](_0x1a615e))return this[_0x235525(0x243)](),this[_0x235525(0x241)][_0x235525(0x2ff)](N,this['unitID'],this[_0x235525(0x262)],this[_0x235525(0x267)],[],null,[_0x1a615e],this[_0x235525(0x23a)]);try{let _0x2c38bf=this[_0x235525(0x43b)]['transformChangesets']([_0x1a615e],[this[_0x235525(0x267)]],!0x1);if((0x0,e[_0x235525(0x1b2)])(_0x2c38bf)){let {c1Prime:_0x3204dd,c2Prime:_0x40f977}=_0x2c38bf;this[_0x235525(0x13d)](_0x3204dd[0x0]),_0x40f977[0x0][_0x235525(0x182)]=this[_0x235525(0x1f7)](),this['_clearScheduledTask']();let _0x1fcfc2=this[_0x235525(0x241)][_0x235525(0x2ff)](Re,this[_0x235525(0x293)],this[_0x235525(0x262)],_0x40f977[0x0],this['_handler']);return _0x1fcfc2[_0x235525(0x204)](),_0x1fcfc2;}throw _0x2c38bf['error'];}catch(_0x51a7a7){return this[_0x235525(0x461)][_0x235525(0x1bb)](_0x51a7a7),this[_0x235525(0x44c)](!0x1);}}['onRemoteAck'](_0xa2d12a){const _0x4b8724=_0x1a65c6;this[_0x4b8724(0x243)]();let _0x202d06=this['_revisionService']['getCurrentRevOfUnit'](this[_0x4b8724(0x293)]);if(_0xa2d12a[_0x4b8724(0x1b5)]<=_0x202d06)return this;if(this['_checkMissing'](_0xa2d12a))return this[_0x4b8724(0x241)][_0x4b8724(0x2ff)](N,this[_0x4b8724(0x293)],this[_0x4b8724(0x262)],this[_0x4b8724(0x267)],[],_0xa2d12a[_0x4b8724(0x1b5)],[],this[_0x4b8724(0x23a)]);this[_0x4b8724(0x300)]();let _0x29c476=this[_0x4b8724(0x241)]['createInstance'](D,this['unitID'],this[_0x4b8724(0x262)],this[_0x4b8724(0x23a)]);return _0x29c476[_0x4b8724(0x204)](),_0x29c476;}[_0x1a65c6(0x1b8)](_0xc94f13){const _0x1e5993=_0x1a65c6;return this[_0x1e5993(0x44c)](!!(_0xc94f13!=null&&_0xc94f13[_0x1e5993(0x3b7)]));}['onRemoteRetry'](_0x9a1306){const _0x279787=_0x1a65c6;return this[_0x279787(0x3f5)]>He?this['toggleOffline']():(this[_0x279787(0x152)]=Ie(this[_0x279787(0x187)],{'timeout':this['_resendTimeout'],'reqId':_0x9a1306[_0x279787(0x16c)]}),this[_0x279787(0x25b)]=this[_0x279787(0x152)][_0x279787(0x338)](({reqId:_0x563410,timeout:_0x496fd8})=>{const _0x40a41d=_0x279787;this[_0x40a41d(0x2a7)](_0x563410,_0x496fd8);}),this);}[_0x1a65c6(0x3c1)](){const _0x10450c=_0x1a65c6;return this[_0x10450c(0x243)](),this[_0x10450c(0x241)][_0x10450c(0x2ff)](M,this[_0x10450c(0x293)],this[_0x10450c(0x262)],this[_0x10450c(0x267)],[],this[_0x10450c(0x23a)]);}['toggleOnline'](){return this;}[_0x1a65c6(0x414)](){const _0x50511b=_0x1a65c6;this['_handler'][_0x50511b(0x1c7)](this[_0x50511b(0x267)]);}[_0x1a65c6(0x44c)](_0x866410){const _0x5dc022=_0x1a65c6;return this['_clearScheduledTask'](),this['_injector'][_0x5dc022(0x2ff)](j,this[_0x5dc022(0x293)],this[_0x5dc022(0x262)],this[_0x5dc022(0x267)],[],this[_0x5dc022(0x23a)],_0x866410);}[_0x1a65c6(0x2a7)](_0x50d67a,_0x280677){const _0x23c58e=_0x1a65c6;var _0x2cc4df;_0x50d67a===((_0x2cc4df=this[_0x23c58e(0x267)])==null?void 0x0:_0x2cc4df[_0x23c58e(0x16c)])&&(this[_0x23c58e(0x414)](),this[_0x23c58e(0x187)]=_0x280677===0x0?0x3e8:Math['min'](_0x280677*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0x23c58e(0x187)]);}['_clearScheduledTask'](){const _0x892510=_0x1a65c6;var _0x2b13bc;(_0x2b13bc=this[_0x892510(0x25b)])==null||_0x2b13bc['unsubscribe'](),this[_0x892510(0x187)]=0x0,this[_0x892510(0x3f5)]=0x0;}};k=Re=y([v(0x4,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x15c)])),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x239)])),v(0x6,t[_0x1a65c6(0x324)]),v(0x7,t[_0x1a65c6(0x16b)]),v(0x8,e[_0x1a65c6(0x18c)]),v(0x9,t[_0x1a65c6(0x3dc)]),v(0xa,(0x0,t[_0x1a65c6(0x214)])(x))],k);let A=ze=class extends E{constructor(_0x34e17f,_0x3ab5eb,_0x308c6b,_0x3a0e9d,_0x2b325c,_0x372656,_0x2a23e3,_0x52eaeb,_0x3e192a,_0x56cf38,_0x42093a,_0x5893e2,_0x194d8e){const _0x17f8c7=_0x1a65c6;super(_0x34e17f,_0x3ab5eb,_0x308c6b,_0x3a0e9d,_0x2b325c,_0x3e192a,_0x5893e2,_0x52eaeb,_0x194d8e),this[_0x17f8c7(0x241)]=_0x2a23e3,this[_0x17f8c7(0x461)]=_0x56cf38,this[_0x17f8c7(0x43b)]=_0x42093a,this[_0x17f8c7(0x2eb)]=_0x194d8e,g(this,_0x17f8c7(0x333),_0x17f8c7(0x383)),g(this,_0x17f8c7(0x187),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x17f8c7(0x152),void 0x0),g(this,_0x17f8c7(0x25b),void 0x0),_0x372656&&(this[_0x17f8c7(0x152)]=_0x372656,this[_0x17f8c7(0x25b)]=this['_resendTimer'][_0x17f8c7(0x338)](({reqId:_0x5db09d,timeout:_0x2aff49})=>{const _0x28571e=_0x17f8c7;this[_0x28571e(0x2a7)](_0x5db09d,_0x2aff49);}));}['appendMutation'](_0x195526){const _0x53bca5=_0x1a65c6;return this[_0x53bca5(0x44d)][_0x53bca5(0x1af)](_0x195526),this;}['onRemoteChangeset'](_0x5b5398){const _0xfd4676=_0x1a65c6;if(this[_0xfd4676(0x359)](_0x5b5398))return this[_0xfd4676(0x243)](),this['_injector']['createInstance'](N,this[_0xfd4676(0x293)],this[_0xfd4676(0x262)],this['_awaitingChangeset'],this[_0xfd4676(0x44d)],null,[_0x5b5398],this[_0xfd4676(0x23a)]);try{let _0x4fedbe=this[_0xfd4676(0x43b)][_0xfd4676(0x1f0)]([_0x5b5398],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0xfd4676(0x1b2)])(_0x4fedbe)){let {c1Prime:_0x404016,c2Prime:_0x114a89}=_0x4fedbe,_0x42adfb=this[_0xfd4676(0x43b)][_0xfd4676(0x437)](_0x404016[0x0],this[_0xfd4676(0x44d)]);if((0x0,e[_0xfd4676(0x1ef)])(_0x42adfb)){let {c1Prime:_0x4f5444,m2Prime:_0x315212}=_0x42adfb;return this['_executeRemoteChangeset'](_0x4f5444),_0x114a89[0x0][_0xfd4676(0x182)]=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0xfd4676(0x241)][_0xfd4676(0x2ff)](ze,this[_0xfd4676(0x293)],this[_0xfd4676(0x262)],_0x114a89[0x0],_0x315212,this['_handler'],void 0x0);}throw _0x42adfb[_0xfd4676(0x1bb)];}throw _0x4fedbe[_0xfd4676(0x1bb)];}catch(_0x5839c7){return this[_0xfd4676(0x461)][_0xfd4676(0x1bb)](_0x5839c7),this[_0xfd4676(0x44c)](!0x1);}}[_0x1a65c6(0x354)](_0x5d5b96){const _0x44432e=_0x1a65c6;this[_0x44432e(0x243)]();let _0x511463=this[_0x44432e(0x1f7)]();if(_0x5d5b96[_0x44432e(0x1b5)]<=_0x511463)return this;if(this[_0x44432e(0x359)](_0x5d5b96))return this[_0x44432e(0x241)][_0x44432e(0x2ff)](N,this[_0x44432e(0x293)],this[_0x44432e(0x262)],this['_awaitingChangeset'],this[_0x44432e(0x44d)],_0x5d5b96[_0x44432e(0x1b5)],[],this['_handler']);this[_0x44432e(0x300)]();let _0x2cca74=this['_injector'][_0x44432e(0x2ff)](O,this[_0x44432e(0x293)],this[_0x44432e(0x262)],this[_0x44432e(0x44d)],this[_0x44432e(0x23a)]);return _0x2cca74['_schedule'](),_0x2cca74[_0x44432e(0x204)](),_0x2cca74;}[_0x1a65c6(0x1b8)](_0x1f1091){const _0x455019=_0x1a65c6;return this[_0x455019(0x44c)](!!(_0x1f1091!=null&&_0x1f1091['isPermissionRej']));}[_0x1a65c6(0x15b)](_0x4b3b88){const _0x715d62=_0x1a65c6;return this[_0x715d62(0x3f5)]>He?this[_0x715d62(0x3c1)]():(this[_0x715d62(0x152)]=Ie(this[_0x715d62(0x187)],{'timeout':this[_0x715d62(0x187)],'reqId':_0x4b3b88['reqId']}),this[_0x715d62(0x25b)]=this['_resendTimer']['subscribe'](({reqId:_0x2e4abd,timeout:_0x26bc58})=>{this['_resendWithTimeout'](_0x2e4abd,_0x26bc58);}),this);}['toggleOffline'](){const _0x2bced2=_0x1a65c6;return this[_0x2bced2(0x243)](),this['_injector'][_0x2bced2(0x2ff)](M,this[_0x2bced2(0x293)],this[_0x2bced2(0x262)],this['_awaitingChangeset'],this[_0x2bced2(0x44d)],this[_0x2bced2(0x23a)]);}[_0x1a65c6(0x392)](){return this;}[_0x1a65c6(0x414)](){const _0x2d8d3f=_0x1a65c6;this[_0x2d8d3f(0x23a)][_0x2d8d3f(0x1c7)](this[_0x2d8d3f(0x267)]);}[_0x1a65c6(0x44c)](_0x1806e4){const _0x49ef8b=_0x1a65c6;return this[_0x49ef8b(0x243)](),this['_injector'][_0x49ef8b(0x2ff)](j,this['unitID'],this['type'],null,this[_0x49ef8b(0x44d)],this[_0x49ef8b(0x23a)],_0x1806e4);}[_0x1a65c6(0x2a7)](_0x30e12d,_0x4b4cfb){const _0x47b6f0=_0x1a65c6;var _0x2936f9;_0x30e12d===((_0x2936f9=this[_0x47b6f0(0x267)])==null?void 0x0:_0x2936f9[_0x47b6f0(0x16c)])&&(this[_0x47b6f0(0x414)](),this[_0x47b6f0(0x187)]=_0x4b4cfb===0x0?0x3e8:Math[_0x47b6f0(0x28a)](_0x4b4cfb*0x2,Ve),this[_0x47b6f0(0x3f5)]+=this[_0x47b6f0(0x187)]);}[_0x1a65c6(0x243)](){const _0x408ab6=_0x1a65c6;var _0x1e4604;(_0x1e4604=this[_0x408ab6(0x25b)])==null||_0x1e4604['unsubscribe'](),this['_resendTimeout']=0x0,this[_0x408ab6(0x3f5)]=0x0;}};A=ze=y([v(0x6,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x15c)])),v(0x7,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x239)])),v(0x8,t[_0x1a65c6(0x324)]),v(0x9,t[_0x1a65c6(0x16b)]),v(0xa,e[_0x1a65c6(0x18c)]),v(0xb,t[_0x1a65c6(0x3dc)]),v(0xc,(0x0,t[_0x1a65c6(0x214)])(x))],A);let j=class extends E{constructor(_0x5dd010,_0x3f02ec,_0x24fd4d,_0x6c2bc2,_0x159478,_0x205546=!0x1,_0x313192,_0xdc7278,_0x39d0a0,_0x192966,_0x142979,_0xa4a5ba,_0x57a61d){const _0x46fca8=_0x1a65c6;super(_0x5dd010,_0x3f02ec,_0x24fd4d,_0x6c2bc2,_0x159478,_0xdc7278,_0x39d0a0,_0x192966,_0x57a61d),this[_0x46fca8(0x2b3)]=_0x205546,this[_0x46fca8(0x332)]=_0x313192,this[_0x46fca8(0x2bf)]=_0x142979,this['_collaborationUIEventService']=_0xa4a5ba,this[_0x46fca8(0x2eb)]=_0x57a61d,g(this,_0x46fca8(0x333),_0x46fca8(0x365)),this[_0x46fca8(0x3bb)](),this[_0x46fca8(0x32a)](),this[_0x46fca8(0x32f)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x1a65c6(0x354)](){return this;}[_0x1a65c6(0x1b8)](){return this;}[_0x1a65c6(0x15b)](){return this;}[_0x1a65c6(0x3c1)](){return this;}[_0x1a65c6(0x392)](){return this;}[_0x1a65c6(0x414)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}async[_0x1a65c6(0x32f)](){const _0x247aa=_0x1a65c6;var _0x111e48,_0x470713;await((_0x111e48=this[_0x247aa(0x185)])==null||(_0x470713=_0x111e48['backupOfflineData'])==null?void 0x0:_0x470713[_0x247aa(0x2c5)](_0x111e48,this['unitID'],'conflict')[_0x247aa(0x3e7)](()=>void 0x0));try{var _0x458279;await((_0x458279=this[_0x247aa(0x185)])==null?void 0x0:_0x458279[_0x247aa(0x386)](this[_0x247aa(0x293)]));}catch{this['_collaborationUIEventService'][_0x247aa(0x1bc)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x247aa(0x293)]});return;}this[_0x247aa(0x1f1)]();}['_showConflictProcessingNotification'](){const _0x40fa85=_0x1a65c6;this[_0x40fa85(0x1ba)][_0x40fa85(0x1bc)]({'id':_0x40fa85(0x203)});}[_0x1a65c6(0x1f1)](){const _0x9f4f4e=_0x1a65c6;this['_isPermissionRej']?this[_0x9f4f4e(0x1ba)][_0x9f4f4e(0x1bc)]({'id':'PERMISSION_DENIED'}):this[_0x9f4f4e(0x1ba)][_0x9f4f4e(0x1bc)]({'id':_0x9f4f4e(0x308)});}[_0x1a65c6(0x3bb)](){const _0x4b0c69=_0x1a65c6;this[_0x4b0c69(0x332)][_0x4b0c69(0x356)](new r[(_0x4b0c69(0x3b8))](this[_0x4b0c69(0x293)])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x3a4)])),v(0x7,t[_0x1a65c6(0x324)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x239)])),v(0xa,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x3d3)])),v(0xb,(0x0,t[_0x1a65c6(0x3df)])(_)),v(0xc,(0x0,t[_0x1a65c6(0x214)])(x))],j);let M=class extends E{constructor(_0x1f9b37,_0x23e313,_0x24b1f9,_0xd11788,_0x58a147,_0x22aa33,_0x36d3c0,_0x69380c,_0x890ecd,_0xd489c5){const _0x50c4c1=_0x1a65c6;super(_0x1f9b37,_0x23e313,_0x24b1f9,_0xd11788,_0x58a147,_0x69380c,_0x890ecd,_0x36d3c0,_0xd489c5),this[_0x50c4c1(0x241)]=_0x22aa33,g(this,_0x50c4c1(0x333),_0x50c4c1(0x475));}[_0x1a65c6(0x2ef)](_0xb78aa8){const _0x1b2541=_0x1a65c6;return this[_0x1b2541(0x44d)]['push'](_0xb78aa8),this['_updateLocalCache'](),this;}[_0x1a65c6(0x29e)](_0x322d0a){const _0xd5f9a7=_0x1a65c6;throw Error(_0xd5f9a7(0x449));}[_0x1a65c6(0x354)](){const _0x1f73dc=_0x1a65c6;throw Error(_0x1f73dc(0x46c));}[_0x1a65c6(0x1b8)](){const _0x2ee823=_0x1a65c6;throw Error(_0x2ee823(0x42f));}['onRemoteRetry'](){return this;}[_0x1a65c6(0x3c1)](){return this;}['toggleOnline'](){const _0x4aee58=_0x1a65c6;let {_injector:_0x52e757,_pendingMutations:_0x138e38,_awaitingChangeset:_0x28da72,unitID:_0x4eaa64,_handler:_0x2b2a5b,type:_0x3e5180}=this,_0x46e424=Ue(_0x52e757,_0x4eaa64,_0x3e5180,_0x28da72,_0x138e38,_0x2b2a5b);return _0x46e424 instanceof O?_0x46e424[_0x4aee58(0x3e1)]():(_0x46e424 instanceof A||_0x46e424 instanceof k)&&_0x46e424['resend'](),_0x46e424;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};M=y([v(0x5,(0x0,t['Inject'])(t[_0x1a65c6(0x15c)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,t[_0x1a65c6(0x324)]),v(0x8,t[_0x1a65c6(0x3dc)]),v(0x9,(0x0,t[_0x1a65c6(0x214)])(x))],M);let N=class extends E{constructor(_0xa1b7fa,_0x315de0,_0x381043,_0x222a35,_0x2fe96b,_0x21941c,_0x57fe08,_0xef3b42,_0x500230,_0x13eadc,_0x13ce43,_0x38e577,_0x5ed57c,_0x19a080){const _0x33be51=_0x1a65c6;super(_0xa1b7fa,_0x315de0,_0x381043,_0x222a35,_0x57fe08,_0x13ce43,_0x38e577,_0x500230,_0x19a080),this['_acknowledgedAwaitingRevision']=_0x2fe96b,this[_0x33be51(0x264)]=_0x21941c,this[_0x33be51(0x241)]=_0xef3b42,this['_logService']=_0x13eadc,this[_0x33be51(0x43b)]=_0x5ed57c,this['localCacheService']=_0x19a080,g(this,'status',_0x33be51(0x352));}[_0x1a65c6(0x3c7)](_0x4f5c6f){const _0x1b9e06=_0x1a65c6;try{if(this[_0x1b9e06(0x176)](_0x4f5c6f)[_0x1b9e06(0x339)])throw Error(_0x1b9e06(0x47b));if(this[_0x1b9e06(0x176)]([...this['_queuedRemoteChangesets']][_0x1b9e06(0x2af)]((_0x456713,_0x4f4d72)=>_0x456713[_0x1b9e06(0x1b5)]-_0x4f4d72[_0x1b9e06(0x1b5)]))[_0x1b9e06(0x339)])return this[_0x1b9e06(0x264)]=[],this[_0x1b9e06(0x204)](),this[_0x1b9e06(0x23a)][_0x1b9e06(0x18d)]({'from':this[_0x1b9e06(0x1f7)](),'to':0x0}),this;let _0x86eb70=this[_0x1b9e06(0x267)],_0x3d73b6=this[_0x1b9e06(0x44d)],_0x4c30fd;if(_0x86eb70&&_0x3d73b6[_0x1b9e06(0x306)]!==0x0)_0x4c30fd=this['_injector']['createInstance'](A,this[_0x1b9e06(0x293)],this['type'],_0x86eb70,_0x3d73b6,this['_handler'],void 0x0);else{if(_0x86eb70&&_0x3d73b6[_0x1b9e06(0x306)]===0x0)_0x86eb70[_0x1b9e06(0x182)]=this[_0x1b9e06(0x1f7)](),_0x4c30fd=this[_0x1b9e06(0x241)][_0x1b9e06(0x2ff)](k,this[_0x1b9e06(0x293)],this[_0x1b9e06(0x262)],_0x86eb70,this['_handler']);else{if(_0x3d73b6[_0x1b9e06(0x306)]!==0x0){let _0x108c43=this[_0x1b9e06(0x241)][_0x1b9e06(0x2ff)](O,this[_0x1b9e06(0x293)],this['type'],_0x3d73b6,this[_0x1b9e06(0x23a)]);_0x108c43['_schedule'](),_0x4c30fd=_0x108c43;}else _0x4c30fd=this['_injector'][_0x1b9e06(0x2ff)](D,this[_0x1b9e06(0x293)],this[_0x1b9e06(0x262)],this[_0x1b9e06(0x23a)]);}}return _0x4c30fd[_0x1b9e06(0x204)](),_0x4c30fd;}catch(_0x1020ab){return this[_0x1b9e06(0x461)][_0x1b9e06(0x1bb)](_0x1b9e06(0x2ea),_0x1b9e06(0x41d),_0x1020ab),this[_0x1b9e06(0x241)][_0x1b9e06(0x2ff)](j,this['unitID'],this[_0x1b9e06(0x262)],this[_0x1b9e06(0x267)],this[_0x1b9e06(0x44d)],this[_0x1b9e06(0x23a)],!0x1);}}[_0x1a65c6(0x176)](_0x9b3ce7){const _0x35ef6f=_0x1a65c6;this['_acknowledgeAwaitingIfReady']();for(let _0x26d5bb=0x0;_0x26d5bb<_0x9b3ce7[_0x35ef6f(0x306)];_0x26d5bb++){let _0x2fa038=_0x9b3ce7[_0x26d5bb],_0x1435ad=this[_0x35ef6f(0x1f7)]();if(!(_0x2fa038[_0x35ef6f(0x1b5)]<=_0x1435ad)){if(_0x2fa038[_0x35ef6f(0x1b5)]>_0x1435ad+0x1)return{'missingChangesets':!0x0};if(this[_0x35ef6f(0x327)](_0x2fa038)){this[_0x35ef6f(0x42c)]();continue;}this[_0x35ef6f(0x211)](_0x2fa038),this[_0x35ef6f(0x37e)]();}}return{'missingChangesets':!0x1};}[_0x1a65c6(0x211)](_0x63c1b7){const _0x414cf4=_0x1a65c6;let _0x13f59f=_0x63c1b7,_0x16ec7c=this[_0x414cf4(0x267)];if(_0x16ec7c){let _0x2c8540=this[_0x414cf4(0x43b)]['transformChangesets']([_0x63c1b7],[_0x16ec7c],!0x1);if(!(0x0,e['isTransformChangesetsSuccess'])(_0x2c8540))throw _0x2c8540[_0x414cf4(0x1bb)];_0x13f59f=_0x2c8540['c1Prime'][0x0],_0x16ec7c=_0x2c8540[_0x414cf4(0x304)][0x0];}let _0x6af1b2=this[_0x414cf4(0x44d)];if(_0x6af1b2[_0x414cf4(0x306)]){let _0x23e6c7=this['_transformService']['transformMutationsWithChangeset'](_0x13f59f,_0x6af1b2);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x23e6c7))throw _0x23e6c7[_0x414cf4(0x1bb)];_0x13f59f=_0x23e6c7[_0x414cf4(0x2cf)],_0x6af1b2=_0x23e6c7[_0x414cf4(0x237)];}this[_0x414cf4(0x13d)](_0x13f59f),_0x16ec7c&&(_0x16ec7c[_0x414cf4(0x182)]=this[_0x414cf4(0x1f7)]()),this[_0x414cf4(0x267)]=_0x16ec7c,this[_0x414cf4(0x44d)]=_0x6af1b2;}[_0x1a65c6(0x37e)](){const _0x112aa4=_0x1a65c6;if(!this[_0x112aa4(0x267)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x3b0184=this[_0x112aa4(0x1f7)]();if(this[_0x112aa4(0x20f)]<=_0x3b0184)throw Error(_0x112aa4(0x147)+this[_0x112aa4(0x20f)]+'.');this[_0x112aa4(0x20f)]===_0x3b0184+0x1&&this['_acknowledgeAwaiting']();}[_0x1a65c6(0x42c)](){const _0x305b14=_0x1a65c6;this[_0x305b14(0x300)](),this['_awaitingChangeset']=null,this[_0x305b14(0x20f)]=null;}[_0x1a65c6(0x327)](_0x13b22e){const _0x32c7a0=_0x1a65c6;let _0x19ffb0=this[_0x32c7a0(0x267)];return!_0x19ffb0||!_0x19ffb0['sid']||_0x19ffb0[_0x32c7a0(0x16c)]===null||_0x19ffb0[_0x32c7a0(0x16c)]===void 0x0?!0x1:_0x13b22e['unitID']===_0x19ffb0['unitID']&&_0x13b22e[_0x32c7a0(0x467)]===_0x19ffb0[_0x32c7a0(0x467)]&&_0x13b22e[_0x32c7a0(0x16c)]===_0x19ffb0[_0x32c7a0(0x16c)];}[_0x1a65c6(0x414)](){const _0x6de4e0=_0x1a65c6;throw Error(_0x6de4e0(0x1ee));}[_0x1a65c6(0x2ef)](_0x52e630){const _0x4e18dc=_0x1a65c6;return this[_0x4e18dc(0x44d)]['push'](_0x52e630),this;}[_0x1a65c6(0x29e)](_0x4ea11a){const _0x209a5a=_0x1a65c6;return this[_0x209a5a(0x264)][_0x209a5a(0x1af)](_0x4ea11a),this;}[_0x1a65c6(0x354)](_0x429e3b){const _0x2fed6a=_0x1a65c6;if(this[_0x2fed6a(0x267)]){let _0x1c54ae=this[_0x2fed6a(0x1f7)]();return _0x429e3b['revision']<=_0x1c54ae||(_0x1c54ae+0x1===_0x429e3b[_0x2fed6a(0x1b5)]?(this[_0x2fed6a(0x300)](),this[_0x2fed6a(0x267)]=null,this[_0x2fed6a(0x20f)]=null):this[_0x2fed6a(0x20f)]=_0x429e3b[_0x2fed6a(0x1b5)]),this;}if(_0x429e3b[_0x2fed6a(0x1b5)]<=this[_0x2fed6a(0x1f7)]())return this;throw Error(_0x2fed6a(0x28f));}[_0x1a65c6(0x1b8)](_0x204548){const _0x4cb8a8=_0x1a65c6;return this[_0x4cb8a8(0x44c)](!!(_0x204548!=null&&_0x204548[_0x4cb8a8(0x3b7)]));}[_0x1a65c6(0x15b)](){return this;}[_0x1a65c6(0x3c1)](){const _0xe3a022=_0x1a65c6;return this['_injector'][_0xe3a022(0x2ff)](M,this[_0xe3a022(0x293)],this[_0xe3a022(0x262)],this[_0xe3a022(0x267)],this[_0xe3a022(0x44d)],this[_0xe3a022(0x23a)]);}[_0x1a65c6(0x392)](){return this;}[_0x1a65c6(0x44c)](_0x3100e3){const _0x51d380=_0x1a65c6;return this[_0x51d380(0x241)]['createInstance'](j,this['unitID'],this[_0x51d380(0x262)],this[_0x51d380(0x267)],this['_pendingMutations'],this['_handler'],_0x3100e3);}};N=y([v(0x7,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x15c)])),v(0x8,(0x0,t[_0x1a65c6(0x3df)])(e['RevisionService'])),v(0x9,t['ILogService']),v(0xa,t[_0x1a65c6(0x324)]),v(0xb,t[_0x1a65c6(0x3dc)]),v(0xc,e[_0x1a65c6(0x18c)]),v(0xd,(0x0,t[_0x1a65c6(0x214)])(x))],N);function Ue(_0x3428d9,_0x2485a9,_0x146d09,_0x29c65f,_0x222a40,_0x338659){const _0x5e2112=_0x1a65c6;return _0x29c65f&&_0x222a40[_0x5e2112(0x306)]?_0x3428d9[_0x5e2112(0x2ff)](A,_0x2485a9,_0x146d09,_0x29c65f,_0x222a40,_0x338659,void 0x0):_0x29c65f?_0x3428d9[_0x5e2112(0x2ff)](k,_0x2485a9,_0x146d09,_0x29c65f,_0x338659):_0x222a40[_0x5e2112(0x306)]?_0x3428d9[_0x5e2112(0x2ff)](O,_0x2485a9,_0x146d09,_0x222a40,_0x338659):_0x3428d9['createInstance'](D,_0x2485a9,_0x146d09,_0x338659);}let P=class extends t[_0x1a65c6(0x476)]{get[_0x1a65c6(0x2cb)](){const _0x900240=_0x1a65c6;return this[_0x900240(0x3f9)];}constructor(_0x504f20,_0x1375b8,_0x49ab9a,_0x2a599f,_0x4d9426,_0x24b21c,_0x1b6c77,_0x382878,_0x17232e,_0x189e18,_0x3d873f,_0x368936,_0x370c1b,_0x5a981a){const _0x47b202=_0x1a65c6;super(),this[_0x47b202(0x293)]=_0x504f20,this[_0x47b202(0x207)]=_0x1375b8,this['_type']=_0x49ab9a,this[_0x47b202(0x241)]=_0x2a599f,this[_0x47b202(0x46a)]=_0x4d9426,this[_0x47b202(0x2bf)]=_0x24b21c,this[_0x47b202(0x13e)]=_0x1b6c77,this[_0x47b202(0x432)]=_0x382878,this['_univerInstanceService']=_0x17232e,this[_0x47b202(0x461)]=_0x189e18,this[_0x47b202(0x41f)]=_0x3d873f,this['_permissionService']=_0x368936,this[_0x47b202(0x411)]=_0x370c1b,this[_0x47b202(0x185)]=_0x5a981a,g(this,_0x47b202(0x28b),new i[(_0x47b202(0x3c4))](null)),g(this,'state$',this[_0x47b202(0x28b)]['asObservable']()),g(this,_0x47b202(0x3f9),void 0x0),g(this,_0x47b202(0x15e),!0x1),g(this,_0x47b202(0x1fb),''),g(this,_0x47b202(0x30e),0x0),g(this,_0x47b202(0x3eb),this[_0x47b202(0x36e)]['pipe']((0x0,i[_0x47b202(0x400)])(_0x59da73=>_0x59da73?_0x59da73[_0x47b202(0x333)]:'offline'),(0x0,i[_0x47b202(0x22a)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x47b202(0x1a5),!0x1),g(this,_0x47b202(0x407),[]);}async[_0x1a65c6(0x418)](){const _0x4697bb=_0x1a65c6;if(this[_0x4697bb(0x2cb)])throw Error(_0x4697bb(0x1d9));await this[_0x4697bb(0x26f)]();}[_0x1a65c6(0x30d)](){const _0x209caf=_0x1a65c6;return this[_0x209caf(0x15e)]=!0x0,(0x0,t[_0x209caf(0x3f4)])(()=>{const _0x18466f=_0x209caf;this[_0x18466f(0x15e)]=!0x1,this[_0x18466f(0x2b2)]();});}[_0x1a65c6(0x3d0)](_0xc7a858){const _0x5a03fb=_0x1a65c6;this[_0x5a03fb(0x3cd)](_0xc7a858);}[_0x1a65c6(0x191)](_0xc377d6){const _0x4eeb5a=_0x1a65c6;this[_0x4eeb5a(0x3f9)]=_0xc377d6,this[_0x4eeb5a(0x28b)]['next'](_0xc377d6);}async['_init'](){const _0x54fe4f=_0x1a65c6;if(this[_0x54fe4f(0x191)](await this[_0x54fe4f(0x17b)]()),this[_0x54fe4f(0x411)]){var _0x195208;(_0x195208=this[_0x54fe4f(0x411)])==null||_0x195208[_0x54fe4f(0x19c)](this[_0x54fe4f(0x293)]),this[_0x54fe4f(0x3cf)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x54fe4f(0x293)])[_0x54fe4f(0x338)](_0x162e48=>{const _0x759597=_0x54fe4f;this[_0x759597(0x461)][_0x759597(0x378)]('[CollaborationEntity]',_0x759597(0x186),_0x162e48),_0x162e48===0x1?(this[_0x759597(0x432)][_0x759597(0x1bc)]({'id':_0x759597(0x21a)}),this[_0x759597(0x332)][_0x759597(0x356)](new r['WorkbookEditablePermission'](this[_0x759597(0x293)])['id'],!0x1),this['_permissionService'][_0x759597(0x3ab)](!0x1)):(this[_0x759597(0x332)][_0x759597(0x356)](new r[(_0x759597(0x3b8))](this[_0x759597(0x293)])['id'],!0x0),this[_0x759597(0x332)][_0x759597(0x3ab)](!0x0));}));}let _0x55b7ba=!0x1;return this[_0x54fe4f(0x3cf)](this[_0x54fe4f(0x207)][_0x54fe4f(0x349)][_0x54fe4f(0x338)](_0x538314=>{const _0x3780b4=_0x54fe4f;_0x538314===0x3?this[_0x3780b4(0x43a)](_0x55b7ba):_0x538314===0x2&&(_0x55b7ba=!0x0,this[_0x3780b4(0x156)]());})),this[_0x54fe4f(0x3cf)](this['session'][_0x54fe4f(0x2d2)][_0x54fe4f(0x338)](_0x234521=>{const _0x3f1fcb=_0x54fe4f;try{switch(_0x234521[_0x3f1fcb(0x2b7)]){case e[_0x3f1fcb(0x166)]['NEW_CHANGESETS']:this[_0x3f1fcb(0x164)]((0x0,e[_0x3f1fcb(0x446)])(_0x234521[_0x3f1fcb(0x229)]));break;case e[_0x3f1fcb(0x166)][_0x3f1fcb(0x36c)]:this['_onRemoteACK'](_0x234521[_0x3f1fcb(0x229)]);break;case e['CollaborationEvent']['CHANGESET_REJ']:this[_0x3f1fcb(0x28d)]();break;case e[_0x3f1fcb(0x166)][_0x3f1fcb(0x165)]:this[_0x3f1fcb(0x3e2)](_0x234521[_0x3f1fcb(0x229)]);break;case e[_0x3f1fcb(0x166)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x3f1fcb(0x1fe)](_0x234521['data']['changesets']['map'](_0x4ab78d=>(0x0,e[_0x3f1fcb(0x446)])(_0x4ab78d)));break;case e['CollaborationEvent'][_0x3f1fcb(0x202)]:this[_0x3f1fcb(0x28d)]({'isPermissionRej':!0x0});break;case e[_0x3f1fcb(0x166)][_0x3f1fcb(0x42e)]:}}catch(_0x3511e3){throw console['error'](_0x3f1fcb(0x3ef),_0x3511e3),_0x3511e3;}})),this[_0x54fe4f(0x3f9)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x1a65c6(0x232)](){const _0x69d966=_0x1a65c6;if(this[_0x69d966(0x1a5)])throw Error(_0x69d966(0x3d9));this[_0x69d966(0x1a5)]=!0x0;}[_0x1a65c6(0x3cd)](_0x14b89a){const _0x1cbac1=_0x1a65c6;this[_0x1cbac1(0x232)](),this[_0x1cbac1(0x191)](this[_0x1cbac1(0x3f9)][_0x1cbac1(0x2ef)](_0x14b89a)),this[_0x1cbac1(0x220)]();}[_0x1a65c6(0x164)](_0x43e701){const _0x195551=_0x1a65c6;if(!(_0x43e701[_0x195551(0x1b5)]<=this[_0x195551(0x13e)][_0x195551(0x1be)](this['unitID']))){if(this['_collaborationPaused']){this[_0x195551(0x407)][_0x195551(0x1af)](_0x43e701);return;}this[_0x195551(0x46f)](_0x43e701);}}[_0x1a65c6(0x2b2)](){const _0x4709dd=_0x1a65c6;this['_remoteChangesetQueue'][_0x4709dd(0x404)](_0x2552f7=>this['_applyRemoteChangeset'](_0x2552f7)),this[_0x4709dd(0x407)]=[];}[_0x1a65c6(0x46f)](_0x3ee310){const _0x2175c4=_0x1a65c6;let _0x35b1cb=this['_compressMutationService'][_0x2175c4(0x40e)]['fetchThroughInterceptors'](this[_0x2175c4(0x46a)][_0x2175c4(0x40e)][_0x2175c4(0x2fe)]()['COMPRESS_MUTATION_APPLY'])(_0x3ee310[_0x2175c4(0x3fe)],null)||_0x3ee310[_0x2175c4(0x3fe)],_0x51feca={..._0x3ee310,'mutations':_0x35b1cb};this[_0x2175c4(0x232)](),this['_updateState'](this[_0x2175c4(0x3f9)][_0x2175c4(0x29e)](_0x51feca)),this[_0x2175c4(0x220)]();}[_0x1a65c6(0x20d)](_0x50598f){const _0x78f2b5=_0x1a65c6;this['_lockTransition'](),this[_0x78f2b5(0x191)](this[_0x78f2b5(0x3f9)][_0x78f2b5(0x354)](_0x50598f)),this['_unlockTransition']();}[_0x1a65c6(0x28d)](_0x172991){const _0x22a518=_0x1a65c6;this[_0x22a518(0x232)](),this[_0x22a518(0x191)](this[_0x22a518(0x3f9)][_0x22a518(0x1b8)](_0x172991)),this[_0x22a518(0x220)]();}[_0x1a65c6(0x3e2)](_0x1b59f8){const _0x1923a6=_0x1a65c6;this[_0x1923a6(0x232)](),this[_0x1923a6(0x191)](this['_state'][_0x1923a6(0x15b)](_0x1b59f8)),this[_0x1923a6(0x220)]();}[_0x1a65c6(0x1fe)](_0x11c7e8){const _0x50abd7=_0x1a65c6;if(!(this[_0x50abd7(0x3f9)]instanceof N))throw TypeError(_0x50abd7(0x2f8));let _0x38eb79=_0x11c7e8['map'](_0x28761e=>{const _0x16f0da=_0x50abd7;let _0x22245a=this[_0x16f0da(0x46a)][_0x16f0da(0x40e)][_0x16f0da(0x20a)](this[_0x16f0da(0x46a)][_0x16f0da(0x40e)][_0x16f0da(0x2fe)]()[_0x16f0da(0x459)])(_0x28761e['mutations'],null)||_0x28761e[_0x16f0da(0x3fe)];return{..._0x28761e,'mutations':_0x22245a};});this[_0x50abd7(0x232)](),this[_0x50abd7(0x191)](this[_0x50abd7(0x3f9)][_0x50abd7(0x3c7)](_0x38eb79)),this['_unlockTransition']();}[_0x1a65c6(0x156)](){const _0x19ebc5=_0x1a65c6;this[_0x19ebc5(0x232)](),this[_0x19ebc5(0x191)](this[_0x19ebc5(0x3f9)][_0x19ebc5(0x3c1)]()),this[_0x19ebc5(0x220)]();}[_0x1a65c6(0x43a)](_0x1fc99f=!0x1){const _0x367e65=_0x1a65c6;this[_0x367e65(0x232)](),this[_0x367e65(0x191)](this['_state'][_0x367e65(0x392)]()),this[_0x367e65(0x220)]();let _0x5d2789=this[_0x367e65(0x3f9)];_0x1fc99f&&_0x5d2789 instanceof D&&(this[_0x367e65(0x232)](),this[_0x367e65(0x191)](_0x5d2789[_0x367e65(0x1d8)]()),this[_0x367e65(0x220)]());}async[_0x1a65c6(0x17b)](){return new Promise(_0x4f0374=>{const _0x441830=_0x53a0;this[_0x441830(0x207)][_0x441830(0x349)][_0x441830(0x3d8)]((0x0,i[_0x441830(0x1bf)])(0x1))['subscribe'](async _0x1cb8d5=>{const _0x2797d3=_0x441830;_0x4f0374(await this[_0x2797d3(0x450)](_0x1cb8d5===0x3));});});}['_createHandler'](){let _0x292c70=this['unitID'];return{'onStateChange':(_0xd0292f,_0x4bef36)=>{const _0x383fea=_0x53a0;if(_0xd0292f!==this[_0x383fea(0x3f9)])throw Error(_0x383fea(0x399)+_0xd0292f[_0x383fea(0x333)]+_0x383fea(0x442)+_0x4bef36[_0x383fea(0x333)]+_0x383fea(0x271)+this['_state'][_0x383fea(0x333)]);this[_0x383fea(0x191)](_0x4bef36);},'onSendChangeset':_0x2afb25=>{const _0x48307e=_0x53a0;_0x2afb25[_0x48307e(0x467)]||(_0x2afb25[_0x48307e(0x467)]=this['_changesetSessionId'],_0x2afb25[_0x48307e(0x16c)]=++this[_0x48307e(0x30e)]);let _0x4be8b9={'eventID':e[_0x48307e(0x166)][_0x48307e(0x1a3)],'data':{'unitID':_0x2afb25['unitID'],'unitType':this[_0x48307e(0x210)],'changeset':_0x2afb25,'memberID':this['session'][_0x48307e(0x1a6)]()}};this['session'][_0x48307e(0x2e1)](_0x4be8b9,this[_0x48307e(0x293)]);},'onMissingChangesets':({from:_0x36115a,to:_0x2cc11d})=>{const _0x28b649=_0x53a0;this[_0x28b649(0x461)]['debug'](_0x28b649(0x370),_0x28b649(0x183)+_0x36115a+_0x28b649(0x24d)+_0x2cc11d);let _0x640b2c={'eventID':e['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x292c70,'unitType':this[_0x28b649(0x210)],'from':_0x36115a,'to':_0x2cc11d}};this[_0x28b649(0x207)][_0x28b649(0x2e1)](_0x640b2c,this[_0x28b649(0x293)]);}};}async[_0x1a65c6(0x450)](_0x448a3c){const _0x1542ee=_0x1a65c6;var _0xb47410;let _0x46f322=await((_0xb47410=this[_0x1542ee(0x185)])==null?void 0x0:_0xb47410[_0x1542ee(0x1b1)](this[_0x1542ee(0x293)])),_0x494cea=(_0x46f322==null?void 0x0:_0x46f322[_0x1542ee(0x3fe)])??[],_0x100291=(_0x46f322==null?void 0x0:_0x46f322['awaitingChangeset'])??null,_0xdda99e=!!(_0x100291!=null&&_0x100291[_0x1542ee(0x467)])&&!!(_0x100291!=null&&_0x100291['reqId']);this['_changesetSessionId']=_0xdda99e?_0x100291[_0x1542ee(0x467)]:(0x0,e[_0x1542ee(0x145)])(),this[_0x1542ee(0x30e)]=_0xdda99e?_0x100291[_0x1542ee(0x16c)]:0x0;let _0x1280fb=this[_0x1542ee(0x293)];try{this['_replayCachedMutations'](_0x100291,_0x494cea);}catch(_0x22fbf5){this[_0x1542ee(0x461)][_0x1542ee(0x1bb)](_0x22fbf5);}let _0x2ff0e6=this[_0x1542ee(0x3d2)]();if(_0x448a3c){let _0x12b849=Ue(this[_0x1542ee(0x241)],_0x1280fb,this['_type'],_0x100291,_0x494cea,_0x2ff0e6);return _0x12b849 instanceof O?_0x12b849[_0x1542ee(0x3e1)]():(_0x12b849 instanceof A||_0x12b849 instanceof k)&&_0x12b849[_0x1542ee(0x414)](),_0x12b849;}return this[_0x1542ee(0x241)][_0x1542ee(0x2ff)](M,_0x1280fb,this[_0x1542ee(0x210)],_0x100291,_0x494cea,_0x2ff0e6);}[_0x1a65c6(0x3d7)](_0x53f0b6,_0x251e99){const _0x559d0f=_0x1a65c6;var _0x9eaa01,_0x1f4e25;let _0x4de4c2=this['_compressMutationService'][_0x559d0f(0x40e)][_0x559d0f(0x20a)](this[_0x559d0f(0x46a)]['interceptor'][_0x559d0f(0x2fe)]()['COMPRESS_MUTATION_APPLY']);(_0x9eaa01=_0x4de4c2((_0x53f0b6==null?void 0x0:_0x53f0b6[_0x559d0f(0x3fe)])||[],null))==null||_0x9eaa01[_0x559d0f(0x404)](_0x499785=>this[_0x559d0f(0x41f)][_0x559d0f(0x172)](_0x499785['id'],_0x499785[_0x559d0f(0x3c9)])),(_0x1f4e25=_0x4de4c2(_0x251e99||[],null))==null||_0x1f4e25[_0x559d0f(0x404)](_0xf19826=>this[_0x559d0f(0x41f)][_0x559d0f(0x172)](_0xf19826['id'],_0xf19826[_0x559d0f(0x3c9)]));}};P=y([v(0x3,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x15c)])),v(0x4,(0x0,t[_0x1a65c6(0x3df)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x3d3)])),v(0x6,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x239)])),v(0x7,(0x0,t[_0x1a65c6(0x3df)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t['ILogService']),v(0xa,t['ICommandService']),v(0xb,t[_0x1a65c6(0x3a4)]),v(0xc,(0x0,t[_0x1a65c6(0x214)])(C)),v(0xd,(0x0,t[_0x1a65c6(0x214)])(x))],P);let F=class extends P{constructor(_0x47f65e,_0x1dfb75,_0x13ea35,_0x523a77,_0x4943e2,_0x414d5c,_0x428450,_0x4c5996,_0x833608,_0x568b00,_0x4211c5,_0x5e927c,_0x92b91,_0x9b9fce,_0x183015){const _0x38e7ca=_0x1a65c6;super(_0x47f65e,_0x13ea35,_0x1dfb75,_0x523a77,_0x4943e2,_0x414d5c,_0x428450,_0x4c5996,_0x833608,_0x568b00,_0x4211c5,_0x5e927c,_0x9b9fce,_0x183015),this[_0x38e7ca(0x293)]=_0x47f65e,this[_0x38e7ca(0x262)]=_0x1dfb75,this[_0x38e7ca(0x272)]=_0x92b91,g(this,'_handlerCallback',null);}[_0x1a65c6(0x3e8)](_0x2e16d1){const _0x5b0ab5=_0x1a65c6;this[_0x5b0ab5(0x438)]=_0x2e16d1;}['dispose'](){const _0x4762a8=_0x1a65c6;this[_0x4762a8(0x438)]=null,super['dispose']();}[_0x1a65c6(0x3d2)](){const _0x2d94de=_0x1a65c6;let _0x109d64=super[_0x2d94de(0x3d2)]();return _0x109d64[_0x2d94de(0x28e)]=_0x2589ad=>{const _0x25d7df=_0x2d94de;var _0x409299,_0x22b541;return(_0x409299=this[_0x25d7df(0x438)])==null||(_0x22b541=_0x409299[_0x25d7df(0x28e)])==null?void 0x0:_0x22b541[_0x25d7df(0x2c5)](_0x409299,_0x2589ad);},_0x109d64[_0x2d94de(0x259)]=_0x56077a=>{const _0x183431=_0x2d94de;var _0x48614f,_0x57386a;return(_0x48614f=this[_0x183431(0x438)])==null||(_0x57386a=_0x48614f[_0x183431(0x259)])==null?void 0x0:_0x57386a[_0x183431(0x2c5)](_0x48614f,_0x56077a);},_0x109d64[_0x2d94de(0x47a)]=_0x4d13ee=>{const _0x1dc5e5=_0x2d94de;var _0xf92899,_0x496555;return((_0xf92899=this['_handlerCallback'])==null||(_0x496555=_0xf92899[_0x1dc5e5(0x47a)])==null?void 0x0:_0x496555[_0x1dc5e5(0x2c5)](_0xf92899,_0x4d13ee))??null;},_0x109d64[_0x2d94de(0x175)]=_0x2b9d01=>{var _0x3bef34,_0x34e0c0;return(_0x3bef34=this['_handlerCallback'])==null||(_0x34e0c0=_0x3bef34['onTransformSelections'])==null?void 0x0:_0x34e0c0['call'](_0x3bef34,_0x2b9d01);},_0x109d64[_0x2d94de(0x20c)]=_0x5d0577=>{const _0x4e948b=_0x2d94de;var _0x3eb901,_0x2d467f;return(_0x3eb901=this['_handlerCallback'])==null||(_0x2d467f=_0x3eb901[_0x4e948b(0x20c)])==null?void 0x0:_0x2d467f[_0x4e948b(0x2c5)](_0x3eb901,_0x5d0577);},_0x109d64['onTransformRemoteChangesetByIMECache']=_0x4a970c=>{const _0x182837=_0x2d94de;var _0x3bfd15,_0x56d42e;return((_0x3bfd15=this[_0x182837(0x438)])==null||(_0x56d42e=_0x3bfd15['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x56d42e['call'](_0x3bfd15,_0x4a970c))??_0x4a970c;},_0x109d64[_0x2d94de(0x252)]=_0x328263=>{const _0x9237ba=_0x2d94de;var _0x5226af,_0x3dfa32;return((_0x5226af=this['_handlerCallback'])==null||(_0x3dfa32=_0x5226af[_0x9237ba(0x252)])==null?void 0x0:_0x3dfa32[_0x9237ba(0x2c5)](_0x5226af,_0x328263))??_0x328263;},_0x109d64;}async[_0x1a65c6(0x26f)](){const _0x3172ce=_0x1a65c6;let _0x11c15b=await super[_0x3172ce(0x26f)]();return this[_0x3172ce(0x3cf)](this[_0x3172ce(0x272)]['docStateChange$'][_0x3172ce(0x338)](_0x58f085=>{const _0x5bd130=_0x3172ce;if(_0x58f085==null||_0x58f085['unitId']!==this[_0x5bd130(0x293)])return;let {commandId:_0x2baeef,redoState:_0x356793,unitId:_0x4243a8}=_0x58f085,_0x256a90={'id':_0x2baeef,'type':t[_0x5bd130(0x270)]['MUTATION'],'params':{'unitId':_0x4243a8,'actions':_0x356793[_0x5bd130(0x1c2)],'textRanges':null}};this[_0x5bd130(0x3cd)](_0x256a90);})),this['disposeWithMe'](this[_0x3172ce(0x41f)][_0x3172ce(0x2d6)]((_0x3b2ec7,_0x10ead0)=>{const _0x2a9ab0=_0x3172ce;if(_0x3b2ec7[_0x2a9ab0(0x262)]!==t[_0x2a9ab0(0x270)][_0x2a9ab0(0x380)]||_0x10ead0!=null&&_0x10ead0[_0x2a9ab0(0x161)]||_0x10ead0!=null&&_0x10ead0[_0x2a9ab0(0x307)]||_0x3b2ec7['id']===n[_0x2a9ab0(0x436)]['id'])return;let _0x2cae9a=_0x3b2ec7[_0x2a9ab0(0x3c9)];if((_0x2cae9a==null?void 0x0:_0x2cae9a[_0x2a9ab0(0x2f3)])!==this['unitID'])return;let _0x3384ce=_0x3b2ec7,_0x2fbd2d=this[_0x2a9ab0(0x46a)]['interceptor'][_0x2a9ab0(0x20a)](this[_0x2a9ab0(0x46a)][_0x2a9ab0(0x40e)]['getInterceptPoints']()[_0x2a9ab0(0x2a4)])([_0x3384ce],this['_univerInstanceService'])||[_0x3384ce];this[_0x2a9ab0(0x3cd)](_0x2fbd2d[0x0]);})),_0x11c15b;}};F=y([v(0x3,(0x0,t['Inject'])(t[_0x1a65c6(0x15c)])),v(0x4,(0x0,t[_0x1a65c6(0x3df)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x3d3)])),v(0x6,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x239)])),v(0x7,(0x0,t[_0x1a65c6(0x3df)])(_)),v(0x8,t[_0x1a65c6(0x458)]),v(0x9,t['ILogService']),v(0xa,t['ICommandService']),v(0xb,t[_0x1a65c6(0x3a4)]),v(0xc,(0x0,t[_0x1a65c6(0x3df)])(n[_0x1a65c6(0x419)])),v(0xd,(0x0,t[_0x1a65c6(0x214)])(C)),v(0xe,(0x0,t[_0x1a65c6(0x214)])(x))],F);let I=class extends P{constructor(_0x2a10dc,_0x3a14d0,_0x1f731f,_0x2795f6,_0x280f17,_0x3a815b,_0x478629,_0x548c07,_0x148e6c,_0x35b7aa,_0x5266f5,_0x24be82,_0x9582d6,_0x47d08d){const _0x3653fe=_0x1a65c6;super(_0x2a10dc,_0x1f731f,_0x3a14d0,_0x2795f6,_0x280f17,_0x3a815b,_0x478629,_0x548c07,_0x148e6c,_0x35b7aa,_0x5266f5,_0x24be82,_0x9582d6,_0x47d08d),this['unitID']=_0x2a10dc,this[_0x3653fe(0x262)]=_0x3a14d0;}async['_init'](){const _0x4a940f=_0x1a65c6;let _0xadb7e6=await super[_0x4a940f(0x26f)]();return this[_0x4a940f(0x3cf)](this[_0x4a940f(0x41f)][_0x4a940f(0x2d6)]((_0x1ee60e,_0x28ba78)=>{const _0x2b2cd4=_0x4a940f;if(_0x1ee60e[_0x2b2cd4(0x262)]!==t[_0x2b2cd4(0x270)][_0x2b2cd4(0x380)]||_0x28ba78!=null&&_0x28ba78[_0x2b2cd4(0x161)]||_0x28ba78!=null&&_0x28ba78[_0x2b2cd4(0x307)])return;let _0x2e1374=_0x1ee60e[_0x2b2cd4(0x3c9)];if((_0x2e1374==null?void 0x0:_0x2e1374[_0x2b2cd4(0x2f3)])!==this['unitID'])return;let _0x2bf677=_0x1ee60e,_0x387c34=this[_0x2b2cd4(0x46a)][_0x2b2cd4(0x40e)]['fetchThroughInterceptors'](this[_0x2b2cd4(0x46a)][_0x2b2cd4(0x40e)][_0x2b2cd4(0x2fe)]()['COMPRESS_MUTATION_SEND'])([_0x2bf677],this[_0x2b2cd4(0x3fb)])||[_0x2bf677];this[_0x2b2cd4(0x3cd)](_0x387c34[0x0]);})),_0xadb7e6;}};I=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t['Inject'])(e[_0x1a65c6(0x344)])),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(t['LocaleService'])),v(0x6,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x239)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x1a65c6(0x458)]),v(0x9,t[_0x1a65c6(0x16b)]),v(0xa,t[_0x1a65c6(0x324)]),v(0xb,t[_0x1a65c6(0x3a4)]),v(0xc,(0x0,t[_0x1a65c6(0x214)])(C)),v(0xd,(0x0,t['Optional'])(x))],I);let L=class extends P{constructor(_0x3dc05e,_0x2a7e67,_0x29d0f1,_0x8774f0,_0x5ab03d,_0xc16b4e,_0x4176c5,_0xfce640,_0x28a152,_0x117589,_0xeba1ce,_0x1c5e86,_0x3376d3,_0x4029ac,_0x93688e){const _0x221d3e=_0x1a65c6;super(_0x3dc05e,_0x29d0f1,_0x2a7e67,_0x8774f0,_0x5ab03d,_0xc16b4e,_0x4176c5,_0x28a152,_0x117589,_0xeba1ce,_0x1c5e86,_0x3376d3,_0x4029ac,_0x93688e),this[_0x221d3e(0x293)]=_0x3dc05e,this[_0x221d3e(0x262)]=_0x2a7e67,this['_sheetTransformSelectionsService']=_0xfce640;}[_0x1a65c6(0x3d2)](){const _0x237af3=_0x1a65c6;let _0x23617d=super[_0x237af3(0x3d2)]();return _0x23617d[_0x237af3(0x175)]=_0x515584=>this[_0x237af3(0x39a)][_0x237af3(0x3f2)](_0x515584),_0x23617d;}async[_0x1a65c6(0x26f)](){const _0x30ffe8=_0x1a65c6;let _0x342395=await super[_0x30ffe8(0x26f)]();return this[_0x30ffe8(0x3cf)](this['_commandService'][_0x30ffe8(0x2d6)]((_0x5abfbf,_0x81899a)=>{const _0x3125a4=_0x30ffe8;if(_0x5abfbf[_0x3125a4(0x262)]!==t[_0x3125a4(0x270)][_0x3125a4(0x380)]||_0x81899a!=null&&_0x81899a[_0x3125a4(0x161)]||_0x81899a!=null&&_0x81899a[_0x3125a4(0x307)])return;let _0x2faeff=_0x5abfbf['params'];if((_0x2faeff==null?void 0x0:_0x2faeff[_0x3125a4(0x2f3)])!==this[_0x3125a4(0x293)])return;let _0x522cf7=_0x5abfbf,_0x4b4ff9=this[_0x3125a4(0x46a)]['interceptor'][_0x3125a4(0x20a)](this[_0x3125a4(0x46a)][_0x3125a4(0x40e)]['getInterceptPoints']()[_0x3125a4(0x2a4)])([_0x522cf7],this[_0x3125a4(0x3fb)])||[_0x522cf7];this['_onLocalMutation'](_0x4b4ff9[0x0]);})),_0x342395;}};L=y([v(0x3,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x15c)])),v(0x4,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x344)])),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x1a65c6(0x239)])),v(0x7,(0x0,t[_0x1a65c6(0x3df)])(S)),v(0x8,(0x0,t['Inject'])(_)),v(0x9,t[_0x1a65c6(0x458)]),v(0xa,t[_0x1a65c6(0x16b)]),v(0xb,t[_0x1a65c6(0x324)]),v(0xc,t[_0x1a65c6(0x3a4)]),v(0xd,(0x0,t[_0x1a65c6(0x214)])(C)),v(0xe,(0x0,t[_0x1a65c6(0x214)])(x))],L);let R=class extends P{constructor(_0xcacdf1,_0x191f71,_0x1dd043,_0xfbd7d2,_0x2af9f3,_0x4afac3,_0x547fdf,_0x1e451a,_0x3873af,_0x443b85,_0x498ddd,_0x4a68ac,_0x52c770,_0x51bfdb){const _0xc8d8f9=_0x1a65c6;super(_0xcacdf1,_0x1dd043,_0x191f71,_0xfbd7d2,_0x2af9f3,_0x4afac3,_0x547fdf,_0x1e451a,_0x3873af,_0x443b85,_0x498ddd,_0x4a68ac,_0x52c770,_0x51bfdb),this[_0xc8d8f9(0x293)]=_0xcacdf1,this[_0xc8d8f9(0x262)]=_0x191f71;}async[_0x1a65c6(0x26f)](){const _0x45f3ef=_0x1a65c6;let _0x1750b9=await super['_init']();return this[_0x45f3ef(0x3cf)](this[_0x45f3ef(0x41f)][_0x45f3ef(0x2d6)]((_0x23b1be,_0x18be22)=>{const _0x4f2083=_0x45f3ef;if(_0x23b1be[_0x4f2083(0x262)]!==t[_0x4f2083(0x270)][_0x4f2083(0x380)]||_0x18be22!=null&&_0x18be22[_0x4f2083(0x161)]||_0x18be22!=null&&_0x18be22[_0x4f2083(0x307)])return;let _0x3070f3=_0x23b1be[_0x4f2083(0x3c9)];if((_0x3070f3==null?void 0x0:_0x3070f3['unitId'])!==this[_0x4f2083(0x293)])return;let _0x2cc826=_0x23b1be,_0x3964cc=this[_0x4f2083(0x46a)][_0x4f2083(0x40e)][_0x4f2083(0x20a)](this[_0x4f2083(0x46a)]['interceptor']['getInterceptPoints']()[_0x4f2083(0x2a4)])([_0x2cc826],this['_univerInstanceService'])||[_0x2cc826];this['_onLocalMutation'](_0x3964cc[0x0]);})),_0x1750b9;}};R=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x344)])),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x3d3)])),v(0x6,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x239)])),v(0x7,(0x0,t[_0x1a65c6(0x3df)])(_)),v(0x8,t[_0x1a65c6(0x458)]),v(0x9,t[_0x1a65c6(0x16b)]),v(0xa,t['ICommandService']),v(0xb,t[_0x1a65c6(0x3a4)]),v(0xc,(0x0,t[_0x1a65c6(0x214)])(C)),v(0xd,(0x0,t['Optional'])(x))],R);let z=class extends P{constructor(_0x4685c7,_0x36fa57,_0x24b233,_0x4b0b4a,_0x59dc50,_0x12f01b,_0x308006,_0x143f28,_0x7fa684,_0x2ba1cf,_0x3f3b53,_0xddd27d,_0xf903e,_0xbc058f){const _0xd93da7=_0x1a65c6;super(_0x4685c7,_0x24b233,_0x36fa57,_0x4b0b4a,_0x59dc50,_0x12f01b,_0x308006,_0x143f28,_0x7fa684,_0x2ba1cf,_0x3f3b53,_0xddd27d,_0xf903e,_0xbc058f),this[_0xd93da7(0x293)]=_0x4685c7,this['type']=_0x36fa57;}async[_0x1a65c6(0x26f)](){const _0x5f0d10=_0x1a65c6;let _0x16dd1f=await super[_0x5f0d10(0x26f)]();return this[_0x5f0d10(0x3cf)](this['_commandService']['onMutationExecutedForCollab']((_0x46f28b,_0x5db9b5)=>{const _0x28b257=_0x5f0d10;if(_0x46f28b['type']!==t[_0x28b257(0x270)][_0x28b257(0x380)]||_0x5db9b5!=null&&_0x5db9b5[_0x28b257(0x161)]||_0x5db9b5!=null&&_0x5db9b5['onlyLocal'])return;let _0x4eb2a1=_0x46f28b[_0x28b257(0x3c9)];if((_0x4eb2a1==null?void 0x0:_0x4eb2a1['unitId'])!==this['unitID'])return;let _0x363e87=_0x46f28b,_0x3cd401=this[_0x28b257(0x46a)][_0x28b257(0x40e)]['fetchThroughInterceptors'](this[_0x28b257(0x46a)][_0x28b257(0x40e)][_0x28b257(0x2fe)]()[_0x28b257(0x2a4)])([_0x363e87],this[_0x28b257(0x3fb)])||[_0x363e87];this[_0x28b257(0x3cd)](_0x3cd401[0x0]);})),_0x16dd1f;}};z=y([v(0x3,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x15c)])),v(0x4,(0x0,t['Inject'])(e[_0x1a65c6(0x344)])),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(t['LocaleService'])),v(0x6,(0x0,t[_0x1a65c6(0x3df)])(e['RevisionService'])),v(0x7,(0x0,t[_0x1a65c6(0x3df)])(_)),v(0x8,t[_0x1a65c6(0x458)]),v(0x9,t[_0x1a65c6(0x16b)]),v(0xa,t[_0x1a65c6(0x324)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x1a65c6(0x214)])(C)),v(0xd,(0x0,t['Optional'])(x))],z);let B=class extends P{constructor(_0x56ed7e,_0x5b9a39,_0x33dfc1,_0x200fef,_0x3d8367,_0x3b0b29,_0x59f841,_0x3ab3c8,_0x594080,_0x5f0a9e,_0x31cece,_0x9a3a3e,_0x53a458,_0x34476f){const _0x1f5178=_0x1a65c6;super(_0x56ed7e,_0x33dfc1,_0x5b9a39,_0x200fef,_0x3d8367,_0x3b0b29,_0x59f841,_0x3ab3c8,_0x594080,_0x5f0a9e,_0x31cece,_0x9a3a3e,_0x53a458,_0x34476f),this[_0x1f5178(0x293)]=_0x56ed7e,this[_0x1f5178(0x262)]=_0x5b9a39;}async[_0x1a65c6(0x26f)](){const _0x535a9a=_0x1a65c6;let _0x3aed18=await super[_0x535a9a(0x26f)]();return this[_0x535a9a(0x3cf)](this['_commandService'][_0x535a9a(0x2d6)]((_0x23f7b4,_0x117238)=>{const _0x23862e=_0x535a9a;if(_0x23f7b4[_0x23862e(0x262)]!==t[_0x23862e(0x270)][_0x23862e(0x380)]||_0x117238!=null&&_0x117238['fromCollab']||_0x117238!=null&&_0x117238['onlyLocal'])return;let _0x56d276=_0x23f7b4[_0x23862e(0x3c9)];if((_0x56d276==null?void 0x0:_0x56d276['unitId'])!==this[_0x23862e(0x293)])return;let _0x117afe=_0x23f7b4,_0x129d6c=this[_0x23862e(0x46a)][_0x23862e(0x40e)][_0x23862e(0x20a)](this[_0x23862e(0x46a)]['interceptor']['getInterceptPoints']()[_0x23862e(0x2a4)])([_0x117afe],this[_0x23862e(0x3fb)])||[_0x117afe];this[_0x23862e(0x3cd)](_0x129d6c[0x0]);})),_0x3aed18;}};B=y([v(0x3,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x15c)])),v(0x4,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x344)])),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x3d3)])),v(0x6,(0x0,t[_0x1a65c6(0x3df)])(e[_0x1a65c6(0x239)])),v(0x7,(0x0,t[_0x1a65c6(0x3df)])(_)),v(0x8,t[_0x1a65c6(0x458)]),v(0x9,t[_0x1a65c6(0x16b)]),v(0xa,t[_0x1a65c6(0x324)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t['Optional'])(x))],B);const We=(0x0,t[_0x1a65c6(0x440)])(_0x1a65c6(0x17d));function Ge(_0x167af8){const _0x57a0b6=_0x1a65c6;let _0x5aea20=_0x167af8['data'],_0x1daf0b=JSON[_0x57a0b6(0x29b)](_0x5aea20);switch(_0x1daf0b['cmd']){case a[_0x57a0b6(0x46b)]['HEARTBEAT']:case a['CombCmd']['HELLO']:{let _0x3e6108=_0x1daf0b[_0x57a0b6(0x150)];return{..._0x1daf0b,'data':_0x3e6108,'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};}case a['CombCmd'][_0x57a0b6(0x29d)]:{let _0xd8e684=_0x1daf0b[_0x57a0b6(0x375)];return{..._0x1daf0b,'data':_0xd8e684,'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};}case a[_0x57a0b6(0x46b)][_0x57a0b6(0x33d)]:{let _0x12f7ed=_0x1daf0b['collaMsg'];switch(_0x12f7ed['eventID']){case e['CollaborationEvent'][_0x57a0b6(0x202)]:var _0x1f49a3;return{..._0x1daf0b,'data':{..._0x12f7ed,'data':(_0x1f49a3=_0x12f7ed[_0x57a0b6(0x280)])==null?void 0x0:_0x1f49a3['cs']},'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};case e[_0x57a0b6(0x166)][_0x57a0b6(0x36c)]:var _0x2aba12;return{..._0x1daf0b,'data':{..._0x12f7ed,'data':(_0x2aba12=_0x12f7ed[_0x57a0b6(0x32d)])==null?void 0x0:_0x2aba12['cs']},'cmd':_0x1daf0b['cmd']};case e[_0x57a0b6(0x166)][_0x57a0b6(0x42d)]:var _0x30dda8;return{..._0x1daf0b,'data':{..._0x12f7ed,'data':(_0x30dda8=_0x12f7ed[_0x57a0b6(0x406)])==null?void 0x0:_0x30dda8['cs']},'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};case e[_0x57a0b6(0x166)][_0x57a0b6(0x195)]:var _0x32b036;return{..._0x1daf0b,'data':{..._0x12f7ed,'data':(_0x32b036=_0x12f7ed[_0x57a0b6(0x39b)])==null?void 0x0:_0x32b036['cs']},'cmd':_0x1daf0b['cmd']};case e[_0x57a0b6(0x166)][_0x57a0b6(0x165)]:var _0x1fcce9;return{..._0x1daf0b,'data':{..._0x12f7ed,'data':(_0x1fcce9=_0x12f7ed[_0x57a0b6(0x3b6)])==null?void 0x0:_0x1fcce9['cs']},'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};case e['CollaborationEvent'][_0x57a0b6(0x25c)]:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed['updateCursorEvent']},'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};case e[_0x57a0b6(0x166)][_0x57a0b6(0x140)]:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed[_0x57a0b6(0x319)]},'cmd':_0x1daf0b['cmd']};case e[_0x57a0b6(0x166)][_0x57a0b6(0x43e)]:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed[_0x57a0b6(0x43d)]},'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};case e[_0x57a0b6(0x166)][_0x57a0b6(0x160)]:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed[_0x57a0b6(0x35a)]},'cmd':_0x1daf0b['cmd']};case e[_0x57a0b6(0x166)]['LIVESHARE_FETCH_OPERATIONS']:case e[_0x57a0b6(0x166)][_0x57a0b6(0x371)]:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed['liveShareOperation']},'cmd':_0x1daf0b['cmd']};case e[_0x57a0b6(0x166)][_0x57a0b6(0x388)]:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed['liveShareNewHost']},'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};case e['CollaborationEvent'][_0x57a0b6(0x2a0)]:return{..._0x1daf0b,'data':_0x12f7ed,'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};case e[_0x57a0b6(0x166)][_0x57a0b6(0x247)]:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed[_0x57a0b6(0x290)]},'cmd':_0x1daf0b['cmd']};case e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed[_0x57a0b6(0x283)]},'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};case e[_0x57a0b6(0x166)][_0x57a0b6(0x2b0)]:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed['shouldCloseConn']},'cmd':_0x1daf0b['cmd']};case e[_0x57a0b6(0x166)]['UNISCRIPT_RUN']:return{..._0x1daf0b,'data':{..._0x12f7ed,'data':_0x12f7ed[_0x57a0b6(0x447)]},'cmd':_0x1daf0b[_0x57a0b6(0x2c3)]};default:return _0x1daf0b;}}default:return _0x1daf0b;}}function Ke(_0x4b8f56){const _0x10b72f=_0x1a65c6;switch(_0x4b8f56[_0x10b72f(0x2c3)]){case a[_0x10b72f(0x46b)][_0x10b72f(0x385)]:case a['CombCmd'][_0x10b72f(0x1cc)]:return JSON['stringify']({'cmd':_0x4b8f56[_0x10b72f(0x2c3)],'routeKey':_0x4b8f56[_0x10b72f(0x2df)]});case a['CombCmd'][_0x10b72f(0x3cc)]:{let _0x4806f6;switch(_0x4b8f56['data']['eventID']){case e[_0x10b72f(0x166)][_0x10b72f(0x25c)]:_0x4806f6={'eventID':e[_0x10b72f(0x166)][_0x10b72f(0x25c)],'updateCursorEvent':_0x4b8f56['data'][_0x10b72f(0x229)]};break;case e[_0x10b72f(0x166)][_0x10b72f(0x43e)]:_0x4806f6={'eventID':e[_0x10b72f(0x166)][_0x10b72f(0x43e)],'leaveEvent':_0x4b8f56['data'][_0x10b72f(0x229)]};break;case e[_0x10b72f(0x166)][_0x10b72f(0x140)]:_0x4806f6={'eventID':e[_0x10b72f(0x166)]['USERS_ENTER'],'joinEvent':_0x4b8f56['data']['data']};break;case e[_0x10b72f(0x166)]['LIVESHARE_NEW_HOST']:_0x4806f6={'eventID':e['CollaborationEvent'][_0x10b72f(0x160)],'liveShareNewHost':_0x4b8f56[_0x10b72f(0x229)][_0x10b72f(0x229)]};break;case e[_0x10b72f(0x166)][_0x10b72f(0x371)]:_0x4806f6={'eventID':e['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x4b8f56[_0x10b72f(0x229)][_0x10b72f(0x229)]};break;case e[_0x10b72f(0x166)][_0x10b72f(0x388)]:_0x4806f6={'eventID':e[_0x10b72f(0x166)][_0x10b72f(0x388)],'liveShareTerminate':_0x4b8f56[_0x10b72f(0x229)][_0x10b72f(0x229)]};break;case e[_0x10b72f(0x166)][_0x10b72f(0x14d)]:_0x4806f6={'eventID':e[_0x10b72f(0x166)][_0x10b72f(0x14d)],'liveShareRequestHost':_0x4b8f56[_0x10b72f(0x229)][_0x10b72f(0x229)]};break;case e[_0x10b72f(0x166)][_0x10b72f(0x374)]:_0x4806f6={'eventID':e[_0x10b72f(0x166)][_0x10b72f(0x374)]};break;default:_0x4806f6={'eventID':_0x4b8f56[_0x10b72f(0x229)][_0x10b72f(0x2b7)]};}return JSON[_0x10b72f(0x3ec)]({'cmd':_0x4b8f56[_0x10b72f(0x2c3)],'routeKey':_0x4b8f56[_0x10b72f(0x2df)],'collaMsg':_0x4806f6});}case a[_0x10b72f(0x46b)][_0x10b72f(0x29d)]:return JSON[_0x10b72f(0x3ec)]({'cmd':_0x4b8f56[_0x10b72f(0x2c3)],'routeKey':_0x4b8f56[_0x10b72f(0x2df)],'joinReq':_0x4b8f56[_0x10b72f(0x229)]});case a[_0x10b72f(0x46b)][_0x10b72f(0x350)]:return JSON[_0x10b72f(0x3ec)]({'cmd':_0x4b8f56[_0x10b72f(0x2c3)],'routeKey':_0x4b8f56[_0x10b72f(0x2df)],'leaveReq':_0x4b8f56['data']});default:throw Error(_0x10b72f(0x316));}}const qe=(0x0,t['createIdentifier'])(_0x1a65c6(0x421));function Je(_0x7abd50,_0x2c1bc7,_0x4f89bd){const _0x4e8519=_0x1a65c6;return _0x7abd50+'/'+_0x2c1bc7+'/unit/'+_0x4f89bd+_0x4e8519(0x284);}let Ye=class extends t[_0x1a65c6(0x26a)]{constructor(_0x53490f,_0x17db20,_0x3dc027,_0x291df8,_0x25d576){const _0x137817=_0x1a65c6;super(),this[_0x137817(0x241)]=_0x53490f,this[_0x137817(0x177)]=_0x17db20,this[_0x137817(0x3a6)]=_0x3dc027,this[_0x137817(0x461)]=_0x291df8,this['_snapshotServerService']=_0x25d576;}[_0x1a65c6(0x22b)](_0x10665e){const _0x363d09=_0x1a65c6;let _0x17c738=this[_0x363d09(0x241)]['get'](l['ISocketService']);if(!_0x17c738)throw Error(_0x363d09(0x32c));let _0x4c69b2=_0x17c738[_0x363d09(0x318)](_0x10665e);if(!_0x4c69b2)throw Error(_0x363d09(0x141));let _0x248147=new t[(_0x363d09(0x16a))](),_0x12af22=new i[(_0x363d09(0x35d))]();_0x248147[_0x363d09(0x3a3)](_0x4c69b2['close$'][_0x363d09(0x338)](_0x2eff71=>_0x12af22[_0x363d09(0x163)](_0x2eff71))),_0x248147[_0x363d09(0x3a3)]((0x0,t[_0x363d09(0x3f4)])(()=>_0x12af22[_0x363d09(0x37f)]()));let _0x3d4f72=new i[(_0x363d09(0x35d))]();_0x248147[_0x363d09(0x3a3)](_0x4c69b2[_0x363d09(0x24a)]['subscribe'](_0x2faa98=>_0x3d4f72[_0x363d09(0x163)](_0x2faa98))),_0x248147[_0x363d09(0x3a3)]((0x0,t[_0x363d09(0x3f4)])(()=>_0x3d4f72[_0x363d09(0x37f)]()));let _0x91b1fc=new i[(_0x363d09(0x35d))]();_0x248147[_0x363d09(0x3a3)](_0x4c69b2[_0x363d09(0x366)]['subscribe'](_0x3ec92e=>{let _0x4c3e43=Ge(_0x3ec92e);_0x91b1fc['next'](_0x4c3e43);})),_0x248147[_0x363d09(0x3a3)]((0x0,t[_0x363d09(0x3f4)])(()=>_0x91b1fc[_0x363d09(0x37f)]()));let _0x178105,_0x4d211d=()=>{const _0xc63e3=_0x363d09;_0x3d4f72[_0xc63e3(0x163)](new Event(_0xc63e3(0x218))),_0x12af22[_0xc63e3(0x163)](new Event(_0xc63e3(0x218))),_0x178105[_0xc63e3(0x313)]();};return _0x178105={'memberID':'','close$':_0x12af22[_0x363d09(0x1c8)](),'error$':_0x3d4f72['asObservable'](),'open$':_0x4c69b2[_0x363d09(0x409)],'message$':_0x91b1fc['asObservable'](),'send':_0x2be375=>{const _0x366ed6=_0x363d09;if(_0x2be375[_0x366ed6(0x2c3)]===a[_0x366ed6(0x46b)]['INGEST']){if(_0x2be375[_0x366ed6(0x229)][_0x366ed6(0x2b7)]===e[_0x366ed6(0x166)][_0x366ed6(0x1a3)]){this[_0x366ed6(0x296)](_0x178105,_0x2be375[_0x366ed6(0x229)])[_0x366ed6(0x3e7)](_0x484cf7=>{const _0x54e9ea=_0x366ed6;this[_0x54e9ea(0x461)][_0x54e9ea(0x1bb)](_0x484cf7),_0x4d211d();});return;}if(_0x2be375[_0x366ed6(0x229)][_0x366ed6(0x2b7)]===e['CollaborationEvent'][_0x366ed6(0x190)]){let _0x3c8ed9=_0x2be375['data'];this[_0x366ed6(0x1ab)](_0x3c8ed9)[_0x366ed6(0x2ee)](_0x203178=>{const _0x29606e=_0x366ed6;_0x91b1fc[_0x29606e(0x163)]({'cmd':a['CombCmd'][_0x29606e(0x33d)],'code':a[_0x29606e(0x3a5)]['OK'],'routeKey':_0x3c8ed9[_0x29606e(0x229)]['unitID'],'routeType':'','data':{'eventID':e[_0x29606e(0x166)][_0x29606e(0x253)],'data':{'changesets':_0x203178}}});})['catch'](_0x14ac7f=>{const _0xff80d8=_0x366ed6;this['_logService'][_0xff80d8(0x1bb)](_0x14ac7f),_0x4d211d();});return;}}_0x4c69b2[_0x366ed6(0x2e1)](Ke(_0x2be375));},'close':()=>{const _0x1dad1f=_0x363d09;_0x4c69b2['close'](),_0x248147[_0x1dad1f(0x157)]();}},_0x178105;}async[_0x1a65c6(0x296)](_0x422fcb,_0x29fd2a){const _0x150793=_0x1a65c6;let {unitType:_0x1a9f96,unitID:_0x434095,changeset:_0x18b9ee}=_0x29fd2a[_0x150793(0x229)],_0x3bdcfd={'unitID':_0x434095,'memberID':_0x422fcb['memberID'],'type':_0x1a9f96,'changeset':(0x0,e[_0x150793(0x2fd)])(_0x18b9ee)},_0x289ec1=this[_0x150793(0x3a6)][_0x150793(0x216)](m),_0x4dbe10=Je((_0x289ec1==null?void 0x0:_0x289ec1['collabSubmitChangesetUrl'])??_0x150793(0x38c),_0x1a9f96,_0x434095);try{await this[_0x150793(0x177)]['post'](_0x4dbe10,{'body':_0x3bdcfd});}catch(_0x2283fa){throw this[_0x150793(0x461)]['error']('[CollaborationSession]','submit\x20changeset\x20error!'),_0x2283fa;}}async[_0x1a65c6(0x1ab)](_0x2e00ab){const _0x54a3dd=_0x1a65c6;let {unitID:_0x26ddc7,from:_0x33c676,to:_0x404cdf,unitType:_0x57ea8a}=_0x2e00ab['data'];return(await this['_snapshotServerService'][_0x54a3dd(0x254)]({'metadata':void 0x0},{'unitID':_0x26ddc7,'type':_0x57ea8a,'from':_0x33c676,'to':_0x404cdf}))['changesets'][_0x54a3dd(0x400)](_0x545b22=>((_0x545b22[_0x54a3dd(0x3fe)]===null||_0x545b22[_0x54a3dd(0x3fe)]===void 0x0)&&(_0x545b22[_0x54a3dd(0x3fe)]=[]),_0x545b22));}};Ye=y([v(0x0,(0x0,t[_0x1a65c6(0x3df)])(t['Injector'])),v(0x1,(0x0,t[_0x1a65c6(0x3df)])(l['HTTPService'])),v(0x2,t['IConfigService']),v(0x3,t[_0x1a65c6(0x16b)]),v(0x4,e[_0x1a65c6(0x1d5)])],Ye);const Xe=(0x0,t[_0x1a65c6(0x440)])('univer-pro.collaboration-client-adapter-service');function Ze(_0x1b45d0={}){const _0x45cc03=_0x1a65c6;return _0x1b45d0[_0x45cc03(0x1b4)]?{'resolveUnit':_0x1b45d0['resolveUnit']}:{'resolveUnit':_0x5a2558=>({'target':{'unitId':_0x5a2558[_0x45cc03(0x2f3)],'unitType':_0x5a2558[_0x45cc03(0x297)]}})};}function Qe(_0x33028f,_0x29010e,_0x2c7cbc){const _0x4fc4b7=_0x1a65c6;let _0x21baa1=_0x2c7cbc[_0x4fc4b7(0x40b)]['endpoint'];if(_0x21baa1!=null&&_0x21baa1[_0x4fc4b7(0x363)]()==='')throw Error(_0x4fc4b7(0x24c));if(!_0x2c7cbc[_0x4fc4b7(0x40b)][_0x4fc4b7(0x2f3)])throw Error(_0x4fc4b7(0x431));return{'localUnitId':_0x33028f,'unitType':_0x29010e,'target':{'endpoint':_0x21baa1,'unitId':_0x2c7cbc[_0x4fc4b7(0x40b)][_0x4fc4b7(0x2f3)],'unitType':_0x2c7cbc[_0x4fc4b7(0x40b)][_0x4fc4b7(0x297)]??_0x29010e},'changeset':_0x2c7cbc[_0x4fc4b7(0x453)]};}let V=class extends t[_0x1a65c6(0x26a)]{constructor(_0x4c21e3,_0x401f26,_0x2cb4c5,_0x1e819b,_0x50261a,_0xbe8ac,_0xac1623){const _0x1fe7f7=_0x1a65c6;super(),this[_0x1fe7f7(0x241)]=_0x4c21e3,this[_0x1fe7f7(0x461)]=_0x401f26,this[_0x1fe7f7(0x3a6)]=_0x2cb4c5,this['_socketService']=_0x1e819b,this['_collaborationUIEventService']=_0x50261a,this['_adapter']=_0xbe8ac,this[_0x1fe7f7(0x1aa)]=_0xac1623,g(this,_0x1fe7f7(0x387),new Map()),g(this,'_pendingSessions',new Map()),g(this,_0x1fe7f7(0x2c0),new Map()),g(this,_0x1fe7f7(0x330),new Map()),g(this,_0x1fe7f7(0x31a),this[_0x1fe7f7(0x31f)](void 0x0)[_0x1fe7f7(0x31a)][_0x1fe7f7(0x1c8)]()),g(this,'_status$',new i[(_0x1fe7f7(0x3c4))](0x0)),g(this,_0x1fe7f7(0x3eb),this[_0x1fe7f7(0x3c0)][_0x1fe7f7(0x1c8)]()),this['_listenToNetworkCondition']();}['_listenToNetworkCondition'](){const _0x207d16=_0x1a65c6;this[_0x207d16(0x1aa)]&&this[_0x207d16(0x3cf)](this[_0x207d16(0x1aa)][_0x207d16(0x242)][_0x207d16(0x338)](_0x559f83=>{const _0x3aaed4=_0x207d16;_0x559f83&&this[_0x3aaed4(0x402)](),_0x559f83||this[_0x3aaed4(0x330)][_0x3aaed4(0x404)](_0x4a4d69=>this[_0x3aaed4(0x21e)](_0x4a4d69));}));}[_0x1a65c6(0x157)](){const _0x1f7d04=_0x1a65c6;super['dispose'](),this[_0x1f7d04(0x330)][_0x1f7d04(0x404)](_0x196d2f=>{const _0x1bec71=_0x1f7d04;var _0x5a70f3,_0x33d9d4;(_0x5a70f3=_0x196d2f[_0x1bec71(0x43c)])==null||_0x5a70f3[_0x1bec71(0x245)](),_0x196d2f[_0x1bec71(0x43c)]=null,this[_0x1bec71(0x17e)](_0x196d2f),this['_clearTimeoutTimer'](_0x196d2f),this[_0x1bec71(0x2fc)](_0x196d2f),(_0x33d9d4=_0x196d2f['socket$']['getValue']())==null||_0x33d9d4[_0x1bec71(0x313)](),_0x196d2f['socket$'][_0x1bec71(0x37f)]();}),this[_0x1f7d04(0x330)][_0x1f7d04(0x1ce)](),this[_0x1f7d04(0x387)][_0x1f7d04(0x404)](_0x5ccaab=>_0x5ccaab[_0x1f7d04(0x157)]()),this[_0x1f7d04(0x387)][_0x1f7d04(0x1ce)](),this['_sessionChannels'][_0x1f7d04(0x1ce)](),this[_0x1f7d04(0x3c0)][_0x1f7d04(0x37f)]();}async[_0x1a65c6(0x28c)](_0x2571c9,_0x11305b){const _0x3d658d=_0x1a65c6;if(this[_0x3d658d(0x387)][_0x3d658d(0x1e4)](_0x2571c9))return this[_0x3d658d(0x387)][_0x3d658d(0x3ac)](_0x2571c9);let _0x779270=this['_pendingSessions'][_0x3d658d(0x3ac)](_0x2571c9);if(_0x779270)return _0x779270;let _0x467e26=this[_0x3d658d(0x24b)](_0x2571c9,_0x11305b);this['_pendingSessions'][_0x3d658d(0x40c)](_0x2571c9,_0x467e26);try{return await _0x467e26;}finally{this[_0x3d658d(0x1c9)]['delete'](_0x2571c9);}}async[_0x1a65c6(0x24b)](_0x3d969a,_0x3b624a){const _0x5cc923=_0x1a65c6;let _0x4f7c4d=await this[_0x5cc923(0x428)](_0x3d969a,_0x3b624a),_0x1f45ad=this[_0x5cc923(0x31f)](_0x4f7c4d['target'][_0x5cc923(0x2a6)]);this[_0x5cc923(0x469)](_0x1f45ad);let _0x1ed4e2=this[_0x5cc923(0x241)][_0x5cc923(0x2ff)](ve,_0x4f7c4d,_0x1f45ad[_0x5cc923(0x31a)][_0x5cc923(0x1c8)]());return this[_0x5cc923(0x387)]['set'](_0x3d969a,_0x1ed4e2),this[_0x5cc923(0x2c0)][_0x5cc923(0x40c)](_0x3d969a,_0x1f45ad[_0x5cc923(0x44f)]),_0x1ed4e2;}[_0x1a65c6(0x3f1)](_0x59d529){const _0x17ab05=_0x1a65c6;let _0xb50cc1=this['_sessions']['get'](_0x59d529),_0x5509b9=this[_0x17ab05(0x2c0)][_0x17ab05(0x3ac)](_0x59d529);if(_0xb50cc1&&(this[_0x17ab05(0x387)][_0x17ab05(0x381)](_0x59d529),this[_0x17ab05(0x2c0)][_0x17ab05(0x381)](_0x59d529),_0xb50cc1['close']()),_0x5509b9&&!this['_hasSessionsForEndpoint'](_0x5509b9)){var _0x35f887;let _0x8b3ffb=this[_0x17ab05(0x330)][_0x17ab05(0x3ac)](_0x5509b9);_0x8b3ffb==null||(_0x35f887=_0x8b3ffb[_0x17ab05(0x31a)][_0x17ab05(0x31b)]())==null||_0x35f887[_0x17ab05(0x313)]();}}['reconnect'](){const _0x3feeb3=_0x1a65c6;(this[_0x3feeb3(0x330)][_0x3feeb3(0x328)]?[...this[_0x3feeb3(0x330)][_0x3feeb3(0x27e)]()]:[this[_0x3feeb3(0x31f)](void 0x0)])['forEach'](_0x42e2d3=>{const _0x1de7bd=_0x3feeb3;_0x42e2d3[_0x1de7bd(0x2d8)]=0x0,this[_0x1de7bd(0x17e)](_0x42e2d3),this[_0x1de7bd(0x2db)](_0x42e2d3);});}[_0x1a65c6(0x17e)](_0x20ee21){_0x20ee21['retryConnectingTimer']!=null&&(clearTimeout(_0x20ee21['retryConnectingTimer']),_0x20ee21['retryConnectingTimer']=null);}async[_0x1a65c6(0x45e)](_0x77b7de){const _0x176648=_0x1a65c6;let _0x340bc6=this['_configService'][_0x176648(0x216)](m),_0x55f480=_0x77b7de[_0x176648(0x2a6)]??(_0x340bc6==null?void 0x0:_0x340bc6['collabWebSocketUrl'])??_0x176648(0x3d5),_0x1af640=await this[_0x176648(0x299)][_0x176648(0x318)](_0x55f480);return _0x77b7de[_0x176648(0x188)]=_0x1af640,_0x1af640;}async['_tryEnsureSocket'](_0x28dbbe){const _0x15a667=_0x1a65c6;try{let _0x1a5321=_0x28dbbe['socket$'][_0x15a667(0x31b)]()??_0x28dbbe[_0x15a667(0x188)]??await this[_0x15a667(0x45e)](_0x28dbbe);if(_0x1a5321){var _0x43db1f;let _0x465c09=_0x1a5321['send'];_0x1a5321[_0x15a667(0x2e1)]=_0x3e9423=>(_0x3e9423[_0x15a667(0x2c3)]!==a['CombCmd']['LEAVE']&&this['_rescheduleHeartbeat'](_0x28dbbe),_0x465c09[_0x15a667(0x474)](_0x1a5321,[_0x3e9423])),(_0x43db1f=_0x28dbbe[_0x15a667(0x43c)])==null||_0x43db1f['unsubscribe'](),_0x28dbbe[_0x15a667(0x43c)]=null,_0x28dbbe[_0x15a667(0x43c)]=_0x1a5321[_0x15a667(0x366)][_0x15a667(0x338)](_0x9cbc34=>this['_onMessage'](_0x28dbbe,_0x1a5321,_0x9cbc34)),_0x1a5321['error$'][_0x15a667(0x3d8)]((0x0,s[_0x15a667(0x1bf)])(0x1))['subscribe'](_0x2b80df=>this[_0x15a667(0x461)][_0x15a667(0x1bb)]('[CollaborationSessionService]:\x20socket\x20error',_0x2b80df)),_0x1a5321[_0x15a667(0x409)][_0x15a667(0x3d8)]((0x0,s[_0x15a667(0x1bf)])(0x1))[_0x15a667(0x338)](()=>{this['_onConnectionOpen'](_0x28dbbe,_0x1a5321);}),_0x1a5321[_0x15a667(0x1ac)][_0x15a667(0x3d8)]((0x0,s[_0x15a667(0x1bf)])(0x1))[_0x15a667(0x338)](_0x1c5d7a=>{const _0x39d263=_0x15a667;this[_0x39d263(0x461)][_0x39d263(0x378)](_0x39d263(0x1a2),'socket\x20close',_0x1c5d7a),this[_0x39d263(0x35e)](_0x28dbbe);});}}catch(_0x54cc20){this[_0x15a667(0x461)][_0x15a667(0x1bb)](_0x54cc20),this['_onConnectionFailed'](_0x28dbbe);}}[_0x1a65c6(0x38e)](_0x4972d0,_0x1a16ae){const _0x257c19=_0x1a65c6;this[_0x257c19(0x461)]['debug'](_0x257c19(0x1a2),_0x257c19(0x37c)),_0x1a16ae[_0x257c19(0x2e1)]({'cmd':a[_0x257c19(0x46b)]['HELLO']}),this[_0x257c19(0x269)](_0x4972d0);}[_0x1a65c6(0x21e)](_0x1ad8ca){const _0x4ff5a9=_0x1a65c6;_0x1ad8ca[_0x4ff5a9(0x2b6)]=!0x1,_0x1ad8ca[_0x4ff5a9(0x188)]=null,this[_0x4ff5a9(0x3c0)][_0x4ff5a9(0x163)](0x2),_0x1ad8ca[_0x4ff5a9(0x31a)][_0x4ff5a9(0x163)](null),this[_0x4ff5a9(0x189)](_0x1ad8ca),this[_0x4ff5a9(0x2fc)](_0x1ad8ca);}[_0x1a65c6(0x35e)](_0x92315b){const _0x2b4e05=_0x1a65c6;this[_0x2b4e05(0x21e)](_0x92315b),this[_0x2b4e05(0x312)](_0x92315b[_0x2b4e05(0x44f)])&&(_0x92315b[_0x2b4e05(0x2d8)]<(this[_0x2b4e05(0x3a6)][_0x2b4e05(0x216)](_0x2b4e05(0x1db))??0x3)?(this[_0x2b4e05(0x1ba)]['emitEvent']({'id':_0x2b4e05(0x360)}),this['_tryReconnect'](_0x92315b)):this[_0x2b4e05(0x1ba)][_0x2b4e05(0x1bc)]({'id':_0x2b4e05(0x367)}));}[_0x1a65c6(0x2db)](_0x57cad8){const _0x57c4df=_0x1a65c6;let _0x29a786=_0x57cad8[_0x57c4df(0x2d8)],_0x4aeb7b=this[_0x57c4df(0x3a6)][_0x57c4df(0x216)](m),_0x5efc98=_0x29a786===0x0?0x0:((_0x4aeb7b==null?void 0x0:_0x4aeb7b['retryConnectingInterval'])??0x4e20)*0x2**_0x29a786;_0x57cad8[_0x57c4df(0x194)]=setTimeout(()=>{const _0x4a092a=_0x57c4df;clearTimeout(_0x57cad8[_0x4a092a(0x194)]),_0x57cad8[_0x4a092a(0x194)]=null,this[_0x4a092a(0x469)](_0x57cad8);},_0x5efc98),_0x57cad8[_0x57c4df(0x2d8)]+=0x1;}async[_0x1a65c6(0x428)](_0x4ffa03,_0x1f4b6b){const _0x2405e0=_0x1a65c6;return Qe(_0x4ffa03,_0x1f4b6b,await this[_0x2405e0(0x2fa)][_0x2405e0(0x1b4)]({'unitId':_0x4ffa03,'unitType':_0x1f4b6b}));}['_onMessage'](_0x7195a,_0x2137fa,_0x9b0f7e){const _0x3b6e07=_0x1a65c6;let {cmd:_0x45341f}=_0x9b0f7e;_0x45341f===a[_0x3b6e07(0x46b)]['HELLO']&&!_0x7195a[_0x3b6e07(0x2b6)]&&(_0x2137fa[_0x3b6e07(0x1d7)]=_0x9b0f7e['data'][_0x3b6e07(0x1d7)],_0x7195a[_0x3b6e07(0x2d8)]=0x0,_0x7195a[_0x3b6e07(0x31a)][_0x3b6e07(0x163)](_0x2137fa),this['_status$']['next'](0x3),_0x7195a[_0x3b6e07(0x2b6)]=!0x0,_0x7195a[_0x3b6e07(0x188)]=null),_0x45341f===a[_0x3b6e07(0x46b)][_0x3b6e07(0x385)]&&this[_0x3b6e07(0x189)](_0x7195a),this[_0x3b6e07(0x269)](_0x7195a);}[_0x1a65c6(0x312)](_0x2cff0b){const _0x44ecdd=_0x1a65c6;return[...this[_0x44ecdd(0x2c0)]['values']()][_0x44ecdd(0x3b1)](_0x5e1fb8=>_0x5e1fb8===_0x2cff0b);}[_0x1a65c6(0x31f)](_0x39b544){const _0x166fd0=_0x1a65c6;let _0x3141d8=_0x39b544??'',_0x363f94=this[_0x166fd0(0x330)][_0x166fd0(0x3ac)](_0x3141d8);if(_0x363f94)return _0x363f94;let _0x1c7b9c={'endpointKey':_0x3141d8,'endpoint':_0x39b544,'socket$':new i[(_0x166fd0(0x3c4))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x166fd0(0x40c)](_0x3141d8,_0x1c7b9c),_0x1c7b9c;}[_0x1a65c6(0x269)](_0x1cd670){const _0x3aae37=_0x1a65c6;this[_0x3aae37(0x2fc)](_0x1cd670),_0x1cd670['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x1cd670),this[_0x3aae37(0x3a6)]['getConfig'](_0x3aae37(0x288))??0x7530);}[_0x1a65c6(0x389)](_0x3876e2){const _0x27991f=_0x1a65c6;_0x3876e2[_0x27991f(0x31a)][_0x27991f(0x31b)]()['send']({'cmd':a[_0x27991f(0x46b)][_0x27991f(0x385)]}),this[_0x27991f(0x1a7)](_0x3876e2);}['_waitForHeartbeatResponse'](_0x5bcf1c){const _0x2dcdcd=_0x1a65c6;_0x5bcf1c[_0x2dcdcd(0x315)]=setTimeout(()=>this['_onConnectionFailed'](_0x5bcf1c),this[_0x2dcdcd(0x3a6)][_0x2dcdcd(0x216)](_0x2dcdcd(0x2dd))??0x4e20);}[_0x1a65c6(0x2fc)](_0x5678ac){const _0x9ca9dd=_0x1a65c6;_0x5678ac[_0x9ca9dd(0x153)]!=null&&(clearTimeout(_0x5678ac['sendHeartbeatTimer']),_0x5678ac[_0x9ca9dd(0x153)]=null);}[_0x1a65c6(0x189)](_0x277e86){const _0x302aca=_0x1a65c6;_0x277e86[_0x302aca(0x315)]!=null&&(clearTimeout(_0x277e86[_0x302aca(0x315)]),_0x277e86[_0x302aca(0x315)]=null);}};V=y([v(0x0,(0x0,t[_0x1a65c6(0x3df)])(t['Injector'])),v(0x1,t[_0x1a65c6(0x16b)]),v(0x2,t[_0x1a65c6(0x34b)]),v(0x3,qe),v(0x4,(0x0,t[_0x1a65c6(0x3df)])(_)),v(0x5,Xe),v(0x6,(0x0,t['Optional'])(We))],V);let H=class extends t[_0x1a65c6(0x476)]{constructor(_0x5324dc,_0x2aac73,_0x5593ce,_0x3a37be){const _0x1f4e80=_0x1a65c6;var _0x86f6d1;super(),this['_injector']=_0x5324dc,this['_collabSessionService']=_0x2aac73,this[_0x1f4e80(0x3a6)]=_0x5593ce,this[_0x1f4e80(0x3fb)]=_0x3a37be,g(this,'_entities',new Map()),g(this,_0x1f4e80(0x287),new i['Subject']()),g(this,'entityInit$',this[_0x1f4e80(0x287)][_0x1f4e80(0x1c8)]()),((_0x86f6d1=this[_0x1f4e80(0x3a6)][_0x1f4e80(0x216)]('collaboration-client.config'))==null?void 0x0:_0x86f6d1[_0x1f4e80(0x2b5)])!==!0x1&&this[_0x1f4e80(0x26f)]();}[_0x1a65c6(0x157)](){const _0x4841c4=_0x1a65c6;super[_0x4841c4(0x157)](),this[_0x4841c4(0x2e6)][_0x4841c4(0x404)](_0x5b3cec=>_0x5b3cec['dispose']()),this[_0x4841c4(0x2e6)][_0x4841c4(0x1ce)]();}[_0x1a65c6(0x3fd)](_0x3507c){const _0x2920e0=_0x1a65c6;return this['_entities'][_0x2920e0(0x3ac)](_0x3507c)??null;}[_0x1a65c6(0x1c6)](_0x2f5589){const _0x5b819e=_0x1a65c6;let _0x5a8cea=this[_0x5b819e(0x3fd)](_0x2f5589);return _0x5a8cea?(0x0,i['of'])(_0x5a8cea):this[_0x5b819e(0x287)]['pipe']((0x0,s[_0x5b819e(0x305)])(_0x2e56ce=>_0x2e56ce[_0x5b819e(0x293)]===_0x2f5589));}['readyForCollab'](_0x98c764){const _0x3e7996=_0x1a65c6;return(0x0,i[_0x3e7996(0x1ca)])(this[_0x3e7996(0x1c6)](_0x98c764)[_0x3e7996(0x3d8)]((0x0,s[_0x3e7996(0x400)])(()=>void 0x0)));}[_0x1a65c6(0x26f)](){const _0x36e609=_0x1a65c6;this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x36e609(0x2e4)][_0x36e609(0x37a)])[_0x36e609(0x3d8)]((0x0,i['takeUntil'])(this[_0x36e609(0x260)]),(0x0,s['delay'])(0x10))[_0x36e609(0x338)](async _0x2ed23f=>{const _0x13d5f9=_0x36e609;let _0x538b27=_0x2ed23f[_0x13d5f9(0x21c)][_0x13d5f9(0x29c)](),_0x1c3c64=await this[_0x13d5f9(0x33c)](_0x538b27,t[_0x13d5f9(0x2e4)]['UNIVER_SHEET']);this[_0x13d5f9(0x2e6)][_0x13d5f9(0x40c)](_0x538b27,_0x1c3c64);}),this[_0x36e609(0x3fb)][_0x36e609(0x15d)](t['UniverInstanceType'][_0x36e609(0x292)])['pipe']((0x0,i[_0x36e609(0x37b)])(this[_0x36e609(0x260)]),(0x0,s[_0x36e609(0x277)])(0x10))['pipe']((0x0,s[_0x36e609(0x305)])(_0x104b76=>!_0x104b76[_0x36e609(0x21c)][_0x36e609(0x29c)]()[_0x36e609(0x279)]('__')))[_0x36e609(0x338)](async _0x4253e3=>{const _0x81ed64=_0x36e609;let _0x2a2abe=_0x4253e3[_0x81ed64(0x21c)][_0x81ed64(0x29c)](),_0x1def00=await this[_0x81ed64(0x33c)](_0x2a2abe,t[_0x81ed64(0x2e4)][_0x81ed64(0x292)]);this[_0x81ed64(0x2e6)][_0x81ed64(0x40c)](_0x2a2abe,_0x1def00);}),this[_0x36e609(0x3fb)][_0x36e609(0x15d)](t[_0x36e609(0x2e4)][_0x36e609(0x3ee)])[_0x36e609(0x3d8)]((0x0,i[_0x36e609(0x37b)])(this['dispose$']),(0x0,s[_0x36e609(0x277)])(0x10))[_0x36e609(0x338)](async _0x40f141=>{const _0x3a2db1=_0x36e609;let _0x3b7eea=_0x40f141['unit'][_0x3a2db1(0x29c)](),_0x1e1fd9=await this[_0x3a2db1(0x33c)](_0x3b7eea,t[_0x3a2db1(0x2e4)]['UNIVER_SLIDE']);this['_entities'][_0x3a2db1(0x40c)](_0x3b7eea,_0x1e1fd9);}),this[_0x36e609(0x3fb)]['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x36e609(0x3c6)])[_0x36e609(0x3d8)]((0x0,i[_0x36e609(0x37b)])(this['dispose$']),(0x0,s[_0x36e609(0x277)])(0x10))[_0x36e609(0x338)](async _0x488795=>{const _0x49e619=_0x36e609;let _0x118333=_0x488795['unit'][_0x49e619(0x29c)](),_0x764def=await this[_0x49e619(0x33c)](_0x118333,t[_0x49e619(0x2e4)][_0x49e619(0x3c6)]);this['_entities']['set'](_0x118333,_0x764def);}),this['_univerInstanceService'][_0x36e609(0x15d)](t[_0x36e609(0x2e4)][_0x36e609(0x168)])[_0x36e609(0x3d8)]((0x0,i[_0x36e609(0x37b)])(this[_0x36e609(0x260)]),(0x0,s[_0x36e609(0x277)])(0x10))[_0x36e609(0x338)](async _0x37a21c=>{const _0x3c52b0=_0x36e609;let _0x53bb5b=_0x37a21c[_0x3c52b0(0x21c)][_0x3c52b0(0x29c)](),_0x51a826=await this[_0x3c52b0(0x33c)](_0x53bb5b,t[_0x3c52b0(0x2e4)][_0x3c52b0(0x168)]);this[_0x3c52b0(0x2e6)][_0x3c52b0(0x40c)](_0x53bb5b,_0x51a826);}),this['_univerInstanceService'][_0x36e609(0x15d)](t[_0x36e609(0x2e4)][_0x36e609(0x1f2)])[_0x36e609(0x3d8)]((0x0,i[_0x36e609(0x37b)])(this[_0x36e609(0x260)]),(0x0,s[_0x36e609(0x277)])(0x10))[_0x36e609(0x338)](async _0x2ac66b=>{const _0x17660b=_0x36e609;let _0x2a9dfb=_0x2ac66b[_0x17660b(0x21c)][_0x17660b(0x29c)](),_0xc17fe3=await this[_0x17660b(0x33c)](_0x2a9dfb,t[_0x17660b(0x2e4)][_0x17660b(0x1f2)]);this[_0x17660b(0x2e6)]['set'](_0x2a9dfb,_0xc17fe3);}),(0x0,i['merge'])(this['_univerInstanceService'][_0x36e609(0x2d3)](t[_0x36e609(0x2e4)][_0x36e609(0x37a)]),this[_0x36e609(0x3fb)]['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x36e609(0x292)]),this['_univerInstanceService'][_0x36e609(0x2d3)](t[_0x36e609(0x2e4)][_0x36e609(0x3ee)]),this[_0x36e609(0x3fb)][_0x36e609(0x2d3)](t[_0x36e609(0x2e4)][_0x36e609(0x3c6)]),this[_0x36e609(0x3fb)][_0x36e609(0x2d3)](t['UniverInstanceType'][_0x36e609(0x168)]),this['_univerInstanceService'][_0x36e609(0x2d3)](t[_0x36e609(0x2e4)][_0x36e609(0x1f2)]))[_0x36e609(0x3d8)]((0x0,i[_0x36e609(0x37b)])(this[_0x36e609(0x260)]))[_0x36e609(0x338)](_0x29e2ae=>{const _0x227ca3=_0x36e609;let _0x37b660=_0x29e2ae[_0x227ca3(0x29c)](),_0x2bb4cc=this[_0x227ca3(0x2e6)]['get'](_0x37b660);_0x2bb4cc&&(_0x2bb4cc[_0x227ca3(0x157)](),this[_0x227ca3(0x2e6)][_0x227ca3(0x381)](_0x37b660));});}async[_0x1a65c6(0x33c)](_0x2655cf,_0x3674a7){const _0x32c9b0=_0x1a65c6;let _0x5e92ab=await this[_0x32c9b0(0x1b0)][_0x32c9b0(0x28c)](_0x2655cf),_0x1ac600=this['_injector']['createInstance'](this[_0x32c9b0(0x373)](_0x3674a7),_0x2655cf,_0x3674a7,_0x5e92ab);return await _0x1ac600[_0x32c9b0(0x418)](),this[_0x32c9b0(0x287)][_0x32c9b0(0x163)](_0x1ac600),_0x1ac600;}['_getCtorByUniverInstanceType'](_0x48175a){const _0x48e66a=_0x1a65c6;switch(_0x48175a){case t[_0x48e66a(0x2e4)]['UNIVER_DOC']:return F;case t[_0x48e66a(0x2e4)]['UNIVER_SHEET']:return L;case t[_0x48e66a(0x2e4)][_0x48e66a(0x3ee)]:return R;case t[_0x48e66a(0x2e4)][_0x48e66a(0x3c6)]:return z;case t[_0x48e66a(0x2e4)][_0x48e66a(0x168)]:return I;case t[_0x48e66a(0x2e4)][_0x48e66a(0x1f2)]:return B;default:throw Error(_0x48e66a(0x454)+_0x48175a);}}};H=y([v(0x0,(0x0,t[_0x1a65c6(0x3df)])(t['Injector'])),v(0x1,(0x0,t['Inject'])(V)),v(0x2,t[_0x1a65c6(0x34b)]),v(0x3,t['IUniverInstanceService'])],H);var $e=_0x1a65c6(0x464),et=_0x1a65c6(0x231);let tt=class extends t[_0x1a65c6(0x26a)]{constructor(_0x2d3e05,_0x19c181){const _0xc94b2c=_0x1a65c6;super(),this[_0xc94b2c(0x3fb)]=_0x2d3e05,this['_configService']=_0x19c181,this['_init']();}[_0x1a65c6(0x26f)](){const _0x5dbef2=_0x1a65c6;this[_0x5dbef2(0x3cf)](this[_0x5dbef2(0x3fb)][_0x5dbef2(0x18e)][_0x5dbef2(0x338)](()=>{const _0x4b1481=_0x5dbef2;let _0x298a5a=this[_0x4b1481(0x3fb)][_0x4b1481(0x31c)](),_0x8a8c7f=this[_0x4b1481(0x3a6)]['getConfig'](_0x4b1481(0x362))??_0x4b1481(0x249);_0x298a5a instanceof t['Workbook']&&(_0x8a8c7f=_0x298a5a[_0x4b1481(0x3fa)]),document[_0x4b1481(0x1f8)]=_0x8a8c7f;}));}};tt=y([v(0x0,t[_0x1a65c6(0x458)]),v(0x1,t['IConfigService'])],tt);const nt=(0x0,t[_0x1a65c6(0x440)])(_0x1a65c6(0x257));let U=class{constructor(_0x55a353,_0x1d68d6,_0x3f8f94){const _0x2ea06d=_0x1a65c6;this[_0x2ea06d(0x177)]=_0x55a353,this[_0x2ea06d(0x3a6)]=_0x1d68d6,this['_univerInstanceService']=_0x3f8f94;}[_0x1a65c6(0x379)](){const _0x35e6bf=_0x1a65c6;return this[_0x35e6bf(0x30a)]()[_0x35e6bf(0x422)]??{};}async[_0x1a65c6(0x3a7)](_0x4f04d6){const _0x2343cb=_0x1a65c6;let _0xd750fc=this[_0x2343cb(0x379)]();if(rt(_0x4f04d6,_0xd750fc),_0xd750fc[_0x2343cb(0x3e6)])return _0xd750fc[_0x2343cb(0x3e6)](_0x4f04d6);let _0x3e3c56=await this[_0x2343cb(0x42b)](_0x4f04d6);return{'id':_0x3e3c56,'name':_0x4f04d6['name'],'mimeType':_0x4f04d6[_0x2343cb(0x262)],'size':_0x4f04d6[_0x2343cb(0x328)],'sourceType':t['ImageSourceType']['UUID'],'source':_0x3e3c56};}async[_0x1a65c6(0x25e)](_0x4c23d0,_0x18df9c){const _0x3350d6=_0x1a65c6;if(_0x18df9c!==t['ImageSourceType'][_0x3350d6(0x39d)])return _0x4c23d0;let _0x53b350=(await this[_0x3350d6(0x177)][_0x3350d6(0x3ac)](this[_0x3350d6(0x420)]()[_0x3350d6(0x3da)](_0x3350d6(0x2a5),_0x4c23d0)))['body'];if(_0x53b350[_0x3350d6(0x1bb)]&&_0x53b350[_0x3350d6(0x1bb)][_0x3350d6(0x2e3)]!==a[_0x3350d6(0x21d)]['OK'])throw _0x53b350[_0x3350d6(0x1bb)];if(!_0x53b350[_0x3350d6(0x3ba)])throw Error(_0x3350d6(0x21f));return(0x0,t['resolveWithBasePath'])(_0x53b350[_0x3350d6(0x3ba)],this[_0x3350d6(0x1a4)]());}async['_upload'](_0x49306d){const _0x5c3ee9=_0x1a65c6;let _0x1585cd=this['_univerInstanceService'][_0x5c3ee9(0x31c)](),_0x2140f0=_0x1585cd==null?void 0x0:_0x1585cd['getUnitId']();if(!_0x2140f0)throw Error(_0x5c3ee9(0x1c0));let _0x450f5c=new FormData();_0x450f5c[_0x5c3ee9(0x169)](_0x5c3ee9(0x294),_0x49306d);let _0x3d9357=this[_0x5c3ee9(0x198)]()+'?size='+_0x49306d['size'][_0x5c3ee9(0x1ed)]()+_0x5c3ee9(0x1cb)+a[_0x5c3ee9(0x2f7)][_0x5c3ee9(0x1eb)]+_0x5c3ee9(0x17f)+encodeURIComponent(_0x2140f0),_0x5204cf=(await this[_0x5c3ee9(0x177)][_0x5c3ee9(0x424)](_0x3d9357,{'body':_0x450f5c}))['body'][_0x5c3ee9(0x44b)];if(typeof _0x5204cf!=_0x5c3ee9(0x223)||!_0x5204cf)throw Error(_0x5c3ee9(0x329));return _0x5204cf;}['_getUploadFileURL'](){const _0x2375b1=_0x1a65c6;return this[_0x2375b1(0x30a)]()[_0x2375b1(0x278)]??_0x2375b1(0x463);}[_0x1a65c6(0x420)](){const _0x3f1051=_0x1a65c6;return this[_0x3f1051(0x30a)]()[_0x3f1051(0x1f9)]??'/universer-api/file/{fileID}/sign-url';}[_0x1a65c6(0x1a4)](){const _0xba00b6=_0x1a65c6;let _0x31c725=this[_0xba00b6(0x30a)]();return _0x31c725[_0xba00b6(0x3e0)]?_0x31c725['downloadEndpointUrl']:typeof location<'u'?location[_0xba00b6(0x23c)]:_0x31c725[_0xba00b6(0x278)]??'';}[_0x1a65c6(0x30a)](){const _0x171897=_0x1a65c6;return this[_0x171897(0x3a6)][_0x171897(0x216)](_0x171897(0x26d))??{};}};U=y([v(0x0,(0x0,t[_0x1a65c6(0x3df)])(l[_0x1a65c6(0x22c)])),v(0x1,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x34b)])),v(0x2,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x458)]))],U);function rt(_0x443946,_0x585c3f){const _0x4e874e=_0x1a65c6;var _0x4aec58;if(_0x585c3f['maxSize']!=null&&_0x443946[_0x4e874e(0x328)]>_0x585c3f[_0x4e874e(0x1fc)])throw Error(_0x4e874e(0x263));if((_0x4aec58=_0x585c3f[_0x4e874e(0x24f)])!=null&&_0x4aec58[_0x4e874e(0x306)]&&!_0x585c3f[_0x4e874e(0x24f)]['some'](_0x40ccdc=>_0x443946[_0x4e874e(0x262)]===_0x40ccdc||_0x443946[_0x4e874e(0x3fa)][_0x4e874e(0x302)](_0x40ccdc)||_0x40ccdc['endsWith']('/*')&&_0x443946[_0x4e874e(0x262)]['startsWith'](_0x40ccdc['slice'](0x0,-0x1))))throw Error(_0x4e874e(0x265));}let W=class{constructor(_0x1133d2,_0x39ec7d,_0x5e77ac){const _0x2c79c5=_0x1a65c6;this[_0x2c79c5(0x3a6)]=_0x1133d2,this[_0x2c79c5(0x177)]=_0x39ec7d,this['localeService']=_0x5e77ac,this[_0x2c79c5(0x418)]();}[_0x1a65c6(0x418)](){const _0x2d9d50=_0x1a65c6;this[_0x2d9d50(0x177)][_0x2d9d50(0x2e9)]({'priority':0x1,'interceptor':(_0x187917,_0x54e73b)=>_0x54e73b(_0x187917)['pipe']((0x0,i[_0x2d9d50(0x353)])(async _0x552b14=>{const _0x50a0e6=_0x2d9d50;let _0x53d561=_0x552b14;if(_0x53d561[_0x50a0e6(0x333)]===0x191){if(typeof window>'u')throw Error(_0x50a0e6(0x13c));if(window[_0x50a0e6(0x346)](this['localeService']['t'](_0x50a0e6(0x2da)))){let _0x45aa5b=window[_0x50a0e6(0x251)](window[_0x50a0e6(0x2b8)][_0x50a0e6(0x1ea)]);window['location'][_0x50a0e6(0x1ea)]=this[_0x50a0e6(0x415)]()+_0x50a0e6(0x3cb)+_0x45aa5b;}}return _0x53d561;}))});}[_0x1a65c6(0x415)](){const _0x15f859=_0x1a65c6;let _0x19fa2e=this[_0x15f859(0x3a6)]['getConfig'](m);return(_0x19fa2e==null?void 0x0:_0x19fa2e['loginUrlKey'])??'/universer-api/oidc/authpage';}};W=y([v(0x0,t[_0x1a65c6(0x34b)]),v(0x1,(0x0,t[_0x1a65c6(0x3df)])(l[_0x1a65c6(0x22c)])),v(0x2,(0x0,t[_0x1a65c6(0x3df)])(t[_0x1a65c6(0x3d3)]))],W);let G=class extends t['Disposable']{constructor(_0xd3bdb7,_0xa6d9f){const _0x456e31=_0x1a65c6;super(),this[_0x456e31(0x1f4)]=_0xd3bdb7,this[_0x456e31(0x3a6)]=_0xa6d9f,g(this,'_cfgEnableObjInherit',!0x1),this[_0x456e31(0x159)]();}[_0x1a65c6(0x159)](){const _0x3fe34b=_0x1a65c6;let _0x578987=this;this[_0x3fe34b(0x3cf)](this[_0x3fe34b(0x1f4)][_0x3fe34b(0x2e9)]({'priority':0x3e7,'interceptor':(0x0,l[_0x3fe34b(0x3b5)])({'isMatch'(_0x26a832){const _0x33a8f4=_0x3fe34b;var _0x326d04;if(_0x26a832[_0x33a8f4(0x27b)]===_0x33a8f4(0x3e9)&&(_0x326d04=_0x26a832['requestParams'])!=null&&_0x326d04[_0x33a8f4(0x1b9)]){let {objectID:_0x3ec43e,objectType:_0x18bedd}=_0x26a832[_0x33a8f4(0x1e8)]['body']||{};if(!_0x3ec43e||_0x18bedd===void 0x0)return!0x1;let _0x3a69eb=_0x578987[_0x33a8f4(0x16d)]()+'/'+_0x18bedd+_0x33a8f4(0x227)+encodeURIComponent(_0x3ec43e)+_0x33a8f4(0x248);if(_0x26a832[_0x33a8f4(0x3ba)]===_0x3a69eb)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3c548a){const _0x115fcc=_0x3fe34b;var _0x5582d6;return(_0x5582d6=_0x3c548a[_0x115fcc(0x1e8)])==null?void 0x0:_0x5582d6[_0x115fcc(0x1b9)];},'mergeParamsToRequest'(_0x190fb0,_0x2cc6a9){const _0x8366bd=_0x3fe34b;let _0x590e1d=_0x578987[_0x8366bd(0x16d)]()+_0x8366bd(0x158),_0x434872=_0x190fb0[_0x8366bd(0x39c)]((_0xfa9212,_0xf0dbe0)=>{const _0x127339=_0x8366bd;let {unitID:_0xa7f46d,objectID:_0x547b02,objectType:_0x37bd00,actions:_0x3173bb}=_0xf0dbe0;return _0xfa9212[_0xa7f46d]||(_0xfa9212[_0xa7f46d]=Object['create'](null)),_0xfa9212[_0xa7f46d][_0x547b02]||(_0xfa9212[_0xa7f46d][_0x547b02]={'objectID':_0x547b02,'objectType':_0x37bd00,'actions':[]}),_0xfa9212[_0xa7f46d][_0x547b02][_0x127339(0x1c2)][_0x127339(0x1af)](..._0x3173bb),_0xfa9212;},Object['create'](null)),_0x44a95b=[];for(let _0x520401 in _0x434872)for(let _0x49cbc2 in _0x434872[_0x520401]){let {actions:_0x2eccf7,objectType:_0x353c06}=_0x434872[_0x520401][_0x49cbc2],_0x393033=[...new Set(_0x2eccf7)];_0x44a95b[_0x8366bd(0x1af)]({'unitID':_0x520401,'objectID':_0x49cbc2,'objectType':_0x353c06,'actions':_0x393033});}return new l[(_0x8366bd(0x45b))](_0x8366bd(0x3e9),_0x590e1d,{'headers':_0x2cc6a9[_0x8366bd(0x334)],'withCredentials':_0x2cc6a9['withCredentials'],'responseType':_0x2cc6a9['responseType'],'body':{'requests':_0x44a95b}});}},{'distributeResult'(_0x172f3e,_0x35e012){const _0xf2a172=_0x3fe34b;let {objectActions:_0x5eae13}=_0x172f3e;return _0x35e012[_0xf2a172(0x400)](_0x3b7473=>{const _0x5d2d9c=_0xf2a172;let {unitID:_0x2b2827,objectID:_0x4fd2e6,actions:_0xcb21b0}=_0x3b7473,_0x172c46=_0x5eae13[_0x5d2d9c(0x16e)](_0x1d1e1c=>_0x1d1e1c[_0x5d2d9c(0x293)]===_0x2b2827&&_0x1d1e1c[_0x5d2d9c(0x167)]===_0x4fd2e6);return{'config':_0x3b7473,'result':{'actions':_0xcb21b0[_0x5d2d9c(0x400)](_0x15307c=>_0x172c46==null?void 0x0:_0x172c46[_0x5d2d9c(0x1c2)][_0x5d2d9c(0x16e)](_0x3c14d5=>_0x3c14d5[_0x5d2d9c(0x2d0)]===_0x15307c))[_0x5d2d9c(0x305)](_0x569705=>!!_0x569705),'error':_0x172f3e[_0x5d2d9c(0x1bb)]}};});}})}));}[_0x1a65c6(0x16d)](){const _0x44a69e=_0x1a65c6;let _0x42ffa1=this[_0x44a69e(0x3a6)][_0x44a69e(0x216)](m);return(_0x42ffa1==null?void 0x0:_0x42ffa1[_0x44a69e(0x2b9)])??_0x44a69e(0x34d);}async[_0x1a65c6(0x23d)](_0x2e397a){const _0x4edf96=_0x1a65c6;let _0x2e83d3=this['_getAPIPrefixPath']()+'/'+_0x2e397a[_0x4edf96(0x46e)]+_0x4edf96(0x13f);return(await this['_HTTPService'][_0x4edf96(0x424)](_0x2e83d3,{'body':_0x2e397a}))[_0x4edf96(0x1b9)][_0x4edf96(0x167)]||'';}async[_0x1a65c6(0x466)](_0x18772b){const _0x35f1a4=_0x1a65c6;let _0x121e44=this[_0x35f1a4(0x16d)]()+_0x35f1a4(0x479);return(await this[_0x35f1a4(0x1f4)][_0x35f1a4(0x424)](_0x121e44,{'body':_0x18772b}))[_0x35f1a4(0x1b9)][_0x35f1a4(0x410)];}async[_0x1a65c6(0x240)](_0x129b98){const _0x23d16e=_0x1a65c6;var _0x15dbdb;let _0x1489b1=this[_0x23d16e(0x16d)]()+'/'+_0x129b98[_0x23d16e(0x46e)]+_0x23d16e(0x227)+encodeURIComponent(_0x129b98[_0x23d16e(0x167)]),_0xbee335=await this[_0x23d16e(0x1f4)][_0x23d16e(0x345)](_0x1489b1,{'body':_0x129b98});if((_0xbee335==null||(_0x15dbdb=_0xbee335[_0x23d16e(0x1b9)])==null||(_0x15dbdb=_0x15dbdb[_0x23d16e(0x1bb)])==null?void 0x0:_0x15dbdb[_0x23d16e(0x2e3)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x1a65c6(0x3af)](_0x536587){const _0x2a07da=_0x1a65c6;let _0x5d93b0=this[_0x2a07da(0x16d)]()+'/'+_0x536587['objectType']+_0x2a07da(0x227)+encodeURIComponent(_0x536587[_0x2a07da(0x167)])+'/allowed';return(await this['_HTTPService']['post'](_0x5d93b0,{'body':_0x536587}))['body'][_0x2a07da(0x1c2)];}async[_0x1a65c6(0x1c1)](_0x39d881){const _0x32eb7e=_0x1a65c6;let _0x2b96d4=this['_getAPIPrefixPath']()+_0x32eb7e(0x158);return(await this['_HTTPService']['post'](_0x2b96d4,{'body':{'requests':_0x39d881}}))[_0x32eb7e(0x1b9)][_0x32eb7e(0x199)];}async['listRoles'](_0x13cef3){const _0x2cb5d9=_0x1a65c6;let _0xda0cb9=this[_0x2cb5d9(0x16d)]()+'/'+_0x13cef3[_0x2cb5d9(0x46e)]+_0x2cb5d9(0x23e),_0x33638f=await this[_0x2cb5d9(0x1f4)]['post'](_0xda0cb9,{'body':_0x13cef3});return{'roles':_0x33638f[_0x2cb5d9(0x1b9)][_0x2cb5d9(0x34f)],'actions':_0x33638f[_0x2cb5d9(0x1b9)][_0x2cb5d9(0x1c2)]};}async[_0x1a65c6(0x18a)](_0x43e0b8){const _0x2a6487=_0x1a65c6;let _0x508a6a=this[_0x2a6487(0x16d)]()+_0x2a6487(0x403);await this[_0x2a6487(0x1f4)][_0x2a6487(0x381)](_0x508a6a,{'params':{'collaboratorID':_0x43e0b8['collaboratorID'],'objectID':_0x43e0b8[_0x2a6487(0x167)],'unitID':_0x43e0b8[_0x2a6487(0x293)]}});}async[_0x1a65c6(0x193)](_0x3d1156){const _0x19550d=_0x1a65c6;let _0x3d8f8c=this['_getAPIPrefixPath']()+_0x19550d(0x403);await this[_0x19550d(0x1f4)][_0x19550d(0x143)](_0x3d8f8c,{'body':_0x3d1156});}async[_0x1a65c6(0x412)](_0x148b4c){const _0x13cea7=_0x1a65c6;let _0x294bf6=this['_getAPIPrefixPath']()+_0x13cea7(0x403);await this[_0x13cea7(0x1f4)][_0x13cea7(0x424)](_0x294bf6,{'body':_0x148b4c});}async[_0x1a65c6(0x3ed)](_0x31ee34){const _0x15ae1d=_0x1a65c6;let _0x271211=this[_0x15ae1d(0x16d)]()+'/collaborator',_0x493e8f=await this[_0x15ae1d(0x1f4)]['get'](_0x271211,{'params':{'objectID':_0x31ee34[_0x15ae1d(0x167)],'unitID':_0x31ee34['unitID']}});return this['setCfgEnableObjInherit'](_0x493e8f['body'][_0x15ae1d(0x38a)]??!0x1),_0x493e8f[_0x15ae1d(0x1b9)][_0x15ae1d(0x41b)];}async[_0x1a65c6(0x473)](_0x2afada){const _0x4859e0=_0x1a65c6;let _0x2377cc=this[_0x4859e0(0x16d)]()+_0x4859e0(0x403);await this[_0x4859e0(0x1f4)]['put'](_0x2377cc,{'body':_0x2afada});}[_0x1a65c6(0x1dd)](_0x3753ce){const _0x4cb993=_0x1a65c6;this[_0x4cb993(0x1a1)]=_0x3753ce;}[_0x1a65c6(0x1f6)](){return this['_cfgEnableObjInherit'];}};G=y([v(0x0,(0x0,t[_0x1a65c6(0x3df)])(l[_0x1a65c6(0x22c)])),v(0x1,(0x0,t[_0x1a65c6(0x3df)])(t['IConfigService']))],G);function it(_0x14e279){const _0x49e357=_0x1a65c6;let _0x2de7b5=atob(_0x14e279),_0x1a5686=new Uint8Array(_0x2de7b5[_0x49e357(0x306)]);for(let _0x327788=0x0;_0x327788<_0x2de7b5['length'];_0x327788++)_0x1a5686[_0x327788]=_0x2de7b5[_0x49e357(0x337)](_0x327788);return _0x1a5686;}function at(_0x540fe6){const _0x273199=_0x1a65c6;let _0x516ced='';for(let _0x114e59=0x0;_0x114e59<_0x540fe6[_0x273199(0x306)];_0x114e59++)_0x516ced+=String['fromCharCode'](_0x540fe6[_0x114e59]);return btoa(_0x516ced);}function ot(_0x5035fd,_0x540652){const _0x2b60c3=_0x1a65c6;let _0x8507dd=it(_0x540652),_0x44c3d9=(0x0,f['randomBytes'])(0x10),_0x59d8c9=(0x0,d['cbc'])(_0x8507dd,_0x44c3d9)[_0x2b60c3(0x224)]((0x0,f[_0x2b60c3(0x382)])(_0x5035fd));return at((0x0,f[_0x2b60c3(0x1e1)])(_0x44c3d9,_0x59d8c9));}function st(){const _0x1bc885=_0x1a65c6;let _0x533d86=(0x0,u[_0x1bc885(0x19a)])()[_0x1bc885(0x3d1)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x533d86){let _0x40e7ed={'time':Math['floor'](Date[_0x1bc885(0x2de)]()/0x3e8),'domain':location[_0x1bc885(0x173)]};return ot(JSON[_0x1bc885(0x3ec)](_0x40e7ed),_0x533d86);}}let K=class{constructor(_0x4a00ea){const _0x33d76d=_0x1a65c6;this[_0x33d76d(0x177)]=_0x4a00ea,this[_0x33d76d(0x470)]();}[_0x1a65c6(0x470)](){const _0xf6e866=_0x1a65c6;this[_0xf6e866(0x177)][_0xf6e866(0x2e9)]({'interceptor':(_0xf976bc,_0x33646b)=>{const _0x1a40a3=_0xf6e866;let _0x4a47b2=st();return _0x4a47b2&&_0xf976bc[_0x1a40a3(0x334)]['set']('x-univer-host',_0x4a47b2),_0x33646b(_0xf976bc);}});}};K=y([v(0x0,(0x0,t['Inject'])(l[_0x1a65c6(0x22c)]))],K);let q=class extends t[_0x1a65c6(0x476)]{constructor(_0x7af352,_0x4a7ebe,_0x3f697e){const _0x205bed=_0x1a65c6;super(),this[_0x205bed(0x461)]=_0x7af352,this['_snapshotService']=_0x4a7ebe,this[_0x205bed(0x185)]=_0x3f697e,g(this,'_unitInfo$',new i[(_0x205bed(0x3c4))](null)),g(this,'_unitLoaded$',new i['Subject']()),g(this,_0x205bed(0x261),this[_0x205bed(0x3de)]['asObservable']()),g(this,'unitLoaded$',this[_0x205bed(0x3ae)][_0x205bed(0x1c8)]());}[_0x1a65c6(0x157)](){const _0x5c4ddc=_0x1a65c6;super[_0x5c4ddc(0x157)](),this[_0x5c4ddc(0x3ae)][_0x5c4ddc(0x37f)](),this[_0x5c4ddc(0x3de)][_0x5c4ddc(0x37f)]();}async['loadUnitOfRevision'](_0xcafb02,_0x109842,_0x1d537a,_0x35470a){const _0x1fc96a=_0x1a65c6;this['_unitInfo$'][_0x1fc96a(0x163)]({'unitId':_0xcafb02,'type':_0x109842,'subUnitId':_0x35470a});let _0x24431a=null;switch(_0x109842){case t['UniverInstanceType'][_0x1fc96a(0x37a)]:_0x24431a=await this['_snapshotService'][_0x1fc96a(0x1f3)](_0xcafb02,_0x1d537a,void 0x0,{'initialSubUnitId':_0x35470a});break;case t[_0x1fc96a(0x2e4)][_0x1fc96a(0x292)]:_0x24431a=await this['_snapshotService']['loadDoc'](_0xcafb02,_0x1d537a);break;case t[_0x1fc96a(0x2e4)][_0x1fc96a(0x3ee)]:_0x24431a=await this[_0x1fc96a(0x39e)]['loadSlide'](_0xcafb02,_0x1d537a);break;case t['UniverInstanceType'][_0x1fc96a(0x3c6)]:_0x24431a=await this['_snapshotService'][_0x1fc96a(0x2b4)](_0xcafb02,_0x1d537a);break;case t[_0x1fc96a(0x2e4)]['UNIVER_BASE']:_0x24431a=await this[_0x1fc96a(0x39e)]['loadBase'](_0xcafb02,_0x1d537a);break;case t[_0x1fc96a(0x2e4)][_0x1fc96a(0x1f2)]:_0x24431a=await this[_0x1fc96a(0x39e)][_0x1fc96a(0x31d)](_0xcafb02,_0x1d537a);break;default:this['_logService'][_0x1fc96a(0x1bb)](_0x1fc96a(0x196),_0x1fc96a(0x18f));}return _0x24431a&&this[_0x1fc96a(0x3ae)][_0x1fc96a(0x163)](_0x24431a),_0x24431a;}async[_0x1a65c6(0x31e)](_0x1ca2e6,_0x2c2184,_0x2fad33){const _0x535479=_0x1a65c6;var _0x3d86f6;this[_0x535479(0x3de)][_0x535479(0x163)]({'unitId':_0x1ca2e6,'type':_0x2c2184,'subUnitId':_0x2fad33});let _0x4d986b=0x0,_0x174370=await((_0x3d86f6=this[_0x535479(0x185)])==null?void 0x0:_0x3d86f6[_0x535479(0x1b1)](_0x1ca2e6));return _0x174370&&(_0x174370[_0x535479(0x2d9)]||_0x174370[_0x535479(0x3fe)][_0x535479(0x306)]!==0x0)&&(_0x4d986b=_0x174370[_0x535479(0x38d)]),_0x4d986b===0x0&&this[_0x535479(0x461)][_0x535479(0x378)](_0x535479(0x196),_0x535479(0x2bb)),this['loadUnitOfRevision'](_0x1ca2e6,_0x2c2184,_0x4d986b,_0x2fad33);}};q=y([v(0x0,t['ILogService']),v(0x1,(0x0,t[_0x1a65c6(0x3df)])(e['SnapshotService'])),v(0x2,(0x0,t[_0x1a65c6(0x214)])(x))],q);let J=class{constructor(_0x1c3d22,_0x1fcca0,_0x46170f){const _0x1fa745=_0x1a65c6;this[_0x1fa745(0x177)]=_0x1c3d22,this[_0x1fa745(0x3a6)]=_0x1fcca0,this['_univerInstanceService']=_0x46170f,g(this,_0x1fa745(0x3e3),0x0),g(this,'_change$',new i['Subject']()),g(this,'change$',this['_change$']),g(this,_0x1fa745(0x1a8),new Map());}[_0x1a65c6(0x369)](_0x55d2ea){const _0x13c590=_0x1a65c6;this['_waitCount']=_0x55d2ea,this[_0x13c590(0x250)]['next'](_0x55d2ea);}['getImageSourceCache'](_0x112fd5,_0x4b4fc4){const _0x39b1b4=_0x1a65c6;if(_0x4b4fc4===t[_0x39b1b4(0x36a)]['BASE64']){let _0x2425d5=new Image();return _0x2425d5[_0x39b1b4(0x3db)]=_0x112fd5,_0x2425d5;}return this[_0x39b1b4(0x1a8)]['get'](_0x112fd5);}[_0x1a65c6(0x22d)](_0x5740ea,_0x8caff,_0x251178){const _0x3a9eff=_0x1a65c6;_0x8caff!==t[_0x3a9eff(0x36a)]['BASE64']&&_0x251178!=null&&this[_0x3a9eff(0x1a8)]['set'](_0x5740ea,_0x251178);}async[_0x1a65c6(0x266)](_0x43a057){const _0x36b4e7=_0x1a65c6;try{let _0x481ebf=this[_0x36b4e7(0x1fa)](this[_0x36b4e7(0x420)](),''+_0x43a057),_0x5dbea8=(await this['_httpService'][_0x36b4e7(0x3ac)](_0x481ebf))[_0x36b4e7(0x1b9)];if(_0x5dbea8[_0x36b4e7(0x1bb)]&&_0x5dbea8[_0x36b4e7(0x1bb)][_0x36b4e7(0x2e3)]===a['ErrorCode']['OK']){let _0x2b8e18=(0x0,t['resolveWithBasePath'])(_0x5dbea8[_0x36b4e7(0x3ba)],this['_getDownloadEndpointURL']());return Promise[_0x36b4e7(0x268)](_0x2b8e18);}return Promise[_0x36b4e7(0x19d)](_0x5dbea8['error']);}catch(_0x1a4584){return Promise[_0x36b4e7(0x19d)](_0x1a4584);}}async[_0x1a65c6(0x208)](_0x4128ba){const _0x175f7b=_0x1a65c6;let _0x1a90b1='';if(!p['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x175f7b(0x478)](_0x4128ba[_0x175f7b(0x262)]))return this['_decreaseWaiting'](),Promise['reject'](Error(t[_0x175f7b(0x206)][_0x175f7b(0x286)]));if(_0x4128ba[_0x175f7b(0x328)]>(0x0,p['getDrawingImageAllowSize'])())return this[_0x175f7b(0x275)](),Promise['reject'](Error(t[_0x175f7b(0x206)][_0x175f7b(0x3b3)]));try{let _0x4e7c26=new FormData();_0x4e7c26['append'](_0x175f7b(0x294),_0x4128ba);let _0xa84891=this['_univerInstanceService'][_0x175f7b(0x31c)](),_0x2b65d9=_0xa84891==null?void 0x0:_0xa84891['getUnitId']();if(!_0x2b65d9)throw Error(_0x175f7b(0x425));let _0x580490=this[_0x175f7b(0x198)]()+'?size='+_0x4128ba['size']['toString']()+_0x175f7b(0x1cb)+a[_0x175f7b(0x2f7)]['UnitEmbedded']+'&assign='+encodeURIComponent(_0x2b65d9),_0x10aefb={'body':_0x4e7c26},_0xb03203=(await this['_httpService'][_0x175f7b(0x424)](_0x580490,_0x10aefb))[_0x175f7b(0x1b9)];if(typeof _0xb03203[_0x175f7b(0x44b)]!=_0x175f7b(0x223))return this['_decreaseWaiting'](),Promise[_0x175f7b(0x19d)](Error(t[_0x175f7b(0x206)][_0x175f7b(0x15f)]));_0x1a90b1=_0xb03203[_0x175f7b(0x44b)];}catch{return this[_0x175f7b(0x275)](),Promise[_0x175f7b(0x19d)](Error(t[_0x175f7b(0x206)][_0x175f7b(0x15f)]));}return new Promise((_0x2dd36e,_0x4069a7)=>{const _0x129145=_0x175f7b;let _0x28b5b7=new FileReader();_0x28b5b7['readAsDataURL'](_0x4128ba),_0x28b5b7[_0x129145(0x3ff)]=_0x4e9360=>{const _0x7f4754=_0x129145;var _0x8139a3;let _0x4231b1=(_0x8139a3=_0x4e9360['target'])==null?void 0x0:_0x8139a3['result'];if(_0x4231b1==null){this[_0x7f4754(0x275)](),_0x4069a7(Error(t['ImageUploadStatusType'][_0x7f4754(0x15f)]));return;}_0x2dd36e({'imageId':(0x0,t[_0x7f4754(0x3bd)])(0x6),'imageSourceType':t[_0x7f4754(0x36a)][_0x7f4754(0x39d)],'source':_0x1a90b1,'base64Cache':_0x4231b1,'status':t[_0x7f4754(0x206)]['SUCCUSS']}),this[_0x7f4754(0x275)]();};});}[_0x1a65c6(0x198)](){const _0x303022=_0x1a65c6;let _0x848037=this[_0x303022(0x3a6)][_0x303022(0x216)](m);return(_0x848037==null?void 0x0:_0x848037['uploadFileServerUrl'])??_0x303022(0x463);}[_0x1a65c6(0x420)](){const _0x7dacd3=_0x1a65c6;let _0x50f67c=this[_0x7dacd3(0x3a6)][_0x7dacd3(0x216)](m);return(_0x50f67c==null?void 0x0:_0x50f67c[_0x7dacd3(0x1f9)])??_0x7dacd3(0x33f);}[_0x1a65c6(0x1a4)](){const _0x2deb1b=_0x1a65c6;let _0x13c2d0=this[_0x2deb1b(0x3a6)]['getConfig'](m);return(_0x13c2d0==null?void 0x0:_0x13c2d0[_0x2deb1b(0x3e0)])??location['origin'];}[_0x1a65c6(0x1fa)](_0x3b62ad,_0x5f460f){const _0x26dd33=_0x1a65c6;return _0x3b62ad[_0x26dd33(0x3da)](_0x26dd33(0x2a5),_0x5f460f);}['_decreaseWaiting'](){const _0x1ee908=_0x1a65c6;--this['_waitCount'],this['_change$'][_0x1ee908(0x163)](this[_0x1ee908(0x3e3)]);}};function _0x53a0(_0x27b7ac,_0x236d9e){_0x27b7ac=_0x27b7ac-0x13b;const _0x4255b0=_0x4255();let _0x53a0ef=_0x4255b0[_0x27b7ac];return _0x53a0ef;}J=y([v(0x0,(0x0,t[_0x1a65c6(0x3df)])(l['HTTPService'])),v(0x1,t[_0x1a65c6(0x34b)]),v(0x2,(0x0,t['Inject'])(t[_0x1a65c6(0x458)]))],J);let Y=class{constructor(_0x42808a,_0x40a865){this['_configService']=_0x42808a,this['_HTTPService']=_0x40a865;}[_0x1a65c6(0x16d)](){const _0x25cb74=_0x1a65c6;let _0x1219b8=this[_0x25cb74(0x3a6)][_0x25cb74(0x216)](m);return(_0x1219b8==null?void 0x0:_0x1219b8[_0x25cb74(0x2b9)])??_0x25cb74(0x34d);}async[_0x1a65c6(0x466)](_0x1b8b2d){const _0x545f51=_0x1a65c6;let _0x1247df=this[_0x545f51(0x16d)]()+_0x545f51(0x403);return{'list':[{'title':_0x545f51(0x2ad),'mentions':(await this[_0x545f51(0x1f4)][_0x545f51(0x3ac)](_0x1247df,{'params':{'objectID':_0x1b8b2d['unitId'],'unitID':_0x1b8b2d['unitId']}}))[_0x545f51(0x1b9)]['collaborators'][_0x545f51(0x400)](_0x1266ce=>({'objectId':_0x1266ce['id'],'name':_0x1266ce['subject'][_0x545f51(0x3fa)],'metadata':{'icon':_0x1266ce[_0x545f51(0x301)][_0x545f51(0x1e0)]},'label':_0x1266ce[_0x545f51(0x301)][_0x545f51(0x3fa)],'objectType':t[_0x545f51(0x174)]['PERSON']})),'metadata':{},'type':t[_0x545f51(0x174)][_0x545f51(0x441)]}]};}};Y=y([v(0x0,(0x0,t['Inject'])(t[_0x1a65c6(0x34b)])),v(0x1,(0x0,t[_0x1a65c6(0x3df)])(l[_0x1a65c6(0x22c)]))],Y);let X=class extends t['RxDisposable']{constructor(_0x41a45b,_0x4ece17,_0x58a4d9,_0x5ae37f,_0x5f0d27,_0x476f32){const _0x3c77f5=_0x1a65c6;super(),this[_0x3c77f5(0x241)]=_0x41a45b,this[_0x3c77f5(0x3fb)]=_0x4ece17,this[_0x3c77f5(0x332)]=_0x58a4d9,this[_0x3c77f5(0x1e9)]=_0x5ae37f,this['_collaborationSessionService']=_0x5f0d27,this['_collaborationUIEventService']=_0x476f32,g(this,'_closedUnits',new Set()),this[_0x3c77f5(0x3cf)](()=>this['_closedUnits']['clear']()),this[_0x3c77f5(0x3cf)](ct(this['_univerInstanceService'])[_0x3c77f5(0x338)](({unitId:_0xdb74ec})=>this[_0x3c77f5(0x3f3)][_0x3c77f5(0x381)](_0xdb74ec))),this[_0x3c77f5(0x2a9)](),this[_0x3c77f5(0x35f)](),[t[_0x3c77f5(0x2e4)][_0x3c77f5(0x292)],t[_0x3c77f5(0x2e4)][_0x3c77f5(0x3ee)],t[_0x3c77f5(0x2e4)][_0x3c77f5(0x168)],t['UniverInstanceType'][_0x3c77f5(0x3c6)]]['forEach'](_0x532b45=>{const _0x12cc0a=_0x3c77f5;this['disposeWithMe'](this[_0x12cc0a(0x3fb)][_0x12cc0a(0x2d3)](_0x532b45)[_0x12cc0a(0x338)](_0x1ed55a=>{const _0x2f46fc=_0x12cc0a;this[_0x2f46fc(0x3f3)]['add'](_0x1ed55a[_0x2f46fc(0x29c)]()),this[_0x2f46fc(0x241)][_0x2f46fc(0x3ac)](t[_0x2f46fc(0x448)])[_0x2f46fc(0x27a)](_0x1ed55a[_0x2f46fc(0x29c)]());}));});}[_0x1a65c6(0x35f)](){const _0x4b9028=_0x1a65c6;let _0x50992a=async(_0x30c654,_0x330cd1)=>{const _0x4aabec=_0x53a0;let _0x1e0a18=await this[_0x4aabec(0x45c)][_0x4aabec(0x28c)](_0x30c654);this['_disposed']||this[_0x4aabec(0x3f3)]['has'](_0x30c654)||!this[_0x4aabec(0x3fb)][_0x4aabec(0x144)](_0x30c654)||_0x1e0a18[_0x4aabec(0x2d2)][_0x4aabec(0x3d8)]((0x0,s[_0x4aabec(0x305)])(_0xa2485f=>_0xa2485f[_0x4aabec(0x2b7)]===e[_0x4aabec(0x166)][_0x4aabec(0x2b0)]),(0x0,s['takeUntil'])((0x0,i['merge'])(this['dispose$'],this[_0x4aabec(0x3fb)][_0x4aabec(0x19b)]['pipe']((0x0,s[_0x4aabec(0x305)])(_0x143b1f=>_0x143b1f[_0x4aabec(0x29c)]()===_0x30c654)))))[_0x4aabec(0x338)](_0x446a6a=>{const _0x77e7e=_0x4aabec;let {reason:_0x4b8383}=_0x446a6a[_0x77e7e(0x229)];this[_0x77e7e(0x1ba)][_0x77e7e(0x1bc)]({'id':_0x77e7e(0x1e6),'data':_0x4b8383}),this[_0x77e7e(0x3f3)][_0x77e7e(0x3a3)](_0x30c654),this[_0x77e7e(0x241)][_0x77e7e(0x3ac)](t['ObjectPermissionService'])[_0x77e7e(0x27a)](_0x30c654);let _0x3362af=lt(_0x330cd1);_0x3362af!=null&&this[_0x77e7e(0x180)](_0x30c654,_0x3362af,a[_0x77e7e(0x477)][_0x77e7e(0x2a8)],!0x1),this[_0x77e7e(0x45c)][_0x77e7e(0x3f1)](_0x30c654);});};ct(this[_0x4b9028(0x3fb)])[_0x4b9028(0x3d8)]((0x0,s['filter'])(({unitId:_0x1513a8})=>!(0x0,t[_0x4b9028(0x309)])(_0x1513a8)),(0x0,s[_0x4b9028(0x37b)])(this[_0x4b9028(0x260)]))[_0x4b9028(0x338)](({type:_0x1d738f,unitId:_0x421aff})=>{const _0x5b28fd=_0x4b9028;_0x50992a(_0x421aff,_0x1d738f)[_0x5b28fd(0x3e7)](_0x4333f1=>this[_0x5b28fd(0x241)]['get'](t['ILogService'])[_0x5b28fd(0x1bb)](_0x4333f1));});}['_initUnitPermissionChange'](){const _0x16d9a8=_0x1a65c6;let _0x34e796=async(_0x21daaa,_0x3cbebf)=>{const _0x20a7ed=_0x53a0;let _0x5331d8=await this[_0x20a7ed(0x45c)]['requireSession'](_0x21daaa);if(!(this[_0x20a7ed(0x34e)]||this[_0x20a7ed(0x3f3)]['has'](_0x21daaa)||!this['_univerInstanceService'][_0x20a7ed(0x144)](_0x21daaa))){if(_0x3cbebf===t[_0x20a7ed(0x2e4)][_0x20a7ed(0x37a)]){let _0x225ea9=this['_injector'][_0x20a7ed(0x3ac)](r[_0x20a7ed(0x377)]);await _0x225ea9[_0x20a7ed(0x42a)](_0x21daaa),_0x5331d8[_0x20a7ed(0x2d2)][_0x20a7ed(0x3d8)]((0x0,s[_0x20a7ed(0x305)])(_0x1c2091=>_0x1c2091[_0x20a7ed(0x2b7)]===e[_0x20a7ed(0x166)][_0x20a7ed(0x212)]),(0x0,s[_0x20a7ed(0x37b)])((0x0,i[_0x20a7ed(0x3c8)])(this[_0x20a7ed(0x260)],_0x5331d8[_0x20a7ed(0x2d2)][_0x20a7ed(0x3d8)]((0x0,s[_0x20a7ed(0x305)])(_0x245efb=>_0x245efb['eventID']===e['CollaborationEvent']['SHOULD_CLOSE_CONN'])),this['_univerInstanceService'][_0x20a7ed(0x19b)][_0x20a7ed(0x3d8)]((0x0,s['filter'])(_0x4db936=>_0x4db936[_0x20a7ed(0x29c)]()===_0x21daaa)))))['subscribe'](_0x1222a1=>{const _0x210a1f=_0x20a7ed;let {objectId:_0x5d8b12}=_0x1222a1['data'];_0x5d8b12===_0x21daaa?_0x225ea9[_0x210a1f(0x42a)](_0x21daaa):_0x225ea9[_0x210a1f(0x342)](_0x21daaa,_0x5d8b12);});return;}_0x5331d8[_0x20a7ed(0x2d2)][_0x20a7ed(0x3d8)]((0x0,s[_0x20a7ed(0x305)])(_0x5f2a2e=>_0x5f2a2e[_0x20a7ed(0x2b7)]===e[_0x20a7ed(0x166)][_0x20a7ed(0x212)]),(0x0,s[_0x20a7ed(0x37b)])((0x0,i[_0x20a7ed(0x3c8)])(this[_0x20a7ed(0x260)],_0x5331d8[_0x20a7ed(0x2d2)][_0x20a7ed(0x3d8)]((0x0,s['filter'])(_0x182254=>_0x182254[_0x20a7ed(0x2b7)]===e[_0x20a7ed(0x166)][_0x20a7ed(0x2b0)])),this[_0x20a7ed(0x3fb)][_0x20a7ed(0x19b)][_0x20a7ed(0x3d8)]((0x0,s[_0x20a7ed(0x305)])(_0x37b32d=>_0x37b32d[_0x20a7ed(0x29c)]()===_0x21daaa)))))[_0x20a7ed(0x338)](()=>{const _0x3f99a6=_0x20a7ed;this[_0x3f99a6(0x1df)](_0x21daaa,_0x3cbebf)[_0x3f99a6(0x3e7)](_0x370095=>this[_0x3f99a6(0x241)]['get'](t[_0x3f99a6(0x16b)])['error'](_0x370095));}),await this['_refreshUnitPermission'](_0x21daaa,_0x3cbebf);}};ct(this['_univerInstanceService'])[_0x16d9a8(0x3d8)]((0x0,s[_0x16d9a8(0x305)])(({unitId:_0xb8d048})=>!(0x0,t[_0x16d9a8(0x309)])(_0xb8d048)),(0x0,s[_0x16d9a8(0x37b)])(this[_0x16d9a8(0x260)]))[_0x16d9a8(0x338)](({type:_0x5b41a3,unitId:_0x37acf5})=>{const _0xe7d42d=_0x16d9a8;_0x34e796(_0x37acf5,_0x5b41a3)[_0xe7d42d(0x3e7)](_0x3033ac=>this[_0xe7d42d(0x241)][_0xe7d42d(0x3ac)](t[_0xe7d42d(0x16b)])[_0xe7d42d(0x1bb)](_0x3033ac));});}async[_0x1a65c6(0x1df)](_0xbd154b,_0x3649fa){const _0x25906d=_0x1a65c6;let _0x40ab59=lt(_0x3649fa);if(_0x40ab59==null)return;let _0x809e51=this[_0x25906d(0x241)]['get'](t['ObjectPermissionService']);if(_0x809e51[_0x25906d(0x19e)]({'unitId':_0xbd154b,'objectId':_0xbd154b,'objectType':_0x40ab59})){await _0x809e51[_0x25906d(0x215)](_0xbd154b);return;}let _0x4b31f2=this[_0x25906d(0x2c7)](_0xbd154b,_0x40ab59);if(!_0x4b31f2['length'])return;let _0x14db39=await this[_0x25906d(0x1e9)][_0x25906d(0x3af)]({'objectID':_0xbd154b,'objectType':_0x40ab59,'unitID':_0xbd154b,'actions':_0x4b31f2[_0x25906d(0x400)](({action:_0x37129c})=>_0x37129c)});this[_0x25906d(0x34e)]||this[_0x25906d(0x3f3)]['has'](_0xbd154b)||!this[_0x25906d(0x3fb)][_0x25906d(0x144)](_0xbd154b)||_0x14db39[_0x25906d(0x404)](_0x501722=>{const _0x9f5094=_0x25906d;let _0x503cfc=_0x501722[_0x9f5094(0x2d0)],_0x1e9504=_0x501722[_0x9f5094(0x3af)];_0x503cfc!=null&&_0x1e9504!=null&&_0x4b31f2['filter'](_0x4a91fe=>_0x4a91fe[_0x9f5094(0x2d0)]===_0x503cfc)['forEach'](_0x343d50=>this[_0x9f5094(0x332)][_0x9f5094(0x356)](_0x343d50['id'],_0x1e9504));});}[_0x1a65c6(0x2c7)](_0x3cd78b,_0x300528){const _0xa16b8=_0x1a65c6;let _0x3acefc=[];return this[_0xa16b8(0x332)][_0xa16b8(0x384)]()['forEach']((_0x431b3d,_0x6e886d)=>{_0x431b3d['subscribe'](_0x141a33=>{const _0x33976b=_0x53a0;_0x141a33[_0x33976b(0x262)]===_0x300528&&_0x33976b(0x2f3)in _0x141a33&&_0x141a33[_0x33976b(0x2f3)]===_0x3cd78b&&(!(_0x33976b(0x2ed)in _0x141a33)||_0x141a33[_0x33976b(0x2ed)]===_0x3cd78b)&&_0x3acefc[_0x33976b(0x1af)]({'id':_0x6e886d,'action':_0x141a33[_0x33976b(0x192)]});})['unsubscribe']();}),_0x3acefc;}[_0x1a65c6(0x180)](_0x2005de,_0x41a2d8,_0x213fff,_0xdba3ca){const _0x4c6156=_0x1a65c6;this[_0x4c6156(0x332)][_0x4c6156(0x384)]()['forEach']((_0x3cd724,_0x5cc410)=>{const _0x15dcf4=_0x4c6156;let _0x359444=!0x1;_0x3cd724[_0x15dcf4(0x338)](_0x2de6b7=>{const _0xdd1641=_0x15dcf4;_0x359444=_0x2de6b7[_0xdd1641(0x262)]===_0x41a2d8&&_0x2de6b7[_0xdd1641(0x192)]===_0x213fff&&'unitId'in _0x2de6b7&&_0x2de6b7[_0xdd1641(0x2f3)]===_0x2005de&&(!('objectId'in _0x2de6b7)||_0x2de6b7[_0xdd1641(0x2ed)]===_0x2005de);})['unsubscribe'](),_0x359444&&this[_0x15dcf4(0x332)]['updatePermissionPoint'](_0x5cc410,_0xdba3ca);});}};X=y([v(0x0,(0x0,t['Inject'])(t[_0x1a65c6(0x15c)])),v(0x1,t[_0x1a65c6(0x458)]),v(0x2,t[_0x1a65c6(0x3a4)]),v(0x3,t['IAuthzIoService']),v(0x4,(0x0,t[_0x1a65c6(0x3df)])(V)),v(0x5,(0x0,t[_0x1a65c6(0x3df)])(_))],X);function ct(_0x5b651a){const _0x11e755=_0x1a65c6;return(0x0,i['merge'])(...[t['UniverInstanceType'][_0x11e755(0x37a)],t[_0x11e755(0x2e4)][_0x11e755(0x292)],t['UniverInstanceType'][_0x11e755(0x3ee)],t[_0x11e755(0x2e4)][_0x11e755(0x3c6)],t[_0x11e755(0x2e4)][_0x11e755(0x168)]][_0x11e755(0x400)](_0x3ac8f0=>_0x5b651a[_0x11e755(0x15d)](_0x3ac8f0)['pipe']((0x0,s['map'])(_0x333ac8=>({'type':_0x3ac8f0,'unitId':_0x333ac8[_0x11e755(0x21c)][_0x11e755(0x29c)]()})))));}function lt(_0x36c742){const _0x1ed2bd=_0x1a65c6;switch(_0x36c742){case t['UniverInstanceType']['UNIVER_SHEET']:return a[_0x1ed2bd(0x3bc)][_0x1ed2bd(0x416)];case t[_0x1ed2bd(0x2e4)][_0x1ed2bd(0x292)]:return a[_0x1ed2bd(0x3bc)][_0x1ed2bd(0x285)];case t['UniverInstanceType'][_0x1ed2bd(0x3ee)]:return a[_0x1ed2bd(0x3bc)][_0x1ed2bd(0x351)];case t[_0x1ed2bd(0x2e4)][_0x1ed2bd(0x3c6)]:return a[_0x1ed2bd(0x3bc)][_0x1ed2bd(0x2c4)];case t[_0x1ed2bd(0x2e4)][_0x1ed2bd(0x168)]:return a[_0x1ed2bd(0x3bc)][_0x1ed2bd(0x25d)];default:return;}}let Z=class{constructor(_0x12a52c,_0x1eb287){const _0x32d9fe=_0x1a65c6;this[_0x32d9fe(0x3a6)]=_0x12a52c,this[_0x32d9fe(0x177)]=_0x1eb287;}async[_0x1a65c6(0x435)](_0x18ebc9,_0x127561){const _0x55477b=_0x1a65c6;var _0x10ef0d;let {unitID:_0x3e13e7,type:_0x4c1f2f,revision:_0x50214d=0x0}=_0x127561,_0x85e6e7=this[_0x55477b(0x1cd)]()+'/'+_0x4c1f2f+_0x55477b(0x3dd)+_0x3e13e7+_0x55477b(0x298)+_0x50214d,_0x42055a=(await this[_0x55477b(0x177)][_0x55477b(0x3ac)](_0x85e6e7))[_0x55477b(0x1b9)],_0x447b98=(_0x10ef0d=_0x42055a['snapshot'])==null?void 0x0:_0x10ef0d[_0x55477b(0x258)];if(_0x447b98){let _0x5bd4c6=_0x447b98==null?void 0x0:_0x447b98[_0x55477b(0x1d6)];_0x447b98[_0x55477b(0x1d6)]=e[_0x55477b(0x3c5)][_0x55477b(0x14b)]((0x0,e[_0x55477b(0x1ae)])(_0x5bd4c6)),Object[_0x55477b(0x340)](_0x447b98[_0x55477b(0x41c)])[_0x55477b(0x404)](([,_0x4e2ac9])=>{const _0x590187=_0x55477b;let _0x279776=_0x4e2ac9[_0x590187(0x1d6)];_0x4e2ac9[_0x590187(0x1d6)]=e[_0x590187(0x3c5)][_0x590187(0x14b)]((0x0,e[_0x590187(0x1ae)])(_0x279776));});}return _0x42055a;}async[_0x1a65c6(0x368)](_0x1f435f,_0x280c59){const _0xd5f979=_0x1a65c6;let {unitID:_0x206a41,type:_0x26591e,blockID:_0x5459bc}=_0x280c59,_0x5a127e=this[_0xd5f979(0x394)]()+'/'+_0x26591e+_0xd5f979(0x3dd)+_0x206a41+_0xd5f979(0x372)+_0x5459bc;return(await this['_httpService'][_0xd5f979(0x3ac)](_0x5a127e))['body'];}async[_0x1a65c6(0x26c)](_0x5e79e9,_0x3173b0){const _0x22f0ca=_0x1a65c6;let {unitID:_0x252c71,type:_0x259886,blockID:_0x1c3bc2}=_0x3173b0,_0x386a94=this[_0x22f0ca(0x394)]()+_0x22f0ca(0x372)+_0x259886+_0x22f0ca(0x3dd)+_0x252c71+_0x22f0ca(0x372)+_0x1c3bc2;return(await this['_httpService'][_0x22f0ca(0x3ac)](_0x386a94))[_0x22f0ca(0x1b9)];}async[_0x1a65c6(0x254)](_0x19e7b0,_0x5b5221){const _0xea3281=_0x1a65c6;let {unitID:_0x11fc9b,type:_0x7bd5d2,from:_0xbd4d23,to:_0x7e6fcf}=_0x5b5221,_0x1b065a=this[_0xea3281(0x394)]()+'/'+_0x7bd5d2+_0xea3281(0x3dd)+_0x11fc9b+'/fetchmissing?from='+_0xbd4d23+_0xea3281(0x1e2)+_0x7e6fcf;return(await this[_0xea3281(0x177)][_0xea3281(0x3ac)](_0x1b065a))[_0xea3281(0x1b9)];}['getSnapshotAPIPath'](){const _0x152304=_0x1a65c6;return this[_0x152304(0x3a6)][_0x152304(0x216)](_0x152304(0x36d))??this[_0x152304(0x394)]();}[_0x1a65c6(0x394)](){const _0xdaa34c=_0x1a65c6;let _0x34ca7e=this['_configService'][_0xdaa34c(0x216)](m);return(_0x34ca7e==null?void 0x0:_0x34ca7e[_0xdaa34c(0x1d4)])??_0xdaa34c(0x2f2);}async['getResourcesRequest'](_0x3fcc01,_0x169e1f){const _0xde07de=_0x1a65c6;let _0x20a032='/universer-api/snapshot/'+_0x169e1f[_0xde07de(0x262)]+_0xde07de(0x3dd)+_0x169e1f[_0xde07de(0x293)]+_0xde07de(0x222);return(await this[_0xde07de(0x177)][_0xde07de(0x3ac)](_0x20a032,{'params':{'resourceId':JSON[_0xde07de(0x3ec)](_0x169e1f['resourceIDs'])}}))[_0xde07de(0x1b9)];}[_0x1a65c6(0x30b)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['updateSnapshot'](){const _0x248d29=_0x1a65c6;throw Error(_0x248d29(0x433));}[_0x1a65c6(0x22e)](){const _0x562720=_0x1a65c6;throw Error(_0x562720(0x433));}['saveChangeset'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x2fcc00=_0x1a65c6;throw Error(_0x2fcc00(0x433));}['getLatestCsReqIdBySid'](){const _0x400298=_0x1a65c6;throw Error(_0x400298(0x433));}};Z=y([v(0x0,t[_0x1a65c6(0x34b)]),v(0x1,(0x0,t['Inject'])(l[_0x1a65c6(0x22c)]))],Z);let Q=class extends t[_0x1a65c6(0x233)]{constructor(_0x4dfea7,_0xeb16,_0x315fb2,_0x4cf23c,_0x5f2811,_0x441c95){const _0x6aae6a=_0x1a65c6;super(_0x4dfea7,_0xeb16,_0x315fb2,_0x4cf23c),this[_0x6aae6a(0x43b)]=_0x5f2811,this[_0x6aae6a(0x461)]=_0x441c95;}[_0x1a65c6(0x2f1)](_0x419c30,_0x1d6e23){const _0x3f8ae0=_0x1a65c6;let _0x22b933=this[_0x3f8ae0(0x27c)](_0x419c30);if(_0x22b933)try{let _0x512776=this[_0x3f8ae0(0x1d0)](_0x22b933,_0x1d6e23);this[_0x3f8ae0(0x2e5)](_0x419c30,_0x512776);}catch(_0x49b9d2){this['_logService'][_0x3f8ae0(0x1bb)]('[CollaborationUndoRedoService]',_0x49b9d2),this[_0x3f8ae0(0x32e)](_0x419c30);}let _0x2bec2f=this[_0x3f8ae0(0x1c3)](_0x419c30);if(_0x2bec2f)try{let _0x4e0f39=this[_0x3f8ae0(0x1d0)](_0x2bec2f,_0x1d6e23);this[_0x3f8ae0(0x276)](_0x419c30,_0x4e0f39);}catch(_0xd29b51){this[_0x3f8ae0(0x461)][_0x3f8ae0(0x1bb)](_0xd29b51),this[_0x3f8ae0(0x1b6)](_0x419c30);}}[_0x1a65c6(0x32e)](_0x4d0961){const _0x488807=_0x1a65c6;let _0x1ccc57=this['_getUndoStack'](_0x4d0961);_0x1ccc57&&(_0x1ccc57[_0x488807(0x306)]=0x0,this[_0x488807(0x2dc)]());}[_0x1a65c6(0x1b6)](_0x4472bc){const _0x4f9a45=_0x1a65c6;let _0x4c64be=this[_0x4f9a45(0x1c3)](_0x4472bc);_0x4c64be&&(_0x4c64be['length']=0x0,this[_0x4f9a45(0x2dc)]());}[_0x1a65c6(0x2e5)](_0x2d0d07,_0x158bf0){const _0x4419e6=_0x1a65c6;this[_0x4419e6(0x335)][_0x4419e6(0x40c)](_0x2d0d07,_0x158bf0),this['_updateStatus']();}[_0x1a65c6(0x276)](_0x45d67f,_0x2d77bf){const _0x40bae7=_0x1a65c6;this[_0x40bae7(0x295)][_0x40bae7(0x40c)](_0x45d67f,_0x2d77bf),this['_updateStatus']();}[_0x1a65c6(0x1d0)](_0x449186,_0x2ccda1){const _0x455316=_0x1a65c6;let _0x83fcaa=[],_0x452c00=_0x2ccda1,_0x1bb393=_0x2ccda1;for(let _0x4b1cc9=_0x449186[_0x455316(0x306)]-0x1;_0x4b1cc9>=0x0;_0x4b1cc9--){let {unitID:_0x468374,undoMutations:_0x9a6cf2,redoMutations:_0x2b2573}=_0x449186[_0x4b1cc9],_0x5d13a5=this[_0x455316(0x43b)][_0x455316(0x437)](_0x452c00,_0x9a6cf2),_0x24f2be=this[_0x455316(0x43b)][_0x455316(0x437)](_0x1bb393,_0x2b2573);if((0x0,e[_0x455316(0x14e)])(_0x5d13a5)||(0x0,e['isTransformMutationsWithChangesetFailure'])(_0x24f2be)){this[_0x455316(0x461)][_0x455316(0x1bb)](_0x455316(0x2f0),_0x455316(0x3a8),_0x5d13a5,_0x24f2be);break;}_0x452c00=_0x5d13a5[_0x455316(0x2cf)],_0x1bb393=_0x24f2be['c1Prime'],_0x83fcaa[_0x455316(0x1af)]({'unitID':_0x468374,'undoMutations':_0x5d13a5[_0x455316(0x237)],'redoMutations':_0x24f2be[_0x455316(0x237)]});}return _0x83fcaa[_0x455316(0x45a)]();}};Q=y([v(0x0,t[_0x1a65c6(0x458)]),v(0x1,t[_0x1a65c6(0x324)]),v(0x2,t['IContextService']),v(0x3,t[_0x1a65c6(0x34b)]),v(0x4,e[_0x1a65c6(0x18c)]),v(0x5,t[_0x1a65c6(0x16b)])],Q);let $=class extends t[_0x1a65c6(0x179)]{constructor(_0x2c51d4=ee,_0x265496,_0x334941,_0x5c525b){const _0x2f69ca=_0x1a65c6;super(),this[_0x2f69ca(0x151)]=_0x2c51d4,this[_0x2f69ca(0x461)]=_0x265496,this[_0x2f69ca(0x241)]=_0x334941,this[_0x2f69ca(0x3a6)]=_0x5c525b;let {..._0x452a1b}=(0x0,t[_0x2f69ca(0x3c8)])({},ee,this['_config']);if(!_0x452a1b[_0x2f69ca(0x1da)])throw Error(_0x2f69ca(0x178));this[_0x2f69ca(0x151)]=_0x452a1b,this[_0x2f69ca(0x3a6)][_0x2f69ca(0x444)](m,_0x452a1b);}[_0x1a65c6(0x18b)](){const _0x4a3ff9=_0x1a65c6;this['_configService'][_0x4a3ff9(0x444)](t['OBJECT_PERMISSION_CONFIG_KEY'],this[_0x4a3ff9(0x151)][_0x4a3ff9(0x3d6)]??[]),this['_registerDependencies'](),this[_0x4a3ff9(0x1c4)]();}[_0x1a65c6(0x44a)](){const _0x3a0a14=_0x1a65c6;var _0x48d142,_0x9e0a6f;this[_0x3a0a14(0x241)][_0x3a0a14(0x1e4)](t['IUndoRedoService'])&&this['_logService'][_0x3a0a14(0x1bb)](_0x3a0a14(0x3bf),_0x3a0a14(0x23f));let _0x5ee64f=(0x0,t[_0x3a0a14(0x3c3)])([[t[_0x3a0a14(0x3dc)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this[_0x3a0a14(0x151)][_0x3a0a14(0x1da)]}],[e[_0x3a0a14(0x1d5)],{'useClass':Z}],[t[_0x3a0a14(0x331)],{'useClass':G}],[t['IImageIoService'],{'useClass':J}],[nt,{'useClass':U}],[t['IMentionIOService'],{'useClass':Y}],[H],[tt]],(_0x48d142=this['_config'])==null?void 0x0:_0x48d142[_0x3a0a14(0x1c5)]);if(!((_0x9e0a6f=this['_config'])!=null&&_0x9e0a6f[_0x3a0a14(0x2c1)])){let _0x4c1b90=_0x5ee64f[_0x3a0a14(0x3b9)](([_0x14a5b5])=>_0x14a5b5===C);_0x4c1b90!==-0x1&&_0x5ee64f[_0x3a0a14(0x423)](_0x4c1b90,0x1);}(0x0,t[_0x3a0a14(0x1cf)])(this[_0x3a0a14(0x241)],_0x5ee64f);}['_initDependencies'](){const _0x210684=_0x1a65c6;var _0x2c5503,_0x154e57;if(this['_injector'][_0x210684(0x3ac)](l[_0x210684(0x22c)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,l['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x2c5503=this[_0x210684(0x151)])!=null&&_0x2c5503[_0x210684(0x3a9)])){var _0x4421df;(_0x4421df=this[_0x210684(0x241)][_0x210684(0x3ac)](x,t[_0x210684(0x460)][_0x210684(0x221)]))==null||_0x4421df['disableLocalCache']();}(_0x154e57=this['_config'])!=null&&_0x154e57[_0x210684(0x274)]&&(0x0,t[_0x210684(0x44e)])(this['_injector'],[[W]]),(0x0,t[_0x210684(0x44e)])(this[_0x210684(0x241)],[[K],[H],[X]]);}};g($,'pluginName',_0x1a65c6(0x2ac)),g($,_0x1a65c6(0x27d),$e),g($,'version',et),$=y([(0x0,t['DependentOn'])(u['UniverLicensePlugin'],l[_0x1a65c6(0x149)],e[_0x1a65c6(0x2a3)]),v(0x1,t[_0x1a65c6(0x16b)]),v(0x2,(0x0,t['Inject'])(t[_0x1a65c6(0x15c)])),v(0x3,t['IConfigService'])],$),Object['defineProperty'](exports,_0x1a65c6(0x235),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x1e5),{'enumerable':!0x0,'get':function(){return k;}}),Object[_0x1a65c6(0x155)](exports,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x2aa),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x1a65c6(0x43f),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x1a65c6(0x2be)]=m,Object[_0x1a65c6(0x155)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x401),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x321),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x1a65c6(0x155)](exports,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return J;}}),Object['defineProperty'](exports,_0x1a65c6(0x30f),{'enumerable':!0x0,'get':function(){return ve;}}),Object[_0x1a65c6(0x155)](exports,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x3aa),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x1a65c6(0x358)]=Be,exports[_0x1a65c6(0x1b3)]=ie,exports['CollaborationUIEventService']=_,Object[_0x1a65c6(0x155)](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x1a65c6(0x142)]=ae,Object[_0x1a65c6(0x155)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return j;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x1a65c6(0x3d5),exports[_0x1a65c6(0x390)]='/universer-api/uniscript',exports['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x398),{'enumerable':!0x0,'get':function(){return q;}}),Object['defineProperty'](exports,_0x1a65c6(0x468),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x15a),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x1a65c6(0x14c)]=_0x1a65c6(0x288),exports[_0x1a65c6(0x230)]=_0x1a65c6(0x2dd),exports[_0x1a65c6(0x273)]=nt,exports['ICollaborationClientAdapterService']=Xe,exports['ICollaborationSocketService']=qe,exports[_0x1a65c6(0x311)]=x,exports['INetworkConditionService']=We,exports['ISingleActiveUnitService']=C,exports[_0x1a65c6(0x396)]=0x3e8,exports['LOCAL_CACHE_INTERVAL_KEY']=_0x1a65c6(0x396),Object['defineProperty'](exports,'MemberService',{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x1a65c6(0x39f),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x2e8),{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,_0x1a65c6(0x430),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x1a65c6(0x155)](exports,'PendingState',{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x1a65c6(0x154)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports[_0x1a65c6(0x2d1)]=_0x1a65c6(0x1db),exports[_0x1a65c6(0x41e)]=ge,Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x16f),{'enumerable':!0x0,'get':function(){return L;}}),Object['defineProperty'](exports,_0x1a65c6(0x24e),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x395),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x205),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x1a65c6(0x155)](exports,_0x1a65c6(0x184),{'enumerable':!0x0,'get':function(){return D;}}),exports['UnitStatus']=xe,Object['defineProperty'](exports,_0x1a65c6(0x213),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1a65c6(0x343)]=Ze,exports[_0x1a65c6(0x1de)]=Ge,exports[_0x1a65c6(0x2fb)]=ye,exports['serializeCombRequest']=Ke;
1
+ const _0x16128c=_0x4c27;(function(_0x54d701,_0x21173e){const _0x5c6f4e=_0x4c27,_0x2a6418=_0x54d701();while(!![]){try{const _0x4cfb16=-parseInt(_0x5c6f4e(0x251))/0x1+parseInt(_0x5c6f4e(0x4c7))/0x2*(parseInt(_0x5c6f4e(0x1db))/0x3)+-parseInt(_0x5c6f4e(0x468))/0x4+-parseInt(_0x5c6f4e(0x464))/0x5+-parseInt(_0x5c6f4e(0x401))/0x6+parseInt(_0x5c6f4e(0x3b8))/0x7+-parseInt(_0x5c6f4e(0x489))/0x8*(-parseInt(_0x5c6f4e(0x3aa))/0x9);if(_0x4cfb16===_0x21173e)break;else _0x2a6418['push'](_0x2a6418['shift']());}catch(_0x2b9a58){_0x2a6418['push'](_0x2a6418['shift']());}}}(_0x1631,0x8aba6),Object[_0x16128c(0x3a6)](exports,Symbol['toStringTag'],{'value':_0x16128c(0x31e)}));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=_0x16128c(0x290),ee={};function te(_0x211bcc){const _0x187576=_0x16128c;return JSON[_0x187576(0x24f)](_0x211bcc)[_0x187576(0x471)];}function h(_0x5f1e6b){'@babel/helpers - typeof';const _0x18c4a9=_0x16128c;return h=typeof Symbol==_0x18c4a9(0x4ce)&&typeof Symbol[_0x18c4a9(0x396)]==_0x18c4a9(0x376)?function(_0x644c3f){return typeof _0x644c3f;}:function(_0x19c599){const _0x6bc64e=_0x18c4a9;return _0x19c599&&typeof Symbol=='function'&&_0x19c599[_0x6bc64e(0x24d)]===Symbol&&_0x19c599!==Symbol[_0x6bc64e(0x45c)]?_0x6bc64e(0x376):typeof _0x19c599;},h(_0x5f1e6b);}function ne(_0x522e31,_0x4fa2fe){const _0x26cc7c=_0x16128c;if(h(_0x522e31)!=_0x26cc7c(0x321)||!_0x522e31)return _0x522e31;var _0x3ccd49=_0x522e31[Symbol[_0x26cc7c(0x2ef)]];if(_0x3ccd49!==void 0x0){var _0x4bc904=_0x3ccd49[_0x26cc7c(0x2a7)](_0x522e31,_0x4fa2fe||_0x26cc7c(0x419));if(h(_0x4bc904)!='object')return _0x4bc904;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4fa2fe===_0x26cc7c(0x508)?String:Number)(_0x522e31);}function re(_0x39fb90){const _0x4489f8=_0x16128c;var _0x52286b=ne(_0x39fb90,_0x4489f8(0x508));return h(_0x52286b)==_0x4489f8(0x376)?_0x52286b:_0x52286b+'';}function g(_0x407b97,_0x7db728,_0x2d23b2){const _0xc539f1=_0x16128c;return(_0x7db728=re(_0x7db728))in _0x407b97?Object[_0xc539f1(0x3a6)](_0x407b97,_0x7db728,{'value':_0x2d23b2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x407b97[_0x7db728]=_0x2d23b2,_0x407b97;}let ie=function(_0x3a06e4){const _0x44aaca=_0x16128c;return _0x3a06e4[_0x44aaca(0x229)]=_0x44aaca(0x229),_0x3a06e4['PERMISSION_DENIED']=_0x44aaca(0x4cd),_0x3a06e4[_0x44aaca(0x3b6)]=_0x44aaca(0x3b6),_0x3a06e4[_0x44aaca(0x1eb)]=_0x44aaca(0x1eb),_0x3a06e4['CONFLICT']='CONFLICT',_0x3a06e4[_0x44aaca(0x47b)]='CLOSE_ROOM',_0x3a06e4[_0x44aaca(0x4a9)]='JOIN_ROOM_FAILED',_0x3a06e4[_0x44aaca(0x28f)]=_0x44aaca(0x28f),_0x3a06e4[_0x44aaca(0x320)]=_0x44aaca(0x320),_0x3a06e4[_0x44aaca(0x2aa)]=_0x44aaca(0x2aa),_0x3a06e4;}({});var _=class{constructor(){const _0x5c4855=_0x16128c;g(this,'_event$',new i[(_0x5c4855(0x21b))]()),g(this,_0x5c4855(0x47e),this[_0x5c4855(0x266)][_0x5c4855(0x45a)]());}[_0x16128c(0x4e7)](_0x36025d){const _0x1e0d33=_0x16128c;this['_event$'][_0x1e0d33(0x272)](_0x36025d);}},ae=class{constructor(){const _0x583755=_0x16128c;g(this,'_commentUpdate$',new i['Subject']()),g(this,_0x583755(0x2b5),this[_0x583755(0x38d)][_0x583755(0x45a)]());}[_0x16128c(0x4e1)](_0x1b4082){const _0x40440d=_0x16128c;this[_0x40440d(0x38d)][_0x40440d(0x272)](_0x1b4082);}};function v(_0x46fea2,_0x2c62ab){return function(_0x2c2e61,_0x242eaa){_0x2c62ab(_0x2c2e61,_0x242eaa,_0x46fea2);};}function y(_0xeda812,_0x29bb12,_0x52ef47,_0x80e484){const _0x513a9e=_0x16128c;var _0x5691fd=arguments[_0x513a9e(0x471)],_0x2ab2ad=_0x5691fd<0x3?_0x29bb12:_0x80e484===null?_0x80e484=Object['getOwnPropertyDescriptor'](_0x29bb12,_0x52ef47):_0x80e484,_0x2db85b;if(typeof Reflect==_0x513a9e(0x321)&&typeof Reflect[_0x513a9e(0x46a)]==_0x513a9e(0x4ce))_0x2ab2ad=Reflect[_0x513a9e(0x46a)](_0xeda812,_0x29bb12,_0x52ef47,_0x80e484);else{for(var _0x3eb406=_0xeda812[_0x513a9e(0x471)]-0x1;_0x3eb406>=0x0;_0x3eb406--)(_0x2db85b=_0xeda812[_0x3eb406])&&(_0x2ab2ad=(_0x5691fd<0x3?_0x2db85b(_0x2ab2ad):_0x5691fd>0x3?_0x2db85b(_0x29bb12,_0x52ef47,_0x2ab2ad):_0x2db85b(_0x29bb12,_0x52ef47))||_0x2ab2ad);}return _0x5691fd>0x3&&_0x2ab2ad&&Object[_0x513a9e(0x3a6)](_0x29bb12,_0x52ef47,_0x2ab2ad),_0x2ab2ad;}let b=class extends t[_0x16128c(0x31f)]{constructor(_0x38b14e){const _0x490788=_0x16128c;super(),this[_0x490788(0x32c)]=_0x38b14e,g(this,'_roomMembers',new Map()),g(this,_0x490788(0x493),new i['Subject']()),this[_0x490788(0x31d)]((0x0,i['merge'])(this['_univerInstanceService'][_0x490788(0x439)](t[_0x490788(0x3c4)]['UNIVER_SHEET'])[_0x490788(0x476)]((0x0,s['map'])(_0x504fc1=>_0x504fc1[_0x490788(0x2f0)]())),this[_0x490788(0x32c)][_0x490788(0x439)](t[_0x490788(0x3c4)]['UNIVER_DOC'])[_0x490788(0x476)]((0x0,s[_0x490788(0x2b2)])(_0x3db08c=>_0x3db08c[_0x490788(0x2f0)]())),this[_0x490788(0x32c)][_0x490788(0x439)](t[_0x490788(0x3c4)]['UNIVER_BOARD'])[_0x490788(0x476)]((0x0,s[_0x490788(0x2b2)])(_0x3a9b0a=>_0x3a9b0a[_0x490788(0x2f0)]())),this[_0x490788(0x32c)][_0x490788(0x439)](t[_0x490788(0x3c4)]['UNIVER_BASE'])[_0x490788(0x476)]((0x0,s[_0x490788(0x2b2)])(_0x1a7cff=>_0x1a7cff[_0x490788(0x2f0)]())))['subscribe'](_0x3480e1=>this[_0x490788(0x38b)](_0x3480e1)));}['waitForRoom$'](_0x25b9c6){const _0x9937c6=_0x16128c;return this['_roomMembers'][_0x9937c6(0x339)](_0x25b9c6)?(0x0,i['of'])(this[_0x9937c6(0x24b)]['get'](_0x25b9c6)):this['_roomCreated$'][_0x9937c6(0x476)]((0x0,s[_0x9937c6(0x2b2)])(_0x3031e9=>{const _0x53b8fe=_0x9937c6;if(_0x3031e9===_0x25b9c6)return this['_roomMembers'][_0x53b8fe(0x1f1)](_0x3031e9);}));}['updateMember'](_0x3b0060,_0x17f92e){const _0x1dcde2=_0x16128c;let _0x5d152f=this['_roomMembers'][_0x1dcde2(0x1f1)](_0x3b0060);_0x5d152f||(_0x5d152f=new oe(),this[_0x1dcde2(0x24b)][_0x1dcde2(0x2b4)](_0x3b0060,_0x5d152f),this['_roomCreated$'][_0x1dcde2(0x272)](_0x3b0060)),_0x5d152f[_0x1dcde2(0x2b0)](_0x17f92e);}[_0x16128c(0x261)](_0xfaf32a,_0x18391c){const _0xae32ec=_0x16128c;let _0x53e535=this[_0xae32ec(0x24b)][_0xae32ec(0x1f1)](_0xfaf32a);_0x53e535&&_0x53e535[_0xae32ec(0x261)](_0x18391c);}[_0x16128c(0x341)](_0x942c33){const _0x53a83f=_0x16128c;return this['_roomMembers'][_0x53a83f(0x1f1)](_0x942c33);}[_0x16128c(0x3dc)](_0x5a8bd6,_0x5118a4){const _0x19a678=_0x16128c;let _0x46061a=this[_0x19a678(0x24b)][_0x19a678(0x1f1)](_0x5a8bd6);if(_0x46061a)return _0x46061a[_0x19a678(0x3dc)](_0x5118a4);}[_0x16128c(0x38b)](_0x3aaff1){const _0x1d25ab=_0x16128c;let _0x1cfdeb=this[_0x1d25ab(0x24b)][_0x1d25ab(0x1f1)](_0x3aaff1);_0x1cfdeb&&(_0x1cfdeb[_0x1d25ab(0x22b)](),this[_0x1d25ab(0x24b)]['delete'](_0x3aaff1));}[_0x16128c(0x22b)](){const _0x42e05d=_0x16128c;this[_0x42e05d(0x24b)]['forEach'](_0x1eaec2=>_0x1eaec2[_0x42e05d(0x22b)]()),this[_0x42e05d(0x24b)]['clear'](),this['_roomCreated$'][_0x42e05d(0x26e)]();}};b=y([v(0x0,t[_0x16128c(0x399)])],b);var oe=class extends t[_0x16128c(0x31f)]{constructor(..._0x31e20e){const _0x38221d=_0x16128c;super(..._0x31e20e),g(this,_0x38221d(0x36d),new Map()),g(this,_0x38221d(0x1fc),new i[(_0x38221d(0x204))](this['_members'])),g(this,_0x38221d(0x258),this['_members$'][_0x38221d(0x45a)]());}[_0x16128c(0x22b)](){const _0x36ebf1=_0x16128c;this[_0x36ebf1(0x36d)][_0x36ebf1(0x292)](),this[_0x36ebf1(0x1fc)][_0x36ebf1(0x26e)]();}[_0x16128c(0x2b0)](_0x23df52){const _0x267633=_0x16128c;this[_0x267633(0x36d)]['set'](_0x23df52[_0x267633(0x2a6)],_0x23df52),this['_emitMembers']();}[_0x16128c(0x261)](_0x3ad318){const _0x352767=_0x16128c;this[_0x352767(0x36d)][_0x352767(0x328)](_0x3ad318),this['_emitMembers']();}[_0x16128c(0x3dc)](_0x43c21c){const _0x552b76=_0x16128c;return this[_0x552b76(0x36d)]['get'](_0x43c21c);}[_0x16128c(0x29f)](){const _0x4ea5a0=_0x16128c;return Array[_0x4ea5a0(0x3ba)](this[_0x4ea5a0(0x36d)][_0x4ea5a0(0x3af)]());}[_0x16128c(0x3f9)](){const _0xef0c9d=_0x16128c;this[_0xef0c9d(0x1fc)][_0xef0c9d(0x272)](this[_0xef0c9d(0x36d)]);}};function se(_0x5ed8d5,_0x3ec800){const _0x34cfc1=_0x16128c;if(le(_0x5ed8d5))return _0x3ec800;if(_0x3ec800[_0x34cfc1(0x25c)]===e[_0x34cfc1(0x1f4)][_0x34cfc1(0x2bf)]){let _0x27c1e2=me(_0x5ed8d5),_0x2a1275=_0x3ec800;return{..._0x2a1275,'data':{..._0x2a1275[_0x34cfc1(0x223)],'unitID':_0x5ed8d5[_0x34cfc1(0x218)][_0x34cfc1(0x367)],'unitType':_0x5ed8d5['target'][_0x34cfc1(0x4e0)]??_0x2a1275[_0x34cfc1(0x223)][_0x34cfc1(0x4e0)],'changeset':_0x27c1e2[_0x34cfc1(0x262)](_0x2a1275['data'][_0x34cfc1(0x3ad)],he(_0x5ed8d5))}};}if(_0x3ec800['eventID']===e[_0x34cfc1(0x1f4)][_0x34cfc1(0x355)]){let _0x1410ad=_0x3ec800;return{..._0x1410ad,'data':{..._0x1410ad['data'],'unitID':_0x5ed8d5[_0x34cfc1(0x218)][_0x34cfc1(0x367)],'unitType':_0x5ed8d5[_0x34cfc1(0x218)][_0x34cfc1(0x4e0)]??_0x1410ad[_0x34cfc1(0x223)][_0x34cfc1(0x4e0)]}};}return _0x3ec800;}function ce(_0x4f0e81,_0x4bbe50){const _0x13bb58=_0x16128c;if(le(_0x4f0e81))return[_0x4bbe50];switch(_0x4bbe50[_0x13bb58(0x25c)]){case e[_0x13bb58(0x1f4)][_0x13bb58(0x2db)]:return[ue(_0x4f0e81,_0x4bbe50)];case e['CollaborationEvent'][_0x13bb58(0x4a4)]:return[fe(_0x4f0e81,_0x4bbe50)];case e[_0x13bb58(0x1f4)][_0x13bb58(0x2a3)]:return[de(_0x4f0e81,_0x4bbe50)];default:return[_0x4bbe50];}}function le(_0x2de903){const _0xdb58ef=_0x16128c;return _0x2de903['target'][_0xdb58ef(0x32f)]==null&&_0x2de903[_0xdb58ef(0x218)][_0xdb58ef(0x367)]===_0x2de903[_0xdb58ef(0x4dc)]&&!_0x2de903['changeset'];}function ue(_0x153508,_0x54e85e){const _0x277d95=_0x16128c;return{..._0x54e85e,'data':(0x0,e[_0x277d95(0x1f9)])(pe(_0x153508,(0x0,e['parseProtocolChangeset'])(_0x54e85e[_0x277d95(0x223)])))};}function de(_0x4f1f3d,_0x3f4533){return{..._0x3f4533,'data':pe(_0x4f1f3d,_0x3f4533['data'])};}function fe(_0x86908e,_0x612289){const _0x110e40=_0x16128c;let _0x35af04=_0x612289[_0x110e40(0x223)];return{..._0x612289,'data':{..._0x35af04,'changesets':_0x35af04['changesets'][_0x110e40(0x2b2)](_0x29f183=>(0x0,e['parseChangesetToProtocol'])(pe(_0x86908e,(0x0,e[_0x110e40(0x453)])(_0x29f183))))}};}function pe(_0xdbbb1f,_0x2a956c){const _0x774802=_0x16128c;return me(_0xdbbb1f)[_0x774802(0x426)](_0x2a956c,he(_0xdbbb1f));}function me(_0x59c828){const _0x108df8=_0x16128c;if(!_0x59c828[_0x108df8(0x3ad)])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x59c828[_0x108df8(0x3ad)];}function he(_0x4f2764){const _0x165ee3=_0x16128c;return{'localUnitId':_0x4f2764[_0x165ee3(0x4dc)],'unitType':_0x4f2764[_0x165ee3(0x4e0)],'target':_0x4f2764[_0x165ee3(0x218)]};}let ge=function(_0x4af09e){const _0x195899=_0x16128c;return _0x4af09e[_0x4af09e[_0x195899(0x2f2)]=0x0]=_0x195899(0x2f2),_0x4af09e[_0x4af09e[_0x195899(0x3a3)]=0x1]='JOINING',_0x4af09e[_0x4af09e[_0x195899(0x256)]=0x2]=_0x195899(0x256),_0x4af09e[_0x4af09e[_0x195899(0x1e0)]=0x3]='ONLINE',_0x4af09e;}({});const _e={[a['CmdRspCode'][_0x16128c(0x483)]]:_0x16128c(0x32a),[a['CmdRspCode']['JOIN_ROOM_FULL']]:'session.room-full',[a[_0x16128c(0x259)][_0x16128c(0x2b9)]]:_0x16128c(0x4db),[a[_0x16128c(0x259)][_0x16128c(0x388)]]:_0x16128c(0x405),[a[_0x16128c(0x259)][_0x16128c(0x43a)]]:_0x16128c(0x3db)};let ve=class extends t[_0x16128c(0x313)]{get[_0x16128c(0x221)](){return this['_sessionStatus$']['getValue']();}constructor(_0x5e39de,_0x13a1bf,_0xcfd97a,_0x4349a1,_0x1bd462,_0x4efc5a,_0x2243dc,_0x40bdd7){const _0x20e891=_0x16128c;super(),this[_0x20e891(0x366)]=_0x5e39de,this[_0x20e891(0x451)]=_0xcfd97a,this[_0x20e891(0x20e)]=_0x4349a1,this[_0x20e891(0x248)]=_0x1bd462,this[_0x20e891(0x2d3)]=_0x4efc5a,this[_0x20e891(0x3ce)]=_0x2243dc,this['_telemetryService']=_0x40bdd7,g(this,_0x20e891(0x324),new i[(_0x20e891(0x204))](0x0)),g(this,'sessionStatus$',this['_sessionStatus$']['asObservable']()),g(this,'_event$',new i['Subject']()),g(this,_0x20e891(0x47e),this['_event$'][_0x20e891(0x45a)]()),g(this,_0x20e891(0x4be),void 0x0),g(this,_0x20e891(0x21a),void 0x0),g(this,_0x20e891(0x4c5),void 0x0),g(this,_0x20e891(0x4e3),!0x1),g(this,_0x20e891(0x214),null),this[_0x20e891(0x4e3)]=!!this[_0x20e891(0x40e)],_0x13a1bf['pipe']((0x0,i[_0x20e891(0x2ed)])(this[_0x20e891(0x343)]))['subscribe'](_0x4b923e=>{const _0x34ddd1=_0x20e891;if(_0x4b923e!==void 0x0){if(this[_0x34ddd1(0x4be)]=_0x4b923e,_0x4b923e)this[_0x34ddd1(0x509)](_0x4b923e),this[_0x34ddd1(0x21a)]=_0x4b923e['message$'][_0x34ddd1(0x3f8)](_0x30a0cc=>{const _0x15715c=_0x34ddd1;_0x30a0cc[_0x15715c(0x38c)]===this[_0x15715c(0x366)][_0x15715c(0x218)][_0x15715c(0x367)]&&this[_0x15715c(0x484)](_0x30a0cc);});else{var _0x1d19d7;this[_0x34ddd1(0x4ab)](),this[_0x34ddd1(0x324)][_0x34ddd1(0x272)](0x2),(_0x1d19d7=this[_0x34ddd1(0x21a)])==null||_0x1d19d7[_0x34ddd1(0x3e2)](),this[_0x34ddd1(0x21a)]=null;}}});}[_0x16128c(0x347)](){const _0x498405=_0x16128c;var _0x481f1e;return((_0x481f1e=this['_socket'])==null?void 0x0:_0x481f1e[_0x498405(0x2a6)])??null;}[_0x16128c(0x22b)](){const _0x490bf4=_0x16128c;super[_0x490bf4(0x22b)](),this[_0x490bf4(0x41e)](),this[_0x490bf4(0x343)][_0x490bf4(0x272)](),this[_0x490bf4(0x343)][_0x490bf4(0x26e)]();}[_0x16128c(0x41e)](){const _0x24851e=_0x16128c;var _0x5be0d7;this[_0x24851e(0x4ab)](),(_0x5be0d7=this[_0x24851e(0x4be)])==null||_0x5be0d7[_0x24851e(0x389)]({'cmd':a[_0x24851e(0x3c0)]['LEAVE'],'data':{'roomID':this['_identity'][_0x24851e(0x218)][_0x24851e(0x367)]}}),this[_0x24851e(0x266)]['complete'](),this[_0x24851e(0x324)]['complete']();}[_0x16128c(0x484)](_0x374530){const _0x650c93=_0x16128c;_0x374530[_0x650c93(0x37f)]===a['CombCmd'][_0x650c93(0x4cb)]?this[_0x650c93(0x33d)](_0x374530):_0x374530['cmd']===a[_0x650c93(0x3c0)][_0x650c93(0x2b6)]&&this['_onRecvEvent'](_0x374530);}[_0x16128c(0x509)](_0x431c3d){const _0x418c47=_0x16128c;this['_sessionStatus$'][_0x418c47(0x272)](0x1),_0x431c3d['send']({'cmd':a[_0x418c47(0x3c0)]['JOIN'],'routeKey':this[_0x418c47(0x366)][_0x418c47(0x218)][_0x418c47(0x367)],'routeType':'','data':{'rooms':[{'roomID':this[_0x418c47(0x366)]['target']['unitId']}]}});}[_0x16128c(0x33d)](_0x2eb1de){const _0x23166d=_0x16128c;var _0x49a7f0;if(_0x2eb1de[_0x23166d(0x2e0)]in _e){this['_collaborationUIEventService'][_0x23166d(0x4e7)]({'id':_0x23166d(0x4a9),'data':_e[_0x2eb1de['code']]}),this['_sessionStatus$']['next'](0x2);return;}this['_sessionStatus$'][_0x23166d(0x272)](0x3);let _0x46fea7=(_0x49a7f0=_0x2eb1de[_0x23166d(0x223)][_0x23166d(0x473)][this[_0x23166d(0x366)][_0x23166d(0x218)]['unitId']])==null?void 0x0:_0x49a7f0[_0x23166d(0x244)];_0x46fea7&&_0x46fea7[_0x23166d(0x43b)](_0x4bd09b=>this[_0x23166d(0x248)][_0x23166d(0x2b0)](this[_0x23166d(0x366)][_0x23166d(0x4dc)],_0x4bd09b));}[_0x16128c(0x243)](_0x5cc3e5){const _0x3b9a51=_0x16128c;try{let _0x15ff1b=ce(this[_0x3b9a51(0x366)],_0x5cc3e5['data']);for(let _0x166a4d of _0x15ff1b)switch(_0x166a4d[_0x3b9a51(0x25c)]){case e['CollaborationEvent'][_0x3b9a51(0x1e1)]:this[_0x3b9a51(0x33c)](_0x166a4d),this[_0x3b9a51(0x266)][_0x3b9a51(0x272)](_0x166a4d);break;case e[_0x3b9a51(0x1f4)][_0x3b9a51(0x239)]:this[_0x3b9a51(0x283)](_0x166a4d),this[_0x3b9a51(0x266)][_0x3b9a51(0x272)](_0x166a4d);break;case e[_0x3b9a51(0x1f4)]['CHANGESET_ACK']:case e[_0x3b9a51(0x1f4)][_0x3b9a51(0x2a3)]:this[_0x3b9a51(0x47f)](),this['_clearCollaborationTimeoutTimer'](),this[_0x3b9a51(0x266)]['next'](_0x166a4d);break;case e[_0x3b9a51(0x1f4)][_0x3b9a51(0x2fa)]:this[_0x3b9a51(0x451)][_0x3b9a51(0x1d8)](_0x3b9a51(0x308)+JSON[_0x3b9a51(0x24f)](_0x166a4d)),this['_event$'][_0x3b9a51(0x272)](_0x166a4d);break;case e[_0x3b9a51(0x1f4)][_0x3b9a51(0x2a8)]:this[_0x3b9a51(0x2d3)]['onCommentUpdate'](_0x166a4d[_0x3b9a51(0x223)]),this['_event$'][_0x3b9a51(0x272)](_0x166a4d);break;default:this[_0x3b9a51(0x266)][_0x3b9a51(0x272)](_0x166a4d);}}catch(_0x387174){this['_logService']['error'](_0x387174,_0x5cc3e5);}}[_0x16128c(0x33c)](_0x466e20){const _0x2b0966=_0x16128c;this[_0x2b0966(0x248)][_0x2b0966(0x2b0)](this['_identity']['localUnitId'],_0x466e20['data']);}[_0x16128c(0x283)](_0x509e9b){const _0x56112c=_0x16128c;this[_0x56112c(0x248)][_0x56112c(0x261)](this['_identity'][_0x56112c(0x4dc)],_0x509e9b[_0x56112c(0x223)][_0x56112c(0x2a6)]);}async[_0x16128c(0x389)](_0x47b7a3,_0x29e306){const _0x10a498=_0x16128c;if(this[_0x10a498(0x221)]!==0x3||!this[_0x10a498(0x4be)])throw Error(_0x10a498(0x44e));try{let _0x420050=se(this[_0x10a498(0x366)],_0x47b7a3);_0x420050['eventID']===e[_0x10a498(0x1f4)][_0x10a498(0x2bf)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x10a498(0x2e3)](_0x420050)),this[_0x10a498(0x4be)]['send']({'cmd':a[_0x10a498(0x3c0)]['INGEST'],'routeKey':this[_0x10a498(0x366)]['target'][_0x10a498(0x367)],'routeType':'','data':_0x420050});}catch(_0x4e76ae){this[_0x10a498(0x451)][_0x10a498(0x1d8)](_0x4e76ae);}}[_0x16128c(0x3bb)](){const _0x2dd822=_0x16128c;this[_0x2dd822(0x4c5)]=setTimeout(()=>{const _0x5c1fd7=_0x2dd822;this[_0x5c1fd7(0x4c5)]=null,this[_0x5c1fd7(0x3ce)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x2dd822(0x20e)]['getConfig'](_0x2dd822(0x263))??0x4e20);}[_0x16128c(0x4eb)](){const _0x54ef95=_0x16128c;this[_0x54ef95(0x4c5)]&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}['_startTelemetryCollaborationNewChangeset'](_0xecd64d){const _0x2322f6=_0x16128c;if(!this[_0x2322f6(0x4e3)])return;let {data:_0x5b9161}=_0xecd64d,{unitID:_0x67238e,changeset:_0x5c7f5c}=_0x5b9161,{mutations:_0x587cdf,type:_0x8f817b}=_0x5c7f5c;this[_0x2322f6(0x214)]={'unitId':_0x67238e,'type':_0x8f817b,'startTime':performance[_0x2322f6(0x253)](),'stopTime':0x0,'duration':0x0,'size':te(_0x587cdf)};}[_0x16128c(0x47f)](){const _0x5e61bd=_0x16128c;if(this[_0x5e61bd(0x4e3)]){if(!this[_0x5e61bd(0x214)]){this[_0x5e61bd(0x451)][_0x5e61bd(0x1d8)](_0x5e61bd(0x434),_0x5e61bd(0x37d));return;}this[_0x5e61bd(0x214)]['stopTime']=performance['now'](),this[_0x5e61bd(0x214)][_0x5e61bd(0x465)]=this[_0x5e61bd(0x214)]['stopTime']-this['_telemetryInfo'][_0x5e61bd(0x27b)],this[_0x5e61bd(0x40e)][_0x5e61bd(0x202)](_0x5e61bd(0x20f),this[_0x5e61bd(0x214)]),this[_0x5e61bd(0x214)]=null;}}[_0x16128c(0x4ab)](){const _0x2eb465=_0x16128c;this[_0x2eb465(0x214)]=null;}};ve=y([v(0x2,t[_0x16128c(0x22c)]),v(0x3,t[_0x16128c(0x35d)]),v(0x4,(0x0,t[_0x16128c(0x4c0)])(b)),v(0x5,(0x0,t[_0x16128c(0x4c0)])(ae)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x16128c(0x2e7)])(o[_0x16128c(0x24a)]))],ve);const x=(0x0,t[_0x16128c(0x2e5)])('collaboration-client.local-cache-service');function ye(_0x568b49){return'unit-cache-'+_0x568b49;}function be(_0x485dbc){const _0x39df3a=_0x16128c;let {unitID:_0x59c01c,mutations:_0x151fca}=_0x485dbc;return{'unitId':_0x59c01c,'subUnitId':_0x151fca['length']>0x0?_0x151fca[0x0][_0x39df3a(0x4f8)][_0x39df3a(0x3be)]:null};}function _0x1631(){const _0x3d5ebe=['you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','CollaborationAttachmentIoService','saveSnapshot','SheetsSelectionsService','JOIN_ROOM_FAILED','enableAuthServer','_throwTelemetryCollaborationNewChangeset','sid','/object','delay','includes','subject','catch','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/allowed','{fileID}','Tools','incrementRevOfUnit','SUCCUSS','_userManagerService','univer-pro.collaboration-client.network-condition.service','SheetCollaborationEntity','_transformUndoredo','ISnapshotServerService','COMPRESS_MUTATION_APPLY','_socket','confirm','Inject','/universer-api/oidc/authpage','[SyncedState]:\x20received\x20acknowledgement.','_collaborationSessionService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_collaborationTimeoutTimer','_pendingMutations','40628ELzQHR','rev','focused$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','JOIN','subType','PERMISSION_DENIED','function','collabSubmitChangesetUrl','changesets','_scheduleCompleteTimestamp','Board','setWaitCount','SnapshotService','_onOffline','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_createSocket','UNIVER_SHEET','textEncoder','push','session.room-not-exists','localUnitId','objectPermissionTypes','every','resolve','unitType','onCommentUpdate','_exhaustRemoteChangesetQueue','_shouldReportTelemetry','min','/fetchmissing?from=','_getCurrentRevision','emitEvent','socketMessageSubscription','toString','offline','_clearCollaborationTimeoutTimer','localeService','range','find','_clearUndo','newCsEvent','status$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getImageSourceCache','_getRedoStack','/universer-api/authz','failed\x20to\x20apply\x20missed\x20changesets!','UNIVER_BASE','params','mergeOverrideWithDependencies','_startCollaboration','permissionRejEvent','HEARTBEAT','UNIVER_SLIDE','DisposableCollection','csAckEvent','_collabSessionService','CollaborationUIEventId','accept','[PendingState]:\x20received\x20rejection.','sendHeartbeatTimer','PERMISSION_REJ','_prepareConflictRecovery','setConfig','string','_joinRoom','_onRemoteACK','encode','originalMeta','_sheetTransformSelectionsService','\x0aAfter:\x20','/universer-api/comb','COLLABORATION_ENDPOINT_INVALID','/role','charCodeAt','_syncEditingCollabCursor','parse','_initMergeInterceptor','textRanges','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','hostname','_config','getSheetBlock','refreshUnit','awaitingChangeset','error','put','docStateChange$','57CJIKFj','concatMap','getConfig','Failed\x20to\x20update\x20permission\x20point','RichTextEditingMutation','ONLINE','USERS_ENTER','getUnitType','/resources','collaboration-client.auth.needGotoLoginAlert','transformSelections','_getUndoStack','isArray','signUrlServerUrl','deepClone','pluginName','CONFLICT_CACHE_CLEAR_FAILED','commit','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','isCompositionEnd','_tryEnsureSocket','updatePermissionObjEvent','get','_resendTimer','LOCAL_CACHE_INTERVAL','CollaborationEvent','IPermissionService','headers','ObjectPermissionService','_executeRemoteChangeset','parseChangesetToProtocol','file','_status$','_members$','origin','getFocusedUnit','mapDocumentTypeToUniverInstanceType','_injector','getTypeOfUnitAdded$','capture','UserManagerService','BehaviorSubject','selections','&source=','_getSocketChannel','mutations','_pendingSessions','patch','body','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','post','_configService','collaboration_new_changeset','onTransformRemoteChangesetByIMECache','ICollaborationClientAdapterService','&assign=','commentUpdateEvent','_telemetryInfo','_instanceService','then','_socketService','target','_acknowledgeAwaitingIfReady','_socketMessageSubscription','Subject','c2Prime','CollaborationStatus','_handlerCallback','onTransformRemoteChangesetByStateCache','univer-pro.collaboration-client.single-active-unit-service','sessionStatus','UniverCollaborationClientPlugin','data','ImageSourceType','missingChangesets','actions','LOCAL_CACHE_INTERVAL_KEY','initWorkbookPermissionChange','OTHER_CLIENT_EDITING','CompressMutationService','dispose','ILogService','_docStateChangeManagerService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_doCreateSocket','LEAVE','objectID','_lockTransition','touchDependencies','_getUploadFileURL','debug','some','_change$','_transformService','USERS_LEAVE','getValue','requestParams','isTransformChangesetsSuccess','batchAllowed','CollaborationController','merge','MUTATION','/block/','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_onRecvEvent','members','state$','_toggleOnline','__splitChunk__','_memberService','?url=','ITelemetryService','_roomMembers','DEFAULT_WS_SESSION_TICKET_URL','constructor','_snapshotServerService','stringify','_state$','1005553hFVOtV','number','now','MentionType','utf8ToBytes','OFFLINE','_hasSessionsForEndpoint','members$','CmdRspCode','_sessionChannels','@univerjs-pro/collaboration-client','eventID','_waitForHeartbeatResponse','rollback','sequenceExecute','_singleActiveUnitService','removeMember','toRemote','HEARTBEAT_TIMEOUT','[FetchMissState]','endsWith','_event$','_resendTimeout','/universer-api/snapshot','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','authzUrl','endpointKey','COMPRESS_MUTATION_SEND','Edit','complete','ERROR_EXCEED_SIZE','_onConnectionFailed','href','next','_waitCount','_snapshotService','m2Prime','collaboratorID','x-univer-host','[CollaborationUndoRedoService]','loadDoc','IMentionIOService','startTime','RevisionService','_substituteRedoStack','take','HTTPService','reqId','_fetchMissChangesets','_entities','_onUserLeave','toggleOnline','_closedUnits','onload','_compressMutationService','_transformStateCache','resend','ITransformService','NO_OTHER_CLIENTS_EDITING','baseRev','enableCollaboration','_sender','SOCKET_FAILED_RETRY','collaboration-client.config','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','clear','conflict','LocalUndoRedoService','infoRsp','Document','_commandService','onSyncEditingCollabCursor','UnitEmbedded','loadOfflineData','POST','_createInitialStateImpl','Base','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','getAllMembers','SYNCED','socketReady','UPDATE_PERMISSION_OBJ','CHANGESET_SHOULD_RETRY','_clearRedo','[SyncedState]:\x20received\x20rejection.','memberID','call','COMMENT_UPDATE','_collaborationPaused','SUBMIT_CHANGESET_TIMEOUT','getImage','_transformRemoteChangesetByStateCache','socket\x20open.','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_clearScheduledTask','updateMember','_socketChannels','map','/universer-api/stream/file/upload','set','commentUpdate$','RECV','PdfCollaborationEntity','IContextService','JOIN_ROOM_NOT_EXISTS','editingUnit','saveChangeset','_registerDependencies','executeCommand','AWAITING_WITH_PENDING','SUBMIT_CHANGESET','onStarting','HELLO','toggleOffline','unknown','HTTPRequest','_onMessage','CollaborativeUndoRedoService','ImageUploadStatusType','SyncedState','b64DecodeUnicode','transformUndoRedo','reject','transformChangesets','size','_tryReconnect','UNIVER_COLLABORATION_CLIENT_PLUGIN','randomBytes','clearOfflineData','[CollaborationEntity]','_commentService','getResourcesRequest','\x20to\x20','PENDING','createUniverCollaborationAdapter','collabWebSocketUrl','OBJECT_PERMISSION_CONFIG_KEY','supports','NEW_CHANGESETS','loadSheet','_handler','_localeService','filter','code','UNIVER_PDF','/-/object/list','_startTelemetryCollaborationNewChangeset','PendingState','createIdentifier','generateRandomId','Optional','UniverCollaborationPlugin','setShowComponents','_prepareTransformSelections','UnitObject','localCacheService','takeUntil','FileId','toPrimitive','getUnitId','concatBytes','IDLE','[PendingState]:\x20received\x20acknowledgement.','result','collaborators','_init','c1Prime','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_isPermissionRej','MSG_FOR_ERROR','/new_changes','_networkConditionService','[OfflineState]:\x20received\x20changeset.','UniverNetworkPlugin','PERSON','_getLoginPath','retryConnectingTimer','url','saveImage','_authzIoService','connection\x20error','Quantity','slice','save\x20fail\x20reason\x20is\x20','trim','onMutationExecutedForCollab','encrypt','csShouldRetryEvent','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','override','JSONX','close$','UNISCRIPT_RUN','_createInitialState','RxDisposable','MentionIoHttpService','_clearTimeoutTimer','ICommandService','_disposed','createInstance','pauseCollaboration','registerHTTPInterceptor','ws://127.0.0.1:8000/universer-api/comb/connect','_onRemoteRejected','disposeWithMe','Module','Disposable','SOCKET_FAILED','object','getCollabEntity$','getUploadOptions','_sessionStatus$','socket\x20close','IImageIoService','_getSignURL','delete','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','session.join-failed','createSocket','_univerInstanceService','_onFetchMissResult','listRoles','endpoint','_getSendChangesetTimeout','serializeCombRequest','_rescheduleHeartbeat','_schedule','isTransformMutationsWithChangesetSuccess','saveAttachment','_HTTPService','uuidv4','_incrementRevisionNumber','has','CONFLICT','Injector','_onUserJoin','_onJoinRoomEvent','_replayCachedMutations','LIVESHARE_OPERATION','update','getRoom','objectType','dispose$','_unitLoaded$','firstValueFrom','LIVESHARE_FETCH_OPERATIONS','getMemberID','method','online$','toDisposable','text-x','/rev/','_initDependencies','SlideCollaborationEntity','AWAITING','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','CommandType','_clearHeartbeatTimer','listCollaborators','NOT_COLLAB','FETCH_MISSING','updateOfflineData','tables','_revisionService','/universer-api/file/{fileID}/sign-url','fetch_missing','ErrorCode','unitInfo$','IConfigService','submit\x20changeset\x20error!','getCurrentRevOfUnit','_transformIMECache','_createHandler','not_collab','open$','roles','objectId','_identity','unitId','clearUnit','INGEST','addImageSourceCache','AwaitingWithPendingState','Workbook','_members','getCollabEntity','session','_showConflictNotification','InsertSheetMutation','appendMutation','\x0aCurrent:\x20','sheets','transformMutationsWithChangeset','symbol','reverse','floor','onRemoteRej','replace','onRemoteAck','columnGroups','telemetry\x20info\x20is\x20not\x20initialized','downloadEndpointUrl','cmd','_resendWithTimeout','[PendingState]:\x20unhandled\x20univer\x20type:\x20','BaseCollaborationEntity','_eventService','_acknowledgeAwaiting','univer-pro.collaboration-client-socket-service','_onRemoteChangeset','loadPdf','JOIN_ROOM_PERMISSION_DENIED','send','enableOfflineEditing','_removeRoom','routeKey','_commentUpdate$','_replaceFileID','AddSlidePageMutation','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onConnectionOpen','[OfflineState]:\x20received\x20acknowledgement.','_upload','_updateUnitPermissionPoint','_acknowledgedAwaitingRevision','iterator','liveShareOperation','_transformSelections','IUniverInstanceService','onTransformIME','getCfgEnableObjInherit','requireSession','findIndex','\x20in\x20_schedule.','uniscriptRunEvent','location','_getCtorByUniverInstanceType','_initUnitPermissionChange','JOINING','_httpService','onRemoteChangeset','defineProperty','max','IAuthzIoService','fetchThroughInterceptors','4236273VDLLod','OPTIONAL','isPermissionRej','changeset','leaveEvent','values','FETCH_MISS','_sessions','_unitInfo$','_createSession','socketService','_refreshUnitPermission','CONFLICT_PROCESSING','refreshPermission','619633DdiKsW','unitID','from','_scheduleCollaborationTimeoutTimer','_unlockTransition','LIVESHARE_TERMINATE','subUnitId','_getDownloadEndpointURL','CombCmd','CollaborationSession','fromCollab','MemberService','UniverInstanceType','WorkbookEditablePermission','ThresholdInterceptorFactory','revision','UUID','[CollaborationSessionService]:\x20socket\x20error','HEARTBEAT_INTERVAL_KEY','list','BoardCollaborationEntity','startsWith','_collaborationUIEventService','withCredentials','_applyRemoteChangeset','/universer-api/snapshot/','_clearRetryConnectingTimer','DependentOn','interceptor','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','onlyLocal','_remoteChangesetQueue','disableLocalCache','hasOwnProperty','apply','session.room-cnt-exceeds','getMember','CHANGESET_REJ','blockRanges','UnitStatus','_showConflictProcessingNotification','registerDependencies','unsubscribe','AuthzIoHttpService','awaiting_with_pending','isInternalEditorID','socket$','_onLocalMutation','_imageSourceCache','_decreaseWaiting','add','type','_undoStacks','/-/object/-/batch_allowed','userID','timeoutTimer','_updateLocalCache','_transformRemoteChangesetByIMECache','error$','_substituteUndoStack','Plugin','fetching\x20missing\x20changesets\x20from\x20','_awaitingChangeset','_sendHeartbeat','subscribe','_emitMembers','_transformStack','status','loadUnitOfRevision','updatePermissionPoint','_maxTotalRetryTimeout','1.0.2','[OfflineState]:\x20received\x20rejection.','3469554ifuFuk','&to=','SheetPermissionInitController','EmptyMutationInfo','session.room-permission-denied','_getAPIPrefixPath','upload','isTransformMutationsWithChangesetFailure','name','loadBase','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','OTHER_CLIENTS_EDITING','_resolveSessionIdentity','_telemetryService','maxSize','fromCharCode','create','CHANGESET_ACK','MoveSlidePageMutation','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','readAsDataURL','getCurrentSelections','DocStateChangeManagerService','liveShareNewHost','default','SnapshotServerOverHTTPService','retryCount','DEFAULT_COLLAB_WEB_SOCKET_URL','SetSelectionsOperation','close','copyFileMeta','getLatestCsReqIdBySid','onPrepareTransformSelections','ICollaborationSocketService','unitDisposed$','onRemoteRetry','_type','toLocal','reduce','attachment','closeSession','_changesetSessionId','/object/','getDeserializedSheetBlock','getDrawingImageAllowSize','_onRemoteRetry','OfflineState','retryConnectingInterval','addHandlerCallback','_entityInit$','ERROR_IMAGE','[CollaborationSession]','DocCollaborationEntity','_permissionService','_transformAndApplyRemoteChangeset','LIVESHARE_NEW_HOST','getTypeOfUnitDisposed$','GLOBAL_ROOMS_CNT_EXCEEDS','forEach','onTransformState','sort','[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.','_undoRedoService','onSendChangeset','UNIVER_BOARD','unitLoaded$','/unit/','?size=','entries','_updateState','\x20-\x20','state','loadBoard','append','_transitionLocked','FileSource','[CollaborationSessionService]','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_changesetReqId','packageName','_logService','resolveWithBasePath','parseProtocolChangeset','_initRequestHeader','getAllPermissionPoint','[DataLoaderService]','_getConfig','FetchingMissState','joinEvent','asObservable','shareReplay','prototype','_getUnitPermissionPoints','UPDATE_CURSOR','_checkMissing','allowed','_updateStatus','getTime','objectActions','458145UWnECA','duration','entityInit$','loadSlide','454408wCKkcW','_getAPIPrefix','decorate','createCollaborator','getCurrentUser','base-ui.attachment-io.service','_localCacheService','getSnapshotAPIPath','sessionStatus$','length','synced','roomInfos','getActiveSheet','candidateSocket','pipe','HEARTBEAT_INTERVAL','CollaborationSocketService','_onConflict','action','CLOSE_ROOM','_initCloseConn','src','event$','_stopTelemetryCollaborationNewChangeset','BASE64','_sendingTimer','onTransformSelections','FAIL','_onCombEvent','_queuedRemoteChangesets','_handleRemoteChangesets','loadUnit','getInterceptPoints','32AjQPCq','LocaleService','cbc','ConflictState','_submitChangeset','uploadFileServerUrl','SHOULD_CLOSE_CONN','_cfgEnableObjInherit','IUndoRedoService','fetchMissingChangesets','_roomCreated$','UNIVER_DOC','getUnit','change$','UnitAction','_toggleOffline','avatar','init','unit','__Key__','_state','resolveUnit','onMissingChangesets','/collaborator','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','awaiting','_listenToNetworkCondition','PSEUDO_FETCH_MISSING_RESULT'];_0x1631=function(){return _0x3d5ebe;};return _0x1631();}let S=class{constructor(_0x1e325c,_0x3d275c,_0x4a23b9){const _0x13b6b4=_0x16128c;this[_0x13b6b4(0x200)]=_0x1e325c,this[_0x13b6b4(0x238)]=_0x3d275c,this[_0x13b6b4(0x215)]=_0x4a23b9;}[_0x16128c(0x1e5)](_0x321441){const _0x2c8a6e=_0x16128c;var _0x54da31,_0x856f3;let _0xda5ecc=this[_0x2c8a6e(0x200)][_0x2c8a6e(0x1f1)](r[_0x2c8a6e(0x4a8)]),{unitId:_0x32467f,subUnitId:_0x3a8ab8}=be(_0x321441),_0x576d80=_0xda5ecc==null?void 0x0:_0xda5ecc['getWorkbookSelections'](_0x32467f)[_0x2c8a6e(0x416)](),_0x437b46=(_0x54da31=this[_0x2c8a6e(0x215)][_0x2c8a6e(0x495)](_0x32467f))==null||(_0x54da31=_0x54da31[_0x2c8a6e(0x474)]())==null?void 0x0:_0x54da31['getSheetId']();if(_0x576d80[_0x2c8a6e(0x471)]===0x0||!_0x32467f||!_0x3a8ab8)return;let _0x468fac=[{'id':r['SetSelectionsOperation']['id'],'params':{'unitId':_0x32467f,'subUnitId':_0x437b46,'selections':t[_0x2c8a6e(0x4b5)][_0x2c8a6e(0x1e9)](_0x576d80)}}],_0x12e788=this[_0x2c8a6e(0x238)][_0x2c8a6e(0x375)](_0x321441,_0x468fac);if(!(0x0,e[_0x2c8a6e(0x334)])(_0x12e788))throw _0x12e788['error'];let _0x1a6e10=(_0x856f3=_0x12e788[_0x2c8a6e(0x275)][0x0])==null||(_0x856f3=_0x856f3['params'])==null?void 0x0:_0x856f3['selections'];if(Array[_0x2c8a6e(0x1e7)](_0x1a6e10)&&_0x1a6e10[_0x2c8a6e(0x471)]){if(_0x1a6e10[_0x2c8a6e(0x471)]===_0x468fac[0x0][_0x2c8a6e(0x4f8)][_0x2c8a6e(0x205)]['length']&&_0x1a6e10[_0x2c8a6e(0x4de)]((_0x5636e8,_0x130928)=>t['Rectangle']['equals'](_0x5636e8[_0x2c8a6e(0x4ed)],_0x468fac[0x0]['params'][_0x2c8a6e(0x205)][_0x130928][_0x2c8a6e(0x4ed)])))return;this[_0x2c8a6e(0x200)][_0x2c8a6e(0x1f1)](t[_0x2c8a6e(0x316)])[_0x2c8a6e(0x2bd)](r[_0x2c8a6e(0x41d)]['id'],{'unitId':_0x32467f,'subUnitId':_0x437b46,'selections':_0x1a6e10});}}};S=y([v(0x0,(0x0,t['Inject'])(t['Injector'])),v(0x1,e['ITransformService']),v(0x2,t[_0x16128c(0x399)])],S);const C=(0x0,t['createIdentifier'])(_0x16128c(0x220));let xe=function(_0x3801f4){const _0x2909ad=_0x16128c;return _0x3801f4[_0x3801f4[_0x2909ad(0x28b)]=0x0]=_0x2909ad(0x28b),_0x3801f4[_0x3801f4[_0x2909ad(0x40c)]=0x1]=_0x2909ad(0x40c),_0x3801f4;}({});function Se(_0xc17cef){const _0x4b82b5=_0x16128c;var _0x29f59e;return!!((_0x29f59e=_0xc17cef['params'])!=null&&_0x29f59e[_0x4b82b5(0x247)]);}const Ce=new Set([r[_0x16128c(0x371)]['id']]),we=new Set([c[_0x16128c(0x38f)]['id'],c['EnsureSlideMasterPageMutation']['id'],c[_0x16128c(0x413)]['id'],c['RemoveSlidePageMutation']['id']]);function Te(_0x1463d8,_0x4510e3=Ce){const _0x12b554=_0x16128c;let _0x5c563a=[];for(let _0x2c5c0a of _0x1463d8){if(_0x4510e3[_0x12b554(0x339)](_0x2c5c0a['id'])){if(_0x5c563a[_0x12b554(0x471)]>0x0)break;_0x5c563a[_0x12b554(0x4da)](_0x2c5c0a);break;}if(Se(_0x2c5c0a)){if(_0x5c563a[_0x12b554(0x471)]>0x0)break;_0x5c563a[_0x12b554(0x4da)](_0x2c5c0a);break;}_0x5c563a['push'](_0x2c5c0a);}return _0x5c563a;}function w(_0x74d703,_0xb4d172,_0x84dddd,_0x5ee3cf,_0x3c6b49){const _0x22670a=_0x16128c;let _0x5df586=Te(_0x74d703),_0x2ba9cf=_0x3c6b49['getCurrentUser'](),_0x55c802=(_0x2ba9cf==null?void 0x0:_0x2ba9cf['userID'])??_0x22670a(0x2c3),_0x25ccf0=(_0x2ba9cf==null?void 0x0:_0x2ba9cf[_0x22670a(0x2a6)])??'unknown';return{'changeset':{'unitID':_0xb4d172,'type':(0x0,e[_0x22670a(0x1ff)])(_0x84dddd[_0x22670a(0x1e2)](_0xb4d172)),'baseRev':_0x5ee3cf[_0x22670a(0x35f)](_0xb4d172),'revision':0x0,'userID':_0x55c802,'memberID':_0x25ccf0,'mutations':_0x5df586},'pendingMutations':_0x74d703[_0x22670a(0x307)](_0x5df586[_0x22670a(0x471)])};}const Ee=w;function De(_0x4ff231,_0x4fa4a7,_0x3ab027,_0x1e4213,_0xa89f9b){const _0x1113a1=_0x16128c;let _0x25b489=Te(_0x4ff231,we),_0x354ea7=_0xa89f9b['getCurrentUser'](),_0x36f898=(_0x354ea7==null?void 0x0:_0x354ea7['userID'])??'unknown',_0x18a6e7=(_0x354ea7==null?void 0x0:_0x354ea7[_0x1113a1(0x2a6)])??'unknown';return{'changeset':{'unitID':_0x4fa4a7,'type':(0x0,e[_0x1113a1(0x1ff)])(_0x3ab027[_0x1113a1(0x1e2)](_0x4fa4a7)),'baseRev':_0x1e4213[_0x1113a1(0x35f)](_0x4fa4a7),'revision':0x0,'userID':_0x36f898,'memberID':_0x18a6e7,'mutations':_0x25b489},'pendingMutations':_0x4ff231[_0x1113a1(0x307)](_0x25b489[_0x1113a1(0x471)])};}function Oe(_0x2af635,_0x4906de,_0x3f23af,_0x3d7127,_0x4f3679){const _0x5a5f1a=_0x16128c;let _0x12cf62=_0x2af635[_0x5a5f1a(0x427)]((_0x25c02a,_0x5d0ec9)=>{const _0x353613=_0x5a5f1a;let _0xead11=_0x25c02a[_0x25c02a[_0x353613(0x471)]-0x1],{id:_0xadb276}=_0xead11??{},{id:_0x3eeb93,type:_0x259d33}=_0x5d0ec9,_0x54e74c=_0x5d0ec9[_0x353613(0x4f8)];if(_0xadb276&&_0xadb276!==_0x3eeb93)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0xadb276+_0x353613(0x447)+_0x3eeb93+'.');if(!_0xead11)return[{'id':_0x3eeb93,'type':_0x259d33,'params':{'unitId':_0x54e74c[_0x353613(0x367)],'textRanges':_0x54e74c['textRanges'],'actions':_0x54e74c['actions']}}];let _0x127750=_0xead11['params'];return ke(_0x127750,_0x54e74c)?[..._0x25c02a[_0x353613(0x307)](0x0,-0x1),{..._0xead11,'id':_0x3eeb93,'type':_0x259d33,'params':{'unitId':_0x54e74c['unitId'],'textRanges':_0x54e74c[_0x353613(0x1d1)],'actions':t[_0x353613(0x30f)]['compose'](_0x127750[_0x353613(0x226)],_0x54e74c['actions'])}}]:[..._0x25c02a,{'id':_0x3eeb93,'type':_0x259d33,'params':{'unitId':_0x54e74c['unitId'],'textRanges':_0x54e74c[_0x353613(0x1d1)],'actions':_0x54e74c['actions']}}];},[]),_0x445418=_0x4f3679[_0x5a5f1a(0x46c)](),_0x1bd9f8=(_0x445418==null?void 0x0:_0x445418[_0x5a5f1a(0x3ee)])??_0x5a5f1a(0x2c3),_0x1f654f=(_0x445418==null?void 0x0:_0x445418[_0x5a5f1a(0x2a6)])??'unknown';return{'changeset':{'unitID':_0x4906de,'type':(0x0,e[_0x5a5f1a(0x1ff)])(_0x3f23af['getUnitType'](_0x4906de)),'baseRev':_0x3d7127[_0x5a5f1a(0x35f)](_0x4906de),'revision':0x0,'userID':_0x1bd9f8,'memberID':_0x1f654f,'mutations':_0x12cf62},'pendingMutations':_0x2af635[_0x5a5f1a(0x307)](_0x2af635[_0x5a5f1a(0x471)])};}function ke(_0x337166,_0x349f48){const _0xb1900a=_0x16128c;return!Ae(_0x337166)&&!Ae(_0x349f48)&&je(_0x337166[_0xb1900a(0x226)],_0x349f48[_0xb1900a(0x226)]);}function Ae(_0x531e48){const _0x5a64ec=_0x16128c;return _0x531e48[_0x5a64ec(0x1ee)]!==void 0x0;}function je(_0x11ff6b,_0x1d2237){return Me(_0x11ff6b)&&Me(_0x1d2237)&&!Pe(_0x11ff6b)&&!Pe(_0x1d2237)&&!Ne(_0x11ff6b)&&!Ne(_0x1d2237);}function Me(_0x3ebd38){const _0x2c0317=_0x16128c;return Fe(_0x3ebd38)[_0x2c0317(0x236)](_0x167277=>T(_0x167277)&&_0x167277['et']==='text-x');}function Ne(_0x1fc560){const _0x12a4c5=_0x16128c;return Fe(_0x1fc560)[_0x12a4c5(0x236)](_0x89b711=>Array[_0x12a4c5(0x1e7)](_0x89b711)||typeof _0x89b711==_0x12a4c5(0x508)||typeof _0x89b711==_0x12a4c5(0x252));}function Pe(_0x1c249e){const _0x336288=_0x16128c;return Fe(_0x1c249e)[_0x336288(0x236)](_0x40c1fc=>!T(_0x40c1fc)||_0x40c1fc['et']!==_0x336288(0x34b)||!Array['isArray'](_0x40c1fc['e'])?!0x1:_0x40c1fc['e'][_0x336288(0x236)](_0x548fc2=>!T(_0x548fc2)||!T(_0x548fc2['body'])?!0x1:Object[_0x336288(0x45c)]['hasOwnProperty'][_0x336288(0x2a7)](_0x548fc2[_0x336288(0x20b)],_0x336288(0x357))||Object[_0x336288(0x45c)][_0x336288(0x3d9)]['call'](_0x548fc2[_0x336288(0x20b)],_0x336288(0x37c))||Object[_0x336288(0x45c)][_0x336288(0x3d9)][_0x336288(0x2a7)](_0x548fc2['body'],_0x336288(0x3de))));}function Fe(_0x1697ef){const _0x8a2751=_0x16128c;if(!Array[_0x8a2751(0x1e7)](_0x1697ef))return[];let _0x1a4292=_0x1697ef[_0x8a2751(0x4af)](_0x8a2751(0x20b))?_0x1697ef:_0x1697ef[_0x8a2751(0x4ee)](_0x187566=>Array[_0x8a2751(0x1e7)](_0x187566)&&_0x187566[_0x8a2751(0x4af)](_0x8a2751(0x20b)));if(!Array[_0x8a2751(0x1e7)](_0x1a4292))return[];let _0x45387a=_0x1a4292['indexOf']('body');return _0x45387a===-0x1?[]:_0x1a4292[_0x8a2751(0x307)](_0x45387a+0x1);}function T(_0x379629){const _0x353bfe=_0x16128c;return typeof _0x379629==_0x353bfe(0x321)&&!!_0x379629&&!Array[_0x353bfe(0x1e7)](_0x379629);}function Ie(_0x57cb6c,_0x46f0e3){const _0x391ecd=_0x16128c;let _0x2f26c6=new i['ReplaySubject'](0x1);return setTimeout(()=>_0x2f26c6[_0x391ecd(0x272)](_0x46f0e3),_0x57cb6c),_0x2f26c6[_0x391ecd(0x45a)]()[_0x391ecd(0x476)]((0x0,i['take'])(0x1));}var Le,Re,ze;let Be=function(_0x1c887d){const _0x40f5c7=_0x16128c;return _0x1c887d[_0x40f5c7(0x354)]=_0x40f5c7(0x362),_0x1c887d[_0x40f5c7(0x2a0)]=_0x40f5c7(0x472),_0x1c887d[_0x40f5c7(0x2d6)]='pending',_0x1c887d[_0x40f5c7(0x34f)]='awaiting',_0x1c887d[_0x40f5c7(0x2be)]=_0x40f5c7(0x3e4),_0x1c887d[_0x40f5c7(0x3b0)]=_0x40f5c7(0x35a),_0x1c887d[_0x40f5c7(0x33a)]=_0x40f5c7(0x293),_0x1c887d[_0x40f5c7(0x256)]='offline',_0x1c887d;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x3d152b,_0x18fc79,_0x33aa57,_0x4e3005,_0x14b359,_0xb5b904,_0xa05d13,_0x19c44d,_0xc81061){const _0x34e27a=_0x16128c;this[_0x34e27a(0x3b9)]=_0x3d152b,this[_0x34e27a(0x3eb)]=_0x18fc79,this['_handler']=_0x14b359,this[_0x34e27a(0x297)]=_0xb5b904,this['_undoRedoService']=_0xa05d13,this['_revisionService']=_0x19c44d,this[_0x34e27a(0x46e)]=_0xc81061,g(this,_0x34e27a(0x3f6),null),g(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x33aa57,this[_0x34e27a(0x4c6)]=_0x4e3005;}['_checkMissing'](_0x5ed27f){const _0xd5abd7=_0x16128c;let _0x1c24e1=this[_0xd5abd7(0x358)][_0xd5abd7(0x35f)](this[_0xd5abd7(0x3b9)]);return _0x5ed27f[_0xd5abd7(0x3c7)]>_0x1c24e1+0x1&&(this[_0xd5abd7(0x2dd)][_0xd5abd7(0x49f)]({'from':_0x1c24e1,'to':_0x5ed27f['revision']-0x1}),!0x0);}['_transformUndoredo'](_0x536000){const _0x3f0d4b=_0x16128c;this[_0x3f0d4b(0x43f)][_0x3f0d4b(0x2ca)](this[_0x3f0d4b(0x3b9)],_0x536000);}['_transformSelections'](_0x506e22){const _0x2852ba=_0x16128c;var _0x2228fb,_0x33141f;(_0x2228fb=(_0x33141f=this[_0x2852ba(0x2dd)])['onTransformSelections'])==null||_0x2228fb['call'](_0x33141f,_0x506e22);}[_0x16128c(0x2ea)](_0x25ff4a){const _0x4348ce=_0x16128c;var _0x4f9b81,_0x4223aa;return((_0x4f9b81=(_0x4223aa=this['_handler'])[_0x4348ce(0x421)])==null?void 0x0:_0x4f9b81['call'](_0x4223aa,_0x25ff4a))??null;}[_0x16128c(0x360)](_0x49ed97){const _0x5e7dde=_0x16128c;var _0xa64d2c,_0x5aed06;return(_0xa64d2c=(_0x5aed06=this['_handler'])[_0x5e7dde(0x39a)])==null?void 0x0:_0xa64d2c[_0x5e7dde(0x2a7)](_0x5aed06,_0x49ed97);}[_0x16128c(0x288)](_0x312ff1){const _0x188fdf=_0x16128c;var _0x1c97e9,_0x4bad10;return(_0x1c97e9=(_0x4bad10=this[_0x188fdf(0x2dd)])['onTransformState'])==null?void 0x0:_0x1c97e9[_0x188fdf(0x2a7)](_0x4bad10,_0x312ff1);}[_0x16128c(0x3f1)](_0x1477e5){const _0x1e8c97=_0x16128c;var _0xd1d569,_0x4ffec9;return((_0xd1d569=(_0x4ffec9=this[_0x1e8c97(0x2dd)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xd1d569[_0x1e8c97(0x2a7)](_0x4ffec9,_0x1477e5))??_0x1477e5;}[_0x16128c(0x2ac)](_0x41af0d){const _0x3f8fe9=_0x16128c;var _0x24e6ae,_0xdf33ee;return((_0x24e6ae=(_0xdf33ee=this[_0x3f8fe9(0x2dd)])[_0x3f8fe9(0x21f)])==null?void 0x0:_0x24e6ae[_0x3f8fe9(0x2a7)](_0xdf33ee,_0x41af0d))??_0x41af0d;}[_0x16128c(0x1ce)](_0x3e73f2){const _0x5b76ca=_0x16128c;if(this[_0x5b76ca(0x3eb)]===t[_0x5b76ca(0x3c4)][_0x5b76ca(0x494)]){let {unitID:_0x48d2ce,mutations:_0x5c63c7,memberID:_0x569a11}=_0x3e73f2,_0x596a74=_0x5c63c7[_0x5b76ca(0x471)]>0x0?_0x5c63c7[0x0][_0x5b76ca(0x4f8)][_0x5b76ca(0x1d1)]:[];if(Array['isArray'](_0x596a74)&&_0x596a74['length']>0x0){var _0x132c32,_0x15f0a4;(_0x132c32=(_0x15f0a4=this[_0x5b76ca(0x2dd)])[_0x5b76ca(0x298)])==null||_0x132c32[_0x5b76ca(0x2a7)](_0x15f0a4,{'unitID':_0x48d2ce,'memberID':_0x569a11,'textRanges':_0x596a74});}}}['_updateLocalCache'](){const _0x10b18c=_0x16128c;var _0x6d6301;(_0x6d6301=this[_0x10b18c(0x46e)])==null||_0x6d6301[_0x10b18c(0x356)](this[_0x10b18c(0x3b9)],this[_0x10b18c(0x3eb)],this[_0x10b18c(0x3f6)],this[_0x10b18c(0x4c6)]);}['_getCurrentRevision'](){const _0x9edd47=_0x16128c;return this[_0x9edd47(0x358)][_0x9edd47(0x35f)](this[_0x9edd47(0x3b9)]);}[_0x16128c(0x338)](){const _0x5deebf=_0x16128c;this[_0x5deebf(0x358)][_0x5deebf(0x4b6)](this[_0x5deebf(0x3b9)]);}[_0x16128c(0x1f8)](_0x5beaaf){const _0x508741=_0x16128c;let _0x23aa03=this['_transformRemoteChangesetByIMECache'](_0x5beaaf);_0x23aa03=this['_transformRemoteChangesetByStateCache'](_0x23aa03);let _0x3a0bc1=this[_0x508741(0x2ea)](_0x23aa03),_0xb69379=(0x0,t[_0x508741(0x25f)])(_0x23aa03[_0x508741(0x208)],this['_commandService'],{'fromCollab':!0x0});if(!_0xb69379[_0x508741(0x2f4)])throw _0x3a0bc1==null||_0x3a0bc1[_0x508741(0x25e)](),_0xb69379['error']instanceof Error?_0xb69379['error']:Error(_0xb69379[_0x508741(0x1d8)]??'[CollaborationState]:\x20apply\x20error!');_0x3a0bc1==null||_0x3a0bc1[_0x508741(0x1ec)](),this[_0x508741(0x360)](_0x23aa03),this[_0x508741(0x288)](_0x23aa03),this[_0x508741(0x4bb)](_0x5beaaf),this[_0x508741(0x398)](_0x23aa03),this['_syncEditingCollabCursor'](_0x23aa03),this[_0x508741(0x338)]();}};let D=class extends E{constructor(_0x38bea2,_0x56b617,_0x7b5930,_0x89e76f,_0x51347e,_0x4e5def,_0x54a9a1,_0x2b0f04,_0x5a6c87,_0x3caabc){const _0x312a76=_0x16128c;super(_0x38bea2,_0x56b617,null,[],_0x7b5930,_0x54a9a1,_0x4e5def,_0x89e76f,_0x3caabc),this['_injector']=_0x51347e,this[_0x312a76(0x451)]=_0x2b0f04,this[_0x312a76(0x238)]=_0x5a6c87,this[_0x312a76(0x2ec)]=_0x3caabc,g(this,_0x312a76(0x3fb),'synced');}[_0x16128c(0x372)](_0x201fd7){const _0x57f20d=_0x16128c;let _0x212ebf=this[_0x57f20d(0x200)][_0x57f20d(0x318)](O,this['unitID'],this[_0x57f20d(0x3eb)],[_0x201fd7],this[_0x57f20d(0x2dd)]);return _0x212ebf[_0x57f20d(0x333)](),_0x212ebf[_0x57f20d(0x3f0)](),_0x212ebf;}[_0x16128c(0x3a5)](_0x77934d){const _0x285a94=_0x16128c;if(this[_0x285a94(0x45f)](_0x77934d))return this[_0x285a94(0x200)][_0x285a94(0x318)](N,this[_0x285a94(0x3b9)],this[_0x285a94(0x3eb)],null,[],null,[_0x77934d],this[_0x285a94(0x2dd)]);try{let _0x19b921=this['_transformService'][_0x285a94(0x375)](_0x77934d,[e[_0x285a94(0x404)]]);if((0x0,e[_0x285a94(0x334)])(_0x19b921)){let {c1Prime:_0x490061}=_0x19b921;return this[_0x285a94(0x1f8)](_0x490061),this;}throw _0x19b921[_0x285a94(0x1d8)];}catch(_0x243ae9){return this[_0x285a94(0x451)][_0x285a94(0x1d8)](_0x243ae9),this[_0x285a94(0x479)](!0x1);}}[_0x16128c(0x479)](_0x4c17aa){const _0x58df8b=_0x16128c;return this[_0x58df8b(0x200)][_0x58df8b(0x318)](j,this[_0x58df8b(0x3b9)],this[_0x58df8b(0x3eb)],null,[],this[_0x58df8b(0x2dd)],_0x4c17aa);}[_0x16128c(0x37b)](_0xc04caf){const _0x465294=_0x16128c;if(_0xc04caf[_0x465294(0x3c7)]<=this[_0x465294(0x4e6)]())return this;throw Error(_0x465294(0x4c2));}['onRemoteRej'](){const _0x3e5230=_0x16128c;throw Error(_0x3e5230(0x2a5));}[_0x16128c(0x424)](){return this;}[_0x16128c(0x2c2)](){const _0x372a2f=_0x16128c;return this['_injector'][_0x372a2f(0x318)](M,this[_0x372a2f(0x3b9)],this[_0x372a2f(0x3eb)],null,[],this[_0x372a2f(0x2dd)]);}['toggleOnline'](){return this;}[_0x16128c(0x289)](){const _0x4f6fff=_0x16128c;throw Error(_0x4f6fff(0x4b2));}['fetchMiss'](){const _0x4eb117=_0x16128c;let _0x5990ba=this[_0x4eb117(0x358)][_0x4eb117(0x35f)](this[_0x4eb117(0x3b9)]);return this[_0x4eb117(0x2dd)][_0x4eb117(0x49f)]({'from':_0x5990ba,'to':0x0}),this[_0x4eb117(0x200)][_0x4eb117(0x318)](N,this[_0x4eb117(0x3b9)],this[_0x4eb117(0x3eb)],null,[],null,[],this[_0x4eb117(0x2dd)]);}};D=y([v(0x3,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x27c)])),v(0x4,(0x0,t[_0x16128c(0x4c0)])(t['Injector'])),v(0x5,t[_0x16128c(0x491)]),v(0x6,t[_0x16128c(0x316)]),v(0x7,t['ILogService']),v(0x8,e[_0x16128c(0x28a)]),v(0x9,(0x0,t[_0x16128c(0x2e7)])(x))],D);let O=Le=class extends E{constructor(_0xd791dc,_0x37d3bb,_0x5e557d,_0x2eea0f,_0x4fa3e0,_0x35a776,_0x548ce2,_0x4604f0,_0x599216,_0x2e9406,_0x505f3f,_0x290da5,_0x1db567,_0x221dbf){const _0x3eeeb3=_0x16128c;super(_0xd791dc,_0x37d3bb,null,_0x5e557d,_0x2eea0f,_0x599216,_0x1db567,_0x35a776,_0x221dbf),this['_injector']=_0x4fa3e0,this['_userManagerService']=_0x548ce2,this[_0x3eeeb3(0x451)]=_0x4604f0,this[_0x3eeeb3(0x20e)]=_0x2e9406,this['_transformService']=_0x505f3f,this[_0x3eeeb3(0x32c)]=_0x290da5,g(this,_0x3eeeb3(0x3fb),'pending'),g(this,_0x3eeeb3(0x4d1),null),g(this,_0x3eeeb3(0x481),null);}['appendMutation'](_0x2469c2){const _0x31c26f=_0x16128c;return this['_pendingMutations'][_0x31c26f(0x4da)](_0x2469c2),this[_0x31c26f(0x3f0)](),this;}[_0x16128c(0x3a5)](_0x46f5af){const _0x10fb25=_0x16128c;if(this[_0x10fb25(0x45f)](_0x46f5af))return this[_0x10fb25(0x2af)](),this[_0x10fb25(0x200)][_0x10fb25(0x318)](N,this[_0x10fb25(0x3b9)],this[_0x10fb25(0x3eb)],null,this[_0x10fb25(0x4c6)],null,[_0x46f5af],this['_handler']);try{let _0x4d4fc6=this[_0x10fb25(0x238)][_0x10fb25(0x375)](_0x46f5af,this['_pendingMutations']);if((0x0,e[_0x10fb25(0x334)])(_0x4d4fc6)){let {c1Prime:_0x514ea7,m2Prime:_0x105c34}=_0x4d4fc6;this[_0x10fb25(0x1f8)](_0x514ea7);let _0x50cd11=this[_0x10fb25(0x200)]['createInstance'](Le,this['unitID'],this['type'],_0x105c34,this['_handler']);this[_0x10fb25(0x2af)]();let _0xfd1247=new Date()[_0x10fb25(0x462)](),_0x5a78e4=this[_0x10fb25(0x4d1)]?Math[_0x10fb25(0x3a7)](this[_0x10fb25(0x4d1)]-_0xfd1247,0x0):this[_0x10fb25(0x330)]();return _0x50cd11['_schedule'](_0x5a78e4),_0x50cd11;}throw _0x4d4fc6[_0x10fb25(0x1d8)];}catch(_0x59609f){return this['_logService'][_0x10fb25(0x1d8)](_0x59609f),this[_0x10fb25(0x479)](!0x1);}}[_0x16128c(0x37b)](_0x382050){const _0x1bc967=_0x16128c;if(_0x382050[_0x1bc967(0x3c7)]<=this[_0x1bc967(0x4e6)]())return this;throw Error(_0x1bc967(0x2f3));}[_0x16128c(0x379)](){const _0x17d06c=_0x16128c;throw Error(_0x17d06c(0x503));}[_0x16128c(0x424)](){return this;}[_0x16128c(0x2c2)](){const _0x18b0cc=_0x16128c;return this['_clearScheduledTask'](),this[_0x18b0cc(0x200)][_0x18b0cc(0x318)](M,this[_0x18b0cc(0x3b9)],this[_0x18b0cc(0x3eb)],null,this[_0x18b0cc(0x4c6)],this['_handler']);}['toggleOnline'](){return this;}['_schedule'](_0x4fbd98){const _0x59c0d3=_0x16128c;let _0x4f6368=_0x4fbd98??this[_0x59c0d3(0x330)]();this[_0x59c0d3(0x4d1)]=new Date()['getTime']()+_0x4f6368,this['_sendingTimer']=setTimeout(()=>{const _0x52f860=_0x59c0d3;this[_0x52f860(0x2af)]();let _0x1eb77e=null;switch(this[_0x52f860(0x3eb)]){case t[_0x52f860(0x3c4)][_0x52f860(0x4d8)]:_0x1eb77e=w(this[_0x52f860(0x4c6)],this[_0x52f860(0x3b9)],this[_0x52f860(0x32c)],this[_0x52f860(0x358)],this[_0x52f860(0x4b8)]);break;case t[_0x52f860(0x3c4)][_0x52f860(0x494)]:_0x1eb77e=this[_0x52f860(0x4c6)][_0x52f860(0x4de)](_0x1655ce=>_0x1655ce['id']===n['RichTextEditingMutation']['id'])?Oe(this[_0x52f860(0x4c6)],this[_0x52f860(0x3b9)],this[_0x52f860(0x32c)],this[_0x52f860(0x358)],this['_userManagerService']):w(this[_0x52f860(0x4c6)],this[_0x52f860(0x3b9)],this[_0x52f860(0x32c)],this[_0x52f860(0x358)],this[_0x52f860(0x4b8)]);break;case t[_0x52f860(0x3c4)][_0x52f860(0x4fd)]:_0x1eb77e=De(this['_pendingMutations'],this['unitID'],this[_0x52f860(0x32c)],this[_0x52f860(0x358)],this[_0x52f860(0x4b8)]);break;case t[_0x52f860(0x3c4)][_0x52f860(0x2e1)]:_0x1eb77e=Ee(this[_0x52f860(0x4c6)],this['unitID'],this[_0x52f860(0x32c)],this[_0x52f860(0x358)],this[_0x52f860(0x4b8)]);break;case t['UniverInstanceType'][_0x52f860(0x441)]:_0x1eb77e=w(this[_0x52f860(0x4c6)],this[_0x52f860(0x3b9)],this[_0x52f860(0x32c)],this['_revisionService'],this[_0x52f860(0x4b8)]);break;case t['UniverInstanceType']['UNIVER_BASE']:_0x1eb77e=w(this['_pendingMutations'],this[_0x52f860(0x3b9)],this[_0x52f860(0x32c)],this[_0x52f860(0x358)],this[_0x52f860(0x4b8)]);break;default:throw Error(_0x52f860(0x381)+this[_0x52f860(0x3eb)]+_0x52f860(0x39e));}let {changeset:_0x376a10,pendingMutations:_0xa985de}=_0x1eb77e;this[_0x52f860(0x2dd)][_0x52f860(0x440)](_0x376a10);let _0x4a601c=_0xa985de[_0x52f860(0x471)]?this[_0x52f860(0x200)]['createInstance'](A,this[_0x52f860(0x3b9)],this[_0x52f860(0x3eb)],_0x376a10,_0xa985de,this[_0x52f860(0x2dd)],void 0x0):this[_0x52f860(0x200)][_0x52f860(0x318)](k,this[_0x52f860(0x3b9)],this['type'],_0x376a10,this['_handler']);_0x4a601c[_0x52f860(0x3f0)](),this['_handler']['onStateChange'](this,_0x4a601c);},_0x4f6368);}[_0x16128c(0x330)](){const _0x211232=_0x16128c;let _0x2cece1=this[_0x211232(0x20e)][_0x211232(0x1dd)](m);return(_0x2cece1==null?void 0x0:_0x2cece1['sendChangesetTimeout'])??0x7d0;}[_0x16128c(0x289)](){const _0x9898bd=_0x16128c;throw Error(_0x9898bd(0x1ed));}[_0x16128c(0x2af)](){const _0x44bd46=_0x16128c;this[_0x44bd46(0x481)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x44bd46(0x481)]=null);}[_0x16128c(0x479)](_0x1604a1){const _0x5e639c=_0x16128c;return this[_0x5e639c(0x2af)](),this[_0x5e639c(0x200)][_0x5e639c(0x318)](j,this[_0x5e639c(0x3b9)],this[_0x5e639c(0x3eb)],null,this[_0x5e639c(0x4c6)],this[_0x5e639c(0x2dd)],_0x1604a1);}};O=Le=y([v(0x4,(0x0,t[_0x16128c(0x4c0)])(t['Injector'])),v(0x5,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x27c)])),v(0x6,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x203)])),v(0x7,t[_0x16128c(0x22c)]),v(0x8,t[_0x16128c(0x316)]),v(0x9,t[_0x16128c(0x35d)]),v(0xa,e[_0x16128c(0x28a)]),v(0xb,t[_0x16128c(0x399)]),v(0xc,t['IUndoRedoService']),v(0xd,(0x0,t['Optional'])(x))],O);let k=Re=class extends E{constructor(_0x13180f,_0x57c8bf,_0x5e5682,_0x24e690,_0x1b16b0,_0x689a3e,_0x2afb15,_0x2aff94,_0xbef22d,_0x363300,_0x2c9eb1){const _0x2f7c02=_0x16128c;super(_0x13180f,_0x57c8bf,_0x5e5682,[],_0x24e690,_0x2afb15,_0x363300,_0x689a3e,_0x2c9eb1),this['_injector']=_0x1b16b0,this[_0x2f7c02(0x451)]=_0x2aff94,this[_0x2f7c02(0x238)]=_0xbef22d,g(this,_0x2f7c02(0x3fb),_0x2f7c02(0x4a2)),g(this,'_resendTimeout',0x0),g(this,_0x2f7c02(0x3fe),0x0),g(this,_0x2f7c02(0x1f2),void 0x0),g(this,_0x2f7c02(0x28e),void 0x0);}[_0x16128c(0x372)](_0x56327d){const _0x34643f=_0x16128c;this[_0x34643f(0x2af)]();let _0x574af1=this[_0x34643f(0x200)][_0x34643f(0x318)](A,this['unitID'],this[_0x34643f(0x3eb)],this['_awaitingChangeset'],[_0x56327d],this[_0x34643f(0x2dd)],this[_0x34643f(0x1f2)]);return _0x574af1[_0x34643f(0x3f0)](),_0x574af1;}[_0x16128c(0x3a5)](_0x4fa9b2){const _0x3e8a09=_0x16128c;if(this[_0x3e8a09(0x45f)](_0x4fa9b2))return this[_0x3e8a09(0x2af)](),this[_0x3e8a09(0x200)][_0x3e8a09(0x318)](N,this[_0x3e8a09(0x3b9)],this[_0x3e8a09(0x3eb)],this['_awaitingChangeset'],[],null,[_0x4fa9b2],this[_0x3e8a09(0x2dd)]);try{let _0x262db5=this['_transformService']['transformChangesets']([_0x4fa9b2],[this[_0x3e8a09(0x3f6)]],!0x1);if((0x0,e[_0x3e8a09(0x23c)])(_0x262db5)){let {c1Prime:_0x5f4c43,c2Prime:_0x4ad617}=_0x262db5;this[_0x3e8a09(0x1f8)](_0x5f4c43[0x0]),_0x4ad617[0x0][_0x3e8a09(0x28c)]=this[_0x3e8a09(0x4e6)](),this[_0x3e8a09(0x2af)]();let _0x4d2534=this[_0x3e8a09(0x200)][_0x3e8a09(0x318)](Re,this[_0x3e8a09(0x3b9)],this[_0x3e8a09(0x3eb)],_0x4ad617[0x0],this[_0x3e8a09(0x2dd)]);return _0x4d2534[_0x3e8a09(0x3f0)](),_0x4d2534;}throw _0x262db5[_0x3e8a09(0x1d8)];}catch(_0x46ff3d){return this['_logService'][_0x3e8a09(0x1d8)](_0x46ff3d),this['_onConflict'](!0x1);}}[_0x16128c(0x37b)](_0x41dadc){const _0x323ffc=_0x16128c;this[_0x323ffc(0x2af)]();let _0x4c33af=this[_0x323ffc(0x358)][_0x323ffc(0x35f)](this[_0x323ffc(0x3b9)]);if(_0x41dadc[_0x323ffc(0x3c7)]<=_0x4c33af)return this;if(this[_0x323ffc(0x45f)](_0x41dadc))return this['_injector'][_0x323ffc(0x318)](N,this['unitID'],this[_0x323ffc(0x3eb)],this[_0x323ffc(0x3f6)],[],_0x41dadc[_0x323ffc(0x3c7)],[],this[_0x323ffc(0x2dd)]);this[_0x323ffc(0x338)]();let _0xd7adab=this[_0x323ffc(0x200)][_0x323ffc(0x318)](D,this[_0x323ffc(0x3b9)],this[_0x323ffc(0x3eb)],this[_0x323ffc(0x2dd)]);return _0xd7adab['_updateLocalCache'](),_0xd7adab;}[_0x16128c(0x379)](_0x36d140){const _0x34f321=_0x16128c;return this[_0x34f321(0x479)](!!(_0x36d140!=null&&_0x36d140['isPermissionRej']));}['onRemoteRetry'](_0x2aedda){const _0x248c52=_0x16128c;return this['_maxTotalRetryTimeout']>He?this['toggleOffline']():(this[_0x248c52(0x1f2)]=Ie(this[_0x248c52(0x267)],{'timeout':this['_resendTimeout'],'reqId':_0x2aedda['reqId']}),this[_0x248c52(0x28e)]=this[_0x248c52(0x1f2)][_0x248c52(0x3f8)](({reqId:_0x59dced,timeout:_0x305b0f})=>{this['_resendWithTimeout'](_0x59dced,_0x305b0f);}),this);}[_0x16128c(0x2c2)](){const _0x4f7828=_0x16128c;return this['_clearScheduledTask'](),this['_injector'][_0x4f7828(0x318)](M,this[_0x4f7828(0x3b9)],this['type'],this[_0x4f7828(0x3f6)],[],this['_handler']);}[_0x16128c(0x284)](){return this;}[_0x16128c(0x289)](){const _0xf9ce18=_0x16128c;this[_0xf9ce18(0x2dd)][_0xf9ce18(0x440)](this[_0xf9ce18(0x3f6)]);}[_0x16128c(0x479)](_0x22491a){const _0x1644ae=_0x16128c;return this[_0x1644ae(0x2af)](),this[_0x1644ae(0x200)][_0x1644ae(0x318)](j,this[_0x1644ae(0x3b9)],this[_0x1644ae(0x3eb)],this[_0x1644ae(0x3f6)],[],this[_0x1644ae(0x2dd)],_0x22491a);}[_0x16128c(0x380)](_0x22150e,_0xb367d0){const _0x272703=_0x16128c;var _0x971901;_0x22150e===((_0x971901=this[_0x272703(0x3f6)])==null?void 0x0:_0x971901[_0x272703(0x280)])&&(this[_0x272703(0x289)](),this[_0x272703(0x267)]=_0xb367d0===0x0?0x3e8:Math[_0x272703(0x4e4)](_0xb367d0*0x2,Ve),this[_0x272703(0x3fe)]+=this['_resendTimeout']);}[_0x16128c(0x2af)](){const _0x5cd7ed=_0x16128c;var _0x3f2578;(_0x3f2578=this['_sender'])==null||_0x3f2578[_0x5cd7ed(0x3e2)](),this[_0x5cd7ed(0x267)]=0x0,this[_0x5cd7ed(0x3fe)]=0x0;}};k=Re=y([v(0x4,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x33b)])),v(0x5,(0x0,t[_0x16128c(0x4c0)])(e['RevisionService'])),v(0x6,t['ICommandService']),v(0x7,t[_0x16128c(0x22c)]),v(0x8,e[_0x16128c(0x28a)]),v(0x9,t[_0x16128c(0x491)]),v(0xa,(0x0,t[_0x16128c(0x2e7)])(x))],k);let A=ze=class extends E{constructor(_0x23e80,_0x159da2,_0x506564,_0x33ec48,_0x5b9c02,_0x1dfd2f,_0x1ebeb5,_0x445dfe,_0x567154,_0x4a2151,_0x1b7725,_0x5c6dcc,_0x3d73e5){const _0x29de19=_0x16128c;super(_0x23e80,_0x159da2,_0x506564,_0x33ec48,_0x5b9c02,_0x567154,_0x5c6dcc,_0x445dfe,_0x3d73e5),this['_injector']=_0x1ebeb5,this[_0x29de19(0x451)]=_0x4a2151,this[_0x29de19(0x238)]=_0x1b7725,this[_0x29de19(0x2ec)]=_0x3d73e5,g(this,_0x29de19(0x3fb),_0x29de19(0x3e4)),g(this,_0x29de19(0x267),0x0),g(this,_0x29de19(0x3fe),0x0),g(this,'_resendTimer',void 0x0),g(this,_0x29de19(0x28e),void 0x0),_0x1dfd2f&&(this['_resendTimer']=_0x1dfd2f,this['_sender']=this[_0x29de19(0x1f2)][_0x29de19(0x3f8)](({reqId:_0x4b8b3c,timeout:_0x4d17dc})=>{const _0x30b85e=_0x29de19;this[_0x30b85e(0x380)](_0x4b8b3c,_0x4d17dc);}));}[_0x16128c(0x372)](_0x2dcd79){const _0x20a820=_0x16128c;return this[_0x20a820(0x4c6)]['push'](_0x2dcd79),this;}['onRemoteChangeset'](_0x24e83a){const _0x37bce8=_0x16128c;if(this['_checkMissing'](_0x24e83a))return this['_clearScheduledTask'](),this[_0x37bce8(0x200)][_0x37bce8(0x318)](N,this[_0x37bce8(0x3b9)],this['type'],this[_0x37bce8(0x3f6)],this[_0x37bce8(0x4c6)],null,[_0x24e83a],this[_0x37bce8(0x2dd)]);try{let _0x1de075=this['_transformService'][_0x37bce8(0x2cc)]([_0x24e83a],[this['_awaitingChangeset']],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x1de075)){let {c1Prime:_0x5b2422,c2Prime:_0x1d3340}=_0x1de075,_0x2c396c=this[_0x37bce8(0x238)]['transformMutationsWithChangeset'](_0x5b2422[0x0],this['_pendingMutations']);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x2c396c)){let {c1Prime:_0x444810,m2Prime:_0x22f84f}=_0x2c396c;return this[_0x37bce8(0x1f8)](_0x444810),_0x1d3340[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this['_injector'][_0x37bce8(0x318)](ze,this[_0x37bce8(0x3b9)],this[_0x37bce8(0x3eb)],_0x1d3340[0x0],_0x22f84f,this[_0x37bce8(0x2dd)],void 0x0);}throw _0x2c396c[_0x37bce8(0x1d8)];}throw _0x1de075[_0x37bce8(0x1d8)];}catch(_0xd41fc8){return this['_logService']['error'](_0xd41fc8),this[_0x37bce8(0x479)](!0x1);}}['onRemoteAck'](_0x4197f1){const _0x137b3d=_0x16128c;this[_0x137b3d(0x2af)]();let _0x44ab6f=this[_0x137b3d(0x4e6)]();if(_0x4197f1[_0x137b3d(0x3c7)]<=_0x44ab6f)return this;if(this[_0x137b3d(0x45f)](_0x4197f1))return this[_0x137b3d(0x200)][_0x137b3d(0x318)](N,this[_0x137b3d(0x3b9)],this['type'],this[_0x137b3d(0x3f6)],this['_pendingMutations'],_0x4197f1[_0x137b3d(0x3c7)],[],this[_0x137b3d(0x2dd)]);this[_0x137b3d(0x338)]();let _0xfc20a5=this[_0x137b3d(0x200)][_0x137b3d(0x318)](O,this[_0x137b3d(0x3b9)],this[_0x137b3d(0x3eb)],this[_0x137b3d(0x4c6)],this[_0x137b3d(0x2dd)]);return _0xfc20a5[_0x137b3d(0x333)](),_0xfc20a5[_0x137b3d(0x3f0)](),_0xfc20a5;}[_0x16128c(0x379)](_0x5830b3){const _0x40d175=_0x16128c;return this[_0x40d175(0x479)](!!(_0x5830b3!=null&&_0x5830b3['isPermissionRej']));}[_0x16128c(0x424)](_0x4f281e){const _0x168c52=_0x16128c;return this['_maxTotalRetryTimeout']>He?this[_0x168c52(0x2c2)]():(this[_0x168c52(0x1f2)]=Ie(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x4f281e[_0x168c52(0x280)]}),this[_0x168c52(0x28e)]=this[_0x168c52(0x1f2)][_0x168c52(0x3f8)](({reqId:_0x3de15d,timeout:_0x1ab3f5})=>{const _0x432814=_0x168c52;this[_0x432814(0x380)](_0x3de15d,_0x1ab3f5);}),this);}[_0x16128c(0x2c2)](){const _0x4d4ac0=_0x16128c;return this[_0x4d4ac0(0x2af)](),this[_0x4d4ac0(0x200)][_0x4d4ac0(0x318)](M,this[_0x4d4ac0(0x3b9)],this['type'],this[_0x4d4ac0(0x3f6)],this[_0x4d4ac0(0x4c6)],this[_0x4d4ac0(0x2dd)]);}['toggleOnline'](){return this;}[_0x16128c(0x289)](){const _0x143ed8=_0x16128c;this[_0x143ed8(0x2dd)][_0x143ed8(0x440)](this[_0x143ed8(0x3f6)]);}[_0x16128c(0x479)](_0x5dd3ad){const _0x373300=_0x16128c;return this[_0x373300(0x2af)](),this['_injector'][_0x373300(0x318)](j,this[_0x373300(0x3b9)],this[_0x373300(0x3eb)],null,this[_0x373300(0x4c6)],this[_0x373300(0x2dd)],_0x5dd3ad);}[_0x16128c(0x380)](_0x45ce4c,_0x22c688){const _0x42d785=_0x16128c;var _0x431250;_0x45ce4c===((_0x431250=this['_awaitingChangeset'])==null?void 0x0:_0x431250[_0x42d785(0x280)])&&(this[_0x42d785(0x289)](),this['_resendTimeout']=_0x22c688===0x0?0x3e8:Math[_0x42d785(0x4e4)](_0x22c688*0x2,Ve),this[_0x42d785(0x3fe)]+=this[_0x42d785(0x267)]);}[_0x16128c(0x2af)](){const _0x3a8c4a=_0x16128c;var _0x2c61a5;(_0x2c61a5=this[_0x3a8c4a(0x28e)])==null||_0x2c61a5[_0x3a8c4a(0x3e2)](),this[_0x3a8c4a(0x267)]=0x0,this[_0x3a8c4a(0x3fe)]=0x0;}};A=ze=y([v(0x6,(0x0,t[_0x16128c(0x4c0)])(t['Injector'])),v(0x7,(0x0,t['Inject'])(e[_0x16128c(0x27c)])),v(0x8,t[_0x16128c(0x316)]),v(0x9,t[_0x16128c(0x22c)]),v(0xa,e['ITransformService']),v(0xb,t['IUndoRedoService']),v(0xc,(0x0,t[_0x16128c(0x2e7)])(x))],A);let j=class extends E{constructor(_0x3182f6,_0x33e13d,_0x14b7c7,_0x21e145,_0x46edff,_0x43fa61=!0x1,_0x3bcbd1,_0x578644,_0xe5304,_0x155131,_0x41bec6,_0x642be4,_0x2fcabb){const _0x3ab4c1=_0x16128c;super(_0x3182f6,_0x33e13d,_0x14b7c7,_0x21e145,_0x46edff,_0x578644,_0xe5304,_0x155131,_0x2fcabb),this[_0x3ab4c1(0x2f9)]=_0x43fa61,this[_0x3ab4c1(0x436)]=_0x3bcbd1,this[_0x3ab4c1(0x2de)]=_0x41bec6,this[_0x3ab4c1(0x3ce)]=_0x642be4,this[_0x3ab4c1(0x2ec)]=_0x2fcabb,g(this,'status','conflict'),this['_disableEditing'](),this[_0x3ab4c1(0x3e0)](),this[_0x3ab4c1(0x506)]();}[_0x16128c(0x372)](){return this;}[_0x16128c(0x3a5)](){return this;}[_0x16128c(0x37b)](){return this;}[_0x16128c(0x379)](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x16128c(0x284)](){return this;}['resend'](){const _0x252dda=_0x16128c;throw Error(_0x252dda(0x1d2));}async[_0x16128c(0x506)](){const _0x1123cd=_0x16128c;var _0x3893a6,_0x3a619a;await((_0x3893a6=this[_0x1123cd(0x46e)])==null||(_0x3a619a=_0x3893a6['backupOfflineData'])==null?void 0x0:_0x3a619a[_0x1123cd(0x2a7)](_0x3893a6,this[_0x1123cd(0x3b9)],_0x1123cd(0x293))[_0x1123cd(0x4b1)](()=>void 0x0));try{var _0x524c13;await((_0x524c13=this[_0x1123cd(0x46e)])==null?void 0x0:_0x524c13[_0x1123cd(0x2d1)](this[_0x1123cd(0x3b9)]));}catch{this['_collaborationUIEventService'][_0x1123cd(0x4e7)]({'id':_0x1123cd(0x1eb),'unitID':this[_0x1123cd(0x3b9)]});return;}this[_0x1123cd(0x370)]();}[_0x16128c(0x3e0)](){const _0x331744=_0x16128c;this['_collaborationUIEventService'][_0x331744(0x4e7)]({'id':_0x331744(0x3b6)});}['_showConflictNotification'](){const _0x2e172c=_0x16128c;this[_0x2e172c(0x2f9)]?this[_0x2e172c(0x3ce)]['emitEvent']({'id':_0x2e172c(0x4cd)}):this[_0x2e172c(0x3ce)][_0x2e172c(0x4e7)]({'id':_0x2e172c(0x33a)});}['_disableEditing'](){const _0x546358=_0x16128c;this[_0x546358(0x436)][_0x546358(0x3fd)](new r[(_0x546358(0x3c5))](this[_0x546358(0x3b9)])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x1f5)])),v(0x7,t['ICommandService']),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t[_0x16128c(0x4c0)])(e['RevisionService'])),v(0xa,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x48a)])),v(0xb,(0x0,t['Inject'])(_)),v(0xc,(0x0,t[_0x16128c(0x2e7)])(x))],j);let M=class extends E{constructor(_0x4f7260,_0xec247e,_0x4c95c9,_0x32afab,_0x37537a,_0x1244fe,_0x225382,_0x2ec8c0,_0x5884e7,_0x51d590){const _0x1ca1e2=_0x16128c;super(_0x4f7260,_0xec247e,_0x4c95c9,_0x32afab,_0x37537a,_0x2ec8c0,_0x5884e7,_0x225382,_0x51d590),this[_0x1ca1e2(0x200)]=_0x1244fe,g(this,_0x1ca1e2(0x3fb),'offline');}['appendMutation'](_0xcd9623){const _0x2d3e18=_0x16128c;return this[_0x2d3e18(0x4c6)][_0x2d3e18(0x4da)](_0xcd9623),this[_0x2d3e18(0x3f0)](),this;}[_0x16128c(0x3a5)](_0x514725){const _0x2f8cda=_0x16128c;throw Error(_0x2f8cda(0x2fd));}[_0x16128c(0x37b)](){const _0x4f5c67=_0x16128c;throw Error(_0x4f5c67(0x392));}[_0x16128c(0x379)](){const _0x24fb1f=_0x16128c;throw Error(_0x24fb1f(0x400));}[_0x16128c(0x424)](){return this;}[_0x16128c(0x2c2)](){return this;}['toggleOnline'](){const _0x2134d7=_0x16128c;let {_injector:_0x3ea7d5,_pendingMutations:_0x171a97,_awaitingChangeset:_0x4aba5e,unitID:_0x2ecf96,_handler:_0x421d4b,type:_0x3cdf3}=this,_0x876b29=Ue(_0x3ea7d5,_0x2ecf96,_0x3cdf3,_0x4aba5e,_0x171a97,_0x421d4b);return _0x876b29 instanceof O?_0x876b29[_0x2134d7(0x333)]():(_0x876b29 instanceof A||_0x876b29 instanceof k)&&_0x876b29[_0x2134d7(0x289)](),_0x876b29;}['resend'](){const _0x35abd1=_0x16128c;throw Error(_0x35abd1(0x414));}};M=y([v(0x5,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x33b)])),v(0x6,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x27c)])),v(0x7,t['ICommandService']),v(0x8,t[_0x16128c(0x491)]),v(0x9,(0x0,t[_0x16128c(0x2e7)])(x))],M);let N=class extends E{constructor(_0x29ff62,_0x2c6f2f,_0x29d797,_0x1313c4,_0x3bd28d,_0x474939,_0x3dfd85,_0x26bb42,_0x33875f,_0x321147,_0x5996e8,_0x801164,_0x3c3aac,_0x4c15d0){const _0x29c3e3=_0x16128c;super(_0x29ff62,_0x2c6f2f,_0x29d797,_0x1313c4,_0x3dfd85,_0x5996e8,_0x801164,_0x33875f,_0x4c15d0),this[_0x29c3e3(0x395)]=_0x3bd28d,this[_0x29c3e3(0x485)]=_0x474939,this[_0x29c3e3(0x200)]=_0x26bb42,this[_0x29c3e3(0x451)]=_0x321147,this[_0x29c3e3(0x238)]=_0x3c3aac,this[_0x29c3e3(0x2ec)]=_0x4c15d0,g(this,_0x29c3e3(0x3fb),_0x29c3e3(0x35a));}['onMissedChangesetFetched'](_0x368de7){const _0x68ca7b=_0x16128c;try{if(this['_handleRemoteChangesets'](_0x368de7)[_0x68ca7b(0x225)])throw Error(_0x68ca7b(0x30d));if(this[_0x68ca7b(0x486)]([...this[_0x68ca7b(0x485)]][_0x68ca7b(0x43d)]((_0x26d74d,_0x2a340e)=>_0x26d74d[_0x68ca7b(0x3c7)]-_0x2a340e[_0x68ca7b(0x3c7)]))[_0x68ca7b(0x225)])return this[_0x68ca7b(0x485)]=[],this['_updateLocalCache'](),this['_handler']['onMissingChangesets']({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xfd47bb=this[_0x68ca7b(0x3f6)],_0x4a2990=this[_0x68ca7b(0x4c6)],_0x1ae192;if(_0xfd47bb&&_0x4a2990['length']!==0x0)_0x1ae192=this[_0x68ca7b(0x200)][_0x68ca7b(0x318)](A,this[_0x68ca7b(0x3b9)],this[_0x68ca7b(0x3eb)],_0xfd47bb,_0x4a2990,this[_0x68ca7b(0x2dd)],void 0x0);else{if(_0xfd47bb&&_0x4a2990['length']===0x0)_0xfd47bb['baseRev']=this[_0x68ca7b(0x4e6)](),_0x1ae192=this['_injector'][_0x68ca7b(0x318)](k,this[_0x68ca7b(0x3b9)],this['type'],_0xfd47bb,this[_0x68ca7b(0x2dd)]);else{if(_0x4a2990[_0x68ca7b(0x471)]!==0x0){let _0x5e6146=this[_0x68ca7b(0x200)]['createInstance'](O,this[_0x68ca7b(0x3b9)],this[_0x68ca7b(0x3eb)],_0x4a2990,this['_handler']);_0x5e6146['_schedule'](),_0x1ae192=_0x5e6146;}else _0x1ae192=this[_0x68ca7b(0x200)][_0x68ca7b(0x318)](D,this['unitID'],this['type'],this[_0x68ca7b(0x2dd)]);}}return _0x1ae192[_0x68ca7b(0x3f0)](),_0x1ae192;}catch(_0x52eb39){return this[_0x68ca7b(0x451)][_0x68ca7b(0x1d8)](_0x68ca7b(0x264),_0x68ca7b(0x4f6),_0x52eb39),this[_0x68ca7b(0x200)][_0x68ca7b(0x318)](j,this[_0x68ca7b(0x3b9)],this[_0x68ca7b(0x3eb)],this['_awaitingChangeset'],this[_0x68ca7b(0x4c6)],this['_handler'],!0x1);}}['_handleRemoteChangesets'](_0x15ecb7){const _0x23eb7f=_0x16128c;this[_0x23eb7f(0x219)]();for(let _0x3b1c16=0x0;_0x3b1c16<_0x15ecb7[_0x23eb7f(0x471)];_0x3b1c16++){let _0x5baa7d=_0x15ecb7[_0x3b1c16],_0x4d0a46=this['_getCurrentRevision']();if(!(_0x5baa7d[_0x23eb7f(0x3c7)]<=_0x4d0a46)){if(_0x5baa7d[_0x23eb7f(0x3c7)]>_0x4d0a46+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x5baa7d)){this['_acknowledgeAwaiting']();continue;}this[_0x23eb7f(0x437)](_0x5baa7d),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x16128c(0x437)](_0x553845){const _0xde33e5=_0x16128c;let _0x35165d=_0x553845,_0x26c606=this[_0xde33e5(0x3f6)];if(_0x26c606){let _0x11a165=this[_0xde33e5(0x238)][_0xde33e5(0x2cc)]([_0x553845],[_0x26c606],!0x1);if(!(0x0,e[_0xde33e5(0x23c)])(_0x11a165))throw _0x11a165[_0xde33e5(0x1d8)];_0x35165d=_0x11a165['c1Prime'][0x0],_0x26c606=_0x11a165[_0xde33e5(0x21c)][0x0];}let _0x25568a=this['_pendingMutations'];if(_0x25568a[_0xde33e5(0x471)]){let _0x9ffe7f=this['_transformService'][_0xde33e5(0x375)](_0x35165d,_0x25568a);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x9ffe7f))throw _0x9ffe7f[_0xde33e5(0x1d8)];_0x35165d=_0x9ffe7f[_0xde33e5(0x2f7)],_0x25568a=_0x9ffe7f[_0xde33e5(0x275)];}this[_0xde33e5(0x1f8)](_0x35165d),_0x26c606&&(_0x26c606[_0xde33e5(0x28c)]=this[_0xde33e5(0x4e6)]()),this[_0xde33e5(0x3f6)]=_0x26c606,this['_pendingMutations']=_0x25568a;}[_0x16128c(0x219)](){const _0x11a85a=_0x16128c;if(!this[_0x11a85a(0x3f6)]||this[_0x11a85a(0x395)]==null)return;let _0xf041d=this[_0x11a85a(0x4e6)]();if(this[_0x11a85a(0x395)]<=_0xf041d)throw Error(_0x11a85a(0x3d5)+this['_acknowledgedAwaitingRevision']+'.');this[_0x11a85a(0x395)]===_0xf041d+0x1&&this[_0x11a85a(0x384)]();}[_0x16128c(0x384)](){const _0x13e3ca=_0x16128c;this[_0x13e3ca(0x338)](),this['_awaitingChangeset']=null,this['_acknowledgedAwaitingRevision']=null;}['_isEchoedAwaitingChangeset'](_0x3200bf){const _0x62c6ba=_0x16128c;let _0x16a12d=this[_0x62c6ba(0x3f6)];return!_0x16a12d||!_0x16a12d[_0x62c6ba(0x4ac)]||_0x16a12d[_0x62c6ba(0x280)]===null||_0x16a12d[_0x62c6ba(0x280)]===void 0x0?!0x1:_0x3200bf[_0x62c6ba(0x3b9)]===_0x16a12d[_0x62c6ba(0x3b9)]&&_0x3200bf[_0x62c6ba(0x4ac)]===_0x16a12d['sid']&&_0x3200bf[_0x62c6ba(0x280)]===_0x16a12d['reqId'];}[_0x16128c(0x289)](){const _0x492562=_0x16128c;throw Error(_0x492562(0x2f8));}[_0x16128c(0x372)](_0x4ca150){const _0x14c469=_0x16128c;return this[_0x14c469(0x4c6)][_0x14c469(0x4da)](_0x4ca150),this;}[_0x16128c(0x3a5)](_0x3555f5){const _0x343890=_0x16128c;return this[_0x343890(0x485)][_0x343890(0x4da)](_0x3555f5),this;}[_0x16128c(0x37b)](_0x209ea6){const _0x1eb231=_0x16128c;if(this['_awaitingChangeset']){let _0x8e678c=this[_0x1eb231(0x4e6)]();return _0x209ea6['revision']<=_0x8e678c||(_0x8e678c+0x1===_0x209ea6[_0x1eb231(0x3c7)]?(this['_incrementRevisionNumber'](),this[_0x1eb231(0x3f6)]=null,this[_0x1eb231(0x395)]=null):this[_0x1eb231(0x395)]=_0x209ea6[_0x1eb231(0x3c7)]),this;}if(_0x209ea6['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x1eb231(0x2ae));}['onRemoteRej'](_0x48dd27){const _0x6247be=_0x16128c;return this[_0x6247be(0x479)](!!(_0x48dd27!=null&&_0x48dd27[_0x6247be(0x3ac)]));}[_0x16128c(0x424)](){return this;}[_0x16128c(0x2c2)](){const _0x8c4e74=_0x16128c;return this[_0x8c4e74(0x200)][_0x8c4e74(0x318)](M,this[_0x8c4e74(0x3b9)],this['type'],this['_awaitingChangeset'],this[_0x8c4e74(0x4c6)],this[_0x8c4e74(0x2dd)]);}[_0x16128c(0x284)](){return this;}['_onConflict'](_0x4f61a2){const _0x21399a=_0x16128c;return this['_injector'][_0x21399a(0x318)](j,this[_0x21399a(0x3b9)],this[_0x21399a(0x3eb)],this['_awaitingChangeset'],this[_0x21399a(0x4c6)],this['_handler'],_0x4f61a2);}};N=y([v(0x7,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x33b)])),v(0x8,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x27c)])),v(0x9,t[_0x16128c(0x22c)]),v(0xa,t[_0x16128c(0x316)]),v(0xb,t[_0x16128c(0x491)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t['Optional'])(x))],N);function Ue(_0x438560,_0x156ec2,_0x4b34c6,_0x1e5b4f,_0x19de5f,_0x53d404){const _0x59c690=_0x16128c;return _0x1e5b4f&&_0x19de5f['length']?_0x438560[_0x59c690(0x318)](A,_0x156ec2,_0x4b34c6,_0x1e5b4f,_0x19de5f,_0x53d404,void 0x0):_0x1e5b4f?_0x438560[_0x59c690(0x318)](k,_0x156ec2,_0x4b34c6,_0x1e5b4f,_0x53d404):_0x19de5f[_0x59c690(0x471)]?_0x438560[_0x59c690(0x318)](O,_0x156ec2,_0x4b34c6,_0x19de5f,_0x53d404):_0x438560[_0x59c690(0x318)](D,_0x156ec2,_0x4b34c6,_0x53d404);}let P=class extends t[_0x16128c(0x313)]{get[_0x16128c(0x448)](){const _0x380b80=_0x16128c;return this[_0x380b80(0x49d)];}constructor(_0x2919da,_0x56a7f7,_0x437c5f,_0x44eb6f,_0x3d7a4d,_0x5924a2,_0x163bcc,_0x5e4d54,_0x46adad,_0x49bcd9,_0x91066a,_0x1ace81,_0x4dbac4,_0x12752f){const _0x49c087=_0x16128c;super(),this[_0x49c087(0x3b9)]=_0x2919da,this['session']=_0x56a7f7,this[_0x49c087(0x425)]=_0x437c5f,this['_injector']=_0x44eb6f,this[_0x49c087(0x287)]=_0x3d7a4d,this[_0x49c087(0x2de)]=_0x5924a2,this['_revisionService']=_0x163bcc,this[_0x49c087(0x383)]=_0x5e4d54,this[_0x49c087(0x32c)]=_0x46adad,this[_0x49c087(0x451)]=_0x49bcd9,this[_0x49c087(0x297)]=_0x91066a,this['_permissionService']=_0x1ace81,this[_0x49c087(0x260)]=_0x4dbac4,this[_0x49c087(0x46e)]=_0x12752f,g(this,_0x49c087(0x250),new i[(_0x49c087(0x204))](null)),g(this,_0x49c087(0x245),this[_0x49c087(0x250)][_0x49c087(0x45a)]()),g(this,_0x49c087(0x49d),void 0x0),g(this,_0x49c087(0x2a9),!0x1),g(this,_0x49c087(0x42a),''),g(this,_0x49c087(0x44f),0x0),g(this,'status$',this['state$'][_0x49c087(0x476)]((0x0,i['map'])(_0x2050cd=>_0x2050cd?_0x2050cd[_0x49c087(0x3fb)]:_0x49c087(0x4ea)),(0x0,i[_0x49c087(0x45b)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x49c087(0x44b),!0x1),g(this,_0x49c087(0x3d7),[]);}async[_0x16128c(0x49a)](){const _0x1ff101=_0x16128c;if(this[_0x1ff101(0x448)])throw Error(_0x1ff101(0x4c4));await this['_init']();}[_0x16128c(0x319)](){const _0x5e5571=_0x16128c;return this[_0x5e5571(0x2a9)]=!0x0,(0x0,t[_0x5e5571(0x34a)])(()=>{const _0x33557f=_0x5e5571;this['_collaborationPaused']=!0x1,this[_0x33557f(0x4e2)]();});}['onLocalMutation'](_0x223cc6){const _0x2817b0=_0x16128c;this[_0x2817b0(0x3e7)](_0x223cc6);}['_updateState'](_0x159b45){const _0x54a31a=_0x16128c;this['_state']=_0x159b45,this['_state$'][_0x54a31a(0x272)](_0x159b45);}async[_0x16128c(0x2f6)](){const _0x89ee21=_0x16128c;if(this[_0x89ee21(0x446)](await this[_0x89ee21(0x312)]()),this[_0x89ee21(0x260)]){var _0x4425aa;(_0x4425aa=this[_0x89ee21(0x260)])==null||_0x4425aa[_0x89ee21(0x2ba)](this[_0x89ee21(0x3b9)]),this['disposeWithMe'](this[_0x89ee21(0x260)]['getUnitStatus$'](this['unitID'])[_0x89ee21(0x3f8)](_0x12c89b=>{const _0x1ba4bb=_0x89ee21;this[_0x1ba4bb(0x451)][_0x1ba4bb(0x235)](_0x1ba4bb(0x2d2),'editing\x20status\x20changed\x20to',_0x12c89b),_0x12c89b===0x1?(this[_0x1ba4bb(0x383)][_0x1ba4bb(0x4e7)]({'id':_0x1ba4bb(0x229)}),this[_0x1ba4bb(0x436)][_0x1ba4bb(0x3fd)](new r[(_0x1ba4bb(0x3c5))](this[_0x1ba4bb(0x3b9)])['id'],!0x1),this[_0x1ba4bb(0x436)][_0x1ba4bb(0x2e9)](!0x1)):(this['_permissionService']['updatePermissionPoint'](new r[(_0x1ba4bb(0x3c5))](this[_0x1ba4bb(0x3b9)])['id'],!0x0),this['_permissionService'][_0x1ba4bb(0x2e9)](!0x0));}));}let _0x728651=!0x1;return this[_0x89ee21(0x31d)](this[_0x89ee21(0x36f)][_0x89ee21(0x470)][_0x89ee21(0x3f8)](_0x103981=>{const _0x269eb6=_0x89ee21;_0x103981===0x3?this[_0x269eb6(0x246)](_0x728651):_0x103981===0x2&&(_0x728651=!0x0,this['_toggleOffline']());})),this[_0x89ee21(0x31d)](this[_0x89ee21(0x36f)][_0x89ee21(0x47e)]['subscribe'](_0x43d7a1=>{const _0x5147ac=_0x89ee21;try{switch(_0x43d7a1[_0x5147ac(0x25c)]){case e[_0x5147ac(0x1f4)][_0x5147ac(0x2db)]:this[_0x5147ac(0x386)]((0x0,e[_0x5147ac(0x453)])(_0x43d7a1['data']));break;case e[_0x5147ac(0x1f4)][_0x5147ac(0x412)]:this[_0x5147ac(0x50a)](_0x43d7a1[_0x5147ac(0x223)]);break;case e[_0x5147ac(0x1f4)][_0x5147ac(0x3dd)]:this[_0x5147ac(0x31c)]();break;case e['CollaborationEvent'][_0x5147ac(0x2a3)]:this[_0x5147ac(0x42e)](_0x43d7a1[_0x5147ac(0x223)]);break;case e[_0x5147ac(0x1f4)][_0x5147ac(0x4a4)]:this[_0x5147ac(0x32d)](_0x43d7a1[_0x5147ac(0x223)][_0x5147ac(0x4d0)][_0x5147ac(0x2b2)](_0x4e817f=>(0x0,e[_0x5147ac(0x453)])(_0x4e817f)));break;case e[_0x5147ac(0x1f4)][_0x5147ac(0x505)]:this[_0x5147ac(0x31c)]({'isPermissionRej':!0x0});break;case e[_0x5147ac(0x1f4)][_0x5147ac(0x311)]:}}catch(_0x5e6ec0){throw console[_0x5147ac(0x1d8)]('Error\x20on\x20receiving\x20event',_0x5e6ec0),_0x5e6ec0;}})),this[_0x89ee21(0x49d)];}[_0x16128c(0x3bc)](){const _0x2cbf97=_0x16128c;this[_0x2cbf97(0x44b)]=!0x1;}[_0x16128c(0x232)](){const _0x4fc13c=_0x16128c;if(this[_0x4fc13c(0x44b)])throw Error(_0x4fc13c(0x43e));this[_0x4fc13c(0x44b)]=!0x0;}[_0x16128c(0x3e7)](_0x1a4900){const _0x585765=_0x16128c;this[_0x585765(0x232)](),this[_0x585765(0x446)](this[_0x585765(0x49d)][_0x585765(0x372)](_0x1a4900)),this['_unlockTransition']();}[_0x16128c(0x386)](_0x41255d){const _0x2fa3e7=_0x16128c;if(!(_0x41255d[_0x2fa3e7(0x3c7)]<=this[_0x2fa3e7(0x358)][_0x2fa3e7(0x35f)](this[_0x2fa3e7(0x3b9)]))){if(this['_collaborationPaused']){this[_0x2fa3e7(0x3d7)][_0x2fa3e7(0x4da)](_0x41255d);return;}this[_0x2fa3e7(0x3d0)](_0x41255d);}}[_0x16128c(0x4e2)](){const _0x1510d3=_0x16128c;this[_0x1510d3(0x3d7)][_0x1510d3(0x43b)](_0x26aaba=>this[_0x1510d3(0x3d0)](_0x26aaba)),this[_0x1510d3(0x3d7)]=[];}[_0x16128c(0x3d0)](_0x557aca){const _0x2063a5=_0x16128c;let _0x44cc7c=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x2063a5(0x287)][_0x2063a5(0x3d4)][_0x2063a5(0x488)]()[_0x2063a5(0x4bd)])(_0x557aca[_0x2063a5(0x208)],null)||_0x557aca[_0x2063a5(0x208)],_0x8eb224={..._0x557aca,'mutations':_0x44cc7c};this[_0x2063a5(0x232)](),this['_updateState'](this[_0x2063a5(0x49d)][_0x2063a5(0x3a5)](_0x8eb224)),this[_0x2063a5(0x3bc)]();}[_0x16128c(0x50a)](_0x494501){const _0x28d676=_0x16128c;this[_0x28d676(0x232)](),this[_0x28d676(0x446)](this[_0x28d676(0x49d)]['onRemoteAck'](_0x494501)),this[_0x28d676(0x3bc)]();}[_0x16128c(0x31c)](_0x49de9c){const _0x4521ee=_0x16128c;this[_0x4521ee(0x232)](),this[_0x4521ee(0x446)](this[_0x4521ee(0x49d)][_0x4521ee(0x379)](_0x49de9c)),this['_unlockTransition']();}['_onRemoteRetry'](_0x5138d0){const _0x3b8db5=_0x16128c;this['_lockTransition'](),this[_0x3b8db5(0x446)](this['_state']['onRemoteRetry'](_0x5138d0)),this[_0x3b8db5(0x3bc)]();}[_0x16128c(0x32d)](_0x250e1b){const _0x2b9e49=_0x16128c;if(!(this[_0x2b9e49(0x49d)]instanceof N))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0xb720d5=_0x250e1b[_0x2b9e49(0x2b2)](_0x3a52a8=>{const _0x5ddfd6=_0x2b9e49;let _0x539f9c=this['_compressMutationService'][_0x5ddfd6(0x3d4)][_0x5ddfd6(0x3a9)](this[_0x5ddfd6(0x287)][_0x5ddfd6(0x3d4)][_0x5ddfd6(0x488)]()[_0x5ddfd6(0x4bd)])(_0x3a52a8['mutations'],null)||_0x3a52a8[_0x5ddfd6(0x208)];return{..._0x3a52a8,'mutations':_0x539f9c};});this[_0x2b9e49(0x232)](),this['_updateState'](this[_0x2b9e49(0x49d)]['onMissedChangesetFetched'](_0xb720d5)),this[_0x2b9e49(0x3bc)]();}[_0x16128c(0x498)](){const _0x232c01=_0x16128c;this['_lockTransition'](),this[_0x232c01(0x446)](this['_state'][_0x232c01(0x2c2)]()),this[_0x232c01(0x3bc)]();}[_0x16128c(0x246)](_0x5a7184=!0x1){const _0x5ba1a2=_0x16128c;this[_0x5ba1a2(0x232)](),this['_updateState'](this[_0x5ba1a2(0x49d)]['toggleOnline']()),this['_unlockTransition']();let _0x5e2a34=this[_0x5ba1a2(0x49d)];_0x5a7184&&_0x5e2a34 instanceof D&&(this[_0x5ba1a2(0x232)](),this[_0x5ba1a2(0x446)](_0x5e2a34['fetchMiss']()),this[_0x5ba1a2(0x3bc)]());}async[_0x16128c(0x312)](){return new Promise(_0x3ffdb4=>{const _0x31c27a=_0x4c27;this[_0x31c27a(0x36f)][_0x31c27a(0x470)][_0x31c27a(0x476)]((0x0,i[_0x31c27a(0x27e)])(0x1))[_0x31c27a(0x3f8)](async _0x2051bd=>{const _0x56327e=_0x31c27a;_0x3ffdb4(await this[_0x56327e(0x29c)](_0x2051bd===0x3));});});}[_0x16128c(0x361)](){let _0x525fcc=this['unitID'];return{'onStateChange':(_0x30040e,_0x1537ee)=>{const _0x33d13e=_0x4c27;if(_0x30040e!==this['_state'])throw Error(_0x33d13e(0x4ca)+_0x30040e[_0x33d13e(0x3fb)]+_0x33d13e(0x1c9)+_0x1537ee[_0x33d13e(0x3fb)]+_0x33d13e(0x373)+this['_state'][_0x33d13e(0x3fb)]);this[_0x33d13e(0x446)](_0x1537ee);},'onSendChangeset':_0x4db61f=>{const _0x565891=_0x4c27;_0x4db61f[_0x565891(0x4ac)]||(_0x4db61f[_0x565891(0x4ac)]=this[_0x565891(0x42a)],_0x4db61f[_0x565891(0x280)]=++this[_0x565891(0x44f)]);let _0x53fa4d={'eventID':e['CollaborationEvent'][_0x565891(0x2bf)],'data':{'unitID':_0x4db61f[_0x565891(0x3b9)],'unitType':this['_type'],'changeset':_0x4db61f,'memberID':this[_0x565891(0x36f)][_0x565891(0x347)]()}};this['session'][_0x565891(0x389)](_0x53fa4d,this[_0x565891(0x3b9)]);},'onMissingChangesets':({from:_0x417eda,to:_0xa9606a})=>{const _0x6e2f4f=_0x4c27;this['_logService']['debug'](_0x6e2f4f(0x2d2),_0x6e2f4f(0x3f5)+_0x417eda+_0x6e2f4f(0x2d5)+_0xa9606a);let _0x1ba425={'eventID':e[_0x6e2f4f(0x1f4)]['FETCH_MISSING'],'data':{'unitID':_0x525fcc,'unitType':this[_0x6e2f4f(0x425)],'from':_0x417eda,'to':_0xa9606a}};this[_0x6e2f4f(0x36f)]['send'](_0x1ba425,this[_0x6e2f4f(0x3b9)]);}};}async['_createInitialStateImpl'](_0x4ec748){const _0xaa2ef8=_0x16128c;var _0x2ba8b3;let _0x510b38=await((_0x2ba8b3=this['_localCacheService'])==null?void 0x0:_0x2ba8b3['loadOfflineData'](this['unitID'])),_0x10e974=(_0x510b38==null?void 0x0:_0x510b38[_0xaa2ef8(0x208)])??[],_0x34e4b9=(_0x510b38==null?void 0x0:_0x510b38[_0xaa2ef8(0x1d7)])??null,_0x4b83db=!!(_0x34e4b9!=null&&_0x34e4b9['sid'])&&!!(_0x34e4b9!=null&&_0x34e4b9[_0xaa2ef8(0x280)]);this[_0xaa2ef8(0x42a)]=_0x4b83db?_0x34e4b9['sid']:(0x0,e[_0xaa2ef8(0x337)])(),this[_0xaa2ef8(0x44f)]=_0x4b83db?_0x34e4b9[_0xaa2ef8(0x280)]:0x0;let _0x354c34=this[_0xaa2ef8(0x3b9)];try{this[_0xaa2ef8(0x33e)](_0x34e4b9,_0x10e974);}catch(_0x1b1dc3){this[_0xaa2ef8(0x451)][_0xaa2ef8(0x1d8)](_0x1b1dc3);}let _0x8d79a8=this['_createHandler']();if(_0x4ec748){let _0x162383=Ue(this[_0xaa2ef8(0x200)],_0x354c34,this[_0xaa2ef8(0x425)],_0x34e4b9,_0x10e974,_0x8d79a8);return _0x162383 instanceof O?_0x162383[_0xaa2ef8(0x333)]():(_0x162383 instanceof A||_0x162383 instanceof k)&&_0x162383[_0xaa2ef8(0x289)](),_0x162383;}return this[_0xaa2ef8(0x200)][_0xaa2ef8(0x318)](M,_0x354c34,this[_0xaa2ef8(0x425)],_0x34e4b9,_0x10e974,_0x8d79a8);}['_replayCachedMutations'](_0x51ace2,_0x3bd731){const _0x1c586a=_0x16128c;var _0xb3b686,_0x29eefd;let _0x27a6d7=this['_compressMutationService'][_0x1c586a(0x3d4)][_0x1c586a(0x3a9)](this['_compressMutationService'][_0x1c586a(0x3d4)]['getInterceptPoints']()[_0x1c586a(0x4bd)]);(_0xb3b686=_0x27a6d7((_0x51ace2==null?void 0x0:_0x51ace2['mutations'])||[],null))==null||_0xb3b686[_0x1c586a(0x43b)](_0x531520=>this[_0x1c586a(0x297)][_0x1c586a(0x2bd)](_0x531520['id'],_0x531520[_0x1c586a(0x4f8)])),(_0x29eefd=_0x27a6d7(_0x3bd731||[],null))==null||_0x29eefd[_0x1c586a(0x43b)](_0x48cee7=>this[_0x1c586a(0x297)][_0x1c586a(0x2bd)](_0x48cee7['id'],_0x48cee7[_0x1c586a(0x4f8)]));}};P=y([v(0x3,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x33b)])),v(0x4,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x22a)])),v(0x5,(0x0,t[_0x16128c(0x4c0)])(t['LocaleService'])),v(0x6,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x27c)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x16128c(0x399)]),v(0x9,t['ILogService']),v(0xa,t['ICommandService']),v(0xb,t[_0x16128c(0x1f5)]),v(0xc,(0x0,t[_0x16128c(0x2e7)])(C)),v(0xd,(0x0,t[_0x16128c(0x2e7)])(x))],P);let F=class extends P{constructor(_0x2a006c,_0x370b27,_0xcbbf08,_0x3c0f9b,_0x4ae649,_0x4c854d,_0x1c68d7,_0x4de5d7,_0x2acb05,_0x3ea40,_0x21fed3,_0x3a0927,_0x2d233d,_0x102f3a,_0xe16469){const _0x31504c=_0x16128c;super(_0x2a006c,_0xcbbf08,_0x370b27,_0x3c0f9b,_0x4ae649,_0x4c854d,_0x1c68d7,_0x4de5d7,_0x2acb05,_0x3ea40,_0x21fed3,_0x3a0927,_0x102f3a,_0xe16469),this['unitID']=_0x2a006c,this['type']=_0x370b27,this[_0x31504c(0x22d)]=_0x2d233d,g(this,_0x31504c(0x21e),null);}[_0x16128c(0x431)](_0x54d1d4){const _0x4e502b=_0x16128c;this[_0x4e502b(0x21e)]=_0x54d1d4;}[_0x16128c(0x22b)](){const _0x3dcaad=_0x16128c;this[_0x3dcaad(0x21e)]=null,super[_0x3dcaad(0x22b)]();}[_0x16128c(0x361)](){const _0x513035=_0x16128c;let _0x4ca46a=super['_createHandler']();return _0x4ca46a[_0x513035(0x39a)]=_0x102198=>{const _0xfc9ef2=_0x513035;var _0x5e29c6,_0x25369c;return(_0x5e29c6=this['_handlerCallback'])==null||(_0x25369c=_0x5e29c6[_0xfc9ef2(0x39a)])==null?void 0x0:_0x25369c[_0xfc9ef2(0x2a7)](_0x5e29c6,_0x102198);},_0x4ca46a[_0x513035(0x43c)]=_0x20f376=>{const _0x2e82f5=_0x513035;var _0x17f3bc,_0x1e307d;return(_0x17f3bc=this[_0x2e82f5(0x21e)])==null||(_0x1e307d=_0x17f3bc[_0x2e82f5(0x43c)])==null?void 0x0:_0x1e307d[_0x2e82f5(0x2a7)](_0x17f3bc,_0x20f376);},_0x4ca46a['onPrepareTransformSelections']=_0x3f74cd=>{const _0xf862ac=_0x513035;var _0x3a778c,_0x251156;return((_0x3a778c=this[_0xf862ac(0x21e)])==null||(_0x251156=_0x3a778c[_0xf862ac(0x421)])==null?void 0x0:_0x251156['call'](_0x3a778c,_0x3f74cd))??null;},_0x4ca46a[_0x513035(0x482)]=_0x1d4ea0=>{const _0x4f4a8b=_0x513035;var _0x1e0800,_0x2e679e;return(_0x1e0800=this[_0x4f4a8b(0x21e)])==null||(_0x2e679e=_0x1e0800['onTransformSelections'])==null?void 0x0:_0x2e679e[_0x4f4a8b(0x2a7)](_0x1e0800,_0x1d4ea0);},_0x4ca46a['onSyncEditingCollabCursor']=_0x79fb89=>{const _0x5a41b0=_0x513035;var _0x210774,_0x51248a;return(_0x210774=this[_0x5a41b0(0x21e)])==null||(_0x51248a=_0x210774[_0x5a41b0(0x298)])==null?void 0x0:_0x51248a[_0x5a41b0(0x2a7)](_0x210774,_0x79fb89);},_0x4ca46a['onTransformRemoteChangesetByIMECache']=_0x54de44=>{const _0x29f251=_0x513035;var _0x4f4852,_0x268727;return((_0x4f4852=this[_0x29f251(0x21e)])==null||(_0x268727=_0x4f4852[_0x29f251(0x210)])==null?void 0x0:_0x268727[_0x29f251(0x2a7)](_0x4f4852,_0x54de44))??_0x54de44;},_0x4ca46a['onTransformRemoteChangesetByStateCache']=_0x524a63=>{const _0x457bdd=_0x513035;var _0x40ef42,_0x1ba6a0;return((_0x40ef42=this[_0x457bdd(0x21e)])==null||(_0x1ba6a0=_0x40ef42[_0x457bdd(0x21f)])==null?void 0x0:_0x1ba6a0[_0x457bdd(0x2a7)](_0x40ef42,_0x524a63))??_0x524a63;},_0x4ca46a;}async[_0x16128c(0x2f6)](){const _0x67b91f=_0x16128c;let _0x1efb1e=await super[_0x67b91f(0x2f6)]();return this[_0x67b91f(0x31d)](this[_0x67b91f(0x22d)][_0x67b91f(0x1da)][_0x67b91f(0x3f8)](_0x1c0997=>{const _0x4ebd0c=_0x67b91f;if(_0x1c0997==null||_0x1c0997[_0x4ebd0c(0x367)]!==this['unitID'])return;let {commandId:_0x422e2e,redoState:_0x597df1,unitId:_0x26d276}=_0x1c0997,_0x539e88={'id':_0x422e2e,'type':t[_0x4ebd0c(0x351)][_0x4ebd0c(0x240)],'params':{'unitId':_0x26d276,'actions':_0x597df1[_0x4ebd0c(0x226)],'textRanges':null}};this[_0x4ebd0c(0x3e7)](_0x539e88);})),this[_0x67b91f(0x31d)](this['_commandService'][_0x67b91f(0x30a)]((_0x5e6b02,_0x2963ed)=>{const _0x431f72=_0x67b91f;if(_0x5e6b02[_0x431f72(0x3eb)]!==t[_0x431f72(0x351)][_0x431f72(0x240)]||_0x2963ed!=null&&_0x2963ed['fromCollab']||_0x2963ed!=null&&_0x2963ed[_0x431f72(0x3d6)]||_0x5e6b02['id']===n[_0x431f72(0x1df)]['id'])return;let _0x48fbe4=_0x5e6b02[_0x431f72(0x4f8)];if((_0x48fbe4==null?void 0x0:_0x48fbe4[_0x431f72(0x367)])!==this[_0x431f72(0x3b9)])return;let _0x49505d=_0x5e6b02,_0x5d7bc2=this[_0x431f72(0x287)][_0x431f72(0x3d4)][_0x431f72(0x3a9)](this[_0x431f72(0x287)][_0x431f72(0x3d4)][_0x431f72(0x488)]()[_0x431f72(0x26c)])([_0x49505d],this[_0x431f72(0x32c)])||[_0x49505d];this[_0x431f72(0x3e7)](_0x5d7bc2[0x0]);})),_0x1efb1e;}};F=y([v(0x3,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x33b)])),v(0x4,(0x0,t[_0x16128c(0x4c0)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x48a)])),v(0x6,(0x0,t['Inject'])(e[_0x16128c(0x27c)])),v(0x7,(0x0,t[_0x16128c(0x4c0)])(_)),v(0x8,t[_0x16128c(0x399)]),v(0x9,t['ILogService']),v(0xa,t[_0x16128c(0x316)]),v(0xb,t[_0x16128c(0x1f5)]),v(0xc,(0x0,t['Inject'])(n[_0x16128c(0x417)])),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t[_0x16128c(0x2e7)])(x))],F);let I=class extends P{constructor(_0x34c24d,_0x3c429e,_0x58524a,_0x25a0c0,_0x15488d,_0x38437d,_0x5209c2,_0x241c6e,_0x2315ea,_0x3593c1,_0xeaeb21,_0x283d1b,_0x2dd50c,_0x211c24){const _0x13a683=_0x16128c;super(_0x34c24d,_0x58524a,_0x3c429e,_0x25a0c0,_0x15488d,_0x38437d,_0x5209c2,_0x241c6e,_0x2315ea,_0x3593c1,_0xeaeb21,_0x283d1b,_0x2dd50c,_0x211c24),this[_0x13a683(0x3b9)]=_0x34c24d,this[_0x13a683(0x3eb)]=_0x3c429e;}async[_0x16128c(0x2f6)](){const _0x25a584=_0x16128c;let _0x49f74a=await super['_init']();return this[_0x25a584(0x31d)](this[_0x25a584(0x297)][_0x25a584(0x30a)]((_0x1a8cef,_0xb86e7f)=>{const _0x2231e2=_0x25a584;if(_0x1a8cef[_0x2231e2(0x3eb)]!==t['CommandType'][_0x2231e2(0x240)]||_0xb86e7f!=null&&_0xb86e7f['fromCollab']||_0xb86e7f!=null&&_0xb86e7f['onlyLocal'])return;let _0x365db9=_0x1a8cef[_0x2231e2(0x4f8)];if((_0x365db9==null?void 0x0:_0x365db9['unitId'])!==this['unitID'])return;let _0x25eddd=_0x1a8cef,_0x30ca88=this[_0x2231e2(0x287)][_0x2231e2(0x3d4)]['fetchThroughInterceptors'](this[_0x2231e2(0x287)][_0x2231e2(0x3d4)]['getInterceptPoints']()[_0x2231e2(0x26c)])([_0x25eddd],this[_0x2231e2(0x32c)])||[_0x25eddd];this[_0x2231e2(0x3e7)](_0x30ca88[0x0]);})),_0x49f74a;}};I=y([v(0x3,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x33b)])),v(0x4,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x22a)])),v(0x5,(0x0,t[_0x16128c(0x4c0)])(t['LocaleService'])),v(0x6,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x27c)])),v(0x7,(0x0,t[_0x16128c(0x4c0)])(_)),v(0x8,t[_0x16128c(0x399)]),v(0x9,t[_0x16128c(0x22c)]),v(0xa,t['ICommandService']),v(0xb,t['IPermissionService']),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x16128c(0x2e7)])(x))],I);let L=class extends P{constructor(_0x2a6f3f,_0x253a13,_0xc59f30,_0x4c5016,_0x4076a6,_0x4bf9af,_0x57c62a,_0x3ad428,_0x2adfa2,_0x430877,_0x2980c8,_0x254de5,_0x1747c0,_0x16b7ab,_0x58b947){const _0x4efed2=_0x16128c;super(_0x2a6f3f,_0xc59f30,_0x253a13,_0x4c5016,_0x4076a6,_0x4bf9af,_0x57c62a,_0x2adfa2,_0x430877,_0x2980c8,_0x254de5,_0x1747c0,_0x16b7ab,_0x58b947),this[_0x4efed2(0x3b9)]=_0x2a6f3f,this[_0x4efed2(0x3eb)]=_0x253a13,this[_0x4efed2(0x50d)]=_0x3ad428;}[_0x16128c(0x361)](){const _0xd8d10a=_0x16128c;let _0x4e5a8c=super[_0xd8d10a(0x361)]();return _0x4e5a8c[_0xd8d10a(0x482)]=_0x44c63a=>this[_0xd8d10a(0x50d)][_0xd8d10a(0x1e5)](_0x44c63a),_0x4e5a8c;}async[_0x16128c(0x2f6)](){const _0x2f9dfb=_0x16128c;let _0x15c154=await super[_0x2f9dfb(0x2f6)]();return this[_0x2f9dfb(0x31d)](this[_0x2f9dfb(0x297)][_0x2f9dfb(0x30a)]((_0x3d0f1f,_0x37161b)=>{const _0xfc4a79=_0x2f9dfb;if(_0x3d0f1f[_0xfc4a79(0x3eb)]!==t['CommandType'][_0xfc4a79(0x240)]||_0x37161b!=null&&_0x37161b['fromCollab']||_0x37161b!=null&&_0x37161b[_0xfc4a79(0x3d6)])return;let _0x28fae2=_0x3d0f1f[_0xfc4a79(0x4f8)];if((_0x28fae2==null?void 0x0:_0x28fae2[_0xfc4a79(0x367)])!==this[_0xfc4a79(0x3b9)])return;let _0x37ad95=_0x3d0f1f,_0x182644=this[_0xfc4a79(0x287)][_0xfc4a79(0x3d4)][_0xfc4a79(0x3a9)](this[_0xfc4a79(0x287)][_0xfc4a79(0x3d4)][_0xfc4a79(0x488)]()[_0xfc4a79(0x26c)])([_0x37ad95],this['_univerInstanceService'])||[_0x37ad95];this[_0xfc4a79(0x3e7)](_0x182644[0x0]);})),_0x15c154;}};L=y([v(0x3,(0x0,t['Inject'])(t[_0x16128c(0x33b)])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x48a)])),v(0x6,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x27c)])),v(0x7,(0x0,t[_0x16128c(0x4c0)])(S)),v(0x8,(0x0,t[_0x16128c(0x4c0)])(_)),v(0x9,t[_0x16128c(0x399)]),v(0xa,t[_0x16128c(0x22c)]),v(0xb,t[_0x16128c(0x316)]),v(0xc,t[_0x16128c(0x1f5)]),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t[_0x16128c(0x2e7)])(x))],L);let R=class extends P{constructor(_0x4b8a70,_0x3f3611,_0x3c1fd7,_0x3e30fd,_0x116f3f,_0x25cf6f,_0x4a2bc5,_0x44fec9,_0x4f1f0e,_0xcd09e1,_0x1a5684,_0x4c714c,_0x8d3f56,_0x422b4e){const _0x129121=_0x16128c;super(_0x4b8a70,_0x3c1fd7,_0x3f3611,_0x3e30fd,_0x116f3f,_0x25cf6f,_0x4a2bc5,_0x44fec9,_0x4f1f0e,_0xcd09e1,_0x1a5684,_0x4c714c,_0x8d3f56,_0x422b4e),this[_0x129121(0x3b9)]=_0x4b8a70,this[_0x129121(0x3eb)]=_0x3f3611;}async[_0x16128c(0x2f6)](){const _0x4b60eb=_0x16128c;let _0x2cdba7=await super[_0x4b60eb(0x2f6)]();return this[_0x4b60eb(0x31d)](this[_0x4b60eb(0x297)]['onMutationExecutedForCollab']((_0x2d010a,_0x410ca8)=>{const _0x3fb45c=_0x4b60eb;if(_0x2d010a[_0x3fb45c(0x3eb)]!==t[_0x3fb45c(0x351)]['MUTATION']||_0x410ca8!=null&&_0x410ca8[_0x3fb45c(0x3c2)]||_0x410ca8!=null&&_0x410ca8[_0x3fb45c(0x3d6)])return;let _0x505360=_0x2d010a[_0x3fb45c(0x4f8)];if((_0x505360==null?void 0x0:_0x505360[_0x3fb45c(0x367)])!==this[_0x3fb45c(0x3b9)])return;let _0x51f7b9=_0x2d010a,_0x10cf4a=this[_0x3fb45c(0x287)][_0x3fb45c(0x3d4)][_0x3fb45c(0x3a9)](this[_0x3fb45c(0x287)]['interceptor']['getInterceptPoints']()[_0x3fb45c(0x26c)])([_0x51f7b9],this[_0x3fb45c(0x32c)])||[_0x51f7b9];this['_onLocalMutation'](_0x10cf4a[0x0]);})),_0x2cdba7;}};R=y([v(0x3,(0x0,t[_0x16128c(0x4c0)])(t['Injector'])),v(0x4,(0x0,t[_0x16128c(0x4c0)])(e['CompressMutationService'])),v(0x5,(0x0,t['Inject'])(t[_0x16128c(0x48a)])),v(0x6,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x27c)])),v(0x7,(0x0,t[_0x16128c(0x4c0)])(_)),v(0x8,t[_0x16128c(0x399)]),v(0x9,t[_0x16128c(0x22c)]),v(0xa,t['ICommandService']),v(0xb,t[_0x16128c(0x1f5)]),v(0xc,(0x0,t[_0x16128c(0x2e7)])(C)),v(0xd,(0x0,t[_0x16128c(0x2e7)])(x))],R);let z=class extends P{constructor(_0x1aac91,_0x1c22f1,_0x26264f,_0x78e218,_0x3b33f8,_0x190d8d,_0x4622ed,_0x28788e,_0x3b5095,_0x4beb70,_0x4c8744,_0x1319ee,_0x30a1a3,_0x193773){const _0x38e261=_0x16128c;super(_0x1aac91,_0x26264f,_0x1c22f1,_0x78e218,_0x3b33f8,_0x190d8d,_0x4622ed,_0x28788e,_0x3b5095,_0x4beb70,_0x4c8744,_0x1319ee,_0x30a1a3,_0x193773),this[_0x38e261(0x3b9)]=_0x1aac91,this[_0x38e261(0x3eb)]=_0x1c22f1;}async[_0x16128c(0x2f6)](){const _0x1e597b=_0x16128c;let _0x64a9f5=await super['_init']();return this[_0x1e597b(0x31d)](this['_commandService']['onMutationExecutedForCollab']((_0x14293d,_0x349c2d)=>{const _0xf07b88=_0x1e597b;if(_0x14293d[_0xf07b88(0x3eb)]!==t[_0xf07b88(0x351)][_0xf07b88(0x240)]||_0x349c2d!=null&&_0x349c2d[_0xf07b88(0x3c2)]||_0x349c2d!=null&&_0x349c2d['onlyLocal'])return;let _0x3914f6=_0x14293d[_0xf07b88(0x4f8)];if((_0x3914f6==null?void 0x0:_0x3914f6[_0xf07b88(0x367)])!==this['unitID'])return;let _0x41dee8=_0x14293d,_0x369685=this['_compressMutationService']['interceptor'][_0xf07b88(0x3a9)](this[_0xf07b88(0x287)]['interceptor'][_0xf07b88(0x488)]()[_0xf07b88(0x26c)])([_0x41dee8],this[_0xf07b88(0x32c)])||[_0x41dee8];this['_onLocalMutation'](_0x369685[0x0]);})),_0x64a9f5;}};z=y([v(0x3,(0x0,t['Inject'])(t[_0x16128c(0x33b)])),v(0x4,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x22a)])),v(0x5,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x48a)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t[_0x16128c(0x4c0)])(_)),v(0x8,t[_0x16128c(0x399)]),v(0x9,t[_0x16128c(0x22c)]),v(0xa,t['ICommandService']),v(0xb,t[_0x16128c(0x1f5)]),v(0xc,(0x0,t[_0x16128c(0x2e7)])(C)),v(0xd,(0x0,t[_0x16128c(0x2e7)])(x))],z);let B=class extends P{constructor(_0x11c6db,_0x3bc3a7,_0x13022f,_0x427348,_0x5a762e,_0x42d683,_0x3d880a,_0x2dd69e,_0x3782f8,_0x3044e4,_0x5604f9,_0x3b9716,_0x349fcb,_0x134334){const _0x29f301=_0x16128c;super(_0x11c6db,_0x13022f,_0x3bc3a7,_0x427348,_0x5a762e,_0x42d683,_0x3d880a,_0x2dd69e,_0x3782f8,_0x3044e4,_0x5604f9,_0x3b9716,_0x349fcb,_0x134334),this[_0x29f301(0x3b9)]=_0x11c6db,this[_0x29f301(0x3eb)]=_0x3bc3a7;}async[_0x16128c(0x2f6)](){const _0x256e8b=_0x16128c;let _0x26a0f0=await super[_0x256e8b(0x2f6)]();return this[_0x256e8b(0x31d)](this['_commandService'][_0x256e8b(0x30a)]((_0x25d658,_0x480e1c)=>{const _0xc6c38c=_0x256e8b;if(_0x25d658[_0xc6c38c(0x3eb)]!==t[_0xc6c38c(0x351)][_0xc6c38c(0x240)]||_0x480e1c!=null&&_0x480e1c[_0xc6c38c(0x3c2)]||_0x480e1c!=null&&_0x480e1c['onlyLocal'])return;let _0xd73aec=_0x25d658['params'];if((_0xd73aec==null?void 0x0:_0xd73aec[_0xc6c38c(0x367)])!==this['unitID'])return;let _0x2dac6b=_0x25d658,_0x1d151e=this[_0xc6c38c(0x287)][_0xc6c38c(0x3d4)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0xc6c38c(0x488)]()[_0xc6c38c(0x26c)])([_0x2dac6b],this['_univerInstanceService'])||[_0x2dac6b];this['_onLocalMutation'](_0x1d151e[0x0]);})),_0x26a0f0;}};B=y([v(0x3,(0x0,t['Inject'])(t[_0x16128c(0x33b)])),v(0x4,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x22a)])),v(0x5,(0x0,t[_0x16128c(0x4c0)])(t['LocaleService'])),v(0x6,(0x0,t[_0x16128c(0x4c0)])(e[_0x16128c(0x27c)])),v(0x7,(0x0,t[_0x16128c(0x4c0)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x16128c(0x22c)]),v(0xa,t['ICommandService']),v(0xb,t[_0x16128c(0x1f5)]),v(0xc,(0x0,t[_0x16128c(0x2e7)])(C)),v(0xd,(0x0,t[_0x16128c(0x2e7)])(x))],B);const We=(0x0,t[_0x16128c(0x2e5)])(_0x16128c(0x4b9));function Ge(_0x1e5fc6){const _0x1b5feb=_0x16128c;let _0x17bef1=_0x1e5fc6[_0x1b5feb(0x223)],_0x4eca5d=JSON[_0x1b5feb(0x1cf)](_0x17bef1);switch(_0x4eca5d[_0x1b5feb(0x37f)]){case a[_0x1b5feb(0x3c0)][_0x1b5feb(0x4fc)]:case a[_0x1b5feb(0x3c0)]['HELLO']:{let _0x560cb5=_0x4eca5d[_0x1b5feb(0x295)];return{..._0x4eca5d,'data':_0x560cb5,'cmd':_0x4eca5d['cmd']};}case a['CombCmd'][_0x1b5feb(0x4cb)]:{let _0x5e6c99=_0x4eca5d['joinRsp'];return{..._0x4eca5d,'data':_0x5e6c99,'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};}case a[_0x1b5feb(0x3c0)][_0x1b5feb(0x2b6)]:{let _0x49506b=_0x4eca5d['collaMsg'];switch(_0x49506b[_0x1b5feb(0x25c)]){case e[_0x1b5feb(0x1f4)][_0x1b5feb(0x505)]:var _0x189e64;return{..._0x4eca5d,'data':{..._0x49506b,'data':(_0x189e64=_0x49506b[_0x1b5feb(0x4fb)])==null?void 0x0:_0x189e64['cs']},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e[_0x1b5feb(0x1f4)]['CHANGESET_ACK']:var _0x4e4d2f;return{..._0x4eca5d,'data':{..._0x49506b,'data':(_0x4e4d2f=_0x49506b[_0x1b5feb(0x4ff)])==null?void 0x0:_0x4e4d2f['cs']},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e[_0x1b5feb(0x1f4)]['NEW_CHANGESETS']:var _0x4133c6;return{..._0x4eca5d,'data':{..._0x49506b,'data':(_0x4133c6=_0x49506b[_0x1b5feb(0x4f0)])==null?void 0x0:_0x4133c6['cs']},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e['CollaborationEvent'][_0x1b5feb(0x3dd)]:var _0x2e953f;return{..._0x4eca5d,'data':{..._0x49506b,'data':(_0x2e953f=_0x49506b['csRejEvent'])==null?void 0x0:_0x2e953f['cs']},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e[_0x1b5feb(0x1f4)][_0x1b5feb(0x2a3)]:var _0xc2950;return{..._0x4eca5d,'data':{..._0x49506b,'data':(_0xc2950=_0x49506b[_0x1b5feb(0x30c)])==null?void 0x0:_0xc2950['cs']},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e[_0x1b5feb(0x1f4)]['UPDATE_CURSOR']:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b['updateCursorEvent']},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e['CollaborationEvent'][_0x1b5feb(0x1e1)]:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b[_0x1b5feb(0x459)]},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e[_0x1b5feb(0x1f4)][_0x1b5feb(0x239)]:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b[_0x1b5feb(0x3ae)]},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e[_0x1b5feb(0x1f4)][_0x1b5feb(0x438)]:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b[_0x1b5feb(0x418)]},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e[_0x1b5feb(0x1f4)][_0x1b5feb(0x346)]:case e[_0x1b5feb(0x1f4)][_0x1b5feb(0x33f)]:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b[_0x1b5feb(0x397)]},'cmd':_0x4eca5d['cmd']};case e[_0x1b5feb(0x1f4)]['LIVESHARE_TERMINATE']:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b[_0x1b5feb(0x418)]},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e[_0x1b5feb(0x1f4)][_0x1b5feb(0x2fa)]:return{..._0x4eca5d,'data':_0x49506b,'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e[_0x1b5feb(0x1f4)]['COMMENT_UPDATE']:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b[_0x1b5feb(0x213)]},'cmd':_0x4eca5d['cmd']};case e[_0x1b5feb(0x1f4)][_0x1b5feb(0x2a2)]:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b[_0x1b5feb(0x1f0)]},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e['CollaborationEvent'][_0x1b5feb(0x48f)]:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b['shouldCloseConn']},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};case e['CollaborationEvent'][_0x1b5feb(0x311)]:return{..._0x4eca5d,'data':{..._0x49506b,'data':_0x49506b[_0x1b5feb(0x39f)]},'cmd':_0x4eca5d[_0x1b5feb(0x37f)]};default:return _0x4eca5d;}}default:return _0x4eca5d;}}function Ke(_0x4e18bc){const _0x38a684=_0x16128c;switch(_0x4e18bc[_0x38a684(0x37f)]){case a[_0x38a684(0x3c0)][_0x38a684(0x4fc)]:case a[_0x38a684(0x3c0)][_0x38a684(0x2c1)]:return JSON[_0x38a684(0x24f)]({'cmd':_0x4e18bc[_0x38a684(0x37f)],'routeKey':_0x4e18bc[_0x38a684(0x38c)]});case a['CombCmd']['INGEST']:{let _0x426648;switch(_0x4e18bc[_0x38a684(0x223)][_0x38a684(0x25c)]){case e[_0x38a684(0x1f4)][_0x38a684(0x45e)]:_0x426648={'eventID':e[_0x38a684(0x1f4)][_0x38a684(0x45e)],'updateCursorEvent':_0x4e18bc[_0x38a684(0x223)][_0x38a684(0x223)]};break;case e[_0x38a684(0x1f4)]['USERS_LEAVE']:_0x426648={'eventID':e[_0x38a684(0x1f4)][_0x38a684(0x239)],'leaveEvent':_0x4e18bc['data'][_0x38a684(0x223)]};break;case e[_0x38a684(0x1f4)][_0x38a684(0x1e1)]:_0x426648={'eventID':e[_0x38a684(0x1f4)]['USERS_ENTER'],'joinEvent':_0x4e18bc[_0x38a684(0x223)][_0x38a684(0x223)]};break;case e['CollaborationEvent'][_0x38a684(0x438)]:_0x426648={'eventID':e['CollaborationEvent'][_0x38a684(0x438)],'liveShareNewHost':_0x4e18bc[_0x38a684(0x223)]['data']};break;case e[_0x38a684(0x1f4)][_0x38a684(0x33f)]:_0x426648={'eventID':e[_0x38a684(0x1f4)][_0x38a684(0x33f)],'liveShareOperation':_0x4e18bc[_0x38a684(0x223)][_0x38a684(0x223)]};break;case e[_0x38a684(0x1f4)]['LIVESHARE_TERMINATE']:_0x426648={'eventID':e[_0x38a684(0x1f4)][_0x38a684(0x3bd)],'liveShareTerminate':_0x4e18bc[_0x38a684(0x223)]['data']};break;case e['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x426648={'eventID':e[_0x38a684(0x1f4)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4e18bc[_0x38a684(0x223)][_0x38a684(0x223)]};break;case e[_0x38a684(0x1f4)][_0x38a684(0x346)]:_0x426648={'eventID':e[_0x38a684(0x1f4)][_0x38a684(0x346)]};break;default:_0x426648={'eventID':_0x4e18bc[_0x38a684(0x223)][_0x38a684(0x25c)]};}return JSON[_0x38a684(0x24f)]({'cmd':_0x4e18bc[_0x38a684(0x37f)],'routeKey':_0x4e18bc[_0x38a684(0x38c)],'collaMsg':_0x426648});}case a['CombCmd'][_0x38a684(0x4cb)]:return JSON[_0x38a684(0x24f)]({'cmd':_0x4e18bc['cmd'],'routeKey':_0x4e18bc['routeKey'],'joinReq':_0x4e18bc['data']});case a['CombCmd'][_0x38a684(0x230)]:return JSON[_0x38a684(0x24f)]({'cmd':_0x4e18bc['cmd'],'routeKey':_0x4e18bc[_0x38a684(0x38c)],'leaveReq':_0x4e18bc[_0x38a684(0x223)]});default:throw Error(_0x38a684(0x40b));}}function _0x4c27(_0x2ddecf,_0x162f3e){_0x2ddecf=_0x2ddecf-0x1c9;const _0x163194=_0x1631();let _0x4c277e=_0x163194[_0x2ddecf];return _0x4c277e;}const qe=(0x0,t[_0x16128c(0x2e5)])(_0x16128c(0x385));function Je(_0x2ce2bd,_0x4906b2,_0x430815){const _0x405935=_0x16128c;return _0x2ce2bd+'/'+_0x4906b2+_0x405935(0x443)+_0x430815+_0x405935(0x2fb);}let Ye=class extends t[_0x16128c(0x31f)]{constructor(_0x2112c2,_0x194aeb,_0x1cc4c3,_0x26bf7f,_0x29dde9){const _0x2ac2a2=_0x16128c;super(),this[_0x2ac2a2(0x200)]=_0x2112c2,this[_0x2ac2a2(0x3a4)]=_0x194aeb,this[_0x2ac2a2(0x20e)]=_0x1cc4c3,this[_0x2ac2a2(0x451)]=_0x26bf7f,this[_0x2ac2a2(0x24e)]=_0x29dde9;}[_0x16128c(0x22f)](_0x36abd7){const _0x57db6b=_0x16128c;let _0x197495=this[_0x57db6b(0x200)][_0x57db6b(0x1f1)](l['ISocketService']);if(!_0x197495)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x377320=_0x197495[_0x57db6b(0x32b)](_0x36abd7);if(!_0x377320)throw Error(_0x57db6b(0x20c));let _0x58180c=new t[(_0x57db6b(0x4fe))](),_0xcadfac=new i[(_0x57db6b(0x21b))]();_0x58180c[_0x57db6b(0x3ea)](_0x377320['close$'][_0x57db6b(0x3f8)](_0x6b3949=>_0xcadfac['next'](_0x6b3949))),_0x58180c[_0x57db6b(0x3ea)]((0x0,t[_0x57db6b(0x34a)])(()=>_0xcadfac[_0x57db6b(0x26e)]()));let _0x13d7bd=new i['Subject']();_0x58180c[_0x57db6b(0x3ea)](_0x377320[_0x57db6b(0x3f2)]['subscribe'](_0x37c256=>_0x13d7bd['next'](_0x37c256))),_0x58180c[_0x57db6b(0x3ea)]((0x0,t[_0x57db6b(0x34a)])(()=>_0x13d7bd[_0x57db6b(0x26e)]()));let _0x48408e=new i[(_0x57db6b(0x21b))]();_0x58180c[_0x57db6b(0x3ea)](_0x377320['message$'][_0x57db6b(0x3f8)](_0x38792e=>{let _0x39cbce=Ge(_0x38792e);_0x48408e['next'](_0x39cbce);})),_0x58180c[_0x57db6b(0x3ea)]((0x0,t[_0x57db6b(0x34a)])(()=>_0x48408e[_0x57db6b(0x26e)]()));let _0x1d4b16,_0xfae256=()=>{const _0x2f3e59=_0x57db6b;_0x13d7bd['next'](new Event(_0x2f3e59(0x305))),_0xcadfac[_0x2f3e59(0x272)](new Event(_0x2f3e59(0x305))),_0x1d4b16['close']();};return _0x1d4b16={'memberID':'','close$':_0xcadfac[_0x57db6b(0x45a)](),'error$':_0x13d7bd[_0x57db6b(0x45a)](),'open$':_0x377320[_0x57db6b(0x363)],'message$':_0x48408e['asObservable'](),'send':_0x4541c2=>{const _0x598459=_0x57db6b;if(_0x4541c2[_0x598459(0x37f)]===a[_0x598459(0x3c0)][_0x598459(0x369)]){if(_0x4541c2['data'][_0x598459(0x25c)]===e[_0x598459(0x1f4)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x1d4b16,_0x4541c2[_0x598459(0x223)])[_0x598459(0x4b1)](_0x2b47f5=>{const _0x1fe035=_0x598459;this[_0x1fe035(0x451)]['error'](_0x2b47f5),_0xfae256();});return;}if(_0x4541c2[_0x598459(0x223)][_0x598459(0x25c)]===e[_0x598459(0x1f4)][_0x598459(0x355)]){let _0x5d43b6=_0x4541c2[_0x598459(0x223)];this['_fetchMissChangesets'](_0x5d43b6)[_0x598459(0x216)](_0x21fb48=>{const _0x5aa896=_0x598459;_0x48408e['next']({'cmd':a['CombCmd']['RECV'],'code':a['CmdRspCode']['OK'],'routeKey':_0x5d43b6[_0x5aa896(0x223)][_0x5aa896(0x3b9)],'routeType':'','data':{'eventID':e['CollaborationEvent'][_0x5aa896(0x4a4)],'data':{'changesets':_0x21fb48}}});})[_0x598459(0x4b1)](_0x4f46f8=>{const _0x195a44=_0x598459;this[_0x195a44(0x451)][_0x195a44(0x1d8)](_0x4f46f8),_0xfae256();});return;}}_0x377320['send'](Ke(_0x4541c2));},'close':()=>{const _0x7297b7=_0x57db6b;_0x377320[_0x7297b7(0x41e)](),_0x58180c[_0x7297b7(0x22b)]();}},_0x1d4b16;}async[_0x16128c(0x48d)](_0x861762,_0x50d359){const _0x1e8cce=_0x16128c;let {unitType:_0x16195e,unitID:_0x5526f3,changeset:_0x91bd66}=_0x50d359['data'],_0x4cf81a={'unitID':_0x5526f3,'memberID':_0x861762[_0x1e8cce(0x2a6)],'type':_0x16195e,'changeset':(0x0,e[_0x1e8cce(0x1f9)])(_0x91bd66)},_0xd61e5=this[_0x1e8cce(0x20e)]['getConfig'](m),_0x37818f=Je((_0xd61e5==null?void 0x0:_0xd61e5[_0x1e8cce(0x4cf)])??_0x1e8cce(0x1ca),_0x16195e,_0x5526f3);try{await this[_0x1e8cce(0x3a4)][_0x1e8cce(0x20d)](_0x37818f,{'body':_0x4cf81a});}catch(_0xe16d9d){throw this[_0x1e8cce(0x451)][_0x1e8cce(0x1d8)]('[CollaborationSession]',_0x1e8cce(0x35e)),_0xe16d9d;}}async[_0x16128c(0x281)](_0x25d262){const _0x43c1c5=_0x16128c;let {unitID:_0x32496a,from:_0x1a7c60,to:_0xf5f7e6,unitType:_0x1ebc80}=_0x25d262['data'];return(await this[_0x43c1c5(0x24e)][_0x43c1c5(0x492)]({'metadata':void 0x0},{'unitID':_0x32496a,'type':_0x1ebc80,'from':_0x1a7c60,'to':_0xf5f7e6}))[_0x43c1c5(0x4d0)][_0x43c1c5(0x2b2)](_0x3dad0b=>((_0x3dad0b['mutations']===null||_0x3dad0b[_0x43c1c5(0x208)]===void 0x0)&&(_0x3dad0b['mutations']=[]),_0x3dad0b));}};Ye=y([v(0x0,(0x0,t['Inject'])(t[_0x16128c(0x33b)])),v(0x1,(0x0,t['Inject'])(l[_0x16128c(0x27f)])),v(0x2,t[_0x16128c(0x35d)]),v(0x3,t[_0x16128c(0x22c)]),v(0x4,e['ISnapshotServerService'])],Ye);const Xe=(0x0,t[_0x16128c(0x2e5)])('univer-pro.collaboration-client-adapter-service');function Ze(_0xa304d3={}){const _0x2b384c=_0x16128c;return _0xa304d3['resolveUnit']?{'resolveUnit':_0xa304d3[_0x2b384c(0x49e)]}:{'resolveUnit':_0x47dc29=>({'target':{'unitId':_0x47dc29[_0x2b384c(0x367)],'unitType':_0x47dc29[_0x2b384c(0x4e0)]}})};}function Qe(_0x97bd21,_0x12a1f7,_0x22d3a3){const _0x61f323=_0x16128c;let _0x25f76f=_0x22d3a3[_0x61f323(0x218)][_0x61f323(0x32f)];if(_0x25f76f!=null&&_0x25f76f[_0x61f323(0x309)]()==='')throw Error(_0x61f323(0x1cb));if(!_0x22d3a3[_0x61f323(0x218)][_0x61f323(0x367)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x97bd21,'unitType':_0x12a1f7,'target':{'endpoint':_0x25f76f,'unitId':_0x22d3a3[_0x61f323(0x218)][_0x61f323(0x367)],'unitType':_0x22d3a3[_0x61f323(0x218)][_0x61f323(0x4e0)]??_0x12a1f7},'changeset':_0x22d3a3['changeset']};}let V=class extends t[_0x16128c(0x31f)]{constructor(_0x3a779e,_0x5719fb,_0x590c1e,_0x3b0da4,_0x21345a,_0x1cd179,_0xb196e5){const _0x4dabfd=_0x16128c;super(),this[_0x4dabfd(0x200)]=_0x3a779e,this['_logService']=_0x5719fb,this[_0x4dabfd(0x20e)]=_0x590c1e,this['_socketService']=_0x3b0da4,this[_0x4dabfd(0x3ce)]=_0x21345a,this['_adapter']=_0x1cd179,this['_networkConditionService']=_0xb196e5,g(this,'_sessions',new Map()),g(this,'_pendingSessions',new Map()),g(this,_0x4dabfd(0x25a),new Map()),g(this,_0x4dabfd(0x2b1),new Map()),g(this,_0x4dabfd(0x3e6),this[_0x4dabfd(0x207)](void 0x0)[_0x4dabfd(0x3e6)]['asObservable']()),g(this,_0x4dabfd(0x1fb),new i[(_0x4dabfd(0x204))](0x0)),g(this,_0x4dabfd(0x4f1),this[_0x4dabfd(0x1fb)][_0x4dabfd(0x45a)]()),this[_0x4dabfd(0x4a3)]();}[_0x16128c(0x4a3)](){const _0x504dab=_0x16128c;this[_0x504dab(0x2fc)]&&this['disposeWithMe'](this[_0x504dab(0x2fc)][_0x504dab(0x349)][_0x504dab(0x3f8)](_0x5d8492=>{const _0x25b7cc=_0x504dab;_0x5d8492&&this['reconnect'](),_0x5d8492||this[_0x25b7cc(0x2b1)][_0x25b7cc(0x43b)](_0x555ba7=>this[_0x25b7cc(0x4d5)](_0x555ba7));}));}[_0x16128c(0x22b)](){const _0x10c5b5=_0x16128c;super[_0x10c5b5(0x22b)](),this[_0x10c5b5(0x2b1)]['forEach'](_0x3d2035=>{const _0x394e84=_0x10c5b5;var _0x3e138a,_0x2bf62a;(_0x3e138a=_0x3d2035[_0x394e84(0x4e8)])==null||_0x3e138a['unsubscribe'](),_0x3d2035['socketMessageSubscription']=null,this[_0x394e84(0x3d2)](_0x3d2035),this[_0x394e84(0x315)](_0x3d2035),this[_0x394e84(0x352)](_0x3d2035),(_0x2bf62a=_0x3d2035[_0x394e84(0x3e6)]['getValue']())==null||_0x2bf62a['close'](),_0x3d2035['socket$'][_0x394e84(0x26e)]();}),this[_0x10c5b5(0x2b1)][_0x10c5b5(0x292)](),this[_0x10c5b5(0x3b1)][_0x10c5b5(0x43b)](_0x5a80b2=>_0x5a80b2[_0x10c5b5(0x22b)]()),this[_0x10c5b5(0x3b1)][_0x10c5b5(0x292)](),this[_0x10c5b5(0x25a)][_0x10c5b5(0x292)](),this[_0x10c5b5(0x1fb)]['complete']();}async['requireSession'](_0x1bcc35,_0x105cc1){const _0x3f8a3a=_0x16128c;if(this[_0x3f8a3a(0x3b1)][_0x3f8a3a(0x339)](_0x1bcc35))return this[_0x3f8a3a(0x3b1)][_0x3f8a3a(0x1f1)](_0x1bcc35);let _0xb07c59=this[_0x3f8a3a(0x209)][_0x3f8a3a(0x1f1)](_0x1bcc35);if(_0xb07c59)return _0xb07c59;let _0x4055de=this[_0x3f8a3a(0x3b3)](_0x1bcc35,_0x105cc1);this[_0x3f8a3a(0x209)][_0x3f8a3a(0x2b4)](_0x1bcc35,_0x4055de);try{return await _0x4055de;}finally{this[_0x3f8a3a(0x209)][_0x3f8a3a(0x328)](_0x1bcc35);}}async[_0x16128c(0x3b3)](_0x4851c8,_0x39608f){const _0x49c0fd=_0x16128c;let _0x1cddd7=await this[_0x49c0fd(0x40d)](_0x4851c8,_0x39608f),_0x1805ae=this['_getSocketChannel'](_0x1cddd7[_0x49c0fd(0x218)][_0x49c0fd(0x32f)]);this[_0x49c0fd(0x1ef)](_0x1805ae);let _0x4d5e51=this[_0x49c0fd(0x200)]['createInstance'](ve,_0x1cddd7,_0x1805ae[_0x49c0fd(0x3e6)]['asObservable']());return this['_sessions'][_0x49c0fd(0x2b4)](_0x4851c8,_0x4d5e51),this[_0x49c0fd(0x25a)][_0x49c0fd(0x2b4)](_0x4851c8,_0x1805ae[_0x49c0fd(0x26b)]),_0x4d5e51;}[_0x16128c(0x429)](_0x1b12ee){const _0x1f448f=_0x16128c;let _0xd40ba6=this[_0x1f448f(0x3b1)][_0x1f448f(0x1f1)](_0x1b12ee),_0x19b840=this['_sessionChannels']['get'](_0x1b12ee);if(_0xd40ba6&&(this[_0x1f448f(0x3b1)]['delete'](_0x1b12ee),this['_sessionChannels'][_0x1f448f(0x328)](_0x1b12ee),_0xd40ba6[_0x1f448f(0x41e)]()),_0x19b840&&!this[_0x1f448f(0x257)](_0x19b840)){var _0x4680a3;let _0x541de1=this[_0x1f448f(0x2b1)][_0x1f448f(0x1f1)](_0x19b840);_0x541de1==null||(_0x4680a3=_0x541de1[_0x1f448f(0x3e6)]['getValue']())==null||_0x4680a3[_0x1f448f(0x41e)]();}}['reconnect'](){const _0x5ee7dd=_0x16128c;(this['_socketChannels'][_0x5ee7dd(0x2cd)]?[...this[_0x5ee7dd(0x2b1)][_0x5ee7dd(0x3af)]()]:[this[_0x5ee7dd(0x207)](void 0x0)])[_0x5ee7dd(0x43b)](_0x53476c=>{const _0x2a45a0=_0x5ee7dd;_0x53476c[_0x2a45a0(0x41b)]=0x0,this['_clearRetryConnectingTimer'](_0x53476c),this[_0x2a45a0(0x2ce)](_0x53476c);});}['_clearRetryConnectingTimer'](_0x381312){const _0x5f10a2=_0x16128c;_0x381312['retryConnectingTimer']!=null&&(clearTimeout(_0x381312['retryConnectingTimer']),_0x381312[_0x5f10a2(0x301)]=null);}async[_0x16128c(0x4d7)](_0xebb751){const _0x418a12=_0x16128c;let _0x21bf2c=this[_0x418a12(0x20e)][_0x418a12(0x1dd)](m),_0x5ab8bc=_0xebb751['endpoint']??(_0x21bf2c==null?void 0x0:_0x21bf2c[_0x418a12(0x2d8)])??_0x418a12(0x31b),_0x5d65c6=await this[_0x418a12(0x217)][_0x418a12(0x32b)](_0x5ab8bc);return _0xebb751[_0x418a12(0x475)]=_0x5d65c6,_0x5d65c6;}async['_tryEnsureSocket'](_0x3394c2){const _0xafa401=_0x16128c;try{let _0x173a49=_0x3394c2['socket$'][_0xafa401(0x23a)]()??_0x3394c2[_0xafa401(0x475)]??await this['_createSocket'](_0x3394c2);if(_0x173a49){var _0x23c9da;let _0x5166db=_0x173a49[_0xafa401(0x389)];_0x173a49['send']=_0x4eea5b=>(_0x4eea5b[_0xafa401(0x37f)]!==a[_0xafa401(0x3c0)][_0xafa401(0x230)]&&this['_rescheduleHeartbeat'](_0x3394c2),_0x5166db[_0xafa401(0x3da)](_0x173a49,[_0x4eea5b])),(_0x23c9da=_0x3394c2[_0xafa401(0x4e8)])==null||_0x23c9da[_0xafa401(0x3e2)](),_0x3394c2[_0xafa401(0x4e8)]=null,_0x3394c2[_0xafa401(0x4e8)]=_0x173a49['message$'][_0xafa401(0x3f8)](_0x5d36da=>this[_0xafa401(0x2c5)](_0x3394c2,_0x173a49,_0x5d36da)),_0x173a49[_0xafa401(0x3f2)][_0xafa401(0x476)]((0x0,s['take'])(0x1))['subscribe'](_0x3bb7ec=>this['_logService'][_0xafa401(0x1d8)](_0xafa401(0x3c9),_0x3bb7ec)),_0x173a49[_0xafa401(0x363)][_0xafa401(0x476)]((0x0,s[_0xafa401(0x27e)])(0x1))[_0xafa401(0x3f8)](()=>{this['_onConnectionOpen'](_0x3394c2,_0x173a49);}),_0x173a49[_0xafa401(0x310)]['pipe']((0x0,s['take'])(0x1))[_0xafa401(0x3f8)](_0x211f41=>{const _0x315ab4=_0xafa401;this[_0x315ab4(0x451)][_0x315ab4(0x235)](_0x315ab4(0x44d),_0x315ab4(0x325),_0x211f41),this['_onConnectionFailed'](_0x3394c2);});}}catch(_0x4eb93d){this[_0xafa401(0x451)]['error'](_0x4eb93d),this[_0xafa401(0x270)](_0x3394c2);}}[_0x16128c(0x391)](_0x39278f,_0x2f0e8b){const _0x458938=_0x16128c;this[_0x458938(0x451)][_0x458938(0x235)](_0x458938(0x44d),_0x458938(0x2ad)),_0x2f0e8b[_0x458938(0x389)]({'cmd':a[_0x458938(0x3c0)]['HELLO']}),this[_0x458938(0x332)](_0x39278f);}[_0x16128c(0x4d5)](_0x142d2f){const _0x5a0231=_0x16128c;_0x142d2f['socketReady']=!0x1,_0x142d2f['candidateSocket']=null,this['_status$'][_0x5a0231(0x272)](0x2),_0x142d2f[_0x5a0231(0x3e6)][_0x5a0231(0x272)](null),this[_0x5a0231(0x315)](_0x142d2f),this[_0x5a0231(0x352)](_0x142d2f);}[_0x16128c(0x270)](_0x3023e8){const _0x55b0b6=_0x16128c;this[_0x55b0b6(0x4d5)](_0x3023e8),this[_0x55b0b6(0x257)](_0x3023e8[_0x55b0b6(0x26b)])&&(_0x3023e8[_0x55b0b6(0x41b)]<(this['_configService']['getConfig']('RETRY_CONNECTING_MAX_COUNT')??0x3)?(this[_0x55b0b6(0x3ce)][_0x55b0b6(0x4e7)]({'id':_0x55b0b6(0x28f)}),this[_0x55b0b6(0x2ce)](_0x3023e8)):this['_collaborationUIEventService'][_0x55b0b6(0x4e7)]({'id':'SOCKET_FAILED'}));}[_0x16128c(0x2ce)](_0x565d21){const _0x1eae31=_0x16128c;let _0x28f239=_0x565d21[_0x1eae31(0x41b)],_0x4ebb92=this[_0x1eae31(0x20e)][_0x1eae31(0x1dd)](m),_0x19a12c=_0x28f239===0x0?0x0:((_0x4ebb92==null?void 0x0:_0x4ebb92[_0x1eae31(0x430)])??0x4e20)*0x2**_0x28f239;_0x565d21[_0x1eae31(0x301)]=setTimeout(()=>{const _0x8cecef=_0x1eae31;clearTimeout(_0x565d21[_0x8cecef(0x301)]),_0x565d21[_0x8cecef(0x301)]=null,this[_0x8cecef(0x1ef)](_0x565d21);},_0x19a12c),_0x565d21[_0x1eae31(0x41b)]+=0x1;}async[_0x16128c(0x40d)](_0x470b84,_0x4a935a){const _0x44723f=_0x16128c;return Qe(_0x470b84,_0x4a935a,await this['_adapter'][_0x44723f(0x49e)]({'unitId':_0x470b84,'unitType':_0x4a935a}));}[_0x16128c(0x2c5)](_0x4e2855,_0x526347,_0x21fb83){const _0x122730=_0x16128c;let {cmd:_0x35b944}=_0x21fb83;_0x35b944===a[_0x122730(0x3c0)][_0x122730(0x2c1)]&&!_0x4e2855[_0x122730(0x2a1)]&&(_0x526347['memberID']=_0x21fb83[_0x122730(0x223)]['memberID'],_0x4e2855[_0x122730(0x41b)]=0x0,_0x4e2855[_0x122730(0x3e6)][_0x122730(0x272)](_0x526347),this[_0x122730(0x1fb)][_0x122730(0x272)](0x3),_0x4e2855['socketReady']=!0x0,_0x4e2855['candidateSocket']=null),_0x35b944===a[_0x122730(0x3c0)][_0x122730(0x4fc)]&&this[_0x122730(0x315)](_0x4e2855),this[_0x122730(0x332)](_0x4e2855);}[_0x16128c(0x257)](_0x3970b9){const _0x52bb58=_0x16128c;return[...this[_0x52bb58(0x25a)]['values']()][_0x52bb58(0x236)](_0x4c41e9=>_0x4c41e9===_0x3970b9);}[_0x16128c(0x207)](_0x161cb7){const _0xf77838=_0x16128c;let _0xebdd41=_0x161cb7??'',_0x1bbdbb=this['_socketChannels'][_0xf77838(0x1f1)](_0xebdd41);if(_0x1bbdbb)return _0x1bbdbb;let _0x556ce0={'endpointKey':_0xebdd41,'endpoint':_0x161cb7,'socket$':new i[(_0xf77838(0x204))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0xf77838(0x2b1)]['set'](_0xebdd41,_0x556ce0),_0x556ce0;}[_0x16128c(0x332)](_0xd60370){const _0x23909b=_0x16128c;this[_0x23909b(0x352)](_0xd60370),_0xd60370[_0x23909b(0x504)]=setTimeout(()=>this[_0x23909b(0x3f7)](_0xd60370),this['_configService'][_0x23909b(0x1dd)](_0x23909b(0x477))??0x7530);}[_0x16128c(0x3f7)](_0x48698a){const _0x6cbd75=_0x16128c;_0x48698a['socket$'][_0x6cbd75(0x23a)]()['send']({'cmd':a[_0x6cbd75(0x3c0)][_0x6cbd75(0x4fc)]}),this[_0x6cbd75(0x25d)](_0x48698a);}[_0x16128c(0x25d)](_0x2e30bd){const _0x5cf331=_0x16128c;_0x2e30bd[_0x5cf331(0x3ef)]=setTimeout(()=>this[_0x5cf331(0x270)](_0x2e30bd),this[_0x5cf331(0x20e)]['getConfig'](_0x5cf331(0x263))??0x4e20);}[_0x16128c(0x352)](_0x34e2a0){const _0x58a36a=_0x16128c;_0x34e2a0['sendHeartbeatTimer']!=null&&(clearTimeout(_0x34e2a0[_0x58a36a(0x504)]),_0x34e2a0[_0x58a36a(0x504)]=null);}['_clearTimeoutTimer'](_0x5d3d65){const _0x345551=_0x16128c;_0x5d3d65[_0x345551(0x3ef)]!=null&&(clearTimeout(_0x5d3d65[_0x345551(0x3ef)]),_0x5d3d65[_0x345551(0x3ef)]=null);}};V=y([v(0x0,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x33b)])),v(0x1,t[_0x16128c(0x22c)]),v(0x2,t[_0x16128c(0x35d)]),v(0x3,qe),v(0x4,(0x0,t[_0x16128c(0x4c0)])(_)),v(0x5,Xe),v(0x6,(0x0,t['Optional'])(We))],V);let H=class extends t[_0x16128c(0x313)]{constructor(_0x4f2112,_0x55c841,_0x43dabd,_0x189be4){const _0x3b8240=_0x16128c;var _0x162433;super(),this[_0x3b8240(0x200)]=_0x4f2112,this[_0x3b8240(0x500)]=_0x55c841,this[_0x3b8240(0x20e)]=_0x43dabd,this[_0x3b8240(0x32c)]=_0x189be4,g(this,_0x3b8240(0x282),new Map()),g(this,_0x3b8240(0x432),new i[(_0x3b8240(0x21b))]()),g(this,_0x3b8240(0x466),this['_entityInit$']['asObservable']()),((_0x162433=this[_0x3b8240(0x20e)][_0x3b8240(0x1dd)](_0x3b8240(0x290)))==null?void 0x0:_0x162433[_0x3b8240(0x28d)])!==!0x1&&this[_0x3b8240(0x2f6)]();}[_0x16128c(0x22b)](){const _0x1dc619=_0x16128c;super[_0x1dc619(0x22b)](),this[_0x1dc619(0x282)][_0x1dc619(0x43b)](_0x40c568=>_0x40c568[_0x1dc619(0x22b)]()),this['_entities'][_0x1dc619(0x292)]();}['getCollabEntity'](_0x432040){const _0xb2c3ad=_0x16128c;return this[_0xb2c3ad(0x282)][_0xb2c3ad(0x1f1)](_0x432040)??null;}['getCollabEntity$'](_0x21f7f6){const _0x55c9af=_0x16128c;let _0x3c713f=this[_0x55c9af(0x36e)](_0x21f7f6);return _0x3c713f?(0x0,i['of'])(_0x3c713f):this[_0x55c9af(0x432)][_0x55c9af(0x476)]((0x0,s[_0x55c9af(0x2df)])(_0xb10aa7=>_0xb10aa7[_0x55c9af(0x3b9)]===_0x21f7f6));}['readyForCollab'](_0x3f2317){const _0x330b62=_0x16128c;return(0x0,i[_0x330b62(0x345)])(this[_0x330b62(0x322)](_0x3f2317)[_0x330b62(0x476)]((0x0,s[_0x330b62(0x2b2)])(()=>void 0x0)));}[_0x16128c(0x2f6)](){const _0x558c27=_0x16128c;this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x558c27(0x3c4)]['UNIVER_SHEET'])['pipe']((0x0,i['takeUntil'])(this[_0x558c27(0x343)]),(0x0,s[_0x558c27(0x4ae)])(0x10))[_0x558c27(0x3f8)](async _0x578337=>{const _0x3570ad=_0x558c27;let _0x25eb45=_0x578337[_0x3570ad(0x49b)][_0x3570ad(0x2f0)](),_0x21faf8=await this[_0x3570ad(0x4fa)](_0x25eb45,t[_0x3570ad(0x3c4)][_0x3570ad(0x4d8)]);this[_0x3570ad(0x282)]['set'](_0x25eb45,_0x21faf8);}),this[_0x558c27(0x32c)]['getTypeOfUnitAdded$'](t['UniverInstanceType']['UNIVER_DOC'])[_0x558c27(0x476)]((0x0,i['takeUntil'])(this[_0x558c27(0x343)]),(0x0,s[_0x558c27(0x4ae)])(0x10))['pipe']((0x0,s[_0x558c27(0x2df)])(_0x3bf5e7=>!_0x3bf5e7[_0x558c27(0x49b)][_0x558c27(0x2f0)]()[_0x558c27(0x3cd)]('__')))[_0x558c27(0x3f8)](async _0x2670b2=>{const _0x155c67=_0x558c27;let _0x40c27c=_0x2670b2[_0x155c67(0x49b)][_0x155c67(0x2f0)](),_0x423a84=await this['_startCollaboration'](_0x40c27c,t[_0x155c67(0x3c4)][_0x155c67(0x494)]);this['_entities'][_0x155c67(0x2b4)](_0x40c27c,_0x423a84);}),this[_0x558c27(0x32c)][_0x558c27(0x201)](t['UniverInstanceType'][_0x558c27(0x4fd)])[_0x558c27(0x476)]((0x0,i['takeUntil'])(this[_0x558c27(0x343)]),(0x0,s[_0x558c27(0x4ae)])(0x10))[_0x558c27(0x3f8)](async _0x585662=>{const _0x2ddb04=_0x558c27;let _0x48cd86=_0x585662[_0x2ddb04(0x49b)][_0x2ddb04(0x2f0)](),_0x5cdb0f=await this['_startCollaboration'](_0x48cd86,t[_0x2ddb04(0x3c4)][_0x2ddb04(0x4fd)]);this[_0x2ddb04(0x282)][_0x2ddb04(0x2b4)](_0x48cd86,_0x5cdb0f);}),this[_0x558c27(0x32c)][_0x558c27(0x201)](t[_0x558c27(0x3c4)]['UNIVER_BOARD'])[_0x558c27(0x476)]((0x0,i[_0x558c27(0x2ed)])(this[_0x558c27(0x343)]),(0x0,s['delay'])(0x10))[_0x558c27(0x3f8)](async _0x54183c=>{const _0x8f0b84=_0x558c27;let _0x1c0662=_0x54183c[_0x8f0b84(0x49b)][_0x8f0b84(0x2f0)](),_0x52f685=await this['_startCollaboration'](_0x1c0662,t[_0x8f0b84(0x3c4)]['UNIVER_BOARD']);this[_0x8f0b84(0x282)][_0x8f0b84(0x2b4)](_0x1c0662,_0x52f685);}),this[_0x558c27(0x32c)][_0x558c27(0x201)](t[_0x558c27(0x3c4)][_0x558c27(0x4f7)])['pipe']((0x0,i[_0x558c27(0x2ed)])(this[_0x558c27(0x343)]),(0x0,s[_0x558c27(0x4ae)])(0x10))[_0x558c27(0x3f8)](async _0x14b2ca=>{const _0x2b4a87=_0x558c27;let _0x2569df=_0x14b2ca[_0x2b4a87(0x49b)][_0x2b4a87(0x2f0)](),_0x84434f=await this[_0x2b4a87(0x4fa)](_0x2569df,t[_0x2b4a87(0x3c4)][_0x2b4a87(0x4f7)]);this[_0x2b4a87(0x282)][_0x2b4a87(0x2b4)](_0x2569df,_0x84434f);}),this['_univerInstanceService'][_0x558c27(0x201)](t[_0x558c27(0x3c4)][_0x558c27(0x2e1)])['pipe']((0x0,i[_0x558c27(0x2ed)])(this['dispose$']),(0x0,s[_0x558c27(0x4ae)])(0x10))[_0x558c27(0x3f8)](async _0x38e8f0=>{const _0x5ba89d=_0x558c27;let _0x50f079=_0x38e8f0[_0x5ba89d(0x49b)][_0x5ba89d(0x2f0)](),_0x2253cb=await this[_0x5ba89d(0x4fa)](_0x50f079,t[_0x5ba89d(0x3c4)][_0x5ba89d(0x2e1)]);this['_entities']['set'](_0x50f079,_0x2253cb);}),(0x0,i[_0x558c27(0x23f)])(this[_0x558c27(0x32c)][_0x558c27(0x439)](t[_0x558c27(0x3c4)][_0x558c27(0x4d8)]),this[_0x558c27(0x32c)][_0x558c27(0x439)](t[_0x558c27(0x3c4)][_0x558c27(0x494)]),this[_0x558c27(0x32c)][_0x558c27(0x439)](t['UniverInstanceType'][_0x558c27(0x4fd)]),this[_0x558c27(0x32c)][_0x558c27(0x439)](t[_0x558c27(0x3c4)]['UNIVER_BOARD']),this[_0x558c27(0x32c)][_0x558c27(0x439)](t[_0x558c27(0x3c4)][_0x558c27(0x4f7)]),this[_0x558c27(0x32c)][_0x558c27(0x439)](t[_0x558c27(0x3c4)][_0x558c27(0x2e1)]))[_0x558c27(0x476)]((0x0,i[_0x558c27(0x2ed)])(this['dispose$']))[_0x558c27(0x3f8)](_0x4e4911=>{const _0x9c4f3c=_0x558c27;let _0x52b4e0=_0x4e4911[_0x9c4f3c(0x2f0)](),_0x116cfc=this[_0x9c4f3c(0x282)][_0x9c4f3c(0x1f1)](_0x52b4e0);_0x116cfc&&(_0x116cfc[_0x9c4f3c(0x22b)](),this[_0x9c4f3c(0x282)][_0x9c4f3c(0x328)](_0x52b4e0));});}async[_0x16128c(0x4fa)](_0x1c254a,_0x1e72bc){const _0x386bba=_0x16128c;let _0x5770f1=await this[_0x386bba(0x500)][_0x386bba(0x39c)](_0x1c254a),_0x120fd3=this['_injector']['createInstance'](this[_0x386bba(0x3a1)](_0x1e72bc),_0x1c254a,_0x1e72bc,_0x5770f1);return await _0x120fd3['init'](),this['_entityInit$']['next'](_0x120fd3),_0x120fd3;}[_0x16128c(0x3a1)](_0x170809){const _0x5e649f=_0x16128c;switch(_0x170809){case t['UniverInstanceType'][_0x5e649f(0x494)]:return F;case t[_0x5e649f(0x3c4)]['UNIVER_SHEET']:return L;case t['UniverInstanceType']['UNIVER_SLIDE']:return R;case t[_0x5e649f(0x3c4)][_0x5e649f(0x441)]:return z;case t[_0x5e649f(0x3c4)][_0x5e649f(0x4f7)]:return I;case t[_0x5e649f(0x3c4)][_0x5e649f(0x2e1)]:return B;default:throw Error(_0x5e649f(0x4f2)+_0x170809);}}};H=y([v(0x0,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x33b)])),v(0x1,(0x0,t[_0x16128c(0x4c0)])(V)),v(0x2,t[_0x16128c(0x35d)]),v(0x3,t[_0x16128c(0x399)])],H);var $e=_0x16128c(0x25b),et=_0x16128c(0x3ff);let tt=class extends t[_0x16128c(0x31f)]{constructor(_0x340100,_0x55c4ac){const _0x392081=_0x16128c;super(),this[_0x392081(0x32c)]=_0x340100,this[_0x392081(0x20e)]=_0x55c4ac,this[_0x392081(0x2f6)]();}[_0x16128c(0x2f6)](){const _0xd70a45=_0x16128c;this['disposeWithMe'](this[_0xd70a45(0x32c)][_0xd70a45(0x4c9)][_0xd70a45(0x3f8)](()=>{const _0x722788=_0xd70a45;let _0x25023e=this[_0x722788(0x32c)]['getFocusedUnit'](),_0x471dab=this[_0x722788(0x20e)][_0x722788(0x1dd)]('DEFAULT_FILE_NAME')??'Univer';_0x25023e instanceof t[_0x722788(0x36c)]&&(_0x471dab=_0x25023e[_0x722788(0x409)]),document['title']=_0x471dab;}));}};tt=y([v(0x0,t[_0x16128c(0x399)]),v(0x1,t['IConfigService'])],tt);const nt=(0x0,t[_0x16128c(0x2e5)])(_0x16128c(0x46d));let U=class{constructor(_0x889a69,_0x2cb5d4,_0x3e5eff){const _0x1205af=_0x16128c;this['_httpService']=_0x889a69,this[_0x1205af(0x20e)]=_0x2cb5d4,this[_0x1205af(0x32c)]=_0x3e5eff;}[_0x16128c(0x323)](){const _0x3176dc=_0x16128c;return this[_0x3176dc(0x457)]()[_0x3176dc(0x428)]??{};}async[_0x16128c(0x335)](_0x18c816){const _0x212eb1=_0x16128c;let _0x29ba84=this[_0x212eb1(0x323)]();if(rt(_0x18c816,_0x29ba84),_0x29ba84[_0x212eb1(0x407)])return _0x29ba84['upload'](_0x18c816);let _0x4a659f=await this[_0x212eb1(0x393)](_0x18c816);return{'id':_0x4a659f,'name':_0x18c816[_0x212eb1(0x409)],'mimeType':_0x18c816[_0x212eb1(0x3eb)],'size':_0x18c816[_0x212eb1(0x2cd)],'sourceType':t['ImageSourceType'][_0x212eb1(0x3c8)],'source':_0x4a659f};}async['getAttachmentUrl'](_0x27d1b0,_0x4f3a3a){const _0x1c2496=_0x16128c;if(_0x4f3a3a!==t['ImageSourceType'][_0x1c2496(0x3c8)])return _0x27d1b0;let _0x41a22d=(await this[_0x1c2496(0x3a4)]['get'](this[_0x1c2496(0x327)]()['replace'](_0x1c2496(0x4b4),_0x27d1b0)))['body'];if(_0x41a22d[_0x1c2496(0x1d8)]&&_0x41a22d[_0x1c2496(0x1d8)]['code']!==a[_0x1c2496(0x35b)]['OK'])throw _0x41a22d['error'];if(!_0x41a22d[_0x1c2496(0x302)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,t[_0x1c2496(0x452)])(_0x41a22d[_0x1c2496(0x302)],this['_getDownloadEndpointURL']());}async[_0x16128c(0x393)](_0x788c3){const _0x355d67=_0x16128c;let _0x56531a=this['_univerInstanceService'][_0x355d67(0x1fe)](),_0x41d817=_0x56531a==null?void 0x0:_0x56531a[_0x355d67(0x2f0)]();if(!_0x41d817)throw Error(_0x355d67(0x269));let _0x1b5ec8=new FormData();_0x1b5ec8['append'](_0x355d67(0x1fa),_0x788c3);let _0x10b5a8=this[_0x355d67(0x234)]()+'?size='+_0x788c3['size']['toString']()+_0x355d67(0x206)+a['FileSource'][_0x355d67(0x299)]+_0x355d67(0x212)+encodeURIComponent(_0x41d817),_0x3d7832=(await this['_httpService'][_0x355d67(0x20d)](_0x10b5a8,{'body':_0x1b5ec8}))[_0x355d67(0x20b)][_0x355d67(0x2ee)];if(typeof _0x3d7832!=_0x355d67(0x508)||!_0x3d7832)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x3d7832;}[_0x16128c(0x234)](){const _0x21051e=_0x16128c;return this[_0x21051e(0x457)]()[_0x21051e(0x48e)]??_0x21051e(0x2b3);}[_0x16128c(0x327)](){const _0x3d4455=_0x16128c;return this['_getConfig']()[_0x3d4455(0x1e8)]??_0x3d4455(0x359);}[_0x16128c(0x3bf)](){const _0x223452=_0x16128c;let _0x3a2140=this['_getConfig']();return _0x3a2140[_0x223452(0x37e)]?_0x3a2140[_0x223452(0x37e)]:typeof location<'u'?location[_0x223452(0x1fd)]:_0x3a2140[_0x223452(0x48e)]??'';}[_0x16128c(0x457)](){const _0x4c8c47=_0x16128c;return this[_0x4c8c47(0x20e)][_0x4c8c47(0x1dd)](_0x4c8c47(0x290))??{};}};U=y([v(0x0,(0x0,t['Inject'])(l[_0x16128c(0x27f)])),v(0x1,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x35d)])),v(0x2,(0x0,t['Inject'])(t['IUniverInstanceService']))],U);function rt(_0x50b6d4,_0x3b2644){const _0x3c65b4=_0x16128c;var _0x4610e4;if(_0x3b2644[_0x3c65b4(0x40f)]!=null&&_0x50b6d4[_0x3c65b4(0x2cd)]>_0x3b2644[_0x3c65b4(0x40f)])throw Error(_0x3c65b4(0x29e));if((_0x4610e4=_0x3b2644[_0x3c65b4(0x502)])!=null&&_0x4610e4['length']&&!_0x3b2644[_0x3c65b4(0x502)][_0x3c65b4(0x236)](_0x2308d0=>_0x50b6d4[_0x3c65b4(0x3eb)]===_0x2308d0||_0x50b6d4['name'][_0x3c65b4(0x265)](_0x2308d0)||_0x2308d0[_0x3c65b4(0x265)]('/*')&&_0x50b6d4[_0x3c65b4(0x3eb)][_0x3c65b4(0x3cd)](_0x2308d0[_0x3c65b4(0x307)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let W=class{constructor(_0x2ea063,_0x162216,_0x332bbc){const _0x563fa8=_0x16128c;this[_0x563fa8(0x20e)]=_0x2ea063,this['_httpService']=_0x162216,this[_0x563fa8(0x4ec)]=_0x332bbc,this['init']();}[_0x16128c(0x49a)](){const _0x42b1d1=_0x16128c;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0xaf6847,_0x2dbe9f)=>_0x2dbe9f(_0xaf6847)[_0x42b1d1(0x476)]((0x0,i[_0x42b1d1(0x1dc)])(async _0x3bd3e4=>{const _0xabf1f6=_0x42b1d1;let _0x5ce3dc=_0x3bd3e4;if(_0x5ce3dc[_0xabf1f6(0x3fb)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0xabf1f6(0x4bf)](this['localeService']['t'](_0xabf1f6(0x1e4)))){let _0x2e4c91=window['encodeURIComponent'](window['location']['href']);window[_0xabf1f6(0x3a0)][_0xabf1f6(0x271)]=this[_0xabf1f6(0x300)]()+_0xabf1f6(0x249)+_0x2e4c91;}}return _0x5ce3dc;}))});}['_getLoginPath'](){const _0x2b36c0=_0x16128c;let _0x51a370=this[_0x2b36c0(0x20e)][_0x2b36c0(0x1dd)](m);return(_0x51a370==null?void 0x0:_0x51a370['loginUrlKey'])??_0x2b36c0(0x4c1);}};W=y([v(0x0,t[_0x16128c(0x35d)]),v(0x1,(0x0,t[_0x16128c(0x4c0)])(l[_0x16128c(0x27f)])),v(0x2,(0x0,t['Inject'])(t[_0x16128c(0x48a)]))],W);let G=class extends t[_0x16128c(0x31f)]{constructor(_0x26e932,_0x18e479){const _0x1149bf=_0x16128c;super(),this[_0x1149bf(0x336)]=_0x26e932,this['_configService']=_0x18e479,g(this,_0x1149bf(0x490),!0x1),this[_0x1149bf(0x1d0)]();}['_initMergeInterceptor'](){const _0x371e5e=_0x16128c;let _0x52a4d3=this;this[_0x371e5e(0x31d)](this['_HTTPService'][_0x371e5e(0x31a)]({'priority':0x3e7,'interceptor':(0x0,l['MergeInterceptorFactory'])({'isMatch'(_0x171c3d){const _0x2895e8=_0x371e5e;var _0x178960;if(_0x171c3d[_0x2895e8(0x348)]==='POST'&&(_0x178960=_0x171c3d[_0x2895e8(0x23b)])!=null&&_0x178960['body']){let {objectID:_0x55716a,objectType:_0x3897a6}=_0x171c3d[_0x2895e8(0x23b)]['body']||{};if(!_0x55716a||_0x3897a6===void 0x0)return!0x1;let _0x318464=_0x52a4d3[_0x2895e8(0x406)]()+'/'+_0x3897a6+_0x2895e8(0x42b)+encodeURIComponent(_0x55716a)+_0x2895e8(0x4b3);if(_0x171c3d[_0x2895e8(0x302)]===_0x318464)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x196f61){const _0x4daf52=_0x371e5e;var _0x50fad5;return(_0x50fad5=_0x196f61[_0x4daf52(0x23b)])==null?void 0x0:_0x50fad5['body'];},'mergeParamsToRequest'(_0x24671e,_0x5e963a){const _0x447b5b=_0x371e5e;let _0x43a617=_0x52a4d3[_0x447b5b(0x406)]()+'/-/object/-/batch_allowed',_0x42caf0=_0x24671e['reduce']((_0x3b153c,_0x3d51f5)=>{const _0x3fb797=_0x447b5b;let {unitID:_0x6fecc4,objectID:_0x48e8fe,objectType:_0x5e7598,actions:_0x57642a}=_0x3d51f5;return _0x3b153c[_0x6fecc4]||(_0x3b153c[_0x6fecc4]=Object[_0x3fb797(0x411)](null)),_0x3b153c[_0x6fecc4][_0x48e8fe]||(_0x3b153c[_0x6fecc4][_0x48e8fe]={'objectID':_0x48e8fe,'objectType':_0x5e7598,'actions':[]}),_0x3b153c[_0x6fecc4][_0x48e8fe][_0x3fb797(0x226)][_0x3fb797(0x4da)](..._0x57642a),_0x3b153c;},Object[_0x447b5b(0x411)](null)),_0x4d9545=[];for(let _0x17c639 in _0x42caf0)for(let _0x22aedb in _0x42caf0[_0x17c639]){let {actions:_0x1a0856,objectType:_0x5ae25b}=_0x42caf0[_0x17c639][_0x22aedb],_0x145105=[...new Set(_0x1a0856)];_0x4d9545[_0x447b5b(0x4da)]({'unitID':_0x17c639,'objectID':_0x22aedb,'objectType':_0x5ae25b,'actions':_0x145105});}return new l[(_0x447b5b(0x2c4))](_0x447b5b(0x29b),_0x43a617,{'headers':_0x5e963a[_0x447b5b(0x1f6)],'withCredentials':_0x5e963a[_0x447b5b(0x3cf)],'responseType':_0x5e963a['responseType'],'body':{'requests':_0x4d9545}});}},{'distributeResult'(_0x960fa3,_0x51d375){const _0x230fa5=_0x371e5e;let {objectActions:_0x3c288}=_0x960fa3;return _0x51d375[_0x230fa5(0x2b2)](_0x215493=>{const _0x4023b6=_0x230fa5;let {unitID:_0x1fc209,objectID:_0x4a5698,actions:_0x2b759b}=_0x215493,_0x46e829=_0x3c288[_0x4023b6(0x4ee)](_0x5b0a56=>_0x5b0a56[_0x4023b6(0x3b9)]===_0x1fc209&&_0x5b0a56['objectID']===_0x4a5698);return{'config':_0x215493,'result':{'actions':_0x2b759b[_0x4023b6(0x2b2)](_0x5cb989=>_0x46e829==null?void 0x0:_0x46e829[_0x4023b6(0x226)][_0x4023b6(0x4ee)](_0x285e24=>_0x285e24[_0x4023b6(0x47a)]===_0x5cb989))['filter'](_0x29b0c1=>!!_0x29b0c1),'error':_0x960fa3[_0x4023b6(0x1d8)]}};});}})}));}['_getAPIPrefixPath'](){const _0x17747f=_0x16128c;let _0x4847d4=this[_0x17747f(0x20e)][_0x17747f(0x1dd)](m);return(_0x4847d4==null?void 0x0:_0x4847d4[_0x17747f(0x26a)])??'/universer-api/authz';}async['create'](_0x3a3773){const _0x34c3e4=_0x16128c;let _0x4d6221=this[_0x34c3e4(0x406)]()+'/'+_0x3a3773[_0x34c3e4(0x342)]+_0x34c3e4(0x4ad);return(await this[_0x34c3e4(0x336)][_0x34c3e4(0x20d)](_0x4d6221,{'body':_0x3a3773}))[_0x34c3e4(0x20b)][_0x34c3e4(0x231)]||'';}async[_0x16128c(0x3cb)](_0x1ff775){const _0x271bc3=_0x16128c;let _0x57ea47=this[_0x271bc3(0x406)]()+_0x271bc3(0x2e2);return(await this[_0x271bc3(0x336)][_0x271bc3(0x20d)](_0x57ea47,{'body':_0x1ff775}))['body']['objects'];}async[_0x16128c(0x340)](_0x31f353){const _0x5629cd=_0x16128c;var _0x3f23fd;let _0x242efd=this[_0x5629cd(0x406)]()+'/'+_0x31f353[_0x5629cd(0x342)]+_0x5629cd(0x42b)+encodeURIComponent(_0x31f353[_0x5629cd(0x231)]),_0x5e9395=await this[_0x5629cd(0x336)][_0x5629cd(0x1d9)](_0x242efd,{'body':_0x31f353});if((_0x5e9395==null||(_0x3f23fd=_0x5e9395['body'])==null||(_0x3f23fd=_0x3f23fd['error'])==null?void 0x0:_0x3f23fd['code'])!==0x1)throw Error(_0x5629cd(0x1de));}async['allowed'](_0xb28a54){const _0x3187ce=_0x16128c;let _0x5636cb=this[_0x3187ce(0x406)]()+'/'+_0xb28a54[_0x3187ce(0x342)]+_0x3187ce(0x42b)+encodeURIComponent(_0xb28a54[_0x3187ce(0x231)])+_0x3187ce(0x4b3);return(await this[_0x3187ce(0x336)][_0x3187ce(0x20d)](_0x5636cb,{'body':_0xb28a54}))[_0x3187ce(0x20b)][_0x3187ce(0x226)];}async[_0x16128c(0x23d)](_0x4d8228){const _0x4dffa6=_0x16128c;let _0x1c8a0d=this[_0x4dffa6(0x406)]()+_0x4dffa6(0x3ed);return(await this[_0x4dffa6(0x336)][_0x4dffa6(0x20d)](_0x1c8a0d,{'body':{'requests':_0x4d8228}}))[_0x4dffa6(0x20b)][_0x4dffa6(0x463)];}async[_0x16128c(0x32e)](_0x5a7d16){const _0x265fa4=_0x16128c;let _0x27d02a=this[_0x265fa4(0x406)]()+'/'+_0x5a7d16[_0x265fa4(0x342)]+_0x265fa4(0x1cc),_0x31d35d=await this[_0x265fa4(0x336)][_0x265fa4(0x20d)](_0x27d02a,{'body':_0x5a7d16});return{'roles':_0x31d35d[_0x265fa4(0x20b)][_0x265fa4(0x364)],'actions':_0x31d35d[_0x265fa4(0x20b)][_0x265fa4(0x226)]};}async['deleteCollaborator'](_0x5c442f){const _0x44d508=_0x16128c;let _0x25ac1d=this[_0x44d508(0x406)]()+_0x44d508(0x4a0);await this['_HTTPService'][_0x44d508(0x328)](_0x25ac1d,{'params':{'collaboratorID':_0x5c442f[_0x44d508(0x276)],'objectID':_0x5c442f[_0x44d508(0x231)],'unitID':_0x5c442f['unitID']}});}async['updateCollaborator'](_0x58201e){const _0x574a6f=_0x16128c;let _0x5d98c6=this[_0x574a6f(0x406)]()+_0x574a6f(0x4a0);await this[_0x574a6f(0x336)][_0x574a6f(0x20a)](_0x5d98c6,{'body':_0x58201e});}async[_0x16128c(0x46b)](_0x13d36c){const _0x46d164=_0x16128c;let _0x3b2d04=this[_0x46d164(0x406)]()+_0x46d164(0x4a0);await this[_0x46d164(0x336)][_0x46d164(0x20d)](_0x3b2d04,{'body':_0x13d36c});}async[_0x16128c(0x353)](_0x34340f){const _0x31623f=_0x16128c;let _0x23371e=this[_0x31623f(0x406)]()+'/collaborator',_0xe0e585=await this[_0x31623f(0x336)]['get'](_0x23371e,{'params':{'objectID':_0x34340f[_0x31623f(0x231)],'unitID':_0x34340f[_0x31623f(0x3b9)]}});return this['setCfgEnableObjInherit'](_0xe0e585[_0x31623f(0x20b)]['cfgEnableObjInherit']??!0x1),_0xe0e585[_0x31623f(0x20b)][_0x31623f(0x2f5)];}async['putCollaborators'](_0x30c91e){const _0x392c94=_0x16128c;let _0x344e39=this[_0x392c94(0x406)]()+'/collaborator';await this[_0x392c94(0x336)][_0x392c94(0x1d9)](_0x344e39,{'body':_0x30c91e});}['setCfgEnableObjInherit'](_0x5781ba){const _0x320204=_0x16128c;this[_0x320204(0x490)]=_0x5781ba;}[_0x16128c(0x39b)](){return this['_cfgEnableObjInherit'];}};G=y([v(0x0,(0x0,t['Inject'])(l[_0x16128c(0x27f)])),v(0x1,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x35d)]))],G);function it(_0x4de50f){const _0x2a586f=_0x16128c;let _0x3bc88f=atob(_0x4de50f),_0xe188bf=new Uint8Array(_0x3bc88f[_0x2a586f(0x471)]);for(let _0x5f1149=0x0;_0x5f1149<_0x3bc88f[_0x2a586f(0x471)];_0x5f1149++)_0xe188bf[_0x5f1149]=_0x3bc88f[_0x2a586f(0x1cd)](_0x5f1149);return _0xe188bf;}function at(_0x412bea){const _0x1c91c7=_0x16128c;let _0x13c773='';for(let _0x361d7f=0x0;_0x361d7f<_0x412bea['length'];_0x361d7f++)_0x13c773+=String[_0x1c91c7(0x410)](_0x412bea[_0x361d7f]);return btoa(_0x13c773);}function ot(_0x56a088,_0x3b8f99){const _0x2ce171=_0x16128c;let _0x2f2101=it(_0x3b8f99),_0x4c2662=(0x0,f[_0x2ce171(0x2d0)])(0x10),_0x2afded=(0x0,d[_0x2ce171(0x48b)])(_0x2f2101,_0x4c2662)[_0x2ce171(0x30b)]((0x0,f[_0x2ce171(0x255)])(_0x56a088));return at((0x0,f[_0x2ce171(0x2f1)])(_0x4c2662,_0x2afded));}function st(){const _0x4183dd=_0x16128c;let _0xfffa04=(0x0,u['getGlobalObject'])()[_0x4183dd(0x49c)];if(typeof window<'u'&&window[_0x4183dd(0x3a0)]!==void 0x0&&_0xfffa04){let _0x1255ca={'time':Math[_0x4183dd(0x378)](Date['now']()/0x3e8),'domain':location[_0x4183dd(0x1d3)]};return ot(JSON[_0x4183dd(0x24f)](_0x1255ca),_0xfffa04);}}let K=class{constructor(_0x342a20){const _0x5adbab=_0x16128c;this[_0x5adbab(0x3a4)]=_0x342a20,this[_0x5adbab(0x454)]();}[_0x16128c(0x454)](){const _0x5ba862=_0x16128c;this[_0x5ba862(0x3a4)][_0x5ba862(0x31a)]({'interceptor':(_0x17b111,_0x2af35d)=>{const _0x503b73=_0x5ba862;let _0x5163cb=st();return _0x5163cb&&_0x17b111['headers'][_0x503b73(0x2b4)](_0x503b73(0x277),_0x5163cb),_0x2af35d(_0x17b111);}});}};K=y([v(0x0,(0x0,t['Inject'])(l[_0x16128c(0x27f)]))],K);let q=class extends t[_0x16128c(0x313)]{constructor(_0x369dbf,_0x1e8ec9,_0x2d1250){const _0x171d33=_0x16128c;super(),this[_0x171d33(0x451)]=_0x369dbf,this[_0x171d33(0x274)]=_0x1e8ec9,this[_0x171d33(0x46e)]=_0x2d1250,g(this,_0x171d33(0x3b2),new i['BehaviorSubject'](null)),g(this,_0x171d33(0x344),new i[(_0x171d33(0x21b))]()),g(this,_0x171d33(0x35c),this['_unitInfo$'][_0x171d33(0x45a)]()),g(this,_0x171d33(0x442),this['_unitLoaded$']['asObservable']());}[_0x16128c(0x22b)](){const _0x321b15=_0x16128c;super['dispose'](),this[_0x321b15(0x344)][_0x321b15(0x26e)](),this[_0x321b15(0x3b2)]['complete']();}async[_0x16128c(0x3fc)](_0x224963,_0x58b182,_0x19c424,_0x385084){const _0x289dbb=_0x16128c;this[_0x289dbb(0x3b2)]['next']({'unitId':_0x224963,'type':_0x58b182,'subUnitId':_0x385084});let _0x57b466=null;switch(_0x58b182){case t[_0x289dbb(0x3c4)][_0x289dbb(0x4d8)]:_0x57b466=await this[_0x289dbb(0x274)][_0x289dbb(0x2dc)](_0x224963,_0x19c424,void 0x0,{'initialSubUnitId':_0x385084});break;case t[_0x289dbb(0x3c4)]['UNIVER_DOC']:_0x57b466=await this[_0x289dbb(0x274)][_0x289dbb(0x279)](_0x224963,_0x19c424);break;case t[_0x289dbb(0x3c4)][_0x289dbb(0x4fd)]:_0x57b466=await this[_0x289dbb(0x274)][_0x289dbb(0x467)](_0x224963,_0x19c424);break;case t[_0x289dbb(0x3c4)][_0x289dbb(0x441)]:_0x57b466=await this[_0x289dbb(0x274)][_0x289dbb(0x449)](_0x224963,_0x19c424);break;case t['UniverInstanceType'][_0x289dbb(0x4f7)]:_0x57b466=await this[_0x289dbb(0x274)][_0x289dbb(0x40a)](_0x224963,_0x19c424);break;case t[_0x289dbb(0x3c4)][_0x289dbb(0x2e1)]:_0x57b466=await this[_0x289dbb(0x274)][_0x289dbb(0x387)](_0x224963,_0x19c424);break;default:this[_0x289dbb(0x451)]['error'](_0x289dbb(0x456),_0x289dbb(0x4a1));}return _0x57b466&&this[_0x289dbb(0x344)][_0x289dbb(0x272)](_0x57b466),_0x57b466;}async[_0x16128c(0x487)](_0x3d17fc,_0x3e26e2,_0x618a87){const _0x83fdcc=_0x16128c;var _0x5c326c;this[_0x83fdcc(0x3b2)][_0x83fdcc(0x272)]({'unitId':_0x3d17fc,'type':_0x3e26e2,'subUnitId':_0x618a87});let _0x3826f7=0x0,_0x1a38fe=await((_0x5c326c=this[_0x83fdcc(0x46e)])==null?void 0x0:_0x5c326c[_0x83fdcc(0x29a)](_0x3d17fc));return _0x1a38fe&&(_0x1a38fe[_0x83fdcc(0x1d7)]||_0x1a38fe[_0x83fdcc(0x208)]['length']!==0x0)&&(_0x3826f7=_0x1a38fe[_0x83fdcc(0x4c8)]),_0x3826f7===0x0&&this[_0x83fdcc(0x451)][_0x83fdcc(0x235)](_0x83fdcc(0x456),_0x83fdcc(0x390)),this['loadUnitOfRevision'](_0x3d17fc,_0x3e26e2,_0x3826f7,_0x618a87);}};q=y([v(0x0,t[_0x16128c(0x22c)]),v(0x1,(0x0,t['Inject'])(e[_0x16128c(0x4d4)])),v(0x2,(0x0,t[_0x16128c(0x2e7)])(x))],q);let J=class{constructor(_0x1fada1,_0x98a4fc,_0x482077){const _0x100ff3=_0x16128c;this[_0x100ff3(0x3a4)]=_0x1fada1,this[_0x100ff3(0x20e)]=_0x98a4fc,this['_univerInstanceService']=_0x482077,g(this,'_waitCount',0x0),g(this,'_change$',new i[(_0x100ff3(0x21b))]()),g(this,_0x100ff3(0x496),this[_0x100ff3(0x237)]),g(this,_0x100ff3(0x3e8),new Map());}[_0x16128c(0x4d3)](_0x2a2f45){const _0x49f826=_0x16128c;this[_0x49f826(0x273)]=_0x2a2f45,this[_0x49f826(0x237)][_0x49f826(0x272)](_0x2a2f45);}[_0x16128c(0x4f3)](_0x58b6cd,_0x5b1ea1){const _0x350a6a=_0x16128c;if(_0x5b1ea1===t[_0x350a6a(0x224)]['BASE64']){let _0x3205f5=new Image();return _0x3205f5[_0x350a6a(0x47d)]=_0x58b6cd,_0x3205f5;}return this[_0x350a6a(0x3e8)][_0x350a6a(0x1f1)](_0x58b6cd);}[_0x16128c(0x36a)](_0x4dd905,_0x36d972,_0x4d3aee){const _0x3a0a9e=_0x16128c;_0x36d972!==t[_0x3a0a9e(0x224)][_0x3a0a9e(0x480)]&&_0x4d3aee!=null&&this[_0x3a0a9e(0x3e8)][_0x3a0a9e(0x2b4)](_0x4dd905,_0x4d3aee);}async[_0x16128c(0x2ab)](_0x522d91){const _0x5716a5=_0x16128c;try{let _0x14e6b5=this[_0x5716a5(0x38e)](this[_0x5716a5(0x327)](),''+_0x522d91),_0x47540f=(await this[_0x5716a5(0x3a4)][_0x5716a5(0x1f1)](_0x14e6b5))[_0x5716a5(0x20b)];if(_0x47540f['error']&&_0x47540f[_0x5716a5(0x1d8)][_0x5716a5(0x2e0)]===a[_0x5716a5(0x35b)]['OK']){let _0x1b30d2=(0x0,t['resolveWithBasePath'])(_0x47540f[_0x5716a5(0x302)],this[_0x5716a5(0x3bf)]());return Promise[_0x5716a5(0x4df)](_0x1b30d2);}return Promise[_0x5716a5(0x2cb)](_0x47540f[_0x5716a5(0x1d8)]);}catch(_0x4cd56a){return Promise[_0x5716a5(0x2cb)](_0x4cd56a);}}async[_0x16128c(0x303)](_0x285c7b){const _0x1843ba=_0x16128c;let _0x23a3ed='';if(!p[_0x1843ba(0x242)][_0x1843ba(0x4af)](_0x285c7b[_0x1843ba(0x3eb)]))return this[_0x1843ba(0x3e9)](),Promise[_0x1843ba(0x2cb)](Error(t[_0x1843ba(0x2c7)]['ERROR_IMAGE_TYPE']));if(_0x285c7b[_0x1843ba(0x2cd)]>(0x0,p[_0x1843ba(0x42d)])())return this[_0x1843ba(0x3e9)](),Promise[_0x1843ba(0x2cb)](Error(t['ImageUploadStatusType'][_0x1843ba(0x26f)]));try{let _0x5eb3a3=new FormData();_0x5eb3a3[_0x1843ba(0x44a)]('file',_0x285c7b);let _0x415676=this[_0x1843ba(0x32c)]['getFocusedUnit'](),_0x52bb25=_0x415676==null?void 0x0:_0x415676['getUnitId']();if(!_0x52bb25)throw Error('unitId\x20is\x20not\x20found');let _0x3d8479=this['_getUploadFileURL']()+_0x1843ba(0x444)+_0x285c7b[_0x1843ba(0x2cd)][_0x1843ba(0x4e9)]()+'&source='+a[_0x1843ba(0x44c)][_0x1843ba(0x299)]+'&assign='+encodeURIComponent(_0x52bb25),_0x445110={'body':_0x5eb3a3},_0x4fcffd=(await this[_0x1843ba(0x3a4)]['post'](_0x3d8479,_0x445110))[_0x1843ba(0x20b)];if(typeof _0x4fcffd['FileId']!='string')return this[_0x1843ba(0x3e9)](),Promise[_0x1843ba(0x2cb)](Error(t['ImageUploadStatusType'][_0x1843ba(0x433)]));_0x23a3ed=_0x4fcffd[_0x1843ba(0x2ee)];}catch{return this[_0x1843ba(0x3e9)](),Promise[_0x1843ba(0x2cb)](Error(t[_0x1843ba(0x2c7)][_0x1843ba(0x433)]));}return new Promise((_0x5b8a5c,_0xf3b46d)=>{const _0x44cb92=_0x1843ba;let _0x12a145=new FileReader();_0x12a145[_0x44cb92(0x415)](_0x285c7b),_0x12a145[_0x44cb92(0x286)]=_0x945a47=>{const _0x296925=_0x44cb92;var _0x163343;let _0x5a14ac=(_0x163343=_0x945a47[_0x296925(0x218)])==null?void 0x0:_0x163343[_0x296925(0x2f4)];if(_0x5a14ac==null){this[_0x296925(0x3e9)](),_0xf3b46d(Error(t[_0x296925(0x2c7)]['ERROR_IMAGE']));return;}_0x5b8a5c({'imageId':(0x0,t[_0x296925(0x2e6)])(0x6),'imageSourceType':t[_0x296925(0x224)][_0x296925(0x3c8)],'source':_0x23a3ed,'base64Cache':_0x5a14ac,'status':t[_0x296925(0x2c7)][_0x296925(0x4b7)]}),this['_decreaseWaiting']();};});}[_0x16128c(0x234)](){const _0x453ea0=_0x16128c;let _0x51a56e=this['_configService']['getConfig'](m);return(_0x51a56e==null?void 0x0:_0x51a56e[_0x453ea0(0x48e)])??_0x453ea0(0x2b3);}[_0x16128c(0x327)](){const _0x516bd0=_0x16128c;let _0x4a3baa=this[_0x516bd0(0x20e)][_0x516bd0(0x1dd)](m);return(_0x4a3baa==null?void 0x0:_0x4a3baa[_0x516bd0(0x1e8)])??'/universer-api/file/{fileID}/sign-url';}[_0x16128c(0x3bf)](){const _0x367cec=_0x16128c;let _0x669563=this[_0x367cec(0x20e)][_0x367cec(0x1dd)](m);return(_0x669563==null?void 0x0:_0x669563[_0x367cec(0x37e)])??location[_0x367cec(0x1fd)];}[_0x16128c(0x38e)](_0x466358,_0x28b979){const _0x650ab7=_0x16128c;return _0x466358[_0x650ab7(0x37a)](_0x650ab7(0x4b4),_0x28b979);}['_decreaseWaiting'](){const _0x1d9a4c=_0x16128c;--this['_waitCount'],this[_0x1d9a4c(0x237)]['next'](this['_waitCount']);}};J=y([v(0x0,(0x0,t[_0x16128c(0x4c0)])(l[_0x16128c(0x27f)])),v(0x1,t[_0x16128c(0x35d)]),v(0x2,(0x0,t['Inject'])(t[_0x16128c(0x399)]))],J);let Y=class{constructor(_0x4261cd,_0x263752){const _0x36b126=_0x16128c;this[_0x36b126(0x20e)]=_0x4261cd,this[_0x36b126(0x336)]=_0x263752;}[_0x16128c(0x406)](){const _0x541a12=_0x16128c;let _0x3f0f9b=this[_0x541a12(0x20e)]['getConfig'](m);return(_0x3f0f9b==null?void 0x0:_0x3f0f9b[_0x541a12(0x26a)])??_0x541a12(0x4f5);}async['list'](_0x41fc7d){const _0x45b2be=_0x16128c;let _0xbdcd40=this[_0x45b2be(0x406)]()+_0x45b2be(0x4a0);return{'list':[{'title':'People','mentions':(await this['_HTTPService']['get'](_0xbdcd40,{'params':{'objectID':_0x41fc7d['unitId'],'unitID':_0x41fc7d[_0x45b2be(0x367)]}}))[_0x45b2be(0x20b)][_0x45b2be(0x2f5)][_0x45b2be(0x2b2)](_0x298cc2=>({'objectId':_0x298cc2['id'],'name':_0x298cc2[_0x45b2be(0x4b0)][_0x45b2be(0x409)],'metadata':{'icon':_0x298cc2[_0x45b2be(0x4b0)][_0x45b2be(0x499)]},'label':_0x298cc2[_0x45b2be(0x4b0)]['name'],'objectType':t[_0x45b2be(0x254)][_0x45b2be(0x2ff)]})),'metadata':{},'type':t[_0x45b2be(0x254)][_0x45b2be(0x2ff)]}]};}};Y=y([v(0x0,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x35d)])),v(0x1,(0x0,t[_0x16128c(0x4c0)])(l['HTTPService']))],Y);let X=class extends t[_0x16128c(0x313)]{constructor(_0x450a10,_0x39230a,_0x599ad3,_0xb927cb,_0x40ab19,_0x2557ab){const _0x66772d=_0x16128c;super(),this[_0x66772d(0x200)]=_0x450a10,this['_univerInstanceService']=_0x39230a,this['_permissionService']=_0x599ad3,this[_0x66772d(0x304)]=_0xb927cb,this[_0x66772d(0x4c3)]=_0x40ab19,this[_0x66772d(0x3ce)]=_0x2557ab,g(this,_0x66772d(0x285),new Set()),this[_0x66772d(0x31d)](()=>this[_0x66772d(0x285)]['clear']()),this[_0x66772d(0x31d)](ct(this[_0x66772d(0x32c)])[_0x66772d(0x3f8)](({unitId:_0x23983e})=>this['_closedUnits']['delete'](_0x23983e))),this[_0x66772d(0x3a2)](),this[_0x66772d(0x47c)](),[t[_0x66772d(0x3c4)][_0x66772d(0x494)],t[_0x66772d(0x3c4)][_0x66772d(0x4fd)],t[_0x66772d(0x3c4)][_0x66772d(0x4f7)],t[_0x66772d(0x3c4)]['UNIVER_BOARD']]['forEach'](_0x2f4465=>{const _0x57f1e7=_0x66772d;this[_0x57f1e7(0x31d)](this[_0x57f1e7(0x32c)][_0x57f1e7(0x439)](_0x2f4465)[_0x57f1e7(0x3f8)](_0x5e21e6=>{const _0x537cd4=_0x57f1e7;this[_0x537cd4(0x285)]['add'](_0x5e21e6[_0x537cd4(0x2f0)]()),this[_0x537cd4(0x200)]['get'](t[_0x537cd4(0x1f7)])[_0x537cd4(0x368)](_0x5e21e6[_0x537cd4(0x2f0)]());}));});}[_0x16128c(0x47c)](){const _0x3d04e1=_0x16128c;let _0x39d3cb=async(_0x2ed833,_0x237844)=>{const _0x43285f=_0x4c27;let _0x28804a=await this['_collaborationSessionService']['requireSession'](_0x2ed833);this[_0x43285f(0x317)]||this[_0x43285f(0x285)]['has'](_0x2ed833)||!this[_0x43285f(0x32c)]['getUnit'](_0x2ed833)||_0x28804a['event$']['pipe']((0x0,s[_0x43285f(0x2df)])(_0x4147f2=>_0x4147f2[_0x43285f(0x25c)]===e['CollaborationEvent'][_0x43285f(0x48f)]),(0x0,s[_0x43285f(0x2ed)])((0x0,i['merge'])(this[_0x43285f(0x343)],this[_0x43285f(0x32c)][_0x43285f(0x423)][_0x43285f(0x476)]((0x0,s[_0x43285f(0x2df)])(_0x1f9a9c=>_0x1f9a9c[_0x43285f(0x2f0)]()===_0x2ed833)))))['subscribe'](_0x49a854=>{const _0x228e0f=_0x43285f;let {reason:_0x53362f}=_0x49a854[_0x228e0f(0x223)];this[_0x228e0f(0x3ce)]['emitEvent']({'id':_0x228e0f(0x47b),'data':_0x53362f}),this[_0x228e0f(0x285)][_0x228e0f(0x3ea)](_0x2ed833),this['_injector'][_0x228e0f(0x1f1)](t['ObjectPermissionService'])[_0x228e0f(0x368)](_0x2ed833);let _0x230eaf=lt(_0x237844);_0x230eaf!=null&&this[_0x228e0f(0x394)](_0x2ed833,_0x230eaf,a[_0x228e0f(0x497)][_0x228e0f(0x26d)],!0x1),this['_collaborationSessionService'][_0x228e0f(0x429)](_0x2ed833);});};ct(this[_0x3d04e1(0x32c)])[_0x3d04e1(0x476)]((0x0,s[_0x3d04e1(0x2df)])(({unitId:_0x5949f3})=>!(0x0,t[_0x3d04e1(0x3e5)])(_0x5949f3)),(0x0,s[_0x3d04e1(0x2ed)])(this['dispose$']))['subscribe'](({type:_0x30764d,unitId:_0x492040})=>{const _0x5a11e2=_0x3d04e1;_0x39d3cb(_0x492040,_0x30764d)[_0x5a11e2(0x4b1)](_0x498dfa=>this['_injector'][_0x5a11e2(0x1f1)](t[_0x5a11e2(0x22c)])[_0x5a11e2(0x1d8)](_0x498dfa));});}['_initUnitPermissionChange'](){const _0x976972=_0x16128c;let _0x39653b=async(_0x3596ee,_0x24a22b)=>{const _0x6a3411=_0x4c27;let _0x5a42cc=await this[_0x6a3411(0x4c3)][_0x6a3411(0x39c)](_0x3596ee);if(!(this['_disposed']||this['_closedUnits'][_0x6a3411(0x339)](_0x3596ee)||!this[_0x6a3411(0x32c)][_0x6a3411(0x495)](_0x3596ee))){if(_0x24a22b===t[_0x6a3411(0x3c4)]['UNIVER_SHEET']){let _0x6bf761=this['_injector'][_0x6a3411(0x1f1)](r[_0x6a3411(0x403)]);await _0x6bf761[_0x6a3411(0x228)](_0x3596ee),_0x5a42cc[_0x6a3411(0x47e)][_0x6a3411(0x476)]((0x0,s[_0x6a3411(0x2df)])(_0x3f7454=>_0x3f7454['eventID']===e[_0x6a3411(0x1f4)][_0x6a3411(0x2a2)]),(0x0,s[_0x6a3411(0x2ed)])((0x0,i[_0x6a3411(0x23f)])(this['dispose$'],_0x5a42cc[_0x6a3411(0x47e)][_0x6a3411(0x476)]((0x0,s['filter'])(_0x1855a2=>_0x1855a2[_0x6a3411(0x25c)]===e['CollaborationEvent'][_0x6a3411(0x48f)])),this['_univerInstanceService'][_0x6a3411(0x423)]['pipe']((0x0,s[_0x6a3411(0x2df)])(_0x4d36ab=>_0x4d36ab[_0x6a3411(0x2f0)]()===_0x3596ee)))))[_0x6a3411(0x3f8)](_0x49d9ac=>{const _0x301dbb=_0x6a3411;let {objectId:_0x1dc166}=_0x49d9ac[_0x301dbb(0x223)];_0x1dc166===_0x3596ee?_0x6bf761[_0x301dbb(0x228)](_0x3596ee):_0x6bf761[_0x301dbb(0x3b7)](_0x3596ee,_0x1dc166);});return;}_0x5a42cc[_0x6a3411(0x47e)][_0x6a3411(0x476)]((0x0,s['filter'])(_0x1a990b=>_0x1a990b['eventID']===e[_0x6a3411(0x1f4)][_0x6a3411(0x2a2)]),(0x0,s[_0x6a3411(0x2ed)])((0x0,i[_0x6a3411(0x23f)])(this['dispose$'],_0x5a42cc[_0x6a3411(0x47e)]['pipe']((0x0,s[_0x6a3411(0x2df)])(_0x61c723=>_0x61c723['eventID']===e[_0x6a3411(0x1f4)][_0x6a3411(0x48f)])),this[_0x6a3411(0x32c)][_0x6a3411(0x423)]['pipe']((0x0,s[_0x6a3411(0x2df)])(_0x414c9d=>_0x414c9d[_0x6a3411(0x2f0)]()===_0x3596ee)))))[_0x6a3411(0x3f8)](()=>{const _0x15a870=_0x6a3411;this[_0x15a870(0x3b5)](_0x3596ee,_0x24a22b)[_0x15a870(0x4b1)](_0x42f917=>this[_0x15a870(0x200)][_0x15a870(0x1f1)](t[_0x15a870(0x22c)])[_0x15a870(0x1d8)](_0x42f917));}),await this['_refreshUnitPermission'](_0x3596ee,_0x24a22b);}};ct(this[_0x976972(0x32c)])[_0x976972(0x476)]((0x0,s['filter'])(({unitId:_0x203b21})=>!(0x0,t[_0x976972(0x3e5)])(_0x203b21)),(0x0,s[_0x976972(0x2ed)])(this['dispose$']))['subscribe'](({type:_0x31817c,unitId:_0x347d31})=>{const _0x497308=_0x976972;_0x39653b(_0x347d31,_0x31817c)[_0x497308(0x4b1)](_0x2694b3=>this['_injector']['get'](t['ILogService'])[_0x497308(0x1d8)](_0x2694b3));});}async[_0x16128c(0x3b5)](_0x532090,_0x5d0238){const _0x2d945d=_0x16128c;let _0x563752=lt(_0x5d0238);if(_0x563752==null)return;let _0x22d5a9=this[_0x2d945d(0x200)]['get'](t['ObjectPermissionService']);if(_0x22d5a9[_0x2d945d(0x2da)]({'unitId':_0x532090,'objectId':_0x532090,'objectType':_0x563752})){await _0x22d5a9[_0x2d945d(0x1d6)](_0x532090);return;}let _0x3fa0ad=this[_0x2d945d(0x45d)](_0x532090,_0x563752);if(!_0x3fa0ad[_0x2d945d(0x471)])return;let _0x38cbf5=await this[_0x2d945d(0x304)][_0x2d945d(0x460)]({'objectID':_0x532090,'objectType':_0x563752,'unitID':_0x532090,'actions':_0x3fa0ad[_0x2d945d(0x2b2)](({action:_0x21b95d})=>_0x21b95d)});this[_0x2d945d(0x317)]||this['_closedUnits'][_0x2d945d(0x339)](_0x532090)||!this[_0x2d945d(0x32c)][_0x2d945d(0x495)](_0x532090)||_0x38cbf5[_0x2d945d(0x43b)](_0x487a95=>{const _0x26056e=_0x2d945d;let _0x10b370=_0x487a95[_0x26056e(0x47a)],_0x2a5bc3=_0x487a95[_0x26056e(0x460)];_0x10b370!=null&&_0x2a5bc3!=null&&_0x3fa0ad[_0x26056e(0x2df)](_0x219a6d=>_0x219a6d[_0x26056e(0x47a)]===_0x10b370)['forEach'](_0x5b0e44=>this[_0x26056e(0x436)][_0x26056e(0x3fd)](_0x5b0e44['id'],_0x2a5bc3));});}[_0x16128c(0x45d)](_0x3e1bb1,_0x1cd2b7){const _0x40181e=_0x16128c;let _0x36d556=[];return this[_0x40181e(0x436)]['getAllPermissionPoint']()[_0x40181e(0x43b)]((_0x2c8d26,_0x48e611)=>{const _0x244b69=_0x40181e;_0x2c8d26[_0x244b69(0x3f8)](_0x29f2f2=>{const _0x3004ec=_0x244b69;_0x29f2f2[_0x3004ec(0x3eb)]===_0x1cd2b7&&_0x3004ec(0x367)in _0x29f2f2&&_0x29f2f2[_0x3004ec(0x367)]===_0x3e1bb1&&(!(_0x3004ec(0x365)in _0x29f2f2)||_0x29f2f2['objectId']===_0x3e1bb1)&&_0x36d556[_0x3004ec(0x4da)]({'id':_0x48e611,'action':_0x29f2f2[_0x3004ec(0x4cc)]});})['unsubscribe']();}),_0x36d556;}[_0x16128c(0x394)](_0x109d38,_0x4fd59d,_0x139739,_0x4a50b5){const _0x4ed8e9=_0x16128c;this['_permissionService'][_0x4ed8e9(0x455)]()[_0x4ed8e9(0x43b)]((_0x2b945e,_0x151422)=>{const _0x5eaec2=_0x4ed8e9;let _0x1350d0=!0x1;_0x2b945e[_0x5eaec2(0x3f8)](_0x320b4c=>{const _0x656269=_0x5eaec2;_0x1350d0=_0x320b4c[_0x656269(0x3eb)]===_0x4fd59d&&_0x320b4c[_0x656269(0x4cc)]===_0x139739&&_0x656269(0x367)in _0x320b4c&&_0x320b4c[_0x656269(0x367)]===_0x109d38&&(!('objectId'in _0x320b4c)||_0x320b4c[_0x656269(0x365)]===_0x109d38);})[_0x5eaec2(0x3e2)](),_0x1350d0&&this[_0x5eaec2(0x436)][_0x5eaec2(0x3fd)](_0x151422,_0x4a50b5);});}};X=y([v(0x0,(0x0,t[_0x16128c(0x4c0)])(t[_0x16128c(0x33b)])),v(0x1,t[_0x16128c(0x399)]),v(0x2,t['IPermissionService']),v(0x3,t['IAuthzIoService']),v(0x4,(0x0,t[_0x16128c(0x4c0)])(V)),v(0x5,(0x0,t[_0x16128c(0x4c0)])(_))],X);function ct(_0x7baf3f){const _0x22fd00=_0x16128c;return(0x0,i['merge'])(...[t['UniverInstanceType'][_0x22fd00(0x4d8)],t[_0x22fd00(0x3c4)]['UNIVER_DOC'],t[_0x22fd00(0x3c4)][_0x22fd00(0x4fd)],t[_0x22fd00(0x3c4)][_0x22fd00(0x441)],t['UniverInstanceType'][_0x22fd00(0x4f7)]][_0x22fd00(0x2b2)](_0x5c056b=>_0x7baf3f[_0x22fd00(0x201)](_0x5c056b)[_0x22fd00(0x476)]((0x0,s['map'])(_0x218325=>({'type':_0x5c056b,'unitId':_0x218325[_0x22fd00(0x49b)][_0x22fd00(0x2f0)]()})))));}function lt(_0x2cbcce){const _0x272c4e=_0x16128c;switch(_0x2cbcce){case t[_0x272c4e(0x3c4)][_0x272c4e(0x4d8)]:return a[_0x272c4e(0x2eb)][_0x272c4e(0x36c)];case t[_0x272c4e(0x3c4)][_0x272c4e(0x494)]:return a[_0x272c4e(0x2eb)][_0x272c4e(0x296)];case t[_0x272c4e(0x3c4)]['UNIVER_SLIDE']:return a[_0x272c4e(0x2eb)]['Slide'];case t[_0x272c4e(0x3c4)][_0x272c4e(0x441)]:return a[_0x272c4e(0x2eb)][_0x272c4e(0x4d2)];case t['UniverInstanceType']['UNIVER_BASE']:return a[_0x272c4e(0x2eb)][_0x272c4e(0x29d)];default:return;}}let Z=class{constructor(_0x30a5f8,_0x49572c){const _0x5d3f77=_0x16128c;this[_0x5d3f77(0x20e)]=_0x30a5f8,this[_0x5d3f77(0x3a4)]=_0x49572c;}async['getUnitOnRev'](_0x235189,_0x2b3929){const _0x39a533=_0x16128c;var _0x3e8c42;let {unitID:_0x5c85a7,type:_0x40da41,revision:_0x40fd7f=0x0}=_0x2b3929,_0x1728d0=this[_0x39a533(0x46f)]()+'/'+_0x40da41+_0x39a533(0x443)+_0x5c85a7+_0x39a533(0x34c)+_0x40fd7f,_0x13d590=(await this[_0x39a533(0x3a4)]['get'](_0x1728d0))['body'],_0x1eb3c8=(_0x3e8c42=_0x13d590['snapshot'])==null?void 0x0:_0x3e8c42['workbook'];if(_0x1eb3c8){let _0x167d25=_0x1eb3c8==null?void 0x0:_0x1eb3c8['originalMeta'];_0x1eb3c8[_0x39a533(0x50c)]=e['textEncoder'][_0x39a533(0x50b)]((0x0,e[_0x39a533(0x2c9)])(_0x167d25)),Object[_0x39a533(0x445)](_0x1eb3c8[_0x39a533(0x374)])['forEach'](([,_0x35f3e2])=>{const _0x3905f7=_0x39a533;let _0xeffe2d=_0x35f3e2[_0x3905f7(0x50c)];_0x35f3e2[_0x3905f7(0x50c)]=e[_0x3905f7(0x4d9)][_0x3905f7(0x50b)]((0x0,e[_0x3905f7(0x2c9)])(_0xeffe2d));});}return _0x13d590;}async[_0x16128c(0x1d5)](_0x26335e,_0x5a1f99){const _0x55904a=_0x16128c;let {unitID:_0x5cd36e,type:_0x3a2065,blockID:_0x65aa79}=_0x5a1f99,_0x5d18d6=this[_0x55904a(0x469)]()+'/'+_0x3a2065+_0x55904a(0x443)+_0x5cd36e+_0x55904a(0x241)+_0x65aa79;return(await this[_0x55904a(0x3a4)][_0x55904a(0x1f1)](_0x5d18d6))[_0x55904a(0x20b)];}async[_0x16128c(0x42c)](_0x3558aa,_0x4fc5b7){const _0x24116c=_0x16128c;let {unitID:_0x21d489,type:_0x847a1c,blockID:_0x13c62f}=_0x4fc5b7,_0xcff840=this[_0x24116c(0x469)]()+_0x24116c(0x241)+_0x847a1c+_0x24116c(0x443)+_0x21d489+_0x24116c(0x241)+_0x13c62f;return(await this['_httpService'][_0x24116c(0x1f1)](_0xcff840))[_0x24116c(0x20b)];}async[_0x16128c(0x492)](_0x3c32b6,_0x30d86e){const _0x423bf2=_0x16128c;let {unitID:_0x472f88,type:_0x374c0c,from:_0x343154,to:_0x33105d}=_0x30d86e,_0x3e8685=this[_0x423bf2(0x469)]()+'/'+_0x374c0c+_0x423bf2(0x443)+_0x472f88+_0x423bf2(0x4e5)+_0x343154+_0x423bf2(0x402)+_0x33105d;return(await this[_0x423bf2(0x3a4)]['get'](_0x3e8685))[_0x423bf2(0x20b)];}[_0x16128c(0x46f)](){const _0x5a62a9=_0x16128c;return this[_0x5a62a9(0x20e)][_0x5a62a9(0x1dd)]('SNAPSHOT_URL_KEY')??this['_getAPIPrefix']();}[_0x16128c(0x469)](){const _0x368332=_0x16128c;let _0x3f29fe=this['_configService']['getConfig'](m);return(_0x3f29fe==null?void 0x0:_0x3f29fe['snapshotServerUrl'])??_0x368332(0x268);}async[_0x16128c(0x2d4)](_0x273236,_0xf86f8f){const _0x642018=_0x16128c;let _0x23134e=_0x642018(0x3d1)+_0xf86f8f[_0x642018(0x3eb)]+_0x642018(0x443)+_0xf86f8f['unitID']+_0x642018(0x1e3);return(await this[_0x642018(0x3a4)][_0x642018(0x1f1)](_0x23134e,{'params':{'resourceId':JSON[_0x642018(0x24f)](_0xf86f8f['resourceIDs'])}}))[_0x642018(0x20b)];}[_0x16128c(0x4a7)](){const _0x4937f3=_0x16128c;throw Error(_0x4937f3(0x22e));}['updateSnapshot'](){const _0x126779=_0x16128c;throw Error(_0x126779(0x22e));}['saveSheetBlock'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x16128c(0x2bb)](){const _0x57ca49=_0x16128c;throw Error(_0x57ca49(0x22e));}[_0x16128c(0x41f)](){const _0x597789=_0x16128c;throw Error(_0x597789(0x22e));}[_0x16128c(0x420)](){const _0x532cb9=_0x16128c;throw Error(_0x532cb9(0x22e));}};Z=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x16128c(0x4c0)])(l[_0x16128c(0x27f)]))],Z);let Q=class extends t[_0x16128c(0x294)]{constructor(_0x36b42d,_0x192234,_0x2fd068,_0x358a50,_0x3cf4e,_0x561144){const _0x251373=_0x16128c;super(_0x36b42d,_0x192234,_0x2fd068,_0x358a50),this['_transformService']=_0x3cf4e,this[_0x251373(0x451)]=_0x561144;}[_0x16128c(0x2ca)](_0x241ccf,_0x1864b8){const _0x29d5e0=_0x16128c;let _0x4a8cd0=this[_0x29d5e0(0x1e6)](_0x241ccf);if(_0x4a8cd0)try{let _0x16f46c=this['_transformStack'](_0x4a8cd0,_0x1864b8);this[_0x29d5e0(0x3f3)](_0x241ccf,_0x16f46c);}catch(_0x54f7ab){this['_logService']['error'](_0x29d5e0(0x278),_0x54f7ab),this[_0x29d5e0(0x4ef)](_0x241ccf);}let _0x5bc2f7=this[_0x29d5e0(0x4f4)](_0x241ccf);if(_0x5bc2f7)try{let _0x3500db=this['_transformStack'](_0x5bc2f7,_0x1864b8);this[_0x29d5e0(0x27d)](_0x241ccf,_0x3500db);}catch(_0x2b1945){this[_0x29d5e0(0x451)][_0x29d5e0(0x1d8)](_0x2b1945),this[_0x29d5e0(0x2a4)](_0x241ccf);}}[_0x16128c(0x4ef)](_0x2ec4dd){const _0x13f6f2=_0x16128c;let _0x45b5bb=this[_0x13f6f2(0x1e6)](_0x2ec4dd);_0x45b5bb&&(_0x45b5bb[_0x13f6f2(0x471)]=0x0,this[_0x13f6f2(0x461)]());}[_0x16128c(0x2a4)](_0x56558f){const _0x156842=_0x16128c;let _0x3b1e7b=this['_getRedoStack'](_0x56558f);_0x3b1e7b&&(_0x3b1e7b['length']=0x0,this[_0x156842(0x461)]());}[_0x16128c(0x3f3)](_0x44cd32,_0xbfe898){const _0x381338=_0x16128c;this[_0x381338(0x3ec)]['set'](_0x44cd32,_0xbfe898),this[_0x381338(0x461)]();}[_0x16128c(0x27d)](_0x2d34b2,_0x40b91e){const _0x471483=_0x16128c;this['_redoStacks'][_0x471483(0x2b4)](_0x2d34b2,_0x40b91e),this[_0x471483(0x461)]();}[_0x16128c(0x3fa)](_0x39fe69,_0x144c5c){const _0x30861f=_0x16128c;let _0x5d6453=[],_0x406af2=_0x144c5c,_0x4cbec7=_0x144c5c;for(let _0x68e62e=_0x39fe69[_0x30861f(0x471)]-0x1;_0x68e62e>=0x0;_0x68e62e--){let {unitID:_0x2ea28f,undoMutations:_0x519727,redoMutations:_0x2c6bbb}=_0x39fe69[_0x68e62e],_0x166940=this[_0x30861f(0x238)][_0x30861f(0x375)](_0x406af2,_0x519727),_0x39abf0=this[_0x30861f(0x238)]['transformMutationsWithChangeset'](_0x4cbec7,_0x2c6bbb);if((0x0,e[_0x30861f(0x408)])(_0x166940)||(0x0,e[_0x30861f(0x408)])(_0x39abf0)){this[_0x30861f(0x451)][_0x30861f(0x1d8)](_0x30861f(0x278),'transformStack\x20failed!',_0x166940,_0x39abf0);break;}_0x406af2=_0x166940[_0x30861f(0x2f7)],_0x4cbec7=_0x39abf0[_0x30861f(0x2f7)],_0x5d6453['push']({'unitID':_0x2ea28f,'undoMutations':_0x166940[_0x30861f(0x275)],'redoMutations':_0x39abf0[_0x30861f(0x275)]});}return _0x5d6453[_0x30861f(0x377)]();}};Q=y([v(0x0,t[_0x16128c(0x399)]),v(0x1,t['ICommandService']),v(0x2,t[_0x16128c(0x2b8)]),v(0x3,t[_0x16128c(0x35d)]),v(0x4,e[_0x16128c(0x28a)]),v(0x5,t[_0x16128c(0x22c)])],Q);let $=class extends t[_0x16128c(0x3f4)]{constructor(_0x68ec06=ee,_0x3096b6,_0x1ba253,_0x3ba213){const _0x1fe067=_0x16128c;super(),this[_0x1fe067(0x1d4)]=_0x68ec06,this[_0x1fe067(0x451)]=_0x3096b6,this[_0x1fe067(0x200)]=_0x1ba253,this[_0x1fe067(0x20e)]=_0x3ba213;let {..._0x49fc13}=(0x0,t[_0x1fe067(0x23f)])({},ee,this[_0x1fe067(0x1d4)]);if(!_0x49fc13['socketService'])throw Error(_0x1fe067(0x4d6));this[_0x1fe067(0x1d4)]=_0x49fc13,this[_0x1fe067(0x20e)][_0x1fe067(0x507)](m,_0x49fc13);}[_0x16128c(0x2c0)](){const _0x285839=_0x16128c;this[_0x285839(0x20e)][_0x285839(0x507)](t[_0x285839(0x2d9)],this[_0x285839(0x1d4)][_0x285839(0x4dd)]??[]),this[_0x285839(0x2bc)](),this[_0x285839(0x34d)]();}[_0x16128c(0x2bc)](){const _0x434bde=_0x16128c;var _0x21812b,_0x5255a1;this[_0x434bde(0x200)][_0x434bde(0x339)](t['IUndoRedoService'])&&this['_logService'][_0x434bde(0x1d8)]('[UniverCollaborationClientPlugin]',_0x434bde(0x4a5));let _0x5347d3=(0x0,t[_0x434bde(0x4f9)])([[t['IUndoRedoService'],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this['_config'][_0x434bde(0x3b4)]}],[e[_0x434bde(0x4bc)],{'useClass':Z}],[t[_0x434bde(0x3a8)],{'useClass':G}],[t[_0x434bde(0x326)],{'useClass':J}],[nt,{'useClass':U}],[t[_0x434bde(0x27a)],{'useClass':Y}],[H],[tt]],(_0x21812b=this[_0x434bde(0x1d4)])==null?void 0x0:_0x21812b[_0x434bde(0x30e)]);if(!((_0x5255a1=this['_config'])!=null&&_0x5255a1['enableSingleActiveInstanceLock'])){let _0x141a3c=_0x5347d3[_0x434bde(0x39d)](([_0x5f589c])=>_0x5f589c===C);_0x141a3c!==-0x1&&_0x5347d3['splice'](_0x141a3c,0x1);}(0x0,t[_0x434bde(0x3e1)])(this[_0x434bde(0x200)],_0x5347d3);}[_0x16128c(0x34d)](){const _0xee2531=_0x16128c;var _0x1e2b58,_0x30aef2;if(this['_injector'][_0xee2531(0x1f1)](l[_0xee2531(0x27f)])[_0xee2531(0x31a)]({'priority':0x14,'interceptor':(0x0,l[_0xee2531(0x3c6)])({'maxParallel':0x6})}),!((_0x1e2b58=this['_config'])!=null&&_0x1e2b58[_0xee2531(0x38a)])){var _0x104133;(_0x104133=this['_injector'][_0xee2531(0x1f1)](x,t[_0xee2531(0x306)][_0xee2531(0x3ab)]))==null||_0x104133[_0xee2531(0x3d8)]();}(_0x30aef2=this['_config'])!=null&&_0x30aef2[_0xee2531(0x4aa)]&&(0x0,t[_0xee2531(0x233)])(this['_injector'],[[W]]),(0x0,t[_0xee2531(0x233)])(this[_0xee2531(0x200)],[[K],[H],[X]]);}};g($,_0x16128c(0x1ea),_0x16128c(0x2cf)),g($,_0x16128c(0x450),$e),g($,'version',et),$=y([(0x0,t[_0x16128c(0x3d3)])(u['UniverLicensePlugin'],l[_0x16128c(0x2fe)],e[_0x16128c(0x2e8)]),v(0x1,t[_0x16128c(0x22c)]),v(0x2,(0x0,t['Inject'])(t[_0x16128c(0x33b)])),v(0x3,t[_0x16128c(0x35d)])],$),Object['defineProperty'](exports,_0x16128c(0x3e3),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x16128c(0x3a6)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return k;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x36b),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x382),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x16128c(0x3cc),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x16128c(0x350)]=m,Object[_0x16128c(0x3a6)](exports,_0x16128c(0x4a6),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x23e),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x16128c(0x3a6)](exports,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x16128c(0x3a6)](exports,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return J;}}),Object['defineProperty'](exports,_0x16128c(0x3c1),{'enumerable':!0x0,'get':function(){return ve;}}),Object[_0x16128c(0x3a6)](exports,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x478),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x16128c(0x21d)]=Be,exports[_0x16128c(0x501)]=ie,exports['CollaborationUIEventService']=_,Object[_0x16128c(0x3a6)](exports,_0x16128c(0x2c6),{'enumerable':!0x0,'get':function(){return Q;}}),exports['CommentService']=ae,Object[_0x16128c(0x3a6)](exports,_0x16128c(0x48c),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x16128c(0x41c)]=_0x16128c(0x31b),exports[_0x16128c(0x329)]='/universer-api/uniscript',exports[_0x16128c(0x24c)]='/universer-api/user/session-ticket',Object[_0x16128c(0x3a6)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x435),{'enumerable':!0x0,'get':function(){return F;}}),Object['defineProperty'](exports,_0x16128c(0x458),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x16128c(0x3ca)]=_0x16128c(0x477),exports['HEARTBEAT_TIMEOUT_KEY']=_0x16128c(0x263),exports['IAttachmentIoService']=nt,exports[_0x16128c(0x211)]=Xe,exports[_0x16128c(0x422)]=qe,exports['ILocalCacheService']=x,exports['INetworkConditionService']=We,exports['ISingleActiveUnitService']=C,exports[_0x16128c(0x1f3)]=0x3e8,exports[_0x16128c(0x227)]=_0x16128c(0x1f3),Object['defineProperty'](exports,_0x16128c(0x3c3),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x314),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x42f),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x2b7),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x2e4),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x16128c(0x291)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports['RETRY_CONNECTING_MAX_COUNT_KEY']='RETRY_CONNECTING_MAX_COUNT',exports['SessionStatus']=ge,Object[_0x16128c(0x3a6)](exports,_0x16128c(0x4ba),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x16128c(0x3a6)](exports,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return S;}}),Object['defineProperty'](exports,_0x16128c(0x34e),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x41a),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x16128c(0x3a6)](exports,_0x16128c(0x2c8),{'enumerable':!0x0,'get':function(){return D;}}),exports[_0x16128c(0x3df)]=xe,Object['defineProperty'](exports,_0x16128c(0x222),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x16128c(0x2d7)]=Ze,exports['deserializeToCombResponse']=Ge,exports['getLocalCacheKey']=ye,exports[_0x16128c(0x331)]=Ke;