@univerjs-pro/collaboration-client 1.0.0-beta.0 → 1.0.0-beta.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 (87) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/facade/f-collaboration.d.ts +14 -0
  65. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +2 -2
  66. package/lib/umd/facade.js +1 -1
  67. package/lib/umd/index.js +1 -1
  68. package/lib/umd/locale/ar-SA.js +1 -1
  69. package/lib/umd/locale/ca-ES.js +1 -1
  70. package/lib/umd/locale/de-DE.js +1 -1
  71. package/lib/umd/locale/en-US.js +1 -1
  72. package/lib/umd/locale/es-ES.js +1 -1
  73. package/lib/umd/locale/fa-IR.js +1 -1
  74. package/lib/umd/locale/fr-FR.js +1 -1
  75. package/lib/umd/locale/id-ID.js +1 -1
  76. package/lib/umd/locale/it-IT.js +1 -1
  77. package/lib/umd/locale/ja-JP.js +1 -1
  78. package/lib/umd/locale/ko-KR.js +1 -1
  79. package/lib/umd/locale/pl-PL.js +1 -1
  80. package/lib/umd/locale/pt-BR.js +1 -1
  81. package/lib/umd/locale/ru-RU.js +1 -1
  82. package/lib/umd/locale/sk-SK.js +1 -1
  83. package/lib/umd/locale/vi-VN.js +1 -1
  84. package/lib/umd/locale/zh-CN.js +1 -1
  85. package/lib/umd/locale/zh-HK.js +1 -1
  86. package/lib/umd/locale/zh-TW.js +1 -1
  87. package/package.json +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x528acf=_0x3420;(function(_0x4a67ee,_0x3c70ab){const _0x16651c=_0x3420,_0x2d2836=_0x4a67ee();while(!![]){try{const _0x5ee8ee=-parseInt(_0x16651c(0x153))/0x1+-parseInt(_0x16651c(0x1e3))/0x2+-parseInt(_0x16651c(0x296))/0x3+-parseInt(_0x16651c(0x399))/0x4*(parseInt(_0x16651c(0x12d))/0x5)+parseInt(_0x16651c(0x3f2))/0x6+-parseInt(_0x16651c(0x2b4))/0x7*(-parseInt(_0x16651c(0x375))/0x8)+parseInt(_0x16651c(0x151))/0x9;if(_0x5ee8ee===_0x3c70ab)break;else _0x2d2836['push'](_0x2d2836['shift']());}catch(_0x4855ab){_0x2d2836['push'](_0x2d2836['shift']());}}}(_0x2879,0x9a53d),Object['defineProperty'](exports,Symbol[_0x528acf(0x21e)],{'value':_0x528acf(0x3ca)}));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=_0x528acf(0x18f),ee={};function te(_0x4edb2e){const _0x3c3372=_0x528acf;return JSON[_0x3c3372(0x29e)](_0x4edb2e)[_0x3c3372(0x347)];}function h(_0x102d76){'@babel/helpers - typeof';const _0x15db64=_0x528acf;return h=typeof Symbol==_0x15db64(0x157)&&typeof Symbol[_0x15db64(0x41c)]=='symbol'?function(_0x4ec713){return typeof _0x4ec713;}:function(_0x2c079c){const _0x1d65f1=_0x15db64;return _0x2c079c&&typeof Symbol==_0x1d65f1(0x157)&&_0x2c079c[_0x1d65f1(0x333)]===Symbol&&_0x2c079c!==Symbol['prototype']?_0x1d65f1(0x2ee):typeof _0x2c079c;},h(_0x102d76);}function ne(_0x31f805,_0x4fc4cb){const _0x5c1bbe=_0x528acf;if(h(_0x31f805)!=_0x5c1bbe(0x170)||!_0x31f805)return _0x31f805;var _0x1f58df=_0x31f805[Symbol['toPrimitive']];if(_0x1f58df!==void 0x0){var _0x46416e=_0x1f58df[_0x5c1bbe(0x1ca)](_0x31f805,_0x4fc4cb||_0x5c1bbe(0x3a3));if(h(_0x46416e)!=_0x5c1bbe(0x170))return _0x46416e;throw TypeError(_0x5c1bbe(0x19b));}return(_0x4fc4cb===_0x5c1bbe(0x259)?String:Number)(_0x31f805);}function re(_0x5a3871){const _0x2061b9=_0x528acf;var _0x5074cf=ne(_0x5a3871,_0x2061b9(0x259));return h(_0x5074cf)==_0x2061b9(0x2ee)?_0x5074cf:_0x5074cf+'';}function g(_0x2011ba,_0xada599,_0x5c925b){return(_0xada599=re(_0xada599))in _0x2011ba?Object['defineProperty'](_0x2011ba,_0xada599,{'value':_0x5c925b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2011ba[_0xada599]=_0x5c925b,_0x2011ba;}let ie=function(_0x214582){const _0x397054=_0x528acf;return _0x214582[_0x397054(0x17a)]=_0x397054(0x17a),_0x214582[_0x397054(0x147)]=_0x397054(0x147),_0x214582['CONFLICT']=_0x397054(0x39c),_0x214582[_0x397054(0x280)]='CLOSE_ROOM',_0x214582['JOIN_ROOM_FAILED']=_0x397054(0x1ab),_0x214582[_0x397054(0x25b)]=_0x397054(0x25b),_0x214582[_0x397054(0x132)]=_0x397054(0x132),_0x214582[_0x397054(0x194)]='SUBMIT_CHANGESET_TIMEOUT',_0x214582;}({});var _=class{constructor(){const _0x52a90f=_0x528acf;g(this,_0x52a90f(0x29a),new i[(_0x52a90f(0x1bf))]()),g(this,_0x52a90f(0x115),this['_event$'][_0x52a90f(0x1db)]());}[_0x528acf(0x237)](_0x3dd837){const _0x27b6d8=_0x528acf;this[_0x27b6d8(0x29a)]['next'](_0x3dd837);}},ae=class{constructor(){const _0x4aad5f=_0x528acf;g(this,_0x4aad5f(0x1aa),new i[(_0x4aad5f(0x1bf))]()),g(this,_0x4aad5f(0x39f),this['_commentUpdate$'][_0x4aad5f(0x1db)]());}['onCommentUpdate'](_0x1bdde1){const _0x2c3880=_0x528acf;this[_0x2c3880(0x1aa)][_0x2c3880(0x307)](_0x1bdde1);}};function v(_0x3b2c23,_0x46997e){return function(_0x1f5f83,_0x2bcc85){_0x46997e(_0x1f5f83,_0x2bcc85,_0x3b2c23);};}function y(_0x56ca19,_0x433376,_0x156417,_0x9c7234){const _0x168582=_0x528acf;var _0x25ac78=arguments['length'],_0x4b8cd2=_0x25ac78<0x3?_0x433376:_0x9c7234===null?_0x9c7234=Object['getOwnPropertyDescriptor'](_0x433376,_0x156417):_0x9c7234,_0x138406;if(typeof Reflect==_0x168582(0x170)&&typeof Reflect[_0x168582(0x3a4)]==_0x168582(0x157))_0x4b8cd2=Reflect[_0x168582(0x3a4)](_0x56ca19,_0x433376,_0x156417,_0x9c7234);else{for(var _0x44cb97=_0x56ca19[_0x168582(0x347)]-0x1;_0x44cb97>=0x0;_0x44cb97--)(_0x138406=_0x56ca19[_0x44cb97])&&(_0x4b8cd2=(_0x25ac78<0x3?_0x138406(_0x4b8cd2):_0x25ac78>0x3?_0x138406(_0x433376,_0x156417,_0x4b8cd2):_0x138406(_0x433376,_0x156417))||_0x4b8cd2);}return _0x25ac78>0x3&&_0x4b8cd2&&Object[_0x168582(0x2b7)](_0x433376,_0x156417,_0x4b8cd2),_0x4b8cd2;}let b=class extends t[_0x528acf(0x23e)]{constructor(_0x5e18d2){const _0x2b0ea7=_0x528acf;super(),this['_univerInstanceService']=_0x5e18d2,g(this,_0x2b0ea7(0x28c),new Map()),g(this,_0x2b0ea7(0x149),new i[(_0x2b0ea7(0x1bf))]()),this[_0x2b0ea7(0x3a2)]((0x0,i[_0x2b0ea7(0x1c3)])(this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t[_0x2b0ea7(0x274)][_0x2b0ea7(0x2df)])['pipe']((0x0,s['map'])(_0xf291c1=>_0xf291c1['getUnitId']())),this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t[_0x2b0ea7(0x274)][_0x2b0ea7(0x214)])[_0x2b0ea7(0x3cf)]((0x0,s['map'])(_0x181d5d=>_0x181d5d[_0x2b0ea7(0x1bb)]())),this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t['UniverInstanceType'][_0x2b0ea7(0x1eb)])[_0x2b0ea7(0x3cf)]((0x0,s[_0x2b0ea7(0x1f4)])(_0x35559b=>_0x35559b[_0x2b0ea7(0x1bb)]())),this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t['UniverInstanceType'][_0x2b0ea7(0x15a)])[_0x2b0ea7(0x3cf)]((0x0,s['map'])(_0x498c23=>_0x498c23['getUnitId']())))['subscribe'](_0x10d21d=>this[_0x2b0ea7(0x365)](_0x10d21d)));}['waitForRoom$'](_0x29136e){const _0x59d31f=_0x528acf;return this[_0x59d31f(0x28c)][_0x59d31f(0x2b6)](_0x29136e)?(0x0,i['of'])(this[_0x59d31f(0x28c)][_0x59d31f(0x1b0)](_0x29136e)):this[_0x59d31f(0x149)][_0x59d31f(0x3cf)]((0x0,s['map'])(_0x2830ed=>{if(_0x2830ed===_0x29136e)return this['_roomMembers']['get'](_0x2830ed);}));}[_0x528acf(0x205)](_0x14af28,_0x5706ba){const _0x1924ad=_0x528acf;let _0x3a38a2=this[_0x1924ad(0x28c)]['get'](_0x14af28);_0x3a38a2||(_0x3a38a2=new oe(),this[_0x1924ad(0x28c)]['set'](_0x14af28,_0x3a38a2),this[_0x1924ad(0x149)][_0x1924ad(0x307)](_0x14af28)),_0x3a38a2['updateMember'](_0x5706ba);}[_0x528acf(0x317)](_0x3f4bed,_0x29fca4){const _0xa19f58=_0x528acf;let _0x347377=this[_0xa19f58(0x28c)][_0xa19f58(0x1b0)](_0x3f4bed);_0x347377&&_0x347377[_0xa19f58(0x317)](_0x29fca4);}[_0x528acf(0x34d)](_0x29d166){const _0x3625be=_0x528acf;return this[_0x3625be(0x28c)][_0x3625be(0x1b0)](_0x29d166);}[_0x528acf(0x39b)](_0x2d3e14,_0x367eca){const _0x38e17a=_0x528acf;let _0x1e6fb6=this[_0x38e17a(0x28c)][_0x38e17a(0x1b0)](_0x2d3e14);if(_0x1e6fb6)return _0x1e6fb6[_0x38e17a(0x39b)](_0x367eca);}[_0x528acf(0x365)](_0x51be2c){const _0x8762d0=_0x528acf;let _0x5e2b1a=this[_0x8762d0(0x28c)][_0x8762d0(0x1b0)](_0x51be2c);_0x5e2b1a&&(_0x5e2b1a[_0x8762d0(0x1fb)](),this[_0x8762d0(0x28c)][_0x8762d0(0x166)](_0x51be2c));}['dispose'](){const _0x2f8d72=_0x528acf;this[_0x2f8d72(0x28c)]['forEach'](_0xb5b03b=>_0xb5b03b[_0x2f8d72(0x1fb)]()),this['_roomMembers'][_0x2f8d72(0x3fc)](),this[_0x2f8d72(0x149)]['complete']();}};b=y([v(0x0,t[_0x528acf(0x3a7)])],b);var oe=class extends t[_0x528acf(0x23e)]{constructor(..._0x40820e){const _0xf1a9a=_0x528acf;super(..._0x40820e),g(this,_0xf1a9a(0x1dd),new Map()),g(this,_0xf1a9a(0x2c3),new i['BehaviorSubject'](this[_0xf1a9a(0x1dd)])),g(this,_0xf1a9a(0x40c),this[_0xf1a9a(0x2c3)][_0xf1a9a(0x1db)]());}[_0x528acf(0x1fb)](){const _0x15bac2=_0x528acf;this[_0x15bac2(0x1dd)][_0x15bac2(0x3fc)](),this['_members$'][_0x15bac2(0x13b)]();}['updateMember'](_0x6431cb){const _0x1587c4=_0x528acf;this[_0x1587c4(0x1dd)][_0x1587c4(0x18b)](_0x6431cb[_0x1587c4(0x2c4)],_0x6431cb),this[_0x1587c4(0x39d)]();}[_0x528acf(0x317)](_0x597a62){const _0x5cb798=_0x528acf;this['_members'][_0x5cb798(0x166)](_0x597a62),this['_emitMembers']();}[_0x528acf(0x39b)](_0x53d28b){const _0x243d41=_0x528acf;return this[_0x243d41(0x1dd)][_0x243d41(0x1b0)](_0x53d28b);}['getAllMembers'](){const _0x5501d2=_0x528acf;return Array[_0x5501d2(0x164)](this[_0x5501d2(0x1dd)][_0x5501d2(0x364)]());}[_0x528acf(0x39d)](){const _0x2436b7=_0x528acf;this[_0x2436b7(0x2c3)]['next'](this[_0x2436b7(0x1dd)]);}};function se(_0xc585c1,_0xb3225){const _0x1905c5=_0x528acf;if(le(_0xc585c1))return _0xb3225;if(_0xb3225[_0x1905c5(0x1f0)]===e[_0x1905c5(0x330)][_0x1905c5(0x1a7)]){let _0x59a6f2=me(_0xc585c1),_0x1b0c70=_0xb3225;return{..._0x1b0c70,'data':{..._0x1b0c70[_0x1905c5(0x325)],'unitID':_0xc585c1[_0x1905c5(0x245)]['unitId'],'unitType':_0xc585c1[_0x1905c5(0x245)][_0x1905c5(0x37d)]??_0x1b0c70[_0x1905c5(0x325)]['unitType'],'changeset':_0x59a6f2[_0x1905c5(0x190)](_0x1b0c70[_0x1905c5(0x325)]['changeset'],he(_0xc585c1))}};}if(_0xb3225[_0x1905c5(0x1f0)]===e[_0x1905c5(0x330)][_0x1905c5(0x29c)]){let _0x4a0365=_0xb3225;return{..._0x4a0365,'data':{..._0x4a0365[_0x1905c5(0x325)],'unitID':_0xc585c1[_0x1905c5(0x245)][_0x1905c5(0x236)],'unitType':_0xc585c1[_0x1905c5(0x245)][_0x1905c5(0x37d)]??_0x4a0365[_0x1905c5(0x325)][_0x1905c5(0x37d)]}};}return _0xb3225;}function ce(_0x111626,_0x5ba87d){const _0x36fa9e=_0x528acf;if(le(_0x111626))return[_0x5ba87d];switch(_0x5ba87d[_0x36fa9e(0x1f0)]){case e[_0x36fa9e(0x330)][_0x36fa9e(0x173)]:return[ue(_0x111626,_0x5ba87d)];case e['CollaborationEvent'][_0x36fa9e(0x40f)]:return[fe(_0x111626,_0x5ba87d)];case e[_0x36fa9e(0x330)][_0x36fa9e(0x2bf)]:return[de(_0x111626,_0x5ba87d)];default:return[_0x5ba87d];}}function le(_0x4da99b){const _0xf01e22=_0x528acf;return _0x4da99b[_0xf01e22(0x245)][_0xf01e22(0x243)]==null&&_0x4da99b[_0xf01e22(0x245)][_0xf01e22(0x236)]===_0x4da99b[_0xf01e22(0x313)]&&!_0x4da99b['changeset'];}function ue(_0x60d27b,_0x3e11b4){const _0x58f8d2=_0x528acf;return{..._0x3e11b4,'data':(0x0,e[_0x58f8d2(0x293)])(pe(_0x60d27b,(0x0,e['parseProtocolChangeset'])(_0x3e11b4[_0x58f8d2(0x325)])))};}function de(_0x225c3b,_0x4cdf4d){const _0x24eda2=_0x528acf;return{..._0x4cdf4d,'data':pe(_0x225c3b,_0x4cdf4d[_0x24eda2(0x325)])};}function fe(_0xd11733,_0xdeffaf){const _0x1666b6=_0x528acf;let _0xde6810=_0xdeffaf['data'];return{..._0xdeffaf,'data':{..._0xde6810,'changesets':_0xde6810[_0x1666b6(0x18d)]['map'](_0x3e5a4e=>(0x0,e[_0x1666b6(0x293)])(pe(_0xd11733,(0x0,e['parseProtocolChangeset'])(_0x3e5a4e))))}};}function pe(_0x47b186,_0x3d953c){const _0x1654ac=_0x528acf;return me(_0x47b186)[_0x1654ac(0x32d)](_0x3d953c,he(_0x47b186));}function me(_0x462759){const _0x1961f0=_0x528acf;if(!_0x462759[_0x1961f0(0x2f0)])throw Error(_0x1961f0(0x3af));return _0x462759['changeset'];}function he(_0x3be285){const _0x46fcf5=_0x528acf;return{'localUnitId':_0x3be285['localUnitId'],'unitType':_0x3be285[_0x46fcf5(0x37d)],'target':_0x3be285[_0x46fcf5(0x245)]};}let ge=function(_0x229ec6){const _0x131e7d=_0x528acf;return _0x229ec6[_0x229ec6[_0x131e7d(0x3ef)]=0x0]=_0x131e7d(0x3ef),_0x229ec6[_0x229ec6['JOINING']=0x1]=_0x131e7d(0x344),_0x229ec6[_0x229ec6[_0x131e7d(0x1fe)]=0x2]='OFFLINE',_0x229ec6[_0x229ec6['ONLINE']=0x3]=_0x131e7d(0x143),_0x229ec6;}({});const _e={[a[_0x528acf(0x1a6)]['FAIL']]:_0x528acf(0x336),[a[_0x528acf(0x1a6)]['JOIN_ROOM_FULL']]:_0x528acf(0x253),[a[_0x528acf(0x1a6)][_0x528acf(0x304)]]:'session.room-not-exists',[a[_0x528acf(0x1a6)][_0x528acf(0x2ec)]]:_0x528acf(0x1ad),[a[_0x528acf(0x1a6)][_0x528acf(0x198)]]:'session.room-cnt-exceeds'};let ve=class extends t[_0x528acf(0x1b1)]{get[_0x528acf(0xfd)](){const _0x118535=_0x528acf;return this[_0x118535(0x2b1)][_0x118535(0x193)]();}constructor(_0x2a8fbc,_0x2a8aba,_0x5dc8a7,_0x503c28,_0x1f1b42,_0x4a026d,_0x59e5fb,_0x54b609){const _0x550209=_0x528acf;super(),this[_0x550209(0x1b9)]=_0x2a8fbc,this[_0x550209(0x320)]=_0x5dc8a7,this['_configService']=_0x503c28,this[_0x550209(0x39a)]=_0x1f1b42,this[_0x550209(0x3bb)]=_0x4a026d,this[_0x550209(0x102)]=_0x59e5fb,this[_0x550209(0x361)]=_0x54b609,g(this,_0x550209(0x2b1),new i[(_0x550209(0x1ef))](0x0)),g(this,_0x550209(0x341),this[_0x550209(0x2b1)][_0x550209(0x1db)]()),g(this,_0x550209(0x29a),new i[(_0x550209(0x1bf))]()),g(this,'event$',this['_event$'][_0x550209(0x1db)]()),g(this,_0x550209(0x377),void 0x0),g(this,_0x550209(0x285),void 0x0),g(this,_0x550209(0x180),void 0x0),g(this,'_shouldReportTelemetry',!0x1),g(this,_0x550209(0x23a),null),this[_0x550209(0x1a3)]=!!this[_0x550209(0x361)],_0x2a8aba[_0x550209(0x3cf)]((0x0,i[_0x550209(0x25a)])(this[_0x550209(0x2b0)]))[_0x550209(0x367)](_0x455567=>{const _0x4cdf18=_0x550209;if(_0x455567!==void 0x0){if(this[_0x4cdf18(0x377)]=_0x455567,_0x455567)this[_0x4cdf18(0x251)](_0x455567),this[_0x4cdf18(0x285)]=_0x455567['message$']['subscribe'](_0x26aafb=>{const _0x2bec49=_0x4cdf18;_0x26aafb['routeKey']===this[_0x2bec49(0x1b9)]['target'][_0x2bec49(0x236)]&&this['_onCombEvent'](_0x26aafb);});else{var _0x1cb097;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4cdf18(0x2b1)][_0x4cdf18(0x307)](0x2),(_0x1cb097=this[_0x4cdf18(0x285)])==null||_0x1cb097[_0x4cdf18(0x282)](),this['_socketMessageSubscription']=null;}}});}[_0x528acf(0x376)](){const _0x4f6f75=_0x528acf;var _0x4a1ae3;return((_0x4a1ae3=this['_socket'])==null?void 0x0:_0x4a1ae3[_0x4f6f75(0x2c4)])??null;}[_0x528acf(0x1fb)](){const _0x135909=_0x528acf;super['dispose'](),this['close'](),this[_0x135909(0x2b0)][_0x135909(0x307)](),this[_0x135909(0x2b0)][_0x135909(0x13b)]();}[_0x528acf(0x11c)](){const _0x3a73cd=_0x528acf;var _0x5df8d8;this[_0x3a73cd(0x2a0)](),(_0x5df8d8=this['_socket'])==null||_0x5df8d8[_0x3a73cd(0x2ef)]({'cmd':a[_0x3a73cd(0x110)][_0x3a73cd(0x427)],'data':{'roomID':this[_0x3a73cd(0x1b9)][_0x3a73cd(0x245)]['unitId']}}),this['_event$'][_0x3a73cd(0x13b)](),this['_sessionStatus$'][_0x3a73cd(0x13b)]();}['_onCombEvent'](_0x3bddcc){const _0x4d98aa=_0x528acf;_0x3bddcc[_0x4d98aa(0x138)]===a[_0x4d98aa(0x110)][_0x4d98aa(0x22f)]?this[_0x4d98aa(0x3bd)](_0x3bddcc):_0x3bddcc['cmd']===a[_0x4d98aa(0x110)][_0x4d98aa(0x398)]&&this[_0x4d98aa(0x340)](_0x3bddcc);}[_0x528acf(0x251)](_0x4d1dc6){const _0x5abf8f=_0x528acf;this[_0x5abf8f(0x2b1)][_0x5abf8f(0x307)](0x1),_0x4d1dc6[_0x5abf8f(0x2ef)]({'cmd':a[_0x5abf8f(0x110)][_0x5abf8f(0x22f)],'routeKey':this[_0x5abf8f(0x1b9)][_0x5abf8f(0x245)][_0x5abf8f(0x236)],'routeType':'','data':{'rooms':[{'roomID':this['_identity']['target']['unitId']}]}});}[_0x528acf(0x3bd)](_0x45fa50){const _0x34c680=_0x528acf;var _0x37f401;if(_0x45fa50[_0x34c680(0x381)]in _e){this[_0x34c680(0x102)]['emitEvent']({'id':_0x34c680(0x1ab),'data':_e[_0x45fa50[_0x34c680(0x381)]]}),this[_0x34c680(0x2b1)][_0x34c680(0x307)](0x2);return;}this[_0x34c680(0x2b1)][_0x34c680(0x307)](0x3);let _0x294313=(_0x37f401=_0x45fa50[_0x34c680(0x325)][_0x34c680(0x1c2)][this[_0x34c680(0x1b9)][_0x34c680(0x245)]['unitId']])==null?void 0x0:_0x37f401[_0x34c680(0x419)];_0x294313&&_0x294313[_0x34c680(0x2d9)](_0x490ba0=>this[_0x34c680(0x39a)][_0x34c680(0x205)](this[_0x34c680(0x1b9)][_0x34c680(0x313)],_0x490ba0));}[_0x528acf(0x340)](_0x12fd04){const _0x37510b=_0x528acf;try{let _0x1b2d6b=ce(this[_0x37510b(0x1b9)],_0x12fd04[_0x37510b(0x325)]);for(let _0x463aaf of _0x1b2d6b)switch(_0x463aaf[_0x37510b(0x1f0)]){case e[_0x37510b(0x330)][_0x37510b(0x1d0)]:this[_0x37510b(0x29d)](_0x463aaf),this[_0x37510b(0x29a)]['next'](_0x463aaf);break;case e['CollaborationEvent'][_0x37510b(0x131)]:this['_onUserLeave'](_0x463aaf),this[_0x37510b(0x29a)][_0x37510b(0x307)](_0x463aaf);break;case e[_0x37510b(0x330)][_0x37510b(0x41f)]:case e[_0x37510b(0x330)][_0x37510b(0x2bf)]:this[_0x37510b(0x17e)](),this[_0x37510b(0x106)](),this[_0x37510b(0x29a)][_0x37510b(0x307)](_0x463aaf);break;case e[_0x37510b(0x330)][_0x37510b(0x1d5)]:this[_0x37510b(0x320)][_0x37510b(0x2d2)](_0x37510b(0x324)+JSON[_0x37510b(0x29e)](_0x463aaf)),this['_event$'][_0x37510b(0x307)](_0x463aaf);break;case e[_0x37510b(0x330)][_0x37510b(0x41e)]:this[_0x37510b(0x3bb)]['onCommentUpdate'](_0x463aaf['data']),this[_0x37510b(0x29a)][_0x37510b(0x307)](_0x463aaf);break;default:this['_event$']['next'](_0x463aaf);}}catch(_0x4a5269){this['_logService'][_0x37510b(0x2d2)](_0x4a5269,_0x12fd04);}}[_0x528acf(0x29d)](_0x5c01b9){const _0x326ee1=_0x528acf;this[_0x326ee1(0x39a)][_0x326ee1(0x205)](this['_identity'][_0x326ee1(0x313)],_0x5c01b9[_0x326ee1(0x325)]);}[_0x528acf(0x113)](_0x22d499){const _0x1b254f=_0x528acf;this[_0x1b254f(0x39a)]['removeMember'](this['_identity'][_0x1b254f(0x313)],_0x22d499[_0x1b254f(0x325)][_0x1b254f(0x2c4)]);}async[_0x528acf(0x2ef)](_0xbfe90b,_0x313a18){const _0x1ae583=_0x528acf;if(this['sessionStatus']!==0x3||!this[_0x1ae583(0x377)])throw Error(_0x1ae583(0x25d));try{let _0x346aed=se(this[_0x1ae583(0x1b9)],_0xbfe90b);_0x346aed['eventID']===e[_0x1ae583(0x330)][_0x1ae583(0x1a7)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x346aed)),this['_socket'][_0x1ae583(0x2ef)]({'cmd':a['CombCmd'][_0x1ae583(0x37e)],'routeKey':this['_identity']['target'][_0x1ae583(0x236)],'routeType':'','data':_0x346aed});}catch(_0x2fc94b){this[_0x1ae583(0x320)]['error'](_0x2fc94b);}}[_0x528acf(0x269)](){const _0xfbaef8=_0x528acf;this[_0xfbaef8(0x180)]=setTimeout(()=>{const _0x32d877=_0xfbaef8;this[_0x32d877(0x180)]=null,this[_0x32d877(0x102)][_0x32d877(0x237)]({'id':_0x32d877(0x194)});},this['_configService'][_0xfbaef8(0x25f)]('HEARTBEAT_TIMEOUT')??0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x17566e=_0x528acf;this[_0x17566e(0x180)]&&=(clearTimeout(this[_0x17566e(0x180)]),null);}[_0x528acf(0x209)](_0x18f5e9){const _0x3b804d=_0x528acf;if(!this[_0x3b804d(0x1a3)])return;let {data:_0x1986eb}=_0x18f5e9,{unitID:_0x50d4ef,changeset:_0x57a3db}=_0x1986eb,{mutations:_0x9d6c0b,type:_0x3d7ef6}=_0x57a3db;this[_0x3b804d(0x23a)]={'unitId':_0x50d4ef,'type':_0x3d7ef6,'startTime':performance[_0x3b804d(0x107)](),'stopTime':0x0,'duration':0x0,'size':te(_0x9d6c0b)};}['_stopTelemetryCollaborationNewChangeset'](){const _0xb5039d=_0x528acf;if(this[_0xb5039d(0x1a3)]){if(!this['_telemetryInfo']){this['_logService']['error']('[CollaborationSession]',_0xb5039d(0x3f1));return;}this[_0xb5039d(0x23a)][_0xb5039d(0x303)]=performance['now'](),this[_0xb5039d(0x23a)]['duration']=this[_0xb5039d(0x23a)]['stopTime']-this['_telemetryInfo']['startTime'],this[_0xb5039d(0x361)][_0xb5039d(0x160)](_0xb5039d(0x393),this[_0xb5039d(0x23a)]),this['_telemetryInfo']=null;}}[_0x528acf(0x2a0)](){const _0x3a92b3=_0x528acf;this[_0x3a92b3(0x23a)]=null;}};ve=y([v(0x2,t[_0x528acf(0x30e)]),v(0x3,t[_0x528acf(0x295)]),v(0x4,(0x0,t[_0x528acf(0x17f)])(b)),v(0x5,(0x0,t[_0x528acf(0x17f)])(ae)),v(0x6,(0x0,t[_0x528acf(0x17f)])(_)),v(0x7,(0x0,t[_0x528acf(0x3ad)])(o[_0x528acf(0x371)]))],ve);const x=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x41a));function ye(_0x4e641c){return'unit-cache-'+_0x4e641c;}function be(_0x402c93){const _0x4e2c81=_0x528acf;let {unitID:_0xb22f3e,mutations:_0x2c8104}=_0x402c93;return{'unitId':_0xb22f3e,'subUnitId':_0x2c8104[_0x4e2c81(0x347)]>0x0?_0x2c8104[0x0][_0x4e2c81(0x351)][_0x4e2c81(0x311)]:null};}let S=class{constructor(_0x32ab0f,_0x50b2e3,_0xb13655){const _0x43686b=_0x528acf;this[_0x43686b(0x1d6)]=_0x32ab0f,this['_transformService']=_0x50b2e3,this[_0x43686b(0x10e)]=_0xb13655;}[_0x528acf(0x2f2)](_0x3f5269){const _0x4cde07=_0x528acf;var _0x30d051,_0x16f665;let _0x381a16=this[_0x4cde07(0x1d6)][_0x4cde07(0x1b0)](r[_0x4cde07(0x26f)]),{unitId:_0x1b6194,subUnitId:_0x5a702a}=be(_0x3f5269),_0x5dd7f9=_0x381a16==null?void 0x0:_0x381a16[_0x4cde07(0x135)](_0x1b6194)['getCurrentSelections'](),_0x16bef3=(_0x30d051=this[_0x4cde07(0x10e)][_0x4cde07(0x38b)](_0x1b6194))==null||(_0x30d051=_0x30d051[_0x4cde07(0x11d)]())==null?void 0x0:_0x30d051[_0x4cde07(0x127)]();if(_0x5dd7f9['length']===0x0||!_0x1b6194||!_0x5a702a)return;let _0x34816e=[{'id':r[_0x4cde07(0x413)]['id'],'params':{'unitId':_0x1b6194,'subUnitId':_0x16bef3,'selections':t['Tools']['deepClone'](_0x5dd7f9)}}],_0x338ce8=this[_0x4cde07(0x414)][_0x4cde07(0x2d4)](_0x3f5269,_0x34816e);if(!(0x0,e[_0x4cde07(0x18a)])(_0x338ce8))throw _0x338ce8[_0x4cde07(0x2d2)];let _0x22f9fd=(_0x16f665=_0x338ce8[_0x4cde07(0x3a6)][0x0])==null||(_0x16f665=_0x16f665[_0x4cde07(0x351)])==null?void 0x0:_0x16f665['selections'];if(Array[_0x4cde07(0x1f3)](_0x22f9fd)&&_0x22f9fd[_0x4cde07(0x347)]){if(_0x22f9fd['length']===_0x34816e[0x0][_0x4cde07(0x351)][_0x4cde07(0x185)][_0x4cde07(0x347)]&&_0x22f9fd[_0x4cde07(0x1f6)]((_0x4e762f,_0xd96bfd)=>t[_0x4cde07(0x3b1)]['equals'](_0x4e762f['range'],_0x34816e[0x0][_0x4cde07(0x351)][_0x4cde07(0x185)][_0xd96bfd]['range'])))return;this[_0x4cde07(0x1d6)][_0x4cde07(0x1b0)](t[_0x4cde07(0x14e)])[_0x4cde07(0x2cc)](r[_0x4cde07(0x413)]['id'],{'unitId':_0x1b6194,'subUnitId':_0x16bef3,'selections':_0x22f9fd});}}};S=y([v(0x0,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x1,e[_0x528acf(0x27c)]),v(0x2,t[_0x528acf(0x3a7)])],S);const C=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x411));let xe=function(_0x45b270){const _0x4b3968=_0x528acf;return _0x45b270[_0x45b270['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4b3968(0x244),_0x45b270[_0x45b270['OTHER_CLIENTS_EDITING']=0x1]=_0x4b3968(0x225),_0x45b270;}({});function Se(_0x4ae883){const _0x308dd9=_0x528acf;var _0x5bb35e;return!!((_0x5bb35e=_0x4ae883['params'])!=null&&_0x5bb35e[_0x308dd9(0x1a9)]);}const Ce=new Set([r[_0x528acf(0x2b5)]['id']]),we=new Set([c[_0x528acf(0x25c)]['id'],c[_0x528acf(0x35e)]['id'],c[_0x528acf(0x167)]['id'],c[_0x528acf(0x331)]['id']]);function Te(_0x6f17ac,_0x5bb356=Ce){const _0x1877c5=_0x528acf;let _0x187a32=[];for(let _0xa7a34f of _0x6f17ac){if(_0x5bb356['has'](_0xa7a34f['id'])){if(_0x187a32['length']>0x0)break;_0x187a32['push'](_0xa7a34f);break;}if(Se(_0xa7a34f)){if(_0x187a32[_0x1877c5(0x347)]>0x0)break;_0x187a32[_0x1877c5(0x19e)](_0xa7a34f);break;}_0x187a32[_0x1877c5(0x19e)](_0xa7a34f);}return _0x187a32;}function w(_0x3cbc35,_0x3252c0,_0x435b13,_0xe043e7,_0x43a80b){const _0x11274b=_0x528acf;let _0x2bddad=Te(_0x3cbc35),_0x5c58dc=_0x43a80b[_0x11274b(0x26a)](),_0x218ac8=(_0x5c58dc==null?void 0x0:_0x5c58dc[_0x11274b(0x2af)])??_0x11274b(0x3e5),_0xa77322=(_0x5c58dc==null?void 0x0:_0x5c58dc[_0x11274b(0x2c4)])??'unknown';return{'changeset':{'unitID':_0x3252c0,'type':(0x0,e[_0x11274b(0x130)])(_0x435b13[_0x11274b(0x24d)](_0x3252c0)),'baseRev':_0xe043e7[_0x11274b(0x1b2)](_0x3252c0),'revision':0x0,'userID':_0x218ac8,'memberID':_0xa77322,'mutations':_0x2bddad},'pendingMutations':_0x3cbc35['slice'](_0x2bddad['length'])};}function _0x2879(){const _0x55fd41=['/rev/','stopTime','JOIN_ROOM_NOT_EXISTS','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','baseRev','next','_onConnectionOpen','/universer-api/user/session-ticket','getFocusedUnit','isPermissionRej','floor','_isPermissionRej','ILogService','onTransformIME','_clearUndo','subUnitId','SheetTransformSelectionsService','localUnitId','saveSheetBlock','Quantity','SheetPermissionInitController','removeMember','includes','getUnitStatus$','_getAPIPrefixPath','c1Prime','endsWith','_permissionService','_localCacheService','DependentOn','_logService','onMissingChangesets','localCacheService','file','save\x20fail\x20reason\x20is\x20','data','_sheetTransformSelectionsService','appendMutation','indexOf','_onConnectionFailed','permissionRejEvent','upload','_waitCount','toLocal','_createInitialState','getLocalCacheKey','CollaborationEvent','RemoveSlidePageMutation','Error\x20on\x20receiving\x20event','constructor','MemberService','apply','session.join-failed','submit\x20changeset\x20error!','getImageSourceCache','_onRemoteRetry','UnitEmbedded','/-/object/list','subject','createInstance','entries','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onRecvEvent','sessionStatus$','UNIVER_PDF','_getLoginPath','JOINING','_clearRetryConnectingTimer','_docStateChangeManagerService','length','joinEvent','_initMergeInterceptor','incrementRevOfUnit','backupOfflineData','_showConflictNotification','getRoom','touchDependencies','_handler','LIVESHARE_OPERATION','params','IPermissionService','some','OfflineState','_getUploadFileURL','_listenToNetworkCondition','_queuedRemoteChangesets','HTTPRequest','newCsEvent','origin','UPDATE_CURSOR','textEncoder','_clearTimeoutTimer','EnsureSlideMasterPageMutation','pauseCollaboration','_pendingSessions','_telemetryService','\x0aAfter:\x20','collaborators','values','_removeRoom','objectType','subscribe','shareReplay','?url=','Plugin','fetchMiss','socket$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LIVESHARE_REQUEST_HOST','signUrlServerUrl','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','ITelemetryService','HEARTBEAT_TIMEOUT','FileSource','close$','1192MYHqWv','getMemberID','_socket','FetchingMissState','onStateChange','toggleOffline','univer-pro.collaboration-client-adapter-service','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','unitType','INGEST','_pendingMutations','src','code','isInternalEditorID','connection\x20error','fetching\x20missing\x20changesets\x20from\x20','collaMsg','collaboration-client.auth.needGotoLoginAlert','enableAuthServer','location','_singleActiveUnitService','message$','getUnit','_collabSessionService','getUploadOptions','putCollaborators','onSyncEditingCollabCursor','LIVESHARE_NEW_HOST','_updateState','unitInfo$','collaboration_new_changeset','\x20-\x20','_sendingTimer','avatar','onMissedChangesetFetched','RECV','4877596MBTiYB','_memberService','getMember','CONFLICT','_emitMembers','put','commentUpdate$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','CompressMutationService','disposeWithMe','default','decorate','b64DecodeUnicode','m2Prime','IUniverInstanceService','RETRY_CONNECTING_MAX_COUNT_KEY','sort','loginUrlKey','_getSignURL','add','Optional','timeoutTimer','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','ICollaborationClientAdapterService','Rectangle','prototype','x-univer-host','collaboratorID','IMentionIOService','updatePermissionObjEvent','_isEchoedAwaitingChangeset','MentionType','socketMessageSubscription','/block/','_commentService','WorkbookEditablePermission','_onJoinRoomEvent','UniverNetworkPlugin','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','init','_resendTimeout','fetchThroughInterceptors','title','_config','_onMessage','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','csRejEvent','CollaborationStatus','DRAWING_IMAGE_ALLOW_IMAGE_LIST','Module','[CollaborationEntity]','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_tryEnsureSocket','packageName','pipe','{fileID}','[CollaborationSessionService]:\x20socket\x20error','_onConflict','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','COMPRESS_MUTATION_SEND','change$','BaseCollaborationEntity','href','ThresholdInterceptorFactory','awaiting','resolveUnit','getUnitOnRev','toDisposable','getImage','_registerDependencies','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','endpointKey','saveSnapshot','not_collab','commentUpdateEvent','_toggleOffline','unknown','update','_socketChannels','updatePermissionPoint','serializeCombRequest','getInterceptPoints','number','[DataLoaderService]','catch','LIVESHARE_TERMINATE','IDLE','HTTPService','telemetry\x20info\x20is\x20not\x20initialized','1071354PgVMIM','_sessions','requestParams','onTransformSelections','sendChangesetTimeout','_imageSourceCache','onRemoteRej','_schedule','MUTATION','[PendingState]:\x20received\x20acknowledgement.','clear','reverse','getAttachmentUrl','candidateSocket','generateRandomId','onTransformRemoteChangesetByIMECache','authzUrl','_clearScheduledTask','enableOfflineEditing','loadBase','unitId\x20is\x20not\x20found','_transformAndApplyRemoteChangeset','closeSession','reject','isTransformChangesetsSuccess','reconnect','members$','POST','docStateChange$','PSEUDO_FETCH_MISSING_RESULT','COMPRESS_MUTATION_APPLY','univer-pro.collaboration-client.single-active-unit-service','_resendWithTimeout','SetSelectionsOperation','_transformService','override','_univerInstanceService','DisposableCollection','_unitLoaded$','members','collaboration-client.local-cache-service','_incrementRevisionNumber','iterator','createCollaborator','COMMENT_UPDATE','CHANGESET_ACK','&assign=','retryConnectingTimer','status$','_revisionService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','PERMISSION_REJ','LEAVE','_configService','copyFileMeta','/universer-api/snapshot','sessionStatus','_transformStateCache','deserializeToCombResponse','awaiting_with_pending','_getSendChangesetTimeout','_collaborationUIEventService','_onLocalMutation','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CollaborationImageIoService','_clearCollaborationTimeoutTimer','now','_clearRedo','setWaitCount','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','registerHTTPInterceptor','_remoteChangesetQueue','transformChangesets','_instanceService','patch','CombCmd','UNIVER_SLIDE','toggleOnline','_onUserLeave','open$','event$','shouldCloseConn','cbc','fromCollab','\x20in\x20_schedule.','[UniverCollaborationClientPlugin]','IAttachmentIoService','close','getActiveSheet','_unlockTransition','UNISCRIPT_RUN','SYNCED','action','socket\x20close','_createHandler','_maxTotalRetryTimeout','loadUnitOfRevision','snapshot','getSheetId','workbook','_initRequestHeader','/object/','__Key__','NOT_COLLAB','5KzHtSW','mergeOverrideWithDependencies','_transformUndoredo','mapDocumentTypeToUniverInstanceType','USERS_LEAVE','SOCKET_FAILED','method','_transformIMECache','getWorkbookSelections','originalMeta','objects','cmd','PendingState','getCollabEntity','complete','interceptor','joinRsp','_resendTimer','_cfgEnableObjInherit','body','EmptyMutationInfo','list','ONLINE','setConfig','CollaborationSession','RETRY_CONNECTING_MAX_COUNT','PERMISSION_DENIED','_waitForHeartbeatResponse','_roomCreated$','hasOwnProperty','toString','univer-pro.collaboration-client.network-condition.service','_replayCachedMutations','ICommandService','ISnapshotServerService','onStarting','29136708TnemfT','entityInit$','1233014BOEafq','transformUndoRedo','IAuthzIoService','CollaborationController','function','_tryReconnect','_changesetReqId','UNIVER_BASE','mutations','_transformSelections','encode','getCfgEnableObjInherit','[PendingState]:\x20unhandled\x20univer\x20type:\x20','capture','socketService','conflict','enableSingleActiveInstanceLock','from','collabSubmitChangesetUrl','delete','MoveSlidePageMutation','find','[FetchMissState]','LOCAL_CACHE_INTERVAL','ISingleActiveUnitService','routeKey','CollaborationAttachmentIoService','SessionStatus','UNIVER_COLLABORATION_CLIENT_PLUGIN','object','_createSocket','onload','NEW_CHANGESETS','_entityInit$','replace','retryCount','DEFAULT_FILE_NAME','_sessionChannels','unitID','OTHER_CLIENT_EDITING','take','reqId','_replaceFileID','_stopTelemetryCollaborationNewChangeset','Inject','_collaborationTimeoutTimer','_getCurrentRevision','_sender','confirm','loadUnit','selections','_transformRemoteChangesetByIMECache','/unit/','_onFetchMissResult','UUID','isTransformMutationsWithChangesetSuccess','set','headers','changesets','[PendingState]:\x20received\x20rejection.','collaboration-client.config','toRemote','type','utf8ToBytes','getValue','SUBMIT_CHANGESET_TIMEOUT','startsWith','batchAllowed','DEFAULT_WS_SESSION_TICKET_URL','GLOBAL_ROOMS_CNT_EXCEEDS','LocaleService','_adapter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverLicensePlugin','Injector','push','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_updateLocalCache','UserManagerService','retryConnectingInterval','_shouldReportTelemetry','fetch_missing','/collaborator','CmdRspCode','SUBMIT_CHANGESET','_initUnitPermissionChange','__splitChunk__','_commentUpdate$','JOIN_ROOM_FAILED','ImageUploadStatusType','session.room-permission-denied','[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.','_type','get','RxDisposable','getCurrentRevOfUnit','/universer-api/snapshot/','cfgEnableObjInherit','objectActions','CommandType','_substituteRedoStack','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_identity','session','getUnitId','_decreaseWaiting','_hasSessionsForEndpoint','_snapshotService','Subject','name','MergeInterceptorFactory','roomInfos','merge','error$','compose','_acknowledgeAwaitingIfReady','parse','_entities','tables','call','_clearHeartbeatTimer','_getDownloadEndpointURL','RichTextEditingMutation','localeService','DocCollaborationEntity','USERS_ENTER','requireSession','ErrorCode','1.0.0-beta.0','_getConfig','MSG_FOR_ERROR','_injector','socketReady','resolveWithBasePath','deleteCollaborator','@univerjs-pro/collaboration-client','asObservable','getTypeOfUnitAdded$','_members','LIVESHARE_FETCH_OPERATIONS','CommentService','filter','refreshPermission','ImageSourceType','500070dvlzQu','status','_networkConditionService','SNAPSHOT_URL_KEY','HEARTBEAT_INTERVAL_KEY','_startCollaboration','SUCCUSS','_createInitialStateImpl','UNIVER_BOARD','getTime','_eventService','[OfflineState]:\x20received\x20acknowledgement.','BehaviorSubject','eventID','CollaborationSessionService','_awaitingChangeset','isArray','map','parseProtocolChangeset','every','/universer-api/stream/file/upload','sendHeartbeatTimer','&source=','_initDependencies','dispose','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','IUndoRedoService','OFFLINE','_httpService','addImageSourceCache','delay','setCfgEnableObjInherit','_state','getSheetBlock','updateMember','_collaborationSessionService','PdfCollaborationEntity','append','_startTelemetryCollaborationNewChangeset','MentionIoHttpService','/role','_status$','unit','_localeService','getTypeOfUnitDisposed$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onRemoteChangeset','_change$','setShowComponents','UNIVER_DOC','/universer-api/authz','ERROR_IMAGE','[OfflineState]:\x20received\x20changeset.','_getAPIPrefix','ws://127.0.0.1:8000/universer-api/comb/connect','loadBoard','missingChangesets','_syncEditingCollabCursor','_toggleOnline','toStringTag','sheets','CollaborationSocketService','_updateStatus','_transitionLocked','_changesetSessionId','_HTTPService','OTHER_CLIENTS_EDITING','_sendHeartbeat','updateOfflineData','_onRemoteChangeset','_redoStacks','_handleRemoteChangesets','_resolveSessionIdentity','_state$','initWorkbookPermissionChange','readAsDataURL','JOIN','editingUnit','_acknowledgeAwaiting','editing\x20status\x20changed\x20to','SnapshotService','_undoRedoService','_getRedoStack','unitId','emitEvent','downloadEndpointUrl','revision','_telemetryInfo','/-/object/-/batch_allowed','socket\x20open.','_checkMissing','Disposable','_exhaustRemoteChangesetQueue','PERSON','createSocket','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','endpoint','NO_OTHER_CLIENTS_EDITING','target','FileId','trim','online$','_transformStack','onSendChangeset','_createSession','post','getUnitType','url','onlyLocal','_init','_joinRoom','_clearLocalCache','session.room-full','PENDING','updateCollaborator','snapshotServerUrl','CollaborativeUndoRedoService','c2Prime','string','takeUntil','SOCKET_FAILED_RETRY','AddSlidePageMutation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','CollaborationUIEventId','getConfig','_substituteUndoStack','[CollaborationState]:\x20apply\x20error!','allowed','liveShareOperation','debug','UniverCollaborationPlugin','state','fromCharCode','blockRanges','_scheduleCollaborationTimeoutTimer','getCurrentUser','ILocalCacheService','CHANGESET_REJ','registerDependencies','_disableEditing','SheetsSelectionsService','min','pending','LOCAL_CACHE_INTERVAL_KEY','/universer-api/uniscript','UniverInstanceType','leaveEvent','attachment','loadOfflineData','getGlobalObject','ERROR_EXCEED_SIZE','[CollaborationUndoRedoService]','_socketService','ITransformService','JSONX','awaitingChangeset','fetchMissingChangesets','CLOSE_ROOM','uploadFileServerUrl','unsubscribe','splice','resolve','_socketMessageSubscription','isTransformMutationsWithChangesetFailure','then','addHandlerCallback','onTransformRemoteChangesetByStateCache','HELLO','/universer-api/oidc/authpage','_roomMembers','_commandService','saveImage','textRanges','objectID','_submitChangeset','UniverCollaborationClientPlugin','parseChangesetToProtocol','AwaitingWithPendingState','IConfigService','338511QMXgfH','getSnapshotAPIPath','_getUndoStack','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_event$','getCollabEntity$','FETCH_MISSING','_onUserJoin','stringify','ERROR_IMAGE_TYPE','_throwTelemetryCollaborationNewChangeset','responseType','_fetchMissChangesets','[CollaborationSessionService]','resend','_getSocketChannel','/universer-api/file/{fileID}/sign-url','concatMap','HEARTBEAT_INTERVAL','_transformRemoteChangesetByStateCache','?size=','createIdentifier','_initCloseConn','_onOffline','_userManagerService','userID','dispose$','_sessionStatus$','/object','focused$','1477fSlcbp','InsertSheetMutation','has','defineProperty','RevisionService','ISocketService','saveAttachment','roles','onRemoteRetry','SHOULD_CLOSE_CONN','disableLocalCache','CHANGESET_SHOULD_RETRY','Failed\x20to\x20update\x20permission\x20point','liveShareNewHost','synced','_members$','memberID','HEARTBEAT','onMutationExecutedForCollab','size','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','sid','_onRemoteRejected','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','executeCommand','encrypt','_executeRemoteChangeset','reduce','DocStateChangeManagerService','_snapshotServerService','error','_unitInfo$','transformMutationsWithChangeset','_lockTransition','_applyRemoteChangeset','infoRsp','resourceIDs','forEach','onTransformState','/allowed','_handlerCallback','[OfflineState]:\x20received\x20rejection.','_acknowledgedAwaitingRevision','UNIVER_SHEET','onRemoteAck','OPTIONAL','INetworkConditionService','ReplaySubject','Univer','loadDoc','HEARTBEAT_TIMEOUT_KEY','_undoStacks','csAckEvent','[SyncedState]:\x20received\x20rejection.','loadPdf','&to=','JOIN_ROOM_PERMISSION_DENIED','result','symbol','send','changeset','AWAITING_WITH_PENDING','transformSelections','_collaborationPaused','_onRemoteACK','SheetCollaborationEntity','_scheduleCompleteTimestamp','BoardCollaborationEntity','actions','_compressMutationService','FETCH_MISS','text-x','_getCtorByUniverInstanceType','accept','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','CollaborationEntity','create','slice'];_0x2879=function(){return _0x55fd41;};return _0x2879();}const Ee=w;function De(_0x375c9a,_0x112bee,_0x161abc,_0x595247,_0xcf886e){const _0x44f5d3=_0x528acf;let _0x2cf6a9=Te(_0x375c9a,we),_0xed3166=_0xcf886e[_0x44f5d3(0x26a)](),_0x11ab08=(_0xed3166==null?void 0x0:_0xed3166['userID'])??_0x44f5d3(0x3e5),_0x1040c9=(_0xed3166==null?void 0x0:_0xed3166[_0x44f5d3(0x2c4)])??_0x44f5d3(0x3e5);return{'changeset':{'unitID':_0x112bee,'type':(0x0,e[_0x44f5d3(0x130)])(_0x161abc[_0x44f5d3(0x24d)](_0x112bee)),'baseRev':_0x595247[_0x44f5d3(0x1b2)](_0x112bee),'revision':0x0,'userID':_0x11ab08,'memberID':_0x1040c9,'mutations':_0x2cf6a9},'pendingMutations':_0x375c9a[_0x44f5d3(0x301)](_0x2cf6a9[_0x44f5d3(0x347)])};}function Oe(_0x837a43,_0x2996cb,_0x4ec1fd,_0x3b854e,_0x2c35da){const _0x33238f=_0x528acf;let _0x4218b2=_0x837a43[_0x33238f(0x2cf)]((_0x23a23c,_0x2bc545)=>{const _0x55f8ae=_0x33238f;let _0x5d902d=_0x23a23c[_0x23a23c[_0x55f8ae(0x347)]-0x1],{id:_0x52957e}=_0x5d902d??{},{id:_0x502f93,type:_0x29662b}=_0x2bc545,_0x94ddfb=_0x2bc545['params'];if(_0x52957e&&_0x52957e!==_0x502f93)throw Error(_0x55f8ae(0x2fe)+_0x52957e+_0x55f8ae(0x394)+_0x502f93+'.');if(!_0x5d902d)return[{'id':_0x502f93,'type':_0x29662b,'params':{'unitId':_0x94ddfb['unitId'],'textRanges':_0x94ddfb[_0x55f8ae(0x28f)],'actions':_0x94ddfb[_0x55f8ae(0x2f8)]}}];let _0x5457ac=_0x5d902d[_0x55f8ae(0x351)];return ke(_0x5457ac,_0x94ddfb)?[..._0x23a23c[_0x55f8ae(0x301)](0x0,-0x1),{..._0x5d902d,'id':_0x502f93,'type':_0x29662b,'params':{'unitId':_0x94ddfb[_0x55f8ae(0x236)],'textRanges':_0x94ddfb[_0x55f8ae(0x28f)],'actions':t[_0x55f8ae(0x27d)][_0x55f8ae(0x1c5)](_0x5457ac[_0x55f8ae(0x2f8)],_0x94ddfb[_0x55f8ae(0x2f8)])}}]:[..._0x23a23c,{'id':_0x502f93,'type':_0x29662b,'params':{'unitId':_0x94ddfb[_0x55f8ae(0x236)],'textRanges':_0x94ddfb[_0x55f8ae(0x28f)],'actions':_0x94ddfb[_0x55f8ae(0x2f8)]}}];},[]),_0x39b08f=_0x2c35da['getCurrentUser'](),_0x4d581a=(_0x39b08f==null?void 0x0:_0x39b08f['userID'])??_0x33238f(0x3e5),_0x293a3d=(_0x39b08f==null?void 0x0:_0x39b08f[_0x33238f(0x2c4)])??_0x33238f(0x3e5);return{'changeset':{'unitID':_0x2996cb,'type':(0x0,e[_0x33238f(0x130)])(_0x4ec1fd['getUnitType'](_0x2996cb)),'baseRev':_0x3b854e['getCurrentRevOfUnit'](_0x2996cb),'revision':0x0,'userID':_0x4d581a,'memberID':_0x293a3d,'mutations':_0x4218b2},'pendingMutations':_0x837a43[_0x33238f(0x301)](_0x837a43[_0x33238f(0x347)])};}function ke(_0x2c4ecd,_0x4ce8b5){const _0x199aa6=_0x528acf;return!Ae(_0x2c4ecd)&&!Ae(_0x4ce8b5)&&je(_0x2c4ecd[_0x199aa6(0x2f8)],_0x4ce8b5['actions']);}function Ae(_0x2340d7){return _0x2340d7['isCompositionEnd']!==void 0x0;}function je(_0x41d327,_0x5ee523){return Me(_0x41d327)&&Me(_0x5ee523)&&!Pe(_0x41d327)&&!Pe(_0x5ee523)&&!Ne(_0x41d327)&&!Ne(_0x5ee523);}function Me(_0x14f9e1){const _0x1205da=_0x528acf;return Fe(_0x14f9e1)['some'](_0x33b518=>T(_0x33b518)&&_0x33b518['et']===_0x1205da(0x2fb));}function Ne(_0x506205){const _0x41b22d=_0x528acf;return Fe(_0x506205)[_0x41b22d(0x353)](_0x42439a=>Array[_0x41b22d(0x1f3)](_0x42439a)||typeof _0x42439a==_0x41b22d(0x259)||typeof _0x42439a==_0x41b22d(0x3eb));}function Pe(_0x791f53){const _0x4dea94=_0x528acf;return Fe(_0x791f53)[_0x4dea94(0x353)](_0x12e657=>!T(_0x12e657)||_0x12e657['et']!==_0x4dea94(0x2fb)||!Array[_0x4dea94(0x1f3)](_0x12e657['e'])?!0x1:_0x12e657['e']['some'](_0x4f5593=>!T(_0x4f5593)||!T(_0x4f5593[_0x4dea94(0x140)])?!0x1:Object[_0x4dea94(0x3b2)][_0x4dea94(0x14a)][_0x4dea94(0x1ca)](_0x4f5593['body'],_0x4dea94(0x1c9))||Object[_0x4dea94(0x3b2)][_0x4dea94(0x14a)][_0x4dea94(0x1ca)](_0x4f5593[_0x4dea94(0x140)],'columnGroups')||Object['prototype'][_0x4dea94(0x14a)][_0x4dea94(0x1ca)](_0x4f5593[_0x4dea94(0x140)],_0x4dea94(0x268))));}function Fe(_0x500ed5){const _0xf6d384=_0x528acf;if(!Array['isArray'](_0x500ed5))return[];let _0x4947e5=_0x500ed5['includes'](_0xf6d384(0x140))?_0x500ed5:_0x500ed5['find'](_0x43536e=>Array[_0xf6d384(0x1f3)](_0x43536e)&&_0x43536e[_0xf6d384(0x318)](_0xf6d384(0x140)));if(!Array[_0xf6d384(0x1f3)](_0x4947e5))return[];let _0x42078d=_0x4947e5[_0xf6d384(0x328)](_0xf6d384(0x140));return _0x42078d===-0x1?[]:_0x4947e5[_0xf6d384(0x301)](_0x42078d+0x1);}function T(_0x4c6ac8){const _0xa2b76f=_0x528acf;return typeof _0x4c6ac8==_0xa2b76f(0x170)&&!!_0x4c6ac8&&!Array[_0xa2b76f(0x1f3)](_0x4c6ac8);}function Ie(_0xa3c632,_0x4d0055){const _0x2b4e84=_0x528acf;let _0x49d420=new i[(_0x2b4e84(0x2e3))](0x1);return setTimeout(()=>_0x49d420[_0x2b4e84(0x307)](_0x4d0055),_0xa3c632),_0x49d420['asObservable']()[_0x2b4e84(0x3cf)]((0x0,i[_0x2b4e84(0x17b)])(0x1));}var Le,Re,ze;let Be=function(_0x3e61b3){const _0x45e160=_0x528acf;return _0x3e61b3[_0x45e160(0x12c)]=_0x45e160(0x3e2),_0x3e61b3[_0x45e160(0x120)]=_0x45e160(0x2c2),_0x3e61b3[_0x45e160(0x254)]='pending',_0x3e61b3['AWAITING']='awaiting',_0x3e61b3[_0x45e160(0x2f1)]=_0x45e160(0x100),_0x3e61b3[_0x45e160(0x2fa)]=_0x45e160(0x1a4),_0x3e61b3['CONFLICT']=_0x45e160(0x162),_0x3e61b3[_0x45e160(0x1fe)]='offline',_0x3e61b3;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x498ecb,_0x4bb260,_0x32a7b0,_0x4731b6,_0x4467b4,_0x32493d,_0x492bce,_0x12303f,_0xb44235){const _0x269d5c=_0x528acf;this[_0x269d5c(0x179)]=_0x498ecb,this[_0x269d5c(0x191)]=_0x4bb260,this[_0x269d5c(0x34f)]=_0x4467b4,this[_0x269d5c(0x28d)]=_0x32493d,this[_0x269d5c(0x234)]=_0x492bce,this[_0x269d5c(0x423)]=_0x12303f,this[_0x269d5c(0x31e)]=_0xb44235,g(this,_0x269d5c(0x1f2),null),g(this,_0x269d5c(0x37f),[]),this[_0x269d5c(0x1f2)]=_0x32a7b0,this[_0x269d5c(0x37f)]=_0x4731b6;}[_0x528acf(0x23d)](_0x373acf){const _0x244490=_0x528acf;let _0x230062=this[_0x244490(0x423)][_0x244490(0x1b2)](this['unitID']);return _0x373acf[_0x244490(0x239)]>_0x230062+0x1?(this[_0x244490(0x34f)][_0x244490(0x321)]({'from':_0x230062,'to':_0x373acf[_0x244490(0x239)]-0x1}),!0x0):!0x1;}[_0x528acf(0x12f)](_0x417467){const _0x4fdf96=_0x528acf;this[_0x4fdf96(0x234)][_0x4fdf96(0x154)](this[_0x4fdf96(0x179)],_0x417467);}[_0x528acf(0x15c)](_0x34716d){const _0x418d65=_0x528acf;var _0x1667cf,_0x3b993c;(_0x1667cf=(_0x3b993c=this['_handler'])[_0x418d65(0x3f5)])==null||_0x1667cf['call'](_0x3b993c,_0x34716d);}[_0x528acf(0x134)](_0x1ceea5){const _0x447536=_0x528acf;var _0x5c203d,_0x5ef042;return(_0x5c203d=(_0x5ef042=this[_0x447536(0x34f)])['onTransformIME'])==null?void 0x0:_0x5c203d[_0x447536(0x1ca)](_0x5ef042,_0x1ceea5);}[_0x528acf(0xfe)](_0x385131){const _0x4097ce=_0x528acf;var _0xc21a1,_0x9fe71c;return(_0xc21a1=(_0x9fe71c=this[_0x4097ce(0x34f)])[_0x4097ce(0x2da)])==null?void 0x0:_0xc21a1[_0x4097ce(0x1ca)](_0x9fe71c,_0x385131);}[_0x528acf(0x186)](_0x225fe4){const _0x17f382=_0x528acf;var _0x4da8f8,_0x29e26d;return((_0x4da8f8=(_0x29e26d=this[_0x17f382(0x34f)])[_0x17f382(0x401)])==null?void 0x0:_0x4da8f8['call'](_0x29e26d,_0x225fe4))??_0x225fe4;}[_0x528acf(0x2a9)](_0x598e7a){const _0xea21fd=_0x528acf;var _0x1b73c2,_0x386c11;return((_0x1b73c2=(_0x386c11=this[_0xea21fd(0x34f)])[_0xea21fd(0x289)])==null?void 0x0:_0x1b73c2[_0xea21fd(0x1ca)](_0x386c11,_0x598e7a))??_0x598e7a;}[_0x528acf(0x21c)](_0x462c97){const _0x26b83f=_0x528acf;if(this[_0x26b83f(0x191)]===t['UniverInstanceType'][_0x26b83f(0x214)]){let {unitID:_0x2218ff,mutations:_0x374ba5,memberID:_0x2adf6f}=_0x462c97,_0x109573=_0x374ba5['length']>0x0?_0x374ba5[0x0][_0x26b83f(0x351)]['textRanges']:[];if(Array[_0x26b83f(0x1f3)](_0x109573)&&_0x109573[_0x26b83f(0x347)]>0x0){var _0xb76a40,_0x5e4fdf;(_0xb76a40=(_0x5e4fdf=this[_0x26b83f(0x34f)])[_0x26b83f(0x38f)])==null||_0xb76a40['call'](_0x5e4fdf,{'unitID':_0x2218ff,'memberID':_0x2adf6f,'textRanges':_0x109573});}}}[_0x528acf(0x1a0)](){const _0x1692ef=_0x528acf;var _0x4c4ae6;(_0x4c4ae6=this[_0x1692ef(0x31e)])==null||_0x4c4ae6[_0x1692ef(0x227)](this[_0x1692ef(0x179)],this[_0x1692ef(0x191)],this[_0x1692ef(0x1f2)],this[_0x1692ef(0x37f)]);}[_0x528acf(0x181)](){const _0x39d002=_0x528acf;return this[_0x39d002(0x423)][_0x39d002(0x1b2)](this[_0x39d002(0x179)]);}[_0x528acf(0x41b)](){const _0x130c21=_0x528acf;this[_0x130c21(0x423)][_0x130c21(0x34a)](this[_0x130c21(0x179)]);}[_0x528acf(0x2ce)](_0x4d7ace){const _0x2de14f=_0x528acf;let _0x161f62=this[_0x2de14f(0x186)](_0x4d7ace);_0x161f62=this['_transformRemoteChangesetByStateCache'](_0x161f62);let _0x25668e=(0x0,t['sequenceExecute'])(_0x161f62[_0x2de14f(0x15b)],this[_0x2de14f(0x28d)],{'fromCollab':!0x0});if(!_0x25668e[_0x2de14f(0x2ed)])throw _0x25668e[_0x2de14f(0x2d2)]instanceof Error?_0x25668e[_0x2de14f(0x2d2)]:Error(_0x25668e[_0x2de14f(0x2d2)]??_0x2de14f(0x261));this[_0x2de14f(0x134)](_0x161f62),this[_0x2de14f(0xfe)](_0x161f62),this[_0x2de14f(0x12f)](_0x4d7ace),this[_0x2de14f(0x15c)](_0x161f62),this[_0x2de14f(0x21c)](_0x161f62),this[_0x2de14f(0x41b)]();}};let D=class extends E{constructor(_0x436b46,_0x570f40,_0x40a612,_0x54a233,_0x40309b,_0x3100da,_0x183d1d,_0x379a7e,_0x2dafd6,_0x5653c6){const _0x24abb7=_0x528acf;super(_0x436b46,_0x570f40,null,[],_0x40a612,_0x183d1d,_0x3100da,_0x54a233,_0x5653c6),this[_0x24abb7(0x1d6)]=_0x40309b,this[_0x24abb7(0x320)]=_0x379a7e,this[_0x24abb7(0x414)]=_0x2dafd6,this[_0x24abb7(0x322)]=_0x5653c6,g(this,_0x24abb7(0x1e4),'synced');}[_0x528acf(0x327)](_0x2f0855){const _0x454c2e=_0x528acf;let _0x553429=this[_0x454c2e(0x1d6)]['createInstance'](O,this['unitID'],this[_0x454c2e(0x191)],[_0x2f0855],this[_0x454c2e(0x34f)]);return _0x553429[_0x454c2e(0x3f9)](),_0x553429[_0x454c2e(0x1a0)](),_0x553429;}[_0x528acf(0x211)](_0x245846){const _0x59effc=_0x528acf;if(this[_0x59effc(0x23d)](_0x245846))return this[_0x59effc(0x1d6)]['createInstance'](N,this['unitID'],this[_0x59effc(0x191)],null,[],null,[_0x245846],this[_0x59effc(0x34f)]);try{let _0x2fd238=this[_0x59effc(0x414)]['transformMutationsWithChangeset'](_0x245846,[e[_0x59effc(0x141)]]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x2fd238)){let {c1Prime:_0x4ce42f}=_0x2fd238;return this['_executeRemoteChangeset'](_0x4ce42f),this;}throw _0x2fd238[_0x59effc(0x2d2)];}catch(_0x44385d){return this[_0x59effc(0x320)][_0x59effc(0x2d2)](_0x44385d),this[_0x59effc(0x3d2)](!0x1);}}['_onConflict'](_0x1ace7b){const _0x4db1c6=_0x528acf;return this['_injector']['createInstance'](j,this[_0x4db1c6(0x179)],this[_0x4db1c6(0x191)],null,[],this[_0x4db1c6(0x34f)],_0x1ace7b);}[_0x528acf(0x2e0)](_0x5542b0){const _0x3d8eb0=_0x528acf;if(_0x5542b0[_0x3d8eb0(0x239)]<=this[_0x3d8eb0(0x181)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x592bd8=_0x528acf;throw Error(_0x592bd8(0x2e9));}[_0x528acf(0x2bc)](){return this;}[_0x528acf(0x37a)](){const _0x11d34c=_0x528acf;return this[_0x11d34c(0x1d6)][_0x11d34c(0x33d)](M,this['unitID'],this[_0x11d34c(0x191)],null,[],this[_0x11d34c(0x34f)]);}['toggleOnline'](){return this;}['resend'](){const _0x1750c6=_0x528acf;throw Error(_0x1750c6(0x242));}[_0x528acf(0x36b)](){const _0x3a9db9=_0x528acf;let _0x1afd01=this[_0x3a9db9(0x423)][_0x3a9db9(0x1b2)](this['unitID']);return this[_0x3a9db9(0x34f)]['onMissingChangesets']({'from':_0x1afd01,'to':0x0}),this[_0x3a9db9(0x1d6)]['createInstance'](N,this[_0x3a9db9(0x179)],this[_0x3a9db9(0x191)],null,[],null,[],this[_0x3a9db9(0x34f)]);}};D=y([v(0x3,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x5,t['IUndoRedoService']),v(0x6,t[_0x528acf(0x14e)]),v(0x7,t[_0x528acf(0x30e)]),v(0x8,e['ITransformService']),v(0x9,(0x0,t[_0x528acf(0x3ad)])(x))],D);let O=Le=class extends E{constructor(_0x17014e,_0x32250e,_0x46b3dc,_0x17c797,_0x4934be,_0x2fac22,_0x325635,_0x595237,_0x2f6b69,_0x43c4f5,_0x242770,_0x2722f3,_0x2353e3,_0x5c3bc8){const _0x432951=_0x528acf;super(_0x17014e,_0x32250e,null,_0x46b3dc,_0x17c797,_0x2f6b69,_0x2353e3,_0x2fac22,_0x5c3bc8),this[_0x432951(0x1d6)]=_0x4934be,this['_userManagerService']=_0x325635,this[_0x432951(0x320)]=_0x595237,this[_0x432951(0xfa)]=_0x43c4f5,this[_0x432951(0x414)]=_0x242770,this['_univerInstanceService']=_0x2722f3,g(this,_0x432951(0x1e4),_0x432951(0x271)),g(this,_0x432951(0x2f6),null),g(this,'_sendingTimer',null);}[_0x528acf(0x327)](_0x5cdc84){const _0x42f3c4=_0x528acf;return this[_0x42f3c4(0x37f)][_0x42f3c4(0x19e)](_0x5cdc84),this['_updateLocalCache'](),this;}[_0x528acf(0x211)](_0x444c1b){const _0x1382c7=_0x528acf;if(this[_0x1382c7(0x23d)](_0x444c1b))return this[_0x1382c7(0x403)](),this[_0x1382c7(0x1d6)][_0x1382c7(0x33d)](N,this[_0x1382c7(0x179)],this[_0x1382c7(0x191)],null,this['_pendingMutations'],null,[_0x444c1b],this['_handler']);try{let _0x35ec44=this[_0x1382c7(0x414)][_0x1382c7(0x2d4)](_0x444c1b,this[_0x1382c7(0x37f)]);if((0x0,e[_0x1382c7(0x18a)])(_0x35ec44)){let {c1Prime:_0x15ce32,m2Prime:_0xe7213b}=_0x35ec44;this[_0x1382c7(0x2ce)](_0x15ce32);let _0x40756f=this[_0x1382c7(0x1d6)][_0x1382c7(0x33d)](Le,this[_0x1382c7(0x179)],this[_0x1382c7(0x191)],_0xe7213b,this[_0x1382c7(0x34f)]);this[_0x1382c7(0x403)]();let _0x17a312=new Date()['getTime'](),_0x4d549b=this[_0x1382c7(0x2f6)]?Math['max'](this[_0x1382c7(0x2f6)]-_0x17a312,0x0):this[_0x1382c7(0x101)]();return _0x40756f[_0x1382c7(0x3f9)](_0x4d549b),_0x40756f;}throw _0x35ec44[_0x1382c7(0x2d2)];}catch(_0x5161ec){return this[_0x1382c7(0x320)][_0x1382c7(0x2d2)](_0x5161ec),this[_0x1382c7(0x3d2)](!0x1);}}[_0x528acf(0x2e0)](_0x11662f){const _0xee4d51=_0x528acf;if(_0x11662f[_0xee4d51(0x239)]<=this[_0xee4d51(0x181)]())return this;throw Error(_0xee4d51(0x3fb));}[_0x528acf(0x3f8)](){const _0x190bbc=_0x528acf;throw Error(_0x190bbc(0x18e));}[_0x528acf(0x2bc)](){return this;}['toggleOffline'](){const _0x477d06=_0x528acf;return this['_clearScheduledTask'](),this[_0x477d06(0x1d6)][_0x477d06(0x33d)](M,this[_0x477d06(0x179)],this[_0x477d06(0x191)],null,this[_0x477d06(0x37f)],this[_0x477d06(0x34f)]);}[_0x528acf(0x112)](){return this;}[_0x528acf(0x3f9)](_0x3bee0f){const _0x99cdd9=_0x528acf;let _0x3b8f59=_0x3bee0f??this[_0x99cdd9(0x101)]();this[_0x99cdd9(0x2f6)]=new Date()[_0x99cdd9(0x1ec)]()+_0x3b8f59,this['_sendingTimer']=setTimeout(()=>{const _0xebdfaa=_0x99cdd9;this[_0xebdfaa(0x403)]();let _0x2b2e23=null;switch(this['type']){case t[_0xebdfaa(0x274)][_0xebdfaa(0x2df)]:_0x2b2e23=w(this['_pendingMutations'],this[_0xebdfaa(0x179)],this['_univerInstanceService'],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x214)]:_0x2b2e23=this[_0xebdfaa(0x37f)][_0xebdfaa(0x1f6)](_0x2f6bab=>_0x2f6bab['id']===n[_0xebdfaa(0x1cd)]['id'])?Oe(this[_0xebdfaa(0x37f)],this['unitID'],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this['_userManagerService']):w(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this['_userManagerService']);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x111)]:_0x2b2e23=De(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x342)]:_0x2b2e23=Ee(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t['UniverInstanceType'][_0xebdfaa(0x1eb)]:_0x2b2e23=w(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this['_univerInstanceService'],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x15a)]:_0x2b2e23=w(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this['_univerInstanceService'],this['_revisionService'],this[_0xebdfaa(0x2ae)]);break;default:throw Error(_0xebdfaa(0x15f)+this[_0xebdfaa(0x191)]+_0xebdfaa(0x119));}let {changeset:_0x59fff6,pendingMutations:_0x269cab}=_0x2b2e23;this[_0xebdfaa(0x34f)][_0xebdfaa(0x24a)](_0x59fff6);let _0x8a8076=_0x269cab[_0xebdfaa(0x347)]?this[_0xebdfaa(0x1d6)][_0xebdfaa(0x33d)](A,this[_0xebdfaa(0x179)],this['type'],_0x59fff6,_0x269cab,this[_0xebdfaa(0x34f)],void 0x0):this[_0xebdfaa(0x1d6)][_0xebdfaa(0x33d)](k,this[_0xebdfaa(0x179)],this['type'],_0x59fff6,this[_0xebdfaa(0x34f)]);_0x8a8076['_updateLocalCache'](),this['_handler'][_0xebdfaa(0x379)](this,_0x8a8076);},_0x3b8f59);}[_0x528acf(0x101)](){const _0x27b14c=_0x528acf;let _0x1c75b3=this[_0x27b14c(0xfa)][_0x27b14c(0x25f)](m);return(_0x1c75b3==null?void 0x0:_0x1c75b3[_0x27b14c(0x3f6)])??0x7d0;}[_0x528acf(0x2a4)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x528acf(0x403)](){const _0x3b85d7=_0x528acf;this[_0x3b85d7(0x395)]!=null&&(clearTimeout(this[_0x3b85d7(0x395)]),this[_0x3b85d7(0x395)]=null);}['_onConflict'](_0x4b7b24){const _0x9963c6=_0x528acf;return this['_clearScheduledTask'](),this[_0x9963c6(0x1d6)][_0x9963c6(0x33d)](j,this['unitID'],this[_0x9963c6(0x191)],null,this[_0x9963c6(0x37f)],this[_0x9963c6(0x34f)],_0x4b7b24);}};O=Le=y([v(0x4,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x5,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x6,(0x0,t['Inject'])(t[_0x528acf(0x1a1)])),v(0x7,t[_0x528acf(0x30e)]),v(0x8,t[_0x528acf(0x14e)]),v(0x9,t['IConfigService']),v(0xa,e[_0x528acf(0x27c)]),v(0xb,t[_0x528acf(0x3a7)]),v(0xc,t[_0x528acf(0x1fd)]),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],O);let k=Re=class extends E{constructor(_0x3b2b4a,_0x23dacc,_0x598d76,_0x399965,_0x118d0d,_0xe2bfe5,_0xd86ed2,_0x536eab,_0x1f8c66,_0x53efc0,_0x8cb309){const _0x1fd1e3=_0x528acf;super(_0x3b2b4a,_0x23dacc,_0x598d76,[],_0x399965,_0xd86ed2,_0x53efc0,_0xe2bfe5,_0x8cb309),this[_0x1fd1e3(0x1d6)]=_0x118d0d,this[_0x1fd1e3(0x320)]=_0x536eab,this['_transformService']=_0x1f8c66,g(this,_0x1fd1e3(0x1e4),_0x1fd1e3(0x3d9)),g(this,'_resendTimeout',0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x1fd1e3(0x13e),void 0x0),g(this,_0x1fd1e3(0x182),void 0x0);}[_0x528acf(0x327)](_0x4ee19b){const _0x5b8065=_0x528acf;this['_clearScheduledTask']();let _0x33b138=this['_injector'][_0x5b8065(0x33d)](A,this['unitID'],this[_0x5b8065(0x191)],this[_0x5b8065(0x1f2)],[_0x4ee19b],this[_0x5b8065(0x34f)],this[_0x5b8065(0x13e)]);return _0x33b138[_0x5b8065(0x1a0)](),_0x33b138;}['onRemoteChangeset'](_0x2aa797){const _0x196910=_0x528acf;if(this[_0x196910(0x23d)](_0x2aa797))return this[_0x196910(0x403)](),this[_0x196910(0x1d6)][_0x196910(0x33d)](N,this[_0x196910(0x179)],this[_0x196910(0x191)],this['_awaitingChangeset'],[],null,[_0x2aa797],this['_handler']);try{let _0x473bdd=this['_transformService'][_0x196910(0x10d)]([_0x2aa797],[this[_0x196910(0x1f2)]],!0x1);if((0x0,e[_0x196910(0x40a)])(_0x473bdd)){let {c1Prime:_0x5d32ff,c2Prime:_0x84ef68}=_0x473bdd;this[_0x196910(0x2ce)](_0x5d32ff[0x0]),_0x84ef68[0x0][_0x196910(0x306)]=this[_0x196910(0x181)](),this[_0x196910(0x403)]();let _0x2be3a4=this['_injector']['createInstance'](Re,this[_0x196910(0x179)],this[_0x196910(0x191)],_0x84ef68[0x0],this[_0x196910(0x34f)]);return _0x2be3a4[_0x196910(0x1a0)](),_0x2be3a4;}throw _0x473bdd['error'];}catch(_0x3daaec){return this['_logService'][_0x196910(0x2d2)](_0x3daaec),this[_0x196910(0x3d2)](!0x1);}}[_0x528acf(0x2e0)](_0x47aeab){const _0x1438c6=_0x528acf;this[_0x1438c6(0x403)]();let _0x29e265=this[_0x1438c6(0x423)][_0x1438c6(0x1b2)](this[_0x1438c6(0x179)]);if(_0x47aeab['revision']<=_0x29e265)return this;if(this[_0x1438c6(0x23d)](_0x47aeab))return this[_0x1438c6(0x1d6)][_0x1438c6(0x33d)](N,this[_0x1438c6(0x179)],this['type'],this[_0x1438c6(0x1f2)],[],_0x47aeab[_0x1438c6(0x239)],[],this[_0x1438c6(0x34f)]);this[_0x1438c6(0x41b)]();let _0x40480f=this[_0x1438c6(0x1d6)][_0x1438c6(0x33d)](D,this[_0x1438c6(0x179)],this['type'],this['_handler']);return _0x40480f[_0x1438c6(0x1a0)](),_0x40480f;}[_0x528acf(0x3f8)](_0x248f9f){const _0x3502bb=_0x528acf;return this[_0x3502bb(0x3d2)](!!(_0x248f9f!=null&&_0x248f9f['isPermissionRej']));}['onRemoteRetry'](_0x1696a3){const _0x1554f1=_0x528acf;return this['_maxTotalRetryTimeout']>He?this[_0x1554f1(0x37a)]():(this['_resendTimer']=Ie(this[_0x1554f1(0x3c1)],{'timeout':this['_resendTimeout'],'reqId':_0x1696a3[_0x1554f1(0x17c)]}),this['_sender']=this[_0x1554f1(0x13e)][_0x1554f1(0x367)](({reqId:_0x5c74b8,timeout:_0x52114c})=>{const _0x149b5e=_0x1554f1;this[_0x149b5e(0x412)](_0x5c74b8,_0x52114c);}),this);}[_0x528acf(0x37a)](){const _0x36cebf=_0x528acf;return this[_0x36cebf(0x403)](),this[_0x36cebf(0x1d6)][_0x36cebf(0x33d)](M,this['unitID'],this[_0x36cebf(0x191)],this[_0x36cebf(0x1f2)],[],this[_0x36cebf(0x34f)]);}[_0x528acf(0x112)](){return this;}[_0x528acf(0x2a4)](){const _0x4e61de=_0x528acf;this['_handler'][_0x4e61de(0x24a)](this[_0x4e61de(0x1f2)]);}['_onConflict'](_0x4693fe){const _0x156d05=_0x528acf;return this[_0x156d05(0x403)](),this['_injector'][_0x156d05(0x33d)](j,this['unitID'],this['type'],this[_0x156d05(0x1f2)],[],this['_handler'],_0x4693fe);}[_0x528acf(0x412)](_0xb408e4,_0x237bec){const _0x4575a0=_0x528acf;var _0x38d28a;_0xb408e4===((_0x38d28a=this[_0x4575a0(0x1f2)])==null?void 0x0:_0x38d28a['reqId'])&&(this['resend'](),this[_0x4575a0(0x3c1)]=_0x237bec===0x0?0x3e8:Math[_0x4575a0(0x270)](_0x237bec*0x2,Ve),this[_0x4575a0(0x124)]+=this[_0x4575a0(0x3c1)]);}[_0x528acf(0x403)](){const _0x2216e3=_0x528acf;var _0x5b2bbc;(_0x5b2bbc=this[_0x2216e3(0x182)])==null||_0x5b2bbc[_0x2216e3(0x282)](),this['_resendTimeout']=0x0,this[_0x2216e3(0x124)]=0x0;}};k=Re=y([v(0x4,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x5,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x6,t['ICommandService']),v(0x7,t[_0x528acf(0x30e)]),v(0x8,e[_0x528acf(0x27c)]),v(0x9,t[_0x528acf(0x1fd)]),v(0xa,(0x0,t[_0x528acf(0x3ad)])(x))],k);let A=ze=class extends E{constructor(_0x131c11,_0x1a7a17,_0x495180,_0x3a4264,_0x5450a4,_0x465ed8,_0x1e9046,_0x26a25b,_0x2a9b7b,_0x2253e4,_0x271084,_0x537b94,_0x641816){const _0x103a25=_0x528acf;super(_0x131c11,_0x1a7a17,_0x495180,_0x3a4264,_0x5450a4,_0x2a9b7b,_0x537b94,_0x26a25b,_0x641816),this[_0x103a25(0x1d6)]=_0x1e9046,this[_0x103a25(0x320)]=_0x2253e4,this[_0x103a25(0x414)]=_0x271084,this['localCacheService']=_0x641816,g(this,_0x103a25(0x1e4),_0x103a25(0x100)),g(this,_0x103a25(0x3c1),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x103a25(0x13e),void 0x0),g(this,_0x103a25(0x182),void 0x0),_0x465ed8&&(this[_0x103a25(0x13e)]=_0x465ed8,this[_0x103a25(0x182)]=this[_0x103a25(0x13e)][_0x103a25(0x367)](({reqId:_0x526e96,timeout:_0x2c5e1f})=>{this['_resendWithTimeout'](_0x526e96,_0x2c5e1f);}));}[_0x528acf(0x327)](_0x1e274e){const _0x23e1ea=_0x528acf;return this[_0x23e1ea(0x37f)]['push'](_0x1e274e),this;}[_0x528acf(0x211)](_0x63bc9f){const _0x57563c=_0x528acf;if(this[_0x57563c(0x23d)](_0x63bc9f))return this[_0x57563c(0x403)](),this[_0x57563c(0x1d6)][_0x57563c(0x33d)](N,this['unitID'],this['type'],this[_0x57563c(0x1f2)],this[_0x57563c(0x37f)],null,[_0x63bc9f],this['_handler']);try{let _0x5cfba2=this[_0x57563c(0x414)][_0x57563c(0x10d)]([_0x63bc9f],[this[_0x57563c(0x1f2)]],!0x1);if((0x0,e[_0x57563c(0x40a)])(_0x5cfba2)){let {c1Prime:_0x2181ea,c2Prime:_0x22ecf8}=_0x5cfba2,_0x2c8800=this[_0x57563c(0x414)][_0x57563c(0x2d4)](_0x2181ea[0x0],this[_0x57563c(0x37f)]);if((0x0,e[_0x57563c(0x18a)])(_0x2c8800)){let {c1Prime:_0x5549bd,m2Prime:_0x52bf1f}=_0x2c8800;return this[_0x57563c(0x2ce)](_0x5549bd),_0x22ecf8[0x0][_0x57563c(0x306)]=this[_0x57563c(0x181)](),this[_0x57563c(0x403)](),this[_0x57563c(0x1d6)][_0x57563c(0x33d)](ze,this['unitID'],this[_0x57563c(0x191)],_0x22ecf8[0x0],_0x52bf1f,this[_0x57563c(0x34f)],void 0x0);}throw _0x2c8800[_0x57563c(0x2d2)];}throw _0x5cfba2[_0x57563c(0x2d2)];}catch(_0x4eb764){return this[_0x57563c(0x320)][_0x57563c(0x2d2)](_0x4eb764),this[_0x57563c(0x3d2)](!0x1);}}['onRemoteAck'](_0x3419e0){const _0x3080f6=_0x528acf;this[_0x3080f6(0x403)]();let _0x30e319=this[_0x3080f6(0x181)]();if(_0x3419e0['revision']<=_0x30e319)return this;if(this[_0x3080f6(0x23d)](_0x3419e0))return this['_injector'][_0x3080f6(0x33d)](N,this[_0x3080f6(0x179)],this[_0x3080f6(0x191)],this[_0x3080f6(0x1f2)],this[_0x3080f6(0x37f)],_0x3419e0[_0x3080f6(0x239)],[],this['_handler']);this[_0x3080f6(0x41b)]();let _0x1b5211=this[_0x3080f6(0x1d6)]['createInstance'](O,this['unitID'],this['type'],this[_0x3080f6(0x37f)],this[_0x3080f6(0x34f)]);return _0x1b5211[_0x3080f6(0x3f9)](),_0x1b5211[_0x3080f6(0x1a0)](),_0x1b5211;}['onRemoteRej'](_0x2b16ab){const _0x469ce9=_0x528acf;return this[_0x469ce9(0x3d2)](!!(_0x2b16ab!=null&&_0x2b16ab[_0x469ce9(0x30b)]));}['onRemoteRetry'](_0x5dc763){const _0x4d9e85=_0x528acf;return this[_0x4d9e85(0x124)]>He?this[_0x4d9e85(0x37a)]():(this[_0x4d9e85(0x13e)]=Ie(this['_resendTimeout'],{'timeout':this[_0x4d9e85(0x3c1)],'reqId':_0x5dc763[_0x4d9e85(0x17c)]}),this[_0x4d9e85(0x182)]=this['_resendTimer']['subscribe'](({reqId:_0x24b137,timeout:_0x265510})=>{const _0x12611b=_0x4d9e85;this[_0x12611b(0x412)](_0x24b137,_0x265510);}),this);}[_0x528acf(0x37a)](){const _0x399044=_0x528acf;return this[_0x399044(0x403)](),this['_injector'][_0x399044(0x33d)](M,this[_0x399044(0x179)],this[_0x399044(0x191)],this[_0x399044(0x1f2)],this[_0x399044(0x37f)],this['_handler']);}[_0x528acf(0x112)](){return this;}[_0x528acf(0x2a4)](){const _0x4d1289=_0x528acf;this[_0x4d1289(0x34f)][_0x4d1289(0x24a)](this[_0x4d1289(0x1f2)]);}[_0x528acf(0x3d2)](_0x62f3ed){const _0x28fdd1=_0x528acf;return this[_0x28fdd1(0x403)](),this[_0x28fdd1(0x1d6)][_0x28fdd1(0x33d)](j,this[_0x28fdd1(0x179)],this[_0x28fdd1(0x191)],null,this[_0x28fdd1(0x37f)],this['_handler'],_0x62f3ed);}[_0x528acf(0x412)](_0x134499,_0x5efc84){const _0x1d132e=_0x528acf;var _0x13823a;_0x134499===((_0x13823a=this[_0x1d132e(0x1f2)])==null?void 0x0:_0x13823a[_0x1d132e(0x17c)])&&(this[_0x1d132e(0x2a4)](),this[_0x1d132e(0x3c1)]=_0x5efc84===0x0?0x3e8:Math[_0x1d132e(0x270)](_0x5efc84*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0x1d132e(0x3c1)]);}[_0x528acf(0x403)](){const _0x1b6860=_0x528acf;var _0x31c09;(_0x31c09=this[_0x1b6860(0x182)])==null||_0x31c09['unsubscribe'](),this[_0x1b6860(0x3c1)]=0x0,this[_0x1b6860(0x124)]=0x0;}};A=ze=y([v(0x6,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x8,t[_0x528acf(0x14e)]),v(0x9,t['ILogService']),v(0xa,e['ITransformService']),v(0xb,t['IUndoRedoService']),v(0xc,(0x0,t[_0x528acf(0x3ad)])(x))],A);let j=class extends E{constructor(_0x511a09,_0x3b5d97,_0x215ee5,_0x3af35d,_0x3498db,_0x7f7e36=!0x1,_0x19392d,_0x8f3bc0,_0x3d1ea3,_0x1c1ae8,_0x441ba8,_0x27070f,_0x2fbb15){const _0xd2b78e=_0x528acf;super(_0x511a09,_0x3b5d97,_0x215ee5,_0x3af35d,_0x3498db,_0x8f3bc0,_0x3d1ea3,_0x1c1ae8,_0x2fbb15),this['_isPermissionRej']=_0x7f7e36,this[_0xd2b78e(0x31d)]=_0x19392d,this[_0xd2b78e(0x20e)]=_0x441ba8,this[_0xd2b78e(0x102)]=_0x27070f,this[_0xd2b78e(0x322)]=_0x2fbb15,g(this,_0xd2b78e(0x1e4),_0xd2b78e(0x162)),this['_showConflictNotification'](),this[_0xd2b78e(0x252)](),this[_0xd2b78e(0x26e)]();}[_0x528acf(0x327)](){return this;}[_0x528acf(0x211)](){return this;}[_0x528acf(0x2e0)](){return this;}[_0x528acf(0x3f8)](){return this;}[_0x528acf(0x2bc)](){return this;}['toggleOffline'](){return this;}[_0x528acf(0x112)](){return this;}[_0x528acf(0x2a4)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x528acf(0x252)](){const _0x4362d9=_0x528acf;var _0x3f9e29,_0x37dfc6,_0x3c4e4b;(_0x3f9e29=this['_localCacheService'])==null||(_0x37dfc6=_0x3f9e29[_0x4362d9(0x34b)])==null||(_0x37dfc6=_0x37dfc6['call'](_0x3f9e29,this[_0x4362d9(0x179)],_0x4362d9(0x162)))==null||_0x37dfc6[_0x4362d9(0x3ed)](()=>void 0x0),(_0x3c4e4b=this[_0x4362d9(0x31e)])==null||_0x3c4e4b[_0x4362d9(0x227)](this[_0x4362d9(0x179)],this[_0x4362d9(0x191)],null,[]);}[_0x528acf(0x34c)](){const _0x2a0626=_0x528acf;this[_0x2a0626(0x30d)]?this[_0x2a0626(0x102)][_0x2a0626(0x237)]({'id':_0x2a0626(0x147)}):this[_0x2a0626(0x102)][_0x2a0626(0x237)]({'id':'CONFLICT'});}[_0x528acf(0x26e)](){const _0x5bd1f=_0x528acf;this[_0x5bd1f(0x31d)]['updatePermissionPoint'](new r[(_0x5bd1f(0x3bc))](this[_0x5bd1f(0x179)])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x352)])),v(0x7,t[_0x528acf(0x14e)]),v(0x8,t[_0x528acf(0x1fd)]),v(0x9,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0xa,(0x0,t['Inject'])(t[_0x528acf(0x199)])),v(0xb,(0x0,t[_0x528acf(0x17f)])(_)),v(0xc,(0x0,t['Optional'])(x))],j);let M=class extends E{constructor(_0xcc0f4,_0x30fffe,_0x1fa270,_0x5e2744,_0x2e96ec,_0x215094,_0x241d93,_0xccbfac,_0x163da9,_0x24e4e6){const _0x8b021c=_0x528acf;super(_0xcc0f4,_0x30fffe,_0x1fa270,_0x5e2744,_0x2e96ec,_0xccbfac,_0x163da9,_0x241d93,_0x24e4e6),this[_0x8b021c(0x1d6)]=_0x215094,g(this,_0x8b021c(0x1e4),'offline');}['appendMutation'](_0x5d016d){const _0x5efdc4=_0x528acf;return this[_0x5efdc4(0x37f)][_0x5efdc4(0x19e)](_0x5d016d),this[_0x5efdc4(0x1a0)](),this;}[_0x528acf(0x211)](_0x329561){const _0x4a7062=_0x528acf;throw Error(_0x4a7062(0x217));}[_0x528acf(0x2e0)](){const _0x2e9d93=_0x528acf;throw Error(_0x2e9d93(0x1ee));}[_0x528acf(0x3f8)](){const _0x20c931=_0x528acf;throw Error(_0x20c931(0x2dd));}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x528acf(0x112)](){const _0x5187fd=_0x528acf;let {_injector:_0x2fe556,_pendingMutations:_0x31d5e1,_awaitingChangeset:_0x325ca5,unitID:_0x186132,_handler:_0x866c5b,type:_0x207062}=this,_0x15fca6=Ue(_0x2fe556,_0x186132,_0x207062,_0x325ca5,_0x31d5e1,_0x866c5b);return _0x15fca6 instanceof O?_0x15fca6['_schedule']():(_0x15fca6 instanceof A||_0x15fca6 instanceof k)&&_0x15fca6[_0x5187fd(0x2a4)](),_0x15fca6;}[_0x528acf(0x2a4)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};M=y([v(0x5,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x6,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x7,t['ICommandService']),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t['Optional'])(x))],M);let N=class extends E{constructor(_0x4b2a38,_0x4ac808,_0x1dd280,_0x3ac3d4,_0x4a3ddb,_0x581df2,_0x33b35c,_0x1c7398,_0x402f25,_0x2a2c3f,_0x2ba46d,_0x3e069e,_0x53e151,_0x2f4a6f){const _0x4b1399=_0x528acf;super(_0x4b2a38,_0x4ac808,_0x1dd280,_0x3ac3d4,_0x33b35c,_0x2ba46d,_0x3e069e,_0x402f25,_0x2f4a6f),this['_acknowledgedAwaitingRevision']=_0x4a3ddb,this[_0x4b1399(0x357)]=_0x581df2,this[_0x4b1399(0x1d6)]=_0x1c7398,this[_0x4b1399(0x320)]=_0x2a2c3f,this[_0x4b1399(0x414)]=_0x53e151,this[_0x4b1399(0x322)]=_0x2f4a6f,g(this,_0x4b1399(0x1e4),_0x4b1399(0x1a4));}[_0x528acf(0x397)](_0x3bbefd){const _0x22ddaf=_0x528acf;try{if(this[_0x22ddaf(0x22a)](_0x3bbefd)['missingChangesets'])throw Error(_0x22ddaf(0x424));if(this[_0x22ddaf(0x22a)]([...this[_0x22ddaf(0x357)]][_0x22ddaf(0x3a9)]((_0x3a6c13,_0x4d4103)=>_0x3a6c13[_0x22ddaf(0x239)]-_0x4d4103[_0x22ddaf(0x239)]))[_0x22ddaf(0x21b)])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x22ddaf(0x34f)][_0x22ddaf(0x321)]({'from':this[_0x22ddaf(0x181)](),'to':0x0}),this;let _0x40bd47=this['_awaitingChangeset'],_0x1e41f8=this[_0x22ddaf(0x37f)],_0x1d07d9;if(_0x40bd47&&_0x1e41f8['length']!==0x0)_0x1d07d9=this['_injector'][_0x22ddaf(0x33d)](A,this[_0x22ddaf(0x179)],this[_0x22ddaf(0x191)],_0x40bd47,_0x1e41f8,this[_0x22ddaf(0x34f)],void 0x0);else{if(_0x40bd47&&_0x1e41f8[_0x22ddaf(0x347)]===0x0)_0x40bd47[_0x22ddaf(0x306)]=this[_0x22ddaf(0x181)](),_0x1d07d9=this[_0x22ddaf(0x1d6)][_0x22ddaf(0x33d)](k,this['unitID'],this[_0x22ddaf(0x191)],_0x40bd47,this['_handler']);else{if(_0x1e41f8[_0x22ddaf(0x347)]!==0x0){let _0x584eff=this[_0x22ddaf(0x1d6)][_0x22ddaf(0x33d)](O,this[_0x22ddaf(0x179)],this[_0x22ddaf(0x191)],_0x1e41f8,this[_0x22ddaf(0x34f)]);_0x584eff[_0x22ddaf(0x3f9)](),_0x1d07d9=_0x584eff;}else _0x1d07d9=this['_injector'][_0x22ddaf(0x33d)](D,this['unitID'],this[_0x22ddaf(0x191)],this['_handler']);}}return _0x1d07d9[_0x22ddaf(0x1a0)](),_0x1d07d9;}catch(_0x378d75){return this['_logService'][_0x22ddaf(0x2d2)](_0x22ddaf(0x169),'failed\x20to\x20apply\x20missed\x20changesets!',_0x378d75),this[_0x22ddaf(0x1d6)][_0x22ddaf(0x33d)](j,this[_0x22ddaf(0x179)],this['type'],this['_awaitingChangeset'],this[_0x22ddaf(0x37f)],this[_0x22ddaf(0x34f)],!0x1);}}[_0x528acf(0x22a)](_0x20699c){const _0x477acb=_0x528acf;this[_0x477acb(0x1c6)]();for(let _0x140729=0x0;_0x140729<_0x20699c[_0x477acb(0x347)];_0x140729++){let _0x28ac65=_0x20699c[_0x140729],_0xe8f6f=this[_0x477acb(0x181)]();if(!(_0x28ac65['revision']<=_0xe8f6f)){if(_0x28ac65[_0x477acb(0x239)]>_0xe8f6f+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x28ac65)){this[_0x477acb(0x231)]();continue;}this[_0x477acb(0x407)](_0x28ac65),this[_0x477acb(0x1c6)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x455624){const _0x2c8d66=_0x528acf;let _0x2336df=_0x455624,_0xd9712c=this[_0x2c8d66(0x1f2)];if(_0xd9712c){let _0x4179fd=this[_0x2c8d66(0x414)][_0x2c8d66(0x10d)]([_0x455624],[_0xd9712c],!0x1);if(!(0x0,e[_0x2c8d66(0x40a)])(_0x4179fd))throw _0x4179fd['error'];_0x2336df=_0x4179fd[_0x2c8d66(0x31b)][0x0],_0xd9712c=_0x4179fd[_0x2c8d66(0x258)][0x0];}let _0x3b9db5=this[_0x2c8d66(0x37f)];if(_0x3b9db5[_0x2c8d66(0x347)]){let _0x31fca3=this[_0x2c8d66(0x414)][_0x2c8d66(0x2d4)](_0x2336df,_0x3b9db5);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x31fca3))throw _0x31fca3[_0x2c8d66(0x2d2)];_0x2336df=_0x31fca3['c1Prime'],_0x3b9db5=_0x31fca3[_0x2c8d66(0x3a6)];}this['_executeRemoteChangeset'](_0x2336df),_0xd9712c&&(_0xd9712c[_0x2c8d66(0x306)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0xd9712c,this[_0x2c8d66(0x37f)]=_0x3b9db5;}[_0x528acf(0x1c6)](){const _0x24a05d=_0x528acf;if(!this[_0x24a05d(0x1f2)]||this[_0x24a05d(0x2de)]==null)return;let _0x131c4e=this[_0x24a05d(0x181)]();if(this[_0x24a05d(0x2de)]<=_0x131c4e)throw Error(_0x24a05d(0x370)+this[_0x24a05d(0x2de)]+'.');this[_0x24a05d(0x2de)]===_0x131c4e+0x1&&this['_acknowledgeAwaiting']();}[_0x528acf(0x231)](){const _0x2a555e=_0x528acf;this[_0x2a555e(0x41b)](),this[_0x2a555e(0x1f2)]=null,this[_0x2a555e(0x2de)]=null;}[_0x528acf(0x3b7)](_0x452a63){const _0x2c2195=_0x528acf;let _0x2c8db4=this['_awaitingChangeset'];return!_0x2c8db4||!_0x2c8db4[_0x2c2195(0x2c9)]||_0x2c8db4[_0x2c2195(0x17c)]===null||_0x2c8db4[_0x2c2195(0x17c)]===void 0x0?!0x1:_0x452a63['unitID']===_0x2c8db4['unitID']&&_0x452a63[_0x2c2195(0x2c9)]===_0x2c8db4[_0x2c2195(0x2c9)]&&_0x452a63[_0x2c2195(0x17c)]===_0x2c8db4['reqId'];}[_0x528acf(0x2a4)](){const _0x41328b=_0x528acf;throw Error(_0x41328b(0x3c6));}[_0x528acf(0x327)](_0x17c9e3){const _0x26f902=_0x528acf;return this[_0x26f902(0x37f)][_0x26f902(0x19e)](_0x17c9e3),this;}['onRemoteChangeset'](_0x58e257){const _0x28b911=_0x528acf;return this[_0x28b911(0x357)]['push'](_0x58e257),this;}['onRemoteAck'](_0x3484ee){const _0x4c5b48=_0x528acf;if(this[_0x4c5b48(0x1f2)]){let _0x26ad82=this['_getCurrentRevision']();return _0x3484ee['revision']<=_0x26ad82||(_0x26ad82+0x1===_0x3484ee[_0x4c5b48(0x239)]?(this[_0x4c5b48(0x41b)](),this[_0x4c5b48(0x1f2)]=null,this[_0x4c5b48(0x2de)]=null):this[_0x4c5b48(0x2de)]=_0x3484ee['revision']),this;}if(_0x3484ee[_0x4c5b48(0x239)]<=this[_0x4c5b48(0x181)]())return this;throw Error(_0x4c5b48(0x3bf));}[_0x528acf(0x3f8)](_0x52c45a){const _0x2ce7ed=_0x528acf;return this[_0x2ce7ed(0x3d2)](!!(_0x52c45a!=null&&_0x52c45a[_0x2ce7ed(0x30b)]));}['onRemoteRetry'](){return this;}[_0x528acf(0x37a)](){const _0x56d628=_0x528acf;return this[_0x56d628(0x1d6)]['createInstance'](M,this[_0x56d628(0x179)],this[_0x56d628(0x191)],this[_0x56d628(0x1f2)],this['_pendingMutations'],this[_0x56d628(0x34f)]);}[_0x528acf(0x112)](){return this;}['_onConflict'](_0x46eb91){const _0x2eb1f2=_0x528acf;return this['_injector'][_0x2eb1f2(0x33d)](j,this['unitID'],this[_0x2eb1f2(0x191)],this[_0x2eb1f2(0x1f2)],this[_0x2eb1f2(0x37f)],this['_handler'],_0x46eb91);}};N=y([v(0x7,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x8,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x1fd)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],N);function Ue(_0x34ec82,_0x21ef8b,_0x5aabe4,_0x2752df,_0x487b64,_0x216b4a){const _0x2e175a=_0x528acf;return _0x2752df&&_0x487b64[_0x2e175a(0x347)]?_0x34ec82[_0x2e175a(0x33d)](A,_0x21ef8b,_0x5aabe4,_0x2752df,_0x487b64,_0x216b4a,void 0x0):_0x2752df?_0x34ec82['createInstance'](k,_0x21ef8b,_0x5aabe4,_0x2752df,_0x216b4a):_0x487b64[_0x2e175a(0x347)]?_0x34ec82[_0x2e175a(0x33d)](O,_0x21ef8b,_0x5aabe4,_0x487b64,_0x216b4a):_0x34ec82['createInstance'](D,_0x21ef8b,_0x5aabe4,_0x216b4a);}let P=class extends t[_0x528acf(0x1b1)]{get[_0x528acf(0x266)](){return this['_state'];}constructor(_0x3952ca,_0x1fcb7b,_0x2ddfbe,_0x4efa62,_0x21d27d,_0x77d175,_0x569f26,_0x49473e,_0x1ade82,_0x1aa611,_0x201c91,_0x58d997,_0x140a8a,_0x170557){const _0x149e5c=_0x528acf;super(),this['unitID']=_0x3952ca,this[_0x149e5c(0x1ba)]=_0x1fcb7b,this[_0x149e5c(0x1af)]=_0x2ddfbe,this[_0x149e5c(0x1d6)]=_0x4efa62,this[_0x149e5c(0x2f9)]=_0x21d27d,this[_0x149e5c(0x20e)]=_0x77d175,this['_revisionService']=_0x569f26,this[_0x149e5c(0x1ed)]=_0x49473e,this[_0x149e5c(0x416)]=_0x1ade82,this[_0x149e5c(0x320)]=_0x1aa611,this[_0x149e5c(0x28d)]=_0x201c91,this['_permissionService']=_0x58d997,this['_singleActiveUnitService']=_0x140a8a,this[_0x149e5c(0x31e)]=_0x170557,g(this,_0x149e5c(0x22c),new i['BehaviorSubject'](null)),g(this,'state$',this[_0x149e5c(0x22c)][_0x149e5c(0x1db)]()),g(this,'_state',void 0x0),g(this,_0x149e5c(0x2f3),!0x1),g(this,'_changesetSessionId',''),g(this,'_changesetReqId',0x0),g(this,_0x149e5c(0x422),this['state$']['pipe']((0x0,i['map'])(_0x10c455=>_0x10c455?_0x10c455[_0x149e5c(0x1e4)]:'offline'),(0x0,i[_0x149e5c(0x368)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,'_transitionLocked',!0x1),g(this,_0x149e5c(0x10c),[]);}async[_0x528acf(0x3c0)](){const _0x136595=_0x528acf;if(this[_0x136595(0x266)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x136595(0x250)]();}[_0x528acf(0x35f)](){const _0x187658=_0x528acf;return this[_0x187658(0x2f3)]=!0x0,(0x0,t[_0x187658(0x3dc)])(()=>{const _0xebed32=_0x187658;this[_0xebed32(0x2f3)]=!0x1,this[_0xebed32(0x23f)]();});}['onLocalMutation'](_0x4a8278){const _0x40c80c=_0x528acf;this[_0x40c80c(0x103)](_0x4a8278);}['_updateState'](_0x1f2201){const _0x39ceb0=_0x528acf;this[_0x39ceb0(0x203)]=_0x1f2201,this['_state$'][_0x39ceb0(0x307)](_0x1f2201);}async['_init'](){const _0xa376c7=_0x528acf;if(this[_0xa376c7(0x391)](await this[_0xa376c7(0x32e)]()),this['_singleActiveUnitService']){var _0x4beee8;(_0x4beee8=this['_singleActiveUnitService'])==null||_0x4beee8[_0xa376c7(0x230)](this[_0xa376c7(0x179)]),this[_0xa376c7(0x3a2)](this[_0xa376c7(0x389)][_0xa376c7(0x319)](this[_0xa376c7(0x179)])['subscribe'](_0x1f30cd=>{const _0x51b8e0=_0xa376c7;this['_logService'][_0x51b8e0(0x264)](_0x51b8e0(0x3cb),_0x51b8e0(0x232),_0x1f30cd),_0x1f30cd===0x1?(this[_0x51b8e0(0x1ed)]['emitEvent']({'id':_0x51b8e0(0x17a)}),this[_0x51b8e0(0x31d)][_0x51b8e0(0x3e8)](new r[(_0x51b8e0(0x3bc))](this['unitID'])['id'],!0x1),this[_0x51b8e0(0x31d)][_0x51b8e0(0x213)](!0x1)):(this['_permissionService']['updatePermissionPoint'](new r[(_0x51b8e0(0x3bc))](this['unitID'])['id'],!0x0),this[_0x51b8e0(0x31d)][_0x51b8e0(0x213)](!0x0));}));}let _0x4e208c=!0x1;return this['disposeWithMe'](this[_0xa376c7(0x1ba)][_0xa376c7(0x341)][_0xa376c7(0x367)](_0x5d5426=>{const _0x4ee27f=_0xa376c7;_0x5d5426===0x3?this[_0x4ee27f(0x21d)](_0x4e208c):_0x5d5426===0x2&&(_0x4e208c=!0x0,this[_0x4ee27f(0x3e4)]());})),this[_0xa376c7(0x3a2)](this['session']['event$'][_0xa376c7(0x367)](_0x1ae289=>{const _0x3a46e7=_0xa376c7;try{switch(_0x1ae289[_0x3a46e7(0x1f0)]){case e[_0x3a46e7(0x330)][_0x3a46e7(0x173)]:this[_0x3a46e7(0x228)]((0x0,e[_0x3a46e7(0x1f5)])(_0x1ae289[_0x3a46e7(0x325)]));break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x41f)]:this[_0x3a46e7(0x2f4)](_0x1ae289[_0x3a46e7(0x325)]);break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x26c)]:this['_onRemoteRejected']();break;case e['CollaborationEvent'][_0x3a46e7(0x2bf)]:this[_0x3a46e7(0x339)](_0x1ae289[_0x3a46e7(0x325)]);break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x40f)]:this[_0x3a46e7(0x188)](_0x1ae289[_0x3a46e7(0x325)]['changesets'][_0x3a46e7(0x1f4)](_0x1c9e5d=>(0x0,e[_0x3a46e7(0x1f5)])(_0x1c9e5d)));break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x426)]:this[_0x3a46e7(0x2ca)]({'isPermissionRej':!0x0});break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x11f)]:break;}}catch(_0x46dbb7){throw console[_0x3a46e7(0x2d2)](_0x3a46e7(0x332),_0x46dbb7),_0x46dbb7;}})),this['_state'];}[_0x528acf(0x11e)](){const _0x114f74=_0x528acf;this[_0x114f74(0x222)]=!0x1;}[_0x528acf(0x2d5)](){const _0x977688=_0x528acf;if(this['_transitionLocked'])throw Error(_0x977688(0x1ae));this[_0x977688(0x222)]=!0x0;}['_onLocalMutation'](_0x40e90c){const _0x333104=_0x528acf;this['_lockTransition'](),this[_0x333104(0x391)](this['_state']['appendMutation'](_0x40e90c)),this['_unlockTransition']();}[_0x528acf(0x228)](_0x1db831){const _0x537de6=_0x528acf;if(!(_0x1db831[_0x537de6(0x239)]<=this[_0x537de6(0x423)][_0x537de6(0x1b2)](this[_0x537de6(0x179)]))){if(this[_0x537de6(0x2f3)]){this[_0x537de6(0x10c)][_0x537de6(0x19e)](_0x1db831);return;}this[_0x537de6(0x2d6)](_0x1db831);}}['_exhaustRemoteChangesetQueue'](){const _0x234b40=_0x528acf;this['_remoteChangesetQueue'][_0x234b40(0x2d9)](_0x37521c=>this['_applyRemoteChangeset'](_0x37521c)),this[_0x234b40(0x10c)]=[];}[_0x528acf(0x2d6)](_0x4bae0f){const _0xa91aa0=_0x528acf;let _0x4e22c3=this[_0xa91aa0(0x2f9)][_0xa91aa0(0x13c)][_0xa91aa0(0x3c2)](this[_0xa91aa0(0x2f9)][_0xa91aa0(0x13c)][_0xa91aa0(0x3ea)]()[_0xa91aa0(0x410)])(_0x4bae0f['mutations'],null)||_0x4bae0f[_0xa91aa0(0x15b)],_0x2d3c2c={..._0x4bae0f,'mutations':_0x4e22c3};this['_lockTransition'](),this['_updateState'](this[_0xa91aa0(0x203)][_0xa91aa0(0x211)](_0x2d3c2c)),this['_unlockTransition']();}[_0x528acf(0x2f4)](_0x261442){const _0x7be48e=_0x528acf;this[_0x7be48e(0x2d5)](),this['_updateState'](this[_0x7be48e(0x203)][_0x7be48e(0x2e0)](_0x261442)),this[_0x7be48e(0x11e)]();}[_0x528acf(0x2ca)](_0x807682){const _0x406f8d=_0x528acf;this[_0x406f8d(0x2d5)](),this[_0x406f8d(0x391)](this[_0x406f8d(0x203)]['onRemoteRej'](_0x807682)),this[_0x406f8d(0x11e)]();}[_0x528acf(0x339)](_0x3dae11){const _0x383625=_0x528acf;this[_0x383625(0x2d5)](),this[_0x383625(0x391)](this['_state'][_0x383625(0x2bc)](_0x3dae11)),this[_0x383625(0x11e)]();}[_0x528acf(0x188)](_0xfd8ea0){const _0x124da8=_0x528acf;if(!(this[_0x124da8(0x203)]instanceof N))throw TypeError(_0x124da8(0x2c8));let _0x16a537=_0xfd8ea0[_0x124da8(0x1f4)](_0x4b7ef1=>{const _0x21fd10=_0x124da8;let _0x310af3=this[_0x21fd10(0x2f9)]['interceptor']['fetchThroughInterceptors'](this[_0x21fd10(0x2f9)][_0x21fd10(0x13c)][_0x21fd10(0x3ea)]()['COMPRESS_MUTATION_APPLY'])(_0x4b7ef1[_0x21fd10(0x15b)],null)||_0x4b7ef1['mutations'];return{..._0x4b7ef1,'mutations':_0x310af3};});this[_0x124da8(0x2d5)](),this['_updateState'](this[_0x124da8(0x203)][_0x124da8(0x397)](_0x16a537)),this[_0x124da8(0x11e)]();}[_0x528acf(0x3e4)](){const _0x5d2b3b=_0x528acf;this['_lockTransition'](),this[_0x5d2b3b(0x391)](this['_state'][_0x5d2b3b(0x37a)]()),this[_0x5d2b3b(0x11e)]();}[_0x528acf(0x21d)](_0x12efa1=!0x1){const _0x3bb775=_0x528acf;this['_lockTransition'](),this[_0x3bb775(0x391)](this['_state'][_0x3bb775(0x112)]()),this[_0x3bb775(0x11e)]();let _0x240b6f=this[_0x3bb775(0x203)];_0x12efa1&&_0x240b6f instanceof D&&(this[_0x3bb775(0x2d5)](),this[_0x3bb775(0x391)](_0x240b6f['fetchMiss']()),this[_0x3bb775(0x11e)]());}async['_createInitialState'](){return new Promise(_0x362788=>{const _0x2424e5=_0x3420;this[_0x2424e5(0x1ba)][_0x2424e5(0x341)][_0x2424e5(0x3cf)]((0x0,i[_0x2424e5(0x17b)])(0x1))['subscribe'](async _0x51104c=>{const _0x34e19c=_0x2424e5;_0x362788(await this[_0x34e19c(0x1ea)](_0x51104c===0x3));});});}[_0x528acf(0x123)](){const _0x467626=_0x528acf;let _0x59d620=this[_0x467626(0x179)];return{'onStateChange':(_0x38dd48,_0x5cc45e)=>{const _0x1c5176=_0x467626;if(_0x38dd48!==this['_state'])throw Error(_0x1c5176(0x3a0)+_0x38dd48['status']+_0x1c5176(0x362)+_0x5cc45e['status']+'\x0aCurrent:\x20'+this[_0x1c5176(0x203)][_0x1c5176(0x1e4)]);this[_0x1c5176(0x391)](_0x5cc45e);},'onSendChangeset':_0x151393=>{const _0x176fe9=_0x467626;_0x151393[_0x176fe9(0x2c9)]||(_0x151393[_0x176fe9(0x2c9)]=this[_0x176fe9(0x223)],_0x151393[_0x176fe9(0x17c)]=++this['_changesetReqId']);let _0x5f17e6={'eventID':e[_0x176fe9(0x330)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x151393[_0x176fe9(0x179)],'unitType':this[_0x176fe9(0x1af)],'changeset':_0x151393,'memberID':this[_0x176fe9(0x1ba)][_0x176fe9(0x376)]()}};this[_0x176fe9(0x1ba)][_0x176fe9(0x2ef)](_0x5f17e6,this['unitID']);},'onMissingChangesets':({from:_0xce1e6b,to:_0x34e9ba})=>{const _0x41691c=_0x467626;this[_0x41691c(0x320)][_0x41691c(0x264)]('[CollaborationEntity]',_0x41691c(0x384)+_0xce1e6b+'\x20to\x20'+_0x34e9ba);let _0x4eafaa={'eventID':e[_0x41691c(0x330)][_0x41691c(0x29c)],'data':{'unitID':_0x59d620,'unitType':this[_0x41691c(0x1af)],'from':_0xce1e6b,'to':_0x34e9ba}};this[_0x41691c(0x1ba)][_0x41691c(0x2ef)](_0x4eafaa,this['unitID']);}};}async['_createInitialStateImpl'](_0x431df2){const _0x30e60d=_0x528acf;var _0x1d07d4;let _0x33ace6=await((_0x1d07d4=this['_localCacheService'])==null?void 0x0:_0x1d07d4[_0x30e60d(0x277)](this[_0x30e60d(0x179)])),_0x57d9d0=(_0x33ace6==null?void 0x0:_0x33ace6[_0x30e60d(0x15b)])??[],_0x5c4957=(_0x33ace6==null?void 0x0:_0x33ace6[_0x30e60d(0x27e)])??null,_0x22c06b=!!(_0x5c4957!=null&&_0x5c4957[_0x30e60d(0x2c9)])&&!!(_0x5c4957!=null&&_0x5c4957[_0x30e60d(0x17c)]);this[_0x30e60d(0x223)]=_0x22c06b?_0x5c4957['sid']:(0x0,e['uuidv4'])(),this[_0x30e60d(0x159)]=_0x22c06b?_0x5c4957['reqId']:0x0;let _0x6c1663=this[_0x30e60d(0x179)];try{this['_replayCachedMutations'](_0x5c4957,_0x57d9d0);}catch(_0x2b384b){this['_logService'][_0x30e60d(0x2d2)](_0x2b384b);}let _0x34eba8=this[_0x30e60d(0x123)]();if(_0x431df2){let _0x35bd2d=Ue(this[_0x30e60d(0x1d6)],_0x6c1663,this[_0x30e60d(0x1af)],_0x5c4957,_0x57d9d0,_0x34eba8);return _0x35bd2d instanceof O?_0x35bd2d[_0x30e60d(0x3f9)]():(_0x35bd2d instanceof A||_0x35bd2d instanceof k)&&_0x35bd2d[_0x30e60d(0x2a4)](),_0x35bd2d;}return this[_0x30e60d(0x1d6)][_0x30e60d(0x33d)](M,_0x6c1663,this[_0x30e60d(0x1af)],_0x5c4957,_0x57d9d0,_0x34eba8);}[_0x528acf(0x14d)](_0x28eaec,_0x4f93d4){const _0xc62b26=_0x528acf;var _0x2f4322,_0x49db1d;let _0x660d16=this[_0xc62b26(0x2f9)][_0xc62b26(0x13c)][_0xc62b26(0x3c2)](this['_compressMutationService'][_0xc62b26(0x13c)][_0xc62b26(0x3ea)]()['COMPRESS_MUTATION_APPLY']);(_0x2f4322=_0x660d16((_0x28eaec==null?void 0x0:_0x28eaec[_0xc62b26(0x15b)])||[],null))==null||_0x2f4322[_0xc62b26(0x2d9)](_0x3fea36=>this[_0xc62b26(0x28d)][_0xc62b26(0x2cc)](_0x3fea36['id'],_0x3fea36[_0xc62b26(0x351)])),(_0x49db1d=_0x660d16(_0x4f93d4||[],null))==null||_0x49db1d['forEach'](_0x51f01e=>this['_commandService'][_0xc62b26(0x2cc)](_0x51f01e['id'],_0x51f01e[_0xc62b26(0x351)]));}};P=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],P);let F=class extends P{constructor(_0x25d83b,_0x2307c3,_0x30e00a,_0x38e4c5,_0x3de6e4,_0x2e13e6,_0x5526e1,_0x2f88d8,_0x2d80af,_0x5b73dc,_0xa08b9d,_0x159c04,_0x5468e7,_0x13e01b,_0x416906){const _0x39ba0c=_0x528acf;super(_0x25d83b,_0x30e00a,_0x2307c3,_0x38e4c5,_0x3de6e4,_0x2e13e6,_0x5526e1,_0x2f88d8,_0x2d80af,_0x5b73dc,_0xa08b9d,_0x159c04,_0x13e01b,_0x416906),this[_0x39ba0c(0x179)]=_0x25d83b,this[_0x39ba0c(0x191)]=_0x2307c3,this[_0x39ba0c(0x346)]=_0x5468e7,g(this,_0x39ba0c(0x2dc),null);}[_0x528acf(0x288)](_0x570d32){const _0x2990f1=_0x528acf;this[_0x2990f1(0x2dc)]=_0x570d32;}[_0x528acf(0x1fb)](){const _0x218822=_0x528acf;this[_0x218822(0x2dc)]=null,super[_0x218822(0x1fb)]();}['_createHandler'](){const _0xbeb63d=_0x528acf;let _0x1def40=super[_0xbeb63d(0x123)]();return _0x1def40[_0xbeb63d(0x30f)]=_0x4d5d1a=>{const _0x275541=_0xbeb63d;var _0x37fba7,_0x49dd9f;return(_0x37fba7=this[_0x275541(0x2dc)])==null||(_0x49dd9f=_0x37fba7[_0x275541(0x30f)])==null?void 0x0:_0x49dd9f[_0x275541(0x1ca)](_0x37fba7,_0x4d5d1a);},_0x1def40[_0xbeb63d(0x2da)]=_0x356030=>{const _0x204db4=_0xbeb63d;var _0x3cc083,_0x18c79a;return(_0x3cc083=this[_0x204db4(0x2dc)])==null||(_0x18c79a=_0x3cc083[_0x204db4(0x2da)])==null?void 0x0:_0x18c79a[_0x204db4(0x1ca)](_0x3cc083,_0x356030);},_0x1def40['onTransformSelections']=_0x3f4e76=>{const _0x5db76c=_0xbeb63d;var _0x1ba8c9,_0x11b2ac;return(_0x1ba8c9=this['_handlerCallback'])==null||(_0x11b2ac=_0x1ba8c9[_0x5db76c(0x3f5)])==null?void 0x0:_0x11b2ac['call'](_0x1ba8c9,_0x3f4e76);},_0x1def40[_0xbeb63d(0x38f)]=_0x497cf1=>{const _0xd7426b=_0xbeb63d;var _0x3c1e15,_0x42610e;return(_0x3c1e15=this[_0xd7426b(0x2dc)])==null||(_0x42610e=_0x3c1e15[_0xd7426b(0x38f)])==null?void 0x0:_0x42610e[_0xd7426b(0x1ca)](_0x3c1e15,_0x497cf1);},_0x1def40[_0xbeb63d(0x401)]=_0x43b16f=>{const _0x335e65=_0xbeb63d;var _0x17cb08,_0x3043bb;return((_0x17cb08=this[_0x335e65(0x2dc)])==null||(_0x3043bb=_0x17cb08['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3043bb[_0x335e65(0x1ca)](_0x17cb08,_0x43b16f))??_0x43b16f;},_0x1def40[_0xbeb63d(0x289)]=_0x58f8b9=>{const _0xb34985=_0xbeb63d;var _0x1a26e5,_0x3dace8;return((_0x1a26e5=this['_handlerCallback'])==null||(_0x3dace8=_0x1a26e5[_0xb34985(0x289)])==null?void 0x0:_0x3dace8[_0xb34985(0x1ca)](_0x1a26e5,_0x58f8b9))??_0x58f8b9;},_0x1def40;}async[_0x528acf(0x250)](){const _0x536533=_0x528acf;let _0x299a02=await super[_0x536533(0x250)]();return this[_0x536533(0x3a2)](this['_docStateChangeManagerService'][_0x536533(0x40e)][_0x536533(0x367)](_0x1100d0=>{const _0x1d4327=_0x536533;if(_0x1100d0==null||_0x1100d0[_0x1d4327(0x236)]!==this['unitID'])return;let {commandId:_0x4216cf,redoState:_0x2766c6,unitId:_0x3bd604}=_0x1100d0,_0x1370c8={'id':_0x4216cf,'type':t[_0x1d4327(0x1b6)][_0x1d4327(0x3fa)],'params':{'unitId':_0x3bd604,'actions':_0x2766c6['actions'],'textRanges':null}};this[_0x1d4327(0x103)](_0x1370c8);})),this[_0x536533(0x3a2)](this[_0x536533(0x28d)]['onMutationExecutedForCollab']((_0x26a87b,_0x3ee58a)=>{const _0x15d79b=_0x536533;if(_0x26a87b['type']!==t['CommandType'][_0x15d79b(0x3fa)]||_0x3ee58a!=null&&_0x3ee58a['fromCollab']||_0x3ee58a!=null&&_0x3ee58a[_0x15d79b(0x24f)]||_0x26a87b['id']===n[_0x15d79b(0x1cd)]['id'])return;let _0x507edb=_0x26a87b[_0x15d79b(0x351)];if((_0x507edb==null?void 0x0:_0x507edb['unitId'])!==this['unitID'])return;let _0x365ead=_0x26a87b,_0x37babb=this[_0x15d79b(0x2f9)][_0x15d79b(0x13c)][_0x15d79b(0x3c2)](this[_0x15d79b(0x2f9)][_0x15d79b(0x13c)][_0x15d79b(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x365ead],this['_univerInstanceService'])||[_0x365ead];this[_0x15d79b(0x103)](_0x37babb[0x0]);})),_0x299a02;}};F=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t['Inject'])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t['Inject'])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Inject'])(n[_0x528acf(0x2d0)])),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t['Optional'])(x))],F);let I=class extends P{constructor(_0x130bb5,_0x2a8aa4,_0x6baec3,_0x20f327,_0x250a3a,_0x399be3,_0x591cff,_0x2ce568,_0x5a1360,_0x3d00c8,_0x4e0390,_0x4762e5,_0x2a539d,_0x1a5001){const _0x391f25=_0x528acf;super(_0x130bb5,_0x6baec3,_0x2a8aa4,_0x20f327,_0x250a3a,_0x399be3,_0x591cff,_0x2ce568,_0x5a1360,_0x3d00c8,_0x4e0390,_0x4762e5,_0x2a539d,_0x1a5001),this[_0x391f25(0x179)]=_0x130bb5,this[_0x391f25(0x191)]=_0x2a8aa4;}async['_init'](){const _0x2307d6=_0x528acf;let _0x2d6556=await super['_init']();return this['disposeWithMe'](this[_0x2307d6(0x28d)]['onMutationExecutedForCollab']((_0x5d6d19,_0xc0fdf1)=>{const _0x27a80e=_0x2307d6;if(_0x5d6d19['type']!==t['CommandType'][_0x27a80e(0x3fa)]||_0xc0fdf1!=null&&_0xc0fdf1[_0x27a80e(0x118)]||_0xc0fdf1!=null&&_0xc0fdf1[_0x27a80e(0x24f)])return;let _0x13376b=_0x5d6d19[_0x27a80e(0x351)];if((_0x13376b==null?void 0x0:_0x13376b[_0x27a80e(0x236)])!==this[_0x27a80e(0x179)])return;let _0x1960d5=_0x5d6d19,_0xc6a622=this['_compressMutationService'][_0x27a80e(0x13c)][_0x27a80e(0x3c2)](this[_0x27a80e(0x2f9)][_0x27a80e(0x13c)][_0x27a80e(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x1960d5],this['_univerInstanceService'])||[_0x1960d5];this['_onLocalMutation'](_0xc6a622[0x0]);})),_0x2d6556;}};I=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e['CompressMutationService'])),v(0x5,(0x0,t['Inject'])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t[_0x528acf(0x3a7)]),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x528acf(0x3ad)])(C)),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],I);let L=class extends P{constructor(_0x322c64,_0x3fbb0b,_0x4f6119,_0x7bb873,_0x2d9ad4,_0x54cd66,_0x4954b6,_0x49d04f,_0x130991,_0xfd4f60,_0x451b6a,_0x42631e,_0x504ead,_0x1a3399,_0x57f426){const _0x40fd96=_0x528acf;super(_0x322c64,_0x4f6119,_0x3fbb0b,_0x7bb873,_0x2d9ad4,_0x54cd66,_0x4954b6,_0x130991,_0xfd4f60,_0x451b6a,_0x42631e,_0x504ead,_0x1a3399,_0x57f426),this[_0x40fd96(0x179)]=_0x322c64,this[_0x40fd96(0x191)]=_0x3fbb0b,this[_0x40fd96(0x326)]=_0x49d04f;}[_0x528acf(0x123)](){const _0x385b6d=_0x528acf;let _0x59adb7=super['_createHandler']();return _0x59adb7[_0x385b6d(0x3f5)]=_0x1da569=>this[_0x385b6d(0x326)][_0x385b6d(0x2f2)](_0x1da569),_0x59adb7;}async[_0x528acf(0x250)](){const _0xe93c1d=_0x528acf;let _0x286fa1=await super[_0xe93c1d(0x250)]();return this[_0xe93c1d(0x3a2)](this[_0xe93c1d(0x28d)]['onMutationExecutedForCollab']((_0x53b07a,_0x493eed)=>{const _0x28575f=_0xe93c1d;if(_0x53b07a[_0x28575f(0x191)]!==t[_0x28575f(0x1b6)][_0x28575f(0x3fa)]||_0x493eed!=null&&_0x493eed[_0x28575f(0x118)]||_0x493eed!=null&&_0x493eed[_0x28575f(0x24f)])return;let _0x59d1f4=_0x53b07a['params'];if((_0x59d1f4==null?void 0x0:_0x59d1f4[_0x28575f(0x236)])!==this[_0x28575f(0x179)])return;let _0x8c60d6=_0x53b07a,_0x1f1f13=this['_compressMutationService'][_0x28575f(0x13c)][_0x28575f(0x3c2)](this[_0x28575f(0x2f9)]['interceptor'][_0x28575f(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x8c60d6],this['_univerInstanceService'])||[_0x8c60d6];this[_0x28575f(0x103)](_0x1f1f13[0x0]);})),_0x286fa1;}};L=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(S)),v(0x8,(0x0,t[_0x528acf(0x17f)])(_)),v(0x9,t['IUniverInstanceService']),v(0xa,t[_0x528acf(0x30e)]),v(0xb,t['ICommandService']),v(0xc,t['IPermissionService']),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t[_0x528acf(0x3ad)])(x))],L);let R=class extends P{constructor(_0x362a09,_0x184c97,_0x195356,_0x7952f,_0x23211b,_0x57a429,_0x20081f,_0x23f823,_0x105cc8,_0x1bc0be,_0x3879d5,_0x35ac41,_0x35e5bd,_0x2b4e48){const _0x5ee6f2=_0x528acf;super(_0x362a09,_0x195356,_0x184c97,_0x7952f,_0x23211b,_0x57a429,_0x20081f,_0x23f823,_0x105cc8,_0x1bc0be,_0x3879d5,_0x35ac41,_0x35e5bd,_0x2b4e48),this[_0x5ee6f2(0x179)]=_0x362a09,this[_0x5ee6f2(0x191)]=_0x184c97;}async[_0x528acf(0x250)](){const _0x5be641=_0x528acf;let _0x14f24b=await super[_0x5be641(0x250)]();return this[_0x5be641(0x3a2)](this[_0x5be641(0x28d)][_0x5be641(0x2c6)]((_0x32e669,_0x4e0380)=>{const _0x47036b=_0x5be641;if(_0x32e669[_0x47036b(0x191)]!==t[_0x47036b(0x1b6)][_0x47036b(0x3fa)]||_0x4e0380!=null&&_0x4e0380[_0x47036b(0x118)]||_0x4e0380!=null&&_0x4e0380[_0x47036b(0x24f)])return;let _0x32e63f=_0x32e669[_0x47036b(0x351)];if((_0x32e63f==null?void 0x0:_0x32e63f[_0x47036b(0x236)])!==this[_0x47036b(0x179)])return;let _0x22ea3c=_0x32e669,_0x2419b1=this[_0x47036b(0x2f9)][_0x47036b(0x13c)][_0x47036b(0x3c2)](this[_0x47036b(0x2f9)][_0x47036b(0x13c)]['getInterceptPoints']()[_0x47036b(0x3d4)])([_0x22ea3c],this[_0x47036b(0x416)])||[_0x22ea3c];this[_0x47036b(0x103)](_0x2419b1[0x0]);})),_0x14f24b;}};R=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t['Inject'])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t['Optional'])(x))],R);let z=class extends P{constructor(_0x1a1a61,_0x165e95,_0x10b660,_0x239c17,_0x3fd214,_0x8689e3,_0x257c5b,_0x26ced2,_0x5a38e5,_0x29273e,_0x2d504d,_0x171eb0,_0x1e8ca6,_0x39f1e5){const _0x59711d=_0x528acf;super(_0x1a1a61,_0x10b660,_0x165e95,_0x239c17,_0x3fd214,_0x8689e3,_0x257c5b,_0x26ced2,_0x5a38e5,_0x29273e,_0x2d504d,_0x171eb0,_0x1e8ca6,_0x39f1e5),this[_0x59711d(0x179)]=_0x1a1a61,this[_0x59711d(0x191)]=_0x165e95;}async[_0x528acf(0x250)](){const _0x555fde=_0x528acf;let _0x3b6ebe=await super[_0x555fde(0x250)]();return this[_0x555fde(0x3a2)](this['_commandService'][_0x555fde(0x2c6)]((_0x335519,_0x18e3a6)=>{const _0x12ba74=_0x555fde;if(_0x335519[_0x12ba74(0x191)]!==t['CommandType'][_0x12ba74(0x3fa)]||_0x18e3a6!=null&&_0x18e3a6[_0x12ba74(0x118)]||_0x18e3a6!=null&&_0x18e3a6[_0x12ba74(0x24f)])return;let _0x18e8e7=_0x335519['params'];if((_0x18e8e7==null?void 0x0:_0x18e8e7[_0x12ba74(0x236)])!==this[_0x12ba74(0x179)])return;let _0x135bff=_0x335519,_0x362066=this[_0x12ba74(0x2f9)][_0x12ba74(0x13c)][_0x12ba74(0x3c2)](this[_0x12ba74(0x2f9)][_0x12ba74(0x13c)][_0x12ba74(0x3ea)]()[_0x12ba74(0x3d4)])([_0x135bff],this['_univerInstanceService'])||[_0x135bff];this[_0x12ba74(0x103)](_0x362066[0x0]);})),_0x3b6ebe;}};z=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t[_0x528acf(0x3a7)]),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],z);let B=class extends P{constructor(_0x256b99,_0x245ad0,_0x246452,_0xade3e2,_0x3e3407,_0x4196b1,_0x2f6e38,_0x56143f,_0x1ea9f0,_0x5cae05,_0x17d979,_0x4c554f,_0x42dd2e,_0x2139af){const _0x15b1c4=_0x528acf;super(_0x256b99,_0x246452,_0x245ad0,_0xade3e2,_0x3e3407,_0x4196b1,_0x2f6e38,_0x56143f,_0x1ea9f0,_0x5cae05,_0x17d979,_0x4c554f,_0x42dd2e,_0x2139af),this['unitID']=_0x256b99,this[_0x15b1c4(0x191)]=_0x245ad0;}async[_0x528acf(0x250)](){const _0x549537=_0x528acf;let _0x12739f=await super['_init']();return this['disposeWithMe'](this[_0x549537(0x28d)]['onMutationExecutedForCollab']((_0x431be0,_0x10dffd)=>{const _0x69cf78=_0x549537;if(_0x431be0[_0x69cf78(0x191)]!==t[_0x69cf78(0x1b6)][_0x69cf78(0x3fa)]||_0x10dffd!=null&&_0x10dffd['fromCollab']||_0x10dffd!=null&&_0x10dffd[_0x69cf78(0x24f)])return;let _0x151ac8=_0x431be0[_0x69cf78(0x351)];if((_0x151ac8==null?void 0x0:_0x151ac8[_0x69cf78(0x236)])!==this[_0x69cf78(0x179)])return;let _0x5287d1=_0x431be0,_0x543726=this['_compressMutationService'][_0x69cf78(0x13c)][_0x69cf78(0x3c2)](this[_0x69cf78(0x2f9)][_0x69cf78(0x13c)][_0x69cf78(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x5287d1],this['_univerInstanceService'])||[_0x5287d1];this[_0x69cf78(0x103)](_0x543726[0x0]);})),_0x12739f;}};B=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t['LocaleService'])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t[_0x528acf(0x3a7)]),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t['Optional'])(x))],B);const We=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x14c));function Ge(_0x377a09){const _0x2ce592=_0x528acf;let _0x2b90b3=_0x377a09[_0x2ce592(0x325)],_0x36a782=JSON[_0x2ce592(0x1c7)](_0x2b90b3);switch(_0x36a782[_0x2ce592(0x138)]){case a[_0x2ce592(0x110)][_0x2ce592(0x2c5)]:case a[_0x2ce592(0x110)][_0x2ce592(0x28a)]:{let _0xb33be9=_0x36a782[_0x2ce592(0x2d7)];return{..._0x36a782,'data':_0xb33be9,'cmd':_0x36a782[_0x2ce592(0x138)]};}case a[_0x2ce592(0x110)][_0x2ce592(0x22f)]:{let _0xa8fdd3=_0x36a782[_0x2ce592(0x13d)];return{..._0x36a782,'data':_0xa8fdd3,'cmd':_0x36a782['cmd']};}case a['CombCmd'][_0x2ce592(0x398)]:{let _0x37b1e0=_0x36a782[_0x2ce592(0x385)];switch(_0x37b1e0[_0x2ce592(0x1f0)]){case e[_0x2ce592(0x330)][_0x2ce592(0x426)]:var _0xa58d3f;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0xa58d3f=_0x37b1e0[_0x2ce592(0x32a)])==null?void 0x0:_0xa58d3f['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x41f)]:var _0x2419dd;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x2419dd=_0x37b1e0[_0x2ce592(0x2e8)])==null?void 0x0:_0x2419dd['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x173)]:var _0x3a8ae0;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x3a8ae0=_0x37b1e0[_0x2ce592(0x359)])==null?void 0x0:_0x3a8ae0['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x26c)]:var _0x2051ed;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x2051ed=_0x37b1e0[_0x2ce592(0x3c7)])==null?void 0x0:_0x2051ed['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)]['CHANGESET_SHOULD_RETRY']:var _0x4a738c;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x4a738c=_0x37b1e0['csShouldRetryEvent'])==null?void 0x0:_0x4a738c['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x35b)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0['updateCursorEvent']},'cmd':_0x36a782['cmd']};case e[_0x2ce592(0x330)]['USERS_ENTER']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x348)]},'cmd':_0x36a782['cmd']};case e[_0x2ce592(0x330)][_0x2ce592(0x131)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x275)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x390)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x2c1)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x1de)]:case e[_0x2ce592(0x330)]['LIVESHARE_OPERATION']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x263)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x3ee)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x2c1)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x1d5)]:return{..._0x36a782,'data':_0x37b1e0,'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)]['COMMENT_UPDATE']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x3e3)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)]['UPDATE_PERMISSION_OBJ']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x3b6)]},'cmd':_0x36a782['cmd']};case e['CollaborationEvent'][_0x2ce592(0x2bd)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x116)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x11f)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0['uniscriptRunEvent']},'cmd':_0x36a782['cmd']};default:return _0x36a782;}}default:return _0x36a782;}}function Ke(_0x57f6b0){const _0x9d90f1=_0x528acf;switch(_0x57f6b0['cmd']){case a[_0x9d90f1(0x110)]['HEARTBEAT']:case a[_0x9d90f1(0x110)][_0x9d90f1(0x28a)]:return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0[_0x9d90f1(0x138)],'routeKey':_0x57f6b0[_0x9d90f1(0x16c)]});case a[_0x9d90f1(0x110)][_0x9d90f1(0x37e)]:{let _0x960dbc;switch(_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x1f0)]){case e[_0x9d90f1(0x330)][_0x9d90f1(0x35b)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x35b)],'updateCursorEvent':_0x57f6b0[_0x9d90f1(0x325)]['data']};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x131)]:_0x960dbc={'eventID':e['CollaborationEvent'][_0x9d90f1(0x131)],'leaveEvent':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x1d0)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x1d0)],'joinEvent':_0x57f6b0['data'][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x390)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e['CollaborationEvent'][_0x9d90f1(0x350)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x350)],'liveShareOperation':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)]['LIVESHARE_TERMINATE']:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x3ee)],'liveShareTerminate':_0x57f6b0['data'][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x36e)]:_0x960dbc={'eventID':e['CollaborationEvent'][_0x9d90f1(0x36e)],'liveShareRequestHost':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x1de)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x1de)]};break;default:_0x960dbc={'eventID':_0x57f6b0['data'][_0x9d90f1(0x1f0)]};}return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0[_0x9d90f1(0x138)],'routeKey':_0x57f6b0[_0x9d90f1(0x16c)],'collaMsg':_0x960dbc});}case a[_0x9d90f1(0x110)]['JOIN']:return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0[_0x9d90f1(0x138)],'routeKey':_0x57f6b0['routeKey'],'joinReq':_0x57f6b0['data']});case a[_0x9d90f1(0x110)][_0x9d90f1(0x427)]:return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0['cmd'],'routeKey':_0x57f6b0[_0x9d90f1(0x16c)],'leaveReq':_0x57f6b0['data']});default:throw Error(_0x9d90f1(0x299));}}const qe=(0x0,t[_0x528acf(0x2ab)])('univer-pro.collaboration-client-socket-service');function Je(_0x425999,_0x786e8b,_0x137216){const _0x5f3377=_0x528acf;return _0x425999+'/'+_0x786e8b+_0x5f3377(0x187)+_0x137216+'/new_changes';}let Ye=class extends t[_0x528acf(0x23e)]{constructor(_0x4ab42d,_0x4a9909,_0x134b32,_0xc57d,_0x48750a){const _0x83dda1=_0x528acf;super(),this[_0x83dda1(0x1d6)]=_0x4ab42d,this['_httpService']=_0x4a9909,this[_0x83dda1(0xfa)]=_0x134b32,this[_0x83dda1(0x320)]=_0xc57d,this[_0x83dda1(0x2d1)]=_0x48750a;}['_doCreateSocket'](_0x1ca663){const _0x29027f=_0x528acf;let _0x1c3e30=this[_0x29027f(0x1d6)][_0x29027f(0x1b0)](l[_0x29027f(0x2b9)]);if(!_0x1c3e30)throw Error(_0x29027f(0x1fc));let _0x398044=_0x1c3e30[_0x29027f(0x241)](_0x1ca663);if(!_0x398044)throw Error(_0x29027f(0x10a));let _0x50e65e=new t[(_0x29027f(0x417))](),_0x452e03=new i[(_0x29027f(0x1bf))]();_0x50e65e[_0x29027f(0x3ac)](_0x398044[_0x29027f(0x374)]['subscribe'](_0x226624=>_0x452e03[_0x29027f(0x307)](_0x226624))),_0x50e65e[_0x29027f(0x3ac)]((0x0,t[_0x29027f(0x3dc)])(()=>_0x452e03[_0x29027f(0x13b)]()));let _0x4e029b=new i[(_0x29027f(0x1bf))]();_0x50e65e[_0x29027f(0x3ac)](_0x398044['error$'][_0x29027f(0x367)](_0x403069=>_0x4e029b['next'](_0x403069))),_0x50e65e['add']((0x0,t[_0x29027f(0x3dc)])(()=>_0x4e029b[_0x29027f(0x13b)]()));let _0x354cce=new i['Subject']();_0x50e65e[_0x29027f(0x3ac)](_0x398044[_0x29027f(0x38a)]['subscribe'](_0x509df4=>{const _0x4d203a=_0x29027f;let _0x413a76=Ge(_0x509df4);_0x354cce[_0x4d203a(0x307)](_0x413a76);})),_0x50e65e['add']((0x0,t[_0x29027f(0x3dc)])(()=>_0x354cce['complete']()));let _0x3cff5b,_0x3da9f4=()=>{const _0x445ec3=_0x29027f;_0x4e029b[_0x445ec3(0x307)](new Event('connection\x20error')),_0x452e03[_0x445ec3(0x307)](new Event(_0x445ec3(0x383))),_0x3cff5b['close']();};return _0x3cff5b={'memberID':'','close$':_0x452e03[_0x29027f(0x1db)](),'error$':_0x4e029b[_0x29027f(0x1db)](),'open$':_0x398044[_0x29027f(0x114)],'message$':_0x354cce[_0x29027f(0x1db)](),'send':_0x41f328=>{const _0x277aaf=_0x29027f;if(_0x41f328[_0x277aaf(0x138)]===a['CombCmd']['INGEST']){if(_0x41f328['data'][_0x277aaf(0x1f0)]===e[_0x277aaf(0x330)][_0x277aaf(0x1a7)]){this['_submitChangeset'](_0x3cff5b,_0x41f328[_0x277aaf(0x325)])[_0x277aaf(0x3ed)](_0x18604e=>{const _0x4ddb2f=_0x277aaf;this[_0x4ddb2f(0x320)][_0x4ddb2f(0x2d2)](_0x18604e),_0x3da9f4();});return;}if(_0x41f328['data']['eventID']===e[_0x277aaf(0x330)][_0x277aaf(0x29c)]){let _0x10d850=_0x41f328['data'];this['_fetchMissChangesets'](_0x10d850)[_0x277aaf(0x287)](_0x5634f2=>{const _0x4e53f3=_0x277aaf;_0x354cce[_0x4e53f3(0x307)]({'cmd':a[_0x4e53f3(0x110)][_0x4e53f3(0x398)],'code':a[_0x4e53f3(0x1a6)]['OK'],'routeKey':_0x10d850[_0x4e53f3(0x325)][_0x4e53f3(0x179)],'routeType':'','data':{'eventID':e[_0x4e53f3(0x330)][_0x4e53f3(0x40f)],'data':{'changesets':_0x5634f2}}});})[_0x277aaf(0x3ed)](_0x4ab925=>{this['_logService']['error'](_0x4ab925),_0x3da9f4();});return;}}_0x398044[_0x277aaf(0x2ef)](Ke(_0x41f328));},'close':()=>{const _0x3be1b3=_0x29027f;_0x398044['close'](),_0x50e65e[_0x3be1b3(0x1fb)]();}},_0x3cff5b;}async[_0x528acf(0x291)](_0x93bf4f,_0x4b2dc8){const _0x38bacf=_0x528acf;let {unitType:_0x32c393,unitID:_0x55f7d8,changeset:_0x40dde7}=_0x4b2dc8[_0x38bacf(0x325)],_0x163f70={'unitID':_0x55f7d8,'memberID':_0x93bf4f[_0x38bacf(0x2c4)],'type':_0x32c393,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x40dde7)},_0x56e22d=this['_configService'][_0x38bacf(0x25f)](m),_0x5409fe=Je((_0x56e22d==null?void 0x0:_0x56e22d[_0x38bacf(0x165)])??'/universer-api/comb',_0x32c393,_0x55f7d8);try{await this[_0x38bacf(0x1ff)][_0x38bacf(0x24c)](_0x5409fe,{'body':_0x163f70});}catch(_0x1a95d8){throw this[_0x38bacf(0x320)]['error']('[CollaborationSession]',_0x38bacf(0x337)),_0x1a95d8;}}async[_0x528acf(0x2a2)](_0x39fac4){const _0x220871=_0x528acf;let {unitID:_0x1afffb,from:_0x421841,to:_0x30fe73,unitType:_0x2c75f7}=_0x39fac4[_0x220871(0x325)];return(await this[_0x220871(0x2d1)][_0x220871(0x27f)]({'metadata':void 0x0},{'unitID':_0x1afffb,'type':_0x2c75f7,'from':_0x421841,'to':_0x30fe73}))['changesets'][_0x220871(0x1f4)](_0x19977f=>((_0x19977f['mutations']===null||_0x19977f['mutations']===void 0x0)&&(_0x19977f['mutations']=[]),_0x19977f));}};Ye=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(l[_0x528acf(0x3f0)])),v(0x2,t[_0x528acf(0x295)]),v(0x3,t['ILogService']),v(0x4,e[_0x528acf(0x14f)])],Ye);function _0x3420(_0x7940d2,_0x2e2edc){_0x7940d2=_0x7940d2-0xfa;const _0x28799a=_0x2879();let _0x3420ff=_0x28799a[_0x7940d2];return _0x3420ff;}const Xe=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x37b));function Ze(_0x1a6dab={}){const _0x340612=_0x528acf;return _0x1a6dab['resolveUnit']?{'resolveUnit':_0x1a6dab[_0x340612(0x3da)]}:{'resolveUnit':_0x5f5745=>({'target':{'unitId':_0x5f5745['unitId'],'unitType':_0x5f5745[_0x340612(0x37d)]}})};}function Qe(_0xef96e4,_0x5e0fea,_0x54f55e){const _0x2a8c72=_0x528acf;let _0x50c7a1=_0x54f55e['target'][_0x2a8c72(0x243)];if(_0x50c7a1!=null&&_0x50c7a1[_0x2a8c72(0x247)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x54f55e[_0x2a8c72(0x245)][_0x2a8c72(0x236)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0xef96e4,'unitType':_0x5e0fea,'target':{'endpoint':_0x50c7a1,'unitId':_0x54f55e[_0x2a8c72(0x245)]['unitId'],'unitType':_0x54f55e[_0x2a8c72(0x245)]['unitType']??_0x5e0fea},'changeset':_0x54f55e[_0x2a8c72(0x2f0)]};}let V=class extends t['Disposable']{constructor(_0x51999a,_0x592f8f,_0x161624,_0x3227e8,_0x37ff5b,_0x5892e7,_0x3b7aa1){const _0x5e3999=_0x528acf;super(),this['_injector']=_0x51999a,this['_logService']=_0x592f8f,this['_configService']=_0x161624,this['_socketService']=_0x3227e8,this[_0x5e3999(0x102)]=_0x37ff5b,this[_0x5e3999(0x19a)]=_0x5892e7,this[_0x5e3999(0x1e5)]=_0x3b7aa1,g(this,_0x5e3999(0x3f3),new Map()),g(this,_0x5e3999(0x360),new Map()),g(this,_0x5e3999(0x178),new Map()),g(this,_0x5e3999(0x3e7),new Map()),g(this,_0x5e3999(0x36c),this['_getSocketChannel'](void 0x0)[_0x5e3999(0x36c)]['asObservable']()),g(this,_0x5e3999(0x20c),new i[(_0x5e3999(0x1ef))](0x0)),g(this,_0x5e3999(0x422),this[_0x5e3999(0x20c)][_0x5e3999(0x1db)]()),this[_0x5e3999(0x356)]();}['_listenToNetworkCondition'](){const _0x540721=_0x528acf;this[_0x540721(0x1e5)]&&this[_0x540721(0x3a2)](this['_networkConditionService'][_0x540721(0x248)][_0x540721(0x367)](_0x39abd9=>{const _0x86428a=_0x540721;_0x39abd9&&this[_0x86428a(0x40b)](),_0x39abd9||this['_socketChannels']['forEach'](_0x3c4de2=>this[_0x86428a(0x2ad)](_0x3c4de2));}));}['dispose'](){const _0x187724=_0x528acf;super[_0x187724(0x1fb)](),this['_socketChannels'][_0x187724(0x2d9)](_0x3c7df2=>{const _0x22a927=_0x187724;var _0x2300cc,_0x30be21;(_0x2300cc=_0x3c7df2[_0x22a927(0x3b9)])==null||_0x2300cc[_0x22a927(0x282)](),_0x3c7df2[_0x22a927(0x3b9)]=null,this['_clearRetryConnectingTimer'](_0x3c7df2),this['_clearTimeoutTimer'](_0x3c7df2),this[_0x22a927(0x1cb)](_0x3c7df2),(_0x30be21=_0x3c7df2[_0x22a927(0x36c)][_0x22a927(0x193)]())==null||_0x30be21[_0x22a927(0x11c)](),_0x3c7df2[_0x22a927(0x36c)][_0x22a927(0x13b)]();}),this[_0x187724(0x3e7)][_0x187724(0x3fc)](),this[_0x187724(0x3f3)][_0x187724(0x2d9)](_0x2c975e=>_0x2c975e['dispose']()),this[_0x187724(0x3f3)]['clear'](),this[_0x187724(0x178)][_0x187724(0x3fc)](),this['_status$']['complete']();}async[_0x528acf(0x1d1)](_0x34769c,_0x5c7ace){const _0x3ae143=_0x528acf;if(this[_0x3ae143(0x3f3)]['has'](_0x34769c))return this['_sessions'][_0x3ae143(0x1b0)](_0x34769c);let _0xa18974=this[_0x3ae143(0x360)]['get'](_0x34769c);if(_0xa18974)return _0xa18974;let _0x5f1104=this[_0x3ae143(0x24b)](_0x34769c,_0x5c7ace);this['_pendingSessions'][_0x3ae143(0x18b)](_0x34769c,_0x5f1104);try{return await _0x5f1104;}finally{this[_0x3ae143(0x360)][_0x3ae143(0x166)](_0x34769c);}}async['_createSession'](_0x4e8d1c,_0x46765a){const _0x28171a=_0x528acf;let _0x4a8591=await this[_0x28171a(0x22b)](_0x4e8d1c,_0x46765a),_0x2334d9=this['_getSocketChannel'](_0x4a8591[_0x28171a(0x245)]['endpoint']);this[_0x28171a(0x3cd)](_0x2334d9);let _0x5b5fb4=this[_0x28171a(0x1d6)][_0x28171a(0x33d)](ve,_0x4a8591,_0x2334d9[_0x28171a(0x36c)][_0x28171a(0x1db)]());return this[_0x28171a(0x3f3)][_0x28171a(0x18b)](_0x4e8d1c,_0x5b5fb4),this['_sessionChannels'][_0x28171a(0x18b)](_0x4e8d1c,_0x2334d9[_0x28171a(0x3e0)]),_0x5b5fb4;}[_0x528acf(0x408)](_0x5453cc){const _0x2b0a75=_0x528acf;let _0x647dfb=this[_0x2b0a75(0x3f3)][_0x2b0a75(0x1b0)](_0x5453cc),_0xce6018=this[_0x2b0a75(0x178)][_0x2b0a75(0x1b0)](_0x5453cc);if(_0x647dfb&&(this['_sessions'][_0x2b0a75(0x166)](_0x5453cc),this[_0x2b0a75(0x178)][_0x2b0a75(0x166)](_0x5453cc),_0x647dfb[_0x2b0a75(0x11c)]()),_0xce6018&&!this['_hasSessionsForEndpoint'](_0xce6018)){var _0x1868e6;let _0x2d4161=this[_0x2b0a75(0x3e7)][_0x2b0a75(0x1b0)](_0xce6018);_0x2d4161==null||(_0x1868e6=_0x2d4161[_0x2b0a75(0x36c)][_0x2b0a75(0x193)]())==null||_0x1868e6['close']();}}[_0x528acf(0x40b)](){const _0x5a80f8=_0x528acf;(this[_0x5a80f8(0x3e7)][_0x5a80f8(0x2c7)]?[...this[_0x5a80f8(0x3e7)]['values']()]:[this[_0x5a80f8(0x2a5)](void 0x0)])[_0x5a80f8(0x2d9)](_0x382ef7=>{const _0xc4ae9a=_0x5a80f8;_0x382ef7[_0xc4ae9a(0x176)]=0x0,this[_0xc4ae9a(0x345)](_0x382ef7),this[_0xc4ae9a(0x158)](_0x382ef7);});}['_clearRetryConnectingTimer'](_0x54a222){const _0x59296c=_0x528acf;_0x54a222['retryConnectingTimer']!=null&&(clearTimeout(_0x54a222[_0x59296c(0x421)]),_0x54a222[_0x59296c(0x421)]=null);}async[_0x528acf(0x171)](_0x2d361d){const _0x5c4dcb=_0x528acf;let _0x45b5b8=this[_0x5c4dcb(0xfa)][_0x5c4dcb(0x25f)](m),_0x503e01=_0x2d361d[_0x5c4dcb(0x243)]??(_0x45b5b8==null?void 0x0:_0x45b5b8['collabWebSocketUrl'])??_0x5c4dcb(0x219),_0x1dd05f=await this[_0x5c4dcb(0x27b)][_0x5c4dcb(0x241)](_0x503e01);return _0x2d361d[_0x5c4dcb(0x3ff)]=_0x1dd05f,_0x1dd05f;}async['_tryEnsureSocket'](_0x192642){const _0x4ea611=_0x528acf;try{let _0x5769e9=_0x192642[_0x4ea611(0x36c)][_0x4ea611(0x193)]()??_0x192642[_0x4ea611(0x3ff)]??await this[_0x4ea611(0x171)](_0x192642);if(_0x5769e9){var _0x5d8a4d;let _0x1e095f=_0x5769e9[_0x4ea611(0x2ef)];_0x5769e9[_0x4ea611(0x2ef)]=_0x24f12d=>(_0x24f12d['cmd']!==a['CombCmd']['LEAVE']&&this['_rescheduleHeartbeat'](_0x192642),_0x1e095f[_0x4ea611(0x335)](_0x5769e9,[_0x24f12d])),(_0x5d8a4d=_0x192642['socketMessageSubscription'])==null||_0x5d8a4d[_0x4ea611(0x282)](),_0x192642[_0x4ea611(0x3b9)]=null,_0x192642['socketMessageSubscription']=_0x5769e9[_0x4ea611(0x38a)][_0x4ea611(0x367)](_0xee15c4=>this[_0x4ea611(0x3c5)](_0x192642,_0x5769e9,_0xee15c4)),_0x5769e9[_0x4ea611(0x1c4)][_0x4ea611(0x3cf)]((0x0,s['take'])(0x1))[_0x4ea611(0x367)](_0x10e4bc=>this[_0x4ea611(0x320)][_0x4ea611(0x2d2)](_0x4ea611(0x3d1),_0x10e4bc)),_0x5769e9[_0x4ea611(0x114)][_0x4ea611(0x3cf)]((0x0,s[_0x4ea611(0x17b)])(0x1))[_0x4ea611(0x367)](()=>{const _0x2cc446=_0x4ea611;this[_0x2cc446(0x308)](_0x192642,_0x5769e9);}),_0x5769e9['close$']['pipe']((0x0,s[_0x4ea611(0x17b)])(0x1))[_0x4ea611(0x367)](_0x1bfee7=>{const _0x5da0b6=_0x4ea611;this[_0x5da0b6(0x320)][_0x5da0b6(0x264)]('[CollaborationSessionService]',_0x5da0b6(0x122),_0x1bfee7),this['_onConnectionFailed'](_0x192642);});}}catch(_0x557085){this[_0x4ea611(0x320)]['error'](_0x557085),this[_0x4ea611(0x329)](_0x192642);}}[_0x528acf(0x308)](_0xe337c1,_0x392a12){const _0x9f98d9=_0x528acf;this['_logService'][_0x9f98d9(0x264)](_0x9f98d9(0x2a3),_0x9f98d9(0x23c)),_0x392a12[_0x9f98d9(0x2ef)]({'cmd':a[_0x9f98d9(0x110)][_0x9f98d9(0x28a)]}),this['_rescheduleHeartbeat'](_0xe337c1);}[_0x528acf(0x2ad)](_0x2b3a70){const _0x1023da=_0x528acf;_0x2b3a70[_0x1023da(0x1d7)]=!0x1,_0x2b3a70[_0x1023da(0x3ff)]=null,this[_0x1023da(0x20c)]['next'](0x2),_0x2b3a70[_0x1023da(0x36c)]['next'](null),this[_0x1023da(0x35d)](_0x2b3a70),this[_0x1023da(0x1cb)](_0x2b3a70);}['_onConnectionFailed'](_0x5aab0b){const _0x4c59b8=_0x528acf;this[_0x4c59b8(0x2ad)](_0x5aab0b),this[_0x4c59b8(0x1bd)](_0x5aab0b[_0x4c59b8(0x3e0)])&&(_0x5aab0b[_0x4c59b8(0x176)]<(this['_configService'][_0x4c59b8(0x25f)](_0x4c59b8(0x146))??0x3)?(this['_collaborationUIEventService'][_0x4c59b8(0x237)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect'](_0x5aab0b)):this[_0x4c59b8(0x102)]['emitEvent']({'id':'SOCKET_FAILED'}));}[_0x528acf(0x158)](_0x36efe1){const _0x549ff5=_0x528acf;let _0x11bd12=_0x36efe1[_0x549ff5(0x176)],_0x145034=this[_0x549ff5(0xfa)][_0x549ff5(0x25f)](m),_0x820b43=_0x11bd12===0x0?0x0:((_0x145034==null?void 0x0:_0x145034[_0x549ff5(0x1a2)])??0x4e20)*0x2**_0x11bd12;_0x36efe1[_0x549ff5(0x421)]=setTimeout(()=>{const _0x1c205d=_0x549ff5;clearTimeout(_0x36efe1['retryConnectingTimer']),_0x36efe1[_0x1c205d(0x421)]=null,this[_0x1c205d(0x3cd)](_0x36efe1);},_0x820b43),_0x36efe1[_0x549ff5(0x176)]+=0x1;}async[_0x528acf(0x22b)](_0x1fa294,_0x21e18d){return Qe(_0x1fa294,_0x21e18d,await this['_adapter']['resolveUnit']({'unitId':_0x1fa294,'unitType':_0x21e18d}));}[_0x528acf(0x3c5)](_0x253f49,_0x36f362,_0x49adbd){const _0x2ea4a8=_0x528acf;let {cmd:_0x5bde89}=_0x49adbd;_0x5bde89===a[_0x2ea4a8(0x110)][_0x2ea4a8(0x28a)]&&!_0x253f49[_0x2ea4a8(0x1d7)]&&(_0x36f362[_0x2ea4a8(0x2c4)]=_0x49adbd[_0x2ea4a8(0x325)][_0x2ea4a8(0x2c4)],_0x253f49[_0x2ea4a8(0x36c)][_0x2ea4a8(0x307)](_0x36f362),this['_status$'][_0x2ea4a8(0x307)](0x3),_0x253f49[_0x2ea4a8(0x1d7)]=!0x0,_0x253f49['candidateSocket']=null),_0x5bde89===a['CombCmd'][_0x2ea4a8(0x2c5)]&&this[_0x2ea4a8(0x35d)](_0x253f49),this['_rescheduleHeartbeat'](_0x253f49);}[_0x528acf(0x1bd)](_0x508be8){const _0x2e5dfa=_0x528acf;return[...this[_0x2e5dfa(0x178)][_0x2e5dfa(0x364)]()][_0x2e5dfa(0x353)](_0x4d7a08=>_0x4d7a08===_0x508be8);}[_0x528acf(0x2a5)](_0x4ed711){const _0x4e0ea7=_0x528acf;let _0x4c8870=_0x4ed711??'',_0x1d8749=this[_0x4e0ea7(0x3e7)][_0x4e0ea7(0x1b0)](_0x4c8870);if(_0x1d8749)return _0x1d8749;let _0x5e5235={'endpointKey':_0x4c8870,'endpoint':_0x4ed711,'socket$':new i['BehaviorSubject'](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4e0ea7(0x3e7)][_0x4e0ea7(0x18b)](_0x4c8870,_0x5e5235),_0x5e5235;}['_rescheduleHeartbeat'](_0x2da9db){const _0x3406d9=_0x528acf;this[_0x3406d9(0x1cb)](_0x2da9db),_0x2da9db['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2da9db),this[_0x3406d9(0xfa)][_0x3406d9(0x25f)](_0x3406d9(0x2a8))??0x7530);}[_0x528acf(0x226)](_0x54aac3){const _0xaca433=_0x528acf;_0x54aac3[_0xaca433(0x36c)][_0xaca433(0x193)]()[_0xaca433(0x2ef)]({'cmd':a[_0xaca433(0x110)][_0xaca433(0x2c5)]}),this[_0xaca433(0x148)](_0x54aac3);}[_0x528acf(0x148)](_0x1ac2c3){const _0x38e098=_0x528acf;_0x1ac2c3[_0x38e098(0x3ae)]=setTimeout(()=>this['_onConnectionFailed'](_0x1ac2c3),this[_0x38e098(0xfa)][_0x38e098(0x25f)](_0x38e098(0x372))??0x4e20);}[_0x528acf(0x1cb)](_0x5bd5e2){const _0x505060=_0x528acf;_0x5bd5e2[_0x505060(0x1f8)]!=null&&(clearTimeout(_0x5bd5e2[_0x505060(0x1f8)]),_0x5bd5e2['sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](_0x30af3a){const _0x279f6f=_0x528acf;_0x30af3a[_0x279f6f(0x3ae)]!=null&&(clearTimeout(_0x30af3a[_0x279f6f(0x3ae)]),_0x30af3a[_0x279f6f(0x3ae)]=null);}};V=y([v(0x0,(0x0,t['Inject'])(t['Injector'])),v(0x1,t[_0x528acf(0x30e)]),v(0x2,t['IConfigService']),v(0x3,qe),v(0x4,(0x0,t[_0x528acf(0x17f)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x528acf(0x3ad)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x349369,_0x40ab00,_0x395d13,_0x1c3540){const _0x2bfdea=_0x528acf;var _0x52fc76;super(),this[_0x2bfdea(0x1d6)]=_0x349369,this[_0x2bfdea(0x38c)]=_0x40ab00,this['_configService']=_0x395d13,this[_0x2bfdea(0x416)]=_0x1c3540,g(this,_0x2bfdea(0x1c8),new Map()),g(this,_0x2bfdea(0x174),new i[(_0x2bfdea(0x1bf))]()),g(this,_0x2bfdea(0x152),this[_0x2bfdea(0x174)][_0x2bfdea(0x1db)]()),((_0x52fc76=this['_configService'][_0x2bfdea(0x25f)]('collaboration-client.config'))==null?void 0x0:_0x52fc76['enableCollaboration'])!==!0x1&&this['_init']();}[_0x528acf(0x1fb)](){const _0x26d295=_0x528acf;super[_0x26d295(0x1fb)](),this[_0x26d295(0x1c8)][_0x26d295(0x2d9)](_0x4fa529=>_0x4fa529[_0x26d295(0x1fb)]()),this[_0x26d295(0x1c8)][_0x26d295(0x3fc)]();}[_0x528acf(0x13a)](_0x8f2cbb){const _0x5b5474=_0x528acf;return this[_0x5b5474(0x1c8)][_0x5b5474(0x1b0)](_0x8f2cbb)??null;}[_0x528acf(0x29b)](_0x6e1d7f){const _0x141072=_0x528acf;let _0x362e3a=this[_0x141072(0x13a)](_0x6e1d7f);return _0x362e3a?(0x0,i['of'])(_0x362e3a):this[_0x141072(0x174)][_0x141072(0x3cf)]((0x0,s[_0x141072(0x1e0)])(_0x3ad58d=>_0x3ad58d[_0x141072(0x179)]===_0x6e1d7f));}['readyForCollab'](_0x268314){const _0x3bd2ce=_0x528acf;return(0x0,i['firstValueFrom'])(this[_0x3bd2ce(0x29b)](_0x268314)[_0x3bd2ce(0x3cf)]((0x0,s[_0x3bd2ce(0x1f4)])(()=>void 0x0)));}[_0x528acf(0x250)](){const _0x558196=_0x528acf;this[_0x558196(0x416)][_0x558196(0x1dc)](t['UniverInstanceType'][_0x558196(0x2df)])[_0x558196(0x3cf)]((0x0,i[_0x558196(0x25a)])(this[_0x558196(0x2b0)]),(0x0,s['delay'])(0x10))[_0x558196(0x367)](async _0xf9ee8d=>{const _0x3616c2=_0x558196;let _0x322546=_0xf9ee8d['unit'][_0x3616c2(0x1bb)](),_0x1d66cb=await this['_startCollaboration'](_0x322546,t[_0x3616c2(0x274)]['UNIVER_SHEET']);this[_0x3616c2(0x1c8)]['set'](_0x322546,_0x1d66cb);}),this[_0x558196(0x416)]['getTypeOfUnitAdded$'](t[_0x558196(0x274)][_0x558196(0x214)])[_0x558196(0x3cf)]((0x0,i['takeUntil'])(this['dispose$']),(0x0,s[_0x558196(0x201)])(0x10))[_0x558196(0x3cf)]((0x0,s[_0x558196(0x1e0)])(_0x59f3bc=>!_0x59f3bc['unit'][_0x558196(0x1bb)]()[_0x558196(0x195)]('__')))[_0x558196(0x367)](async _0x1ff98a=>{const _0x2bad83=_0x558196;let _0x1e285d=_0x1ff98a[_0x2bad83(0x20d)][_0x2bad83(0x1bb)](),_0x51a4bf=await this['_startCollaboration'](_0x1e285d,t[_0x2bad83(0x274)][_0x2bad83(0x214)]);this[_0x2bad83(0x1c8)][_0x2bad83(0x18b)](_0x1e285d,_0x51a4bf);}),this['_univerInstanceService'][_0x558196(0x1dc)](t[_0x558196(0x274)][_0x558196(0x111)])['pipe']((0x0,i[_0x558196(0x25a)])(this[_0x558196(0x2b0)]),(0x0,s['delay'])(0x10))[_0x558196(0x367)](async _0x250e87=>{const _0x1a69f3=_0x558196;let _0x139371=_0x250e87[_0x1a69f3(0x20d)][_0x1a69f3(0x1bb)](),_0x3d0574=await this[_0x1a69f3(0x1e8)](_0x139371,t[_0x1a69f3(0x274)][_0x1a69f3(0x111)]);this[_0x1a69f3(0x1c8)][_0x1a69f3(0x18b)](_0x139371,_0x3d0574);}),this[_0x558196(0x416)][_0x558196(0x1dc)](t[_0x558196(0x274)][_0x558196(0x1eb)])[_0x558196(0x3cf)]((0x0,i[_0x558196(0x25a)])(this[_0x558196(0x2b0)]),(0x0,s[_0x558196(0x201)])(0x10))[_0x558196(0x367)](async _0x12528c=>{const _0x2a52e8=_0x558196;let _0xff3df2=_0x12528c[_0x2a52e8(0x20d)]['getUnitId'](),_0x10111a=await this[_0x2a52e8(0x1e8)](_0xff3df2,t[_0x2a52e8(0x274)][_0x2a52e8(0x1eb)]);this['_entities'][_0x2a52e8(0x18b)](_0xff3df2,_0x10111a);}),this['_univerInstanceService'][_0x558196(0x1dc)](t[_0x558196(0x274)]['UNIVER_BASE'])['pipe']((0x0,i['takeUntil'])(this['dispose$']),(0x0,s[_0x558196(0x201)])(0x10))[_0x558196(0x367)](async _0x5c5fe3=>{const _0x4a6920=_0x558196;let _0x455752=_0x5c5fe3[_0x4a6920(0x20d)][_0x4a6920(0x1bb)](),_0x23f90f=await this[_0x4a6920(0x1e8)](_0x455752,t[_0x4a6920(0x274)][_0x4a6920(0x15a)]);this[_0x4a6920(0x1c8)]['set'](_0x455752,_0x23f90f);}),this['_univerInstanceService'][_0x558196(0x1dc)](t['UniverInstanceType'][_0x558196(0x342)])['pipe']((0x0,i['takeUntil'])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x558196(0x367)](async _0x5ae993=>{const _0x2f30ca=_0x558196;let _0x11b57f=_0x5ae993['unit']['getUnitId'](),_0x75e686=await this[_0x2f30ca(0x1e8)](_0x11b57f,t[_0x2f30ca(0x274)][_0x2f30ca(0x342)]);this[_0x2f30ca(0x1c8)]['set'](_0x11b57f,_0x75e686);}),(0x0,i[_0x558196(0x1c3)])(this['_univerInstanceService'][_0x558196(0x20f)](t[_0x558196(0x274)][_0x558196(0x2df)]),this[_0x558196(0x416)]['getTypeOfUnitDisposed$'](t['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0x558196(0x20f)](t[_0x558196(0x274)][_0x558196(0x111)]),this[_0x558196(0x416)][_0x558196(0x20f)](t['UniverInstanceType'][_0x558196(0x1eb)]),this['_univerInstanceService'][_0x558196(0x20f)](t[_0x558196(0x274)][_0x558196(0x15a)]),this[_0x558196(0x416)][_0x558196(0x20f)](t['UniverInstanceType'][_0x558196(0x342)]))[_0x558196(0x3cf)]((0x0,i[_0x558196(0x25a)])(this['dispose$']))[_0x558196(0x367)](_0x33cbb4=>{const _0x538e89=_0x558196;let _0x2ad636=_0x33cbb4[_0x538e89(0x1bb)](),_0x119b70=this[_0x538e89(0x1c8)]['get'](_0x2ad636);_0x119b70&&(_0x119b70[_0x538e89(0x1fb)](),this[_0x538e89(0x1c8)][_0x538e89(0x166)](_0x2ad636));});}async['_startCollaboration'](_0x5ac948,_0x2c2cf1){const _0x28d706=_0x528acf;let _0x6eff10=await this[_0x28d706(0x38c)][_0x28d706(0x1d1)](_0x5ac948),_0x35f775=this[_0x28d706(0x1d6)][_0x28d706(0x33d)](this[_0x28d706(0x2fc)](_0x2c2cf1),_0x5ac948,_0x2c2cf1,_0x6eff10);return await _0x35f775[_0x28d706(0x3c0)](),this['_entityInit$'][_0x28d706(0x307)](_0x35f775),_0x35f775;}[_0x528acf(0x2fc)](_0x5e5090){const _0x4a9944=_0x528acf;switch(_0x5e5090){case t[_0x4a9944(0x274)][_0x4a9944(0x214)]:return F;case t['UniverInstanceType'][_0x4a9944(0x2df)]:return L;case t['UniverInstanceType'][_0x4a9944(0x111)]:return R;case t['UniverInstanceType'][_0x4a9944(0x1eb)]:return z;case t[_0x4a9944(0x274)]['UNIVER_BASE']:return I;case t[_0x4a9944(0x274)][_0x4a9944(0x342)]:return B;default:throw Error(_0x4a9944(0x3cc)+_0x5e5090);}}};H=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(V)),v(0x2,t[_0x528acf(0x295)]),v(0x3,t[_0x528acf(0x3a7)])],H);var $e=_0x528acf(0x1da),et=_0x528acf(0x1d3);let tt=class extends t['Disposable']{constructor(_0x1d35fe,_0x37a099){const _0x5160e7=_0x528acf;super(),this[_0x5160e7(0x416)]=_0x1d35fe,this[_0x5160e7(0xfa)]=_0x37a099,this[_0x5160e7(0x250)]();}[_0x528acf(0x250)](){const _0x442be6=_0x528acf;this[_0x442be6(0x3a2)](this[_0x442be6(0x416)][_0x442be6(0x2b3)]['subscribe'](()=>{const _0x1fc260=_0x442be6;let _0x406805=this[_0x1fc260(0x416)][_0x1fc260(0x30a)](),_0xb7b72d=this[_0x1fc260(0xfa)][_0x1fc260(0x25f)](_0x1fc260(0x177))??_0x1fc260(0x2e4);_0x406805 instanceof t['Workbook']&&(_0xb7b72d=_0x406805[_0x1fc260(0x1c0)]),document[_0x1fc260(0x3c3)]=_0xb7b72d;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t['IConfigService'])],tt);const nt=(0x0,t[_0x528acf(0x2ab)])('base-ui.attachment-io.service');let U=class{constructor(_0x52a290,_0x3d1c29,_0x4f5bd8){const _0xa4aa06=_0x528acf;this[_0xa4aa06(0x1ff)]=_0x52a290,this[_0xa4aa06(0xfa)]=_0x3d1c29,this['_univerInstanceService']=_0x4f5bd8;}[_0x528acf(0x38d)](){const _0x460a30=_0x528acf;return this[_0x460a30(0x1d4)]()[_0x460a30(0x276)]??{};}async[_0x528acf(0x2ba)](_0x49bc6d){const _0x33e5f4=_0x528acf;let _0x33343a=this[_0x33e5f4(0x38d)]();if(rt(_0x49bc6d,_0x33343a),_0x33343a[_0x33e5f4(0x32b)])return _0x33343a[_0x33e5f4(0x32b)](_0x49bc6d);let _0x2dd1b1=await this['_upload'](_0x49bc6d);return{'id':_0x2dd1b1,'name':_0x49bc6d[_0x33e5f4(0x1c0)],'mimeType':_0x49bc6d[_0x33e5f4(0x191)],'size':_0x49bc6d[_0x33e5f4(0x2c7)],'sourceType':t[_0x33e5f4(0x1e2)]['UUID'],'source':_0x2dd1b1};}async[_0x528acf(0x3fe)](_0x12eec4,_0x5a621d){const _0x161c74=_0x528acf;if(_0x5a621d!==t[_0x161c74(0x1e2)][_0x161c74(0x189)])return _0x12eec4;let _0x3bee7d=(await this[_0x161c74(0x1ff)][_0x161c74(0x1b0)](this[_0x161c74(0x3ab)]()[_0x161c74(0x175)](_0x161c74(0x3d0),_0x12eec4)))[_0x161c74(0x140)];if(_0x3bee7d[_0x161c74(0x2d2)]&&_0x3bee7d['error'][_0x161c74(0x381)]!==a['ErrorCode']['OK'])throw _0x3bee7d['error'];if(!_0x3bee7d['url'])throw Error(_0x161c74(0x425));return(0x0,t['resolveWithBasePath'])(_0x3bee7d[_0x161c74(0x24e)],this[_0x161c74(0x1cc)]());}async['_upload'](_0x1062c9){const _0x1b778b=_0x528acf;let _0x523289=this[_0x1b778b(0x416)][_0x1b778b(0x30a)](),_0x5caa7b=_0x523289==null?void 0x0:_0x523289[_0x1b778b(0x1bb)]();if(!_0x5caa7b)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x283048=new FormData();_0x283048[_0x1b778b(0x208)](_0x1b778b(0x323),_0x1062c9);let _0x2e73a8=this[_0x1b778b(0x355)]()+_0x1b778b(0x2aa)+_0x1062c9['size'][_0x1b778b(0x14b)]()+_0x1b778b(0x1f9)+a['FileSource'][_0x1b778b(0x33a)]+_0x1b778b(0x420)+encodeURIComponent(_0x5caa7b),_0x10ddc9=(await this[_0x1b778b(0x1ff)][_0x1b778b(0x24c)](_0x2e73a8,{'body':_0x283048}))[_0x1b778b(0x140)][_0x1b778b(0x246)];if(typeof _0x10ddc9!=_0x1b778b(0x259)||!_0x10ddc9)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x10ddc9;}[_0x528acf(0x355)](){const _0x15edf4=_0x528acf;return this[_0x15edf4(0x1d4)]()[_0x15edf4(0x281)]??_0x15edf4(0x1f7);}[_0x528acf(0x3ab)](){const _0x97ec45=_0x528acf;return this['_getConfig']()[_0x97ec45(0x36f)]??_0x97ec45(0x2a6);}[_0x528acf(0x1cc)](){const _0x3dae04=_0x528acf;let _0x2bb00e=this[_0x3dae04(0x1d4)]();return _0x2bb00e[_0x3dae04(0x238)]?_0x2bb00e[_0x3dae04(0x238)]:typeof location<'u'?location['origin']:_0x2bb00e['uploadFileServerUrl']??'';}['_getConfig'](){const _0x39292b=_0x528acf;return this['_configService'][_0x39292b(0x25f)](_0x39292b(0x18f))??{};}};U=y([v(0x0,(0x0,t['Inject'])(l[_0x528acf(0x3f0)])),v(0x1,(0x0,t['Inject'])(t['IConfigService'])),v(0x2,(0x0,t[_0x528acf(0x17f)])(t['IUniverInstanceService']))],U);function rt(_0x2d7952,_0x15b780){const _0x37a28d=_0x528acf;var _0x399155;if(_0x15b780['maxSize']!=null&&_0x2d7952[_0x37a28d(0x2c7)]>_0x15b780['maxSize'])throw Error(_0x37a28d(0x37c));if((_0x399155=_0x15b780['accept'])!=null&&_0x399155['length']&&!_0x15b780[_0x37a28d(0x2fd)][_0x37a28d(0x353)](_0x1a051c=>_0x2d7952['type']===_0x1a051c||_0x2d7952[_0x37a28d(0x1c0)][_0x37a28d(0x31c)](_0x1a051c)||_0x1a051c[_0x37a28d(0x31c)]('/*')&&_0x2d7952['type'][_0x37a28d(0x195)](_0x1a051c['slice'](0x0,-0x1))))throw Error(_0x37a28d(0x3df));}let W=class{constructor(_0x2afbb3,_0x3e3f60,_0x361c37){const _0xcbd926=_0x528acf;this[_0xcbd926(0xfa)]=_0x2afbb3,this[_0xcbd926(0x1ff)]=_0x3e3f60,this[_0xcbd926(0x1ce)]=_0x361c37,this[_0xcbd926(0x3c0)]();}[_0x528acf(0x3c0)](){const _0x58724e=_0x528acf;this['_httpService'][_0x58724e(0x10b)]({'priority':0x1,'interceptor':(_0x302c8c,_0xcd54c6)=>_0xcd54c6(_0x302c8c)[_0x58724e(0x3cf)]((0x0,i[_0x58724e(0x2a7)])(async _0x4469a4=>{const _0x535582=_0x58724e;let _0x3e1270=_0x4469a4;if(_0x3e1270['status']===0x191){if(typeof window>'u')throw Error(_0x535582(0x3d3));if(window[_0x535582(0x183)](this[_0x535582(0x1ce)]['t'](_0x535582(0x386)))){let _0x1f45a7=window['encodeURIComponent'](window[_0x535582(0x388)][_0x535582(0x3d7)]);window[_0x535582(0x388)][_0x535582(0x3d7)]=this[_0x535582(0x343)]()+_0x535582(0x369)+_0x1f45a7;}}return _0x3e1270;}))});}[_0x528acf(0x343)](){const _0x1a5064=_0x528acf;let _0xb0c176=this[_0x1a5064(0xfa)][_0x1a5064(0x25f)](m);return(_0xb0c176==null?void 0x0:_0xb0c176[_0x1a5064(0x3aa)])??_0x1a5064(0x28b);}};W=y([v(0x0,t[_0x528acf(0x295)]),v(0x1,(0x0,t[_0x528acf(0x17f)])(l['HTTPService'])),v(0x2,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x199)]))],W);let G=class extends t[_0x528acf(0x23e)]{constructor(_0xc7fb29,_0x3051ac){const _0xdc380a=_0x528acf;super(),this[_0xdc380a(0x224)]=_0xc7fb29,this['_configService']=_0x3051ac,g(this,_0xdc380a(0x13f),!0x1),this['_initMergeInterceptor']();}[_0x528acf(0x349)](){const _0xa0c7ee=_0x528acf;let _0x358b08=this;this[_0xa0c7ee(0x3a2)](this[_0xa0c7ee(0x224)][_0xa0c7ee(0x10b)]({'priority':0x3e7,'interceptor':(0x0,l[_0xa0c7ee(0x1c1)])({'isMatch'(_0x46937b){const _0x3e2751=_0xa0c7ee;var _0x114aa5;if(_0x46937b[_0x3e2751(0x133)]==='POST'&&(_0x114aa5=_0x46937b[_0x3e2751(0x3f4)])!=null&&_0x114aa5[_0x3e2751(0x140)]){let {objectID:_0x468417,objectType:_0x570f2e}=_0x46937b[_0x3e2751(0x3f4)][_0x3e2751(0x140)]||{};if(!_0x468417||_0x570f2e===void 0x0)return!0x1;let _0x352956=_0x358b08['_getAPIPrefixPath']()+'/'+_0x570f2e+'/object/'+_0x468417+'/allowed';if(_0x46937b['url']===_0x352956)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1ee8f0){const _0x23f604=_0xa0c7ee;var _0x5321e1;return(_0x5321e1=_0x1ee8f0[_0x23f604(0x3f4)])==null?void 0x0:_0x5321e1[_0x23f604(0x140)];},'mergeParamsToRequest'(_0x4c1156,_0xd2c89c){const _0x19c8ac=_0xa0c7ee;let _0x180270=_0x358b08['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x1ba64b=_0x4c1156['reduce']((_0x2c9158,_0x4e7aa8)=>{const _0x4e654a=_0x3420;let {unitID:_0x532e06,objectID:_0x2acd71,objectType:_0xfb7172,actions:_0x3d83c0}=_0x4e7aa8;return _0x2c9158[_0x532e06]||(_0x2c9158[_0x532e06]={}),_0x2c9158[_0x532e06][_0x2acd71]||(_0x2c9158[_0x532e06][_0x2acd71]={'objectID':_0x2acd71,'objectType':_0xfb7172,'actions':[]}),_0x2c9158[_0x532e06][_0x2acd71][_0x4e654a(0x2f8)]['push'](..._0x3d83c0),_0x2c9158;},{}),_0x1ed683=[];for(let _0x4dbbc1 in _0x1ba64b)for(let _0x44eadb in _0x1ba64b[_0x4dbbc1]){let {actions:_0x33b522,objectType:_0x5e4c89}=_0x1ba64b[_0x4dbbc1][_0x44eadb],_0x34c77c=[...new Set(_0x33b522)];_0x1ed683[_0x19c8ac(0x19e)]({'unitID':_0x4dbbc1,'objectID':_0x44eadb,'objectType':_0x5e4c89,'actions':_0x34c77c});}return new l[(_0x19c8ac(0x358))](_0x19c8ac(0x40d),_0x180270,{'headers':_0xd2c89c[_0x19c8ac(0x18c)],'withCredentials':_0xd2c89c['withCredentials'],'responseType':_0xd2c89c[_0x19c8ac(0x2a1)],'body':{'requests':_0x1ed683}});}},{'distributeResult'(_0x55cd97,_0x339bc9){const _0x108639=_0xa0c7ee;let {objectActions:_0xb782ed}=_0x55cd97;return _0x339bc9[_0x108639(0x1f4)](_0x1139ed=>{const _0x1e28e8=_0x108639;let {unitID:_0x5a85f6,objectID:_0x666e81,actions:_0xf0e406}=_0x1139ed,_0x15df4d=_0xb782ed[_0x1e28e8(0x168)](_0x21ca5a=>_0x21ca5a[_0x1e28e8(0x179)]===_0x5a85f6&&_0x21ca5a[_0x1e28e8(0x290)]===_0x666e81);return{'config':_0x1139ed,'result':{'actions':_0xf0e406[_0x1e28e8(0x1f4)](_0x480264=>_0x15df4d==null?void 0x0:_0x15df4d[_0x1e28e8(0x2f8)][_0x1e28e8(0x168)](_0x27653e=>_0x27653e[_0x1e28e8(0x121)]===_0x480264))[_0x1e28e8(0x1e0)](_0x37c8da=>!!_0x37c8da),'error':_0x55cd97[_0x1e28e8(0x2d2)]}};});}})}));}[_0x528acf(0x31a)](){const _0x348de5=_0x528acf;let _0x595381=this['_configService'][_0x348de5(0x25f)](m);return(_0x595381==null?void 0x0:_0x595381['authzUrl'])??_0x348de5(0x215);}async[_0x528acf(0x300)](_0x28dfc1){const _0xf3c7d8=_0x528acf;let _0x5bf3d4=this[_0xf3c7d8(0x31a)]()+'/'+_0x28dfc1['objectType']+_0xf3c7d8(0x2b2);return(await this[_0xf3c7d8(0x224)][_0xf3c7d8(0x24c)](_0x5bf3d4,{'body':_0x28dfc1}))[_0xf3c7d8(0x140)][_0xf3c7d8(0x290)]||'';}async[_0x528acf(0x142)](_0x1075bd){const _0x19dfd8=_0x528acf;let _0x51cbbc=this[_0x19dfd8(0x31a)]()+_0x19dfd8(0x33b);return(await this['_HTTPService'][_0x19dfd8(0x24c)](_0x51cbbc,{'body':_0x1075bd}))['body'][_0x19dfd8(0x137)];}async[_0x528acf(0x3e6)](_0x51ccf7){const _0x3e7738=_0x528acf;var _0x59d1b0;let _0x364ebc=this[_0x3e7738(0x31a)]()+'/'+_0x51ccf7[_0x3e7738(0x366)]+_0x3e7738(0x12a)+_0x51ccf7[_0x3e7738(0x290)],_0x5b396c=await this[_0x3e7738(0x224)][_0x3e7738(0x39e)](_0x364ebc,{'body':_0x51ccf7});if((_0x5b396c==null||(_0x59d1b0=_0x5b396c[_0x3e7738(0x140)])==null||(_0x59d1b0=_0x59d1b0[_0x3e7738(0x2d2)])==null?void 0x0:_0x59d1b0[_0x3e7738(0x381)])!==0x1)throw Error(_0x3e7738(0x2c0));}async[_0x528acf(0x262)](_0x36d019){const _0x17fd3e=_0x528acf;let _0x261c74=this[_0x17fd3e(0x31a)]()+'/'+_0x36d019['objectType']+_0x17fd3e(0x12a)+_0x36d019[_0x17fd3e(0x290)]+_0x17fd3e(0x2db);return(await this['_HTTPService'][_0x17fd3e(0x24c)](_0x261c74,{'body':_0x36d019}))[_0x17fd3e(0x140)]['actions'];}async[_0x528acf(0x196)](_0x5e4a98){const _0x445adc=_0x528acf;let _0x17d8e7=this[_0x445adc(0x31a)]()+_0x445adc(0x23b);return(await this[_0x445adc(0x224)][_0x445adc(0x24c)](_0x17d8e7,{'body':{'requests':_0x5e4a98}}))['body'][_0x445adc(0x1b5)];}async['listRoles'](_0x597fe1){const _0x1b17fd=_0x528acf;let _0x51cd51=this[_0x1b17fd(0x31a)]()+'/'+_0x597fe1[_0x1b17fd(0x366)]+_0x1b17fd(0x20b),_0x21d4b0=await this[_0x1b17fd(0x224)][_0x1b17fd(0x24c)](_0x51cd51,{'body':_0x597fe1});return{'roles':_0x21d4b0[_0x1b17fd(0x140)][_0x1b17fd(0x2bb)],'actions':_0x21d4b0[_0x1b17fd(0x140)][_0x1b17fd(0x2f8)]};}async[_0x528acf(0x1d9)](_0x52e587){const _0x4e73ea=_0x528acf;let _0x5837f0=this[_0x4e73ea(0x31a)]()+_0x4e73ea(0x1a5);await this[_0x4e73ea(0x224)]['delete'](_0x5837f0,{'params':{'collaboratorID':_0x52e587[_0x4e73ea(0x3b4)],'objectID':_0x52e587[_0x4e73ea(0x290)],'unitID':_0x52e587['unitID']}});}async[_0x528acf(0x255)](_0x45e6cc){const _0x49ddcf=_0x528acf;let _0xa8aa68=this[_0x49ddcf(0x31a)]()+_0x49ddcf(0x1a5);await this[_0x49ddcf(0x224)][_0x49ddcf(0x10f)](_0xa8aa68,{'body':_0x45e6cc});}async[_0x528acf(0x41d)](_0x389551){const _0x4fe4b7=_0x528acf;let _0x210f9d=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4fe4b7(0x224)][_0x4fe4b7(0x24c)](_0x210f9d,{'body':_0x389551});}async['listCollaborators'](_0xea348d){const _0x3ecd99=_0x528acf;let _0x1ce48d=this[_0x3ecd99(0x31a)]()+'/collaborator',_0x13e5fb=await this[_0x3ecd99(0x224)]['get'](_0x1ce48d,{'params':{'objectID':_0xea348d[_0x3ecd99(0x290)],'unitID':_0xea348d[_0x3ecd99(0x179)]}});return this[_0x3ecd99(0x202)](_0x13e5fb[_0x3ecd99(0x140)][_0x3ecd99(0x1b4)]??!0x1),_0x13e5fb[_0x3ecd99(0x140)][_0x3ecd99(0x363)];}async[_0x528acf(0x38e)](_0x5e8b5c){const _0xb7f7c0=_0x528acf;let _0x573e25=this['_getAPIPrefixPath']()+_0xb7f7c0(0x1a5);await this[_0xb7f7c0(0x224)][_0xb7f7c0(0x39e)](_0x573e25,{'body':_0x5e8b5c});}[_0x528acf(0x202)](_0x320193){this['_cfgEnableObjInherit']=_0x320193;}[_0x528acf(0x15e)](){const _0x49e3dc=_0x528acf;return this[_0x49e3dc(0x13f)];}};G=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(l[_0x528acf(0x3f0)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x295)]))],G);function it(_0x5e06de){const _0x27d5bd=_0x528acf;let _0x137b62=atob(_0x5e06de),_0x4b2035=new Uint8Array(_0x137b62[_0x27d5bd(0x347)]);for(let _0x270332=0x0;_0x270332<_0x137b62[_0x27d5bd(0x347)];_0x270332++)_0x4b2035[_0x270332]=_0x137b62['charCodeAt'](_0x270332);return _0x4b2035;}function at(_0x39443a){const _0x4cd608=_0x528acf;let _0x2f87ad='';for(let _0x36b63d=0x0;_0x36b63d<_0x39443a[_0x4cd608(0x347)];_0x36b63d++)_0x2f87ad+=String[_0x4cd608(0x267)](_0x39443a[_0x36b63d]);return btoa(_0x2f87ad);}function ot(_0x2380a8,_0x42f3e6){const _0x428ac6=_0x528acf;let _0x2d7bcf=it(_0x42f3e6),_0x3887ca=(0x0,f['randomBytes'])(0x10);return at((0x0,f['concatBytes'])(_0x3887ca,(0x0,d[_0x428ac6(0x117)])(_0x2d7bcf,_0x3887ca)[_0x428ac6(0x2cd)]((0x0,f[_0x428ac6(0x192)])(_0x2380a8))));}function st(){const _0x4a4a4d=_0x528acf;let _0x2b532d=(0x0,u[_0x4a4a4d(0x278)])()[_0x4a4a4d(0x12b)];if(typeof window<'u'&&window[_0x4a4a4d(0x388)]!==void 0x0&&_0x2b532d){let _0xb03c4={'time':Math[_0x4a4a4d(0x30c)](Date['now']()/0x3e8),'domain':location['hostname']};return ot(JSON[_0x4a4a4d(0x29e)](_0xb03c4),_0x2b532d);}}let K=class{constructor(_0x278000){const _0x3ed519=_0x528acf;this[_0x3ed519(0x1ff)]=_0x278000,this[_0x3ed519(0x129)]();}[_0x528acf(0x129)](){const _0x21fe30=_0x528acf;this[_0x21fe30(0x1ff)][_0x21fe30(0x10b)]({'interceptor':(_0x56cd3b,_0x21333d)=>{const _0x4420fd=_0x21fe30;let _0x15c643=st();return _0x15c643&&_0x56cd3b[_0x4420fd(0x18c)][_0x4420fd(0x18b)](_0x4420fd(0x3b3),_0x15c643),_0x21333d(_0x56cd3b);}});}};K=y([v(0x0,(0x0,t['Inject'])(l[_0x528acf(0x3f0)]))],K);let q=class extends t[_0x528acf(0x1b1)]{constructor(_0x2f5abd,_0x3966ed,_0x101c51){const _0x29ad31=_0x528acf;super(),this[_0x29ad31(0x320)]=_0x2f5abd,this[_0x29ad31(0x1be)]=_0x3966ed,this[_0x29ad31(0x31e)]=_0x101c51,g(this,_0x29ad31(0x2d3),new i[(_0x29ad31(0x1ef))](null)),g(this,_0x29ad31(0x418),new i['Subject']()),g(this,_0x29ad31(0x392),this[_0x29ad31(0x2d3)][_0x29ad31(0x1db)]()),g(this,'unitLoaded$',this[_0x29ad31(0x418)][_0x29ad31(0x1db)]());}['dispose'](){const _0x2a744c=_0x528acf;super[_0x2a744c(0x1fb)](),this[_0x2a744c(0x418)][_0x2a744c(0x13b)](),this['_unitInfo$']['complete']();}async[_0x528acf(0x125)](_0x664dd4,_0x546b3b,_0x1c92b5,_0x28b075){const _0x3aade8=_0x528acf;this[_0x3aade8(0x2d3)]['next']({'unitId':_0x664dd4,'type':_0x546b3b,'subUnitId':_0x28b075});let _0x56866f=null;switch(_0x546b3b){case t['UniverInstanceType'][_0x3aade8(0x2df)]:_0x56866f=await this[_0x3aade8(0x1be)]['loadSheet'](_0x664dd4,_0x1c92b5,void 0x0,{'initialSubUnitId':_0x28b075});break;case t['UniverInstanceType']['UNIVER_DOC']:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x2e5)](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)][_0x3aade8(0x111)]:_0x56866f=await this[_0x3aade8(0x1be)]['loadSlide'](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)][_0x3aade8(0x1eb)]:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x21a)](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)]['UNIVER_BASE']:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x405)](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)]['UNIVER_PDF']:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x2ea)](_0x664dd4,_0x1c92b5);break;default:this[_0x3aade8(0x320)][_0x3aade8(0x2d2)]('[DataLoaderService]',_0x3aade8(0x1b8));break;}return _0x56866f&&this[_0x3aade8(0x418)]['next'](_0x56866f),_0x56866f;}async[_0x528acf(0x184)](_0x329d6e,_0x516579,_0x43733b){const _0x146a7f=_0x528acf;var _0x46c7a2;this[_0x146a7f(0x2d3)]['next']({'unitId':_0x329d6e,'type':_0x516579,'subUnitId':_0x43733b});let _0x36cf2d=0x0,_0x51f952=await((_0x46c7a2=this['_localCacheService'])==null?void 0x0:_0x46c7a2[_0x146a7f(0x277)](_0x329d6e));return _0x51f952&&(_0x51f952['awaitingChangeset']||_0x51f952[_0x146a7f(0x15b)]['length']!==0x0)&&(_0x36cf2d=_0x51f952['rev']),_0x36cf2d===0x0&&this[_0x146a7f(0x320)]['debug'](_0x146a7f(0x3ec),_0x146a7f(0x33f)),this[_0x146a7f(0x125)](_0x329d6e,_0x516579,_0x36cf2d,_0x43733b);}};q=y([v(0x0,t[_0x528acf(0x30e)]),v(0x1,(0x0,t['Inject'])(e[_0x528acf(0x233)])),v(0x2,(0x0,t['Optional'])(x))],q);let J=class{constructor(_0x32f501,_0x440120,_0x20d87d){const _0x553efe=_0x528acf;this[_0x553efe(0x1ff)]=_0x32f501,this[_0x553efe(0xfa)]=_0x440120,this[_0x553efe(0x416)]=_0x20d87d,g(this,_0x553efe(0x32c),0x0),g(this,_0x553efe(0x212),new i[(_0x553efe(0x1bf))]()),g(this,_0x553efe(0x3d5),this[_0x553efe(0x212)]),g(this,_0x553efe(0x3f7),new Map());}[_0x528acf(0x109)](_0x3dca71){const _0x5c6712=_0x528acf;this['_waitCount']=_0x3dca71,this[_0x5c6712(0x212)]['next'](_0x3dca71);}[_0x528acf(0x338)](_0x193698,_0x3a0da6){const _0x1a2774=_0x528acf;if(_0x3a0da6===t[_0x1a2774(0x1e2)]['BASE64']){let _0x4854e7=new Image();return _0x4854e7[_0x1a2774(0x380)]=_0x193698,_0x4854e7;}return this[_0x1a2774(0x3f7)]['get'](_0x193698);}[_0x528acf(0x200)](_0x57dc3a,_0x230f92,_0xc843c9){const _0x5e978c=_0x528acf;_0x230f92!==t[_0x5e978c(0x1e2)]['BASE64']&&_0xc843c9!=null&&this[_0x5e978c(0x3f7)][_0x5e978c(0x18b)](_0x57dc3a,_0xc843c9);}async[_0x528acf(0x3dd)](_0x5e718e){const _0x4349a6=_0x528acf;try{let _0x1d5ad6=this[_0x4349a6(0x17d)](this['_getSignURL'](),''+_0x5e718e),_0x2ec162=(await this['_httpService'][_0x4349a6(0x1b0)](_0x1d5ad6))[_0x4349a6(0x140)];if(_0x2ec162[_0x4349a6(0x2d2)]&&_0x2ec162[_0x4349a6(0x2d2)]['code']===a[_0x4349a6(0x1d2)]['OK']){let _0x2397f4=(0x0,t[_0x4349a6(0x1d8)])(_0x2ec162[_0x4349a6(0x24e)],this[_0x4349a6(0x1cc)]());return Promise[_0x4349a6(0x284)](_0x2397f4);}return Promise[_0x4349a6(0x409)](_0x2ec162[_0x4349a6(0x2d2)]);}catch(_0x21d498){return Promise[_0x4349a6(0x409)](_0x21d498);}}async[_0x528acf(0x28e)](_0x194c4f){const _0x521ccf=_0x528acf;let _0x970711='';if(!p[_0x521ccf(0x3c9)]['includes'](_0x194c4f[_0x521ccf(0x191)]))return this[_0x521ccf(0x1bc)](),Promise[_0x521ccf(0x409)](Error(t[_0x521ccf(0x1ac)][_0x521ccf(0x29f)]));if(_0x194c4f[_0x521ccf(0x2c7)]>(0x0,p['getDrawingImageAllowSize'])())return this['_decreaseWaiting'](),Promise[_0x521ccf(0x409)](Error(t[_0x521ccf(0x1ac)][_0x521ccf(0x279)]));try{let _0xa38ab6=new FormData();_0xa38ab6['append']('file',_0x194c4f);let _0xfa6334=this[_0x521ccf(0x416)][_0x521ccf(0x30a)](),_0x201c11=_0xfa6334==null?void 0x0:_0xfa6334['getUnitId']();if(!_0x201c11)throw Error(_0x521ccf(0x406));let _0x2742ef=this['_getUploadFileURL']()+'?size='+_0x194c4f[_0x521ccf(0x2c7)][_0x521ccf(0x14b)]()+_0x521ccf(0x1f9)+a[_0x521ccf(0x373)][_0x521ccf(0x33a)]+_0x521ccf(0x420)+encodeURIComponent(_0x201c11),_0x308f53={'body':_0xa38ab6},_0x49242e=(await this['_httpService'][_0x521ccf(0x24c)](_0x2742ef,_0x308f53))['body'];if(typeof _0x49242e[_0x521ccf(0x246)]!=_0x521ccf(0x259))return this[_0x521ccf(0x1bc)](),Promise['reject'](Error(t[_0x521ccf(0x1ac)][_0x521ccf(0x216)]));_0x970711=_0x49242e[_0x521ccf(0x246)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(t['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0xb691b4,_0x352dcc)=>{const _0x14ede7=_0x521ccf;let _0x438459=new FileReader();_0x438459[_0x14ede7(0x22e)](_0x194c4f),_0x438459[_0x14ede7(0x172)]=_0x1a7e3e=>{const _0x1a03e9=_0x14ede7;var _0x19f09c;let _0x1634e8=(_0x19f09c=_0x1a7e3e['target'])==null?void 0x0:_0x19f09c['result'];if(_0x1634e8==null){this['_decreaseWaiting'](),_0x352dcc(Error(t[_0x1a03e9(0x1ac)][_0x1a03e9(0x216)]));return;}_0xb691b4({'imageId':(0x0,t[_0x1a03e9(0x400)])(0x6),'imageSourceType':t[_0x1a03e9(0x1e2)][_0x1a03e9(0x189)],'source':_0x970711,'base64Cache':_0x1634e8,'status':t[_0x1a03e9(0x1ac)][_0x1a03e9(0x1e9)]}),this[_0x1a03e9(0x1bc)]();};});}[_0x528acf(0x355)](){const _0x1aef2f=_0x528acf;let _0x48c1c1=this[_0x1aef2f(0xfa)]['getConfig'](m);return(_0x48c1c1==null?void 0x0:_0x48c1c1[_0x1aef2f(0x281)])??_0x1aef2f(0x1f7);}[_0x528acf(0x3ab)](){const _0x13c2f5=_0x528acf;let _0x57be99=this[_0x13c2f5(0xfa)][_0x13c2f5(0x25f)](m);return(_0x57be99==null?void 0x0:_0x57be99[_0x13c2f5(0x36f)])??_0x13c2f5(0x2a6);}[_0x528acf(0x1cc)](){const _0x22760b=_0x528acf;let _0x4689c4=this[_0x22760b(0xfa)][_0x22760b(0x25f)](m);return(_0x4689c4==null?void 0x0:_0x4689c4[_0x22760b(0x238)])??location[_0x22760b(0x35a)];}[_0x528acf(0x17d)](_0x12c94a,_0xc4cd73){const _0x231b7a=_0x528acf;return _0x12c94a[_0x231b7a(0x175)](_0x231b7a(0x3d0),_0xc4cd73);}[_0x528acf(0x1bc)](){const _0x44c6d5=_0x528acf;--this[_0x44c6d5(0x32c)],this[_0x44c6d5(0x212)][_0x44c6d5(0x307)](this[_0x44c6d5(0x32c)]);}};J=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(l['HTTPService'])),v(0x1,t[_0x528acf(0x295)]),v(0x2,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x3a7)]))],J);let Y=class{constructor(_0x5999d0,_0x3cfaf5){const _0x2887f6=_0x528acf;this[_0x2887f6(0xfa)]=_0x5999d0,this['_HTTPService']=_0x3cfaf5;}[_0x528acf(0x31a)](){const _0x540353=_0x528acf;let _0x4ad5d7=this[_0x540353(0xfa)][_0x540353(0x25f)](m);return(_0x4ad5d7==null?void 0x0:_0x4ad5d7[_0x540353(0x402)])??'/universer-api/authz';}async[_0x528acf(0x142)](_0x14313a){const _0x236c37=_0x528acf;let _0x572f35=this[_0x236c37(0x31a)]()+_0x236c37(0x1a5);return{'list':[{'title':'People','mentions':(await this[_0x236c37(0x224)][_0x236c37(0x1b0)](_0x572f35,{'params':{'objectID':_0x14313a[_0x236c37(0x236)],'unitID':_0x14313a[_0x236c37(0x236)]}}))[_0x236c37(0x140)][_0x236c37(0x363)]['map'](_0xa33f21=>({'objectId':_0xa33f21['id'],'name':_0xa33f21[_0x236c37(0x33c)][_0x236c37(0x1c0)],'metadata':{'icon':_0xa33f21['subject'][_0x236c37(0x396)]},'label':_0xa33f21[_0x236c37(0x33c)][_0x236c37(0x1c0)],'objectType':t['MentionType']['PERSON']})),'metadata':{},'type':t[_0x236c37(0x3b8)][_0x236c37(0x240)]}]};}};Y=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x295)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(l[_0x528acf(0x3f0)]))],Y);let X=class extends t['RxDisposable']{constructor(_0xd39b6d,_0x5426f2,_0x1ad20c,_0x11fe5e,_0x619e4d){const _0x4a91f4=_0x528acf;super(),this['_injector']=_0xd39b6d,this[_0x4a91f4(0x416)]=_0x5426f2,this['_permissionService']=_0x1ad20c,this[_0x4a91f4(0x206)]=_0x11fe5e,this[_0x4a91f4(0x102)]=_0x619e4d,this['_initUnitPermissionChange'](),this[_0x4a91f4(0x2ac)]();}['_initCloseConn'](){const _0x120d08=_0x528acf;let _0xe2acda=async _0x5212fc=>{const _0x3453f0=_0x3420;(await this[_0x3453f0(0x206)][_0x3453f0(0x1d1)](_0x5212fc))[_0x3453f0(0x115)]['pipe']((0x0,s['filter'])(_0x37292f=>_0x37292f[_0x3453f0(0x1f0)]===e[_0x3453f0(0x330)][_0x3453f0(0x2bd)]),(0x0,s[_0x3453f0(0x25a)])(this[_0x3453f0(0x2b0)]))[_0x3453f0(0x367)](_0x5d6311=>{const _0x15fec6=_0x3453f0;let {reason:_0x271e27}=_0x5d6311[_0x15fec6(0x325)];this[_0x15fec6(0x102)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x271e27}),this[_0x15fec6(0x31d)][_0x15fec6(0x3e8)](new r[(_0x15fec6(0x3bc))](_0x5212fc)['id'],!0x1),this[_0x15fec6(0x206)][_0x15fec6(0x408)](_0x5212fc);});};(0x0,i['merge'])(this[_0x120d08(0x416)]['getTypeOfUnitAdded$'](t[_0x120d08(0x274)]['UNIVER_SHEET']),this[_0x120d08(0x416)]['getTypeOfUnitAdded$'](t[_0x120d08(0x274)][_0x120d08(0x214)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x120d08(0x1eb)]),this[_0x120d08(0x416)][_0x120d08(0x1dc)](t['UniverInstanceType'][_0x120d08(0x15a)]))[_0x120d08(0x3cf)]((0x0,s[_0x120d08(0x1f4)])(_0x509078=>_0x509078[_0x120d08(0x20d)][_0x120d08(0x1bb)]()),(0x0,s[_0x120d08(0x1e0)])(_0x134af8=>!(0x0,t[_0x120d08(0x382)])(_0x134af8)),(0x0,s['takeUntil'])(this[_0x120d08(0x2b0)]))[_0x120d08(0x367)](_0x4f8cf1=>{_0xe2acda(_0x4f8cf1);});}[_0x528acf(0x1a8)](){const _0x41eb22=_0x528acf;let _0x22a117=async _0x1ce9a3=>{const _0xa2e2c4=_0x3420;let _0x4ef67f=await this[_0xa2e2c4(0x206)][_0xa2e2c4(0x1d1)](_0x1ce9a3),_0x4a7775=this['_injector'][_0xa2e2c4(0x1b0)](r[_0xa2e2c4(0x316)]);_0x4ef67f[_0xa2e2c4(0x115)][_0xa2e2c4(0x3cf)]((0x0,s[_0xa2e2c4(0x1e0)])(_0x422319=>_0x422319[_0xa2e2c4(0x1f0)]===e[_0xa2e2c4(0x330)]['UPDATE_PERMISSION_OBJ']),(0x0,s[_0xa2e2c4(0x25a)])(this[_0xa2e2c4(0x2b0)]))[_0xa2e2c4(0x367)](_0x2fb4c0=>{const _0x16837f=_0xa2e2c4;let {objectId:_0x3129da}=_0x2fb4c0['data'];_0x3129da===_0x1ce9a3?_0x4a7775[_0x16837f(0x22d)](_0x1ce9a3):_0x4a7775[_0x16837f(0x1e1)](_0x1ce9a3,_0x3129da);});};(0x0,i[_0x41eb22(0x1c3)])(this[_0x41eb22(0x416)][_0x41eb22(0x1dc)](t[_0x41eb22(0x274)][_0x41eb22(0x2df)]))[_0x41eb22(0x3cf)]((0x0,s[_0x41eb22(0x1f4)])(_0x54d696=>_0x54d696[_0x41eb22(0x20d)][_0x41eb22(0x1bb)]()),(0x0,s[_0x41eb22(0x1e0)])(_0x5e7f4e=>!(0x0,t[_0x41eb22(0x382)])(_0x5e7f4e)),(0x0,s[_0x41eb22(0x25a)])(this[_0x41eb22(0x2b0)]))[_0x41eb22(0x367)](_0x35a2ca=>{_0x22a117(_0x35a2ca);});}};X=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x528acf(0x352)]),v(0x3,(0x0,t['Inject'])(V)),v(0x4,(0x0,t[_0x528acf(0x17f)])(_))],X);let Z=class{constructor(_0x1fda30,_0x541b85){const _0x5a0bdc=_0x528acf;this[_0x5a0bdc(0xfa)]=_0x1fda30,this[_0x5a0bdc(0x1ff)]=_0x541b85;}async[_0x528acf(0x3db)](_0x2f9fbe,_0x17849c){const _0x578792=_0x528acf;var _0x1e4ab8;let {unitID:_0x5ca375,type:_0x2f0716,revision:_0x58aad2=0x0}=_0x17849c,_0x490e8f=this[_0x578792(0x297)]()+'/'+_0x2f0716+_0x578792(0x187)+_0x5ca375+_0x578792(0x302)+_0x58aad2,_0x3e0d74=(await this[_0x578792(0x1ff)][_0x578792(0x1b0)](_0x490e8f))[_0x578792(0x140)],_0x19e622=(_0x1e4ab8=_0x3e0d74[_0x578792(0x126)])==null?void 0x0:_0x1e4ab8[_0x578792(0x128)];if(_0x19e622){let _0x500ef8=_0x19e622==null?void 0x0:_0x19e622[_0x578792(0x136)];_0x19e622[_0x578792(0x136)]=e[_0x578792(0x35c)][_0x578792(0x15d)]((0x0,e[_0x578792(0x3a5)])(_0x500ef8)),Object[_0x578792(0x33e)](_0x19e622[_0x578792(0x21f)])['forEach'](([,_0x6896d6])=>{const _0x3e306e=_0x578792;let _0xd58060=_0x6896d6[_0x3e306e(0x136)];_0x6896d6['originalMeta']=e['textEncoder'][_0x3e306e(0x15d)]((0x0,e[_0x3e306e(0x3a5)])(_0xd58060));});}return _0x3e0d74;}async[_0x528acf(0x204)](_0x2051b1,_0x5f3109){const _0x199e6a=_0x528acf;let {unitID:_0x53c728,type:_0x3b99c9,blockID:_0xadbaca}=_0x5f3109,_0x2a2aeb=this[_0x199e6a(0x218)]()+'/'+_0x3b99c9+'/unit/'+_0x53c728+_0x199e6a(0x3ba)+_0xadbaca;return(await this[_0x199e6a(0x1ff)][_0x199e6a(0x1b0)](_0x2a2aeb))[_0x199e6a(0x140)];}async['getDeserializedSheetBlock'](_0x13ac63,_0x41881d){const _0x525edf=_0x528acf;let {unitID:_0x527bc4,type:_0xfb21d9,blockID:_0x4456b9}=_0x41881d,_0xce30f3=this[_0x525edf(0x218)]()+_0x525edf(0x3ba)+_0xfb21d9+_0x525edf(0x187)+_0x527bc4+_0x525edf(0x3ba)+_0x4456b9;return(await this['_httpService']['get'](_0xce30f3))[_0x525edf(0x140)];}async[_0x528acf(0x27f)](_0x5c909a,_0xcb64cc){const _0x3e2706=_0x528acf;let {unitID:_0x1a8048,type:_0x3249e8,from:_0x219490,to:_0x553373}=_0xcb64cc,_0x248d2c=this[_0x3e2706(0x218)]()+'/'+_0x3249e8+_0x3e2706(0x187)+_0x1a8048+'/fetchmissing?from='+_0x219490+_0x3e2706(0x2eb)+_0x553373;return(await this[_0x3e2706(0x1ff)]['get'](_0x248d2c))['body'];}[_0x528acf(0x297)](){const _0x39dd88=_0x528acf;return this['_configService'][_0x39dd88(0x25f)](_0x39dd88(0x1e6))??this[_0x39dd88(0x218)]();}['_getAPIPrefix'](){const _0x10053c=_0x528acf;let _0x590009=this[_0x10053c(0xfa)][_0x10053c(0x25f)](m);return(_0x590009==null?void 0x0:_0x590009[_0x10053c(0x256)])??_0x10053c(0xfc);}async['getResourcesRequest'](_0x21c851,_0x276c44){const _0x154b7d=_0x528acf;let _0x752c08=_0x154b7d(0x1b3)+_0x276c44[_0x154b7d(0x191)]+_0x154b7d(0x187)+_0x276c44['unitID']+'/resources';return(await this[_0x154b7d(0x1ff)]['get'](_0x752c08,{'params':{'resourceId':JSON['stringify'](_0x276c44[_0x154b7d(0x2d8)])}}))[_0x154b7d(0x140)];}[_0x528acf(0x3e1)](){const _0x8c60f4=_0x528acf;throw Error(_0x8c60f4(0x36d));}['updateSnapshot'](){const _0x578ebf=_0x528acf;throw Error(_0x578ebf(0x36d));}[_0x528acf(0x314)](){const _0x91a01e=_0x528acf;throw Error(_0x91a01e(0x36d));}['saveChangeset'](){const _0x34ad97=_0x528acf;throw Error(_0x34ad97(0x36d));}[_0x528acf(0xfb)](){const _0x1922ed=_0x528acf;throw Error(_0x1922ed(0x36d));}['getLatestCsReqIdBySid'](){const _0x4d9b0f=_0x528acf;throw Error(_0x4d9b0f(0x36d));}};Z=y([v(0x0,t[_0x528acf(0x295)]),v(0x1,(0x0,t['Inject'])(l['HTTPService']))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x13022c,_0x3c650c,_0x25baad,_0x3ec883,_0x1e3033){const _0x3c61d6=_0x528acf;super(_0x13022c,_0x3c650c,_0x25baad),this[_0x3c61d6(0x414)]=_0x3ec883,this['_logService']=_0x1e3033;}[_0x528acf(0x154)](_0x3bd4a5,_0x49b872){const _0x733de0=_0x528acf;let _0x50c44f=this[_0x733de0(0x298)](_0x3bd4a5);if(_0x50c44f)try{let _0x261ced=this[_0x733de0(0x249)](_0x50c44f,_0x49b872);this[_0x733de0(0x260)](_0x3bd4a5,_0x261ced);}catch(_0x46a814){this[_0x733de0(0x320)][_0x733de0(0x2d2)]('[CollaborationUndoRedoService]',_0x46a814),this[_0x733de0(0x310)](_0x3bd4a5);}let _0x4acc8f=this[_0x733de0(0x235)](_0x3bd4a5);if(_0x4acc8f)try{let _0x34c174=this[_0x733de0(0x249)](_0x4acc8f,_0x49b872);this['_substituteRedoStack'](_0x3bd4a5,_0x34c174);}catch(_0x1517ec){this[_0x733de0(0x320)][_0x733de0(0x2d2)](_0x1517ec),this[_0x733de0(0x108)](_0x3bd4a5);}}['_clearUndo'](_0x2120e){const _0x4f4cd0=_0x528acf;let _0x869eb9=this[_0x4f4cd0(0x298)](_0x2120e);_0x869eb9&&(_0x869eb9[_0x4f4cd0(0x347)]=0x0,this[_0x4f4cd0(0x221)]());}[_0x528acf(0x108)](_0x1a7b25){const _0x2487bb=_0x528acf;let _0x4c4bc5=this[_0x2487bb(0x235)](_0x1a7b25);_0x4c4bc5&&(_0x4c4bc5[_0x2487bb(0x347)]=0x0,this[_0x2487bb(0x221)]());}[_0x528acf(0x260)](_0x12de7f,_0x2c979c){const _0x13ed64=_0x528acf;this[_0x13ed64(0x2e7)][_0x13ed64(0x18b)](_0x12de7f,_0x2c979c),this[_0x13ed64(0x221)]();}[_0x528acf(0x1b7)](_0x15d582,_0x40bad4){const _0x5e41ae=_0x528acf;this[_0x5e41ae(0x229)][_0x5e41ae(0x18b)](_0x15d582,_0x40bad4),this['_updateStatus']();}[_0x528acf(0x249)](_0x32248f,_0x57db80){const _0x1694a8=_0x528acf;let _0x12d973=[],_0x1ef535=_0x57db80,_0x5e28f2=_0x57db80;for(let _0x41c4b6=_0x32248f['length']-0x1;_0x41c4b6>=0x0;_0x41c4b6--){let {unitID:_0x6034c8,undoMutations:_0x27c765,redoMutations:_0x105d23}=_0x32248f[_0x41c4b6],_0x1f03f4=this[_0x1694a8(0x414)][_0x1694a8(0x2d4)](_0x1ef535,_0x27c765),_0x42102f=this[_0x1694a8(0x414)][_0x1694a8(0x2d4)](_0x5e28f2,_0x105d23);if((0x0,e[_0x1694a8(0x286)])(_0x1f03f4)||(0x0,e[_0x1694a8(0x286)])(_0x42102f)){this['_logService'][_0x1694a8(0x2d2)](_0x1694a8(0x27a),'transformStack\x20failed!',_0x1f03f4,_0x42102f);break;}_0x1ef535=_0x1f03f4['c1Prime'],_0x5e28f2=_0x42102f[_0x1694a8(0x31b)],_0x12d973[_0x1694a8(0x19e)]({'unitID':_0x6034c8,'undoMutations':_0x1f03f4['m2Prime'],'redoMutations':_0x42102f[_0x1694a8(0x3a6)]});}return _0x12d973[_0x1694a8(0x3fd)]();}};Q=y([v(0x0,t[_0x528acf(0x3a7)]),v(0x1,t['ICommandService']),v(0x2,t['IContextService']),v(0x3,e[_0x528acf(0x27c)]),v(0x4,t[_0x528acf(0x30e)])],Q);let $=class extends t[_0x528acf(0x36a)]{constructor(_0x4824ee=ee,_0x3984d3,_0x377c89,_0x5708d7){const _0x50e0bc=_0x528acf;super(),this[_0x50e0bc(0x3c4)]=_0x4824ee,this[_0x50e0bc(0x320)]=_0x3984d3,this['_injector']=_0x377c89,this[_0x50e0bc(0xfa)]=_0x5708d7;let {..._0xf599d0}=(0x0,t[_0x50e0bc(0x1c3)])({},ee,this['_config']);if(!_0xf599d0[_0x50e0bc(0x161)])throw Error(_0x50e0bc(0x19f));this[_0x50e0bc(0x3c4)]=_0xf599d0,this[_0x50e0bc(0xfa)][_0x50e0bc(0x144)](m,_0xf599d0);}[_0x528acf(0x150)](){const _0x4961a1=_0x528acf;this[_0x4961a1(0x3de)](),this['_initDependencies']();}[_0x528acf(0x3de)](){const _0x125342=_0x528acf;var _0x19d242,_0x59b4b0;this[_0x125342(0x1d6)][_0x125342(0x2b6)](t[_0x125342(0x1fd)])&&this[_0x125342(0x320)][_0x125342(0x2d2)](_0x125342(0x11a),_0x125342(0x2cb));let _0x5e4aa4=(0x0,t[_0x125342(0x12e)])([[t[_0x125342(0x1fd)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this['_config'][_0x125342(0x161)]}],[e[_0x125342(0x14f)],{'useClass':Z}],[t[_0x125342(0x155)],{'useClass':G}],[t['IImageIoService'],{'useClass':J}],[nt,{'useClass':U}],[t[_0x125342(0x3b5)],{'useClass':Y}],[H],[tt]],(_0x19d242=this[_0x125342(0x3c4)])==null?void 0x0:_0x19d242[_0x125342(0x415)]);if(!((_0x59b4b0=this[_0x125342(0x3c4)])!=null&&_0x59b4b0[_0x125342(0x163)])){let _0x706fc=_0x5e4aa4['findIndex'](([_0x272920])=>_0x272920===C);_0x706fc!==-0x1&&_0x5e4aa4[_0x125342(0x283)](_0x706fc,0x1);}(0x0,t[_0x125342(0x26d)])(this[_0x125342(0x1d6)],_0x5e4aa4);}[_0x528acf(0x1fa)](){const _0x502e15=_0x528acf;var _0x3ae885,_0x1fcb7c;if(this[_0x502e15(0x1d6)][_0x502e15(0x1b0)](l[_0x502e15(0x3f0)])[_0x502e15(0x10b)]({'priority':0x14,'interceptor':(0x0,l[_0x502e15(0x3d8)])({'maxParallel':0x6})}),!((_0x3ae885=this[_0x502e15(0x3c4)])!=null&&_0x3ae885[_0x502e15(0x404)])){var _0x257b21;(_0x257b21=this[_0x502e15(0x1d6)][_0x502e15(0x1b0)](x,t[_0x502e15(0x315)][_0x502e15(0x2e1)]))==null||_0x257b21[_0x502e15(0x2be)]();}(_0x1fcb7c=this[_0x502e15(0x3c4)])!=null&&_0x1fcb7c[_0x502e15(0x387)]&&(0x0,t['touchDependencies'])(this['_injector'],[[W]]),(0x0,t[_0x502e15(0x34e)])(this[_0x502e15(0x1d6)],[[K],[H],[X]]);}};g($,'pluginName',_0x528acf(0x16f)),g($,_0x528acf(0x3ce),$e),g($,'version',et),$=y([(0x0,t[_0x528acf(0x31f)])(u[_0x528acf(0x19c)],l[_0x528acf(0x3be)],e[_0x528acf(0x265)]),v(0x1,t[_0x528acf(0x30e)]),v(0x2,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x3,t[_0x528acf(0x295)])],$),Object[_0x528acf(0x2b7)](exports,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x528acf(0x2b7)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return k;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x294),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x3d6),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x2f7),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x528acf(0x305)]=m,Object['defineProperty'](exports,_0x528acf(0x16d),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x156),{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x528acf(0x2ff),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x105),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x145),{'enumerable':!0x0,'get':function(){return ve;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x1f1),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x220),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x528acf(0x3c8)]=Be,exports[_0x528acf(0x25e)]=ie,exports['CollaborationUIEventService']=_,Object[_0x528acf(0x2b7)](exports,_0x528acf(0x257),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x528acf(0x1df)]=ae,Object[_0x528acf(0x2b7)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return j;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x528acf(0x219),exports[_0x528acf(0x210)]=_0x528acf(0x273),exports[_0x528acf(0x197)]=_0x528acf(0x309),Object['defineProperty'](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x1cf),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x378),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x528acf(0x1e7)]=_0x528acf(0x2a8),exports[_0x528acf(0x2e6)]=_0x528acf(0x372),exports[_0x528acf(0x11b)]=nt,exports[_0x528acf(0x3b0)]=Xe,exports['ICollaborationSocketService']=qe,exports[_0x528acf(0x26b)]=x,exports[_0x528acf(0x2e2)]=We,exports[_0x528acf(0x16b)]=C,exports['LOCAL_CACHE_INTERVAL']=0x3e8,exports[_0x528acf(0x272)]=_0x528acf(0x16a),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x334),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x20a),{'enumerable':!0x0,'get':function(){return Y;}}),Object['defineProperty'](exports,_0x528acf(0x354),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x207),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x139),{'enumerable':!0x0,'get':function(){return O;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x528acf(0x104),exports[_0x528acf(0x3a8)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x528acf(0x16e)]=ge,Object['defineProperty'](exports,_0x528acf(0x2f5),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x312),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x528acf(0x2b7)](exports,'SlideCollaborationEntity',{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x528acf(0x2b7)](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return D;}}),exports['UnitStatus']=xe,Object[_0x528acf(0x2b7)](exports,_0x528acf(0x292),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports[_0x528acf(0xff)]=Ge,exports[_0x528acf(0x32f)]=ye,exports[_0x528acf(0x3e9)]=Ke;
1
+ const _0x54dd88=_0x1bed;(function(_0x171487,_0x7ba5ae){const _0x27c78e=_0x1bed,_0x45b0d5=_0x171487();while(!![]){try{const _0x19cfc2=-parseInt(_0x27c78e(0x1e0))/0x1*(-parseInt(_0x27c78e(0x24b))/0x2)+parseInt(_0x27c78e(0x151))/0x3+parseInt(_0x27c78e(0x388))/0x4*(parseInt(_0x27c78e(0x17a))/0x5)+parseInt(_0x27c78e(0x1ca))/0x6+-parseInt(_0x27c78e(0x13f))/0x7+parseInt(_0x27c78e(0x3ac))/0x8*(-parseInt(_0x27c78e(0x36f))/0x9)+parseInt(_0x27c78e(0x2f4))/0xa*(-parseInt(_0x27c78e(0x299))/0xb);if(_0x19cfc2===_0x7ba5ae)break;else _0x45b0d5['push'](_0x45b0d5['shift']());}catch(_0x441e26){_0x45b0d5['push'](_0x45b0d5['shift']());}}}(_0x3596,0x4c596),Object[_0x54dd88(0x188)](exports,Symbol[_0x54dd88(0x28f)],{'value':_0x54dd88(0x2db)}));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=_0x54dd88(0x337),ee={};function te(_0x59e22d){const _0x28fe8b=_0x54dd88;return JSON['stringify'](_0x59e22d)[_0x28fe8b(0x30f)];}function h(_0xd28fca){'@babel/helpers - typeof';const _0x1bb761=_0x54dd88;return h=typeof Symbol==_0x1bb761(0x3e6)&&typeof Symbol[_0x1bb761(0x1aa)]==_0x1bb761(0x131)?function(_0x5cfc0b){return typeof _0x5cfc0b;}:function(_0xd59666){const _0x3c6c4f=_0x1bb761;return _0xd59666&&typeof Symbol==_0x3c6c4f(0x3e6)&&_0xd59666['constructor']===Symbol&&_0xd59666!==Symbol[_0x3c6c4f(0x296)]?_0x3c6c4f(0x131):typeof _0xd59666;},h(_0xd28fca);}function ne(_0x30b22c,_0x467c73){const _0x24b61c=_0x54dd88;if(h(_0x30b22c)!=_0x24b61c(0x1db)||!_0x30b22c)return _0x30b22c;var _0x1e7706=_0x30b22c[Symbol[_0x24b61c(0x214)]];if(_0x1e7706!==void 0x0){var _0x45c0c5=_0x1e7706['call'](_0x30b22c,_0x467c73||_0x24b61c(0x164));if(h(_0x45c0c5)!=_0x24b61c(0x1db))return _0x45c0c5;throw TypeError(_0x24b61c(0x1f3));}return(_0x467c73==='string'?String:Number)(_0x30b22c);}function re(_0x498f2b){const _0x48da80=_0x54dd88;var _0x437d82=ne(_0x498f2b,'string');return h(_0x437d82)==_0x48da80(0x131)?_0x437d82:_0x437d82+'';}function g(_0x49a2a2,_0x2774bc,_0x3f43ad){const _0x580bc6=_0x54dd88;return(_0x2774bc=re(_0x2774bc))in _0x49a2a2?Object[_0x580bc6(0x188)](_0x49a2a2,_0x2774bc,{'value':_0x3f43ad,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49a2a2[_0x2774bc]=_0x3f43ad,_0x49a2a2;}let ie=function(_0x70ec09){const _0xe946bf=_0x54dd88;return _0x70ec09['OTHER_CLIENT_EDITING']=_0xe946bf(0x25f),_0x70ec09[_0xe946bf(0x221)]='PERMISSION_DENIED',_0x70ec09['CONFLICT']=_0xe946bf(0x3f4),_0x70ec09[_0xe946bf(0x1b6)]=_0xe946bf(0x1b6),_0x70ec09[_0xe946bf(0x29b)]='JOIN_ROOM_FAILED',_0x70ec09[_0xe946bf(0x3d2)]=_0xe946bf(0x3d2),_0x70ec09['SOCKET_FAILED']=_0xe946bf(0x21d),_0x70ec09[_0xe946bf(0x3cb)]=_0xe946bf(0x3cb),_0x70ec09;}({});var _=class{constructor(){const _0x5823d3=_0x54dd88;g(this,'_event$',new i['Subject']()),g(this,_0x5823d3(0x3b7),this[_0x5823d3(0x3cc)][_0x5823d3(0x327)]());}[_0x54dd88(0x1f9)](_0x2fd589){const _0x56f82e=_0x54dd88;this[_0x56f82e(0x3cc)]['next'](_0x2fd589);}},ae=class{constructor(){const _0x459487=_0x54dd88;g(this,_0x459487(0x420),new i[(_0x459487(0x1eb))]()),g(this,_0x459487(0x20e),this[_0x459487(0x420)][_0x459487(0x327)]());}[_0x54dd88(0x251)](_0x12577c){const _0x1bef7c=_0x54dd88;this['_commentUpdate$'][_0x1bef7c(0x2d8)](_0x12577c);}};function v(_0x2531f5,_0x19b2b0){return function(_0x42c291,_0x4b6f74){_0x19b2b0(_0x42c291,_0x4b6f74,_0x2531f5);};}function y(_0x2fd1fe,_0x517ed3,_0x59284f,_0xef1440){const _0x2769d9=_0x54dd88;var _0x582c87=arguments['length'],_0x1de766=_0x582c87<0x3?_0x517ed3:_0xef1440===null?_0xef1440=Object['getOwnPropertyDescriptor'](_0x517ed3,_0x59284f):_0xef1440,_0x32dee4;if(typeof Reflect==_0x2769d9(0x1db)&&typeof Reflect[_0x2769d9(0x349)]==_0x2769d9(0x3e6))_0x1de766=Reflect[_0x2769d9(0x349)](_0x2fd1fe,_0x517ed3,_0x59284f,_0xef1440);else{for(var _0x574143=_0x2fd1fe['length']-0x1;_0x574143>=0x0;_0x574143--)(_0x32dee4=_0x2fd1fe[_0x574143])&&(_0x1de766=(_0x582c87<0x3?_0x32dee4(_0x1de766):_0x582c87>0x3?_0x32dee4(_0x517ed3,_0x59284f,_0x1de766):_0x32dee4(_0x517ed3,_0x59284f))||_0x1de766);}return _0x582c87>0x3&&_0x1de766&&Object[_0x2769d9(0x188)](_0x517ed3,_0x59284f,_0x1de766),_0x1de766;}let b=class extends t[_0x54dd88(0x254)]{constructor(_0x2bec61){const _0x2d24f7=_0x54dd88;super(),this[_0x2d24f7(0x220)]=_0x2bec61,g(this,_0x2d24f7(0x209),new Map()),g(this,_0x2d24f7(0x358),new i[(_0x2d24f7(0x1eb))]()),this[_0x2d24f7(0x1af)]((0x0,i[_0x2d24f7(0x183)])(this[_0x2d24f7(0x220)]['getTypeOfUnitDisposed$'](t[_0x2d24f7(0x432)][_0x2d24f7(0x1c7)])['pipe']((0x0,s[_0x2d24f7(0x423)])(_0x372f5a=>_0x372f5a[_0x2d24f7(0x33d)]())),this['_univerInstanceService'][_0x2d24f7(0x16a)](t[_0x2d24f7(0x432)]['UNIVER_DOC'])[_0x2d24f7(0x2de)]((0x0,s['map'])(_0x39697a=>_0x39697a[_0x2d24f7(0x33d)]())),this[_0x2d24f7(0x220)][_0x2d24f7(0x16a)](t['UniverInstanceType'][_0x2d24f7(0x3d1)])[_0x2d24f7(0x2de)]((0x0,s[_0x2d24f7(0x423)])(_0x48373c=>_0x48373c[_0x2d24f7(0x33d)]())),this['_univerInstanceService'][_0x2d24f7(0x16a)](t[_0x2d24f7(0x432)]['UNIVER_BASE'])[_0x2d24f7(0x2de)]((0x0,s[_0x2d24f7(0x423)])(_0x8bbd96=>_0x8bbd96[_0x2d24f7(0x33d)]())))[_0x2d24f7(0x449)](_0x243696=>this[_0x2d24f7(0x350)](_0x243696)));}['waitForRoom$'](_0x13f2e1){const _0x1bcffe=_0x54dd88;return this['_roomMembers']['has'](_0x13f2e1)?(0x0,i['of'])(this[_0x1bcffe(0x209)]['get'](_0x13f2e1)):this[_0x1bcffe(0x358)][_0x1bcffe(0x2de)]((0x0,s[_0x1bcffe(0x423)])(_0x5ccf3f=>{const _0x51f320=_0x1bcffe;if(_0x5ccf3f===_0x13f2e1)return this[_0x51f320(0x209)]['get'](_0x5ccf3f);}));}[_0x54dd88(0x3fa)](_0x52c23d,_0x51ae3d){const _0x5b6f52=_0x54dd88;let _0x2f0d52=this[_0x5b6f52(0x209)][_0x5b6f52(0x2aa)](_0x52c23d);_0x2f0d52||(_0x2f0d52=new oe(),this[_0x5b6f52(0x209)][_0x5b6f52(0x2d4)](_0x52c23d,_0x2f0d52),this[_0x5b6f52(0x358)][_0x5b6f52(0x2d8)](_0x52c23d)),_0x2f0d52[_0x5b6f52(0x3fa)](_0x51ae3d);}[_0x54dd88(0x295)](_0x357c2a,_0x2d5f70){const _0x345503=_0x54dd88;let _0x3db8c3=this[_0x345503(0x209)][_0x345503(0x2aa)](_0x357c2a);_0x3db8c3&&_0x3db8c3[_0x345503(0x295)](_0x2d5f70);}['getRoom'](_0x523c6b){const _0x4b8285=_0x54dd88;return this[_0x4b8285(0x209)]['get'](_0x523c6b);}[_0x54dd88(0x2e6)](_0x4ecba8,_0x3becfe){const _0x3e2bfa=_0x54dd88;let _0x218fa2=this[_0x3e2bfa(0x209)][_0x3e2bfa(0x2aa)](_0x4ecba8);if(_0x218fa2)return _0x218fa2[_0x3e2bfa(0x2e6)](_0x3becfe);}[_0x54dd88(0x350)](_0x8903f6){const _0x4f44e5=_0x54dd88;let _0x1f7913=this[_0x4f44e5(0x209)][_0x4f44e5(0x2aa)](_0x8903f6);_0x1f7913&&(_0x1f7913[_0x4f44e5(0x1d3)](),this[_0x4f44e5(0x209)][_0x4f44e5(0x2e8)](_0x8903f6));}['dispose'](){const _0x31040c=_0x54dd88;this[_0x31040c(0x209)][_0x31040c(0x44f)](_0x1db117=>_0x1db117['dispose']()),this[_0x31040c(0x209)]['clear'](),this[_0x31040c(0x358)][_0x31040c(0x1fb)]();}};b=y([v(0x0,t[_0x54dd88(0x228)])],b);var oe=class extends t[_0x54dd88(0x254)]{constructor(..._0x272006){const _0x404868=_0x54dd88;super(..._0x272006),g(this,_0x404868(0x278),new Map()),g(this,'_members$',new i[(_0x404868(0x352))](this['_members'])),g(this,'members$',this[_0x404868(0x2b9)][_0x404868(0x327)]());}['dispose'](){const _0x2d35f5=_0x54dd88;this[_0x2d35f5(0x278)][_0x2d35f5(0x148)](),this['_members$'][_0x2d35f5(0x1fb)]();}[_0x54dd88(0x3fa)](_0x2046ff){const _0x390875=_0x54dd88;this['_members'][_0x390875(0x2d4)](_0x2046ff[_0x390875(0x3c0)],_0x2046ff),this[_0x390875(0x227)]();}['removeMember'](_0x4d76c3){const _0x5bc841=_0x54dd88;this['_members'][_0x5bc841(0x2e8)](_0x4d76c3),this['_emitMembers']();}[_0x54dd88(0x2e6)](_0x475ed2){const _0x169388=_0x54dd88;return this[_0x169388(0x278)][_0x169388(0x2aa)](_0x475ed2);}[_0x54dd88(0x439)](){const _0x17500b=_0x54dd88;return Array[_0x17500b(0x312)](this[_0x17500b(0x278)][_0x17500b(0x203)]());}[_0x54dd88(0x227)](){const _0x91c687=_0x54dd88;this[_0x91c687(0x2b9)][_0x91c687(0x2d8)](this[_0x91c687(0x278)]);}};function se(_0x4fb5e2,_0x208f90){const _0x1006ee=_0x54dd88;if(le(_0x4fb5e2))return _0x208f90;if(_0x208f90[_0x1006ee(0x170)]===e[_0x1006ee(0x20b)][_0x1006ee(0x158)]){let _0x2469f5=me(_0x4fb5e2),_0x41310f=_0x208f90;return{..._0x41310f,'data':{..._0x41310f[_0x1006ee(0x382)],'unitID':_0x4fb5e2['target']['unitId'],'unitType':_0x4fb5e2[_0x1006ee(0x128)][_0x1006ee(0x3a4)]??_0x41310f['data'][_0x1006ee(0x3a4)],'changeset':_0x2469f5['toRemote'](_0x41310f['data'][_0x1006ee(0x281)],he(_0x4fb5e2))}};}if(_0x208f90[_0x1006ee(0x170)]===e[_0x1006ee(0x20b)][_0x1006ee(0x249)]){let _0x5c9ea5=_0x208f90;return{..._0x5c9ea5,'data':{..._0x5c9ea5[_0x1006ee(0x382)],'unitID':_0x4fb5e2[_0x1006ee(0x128)][_0x1006ee(0x338)],'unitType':_0x4fb5e2[_0x1006ee(0x128)][_0x1006ee(0x3a4)]??_0x5c9ea5[_0x1006ee(0x382)][_0x1006ee(0x3a4)]}};}return _0x208f90;}function ce(_0x73ff06,_0x5040d7){const _0x1d7b56=_0x54dd88;if(le(_0x73ff06))return[_0x5040d7];switch(_0x5040d7[_0x1d7b56(0x170)]){case e[_0x1d7b56(0x20b)][_0x1d7b56(0x218)]:return[ue(_0x73ff06,_0x5040d7)];case e[_0x1d7b56(0x20b)]['PSEUDO_FETCH_MISSING_RESULT']:return[fe(_0x73ff06,_0x5040d7)];case e[_0x1d7b56(0x20b)][_0x1d7b56(0x210)]:return[de(_0x73ff06,_0x5040d7)];default:return[_0x5040d7];}}function le(_0x37518a){const _0x3ea3c7=_0x54dd88;return _0x37518a[_0x3ea3c7(0x128)][_0x3ea3c7(0x428)]==null&&_0x37518a[_0x3ea3c7(0x128)][_0x3ea3c7(0x338)]===_0x37518a[_0x3ea3c7(0x233)]&&!_0x37518a[_0x3ea3c7(0x281)];}function ue(_0x377ad7,_0x33204c){const _0x1feab7=_0x54dd88;return{..._0x33204c,'data':(0x0,e[_0x1feab7(0x3dc)])(pe(_0x377ad7,(0x0,e['parseProtocolChangeset'])(_0x33204c[_0x1feab7(0x382)])))};}function de(_0x175aca,_0x387a6d){const _0x7e4a7f=_0x54dd88;return{..._0x387a6d,'data':pe(_0x175aca,_0x387a6d[_0x7e4a7f(0x382)])};}function fe(_0x38b61e,_0x24f561){const _0x13d81a=_0x54dd88;let _0x258d30=_0x24f561[_0x13d81a(0x382)];return{..._0x24f561,'data':{..._0x258d30,'changesets':_0x258d30[_0x13d81a(0x406)][_0x13d81a(0x423)](_0x1b2bb4=>(0x0,e[_0x13d81a(0x3dc)])(pe(_0x38b61e,(0x0,e['parseProtocolChangeset'])(_0x1b2bb4))))}};}function pe(_0x1c431d,_0x5a8ef4){return me(_0x1c431d)['toLocal'](_0x5a8ef4,he(_0x1c431d));}function me(_0x27906f){const _0x34465b=_0x54dd88;if(!_0x27906f[_0x34465b(0x281)])throw Error(_0x34465b(0x1ed));return _0x27906f[_0x34465b(0x281)];}function he(_0x54769d){const _0xda72f=_0x54dd88;return{'localUnitId':_0x54769d[_0xda72f(0x233)],'unitType':_0x54769d['unitType'],'target':_0x54769d['target']};}let ge=function(_0x51b973){const _0x33cef5=_0x54dd88;return _0x51b973[_0x51b973[_0x33cef5(0x156)]=0x0]=_0x33cef5(0x156),_0x51b973[_0x51b973['JOINING']=0x1]=_0x33cef5(0x416),_0x51b973[_0x51b973[_0x33cef5(0x1a8)]=0x2]=_0x33cef5(0x1a8),_0x51b973[_0x51b973['ONLINE']=0x3]=_0x33cef5(0x273),_0x51b973;}({});const _e={[a['CmdRspCode'][_0x54dd88(0x401)]]:_0x54dd88(0x1e3),[a[_0x54dd88(0x359)][_0x54dd88(0x272)]]:_0x54dd88(0x175),[a[_0x54dd88(0x359)][_0x54dd88(0x1f5)]]:_0x54dd88(0x20d),[a[_0x54dd88(0x359)]['JOIN_ROOM_PERMISSION_DENIED']]:'session.room-permission-denied',[a['CmdRspCode']['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x54dd88(0x3c6)};let ve=class extends t[_0x54dd88(0x2f0)]{get['sessionStatus'](){const _0x570d63=_0x54dd88;return this[_0x570d63(0x1b7)][_0x570d63(0x2ec)]();}constructor(_0x4d3ad4,_0x83d41d,_0xae1a6f,_0xc6cc14,_0x48ed3b,_0x3a46fc,_0x31b900,_0x396d0f){const _0x43d35c=_0x54dd88;super(),this[_0x43d35c(0x1d7)]=_0x4d3ad4,this[_0x43d35c(0x3ca)]=_0xae1a6f,this[_0x43d35c(0x290)]=_0xc6cc14,this[_0x43d35c(0x18f)]=_0x48ed3b,this[_0x43d35c(0x429)]=_0x3a46fc,this[_0x43d35c(0x136)]=_0x31b900,this[_0x43d35c(0x450)]=_0x396d0f,g(this,_0x43d35c(0x1b7),new i[(_0x43d35c(0x352))](0x0)),g(this,_0x43d35c(0x1ef),this[_0x43d35c(0x1b7)][_0x43d35c(0x327)]()),g(this,_0x43d35c(0x3cc),new i[(_0x43d35c(0x1eb))]()),g(this,_0x43d35c(0x3b7),this['_event$'][_0x43d35c(0x327)]()),g(this,_0x43d35c(0x1ba),void 0x0),g(this,_0x43d35c(0x19a),void 0x0),g(this,_0x43d35c(0x12b),void 0x0),g(this,_0x43d35c(0x127),!0x1),g(this,_0x43d35c(0x24a),null),this[_0x43d35c(0x127)]=!!this[_0x43d35c(0x450)],_0x83d41d[_0x43d35c(0x2de)]((0x0,i[_0x43d35c(0x316)])(this[_0x43d35c(0x42e)]))[_0x43d35c(0x449)](_0x32e866=>{const _0x54044f=_0x43d35c;if(_0x32e866!==void 0x0){if(this[_0x54044f(0x1ba)]=_0x32e866,_0x32e866)this[_0x54044f(0x196)](_0x32e866),this[_0x54044f(0x19a)]=_0x32e866['message$']['subscribe'](_0x4e17c2=>{const _0x51b5d6=_0x54044f;_0x4e17c2['routeKey']===this[_0x51b5d6(0x1d7)][_0x51b5d6(0x128)][_0x51b5d6(0x338)]&&this[_0x51b5d6(0x195)](_0x4e17c2);});else{var _0x4ac214;this[_0x54044f(0x1f6)](),this[_0x54044f(0x1b7)][_0x54044f(0x2d8)](0x2),(_0x4ac214=this[_0x54044f(0x19a)])==null||_0x4ac214[_0x54044f(0x265)](),this['_socketMessageSubscription']=null;}}});}[_0x54dd88(0x40c)](){const _0x382d11=_0x54dd88;var _0xc2455a;return((_0xc2455a=this[_0x382d11(0x1ba)])==null?void 0x0:_0xc2455a[_0x382d11(0x3c0)])??null;}[_0x54dd88(0x1d3)](){const _0x191540=_0x54dd88;super[_0x191540(0x1d3)](),this[_0x191540(0x287)](),this[_0x191540(0x42e)][_0x191540(0x2d8)](),this[_0x191540(0x42e)][_0x191540(0x1fb)]();}[_0x54dd88(0x287)](){const _0x39f368=_0x54dd88;var _0x4b42e1;this[_0x39f368(0x1f6)](),(_0x4b42e1=this[_0x39f368(0x1ba)])==null||_0x4b42e1[_0x39f368(0x305)]({'cmd':a[_0x39f368(0x1df)][_0x39f368(0x269)],'data':{'roomID':this[_0x39f368(0x1d7)]['target'][_0x39f368(0x338)]}}),this[_0x39f368(0x3cc)][_0x39f368(0x1fb)](),this[_0x39f368(0x1b7)][_0x39f368(0x1fb)]();}[_0x54dd88(0x195)](_0x252d14){const _0x1750fb=_0x54dd88;_0x252d14['cmd']===a['CombCmd']['JOIN']?this[_0x1750fb(0x293)](_0x252d14):_0x252d14[_0x1750fb(0x37c)]===a['CombCmd']['RECV']&&this[_0x1750fb(0x3f6)](_0x252d14);}[_0x54dd88(0x196)](_0x3bf389){const _0xbb8000=_0x54dd88;this[_0xbb8000(0x1b7)]['next'](0x1),_0x3bf389[_0xbb8000(0x305)]({'cmd':a['CombCmd'][_0xbb8000(0x32f)],'routeKey':this[_0xbb8000(0x1d7)][_0xbb8000(0x128)][_0xbb8000(0x338)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0xbb8000(0x128)][_0xbb8000(0x338)]}]}});}[_0x54dd88(0x293)](_0x449b7a){const _0x107b8c=_0x54dd88;var _0x83a0f5;if(_0x449b7a[_0x107b8c(0x1cf)]in _e){this[_0x107b8c(0x136)][_0x107b8c(0x1f9)]({'id':_0x107b8c(0x29b),'data':_e[_0x449b7a[_0x107b8c(0x1cf)]]}),this[_0x107b8c(0x1b7)][_0x107b8c(0x2d8)](0x2);return;}this[_0x107b8c(0x1b7)]['next'](0x3);let _0x516f3d=(_0x83a0f5=_0x449b7a[_0x107b8c(0x382)][_0x107b8c(0x353)][this[_0x107b8c(0x1d7)][_0x107b8c(0x128)][_0x107b8c(0x338)]])==null?void 0x0:_0x83a0f5[_0x107b8c(0x300)];_0x516f3d&&_0x516f3d[_0x107b8c(0x44f)](_0x373f65=>this[_0x107b8c(0x18f)][_0x107b8c(0x3fa)](this[_0x107b8c(0x1d7)][_0x107b8c(0x233)],_0x373f65));}['_onRecvEvent'](_0x27705b){const _0xe379c9=_0x54dd88;try{let _0x526863=ce(this[_0xe379c9(0x1d7)],_0x27705b['data']);for(let _0x59535d of _0x526863)switch(_0x59535d[_0xe379c9(0x170)]){case e[_0xe379c9(0x20b)][_0xe379c9(0x389)]:this[_0xe379c9(0x430)](_0x59535d),this['_event$']['next'](_0x59535d);break;case e[_0xe379c9(0x20b)][_0xe379c9(0x2bf)]:this[_0xe379c9(0x399)](_0x59535d),this['_event$']['next'](_0x59535d);break;case e[_0xe379c9(0x20b)][_0xe379c9(0x291)]:case e[_0xe379c9(0x20b)][_0xe379c9(0x210)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0xe379c9(0x255)](),this[_0xe379c9(0x3cc)][_0xe379c9(0x2d8)](_0x59535d);break;case e[_0xe379c9(0x20b)][_0xe379c9(0x2dc)]:this[_0xe379c9(0x3ca)][_0xe379c9(0x40a)](_0xe379c9(0x2ed)+JSON[_0xe379c9(0x427)](_0x59535d)),this[_0xe379c9(0x3cc)]['next'](_0x59535d);break;case e[_0xe379c9(0x20b)][_0xe379c9(0x3c3)]:this[_0xe379c9(0x429)][_0xe379c9(0x251)](_0x59535d[_0xe379c9(0x382)]),this['_event$'][_0xe379c9(0x2d8)](_0x59535d);break;default:this[_0xe379c9(0x3cc)][_0xe379c9(0x2d8)](_0x59535d);}}catch(_0x3fef08){this['_logService'][_0xe379c9(0x40a)](_0x3fef08,_0x27705b);}}[_0x54dd88(0x430)](_0x57f890){const _0x1f9216=_0x54dd88;this[_0x1f9216(0x18f)][_0x1f9216(0x3fa)](this['_identity'][_0x1f9216(0x233)],_0x57f890[_0x1f9216(0x382)]);}[_0x54dd88(0x399)](_0x129974){const _0x54a88b=_0x54dd88;this[_0x54a88b(0x18f)][_0x54a88b(0x295)](this[_0x54a88b(0x1d7)][_0x54a88b(0x233)],_0x129974[_0x54a88b(0x382)][_0x54a88b(0x3c0)]);}async[_0x54dd88(0x305)](_0x361b28,_0x177ecf){const _0x386fb7=_0x54dd88;if(this[_0x386fb7(0x1f7)]!==0x3||!this['_socket'])throw Error(_0x386fb7(0x26d));try{let _0xf35ef4=se(this['_identity'],_0x361b28);_0xf35ef4[_0x386fb7(0x170)]===e[_0x386fb7(0x20b)][_0x386fb7(0x158)]&&(this[_0x386fb7(0x421)](),this[_0x386fb7(0x139)](_0xf35ef4)),this[_0x386fb7(0x1ba)][_0x386fb7(0x305)]({'cmd':a[_0x386fb7(0x1df)][_0x386fb7(0x180)],'routeKey':this[_0x386fb7(0x1d7)]['target']['unitId'],'routeType':'','data':_0xf35ef4});}catch(_0x35375c){this[_0x386fb7(0x3ca)][_0x386fb7(0x40a)](_0x35375c);}}[_0x54dd88(0x421)](){const _0x19acd9=_0x54dd88;this[_0x19acd9(0x12b)]=setTimeout(()=>{const _0x24d6ba=_0x19acd9;this[_0x24d6ba(0x12b)]=null,this[_0x24d6ba(0x136)][_0x24d6ba(0x1f9)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x19acd9(0x290)][_0x19acd9(0x2b6)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x54dd88(0x255)](){const _0x24753d=_0x54dd88;this[_0x24753d(0x12b)]&&=(clearTimeout(this[_0x24753d(0x12b)]),null);}[_0x54dd88(0x139)](_0x51ceff){const _0x5e1892=_0x54dd88;if(!this[_0x5e1892(0x127)])return;let {data:_0x17e860}=_0x51ceff,{unitID:_0x3566b9,changeset:_0x43b6d6}=_0x17e860,{mutations:_0x364a38,type:_0x649213}=_0x43b6d6;this[_0x5e1892(0x24a)]={'unitId':_0x3566b9,'type':_0x649213,'startTime':performance[_0x5e1892(0x279)](),'stopTime':0x0,'duration':0x0,'size':te(_0x364a38)};}[_0x54dd88(0x3ba)](){const _0x14bafe=_0x54dd88;if(this[_0x14bafe(0x127)]){if(!this[_0x14bafe(0x24a)]){this[_0x14bafe(0x3ca)]['error'](_0x14bafe(0x419),_0x14bafe(0x1bf));return;}this['_telemetryInfo'][_0x14bafe(0x43e)]=performance[_0x14bafe(0x279)](),this[_0x14bafe(0x24a)][_0x14bafe(0x22c)]=this[_0x14bafe(0x24a)][_0x14bafe(0x43e)]-this[_0x14bafe(0x24a)][_0x14bafe(0x375)],this['_telemetryService'][_0x14bafe(0x3f7)](_0x14bafe(0x1e9),this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x54dd88(0x1f6)](){this['_telemetryInfo']=null;}};ve=y([v(0x2,t[_0x54dd88(0x225)]),v(0x3,t[_0x54dd88(0x173)]),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(b)),v(0x5,(0x0,t[_0x54dd88(0x3b9)])(ae)),v(0x6,(0x0,t[_0x54dd88(0x3b9)])(_)),v(0x7,(0x0,t[_0x54dd88(0x1d4)])(o['ITelemetryService']))],ve);const x=(0x0,t[_0x54dd88(0x41f)])('collaboration-client.local-cache-service');function ye(_0x5610ad){const _0x582c9d=_0x54dd88;return _0x582c9d(0x1e7)+_0x5610ad;}function be(_0x52eadf){const _0x10bb73=_0x54dd88;let {unitID:_0x560892,mutations:_0x4d81f2}=_0x52eadf;return{'unitId':_0x560892,'subUnitId':_0x4d81f2['length']>0x0?_0x4d81f2[0x0][_0x10bb73(0x3e3)][_0x10bb73(0x1a5)]:null};}let S=class{constructor(_0x3a8f98,_0x2458e9,_0xf940c4){const _0xded73c=_0x54dd88;this[_0xded73c(0x20c)]=_0x3a8f98,this[_0xded73c(0x422)]=_0x2458e9,this[_0xded73c(0x2c9)]=_0xf940c4;}[_0x54dd88(0x134)](_0x138af9){const _0x4342bc=_0x54dd88;var _0x5b1e1d,_0x4dba4a;let _0x2a12ee=this[_0x4342bc(0x20c)][_0x4342bc(0x2aa)](r[_0x4342bc(0x129)]),{unitId:_0x43739a,subUnitId:_0x54717f}=be(_0x138af9),_0x58b139=_0x2a12ee==null?void 0x0:_0x2a12ee[_0x4342bc(0x307)](_0x43739a)['getCurrentSelections'](),_0x5b1e8f=(_0x5b1e1d=this[_0x4342bc(0x2c9)][_0x4342bc(0x186)](_0x43739a))==null||(_0x5b1e1d=_0x5b1e1d[_0x4342bc(0x280)]())==null?void 0x0:_0x5b1e1d['getSheetId']();if(_0x58b139[_0x4342bc(0x30f)]===0x0||!_0x43739a||!_0x54717f)return;let _0x40258a=[{'id':r[_0x4342bc(0x2a2)]['id'],'params':{'unitId':_0x43739a,'subUnitId':_0x5b1e8f,'selections':t[_0x4342bc(0x2ef)][_0x4342bc(0x37d)](_0x58b139)}}],_0x155a05=this[_0x4342bc(0x422)][_0x4342bc(0x3cd)](_0x138af9,_0x40258a);if(!(0x0,e[_0x4342bc(0x43a)])(_0x155a05))throw _0x155a05['error'];let _0x372ece=(_0x4dba4a=_0x155a05['m2Prime'][0x0])==null||(_0x4dba4a=_0x4dba4a[_0x4342bc(0x3e3)])==null?void 0x0:_0x4dba4a['selections'];if(Array[_0x4342bc(0x1a6)](_0x372ece)&&_0x372ece['length']){if(_0x372ece[_0x4342bc(0x30f)]===_0x40258a[0x0]['params']['selections'][_0x4342bc(0x30f)]&&_0x372ece[_0x4342bc(0x23f)]((_0x48810e,_0x53c6ac)=>t[_0x4342bc(0x3d0)][_0x4342bc(0x294)](_0x48810e[_0x4342bc(0x394)],_0x40258a[0x0][_0x4342bc(0x3e3)][_0x4342bc(0x30c)][_0x53c6ac][_0x4342bc(0x394)])))return;this[_0x4342bc(0x20c)][_0x4342bc(0x2aa)](t['ICommandService'])[_0x4342bc(0x367)](r[_0x4342bc(0x2a2)]['id'],{'unitId':_0x43739a,'subUnitId':_0x5b1e8f,'selections':_0x372ece});}}};S=y([v(0x0,(0x0,t['Inject'])(t['Injector'])),v(0x1,e['ITransformService']),v(0x2,t[_0x54dd88(0x228)])],S);const C=(0x0,t[_0x54dd88(0x41f)])('univer-pro.collaboration-client.single-active-unit-service');let xe=function(_0x3a2acd){const _0x417afe=_0x54dd88;return _0x3a2acd[_0x3a2acd[_0x417afe(0x2d3)]=0x0]=_0x417afe(0x2d3),_0x3a2acd[_0x3a2acd[_0x417afe(0x271)]=0x1]=_0x417afe(0x271),_0x3a2acd;}({});function Se(_0x16bedf){const _0x5b3696=_0x54dd88;var _0x467527;return!!((_0x467527=_0x16bedf[_0x5b3696(0x3e3)])!=null&&_0x467527[_0x5b3696(0x274)]);}const Ce=new Set([r[_0x54dd88(0x33f)]['id']]),we=new Set([c['AddSlidePageMutation']['id'],c[_0x54dd88(0x185)]['id'],c['MoveSlidePageMutation']['id'],c[_0x54dd88(0x17e)]['id']]);function Te(_0x4a911d,_0x4c0201=Ce){const _0x52d3d9=_0x54dd88;let _0x4a4d8e=[];for(let _0x5ea659 of _0x4a911d){if(_0x4c0201[_0x52d3d9(0x2c4)](_0x5ea659['id'])){if(_0x4a4d8e[_0x52d3d9(0x30f)]>0x0)break;_0x4a4d8e[_0x52d3d9(0x17f)](_0x5ea659);break;}if(Se(_0x5ea659)){if(_0x4a4d8e[_0x52d3d9(0x30f)]>0x0)break;_0x4a4d8e['push'](_0x5ea659);break;}_0x4a4d8e[_0x52d3d9(0x17f)](_0x5ea659);}return _0x4a4d8e;}function w(_0x38bd74,_0x312588,_0x1d69d6,_0x28412b,_0xcb2952){const _0xa16ec7=_0x54dd88;let _0x103f35=Te(_0x38bd74),_0x4c6aba=_0xcb2952['getCurrentUser'](),_0x41f727=(_0x4c6aba==null?void 0x0:_0x4c6aba[_0xa16ec7(0x3dd)])??_0xa16ec7(0x125),_0x100d3b=(_0x4c6aba==null?void 0x0:_0x4c6aba[_0xa16ec7(0x3c0)])??'unknown';return{'changeset':{'unitID':_0x312588,'type':(0x0,e[_0xa16ec7(0x31b)])(_0x1d69d6['getUnitType'](_0x312588)),'baseRev':_0x28412b[_0xa16ec7(0x198)](_0x312588),'revision':0x0,'userID':_0x41f727,'memberID':_0x100d3b,'mutations':_0x103f35},'pendingMutations':_0x38bd74[_0xa16ec7(0x238)](_0x103f35[_0xa16ec7(0x30f)])};}const Ee=w;function De(_0x45fa6e,_0x1ed7de,_0x59a6c1,_0x3c760a,_0x559e82){const _0x430c7a=_0x54dd88;let _0x45a6c6=Te(_0x45fa6e,we),_0x5e8092=_0x559e82[_0x430c7a(0x3e5)](),_0x2d0fb2=(_0x5e8092==null?void 0x0:_0x5e8092[_0x430c7a(0x3dd)])??_0x430c7a(0x125),_0x1286e4=(_0x5e8092==null?void 0x0:_0x5e8092[_0x430c7a(0x3c0)])??'unknown';return{'changeset':{'unitID':_0x1ed7de,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x59a6c1[_0x430c7a(0x1e8)](_0x1ed7de)),'baseRev':_0x3c760a['getCurrentRevOfUnit'](_0x1ed7de),'revision':0x0,'userID':_0x2d0fb2,'memberID':_0x1286e4,'mutations':_0x45a6c6},'pendingMutations':_0x45fa6e[_0x430c7a(0x238)](_0x45a6c6[_0x430c7a(0x30f)])};}function Oe(_0x3c053b,_0x3c1387,_0x7286b6,_0x155559,_0x12ce32){const _0x337c35=_0x54dd88;let _0x342877=_0x3c053b['reduce']((_0x4ef1d8,_0x10805f)=>{const _0x3dca60=_0x1bed;let _0x2755da=_0x4ef1d8[_0x4ef1d8[_0x3dca60(0x30f)]-0x1],{id:_0x5f4416}=_0x2755da??{},{id:_0x345473,type:_0x277eba}=_0x10805f,_0x51d3d7=_0x10805f[_0x3dca60(0x3e3)];if(_0x5f4416&&_0x5f4416!==_0x345473)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x5f4416+'\x20-\x20'+_0x345473+'.');if(!_0x2755da)return[{'id':_0x345473,'type':_0x277eba,'params':{'unitId':_0x51d3d7[_0x3dca60(0x338)],'textRanges':_0x51d3d7[_0x3dca60(0x212)],'actions':_0x51d3d7['actions']}}];let _0x54301e=_0x2755da[_0x3dca60(0x3e3)];return ke(_0x54301e,_0x51d3d7)?[..._0x4ef1d8[_0x3dca60(0x238)](0x0,-0x1),{..._0x2755da,'id':_0x345473,'type':_0x277eba,'params':{'unitId':_0x51d3d7[_0x3dca60(0x338)],'textRanges':_0x51d3d7[_0x3dca60(0x212)],'actions':t[_0x3dca60(0x39e)]['compose'](_0x54301e[_0x3dca60(0x33c)],_0x51d3d7[_0x3dca60(0x33c)])}}]:[..._0x4ef1d8,{'id':_0x345473,'type':_0x277eba,'params':{'unitId':_0x51d3d7['unitId'],'textRanges':_0x51d3d7[_0x3dca60(0x212)],'actions':_0x51d3d7[_0x3dca60(0x33c)]}}];},[]),_0x4f6e61=_0x12ce32['getCurrentUser'](),_0x40f5f9=(_0x4f6e61==null?void 0x0:_0x4f6e61[_0x337c35(0x3dd)])??'unknown',_0x4579e0=(_0x4f6e61==null?void 0x0:_0x4f6e61[_0x337c35(0x3c0)])??_0x337c35(0x125);return{'changeset':{'unitID':_0x3c1387,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x7286b6[_0x337c35(0x1e8)](_0x3c1387)),'baseRev':_0x155559[_0x337c35(0x198)](_0x3c1387),'revision':0x0,'userID':_0x40f5f9,'memberID':_0x4579e0,'mutations':_0x342877},'pendingMutations':_0x3c053b[_0x337c35(0x238)](_0x3c053b[_0x337c35(0x30f)])};}function ke(_0xf32c0b,_0x4863b5){const _0x2dcce3=_0x54dd88;return!Ae(_0xf32c0b)&&!Ae(_0x4863b5)&&je(_0xf32c0b['actions'],_0x4863b5[_0x2dcce3(0x33c)]);}function Ae(_0x364e72){return _0x364e72['isCompositionEnd']!==void 0x0;}function je(_0x4f8ba0,_0x434bec){return Me(_0x4f8ba0)&&Me(_0x434bec)&&!Pe(_0x4f8ba0)&&!Pe(_0x434bec)&&!Ne(_0x4f8ba0)&&!Ne(_0x434bec);}function Me(_0x314cb6){const _0x11d1a2=_0x54dd88;return Fe(_0x314cb6)[_0x11d1a2(0x3a9)](_0x114c1c=>T(_0x114c1c)&&_0x114c1c['et']==='text-x');}function Ne(_0x4082c4){const _0x142c9c=_0x54dd88;return Fe(_0x4082c4)[_0x142c9c(0x3a9)](_0x4c72ea=>Array[_0x142c9c(0x1a6)](_0x4c72ea)||typeof _0x4c72ea==_0x142c9c(0x360)||typeof _0x4c72ea==_0x142c9c(0x3a7));}function Pe(_0x909870){const _0x4e1242=_0x54dd88;return Fe(_0x909870)['some'](_0x5de692=>!T(_0x5de692)||_0x5de692['et']!==_0x4e1242(0x3ed)||!Array['isArray'](_0x5de692['e'])?!0x1:_0x5de692['e'][_0x4e1242(0x3a9)](_0x34c613=>!T(_0x34c613)||!T(_0x34c613[_0x4e1242(0x19e)])?!0x1:Object[_0x4e1242(0x296)]['hasOwnProperty'][_0x4e1242(0x1cc)](_0x34c613[_0x4e1242(0x19e)],'tables')||Object[_0x4e1242(0x296)][_0x4e1242(0x342)][_0x4e1242(0x1cc)](_0x34c613['body'],_0x4e1242(0x22d))||Object[_0x4e1242(0x296)][_0x4e1242(0x342)]['call'](_0x34c613[_0x4e1242(0x19e)],_0x4e1242(0x145))));}function Fe(_0xfe9775){const _0xe2cd7f=_0x54dd88;if(!Array[_0xe2cd7f(0x1a6)](_0xfe9775))return[];let _0xa66440=_0xfe9775['includes'](_0xe2cd7f(0x19e))?_0xfe9775:_0xfe9775[_0xe2cd7f(0x3d8)](_0x2fb2ad=>Array[_0xe2cd7f(0x1a6)](_0x2fb2ad)&&_0x2fb2ad[_0xe2cd7f(0x437)](_0xe2cd7f(0x19e)));if(!Array[_0xe2cd7f(0x1a6)](_0xa66440))return[];let _0x234e0b=_0xa66440['indexOf'](_0xe2cd7f(0x19e));return _0x234e0b===-0x1?[]:_0xa66440[_0xe2cd7f(0x238)](_0x234e0b+0x1);}function T(_0x3ecd2a){const _0x58940d=_0x54dd88;return typeof _0x3ecd2a==_0x58940d(0x1db)&&!!_0x3ecd2a&&!Array['isArray'](_0x3ecd2a);}function _0x3596(){const _0xb584ba=['shareReplay','updateCollaborator','entries','_cfgEnableObjInherit','startTime','_state$','_startCollaboration','LIVESHARE_TERMINATE','interceptor','patch','_isPermissionRej','cmd','deepClone','_undoStacks','SnapshotServerOverHTTPService','result','1.0.0-beta.2','data','_transformRemoteChangesetByStateCache','parseProtocolChangeset','/resources','offline','open$','472HHgvGQ','USERS_ENTER','_createSocket','synced','_onMessage','isTransformChangesetsSuccess','\x0aCurrent:\x20','_acknowledgeAwaitingIfReady','_replaceFileID','_resendTimer','IUndoRedoService','batchAllowed','range','OPTIONAL','transformStack\x20failed!','_incrementRevisionNumber','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_onUserLeave','_collaborationPaused','enableSingleActiveInstanceLock','refreshPermission','/-/object/list','JSONX','_socketChannels','accept','retryCount','SheetTransformSelectionsService','IPermissionService','unitType','_singleActiveUnitService','SHOULD_CLOSE_CONN','number','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','some','deserializeToCombResponse','getCollabEntity','2263872PhGNOP','CollaborationAttachmentIoService','LocalUndoRedoService','uuidv4','_scheduleCompleteTimestamp','routeKey','endsWith','resolveUnit','post','_unitInfo$','setWaitCount','event$','[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.','Inject','_stopTelemetryCollaborationNewChangeset','_sendHeartbeat','_createHandler','workbook','mutations','AwaitingState','memberID','_clearRetryConnectingTimer','SheetCollaborationEntity','COMMENT_UPDATE','Plugin','_onConnectionFailed','session.room-cnt-exceeds','fetch_missing','_sessions','UNIVER_BASE','_logService','SUBMIT_CHANGESET_TIMEOUT','_event$','transformMutationsWithChangeset','collaborators','_state','Rectangle','UNIVER_BOARD','SOCKET_FAILED_RETRY','deleteCollaborator','CollaborationSessionService','/role','_networkConditionService','_initRequestHeader','find','packageName','UniverLicensePlugin','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','parseChangesetToProtocol','userID','MUTATION','debug','IMentionIOService','MemberService','encodeURIComponent','params','candidateSocket','getCurrentUser','function','ImageSourceType','location','onTransformIME','/universer-api/stream/file/upload','Workbook','LIVESHARE_REQUEST_HOST','text-x','encode','socket$','_unlockTransition','onRemoteChangeset','_showConflictNotification','ReplaySubject','CONFLICT','_onConflict','_onRecvEvent','capture','fetchThroughInterceptors','Failed\x20to\x20update\x20permission\x20point','updateMember','startsWith','mergeOverrideWithDependencies','DependentOn','LIVESHARE_OPERATION','__Key__','transformUndoRedo','FAIL','[SyncedState]:\x20received\x20acknowledgement.','_permissionService','onRemoteRetry','x-univer-host','changesets','NOT_COLLAB','_pendingMutations','confirm','error','joinEvent','getMemberID','retryConnectingTimer','registerDependencies','unitID','awaiting_with_pending','ERROR_EXCEED_SIZE','objectActions','revision','UNISCRIPT_RUN','HELLO','JOINING','IAuthzIoService','/unit/','[CollaborationSession]','_getDownloadEndpointURL','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','add','getImage','signUrlServerUrl','createIdentifier','_commentUpdate$','_scheduleCollaborationTimeoutTimer','_transformService','map','onTransformState','_checkMissing','_createSession','stringify','endpoint','_commentService','onTransformRemoteChangesetByIMECache','onMissedChangesetFetched','init','_listenToNetworkCondition','dispose$','submit\x20changeset\x20error!','_onUserJoin','_initMergeInterceptor','UniverInstanceType','_initDependencies','getSnapshotAPIPath','_snapshotServerService','_upload','includes','m2Prime','getAllMembers','isTransformMutationsWithChangesetSuccess','getDeserializedSheetBlock','MentionType','Injector','stopTime','ImageUploadStatusType','PendingState','_clearScheduledTask','getGlobalObject','_waitForHeartbeatResponse','then','_doCreateSocket','loadSheet','[CollaborationSessionService]','_sendingTimer','subscribe','originalMeta','action','append','univer-pro.collaboration-client-adapter-service','b64DecodeUnicode','forEach','_telemetryService','state$','RECV','initWorkbookPermissionChange','/universer-api/authz','floor','[CollaborationUndoRedoService]','unknown','_commandService','_shouldReportTelemetry','target','SheetsSelectionsService','_executeRemoteChangeset','_collaborationTimeoutTimer','toggleOffline','touchDependencies','putCollaborators','origin','commentUpdateEvent','symbol','online$','resolve','transformSelections','maxSize','_collaborationUIEventService','message$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_startTelemetryCollaborationNewChangeset','_updateState','_localeService','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','onMutationExecutedForCollab','readAsDataURL','3335605GkLWeZ','/universer-api/snapshot/','@univerjs-pro/collaboration-client','conflict','univer-pro.collaboration-client.network-condition.service','avatar','blockRanges','_socketService','UNIVER_PDF','clear','Univer','_awaitingChangeset','RETRY_CONNECTING_MAX_COUNT_KEY','univer-pro.collaboration-client-socket-service','[DataLoaderService]','_onRemoteRejected','_hasSessionsForEndpoint','FileSource','1014237ogOmoD','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_onConnectionOpen','file','getInterceptPoints','IDLE','updateCursorEvent','SUBMIT_CHANGESET','_tryEnsureSocket','override','AWAITING','disableLocalCache','size','UniverCollaborationPlugin','DEFAULT_COLLAB_WEB_SOCKET_URL','_getSendChangesetTimeout','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_changesetReqId','pluginName','default','socket\x20open.','HEARTBEAT_INTERVAL','COLLABORATION_ENDPOINT_INVALID','UNIVER_COLLABORATION_CLIENT_PLUGIN','UPDATE_CURSOR','getTypeOfUnitDisposed$','PERSON','_HTTPService','?size=','/universer-api/file/{fileID}/sign-url','_getAPIPrefixPath','eventID','SYNCED','hostname','IConfigService','_getLoginPath','session.room-full','sequenceExecute','_submitChangeset','rev','[PendingState]:\x20received\x20acknowledgement.','25735egDfqr','toString','textEncoder','_transformStack','RemoveSlidePageMutation','push','INGEST','toDisposable','ws://127.0.0.1:8000/universer-api/comb/connect','merge','_imageSourceCache','EnsureSlideMasterPageMutation','getUnit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','defineProperty','/rev/','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','fetchMissingChangesets','CollaborationUIEventId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','serializeCombRequest','_memberService','CollaborationController','IAttachmentIoService','Error\x20on\x20receiving\x20event','_transformStateCache','/universer-api/snapshot','_onCombEvent','_joinRoom','ICollaborationSocketService','getCurrentRevOfUnit','apply','_socketMessageSubscription','setConfig','_docStateChangeManagerService','getResourcesRequest','body','getAttachmentUrl','UPDATE_PERMISSION_OBJ','onSyncEditingCollabCursor','timeoutTimer','missingChangesets','_transformRemoteChangesetByIMECache','subUnitId','isArray','BASE64','OFFLINE','enableCollaboration','iterator','/-/object/-/batch_allowed','[CollaborationEntity]','allowed','_sender','disposeWithMe','_exhaustRemoteChangesetQueue','_initCloseConn','/allowed','IImageIoService','getUnitOnRev','_userManagerService','CLOSE_ROOM','_sessionStatus$','UNIVER_DOC','_sheetTransformSelectionsService','_socket','take','onLocalMutation','error$','/new_changes','telemetry\x20info\x20is\x20not\x20initialized','_isEchoedAwaitingChangeset','_applyRemoteChangeset','LIVESHARE_NEW_HOST','csAckEvent','transformChangesets','_toggleOnline','parse','UNIVER_SHEET','[PendingState]:\x20received\x20rejection.','_replayCachedMutations','2210460ByzmYE','UniverNetworkPlugin','call','IContextService','status$','code','ICommandService','splice','requireSession','dispose','Optional','objectType','collaboration-client.auth.needGotoLoginAlert','_identity','onStarting','SheetPermissionInitController','_queuedRemoteChangesets','object','_maxTotalRetryTimeout','liveShareNewHost','LIVESHARE_FETCH_OPERATIONS','CombCmd','706TcOTzL','\x20in\x20_schedule.','name','session.join-failed','[OfflineState]:\x20received\x20rejection.','loadDoc','readyForCollab','unit-cache-','getUnitType','collaboration_new_changeset','[CollaborationSessionService]:\x20socket\x20error','Subject','socketReady','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','collaboratorID','sessionStatus$','_onRemoteRetry','_type','reconnect','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DEFAULT_FILE_NAME','JOIN_ROOM_NOT_EXISTS','_throwTelemetryCollaborationNewChangeset','sessionStatus','_getConfig','emitEvent','_getUndoStack','complete','PdfCollaborationEntity','CollaborativeUndoRedoService','CollaborationUIEventService','replace','CommentService','onSendChangeset','createUniverCollaborationAdapter','values','reduce','downloadEndpointUrl','infoRsp','PENDING','loadSlide','_roomMembers','_sessionChannels','CollaborationEvent','_injector','session.room-not-exists','commentUpdate$','HEARTBEAT','CHANGESET_SHOULD_RETRY','collaMsg','textRanges','AuthzIoHttpService','toPrimitive','[OfflineState]:\x20received\x20acknowledgement.','connection\x20error','onRemoteRej','NEW_CHANGESETS','_registerDependencies','\x20to\x20','not_collab','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','SOCKET_FAILED','_createInitialStateImpl','PSEUDO_FETCH_MISSING_RESULT','_univerInstanceService','PERMISSION_DENIED','/object/','_getUploadFileURL','objectID','ILogService','/block/','_emitMembers','IUniverInstanceService','&assign=','fetchMiss','updateSnapshot','duration','columnGroups','filter','fromCharCode','saveSheetBlock','_localCacheService','_updateStatus','localUnitId','CommandType','CollaborationSocketService','csShouldRetryEvent','&source=','slice','type','reverse','headers','saveChangeset','onTransformRemoteChangesetByStateCache','ThresholdInterceptorFactory','every','socketMessageSubscription','_status$','onMissingChangesets','createInstance','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','href','ISingleActiveUnitService','SessionStatus','saveSnapshot','FETCH_MISSING','_telemetryInfo','106VaMqOA','_getSignURL','_acknowledgeAwaiting','_revisionService','withCredentials','_updateLocalCache','onCommentUpdate','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_entityInit$','Disposable','_clearCollaborationTimeoutTimer','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','list','isPermissionRej','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','createSocket','_getCtorByUniverInstanceType','method','_snapshotService','_transformAndApplyRemoteChangeset','OTHER_CLIENT_EDITING','snapshot','UniverCollaborationClientPlugin','charCodeAt','ISocketService','sid','unsubscribe','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','EmptyMutationInfo','HEARTBEAT_TIMEOUT_KEY','LEAVE','AwaitingWithPendingState','_transitionLocked','fetching\x20missing\x20changesets\x20from\x20','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','RevisionService','_resendWithTimeout','_remoteChangesetQueue','OTHER_CLIENTS_EDITING','JOIN_ROOM_FULL','ONLINE','__splitChunk__','resourceIDs','permissionRejEvent','HTTPRequest','_members','now','RETRY_CONNECTING_MAX_COUNT','uniscriptRunEvent','_eventService','POST','_resolveSessionIdentity','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getActiveSheet','changeset','responseType','_handlerCallback','requestParams','getImageSourceCache','toggleOnline','close','concatMap','_clearTimeoutTimer','min','getUploadOptions','state','ILocalCacheService','_onFetchMissResult','toStringTag','_configService','CHANGESET_ACK','session','_onJoinRoomEvent','equals','removeMember','prototype','_adapter','HEARTBEAT_TIMEOUT','869dSkahd','closeSession','JOIN_ROOM_FAILED','_acknowledgedAwaitingRevision','loadUnitOfRevision','getLocalCacheKey','_rescheduleHeartbeat','sendHeartbeatTimer','objects','SetSelectionsOperation','_tryReconnect','incrementRevOfUnit','_handler','setCfgEnableObjInherit','saveAttachment','BaseCollaborationEntity','localeService','get','max','utf8ToBytes','onRemoteAck','saveImage','UserManagerService','title','_config','_waitCount','unitLoaded$','_handleRemoteChangesets','update','getConfig','MentionIoHttpService','delay','_members$','ITransformService','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SNAPSHOT_URL_KEY','getFocusedUnit','_onRemoteACK','USERS_LEAVE','_onOffline','socketService','_httpService','COMPRESS_MUTATION_SEND','has','_onLocalMutation','isInternalEditorID','_collaborationSessionService','RichTextEditingMutation','_instanceService','DisposableCollection','trim','onTransformSelections','listCollaborators','?url=','ERROR_IMAGE','upload','createCollaborator','_decreaseWaiting','NO_OTHER_CLIENTS_EDITING','set','CHANGESET_REJ','/collaborator','/object','next','_substituteRedoStack','ErrorCode','Module','MSG_FOR_ERROR','unitId\x20is\x20not\x20found','pipe','randomBytes','ISnapshotServerService','/fetchmissing?from=','reject','addImageSourceCache','getDrawingImageAllowSize','CollaborationImageIoService','getMember','getTypeOfUnitAdded$','delete','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','/universer-api/user/session-ticket','focused$','getValue','save\x20fail\x20reason\x20is\x20','DataLoaderService','Tools','RxDisposable','_transformSelections','loadOfflineData','attachment','35320pnOvOm','UUID','SUCCUSS','_undoRedoService','resend','_resendTimeout','change$','WorkbookEditablePermission','updatePermissionPoint','FileId','close$','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','members','onlyLocal','LocaleService','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','uploadFileServerUrl','send','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getWorkbookSelections','isTransformMutationsWithChangesetFailure','FetchingMissState','getTime','_getCurrentRevision','selections','_getRedoStack','DRAWING_IMAGE_ALLOW_IMAGE_LIST','length','_getAPIPrefix','firstValueFrom','from','appendMutation','CollaborationStatus','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','takeUntil','PERMISSION_REJ','c1Prime','collabWebSocketUrl','_change$','mapDocumentTypeToUniverInstanceType','updateOfflineData','catch','_fetchMissChangesets','baseRev','UNIVER_SLIDE','_schedule','_getSocketChannel','_clearRedo','liveShareOperation','_pendingSessions','_toggleOffline','asObservable','DocCollaborationEntity','loginUrlKey','_transformUndoredo','OfflineState','[CollaborationState]:\x20apply\x20error!','base-ui.attachment-io.service','getSheetBlock','JOIN','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','People','authzUrl','endpointKey','_clearHeartbeatTimer','loadBase','collabSubmitChangesetUrl','collaboration-client.config','unitId','loadBoard','_clearLocalCache','unit','actions','getUnitId','FETCH_MISS','InsertSheetMutation','COMPRESS_MUTATION_APPLY','_compressMutationService','hasOwnProperty','addHandlerCallback','_unitLoaded$','enableOfflineEditing','setShowComponents','_initUnitPermissionChange','onload','decorate','registerHTTPInterceptor','sendChangesetTimeout','_entities','HTTPService','resolveWithBasePath','fromCollab','_removeRoom','_init','BehaviorSubject','roomInfos','_lockTransition','_syncEditingCollabCursor','subject','backupOfflineData','_roomCreated$','CmdRspCode','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','pending','_changesetSessionId','editingUnit','{fileID}','_transformIMECache','string','CompressMutationService','reqId','loadUnit','DocStateChangeManagerService','UnitEmbedded','localCacheService','executeCommand','status','\x0aAfter:\x20','joinRsp','put','unitInfo$','awaiting','url','9BuvOCr','[SyncedState]:\x20received\x20rejection.'];_0x3596=function(){return _0xb584ba;};return _0x3596();}function Ie(_0x35f374,_0x574e61){const _0x2ac3f2=_0x54dd88;let _0x52a71c=new i[(_0x2ac3f2(0x3f3))](0x1);return setTimeout(()=>_0x52a71c[_0x2ac3f2(0x2d8)](_0x574e61),_0x35f374),_0x52a71c[_0x2ac3f2(0x327)]()['pipe']((0x0,i['take'])(0x1));}var Le,Re,ze;let Be=function(_0x12941f){const _0xcf0146=_0x54dd88;return _0x12941f[_0xcf0146(0x407)]=_0xcf0146(0x21b),_0x12941f[_0xcf0146(0x171)]=_0xcf0146(0x38b),_0x12941f[_0xcf0146(0x207)]=_0xcf0146(0x35b),_0x12941f[_0xcf0146(0x15b)]=_0xcf0146(0x36d),_0x12941f['AWAITING_WITH_PENDING']=_0xcf0146(0x410),_0x12941f[_0xcf0146(0x33e)]='fetch_missing',_0x12941f['CONFLICT']=_0xcf0146(0x142),_0x12941f['OFFLINE']='offline',_0x12941f;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x546f14,_0x5dc2c,_0x4cf9bd,_0x23a1a3,_0x549e52,_0x4875e7,_0x2b60fb,_0x450394,_0x897ff5){const _0x29553d=_0x54dd88;this[_0x29553d(0x40f)]=_0x546f14,this[_0x29553d(0x239)]=_0x5dc2c,this['_handler']=_0x549e52,this['_commandService']=_0x4875e7,this[_0x29553d(0x2f7)]=_0x2b60fb,this[_0x29553d(0x24e)]=_0x450394,this[_0x29553d(0x231)]=_0x897ff5,g(this,_0x29553d(0x14a),null),g(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x4cf9bd,this[_0x29553d(0x408)]=_0x23a1a3;}[_0x54dd88(0x425)](_0x1b15e3){const _0x45ecae=_0x54dd88;let _0x1aad58=this[_0x45ecae(0x24e)][_0x45ecae(0x198)](this[_0x45ecae(0x40f)]);return _0x1b15e3[_0x45ecae(0x413)]>_0x1aad58+0x1?(this['_handler'][_0x45ecae(0x242)]({'from':_0x1aad58,'to':_0x1b15e3[_0x45ecae(0x413)]-0x1}),!0x0):!0x1;}[_0x54dd88(0x32a)](_0x17b858){const _0x1ed126=_0x54dd88;this[_0x1ed126(0x2f7)][_0x1ed126(0x400)](this[_0x1ed126(0x40f)],_0x17b858);}[_0x54dd88(0x2f1)](_0x21f52d){const _0x4ae7df=_0x54dd88;var _0x24eb7d,_0x16269c;(_0x24eb7d=(_0x16269c=this[_0x4ae7df(0x2a5)])[_0x4ae7df(0x2cc)])==null||_0x24eb7d[_0x4ae7df(0x1cc)](_0x16269c,_0x21f52d);}[_0x54dd88(0x35f)](_0xb33aee){const _0x5a3e15=_0x54dd88;var _0x293d30,_0x585b32;return(_0x293d30=(_0x585b32=this[_0x5a3e15(0x2a5)])[_0x5a3e15(0x3e9)])==null?void 0x0:_0x293d30[_0x5a3e15(0x1cc)](_0x585b32,_0xb33aee);}['_transformStateCache'](_0x1dbbf9){const _0x5f2cdc=_0x54dd88;var _0x46f9a1,_0xb087e2;return(_0x46f9a1=(_0xb087e2=this[_0x5f2cdc(0x2a5)])[_0x5f2cdc(0x424)])==null?void 0x0:_0x46f9a1[_0x5f2cdc(0x1cc)](_0xb087e2,_0x1dbbf9);}[_0x54dd88(0x1a4)](_0x58e801){const _0x2bec27=_0x54dd88;var _0x5bb273,_0x3e744c;return((_0x5bb273=(_0x3e744c=this['_handler'])[_0x2bec27(0x42a)])==null?void 0x0:_0x5bb273[_0x2bec27(0x1cc)](_0x3e744c,_0x58e801))??_0x58e801;}[_0x54dd88(0x383)](_0x290aa6){const _0x1443f2=_0x54dd88;var _0x3808b6,_0x380dad;return((_0x3808b6=(_0x380dad=this[_0x1443f2(0x2a5)])[_0x1443f2(0x23d)])==null?void 0x0:_0x3808b6[_0x1443f2(0x1cc)](_0x380dad,_0x290aa6))??_0x290aa6;}[_0x54dd88(0x355)](_0x971370){const _0x160628=_0x54dd88;if(this['type']===t['UniverInstanceType'][_0x160628(0x1b8)]){let {unitID:_0x432dd6,mutations:_0x21e681,memberID:_0x6ec233}=_0x971370,_0x55bd23=_0x21e681[_0x160628(0x30f)]>0x0?_0x21e681[0x0][_0x160628(0x3e3)]['textRanges']:[];if(Array['isArray'](_0x55bd23)&&_0x55bd23[_0x160628(0x30f)]>0x0){var _0x5c3fb5,_0x5063b9;(_0x5c3fb5=(_0x5063b9=this[_0x160628(0x2a5)])[_0x160628(0x1a1)])==null||_0x5c3fb5['call'](_0x5063b9,{'unitID':_0x432dd6,'memberID':_0x6ec233,'textRanges':_0x55bd23});}}}[_0x54dd88(0x250)](){const _0x4ffb62=_0x54dd88;var _0x487ba0;(_0x487ba0=this[_0x4ffb62(0x231)])==null||_0x487ba0[_0x4ffb62(0x31c)](this['unitID'],this['type'],this[_0x4ffb62(0x14a)],this['_pendingMutations']);}[_0x54dd88(0x30b)](){const _0x16e046=_0x54dd88;return this[_0x16e046(0x24e)][_0x16e046(0x198)](this[_0x16e046(0x40f)]);}[_0x54dd88(0x397)](){const _0x27843d=_0x54dd88;this[_0x27843d(0x24e)][_0x27843d(0x2a4)](this[_0x27843d(0x40f)]);}[_0x54dd88(0x12a)](_0x13a4c0){const _0x3a67dd=_0x54dd88;let _0x1f0125=this['_transformRemoteChangesetByIMECache'](_0x13a4c0);_0x1f0125=this[_0x3a67dd(0x383)](_0x1f0125);let _0x3e08e8=(0x0,t[_0x3a67dd(0x176)])(_0x1f0125[_0x3a67dd(0x3be)],this[_0x3a67dd(0x126)],{'fromCollab':!0x0});if(!_0x3e08e8[_0x3a67dd(0x380)])throw _0x3e08e8[_0x3a67dd(0x40a)]instanceof Error?_0x3e08e8[_0x3a67dd(0x40a)]:Error(_0x3e08e8['error']??_0x3a67dd(0x32c));this[_0x3a67dd(0x35f)](_0x1f0125),this[_0x3a67dd(0x193)](_0x1f0125),this['_transformUndoredo'](_0x13a4c0),this[_0x3a67dd(0x2f1)](_0x1f0125),this['_syncEditingCollabCursor'](_0x1f0125),this['_incrementRevisionNumber']();}};let D=class extends E{constructor(_0x38ad34,_0x203377,_0x79ab1c,_0x4b3131,_0x349f16,_0x4171a1,_0x13b7b7,_0x30af5b,_0xe65196,_0x34f109){const _0x3a9745=_0x54dd88;super(_0x38ad34,_0x203377,null,[],_0x79ab1c,_0x13b7b7,_0x4171a1,_0x4b3131,_0x34f109),this[_0x3a9745(0x20c)]=_0x349f16,this[_0x3a9745(0x3ca)]=_0x30af5b,this['_transformService']=_0xe65196,this[_0x3a9745(0x366)]=_0x34f109,g(this,'status',_0x3a9745(0x38b));}['appendMutation'](_0x4f9329){const _0x1cdf88=_0x54dd88;let _0x329a58=this['_injector'][_0x1cdf88(0x243)](O,this['unitID'],this[_0x1cdf88(0x239)],[_0x4f9329],this[_0x1cdf88(0x2a5)]);return _0x329a58['_schedule'](),_0x329a58[_0x1cdf88(0x250)](),_0x329a58;}[_0x54dd88(0x3f1)](_0x4180ec){const _0x3589f7=_0x54dd88;if(this[_0x3589f7(0x425)](_0x4180ec))return this[_0x3589f7(0x20c)][_0x3589f7(0x243)](N,this[_0x3589f7(0x40f)],this['type'],null,[],null,[_0x4180ec],this[_0x3589f7(0x2a5)]);try{let _0x48fabc=this[_0x3589f7(0x422)][_0x3589f7(0x3cd)](_0x4180ec,[e[_0x3589f7(0x267)]]);if((0x0,e[_0x3589f7(0x43a)])(_0x48fabc)){let {c1Prime:_0x592532}=_0x48fabc;return this[_0x3589f7(0x12a)](_0x592532),this;}throw _0x48fabc[_0x3589f7(0x40a)];}catch(_0x21e85c){return this['_logService'][_0x3589f7(0x40a)](_0x21e85c),this[_0x3589f7(0x3f5)](!0x1);}}[_0x54dd88(0x3f5)](_0x44baa2){const _0x5581f5=_0x54dd88;return this['_injector'][_0x5581f5(0x243)](j,this[_0x5581f5(0x40f)],this[_0x5581f5(0x239)],null,[],this[_0x5581f5(0x2a5)],_0x44baa2);}[_0x54dd88(0x2ad)](_0x29675d){const _0xf9c4f9=_0x54dd88;if(_0x29675d[_0xf9c4f9(0x413)]<=this['_getCurrentRevision']())return this;throw Error(_0xf9c4f9(0x402));}[_0x54dd88(0x217)](){const _0xa1266d=_0x54dd88;throw Error(_0xa1266d(0x370));}[_0x54dd88(0x404)](){return this;}['toggleOffline'](){const _0x176252=_0x54dd88;return this['_injector'][_0x176252(0x243)](M,this[_0x176252(0x40f)],this[_0x176252(0x239)],null,[],this[_0x176252(0x2a5)]);}['toggleOnline'](){return this;}['resend'](){const _0x8f94c3=_0x54dd88;throw Error(_0x8f94c3(0x138));}[_0x54dd88(0x22a)](){const _0x15ebc6=_0x54dd88;let _0x7e3a32=this[_0x15ebc6(0x24e)][_0x15ebc6(0x198)](this[_0x15ebc6(0x40f)]);return this[_0x15ebc6(0x2a5)]['onMissingChangesets']({'from':_0x7e3a32,'to':0x0}),this[_0x15ebc6(0x20c)]['createInstance'](N,this[_0x15ebc6(0x40f)],this[_0x15ebc6(0x239)],null,[],null,[],this[_0x15ebc6(0x2a5)]);}};D=y([v(0x3,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x5,t['IUndoRedoService']),v(0x6,t[_0x54dd88(0x1d0)]),v(0x7,t[_0x54dd88(0x225)]),v(0x8,e[_0x54dd88(0x2ba)]),v(0x9,(0x0,t[_0x54dd88(0x1d4)])(x))],D);let O=Le=class extends E{constructor(_0x5db8db,_0x2287b3,_0x4ab43d,_0x41b390,_0x1ea23f,_0x450f4a,_0x282145,_0x47eec6,_0x438ae8,_0x228358,_0x2e44bd,_0x127a13,_0x49e5a4,_0xf00401){const _0x91ec91=_0x54dd88;super(_0x5db8db,_0x2287b3,null,_0x4ab43d,_0x41b390,_0x438ae8,_0x49e5a4,_0x450f4a,_0xf00401),this[_0x91ec91(0x20c)]=_0x1ea23f,this[_0x91ec91(0x1b5)]=_0x282145,this[_0x91ec91(0x3ca)]=_0x47eec6,this[_0x91ec91(0x290)]=_0x228358,this[_0x91ec91(0x422)]=_0x2e44bd,this[_0x91ec91(0x220)]=_0x127a13,g(this,'status',_0x91ec91(0x35b)),g(this,'_scheduleCompleteTimestamp',null),g(this,_0x91ec91(0x448),null);}[_0x54dd88(0x313)](_0x47f3ce){const _0x1a9d22=_0x54dd88;return this['_pendingMutations'][_0x1a9d22(0x17f)](_0x47f3ce),this[_0x1a9d22(0x250)](),this;}['onRemoteChangeset'](_0x2cbb18){const _0x3be44b=_0x54dd88;if(this[_0x3be44b(0x425)](_0x2cbb18))return this[_0x3be44b(0x441)](),this['_injector'][_0x3be44b(0x243)](N,this['unitID'],this[_0x3be44b(0x239)],null,this[_0x3be44b(0x408)],null,[_0x2cbb18],this[_0x3be44b(0x2a5)]);try{let _0x214815=this[_0x3be44b(0x422)][_0x3be44b(0x3cd)](_0x2cbb18,this[_0x3be44b(0x408)]);if((0x0,e[_0x3be44b(0x43a)])(_0x214815)){let {c1Prime:_0x1cd22a,m2Prime:_0x541a02}=_0x214815;this[_0x3be44b(0x12a)](_0x1cd22a);let _0x11e141=this[_0x3be44b(0x20c)][_0x3be44b(0x243)](Le,this[_0x3be44b(0x40f)],this[_0x3be44b(0x239)],_0x541a02,this[_0x3be44b(0x2a5)]);this['_clearScheduledTask']();let _0x54c0e2=new Date()[_0x3be44b(0x30a)](),_0x5dad66=this[_0x3be44b(0x3b0)]?Math[_0x3be44b(0x2ab)](this[_0x3be44b(0x3b0)]-_0x54c0e2,0x0):this[_0x3be44b(0x160)]();return _0x11e141['_schedule'](_0x5dad66),_0x11e141;}throw _0x214815[_0x3be44b(0x40a)];}catch(_0x289d64){return this[_0x3be44b(0x3ca)][_0x3be44b(0x40a)](_0x289d64),this[_0x3be44b(0x3f5)](!0x1);}}['onRemoteAck'](_0x4f0286){const _0xf24fb5=_0x54dd88;if(_0x4f0286['revision']<=this[_0xf24fb5(0x30b)]())return this;throw Error(_0xf24fb5(0x179));}[_0x54dd88(0x217)](){const _0x405346=_0x54dd88;throw Error(_0x405346(0x1c8));}[_0x54dd88(0x404)](){return this;}['toggleOffline'](){const _0x2a680e=_0x54dd88;return this[_0x2a680e(0x441)](),this[_0x2a680e(0x20c)][_0x2a680e(0x243)](M,this['unitID'],this[_0x2a680e(0x239)],null,this[_0x2a680e(0x408)],this[_0x2a680e(0x2a5)]);}[_0x54dd88(0x286)](){return this;}[_0x54dd88(0x321)](_0x789c77){const _0x27a81e=_0x54dd88;let _0x2fb441=_0x789c77??this['_getSendChangesetTimeout']();this[_0x27a81e(0x3b0)]=new Date()[_0x27a81e(0x30a)]()+_0x2fb441,this[_0x27a81e(0x448)]=setTimeout(()=>{const _0x175950=_0x27a81e;this[_0x175950(0x441)]();let _0x39786c=null;switch(this['type']){case t[_0x175950(0x432)][_0x175950(0x1c7)]:_0x39786c=w(this[_0x175950(0x408)],this[_0x175950(0x40f)],this[_0x175950(0x220)],this['_revisionService'],this[_0x175950(0x1b5)]);break;case t[_0x175950(0x432)][_0x175950(0x1b8)]:_0x39786c=this[_0x175950(0x408)]['every'](_0x151e65=>_0x151e65['id']===n[_0x175950(0x2c8)]['id'])?Oe(this['_pendingMutations'],this[_0x175950(0x40f)],this['_univerInstanceService'],this['_revisionService'],this[_0x175950(0x1b5)]):w(this['_pendingMutations'],this[_0x175950(0x40f)],this['_univerInstanceService'],this[_0x175950(0x24e)],this[_0x175950(0x1b5)]);break;case t[_0x175950(0x432)]['UNIVER_SLIDE']:_0x39786c=De(this['_pendingMutations'],this[_0x175950(0x40f)],this[_0x175950(0x220)],this[_0x175950(0x24e)],this[_0x175950(0x1b5)]);break;case t[_0x175950(0x432)][_0x175950(0x147)]:_0x39786c=Ee(this[_0x175950(0x408)],this[_0x175950(0x40f)],this[_0x175950(0x220)],this[_0x175950(0x24e)],this[_0x175950(0x1b5)]);break;case t[_0x175950(0x432)][_0x175950(0x3d1)]:_0x39786c=w(this[_0x175950(0x408)],this[_0x175950(0x40f)],this[_0x175950(0x220)],this[_0x175950(0x24e)],this['_userManagerService']);break;case t[_0x175950(0x432)][_0x175950(0x3c9)]:_0x39786c=w(this[_0x175950(0x408)],this[_0x175950(0x40f)],this[_0x175950(0x220)],this['_revisionService'],this[_0x175950(0x1b5)]);break;default:throw Error(_0x175950(0x252)+this['type']+_0x175950(0x1e1));}let {changeset:_0x32d528,pendingMutations:_0xb55a8}=_0x39786c;this['_handler'][_0x175950(0x201)](_0x32d528);let _0x312aa6=_0xb55a8[_0x175950(0x30f)]?this[_0x175950(0x20c)]['createInstance'](A,this[_0x175950(0x40f)],this[_0x175950(0x239)],_0x32d528,_0xb55a8,this[_0x175950(0x2a5)],void 0x0):this[_0x175950(0x20c)][_0x175950(0x243)](k,this[_0x175950(0x40f)],this[_0x175950(0x239)],_0x32d528,this['_handler']);_0x312aa6['_updateLocalCache'](),this[_0x175950(0x2a5)]['onStateChange'](this,_0x312aa6);},_0x2fb441);}['_getSendChangesetTimeout'](){const _0x59c168=_0x54dd88;let _0x443b2f=this[_0x59c168(0x290)][_0x59c168(0x2b6)](m);return(_0x443b2f==null?void 0x0:_0x443b2f[_0x59c168(0x34b)])??0x7d0;}[_0x54dd88(0x2f8)](){const _0x1d4194=_0x54dd88;throw Error(_0x1d4194(0x266));}[_0x54dd88(0x441)](){const _0x5e051e=_0x54dd88;this[_0x5e051e(0x448)]!=null&&(clearTimeout(this[_0x5e051e(0x448)]),this[_0x5e051e(0x448)]=null);}[_0x54dd88(0x3f5)](_0x198e60){const _0x178376=_0x54dd88;return this[_0x178376(0x441)](),this[_0x178376(0x20c)][_0x178376(0x243)](j,this['unitID'],this[_0x178376(0x239)],null,this[_0x178376(0x408)],this[_0x178376(0x2a5)],_0x198e60);}};O=Le=y([v(0x4,(0x0,t['Inject'])(t[_0x54dd88(0x43d)])),v(0x5,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0x6,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x2af)])),v(0x7,t['ILogService']),v(0x8,t['ICommandService']),v(0x9,t[_0x54dd88(0x173)]),v(0xa,e[_0x54dd88(0x2ba)]),v(0xb,t[_0x54dd88(0x228)]),v(0xc,t[_0x54dd88(0x392)]),v(0xd,(0x0,t[_0x54dd88(0x1d4)])(x))],O);let k=Re=class extends E{constructor(_0x5a2190,_0x5a2115,_0x4c42dd,_0x531c2a,_0x3594df,_0x3a8155,_0x1e41cc,_0x9e1e3b,_0xaa76c6,_0x370b79,_0x52bb03){const _0x1cff50=_0x54dd88;super(_0x5a2190,_0x5a2115,_0x4c42dd,[],_0x531c2a,_0x1e41cc,_0x370b79,_0x3a8155,_0x52bb03),this[_0x1cff50(0x20c)]=_0x3594df,this[_0x1cff50(0x3ca)]=_0x9e1e3b,this['_transformService']=_0xaa76c6,g(this,_0x1cff50(0x368),_0x1cff50(0x36d)),g(this,'_resendTimeout',0x0),g(this,_0x1cff50(0x1dc),0x0),g(this,_0x1cff50(0x391),void 0x0),g(this,_0x1cff50(0x1ae),void 0x0);}['appendMutation'](_0x4275fa){const _0x36eba0=_0x54dd88;this[_0x36eba0(0x441)]();let _0x450ed4=this[_0x36eba0(0x20c)][_0x36eba0(0x243)](A,this[_0x36eba0(0x40f)],this[_0x36eba0(0x239)],this[_0x36eba0(0x14a)],[_0x4275fa],this[_0x36eba0(0x2a5)],this['_resendTimer']);return _0x450ed4[_0x36eba0(0x250)](),_0x450ed4;}[_0x54dd88(0x3f1)](_0x3e1025){const _0x3c767e=_0x54dd88;if(this[_0x3c767e(0x425)](_0x3e1025))return this[_0x3c767e(0x441)](),this[_0x3c767e(0x20c)][_0x3c767e(0x243)](N,this[_0x3c767e(0x40f)],this[_0x3c767e(0x239)],this['_awaitingChangeset'],[],null,[_0x3e1025],this[_0x3c767e(0x2a5)]);try{let _0x76ff96=this[_0x3c767e(0x422)][_0x3c767e(0x1c4)]([_0x3e1025],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x3c767e(0x38d)])(_0x76ff96)){let {c1Prime:_0x7b3604,c2Prime:_0x3504ca}=_0x76ff96;this[_0x3c767e(0x12a)](_0x7b3604[0x0]),_0x3504ca[0x0][_0x3c767e(0x31f)]=this[_0x3c767e(0x30b)](),this[_0x3c767e(0x441)]();let _0x388c91=this[_0x3c767e(0x20c)][_0x3c767e(0x243)](Re,this[_0x3c767e(0x40f)],this[_0x3c767e(0x239)],_0x3504ca[0x0],this[_0x3c767e(0x2a5)]);return _0x388c91[_0x3c767e(0x250)](),_0x388c91;}throw _0x76ff96['error'];}catch(_0x53b719){return this[_0x3c767e(0x3ca)][_0x3c767e(0x40a)](_0x53b719),this[_0x3c767e(0x3f5)](!0x1);}}[_0x54dd88(0x2ad)](_0xff5133){const _0x5fab48=_0x54dd88;this[_0x5fab48(0x441)]();let _0x1c907b=this['_revisionService'][_0x5fab48(0x198)](this[_0x5fab48(0x40f)]);if(_0xff5133[_0x5fab48(0x413)]<=_0x1c907b)return this;if(this[_0x5fab48(0x425)](_0xff5133))return this[_0x5fab48(0x20c)][_0x5fab48(0x243)](N,this[_0x5fab48(0x40f)],this[_0x5fab48(0x239)],this['_awaitingChangeset'],[],_0xff5133[_0x5fab48(0x413)],[],this[_0x5fab48(0x2a5)]);this[_0x5fab48(0x397)]();let _0x26e98d=this[_0x5fab48(0x20c)][_0x5fab48(0x243)](D,this['unitID'],this[_0x5fab48(0x239)],this['_handler']);return _0x26e98d['_updateLocalCache'](),_0x26e98d;}[_0x54dd88(0x217)](_0x578e76){const _0x586b46=_0x54dd88;return this[_0x586b46(0x3f5)](!!(_0x578e76!=null&&_0x578e76[_0x586b46(0x258)]));}[_0x54dd88(0x404)](_0x5a59ad){const _0x5f451b=_0x54dd88;return this[_0x5f451b(0x1dc)]>He?this['toggleOffline']():(this[_0x5f451b(0x391)]=Ie(this[_0x5f451b(0x2f9)],{'timeout':this[_0x5f451b(0x2f9)],'reqId':_0x5a59ad['reqId']}),this['_sender']=this[_0x5f451b(0x391)][_0x5f451b(0x449)](({reqId:_0x21170b,timeout:_0x2b93f2})=>{const _0x162097=_0x5f451b;this[_0x162097(0x26f)](_0x21170b,_0x2b93f2);}),this);}[_0x54dd88(0x12c)](){const _0x3a3fe5=_0x54dd88;return this['_clearScheduledTask'](),this[_0x3a3fe5(0x20c)][_0x3a3fe5(0x243)](M,this[_0x3a3fe5(0x40f)],this[_0x3a3fe5(0x239)],this[_0x3a3fe5(0x14a)],[],this[_0x3a3fe5(0x2a5)]);}[_0x54dd88(0x286)](){return this;}[_0x54dd88(0x2f8)](){const _0xbb346e=_0x54dd88;this[_0xbb346e(0x2a5)][_0xbb346e(0x201)](this['_awaitingChangeset']);}[_0x54dd88(0x3f5)](_0x1dda08){const _0x823196=_0x54dd88;return this[_0x823196(0x441)](),this['_injector']['createInstance'](j,this['unitID'],this['type'],this['_awaitingChangeset'],[],this[_0x823196(0x2a5)],_0x1dda08);}[_0x54dd88(0x26f)](_0x59c76d,_0x2eadaf){const _0x48bf08=_0x54dd88;var _0x8dee1d;_0x59c76d===((_0x8dee1d=this[_0x48bf08(0x14a)])==null?void 0x0:_0x8dee1d[_0x48bf08(0x362)])&&(this[_0x48bf08(0x2f8)](),this['_resendTimeout']=_0x2eadaf===0x0?0x3e8:Math[_0x48bf08(0x28a)](_0x2eadaf*0x2,Ve),this[_0x48bf08(0x1dc)]+=this[_0x48bf08(0x2f9)]);}[_0x54dd88(0x441)](){const _0x5b64de=_0x54dd88;var _0x48b707;(_0x48b707=this[_0x5b64de(0x1ae)])==null||_0x48b707[_0x5b64de(0x265)](),this['_resendTimeout']=0x0,this[_0x5b64de(0x1dc)]=0x0;}};k=Re=y([v(0x4,(0x0,t['Inject'])(t[_0x54dd88(0x43d)])),v(0x5,(0x0,t['Inject'])(e[_0x54dd88(0x26e)])),v(0x6,t[_0x54dd88(0x1d0)]),v(0x7,t['ILogService']),v(0x8,e[_0x54dd88(0x2ba)]),v(0x9,t[_0x54dd88(0x392)]),v(0xa,(0x0,t[_0x54dd88(0x1d4)])(x))],k);let A=ze=class extends E{constructor(_0xac4bbb,_0x7a5fee,_0x1ae32a,_0x181dbd,_0x30b26f,_0x5b3b75,_0x5ebf9e,_0x1f36ce,_0x4969a1,_0x54cda1,_0x312181,_0x137a22,_0x380780){const _0xd105ff=_0x54dd88;super(_0xac4bbb,_0x7a5fee,_0x1ae32a,_0x181dbd,_0x30b26f,_0x4969a1,_0x137a22,_0x1f36ce,_0x380780),this[_0xd105ff(0x20c)]=_0x5ebf9e,this['_logService']=_0x54cda1,this[_0xd105ff(0x422)]=_0x312181,this[_0xd105ff(0x366)]=_0x380780,g(this,_0xd105ff(0x368),'awaiting_with_pending'),g(this,_0xd105ff(0x2f9),0x0),g(this,_0xd105ff(0x1dc),0x0),g(this,_0xd105ff(0x391),void 0x0),g(this,'_sender',void 0x0),_0x5b3b75&&(this['_resendTimer']=_0x5b3b75,this[_0xd105ff(0x1ae)]=this[_0xd105ff(0x391)][_0xd105ff(0x449)](({reqId:_0x5a85a3,timeout:_0x589160})=>{const _0x4036bb=_0xd105ff;this[_0x4036bb(0x26f)](_0x5a85a3,_0x589160);}));}[_0x54dd88(0x313)](_0xa57d4b){const _0x2662e3=_0x54dd88;return this[_0x2662e3(0x408)]['push'](_0xa57d4b),this;}[_0x54dd88(0x3f1)](_0x4bc152){const _0x42afe4=_0x54dd88;if(this[_0x42afe4(0x425)](_0x4bc152))return this['_clearScheduledTask'](),this[_0x42afe4(0x20c)]['createInstance'](N,this[_0x42afe4(0x40f)],this[_0x42afe4(0x239)],this[_0x42afe4(0x14a)],this[_0x42afe4(0x408)],null,[_0x4bc152],this[_0x42afe4(0x2a5)]);try{let _0x586bc3=this[_0x42afe4(0x422)][_0x42afe4(0x1c4)]([_0x4bc152],[this[_0x42afe4(0x14a)]],!0x1);if((0x0,e[_0x42afe4(0x38d)])(_0x586bc3)){let {c1Prime:_0x42abf7,c2Prime:_0x1afd94}=_0x586bc3,_0x3e2c49=this[_0x42afe4(0x422)][_0x42afe4(0x3cd)](_0x42abf7[0x0],this[_0x42afe4(0x408)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x3e2c49)){let {c1Prime:_0x4ae5d7,m2Prime:_0x39714c}=_0x3e2c49;return this[_0x42afe4(0x12a)](_0x4ae5d7),_0x1afd94[0x0][_0x42afe4(0x31f)]=this['_getCurrentRevision'](),this[_0x42afe4(0x441)](),this['_injector'][_0x42afe4(0x243)](ze,this[_0x42afe4(0x40f)],this['type'],_0x1afd94[0x0],_0x39714c,this[_0x42afe4(0x2a5)],void 0x0);}throw _0x3e2c49[_0x42afe4(0x40a)];}throw _0x586bc3['error'];}catch(_0x57a720){return this[_0x42afe4(0x3ca)][_0x42afe4(0x40a)](_0x57a720),this['_onConflict'](!0x1);}}[_0x54dd88(0x2ad)](_0x42b207){const _0xa22190=_0x54dd88;this[_0xa22190(0x441)]();let _0x82ebb8=this[_0xa22190(0x30b)]();if(_0x42b207[_0xa22190(0x413)]<=_0x82ebb8)return this;if(this[_0xa22190(0x425)](_0x42b207))return this[_0xa22190(0x20c)][_0xa22190(0x243)](N,this[_0xa22190(0x40f)],this[_0xa22190(0x239)],this[_0xa22190(0x14a)],this['_pendingMutations'],_0x42b207[_0xa22190(0x413)],[],this[_0xa22190(0x2a5)]);this[_0xa22190(0x397)]();let _0x1becce=this[_0xa22190(0x20c)]['createInstance'](O,this[_0xa22190(0x40f)],this[_0xa22190(0x239)],this[_0xa22190(0x408)],this[_0xa22190(0x2a5)]);return _0x1becce[_0xa22190(0x321)](),_0x1becce[_0xa22190(0x250)](),_0x1becce;}[_0x54dd88(0x217)](_0xaeb5a6){const _0x28df23=_0x54dd88;return this[_0x28df23(0x3f5)](!!(_0xaeb5a6!=null&&_0xaeb5a6[_0x28df23(0x258)]));}['onRemoteRetry'](_0x325966){const _0x274f7d=_0x54dd88;return this[_0x274f7d(0x1dc)]>He?this[_0x274f7d(0x12c)]():(this[_0x274f7d(0x391)]=Ie(this[_0x274f7d(0x2f9)],{'timeout':this[_0x274f7d(0x2f9)],'reqId':_0x325966[_0x274f7d(0x362)]}),this[_0x274f7d(0x1ae)]=this[_0x274f7d(0x391)]['subscribe'](({reqId:_0x3fdb2e,timeout:_0x1eb82f})=>{const _0x2e83da=_0x274f7d;this[_0x2e83da(0x26f)](_0x3fdb2e,_0x1eb82f);}),this);}[_0x54dd88(0x12c)](){const _0x3744f9=_0x54dd88;return this[_0x3744f9(0x441)](),this[_0x3744f9(0x20c)][_0x3744f9(0x243)](M,this['unitID'],this[_0x3744f9(0x239)],this[_0x3744f9(0x14a)],this[_0x3744f9(0x408)],this[_0x3744f9(0x2a5)]);}[_0x54dd88(0x286)](){return this;}[_0x54dd88(0x2f8)](){const _0x1a22bf=_0x54dd88;this[_0x1a22bf(0x2a5)][_0x1a22bf(0x201)](this[_0x1a22bf(0x14a)]);}[_0x54dd88(0x3f5)](_0xb397ad){const _0x1e0a73=_0x54dd88;return this[_0x1e0a73(0x441)](),this['_injector'][_0x1e0a73(0x243)](j,this[_0x1e0a73(0x40f)],this[_0x1e0a73(0x239)],null,this[_0x1e0a73(0x408)],this[_0x1e0a73(0x2a5)],_0xb397ad);}[_0x54dd88(0x26f)](_0x4f2c8a,_0x447d9a){const _0x136c1d=_0x54dd88;var _0x46f85b;_0x4f2c8a===((_0x46f85b=this[_0x136c1d(0x14a)])==null?void 0x0:_0x46f85b[_0x136c1d(0x362)])&&(this['resend'](),this[_0x136c1d(0x2f9)]=_0x447d9a===0x0?0x3e8:Math['min'](_0x447d9a*0x2,Ve),this[_0x136c1d(0x1dc)]+=this[_0x136c1d(0x2f9)]);}[_0x54dd88(0x441)](){const _0x2ef4ec=_0x54dd88;var _0x2c76bf;(_0x2c76bf=this[_0x2ef4ec(0x1ae)])==null||_0x2c76bf[_0x2ef4ec(0x265)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};A=ze=y([v(0x6,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x7,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0x8,t[_0x54dd88(0x1d0)]),v(0x9,t[_0x54dd88(0x225)]),v(0xa,e[_0x54dd88(0x2ba)]),v(0xb,t[_0x54dd88(0x392)]),v(0xc,(0x0,t[_0x54dd88(0x1d4)])(x))],A);let j=class extends E{constructor(_0x16dcb2,_0xa387cc,_0xc5c434,_0x3a57a2,_0x470d89,_0x5b8a3c=!0x1,_0x5e85a1,_0x248e4f,_0x56c29e,_0x38bab6,_0x18db35,_0x7e4b4d,_0x1c06a4){const _0x243fb7=_0x54dd88;super(_0x16dcb2,_0xa387cc,_0xc5c434,_0x3a57a2,_0x470d89,_0x248e4f,_0x56c29e,_0x38bab6,_0x1c06a4),this['_isPermissionRej']=_0x5b8a3c,this['_permissionService']=_0x5e85a1,this[_0x243fb7(0x13b)]=_0x18db35,this[_0x243fb7(0x136)]=_0x7e4b4d,this[_0x243fb7(0x366)]=_0x1c06a4,g(this,_0x243fb7(0x368),'conflict'),this[_0x243fb7(0x3f2)](),this[_0x243fb7(0x33a)](),this['_disableEditing']();}[_0x54dd88(0x313)](){return this;}[_0x54dd88(0x3f1)](){return this;}[_0x54dd88(0x2ad)](){return this;}[_0x54dd88(0x217)](){return this;}[_0x54dd88(0x404)](){return this;}[_0x54dd88(0x12c)](){return this;}[_0x54dd88(0x286)](){return this;}[_0x54dd88(0x2f8)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x54dd88(0x33a)](){const _0x8c2e58=_0x54dd88;var _0x28bdb4,_0x5f08c9,_0x263d53;(_0x28bdb4=this[_0x8c2e58(0x231)])==null||(_0x5f08c9=_0x28bdb4[_0x8c2e58(0x357)])==null||(_0x5f08c9=_0x5f08c9['call'](_0x28bdb4,this[_0x8c2e58(0x40f)],_0x8c2e58(0x142)))==null||_0x5f08c9[_0x8c2e58(0x31d)](()=>void 0x0),(_0x263d53=this[_0x8c2e58(0x231)])==null||_0x263d53[_0x8c2e58(0x31c)](this['unitID'],this[_0x8c2e58(0x239)],null,[]);}[_0x54dd88(0x3f2)](){const _0x5ec02a=_0x54dd88;this[_0x5ec02a(0x37b)]?this['_collaborationUIEventService'][_0x5ec02a(0x1f9)]({'id':_0x5ec02a(0x221)}):this[_0x5ec02a(0x136)][_0x5ec02a(0x1f9)]({'id':_0x5ec02a(0x3f4)});}['_disableEditing'](){const _0x56dc13=_0x54dd88;this[_0x56dc13(0x403)][_0x56dc13(0x2fc)](new r[(_0x56dc13(0x2fb))](this[_0x56dc13(0x40f)])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x54dd88(0x3b9)])(t['IPermissionService'])),v(0x7,t[_0x54dd88(0x1d0)]),v(0x8,t[_0x54dd88(0x392)]),v(0x9,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0xa,(0x0,t[_0x54dd88(0x3b9)])(t['LocaleService'])),v(0xb,(0x0,t[_0x54dd88(0x3b9)])(_)),v(0xc,(0x0,t['Optional'])(x))],j);let M=class extends E{constructor(_0x1ba343,_0x3fec1f,_0x270a60,_0x376f12,_0x347306,_0x3ddce8,_0x2194b3,_0x29f87b,_0x4c7efc,_0x21ca48){const _0x74aa3d=_0x54dd88;super(_0x1ba343,_0x3fec1f,_0x270a60,_0x376f12,_0x347306,_0x29f87b,_0x4c7efc,_0x2194b3,_0x21ca48),this[_0x74aa3d(0x20c)]=_0x3ddce8,g(this,_0x74aa3d(0x368),_0x74aa3d(0x386));}[_0x54dd88(0x313)](_0x4c4b1f){const _0x16a1d8=_0x54dd88;return this[_0x16a1d8(0x408)][_0x16a1d8(0x17f)](_0x4c4b1f),this['_updateLocalCache'](),this;}[_0x54dd88(0x3f1)](_0x44484e){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x838d92=_0x54dd88;throw Error(_0x838d92(0x215));}[_0x54dd88(0x217)](){const _0x128742=_0x54dd88;throw Error(_0x128742(0x1e4));}['onRemoteRetry'](){return this;}[_0x54dd88(0x12c)](){return this;}[_0x54dd88(0x286)](){const _0x2d6a3f=_0x54dd88;let {_injector:_0x1cfcb7,_pendingMutations:_0x39bb37,_awaitingChangeset:_0x148bb0,unitID:_0x4a9467,_handler:_0x2a69ba,type:_0x4374b3}=this,_0x4b0013=Ue(_0x1cfcb7,_0x4a9467,_0x4374b3,_0x148bb0,_0x39bb37,_0x2a69ba);return _0x4b0013 instanceof O?_0x4b0013[_0x2d6a3f(0x321)]():(_0x4b0013 instanceof A||_0x4b0013 instanceof k)&&_0x4b0013['resend'](),_0x4b0013;}[_0x54dd88(0x2f8)](){const _0x1769b6=_0x54dd88;throw Error(_0x1769b6(0x2ff));}};M=y([v(0x5,(0x0,t['Inject'])(t[_0x54dd88(0x43d)])),v(0x6,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0x7,t[_0x54dd88(0x1d0)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t[_0x54dd88(0x1d4)])(x))],M);let N=class extends E{constructor(_0x4a6eb0,_0x5badb2,_0x1e05f0,_0x5d7dae,_0x54e51e,_0x3218d9,_0x4104c3,_0x55a67c,_0x43ce63,_0x474143,_0x2ec613,_0x164424,_0x36c60e,_0x477a91){const _0x4a4459=_0x54dd88;super(_0x4a6eb0,_0x5badb2,_0x1e05f0,_0x5d7dae,_0x4104c3,_0x2ec613,_0x164424,_0x43ce63,_0x477a91),this[_0x4a4459(0x29c)]=_0x54e51e,this[_0x4a4459(0x1da)]=_0x3218d9,this[_0x4a4459(0x20c)]=_0x55a67c,this[_0x4a4459(0x3ca)]=_0x474143,this[_0x4a4459(0x422)]=_0x36c60e,this['localCacheService']=_0x477a91,g(this,_0x4a4459(0x368),_0x4a4459(0x3c7));}[_0x54dd88(0x42b)](_0x7e697){const _0x1c2917=_0x54dd88;try{if(this[_0x1c2917(0x2b4)](_0x7e697)[_0x1c2917(0x1a3)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x1c2917(0x2b4)]([...this[_0x1c2917(0x1da)]]['sort']((_0x2d024a,_0x46af95)=>_0x2d024a[_0x1c2917(0x413)]-_0x46af95[_0x1c2917(0x413)]))[_0x1c2917(0x1a3)])return this[_0x1c2917(0x1da)]=[],this[_0x1c2917(0x250)](),this[_0x1c2917(0x2a5)]['onMissingChangesets']({'from':this[_0x1c2917(0x30b)](),'to':0x0}),this;let _0x3b87ac=this['_awaitingChangeset'],_0x67effa=this['_pendingMutations'],_0x3b900e;if(_0x3b87ac&&_0x67effa[_0x1c2917(0x30f)]!==0x0)_0x3b900e=this[_0x1c2917(0x20c)][_0x1c2917(0x243)](A,this['unitID'],this['type'],_0x3b87ac,_0x67effa,this['_handler'],void 0x0);else{if(_0x3b87ac&&_0x67effa[_0x1c2917(0x30f)]===0x0)_0x3b87ac[_0x1c2917(0x31f)]=this[_0x1c2917(0x30b)](),_0x3b900e=this[_0x1c2917(0x20c)]['createInstance'](k,this[_0x1c2917(0x40f)],this['type'],_0x3b87ac,this[_0x1c2917(0x2a5)]);else{if(_0x67effa['length']!==0x0){let _0x194b14=this[_0x1c2917(0x20c)]['createInstance'](O,this[_0x1c2917(0x40f)],this[_0x1c2917(0x239)],_0x67effa,this['_handler']);_0x194b14['_schedule'](),_0x3b900e=_0x194b14;}else _0x3b900e=this[_0x1c2917(0x20c)][_0x1c2917(0x243)](D,this['unitID'],this[_0x1c2917(0x239)],this[_0x1c2917(0x2a5)]);}}return _0x3b900e[_0x1c2917(0x250)](),_0x3b900e;}catch(_0x4a55e3){return this[_0x1c2917(0x3ca)]['error']('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x4a55e3),this[_0x1c2917(0x20c)]['createInstance'](j,this[_0x1c2917(0x40f)],this[_0x1c2917(0x239)],this['_awaitingChangeset'],this[_0x1c2917(0x408)],this['_handler'],!0x1);}}[_0x54dd88(0x2b4)](_0xd8e9be){const _0x562c8b=_0x54dd88;this['_acknowledgeAwaitingIfReady']();for(let _0x21e770=0x0;_0x21e770<_0xd8e9be['length'];_0x21e770++){let _0x3f8dc8=_0xd8e9be[_0x21e770],_0x4a166d=this[_0x562c8b(0x30b)]();if(!(_0x3f8dc8[_0x562c8b(0x413)]<=_0x4a166d)){if(_0x3f8dc8[_0x562c8b(0x413)]>_0x4a166d+0x1)return{'missingChangesets':!0x0};if(this[_0x562c8b(0x1c0)](_0x3f8dc8)){this[_0x562c8b(0x24d)]();continue;}this['_transformAndApplyRemoteChangeset'](_0x3f8dc8),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x54dd88(0x25e)](_0xfd8045){const _0x52cf73=_0x54dd88;let _0x276828=_0xfd8045,_0x7f56cd=this[_0x52cf73(0x14a)];if(_0x7f56cd){let _0x3ee5ee=this[_0x52cf73(0x422)][_0x52cf73(0x1c4)]([_0xfd8045],[_0x7f56cd],!0x1);if(!(0x0,e['isTransformChangesetsSuccess'])(_0x3ee5ee))throw _0x3ee5ee[_0x52cf73(0x40a)];_0x276828=_0x3ee5ee[_0x52cf73(0x318)][0x0],_0x7f56cd=_0x3ee5ee['c2Prime'][0x0];}let _0x4f63da=this[_0x52cf73(0x408)];if(_0x4f63da['length']){let _0x32dffb=this['_transformService'][_0x52cf73(0x3cd)](_0x276828,_0x4f63da);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x32dffb))throw _0x32dffb[_0x52cf73(0x40a)];_0x276828=_0x32dffb[_0x52cf73(0x318)],_0x4f63da=_0x32dffb['m2Prime'];}this[_0x52cf73(0x12a)](_0x276828),_0x7f56cd&&(_0x7f56cd[_0x52cf73(0x31f)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x7f56cd,this[_0x52cf73(0x408)]=_0x4f63da;}[_0x54dd88(0x38f)](){const _0x5eb925=_0x54dd88;if(!this['_awaitingChangeset']||this[_0x5eb925(0x29c)]==null)return;let _0x2c4a98=this[_0x5eb925(0x30b)]();if(this[_0x5eb925(0x29c)]<=_0x2c4a98)throw Error(_0x5eb925(0x13c)+this[_0x5eb925(0x29c)]+'.');this['_acknowledgedAwaitingRevision']===_0x2c4a98+0x1&&this['_acknowledgeAwaiting']();}[_0x54dd88(0x24d)](){const _0x148c12=_0x54dd88;this[_0x148c12(0x397)](),this[_0x148c12(0x14a)]=null,this['_acknowledgedAwaitingRevision']=null;}[_0x54dd88(0x1c0)](_0x766d5c){const _0x20d299=_0x54dd88;let _0x3f42e7=this[_0x20d299(0x14a)];return!_0x3f42e7||!_0x3f42e7[_0x20d299(0x264)]||_0x3f42e7[_0x20d299(0x362)]===null||_0x3f42e7[_0x20d299(0x362)]===void 0x0?!0x1:_0x766d5c[_0x20d299(0x40f)]===_0x3f42e7['unitID']&&_0x766d5c[_0x20d299(0x264)]===_0x3f42e7[_0x20d299(0x264)]&&_0x766d5c[_0x20d299(0x362)]===_0x3f42e7[_0x20d299(0x362)];}[_0x54dd88(0x2f8)](){const _0x11f8d9=_0x54dd88;throw Error(_0x11f8d9(0x256));}[_0x54dd88(0x313)](_0xe99b92){const _0x477227=_0x54dd88;return this[_0x477227(0x408)][_0x477227(0x17f)](_0xe99b92),this;}[_0x54dd88(0x3f1)](_0x4d492a){const _0x51bbd4=_0x54dd88;return this['_queuedRemoteChangesets'][_0x51bbd4(0x17f)](_0x4d492a),this;}['onRemoteAck'](_0x5b1c14){const _0x17d99c=_0x54dd88;if(this[_0x17d99c(0x14a)]){let _0x389aeb=this[_0x17d99c(0x30b)]();return _0x5b1c14[_0x17d99c(0x413)]<=_0x389aeb||(_0x389aeb+0x1===_0x5b1c14[_0x17d99c(0x413)]?(this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this[_0x17d99c(0x29c)]=null):this[_0x17d99c(0x29c)]=_0x5b1c14[_0x17d99c(0x413)]),this;}if(_0x5b1c14['revision']<=this[_0x17d99c(0x30b)]())return this;throw Error(_0x17d99c(0x152));}[_0x54dd88(0x217)](_0x383319){const _0x114136=_0x54dd88;return this[_0x114136(0x3f5)](!!(_0x383319!=null&&_0x383319[_0x114136(0x258)]));}[_0x54dd88(0x404)](){return this;}[_0x54dd88(0x12c)](){const _0x5626c4=_0x54dd88;return this[_0x5626c4(0x20c)][_0x5626c4(0x243)](M,this[_0x5626c4(0x40f)],this[_0x5626c4(0x239)],this[_0x5626c4(0x14a)],this[_0x5626c4(0x408)],this[_0x5626c4(0x2a5)]);}[_0x54dd88(0x286)](){return this;}[_0x54dd88(0x3f5)](_0xe7cb){const _0x159435=_0x54dd88;return this['_injector']['createInstance'](j,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x159435(0x408)],this[_0x159435(0x2a5)],_0xe7cb);}};N=y([v(0x7,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x8,(0x0,t['Inject'])(e['RevisionService'])),v(0x9,t[_0x54dd88(0x225)]),v(0xa,t[_0x54dd88(0x1d0)]),v(0xb,t['IUndoRedoService']),v(0xc,e[_0x54dd88(0x2ba)]),v(0xd,(0x0,t['Optional'])(x))],N);function Ue(_0x1e5b44,_0x37776b,_0x45f0fb,_0x58902b,_0x43970b,_0xd410e1){const _0x4b0aa8=_0x54dd88;return _0x58902b&&_0x43970b[_0x4b0aa8(0x30f)]?_0x1e5b44[_0x4b0aa8(0x243)](A,_0x37776b,_0x45f0fb,_0x58902b,_0x43970b,_0xd410e1,void 0x0):_0x58902b?_0x1e5b44[_0x4b0aa8(0x243)](k,_0x37776b,_0x45f0fb,_0x58902b,_0xd410e1):_0x43970b[_0x4b0aa8(0x30f)]?_0x1e5b44[_0x4b0aa8(0x243)](O,_0x37776b,_0x45f0fb,_0x43970b,_0xd410e1):_0x1e5b44[_0x4b0aa8(0x243)](D,_0x37776b,_0x45f0fb,_0xd410e1);}let P=class extends t[_0x54dd88(0x2f0)]{get[_0x54dd88(0x28c)](){const _0x16fa9=_0x54dd88;return this[_0x16fa9(0x3cf)];}constructor(_0x59de17,_0x2f7684,_0x4f2686,_0x5eb2ee,_0xdbd021,_0xa31acc,_0xf086ca,_0x381b30,_0x4e3833,_0x4751b5,_0x4fa1ce,_0x52055d,_0x50eb20,_0x21c4b3){const _0x46312d=_0x54dd88;super(),this[_0x46312d(0x40f)]=_0x59de17,this[_0x46312d(0x292)]=_0x2f7684,this[_0x46312d(0x1f1)]=_0x4f2686,this[_0x46312d(0x20c)]=_0x5eb2ee,this[_0x46312d(0x341)]=_0xdbd021,this[_0x46312d(0x13b)]=_0xa31acc,this['_revisionService']=_0xf086ca,this[_0x46312d(0x27c)]=_0x381b30,this[_0x46312d(0x220)]=_0x4e3833,this['_logService']=_0x4751b5,this[_0x46312d(0x126)]=_0x4fa1ce,this[_0x46312d(0x403)]=_0x52055d,this[_0x46312d(0x3a5)]=_0x50eb20,this[_0x46312d(0x231)]=_0x21c4b3,g(this,_0x46312d(0x376),new i[(_0x46312d(0x352))](null)),g(this,_0x46312d(0x451),this[_0x46312d(0x376)][_0x46312d(0x327)]()),g(this,_0x46312d(0x3cf),void 0x0),g(this,_0x46312d(0x39a),!0x1),g(this,_0x46312d(0x35c),''),g(this,_0x46312d(0x162),0x0),g(this,'status$',this[_0x46312d(0x451)]['pipe']((0x0,i[_0x46312d(0x423)])(_0x27a54e=>_0x27a54e?_0x27a54e[_0x46312d(0x368)]:_0x46312d(0x386)),(0x0,i[_0x46312d(0x371)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x46312d(0x26b),!0x1),g(this,_0x46312d(0x270),[]);}async[_0x54dd88(0x42c)](){const _0x64456b=_0x54dd88;if(this[_0x64456b(0x28c)])throw Error(_0x64456b(0x18d));await this[_0x64456b(0x351)]();}['pauseCollaboration'](){const _0x4953e0=_0x54dd88;return this[_0x4953e0(0x39a)]=!0x0,(0x0,t[_0x4953e0(0x181)])(()=>{const _0x5dcd25=_0x4953e0;this['_collaborationPaused']=!0x1,this[_0x5dcd25(0x1b0)]();});}[_0x54dd88(0x1bc)](_0x5dc2be){const _0x4f3018=_0x54dd88;this[_0x4f3018(0x2c5)](_0x5dc2be);}[_0x54dd88(0x13a)](_0x5b874d){const _0x1dda56=_0x54dd88;this[_0x1dda56(0x3cf)]=_0x5b874d,this[_0x1dda56(0x376)]['next'](_0x5b874d);}async['_init'](){const _0x5bd2a3=_0x54dd88;if(this[_0x5bd2a3(0x13a)](await this['_createInitialState']()),this['_singleActiveUnitService']){var _0x150f0e;(_0x150f0e=this['_singleActiveUnitService'])==null||_0x150f0e[_0x5bd2a3(0x35d)](this[_0x5bd2a3(0x40f)]),this[_0x5bd2a3(0x1af)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x5bd2a3(0x40f)])[_0x5bd2a3(0x449)](_0x24211a=>{const _0x273765=_0x5bd2a3;this['_logService'][_0x273765(0x3df)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x24211a),_0x24211a===0x1?(this['_eventService'][_0x273765(0x1f9)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x273765(0x403)][_0x273765(0x2fc)](new r[(_0x273765(0x2fb))](this['unitID'])['id'],!0x1),this[_0x273765(0x403)][_0x273765(0x346)](!0x1)):(this['_permissionService'][_0x273765(0x2fc)](new r[(_0x273765(0x2fb))](this[_0x273765(0x40f)])['id'],!0x0),this[_0x273765(0x403)]['setShowComponents'](!0x0));}));}let _0x30448d=!0x1;return this[_0x5bd2a3(0x1af)](this[_0x5bd2a3(0x292)]['sessionStatus$'][_0x5bd2a3(0x449)](_0x180c79=>{const _0x5e5a5e=_0x5bd2a3;_0x180c79===0x3?this['_toggleOnline'](_0x30448d):_0x180c79===0x2&&(_0x30448d=!0x0,this[_0x5e5a5e(0x326)]());})),this[_0x5bd2a3(0x1af)](this[_0x5bd2a3(0x292)][_0x5bd2a3(0x3b7)][_0x5bd2a3(0x449)](_0x5564f4=>{const _0x402354=_0x5bd2a3;try{switch(_0x5564f4[_0x402354(0x170)]){case e[_0x402354(0x20b)][_0x402354(0x218)]:this['_onRemoteChangeset']((0x0,e[_0x402354(0x384)])(_0x5564f4[_0x402354(0x382)]));break;case e['CollaborationEvent']['CHANGESET_ACK']:this[_0x402354(0x2be)](_0x5564f4[_0x402354(0x382)]);break;case e[_0x402354(0x20b)][_0x402354(0x2d5)]:this['_onRemoteRejected']();break;case e[_0x402354(0x20b)][_0x402354(0x210)]:this[_0x402354(0x1f0)](_0x5564f4[_0x402354(0x382)]);break;case e[_0x402354(0x20b)][_0x402354(0x21f)]:this[_0x402354(0x28e)](_0x5564f4[_0x402354(0x382)][_0x402354(0x406)]['map'](_0x4559c1=>(0x0,e[_0x402354(0x384)])(_0x4559c1)));break;case e[_0x402354(0x20b)][_0x402354(0x317)]:this[_0x402354(0x14e)]({'isPermissionRej':!0x0});break;case e['CollaborationEvent'][_0x402354(0x414)]:break;}}catch(_0xed1875){throw console[_0x402354(0x40a)](_0x402354(0x192),_0xed1875),_0xed1875;}})),this[_0x5bd2a3(0x3cf)];}[_0x54dd88(0x3f0)](){this['_transitionLocked']=!0x1;}[_0x54dd88(0x354)](){const _0x58d2a8=_0x54dd88;if(this[_0x58d2a8(0x26b)])throw Error(_0x58d2a8(0x3b8));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x5c44dc){const _0x356915=_0x54dd88;this[_0x356915(0x354)](),this[_0x356915(0x13a)](this[_0x356915(0x3cf)]['appendMutation'](_0x5c44dc)),this['_unlockTransition']();}['_onRemoteChangeset'](_0xdf5c1){const _0x4a49ba=_0x54dd88;if(!(_0xdf5c1['revision']<=this[_0x4a49ba(0x24e)][_0x4a49ba(0x198)](this[_0x4a49ba(0x40f)]))){if(this[_0x4a49ba(0x39a)]){this[_0x4a49ba(0x270)][_0x4a49ba(0x17f)](_0xdf5c1);return;}this[_0x4a49ba(0x1c1)](_0xdf5c1);}}['_exhaustRemoteChangesetQueue'](){const _0x3a0170=_0x54dd88;this[_0x3a0170(0x270)]['forEach'](_0x1be2be=>this[_0x3a0170(0x1c1)](_0x1be2be)),this[_0x3a0170(0x270)]=[];}[_0x54dd88(0x1c1)](_0x116bac){const _0x413ee6=_0x54dd88;let _0x4f275d=this[_0x413ee6(0x341)][_0x413ee6(0x379)]['fetchThroughInterceptors'](this[_0x413ee6(0x341)][_0x413ee6(0x379)][_0x413ee6(0x155)]()[_0x413ee6(0x340)])(_0x116bac['mutations'],null)||_0x116bac['mutations'],_0xb4d6df={..._0x116bac,'mutations':_0x4f275d};this[_0x413ee6(0x354)](),this[_0x413ee6(0x13a)](this[_0x413ee6(0x3cf)][_0x413ee6(0x3f1)](_0xb4d6df)),this['_unlockTransition']();}['_onRemoteACK'](_0xa320c7){const _0xb2cbcc=_0x54dd88;this[_0xb2cbcc(0x354)](),this['_updateState'](this[_0xb2cbcc(0x3cf)][_0xb2cbcc(0x2ad)](_0xa320c7)),this[_0xb2cbcc(0x3f0)]();}[_0x54dd88(0x14e)](_0x502035){const _0x495060=_0x54dd88;this[_0x495060(0x354)](),this['_updateState'](this['_state']['onRemoteRej'](_0x502035)),this['_unlockTransition']();}[_0x54dd88(0x1f0)](_0x396a56){const _0xc84e3f=_0x54dd88;this[_0xc84e3f(0x354)](),this[_0xc84e3f(0x13a)](this['_state']['onRemoteRetry'](_0x396a56)),this[_0xc84e3f(0x3f0)]();}['_onFetchMissResult'](_0x3d65b9){const _0x1123ce=_0x54dd88;if(!(this[_0x1123ce(0x3cf)]instanceof N))throw TypeError(_0x1123ce(0x315));let _0x24d074=_0x3d65b9[_0x1123ce(0x423)](_0xa26c47=>{const _0x33e428=_0x1123ce;let _0x5f39f4=this[_0x33e428(0x341)][_0x33e428(0x379)][_0x33e428(0x3f8)](this[_0x33e428(0x341)]['interceptor'][_0x33e428(0x155)]()[_0x33e428(0x340)])(_0xa26c47['mutations'],null)||_0xa26c47[_0x33e428(0x3be)];return{..._0xa26c47,'mutations':_0x5f39f4};});this['_lockTransition'](),this[_0x1123ce(0x13a)](this[_0x1123ce(0x3cf)][_0x1123ce(0x42b)](_0x24d074)),this[_0x1123ce(0x3f0)]();}[_0x54dd88(0x326)](){const _0x199699=_0x54dd88;this[_0x199699(0x354)](),this[_0x199699(0x13a)](this[_0x199699(0x3cf)]['toggleOffline']()),this['_unlockTransition']();}[_0x54dd88(0x1c5)](_0x168619=!0x1){const _0x428806=_0x54dd88;this[_0x428806(0x354)](),this['_updateState'](this[_0x428806(0x3cf)]['toggleOnline']()),this[_0x428806(0x3f0)]();let _0x1c316d=this['_state'];_0x168619&&_0x1c316d instanceof D&&(this[_0x428806(0x354)](),this[_0x428806(0x13a)](_0x1c316d[_0x428806(0x22a)]()),this[_0x428806(0x3f0)]());}async['_createInitialState'](){return new Promise(_0x308dc3=>{const _0x242f66=_0x1bed;this[_0x242f66(0x292)][_0x242f66(0x1ef)][_0x242f66(0x2de)]((0x0,i[_0x242f66(0x1bb)])(0x1))[_0x242f66(0x449)](async _0x4f5b6e=>{const _0x5c5164=_0x242f66;_0x308dc3(await this[_0x5c5164(0x21e)](_0x4f5b6e===0x3));});});}[_0x54dd88(0x3bc)](){const _0x3bc8c9=_0x54dd88;let _0x5d4717=this[_0x3bc8c9(0x40f)];return{'onStateChange':(_0x3d7d44,_0x19980b)=>{const _0x511dee=_0x3bc8c9;if(_0x3d7d44!==this[_0x511dee(0x3cf)])throw Error(_0x511dee(0x41b)+_0x3d7d44[_0x511dee(0x368)]+_0x511dee(0x369)+_0x19980b['status']+_0x511dee(0x38e)+this['_state']['status']);this[_0x511dee(0x13a)](_0x19980b);},'onSendChangeset':_0x2609e8=>{const _0x28e4ff=_0x3bc8c9;_0x2609e8[_0x28e4ff(0x264)]||(_0x2609e8[_0x28e4ff(0x264)]=this['_changesetSessionId'],_0x2609e8[_0x28e4ff(0x362)]=++this[_0x28e4ff(0x162)]);let _0x3bbd44={'eventID':e['CollaborationEvent'][_0x28e4ff(0x158)],'data':{'unitID':_0x2609e8[_0x28e4ff(0x40f)],'unitType':this[_0x28e4ff(0x1f1)],'changeset':_0x2609e8,'memberID':this['session']['getMemberID']()}};this[_0x28e4ff(0x292)]['send'](_0x3bbd44,this[_0x28e4ff(0x40f)]);},'onMissingChangesets':({from:_0x247438,to:_0x11039a})=>{const _0x1cd8c9=_0x3bc8c9;this[_0x1cd8c9(0x3ca)][_0x1cd8c9(0x3df)](_0x1cd8c9(0x1ac),_0x1cd8c9(0x26c)+_0x247438+_0x1cd8c9(0x21a)+_0x11039a);let _0x1d00b9={'eventID':e[_0x1cd8c9(0x20b)]['FETCH_MISSING'],'data':{'unitID':_0x5d4717,'unitType':this[_0x1cd8c9(0x1f1)],'from':_0x247438,'to':_0x11039a}};this[_0x1cd8c9(0x292)][_0x1cd8c9(0x305)](_0x1d00b9,this[_0x1cd8c9(0x40f)]);}};}async[_0x54dd88(0x21e)](_0x18d551){const _0x5895e0=_0x54dd88;var _0x7ae7f0;let _0x501719=await((_0x7ae7f0=this[_0x5895e0(0x231)])==null?void 0x0:_0x7ae7f0[_0x5895e0(0x2f2)](this[_0x5895e0(0x40f)])),_0x46facb=(_0x501719==null?void 0x0:_0x501719[_0x5895e0(0x3be)])??[],_0x4f1fd3=(_0x501719==null?void 0x0:_0x501719['awaitingChangeset'])??null,_0x53b926=!!(_0x4f1fd3!=null&&_0x4f1fd3['sid'])&&!!(_0x4f1fd3!=null&&_0x4f1fd3[_0x5895e0(0x362)]);this[_0x5895e0(0x35c)]=_0x53b926?_0x4f1fd3[_0x5895e0(0x264)]:(0x0,e[_0x5895e0(0x3af)])(),this[_0x5895e0(0x162)]=_0x53b926?_0x4f1fd3[_0x5895e0(0x362)]:0x0;let _0x1732ec=this[_0x5895e0(0x40f)];try{this['_replayCachedMutations'](_0x4f1fd3,_0x46facb);}catch(_0x21ee89){this['_logService']['error'](_0x21ee89);}let _0x17636e=this['_createHandler']();if(_0x18d551){let _0x1c2788=Ue(this[_0x5895e0(0x20c)],_0x1732ec,this['_type'],_0x4f1fd3,_0x46facb,_0x17636e);return _0x1c2788 instanceof O?_0x1c2788['_schedule']():(_0x1c2788 instanceof A||_0x1c2788 instanceof k)&&_0x1c2788[_0x5895e0(0x2f8)](),_0x1c2788;}return this[_0x5895e0(0x20c)][_0x5895e0(0x243)](M,_0x1732ec,this[_0x5895e0(0x1f1)],_0x4f1fd3,_0x46facb,_0x17636e);}[_0x54dd88(0x1c9)](_0xf07e5b,_0x3d0a1f){const _0x2ae2c1=_0x54dd88;var _0x69903c,_0x2bbcb3;let _0x2dc5a9=this[_0x2ae2c1(0x341)]['interceptor'][_0x2ae2c1(0x3f8)](this[_0x2ae2c1(0x341)]['interceptor'][_0x2ae2c1(0x155)]()['COMPRESS_MUTATION_APPLY']);(_0x69903c=_0x2dc5a9((_0xf07e5b==null?void 0x0:_0xf07e5b[_0x2ae2c1(0x3be)])||[],null))==null||_0x69903c[_0x2ae2c1(0x44f)](_0x103139=>this[_0x2ae2c1(0x126)]['executeCommand'](_0x103139['id'],_0x103139['params'])),(_0x2bbcb3=_0x2dc5a9(_0x3d0a1f||[],null))==null||_0x2bbcb3['forEach'](_0x488d7d=>this[_0x2ae2c1(0x126)]['executeCommand'](_0x488d7d['id'],_0x488d7d[_0x2ae2c1(0x3e3)]));}};P=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x361)])),v(0x5,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x302)])),v(0x6,(0x0,t[_0x54dd88(0x3b9)])(e['RevisionService'])),v(0x7,(0x0,t[_0x54dd88(0x3b9)])(_)),v(0x8,t[_0x54dd88(0x228)]),v(0x9,t[_0x54dd88(0x225)]),v(0xa,t[_0x54dd88(0x1d0)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x54dd88(0x1d4)])(C)),v(0xd,(0x0,t[_0x54dd88(0x1d4)])(x))],P);let F=class extends P{constructor(_0x5e82a6,_0x3329d9,_0x594741,_0x3b7334,_0x1794c4,_0x27a140,_0x32f37b,_0x1be950,_0x1d18ae,_0x23cdc0,_0x50b947,_0x4a09cc,_0x55e1f1,_0x1e6add,_0x23d19f){const _0x43e830=_0x54dd88;super(_0x5e82a6,_0x594741,_0x3329d9,_0x3b7334,_0x1794c4,_0x27a140,_0x32f37b,_0x1be950,_0x1d18ae,_0x23cdc0,_0x50b947,_0x4a09cc,_0x1e6add,_0x23d19f),this[_0x43e830(0x40f)]=_0x5e82a6,this[_0x43e830(0x239)]=_0x3329d9,this[_0x43e830(0x19c)]=_0x55e1f1,g(this,_0x43e830(0x283),null);}[_0x54dd88(0x343)](_0x3ab2c1){const _0x448878=_0x54dd88;this[_0x448878(0x283)]=_0x3ab2c1;}[_0x54dd88(0x1d3)](){this['_handlerCallback']=null,super['dispose']();}['_createHandler'](){const _0x58710f=_0x54dd88;let _0x21e93c=super['_createHandler']();return _0x21e93c[_0x58710f(0x3e9)]=_0x441686=>{const _0xc5f1c3=_0x58710f;var _0x4b452c,_0xa03cd9;return(_0x4b452c=this[_0xc5f1c3(0x283)])==null||(_0xa03cd9=_0x4b452c[_0xc5f1c3(0x3e9)])==null?void 0x0:_0xa03cd9[_0xc5f1c3(0x1cc)](_0x4b452c,_0x441686);},_0x21e93c['onTransformState']=_0x29428e=>{const _0x265edc=_0x58710f;var _0x465603,_0x33a4c3;return(_0x465603=this[_0x265edc(0x283)])==null||(_0x33a4c3=_0x465603['onTransformState'])==null?void 0x0:_0x33a4c3[_0x265edc(0x1cc)](_0x465603,_0x29428e);},_0x21e93c[_0x58710f(0x2cc)]=_0x495be9=>{const _0x1bf8b9=_0x58710f;var _0x44c1d5,_0x8b00a4;return(_0x44c1d5=this['_handlerCallback'])==null||(_0x8b00a4=_0x44c1d5[_0x1bf8b9(0x2cc)])==null?void 0x0:_0x8b00a4[_0x1bf8b9(0x1cc)](_0x44c1d5,_0x495be9);},_0x21e93c['onSyncEditingCollabCursor']=_0x13b9e1=>{const _0x5c7f7e=_0x58710f;var _0x4f45e2,_0x45927e;return(_0x4f45e2=this[_0x5c7f7e(0x283)])==null||(_0x45927e=_0x4f45e2[_0x5c7f7e(0x1a1)])==null?void 0x0:_0x45927e['call'](_0x4f45e2,_0x13b9e1);},_0x21e93c[_0x58710f(0x42a)]=_0x20cc40=>{const _0x12a8e7=_0x58710f;var _0x43a720,_0x1e9090;return((_0x43a720=this[_0x12a8e7(0x283)])==null||(_0x1e9090=_0x43a720['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1e9090['call'](_0x43a720,_0x20cc40))??_0x20cc40;},_0x21e93c[_0x58710f(0x23d)]=_0x2c3a3b=>{const _0x33dee8=_0x58710f;var _0x175461,_0x10ac90;return((_0x175461=this[_0x33dee8(0x283)])==null||(_0x10ac90=_0x175461[_0x33dee8(0x23d)])==null?void 0x0:_0x10ac90[_0x33dee8(0x1cc)](_0x175461,_0x2c3a3b))??_0x2c3a3b;},_0x21e93c;}async[_0x54dd88(0x351)](){const _0x33cad4=_0x54dd88;let _0x4efef7=await super[_0x33cad4(0x351)]();return this[_0x33cad4(0x1af)](this['_docStateChangeManagerService']['docStateChange$'][_0x33cad4(0x449)](_0x565fcf=>{const _0x2dc2b3=_0x33cad4;if(_0x565fcf==null||_0x565fcf['unitId']!==this[_0x2dc2b3(0x40f)])return;let {commandId:_0xbefd8,redoState:_0x26f91f,unitId:_0x4ae989}=_0x565fcf,_0x52da72={'id':_0xbefd8,'type':t[_0x2dc2b3(0x234)]['MUTATION'],'params':{'unitId':_0x4ae989,'actions':_0x26f91f[_0x2dc2b3(0x33c)],'textRanges':null}};this[_0x2dc2b3(0x2c5)](_0x52da72);})),this[_0x33cad4(0x1af)](this['_commandService'][_0x33cad4(0x13d)]((_0x57248c,_0x741d9b)=>{const _0x1df24a=_0x33cad4;if(_0x57248c[_0x1df24a(0x239)]!==t[_0x1df24a(0x234)][_0x1df24a(0x3de)]||_0x741d9b!=null&&_0x741d9b['fromCollab']||_0x741d9b!=null&&_0x741d9b[_0x1df24a(0x301)]||_0x57248c['id']===n[_0x1df24a(0x2c8)]['id'])return;let _0x6efdd8=_0x57248c[_0x1df24a(0x3e3)];if((_0x6efdd8==null?void 0x0:_0x6efdd8[_0x1df24a(0x338)])!==this[_0x1df24a(0x40f)])return;let _0x37c016=_0x57248c,_0xf45a11=this[_0x1df24a(0x341)]['interceptor'][_0x1df24a(0x3f8)](this[_0x1df24a(0x341)][_0x1df24a(0x379)]['getInterceptPoints']()[_0x1df24a(0x2c3)])([_0x37c016],this[_0x1df24a(0x220)])||[_0x37c016];this[_0x1df24a(0x2c5)](_0xf45a11[0x0]);})),_0x4efef7;}};F=y([v(0x3,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x361)])),v(0x5,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x302)])),v(0x6,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0x7,(0x0,t[_0x54dd88(0x3b9)])(_)),v(0x8,t[_0x54dd88(0x228)]),v(0x9,t[_0x54dd88(0x225)]),v(0xa,t[_0x54dd88(0x1d0)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t['Inject'])(n[_0x54dd88(0x364)])),v(0xd,(0x0,t[_0x54dd88(0x1d4)])(C)),v(0xe,(0x0,t[_0x54dd88(0x1d4)])(x))],F);let I=class extends P{constructor(_0x3b0e46,_0x327b25,_0xee658e,_0x1e2b59,_0x20e4ed,_0x1dc70e,_0x11c546,_0x743510,_0x4a3318,_0x2b1843,_0x12947e,_0x40c14d,_0x455a16,_0x3fbd0e){const _0x534722=_0x54dd88;super(_0x3b0e46,_0xee658e,_0x327b25,_0x1e2b59,_0x20e4ed,_0x1dc70e,_0x11c546,_0x743510,_0x4a3318,_0x2b1843,_0x12947e,_0x40c14d,_0x455a16,_0x3fbd0e),this[_0x534722(0x40f)]=_0x3b0e46,this[_0x534722(0x239)]=_0x327b25;}async[_0x54dd88(0x351)](){const _0xbffce4=_0x54dd88;let _0x293f60=await super[_0xbffce4(0x351)]();return this[_0xbffce4(0x1af)](this[_0xbffce4(0x126)][_0xbffce4(0x13d)]((_0x4576c2,_0x3a6239)=>{const _0x4a1a50=_0xbffce4;if(_0x4576c2[_0x4a1a50(0x239)]!==t[_0x4a1a50(0x234)]['MUTATION']||_0x3a6239!=null&&_0x3a6239[_0x4a1a50(0x34f)]||_0x3a6239!=null&&_0x3a6239[_0x4a1a50(0x301)])return;let _0x43fdd5=_0x4576c2[_0x4a1a50(0x3e3)];if((_0x43fdd5==null?void 0x0:_0x43fdd5[_0x4a1a50(0x338)])!==this[_0x4a1a50(0x40f)])return;let _0x469295=_0x4576c2,_0x2becc3=this[_0x4a1a50(0x341)][_0x4a1a50(0x379)][_0x4a1a50(0x3f8)](this['_compressMutationService'][_0x4a1a50(0x379)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x469295],this[_0x4a1a50(0x220)])||[_0x469295];this[_0x4a1a50(0x2c5)](_0x2becc3[0x0]);})),_0x293f60;}};I=y([v(0x3,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(e['CompressMutationService'])),v(0x5,(0x0,t['Inject'])(t[_0x54dd88(0x302)])),v(0x6,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0x7,(0x0,t[_0x54dd88(0x3b9)])(_)),v(0x8,t[_0x54dd88(0x228)]),v(0x9,t['ILogService']),v(0xa,t[_0x54dd88(0x1d0)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x54dd88(0x1d4)])(C)),v(0xd,(0x0,t[_0x54dd88(0x1d4)])(x))],I);let L=class extends P{constructor(_0xdce4a1,_0x5a2a00,_0xead88f,_0x3a7ff7,_0x4dc5dd,_0xd2efcc,_0xb9f4ee,_0x157084,_0x32d8f2,_0x1e773d,_0x35d40e,_0x232aeb,_0x695a81,_0x31f8db,_0x27bcf0){const _0x1c671e=_0x54dd88;super(_0xdce4a1,_0xead88f,_0x5a2a00,_0x3a7ff7,_0x4dc5dd,_0xd2efcc,_0xb9f4ee,_0x32d8f2,_0x1e773d,_0x35d40e,_0x232aeb,_0x695a81,_0x31f8db,_0x27bcf0),this[_0x1c671e(0x40f)]=_0xdce4a1,this[_0x1c671e(0x239)]=_0x5a2a00,this[_0x1c671e(0x1b9)]=_0x157084;}[_0x54dd88(0x3bc)](){const _0x1ee95b=_0x54dd88;let _0x22e7cd=super[_0x1ee95b(0x3bc)]();return _0x22e7cd[_0x1ee95b(0x2cc)]=_0x3bac82=>this[_0x1ee95b(0x1b9)]['transformSelections'](_0x3bac82),_0x22e7cd;}async[_0x54dd88(0x351)](){const _0x26c017=_0x54dd88;let _0x54787e=await super[_0x26c017(0x351)]();return this[_0x26c017(0x1af)](this[_0x26c017(0x126)][_0x26c017(0x13d)]((_0x5d0e92,_0x54f481)=>{const _0x5af7a4=_0x26c017;if(_0x5d0e92[_0x5af7a4(0x239)]!==t['CommandType'][_0x5af7a4(0x3de)]||_0x54f481!=null&&_0x54f481['fromCollab']||_0x54f481!=null&&_0x54f481[_0x5af7a4(0x301)])return;let _0x287df0=_0x5d0e92['params'];if((_0x287df0==null?void 0x0:_0x287df0[_0x5af7a4(0x338)])!==this[_0x5af7a4(0x40f)])return;let _0x39e4fe=_0x5d0e92,_0x42ceea=this[_0x5af7a4(0x341)][_0x5af7a4(0x379)][_0x5af7a4(0x3f8)](this[_0x5af7a4(0x341)][_0x5af7a4(0x379)]['getInterceptPoints']()[_0x5af7a4(0x2c3)])([_0x39e4fe],this[_0x5af7a4(0x220)])||[_0x39e4fe];this[_0x5af7a4(0x2c5)](_0x42ceea[0x0]);})),_0x54787e;}};L=y([v(0x3,(0x0,t['Inject'])(t[_0x54dd88(0x43d)])),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x361)])),v(0x5,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x302)])),v(0x6,(0x0,t['Inject'])(e[_0x54dd88(0x26e)])),v(0x7,(0x0,t[_0x54dd88(0x3b9)])(S)),v(0x8,(0x0,t['Inject'])(_)),v(0x9,t[_0x54dd88(0x228)]),v(0xa,t['ILogService']),v(0xb,t[_0x54dd88(0x1d0)]),v(0xc,t['IPermissionService']),v(0xd,(0x0,t[_0x54dd88(0x1d4)])(C)),v(0xe,(0x0,t[_0x54dd88(0x1d4)])(x))],L);let R=class extends P{constructor(_0x253f05,_0x45d60a,_0x20de61,_0x101b5d,_0x272373,_0x29e16a,_0x24d95a,_0x512fb7,_0x1ae3c5,_0xa89b0d,_0x104b5d,_0x52952d,_0x5d0742,_0x2fc8a6){const _0x2d4034=_0x54dd88;super(_0x253f05,_0x20de61,_0x45d60a,_0x101b5d,_0x272373,_0x29e16a,_0x24d95a,_0x512fb7,_0x1ae3c5,_0xa89b0d,_0x104b5d,_0x52952d,_0x5d0742,_0x2fc8a6),this[_0x2d4034(0x40f)]=_0x253f05,this[_0x2d4034(0x239)]=_0x45d60a;}async[_0x54dd88(0x351)](){const _0x5d5160=_0x54dd88;let _0x19a1b4=await super['_init']();return this[_0x5d5160(0x1af)](this['_commandService'][_0x5d5160(0x13d)]((_0x3192a5,_0x36c239)=>{const _0x2b6b6c=_0x5d5160;if(_0x3192a5[_0x2b6b6c(0x239)]!==t[_0x2b6b6c(0x234)][_0x2b6b6c(0x3de)]||_0x36c239!=null&&_0x36c239['fromCollab']||_0x36c239!=null&&_0x36c239[_0x2b6b6c(0x301)])return;let _0x3ed005=_0x3192a5[_0x2b6b6c(0x3e3)];if((_0x3ed005==null?void 0x0:_0x3ed005['unitId'])!==this[_0x2b6b6c(0x40f)])return;let _0x1246fe=_0x3192a5,_0x56363e=this['_compressMutationService'][_0x2b6b6c(0x379)][_0x2b6b6c(0x3f8)](this[_0x2b6b6c(0x341)][_0x2b6b6c(0x379)][_0x2b6b6c(0x155)]()[_0x2b6b6c(0x2c3)])([_0x1246fe],this['_univerInstanceService'])||[_0x1246fe];this[_0x2b6b6c(0x2c5)](_0x56363e[0x0]);})),_0x19a1b4;}};R=y([v(0x3,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x302)])),v(0x6,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0x7,(0x0,t[_0x54dd88(0x3b9)])(_)),v(0x8,t[_0x54dd88(0x228)]),v(0x9,t['ILogService']),v(0xa,t[_0x54dd88(0x1d0)]),v(0xb,t[_0x54dd88(0x3a3)]),v(0xc,(0x0,t[_0x54dd88(0x1d4)])(C)),v(0xd,(0x0,t[_0x54dd88(0x1d4)])(x))],R);let z=class extends P{constructor(_0x3e9aaa,_0x1acfa2,_0x11d369,_0x3e9267,_0x4c72ee,_0x2908f8,_0x4ff39c,_0x4ddbf8,_0x126647,_0x14dc3a,_0x5587b3,_0x184ea0,_0x39b4a1,_0x1381ff){const _0x47e394=_0x54dd88;super(_0x3e9aaa,_0x11d369,_0x1acfa2,_0x3e9267,_0x4c72ee,_0x2908f8,_0x4ff39c,_0x4ddbf8,_0x126647,_0x14dc3a,_0x5587b3,_0x184ea0,_0x39b4a1,_0x1381ff),this[_0x47e394(0x40f)]=_0x3e9aaa,this[_0x47e394(0x239)]=_0x1acfa2;}async[_0x54dd88(0x351)](){const _0x2e8b1f=_0x54dd88;let _0x158003=await super[_0x2e8b1f(0x351)]();return this[_0x2e8b1f(0x1af)](this[_0x2e8b1f(0x126)][_0x2e8b1f(0x13d)]((_0x34ece2,_0x3f565c)=>{const _0x4c1a7e=_0x2e8b1f;if(_0x34ece2[_0x4c1a7e(0x239)]!==t[_0x4c1a7e(0x234)][_0x4c1a7e(0x3de)]||_0x3f565c!=null&&_0x3f565c[_0x4c1a7e(0x34f)]||_0x3f565c!=null&&_0x3f565c['onlyLocal'])return;let _0xac14ce=_0x34ece2[_0x4c1a7e(0x3e3)];if((_0xac14ce==null?void 0x0:_0xac14ce[_0x4c1a7e(0x338)])!==this['unitID'])return;let _0x486328=_0x34ece2,_0x5339df=this[_0x4c1a7e(0x341)][_0x4c1a7e(0x379)][_0x4c1a7e(0x3f8)](this['_compressMutationService'][_0x4c1a7e(0x379)][_0x4c1a7e(0x155)]()[_0x4c1a7e(0x2c3)])([_0x486328],this[_0x4c1a7e(0x220)])||[_0x486328];this[_0x4c1a7e(0x2c5)](_0x5339df[0x0]);})),_0x158003;}};z=y([v(0x3,(0x0,t['Inject'])(t[_0x54dd88(0x43d)])),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x361)])),v(0x5,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x302)])),v(0x6,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x54dd88(0x228)]),v(0x9,t[_0x54dd88(0x225)]),v(0xa,t['ICommandService']),v(0xb,t[_0x54dd88(0x3a3)]),v(0xc,(0x0,t[_0x54dd88(0x1d4)])(C)),v(0xd,(0x0,t[_0x54dd88(0x1d4)])(x))],z);let B=class extends P{constructor(_0x109466,_0xbebc36,_0x1e171d,_0x484625,_0x59894b,_0x32f9d9,_0x14fdf0,_0x40c8f0,_0x5c9903,_0x44791a,_0x2d4344,_0x35c8d3,_0x343364,_0x20fbf6){const _0x38e29d=_0x54dd88;super(_0x109466,_0x1e171d,_0xbebc36,_0x484625,_0x59894b,_0x32f9d9,_0x14fdf0,_0x40c8f0,_0x5c9903,_0x44791a,_0x2d4344,_0x35c8d3,_0x343364,_0x20fbf6),this[_0x38e29d(0x40f)]=_0x109466,this['type']=_0xbebc36;}async[_0x54dd88(0x351)](){const _0x19e273=_0x54dd88;let _0x102a79=await super['_init']();return this[_0x19e273(0x1af)](this[_0x19e273(0x126)][_0x19e273(0x13d)]((_0x456f8f,_0x433f0c)=>{const _0x4da723=_0x19e273;if(_0x456f8f[_0x4da723(0x239)]!==t[_0x4da723(0x234)][_0x4da723(0x3de)]||_0x433f0c!=null&&_0x433f0c[_0x4da723(0x34f)]||_0x433f0c!=null&&_0x433f0c[_0x4da723(0x301)])return;let _0x3baf7c=_0x456f8f[_0x4da723(0x3e3)];if((_0x3baf7c==null?void 0x0:_0x3baf7c[_0x4da723(0x338)])!==this[_0x4da723(0x40f)])return;let _0x41c81d=_0x456f8f,_0x58166f=this[_0x4da723(0x341)][_0x4da723(0x379)]['fetchThroughInterceptors'](this[_0x4da723(0x341)][_0x4da723(0x379)][_0x4da723(0x155)]()[_0x4da723(0x2c3)])([_0x41c81d],this[_0x4da723(0x220)])||[_0x41c81d];this[_0x4da723(0x2c5)](_0x58166f[0x0]);})),_0x102a79;}};B=y([v(0x3,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x4,(0x0,t['Inject'])(e[_0x54dd88(0x361)])),v(0x5,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x302)])),v(0x6,(0x0,t[_0x54dd88(0x3b9)])(e[_0x54dd88(0x26e)])),v(0x7,(0x0,t[_0x54dd88(0x3b9)])(_)),v(0x8,t[_0x54dd88(0x228)]),v(0x9,t['ILogService']),v(0xa,t[_0x54dd88(0x1d0)]),v(0xb,t[_0x54dd88(0x3a3)]),v(0xc,(0x0,t[_0x54dd88(0x1d4)])(C)),v(0xd,(0x0,t[_0x54dd88(0x1d4)])(x))],B);const We=(0x0,t['createIdentifier'])(_0x54dd88(0x143));function Ge(_0x755e18){const _0x213d07=_0x54dd88;let _0xc079e7=_0x755e18['data'],_0xbcf757=JSON[_0x213d07(0x1c6)](_0xc079e7);switch(_0xbcf757[_0x213d07(0x37c)]){case a['CombCmd']['HEARTBEAT']:case a[_0x213d07(0x1df)][_0x213d07(0x415)]:{let _0x4badd8=_0xbcf757[_0x213d07(0x206)];return{..._0xbcf757,'data':_0x4badd8,'cmd':_0xbcf757[_0x213d07(0x37c)]};}case a['CombCmd']['JOIN']:{let _0x2820f3=_0xbcf757[_0x213d07(0x36a)];return{..._0xbcf757,'data':_0x2820f3,'cmd':_0xbcf757[_0x213d07(0x37c)]};}case a[_0x213d07(0x1df)][_0x213d07(0x452)]:{let _0x2e7305=_0xbcf757[_0x213d07(0x211)];switch(_0x2e7305['eventID']){case e[_0x213d07(0x20b)][_0x213d07(0x317)]:var _0x2f433c;return{..._0xbcf757,'data':{..._0x2e7305,'data':(_0x2f433c=_0x2e7305[_0x213d07(0x276)])==null?void 0x0:_0x2f433c['cs']},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e[_0x213d07(0x20b)][_0x213d07(0x291)]:var _0x100d05;return{..._0xbcf757,'data':{..._0x2e7305,'data':(_0x100d05=_0x2e7305[_0x213d07(0x1c3)])==null?void 0x0:_0x100d05['cs']},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e[_0x213d07(0x20b)]['NEW_CHANGESETS']:var _0x441f4f;return{..._0xbcf757,'data':{..._0x2e7305,'data':(_0x441f4f=_0x2e7305['newCsEvent'])==null?void 0x0:_0x441f4f['cs']},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e[_0x213d07(0x20b)][_0x213d07(0x2d5)]:var _0x5f3254;return{..._0xbcf757,'data':{..._0x2e7305,'data':(_0x5f3254=_0x2e7305['csRejEvent'])==null?void 0x0:_0x5f3254['cs']},'cmd':_0xbcf757['cmd']};case e['CollaborationEvent'][_0x213d07(0x210)]:var _0xf86aa4;return{..._0xbcf757,'data':{..._0x2e7305,'data':(_0xf86aa4=_0x2e7305[_0x213d07(0x236)])==null?void 0x0:_0xf86aa4['cs']},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e[_0x213d07(0x20b)]['UPDATE_CURSOR']:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305[_0x213d07(0x157)]},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e[_0x213d07(0x20b)][_0x213d07(0x389)]:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305[_0x213d07(0x40b)]},'cmd':_0xbcf757['cmd']};case e[_0x213d07(0x20b)][_0x213d07(0x2bf)]:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305['leaveEvent']},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e[_0x213d07(0x20b)][_0x213d07(0x1c2)]:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305[_0x213d07(0x1dd)]},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e['CollaborationEvent'][_0x213d07(0x1de)]:case e[_0x213d07(0x20b)][_0x213d07(0x3fe)]:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305[_0x213d07(0x324)]},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e['CollaborationEvent'][_0x213d07(0x378)]:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305['liveShareNewHost']},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e[_0x213d07(0x20b)][_0x213d07(0x2dc)]:return{..._0xbcf757,'data':_0x2e7305,'cmd':_0xbcf757[_0x213d07(0x37c)]};case e[_0x213d07(0x20b)]['COMMENT_UPDATE']:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305[_0x213d07(0x130)]},'cmd':_0xbcf757[_0x213d07(0x37c)]};case e[_0x213d07(0x20b)]['UPDATE_PERMISSION_OBJ']:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305['updatePermissionObjEvent']},'cmd':_0xbcf757['cmd']};case e[_0x213d07(0x20b)][_0x213d07(0x3a6)]:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305['shouldCloseConn']},'cmd':_0xbcf757['cmd']};case e[_0x213d07(0x20b)][_0x213d07(0x414)]:return{..._0xbcf757,'data':{..._0x2e7305,'data':_0x2e7305[_0x213d07(0x27b)]},'cmd':_0xbcf757[_0x213d07(0x37c)]};default:return _0xbcf757;}}default:return _0xbcf757;}}function _0x1bed(_0x3c74fa,_0x38a84b){_0x3c74fa=_0x3c74fa-0x123;const _0x359699=_0x3596();let _0x1bed43=_0x359699[_0x3c74fa];return _0x1bed43;}function Ke(_0x37113e){const _0x422832=_0x54dd88;switch(_0x37113e[_0x422832(0x37c)]){case a['CombCmd'][_0x422832(0x20f)]:case a[_0x422832(0x1df)][_0x422832(0x415)]:return JSON[_0x422832(0x427)]({'cmd':_0x37113e[_0x422832(0x37c)],'routeKey':_0x37113e['routeKey']});case a[_0x422832(0x1df)][_0x422832(0x180)]:{let _0x476b96;switch(_0x37113e[_0x422832(0x382)][_0x422832(0x170)]){case e['CollaborationEvent'][_0x422832(0x169)]:_0x476b96={'eventID':e[_0x422832(0x20b)][_0x422832(0x169)],'updateCursorEvent':_0x37113e[_0x422832(0x382)][_0x422832(0x382)]};break;case e[_0x422832(0x20b)][_0x422832(0x2bf)]:_0x476b96={'eventID':e['CollaborationEvent'][_0x422832(0x2bf)],'leaveEvent':_0x37113e['data'][_0x422832(0x382)]};break;case e[_0x422832(0x20b)][_0x422832(0x389)]:_0x476b96={'eventID':e[_0x422832(0x20b)][_0x422832(0x389)],'joinEvent':_0x37113e[_0x422832(0x382)][_0x422832(0x382)]};break;case e[_0x422832(0x20b)]['LIVESHARE_NEW_HOST']:_0x476b96={'eventID':e[_0x422832(0x20b)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x37113e[_0x422832(0x382)][_0x422832(0x382)]};break;case e[_0x422832(0x20b)][_0x422832(0x3fe)]:_0x476b96={'eventID':e[_0x422832(0x20b)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x37113e['data'][_0x422832(0x382)]};break;case e[_0x422832(0x20b)][_0x422832(0x378)]:_0x476b96={'eventID':e['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x37113e[_0x422832(0x382)][_0x422832(0x382)]};break;case e[_0x422832(0x20b)]['LIVESHARE_REQUEST_HOST']:_0x476b96={'eventID':e[_0x422832(0x20b)][_0x422832(0x3ec)],'liveShareRequestHost':_0x37113e[_0x422832(0x382)]['data']};break;case e['CollaborationEvent'][_0x422832(0x1de)]:_0x476b96={'eventID':e[_0x422832(0x20b)][_0x422832(0x1de)]};break;default:_0x476b96={'eventID':_0x37113e[_0x422832(0x382)][_0x422832(0x170)]};}return JSON['stringify']({'cmd':_0x37113e['cmd'],'routeKey':_0x37113e['routeKey'],'collaMsg':_0x476b96});}case a[_0x422832(0x1df)][_0x422832(0x32f)]:return JSON[_0x422832(0x427)]({'cmd':_0x37113e[_0x422832(0x37c)],'routeKey':_0x37113e['routeKey'],'joinReq':_0x37113e['data']});case a['CombCmd'][_0x422832(0x269)]:return JSON[_0x422832(0x427)]({'cmd':_0x37113e[_0x422832(0x37c)],'routeKey':_0x37113e[_0x422832(0x3b1)],'leaveReq':_0x37113e[_0x422832(0x382)]});default:throw Error(_0x422832(0x398));}}const qe=(0x0,t['createIdentifier'])(_0x54dd88(0x14c));function Je(_0x259cc3,_0x5c3b85,_0x47089f){const _0x2896ae=_0x54dd88;return _0x259cc3+'/'+_0x5c3b85+_0x2896ae(0x418)+_0x47089f+_0x2896ae(0x1be);}let Ye=class extends t['Disposable']{constructor(_0x16d564,_0x262308,_0xdd8d59,_0x422979,_0x211347){const _0x3fb413=_0x54dd88;super(),this[_0x3fb413(0x20c)]=_0x16d564,this[_0x3fb413(0x2c2)]=_0x262308,this[_0x3fb413(0x290)]=_0xdd8d59,this[_0x3fb413(0x3ca)]=_0x422979,this[_0x3fb413(0x435)]=_0x211347;}[_0x54dd88(0x445)](_0x10ad29){const _0x5e7a48=_0x54dd88;let _0x24ebce=this['_injector'][_0x5e7a48(0x2aa)](l[_0x5e7a48(0x263)]);if(!_0x24ebce)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x3e44f2=_0x24ebce[_0x5e7a48(0x25a)](_0x10ad29);if(!_0x3e44f2)throw Error(_0x5e7a48(0x259));let _0x376aff=new t[(_0x5e7a48(0x2ca))](),_0x1d7731=new i[(_0x5e7a48(0x1eb))]();_0x376aff['add'](_0x3e44f2[_0x5e7a48(0x2fe)]['subscribe'](_0x7ae11a=>_0x1d7731['next'](_0x7ae11a))),_0x376aff[_0x5e7a48(0x41c)]((0x0,t[_0x5e7a48(0x181)])(()=>_0x1d7731[_0x5e7a48(0x1fb)]()));let _0x3189d5=new i[(_0x5e7a48(0x1eb))]();_0x376aff[_0x5e7a48(0x41c)](_0x3e44f2[_0x5e7a48(0x1bd)][_0x5e7a48(0x449)](_0x272cbc=>_0x3189d5[_0x5e7a48(0x2d8)](_0x272cbc))),_0x376aff[_0x5e7a48(0x41c)]((0x0,t[_0x5e7a48(0x181)])(()=>_0x3189d5[_0x5e7a48(0x1fb)]()));let _0x4876e9=new i['Subject']();_0x376aff['add'](_0x3e44f2[_0x5e7a48(0x137)]['subscribe'](_0x55fdaf=>{let _0x2eeac0=Ge(_0x55fdaf);_0x4876e9['next'](_0x2eeac0);})),_0x376aff[_0x5e7a48(0x41c)]((0x0,t[_0x5e7a48(0x181)])(()=>_0x4876e9['complete']()));let _0x4e0949,_0xa2447d=()=>{const _0x502968=_0x5e7a48;_0x3189d5['next'](new Event(_0x502968(0x216))),_0x1d7731[_0x502968(0x2d8)](new Event(_0x502968(0x216))),_0x4e0949[_0x502968(0x287)]();};return _0x4e0949={'memberID':'','close$':_0x1d7731[_0x5e7a48(0x327)](),'error$':_0x3189d5[_0x5e7a48(0x327)](),'open$':_0x3e44f2[_0x5e7a48(0x387)],'message$':_0x4876e9['asObservable'](),'send':_0x299493=>{const _0x190c7d=_0x5e7a48;if(_0x299493[_0x190c7d(0x37c)]===a[_0x190c7d(0x1df)]['INGEST']){if(_0x299493[_0x190c7d(0x382)][_0x190c7d(0x170)]===e[_0x190c7d(0x20b)][_0x190c7d(0x158)]){this[_0x190c7d(0x177)](_0x4e0949,_0x299493[_0x190c7d(0x382)])[_0x190c7d(0x31d)](_0x591cb6=>{const _0x388824=_0x190c7d;this[_0x388824(0x3ca)][_0x388824(0x40a)](_0x591cb6),_0xa2447d();});return;}if(_0x299493[_0x190c7d(0x382)][_0x190c7d(0x170)]===e[_0x190c7d(0x20b)]['FETCH_MISSING']){let _0xa101f8=_0x299493[_0x190c7d(0x382)];this[_0x190c7d(0x31e)](_0xa101f8)[_0x190c7d(0x444)](_0x424e7c=>{const _0xacd1cc=_0x190c7d;_0x4876e9[_0xacd1cc(0x2d8)]({'cmd':a[_0xacd1cc(0x1df)][_0xacd1cc(0x452)],'code':a[_0xacd1cc(0x359)]['OK'],'routeKey':_0xa101f8[_0xacd1cc(0x382)][_0xacd1cc(0x40f)],'routeType':'','data':{'eventID':e['CollaborationEvent'][_0xacd1cc(0x21f)],'data':{'changesets':_0x424e7c}}});})[_0x190c7d(0x31d)](_0x32f512=>{const _0x4fb206=_0x190c7d;this[_0x4fb206(0x3ca)][_0x4fb206(0x40a)](_0x32f512),_0xa2447d();});return;}}_0x3e44f2[_0x190c7d(0x305)](Ke(_0x299493));},'close':()=>{const _0x3ba392=_0x5e7a48;_0x3e44f2['close'](),_0x376aff[_0x3ba392(0x1d3)]();}},_0x4e0949;}async[_0x54dd88(0x177)](_0x4fd871,_0x2ebb96){const _0x389d34=_0x54dd88;let {unitType:_0x20f6f2,unitID:_0x473396,changeset:_0x4a5e6f}=_0x2ebb96[_0x389d34(0x382)],_0x336eb6={'unitID':_0x473396,'memberID':_0x4fd871['memberID'],'type':_0x20f6f2,'changeset':(0x0,e[_0x389d34(0x3dc)])(_0x4a5e6f)},_0x25e446=this[_0x389d34(0x290)][_0x389d34(0x2b6)](m),_0x2fa207=Je((_0x25e446==null?void 0x0:_0x25e446[_0x389d34(0x336)])??'/universer-api/comb',_0x20f6f2,_0x473396);try{await this['_httpService']['post'](_0x2fa207,{'body':_0x336eb6});}catch(_0x41a994){throw this[_0x389d34(0x3ca)][_0x389d34(0x40a)](_0x389d34(0x419),_0x389d34(0x42f)),_0x41a994;}}async[_0x54dd88(0x31e)](_0x104df1){const _0x54a6c1=_0x54dd88;let {unitID:_0x4d4e5b,from:_0xbea3a6,to:_0x70f156,unitType:_0x390071}=_0x104df1[_0x54a6c1(0x382)];return(await this[_0x54a6c1(0x435)][_0x54a6c1(0x18b)]({'metadata':void 0x0},{'unitID':_0x4d4e5b,'type':_0x390071,'from':_0xbea3a6,'to':_0x70f156}))[_0x54a6c1(0x406)][_0x54a6c1(0x423)](_0x3eb580=>((_0x3eb580[_0x54a6c1(0x3be)]===null||_0x3eb580[_0x54a6c1(0x3be)]===void 0x0)&&(_0x3eb580['mutations']=[]),_0x3eb580));}};Ye=y([v(0x0,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x1,(0x0,t[_0x54dd88(0x3b9)])(l[_0x54dd88(0x34d)])),v(0x2,t[_0x54dd88(0x173)]),v(0x3,t[_0x54dd88(0x225)]),v(0x4,e[_0x54dd88(0x2e0)])],Ye);const Xe=(0x0,t['createIdentifier'])(_0x54dd88(0x44d));function Ze(_0x1cbfa9={}){const _0x25863f=_0x54dd88;return _0x1cbfa9[_0x25863f(0x3b3)]?{'resolveUnit':_0x1cbfa9[_0x25863f(0x3b3)]}:{'resolveUnit':_0x4d1ce3=>({'target':{'unitId':_0x4d1ce3[_0x25863f(0x338)],'unitType':_0x4d1ce3['unitType']}})};}function Qe(_0x39a269,_0x1c700a,_0x5a47ee){const _0x4d4e8d=_0x54dd88;let _0x21a79e=_0x5a47ee[_0x4d4e8d(0x128)][_0x4d4e8d(0x428)];if(_0x21a79e!=null&&_0x21a79e[_0x4d4e8d(0x2cb)]()==='')throw Error(_0x4d4e8d(0x167));if(!_0x5a47ee['target'][_0x4d4e8d(0x338)])throw Error(_0x4d4e8d(0x3db));return{'localUnitId':_0x39a269,'unitType':_0x1c700a,'target':{'endpoint':_0x21a79e,'unitId':_0x5a47ee[_0x4d4e8d(0x128)][_0x4d4e8d(0x338)],'unitType':_0x5a47ee['target'][_0x4d4e8d(0x3a4)]??_0x1c700a},'changeset':_0x5a47ee[_0x4d4e8d(0x281)]};}let V=class extends t['Disposable']{constructor(_0x32ec56,_0x1d8d43,_0x35ef04,_0x2bf704,_0x4f38c4,_0x308f4d,_0x4cf8d0){const _0x5682b4=_0x54dd88;super(),this[_0x5682b4(0x20c)]=_0x32ec56,this[_0x5682b4(0x3ca)]=_0x1d8d43,this[_0x5682b4(0x290)]=_0x35ef04,this['_socketService']=_0x2bf704,this[_0x5682b4(0x136)]=_0x4f38c4,this[_0x5682b4(0x297)]=_0x308f4d,this[_0x5682b4(0x3d6)]=_0x4cf8d0,g(this,'_sessions',new Map()),g(this,_0x5682b4(0x325),new Map()),g(this,_0x5682b4(0x20a),new Map()),g(this,'_socketChannels',new Map()),g(this,'socket$',this['_getSocketChannel'](void 0x0)[_0x5682b4(0x3ef)]['asObservable']()),g(this,_0x5682b4(0x241),new i[(_0x5682b4(0x352))](0x0)),g(this,_0x5682b4(0x1ce),this['_status$'][_0x5682b4(0x327)]()),this[_0x5682b4(0x42d)]();}[_0x54dd88(0x42d)](){const _0x3b5cf1=_0x54dd88;this['_networkConditionService']&&this[_0x3b5cf1(0x1af)](this[_0x3b5cf1(0x3d6)][_0x3b5cf1(0x132)][_0x3b5cf1(0x449)](_0x20c2d2=>{const _0x12c127=_0x3b5cf1;_0x20c2d2&&this[_0x12c127(0x1f2)](),_0x20c2d2||this['_socketChannels']['forEach'](_0x466203=>this[_0x12c127(0x2c0)](_0x466203));}));}['dispose'](){const _0x19384b=_0x54dd88;super[_0x19384b(0x1d3)](),this[_0x19384b(0x39f)]['forEach'](_0x157223=>{const _0x52df55=_0x19384b;var _0x353315,_0x662480;(_0x353315=_0x157223[_0x52df55(0x240)])==null||_0x353315[_0x52df55(0x265)](),_0x157223['socketMessageSubscription']=null,this[_0x52df55(0x3c1)](_0x157223),this[_0x52df55(0x289)](_0x157223),this[_0x52df55(0x334)](_0x157223),(_0x662480=_0x157223[_0x52df55(0x3ef)][_0x52df55(0x2ec)]())==null||_0x662480['close'](),_0x157223[_0x52df55(0x3ef)][_0x52df55(0x1fb)]();}),this[_0x19384b(0x39f)][_0x19384b(0x148)](),this[_0x19384b(0x3c8)][_0x19384b(0x44f)](_0x1722b3=>_0x1722b3[_0x19384b(0x1d3)]()),this[_0x19384b(0x3c8)][_0x19384b(0x148)](),this[_0x19384b(0x20a)][_0x19384b(0x148)](),this[_0x19384b(0x241)]['complete']();}async[_0x54dd88(0x1d2)](_0x4e3486,_0x2ebfbc){const _0x8dc928=_0x54dd88;if(this[_0x8dc928(0x3c8)][_0x8dc928(0x2c4)](_0x4e3486))return this[_0x8dc928(0x3c8)][_0x8dc928(0x2aa)](_0x4e3486);let _0x497512=this[_0x8dc928(0x325)][_0x8dc928(0x2aa)](_0x4e3486);if(_0x497512)return _0x497512;let _0x26a015=this[_0x8dc928(0x426)](_0x4e3486,_0x2ebfbc);this[_0x8dc928(0x325)][_0x8dc928(0x2d4)](_0x4e3486,_0x26a015);try{return await _0x26a015;}finally{this[_0x8dc928(0x325)][_0x8dc928(0x2e8)](_0x4e3486);}}async[_0x54dd88(0x426)](_0x897170,_0x22694f){const _0x581724=_0x54dd88;let _0x1539b0=await this['_resolveSessionIdentity'](_0x897170,_0x22694f),_0x4009f8=this['_getSocketChannel'](_0x1539b0['target'][_0x581724(0x428)]);this[_0x581724(0x159)](_0x4009f8);let _0x43e861=this[_0x581724(0x20c)]['createInstance'](ve,_0x1539b0,_0x4009f8[_0x581724(0x3ef)][_0x581724(0x327)]());return this[_0x581724(0x3c8)][_0x581724(0x2d4)](_0x897170,_0x43e861),this['_sessionChannels'][_0x581724(0x2d4)](_0x897170,_0x4009f8[_0x581724(0x333)]),_0x43e861;}[_0x54dd88(0x29a)](_0x548347){const _0x1190b5=_0x54dd88;let _0x4ddeb9=this[_0x1190b5(0x3c8)][_0x1190b5(0x2aa)](_0x548347),_0x47a67b=this[_0x1190b5(0x20a)]['get'](_0x548347);if(_0x4ddeb9&&(this['_sessions'][_0x1190b5(0x2e8)](_0x548347),this['_sessionChannels'][_0x1190b5(0x2e8)](_0x548347),_0x4ddeb9[_0x1190b5(0x287)]()),_0x47a67b&&!this[_0x1190b5(0x14f)](_0x47a67b)){var _0x34d8e4;let _0x50801e=this[_0x1190b5(0x39f)][_0x1190b5(0x2aa)](_0x47a67b);_0x50801e==null||(_0x34d8e4=_0x50801e[_0x1190b5(0x3ef)][_0x1190b5(0x2ec)]())==null||_0x34d8e4[_0x1190b5(0x287)]();}}['reconnect'](){const _0x5d08ea=_0x54dd88;(this[_0x5d08ea(0x39f)][_0x5d08ea(0x15d)]?[...this[_0x5d08ea(0x39f)][_0x5d08ea(0x203)]()]:[this[_0x5d08ea(0x322)](void 0x0)])[_0x5d08ea(0x44f)](_0x1cb295=>{const _0x468682=_0x5d08ea;_0x1cb295[_0x468682(0x3a1)]=0x0,this[_0x468682(0x3c1)](_0x1cb295),this[_0x468682(0x2a3)](_0x1cb295);});}[_0x54dd88(0x3c1)](_0x30e846){const _0x49cbbe=_0x54dd88;_0x30e846[_0x49cbbe(0x40d)]!=null&&(clearTimeout(_0x30e846[_0x49cbbe(0x40d)]),_0x30e846['retryConnectingTimer']=null);}async['_createSocket'](_0x59331e){const _0xeccaef=_0x54dd88;let _0x982a6c=this[_0xeccaef(0x290)]['getConfig'](m),_0x138ec9=_0x59331e[_0xeccaef(0x428)]??(_0x982a6c==null?void 0x0:_0x982a6c[_0xeccaef(0x319)])??_0xeccaef(0x182),_0x5e2d10=await this[_0xeccaef(0x146)][_0xeccaef(0x25a)](_0x138ec9);return _0x59331e[_0xeccaef(0x3e4)]=_0x5e2d10,_0x5e2d10;}async[_0x54dd88(0x159)](_0x408d12){const _0x35c160=_0x54dd88;try{let _0x34ed4f=_0x408d12[_0x35c160(0x3ef)][_0x35c160(0x2ec)]()??_0x408d12[_0x35c160(0x3e4)]??await this[_0x35c160(0x38a)](_0x408d12);if(_0x34ed4f){var _0x14568b;let _0x59e13e=_0x34ed4f[_0x35c160(0x305)];_0x34ed4f[_0x35c160(0x305)]=_0x23190e=>(_0x23190e['cmd']!==a[_0x35c160(0x1df)][_0x35c160(0x269)]&&this[_0x35c160(0x29f)](_0x408d12),_0x59e13e[_0x35c160(0x199)](_0x34ed4f,[_0x23190e])),(_0x14568b=_0x408d12['socketMessageSubscription'])==null||_0x14568b[_0x35c160(0x265)](),_0x408d12[_0x35c160(0x240)]=null,_0x408d12[_0x35c160(0x240)]=_0x34ed4f[_0x35c160(0x137)][_0x35c160(0x449)](_0x534c2c=>this[_0x35c160(0x38c)](_0x408d12,_0x34ed4f,_0x534c2c)),_0x34ed4f[_0x35c160(0x1bd)]['pipe']((0x0,s[_0x35c160(0x1bb)])(0x1))[_0x35c160(0x449)](_0x1a7169=>this[_0x35c160(0x3ca)][_0x35c160(0x40a)](_0x35c160(0x1ea),_0x1a7169)),_0x34ed4f[_0x35c160(0x387)][_0x35c160(0x2de)]((0x0,s[_0x35c160(0x1bb)])(0x1))[_0x35c160(0x449)](()=>{const _0x50186a=_0x35c160;this[_0x50186a(0x153)](_0x408d12,_0x34ed4f);}),_0x34ed4f[_0x35c160(0x2fe)][_0x35c160(0x2de)]((0x0,s[_0x35c160(0x1bb)])(0x1))[_0x35c160(0x449)](_0x4cb0ee=>{const _0x58aab0=_0x35c160;this[_0x58aab0(0x3ca)]['debug'](_0x58aab0(0x447),'socket\x20close',_0x4cb0ee),this[_0x58aab0(0x3c5)](_0x408d12);});}}catch(_0x50c797){this[_0x35c160(0x3ca)][_0x35c160(0x40a)](_0x50c797),this[_0x35c160(0x3c5)](_0x408d12);}}['_onConnectionOpen'](_0x39e876,_0x40e704){const _0x3a37ac=_0x54dd88;this[_0x3a37ac(0x3ca)][_0x3a37ac(0x3df)](_0x3a37ac(0x447),_0x3a37ac(0x165)),_0x40e704['send']({'cmd':a[_0x3a37ac(0x1df)]['HELLO']}),this[_0x3a37ac(0x29f)](_0x39e876);}[_0x54dd88(0x2c0)](_0x518667){const _0x1b525e=_0x54dd88;_0x518667[_0x1b525e(0x1ec)]=!0x1,_0x518667[_0x1b525e(0x3e4)]=null,this['_status$']['next'](0x2),_0x518667['socket$'][_0x1b525e(0x2d8)](null),this[_0x1b525e(0x289)](_0x518667),this[_0x1b525e(0x334)](_0x518667);}[_0x54dd88(0x3c5)](_0x56cd7a){const _0x5f3c9f=_0x54dd88;this[_0x5f3c9f(0x2c0)](_0x56cd7a),this[_0x5f3c9f(0x14f)](_0x56cd7a[_0x5f3c9f(0x333)])&&(_0x56cd7a['retryCount']<(this[_0x5f3c9f(0x290)][_0x5f3c9f(0x2b6)](_0x5f3c9f(0x27a))??0x3)?(this['_collaborationUIEventService'][_0x5f3c9f(0x1f9)]({'id':_0x5f3c9f(0x3d2)}),this[_0x5f3c9f(0x2a3)](_0x56cd7a)):this[_0x5f3c9f(0x136)]['emitEvent']({'id':_0x5f3c9f(0x21d)}));}[_0x54dd88(0x2a3)](_0x55511e){const _0x4a2a0c=_0x54dd88;let _0x359f97=_0x55511e[_0x4a2a0c(0x3a1)],_0x5b87e9=this[_0x4a2a0c(0x290)]['getConfig'](m),_0x27c31c=_0x359f97===0x0?0x0:((_0x5b87e9==null?void 0x0:_0x5b87e9['retryConnectingInterval'])??0x4e20)*0x2**_0x359f97;_0x55511e[_0x4a2a0c(0x40d)]=setTimeout(()=>{const _0x586f3e=_0x4a2a0c;clearTimeout(_0x55511e['retryConnectingTimer']),_0x55511e['retryConnectingTimer']=null,this[_0x586f3e(0x159)](_0x55511e);},_0x27c31c),_0x55511e['retryCount']+=0x1;}async[_0x54dd88(0x27e)](_0x461d45,_0x57e2b0){const _0x271b86=_0x54dd88;return Qe(_0x461d45,_0x57e2b0,await this['_adapter'][_0x271b86(0x3b3)]({'unitId':_0x461d45,'unitType':_0x57e2b0}));}[_0x54dd88(0x38c)](_0x3005f1,_0x5318e8,_0x5b0091){const _0x4ab395=_0x54dd88;let {cmd:_0x350035}=_0x5b0091;_0x350035===a[_0x4ab395(0x1df)][_0x4ab395(0x415)]&&!_0x3005f1[_0x4ab395(0x1ec)]&&(_0x5318e8[_0x4ab395(0x3c0)]=_0x5b0091[_0x4ab395(0x382)][_0x4ab395(0x3c0)],_0x3005f1[_0x4ab395(0x3ef)][_0x4ab395(0x2d8)](_0x5318e8),this['_status$']['next'](0x3),_0x3005f1['socketReady']=!0x0,_0x3005f1[_0x4ab395(0x3e4)]=null),_0x350035===a[_0x4ab395(0x1df)][_0x4ab395(0x20f)]&&this[_0x4ab395(0x289)](_0x3005f1),this[_0x4ab395(0x29f)](_0x3005f1);}['_hasSessionsForEndpoint'](_0x3b3ab7){const _0x11cf96=_0x54dd88;return[...this[_0x11cf96(0x20a)][_0x11cf96(0x203)]()][_0x11cf96(0x3a9)](_0x36e52a=>_0x36e52a===_0x3b3ab7);}[_0x54dd88(0x322)](_0x4925aa){const _0x47980f=_0x54dd88;let _0x582a96=_0x4925aa??'',_0x56063b=this[_0x47980f(0x39f)]['get'](_0x582a96);if(_0x56063b)return _0x56063b;let _0x396f5d={'endpointKey':_0x582a96,'endpoint':_0x4925aa,'socket$':new i[(_0x47980f(0x352))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x47980f(0x39f)][_0x47980f(0x2d4)](_0x582a96,_0x396f5d),_0x396f5d;}[_0x54dd88(0x29f)](_0x4ff082){const _0x46149e=_0x54dd88;this[_0x46149e(0x334)](_0x4ff082),_0x4ff082[_0x46149e(0x2a0)]=setTimeout(()=>this[_0x46149e(0x3bb)](_0x4ff082),this[_0x46149e(0x290)][_0x46149e(0x2b6)](_0x46149e(0x166))??0x7530);}[_0x54dd88(0x3bb)](_0x1d62f4){const _0xe0c836=_0x54dd88;_0x1d62f4['socket$']['getValue']()[_0xe0c836(0x305)]({'cmd':a[_0xe0c836(0x1df)][_0xe0c836(0x20f)]}),this[_0xe0c836(0x443)](_0x1d62f4);}[_0x54dd88(0x443)](_0x24561f){const _0x533627=_0x54dd88;_0x24561f[_0x533627(0x1a2)]=setTimeout(()=>this['_onConnectionFailed'](_0x24561f),this[_0x533627(0x290)][_0x533627(0x2b6)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x54dd88(0x334)](_0xb88941){const _0x1cf820=_0x54dd88;_0xb88941[_0x1cf820(0x2a0)]!=null&&(clearTimeout(_0xb88941[_0x1cf820(0x2a0)]),_0xb88941[_0x1cf820(0x2a0)]=null);}[_0x54dd88(0x289)](_0x3704ed){const _0x238aef=_0x54dd88;_0x3704ed[_0x238aef(0x1a2)]!=null&&(clearTimeout(_0x3704ed[_0x238aef(0x1a2)]),_0x3704ed[_0x238aef(0x1a2)]=null);}};V=y([v(0x0,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x1,t[_0x54dd88(0x225)]),v(0x2,t[_0x54dd88(0x173)]),v(0x3,qe),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x54dd88(0x1d4)])(We))],V);let H=class extends t[_0x54dd88(0x2f0)]{constructor(_0x57a82d,_0x53cc50,_0x525617,_0x53ae74){const _0x18d896=_0x54dd88;var _0x32eae5;super(),this[_0x18d896(0x20c)]=_0x57a82d,this['_collabSessionService']=_0x53cc50,this[_0x18d896(0x290)]=_0x525617,this[_0x18d896(0x220)]=_0x53ae74,g(this,_0x18d896(0x34c),new Map()),g(this,'_entityInit$',new i[(_0x18d896(0x1eb))]()),g(this,'entityInit$',this['_entityInit$']['asObservable']()),((_0x32eae5=this[_0x18d896(0x290)]['getConfig'](_0x18d896(0x337)))==null?void 0x0:_0x32eae5[_0x18d896(0x1a9)])!==!0x1&&this[_0x18d896(0x351)]();}[_0x54dd88(0x1d3)](){const _0x1615ec=_0x54dd88;super[_0x1615ec(0x1d3)](),this[_0x1615ec(0x34c)][_0x1615ec(0x44f)](_0x4f7142=>_0x4f7142[_0x1615ec(0x1d3)]()),this[_0x1615ec(0x34c)][_0x1615ec(0x148)]();}[_0x54dd88(0x3ab)](_0x1fbe7c){const _0x35f245=_0x54dd88;return this[_0x35f245(0x34c)][_0x35f245(0x2aa)](_0x1fbe7c)??null;}['getCollabEntity$'](_0x24b650){const _0x5a2326=_0x54dd88;let _0x1de4da=this[_0x5a2326(0x3ab)](_0x24b650);return _0x1de4da?(0x0,i['of'])(_0x1de4da):this[_0x5a2326(0x253)][_0x5a2326(0x2de)]((0x0,s[_0x5a2326(0x22e)])(_0xeea84e=>_0xeea84e[_0x5a2326(0x40f)]===_0x24b650));}[_0x54dd88(0x1e6)](_0x1ae3aa){const _0x2c393c=_0x54dd88;return(0x0,i[_0x2c393c(0x311)])(this['getCollabEntity$'](_0x1ae3aa)[_0x2c393c(0x2de)]((0x0,s[_0x2c393c(0x423)])(()=>void 0x0)));}[_0x54dd88(0x351)](){const _0x132aa0=_0x54dd88;this[_0x132aa0(0x220)][_0x132aa0(0x2e7)](t[_0x132aa0(0x432)]['UNIVER_SHEET'])[_0x132aa0(0x2de)]((0x0,i[_0x132aa0(0x316)])(this[_0x132aa0(0x42e)]),(0x0,s[_0x132aa0(0x2b8)])(0x10))[_0x132aa0(0x449)](async _0x4898eb=>{const _0x8532f=_0x132aa0;let _0x135baa=_0x4898eb[_0x8532f(0x33b)]['getUnitId'](),_0x4481f8=await this[_0x8532f(0x377)](_0x135baa,t[_0x8532f(0x432)][_0x8532f(0x1c7)]);this[_0x8532f(0x34c)][_0x8532f(0x2d4)](_0x135baa,_0x4481f8);}),this[_0x132aa0(0x220)][_0x132aa0(0x2e7)](t[_0x132aa0(0x432)][_0x132aa0(0x1b8)])[_0x132aa0(0x2de)]((0x0,i['takeUntil'])(this[_0x132aa0(0x42e)]),(0x0,s['delay'])(0x10))['pipe']((0x0,s[_0x132aa0(0x22e)])(_0x214237=>!_0x214237[_0x132aa0(0x33b)][_0x132aa0(0x33d)]()['startsWith']('__')))['subscribe'](async _0x523c1f=>{const _0x44914a=_0x132aa0;let _0x3a0155=_0x523c1f[_0x44914a(0x33b)][_0x44914a(0x33d)](),_0x1b1544=await this[_0x44914a(0x377)](_0x3a0155,t['UniverInstanceType'][_0x44914a(0x1b8)]);this['_entities']['set'](_0x3a0155,_0x1b1544);}),this[_0x132aa0(0x220)][_0x132aa0(0x2e7)](t[_0x132aa0(0x432)][_0x132aa0(0x320)])['pipe']((0x0,i[_0x132aa0(0x316)])(this[_0x132aa0(0x42e)]),(0x0,s[_0x132aa0(0x2b8)])(0x10))[_0x132aa0(0x449)](async _0x4e7081=>{const _0x15010d=_0x132aa0;let _0x5ecc95=_0x4e7081['unit'][_0x15010d(0x33d)](),_0x2adc32=await this[_0x15010d(0x377)](_0x5ecc95,t[_0x15010d(0x432)][_0x15010d(0x320)]);this[_0x15010d(0x34c)][_0x15010d(0x2d4)](_0x5ecc95,_0x2adc32);}),this[_0x132aa0(0x220)][_0x132aa0(0x2e7)](t[_0x132aa0(0x432)][_0x132aa0(0x3d1)])['pipe']((0x0,i[_0x132aa0(0x316)])(this[_0x132aa0(0x42e)]),(0x0,s['delay'])(0x10))[_0x132aa0(0x449)](async _0x5ac21e=>{const _0x590ab7=_0x132aa0;let _0x42d962=_0x5ac21e['unit'][_0x590ab7(0x33d)](),_0x3a2d63=await this[_0x590ab7(0x377)](_0x42d962,t[_0x590ab7(0x432)]['UNIVER_BOARD']);this[_0x590ab7(0x34c)][_0x590ab7(0x2d4)](_0x42d962,_0x3a2d63);}),this[_0x132aa0(0x220)][_0x132aa0(0x2e7)](t[_0x132aa0(0x432)][_0x132aa0(0x3c9)])[_0x132aa0(0x2de)]((0x0,i[_0x132aa0(0x316)])(this[_0x132aa0(0x42e)]),(0x0,s[_0x132aa0(0x2b8)])(0x10))[_0x132aa0(0x449)](async _0x27ffef=>{const _0x1e0c9d=_0x132aa0;let _0x3d0a1d=_0x27ffef[_0x1e0c9d(0x33b)][_0x1e0c9d(0x33d)](),_0x1db22b=await this[_0x1e0c9d(0x377)](_0x3d0a1d,t['UniverInstanceType'][_0x1e0c9d(0x3c9)]);this[_0x1e0c9d(0x34c)][_0x1e0c9d(0x2d4)](_0x3d0a1d,_0x1db22b);}),this[_0x132aa0(0x220)]['getTypeOfUnitAdded$'](t[_0x132aa0(0x432)]['UNIVER_PDF'])[_0x132aa0(0x2de)]((0x0,i[_0x132aa0(0x316)])(this['dispose$']),(0x0,s['delay'])(0x10))['subscribe'](async _0x492266=>{const _0x5b7f86=_0x132aa0;let _0x4caa33=_0x492266['unit'][_0x5b7f86(0x33d)](),_0x3f5dee=await this['_startCollaboration'](_0x4caa33,t['UniverInstanceType']['UNIVER_PDF']);this['_entities']['set'](_0x4caa33,_0x3f5dee);}),(0x0,i[_0x132aa0(0x183)])(this[_0x132aa0(0x220)][_0x132aa0(0x16a)](t['UniverInstanceType']['UNIVER_SHEET']),this[_0x132aa0(0x220)][_0x132aa0(0x16a)](t[_0x132aa0(0x432)]['UNIVER_DOC']),this['_univerInstanceService'][_0x132aa0(0x16a)](t[_0x132aa0(0x432)][_0x132aa0(0x320)]),this[_0x132aa0(0x220)]['getTypeOfUnitDisposed$'](t['UniverInstanceType']['UNIVER_BOARD']),this['_univerInstanceService'][_0x132aa0(0x16a)](t[_0x132aa0(0x432)][_0x132aa0(0x3c9)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x132aa0(0x432)]['UNIVER_PDF']))[_0x132aa0(0x2de)]((0x0,i[_0x132aa0(0x316)])(this[_0x132aa0(0x42e)]))['subscribe'](_0x43f573=>{const _0x52ae2e=_0x132aa0;let _0x3ed461=_0x43f573['getUnitId'](),_0x28c2e3=this[_0x52ae2e(0x34c)]['get'](_0x3ed461);_0x28c2e3&&(_0x28c2e3[_0x52ae2e(0x1d3)](),this[_0x52ae2e(0x34c)][_0x52ae2e(0x2e8)](_0x3ed461));});}async['_startCollaboration'](_0x2dfdd5,_0x3eb7e6){const _0x4a7e9c=_0x54dd88;let _0x2a9d21=await this['_collabSessionService'][_0x4a7e9c(0x1d2)](_0x2dfdd5),_0x7248a5=this[_0x4a7e9c(0x20c)]['createInstance'](this[_0x4a7e9c(0x25b)](_0x3eb7e6),_0x2dfdd5,_0x3eb7e6,_0x2a9d21);return await _0x7248a5[_0x4a7e9c(0x42c)](),this[_0x4a7e9c(0x253)]['next'](_0x7248a5),_0x7248a5;}[_0x54dd88(0x25b)](_0x499895){const _0x11fbd8=_0x54dd88;switch(_0x499895){case t[_0x11fbd8(0x432)][_0x11fbd8(0x1b8)]:return F;case t[_0x11fbd8(0x432)][_0x11fbd8(0x1c7)]:return L;case t[_0x11fbd8(0x432)][_0x11fbd8(0x320)]:return R;case t[_0x11fbd8(0x432)][_0x11fbd8(0x3d1)]:return z;case t[_0x11fbd8(0x432)]['UNIVER_BASE']:return I;case t['UniverInstanceType'][_0x11fbd8(0x147)]:return B;default:throw Error(_0x11fbd8(0x2e9)+_0x499895);}}};H=y([v(0x0,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x1,(0x0,t[_0x54dd88(0x3b9)])(V)),v(0x2,t['IConfigService']),v(0x3,t[_0x54dd88(0x228)])],H);var $e=_0x54dd88(0x141),et=_0x54dd88(0x381);let tt=class extends t[_0x54dd88(0x254)]{constructor(_0x5370b0,_0x11d215){const _0x2b031c=_0x54dd88;super(),this[_0x2b031c(0x220)]=_0x5370b0,this[_0x2b031c(0x290)]=_0x11d215,this[_0x2b031c(0x351)]();}[_0x54dd88(0x351)](){const _0x4cf0bf=_0x54dd88;this[_0x4cf0bf(0x1af)](this['_univerInstanceService'][_0x4cf0bf(0x2eb)][_0x4cf0bf(0x449)](()=>{const _0x46e588=_0x4cf0bf;let _0x47a5eb=this['_univerInstanceService'][_0x46e588(0x2bd)](),_0x9c4cf2=this['_configService'][_0x46e588(0x2b6)](_0x46e588(0x1f4))??_0x46e588(0x149);_0x47a5eb instanceof t[_0x46e588(0x3eb)]&&(_0x9c4cf2=_0x47a5eb[_0x46e588(0x1e2)]),document[_0x46e588(0x2b0)]=_0x9c4cf2;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x54dd88(0x173)])],tt);const nt=(0x0,t[_0x54dd88(0x41f)])(_0x54dd88(0x32d));let U=class{constructor(_0x109eb6,_0x1c4c57,_0x30339d){const _0x364359=_0x54dd88;this['_httpService']=_0x109eb6,this[_0x364359(0x290)]=_0x1c4c57,this['_univerInstanceService']=_0x30339d;}['getUploadOptions'](){const _0x87333b=_0x54dd88;return this[_0x87333b(0x1f8)]()[_0x87333b(0x2f3)]??{};}async[_0x54dd88(0x2a7)](_0x3240f3){const _0x35af06=_0x54dd88;let _0x372e39=this[_0x35af06(0x28b)]();if(rt(_0x3240f3,_0x372e39),_0x372e39['upload'])return _0x372e39[_0x35af06(0x2d0)](_0x3240f3);let _0x39bc3f=await this['_upload'](_0x3240f3);return{'id':_0x39bc3f,'name':_0x3240f3[_0x35af06(0x1e2)],'mimeType':_0x3240f3['type'],'size':_0x3240f3['size'],'sourceType':t['ImageSourceType'][_0x35af06(0x2f5)],'source':_0x39bc3f};}async[_0x54dd88(0x19f)](_0x5aa986,_0x1dd576){const _0x2ebf74=_0x54dd88;if(_0x1dd576!==t[_0x2ebf74(0x3e7)]['UUID'])return _0x5aa986;let _0x3babef=(await this[_0x2ebf74(0x2c2)][_0x2ebf74(0x2aa)](this[_0x2ebf74(0x24c)]()[_0x2ebf74(0x1ff)](_0x2ebf74(0x35e),_0x5aa986)))[_0x2ebf74(0x19e)];if(_0x3babef[_0x2ebf74(0x40a)]&&_0x3babef[_0x2ebf74(0x40a)][_0x2ebf74(0x1cf)]!==a[_0x2ebf74(0x2da)]['OK'])throw _0x3babef[_0x2ebf74(0x40a)];if(!_0x3babef[_0x2ebf74(0x36e)])throw Error(_0x2ebf74(0x21c));return(0x0,t[_0x2ebf74(0x34e)])(_0x3babef[_0x2ebf74(0x36e)],this[_0x2ebf74(0x41a)]());}async[_0x54dd88(0x436)](_0x6eb50c){const _0x17bb50=_0x54dd88;let _0x57ef26=this['_univerInstanceService']['getFocusedUnit'](),_0x3697e0=_0x57ef26==null?void 0x0:_0x57ef26[_0x17bb50(0x33d)]();if(!_0x3697e0)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x5a5259=new FormData();_0x5a5259[_0x17bb50(0x44c)](_0x17bb50(0x154),_0x6eb50c);let _0x18883a=this[_0x17bb50(0x223)]()+_0x17bb50(0x16d)+_0x6eb50c[_0x17bb50(0x15d)][_0x17bb50(0x17b)]()+_0x17bb50(0x237)+a[_0x17bb50(0x150)][_0x17bb50(0x365)]+'&assign='+encodeURIComponent(_0x3697e0),_0x11cccb=(await this[_0x17bb50(0x2c2)][_0x17bb50(0x3b4)](_0x18883a,{'body':_0x5a5259}))[_0x17bb50(0x19e)][_0x17bb50(0x2fd)];if(typeof _0x11cccb!=_0x17bb50(0x360)||!_0x11cccb)throw Error(_0x17bb50(0x187));return _0x11cccb;}[_0x54dd88(0x223)](){const _0x265c15=_0x54dd88;return this[_0x265c15(0x1f8)]()[_0x265c15(0x304)]??_0x265c15(0x3ea);}[_0x54dd88(0x24c)](){const _0x1dafd5=_0x54dd88;return this['_getConfig']()[_0x1dafd5(0x41e)]??_0x1dafd5(0x16e);}[_0x54dd88(0x41a)](){const _0x29eecd=_0x54dd88;let _0xfd042e=this[_0x29eecd(0x1f8)]();return _0xfd042e[_0x29eecd(0x205)]?_0xfd042e[_0x29eecd(0x205)]:typeof location<'u'?location[_0x29eecd(0x12f)]:_0xfd042e[_0x29eecd(0x304)]??'';}['_getConfig'](){const _0x549fb9=_0x54dd88;return this[_0x549fb9(0x290)]['getConfig'](_0x549fb9(0x337))??{};}};U=y([v(0x0,(0x0,t[_0x54dd88(0x3b9)])(l['HTTPService'])),v(0x1,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x173)])),v(0x2,(0x0,t['Inject'])(t['IUniverInstanceService']))],U);function rt(_0xf9c7a4,_0x5ab1ef){const _0x5196e4=_0x54dd88;var _0x2b6a31;if(_0x5ab1ef[_0x5196e4(0x135)]!=null&&_0xf9c7a4[_0x5196e4(0x15d)]>_0x5ab1ef[_0x5196e4(0x135)])throw Error(_0x5196e4(0x303));if((_0x2b6a31=_0x5ab1ef[_0x5196e4(0x3a0)])!=null&&_0x2b6a31[_0x5196e4(0x30f)]&&!_0x5ab1ef[_0x5196e4(0x3a0)][_0x5196e4(0x3a9)](_0x275fe2=>_0xf9c7a4['type']===_0x275fe2||_0xf9c7a4[_0x5196e4(0x1e2)][_0x5196e4(0x3b2)](_0x275fe2)||_0x275fe2[_0x5196e4(0x3b2)]('/*')&&_0xf9c7a4[_0x5196e4(0x239)][_0x5196e4(0x3fb)](_0x275fe2[_0x5196e4(0x238)](0x0,-0x1))))throw Error(_0x5196e4(0x3a8));}let W=class{constructor(_0x3a3500,_0x6f0ede,_0x3106b0){const _0x3de77e=_0x54dd88;this['_configService']=_0x3a3500,this['_httpService']=_0x6f0ede,this[_0x3de77e(0x2a9)]=_0x3106b0,this[_0x3de77e(0x42c)]();}[_0x54dd88(0x42c)](){const _0x3a5d05=_0x54dd88;this['_httpService'][_0x3a5d05(0x34a)]({'priority':0x1,'interceptor':(_0x44ed4d,_0x3eecae)=>_0x3eecae(_0x44ed4d)[_0x3a5d05(0x2de)]((0x0,i[_0x3a5d05(0x288)])(async _0x41f3ad=>{const _0x69fda4=_0x3a5d05;let _0x558515=_0x41f3ad;if(_0x558515[_0x69fda4(0x368)]===0x191){if(typeof window>'u')throw Error(_0x69fda4(0x244));if(window[_0x69fda4(0x409)](this[_0x69fda4(0x2a9)]['t'](_0x69fda4(0x1d6)))){let _0x5ec2cc=window[_0x69fda4(0x3e2)](window[_0x69fda4(0x3e8)][_0x69fda4(0x245)]);window[_0x69fda4(0x3e8)]['href']=this[_0x69fda4(0x174)]()+_0x69fda4(0x2ce)+_0x5ec2cc;}}return _0x558515;}))});}[_0x54dd88(0x174)](){const _0xd77fbf=_0x54dd88;let _0x3efa19=this['_configService'][_0xd77fbf(0x2b6)](m);return(_0x3efa19==null?void 0x0:_0x3efa19[_0xd77fbf(0x329)])??'/universer-api/oidc/authpage';}};W=y([v(0x0,t[_0x54dd88(0x173)]),v(0x1,(0x0,t[_0x54dd88(0x3b9)])(l[_0x54dd88(0x34d)])),v(0x2,(0x0,t['Inject'])(t[_0x54dd88(0x302)]))],W);let G=class extends t['Disposable']{constructor(_0x5757c4,_0x4e9bdd){const _0x296099=_0x54dd88;super(),this['_HTTPService']=_0x5757c4,this['_configService']=_0x4e9bdd,g(this,_0x296099(0x374),!0x1),this['_initMergeInterceptor']();}[_0x54dd88(0x431)](){const _0x2c2bf7=_0x54dd88;let _0xba0140=this;this[_0x2c2bf7(0x1af)](this[_0x2c2bf7(0x16c)][_0x2c2bf7(0x34a)]({'priority':0x3e7,'interceptor':(0x0,l['MergeInterceptorFactory'])({'isMatch'(_0x2c9f36){const _0x3994c0=_0x2c2bf7;var _0x767a9;if(_0x2c9f36[_0x3994c0(0x25c)]===_0x3994c0(0x27d)&&(_0x767a9=_0x2c9f36['requestParams'])!=null&&_0x767a9[_0x3994c0(0x19e)]){let {objectID:_0x4a92c7,objectType:_0x593dbc}=_0x2c9f36[_0x3994c0(0x284)][_0x3994c0(0x19e)]||{};if(!_0x4a92c7||_0x593dbc===void 0x0)return!0x1;let _0x4a0013=_0xba0140[_0x3994c0(0x16f)]()+'/'+_0x593dbc+'/object/'+_0x4a92c7+_0x3994c0(0x1b2);if(_0x2c9f36[_0x3994c0(0x36e)]===_0x4a0013)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4af8d1){const _0x3d5ecc=_0x2c2bf7;var _0xe59c8;return(_0xe59c8=_0x4af8d1[_0x3d5ecc(0x284)])==null?void 0x0:_0xe59c8[_0x3d5ecc(0x19e)];},'mergeParamsToRequest'(_0x5eff5d,_0x272425){const _0x51daec=_0x2c2bf7;let _0x30be52=_0xba0140[_0x51daec(0x16f)]()+_0x51daec(0x1ab),_0x5098ea=_0x5eff5d[_0x51daec(0x204)]((_0x20b212,_0xb09246)=>{const _0x252a46=_0x51daec;let {unitID:_0x4fdc32,objectID:_0xad8708,objectType:_0x1847e6,actions:_0x3fc194}=_0xb09246;return _0x20b212[_0x4fdc32]||(_0x20b212[_0x4fdc32]={}),_0x20b212[_0x4fdc32][_0xad8708]||(_0x20b212[_0x4fdc32][_0xad8708]={'objectID':_0xad8708,'objectType':_0x1847e6,'actions':[]}),_0x20b212[_0x4fdc32][_0xad8708][_0x252a46(0x33c)]['push'](..._0x3fc194),_0x20b212;},{}),_0x507655=[];for(let _0x23c503 in _0x5098ea)for(let _0x156a02 in _0x5098ea[_0x23c503]){let {actions:_0x101741,objectType:_0x2bb8b0}=_0x5098ea[_0x23c503][_0x156a02],_0x41d9c8=[...new Set(_0x101741)];_0x507655[_0x51daec(0x17f)]({'unitID':_0x23c503,'objectID':_0x156a02,'objectType':_0x2bb8b0,'actions':_0x41d9c8});}return new l[(_0x51daec(0x277))](_0x51daec(0x27d),_0x30be52,{'headers':_0x272425[_0x51daec(0x23b)],'withCredentials':_0x272425[_0x51daec(0x24f)],'responseType':_0x272425[_0x51daec(0x282)],'body':{'requests':_0x507655}});}},{'distributeResult'(_0x338322,_0x36e103){const _0x19fdff=_0x2c2bf7;let {objectActions:_0x797852}=_0x338322;return _0x36e103[_0x19fdff(0x423)](_0x5a18ca=>{const _0x153d20=_0x19fdff;let {unitID:_0x545ccd,objectID:_0x2ac388,actions:_0x23f7d4}=_0x5a18ca,_0x119e7c=_0x797852[_0x153d20(0x3d8)](_0x41d722=>_0x41d722[_0x153d20(0x40f)]===_0x545ccd&&_0x41d722[_0x153d20(0x224)]===_0x2ac388);return{'config':_0x5a18ca,'result':{'actions':_0x23f7d4[_0x153d20(0x423)](_0x40b602=>_0x119e7c==null?void 0x0:_0x119e7c[_0x153d20(0x33c)][_0x153d20(0x3d8)](_0x2219bd=>_0x2219bd[_0x153d20(0x44b)]===_0x40b602))[_0x153d20(0x22e)](_0x2d57c9=>!!_0x2d57c9),'error':_0x338322[_0x153d20(0x40a)]}};});}})}));}['_getAPIPrefixPath'](){const _0x2e7d0e=_0x54dd88;let _0x4728cd=this[_0x2e7d0e(0x290)][_0x2e7d0e(0x2b6)](m);return(_0x4728cd==null?void 0x0:_0x4728cd[_0x2e7d0e(0x332)])??_0x2e7d0e(0x454);}async['create'](_0xdd3459){const _0x30b399=_0x54dd88;let _0x47d86b=this[_0x30b399(0x16f)]()+'/'+_0xdd3459[_0x30b399(0x1d5)]+_0x30b399(0x2d7);return(await this[_0x30b399(0x16c)]['post'](_0x47d86b,{'body':_0xdd3459}))[_0x30b399(0x19e)]['objectID']||'';}async[_0x54dd88(0x257)](_0x404b1f){const _0x78030b=_0x54dd88;let _0x571f5d=this['_getAPIPrefixPath']()+_0x78030b(0x39d);return(await this[_0x78030b(0x16c)][_0x78030b(0x3b4)](_0x571f5d,{'body':_0x404b1f}))['body'][_0x78030b(0x2a1)];}async[_0x54dd88(0x2b5)](_0x2cf9a0){const _0x2f0984=_0x54dd88;var _0xee2365;let _0x5048b5=this[_0x2f0984(0x16f)]()+'/'+_0x2cf9a0['objectType']+'/object/'+_0x2cf9a0[_0x2f0984(0x224)],_0x245872=await this[_0x2f0984(0x16c)][_0x2f0984(0x36b)](_0x5048b5,{'body':_0x2cf9a0});if((_0x245872==null||(_0xee2365=_0x245872[_0x2f0984(0x19e)])==null||(_0xee2365=_0xee2365['error'])==null?void 0x0:_0xee2365['code'])!==0x1)throw Error(_0x2f0984(0x3f9));}async[_0x54dd88(0x1ad)](_0x5571e9){const _0x445a3c=_0x54dd88;let _0x5f0a39=this[_0x445a3c(0x16f)]()+'/'+_0x5571e9[_0x445a3c(0x1d5)]+_0x445a3c(0x222)+_0x5571e9[_0x445a3c(0x224)]+_0x445a3c(0x1b2);return(await this[_0x445a3c(0x16c)][_0x445a3c(0x3b4)](_0x5f0a39,{'body':_0x5571e9}))[_0x445a3c(0x19e)][_0x445a3c(0x33c)];}async[_0x54dd88(0x393)](_0x488631){const _0x174343=_0x54dd88;let _0x2d24cf=this[_0x174343(0x16f)]()+_0x174343(0x1ab);return(await this[_0x174343(0x16c)][_0x174343(0x3b4)](_0x2d24cf,{'body':{'requests':_0x488631}}))[_0x174343(0x19e)][_0x174343(0x412)];}async['listRoles'](_0x1e6f86){const _0x340d15=_0x54dd88;let _0x3d796b=this['_getAPIPrefixPath']()+'/'+_0x1e6f86[_0x340d15(0x1d5)]+_0x340d15(0x3d5),_0x5162e5=await this['_HTTPService'][_0x340d15(0x3b4)](_0x3d796b,{'body':_0x1e6f86});return{'roles':_0x5162e5[_0x340d15(0x19e)]['roles'],'actions':_0x5162e5[_0x340d15(0x19e)][_0x340d15(0x33c)]};}async[_0x54dd88(0x3d3)](_0x34c28f){const _0x1b1483=_0x54dd88;let _0x2a0d05=this['_getAPIPrefixPath']()+_0x1b1483(0x2d6);await this[_0x1b1483(0x16c)][_0x1b1483(0x2e8)](_0x2a0d05,{'params':{'collaboratorID':_0x34c28f[_0x1b1483(0x1ee)],'objectID':_0x34c28f[_0x1b1483(0x224)],'unitID':_0x34c28f[_0x1b1483(0x40f)]}});}async[_0x54dd88(0x372)](_0x598370){const _0x2abfeb=_0x54dd88;let _0x352bad=this[_0x2abfeb(0x16f)]()+_0x2abfeb(0x2d6);await this[_0x2abfeb(0x16c)][_0x2abfeb(0x37a)](_0x352bad,{'body':_0x598370});}async[_0x54dd88(0x2d1)](_0x18110c){const _0x473219=_0x54dd88;let _0x484a61=this[_0x473219(0x16f)]()+_0x473219(0x2d6);await this['_HTTPService'][_0x473219(0x3b4)](_0x484a61,{'body':_0x18110c});}async[_0x54dd88(0x2cd)](_0x181cad){const _0x43505a=_0x54dd88;let _0x44c7c8=this[_0x43505a(0x16f)]()+_0x43505a(0x2d6),_0x306d31=await this[_0x43505a(0x16c)][_0x43505a(0x2aa)](_0x44c7c8,{'params':{'objectID':_0x181cad['objectID'],'unitID':_0x181cad['unitID']}});return this['setCfgEnableObjInherit'](_0x306d31['body']['cfgEnableObjInherit']??!0x1),_0x306d31[_0x43505a(0x19e)]['collaborators'];}async[_0x54dd88(0x12e)](_0x5b8361){const _0x284bca=_0x54dd88;let _0x2637b1=this['_getAPIPrefixPath']()+_0x284bca(0x2d6);await this[_0x284bca(0x16c)][_0x284bca(0x36b)](_0x2637b1,{'body':_0x5b8361});}[_0x54dd88(0x2a6)](_0x269489){const _0x99a124=_0x54dd88;this[_0x99a124(0x374)]=_0x269489;}['getCfgEnableObjInherit'](){const _0x156f3f=_0x54dd88;return this[_0x156f3f(0x374)];}};G=y([v(0x0,(0x0,t[_0x54dd88(0x3b9)])(l['HTTPService'])),v(0x1,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x173)]))],G);function it(_0x4a5ff4){const _0x230f30=_0x54dd88;let _0x48f735=atob(_0x4a5ff4),_0x3c8efb=new Uint8Array(_0x48f735[_0x230f30(0x30f)]);for(let _0x45b00d=0x0;_0x45b00d<_0x48f735[_0x230f30(0x30f)];_0x45b00d++)_0x3c8efb[_0x45b00d]=_0x48f735[_0x230f30(0x262)](_0x45b00d);return _0x3c8efb;}function at(_0x448769){const _0x3d584f=_0x54dd88;let _0x5191e2='';for(let _0x26409e=0x0;_0x26409e<_0x448769[_0x3d584f(0x30f)];_0x26409e++)_0x5191e2+=String[_0x3d584f(0x22f)](_0x448769[_0x26409e]);return btoa(_0x5191e2);}function ot(_0x381a3b,_0x42999d){const _0x1a82cf=_0x54dd88;let _0x557843=it(_0x42999d),_0x4e5b60=(0x0,f[_0x1a82cf(0x2df)])(0x10);return at((0x0,f['concatBytes'])(_0x4e5b60,(0x0,d['cbc'])(_0x557843,_0x4e5b60)['encrypt']((0x0,f[_0x1a82cf(0x2ac)])(_0x381a3b))));}function st(){const _0x53b35a=_0x54dd88;let _0x3be03c=(0x0,u[_0x53b35a(0x442)])()[_0x53b35a(0x3ff)];if(typeof window<'u'&&window[_0x53b35a(0x3e8)]!==void 0x0&&_0x3be03c){let _0x425bef={'time':Math[_0x53b35a(0x123)](Date['now']()/0x3e8),'domain':location[_0x53b35a(0x172)]};return ot(JSON[_0x53b35a(0x427)](_0x425bef),_0x3be03c);}}let K=class{constructor(_0x17ed48){const _0xa8ab16=_0x54dd88;this[_0xa8ab16(0x2c2)]=_0x17ed48,this[_0xa8ab16(0x3d7)]();}[_0x54dd88(0x3d7)](){const _0x474804=_0x54dd88;this[_0x474804(0x2c2)]['registerHTTPInterceptor']({'interceptor':(_0x13be69,_0x5555b3)=>{const _0x1ee582=_0x474804;let _0x498ea2=st();return _0x498ea2&&_0x13be69[_0x1ee582(0x23b)][_0x1ee582(0x2d4)](_0x1ee582(0x405),_0x498ea2),_0x5555b3(_0x13be69);}});}};K=y([v(0x0,(0x0,t[_0x54dd88(0x3b9)])(l[_0x54dd88(0x34d)]))],K);let q=class extends t[_0x54dd88(0x2f0)]{constructor(_0x558f79,_0x3d35b7,_0x190fe0){const _0x43c73e=_0x54dd88;super(),this['_logService']=_0x558f79,this[_0x43c73e(0x25d)]=_0x3d35b7,this[_0x43c73e(0x231)]=_0x190fe0,g(this,_0x43c73e(0x3b5),new i[(_0x43c73e(0x352))](null)),g(this,_0x43c73e(0x344),new i[(_0x43c73e(0x1eb))]()),g(this,_0x43c73e(0x36c),this['_unitInfo$'][_0x43c73e(0x327)]()),g(this,_0x43c73e(0x2b3),this[_0x43c73e(0x344)][_0x43c73e(0x327)]());}[_0x54dd88(0x1d3)](){const _0x134529=_0x54dd88;super[_0x134529(0x1d3)](),this[_0x134529(0x344)]['complete'](),this[_0x134529(0x3b5)][_0x134529(0x1fb)]();}async[_0x54dd88(0x29d)](_0x2b6dae,_0xb2185d,_0x34ea06,_0x36cbb5){const _0x1ae730=_0x54dd88;this[_0x1ae730(0x3b5)][_0x1ae730(0x2d8)]({'unitId':_0x2b6dae,'type':_0xb2185d,'subUnitId':_0x36cbb5});let _0x2dd131=null;switch(_0xb2185d){case t[_0x1ae730(0x432)]['UNIVER_SHEET']:_0x2dd131=await this[_0x1ae730(0x25d)][_0x1ae730(0x446)](_0x2b6dae,_0x34ea06,void 0x0,{'initialSubUnitId':_0x36cbb5});break;case t[_0x1ae730(0x432)]['UNIVER_DOC']:_0x2dd131=await this[_0x1ae730(0x25d)][_0x1ae730(0x1e5)](_0x2b6dae,_0x34ea06);break;case t[_0x1ae730(0x432)][_0x1ae730(0x320)]:_0x2dd131=await this[_0x1ae730(0x25d)][_0x1ae730(0x208)](_0x2b6dae,_0x34ea06);break;case t[_0x1ae730(0x432)][_0x1ae730(0x3d1)]:_0x2dd131=await this['_snapshotService'][_0x1ae730(0x339)](_0x2b6dae,_0x34ea06);break;case t['UniverInstanceType'][_0x1ae730(0x3c9)]:_0x2dd131=await this[_0x1ae730(0x25d)][_0x1ae730(0x335)](_0x2b6dae,_0x34ea06);break;case t[_0x1ae730(0x432)][_0x1ae730(0x147)]:_0x2dd131=await this[_0x1ae730(0x25d)]['loadPdf'](_0x2b6dae,_0x34ea06);break;default:this[_0x1ae730(0x3ca)][_0x1ae730(0x40a)](_0x1ae730(0x14d),_0x1ae730(0x2bb));break;}return _0x2dd131&&this[_0x1ae730(0x344)][_0x1ae730(0x2d8)](_0x2dd131),_0x2dd131;}async[_0x54dd88(0x363)](_0x4c9fe3,_0x12d0a2,_0x321c99){const _0x569a8c=_0x54dd88;var _0x4474fb;this[_0x569a8c(0x3b5)][_0x569a8c(0x2d8)]({'unitId':_0x4c9fe3,'type':_0x12d0a2,'subUnitId':_0x321c99});let _0x5caa6b=0x0,_0x313e01=await((_0x4474fb=this[_0x569a8c(0x231)])==null?void 0x0:_0x4474fb[_0x569a8c(0x2f2)](_0x4c9fe3));return _0x313e01&&(_0x313e01['awaitingChangeset']||_0x313e01['mutations']['length']!==0x0)&&(_0x5caa6b=_0x313e01[_0x569a8c(0x178)]),_0x5caa6b===0x0&&this[_0x569a8c(0x3ca)]['debug']('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x569a8c(0x29d)](_0x4c9fe3,_0x12d0a2,_0x5caa6b,_0x321c99);}};q=y([v(0x0,t[_0x54dd88(0x225)]),v(0x1,(0x0,t[_0x54dd88(0x3b9)])(e['SnapshotService'])),v(0x2,(0x0,t['Optional'])(x))],q);let J=class{constructor(_0x5bbd9e,_0x532ff2,_0x327eaa){const _0x2e9af0=_0x54dd88;this['_httpService']=_0x5bbd9e,this['_configService']=_0x532ff2,this[_0x2e9af0(0x220)]=_0x327eaa,g(this,_0x2e9af0(0x2b2),0x0),g(this,_0x2e9af0(0x31a),new i[(_0x2e9af0(0x1eb))]()),g(this,_0x2e9af0(0x2fa),this[_0x2e9af0(0x31a)]),g(this,'_imageSourceCache',new Map());}[_0x54dd88(0x3b6)](_0x101f8a){const _0x3d2941=_0x54dd88;this[_0x3d2941(0x2b2)]=_0x101f8a,this[_0x3d2941(0x31a)]['next'](_0x101f8a);}[_0x54dd88(0x285)](_0x26f3a9,_0x2c3111){const _0x148388=_0x54dd88;if(_0x2c3111===t[_0x148388(0x3e7)][_0x148388(0x1a7)]){let _0xcdda8=new Image();return _0xcdda8['src']=_0x26f3a9,_0xcdda8;}return this[_0x148388(0x184)][_0x148388(0x2aa)](_0x26f3a9);}[_0x54dd88(0x2e3)](_0x13834c,_0x32d61c,_0xda9206){const _0x4aaddd=_0x54dd88;_0x32d61c!==t['ImageSourceType'][_0x4aaddd(0x1a7)]&&_0xda9206!=null&&this[_0x4aaddd(0x184)][_0x4aaddd(0x2d4)](_0x13834c,_0xda9206);}async[_0x54dd88(0x41d)](_0x8a4371){const _0x445f0c=_0x54dd88;try{let _0x44c1d6=this[_0x445f0c(0x390)](this[_0x445f0c(0x24c)](),''+_0x8a4371),_0x3f979c=(await this[_0x445f0c(0x2c2)][_0x445f0c(0x2aa)](_0x44c1d6))[_0x445f0c(0x19e)];if(_0x3f979c[_0x445f0c(0x40a)]&&_0x3f979c[_0x445f0c(0x40a)][_0x445f0c(0x1cf)]===a[_0x445f0c(0x2da)]['OK']){let _0x2c3042=(0x0,t[_0x445f0c(0x34e)])(_0x3f979c['url'],this[_0x445f0c(0x41a)]());return Promise[_0x445f0c(0x133)](_0x2c3042);}return Promise[_0x445f0c(0x2e2)](_0x3f979c[_0x445f0c(0x40a)]);}catch(_0x2eccd5){return Promise[_0x445f0c(0x2e2)](_0x2eccd5);}}async[_0x54dd88(0x2ae)](_0x2420f4){const _0x126341=_0x54dd88;let _0x2624b1='';if(!p[_0x126341(0x30e)][_0x126341(0x437)](_0x2420f4[_0x126341(0x239)]))return this[_0x126341(0x2d2)](),Promise[_0x126341(0x2e2)](Error(t['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0x2420f4[_0x126341(0x15d)]>(0x0,p[_0x126341(0x2e4)])())return this[_0x126341(0x2d2)](),Promise[_0x126341(0x2e2)](Error(t[_0x126341(0x43f)][_0x126341(0x411)]));try{let _0x40a682=new FormData();_0x40a682[_0x126341(0x44c)]('file',_0x2420f4);let _0x3ff56c=this[_0x126341(0x220)][_0x126341(0x2bd)](),_0x3101f1=_0x3ff56c==null?void 0x0:_0x3ff56c[_0x126341(0x33d)]();if(!_0x3101f1)throw Error(_0x126341(0x2dd));let _0xd7d22a=this[_0x126341(0x223)]()+'?size='+_0x2420f4[_0x126341(0x15d)]['toString']()+'&source='+a[_0x126341(0x150)]['UnitEmbedded']+_0x126341(0x229)+encodeURIComponent(_0x3101f1),_0x5f347c={'body':_0x40a682},_0x179b93=(await this[_0x126341(0x2c2)][_0x126341(0x3b4)](_0xd7d22a,_0x5f347c))[_0x126341(0x19e)];if(typeof _0x179b93[_0x126341(0x2fd)]!='string')return this['_decreaseWaiting'](),Promise[_0x126341(0x2e2)](Error(t[_0x126341(0x43f)][_0x126341(0x2cf)]));_0x2624b1=_0x179b93['FileId'];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(t[_0x126341(0x43f)][_0x126341(0x2cf)]));}return new Promise((_0x4ee2d8,_0x3c38bc)=>{const _0x12cad4=_0x126341;let _0x2be88a=new FileReader();_0x2be88a[_0x12cad4(0x13e)](_0x2420f4),_0x2be88a[_0x12cad4(0x348)]=_0x4a7f6f=>{const _0x72c3f5=_0x12cad4;var _0x1ef232;let _0x3fe637=(_0x1ef232=_0x4a7f6f[_0x72c3f5(0x128)])==null?void 0x0:_0x1ef232[_0x72c3f5(0x380)];if(_0x3fe637==null){this['_decreaseWaiting'](),_0x3c38bc(Error(t['ImageUploadStatusType'][_0x72c3f5(0x2cf)]));return;}_0x4ee2d8({'imageId':(0x0,t['generateRandomId'])(0x6),'imageSourceType':t[_0x72c3f5(0x3e7)][_0x72c3f5(0x2f5)],'source':_0x2624b1,'base64Cache':_0x3fe637,'status':t[_0x72c3f5(0x43f)][_0x72c3f5(0x2f6)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x271b72=_0x54dd88;let _0x534594=this['_configService'][_0x271b72(0x2b6)](m);return(_0x534594==null?void 0x0:_0x534594[_0x271b72(0x304)])??_0x271b72(0x3ea);}[_0x54dd88(0x24c)](){const _0x5960d9=_0x54dd88;let _0x1db8d3=this[_0x5960d9(0x290)][_0x5960d9(0x2b6)](m);return(_0x1db8d3==null?void 0x0:_0x1db8d3[_0x5960d9(0x41e)])??_0x5960d9(0x16e);}['_getDownloadEndpointURL'](){const _0x25fb1b=_0x54dd88;let _0x3c2c93=this[_0x25fb1b(0x290)][_0x25fb1b(0x2b6)](m);return(_0x3c2c93==null?void 0x0:_0x3c2c93[_0x25fb1b(0x205)])??location[_0x25fb1b(0x12f)];}[_0x54dd88(0x390)](_0x14be3d,_0x52739e){const _0x2294f7=_0x54dd88;return _0x14be3d[_0x2294f7(0x1ff)](_0x2294f7(0x35e),_0x52739e);}['_decreaseWaiting'](){const _0xd59eab=_0x54dd88;--this[_0xd59eab(0x2b2)],this['_change$']['next'](this['_waitCount']);}};J=y([v(0x0,(0x0,t[_0x54dd88(0x3b9)])(l['HTTPService'])),v(0x1,t[_0x54dd88(0x173)]),v(0x2,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x228)]))],J);let Y=class{constructor(_0x42e385,_0x5c45fd){const _0x751e01=_0x54dd88;this[_0x751e01(0x290)]=_0x42e385,this['_HTTPService']=_0x5c45fd;}[_0x54dd88(0x16f)](){const _0xf2256b=_0x54dd88;let _0x52f318=this[_0xf2256b(0x290)][_0xf2256b(0x2b6)](m);return(_0x52f318==null?void 0x0:_0x52f318[_0xf2256b(0x332)])??_0xf2256b(0x454);}async[_0x54dd88(0x257)](_0x53c07e){const _0x246231=_0x54dd88;let _0x263017=this[_0x246231(0x16f)]()+_0x246231(0x2d6);return{'list':[{'title':_0x246231(0x331),'mentions':(await this[_0x246231(0x16c)][_0x246231(0x2aa)](_0x263017,{'params':{'objectID':_0x53c07e[_0x246231(0x338)],'unitID':_0x53c07e[_0x246231(0x338)]}}))['body'][_0x246231(0x3ce)][_0x246231(0x423)](_0x1227af=>({'objectId':_0x1227af['id'],'name':_0x1227af[_0x246231(0x356)]['name'],'metadata':{'icon':_0x1227af[_0x246231(0x356)][_0x246231(0x144)]},'label':_0x1227af[_0x246231(0x356)]['name'],'objectType':t['MentionType'][_0x246231(0x16b)]})),'metadata':{},'type':t[_0x246231(0x43c)][_0x246231(0x16b)]}]};}};Y=y([v(0x0,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x173)])),v(0x1,(0x0,t[_0x54dd88(0x3b9)])(l[_0x54dd88(0x34d)]))],Y);let X=class extends t[_0x54dd88(0x2f0)]{constructor(_0x44a38d,_0x77099,_0x4cc819,_0x15e6c,_0x2d736b){const _0x14c78f=_0x54dd88;super(),this[_0x14c78f(0x20c)]=_0x44a38d,this[_0x14c78f(0x220)]=_0x77099,this[_0x14c78f(0x403)]=_0x4cc819,this[_0x14c78f(0x2c7)]=_0x15e6c,this[_0x14c78f(0x136)]=_0x2d736b,this[_0x14c78f(0x347)](),this[_0x14c78f(0x1b1)]();}[_0x54dd88(0x1b1)](){const _0x4e7183=_0x54dd88;let _0x19bdf1=async _0x48e074=>{const _0x531705=_0x1bed;(await this[_0x531705(0x2c7)][_0x531705(0x1d2)](_0x48e074))[_0x531705(0x3b7)][_0x531705(0x2de)]((0x0,s['filter'])(_0x57ff36=>_0x57ff36[_0x531705(0x170)]===e[_0x531705(0x20b)][_0x531705(0x3a6)]),(0x0,s[_0x531705(0x316)])(this[_0x531705(0x42e)]))['subscribe'](_0x514b50=>{const _0x1bff15=_0x531705;let {reason:_0x308667}=_0x514b50['data'];this['_collaborationUIEventService'][_0x1bff15(0x1f9)]({'id':_0x1bff15(0x1b6),'data':_0x308667}),this[_0x1bff15(0x403)]['updatePermissionPoint'](new r[(_0x1bff15(0x2fb))](_0x48e074)['id'],!0x1),this[_0x1bff15(0x2c7)][_0x1bff15(0x29a)](_0x48e074);});};(0x0,i['merge'])(this[_0x4e7183(0x220)][_0x4e7183(0x2e7)](t[_0x4e7183(0x432)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x4e7183(0x432)][_0x4e7183(0x1b8)]),this[_0x4e7183(0x220)][_0x4e7183(0x2e7)](t['UniverInstanceType'][_0x4e7183(0x3d1)]),this[_0x4e7183(0x220)]['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x4e7183(0x3c9)]))['pipe']((0x0,s[_0x4e7183(0x423)])(_0x3a5a6a=>_0x3a5a6a[_0x4e7183(0x33b)][_0x4e7183(0x33d)]()),(0x0,s['filter'])(_0x2f52cc=>!(0x0,t[_0x4e7183(0x2c6)])(_0x2f52cc)),(0x0,s['takeUntil'])(this['dispose$']))[_0x4e7183(0x449)](_0x2a8bc3=>{_0x19bdf1(_0x2a8bc3);});}[_0x54dd88(0x347)](){const _0x34b942=_0x54dd88;let _0x282e29=async _0x53a325=>{const _0x159481=_0x1bed;let _0xaaa880=await this[_0x159481(0x2c7)][_0x159481(0x1d2)](_0x53a325),_0x444cf1=this[_0x159481(0x20c)][_0x159481(0x2aa)](r[_0x159481(0x1d9)]);_0xaaa880[_0x159481(0x3b7)]['pipe']((0x0,s[_0x159481(0x22e)])(_0x353b9a=>_0x353b9a[_0x159481(0x170)]===e['CollaborationEvent'][_0x159481(0x1a0)]),(0x0,s[_0x159481(0x316)])(this[_0x159481(0x42e)]))[_0x159481(0x449)](_0x17aeab=>{const _0x33a923=_0x159481;let {objectId:_0x2c958d}=_0x17aeab[_0x33a923(0x382)];_0x2c958d===_0x53a325?_0x444cf1[_0x33a923(0x453)](_0x53a325):_0x444cf1[_0x33a923(0x39c)](_0x53a325,_0x2c958d);});};(0x0,i[_0x34b942(0x183)])(this['_univerInstanceService'][_0x34b942(0x2e7)](t[_0x34b942(0x432)][_0x34b942(0x1c7)]))[_0x34b942(0x2de)]((0x0,s['map'])(_0x442895=>_0x442895[_0x34b942(0x33b)][_0x34b942(0x33d)]()),(0x0,s[_0x34b942(0x22e)])(_0x16373c=>!(0x0,t[_0x34b942(0x2c6)])(_0x16373c)),(0x0,s['takeUntil'])(this[_0x34b942(0x42e)]))['subscribe'](_0x43692e=>{_0x282e29(_0x43692e);});}};X=y([v(0x0,(0x0,t[_0x54dd88(0x3b9)])(t['Injector'])),v(0x1,t[_0x54dd88(0x228)]),v(0x2,t[_0x54dd88(0x3a3)]),v(0x3,(0x0,t[_0x54dd88(0x3b9)])(V)),v(0x4,(0x0,t[_0x54dd88(0x3b9)])(_))],X);let Z=class{constructor(_0x5c896a,_0x51fded){const _0x3843d7=_0x54dd88;this['_configService']=_0x5c896a,this[_0x3843d7(0x2c2)]=_0x51fded;}async[_0x54dd88(0x1b4)](_0x4de1b8,_0x382c2b){const _0x4f75dc=_0x54dd88;var _0x2dfe00;let {unitID:_0x5c96b9,type:_0x5c3f31,revision:_0x540894=0x0}=_0x382c2b,_0x2e96dc=this[_0x4f75dc(0x434)]()+'/'+_0x5c3f31+'/unit/'+_0x5c96b9+_0x4f75dc(0x189)+_0x540894,_0x5d2b54=(await this['_httpService'][_0x4f75dc(0x2aa)](_0x2e96dc))[_0x4f75dc(0x19e)],_0x36bf4e=(_0x2dfe00=_0x5d2b54[_0x4f75dc(0x260)])==null?void 0x0:_0x2dfe00[_0x4f75dc(0x3bd)];if(_0x36bf4e){let _0x4376d7=_0x36bf4e==null?void 0x0:_0x36bf4e['originalMeta'];_0x36bf4e['originalMeta']=e['textEncoder'][_0x4f75dc(0x3ee)]((0x0,e[_0x4f75dc(0x44e)])(_0x4376d7)),Object[_0x4f75dc(0x373)](_0x36bf4e['sheets'])['forEach'](([,_0x494918])=>{const _0x42694a=_0x4f75dc;let _0x1621a0=_0x494918[_0x42694a(0x44a)];_0x494918[_0x42694a(0x44a)]=e[_0x42694a(0x17c)][_0x42694a(0x3ee)]((0x0,e['b64DecodeUnicode'])(_0x1621a0));});}return _0x5d2b54;}async[_0x54dd88(0x32e)](_0x43a781,_0x24d80e){const _0x1bb6db=_0x54dd88;let {unitID:_0x21ae9b,type:_0x6ebb90,blockID:_0x5793ed}=_0x24d80e,_0x3abbfe=this[_0x1bb6db(0x310)]()+'/'+_0x6ebb90+_0x1bb6db(0x418)+_0x21ae9b+'/block/'+_0x5793ed;return(await this['_httpService'][_0x1bb6db(0x2aa)](_0x3abbfe))['body'];}async[_0x54dd88(0x43b)](_0x48bf68,_0x342afc){const _0x181734=_0x54dd88;let {unitID:_0x2569f7,type:_0x49441a,blockID:_0x46cc70}=_0x342afc,_0x518d44=this['_getAPIPrefix']()+_0x181734(0x226)+_0x49441a+_0x181734(0x418)+_0x2569f7+_0x181734(0x226)+_0x46cc70;return(await this[_0x181734(0x2c2)][_0x181734(0x2aa)](_0x518d44))[_0x181734(0x19e)];}async[_0x54dd88(0x18b)](_0x3ff7ca,_0x4beb44){const _0x43719b=_0x54dd88;let {unitID:_0xdd8e2,type:_0x2ed93a,from:_0x3740d0,to:_0x42fc5e}=_0x4beb44,_0x4ea245=this[_0x43719b(0x310)]()+'/'+_0x2ed93a+_0x43719b(0x418)+_0xdd8e2+_0x43719b(0x2e1)+_0x3740d0+'&to='+_0x42fc5e;return(await this[_0x43719b(0x2c2)][_0x43719b(0x2aa)](_0x4ea245))[_0x43719b(0x19e)];}[_0x54dd88(0x434)](){const _0x54cbd3=_0x54dd88;return this[_0x54cbd3(0x290)][_0x54cbd3(0x2b6)](_0x54cbd3(0x2bc))??this[_0x54cbd3(0x310)]();}[_0x54dd88(0x310)](){const _0x3d0177=_0x54dd88;let _0x57305c=this[_0x3d0177(0x290)]['getConfig'](m);return(_0x57305c==null?void 0x0:_0x57305c['snapshotServerUrl'])??_0x3d0177(0x194);}async[_0x54dd88(0x19d)](_0x454abe,_0x367d9f){const _0x546167=_0x54dd88;let _0x2a49da=_0x546167(0x140)+_0x367d9f[_0x546167(0x239)]+_0x546167(0x418)+_0x367d9f[_0x546167(0x40f)]+_0x546167(0x385);return(await this[_0x546167(0x2c2)]['get'](_0x2a49da,{'params':{'resourceId':JSON['stringify'](_0x367d9f[_0x546167(0x275)])}}))['body'];}[_0x54dd88(0x248)](){const _0x5b5d4f=_0x54dd88;throw Error(_0x5b5d4f(0x18a));}[_0x54dd88(0x22b)](){const _0x2f6d0e=_0x54dd88;throw Error(_0x2f6d0e(0x18a));}[_0x54dd88(0x230)](){const _0xf10647=_0x54dd88;throw Error(_0xf10647(0x18a));}[_0x54dd88(0x23c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0xc802a2=_0x54dd88;throw Error(_0xc802a2(0x18a));}['getLatestCsReqIdBySid'](){const _0x47eafc=_0x54dd88;throw Error(_0x47eafc(0x18a));}};Z=y([v(0x0,t[_0x54dd88(0x173)]),v(0x1,(0x0,t[_0x54dd88(0x3b9)])(l[_0x54dd88(0x34d)]))],Z);let Q=class extends t[_0x54dd88(0x3ae)]{constructor(_0xac2b46,_0x4b21d7,_0x5b0471,_0x465367,_0x47bf28,_0x14d1f3){const _0x5caa85=_0x54dd88;super(_0xac2b46,_0x4b21d7,_0x5b0471,_0x465367),this[_0x5caa85(0x422)]=_0x47bf28,this[_0x5caa85(0x3ca)]=_0x14d1f3;}[_0x54dd88(0x400)](_0x5362ee,_0x1fa962){const _0x586efb=_0x54dd88;let _0x2e3a28=this[_0x586efb(0x1fa)](_0x5362ee);if(_0x2e3a28)try{let _0x3173da=this[_0x586efb(0x17d)](_0x2e3a28,_0x1fa962);this['_substituteUndoStack'](_0x5362ee,_0x3173da);}catch(_0x4c770e){this[_0x586efb(0x3ca)]['error'](_0x586efb(0x124),_0x4c770e),this['_clearUndo'](_0x5362ee);}let _0x1ed615=this[_0x586efb(0x30d)](_0x5362ee);if(_0x1ed615)try{let _0x44a122=this['_transformStack'](_0x1ed615,_0x1fa962);this[_0x586efb(0x2d9)](_0x5362ee,_0x44a122);}catch(_0x313981){this[_0x586efb(0x3ca)][_0x586efb(0x40a)](_0x313981),this['_clearRedo'](_0x5362ee);}}['_clearUndo'](_0x2f4934){const _0x5d6c75=_0x54dd88;let _0x5218e2=this[_0x5d6c75(0x1fa)](_0x2f4934);_0x5218e2&&(_0x5218e2[_0x5d6c75(0x30f)]=0x0,this[_0x5d6c75(0x232)]());}[_0x54dd88(0x323)](_0x5ba631){const _0x2a67fb=_0x54dd88;let _0x598615=this[_0x2a67fb(0x30d)](_0x5ba631);_0x598615&&(_0x598615[_0x2a67fb(0x30f)]=0x0,this[_0x2a67fb(0x232)]());}['_substituteUndoStack'](_0xd20a36,_0x2cb8b4){const _0xcdb90a=_0x54dd88;this[_0xcdb90a(0x37e)][_0xcdb90a(0x2d4)](_0xd20a36,_0x2cb8b4),this[_0xcdb90a(0x232)]();}[_0x54dd88(0x2d9)](_0x2d0ef0,_0x1c6f1e){const _0x3534f9=_0x54dd88;this['_redoStacks'][_0x3534f9(0x2d4)](_0x2d0ef0,_0x1c6f1e),this[_0x3534f9(0x232)]();}['_transformStack'](_0x3c7fa8,_0x15b77e){const _0x2e92db=_0x54dd88;let _0x28cc32=[],_0x30c5e8=_0x15b77e,_0x515999=_0x15b77e;for(let _0x84bb70=_0x3c7fa8[_0x2e92db(0x30f)]-0x1;_0x84bb70>=0x0;_0x84bb70--){let {unitID:_0x5b9613,undoMutations:_0x2bba01,redoMutations:_0x5a235d}=_0x3c7fa8[_0x84bb70],_0x1652da=this[_0x2e92db(0x422)][_0x2e92db(0x3cd)](_0x30c5e8,_0x2bba01),_0x534dfb=this[_0x2e92db(0x422)][_0x2e92db(0x3cd)](_0x515999,_0x5a235d);if((0x0,e[_0x2e92db(0x308)])(_0x1652da)||(0x0,e[_0x2e92db(0x308)])(_0x534dfb)){this['_logService']['error'](_0x2e92db(0x124),_0x2e92db(0x396),_0x1652da,_0x534dfb);break;}_0x30c5e8=_0x1652da[_0x2e92db(0x318)],_0x515999=_0x534dfb[_0x2e92db(0x318)],_0x28cc32[_0x2e92db(0x17f)]({'unitID':_0x5b9613,'undoMutations':_0x1652da[_0x2e92db(0x438)],'redoMutations':_0x534dfb[_0x2e92db(0x438)]});}return _0x28cc32[_0x2e92db(0x23a)]();}};Q=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x54dd88(0x1d0)]),v(0x2,t[_0x54dd88(0x1cd)]),v(0x3,t[_0x54dd88(0x173)]),v(0x4,e[_0x54dd88(0x2ba)]),v(0x5,t[_0x54dd88(0x225)])],Q);let $=class extends t[_0x54dd88(0x3c4)]{constructor(_0x57c4c8=ee,_0x37a5a9,_0x79bcc3,_0x544d0e){const _0x1df4b9=_0x54dd88;super(),this['_config']=_0x57c4c8,this[_0x1df4b9(0x3ca)]=_0x37a5a9,this[_0x1df4b9(0x20c)]=_0x79bcc3,this[_0x1df4b9(0x290)]=_0x544d0e;let {..._0x415568}=(0x0,t[_0x1df4b9(0x183)])({},ee,this['_config']);if(!_0x415568[_0x1df4b9(0x2c1)])throw Error(_0x1df4b9(0x306));this['_config']=_0x415568,this[_0x1df4b9(0x290)][_0x1df4b9(0x19b)](m,_0x415568);}[_0x54dd88(0x1d8)](){const _0x273174=_0x54dd88;this[_0x273174(0x219)](),this[_0x273174(0x433)]();}[_0x54dd88(0x219)](){const _0x53e91b=_0x54dd88;var _0x1ee660,_0xc62fc5;this['_injector'][_0x53e91b(0x2c4)](t['IUndoRedoService'])&&this[_0x53e91b(0x3ca)][_0x53e91b(0x40a)]('[UniverCollaborationClientPlugin]',_0x53e91b(0x330));let _0x475813=(0x0,t[_0x53e91b(0x3fc)])([[t[_0x53e91b(0x392)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this[_0x53e91b(0x2b1)][_0x53e91b(0x2c1)]}],[e[_0x53e91b(0x2e0)],{'useClass':Z}],[t[_0x53e91b(0x417)],{'useClass':G}],[t[_0x53e91b(0x1b3)],{'useClass':J}],[nt,{'useClass':U}],[t[_0x53e91b(0x3e0)],{'useClass':Y}],[H],[tt]],(_0x1ee660=this['_config'])==null?void 0x0:_0x1ee660[_0x53e91b(0x15a)]);if(!((_0xc62fc5=this['_config'])!=null&&_0xc62fc5[_0x53e91b(0x39b)])){let _0x4c41c5=_0x475813['findIndex'](([_0x12f673])=>_0x12f673===C);_0x4c41c5!==-0x1&&_0x475813[_0x53e91b(0x1d1)](_0x4c41c5,0x1);}(0x0,t[_0x53e91b(0x40e)])(this['_injector'],_0x475813);}[_0x54dd88(0x433)](){const _0x3c4412=_0x54dd88;var _0x3ece2d,_0x5f1598;if(this[_0x3c4412(0x20c)]['get'](l[_0x3c4412(0x34d)])[_0x3c4412(0x34a)]({'priority':0x14,'interceptor':(0x0,l[_0x3c4412(0x23e)])({'maxParallel':0x6})}),!((_0x3ece2d=this['_config'])!=null&&_0x3ece2d[_0x3c4412(0x345)])){var _0x3353bf;(_0x3353bf=this['_injector'][_0x3c4412(0x2aa)](x,t['Quantity'][_0x3c4412(0x395)]))==null||_0x3353bf[_0x3c4412(0x15c)]();}(_0x5f1598=this['_config'])!=null&&_0x5f1598['enableAuthServer']&&(0x0,t[_0x3c4412(0x12d)])(this[_0x3c4412(0x20c)],[[W]]),(0x0,t[_0x3c4412(0x12d)])(this[_0x3c4412(0x20c)],[[K],[H],[X]]);}};g($,_0x54dd88(0x163),_0x54dd88(0x168)),g($,_0x54dd88(0x3d9),$e),g($,'version',et),$=y([(0x0,t[_0x54dd88(0x3fd)])(u[_0x54dd88(0x3da)],l[_0x54dd88(0x1cb)],e[_0x54dd88(0x15e)]),v(0x1,t[_0x54dd88(0x225)]),v(0x2,(0x0,t[_0x54dd88(0x3b9)])(t[_0x54dd88(0x43d)])),v(0x3,t[_0x54dd88(0x173)])],$),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x213),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x3bf),{'enumerable':!0x0,'get':function(){return k;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x26a),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x2a8),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x54dd88(0x188)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x54dd88(0x35a)]=m,Object[_0x54dd88(0x188)](exports,_0x54dd88(0x3ad),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x190),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x54dd88(0x188)](exports,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x2e5),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x54dd88(0x188)](exports,'CollaborationSession',{'enumerable':!0x0,'get':function(){return ve;}}),Object['defineProperty'](exports,_0x54dd88(0x3d4),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x235),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x54dd88(0x314)]=Be,exports[_0x54dd88(0x18c)]=ie,exports[_0x54dd88(0x1fe)]=_,Object[_0x54dd88(0x188)](exports,_0x54dd88(0x1fd),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x54dd88(0x200)]=ae,Object[_0x54dd88(0x188)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x54dd88(0x15f)]=_0x54dd88(0x182),exports[_0x54dd88(0x161)]='/universer-api/uniscript',exports['DEFAULT_WS_SESSION_TICKET_URL']=_0x54dd88(0x2ea),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x2ee),{'enumerable':!0x0,'get':function(){return q;}}),Object['defineProperty'](exports,_0x54dd88(0x328),{'enumerable':!0x0,'get':function(){return F;}}),Object['defineProperty'](exports,_0x54dd88(0x309),{'enumerable':!0x0,'get':function(){return N;}}),exports['HEARTBEAT_INTERVAL_KEY']=_0x54dd88(0x166),exports[_0x54dd88(0x268)]=_0x54dd88(0x298),exports[_0x54dd88(0x191)]=nt,exports['ICollaborationClientAdapterService']=Xe,exports[_0x54dd88(0x197)]=qe,exports[_0x54dd88(0x28d)]=x,exports['INetworkConditionService']=We,exports[_0x54dd88(0x246)]=C,exports['LOCAL_CACHE_INTERVAL']=0x3e8,exports['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',Object[_0x54dd88(0x188)](exports,_0x54dd88(0x3e1),{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x54dd88(0x2b7),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x32b),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x1fc),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x440),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x54dd88(0x27f)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports[_0x54dd88(0x14b)]=_0x54dd88(0x27a),exports[_0x54dd88(0x247)]=ge,Object[_0x54dd88(0x188)](exports,_0x54dd88(0x3c2),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x3a2),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x54dd88(0x188)](exports,'SlideCollaborationEntity',{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x54dd88(0x188)](exports,_0x54dd88(0x37f),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x54dd88(0x188)](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return D;}}),exports['UnitStatus']=xe,Object[_0x54dd88(0x188)](exports,_0x54dd88(0x261),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x54dd88(0x202)]=Ze,exports[_0x54dd88(0x3aa)]=Ge,exports[_0x54dd88(0x29e)]=ye,exports[_0x54dd88(0x18e)]=Ke;