@univerjs-pro/collaboration-client 1.0.2 → 1.0.3

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 (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x19811e=_0x32e6;function _0x32e6(_0x26eaf0,_0x2a296f){_0x26eaf0=_0x26eaf0-0x121;const _0x1be8b=_0x1be8();let _0x32e66d=_0x1be8b[_0x26eaf0];return _0x32e66d;}(function(_0x31aa24,_0x21c01b){const _0x34314a=_0x32e6,_0x4b4dca=_0x31aa24();while(!![]){try{const _0x5c1a63=-parseInt(_0x34314a(0x345))/0x1*(parseInt(_0x34314a(0x1d7))/0x2)+parseInt(_0x34314a(0x3c8))/0x3*(parseInt(_0x34314a(0x23d))/0x4)+-parseInt(_0x34314a(0x2aa))/0x5+-parseInt(_0x34314a(0x274))/0x6+-parseInt(_0x34314a(0x306))/0x7*(-parseInt(_0x34314a(0x3bb))/0x8)+parseInt(_0x34314a(0x212))/0x9+-parseInt(_0x34314a(0x15b))/0xa*(-parseInt(_0x34314a(0x24d))/0xb);if(_0x5c1a63===_0x21c01b)break;else _0x4b4dca['push'](_0x4b4dca['shift']());}catch(_0x1d06c8){_0x4b4dca['push'](_0x4b4dca['shift']());}}}(_0x1be8,0xb99b8));import{CollaborationEvent as _0x27a7e8,CompressMutationService as _0x3e6ee0,EmptyMutationInfo as _0xa29bbd,ISnapshotServerService as _0x14257b,ITransformService as _0x435fb7,RevisionService as _0x4e5cfb,SnapshotService as _0x2367e2,UniverCollaborationPlugin as _0xe2a840,b64DecodeUnicode as _0x4ce680,isTransformChangesetsSuccess as _0x3c50a8,isTransformMutationsWithChangesetFailure as _0x4532f4,isTransformMutationsWithChangesetSuccess as _0x13dcd7,mapDocumentTypeToUniverInstanceType as _0x1b1539,parseChangesetToProtocol as _0x3ec998,parseProtocolChangeset as _0x52ab46,textEncoder as _0xa79221,uuidv4 as _0x640bce}from'@univerjs-pro/collaboration';import{CommandType as _0x40fa30,DependentOn as _0x22f4eb,Disposable as _0x3d72df,DisposableCollection as _0x49b66f,IAuthzIoService as _0x3a226b,ICommandService as _0xef393c,IConfigService as _0x2477d9,IContextService as _0x1ac843,IImageIoService as _0x393423,ILogService as _0x1ba700,IMentionIOService as _0x42b5e6,IPermissionService as _0x2197a8,IUndoRedoService as _0x3d966a,IUniverInstanceService as _0x4f5fa8,ImageSourceType as _0x19206b,ImageUploadStatusType as _0xe8fff7,Inject as _0x480e6d,Injector as _0x5a91fd,JSONX as _0x26d762,LocalUndoRedoService as _0x1720a8,LocaleService as _0x1e8fb8,MentionType as _0x2cf8e7,OBJECT_PERMISSION_CONFIG_KEY as _0x1e8245,ObjectPermissionService as _0x38d5f0,Optional as _0x1e59a5,Plugin as _0x370b6f,Quantity as _0x126bf3,Rectangle as _0x209662,RxDisposable as _0x39685b,Tools as _0x41c835,UniverInstanceType as _0x5d23e3,UserManagerService as _0x3e2728,Workbook as _0x37c076,createIdentifier as _0x538219,generateRandomId as _0x5f3466,isInternalEditorID as _0x5a7193,merge as _0x3d5516,mergeOverrideWithDependencies as _0x3b2c51,registerDependencies as _0x1bacd8,resolveWithBasePath as _0x26be64,sequenceExecute as _0x1cdaf4,toDisposable as _0x215dfb,touchDependencies as _0x3d1e12}from'@univerjs/core';import{DocStateChangeManagerService as _0x17b259,RichTextEditingMutation as _0x3a809f}from'@univerjs/docs';import{InsertSheetMutation as _0x560f34,SetSelectionsOperation as _0x4a8a0d,SheetPermissionInitController as _0x56ae16,SheetsSelectionsService as _0x2a7649,WorkbookEditablePermission as _0x404767}from'@univerjs/sheets';import{BehaviorSubject as _0x5d64e7,ReplaySubject as _0x584d6d,Subject as _0x33eafc,concatMap as _0x344f28,firstValueFrom as _0x1773f3,map as _0x5f1f30,merge as _0x5e3e6a,of as _0x5b3fe9,shareReplay as _0x34e70e,take as _0x5c55cb,takeUntil as _0x1b033d}from'rxjs';import{CmdRspCode as _0x37b9b2,CombCmd as _0x3b5ebc,ErrorCode as _0x21e177,FileSource as _0x4a74cc,UnitAction as _0x1f5848,UnitObject as _0x5e7d94}from'@univerjs/protocol';import{ITelemetryService as _0x3e86e2}from'@univerjs/telemetry';import{delay as _0x1ebfc0,filter as _0xae526b,map as _0x49f6f7,take as _0x1c88c9,takeUntil as _0x5e490d}from'rxjs/operators';import{AddSlidePageMutation as _0x253f54,EnsureSlideMasterPageMutation as _0x45480a,MoveSlidePageMutation as _0x1aaa8a,RemoveSlidePageMutation as _0x84ee02}from'@univerjs-pro/slides';import{HTTPRequest as _0x4c2e8f,HTTPService as _0x4288a3,ISocketService as _0xd03cee,MergeInterceptorFactory as _0x49dd8f,ThresholdInterceptorFactory as _0x4967eb,UniverNetworkPlugin as _0xae98f7}from'@univerjs/network';import{UniverLicensePlugin as _0xb82aa,getGlobalObject as _0x2312a4}from'@univerjs-pro/license';import{cbc as _0x255255}from'@noble/ciphers/aes.js';import{concatBytes as _0x3a4768,randomBytes as _0x439cec,utf8ToBytes as _0x383466}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x595060,getDrawingImageAllowSize as _0x5a7afa}from'@univerjs/drawing';const R='collaboration-client.config',gt={},_t=_0x19811e(0x20a),vt=_0x19811e(0x122),yt='HEARTBEAT_INTERVAL',bt=_0x19811e(0x2ae),xt=_0x19811e(0x250),St='LOCAL_CACHE_INTERVAL',Ct=0x3e8,wt=_0x19811e(0x364),Tt=_0x19811e(0x322);function Et(_0x1777db){const _0x3642ab=_0x19811e;return JSON['stringify'](_0x1777db)[_0x3642ab(0x2ab)];}function Dt(_0x11b744){'@babel/helpers - typeof';const _0x2fcc36=_0x19811e;return Dt=typeof Symbol==_0x2fcc36(0x25a)&&typeof Symbol[_0x2fcc36(0x2e3)]==_0x2fcc36(0x35b)?function(_0x1ec250){return typeof _0x1ec250;}:function(_0x1149a5){const _0x1687f8=_0x2fcc36;return _0x1149a5&&typeof Symbol==_0x1687f8(0x25a)&&_0x1149a5[_0x1687f8(0x1c2)]===Symbol&&_0x1149a5!==Symbol[_0x1687f8(0x201)]?_0x1687f8(0x35b):typeof _0x1149a5;},Dt(_0x11b744);}function Ot(_0x966924,_0xed6dc8){const _0x10cde7=_0x19811e;if(Dt(_0x966924)!=_0x10cde7(0x133)||!_0x966924)return _0x966924;var _0x4a2d1b=_0x966924[Symbol[_0x10cde7(0x229)]];if(_0x4a2d1b!==void 0x0){var _0x322b72=_0x4a2d1b[_0x10cde7(0x167)](_0x966924,_0xed6dc8||'default');if(Dt(_0x322b72)!=_0x10cde7(0x133))return _0x322b72;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xed6dc8===_0x10cde7(0x2f5)?String:Number)(_0x966924);}function kt(_0x50741b){const _0x45d9d9=_0x19811e;var _0x599a39=Ot(_0x50741b,_0x45d9d9(0x2f5));return Dt(_0x599a39)==_0x45d9d9(0x35b)?_0x599a39:_0x599a39+'';}function z(_0x43aa07,_0x5949e0,_0x587f9e){const _0x27e020=_0x19811e;return(_0x5949e0=kt(_0x5949e0))in _0x43aa07?Object[_0x27e020(0x20e)](_0x43aa07,_0x5949e0,{'value':_0x587f9e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43aa07[_0x5949e0]=_0x587f9e,_0x43aa07;}let At=function(_0x6257c5){const _0x14f5de=_0x19811e;return _0x6257c5[_0x14f5de(0x190)]='OTHER_CLIENT_EDITING',_0x6257c5['PERMISSION_DENIED']=_0x14f5de(0x30e),_0x6257c5[_0x14f5de(0x2c8)]=_0x14f5de(0x2c8),_0x6257c5['CONFLICT_CACHE_CLEAR_FAILED']=_0x14f5de(0x14c),_0x6257c5[_0x14f5de(0x21d)]=_0x14f5de(0x21d),_0x6257c5['CLOSE_ROOM']=_0x14f5de(0x3c1),_0x6257c5[_0x14f5de(0x29e)]=_0x14f5de(0x29e),_0x6257c5[_0x14f5de(0x23f)]=_0x14f5de(0x23f),_0x6257c5[_0x14f5de(0x342)]=_0x14f5de(0x342),_0x6257c5[_0x14f5de(0x337)]=_0x14f5de(0x337),_0x6257c5;}({});var B=class{constructor(){const _0x20686f=_0x19811e;z(this,'_event$',new _0x33eafc()),z(this,_0x20686f(0x360),this['_event$'][_0x20686f(0x316)]());}['emitEvent'](_0x25faec){const _0x403d40=_0x19811e;this[_0x403d40(0x12c)][_0x403d40(0x2d6)](_0x25faec);}},jt=class{constructor(){const _0x18bcf2=_0x19811e;z(this,_0x18bcf2(0x177),new _0x33eafc()),z(this,_0x18bcf2(0x38a),this[_0x18bcf2(0x177)]['asObservable']());}[_0x19811e(0x12f)](_0xdf9bb8){const _0x3f6be4=_0x19811e;this[_0x3f6be4(0x177)]['next'](_0xdf9bb8);}};function V(_0x42b812,_0xa5344a){return function(_0x2456f4,_0x83d3b0){_0xa5344a(_0x2456f4,_0x83d3b0,_0x42b812);};}function H(_0xe97b8d,_0x7f454,_0x3078b1,_0x1b506e){const _0x5186eb=_0x19811e;var _0x76aff3=arguments[_0x5186eb(0x2ab)],_0x296db4=_0x76aff3<0x3?_0x7f454:_0x1b506e===null?_0x1b506e=Object[_0x5186eb(0x1d8)](_0x7f454,_0x3078b1):_0x1b506e,_0x5117e0;if(typeof Reflect==_0x5186eb(0x133)&&typeof Reflect[_0x5186eb(0x246)]==_0x5186eb(0x25a))_0x296db4=Reflect[_0x5186eb(0x246)](_0xe97b8d,_0x7f454,_0x3078b1,_0x1b506e);else{for(var _0x337036=_0xe97b8d[_0x5186eb(0x2ab)]-0x1;_0x337036>=0x0;_0x337036--)(_0x5117e0=_0xe97b8d[_0x337036])&&(_0x296db4=(_0x76aff3<0x3?_0x5117e0(_0x296db4):_0x76aff3>0x3?_0x5117e0(_0x7f454,_0x3078b1,_0x296db4):_0x5117e0(_0x7f454,_0x3078b1))||_0x296db4);}return _0x76aff3>0x3&&_0x296db4&&Object['defineProperty'](_0x7f454,_0x3078b1,_0x296db4),_0x296db4;}let Mt=class extends _0x3d72df{constructor(_0x52e820){const _0x521148=_0x19811e;super(),this[_0x521148(0x2e7)]=_0x52e820,z(this,_0x521148(0x333),new Map()),z(this,_0x521148(0x2da),new _0x33eafc()),this['disposeWithMe'](_0x5e3e6a(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5d23e3[_0x521148(0x227)])[_0x521148(0x273)](_0x49f6f7(_0x2e3fc1=>_0x2e3fc1[_0x521148(0x382)]())),this['_univerInstanceService'][_0x521148(0x131)](_0x5d23e3['UNIVER_DOC'])[_0x521148(0x273)](_0x49f6f7(_0x1758ea=>_0x1758ea[_0x521148(0x382)]())),this[_0x521148(0x2e7)][_0x521148(0x131)](_0x5d23e3[_0x521148(0x328)])[_0x521148(0x273)](_0x49f6f7(_0x403c19=>_0x403c19[_0x521148(0x382)]())),this['_univerInstanceService'][_0x521148(0x131)](_0x5d23e3[_0x521148(0x38e)])[_0x521148(0x273)](_0x49f6f7(_0x5c8409=>_0x5c8409[_0x521148(0x382)]())))['subscribe'](_0x5326fe=>this[_0x521148(0x1cf)](_0x5326fe)));}[_0x19811e(0x375)](_0x3512a6){const _0xb9721e=_0x19811e;return this['_roomMembers'][_0xb9721e(0x1d6)](_0x3512a6)?_0x5b3fe9(this['_roomMembers']['get'](_0x3512a6)):this[_0xb9721e(0x2da)]['pipe'](_0x49f6f7(_0x32e463=>{const _0x46a0d5=_0xb9721e;if(_0x32e463===_0x3512a6)return this[_0x46a0d5(0x333)][_0x46a0d5(0x17c)](_0x32e463);}));}['updateMember'](_0x3c3f68,_0xf45a53){const _0x1eb466=_0x19811e;let _0x58cd41=this[_0x1eb466(0x333)][_0x1eb466(0x17c)](_0x3c3f68);_0x58cd41||(_0x58cd41=new Nt(),this[_0x1eb466(0x333)][_0x1eb466(0x1ee)](_0x3c3f68,_0x58cd41),this[_0x1eb466(0x2da)][_0x1eb466(0x2d6)](_0x3c3f68)),_0x58cd41[_0x1eb466(0x324)](_0xf45a53);}[_0x19811e(0x14a)](_0x39a8ec,_0x396bb4){const _0x2a51e3=_0x19811e;let _0xe3b65f=this[_0x2a51e3(0x333)][_0x2a51e3(0x17c)](_0x39a8ec);_0xe3b65f&&_0xe3b65f[_0x2a51e3(0x14a)](_0x396bb4);}[_0x19811e(0x12a)](_0x262a96){const _0xeedb48=_0x19811e;return this[_0xeedb48(0x333)][_0xeedb48(0x17c)](_0x262a96);}[_0x19811e(0x1bb)](_0x186c47,_0x4c34fc){const _0x15e072=_0x19811e;let _0x1a69dd=this[_0x15e072(0x333)][_0x15e072(0x17c)](_0x186c47);if(_0x1a69dd)return _0x1a69dd['getMember'](_0x4c34fc);}[_0x19811e(0x1cf)](_0x7f6278){const _0x24e8ea=_0x19811e;let _0x5534ff=this[_0x24e8ea(0x333)][_0x24e8ea(0x17c)](_0x7f6278);_0x5534ff&&(_0x5534ff['dispose'](),this[_0x24e8ea(0x333)]['delete'](_0x7f6278));}['dispose'](){const _0x5ca29f=_0x19811e;this[_0x5ca29f(0x333)][_0x5ca29f(0x332)](_0x2655f3=>_0x2655f3['dispose']()),this[_0x5ca29f(0x333)][_0x5ca29f(0x2e5)](),this[_0x5ca29f(0x2da)][_0x5ca29f(0x279)]();}};Mt=H([V(0x0,_0x4f5fa8)],Mt);var Nt=class extends _0x3d72df{constructor(..._0x2234b6){const _0x127e30=_0x19811e;super(..._0x2234b6),z(this,_0x127e30(0x3d3),new Map()),z(this,_0x127e30(0x2a6),new _0x5d64e7(this[_0x127e30(0x3d3)])),z(this,'members$',this['_members$'][_0x127e30(0x316)]());}[_0x19811e(0x194)](){const _0x191f14=_0x19811e;this[_0x191f14(0x3d3)]['clear'](),this['_members$'][_0x191f14(0x279)]();}['updateMember'](_0x56248a){const _0x2e984b=_0x19811e;this[_0x2e984b(0x3d3)][_0x2e984b(0x1ee)](_0x56248a[_0x2e984b(0x2ee)],_0x56248a),this[_0x2e984b(0x259)]();}[_0x19811e(0x14a)](_0x4659a2){const _0xa9332b=_0x19811e;this[_0xa9332b(0x3d3)][_0xa9332b(0x347)](_0x4659a2),this[_0xa9332b(0x259)]();}[_0x19811e(0x1bb)](_0x2691c7){const _0xcca9fa=_0x19811e;return this[_0xcca9fa(0x3d3)][_0xcca9fa(0x17c)](_0x2691c7);}[_0x19811e(0x149)](){const _0x2c485c=_0x19811e;return Array[_0x2c485c(0x22e)](this[_0x2c485c(0x3d3)]['values']());}['_emitMembers'](){const _0x49a909=_0x19811e;this[_0x49a909(0x2a6)][_0x49a909(0x2d6)](this[_0x49a909(0x3d3)]);}};function Pt(_0x4a3755,_0x480cf8){const _0x24f1ba=_0x19811e;if(It(_0x4a3755))return _0x480cf8;if(_0x480cf8[_0x24f1ba(0x13c)]===_0x27a7e8['SUBMIT_CHANGESET']){let _0x19c0b5=Vt(_0x4a3755),_0x291479=_0x480cf8;return{..._0x291479,'data':{..._0x291479['data'],'unitID':_0x4a3755[_0x24f1ba(0x135)][_0x24f1ba(0x22b)],'unitType':_0x4a3755[_0x24f1ba(0x135)][_0x24f1ba(0x2e4)]??_0x291479['data']['unitType'],'changeset':_0x19c0b5[_0x24f1ba(0x3bd)](_0x291479[_0x24f1ba(0x202)][_0x24f1ba(0x136)],Ht(_0x4a3755))}};}if(_0x480cf8['eventID']===_0x27a7e8[_0x24f1ba(0x39b)]){let _0x3931cc=_0x480cf8;return{..._0x3931cc,'data':{..._0x3931cc[_0x24f1ba(0x202)],'unitID':_0x4a3755['target'][_0x24f1ba(0x22b)],'unitType':_0x4a3755[_0x24f1ba(0x135)][_0x24f1ba(0x2e4)]??_0x3931cc['data'][_0x24f1ba(0x2e4)]}};}return _0x480cf8;}function Ft(_0xe03804,_0x2ba444){if(It(_0xe03804))return[_0x2ba444];switch(_0x2ba444['eventID']){case _0x27a7e8['NEW_CHANGESETS']:return[Lt(_0xe03804,_0x2ba444)];case _0x27a7e8['PSEUDO_FETCH_MISSING_RESULT']:return[zt(_0xe03804,_0x2ba444)];case _0x27a7e8['CHANGESET_SHOULD_RETRY']:return[Rt(_0xe03804,_0x2ba444)];default:return[_0x2ba444];}}function It(_0x55825f){const _0x58dd71=_0x19811e;return _0x55825f[_0x58dd71(0x135)]['endpoint']==null&&_0x55825f[_0x58dd71(0x135)][_0x58dd71(0x22b)]===_0x55825f['localUnitId']&&!_0x55825f[_0x58dd71(0x136)];}function Lt(_0x43eded,_0x32d38b){const _0x183fcc=_0x19811e;return{..._0x32d38b,'data':_0x3ec998(Bt(_0x43eded,_0x52ab46(_0x32d38b[_0x183fcc(0x202)])))};}function Rt(_0x5c9dd0,_0x4df4fb){const _0x1f93f3=_0x19811e;return{..._0x4df4fb,'data':Bt(_0x5c9dd0,_0x4df4fb[_0x1f93f3(0x202)])};}function zt(_0x3f9afc,_0x178da8){const _0x339692=_0x19811e;let _0xe720b8=_0x178da8['data'];return{..._0x178da8,'data':{..._0xe720b8,'changesets':_0xe720b8['changesets'][_0x339692(0x1a3)](_0x339fdf=>_0x3ec998(Bt(_0x3f9afc,_0x52ab46(_0x339fdf))))}};}function Bt(_0x1b080c,_0x5e48c7){return Vt(_0x1b080c)['toLocal'](_0x5e48c7,Ht(_0x1b080c));}function Vt(_0x56b2da){const _0x5b5757=_0x19811e;if(!_0x56b2da[_0x5b5757(0x136)])throw Error(_0x5b5757(0x367));return _0x56b2da[_0x5b5757(0x136)];}function Ht(_0x5c035e){const _0x5a7886=_0x19811e;return{'localUnitId':_0x5c035e['localUnitId'],'unitType':_0x5c035e[_0x5a7886(0x2e4)],'target':_0x5c035e[_0x5a7886(0x135)]};}let Ut=function(_0x45847a){const _0x124f31=_0x19811e;return _0x45847a[_0x45847a[_0x124f31(0x262)]=0x0]=_0x124f31(0x262),_0x45847a[_0x45847a[_0x124f31(0x241)]=0x1]=_0x124f31(0x241),_0x45847a[_0x45847a[_0x124f31(0x3cc)]=0x2]=_0x124f31(0x3cc),_0x45847a[_0x45847a[_0x124f31(0x1d0)]=0x3]=_0x124f31(0x1d0),_0x45847a;}({});const Wt={[_0x37b9b2[_0x19811e(0x343)]]:_0x19811e(0x1f3),[_0x37b9b2[_0x19811e(0x38b)]]:_0x19811e(0x266),[_0x37b9b2['JOIN_ROOM_NOT_EXISTS']]:_0x19811e(0x1a6),[_0x37b9b2[_0x19811e(0x37a)]]:_0x19811e(0x127),[_0x37b9b2[_0x19811e(0x385)]]:_0x19811e(0x2a1)};let Gt=class extends _0x39685b{get[_0x19811e(0x2a2)](){const _0x3ebe1b=_0x19811e;return this[_0x3ebe1b(0x199)]['getValue']();}constructor(_0x183d55,_0x500471,_0x34cdc2,_0x46cc7e,_0x51ef77,_0xf188a0,_0xbaa147,_0x69078b){const _0x57baba=_0x19811e;super(),this[_0x57baba(0x31d)]=_0x183d55,this[_0x57baba(0x261)]=_0x34cdc2,this[_0x57baba(0x216)]=_0x46cc7e,this['_memberService']=_0x51ef77,this[_0x57baba(0x310)]=_0xf188a0,this[_0x57baba(0x1af)]=_0xbaa147,this[_0x57baba(0x339)]=_0x69078b,z(this,_0x57baba(0x199),new _0x5d64e7(0x0)),z(this,_0x57baba(0x3a5),this[_0x57baba(0x199)][_0x57baba(0x316)]()),z(this,_0x57baba(0x12c),new _0x33eafc()),z(this,_0x57baba(0x360),this[_0x57baba(0x12c)][_0x57baba(0x316)]()),z(this,_0x57baba(0x365),void 0x0),z(this,'_socketMessageSubscription',void 0x0),z(this,'_collaborationTimeoutTimer',void 0x0),z(this,_0x57baba(0x296),!0x1),z(this,_0x57baba(0x39f),null),this[_0x57baba(0x296)]=!!this[_0x57baba(0x339)],_0x500471[_0x57baba(0x273)](_0x1b033d(this[_0x57baba(0x1a7)]))[_0x57baba(0x2c1)](_0x41b71f=>{const _0x2dc258=_0x57baba;if(_0x41b71f!==void 0x0){if(this['_socket']=_0x41b71f,_0x41b71f)this[_0x2dc258(0x14b)](_0x41b71f),this[_0x2dc258(0x2bc)]=_0x41b71f[_0x2dc258(0x1f1)][_0x2dc258(0x2c1)](_0x13ea06=>{const _0x2e1bd5=_0x2dc258;_0x13ea06[_0x2e1bd5(0x1bc)]===this[_0x2e1bd5(0x31d)][_0x2e1bd5(0x135)][_0x2e1bd5(0x22b)]&&this[_0x2e1bd5(0x222)](_0x13ea06);});else{var _0x1c79b1;this[_0x2dc258(0x3ce)](),this['_sessionStatus$']['next'](0x2),(_0x1c79b1=this['_socketMessageSubscription'])==null||_0x1c79b1[_0x2dc258(0x185)](),this[_0x2dc258(0x2bc)]=null;}}});}['getMemberID'](){const _0x274749=_0x19811e;var _0x433004;return((_0x433004=this[_0x274749(0x365)])==null?void 0x0:_0x433004[_0x274749(0x2ee)])??null;}[_0x19811e(0x194)](){const _0x12d250=_0x19811e;super[_0x12d250(0x194)](),this[_0x12d250(0x17f)](),this['dispose$']['next'](),this['dispose$'][_0x12d250(0x279)]();}[_0x19811e(0x17f)](){const _0xc2cac=_0x19811e;var _0xb40398;this['_throwTelemetryCollaborationNewChangeset'](),(_0xb40398=this[_0xc2cac(0x365)])==null||_0xb40398['send']({'cmd':_0x3b5ebc[_0xc2cac(0x233)],'data':{'roomID':this[_0xc2cac(0x31d)]['target'][_0xc2cac(0x22b)]}}),this['_event$']['complete'](),this[_0xc2cac(0x199)]['complete']();}[_0x19811e(0x222)](_0x167737){const _0x4db75f=_0x19811e;_0x167737[_0x4db75f(0x2d9)]===_0x3b5ebc[_0x4db75f(0x1d9)]?this[_0x4db75f(0x39d)](_0x167737):_0x167737[_0x4db75f(0x2d9)]===_0x3b5ebc[_0x4db75f(0x1e7)]&&this[_0x4db75f(0x2df)](_0x167737);}[_0x19811e(0x14b)](_0x3624af){const _0x415438=_0x19811e;this[_0x415438(0x199)][_0x415438(0x2d6)](0x1),_0x3624af[_0x415438(0x173)]({'cmd':_0x3b5ebc[_0x415438(0x1d9)],'routeKey':this[_0x415438(0x31d)][_0x415438(0x135)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x415438(0x135)][_0x415438(0x22b)]}]}});}[_0x19811e(0x39d)](_0x910e50){const _0x43f55f=_0x19811e;var _0x393895;if(_0x910e50[_0x43f55f(0x236)]in Wt){this['_collaborationUIEventService'][_0x43f55f(0x24a)]({'id':_0x43f55f(0x29e),'data':Wt[_0x910e50[_0x43f55f(0x236)]]}),this['_sessionStatus$'][_0x43f55f(0x2d6)](0x2);return;}this[_0x43f55f(0x199)][_0x43f55f(0x2d6)](0x3);let _0xd096ce=(_0x393895=_0x910e50[_0x43f55f(0x202)][_0x43f55f(0x3da)][this[_0x43f55f(0x31d)]['target']['unitId']])==null?void 0x0:_0x393895[_0x43f55f(0x282)];_0xd096ce&&_0xd096ce[_0x43f55f(0x332)](_0x5c6a63=>this[_0x43f55f(0x1fe)][_0x43f55f(0x324)](this['_identity'][_0x43f55f(0x3bc)],_0x5c6a63));}[_0x19811e(0x2df)](_0x40dfa5){const _0x3898b0=_0x19811e;try{let _0x4aff7d=Ft(this['_identity'],_0x40dfa5['data']);for(let _0x388ee1 of _0x4aff7d)switch(_0x388ee1['eventID']){case _0x27a7e8[_0x3898b0(0x34d)]:this[_0x3898b0(0x15e)](_0x388ee1),this[_0x3898b0(0x12c)][_0x3898b0(0x2d6)](_0x388ee1);break;case _0x27a7e8[_0x3898b0(0x16d)]:this[_0x3898b0(0x340)](_0x388ee1),this['_event$'][_0x3898b0(0x2d6)](_0x388ee1);break;case _0x27a7e8['CHANGESET_ACK']:case _0x27a7e8['CHANGESET_SHOULD_RETRY']:this[_0x3898b0(0x2ec)](),this[_0x3898b0(0x388)](),this['_event$']['next'](_0x388ee1);break;case _0x27a7e8[_0x3898b0(0x344)]:this['_logService'][_0x3898b0(0x2cd)](_0x3898b0(0x272)+JSON[_0x3898b0(0x3a0)](_0x388ee1)),this['_event$'][_0x3898b0(0x2d6)](_0x388ee1);break;case _0x27a7e8[_0x3898b0(0x1b6)]:this['_commentService'][_0x3898b0(0x12f)](_0x388ee1[_0x3898b0(0x202)]),this[_0x3898b0(0x12c)][_0x3898b0(0x2d6)](_0x388ee1);break;default:this[_0x3898b0(0x12c)][_0x3898b0(0x2d6)](_0x388ee1);}}catch(_0x1d805e){this['_logService']['error'](_0x1d805e,_0x40dfa5);}}['_onUserJoin'](_0x3a58e1){const _0x1602e5=_0x19811e;this[_0x1602e5(0x1fe)]['updateMember'](this['_identity'][_0x1602e5(0x3bc)],_0x3a58e1['data']);}[_0x19811e(0x340)](_0x3cc416){const _0x167142=_0x19811e;this['_memberService'][_0x167142(0x14a)](this[_0x167142(0x31d)]['localUnitId'],_0x3cc416[_0x167142(0x202)][_0x167142(0x2ee)]);}async['send'](_0x19d77c,_0x22c837){const _0xd71a95=_0x19811e;if(this['sessionStatus']!==0x3||!this[_0xd71a95(0x365)])throw Error(_0xd71a95(0x20b));try{let _0x761eba=Pt(this['_identity'],_0x19d77c);_0x761eba[_0xd71a95(0x13c)]===_0x27a7e8[_0xd71a95(0x1f6)]&&(this[_0xd71a95(0x35a)](),this[_0xd71a95(0x2eb)](_0x761eba)),this['_socket'][_0xd71a95(0x173)]({'cmd':_0x3b5ebc[_0xd71a95(0x2fb)],'routeKey':this[_0xd71a95(0x31d)][_0xd71a95(0x135)][_0xd71a95(0x22b)],'routeType':'','data':_0x761eba});}catch(_0x124c84){this['_logService'][_0xd71a95(0x2cd)](_0x124c84);}}[_0x19811e(0x35a)](){const _0x555c65=_0x19811e;this[_0x555c65(0x206)]=setTimeout(()=>{const _0x45770e=_0x555c65;this[_0x45770e(0x206)]=null,this['_collaborationUIEventService'][_0x45770e(0x24a)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x555c65(0x216)][_0x555c65(0x396)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x19811e(0x388)](){const _0x35a1af=_0x19811e;this[_0x35a1af(0x206)]&&=(clearTimeout(this[_0x35a1af(0x206)]),null);}['_startTelemetryCollaborationNewChangeset'](_0x28f572){const _0x4242f7=_0x19811e;if(!this[_0x4242f7(0x296)])return;let {data:_0x132b3b}=_0x28f572,{unitID:_0x25c94c,changeset:_0x45f9ae}=_0x132b3b,{mutations:_0x35bd2e,type:_0x2ec498}=_0x45f9ae;this['_telemetryInfo']={'unitId':_0x25c94c,'type':_0x2ec498,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Et(_0x35bd2e)};}[_0x19811e(0x2ec)](){const _0x478452=_0x19811e;if(this[_0x478452(0x296)]){if(!this[_0x478452(0x39f)]){this['_logService']['error'](_0x478452(0x351),_0x478452(0x3a9));return;}this[_0x478452(0x39f)][_0x478452(0x132)]=performance[_0x478452(0x1de)](),this[_0x478452(0x39f)][_0x478452(0x175)]=this[_0x478452(0x39f)][_0x478452(0x132)]-this['_telemetryInfo']['startTime'],this['_telemetryService'][_0x478452(0x311)]('collaboration_new_changeset',this[_0x478452(0x39f)]),this[_0x478452(0x39f)]=null;}}[_0x19811e(0x3ce)](){const _0x23f00f=_0x19811e;this[_0x23f00f(0x39f)]=null;}};Gt=H([V(0x2,_0x1ba700),V(0x3,_0x2477d9),V(0x4,_0x480e6d(Mt)),V(0x5,_0x480e6d(jt)),V(0x6,_0x480e6d(B)),V(0x7,_0x1e59a5(_0x3e86e2))],Gt);const U=_0x538219(_0x19811e(0x3b7));function Kt(_0x36f5e7){const _0x2013d6=_0x19811e;return _0x2013d6(0x219)+_0x36f5e7;}function qt(_0xbe0550){const _0x4af786=_0x19811e;let {unitID:_0x30c719,mutations:_0x2a48f3}=_0xbe0550;return{'unitId':_0x30c719,'subUnitId':_0x2a48f3['length']>0x0?_0x2a48f3[0x0][_0x4af786(0x359)][_0x4af786(0x1c0)]:null};}let Jt=class{constructor(_0x28977d,_0x34fad3,_0x1761d5){const _0x2d1cdf=_0x19811e;this[_0x2d1cdf(0x302)]=_0x28977d,this[_0x2d1cdf(0x3d8)]=_0x34fad3,this[_0x2d1cdf(0x1c4)]=_0x1761d5;}[_0x19811e(0x1b2)](_0x11c46b){const _0x276ddf=_0x19811e;var _0x303897,_0x10f34e;let _0x4fd165=this['_injector'][_0x276ddf(0x17c)](_0x2a7649),{unitId:_0x1bf043,subUnitId:_0x4a45a6}=qt(_0x11c46b),_0x8eb0f5=_0x4fd165==null?void 0x0:_0x4fd165[_0x276ddf(0x1b9)](_0x1bf043)[_0x276ddf(0x3c7)](),_0x12d091=(_0x303897=this[_0x276ddf(0x1c4)]['getUnit'](_0x1bf043))==null||(_0x303897=_0x303897['getActiveSheet']())==null?void 0x0:_0x303897[_0x276ddf(0x15f)]();if(_0x8eb0f5[_0x276ddf(0x2ab)]===0x0||!_0x1bf043||!_0x4a45a6)return;let _0x256edd=[{'id':_0x4a8a0d['id'],'params':{'unitId':_0x1bf043,'subUnitId':_0x12d091,'selections':_0x41c835['deepClone'](_0x8eb0f5)}}],_0xbd95e3=this[_0x276ddf(0x3d8)][_0x276ddf(0x19d)](_0x11c46b,_0x256edd);if(!_0x13dcd7(_0xbd95e3))throw _0xbd95e3['error'];let _0x153a83=(_0x10f34e=_0xbd95e3[_0x276ddf(0x2ba)][0x0])==null||(_0x10f34e=_0x10f34e['params'])==null?void 0x0:_0x10f34e[_0x276ddf(0x23e)];if(Array[_0x276ddf(0x3c2)](_0x153a83)&&_0x153a83[_0x276ddf(0x2ab)]){if(_0x153a83[_0x276ddf(0x2ab)]===_0x256edd[0x0]['params'][_0x276ddf(0x23e)][_0x276ddf(0x2ab)]&&_0x153a83[_0x276ddf(0x1e1)]((_0x3bf904,_0xfed8a4)=>_0x209662[_0x276ddf(0x1c6)](_0x3bf904[_0x276ddf(0x3c5)],_0x256edd[0x0][_0x276ddf(0x359)][_0x276ddf(0x23e)][_0xfed8a4][_0x276ddf(0x3c5)])))return;this[_0x276ddf(0x302)][_0x276ddf(0x17c)](_0xef393c)[_0x276ddf(0x144)](_0x4a8a0d['id'],{'unitId':_0x1bf043,'subUnitId':_0x12d091,'selections':_0x153a83});}}};Jt=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x435fb7),V(0x2,_0x4f5fa8)],Jt);const W=_0x538219('univer-pro.collaboration-client.single-active-unit-service');let Yt=function(_0x2d7b9d){const _0x1e48b2=_0x19811e;return _0x2d7b9d[_0x2d7b9d[_0x1e48b2(0x307)]=0x0]=_0x1e48b2(0x307),_0x2d7b9d[_0x2d7b9d[_0x1e48b2(0x263)]=0x1]=_0x1e48b2(0x263),_0x2d7b9d;}({});function Xt(_0x1cf284){const _0x56c65a=_0x19811e;var _0x36b53f;return!!((_0x36b53f=_0x1cf284[_0x56c65a(0x359)])!=null&&_0x36b53f['__splitChunk__']);}const Zt=new Set([_0x560f34['id']]),Qt=new Set([_0x253f54['id'],_0x45480a['id'],_0x1aaa8a['id'],_0x84ee02['id']]);function $t(_0x279e56,_0x5b1319=Zt){const _0x310a90=_0x19811e;let _0x523588=[];for(let _0x1e80d5 of _0x279e56){if(_0x5b1319['has'](_0x1e80d5['id'])){if(_0x523588['length']>0x0)break;_0x523588[_0x310a90(0x335)](_0x1e80d5);break;}if(Xt(_0x1e80d5)){if(_0x523588['length']>0x0)break;_0x523588[_0x310a90(0x335)](_0x1e80d5);break;}_0x523588['push'](_0x1e80d5);}return _0x523588;}function en(_0x75c9ca,_0x2742ea,_0x2d4940,_0xa4af9c,_0x1e1f03){const _0x10fe4f=_0x19811e;let _0x4b6b9e=$t(_0x75c9ca),_0x2eab2c=_0x1e1f03[_0x10fe4f(0x21e)](),_0x231236=(_0x2eab2c==null?void 0x0:_0x2eab2c[_0x10fe4f(0x2b3)])??_0x10fe4f(0x2ff),_0x428921=(_0x2eab2c==null?void 0x0:_0x2eab2c[_0x10fe4f(0x2ee)])??'unknown';return{'changeset':{'unitID':_0x2742ea,'type':_0x1b1539(_0x2d4940[_0x10fe4f(0x1e3)](_0x2742ea)),'baseRev':_0xa4af9c[_0x10fe4f(0x2ea)](_0x2742ea),'revision':0x0,'userID':_0x231236,'memberID':_0x428921,'mutations':_0x4b6b9e},'pendingMutations':_0x75c9ca['slice'](_0x4b6b9e[_0x10fe4f(0x2ab)])};}const tn=en;function nn(_0x4ac0ab,_0xc24e54,_0x199a48,_0x123ad5,_0x4729bb){const _0x2f8171=_0x19811e;let _0x4de894=$t(_0x4ac0ab,Qt),_0x362a23=_0x4729bb[_0x2f8171(0x21e)](),_0x2bfb08=(_0x362a23==null?void 0x0:_0x362a23[_0x2f8171(0x2b3)])??_0x2f8171(0x2ff),_0x1c2749=(_0x362a23==null?void 0x0:_0x362a23['memberID'])??'unknown';return{'changeset':{'unitID':_0xc24e54,'type':_0x1b1539(_0x199a48['getUnitType'](_0xc24e54)),'baseRev':_0x123ad5[_0x2f8171(0x2ea)](_0xc24e54),'revision':0x0,'userID':_0x2bfb08,'memberID':_0x1c2749,'mutations':_0x4de894},'pendingMutations':_0x4ac0ab[_0x2f8171(0x141)](_0x4de894[_0x2f8171(0x2ab)])};}function rn(_0x285d35,_0x104579,_0x2acb87,_0x2c3986,_0x36c1c3){const _0x5dd849=_0x19811e;let _0x591269=_0x285d35[_0x5dd849(0x3d9)]((_0x23d586,_0x2280e0)=>{const _0x2fbd8d=_0x5dd849;let _0x115950=_0x23d586[_0x23d586['length']-0x1],{id:_0x585c6a}=_0x115950??{},{id:_0x40fd2f,type:_0x55016e}=_0x2280e0,_0x28ba07=_0x2280e0['params'];if(_0x585c6a&&_0x585c6a!==_0x40fd2f)throw Error(_0x2fbd8d(0x284)+_0x585c6a+_0x2fbd8d(0x36c)+_0x40fd2f+'.');if(!_0x115950)return[{'id':_0x40fd2f,'type':_0x55016e,'params':{'unitId':_0x28ba07[_0x2fbd8d(0x22b)],'textRanges':_0x28ba07[_0x2fbd8d(0x3dd)],'actions':_0x28ba07[_0x2fbd8d(0x303)]}}];let _0x409488=_0x115950['params'];return an(_0x409488,_0x28ba07)?[..._0x23d586[_0x2fbd8d(0x141)](0x0,-0x1),{..._0x115950,'id':_0x40fd2f,'type':_0x55016e,'params':{'unitId':_0x28ba07[_0x2fbd8d(0x22b)],'textRanges':_0x28ba07['textRanges'],'actions':_0x26d762[_0x2fbd8d(0x193)](_0x409488[_0x2fbd8d(0x303)],_0x28ba07['actions'])}}]:[..._0x23d586,{'id':_0x40fd2f,'type':_0x55016e,'params':{'unitId':_0x28ba07[_0x2fbd8d(0x22b)],'textRanges':_0x28ba07[_0x2fbd8d(0x3dd)],'actions':_0x28ba07['actions']}}];},[]),_0x42a845=_0x36c1c3[_0x5dd849(0x21e)](),_0x25287c=(_0x42a845==null?void 0x0:_0x42a845['userID'])??_0x5dd849(0x2ff),_0x102a08=(_0x42a845==null?void 0x0:_0x42a845[_0x5dd849(0x2ee)])??_0x5dd849(0x2ff);return{'changeset':{'unitID':_0x104579,'type':_0x1b1539(_0x2acb87['getUnitType'](_0x104579)),'baseRev':_0x2c3986[_0x5dd849(0x2ea)](_0x104579),'revision':0x0,'userID':_0x25287c,'memberID':_0x102a08,'mutations':_0x591269},'pendingMutations':_0x285d35[_0x5dd849(0x141)](_0x285d35['length'])};}function an(_0x3ea3ff,_0x229435){const _0x1e163c=_0x19811e;return!on(_0x3ea3ff)&&!on(_0x229435)&&sn(_0x3ea3ff[_0x1e163c(0x303)],_0x229435[_0x1e163c(0x303)]);}function on(_0x1910f1){return _0x1910f1['isCompositionEnd']!==void 0x0;}function sn(_0x2f7a83,_0x2daac8){return cn(_0x2f7a83)&&cn(_0x2daac8)&&!un(_0x2f7a83)&&!un(_0x2daac8)&&!ln(_0x2f7a83)&&!ln(_0x2daac8);}function cn(_0x2ce0a7){const _0x8c5907=_0x19811e;return dn(_0x2ce0a7)['some'](_0x557c02=>fn(_0x557c02)&&_0x557c02['et']===_0x8c5907(0x37f));}function ln(_0x596ddb){const _0x395e3c=_0x19811e;return dn(_0x596ddb)[_0x395e3c(0x1aa)](_0x29fde4=>Array[_0x395e3c(0x3c2)](_0x29fde4)||typeof _0x29fde4=='string'||typeof _0x29fde4==_0x395e3c(0x384));}function un(_0x51c1d5){const _0x352114=_0x19811e;return dn(_0x51c1d5)[_0x352114(0x1aa)](_0x53765a=>!fn(_0x53765a)||_0x53765a['et']!=='text-x'||!Array[_0x352114(0x3c2)](_0x53765a['e'])?!0x1:_0x53765a['e'][_0x352114(0x1aa)](_0x2f8c5f=>!fn(_0x2f8c5f)||!fn(_0x2f8c5f[_0x352114(0x1ea)])?!0x1:Object[_0x352114(0x201)]['hasOwnProperty'][_0x352114(0x167)](_0x2f8c5f['body'],_0x352114(0x27c))||Object[_0x352114(0x201)][_0x352114(0x1c7)][_0x352114(0x167)](_0x2f8c5f[_0x352114(0x1ea)],_0x352114(0x267))||Object['prototype'][_0x352114(0x1c7)][_0x352114(0x167)](_0x2f8c5f[_0x352114(0x1ea)],'blockRanges')));}function dn(_0x48a1b1){const _0x2c6dca=_0x19811e;if(!Array['isArray'](_0x48a1b1))return[];let _0x4aa24e=_0x48a1b1[_0x2c6dca(0x139)](_0x2c6dca(0x1ea))?_0x48a1b1:_0x48a1b1[_0x2c6dca(0x180)](_0x5e16b8=>Array[_0x2c6dca(0x3c2)](_0x5e16b8)&&_0x5e16b8['includes']('body'));if(!Array[_0x2c6dca(0x3c2)](_0x4aa24e))return[];let _0xa31e4d=_0x4aa24e[_0x2c6dca(0x293)]('body');return _0xa31e4d===-0x1?[]:_0x4aa24e[_0x2c6dca(0x141)](_0xa31e4d+0x1);}function fn(_0x2995ec){const _0xacedb4=_0x19811e;return typeof _0x2995ec==_0xacedb4(0x133)&&!!_0x2995ec&&!Array[_0xacedb4(0x3c2)](_0x2995ec);}function pn(_0x1157f8,_0x1e3a5d){const _0x55542b=_0x19811e;let _0x364147=new _0x584d6d(0x1);return setTimeout(()=>_0x364147[_0x55542b(0x2d6)](_0x1e3a5d),_0x1157f8),_0x364147[_0x55542b(0x316)]()[_0x55542b(0x273)](_0x5c55cb(0x1));}var mn,hn,gn;let _n=function(_0x1b61cc){const _0x166eca=_0x19811e;return _0x1b61cc[_0x166eca(0x2f3)]=_0x166eca(0x28a),_0x1b61cc[_0x166eca(0x130)]=_0x166eca(0x327),_0x1b61cc[_0x166eca(0x3a1)]='pending',_0x1b61cc[_0x166eca(0x21b)]='awaiting',_0x1b61cc[_0x166eca(0x3c0)]=_0x166eca(0x1ac),_0x1b61cc[_0x166eca(0x19b)]=_0x166eca(0x2fd),_0x1b61cc[_0x166eca(0x21d)]=_0x166eca(0x19c),_0x1b61cc['OFFLINE']=_0x166eca(0x192),_0x1b61cc;}({});const vn=0x4e20,yn=0x2bf20;var G=class{constructor(_0x3ae150,_0xe2b1a6,_0x270359,_0x3ce8f0,_0x3a192f,_0x77522b,_0x33023f,_0x60902e,_0x2ffc9c){const _0x473e2d=_0x19811e;this[_0x473e2d(0x25e)]=_0x3ae150,this['type']=_0xe2b1a6,this[_0x473e2d(0x151)]=_0x3a192f,this[_0x473e2d(0x3aa)]=_0x77522b,this[_0x473e2d(0x14e)]=_0x33023f,this[_0x473e2d(0x271)]=_0x60902e,this[_0x473e2d(0x121)]=_0x2ffc9c,z(this,'_awaitingChangeset',null),z(this,_0x473e2d(0x33f),[]),this[_0x473e2d(0x21c)]=_0x270359,this['_pendingMutations']=_0x3ce8f0;}[_0x19811e(0x12d)](_0x49b7f3){const _0x3e0759=_0x19811e;let _0x1d9073=this[_0x3e0759(0x271)][_0x3e0759(0x2ea)](this[_0x3e0759(0x25e)]);return _0x49b7f3[_0x3e0759(0x2fe)]>_0x1d9073+0x1&&(this[_0x3e0759(0x151)][_0x3e0759(0x3db)]({'from':_0x1d9073,'to':_0x49b7f3[_0x3e0759(0x2fe)]-0x1}),!0x0);}['_transformUndoredo'](_0x9ac608){const _0x5e1077=_0x19811e;this[_0x5e1077(0x14e)][_0x5e1077(0x32e)](this[_0x5e1077(0x25e)],_0x9ac608);}[_0x19811e(0x166)](_0x2c82ae){const _0x1274e1=_0x19811e;var _0x4cdc23,_0xa5f8a3;(_0x4cdc23=(_0xa5f8a3=this[_0x1274e1(0x151)])['onTransformSelections'])==null||_0x4cdc23[_0x1274e1(0x167)](_0xa5f8a3,_0x2c82ae);}[_0x19811e(0x125)](_0x16272a){const _0x417cf5=_0x19811e;var _0x4f239a,_0x598a3c;return((_0x4f239a=(_0x598a3c=this['_handler'])[_0x417cf5(0x138)])==null?void 0x0:_0x4f239a[_0x417cf5(0x167)](_0x598a3c,_0x16272a))??null;}[_0x19811e(0x29b)](_0x47c30f){const _0x275cfc=_0x19811e;var _0x57851c,_0x2c6c42;return(_0x57851c=(_0x2c6c42=this[_0x275cfc(0x151)])[_0x275cfc(0x24b)])==null?void 0x0:_0x57851c[_0x275cfc(0x167)](_0x2c6c42,_0x47c30f);}[_0x19811e(0x20c)](_0x1cc145){const _0x5d9940=_0x19811e;var _0x22244c,_0x2d54f6;return(_0x22244c=(_0x2d54f6=this[_0x5d9940(0x151)])[_0x5d9940(0x2ac)])==null?void 0x0:_0x22244c[_0x5d9940(0x167)](_0x2d54f6,_0x1cc145);}[_0x19811e(0x1e4)](_0x1082fc){const _0x40dcb3=_0x19811e;var _0x9105d3,_0x375d6b;return((_0x9105d3=(_0x375d6b=this[_0x40dcb3(0x151)])[_0x40dcb3(0x258)])==null?void 0x0:_0x9105d3['call'](_0x375d6b,_0x1082fc))??_0x1082fc;}['_transformRemoteChangesetByStateCache'](_0x114b20){const _0x3a42b4=_0x19811e;var _0x36f136,_0x55bed2;return((_0x36f136=(_0x55bed2=this[_0x3a42b4(0x151)])[_0x3a42b4(0x31b)])==null?void 0x0:_0x36f136[_0x3a42b4(0x167)](_0x55bed2,_0x114b20))??_0x114b20;}[_0x19811e(0x18b)](_0x440a0b){const _0x32c886=_0x19811e;if(this[_0x32c886(0x392)]===_0x5d23e3[_0x32c886(0x126)]){let {unitID:_0x353b49,mutations:_0x5d30f6,memberID:_0x2d2295}=_0x440a0b,_0x4411b7=_0x5d30f6[_0x32c886(0x2ab)]>0x0?_0x5d30f6[0x0][_0x32c886(0x359)][_0x32c886(0x3dd)]:[];if(Array['isArray'](_0x4411b7)&&_0x4411b7[_0x32c886(0x2ab)]>0x0){var _0x3aab6a,_0x958ba6;(_0x3aab6a=(_0x958ba6=this[_0x32c886(0x151)])['onSyncEditingCollabCursor'])==null||_0x3aab6a[_0x32c886(0x167)](_0x958ba6,{'unitID':_0x353b49,'memberID':_0x2d2295,'textRanges':_0x4411b7});}}}[_0x19811e(0x1b1)](){const _0x3ee9fe=_0x19811e;var _0x548422;(_0x548422=this[_0x3ee9fe(0x121)])==null||_0x548422[_0x3ee9fe(0x369)](this[_0x3ee9fe(0x25e)],this['type'],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x19811e(0x36b)](){const _0x10ec2c=_0x19811e;return this[_0x10ec2c(0x271)]['getCurrentRevOfUnit'](this[_0x10ec2c(0x25e)]);}[_0x19811e(0x323)](){const _0x5b7072=_0x19811e;this[_0x5b7072(0x271)][_0x5b7072(0x2c2)](this[_0x5b7072(0x25e)]);}[_0x19811e(0x35c)](_0x430ea6){const _0x1b5b2f=_0x19811e;let _0x3230b7=this[_0x1b5b2f(0x1e4)](_0x430ea6);_0x3230b7=this[_0x1b5b2f(0x270)](_0x3230b7);let _0x1add5e=this[_0x1b5b2f(0x125)](_0x3230b7),_0x5e7441=_0x1cdaf4(_0x3230b7[_0x1b5b2f(0x16e)],this[_0x1b5b2f(0x3aa)],{'fromCollab':!0x0});if(!_0x5e7441[_0x1b5b2f(0x2e9)])throw _0x1add5e==null||_0x1add5e['rollback'](),_0x5e7441[_0x1b5b2f(0x2cd)]instanceof Error?_0x5e7441['error']:Error(_0x5e7441[_0x1b5b2f(0x2cd)]??'[CollaborationState]:\x20apply\x20error!');_0x1add5e==null||_0x1add5e[_0x1b5b2f(0x2ce)](),this[_0x1b5b2f(0x29b)](_0x3230b7),this[_0x1b5b2f(0x20c)](_0x3230b7),this[_0x1b5b2f(0x33b)](_0x430ea6),this[_0x1b5b2f(0x166)](_0x3230b7),this[_0x1b5b2f(0x18b)](_0x3230b7),this[_0x1b5b2f(0x323)]();}};let K=class extends G{constructor(_0x28b24c,_0x2b4370,_0x252946,_0x628c7b,_0x35da9e,_0xb652c0,_0x57f1b7,_0x290a9e,_0x39d35f,_0x330f65){const _0x5a91b9=_0x19811e;super(_0x28b24c,_0x2b4370,null,[],_0x252946,_0x57f1b7,_0xb652c0,_0x628c7b,_0x330f65),this['_injector']=_0x35da9e,this[_0x5a91b9(0x261)]=_0x290a9e,this[_0x5a91b9(0x3d8)]=_0x39d35f,this[_0x5a91b9(0x38c)]=_0x330f65,z(this,_0x5a91b9(0x18d),_0x5a91b9(0x327));}['appendMutation'](_0x20c522){const _0x5aed48=_0x19811e;let _0x3827a8=this[_0x5aed48(0x302)][_0x5aed48(0x1d2)](q,this[_0x5aed48(0x25e)],this[_0x5aed48(0x392)],[_0x20c522],this[_0x5aed48(0x151)]);return _0x3827a8[_0x5aed48(0x235)](),_0x3827a8[_0x5aed48(0x1b1)](),_0x3827a8;}[_0x19811e(0x1dd)](_0x2868f5){const _0xef0e57=_0x19811e;if(this[_0xef0e57(0x12d)](_0x2868f5))return this[_0xef0e57(0x302)][_0xef0e57(0x1d2)](Q,this[_0xef0e57(0x25e)],this[_0xef0e57(0x392)],null,[],null,[_0x2868f5],this['_handler']);try{let _0x43349d=this[_0xef0e57(0x3d8)][_0xef0e57(0x19d)](_0x2868f5,[_0xa29bbd]);if(_0x13dcd7(_0x43349d)){let {c1Prime:_0x5097ac}=_0x43349d;return this[_0xef0e57(0x35c)](_0x5097ac),this;}throw _0x43349d[_0xef0e57(0x2cd)];}catch(_0xed372e){return this['_logService'][_0xef0e57(0x2cd)](_0xed372e),this[_0xef0e57(0x13a)](!0x1);}}['_onConflict'](_0xa346ea){const _0x1ccfa6=_0x19811e;return this[_0x1ccfa6(0x302)][_0x1ccfa6(0x1d2)](X,this[_0x1ccfa6(0x25e)],this[_0x1ccfa6(0x392)],null,[],this['_handler'],_0xa346ea);}[_0x19811e(0x33e)](_0x3f2b1a){const _0x4c4276=_0x19811e;if(_0x3f2b1a['revision']<=this[_0x4c4276(0x36b)]())return this;throw Error(_0x4c4276(0x2ef));}[_0x19811e(0x2d0)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x19811e(0x2de)](){const _0x25fbed=_0x19811e;return this['_injector'][_0x25fbed(0x1d2)](Z,this[_0x25fbed(0x25e)],this['type'],null,[],this[_0x25fbed(0x151)]);}['toggleOnline'](){return this;}[_0x19811e(0x218)](){const _0x4e121c=_0x19811e;throw Error(_0x4e121c(0x146));}['fetchMiss'](){const _0x41301c=_0x19811e;let _0x50e6b4=this[_0x41301c(0x271)][_0x41301c(0x2ea)](this[_0x41301c(0x25e)]);return this[_0x41301c(0x151)]['onMissingChangesets']({'from':_0x50e6b4,'to':0x0}),this['_injector'][_0x41301c(0x1d2)](Q,this[_0x41301c(0x25e)],this['type'],null,[],null,[],this[_0x41301c(0x151)]);}};K=H([V(0x3,_0x480e6d(_0x4e5cfb)),V(0x4,_0x480e6d(_0x5a91fd)),V(0x5,_0x3d966a),V(0x6,_0xef393c),V(0x7,_0x1ba700),V(0x8,_0x435fb7),V(0x9,_0x1e59a5(U))],K);let q=mn=class extends G{constructor(_0x360474,_0x4ed921,_0x230c9c,_0x3b792d,_0x5b1793,_0x1e7055,_0x2730a7,_0x2fb665,_0x526f67,_0x2ed05a,_0x28d72d,_0x15e3ce,_0x4cb758,_0x3ac427){const _0x5c6716=_0x19811e;super(_0x360474,_0x4ed921,null,_0x230c9c,_0x3b792d,_0x526f67,_0x4cb758,_0x1e7055,_0x3ac427),this['_injector']=_0x5b1793,this[_0x5c6716(0x3a4)]=_0x2730a7,this[_0x5c6716(0x261)]=_0x2fb665,this[_0x5c6716(0x216)]=_0x2ed05a,this[_0x5c6716(0x3d8)]=_0x28d72d,this[_0x5c6716(0x2e7)]=_0x15e3ce,z(this,_0x5c6716(0x18d),_0x5c6716(0x277)),z(this,_0x5c6716(0x3b8),null),z(this,_0x5c6716(0x184),null);}['appendMutation'](_0x1193b1){const _0x58a20d=_0x19811e;return this['_pendingMutations'][_0x58a20d(0x335)](_0x1193b1),this[_0x58a20d(0x1b1)](),this;}[_0x19811e(0x1dd)](_0x16a288){const _0x2ddb41=_0x19811e;if(this[_0x2ddb41(0x12d)](_0x16a288))return this['_clearScheduledTask'](),this[_0x2ddb41(0x302)][_0x2ddb41(0x1d2)](Q,this[_0x2ddb41(0x25e)],this[_0x2ddb41(0x392)],null,this[_0x2ddb41(0x33f)],null,[_0x16a288],this[_0x2ddb41(0x151)]);try{let _0x2ef73e=this[_0x2ddb41(0x3d8)][_0x2ddb41(0x19d)](_0x16a288,this[_0x2ddb41(0x33f)]);if(_0x13dcd7(_0x2ef73e)){let {c1Prime:_0x80f716,m2Prime:_0x27665c}=_0x2ef73e;this[_0x2ddb41(0x35c)](_0x80f716);let _0x575a58=this['_injector'][_0x2ddb41(0x1d2)](mn,this[_0x2ddb41(0x25e)],this[_0x2ddb41(0x392)],_0x27665c,this['_handler']);this[_0x2ddb41(0x3df)]();let _0x309c92=new Date()[_0x2ddb41(0x211)](),_0x3452e1=this[_0x2ddb41(0x3b8)]?Math[_0x2ddb41(0x1dc)](this[_0x2ddb41(0x3b8)]-_0x309c92,0x0):this['_getSendChangesetTimeout']();return _0x575a58[_0x2ddb41(0x235)](_0x3452e1),_0x575a58;}throw _0x2ef73e[_0x2ddb41(0x2cd)];}catch(_0x3fb126){return this[_0x2ddb41(0x261)][_0x2ddb41(0x2cd)](_0x3fb126),this[_0x2ddb41(0x13a)](!0x1);}}[_0x19811e(0x33e)](_0x496df3){const _0x55b550=_0x19811e;if(_0x496df3[_0x55b550(0x2fe)]<=this[_0x55b550(0x36b)]())return this;throw Error(_0x55b550(0x1f9));}['onRemoteRej'](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x19811e(0x36a)](){return this;}[_0x19811e(0x2de)](){const _0x4524ce=_0x19811e;return this[_0x4524ce(0x3df)](),this['_injector'][_0x4524ce(0x1d2)](Z,this[_0x4524ce(0x25e)],this[_0x4524ce(0x392)],null,this['_pendingMutations'],this[_0x4524ce(0x151)]);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x235)](_0x5411f2){const _0x46128c=_0x19811e;let _0x11e7ea=_0x5411f2??this[_0x46128c(0x1db)]();this[_0x46128c(0x3b8)]=new Date()['getTime']()+_0x11e7ea,this['_sendingTimer']=setTimeout(()=>{const _0x25c0c2=_0x46128c;this[_0x25c0c2(0x3df)]();let _0x323a08=null;switch(this['type']){case _0x5d23e3['UNIVER_SHEET']:_0x323a08=en(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this['_univerInstanceService'],this[_0x25c0c2(0x271)],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3[_0x25c0c2(0x126)]:_0x323a08=this[_0x25c0c2(0x33f)]['every'](_0x33f7f8=>_0x33f7f8['id']===_0x3a809f['id'])?rn(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this['_revisionService'],this[_0x25c0c2(0x3a4)]):en(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3['UNIVER_SLIDE']:_0x323a08=nn(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this['_revisionService'],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3[_0x25c0c2(0x1f5)]:_0x323a08=tn(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this['_userManagerService']);break;case _0x5d23e3['UNIVER_BOARD']:_0x323a08=en(this[_0x25c0c2(0x33f)],this['unitID'],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3[_0x25c0c2(0x38e)]:_0x323a08=en(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this['_userManagerService']);break;default:throw Error(_0x25c0c2(0x22c)+this[_0x25c0c2(0x392)]+'\x20in\x20_schedule.');}let {changeset:_0x31d7dd,pendingMutations:_0x115f6f}=_0x323a08;this[_0x25c0c2(0x151)][_0x25c0c2(0x221)](_0x31d7dd);let _0x5937fe=_0x115f6f[_0x25c0c2(0x2ab)]?this[_0x25c0c2(0x302)][_0x25c0c2(0x1d2)](Y,this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x392)],_0x31d7dd,_0x115f6f,this['_handler'],void 0x0):this['_injector'][_0x25c0c2(0x1d2)](J,this[_0x25c0c2(0x25e)],this['type'],_0x31d7dd,this['_handler']);_0x5937fe[_0x25c0c2(0x1b1)](),this['_handler'][_0x25c0c2(0x1c1)](this,_0x5937fe);},_0x11e7ea);}[_0x19811e(0x1db)](){const _0x142cc5=_0x19811e;let _0x149707=this['_configService']['getConfig'](R);return(_0x149707==null?void 0x0:_0x149707[_0x142cc5(0x156)])??0x7d0;}['resend'](){const _0x431460=_0x19811e;throw Error(_0x431460(0x3dc));}[_0x19811e(0x3df)](){const _0x18f693=_0x19811e;this[_0x18f693(0x184)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x19811e(0x13a)](_0x5de659){const _0x25b8ee=_0x19811e;return this[_0x25b8ee(0x3df)](),this['_injector'][_0x25b8ee(0x1d2)](X,this[_0x25b8ee(0x25e)],this[_0x25b8ee(0x392)],null,this['_pendingMutations'],this[_0x25b8ee(0x151)],_0x5de659);}};q=mn=H([V(0x4,_0x480e6d(_0x5a91fd)),V(0x5,_0x480e6d(_0x4e5cfb)),V(0x6,_0x480e6d(_0x3e2728)),V(0x7,_0x1ba700),V(0x8,_0xef393c),V(0x9,_0x2477d9),V(0xa,_0x435fb7),V(0xb,_0x4f5fa8),V(0xc,_0x3d966a),V(0xd,_0x1e59a5(U))],q);let J=hn=class extends G{constructor(_0x490b86,_0x1127b0,_0x127cda,_0x778dee,_0x1590d5,_0xc9c1ad,_0x35215c,_0x2747ee,_0x4366eb,_0x294872,_0x2ef59f){const _0x278f38=_0x19811e;super(_0x490b86,_0x1127b0,_0x127cda,[],_0x778dee,_0x35215c,_0x294872,_0xc9c1ad,_0x2ef59f),this['_injector']=_0x1590d5,this['_logService']=_0x2747ee,this[_0x278f38(0x3d8)]=_0x4366eb,z(this,_0x278f38(0x18d),_0x278f38(0x3ad)),z(this,'_resendTimeout',0x0),z(this,_0x278f38(0x1ab),0x0),z(this,_0x278f38(0x3ca),void 0x0),z(this,_0x278f38(0x31a),void 0x0);}[_0x19811e(0x30a)](_0x35df59){const _0x501c35=_0x19811e;this[_0x501c35(0x3df)]();let _0x56d9d3=this[_0x501c35(0x302)][_0x501c35(0x1d2)](Y,this['unitID'],this[_0x501c35(0x392)],this['_awaitingChangeset'],[_0x35df59],this[_0x501c35(0x151)],this[_0x501c35(0x3ca)]);return _0x56d9d3[_0x501c35(0x1b1)](),_0x56d9d3;}['onRemoteChangeset'](_0x2624fd){const _0x1adf11=_0x19811e;if(this[_0x1adf11(0x12d)](_0x2624fd))return this[_0x1adf11(0x3df)](),this[_0x1adf11(0x302)]['createInstance'](Q,this[_0x1adf11(0x25e)],this[_0x1adf11(0x392)],this['_awaitingChangeset'],[],null,[_0x2624fd],this[_0x1adf11(0x151)]);try{let _0x300464=this[_0x1adf11(0x3d8)]['transformChangesets']([_0x2624fd],[this[_0x1adf11(0x21c)]],!0x1);if(_0x3c50a8(_0x300464)){let {c1Prime:_0xc7502,c2Prime:_0x1c7b2a}=_0x300464;this['_executeRemoteChangeset'](_0xc7502[0x0]),_0x1c7b2a[0x0][_0x1adf11(0x24c)]=this['_getCurrentRevision'](),this['_clearScheduledTask']();let _0x2899cf=this[_0x1adf11(0x302)][_0x1adf11(0x1d2)](hn,this['unitID'],this[_0x1adf11(0x392)],_0x1c7b2a[0x0],this[_0x1adf11(0x151)]);return _0x2899cf[_0x1adf11(0x1b1)](),_0x2899cf;}throw _0x300464['error'];}catch(_0x42ed98){return this[_0x1adf11(0x261)][_0x1adf11(0x2cd)](_0x42ed98),this[_0x1adf11(0x13a)](!0x1);}}[_0x19811e(0x33e)](_0x18845b){const _0x4d418f=_0x19811e;this[_0x4d418f(0x3df)]();let _0x199414=this['_revisionService'][_0x4d418f(0x2ea)](this[_0x4d418f(0x25e)]);if(_0x18845b[_0x4d418f(0x2fe)]<=_0x199414)return this;if(this['_checkMissing'](_0x18845b))return this[_0x4d418f(0x302)][_0x4d418f(0x1d2)](Q,this[_0x4d418f(0x25e)],this[_0x4d418f(0x392)],this['_awaitingChangeset'],[],_0x18845b['revision'],[],this[_0x4d418f(0x151)]);this[_0x4d418f(0x323)]();let _0x4f9a19=this[_0x4d418f(0x302)][_0x4d418f(0x1d2)](K,this[_0x4d418f(0x25e)],this[_0x4d418f(0x392)],this[_0x4d418f(0x151)]);return _0x4f9a19['_updateLocalCache'](),_0x4f9a19;}[_0x19811e(0x2d0)](_0x590214){const _0x44bf8a=_0x19811e;return this[_0x44bf8a(0x13a)](!!(_0x590214!=null&&_0x590214[_0x44bf8a(0x2b6)]));}[_0x19811e(0x36a)](_0x4619b2){const _0x4a6e05=_0x19811e;return this['_maxTotalRetryTimeout']>yn?this[_0x4a6e05(0x2de)]():(this[_0x4a6e05(0x3ca)]=pn(this['_resendTimeout'],{'timeout':this[_0x4a6e05(0x21f)],'reqId':_0x4619b2[_0x4a6e05(0x334)]}),this[_0x4a6e05(0x31a)]=this[_0x4a6e05(0x3ca)][_0x4a6e05(0x2c1)](({reqId:_0x3ccede,timeout:_0x4a9f91})=>{const _0x33f33b=_0x4a6e05;this[_0x33f33b(0x16b)](_0x3ccede,_0x4a9f91);}),this);}['toggleOffline'](){const _0x391615=_0x19811e;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Z,this[_0x391615(0x25e)],this[_0x391615(0x392)],this[_0x391615(0x21c)],[],this['_handler']);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x218)](){const _0x190752=_0x19811e;this[_0x190752(0x151)][_0x190752(0x221)](this[_0x190752(0x21c)]);}['_onConflict'](_0x4967a9){const _0x4fcf31=_0x19811e;return this['_clearScheduledTask'](),this[_0x4fcf31(0x302)][_0x4fcf31(0x1d2)](X,this[_0x4fcf31(0x25e)],this[_0x4fcf31(0x392)],this['_awaitingChangeset'],[],this[_0x4fcf31(0x151)],_0x4967a9);}[_0x19811e(0x16b)](_0x39ab1d,_0x4106f5){const _0x17873b=_0x19811e;var _0x59c58d;_0x39ab1d===((_0x59c58d=this[_0x17873b(0x21c)])==null?void 0x0:_0x59c58d[_0x17873b(0x334)])&&(this['resend'](),this[_0x17873b(0x21f)]=_0x4106f5===0x0?0x3e8:Math[_0x17873b(0x134)](_0x4106f5*0x2,vn),this[_0x17873b(0x1ab)]+=this[_0x17873b(0x21f)]);}[_0x19811e(0x3df)](){const _0x2f6942=_0x19811e;var _0x37867c;(_0x37867c=this[_0x2f6942(0x31a)])==null||_0x37867c[_0x2f6942(0x185)](),this[_0x2f6942(0x21f)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=hn=H([V(0x4,_0x480e6d(_0x5a91fd)),V(0x5,_0x480e6d(_0x4e5cfb)),V(0x6,_0xef393c),V(0x7,_0x1ba700),V(0x8,_0x435fb7),V(0x9,_0x3d966a),V(0xa,_0x1e59a5(U))],J);let Y=gn=class extends G{constructor(_0x213b2b,_0x2f5f58,_0x56e822,_0xfbdfbe,_0x259ec0,_0x368b26,_0x4b8e89,_0x3537a8,_0x2c05ce,_0x2e9a99,_0x3dd73a,_0x4c9387,_0x5396b3){const _0x265440=_0x19811e;super(_0x213b2b,_0x2f5f58,_0x56e822,_0xfbdfbe,_0x259ec0,_0x2c05ce,_0x4c9387,_0x3537a8,_0x5396b3),this[_0x265440(0x302)]=_0x4b8e89,this[_0x265440(0x261)]=_0x2e9a99,this['_transformService']=_0x3dd73a,this[_0x265440(0x38c)]=_0x5396b3,z(this,_0x265440(0x18d),_0x265440(0x1ac)),z(this,_0x265440(0x21f),0x0),z(this,_0x265440(0x1ab),0x0),z(this,_0x265440(0x3ca),void 0x0),z(this,_0x265440(0x31a),void 0x0),_0x368b26&&(this[_0x265440(0x3ca)]=_0x368b26,this[_0x265440(0x31a)]=this[_0x265440(0x3ca)]['subscribe'](({reqId:_0x439d23,timeout:_0x4b01b4})=>{this['_resendWithTimeout'](_0x439d23,_0x4b01b4);}));}[_0x19811e(0x30a)](_0x1ea9e4){const _0x143e1b=_0x19811e;return this[_0x143e1b(0x33f)][_0x143e1b(0x335)](_0x1ea9e4),this;}[_0x19811e(0x1dd)](_0x5af09d){const _0x549a1e=_0x19811e;if(this[_0x549a1e(0x12d)](_0x5af09d))return this['_clearScheduledTask'](),this[_0x549a1e(0x302)][_0x549a1e(0x1d2)](Q,this[_0x549a1e(0x25e)],this['type'],this['_awaitingChangeset'],this[_0x549a1e(0x33f)],null,[_0x5af09d],this[_0x549a1e(0x151)]);try{let _0x5c3863=this['_transformService'][_0x549a1e(0x330)]([_0x5af09d],[this['_awaitingChangeset']],!0x1);if(_0x3c50a8(_0x5c3863)){let {c1Prime:_0x334318,c2Prime:_0x44d627}=_0x5c3863,_0x20dff6=this[_0x549a1e(0x3d8)][_0x549a1e(0x19d)](_0x334318[0x0],this[_0x549a1e(0x33f)]);if(_0x13dcd7(_0x20dff6)){let {c1Prime:_0xe8c5e1,m2Prime:_0x4a7a55}=_0x20dff6;return this[_0x549a1e(0x35c)](_0xe8c5e1),_0x44d627[0x0][_0x549a1e(0x24c)]=this[_0x549a1e(0x36b)](),this[_0x549a1e(0x3df)](),this[_0x549a1e(0x302)]['createInstance'](gn,this[_0x549a1e(0x25e)],this[_0x549a1e(0x392)],_0x44d627[0x0],_0x4a7a55,this['_handler'],void 0x0);}throw _0x20dff6[_0x549a1e(0x2cd)];}throw _0x5c3863[_0x549a1e(0x2cd)];}catch(_0x5dc142){return this[_0x549a1e(0x261)][_0x549a1e(0x2cd)](_0x5dc142),this[_0x549a1e(0x13a)](!0x1);}}['onRemoteAck'](_0x2b226a){const _0x51e242=_0x19811e;this['_clearScheduledTask']();let _0x183664=this['_getCurrentRevision']();if(_0x2b226a['revision']<=_0x183664)return this;if(this['_checkMissing'](_0x2b226a))return this[_0x51e242(0x302)]['createInstance'](Q,this[_0x51e242(0x25e)],this[_0x51e242(0x392)],this[_0x51e242(0x21c)],this[_0x51e242(0x33f)],_0x2b226a[_0x51e242(0x2fe)],[],this[_0x51e242(0x151)]);this[_0x51e242(0x323)]();let _0x412120=this[_0x51e242(0x302)][_0x51e242(0x1d2)](q,this[_0x51e242(0x25e)],this[_0x51e242(0x392)],this[_0x51e242(0x33f)],this[_0x51e242(0x151)]);return _0x412120['_schedule'](),_0x412120['_updateLocalCache'](),_0x412120;}['onRemoteRej'](_0x32e6e6){const _0x3fcf14=_0x19811e;return this[_0x3fcf14(0x13a)](!!(_0x32e6e6!=null&&_0x32e6e6[_0x3fcf14(0x2b6)]));}['onRemoteRetry'](_0x295eca){const _0x5ea8bd=_0x19811e;return this[_0x5ea8bd(0x1ab)]>yn?this[_0x5ea8bd(0x2de)]():(this[_0x5ea8bd(0x3ca)]=pn(this[_0x5ea8bd(0x21f)],{'timeout':this[_0x5ea8bd(0x21f)],'reqId':_0x295eca[_0x5ea8bd(0x334)]}),this[_0x5ea8bd(0x31a)]=this[_0x5ea8bd(0x3ca)][_0x5ea8bd(0x2c1)](({reqId:_0x560d0f,timeout:_0x307acc})=>{const _0x499679=_0x5ea8bd;this[_0x499679(0x16b)](_0x560d0f,_0x307acc);}),this);}['toggleOffline'](){const _0x32eb32=_0x19811e;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Z,this[_0x32eb32(0x25e)],this['type'],this[_0x32eb32(0x21c)],this[_0x32eb32(0x33f)],this[_0x32eb32(0x151)]);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x218)](){const _0x15c915=_0x19811e;this[_0x15c915(0x151)][_0x15c915(0x221)](this['_awaitingChangeset']);}[_0x19811e(0x13a)](_0xb25b07){const _0x1d600a=_0x19811e;return this[_0x1d600a(0x3df)](),this[_0x1d600a(0x302)]['createInstance'](X,this[_0x1d600a(0x25e)],this[_0x1d600a(0x392)],null,this[_0x1d600a(0x33f)],this[_0x1d600a(0x151)],_0xb25b07);}[_0x19811e(0x16b)](_0x4e4b05,_0x2f7c4e){const _0x17dee0=_0x19811e;var _0xf76440;_0x4e4b05===((_0xf76440=this[_0x17dee0(0x21c)])==null?void 0x0:_0xf76440['reqId'])&&(this['resend'](),this['_resendTimeout']=_0x2f7c4e===0x0?0x3e8:Math[_0x17dee0(0x134)](_0x2f7c4e*0x2,vn),this[_0x17dee0(0x1ab)]+=this['_resendTimeout']);}[_0x19811e(0x3df)](){const _0x255423=_0x19811e;var _0x43febf;(_0x43febf=this['_sender'])==null||_0x43febf[_0x255423(0x185)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};Y=gn=H([V(0x6,_0x480e6d(_0x5a91fd)),V(0x7,_0x480e6d(_0x4e5cfb)),V(0x8,_0xef393c),V(0x9,_0x1ba700),V(0xa,_0x435fb7),V(0xb,_0x3d966a),V(0xc,_0x1e59a5(U))],Y);let X=class extends G{constructor(_0x37d999,_0x2af230,_0x2b7e6e,_0x214c70,_0x263bc3,_0x4a5d1f=!0x1,_0x4d9da0,_0x15e410,_0x3ccfe0,_0x252e93,_0x3c9802,_0x237006,_0x2d075f){const _0x3f4060=_0x19811e;super(_0x37d999,_0x2af230,_0x2b7e6e,_0x214c70,_0x263bc3,_0x15e410,_0x3ccfe0,_0x252e93,_0x2d075f),this['_isPermissionRej']=_0x4a5d1f,this[_0x3f4060(0x283)]=_0x4d9da0,this[_0x3f4060(0x161)]=_0x3c9802,this[_0x3f4060(0x1af)]=_0x237006,this[_0x3f4060(0x38c)]=_0x2d075f,z(this,_0x3f4060(0x18d),_0x3f4060(0x19c)),this[_0x3f4060(0x3cd)](),this[_0x3f4060(0x260)](),this[_0x3f4060(0x354)]();}[_0x19811e(0x30a)](){return this;}[_0x19811e(0x1dd)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['onRemoteRetry'](){return this;}[_0x19811e(0x2de)](){return this;}[_0x19811e(0x214)](){return this;}['resend'](){const _0x225e6d=_0x19811e;throw Error(_0x225e6d(0x257));}async[_0x19811e(0x354)](){const _0x51196b=_0x19811e;var _0x471caa,_0x3d99c6;await((_0x471caa=this[_0x51196b(0x121)])==null||(_0x3d99c6=_0x471caa['backupOfflineData'])==null?void 0x0:_0x3d99c6['call'](_0x471caa,this[_0x51196b(0x25e)],_0x51196b(0x19c))['catch'](()=>void 0x0));try{var _0x24697a;await((_0x24697a=this['_localCacheService'])==null?void 0x0:_0x24697a['clearOfflineData'](this[_0x51196b(0x25e)]));}catch{this[_0x51196b(0x1af)][_0x51196b(0x24a)]({'id':_0x51196b(0x14c),'unitID':this[_0x51196b(0x25e)]});return;}this[_0x51196b(0x22a)]();}[_0x19811e(0x260)](){const _0x36fc64=_0x19811e;this['_collaborationUIEventService'][_0x36fc64(0x24a)]({'id':_0x36fc64(0x2c8)});}[_0x19811e(0x22a)](){const _0xca6e26=_0x19811e;this['_isPermissionRej']?this[_0xca6e26(0x1af)][_0xca6e26(0x24a)]({'id':_0xca6e26(0x30e)}):this[_0xca6e26(0x1af)][_0xca6e26(0x24a)]({'id':_0xca6e26(0x21d)});}['_disableEditing'](){const _0x2fbb96=_0x19811e;this[_0x2fbb96(0x283)][_0x2fbb96(0x3d1)](new _0x404767(this[_0x2fbb96(0x25e)])['id'],!0x1);}};X=H([V(0x6,_0x480e6d(_0x2197a8)),V(0x7,_0xef393c),V(0x8,_0x3d966a),V(0x9,_0x480e6d(_0x4e5cfb)),V(0xa,_0x480e6d(_0x1e8fb8)),V(0xb,_0x480e6d(B)),V(0xc,_0x1e59a5(U))],X);let Z=class extends G{constructor(_0xc510c3,_0x2c5c07,_0x5cf2b3,_0x4b77f9,_0x457197,_0x5cfaa4,_0x4572e5,_0x9779c2,_0x498cde,_0x4c35f3){const _0x2e4c7f=_0x19811e;super(_0xc510c3,_0x2c5c07,_0x5cf2b3,_0x4b77f9,_0x457197,_0x9779c2,_0x498cde,_0x4572e5,_0x4c35f3),this[_0x2e4c7f(0x302)]=_0x5cfaa4,z(this,_0x2e4c7f(0x18d),'offline');}[_0x19811e(0x30a)](_0x4aae89){const _0x4e839a=_0x19811e;return this[_0x4e839a(0x33f)][_0x4e839a(0x335)](_0x4aae89),this[_0x4e839a(0x1b1)](),this;}[_0x19811e(0x1dd)](_0x33ed9a){const _0x5958aa=_0x19811e;throw Error(_0x5958aa(0x290));}[_0x19811e(0x33e)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x19811e(0x2d0)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x19811e(0x36a)](){return this;}['toggleOffline'](){return this;}[_0x19811e(0x214)](){let {_injector:_0x42a271,_pendingMutations:_0x39d501,_awaitingChangeset:_0x1b7dc3,unitID:_0x269b2c,_handler:_0x4d4109,type:_0x2e2cbe}=this,_0x3d77eb=bn(_0x42a271,_0x269b2c,_0x2e2cbe,_0x1b7dc3,_0x39d501,_0x4d4109);return _0x3d77eb instanceof q?_0x3d77eb['_schedule']():(_0x3d77eb instanceof Y||_0x3d77eb instanceof J)&&_0x3d77eb['resend'](),_0x3d77eb;}[_0x19811e(0x218)](){const _0x1a126e=_0x19811e;throw Error(_0x1a126e(0x3ac));}};Z=H([V(0x5,_0x480e6d(_0x5a91fd)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0xef393c),V(0x8,_0x3d966a),V(0x9,_0x1e59a5(U))],Z);let Q=class extends G{constructor(_0x2b00a8,_0x259dfd,_0x59e137,_0x49aff8,_0x3a79fd,_0x20acbd,_0xeda8c7,_0x5c278e,_0x6779f1,_0x22c864,_0xa1a99d,_0x179703,_0x568215,_0x1195f3){const _0x4c69f9=_0x19811e;super(_0x2b00a8,_0x259dfd,_0x59e137,_0x49aff8,_0xeda8c7,_0xa1a99d,_0x179703,_0x6779f1,_0x1195f3),this[_0x4c69f9(0x1e6)]=_0x3a79fd,this['_queuedRemoteChangesets']=_0x20acbd,this[_0x4c69f9(0x302)]=_0x5c278e,this[_0x4c69f9(0x261)]=_0x22c864,this['_transformService']=_0x568215,this[_0x4c69f9(0x38c)]=_0x1195f3,z(this,_0x4c69f9(0x18d),_0x4c69f9(0x2fd));}[_0x19811e(0x22d)](_0x12b4b5){const _0x4b4be2=_0x19811e;try{if(this['_handleRemoteChangesets'](_0x12b4b5)['missingChangesets'])throw Error(_0x4b4be2(0x30b));if(this[_0x4b4be2(0x3d6)]([...this['_queuedRemoteChangesets']][_0x4b4be2(0x2a8)]((_0x55eea3,_0x1acda6)=>_0x55eea3[_0x4b4be2(0x2fe)]-_0x1acda6['revision']))[_0x4b4be2(0x1d5)])return this['_queuedRemoteChangesets']=[],this[_0x4b4be2(0x1b1)](),this[_0x4b4be2(0x151)][_0x4b4be2(0x3db)]({'from':this[_0x4b4be2(0x36b)](),'to':0x0}),this;let _0x515dac=this[_0x4b4be2(0x21c)],_0x4f6e04=this['_pendingMutations'],_0x1940fc;if(_0x515dac&&_0x4f6e04[_0x4b4be2(0x2ab)]!==0x0)_0x1940fc=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](Y,this['unitID'],this[_0x4b4be2(0x392)],_0x515dac,_0x4f6e04,this[_0x4b4be2(0x151)],void 0x0);else{if(_0x515dac&&_0x4f6e04['length']===0x0)_0x515dac['baseRev']=this[_0x4b4be2(0x36b)](),_0x1940fc=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](J,this[_0x4b4be2(0x25e)],this[_0x4b4be2(0x392)],_0x515dac,this['_handler']);else{if(_0x4f6e04[_0x4b4be2(0x2ab)]!==0x0){let _0x576f7b=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](q,this['unitID'],this[_0x4b4be2(0x392)],_0x4f6e04,this[_0x4b4be2(0x151)]);_0x576f7b['_schedule'](),_0x1940fc=_0x576f7b;}else _0x1940fc=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](K,this['unitID'],this[_0x4b4be2(0x392)],this['_handler']);}}return _0x1940fc[_0x4b4be2(0x1b1)](),_0x1940fc;}catch(_0x4af068){return this[_0x4b4be2(0x261)][_0x4b4be2(0x2cd)]('[FetchMissState]',_0x4b4be2(0x1fa),_0x4af068),this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](X,this['unitID'],this['type'],this[_0x4b4be2(0x21c)],this['_pendingMutations'],this[_0x4b4be2(0x151)],!0x1);}}[_0x19811e(0x3d6)](_0x30d2ba){const _0x183949=_0x19811e;this['_acknowledgeAwaitingIfReady']();for(let _0x27b005=0x0;_0x27b005<_0x30d2ba['length'];_0x27b005++){let _0x26e1cb=_0x30d2ba[_0x27b005],_0x8cd192=this['_getCurrentRevision']();if(!(_0x26e1cb[_0x183949(0x2fe)]<=_0x8cd192)){if(_0x26e1cb[_0x183949(0x2fe)]>_0x8cd192+0x1)return{'missingChangesets':!0x0};if(this[_0x183949(0x168)](_0x26e1cb)){this['_acknowledgeAwaiting']();continue;}this[_0x183949(0x292)](_0x26e1cb),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x19811e(0x292)](_0x7ddd86){const _0x383d01=_0x19811e;let _0x4c3fb8=_0x7ddd86,_0x370ef4=this[_0x383d01(0x21c)];if(_0x370ef4){let _0x4117ef=this['_transformService'][_0x383d01(0x330)]([_0x7ddd86],[_0x370ef4],!0x1);if(!_0x3c50a8(_0x4117ef))throw _0x4117ef[_0x383d01(0x2cd)];_0x4c3fb8=_0x4117ef[_0x383d01(0x3a7)][0x0],_0x370ef4=_0x4117ef['c2Prime'][0x0];}let _0x21dd03=this['_pendingMutations'];if(_0x21dd03[_0x383d01(0x2ab)]){let _0x21d914=this[_0x383d01(0x3d8)][_0x383d01(0x19d)](_0x4c3fb8,_0x21dd03);if(!_0x13dcd7(_0x21d914))throw _0x21d914[_0x383d01(0x2cd)];_0x4c3fb8=_0x21d914['c1Prime'],_0x21dd03=_0x21d914[_0x383d01(0x2ba)];}this['_executeRemoteChangeset'](_0x4c3fb8),_0x370ef4&&(_0x370ef4['baseRev']=this[_0x383d01(0x36b)]()),this[_0x383d01(0x21c)]=_0x370ef4,this[_0x383d01(0x33f)]=_0x21dd03;}[_0x19811e(0x196)](){const _0x4391cb=_0x19811e;if(!this[_0x4391cb(0x21c)]||this[_0x4391cb(0x1e6)]==null)return;let _0x35a493=this[_0x4391cb(0x36b)]();if(this[_0x4391cb(0x1e6)]<=_0x35a493)throw Error(_0x4391cb(0x3e0)+this[_0x4391cb(0x1e6)]+'.');this['_acknowledgedAwaitingRevision']===_0x35a493+0x1&&this[_0x4391cb(0x275)]();}['_acknowledgeAwaiting'](){const _0x2fcc4e=_0x19811e;this[_0x2fcc4e(0x323)](),this[_0x2fcc4e(0x21c)]=null,this[_0x2fcc4e(0x1e6)]=null;}[_0x19811e(0x168)](_0x39f0bb){const _0x1e2236=_0x19811e;let _0x8eb3eb=this[_0x1e2236(0x21c)];return!_0x8eb3eb||!_0x8eb3eb['sid']||_0x8eb3eb[_0x1e2236(0x334)]===null||_0x8eb3eb[_0x1e2236(0x334)]===void 0x0?!0x1:_0x39f0bb[_0x1e2236(0x25e)]===_0x8eb3eb[_0x1e2236(0x25e)]&&_0x39f0bb['sid']===_0x8eb3eb[_0x1e2236(0x22f)]&&_0x39f0bb[_0x1e2236(0x334)]===_0x8eb3eb['reqId'];}[_0x19811e(0x218)](){const _0x4279e0=_0x19811e;throw Error(_0x4279e0(0x2d5));}[_0x19811e(0x30a)](_0x56854d){const _0x17f981=_0x19811e;return this[_0x17f981(0x33f)][_0x17f981(0x335)](_0x56854d),this;}[_0x19811e(0x1dd)](_0x4c24c1){const _0x30e51d=_0x19811e;return this[_0x30e51d(0x12e)]['push'](_0x4c24c1),this;}[_0x19811e(0x33e)](_0x4b4ecb){const _0x218e09=_0x19811e;if(this['_awaitingChangeset']){let _0x4611b1=this[_0x218e09(0x36b)]();return _0x4b4ecb['revision']<=_0x4611b1||(_0x4611b1+0x1===_0x4b4ecb[_0x218e09(0x2fe)]?(this['_incrementRevisionNumber'](),this[_0x218e09(0x21c)]=null,this[_0x218e09(0x1e6)]=null):this[_0x218e09(0x1e6)]=_0x4b4ecb[_0x218e09(0x2fe)]),this;}if(_0x4b4ecb[_0x218e09(0x2fe)]<=this['_getCurrentRevision']())return this;throw Error(_0x218e09(0x1b3));}[_0x19811e(0x2d0)](_0x4f4aa7){const _0x3cdfa5=_0x19811e;return this[_0x3cdfa5(0x13a)](!!(_0x4f4aa7!=null&&_0x4f4aa7[_0x3cdfa5(0x2b6)]));}['onRemoteRetry'](){return this;}[_0x19811e(0x2de)](){const _0x174254=_0x19811e;return this['_injector'][_0x174254(0x1d2)](Z,this[_0x174254(0x25e)],this['type'],this[_0x174254(0x21c)],this[_0x174254(0x33f)],this[_0x174254(0x151)]);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x13a)](_0x1da4be){const _0x3e1672=_0x19811e;return this[_0x3e1672(0x302)][_0x3e1672(0x1d2)](X,this[_0x3e1672(0x25e)],this['type'],this[_0x3e1672(0x21c)],this['_pendingMutations'],this[_0x3e1672(0x151)],_0x1da4be);}};Q=H([V(0x7,_0x480e6d(_0x5a91fd)),V(0x8,_0x480e6d(_0x4e5cfb)),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x3d966a),V(0xc,_0x435fb7),V(0xd,_0x1e59a5(U))],Q);function bn(_0x48dd92,_0x51fda6,_0x4dc8bc,_0x1e8b81,_0x2c0f5f,_0x580afa){const _0x3d2a7d=_0x19811e;return _0x1e8b81&&_0x2c0f5f[_0x3d2a7d(0x2ab)]?_0x48dd92[_0x3d2a7d(0x1d2)](Y,_0x51fda6,_0x4dc8bc,_0x1e8b81,_0x2c0f5f,_0x580afa,void 0x0):_0x1e8b81?_0x48dd92[_0x3d2a7d(0x1d2)](J,_0x51fda6,_0x4dc8bc,_0x1e8b81,_0x580afa):_0x2c0f5f[_0x3d2a7d(0x2ab)]?_0x48dd92[_0x3d2a7d(0x1d2)](q,_0x51fda6,_0x4dc8bc,_0x2c0f5f,_0x580afa):_0x48dd92[_0x3d2a7d(0x1d2)](K,_0x51fda6,_0x4dc8bc,_0x580afa);}let $=class extends _0x39685b{get[_0x19811e(0x195)](){const _0x194581=_0x19811e;return this[_0x194581(0x301)];}constructor(_0x3d00bb,_0x348ca5,_0x37ef58,_0x57e82f,_0xe5b284,_0x37bf29,_0x388e77,_0x48d300,_0x26a23d,_0x40f26b,_0x16fa17,_0x4fceaa,_0x1df4e2,_0xc9e364){const _0xfc6731=_0x19811e;super(),this['unitID']=_0x3d00bb,this[_0xfc6731(0x23c)]=_0x348ca5,this['_type']=_0x37ef58,this[_0xfc6731(0x302)]=_0x57e82f,this[_0xfc6731(0x20d)]=_0xe5b284,this['_localeService']=_0x37bf29,this['_revisionService']=_0x388e77,this[_0xfc6731(0x373)]=_0x48d300,this[_0xfc6731(0x2e7)]=_0x26a23d,this[_0xfc6731(0x261)]=_0x40f26b,this[_0xfc6731(0x3aa)]=_0x16fa17,this[_0xfc6731(0x283)]=_0x4fceaa,this[_0xfc6731(0x399)]=_0x1df4e2,this[_0xfc6731(0x121)]=_0xc9e364,z(this,_0xfc6731(0x314),new _0x5d64e7(null)),z(this,_0xfc6731(0x2a4),this[_0xfc6731(0x314)]['asObservable']()),z(this,'_state',void 0x0),z(this,'_collaborationPaused',!0x1),z(this,_0xfc6731(0x1e8),''),z(this,_0xfc6731(0x1fc),0x0),z(this,'status$',this[_0xfc6731(0x2a4)][_0xfc6731(0x273)](_0x5f1f30(_0x4c424d=>_0x4c424d?_0x4c424d[_0xfc6731(0x18d)]:_0xfc6731(0x192)),_0x34e70e({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0xfc6731(0x1bf),!0x1),z(this,_0xfc6731(0x37b),[]);}async[_0x19811e(0x26e)](){const _0xdcf2b2=_0x19811e;if(this['state'])throw Error(_0xdcf2b2(0x26d));await this[_0xdcf2b2(0x28f)]();}[_0x19811e(0x281)](){const _0x5e766b=_0x19811e;return this[_0x5e766b(0x163)]=!0x0,_0x215dfb(()=>{const _0x54c6b4=_0x5e766b;this[_0x54c6b4(0x163)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x19811e(0x147)](_0x3c867a){const _0x2ebcdf=_0x19811e;this[_0x2ebcdf(0x226)](_0x3c867a);}['_updateState'](_0x48cb92){const _0x1f93d7=_0x19811e;this[_0x1f93d7(0x301)]=_0x48cb92,this[_0x1f93d7(0x314)][_0x1f93d7(0x2d6)](_0x48cb92);}async[_0x19811e(0x28f)](){const _0x2228fe=_0x19811e;if(this[_0x2228fe(0x1e2)](await this[_0x2228fe(0x2d3)]()),this[_0x2228fe(0x399)]){var _0x369055;(_0x369055=this['_singleActiveUnitService'])==null||_0x369055[_0x2228fe(0x1e5)](this[_0x2228fe(0x25e)]),this[_0x2228fe(0x34b)](this[_0x2228fe(0x399)][_0x2228fe(0x2a0)](this[_0x2228fe(0x25e)])[_0x2228fe(0x2c1)](_0x32a647=>{const _0x2390a0=_0x2228fe;this['_logService']['debug'](_0x2390a0(0x3b6),_0x2390a0(0x355),_0x32a647),_0x32a647===0x1?(this[_0x2390a0(0x373)]['emitEvent']({'id':_0x2390a0(0x190)}),this['_permissionService'][_0x2390a0(0x3d1)](new _0x404767(this[_0x2390a0(0x25e)])['id'],!0x1),this[_0x2390a0(0x283)][_0x2390a0(0x363)](!0x1)):(this[_0x2390a0(0x283)][_0x2390a0(0x3d1)](new _0x404767(this[_0x2390a0(0x25e)])['id'],!0x0),this[_0x2390a0(0x283)][_0x2390a0(0x363)](!0x0));}));}let _0x312cff=!0x1;return this[_0x2228fe(0x34b)](this[_0x2228fe(0x23c)][_0x2228fe(0x3a5)][_0x2228fe(0x2c1)](_0x32d403=>{_0x32d403===0x3?this['_toggleOnline'](_0x312cff):_0x32d403===0x2&&(_0x312cff=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x2228fe(0x23c)][_0x2228fe(0x360)][_0x2228fe(0x2c1)](_0x5d44d3=>{const _0x3aeda6=_0x2228fe;try{switch(_0x5d44d3['eventID']){case _0x27a7e8[_0x3aeda6(0x398)]:this[_0x3aeda6(0x297)](_0x52ab46(_0x5d44d3[_0x3aeda6(0x202)]));break;case _0x27a7e8[_0x3aeda6(0x203)]:this[_0x3aeda6(0x245)](_0x5d44d3['data']);break;case _0x27a7e8[_0x3aeda6(0x265)]:this['_onRemoteRejected']();break;case _0x27a7e8['CHANGESET_SHOULD_RETRY']:this[_0x3aeda6(0x376)](_0x5d44d3[_0x3aeda6(0x202)]);break;case _0x27a7e8[_0x3aeda6(0x26c)]:this['_onFetchMissResult'](_0x5d44d3[_0x3aeda6(0x202)][_0x3aeda6(0x188)][_0x3aeda6(0x1a3)](_0xed743=>_0x52ab46(_0xed743)));break;case _0x27a7e8[_0x3aeda6(0x336)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x27a7e8[_0x3aeda6(0x288)]:}}catch(_0x22a32e){throw console[_0x3aeda6(0x2cd)](_0x3aeda6(0x390),_0x22a32e),_0x22a32e;}})),this[_0x2228fe(0x301)];}[_0x19811e(0x176)](){this['_transitionLocked']=!0x1;}[_0x19811e(0x150)](){const _0x107ddc=_0x19811e;if(this[_0x107ddc(0x1bf)])throw Error(_0x107ddc(0x1f0));this[_0x107ddc(0x1bf)]=!0x0;}[_0x19811e(0x226)](_0x39cbff){const _0x3f1e47=_0x19811e;this[_0x3f1e47(0x150)](),this[_0x3f1e47(0x1e2)](this[_0x3f1e47(0x301)]['appendMutation'](_0x39cbff)),this[_0x3f1e47(0x176)]();}[_0x19811e(0x297)](_0x4ad6d3){const _0x3e4162=_0x19811e;if(!(_0x4ad6d3[_0x3e4162(0x2fe)]<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x3e4162(0x25e)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x4ad6d3);return;}this[_0x3e4162(0x13e)](_0x4ad6d3);}}['_exhaustRemoteChangesetQueue'](){const _0x5c33c9=_0x19811e;this['_remoteChangesetQueue'][_0x5c33c9(0x332)](_0x21e4c4=>this[_0x5c33c9(0x13e)](_0x21e4c4)),this[_0x5c33c9(0x37b)]=[];}['_applyRemoteChangeset'](_0x4540d4){const _0x18e9c3=_0x19811e;let _0x3b1a69=this[_0x18e9c3(0x20d)]['interceptor'][_0x18e9c3(0x32b)](this['_compressMutationService'][_0x18e9c3(0x352)][_0x18e9c3(0x14d)]()[_0x18e9c3(0x381)])(_0x4540d4[_0x18e9c3(0x16e)],null)||_0x4540d4[_0x18e9c3(0x16e)],_0x31f921={..._0x4540d4,'mutations':_0x3b1a69};this[_0x18e9c3(0x150)](),this[_0x18e9c3(0x1e2)](this[_0x18e9c3(0x301)][_0x18e9c3(0x1dd)](_0x31f921)),this[_0x18e9c3(0x176)]();}[_0x19811e(0x245)](_0x344ce3){const _0x4033fb=_0x19811e;this[_0x4033fb(0x150)](),this[_0x4033fb(0x1e2)](this[_0x4033fb(0x301)][_0x4033fb(0x33e)](_0x344ce3)),this['_unlockTransition']();}['_onRemoteRejected'](_0x62eae){const _0xf049b0=_0x19811e;this[_0xf049b0(0x150)](),this[_0xf049b0(0x1e2)](this['_state'][_0xf049b0(0x2d0)](_0x62eae)),this[_0xf049b0(0x176)]();}['_onRemoteRetry'](_0xba3f71){const _0x447530=_0x19811e;this['_lockTransition'](),this[_0x447530(0x1e2)](this[_0x447530(0x301)]['onRemoteRetry'](_0xba3f71)),this[_0x447530(0x176)]();}['_onFetchMissResult'](_0x400469){const _0x3bac32=_0x19811e;if(!(this[_0x3bac32(0x301)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x296dc8=_0x400469[_0x3bac32(0x1a3)](_0x285c44=>{const _0x2b0fc4=_0x3bac32;let _0x609393=this[_0x2b0fc4(0x20d)][_0x2b0fc4(0x352)][_0x2b0fc4(0x32b)](this[_0x2b0fc4(0x20d)][_0x2b0fc4(0x352)][_0x2b0fc4(0x14d)]()[_0x2b0fc4(0x381)])(_0x285c44['mutations'],null)||_0x285c44['mutations'];return{..._0x285c44,'mutations':_0x609393};});this[_0x3bac32(0x150)](),this[_0x3bac32(0x1e2)](this[_0x3bac32(0x301)][_0x3bac32(0x22d)](_0x296dc8)),this['_unlockTransition']();}['_toggleOffline'](){const _0x36f696=_0x19811e;this[_0x36f696(0x150)](),this[_0x36f696(0x1e2)](this[_0x36f696(0x301)][_0x36f696(0x2de)]()),this[_0x36f696(0x176)]();}['_toggleOnline'](_0x179868=!0x1){const _0x3a9e62=_0x19811e;this['_lockTransition'](),this['_updateState'](this[_0x3a9e62(0x301)][_0x3a9e62(0x214)]()),this[_0x3a9e62(0x176)]();let _0x53bfd9=this['_state'];_0x179868&&_0x53bfd9 instanceof K&&(this[_0x3a9e62(0x150)](),this[_0x3a9e62(0x1e2)](_0x53bfd9[_0x3a9e62(0x159)]()),this['_unlockTransition']());}async[_0x19811e(0x2d3)](){return new Promise(_0x663f20=>{const _0x64ca0b=_0x32e6;this[_0x64ca0b(0x23c)][_0x64ca0b(0x3a5)][_0x64ca0b(0x273)](_0x5c55cb(0x1))[_0x64ca0b(0x2c1)](async _0x741457=>{const _0x3d33f3=_0x64ca0b;_0x663f20(await this[_0x3d33f3(0x12b)](_0x741457===0x3));});});}['_createHandler'](){const _0x16ce72=_0x19811e;let _0x1dfe1b=this[_0x16ce72(0x25e)];return{'onStateChange':(_0x5d0e97,_0x1ac306)=>{const _0x241dc6=_0x16ce72;if(_0x5d0e97!==this[_0x241dc6(0x301)])throw Error(_0x241dc6(0x317)+_0x5d0e97[_0x241dc6(0x18d)]+'\x0aAfter:\x20'+_0x1ac306[_0x241dc6(0x18d)]+'\x0aCurrent:\x20'+this[_0x241dc6(0x301)][_0x241dc6(0x18d)]);this[_0x241dc6(0x1e2)](_0x1ac306);},'onSendChangeset':_0x24743e=>{const _0x13a6b3=_0x16ce72;_0x24743e[_0x13a6b3(0x22f)]||(_0x24743e[_0x13a6b3(0x22f)]=this[_0x13a6b3(0x1e8)],_0x24743e[_0x13a6b3(0x334)]=++this['_changesetReqId']);let _0x23416d={'eventID':_0x27a7e8[_0x13a6b3(0x1f6)],'data':{'unitID':_0x24743e[_0x13a6b3(0x25e)],'unitType':this[_0x13a6b3(0x27b)],'changeset':_0x24743e,'memberID':this['session'][_0x13a6b3(0x350)]()}};this[_0x13a6b3(0x23c)][_0x13a6b3(0x173)](_0x23416d,this[_0x13a6b3(0x25e)]);},'onMissingChangesets':({from:_0x431e4b,to:_0x3f5a7b})=>{const _0x4dbc24=_0x16ce72;this['_logService'][_0x4dbc24(0x1d1)]('[CollaborationEntity]',_0x4dbc24(0x27d)+_0x431e4b+_0x4dbc24(0x304)+_0x3f5a7b);let _0x36f84e={'eventID':_0x27a7e8[_0x4dbc24(0x39b)],'data':{'unitID':_0x1dfe1b,'unitType':this[_0x4dbc24(0x27b)],'from':_0x431e4b,'to':_0x3f5a7b}};this[_0x4dbc24(0x23c)][_0x4dbc24(0x173)](_0x36f84e,this[_0x4dbc24(0x25e)]);}};}async['_createInitialStateImpl'](_0x6ee127){const _0x392c02=_0x19811e;var _0x5e033e;let _0x72c599=await((_0x5e033e=this[_0x392c02(0x121)])==null?void 0x0:_0x5e033e[_0x392c02(0x152)](this['unitID'])),_0xb7a472=(_0x72c599==null?void 0x0:_0x72c599[_0x392c02(0x16e)])??[],_0x52c585=(_0x72c599==null?void 0x0:_0x72c599['awaitingChangeset'])??null,_0x274596=!!(_0x52c585!=null&&_0x52c585['sid'])&&!!(_0x52c585!=null&&_0x52c585['reqId']);this[_0x392c02(0x1e8)]=_0x274596?_0x52c585['sid']:_0x640bce(),this[_0x392c02(0x1fc)]=_0x274596?_0x52c585['reqId']:0x0;let _0x16fff4=this[_0x392c02(0x25e)];try{this['_replayCachedMutations'](_0x52c585,_0xb7a472);}catch(_0x28b581){this['_logService'][_0x392c02(0x2cd)](_0x28b581);}let _0x53011a=this[_0x392c02(0x36f)]();if(_0x6ee127){let _0x2d7b03=bn(this[_0x392c02(0x302)],_0x16fff4,this[_0x392c02(0x27b)],_0x52c585,_0xb7a472,_0x53011a);return _0x2d7b03 instanceof q?_0x2d7b03[_0x392c02(0x235)]():(_0x2d7b03 instanceof Y||_0x2d7b03 instanceof J)&&_0x2d7b03['resend'](),_0x2d7b03;}return this[_0x392c02(0x302)]['createInstance'](Z,_0x16fff4,this[_0x392c02(0x27b)],_0x52c585,_0xb7a472,_0x53011a);}[_0x19811e(0x3d2)](_0x410c66,_0x2e5edc){const _0x341c2d=_0x19811e;var _0x9e1cbc,_0x4adf88;let _0x4f15a5=this[_0x341c2d(0x20d)][_0x341c2d(0x352)][_0x341c2d(0x32b)](this['_compressMutationService'][_0x341c2d(0x352)]['getInterceptPoints']()[_0x341c2d(0x381)]);(_0x9e1cbc=_0x4f15a5((_0x410c66==null?void 0x0:_0x410c66[_0x341c2d(0x16e)])||[],null))==null||_0x9e1cbc[_0x341c2d(0x332)](_0xc77130=>this[_0x341c2d(0x3aa)]['executeCommand'](_0xc77130['id'],_0xc77130[_0x341c2d(0x359)])),(_0x4adf88=_0x4f15a5(_0x2e5edc||[],null))==null||_0x4adf88[_0x341c2d(0x332)](_0x4463=>this['_commandService'][_0x341c2d(0x144)](_0x4463['id'],_0x4463[_0x341c2d(0x359)]));}};$=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],$);let xn=class extends ${constructor(_0x43d29c,_0x40c788,_0x33eeda,_0x1084c6,_0x195b83,_0x5b24bc,_0x266b88,_0x5611b8,_0x27b102,_0x25e281,_0x51a953,_0x2c6b5a,_0x383374,_0x581db7,_0x448e06){const _0x531e2e=_0x19811e;super(_0x43d29c,_0x33eeda,_0x40c788,_0x1084c6,_0x195b83,_0x5b24bc,_0x266b88,_0x5611b8,_0x27b102,_0x25e281,_0x51a953,_0x2c6b5a,_0x581db7,_0x448e06),this[_0x531e2e(0x25e)]=_0x43d29c,this[_0x531e2e(0x392)]=_0x40c788,this[_0x531e2e(0x338)]=_0x383374,z(this,_0x531e2e(0x1cb),null);}[_0x19811e(0x3d0)](_0x59ec6d){const _0x340091=_0x19811e;this[_0x340091(0x1cb)]=_0x59ec6d;}[_0x19811e(0x194)](){const _0x733e51=_0x19811e;this[_0x733e51(0x1cb)]=null,super[_0x733e51(0x194)]();}['_createHandler'](){const _0x47363e=_0x19811e;let _0x36d6af=super[_0x47363e(0x36f)]();return _0x36d6af[_0x47363e(0x24b)]=_0x3e175f=>{const _0x41d595=_0x47363e;var _0x700d27,_0x1937c1;return(_0x700d27=this['_handlerCallback'])==null||(_0x1937c1=_0x700d27[_0x41d595(0x24b)])==null?void 0x0:_0x1937c1[_0x41d595(0x167)](_0x700d27,_0x3e175f);},_0x36d6af[_0x47363e(0x2ac)]=_0x2156f8=>{const _0x4d8533=_0x47363e;var _0xb86dab,_0x175fbe;return(_0xb86dab=this[_0x4d8533(0x1cb)])==null||(_0x175fbe=_0xb86dab[_0x4d8533(0x2ac)])==null?void 0x0:_0x175fbe['call'](_0xb86dab,_0x2156f8);},_0x36d6af[_0x47363e(0x138)]=_0x5f22a8=>{const _0x588d29=_0x47363e;var _0x4449be,_0x380f9f;return((_0x4449be=this['_handlerCallback'])==null||(_0x380f9f=_0x4449be[_0x588d29(0x138)])==null?void 0x0:_0x380f9f[_0x588d29(0x167)](_0x4449be,_0x5f22a8))??null;},_0x36d6af[_0x47363e(0x287)]=_0x1047b0=>{const _0x3c5f57=_0x47363e;var _0x507137,_0x16ecdb;return(_0x507137=this[_0x3c5f57(0x1cb)])==null||(_0x16ecdb=_0x507137[_0x3c5f57(0x287)])==null?void 0x0:_0x16ecdb[_0x3c5f57(0x167)](_0x507137,_0x1047b0);},_0x36d6af['onSyncEditingCollabCursor']=_0x2a2823=>{const _0x526479=_0x47363e;var _0x51e35e,_0x41404d;return(_0x51e35e=this[_0x526479(0x1cb)])==null||(_0x41404d=_0x51e35e[_0x526479(0x36e)])==null?void 0x0:_0x41404d[_0x526479(0x167)](_0x51e35e,_0x2a2823);},_0x36d6af['onTransformRemoteChangesetByIMECache']=_0x25b45e=>{const _0x558131=_0x47363e;var _0x4e513e,_0x1bceb1;return((_0x4e513e=this[_0x558131(0x1cb)])==null||(_0x1bceb1=_0x4e513e[_0x558131(0x258)])==null?void 0x0:_0x1bceb1['call'](_0x4e513e,_0x25b45e))??_0x25b45e;},_0x36d6af[_0x47363e(0x31b)]=_0xf9a4b=>{const _0x4d823f=_0x47363e;var _0x1376bb,_0x29a3d7;return((_0x1376bb=this[_0x4d823f(0x1cb)])==null||(_0x29a3d7=_0x1376bb['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x29a3d7['call'](_0x1376bb,_0xf9a4b))??_0xf9a4b;},_0x36d6af;}async['_init'](){const _0x12c5e4=_0x19811e;let _0x19f52b=await super[_0x12c5e4(0x28f)]();return this[_0x12c5e4(0x34b)](this['_docStateChangeManagerService']['docStateChange$'][_0x12c5e4(0x2c1)](_0x452a3e=>{const _0x4ab3c9=_0x12c5e4;if(_0x452a3e==null||_0x452a3e[_0x4ab3c9(0x22b)]!==this[_0x4ab3c9(0x25e)])return;let {commandId:_0x388292,redoState:_0x81afe5,unitId:_0x3077c7}=_0x452a3e,_0x13b00f={'id':_0x388292,'type':_0x40fa30['MUTATION'],'params':{'unitId':_0x3077c7,'actions':_0x81afe5[_0x4ab3c9(0x303)],'textRanges':null}};this['_onLocalMutation'](_0x13b00f);})),this[_0x12c5e4(0x34b)](this[_0x12c5e4(0x3aa)][_0x12c5e4(0x142)]((_0x39d6da,_0x55ca65)=>{const _0x248662=_0x12c5e4;if(_0x39d6da[_0x248662(0x392)]!==_0x40fa30[_0x248662(0x24f)]||_0x55ca65!=null&&_0x55ca65[_0x248662(0x1f2)]||_0x55ca65!=null&&_0x55ca65[_0x248662(0x3cb)]||_0x39d6da['id']===_0x3a809f['id'])return;let _0x56ad6e=_0x39d6da[_0x248662(0x359)];if((_0x56ad6e==null?void 0x0:_0x56ad6e[_0x248662(0x22b)])!==this[_0x248662(0x25e)])return;let _0x29076d=_0x39d6da,_0x69c8b3=this[_0x248662(0x20d)][_0x248662(0x352)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x248662(0x14d)]()['COMPRESS_MUTATION_SEND'])([_0x29076d],this[_0x248662(0x2e7)])||[_0x29076d];this['_onLocalMutation'](_0x69c8b3[0x0]);})),_0x19f52b;}};xn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x480e6d(_0x17b259)),V(0xd,_0x1e59a5(W)),V(0xe,_0x1e59a5(U))],xn);let Sn=class extends ${constructor(_0x20f01c,_0x1fface,_0x2312ce,_0x281d22,_0x1f305d,_0x135d6b,_0x4b7ede,_0x33456f,_0x8098ff,_0x1b5f49,_0x34e79d,_0x287976,_0x214443,_0x10fc52){const _0x5ef55f=_0x19811e;super(_0x20f01c,_0x2312ce,_0x1fface,_0x281d22,_0x1f305d,_0x135d6b,_0x4b7ede,_0x33456f,_0x8098ff,_0x1b5f49,_0x34e79d,_0x287976,_0x214443,_0x10fc52),this[_0x5ef55f(0x25e)]=_0x20f01c,this['type']=_0x1fface;}async['_init'](){const _0x183ac3=_0x19811e;let _0x302a39=await super[_0x183ac3(0x28f)]();return this[_0x183ac3(0x34b)](this['_commandService'][_0x183ac3(0x142)]((_0x5b0d08,_0x1064aa)=>{const _0x593b47=_0x183ac3;if(_0x5b0d08[_0x593b47(0x392)]!==_0x40fa30[_0x593b47(0x24f)]||_0x1064aa!=null&&_0x1064aa['fromCollab']||_0x1064aa!=null&&_0x1064aa[_0x593b47(0x3cb)])return;let _0x11daea=_0x5b0d08[_0x593b47(0x359)];if((_0x11daea==null?void 0x0:_0x11daea[_0x593b47(0x22b)])!==this[_0x593b47(0x25e)])return;let _0x52fa56=_0x5b0d08,_0x590854=this[_0x593b47(0x20d)][_0x593b47(0x352)]['fetchThroughInterceptors'](this[_0x593b47(0x20d)][_0x593b47(0x352)][_0x593b47(0x14d)]()[_0x593b47(0x1d3)])([_0x52fa56],this[_0x593b47(0x2e7)])||[_0x52fa56];this[_0x593b47(0x226)](_0x590854[0x0]);})),_0x302a39;}};Sn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],Sn);let Cn=class extends ${constructor(_0xb9beaf,_0x553833,_0x38122b,_0x25f9fd,_0x47c975,_0x339f83,_0x5d1e31,_0x17d2ac,_0x350511,_0x5dfdb5,_0xa9405d,_0x3ee86c,_0x5cc85c,_0x17f33c,_0x5a0024){const _0x244f88=_0x19811e;super(_0xb9beaf,_0x38122b,_0x553833,_0x25f9fd,_0x47c975,_0x339f83,_0x5d1e31,_0x350511,_0x5dfdb5,_0xa9405d,_0x3ee86c,_0x5cc85c,_0x17f33c,_0x5a0024),this['unitID']=_0xb9beaf,this[_0x244f88(0x392)]=_0x553833,this[_0x244f88(0x224)]=_0x17d2ac;}[_0x19811e(0x36f)](){const _0xe8e047=_0x19811e;let _0x115400=super[_0xe8e047(0x36f)]();return _0x115400[_0xe8e047(0x287)]=_0x477ec3=>this['_sheetTransformSelectionsService']['transformSelections'](_0x477ec3),_0x115400;}async[_0x19811e(0x28f)](){const _0x5d3775=_0x19811e;let _0x1dc246=await super[_0x5d3775(0x28f)]();return this[_0x5d3775(0x34b)](this[_0x5d3775(0x3aa)][_0x5d3775(0x142)]((_0x4cce6c,_0x40412f)=>{const _0xbd6619=_0x5d3775;if(_0x4cce6c['type']!==_0x40fa30[_0xbd6619(0x24f)]||_0x40412f!=null&&_0x40412f[_0xbd6619(0x1f2)]||_0x40412f!=null&&_0x40412f[_0xbd6619(0x3cb)])return;let _0x57b5d1=_0x4cce6c[_0xbd6619(0x359)];if((_0x57b5d1==null?void 0x0:_0x57b5d1[_0xbd6619(0x22b)])!==this[_0xbd6619(0x25e)])return;let _0x3218fe=_0x4cce6c,_0x5e2bce=this[_0xbd6619(0x20d)][_0xbd6619(0x352)][_0xbd6619(0x32b)](this[_0xbd6619(0x20d)][_0xbd6619(0x352)][_0xbd6619(0x14d)]()[_0xbd6619(0x1d3)])([_0x3218fe],this['_univerInstanceService'])||[_0x3218fe];this[_0xbd6619(0x226)](_0x5e2bce[0x0]);})),_0x1dc246;}};Cn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(Jt)),V(0x8,_0x480e6d(B)),V(0x9,_0x4f5fa8),V(0xa,_0x1ba700),V(0xb,_0xef393c),V(0xc,_0x2197a8),V(0xd,_0x1e59a5(W)),V(0xe,_0x1e59a5(U))],Cn);let wn=class extends ${constructor(_0x489e6f,_0x363f16,_0x13f6bd,_0x514ae3,_0x49f81c,_0x3e1f66,_0x16bd73,_0x4140bf,_0x11fabb,_0xe684c4,_0x48af8a,_0x310b40,_0x4bd866,_0x2170a7){const _0x3dc2c5=_0x19811e;super(_0x489e6f,_0x13f6bd,_0x363f16,_0x514ae3,_0x49f81c,_0x3e1f66,_0x16bd73,_0x4140bf,_0x11fabb,_0xe684c4,_0x48af8a,_0x310b40,_0x4bd866,_0x2170a7),this[_0x3dc2c5(0x25e)]=_0x489e6f,this['type']=_0x363f16;}async[_0x19811e(0x28f)](){const _0x1a5328=_0x19811e;let _0x4cb63d=await super[_0x1a5328(0x28f)]();return this[_0x1a5328(0x34b)](this['_commandService'][_0x1a5328(0x142)]((_0x37494a,_0x254a06)=>{const _0x198be5=_0x1a5328;if(_0x37494a['type']!==_0x40fa30[_0x198be5(0x24f)]||_0x254a06!=null&&_0x254a06['fromCollab']||_0x254a06!=null&&_0x254a06[_0x198be5(0x3cb)])return;let _0x4fa68f=_0x37494a['params'];if((_0x4fa68f==null?void 0x0:_0x4fa68f[_0x198be5(0x22b)])!==this[_0x198be5(0x25e)])return;let _0xab7710=_0x37494a,_0x2f797b=this[_0x198be5(0x20d)][_0x198be5(0x352)][_0x198be5(0x32b)](this['_compressMutationService'][_0x198be5(0x352)]['getInterceptPoints']()[_0x198be5(0x1d3)])([_0xab7710],this['_univerInstanceService'])||[_0xab7710];this[_0x198be5(0x226)](_0x2f797b[0x0]);})),_0x4cb63d;}};wn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],wn);let Tn=class extends ${constructor(_0x53f087,_0x34f49f,_0x22cfc5,_0x4dd44c,_0x5897dc,_0x2a352b,_0x51069f,_0x2c98e9,_0x129aa4,_0x2283af,_0x5eb3c3,_0x19dba6,_0x3bb1a2,_0x4e2dbe){const _0x4a2764=_0x19811e;super(_0x53f087,_0x22cfc5,_0x34f49f,_0x4dd44c,_0x5897dc,_0x2a352b,_0x51069f,_0x2c98e9,_0x129aa4,_0x2283af,_0x5eb3c3,_0x19dba6,_0x3bb1a2,_0x4e2dbe),this[_0x4a2764(0x25e)]=_0x53f087,this[_0x4a2764(0x392)]=_0x34f49f;}async[_0x19811e(0x28f)](){const _0x360ef4=_0x19811e;let _0x2316d1=await super[_0x360ef4(0x28f)]();return this[_0x360ef4(0x34b)](this['_commandService'][_0x360ef4(0x142)]((_0x588ecf,_0x336e68)=>{const _0x557fe4=_0x360ef4;if(_0x588ecf['type']!==_0x40fa30[_0x557fe4(0x24f)]||_0x336e68!=null&&_0x336e68[_0x557fe4(0x1f2)]||_0x336e68!=null&&_0x336e68[_0x557fe4(0x3cb)])return;let _0x25af95=_0x588ecf[_0x557fe4(0x359)];if((_0x25af95==null?void 0x0:_0x25af95[_0x557fe4(0x22b)])!==this[_0x557fe4(0x25e)])return;let _0x3eaf57=_0x588ecf,_0x5c7995=this[_0x557fe4(0x20d)][_0x557fe4(0x352)]['fetchThroughInterceptors'](this[_0x557fe4(0x20d)][_0x557fe4(0x352)][_0x557fe4(0x14d)]()[_0x557fe4(0x1d3)])([_0x3eaf57],this[_0x557fe4(0x2e7)])||[_0x3eaf57];this[_0x557fe4(0x226)](_0x5c7995[0x0]);})),_0x2316d1;}};Tn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],Tn);let En=class extends ${constructor(_0xd7aae3,_0x2d7208,_0x539ffc,_0x32f198,_0x12459b,_0x5a84b6,_0xb0f361,_0x14f0f0,_0x58eb21,_0x2fd483,_0x1bd965,_0x592e4f,_0x217ea8,_0x1255f7){const _0x2dd681=_0x19811e;super(_0xd7aae3,_0x539ffc,_0x2d7208,_0x32f198,_0x12459b,_0x5a84b6,_0xb0f361,_0x14f0f0,_0x58eb21,_0x2fd483,_0x1bd965,_0x592e4f,_0x217ea8,_0x1255f7),this[_0x2dd681(0x25e)]=_0xd7aae3,this['type']=_0x2d7208;}async['_init'](){const _0x1b2953=_0x19811e;let _0xa16198=await super[_0x1b2953(0x28f)]();return this[_0x1b2953(0x34b)](this[_0x1b2953(0x3aa)]['onMutationExecutedForCollab']((_0x42a2c2,_0x51ba28)=>{const _0x20b339=_0x1b2953;if(_0x42a2c2['type']!==_0x40fa30[_0x20b339(0x24f)]||_0x51ba28!=null&&_0x51ba28[_0x20b339(0x1f2)]||_0x51ba28!=null&&_0x51ba28[_0x20b339(0x3cb)])return;let _0x491a42=_0x42a2c2[_0x20b339(0x359)];if((_0x491a42==null?void 0x0:_0x491a42['unitId'])!==this['unitID'])return;let _0x1cc665=_0x42a2c2,_0x3cfba9=this[_0x20b339(0x20d)][_0x20b339(0x352)]['fetchThroughInterceptors'](this[_0x20b339(0x20d)][_0x20b339(0x352)][_0x20b339(0x14d)]()[_0x20b339(0x1d3)])([_0x1cc665],this[_0x20b339(0x2e7)])||[_0x1cc665];this['_onLocalMutation'](_0x3cfba9[0x0]);})),_0xa16198;}};En=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],En);const Dn=_0x538219(_0x19811e(0x2f0));function On(_0x5bd423){const _0x4d344c=_0x19811e;let _0x476e90=_0x5bd423['data'],_0x4d6155=JSON[_0x4d344c(0x3a8)](_0x476e90);switch(_0x4d6155[_0x4d344c(0x2d9)]){case _0x3b5ebc[_0x4d344c(0x1ca)]:case _0x3b5ebc[_0x4d344c(0x308)]:{let _0x2f0d2e=_0x4d6155[_0x4d344c(0x2a5)];return{..._0x4d6155,'data':_0x2f0d2e,'cmd':_0x4d6155['cmd']};}case _0x3b5ebc[_0x4d344c(0x1d9)]:{let _0x55b60b=_0x4d6155[_0x4d344c(0x249)];return{..._0x4d6155,'data':_0x55b60b,'cmd':_0x4d6155[_0x4d344c(0x2d9)]};}case _0x3b5ebc[_0x4d344c(0x1e7)]:{let _0x2a1f55=_0x4d6155['collaMsg'];switch(_0x2a1f55[_0x4d344c(0x13c)]){case _0x27a7e8[_0x4d344c(0x336)]:var _0x5374e3;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x5374e3=_0x2a1f55[_0x4d344c(0x1b7)])==null?void 0x0:_0x5374e3['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8['CHANGESET_ACK']:var _0x2be4e4;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x2be4e4=_0x2a1f55['csAckEvent'])==null?void 0x0:_0x2be4e4['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x398)]:var _0x53f1de;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x53f1de=_0x2a1f55[_0x4d344c(0x3c6)])==null?void 0x0:_0x53f1de['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x265)]:var _0x4d5583;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x4d5583=_0x2a1f55[_0x4d344c(0x358)])==null?void 0x0:_0x4d5583['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x1ba)]:var _0x33b8d4;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x33b8d4=_0x2a1f55[_0x4d344c(0x15c)])==null?void 0x0:_0x33b8d4['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x348)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x1a5)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x34d)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x13d)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x16d)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x1ce)]},'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x124)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['liveShareNewHost']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8['LIVESHARE_FETCH_OPERATIONS']:case _0x27a7e8[_0x4d344c(0x123)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x1bd)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x2e1)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['liveShareNewHost']},'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x344)]:return{..._0x4d6155,'data':_0x2a1f55,'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x1b6)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['commentUpdateEvent']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8['UPDATE_PERMISSION_OBJ']:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['updatePermissionObjEvent']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x137)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['shouldCloseConn']},'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x288)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x174)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};default:return _0x4d6155;}}default:return _0x4d6155;}}function kn(_0x139f42){const _0x247fa4=_0x19811e;switch(_0x139f42['cmd']){case _0x3b5ebc[_0x247fa4(0x1ca)]:case _0x3b5ebc[_0x247fa4(0x308)]:return JSON['stringify']({'cmd':_0x139f42[_0x247fa4(0x2d9)],'routeKey':_0x139f42[_0x247fa4(0x1bc)]});case _0x3b5ebc[_0x247fa4(0x2fb)]:{let _0x41c334;switch(_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x13c)]){case _0x27a7e8[_0x247fa4(0x348)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x348)],'updateCursorEvent':_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x16d)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x16d)],'leaveEvent':_0x139f42[_0x247fa4(0x202)]['data']};break;case _0x27a7e8['USERS_ENTER']:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x34d)],'joinEvent':_0x139f42[_0x247fa4(0x202)]['data']};break;case _0x27a7e8[_0x247fa4(0x124)]:_0x41c334={'eventID':_0x27a7e8['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x139f42[_0x247fa4(0x202)]['data']};break;case _0x27a7e8['LIVESHARE_OPERATION']:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x123)],'liveShareOperation':_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x2e1)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x2e1)],'liveShareTerminate':_0x139f42['data'][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x204)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x204)],'liveShareRequestHost':_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x320)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x320)]};break;default:_0x41c334={'eventID':_0x139f42['data'][_0x247fa4(0x13c)]};}return JSON[_0x247fa4(0x3a0)]({'cmd':_0x139f42[_0x247fa4(0x2d9)],'routeKey':_0x139f42[_0x247fa4(0x1bc)],'collaMsg':_0x41c334});}case _0x3b5ebc[_0x247fa4(0x1d9)]:return JSON[_0x247fa4(0x3a0)]({'cmd':_0x139f42['cmd'],'routeKey':_0x139f42[_0x247fa4(0x1bc)],'joinReq':_0x139f42[_0x247fa4(0x202)]});case _0x3b5ebc['LEAVE']:return JSON[_0x247fa4(0x3a0)]({'cmd':_0x139f42[_0x247fa4(0x2d9)],'routeKey':_0x139f42['routeKey'],'leaveReq':_0x139f42['data']});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const An=_0x538219(_0x19811e(0x13b));function jn(_0x4d2881,_0x91f4e0,_0x2f7520){const _0x4cfdaa=_0x19811e;return _0x4d2881+'/'+_0x91f4e0+_0x4cfdaa(0x186)+_0x2f7520+_0x4cfdaa(0x234);}let Mn=class extends _0x3d72df{constructor(_0x51840f,_0x2632be,_0x1a9c0a,_0x78256c,_0x50506e){const _0x90e5b8=_0x19811e;super(),this[_0x90e5b8(0x302)]=_0x51840f,this['_httpService']=_0x2632be,this[_0x90e5b8(0x216)]=_0x1a9c0a,this['_logService']=_0x78256c,this[_0x90e5b8(0x28d)]=_0x50506e;}[_0x19811e(0x231)](_0x536883){const _0x21c18c=_0x19811e;let _0x56a60a=this['_injector']['get'](_0xd03cee);if(!_0x56a60a)throw Error(_0x21c18c(0x1b0));let _0x1437ca=_0x56a60a[_0x21c18c(0x248)](_0x536883);if(!_0x1437ca)throw Error(_0x21c18c(0x2a3));let _0x4c0e43=new _0x49b66f(),_0x3b7ea9=new _0x33eafc();_0x4c0e43[_0x21c18c(0x2d1)](_0x1437ca[_0x21c18c(0x3ae)][_0x21c18c(0x2c1)](_0x5290d1=>_0x3b7ea9[_0x21c18c(0x2d6)](_0x5290d1))),_0x4c0e43[_0x21c18c(0x2d1)](_0x215dfb(()=>_0x3b7ea9['complete']()));let _0x1ec8c4=new _0x33eafc();_0x4c0e43[_0x21c18c(0x2d1)](_0x1437ca[_0x21c18c(0x239)][_0x21c18c(0x2c1)](_0x55d597=>_0x1ec8c4[_0x21c18c(0x2d6)](_0x55d597))),_0x4c0e43[_0x21c18c(0x2d1)](_0x215dfb(()=>_0x1ec8c4[_0x21c18c(0x279)]()));let _0x43f034=new _0x33eafc();_0x4c0e43[_0x21c18c(0x2d1)](_0x1437ca['message$'][_0x21c18c(0x2c1)](_0x3c98c2=>{const _0x34c1c7=_0x21c18c;let _0x2d87b4=On(_0x3c98c2);_0x43f034[_0x34c1c7(0x2d6)](_0x2d87b4);})),_0x4c0e43[_0x21c18c(0x2d1)](_0x215dfb(()=>_0x43f034[_0x21c18c(0x279)]()));let _0x2731b6,_0x6e4a82=()=>{const _0x2d13f6=_0x21c18c;_0x1ec8c4[_0x2d13f6(0x2d6)](new Event(_0x2d13f6(0x189))),_0x3b7ea9[_0x2d13f6(0x2d6)](new Event(_0x2d13f6(0x189))),_0x2731b6['close']();};return _0x2731b6={'memberID':'','close$':_0x3b7ea9[_0x21c18c(0x316)](),'error$':_0x1ec8c4['asObservable'](),'open$':_0x1437ca[_0x21c18c(0x372)],'message$':_0x43f034[_0x21c18c(0x316)](),'send':_0x2474da=>{const _0x1c42ae=_0x21c18c;if(_0x2474da[_0x1c42ae(0x2d9)]===_0x3b5ebc[_0x1c42ae(0x2fb)]){if(_0x2474da[_0x1c42ae(0x202)]['eventID']===_0x27a7e8[_0x1c42ae(0x1f6)]){this['_submitChangeset'](_0x2731b6,_0x2474da[_0x1c42ae(0x202)])[_0x1c42ae(0x34a)](_0x219071=>{const _0xeefea6=_0x1c42ae;this['_logService'][_0xeefea6(0x2cd)](_0x219071),_0x6e4a82();});return;}if(_0x2474da['data'][_0x1c42ae(0x13c)]===_0x27a7e8[_0x1c42ae(0x39b)]){let _0x4d091a=_0x2474da['data'];this[_0x1c42ae(0x362)](_0x4d091a)[_0x1c42ae(0x29f)](_0x205f20=>{const _0x5bf252=_0x1c42ae;_0x43f034[_0x5bf252(0x2d6)]({'cmd':_0x3b5ebc[_0x5bf252(0x1e7)],'code':_0x37b9b2['OK'],'routeKey':_0x4d091a[_0x5bf252(0x202)][_0x5bf252(0x25e)],'routeType':'','data':{'eventID':_0x27a7e8[_0x5bf252(0x26c)],'data':{'changesets':_0x205f20}}});})[_0x1c42ae(0x34a)](_0x262622=>{const _0x429539=_0x1c42ae;this[_0x429539(0x261)][_0x429539(0x2cd)](_0x262622),_0x6e4a82();});return;}}_0x1437ca[_0x1c42ae(0x173)](kn(_0x2474da));},'close':()=>{const _0x1f6690=_0x21c18c;_0x1437ca[_0x1f6690(0x17f)](),_0x4c0e43[_0x1f6690(0x194)]();}},_0x2731b6;}async['_submitChangeset'](_0x4eeb33,_0x539a3b){const _0x389b4e=_0x19811e;let {unitType:_0x3214c3,unitID:_0x2d2b27,changeset:_0x4a27ea}=_0x539a3b['data'],_0x4a1f84={'unitID':_0x2d2b27,'memberID':_0x4eeb33['memberID'],'type':_0x3214c3,'changeset':_0x3ec998(_0x4a27ea)},_0x73dcc2=this[_0x389b4e(0x216)][_0x389b4e(0x396)](R),_0x4fabd3=jn((_0x73dcc2==null?void 0x0:_0x73dcc2[_0x389b4e(0x14f)])??_0x389b4e(0x223),_0x3214c3,_0x2d2b27);try{await this[_0x389b4e(0x2d7)][_0x389b4e(0x128)](_0x4fabd3,{'body':_0x4a1f84});}catch(_0x40450a){throw this[_0x389b4e(0x261)][_0x389b4e(0x2cd)](_0x389b4e(0x351),_0x389b4e(0x1c9)),_0x40450a;}}async[_0x19811e(0x362)](_0x2a6a00){const _0x12729f=_0x19811e;let {unitID:_0x34eddc,from:_0x37204b,to:_0x31c3ff,unitType:_0x13e82b}=_0x2a6a00[_0x12729f(0x202)];return(await this[_0x12729f(0x28d)][_0x12729f(0x19a)]({'metadata':void 0x0},{'unitID':_0x34eddc,'type':_0x13e82b,'from':_0x37204b,'to':_0x31c3ff}))['changesets']['map'](_0x339674=>((_0x339674[_0x12729f(0x16e)]===null||_0x339674[_0x12729f(0x16e)]===void 0x0)&&(_0x339674['mutations']=[]),_0x339674));}};Mn=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x480e6d(_0x4288a3)),V(0x2,_0x2477d9),V(0x3,_0x1ba700),V(0x4,_0x14257b)],Mn);const Nn=_0x538219(_0x19811e(0x164));function Pn(_0x43a483={}){const _0x2c9ff3=_0x19811e;return _0x43a483['resolveUnit']?{'resolveUnit':_0x43a483[_0x2c9ff3(0x2ca)]}:{'resolveUnit':_0x121ca2=>({'target':{'unitId':_0x121ca2['unitId'],'unitType':_0x121ca2['unitType']}})};}function Fn(_0x2722d6,_0x52baee,_0x935e7b){const _0x35b82b=_0x19811e;let _0x5638ec=_0x935e7b[_0x35b82b(0x135)][_0x35b82b(0x2c6)];if(_0x5638ec!=null&&_0x5638ec[_0x35b82b(0x37d)]()==='')throw Error(_0x35b82b(0x2a9));if(!_0x935e7b['target'][_0x35b82b(0x22b)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x2722d6,'unitType':_0x52baee,'target':{'endpoint':_0x5638ec,'unitId':_0x935e7b[_0x35b82b(0x135)]['unitId'],'unitType':_0x935e7b[_0x35b82b(0x135)]['unitType']??_0x52baee},'changeset':_0x935e7b[_0x35b82b(0x136)]};}let In=class extends _0x3d72df{constructor(_0x4f9fd5,_0x25098e,_0x24ad66,_0x45dd56,_0x4f91ca,_0x474f71,_0xccf13){const _0x4d750b=_0x19811e;super(),this[_0x4d750b(0x302)]=_0x4f9fd5,this['_logService']=_0x25098e,this[_0x4d750b(0x216)]=_0x24ad66,this[_0x4d750b(0x391)]=_0x45dd56,this[_0x4d750b(0x1af)]=_0x4f91ca,this[_0x4d750b(0x2bd)]=_0x474f71,this[_0x4d750b(0x2b7)]=_0xccf13,z(this,_0x4d750b(0x25c),new Map()),z(this,_0x4d750b(0x1f4),new Map()),z(this,_0x4d750b(0x1a2),new Map()),z(this,_0x4d750b(0x3b9),new Map()),z(this,_0x4d750b(0x18e),this[_0x4d750b(0x183)](void 0x0)[_0x4d750b(0x18e)]['asObservable']()),z(this,'_status$',new _0x5d64e7(0x0)),z(this,_0x4d750b(0x17d),this[_0x4d750b(0x170)][_0x4d750b(0x316)]()),this[_0x4d750b(0x238)]();}[_0x19811e(0x238)](){const _0xfda968=_0x19811e;this[_0xfda968(0x2b7)]&&this[_0xfda968(0x34b)](this[_0xfda968(0x2b7)][_0xfda968(0x1d4)][_0xfda968(0x2c1)](_0x3efac5=>{const _0x2306ed=_0xfda968;_0x3efac5&&this['reconnect'](),_0x3efac5||this[_0x2306ed(0x3b9)]['forEach'](_0x491b4b=>this[_0x2306ed(0x230)](_0x491b4b));}));}[_0x19811e(0x194)](){const _0xd32c04=_0x19811e;super[_0xd32c04(0x194)](),this['_socketChannels'][_0xd32c04(0x332)](_0x1a1c50=>{const _0x5df3d0=_0xd32c04;var _0xa7aa1f,_0x1f0441;(_0xa7aa1f=_0x1a1c50[_0x5df3d0(0x181)])==null||_0xa7aa1f[_0x5df3d0(0x185)](),_0x1a1c50[_0x5df3d0(0x181)]=null,this[_0x5df3d0(0x3bf)](_0x1a1c50),this[_0x5df3d0(0x171)](_0x1a1c50),this[_0x5df3d0(0x319)](_0x1a1c50),(_0x1f0441=_0x1a1c50[_0x5df3d0(0x18e)][_0x5df3d0(0x29a)]())==null||_0x1f0441[_0x5df3d0(0x17f)](),_0x1a1c50['socket$']['complete']();}),this[_0xd32c04(0x3b9)][_0xd32c04(0x2e5)](),this[_0xd32c04(0x25c)][_0xd32c04(0x332)](_0x1b8732=>_0x1b8732[_0xd32c04(0x194)]()),this['_sessions'][_0xd32c04(0x2e5)](),this['_sessionChannels'][_0xd32c04(0x2e5)](),this[_0xd32c04(0x170)][_0xd32c04(0x279)]();}async[_0x19811e(0x254)](_0x33c254,_0x3eb7d5){const _0x24c140=_0x19811e;if(this[_0x24c140(0x25c)][_0x24c140(0x1d6)](_0x33c254))return this['_sessions'][_0x24c140(0x17c)](_0x33c254);let _0x54187c=this[_0x24c140(0x1f4)][_0x24c140(0x17c)](_0x33c254);if(_0x54187c)return _0x54187c;let _0xf4c6b0=this[_0x24c140(0x143)](_0x33c254,_0x3eb7d5);this['_pendingSessions']['set'](_0x33c254,_0xf4c6b0);try{return await _0xf4c6b0;}finally{this[_0x24c140(0x1f4)][_0x24c140(0x347)](_0x33c254);}}async[_0x19811e(0x143)](_0x3b8263,_0x2588f9){const _0x2f4f70=_0x19811e;let _0x3f2452=await this['_resolveSessionIdentity'](_0x3b8263,_0x2588f9),_0x157428=this[_0x2f4f70(0x183)](_0x3f2452[_0x2f4f70(0x135)]['endpoint']);this['_tryEnsureSocket'](_0x157428);let _0x32dc86=this[_0x2f4f70(0x302)][_0x2f4f70(0x1d2)](Gt,_0x3f2452,_0x157428['socket$']['asObservable']());return this[_0x2f4f70(0x25c)]['set'](_0x3b8263,_0x32dc86),this['_sessionChannels']['set'](_0x3b8263,_0x157428[_0x2f4f70(0x3b0)]),_0x32dc86;}[_0x19811e(0x24e)](_0x35ea8a){const _0x314762=_0x19811e;let _0x257f80=this['_sessions'][_0x314762(0x17c)](_0x35ea8a),_0x370627=this[_0x314762(0x1a2)][_0x314762(0x17c)](_0x35ea8a);if(_0x257f80&&(this[_0x314762(0x25c)][_0x314762(0x347)](_0x35ea8a),this[_0x314762(0x1a2)][_0x314762(0x347)](_0x35ea8a),_0x257f80[_0x314762(0x17f)]()),_0x370627&&!this[_0x314762(0x286)](_0x370627)){var _0x139515;let _0x3d0df9=this['_socketChannels'][_0x314762(0x17c)](_0x370627);_0x3d0df9==null||(_0x139515=_0x3d0df9[_0x314762(0x18e)]['getValue']())==null||_0x139515[_0x314762(0x17f)]();}}['reconnect'](){const _0x1fe641=_0x19811e;(this[_0x1fe641(0x3b9)]['size']?[...this[_0x1fe641(0x3b9)][_0x1fe641(0x309)]()]:[this['_getSocketChannel'](void 0x0)])[_0x1fe641(0x332)](_0x403796=>{const _0x45edbc=_0x1fe641;_0x403796['retryCount']=0x0,this[_0x45edbc(0x3bf)](_0x403796),this[_0x45edbc(0x28b)](_0x403796);});}['_clearRetryConnectingTimer'](_0x3c1b4b){const _0x992bc5=_0x19811e;_0x3c1b4b[_0x992bc5(0x2d4)]!=null&&(clearTimeout(_0x3c1b4b[_0x992bc5(0x2d4)]),_0x3c1b4b[_0x992bc5(0x2d4)]=null);}async[_0x19811e(0x30c)](_0x4ead9d){const _0x14bd7c=_0x19811e;let _0x474e90=this[_0x14bd7c(0x216)][_0x14bd7c(0x396)](R),_0x22e522=_0x4ead9d['endpoint']??(_0x474e90==null?void 0x0:_0x474e90[_0x14bd7c(0x252)])??_0x14bd7c(0x20a),_0x2e751a=await this[_0x14bd7c(0x391)][_0x14bd7c(0x248)](_0x22e522);return _0x4ead9d[_0x14bd7c(0x1da)]=_0x2e751a,_0x2e751a;}async[_0x19811e(0x2e6)](_0x4b4dae){const _0xca840a=_0x19811e;try{let _0x493cd3=_0x4b4dae[_0xca840a(0x18e)][_0xca840a(0x29a)]()??_0x4b4dae['candidateSocket']??await this[_0xca840a(0x30c)](_0x4b4dae);if(_0x493cd3){var _0x1a30b7;let _0xa52c9e=_0x493cd3[_0xca840a(0x173)];_0x493cd3[_0xca840a(0x173)]=_0x2cb310=>(_0x2cb310[_0xca840a(0x2d9)]!==_0x3b5ebc[_0xca840a(0x233)]&&this[_0xca840a(0x256)](_0x4b4dae),_0xa52c9e[_0xca840a(0x370)](_0x493cd3,[_0x2cb310])),(_0x1a30b7=_0x4b4dae['socketMessageSubscription'])==null||_0x1a30b7['unsubscribe'](),_0x4b4dae[_0xca840a(0x181)]=null,_0x4b4dae[_0xca840a(0x181)]=_0x493cd3[_0xca840a(0x1f1)][_0xca840a(0x2c1)](_0x4fb51d=>this['_onMessage'](_0x4b4dae,_0x493cd3,_0x4fb51d)),_0x493cd3['error$']['pipe'](_0x1c88c9(0x1))[_0xca840a(0x2c1)](_0x3547dd=>this[_0xca840a(0x261)][_0xca840a(0x2cd)](_0xca840a(0x2d2),_0x3547dd)),_0x493cd3[_0xca840a(0x372)][_0xca840a(0x273)](_0x1c88c9(0x1))[_0xca840a(0x2c1)](()=>{const _0x2f1b27=_0xca840a;this[_0x2f1b27(0x29c)](_0x4b4dae,_0x493cd3);}),_0x493cd3[_0xca840a(0x3ae)]['pipe'](_0x1c88c9(0x1))[_0xca840a(0x2c1)](_0x338cae=>{const _0x1a2318=_0xca840a;this[_0x1a2318(0x261)][_0x1a2318(0x1d1)](_0x1a2318(0x2c4),_0x1a2318(0x1b4),_0x338cae),this[_0x1a2318(0x264)](_0x4b4dae);});}}catch(_0x531867){this['_logService'][_0xca840a(0x2cd)](_0x531867),this[_0xca840a(0x264)](_0x4b4dae);}}['_onConnectionOpen'](_0x4ae6b1,_0x2e6116){const _0x173061=_0x19811e;this[_0x173061(0x261)][_0x173061(0x1d1)](_0x173061(0x2c4),'socket\x20open.'),_0x2e6116[_0x173061(0x173)]({'cmd':_0x3b5ebc[_0x173061(0x308)]}),this[_0x173061(0x256)](_0x4ae6b1);}['_onOffline'](_0x55a571){const _0x4eb179=_0x19811e;_0x55a571[_0x4eb179(0x30d)]=!0x1,_0x55a571[_0x4eb179(0x1da)]=null,this[_0x4eb179(0x170)][_0x4eb179(0x2d6)](0x2),_0x55a571[_0x4eb179(0x18e)]['next'](null),this['_clearTimeoutTimer'](_0x55a571),this[_0x4eb179(0x319)](_0x55a571);}[_0x19811e(0x264)](_0x5be72b){const _0x2b9c3d=_0x19811e;this[_0x2b9c3d(0x230)](_0x5be72b),this['_hasSessionsForEndpoint'](_0x5be72b[_0x2b9c3d(0x3b0)])&&(_0x5be72b[_0x2b9c3d(0x1df)]<(this[_0x2b9c3d(0x216)]['getConfig'](_0x2b9c3d(0x250))??0x3)?(this[_0x2b9c3d(0x1af)][_0x2b9c3d(0x24a)]({'id':_0x2b9c3d(0x23f)}),this[_0x2b9c3d(0x28b)](_0x5be72b)):this[_0x2b9c3d(0x1af)]['emitEvent']({'id':_0x2b9c3d(0x342)}));}[_0x19811e(0x28b)](_0x2e5ec5){const _0x10a857=_0x19811e;let _0x1c49ff=_0x2e5ec5['retryCount'],_0x442069=this['_configService'][_0x10a857(0x396)](R),_0x54a126=_0x1c49ff===0x0?0x0:((_0x442069==null?void 0x0:_0x442069[_0x10a857(0x2f7)])??0x4e20)*0x2**_0x1c49ff;_0x2e5ec5[_0x10a857(0x2d4)]=setTimeout(()=>{const _0xac5642=_0x10a857;clearTimeout(_0x2e5ec5['retryConnectingTimer']),_0x2e5ec5['retryConnectingTimer']=null,this[_0xac5642(0x2e6)](_0x2e5ec5);},_0x54a126),_0x2e5ec5['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0xf16ec0,_0x5503e4){const _0x2e76af=_0x19811e;return Fn(_0xf16ec0,_0x5503e4,await this[_0x2e76af(0x2bd)][_0x2e76af(0x2ca)]({'unitId':_0xf16ec0,'unitType':_0x5503e4}));}['_onMessage'](_0x3e5708,_0x5136e2,_0x3770f1){const _0x53c76a=_0x19811e;let {cmd:_0x543e6e}=_0x3770f1;_0x543e6e===_0x3b5ebc['HELLO']&&!_0x3e5708[_0x53c76a(0x30d)]&&(_0x5136e2['memberID']=_0x3770f1[_0x53c76a(0x202)][_0x53c76a(0x2ee)],_0x3e5708[_0x53c76a(0x1df)]=0x0,_0x3e5708[_0x53c76a(0x18e)]['next'](_0x5136e2),this[_0x53c76a(0x170)][_0x53c76a(0x2d6)](0x3),_0x3e5708['socketReady']=!0x0,_0x3e5708['candidateSocket']=null),_0x543e6e===_0x3b5ebc[_0x53c76a(0x1ca)]&&this['_clearTimeoutTimer'](_0x3e5708),this[_0x53c76a(0x256)](_0x3e5708);}[_0x19811e(0x286)](_0x247e60){const _0x20ef35=_0x19811e;return[...this[_0x20ef35(0x1a2)][_0x20ef35(0x309)]()][_0x20ef35(0x1aa)](_0x50ed2f=>_0x50ed2f===_0x247e60);}[_0x19811e(0x183)](_0x1d1314){const _0x5085ac=_0x19811e;let _0x3a416d=_0x1d1314??'',_0x34dc7f=this[_0x5085ac(0x3b9)][_0x5085ac(0x17c)](_0x3a416d);if(_0x34dc7f)return _0x34dc7f;let _0xdaa3ba={'endpointKey':_0x3a416d,'endpoint':_0x1d1314,'socket$':new _0x5d64e7(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x5085ac(0x3b9)][_0x5085ac(0x1ee)](_0x3a416d,_0xdaa3ba),_0xdaa3ba;}[_0x19811e(0x256)](_0x2b5517){const _0x35b1eb=_0x19811e;this[_0x35b1eb(0x319)](_0x2b5517),_0x2b5517[_0x35b1eb(0x276)]=setTimeout(()=>this['_sendHeartbeat'](_0x2b5517),this[_0x35b1eb(0x216)]['getConfig'](_0x35b1eb(0x2af))??0x7530);}[_0x19811e(0x2b2)](_0x143731){const _0x1c913b=_0x19811e;_0x143731[_0x1c913b(0x18e)][_0x1c913b(0x29a)]()[_0x1c913b(0x173)]({'cmd':_0x3b5ebc[_0x1c913b(0x1ca)]}),this[_0x1c913b(0x329)](_0x143731);}['_waitForHeartbeatResponse'](_0x2c1f90){const _0x200092=_0x19811e;_0x2c1f90[_0x200092(0x169)]=setTimeout(()=>this[_0x200092(0x264)](_0x2c1f90),this[_0x200092(0x216)][_0x200092(0x396)](_0x200092(0x2ae))??0x4e20);}['_clearHeartbeatTimer'](_0x3a68ed){const _0xad20fb=_0x19811e;_0x3a68ed[_0xad20fb(0x276)]!=null&&(clearTimeout(_0x3a68ed[_0xad20fb(0x276)]),_0x3a68ed[_0xad20fb(0x276)]=null);}['_clearTimeoutTimer'](_0x296a3c){const _0x22d16b=_0x19811e;_0x296a3c[_0x22d16b(0x169)]!=null&&(clearTimeout(_0x296a3c[_0x22d16b(0x169)]),_0x296a3c[_0x22d16b(0x169)]=null);}};In=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x1ba700),V(0x2,_0x2477d9),V(0x3,An),V(0x4,_0x480e6d(B)),V(0x5,Nn),V(0x6,_0x1e59a5(Dn))],In);let Ln=class extends _0x39685b{constructor(_0x25cae0,_0x39c6be,_0x7a2f10,_0x48eb13){const _0x2e8b11=_0x19811e;var _0x550c3b;super(),this[_0x2e8b11(0x302)]=_0x25cae0,this[_0x2e8b11(0x291)]=_0x39c6be,this['_configService']=_0x7a2f10,this[_0x2e8b11(0x2e7)]=_0x48eb13,z(this,_0x2e8b11(0x38d),new Map()),z(this,'_entityInit$',new _0x33eafc()),z(this,'entityInit$',this['_entityInit$'][_0x2e8b11(0x316)]()),((_0x550c3b=this[_0x2e8b11(0x216)][_0x2e8b11(0x396)]('collaboration-client.config'))==null?void 0x0:_0x550c3b['enableCollaboration'])!==!0x1&&this[_0x2e8b11(0x28f)]();}[_0x19811e(0x194)](){const _0x5d6a4d=_0x19811e;super[_0x5d6a4d(0x194)](),this[_0x5d6a4d(0x38d)][_0x5d6a4d(0x332)](_0x59ecd2=>_0x59ecd2[_0x5d6a4d(0x194)]()),this[_0x5d6a4d(0x38d)][_0x5d6a4d(0x2e5)]();}[_0x19811e(0x2c3)](_0x3e2c9e){const _0x5e05ee=_0x19811e;return this[_0x5e05ee(0x38d)][_0x5e05ee(0x17c)](_0x3e2c9e)??null;}[_0x19811e(0x346)](_0x3f013e){const _0x3a2fd4=_0x19811e;let _0x1cac3a=this[_0x3a2fd4(0x2c3)](_0x3f013e);return _0x1cac3a?_0x5b3fe9(_0x1cac3a):this[_0x3a2fd4(0x38f)][_0x3a2fd4(0x273)](_0xae526b(_0x227280=>_0x227280['unitID']===_0x3f013e));}[_0x19811e(0x3d7)](_0x3c293e){const _0x1050b4=_0x19811e;return _0x1773f3(this[_0x1050b4(0x346)](_0x3c293e)[_0x1050b4(0x273)](_0x49f6f7(()=>void 0x0)));}[_0x19811e(0x28f)](){const _0x532dcc=_0x19811e;this[_0x532dcc(0x2e7)][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x227)])[_0x532dcc(0x273)](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x1a0891=>{const _0x1dd543=_0x532dcc;let _0x56fd53=_0x1a0891[_0x1dd543(0x225)][_0x1dd543(0x382)](),_0x199c9f=await this[_0x1dd543(0x240)](_0x56fd53,_0x5d23e3[_0x1dd543(0x227)]);this['_entities'][_0x1dd543(0x1ee)](_0x56fd53,_0x199c9f);}),this['_univerInstanceService'][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x126)])[_0x532dcc(0x273)](_0x1b033d(this['dispose$']),_0x1ebfc0(0x10))['pipe'](_0xae526b(_0x384c14=>!_0x384c14[_0x532dcc(0x225)][_0x532dcc(0x382)]()['startsWith']('__')))[_0x532dcc(0x2c1)](async _0x2bb406=>{const _0x4e814c=_0x532dcc;let _0x283c20=_0x2bb406[_0x4e814c(0x225)][_0x4e814c(0x382)](),_0x232d4b=await this[_0x4e814c(0x240)](_0x283c20,_0x5d23e3[_0x4e814c(0x126)]);this[_0x4e814c(0x38d)]['set'](_0x283c20,_0x232d4b);}),this['_univerInstanceService'][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x305)])[_0x532dcc(0x273)](_0x1b033d(this['dispose$']),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x45654c=>{const _0x556613=_0x532dcc;let _0x4cd3ca=_0x45654c['unit'][_0x556613(0x382)](),_0x9107bb=await this[_0x556613(0x240)](_0x4cd3ca,_0x5d23e3[_0x556613(0x305)]);this[_0x556613(0x38d)]['set'](_0x4cd3ca,_0x9107bb);}),this[_0x532dcc(0x2e7)][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x328)])[_0x532dcc(0x273)](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x235955=>{const _0x3187a3=_0x532dcc;let _0x542c44=_0x235955['unit'][_0x3187a3(0x382)](),_0x55fcc0=await this[_0x3187a3(0x240)](_0x542c44,_0x5d23e3[_0x3187a3(0x328)]);this['_entities'][_0x3187a3(0x1ee)](_0x542c44,_0x55fcc0);}),this[_0x532dcc(0x2e7)][_0x532dcc(0x39e)](_0x5d23e3['UNIVER_BASE'])[_0x532dcc(0x273)](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x54274a=>{const _0x373148=_0x532dcc;let _0x1e5c24=_0x54274a[_0x373148(0x225)][_0x373148(0x382)](),_0x2c5883=await this[_0x373148(0x240)](_0x1e5c24,_0x5d23e3['UNIVER_BASE']);this[_0x373148(0x38d)]['set'](_0x1e5c24,_0x2c5883);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5d23e3[_0x532dcc(0x1f5)])['pipe'](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x448779=>{const _0x20a7f0=_0x532dcc;let _0x12b41c=_0x448779['unit'][_0x20a7f0(0x382)](),_0x2e8ea1=await this[_0x20a7f0(0x240)](_0x12b41c,_0x5d23e3['UNIVER_PDF']);this[_0x20a7f0(0x38d)][_0x20a7f0(0x1ee)](_0x12b41c,_0x2e8ea1);}),_0x5e3e6a(this[_0x532dcc(0x2e7)][_0x532dcc(0x131)](_0x5d23e3['UNIVER_SHEET']),this['_univerInstanceService'][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x126)]),this[_0x532dcc(0x2e7)][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x305)]),this[_0x532dcc(0x2e7)][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x328)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5d23e3[_0x532dcc(0x38e)]),this['_univerInstanceService'][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x1f5)]))[_0x532dcc(0x273)](_0x1b033d(this['dispose$']))[_0x532dcc(0x2c1)](_0x23f730=>{const _0xc14fd7=_0x532dcc;let _0x5b2991=_0x23f730['getUnitId'](),_0x253ca7=this[_0xc14fd7(0x38d)][_0xc14fd7(0x17c)](_0x5b2991);_0x253ca7&&(_0x253ca7[_0xc14fd7(0x194)](),this[_0xc14fd7(0x38d)][_0xc14fd7(0x347)](_0x5b2991));});}async[_0x19811e(0x240)](_0x39d689,_0x494ca2){const _0x507335=_0x19811e;let _0x48ee93=await this[_0x507335(0x291)][_0x507335(0x254)](_0x39d689),_0x570110=this[_0x507335(0x302)][_0x507335(0x1d2)](this[_0x507335(0x215)](_0x494ca2),_0x39d689,_0x494ca2,_0x48ee93);return await _0x570110[_0x507335(0x26e)](),this[_0x507335(0x38f)]['next'](_0x570110),_0x570110;}[_0x19811e(0x215)](_0xc871d1){const _0x402261=_0x19811e;switch(_0xc871d1){case _0x5d23e3[_0x402261(0x126)]:return xn;case _0x5d23e3[_0x402261(0x227)]:return Cn;case _0x5d23e3[_0x402261(0x305)]:return wn;case _0x5d23e3[_0x402261(0x328)]:return Tn;case _0x5d23e3[_0x402261(0x38e)]:return Sn;case _0x5d23e3[_0x402261(0x1f5)]:return En;default:throw Error(_0x402261(0x2cc)+_0xc871d1);}}};Ln=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x480e6d(In)),V(0x2,_0x2477d9),V(0x3,_0x4f5fa8)],Ln);var Rn='@univerjs-pro/collaboration-client',zn=_0x19811e(0x28e);let Bn=class extends _0x3d72df{constructor(_0x40c2f0,_0x186691){const _0x593b13=_0x19811e;super(),this[_0x593b13(0x2e7)]=_0x40c2f0,this[_0x593b13(0x216)]=_0x186691,this['_init']();}[_0x19811e(0x28f)](){const _0x1b1a33=_0x19811e;this[_0x1b1a33(0x34b)](this[_0x1b1a33(0x2e7)]['focused$'][_0x1b1a33(0x2c1)](()=>{const _0x46b709=_0x1b1a33;let _0x45e2ee=this[_0x46b709(0x2e7)][_0x46b709(0x1f8)](),_0x37d211=this[_0x46b709(0x216)]['getConfig']('DEFAULT_FILE_NAME')??_0x46b709(0x2f9);_0x45e2ee instanceof _0x37c076&&(_0x37d211=_0x45e2ee['name']),document['title']=_0x37d211;}));}};Bn=H([V(0x0,_0x4f5fa8),V(0x1,_0x2477d9)],Bn);const Vn=_0x538219(_0x19811e(0x2fc));let Hn=class{constructor(_0x1b13ea,_0x5d4ba1,_0x1773e6){const _0x808e59=_0x19811e;this[_0x808e59(0x2d7)]=_0x1b13ea,this[_0x808e59(0x216)]=_0x5d4ba1,this['_univerInstanceService']=_0x1773e6;}[_0x19811e(0x3a6)](){const _0x3655c7=_0x19811e;return this[_0x3655c7(0x2e2)]()[_0x3655c7(0x25d)]??{};}async['saveAttachment'](_0x4e906f){const _0x15f0d3=_0x19811e;let _0x50b672=this[_0x15f0d3(0x3a6)]();if(Un(_0x4e906f,_0x50b672),_0x50b672[_0x15f0d3(0x129)])return _0x50b672['upload'](_0x4e906f);let _0x568e97=await this[_0x15f0d3(0x35e)](_0x4e906f);return{'id':_0x568e97,'name':_0x4e906f[_0x15f0d3(0x1a8)],'mimeType':_0x4e906f['type'],'size':_0x4e906f[_0x15f0d3(0x3c3)],'sourceType':_0x19206b['UUID'],'source':_0x568e97};}async['getAttachmentUrl'](_0x5763fb,_0xab6223){const _0x11b55c=_0x19811e;if(_0xab6223!==_0x19206b[_0x11b55c(0x3de)])return _0x5763fb;let _0x3be29f=(await this[_0x11b55c(0x2d7)]['get'](this['_getSignURL']()[_0x11b55c(0x1c3)]('{fileID}',_0x5763fb)))['body'];if(_0x3be29f[_0x11b55c(0x2cd)]&&_0x3be29f['error'][_0x11b55c(0x236)]!==_0x21e177['OK'])throw _0x3be29f['error'];if(!_0x3be29f[_0x11b55c(0x17b)])throw Error(_0x11b55c(0x3c4));return _0x26be64(_0x3be29f['url'],this[_0x11b55c(0x32c)]());}async[_0x19811e(0x35e)](_0x44f548){const _0x438e2f=_0x19811e;let _0x5a6c59=this[_0x438e2f(0x2e7)]['getFocusedUnit'](),_0x5d415f=_0x5a6c59==null?void 0x0:_0x5a6c59[_0x438e2f(0x382)]();if(!_0x5d415f)throw Error(_0x438e2f(0x158));let _0x3331c6=new FormData();_0x3331c6[_0x438e2f(0x187)](_0x438e2f(0x1a1),_0x44f548);let _0x2c8e5f=this[_0x438e2f(0x3d5)]()+_0x438e2f(0x298)+_0x44f548[_0x438e2f(0x3c3)][_0x438e2f(0x374)]()+'&source='+_0x4a74cc[_0x438e2f(0x3c9)]+_0x438e2f(0x157)+encodeURIComponent(_0x5d415f),_0x286b0a=(await this[_0x438e2f(0x2d7)][_0x438e2f(0x128)](_0x2c8e5f,{'body':_0x3331c6}))['body'][_0x438e2f(0x289)];if(typeof _0x286b0a!=_0x438e2f(0x2f5)||!_0x286b0a)throw Error(_0x438e2f(0x378));return _0x286b0a;}[_0x19811e(0x3d5)](){const _0x46e24d=_0x19811e;return this[_0x46e24d(0x2e2)]()[_0x46e24d(0x3d4)]??_0x46e24d(0x389);}[_0x19811e(0x28c)](){const _0x739ba8=_0x19811e;return this[_0x739ba8(0x2e2)]()[_0x739ba8(0x251)]??_0x739ba8(0x331);}[_0x19811e(0x32c)](){const _0x3d6c28=_0x19811e;let _0x2d1fbe=this[_0x3d6c28(0x2e2)]();return _0x2d1fbe[_0x3d6c28(0x20f)]?_0x2d1fbe[_0x3d6c28(0x20f)]:typeof location<'u'?location[_0x3d6c28(0x2dd)]:_0x2d1fbe[_0x3d6c28(0x3d4)]??'';}[_0x19811e(0x2e2)](){const _0x33622f=_0x19811e;return this['_configService'][_0x33622f(0x396)](_0x33622f(0x2bb))??{};}};Hn=H([V(0x0,_0x480e6d(_0x4288a3)),V(0x1,_0x480e6d(_0x2477d9)),V(0x2,_0x480e6d(_0x4f5fa8))],Hn);function Un(_0x248775,_0x907e4e){const _0x62f0bf=_0x19811e;var _0x15ca94;if(_0x907e4e[_0x62f0bf(0x2b8)]!=null&&_0x248775[_0x62f0bf(0x3c3)]>_0x907e4e['maxSize'])throw Error(_0x62f0bf(0x269));if((_0x15ca94=_0x907e4e[_0x62f0bf(0x232)])!=null&&_0x15ca94[_0x62f0bf(0x2ab)]&&!_0x907e4e['accept']['some'](_0x4d6e10=>_0x248775[_0x62f0bf(0x392)]===_0x4d6e10||_0x248775['name'][_0x62f0bf(0x312)](_0x4d6e10)||_0x4d6e10['endsWith']('/*')&&_0x248775['type'][_0x62f0bf(0x19f)](_0x4d6e10[_0x62f0bf(0x141)](0x0,-0x1))))throw Error(_0x62f0bf(0x31f));}let Wn=class{constructor(_0x65b9c7,_0x554dd7,_0x1f57f8){const _0x2c5555=_0x19811e;this[_0x2c5555(0x216)]=_0x65b9c7,this[_0x2c5555(0x2d7)]=_0x554dd7,this[_0x2c5555(0x31c)]=_0x1f57f8,this[_0x2c5555(0x26e)]();}[_0x19811e(0x26e)](){const _0x210273=_0x19811e;this[_0x210273(0x2d7)][_0x210273(0x3ba)]({'priority':0x1,'interceptor':(_0x49a9ac,_0x1011dd)=>_0x1011dd(_0x49a9ac)[_0x210273(0x273)](_0x344f28(async _0x1143dc=>{const _0x5c3ee7=_0x210273;let _0x56cd48=_0x1143dc;if(_0x56cd48[_0x5c3ee7(0x18d)]===0x191){if(typeof window>'u')throw Error(_0x5c3ee7(0x2e0));if(window[_0x5c3ee7(0x243)](this[_0x5c3ee7(0x31c)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x493039=window['encodeURIComponent'](window['location'][_0x5c3ee7(0x197)]);window[_0x5c3ee7(0x1a9)][_0x5c3ee7(0x197)]=this[_0x5c3ee7(0x182)]()+_0x5c3ee7(0x1eb)+_0x493039;}}return _0x56cd48;}))});}['_getLoginPath'](){const _0x347698=_0x19811e;let _0x5349c6=this[_0x347698(0x216)][_0x347698(0x396)](R);return(_0x5349c6==null?void 0x0:_0x5349c6[_0x347698(0x1ae)])??_0x347698(0x2dc);}};Wn=H([V(0x0,_0x2477d9),V(0x1,_0x480e6d(_0x4288a3)),V(0x2,_0x480e6d(_0x1e8fb8))],Wn);let Gn=class extends _0x3d72df{constructor(_0x5e203b,_0x32a3a9){const _0x4ebb9b=_0x19811e;super(),this[_0x4ebb9b(0x34f)]=_0x5e203b,this[_0x4ebb9b(0x216)]=_0x32a3a9,z(this,_0x4ebb9b(0x2bf),!0x1),this['_initMergeInterceptor']();}[_0x19811e(0x2c0)](){const _0x235866=_0x19811e;let _0x9d8e5=this;this['disposeWithMe'](this[_0x235866(0x34f)][_0x235866(0x3ba)]({'priority':0x3e7,'interceptor':_0x49dd8f({'isMatch'(_0x5ea0ef){const _0x215966=_0x235866;var _0x120556;if(_0x5ea0ef[_0x215966(0x1c5)]===_0x215966(0x315)&&(_0x120556=_0x5ea0ef[_0x215966(0x2b4)])!=null&&_0x120556[_0x215966(0x1ea)]){let {objectID:_0x192a2a,objectType:_0x581473}=_0x5ea0ef[_0x215966(0x2b4)][_0x215966(0x1ea)]||{};if(!_0x192a2a||_0x581473===void 0x0)return!0x1;let _0xc143f=_0x9d8e5[_0x215966(0x154)]()+'/'+_0x581473+_0x215966(0x244)+encodeURIComponent(_0x192a2a)+'/allowed';if(_0x5ea0ef['url']===_0xc143f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x117e98){const _0xd0e874=_0x235866;var _0x256b84;return(_0x256b84=_0x117e98[_0xd0e874(0x2b4)])==null?void 0x0:_0x256b84[_0xd0e874(0x1ea)];},'mergeParamsToRequest'(_0x17037a,_0x5de442){const _0x390289=_0x235866;let _0x113267=_0x9d8e5['_getAPIPrefixPath']()+_0x390289(0x377),_0x3a6445=_0x17037a[_0x390289(0x3d9)]((_0x3739a9,_0x3cd45e)=>{const _0x379154=_0x390289;let {unitID:_0x5a5929,objectID:_0x2aae33,objectType:_0x187552,actions:_0x382fc2}=_0x3cd45e;return _0x3739a9[_0x5a5929]||(_0x3739a9[_0x5a5929]=Object[_0x379154(0x2cb)](null)),_0x3739a9[_0x5a5929][_0x2aae33]||(_0x3739a9[_0x5a5929][_0x2aae33]={'objectID':_0x2aae33,'objectType':_0x187552,'actions':[]}),_0x3739a9[_0x5a5929][_0x2aae33][_0x379154(0x303)][_0x379154(0x335)](..._0x382fc2),_0x3739a9;},Object['create'](null)),_0x38a41c=[];for(let _0x46efd2 in _0x3a6445)for(let _0x4c0a2d in _0x3a6445[_0x46efd2]){let {actions:_0x33a387,objectType:_0x47bdbc}=_0x3a6445[_0x46efd2][_0x4c0a2d],_0x17f597=[...new Set(_0x33a387)];_0x38a41c[_0x390289(0x335)]({'unitID':_0x46efd2,'objectID':_0x4c0a2d,'objectType':_0x47bdbc,'actions':_0x17f597});}return new _0x4c2e8f('POST',_0x113267,{'headers':_0x5de442[_0x390289(0x3b2)],'withCredentials':_0x5de442['withCredentials'],'responseType':_0x5de442[_0x390289(0x2b9)],'body':{'requests':_0x38a41c}});}},{'distributeResult'(_0x555c3a,_0x25c127){const _0x5e1092=_0x235866;let {objectActions:_0x513b89}=_0x555c3a;return _0x25c127[_0x5e1092(0x1a3)](_0x2443f2=>{const _0x6766b7=_0x5e1092;let {unitID:_0x148f13,objectID:_0x104a78,actions:_0x1699fb}=_0x2443f2,_0x9b546a=_0x513b89[_0x6766b7(0x180)](_0x446e8f=>_0x446e8f[_0x6766b7(0x25e)]===_0x148f13&&_0x446e8f['objectID']===_0x104a78);return{'config':_0x2443f2,'result':{'actions':_0x1699fb[_0x6766b7(0x1a3)](_0x31ebcf=>_0x9b546a==null?void 0x0:_0x9b546a['actions']['find'](_0x264973=>_0x264973['action']===_0x31ebcf))[_0x6766b7(0x27a)](_0x5ba271=>!!_0x5ba271),'error':_0x555c3a[_0x6766b7(0x2cd)]}};});}})}));}[_0x19811e(0x154)](){const _0x550d3f=_0x19811e;let _0x3df6ff=this[_0x550d3f(0x216)][_0x550d3f(0x396)](R);return(_0x3df6ff==null?void 0x0:_0x3df6ff[_0x550d3f(0x34e)])??_0x550d3f(0x36d);}async[_0x19811e(0x2cb)](_0x15c42e){const _0x4fa10a=_0x19811e;let _0x5cff36=this[_0x4fa10a(0x154)]()+'/'+_0x15c42e[_0x4fa10a(0x3b3)]+_0x4fa10a(0x237);return(await this[_0x4fa10a(0x34f)]['post'](_0x5cff36,{'body':_0x15c42e}))[_0x4fa10a(0x1ea)][_0x4fa10a(0x18f)]||'';}async['list'](_0x33d586){const _0x2af936=_0x19811e;let _0x4198e2=this[_0x2af936(0x154)]()+_0x2af936(0x1ff);return(await this['_HTTPService']['post'](_0x4198e2,{'body':_0x33d586}))[_0x2af936(0x1ea)][_0x2af936(0x165)];}async[_0x19811e(0x18a)](_0x1689d1){const _0x4ce917=_0x19811e;var _0x5d13bb;let _0x1bd9b1=this[_0x4ce917(0x154)]()+'/'+_0x1689d1[_0x4ce917(0x3b3)]+_0x4ce917(0x244)+encodeURIComponent(_0x1689d1[_0x4ce917(0x18f)]),_0x362bb3=await this[_0x4ce917(0x34f)]['put'](_0x1bd9b1,{'body':_0x1689d1});if((_0x362bb3==null||(_0x5d13bb=_0x362bb3[_0x4ce917(0x1ea)])==null||(_0x5d13bb=_0x5d13bb[_0x4ce917(0x2cd)])==null?void 0x0:_0x5d13bb[_0x4ce917(0x236)])!==0x1)throw Error(_0x4ce917(0x31e));}async[_0x19811e(0x2e8)](_0x4eed68){const _0x1a0573=_0x19811e;let _0x4bbaf2=this[_0x1a0573(0x154)]()+'/'+_0x4eed68[_0x1a0573(0x3b3)]+_0x1a0573(0x244)+encodeURIComponent(_0x4eed68['objectID'])+_0x1a0573(0x32f);return(await this['_HTTPService'][_0x1a0573(0x128)](_0x4bbaf2,{'body':_0x4eed68}))[_0x1a0573(0x1ea)][_0x1a0573(0x303)];}async['batchAllowed'](_0xf180f){const _0x2c94c2=_0x19811e;let _0x7c6a48=this['_getAPIPrefixPath']()+_0x2c94c2(0x377);return(await this['_HTTPService'][_0x2c94c2(0x128)](_0x7c6a48,{'body':{'requests':_0xf180f}}))[_0x2c94c2(0x1ea)][_0x2c94c2(0x2f1)];}async[_0x19811e(0x30f)](_0x361681){const _0x265c08=_0x19811e;let _0x175460=this[_0x265c08(0x154)]()+'/'+_0x361681[_0x265c08(0x3b3)]+_0x265c08(0x1be),_0x26461e=await this[_0x265c08(0x34f)][_0x265c08(0x128)](_0x175460,{'body':_0x361681});return{'roles':_0x26461e['body'][_0x265c08(0x371)],'actions':_0x26461e['body'][_0x265c08(0x303)]};}async[_0x19811e(0x242)](_0x17ad46){const _0x95dc14=_0x19811e;let _0x5e29bd=this[_0x95dc14(0x154)]()+_0x95dc14(0x326);await this[_0x95dc14(0x34f)]['delete'](_0x5e29bd,{'params':{'collaboratorID':_0x17ad46[_0x95dc14(0x26a)],'objectID':_0x17ad46[_0x95dc14(0x18f)],'unitID':_0x17ad46[_0x95dc14(0x25e)]}});}async[_0x19811e(0x386)](_0x5cbb64){const _0x196422=_0x19811e;let _0x1041ab=this[_0x196422(0x154)]()+_0x196422(0x326);await this[_0x196422(0x34f)][_0x196422(0x33d)](_0x1041ab,{'body':_0x5cbb64});}async['createCollaborator'](_0x1c55e1){const _0x56a8b0=_0x19811e;let _0x4a6480=this[_0x56a8b0(0x154)]()+_0x56a8b0(0x326);await this[_0x56a8b0(0x34f)][_0x56a8b0(0x128)](_0x4a6480,{'body':_0x1c55e1});}async[_0x19811e(0x280)](_0x171773){const _0x4db0f7=_0x19811e;let _0x119d73=this[_0x4db0f7(0x154)]()+'/collaborator',_0x559d60=await this[_0x4db0f7(0x34f)][_0x4db0f7(0x17c)](_0x119d73,{'params':{'objectID':_0x171773[_0x4db0f7(0x18f)],'unitID':_0x171773[_0x4db0f7(0x25e)]}});return this['setCfgEnableObjInherit'](_0x559d60['body'][_0x4db0f7(0x3b4)]??!0x1),_0x559d60['body']['collaborators'];}async['putCollaborators'](_0x458f45){const _0x4007e1=_0x19811e;let _0x2d6380=this[_0x4007e1(0x154)]()+'/collaborator';await this[_0x4007e1(0x34f)][_0x4007e1(0x145)](_0x2d6380,{'body':_0x458f45});}[_0x19811e(0x32d)](_0xdd8cab){const _0x4bfdc2=_0x19811e;this[_0x4bfdc2(0x2bf)]=_0xdd8cab;}[_0x19811e(0x368)](){const _0x3f7a98=_0x19811e;return this[_0x3f7a98(0x2bf)];}};Gn=H([V(0x0,_0x480e6d(_0x4288a3)),V(0x1,_0x480e6d(_0x2477d9))],Gn);function Kn(_0x58707d){const _0x4bcdbc=_0x19811e;let _0x10b699=atob(_0x58707d),_0xd49438=new Uint8Array(_0x10b699[_0x4bcdbc(0x2ab)]);for(let _0x114c92=0x0;_0x114c92<_0x10b699[_0x4bcdbc(0x2ab)];_0x114c92++)_0xd49438[_0x114c92]=_0x10b699['charCodeAt'](_0x114c92);return _0xd49438;}function qn(_0x5785dd){const _0x371b14=_0x19811e;let _0x36865d='';for(let _0x31873d=0x0;_0x31873d<_0x5785dd[_0x371b14(0x2ab)];_0x31873d++)_0x36865d+=String[_0x371b14(0x17a)](_0x5785dd[_0x31873d]);return btoa(_0x36865d);}function Jn(_0x4a122f,_0x1f5a12){const _0xd0fa31=_0x19811e;let _0x4bb260=Kn(_0x1f5a12),_0x24cec2=_0x439cec(0x10),_0x168ee2=_0x255255(_0x4bb260,_0x24cec2)[_0xd0fa31(0x255)](_0x383466(_0x4a122f));return qn(_0x3a4768(_0x24cec2,_0x168ee2));}function Yn(){const _0x439168=_0x19811e;let _0x24704f=_0x2312a4()[_0x439168(0x394)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x24704f){let _0x13b0e7={'time':Math[_0x439168(0x2b0)](Date[_0x439168(0x1de)]()/0x3e8),'domain':location[_0x439168(0x3b5)]};return Jn(JSON[_0x439168(0x3a0)](_0x13b0e7),_0x24704f);}}let Xn=class{constructor(_0x3da831){const _0x578a81=_0x19811e;this[_0x578a81(0x2d7)]=_0x3da831,this[_0x578a81(0x155)]();}[_0x19811e(0x155)](){const _0x29be5b=_0x19811e;this[_0x29be5b(0x2d7)]['registerHTTPInterceptor']({'interceptor':(_0x419ef5,_0x124f03)=>{const _0x14bf6b=_0x29be5b;let _0x5770fa=Yn();return _0x5770fa&&_0x419ef5[_0x14bf6b(0x3b2)][_0x14bf6b(0x1ee)]('x-univer-host',_0x5770fa),_0x124f03(_0x419ef5);}});}};Xn=H([V(0x0,_0x480e6d(_0x4288a3))],Xn);let Zn=class extends _0x39685b{constructor(_0x236184,_0x113add,_0x552793){const _0x52231f=_0x19811e;super(),this[_0x52231f(0x261)]=_0x236184,this[_0x52231f(0x179)]=_0x113add,this['_localCacheService']=_0x552793,z(this,_0x52231f(0x209),new _0x5d64e7(null)),z(this,_0x52231f(0x26b),new _0x33eafc()),z(this,_0x52231f(0x2be),this[_0x52231f(0x209)]['asObservable']()),z(this,_0x52231f(0x37e),this[_0x52231f(0x26b)]['asObservable']());}[_0x19811e(0x194)](){const _0x476bca=_0x19811e;super['dispose'](),this['_unitLoaded$'][_0x476bca(0x279)](),this['_unitInfo$'][_0x476bca(0x279)]();}async[_0x19811e(0x387)](_0x1954aa,_0xe327c3,_0x4b2864,_0x24c353){const _0x1f677f=_0x19811e;this[_0x1f677f(0x209)][_0x1f677f(0x2d6)]({'unitId':_0x1954aa,'type':_0xe327c3,'subUnitId':_0x24c353});let _0x28607b=null;switch(_0xe327c3){case _0x5d23e3[_0x1f677f(0x227)]:_0x28607b=await this['_snapshotService']['loadSheet'](_0x1954aa,_0x4b2864,void 0x0,{'initialSubUnitId':_0x24c353});break;case _0x5d23e3[_0x1f677f(0x126)]:_0x28607b=await this['_snapshotService'][_0x1f677f(0x220)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x305)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x3be)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x328)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x1e9)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x38e)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x153)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x1f5)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x200)](_0x1954aa,_0x4b2864);break;default:this[_0x1f677f(0x261)][_0x1f677f(0x2cd)](_0x1f677f(0x2c9),_0x1f677f(0x278));}return _0x28607b&&this['_unitLoaded$'][_0x1f677f(0x2d6)](_0x28607b),_0x28607b;}async[_0x19811e(0x357)](_0x17ac98,_0x20214e,_0x1873c4){const _0x32179d=_0x19811e;var _0x402db0;this[_0x32179d(0x209)][_0x32179d(0x2d6)]({'unitId':_0x17ac98,'type':_0x20214e,'subUnitId':_0x1873c4});let _0x339f4c=0x0,_0x20beda=await((_0x402db0=this[_0x32179d(0x121)])==null?void 0x0:_0x402db0[_0x32179d(0x152)](_0x17ac98));return _0x20beda&&(_0x20beda['awaitingChangeset']||_0x20beda[_0x32179d(0x16e)][_0x32179d(0x2ab)]!==0x0)&&(_0x339f4c=_0x20beda[_0x32179d(0x2f4)]),_0x339f4c===0x0&&this[_0x32179d(0x261)][_0x32179d(0x1d1)](_0x32179d(0x2c9),_0x32179d(0x397)),this['loadUnitOfRevision'](_0x17ac98,_0x20214e,_0x339f4c,_0x1873c4);}};Zn=H([V(0x0,_0x1ba700),V(0x1,_0x480e6d(_0x2367e2)),V(0x2,_0x1e59a5(U))],Zn);let Qn=class{constructor(_0xb5ae5d,_0x5356a6,_0x3ba0b8){const _0x36b2f2=_0x19811e;this[_0x36b2f2(0x2d7)]=_0xb5ae5d,this['_configService']=_0x5356a6,this[_0x36b2f2(0x2e7)]=_0x3ba0b8,z(this,_0x36b2f2(0x15d),0x0),z(this,'_change$',new _0x33eafc()),z(this,_0x36b2f2(0x160),this[_0x36b2f2(0x3b1)]),z(this,_0x36b2f2(0x37c),new Map());}[_0x19811e(0x1ad)](_0x12478c){const _0x485a2a=_0x19811e;this[_0x485a2a(0x15d)]=_0x12478c,this['_change$']['next'](_0x12478c);}[_0x19811e(0x23b)](_0x4f2fdd,_0x2dbfb4){const _0x300214=_0x19811e;if(_0x2dbfb4===_0x19206b['BASE64']){let _0x201dea=new Image();return _0x201dea[_0x300214(0x35f)]=_0x4f2fdd,_0x201dea;}return this[_0x300214(0x37c)][_0x300214(0x17c)](_0x4f2fdd);}[_0x19811e(0x1a0)](_0x165f64,_0x2c95cd,_0x947189){const _0x1b85b3=_0x19811e;_0x2c95cd!==_0x19206b['BASE64']&&_0x947189!=null&&this[_0x1b85b3(0x37c)]['set'](_0x165f64,_0x947189);}async[_0x19811e(0x1fd)](_0x1bf856){const _0x1983b7=_0x19811e;try{let _0x3ec90f=this[_0x1983b7(0x162)](this[_0x1983b7(0x28c)](),''+_0x1bf856),_0x5e7843=(await this['_httpService'][_0x1983b7(0x17c)](_0x3ec90f))[_0x1983b7(0x1ea)];if(_0x5e7843['error']&&_0x5e7843[_0x1983b7(0x2cd)][_0x1983b7(0x236)]===_0x21e177['OK']){let _0x42e628=_0x26be64(_0x5e7843['url'],this[_0x1983b7(0x32c)]());return Promise[_0x1983b7(0x2c5)](_0x42e628);}return Promise['reject'](_0x5e7843['error']);}catch(_0x28d38f){return Promise['reject'](_0x28d38f);}}async[_0x19811e(0x2cf)](_0x4d35f8){const _0x14470d=_0x19811e;let _0x4d218a='';if(!_0x595060[_0x14470d(0x139)](_0x4d35f8[_0x14470d(0x392)]))return this[_0x14470d(0x3cf)](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7[_0x14470d(0x294)]));if(_0x4d35f8[_0x14470d(0x3c3)]>_0x5a7afa())return this[_0x14470d(0x3cf)](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7[_0x14470d(0x19e)]));try{let _0x2a568a=new FormData();_0x2a568a['append'](_0x14470d(0x1a1),_0x4d35f8);let _0x36ac70=this['_univerInstanceService'][_0x14470d(0x1f8)](),_0x5dff0e=_0x36ac70==null?void 0x0:_0x36ac70['getUnitId']();if(!_0x5dff0e)throw Error(_0x14470d(0x172));let _0x2ed961=this[_0x14470d(0x3d5)]()+_0x14470d(0x298)+_0x4d35f8['size']['toString']()+_0x14470d(0x205)+_0x4a74cc[_0x14470d(0x3c9)]+_0x14470d(0x157)+encodeURIComponent(_0x5dff0e),_0x2e160d={'body':_0x2a568a},_0x16a58b=(await this[_0x14470d(0x2d7)]['post'](_0x2ed961,_0x2e160d))[_0x14470d(0x1ea)];if(typeof _0x16a58b[_0x14470d(0x289)]!=_0x14470d(0x2f5))return this['_decreaseWaiting'](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7['ERROR_IMAGE']));_0x4d218a=_0x16a58b['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7[_0x14470d(0x356)]));}return new Promise((_0x211bfb,_0x2350e7)=>{const _0x49bafc=_0x14470d;let _0x517710=new FileReader();_0x517710['readAsDataURL'](_0x4d35f8),_0x517710[_0x49bafc(0x34c)]=_0x2a5745=>{const _0x1057d2=_0x49bafc;var _0x16efd7;let _0x176c01=(_0x16efd7=_0x2a5745[_0x1057d2(0x135)])==null?void 0x0:_0x16efd7[_0x1057d2(0x2e9)];if(_0x176c01==null){this[_0x1057d2(0x3cf)](),_0x2350e7(Error(_0xe8fff7[_0x1057d2(0x356)]));return;}_0x211bfb({'imageId':_0x5f3466(0x6),'imageSourceType':_0x19206b['UUID'],'source':_0x4d218a,'base64Cache':_0x176c01,'status':_0xe8fff7['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x19811e(0x3d5)](){const _0x330b68=_0x19811e;let _0x265c89=this['_configService'][_0x330b68(0x396)](R);return(_0x265c89==null?void 0x0:_0x265c89[_0x330b68(0x3d4)])??_0x330b68(0x389);}[_0x19811e(0x28c)](){const _0x48d3ed=_0x19811e;let _0x1a87dc=this['_configService']['getConfig'](R);return(_0x1a87dc==null?void 0x0:_0x1a87dc[_0x48d3ed(0x251)])??'/universer-api/file/{fileID}/sign-url';}[_0x19811e(0x32c)](){const _0x5e8af7=_0x19811e;let _0x5f1e78=this['_configService'][_0x5e8af7(0x396)](R);return(_0x5f1e78==null?void 0x0:_0x5f1e78[_0x5e8af7(0x20f)])??location['origin'];}[_0x19811e(0x162)](_0xe108c9,_0x50df0d){const _0x3e7024=_0x19811e;return _0xe108c9[_0x3e7024(0x1c3)](_0x3e7024(0x217),_0x50df0d);}['_decreaseWaiting'](){const _0x392a9c=_0x19811e;--this[_0x392a9c(0x15d)],this[_0x392a9c(0x3b1)][_0x392a9c(0x2d6)](this[_0x392a9c(0x15d)]);}};Qn=H([V(0x0,_0x480e6d(_0x4288a3)),V(0x1,_0x2477d9),V(0x2,_0x480e6d(_0x4f5fa8))],Qn);let $n=class{constructor(_0x1e0189,_0x35d579){const _0x14cdc6=_0x19811e;this[_0x14cdc6(0x216)]=_0x1e0189,this[_0x14cdc6(0x34f)]=_0x35d579;}[_0x19811e(0x154)](){const _0x13e32a=_0x19811e;let _0x4f671a=this[_0x13e32a(0x216)][_0x13e32a(0x396)](R);return(_0x4f671a==null?void 0x0:_0x4f671a[_0x13e32a(0x34e)])??'/universer-api/authz';}async[_0x19811e(0x3a3)](_0x1a20af){const _0x51f3b8=_0x19811e;let _0x528772=this[_0x51f3b8(0x154)]()+_0x51f3b8(0x326);return{'list':[{'title':_0x51f3b8(0x178),'mentions':(await this['_HTTPService'][_0x51f3b8(0x17c)](_0x528772,{'params':{'objectID':_0x1a20af[_0x51f3b8(0x22b)],'unitID':_0x1a20af[_0x51f3b8(0x22b)]}}))[_0x51f3b8(0x1ea)][_0x51f3b8(0x17e)][_0x51f3b8(0x1a3)](_0x1928b6=>({'objectId':_0x1928b6['id'],'name':_0x1928b6[_0x51f3b8(0x325)][_0x51f3b8(0x1a8)],'metadata':{'icon':_0x1928b6['subject']['avatar']},'label':_0x1928b6[_0x51f3b8(0x325)][_0x51f3b8(0x1a8)],'objectType':_0x2cf8e7[_0x51f3b8(0x25b)]})),'metadata':{},'type':_0x2cf8e7[_0x51f3b8(0x25b)]}]};}};$n=H([V(0x0,_0x480e6d(_0x2477d9)),V(0x1,_0x480e6d(_0x4288a3))],$n);let er=class extends _0x39685b{constructor(_0x11b6f9,_0x4db643,_0x47fb8a,_0x58d192,_0x19841c,_0x5a8f3b){const _0x340db3=_0x19811e;super(),this['_injector']=_0x11b6f9,this[_0x340db3(0x2e7)]=_0x4db643,this[_0x340db3(0x283)]=_0x47fb8a,this['_authzIoService']=_0x58d192,this[_0x340db3(0x2d8)]=_0x19841c,this[_0x340db3(0x1af)]=_0x5a8f3b,z(this,_0x340db3(0x395),new Set()),this[_0x340db3(0x34b)](()=>this[_0x340db3(0x395)][_0x340db3(0x2e5)]()),this[_0x340db3(0x34b)](tr(this['_univerInstanceService'])['subscribe'](({unitId:_0x35629b})=>this[_0x340db3(0x395)][_0x340db3(0x347)](_0x35629b))),this[_0x340db3(0x210)](),this[_0x340db3(0x39a)](),[_0x5d23e3[_0x340db3(0x126)],_0x5d23e3[_0x340db3(0x305)],_0x5d23e3['UNIVER_BASE'],_0x5d23e3['UNIVER_BOARD']][_0x340db3(0x332)](_0x5e96f3=>{const _0x2ba13c=_0x340db3;this[_0x2ba13c(0x34b)](this[_0x2ba13c(0x2e7)][_0x2ba13c(0x131)](_0x5e96f3)[_0x2ba13c(0x2c1)](_0x5377e0=>{const _0x5798fe=_0x2ba13c;this[_0x5798fe(0x395)][_0x5798fe(0x2d1)](_0x5377e0[_0x5798fe(0x382)]()),this[_0x5798fe(0x302)][_0x5798fe(0x17c)](_0x38d5f0)[_0x5798fe(0x2fa)](_0x5377e0[_0x5798fe(0x382)]());}));});}[_0x19811e(0x39a)](){const _0x2bd420=_0x19811e;let _0x394e65=async(_0x59af34,_0xf440a)=>{const _0x47194f=_0x32e6;let _0x4ababd=await this[_0x47194f(0x2d8)][_0x47194f(0x254)](_0x59af34);this[_0x47194f(0x21a)]||this[_0x47194f(0x395)]['has'](_0x59af34)||!this[_0x47194f(0x2e7)][_0x47194f(0x3a2)](_0x59af34)||_0x4ababd['event$'][_0x47194f(0x273)](_0xae526b(_0x35583f=>_0x35583f['eventID']===_0x27a7e8[_0x47194f(0x137)]),_0x5e490d(_0x5e3e6a(this[_0x47194f(0x1a7)],this[_0x47194f(0x2e7)][_0x47194f(0x15a)]['pipe'](_0xae526b(_0x2f6c49=>_0x2f6c49[_0x47194f(0x382)]()===_0x59af34)))))[_0x47194f(0x2c1)](_0x5b4ccd=>{const _0xa9163b=_0x47194f;let {reason:_0x5efd17}=_0x5b4ccd[_0xa9163b(0x202)];this['_collaborationUIEventService']['emitEvent']({'id':'CLOSE_ROOM','data':_0x5efd17}),this[_0xa9163b(0x395)][_0xa9163b(0x2d1)](_0x59af34),this['_injector']['get'](_0x38d5f0)[_0xa9163b(0x2fa)](_0x59af34);let _0x173790=nr(_0xf440a);_0x173790!=null&&this[_0xa9163b(0x18c)](_0x59af34,_0x173790,_0x1f5848[_0xa9163b(0x228)],!0x1),this['_collaborationSessionService'][_0xa9163b(0x24e)](_0x59af34);});};tr(this[_0x2bd420(0x2e7)])['pipe'](_0xae526b(({unitId:_0x2e793a})=>!_0x5a7193(_0x2e793a)),_0x5e490d(this[_0x2bd420(0x1a7)]))[_0x2bd420(0x2c1)](({type:_0x72ab82,unitId:_0xc4dc59})=>{const _0x3a3e29=_0x2bd420;_0x394e65(_0xc4dc59,_0x72ab82)[_0x3a3e29(0x34a)](_0xd735fd=>this[_0x3a3e29(0x302)]['get'](_0x1ba700)[_0x3a3e29(0x2cd)](_0xd735fd));});}[_0x19811e(0x210)](){const _0x44d88e=_0x19811e;let _0x1dc372=async(_0x3b7d5d,_0x3d658c)=>{const _0x1ce2bf=_0x32e6;let _0x5d096b=await this[_0x1ce2bf(0x2d8)]['requireSession'](_0x3b7d5d);if(!(this[_0x1ce2bf(0x21a)]||this['_closedUnits'][_0x1ce2bf(0x1d6)](_0x3b7d5d)||!this['_univerInstanceService'][_0x1ce2bf(0x3a2)](_0x3b7d5d))){if(_0x3d658c===_0x5d23e3[_0x1ce2bf(0x227)]){let _0x4166f2=this[_0x1ce2bf(0x302)][_0x1ce2bf(0x17c)](_0x56ae16);await _0x4166f2['initWorkbookPermissionChange'](_0x3b7d5d),_0x5d096b[_0x1ce2bf(0x360)][_0x1ce2bf(0x273)](_0xae526b(_0x1cd2d5=>_0x1cd2d5['eventID']===_0x27a7e8[_0x1ce2bf(0x32a)]),_0x5e490d(_0x5e3e6a(this['dispose$'],_0x5d096b[_0x1ce2bf(0x360)][_0x1ce2bf(0x273)](_0xae526b(_0x58f7ee=>_0x58f7ee[_0x1ce2bf(0x13c)]===_0x27a7e8[_0x1ce2bf(0x137)])),this[_0x1ce2bf(0x2e7)]['unitDisposed$']['pipe'](_0xae526b(_0x5f1750=>_0x5f1750[_0x1ce2bf(0x382)]()===_0x3b7d5d)))))[_0x1ce2bf(0x2c1)](_0x440a5a=>{const _0x4871be=_0x1ce2bf;let {objectId:_0x10faba}=_0x440a5a[_0x4871be(0x202)];_0x10faba===_0x3b7d5d?_0x4166f2[_0x4871be(0x213)](_0x3b7d5d):_0x4166f2[_0x4871be(0x16f)](_0x3b7d5d,_0x10faba);});return;}_0x5d096b[_0x1ce2bf(0x360)]['pipe'](_0xae526b(_0x437905=>_0x437905[_0x1ce2bf(0x13c)]===_0x27a7e8[_0x1ce2bf(0x32a)]),_0x5e490d(_0x5e3e6a(this['dispose$'],_0x5d096b[_0x1ce2bf(0x360)][_0x1ce2bf(0x273)](_0xae526b(_0x5e5853=>_0x5e5853[_0x1ce2bf(0x13c)]===_0x27a7e8[_0x1ce2bf(0x137)])),this['_univerInstanceService']['unitDisposed$'][_0x1ce2bf(0x273)](_0xae526b(_0x5a1dcf=>_0x5a1dcf[_0x1ce2bf(0x382)]()===_0x3b7d5d)))))[_0x1ce2bf(0x2c1)](()=>{const _0x4df9b6=_0x1ce2bf;this['_refreshUnitPermission'](_0x3b7d5d,_0x3d658c)[_0x4df9b6(0x34a)](_0x1ddd96=>this[_0x4df9b6(0x302)][_0x4df9b6(0x17c)](_0x1ba700)[_0x4df9b6(0x2cd)](_0x1ddd96));}),await this[_0x1ce2bf(0x23a)](_0x3b7d5d,_0x3d658c);}};tr(this[_0x44d88e(0x2e7)])[_0x44d88e(0x273)](_0xae526b(({unitId:_0x5ea4f4})=>!_0x5a7193(_0x5ea4f4)),_0x5e490d(this[_0x44d88e(0x1a7)]))[_0x44d88e(0x2c1)](({type:_0x36eab9,unitId:_0x5acfc3})=>{const _0x5ced3f=_0x44d88e;_0x1dc372(_0x5acfc3,_0x36eab9)['catch'](_0x24e449=>this['_injector'][_0x5ced3f(0x17c)](_0x1ba700)['error'](_0x24e449));});}async[_0x19811e(0x23a)](_0x25d126,_0xfa9325){const _0x248c61=_0x19811e;let _0x20389b=nr(_0xfa9325);if(_0x20389b==null)return;let _0x1fbba2=this['_injector'][_0x248c61(0x17c)](_0x38d5f0);if(_0x1fbba2['supports']({'unitId':_0x25d126,'objectId':_0x25d126,'objectType':_0x20389b})){await _0x1fbba2['refreshUnit'](_0x25d126);return;}let _0x8b41cb=this[_0x248c61(0x25f)](_0x25d126,_0x20389b);if(!_0x8b41cb[_0x248c61(0x2ab)])return;let _0x18c649=await this[_0x248c61(0x148)][_0x248c61(0x2e8)]({'objectID':_0x25d126,'objectType':_0x20389b,'unitID':_0x25d126,'actions':_0x8b41cb[_0x248c61(0x1a3)](({action:_0x1ce138})=>_0x1ce138)});this[_0x248c61(0x21a)]||this[_0x248c61(0x395)][_0x248c61(0x1d6)](_0x25d126)||!this[_0x248c61(0x2e7)]['getUnit'](_0x25d126)||_0x18c649[_0x248c61(0x332)](_0x2bf7c6=>{const _0x591c62=_0x248c61;let _0x19a136=_0x2bf7c6[_0x591c62(0x313)],_0x380f20=_0x2bf7c6[_0x591c62(0x2e8)];_0x19a136!=null&&_0x380f20!=null&&_0x8b41cb[_0x591c62(0x27a)](_0x1e27d9=>_0x1e27d9[_0x591c62(0x313)]===_0x19a136)[_0x591c62(0x332)](_0x3ab3ae=>this[_0x591c62(0x283)]['updatePermissionPoint'](_0x3ab3ae['id'],_0x380f20));});}[_0x19811e(0x25f)](_0x2ff7ab,_0x1bee50){const _0x4651f8=_0x19811e;let _0x3fbc86=[];return this[_0x4651f8(0x283)][_0x4651f8(0x13f)]()[_0x4651f8(0x332)]((_0x4158a7,_0x506d1e)=>{const _0x1d8c8e=_0x4651f8;_0x4158a7[_0x1d8c8e(0x2c1)](_0x2a99c4=>{const _0x56c22a=_0x1d8c8e;_0x2a99c4['type']===_0x1bee50&&_0x56c22a(0x22b)in _0x2a99c4&&_0x2a99c4['unitId']===_0x2ff7ab&&(!(_0x56c22a(0x300)in _0x2a99c4)||_0x2a99c4[_0x56c22a(0x300)]===_0x2ff7ab)&&_0x3fbc86[_0x56c22a(0x335)]({'id':_0x506d1e,'action':_0x2a99c4[_0x56c22a(0x27e)]});})[_0x1d8c8e(0x185)]();}),_0x3fbc86;}[_0x19811e(0x18c)](_0x152f88,_0x33678d,_0x479200,_0x4dd2c0){const _0x368e38=_0x19811e;this[_0x368e38(0x283)]['getAllPermissionPoint']()['forEach']((_0x462da3,_0x532799)=>{const _0x46597e=_0x368e38;let _0xe06296=!0x1;_0x462da3[_0x46597e(0x2c1)](_0x3671ff=>{const _0x5edd84=_0x46597e;_0xe06296=_0x3671ff[_0x5edd84(0x392)]===_0x33678d&&_0x3671ff[_0x5edd84(0x27e)]===_0x479200&&'unitId'in _0x3671ff&&_0x3671ff[_0x5edd84(0x22b)]===_0x152f88&&(!('objectId'in _0x3671ff)||_0x3671ff[_0x5edd84(0x300)]===_0x152f88);})['unsubscribe'](),_0xe06296&&this['_permissionService'][_0x46597e(0x3d1)](_0x532799,_0x4dd2c0);});}};er=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x4f5fa8),V(0x2,_0x2197a8),V(0x3,_0x3a226b),V(0x4,_0x480e6d(In)),V(0x5,_0x480e6d(B))],er);function tr(_0xd17465){const _0xf45ac6=_0x19811e;return _0x5e3e6a(...[_0x5d23e3['UNIVER_SHEET'],_0x5d23e3[_0xf45ac6(0x126)],_0x5d23e3[_0xf45ac6(0x305)],_0x5d23e3[_0xf45ac6(0x328)],_0x5d23e3[_0xf45ac6(0x38e)]][_0xf45ac6(0x1a3)](_0x13d58a=>_0xd17465['getTypeOfUnitAdded$'](_0x13d58a)[_0xf45ac6(0x273)](_0x49f6f7(_0x5b9220=>({'type':_0x13d58a,'unitId':_0x5b9220[_0xf45ac6(0x225)][_0xf45ac6(0x382)]()})))));}function nr(_0x13e3b5){const _0x5b62d8=_0x19811e;switch(_0x13e3b5){case _0x5d23e3[_0x5b62d8(0x227)]:return _0x5e7d94[_0x5b62d8(0x2a7)];case _0x5d23e3[_0x5b62d8(0x126)]:return _0x5e7d94['Document'];case _0x5d23e3['UNIVER_SLIDE']:return _0x5e7d94[_0x5b62d8(0x383)];case _0x5d23e3[_0x5b62d8(0x328)]:return _0x5e7d94['Board'];case _0x5d23e3[_0x5b62d8(0x38e)]:return _0x5e7d94[_0x5b62d8(0x3e1)];default:return;}}let rr=class{constructor(_0x16d8cd,_0x465692){this['_configService']=_0x16d8cd,this['_httpService']=_0x465692;}async[_0x19811e(0x318)](_0x41a37d,_0x2a2845){const _0x9d7a33=_0x19811e;var _0x448312;let {unitID:_0x1fbdf1,type:_0x3d3306,revision:_0x55ab3a=0x0}=_0x2a2845,_0x3a3b5a=this[_0x9d7a33(0x247)]()+'/'+_0x3d3306+'/unit/'+_0x1fbdf1+_0x9d7a33(0x3ab)+_0x55ab3a,_0x42dcf2=(await this[_0x9d7a33(0x2d7)][_0x9d7a33(0x17c)](_0x3a3b5a))[_0x9d7a33(0x1ea)],_0x348464=(_0x448312=_0x42dcf2[_0x9d7a33(0x2ed)])==null?void 0x0:_0x448312['workbook'];if(_0x348464){let _0x1e71da=_0x348464==null?void 0x0:_0x348464[_0x9d7a33(0x1ec)];_0x348464[_0x9d7a33(0x1ec)]=_0xa79221[_0x9d7a33(0x393)](_0x4ce680(_0x1e71da)),Object['entries'](_0x348464[_0x9d7a33(0x1f7)])[_0x9d7a33(0x332)](([,_0x371749])=>{const _0x26ef0f=_0x9d7a33;let _0x1cd4b8=_0x371749[_0x26ef0f(0x1ec)];_0x371749[_0x26ef0f(0x1ec)]=_0xa79221['encode'](_0x4ce680(_0x1cd4b8));});}return _0x42dcf2;}async['getSheetBlock'](_0x3341eb,_0xbe12cc){const _0x345af9=_0x19811e;let {unitID:_0x1b7a7d,type:_0x5e1aef,blockID:_0x40353d}=_0xbe12cc,_0x41ce48=this[_0x345af9(0x16c)]()+'/'+_0x5e1aef+_0x345af9(0x186)+_0x1b7a7d+_0x345af9(0x39c)+_0x40353d;return(await this[_0x345af9(0x2d7)][_0x345af9(0x17c)](_0x41ce48))['body'];}async[_0x19811e(0x253)](_0x48fe0d,_0x35fd58){const _0x4490a6=_0x19811e;let {unitID:_0x403a2e,type:_0x5bc6c2,blockID:_0x714c10}=_0x35fd58,_0x3bab48=this[_0x4490a6(0x16c)]()+_0x4490a6(0x39c)+_0x5bc6c2+_0x4490a6(0x186)+_0x403a2e+'/block/'+_0x714c10;return(await this[_0x4490a6(0x2d7)][_0x4490a6(0x17c)](_0x3bab48))[_0x4490a6(0x1ea)];}async[_0x19811e(0x19a)](_0x575528,_0xa3b550){const _0x44d6fc=_0x19811e;let {unitID:_0x42be3,type:_0xdbc8cb,from:_0xaad239,to:_0x343b3d}=_0xa3b550,_0x5a78e1=this[_0x44d6fc(0x16c)]()+'/'+_0xdbc8cb+_0x44d6fc(0x186)+_0x42be3+_0x44d6fc(0x198)+_0xaad239+_0x44d6fc(0x268)+_0x343b3d;return(await this['_httpService'][_0x44d6fc(0x17c)](_0x5a78e1))['body'];}[_0x19811e(0x247)](){const _0x29d973=_0x19811e;return this['_configService']['getConfig'](_0x29d973(0x2b5))??this[_0x29d973(0x16c)]();}[_0x19811e(0x16c)](){const _0x217eae=_0x19811e;let _0x22400c=this[_0x217eae(0x216)]['getConfig'](R);return(_0x22400c==null?void 0x0:_0x22400c['snapshotServerUrl'])??_0x217eae(0x380);}async[_0x19811e(0x35d)](_0x2e75ff,_0x5c9a5f){const _0x5275a2=_0x19811e;let _0x51feed=_0x5275a2(0x361)+_0x5c9a5f[_0x5275a2(0x392)]+_0x5275a2(0x186)+_0x5c9a5f['unitID']+_0x5275a2(0x299);return(await this['_httpService'][_0x5275a2(0x17c)](_0x51feed,{'params':{'resourceId':JSON['stringify'](_0x5c9a5f['resourceIDs'])}}))[_0x5275a2(0x1ea)];}[_0x19811e(0x26f)](){const _0x1ed675=_0x19811e;throw Error(_0x1ed675(0x366));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x19811e(0x1c8)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x19811e(0x2ad)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x2642aa=_0x19811e;throw Error(_0x2642aa(0x366));}[_0x19811e(0x295)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};rr=H([V(0x0,_0x2477d9),V(0x1,_0x480e6d(_0x4288a3))],rr);function _0x1be8(){const _0x428d3b=['encrypt','_rescheduleHeartbeat','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByIMECache','_emitMembers','function','PERSON','_sessions','attachment','unitID','_getUnitPermissionPoints','_showConflictProcessingNotification','_logService','IDLE','OTHER_CLIENTS_EDITING','_onConnectionFailed','CHANGESET_REJ','session.room-full','columnGroups','&to=','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','collaboratorID','_unitLoaded$','PSEUDO_FETCH_MISSING_RESULT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','init','saveSnapshot','_transformRemoteChangesetByStateCache','_revisionService','save\x20fail\x20reason\x20is\x20','pipe','4411326YkLDhR','_acknowledgeAwaiting','sendHeartbeatTimer','pending','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','complete','filter','_type','tables','fetching\x20missing\x20changesets\x20from\x20','subType','socketService','listCollaborators','pauseCollaboration','members','_permissionService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[CollaborationUndoRedoService]','_hasSessionsForEndpoint','onTransformSelections','UNISCRIPT_RUN','FileId','not_collab','_tryReconnect','_getSignURL','_snapshotServerService','1.0.2','_init','[OfflineState]:\x20received\x20changeset.','_collabSessionService','_transformAndApplyRemoteChangeset','indexOf','ERROR_IMAGE_TYPE','getLatestCsReqIdBySid','_shouldReportTelemetry','_onRemoteChangeset','?size=','/resources','getValue','_transformIMECache','_onConnectionOpen','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','JOIN_ROOM_FAILED','then','getUnitStatus$','session.room-cnt-exceeds','sessionStatus','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','state$','infoRsp','_members$','Workbook','sort','COLLABORATION_ENDPOINT_INVALID','3062735ZrqxwQ','length','onTransformState','saveChangeset','HEARTBEAT_TIMEOUT','HEARTBEAT_INTERVAL','floor','splice','_sendHeartbeat','userID','requestParams','SNAPSHOT_URL_KEY','isPermissionRej','_networkConditionService','maxSize','responseType','m2Prime','collaboration-client.config','_socketMessageSubscription','_adapter','unitInfo$','_cfgEnableObjInherit','_initMergeInterceptor','subscribe','incrementRevOfUnit','getCollabEntity','[CollaborationSessionService]','resolve','endpoint','_substituteUndoStack','CONFLICT_PROCESSING','[DataLoaderService]','resolveUnit','create','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','error','commit','saveImage','onRemoteRej','add','[CollaborationSessionService]:\x20socket\x20error','_createInitialState','retryConnectingTimer','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','next','_httpService','_collaborationSessionService','cmd','_roomCreated$','_redoStacks','/universer-api/oidc/authpage','origin','toggleOffline','_onRecvEvent','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','LIVESHARE_TERMINATE','_getConfig','iterator','unitType','clear','_tryEnsureSocket','_univerInstanceService','allowed','result','getCurrentRevOfUnit','_startTelemetryCollaborationNewChangeset','_stopTelemetryCollaborationNewChangeset','snapshot','memberID','[SyncedState]:\x20received\x20acknowledgement.','univer-pro.collaboration-client.network-condition.service','objectActions','version','NOT_COLLAB','rev','string','_transformStack','retryConnectingInterval','objectPermissionTypes','Univer','clearUnit','INGEST','base-ui.attachment-io.service','fetch_missing','revision','unknown','objectId','_state','_injector','actions','\x20to\x20','UNIVER_SLIDE','340543QJjqPL','NO_OTHER_CLIENTS_EDITING','HELLO','values','appendMutation','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_createSocket','socketReady','PERMISSION_DENIED','listRoles','_commentService','capture','endsWith','action','_state$','POST','asObservable','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getUnitOnRev','_clearHeartbeatTimer','_sender','onTransformRemoteChangesetByStateCache','localeService','_identity','Failed\x20to\x20update\x20permission\x20point','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','LIVESHARE_FETCH_OPERATIONS','_updateStatus','/universer-api/uniscript','_incrementRevisionNumber','updateMember','subject','/collaborator','synced','UNIVER_BOARD','_waitForHeartbeatResponse','UPDATE_PERMISSION_OBJ','fetchThroughInterceptors','_getDownloadEndpointURL','setCfgEnableObjInherit','transformUndoRedo','/allowed','transformChangesets','/universer-api/file/{fileID}/sign-url','forEach','_roomMembers','reqId','push','PERMISSION_REJ','SUBMIT_CHANGESET_TIMEOUT','_docStateChangeManagerService','_telemetryService','reject','_transformUndoredo','findIndex','patch','onRemoteAck','_pendingMutations','_onUserLeave','_initDependencies','SOCKET_FAILED','FAIL','MSG_FOR_ERROR','4742FaTLSO','getCollabEntity$','delete','UPDATE_CURSOR','setConfig','catch','disposeWithMe','onload','USERS_ENTER','authzUrl','_HTTPService','getMemberID','[CollaborationSession]','interceptor','_getRedoStack','_prepareConflictRecovery','editing\x20status\x20changed\x20to','ERROR_IMAGE','loadUnit','csRejEvent','params','_scheduleCollaborationTimeoutTimer','symbol','_executeRemoteChangeset','getResourcesRequest','_upload','src','event$','/universer-api/snapshot/','_fetchMissChangesets','setShowComponents','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_socket','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','getCfgEnableObjInherit','updateOfflineData','onRemoteRetry','_getCurrentRevision','\x20-\x20','/universer-api/authz','onSyncEditingCollabCursor','_createHandler','apply','roles','open$','_eventService','toString','waitForRoom$','_onRemoteRetry','/-/object/-/batch_allowed','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_clearUndo','JOIN_ROOM_PERMISSION_DENIED','_remoteChangesetQueue','_imageSourceCache','trim','unitLoaded$','text-x','/universer-api/snapshot','COMPRESS_MUTATION_APPLY','getUnitId','Slide','number','GLOBAL_ROOMS_CNT_EXCEEDS','updateCollaborator','loadUnitOfRevision','_clearCollaborationTimeoutTimer','/universer-api/stream/file/upload','commentUpdate$','JOIN_ROOM_FULL','localCacheService','_entities','UNIVER_BASE','_entityInit$','Error\x20on\x20receiving\x20event','_socketService','type','encode','__Key__','_closedUnits','getConfig','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','NEW_CHANGESETS','_singleActiveUnitService','_initCloseConn','FETCH_MISSING','/block/','_onJoinRoomEvent','getTypeOfUnitAdded$','_telemetryInfo','stringify','PENDING','getUnit','list','_userManagerService','sessionStatus$','getUploadOptions','c1Prime','parse','telemetry\x20info\x20is\x20not\x20initialized','_commandService','/rev/','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','awaiting','close$','UNIVER_COLLABORATION_CLIENT_PLUGIN','endpointKey','_change$','headers','objectType','cfgEnableObjInherit','hostname','[CollaborationEntity]','collaboration-client.local-cache-service','_scheduleCompleteTimestamp','_socketChannels','registerHTTPInterceptor','80FprHxB','localUnitId','toRemote','loadSlide','_clearRetryConnectingTimer','AWAITING_WITH_PENDING','CLOSE_ROOM','isArray','size','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','range','newCsEvent','getCurrentSelections','28383tatrAb','UnitEmbedded','_resendTimer','onlyLocal','OFFLINE','_disableEditing','_throwTelemetryCollaborationNewChangeset','_decreaseWaiting','addHandlerCallback','updatePermissionPoint','_replayCachedMutations','_members','uploadFileServerUrl','_getUploadFileURL','_handleRemoteChangesets','readyForCollab','_transformService','reduce','roomInfos','onMissingChangesets','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','textRanges','UUID','_clearScheduledTask','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','Base','_localCacheService','/universer-api/user/session-ticket','LIVESHARE_OPERATION','LIVESHARE_NEW_HOST','_prepareTransformSelections','UNIVER_DOC','session.room-permission-denied','post','upload','getRoom','_createInitialStateImpl','_event$','_checkMissing','_queuedRemoteChangesets','onCommentUpdate','SYNCED','getTypeOfUnitDisposed$','stopTime','object','min','target','changeset','SHOULD_CLOSE_CONN','onPrepareTransformSelections','includes','_onConflict','univer-pro.collaboration-client-socket-service','eventID','joinEvent','_applyRemoteChangeset','getAllPermissionPoint','enableOfflineEditing','slice','onMutationExecutedForCollab','_createSession','executeCommand','put','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onLocalMutation','_authzIoService','getAllMembers','removeMember','_joinRoom','CONFLICT_CACHE_CLEAR_FAILED','getInterceptPoints','_undoRedoService','collabSubmitChangesetUrl','_lockTransition','_handler','loadOfflineData','loadBase','_getAPIPrefixPath','_initRequestHeader','sendChangesetTimeout','&assign=','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','fetchMiss','unitDisposed$','40dhmOFl','csShouldRetryEvent','_waitCount','_onUserJoin','getSheetId','change$','_localeService','_replaceFileID','_collaborationPaused','univer-pro.collaboration-client-adapter-service','objects','_transformSelections','call','_isEchoedAwaitingChangeset','timeoutTimer','_clearRedo','_resendWithTimeout','_getAPIPrefix','USERS_LEAVE','mutations','refreshPermission','_status$','_clearTimeoutTimer','unitId\x20is\x20not\x20found','send','uniscriptRunEvent','duration','_unlockTransition','_commentUpdate$','People','_snapshotService','fromCharCode','url','get','status$','collaborators','close','find','socketMessageSubscription','_getLoginPath','_getSocketChannel','_sendingTimer','unsubscribe','/unit/','append','changesets','connection\x20error','update','_syncEditingCollabCursor','_updateUnitPermissionPoint','status','socket$','objectID','OTHER_CLIENT_EDITING','override','offline','compose','dispose','state','_acknowledgeAwaitingIfReady','href','/fetchmissing?from=','_sessionStatus$','fetchMissingChangesets','FETCH_MISS','conflict','transformMutationsWithChangeset','ERROR_EXCEED_SIZE','startsWith','addImageSourceCache','file','_sessionChannels','map','_substituteRedoStack','updateCursorEvent','session.room-not-exists','dispose$','name','location','some','_maxTotalRetryTimeout','awaiting_with_pending','setWaitCount','loginUrlKey','_collaborationUIEventService','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_updateLocalCache','transformSelections','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','socket\x20close','[UniverCollaborationClientPlugin]','COMMENT_UPDATE','permissionRejEvent','pluginName','getWorkbookSelections','CHANGESET_SHOULD_RETRY','getMember','routeKey','liveShareOperation','/role','_transitionLocked','subUnitId','onStateChange','constructor','replace','_instanceService','method','equals','hasOwnProperty','saveSheetBlock','submit\x20changeset\x20error!','HEARTBEAT','_handlerCallback','_getUndoStack','_config','leaveEvent','_removeRoom','ONLINE','debug','createInstance','COMPRESS_MUTATION_SEND','online$','missingChangesets','has','372zAQukJ','getOwnPropertyDescriptor','JOIN','candidateSocket','_getSendChangesetTimeout','max','onRemoteChangeset','now','retryCount','OPTIONAL','every','_updateState','getUnitType','_transformRemoteChangesetByIMECache','editingUnit','_acknowledgedAwaitingRevision','RECV','_changesetSessionId','loadBoard','body','?url=','originalMeta','enableAuthServer','set','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[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.','message$','fromCollab','session.join-failed','_pendingSessions','UNIVER_PDF','SUBMIT_CHANGESET','sheets','getFocusedUnit','[PendingState]:\x20received\x20acknowledgement.','failed\x20to\x20apply\x20missed\x20changesets!','packageName','_changesetReqId','getImage','_memberService','/-/object/list','loadPdf','prototype','data','CHANGESET_ACK','LIVESHARE_REQUEST_HOST','&source=','_collaborationTimeoutTimer','enableSingleActiveInstanceLock','transformStack\x20failed!','_unitInfo$','ws://127.0.0.1:8000/universer-api/comb/connect','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformStateCache','_compressMutationService','defineProperty','downloadEndpointUrl','_initUnitPermissionChange','getTime','1325250HrzmFA','initWorkbookPermissionChange','toggleOnline','_getCtorByUniverInstanceType','_configService','{fileID}','resend','unit-cache-','_disposed','AWAITING','_awaitingChangeset','CONFLICT','getCurrentUser','_resendTimeout','loadDoc','onSendChangeset','_onCombEvent','/universer-api/comb','_sheetTransformSelectionsService','unit','_onLocalMutation','UNIVER_SHEET','Edit','toPrimitive','_showConflictNotification','unitId','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onMissedChangesetFetched','from','sid','_onOffline','_doCreateSocket','accept','LEAVE','/new_changes','_schedule','code','/object','_listenToNetworkCondition','error$','_refreshUnitPermission','getImageSourceCache','session','64IUPIOr','selections','SOCKET_FAILED_RETRY','_startCollaboration','JOINING','deleteCollaborator','confirm','/object/','_onRemoteACK','decorate','getSnapshotAPIPath','createSocket','joinRsp','emitEvent','onTransformIME','baseRev','6063508hziTqU','closeSession','MUTATION','RETRY_CONNECTING_MAX_COUNT','signUrlServerUrl','collabWebSocketUrl','getDeserializedSheetBlock','requireSession'];_0x1be8=function(){return _0x428d3b;};return _0x1be8();}let ir=class extends _0x1720a8{constructor(_0x264b2f,_0x114095,_0x341bb2,_0x271b9d,_0x1c5512,_0x2088cf){const _0x5c6da7=_0x19811e;super(_0x264b2f,_0x114095,_0x341bb2,_0x271b9d),this[_0x5c6da7(0x3d8)]=_0x1c5512,this['_logService']=_0x2088cf;}[_0x19811e(0x32e)](_0xdfa61,_0x400fae){const _0x5e23d9=_0x19811e;let _0x25688a=this[_0x5e23d9(0x1cc)](_0xdfa61);if(_0x25688a)try{let _0x59bc74=this[_0x5e23d9(0x2f6)](_0x25688a,_0x400fae);this[_0x5e23d9(0x2c7)](_0xdfa61,_0x59bc74);}catch(_0x3f3299){this[_0x5e23d9(0x261)][_0x5e23d9(0x2cd)](_0x5e23d9(0x285),_0x3f3299),this[_0x5e23d9(0x379)](_0xdfa61);}let _0x5b070a=this['_getRedoStack'](_0xdfa61);if(_0x5b070a)try{let _0x287102=this[_0x5e23d9(0x2f6)](_0x5b070a,_0x400fae);this['_substituteRedoStack'](_0xdfa61,_0x287102);}catch(_0xd9f218){this[_0x5e23d9(0x261)][_0x5e23d9(0x2cd)](_0xd9f218),this[_0x5e23d9(0x16a)](_0xdfa61);}}['_clearUndo'](_0x4c6144){const _0xfabd94=_0x19811e;let _0x2365e5=this[_0xfabd94(0x1cc)](_0x4c6144);_0x2365e5&&(_0x2365e5[_0xfabd94(0x2ab)]=0x0,this[_0xfabd94(0x321)]());}[_0x19811e(0x16a)](_0x1b5f3f){const _0x49faa7=_0x19811e;let _0x4ccc21=this[_0x49faa7(0x353)](_0x1b5f3f);_0x4ccc21&&(_0x4ccc21[_0x49faa7(0x2ab)]=0x0,this[_0x49faa7(0x321)]());}[_0x19811e(0x2c7)](_0x26ac3d,_0x197ee1){const _0x4d682a=_0x19811e;this['_undoStacks'][_0x4d682a(0x1ee)](_0x26ac3d,_0x197ee1),this[_0x4d682a(0x321)]();}[_0x19811e(0x1a4)](_0x389ee2,_0x2aa558){const _0x57f226=_0x19811e;this[_0x57f226(0x2db)][_0x57f226(0x1ee)](_0x389ee2,_0x2aa558),this[_0x57f226(0x321)]();}[_0x19811e(0x2f6)](_0x1cf9c7,_0x50f44a){const _0x42b002=_0x19811e;let _0x3f966a=[],_0x563db3=_0x50f44a,_0x46aad2=_0x50f44a;for(let _0x240b8b=_0x1cf9c7[_0x42b002(0x2ab)]-0x1;_0x240b8b>=0x0;_0x240b8b--){let {unitID:_0x5eac39,undoMutations:_0xd6f055,redoMutations:_0x2510cc}=_0x1cf9c7[_0x240b8b],_0x21ee4e=this[_0x42b002(0x3d8)][_0x42b002(0x19d)](_0x563db3,_0xd6f055),_0x44cf4e=this[_0x42b002(0x3d8)][_0x42b002(0x19d)](_0x46aad2,_0x2510cc);if(_0x4532f4(_0x21ee4e)||_0x4532f4(_0x44cf4e)){this[_0x42b002(0x261)][_0x42b002(0x2cd)](_0x42b002(0x285),_0x42b002(0x208),_0x21ee4e,_0x44cf4e);break;}_0x563db3=_0x21ee4e[_0x42b002(0x3a7)],_0x46aad2=_0x44cf4e[_0x42b002(0x3a7)],_0x3f966a[_0x42b002(0x335)]({'unitID':_0x5eac39,'undoMutations':_0x21ee4e['m2Prime'],'redoMutations':_0x44cf4e[_0x42b002(0x2ba)]});}return _0x3f966a['reverse']();}};ir=H([V(0x0,_0x4f5fa8),V(0x1,_0xef393c),V(0x2,_0x1ac843),V(0x3,_0x2477d9),V(0x4,_0x435fb7),V(0x5,_0x1ba700)],ir);let ar=class extends _0x370b6f{constructor(_0x43b2ce=gt,_0x2b31c4,_0x1a2ae4,_0x2c2e69){const _0xf9302d=_0x19811e;super(),this[_0xf9302d(0x1cd)]=_0x43b2ce,this[_0xf9302d(0x261)]=_0x2b31c4,this[_0xf9302d(0x302)]=_0x1a2ae4,this[_0xf9302d(0x216)]=_0x2c2e69;let {..._0x2d40e8}=_0x3d5516({},gt,this[_0xf9302d(0x1cd)]);if(!_0x2d40e8['socketService'])throw Error(_0xf9302d(0x29d));this[_0xf9302d(0x1cd)]=_0x2d40e8,this['_configService'][_0xf9302d(0x349)](R,_0x2d40e8);}['onStarting'](){const _0x18a09e=_0x19811e;this[_0x18a09e(0x216)]['setConfig'](_0x1e8245,this[_0x18a09e(0x1cd)][_0x18a09e(0x2f8)]??[]),this['_registerDependencies'](),this[_0x18a09e(0x341)]();}['_registerDependencies'](){const _0xc3bc36=_0x19811e;var _0xb96505,_0x5f1b6e;this[_0xc3bc36(0x302)]['has'](_0x3d966a)&&this[_0xc3bc36(0x261)][_0xc3bc36(0x2cd)](_0xc3bc36(0x1b5),_0xc3bc36(0x1ef));let _0x4735d2=_0x3b2c51([[_0x3d966a,{'useClass':ir}],[Nn,{'useValue':Pn()}],[In],[Mt],[Jt],[Wn],[Xn],[jt],[er],[B],[Zn],[An,{'useClass':this[_0xc3bc36(0x1cd)][_0xc3bc36(0x27f)]}],[_0x14257b,{'useClass':rr}],[_0x3a226b,{'useClass':Gn}],[_0x393423,{'useClass':Qn}],[Vn,{'useClass':Hn}],[_0x42b5e6,{'useClass':$n}],[Ln],[Bn]],(_0xb96505=this[_0xc3bc36(0x1cd)])==null?void 0x0:_0xb96505[_0xc3bc36(0x191)]);if(!((_0x5f1b6e=this[_0xc3bc36(0x1cd)])!=null&&_0x5f1b6e[_0xc3bc36(0x207)])){let _0x5efcf3=_0x4735d2[_0xc3bc36(0x33c)](([_0x4c0ea7])=>_0x4c0ea7===W);_0x5efcf3!==-0x1&&_0x4735d2[_0xc3bc36(0x2b1)](_0x5efcf3,0x1);}_0x1bacd8(this[_0xc3bc36(0x302)],_0x4735d2);}[_0x19811e(0x341)](){const _0x2b5beb=_0x19811e;var _0x1d8a87,_0x3622a8;if(this[_0x2b5beb(0x302)][_0x2b5beb(0x17c)](_0x4288a3)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x4967eb({'maxParallel':0x6})}),!((_0x1d8a87=this[_0x2b5beb(0x1cd)])!=null&&_0x1d8a87[_0x2b5beb(0x140)])){var _0x5dcefb;(_0x5dcefb=this[_0x2b5beb(0x302)]['get'](U,_0x126bf3[_0x2b5beb(0x1e0)]))==null||_0x5dcefb['disableLocalCache']();}(_0x3622a8=this[_0x2b5beb(0x1cd)])!=null&&_0x3622a8[_0x2b5beb(0x1ed)]&&_0x3d1e12(this[_0x2b5beb(0x302)],[[Wn]]),_0x3d1e12(this['_injector'],[[Xn],[Ln],[er]]);}};z(ar,_0x19811e(0x1b8),_0x19811e(0x3af)),z(ar,_0x19811e(0x1fb),Rn),z(ar,_0x19811e(0x2f2),zn),ar=H([_0x22f4eb(_0xb82aa,_0xae98f7,_0xe2a840),V(0x1,_0x1ba700),V(0x2,_0x480e6d(_0x5a91fd)),V(0x3,_0x2477d9)],ar);export{Gn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,Sn as BaseCollaborationEntity,Tn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Hn as CollaborationAttachmentIoService,Ln as CollaborationController,$ as CollaborationEntity,Qn as CollaborationImageIoService,Gt as CollaborationSession,In as CollaborationSessionService,Mn as CollaborationSocketService,_n as CollaborationStatus,At as CollaborationUIEventId,B as CollaborationUIEventService,ir as CollaborativeUndoRedoService,jt as CommentService,X as ConflictState,_t as DEFAULT_COLLAB_WEB_SOCKET_URL,Tt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,vt as DEFAULT_WS_SESSION_TICKET_URL,Zn as DataLoaderService,xn as DocCollaborationEntity,Q as FetchingMissState,yt as HEARTBEAT_INTERVAL_KEY,bt as HEARTBEAT_TIMEOUT_KEY,Vn as IAttachmentIoService,Nn as ICollaborationClientAdapterService,An as ICollaborationSocketService,U as ILocalCacheService,Dn as INetworkConditionService,W as ISingleActiveUnitService,Ct as LOCAL_CACHE_INTERVAL,St as LOCAL_CACHE_INTERVAL_KEY,Mt as MemberService,$n as MentionIoHttpService,Z as OfflineState,En as PdfCollaborationEntity,q as PendingState,wt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,xt as RETRY_CONNECTING_MAX_COUNT_KEY,Ut as SessionStatus,Cn as SheetCollaborationEntity,Jt as SheetTransformSelectionsService,wn as SlideCollaborationEntity,rr as SnapshotServerOverHTTPService,K as SyncedState,Yt as UnitStatus,ar as UniverCollaborationClientPlugin,Pn as createUniverCollaborationAdapter,On as deserializeToCombResponse,Kt as getLocalCacheKey,kn as serializeCombRequest};
1
+ const _0x552037=_0x2f91;(function(_0x3e22f4,_0x265f35){const _0x39d374=_0x2f91,_0x4064e5=_0x3e22f4();while(!![]){try{const _0x3a39d6=parseInt(_0x39d374(0x2a6))/0x1*(parseInt(_0x39d374(0x39f))/0x2)+parseInt(_0x39d374(0x250))/0x3*(parseInt(_0x39d374(0x3d3))/0x4)+-parseInt(_0x39d374(0x37f))/0x5*(-parseInt(_0x39d374(0x3c4))/0x6)+-parseInt(_0x39d374(0x25b))/0x7*(parseInt(_0x39d374(0x32a))/0x8)+parseInt(_0x39d374(0x22a))/0x9*(-parseInt(_0x39d374(0x2f3))/0xa)+parseInt(_0x39d374(0x1bc))/0xb*(-parseInt(_0x39d374(0x20a))/0xc)+parseInt(_0x39d374(0x328))/0xd*(parseInt(_0x39d374(0x3a0))/0xe);if(_0x3a39d6===_0x265f35)break;else _0x4064e5['push'](_0x4064e5['shift']());}catch(_0x37f997){_0x4064e5['push'](_0x4064e5['shift']());}}}(_0x4b06,0xeef70));import{CollaborationEvent as _0x16e691,CompressMutationService as _0x4359e8,EmptyMutationInfo as _0x554fe0,ISnapshotServerService as _0x25f822,ITransformService as _0x154e7e,RevisionService as _0x4d7e58,SnapshotService as _0x501c83,UniverCollaborationPlugin as _0x1c1398,b64DecodeUnicode as _0x1f2ee9,isTransformChangesetsSuccess as _0x34d422,isTransformMutationsWithChangesetFailure as _0x15682b,isTransformMutationsWithChangesetSuccess as _0x3f64c8,mapDocumentTypeToUniverInstanceType as _0x3fcfd6,parseChangesetToProtocol as _0x2f5078,parseProtocolChangeset as _0x314fa0,textEncoder as _0x24eaeb,uuidv4 as _0x53eb27}from'@univerjs-pro/collaboration';import{CommandType as _0x374f28,DependentOn as _0x21b431,Disposable as _0x3f6f32,DisposableCollection as _0x2410fb,IAuthzIoService as _0x581968,ICommandService as _0x56ddbd,IConfigService as _0x1fb7be,IContextService as _0x170e8a,IImageIoService as _0x582de1,ILogService as _0x11662d,IMentionIOService as _0x394bea,IPermissionService as _0x2fd944,IUndoRedoService as _0x49d766,IUniverInstanceService as _0x51bdf2,ImageSourceType as _0x20d062,ImageUploadStatusType as _0x5c1440,Inject as _0x51c6d7,Injector as _0x21dcba,JSONX as _0x3e89d5,LocalUndoRedoService as _0x482087,LocaleService as _0xb3ec34,MentionType as _0x2e9824,OBJECT_PERMISSION_CONFIG_KEY as _0x152221,ObjectPermissionService as _0x286642,Optional as _0x338273,Plugin as _0x1c556e,Quantity as _0x3ad4ef,Rectangle as _0x5ef379,RxDisposable as _0x7563ff,Tools as _0x1271ec,UniverInstanceType as _0x4da65d,UserManagerService as _0x36b983,Workbook as _0x5f5a66,createIdentifier as _0x445a87,generateRandomId as _0x3bcc96,isInternalEditorID as _0x3dcb00,merge as _0x7ffefc,mergeOverrideWithDependencies as _0x2c2607,registerDependencies as _0x117010,resolveWithBasePath as _0x4de049,sequenceExecute as _0x18a178,toDisposable as _0x8a7db5,touchDependencies as _0x213723}from'@univerjs/core';import{DocStateChangeManagerService as _0x35fe28,RichTextEditingMutation as _0x50a9b9}from'@univerjs/docs';import{InsertSheetMutation as _0x5002ed,SetSelectionsOperation as _0x3311cb,SheetPermissionInitController as _0x1769ea,SheetsSelectionsService as _0x537242,WorkbookEditablePermission as _0x50091d}from'@univerjs/sheets';import{BehaviorSubject as _0x4b2fa9,ReplaySubject as _0x20e7eb,Subject as _0x118dae,concatMap as _0x3dcf34,firstValueFrom as _0x34143f,map as _0x224afe,merge as _0x40b0f1,of as _0x411eec,shareReplay as _0x44f1aa,take as _0x4cb55e,takeUntil as _0x5f1dde}from'rxjs';import{CmdRspCode as _0x2c3059,CombCmd as _0x47c572,ErrorCode as _0x586679,FileSource as _0x526333,UnitAction as _0x40023b,UnitObject as _0x1e9d99}from'@univerjs/protocol';import{ITelemetryService as _0xc9b7b1}from'@univerjs/telemetry';import{delay as _0x45aaeb,filter as _0x1b42dd,map as _0x1eb9dd,take as _0x1c8f19,takeUntil as _0x546232}from'rxjs/operators';import{AddSlidePageMutation as _0x2c566e,EnsureSlideMasterPageMutation as _0x22aba7,MoveSlidePageMutation as _0x3f3791,RemoveSlidePageMutation as _0xecbf0f}from'@univerjs-pro/slides';import{HTTPRequest as _0x407ac7,HTTPService as _0x20496f,ISocketService as _0xaaac4e,MergeInterceptorFactory as _0xd04f41,ThresholdInterceptorFactory as _0x5c5d35,UniverNetworkPlugin as _0x48f122}from'@univerjs/network';import{UniverLicensePlugin as _0x2947cf,getGlobalObject as _0x41f2f2}from'@univerjs-pro/license';import{cbc as _0x59ae7b}from'@noble/ciphers/aes.js';import{concatBytes as _0x37f214,randomBytes as _0x5a5d67,utf8ToBytes as _0x53c74b}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x48c04f,getDrawingImageAllowSize as _0x1f74a0}from'@univerjs/drawing';const R=_0x552037(0x261),gt={},_t=_0x552037(0x3a3),vt='/universer-api/user/session-ticket',yt=_0x552037(0x463),bt=_0x552037(0x240),xt=_0x552037(0x44f),St=_0x552037(0x3b7),Ct=0x3e8,wt=_0x552037(0x2f5),Tt='/universer-api/uniscript';function Et(_0x591037){const _0xa8719=_0x552037;return JSON[_0xa8719(0x364)](_0x591037)[_0xa8719(0x283)];}function Dt(_0x2c2629){'@babel/helpers - typeof';const _0x3ec736=_0x552037;return Dt=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x3ec736(0x2d0)?function(_0x35eddd){return typeof _0x35eddd;}:function(_0x511303){const _0x32e375=_0x3ec736;return _0x511303&&typeof Symbol=='function'&&_0x511303[_0x32e375(0x1be)]===Symbol&&_0x511303!==Symbol[_0x32e375(0x1cb)]?_0x32e375(0x2d0):typeof _0x511303;},Dt(_0x2c2629);}function Ot(_0x945c5f,_0x130c1d){const _0xc7a456=_0x552037;if(Dt(_0x945c5f)!=_0xc7a456(0x1fd)||!_0x945c5f)return _0x945c5f;var _0x5b715a=_0x945c5f[Symbol[_0xc7a456(0x287)]];if(_0x5b715a!==void 0x0){var _0x37b744=_0x5b715a[_0xc7a456(0x290)](_0x945c5f,_0x130c1d||_0xc7a456(0x3f8));if(Dt(_0x37b744)!=_0xc7a456(0x1fd))return _0x37b744;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x130c1d===_0xc7a456(0x262)?String:Number)(_0x945c5f);}function kt(_0x18d268){const _0x1ef11a=_0x552037;var _0x1ac87c=Ot(_0x18d268,_0x1ef11a(0x262));return Dt(_0x1ac87c)=='symbol'?_0x1ac87c:_0x1ac87c+'';}function z(_0x14f4e6,_0x144410,_0x2e5b98){const _0x27955e=_0x552037;return(_0x144410=kt(_0x144410))in _0x14f4e6?Object[_0x27955e(0x3e4)](_0x14f4e6,_0x144410,{'value':_0x2e5b98,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14f4e6[_0x144410]=_0x2e5b98,_0x14f4e6;}let At=function(_0x6b6ab0){const _0x5ae4b1=_0x552037;return _0x6b6ab0[_0x5ae4b1(0x1d1)]=_0x5ae4b1(0x1d1),_0x6b6ab0[_0x5ae4b1(0x381)]=_0x5ae4b1(0x381),_0x6b6ab0[_0x5ae4b1(0x2e1)]=_0x5ae4b1(0x2e1),_0x6b6ab0[_0x5ae4b1(0x32b)]=_0x5ae4b1(0x32b),_0x6b6ab0[_0x5ae4b1(0x229)]=_0x5ae4b1(0x229),_0x6b6ab0['CLOSE_ROOM']=_0x5ae4b1(0x3e2),_0x6b6ab0[_0x5ae4b1(0x1c0)]='JOIN_ROOM_FAILED',_0x6b6ab0[_0x5ae4b1(0x46b)]=_0x5ae4b1(0x46b),_0x6b6ab0[_0x5ae4b1(0x1f1)]=_0x5ae4b1(0x1f1),_0x6b6ab0[_0x5ae4b1(0x411)]=_0x5ae4b1(0x411),_0x6b6ab0;}({});var B=class{constructor(){const _0x4d063e=_0x552037;z(this,_0x4d063e(0x38d),new _0x118dae()),z(this,_0x4d063e(0x251),this[_0x4d063e(0x38d)][_0x4d063e(0x38e)]());}['emitEvent'](_0x3abf8e){const _0x2486dc=_0x552037;this[_0x2486dc(0x38d)][_0x2486dc(0x23c)](_0x3abf8e);}},jt=class{constructor(){const _0x3f239d=_0x552037;z(this,_0x3f239d(0x45d),new _0x118dae()),z(this,_0x3f239d(0x1f7),this['_commentUpdate$'][_0x3f239d(0x38e)]());}[_0x552037(0x225)](_0x4e7069){const _0x575932=_0x552037;this[_0x575932(0x45d)]['next'](_0x4e7069);}};function V(_0x54387a,_0x197f2e){return function(_0x1b28ab,_0x579817){_0x197f2e(_0x1b28ab,_0x579817,_0x54387a);};}function H(_0x25ab0f,_0x3194be,_0x559783,_0x5d5ce2){const _0x9bf38a=_0x552037;var _0x58a118=arguments[_0x9bf38a(0x283)],_0x10e4fc=_0x58a118<0x3?_0x3194be:_0x5d5ce2===null?_0x5d5ce2=Object[_0x9bf38a(0x34d)](_0x3194be,_0x559783):_0x5d5ce2,_0x4f5bbb;if(typeof Reflect==_0x9bf38a(0x1fd)&&typeof Reflect[_0x9bf38a(0x41c)]==_0x9bf38a(0x419))_0x10e4fc=Reflect['decorate'](_0x25ab0f,_0x3194be,_0x559783,_0x5d5ce2);else{for(var _0x3e2efc=_0x25ab0f[_0x9bf38a(0x283)]-0x1;_0x3e2efc>=0x0;_0x3e2efc--)(_0x4f5bbb=_0x25ab0f[_0x3e2efc])&&(_0x10e4fc=(_0x58a118<0x3?_0x4f5bbb(_0x10e4fc):_0x58a118>0x3?_0x4f5bbb(_0x3194be,_0x559783,_0x10e4fc):_0x4f5bbb(_0x3194be,_0x559783))||_0x10e4fc);}return _0x58a118>0x3&&_0x10e4fc&&Object['defineProperty'](_0x3194be,_0x559783,_0x10e4fc),_0x10e4fc;}let Mt=class extends _0x3f6f32{constructor(_0x3a2b9f){const _0x4ff5c2=_0x552037;super(),this[_0x4ff5c2(0x2e2)]=_0x3a2b9f,z(this,_0x4ff5c2(0x424),new Map()),z(this,_0x4ff5c2(0x337),new _0x118dae()),this['disposeWithMe'](_0x40b0f1(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4da65d['UNIVER_SHEET'])[_0x4ff5c2(0x26f)](_0x1eb9dd(_0x13d247=>_0x13d247[_0x4ff5c2(0x265)]())),this[_0x4ff5c2(0x2e2)][_0x4ff5c2(0x23e)](_0x4da65d[_0x4ff5c2(0x2ab)])[_0x4ff5c2(0x26f)](_0x1eb9dd(_0x5ba1c1=>_0x5ba1c1['getUnitId']())),this[_0x4ff5c2(0x2e2)][_0x4ff5c2(0x23e)](_0x4da65d[_0x4ff5c2(0x2a9)])[_0x4ff5c2(0x26f)](_0x1eb9dd(_0x17e3bf=>_0x17e3bf['getUnitId']())),this['_univerInstanceService'][_0x4ff5c2(0x23e)](_0x4da65d['UNIVER_BASE'])[_0x4ff5c2(0x26f)](_0x1eb9dd(_0x197f5e=>_0x197f5e[_0x4ff5c2(0x265)]())))['subscribe'](_0x350a51=>this['_removeRoom'](_0x350a51)));}['waitForRoom$'](_0x29866c){const _0x2c18a4=_0x552037;return this[_0x2c18a4(0x424)][_0x2c18a4(0x292)](_0x29866c)?_0x411eec(this[_0x2c18a4(0x424)][_0x2c18a4(0x3ef)](_0x29866c)):this['_roomCreated$'][_0x2c18a4(0x26f)](_0x1eb9dd(_0x2ff128=>{const _0x383882=_0x2c18a4;if(_0x2ff128===_0x29866c)return this['_roomMembers'][_0x383882(0x3ef)](_0x2ff128);}));}[_0x552037(0x1cd)](_0x31a5f2,_0x40c9ed){const _0x20c0f3=_0x552037;let _0x14ba27=this['_roomMembers'][_0x20c0f3(0x3ef)](_0x31a5f2);_0x14ba27||(_0x14ba27=new Nt(),this[_0x20c0f3(0x424)][_0x20c0f3(0x1ea)](_0x31a5f2,_0x14ba27),this[_0x20c0f3(0x337)][_0x20c0f3(0x23c)](_0x31a5f2)),_0x14ba27['updateMember'](_0x40c9ed);}[_0x552037(0x45f)](_0xb7fd51,_0x5a61fa){const _0x178bee=_0x552037;let _0x168058=this[_0x178bee(0x424)][_0x178bee(0x3ef)](_0xb7fd51);_0x168058&&_0x168058[_0x178bee(0x45f)](_0x5a61fa);}[_0x552037(0x3a1)](_0x330b22){const _0x3b729d=_0x552037;return this[_0x3b729d(0x424)][_0x3b729d(0x3ef)](_0x330b22);}[_0x552037(0x289)](_0x77d478,_0x28d78f){const _0x41c103=_0x552037;let _0xaf6c9a=this['_roomMembers'][_0x41c103(0x3ef)](_0x77d478);if(_0xaf6c9a)return _0xaf6c9a['getMember'](_0x28d78f);}[_0x552037(0x37a)](_0x189bcb){const _0x5d8ba6=_0x552037;let _0x2e6990=this[_0x5d8ba6(0x424)][_0x5d8ba6(0x3ef)](_0x189bcb);_0x2e6990&&(_0x2e6990[_0x5d8ba6(0x2f2)](),this[_0x5d8ba6(0x424)][_0x5d8ba6(0x1ee)](_0x189bcb));}[_0x552037(0x2f2)](){const _0x43ca0c=_0x552037;this[_0x43ca0c(0x424)]['forEach'](_0xbb00b8=>_0xbb00b8[_0x43ca0c(0x2f2)]()),this[_0x43ca0c(0x424)][_0x43ca0c(0x465)](),this['_roomCreated$'][_0x43ca0c(0x306)]();}};Mt=H([V(0x0,_0x51bdf2)],Mt);var Nt=class extends _0x3f6f32{constructor(..._0x4a05c7){const _0xac28f1=_0x552037;super(..._0x4a05c7),z(this,_0xac28f1(0x27d),new Map()),z(this,_0xac28f1(0x439),new _0x4b2fa9(this[_0xac28f1(0x27d)])),z(this,'members$',this[_0xac28f1(0x439)][_0xac28f1(0x38e)]());}[_0x552037(0x2f2)](){const _0xba5934=_0x552037;this[_0xba5934(0x27d)][_0xba5934(0x465)](),this['_members$']['complete']();}['updateMember'](_0x300f09){const _0x33c1d4=_0x552037;this[_0x33c1d4(0x27d)][_0x33c1d4(0x1ea)](_0x300f09[_0x33c1d4(0x33c)],_0x300f09),this[_0x33c1d4(0x351)]();}[_0x552037(0x45f)](_0x1c9f5d){const _0x35662e=_0x552037;this[_0x35662e(0x27d)]['delete'](_0x1c9f5d),this[_0x35662e(0x351)]();}[_0x552037(0x289)](_0x1db82e){const _0x2f4792=_0x552037;return this[_0x2f4792(0x27d)][_0x2f4792(0x3ef)](_0x1db82e);}[_0x552037(0x442)](){const _0x257062=_0x552037;return Array[_0x257062(0x38f)](this[_0x257062(0x27d)]['values']());}[_0x552037(0x351)](){const _0x4e04af=_0x552037;this[_0x4e04af(0x439)]['next'](this[_0x4e04af(0x27d)]);}};function Pt(_0x13239a,_0x5b1550){const _0x49dab9=_0x552037;if(It(_0x13239a))return _0x5b1550;if(_0x5b1550[_0x49dab9(0x363)]===_0x16e691[_0x49dab9(0x327)]){let _0x4992e3=Vt(_0x13239a),_0x16b42f=_0x5b1550;return{..._0x16b42f,'data':{..._0x16b42f[_0x49dab9(0x454)],'unitID':_0x13239a[_0x49dab9(0x2f6)][_0x49dab9(0x29f)],'unitType':_0x13239a[_0x49dab9(0x2f6)][_0x49dab9(0x1cf)]??_0x16b42f[_0x49dab9(0x454)]['unitType'],'changeset':_0x4992e3[_0x49dab9(0x38b)](_0x16b42f[_0x49dab9(0x454)][_0x49dab9(0x33b)],Ht(_0x13239a))}};}if(_0x5b1550[_0x49dab9(0x363)]===_0x16e691[_0x49dab9(0x396)]){let _0x3f56c6=_0x5b1550;return{..._0x3f56c6,'data':{..._0x3f56c6[_0x49dab9(0x454)],'unitID':_0x13239a['target'][_0x49dab9(0x29f)],'unitType':_0x13239a[_0x49dab9(0x2f6)]['unitType']??_0x3f56c6[_0x49dab9(0x454)][_0x49dab9(0x1cf)]}};}return _0x5b1550;}function Ft(_0xc791a7,_0x102fea){const _0x34b559=_0x552037;if(It(_0xc791a7))return[_0x102fea];switch(_0x102fea[_0x34b559(0x363)]){case _0x16e691['NEW_CHANGESETS']:return[Lt(_0xc791a7,_0x102fea)];case _0x16e691[_0x34b559(0x238)]:return[zt(_0xc791a7,_0x102fea)];case _0x16e691[_0x34b559(0x415)]:return[Rt(_0xc791a7,_0x102fea)];default:return[_0x102fea];}}function It(_0x13d1a1){const _0x56f093=_0x552037;return _0x13d1a1['target'][_0x56f093(0x335)]==null&&_0x13d1a1[_0x56f093(0x2f6)]['unitId']===_0x13d1a1[_0x56f093(0x461)]&&!_0x13d1a1[_0x56f093(0x33b)];}function Lt(_0x26b095,_0x4de44b){return{..._0x4de44b,'data':_0x2f5078(Bt(_0x26b095,_0x314fa0(_0x4de44b['data'])))};}function Rt(_0x300b24,_0x575282){const _0xdc9d57=_0x552037;return{..._0x575282,'data':Bt(_0x300b24,_0x575282[_0xdc9d57(0x454)])};}function zt(_0x18c95e,_0x7cf804){const _0x14f55b=_0x552037;let _0x2b75fd=_0x7cf804[_0x14f55b(0x454)];return{..._0x7cf804,'data':{..._0x2b75fd,'changesets':_0x2b75fd[_0x14f55b(0x35f)]['map'](_0x142777=>_0x2f5078(Bt(_0x18c95e,_0x314fa0(_0x142777))))}};}function Bt(_0x473f87,_0x55b0b9){return Vt(_0x473f87)['toLocal'](_0x55b0b9,Ht(_0x473f87));}function Vt(_0x39d94f){const _0x1857d7=_0x552037;if(!_0x39d94f['changeset'])throw Error(_0x1857d7(0x395));return _0x39d94f[_0x1857d7(0x33b)];}function Ht(_0x2b6299){const _0x2e14a1=_0x552037;return{'localUnitId':_0x2b6299[_0x2e14a1(0x461)],'unitType':_0x2b6299[_0x2e14a1(0x1cf)],'target':_0x2b6299[_0x2e14a1(0x2f6)]};}let Ut=function(_0x46f9fa){const _0x3b4e20=_0x552037;return _0x46f9fa[_0x46f9fa['IDLE']=0x0]=_0x3b4e20(0x35b),_0x46f9fa[_0x46f9fa['JOINING']=0x1]=_0x3b4e20(0x38c),_0x46f9fa[_0x46f9fa[_0x3b4e20(0x3c2)]=0x2]=_0x3b4e20(0x3c2),_0x46f9fa[_0x46f9fa['ONLINE']=0x3]=_0x3b4e20(0x1e4),_0x46f9fa;}({});const Wt={[_0x2c3059[_0x552037(0x295)]]:_0x552037(0x1c4),[_0x2c3059['JOIN_ROOM_FULL']]:_0x552037(0x460),[_0x2c3059[_0x552037(0x25f)]]:_0x552037(0x239),[_0x2c3059[_0x552037(0x211)]]:'session.room-permission-denied',[_0x2c3059[_0x552037(0x1f8)]]:_0x552037(0x1e3)};let Gt=class extends _0x7563ff{get[_0x552037(0x382)](){const _0x2a8d3c=_0x552037;return this[_0x2a8d3c(0x260)][_0x2a8d3c(0x29e)]();}constructor(_0x4fcdd4,_0x2f403f,_0xd614e0,_0x14926e,_0x4d556d,_0x42d1b1,_0xf459f0,_0x9d29f7){const _0x5618f4=_0x552037;super(),this[_0x5618f4(0x402)]=_0x4fcdd4,this[_0x5618f4(0x319)]=_0xd614e0,this[_0x5618f4(0x212)]=_0x14926e,this[_0x5618f4(0x2a3)]=_0x4d556d,this[_0x5618f4(0x253)]=_0x42d1b1,this[_0x5618f4(0x1fb)]=_0xf459f0,this[_0x5618f4(0x263)]=_0x9d29f7,z(this,_0x5618f4(0x260),new _0x4b2fa9(0x0)),z(this,_0x5618f4(0x2c7),this['_sessionStatus$'][_0x5618f4(0x38e)]()),z(this,'_event$',new _0x118dae()),z(this,_0x5618f4(0x251),this[_0x5618f4(0x38d)][_0x5618f4(0x38e)]()),z(this,_0x5618f4(0x2c9),void 0x0),z(this,_0x5618f4(0x26a),void 0x0),z(this,_0x5618f4(0x2b4),void 0x0),z(this,_0x5618f4(0x29b),!0x1),z(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this[_0x5618f4(0x263)],_0x2f403f['pipe'](_0x5f1dde(this['dispose$']))[_0x5618f4(0x338)](_0xe48e0e=>{const _0x4c9393=_0x5618f4;if(_0xe48e0e!==void 0x0){if(this[_0x4c9393(0x2c9)]=_0xe48e0e,_0xe48e0e)this[_0x4c9393(0x1d7)](_0xe48e0e),this[_0x4c9393(0x26a)]=_0xe48e0e['message$'][_0x4c9393(0x338)](_0x18accf=>{const _0x4ab99c=_0x4c9393;_0x18accf[_0x4ab99c(0x3ad)]===this[_0x4ab99c(0x402)]['target']['unitId']&&this[_0x4ab99c(0x452)](_0x18accf);});else{var _0x1f8232;this[_0x4c9393(0x2c1)](),this[_0x4c9393(0x260)]['next'](0x2),(_0x1f8232=this[_0x4c9393(0x26a)])==null||_0x1f8232['unsubscribe'](),this[_0x4c9393(0x26a)]=null;}}});}[_0x552037(0x249)](){const _0x168fea=_0x552037;var _0x27fe8a;return((_0x27fe8a=this[_0x168fea(0x2c9)])==null?void 0x0:_0x27fe8a[_0x168fea(0x33c)])??null;}[_0x552037(0x2f2)](){const _0x3307b3=_0x552037;super[_0x3307b3(0x2f2)](),this[_0x3307b3(0x279)](),this[_0x3307b3(0x1f6)]['next'](),this[_0x3307b3(0x1f6)][_0x3307b3(0x306)]();}[_0x552037(0x279)](){const _0x5d6017=_0x552037;var _0x1451a7;this['_throwTelemetryCollaborationNewChangeset'](),(_0x1451a7=this['_socket'])==null||_0x1451a7[_0x5d6017(0x32f)]({'cmd':_0x47c572[_0x5d6017(0x2ca)],'data':{'roomID':this['_identity'][_0x5d6017(0x2f6)]['unitId']}}),this[_0x5d6017(0x38d)][_0x5d6017(0x306)](),this[_0x5d6017(0x260)][_0x5d6017(0x306)]();}['_onCombEvent'](_0x5a924e){const _0x369cc5=_0x552037;_0x5a924e['cmd']===_0x47c572[_0x369cc5(0x1b4)]?this[_0x369cc5(0x1c6)](_0x5a924e):_0x5a924e['cmd']===_0x47c572[_0x369cc5(0x368)]&&this[_0x369cc5(0x3cd)](_0x5a924e);}[_0x552037(0x1d7)](_0x371c9b){const _0x352128=_0x552037;this[_0x352128(0x260)][_0x352128(0x23c)](0x1),_0x371c9b[_0x352128(0x32f)]({'cmd':_0x47c572[_0x352128(0x1b4)],'routeKey':this[_0x352128(0x402)]['target'][_0x352128(0x29f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x352128(0x402)][_0x352128(0x2f6)]['unitId']}]}});}[_0x552037(0x1c6)](_0x5864d2){const _0x38039d=_0x552037;var _0x48f7a1;if(_0x5864d2[_0x38039d(0x297)]in Wt){this[_0x38039d(0x1fb)][_0x38039d(0x457)]({'id':_0x38039d(0x1c0),'data':Wt[_0x5864d2[_0x38039d(0x297)]]}),this['_sessionStatus$'][_0x38039d(0x23c)](0x2);return;}this[_0x38039d(0x260)][_0x38039d(0x23c)](0x3);let _0xd73f95=(_0x48f7a1=_0x5864d2[_0x38039d(0x454)]['roomInfos'][this[_0x38039d(0x402)][_0x38039d(0x2f6)][_0x38039d(0x29f)]])==null?void 0x0:_0x48f7a1[_0x38039d(0x2af)];_0xd73f95&&_0xd73f95['forEach'](_0x5005e4=>this[_0x38039d(0x2a3)][_0x38039d(0x1cd)](this[_0x38039d(0x402)][_0x38039d(0x461)],_0x5005e4));}[_0x552037(0x3cd)](_0x22e896){const _0x492a3d=_0x552037;try{let _0x376514=Ft(this[_0x492a3d(0x402)],_0x22e896[_0x492a3d(0x454)]);for(let _0x3b4bfe of _0x376514)switch(_0x3b4bfe[_0x492a3d(0x363)]){case _0x16e691['USERS_ENTER']:this[_0x492a3d(0x288)](_0x3b4bfe),this['_event$']['next'](_0x3b4bfe);break;case _0x16e691[_0x492a3d(0x232)]:this[_0x492a3d(0x3cb)](_0x3b4bfe),this[_0x492a3d(0x38d)][_0x492a3d(0x23c)](_0x3b4bfe);break;case _0x16e691[_0x492a3d(0x3e8)]:case _0x16e691['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x492a3d(0x336)](),this['_event$'][_0x492a3d(0x23c)](_0x3b4bfe);break;case _0x16e691['MSG_FOR_ERROR']:this[_0x492a3d(0x319)][_0x492a3d(0x329)](_0x492a3d(0x462)+JSON[_0x492a3d(0x364)](_0x3b4bfe)),this[_0x492a3d(0x38d)][_0x492a3d(0x23c)](_0x3b4bfe);break;case _0x16e691[_0x492a3d(0x235)]:this['_commentService'][_0x492a3d(0x225)](_0x3b4bfe[_0x492a3d(0x454)]),this['_event$'][_0x492a3d(0x23c)](_0x3b4bfe);break;default:this[_0x492a3d(0x38d)]['next'](_0x3b4bfe);}}catch(_0x28e929){this[_0x492a3d(0x319)][_0x492a3d(0x329)](_0x28e929,_0x22e896);}}['_onUserJoin'](_0x7adbe7){const _0x51ad5c=_0x552037;this[_0x51ad5c(0x2a3)][_0x51ad5c(0x1cd)](this['_identity']['localUnitId'],_0x7adbe7['data']);}['_onUserLeave'](_0x11af4f){const _0xb59729=_0x552037;this[_0xb59729(0x2a3)][_0xb59729(0x45f)](this[_0xb59729(0x402)][_0xb59729(0x461)],_0x11af4f['data'][_0xb59729(0x33c)]);}async['send'](_0x4396d1,_0x69634a){const _0x347183=_0x552037;if(this[_0x347183(0x382)]!==0x3||!this['_socket'])throw Error(_0x347183(0x215));try{let _0x4ca67b=Pt(this[_0x347183(0x402)],_0x4396d1);_0x4ca67b[_0x347183(0x363)]===_0x16e691['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x347183(0x259)](_0x4ca67b)),this[_0x347183(0x2c9)][_0x347183(0x32f)]({'cmd':_0x47c572[_0x347183(0x3b4)],'routeKey':this[_0x347183(0x402)][_0x347183(0x2f6)][_0x347183(0x29f)],'routeType':'','data':_0x4ca67b});}catch(_0x14bd89){this[_0x347183(0x319)][_0x347183(0x329)](_0x14bd89);}}[_0x552037(0x425)](){const _0x754966=_0x552037;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x4a2b22=_0x2f91;this[_0x4a2b22(0x2b4)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0x4a2b22(0x411)});},this['_configService'][_0x754966(0x2f9)](_0x754966(0x240))??0x4e20);}[_0x552037(0x336)](){const _0x17c6e4=_0x552037;this[_0x17c6e4(0x2b4)]&&=(clearTimeout(this[_0x17c6e4(0x2b4)]),null);}[_0x552037(0x259)](_0x130b50){const _0x2c62b8=_0x552037;if(!this[_0x2c62b8(0x29b)])return;let {data:_0x34c834}=_0x130b50,{unitID:_0x447d91,changeset:_0x2b8407}=_0x34c834,{mutations:_0x47afa5,type:_0x53ca2c}=_0x2b8407;this['_telemetryInfo']={'unitId':_0x447d91,'type':_0x53ca2c,'startTime':performance[_0x2c62b8(0x438)](),'stopTime':0x0,'duration':0x0,'size':Et(_0x47afa5)};}[_0x552037(0x427)](){const _0x33bca3=_0x552037;if(this['_shouldReportTelemetry']){if(!this[_0x33bca3(0x401)]){this[_0x33bca3(0x319)]['error']('[CollaborationSession]',_0x33bca3(0x1d9));return;}this[_0x33bca3(0x401)][_0x33bca3(0x2e0)]=performance['now'](),this[_0x33bca3(0x401)]['duration']=this[_0x33bca3(0x401)][_0x33bca3(0x2e0)]-this['_telemetryInfo']['startTime'],this[_0x33bca3(0x263)][_0x33bca3(0x3f4)]('collaboration_new_changeset',this[_0x33bca3(0x401)]),this[_0x33bca3(0x401)]=null;}}[_0x552037(0x2c1)](){const _0x1a46f6=_0x552037;this[_0x1a46f6(0x401)]=null;}};Gt=H([V(0x2,_0x11662d),V(0x3,_0x1fb7be),V(0x4,_0x51c6d7(Mt)),V(0x5,_0x51c6d7(jt)),V(0x6,_0x51c6d7(B)),V(0x7,_0x338273(_0xc9b7b1))],Gt);const U=_0x445a87(_0x552037(0x3fc));function Kt(_0x225fa4){return'unit-cache-'+_0x225fa4;}function qt(_0x23857b){const _0x3d9b44=_0x552037;let {unitID:_0x5170fe,mutations:_0x167461}=_0x23857b;return{'unitId':_0x5170fe,'subUnitId':_0x167461['length']>0x0?_0x167461[0x0][_0x3d9b44(0x2de)][_0x3d9b44(0x3a8)]:null};}let Jt=class{constructor(_0xe19bb8,_0x42c3d7,_0x3d7602){const _0x47f783=_0x552037;this[_0x47f783(0x1f2)]=_0xe19bb8,this['_transformService']=_0x42c3d7,this['_instanceService']=_0x3d7602;}['transformSelections'](_0x2d1032){const _0x1d6ae2=_0x552037;var _0x290581,_0x1ca8b7;let _0xd17283=this[_0x1d6ae2(0x1f2)][_0x1d6ae2(0x3ef)](_0x537242),{unitId:_0x3cece4,subUnitId:_0x21c65b}=qt(_0x2d1032),_0x3a0853=_0xd17283==null?void 0x0:_0xd17283[_0x1d6ae2(0x257)](_0x3cece4)[_0x1d6ae2(0x227)](),_0x3cefde=(_0x290581=this[_0x1d6ae2(0x301)][_0x1d6ae2(0x34b)](_0x3cece4))==null||(_0x290581=_0x290581[_0x1d6ae2(0x459)]())==null?void 0x0:_0x290581[_0x1d6ae2(0x42c)]();if(_0x3a0853[_0x1d6ae2(0x283)]===0x0||!_0x3cece4||!_0x21c65b)return;let _0x1d40b9=[{'id':_0x3311cb['id'],'params':{'unitId':_0x3cece4,'subUnitId':_0x3cefde,'selections':_0x1271ec[_0x1d6ae2(0x231)](_0x3a0853)}}],_0x25a7fc=this['_transformService']['transformMutationsWithChangeset'](_0x2d1032,_0x1d40b9);if(!_0x3f64c8(_0x25a7fc))throw _0x25a7fc[_0x1d6ae2(0x329)];let _0x5456e5=(_0x1ca8b7=_0x25a7fc[_0x1d6ae2(0x36c)][0x0])==null||(_0x1ca8b7=_0x1ca8b7[_0x1d6ae2(0x2de)])==null?void 0x0:_0x1ca8b7[_0x1d6ae2(0x472)];if(Array[_0x1d6ae2(0x23f)](_0x5456e5)&&_0x5456e5[_0x1d6ae2(0x283)]){if(_0x5456e5['length']===_0x1d40b9[0x0]['params'][_0x1d6ae2(0x472)]['length']&&_0x5456e5['every']((_0x24f6d3,_0x5af9b1)=>_0x5ef379[_0x1d6ae2(0x1e0)](_0x24f6d3['range'],_0x1d40b9[0x0]['params'][_0x1d6ae2(0x472)][_0x5af9b1]['range'])))return;this[_0x1d6ae2(0x1f2)]['get'](_0x56ddbd)['executeCommand'](_0x3311cb['id'],{'unitId':_0x3cece4,'subUnitId':_0x3cefde,'selections':_0x5456e5});}}};Jt=H([V(0x0,_0x51c6d7(_0x21dcba)),V(0x1,_0x154e7e),V(0x2,_0x51bdf2)],Jt);const W=_0x445a87(_0x552037(0x1b7));let Yt=function(_0x2e955d){const _0x3f4179=_0x552037;return _0x2e955d[_0x2e955d[_0x3f4179(0x23a)]=0x0]=_0x3f4179(0x23a),_0x2e955d[_0x2e955d[_0x3f4179(0x451)]=0x1]='OTHER_CLIENTS_EDITING',_0x2e955d;}({});function _0x4b06(){const _0x1ee060=['COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','LIVESHARE_OPERATION','INGEST','[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.','_createInitialStateImpl','LOCAL_CACHE_INTERVAL','editingUnit','AWAITING','_clearRetryConnectingTimer','put','_getSignURL','map','_transformAndApplyRemoteChangeset','upload','toggleOnline','_onRemoteRetry','OFFLINE','origin','1095834iAwQHR','_lockTransition','maxSize','action','collaborators','fetch_missing','resend','_onUserLeave','onPrepareTransformSelections','_onRecvEvent','toString','_createSocket','_handleRemoteChangesets','_revisionService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','1284rAPWsO','_changesetSessionId','_clearTimeoutTimer','_onRemoteRejected','_imageSourceCache','[CollaborationEntity]','_clearUndo','transformSelections','getUploadOptions','UPDATE_PERMISSION_OBJ','setCfgEnableObjInherit','updatePermissionPoint','conflict','getTime','isCompositionEnd','CLOSE_ROOM','_updateStatus','defineProperty','&source=','some','reduce','CHANGESET_ACK','message$','UNIVER_SHEET','onRemoteRej','post','_onLocalMutation','executeCommand','get','_getRedoStack','missingChangesets','fetchMissingChangesets','objects','capture','unknown','state$','resolve','default','fromCollab','_change$','/-/object/-/batch_allowed','collaboration-client.local-cache-service','saveImage','splice','enableSingleActiveInstanceLock','_unlockTransition','_telemetryInfo','_identity','state','UNIVER_BASE','SHOULD_CLOSE_CONN','apply','infoRsp','startsWith','_submitChangeset','/universer-api/file/{fileID}/sign-url','onlyLocal','PERMISSION_REJ','objectPermissionTypes','resolveUnit','getDeserializedSheetBlock','getCollabEntity','SUBMIT_CHANGESET_TIMEOUT','debug','csAckEvent','onTransformIME','CHANGESET_SHOULD_RETRY','\x0aAfter:\x20','onRemoteChangeset','body','function','_getConfig','LIVESHARE_TERMINATE','decorate','blockRanges','downloadEndpointUrl','status','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','push','Workbook','_transitionLocked','_roomMembers','_scheduleCollaborationTimeoutTimer','_sessions','_stopTelemetryCollaborationNewChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onRemoteRetry','MSG_FOR_ERROR','_entities','getSheetId','\x0aCurrent:\x20','reverse','_handler','/allowed','subType','_onOffline','sendHeartbeatTimer','endsWith','text-x','values','_onFetchMissResult','now','_members$','collabSubmitChangesetUrl','close$','type','ERROR_IMAGE_TYPE','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','list','[FetchMissState]','getAllMembers','columnGroups','onSendChangeset','_syncEditingCollabCursor','@univerjs-pro/collaboration-client','loadUnit','_redoStacks','PERSON','loadUnitOfRevision','PENDING','_closedUnits','_acknowledgeAwaitingIfReady','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','RETRY_CONNECTING_MAX_COUNT','c2Prime','OTHER_CLIENTS_EDITING','_onCombEvent','_initCloseConn','data','[CollaborationState]:\x20apply\x20error!','_acknowledgeAwaiting','emitEvent','confirm','getActiveSheet','_getAPIPrefix','UPDATE_CURSOR','file','_commentUpdate$','UnitEmbedded','removeMember','session.room-full','localUnitId','save\x20fail\x20reason\x20is\x20','HEARTBEAT_INTERVAL','socketReady','clear','/object/','CHANGESET_REJ','_getLoginPath','revision','socket\x20close','SOCKET_FAILED_RETRY','FETCH_MISS','enableAuthServer','_clearScheduledTask','getCurrentUser','UNISCRIPT_RUN','putCollaborators','selections','disposeWithMe','_replayCachedMutations','/fetchmissing?from=','isPermissionRej','update','_status$','JOIN','unitDisposed$','not_collab','univer-pro.collaboration-client.single-active-unit-service','href','_collabSessionService','_transformService','COLLABORATION_ENDPOINT_INVALID','11PSFvSC','cfgEnableObjInherit','constructor','_clearRedo','JOIN_ROOM_FAILED','_sessionChannels','supports','_state','session.join-failed','synced','_onJoinRoomEvent','attachment','NOT_COLLAB','LIVESHARE_NEW_HOST','_doCreateSocket','prototype','_onConflict','updateMember','baseRev','unitType','getUnitOnRev','OTHER_CLIENT_EDITING','getImageSourceCache','accept','_incrementRevisionNumber','socketService','_snapshotServerService','_joinRoom','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','telemetry\x20info\x20is\x20not\x20initialized','addHandlerCallback','onTransformRemoteChangesetByStateCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_tryEnsureSocket','_collaborationSessionService','requireSession','equals','saveSnapshot','shouldCloseConn','session.room-cnt-exceeds','ONLINE','socket$','_awaitingChangeset','candidateSocket','requestParams','enableCollaboration','set','_localCacheService','&assign=','getSheetBlock','delete','_transformStateCache','getAttachmentUrl','SOCKET_FAILED','_injector','parse','SYNCED','[CollaborationSessionService]:\x20socket\x20error','dispose$','commentUpdate$','GLOBAL_ROOMS_CNT_EXCEEDS','encode','responseType','_collaborationUIEventService','copyFileMeta','object','_socketService','_state$','Base','[CollaborationSession]','UNIVER_SLIDE','onStateChange','onMissedChangesetFetched','_createHandler','onTransformSelections','reject','/collaborator','_listenToNetworkCondition','16243116bmSuDK','getImage','_transformStack','unsubscribe','getAllPermissionPoint','Edit','commentUpdateEvent','JOIN_ROOM_PERMISSION_DENIED','_configService','_registerDependencies','createInstance','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_HTTPService','_acknowledgedAwaitingRevision','workbook','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','/universer-api/snapshot','[SyncedState]:\x20received\x20acknowledgement.','_unitLoaded$','actions','getSnapshotAPIPath','_socketChannels','_startCollaboration','LIVESHARE_REQUEST_HOST','loadBoard','docStateChange$','onMissingChangesets','onCommentUpdate','_networkConditionService','getCurrentSelections','every','CONFLICT','406665DXlVrC','incrementRevOfUnit','setShowComponents','indexOf','_getUndoStack','_pendingMutations','socketMessageSubscription','deepClone','USERS_LEAVE','reqId','UNIVER_PDF','COMMENT_UPDATE','_getSendChangesetTimeout','_prepareTransformSelections','PSEUDO_FETCH_MISSING_RESULT','session.room-not-exists','NO_OTHER_CLIENTS_EDITING','[CollaborationUndoRedoService]','next','_tryReconnect','getTypeOfUnitDisposed$','isArray','HEARTBEAT_TIMEOUT','_hasSessionsForEndpoint','pending','initWorkbookPermissionChange','unitID','getFocusedUnit','session','avatar','findIndex','getMemberID','open$','getCfgEnableObjInherit','_eventService','_onRemoteChangeset','deleteCollaborator','_collaborationPaused','12195mUEDPB','event$','fromCharCode','_commentService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','Univer','version','getWorkbookSelections','_isPermissionRej','_startTelemetryCollaborationNewChangeset','userID','991039ZJfJBO','connection\x20error','includes','POST','JOIN_ROOM_NOT_EXISTS','_sessionStatus$','collaboration-client.config','string','_telemetryService','_isEchoedAwaitingChangeset','getUnitId','sheets','batchAllowed','enableOfflineEditing','HEARTBEAT','_socketMessageSubscription','Error\x20on\x20receiving\x20event','timeoutTimer','[OfflineState]:\x20received\x20changeset.','_getCurrentRevision','pipe','onTransformState','&to=','/-/object/list','updateCollaborator','find','unitInfo$','editing\x20status\x20changed\x20to','_initDependencies','getUnitStatus$','close','x-univer-host','getCollabEntity$','textRanges','_members','_resendTimeout','fetchThroughInterceptors','_remoteChangesetQueue','appendMutation','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','length','/unit/','unitLoaded$','replace','toPrimitive','_onUserJoin','getMember','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','_initMergeInterceptor','disableLocalCache','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','[PendingState]:\x20received\x20rejection.','call','readyForCollab','has','_updateUnitPermissionPoint','localCacheService','FAIL','\x20-\x20','code','encodeURIComponent','permissionRejEvent','hostname','_shouldReportTelemetry','collaboratorID','interceptor','getValue','unitId','override','_initUnitPermissionChange','offline','_memberService','submit\x20changeset\x20error!','transformChangesets','7687BiPPti','_httpService','max','UNIVER_BOARD','pauseCollaboration','UNIVER_DOC','_resendTimer','getTypeOfUnitAdded$','charCodeAt','members','onStarting','_changesetReqId','onTransformRemoteChangesetByIMECache','_singleActiveUnitService','_collaborationTimeoutTimer','objectId','_compressMutationService','number','hasOwnProperty','floor','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','failed\x20to\x20apply\x20missed\x20changesets!','_onMessage','MUTATION','_cfgEnableObjInherit','init','onMutationExecutedForCollab','_throwTelemetryCollaborationNewChangeset','/universer-api/snapshot/','_sender','backupOfflineData','withCredentials','_getCtorByUniverInstanceType','sessionStatus$','closeSession','_socket','LEAVE','result','error$','_unitInfo$','LIVESHARE_FETCH_OPERATIONS','FileId','symbol','{fileID}','univer-pro.collaboration-client.network-condition.service','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_showConflictProcessingNotification','filter','_executeRemoteChangeset','getUnitType','__splitChunk__','_permissionService','/resources','[CollaborationSessionService]','_resolveSessionIdentity','loadOfflineData','params','sid','stopTime','CONFLICT_PROCESSING','_univerInstanceService','uploadFileServerUrl','_initRequestHeader','unit','method','name','_getUploadFileURL','setConfig','updateCursorEvent','_undoRedoService','encrypt','forEach','_getAPIPrefixPath','resourceIDs','_transformSelections','[SyncedState]:\x20received\x20rejection.','dispose','10lSTAmh','_substituteRedoStack','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','target','_transformRemoteChangesetByStateCache','csRejEvent','getConfig','transformUndoRedo','awaitingChangeset','onRemoteAck','loadPdf','_commandService','_waitForHeartbeatResponse','location','_instanceService','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','Failed\x20to\x20update\x20permission\x20point','signUrlServerUrl','/rev/','complete','_docStateChangeManagerService','UNIVER_COLLABORATION_CLIENT_PLUGIN','[OfflineState]:\x20received\x20rejection.','_disposed','_clearHeartbeatTimer','_queuedRemoteChangesets','clearUnit','_adapter','_prepareConflictRecovery','/object','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_type','retryConnectingTimer','COMPRESS_MUTATION_APPLY','_onConnectionFailed','_createInitialState','onLocalMutation','/universer-api/stream/file/upload','_logService','_snapshotService','registerHTTPInterceptor','readAsDataURL','/block/','listCollaborators','_updateLocalCache','UUID','_exhaustRemoteChangesetQueue','localeService','_init','size','slice','c1Prime','SUBMIT_CHANGESET','1469ZnOihR','error','104YuEUGv','CONFLICT_CACHE_CLEAR_FAILED','loginUrlKey','_sendHeartbeat','_getSocketChannel','send','awaiting_with_pending','fetching\x20missing\x20changesets\x20from\x20','src','socket\x20open.','Slide','endpoint','_clearCollaborationTimeoutTimer','_roomCreated$','subscribe','_resendWithTimeout','unitId\x20is\x20not\x20found','changeset','memberID','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','saveSheetBlock','_sendingTimer','authzUrl','headers','originalMeta','[DataLoaderService]','clearOfflineData','roles','retryCount','_updateState','_replaceFileID','/universer-api/authz','_scheduleCompleteTimestamp','getUnit','getResourcesRequest','getOwnPropertyDescriptor','entityInit$','catch','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_emitMembers','fetchMiss','ERROR_EXCEED_SIZE','_getDownloadEndpointURL','_sheetTransformSelectionsService','trim','_schedule','/new_changes','onload','joinRsp','IDLE','_applyRemoteChangeset','loadDoc','_onRemoteACK','changesets','mutations','objectID','_maxTotalRetryTimeout','eventID','stringify','getCurrentRevOfUnit','listRoles','ERROR_IMAGE','RECV','1.0.3','objectType','_pendingSessions','m2Prime','liveShareOperation','_userManagerService','?size=','_disableEditing','_refreshUnitPermission','compose','cmd','online$','min','base-ui.attachment-io.service','/role','url','_undoStacks','_removeRoom','/universer-api/oidc/authpage','_getUnitPermissionPoints','getInterceptPoints','updatePermissionObjEvent','5wFtKZj','HELLO','PERMISSION_DENIED','sessionStatus','append','_rescheduleHeartbeat','_localeService','rollback','updateOfflineData','toggleOffline','_fetchMissChangesets','transformMutationsWithChangeset','toRemote','JOINING','_event$','asObservable','from','_decreaseWaiting','AWAITING_WITH_PENDING','uniscriptRunEvent','_waitCount','_transformIMECache','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','FETCH_MISSING','Document','_upload','status$','_config','BASE64','_handlerCallback','retryConnectingInterval','_entityInit$','104OfnlEx','288778ZKkikI','getRoom','_checkMissing','ws://127.0.0.1:8000/universer-api/comb/connect','USERS_ENTER','allowed','subject','_toggleOnline','subUnitId','onSyncEditingCollabCursor','_authzIoService','create','_transformUndoredo','routeKey','COMPRESS_MUTATION_SEND','add','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_toggleOffline'];_0x4b06=function(){return _0x1ee060;};return _0x4b06();}function Xt(_0x2a6ff3){const _0x60fda0=_0x552037;var _0x1292fa;return!!((_0x1292fa=_0x2a6ff3[_0x60fda0(0x2de)])!=null&&_0x1292fa[_0x60fda0(0x2d8)]);}const Zt=new Set([_0x5002ed['id']]),Qt=new Set([_0x2c566e['id'],_0x22aba7['id'],_0x3f3791['id'],_0xecbf0f['id']]);function $t(_0x25f0d8,_0x5a2674=Zt){const _0x207e61=_0x552037;let _0x43d164=[];for(let _0x70856f of _0x25f0d8){if(_0x5a2674[_0x207e61(0x292)](_0x70856f['id'])){if(_0x43d164[_0x207e61(0x283)]>0x0)break;_0x43d164['push'](_0x70856f);break;}if(Xt(_0x70856f)){if(_0x43d164[_0x207e61(0x283)]>0x0)break;_0x43d164[_0x207e61(0x421)](_0x70856f);break;}_0x43d164['push'](_0x70856f);}return _0x43d164;}function en(_0x585d05,_0x403e2c,_0xdb9fc9,_0x71b32,_0x3d89bf){const _0x5ae19f=_0x552037;let _0x4a0f91=$t(_0x585d05),_0x7217f8=_0x3d89bf[_0x5ae19f(0x46f)](),_0xf72d39=(_0x7217f8==null?void 0x0:_0x7217f8['userID'])??_0x5ae19f(0x3f5),_0x3a15cd=(_0x7217f8==null?void 0x0:_0x7217f8[_0x5ae19f(0x33c)])??_0x5ae19f(0x3f5);return{'changeset':{'unitID':_0x403e2c,'type':_0x3fcfd6(_0xdb9fc9[_0x5ae19f(0x2d7)](_0x403e2c)),'baseRev':_0x71b32[_0x5ae19f(0x365)](_0x403e2c),'revision':0x0,'userID':_0xf72d39,'memberID':_0x3a15cd,'mutations':_0x4a0f91},'pendingMutations':_0x585d05[_0x5ae19f(0x325)](_0x4a0f91[_0x5ae19f(0x283)])};}const tn=en;function nn(_0x112e83,_0x41a60d,_0x21151e,_0x34c002,_0x23714a){const _0x9c185e=_0x552037;let _0x3f003a=$t(_0x112e83,Qt),_0x351244=_0x23714a[_0x9c185e(0x46f)](),_0x497ba6=(_0x351244==null?void 0x0:_0x351244['userID'])??_0x9c185e(0x3f5),_0x46dad5=(_0x351244==null?void 0x0:_0x351244[_0x9c185e(0x33c)])??_0x9c185e(0x3f5);return{'changeset':{'unitID':_0x41a60d,'type':_0x3fcfd6(_0x21151e['getUnitType'](_0x41a60d)),'baseRev':_0x34c002[_0x9c185e(0x365)](_0x41a60d),'revision':0x0,'userID':_0x497ba6,'memberID':_0x46dad5,'mutations':_0x3f003a},'pendingMutations':_0x112e83[_0x9c185e(0x325)](_0x3f003a['length'])};}function rn(_0x456e00,_0x145321,_0x4d7fe3,_0x26186a,_0x4f8209){const _0x8bcd47=_0x552037;let _0x1ee5dd=_0x456e00[_0x8bcd47(0x3e7)]((_0x32ccb2,_0x1855a4)=>{const _0x652c8c=_0x8bcd47;let _0x455a57=_0x32ccb2[_0x32ccb2['length']-0x1],{id:_0xc62971}=_0x455a57??{},{id:_0x493068,type:_0x49a062}=_0x1855a4,_0x17b6ba=_0x1855a4[_0x652c8c(0x2de)];if(_0xc62971&&_0xc62971!==_0x493068)throw Error(_0x652c8c(0x219)+_0xc62971+_0x652c8c(0x296)+_0x493068+'.');if(!_0x455a57)return[{'id':_0x493068,'type':_0x49a062,'params':{'unitId':_0x17b6ba[_0x652c8c(0x29f)],'textRanges':_0x17b6ba[_0x652c8c(0x27c)],'actions':_0x17b6ba[_0x652c8c(0x21d)]}}];let _0x20b4dc=_0x455a57[_0x652c8c(0x2de)];return an(_0x20b4dc,_0x17b6ba)?[..._0x32ccb2[_0x652c8c(0x325)](0x0,-0x1),{..._0x455a57,'id':_0x493068,'type':_0x49a062,'params':{'unitId':_0x17b6ba['unitId'],'textRanges':_0x17b6ba[_0x652c8c(0x27c)],'actions':_0x3e89d5[_0x652c8c(0x372)](_0x20b4dc[_0x652c8c(0x21d)],_0x17b6ba[_0x652c8c(0x21d)])}}]:[..._0x32ccb2,{'id':_0x493068,'type':_0x49a062,'params':{'unitId':_0x17b6ba[_0x652c8c(0x29f)],'textRanges':_0x17b6ba['textRanges'],'actions':_0x17b6ba[_0x652c8c(0x21d)]}}];},[]),_0x10573c=_0x4f8209[_0x8bcd47(0x46f)](),_0x3ab1f7=(_0x10573c==null?void 0x0:_0x10573c[_0x8bcd47(0x25a)])??'unknown',_0x80c419=(_0x10573c==null?void 0x0:_0x10573c[_0x8bcd47(0x33c)])??'unknown';return{'changeset':{'unitID':_0x145321,'type':_0x3fcfd6(_0x4d7fe3[_0x8bcd47(0x2d7)](_0x145321)),'baseRev':_0x26186a[_0x8bcd47(0x365)](_0x145321),'revision':0x0,'userID':_0x3ab1f7,'memberID':_0x80c419,'mutations':_0x1ee5dd},'pendingMutations':_0x456e00['slice'](_0x456e00['length'])};}function an(_0x156c44,_0x2b5b25){const _0x32c9fd=_0x552037;return!on(_0x156c44)&&!on(_0x2b5b25)&&sn(_0x156c44[_0x32c9fd(0x21d)],_0x2b5b25[_0x32c9fd(0x21d)]);}function on(_0x4ea12a){const _0x2786f0=_0x552037;return _0x4ea12a[_0x2786f0(0x3e1)]!==void 0x0;}function sn(_0x4cb032,_0x3c4027){return cn(_0x4cb032)&&cn(_0x3c4027)&&!un(_0x4cb032)&&!un(_0x3c4027)&&!ln(_0x4cb032)&&!ln(_0x3c4027);}function cn(_0x370b1a){const _0x1acd4e=_0x552037;return dn(_0x370b1a)['some'](_0x7c6479=>fn(_0x7c6479)&&_0x7c6479['et']===_0x1acd4e(0x435));}function ln(_0x298804){const _0x193dab=_0x552037;return dn(_0x298804)['some'](_0x5094ec=>Array[_0x193dab(0x23f)](_0x5094ec)||typeof _0x5094ec==_0x193dab(0x262)||typeof _0x5094ec==_0x193dab(0x2b7));}function un(_0x132206){const _0x32d484=_0x552037;return dn(_0x132206)[_0x32d484(0x3e6)](_0x48c3c3=>!fn(_0x48c3c3)||_0x48c3c3['et']!==_0x32d484(0x435)||!Array['isArray'](_0x48c3c3['e'])?!0x1:_0x48c3c3['e'][_0x32d484(0x3e6)](_0x42a476=>!fn(_0x42a476)||!fn(_0x42a476[_0x32d484(0x418)])?!0x1:Object['prototype']['hasOwnProperty']['call'](_0x42a476[_0x32d484(0x418)],'tables')||Object[_0x32d484(0x1cb)]['hasOwnProperty'][_0x32d484(0x290)](_0x42a476[_0x32d484(0x418)],_0x32d484(0x443))||Object[_0x32d484(0x1cb)][_0x32d484(0x2b8)]['call'](_0x42a476[_0x32d484(0x418)],_0x32d484(0x41d))));}function dn(_0x104779){const _0x1af96c=_0x552037;if(!Array[_0x1af96c(0x23f)](_0x104779))return[];let _0x13dfa4=_0x104779[_0x1af96c(0x25d)](_0x1af96c(0x418))?_0x104779:_0x104779[_0x1af96c(0x274)](_0x42595c=>Array[_0x1af96c(0x23f)](_0x42595c)&&_0x42595c[_0x1af96c(0x25d)](_0x1af96c(0x418)));if(!Array[_0x1af96c(0x23f)](_0x13dfa4))return[];let _0x3d0f7c=_0x13dfa4[_0x1af96c(0x22d)](_0x1af96c(0x418));return _0x3d0f7c===-0x1?[]:_0x13dfa4[_0x1af96c(0x325)](_0x3d0f7c+0x1);}function fn(_0x45987c){const _0x36751a=_0x552037;return typeof _0x45987c=='object'&&!!_0x45987c&&!Array[_0x36751a(0x23f)](_0x45987c);}function pn(_0x5838ff,_0x5a5591){const _0x27283c=_0x552037;let _0x4f2e2f=new _0x20e7eb(0x1);return setTimeout(()=>_0x4f2e2f[_0x27283c(0x23c)](_0x5a5591),_0x5838ff),_0x4f2e2f['asObservable']()['pipe'](_0x4cb55e(0x1));}var mn,hn,gn;let _n=function(_0x44fbbb){const _0x34c68a=_0x552037;return _0x44fbbb[_0x34c68a(0x1c8)]=_0x34c68a(0x1b6),_0x44fbbb[_0x34c68a(0x1f4)]=_0x34c68a(0x1c5),_0x44fbbb[_0x34c68a(0x44b)]='pending',_0x44fbbb[_0x34c68a(0x3b9)]='awaiting',_0x44fbbb[_0x34c68a(0x391)]=_0x34c68a(0x330),_0x44fbbb[_0x34c68a(0x46c)]=_0x34c68a(0x3c9),_0x44fbbb['CONFLICT']='conflict',_0x44fbbb[_0x34c68a(0x3c2)]=_0x34c68a(0x2a2),_0x44fbbb;}({});const vn=0x4e20,yn=0x2bf20;var G=class{constructor(_0x369553,_0x8ba2a9,_0xaeb55e,_0xb44ec7,_0x949d9e,_0xbd793a,_0x243088,_0x57be7b,_0x190a16){const _0x40fc49=_0x552037;this['unitID']=_0x369553,this[_0x40fc49(0x43c)]=_0x8ba2a9,this[_0x40fc49(0x42f)]=_0x949d9e,this['_commandService']=_0xbd793a,this[_0x40fc49(0x2eb)]=_0x243088,this[_0x40fc49(0x3d1)]=_0x57be7b,this[_0x40fc49(0x1eb)]=_0x190a16,z(this,_0x40fc49(0x1e6),null),z(this,_0x40fc49(0x22f),[]),this['_awaitingChangeset']=_0xaeb55e,this['_pendingMutations']=_0xb44ec7;}[_0x552037(0x3a2)](_0x4c3e91){const _0x496645=_0x552037;let _0x12d47c=this['_revisionService']['getCurrentRevOfUnit'](this[_0x496645(0x244)]);return _0x4c3e91[_0x496645(0x469)]>_0x12d47c+0x1&&(this['_handler'][_0x496645(0x224)]({'from':_0x12d47c,'to':_0x4c3e91[_0x496645(0x469)]-0x1}),!0x0);}['_transformUndoredo'](_0x47963b){const _0x277351=_0x552037;this['_undoRedoService'][_0x277351(0x2fa)](this[_0x277351(0x244)],_0x47963b);}['_transformSelections'](_0x449f51){const _0x50644a=_0x552037;var _0x255dad,_0x3d25b7;(_0x255dad=(_0x3d25b7=this['_handler'])['onTransformSelections'])==null||_0x255dad[_0x50644a(0x290)](_0x3d25b7,_0x449f51);}['_prepareTransformSelections'](_0x27eff4){const _0x5b3486=_0x552037;var _0x337151,_0x5842f0;return((_0x337151=(_0x5842f0=this[_0x5b3486(0x42f)])[_0x5b3486(0x3cc)])==null?void 0x0:_0x337151[_0x5b3486(0x290)](_0x5842f0,_0x27eff4))??null;}[_0x552037(0x394)](_0x42f082){var _0x3d9b3f,_0x16bb66;return(_0x3d9b3f=(_0x16bb66=this['_handler'])['onTransformIME'])==null?void 0x0:_0x3d9b3f['call'](_0x16bb66,_0x42f082);}[_0x552037(0x1ef)](_0xaf736c){const _0x22644e=_0x552037;var _0x48abb1,_0x49d998;return(_0x48abb1=(_0x49d998=this[_0x22644e(0x42f)])[_0x22644e(0x270)])==null?void 0x0:_0x48abb1[_0x22644e(0x290)](_0x49d998,_0xaf736c);}['_transformRemoteChangesetByIMECache'](_0x48bc51){const _0x4c3cda=_0x552037;var _0x290b11,_0x522510;return((_0x290b11=(_0x522510=this[_0x4c3cda(0x42f)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x290b11[_0x4c3cda(0x290)](_0x522510,_0x48bc51))??_0x48bc51;}[_0x552037(0x2f7)](_0x5a13b4){const _0x35b49a=_0x552037;var _0x1146b0,_0xd01d46;return((_0x1146b0=(_0xd01d46=this[_0x35b49a(0x42f)])[_0x35b49a(0x1db)])==null?void 0x0:_0x1146b0[_0x35b49a(0x290)](_0xd01d46,_0x5a13b4))??_0x5a13b4;}[_0x552037(0x445)](_0x463e92){const _0x7b4d3f=_0x552037;if(this['type']===_0x4da65d[_0x7b4d3f(0x2ab)]){let {unitID:_0x4faccf,mutations:_0x26dd70,memberID:_0x586098}=_0x463e92,_0x1c718d=_0x26dd70[_0x7b4d3f(0x283)]>0x0?_0x26dd70[0x0][_0x7b4d3f(0x2de)][_0x7b4d3f(0x27c)]:[];if(Array['isArray'](_0x1c718d)&&_0x1c718d['length']>0x0){var _0x3df212,_0x4b968a;(_0x3df212=(_0x4b968a=this['_handler'])[_0x7b4d3f(0x3a9)])==null||_0x3df212['call'](_0x4b968a,{'unitID':_0x4faccf,'memberID':_0x586098,'textRanges':_0x1c718d});}}}[_0x552037(0x31f)](){const _0x2dc16d=_0x552037;var _0x47f1f9;(_0x47f1f9=this[_0x2dc16d(0x1eb)])==null||_0x47f1f9[_0x2dc16d(0x387)](this[_0x2dc16d(0x244)],this[_0x2dc16d(0x43c)],this['_awaitingChangeset'],this[_0x2dc16d(0x22f)]);}['_getCurrentRevision'](){const _0x575b8b=_0x552037;return this['_revisionService'][_0x575b8b(0x365)](this[_0x575b8b(0x244)]);}['_incrementRevisionNumber'](){const _0x5d6eed=_0x552037;this['_revisionService'][_0x5d6eed(0x22b)](this['unitID']);}[_0x552037(0x2d6)](_0x342090){const _0x1dd5ba=_0x552037;let _0x539654=this['_transformRemoteChangesetByIMECache'](_0x342090);_0x539654=this[_0x1dd5ba(0x2f7)](_0x539654);let _0x342532=this[_0x1dd5ba(0x237)](_0x539654),_0x3a1561=_0x18a178(_0x539654[_0x1dd5ba(0x360)],this[_0x1dd5ba(0x2fe)],{'fromCollab':!0x0});if(!_0x3a1561[_0x1dd5ba(0x2cb)])throw _0x342532==null||_0x342532[_0x1dd5ba(0x386)](),_0x3a1561[_0x1dd5ba(0x329)]instanceof Error?_0x3a1561[_0x1dd5ba(0x329)]:Error(_0x3a1561[_0x1dd5ba(0x329)]??_0x1dd5ba(0x455));_0x342532==null||_0x342532['commit'](),this[_0x1dd5ba(0x394)](_0x539654),this['_transformStateCache'](_0x539654),this[_0x1dd5ba(0x3ac)](_0x342090),this[_0x1dd5ba(0x2f0)](_0x539654),this[_0x1dd5ba(0x445)](_0x539654),this[_0x1dd5ba(0x1d4)]();}};let K=class extends G{constructor(_0x3b8c24,_0x272846,_0x16a9a9,_0x34ed80,_0x2b7f04,_0x7a0e12,_0x16280c,_0x4faa47,_0x28c51f,_0x4058a0){const _0x1a3391=_0x552037;super(_0x3b8c24,_0x272846,null,[],_0x16a9a9,_0x16280c,_0x7a0e12,_0x34ed80,_0x4058a0),this[_0x1a3391(0x1f2)]=_0x2b7f04,this[_0x1a3391(0x319)]=_0x4faa47,this[_0x1a3391(0x1ba)]=_0x28c51f,this['localCacheService']=_0x4058a0,z(this,_0x1a3391(0x41f),_0x1a3391(0x1c5));}[_0x552037(0x281)](_0x3ff971){const _0x28a4a5=_0x552037;let _0x1720d1=this[_0x28a4a5(0x1f2)]['createInstance'](q,this[_0x28a4a5(0x244)],this[_0x28a4a5(0x43c)],[_0x3ff971],this['_handler']);return _0x1720d1['_schedule'](),_0x1720d1[_0x28a4a5(0x31f)](),_0x1720d1;}[_0x552037(0x417)](_0x11bec2){const _0x2f7c48=_0x552037;if(this[_0x2f7c48(0x3a2)](_0x11bec2))return this[_0x2f7c48(0x1f2)][_0x2f7c48(0x214)](Q,this['unitID'],this['type'],null,[],null,[_0x11bec2],this['_handler']);try{let _0x9e523d=this[_0x2f7c48(0x1ba)][_0x2f7c48(0x38a)](_0x11bec2,[_0x554fe0]);if(_0x3f64c8(_0x9e523d)){let {c1Prime:_0xa35a2}=_0x9e523d;return this['_executeRemoteChangeset'](_0xa35a2),this;}throw _0x9e523d[_0x2f7c48(0x329)];}catch(_0x98bcb){return this['_logService'][_0x2f7c48(0x329)](_0x98bcb),this[_0x2f7c48(0x1cc)](!0x1);}}[_0x552037(0x1cc)](_0x1ed6a5){const _0x577e89=_0x552037;return this['_injector'][_0x577e89(0x214)](X,this[_0x577e89(0x244)],this['type'],null,[],this['_handler'],_0x1ed6a5);}['onRemoteAck'](_0x537ee5){const _0x45041d=_0x552037;if(_0x537ee5[_0x45041d(0x469)]<=this['_getCurrentRevision']())return this;throw Error(_0x45041d(0x21b));}[_0x552037(0x3eb)](){const _0x85e46=_0x552037;throw Error(_0x85e46(0x2f1));}[_0x552037(0x429)](){return this;}['toggleOffline'](){const _0x3e1521=_0x552037;return this['_injector'][_0x3e1521(0x214)](Z,this[_0x3e1521(0x244)],this[_0x3e1521(0x43c)],null,[],this[_0x3e1521(0x42f)]);}[_0x552037(0x3c0)](){return this;}[_0x552037(0x3ca)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x552037(0x352)](){const _0x81e901=_0x552037;let _0x3350b7=this[_0x81e901(0x3d1)][_0x81e901(0x365)](this[_0x81e901(0x244)]);return this[_0x81e901(0x42f)][_0x81e901(0x224)]({'from':_0x3350b7,'to':0x0}),this['_injector']['createInstance'](Q,this[_0x81e901(0x244)],this[_0x81e901(0x43c)],null,[],null,[],this[_0x81e901(0x42f)]);}};K=H([V(0x3,_0x51c6d7(_0x4d7e58)),V(0x4,_0x51c6d7(_0x21dcba)),V(0x5,_0x49d766),V(0x6,_0x56ddbd),V(0x7,_0x11662d),V(0x8,_0x154e7e),V(0x9,_0x338273(U))],K);let q=mn=class extends G{constructor(_0x34f8b2,_0x5bf035,_0x58840d,_0x41c037,_0x3f323a,_0x86c4be,_0x7b91cd,_0x825495,_0x4fafbe,_0x46eaa4,_0x5f1e8a,_0x5c6204,_0x293299,_0xa47233){const _0x210ffa=_0x552037;super(_0x34f8b2,_0x5bf035,null,_0x58840d,_0x41c037,_0x4fafbe,_0x293299,_0x86c4be,_0xa47233),this[_0x210ffa(0x1f2)]=_0x3f323a,this[_0x210ffa(0x36e)]=_0x7b91cd,this[_0x210ffa(0x319)]=_0x825495,this[_0x210ffa(0x212)]=_0x46eaa4,this[_0x210ffa(0x1ba)]=_0x5f1e8a,this[_0x210ffa(0x2e2)]=_0x5c6204,z(this,_0x210ffa(0x41f),_0x210ffa(0x242)),z(this,_0x210ffa(0x34a),null),z(this,_0x210ffa(0x33f),null);}[_0x552037(0x281)](_0x5aaa0b){const _0x208d25=_0x552037;return this[_0x208d25(0x22f)]['push'](_0x5aaa0b),this[_0x208d25(0x31f)](),this;}[_0x552037(0x417)](_0x510cac){const _0x30e64f=_0x552037;if(this[_0x30e64f(0x3a2)](_0x510cac))return this[_0x30e64f(0x46e)](),this[_0x30e64f(0x1f2)]['createInstance'](Q,this['unitID'],this[_0x30e64f(0x43c)],null,this[_0x30e64f(0x22f)],null,[_0x510cac],this[_0x30e64f(0x42f)]);try{let _0x3a8a4d=this[_0x30e64f(0x1ba)][_0x30e64f(0x38a)](_0x510cac,this[_0x30e64f(0x22f)]);if(_0x3f64c8(_0x3a8a4d)){let {c1Prime:_0x525b68,m2Prime:_0x2f46b6}=_0x3a8a4d;this['_executeRemoteChangeset'](_0x525b68);let _0x26097f=this[_0x30e64f(0x1f2)][_0x30e64f(0x214)](mn,this[_0x30e64f(0x244)],this[_0x30e64f(0x43c)],_0x2f46b6,this[_0x30e64f(0x42f)]);this[_0x30e64f(0x46e)]();let _0x5dfbdd=new Date()['getTime'](),_0x434e71=this['_scheduleCompleteTimestamp']?Math[_0x30e64f(0x2a8)](this['_scheduleCompleteTimestamp']-_0x5dfbdd,0x0):this[_0x30e64f(0x236)]();return _0x26097f['_schedule'](_0x434e71),_0x26097f;}throw _0x3a8a4d[_0x30e64f(0x329)];}catch(_0x3410b3){return this['_logService'][_0x30e64f(0x329)](_0x3410b3),this['_onConflict'](!0x1);}}[_0x552037(0x2fc)](_0x432faa){const _0xdbc60d=_0x552037;if(_0x432faa[_0xdbc60d(0x469)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x4f0d1c=_0x552037;throw Error(_0x4f0d1c(0x28f));}[_0x552037(0x429)](){return this;}[_0x552037(0x388)](){const _0x11d1b6=_0x552037;return this['_clearScheduledTask'](),this[_0x11d1b6(0x1f2)][_0x11d1b6(0x214)](Z,this['unitID'],this[_0x11d1b6(0x43c)],null,this[_0x11d1b6(0x22f)],this['_handler']);}[_0x552037(0x3c0)](){return this;}['_schedule'](_0x1d5783){const _0x417920=_0x552037;let _0x16ede1=_0x1d5783??this[_0x417920(0x236)]();this[_0x417920(0x34a)]=new Date()[_0x417920(0x3e0)]()+_0x16ede1,this[_0x417920(0x33f)]=setTimeout(()=>{const _0x2c2a75=_0x417920;this['_clearScheduledTask']();let _0xc8dcee=null;switch(this[_0x2c2a75(0x43c)]){case _0x4da65d[_0x2c2a75(0x3ea)]:_0xc8dcee=en(this[_0x2c2a75(0x22f)],this[_0x2c2a75(0x244)],this[_0x2c2a75(0x2e2)],this[_0x2c2a75(0x3d1)],this[_0x2c2a75(0x36e)]);break;case _0x4da65d['UNIVER_DOC']:_0xc8dcee=this[_0x2c2a75(0x22f)][_0x2c2a75(0x228)](_0x4e28e8=>_0x4e28e8['id']===_0x50a9b9['id'])?rn(this[_0x2c2a75(0x22f)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x2c2a75(0x36e)]):en(this[_0x2c2a75(0x22f)],this[_0x2c2a75(0x244)],this[_0x2c2a75(0x2e2)],this[_0x2c2a75(0x3d1)],this['_userManagerService']);break;case _0x4da65d[_0x2c2a75(0x202)]:_0xc8dcee=nn(this['_pendingMutations'],this[_0x2c2a75(0x244)],this[_0x2c2a75(0x2e2)],this[_0x2c2a75(0x3d1)],this[_0x2c2a75(0x36e)]);break;case _0x4da65d[_0x2c2a75(0x234)]:_0xc8dcee=tn(this[_0x2c2a75(0x22f)],this['unitID'],this[_0x2c2a75(0x2e2)],this[_0x2c2a75(0x3d1)],this[_0x2c2a75(0x36e)]);break;case _0x4da65d[_0x2c2a75(0x2a9)]:_0xc8dcee=en(this[_0x2c2a75(0x22f)],this[_0x2c2a75(0x244)],this[_0x2c2a75(0x2e2)],this[_0x2c2a75(0x3d1)],this['_userManagerService']);break;case _0x4da65d[_0x2c2a75(0x404)]:_0xc8dcee=en(this[_0x2c2a75(0x22f)],this['unitID'],this[_0x2c2a75(0x2e2)],this['_revisionService'],this['_userManagerService']);break;default:throw Error(_0x2c2a75(0x28a)+this[_0x2c2a75(0x43c)]+'\x20in\x20_schedule.');}let {changeset:_0x470d67,pendingMutations:_0x4c2e17}=_0xc8dcee;this[_0x2c2a75(0x42f)][_0x2c2a75(0x444)](_0x470d67);let _0x5aa0e4=_0x4c2e17[_0x2c2a75(0x283)]?this[_0x2c2a75(0x1f2)][_0x2c2a75(0x214)](Y,this[_0x2c2a75(0x244)],this[_0x2c2a75(0x43c)],_0x470d67,_0x4c2e17,this[_0x2c2a75(0x42f)],void 0x0):this[_0x2c2a75(0x1f2)][_0x2c2a75(0x214)](J,this[_0x2c2a75(0x244)],this[_0x2c2a75(0x43c)],_0x470d67,this[_0x2c2a75(0x42f)]);_0x5aa0e4[_0x2c2a75(0x31f)](),this[_0x2c2a75(0x42f)][_0x2c2a75(0x203)](this,_0x5aa0e4);},_0x16ede1);}[_0x552037(0x236)](){const _0x2256a2=_0x552037;let _0x423b68=this[_0x2256a2(0x212)][_0x2256a2(0x2f9)](R);return(_0x423b68==null?void 0x0:_0x423b68['sendChangesetTimeout'])??0x7d0;}[_0x552037(0x3ca)](){const _0x3ab915=_0x552037;throw Error(_0x3ab915(0x1dc));}['_clearScheduledTask'](){const _0xa07dfe=_0x552037;this[_0xa07dfe(0x33f)]!=null&&(clearTimeout(this[_0xa07dfe(0x33f)]),this[_0xa07dfe(0x33f)]=null);}['_onConflict'](_0x23a3cd){const _0x1682ca=_0x552037;return this[_0x1682ca(0x46e)](),this[_0x1682ca(0x1f2)]['createInstance'](X,this[_0x1682ca(0x244)],this[_0x1682ca(0x43c)],null,this[_0x1682ca(0x22f)],this[_0x1682ca(0x42f)],_0x23a3cd);}};q=mn=H([V(0x4,_0x51c6d7(_0x21dcba)),V(0x5,_0x51c6d7(_0x4d7e58)),V(0x6,_0x51c6d7(_0x36b983)),V(0x7,_0x11662d),V(0x8,_0x56ddbd),V(0x9,_0x1fb7be),V(0xa,_0x154e7e),V(0xb,_0x51bdf2),V(0xc,_0x49d766),V(0xd,_0x338273(U))],q);let J=hn=class extends G{constructor(_0x4ebe85,_0x1a101f,_0x3284f1,_0x3cd515,_0x390bc4,_0x28a4bd,_0x225d21,_0x145c28,_0x408f60,_0x4c219f,_0x46a37d){const _0x21895c=_0x552037;super(_0x4ebe85,_0x1a101f,_0x3284f1,[],_0x3cd515,_0x225d21,_0x4c219f,_0x28a4bd,_0x46a37d),this[_0x21895c(0x1f2)]=_0x390bc4,this['_logService']=_0x145c28,this[_0x21895c(0x1ba)]=_0x408f60,z(this,_0x21895c(0x41f),'awaiting'),z(this,_0x21895c(0x27e),0x0),z(this,_0x21895c(0x362),0x0),z(this,_0x21895c(0x2ac),void 0x0),z(this,_0x21895c(0x2c3),void 0x0);}[_0x552037(0x281)](_0x51c504){const _0x1aeb67=_0x552037;this[_0x1aeb67(0x46e)]();let _0x127e1d=this[_0x1aeb67(0x1f2)]['createInstance'](Y,this[_0x1aeb67(0x244)],this[_0x1aeb67(0x43c)],this[_0x1aeb67(0x1e6)],[_0x51c504],this['_handler'],this[_0x1aeb67(0x2ac)]);return _0x127e1d[_0x1aeb67(0x31f)](),_0x127e1d;}[_0x552037(0x417)](_0x450888){const _0x1356f9=_0x552037;if(this[_0x1356f9(0x3a2)](_0x450888))return this[_0x1356f9(0x46e)](),this[_0x1356f9(0x1f2)]['createInstance'](Q,this['unitID'],this['type'],this['_awaitingChangeset'],[],null,[_0x450888],this[_0x1356f9(0x42f)]);try{let _0x2504cb=this[_0x1356f9(0x1ba)][_0x1356f9(0x2a5)]([_0x450888],[this[_0x1356f9(0x1e6)]],!0x1);if(_0x34d422(_0x2504cb)){let {c1Prime:_0x547908,c2Prime:_0xbb0b72}=_0x2504cb;this['_executeRemoteChangeset'](_0x547908[0x0]),_0xbb0b72[0x0][_0x1356f9(0x1ce)]=this['_getCurrentRevision'](),this[_0x1356f9(0x46e)]();let _0xd3982f=this[_0x1356f9(0x1f2)][_0x1356f9(0x214)](hn,this[_0x1356f9(0x244)],this[_0x1356f9(0x43c)],_0xbb0b72[0x0],this[_0x1356f9(0x42f)]);return _0xd3982f[_0x1356f9(0x31f)](),_0xd3982f;}throw _0x2504cb[_0x1356f9(0x329)];}catch(_0x26cc9b){return this['_logService']['error'](_0x26cc9b),this[_0x1356f9(0x1cc)](!0x1);}}[_0x552037(0x2fc)](_0x55a86a){const _0x4bfa9d=_0x552037;this[_0x4bfa9d(0x46e)]();let _0x3acb29=this[_0x4bfa9d(0x3d1)][_0x4bfa9d(0x365)](this['unitID']);if(_0x55a86a[_0x4bfa9d(0x469)]<=_0x3acb29)return this;if(this[_0x4bfa9d(0x3a2)](_0x55a86a))return this['_injector'][_0x4bfa9d(0x214)](Q,this[_0x4bfa9d(0x244)],this[_0x4bfa9d(0x43c)],this['_awaitingChangeset'],[],_0x55a86a[_0x4bfa9d(0x469)],[],this[_0x4bfa9d(0x42f)]);this['_incrementRevisionNumber']();let _0x3b53b4=this['_injector']['createInstance'](K,this[_0x4bfa9d(0x244)],this[_0x4bfa9d(0x43c)],this[_0x4bfa9d(0x42f)]);return _0x3b53b4[_0x4bfa9d(0x31f)](),_0x3b53b4;}[_0x552037(0x3eb)](_0x42f30b){const _0x36c949=_0x552037;return this['_onConflict'](!!(_0x42f30b!=null&&_0x42f30b[_0x36c949(0x476)]));}[_0x552037(0x429)](_0x9a5a1d){const _0x1ef7b1=_0x552037;return this[_0x1ef7b1(0x362)]>yn?this[_0x1ef7b1(0x388)]():(this[_0x1ef7b1(0x2ac)]=pn(this[_0x1ef7b1(0x27e)],{'timeout':this['_resendTimeout'],'reqId':_0x9a5a1d[_0x1ef7b1(0x233)]}),this[_0x1ef7b1(0x2c3)]=this['_resendTimer'][_0x1ef7b1(0x338)](({reqId:_0x2f85ac,timeout:_0x57401e})=>{const _0x550777=_0x1ef7b1;this[_0x550777(0x339)](_0x2f85ac,_0x57401e);}),this);}[_0x552037(0x388)](){const _0x4643d2=_0x552037;return this[_0x4643d2(0x46e)](),this[_0x4643d2(0x1f2)]['createInstance'](Z,this[_0x4643d2(0x244)],this[_0x4643d2(0x43c)],this[_0x4643d2(0x1e6)],[],this[_0x4643d2(0x42f)]);}[_0x552037(0x3c0)](){return this;}['resend'](){const _0x357a23=_0x552037;this[_0x357a23(0x42f)][_0x357a23(0x444)](this['_awaitingChangeset']);}[_0x552037(0x1cc)](_0x3dc8a8){const _0x4759ee=_0x552037;return this[_0x4759ee(0x46e)](),this[_0x4759ee(0x1f2)][_0x4759ee(0x214)](X,this[_0x4759ee(0x244)],this[_0x4759ee(0x43c)],this[_0x4759ee(0x1e6)],[],this[_0x4759ee(0x42f)],_0x3dc8a8);}[_0x552037(0x339)](_0x17221b,_0x562434){const _0x1fe9eb=_0x552037;var _0x568ee5;_0x17221b===((_0x568ee5=this[_0x1fe9eb(0x1e6)])==null?void 0x0:_0x568ee5[_0x1fe9eb(0x233)])&&(this[_0x1fe9eb(0x3ca)](),this[_0x1fe9eb(0x27e)]=_0x562434===0x0?0x3e8:Math[_0x1fe9eb(0x375)](_0x562434*0x2,vn),this[_0x1fe9eb(0x362)]+=this[_0x1fe9eb(0x27e)]);}['_clearScheduledTask'](){const _0x4d124d=_0x552037;var _0x73c868;(_0x73c868=this[_0x4d124d(0x2c3)])==null||_0x73c868['unsubscribe'](),this[_0x4d124d(0x27e)]=0x0,this[_0x4d124d(0x362)]=0x0;}};J=hn=H([V(0x4,_0x51c6d7(_0x21dcba)),V(0x5,_0x51c6d7(_0x4d7e58)),V(0x6,_0x56ddbd),V(0x7,_0x11662d),V(0x8,_0x154e7e),V(0x9,_0x49d766),V(0xa,_0x338273(U))],J);let Y=gn=class extends G{constructor(_0x4f302b,_0x20090e,_0x2e727b,_0x25d63c,_0x297030,_0x55f265,_0x18cb36,_0x3ee973,_0x35ec8b,_0x405e1f,_0x2a53a5,_0x49c837,_0x477111){const _0x228847=_0x552037;super(_0x4f302b,_0x20090e,_0x2e727b,_0x25d63c,_0x297030,_0x35ec8b,_0x49c837,_0x3ee973,_0x477111),this['_injector']=_0x18cb36,this['_logService']=_0x405e1f,this[_0x228847(0x1ba)]=_0x2a53a5,this[_0x228847(0x294)]=_0x477111,z(this,_0x228847(0x41f),_0x228847(0x330)),z(this,_0x228847(0x27e),0x0),z(this,_0x228847(0x362),0x0),z(this,'_resendTimer',void 0x0),z(this,_0x228847(0x2c3),void 0x0),_0x55f265&&(this['_resendTimer']=_0x55f265,this[_0x228847(0x2c3)]=this[_0x228847(0x2ac)]['subscribe'](({reqId:_0x11ecc4,timeout:_0x50c108})=>{const _0x48c2fa=_0x228847;this[_0x48c2fa(0x339)](_0x11ecc4,_0x50c108);}));}[_0x552037(0x281)](_0x39a422){const _0x5d38bd=_0x552037;return this[_0x5d38bd(0x22f)]['push'](_0x39a422),this;}[_0x552037(0x417)](_0x3e6f60){const _0x3e3fc9=_0x552037;if(this[_0x3e3fc9(0x3a2)](_0x3e6f60))return this['_clearScheduledTask'](),this[_0x3e3fc9(0x1f2)][_0x3e3fc9(0x214)](Q,this[_0x3e3fc9(0x244)],this[_0x3e3fc9(0x43c)],this['_awaitingChangeset'],this[_0x3e3fc9(0x22f)],null,[_0x3e6f60],this['_handler']);try{let _0x357ea6=this['_transformService'][_0x3e3fc9(0x2a5)]([_0x3e6f60],[this['_awaitingChangeset']],!0x1);if(_0x34d422(_0x357ea6)){let {c1Prime:_0x28c75a,c2Prime:_0x5236af}=_0x357ea6,_0x5745fb=this[_0x3e3fc9(0x1ba)][_0x3e3fc9(0x38a)](_0x28c75a[0x0],this[_0x3e3fc9(0x22f)]);if(_0x3f64c8(_0x5745fb)){let {c1Prime:_0xe19700,m2Prime:_0x41e948}=_0x5745fb;return this[_0x3e3fc9(0x2d6)](_0xe19700),_0x5236af[0x0]['baseRev']=this[_0x3e3fc9(0x26e)](),this['_clearScheduledTask'](),this[_0x3e3fc9(0x1f2)][_0x3e3fc9(0x214)](gn,this[_0x3e3fc9(0x244)],this[_0x3e3fc9(0x43c)],_0x5236af[0x0],_0x41e948,this[_0x3e3fc9(0x42f)],void 0x0);}throw _0x5745fb[_0x3e3fc9(0x329)];}throw _0x357ea6[_0x3e3fc9(0x329)];}catch(_0x16508e){return this[_0x3e3fc9(0x319)][_0x3e3fc9(0x329)](_0x16508e),this[_0x3e3fc9(0x1cc)](!0x1);}}[_0x552037(0x2fc)](_0x314e0f){const _0x49a383=_0x552037;this[_0x49a383(0x46e)]();let _0x20812a=this[_0x49a383(0x26e)]();if(_0x314e0f[_0x49a383(0x469)]<=_0x20812a)return this;if(this[_0x49a383(0x3a2)](_0x314e0f))return this[_0x49a383(0x1f2)]['createInstance'](Q,this[_0x49a383(0x244)],this[_0x49a383(0x43c)],this[_0x49a383(0x1e6)],this[_0x49a383(0x22f)],_0x314e0f[_0x49a383(0x469)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x2aa815=this[_0x49a383(0x1f2)][_0x49a383(0x214)](q,this[_0x49a383(0x244)],this[_0x49a383(0x43c)],this['_pendingMutations'],this[_0x49a383(0x42f)]);return _0x2aa815[_0x49a383(0x357)](),_0x2aa815[_0x49a383(0x31f)](),_0x2aa815;}['onRemoteRej'](_0x18c826){const _0xa9fafb=_0x552037;return this[_0xa9fafb(0x1cc)](!!(_0x18c826!=null&&_0x18c826[_0xa9fafb(0x476)]));}['onRemoteRetry'](_0x264019){const _0x213d95=_0x552037;return this[_0x213d95(0x362)]>yn?this[_0x213d95(0x388)]():(this['_resendTimer']=pn(this[_0x213d95(0x27e)],{'timeout':this[_0x213d95(0x27e)],'reqId':_0x264019['reqId']}),this[_0x213d95(0x2c3)]=this[_0x213d95(0x2ac)][_0x213d95(0x338)](({reqId:_0x34ae64,timeout:_0x39f0fa})=>{const _0x56aba2=_0x213d95;this[_0x56aba2(0x339)](_0x34ae64,_0x39f0fa);}),this);}[_0x552037(0x388)](){const _0x23de54=_0x552037;return this[_0x23de54(0x46e)](),this[_0x23de54(0x1f2)]['createInstance'](Z,this[_0x23de54(0x244)],this['type'],this[_0x23de54(0x1e6)],this[_0x23de54(0x22f)],this[_0x23de54(0x42f)]);}[_0x552037(0x3c0)](){return this;}[_0x552037(0x3ca)](){const _0x2645c5=_0x552037;this[_0x2645c5(0x42f)][_0x2645c5(0x444)](this['_awaitingChangeset']);}[_0x552037(0x1cc)](_0x3256a6){const _0xa2ee84=_0x552037;return this[_0xa2ee84(0x46e)](),this[_0xa2ee84(0x1f2)][_0xa2ee84(0x214)](X,this['unitID'],this[_0xa2ee84(0x43c)],null,this['_pendingMutations'],this[_0xa2ee84(0x42f)],_0x3256a6);}[_0x552037(0x339)](_0x1caf65,_0x184182){const _0x297ec7=_0x552037;var _0xf2cb28;_0x1caf65===((_0xf2cb28=this[_0x297ec7(0x1e6)])==null?void 0x0:_0xf2cb28[_0x297ec7(0x233)])&&(this[_0x297ec7(0x3ca)](),this[_0x297ec7(0x27e)]=_0x184182===0x0?0x3e8:Math[_0x297ec7(0x375)](_0x184182*0x2,vn),this[_0x297ec7(0x362)]+=this[_0x297ec7(0x27e)]);}['_clearScheduledTask'](){const _0x30e199=_0x552037;var _0x1cd9c9;(_0x1cd9c9=this[_0x30e199(0x2c3)])==null||_0x1cd9c9[_0x30e199(0x20d)](),this[_0x30e199(0x27e)]=0x0,this[_0x30e199(0x362)]=0x0;}};Y=gn=H([V(0x6,_0x51c6d7(_0x21dcba)),V(0x7,_0x51c6d7(_0x4d7e58)),V(0x8,_0x56ddbd),V(0x9,_0x11662d),V(0xa,_0x154e7e),V(0xb,_0x49d766),V(0xc,_0x338273(U))],Y);let X=class extends G{constructor(_0x32d157,_0x921aad,_0x2edf67,_0x3cc0cf,_0x4aa2db,_0x2051e7=!0x1,_0x2b96f1,_0x24bc37,_0x25f0ff,_0x2f417b,_0x296a93,_0x29f1dd,_0x43e0de){const _0x3a3087=_0x552037;super(_0x32d157,_0x921aad,_0x2edf67,_0x3cc0cf,_0x4aa2db,_0x24bc37,_0x25f0ff,_0x2f417b,_0x43e0de),this['_isPermissionRej']=_0x2051e7,this[_0x3a3087(0x2d9)]=_0x2b96f1,this[_0x3a3087(0x385)]=_0x296a93,this['_collaborationUIEventService']=_0x29f1dd,this[_0x3a3087(0x294)]=_0x43e0de,z(this,_0x3a3087(0x41f),_0x3a3087(0x3df)),this[_0x3a3087(0x370)](),this[_0x3a3087(0x2d4)](),this['_prepareConflictRecovery']();}[_0x552037(0x281)](){return this;}['onRemoteChangeset'](){return this;}[_0x552037(0x2fc)](){return this;}[_0x552037(0x3eb)](){return this;}[_0x552037(0x429)](){return this;}[_0x552037(0x388)](){return this;}[_0x552037(0x3c0)](){return this;}[_0x552037(0x3ca)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}async[_0x552037(0x30f)](){const _0x32d72b=_0x552037;var _0x173805,_0x2391b5;await((_0x173805=this[_0x32d72b(0x1eb)])==null||(_0x2391b5=_0x173805[_0x32d72b(0x2c4)])==null?void 0x0:_0x2391b5[_0x32d72b(0x290)](_0x173805,this[_0x32d72b(0x244)],_0x32d72b(0x3df))['catch'](()=>void 0x0));try{var _0x11635e;await((_0x11635e=this[_0x32d72b(0x1eb)])==null?void 0x0:_0x11635e[_0x32d72b(0x344)](this['unitID']));}catch{this[_0x32d72b(0x1fb)][_0x32d72b(0x457)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x32d72b(0x244)]});return;}this['_showConflictNotification']();}[_0x552037(0x2d4)](){const _0x23ec7f=_0x552037;this[_0x23ec7f(0x1fb)][_0x23ec7f(0x457)]({'id':_0x23ec7f(0x2e1)});}['_showConflictNotification'](){const _0x4b90f8=_0x552037;this[_0x4b90f8(0x258)]?this[_0x4b90f8(0x1fb)]['emitEvent']({'id':'PERMISSION_DENIED'}):this['_collaborationUIEventService'][_0x4b90f8(0x457)]({'id':_0x4b90f8(0x229)});}[_0x552037(0x370)](){const _0x354a45=_0x552037;this[_0x354a45(0x2d9)][_0x354a45(0x3de)](new _0x50091d(this[_0x354a45(0x244)])['id'],!0x1);}};X=H([V(0x6,_0x51c6d7(_0x2fd944)),V(0x7,_0x56ddbd),V(0x8,_0x49d766),V(0x9,_0x51c6d7(_0x4d7e58)),V(0xa,_0x51c6d7(_0xb3ec34)),V(0xb,_0x51c6d7(B)),V(0xc,_0x338273(U))],X);let Z=class extends G{constructor(_0x2f75ee,_0x4228d6,_0x2b02f8,_0x109309,_0x325e3,_0x3e6892,_0x28078c,_0x1e6ba2,_0x489d31,_0x1bc106){const _0x30c26c=_0x552037;super(_0x2f75ee,_0x4228d6,_0x2b02f8,_0x109309,_0x325e3,_0x1e6ba2,_0x489d31,_0x28078c,_0x1bc106),this[_0x30c26c(0x1f2)]=_0x3e6892,z(this,'status','offline');}[_0x552037(0x281)](_0x459309){const _0x3c5232=_0x552037;return this[_0x3c5232(0x22f)][_0x3c5232(0x421)](_0x459309),this[_0x3c5232(0x31f)](),this;}[_0x552037(0x417)](_0x129376){const _0x46f45a=_0x552037;throw Error(_0x46f45a(0x26d));}[_0x552037(0x2fc)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x552037(0x3eb)](){const _0x612257=_0x552037;throw Error(_0x612257(0x309));}['onRemoteRetry'](){return this;}[_0x552037(0x388)](){return this;}[_0x552037(0x3c0)](){const _0x22b16d=_0x552037;let {_injector:_0x979358,_pendingMutations:_0x4141c5,_awaitingChangeset:_0x298cdc,unitID:_0x20b139,_handler:_0x59c494,type:_0x6c91fe}=this,_0xeb981=bn(_0x979358,_0x20b139,_0x6c91fe,_0x298cdc,_0x4141c5,_0x59c494);return _0xeb981 instanceof q?_0xeb981['_schedule']():(_0xeb981 instanceof Y||_0xeb981 instanceof J)&&_0xeb981[_0x22b16d(0x3ca)](),_0xeb981;}[_0x552037(0x3ca)](){const _0x1917c6=_0x552037;throw Error(_0x1917c6(0x44e));}};Z=H([V(0x5,_0x51c6d7(_0x21dcba)),V(0x6,_0x51c6d7(_0x4d7e58)),V(0x7,_0x56ddbd),V(0x8,_0x49d766),V(0x9,_0x338273(U))],Z);let Q=class extends G{constructor(_0xcca847,_0x164603,_0x2327ed,_0x14248b,_0x39f621,_0x17a565,_0x460b1f,_0x90905d,_0x5a65c0,_0x3139e9,_0x2d5751,_0x2980f3,_0x2cc951,_0x4ded52){const _0x4bc54a=_0x552037;super(_0xcca847,_0x164603,_0x2327ed,_0x14248b,_0x460b1f,_0x2d5751,_0x2980f3,_0x5a65c0,_0x4ded52),this[_0x4bc54a(0x217)]=_0x39f621,this[_0x4bc54a(0x30c)]=_0x17a565,this[_0x4bc54a(0x1f2)]=_0x90905d,this[_0x4bc54a(0x319)]=_0x3139e9,this[_0x4bc54a(0x1ba)]=_0x2cc951,this[_0x4bc54a(0x294)]=_0x4ded52,z(this,'status',_0x4bc54a(0x3c9));}[_0x552037(0x204)](_0x4f0321){const _0x179bfc=_0x552037;try{if(this['_handleRemoteChangesets'](_0x4f0321)['missingChangesets'])throw Error(_0x179bfc(0x3b0));if(this[_0x179bfc(0x3d0)]([...this[_0x179bfc(0x30c)]]['sort']((_0xc24e9a,_0x587bc5)=>_0xc24e9a[_0x179bfc(0x469)]-_0x587bc5[_0x179bfc(0x469)]))[_0x179bfc(0x3f1)])return this['_queuedRemoteChangesets']=[],this[_0x179bfc(0x31f)](),this[_0x179bfc(0x42f)][_0x179bfc(0x224)]({'from':this[_0x179bfc(0x26e)](),'to':0x0}),this;let _0x1c590b=this[_0x179bfc(0x1e6)],_0x1e3080=this[_0x179bfc(0x22f)],_0x417cee;if(_0x1c590b&&_0x1e3080[_0x179bfc(0x283)]!==0x0)_0x417cee=this[_0x179bfc(0x1f2)][_0x179bfc(0x214)](Y,this[_0x179bfc(0x244)],this[_0x179bfc(0x43c)],_0x1c590b,_0x1e3080,this[_0x179bfc(0x42f)],void 0x0);else{if(_0x1c590b&&_0x1e3080[_0x179bfc(0x283)]===0x0)_0x1c590b[_0x179bfc(0x1ce)]=this[_0x179bfc(0x26e)](),_0x417cee=this[_0x179bfc(0x1f2)][_0x179bfc(0x214)](J,this[_0x179bfc(0x244)],this[_0x179bfc(0x43c)],_0x1c590b,this['_handler']);else{if(_0x1e3080[_0x179bfc(0x283)]!==0x0){let _0x522282=this[_0x179bfc(0x1f2)][_0x179bfc(0x214)](q,this[_0x179bfc(0x244)],this[_0x179bfc(0x43c)],_0x1e3080,this[_0x179bfc(0x42f)]);_0x522282['_schedule'](),_0x417cee=_0x522282;}else _0x417cee=this[_0x179bfc(0x1f2)][_0x179bfc(0x214)](K,this[_0x179bfc(0x244)],this[_0x179bfc(0x43c)],this[_0x179bfc(0x42f)]);}}return _0x417cee['_updateLocalCache'](),_0x417cee;}catch(_0x514ba6){return this[_0x179bfc(0x319)][_0x179bfc(0x329)](_0x179bfc(0x441),_0x179bfc(0x2bb),_0x514ba6),this[_0x179bfc(0x1f2)][_0x179bfc(0x214)](X,this[_0x179bfc(0x244)],this[_0x179bfc(0x43c)],this[_0x179bfc(0x1e6)],this['_pendingMutations'],this['_handler'],!0x1);}}[_0x552037(0x3d0)](_0x5404ed){const _0x57bd11=_0x552037;this['_acknowledgeAwaitingIfReady']();for(let _0xd8c23f=0x0;_0xd8c23f<_0x5404ed[_0x57bd11(0x283)];_0xd8c23f++){let _0x4deafb=_0x5404ed[_0xd8c23f],_0x14e4e9=this[_0x57bd11(0x26e)]();if(!(_0x4deafb['revision']<=_0x14e4e9)){if(_0x4deafb['revision']>_0x14e4e9+0x1)return{'missingChangesets':!0x0};if(this[_0x57bd11(0x264)](_0x4deafb)){this[_0x57bd11(0x456)]();continue;}this[_0x57bd11(0x3be)](_0x4deafb),this[_0x57bd11(0x44d)]();}}return{'missingChangesets':!0x1};}[_0x552037(0x3be)](_0x486782){const _0x402dfb=_0x552037;let _0x497e87=_0x486782,_0x30c4fe=this[_0x402dfb(0x1e6)];if(_0x30c4fe){let _0x579c55=this[_0x402dfb(0x1ba)][_0x402dfb(0x2a5)]([_0x486782],[_0x30c4fe],!0x1);if(!_0x34d422(_0x579c55))throw _0x579c55[_0x402dfb(0x329)];_0x497e87=_0x579c55['c1Prime'][0x0],_0x30c4fe=_0x579c55[_0x402dfb(0x450)][0x0];}let _0x4a14f4=this[_0x402dfb(0x22f)];if(_0x4a14f4[_0x402dfb(0x283)]){let _0x16ca80=this[_0x402dfb(0x1ba)][_0x402dfb(0x38a)](_0x497e87,_0x4a14f4);if(!_0x3f64c8(_0x16ca80))throw _0x16ca80[_0x402dfb(0x329)];_0x497e87=_0x16ca80[_0x402dfb(0x326)],_0x4a14f4=_0x16ca80['m2Prime'];}this[_0x402dfb(0x2d6)](_0x497e87),_0x30c4fe&&(_0x30c4fe[_0x402dfb(0x1ce)]=this[_0x402dfb(0x26e)]()),this['_awaitingChangeset']=_0x30c4fe,this[_0x402dfb(0x22f)]=_0x4a14f4;}[_0x552037(0x44d)](){const _0x1b4aad=_0x552037;if(!this['_awaitingChangeset']||this['_acknowledgedAwaitingRevision']==null)return;let _0x15c1f0=this[_0x1b4aad(0x26e)]();if(this['_acknowledgedAwaitingRevision']<=_0x15c1f0)throw Error(_0x1b4aad(0x302)+this[_0x1b4aad(0x217)]+'.');this[_0x1b4aad(0x217)]===_0x15c1f0+0x1&&this[_0x1b4aad(0x456)]();}[_0x552037(0x456)](){const _0x56f45a=_0x552037;this[_0x56f45a(0x1d4)](),this[_0x56f45a(0x1e6)]=null,this['_acknowledgedAwaitingRevision']=null;}['_isEchoedAwaitingChangeset'](_0x5386cc){const _0x4365f9=_0x552037;let _0x4effd5=this['_awaitingChangeset'];return!_0x4effd5||!_0x4effd5[_0x4365f9(0x2df)]||_0x4effd5[_0x4365f9(0x233)]===null||_0x4effd5[_0x4365f9(0x233)]===void 0x0?!0x1:_0x5386cc[_0x4365f9(0x244)]===_0x4effd5['unitID']&&_0x5386cc[_0x4365f9(0x2df)]===_0x4effd5[_0x4365f9(0x2df)]&&_0x5386cc[_0x4365f9(0x233)]===_0x4effd5['reqId'];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x4491b9){const _0x15d0b4=_0x552037;return this['_pendingMutations'][_0x15d0b4(0x421)](_0x4491b9),this;}['onRemoteChangeset'](_0x3d7db4){const _0x3f9323=_0x552037;return this['_queuedRemoteChangesets'][_0x3f9323(0x421)](_0x3d7db4),this;}['onRemoteAck'](_0x46345c){const _0x388b6c=_0x552037;if(this[_0x388b6c(0x1e6)]){let _0x3e5f06=this[_0x388b6c(0x26e)]();return _0x46345c[_0x388b6c(0x469)]<=_0x3e5f06||(_0x3e5f06+0x1===_0x46345c[_0x388b6c(0x469)]?(this['_incrementRevisionNumber'](),this[_0x388b6c(0x1e6)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0x388b6c(0x217)]=_0x46345c[_0x388b6c(0x469)]),this;}if(_0x46345c[_0x388b6c(0x469)]<=this['_getCurrentRevision']())return this;throw Error(_0x388b6c(0x43e));}[_0x552037(0x3eb)](_0x26a289){const _0x2760e1=_0x552037;return this[_0x2760e1(0x1cc)](!!(_0x26a289!=null&&_0x26a289[_0x2760e1(0x476)]));}[_0x552037(0x429)](){return this;}[_0x552037(0x388)](){const _0x35b09b=_0x552037;return this[_0x35b09b(0x1f2)][_0x35b09b(0x214)](Z,this[_0x35b09b(0x244)],this[_0x35b09b(0x43c)],this[_0x35b09b(0x1e6)],this['_pendingMutations'],this[_0x35b09b(0x42f)]);}[_0x552037(0x3c0)](){return this;}[_0x552037(0x1cc)](_0x425691){const _0x214471=_0x552037;return this[_0x214471(0x1f2)][_0x214471(0x214)](X,this[_0x214471(0x244)],this[_0x214471(0x43c)],this[_0x214471(0x1e6)],this['_pendingMutations'],this[_0x214471(0x42f)],_0x425691);}};Q=H([V(0x7,_0x51c6d7(_0x21dcba)),V(0x8,_0x51c6d7(_0x4d7e58)),V(0x9,_0x11662d),V(0xa,_0x56ddbd),V(0xb,_0x49d766),V(0xc,_0x154e7e),V(0xd,_0x338273(U))],Q);function bn(_0x402aeb,_0x4bbb4d,_0x5628d1,_0x34df46,_0x47bc9a,_0x1c661c){const _0x5a0dfd=_0x552037;return _0x34df46&&_0x47bc9a[_0x5a0dfd(0x283)]?_0x402aeb['createInstance'](Y,_0x4bbb4d,_0x5628d1,_0x34df46,_0x47bc9a,_0x1c661c,void 0x0):_0x34df46?_0x402aeb[_0x5a0dfd(0x214)](J,_0x4bbb4d,_0x5628d1,_0x34df46,_0x1c661c):_0x47bc9a['length']?_0x402aeb[_0x5a0dfd(0x214)](q,_0x4bbb4d,_0x5628d1,_0x47bc9a,_0x1c661c):_0x402aeb[_0x5a0dfd(0x214)](K,_0x4bbb4d,_0x5628d1,_0x1c661c);}let $=class extends _0x7563ff{get['state'](){const _0xb122ef=_0x552037;return this[_0xb122ef(0x1c3)];}constructor(_0x4e42ac,_0x3ad8e4,_0x4274ef,_0xc12254,_0x487607,_0x1bd461,_0x5a6cf2,_0x438ed5,_0x5cc5cb,_0x151fdd,_0x512d8a,_0x308d13,_0x5d9788,_0x30136e){const _0x5cc521=_0x552037;super(),this['unitID']=_0x4e42ac,this[_0x5cc521(0x246)]=_0x3ad8e4,this[_0x5cc521(0x312)]=_0x4274ef,this[_0x5cc521(0x1f2)]=_0xc12254,this['_compressMutationService']=_0x487607,this[_0x5cc521(0x385)]=_0x1bd461,this[_0x5cc521(0x3d1)]=_0x5a6cf2,this[_0x5cc521(0x24c)]=_0x438ed5,this[_0x5cc521(0x2e2)]=_0x5cc5cb,this[_0x5cc521(0x319)]=_0x151fdd,this[_0x5cc521(0x2fe)]=_0x512d8a,this[_0x5cc521(0x2d9)]=_0x308d13,this['_singleActiveUnitService']=_0x5d9788,this['_localCacheService']=_0x30136e,z(this,_0x5cc521(0x1ff),new _0x4b2fa9(null)),z(this,_0x5cc521(0x3f6),this[_0x5cc521(0x1ff)][_0x5cc521(0x38e)]()),z(this,_0x5cc521(0x1c3),void 0x0),z(this,_0x5cc521(0x24f),!0x1),z(this,_0x5cc521(0x3d4),''),z(this,'_changesetReqId',0x0),z(this,_0x5cc521(0x399),this['state$'][_0x5cc521(0x26f)](_0x224afe(_0x43309e=>_0x43309e?_0x43309e[_0x5cc521(0x41f)]:_0x5cc521(0x2a2)),_0x44f1aa({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0x5cc521(0x423),!0x1),z(this,_0x5cc521(0x280),[]);}async[_0x552037(0x2bf)](){const _0x11a58c=_0x552037;if(this[_0x11a58c(0x403)])throw Error(_0x11a58c(0x254));await this['_init']();}[_0x552037(0x2aa)](){const _0xc706e=_0x552037;return this[_0xc706e(0x24f)]=!0x0,_0x8a7db5(()=>{const _0x47c583=_0xc706e;this[_0x47c583(0x24f)]=!0x1,this[_0x47c583(0x321)]();});}[_0x552037(0x317)](_0x55f8c6){const _0x3b74ad=_0x552037;this[_0x3b74ad(0x3ed)](_0x55f8c6);}[_0x552037(0x347)](_0x27d8be){const _0x542c1e=_0x552037;this[_0x542c1e(0x1c3)]=_0x27d8be,this[_0x542c1e(0x1ff)][_0x542c1e(0x23c)](_0x27d8be);}async[_0x552037(0x323)](){const _0x4fbd78=_0x552037;if(this[_0x4fbd78(0x347)](await this[_0x4fbd78(0x316)]()),this[_0x4fbd78(0x2b3)]){var _0x537066;(_0x537066=this[_0x4fbd78(0x2b3)])==null||_0x537066[_0x4fbd78(0x3b8)](this[_0x4fbd78(0x244)]),this[_0x4fbd78(0x473)](this[_0x4fbd78(0x2b3)][_0x4fbd78(0x278)](this[_0x4fbd78(0x244)])[_0x4fbd78(0x338)](_0x24e70a=>{const _0x3d712f=_0x4fbd78;this[_0x3d712f(0x319)]['debug'](_0x3d712f(0x3d8),_0x3d712f(0x276),_0x24e70a),_0x24e70a===0x1?(this[_0x3d712f(0x24c)]['emitEvent']({'id':_0x3d712f(0x1d1)}),this[_0x3d712f(0x2d9)]['updatePermissionPoint'](new _0x50091d(this[_0x3d712f(0x244)])['id'],!0x1),this[_0x3d712f(0x2d9)][_0x3d712f(0x22c)](!0x1)):(this['_permissionService'][_0x3d712f(0x3de)](new _0x50091d(this[_0x3d712f(0x244)])['id'],!0x0),this[_0x3d712f(0x2d9)][_0x3d712f(0x22c)](!0x0));}));}let _0x5f1d7f=!0x1;return this[_0x4fbd78(0x473)](this[_0x4fbd78(0x246)]['sessionStatus$'][_0x4fbd78(0x338)](_0x21311d=>{const _0x1d508c=_0x4fbd78;_0x21311d===0x3?this[_0x1d508c(0x3a7)](_0x5f1d7f):_0x21311d===0x2&&(_0x5f1d7f=!0x0,this[_0x1d508c(0x3b1)]());})),this[_0x4fbd78(0x473)](this[_0x4fbd78(0x246)]['event$'][_0x4fbd78(0x338)](_0x59f398=>{const _0x311f61=_0x4fbd78;try{switch(_0x59f398['eventID']){case _0x16e691['NEW_CHANGESETS']:this[_0x311f61(0x24d)](_0x314fa0(_0x59f398[_0x311f61(0x454)]));break;case _0x16e691['CHANGESET_ACK']:this[_0x311f61(0x35e)](_0x59f398[_0x311f61(0x454)]);break;case _0x16e691['CHANGESET_REJ']:this[_0x311f61(0x3d6)]();break;case _0x16e691[_0x311f61(0x415)]:this[_0x311f61(0x3c1)](_0x59f398[_0x311f61(0x454)]);break;case _0x16e691[_0x311f61(0x238)]:this['_onFetchMissResult'](_0x59f398[_0x311f61(0x454)][_0x311f61(0x35f)][_0x311f61(0x3bd)](_0x443369=>_0x314fa0(_0x443369)));break;case _0x16e691[_0x311f61(0x40c)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x16e691['UNISCRIPT_RUN']:}}catch(_0x3c2e40){throw console[_0x311f61(0x329)](_0x311f61(0x26b),_0x3c2e40),_0x3c2e40;}})),this[_0x4fbd78(0x1c3)];}[_0x552037(0x400)](){const _0xfa8756=_0x552037;this[_0xfa8756(0x423)]=!0x1;}[_0x552037(0x3c5)](){const _0x2c5e07=_0x552037;if(this[_0x2c5e07(0x423)])throw Error(_0x2c5e07(0x3b5));this['_transitionLocked']=!0x0;}[_0x552037(0x3ed)](_0x53ab1c){const _0x4b73ae=_0x552037;this[_0x4b73ae(0x3c5)](),this[_0x4b73ae(0x347)](this[_0x4b73ae(0x1c3)]['appendMutation'](_0x53ab1c)),this[_0x4b73ae(0x400)]();}[_0x552037(0x24d)](_0x3c0e9f){const _0x34602d=_0x552037;if(!(_0x3c0e9f['revision']<=this[_0x34602d(0x3d1)][_0x34602d(0x365)](this['unitID']))){if(this[_0x34602d(0x24f)]){this[_0x34602d(0x280)]['push'](_0x3c0e9f);return;}this['_applyRemoteChangeset'](_0x3c0e9f);}}[_0x552037(0x321)](){const _0x79071d=_0x552037;this['_remoteChangesetQueue'][_0x79071d(0x2ed)](_0x20c481=>this['_applyRemoteChangeset'](_0x20c481)),this[_0x79071d(0x280)]=[];}[_0x552037(0x35c)](_0xbd7bb0){const _0x105da0=_0x552037;let _0x14576b=this[_0x105da0(0x2b6)][_0x105da0(0x29d)][_0x105da0(0x27f)](this[_0x105da0(0x2b6)]['interceptor'][_0x105da0(0x37d)]()['COMPRESS_MUTATION_APPLY'])(_0xbd7bb0[_0x105da0(0x360)],null)||_0xbd7bb0[_0x105da0(0x360)],_0x1e8924={..._0xbd7bb0,'mutations':_0x14576b};this['_lockTransition'](),this[_0x105da0(0x347)](this[_0x105da0(0x1c3)]['onRemoteChangeset'](_0x1e8924)),this[_0x105da0(0x400)]();}[_0x552037(0x35e)](_0x206ae1){const _0x3efe90=_0x552037;this['_lockTransition'](),this[_0x3efe90(0x347)](this[_0x3efe90(0x1c3)]['onRemoteAck'](_0x206ae1)),this[_0x3efe90(0x400)]();}[_0x552037(0x3d6)](_0x2eacbe){const _0xf6fc84=_0x552037;this['_lockTransition'](),this[_0xf6fc84(0x347)](this[_0xf6fc84(0x1c3)][_0xf6fc84(0x3eb)](_0x2eacbe)),this['_unlockTransition']();}[_0x552037(0x3c1)](_0x4851b1){const _0x4080d7=_0x552037;this[_0x4080d7(0x3c5)](),this['_updateState'](this[_0x4080d7(0x1c3)][_0x4080d7(0x429)](_0x4851b1)),this['_unlockTransition']();}[_0x552037(0x437)](_0x355b82){const _0x26d31a=_0x552037;if(!(this[_0x26d31a(0x1c3)]instanceof Q))throw TypeError(_0x26d31a(0x43f));let _0xd15c2c=_0x355b82[_0x26d31a(0x3bd)](_0x39ee12=>{const _0x2e5972=_0x26d31a;let _0x19ddf9=this[_0x2e5972(0x2b6)][_0x2e5972(0x29d)][_0x2e5972(0x27f)](this[_0x2e5972(0x2b6)][_0x2e5972(0x29d)][_0x2e5972(0x37d)]()[_0x2e5972(0x314)])(_0x39ee12[_0x2e5972(0x360)],null)||_0x39ee12[_0x2e5972(0x360)];return{..._0x39ee12,'mutations':_0x19ddf9};});this[_0x26d31a(0x3c5)](),this['_updateState'](this[_0x26d31a(0x1c3)][_0x26d31a(0x204)](_0xd15c2c)),this[_0x26d31a(0x400)]();}[_0x552037(0x3b1)](){const _0x25cefb=_0x552037;this[_0x25cefb(0x3c5)](),this[_0x25cefb(0x347)](this[_0x25cefb(0x1c3)][_0x25cefb(0x388)]()),this[_0x25cefb(0x400)]();}[_0x552037(0x3a7)](_0xb7b09d=!0x1){const _0x554b10=_0x552037;this[_0x554b10(0x3c5)](),this[_0x554b10(0x347)](this['_state'][_0x554b10(0x3c0)]()),this[_0x554b10(0x400)]();let _0xcf7f2d=this['_state'];_0xb7b09d&&_0xcf7f2d instanceof K&&(this['_lockTransition'](),this[_0x554b10(0x347)](_0xcf7f2d[_0x554b10(0x352)]()),this['_unlockTransition']());}async[_0x552037(0x316)](){return new Promise(_0x340c94=>{const _0x19f156=_0x2f91;this['session']['sessionStatus$'][_0x19f156(0x26f)](_0x4cb55e(0x1))[_0x19f156(0x338)](async _0x30292e=>{const _0x21d583=_0x19f156;_0x340c94(await this[_0x21d583(0x3b6)](_0x30292e===0x3));});});}['_createHandler'](){const _0x587ec6=_0x552037;let _0xf45eb4=this[_0x587ec6(0x244)];return{'onStateChange':(_0x3cedaf,_0x13870b)=>{const _0x543f9e=_0x587ec6;if(_0x3cedaf!==this[_0x543f9e(0x1c3)])throw Error(_0x543f9e(0x33d)+_0x3cedaf[_0x543f9e(0x41f)]+_0x543f9e(0x416)+_0x13870b['status']+_0x543f9e(0x42d)+this[_0x543f9e(0x1c3)][_0x543f9e(0x41f)]);this[_0x543f9e(0x347)](_0x13870b);},'onSendChangeset':_0x31b074=>{const _0x432c48=_0x587ec6;_0x31b074[_0x432c48(0x2df)]||(_0x31b074['sid']=this[_0x432c48(0x3d4)],_0x31b074[_0x432c48(0x233)]=++this[_0x432c48(0x2b1)]);let _0x2f69b1={'eventID':_0x16e691['SUBMIT_CHANGESET'],'data':{'unitID':_0x31b074[_0x432c48(0x244)],'unitType':this[_0x432c48(0x312)],'changeset':_0x31b074,'memberID':this[_0x432c48(0x246)][_0x432c48(0x249)]()}};this['session'][_0x432c48(0x32f)](_0x2f69b1,this['unitID']);},'onMissingChangesets':({from:_0xeebe2,to:_0x5d763b})=>{const _0x3d7593=_0x587ec6;this['_logService'][_0x3d7593(0x412)]('[CollaborationEntity]',_0x3d7593(0x331)+_0xeebe2+'\x20to\x20'+_0x5d763b);let _0x22008e={'eventID':_0x16e691[_0x3d7593(0x396)],'data':{'unitID':_0xf45eb4,'unitType':this['_type'],'from':_0xeebe2,'to':_0x5d763b}};this[_0x3d7593(0x246)][_0x3d7593(0x32f)](_0x22008e,this['unitID']);}};}async[_0x552037(0x3b6)](_0x18ad0e){const _0x2f7947=_0x552037;var _0x2e9da4;let _0x2f9a0c=await((_0x2e9da4=this['_localCacheService'])==null?void 0x0:_0x2e9da4['loadOfflineData'](this[_0x2f7947(0x244)])),_0x1c2b01=(_0x2f9a0c==null?void 0x0:_0x2f9a0c[_0x2f7947(0x360)])??[],_0x1ab198=(_0x2f9a0c==null?void 0x0:_0x2f9a0c['awaitingChangeset'])??null,_0x1a2e20=!!(_0x1ab198!=null&&_0x1ab198[_0x2f7947(0x2df)])&&!!(_0x1ab198!=null&&_0x1ab198[_0x2f7947(0x233)]);this[_0x2f7947(0x3d4)]=_0x1a2e20?_0x1ab198[_0x2f7947(0x2df)]:_0x53eb27(),this[_0x2f7947(0x2b1)]=_0x1a2e20?_0x1ab198[_0x2f7947(0x233)]:0x0;let _0x44e75c=this[_0x2f7947(0x244)];try{this['_replayCachedMutations'](_0x1ab198,_0x1c2b01);}catch(_0x22c999){this['_logService'][_0x2f7947(0x329)](_0x22c999);}let _0x34efc8=this[_0x2f7947(0x205)]();if(_0x18ad0e){let _0x4c03bd=bn(this[_0x2f7947(0x1f2)],_0x44e75c,this[_0x2f7947(0x312)],_0x1ab198,_0x1c2b01,_0x34efc8);return _0x4c03bd instanceof q?_0x4c03bd[_0x2f7947(0x357)]():(_0x4c03bd instanceof Y||_0x4c03bd instanceof J)&&_0x4c03bd[_0x2f7947(0x3ca)](),_0x4c03bd;}return this['_injector'][_0x2f7947(0x214)](Z,_0x44e75c,this[_0x2f7947(0x312)],_0x1ab198,_0x1c2b01,_0x34efc8);}[_0x552037(0x474)](_0x4bb18c,_0x506e28){const _0x313440=_0x552037;var _0x11ce53,_0x6f49ca;let _0x536332=this[_0x313440(0x2b6)][_0x313440(0x29d)][_0x313440(0x27f)](this[_0x313440(0x2b6)][_0x313440(0x29d)]['getInterceptPoints']()[_0x313440(0x314)]);(_0x11ce53=_0x536332((_0x4bb18c==null?void 0x0:_0x4bb18c['mutations'])||[],null))==null||_0x11ce53[_0x313440(0x2ed)](_0x51db71=>this[_0x313440(0x2fe)][_0x313440(0x3ee)](_0x51db71['id'],_0x51db71[_0x313440(0x2de)])),(_0x6f49ca=_0x536332(_0x506e28||[],null))==null||_0x6f49ca[_0x313440(0x2ed)](_0x1c310c=>this[_0x313440(0x2fe)][_0x313440(0x3ee)](_0x1c310c['id'],_0x1c310c['params']));}};$=H([V(0x3,_0x51c6d7(_0x21dcba)),V(0x4,_0x51c6d7(_0x4359e8)),V(0x5,_0x51c6d7(_0xb3ec34)),V(0x6,_0x51c6d7(_0x4d7e58)),V(0x7,_0x51c6d7(B)),V(0x8,_0x51bdf2),V(0x9,_0x11662d),V(0xa,_0x56ddbd),V(0xb,_0x2fd944),V(0xc,_0x338273(W)),V(0xd,_0x338273(U))],$);let xn=class extends ${constructor(_0xb802a2,_0x57a3b0,_0x37d1ef,_0x4e328a,_0x1f2f94,_0x5bb0aa,_0x3e5314,_0x5536ca,_0x3674cc,_0x184ec6,_0x346496,_0x334472,_0x5d8b4c,_0x4469e6,_0x24c6e0){const _0x1f1172=_0x552037;super(_0xb802a2,_0x37d1ef,_0x57a3b0,_0x4e328a,_0x1f2f94,_0x5bb0aa,_0x3e5314,_0x5536ca,_0x3674cc,_0x184ec6,_0x346496,_0x334472,_0x4469e6,_0x24c6e0),this[_0x1f1172(0x244)]=_0xb802a2,this['type']=_0x57a3b0,this[_0x1f1172(0x307)]=_0x5d8b4c,z(this,_0x1f1172(0x39c),null);}[_0x552037(0x1da)](_0x5e113d){const _0x3af205=_0x552037;this[_0x3af205(0x39c)]=_0x5e113d;}[_0x552037(0x2f2)](){this['_handlerCallback']=null,super['dispose']();}[_0x552037(0x205)](){const _0x1d2448=_0x552037;let _0x11b933=super[_0x1d2448(0x205)]();return _0x11b933[_0x1d2448(0x414)]=_0x4fbff1=>{const _0x856143=_0x1d2448;var _0x2e9b79,_0x5d328c;return(_0x2e9b79=this['_handlerCallback'])==null||(_0x5d328c=_0x2e9b79['onTransformIME'])==null?void 0x0:_0x5d328c[_0x856143(0x290)](_0x2e9b79,_0x4fbff1);},_0x11b933[_0x1d2448(0x270)]=_0x1ca9a0=>{const _0x7c100a=_0x1d2448;var _0x45a18b,_0x490202;return(_0x45a18b=this[_0x7c100a(0x39c)])==null||(_0x490202=_0x45a18b['onTransformState'])==null?void 0x0:_0x490202[_0x7c100a(0x290)](_0x45a18b,_0x1ca9a0);},_0x11b933[_0x1d2448(0x3cc)]=_0x521bb6=>{const _0x6b3e2e=_0x1d2448;var _0x1a82bb,_0x5529bd;return((_0x1a82bb=this['_handlerCallback'])==null||(_0x5529bd=_0x1a82bb[_0x6b3e2e(0x3cc)])==null?void 0x0:_0x5529bd[_0x6b3e2e(0x290)](_0x1a82bb,_0x521bb6))??null;},_0x11b933[_0x1d2448(0x206)]=_0x4242f9=>{const _0x1f27f2=_0x1d2448;var _0x53ab4e,_0x5a240;return(_0x53ab4e=this[_0x1f27f2(0x39c)])==null||(_0x5a240=_0x53ab4e[_0x1f27f2(0x206)])==null?void 0x0:_0x5a240[_0x1f27f2(0x290)](_0x53ab4e,_0x4242f9);},_0x11b933['onSyncEditingCollabCursor']=_0x5844a6=>{const _0x8b7fc2=_0x1d2448;var _0x20c90a,_0x14a2a9;return(_0x20c90a=this[_0x8b7fc2(0x39c)])==null||(_0x14a2a9=_0x20c90a['onSyncEditingCollabCursor'])==null?void 0x0:_0x14a2a9[_0x8b7fc2(0x290)](_0x20c90a,_0x5844a6);},_0x11b933[_0x1d2448(0x2b2)]=_0x4dd54b=>{const _0x31f1e2=_0x1d2448;var _0x4babc9,_0x47334d;return((_0x4babc9=this[_0x31f1e2(0x39c)])==null||(_0x47334d=_0x4babc9[_0x31f1e2(0x2b2)])==null?void 0x0:_0x47334d[_0x31f1e2(0x290)](_0x4babc9,_0x4dd54b))??_0x4dd54b;},_0x11b933[_0x1d2448(0x1db)]=_0x428d3d=>{const _0x4c16e3=_0x1d2448;var _0x8efe7c,_0x2e0f52;return((_0x8efe7c=this[_0x4c16e3(0x39c)])==null||(_0x2e0f52=_0x8efe7c[_0x4c16e3(0x1db)])==null?void 0x0:_0x2e0f52[_0x4c16e3(0x290)](_0x8efe7c,_0x428d3d))??_0x428d3d;},_0x11b933;}async[_0x552037(0x323)](){const _0x4101a2=_0x552037;let _0x38bdf9=await super[_0x4101a2(0x323)]();return this['disposeWithMe'](this[_0x4101a2(0x307)][_0x4101a2(0x223)][_0x4101a2(0x338)](_0x3fc756=>{const _0x388b50=_0x4101a2;if(_0x3fc756==null||_0x3fc756[_0x388b50(0x29f)]!==this['unitID'])return;let {commandId:_0xf7b7d6,redoState:_0x43b295,unitId:_0x355a7a}=_0x3fc756,_0x20f85c={'id':_0xf7b7d6,'type':_0x374f28['MUTATION'],'params':{'unitId':_0x355a7a,'actions':_0x43b295['actions'],'textRanges':null}};this[_0x388b50(0x3ed)](_0x20f85c);})),this['disposeWithMe'](this[_0x4101a2(0x2fe)]['onMutationExecutedForCollab']((_0x46565f,_0x1b87e2)=>{const _0x3200d3=_0x4101a2;if(_0x46565f[_0x3200d3(0x43c)]!==_0x374f28[_0x3200d3(0x2bd)]||_0x1b87e2!=null&&_0x1b87e2[_0x3200d3(0x3f9)]||_0x1b87e2!=null&&_0x1b87e2[_0x3200d3(0x40b)]||_0x46565f['id']===_0x50a9b9['id'])return;let _0x2113aa=_0x46565f['params'];if((_0x2113aa==null?void 0x0:_0x2113aa[_0x3200d3(0x29f)])!==this[_0x3200d3(0x244)])return;let _0x97a160=_0x46565f,_0x4f9b63=this[_0x3200d3(0x2b6)]['interceptor'][_0x3200d3(0x27f)](this[_0x3200d3(0x2b6)][_0x3200d3(0x29d)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x97a160],this['_univerInstanceService'])||[_0x97a160];this['_onLocalMutation'](_0x4f9b63[0x0]);})),_0x38bdf9;}};xn=H([V(0x3,_0x51c6d7(_0x21dcba)),V(0x4,_0x51c6d7(_0x4359e8)),V(0x5,_0x51c6d7(_0xb3ec34)),V(0x6,_0x51c6d7(_0x4d7e58)),V(0x7,_0x51c6d7(B)),V(0x8,_0x51bdf2),V(0x9,_0x11662d),V(0xa,_0x56ddbd),V(0xb,_0x2fd944),V(0xc,_0x51c6d7(_0x35fe28)),V(0xd,_0x338273(W)),V(0xe,_0x338273(U))],xn);let Sn=class extends ${constructor(_0x5e3727,_0x5db5e2,_0x416984,_0x4b77ac,_0x17884a,_0x4d3535,_0x24f13d,_0x249ed6,_0x13bab8,_0x1b4c90,_0x1d3d6b,_0x2aefe8,_0x3824b3,_0x151dce){const _0x52a843=_0x552037;super(_0x5e3727,_0x416984,_0x5db5e2,_0x4b77ac,_0x17884a,_0x4d3535,_0x24f13d,_0x249ed6,_0x13bab8,_0x1b4c90,_0x1d3d6b,_0x2aefe8,_0x3824b3,_0x151dce),this[_0x52a843(0x244)]=_0x5e3727,this[_0x52a843(0x43c)]=_0x5db5e2;}async[_0x552037(0x323)](){const _0x37d204=_0x552037;let _0x3de4ff=await super[_0x37d204(0x323)]();return this['disposeWithMe'](this[_0x37d204(0x2fe)][_0x37d204(0x2c0)]((_0x11d4d5,_0x202854)=>{const _0x315797=_0x37d204;if(_0x11d4d5[_0x315797(0x43c)]!==_0x374f28[_0x315797(0x2bd)]||_0x202854!=null&&_0x202854[_0x315797(0x3f9)]||_0x202854!=null&&_0x202854[_0x315797(0x40b)])return;let _0x17c473=_0x11d4d5[_0x315797(0x2de)];if((_0x17c473==null?void 0x0:_0x17c473['unitId'])!==this[_0x315797(0x244)])return;let _0x36a3f3=_0x11d4d5,_0x558ce7=this['_compressMutationService'][_0x315797(0x29d)][_0x315797(0x27f)](this['_compressMutationService'][_0x315797(0x29d)][_0x315797(0x37d)]()[_0x315797(0x3ae)])([_0x36a3f3],this[_0x315797(0x2e2)])||[_0x36a3f3];this[_0x315797(0x3ed)](_0x558ce7[0x0]);})),_0x3de4ff;}};Sn=H([V(0x3,_0x51c6d7(_0x21dcba)),V(0x4,_0x51c6d7(_0x4359e8)),V(0x5,_0x51c6d7(_0xb3ec34)),V(0x6,_0x51c6d7(_0x4d7e58)),V(0x7,_0x51c6d7(B)),V(0x8,_0x51bdf2),V(0x9,_0x11662d),V(0xa,_0x56ddbd),V(0xb,_0x2fd944),V(0xc,_0x338273(W)),V(0xd,_0x338273(U))],Sn);let Cn=class extends ${constructor(_0x3c9360,_0x56a42c,_0x3adbe0,_0x1756d5,_0x3037a8,_0x28c096,_0x3b1bb3,_0x4bc88b,_0x2bb2f1,_0x57699c,_0x12e906,_0x3abb28,_0x5b47cc,_0x22b4cb,_0x3fbb30){const _0xc0c6f8=_0x552037;super(_0x3c9360,_0x3adbe0,_0x56a42c,_0x1756d5,_0x3037a8,_0x28c096,_0x3b1bb3,_0x2bb2f1,_0x57699c,_0x12e906,_0x3abb28,_0x5b47cc,_0x22b4cb,_0x3fbb30),this[_0xc0c6f8(0x244)]=_0x3c9360,this[_0xc0c6f8(0x43c)]=_0x56a42c,this[_0xc0c6f8(0x355)]=_0x4bc88b;}[_0x552037(0x205)](){const _0x280a4f=_0x552037;let _0x25b125=super[_0x280a4f(0x205)]();return _0x25b125[_0x280a4f(0x206)]=_0x1ae2a2=>this['_sheetTransformSelectionsService'][_0x280a4f(0x3da)](_0x1ae2a2),_0x25b125;}async[_0x552037(0x323)](){const _0x3e17c7=_0x552037;let _0xc4db55=await super[_0x3e17c7(0x323)]();return this[_0x3e17c7(0x473)](this[_0x3e17c7(0x2fe)][_0x3e17c7(0x2c0)]((_0xe07116,_0x160cb0)=>{const _0x28c03c=_0x3e17c7;if(_0xe07116[_0x28c03c(0x43c)]!==_0x374f28[_0x28c03c(0x2bd)]||_0x160cb0!=null&&_0x160cb0[_0x28c03c(0x3f9)]||_0x160cb0!=null&&_0x160cb0[_0x28c03c(0x40b)])return;let _0x10d99d=_0xe07116[_0x28c03c(0x2de)];if((_0x10d99d==null?void 0x0:_0x10d99d[_0x28c03c(0x29f)])!==this['unitID'])return;let _0x269331=_0xe07116,_0x576c70=this[_0x28c03c(0x2b6)][_0x28c03c(0x29d)][_0x28c03c(0x27f)](this['_compressMutationService'][_0x28c03c(0x29d)][_0x28c03c(0x37d)]()[_0x28c03c(0x3ae)])([_0x269331],this['_univerInstanceService'])||[_0x269331];this[_0x28c03c(0x3ed)](_0x576c70[0x0]);})),_0xc4db55;}};Cn=H([V(0x3,_0x51c6d7(_0x21dcba)),V(0x4,_0x51c6d7(_0x4359e8)),V(0x5,_0x51c6d7(_0xb3ec34)),V(0x6,_0x51c6d7(_0x4d7e58)),V(0x7,_0x51c6d7(Jt)),V(0x8,_0x51c6d7(B)),V(0x9,_0x51bdf2),V(0xa,_0x11662d),V(0xb,_0x56ddbd),V(0xc,_0x2fd944),V(0xd,_0x338273(W)),V(0xe,_0x338273(U))],Cn);let wn=class extends ${constructor(_0x5b9a5c,_0x1813fb,_0x3c1d86,_0x34b424,_0x47331d,_0x471623,_0xa23c97,_0x19bf16,_0x51718f,_0x40f851,_0xf369d2,_0x467e3d,_0x287abe,_0xf5a90d){const _0x114c20=_0x552037;super(_0x5b9a5c,_0x3c1d86,_0x1813fb,_0x34b424,_0x47331d,_0x471623,_0xa23c97,_0x19bf16,_0x51718f,_0x40f851,_0xf369d2,_0x467e3d,_0x287abe,_0xf5a90d),this[_0x114c20(0x244)]=_0x5b9a5c,this[_0x114c20(0x43c)]=_0x1813fb;}async[_0x552037(0x323)](){const _0x26a2de=_0x552037;let _0x2cc66c=await super[_0x26a2de(0x323)]();return this[_0x26a2de(0x473)](this[_0x26a2de(0x2fe)][_0x26a2de(0x2c0)]((_0x2e7f6f,_0x38f03b)=>{const _0x523dad=_0x26a2de;if(_0x2e7f6f[_0x523dad(0x43c)]!==_0x374f28[_0x523dad(0x2bd)]||_0x38f03b!=null&&_0x38f03b['fromCollab']||_0x38f03b!=null&&_0x38f03b[_0x523dad(0x40b)])return;let _0x966d68=_0x2e7f6f[_0x523dad(0x2de)];if((_0x966d68==null?void 0x0:_0x966d68[_0x523dad(0x29f)])!==this[_0x523dad(0x244)])return;let _0x5dcde0=_0x2e7f6f,_0x4a2146=this[_0x523dad(0x2b6)]['interceptor']['fetchThroughInterceptors'](this[_0x523dad(0x2b6)]['interceptor'][_0x523dad(0x37d)]()[_0x523dad(0x3ae)])([_0x5dcde0],this[_0x523dad(0x2e2)])||[_0x5dcde0];this[_0x523dad(0x3ed)](_0x4a2146[0x0]);})),_0x2cc66c;}};wn=H([V(0x3,_0x51c6d7(_0x21dcba)),V(0x4,_0x51c6d7(_0x4359e8)),V(0x5,_0x51c6d7(_0xb3ec34)),V(0x6,_0x51c6d7(_0x4d7e58)),V(0x7,_0x51c6d7(B)),V(0x8,_0x51bdf2),V(0x9,_0x11662d),V(0xa,_0x56ddbd),V(0xb,_0x2fd944),V(0xc,_0x338273(W)),V(0xd,_0x338273(U))],wn);let Tn=class extends ${constructor(_0x27b01d,_0x47489c,_0x45318a,_0x2a2e4b,_0xbfcb50,_0x3ff54e,_0x70dee9,_0x50d9ee,_0x3ac02f,_0x38536d,_0x30a7eb,_0x5912a2,_0x302123,_0xbc0150){const _0x3e5033=_0x552037;super(_0x27b01d,_0x45318a,_0x47489c,_0x2a2e4b,_0xbfcb50,_0x3ff54e,_0x70dee9,_0x50d9ee,_0x3ac02f,_0x38536d,_0x30a7eb,_0x5912a2,_0x302123,_0xbc0150),this[_0x3e5033(0x244)]=_0x27b01d,this[_0x3e5033(0x43c)]=_0x47489c;}async['_init'](){const _0x58191a=_0x552037;let _0x4ffa80=await super[_0x58191a(0x323)]();return this[_0x58191a(0x473)](this[_0x58191a(0x2fe)]['onMutationExecutedForCollab']((_0x3c2f7f,_0x2fac9e)=>{const _0x371b27=_0x58191a;if(_0x3c2f7f[_0x371b27(0x43c)]!==_0x374f28[_0x371b27(0x2bd)]||_0x2fac9e!=null&&_0x2fac9e['fromCollab']||_0x2fac9e!=null&&_0x2fac9e['onlyLocal'])return;let _0x7d744b=_0x3c2f7f[_0x371b27(0x2de)];if((_0x7d744b==null?void 0x0:_0x7d744b[_0x371b27(0x29f)])!==this[_0x371b27(0x244)])return;let _0x3eebf7=_0x3c2f7f,_0x1f2cde=this[_0x371b27(0x2b6)][_0x371b27(0x29d)][_0x371b27(0x27f)](this[_0x371b27(0x2b6)][_0x371b27(0x29d)][_0x371b27(0x37d)]()[_0x371b27(0x3ae)])([_0x3eebf7],this[_0x371b27(0x2e2)])||[_0x3eebf7];this['_onLocalMutation'](_0x1f2cde[0x0]);})),_0x4ffa80;}};Tn=H([V(0x3,_0x51c6d7(_0x21dcba)),V(0x4,_0x51c6d7(_0x4359e8)),V(0x5,_0x51c6d7(_0xb3ec34)),V(0x6,_0x51c6d7(_0x4d7e58)),V(0x7,_0x51c6d7(B)),V(0x8,_0x51bdf2),V(0x9,_0x11662d),V(0xa,_0x56ddbd),V(0xb,_0x2fd944),V(0xc,_0x338273(W)),V(0xd,_0x338273(U))],Tn);let En=class extends ${constructor(_0x5af57d,_0x5b9ddf,_0x4eaabe,_0x1f9391,_0x25c063,_0x5bcdaf,_0x907dec,_0x2dbbe3,_0x322cf7,_0x4eb950,_0x5c6ee0,_0x5173e3,_0x386c73,_0x2d6f75){const _0x4d55cf=_0x552037;super(_0x5af57d,_0x4eaabe,_0x5b9ddf,_0x1f9391,_0x25c063,_0x5bcdaf,_0x907dec,_0x2dbbe3,_0x322cf7,_0x4eb950,_0x5c6ee0,_0x5173e3,_0x386c73,_0x2d6f75),this[_0x4d55cf(0x244)]=_0x5af57d,this['type']=_0x5b9ddf;}async[_0x552037(0x323)](){const _0x185216=_0x552037;let _0x3073ab=await super['_init']();return this[_0x185216(0x473)](this[_0x185216(0x2fe)][_0x185216(0x2c0)]((_0x583f76,_0x29d529)=>{const _0x527173=_0x185216;if(_0x583f76[_0x527173(0x43c)]!==_0x374f28[_0x527173(0x2bd)]||_0x29d529!=null&&_0x29d529[_0x527173(0x3f9)]||_0x29d529!=null&&_0x29d529[_0x527173(0x40b)])return;let _0x37ba21=_0x583f76[_0x527173(0x2de)];if((_0x37ba21==null?void 0x0:_0x37ba21[_0x527173(0x29f)])!==this[_0x527173(0x244)])return;let _0x38d31e=_0x583f76,_0x53c440=this[_0x527173(0x2b6)]['interceptor'][_0x527173(0x27f)](this[_0x527173(0x2b6)][_0x527173(0x29d)]['getInterceptPoints']()[_0x527173(0x3ae)])([_0x38d31e],this[_0x527173(0x2e2)])||[_0x38d31e];this[_0x527173(0x3ed)](_0x53c440[0x0]);})),_0x3073ab;}};En=H([V(0x3,_0x51c6d7(_0x21dcba)),V(0x4,_0x51c6d7(_0x4359e8)),V(0x5,_0x51c6d7(_0xb3ec34)),V(0x6,_0x51c6d7(_0x4d7e58)),V(0x7,_0x51c6d7(B)),V(0x8,_0x51bdf2),V(0x9,_0x11662d),V(0xa,_0x56ddbd),V(0xb,_0x2fd944),V(0xc,_0x338273(W)),V(0xd,_0x338273(U))],En);const Dn=_0x445a87(_0x552037(0x2d2));function On(_0x40d45a){const _0xadc1e2=_0x552037;let _0x3598c4=_0x40d45a[_0xadc1e2(0x454)],_0x1ed35e=JSON[_0xadc1e2(0x1f3)](_0x3598c4);switch(_0x1ed35e[_0xadc1e2(0x373)]){case _0x47c572[_0xadc1e2(0x269)]:case _0x47c572['HELLO']:{let _0x3b566e=_0x1ed35e[_0xadc1e2(0x407)];return{..._0x1ed35e,'data':_0x3b566e,'cmd':_0x1ed35e[_0xadc1e2(0x373)]};}case _0x47c572['JOIN']:{let _0x4feaa3=_0x1ed35e[_0xadc1e2(0x35a)];return{..._0x1ed35e,'data':_0x4feaa3,'cmd':_0x1ed35e[_0xadc1e2(0x373)]};}case _0x47c572[_0xadc1e2(0x368)]:{let _0x46e3b9=_0x1ed35e['collaMsg'];switch(_0x46e3b9[_0xadc1e2(0x363)]){case _0x16e691[_0xadc1e2(0x40c)]:var _0x1902b5;return{..._0x1ed35e,'data':{..._0x46e3b9,'data':(_0x1902b5=_0x46e3b9[_0xadc1e2(0x299)])==null?void 0x0:_0x1902b5['cs']},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};case _0x16e691[_0xadc1e2(0x3e8)]:var _0xa205c6;return{..._0x1ed35e,'data':{..._0x46e3b9,'data':(_0xa205c6=_0x46e3b9[_0xadc1e2(0x413)])==null?void 0x0:_0xa205c6['cs']},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};case _0x16e691['NEW_CHANGESETS']:var _0x4fe0a;return{..._0x1ed35e,'data':{..._0x46e3b9,'data':(_0x4fe0a=_0x46e3b9['newCsEvent'])==null?void 0x0:_0x4fe0a['cs']},'cmd':_0x1ed35e['cmd']};case _0x16e691[_0xadc1e2(0x467)]:var _0x324983;return{..._0x1ed35e,'data':{..._0x46e3b9,'data':(_0x324983=_0x46e3b9[_0xadc1e2(0x2f8)])==null?void 0x0:_0x324983['cs']},'cmd':_0x1ed35e['cmd']};case _0x16e691[_0xadc1e2(0x415)]:var _0x256f28;return{..._0x1ed35e,'data':{..._0x46e3b9,'data':(_0x256f28=_0x46e3b9['csShouldRetryEvent'])==null?void 0x0:_0x256f28['cs']},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};case _0x16e691[_0xadc1e2(0x45b)]:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9[_0xadc1e2(0x2ea)]},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};case _0x16e691[_0xadc1e2(0x3a4)]:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9['joinEvent']},'cmd':_0x1ed35e['cmd']};case _0x16e691[_0xadc1e2(0x232)]:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9['leaveEvent']},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};case _0x16e691['LIVESHARE_NEW_HOST']:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9['liveShareNewHost']},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};case _0x16e691['LIVESHARE_FETCH_OPERATIONS']:case _0x16e691[_0xadc1e2(0x3b3)]:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9[_0xadc1e2(0x36d)]},'cmd':_0x1ed35e['cmd']};case _0x16e691[_0xadc1e2(0x41b)]:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9['liveShareNewHost']},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};case _0x16e691[_0xadc1e2(0x42a)]:return{..._0x1ed35e,'data':_0x46e3b9,'cmd':_0x1ed35e['cmd']};case _0x16e691['COMMENT_UPDATE']:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9[_0xadc1e2(0x210)]},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};case _0x16e691[_0xadc1e2(0x3dc)]:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9[_0xadc1e2(0x37e)]},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};case _0x16e691[_0xadc1e2(0x405)]:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9[_0xadc1e2(0x1e2)]},'cmd':_0x1ed35e['cmd']};case _0x16e691[_0xadc1e2(0x470)]:return{..._0x1ed35e,'data':{..._0x46e3b9,'data':_0x46e3b9[_0xadc1e2(0x392)]},'cmd':_0x1ed35e[_0xadc1e2(0x373)]};default:return _0x1ed35e;}}default:return _0x1ed35e;}}function kn(_0x26d5b7){const _0xee2e46=_0x552037;switch(_0x26d5b7[_0xee2e46(0x373)]){case _0x47c572['HEARTBEAT']:case _0x47c572[_0xee2e46(0x380)]:return JSON[_0xee2e46(0x364)]({'cmd':_0x26d5b7[_0xee2e46(0x373)],'routeKey':_0x26d5b7[_0xee2e46(0x3ad)]});case _0x47c572[_0xee2e46(0x3b4)]:{let _0xd4f47a;switch(_0x26d5b7[_0xee2e46(0x454)][_0xee2e46(0x363)]){case _0x16e691[_0xee2e46(0x45b)]:_0xd4f47a={'eventID':_0x16e691[_0xee2e46(0x45b)],'updateCursorEvent':_0x26d5b7['data']['data']};break;case _0x16e691[_0xee2e46(0x232)]:_0xd4f47a={'eventID':_0x16e691[_0xee2e46(0x232)],'leaveEvent':_0x26d5b7[_0xee2e46(0x454)]['data']};break;case _0x16e691[_0xee2e46(0x3a4)]:_0xd4f47a={'eventID':_0x16e691['USERS_ENTER'],'joinEvent':_0x26d5b7[_0xee2e46(0x454)][_0xee2e46(0x454)]};break;case _0x16e691[_0xee2e46(0x1c9)]:_0xd4f47a={'eventID':_0x16e691['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x26d5b7[_0xee2e46(0x454)][_0xee2e46(0x454)]};break;case _0x16e691[_0xee2e46(0x3b3)]:_0xd4f47a={'eventID':_0x16e691['LIVESHARE_OPERATION'],'liveShareOperation':_0x26d5b7[_0xee2e46(0x454)][_0xee2e46(0x454)]};break;case _0x16e691['LIVESHARE_TERMINATE']:_0xd4f47a={'eventID':_0x16e691[_0xee2e46(0x41b)],'liveShareTerminate':_0x26d5b7['data']['data']};break;case _0x16e691[_0xee2e46(0x221)]:_0xd4f47a={'eventID':_0x16e691[_0xee2e46(0x221)],'liveShareRequestHost':_0x26d5b7[_0xee2e46(0x454)][_0xee2e46(0x454)]};break;case _0x16e691[_0xee2e46(0x2ce)]:_0xd4f47a={'eventID':_0x16e691[_0xee2e46(0x2ce)]};break;default:_0xd4f47a={'eventID':_0x26d5b7['data']['eventID']};}return JSON[_0xee2e46(0x364)]({'cmd':_0x26d5b7[_0xee2e46(0x373)],'routeKey':_0x26d5b7[_0xee2e46(0x3ad)],'collaMsg':_0xd4f47a});}case _0x47c572[_0xee2e46(0x1b4)]:return JSON[_0xee2e46(0x364)]({'cmd':_0x26d5b7[_0xee2e46(0x373)],'routeKey':_0x26d5b7[_0xee2e46(0x3ad)],'joinReq':_0x26d5b7['data']});case _0x47c572[_0xee2e46(0x2ca)]:return JSON['stringify']({'cmd':_0x26d5b7[_0xee2e46(0x373)],'routeKey':_0x26d5b7[_0xee2e46(0x3ad)],'leaveReq':_0x26d5b7[_0xee2e46(0x454)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const An=_0x445a87('univer-pro.collaboration-client-socket-service');function jn(_0x3a4dcc,_0x56623a,_0xaec585){const _0x533747=_0x552037;return _0x3a4dcc+'/'+_0x56623a+_0x533747(0x284)+_0xaec585+_0x533747(0x358);}let Mn=class extends _0x3f6f32{constructor(_0x3f751e,_0x4ab17b,_0x3f1207,_0x3375ee,_0x5beecd){const _0x49d995=_0x552037;super(),this[_0x49d995(0x1f2)]=_0x3f751e,this[_0x49d995(0x2a7)]=_0x4ab17b,this['_configService']=_0x3f1207,this[_0x49d995(0x319)]=_0x3375ee,this['_snapshotServerService']=_0x5beecd;}[_0x552037(0x1ca)](_0xe7217f){const _0x305406=_0x552037;let _0x47203f=this[_0x305406(0x1f2)]['get'](_0xaaac4e);if(!_0x47203f)throw Error(_0x305406(0x2d3));let _0x162175=_0x47203f['createSocket'](_0xe7217f);if(!_0x162175)throw Error(_0x305406(0x28e));let _0xaa6cf2=new _0x2410fb(),_0x2acbe8=new _0x118dae();_0xaa6cf2['add'](_0x162175[_0x305406(0x43b)][_0x305406(0x338)](_0x18a7f3=>_0x2acbe8[_0x305406(0x23c)](_0x18a7f3))),_0xaa6cf2['add'](_0x8a7db5(()=>_0x2acbe8[_0x305406(0x306)]()));let _0x152791=new _0x118dae();_0xaa6cf2[_0x305406(0x3af)](_0x162175['error$'][_0x305406(0x338)](_0x4168f5=>_0x152791['next'](_0x4168f5))),_0xaa6cf2['add'](_0x8a7db5(()=>_0x152791[_0x305406(0x306)]()));let _0x281dd0=new _0x118dae();_0xaa6cf2[_0x305406(0x3af)](_0x162175[_0x305406(0x3e9)][_0x305406(0x338)](_0x3d438b=>{let _0x3ae436=On(_0x3d438b);_0x281dd0['next'](_0x3ae436);})),_0xaa6cf2['add'](_0x8a7db5(()=>_0x281dd0['complete']()));let _0x10d5b5,_0x4bd4c9=()=>{const _0x54ac80=_0x305406;_0x152791[_0x54ac80(0x23c)](new Event(_0x54ac80(0x25c))),_0x2acbe8[_0x54ac80(0x23c)](new Event(_0x54ac80(0x25c))),_0x10d5b5[_0x54ac80(0x279)]();};return _0x10d5b5={'memberID':'','close$':_0x2acbe8['asObservable'](),'error$':_0x152791[_0x305406(0x38e)](),'open$':_0x162175[_0x305406(0x24a)],'message$':_0x281dd0[_0x305406(0x38e)](),'send':_0x2e5469=>{const _0x5479a8=_0x305406;if(_0x2e5469['cmd']===_0x47c572[_0x5479a8(0x3b4)]){if(_0x2e5469[_0x5479a8(0x454)][_0x5479a8(0x363)]===_0x16e691[_0x5479a8(0x327)]){this[_0x5479a8(0x409)](_0x10d5b5,_0x2e5469[_0x5479a8(0x454)])['catch'](_0x57fe66=>{const _0x4a51fa=_0x5479a8;this[_0x4a51fa(0x319)][_0x4a51fa(0x329)](_0x57fe66),_0x4bd4c9();});return;}if(_0x2e5469[_0x5479a8(0x454)][_0x5479a8(0x363)]===_0x16e691[_0x5479a8(0x396)]){let _0x2fd5a3=_0x2e5469[_0x5479a8(0x454)];this[_0x5479a8(0x389)](_0x2fd5a3)['then'](_0x1ef37f=>{const _0x282ef0=_0x5479a8;_0x281dd0['next']({'cmd':_0x47c572['RECV'],'code':_0x2c3059['OK'],'routeKey':_0x2fd5a3[_0x282ef0(0x454)][_0x282ef0(0x244)],'routeType':'','data':{'eventID':_0x16e691[_0x282ef0(0x238)],'data':{'changesets':_0x1ef37f}}});})[_0x5479a8(0x34f)](_0x30c143=>{const _0x1bb6e5=_0x5479a8;this[_0x1bb6e5(0x319)][_0x1bb6e5(0x329)](_0x30c143),_0x4bd4c9();});return;}}_0x162175[_0x5479a8(0x32f)](kn(_0x2e5469));},'close':()=>{const _0x54e5f4=_0x305406;_0x162175['close'](),_0xaa6cf2[_0x54e5f4(0x2f2)]();}},_0x10d5b5;}async[_0x552037(0x409)](_0x426b14,_0x154589){const _0x1af392=_0x552037;let {unitType:_0x2a4cea,unitID:_0x53d4cf,changeset:_0x105129}=_0x154589['data'],_0x5a2613={'unitID':_0x53d4cf,'memberID':_0x426b14['memberID'],'type':_0x2a4cea,'changeset':_0x2f5078(_0x105129)},_0x23c253=this[_0x1af392(0x212)]['getConfig'](R),_0x2618e4=jn((_0x23c253==null?void 0x0:_0x23c253[_0x1af392(0x43a)])??'/universer-api/comb',_0x2a4cea,_0x53d4cf);try{await this[_0x1af392(0x2a7)][_0x1af392(0x3ec)](_0x2618e4,{'body':_0x5a2613});}catch(_0x9a2051){throw this['_logService'][_0x1af392(0x329)](_0x1af392(0x201),_0x1af392(0x2a4)),_0x9a2051;}}async[_0x552037(0x389)](_0xe49e23){const _0x3d913f=_0x552037;let {unitID:_0x4b91ea,from:_0x13bde8,to:_0x384f84,unitType:_0x348da4}=_0xe49e23[_0x3d913f(0x454)];return(await this[_0x3d913f(0x1d6)][_0x3d913f(0x3f2)]({'metadata':void 0x0},{'unitID':_0x4b91ea,'type':_0x348da4,'from':_0x13bde8,'to':_0x384f84}))[_0x3d913f(0x35f)][_0x3d913f(0x3bd)](_0x53f266=>((_0x53f266[_0x3d913f(0x360)]===null||_0x53f266[_0x3d913f(0x360)]===void 0x0)&&(_0x53f266[_0x3d913f(0x360)]=[]),_0x53f266));}};Mn=H([V(0x0,_0x51c6d7(_0x21dcba)),V(0x1,_0x51c6d7(_0x20496f)),V(0x2,_0x1fb7be),V(0x3,_0x11662d),V(0x4,_0x25f822)],Mn);const Nn=_0x445a87('univer-pro.collaboration-client-adapter-service');function Pn(_0x2c764f={}){const _0x5b90b6=_0x552037;return _0x2c764f['resolveUnit']?{'resolveUnit':_0x2c764f[_0x5b90b6(0x40e)]}:{'resolveUnit':_0xb42c8=>({'target':{'unitId':_0xb42c8['unitId'],'unitType':_0xb42c8['unitType']}})};}function Fn(_0x301b45,_0x21ff3d,_0x14814a){const _0x3205b3=_0x552037;let _0x30a89f=_0x14814a[_0x3205b3(0x2f6)][_0x3205b3(0x335)];if(_0x30a89f!=null&&_0x30a89f[_0x3205b3(0x356)]()==='')throw Error(_0x3205b3(0x1bb));if(!_0x14814a['target'][_0x3205b3(0x29f)])throw Error(_0x3205b3(0x3b2));return{'localUnitId':_0x301b45,'unitType':_0x21ff3d,'target':{'endpoint':_0x30a89f,'unitId':_0x14814a['target']['unitId'],'unitType':_0x14814a[_0x3205b3(0x2f6)][_0x3205b3(0x1cf)]??_0x21ff3d},'changeset':_0x14814a[_0x3205b3(0x33b)]};}let In=class extends _0x3f6f32{constructor(_0x10d9e4,_0x170fde,_0x2d27d5,_0x3c312f,_0x32498a,_0x154b18,_0x2d5a07){const _0x279a0a=_0x552037;super(),this[_0x279a0a(0x1f2)]=_0x10d9e4,this[_0x279a0a(0x319)]=_0x170fde,this['_configService']=_0x2d27d5,this[_0x279a0a(0x1fe)]=_0x3c312f,this['_collaborationUIEventService']=_0x32498a,this[_0x279a0a(0x30e)]=_0x154b18,this[_0x279a0a(0x226)]=_0x2d5a07,z(this,_0x279a0a(0x426),new Map()),z(this,'_pendingSessions',new Map()),z(this,_0x279a0a(0x1c1),new Map()),z(this,_0x279a0a(0x21f),new Map()),z(this,_0x279a0a(0x1e5),this['_getSocketChannel'](void 0x0)[_0x279a0a(0x1e5)]['asObservable']()),z(this,'_status$',new _0x4b2fa9(0x0)),z(this,_0x279a0a(0x399),this[_0x279a0a(0x478)][_0x279a0a(0x38e)]()),this['_listenToNetworkCondition']();}[_0x552037(0x209)](){const _0x34566a=_0x552037;this[_0x34566a(0x226)]&&this['disposeWithMe'](this[_0x34566a(0x226)][_0x34566a(0x374)][_0x34566a(0x338)](_0x2643d4=>{const _0x37bd41=_0x34566a;_0x2643d4&&this['reconnect'](),_0x2643d4||this[_0x37bd41(0x21f)][_0x37bd41(0x2ed)](_0x58611a=>this['_onOffline'](_0x58611a));}));}[_0x552037(0x2f2)](){const _0x57c428=_0x552037;super[_0x57c428(0x2f2)](),this[_0x57c428(0x21f)][_0x57c428(0x2ed)](_0x2a7fbf=>{const _0x373d0a=_0x57c428;var _0x2e87e2,_0x5d667f;(_0x2e87e2=_0x2a7fbf[_0x373d0a(0x230)])==null||_0x2e87e2[_0x373d0a(0x20d)](),_0x2a7fbf[_0x373d0a(0x230)]=null,this[_0x373d0a(0x3ba)](_0x2a7fbf),this[_0x373d0a(0x3d5)](_0x2a7fbf),this[_0x373d0a(0x30b)](_0x2a7fbf),(_0x5d667f=_0x2a7fbf['socket$'][_0x373d0a(0x29e)]())==null||_0x5d667f[_0x373d0a(0x279)](),_0x2a7fbf[_0x373d0a(0x1e5)][_0x373d0a(0x306)]();}),this[_0x57c428(0x21f)][_0x57c428(0x465)](),this['_sessions'][_0x57c428(0x2ed)](_0x2b9cf1=>_0x2b9cf1['dispose']()),this[_0x57c428(0x426)][_0x57c428(0x465)](),this[_0x57c428(0x1c1)]['clear'](),this[_0x57c428(0x478)][_0x57c428(0x306)]();}async['requireSession'](_0x39c849,_0xaa77ad){const _0x40e7a2=_0x552037;if(this[_0x40e7a2(0x426)][_0x40e7a2(0x292)](_0x39c849))return this[_0x40e7a2(0x426)][_0x40e7a2(0x3ef)](_0x39c849);let _0x119699=this['_pendingSessions'][_0x40e7a2(0x3ef)](_0x39c849);if(_0x119699)return _0x119699;let _0x3ac128=this['_createSession'](_0x39c849,_0xaa77ad);this[_0x40e7a2(0x36b)][_0x40e7a2(0x1ea)](_0x39c849,_0x3ac128);try{return await _0x3ac128;}finally{this[_0x40e7a2(0x36b)][_0x40e7a2(0x1ee)](_0x39c849);}}async['_createSession'](_0x2b1d12,_0x497954){const _0x14b93a=_0x552037;let _0x4f0a3a=await this['_resolveSessionIdentity'](_0x2b1d12,_0x497954),_0x395118=this[_0x14b93a(0x32e)](_0x4f0a3a[_0x14b93a(0x2f6)][_0x14b93a(0x335)]);this['_tryEnsureSocket'](_0x395118);let _0xb61c60=this[_0x14b93a(0x1f2)]['createInstance'](Gt,_0x4f0a3a,_0x395118[_0x14b93a(0x1e5)][_0x14b93a(0x38e)]());return this['_sessions'][_0x14b93a(0x1ea)](_0x2b1d12,_0xb61c60),this['_sessionChannels'][_0x14b93a(0x1ea)](_0x2b1d12,_0x395118['endpointKey']),_0xb61c60;}['closeSession'](_0xda87f5){const _0x169d04=_0x552037;let _0x2effac=this[_0x169d04(0x426)][_0x169d04(0x3ef)](_0xda87f5),_0x442a40=this[_0x169d04(0x1c1)][_0x169d04(0x3ef)](_0xda87f5);if(_0x2effac&&(this['_sessions'][_0x169d04(0x1ee)](_0xda87f5),this[_0x169d04(0x1c1)]['delete'](_0xda87f5),_0x2effac[_0x169d04(0x279)]()),_0x442a40&&!this[_0x169d04(0x241)](_0x442a40)){var _0x5552eb;let _0xb6e67d=this[_0x169d04(0x21f)][_0x169d04(0x3ef)](_0x442a40);_0xb6e67d==null||(_0x5552eb=_0xb6e67d['socket$']['getValue']())==null||_0x5552eb['close']();}}['reconnect'](){const _0x552f6d=_0x552037;(this[_0x552f6d(0x21f)][_0x552f6d(0x324)]?[...this[_0x552f6d(0x21f)][_0x552f6d(0x436)]()]:[this[_0x552f6d(0x32e)](void 0x0)])[_0x552f6d(0x2ed)](_0x4c29a4=>{const _0x4cb254=_0x552f6d;_0x4c29a4[_0x4cb254(0x346)]=0x0,this[_0x4cb254(0x3ba)](_0x4c29a4),this['_tryReconnect'](_0x4c29a4);});}[_0x552037(0x3ba)](_0x4c2c6f){const _0x4b5dcb=_0x552037;_0x4c2c6f['retryConnectingTimer']!=null&&(clearTimeout(_0x4c2c6f[_0x4b5dcb(0x313)]),_0x4c2c6f['retryConnectingTimer']=null);}async[_0x552037(0x3cf)](_0x35abf3){const _0x482cde=_0x552037;let _0x2ea224=this[_0x482cde(0x212)][_0x482cde(0x2f9)](R),_0x445116=_0x35abf3[_0x482cde(0x335)]??(_0x2ea224==null?void 0x0:_0x2ea224['collabWebSocketUrl'])??_0x482cde(0x3a3),_0x58c758=await this['_socketService']['createSocket'](_0x445116);return _0x35abf3['candidateSocket']=_0x58c758,_0x58c758;}async['_tryEnsureSocket'](_0x410820){const _0x2e09f5=_0x552037;try{let _0xb0237b=_0x410820[_0x2e09f5(0x1e5)][_0x2e09f5(0x29e)]()??_0x410820[_0x2e09f5(0x1e7)]??await this[_0x2e09f5(0x3cf)](_0x410820);if(_0xb0237b){var _0x347fa4;let _0x521531=_0xb0237b[_0x2e09f5(0x32f)];_0xb0237b[_0x2e09f5(0x32f)]=_0x5be6eb=>(_0x5be6eb['cmd']!==_0x47c572[_0x2e09f5(0x2ca)]&&this[_0x2e09f5(0x384)](_0x410820),_0x521531[_0x2e09f5(0x406)](_0xb0237b,[_0x5be6eb])),(_0x347fa4=_0x410820[_0x2e09f5(0x230)])==null||_0x347fa4['unsubscribe'](),_0x410820[_0x2e09f5(0x230)]=null,_0x410820['socketMessageSubscription']=_0xb0237b['message$']['subscribe'](_0x199325=>this[_0x2e09f5(0x2bc)](_0x410820,_0xb0237b,_0x199325)),_0xb0237b[_0x2e09f5(0x2cc)]['pipe'](_0x1c8f19(0x1))[_0x2e09f5(0x338)](_0x17ae88=>this[_0x2e09f5(0x319)][_0x2e09f5(0x329)](_0x2e09f5(0x1f5),_0x17ae88)),_0xb0237b['open$']['pipe'](_0x1c8f19(0x1))[_0x2e09f5(0x338)](()=>{this['_onConnectionOpen'](_0x410820,_0xb0237b);}),_0xb0237b['close$'][_0x2e09f5(0x26f)](_0x1c8f19(0x1))[_0x2e09f5(0x338)](_0x104d4d=>{const _0x1ac4d0=_0x2e09f5;this[_0x1ac4d0(0x319)][_0x1ac4d0(0x412)](_0x1ac4d0(0x2db),_0x1ac4d0(0x46a),_0x104d4d),this['_onConnectionFailed'](_0x410820);});}}catch(_0x40a7c9){this[_0x2e09f5(0x319)][_0x2e09f5(0x329)](_0x40a7c9),this['_onConnectionFailed'](_0x410820);}}['_onConnectionOpen'](_0x454ce9,_0x37a9b3){const _0x3895b1=_0x552037;this['_logService'][_0x3895b1(0x412)](_0x3895b1(0x2db),_0x3895b1(0x333)),_0x37a9b3[_0x3895b1(0x32f)]({'cmd':_0x47c572[_0x3895b1(0x380)]}),this[_0x3895b1(0x384)](_0x454ce9);}[_0x552037(0x432)](_0x13f9f1){const _0x56b240=_0x552037;_0x13f9f1[_0x56b240(0x464)]=!0x1,_0x13f9f1[_0x56b240(0x1e7)]=null,this[_0x56b240(0x478)][_0x56b240(0x23c)](0x2),_0x13f9f1[_0x56b240(0x1e5)]['next'](null),this[_0x56b240(0x3d5)](_0x13f9f1),this[_0x56b240(0x30b)](_0x13f9f1);}[_0x552037(0x315)](_0x5015e2){const _0x52426c=_0x552037;this[_0x52426c(0x432)](_0x5015e2),this[_0x52426c(0x241)](_0x5015e2['endpointKey'])&&(_0x5015e2[_0x52426c(0x346)]<(this['_configService'][_0x52426c(0x2f9)](_0x52426c(0x44f))??0x3)?(this[_0x52426c(0x1fb)]['emitEvent']({'id':_0x52426c(0x46b)}),this[_0x52426c(0x23d)](_0x5015e2)):this[_0x52426c(0x1fb)][_0x52426c(0x457)]({'id':_0x52426c(0x1f1)}));}['_tryReconnect'](_0x406214){const _0x1a4adc=_0x552037;let _0x36453d=_0x406214[_0x1a4adc(0x346)],_0x2d621a=this[_0x1a4adc(0x212)][_0x1a4adc(0x2f9)](R),_0x17e2a0=_0x36453d===0x0?0x0:((_0x2d621a==null?void 0x0:_0x2d621a[_0x1a4adc(0x39d)])??0x4e20)*0x2**_0x36453d;_0x406214[_0x1a4adc(0x313)]=setTimeout(()=>{const _0x5c5d7c=_0x1a4adc;clearTimeout(_0x406214[_0x5c5d7c(0x313)]),_0x406214['retryConnectingTimer']=null,this[_0x5c5d7c(0x1dd)](_0x406214);},_0x17e2a0),_0x406214['retryCount']+=0x1;}async[_0x552037(0x2dc)](_0x45192e,_0x156b12){const _0x2ccd43=_0x552037;return Fn(_0x45192e,_0x156b12,await this[_0x2ccd43(0x30e)][_0x2ccd43(0x40e)]({'unitId':_0x45192e,'unitType':_0x156b12}));}[_0x552037(0x2bc)](_0x36e788,_0x22011c,_0x43e571){const _0x5508ac=_0x552037;let {cmd:_0x1b53f4}=_0x43e571;_0x1b53f4===_0x47c572['HELLO']&&!_0x36e788['socketReady']&&(_0x22011c[_0x5508ac(0x33c)]=_0x43e571[_0x5508ac(0x454)][_0x5508ac(0x33c)],_0x36e788[_0x5508ac(0x346)]=0x0,_0x36e788[_0x5508ac(0x1e5)][_0x5508ac(0x23c)](_0x22011c),this[_0x5508ac(0x478)][_0x5508ac(0x23c)](0x3),_0x36e788[_0x5508ac(0x464)]=!0x0,_0x36e788[_0x5508ac(0x1e7)]=null),_0x1b53f4===_0x47c572[_0x5508ac(0x269)]&&this[_0x5508ac(0x3d5)](_0x36e788),this['_rescheduleHeartbeat'](_0x36e788);}[_0x552037(0x241)](_0x31d136){const _0x955127=_0x552037;return[...this[_0x955127(0x1c1)][_0x955127(0x436)]()][_0x955127(0x3e6)](_0x1b240f=>_0x1b240f===_0x31d136);}[_0x552037(0x32e)](_0x3555e3){const _0x2a5ca8=_0x552037;let _0x4df1b3=_0x3555e3??'',_0x24fade=this[_0x2a5ca8(0x21f)][_0x2a5ca8(0x3ef)](_0x4df1b3);if(_0x24fade)return _0x24fade;let _0x55b63c={'endpointKey':_0x4df1b3,'endpoint':_0x3555e3,'socket$':new _0x4b2fa9(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x2a5ca8(0x21f)][_0x2a5ca8(0x1ea)](_0x4df1b3,_0x55b63c),_0x55b63c;}[_0x552037(0x384)](_0x329c0c){const _0x2f07a8=_0x552037;this[_0x2f07a8(0x30b)](_0x329c0c),_0x329c0c[_0x2f07a8(0x433)]=setTimeout(()=>this[_0x2f07a8(0x32d)](_0x329c0c),this[_0x2f07a8(0x212)][_0x2f07a8(0x2f9)](_0x2f07a8(0x463))??0x7530);}['_sendHeartbeat'](_0x37dfce){const _0x11cf50=_0x552037;_0x37dfce[_0x11cf50(0x1e5)][_0x11cf50(0x29e)]()[_0x11cf50(0x32f)]({'cmd':_0x47c572['HEARTBEAT']}),this[_0x11cf50(0x2ff)](_0x37dfce);}[_0x552037(0x2ff)](_0x1b2d3b){const _0x5e80ce=_0x552037;_0x1b2d3b[_0x5e80ce(0x26c)]=setTimeout(()=>this[_0x5e80ce(0x315)](_0x1b2d3b),this[_0x5e80ce(0x212)][_0x5e80ce(0x2f9)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x552037(0x30b)](_0x94ac9f){const _0x4c4da6=_0x552037;_0x94ac9f['sendHeartbeatTimer']!=null&&(clearTimeout(_0x94ac9f[_0x4c4da6(0x433)]),_0x94ac9f[_0x4c4da6(0x433)]=null);}['_clearTimeoutTimer'](_0x1d8583){const _0x3682df=_0x552037;_0x1d8583[_0x3682df(0x26c)]!=null&&(clearTimeout(_0x1d8583[_0x3682df(0x26c)]),_0x1d8583[_0x3682df(0x26c)]=null);}};In=H([V(0x0,_0x51c6d7(_0x21dcba)),V(0x1,_0x11662d),V(0x2,_0x1fb7be),V(0x3,An),V(0x4,_0x51c6d7(B)),V(0x5,Nn),V(0x6,_0x338273(Dn))],In);let Ln=class extends _0x7563ff{constructor(_0x2208b0,_0x2cd9c4,_0x35b40e,_0x59af31){const _0x40fa9e=_0x552037;var _0x400cb5;super(),this['_injector']=_0x2208b0,this['_collabSessionService']=_0x2cd9c4,this[_0x40fa9e(0x212)]=_0x35b40e,this[_0x40fa9e(0x2e2)]=_0x59af31,z(this,_0x40fa9e(0x42b),new Map()),z(this,_0x40fa9e(0x39e),new _0x118dae()),z(this,_0x40fa9e(0x34e),this['_entityInit$'][_0x40fa9e(0x38e)]()),((_0x400cb5=this[_0x40fa9e(0x212)][_0x40fa9e(0x2f9)](_0x40fa9e(0x261)))==null?void 0x0:_0x400cb5[_0x40fa9e(0x1e9)])!==!0x1&&this[_0x40fa9e(0x323)]();}[_0x552037(0x2f2)](){const _0x279bb6=_0x552037;super[_0x279bb6(0x2f2)](),this[_0x279bb6(0x42b)][_0x279bb6(0x2ed)](_0x389563=>_0x389563[_0x279bb6(0x2f2)]()),this['_entities'][_0x279bb6(0x465)]();}[_0x552037(0x410)](_0x51d783){const _0x1899f2=_0x552037;return this[_0x1899f2(0x42b)][_0x1899f2(0x3ef)](_0x51d783)??null;}[_0x552037(0x27b)](_0x58ce96){const _0x3706d8=_0x552037;let _0x48080b=this[_0x3706d8(0x410)](_0x58ce96);return _0x48080b?_0x411eec(_0x48080b):this[_0x3706d8(0x39e)][_0x3706d8(0x26f)](_0x1b42dd(_0x43dcc6=>_0x43dcc6[_0x3706d8(0x244)]===_0x58ce96));}[_0x552037(0x291)](_0x475c8a){const _0x4c6c0e=_0x552037;return _0x34143f(this[_0x4c6c0e(0x27b)](_0x475c8a)[_0x4c6c0e(0x26f)](_0x1eb9dd(()=>void 0x0)));}[_0x552037(0x323)](){const _0x248e68=_0x552037;this[_0x248e68(0x2e2)][_0x248e68(0x2ad)](_0x4da65d[_0x248e68(0x3ea)])[_0x248e68(0x26f)](_0x5f1dde(this['dispose$']),_0x45aaeb(0x10))[_0x248e68(0x338)](async _0xb82210=>{const _0x670f17=_0x248e68;let _0x25a881=_0xb82210[_0x670f17(0x2e5)]['getUnitId'](),_0x11bb6a=await this[_0x670f17(0x220)](_0x25a881,_0x4da65d['UNIVER_SHEET']);this[_0x670f17(0x42b)][_0x670f17(0x1ea)](_0x25a881,_0x11bb6a);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4da65d['UNIVER_DOC'])[_0x248e68(0x26f)](_0x5f1dde(this[_0x248e68(0x1f6)]),_0x45aaeb(0x10))[_0x248e68(0x26f)](_0x1b42dd(_0x58ada0=>!_0x58ada0[_0x248e68(0x2e5)][_0x248e68(0x265)]()[_0x248e68(0x408)]('__')))[_0x248e68(0x338)](async _0x40954e=>{const _0x1f1128=_0x248e68;let _0x135049=_0x40954e[_0x1f1128(0x2e5)]['getUnitId'](),_0x285907=await this['_startCollaboration'](_0x135049,_0x4da65d[_0x1f1128(0x2ab)]);this[_0x1f1128(0x42b)][_0x1f1128(0x1ea)](_0x135049,_0x285907);}),this[_0x248e68(0x2e2)][_0x248e68(0x2ad)](_0x4da65d[_0x248e68(0x202)])[_0x248e68(0x26f)](_0x5f1dde(this[_0x248e68(0x1f6)]),_0x45aaeb(0x10))[_0x248e68(0x338)](async _0x4d40d5=>{const _0x1c2e1a=_0x248e68;let _0xee8e22=_0x4d40d5[_0x1c2e1a(0x2e5)][_0x1c2e1a(0x265)](),_0x272153=await this[_0x1c2e1a(0x220)](_0xee8e22,_0x4da65d[_0x1c2e1a(0x202)]);this[_0x1c2e1a(0x42b)]['set'](_0xee8e22,_0x272153);}),this[_0x248e68(0x2e2)][_0x248e68(0x2ad)](_0x4da65d['UNIVER_BOARD'])[_0x248e68(0x26f)](_0x5f1dde(this[_0x248e68(0x1f6)]),_0x45aaeb(0x10))[_0x248e68(0x338)](async _0x543f03=>{const _0x2f9e3c=_0x248e68;let _0x23c692=_0x543f03[_0x2f9e3c(0x2e5)][_0x2f9e3c(0x265)](),_0x4e03f7=await this[_0x2f9e3c(0x220)](_0x23c692,_0x4da65d[_0x2f9e3c(0x2a9)]);this['_entities'][_0x2f9e3c(0x1ea)](_0x23c692,_0x4e03f7);}),this['_univerInstanceService'][_0x248e68(0x2ad)](_0x4da65d['UNIVER_BASE'])[_0x248e68(0x26f)](_0x5f1dde(this[_0x248e68(0x1f6)]),_0x45aaeb(0x10))[_0x248e68(0x338)](async _0x4c0a98=>{const _0x47bd70=_0x248e68;let _0x535518=_0x4c0a98[_0x47bd70(0x2e5)]['getUnitId'](),_0x2d61ec=await this[_0x47bd70(0x220)](_0x535518,_0x4da65d[_0x47bd70(0x404)]);this[_0x47bd70(0x42b)][_0x47bd70(0x1ea)](_0x535518,_0x2d61ec);}),this[_0x248e68(0x2e2)][_0x248e68(0x2ad)](_0x4da65d[_0x248e68(0x234)])[_0x248e68(0x26f)](_0x5f1dde(this[_0x248e68(0x1f6)]),_0x45aaeb(0x10))[_0x248e68(0x338)](async _0x84a32c=>{const _0x4cbe12=_0x248e68;let _0x2c6f06=_0x84a32c['unit'][_0x4cbe12(0x265)](),_0x182d8b=await this[_0x4cbe12(0x220)](_0x2c6f06,_0x4da65d[_0x4cbe12(0x234)]);this['_entities'][_0x4cbe12(0x1ea)](_0x2c6f06,_0x182d8b);}),_0x40b0f1(this['_univerInstanceService'][_0x248e68(0x23e)](_0x4da65d[_0x248e68(0x3ea)]),this[_0x248e68(0x2e2)][_0x248e68(0x23e)](_0x4da65d[_0x248e68(0x2ab)]),this[_0x248e68(0x2e2)][_0x248e68(0x23e)](_0x4da65d[_0x248e68(0x202)]),this['_univerInstanceService'][_0x248e68(0x23e)](_0x4da65d[_0x248e68(0x2a9)]),this['_univerInstanceService'][_0x248e68(0x23e)](_0x4da65d[_0x248e68(0x404)]),this[_0x248e68(0x2e2)][_0x248e68(0x23e)](_0x4da65d['UNIVER_PDF']))[_0x248e68(0x26f)](_0x5f1dde(this['dispose$']))[_0x248e68(0x338)](_0x17ddbf=>{const _0x252bf1=_0x248e68;let _0x19b842=_0x17ddbf['getUnitId'](),_0x5e4624=this[_0x252bf1(0x42b)]['get'](_0x19b842);_0x5e4624&&(_0x5e4624[_0x252bf1(0x2f2)](),this[_0x252bf1(0x42b)][_0x252bf1(0x1ee)](_0x19b842));});}async[_0x552037(0x220)](_0x5f45ea,_0x557b5a){const _0x1c835a=_0x552037;let _0x3f0d01=await this[_0x1c835a(0x1b9)][_0x1c835a(0x1df)](_0x5f45ea),_0x45cb6b=this[_0x1c835a(0x1f2)][_0x1c835a(0x214)](this[_0x1c835a(0x2c6)](_0x557b5a),_0x5f45ea,_0x557b5a,_0x3f0d01);return await _0x45cb6b[_0x1c835a(0x2bf)](),this[_0x1c835a(0x39e)][_0x1c835a(0x23c)](_0x45cb6b),_0x45cb6b;}[_0x552037(0x2c6)](_0x45463b){const _0x1ba887=_0x552037;switch(_0x45463b){case _0x4da65d[_0x1ba887(0x2ab)]:return xn;case _0x4da65d['UNIVER_SHEET']:return Cn;case _0x4da65d[_0x1ba887(0x202)]:return wn;case _0x4da65d[_0x1ba887(0x2a9)]:return Tn;case _0x4da65d[_0x1ba887(0x404)]:return Sn;case _0x4da65d[_0x1ba887(0x234)]:return En;default:throw Error(_0x1ba887(0x1d8)+_0x45463b);}}};Ln=H([V(0x0,_0x51c6d7(_0x21dcba)),V(0x1,_0x51c6d7(In)),V(0x2,_0x1fb7be),V(0x3,_0x51bdf2)],Ln);var Rn=_0x552037(0x446),zn=_0x552037(0x369);let Bn=class extends _0x3f6f32{constructor(_0x3e5072,_0x20805e){const _0x4501ac=_0x552037;super(),this[_0x4501ac(0x2e2)]=_0x3e5072,this[_0x4501ac(0x212)]=_0x20805e,this['_init']();}[_0x552037(0x323)](){const _0x2a0a4d=_0x552037;this[_0x2a0a4d(0x473)](this[_0x2a0a4d(0x2e2)]['focused$'][_0x2a0a4d(0x338)](()=>{const _0x21bc96=_0x2a0a4d;let _0x2bf8e1=this[_0x21bc96(0x2e2)][_0x21bc96(0x245)](),_0x571bfc=this['_configService'][_0x21bc96(0x2f9)]('DEFAULT_FILE_NAME')??_0x21bc96(0x255);_0x2bf8e1 instanceof _0x5f5a66&&(_0x571bfc=_0x2bf8e1[_0x21bc96(0x2e7)]),document['title']=_0x571bfc;}));}};Bn=H([V(0x0,_0x51bdf2),V(0x1,_0x1fb7be)],Bn);const Vn=_0x445a87(_0x552037(0x376));let Hn=class{constructor(_0x32fc52,_0x271c06,_0x26d5b3){const _0x28eef1=_0x552037;this['_httpService']=_0x32fc52,this[_0x28eef1(0x212)]=_0x271c06,this[_0x28eef1(0x2e2)]=_0x26d5b3;}[_0x552037(0x3db)](){const _0x47e5ed=_0x552037;return this[_0x47e5ed(0x41a)]()[_0x47e5ed(0x1c7)]??{};}async['saveAttachment'](_0x1b4126){const _0x5bc42c=_0x552037;let _0x1edf9f=this['getUploadOptions']();if(Un(_0x1b4126,_0x1edf9f),_0x1edf9f['upload'])return _0x1edf9f[_0x5bc42c(0x3bf)](_0x1b4126);let _0x554634=await this[_0x5bc42c(0x398)](_0x1b4126);return{'id':_0x554634,'name':_0x1b4126[_0x5bc42c(0x2e7)],'mimeType':_0x1b4126['type'],'size':_0x1b4126['size'],'sourceType':_0x20d062[_0x5bc42c(0x320)],'source':_0x554634};}async[_0x552037(0x1f0)](_0x247dd4,_0x448564){const _0x24130c=_0x552037;if(_0x448564!==_0x20d062['UUID'])return _0x247dd4;let _0x150289=(await this[_0x24130c(0x2a7)][_0x24130c(0x3ef)](this[_0x24130c(0x3bc)]()[_0x24130c(0x286)](_0x24130c(0x2d1),_0x247dd4)))['body'];if(_0x150289[_0x24130c(0x329)]&&_0x150289[_0x24130c(0x329)]['code']!==_0x586679['OK'])throw _0x150289[_0x24130c(0x329)];if(!_0x150289[_0x24130c(0x378)])throw Error(_0x24130c(0x28b));return _0x4de049(_0x150289[_0x24130c(0x378)],this[_0x24130c(0x354)]());}async['_upload'](_0x531302){const _0xa86026=_0x552037;let _0x5b639f=this[_0xa86026(0x2e2)]['getFocusedUnit'](),_0x321ece=_0x5b639f==null?void 0x0:_0x5b639f['getUnitId']();if(!_0x321ece)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x4c4b9f=new FormData();_0x4c4b9f[_0xa86026(0x383)](_0xa86026(0x45c),_0x531302);let _0x2fa9fc=this[_0xa86026(0x2e8)]()+_0xa86026(0x36f)+_0x531302[_0xa86026(0x324)]['toString']()+'&source='+_0x526333[_0xa86026(0x45e)]+_0xa86026(0x1ec)+encodeURIComponent(_0x321ece),_0x2b6e1e=(await this[_0xa86026(0x2a7)][_0xa86026(0x3ec)](_0x2fa9fc,{'body':_0x4c4b9f}))['body'][_0xa86026(0x2cf)];if(typeof _0x2b6e1e!=_0xa86026(0x262)||!_0x2b6e1e)throw Error(_0xa86026(0x420));return _0x2b6e1e;}[_0x552037(0x2e8)](){const _0x1e5bc0=_0x552037;return this[_0x1e5bc0(0x41a)]()[_0x1e5bc0(0x2e3)]??_0x1e5bc0(0x318);}[_0x552037(0x3bc)](){const _0x2b08bb=_0x552037;return this[_0x2b08bb(0x41a)]()[_0x2b08bb(0x304)]??_0x2b08bb(0x40a);}[_0x552037(0x354)](){const _0x3f138d=_0x552037;let _0x38512b=this[_0x3f138d(0x41a)]();return _0x38512b[_0x3f138d(0x41e)]?_0x38512b[_0x3f138d(0x41e)]:typeof location<'u'?location['origin']:_0x38512b[_0x3f138d(0x2e3)]??'';}[_0x552037(0x41a)](){const _0x380a3a=_0x552037;return this[_0x380a3a(0x212)][_0x380a3a(0x2f9)](_0x380a3a(0x261))??{};}};Hn=H([V(0x0,_0x51c6d7(_0x20496f)),V(0x1,_0x51c6d7(_0x1fb7be)),V(0x2,_0x51c6d7(_0x51bdf2))],Hn);function Un(_0x360784,_0x2cef54){const _0x293f37=_0x552037;var _0x3a3570;if(_0x2cef54[_0x293f37(0x3c6)]!=null&&_0x360784[_0x293f37(0x324)]>_0x2cef54[_0x293f37(0x3c6)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x3a3570=_0x2cef54['accept'])!=null&&_0x3a3570[_0x293f37(0x283)]&&!_0x2cef54[_0x293f37(0x1d3)][_0x293f37(0x3e6)](_0x2bf9ee=>_0x360784[_0x293f37(0x43c)]===_0x2bf9ee||_0x360784['name'][_0x293f37(0x434)](_0x2bf9ee)||_0x2bf9ee[_0x293f37(0x434)]('/*')&&_0x360784['type'][_0x293f37(0x408)](_0x2bf9ee[_0x293f37(0x325)](0x0,-0x1))))throw Error(_0x293f37(0x311));}let Wn=class{constructor(_0x4d6bbe,_0x3f15da,_0x4bec1e){const _0x589482=_0x552037;this[_0x589482(0x212)]=_0x4d6bbe,this[_0x589482(0x2a7)]=_0x3f15da,this[_0x589482(0x322)]=_0x4bec1e,this['init']();}[_0x552037(0x2bf)](){const _0x2877be=_0x552037;this[_0x2877be(0x2a7)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x52a448,_0x4fbd9b)=>_0x4fbd9b(_0x52a448)[_0x2877be(0x26f)](_0x3dcf34(async _0x23e988=>{const _0x2c0e3e=_0x2877be;let _0x275b55=_0x23e988;if(_0x275b55[_0x2c0e3e(0x41f)]===0x191){if(typeof window>'u')throw Error(_0x2c0e3e(0x282));if(window[_0x2c0e3e(0x458)](this[_0x2c0e3e(0x322)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x10bede=window[_0x2c0e3e(0x298)](window[_0x2c0e3e(0x300)][_0x2c0e3e(0x1b8)]);window[_0x2c0e3e(0x300)][_0x2c0e3e(0x1b8)]=this['_getLoginPath']()+'?url='+_0x10bede;}}return _0x275b55;}))});}[_0x552037(0x468)](){const _0x415f99=_0x552037;let _0xcd967f=this['_configService']['getConfig'](R);return(_0xcd967f==null?void 0x0:_0xcd967f[_0x415f99(0x32c)])??_0x415f99(0x37b);}};Wn=H([V(0x0,_0x1fb7be),V(0x1,_0x51c6d7(_0x20496f)),V(0x2,_0x51c6d7(_0xb3ec34))],Wn);let Gn=class extends _0x3f6f32{constructor(_0x46870f,_0x59a8c8){const _0x38ad60=_0x552037;super(),this[_0x38ad60(0x216)]=_0x46870f,this[_0x38ad60(0x212)]=_0x59a8c8,z(this,_0x38ad60(0x2be),!0x1),this[_0x38ad60(0x28c)]();}[_0x552037(0x28c)](){const _0x35889d=_0x552037;let _0x10f60e=this;this[_0x35889d(0x473)](this[_0x35889d(0x216)][_0x35889d(0x31b)]({'priority':0x3e7,'interceptor':_0xd04f41({'isMatch'(_0x8e6c9d){const _0x287a84=_0x35889d;var _0x5f11d5;if(_0x8e6c9d[_0x287a84(0x2e6)]===_0x287a84(0x25e)&&(_0x5f11d5=_0x8e6c9d[_0x287a84(0x1e8)])!=null&&_0x5f11d5[_0x287a84(0x418)]){let {objectID:_0x2ad898,objectType:_0x13cda1}=_0x8e6c9d[_0x287a84(0x1e8)][_0x287a84(0x418)]||{};if(!_0x2ad898||_0x13cda1===void 0x0)return!0x1;let _0x4aac78=_0x10f60e['_getAPIPrefixPath']()+'/'+_0x13cda1+'/object/'+encodeURIComponent(_0x2ad898)+_0x287a84(0x430);if(_0x8e6c9d[_0x287a84(0x378)]===_0x4aac78)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x202262){const _0x2e3ba4=_0x35889d;var _0x26d74a;return(_0x26d74a=_0x202262[_0x2e3ba4(0x1e8)])==null?void 0x0:_0x26d74a[_0x2e3ba4(0x418)];},'mergeParamsToRequest'(_0x14ea7d,_0x5aaa19){const _0x16f417=_0x35889d;let _0x4fccd3=_0x10f60e[_0x16f417(0x2ee)]()+_0x16f417(0x3fb),_0x410fd6=_0x14ea7d[_0x16f417(0x3e7)]((_0x31521f,_0x5d54af)=>{const _0x2a78eb=_0x16f417;let {unitID:_0x5ccb7f,objectID:_0x103548,objectType:_0x4b91a2,actions:_0x7393ba}=_0x5d54af;return _0x31521f[_0x5ccb7f]||(_0x31521f[_0x5ccb7f]=Object[_0x2a78eb(0x3ab)](null)),_0x31521f[_0x5ccb7f][_0x103548]||(_0x31521f[_0x5ccb7f][_0x103548]={'objectID':_0x103548,'objectType':_0x4b91a2,'actions':[]}),_0x31521f[_0x5ccb7f][_0x103548][_0x2a78eb(0x21d)][_0x2a78eb(0x421)](..._0x7393ba),_0x31521f;},Object[_0x16f417(0x3ab)](null)),_0x4158a9=[];for(let _0x2db70c in _0x410fd6)for(let _0x25d582 in _0x410fd6[_0x2db70c]){let {actions:_0x59940d,objectType:_0x337447}=_0x410fd6[_0x2db70c][_0x25d582],_0x1462b4=[...new Set(_0x59940d)];_0x4158a9['push']({'unitID':_0x2db70c,'objectID':_0x25d582,'objectType':_0x337447,'actions':_0x1462b4});}return new _0x407ac7(_0x16f417(0x25e),_0x4fccd3,{'headers':_0x5aaa19[_0x16f417(0x341)],'withCredentials':_0x5aaa19[_0x16f417(0x2c5)],'responseType':_0x5aaa19[_0x16f417(0x1fa)],'body':{'requests':_0x4158a9}});}},{'distributeResult'(_0xdc870d,_0x541fc4){const _0x4cd8dd=_0x35889d;let {objectActions:_0xf517ba}=_0xdc870d;return _0x541fc4[_0x4cd8dd(0x3bd)](_0xda6a71=>{const _0x507088=_0x4cd8dd;let {unitID:_0x56239f,objectID:_0x276a5e,actions:_0x56d237}=_0xda6a71,_0x39c4ef=_0xf517ba[_0x507088(0x274)](_0x22c1fa=>_0x22c1fa[_0x507088(0x244)]===_0x56239f&&_0x22c1fa[_0x507088(0x361)]===_0x276a5e);return{'config':_0xda6a71,'result':{'actions':_0x56d237[_0x507088(0x3bd)](_0x4db00e=>_0x39c4ef==null?void 0x0:_0x39c4ef[_0x507088(0x21d)][_0x507088(0x274)](_0x41fa82=>_0x41fa82[_0x507088(0x3c7)]===_0x4db00e))[_0x507088(0x2d5)](_0x5600e1=>!!_0x5600e1),'error':_0xdc870d['error']}};});}})}));}[_0x552037(0x2ee)](){const _0x52471d=_0x552037;let _0x323ee5=this['_configService']['getConfig'](R);return(_0x323ee5==null?void 0x0:_0x323ee5[_0x52471d(0x340)])??_0x52471d(0x349);}async[_0x552037(0x3ab)](_0x30bc98){const _0x42b0ea=_0x552037;let _0x348c2b=this[_0x42b0ea(0x2ee)]()+'/'+_0x30bc98[_0x42b0ea(0x36a)]+_0x42b0ea(0x310);return(await this['_HTTPService'][_0x42b0ea(0x3ec)](_0x348c2b,{'body':_0x30bc98}))['body'][_0x42b0ea(0x361)]||'';}async[_0x552037(0x440)](_0x52b500){const _0x5854bb=_0x552037;let _0x4ae4bd=this[_0x5854bb(0x2ee)]()+_0x5854bb(0x272);return(await this['_HTTPService'][_0x5854bb(0x3ec)](_0x4ae4bd,{'body':_0x52b500}))['body'][_0x5854bb(0x3f3)];}async[_0x552037(0x477)](_0x119413){const _0xc7d33e=_0x552037;var _0x1f446a;let _0x41c730=this[_0xc7d33e(0x2ee)]()+'/'+_0x119413['objectType']+_0xc7d33e(0x466)+encodeURIComponent(_0x119413[_0xc7d33e(0x361)]),_0x5dc6a3=await this[_0xc7d33e(0x216)]['put'](_0x41c730,{'body':_0x119413});if((_0x5dc6a3==null||(_0x1f446a=_0x5dc6a3['body'])==null||(_0x1f446a=_0x1f446a[_0xc7d33e(0x329)])==null?void 0x0:_0x1f446a[_0xc7d33e(0x297)])!==0x1)throw Error(_0xc7d33e(0x303));}async[_0x552037(0x3a5)](_0x374ebd){const _0x41c6e1=_0x552037;let _0x54e5ea=this[_0x41c6e1(0x2ee)]()+'/'+_0x374ebd[_0x41c6e1(0x36a)]+'/object/'+encodeURIComponent(_0x374ebd[_0x41c6e1(0x361)])+_0x41c6e1(0x430);return(await this[_0x41c6e1(0x216)][_0x41c6e1(0x3ec)](_0x54e5ea,{'body':_0x374ebd}))[_0x41c6e1(0x418)][_0x41c6e1(0x21d)];}async[_0x552037(0x267)](_0x240aa9){const _0x3a23e9=_0x552037;let _0x3670b6=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this['_HTTPService']['post'](_0x3670b6,{'body':{'requests':_0x240aa9}}))[_0x3a23e9(0x418)]['objectActions'];}async[_0x552037(0x366)](_0x11ce05){const _0x5f0d26=_0x552037;let _0x387ccd=this[_0x5f0d26(0x2ee)]()+'/'+_0x11ce05[_0x5f0d26(0x36a)]+_0x5f0d26(0x377),_0x35bf9c=await this[_0x5f0d26(0x216)]['post'](_0x387ccd,{'body':_0x11ce05});return{'roles':_0x35bf9c[_0x5f0d26(0x418)][_0x5f0d26(0x345)],'actions':_0x35bf9c[_0x5f0d26(0x418)][_0x5f0d26(0x21d)]};}async[_0x552037(0x24e)](_0x512c37){const _0x45a74e=_0x552037;let _0x2d1d06=this[_0x45a74e(0x2ee)]()+_0x45a74e(0x208);await this['_HTTPService'][_0x45a74e(0x1ee)](_0x2d1d06,{'params':{'collaboratorID':_0x512c37[_0x45a74e(0x29c)],'objectID':_0x512c37[_0x45a74e(0x361)],'unitID':_0x512c37[_0x45a74e(0x244)]}});}async[_0x552037(0x273)](_0x2b0531){const _0x191480=_0x552037;let _0x45e22f=this[_0x191480(0x2ee)]()+_0x191480(0x208);await this[_0x191480(0x216)]['patch'](_0x45e22f,{'body':_0x2b0531});}async['createCollaborator'](_0xb25de2){const _0x554878=_0x552037;let _0x347810=this[_0x554878(0x2ee)]()+_0x554878(0x208);await this['_HTTPService'][_0x554878(0x3ec)](_0x347810,{'body':_0xb25de2});}async[_0x552037(0x31e)](_0x2be66f){const _0x57df3a=_0x552037;let _0x5e1fa3=this[_0x57df3a(0x2ee)]()+_0x57df3a(0x208),_0x219df0=await this[_0x57df3a(0x216)]['get'](_0x5e1fa3,{'params':{'objectID':_0x2be66f[_0x57df3a(0x361)],'unitID':_0x2be66f[_0x57df3a(0x244)]}});return this['setCfgEnableObjInherit'](_0x219df0[_0x57df3a(0x418)][_0x57df3a(0x1bd)]??!0x1),_0x219df0[_0x57df3a(0x418)][_0x57df3a(0x3c8)];}async[_0x552037(0x471)](_0x3d9590){const _0xd1c5ba=_0x552037;let _0x2cbc49=this[_0xd1c5ba(0x2ee)]()+'/collaborator';await this[_0xd1c5ba(0x216)][_0xd1c5ba(0x3bb)](_0x2cbc49,{'body':_0x3d9590});}[_0x552037(0x3dd)](_0x189043){const _0x529b1f=_0x552037;this[_0x529b1f(0x2be)]=_0x189043;}[_0x552037(0x24b)](){const _0x24c91b=_0x552037;return this[_0x24c91b(0x2be)];}};Gn=H([V(0x0,_0x51c6d7(_0x20496f)),V(0x1,_0x51c6d7(_0x1fb7be))],Gn);function Kn(_0x20c7b2){const _0x125dd3=_0x552037;let _0x3fec93=atob(_0x20c7b2),_0x452150=new Uint8Array(_0x3fec93[_0x125dd3(0x283)]);for(let _0x1b1bbf=0x0;_0x1b1bbf<_0x3fec93[_0x125dd3(0x283)];_0x1b1bbf++)_0x452150[_0x1b1bbf]=_0x3fec93[_0x125dd3(0x2ae)](_0x1b1bbf);return _0x452150;}function qn(_0x42f12a){const _0x1a29c5=_0x552037;let _0x539053='';for(let _0xcfcd3c=0x0;_0xcfcd3c<_0x42f12a[_0x1a29c5(0x283)];_0xcfcd3c++)_0x539053+=String[_0x1a29c5(0x252)](_0x42f12a[_0xcfcd3c]);return btoa(_0x539053);}function Jn(_0x3626df,_0x2cc3b8){const _0x4fc107=_0x552037;let _0x5d4b25=Kn(_0x2cc3b8),_0x155b6e=_0x5a5d67(0x10),_0x299783=_0x59ae7b(_0x5d4b25,_0x155b6e)[_0x4fc107(0x2ec)](_0x53c74b(_0x3626df));return qn(_0x37f214(_0x155b6e,_0x299783));}function Yn(){const _0x2df245=_0x552037;let _0x383f24=_0x41f2f2()['__Key__'];if(typeof window<'u'&&window[_0x2df245(0x300)]!==void 0x0&&_0x383f24){let _0x3908f3={'time':Math[_0x2df245(0x2b9)](Date[_0x2df245(0x438)]()/0x3e8),'domain':location[_0x2df245(0x29a)]};return Jn(JSON[_0x2df245(0x364)](_0x3908f3),_0x383f24);}}let Xn=class{constructor(_0x4785c2){const _0x28119e=_0x552037;this[_0x28119e(0x2a7)]=_0x4785c2,this[_0x28119e(0x2e4)]();}['_initRequestHeader'](){const _0xd713ff=_0x552037;this['_httpService'][_0xd713ff(0x31b)]({'interceptor':(_0xab014d,_0xec20d)=>{const _0x7b2d5c=_0xd713ff;let _0x5d122f=Yn();return _0x5d122f&&_0xab014d['headers'][_0x7b2d5c(0x1ea)](_0x7b2d5c(0x27a),_0x5d122f),_0xec20d(_0xab014d);}});}};Xn=H([V(0x0,_0x51c6d7(_0x20496f))],Xn);function _0x2f91(_0x287f18,_0x266e98){_0x287f18=_0x287f18-0x1b4;const _0x4b060d=_0x4b06();let _0x2f91ff=_0x4b060d[_0x287f18];return _0x2f91ff;}let Zn=class extends _0x7563ff{constructor(_0x33efb6,_0x1db5c6,_0x214c8a){const _0x38f8ab=_0x552037;super(),this[_0x38f8ab(0x319)]=_0x33efb6,this['_snapshotService']=_0x1db5c6,this['_localCacheService']=_0x214c8a,z(this,'_unitInfo$',new _0x4b2fa9(null)),z(this,'_unitLoaded$',new _0x118dae()),z(this,_0x38f8ab(0x275),this['_unitInfo$'][_0x38f8ab(0x38e)]()),z(this,_0x38f8ab(0x285),this[_0x38f8ab(0x21c)][_0x38f8ab(0x38e)]());}[_0x552037(0x2f2)](){const _0x20ac5f=_0x552037;super[_0x20ac5f(0x2f2)](),this[_0x20ac5f(0x21c)][_0x20ac5f(0x306)](),this['_unitInfo$'][_0x20ac5f(0x306)]();}async[_0x552037(0x44a)](_0x5b3cd7,_0x3e31a5,_0x506cf2,_0xd6abed){const _0x119ee0=_0x552037;this[_0x119ee0(0x2cd)][_0x119ee0(0x23c)]({'unitId':_0x5b3cd7,'type':_0x3e31a5,'subUnitId':_0xd6abed});let _0x2c22e7=null;switch(_0x3e31a5){case _0x4da65d['UNIVER_SHEET']:_0x2c22e7=await this[_0x119ee0(0x31a)]['loadSheet'](_0x5b3cd7,_0x506cf2,void 0x0,{'initialSubUnitId':_0xd6abed});break;case _0x4da65d[_0x119ee0(0x2ab)]:_0x2c22e7=await this[_0x119ee0(0x31a)][_0x119ee0(0x35d)](_0x5b3cd7,_0x506cf2);break;case _0x4da65d[_0x119ee0(0x202)]:_0x2c22e7=await this[_0x119ee0(0x31a)]['loadSlide'](_0x5b3cd7,_0x506cf2);break;case _0x4da65d[_0x119ee0(0x2a9)]:_0x2c22e7=await this['_snapshotService'][_0x119ee0(0x222)](_0x5b3cd7,_0x506cf2);break;case _0x4da65d[_0x119ee0(0x404)]:_0x2c22e7=await this['_snapshotService']['loadBase'](_0x5b3cd7,_0x506cf2);break;case _0x4da65d[_0x119ee0(0x234)]:_0x2c22e7=await this[_0x119ee0(0x31a)][_0x119ee0(0x2fd)](_0x5b3cd7,_0x506cf2);break;default:this['_logService'][_0x119ee0(0x329)](_0x119ee0(0x343),_0x119ee0(0x350));}return _0x2c22e7&&this[_0x119ee0(0x21c)]['next'](_0x2c22e7),_0x2c22e7;}async[_0x552037(0x447)](_0x190677,_0x174f61,_0x1875e6){const _0x39f9fe=_0x552037;var _0x10fd33;this[_0x39f9fe(0x2cd)]['next']({'unitId':_0x190677,'type':_0x174f61,'subUnitId':_0x1875e6});let _0x4f4acd=0x0,_0x296ebc=await((_0x10fd33=this[_0x39f9fe(0x1eb)])==null?void 0x0:_0x10fd33[_0x39f9fe(0x2dd)](_0x190677));return _0x296ebc&&(_0x296ebc[_0x39f9fe(0x2fb)]||_0x296ebc[_0x39f9fe(0x360)][_0x39f9fe(0x283)]!==0x0)&&(_0x4f4acd=_0x296ebc['rev']),_0x4f4acd===0x0&&this[_0x39f9fe(0x319)]['debug']('[DataLoaderService]',_0x39f9fe(0x428)),this['loadUnitOfRevision'](_0x190677,_0x174f61,_0x4f4acd,_0x1875e6);}};Zn=H([V(0x0,_0x11662d),V(0x1,_0x51c6d7(_0x501c83)),V(0x2,_0x338273(U))],Zn);let Qn=class{constructor(_0x369188,_0x103056,_0x59a9dd){const _0x2b11bb=_0x552037;this[_0x2b11bb(0x2a7)]=_0x369188,this[_0x2b11bb(0x212)]=_0x103056,this[_0x2b11bb(0x2e2)]=_0x59a9dd,z(this,_0x2b11bb(0x393),0x0),z(this,_0x2b11bb(0x3fa),new _0x118dae()),z(this,'change$',this[_0x2b11bb(0x3fa)]),z(this,_0x2b11bb(0x3d7),new Map());}['setWaitCount'](_0x140471){const _0x2a2705=_0x552037;this['_waitCount']=_0x140471,this['_change$'][_0x2a2705(0x23c)](_0x140471);}[_0x552037(0x1d2)](_0x32b53a,_0x8338c8){const _0x504bc5=_0x552037;if(_0x8338c8===_0x20d062[_0x504bc5(0x39b)]){let _0x353e79=new Image();return _0x353e79[_0x504bc5(0x332)]=_0x32b53a,_0x353e79;}return this[_0x504bc5(0x3d7)][_0x504bc5(0x3ef)](_0x32b53a);}['addImageSourceCache'](_0x417699,_0x289ab7,_0x4977e3){const _0x535462=_0x552037;_0x289ab7!==_0x20d062[_0x535462(0x39b)]&&_0x4977e3!=null&&this[_0x535462(0x3d7)][_0x535462(0x1ea)](_0x417699,_0x4977e3);}async[_0x552037(0x20b)](_0xc74050){const _0x251926=_0x552037;try{let _0x2d49a9=this['_replaceFileID'](this['_getSignURL'](),''+_0xc74050),_0x90a027=(await this[_0x251926(0x2a7)][_0x251926(0x3ef)](_0x2d49a9))[_0x251926(0x418)];if(_0x90a027['error']&&_0x90a027[_0x251926(0x329)][_0x251926(0x297)]===_0x586679['OK']){let _0x2fafef=_0x4de049(_0x90a027[_0x251926(0x378)],this[_0x251926(0x354)]());return Promise[_0x251926(0x3f7)](_0x2fafef);}return Promise[_0x251926(0x207)](_0x90a027['error']);}catch(_0x56ed2d){return Promise['reject'](_0x56ed2d);}}async[_0x552037(0x3fd)](_0xcb7670){const _0x324a56=_0x552037;let _0x1ff83c='';if(!_0x48c04f[_0x324a56(0x25d)](_0xcb7670[_0x324a56(0x43c)]))return this[_0x324a56(0x390)](),Promise[_0x324a56(0x207)](Error(_0x5c1440[_0x324a56(0x43d)]));if(_0xcb7670[_0x324a56(0x324)]>_0x1f74a0())return this[_0x324a56(0x390)](),Promise[_0x324a56(0x207)](Error(_0x5c1440[_0x324a56(0x353)]));try{let _0x357acc=new FormData();_0x357acc['append'](_0x324a56(0x45c),_0xcb7670);let _0x5f567d=this[_0x324a56(0x2e2)][_0x324a56(0x245)](),_0x5aad19=_0x5f567d==null?void 0x0:_0x5f567d[_0x324a56(0x265)]();if(!_0x5aad19)throw Error(_0x324a56(0x33a));let _0x3a83cd=this[_0x324a56(0x2e8)]()+_0x324a56(0x36f)+_0xcb7670[_0x324a56(0x324)][_0x324a56(0x3ce)]()+_0x324a56(0x3e5)+_0x526333['UnitEmbedded']+_0x324a56(0x1ec)+encodeURIComponent(_0x5aad19),_0x258fef={'body':_0x357acc},_0x302980=(await this[_0x324a56(0x2a7)][_0x324a56(0x3ec)](_0x3a83cd,_0x258fef))[_0x324a56(0x418)];if(typeof _0x302980[_0x324a56(0x2cf)]!=_0x324a56(0x262))return this[_0x324a56(0x390)](),Promise['reject'](Error(_0x5c1440[_0x324a56(0x367)]));_0x1ff83c=_0x302980[_0x324a56(0x2cf)];}catch{return this[_0x324a56(0x390)](),Promise['reject'](Error(_0x5c1440[_0x324a56(0x367)]));}return new Promise((_0x4ad734,_0x51b3e9)=>{const _0x50862f=_0x324a56;let _0x550dc2=new FileReader();_0x550dc2[_0x50862f(0x31c)](_0xcb7670),_0x550dc2[_0x50862f(0x359)]=_0x3ff406=>{const _0x179794=_0x50862f;var _0xf5ddd0;let _0x25c145=(_0xf5ddd0=_0x3ff406[_0x179794(0x2f6)])==null?void 0x0:_0xf5ddd0[_0x179794(0x2cb)];if(_0x25c145==null){this[_0x179794(0x390)](),_0x51b3e9(Error(_0x5c1440['ERROR_IMAGE']));return;}_0x4ad734({'imageId':_0x3bcc96(0x6),'imageSourceType':_0x20d062[_0x179794(0x320)],'source':_0x1ff83c,'base64Cache':_0x25c145,'status':_0x5c1440['SUCCUSS']}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x4fd658=_0x552037;let _0x1e8f8e=this['_configService'][_0x4fd658(0x2f9)](R);return(_0x1e8f8e==null?void 0x0:_0x1e8f8e[_0x4fd658(0x2e3)])??_0x4fd658(0x318);}['_getSignURL'](){const _0x12cb5f=_0x552037;let _0xbc5190=this[_0x12cb5f(0x212)][_0x12cb5f(0x2f9)](R);return(_0xbc5190==null?void 0x0:_0xbc5190[_0x12cb5f(0x304)])??_0x12cb5f(0x40a);}[_0x552037(0x354)](){const _0x4ffb8f=_0x552037;let _0x3d9c88=this[_0x4ffb8f(0x212)][_0x4ffb8f(0x2f9)](R);return(_0x3d9c88==null?void 0x0:_0x3d9c88[_0x4ffb8f(0x41e)])??location[_0x4ffb8f(0x3c3)];}[_0x552037(0x348)](_0x3e4a03,_0x227982){const _0x3db575=_0x552037;return _0x3e4a03[_0x3db575(0x286)](_0x3db575(0x2d1),_0x227982);}[_0x552037(0x390)](){const _0x48d168=_0x552037;--this[_0x48d168(0x393)],this[_0x48d168(0x3fa)]['next'](this[_0x48d168(0x393)]);}};Qn=H([V(0x0,_0x51c6d7(_0x20496f)),V(0x1,_0x1fb7be),V(0x2,_0x51c6d7(_0x51bdf2))],Qn);let $n=class{constructor(_0x6a1d46,_0xe477c6){const _0x312b5f=_0x552037;this[_0x312b5f(0x212)]=_0x6a1d46,this[_0x312b5f(0x216)]=_0xe477c6;}[_0x552037(0x2ee)](){let _0x383564=this['_configService']['getConfig'](R);return(_0x383564==null?void 0x0:_0x383564['authzUrl'])??'/universer-api/authz';}async[_0x552037(0x440)](_0x57c3c5){const _0x3445d3=_0x552037;let _0x1af02b=this[_0x3445d3(0x2ee)]()+_0x3445d3(0x208);return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0x3445d3(0x3ef)](_0x1af02b,{'params':{'objectID':_0x57c3c5[_0x3445d3(0x29f)],'unitID':_0x57c3c5[_0x3445d3(0x29f)]}}))[_0x3445d3(0x418)][_0x3445d3(0x3c8)]['map'](_0x477426=>({'objectId':_0x477426['id'],'name':_0x477426[_0x3445d3(0x3a6)]['name'],'metadata':{'icon':_0x477426['subject'][_0x3445d3(0x247)]},'label':_0x477426['subject'][_0x3445d3(0x2e7)],'objectType':_0x2e9824[_0x3445d3(0x449)]})),'metadata':{},'type':_0x2e9824[_0x3445d3(0x449)]}]};}};$n=H([V(0x0,_0x51c6d7(_0x1fb7be)),V(0x1,_0x51c6d7(_0x20496f))],$n);let er=class extends _0x7563ff{constructor(_0x29108f,_0x39b9a8,_0x1868c4,_0x5077ad,_0x17e750,_0x7ae077){const _0x8334bc=_0x552037;super(),this['_injector']=_0x29108f,this[_0x8334bc(0x2e2)]=_0x39b9a8,this['_permissionService']=_0x1868c4,this[_0x8334bc(0x3aa)]=_0x5077ad,this[_0x8334bc(0x1de)]=_0x17e750,this['_collaborationUIEventService']=_0x7ae077,z(this,'_closedUnits',new Set()),this[_0x8334bc(0x473)](()=>this[_0x8334bc(0x44c)][_0x8334bc(0x465)]()),this['disposeWithMe'](tr(this['_univerInstanceService'])['subscribe'](({unitId:_0x307ea6})=>this[_0x8334bc(0x44c)][_0x8334bc(0x1ee)](_0x307ea6))),this['_initUnitPermissionChange'](),this['_initCloseConn'](),[_0x4da65d[_0x8334bc(0x2ab)],_0x4da65d[_0x8334bc(0x202)],_0x4da65d[_0x8334bc(0x404)],_0x4da65d[_0x8334bc(0x2a9)]][_0x8334bc(0x2ed)](_0x203320=>{const _0xb2cda0=_0x8334bc;this[_0xb2cda0(0x473)](this[_0xb2cda0(0x2e2)][_0xb2cda0(0x23e)](_0x203320)[_0xb2cda0(0x338)](_0x4c5df9=>{const _0x241bdd=_0xb2cda0;this[_0x241bdd(0x44c)][_0x241bdd(0x3af)](_0x4c5df9[_0x241bdd(0x265)]()),this[_0x241bdd(0x1f2)][_0x241bdd(0x3ef)](_0x286642)[_0x241bdd(0x30d)](_0x4c5df9[_0x241bdd(0x265)]());}));});}[_0x552037(0x453)](){const _0x1541ac=_0x552037;let _0x3c1597=async(_0x29e180,_0xf94608)=>{const _0x5acd8e=_0x2f91;let _0x462c56=await this['_collaborationSessionService'][_0x5acd8e(0x1df)](_0x29e180);this[_0x5acd8e(0x30a)]||this['_closedUnits'][_0x5acd8e(0x292)](_0x29e180)||!this['_univerInstanceService'][_0x5acd8e(0x34b)](_0x29e180)||_0x462c56[_0x5acd8e(0x251)][_0x5acd8e(0x26f)](_0x1b42dd(_0xc55a31=>_0xc55a31[_0x5acd8e(0x363)]===_0x16e691['SHOULD_CLOSE_CONN']),_0x546232(_0x40b0f1(this[_0x5acd8e(0x1f6)],this[_0x5acd8e(0x2e2)][_0x5acd8e(0x1b5)][_0x5acd8e(0x26f)](_0x1b42dd(_0x37c1d0=>_0x37c1d0[_0x5acd8e(0x265)]()===_0x29e180)))))[_0x5acd8e(0x338)](_0x42bfaa=>{const _0x19f85e=_0x5acd8e;let {reason:_0x1ab3fc}=_0x42bfaa[_0x19f85e(0x454)];this[_0x19f85e(0x1fb)][_0x19f85e(0x457)]({'id':_0x19f85e(0x3e2),'data':_0x1ab3fc}),this['_closedUnits'][_0x19f85e(0x3af)](_0x29e180),this[_0x19f85e(0x1f2)][_0x19f85e(0x3ef)](_0x286642)['clearUnit'](_0x29e180);let _0x430666=nr(_0xf94608);_0x430666!=null&&this[_0x19f85e(0x293)](_0x29e180,_0x430666,_0x40023b[_0x19f85e(0x20f)],!0x1),this[_0x19f85e(0x1de)][_0x19f85e(0x2c8)](_0x29e180);});};tr(this[_0x1541ac(0x2e2)])[_0x1541ac(0x26f)](_0x1b42dd(({unitId:_0x1a05a2})=>!_0x3dcb00(_0x1a05a2)),_0x546232(this[_0x1541ac(0x1f6)]))['subscribe'](({type:_0x3b0807,unitId:_0x5debf6})=>{const _0x53be7d=_0x1541ac;_0x3c1597(_0x5debf6,_0x3b0807)[_0x53be7d(0x34f)](_0x521ec0=>this[_0x53be7d(0x1f2)][_0x53be7d(0x3ef)](_0x11662d)[_0x53be7d(0x329)](_0x521ec0));});}[_0x552037(0x2a1)](){const _0x532366=_0x552037;let _0x5a6670=async(_0x133a98,_0x4b9ea0)=>{const _0x1ea4ea=_0x2f91;let _0xc4b6fc=await this[_0x1ea4ea(0x1de)][_0x1ea4ea(0x1df)](_0x133a98);if(!(this[_0x1ea4ea(0x30a)]||this[_0x1ea4ea(0x44c)][_0x1ea4ea(0x292)](_0x133a98)||!this['_univerInstanceService'][_0x1ea4ea(0x34b)](_0x133a98))){if(_0x4b9ea0===_0x4da65d[_0x1ea4ea(0x3ea)]){let _0x2b9c03=this[_0x1ea4ea(0x1f2)][_0x1ea4ea(0x3ef)](_0x1769ea);await _0x2b9c03[_0x1ea4ea(0x243)](_0x133a98),_0xc4b6fc['event$'][_0x1ea4ea(0x26f)](_0x1b42dd(_0x2f2684=>_0x2f2684[_0x1ea4ea(0x363)]===_0x16e691[_0x1ea4ea(0x3dc)]),_0x546232(_0x40b0f1(this[_0x1ea4ea(0x1f6)],_0xc4b6fc[_0x1ea4ea(0x251)][_0x1ea4ea(0x26f)](_0x1b42dd(_0x4be7ee=>_0x4be7ee[_0x1ea4ea(0x363)]===_0x16e691['SHOULD_CLOSE_CONN'])),this[_0x1ea4ea(0x2e2)][_0x1ea4ea(0x1b5)][_0x1ea4ea(0x26f)](_0x1b42dd(_0x20fcf4=>_0x20fcf4[_0x1ea4ea(0x265)]()===_0x133a98)))))[_0x1ea4ea(0x338)](_0x7c3166=>{const _0x41d2b5=_0x1ea4ea;let {objectId:_0x430fd1}=_0x7c3166[_0x41d2b5(0x454)];_0x430fd1===_0x133a98?_0x2b9c03[_0x41d2b5(0x243)](_0x133a98):_0x2b9c03['refreshPermission'](_0x133a98,_0x430fd1);});return;}_0xc4b6fc[_0x1ea4ea(0x251)][_0x1ea4ea(0x26f)](_0x1b42dd(_0x1d5fdc=>_0x1d5fdc[_0x1ea4ea(0x363)]===_0x16e691[_0x1ea4ea(0x3dc)]),_0x546232(_0x40b0f1(this[_0x1ea4ea(0x1f6)],_0xc4b6fc[_0x1ea4ea(0x251)]['pipe'](_0x1b42dd(_0x3eb6d5=>_0x3eb6d5['eventID']===_0x16e691['SHOULD_CLOSE_CONN'])),this['_univerInstanceService'][_0x1ea4ea(0x1b5)]['pipe'](_0x1b42dd(_0x2166f1=>_0x2166f1[_0x1ea4ea(0x265)]()===_0x133a98)))))[_0x1ea4ea(0x338)](()=>{const _0x1f556a=_0x1ea4ea;this[_0x1f556a(0x371)](_0x133a98,_0x4b9ea0)['catch'](_0x43a93b=>this['_injector']['get'](_0x11662d)[_0x1f556a(0x329)](_0x43a93b));}),await this[_0x1ea4ea(0x371)](_0x133a98,_0x4b9ea0);}};tr(this['_univerInstanceService'])[_0x532366(0x26f)](_0x1b42dd(({unitId:_0x4415a0})=>!_0x3dcb00(_0x4415a0)),_0x546232(this['dispose$']))[_0x532366(0x338)](({type:_0x2fbbe0,unitId:_0x207ef3})=>{const _0x1a2800=_0x532366;_0x5a6670(_0x207ef3,_0x2fbbe0)[_0x1a2800(0x34f)](_0x424a58=>this[_0x1a2800(0x1f2)][_0x1a2800(0x3ef)](_0x11662d)[_0x1a2800(0x329)](_0x424a58));});}async[_0x552037(0x371)](_0x90668e,_0x442e29){const _0x84255f=_0x552037;let _0x273d16=nr(_0x442e29);if(_0x273d16==null)return;let _0x4e3f4f=this[_0x84255f(0x1f2)][_0x84255f(0x3ef)](_0x286642);if(_0x4e3f4f[_0x84255f(0x1c2)]({'unitId':_0x90668e,'objectId':_0x90668e,'objectType':_0x273d16})){await _0x4e3f4f['refreshUnit'](_0x90668e);return;}let _0x1feea6=this[_0x84255f(0x37c)](_0x90668e,_0x273d16);if(!_0x1feea6['length'])return;let _0x32206c=await this[_0x84255f(0x3aa)][_0x84255f(0x3a5)]({'objectID':_0x90668e,'objectType':_0x273d16,'unitID':_0x90668e,'actions':_0x1feea6[_0x84255f(0x3bd)](({action:_0x21218e})=>_0x21218e)});this['_disposed']||this[_0x84255f(0x44c)][_0x84255f(0x292)](_0x90668e)||!this[_0x84255f(0x2e2)][_0x84255f(0x34b)](_0x90668e)||_0x32206c[_0x84255f(0x2ed)](_0x1919d9=>{const _0x4b7454=_0x84255f;let _0x115add=_0x1919d9[_0x4b7454(0x3c7)],_0x509a89=_0x1919d9[_0x4b7454(0x3a5)];_0x115add!=null&&_0x509a89!=null&&_0x1feea6[_0x4b7454(0x2d5)](_0x2093d1=>_0x2093d1[_0x4b7454(0x3c7)]===_0x115add)[_0x4b7454(0x2ed)](_0x2877ab=>this[_0x4b7454(0x2d9)][_0x4b7454(0x3de)](_0x2877ab['id'],_0x509a89));});}['_getUnitPermissionPoints'](_0x390cd5,_0x412782){const _0x53032d=_0x552037;let _0x188fbc=[];return this[_0x53032d(0x2d9)]['getAllPermissionPoint']()[_0x53032d(0x2ed)]((_0x574585,_0xb2a40f)=>{const _0x3d0e41=_0x53032d;_0x574585[_0x3d0e41(0x338)](_0x5cd6b7=>{const _0x2f39a6=_0x3d0e41;_0x5cd6b7[_0x2f39a6(0x43c)]===_0x412782&&_0x2f39a6(0x29f)in _0x5cd6b7&&_0x5cd6b7[_0x2f39a6(0x29f)]===_0x390cd5&&(!(_0x2f39a6(0x2b5)in _0x5cd6b7)||_0x5cd6b7[_0x2f39a6(0x2b5)]===_0x390cd5)&&_0x188fbc[_0x2f39a6(0x421)]({'id':_0xb2a40f,'action':_0x5cd6b7[_0x2f39a6(0x431)]});})[_0x3d0e41(0x20d)]();}),_0x188fbc;}[_0x552037(0x293)](_0x2151f2,_0x941da6,_0x31a16b,_0x5ae10d){const _0xa155d5=_0x552037;this[_0xa155d5(0x2d9)][_0xa155d5(0x20e)]()['forEach']((_0x536d07,_0x5bf17f)=>{const _0x377531=_0xa155d5;let _0x3e3ddf=!0x1;_0x536d07[_0x377531(0x338)](_0x28eed5=>{const _0x18d2a1=_0x377531;_0x3e3ddf=_0x28eed5[_0x18d2a1(0x43c)]===_0x941da6&&_0x28eed5[_0x18d2a1(0x431)]===_0x31a16b&&_0x18d2a1(0x29f)in _0x28eed5&&_0x28eed5['unitId']===_0x2151f2&&(!(_0x18d2a1(0x2b5)in _0x28eed5)||_0x28eed5[_0x18d2a1(0x2b5)]===_0x2151f2);})[_0x377531(0x20d)](),_0x3e3ddf&&this[_0x377531(0x2d9)][_0x377531(0x3de)](_0x5bf17f,_0x5ae10d);});}};er=H([V(0x0,_0x51c6d7(_0x21dcba)),V(0x1,_0x51bdf2),V(0x2,_0x2fd944),V(0x3,_0x581968),V(0x4,_0x51c6d7(In)),V(0x5,_0x51c6d7(B))],er);function tr(_0x1748fe){const _0x5b5223=_0x552037;return _0x40b0f1(...[_0x4da65d[_0x5b5223(0x3ea)],_0x4da65d[_0x5b5223(0x2ab)],_0x4da65d[_0x5b5223(0x202)],_0x4da65d['UNIVER_BOARD'],_0x4da65d[_0x5b5223(0x404)]][_0x5b5223(0x3bd)](_0x38d3c0=>_0x1748fe[_0x5b5223(0x2ad)](_0x38d3c0)['pipe'](_0x1eb9dd(_0x1d4455=>({'type':_0x38d3c0,'unitId':_0x1d4455[_0x5b5223(0x2e5)][_0x5b5223(0x265)]()})))));}function nr(_0x58cc24){const _0x1e5e41=_0x552037;switch(_0x58cc24){case _0x4da65d['UNIVER_SHEET']:return _0x1e9d99[_0x1e5e41(0x422)];case _0x4da65d['UNIVER_DOC']:return _0x1e9d99[_0x1e5e41(0x397)];case _0x4da65d[_0x1e5e41(0x202)]:return _0x1e9d99[_0x1e5e41(0x334)];case _0x4da65d[_0x1e5e41(0x2a9)]:return _0x1e9d99['Board'];case _0x4da65d[_0x1e5e41(0x404)]:return _0x1e9d99[_0x1e5e41(0x200)];default:return;}}let rr=class{constructor(_0x279056,_0x3babc2){const _0xfe6778=_0x552037;this['_configService']=_0x279056,this[_0xfe6778(0x2a7)]=_0x3babc2;}async[_0x552037(0x1d0)](_0x3250a0,_0x16dcb2){const _0x1a44bc=_0x552037;var _0x26173d;let {unitID:_0x437a21,type:_0xded620,revision:_0x2ed8e1=0x0}=_0x16dcb2,_0x4c3d96=this[_0x1a44bc(0x21e)]()+'/'+_0xded620+'/unit/'+_0x437a21+_0x1a44bc(0x305)+_0x2ed8e1,_0x47afb9=(await this['_httpService'][_0x1a44bc(0x3ef)](_0x4c3d96))[_0x1a44bc(0x418)],_0x29c9b1=(_0x26173d=_0x47afb9['snapshot'])==null?void 0x0:_0x26173d[_0x1a44bc(0x218)];if(_0x29c9b1){let _0xb10c54=_0x29c9b1==null?void 0x0:_0x29c9b1[_0x1a44bc(0x342)];_0x29c9b1[_0x1a44bc(0x342)]=_0x24eaeb[_0x1a44bc(0x1f9)](_0x1f2ee9(_0xb10c54)),Object['entries'](_0x29c9b1[_0x1a44bc(0x266)])[_0x1a44bc(0x2ed)](([,_0x252750])=>{const _0x15a359=_0x1a44bc;let _0x1e94ea=_0x252750[_0x15a359(0x342)];_0x252750['originalMeta']=_0x24eaeb[_0x15a359(0x1f9)](_0x1f2ee9(_0x1e94ea));});}return _0x47afb9;}async[_0x552037(0x1ed)](_0x160979,_0xf7965b){const _0x5ae42b=_0x552037;let {unitID:_0x56087f,type:_0x1ef036,blockID:_0x1f7a2f}=_0xf7965b,_0x3f7aa4=this[_0x5ae42b(0x45a)]()+'/'+_0x1ef036+'/unit/'+_0x56087f+_0x5ae42b(0x31d)+_0x1f7a2f;return(await this[_0x5ae42b(0x2a7)][_0x5ae42b(0x3ef)](_0x3f7aa4))[_0x5ae42b(0x418)];}async[_0x552037(0x40f)](_0x1b8898,_0x352446){const _0x25ac54=_0x552037;let {unitID:_0x4a98f3,type:_0x509938,blockID:_0x42d237}=_0x352446,_0x1cb8af=this[_0x25ac54(0x45a)]()+_0x25ac54(0x31d)+_0x509938+_0x25ac54(0x284)+_0x4a98f3+_0x25ac54(0x31d)+_0x42d237;return(await this[_0x25ac54(0x2a7)][_0x25ac54(0x3ef)](_0x1cb8af))[_0x25ac54(0x418)];}async['fetchMissingChangesets'](_0x1b60bf,_0x282fde){const _0x1e4346=_0x552037;let {unitID:_0x262145,type:_0x3ba37f,from:_0x3ebc83,to:_0x134069}=_0x282fde,_0x3ab7c5=this[_0x1e4346(0x45a)]()+'/'+_0x3ba37f+_0x1e4346(0x284)+_0x262145+_0x1e4346(0x475)+_0x3ebc83+_0x1e4346(0x271)+_0x134069;return(await this[_0x1e4346(0x2a7)][_0x1e4346(0x3ef)](_0x3ab7c5))[_0x1e4346(0x418)];}['getSnapshotAPIPath'](){const _0x533ec7=_0x552037;return this[_0x533ec7(0x212)][_0x533ec7(0x2f9)]('SNAPSHOT_URL_KEY')??this[_0x533ec7(0x45a)]();}['_getAPIPrefix'](){const _0x110abb=_0x552037;let _0xdffa3=this[_0x110abb(0x212)][_0x110abb(0x2f9)](R);return(_0xdffa3==null?void 0x0:_0xdffa3['snapshotServerUrl'])??_0x110abb(0x21a);}async[_0x552037(0x34c)](_0x1c2f68,_0x543c60){const _0x2598a4=_0x552037;let _0x4c542a=_0x2598a4(0x2c2)+_0x543c60[_0x2598a4(0x43c)]+_0x2598a4(0x284)+_0x543c60[_0x2598a4(0x244)]+_0x2598a4(0x2da);return(await this[_0x2598a4(0x2a7)]['get'](_0x4c542a,{'params':{'resourceId':JSON[_0x2598a4(0x364)](_0x543c60[_0x2598a4(0x2ef)])}}))[_0x2598a4(0x418)];}[_0x552037(0x1e1)](){const _0x1dbb56=_0x552037;throw Error(_0x1dbb56(0x3d2));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x552037(0x33e)](){const _0x4b50b7=_0x552037;throw Error(_0x4b50b7(0x3d2));}['saveChangeset'](){const _0x47de1d=_0x552037;throw Error(_0x47de1d(0x3d2));}[_0x552037(0x1fc)](){const _0x3cb9cb=_0x552037;throw Error(_0x3cb9cb(0x3d2));}['getLatestCsReqIdBySid'](){const _0x49ea50=_0x552037;throw Error(_0x49ea50(0x3d2));}};rr=H([V(0x0,_0x1fb7be),V(0x1,_0x51c6d7(_0x20496f))],rr);let ir=class extends _0x482087{constructor(_0x324cee,_0x22e2fb,_0x5ce29f,_0x19dd37,_0x1f1b1a,_0x33d76e){super(_0x324cee,_0x22e2fb,_0x5ce29f,_0x19dd37),this['_transformService']=_0x1f1b1a,this['_logService']=_0x33d76e;}[_0x552037(0x2fa)](_0x380e76,_0x169bfc){const _0x555b54=_0x552037;let _0x26f195=this[_0x555b54(0x22e)](_0x380e76);if(_0x26f195)try{let _0x521d21=this[_0x555b54(0x20c)](_0x26f195,_0x169bfc);this['_substituteUndoStack'](_0x380e76,_0x521d21);}catch(_0x3bb9ce){this['_logService'][_0x555b54(0x329)](_0x555b54(0x23b),_0x3bb9ce),this[_0x555b54(0x3d9)](_0x380e76);}let _0x1745fe=this[_0x555b54(0x3f0)](_0x380e76);if(_0x1745fe)try{let _0x4ae6af=this['_transformStack'](_0x1745fe,_0x169bfc);this['_substituteRedoStack'](_0x380e76,_0x4ae6af);}catch(_0x21aa55){this['_logService'][_0x555b54(0x329)](_0x21aa55),this[_0x555b54(0x1bf)](_0x380e76);}}[_0x552037(0x3d9)](_0x3b1794){const _0x2b8d6e=_0x552037;let _0x18d6c9=this[_0x2b8d6e(0x22e)](_0x3b1794);_0x18d6c9&&(_0x18d6c9[_0x2b8d6e(0x283)]=0x0,this[_0x2b8d6e(0x3e3)]());}[_0x552037(0x1bf)](_0x3e39f7){const _0x2000a7=_0x552037;let _0x281412=this[_0x2000a7(0x3f0)](_0x3e39f7);_0x281412&&(_0x281412[_0x2000a7(0x283)]=0x0,this[_0x2000a7(0x3e3)]());}['_substituteUndoStack'](_0x2656c4,_0x33b818){const _0x1931f0=_0x552037;this[_0x1931f0(0x379)][_0x1931f0(0x1ea)](_0x2656c4,_0x33b818),this[_0x1931f0(0x3e3)]();}[_0x552037(0x2f4)](_0x2e716d,_0x146885){const _0x4902f6=_0x552037;this[_0x4902f6(0x448)][_0x4902f6(0x1ea)](_0x2e716d,_0x146885),this[_0x4902f6(0x3e3)]();}[_0x552037(0x20c)](_0xa0cdd4,_0x1316a6){const _0x4add13=_0x552037;let _0x4e3b9a=[],_0x591fd5=_0x1316a6,_0x32c46b=_0x1316a6;for(let _0x519a4c=_0xa0cdd4[_0x4add13(0x283)]-0x1;_0x519a4c>=0x0;_0x519a4c--){let {unitID:_0x5ad95c,undoMutations:_0x7a6679,redoMutations:_0x387552}=_0xa0cdd4[_0x519a4c],_0x3a2386=this[_0x4add13(0x1ba)]['transformMutationsWithChangeset'](_0x591fd5,_0x7a6679),_0x1a2e30=this['_transformService'][_0x4add13(0x38a)](_0x32c46b,_0x387552);if(_0x15682b(_0x3a2386)||_0x15682b(_0x1a2e30)){this[_0x4add13(0x319)]['error'](_0x4add13(0x23b),'transformStack\x20failed!',_0x3a2386,_0x1a2e30);break;}_0x591fd5=_0x3a2386[_0x4add13(0x326)],_0x32c46b=_0x1a2e30[_0x4add13(0x326)],_0x4e3b9a[_0x4add13(0x421)]({'unitID':_0x5ad95c,'undoMutations':_0x3a2386['m2Prime'],'redoMutations':_0x1a2e30[_0x4add13(0x36c)]});}return _0x4e3b9a[_0x4add13(0x42e)]();}};ir=H([V(0x0,_0x51bdf2),V(0x1,_0x56ddbd),V(0x2,_0x170e8a),V(0x3,_0x1fb7be),V(0x4,_0x154e7e),V(0x5,_0x11662d)],ir);let ar=class extends _0x1c556e{constructor(_0x1fe5da=gt,_0x5308b8,_0x2833d2,_0x32f571){const _0x156877=_0x552037;super(),this[_0x156877(0x39a)]=_0x1fe5da,this['_logService']=_0x5308b8,this[_0x156877(0x1f2)]=_0x2833d2,this[_0x156877(0x212)]=_0x32f571;let {..._0x4192c6}=_0x7ffefc({},gt,this[_0x156877(0x39a)]);if(!_0x4192c6['socketService'])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x156877(0x39a)]=_0x4192c6,this[_0x156877(0x212)][_0x156877(0x2e9)](R,_0x4192c6);}[_0x552037(0x2b0)](){const _0x9070b8=_0x552037;this[_0x9070b8(0x212)][_0x9070b8(0x2e9)](_0x152221,this['_config'][_0x9070b8(0x40d)]??[]),this[_0x9070b8(0x213)](),this['_initDependencies']();}[_0x552037(0x213)](){const _0x155722=_0x552037;var _0x3d46b1,_0xd9b547;this['_injector']['has'](_0x49d766)&&this[_0x155722(0x319)][_0x155722(0x329)]('[UniverCollaborationClientPlugin]',_0x155722(0x2ba));let _0x87a452=_0x2c2607([[_0x49d766,{'useClass':ir}],[Nn,{'useValue':Pn()}],[In],[Mt],[Jt],[Wn],[Xn],[jt],[er],[B],[Zn],[An,{'useClass':this['_config'][_0x155722(0x1d5)]}],[_0x25f822,{'useClass':rr}],[_0x581968,{'useClass':Gn}],[_0x582de1,{'useClass':Qn}],[Vn,{'useClass':Hn}],[_0x394bea,{'useClass':$n}],[Ln],[Bn]],(_0x3d46b1=this[_0x155722(0x39a)])==null?void 0x0:_0x3d46b1[_0x155722(0x2a0)]);if(!((_0xd9b547=this[_0x155722(0x39a)])!=null&&_0xd9b547[_0x155722(0x3ff)])){let _0x1f5b05=_0x87a452[_0x155722(0x248)](([_0x1ecef9])=>_0x1ecef9===W);_0x1f5b05!==-0x1&&_0x87a452[_0x155722(0x3fe)](_0x1f5b05,0x1);}_0x117010(this['_injector'],_0x87a452);}[_0x552037(0x277)](){const _0x2b3fc8=_0x552037;var _0x518881,_0x5f0e48;if(this[_0x2b3fc8(0x1f2)][_0x2b3fc8(0x3ef)](_0x20496f)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x5c5d35({'maxParallel':0x6})}),!((_0x518881=this['_config'])!=null&&_0x518881[_0x2b3fc8(0x268)])){var _0x414f5f;(_0x414f5f=this['_injector'][_0x2b3fc8(0x3ef)](U,_0x3ad4ef['OPTIONAL']))==null||_0x414f5f[_0x2b3fc8(0x28d)]();}(_0x5f0e48=this[_0x2b3fc8(0x39a)])!=null&&_0x5f0e48[_0x2b3fc8(0x46d)]&&_0x213723(this[_0x2b3fc8(0x1f2)],[[Wn]]),_0x213723(this[_0x2b3fc8(0x1f2)],[[Xn],[Ln],[er]]);}};z(ar,'pluginName',_0x552037(0x308)),z(ar,'packageName',Rn),z(ar,_0x552037(0x256),zn),ar=H([_0x21b431(_0x2947cf,_0x48f122,_0x1c1398),V(0x1,_0x11662d),V(0x2,_0x51c6d7(_0x21dcba)),V(0x3,_0x1fb7be)],ar);export{Gn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,Sn as BaseCollaborationEntity,Tn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Hn as CollaborationAttachmentIoService,Ln as CollaborationController,$ as CollaborationEntity,Qn as CollaborationImageIoService,Gt as CollaborationSession,In as CollaborationSessionService,Mn as CollaborationSocketService,_n as CollaborationStatus,At as CollaborationUIEventId,B as CollaborationUIEventService,ir as CollaborativeUndoRedoService,jt as CommentService,X as ConflictState,_t as DEFAULT_COLLAB_WEB_SOCKET_URL,Tt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,vt as DEFAULT_WS_SESSION_TICKET_URL,Zn as DataLoaderService,xn as DocCollaborationEntity,Q as FetchingMissState,yt as HEARTBEAT_INTERVAL_KEY,bt as HEARTBEAT_TIMEOUT_KEY,Vn as IAttachmentIoService,Nn as ICollaborationClientAdapterService,An as ICollaborationSocketService,U as ILocalCacheService,Dn as INetworkConditionService,W as ISingleActiveUnitService,Ct as LOCAL_CACHE_INTERVAL,St as LOCAL_CACHE_INTERVAL_KEY,Mt as MemberService,$n as MentionIoHttpService,Z as OfflineState,En as PdfCollaborationEntity,q as PendingState,wt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,xt as RETRY_CONNECTING_MAX_COUNT_KEY,Ut as SessionStatus,Cn as SheetCollaborationEntity,Jt as SheetTransformSelectionsService,wn as SlideCollaborationEntity,rr as SnapshotServerOverHTTPService,K as SyncedState,Yt as UnitStatus,ar as UniverCollaborationClientPlugin,Pn as createUniverCollaborationAdapter,On as deserializeToCombResponse,Kt as getLocalCacheKey,kn as serializeCombRequest};