@univerjs-pro/collaboration-client 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x5c9f94=_0x4bc2;(function(_0x3ea006,_0x185810){const _0x5cc461=_0x4bc2,_0x6c118c=_0x3ea006();while(!![]){try{const _0x2af99e=-parseInt(_0x5cc461(0x1a6))/0x1+-parseInt(_0x5cc461(0x1a7))/0x2+-parseInt(_0x5cc461(0x388))/0x3+parseInt(_0x5cc461(0x21e))/0x4+-parseInt(_0x5cc461(0x1e1))/0x5*(-parseInt(_0x5cc461(0x2f7))/0x6)+parseInt(_0x5cc461(0x2ad))/0x7+parseInt(_0x5cc461(0x1d6))/0x8;if(_0x2af99e===_0x185810)break;else _0x6c118c['push'](_0x6c118c['shift']());}catch(_0x3d8b31){_0x6c118c['push'](_0x6c118c['shift']());}}}(_0x3253,0x6e683));import{CollaborationEvent as _0x538b71,CompressMutationService as _0x2162d4,EmptyMutationInfo as _0x2b1099,ISnapshotServerService as _0x1425c0,ITransformService as _0x173ca8,RevisionService as _0x9b85a2,SnapshotService as _0x5dfed7,UniverCollaborationPlugin as _0xfacf11,b64DecodeUnicode as _0x523ae7,isTransformChangesetsSuccess as _0x31eeb1,isTransformMutationsWithChangesetFailure as _0x635ce5,isTransformMutationsWithChangesetSuccess as _0x2c24b6,mapDocumentTypeToUniverInstanceType as _0x4c0f7a,parseChangesetToProtocol as _0x3e125d,parseProtocolChangeset as _0xde3e04,textEncoder as _0x202300,uuidv4 as _0x209d6d}from'@univerjs-pro/collaboration';import{CommandType as _0x4a7495,DependentOn as _0x9817de,Disposable as _0x588e84,DisposableCollection as _0x21b987,IAuthzIoService as _0x18ec33,ICommandService as _0x397ef7,IConfigService as _0xf41dc9,IContextService as _0x316af7,IImageIoService as _0x3b2d53,ILogService as _0x3981ee,IMentionIOService as _0x2e02ae,IPermissionService as _0x30415d,IUndoRedoService as _0x34c2a3,IUniverInstanceService as _0x4c5cd7,ImageSourceType as _0x237f28,ImageUploadStatusType as _0x47a5be,Inject as _0xcf8d3f,Injector as _0x19ff28,JSONX as _0xdabad,LocalUndoRedoService as _0xd03d1e,LocaleService as _0x5c6337,MentionType as _0x4191c4,OBJECT_PERMISSION_CONFIG_KEY as _0x4ee50c,ObjectPermissionService as _0x126fa5,Optional as _0x1da68f,Plugin as _0x5b070b,Quantity as _0x527f9b,Rectangle as _0x393b90,RxDisposable as _0x468ac5,Tools as _0x5269d3,UniverInstanceType as _0x2efadb,UserManagerService as _0x2caeff,Workbook as _0x2b4036,createIdentifier as _0x1db16f,generateRandomId as _0x53f585,isInternalEditorID as _0x21b585,merge as _0x195f67,mergeOverrideWithDependencies as _0x448bc4,registerDependencies as _0x11234a,resolveWithBasePath as _0x6adb79,sequenceExecute as _0x146494,toDisposable as _0x2b94ed,touchDependencies as _0x393dc2}from'@univerjs/core';import{DocStateChangeManagerService as _0xb48de9,RichTextEditingMutation as _0x5b44a5}from'@univerjs/docs';import{InsertSheetMutation as _0x39ca1b,SetSelectionsOperation as _0x1ae86b,SheetPermissionInitController as _0x4be829,SheetsSelectionsService as _0x144fe1,WorkbookEditablePermission as _0x350235}from'@univerjs/sheets';import{BehaviorSubject as _0x1946cb,ReplaySubject as _0x1f4774,Subject as _0x4e03af,concatMap as _0x17473d,firstValueFrom as _0x3f95e4,map as _0x98781b,merge as _0x41572c,of as _0xf609a3,shareReplay as _0x43a741,take as _0xc0564d,takeUntil as _0x21bb40}from'rxjs';import{CmdRspCode as _0x3c0867,CombCmd as _0xcb980a,ErrorCode as _0x1aa6bc,FileSource as _0x4a6968,UnitAction as _0x4616a5,UnitObject as _0x3490f2}from'@univerjs/protocol';import{ITelemetryService as _0x53a96b}from'@univerjs/telemetry';import{delay as _0x2fc4f9,filter as _0x5d4b25,map as _0x13126a,take as _0x2c8673,takeUntil as _0x212efd}from'rxjs/operators';import{AddSlidePageMutation as _0x3cc358,EnsureSlideMasterPageMutation as _0x273390,MoveSlidePageMutation as _0x35dc8d,RemoveSlidePageMutation as _0x155725}from'@univerjs-pro/slides';import{HTTPRequest as _0x3b0f3b,HTTPService as _0x145224,ISocketService as _0x17aa40,MergeInterceptorFactory as _0xad30e1,ThresholdInterceptorFactory as _0x2c8f3e,UniverNetworkPlugin as _0x10430a}from'@univerjs/network';import{UniverLicensePlugin as _0x2ecc84,getGlobalObject as _0xcad4c5}from'@univerjs-pro/license';import{cbc as _0xd5b70f}from'@noble/ciphers/aes.js';import{concatBytes as _0x496bb6,randomBytes as _0x862e1b,utf8ToBytes as _0x50e238}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x3f4112,getDrawingImageAllowSize as _0x4b738e}from'@univerjs/drawing';const R=_0x5c9f94(0x247),gt={},_t='ws://127.0.0.1:8000/universer-api/comb/connect',vt=_0x5c9f94(0x1a9),yt=_0x5c9f94(0x25e),bt=_0x5c9f94(0x304),xt=_0x5c9f94(0x15a),St='LOCAL_CACHE_INTERVAL',Ct=0x3e8,wt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',Tt=_0x5c9f94(0x3bc);function Et(_0x2cc12d){const _0x4ad122=_0x5c9f94;return JSON[_0x4ad122(0x2d6)](_0x2cc12d)[_0x4ad122(0x2fd)];}function Dt(_0x38812e){'@babel/helpers - typeof';const _0x3b3f36=_0x5c9f94;return Dt=typeof Symbol=='function'&&typeof Symbol[_0x3b3f36(0x1f2)]==_0x3b3f36(0x173)?function(_0x29f01a){return typeof _0x29f01a;}:function(_0x643f4c){const _0x1d1779=_0x3b3f36;return _0x643f4c&&typeof Symbol==_0x1d1779(0x2ce)&&_0x643f4c[_0x1d1779(0x376)]===Symbol&&_0x643f4c!==Symbol['prototype']?_0x1d1779(0x173):typeof _0x643f4c;},Dt(_0x38812e);}function Ot(_0x401796,_0x4295c8){const _0x24fdfe=_0x5c9f94;if(Dt(_0x401796)!=_0x24fdfe(0x220)||!_0x401796)return _0x401796;var _0x34df3f=_0x401796[Symbol['toPrimitive']];if(_0x34df3f!==void 0x0){var _0x41d4da=_0x34df3f[_0x24fdfe(0x23e)](_0x401796,_0x4295c8||'default');if(Dt(_0x41d4da)!=_0x24fdfe(0x220))return _0x41d4da;throw TypeError(_0x24fdfe(0x2a3));}return(_0x4295c8===_0x24fdfe(0x2df)?String:Number)(_0x401796);}function kt(_0x421872){const _0x573650=_0x5c9f94;var _0x434c8=Ot(_0x421872,_0x573650(0x2df));return Dt(_0x434c8)=='symbol'?_0x434c8:_0x434c8+'';}function z(_0x1b2347,_0x475786,_0x465e53){const _0x2ba0b7=_0x5c9f94;return(_0x475786=kt(_0x475786))in _0x1b2347?Object[_0x2ba0b7(0x1b2)](_0x1b2347,_0x475786,{'value':_0x465e53,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b2347[_0x475786]=_0x465e53,_0x1b2347;}let At=function(_0x2f65c6){const _0x43a3a4=_0x5c9f94;return _0x2f65c6['OTHER_CLIENT_EDITING']=_0x43a3a4(0x39c),_0x2f65c6['PERMISSION_DENIED']=_0x43a3a4(0x1c5),_0x2f65c6[_0x43a3a4(0x260)]=_0x43a3a4(0x260),_0x2f65c6[_0x43a3a4(0x137)]=_0x43a3a4(0x137),_0x2f65c6[_0x43a3a4(0x2be)]='CONFLICT',_0x2f65c6[_0x43a3a4(0x31b)]=_0x43a3a4(0x31b),_0x2f65c6[_0x43a3a4(0x175)]=_0x43a3a4(0x175),_0x2f65c6['SOCKET_FAILED_RETRY']=_0x43a3a4(0x2c3),_0x2f65c6[_0x43a3a4(0x1d7)]='SOCKET_FAILED',_0x2f65c6[_0x43a3a4(0x1b7)]=_0x43a3a4(0x1b7),_0x2f65c6;}({});var B=class{constructor(){const _0x9934d7=_0x5c9f94;z(this,_0x9934d7(0x385),new _0x4e03af()),z(this,_0x9934d7(0x1ad),this[_0x9934d7(0x385)][_0x9934d7(0x190)]());}[_0x5c9f94(0x3a8)](_0x571d70){const _0x2d456d=_0x5c9f94;this[_0x2d456d(0x385)][_0x2d456d(0x3b1)](_0x571d70);}},jt=class{constructor(){const _0x3a32ac=_0x5c9f94;z(this,'_commentUpdate$',new _0x4e03af()),z(this,_0x3a32ac(0x2d0),this[_0x3a32ac(0x1d1)][_0x3a32ac(0x190)]());}['onCommentUpdate'](_0x1d66d7){const _0x336537=_0x5c9f94;this[_0x336537(0x1d1)][_0x336537(0x3b1)](_0x1d66d7);}};function V(_0x104a17,_0x5d2771){return function(_0x981871,_0x219c4f){_0x5d2771(_0x981871,_0x219c4f,_0x104a17);};}function H(_0x4ac523,_0x2c7a1b,_0x2dbcad,_0xbf20d1){const _0x26bceb=_0x5c9f94;var _0x1a12ce=arguments[_0x26bceb(0x2fd)],_0x4c55c0=_0x1a12ce<0x3?_0x2c7a1b:_0xbf20d1===null?_0xbf20d1=Object[_0x26bceb(0x32b)](_0x2c7a1b,_0x2dbcad):_0xbf20d1,_0x33029e;if(typeof Reflect==_0x26bceb(0x220)&&typeof Reflect['decorate']==_0x26bceb(0x2ce))_0x4c55c0=Reflect['decorate'](_0x4ac523,_0x2c7a1b,_0x2dbcad,_0xbf20d1);else{for(var _0x3ee8e0=_0x4ac523[_0x26bceb(0x2fd)]-0x1;_0x3ee8e0>=0x0;_0x3ee8e0--)(_0x33029e=_0x4ac523[_0x3ee8e0])&&(_0x4c55c0=(_0x1a12ce<0x3?_0x33029e(_0x4c55c0):_0x1a12ce>0x3?_0x33029e(_0x2c7a1b,_0x2dbcad,_0x4c55c0):_0x33029e(_0x2c7a1b,_0x2dbcad))||_0x4c55c0);}return _0x1a12ce>0x3&&_0x4c55c0&&Object[_0x26bceb(0x1b2)](_0x2c7a1b,_0x2dbcad,_0x4c55c0),_0x4c55c0;}let Mt=class extends _0x588e84{constructor(_0x56e010){const _0x325a00=_0x5c9f94;super(),this[_0x325a00(0x28a)]=_0x56e010,z(this,_0x325a00(0x341),new Map()),z(this,_0x325a00(0x13d),new _0x4e03af()),this[_0x325a00(0x189)](_0x41572c(this['_univerInstanceService'][_0x325a00(0x2ae)](_0x2efadb[_0x325a00(0x21d)])[_0x325a00(0x270)](_0x13126a(_0x103676=>_0x103676['getUnitId']())),this[_0x325a00(0x28a)][_0x325a00(0x2ae)](_0x2efadb['UNIVER_DOC'])[_0x325a00(0x270)](_0x13126a(_0x5c609b=>_0x5c609b['getUnitId']())),this[_0x325a00(0x28a)][_0x325a00(0x2ae)](_0x2efadb[_0x325a00(0x3ed)])[_0x325a00(0x270)](_0x13126a(_0x1c4557=>_0x1c4557['getUnitId']())),this['_univerInstanceService'][_0x325a00(0x2ae)](_0x2efadb[_0x325a00(0x3a6)])[_0x325a00(0x270)](_0x13126a(_0x4f1b03=>_0x4f1b03[_0x325a00(0x394)]())))[_0x325a00(0x168)](_0xe67d6a=>this[_0x325a00(0x3d8)](_0xe67d6a)));}[_0x5c9f94(0x357)](_0x112ce1){const _0x1d0356=_0x5c9f94;return this[_0x1d0356(0x341)][_0x1d0356(0x3e3)](_0x112ce1)?_0xf609a3(this[_0x1d0356(0x341)]['get'](_0x112ce1)):this['_roomCreated$'][_0x1d0356(0x270)](_0x13126a(_0x30fd78=>{const _0xe58bf0=_0x1d0356;if(_0x30fd78===_0x112ce1)return this[_0xe58bf0(0x341)]['get'](_0x30fd78);}));}[_0x5c9f94(0x283)](_0x3923fd,_0x534072){const _0x42c0b3=_0x5c9f94;let _0x424628=this[_0x42c0b3(0x341)][_0x42c0b3(0x160)](_0x3923fd);_0x424628||(_0x424628=new Nt(),this[_0x42c0b3(0x341)][_0x42c0b3(0x1b3)](_0x3923fd,_0x424628),this['_roomCreated$'][_0x42c0b3(0x3b1)](_0x3923fd)),_0x424628[_0x42c0b3(0x283)](_0x534072);}[_0x5c9f94(0x396)](_0x4a250c,_0x35476e){const _0x1f5229=_0x5c9f94;let _0x52ffcc=this[_0x1f5229(0x341)]['get'](_0x4a250c);_0x52ffcc&&_0x52ffcc[_0x1f5229(0x396)](_0x35476e);}[_0x5c9f94(0x1e9)](_0x3bf9b2){const _0x33c51=_0x5c9f94;return this[_0x33c51(0x341)]['get'](_0x3bf9b2);}[_0x5c9f94(0x186)](_0x58e891,_0x2c3de4){const _0x1d03a8=_0x5c9f94;let _0x2bf2f8=this[_0x1d03a8(0x341)][_0x1d03a8(0x160)](_0x58e891);if(_0x2bf2f8)return _0x2bf2f8[_0x1d03a8(0x186)](_0x2c3de4);}[_0x5c9f94(0x3d8)](_0x39ac5b){const _0x9d1f07=_0x5c9f94;let _0x4478bd=this[_0x9d1f07(0x341)]['get'](_0x39ac5b);_0x4478bd&&(_0x4478bd[_0x9d1f07(0x316)](),this['_roomMembers'][_0x9d1f07(0x1e8)](_0x39ac5b));}[_0x5c9f94(0x316)](){const _0x396603=_0x5c9f94;this[_0x396603(0x341)][_0x396603(0x2de)](_0x5eeca3=>_0x5eeca3[_0x396603(0x316)]()),this['_roomMembers'][_0x396603(0x19e)](),this['_roomCreated$'][_0x396603(0x31a)]();}};Mt=H([V(0x0,_0x4c5cd7)],Mt);var Nt=class extends _0x588e84{constructor(..._0x24baf0){const _0x2fe885=_0x5c9f94;super(..._0x24baf0),z(this,'_members',new Map()),z(this,_0x2fe885(0x140),new _0x1946cb(this[_0x2fe885(0x222)])),z(this,_0x2fe885(0x194),this[_0x2fe885(0x140)][_0x2fe885(0x190)]());}[_0x5c9f94(0x316)](){const _0x29667a=_0x5c9f94;this[_0x29667a(0x222)][_0x29667a(0x19e)](),this['_members$']['complete']();}['updateMember'](_0x1e060f){const _0xeccd80=_0x5c9f94;this[_0xeccd80(0x222)][_0xeccd80(0x1b3)](_0x1e060f[_0xeccd80(0x331)],_0x1e060f),this[_0xeccd80(0x1ca)]();}['removeMember'](_0x325568){const _0x24051a=_0x5c9f94;this[_0x24051a(0x222)]['delete'](_0x325568),this[_0x24051a(0x1ca)]();}[_0x5c9f94(0x186)](_0x4f0be9){const _0x5277ca=_0x5c9f94;return this[_0x5277ca(0x222)][_0x5277ca(0x160)](_0x4f0be9);}[_0x5c9f94(0x22a)](){const _0x29c0b4=_0x5c9f94;return Array['from'](this[_0x29c0b4(0x222)][_0x29c0b4(0x381)]());}[_0x5c9f94(0x1ca)](){const _0x51848e=_0x5c9f94;this[_0x51848e(0x140)][_0x51848e(0x3b1)](this[_0x51848e(0x222)]);}};function Pt(_0xde1693,_0x3b676b){const _0xa49d6a=_0x5c9f94;if(It(_0xde1693))return _0x3b676b;if(_0x3b676b[_0xa49d6a(0x198)]===_0x538b71[_0xa49d6a(0x2c5)]){let _0xf52a71=Vt(_0xde1693),_0x5a036d=_0x3b676b;return{..._0x5a036d,'data':{..._0x5a036d[_0xa49d6a(0x3cf)],'unitID':_0xde1693[_0xa49d6a(0x141)]['unitId'],'unitType':_0xde1693[_0xa49d6a(0x141)][_0xa49d6a(0x2fb)]??_0x5a036d['data'][_0xa49d6a(0x2fb)],'changeset':_0xf52a71[_0xa49d6a(0x1d4)](_0x5a036d[_0xa49d6a(0x3cf)][_0xa49d6a(0x226)],Ht(_0xde1693))}};}if(_0x3b676b[_0xa49d6a(0x198)]===_0x538b71[_0xa49d6a(0x25a)]){let _0x44018d=_0x3b676b;return{..._0x44018d,'data':{..._0x44018d['data'],'unitID':_0xde1693[_0xa49d6a(0x141)]['unitId'],'unitType':_0xde1693['target']['unitType']??_0x44018d[_0xa49d6a(0x3cf)][_0xa49d6a(0x2fb)]}};}return _0x3b676b;}function Ft(_0x495c10,_0x38acac){const _0x221db8=_0x5c9f94;if(It(_0x495c10))return[_0x38acac];switch(_0x38acac[_0x221db8(0x198)]){case _0x538b71[_0x221db8(0x33b)]:return[Lt(_0x495c10,_0x38acac)];case _0x538b71[_0x221db8(0x378)]:return[zt(_0x495c10,_0x38acac)];case _0x538b71['CHANGESET_SHOULD_RETRY']:return[Rt(_0x495c10,_0x38acac)];default:return[_0x38acac];}}function It(_0x53d32b){const _0xfec618=_0x5c9f94;return _0x53d32b['target'][_0xfec618(0x3e4)]==null&&_0x53d32b[_0xfec618(0x141)]['unitId']===_0x53d32b[_0xfec618(0x37d)]&&!_0x53d32b[_0xfec618(0x226)];}function Lt(_0x25a877,_0xc00933){return{..._0xc00933,'data':_0x3e125d(Bt(_0x25a877,_0xde3e04(_0xc00933['data'])))};}function Rt(_0xf1459d,_0x628bbd){const _0x3ddeb0=_0x5c9f94;return{..._0x628bbd,'data':Bt(_0xf1459d,_0x628bbd[_0x3ddeb0(0x3cf)])};}function zt(_0x37ed37,_0x2ddd3c){const _0x3a3839=_0x5c9f94;let _0x241804=_0x2ddd3c[_0x3a3839(0x3cf)];return{..._0x2ddd3c,'data':{..._0x241804,'changesets':_0x241804[_0x3a3839(0x329)][_0x3a3839(0x375)](_0x165aba=>_0x3e125d(Bt(_0x37ed37,_0xde3e04(_0x165aba))))}};}function Bt(_0x7575bd,_0x3233b6){const _0x4b3743=_0x5c9f94;return Vt(_0x7575bd)[_0x4b3743(0x3db)](_0x3233b6,Ht(_0x7575bd));}function Vt(_0x5e8934){const _0x39d770=_0x5c9f94;if(!_0x5e8934[_0x39d770(0x226)])throw Error(_0x39d770(0x214));return _0x5e8934[_0x39d770(0x226)];}function Ht(_0x3c752f){const _0x40aa2b=_0x5c9f94;return{'localUnitId':_0x3c752f[_0x40aa2b(0x37d)],'unitType':_0x3c752f[_0x40aa2b(0x2fb)],'target':_0x3c752f[_0x40aa2b(0x141)]};}let Ut=function(_0x31123b){const _0x193dfd=_0x5c9f94;return _0x31123b[_0x31123b['IDLE']=0x0]=_0x193dfd(0x3a2),_0x31123b[_0x31123b[_0x193dfd(0x2e9)]=0x1]='JOINING',_0x31123b[_0x31123b[_0x193dfd(0x398)]=0x2]=_0x193dfd(0x398),_0x31123b[_0x31123b['ONLINE']=0x3]='ONLINE',_0x31123b;}({});const Wt={[_0x3c0867['FAIL']]:_0x5c9f94(0x346),[_0x3c0867['JOIN_ROOM_FULL']]:_0x5c9f94(0x17e),[_0x3c0867[_0x5c9f94(0x1ef)]]:_0x5c9f94(0x36f),[_0x3c0867[_0x5c9f94(0x28c)]]:_0x5c9f94(0x174),[_0x3c0867['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x5c9f94(0x239)};let Gt=class extends _0x468ac5{get[_0x5c9f94(0x163)](){const _0xbf0ab3=_0x5c9f94;return this[_0xbf0ab3(0x1ee)][_0xbf0ab3(0x154)]();}constructor(_0x122ec1,_0x164aaf,_0x468424,_0x50f6c2,_0x2dd6e9,_0x446fc5,_0xf090cb,_0x3f78d2){const _0x4b6985=_0x5c9f94;super(),this['_identity']=_0x122ec1,this[_0x4b6985(0x26a)]=_0x468424,this[_0x4b6985(0x323)]=_0x50f6c2,this[_0x4b6985(0x139)]=_0x2dd6e9,this[_0x4b6985(0x3c9)]=_0x446fc5,this[_0x4b6985(0x143)]=_0xf090cb,this[_0x4b6985(0x2b5)]=_0x3f78d2,z(this,'_sessionStatus$',new _0x1946cb(0x0)),z(this,_0x4b6985(0x225),this[_0x4b6985(0x1ee)][_0x4b6985(0x190)]()),z(this,_0x4b6985(0x385),new _0x4e03af()),z(this,_0x4b6985(0x1ad),this['_event$']['asObservable']()),z(this,_0x4b6985(0x18d),void 0x0),z(this,_0x4b6985(0x20e),void 0x0),z(this,_0x4b6985(0x3c7),void 0x0),z(this,_0x4b6985(0x15d),!0x1),z(this,_0x4b6985(0x1f9),null),this[_0x4b6985(0x15d)]=!!this[_0x4b6985(0x2b5)],_0x164aaf[_0x4b6985(0x270)](_0x21bb40(this['dispose$']))[_0x4b6985(0x168)](_0x48cf24=>{const _0x5c01c8=_0x4b6985;if(_0x48cf24!==void 0x0){if(this['_socket']=_0x48cf24,_0x48cf24)this[_0x5c01c8(0x1f3)](_0x48cf24),this[_0x5c01c8(0x20e)]=_0x48cf24[_0x5c01c8(0x366)][_0x5c01c8(0x168)](_0x1acaba=>{const _0x50df3e=_0x5c01c8;_0x1acaba['routeKey']===this[_0x50df3e(0x3d9)]['target'][_0x50df3e(0x13c)]&&this[_0x50df3e(0x377)](_0x1acaba);});else{var _0x41fc77;this[_0x5c01c8(0x2f9)](),this[_0x5c01c8(0x1ee)][_0x5c01c8(0x3b1)](0x2),(_0x41fc77=this[_0x5c01c8(0x20e)])==null||_0x41fc77[_0x5c01c8(0x20f)](),this[_0x5c01c8(0x20e)]=null;}}});}[_0x5c9f94(0x395)](){const _0x5def27=_0x5c9f94;var _0x591232;return((_0x591232=this[_0x5def27(0x18d)])==null?void 0x0:_0x591232['memberID'])??null;}[_0x5c9f94(0x316)](){const _0xa9c9a1=_0x5c9f94;super[_0xa9c9a1(0x316)](),this[_0xa9c9a1(0x17d)](),this['dispose$'][_0xa9c9a1(0x3b1)](),this['dispose$'][_0xa9c9a1(0x31a)]();}[_0x5c9f94(0x17d)](){const _0x23fc8c=_0x5c9f94;var _0x514dc5;this[_0x23fc8c(0x2f9)](),(_0x514dc5=this['_socket'])==null||_0x514dc5['send']({'cmd':_0xcb980a[_0x23fc8c(0x17c)],'data':{'roomID':this[_0x23fc8c(0x3d9)][_0x23fc8c(0x141)][_0x23fc8c(0x13c)]}}),this[_0x23fc8c(0x385)][_0x23fc8c(0x31a)](),this[_0x23fc8c(0x1ee)][_0x23fc8c(0x31a)]();}['_onCombEvent'](_0x4e3f6c){const _0x470ee2=_0x5c9f94;_0x4e3f6c[_0x470ee2(0x14d)]===_0xcb980a[_0x470ee2(0x164)]?this[_0x470ee2(0x138)](_0x4e3f6c):_0x4e3f6c[_0x470ee2(0x14d)]===_0xcb980a['RECV']&&this[_0x470ee2(0x18e)](_0x4e3f6c);}[_0x5c9f94(0x1f3)](_0x544d2c){const _0x2491e3=_0x5c9f94;this['_sessionStatus$'][_0x2491e3(0x3b1)](0x1),_0x544d2c[_0x2491e3(0x308)]({'cmd':_0xcb980a[_0x2491e3(0x164)],'routeKey':this['_identity'][_0x2491e3(0x141)][_0x2491e3(0x13c)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x2491e3(0x141)][_0x2491e3(0x13c)]}]}});}[_0x5c9f94(0x138)](_0x55114d){const _0x1e14e7=_0x5c9f94;var _0x528613;if(_0x55114d[_0x1e14e7(0x267)]in Wt){this[_0x1e14e7(0x143)][_0x1e14e7(0x3a8)]({'id':_0x1e14e7(0x175),'data':Wt[_0x55114d[_0x1e14e7(0x267)]]}),this[_0x1e14e7(0x1ee)]['next'](0x2);return;}this['_sessionStatus$'][_0x1e14e7(0x3b1)](0x3);let _0x2e9826=(_0x528613=_0x55114d['data']['roomInfos'][this[_0x1e14e7(0x3d9)]['target'][_0x1e14e7(0x13c)]])==null?void 0x0:_0x528613['members'];_0x2e9826&&_0x2e9826['forEach'](_0x1d8ef9=>this[_0x1e14e7(0x139)]['updateMember'](this[_0x1e14e7(0x3d9)][_0x1e14e7(0x37d)],_0x1d8ef9));}[_0x5c9f94(0x18e)](_0x174bd0){const _0x583ad7=_0x5c9f94;try{let _0x17172e=Ft(this[_0x583ad7(0x3d9)],_0x174bd0[_0x583ad7(0x3cf)]);for(let _0xe85928 of _0x17172e)switch(_0xe85928[_0x583ad7(0x198)]){case _0x538b71[_0x583ad7(0x38e)]:this[_0x583ad7(0x330)](_0xe85928),this[_0x583ad7(0x385)][_0x583ad7(0x3b1)](_0xe85928);break;case _0x538b71['USERS_LEAVE']:this['_onUserLeave'](_0xe85928),this[_0x583ad7(0x385)][_0x583ad7(0x3b1)](_0xe85928);break;case _0x538b71['CHANGESET_ACK']:case _0x538b71[_0x583ad7(0x24e)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x583ad7(0x385)]['next'](_0xe85928);break;case _0x538b71['MSG_FOR_ERROR']:this[_0x583ad7(0x26a)][_0x583ad7(0x2dc)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x583ad7(0x2d6)](_0xe85928)),this[_0x583ad7(0x385)][_0x583ad7(0x3b1)](_0xe85928);break;case _0x538b71[_0x583ad7(0x286)]:this[_0x583ad7(0x3c9)][_0x583ad7(0x146)](_0xe85928[_0x583ad7(0x3cf)]),this['_event$'][_0x583ad7(0x3b1)](_0xe85928);break;default:this['_event$'][_0x583ad7(0x3b1)](_0xe85928);}}catch(_0x5d546e){this[_0x583ad7(0x26a)][_0x583ad7(0x2dc)](_0x5d546e,_0x174bd0);}}[_0x5c9f94(0x330)](_0x19337f){const _0x843c7=_0x5c9f94;this['_memberService'][_0x843c7(0x283)](this[_0x843c7(0x3d9)][_0x843c7(0x37d)],_0x19337f['data']);}[_0x5c9f94(0x23f)](_0x3736ee){const _0xc4c548=_0x5c9f94;this[_0xc4c548(0x139)]['removeMember'](this['_identity'][_0xc4c548(0x37d)],_0x3736ee['data'][_0xc4c548(0x331)]);}async[_0x5c9f94(0x308)](_0x492b40,_0x495cd4){const _0x1f0b44=_0x5c9f94;if(this['sessionStatus']!==0x3||!this['_socket'])throw Error(_0x1f0b44(0x218));try{let _0x2be7ad=Pt(this[_0x1f0b44(0x3d9)],_0x492b40);_0x2be7ad['eventID']===_0x538b71[_0x1f0b44(0x2c5)]&&(this[_0x1f0b44(0x368)](),this[_0x1f0b44(0x1dc)](_0x2be7ad)),this['_socket'][_0x1f0b44(0x308)]({'cmd':_0xcb980a['INGEST'],'routeKey':this[_0x1f0b44(0x3d9)][_0x1f0b44(0x141)][_0x1f0b44(0x13c)],'routeType':'','data':_0x2be7ad});}catch(_0x221930){this['_logService']['error'](_0x221930);}}[_0x5c9f94(0x368)](){const _0xceec4b=_0x5c9f94;this[_0xceec4b(0x3c7)]=setTimeout(()=>{const _0x2e4625=_0xceec4b;this[_0x2e4625(0x3c7)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0x2e4625(0x1b7)});},this[_0xceec4b(0x323)][_0xceec4b(0x1a1)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x5c9f94(0x2a0)](){const _0x1262cf=_0x5c9f94;this[_0x1262cf(0x3c7)]&&=(clearTimeout(this[_0x1262cf(0x3c7)]),null);}[_0x5c9f94(0x1dc)](_0x466d76){const _0x922ac7=_0x5c9f94;if(!this[_0x922ac7(0x15d)])return;let {data:_0x3b9bc5}=_0x466d76,{unitID:_0xddd22f,changeset:_0x52ddeb}=_0x3b9bc5,{mutations:_0x197d47,type:_0x1488d5}=_0x52ddeb;this['_telemetryInfo']={'unitId':_0xddd22f,'type':_0x1488d5,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Et(_0x197d47)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5dd86d=_0x5c9f94;if(this[_0x5dd86d(0x15d)]){if(!this['_telemetryInfo']){this[_0x5dd86d(0x26a)]['error']('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x5dd86d(0x1f9)][_0x5dd86d(0x2b6)]=performance[_0x5dd86d(0x1dd)](),this['_telemetryInfo'][_0x5dd86d(0x38d)]=this['_telemetryInfo']['stopTime']-this[_0x5dd86d(0x1f9)][_0x5dd86d(0x3d1)],this[_0x5dd86d(0x2b5)]['capture'](_0x5dd86d(0x262),this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x5c9f94(0x2f9)](){this['_telemetryInfo']=null;}};Gt=H([V(0x2,_0x3981ee),V(0x3,_0xf41dc9),V(0x4,_0xcf8d3f(Mt)),V(0x5,_0xcf8d3f(jt)),V(0x6,_0xcf8d3f(B)),V(0x7,_0x1da68f(_0x53a96b))],Gt);const U=_0x1db16f(_0x5c9f94(0x204));function Kt(_0x3a2126){const _0x1448bd=_0x5c9f94;return _0x1448bd(0x2e4)+_0x3a2126;}function qt(_0x5b4f3b){const _0x5de7ad=_0x5c9f94;let {unitID:_0x8642d,mutations:_0x2f5f86}=_0x5b4f3b;return{'unitId':_0x8642d,'subUnitId':_0x2f5f86[_0x5de7ad(0x2fd)]>0x0?_0x2f5f86[0x0]['params'][_0x5de7ad(0x312)]:null};}let Jt=class{constructor(_0x4f8a91,_0x5e078c,_0x39abde){const _0x486b07=_0x5c9f94;this[_0x486b07(0x3eb)]=_0x4f8a91,this[_0x486b07(0x364)]=_0x5e078c,this[_0x486b07(0x293)]=_0x39abde;}[_0x5c9f94(0x3af)](_0x55ea81){const _0x9a9e0e=_0x5c9f94;var _0x1d30b2,_0x6f7c7;let _0xf9730a=this[_0x9a9e0e(0x3eb)][_0x9a9e0e(0x160)](_0x144fe1),{unitId:_0x52866b,subUnitId:_0x1e0de7}=qt(_0x55ea81),_0x33b332=_0xf9730a==null?void 0x0:_0xf9730a['getWorkbookSelections'](_0x52866b)[_0x9a9e0e(0x1ba)](),_0x21dcbc=(_0x1d30b2=this[_0x9a9e0e(0x293)][_0x9a9e0e(0x29e)](_0x52866b))==null||(_0x1d30b2=_0x1d30b2['getActiveSheet']())==null?void 0x0:_0x1d30b2[_0x9a9e0e(0x27c)]();if(_0x33b332['length']===0x0||!_0x52866b||!_0x1e0de7)return;let _0x24b192=[{'id':_0x1ae86b['id'],'params':{'unitId':_0x52866b,'subUnitId':_0x21dcbc,'selections':_0x5269d3[_0x9a9e0e(0x37b)](_0x33b332)}}],_0x2b33a2=this[_0x9a9e0e(0x364)]['transformMutationsWithChangeset'](_0x55ea81,_0x24b192);if(!_0x2c24b6(_0x2b33a2))throw _0x2b33a2['error'];let _0x1c84c0=(_0x6f7c7=_0x2b33a2['m2Prime'][0x0])==null||(_0x6f7c7=_0x6f7c7['params'])==null?void 0x0:_0x6f7c7[_0x9a9e0e(0x23a)];if(Array['isArray'](_0x1c84c0)&&_0x1c84c0['length']){if(_0x1c84c0[_0x9a9e0e(0x2fd)]===_0x24b192[0x0][_0x9a9e0e(0x1a4)][_0x9a9e0e(0x23a)][_0x9a9e0e(0x2fd)]&&_0x1c84c0[_0x9a9e0e(0x340)]((_0x4992e3,_0x3826b1)=>_0x393b90['equals'](_0x4992e3[_0x9a9e0e(0x29b)],_0x24b192[0x0][_0x9a9e0e(0x1a4)][_0x9a9e0e(0x23a)][_0x3826b1]['range'])))return;this[_0x9a9e0e(0x3eb)][_0x9a9e0e(0x160)](_0x397ef7)['executeCommand'](_0x1ae86b['id'],{'unitId':_0x52866b,'subUnitId':_0x21dcbc,'selections':_0x1c84c0});}}};Jt=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0x173ca8),V(0x2,_0x4c5cd7)],Jt);const W=_0x1db16f(_0x5c9f94(0x25d));let Yt=function(_0x46047e){const _0x25d62d=_0x5c9f94;return _0x46047e[_0x46047e[_0x25d62d(0x344)]=0x0]=_0x25d62d(0x344),_0x46047e[_0x46047e['OTHER_CLIENTS_EDITING']=0x1]=_0x25d62d(0x29d),_0x46047e;}({});function Xt(_0x5f5b5){const _0x248633=_0x5c9f94;var _0x210b3e;return!!((_0x210b3e=_0x5f5b5[_0x248633(0x1a4)])!=null&&_0x210b3e[_0x248633(0x208)]);}const Zt=new Set([_0x39ca1b['id']]),Qt=new Set([_0x3cc358['id'],_0x273390['id'],_0x35dc8d['id'],_0x155725['id']]);function $t(_0x171c0f,_0x525789=Zt){const _0x1a0694=_0x5c9f94;let _0x99f2=[];for(let _0x4b33c6 of _0x171c0f){if(_0x525789[_0x1a0694(0x3e3)](_0x4b33c6['id'])){if(_0x99f2[_0x1a0694(0x2fd)]>0x0)break;_0x99f2[_0x1a0694(0x26f)](_0x4b33c6);break;}if(Xt(_0x4b33c6)){if(_0x99f2[_0x1a0694(0x2fd)]>0x0)break;_0x99f2[_0x1a0694(0x26f)](_0x4b33c6);break;}_0x99f2[_0x1a0694(0x26f)](_0x4b33c6);}return _0x99f2;}function en(_0x2bd447,_0x34f0d5,_0x55a158,_0x2f2663,_0x49cab1){const _0x341a4b=_0x5c9f94;let _0x595972=$t(_0x2bd447),_0x3c39c2=_0x49cab1[_0x341a4b(0x2ec)](),_0x214888=(_0x3c39c2==null?void 0x0:_0x3c39c2[_0x341a4b(0x3ad)])??_0x341a4b(0x336),_0x52fdce=(_0x3c39c2==null?void 0x0:_0x3c39c2[_0x341a4b(0x331)])??_0x341a4b(0x336);return{'changeset':{'unitID':_0x34f0d5,'type':_0x4c0f7a(_0x55a158[_0x341a4b(0x155)](_0x34f0d5)),'baseRev':_0x2f2663[_0x341a4b(0x18f)](_0x34f0d5),'revision':0x0,'userID':_0x214888,'memberID':_0x52fdce,'mutations':_0x595972},'pendingMutations':_0x2bd447['slice'](_0x595972[_0x341a4b(0x2fd)])};}const tn=en;function nn(_0x2b0b57,_0xd2c260,_0x3f5d1a,_0x3ca90e,_0x43a359){const _0x2bc965=_0x5c9f94;let _0x266f0d=$t(_0x2b0b57,Qt),_0x2c9f05=_0x43a359['getCurrentUser'](),_0x4ac489=(_0x2c9f05==null?void 0x0:_0x2c9f05[_0x2bc965(0x3ad)])??_0x2bc965(0x336),_0x1e9320=(_0x2c9f05==null?void 0x0:_0x2c9f05[_0x2bc965(0x331)])??_0x2bc965(0x336);return{'changeset':{'unitID':_0xd2c260,'type':_0x4c0f7a(_0x3f5d1a[_0x2bc965(0x155)](_0xd2c260)),'baseRev':_0x3ca90e[_0x2bc965(0x18f)](_0xd2c260),'revision':0x0,'userID':_0x4ac489,'memberID':_0x1e9320,'mutations':_0x266f0d},'pendingMutations':_0x2b0b57[_0x2bc965(0x157)](_0x266f0d[_0x2bc965(0x2fd)])};}function rn(_0x3c49a3,_0x591d96,_0x26821a,_0xdd4c50,_0x4251b9){const _0x4d1d85=_0x5c9f94;let _0x28e550=_0x3c49a3[_0x4d1d85(0x1f5)]((_0x2b7a22,_0x520815)=>{const _0x260dd5=_0x4d1d85;let _0x54b928=_0x2b7a22[_0x2b7a22[_0x260dd5(0x2fd)]-0x1],{id:_0x4aeeb4}=_0x54b928??{},{id:_0xe56478,type:_0x14e1fc}=_0x520815,_0x1f602c=_0x520815[_0x260dd5(0x1a4)];if(_0x4aeeb4&&_0x4aeeb4!==_0xe56478)throw Error(_0x260dd5(0x167)+_0x4aeeb4+_0x260dd5(0x3e8)+_0xe56478+'.');if(!_0x54b928)return[{'id':_0xe56478,'type':_0x14e1fc,'params':{'unitId':_0x1f602c[_0x260dd5(0x13c)],'textRanges':_0x1f602c[_0x260dd5(0x161)],'actions':_0x1f602c['actions']}}];let _0x8a5214=_0x54b928[_0x260dd5(0x1a4)];return an(_0x8a5214,_0x1f602c)?[..._0x2b7a22[_0x260dd5(0x157)](0x0,-0x1),{..._0x54b928,'id':_0xe56478,'type':_0x14e1fc,'params':{'unitId':_0x1f602c[_0x260dd5(0x13c)],'textRanges':_0x1f602c['textRanges'],'actions':_0xdabad[_0x260dd5(0x2d7)](_0x8a5214[_0x260dd5(0x37e)],_0x1f602c[_0x260dd5(0x37e)])}}]:[..._0x2b7a22,{'id':_0xe56478,'type':_0x14e1fc,'params':{'unitId':_0x1f602c[_0x260dd5(0x13c)],'textRanges':_0x1f602c[_0x260dd5(0x161)],'actions':_0x1f602c[_0x260dd5(0x37e)]}}];},[]),_0x48c239=_0x4251b9[_0x4d1d85(0x2ec)](),_0x8cc370=(_0x48c239==null?void 0x0:_0x48c239[_0x4d1d85(0x3ad)])??_0x4d1d85(0x336),_0x1fe6d7=(_0x48c239==null?void 0x0:_0x48c239[_0x4d1d85(0x331)])??_0x4d1d85(0x336);return{'changeset':{'unitID':_0x591d96,'type':_0x4c0f7a(_0x26821a[_0x4d1d85(0x155)](_0x591d96)),'baseRev':_0xdd4c50[_0x4d1d85(0x18f)](_0x591d96),'revision':0x0,'userID':_0x8cc370,'memberID':_0x1fe6d7,'mutations':_0x28e550},'pendingMutations':_0x3c49a3[_0x4d1d85(0x157)](_0x3c49a3[_0x4d1d85(0x2fd)])};}function an(_0x20b870,_0x4368f5){const _0x30aff4=_0x5c9f94;return!on(_0x20b870)&&!on(_0x4368f5)&&sn(_0x20b870['actions'],_0x4368f5[_0x30aff4(0x37e)]);}function on(_0x1ee7fa){const _0x2c9b7d=_0x5c9f94;return _0x1ee7fa[_0x2c9b7d(0x166)]!==void 0x0;}function sn(_0x5723b6,_0x2ba02d){return cn(_0x5723b6)&&cn(_0x2ba02d)&&!un(_0x5723b6)&&!un(_0x2ba02d)&&!ln(_0x5723b6)&&!ln(_0x2ba02d);}function cn(_0x2e755b){const _0x180cf1=_0x5c9f94;return dn(_0x2e755b)[_0x180cf1(0x1b6)](_0x7459d6=>fn(_0x7459d6)&&_0x7459d6['et']==='text-x');}function ln(_0x38686d){const _0x53eef4=_0x5c9f94;return dn(_0x38686d)[_0x53eef4(0x1b6)](_0x34ff2d=>Array[_0x53eef4(0x302)](_0x34ff2d)||typeof _0x34ff2d==_0x53eef4(0x2df)||typeof _0x34ff2d==_0x53eef4(0x240));}function un(_0x4bf517){const _0x5f59f5=_0x5c9f94;return dn(_0x4bf517)['some'](_0x5378a6=>!fn(_0x5378a6)||_0x5378a6['et']!==_0x5f59f5(0x248)||!Array[_0x5f59f5(0x302)](_0x5378a6['e'])?!0x1:_0x5378a6['e'][_0x5f59f5(0x1b6)](_0x421382=>!fn(_0x421382)||!fn(_0x421382[_0x5f59f5(0x234)])?!0x1:Object[_0x5f59f5(0x211)][_0x5f59f5(0x158)][_0x5f59f5(0x23e)](_0x421382[_0x5f59f5(0x234)],'tables')||Object[_0x5f59f5(0x211)]['hasOwnProperty'][_0x5f59f5(0x23e)](_0x421382[_0x5f59f5(0x234)],_0x5f59f5(0x351))||Object[_0x5f59f5(0x211)]['hasOwnProperty']['call'](_0x421382[_0x5f59f5(0x234)],_0x5f59f5(0x266))));}function dn(_0x222103){const _0x6bf5e4=_0x5c9f94;if(!Array['isArray'](_0x222103))return[];let _0x487c05=_0x222103[_0x6bf5e4(0x32d)](_0x6bf5e4(0x234))?_0x222103:_0x222103[_0x6bf5e4(0x16e)](_0x443635=>Array[_0x6bf5e4(0x302)](_0x443635)&&_0x443635[_0x6bf5e4(0x32d)](_0x6bf5e4(0x234)));if(!Array['isArray'](_0x487c05))return[];let _0x2d36d1=_0x487c05['indexOf'](_0x6bf5e4(0x234));return _0x2d36d1===-0x1?[]:_0x487c05[_0x6bf5e4(0x157)](_0x2d36d1+0x1);}function fn(_0x236a74){return typeof _0x236a74=='object'&&!!_0x236a74&&!Array['isArray'](_0x236a74);}function pn(_0x1b5e50,_0x52e178){const _0x43bb08=_0x5c9f94;let _0x3f6d34=new _0x1f4774(0x1);return setTimeout(()=>_0x3f6d34[_0x43bb08(0x3b1)](_0x52e178),_0x1b5e50),_0x3f6d34[_0x43bb08(0x190)]()[_0x43bb08(0x270)](_0xc0564d(0x1));}var mn,hn,gn;let _n=function(_0xcb944d){const _0x5b39a4=_0x5c9f94;return _0xcb944d[_0x5b39a4(0x2f0)]=_0x5b39a4(0x273),_0xcb944d[_0x5b39a4(0x1a2)]=_0x5b39a4(0x3b2),_0xcb944d[_0x5b39a4(0x1b1)]=_0x5b39a4(0x3a0),_0xcb944d[_0x5b39a4(0x256)]=_0x5b39a4(0x1a8),_0xcb944d[_0x5b39a4(0x269)]='awaiting_with_pending',_0xcb944d[_0x5b39a4(0x324)]='fetch_missing',_0xcb944d[_0x5b39a4(0x2be)]=_0x5b39a4(0x2d9),_0xcb944d[_0x5b39a4(0x398)]=_0x5b39a4(0x2e3),_0xcb944d;}({});const vn=0x4e20,yn=0x2bf20;var G=class{constructor(_0x4bce10,_0x50087a,_0x29e2e7,_0x2a4485,_0x515793,_0xc97578,_0x3026c9,_0x9518e4,_0x3a747b){const _0x752c=_0x5c9f94;this[_0x752c(0x24c)]=_0x4bce10,this['type']=_0x50087a,this[_0x752c(0x195)]=_0x515793,this[_0x752c(0x2a7)]=_0xc97578,this[_0x752c(0x33d)]=_0x3026c9,this[_0x752c(0x382)]=_0x9518e4,this['_localCacheService']=_0x3a747b,z(this,_0x752c(0x25c),null),z(this,_0x752c(0x322),[]),this[_0x752c(0x25c)]=_0x29e2e7,this[_0x752c(0x322)]=_0x2a4485;}[_0x5c9f94(0x34f)](_0x570486){const _0x54c16b=_0x5c9f94;let _0x1351d5=this[_0x54c16b(0x382)][_0x54c16b(0x18f)](this[_0x54c16b(0x24c)]);return _0x570486[_0x54c16b(0x2dd)]>_0x1351d5+0x1&&(this[_0x54c16b(0x195)][_0x54c16b(0x25b)]({'from':_0x1351d5,'to':_0x570486[_0x54c16b(0x2dd)]-0x1}),!0x0);}[_0x5c9f94(0x30e)](_0x562207){const _0x300c8d=_0x5c9f94;this[_0x300c8d(0x33d)]['transformUndoRedo'](this[_0x300c8d(0x24c)],_0x562207);}[_0x5c9f94(0x19d)](_0x462688){const _0x589fa3=_0x5c9f94;var _0x5ae928,_0x24b92c;(_0x5ae928=(_0x24b92c=this['_handler'])[_0x589fa3(0x252)])==null||_0x5ae928[_0x589fa3(0x23e)](_0x24b92c,_0x462688);}[_0x5c9f94(0x2a8)](_0x44162c){const _0x4d5f0d=_0x5c9f94;var _0x3559ad,_0x3b0b4b;return((_0x3559ad=(_0x3b0b4b=this[_0x4d5f0d(0x195)])[_0x4d5f0d(0x3ab)])==null?void 0x0:_0x3559ad[_0x4d5f0d(0x23e)](_0x3b0b4b,_0x44162c))??null;}[_0x5c9f94(0x35d)](_0x33401c){const _0x389883=_0x5c9f94;var _0x320a12,_0x2f0058;return(_0x320a12=(_0x2f0058=this[_0x389883(0x195)])[_0x389883(0x20c)])==null?void 0x0:_0x320a12[_0x389883(0x23e)](_0x2f0058,_0x33401c);}[_0x5c9f94(0x15b)](_0x152ca1){const _0x14d3c3=_0x5c9f94;var _0x1a0d40,_0x5896c6;return(_0x1a0d40=(_0x5896c6=this[_0x14d3c3(0x195)])['onTransformState'])==null?void 0x0:_0x1a0d40[_0x14d3c3(0x23e)](_0x5896c6,_0x152ca1);}[_0x5c9f94(0x31d)](_0x56ca94){const _0x1de4a3=_0x5c9f94;var _0x2f50a3,_0x29adcb;return((_0x2f50a3=(_0x29adcb=this[_0x1de4a3(0x195)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2f50a3[_0x1de4a3(0x23e)](_0x29adcb,_0x56ca94))??_0x56ca94;}[_0x5c9f94(0x2bc)](_0x1accde){const _0x5b0bb2=_0x5c9f94;var _0xed727a,_0x69f75b;return((_0xed727a=(_0x69f75b=this[_0x5b0bb2(0x195)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xed727a['call'](_0x69f75b,_0x1accde))??_0x1accde;}[_0x5c9f94(0x2ea)](_0x1588f7){const _0x209731=_0x5c9f94;if(this[_0x209731(0x34b)]===_0x2efadb[_0x209731(0x29a)]){let {unitID:_0x55702e,mutations:_0x6517bc,memberID:_0x1e0477}=_0x1588f7,_0x5b1477=_0x6517bc['length']>0x0?_0x6517bc[0x0][_0x209731(0x1a4)][_0x209731(0x161)]:[];if(Array[_0x209731(0x302)](_0x5b1477)&&_0x5b1477[_0x209731(0x2fd)]>0x0){var _0x294132,_0x20c974;(_0x294132=(_0x20c974=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x294132[_0x209731(0x23e)](_0x20c974,{'unitID':_0x55702e,'memberID':_0x1e0477,'textRanges':_0x5b1477});}}}['_updateLocalCache'](){const _0x597fef=_0x5c9f94;var _0x14ffb0;(_0x14ffb0=this[_0x597fef(0x255)])==null||_0x14ffb0[_0x597fef(0x3e9)](this['unitID'],this['type'],this[_0x597fef(0x25c)],this[_0x597fef(0x322)]);}[_0x5c9f94(0x268)](){const _0x2f714c=_0x5c9f94;return this[_0x2f714c(0x382)]['getCurrentRevOfUnit'](this[_0x2f714c(0x24c)]);}[_0x5c9f94(0x243)](){const _0x883f2f=_0x5c9f94;this[_0x883f2f(0x382)][_0x883f2f(0x2c0)](this[_0x883f2f(0x24c)]);}['_executeRemoteChangeset'](_0x48d164){const _0x6971bc=_0x5c9f94;let _0x4629dc=this[_0x6971bc(0x31d)](_0x48d164);_0x4629dc=this[_0x6971bc(0x2bc)](_0x4629dc);let _0x1c9d38=this[_0x6971bc(0x2a8)](_0x4629dc),_0x4ab338=_0x146494(_0x4629dc[_0x6971bc(0x202)],this[_0x6971bc(0x2a7)],{'fromCollab':!0x0});if(!_0x4ab338[_0x6971bc(0x1c3)])throw _0x1c9d38==null||_0x1c9d38[_0x6971bc(0x246)](),_0x4ab338[_0x6971bc(0x2dc)]instanceof Error?_0x4ab338[_0x6971bc(0x2dc)]:Error(_0x4ab338[_0x6971bc(0x2dc)]??'[CollaborationState]:\x20apply\x20error!');_0x1c9d38==null||_0x1c9d38[_0x6971bc(0x2cb)](),this['_transformIMECache'](_0x4629dc),this[_0x6971bc(0x15b)](_0x4629dc),this[_0x6971bc(0x30e)](_0x48d164),this['_transformSelections'](_0x4629dc),this[_0x6971bc(0x2ea)](_0x4629dc),this[_0x6971bc(0x243)]();}};let K=class extends G{constructor(_0x79544f,_0x24400a,_0x2d5e6a,_0x3ba05a,_0x2c7804,_0x4afb28,_0x404493,_0x5cccba,_0x1cb532,_0x58d876){const _0x449912=_0x5c9f94;super(_0x79544f,_0x24400a,null,[],_0x2d5e6a,_0x404493,_0x4afb28,_0x3ba05a,_0x58d876),this['_injector']=_0x2c7804,this[_0x449912(0x26a)]=_0x5cccba,this[_0x449912(0x364)]=_0x1cb532,this[_0x449912(0x35e)]=_0x58d876,z(this,_0x449912(0x1a0),'synced');}[_0x5c9f94(0x254)](_0x29e652){const _0x1baca9=_0x5c9f94;let _0x405991=this[_0x1baca9(0x3eb)][_0x1baca9(0x2c8)](q,this[_0x1baca9(0x24c)],this[_0x1baca9(0x34b)],[_0x29e652],this['_handler']);return _0x405991['_schedule'](),_0x405991[_0x1baca9(0x2c7)](),_0x405991;}[_0x5c9f94(0x387)](_0x25449c){const _0x511b47=_0x5c9f94;if(this['_checkMissing'](_0x25449c))return this['_injector']['createInstance'](Q,this['unitID'],this[_0x511b47(0x34b)],null,[],null,[_0x25449c],this[_0x511b47(0x195)]);try{let _0x7a27e=this[_0x511b47(0x364)][_0x511b47(0x32f)](_0x25449c,[_0x2b1099]);if(_0x2c24b6(_0x7a27e)){let {c1Prime:_0x417a02}=_0x7a27e;return this['_executeRemoteChangeset'](_0x417a02),this;}throw _0x7a27e[_0x511b47(0x2dc)];}catch(_0x1edb98){return this[_0x511b47(0x26a)][_0x511b47(0x2dc)](_0x1edb98),this[_0x511b47(0x31e)](!0x1);}}[_0x5c9f94(0x31e)](_0x2ea01c){const _0xbd5c90=_0x5c9f94;return this[_0xbd5c90(0x3eb)][_0xbd5c90(0x2c8)](X,this[_0xbd5c90(0x24c)],this[_0xbd5c90(0x34b)],null,[],this[_0xbd5c90(0x195)],_0x2ea01c);}[_0x5c9f94(0x354)](_0x77cb40){const _0x4f5300=_0x5c9f94;if(_0x77cb40[_0x4f5300(0x2dd)]<=this[_0x4f5300(0x268)]())return this;throw Error(_0x4f5300(0x3b0));}[_0x5c9f94(0x1e6)](){const _0x51e99e=_0x5c9f94;throw Error(_0x51e99e(0x2d2));}[_0x5c9f94(0x3c1)](){return this;}[_0x5c9f94(0x3aa)](){const _0x694fdd=_0x5c9f94;return this[_0x694fdd(0x3eb)][_0x694fdd(0x2c8)](Z,this[_0x694fdd(0x24c)],this[_0x694fdd(0x34b)],null,[],this[_0x694fdd(0x195)]);}[_0x5c9f94(0x281)](){return this;}['resend'](){const _0x3b1e33=_0x5c9f94;throw Error(_0x3b1e33(0x1e4));}[_0x5c9f94(0x231)](){const _0x214fa1=_0x5c9f94;let _0x1168fe=this['_revisionService'][_0x214fa1(0x18f)](this['unitID']);return this[_0x214fa1(0x195)][_0x214fa1(0x25b)]({'from':_0x1168fe,'to':0x0}),this[_0x214fa1(0x3eb)][_0x214fa1(0x2c8)](Q,this[_0x214fa1(0x24c)],this[_0x214fa1(0x34b)],null,[],null,[],this['_handler']);}};K=H([V(0x3,_0xcf8d3f(_0x9b85a2)),V(0x4,_0xcf8d3f(_0x19ff28)),V(0x5,_0x34c2a3),V(0x6,_0x397ef7),V(0x7,_0x3981ee),V(0x8,_0x173ca8),V(0x9,_0x1da68f(U))],K);let q=mn=class extends G{constructor(_0x264024,_0x1572cc,_0x2d44ff,_0x4900b7,_0x3061a9,_0x4a381e,_0x5cf223,_0x3ce401,_0x47e56a,_0x4440b3,_0x289a3b,_0x5974a6,_0x47093,_0x57eb37){const _0x2be123=_0x5c9f94;super(_0x264024,_0x1572cc,null,_0x2d44ff,_0x4900b7,_0x47e56a,_0x47093,_0x4a381e,_0x57eb37),this[_0x2be123(0x3eb)]=_0x3061a9,this[_0x2be123(0x2b8)]=_0x5cf223,this['_logService']=_0x3ce401,this[_0x2be123(0x323)]=_0x4440b3,this['_transformService']=_0x289a3b,this['_univerInstanceService']=_0x5974a6,z(this,_0x2be123(0x1a0),_0x2be123(0x3a0)),z(this,_0x2be123(0x2ac),null),z(this,_0x2be123(0x2c2),null);}[_0x5c9f94(0x254)](_0x558834){const _0x316545=_0x5c9f94;return this['_pendingMutations'][_0x316545(0x26f)](_0x558834),this[_0x316545(0x2c7)](),this;}[_0x5c9f94(0x387)](_0x32215d){const _0xa1113d=_0x5c9f94;if(this[_0xa1113d(0x34f)](_0x32215d))return this[_0xa1113d(0x35a)](),this[_0xa1113d(0x3eb)][_0xa1113d(0x2c8)](Q,this[_0xa1113d(0x24c)],this[_0xa1113d(0x34b)],null,this[_0xa1113d(0x322)],null,[_0x32215d],this[_0xa1113d(0x195)]);try{let _0x518f11=this[_0xa1113d(0x364)][_0xa1113d(0x32f)](_0x32215d,this[_0xa1113d(0x322)]);if(_0x2c24b6(_0x518f11)){let {c1Prime:_0x2683c2,m2Prime:_0x4ced46}=_0x518f11;this[_0xa1113d(0x349)](_0x2683c2);let _0x1caba2=this[_0xa1113d(0x3eb)][_0xa1113d(0x2c8)](mn,this['unitID'],this[_0xa1113d(0x34b)],_0x4ced46,this[_0xa1113d(0x195)]);this[_0xa1113d(0x35a)]();let _0x172e56=new Date()['getTime'](),_0x5c8b80=this[_0xa1113d(0x2ac)]?Math[_0xa1113d(0x30d)](this[_0xa1113d(0x2ac)]-_0x172e56,0x0):this[_0xa1113d(0x2e2)]();return _0x1caba2[_0xa1113d(0x3ee)](_0x5c8b80),_0x1caba2;}throw _0x518f11[_0xa1113d(0x2dc)];}catch(_0x5c554a){return this[_0xa1113d(0x26a)][_0xa1113d(0x2dc)](_0x5c554a),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x3e551a){const _0x540554=_0x5c9f94;if(_0x3e551a[_0x540554(0x2dd)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5c9f94(0x1e6)](){const _0x33e914=_0x5c9f94;throw Error(_0x33e914(0x197));}['onRemoteRetry'](){return this;}[_0x5c9f94(0x3aa)](){const _0x244619=_0x5c9f94;return this[_0x244619(0x35a)](),this['_injector']['createInstance'](Z,this['unitID'],this[_0x244619(0x34b)],null,this[_0x244619(0x322)],this[_0x244619(0x195)]);}['toggleOnline'](){return this;}[_0x5c9f94(0x3ee)](_0x8e936d){const _0x3ba351=_0x5c9f94;let _0x557d2d=_0x8e936d??this[_0x3ba351(0x2e2)]();this[_0x3ba351(0x2ac)]=new Date()[_0x3ba351(0x356)]()+_0x557d2d,this[_0x3ba351(0x2c2)]=setTimeout(()=>{const _0xbfefb9=_0x3ba351;this[_0xbfefb9(0x35a)]();let _0x122051=null;switch(this[_0xbfefb9(0x34b)]){case _0x2efadb[_0xbfefb9(0x21d)]:_0x122051=en(this['_pendingMutations'],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this[_0xbfefb9(0x382)],this['_userManagerService']);break;case _0x2efadb[_0xbfefb9(0x29a)]:_0x122051=this[_0xbfefb9(0x322)][_0xbfefb9(0x340)](_0x1b079f=>_0x1b079f['id']===_0x5b44a5['id'])?rn(this['_pendingMutations'],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]):en(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this['_univerInstanceService'],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x1d3)]:_0x122051=nn(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this['_revisionService'],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x29f)]:_0x122051=tn(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x3ed)]:_0x122051=en(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this['_univerInstanceService'],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x3a6)]:_0x122051=en(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this['_univerInstanceService'],this['_revisionService'],this[_0xbfefb9(0x2b8)]);break;default:throw Error(_0xbfefb9(0x184)+this[_0xbfefb9(0x34b)]+'\x20in\x20_schedule.');}let {changeset:_0x3c0851,pendingMutations:_0x276bd4}=_0x122051;this[_0xbfefb9(0x195)][_0xbfefb9(0x18c)](_0x3c0851);let _0x3be906=_0x276bd4[_0xbfefb9(0x2fd)]?this[_0xbfefb9(0x3eb)][_0xbfefb9(0x2c8)](Y,this['unitID'],this[_0xbfefb9(0x34b)],_0x3c0851,_0x276bd4,this['_handler'],void 0x0):this[_0xbfefb9(0x3eb)][_0xbfefb9(0x2c8)](J,this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x34b)],_0x3c0851,this[_0xbfefb9(0x195)]);_0x3be906[_0xbfefb9(0x2c7)](),this[_0xbfefb9(0x195)][_0xbfefb9(0x1cd)](this,_0x3be906);},_0x557d2d);}[_0x5c9f94(0x2e2)](){const _0x2d0eb6=_0x5c9f94;let _0xde50d=this[_0x2d0eb6(0x323)]['getConfig'](R);return(_0xde50d==null?void 0x0:_0xde50d[_0x2d0eb6(0x170)])??0x7d0;}[_0x5c9f94(0x3e7)](){const _0x2a715d=_0x5c9f94;throw Error(_0x2a715d(0x21f));}[_0x5c9f94(0x35a)](){const _0x122a41=_0x5c9f94;this[_0x122a41(0x2c2)]!=null&&(clearTimeout(this[_0x122a41(0x2c2)]),this['_sendingTimer']=null);}[_0x5c9f94(0x31e)](_0x17d8ac){const _0x28e232=_0x5c9f94;return this[_0x28e232(0x35a)](),this['_injector'][_0x28e232(0x2c8)](X,this[_0x28e232(0x24c)],this[_0x28e232(0x34b)],null,this[_0x28e232(0x322)],this[_0x28e232(0x195)],_0x17d8ac);}};q=mn=H([V(0x4,_0xcf8d3f(_0x19ff28)),V(0x5,_0xcf8d3f(_0x9b85a2)),V(0x6,_0xcf8d3f(_0x2caeff)),V(0x7,_0x3981ee),V(0x8,_0x397ef7),V(0x9,_0xf41dc9),V(0xa,_0x173ca8),V(0xb,_0x4c5cd7),V(0xc,_0x34c2a3),V(0xd,_0x1da68f(U))],q);let J=hn=class extends G{constructor(_0x4825e2,_0xd58ebf,_0x4e608c,_0x17e2ee,_0x49e856,_0x23bd21,_0x5ec9a8,_0x4d17ed,_0x4346a1,_0x2597fa,_0x7d8c7a){const _0x4bdaf2=_0x5c9f94;super(_0x4825e2,_0xd58ebf,_0x4e608c,[],_0x17e2ee,_0x5ec9a8,_0x2597fa,_0x23bd21,_0x7d8c7a),this[_0x4bdaf2(0x3eb)]=_0x49e856,this['_logService']=_0x4d17ed,this[_0x4bdaf2(0x364)]=_0x4346a1,z(this,_0x4bdaf2(0x1a0),_0x4bdaf2(0x1a8)),z(this,'_resendTimeout',0x0),z(this,_0x4bdaf2(0x1fc),0x0),z(this,'_resendTimer',void 0x0),z(this,_0x4bdaf2(0x297),void 0x0);}['appendMutation'](_0xd297b2){const _0x11cdb9=_0x5c9f94;this[_0x11cdb9(0x35a)]();let _0x389798=this[_0x11cdb9(0x3eb)][_0x11cdb9(0x2c8)](Y,this[_0x11cdb9(0x24c)],this['type'],this[_0x11cdb9(0x25c)],[_0xd297b2],this['_handler'],this[_0x11cdb9(0x15c)]);return _0x389798['_updateLocalCache'](),_0x389798;}[_0x5c9f94(0x387)](_0x7d9915){const _0x4a7d33=_0x5c9f94;if(this[_0x4a7d33(0x34f)](_0x7d9915))return this[_0x4a7d33(0x35a)](),this[_0x4a7d33(0x3eb)]['createInstance'](Q,this[_0x4a7d33(0x24c)],this[_0x4a7d33(0x34b)],this[_0x4a7d33(0x25c)],[],null,[_0x7d9915],this[_0x4a7d33(0x195)]);try{let _0x567244=this[_0x4a7d33(0x364)][_0x4a7d33(0x26d)]([_0x7d9915],[this['_awaitingChangeset']],!0x1);if(_0x31eeb1(_0x567244)){let {c1Prime:_0x4fa909,c2Prime:_0x509931}=_0x567244;this[_0x4a7d33(0x349)](_0x4fa909[0x0]),_0x509931[0x0][_0x4a7d33(0x2c4)]=this[_0x4a7d33(0x268)](),this['_clearScheduledTask']();let _0x1704d3=this[_0x4a7d33(0x3eb)][_0x4a7d33(0x2c8)](hn,this['unitID'],this[_0x4a7d33(0x34b)],_0x509931[0x0],this['_handler']);return _0x1704d3[_0x4a7d33(0x2c7)](),_0x1704d3;}throw _0x567244[_0x4a7d33(0x2dc)];}catch(_0x218f9c){return this[_0x4a7d33(0x26a)][_0x4a7d33(0x2dc)](_0x218f9c),this[_0x4a7d33(0x31e)](!0x1);}}['onRemoteAck'](_0x1179c4){const _0xe57052=_0x5c9f94;this[_0xe57052(0x35a)]();let _0x15e74a=this[_0xe57052(0x382)]['getCurrentRevOfUnit'](this[_0xe57052(0x24c)]);if(_0x1179c4['revision']<=_0x15e74a)return this;if(this[_0xe57052(0x34f)](_0x1179c4))return this['_injector'][_0xe57052(0x2c8)](Q,this['unitID'],this[_0xe57052(0x34b)],this[_0xe57052(0x25c)],[],_0x1179c4[_0xe57052(0x2dd)],[],this[_0xe57052(0x195)]);this[_0xe57052(0x243)]();let _0x231e37=this[_0xe57052(0x3eb)][_0xe57052(0x2c8)](K,this[_0xe57052(0x24c)],this['type'],this[_0xe57052(0x195)]);return _0x231e37['_updateLocalCache'](),_0x231e37;}[_0x5c9f94(0x1e6)](_0x1fbf7a){const _0x49d023=_0x5c9f94;return this[_0x49d023(0x31e)](!!(_0x1fbf7a!=null&&_0x1fbf7a[_0x49d023(0x2da)]));}[_0x5c9f94(0x3c1)](_0x198d92){const _0x4f9333=_0x5c9f94;return this[_0x4f9333(0x1fc)]>yn?this[_0x4f9333(0x3aa)]():(this[_0x4f9333(0x15c)]=pn(this[_0x4f9333(0x36a)],{'timeout':this[_0x4f9333(0x36a)],'reqId':_0x198d92['reqId']}),this['_sender']=this[_0x4f9333(0x15c)][_0x4f9333(0x168)](({reqId:_0x1e5818,timeout:_0x1975a9})=>{this['_resendWithTimeout'](_0x1e5818,_0x1975a9);}),this);}[_0x5c9f94(0x3aa)](){const _0x5d8a3e=_0x5c9f94;return this[_0x5d8a3e(0x35a)](),this[_0x5d8a3e(0x3eb)][_0x5d8a3e(0x2c8)](Z,this[_0x5d8a3e(0x24c)],this['type'],this['_awaitingChangeset'],[],this[_0x5d8a3e(0x195)]);}['toggleOnline'](){return this;}[_0x5c9f94(0x3e7)](){const _0x3bb331=_0x5c9f94;this[_0x3bb331(0x195)][_0x3bb331(0x18c)](this[_0x3bb331(0x25c)]);}[_0x5c9f94(0x31e)](_0x349dff){const _0x2d3019=_0x5c9f94;return this['_clearScheduledTask'](),this[_0x2d3019(0x3eb)][_0x2d3019(0x2c8)](X,this[_0x2d3019(0x24c)],this[_0x2d3019(0x34b)],this[_0x2d3019(0x25c)],[],this[_0x2d3019(0x195)],_0x349dff);}[_0x5c9f94(0x271)](_0x2a6216,_0x42eea2){const _0x18a4d8=_0x5c9f94;var _0xa0fbcb;_0x2a6216===((_0xa0fbcb=this['_awaitingChangeset'])==null?void 0x0:_0xa0fbcb['reqId'])&&(this[_0x18a4d8(0x3e7)](),this[_0x18a4d8(0x36a)]=_0x42eea2===0x0?0x3e8:Math[_0x18a4d8(0x290)](_0x42eea2*0x2,vn),this[_0x18a4d8(0x1fc)]+=this[_0x18a4d8(0x36a)]);}['_clearScheduledTask'](){const _0x9e3a38=_0x5c9f94;var _0x2e3c91;(_0x2e3c91=this[_0x9e3a38(0x297)])==null||_0x2e3c91[_0x9e3a38(0x20f)](),this[_0x9e3a38(0x36a)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};function _0x4bc2(_0x277a3e,_0x22bb80){_0x277a3e=_0x277a3e-0x137;const _0x3253af=_0x3253();let _0x4bc23b=_0x3253af[_0x277a3e];return _0x4bc23b;}J=hn=H([V(0x4,_0xcf8d3f(_0x19ff28)),V(0x5,_0xcf8d3f(_0x9b85a2)),V(0x6,_0x397ef7),V(0x7,_0x3981ee),V(0x8,_0x173ca8),V(0x9,_0x34c2a3),V(0xa,_0x1da68f(U))],J);let Y=gn=class extends G{constructor(_0x4ddec4,_0x3c9482,_0x3b786f,_0x34c3f0,_0x511a5f,_0xe6b969,_0x33280f,_0x1be969,_0x348cc2,_0x47e87e,_0x1ad009,_0x20361e,_0x170ad2){const _0x979912=_0x5c9f94;super(_0x4ddec4,_0x3c9482,_0x3b786f,_0x34c3f0,_0x511a5f,_0x348cc2,_0x20361e,_0x1be969,_0x170ad2),this[_0x979912(0x3eb)]=_0x33280f,this[_0x979912(0x26a)]=_0x47e87e,this[_0x979912(0x364)]=_0x1ad009,this[_0x979912(0x35e)]=_0x170ad2,z(this,_0x979912(0x1a0),'awaiting_with_pending'),z(this,_0x979912(0x36a),0x0),z(this,'_maxTotalRetryTimeout',0x0),z(this,_0x979912(0x15c),void 0x0),z(this,'_sender',void 0x0),_0xe6b969&&(this[_0x979912(0x15c)]=_0xe6b969,this['_sender']=this[_0x979912(0x15c)]['subscribe'](({reqId:_0x5c98a2,timeout:_0x3ce95f})=>{this['_resendWithTimeout'](_0x5c98a2,_0x3ce95f);}));}[_0x5c9f94(0x254)](_0x36cf9b){const _0xbcc1a0=_0x5c9f94;return this[_0xbcc1a0(0x322)][_0xbcc1a0(0x26f)](_0x36cf9b),this;}[_0x5c9f94(0x387)](_0x5e35ac){const _0x2a17c6=_0x5c9f94;if(this[_0x2a17c6(0x34f)](_0x5e35ac))return this['_clearScheduledTask'](),this['_injector']['createInstance'](Q,this['unitID'],this[_0x2a17c6(0x34b)],this[_0x2a17c6(0x25c)],this['_pendingMutations'],null,[_0x5e35ac],this[_0x2a17c6(0x195)]);try{let _0x5948fe=this[_0x2a17c6(0x364)][_0x2a17c6(0x26d)]([_0x5e35ac],[this[_0x2a17c6(0x25c)]],!0x1);if(_0x31eeb1(_0x5948fe)){let {c1Prime:_0x53ff47,c2Prime:_0x51b24c}=_0x5948fe,_0x1ee8e0=this['_transformService'][_0x2a17c6(0x32f)](_0x53ff47[0x0],this[_0x2a17c6(0x322)]);if(_0x2c24b6(_0x1ee8e0)){let {c1Prime:_0x39627d,m2Prime:_0x59023a}=_0x1ee8e0;return this[_0x2a17c6(0x349)](_0x39627d),_0x51b24c[0x0][_0x2a17c6(0x2c4)]=this[_0x2a17c6(0x268)](),this[_0x2a17c6(0x35a)](),this[_0x2a17c6(0x3eb)]['createInstance'](gn,this[_0x2a17c6(0x24c)],this['type'],_0x51b24c[0x0],_0x59023a,this[_0x2a17c6(0x195)],void 0x0);}throw _0x1ee8e0[_0x2a17c6(0x2dc)];}throw _0x5948fe['error'];}catch(_0x325758){return this['_logService'][_0x2a17c6(0x2dc)](_0x325758),this[_0x2a17c6(0x31e)](!0x1);}}[_0x5c9f94(0x354)](_0x2ef9a8){const _0x40ed69=_0x5c9f94;this['_clearScheduledTask']();let _0x346aca=this[_0x40ed69(0x268)]();if(_0x2ef9a8[_0x40ed69(0x2dd)]<=_0x346aca)return this;if(this['_checkMissing'](_0x2ef9a8))return this[_0x40ed69(0x3eb)][_0x40ed69(0x2c8)](Q,this[_0x40ed69(0x24c)],this[_0x40ed69(0x34b)],this[_0x40ed69(0x25c)],this[_0x40ed69(0x322)],_0x2ef9a8['revision'],[],this[_0x40ed69(0x195)]);this[_0x40ed69(0x243)]();let _0xc2c6b7=this[_0x40ed69(0x3eb)][_0x40ed69(0x2c8)](q,this['unitID'],this[_0x40ed69(0x34b)],this['_pendingMutations'],this[_0x40ed69(0x195)]);return _0xc2c6b7[_0x40ed69(0x3ee)](),_0xc2c6b7[_0x40ed69(0x2c7)](),_0xc2c6b7;}['onRemoteRej'](_0x3a769d){const _0x50a782=_0x5c9f94;return this[_0x50a782(0x31e)](!!(_0x3a769d!=null&&_0x3a769d[_0x50a782(0x2da)]));}[_0x5c9f94(0x3c1)](_0x5e3075){const _0x120b18=_0x5c9f94;return this['_maxTotalRetryTimeout']>yn?this[_0x120b18(0x3aa)]():(this[_0x120b18(0x15c)]=pn(this[_0x120b18(0x36a)],{'timeout':this[_0x120b18(0x36a)],'reqId':_0x5e3075[_0x120b18(0x1f8)]}),this[_0x120b18(0x297)]=this[_0x120b18(0x15c)]['subscribe'](({reqId:_0x10eef6,timeout:_0x209bd4})=>{const _0x416576=_0x120b18;this[_0x416576(0x271)](_0x10eef6,_0x209bd4);}),this);}[_0x5c9f94(0x3aa)](){const _0x49bbf4=_0x5c9f94;return this[_0x49bbf4(0x35a)](),this[_0x49bbf4(0x3eb)]['createInstance'](Z,this[_0x49bbf4(0x24c)],this[_0x49bbf4(0x34b)],this[_0x49bbf4(0x25c)],this[_0x49bbf4(0x322)],this[_0x49bbf4(0x195)]);}[_0x5c9f94(0x281)](){return this;}[_0x5c9f94(0x3e7)](){const _0x1595ca=_0x5c9f94;this[_0x1595ca(0x195)]['onSendChangeset'](this[_0x1595ca(0x25c)]);}[_0x5c9f94(0x31e)](_0x572639){const _0x56ccf4=_0x5c9f94;return this[_0x56ccf4(0x35a)](),this[_0x56ccf4(0x3eb)]['createInstance'](X,this['unitID'],this['type'],null,this[_0x56ccf4(0x322)],this[_0x56ccf4(0x195)],_0x572639);}[_0x5c9f94(0x271)](_0xc96070,_0x32b2c9){const _0x370083=_0x5c9f94;var _0x464f0e;_0xc96070===((_0x464f0e=this[_0x370083(0x25c)])==null?void 0x0:_0x464f0e['reqId'])&&(this[_0x370083(0x3e7)](),this['_resendTimeout']=_0x32b2c9===0x0?0x3e8:Math['min'](_0x32b2c9*0x2,vn),this[_0x370083(0x1fc)]+=this[_0x370083(0x36a)]);}[_0x5c9f94(0x35a)](){const _0xe233d=_0x5c9f94;var _0x2c4b5b;(_0x2c4b5b=this[_0xe233d(0x297)])==null||_0x2c4b5b[_0xe233d(0x20f)](),this[_0xe233d(0x36a)]=0x0,this[_0xe233d(0x1fc)]=0x0;}};Y=gn=H([V(0x6,_0xcf8d3f(_0x19ff28)),V(0x7,_0xcf8d3f(_0x9b85a2)),V(0x8,_0x397ef7),V(0x9,_0x3981ee),V(0xa,_0x173ca8),V(0xb,_0x34c2a3),V(0xc,_0x1da68f(U))],Y);let X=class extends G{constructor(_0x13d91e,_0x4edb28,_0x23d1fa,_0x5c8200,_0x5b2c3f,_0x4fab0e=!0x1,_0x35eb96,_0x232867,_0x562c65,_0x9c0e8e,_0x228014,_0x15c5cb,_0x5494b7){const _0x385b08=_0x5c9f94;super(_0x13d91e,_0x4edb28,_0x23d1fa,_0x5c8200,_0x5b2c3f,_0x232867,_0x562c65,_0x9c0e8e,_0x5494b7),this[_0x385b08(0x338)]=_0x4fab0e,this[_0x385b08(0x150)]=_0x35eb96,this[_0x385b08(0x205)]=_0x228014,this['_collaborationUIEventService']=_0x15c5cb,this[_0x385b08(0x35e)]=_0x5494b7,z(this,_0x385b08(0x1a0),_0x385b08(0x2d9)),this['_disableEditing'](),this['_showConflictProcessingNotification'](),this[_0x385b08(0x3dd)]();}[_0x5c9f94(0x254)](){return this;}[_0x5c9f94(0x387)](){return this;}['onRemoteAck'](){return this;}[_0x5c9f94(0x1e6)](){return this;}[_0x5c9f94(0x3c1)](){return this;}[_0x5c9f94(0x3aa)](){return this;}[_0x5c9f94(0x281)](){return this;}[_0x5c9f94(0x3e7)](){const _0x18a89f=_0x5c9f94;throw Error(_0x18a89f(0x339));}async[_0x5c9f94(0x3dd)](){const _0x125b15=_0x5c9f94;var _0x277f0e,_0x5c32a5;await((_0x277f0e=this[_0x125b15(0x255)])==null||(_0x5c32a5=_0x277f0e[_0x125b15(0x28e)])==null?void 0x0:_0x5c32a5[_0x125b15(0x23e)](_0x277f0e,this['unitID'],'conflict')[_0x125b15(0x3e1)](()=>void 0x0));try{var _0x938a72;await((_0x938a72=this[_0x125b15(0x255)])==null?void 0x0:_0x938a72[_0x125b15(0x1fe)](this[_0x125b15(0x24c)]));}catch{this[_0x125b15(0x143)][_0x125b15(0x3a8)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x125b15(0x24c)]});return;}this[_0x125b15(0x3d5)]();}[_0x5c9f94(0x1bb)](){const _0x2c8a54=_0x5c9f94;this['_collaborationUIEventService'][_0x2c8a54(0x3a8)]({'id':'CONFLICT_PROCESSING'});}[_0x5c9f94(0x3d5)](){const _0x2673be=_0x5c9f94;this[_0x2673be(0x338)]?this[_0x2673be(0x143)]['emitEvent']({'id':_0x2673be(0x1c5)}):this[_0x2673be(0x143)][_0x2673be(0x3a8)]({'id':'CONFLICT'});}[_0x5c9f94(0x37f)](){const _0x5d157e=_0x5c9f94;this[_0x5d157e(0x150)][_0x5d157e(0x285)](new _0x350235(this['unitID'])['id'],!0x1);}};X=H([V(0x6,_0xcf8d3f(_0x30415d)),V(0x7,_0x397ef7),V(0x8,_0x34c2a3),V(0x9,_0xcf8d3f(_0x9b85a2)),V(0xa,_0xcf8d3f(_0x5c6337)),V(0xb,_0xcf8d3f(B)),V(0xc,_0x1da68f(U))],X);let Z=class extends G{constructor(_0x44e3e5,_0x185235,_0x3ec78f,_0x557d95,_0x5e9c84,_0x4588c1,_0x31ecbd,_0x5821c9,_0x1bcdc2,_0x571d8d){const _0x36dc7c=_0x5c9f94;super(_0x44e3e5,_0x185235,_0x3ec78f,_0x557d95,_0x5e9c84,_0x5821c9,_0x1bcdc2,_0x31ecbd,_0x571d8d),this[_0x36dc7c(0x3eb)]=_0x4588c1,z(this,_0x36dc7c(0x1a0),_0x36dc7c(0x2e3));}[_0x5c9f94(0x254)](_0x594e91){const _0x1f7e47=_0x5c9f94;return this[_0x1f7e47(0x322)][_0x1f7e47(0x26f)](_0x594e91),this[_0x1f7e47(0x2c7)](),this;}['onRemoteChangeset'](_0x19e821){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x5c9f94(0x354)](){const _0x3f38f8=_0x5c9f94;throw Error(_0x3f38f8(0x383));}[_0x5c9f94(0x1e6)](){const _0x12523a=_0x5c9f94;throw Error(_0x12523a(0x216));}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x5c9f94(0x281)](){const _0x1500a4=_0x5c9f94;let {_injector:_0xa80653,_pendingMutations:_0x41724e,_awaitingChangeset:_0x3efe65,unitID:_0x1c71ec,_handler:_0x332298,type:_0x2e9729}=this,_0x1e5c54=bn(_0xa80653,_0x1c71ec,_0x2e9729,_0x3efe65,_0x41724e,_0x332298);return _0x1e5c54 instanceof q?_0x1e5c54['_schedule']():(_0x1e5c54 instanceof Y||_0x1e5c54 instanceof J)&&_0x1e5c54[_0x1500a4(0x3e7)](),_0x1e5c54;}[_0x5c9f94(0x3e7)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Z=H([V(0x5,_0xcf8d3f(_0x19ff28)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0x397ef7),V(0x8,_0x34c2a3),V(0x9,_0x1da68f(U))],Z);let Q=class extends G{constructor(_0x20dd7a,_0x283789,_0x22294e,_0x53e821,_0x11310d,_0x2c27b0,_0x40e4f3,_0x27ee2b,_0x33e7d3,_0x386f94,_0x2dbbb0,_0x5957c1,_0xa4894f,_0x5de5e7){const _0x5c9509=_0x5c9f94;super(_0x20dd7a,_0x283789,_0x22294e,_0x53e821,_0x40e4f3,_0x2dbbb0,_0x5957c1,_0x33e7d3,_0x5de5e7),this[_0x5c9509(0x3bd)]=_0x11310d,this['_queuedRemoteChangesets']=_0x2c27b0,this['_injector']=_0x27ee2b,this['_logService']=_0x386f94,this['_transformService']=_0xa4894f,this['localCacheService']=_0x5de5e7,z(this,_0x5c9509(0x1a0),'fetch_missing');}[_0x5c9f94(0x27e)](_0x2f3868){const _0x138f4e=_0x5c9f94;try{if(this['_handleRemoteChangesets'](_0x2f3868)['missingChangesets'])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x138f4e(0x291)]([...this[_0x138f4e(0x221)]][_0x138f4e(0x249)]((_0x22f29e,_0x426abf)=>_0x22f29e['revision']-_0x426abf[_0x138f4e(0x2dd)]))[_0x138f4e(0x1e2)])return this[_0x138f4e(0x221)]=[],this['_updateLocalCache'](),this[_0x138f4e(0x195)][_0x138f4e(0x25b)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xf8c8d9=this[_0x138f4e(0x25c)],_0x5e48ef=this[_0x138f4e(0x322)],_0x25bf4e;if(_0xf8c8d9&&_0x5e48ef[_0x138f4e(0x2fd)]!==0x0)_0x25bf4e=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](Y,this['unitID'],this[_0x138f4e(0x34b)],_0xf8c8d9,_0x5e48ef,this[_0x138f4e(0x195)],void 0x0);else{if(_0xf8c8d9&&_0x5e48ef[_0x138f4e(0x2fd)]===0x0)_0xf8c8d9[_0x138f4e(0x2c4)]=this[_0x138f4e(0x268)](),_0x25bf4e=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](J,this[_0x138f4e(0x24c)],this[_0x138f4e(0x34b)],_0xf8c8d9,this['_handler']);else{if(_0x5e48ef[_0x138f4e(0x2fd)]!==0x0){let _0x28ace3=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](q,this[_0x138f4e(0x24c)],this[_0x138f4e(0x34b)],_0x5e48ef,this[_0x138f4e(0x195)]);_0x28ace3[_0x138f4e(0x3ee)](),_0x25bf4e=_0x28ace3;}else _0x25bf4e=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](K,this[_0x138f4e(0x24c)],this[_0x138f4e(0x34b)],this['_handler']);}}return _0x25bf4e[_0x138f4e(0x2c7)](),_0x25bf4e;}catch(_0x58de83){return this[_0x138f4e(0x26a)][_0x138f4e(0x2dc)]('[FetchMissState]',_0x138f4e(0x36b),_0x58de83),this['_injector'][_0x138f4e(0x2c8)](X,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x138f4e(0x322)],this[_0x138f4e(0x195)],!0x1);}}[_0x5c9f94(0x291)](_0x299f76){const _0x4cc3b6=_0x5c9f94;this[_0x4cc3b6(0x151)]();for(let _0x2a5030=0x0;_0x2a5030<_0x299f76[_0x4cc3b6(0x2fd)];_0x2a5030++){let _0xd99cfa=_0x299f76[_0x2a5030],_0x493d98=this[_0x4cc3b6(0x268)]();if(!(_0xd99cfa[_0x4cc3b6(0x2dd)]<=_0x493d98)){if(_0xd99cfa[_0x4cc3b6(0x2dd)]>_0x493d98+0x1)return{'missingChangesets':!0x0};if(this[_0x4cc3b6(0x272)](_0xd99cfa)){this[_0x4cc3b6(0x193)]();continue;}this[_0x4cc3b6(0x2c9)](_0xd99cfa),this[_0x4cc3b6(0x151)]();}}return{'missingChangesets':!0x1};}[_0x5c9f94(0x2c9)](_0x5b20a5){const _0x5af20c=_0x5c9f94;let _0x3ccfff=_0x5b20a5,_0x2c496a=this[_0x5af20c(0x25c)];if(_0x2c496a){let _0x18cc62=this['_transformService']['transformChangesets']([_0x5b20a5],[_0x2c496a],!0x1);if(!_0x31eeb1(_0x18cc62))throw _0x18cc62[_0x5af20c(0x2dc)];_0x3ccfff=_0x18cc62[_0x5af20c(0x2d3)][0x0],_0x2c496a=_0x18cc62[_0x5af20c(0x227)][0x0];}let _0x160f5d=this[_0x5af20c(0x322)];if(_0x160f5d[_0x5af20c(0x2fd)]){let _0x3d5417=this[_0x5af20c(0x364)][_0x5af20c(0x32f)](_0x3ccfff,_0x160f5d);if(!_0x2c24b6(_0x3d5417))throw _0x3d5417[_0x5af20c(0x2dc)];_0x3ccfff=_0x3d5417['c1Prime'],_0x160f5d=_0x3d5417[_0x5af20c(0x1ab)];}this[_0x5af20c(0x349)](_0x3ccfff),_0x2c496a&&(_0x2c496a[_0x5af20c(0x2c4)]=this[_0x5af20c(0x268)]()),this[_0x5af20c(0x25c)]=_0x2c496a,this[_0x5af20c(0x322)]=_0x160f5d;}[_0x5c9f94(0x151)](){const _0x5dd30a=_0x5c9f94;if(!this[_0x5dd30a(0x25c)]||this[_0x5dd30a(0x3bd)]==null)return;let _0x289903=this[_0x5dd30a(0x268)]();if(this[_0x5dd30a(0x3bd)]<=_0x289903)throw Error(_0x5dd30a(0x236)+this['_acknowledgedAwaitingRevision']+'.');this[_0x5dd30a(0x3bd)]===_0x289903+0x1&&this[_0x5dd30a(0x193)]();}[_0x5c9f94(0x193)](){const _0x5e4349=_0x5c9f94;this[_0x5e4349(0x243)](),this[_0x5e4349(0x25c)]=null,this[_0x5e4349(0x3bd)]=null;}['_isEchoedAwaitingChangeset'](_0x4c5160){const _0x149c16=_0x5c9f94;let _0x5805b5=this[_0x149c16(0x25c)];return!_0x5805b5||!_0x5805b5[_0x149c16(0x282)]||_0x5805b5[_0x149c16(0x1f8)]===null||_0x5805b5[_0x149c16(0x1f8)]===void 0x0?!0x1:_0x4c5160[_0x149c16(0x24c)]===_0x5805b5['unitID']&&_0x4c5160[_0x149c16(0x282)]===_0x5805b5[_0x149c16(0x282)]&&_0x4c5160['reqId']===_0x5805b5[_0x149c16(0x1f8)];}[_0x5c9f94(0x3e7)](){const _0x37064b=_0x5c9f94;throw Error(_0x37064b(0x1b5));}[_0x5c9f94(0x254)](_0x36fe84){const _0x207035=_0x5c9f94;return this[_0x207035(0x322)][_0x207035(0x26f)](_0x36fe84),this;}['onRemoteChangeset'](_0x5c651b){const _0x135bd3=_0x5c9f94;return this[_0x135bd3(0x221)][_0x135bd3(0x26f)](_0x5c651b),this;}[_0x5c9f94(0x354)](_0x515058){const _0x3216e3=_0x5c9f94;if(this[_0x3216e3(0x25c)]){let _0x11a809=this[_0x3216e3(0x268)]();return _0x515058['revision']<=_0x11a809||(_0x11a809+0x1===_0x515058[_0x3216e3(0x2dd)]?(this['_incrementRevisionNumber'](),this[_0x3216e3(0x25c)]=null,this[_0x3216e3(0x3bd)]=null):this[_0x3216e3(0x3bd)]=_0x515058[_0x3216e3(0x2dd)]),this;}if(_0x515058[_0x3216e3(0x2dd)]<=this[_0x3216e3(0x268)]())return this;throw Error(_0x3216e3(0x18b));}[_0x5c9f94(0x1e6)](_0x235d77){const _0x16d154=_0x5c9f94;return this[_0x16d154(0x31e)](!!(_0x235d77!=null&&_0x235d77[_0x16d154(0x2da)]));}[_0x5c9f94(0x3c1)](){return this;}[_0x5c9f94(0x3aa)](){const _0x1bf16f=_0x5c9f94;return this['_injector']['createInstance'](Z,this['unitID'],this[_0x1bf16f(0x34b)],this[_0x1bf16f(0x25c)],this[_0x1bf16f(0x322)],this[_0x1bf16f(0x195)]);}[_0x5c9f94(0x281)](){return this;}['_onConflict'](_0x28b138){const _0x4e9d2a=_0x5c9f94;return this[_0x4e9d2a(0x3eb)]['createInstance'](X,this['unitID'],this[_0x4e9d2a(0x34b)],this['_awaitingChangeset'],this[_0x4e9d2a(0x322)],this[_0x4e9d2a(0x195)],_0x28b138);}};Q=H([V(0x7,_0xcf8d3f(_0x19ff28)),V(0x8,_0xcf8d3f(_0x9b85a2)),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x34c2a3),V(0xc,_0x173ca8),V(0xd,_0x1da68f(U))],Q);function bn(_0x187200,_0x12543d,_0xab0597,_0x264bba,_0x47a889,_0x51cb9c){const _0x277fe1=_0x5c9f94;return _0x264bba&&_0x47a889[_0x277fe1(0x2fd)]?_0x187200[_0x277fe1(0x2c8)](Y,_0x12543d,_0xab0597,_0x264bba,_0x47a889,_0x51cb9c,void 0x0):_0x264bba?_0x187200['createInstance'](J,_0x12543d,_0xab0597,_0x264bba,_0x51cb9c):_0x47a889[_0x277fe1(0x2fd)]?_0x187200[_0x277fe1(0x2c8)](q,_0x12543d,_0xab0597,_0x47a889,_0x51cb9c):_0x187200['createInstance'](K,_0x12543d,_0xab0597,_0x51cb9c);}let $=class extends _0x468ac5{get[_0x5c9f94(0x16a)](){const _0x5b9dc6=_0x5c9f94;return this[_0x5b9dc6(0x232)];}constructor(_0x1064f9,_0x443890,_0x1ab5bd,_0x29d046,_0x2de612,_0x38e5ee,_0x39003d,_0x42072f,_0x48ca90,_0x5a6a16,_0x1ae315,_0x39e759,_0x301c4e,_0x255ef6){const _0x5b1c37=_0x5c9f94;super(),this['unitID']=_0x1064f9,this[_0x5b1c37(0x3c5)]=_0x443890,this[_0x5b1c37(0x213)]=_0x1ab5bd,this['_injector']=_0x29d046,this['_compressMutationService']=_0x2de612,this[_0x5b1c37(0x205)]=_0x38e5ee,this[_0x5b1c37(0x382)]=_0x39003d,this['_eventService']=_0x42072f,this['_univerInstanceService']=_0x48ca90,this[_0x5b1c37(0x26a)]=_0x5a6a16,this[_0x5b1c37(0x2a7)]=_0x1ae315,this[_0x5b1c37(0x150)]=_0x39e759,this[_0x5b1c37(0x333)]=_0x301c4e,this[_0x5b1c37(0x255)]=_0x255ef6,z(this,_0x5b1c37(0x28d),new _0x1946cb(null)),z(this,'state$',this[_0x5b1c37(0x28d)][_0x5b1c37(0x190)]()),z(this,_0x5b1c37(0x232),void 0x0),z(this,_0x5b1c37(0x23c),!0x1),z(this,_0x5b1c37(0x2fa),''),z(this,_0x5b1c37(0x355),0x0),z(this,'status$',this[_0x5b1c37(0x1eb)][_0x5b1c37(0x270)](_0x98781b(_0x2c8444=>_0x2c8444?_0x2c8444[_0x5b1c37(0x1a0)]:_0x5b1c37(0x2e3)),_0x43a741({'bufferSize':0x1,'refCount':!0x0}))),z(this,'_transitionLocked',!0x1),z(this,_0x5b1c37(0x1cf),[]);}async[_0x5c9f94(0x1f6)](){const _0x4135e8=_0x5c9f94;if(this[_0x4135e8(0x16a)])throw Error(_0x4135e8(0x358));await this['_init']();}[_0x5c9f94(0x2b3)](){const _0x553ba9=_0x5c9f94;return this[_0x553ba9(0x23c)]=!0x0,_0x2b94ed(()=>{const _0x232b49=_0x553ba9;this[_0x232b49(0x23c)]=!0x1,this[_0x232b49(0x16c)]();});}[_0x5c9f94(0x181)](_0x1c798d){this['_onLocalMutation'](_0x1c798d);}[_0x5c9f94(0x2bd)](_0x24920b){const _0x3f29c3=_0x5c9f94;this[_0x3f29c3(0x232)]=_0x24920b,this[_0x3f29c3(0x28d)]['next'](_0x24920b);}async[_0x5c9f94(0x215)](){const _0x2e3384=_0x5c9f94;if(this[_0x2e3384(0x2bd)](await this[_0x2e3384(0x3b7)]()),this[_0x2e3384(0x333)]){var _0x1e3a4b;(_0x1e3a4b=this['_singleActiveUnitService'])==null||_0x1e3a4b[_0x2e3384(0x3d0)](this[_0x2e3384(0x24c)]),this[_0x2e3384(0x189)](this[_0x2e3384(0x333)]['getUnitStatus$'](this[_0x2e3384(0x24c)])[_0x2e3384(0x168)](_0x4e7c01=>{const _0x4dba45=_0x2e3384;this['_logService'][_0x4dba45(0x1aa)](_0x4dba45(0x32e),_0x4dba45(0x2ca),_0x4e7c01),_0x4e7c01===0x1?(this[_0x4dba45(0x1d0)][_0x4dba45(0x3a8)]({'id':_0x4dba45(0x39c)}),this['_permissionService'][_0x4dba45(0x285)](new _0x350235(this[_0x4dba45(0x24c)])['id'],!0x1),this[_0x4dba45(0x150)][_0x4dba45(0x172)](!0x1)):(this[_0x4dba45(0x150)][_0x4dba45(0x285)](new _0x350235(this[_0x4dba45(0x24c)])['id'],!0x0),this[_0x4dba45(0x150)]['setShowComponents'](!0x0));}));}let _0x52342c=!0x1;return this['disposeWithMe'](this[_0x2e3384(0x3c5)][_0x2e3384(0x225)][_0x2e3384(0x168)](_0x3fd840=>{const _0x48463c=_0x2e3384;_0x3fd840===0x3?this[_0x48463c(0x393)](_0x52342c):_0x3fd840===0x2&&(_0x52342c=!0x0,this['_toggleOffline']());})),this[_0x2e3384(0x189)](this[_0x2e3384(0x3c5)][_0x2e3384(0x1ad)][_0x2e3384(0x168)](_0xba18aa=>{const _0x2c0c9b=_0x2e3384;try{switch(_0xba18aa[_0x2c0c9b(0x198)]){case _0x538b71['NEW_CHANGESETS']:this[_0x2c0c9b(0x13e)](_0xde3e04(_0xba18aa[_0x2c0c9b(0x3cf)]));break;case _0x538b71['CHANGESET_ACK']:this[_0x2c0c9b(0x32a)](_0xba18aa[_0x2c0c9b(0x3cf)]);break;case _0x538b71[_0x2c0c9b(0x22c)]:this[_0x2c0c9b(0x13f)]();break;case _0x538b71[_0x2c0c9b(0x24e)]:this[_0x2c0c9b(0x310)](_0xba18aa[_0x2c0c9b(0x3cf)]);break;case _0x538b71[_0x2c0c9b(0x378)]:this[_0x2c0c9b(0x39b)](_0xba18aa['data'][_0x2c0c9b(0x329)][_0x2c0c9b(0x375)](_0x2f346f=>_0xde3e04(_0x2f346f)));break;case _0x538b71[_0x2c0c9b(0x22e)]:this[_0x2c0c9b(0x13f)]({'isPermissionRej':!0x0});break;case _0x538b71[_0x2c0c9b(0x1bd)]:}}catch(_0x447f64){throw console['error'](_0x2c0c9b(0x27b),_0x447f64),_0x447f64;}})),this[_0x2e3384(0x232)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x5c9f94(0x3da)](){const _0x312d8a=_0x5c9f94;if(this[_0x312d8a(0x353)])throw Error(_0x312d8a(0x1ac));this[_0x312d8a(0x353)]=!0x0;}[_0x5c9f94(0x311)](_0x324da1){const _0xe7624a=_0x5c9f94;this[_0xe7624a(0x3da)](),this[_0xe7624a(0x2bd)](this[_0xe7624a(0x232)][_0xe7624a(0x254)](_0x324da1)),this[_0xe7624a(0x19f)]();}[_0x5c9f94(0x13e)](_0x3227da){const _0x5d7227=_0x5c9f94;if(!(_0x3227da['revision']<=this['_revisionService'][_0x5d7227(0x18f)](this[_0x5d7227(0x24c)]))){if(this['_collaborationPaused']){this[_0x5d7227(0x1cf)][_0x5d7227(0x26f)](_0x3227da);return;}this['_applyRemoteChangeset'](_0x3227da);}}[_0x5c9f94(0x16c)](){const _0x3543be=_0x5c9f94;this[_0x3543be(0x1cf)]['forEach'](_0x11d37f=>this[_0x3543be(0x2ed)](_0x11d37f)),this[_0x3543be(0x1cf)]=[];}[_0x5c9f94(0x2ed)](_0x25d4aa){const _0x9e14ac=_0x5c9f94;let _0x4355a1=this['_compressMutationService'][_0x9e14ac(0x392)][_0x9e14ac(0x15e)](this[_0x9e14ac(0x21c)][_0x9e14ac(0x392)][_0x9e14ac(0x2f2)]()['COMPRESS_MUTATION_APPLY'])(_0x25d4aa[_0x9e14ac(0x202)],null)||_0x25d4aa[_0x9e14ac(0x202)],_0x588445={..._0x25d4aa,'mutations':_0x4355a1};this[_0x9e14ac(0x3da)](),this[_0x9e14ac(0x2bd)](this[_0x9e14ac(0x232)][_0x9e14ac(0x387)](_0x588445)),this[_0x9e14ac(0x19f)]();}['_onRemoteACK'](_0x286278){const _0x1710cf=_0x5c9f94;this[_0x1710cf(0x3da)](),this['_updateState'](this[_0x1710cf(0x232)]['onRemoteAck'](_0x286278)),this[_0x1710cf(0x19f)]();}[_0x5c9f94(0x13f)](_0x12386b){const _0x1a4bfa=_0x5c9f94;this[_0x1a4bfa(0x3da)](),this[_0x1a4bfa(0x2bd)](this[_0x1a4bfa(0x232)][_0x1a4bfa(0x1e6)](_0x12386b)),this['_unlockTransition']();}['_onRemoteRetry'](_0x5d0b59){const _0x3e81b2=_0x5c9f94;this['_lockTransition'](),this['_updateState'](this['_state'][_0x3e81b2(0x3c1)](_0x5d0b59)),this[_0x3e81b2(0x19f)]();}[_0x5c9f94(0x39b)](_0x5c6bc7){const _0x4878ba=_0x5c9f94;if(!(this[_0x4878ba(0x232)]instanceof Q))throw TypeError(_0x4878ba(0x276));let _0x4acff1=_0x5c6bc7[_0x4878ba(0x375)](_0x559da9=>{const _0x390b7b=_0x4878ba;let _0x30cd4f=this[_0x390b7b(0x21c)]['interceptor'][_0x390b7b(0x15e)](this['_compressMutationService'][_0x390b7b(0x392)]['getInterceptPoints']()[_0x390b7b(0x38f)])(_0x559da9[_0x390b7b(0x202)],null)||_0x559da9[_0x390b7b(0x202)];return{..._0x559da9,'mutations':_0x30cd4f};});this[_0x4878ba(0x3da)](),this[_0x4878ba(0x2bd)](this['_state']['onMissedChangesetFetched'](_0x4acff1)),this[_0x4878ba(0x19f)]();}[_0x5c9f94(0x1bf)](){const _0x597f7d=_0x5c9f94;this[_0x597f7d(0x3da)](),this[_0x597f7d(0x2bd)](this[_0x597f7d(0x232)][_0x597f7d(0x3aa)]()),this[_0x597f7d(0x19f)]();}[_0x5c9f94(0x393)](_0x3e148f=!0x1){const _0x23f9eb=_0x5c9f94;this[_0x23f9eb(0x3da)](),this['_updateState'](this[_0x23f9eb(0x232)][_0x23f9eb(0x281)]()),this['_unlockTransition']();let _0x2c7d02=this[_0x23f9eb(0x232)];_0x3e148f&&_0x2c7d02 instanceof K&&(this['_lockTransition'](),this[_0x23f9eb(0x2bd)](_0x2c7d02[_0x23f9eb(0x231)]()),this[_0x23f9eb(0x19f)]());}async['_createInitialState'](){return new Promise(_0x182ae7=>{const _0x2c6537=_0x4bc2;this['session'][_0x2c6537(0x225)][_0x2c6537(0x270)](_0xc0564d(0x1))[_0x2c6537(0x168)](async _0x2e2f16=>{const _0x413191=_0x2c6537;_0x182ae7(await this[_0x413191(0x27d)](_0x2e2f16===0x3));});});}['_createHandler'](){const _0x2d1875=_0x5c9f94;let _0x10e04d=this[_0x2d1875(0x24c)];return{'onStateChange':(_0x5ac38b,_0x380239)=>{const _0xba694e=_0x2d1875;if(_0x5ac38b!==this[_0xba694e(0x232)])throw Error(_0xba694e(0x1bc)+_0x5ac38b[_0xba694e(0x1a0)]+'\x0aAfter:\x20'+_0x380239['status']+'\x0aCurrent:\x20'+this[_0xba694e(0x232)][_0xba694e(0x1a0)]);this[_0xba694e(0x2bd)](_0x380239);},'onSendChangeset':_0x17cffe=>{const _0x5bb126=_0x2d1875;_0x17cffe[_0x5bb126(0x282)]||(_0x17cffe[_0x5bb126(0x282)]=this[_0x5bb126(0x2fa)],_0x17cffe['reqId']=++this[_0x5bb126(0x355)]);let _0x399209={'eventID':_0x538b71['SUBMIT_CHANGESET'],'data':{'unitID':_0x17cffe['unitID'],'unitType':this[_0x5bb126(0x213)],'changeset':_0x17cffe,'memberID':this['session'][_0x5bb126(0x395)]()}};this[_0x5bb126(0x3c5)]['send'](_0x399209,this[_0x5bb126(0x24c)]);},'onMissingChangesets':({from:_0x27be33,to:_0x458e02})=>{const _0x290fc3=_0x2d1875;this['_logService'][_0x290fc3(0x1aa)](_0x290fc3(0x32e),_0x290fc3(0x306)+_0x27be33+_0x290fc3(0x223)+_0x458e02);let _0x363f6b={'eventID':_0x538b71['FETCH_MISSING'],'data':{'unitID':_0x10e04d,'unitType':this[_0x290fc3(0x213)],'from':_0x27be33,'to':_0x458e02}};this[_0x290fc3(0x3c5)]['send'](_0x363f6b,this[_0x290fc3(0x24c)]);}};}async['_createInitialStateImpl'](_0x3c1086){const _0xbf2dc0=_0x5c9f94;var _0x1429e2;let _0x251186=await((_0x1429e2=this[_0xbf2dc0(0x255)])==null?void 0x0:_0x1429e2[_0xbf2dc0(0x179)](this['unitID'])),_0x2c534f=(_0x251186==null?void 0x0:_0x251186['mutations'])??[],_0x58fbff=(_0x251186==null?void 0x0:_0x251186['awaitingChangeset'])??null,_0x29c0bd=!!(_0x58fbff!=null&&_0x58fbff[_0xbf2dc0(0x282)])&&!!(_0x58fbff!=null&&_0x58fbff[_0xbf2dc0(0x1f8)]);this[_0xbf2dc0(0x2fa)]=_0x29c0bd?_0x58fbff['sid']:_0x209d6d(),this[_0xbf2dc0(0x355)]=_0x29c0bd?_0x58fbff[_0xbf2dc0(0x1f8)]:0x0;let _0x51931e=this[_0xbf2dc0(0x24c)];try{this[_0xbf2dc0(0x30b)](_0x58fbff,_0x2c534f);}catch(_0x38f38e){this['_logService'][_0xbf2dc0(0x2dc)](_0x38f38e);}let _0x2ed716=this[_0xbf2dc0(0x2f6)]();if(_0x3c1086){let _0x436a2b=bn(this[_0xbf2dc0(0x3eb)],_0x51931e,this[_0xbf2dc0(0x213)],_0x58fbff,_0x2c534f,_0x2ed716);return _0x436a2b instanceof q?_0x436a2b[_0xbf2dc0(0x3ee)]():(_0x436a2b instanceof Y||_0x436a2b instanceof J)&&_0x436a2b['resend'](),_0x436a2b;}return this[_0xbf2dc0(0x3eb)][_0xbf2dc0(0x2c8)](Z,_0x51931e,this[_0xbf2dc0(0x213)],_0x58fbff,_0x2c534f,_0x2ed716);}['_replayCachedMutations'](_0x3aeebf,_0x1f13b7){const _0x4405ab=_0x5c9f94;var _0x41d0bf,_0x480ce8;let _0x713f64=this[_0x4405ab(0x21c)][_0x4405ab(0x392)][_0x4405ab(0x15e)](this[_0x4405ab(0x21c)][_0x4405ab(0x392)][_0x4405ab(0x2f2)]()[_0x4405ab(0x38f)]);(_0x41d0bf=_0x713f64((_0x3aeebf==null?void 0x0:_0x3aeebf['mutations'])||[],null))==null||_0x41d0bf[_0x4405ab(0x2de)](_0x339ddc=>this[_0x4405ab(0x2a7)][_0x4405ab(0x36c)](_0x339ddc['id'],_0x339ddc['params'])),(_0x480ce8=_0x713f64(_0x1f13b7||[],null))==null||_0x480ce8[_0x4405ab(0x2de)](_0x577478=>this[_0x4405ab(0x2a7)][_0x4405ab(0x36c)](_0x577478['id'],_0x577478[_0x4405ab(0x1a4)]));}};$=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],$);let xn=class extends ${constructor(_0x79363f,_0x1c170f,_0x551504,_0x1620de,_0x3b443b,_0x4f5b01,_0x5e22a5,_0x13f704,_0x41ed0b,_0x16c42c,_0x16198e,_0x55ed1b,_0x1fbfc8,_0x3962f3,_0x2df605){const _0x65d9ab=_0x5c9f94;super(_0x79363f,_0x551504,_0x1c170f,_0x1620de,_0x3b443b,_0x4f5b01,_0x5e22a5,_0x13f704,_0x41ed0b,_0x16c42c,_0x16198e,_0x55ed1b,_0x3962f3,_0x2df605),this[_0x65d9ab(0x24c)]=_0x79363f,this[_0x65d9ab(0x34b)]=_0x1c170f,this['_docStateChangeManagerService']=_0x1fbfc8,z(this,'_handlerCallback',null);}[_0x5c9f94(0x2bf)](_0x1ba105){const _0x4347b4=_0x5c9f94;this[_0x4347b4(0x2a4)]=_0x1ba105;}[_0x5c9f94(0x316)](){const _0x2e171b=_0x5c9f94;this[_0x2e171b(0x2a4)]=null,super[_0x2e171b(0x316)]();}[_0x5c9f94(0x2f6)](){const _0x3ad0b8=_0x5c9f94;let _0x49f336=super['_createHandler']();return _0x49f336['onTransformIME']=_0x3d7aa0=>{const _0x2d552b=_0x4bc2;var _0x3b7e65,_0x397c21;return(_0x3b7e65=this['_handlerCallback'])==null||(_0x397c21=_0x3b7e65[_0x2d552b(0x20c)])==null?void 0x0:_0x397c21[_0x2d552b(0x23e)](_0x3b7e65,_0x3d7aa0);},_0x49f336[_0x3ad0b8(0x14b)]=_0x42c86c=>{const _0x135aa5=_0x3ad0b8;var _0x545715,_0x5d36e9;return(_0x545715=this[_0x135aa5(0x2a4)])==null||(_0x5d36e9=_0x545715[_0x135aa5(0x14b)])==null?void 0x0:_0x5d36e9['call'](_0x545715,_0x42c86c);},_0x49f336['onPrepareTransformSelections']=_0x152545=>{const _0x1255b0=_0x3ad0b8;var _0x348f5c,_0x28a044;return((_0x348f5c=this[_0x1255b0(0x2a4)])==null||(_0x28a044=_0x348f5c[_0x1255b0(0x3ab)])==null?void 0x0:_0x28a044['call'](_0x348f5c,_0x152545))??null;},_0x49f336[_0x3ad0b8(0x252)]=_0xa6d9bb=>{const _0x286dcf=_0x3ad0b8;var _0x21698f,_0x18182;return(_0x21698f=this[_0x286dcf(0x2a4)])==null||(_0x18182=_0x21698f[_0x286dcf(0x252)])==null?void 0x0:_0x18182['call'](_0x21698f,_0xa6d9bb);},_0x49f336[_0x3ad0b8(0x371)]=_0x181198=>{const _0x57f622=_0x3ad0b8;var _0x1be166,_0x451678;return(_0x1be166=this[_0x57f622(0x2a4)])==null||(_0x451678=_0x1be166['onSyncEditingCollabCursor'])==null?void 0x0:_0x451678[_0x57f622(0x23e)](_0x1be166,_0x181198);},_0x49f336['onTransformRemoteChangesetByIMECache']=_0x2c54e4=>{const _0x2d54b8=_0x3ad0b8;var _0x4e121b,_0x1ca125;return((_0x4e121b=this['_handlerCallback'])==null||(_0x1ca125=_0x4e121b['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1ca125[_0x2d54b8(0x23e)](_0x4e121b,_0x2c54e4))??_0x2c54e4;},_0x49f336[_0x3ad0b8(0x176)]=_0x4afd8d=>{const _0x102175=_0x3ad0b8;var _0x2dd709,_0x2eff87;return((_0x2dd709=this[_0x102175(0x2a4)])==null||(_0x2eff87=_0x2dd709['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x2eff87[_0x102175(0x23e)](_0x2dd709,_0x4afd8d))??_0x4afd8d;},_0x49f336;}async[_0x5c9f94(0x215)](){const _0x4a590e=_0x5c9f94;let _0x322bf5=await super[_0x4a590e(0x215)]();return this[_0x4a590e(0x189)](this[_0x4a590e(0x14a)][_0x4a590e(0x38c)]['subscribe'](_0x4adb5c=>{const _0x2524e9=_0x4a590e;if(_0x4adb5c==null||_0x4adb5c['unitId']!==this[_0x2524e9(0x24c)])return;let {commandId:_0x3b284e,redoState:_0x2de64d,unitId:_0x2169af}=_0x4adb5c,_0x12e63f={'id':_0x3b284e,'type':_0x4a7495[_0x2524e9(0x2b0)],'params':{'unitId':_0x2169af,'actions':_0x2de64d[_0x2524e9(0x37e)],'textRanges':null}};this['_onLocalMutation'](_0x12e63f);})),this['disposeWithMe'](this[_0x4a590e(0x2a7)][_0x4a590e(0x210)]((_0x10f509,_0x5888a4)=>{const _0x1c58a5=_0x4a590e;if(_0x10f509[_0x1c58a5(0x34b)]!==_0x4a7495[_0x1c58a5(0x2b0)]||_0x5888a4!=null&&_0x5888a4['fromCollab']||_0x5888a4!=null&&_0x5888a4['onlyLocal']||_0x10f509['id']===_0x5b44a5['id'])return;let _0x1bb7eb=_0x10f509[_0x1c58a5(0x1a4)];if((_0x1bb7eb==null?void 0x0:_0x1bb7eb[_0x1c58a5(0x13c)])!==this[_0x1c58a5(0x24c)])return;let _0x12e0c1=_0x10f509,_0x2a956e=this[_0x1c58a5(0x21c)]['interceptor'][_0x1c58a5(0x15e)](this[_0x1c58a5(0x21c)][_0x1c58a5(0x392)][_0x1c58a5(0x2f2)]()['COMPRESS_MUTATION_SEND'])([_0x12e0c1],this['_univerInstanceService'])||[_0x12e0c1];this[_0x1c58a5(0x311)](_0x2a956e[0x0]);})),_0x322bf5;}};xn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0xcf8d3f(_0xb48de9)),V(0xd,_0x1da68f(W)),V(0xe,_0x1da68f(U))],xn);let Sn=class extends ${constructor(_0x5639cf,_0xa8388c,_0x1170bd,_0x3abcd6,_0x2e3f7e,_0x10374a,_0x27fa53,_0x51c3c6,_0x4fceb4,_0x5b7cc6,_0x5c25a2,_0x29361e,_0x3a3a71,_0x4ea8fb){const _0x2a354c=_0x5c9f94;super(_0x5639cf,_0x1170bd,_0xa8388c,_0x3abcd6,_0x2e3f7e,_0x10374a,_0x27fa53,_0x51c3c6,_0x4fceb4,_0x5b7cc6,_0x5c25a2,_0x29361e,_0x3a3a71,_0x4ea8fb),this[_0x2a354c(0x24c)]=_0x5639cf,this[_0x2a354c(0x34b)]=_0xa8388c;}async[_0x5c9f94(0x215)](){const _0x5c50ae=_0x5c9f94;let _0x4f53d7=await super[_0x5c50ae(0x215)]();return this[_0x5c50ae(0x189)](this[_0x5c50ae(0x2a7)][_0x5c50ae(0x210)]((_0x2f4e3f,_0x543ba8)=>{const _0x5a4c67=_0x5c50ae;if(_0x2f4e3f[_0x5a4c67(0x34b)]!==_0x4a7495[_0x5a4c67(0x2b0)]||_0x543ba8!=null&&_0x543ba8['fromCollab']||_0x543ba8!=null&&_0x543ba8[_0x5a4c67(0x3be)])return;let _0x4c6b96=_0x2f4e3f[_0x5a4c67(0x1a4)];if((_0x4c6b96==null?void 0x0:_0x4c6b96[_0x5a4c67(0x13c)])!==this[_0x5a4c67(0x24c)])return;let _0xdabd59=_0x2f4e3f,_0x3df09d=this[_0x5a4c67(0x21c)]['interceptor'][_0x5a4c67(0x15e)](this[_0x5a4c67(0x21c)][_0x5a4c67(0x392)][_0x5a4c67(0x2f2)]()['COMPRESS_MUTATION_SEND'])([_0xdabd59],this[_0x5a4c67(0x28a)])||[_0xdabd59];this[_0x5a4c67(0x311)](_0x3df09d[0x0]);})),_0x4f53d7;}};Sn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],Sn);let Cn=class extends ${constructor(_0x891fb0,_0xb7da1a,_0x416e6a,_0x540ce5,_0x488475,_0x121055,_0x514aa4,_0x5b32f9,_0x1e3649,_0xe9aeb8,_0x3f367e,_0x10e1b7,_0x461f56,_0xa392c0,_0x324c7e){const _0x537f21=_0x5c9f94;super(_0x891fb0,_0x416e6a,_0xb7da1a,_0x540ce5,_0x488475,_0x121055,_0x514aa4,_0x1e3649,_0xe9aeb8,_0x3f367e,_0x10e1b7,_0x461f56,_0xa392c0,_0x324c7e),this[_0x537f21(0x24c)]=_0x891fb0,this[_0x537f21(0x34b)]=_0xb7da1a,this[_0x537f21(0x327)]=_0x5b32f9;}['_createHandler'](){const _0x71ac90=_0x5c9f94;let _0x36adcf=super[_0x71ac90(0x2f6)]();return _0x36adcf[_0x71ac90(0x252)]=_0x125b09=>this['_sheetTransformSelectionsService'][_0x71ac90(0x3af)](_0x125b09),_0x36adcf;}async[_0x5c9f94(0x215)](){const _0x2dc6fa=_0x5c9f94;let _0x9769f3=await super[_0x2dc6fa(0x215)]();return this['disposeWithMe'](this['_commandService'][_0x2dc6fa(0x210)]((_0x239dda,_0x1ba7c2)=>{const _0x334944=_0x2dc6fa;if(_0x239dda[_0x334944(0x34b)]!==_0x4a7495[_0x334944(0x2b0)]||_0x1ba7c2!=null&&_0x1ba7c2[_0x334944(0x1ec)]||_0x1ba7c2!=null&&_0x1ba7c2[_0x334944(0x3be)])return;let _0x46a47b=_0x239dda[_0x334944(0x1a4)];if((_0x46a47b==null?void 0x0:_0x46a47b['unitId'])!==this['unitID'])return;let _0x1a928b=_0x239dda,_0x3b9929=this[_0x334944(0x21c)]['interceptor'][_0x334944(0x15e)](this['_compressMutationService'][_0x334944(0x392)][_0x334944(0x2f2)]()[_0x334944(0x3e6)])([_0x1a928b],this[_0x334944(0x28a)])||[_0x1a928b];this[_0x334944(0x311)](_0x3b9929[0x0]);})),_0x9769f3;}};Cn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(Jt)),V(0x8,_0xcf8d3f(B)),V(0x9,_0x4c5cd7),V(0xa,_0x3981ee),V(0xb,_0x397ef7),V(0xc,_0x30415d),V(0xd,_0x1da68f(W)),V(0xe,_0x1da68f(U))],Cn);let wn=class extends ${constructor(_0x530d9b,_0xc80387,_0x34a80c,_0x3490ce,_0x218dc3,_0x2d123a,_0x48772a,_0x753dac,_0x2cda8c,_0x5bf3ca,_0x431468,_0x2da05b,_0x29e4b7,_0x390b4c){const _0x446686=_0x5c9f94;super(_0x530d9b,_0x34a80c,_0xc80387,_0x3490ce,_0x218dc3,_0x2d123a,_0x48772a,_0x753dac,_0x2cda8c,_0x5bf3ca,_0x431468,_0x2da05b,_0x29e4b7,_0x390b4c),this[_0x446686(0x24c)]=_0x530d9b,this[_0x446686(0x34b)]=_0xc80387;}async[_0x5c9f94(0x215)](){const _0x1d49b1=_0x5c9f94;let _0x2a5907=await super[_0x1d49b1(0x215)]();return this['disposeWithMe'](this[_0x1d49b1(0x2a7)][_0x1d49b1(0x210)]((_0x2f51be,_0x5dc794)=>{const _0x49bbf7=_0x1d49b1;if(_0x2f51be[_0x49bbf7(0x34b)]!==_0x4a7495[_0x49bbf7(0x2b0)]||_0x5dc794!=null&&_0x5dc794['fromCollab']||_0x5dc794!=null&&_0x5dc794['onlyLocal'])return;let _0x55b506=_0x2f51be[_0x49bbf7(0x1a4)];if((_0x55b506==null?void 0x0:_0x55b506[_0x49bbf7(0x13c)])!==this[_0x49bbf7(0x24c)])return;let _0x498a99=_0x2f51be,_0x22691c=this[_0x49bbf7(0x21c)][_0x49bbf7(0x392)][_0x49bbf7(0x15e)](this[_0x49bbf7(0x21c)][_0x49bbf7(0x392)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x498a99],this[_0x49bbf7(0x28a)])||[_0x498a99];this['_onLocalMutation'](_0x22691c[0x0]);})),_0x2a5907;}};wn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],wn);let Tn=class extends ${constructor(_0x1162b2,_0x15fba6,_0x265b9a,_0x229e0b,_0x11f13a,_0x21f94,_0x10eb99,_0x50d6ba,_0x44157a,_0x194c96,_0x48a2f9,_0x22922d,_0x49bba3,_0x15634b){super(_0x1162b2,_0x265b9a,_0x15fba6,_0x229e0b,_0x11f13a,_0x21f94,_0x10eb99,_0x50d6ba,_0x44157a,_0x194c96,_0x48a2f9,_0x22922d,_0x49bba3,_0x15634b),this['unitID']=_0x1162b2,this['type']=_0x15fba6;}async[_0x5c9f94(0x215)](){const _0xa7a9c0=_0x5c9f94;let _0x3bb5b5=await super[_0xa7a9c0(0x215)]();return this[_0xa7a9c0(0x189)](this[_0xa7a9c0(0x2a7)][_0xa7a9c0(0x210)]((_0x1092d7,_0x3fbeac)=>{const _0x59e940=_0xa7a9c0;if(_0x1092d7[_0x59e940(0x34b)]!==_0x4a7495[_0x59e940(0x2b0)]||_0x3fbeac!=null&&_0x3fbeac[_0x59e940(0x1ec)]||_0x3fbeac!=null&&_0x3fbeac[_0x59e940(0x3be)])return;let _0x495357=_0x1092d7['params'];if((_0x495357==null?void 0x0:_0x495357[_0x59e940(0x13c)])!==this[_0x59e940(0x24c)])return;let _0x4785da=_0x1092d7,_0x264e02=this[_0x59e940(0x21c)][_0x59e940(0x392)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x59e940(0x392)][_0x59e940(0x2f2)]()[_0x59e940(0x3e6)])([_0x4785da],this[_0x59e940(0x28a)])||[_0x4785da];this[_0x59e940(0x311)](_0x264e02[0x0]);})),_0x3bb5b5;}};Tn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],Tn);let En=class extends ${constructor(_0x51ee6a,_0x252d1a,_0x4d2f29,_0x57062f,_0xb6ecb8,_0x50061b,_0x4982ab,_0x5d88d1,_0x2f90c2,_0xacc948,_0x1eb99e,_0x1994ad,_0x50750f,_0x3c86aa){super(_0x51ee6a,_0x4d2f29,_0x252d1a,_0x57062f,_0xb6ecb8,_0x50061b,_0x4982ab,_0x5d88d1,_0x2f90c2,_0xacc948,_0x1eb99e,_0x1994ad,_0x50750f,_0x3c86aa),this['unitID']=_0x51ee6a,this['type']=_0x252d1a;}async['_init'](){const _0x40a288=_0x5c9f94;let _0x2f4bca=await super[_0x40a288(0x215)]();return this[_0x40a288(0x189)](this[_0x40a288(0x2a7)][_0x40a288(0x210)]((_0x4e15f6,_0x4728f8)=>{const _0x1b8899=_0x40a288;if(_0x4e15f6[_0x1b8899(0x34b)]!==_0x4a7495['MUTATION']||_0x4728f8!=null&&_0x4728f8[_0x1b8899(0x1ec)]||_0x4728f8!=null&&_0x4728f8['onlyLocal'])return;let _0xfda770=_0x4e15f6['params'];if((_0xfda770==null?void 0x0:_0xfda770[_0x1b8899(0x13c)])!==this[_0x1b8899(0x24c)])return;let _0x32f618=_0x4e15f6,_0x47844a=this[_0x1b8899(0x21c)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x1b8899(0x2f2)]()[_0x1b8899(0x3e6)])([_0x32f618],this[_0x1b8899(0x28a)])||[_0x32f618];this[_0x1b8899(0x311)](_0x47844a[0x0]);})),_0x2f4bca;}};En=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],En);const Dn=_0x1db16f(_0x5c9f94(0x3f0));function On(_0x5d8288){const _0xdf38a5=_0x5c9f94;let _0x1defda=_0x5d8288[_0xdf38a5(0x3cf)],_0x2b8fac=JSON['parse'](_0x1defda);switch(_0x2b8fac['cmd']){case _0xcb980a[_0xdf38a5(0x337)]:case _0xcb980a[_0xdf38a5(0x3a5)]:{let _0x3b6817=_0x2b8fac[_0xdf38a5(0x3cb)];return{..._0x2b8fac,'data':_0x3b6817,'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};}case _0xcb980a[_0xdf38a5(0x164)]:{let _0x3878ac=_0x2b8fac['joinRsp'];return{..._0x2b8fac,'data':_0x3878ac,'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};}case _0xcb980a[_0xdf38a5(0x180)]:{let _0x483660=_0x2b8fac[_0xdf38a5(0x14c)];switch(_0x483660[_0xdf38a5(0x198)]){case _0x538b71[_0xdf38a5(0x22e)]:var _0x3bda6e;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x3bda6e=_0x483660[_0xdf38a5(0x294)])==null?void 0x0:_0x3bda6e['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['CHANGESET_ACK']:var _0xa9c48d;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0xa9c48d=_0x483660[_0xdf38a5(0x13a)])==null?void 0x0:_0xa9c48d['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['NEW_CHANGESETS']:var _0x3b1052;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x3b1052=_0x483660[_0xdf38a5(0x263)])==null?void 0x0:_0x3b1052['cs']},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x22c)]:var _0x2cd97d;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x2cd97d=_0x483660[_0xdf38a5(0x2fe)])==null?void 0x0:_0x2cd97d['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x24e)]:var _0x1b95d8;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x1b95d8=_0x483660[_0xdf38a5(0x24a)])==null?void 0x0:_0x1b95d8['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x251)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x178)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['USERS_ENTER']:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x1df)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['USERS_LEAVE']:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660['leaveEvent']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x1f7)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x182)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['LIVESHARE_FETCH_OPERATIONS']:case _0x538b71[_0xdf38a5(0x33c)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x17a)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x307)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x182)]},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x145)]:return{..._0x2b8fac,'data':_0x483660,'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x286)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x289)]},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x18a)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660['updatePermissionObjEvent']},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x20d)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x332)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x1bd)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660['uniscriptRunEvent']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};default:return _0x2b8fac;}}default:return _0x2b8fac;}}function kn(_0x4efe3f){const _0x497068=_0x5c9f94;switch(_0x4efe3f[_0x497068(0x14d)]){case _0xcb980a['HEARTBEAT']:case _0xcb980a[_0x497068(0x3a5)]:return JSON[_0x497068(0x2d6)]({'cmd':_0x4efe3f[_0x497068(0x14d)],'routeKey':_0x4efe3f[_0x497068(0x3f2)]});case _0xcb980a[_0x497068(0x3ba)]:{let _0xe24cea;switch(_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x198)]){case _0x538b71[_0x497068(0x251)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x251)],'updateCursorEvent':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x298)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x298)],'leaveEvent':_0x4efe3f['data'][_0x497068(0x3cf)]};break;case _0x538b71['USERS_ENTER']:_0xe24cea={'eventID':_0x538b71[_0x497068(0x38e)],'joinEvent':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x1f7)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x1f7)],'liveShareNewHost':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71['LIVESHARE_OPERATION']:_0xe24cea={'eventID':_0x538b71['LIVESHARE_OPERATION'],'liveShareOperation':_0x4efe3f[_0x497068(0x3cf)]['data']};break;case _0x538b71[_0x497068(0x307)]:_0xe24cea={'eventID':_0x538b71['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x348)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x348)],'liveShareRequestHost':_0x4efe3f['data'][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x14e)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x14e)]};break;default:_0xe24cea={'eventID':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x198)]};}return JSON[_0x497068(0x2d6)]({'cmd':_0x4efe3f['cmd'],'routeKey':_0x4efe3f[_0x497068(0x3f2)],'collaMsg':_0xe24cea});}case _0xcb980a[_0x497068(0x164)]:return JSON[_0x497068(0x2d6)]({'cmd':_0x4efe3f['cmd'],'routeKey':_0x4efe3f[_0x497068(0x3f2)],'joinReq':_0x4efe3f[_0x497068(0x3cf)]});case _0xcb980a[_0x497068(0x17c)]:return JSON['stringify']({'cmd':_0x4efe3f[_0x497068(0x14d)],'routeKey':_0x4efe3f[_0x497068(0x3f2)],'leaveReq':_0x4efe3f[_0x497068(0x3cf)]});default:throw Error(_0x497068(0x34d));}}const An=_0x1db16f(_0x5c9f94(0x21a));function jn(_0x2b7dc1,_0x335c19,_0x40d67d){const _0x1ed0dd=_0x5c9f94;return _0x2b7dc1+'/'+_0x335c19+_0x1ed0dd(0x2d4)+_0x40d67d+_0x1ed0dd(0x17b);}let Mn=class extends _0x588e84{constructor(_0x236c84,_0xab110b,_0x4287f8,_0x11c6a3,_0x290575){const _0x521c4c=_0x5c9f94;super(),this[_0x521c4c(0x3eb)]=_0x236c84,this[_0x521c4c(0x379)]=_0xab110b,this[_0x521c4c(0x323)]=_0x4287f8,this[_0x521c4c(0x26a)]=_0x11c6a3,this[_0x521c4c(0x2e8)]=_0x290575;}[_0x5c9f94(0x275)](_0x3f5677){const _0x834ee4=_0x5c9f94;let _0x36b431=this['_injector'][_0x834ee4(0x160)](_0x17aa40);if(!_0x36b431)throw Error(_0x834ee4(0x22f));let _0x4c8256=_0x36b431[_0x834ee4(0x300)](_0x3f5677);if(!_0x4c8256)throw Error(_0x834ee4(0x199));let _0x105db0=new _0x21b987(),_0x27c1e1=new _0x4e03af();_0x105db0[_0x834ee4(0x287)](_0x4c8256[_0x834ee4(0x1ed)][_0x834ee4(0x168)](_0x5c6a2a=>_0x27c1e1['next'](_0x5c6a2a))),_0x105db0[_0x834ee4(0x287)](_0x2b94ed(()=>_0x27c1e1['complete']()));let _0x3955c1=new _0x4e03af();_0x105db0[_0x834ee4(0x287)](_0x4c8256[_0x834ee4(0x183)][_0x834ee4(0x168)](_0x1426a4=>_0x3955c1[_0x834ee4(0x3b1)](_0x1426a4))),_0x105db0['add'](_0x2b94ed(()=>_0x3955c1[_0x834ee4(0x31a)]()));let _0x24d7ba=new _0x4e03af();_0x105db0['add'](_0x4c8256[_0x834ee4(0x366)][_0x834ee4(0x168)](_0x1bd997=>{let _0x41e55b=On(_0x1bd997);_0x24d7ba['next'](_0x41e55b);})),_0x105db0['add'](_0x2b94ed(()=>_0x24d7ba[_0x834ee4(0x31a)]()));let _0x51f866,_0x6f45e3=()=>{const _0x29730f=_0x834ee4;_0x3955c1[_0x29730f(0x3b1)](new Event(_0x29730f(0x326))),_0x27c1e1[_0x29730f(0x3b1)](new Event(_0x29730f(0x326))),_0x51f866[_0x29730f(0x17d)]();};return _0x51f866={'memberID':'','close$':_0x27c1e1[_0x834ee4(0x190)](),'error$':_0x3955c1[_0x834ee4(0x190)](),'open$':_0x4c8256[_0x834ee4(0x1f1)],'message$':_0x24d7ba['asObservable'](),'send':_0x549db6=>{const _0x2249cd=_0x834ee4;if(_0x549db6[_0x2249cd(0x14d)]===_0xcb980a['INGEST']){if(_0x549db6[_0x2249cd(0x3cf)][_0x2249cd(0x198)]===_0x538b71[_0x2249cd(0x2c5)]){this[_0x2249cd(0x1d9)](_0x51f866,_0x549db6['data'])['catch'](_0x18a914=>{const _0x38a7c6=_0x2249cd;this[_0x38a7c6(0x26a)][_0x38a7c6(0x2dc)](_0x18a914),_0x6f45e3();});return;}if(_0x549db6[_0x2249cd(0x3cf)][_0x2249cd(0x198)]===_0x538b71[_0x2249cd(0x25a)]){let _0x5489b9=_0x549db6[_0x2249cd(0x3cf)];this[_0x2249cd(0x17f)](_0x5489b9)['then'](_0x508aed=>{const _0x2dde13=_0x2249cd;_0x24d7ba[_0x2dde13(0x3b1)]({'cmd':_0xcb980a[_0x2dde13(0x180)],'code':_0x3c0867['OK'],'routeKey':_0x5489b9['data']['unitID'],'routeType':'','data':{'eventID':_0x538b71[_0x2dde13(0x378)],'data':{'changesets':_0x508aed}}});})[_0x2249cd(0x3e1)](_0x1b6db1=>{const _0x309338=_0x2249cd;this[_0x309338(0x26a)][_0x309338(0x2dc)](_0x1b6db1),_0x6f45e3();});return;}}_0x4c8256['send'](kn(_0x549db6));},'close':()=>{const _0x21f517=_0x834ee4;_0x4c8256[_0x21f517(0x17d)](),_0x105db0[_0x21f517(0x316)]();}},_0x51f866;}async[_0x5c9f94(0x1d9)](_0x5982d0,_0x197f23){const _0x1040a1=_0x5c9f94;let {unitType:_0x2c73fd,unitID:_0x310564,changeset:_0x121897}=_0x197f23[_0x1040a1(0x3cf)],_0x4c1520={'unitID':_0x310564,'memberID':_0x5982d0[_0x1040a1(0x331)],'type':_0x2c73fd,'changeset':_0x3e125d(_0x121897)},_0x393b82=this[_0x1040a1(0x323)][_0x1040a1(0x1a1)](R),_0x155648=jn((_0x393b82==null?void 0x0:_0x393b82['collabSubmitChangesetUrl'])??_0x1040a1(0x2b7),_0x2c73fd,_0x310564);try{await this[_0x1040a1(0x379)][_0x1040a1(0x320)](_0x155648,{'body':_0x4c1520});}catch(_0x4e37de){throw this['_logService'][_0x1040a1(0x2dc)](_0x1040a1(0x177),_0x1040a1(0x30f)),_0x4e37de;}}async['_fetchMissChangesets'](_0x30d927){const _0x16011c=_0x5c9f94;let {unitID:_0x32864d,from:_0x34ba2e,to:_0x4fa12e,unitType:_0x535a6b}=_0x30d927[_0x16011c(0x3cf)];return(await this[_0x16011c(0x2e8)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x32864d,'type':_0x535a6b,'from':_0x34ba2e,'to':_0x4fa12e}))[_0x16011c(0x329)][_0x16011c(0x375)](_0x3b5e16=>((_0x3b5e16[_0x16011c(0x202)]===null||_0x3b5e16[_0x16011c(0x202)]===void 0x0)&&(_0x3b5e16[_0x16011c(0x202)]=[]),_0x3b5e16));}};Mn=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0xcf8d3f(_0x145224)),V(0x2,_0xf41dc9),V(0x3,_0x3981ee),V(0x4,_0x1425c0)],Mn);const Nn=_0x1db16f('univer-pro.collaboration-client-adapter-service');function Pn(_0x487df4={}){const _0x3c6859=_0x5c9f94;return _0x487df4['resolveUnit']?{'resolveUnit':_0x487df4[_0x3c6859(0x39a)]}:{'resolveUnit':_0xc394e5=>({'target':{'unitId':_0xc394e5[_0x3c6859(0x13c)],'unitType':_0xc394e5[_0x3c6859(0x2fb)]}})};}function Fn(_0x434fdb,_0x44fa1a,_0x100620){const _0x553d06=_0x5c9f94;let _0x49b47a=_0x100620['target']['endpoint'];if(_0x49b47a!=null&&_0x49b47a['trim']()==='')throw Error(_0x553d06(0x1e0));if(!_0x100620['target'][_0x553d06(0x13c)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x434fdb,'unitType':_0x44fa1a,'target':{'endpoint':_0x49b47a,'unitId':_0x100620['target'][_0x553d06(0x13c)],'unitType':_0x100620[_0x553d06(0x141)][_0x553d06(0x2fb)]??_0x44fa1a},'changeset':_0x100620['changeset']};}let In=class extends _0x588e84{constructor(_0x8aa0f6,_0x146292,_0x59cc3d,_0x5c1b84,_0x5e490e,_0x1d2c50,_0x501ef1){const _0x4f2734=_0x5c9f94;super(),this[_0x4f2734(0x3eb)]=_0x8aa0f6,this['_logService']=_0x146292,this[_0x4f2734(0x323)]=_0x59cc3d,this[_0x4f2734(0x162)]=_0x5c1b84,this[_0x4f2734(0x143)]=_0x5e490e,this[_0x4f2734(0x314)]=_0x1d2c50,this[_0x4f2734(0x15f)]=_0x501ef1,z(this,_0x4f2734(0x277),new Map()),z(this,'_pendingSessions',new Map()),z(this,_0x4f2734(0x321),new Map()),z(this,'_socketChannels',new Map()),z(this,'socket$',this[_0x4f2734(0x315)](void 0x0)['socket$']['asObservable']()),z(this,_0x4f2734(0x362),new _0x1946cb(0x0)),z(this,_0x4f2734(0x2a9),this['_status$'][_0x4f2734(0x190)]()),this[_0x4f2734(0x3b3)]();}[_0x5c9f94(0x3b3)](){const _0x11b615=_0x5c9f94;this[_0x11b615(0x15f)]&&this['disposeWithMe'](this[_0x11b615(0x15f)][_0x11b615(0x361)][_0x11b615(0x168)](_0x15f428=>{const _0x11ecf8=_0x11b615;_0x15f428&&this[_0x11ecf8(0x3c6)](),_0x15f428||this[_0x11ecf8(0x20b)][_0x11ecf8(0x2de)](_0x27f286=>this['_onOffline'](_0x27f286));}));}[_0x5c9f94(0x316)](){const _0x5575b1=_0x5c9f94;super[_0x5575b1(0x316)](),this[_0x5575b1(0x20b)]['forEach'](_0x2240bd=>{const _0x32b5bf=_0x5575b1;var _0x5ee37f,_0x166525;(_0x5ee37f=_0x2240bd[_0x32b5bf(0x3c0)])==null||_0x5ee37f['unsubscribe'](),_0x2240bd[_0x32b5bf(0x3c0)]=null,this[_0x32b5bf(0x343)](_0x2240bd),this[_0x32b5bf(0x2a1)](_0x2240bd),this[_0x32b5bf(0x2b1)](_0x2240bd),(_0x166525=_0x2240bd[_0x32b5bf(0x3cd)][_0x32b5bf(0x154)]())==null||_0x166525[_0x32b5bf(0x17d)](),_0x2240bd[_0x32b5bf(0x3cd)][_0x32b5bf(0x31a)]();}),this['_socketChannels'][_0x5575b1(0x19e)](),this[_0x5575b1(0x277)]['forEach'](_0x44dbcc=>_0x44dbcc[_0x5575b1(0x316)]()),this[_0x5575b1(0x277)][_0x5575b1(0x19e)](),this[_0x5575b1(0x321)][_0x5575b1(0x19e)](),this[_0x5575b1(0x362)][_0x5575b1(0x31a)]();}async['requireSession'](_0x59001a,_0x1fbb13){const _0x37dff7=_0x5c9f94;if(this[_0x37dff7(0x277)][_0x37dff7(0x3e3)](_0x59001a))return this[_0x37dff7(0x277)]['get'](_0x59001a);let _0x7e8e9d=this[_0x37dff7(0x39d)]['get'](_0x59001a);if(_0x7e8e9d)return _0x7e8e9d;let _0x41101=this[_0x37dff7(0x3de)](_0x59001a,_0x1fbb13);this[_0x37dff7(0x39d)][_0x37dff7(0x1b3)](_0x59001a,_0x41101);try{return await _0x41101;}finally{this[_0x37dff7(0x39d)][_0x37dff7(0x1e8)](_0x59001a);}}async[_0x5c9f94(0x3de)](_0x5a08be,_0x19f0dd){const _0x58c40c=_0x5c9f94;let _0x3cda54=await this[_0x58c40c(0x3a9)](_0x5a08be,_0x19f0dd),_0x2f084a=this['_getSocketChannel'](_0x3cda54[_0x58c40c(0x141)]['endpoint']);this[_0x58c40c(0x3e0)](_0x2f084a);let _0x5377c7=this[_0x58c40c(0x3eb)][_0x58c40c(0x2c8)](Gt,_0x3cda54,_0x2f084a[_0x58c40c(0x3cd)][_0x58c40c(0x190)]());return this[_0x58c40c(0x277)][_0x58c40c(0x1b3)](_0x5a08be,_0x5377c7),this['_sessionChannels']['set'](_0x5a08be,_0x2f084a[_0x58c40c(0x3ca)]),_0x5377c7;}[_0x5c9f94(0x36e)](_0x291758){const _0x4289e9=_0x5c9f94;let _0x3ee99a=this['_sessions'][_0x4289e9(0x160)](_0x291758),_0xb8fa44=this[_0x4289e9(0x321)]['get'](_0x291758);if(_0x3ee99a&&(this['_sessions'][_0x4289e9(0x1e8)](_0x291758),this[_0x4289e9(0x321)][_0x4289e9(0x1e8)](_0x291758),_0x3ee99a['close']()),_0xb8fa44&&!this[_0x4289e9(0x365)](_0xb8fa44)){var _0x2ed8fa;let _0xe6d221=this[_0x4289e9(0x20b)]['get'](_0xb8fa44);_0xe6d221==null||(_0x2ed8fa=_0xe6d221['socket$'][_0x4289e9(0x154)]())==null||_0x2ed8fa[_0x4289e9(0x17d)]();}}[_0x5c9f94(0x3c6)](){const _0x34eff7=_0x5c9f94;(this[_0x34eff7(0x20b)][_0x34eff7(0x3e5)]?[...this['_socketChannels'][_0x34eff7(0x381)]()]:[this[_0x34eff7(0x315)](void 0x0)])['forEach'](_0x513ea0=>{const _0x3286cd=_0x34eff7;_0x513ea0[_0x3286cd(0x16f)]=0x0,this[_0x3286cd(0x343)](_0x513ea0),this[_0x3286cd(0x34c)](_0x513ea0);});}[_0x5c9f94(0x343)](_0x34d293){const _0x3db616=_0x5c9f94;_0x34d293[_0x3db616(0x1d8)]!=null&&(clearTimeout(_0x34d293['retryConnectingTimer']),_0x34d293[_0x3db616(0x1d8)]=null);}async[_0x5c9f94(0x359)](_0x2b4b81){const _0x1ee1a1=_0x5c9f94;let _0x443ea4=this[_0x1ee1a1(0x323)][_0x1ee1a1(0x1a1)](R),_0x1d6524=_0x2b4b81[_0x1ee1a1(0x3e4)]??(_0x443ea4==null?void 0x0:_0x443ea4[_0x1ee1a1(0x370)])??_0x1ee1a1(0x245),_0x297886=await this['_socketService']['createSocket'](_0x1d6524);return _0x2b4b81[_0x1ee1a1(0x20a)]=_0x297886,_0x297886;}async[_0x5c9f94(0x3e0)](_0x15c0fa){const _0x4138b4=_0x5c9f94;try{let _0x4827ff=_0x15c0fa[_0x4138b4(0x3cd)]['getValue']()??_0x15c0fa[_0x4138b4(0x20a)]??await this['_createSocket'](_0x15c0fa);if(_0x4827ff){var _0x145b1b;let _0x24cdab=_0x4827ff[_0x4138b4(0x308)];_0x4827ff['send']=_0x25e7da=>(_0x25e7da[_0x4138b4(0x14d)]!==_0xcb980a[_0x4138b4(0x17c)]&&this[_0x4138b4(0x200)](_0x15c0fa),_0x24cdab[_0x4138b4(0x347)](_0x4827ff,[_0x25e7da])),(_0x145b1b=_0x15c0fa[_0x4138b4(0x3c0)])==null||_0x145b1b[_0x4138b4(0x20f)](),_0x15c0fa['socketMessageSubscription']=null,_0x15c0fa['socketMessageSubscription']=_0x4827ff[_0x4138b4(0x366)]['subscribe'](_0x29f6e7=>this[_0x4138b4(0x242)](_0x15c0fa,_0x4827ff,_0x29f6e7)),_0x4827ff['error$'][_0x4138b4(0x270)](_0x2c8673(0x1))[_0x4138b4(0x168)](_0x681c4d=>this[_0x4138b4(0x26a)]['error'](_0x4138b4(0x19b),_0x681c4d)),_0x4827ff[_0x4138b4(0x1f1)][_0x4138b4(0x270)](_0x2c8673(0x1))[_0x4138b4(0x168)](()=>{this['_onConnectionOpen'](_0x15c0fa,_0x4827ff);}),_0x4827ff[_0x4138b4(0x1ed)][_0x4138b4(0x270)](_0x2c8673(0x1))[_0x4138b4(0x168)](_0x147933=>{const _0x11e5d9=_0x4138b4;this['_logService'][_0x11e5d9(0x1aa)](_0x11e5d9(0x228),_0x11e5d9(0x209),_0x147933),this[_0x11e5d9(0x280)](_0x15c0fa);});}}catch(_0x5a2e6b){this['_logService'][_0x4138b4(0x2dc)](_0x5a2e6b),this['_onConnectionFailed'](_0x15c0fa);}}['_onConnectionOpen'](_0x2a7a60,_0x400883){const _0x421afe=_0x5c9f94;this[_0x421afe(0x26a)][_0x421afe(0x1aa)](_0x421afe(0x228),_0x421afe(0x2fc)),_0x400883[_0x421afe(0x308)]({'cmd':_0xcb980a[_0x421afe(0x3a5)]}),this[_0x421afe(0x200)](_0x2a7a60);}[_0x5c9f94(0x318)](_0x8694c){const _0x3ee346=_0x5c9f94;_0x8694c[_0x3ee346(0x3a1)]=!0x1,_0x8694c[_0x3ee346(0x20a)]=null,this[_0x3ee346(0x362)]['next'](0x2),_0x8694c[_0x3ee346(0x3cd)]['next'](null),this[_0x3ee346(0x2a1)](_0x8694c),this[_0x3ee346(0x2b1)](_0x8694c);}[_0x5c9f94(0x280)](_0x2a4109){const _0x32d5ea=_0x5c9f94;this[_0x32d5ea(0x318)](_0x2a4109),this[_0x32d5ea(0x365)](_0x2a4109[_0x32d5ea(0x3ca)])&&(_0x2a4109['retryCount']<(this[_0x32d5ea(0x323)][_0x32d5ea(0x1a1)](_0x32d5ea(0x15a))??0x3)?(this['_collaborationUIEventService'][_0x32d5ea(0x3a8)]({'id':_0x32d5ea(0x2c3)}),this[_0x32d5ea(0x34c)](_0x2a4109)):this['_collaborationUIEventService']['emitEvent']({'id':_0x32d5ea(0x1d7)}));}['_tryReconnect'](_0x2ca25b){const _0x2c3b42=_0x5c9f94;let _0x283a8b=_0x2ca25b[_0x2c3b42(0x16f)],_0x122556=this['_configService']['getConfig'](R),_0x4579fe=_0x283a8b===0x0?0x0:((_0x122556==null?void 0x0:_0x122556['retryConnectingInterval'])??0x4e20)*0x2**_0x283a8b;_0x2ca25b[_0x2c3b42(0x1d8)]=setTimeout(()=>{const _0x172bd0=_0x2c3b42;clearTimeout(_0x2ca25b[_0x172bd0(0x1d8)]),_0x2ca25b[_0x172bd0(0x1d8)]=null,this[_0x172bd0(0x3e0)](_0x2ca25b);},_0x4579fe),_0x2ca25b[_0x2c3b42(0x16f)]+=0x1;}async[_0x5c9f94(0x3a9)](_0x50c755,_0x30fc37){const _0x5959f9=_0x5c9f94;return Fn(_0x50c755,_0x30fc37,await this[_0x5959f9(0x314)][_0x5959f9(0x39a)]({'unitId':_0x50c755,'unitType':_0x30fc37}));}[_0x5c9f94(0x242)](_0x253622,_0x18f1e3,_0x30cb59){const _0x220fe0=_0x5c9f94;let {cmd:_0x47c608}=_0x30cb59;_0x47c608===_0xcb980a[_0x220fe0(0x3a5)]&&!_0x253622[_0x220fe0(0x3a1)]&&(_0x18f1e3[_0x220fe0(0x331)]=_0x30cb59['data']['memberID'],_0x253622[_0x220fe0(0x16f)]=0x0,_0x253622['socket$']['next'](_0x18f1e3),this[_0x220fe0(0x362)][_0x220fe0(0x3b1)](0x3),_0x253622['socketReady']=!0x0,_0x253622[_0x220fe0(0x20a)]=null),_0x47c608===_0xcb980a[_0x220fe0(0x337)]&&this[_0x220fe0(0x2a1)](_0x253622),this['_rescheduleHeartbeat'](_0x253622);}[_0x5c9f94(0x365)](_0x1f971b){const _0x322d85=_0x5c9f94;return[...this[_0x322d85(0x321)][_0x322d85(0x381)]()][_0x322d85(0x1b6)](_0x37117e=>_0x37117e===_0x1f971b);}[_0x5c9f94(0x315)](_0x1bb80f){const _0x22e22b=_0x5c9f94;let _0x313c65=_0x1bb80f??'',_0xa25a73=this[_0x22e22b(0x20b)][_0x22e22b(0x160)](_0x313c65);if(_0xa25a73)return _0xa25a73;let _0x562da1={'endpointKey':_0x313c65,'endpoint':_0x1bb80f,'socket$':new _0x1946cb(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x22e22b(0x20b)][_0x22e22b(0x1b3)](_0x313c65,_0x562da1),_0x562da1;}[_0x5c9f94(0x200)](_0x1ff0ef){const _0x31dd4a=_0x5c9f94;this[_0x31dd4a(0x2b1)](_0x1ff0ef),_0x1ff0ef[_0x31dd4a(0x229)]=setTimeout(()=>this['_sendHeartbeat'](_0x1ff0ef),this[_0x31dd4a(0x323)][_0x31dd4a(0x1a1)](_0x31dd4a(0x25e))??0x7530);}[_0x5c9f94(0x3e2)](_0x284fde){const _0x3418e2=_0x5c9f94;_0x284fde[_0x3418e2(0x3cd)][_0x3418e2(0x154)]()[_0x3418e2(0x308)]({'cmd':_0xcb980a[_0x3418e2(0x337)]}),this['_waitForHeartbeatResponse'](_0x284fde);}[_0x5c9f94(0x3b6)](_0x4cda4a){const _0x8fe492=_0x5c9f94;_0x4cda4a[_0x8fe492(0x2b2)]=setTimeout(()=>this['_onConnectionFailed'](_0x4cda4a),this[_0x8fe492(0x323)]['getConfig']('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x5c9f94(0x2b1)](_0x36ae3a){const _0xc1825a=_0x5c9f94;_0x36ae3a[_0xc1825a(0x229)]!=null&&(clearTimeout(_0x36ae3a[_0xc1825a(0x229)]),_0x36ae3a[_0xc1825a(0x229)]=null);}['_clearTimeoutTimer'](_0x5aa4ab){const _0x2f3648=_0x5c9f94;_0x5aa4ab[_0x2f3648(0x2b2)]!=null&&(clearTimeout(_0x5aa4ab['timeoutTimer']),_0x5aa4ab[_0x2f3648(0x2b2)]=null);}};In=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0x3981ee),V(0x2,_0xf41dc9),V(0x3,An),V(0x4,_0xcf8d3f(B)),V(0x5,Nn),V(0x6,_0x1da68f(Dn))],In);let Ln=class extends _0x468ac5{constructor(_0x54f9b1,_0x260d40,_0x3f2018,_0xd9ed2c){const _0x3a8e4f=_0x5c9f94;var _0x23353b;super(),this[_0x3a8e4f(0x3eb)]=_0x54f9b1,this[_0x3a8e4f(0x219)]=_0x260d40,this[_0x3a8e4f(0x323)]=_0x3f2018,this[_0x3a8e4f(0x28a)]=_0xd9ed2c,z(this,_0x3a8e4f(0x261),new Map()),z(this,_0x3a8e4f(0x313),new _0x4e03af()),z(this,_0x3a8e4f(0x397),this[_0x3a8e4f(0x313)][_0x3a8e4f(0x190)]()),((_0x23353b=this['_configService'][_0x3a8e4f(0x1a1)](_0x3a8e4f(0x247)))==null?void 0x0:_0x23353b['enableCollaboration'])!==!0x1&&this['_init']();}[_0x5c9f94(0x316)](){const _0x3f6b8c=_0x5c9f94;super[_0x3f6b8c(0x316)](),this[_0x3f6b8c(0x261)][_0x3f6b8c(0x2de)](_0x59cab3=>_0x59cab3['dispose']()),this['_entities']['clear']();}[_0x5c9f94(0x369)](_0x211206){const _0x1f85f8=_0x5c9f94;return this[_0x1f85f8(0x261)][_0x1f85f8(0x160)](_0x211206)??null;}[_0x5c9f94(0x250)](_0x589f19){const _0x1324b6=_0x5c9f94;let _0xdb0403=this[_0x1324b6(0x369)](_0x589f19);return _0xdb0403?_0xf609a3(_0xdb0403):this[_0x1324b6(0x313)][_0x1324b6(0x270)](_0x5d4b25(_0x1eee52=>_0x1eee52[_0x1324b6(0x24c)]===_0x589f19));}[_0x5c9f94(0x373)](_0xf4c3bd){const _0x5e2385=_0x5c9f94;return _0x3f95e4(this[_0x5e2385(0x250)](_0xf4c3bd)[_0x5e2385(0x270)](_0x13126a(()=>void 0x0)));}[_0x5c9f94(0x215)](){const _0x2a1553=_0x5c9f94;this[_0x2a1553(0x28a)][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x21d)])[_0x2a1553(0x270)](_0x21bb40(this['dispose$']),_0x2fc4f9(0x10))['subscribe'](async _0x15c19d=>{const _0x4c7ebc=_0x2a1553;let _0x200108=_0x15c19d['unit'][_0x4c7ebc(0x394)](),_0x354265=await this[_0x4c7ebc(0x3f1)](_0x200108,_0x2efadb[_0x4c7ebc(0x21d)]);this['_entities'][_0x4c7ebc(0x1b3)](_0x200108,_0x354265);}),this[_0x2a1553(0x28a)][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x29a)])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x270)](_0x5d4b25(_0x2ebba4=>!_0x2ebba4[_0x2a1553(0x1e7)][_0x2a1553(0x394)]()['startsWith']('__')))[_0x2a1553(0x168)](async _0x2f9086=>{const _0x2c196a=_0x2a1553;let _0x1aa750=_0x2f9086[_0x2c196a(0x1e7)][_0x2c196a(0x394)](),_0x1faa6e=await this['_startCollaboration'](_0x1aa750,_0x2efadb[_0x2c196a(0x29a)]);this['_entities'][_0x2c196a(0x1b3)](_0x1aa750,_0x1faa6e);}),this[_0x2a1553(0x28a)][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x1d3)])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x168)](async _0x403f57=>{const _0x216709=_0x2a1553;let _0x1d411d=_0x403f57['unit']['getUnitId'](),_0x4d96b1=await this[_0x216709(0x3f1)](_0x1d411d,_0x2efadb[_0x216709(0x1d3)]);this[_0x216709(0x261)][_0x216709(0x1b3)](_0x1d411d,_0x4d96b1);}),this[_0x2a1553(0x28a)]['getTypeOfUnitAdded$'](_0x2efadb[_0x2a1553(0x3ed)])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x168)](async _0x24c549=>{const _0x21f218=_0x2a1553;let _0x3fd863=_0x24c549['unit'][_0x21f218(0x394)](),_0x4107b0=await this['_startCollaboration'](_0x3fd863,_0x2efadb[_0x21f218(0x3ed)]);this[_0x21f218(0x261)][_0x21f218(0x1b3)](_0x3fd863,_0x4107b0);}),this['_univerInstanceService'][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x3a6)])['pipe'](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x168)](async _0x194151=>{const _0x46845b=_0x2a1553;let _0x4c2cec=_0x194151[_0x46845b(0x1e7)][_0x46845b(0x394)](),_0x281edf=await this[_0x46845b(0x3f1)](_0x4c2cec,_0x2efadb[_0x46845b(0x3a6)]);this[_0x46845b(0x261)][_0x46845b(0x1b3)](_0x4c2cec,_0x281edf);}),this['_univerInstanceService'][_0x2a1553(0x2ff)](_0x2efadb['UNIVER_PDF'])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))['subscribe'](async _0x4b08a3=>{const _0x303fd3=_0x2a1553;let _0x552dcb=_0x4b08a3[_0x303fd3(0x1e7)][_0x303fd3(0x394)](),_0x15144d=await this[_0x303fd3(0x3f1)](_0x552dcb,_0x2efadb['UNIVER_PDF']);this[_0x303fd3(0x261)][_0x303fd3(0x1b3)](_0x552dcb,_0x15144d);}),_0x41572c(this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x21d)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x29a)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb['UNIVER_SLIDE']),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x3ed)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x3a6)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb['UNIVER_PDF']))[_0x2a1553(0x270)](_0x21bb40(this['dispose$']))[_0x2a1553(0x168)](_0x16d115=>{const _0x5eb3f2=_0x2a1553;let _0x2f9cc9=_0x16d115[_0x5eb3f2(0x394)](),_0x162cf1=this[_0x5eb3f2(0x261)][_0x5eb3f2(0x160)](_0x2f9cc9);_0x162cf1&&(_0x162cf1[_0x5eb3f2(0x316)](),this['_entities'][_0x5eb3f2(0x1e8)](_0x2f9cc9));});}async[_0x5c9f94(0x3f1)](_0x2c092d,_0x18f66e){const _0x51534a=_0x5c9f94;let _0x309e4e=await this[_0x51534a(0x219)]['requireSession'](_0x2c092d),_0x598cfe=this[_0x51534a(0x3eb)][_0x51534a(0x2c8)](this[_0x51534a(0x39e)](_0x18f66e),_0x2c092d,_0x18f66e,_0x309e4e);return await _0x598cfe[_0x51534a(0x1f6)](),this['_entityInit$']['next'](_0x598cfe),_0x598cfe;}[_0x5c9f94(0x39e)](_0x356997){const _0x1fd2a8=_0x5c9f94;switch(_0x356997){case _0x2efadb[_0x1fd2a8(0x29a)]:return xn;case _0x2efadb['UNIVER_SHEET']:return Cn;case _0x2efadb[_0x1fd2a8(0x1d3)]:return wn;case _0x2efadb[_0x1fd2a8(0x3ed)]:return Tn;case _0x2efadb['UNIVER_BASE']:return Sn;case _0x2efadb['UNIVER_PDF']:return En;default:throw Error(_0x1fd2a8(0x30c)+_0x356997);}}};Ln=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0xcf8d3f(In)),V(0x2,_0xf41dc9),V(0x3,_0x4c5cd7)],Ln);var Rn=_0x5c9f94(0x1fb),zn='1.0.4';let Bn=class extends _0x588e84{constructor(_0x46fbd8,_0x4b6b67){const _0x106455=_0x5c9f94;super(),this[_0x106455(0x28a)]=_0x46fbd8,this['_configService']=_0x4b6b67,this[_0x106455(0x215)]();}[_0x5c9f94(0x215)](){const _0x3cc670=_0x5c9f94;this[_0x3cc670(0x189)](this[_0x3cc670(0x28a)][_0x3cc670(0x2b4)][_0x3cc670(0x168)](()=>{const _0x873c96=_0x3cc670;let _0x976f36=this[_0x873c96(0x28a)][_0x873c96(0x191)](),_0x37ffa4=this[_0x873c96(0x323)]['getConfig'](_0x873c96(0x21b))??_0x873c96(0x1cb);_0x976f36 instanceof _0x2b4036&&(_0x37ffa4=_0x976f36[_0x873c96(0x31c)]),document[_0x873c96(0x206)]=_0x37ffa4;}));}};function _0x3253(){const _0x373357=['/-/object/-/batch_allowed','[DataLoaderService]','_commandService','_prepareTransformSelections','status$','resolve','refreshUnit','_scheduleCompleteTimestamp','1560300yAbxBT','getTypeOfUnitDisposed$','_getLoginPath','MUTATION','_clearHeartbeatTimer','timeoutTimer','pauseCollaboration','focused$','_telemetryService','stopTime','/universer-api/comb','_userManagerService','headers','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getUploadFileURL','_transformRemoteChangesetByStateCache','_updateState','CONFLICT','addHandlerCallback','incrementRevOfUnit','Slide','_sendingTimer','SOCKET_FAILED_RETRY','baseRev','SUBMIT_CHANGESET','onload','_updateLocalCache','createInstance','_transformAndApplyRemoteChangeset','editing\x20status\x20changed\x20to','commit','collaborators','POST','function','downloadEndpointUrl','commentUpdate$','awaitingChangeset','[SyncedState]:\x20received\x20rejection.','c1Prime','/unit/','_cfgEnableObjInherit','stringify','compose','override','conflict','isPermissionRej','origin','error','revision','forEach','string','objectActions','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_getSendChangesetTimeout','offline','unit-cache-','fetchMissingChangesets','loadUnit','_disposed','_snapshotServerService','JOINING','_syncEditingCollabCursor','?size=','getCurrentUser','_applyRemoteChangeset','getUnitOnRev','setCfgEnableObjInherit','NOT_COLLAB','saveImage','getInterceptPoints','loadDoc','/universer-api/stream/file/upload','responseType','_createHandler','194802AEAyWE','clearUnit','_throwTelemetryCollaborationNewChangeset','_changesetSessionId','unitType','socket\x20open.','length','csRejEvent','getTypeOfUnitAdded$','createSocket','_closedUnits','isArray','localeService','HEARTBEAT_TIMEOUT','_refreshUnitPermission','fetching\x20missing\x20changesets\x20from\x20','LIVESHARE_TERMINATE','send','setConfig','objects','_replayCachedMutations','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','max','_transformUndoredo','submit\x20changeset\x20error!','_onRemoteRetry','_onLocalMutation','subUnitId','_entityInit$','_adapter','_getSocketChannel','dispose','charCodeAt','_onOffline','saveAttachment','complete','CLOSE_ROOM','name','_transformRemoteChangesetByIMECache','_onConflict','version','post','_sessionChannels','_pendingMutations','_configService','FETCH_MISS','originalMeta','connection\x20error','_sheetTransformSelectionsService','_config','changesets','_onRemoteACK','getOwnPropertyDescriptor','/resources','includes','[CollaborationEntity]','transformMutationsWithChangeset','_onUserJoin','memberID','shouldCloseConn','_singleActiveUnitService','_substituteUndoStack','_initUnitPermissionChange','unknown','HEARTBEAT','_isPermissionRej','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','loadUnitOfRevision','NEW_CHANGESETS','LIVESHARE_OPERATION','_undoRedoService','/rev/','startsWith','every','_roomMembers','url','_clearRetryConnectingTimer','NO_OTHER_CLIENTS_EDITING','_HTTPService','session.join-failed','apply','LIVESHARE_REQUEST_HOST','_executeRemoteChangeset','Base','type','_tryReconnect','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','/universer-api/snapshot/','_checkMissing','confirm','columnGroups','toString','_transitionLocked','onRemoteAck','_changesetReqId','getTime','waitForRoom$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_createSocket','_clearScheduledTask','initWorkbookPermissionChange','_waitCount','_transformIMECache','localCacheService','subject','_decreaseWaiting','online$','_status$','[UniverCollaborationClientPlugin]','_transformService','_hasSessionsForEndpoint','message$','_getAPIPrefixPath','_scheduleCollaborationTimeoutTimer','getCollabEntity','_resendTimeout','failed\x20to\x20apply\x20missed\x20changesets!','executeCommand','method','closeSession','session.room-not-exists','collabWebSocketUrl','onSyncEditingCollabCursor','getImage','readyForCollab','list','map','constructor','_onCombEvent','PSEUDO_FETCH_MISSING_RESULT','_httpService','UNIVER_COLLABORATION_CLIENT_PLUGIN','deepClone','_getConfig','localUnitId','actions','_disableEditing','updateCollaborator','values','_revisionService','[OfflineState]:\x20received\x20acknowledgement.','{fileID}','_event$','authzUrl','onRemoteChangeset','1932642WPImRo','endsWith','onStarting','objectId','docStateChange$','duration','USERS_ENTER','COMPRESS_MUTATION_APPLY','create','dispose$','interceptor','_toggleOnline','getUnitId','getMemberID','removeMember','entityInit$','OFFLINE','snapshot','resolveUnit','_onFetchMissResult','OTHER_CLIENT_EDITING','_pendingSessions','_getCtorByUniverInstanceType','unitDisposed$','pending','socketReady','IDLE','entries','saveSnapshot','HELLO','UNIVER_BASE','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','emitEvent','_resolveSessionIdentity','toggleOffline','onPrepareTransformSelections','getResourcesRequest','userID','_getSignURL','transformSelections','[SyncedState]:\x20received\x20acknowledgement.','next','synced','_listenToNetworkCondition','maxSize','BASE64','_waitForHeartbeatResponse','_createInitialState','disableLocalCache','OPTIONAL','INGEST','/allowed','/universer-api/uniscript','_acknowledgedAwaitingRevision','onlyLocal','_clearUndo','socketMessageSubscription','onRemoteRetry','PERSON','reverse','&assign=','session','reconnect','_collaborationTimeoutTimer','addImageSourceCache','_commentService','endpointKey','infoRsp','roles','socket$','_getUndoStack','data','editingUnit','startTime','_transformStack','collaboratorID','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_showConflictNotification','/universer-api/authz','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_removeRoom','_identity','_lockTransition','toLocal','packageName','_prepareConflictRecovery','_createSession','UUID','_tryEnsureSocket','catch','_sendHeartbeat','has','endpoint','size','COMPRESS_MUTATION_SEND','resend','\x20-\x20','updateOfflineData','loadPdf','_injector','encode','UNIVER_BOARD','_schedule','fromCharCode','univer-pro.collaboration-client.network-condition.service','_startCollaboration','routeKey','CONFLICT_CACHE_CLEAR_FAILED','_onJoinRoomEvent','_memberService','csAckEvent','batchAllowed','unitId','_roomCreated$','_onRemoteChangeset','_onRemoteRejected','_members$','target','href','_collaborationUIEventService','_collaborationSessionService','MSG_FOR_ERROR','onCommentUpdate','signUrlServerUrl','uploadFileServerUrl','_getRedoStack','_docStateChangeManagerService','onTransformState','collaMsg','cmd','LIVESHARE_FETCH_OPERATIONS','requestParams','_permissionService','_acknowledgeAwaitingIfReady','transformUndoRedo','replace','getValue','getUnitType','[CollaborationUndoRedoService]','slice','hasOwnProperty','_redoStacks','RETRY_CONNECTING_MAX_COUNT','_transformStateCache','_resendTimer','_shouldReportTelemetry','fetchThroughInterceptors','_networkConditionService','get','textRanges','_socketService','sessionStatus','JOIN','encodeURIComponent','isCompositionEnd','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','subscribe','objectType','state','objectID','_exhaustRemoteChangesetQueue','getSnapshotAPIPath','find','retryCount','sendChangesetTimeout','withCredentials','setShowComponents','symbol','session.room-permission-denied','JOIN_ROOM_FAILED','onTransformRemoteChangesetByStateCache','[CollaborationSession]','updateCursorEvent','loadOfflineData','liveShareOperation','/new_changes','LEAVE','close','session.room-full','_fetchMissChangesets','RECV','onLocalMutation','liveShareNewHost','error$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','&source=','getMember','_snapshotService','/universer-api/oidc/authpage','disposeWithMe','UPDATE_PERMISSION_OBJ','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onSendChangeset','_socket','_onRecvEvent','getCurrentRevOfUnit','asObservable','getFocusedUnit','/universer-api/file/{fileID}/sign-url','_acknowledgeAwaiting','members$','_handler','unitLoaded$','[PendingState]:\x20received\x20rejection.','eventID','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_initDependencies','[CollaborationSessionService]:\x20socket\x20error','upload','_transformSelections','clear','_unlockTransition','status','getConfig','SYNCED','_clearRedo','params','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','470816adDheL','1428652CamFSm','awaiting','/universer-api/user/session-ticket','debug','m2Prime','[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.','event$','/collaborator','loginUrlKey','snapshotServerUrl','PENDING','defineProperty','set','listCollaborators','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','some','SUBMIT_CHANGESET_TIMEOUT','createCollaborator','_getAPIPrefix','getCurrentSelections','_showConflictProcessingNotification','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNISCRIPT_RUN','supports','_toggleOffline','loadSheet','socketService','_replaceFileID','result','base-ui.attachment-io.service','PERMISSION_DENIED','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','resourceIDs','unitInfo$','_unitInfo$','_emitMembers','Univer','UnitEmbedded','onStateChange','getUploadOptions','_remoteChangesetQueue','_eventService','_commentUpdate$','ERROR_IMAGE','UNIVER_SLIDE','toRemote','&to=','9035496RzXAed','SOCKET_FAILED','retryConnectingTimer','_submitChangeset','cfgEnableObjInherit','Edit','_startTelemetryCollaborationNewChangeset','now','_initRequestHeader','joinEvent','COLLABORATION_ENDPOINT_INVALID','60HaRlcv','missingChangesets','/block/','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','append','onRemoteRej','unit','delete','getRoom','_updateUnitPermissionPoint','state$','fromCollab','close$','_sessionStatus$','JOIN_ROOM_NOT_EXISTS','workbook','open$','iterator','_joinRoom','hostname','reduce','init','LIVESHARE_NEW_HOST','reqId','_telemetryInfo','subType','@univerjs-pro/collaboration-client','_maxTotalRetryTimeout','src','clearOfflineData','enableAuthServer','_rescheduleHeartbeat','saveChangeset','mutations','getSheetBlock','collaboration-client.local-cache-service','_localeService','title','_upload','__splitChunk__','socket\x20close','candidateSocket','_socketChannels','onTransformIME','SHOULD_CLOSE_CONN','_socketMessageSubscription','unsubscribe','onMutationExecutedForCollab','prototype','_getDownloadEndpointURL','_type','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_init','[OfflineState]:\x20received\x20rejection.','/-/object/list','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_collabSessionService','univer-pro.collaboration-client-socket-service','DEFAULT_FILE_NAME','_compressMutationService','UNIVER_SHEET','2158568GwvhvB','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','object','_queuedRemoteChangesets','_members','\x20to\x20','action','sessionStatus$','changeset','c2Prime','[CollaborationSessionService]','sendHeartbeatTimer','getAllMembers','loadSlide','CHANGESET_REJ','_updateStatus','PERMISSION_REJ','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','registerHTTPInterceptor','fetchMiss','_state','_substituteRedoStack','body','transformStack\x20failed!','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','FileId','enableOfflineEditing','session.room-cnt-exceeds','selections','/object/','_collaborationPaused','refreshPermission','call','_onUserLeave','number','change$','_onMessage','_incrementRevisionNumber','findIndex','ws://127.0.0.1:8000/universer-api/comb/connect','rollback','collaboration-client.config','text-x','sort','csShouldRetryEvent','_change$','unitID','Workbook','CHANGESET_SHOULD_RETRY','_unitLoaded$','getCollabEntity$','UPDATE_CURSOR','onTransformSelections','/fetchmissing?from=','appendMutation','_localCacheService','AWAITING','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','listRoles','_imageSourceCache','FETCH_MISSING','onMissingChangesets','_awaitingChangeset','univer-pro.collaboration-client.single-active-unit-service','HEARTBEAT_INTERVAL','_registerDependencies','CONFLICT_PROCESSING','_entities','collaboration_new_changeset','newCsEvent','objectPermissionTypes','Failed\x20to\x20update\x20permission\x20point','blockRanges','code','_getCurrentRevision','AWAITING_WITH_PENDING','_logService','/object','avatar','transformChangesets','x-univer-host','push','pipe','_resendWithTimeout','_isEchoedAwaitingChangeset','not_collab','ERROR_EXCEED_SIZE','_doCreateSocket','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_sessions','put','_authzIoService','SUCCUSS','Error\x20on\x20receiving\x20event','getSheetId','_createInitialStateImpl','onMissedChangesetFetched','SNAPSHOT_URL_KEY','_onConnectionFailed','toggleOnline','sid','updateMember','_initCloseConn','updatePermissionPoint','COMMENT_UPDATE','add','Board','commentUpdateEvent','_univerInstanceService','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','JOIN_ROOM_PERMISSION_DENIED','_state$','backupOfflineData','file','min','_handleRemoteChangesets','accept','_instanceService','permissionRejEvent','reject','allowed','_sender','USERS_LEAVE','enableSingleActiveInstanceLock','UNIVER_DOC','range','requireSession','OTHER_CLIENTS_EDITING','getUnit','UNIVER_PDF','_clearCollaborationTimeoutTimer','_clearTimeoutTimer','setWaitCount','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_handlerCallback'];_0x3253=function(){return _0x373357;};return _0x3253();}Bn=H([V(0x0,_0x4c5cd7),V(0x1,_0xf41dc9)],Bn);const Vn=_0x1db16f(_0x5c9f94(0x1c4));let Hn=class{constructor(_0x35f02b,_0x36b0d3,_0x1e5923){const _0x13f33c=_0x5c9f94;this[_0x13f33c(0x379)]=_0x35f02b,this[_0x13f33c(0x323)]=_0x36b0d3,this[_0x13f33c(0x28a)]=_0x1e5923;}[_0x5c9f94(0x1ce)](){const _0x25e01d=_0x5c9f94;return this[_0x25e01d(0x37c)]()['attachment']??{};}async[_0x5c9f94(0x319)](_0x2fa195){const _0x418dfe=_0x5c9f94;let _0x15d88c=this[_0x418dfe(0x1ce)]();if(Un(_0x2fa195,_0x15d88c),_0x15d88c[_0x418dfe(0x19c)])return _0x15d88c['upload'](_0x2fa195);let _0x347955=await this[_0x418dfe(0x207)](_0x2fa195);return{'id':_0x347955,'name':_0x2fa195[_0x418dfe(0x31c)],'mimeType':_0x2fa195[_0x418dfe(0x34b)],'size':_0x2fa195[_0x418dfe(0x3e5)],'sourceType':_0x237f28[_0x418dfe(0x3df)],'source':_0x347955};}async['getAttachmentUrl'](_0x42f02b,_0x4a39dc){const _0x503279=_0x5c9f94;if(_0x4a39dc!==_0x237f28[_0x503279(0x3df)])return _0x42f02b;let _0x209d36=(await this[_0x503279(0x379)]['get'](this[_0x503279(0x3ae)]()['replace'](_0x503279(0x384),_0x42f02b)))['body'];if(_0x209d36[_0x503279(0x2dc)]&&_0x209d36[_0x503279(0x2dc)]['code']!==_0x1aa6bc['OK'])throw _0x209d36[_0x503279(0x2dc)];if(!_0x209d36[_0x503279(0x342)])throw Error(_0x503279(0x3a7));return _0x6adb79(_0x209d36[_0x503279(0x342)],this[_0x503279(0x212)]());}async[_0x5c9f94(0x207)](_0x3b6913){const _0x572a4d=_0x5c9f94;let _0x5c269c=this['_univerInstanceService'][_0x572a4d(0x191)](),_0x23b4c4=_0x5c269c==null?void 0x0:_0x5c269c[_0x572a4d(0x394)]();if(!_0x23b4c4)throw Error(_0x572a4d(0x28b));let _0x451d4d=new FormData();_0x451d4d[_0x572a4d(0x1e5)](_0x572a4d(0x28f),_0x3b6913);let _0x34d344=this['_getUploadFileURL']()+_0x572a4d(0x2eb)+_0x3b6913[_0x572a4d(0x3e5)][_0x572a4d(0x352)]()+_0x572a4d(0x185)+_0x4a6968[_0x572a4d(0x1cc)]+_0x572a4d(0x3c4)+encodeURIComponent(_0x23b4c4),_0x465762=(await this[_0x572a4d(0x379)][_0x572a4d(0x320)](_0x34d344,{'body':_0x451d4d}))[_0x572a4d(0x234)]['FileId'];if(typeof _0x465762!='string'||!_0x465762)throw Error(_0x572a4d(0x3d7));return _0x465762;}[_0x5c9f94(0x2bb)](){const _0x3270b9=_0x5c9f94;return this[_0x3270b9(0x37c)]()[_0x3270b9(0x148)]??_0x3270b9(0x2f4);}['_getSignURL'](){const _0x604f6=_0x5c9f94;return this[_0x604f6(0x37c)]()[_0x604f6(0x147)]??_0x604f6(0x192);}['_getDownloadEndpointURL'](){const _0x231a3e=_0x5c9f94;let _0x1c433c=this[_0x231a3e(0x37c)]();return _0x1c433c[_0x231a3e(0x2cf)]?_0x1c433c[_0x231a3e(0x2cf)]:typeof location<'u'?location[_0x231a3e(0x2db)]:_0x1c433c[_0x231a3e(0x148)]??'';}[_0x5c9f94(0x37c)](){const _0x1e8f31=_0x5c9f94;return this[_0x1e8f31(0x323)]['getConfig']('collaboration-client.config')??{};}};Hn=H([V(0x0,_0xcf8d3f(_0x145224)),V(0x1,_0xcf8d3f(_0xf41dc9)),V(0x2,_0xcf8d3f(_0x4c5cd7))],Hn);function Un(_0x3b0e8a,_0x309b8c){const _0x597de7=_0x5c9f94;var _0x400198;if(_0x309b8c['maxSize']!=null&&_0x3b0e8a[_0x597de7(0x3e5)]>_0x309b8c[_0x597de7(0x3b4)])throw Error(_0x597de7(0x3d4));if((_0x400198=_0x309b8c[_0x597de7(0x292)])!=null&&_0x400198[_0x597de7(0x2fd)]&&!_0x309b8c[_0x597de7(0x292)][_0x597de7(0x1b6)](_0x1c192d=>_0x3b0e8a[_0x597de7(0x34b)]===_0x1c192d||_0x3b0e8a[_0x597de7(0x31c)][_0x597de7(0x389)](_0x1c192d)||_0x1c192d[_0x597de7(0x389)]('/*')&&_0x3b0e8a[_0x597de7(0x34b)][_0x597de7(0x33f)](_0x1c192d[_0x597de7(0x157)](0x0,-0x1))))throw Error(_0x597de7(0x1a5));}let Wn=class{constructor(_0x433cc2,_0x2ccbf8,_0x511876){const _0xfdd60b=_0x5c9f94;this[_0xfdd60b(0x323)]=_0x433cc2,this['_httpService']=_0x2ccbf8,this[_0xfdd60b(0x303)]=_0x511876,this[_0xfdd60b(0x1f6)]();}[_0x5c9f94(0x1f6)](){const _0x5de832=_0x5c9f94;this[_0x5de832(0x379)][_0x5de832(0x230)]({'priority':0x1,'interceptor':(_0x268983,_0x35b39a)=>_0x35b39a(_0x268983)[_0x5de832(0x270)](_0x17473d(async _0x3d233e=>{const _0xb33244=_0x5de832;let _0xf4d83d=_0x3d233e;if(_0xf4d83d['status']===0x191){if(typeof window>'u')throw Error(_0xb33244(0x2e1));if(window[_0xb33244(0x350)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x15673f=window[_0xb33244(0x165)](window['location']['href']);window['location'][_0xb33244(0x142)]=this['_getLoginPath']()+'?url='+_0x15673f;}}return _0xf4d83d;}))});}[_0x5c9f94(0x2af)](){const _0x5db330=_0x5c9f94;let _0x52a5e2=this['_configService'][_0x5db330(0x1a1)](R);return(_0x52a5e2==null?void 0x0:_0x52a5e2[_0x5db330(0x1af)])??_0x5db330(0x188);}};Wn=H([V(0x0,_0xf41dc9),V(0x1,_0xcf8d3f(_0x145224)),V(0x2,_0xcf8d3f(_0x5c6337))],Wn);let Gn=class extends _0x588e84{constructor(_0x2c2538,_0x153402){const _0x526c8b=_0x5c9f94;super(),this['_HTTPService']=_0x2c2538,this[_0x526c8b(0x323)]=_0x153402,z(this,_0x526c8b(0x2d5),!0x1),this['_initMergeInterceptor']();}['_initMergeInterceptor'](){let _0x5c5053=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0xad30e1({'isMatch'(_0x52c42d){const _0x59b68c=_0x4bc2;var _0x338c8a;if(_0x52c42d[_0x59b68c(0x36d)]===_0x59b68c(0x2cd)&&(_0x338c8a=_0x52c42d[_0x59b68c(0x14f)])!=null&&_0x338c8a[_0x59b68c(0x234)]){let {objectID:_0x27e6dd,objectType:_0x5d856c}=_0x52c42d[_0x59b68c(0x14f)][_0x59b68c(0x234)]||{};if(!_0x27e6dd||_0x5d856c===void 0x0)return!0x1;let _0x54af4b=_0x5c5053[_0x59b68c(0x367)]()+'/'+_0x5d856c+_0x59b68c(0x23b)+encodeURIComponent(_0x27e6dd)+'/allowed';if(_0x52c42d['url']===_0x54af4b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2bb77b){const _0xda8f=_0x4bc2;var _0x228bd8;return(_0x228bd8=_0x2bb77b[_0xda8f(0x14f)])==null?void 0x0:_0x228bd8[_0xda8f(0x234)];},'mergeParamsToRequest'(_0x35d4b3,_0x254af3){const _0x3e6846=_0x4bc2;let _0x283388=_0x5c5053['_getAPIPrefixPath']()+_0x3e6846(0x2a5),_0x3623bf=_0x35d4b3[_0x3e6846(0x1f5)]((_0x916689,_0x14788b)=>{const _0x8c8867=_0x3e6846;let {unitID:_0x5017fc,objectID:_0xf427c3,objectType:_0x48054f,actions:_0x5e2988}=_0x14788b;return _0x916689[_0x5017fc]||(_0x916689[_0x5017fc]=Object[_0x8c8867(0x390)](null)),_0x916689[_0x5017fc][_0xf427c3]||(_0x916689[_0x5017fc][_0xf427c3]={'objectID':_0xf427c3,'objectType':_0x48054f,'actions':[]}),_0x916689[_0x5017fc][_0xf427c3]['actions']['push'](..._0x5e2988),_0x916689;},Object[_0x3e6846(0x390)](null)),_0x3e7cc8=[];for(let _0x2e51c1 in _0x3623bf)for(let _0x5a5a79 in _0x3623bf[_0x2e51c1]){let {actions:_0x3b5234,objectType:_0x41c9d4}=_0x3623bf[_0x2e51c1][_0x5a5a79],_0x37ddc7=[...new Set(_0x3b5234)];_0x3e7cc8[_0x3e6846(0x26f)]({'unitID':_0x2e51c1,'objectID':_0x5a5a79,'objectType':_0x41c9d4,'actions':_0x37ddc7});}return new _0x3b0f3b(_0x3e6846(0x2cd),_0x283388,{'headers':_0x254af3[_0x3e6846(0x2b9)],'withCredentials':_0x254af3[_0x3e6846(0x171)],'responseType':_0x254af3[_0x3e6846(0x2f5)],'body':{'requests':_0x3e7cc8}});}},{'distributeResult'(_0x55a5c1,_0x3983a0){const _0x27e3dd=_0x4bc2;let {objectActions:_0x9244a}=_0x55a5c1;return _0x3983a0[_0x27e3dd(0x375)](_0x365bcf=>{const _0x53d1ac=_0x27e3dd;let {unitID:_0x1cdb22,objectID:_0x326638,actions:_0x11eeb9}=_0x365bcf,_0x37f184=_0x9244a[_0x53d1ac(0x16e)](_0x17a90d=>_0x17a90d[_0x53d1ac(0x24c)]===_0x1cdb22&&_0x17a90d[_0x53d1ac(0x16b)]===_0x326638);return{'config':_0x365bcf,'result':{'actions':_0x11eeb9[_0x53d1ac(0x375)](_0x453276=>_0x37f184==null?void 0x0:_0x37f184[_0x53d1ac(0x37e)][_0x53d1ac(0x16e)](_0x1f3bcc=>_0x1f3bcc[_0x53d1ac(0x224)]===_0x453276))['filter'](_0x18f7ed=>!!_0x18f7ed),'error':_0x55a5c1[_0x53d1ac(0x2dc)]}};});}})}));}[_0x5c9f94(0x367)](){const _0x26f423=_0x5c9f94;let _0x5afca7=this[_0x26f423(0x323)][_0x26f423(0x1a1)](R);return(_0x5afca7==null?void 0x0:_0x5afca7['authzUrl'])??_0x26f423(0x3d6);}async[_0x5c9f94(0x390)](_0x5e7229){const _0x214416=_0x5c9f94;let _0xb63916=this[_0x214416(0x367)]()+'/'+_0x5e7229['objectType']+_0x214416(0x26b);return(await this[_0x214416(0x345)][_0x214416(0x320)](_0xb63916,{'body':_0x5e7229}))['body'][_0x214416(0x16b)]||'';}async[_0x5c9f94(0x374)](_0x15ef43){const _0x939da5=_0x5c9f94;let _0x9c5389=this[_0x939da5(0x367)]()+_0x939da5(0x217);return(await this['_HTTPService'][_0x939da5(0x320)](_0x9c5389,{'body':_0x15ef43}))[_0x939da5(0x234)][_0x939da5(0x30a)];}async['update'](_0x339116){const _0x32806a=_0x5c9f94;var _0x14e500;let _0x73cdc7=this[_0x32806a(0x367)]()+'/'+_0x339116[_0x32806a(0x169)]+_0x32806a(0x23b)+encodeURIComponent(_0x339116[_0x32806a(0x16b)]),_0x1146bc=await this[_0x32806a(0x345)][_0x32806a(0x278)](_0x73cdc7,{'body':_0x339116});if((_0x1146bc==null||(_0x14e500=_0x1146bc['body'])==null||(_0x14e500=_0x14e500['error'])==null?void 0x0:_0x14e500[_0x32806a(0x267)])!==0x1)throw Error(_0x32806a(0x265));}async[_0x5c9f94(0x296)](_0x5427a3){const _0x3ac84b=_0x5c9f94;let _0x3cd743=this['_getAPIPrefixPath']()+'/'+_0x5427a3[_0x3ac84b(0x169)]+'/object/'+encodeURIComponent(_0x5427a3['objectID'])+_0x3ac84b(0x3bb);return(await this[_0x3ac84b(0x345)][_0x3ac84b(0x320)](_0x3cd743,{'body':_0x5427a3}))[_0x3ac84b(0x234)][_0x3ac84b(0x37e)];}async[_0x5c9f94(0x13b)](_0x41764d){const _0x4e12db=_0x5c9f94;let _0x512d25=this[_0x4e12db(0x367)]()+_0x4e12db(0x2a5);return(await this['_HTTPService']['post'](_0x512d25,{'body':{'requests':_0x41764d}}))[_0x4e12db(0x234)][_0x4e12db(0x2e0)];}async[_0x5c9f94(0x258)](_0x3c6f2b){const _0x17db54=_0x5c9f94;let _0x7408ea=this['_getAPIPrefixPath']()+'/'+_0x3c6f2b[_0x17db54(0x169)]+'/role',_0x341295=await this[_0x17db54(0x345)][_0x17db54(0x320)](_0x7408ea,{'body':_0x3c6f2b});return{'roles':_0x341295[_0x17db54(0x234)][_0x17db54(0x3cc)],'actions':_0x341295[_0x17db54(0x234)]['actions']};}async['deleteCollaborator'](_0x5e9aac){const _0x23ad22=_0x5c9f94;let _0x40ca8d=this[_0x23ad22(0x367)]()+_0x23ad22(0x1ae);await this[_0x23ad22(0x345)][_0x23ad22(0x1e8)](_0x40ca8d,{'params':{'collaboratorID':_0x5e9aac[_0x23ad22(0x3d3)],'objectID':_0x5e9aac['objectID'],'unitID':_0x5e9aac[_0x23ad22(0x24c)]}});}async[_0x5c9f94(0x380)](_0x47a10b){const _0x4eb152=_0x5c9f94;let _0x5dfc0f=this[_0x4eb152(0x367)]()+'/collaborator';await this[_0x4eb152(0x345)]['patch'](_0x5dfc0f,{'body':_0x47a10b});}async[_0x5c9f94(0x1b8)](_0x5c684c){const _0x25ffc4=_0x5c9f94;let _0x214b6c=this[_0x25ffc4(0x367)]()+_0x25ffc4(0x1ae);await this[_0x25ffc4(0x345)][_0x25ffc4(0x320)](_0x214b6c,{'body':_0x5c684c});}async[_0x5c9f94(0x1b4)](_0x4115a5){const _0x10f6ce=_0x5c9f94;let _0x501042=this[_0x10f6ce(0x367)]()+_0x10f6ce(0x1ae),_0x34388e=await this['_HTTPService'][_0x10f6ce(0x160)](_0x501042,{'params':{'objectID':_0x4115a5[_0x10f6ce(0x16b)],'unitID':_0x4115a5[_0x10f6ce(0x24c)]}});return this[_0x10f6ce(0x2ef)](_0x34388e['body'][_0x10f6ce(0x1da)]??!0x1),_0x34388e[_0x10f6ce(0x234)][_0x10f6ce(0x2cc)];}async['putCollaborators'](_0x1dc90e){const _0x5a6668=_0x5c9f94;let _0x236424=this[_0x5a6668(0x367)]()+_0x5a6668(0x1ae);await this['_HTTPService'][_0x5a6668(0x278)](_0x236424,{'body':_0x1dc90e});}['setCfgEnableObjInherit'](_0xfc4865){this['_cfgEnableObjInherit']=_0xfc4865;}['getCfgEnableObjInherit'](){const _0x20e221=_0x5c9f94;return this[_0x20e221(0x2d5)];}};Gn=H([V(0x0,_0xcf8d3f(_0x145224)),V(0x1,_0xcf8d3f(_0xf41dc9))],Gn);function Kn(_0x34cbbd){const _0x1ba6ae=_0x5c9f94;let _0x752ea0=atob(_0x34cbbd),_0x543b11=new Uint8Array(_0x752ea0[_0x1ba6ae(0x2fd)]);for(let _0x2dffcf=0x0;_0x2dffcf<_0x752ea0[_0x1ba6ae(0x2fd)];_0x2dffcf++)_0x543b11[_0x2dffcf]=_0x752ea0[_0x1ba6ae(0x317)](_0x2dffcf);return _0x543b11;}function qn(_0x25b2b4){const _0x5c3e3b=_0x5c9f94;let _0xe155cc='';for(let _0xc5bc2c=0x0;_0xc5bc2c<_0x25b2b4[_0x5c3e3b(0x2fd)];_0xc5bc2c++)_0xe155cc+=String[_0x5c3e3b(0x3ef)](_0x25b2b4[_0xc5bc2c]);return btoa(_0xe155cc);}function Jn(_0x28a02e,_0x45134b){let _0xae7933=Kn(_0x45134b),_0x569c4a=_0x862e1b(0x10),_0x5e6e37=_0xd5b70f(_0xae7933,_0x569c4a)['encrypt'](_0x50e238(_0x28a02e));return qn(_0x496bb6(_0x569c4a,_0x5e6e37));}function Yn(){const _0x41d6a9=_0x5c9f94;let _0x2af3d9=_0xcad4c5()['__Key__'];if(typeof window<'u'&&window['location']!==void 0x0&&_0x2af3d9){let _0x383d54={'time':Math['floor'](Date[_0x41d6a9(0x1dd)]()/0x3e8),'domain':location[_0x41d6a9(0x1f4)]};return Jn(JSON[_0x41d6a9(0x2d6)](_0x383d54),_0x2af3d9);}}let Xn=class{constructor(_0x1de4ca){const _0x44a756=_0x5c9f94;this[_0x44a756(0x379)]=_0x1de4ca,this[_0x44a756(0x1de)]();}[_0x5c9f94(0x1de)](){const _0x3d1bda=_0x5c9f94;this[_0x3d1bda(0x379)]['registerHTTPInterceptor']({'interceptor':(_0x10a715,_0x713874)=>{const _0x3a7d70=_0x3d1bda;let _0x3b6fc3=Yn();return _0x3b6fc3&&_0x10a715[_0x3a7d70(0x2b9)][_0x3a7d70(0x1b3)](_0x3a7d70(0x26e),_0x3b6fc3),_0x713874(_0x10a715);}});}};Xn=H([V(0x0,_0xcf8d3f(_0x145224))],Xn);let Zn=class extends _0x468ac5{constructor(_0x4904f8,_0x3e7236,_0x397c17){const _0x17049d=_0x5c9f94;super(),this[_0x17049d(0x26a)]=_0x4904f8,this[_0x17049d(0x187)]=_0x3e7236,this['_localCacheService']=_0x397c17,z(this,'_unitInfo$',new _0x1946cb(null)),z(this,_0x17049d(0x24f),new _0x4e03af()),z(this,_0x17049d(0x1c8),this[_0x17049d(0x1c9)][_0x17049d(0x190)]()),z(this,_0x17049d(0x196),this[_0x17049d(0x24f)][_0x17049d(0x190)]());}[_0x5c9f94(0x316)](){const _0x30ff7d=_0x5c9f94;super[_0x30ff7d(0x316)](),this['_unitLoaded$'][_0x30ff7d(0x31a)](),this[_0x30ff7d(0x1c9)][_0x30ff7d(0x31a)]();}async[_0x5c9f94(0x33a)](_0x2ee901,_0x3ac394,_0x467ca2,_0x9386df){const _0x5be3fb=_0x5c9f94;this[_0x5be3fb(0x1c9)][_0x5be3fb(0x3b1)]({'unitId':_0x2ee901,'type':_0x3ac394,'subUnitId':_0x9386df});let _0xf109ec=null;switch(_0x3ac394){case _0x2efadb[_0x5be3fb(0x21d)]:_0xf109ec=await this[_0x5be3fb(0x187)][_0x5be3fb(0x1c0)](_0x2ee901,_0x467ca2,void 0x0,{'initialSubUnitId':_0x9386df});break;case _0x2efadb[_0x5be3fb(0x29a)]:_0xf109ec=await this[_0x5be3fb(0x187)][_0x5be3fb(0x2f3)](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x1d3)]:_0xf109ec=await this['_snapshotService'][_0x5be3fb(0x22b)](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x3ed)]:_0xf109ec=await this[_0x5be3fb(0x187)]['loadBoard'](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x3a6)]:_0xf109ec=await this[_0x5be3fb(0x187)]['loadBase'](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x29f)]:_0xf109ec=await this[_0x5be3fb(0x187)][_0x5be3fb(0x3ea)](_0x2ee901,_0x467ca2);break;default:this['_logService'][_0x5be3fb(0x2dc)](_0x5be3fb(0x2a6),_0x5be3fb(0x257));}return _0xf109ec&&this[_0x5be3fb(0x24f)][_0x5be3fb(0x3b1)](_0xf109ec),_0xf109ec;}async[_0x5c9f94(0x2e6)](_0x5da47e,_0xbab6f1,_0x2d1b21){const _0x12982e=_0x5c9f94;var _0x3e3a57;this['_unitInfo$'][_0x12982e(0x3b1)]({'unitId':_0x5da47e,'type':_0xbab6f1,'subUnitId':_0x2d1b21});let _0x4c4dc6=0x0,_0x1fa9f6=await((_0x3e3a57=this['_localCacheService'])==null?void 0x0:_0x3e3a57['loadOfflineData'](_0x5da47e));return _0x1fa9f6&&(_0x1fa9f6[_0x12982e(0x2d1)]||_0x1fa9f6[_0x12982e(0x202)]['length']!==0x0)&&(_0x4c4dc6=_0x1fa9f6['rev']),_0x4c4dc6===0x0&&this['_logService'][_0x12982e(0x1aa)](_0x12982e(0x2a6),_0x12982e(0x1c6)),this[_0x12982e(0x33a)](_0x5da47e,_0xbab6f1,_0x4c4dc6,_0x2d1b21);}};Zn=H([V(0x0,_0x3981ee),V(0x1,_0xcf8d3f(_0x5dfed7)),V(0x2,_0x1da68f(U))],Zn);let Qn=class{constructor(_0x24363d,_0x2dae57,_0x295e65){const _0x57530a=_0x5c9f94;this[_0x57530a(0x379)]=_0x24363d,this[_0x57530a(0x323)]=_0x2dae57,this[_0x57530a(0x28a)]=_0x295e65,z(this,_0x57530a(0x35c),0x0),z(this,_0x57530a(0x24b),new _0x4e03af()),z(this,_0x57530a(0x241),this[_0x57530a(0x24b)]),z(this,_0x57530a(0x259),new Map());}[_0x5c9f94(0x2a2)](_0x276dac){const _0x1e0e33=_0x5c9f94;this[_0x1e0e33(0x35c)]=_0x276dac,this[_0x1e0e33(0x24b)][_0x1e0e33(0x3b1)](_0x276dac);}['getImageSourceCache'](_0x149c1e,_0x1b672c){const _0x19dce6=_0x5c9f94;if(_0x1b672c===_0x237f28[_0x19dce6(0x3b5)]){let _0x538383=new Image();return _0x538383[_0x19dce6(0x1fd)]=_0x149c1e,_0x538383;}return this[_0x19dce6(0x259)][_0x19dce6(0x160)](_0x149c1e);}[_0x5c9f94(0x3c8)](_0x4d1bd3,_0x322abc,_0x5e6949){const _0x44f0e6=_0x5c9f94;_0x322abc!==_0x237f28[_0x44f0e6(0x3b5)]&&_0x5e6949!=null&&this[_0x44f0e6(0x259)]['set'](_0x4d1bd3,_0x5e6949);}async[_0x5c9f94(0x372)](_0x53828b){const _0x3da4fb=_0x5c9f94;try{let _0x3a72c7=this[_0x3da4fb(0x1c2)](this[_0x3da4fb(0x3ae)](),''+_0x53828b),_0x24aba1=(await this[_0x3da4fb(0x379)][_0x3da4fb(0x160)](_0x3a72c7))[_0x3da4fb(0x234)];if(_0x24aba1[_0x3da4fb(0x2dc)]&&_0x24aba1[_0x3da4fb(0x2dc)][_0x3da4fb(0x267)]===_0x1aa6bc['OK']){let _0x21a1fc=_0x6adb79(_0x24aba1['url'],this[_0x3da4fb(0x212)]());return Promise[_0x3da4fb(0x2aa)](_0x21a1fc);}return Promise[_0x3da4fb(0x295)](_0x24aba1[_0x3da4fb(0x2dc)]);}catch(_0x19e9f7){return Promise['reject'](_0x19e9f7);}}async[_0x5c9f94(0x2f1)](_0xb233ab){const _0x11884c=_0x5c9f94;let _0x1b60ac='';if(!_0x3f4112[_0x11884c(0x32d)](_0xb233ab['type']))return this[_0x11884c(0x360)](),Promise[_0x11884c(0x295)](Error(_0x47a5be['ERROR_IMAGE_TYPE']));if(_0xb233ab['size']>_0x4b738e())return this[_0x11884c(0x360)](),Promise[_0x11884c(0x295)](Error(_0x47a5be[_0x11884c(0x274)]));try{let _0x400e8e=new FormData();_0x400e8e['append'](_0x11884c(0x28f),_0xb233ab);let _0xf0ce69=this[_0x11884c(0x28a)][_0x11884c(0x191)](),_0x209adc=_0xf0ce69==null?void 0x0:_0xf0ce69[_0x11884c(0x394)]();if(!_0x209adc)throw Error('unitId\x20is\x20not\x20found');let _0x58be14=this[_0x11884c(0x2bb)]()+_0x11884c(0x2eb)+_0xb233ab[_0x11884c(0x3e5)]['toString']()+'&source='+_0x4a6968[_0x11884c(0x1cc)]+'&assign='+encodeURIComponent(_0x209adc),_0x1a423f={'body':_0x400e8e},_0x126658=(await this[_0x11884c(0x379)][_0x11884c(0x320)](_0x58be14,_0x1a423f))['body'];if(typeof _0x126658[_0x11884c(0x237)]!=_0x11884c(0x2df))return this['_decreaseWaiting'](),Promise['reject'](Error(_0x47a5be['ERROR_IMAGE']));_0x1b60ac=_0x126658[_0x11884c(0x237)];}catch{return this[_0x11884c(0x360)](),Promise['reject'](Error(_0x47a5be[_0x11884c(0x1d2)]));}return new Promise((_0x2c3ee7,_0x328741)=>{const _0x959bed=_0x11884c;let _0x4078ba=new FileReader();_0x4078ba['readAsDataURL'](_0xb233ab),_0x4078ba[_0x959bed(0x2c6)]=_0x46e8f9=>{const _0x5e5f84=_0x959bed;var _0x3974da;let _0x25bcc6=(_0x3974da=_0x46e8f9['target'])==null?void 0x0:_0x3974da[_0x5e5f84(0x1c3)];if(_0x25bcc6==null){this[_0x5e5f84(0x360)](),_0x328741(Error(_0x47a5be['ERROR_IMAGE']));return;}_0x2c3ee7({'imageId':_0x53f585(0x6),'imageSourceType':_0x237f28['UUID'],'source':_0x1b60ac,'base64Cache':_0x25bcc6,'status':_0x47a5be[_0x5e5f84(0x27a)]}),this[_0x5e5f84(0x360)]();};});}[_0x5c9f94(0x2bb)](){const _0x13e2d8=_0x5c9f94;let _0x1b560b=this[_0x13e2d8(0x323)][_0x13e2d8(0x1a1)](R);return(_0x1b560b==null?void 0x0:_0x1b560b['uploadFileServerUrl'])??_0x13e2d8(0x2f4);}['_getSignURL'](){const _0x11b87c=_0x5c9f94;let _0x3a24f3=this[_0x11b87c(0x323)]['getConfig'](R);return(_0x3a24f3==null?void 0x0:_0x3a24f3[_0x11b87c(0x147)])??_0x11b87c(0x192);}[_0x5c9f94(0x212)](){const _0x404bd1=_0x5c9f94;let _0x4ae073=this[_0x404bd1(0x323)][_0x404bd1(0x1a1)](R);return(_0x4ae073==null?void 0x0:_0x4ae073[_0x404bd1(0x2cf)])??location[_0x404bd1(0x2db)];}[_0x5c9f94(0x1c2)](_0x334750,_0x4bfb05){const _0x5f029d=_0x5c9f94;return _0x334750[_0x5f029d(0x153)]('{fileID}',_0x4bfb05);}['_decreaseWaiting'](){const _0x2e4d9b=_0x5c9f94;--this[_0x2e4d9b(0x35c)],this['_change$']['next'](this['_waitCount']);}};Qn=H([V(0x0,_0xcf8d3f(_0x145224)),V(0x1,_0xf41dc9),V(0x2,_0xcf8d3f(_0x4c5cd7))],Qn);let $n=class{constructor(_0x46b94a,_0x27781d){const _0xf766cf=_0x5c9f94;this['_configService']=_0x46b94a,this[_0xf766cf(0x345)]=_0x27781d;}[_0x5c9f94(0x367)](){const _0x3bca50=_0x5c9f94;let _0x2cf988=this[_0x3bca50(0x323)][_0x3bca50(0x1a1)](R);return(_0x2cf988==null?void 0x0:_0x2cf988[_0x3bca50(0x386)])??_0x3bca50(0x3d6);}async['list'](_0x35469e){const _0x23e58f=_0x5c9f94;let _0x5636b1=this['_getAPIPrefixPath']()+_0x23e58f(0x1ae);return{'list':[{'title':'People','mentions':(await this[_0x23e58f(0x345)]['get'](_0x5636b1,{'params':{'objectID':_0x35469e[_0x23e58f(0x13c)],'unitID':_0x35469e[_0x23e58f(0x13c)]}}))['body'][_0x23e58f(0x2cc)][_0x23e58f(0x375)](_0x260795=>({'objectId':_0x260795['id'],'name':_0x260795['subject']['name'],'metadata':{'icon':_0x260795[_0x23e58f(0x35f)][_0x23e58f(0x26c)]},'label':_0x260795['subject'][_0x23e58f(0x31c)],'objectType':_0x4191c4[_0x23e58f(0x3c2)]})),'metadata':{},'type':_0x4191c4['PERSON']}]};}};$n=H([V(0x0,_0xcf8d3f(_0xf41dc9)),V(0x1,_0xcf8d3f(_0x145224))],$n);let er=class extends _0x468ac5{constructor(_0x4377ca,_0x29d2d6,_0x32a253,_0x58389f,_0x535ecf,_0x182284){const _0x158ea2=_0x5c9f94;super(),this[_0x158ea2(0x3eb)]=_0x4377ca,this[_0x158ea2(0x28a)]=_0x29d2d6,this['_permissionService']=_0x32a253,this['_authzIoService']=_0x58389f,this[_0x158ea2(0x144)]=_0x535ecf,this[_0x158ea2(0x143)]=_0x182284,z(this,_0x158ea2(0x301),new Set()),this['disposeWithMe'](()=>this['_closedUnits']['clear']()),this['disposeWithMe'](tr(this[_0x158ea2(0x28a)])['subscribe'](({unitId:_0x228d92})=>this['_closedUnits']['delete'](_0x228d92))),this[_0x158ea2(0x335)](),this[_0x158ea2(0x284)](),[_0x2efadb[_0x158ea2(0x29a)],_0x2efadb[_0x158ea2(0x1d3)],_0x2efadb[_0x158ea2(0x3a6)],_0x2efadb[_0x158ea2(0x3ed)]][_0x158ea2(0x2de)](_0x4c86ad=>{const _0xa20f25=_0x158ea2;this['disposeWithMe'](this['_univerInstanceService'][_0xa20f25(0x2ae)](_0x4c86ad)[_0xa20f25(0x168)](_0x54bc8f=>{const _0x269539=_0xa20f25;this['_closedUnits']['add'](_0x54bc8f[_0x269539(0x394)]()),this[_0x269539(0x3eb)]['get'](_0x126fa5)[_0x269539(0x2f8)](_0x54bc8f[_0x269539(0x394)]());}));});}[_0x5c9f94(0x284)](){const _0x267e35=_0x5c9f94;let _0x3ebf5b=async(_0xbf229a,_0x24787c)=>{const _0x579263=_0x4bc2;let _0x256d77=await this[_0x579263(0x144)][_0x579263(0x29c)](_0xbf229a);this[_0x579263(0x2e7)]||this[_0x579263(0x301)]['has'](_0xbf229a)||!this[_0x579263(0x28a)][_0x579263(0x29e)](_0xbf229a)||_0x256d77[_0x579263(0x1ad)]['pipe'](_0x5d4b25(_0x1e177c=>_0x1e177c[_0x579263(0x198)]===_0x538b71[_0x579263(0x20d)]),_0x212efd(_0x41572c(this['dispose$'],this[_0x579263(0x28a)][_0x579263(0x39f)][_0x579263(0x270)](_0x5d4b25(_0x3deb3c=>_0x3deb3c[_0x579263(0x394)]()===_0xbf229a)))))[_0x579263(0x168)](_0x2b1520=>{const _0x3c286a=_0x579263;let {reason:_0xca08e7}=_0x2b1520[_0x3c286a(0x3cf)];this[_0x3c286a(0x143)]['emitEvent']({'id':_0x3c286a(0x31b),'data':_0xca08e7}),this[_0x3c286a(0x301)][_0x3c286a(0x287)](_0xbf229a),this[_0x3c286a(0x3eb)][_0x3c286a(0x160)](_0x126fa5)['clearUnit'](_0xbf229a);let _0x5aef9f=nr(_0x24787c);_0x5aef9f!=null&&this[_0x3c286a(0x1ea)](_0xbf229a,_0x5aef9f,_0x4616a5[_0x3c286a(0x1db)],!0x1),this['_collaborationSessionService'][_0x3c286a(0x36e)](_0xbf229a);});};tr(this[_0x267e35(0x28a)])[_0x267e35(0x270)](_0x5d4b25(({unitId:_0x3f0195})=>!_0x21b585(_0x3f0195)),_0x212efd(this['dispose$']))[_0x267e35(0x168)](({type:_0x554274,unitId:_0xcf1d53})=>{const _0x583a09=_0x267e35;_0x3ebf5b(_0xcf1d53,_0x554274)['catch'](_0x52184f=>this[_0x583a09(0x3eb)]['get'](_0x3981ee)['error'](_0x52184f));});}[_0x5c9f94(0x335)](){const _0x25e5fd=_0x5c9f94;let _0x558582=async(_0x3d544a,_0x265344)=>{const _0x32c5b9=_0x4bc2;let _0x514726=await this['_collaborationSessionService'][_0x32c5b9(0x29c)](_0x3d544a);if(!(this[_0x32c5b9(0x2e7)]||this[_0x32c5b9(0x301)]['has'](_0x3d544a)||!this['_univerInstanceService'][_0x32c5b9(0x29e)](_0x3d544a))){if(_0x265344===_0x2efadb['UNIVER_SHEET']){let _0x2b4855=this[_0x32c5b9(0x3eb)][_0x32c5b9(0x160)](_0x4be829);await _0x2b4855[_0x32c5b9(0x35b)](_0x3d544a),_0x514726['event$'][_0x32c5b9(0x270)](_0x5d4b25(_0x1518e9=>_0x1518e9['eventID']===_0x538b71['UPDATE_PERMISSION_OBJ']),_0x212efd(_0x41572c(this[_0x32c5b9(0x391)],_0x514726[_0x32c5b9(0x1ad)][_0x32c5b9(0x270)](_0x5d4b25(_0x3780c3=>_0x3780c3['eventID']===_0x538b71['SHOULD_CLOSE_CONN'])),this[_0x32c5b9(0x28a)][_0x32c5b9(0x39f)]['pipe'](_0x5d4b25(_0x3a1ff8=>_0x3a1ff8['getUnitId']()===_0x3d544a)))))['subscribe'](_0xbc1cd0=>{const _0x4ae7ee=_0x32c5b9;let {objectId:_0x8623b6}=_0xbc1cd0['data'];_0x8623b6===_0x3d544a?_0x2b4855[_0x4ae7ee(0x35b)](_0x3d544a):_0x2b4855[_0x4ae7ee(0x23d)](_0x3d544a,_0x8623b6);});return;}_0x514726[_0x32c5b9(0x1ad)]['pipe'](_0x5d4b25(_0x50240e=>_0x50240e[_0x32c5b9(0x198)]===_0x538b71[_0x32c5b9(0x18a)]),_0x212efd(_0x41572c(this[_0x32c5b9(0x391)],_0x514726[_0x32c5b9(0x1ad)][_0x32c5b9(0x270)](_0x5d4b25(_0x142186=>_0x142186[_0x32c5b9(0x198)]===_0x538b71['SHOULD_CLOSE_CONN'])),this[_0x32c5b9(0x28a)][_0x32c5b9(0x39f)][_0x32c5b9(0x270)](_0x5d4b25(_0x494545=>_0x494545['getUnitId']()===_0x3d544a)))))[_0x32c5b9(0x168)](()=>{const _0x3b4874=_0x32c5b9;this[_0x3b4874(0x305)](_0x3d544a,_0x265344)['catch'](_0x266c41=>this[_0x3b4874(0x3eb)]['get'](_0x3981ee)[_0x3b4874(0x2dc)](_0x266c41));}),await this[_0x32c5b9(0x305)](_0x3d544a,_0x265344);}};tr(this[_0x25e5fd(0x28a)])[_0x25e5fd(0x270)](_0x5d4b25(({unitId:_0x5e6e2e})=>!_0x21b585(_0x5e6e2e)),_0x212efd(this[_0x25e5fd(0x391)]))[_0x25e5fd(0x168)](({type:_0x44ae8b,unitId:_0x5e2670})=>{const _0x4532e4=_0x25e5fd;_0x558582(_0x5e2670,_0x44ae8b)[_0x4532e4(0x3e1)](_0x3c29d3=>this[_0x4532e4(0x3eb)][_0x4532e4(0x160)](_0x3981ee)['error'](_0x3c29d3));});}async[_0x5c9f94(0x305)](_0x5e3722,_0x321d){const _0x3e7055=_0x5c9f94;let _0x333db5=nr(_0x321d);if(_0x333db5==null)return;let _0x18e1ed=this[_0x3e7055(0x3eb)]['get'](_0x126fa5);if(_0x18e1ed[_0x3e7055(0x1be)]({'unitId':_0x5e3722,'objectId':_0x5e3722,'objectType':_0x333db5})){await _0x18e1ed[_0x3e7055(0x2ab)](_0x5e3722);return;}let _0x1d2b20=this['_getUnitPermissionPoints'](_0x5e3722,_0x333db5);if(!_0x1d2b20[_0x3e7055(0x2fd)])return;let _0x26734f=await this[_0x3e7055(0x279)][_0x3e7055(0x296)]({'objectID':_0x5e3722,'objectType':_0x333db5,'unitID':_0x5e3722,'actions':_0x1d2b20['map'](({action:_0x299647})=>_0x299647)});this[_0x3e7055(0x2e7)]||this[_0x3e7055(0x301)][_0x3e7055(0x3e3)](_0x5e3722)||!this[_0x3e7055(0x28a)][_0x3e7055(0x29e)](_0x5e3722)||_0x26734f[_0x3e7055(0x2de)](_0x107e19=>{const _0x9754f3=_0x3e7055;let _0x2151e6=_0x107e19[_0x9754f3(0x224)],_0x1eb762=_0x107e19[_0x9754f3(0x296)];_0x2151e6!=null&&_0x1eb762!=null&&_0x1d2b20['filter'](_0x56cfff=>_0x56cfff[_0x9754f3(0x224)]===_0x2151e6)['forEach'](_0x1c72b6=>this['_permissionService'][_0x9754f3(0x285)](_0x1c72b6['id'],_0x1eb762));});}['_getUnitPermissionPoints'](_0x5ecd0c,_0x2a903e){const _0x18dd51=_0x5c9f94;let _0x3a42a8=[];return this[_0x18dd51(0x150)]['getAllPermissionPoint']()[_0x18dd51(0x2de)]((_0x436494,_0x3c799b)=>{const _0x340107=_0x18dd51;_0x436494[_0x340107(0x168)](_0x227bd5=>{const _0x1bd7c3=_0x340107;_0x227bd5['type']===_0x2a903e&&'unitId'in _0x227bd5&&_0x227bd5[_0x1bd7c3(0x13c)]===_0x5ecd0c&&(!('objectId'in _0x227bd5)||_0x227bd5[_0x1bd7c3(0x38b)]===_0x5ecd0c)&&_0x3a42a8['push']({'id':_0x3c799b,'action':_0x227bd5['subType']});})['unsubscribe']();}),_0x3a42a8;}[_0x5c9f94(0x1ea)](_0x5c046e,_0x522df5,_0x490560,_0x50a560){const _0x21e39a=_0x5c9f94;this[_0x21e39a(0x150)]['getAllPermissionPoint']()[_0x21e39a(0x2de)]((_0x5035d1,_0xb10ff2)=>{const _0x11f52e=_0x21e39a;let _0x549570=!0x1;_0x5035d1[_0x11f52e(0x168)](_0x45e766=>{const _0x551a51=_0x11f52e;_0x549570=_0x45e766[_0x551a51(0x34b)]===_0x522df5&&_0x45e766[_0x551a51(0x1fa)]===_0x490560&&'unitId'in _0x45e766&&_0x45e766[_0x551a51(0x13c)]===_0x5c046e&&(!(_0x551a51(0x38b)in _0x45e766)||_0x45e766[_0x551a51(0x38b)]===_0x5c046e);})[_0x11f52e(0x20f)](),_0x549570&&this[_0x11f52e(0x150)]['updatePermissionPoint'](_0xb10ff2,_0x50a560);});}};er=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0x4c5cd7),V(0x2,_0x30415d),V(0x3,_0x18ec33),V(0x4,_0xcf8d3f(In)),V(0x5,_0xcf8d3f(B))],er);function tr(_0x4a66cd){const _0x4debd2=_0x5c9f94;return _0x41572c(...[_0x2efadb[_0x4debd2(0x21d)],_0x2efadb[_0x4debd2(0x29a)],_0x2efadb[_0x4debd2(0x1d3)],_0x2efadb[_0x4debd2(0x3ed)],_0x2efadb[_0x4debd2(0x3a6)]][_0x4debd2(0x375)](_0x4c5e9f=>_0x4a66cd[_0x4debd2(0x2ff)](_0x4c5e9f)['pipe'](_0x13126a(_0x5d04dc=>({'type':_0x4c5e9f,'unitId':_0x5d04dc[_0x4debd2(0x1e7)][_0x4debd2(0x394)]()})))));}function nr(_0x1d9e9e){const _0x519cf8=_0x5c9f94;switch(_0x1d9e9e){case _0x2efadb[_0x519cf8(0x21d)]:return _0x3490f2[_0x519cf8(0x24d)];case _0x2efadb[_0x519cf8(0x29a)]:return _0x3490f2['Document'];case _0x2efadb['UNIVER_SLIDE']:return _0x3490f2[_0x519cf8(0x2c1)];case _0x2efadb['UNIVER_BOARD']:return _0x3490f2[_0x519cf8(0x288)];case _0x2efadb[_0x519cf8(0x3a6)]:return _0x3490f2[_0x519cf8(0x34a)];default:return;}}let rr=class{constructor(_0x5238b4,_0x3eec89){const _0x4db05a=_0x5c9f94;this[_0x4db05a(0x323)]=_0x5238b4,this[_0x4db05a(0x379)]=_0x3eec89;}async[_0x5c9f94(0x2ee)](_0x29927c,_0x19dbca){const _0x1323c0=_0x5c9f94;var _0x36e064;let {unitID:_0x20f1f2,type:_0x41db79,revision:_0x5086c0=0x0}=_0x19dbca,_0x298e77=this[_0x1323c0(0x16d)]()+'/'+_0x41db79+_0x1323c0(0x2d4)+_0x20f1f2+_0x1323c0(0x33e)+_0x5086c0,_0x647daa=(await this['_httpService'][_0x1323c0(0x160)](_0x298e77))[_0x1323c0(0x234)],_0x1767da=(_0x36e064=_0x647daa[_0x1323c0(0x399)])==null?void 0x0:_0x36e064[_0x1323c0(0x1f0)];if(_0x1767da){let _0x336d24=_0x1767da==null?void 0x0:_0x1767da[_0x1323c0(0x325)];_0x1767da[_0x1323c0(0x325)]=_0x202300[_0x1323c0(0x3ec)](_0x523ae7(_0x336d24)),Object[_0x1323c0(0x3a3)](_0x1767da['sheets'])[_0x1323c0(0x2de)](([,_0x2e583d])=>{const _0x136127=_0x1323c0;let _0x51364c=_0x2e583d[_0x136127(0x325)];_0x2e583d['originalMeta']=_0x202300['encode'](_0x523ae7(_0x51364c));});}return _0x647daa;}async[_0x5c9f94(0x203)](_0x6b978a,_0x18b7c3){const _0x7533fe=_0x5c9f94;let {unitID:_0x2d8182,type:_0x371bae,blockID:_0x3ee0af}=_0x18b7c3,_0x336db8=this[_0x7533fe(0x1b9)]()+'/'+_0x371bae+_0x7533fe(0x2d4)+_0x2d8182+'/block/'+_0x3ee0af;return(await this['_httpService'][_0x7533fe(0x160)](_0x336db8))[_0x7533fe(0x234)];}async['getDeserializedSheetBlock'](_0x3320bb,_0x5a6cd9){const _0x44c37e=_0x5c9f94;let {unitID:_0x44413b,type:_0x675675,blockID:_0x4ae5b8}=_0x5a6cd9,_0x16e7e9=this[_0x44c37e(0x1b9)]()+_0x44c37e(0x1e3)+_0x675675+_0x44c37e(0x2d4)+_0x44413b+_0x44c37e(0x1e3)+_0x4ae5b8;return(await this['_httpService']['get'](_0x16e7e9))[_0x44c37e(0x234)];}async[_0x5c9f94(0x2e5)](_0x5cf28c,_0x5ac032){const _0x5238ba=_0x5c9f94;let {unitID:_0x4355b4,type:_0x1c4cfd,from:_0x6bb149,to:_0x1b154f}=_0x5ac032,_0x5527f8=this[_0x5238ba(0x1b9)]()+'/'+_0x1c4cfd+_0x5238ba(0x2d4)+_0x4355b4+_0x5238ba(0x253)+_0x6bb149+_0x5238ba(0x1d5)+_0x1b154f;return(await this['_httpService'][_0x5238ba(0x160)](_0x5527f8))['body'];}[_0x5c9f94(0x16d)](){const _0x38134d=_0x5c9f94;return this['_configService'][_0x38134d(0x1a1)](_0x38134d(0x27f))??this['_getAPIPrefix']();}[_0x5c9f94(0x1b9)](){const _0x300719=_0x5c9f94;let _0x29d741=this[_0x300719(0x323)][_0x300719(0x1a1)](R);return(_0x29d741==null?void 0x0:_0x29d741[_0x300719(0x1b0)])??'/universer-api/snapshot';}async[_0x5c9f94(0x3ac)](_0x287bd0,_0x1e68bb){const _0x198b90=_0x5c9f94;let _0x346317=_0x198b90(0x34e)+_0x1e68bb[_0x198b90(0x34b)]+_0x198b90(0x2d4)+_0x1e68bb[_0x198b90(0x24c)]+_0x198b90(0x32c);return(await this[_0x198b90(0x379)]['get'](_0x346317,{'params':{'resourceId':JSON[_0x198b90(0x2d6)](_0x1e68bb[_0x198b90(0x1c7)])}}))['body'];}[_0x5c9f94(0x3a4)](){const _0x4983f2=_0x5c9f94;throw Error(_0x4983f2(0x2ba));}['updateSnapshot'](){const _0x5d66f1=_0x5c9f94;throw Error(_0x5d66f1(0x2ba));}['saveSheetBlock'](){const _0x400062=_0x5c9f94;throw Error(_0x400062(0x2ba));}[_0x5c9f94(0x201)](){const _0x15d556=_0x5c9f94;throw Error(_0x15d556(0x2ba));}['copyFileMeta'](){const _0x4ac32a=_0x5c9f94;throw Error(_0x4ac32a(0x2ba));}['getLatestCsReqIdBySid'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};rr=H([V(0x0,_0xf41dc9),V(0x1,_0xcf8d3f(_0x145224))],rr);let ir=class extends _0xd03d1e{constructor(_0x956c0a,_0x2bdb67,_0x11a692,_0x3f4ce1,_0x3056ff,_0x55e8dc){const _0x2b431b=_0x5c9f94;super(_0x956c0a,_0x2bdb67,_0x11a692,_0x3f4ce1),this['_transformService']=_0x3056ff,this[_0x2b431b(0x26a)]=_0x55e8dc;}[_0x5c9f94(0x152)](_0x395a70,_0x558a0f){const _0x29c0a2=_0x5c9f94;let _0x9f703c=this[_0x29c0a2(0x3ce)](_0x395a70);if(_0x9f703c)try{let _0x52f1b3=this['_transformStack'](_0x9f703c,_0x558a0f);this['_substituteUndoStack'](_0x395a70,_0x52f1b3);}catch(_0x5e5206){this['_logService'][_0x29c0a2(0x2dc)](_0x29c0a2(0x156),_0x5e5206),this[_0x29c0a2(0x3bf)](_0x395a70);}let _0x45d103=this[_0x29c0a2(0x149)](_0x395a70);if(_0x45d103)try{let _0x6be077=this[_0x29c0a2(0x3d2)](_0x45d103,_0x558a0f);this[_0x29c0a2(0x233)](_0x395a70,_0x6be077);}catch(_0x152933){this['_logService'][_0x29c0a2(0x2dc)](_0x152933),this[_0x29c0a2(0x1a3)](_0x395a70);}}[_0x5c9f94(0x3bf)](_0x3fddf5){const _0x77dddc=_0x5c9f94;let _0x2f5439=this[_0x77dddc(0x3ce)](_0x3fddf5);_0x2f5439&&(_0x2f5439[_0x77dddc(0x2fd)]=0x0,this[_0x77dddc(0x22d)]());}[_0x5c9f94(0x1a3)](_0x392c3f){const _0x4acaaa=_0x5c9f94;let _0x54c221=this[_0x4acaaa(0x149)](_0x392c3f);_0x54c221&&(_0x54c221[_0x4acaaa(0x2fd)]=0x0,this[_0x4acaaa(0x22d)]());}[_0x5c9f94(0x334)](_0xf7be0a,_0x403d29){const _0x3a90f7=_0x5c9f94;this['_undoStacks'][_0x3a90f7(0x1b3)](_0xf7be0a,_0x403d29),this[_0x3a90f7(0x22d)]();}['_substituteRedoStack'](_0x17ceb2,_0x3ff0f9){const _0x2b9596=_0x5c9f94;this[_0x2b9596(0x159)][_0x2b9596(0x1b3)](_0x17ceb2,_0x3ff0f9),this[_0x2b9596(0x22d)]();}[_0x5c9f94(0x3d2)](_0x1eae08,_0x338173){const _0x48e737=_0x5c9f94;let _0x36fd20=[],_0x2a24a1=_0x338173,_0x38a116=_0x338173;for(let _0x592b3f=_0x1eae08[_0x48e737(0x2fd)]-0x1;_0x592b3f>=0x0;_0x592b3f--){let {unitID:_0x4995f4,undoMutations:_0x1fe217,redoMutations:_0x13ffb3}=_0x1eae08[_0x592b3f],_0x311652=this[_0x48e737(0x364)][_0x48e737(0x32f)](_0x2a24a1,_0x1fe217),_0x22bb5b=this[_0x48e737(0x364)][_0x48e737(0x32f)](_0x38a116,_0x13ffb3);if(_0x635ce5(_0x311652)||_0x635ce5(_0x22bb5b)){this[_0x48e737(0x26a)][_0x48e737(0x2dc)](_0x48e737(0x156),_0x48e737(0x235),_0x311652,_0x22bb5b);break;}_0x2a24a1=_0x311652[_0x48e737(0x2d3)],_0x38a116=_0x22bb5b['c1Prime'],_0x36fd20[_0x48e737(0x26f)]({'unitID':_0x4995f4,'undoMutations':_0x311652[_0x48e737(0x1ab)],'redoMutations':_0x22bb5b[_0x48e737(0x1ab)]});}return _0x36fd20[_0x48e737(0x3c3)]();}};ir=H([V(0x0,_0x4c5cd7),V(0x1,_0x397ef7),V(0x2,_0x316af7),V(0x3,_0xf41dc9),V(0x4,_0x173ca8),V(0x5,_0x3981ee)],ir);let ar=class extends _0x5b070b{constructor(_0x49ca30=gt,_0x29f8a2,_0x28acad,_0x2aedde){const _0x3e776a=_0x5c9f94;super(),this[_0x3e776a(0x328)]=_0x49ca30,this[_0x3e776a(0x26a)]=_0x29f8a2,this[_0x3e776a(0x3eb)]=_0x28acad,this[_0x3e776a(0x323)]=_0x2aedde;let {..._0x456779}=_0x195f67({},gt,this[_0x3e776a(0x328)]);if(!_0x456779[_0x3e776a(0x1c1)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x3e776a(0x328)]=_0x456779,this[_0x3e776a(0x323)]['setConfig'](R,_0x456779);}[_0x5c9f94(0x38a)](){const _0x13d033=_0x5c9f94;this[_0x13d033(0x323)][_0x13d033(0x309)](_0x4ee50c,this[_0x13d033(0x328)][_0x13d033(0x264)]??[]),this['_registerDependencies'](),this[_0x13d033(0x19a)]();}[_0x5c9f94(0x25f)](){const _0x6902e3=_0x5c9f94;var _0x353d8b,_0x381c48;this[_0x6902e3(0x3eb)]['has'](_0x34c2a3)&&this[_0x6902e3(0x26a)][_0x6902e3(0x2dc)](_0x6902e3(0x363),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x279331=_0x448bc4([[_0x34c2a3,{'useClass':ir}],[Nn,{'useValue':Pn()}],[In],[Mt],[Jt],[Wn],[Xn],[jt],[er],[B],[Zn],[An,{'useClass':this[_0x6902e3(0x328)][_0x6902e3(0x1c1)]}],[_0x1425c0,{'useClass':rr}],[_0x18ec33,{'useClass':Gn}],[_0x3b2d53,{'useClass':Qn}],[Vn,{'useClass':Hn}],[_0x2e02ae,{'useClass':$n}],[Ln],[Bn]],(_0x353d8b=this[_0x6902e3(0x328)])==null?void 0x0:_0x353d8b[_0x6902e3(0x2d8)]);if(!((_0x381c48=this[_0x6902e3(0x328)])!=null&&_0x381c48[_0x6902e3(0x299)])){let _0x2f0dfd=_0x279331[_0x6902e3(0x244)](([_0x2be234])=>_0x2be234===W);_0x2f0dfd!==-0x1&&_0x279331['splice'](_0x2f0dfd,0x1);}_0x11234a(this[_0x6902e3(0x3eb)],_0x279331);}['_initDependencies'](){const _0x5e0a4f=_0x5c9f94;var _0x1aff81,_0x2035ad;if(this[_0x5e0a4f(0x3eb)][_0x5e0a4f(0x160)](_0x145224)[_0x5e0a4f(0x230)]({'priority':0x14,'interceptor':_0x2c8f3e({'maxParallel':0x6})}),!((_0x1aff81=this['_config'])!=null&&_0x1aff81[_0x5e0a4f(0x238)])){var _0x236a52;(_0x236a52=this[_0x5e0a4f(0x3eb)][_0x5e0a4f(0x160)](U,_0x527f9b[_0x5e0a4f(0x3b9)]))==null||_0x236a52[_0x5e0a4f(0x3b8)]();}(_0x2035ad=this[_0x5e0a4f(0x328)])!=null&&_0x2035ad[_0x5e0a4f(0x1ff)]&&_0x393dc2(this[_0x5e0a4f(0x3eb)],[[Wn]]),_0x393dc2(this[_0x5e0a4f(0x3eb)],[[Xn],[Ln],[er]]);}};z(ar,'pluginName',_0x5c9f94(0x37a)),z(ar,_0x5c9f94(0x3dc),Rn),z(ar,_0x5c9f94(0x31f),zn),ar=H([_0x9817de(_0x2ecc84,_0x10430a,_0xfacf11),V(0x1,_0x3981ee),V(0x2,_0xcf8d3f(_0x19ff28)),V(0x3,_0xf41dc9)],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};