@univerjs-pro/collaboration-client 0.25.0 → 0.25.1

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 +11 -11
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1f8522=_0x249d;(function(_0xa10574,_0x2f0337){const _0x26b575=_0x249d,_0x3ab8c7=_0xa10574();while(!![]){try{const _0x29c06c=parseInt(_0x26b575(0x2a4))/0x1+-parseInt(_0x26b575(0xc9))/0x2*(-parseInt(_0x26b575(0x16a))/0x3)+parseInt(_0x26b575(0x191))/0x4+-parseInt(_0x26b575(0x193))/0x5+-parseInt(_0x26b575(0x145))/0x6+parseInt(_0x26b575(0xf9))/0x7+parseInt(_0x26b575(0x147))/0x8;if(_0x29c06c===_0x2f0337)break;else _0x3ab8c7['push'](_0x3ab8c7['shift']());}catch(_0x5a14e0){_0x3ab8c7['push'](_0x3ab8c7['shift']());}}}(_0x21a6,0xb24a8));import{CollaborationEvent as _0x27e67f,CompressMutationService as _0x4f4878,EmptyMutationInfo as _0x3b7ae1,ISnapshotServerService as _0x72942,ITransformService as _0x4f7ff9,RevisionService as _0x3c5693,SnapshotService as _0x5662c6,UniverCollaborationPlugin as _0x2fd190,b64DecodeUnicode as _0x376bcd,isTransformChangesetsSuccess as _0x1dbd0e,isTransformMutationsWithChangesetFailure as _0x17dd41,isTransformMutationsWithChangesetSuccess as _0x534268,mapDocumentTypeToUniverInstanceType as _0x6f4221,parseChangesetToProtocol as _0x12da55,parseProtocolChangeset as _0x13b02b,textEncoder as _0x2c7657,uuidv4 as _0x45dc0c}from'@univerjs-pro/collaboration';import{CommandType as _0x40b89a,DependentOn as _0x576a62,Disposable as _0x555def,DisposableCollection as _0x3e23a9,IAuthzIoService as _0xb4867c,ICommandService as _0x3a76f7,IConfigService as _0x3ba9f8,IContextService as _0x3ed1aa,ILogService as _0x1443cf,IMentionIOService as _0x5dc0a9,IPermissionService as _0x439c61,IUndoRedoService as _0x3b54de,IUniverInstanceService as _0x3a738f,Inject as _0x4f07a4,Injector as _0x44d080,JSONX as _0x329bf1,LocalUndoRedoService as _0x38014a,LocaleService as _0x220418,MentionType as _0x39f40b,Optional as _0x1cfc4d,Plugin as _0x2c42b9,Quantity as _0x2afa53,Rectangle as _0x522a87,RxDisposable as _0x3498fe,Tools as _0x49bc12,UniverInstanceType as _0x292cef,UserManagerService as _0x1e899d,Workbook as _0x1d942e,createIdentifier as _0x4bcee9,generateRandomId as _0x4fa431,isInternalEditorID as _0x2a8699,merge as _0x1b8645,mergeOverrideWithDependencies as _0x415d5a,registerDependencies as _0x2046a5,resolveWithBasePath as _0x4fcdae,sequenceExecute as _0x3bd5c0,toDisposable as _0x224a5f,touchDependencies as _0x156eb2}from'@univerjs/core';import{RichTextEditingMutation as _0x234ae8}from'@univerjs/docs';import{InsertSheetMutation as _0x5c656f,SetSelectionsOperation as _0x30f1f3,SheetPermissionInitController as _0x5e8e29,SheetsSelectionsService as _0x24181c,WorkbookEditablePermission as _0x14cd38}from'@univerjs/sheets';import{BehaviorSubject as _0x2acfcb,ReplaySubject as _0x40aa8b,Subject as _0x147a88,concatMap as _0x1d0115,firstValueFrom as _0x128fbd,map as _0x4d141e,merge as _0x340907,of as _0x3a835d,shareReplay as _0x60bd5a,take as _0x4abdb0,takeUntil as _0x56cc03}from'rxjs';import{CmdRspCode as _0x28282a,CombCmd as _0x15766e,ErrorCode as _0x5637ab,FileSource as _0x25f37b}from'@univerjs/protocol';import{ITelemetryService as _0x4f515e}from'@univerjs/telemetry';import{delay as _0x196d30,filter as _0x18abe6,map as _0x279c8c,take as _0x15baed,takeUntil as _0x328e45}from'rxjs/operators';import{HTTPRequest as _0x1b125d,HTTPService as _0x2e99a4,ISocketService as _0x1dbaaf,MergeInterceptorFactory as _0x5e53e1,ThresholdInterceptorFactory as _0x258eba,UniverNetworkPlugin as _0x4df7af}from'@univerjs/network';import{UniverLicensePlugin as _0xc5155e,getGlobalObject as _0x494156}from'@univerjs-pro/license';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0xf4198a,IImageIoService as _0x33c502,ImageSourceType as _0x570c35,ImageUploadStatusType as _0x528a72,getDrawingImageAllowSize as _0x487da1}from'@univerjs/drawing';import{cbc as _0xd0e4b3}from'@noble/ciphers/aes.js';import{concatBytes as _0x5b3153,randomBytes as _0x24b9a3,utf8ToBytes as _0x1fa3b3}from'@noble/ciphers/utils.js';const ut=_0x1f8522(0x28b),dt='/universer-api/user/session-ticket',ft='HEARTBEAT_INTERVAL',pt=_0x1f8522(0x13e),mt=0x4e20,ht=_0x1f8522(0x1af),gt='LOCAL_CACHE_INTERVAL',_t=0x3e8,vt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',yt=_0x1f8522(0xca);function bt(_0x4ac622){const _0x1adbbd=_0x1f8522;return JSON[_0x1adbbd(0x2fc)](_0x4ac622)[_0x1adbbd(0x10a)];}function F(_0x2166cc){'@babel/helpers - typeof';const _0x36bd4d=_0x1f8522;return F=typeof Symbol==_0x36bd4d(0x1aa)&&typeof Symbol[_0x36bd4d(0x20f)]==_0x36bd4d(0x19e)?function(_0x93310a){return typeof _0x93310a;}:function(_0x5a4ba3){const _0x2e5a5c=_0x36bd4d;return _0x5a4ba3&&typeof Symbol==_0x2e5a5c(0x1aa)&&_0x5a4ba3['constructor']===Symbol&&_0x5a4ba3!==Symbol[_0x2e5a5c(0x2b7)]?_0x2e5a5c(0x19e):typeof _0x5a4ba3;},F(_0x2166cc);}function xt(_0x3a4ad6,_0x10e2a8){const _0x3259c2=_0x1f8522;if(F(_0x3a4ad6)!=_0x3259c2(0xe8)||!_0x3a4ad6)return _0x3a4ad6;var _0x1b1eed=_0x3a4ad6[Symbol[_0x3259c2(0x290)]];if(_0x1b1eed!==void 0x0){var _0x3c9a9c=_0x1b1eed[_0x3259c2(0x292)](_0x3a4ad6,_0x10e2a8||'default');if(F(_0x3c9a9c)!=_0x3259c2(0xe8))return _0x3c9a9c;throw TypeError(_0x3259c2(0xea));}return(_0x10e2a8===_0x3259c2(0x2e8)?String:Number)(_0x3a4ad6);}function St(_0x2a4e58){const _0x5be487=_0x1f8522;var _0x8d78fe=xt(_0x2a4e58,_0x5be487(0x2e8));return F(_0x8d78fe)==_0x5be487(0x19e)?_0x8d78fe:_0x8d78fe+'';}function I(_0x295721,_0x1865e9,_0xd2f6b){return(_0x1865e9=St(_0x1865e9))in _0x295721?Object['defineProperty'](_0x295721,_0x1865e9,{'value':_0xd2f6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x295721[_0x1865e9]=_0xd2f6b,_0x295721;}let Ct=function(_0x9713b){const _0x8c26dd=_0x1f8522;return _0x9713b[_0x8c26dd(0x167)]=_0x8c26dd(0x167),_0x9713b['PERMISSION_DENIED']=_0x8c26dd(0x26c),_0x9713b[_0x8c26dd(0x148)]=_0x8c26dd(0x148),_0x9713b['CLOSE_ROOM']=_0x8c26dd(0x26a),_0x9713b[_0x8c26dd(0x274)]=_0x8c26dd(0x274),_0x9713b[_0x8c26dd(0x1d9)]='SOCKET_FAILED_RETRY',_0x9713b[_0x8c26dd(0x29c)]=_0x8c26dd(0x29c),_0x9713b[_0x8c26dd(0x2c8)]=_0x8c26dd(0x2c8),_0x9713b;}({});var L=class{constructor(){const _0x1fc729=_0x1f8522;I(this,_0x1fc729(0x17d),new _0x147a88()),I(this,_0x1fc729(0xfa),this[_0x1fc729(0x17d)][_0x1fc729(0x2b0)]());}[_0x1f8522(0x15d)](_0xd3811f){const _0x1f3650=_0x1f8522;this['_event$'][_0x1f3650(0xc4)](_0xd3811f);}},wt=class{constructor(){const _0x458949=_0x1f8522;I(this,_0x458949(0xd5),new _0x147a88()),I(this,_0x458949(0x114),this[_0x458949(0xd5)][_0x458949(0x2b0)]());}[_0x1f8522(0x1d8)](_0x591063){const _0x3e5ddf=_0x1f8522;this[_0x3e5ddf(0xd5)][_0x3e5ddf(0xc4)](_0x591063);}};function R(_0x300dac,_0x10e73a){return function(_0x202be9,_0x510259){_0x10e73a(_0x202be9,_0x510259,_0x300dac);};}function z(_0x319983,_0x2dc3fe,_0x5c448a,_0x348b3c){const _0x39ec9f=_0x1f8522;var _0xcb2f36=arguments[_0x39ec9f(0x10a)],_0x542e26=_0xcb2f36<0x3?_0x2dc3fe:_0x348b3c===null?_0x348b3c=Object[_0x39ec9f(0x23f)](_0x2dc3fe,_0x5c448a):_0x348b3c,_0x20cd5f;if(typeof Reflect==_0x39ec9f(0xe8)&&typeof Reflect[_0x39ec9f(0x21c)]==_0x39ec9f(0x1aa))_0x542e26=Reflect[_0x39ec9f(0x21c)](_0x319983,_0x2dc3fe,_0x5c448a,_0x348b3c);else{for(var _0x469237=_0x319983[_0x39ec9f(0x10a)]-0x1;_0x469237>=0x0;_0x469237--)(_0x20cd5f=_0x319983[_0x469237])&&(_0x542e26=(_0xcb2f36<0x3?_0x20cd5f(_0x542e26):_0xcb2f36>0x3?_0x20cd5f(_0x2dc3fe,_0x5c448a,_0x542e26):_0x20cd5f(_0x2dc3fe,_0x5c448a))||_0x542e26);}return _0xcb2f36>0x3&&_0x542e26&&Object[_0x39ec9f(0x2d8)](_0x2dc3fe,_0x5c448a,_0x542e26),_0x542e26;}let B=class extends _0x555def{constructor(_0x24e45b,_0x1ce7b8){const _0x3e2b02=_0x1f8522;super(),this[_0x3e2b02(0xf7)]=_0x24e45b,this['_userManagerService']=_0x1ce7b8,I(this,_0x3e2b02(0x121),new Map()),I(this,'_roomCreated$',new _0x147a88()),this['disposeWithMe'](_0x340907(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x292cef[_0x3e2b02(0x107)])[_0x3e2b02(0x27e)](_0x279c8c(_0x277bb7=>_0x277bb7[_0x3e2b02(0xdc)]())),this[_0x3e2b02(0xf7)][_0x3e2b02(0xe1)](_0x292cef[_0x3e2b02(0x23a)])[_0x3e2b02(0x27e)](_0x279c8c(_0x1872f3=>_0x1872f3['getUnitId']())))['subscribe'](_0x4b8e25=>this[_0x3e2b02(0x2bd)](_0x4b8e25)));}['waitForRoom$'](_0x4954ea){const _0x31600c=_0x1f8522;return this[_0x31600c(0x121)][_0x31600c(0x309)](_0x4954ea)?_0x3a835d(this[_0x31600c(0x121)][_0x31600c(0x315)](_0x4954ea)):this[_0x31600c(0x241)][_0x31600c(0x27e)](_0x279c8c(_0x1a98b9=>{const _0x48c6af=_0x31600c;if(_0x1a98b9===_0x4954ea)return this[_0x48c6af(0x121)][_0x48c6af(0x315)](_0x1a98b9);}));}['setCurrentUser'](_0x55b352){const _0x17f9e9=_0x1f8522;this['_userManagerService'][_0x17f9e9(0x311)](_0x55b352);}[_0x1f8522(0x30f)](){const _0x25a9bb=_0x1f8522;return this['_userManagerService'][_0x25a9bb(0x30f)]();}[_0x1f8522(0x205)](_0x33e8fb,_0x2e5cd7){const _0x26838e=_0x1f8522;let _0x5f1dde=this[_0x26838e(0x121)]['get'](_0x33e8fb);_0x5f1dde||(_0x5f1dde=new Tt(),this[_0x26838e(0x121)][_0x26838e(0x27d)](_0x33e8fb,_0x5f1dde),this[_0x26838e(0x241)][_0x26838e(0xc4)](_0x33e8fb)),_0x5f1dde[_0x26838e(0x205)](_0x2e5cd7);}[_0x1f8522(0x16d)](_0x5e22fe,_0x52fcaf){const _0x4e4344=_0x1f8522;let _0x369126=this[_0x4e4344(0x121)][_0x4e4344(0x315)](_0x5e22fe);_0x369126&&_0x369126[_0x4e4344(0x16d)](_0x52fcaf);}[_0x1f8522(0x1b5)](_0x1e4482){const _0x24e9c8=_0x1f8522;return this[_0x24e9c8(0x121)]['get'](_0x1e4482);}[_0x1f8522(0x2d2)](_0x2ad602,_0x4558b3){const _0x172520=_0x1f8522;let _0x49bccb=this[_0x172520(0x121)][_0x172520(0x315)](_0x2ad602);if(_0x49bccb)return _0x49bccb['getMember'](_0x4558b3);}[_0x1f8522(0x2bd)](_0x49ff93){const _0x3a8aef=_0x1f8522;let _0x3a61fd=this['_roomMembers']['get'](_0x49ff93);_0x3a61fd&&(_0x3a61fd[_0x3a8aef(0x282)](),this['_roomMembers']['delete'](_0x49ff93));}[_0x1f8522(0x282)](){const _0x19689f=_0x1f8522;this[_0x19689f(0x121)][_0x19689f(0x1b0)](_0x564236=>_0x564236[_0x19689f(0x282)]()),this[_0x19689f(0x121)][_0x19689f(0x217)](),this[_0x19689f(0x241)][_0x19689f(0x318)]();}};B=z([R(0x0,_0x3a738f),R(0x1,_0x4f07a4(_0x1e899d))],B);var Tt=class extends _0x555def{constructor(..._0x1e243d){const _0x2fcc82=_0x1f8522;super(..._0x1e243d),I(this,_0x2fcc82(0x2d3),new Map()),I(this,_0x2fcc82(0x25f),new _0x2acfcb(this[_0x2fcc82(0x2d3)])),I(this,_0x2fcc82(0x29b),this[_0x2fcc82(0x25f)][_0x2fcc82(0x2b0)]());}['dispose'](){const _0x34db13=_0x1f8522;this[_0x34db13(0x2d3)]['clear'](),this[_0x34db13(0x25f)][_0x34db13(0x318)]();}['updateMember'](_0xa75de9){const _0x4d3361=_0x1f8522;this['_members']['set'](_0xa75de9[_0x4d3361(0x184)],_0xa75de9),this[_0x4d3361(0x18d)]();}[_0x1f8522(0x16d)](_0x5aa15d){const _0x28d371=_0x1f8522;this[_0x28d371(0x2d3)][_0x28d371(0x319)](_0x5aa15d),this[_0x28d371(0x18d)]();}[_0x1f8522(0x2d2)](_0x563b23){const _0x26ff88=_0x1f8522;return this[_0x26ff88(0x2d3)][_0x26ff88(0x315)](_0x563b23);}[_0x1f8522(0x255)](){const _0x17de6a=_0x1f8522;return Array[_0x17de6a(0x21f)](this[_0x17de6a(0x2d3)][_0x17de6a(0x1eb)]());}[_0x1f8522(0x18d)](){const _0x32af59=_0x1f8522;this[_0x32af59(0x25f)][_0x32af59(0xc4)](this[_0x32af59(0x2d3)]);}};let Et=function(_0x2c674f){const _0x19d743=_0x1f8522;return _0x2c674f[_0x2c674f['IDLE']=0x0]=_0x19d743(0x1f6),_0x2c674f[_0x2c674f[_0x19d743(0x1f9)]=0x1]=_0x19d743(0x1f9),_0x2c674f[_0x2c674f[_0x19d743(0x262)]=0x2]='OFFLINE',_0x2c674f[_0x2c674f['ONLINE']=0x3]=_0x19d743(0x1ce),_0x2c674f;}({});const Dt={[_0x28282a['FAIL']]:_0x1f8522(0x177),[_0x28282a['JOIN_ROOM_FULL']]:_0x1f8522(0x1e2),[_0x28282a['JOIN_ROOM_NOT_EXISTS']]:_0x1f8522(0x14b),[_0x28282a[_0x1f8522(0x142)]]:'session.room-permission-denied',[_0x28282a['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x1f8522(0x1c0)};function _0x21a6(){const _0x56ecfd=['startTime','JOIN_ROOM_PERMISSION_DENIED','COMPRESS_MUTATION_APPLY','createCollaborator','5759724xtxXzq','onTransformIME','194576dkHoAp','CONFLICT','fromCollab','liveShareNewHost','session.room-not-exists','/allowed','actions','putCollaborators','_transformUndoredo','_transformAndApplyRemoteChangeset','[FetchMissState]','_httpService','failed\x20to\x20apply\x20missed\x20changesets!','uniscriptRunEvent','_socket$','downloadEndpointUrl','permissionRejEvent','_socketReady','_disableEditing','_doCreateSocket','_startCollaboration','onSyncEditingCollabCursor','emitEvent','requestParams','_undoRedoService','\x20in\x20_schedule.','/object/','_getSignURL','FileId','createInstance','PERMISSION_REJ','csShouldRetryEvent','OTHER_CLIENT_EDITING','now','_initUnitPermissionChange','33828IyPHmw','/universer-api/snapshot','_getAPIPrefixPath','removeMember','_telemetryInfo','UPDATE_CURSOR','fromCharCode','_initMergeInterceptor','action','responseType','avatar','_cfgEnableObjInherit','SUCCUSS','session.join-failed','_telemetryService','UNIVER_COLLABORATION_CLIENT_PLUGIN','sid','_collaborationSessionService','UNISCRIPT_RUN','_event$','_type','readAsDataURL','HEARTBEAT','_createInitialStateImpl','_init','getImage','memberID','loadUnit','_snapshotService','MUTATION','subUnitId','unit','indexOf','setShowComponents','NOT_COLLAB','_emitMembers','copyFileMeta','baseRev','version','1572316qhNJRL','_showConflictNotification','6549565dQVfWD','data','executeCommand','_onRemoteRetry','originalMeta','[CollaborationUndoRedoService]','_networkConditionService','_onConnectionFailed','workbook','_sessions','_getAPIPrefix','symbol','\x20-\x20','_sender','CHANGESET_REJ','_updateState','\x0aAfter:\x20','_entities','method','/-/object/-/batch_allowed','conflict','_updateStatus','_socketService','function','_getCtorByUniverInstanceType','\x20to\x20','getResourcesRequest','/universer-api/authz','RETRY_CONNECTING_MAX_COUNT','forEach','CHANGESET_SHOULD_RETRY','getActiveSheet','_collaborationPaused','transformSelections','getRoom','LEAVE','[PendingState]:\x20received\x20acknowledgement.','_clearUndo','MSG_FOR_ERROR','\x0aCurrent:\x20','retryConnectingInterval','_startTelemetryCollaborationNewChangeset','collaboration-client.config','_transformSelections','onMutationExecutedForCollab','session.room-cnt-exceeds','getFocusedUnit','confirm','_lockTransition','/resources','_replaceFileID','LIVESHARE_REQUEST_HOST','getUnitType','userID','addHandlerCallback','includes','NO_OTHER_CLIENTS_EDITING','state$','/new_changes','ONLINE','_toggleOnline','/universer-api/stream/file/upload','_clearRedo','_onConnectionOpen','infoRsp','setCfgEnableObjInherit','sheets','uploadFileServerUrl','_clearHeartbeatTimer','onCommentUpdate','SOCKET_FAILED_RETRY','updateCursorEvent','[SyncedState]:\x20received\x20acknowledgement.','params','toggleOffline','closeSession','sessionStatus$','_initCloseConn','_checkMissing','session.room-full','disableLocalCache','_state','HELLO','_candidateSocket','snapshot','_remoteChangesetQueue','change$','_listenToNetworkCondition','values','@univerjs-pro/collaboration-client','objectType','isPermissionRej','getUnitStatus$','unsubscribe','map','_getSendChangesetTimeout','_revisionService','enableSingleActiveInstanceLock','entityInit$','IDLE','_sheetTransformSelectionsService','_schedule','JOINING','_fetchMissChangesets','_incrementRevisionNumber','packageName','socket\x20open.','FETCH_MISS','_onJoinRoomEvent','_imageSourceCache','onRemoteAck','deepClone','_getUndoStack','_waitCount','updateMember','loginUrlKey','_transitionLocked','_sendHeartbeat','loadDoc','onload','univer-pro.collaboration-client.single-active-unit-service','joinRsp','&to=','onRemoteChangeset','iterator','updateOfflineData','_pendingMutations','_submitChangeset','_createHandler','status','name','_instanceService','clear','_resendTimer','_toggleOffline','collaboration_new_changeset','_applyRemoteChangeset','decorate','transformChangesets','number','from','objectID','_exhaustRemoteChangesetQueue','getUnit','replace','&source=','resolve','_handler','[PendingState]:\x20received\x20rejection.','_isEchoedAwaitingChangeset','LIVESHARE_FETCH_OPERATIONS','reconnect','onTransformSelections','_resendWithTimeout','entries','close','cmd','getCollabEntity','resend','initWorkbookPermissionChange','isArray','size','getTime','mutations','getLatestCsReqIdBySid','collabWebSocketUrl','patch','UNIVER_DOC','_onRemoteRejected','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getOwnPropertyDescriptor','registerHTTPInterceptor','_roomCreated$','UnitEmbedded','collaboration-client.local-cache-service','onLocalMutation','every','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','INGEST','textRanges','telemetry\x20info\x20is\x20not\x20initialized','close$','_onRemoteACK','dispose$','loadSheet','_sendHeartbeatTimer','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_collabSessionService','_throwTelemetryCollaborationNewChangeset','_getLoginPath','roomInfos','onRemoteRej','getAllMembers','unknown','saveImage','getMemberID','createSocket','PSEUDO_FETCH_MISSING_RESULT','stopTime','encrypt','_acknowledgeAwaitingIfReady','_updateLocalCache','_members$','min','target','OFFLINE','__Key__','_sendingTimer','catch','init','getCurrentSelections','Failed\x20to\x20update\x20permission\x20point','/block/','CLOSE_ROOM','objects','PERMISSION_DENIED','online$','save\x20fail\x20reason\x20is\x20','UUID','revision','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onStateChange','_getRedoStack','JOIN_ROOM_FAILED','_getCurrentRevision','/-/object/list','requireSession','_createSocket','_resendTimeout','_changesetReqId','_eventService','_socketMessageSubscription','set','pipe','saveSnapshot','transformMutationsWithChangeset','eventID','dispose','_socket','editingUnit','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','range','_onLocalMutation','_shouldReportTelemetry','_scheduleCollaborationTimeoutTimer','_registerDependencies','ws://127.0.0.1:8000/universer-api/comb/connect','leaveEvent','_onFetchMissResult','_change$','getTypeOfUnitAdded$','toPrimitive','_clearCollaborationTimeoutTimer','call','LIVESHARE_OPERATION','text-x','appendMutation','?url=','LIVESHARE_NEW_HOST','/collaborator','ERROR_EXCEED_SIZE','getDeserializedSheetBlock','members$','SOCKET_FAILED','_retryCount','NEW_CHANGESETS','fetchThroughInterceptors','[CollaborationSession]','add','_clearScheduledTask','JOIN','807617bgCtol','_decreaseWaiting','update','readyForCollab','joinEvent','reduce','error$','onTransformState','_acknowledgeAwaiting','saveSheetBlock','onMissingChangesets','fetchMiss','asObservable','getCollabEntity$','_logService','_collaborationUIEventService','sendChangesetTimeout','_substituteRedoStack','roles','prototype','equals','_createInitialState','getSnapshotAPIPath','c1Prime','compose','_removeRoom','_state$','_compressMutationService','PERSON','m2Prime','unitId','[OfflineState]:\x20received\x20rejection.','reqId','toggleOnline','selections','awaitingChangeset','SUBMIT_CHANGESET_TIMEOUT','max','getInterceptPoints','/role','session','/universer-api/file/{fileID}/sign-url','FETCH_MISSING','_unitInfo$','_transformIMECache','AWAITING','getMember','_members','getCurrentRevOfUnit','_transformRemoteChangesetByStateCache','onSendChangeset','pending','defineProperty','_commentService','src','_transformRemoteChangesetByIMECache','href','[CollaborationEntity]','_waitForHeartbeatResponse','LIVESHARE_TERMINATE','disposeWithMe','subject','_handleRemoteChangesets','collaborators','some','override','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_clearRetryConnectingTimer','string','_localeService','_memberService','file','_acknowledgedAwaitingRevision','_changesetSessionId','RECV','_sessionStatus$','onTransformRemoteChangesetByIMECache','[SyncedState]:\x20received\x20rejection.','loadOfflineData','changesets','USERS_LEAVE','find','_initDependencies','_getDownloadEndpointURL','_onUserJoin','state','ERROR_IMAGE_TYPE','_redoStacks','stringify','_status$','_replayCachedMutations','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','shouldCloseConn','capture','loadUnitOfRevision','updatePermissionObjEvent','debug','_timeoutTimer','_onRecvEvent','getSheetBlock','has','newCsEvent','_onMessage','onRemoteRetry','onTransformRemoteChangesetByStateCache','toString','getCurrentUser','duration','setCurrentUser','focused$','_queuedRemoteChangesets','univer-pro.collaboration-client-socket-service','get','_maxTotalRetryTimeout','enableAuthServer','complete','delete','_commandService','SUBMIT_CHANGESET','unit-cache-','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','awaiting','_singleActiveUnitService','_configService','encode','members','allowed','then','_joinRoom','HEARTBEAT_INTERVAL','push','_getUploadFileURL','_transformStack','next','_snapshotServerService','post','_onConflict','unitId\x20is\x20not\x20found','136wkzsMG','/universer-api/uniscript','_config','refreshPermission','/universer-api/snapshot/','CHANGESET_ACK','connection\x20error','_syncEditingCollabCursor','synced','error','socketService','/universer-api/oidc/authpage','_commentUpdate$','missingChangesets','setWaitCount','OTHER_CLIENTS_EDITING','message$','result','append','getUnitId','_localCacheService','_executeRemoteChangeset','_initRequestHeader','slice','getTypeOfUnitDisposed$','getConfig','_tryEnsureSocket','_clearTimeoutTimer','reject','put','cfgEnableObjInherit','object','_injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Univer','authzUrl','startsWith','/unit/','localeService','_transformService','listRoles','_entityInit$','_collaborationTimeoutTimer','ERROR_IMAGE','SHOULD_CLOSE_CONN','localCacheService','_univerInstanceService','0.25.0','7058527veVwHr','event$','subscribe','resourceIDs','_isPermissionRej','_permissionService','_undoStacks','_unitID','_onUserLeave','_unlockTransition','list','USERS_ENTER','reverse','code','UNIVER_SHEET','unitID','routeKey','length','getValue','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','headers','PENDING','_retryConnectingTimer','location','COMMENT_UPDATE','socket$','_transformStateCache','commentUpdate$','onlyLocal','fetching\x20missing\x20changesets\x20from\x20','_HTTPService','url','updateCollaborator','_awaitingChangeset','_onRemoteChangeset','send','[UniverCollaborationClientPlugin]','_handlerCallback','floor','offline','_roomMembers','_substituteUndoStack','body','POST','[CollaborationSessionService]','type','transformUndoRedo','[CollaborationState]:\x20apply\x20error!','hostname','open$','/object','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','[DataLoaderService]','sessionStatus','_rescheduleHeartbeat','_onOffline','_scheduleCompleteTimestamp','_clearLocalCache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','updatePermissionPoint','getImageSourceCache','BASE64','interceptor','_tryReconnect','UPDATE_PERMISSION_OBJ','fetch_missing','awaiting_with_pending','title','onMissedChangesetFetched','HEARTBEAT_TIMEOUT','status$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20'];_0x21a6=function(){return _0x56ecfd;};return _0x21a6();}let Ot=class extends _0x3498fe{get[_0x1f8522(0x12e)](){const _0x1f6792=_0x1f8522;return this[_0x1f6792(0x2ef)][_0x1f6792(0x10b)]();}constructor(_0xf91ce1,_0x52f9a7,_0x128d6f,_0x5573d0,_0x51ea7b,_0x505d02,_0x555571,_0x26d183){const _0x36d464=_0x1f8522;super(),this[_0x36d464(0x100)]=_0xf91ce1,this['_logService']=_0x128d6f,this['_configService']=_0x5573d0,this[_0x36d464(0x2ea)]=_0x51ea7b,this[_0x36d464(0x2d9)]=_0x505d02,this[_0x36d464(0x2b3)]=_0x555571,this['_telemetryService']=_0x26d183,I(this,'_sessionStatus$',new _0x2acfcb(0x0)),I(this,_0x36d464(0x1df),this[_0x36d464(0x2ef)][_0x36d464(0x2b0)]()),I(this,_0x36d464(0x17d),new _0x147a88()),I(this,'event$',this[_0x36d464(0x17d)][_0x36d464(0x2b0)]()),I(this,_0x36d464(0x283),void 0x0),I(this,_0x36d464(0x27c),void 0x0),I(this,_0x36d464(0xf3),void 0x0),I(this,'_shouldReportTelemetry',!0x1),I(this,_0x36d464(0x16e),null),this[_0x36d464(0x288)]=!!this[_0x36d464(0x178)],_0x52f9a7['pipe'](_0x56cc03(this[_0x36d464(0x24c)]))[_0x36d464(0xfb)](_0x40bf71=>{const _0x1fabb6=_0x36d464;if(_0x40bf71!==void 0x0){if(this['_socket']=_0x40bf71,_0x40bf71)this[_0x1fabb6(0xbf)](_0x40bf71),this[_0x1fabb6(0x27c)]=_0x40bf71[_0x1fabb6(0xd9)][_0x1fabb6(0xfb)](_0x278f15=>{const _0x1854a2=_0x1fabb6;_0x278f15['routeKey']===this[_0x1854a2(0x100)]&&this['_onCombEvent'](_0x278f15);});else{var _0x2817de;this[_0x1fabb6(0x251)](),this['_sessionStatus$'][_0x1fabb6(0xc4)](0x2),(_0x2817de=this[_0x1fabb6(0x27c)])==null||_0x2817de[_0x1fabb6(0x1f0)](),this[_0x1fabb6(0x27c)]=null;}}});}['getMemberID'](){const _0xba0525=_0x1f8522;var _0x15674d,_0x401eb3;return(_0x15674d=(_0x401eb3=this[_0xba0525(0x283)])==null?void 0x0:_0x401eb3[_0xba0525(0x184)])==null?null:_0x15674d;}[_0x1f8522(0x282)](){const _0x218c13=_0x1f8522;super['dispose'](),this[_0x218c13(0x22e)](),this[_0x218c13(0x24c)]['next'](),this[_0x218c13(0x24c)][_0x218c13(0x318)]();}[_0x1f8522(0x22e)](){const _0x4209c8=_0x1f8522;var _0x36c920,_0x29440b;this[_0x4209c8(0x251)](),(_0x36c920=this['_socket'])==null||_0x36c920['send']({'cmd':_0x15766e['LEAVE'],'data':{'roomID':this[_0x4209c8(0x100)]}}),(_0x29440b=this[_0x4209c8(0x283)])==null||_0x29440b['close'](),this[_0x4209c8(0x17d)][_0x4209c8(0x318)](),this[_0x4209c8(0x2ef)][_0x4209c8(0x318)]();}['_onCombEvent'](_0x4bc91f){const _0x43782b=_0x1f8522;_0x4bc91f[_0x43782b(0x22f)]===_0x15766e['JOIN']?this[_0x43782b(0x1ff)](_0x4bc91f):_0x4bc91f[_0x43782b(0x22f)]===_0x15766e[_0x43782b(0x2ee)]&&this[_0x43782b(0x307)](_0x4bc91f);}[_0x1f8522(0xbf)](_0x3fc5da){const _0x3fe085=_0x1f8522;this[_0x3fe085(0x2ef)][_0x3fe085(0xc4)](0x1),_0x3fc5da[_0x3fe085(0x11c)]({'cmd':_0x15766e[_0x3fe085(0x2a3)],'routeKey':this[_0x3fe085(0x100)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3fe085(0x100)]}]}});}[_0x1f8522(0x1ff)](_0x3e9f4d){const _0x3a1785=_0x1f8522;var _0x3d5bcd;if(_0x3e9f4d['code']in Dt){this[_0x3a1785(0x2b3)][_0x3a1785(0x15d)]({'id':_0x3a1785(0x274),'data':Dt[_0x3e9f4d['code']]}),this['_sessionStatus$'][_0x3a1785(0xc4)](0x2);return;}this['_sessionStatus$'][_0x3a1785(0xc4)](0x3);let _0x16c0d1=(_0x3d5bcd=_0x3e9f4d[_0x3a1785(0x194)][_0x3a1785(0x253)][this[_0x3a1785(0x100)]])==null?void 0x0:_0x3d5bcd[_0x3a1785(0xbc)];_0x16c0d1&&_0x16c0d1[_0x3a1785(0x1b0)](_0x26e6e2=>this[_0x3a1785(0x2ea)][_0x3a1785(0x205)](this[_0x3a1785(0x100)],_0x26e6e2));}[_0x1f8522(0x307)](_0x46852e){const _0x28f97f=_0x1f8522;try{let _0x587967=_0x46852e[_0x28f97f(0x194)];switch(_0x587967[_0x28f97f(0x281)]){case _0x27e67f[_0x28f97f(0x104)]:this[_0x28f97f(0x2f8)](_0x587967),this['_event$'][_0x28f97f(0xc4)](_0x587967);break;case _0x27e67f[_0x28f97f(0x2f4)]:this[_0x28f97f(0x101)](_0x587967),this[_0x28f97f(0x17d)]['next'](_0x587967);break;case _0x27e67f[_0x28f97f(0xce)]:case _0x27e67f[_0x28f97f(0x1b1)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x28f97f(0x291)](),this['_event$'][_0x28f97f(0xc4)](_0x587967);break;case _0x27e67f[_0x28f97f(0x1b9)]:this[_0x28f97f(0x2b2)][_0x28f97f(0xd2)](_0x28f97f(0x26e)+JSON[_0x28f97f(0x2fc)](_0x587967)),this[_0x28f97f(0x17d)]['next'](_0x587967);break;case _0x27e67f[_0x28f97f(0x111)]:this[_0x28f97f(0x2d9)][_0x28f97f(0x1d8)](_0x587967[_0x28f97f(0x194)]),this[_0x28f97f(0x17d)][_0x28f97f(0xc4)](_0x587967);break;default:this[_0x28f97f(0x17d)][_0x28f97f(0xc4)](_0x587967);}}catch(_0xa9a435){this[_0x28f97f(0x2b2)][_0x28f97f(0xd2)](_0xa9a435,_0x46852e);}}[_0x1f8522(0x2f8)](_0x3f8939){const _0x12453a=_0x1f8522;this[_0x12453a(0x2ea)]['updateMember'](this[_0x12453a(0x100)],_0x3f8939[_0x12453a(0x194)]);}[_0x1f8522(0x101)](_0x2a2d94){const _0x26fd1c=_0x1f8522;this[_0x26fd1c(0x2ea)][_0x26fd1c(0x16d)](this[_0x26fd1c(0x100)],_0x2a2d94[_0x26fd1c(0x194)][_0x26fd1c(0x184)]);}async[_0x1f8522(0x11c)](_0x23c25e,_0x361323){const _0x1d1ad8=_0x1f8522;if(this[_0x1d1ad8(0x12e)]!==0x3||!this[_0x1d1ad8(0x283)])throw Error(_0x1d1ad8(0x285));try{_0x23c25e[_0x1d1ad8(0x281)]===_0x27e67f[_0x1d1ad8(0x31b)]&&(this[_0x1d1ad8(0x289)](),this[_0x1d1ad8(0x1bc)](_0x23c25e)),this[_0x1d1ad8(0x283)]['send']({'cmd':_0x15766e[_0x1d1ad8(0x247)],'routeKey':_0x361323,'routeType':'','data':_0x23c25e});}catch(_0x443a2d){this[_0x1d1ad8(0x2b2)][_0x1d1ad8(0xd2)](_0x443a2d);}}[_0x1f8522(0x289)](){const _0x187bb6=_0x1f8522;var _0x33ca80;this[_0x187bb6(0xf3)]=setTimeout(()=>{const _0xa0f5a1=_0x187bb6;this[_0xa0f5a1(0xf3)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0xa0f5a1(0x2c8)});},(_0x33ca80=this[_0x187bb6(0xba)][_0x187bb6(0xe2)](_0x187bb6(0x13e)))==null?mt:_0x33ca80);}['_clearCollaborationTimeoutTimer'](){const _0x1a578f=_0x1f8522;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x1a578f(0xf3)]),this[_0x1a578f(0xf3)]=null);}[_0x1f8522(0x1bc)](_0x5766a3){const _0x2d0d62=_0x1f8522;if(!this[_0x2d0d62(0x288)])return;let {data:_0x2026f2}=_0x5766a3,{unitID:_0x3d3b45,changeset:_0x1b7cf2}=_0x2026f2,{mutations:_0x54d272,type:_0x8bdbc5}=_0x1b7cf2;this['_telemetryInfo']={'unitId':_0x3d3b45,'type':_0x8bdbc5,'startTime':performance[_0x2d0d62(0x168)](),'stopTime':0x0,'duration':0x0,'size':bt(_0x54d272)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x424553=_0x1f8522;if(this[_0x424553(0x288)]){if(!this[_0x424553(0x16e)]){this['_logService']['error'](_0x424553(0x2a0),_0x424553(0x249));return;}this[_0x424553(0x16e)]['stopTime']=performance[_0x424553(0x168)](),this[_0x424553(0x16e)][_0x424553(0x310)]=this[_0x424553(0x16e)][_0x424553(0x25b)]-this['_telemetryInfo'][_0x424553(0x141)],this[_0x424553(0x178)][_0x424553(0x302)](_0x424553(0x21a),this[_0x424553(0x16e)]),this['_telemetryInfo']=null;}}[_0x1f8522(0x251)](){const _0x42e2b0=_0x1f8522;this[_0x42e2b0(0x16e)]=null;}};Ot=z([R(0x2,_0x1443cf),R(0x3,_0x3ba9f8),R(0x4,_0x4f07a4(B)),R(0x5,_0x4f07a4(wt)),R(0x6,_0x4f07a4(L)),R(0x7,_0x1cfc4d(_0x4f515e))],Ot);const V=_0x4bcee9(_0x1f8522(0x243));function kt(_0x4fca18){const _0x4c97c1=_0x1f8522;return _0x4c97c1(0x31c)+_0x4fca18;}function At(_0x1f0f96){const _0xa2f116=_0x1f8522;let {unitID:_0x3bda8b,mutations:_0x599451}=_0x1f0f96;return{'unitId':_0x3bda8b,'subUnitId':_0x599451[_0xa2f116(0x10a)]>0x0?_0x599451[0x0][_0xa2f116(0x1dc)][_0xa2f116(0x188)]:null};}let H=class{constructor(_0x36e93a,_0xca7fd3,_0x53819d){const _0x16695f=_0x1f8522;this[_0x16695f(0xe9)]=_0x36e93a,this[_0x16695f(0xf0)]=_0xca7fd3,this['_instanceService']=_0x53819d;}['transformSelections'](_0xe34856){const _0x56e55a=_0x1f8522;var _0x5be139,_0x176987;let _0x1d8cee=this[_0x56e55a(0xe9)][_0x56e55a(0x315)](_0x24181c),{unitId:_0x424661,subUnitId:_0x220be8}=At(_0xe34856),_0x51baeb=_0x1d8cee==null?void 0x0:_0x1d8cee['getWorkbookSelections'](_0x424661)[_0x56e55a(0x267)](),_0x4803f8=(_0x5be139=this[_0x56e55a(0x216)][_0x56e55a(0x222)](_0x424661))==null||(_0x5be139=_0x5be139[_0x56e55a(0x1b2)]())==null?void 0x0:_0x5be139['getSheetId']();if(_0x51baeb[_0x56e55a(0x10a)]===0x0||!_0x424661||!_0x220be8)return;let _0x1b0c92=[{'id':_0x30f1f3['id'],'params':{'unitId':_0x424661,'subUnitId':_0x4803f8,'selections':_0x49bc12[_0x56e55a(0x202)](_0x51baeb)}}],_0x57f044=this[_0x56e55a(0xf0)][_0x56e55a(0x280)](_0xe34856,_0x1b0c92);if(!_0x534268(_0x57f044))throw _0x57f044['error'];let _0x326816=(_0x176987=_0x57f044[_0x56e55a(0x2c1)][0x0])==null||(_0x176987=_0x176987['params'])==null?void 0x0:_0x176987[_0x56e55a(0x2c6)];if(Array[_0x56e55a(0x233)](_0x326816)&&_0x326816[_0x56e55a(0x10a)]){if(_0x326816[_0x56e55a(0x10a)]===_0x1b0c92[0x0][_0x56e55a(0x1dc)][_0x56e55a(0x2c6)]['length']&&_0x326816['every']((_0x12d3ca,_0x2404b1)=>_0x522a87[_0x56e55a(0x2b8)](_0x12d3ca[_0x56e55a(0x286)],_0x1b0c92[0x0]['params'][_0x56e55a(0x2c6)][_0x2404b1][_0x56e55a(0x286)])))return;this[_0x56e55a(0xe9)][_0x56e55a(0x315)](_0x3a76f7)[_0x56e55a(0x195)](_0x30f1f3['id'],{'unitId':_0x424661,'subUnitId':_0x4803f8,'selections':_0x326816});}}};H=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x4f7ff9),R(0x2,_0x3a738f)],H);const jt=_0x4bcee9(_0x1f8522(0x20b));let Mt=function(_0x452f4e){const _0x52526d=_0x1f8522;return _0x452f4e[_0x452f4e[_0x52526d(0x1cb)]=0x0]=_0x52526d(0x1cb),_0x452f4e[_0x452f4e[_0x52526d(0xd8)]=0x1]=_0x52526d(0xd8),_0x452f4e;}({});const U=_0x1f8522(0x1bd),Nt={};function Pt(_0xc5efc8){const _0x2edfec=_0x1f8522;var _0x264952;return!!((_0x264952=_0xc5efc8[_0x2edfec(0x1dc)])!=null&&_0x264952['__splitChunk__']);}const Ft=new Set([_0x5c656f['id']]);function It(_0x35f748,_0x297b18,_0x316b34,_0xc56ab5,_0x43ef2a){const _0x1c7c10=_0x1f8522;var _0x2216fd,_0x21900b,_0x436261,_0x3cecbc;let _0x1b7454=[];for(let _0x4057f7 of _0x35f748){if(Ft[_0x1c7c10(0x309)](_0x4057f7['id'])){if(_0x1b7454[_0x1c7c10(0x10a)]>0x0)break;_0x1b7454['push'](_0x4057f7);break;}if(Pt(_0x4057f7)){if(_0x1b7454[_0x1c7c10(0x10a)]>0x0)break;_0x1b7454[_0x1c7c10(0xc1)](_0x4057f7);break;}_0x1b7454[_0x1c7c10(0xc1)](_0x4057f7);}let _0x55e6b8=(_0x2216fd=(_0x21900b=_0x43ef2a[_0x1c7c10(0x30f)]())==null?void 0x0:_0x21900b['userID'])==null?'unknown':_0x2216fd,_0x3e7f60=(_0x436261=(_0x3cecbc=_0x43ef2a[_0x1c7c10(0x30f)]())==null?void 0x0:_0x3cecbc[_0x1c7c10(0x184)])==null?'unknown':_0x436261;return{'changeset':{'unitID':_0x297b18,'type':_0x6f4221(_0x316b34[_0x1c7c10(0x1c7)](_0x297b18)),'baseRev':_0xc56ab5[_0x1c7c10(0x2d4)](_0x297b18),'revision':0x0,'userID':_0x55e6b8,'memberID':_0x3e7f60,'mutations':_0x1b7454},'pendingMutations':_0x35f748['slice'](_0x1b7454[_0x1c7c10(0x10a)])};}function Lt(_0x362555,_0x24dffa,_0x353dda,_0x366e25,_0x4a94da){const _0x193fb9=_0x1f8522;var _0x417348,_0x75641b,_0x7ddd48,_0x5a4285;let _0x102900=_0x362555['reduce']((_0x1a89bd,_0x4a06f3)=>{const _0x24ac48=_0x249d;let _0x4bf16f=_0x1a89bd[_0x1a89bd[_0x24ac48(0x10a)]-0x1],{id:_0x46e5bb}=_0x4bf16f==null?{}:_0x4bf16f,{id:_0x547dec,type:_0x46d582}=_0x4a06f3,_0x21e611=_0x4a06f3[_0x24ac48(0x1dc)];if(_0x46e5bb&&_0x46e5bb!==_0x547dec)throw Error(_0x24ac48(0x23d)+_0x46e5bb+_0x24ac48(0x19f)+_0x547dec+'.');if(!_0x4bf16f)return[{'id':_0x547dec,'type':_0x46d582,'params':{'unitId':_0x21e611[_0x24ac48(0x2c2)],'textRanges':_0x21e611[_0x24ac48(0x248)],'actions':_0x21e611[_0x24ac48(0x14d)]}}];let _0x3989f1=_0x4bf16f['params'];return Rt(_0x3989f1['actions'],_0x21e611['actions'])?[..._0x1a89bd['slice'](0x0,-0x1),{..._0x4bf16f,'id':_0x547dec,'type':_0x46d582,'params':{'unitId':_0x21e611[_0x24ac48(0x2c2)],'textRanges':_0x21e611[_0x24ac48(0x248)],'actions':_0x329bf1[_0x24ac48(0x2bc)](_0x3989f1[_0x24ac48(0x14d)],_0x21e611[_0x24ac48(0x14d)])}}]:[..._0x1a89bd,{'id':_0x547dec,'type':_0x46d582,'params':{'unitId':_0x21e611[_0x24ac48(0x2c2)],'textRanges':_0x21e611[_0x24ac48(0x248)],'actions':_0x21e611['actions']}}];},[]),_0x14b1d1=(_0x417348=(_0x75641b=_0x4a94da['getCurrentUser']())==null?void 0x0:_0x75641b[_0x193fb9(0x1c8)])==null?_0x193fb9(0x256):_0x417348,_0x216f25=(_0x7ddd48=(_0x5a4285=_0x4a94da['getCurrentUser']())==null?void 0x0:_0x5a4285[_0x193fb9(0x184)])==null?_0x193fb9(0x256):_0x7ddd48;return{'changeset':{'unitID':_0x24dffa,'type':_0x6f4221(_0x353dda[_0x193fb9(0x1c7)](_0x24dffa)),'baseRev':_0x366e25['getCurrentRevOfUnit'](_0x24dffa),'revision':0x0,'userID':_0x14b1d1,'memberID':_0x216f25,'mutations':_0x102900},'pendingMutations':_0x362555[_0x193fb9(0xe0)](_0x362555[_0x193fb9(0x10a)])};}function Rt(_0x67f21c,_0x523b7d){return!(zt(_0x67f21c)&&Bt(_0x523b7d)||Bt(_0x67f21c)&&zt(_0x523b7d));}function zt(_0x1f4b3f){const _0x43828a=_0x1f8522;return Vt(_0x1f4b3f)['some'](_0x38f738=>Ht(_0x38f738)&&_0x38f738['et']===_0x43828a(0x294));}function Bt(_0x7add0){const _0x337311=_0x1f8522;return Vt(_0x7add0)[_0x337311(0x2e4)](_0x1a4f62=>Array['isArray'](_0x1a4f62)||typeof _0x1a4f62==_0x337311(0x2e8)||typeof _0x1a4f62==_0x337311(0x21e));}function Vt(_0x14c1ab){const _0x3e3949=_0x1f8522;if(!Array[_0x3e3949(0x233)](_0x14c1ab))return[];let _0xe59f7=_0x14c1ab[_0x3e3949(0x1ca)](_0x3e3949(0x123))?_0x14c1ab:_0x14c1ab[_0x3e3949(0x2f5)](_0x140e8d=>Array['isArray'](_0x140e8d)&&_0x140e8d['includes'](_0x3e3949(0x123)));if(!Array[_0x3e3949(0x233)](_0xe59f7))return[];let _0x533bc9=_0xe59f7[_0x3e3949(0x18a)](_0x3e3949(0x123));return _0x533bc9===-0x1?[]:_0xe59f7['slice'](_0x533bc9+0x1);}function Ht(_0x28a155){const _0x327d4f=_0x1f8522;return typeof _0x28a155=='object'&&!!_0x28a155&&!Array[_0x327d4f(0x233)](_0x28a155);}function Ut(_0xe84b2e,_0x5cfa29){const _0x50643d=_0x1f8522;let _0x3904d1=new _0x40aa8b(0x1);return setTimeout(()=>_0x3904d1[_0x50643d(0xc4)](_0x5cfa29),_0xe84b2e),_0x3904d1[_0x50643d(0x2b0)]()['pipe'](_0x4abdb0(0x1));}var Wt,Gt,Kt;let qt=function(_0x1742b1){const _0x5b825a=_0x1f8522;return _0x1742b1[_0x5b825a(0x18c)]='not_collab',_0x1742b1['SYNCED']=_0x5b825a(0xd1),_0x1742b1[_0x5b825a(0x10e)]=_0x5b825a(0x2d7),_0x1742b1[_0x5b825a(0x2d1)]=_0x5b825a(0x31e),_0x1742b1['AWAITING_WITH_PENDING']=_0x5b825a(0x13b),_0x1742b1[_0x5b825a(0x1fe)]=_0x5b825a(0x13a),_0x1742b1[_0x5b825a(0x148)]=_0x5b825a(0x1a7),_0x1742b1[_0x5b825a(0x262)]=_0x5b825a(0x120),_0x1742b1;}({});const Jt=0x4e20,Yt=0x2bf20;var W=class{constructor(_0xaa93de,_0x29f5e1,_0x229c8e,_0x2dda0f,_0x396927,_0x414332,_0x4548fc,_0x1329c8,_0x2706cc){const _0x513e7d=_0x1f8522;this[_0x513e7d(0x108)]=_0xaa93de,this[_0x513e7d(0x126)]=_0x29f5e1,this[_0x513e7d(0x226)]=_0x396927,this[_0x513e7d(0x31a)]=_0x414332,this[_0x513e7d(0x15f)]=_0x4548fc,this[_0x513e7d(0x1f3)]=_0x1329c8,this[_0x513e7d(0xdd)]=_0x2706cc,I(this,_0x513e7d(0x11a),null),I(this,_0x513e7d(0x211),[]),this[_0x513e7d(0x11a)]=_0x229c8e,this[_0x513e7d(0x211)]=_0x2dda0f;}[_0x1f8522(0x1e1)](_0x194b3e){const _0x47cf5d=_0x1f8522;let _0x346278=this[_0x47cf5d(0x1f3)]['getCurrentRevOfUnit'](this[_0x47cf5d(0x108)]);return _0x194b3e[_0x47cf5d(0x270)]>_0x346278+0x1?(this[_0x47cf5d(0x226)][_0x47cf5d(0x2ae)]({'from':_0x346278,'to':_0x194b3e[_0x47cf5d(0x270)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x55c070){const _0x35e7cf=_0x1f8522;this[_0x35e7cf(0x15f)][_0x35e7cf(0x127)](this[_0x35e7cf(0x108)],_0x55c070);}[_0x1f8522(0x1be)](_0x50a932){const _0x17e7a4=_0x1f8522;var _0x521fb8,_0x2457af;(_0x521fb8=(_0x2457af=this[_0x17e7a4(0x226)])[_0x17e7a4(0x22b)])==null||_0x521fb8[_0x17e7a4(0x292)](_0x2457af,_0x50a932);}[_0x1f8522(0x2d0)](_0x115cc2){const _0x11c95a=_0x1f8522;var _0x534674,_0x238bec;return(_0x534674=(_0x238bec=this[_0x11c95a(0x226)])[_0x11c95a(0x146)])==null?void 0x0:_0x534674[_0x11c95a(0x292)](_0x238bec,_0x115cc2);}['_transformStateCache'](_0x488e93){const _0x525fe9=_0x1f8522;var _0xe14041,_0x43e096;return(_0xe14041=(_0x43e096=this[_0x525fe9(0x226)])[_0x525fe9(0x2ab)])==null?void 0x0:_0xe14041['call'](_0x43e096,_0x488e93);}[_0x1f8522(0x2db)](_0x36f004){const _0x11f9f0=_0x1f8522;var _0xe08f35,_0x2293f9,_0x106e9c;return(_0xe08f35=(_0x2293f9=(_0x106e9c=this[_0x11f9f0(0x226)])[_0x11f9f0(0x2f0)])==null?void 0x0:_0x2293f9[_0x11f9f0(0x292)](_0x106e9c,_0x36f004))==null?_0x36f004:_0xe08f35;}[_0x1f8522(0x2d5)](_0x48cae5){const _0x1428c4=_0x1f8522;var _0x57b6d7,_0x2f3a96,_0xd48bb3;return(_0x57b6d7=(_0x2f3a96=(_0xd48bb3=this['_handler'])[_0x1428c4(0x30d)])==null?void 0x0:_0x2f3a96['call'](_0xd48bb3,_0x48cae5))==null?_0x48cae5:_0x57b6d7;}[_0x1f8522(0xd0)](_0x3e822a){const _0x1c18b3=_0x1f8522;if(this[_0x1c18b3(0x126)]===_0x292cef[_0x1c18b3(0x23a)]){let {unitID:_0x6b8771,mutations:_0x3ce39a,memberID:_0x141ca4}=_0x3e822a,_0x5c5ef4=_0x3ce39a[_0x1c18b3(0x10a)]>0x0?_0x3ce39a[0x0][_0x1c18b3(0x1dc)][_0x1c18b3(0x248)]:[];if(Array[_0x1c18b3(0x233)](_0x5c5ef4)&&_0x5c5ef4[_0x1c18b3(0x10a)]>0x0){var _0x41c253,_0x3e5cfa;(_0x41c253=(_0x3e5cfa=this['_handler'])[_0x1c18b3(0x15c)])==null||_0x41c253[_0x1c18b3(0x292)](_0x3e5cfa,{'unitID':_0x6b8771,'memberID':_0x141ca4,'textRanges':_0x5c5ef4});}}}[_0x1f8522(0x25e)](){const _0x202d7a=_0x1f8522;var _0x25def;(_0x25def=this[_0x202d7a(0xdd)])==null||_0x25def[_0x202d7a(0x210)](this['unitID'],this[_0x202d7a(0x126)],this[_0x202d7a(0x11a)],this[_0x202d7a(0x211)]);}[_0x1f8522(0x275)](){const _0x54ea9c=_0x1f8522;return this[_0x54ea9c(0x1f3)][_0x54ea9c(0x2d4)](this['unitID']);}[_0x1f8522(0x1fb)](){const _0x21bf8b=_0x1f8522;this['_revisionService']['incrementRevOfUnit'](this[_0x21bf8b(0x108)]);}[_0x1f8522(0xde)](_0x5c797b){const _0x2e3105=_0x1f8522;let _0x655ae8=this['_transformRemoteChangesetByIMECache'](_0x5c797b);_0x655ae8=this[_0x2e3105(0x2d5)](_0x655ae8);let _0x509ae8=_0x3bd5c0(_0x655ae8['mutations'],this[_0x2e3105(0x31a)],{'fromCollab':!0x0});if(!_0x509ae8['result']){var _0x3eb164;throw _0x509ae8[_0x2e3105(0xd2)]instanceof Error?_0x509ae8['error']:Error((_0x3eb164=_0x509ae8[_0x2e3105(0xd2)])==null?_0x2e3105(0x128):_0x3eb164);}this[_0x2e3105(0x2d0)](_0x655ae8),this[_0x2e3105(0x113)](_0x655ae8),this[_0x2e3105(0x14f)](_0x5c797b),this['_transformSelections'](_0x655ae8),this[_0x2e3105(0xd0)](_0x655ae8),this[_0x2e3105(0x1fb)]();}};let G=class extends W{constructor(_0x4f6306,_0x340626,_0x5b4b33,_0x3d8c13,_0x4157b4,_0x525fa1,_0x40c40a,_0x38e3a0,_0x4fe3b1,_0x35b7ef){const _0x5d129b=_0x1f8522;super(_0x4f6306,_0x340626,null,[],_0x5b4b33,_0x40c40a,_0x525fa1,_0x3d8c13,_0x35b7ef),this[_0x5d129b(0xe9)]=_0x4157b4,this[_0x5d129b(0x2b2)]=_0x38e3a0,this[_0x5d129b(0xf0)]=_0x4fe3b1,this[_0x5d129b(0xf6)]=_0x35b7ef,I(this,_0x5d129b(0x214),_0x5d129b(0xd1));}[_0x1f8522(0x295)](_0x54dd3b){const _0x28bea9=_0x1f8522;let _0x4b0dab=this[_0x28bea9(0xe9)][_0x28bea9(0x164)](K,this[_0x28bea9(0x108)],this[_0x28bea9(0x126)],[_0x54dd3b],this[_0x28bea9(0x226)]);return _0x4b0dab[_0x28bea9(0x1f8)](),_0x4b0dab[_0x28bea9(0x25e)](),_0x4b0dab;}[_0x1f8522(0x20e)](_0x49a264){const _0x58ebee=_0x1f8522;if(this[_0x58ebee(0x1e1)](_0x49a264))return this[_0x58ebee(0xe9)][_0x58ebee(0x164)](Z,this['unitID'],this[_0x58ebee(0x126)],null,[],null,[_0x49a264],this['_handler']);try{let _0x174282=this[_0x58ebee(0xf0)]['transformMutationsWithChangeset'](_0x49a264,[_0x3b7ae1]);if(_0x534268(_0x174282)){let {c1Prime:_0x3169be}=_0x174282;return this[_0x58ebee(0xde)](_0x3169be),this;}throw _0x174282[_0x58ebee(0xd2)];}catch(_0x5ba14f){return this[_0x58ebee(0x2b2)][_0x58ebee(0xd2)](_0x5ba14f),this[_0x58ebee(0xc7)](!0x1);}}[_0x1f8522(0xc7)](_0x5aee3f){const _0x2a44cf=_0x1f8522;return this[_0x2a44cf(0xe9)][_0x2a44cf(0x164)](Y,this[_0x2a44cf(0x108)],this['type'],null,[],this[_0x2a44cf(0x226)],_0x5aee3f);}[_0x1f8522(0x201)](_0x17decb){const _0x26fa92=_0x1f8522;if(_0x17decb[_0x26fa92(0x270)]<=this[_0x26fa92(0x275)]())return this;throw Error(_0x26fa92(0x1db));}[_0x1f8522(0x254)](){const _0x4ff1da=_0x1f8522;throw Error(_0x4ff1da(0x2f1));}[_0x1f8522(0x30c)](){return this;}[_0x1f8522(0x1dd)](){const _0x5c8db9=_0x1f8522;return this['_injector'][_0x5c8db9(0x164)](X,this['unitID'],this[_0x5c8db9(0x126)],null,[],this[_0x5c8db9(0x226)]);}[_0x1f8522(0x2c5)](){return this;}['resend'](){const _0x58e322=_0x1f8522;throw Error(_0x58e322(0x24f));}[_0x1f8522(0x2af)](){const _0x3452dc=_0x1f8522;let _0x235825=this[_0x3452dc(0x1f3)][_0x3452dc(0x2d4)](this[_0x3452dc(0x108)]);return this[_0x3452dc(0x226)][_0x3452dc(0x2ae)]({'from':_0x235825,'to':0x0}),this[_0x3452dc(0xe9)][_0x3452dc(0x164)](Z,this[_0x3452dc(0x108)],this[_0x3452dc(0x126)],null,[],null,[],this[_0x3452dc(0x226)]);}};G=z([R(0x3,_0x4f07a4(_0x3c5693)),R(0x4,_0x4f07a4(_0x44d080)),R(0x5,_0x3b54de),R(0x6,_0x3a76f7),R(0x7,_0x1443cf),R(0x8,_0x4f7ff9),R(0x9,_0x1cfc4d(V))],G);let K=Wt=class extends W{constructor(_0x2ae961,_0x1701da,_0x4ec414,_0x402bb8,_0x937210,_0x2f14e0,_0x3462f3,_0x1a14c0,_0x2a8495,_0x2b98a7,_0x2a56a0,_0x40d1ca,_0x4525c4,_0x497b51){const _0x419ab1=_0x1f8522;super(_0x2ae961,_0x1701da,null,_0x4ec414,_0x402bb8,_0x2a8495,_0x4525c4,_0x2f14e0,_0x497b51),this[_0x419ab1(0xe9)]=_0x937210,this['_memberService']=_0x3462f3,this['_logService']=_0x1a14c0,this[_0x419ab1(0xba)]=_0x2b98a7,this[_0x419ab1(0xf0)]=_0x2a56a0,this[_0x419ab1(0xf7)]=_0x40d1ca,I(this,_0x419ab1(0x214),'pending'),I(this,_0x419ab1(0x131),null),I(this,'_sendingTimer',null);}[_0x1f8522(0x295)](_0x36efd7){const _0x3f7d74=_0x1f8522;return this[_0x3f7d74(0x211)][_0x3f7d74(0xc1)](_0x36efd7),this[_0x3f7d74(0x25e)](),this;}[_0x1f8522(0x20e)](_0x178c1a){const _0x200961=_0x1f8522;if(this[_0x200961(0x1e1)](_0x178c1a))return this[_0x200961(0x2a2)](),this[_0x200961(0xe9)][_0x200961(0x164)](Z,this[_0x200961(0x108)],this[_0x200961(0x126)],null,this['_pendingMutations'],null,[_0x178c1a],this[_0x200961(0x226)]);try{let _0x106fdb=this[_0x200961(0xf0)][_0x200961(0x280)](_0x178c1a,this[_0x200961(0x211)]);if(_0x534268(_0x106fdb)){let {c1Prime:_0x35a985,m2Prime:_0x24c3c7}=_0x106fdb;this['_executeRemoteChangeset'](_0x35a985);let _0x10f376=this[_0x200961(0xe9)][_0x200961(0x164)](Wt,this[_0x200961(0x108)],this[_0x200961(0x126)],_0x24c3c7,this['_handler']);this[_0x200961(0x2a2)]();let _0x2cc4ab=new Date()[_0x200961(0x235)](),_0x104f3d=this[_0x200961(0x131)]?Math[_0x200961(0x2c9)](this['_scheduleCompleteTimestamp']-_0x2cc4ab,0x0):this['_getSendChangesetTimeout']();return _0x10f376[_0x200961(0x1f8)](_0x104f3d),_0x10f376;}throw _0x106fdb[_0x200961(0xd2)];}catch(_0x3ab9ad){return this[_0x200961(0x2b2)][_0x200961(0xd2)](_0x3ab9ad),this[_0x200961(0xc7)](!0x1);}}[_0x1f8522(0x201)](_0x481ee2){const _0x4c206e=_0x1f8522;if(_0x481ee2[_0x4c206e(0x270)]<=this[_0x4c206e(0x275)]())return this;throw Error(_0x4c206e(0x1b7));}[_0x1f8522(0x254)](){const _0x48e976=_0x1f8522;throw Error(_0x48e976(0x227));}[_0x1f8522(0x30c)](){return this;}[_0x1f8522(0x1dd)](){const _0x4a3af4=_0x1f8522;return this[_0x4a3af4(0x2a2)](),this[_0x4a3af4(0xe9)][_0x4a3af4(0x164)](X,this[_0x4a3af4(0x108)],this[_0x4a3af4(0x126)],null,this[_0x4a3af4(0x211)],this[_0x4a3af4(0x226)]);}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0x1f8)](_0x56487b){const _0x34339f=_0x1f8522;let _0x508ee6=_0x56487b==null?this[_0x34339f(0x1f2)]():_0x56487b;this[_0x34339f(0x131)]=new Date()[_0x34339f(0x235)]()+_0x508ee6,this['_sendingTimer']=setTimeout(()=>{const _0x96f910=_0x34339f;this[_0x96f910(0x2a2)]();let _0xa3f195=null;switch(this[_0x96f910(0x126)]){case _0x292cef['UNIVER_SHEET']:_0xa3f195=It(this[_0x96f910(0x211)],this[_0x96f910(0x108)],this[_0x96f910(0xf7)],this[_0x96f910(0x1f3)],this[_0x96f910(0x2ea)]);break;case _0x292cef[_0x96f910(0x23a)]:_0xa3f195=this['_pendingMutations'][_0x96f910(0x245)](_0x227aa7=>_0x227aa7['id']===_0x234ae8['id'])?Lt(this[_0x96f910(0x211)],this['unitID'],this[_0x96f910(0xf7)],this[_0x96f910(0x1f3)],this[_0x96f910(0x2ea)]):It(this['_pendingMutations'],this[_0x96f910(0x108)],this[_0x96f910(0xf7)],this[_0x96f910(0x1f3)],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x96f910(0x160));}let {changeset:_0x8b5d43,pendingMutations:_0x33c876}=_0xa3f195;this[_0x96f910(0x226)][_0x96f910(0x2d6)](_0x8b5d43);let _0x1346cc=_0x33c876[_0x96f910(0x10a)]?this['_injector'][_0x96f910(0x164)](J,this['unitID'],this['type'],_0x8b5d43,_0x33c876,this[_0x96f910(0x226)],void 0x0):this[_0x96f910(0xe9)][_0x96f910(0x164)](q,this[_0x96f910(0x108)],this['type'],_0x8b5d43,this['_handler']);_0x1346cc[_0x96f910(0x25e)](),this[_0x96f910(0x226)][_0x96f910(0x272)](this,_0x1346cc);},_0x508ee6);}['_getSendChangesetTimeout'](){const _0x5062b8=_0x1f8522;var _0x2631ab;let _0x4e86d2=this[_0x5062b8(0xba)][_0x5062b8(0xe2)](U);return(_0x2631ab=_0x4e86d2==null?void 0x0:_0x4e86d2[_0x5062b8(0x2b4)])==null?0x7d0:_0x2631ab;}['resend'](){const _0x3eed3f=_0x1f8522;throw Error(_0x3eed3f(0x300));}[_0x1f8522(0x2a2)](){const _0x331dfa=_0x1f8522;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x331dfa(0x264)]=null);}['_onConflict'](_0x11965f){const _0xb9f45=_0x1f8522;return this[_0xb9f45(0x2a2)](),this[_0xb9f45(0xe9)][_0xb9f45(0x164)](Y,this[_0xb9f45(0x108)],this[_0xb9f45(0x126)],null,this[_0xb9f45(0x211)],this['_handler'],_0x11965f);}};K=Wt=z([R(0x4,_0x4f07a4(_0x44d080)),R(0x5,_0x4f07a4(_0x3c5693)),R(0x6,_0x4f07a4(B)),R(0x7,_0x1443cf),R(0x8,_0x3a76f7),R(0x9,_0x3ba9f8),R(0xa,_0x4f7ff9),R(0xb,_0x3a738f),R(0xc,_0x3b54de),R(0xd,_0x1cfc4d(V))],K);let q=Gt=class extends W{constructor(_0x3c71d7,_0x52950a,_0x398247,_0x51a625,_0x376c34,_0x48c528,_0x1f45d1,_0xcb1d3f,_0x1405fb,_0x5e140d,_0x4b3534){const _0x13f268=_0x1f8522;super(_0x3c71d7,_0x52950a,_0x398247,[],_0x51a625,_0x1f45d1,_0x5e140d,_0x48c528,_0x4b3534),this[_0x13f268(0xe9)]=_0x376c34,this[_0x13f268(0x2b2)]=_0xcb1d3f,this[_0x13f268(0xf0)]=_0x1405fb,I(this,_0x13f268(0x214),_0x13f268(0x31e)),I(this,_0x13f268(0x279),0x0),I(this,_0x13f268(0x316),0x0),I(this,'_resendTimer',void 0x0),I(this,'_sender',void 0x0);}[_0x1f8522(0x295)](_0x5f164b){const _0x2f9740=_0x1f8522;this[_0x2f9740(0x2a2)]();let _0x19d4d3=this[_0x2f9740(0xe9)][_0x2f9740(0x164)](J,this[_0x2f9740(0x108)],this[_0x2f9740(0x126)],this['_awaitingChangeset'],[_0x5f164b],this[_0x2f9740(0x226)],this[_0x2f9740(0x218)]);return _0x19d4d3[_0x2f9740(0x25e)](),_0x19d4d3;}[_0x1f8522(0x20e)](_0x4a1941){const _0x1cacc9=_0x1f8522;if(this['_checkMissing'](_0x4a1941))return this[_0x1cacc9(0x2a2)](),this[_0x1cacc9(0xe9)][_0x1cacc9(0x164)](Z,this['unitID'],this[_0x1cacc9(0x126)],this['_awaitingChangeset'],[],null,[_0x4a1941],this[_0x1cacc9(0x226)]);try{let _0x245001=this['_transformService'][_0x1cacc9(0x21d)]([_0x4a1941],[this['_awaitingChangeset']],!0x1);if(_0x1dbd0e(_0x245001)){let {c1Prime:_0x634538,c2Prime:_0x353fdb}=_0x245001;this[_0x1cacc9(0xde)](_0x634538[0x0]),_0x353fdb[0x0][_0x1cacc9(0x18f)]=this['_getCurrentRevision'](),this[_0x1cacc9(0x2a2)]();let _0x1df3c1=this['_injector'][_0x1cacc9(0x164)](Gt,this['unitID'],this[_0x1cacc9(0x126)],_0x353fdb[0x0],this[_0x1cacc9(0x226)]);return _0x1df3c1['_updateLocalCache'](),_0x1df3c1;}throw _0x245001[_0x1cacc9(0xd2)];}catch(_0x48086f){return this[_0x1cacc9(0x2b2)][_0x1cacc9(0xd2)](_0x48086f),this[_0x1cacc9(0xc7)](!0x1);}}['onRemoteAck'](_0x5e44cd){const _0x449336=_0x1f8522;this[_0x449336(0x2a2)]();let _0x42773a=this[_0x449336(0x1f3)]['getCurrentRevOfUnit'](this['unitID']);if(_0x5e44cd['revision']<=_0x42773a)return this;if(this[_0x449336(0x1e1)](_0x5e44cd))return this[_0x449336(0xe9)][_0x449336(0x164)](Z,this[_0x449336(0x108)],this['type'],this[_0x449336(0x11a)],[],_0x5e44cd[_0x449336(0x270)],[],this[_0x449336(0x226)]);this[_0x449336(0x1fb)]();let _0x5cdb53=this[_0x449336(0xe9)][_0x449336(0x164)](G,this[_0x449336(0x108)],this['type'],this[_0x449336(0x226)]);return _0x5cdb53[_0x449336(0x25e)](),_0x5cdb53;}[_0x1f8522(0x254)](_0x1f582f){const _0xed8a37=_0x1f8522;return this['_onConflict'](!!(_0x1f582f!=null&&_0x1f582f[_0xed8a37(0x1ee)]));}[_0x1f8522(0x30c)](_0x1bf0a2){const _0xc8249=_0x1f8522;return this[_0xc8249(0x316)]>Yt?this[_0xc8249(0x1dd)]():(this[_0xc8249(0x218)]=Ut(this[_0xc8249(0x279)],{'timeout':this['_resendTimeout'],'reqId':_0x1bf0a2[_0xc8249(0x2c4)]}),this['_sender']=this[_0xc8249(0x218)][_0xc8249(0xfb)](({reqId:_0x42654b,timeout:_0x4ee5ec})=>{const _0x4665bc=_0xc8249;this[_0x4665bc(0x22c)](_0x42654b,_0x4ee5ec);}),this);}[_0x1f8522(0x1dd)](){const _0x5e0522=_0x1f8522;return this[_0x5e0522(0x2a2)](),this['_injector'][_0x5e0522(0x164)](X,this[_0x5e0522(0x108)],this[_0x5e0522(0x126)],this['_awaitingChangeset'],[],this['_handler']);}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0x231)](){const _0x4a5bf5=_0x1f8522;this[_0x4a5bf5(0x226)][_0x4a5bf5(0x2d6)](this[_0x4a5bf5(0x11a)]);}[_0x1f8522(0xc7)](_0x1b040a){const _0x3f5785=_0x1f8522;return this['_clearScheduledTask'](),this[_0x3f5785(0xe9)]['createInstance'](Y,this[_0x3f5785(0x108)],this[_0x3f5785(0x126)],this[_0x3f5785(0x11a)],[],this[_0x3f5785(0x226)],_0x1b040a);}['_resendWithTimeout'](_0x33ce1a,_0x1f720f){const _0x5c2152=_0x1f8522;var _0x12e494;_0x33ce1a===((_0x12e494=this[_0x5c2152(0x11a)])==null?void 0x0:_0x12e494[_0x5c2152(0x2c4)])&&(this[_0x5c2152(0x231)](),this[_0x5c2152(0x279)]=_0x1f720f===0x0?0x3e8:Math[_0x5c2152(0x260)](_0x1f720f*0x2,Jt),this['_maxTotalRetryTimeout']+=this[_0x5c2152(0x279)]);}[_0x1f8522(0x2a2)](){const _0x227242=_0x1f8522;var _0xdeb42;(_0xdeb42=this[_0x227242(0x1a0)])==null||_0xdeb42[_0x227242(0x1f0)](),this[_0x227242(0x279)]=0x0,this[_0x227242(0x316)]=0x0;}};q=Gt=z([R(0x4,_0x4f07a4(_0x44d080)),R(0x5,_0x4f07a4(_0x3c5693)),R(0x6,_0x3a76f7),R(0x7,_0x1443cf),R(0x8,_0x4f7ff9),R(0x9,_0x3b54de),R(0xa,_0x1cfc4d(V))],q);let J=Kt=class extends W{constructor(_0x2280b4,_0x1a847f,_0x4cdf77,_0x299908,_0x1d1f49,_0x1047fc,_0x7b4165,_0x3c7001,_0x48036e,_0x378ff1,_0x3cf563,_0x691293,_0x19b2c6){const _0x4c9003=_0x1f8522;super(_0x2280b4,_0x1a847f,_0x4cdf77,_0x299908,_0x1d1f49,_0x48036e,_0x691293,_0x3c7001,_0x19b2c6),this[_0x4c9003(0xe9)]=_0x7b4165,this['_logService']=_0x378ff1,this[_0x4c9003(0xf0)]=_0x3cf563,this['localCacheService']=_0x19b2c6,I(this,_0x4c9003(0x214),_0x4c9003(0x13b)),I(this,_0x4c9003(0x279),0x0),I(this,_0x4c9003(0x316),0x0),I(this,_0x4c9003(0x218),void 0x0),I(this,_0x4c9003(0x1a0),void 0x0),_0x1047fc&&(this[_0x4c9003(0x218)]=_0x1047fc,this['_sender']=this[_0x4c9003(0x218)][_0x4c9003(0xfb)](({reqId:_0x174e77,timeout:_0x5a2088})=>{const _0x20b82b=_0x4c9003;this[_0x20b82b(0x22c)](_0x174e77,_0x5a2088);}));}[_0x1f8522(0x295)](_0x2bd7a8){const _0x1915c1=_0x1f8522;return this[_0x1915c1(0x211)][_0x1915c1(0xc1)](_0x2bd7a8),this;}[_0x1f8522(0x20e)](_0x104df6){const _0x2c009c=_0x1f8522;if(this[_0x2c009c(0x1e1)](_0x104df6))return this['_clearScheduledTask'](),this[_0x2c009c(0xe9)]['createInstance'](Z,this['unitID'],this[_0x2c009c(0x126)],this[_0x2c009c(0x11a)],this[_0x2c009c(0x211)],null,[_0x104df6],this[_0x2c009c(0x226)]);try{let _0x185662=this[_0x2c009c(0xf0)][_0x2c009c(0x21d)]([_0x104df6],[this[_0x2c009c(0x11a)]],!0x1);if(_0x1dbd0e(_0x185662)){let {c1Prime:_0x2c4202,c2Prime:_0x26da7f}=_0x185662,_0x2d03c2=this['_transformService'][_0x2c009c(0x280)](_0x2c4202[0x0],this['_pendingMutations']);if(_0x534268(_0x2d03c2)){let {c1Prime:_0x2bb486,m2Prime:_0x57f4cc}=_0x2d03c2;return this['_executeRemoteChangeset'](_0x2bb486),_0x26da7f[0x0]['baseRev']=this[_0x2c009c(0x275)](),this[_0x2c009c(0x2a2)](),this[_0x2c009c(0xe9)][_0x2c009c(0x164)](Kt,this['unitID'],this[_0x2c009c(0x126)],_0x26da7f[0x0],_0x57f4cc,this[_0x2c009c(0x226)],void 0x0);}throw _0x2d03c2[_0x2c009c(0xd2)];}throw _0x185662[_0x2c009c(0xd2)];}catch(_0x356356){return this[_0x2c009c(0x2b2)]['error'](_0x356356),this[_0x2c009c(0xc7)](!0x1);}}[_0x1f8522(0x201)](_0x538cb6){const _0x5411f4=_0x1f8522;this[_0x5411f4(0x2a2)]();let _0xa41dd0=this[_0x5411f4(0x275)]();if(_0x538cb6[_0x5411f4(0x270)]<=_0xa41dd0)return this;if(this['_checkMissing'](_0x538cb6))return this[_0x5411f4(0xe9)][_0x5411f4(0x164)](Z,this[_0x5411f4(0x108)],this['type'],this[_0x5411f4(0x11a)],this[_0x5411f4(0x211)],_0x538cb6['revision'],[],this['_handler']);this[_0x5411f4(0x1fb)]();let _0xbcbcbd=this[_0x5411f4(0xe9)][_0x5411f4(0x164)](K,this[_0x5411f4(0x108)],this[_0x5411f4(0x126)],this[_0x5411f4(0x211)],this['_handler']);return _0xbcbcbd[_0x5411f4(0x1f8)](),_0xbcbcbd[_0x5411f4(0x25e)](),_0xbcbcbd;}[_0x1f8522(0x254)](_0x627f12){const _0x1cff9a=_0x1f8522;return this[_0x1cff9a(0xc7)](!!(_0x627f12!=null&&_0x627f12[_0x1cff9a(0x1ee)]));}[_0x1f8522(0x30c)](_0x37b66b){const _0x583e7a=_0x1f8522;return this[_0x583e7a(0x316)]>Yt?this[_0x583e7a(0x1dd)]():(this['_resendTimer']=Ut(this[_0x583e7a(0x279)],{'timeout':this[_0x583e7a(0x279)],'reqId':_0x37b66b[_0x583e7a(0x2c4)]}),this[_0x583e7a(0x1a0)]=this[_0x583e7a(0x218)][_0x583e7a(0xfb)](({reqId:_0x360178,timeout:_0x242788})=>{const _0x4a7deb=_0x583e7a;this[_0x4a7deb(0x22c)](_0x360178,_0x242788);}),this);}['toggleOffline'](){const _0x3080df=_0x1f8522;return this[_0x3080df(0x2a2)](),this['_injector'][_0x3080df(0x164)](X,this[_0x3080df(0x108)],this[_0x3080df(0x126)],this[_0x3080df(0x11a)],this[_0x3080df(0x211)],this[_0x3080df(0x226)]);}['toggleOnline'](){return this;}[_0x1f8522(0x231)](){const _0x2d9100=_0x1f8522;this[_0x2d9100(0x226)][_0x2d9100(0x2d6)](this[_0x2d9100(0x11a)]);}[_0x1f8522(0xc7)](_0x1de8cc){const _0x46e68a=_0x1f8522;return this['_clearScheduledTask'](),this[_0x46e68a(0xe9)][_0x46e68a(0x164)](Y,this[_0x46e68a(0x108)],this['type'],null,this[_0x46e68a(0x211)],this['_handler'],_0x1de8cc);}[_0x1f8522(0x22c)](_0x42aaa2,_0x56c085){const _0xcfb75c=_0x1f8522;var _0x226185;_0x42aaa2===((_0x226185=this['_awaitingChangeset'])==null?void 0x0:_0x226185[_0xcfb75c(0x2c4)])&&(this['resend'](),this[_0xcfb75c(0x279)]=_0x56c085===0x0?0x3e8:Math[_0xcfb75c(0x260)](_0x56c085*0x2,Jt),this[_0xcfb75c(0x316)]+=this['_resendTimeout']);}[_0x1f8522(0x2a2)](){const _0x1c0b64=_0x1f8522;var _0x4873f0;(_0x4873f0=this[_0x1c0b64(0x1a0)])==null||_0x4873f0['unsubscribe'](),this[_0x1c0b64(0x279)]=0x0,this[_0x1c0b64(0x316)]=0x0;}};J=Kt=z([R(0x6,_0x4f07a4(_0x44d080)),R(0x7,_0x4f07a4(_0x3c5693)),R(0x8,_0x3a76f7),R(0x9,_0x1443cf),R(0xa,_0x4f7ff9),R(0xb,_0x3b54de),R(0xc,_0x1cfc4d(V))],J);let Y=class extends W{constructor(_0x4229aa,_0x3dad61,_0x1e6007,_0x5d7352,_0x42aafb,_0x4ff9a4=!0x1,_0x5117b4,_0x1a4961,_0x3954a9,_0x2b49db,_0x10ea81,_0x5c84e6,_0xaf5064){const _0x612f8a=_0x1f8522;super(_0x4229aa,_0x3dad61,_0x1e6007,_0x5d7352,_0x42aafb,_0x1a4961,_0x3954a9,_0x2b49db,_0xaf5064),this[_0x612f8a(0xfd)]=_0x4ff9a4,this[_0x612f8a(0xfe)]=_0x5117b4,this[_0x612f8a(0x2e9)]=_0x10ea81,this[_0x612f8a(0x2b3)]=_0x5c84e6,this[_0x612f8a(0xf6)]=_0xaf5064,I(this,_0x612f8a(0x214),'conflict'),this[_0x612f8a(0x192)](),this[_0x612f8a(0x132)](),this['_disableEditing']();}[_0x1f8522(0x295)](){return this;}[_0x1f8522(0x20e)](){return this;}['onRemoteAck'](){return this;}[_0x1f8522(0x254)](){return this;}[_0x1f8522(0x30c)](){return this;}[_0x1f8522(0x1dd)](){return this;}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0x231)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f8522(0x132)](){const _0x185077=_0x1f8522;var _0x49075a;(_0x49075a=this[_0x185077(0xdd)])==null||_0x49075a[_0x185077(0x210)](this['unitID'],this[_0x185077(0x126)],null,[]);}[_0x1f8522(0x192)](){const _0x2bed19=_0x1f8522;this['_isPermissionRej']?this[_0x2bed19(0x2b3)]['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0x2bed19(0x2b3)]['emitEvent']({'id':_0x2bed19(0x148)});}[_0x1f8522(0x159)](){const _0x3ee634=_0x1f8522;this[_0x3ee634(0xfe)]['updatePermissionPoint'](new _0x14cd38(this[_0x3ee634(0x108)])['id'],!0x1);}};Y=z([R(0x6,_0x4f07a4(_0x439c61)),R(0x7,_0x3a76f7),R(0x8,_0x3b54de),R(0x9,_0x4f07a4(_0x3c5693)),R(0xa,_0x4f07a4(_0x220418)),R(0xb,_0x4f07a4(L)),R(0xc,_0x1cfc4d(V))],Y);let X=class extends W{constructor(_0x5ea880,_0x4b0d77,_0x434d6d,_0xea1bd1,_0x5b8042,_0x32afab,_0x3df5df,_0x5aa707,_0x16ea4a,_0xfc10d5){const _0x5a57a3=_0x1f8522;super(_0x5ea880,_0x4b0d77,_0x434d6d,_0xea1bd1,_0x5b8042,_0x5aa707,_0x16ea4a,_0x3df5df,_0xfc10d5),this['_injector']=_0x32afab,I(this,_0x5a57a3(0x214),_0x5a57a3(0x120));}[_0x1f8522(0x295)](_0x1a4fd7){const _0x4e4299=_0x1f8522;return this[_0x4e4299(0x211)][_0x4e4299(0xc1)](_0x1a4fd7),this[_0x4e4299(0x25e)](),this;}[_0x1f8522(0x20e)](_0x14aa7c){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x1f8522(0x254)](){const _0x3a65b8=_0x1f8522;throw Error(_0x3a65b8(0x2c3));}[_0x1f8522(0x30c)](){return this;}['toggleOffline'](){return this;}[_0x1f8522(0x2c5)](){let {_injector:_0x511dcc,_pendingMutations:_0x59914c,_awaitingChangeset:_0x26ecd1,unitID:_0x5e06f2,_handler:_0x5f42aa,type:_0x19c584}=this,_0x17e334=Xt(_0x511dcc,_0x5e06f2,_0x19c584,_0x26ecd1,_0x59914c,_0x5f42aa);return _0x17e334 instanceof K?_0x17e334['_schedule']():(_0x17e334 instanceof J||_0x17e334 instanceof q)&&_0x17e334['resend'](),_0x17e334;}[_0x1f8522(0x231)](){const _0x3d3ad9=_0x1f8522;throw Error(_0x3d3ad9(0x246));}};X=z([R(0x5,_0x4f07a4(_0x44d080)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x3a76f7),R(0x8,_0x3b54de),R(0x9,_0x1cfc4d(V))],X);let Z=class extends W{constructor(_0x4e9c6d,_0x516c79,_0x18fc74,_0x4c7c34,_0x129c54,_0x517ead,_0xea15d5,_0x4253fd,_0x45a491,_0x1b4f97,_0x2a5b2a,_0x3d7bb7,_0x2ecc8d,_0x3b2599){const _0x1f57e6=_0x1f8522;super(_0x4e9c6d,_0x516c79,_0x18fc74,_0x4c7c34,_0xea15d5,_0x2a5b2a,_0x3d7bb7,_0x45a491,_0x3b2599),this[_0x1f57e6(0x2ec)]=_0x129c54,this[_0x1f57e6(0x313)]=_0x517ead,this[_0x1f57e6(0xe9)]=_0x4253fd,this[_0x1f57e6(0x2b2)]=_0x1b4f97,this[_0x1f57e6(0xf0)]=_0x2ecc8d,this[_0x1f57e6(0xf6)]=_0x3b2599,I(this,'status',_0x1f57e6(0x13a));}[_0x1f8522(0x13d)](_0x45dadc){const _0x56082b=_0x1f8522;try{if(this[_0x56082b(0x2e2)](_0x45dadc)['missingChangesets'])throw Error(_0x56082b(0x23e));if(this[_0x56082b(0x2e2)]([...this[_0x56082b(0x313)]]['sort']((_0x271072,_0x2b90bb)=>_0x271072[_0x56082b(0x270)]-_0x2b90bb[_0x56082b(0x270)]))[_0x56082b(0xd6)])return this[_0x56082b(0x313)]=[],this['_updateLocalCache'](),this['_handler'][_0x56082b(0x2ae)]({'from':this[_0x56082b(0x275)](),'to':0x0}),this;let _0x2b7a4e=this[_0x56082b(0x11a)],_0x290072=this[_0x56082b(0x211)],_0x6b1a90;if(_0x2b7a4e&&_0x290072[_0x56082b(0x10a)]!==0x0)_0x6b1a90=this[_0x56082b(0xe9)][_0x56082b(0x164)](J,this['unitID'],this[_0x56082b(0x126)],_0x2b7a4e,_0x290072,this[_0x56082b(0x226)],void 0x0);else{if(_0x2b7a4e&&_0x290072[_0x56082b(0x10a)]===0x0)_0x2b7a4e[_0x56082b(0x18f)]=this['_getCurrentRevision'](),_0x6b1a90=this[_0x56082b(0xe9)][_0x56082b(0x164)](q,this[_0x56082b(0x108)],this[_0x56082b(0x126)],_0x2b7a4e,this[_0x56082b(0x226)]);else{if(_0x290072[_0x56082b(0x10a)]!==0x0){let _0xe99909=this[_0x56082b(0xe9)][_0x56082b(0x164)](K,this[_0x56082b(0x108)],this[_0x56082b(0x126)],_0x290072,this['_handler']);_0xe99909[_0x56082b(0x1f8)](),_0x6b1a90=_0xe99909;}else _0x6b1a90=this[_0x56082b(0xe9)]['createInstance'](G,this['unitID'],this['type'],this['_handler']);}}return _0x6b1a90[_0x56082b(0x25e)](),_0x6b1a90;}catch(_0x5a8ee9){return this[_0x56082b(0x2b2)][_0x56082b(0xd2)](_0x56082b(0x151),_0x56082b(0x153),_0x5a8ee9),this['_injector'][_0x56082b(0x164)](Y,this[_0x56082b(0x108)],this[_0x56082b(0x126)],this[_0x56082b(0x11a)],this[_0x56082b(0x211)],this['_handler'],!0x1);}}[_0x1f8522(0x2e2)](_0x77c894){const _0x707c6f=_0x1f8522;this[_0x707c6f(0x25d)]();for(let _0x37c25e=0x0;_0x37c25e<_0x77c894['length'];_0x37c25e++){let _0x478e09=_0x77c894[_0x37c25e],_0x3b8112=this['_getCurrentRevision']();if(!(_0x478e09['revision']<=_0x3b8112)){if(_0x478e09[_0x707c6f(0x270)]>_0x3b8112+0x1)return{'missingChangesets':!0x0};if(this[_0x707c6f(0x228)](_0x478e09)){this[_0x707c6f(0x2ac)]();continue;}this[_0x707c6f(0x150)](_0x478e09),this[_0x707c6f(0x25d)]();}}return{'missingChangesets':!0x1};}[_0x1f8522(0x150)](_0x4217a8){const _0x4ad48a=_0x1f8522;let _0x7ff1dd=_0x4217a8,_0x4ad5ea=this[_0x4ad48a(0x11a)];if(_0x4ad5ea){let _0x14bf67=this['_transformService']['transformChangesets']([_0x4217a8],[_0x4ad5ea],!0x1);if(!_0x1dbd0e(_0x14bf67))throw _0x14bf67['error'];_0x7ff1dd=_0x14bf67[_0x4ad48a(0x2bb)][0x0],_0x4ad5ea=_0x14bf67['c2Prime'][0x0];}let _0x39ec82=this[_0x4ad48a(0x211)];if(_0x39ec82['length']){let _0x3a5dd7=this['_transformService'][_0x4ad48a(0x280)](_0x7ff1dd,_0x39ec82);if(!_0x534268(_0x3a5dd7))throw _0x3a5dd7[_0x4ad48a(0xd2)];_0x7ff1dd=_0x3a5dd7[_0x4ad48a(0x2bb)],_0x39ec82=_0x3a5dd7[_0x4ad48a(0x2c1)];}this[_0x4ad48a(0xde)](_0x7ff1dd),_0x4ad5ea&&(_0x4ad5ea[_0x4ad48a(0x18f)]=this[_0x4ad48a(0x275)]()),this['_awaitingChangeset']=_0x4ad5ea,this[_0x4ad48a(0x211)]=_0x39ec82;}[_0x1f8522(0x25d)](){const _0xd19d6a=_0x1f8522;if(!this[_0xd19d6a(0x11a)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x11da8d=this[_0xd19d6a(0x275)]();if(this['_acknowledgedAwaitingRevision']<=_0x11da8d)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this['_acknowledgedAwaitingRevision']+'.');this['_acknowledgedAwaitingRevision']===_0x11da8d+0x1&&this[_0xd19d6a(0x2ac)]();}[_0x1f8522(0x2ac)](){const _0x69e9b5=_0x1f8522;this[_0x69e9b5(0x1fb)](),this[_0x69e9b5(0x11a)]=null,this[_0x69e9b5(0x2ec)]=null;}[_0x1f8522(0x228)](_0x36790e){const _0x170550=_0x1f8522;let _0x3c5db9=this[_0x170550(0x11a)];return!_0x3c5db9||!_0x3c5db9[_0x170550(0x17a)]||_0x3c5db9[_0x170550(0x2c4)]===null||_0x3c5db9[_0x170550(0x2c4)]===void 0x0?!0x1:_0x36790e[_0x170550(0x108)]===_0x3c5db9[_0x170550(0x108)]&&_0x36790e[_0x170550(0x17a)]===_0x3c5db9[_0x170550(0x17a)]&&_0x36790e[_0x170550(0x2c4)]===_0x3c5db9[_0x170550(0x2c4)];}[_0x1f8522(0x231)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f8522(0x295)](_0x46ffc1){const _0x8ec60f=_0x1f8522;return this[_0x8ec60f(0x211)][_0x8ec60f(0xc1)](_0x46ffc1),this;}['onRemoteChangeset'](_0x7b03d9){const _0x58c532=_0x1f8522;return this[_0x58c532(0x313)][_0x58c532(0xc1)](_0x7b03d9),this;}[_0x1f8522(0x201)](_0x3c7156){const _0x252d65=_0x1f8522;if(this[_0x252d65(0x11a)]){let _0x51bf4c=this['_getCurrentRevision']();return _0x3c7156['revision']<=_0x51bf4c||(_0x51bf4c+0x1===_0x3c7156[_0x252d65(0x270)]?(this[_0x252d65(0x1fb)](),this['_awaitingChangeset']=null,this[_0x252d65(0x2ec)]=null):this[_0x252d65(0x2ec)]=_0x3c7156[_0x252d65(0x270)]),this;}if(_0x3c7156[_0x252d65(0x270)]<=this['_getCurrentRevision']())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x1f8522(0x254)](_0x2bb381){const _0x48ddff=_0x1f8522;return this[_0x48ddff(0xc7)](!!(_0x2bb381!=null&&_0x2bb381[_0x48ddff(0x1ee)]));}[_0x1f8522(0x30c)](){return this;}['toggleOffline'](){const _0x2f1434=_0x1f8522;return this[_0x2f1434(0xe9)][_0x2f1434(0x164)](X,this[_0x2f1434(0x108)],this[_0x2f1434(0x126)],this['_awaitingChangeset'],this[_0x2f1434(0x211)],this['_handler']);}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0xc7)](_0x4e0b91){const _0x513cba=_0x1f8522;return this[_0x513cba(0xe9)]['createInstance'](Y,this[_0x513cba(0x108)],this[_0x513cba(0x126)],this[_0x513cba(0x11a)],this[_0x513cba(0x211)],this[_0x513cba(0x226)],_0x4e0b91);}};Z=z([R(0x7,_0x4f07a4(_0x44d080)),R(0x8,_0x4f07a4(_0x3c5693)),R(0x9,_0x1443cf),R(0xa,_0x3a76f7),R(0xb,_0x3b54de),R(0xc,_0x4f7ff9),R(0xd,_0x1cfc4d(V))],Z);function Xt(_0x51f83e,_0x29392c,_0x18277c,_0x113912,_0x4d413e,_0x5ed183){const _0x5a25e3=_0x1f8522;return _0x113912&&_0x4d413e[_0x5a25e3(0x10a)]?_0x51f83e[_0x5a25e3(0x164)](J,_0x29392c,_0x18277c,_0x113912,_0x4d413e,_0x5ed183,void 0x0):_0x113912?_0x51f83e[_0x5a25e3(0x164)](q,_0x29392c,_0x18277c,_0x113912,_0x5ed183):_0x4d413e[_0x5a25e3(0x10a)]?_0x51f83e[_0x5a25e3(0x164)](K,_0x29392c,_0x18277c,_0x4d413e,_0x5ed183):_0x51f83e[_0x5a25e3(0x164)](G,_0x29392c,_0x18277c,_0x5ed183);}let Zt=class extends _0x3498fe{get[_0x1f8522(0x2f9)](){const _0x290277=_0x1f8522;return this[_0x290277(0x1e4)];}constructor(_0x593983,_0x36e38d,_0x373c9f,_0x4250b9,_0x523a96,_0x249b9f,_0x222072,_0x1991a1,_0x1620da,_0x16b52a,_0x5e5c5a,_0xe2e312,_0x374675,_0x2dcfab){const _0x11a89e=_0x1f8522;super(),this[_0x11a89e(0x108)]=_0x593983,this[_0x11a89e(0x2cc)]=_0x36e38d,this[_0x11a89e(0x17e)]=_0x373c9f,this['_injector']=_0x4250b9,this['_compressMutationService']=_0x523a96,this[_0x11a89e(0x2e9)]=_0x249b9f,this[_0x11a89e(0x1f3)]=_0x222072,this[_0x11a89e(0x27b)]=_0x1991a1,this[_0x11a89e(0xf7)]=_0x1620da,this['_logService']=_0x16b52a,this[_0x11a89e(0x31a)]=_0x5e5c5a,this['_permissionService']=_0xe2e312,this[_0x11a89e(0xb9)]=_0x374675,this[_0x11a89e(0xdd)]=_0x2dcfab,I(this,'_state$',new _0x2acfcb(null)),I(this,_0x11a89e(0x1cc),this[_0x11a89e(0x2be)][_0x11a89e(0x2b0)]()),I(this,_0x11a89e(0x1e4),void 0x0),I(this,_0x11a89e(0x1b3),!0x1),I(this,_0x11a89e(0x2ed),''),I(this,'_changesetReqId',0x0),I(this,'status$',this[_0x11a89e(0x1cc)][_0x11a89e(0x27e)](_0x4d141e(_0x2ee0fb=>_0x2ee0fb?_0x2ee0fb[_0x11a89e(0x214)]:'offline'),_0x60bd5a({'bufferSize':0x1,'refCount':!0x0}))),I(this,'_transitionLocked',!0x1),I(this,'_remoteChangesetQueue',[]);}async[_0x1f8522(0x266)](){const _0x4903f1=_0x1f8522;if(this[_0x4903f1(0x2f9)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x4903f1(0x182)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x224a5f(()=>{const _0x3fed4b=_0x249d;this[_0x3fed4b(0x1b3)]=!0x1,this[_0x3fed4b(0x221)]();});}[_0x1f8522(0x244)](_0x3d5eee){const _0x227c48=_0x1f8522;this[_0x227c48(0x287)](_0x3d5eee);}[_0x1f8522(0x1a2)](_0x2ea5f2){const _0x5c5dda=_0x1f8522;this[_0x5c5dda(0x1e4)]=_0x2ea5f2,this[_0x5c5dda(0x2be)][_0x5c5dda(0xc4)](_0x2ea5f2);}async[_0x1f8522(0x182)](){const _0x8f40c3=_0x1f8522;if(this['_updateState'](await this[_0x8f40c3(0x2b9)]()),this[_0x8f40c3(0xb9)]){var _0xd8307d;(_0xd8307d=this[_0x8f40c3(0xb9)])==null||_0xd8307d[_0x8f40c3(0x284)](this[_0x8f40c3(0x108)]),this[_0x8f40c3(0x2e0)](this[_0x8f40c3(0xb9)][_0x8f40c3(0x1ef)](this['unitID'])[_0x8f40c3(0xfb)](_0x88ec84=>{const _0xe481c4=_0x8f40c3;this[_0xe481c4(0x2b2)][_0xe481c4(0x305)](_0xe481c4(0x2dd),'editing\x20status\x20changed\x20to',_0x88ec84),_0x88ec84===0x1?(this[_0xe481c4(0x27b)][_0xe481c4(0x15d)]({'id':_0xe481c4(0x167)}),this[_0xe481c4(0xfe)]['updatePermissionPoint'](new _0x14cd38(this[_0xe481c4(0x108)])['id'],!0x1),this[_0xe481c4(0xfe)][_0xe481c4(0x18b)](!0x1)):(this[_0xe481c4(0xfe)][_0xe481c4(0x134)](new _0x14cd38(this[_0xe481c4(0x108)])['id'],!0x0),this[_0xe481c4(0xfe)][_0xe481c4(0x18b)](!0x0));}));}let _0x1225ee=!0x1;return this[_0x8f40c3(0x2e0)](this[_0x8f40c3(0x2cc)]['sessionStatus$'][_0x8f40c3(0xfb)](_0x3e845f=>{const _0x14ceed=_0x8f40c3;_0x3e845f===0x3?this[_0x14ceed(0x1cf)](_0x1225ee):_0x3e845f===0x2&&(_0x1225ee=!0x0,this['_toggleOffline']());})),this[_0x8f40c3(0x2e0)](this[_0x8f40c3(0x2cc)][_0x8f40c3(0xfa)][_0x8f40c3(0xfb)](_0x3755a8=>{const _0x4b3979=_0x8f40c3;try{switch(_0x3755a8[_0x4b3979(0x281)]){case _0x27e67f[_0x4b3979(0x29e)]:this[_0x4b3979(0x11b)](_0x13b02b(_0x3755a8[_0x4b3979(0x194)]));break;case _0x27e67f[_0x4b3979(0xce)]:this['_onRemoteACK'](_0x3755a8[_0x4b3979(0x194)]);break;case _0x27e67f[_0x4b3979(0x1a1)]:this[_0x4b3979(0x23b)]();break;case _0x27e67f[_0x4b3979(0x1b1)]:this[_0x4b3979(0x196)](_0x3755a8[_0x4b3979(0x194)]);break;case _0x27e67f[_0x4b3979(0x25a)]:this[_0x4b3979(0x28d)](_0x3755a8['data'][_0x4b3979(0x2f3)][_0x4b3979(0x1f1)](_0x1d143e=>_0x13b02b(_0x1d143e)));break;case _0x27e67f['PERMISSION_REJ']:this[_0x4b3979(0x23b)]({'isPermissionRej':!0x0});break;case _0x27e67f[_0x4b3979(0x17c)]:break;}}catch(_0x3861e2){throw console[_0x4b3979(0xd2)]('Error\x20on\x20receiving\x20event',_0x3861e2),_0x3861e2;}})),this[_0x8f40c3(0x1e4)];}[_0x1f8522(0x102)](){const _0x53896f=_0x1f8522;this[_0x53896f(0x207)]=!0x1;}[_0x1f8522(0x1c3)](){const _0x30130d=_0x1f8522;if(this[_0x30130d(0x207)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x30130d(0x207)]=!0x0;}[_0x1f8522(0x287)](_0x38fa17){const _0x5269b5=_0x1f8522;this['_lockTransition'](),this[_0x5269b5(0x1a2)](this['_state'][_0x5269b5(0x295)](_0x38fa17)),this[_0x5269b5(0x102)]();}[_0x1f8522(0x11b)](_0x496bba){const _0x2a8e1b=_0x1f8522;if(!(_0x496bba[_0x2a8e1b(0x270)]<=this[_0x2a8e1b(0x1f3)][_0x2a8e1b(0x2d4)](this[_0x2a8e1b(0x108)]))){if(this[_0x2a8e1b(0x1b3)]){this[_0x2a8e1b(0x1e8)][_0x2a8e1b(0xc1)](_0x496bba);return;}this[_0x2a8e1b(0x21b)](_0x496bba);}}[_0x1f8522(0x221)](){const _0x3832a4=_0x1f8522;this[_0x3832a4(0x1e8)][_0x3832a4(0x1b0)](_0x12eae2=>this[_0x3832a4(0x21b)](_0x12eae2)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x5ad90f){const _0x39730a=_0x1f8522;let _0x4efbf9=this[_0x39730a(0x2bf)]['interceptor'][_0x39730a(0x29f)](this['_compressMutationService'][_0x39730a(0x137)]['getInterceptPoints']()[_0x39730a(0x143)])(_0x5ad90f[_0x39730a(0x236)],null)||_0x5ad90f['mutations'],_0x3eccee={..._0x5ad90f,'mutations':_0x4efbf9};this[_0x39730a(0x1c3)](),this[_0x39730a(0x1a2)](this[_0x39730a(0x1e4)][_0x39730a(0x20e)](_0x3eccee)),this[_0x39730a(0x102)]();}[_0x1f8522(0x24b)](_0x3eb4f6){const _0x5ec0b1=_0x1f8522;this['_lockTransition'](),this[_0x5ec0b1(0x1a2)](this['_state'][_0x5ec0b1(0x201)](_0x3eb4f6)),this[_0x5ec0b1(0x102)]();}[_0x1f8522(0x23b)](_0x3b07cc){const _0x4e680a=_0x1f8522;this['_lockTransition'](),this[_0x4e680a(0x1a2)](this[_0x4e680a(0x1e4)][_0x4e680a(0x254)](_0x3b07cc)),this[_0x4e680a(0x102)]();}['_onRemoteRetry'](_0x16bc87){const _0x1b2b12=_0x1f8522;this['_lockTransition'](),this['_updateState'](this[_0x1b2b12(0x1e4)][_0x1b2b12(0x30c)](_0x16bc87)),this['_unlockTransition']();}[_0x1f8522(0x28d)](_0x4bf113){const _0x57b502=_0x1f8522;if(!(this[_0x57b502(0x1e4)]instanceof Z))throw TypeError(_0x57b502(0x2e6));let _0xc46752=_0x4bf113['map'](_0x210f91=>{const _0x257918=_0x57b502;let _0x5b9756=this[_0x257918(0x2bf)]['interceptor'][_0x257918(0x29f)](this[_0x257918(0x2bf)][_0x257918(0x137)][_0x257918(0x2ca)]()[_0x257918(0x143)])(_0x210f91[_0x257918(0x236)],null)||_0x210f91[_0x257918(0x236)];return{..._0x210f91,'mutations':_0x5b9756};});this[_0x57b502(0x1c3)](),this[_0x57b502(0x1a2)](this[_0x57b502(0x1e4)][_0x57b502(0x13d)](_0xc46752)),this['_unlockTransition']();}[_0x1f8522(0x219)](){const _0x49de96=_0x1f8522;this[_0x49de96(0x1c3)](),this['_updateState'](this[_0x49de96(0x1e4)][_0x49de96(0x1dd)]()),this[_0x49de96(0x102)]();}[_0x1f8522(0x1cf)](_0x12b0d4=!0x1){const _0x68138c=_0x1f8522;this[_0x68138c(0x1c3)](),this[_0x68138c(0x1a2)](this['_state'][_0x68138c(0x2c5)]()),this['_unlockTransition']();let _0x3e911b=this[_0x68138c(0x1e4)];_0x12b0d4&&_0x3e911b instanceof G&&(this['_lockTransition'](),this[_0x68138c(0x1a2)](_0x3e911b[_0x68138c(0x2af)]()),this[_0x68138c(0x102)]());}async['_createInitialState'](){return new Promise(_0xf94634=>{const _0x49ab5b=_0x249d;this[_0x49ab5b(0x2cc)][_0x49ab5b(0x1df)][_0x49ab5b(0x27e)](_0x4abdb0(0x1))[_0x49ab5b(0xfb)](async _0x319e9f=>{const _0x42e995=_0x49ab5b;_0xf94634(await this[_0x42e995(0x181)](_0x319e9f===0x3));});});}[_0x1f8522(0x213)](){const _0x3b36fd=_0x1f8522;let _0xca1f0d=this[_0x3b36fd(0x108)];return{'onStateChange':(_0x435062,_0x264a67)=>{const _0x58a147=_0x3b36fd;if(_0x435062!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x435062[_0x58a147(0x214)]+_0x58a147(0x1a3)+_0x264a67['status']+_0x58a147(0x1ba)+this['_state']['status']);this['_updateState'](_0x264a67);},'onSendChangeset':_0x5eede3=>{const _0x17033d=_0x3b36fd;_0x5eede3[_0x17033d(0x17a)]||(_0x5eede3[_0x17033d(0x17a)]=this[_0x17033d(0x2ed)],_0x5eede3[_0x17033d(0x2c4)]=++this[_0x17033d(0x27a)]);let _0x19a92e={'eventID':_0x27e67f[_0x17033d(0x31b)],'data':{'unitID':_0x5eede3[_0x17033d(0x108)],'unitType':this[_0x17033d(0x17e)],'changeset':_0x5eede3,'memberID':this['session'][_0x17033d(0x258)]()}};this[_0x17033d(0x2cc)][_0x17033d(0x11c)](_0x19a92e,this[_0x17033d(0x108)]);},'onMissingChangesets':({from:_0x3996b3,to:_0x4aa8fd})=>{const _0x42503f=_0x3b36fd;this[_0x42503f(0x2b2)][_0x42503f(0x305)](_0x42503f(0x2dd),_0x42503f(0x116)+_0x3996b3+_0x42503f(0x1ac)+_0x4aa8fd);let _0x4597f4={'eventID':_0x27e67f[_0x42503f(0x2ce)],'data':{'unitID':_0xca1f0d,'unitType':this['_type'],'from':_0x3996b3,'to':_0x4aa8fd}};this[_0x42503f(0x2cc)]['send'](_0x4597f4,this[_0x42503f(0x108)]);}};}async[_0x1f8522(0x181)](_0xd95873){const _0xb33f8=_0x1f8522;var _0x49bb46,_0x40eb41,_0x13d63b;let _0x10fe74=await((_0x49bb46=this[_0xb33f8(0xdd)])==null?void 0x0:_0x49bb46[_0xb33f8(0x2f2)](this[_0xb33f8(0x108)])),_0x5c8876=(_0x40eb41=_0x10fe74==null?void 0x0:_0x10fe74[_0xb33f8(0x236)])==null?[]:_0x40eb41,_0x4e67a6=(_0x13d63b=_0x10fe74==null?void 0x0:_0x10fe74['awaitingChangeset'])==null?null:_0x13d63b,_0x3fa104=!!(_0x4e67a6!=null&&_0x4e67a6[_0xb33f8(0x17a)])&&!!(_0x4e67a6!=null&&_0x4e67a6['reqId']);this[_0xb33f8(0x2ed)]=_0x3fa104?_0x4e67a6[_0xb33f8(0x17a)]:_0x45dc0c(),this[_0xb33f8(0x27a)]=_0x3fa104?_0x4e67a6[_0xb33f8(0x2c4)]:0x0;let _0x415e9a=this[_0xb33f8(0x108)];try{this[_0xb33f8(0x2fe)](_0x4e67a6,_0x5c8876);}catch(_0x5070f2){this[_0xb33f8(0x2b2)][_0xb33f8(0xd2)](_0x5070f2);}let _0x47c192=this[_0xb33f8(0x213)]();if(_0xd95873){let _0x4c9c2b=Xt(this[_0xb33f8(0xe9)],_0x415e9a,this['_type'],_0x4e67a6,_0x5c8876,_0x47c192);return _0x4c9c2b instanceof K?_0x4c9c2b[_0xb33f8(0x1f8)]():(_0x4c9c2b instanceof J||_0x4c9c2b instanceof q)&&_0x4c9c2b[_0xb33f8(0x231)](),_0x4c9c2b;}return this[_0xb33f8(0xe9)][_0xb33f8(0x164)](X,_0x415e9a,this[_0xb33f8(0x17e)],_0x4e67a6,_0x5c8876,_0x47c192);}[_0x1f8522(0x2fe)](_0x1552ea,_0x5e5dd6){const _0x128149=_0x1f8522;var _0x463965,_0x15a28c;let _0x44329d=this[_0x128149(0x2bf)]['interceptor']['fetchThroughInterceptors'](this[_0x128149(0x2bf)][_0x128149(0x137)][_0x128149(0x2ca)]()[_0x128149(0x143)]);(_0x463965=_0x44329d((_0x1552ea==null?void 0x0:_0x1552ea['mutations'])||[],null))==null||_0x463965[_0x128149(0x1b0)](_0x3b4148=>this[_0x128149(0x31a)][_0x128149(0x195)](_0x3b4148['id'],_0x3b4148[_0x128149(0x1dc)])),(_0x15a28c=_0x44329d(_0x5e5dd6||[],null))==null||_0x15a28c[_0x128149(0x1b0)](_0x2900fc=>this[_0x128149(0x31a)][_0x128149(0x195)](_0x2900fc['id'],_0x2900fc[_0x128149(0x1dc)]));}};Zt=z([R(0x3,_0x4f07a4(_0x44d080)),R(0x4,_0x4f07a4(_0x4f4878)),R(0x5,_0x4f07a4(_0x220418)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x4f07a4(L)),R(0x8,_0x3a738f),R(0x9,_0x1443cf),R(0xa,_0x3a76f7),R(0xb,_0x439c61),R(0xc,_0x1cfc4d(jt)),R(0xd,_0x1cfc4d(V))],Zt);let Qt=class extends Zt{constructor(_0x58ee30,_0xfa0bcb,_0x5f12d6,_0x4248a0,_0x517c81,_0x37d33c,_0x1ca483,_0xe22b28,_0x1e32c7,_0x5b63b0,_0x1ebf41,_0x3ce53c,_0x5dba19,_0x45d457){const _0x208c70=_0x1f8522;super(_0x58ee30,_0x5f12d6,_0xfa0bcb,_0x4248a0,_0x517c81,_0x37d33c,_0x1ca483,_0xe22b28,_0x1e32c7,_0x5b63b0,_0x1ebf41,_0x3ce53c,_0x5dba19,_0x45d457),this['unitID']=_0x58ee30,this[_0x208c70(0x126)]=_0xfa0bcb,I(this,_0x208c70(0x11e),null);}[_0x1f8522(0x1c9)](_0x4eae01){const _0x46b946=_0x1f8522;this[_0x46b946(0x11e)]=_0x4eae01;}[_0x1f8522(0x282)](){const _0x4977c=_0x1f8522;this['_handlerCallback']=null,super[_0x4977c(0x282)]();}[_0x1f8522(0x213)](){const _0x17c7df=_0x1f8522;let _0xb3a6f6=super['_createHandler']();return _0xb3a6f6['onTransformIME']=_0xe96c17=>{const _0xef5678=_0x249d;var _0x79e628,_0x5c3f5d;return(_0x79e628=this['_handlerCallback'])==null||(_0x5c3f5d=_0x79e628[_0xef5678(0x146)])==null?void 0x0:_0x5c3f5d[_0xef5678(0x292)](_0x79e628,_0xe96c17);},_0xb3a6f6[_0x17c7df(0x2ab)]=_0x3d7b9d=>{const _0x429427=_0x17c7df;var _0x454f75,_0x435381;return(_0x454f75=this[_0x429427(0x11e)])==null||(_0x435381=_0x454f75['onTransformState'])==null?void 0x0:_0x435381['call'](_0x454f75,_0x3d7b9d);},_0xb3a6f6[_0x17c7df(0x22b)]=_0x2090fe=>{const _0x29bcb5=_0x17c7df;var _0x347939,_0x46f060;return(_0x347939=this[_0x29bcb5(0x11e)])==null||(_0x46f060=_0x347939['onTransformSelections'])==null?void 0x0:_0x46f060[_0x29bcb5(0x292)](_0x347939,_0x2090fe);},_0xb3a6f6[_0x17c7df(0x15c)]=_0x4ad9b6=>{const _0x5488af=_0x17c7df;var _0x1e1a07,_0x3c4270;return(_0x1e1a07=this['_handlerCallback'])==null||(_0x3c4270=_0x1e1a07[_0x5488af(0x15c)])==null?void 0x0:_0x3c4270['call'](_0x1e1a07,_0x4ad9b6);},_0xb3a6f6[_0x17c7df(0x2f0)]=_0x36aa28=>{const _0x2a5009=_0x17c7df;var _0x124526,_0x2e114c,_0x5c6dfd;if(!((_0x124526=this[_0x2a5009(0x11e)])!=null&&_0x124526[_0x2a5009(0x2f0)]))throw Error(_0x2a5009(0x12c));return(_0x2e114c=this['_handlerCallback'])==null||(_0x5c6dfd=_0x2e114c[_0x2a5009(0x2f0)])==null?void 0x0:_0x5c6dfd[_0x2a5009(0x292)](_0x2e114c,_0x36aa28);},_0xb3a6f6['onTransformRemoteChangesetByStateCache']=_0x1397d5=>{const _0x4bbcb3=_0x17c7df;var _0x2ad24d,_0xabc3f8,_0x31bb60;if(!((_0x2ad24d=this[_0x4bbcb3(0x11e)])!=null&&_0x2ad24d[_0x4bbcb3(0x30d)]))throw Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0xabc3f8=this[_0x4bbcb3(0x11e)])==null||(_0x31bb60=_0xabc3f8['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x31bb60['call'](_0xabc3f8,_0x1397d5);},_0xb3a6f6;}async[_0x1f8522(0x182)](){const _0x1c9d58=_0x1f8522;let _0x750301=await super[_0x1c9d58(0x182)]();return this['disposeWithMe'](this['_commandService'][_0x1c9d58(0x1bf)]((_0x219770,_0x14628d)=>{const _0x440883=_0x1c9d58;if(_0x219770[_0x440883(0x126)]!==_0x40b89a[_0x440883(0x187)]||_0x14628d!=null&&_0x14628d[_0x440883(0x149)]||_0x14628d!=null&&_0x14628d[_0x440883(0x115)]||_0x219770['id']===_0x234ae8['id'])return;let _0x10fe06=_0x219770['params'];if((_0x10fe06==null?void 0x0:_0x10fe06['unitId'])!==this[_0x440883(0x108)])return;let _0x50421a=_0x219770,_0x5da7f5=this[_0x440883(0x2bf)][_0x440883(0x137)]['fetchThroughInterceptors'](this[_0x440883(0x2bf)][_0x440883(0x137)][_0x440883(0x2ca)]()['COMPRESS_MUTATION_SEND'])([_0x50421a],this['_univerInstanceService'])||[_0x50421a];this[_0x440883(0x287)](_0x5da7f5[0x0]);})),_0x750301;}};Qt=z([R(0x3,_0x4f07a4(_0x44d080)),R(0x4,_0x4f07a4(_0x4f4878)),R(0x5,_0x4f07a4(_0x220418)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x4f07a4(L)),R(0x8,_0x3a738f),R(0x9,_0x1443cf),R(0xa,_0x3a76f7),R(0xb,_0x439c61),R(0xc,_0x1cfc4d(jt)),R(0xd,_0x1cfc4d(V))],Qt);let $t=class extends Zt{constructor(_0x7c9b10,_0x4cbefb,_0x499588,_0x5e22e8,_0x2334fd,_0x966535,_0x49150f,_0x2eb0cb,_0x457187,_0xe59979,_0x4f039a,_0x3fd87a,_0x5ad0ad,_0x164fad,_0x1ad9db){const _0x558c13=_0x1f8522;super(_0x7c9b10,_0x499588,_0x4cbefb,_0x5e22e8,_0x2334fd,_0x966535,_0x49150f,_0x457187,_0xe59979,_0x4f039a,_0x3fd87a,_0x5ad0ad,_0x164fad,_0x1ad9db),this[_0x558c13(0x108)]=_0x7c9b10,this[_0x558c13(0x126)]=_0x4cbefb,this[_0x558c13(0x1f7)]=_0x2eb0cb;}['_createHandler'](){const _0x5afccf=_0x1f8522;let _0x4967e7=super['_createHandler']();return _0x4967e7[_0x5afccf(0x22b)]=_0x3e6f4f=>this[_0x5afccf(0x1f7)][_0x5afccf(0x1b4)](_0x3e6f4f),_0x4967e7;}async[_0x1f8522(0x182)](){const _0x4c7165=_0x1f8522;let _0x1a098f=await super[_0x4c7165(0x182)]();return this[_0x4c7165(0x2e0)](this[_0x4c7165(0x31a)]['onMutationExecutedForCollab']((_0x2586f6,_0x378e09)=>{const _0x5772a0=_0x4c7165;if(_0x2586f6['type']!==_0x40b89a['MUTATION']||_0x378e09!=null&&_0x378e09[_0x5772a0(0x149)]||_0x378e09!=null&&_0x378e09['onlyLocal'])return;let _0x292254=_0x2586f6[_0x5772a0(0x1dc)];if((_0x292254==null?void 0x0:_0x292254[_0x5772a0(0x2c2)])!==this['unitID'])return;let _0x2734ae=_0x2586f6,_0x2a1fba=this[_0x5772a0(0x2bf)]['interceptor'][_0x5772a0(0x29f)](this[_0x5772a0(0x2bf)][_0x5772a0(0x137)][_0x5772a0(0x2ca)]()['COMPRESS_MUTATION_SEND'])([_0x2734ae],this[_0x5772a0(0xf7)])||[_0x2734ae];this[_0x5772a0(0x287)](_0x2a1fba[0x0]);})),_0x1a098f;}};$t=z([R(0x3,_0x4f07a4(_0x44d080)),R(0x4,_0x4f07a4(_0x4f4878)),R(0x5,_0x4f07a4(_0x220418)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x4f07a4(H)),R(0x8,_0x4f07a4(L)),R(0x9,_0x3a738f),R(0xa,_0x1443cf),R(0xb,_0x3a76f7),R(0xc,_0x439c61),R(0xd,_0x1cfc4d(jt)),R(0xe,_0x1cfc4d(V))],$t);const en=_0x4bcee9('univer-pro.collaboration-client.network-condition.service');function tn(_0x55e9f3){const _0xa4f3c6=_0x1f8522;let _0x3e6b04=_0x55e9f3[_0xa4f3c6(0x194)],_0x49c1cc=JSON['parse'](_0x3e6b04);switch(_0x49c1cc[_0xa4f3c6(0x22f)]){case _0x15766e[_0xa4f3c6(0x180)]:case _0x15766e[_0xa4f3c6(0x1e5)]:{let _0x41c395=_0x49c1cc[_0xa4f3c6(0x1d3)];return{..._0x49c1cc,'data':_0x41c395,'cmd':_0x49c1cc['cmd']};}case _0x15766e[_0xa4f3c6(0x2a3)]:{let _0x222c88=_0x49c1cc[_0xa4f3c6(0x20c)];return{..._0x49c1cc,'data':_0x222c88,'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};}case _0x15766e['RECV']:{let _0x376fc5=_0x49c1cc['collaMsg'];switch(_0x376fc5[_0xa4f3c6(0x281)]){case _0x27e67f[_0xa4f3c6(0x165)]:var _0xf96b7a;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0xf96b7a=_0x376fc5[_0xa4f3c6(0x157)])==null?void 0x0:_0xf96b7a['cs']},'cmd':_0x49c1cc['cmd']};case _0x27e67f[_0xa4f3c6(0xce)]:var _0x3f39e2;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x3f39e2=_0x376fc5['csAckEvent'])==null?void 0x0:_0x3f39e2['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x29e)]:var _0x6e52c6;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x6e52c6=_0x376fc5[_0xa4f3c6(0x30a)])==null?void 0x0:_0x6e52c6['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x1a1)]:var _0x5bff88;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x5bff88=_0x376fc5['csRejEvent'])==null?void 0x0:_0x5bff88['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x1b1)]:var _0x235bc3;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x235bc3=_0x376fc5[_0xa4f3c6(0x166)])==null?void 0x0:_0x235bc3['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x16f)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x1da)]},'cmd':_0x49c1cc['cmd']};case _0x27e67f['USERS_ENTER']:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x2a8)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x2f4)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x28c)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x297)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x14a)]},'cmd':_0x49c1cc['cmd']};case _0x27e67f[_0xa4f3c6(0x229)]:case _0x27e67f[_0xa4f3c6(0x293)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5['liveShareOperation']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f['LIVESHARE_TERMINATE']:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x14a)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x1b9)]:return{..._0x49c1cc,'data':_0x376fc5,'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x111)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5['commentUpdateEvent']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x139)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x304)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0xf5)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x301)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f['UNISCRIPT_RUN']:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x154)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};default:return _0x49c1cc;}}default:return _0x49c1cc;}}function nn(_0x111916){const _0x2c2e3f=_0x1f8522;switch(_0x111916['cmd']){case _0x15766e[_0x2c2e3f(0x180)]:case _0x15766e[_0x2c2e3f(0x1e5)]:return JSON[_0x2c2e3f(0x2fc)]({'cmd':_0x111916[_0x2c2e3f(0x22f)],'routeKey':_0x111916['routeKey']});case _0x15766e['INGEST']:{let _0x13ccbd;switch(_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x281)]){case _0x27e67f[_0x2c2e3f(0x16f)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x16f)],'updateCursorEvent':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f['USERS_LEAVE']:_0x13ccbd={'eventID':_0x27e67f['USERS_LEAVE'],'leaveEvent':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x104)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x104)],'joinEvent':_0x111916['data'][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x297)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x297)],'liveShareNewHost':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x293)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x293)],'liveShareOperation':_0x111916[_0x2c2e3f(0x194)]['data']};break;case _0x27e67f[_0x2c2e3f(0x2df)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x2df)],'liveShareTerminate':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x1c6)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x1c6)],'liveShareRequestHost':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x229)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x229)]};break;default:_0x13ccbd={'eventID':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x281)]};}return JSON[_0x2c2e3f(0x2fc)]({'cmd':_0x111916['cmd'],'routeKey':_0x111916['routeKey'],'collaMsg':_0x13ccbd});}case _0x15766e[_0x2c2e3f(0x2a3)]:return JSON[_0x2c2e3f(0x2fc)]({'cmd':_0x111916[_0x2c2e3f(0x22f)],'routeKey':_0x111916[_0x2c2e3f(0x109)],'joinReq':_0x111916[_0x2c2e3f(0x194)]});case _0x15766e[_0x2c2e3f(0x1b6)]:return JSON['stringify']({'cmd':_0x111916[_0x2c2e3f(0x22f)],'routeKey':_0x111916['routeKey'],'leaveReq':_0x111916[_0x2c2e3f(0x194)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const rn=_0x4bcee9(_0x1f8522(0x314));function an(_0x1fb23a,_0x2e53ec,_0x5dbfed){const _0x1f8d68=_0x1f8522;return _0x1fb23a+'/'+_0x2e53ec+_0x1f8d68(0xee)+_0x5dbfed+_0x1f8d68(0x1cd);}let on=class extends _0x555def{constructor(_0xf38020,_0x2002a2,_0x5e1301,_0x1b82b5,_0x2fcbf1){const _0x2da528=_0x1f8522;super(),this['_injector']=_0xf38020,this[_0x2da528(0x152)]=_0x2002a2,this['_configService']=_0x5e1301,this[_0x2da528(0x2b2)]=_0x1b82b5,this[_0x2da528(0xc5)]=_0x2fcbf1;}[_0x1f8522(0x15a)](_0x5b864d){const _0x18aa5f=_0x1f8522;let _0x568426=this[_0x18aa5f(0xe9)][_0x18aa5f(0x315)](_0x1dbaaf);if(!_0x568426)throw Error(_0x18aa5f(0x2ff));let _0xce9a27=_0x568426[_0x18aa5f(0x259)](_0x5b864d);if(!_0xce9a27)throw Error(_0x18aa5f(0x10c));let _0x2e9092=new _0x3e23a9(),_0x3a9f0e=new _0x147a88();_0x2e9092[_0x18aa5f(0x2a1)](_0xce9a27['close$'][_0x18aa5f(0xfb)](_0xe66b47=>_0x3a9f0e['next'](_0xe66b47))),_0x2e9092[_0x18aa5f(0x2a1)](_0x224a5f(()=>_0x3a9f0e[_0x18aa5f(0x318)]()));let _0x2cdfec=new _0x147a88();_0x2e9092[_0x18aa5f(0x2a1)](_0xce9a27['error$'][_0x18aa5f(0xfb)](_0x4af798=>_0x2cdfec[_0x18aa5f(0xc4)](_0x4af798))),_0x2e9092[_0x18aa5f(0x2a1)](_0x224a5f(()=>_0x2cdfec[_0x18aa5f(0x318)]()));let _0x142cc5=new _0x147a88();_0x2e9092['add'](_0xce9a27['message$']['subscribe'](_0x5da463=>{let _0x4620a7=tn(_0x5da463);_0x142cc5['next'](_0x4620a7);})),_0x2e9092['add'](_0x224a5f(()=>_0x142cc5[_0x18aa5f(0x318)]()));let _0x55d1df,_0x2a1f11=()=>{const _0x3675f3=_0x18aa5f;_0x2cdfec[_0x3675f3(0xc4)](new Event(_0x3675f3(0xcf))),_0x3a9f0e[_0x3675f3(0xc4)](new Event(_0x3675f3(0xcf))),_0x55d1df[_0x3675f3(0x22e)]();};return _0x55d1df={'memberID':'','close$':_0x3a9f0e[_0x18aa5f(0x2b0)](),'error$':_0x2cdfec['asObservable'](),'open$':_0xce9a27[_0x18aa5f(0x12a)],'message$':_0x142cc5[_0x18aa5f(0x2b0)](),'send':_0x1a5a48=>{const _0x4fce1e=_0x18aa5f;if(_0x1a5a48[_0x4fce1e(0x22f)]===_0x15766e[_0x4fce1e(0x247)]){if(_0x1a5a48[_0x4fce1e(0x194)][_0x4fce1e(0x281)]===_0x27e67f[_0x4fce1e(0x31b)]){this[_0x4fce1e(0x212)](_0x55d1df,_0x1a5a48[_0x4fce1e(0x194)])[_0x4fce1e(0x265)](_0x36f13f=>{const _0x3750a7=_0x4fce1e;this[_0x3750a7(0x2b2)][_0x3750a7(0xd2)](_0x36f13f),_0x2a1f11();});return;}if(_0x1a5a48[_0x4fce1e(0x194)][_0x4fce1e(0x281)]===_0x27e67f[_0x4fce1e(0x2ce)]){let _0x3a48fa=_0x1a5a48[_0x4fce1e(0x194)];this[_0x4fce1e(0x1fa)](_0x3a48fa)[_0x4fce1e(0xbe)](_0x1b0686=>{const _0x4396e3=_0x4fce1e;_0x142cc5['next']({'cmd':_0x15766e[_0x4396e3(0x2ee)],'code':_0x28282a['OK'],'routeKey':_0x3a48fa[_0x4396e3(0x194)][_0x4396e3(0x108)],'routeType':'','data':{'eventID':_0x27e67f['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1b0686}}});})[_0x4fce1e(0x265)](_0x3c4f39=>{const _0x1f7922=_0x4fce1e;this[_0x1f7922(0x2b2)][_0x1f7922(0xd2)](_0x3c4f39),_0x2a1f11();});return;}}_0xce9a27[_0x4fce1e(0x11c)](nn(_0x1a5a48));},'close':()=>{const _0x30db9d=_0x18aa5f;_0xce9a27[_0x30db9d(0x22e)](),_0x2e9092[_0x30db9d(0x282)]();}},_0x55d1df;}async[_0x1f8522(0x212)](_0x141a75,_0x3c1794){const _0x5ab881=_0x1f8522;var _0x419ad7;let {unitType:_0x5155cf,unitID:_0x49b6ad,changeset:_0x153822}=_0x3c1794[_0x5ab881(0x194)],_0x39ff1f={'unitID':_0x49b6ad,'memberID':_0x141a75[_0x5ab881(0x184)],'type':_0x5155cf,'changeset':_0x12da55(_0x153822)},_0x5d7853=this['_configService'][_0x5ab881(0xe2)](U),_0x2d2d9d=an((_0x419ad7=_0x5d7853==null?void 0x0:_0x5d7853['collabSubmitChangesetUrl'])==null?'/universer-api/comb':_0x419ad7,_0x5155cf,_0x49b6ad);try{await this[_0x5ab881(0x152)][_0x5ab881(0xc6)](_0x2d2d9d,{'body':_0x39ff1f});}catch(_0x4d6ac9){throw this[_0x5ab881(0x2b2)][_0x5ab881(0xd2)](_0x5ab881(0x2a0),'submit\x20changeset\x20error!'),_0x4d6ac9;}}async['_fetchMissChangesets'](_0xa244e9){const _0x542f6c=_0x1f8522;let {unitID:_0x1aaa91,from:_0x4cf239,to:_0x1b1760,unitType:_0x4cb578}=_0xa244e9[_0x542f6c(0x194)];return(await this[_0x542f6c(0xc5)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1aaa91,'type':_0x4cb578,'from':_0x4cf239,'to':_0x1b1760}))[_0x542f6c(0x2f3)]['map'](_0x775ff0=>((_0x775ff0['mutations']===null||_0x775ff0[_0x542f6c(0x236)]===void 0x0)&&(_0x775ff0['mutations']=[]),_0x775ff0));}};on=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x4f07a4(_0x2e99a4)),R(0x2,_0x3ba9f8),R(0x3,_0x1443cf),R(0x4,_0x72942)],on);let Q=class extends _0x555def{get['_socket'](){const _0x3dafee=_0x1f8522;return this['_socket$'][_0x3dafee(0x10b)]();}constructor(_0x4a5439,_0x2e6aab,_0x11f92a,_0x42425c,_0x4769c7,_0x159839){const _0x3d823d=_0x1f8522;super(),this['_injector']=_0x4a5439,this[_0x3d823d(0x2b2)]=_0x2e6aab,this['_configService']=_0x11f92a,this[_0x3d823d(0x1a9)]=_0x42425c,this[_0x3d823d(0x2b3)]=_0x4769c7,this[_0x3d823d(0x199)]=_0x159839,I(this,_0x3d823d(0x155),new _0x2acfcb(void 0x0)),I(this,_0x3d823d(0x112),this[_0x3d823d(0x155)][_0x3d823d(0x2b0)]()),I(this,_0x3d823d(0x1e6),null),I(this,_0x3d823d(0x19c),new Map()),I(this,_0x3d823d(0x2fd),new _0x2acfcb(0x0)),I(this,_0x3d823d(0x13f),this['_status$'][_0x3d823d(0x2b0)]()),I(this,_0x3d823d(0x158),!0x1),I(this,'_retryConnectingTimer',void 0x0),I(this,_0x3d823d(0x29d),0x0),I(this,_0x3d823d(0x27c),null),I(this,_0x3d823d(0x24e),void 0x0),I(this,_0x3d823d(0x306),void 0x0),this[_0x3d823d(0x1ea)]();}[_0x1f8522(0x1ea)](){const _0x9c1006=_0x1f8522;this[_0x9c1006(0x199)]&&this[_0x9c1006(0x2e0)](this[_0x9c1006(0x199)][_0x9c1006(0x26d)]['subscribe'](_0x578348=>{const _0x30004e=_0x9c1006;_0x578348&&!this[_0x30004e(0x283)]&&this[_0x30004e(0x22a)](),_0x578348||this[_0x30004e(0x130)]();}));}[_0x1f8522(0x282)](){const _0x1a570f=_0x1f8522;var _0x24ec3d;super[_0x1a570f(0x282)](),(_0x24ec3d=this[_0x1a570f(0x27c)])==null||_0x24ec3d[_0x1a570f(0x1f0)](),this[_0x1a570f(0x27c)]=null,this[_0x1a570f(0x2e7)](),this[_0x1a570f(0xe4)](),this[_0x1a570f(0x1d7)](),this[_0x1a570f(0x19c)][_0x1a570f(0x1b0)](_0xfa668b=>_0xfa668b['dispose']()),this[_0x1a570f(0x19c)][_0x1a570f(0x217)](),this[_0x1a570f(0x2fd)]['complete']();}async[_0x1f8522(0x277)](_0x3c79a6){const _0x515afe=_0x1f8522;if(this[_0x515afe(0x19c)][_0x515afe(0x309)](_0x3c79a6))return this['_sessions'][_0x515afe(0x315)](_0x3c79a6);this[_0x515afe(0xe3)]();let _0xd19931=this[_0x515afe(0xe9)]['createInstance'](Ot,_0x3c79a6,this[_0x515afe(0x155)][_0x515afe(0x2b0)]());return this[_0x515afe(0x19c)][_0x515afe(0x27d)](_0x3c79a6,_0xd19931),_0xd19931;}[_0x1f8522(0x1de)](_0x35e785){const _0x32b74e=_0x1f8522;let _0x1d2971=this[_0x32b74e(0x19c)][_0x32b74e(0x315)](_0x35e785);if(_0x1d2971&&(this[_0x32b74e(0x19c)][_0x32b74e(0x319)](_0x35e785),_0x1d2971[_0x32b74e(0x22e)]()),!this[_0x32b74e(0x19c)]['size']){var _0x204d45;(_0x204d45=this[_0x32b74e(0x283)])==null||_0x204d45[_0x32b74e(0x22e)]();}}['reconnect'](){const _0xdcd5db=_0x1f8522;this['_retryCount']=0x0,this['_clearRetryConnectingTimer'](),this[_0xdcd5db(0x138)]();}[_0x1f8522(0x2e7)](){const _0x44547a=_0x1f8522;this[_0x44547a(0x10f)]!=null&&(clearTimeout(this[_0x44547a(0x10f)]),this[_0x44547a(0x10f)]=null);}async[_0x1f8522(0x278)](){const _0xd1e613=_0x1f8522;var _0x51d548;let _0x224aaf=this[_0xd1e613(0xba)][_0xd1e613(0xe2)](U),_0x293175=(_0x51d548=_0x224aaf==null?void 0x0:_0x224aaf[_0xd1e613(0x238)])==null?ut:_0x51d548,_0x2b23b9=await this['_socketService'][_0xd1e613(0x259)](_0x293175);return this[_0xd1e613(0x1e6)]=_0x2b23b9,_0x2b23b9;}async[_0x1f8522(0xe3)](){const _0x3a3a1d=_0x1f8522;try{var _0x103394,_0x104e40;let _0x318d0c=(_0x103394=(_0x104e40=this[_0x3a3a1d(0x283)])==null?this['_candidateSocket']:_0x104e40)==null?await this[_0x3a3a1d(0x278)]():_0x103394;if(_0x318d0c){var _0x2f686d;let _0x52a2b1=_0x318d0c['send'];_0x318d0c['send']=_0x4472ad=>(_0x4472ad['cmd']!==_0x15766e[_0x3a3a1d(0x1b6)]&&this['_rescheduleHeartbeat'](),_0x52a2b1['apply'](_0x318d0c,[_0x4472ad])),(_0x2f686d=this[_0x3a3a1d(0x27c)])==null||_0x2f686d[_0x3a3a1d(0x1f0)](),this[_0x3a3a1d(0x27c)]=null,this[_0x3a3a1d(0x27c)]=_0x318d0c['message$'][_0x3a3a1d(0xfb)](_0x3ef4e4=>this[_0x3a3a1d(0x30b)](_0x318d0c,_0x3ef4e4)),_0x318d0c[_0x3a3a1d(0x2aa)][_0x3a3a1d(0x27e)](_0x15baed(0x1))[_0x3a3a1d(0xfb)](_0x49941c=>this['_logService'][_0x3a3a1d(0xd2)]('[CollaborationSessionService]:\x20socket\x20error',_0x49941c)),_0x318d0c[_0x3a3a1d(0x12a)][_0x3a3a1d(0x27e)](_0x15baed(0x1))[_0x3a3a1d(0xfb)](()=>{this['_onConnectionOpen'](_0x318d0c);}),_0x318d0c[_0x3a3a1d(0x24a)][_0x3a3a1d(0x27e)](_0x15baed(0x1))['subscribe'](_0xa09a8=>{const _0x5f2dc2=_0x3a3a1d;this[_0x5f2dc2(0x2b2)]['debug'](_0x5f2dc2(0x125),'socket\x20close',_0xa09a8),this['_onConnectionFailed']();});}}catch(_0x303705){this[_0x3a3a1d(0x2b2)]['error'](_0x303705),this[_0x3a3a1d(0x19a)]();}}[_0x1f8522(0x1d2)](_0x1cf426){const _0x3abbfc=_0x1f8522;this[_0x3abbfc(0x2b2)][_0x3abbfc(0x305)]('[CollaborationSessionService]',_0x3abbfc(0x1fd)),_0x1cf426[_0x3abbfc(0x11c)]({'cmd':_0x15766e[_0x3abbfc(0x1e5)]}),this['_rescheduleHeartbeat']();}[_0x1f8522(0x130)](){const _0x5ef46a=_0x1f8522;this['_socketReady']=!0x1,this[_0x5ef46a(0x1e6)]=null,this['_status$']['next'](0x2),this[_0x5ef46a(0x155)]['next'](null),this[_0x5ef46a(0xe4)](),this[_0x5ef46a(0x1d7)]();}[_0x1f8522(0x19a)](){const _0x302787=_0x1f8522;var _0x9210e;this[_0x302787(0x130)](),this[_0x302787(0x29d)]<((_0x9210e=this[_0x302787(0xba)][_0x302787(0xe2)](_0x302787(0x1af)))==null?0x3:_0x9210e)?(this[_0x302787(0x2b3)][_0x302787(0x15d)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x302787(0x138)]()):this['_collaborationUIEventService']['emitEvent']({'id':_0x302787(0x29c)});}[_0x1f8522(0x138)](){const _0x19f96e=_0x1f8522;var _0x81ba15;let _0x339734=this[_0x19f96e(0x29d)],_0x472b9c=this[_0x19f96e(0xba)]['getConfig'](U),_0x32bbf5=_0x339734===0x0?0x0:((_0x81ba15=_0x472b9c==null?void 0x0:_0x472b9c[_0x19f96e(0x1bb)])==null?0x4e20:_0x81ba15)*0x2**_0x339734;this[_0x19f96e(0x10f)]=setTimeout(()=>{const _0x35a6b0=_0x19f96e;clearTimeout(this[_0x35a6b0(0x10f)]),this[_0x35a6b0(0x10f)]=null,this[_0x35a6b0(0xe3)]();},_0x32bbf5),this['_retryCount']+=0x1;}[_0x1f8522(0x30b)](_0xc43264,_0x25b553){const _0x4772ba=_0x1f8522;let {cmd:_0x50e9ff}=_0x25b553;_0x50e9ff===_0x15766e['HELLO']&&!this[_0x4772ba(0x158)]&&(_0xc43264[_0x4772ba(0x184)]=_0x25b553[_0x4772ba(0x194)][_0x4772ba(0x184)],this[_0x4772ba(0x155)]['next'](_0xc43264),this['_status$'][_0x4772ba(0xc4)](0x3),this[_0x4772ba(0x158)]=!0x0,this[_0x4772ba(0x1e6)]=null),_0x50e9ff===_0x15766e[_0x4772ba(0x180)]&&this[_0x4772ba(0xe4)](),this['_rescheduleHeartbeat']();}[_0x1f8522(0x12f)](){const _0x2337b2=_0x1f8522;var _0x3d9ca2;this[_0x2337b2(0x1d7)](),this[_0x2337b2(0x24e)]=setTimeout(()=>this[_0x2337b2(0x208)](),(_0x3d9ca2=this['_configService']['getConfig'](_0x2337b2(0xc0)))==null?0x7530:_0x3d9ca2);}[_0x1f8522(0x208)](){const _0x32077e=_0x1f8522;this[_0x32077e(0x283)][_0x32077e(0x11c)]({'cmd':_0x15766e[_0x32077e(0x180)]}),this[_0x32077e(0x2de)]();}['_waitForHeartbeatResponse'](){const _0x3d654a=_0x1f8522;var _0x5e5582;this['_timeoutTimer']=setTimeout(()=>this[_0x3d654a(0x19a)](),(_0x5e5582=this['_configService'][_0x3d654a(0xe2)](_0x3d654a(0x13e)))==null?mt:_0x5e5582);}[_0x1f8522(0x1d7)](){const _0x4be253=_0x1f8522;this[_0x4be253(0x24e)]!=null&&(clearTimeout(this[_0x4be253(0x24e)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x3a85d0=_0x1f8522;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3a85d0(0x306)]=null);}};Q=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x1443cf),R(0x2,_0x3ba9f8),R(0x3,rn),R(0x4,_0x4f07a4(L)),R(0x5,_0x1cfc4d(en))],Q);let sn=class extends _0x3498fe{constructor(_0x3784db,_0x3e5b79,_0x2662bf,_0x348707){const _0x4a1ec3=_0x1f8522;var _0x24e813;super(),this[_0x4a1ec3(0xe9)]=_0x3784db,this[_0x4a1ec3(0x250)]=_0x3e5b79,this[_0x4a1ec3(0xba)]=_0x2662bf,this[_0x4a1ec3(0xf7)]=_0x348707,I(this,_0x4a1ec3(0x1a4),new Map()),I(this,_0x4a1ec3(0xf2),new _0x147a88()),I(this,_0x4a1ec3(0x1f5),this[_0x4a1ec3(0xf2)][_0x4a1ec3(0x2b0)]()),((_0x24e813=this[_0x4a1ec3(0xba)][_0x4a1ec3(0xe2)](_0x4a1ec3(0x1bd)))==null?void 0x0:_0x24e813['enableCollaboration'])!==!0x1&&this[_0x4a1ec3(0x182)]();}['dispose'](){const _0x4828aa=_0x1f8522;super['dispose'](),this[_0x4828aa(0x1a4)]['forEach'](_0x5115f7=>_0x5115f7[_0x4828aa(0x282)]()),this['_entities'][_0x4828aa(0x217)]();}[_0x1f8522(0x230)](_0x331d1c){const _0x3c586e=_0x1f8522;var _0x6526f;return(_0x6526f=this[_0x3c586e(0x1a4)][_0x3c586e(0x315)](_0x331d1c))==null?null:_0x6526f;}[_0x1f8522(0x2b1)](_0x1d29a8){const _0x25af7f=_0x1f8522;let _0x52d845=this[_0x25af7f(0x230)](_0x1d29a8);return _0x52d845?_0x3a835d(_0x52d845):this[_0x25af7f(0xf2)][_0x25af7f(0x27e)](_0x18abe6(_0x2d4918=>_0x2d4918['unitID']===_0x1d29a8));}[_0x1f8522(0x2a7)](_0x271e3b){const _0x2cbe9c=_0x1f8522;return _0x128fbd(this[_0x2cbe9c(0x2b1)](_0x271e3b)['pipe'](_0x279c8c(()=>void 0x0)));}[_0x1f8522(0x182)](){const _0x5e7f24=_0x1f8522;this['_univerInstanceService'][_0x5e7f24(0x28f)](_0x292cef[_0x5e7f24(0x107)])['pipe'](_0x56cc03(this[_0x5e7f24(0x24c)]),_0x196d30(0x10))['subscribe'](async _0x4ca380=>{const _0x2fa530=_0x5e7f24;let _0x5e8a52=_0x4ca380[_0x2fa530(0x189)][_0x2fa530(0xdc)](),_0x588441=await this['_startCollaboration'](_0x5e8a52,_0x292cef[_0x2fa530(0x107)]);this[_0x2fa530(0x1a4)][_0x2fa530(0x27d)](_0x5e8a52,_0x588441);}),this[_0x5e7f24(0xf7)][_0x5e7f24(0x28f)](_0x292cef['UNIVER_DOC'])[_0x5e7f24(0x27e)](_0x56cc03(this[_0x5e7f24(0x24c)]),_0x196d30(0x10))[_0x5e7f24(0x27e)](_0x18abe6(_0x5aa806=>!_0x5aa806[_0x5e7f24(0x189)][_0x5e7f24(0xdc)]()[_0x5e7f24(0xed)]('__')))[_0x5e7f24(0xfb)](async _0x4736d5=>{const _0x396aa1=_0x5e7f24;let _0x359c3c=_0x4736d5[_0x396aa1(0x189)][_0x396aa1(0xdc)](),_0x235b09=await this[_0x396aa1(0x15b)](_0x359c3c,_0x292cef['UNIVER_DOC']);this[_0x396aa1(0x1a4)][_0x396aa1(0x27d)](_0x359c3c,_0x235b09);}),_0x340907(this['_univerInstanceService'][_0x5e7f24(0xe1)](_0x292cef[_0x5e7f24(0x107)]),this['_univerInstanceService'][_0x5e7f24(0xe1)](_0x292cef[_0x5e7f24(0x23a)]))[_0x5e7f24(0x27e)](_0x56cc03(this['dispose$']))['subscribe'](_0x255558=>{const _0x130c01=_0x5e7f24;let _0x495fd2=_0x255558[_0x130c01(0xdc)](),_0x1808f8=this['_entities']['get'](_0x495fd2);_0x1808f8&&(_0x1808f8[_0x130c01(0x282)](),this[_0x130c01(0x1a4)][_0x130c01(0x319)](_0x495fd2));});}async[_0x1f8522(0x15b)](_0x28eb22,_0x57c62f){const _0x208b9a=_0x1f8522;let _0x549958=await this[_0x208b9a(0x250)][_0x208b9a(0x277)](_0x28eb22),_0x56338a=this[_0x208b9a(0xe9)][_0x208b9a(0x164)](this[_0x208b9a(0x1ab)](_0x57c62f),_0x28eb22,_0x57c62f,_0x549958);return await _0x56338a[_0x208b9a(0x266)](),this[_0x208b9a(0xf2)][_0x208b9a(0xc4)](_0x56338a),_0x56338a;}[_0x1f8522(0x1ab)](_0x283fdf){const _0x2c0b37=_0x1f8522;switch(_0x283fdf){case _0x292cef[_0x2c0b37(0x23a)]:return Qt;case _0x292cef[_0x2c0b37(0x107)]:return $t;default:throw Error(_0x2c0b37(0x140)+_0x283fdf);}}};sn=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x4f07a4(Q)),R(0x2,_0x3ba9f8),R(0x3,_0x3a738f)],sn);var cn=_0x1f8522(0x1ec),ln=_0x1f8522(0xf8);let un=class extends _0x555def{constructor(_0x5df8d0,_0x27700d){const _0xa5afd9=_0x1f8522;super(),this[_0xa5afd9(0xf7)]=_0x5df8d0,this[_0xa5afd9(0xba)]=_0x27700d,this[_0xa5afd9(0x182)]();}['_init'](){const _0x2fdb17=_0x1f8522;this[_0x2fdb17(0x2e0)](this[_0x2fdb17(0xf7)][_0x2fdb17(0x312)]['subscribe'](()=>{const _0x1c20a2=_0x2fdb17;var _0x1c5f58;let _0x27cf9a=this[_0x1c20a2(0xf7)][_0x1c20a2(0x1c1)](),_0x2c18eb=(_0x1c5f58=this[_0x1c20a2(0xba)]['getConfig']('DEFAULT_FILE_NAME'))==null?_0x1c20a2(0xeb):_0x1c5f58;_0x27cf9a instanceof _0x1d942e&&(_0x2c18eb=_0x27cf9a[_0x1c20a2(0x215)]),document[_0x1c20a2(0x13c)]=_0x2c18eb;}));}};un=z([R(0x0,_0x3a738f),R(0x1,_0x3ba9f8)],un);let dn=class{constructor(_0x10e89b,_0x5e1983,_0x3536e5){const _0xd90de0=_0x1f8522;this['_configService']=_0x10e89b,this[_0xd90de0(0x152)]=_0x5e1983,this['localeService']=_0x3536e5,this[_0xd90de0(0x266)]();}[_0x1f8522(0x266)](){const _0x12bfc2=_0x1f8522;this['_httpService'][_0x12bfc2(0x240)]({'priority':0x1,'interceptor':(_0x213510,_0xe7a4a)=>_0xe7a4a(_0x213510)[_0x12bfc2(0x27e)](_0x1d0115(async _0x57f830=>{const _0x2a1cf0=_0x12bfc2;let _0x221d8b=_0x57f830;if(_0x221d8b[_0x2a1cf0(0x214)]===0x191){if(typeof window>'u')throw Error(_0x2a1cf0(0x31d));if(window[_0x2a1cf0(0x1c2)](this[_0x2a1cf0(0xef)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x45a5a0=window['encodeURIComponent'](window[_0x2a1cf0(0x110)][_0x2a1cf0(0x2dc)]);window[_0x2a1cf0(0x110)][_0x2a1cf0(0x2dc)]=this[_0x2a1cf0(0x252)]()+_0x2a1cf0(0x296)+_0x45a5a0;}}return _0x221d8b;}))});}[_0x1f8522(0x252)](){const _0x58c1ae=_0x1f8522;var _0x488a66;let _0x3d214e=this[_0x58c1ae(0xba)][_0x58c1ae(0xe2)](U);return(_0x488a66=_0x3d214e==null?void 0x0:_0x3d214e[_0x58c1ae(0x206)])==null?_0x58c1ae(0xd4):_0x488a66;}};dn=z([R(0x0,_0x3ba9f8),R(0x1,_0x4f07a4(_0x2e99a4)),R(0x2,_0x4f07a4(_0x220418))],dn);let fn=class extends _0x555def{constructor(_0x5485f1,_0x562902){const _0x207343=_0x1f8522;super(),this['_HTTPService']=_0x5485f1,this[_0x207343(0xba)]=_0x562902,I(this,'_cfgEnableObjInherit',!0x1),this[_0x207343(0x171)]();}[_0x1f8522(0x171)](){const _0x19db52=_0x1f8522;let _0x510152=this;this[_0x19db52(0x2e0)](this['_HTTPService'][_0x19db52(0x240)]({'priority':0x3e7,'interceptor':_0x5e53e1({'isMatch'(_0x5db38e){const _0x4b4865=_0x19db52;var _0x1402ba;if(_0x5db38e[_0x4b4865(0x1a5)]===_0x4b4865(0x124)&&(_0x1402ba=_0x5db38e[_0x4b4865(0x15e)])!=null&&_0x1402ba[_0x4b4865(0x123)]){let {objectID:_0x363b8c,objectType:_0x2ebc64}=_0x5db38e[_0x4b4865(0x15e)][_0x4b4865(0x123)]||{};if(!_0x363b8c||_0x2ebc64===void 0x0)return!0x1;let _0x154860=_0x510152[_0x4b4865(0x16c)]()+'/'+_0x2ebc64+'/object/'+_0x363b8c+_0x4b4865(0x14c);if(_0x5db38e[_0x4b4865(0x118)]===_0x154860)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1b2b76){const _0x3f00b5=_0x19db52;var _0x4c88ec;return(_0x4c88ec=_0x1b2b76[_0x3f00b5(0x15e)])==null?void 0x0:_0x4c88ec[_0x3f00b5(0x123)];},'mergeParamsToRequest'(_0x5e706f,_0x2582d8){const _0x4f0ccc=_0x19db52;let _0x528279=_0x510152[_0x4f0ccc(0x16c)]()+'/-/object/-/batch_allowed',_0x3f1683=_0x5e706f[_0x4f0ccc(0x2a9)]((_0x49ab73,_0x57fef7)=>{const _0x28b66f=_0x4f0ccc;let {unitID:_0x12ecab,objectID:_0x506169,objectType:_0x2e6c9d,actions:_0x1ec5cd}=_0x57fef7;return _0x49ab73[_0x12ecab]||(_0x49ab73[_0x12ecab]={}),_0x49ab73[_0x12ecab][_0x506169]||(_0x49ab73[_0x12ecab][_0x506169]={'objectID':_0x506169,'objectType':_0x2e6c9d,'actions':[]}),_0x49ab73[_0x12ecab][_0x506169]['actions'][_0x28b66f(0xc1)](..._0x1ec5cd),_0x49ab73;},{}),_0x502283=[];for(let _0x5dedc7 in _0x3f1683)for(let _0x2edf1f in _0x3f1683[_0x5dedc7]){let {actions:_0x2d6b49,objectType:_0x498c79}=_0x3f1683[_0x5dedc7][_0x2edf1f],_0x1933a3=[...new Set(_0x2d6b49)];_0x502283['push']({'unitID':_0x5dedc7,'objectID':_0x2edf1f,'objectType':_0x498c79,'actions':_0x1933a3});}return new _0x1b125d(_0x4f0ccc(0x124),_0x528279,{'headers':_0x2582d8[_0x4f0ccc(0x10d)],'withCredentials':_0x2582d8['withCredentials'],'responseType':_0x2582d8[_0x4f0ccc(0x173)],'body':{'requests':_0x502283}});}},{'distributeResult'(_0x1ca702,_0x1f9b18){const _0x2497b1=_0x19db52;let {objectActions:_0xfee2}=_0x1ca702;return _0x1f9b18[_0x2497b1(0x1f1)](_0x434ecd=>{const _0x19a728=_0x2497b1;let {unitID:_0x2d2cdf,objectID:_0x192a2e,actions:_0x44e3fa}=_0x434ecd,_0x364c15=_0xfee2[_0x19a728(0x2f5)](_0x5c55f2=>_0x5c55f2['unitID']===_0x2d2cdf&&_0x5c55f2[_0x19a728(0x220)]===_0x192a2e);return{'config':_0x434ecd,'result':{'actions':_0x44e3fa[_0x19a728(0x1f1)](_0x11ee75=>_0x364c15==null?void 0x0:_0x364c15[_0x19a728(0x14d)]['find'](_0x5396e3=>_0x5396e3[_0x19a728(0x172)]===_0x11ee75))['filter'](_0x544593=>!!_0x544593),'error':_0x1ca702[_0x19a728(0xd2)]}};});}})}));}[_0x1f8522(0x16c)](){const _0x4d02d8=_0x1f8522;var _0x18838c;let _0x5f00e1=this[_0x4d02d8(0xba)][_0x4d02d8(0xe2)](U);return(_0x18838c=_0x5f00e1==null?void 0x0:_0x5f00e1[_0x4d02d8(0xec)])==null?_0x4d02d8(0x1ae):_0x18838c;}async['create'](_0x9c80ff){const _0x561871=_0x1f8522;let _0x2aa4e1=this[_0x561871(0x16c)]()+'/'+_0x9c80ff[_0x561871(0x1ed)]+_0x561871(0x12b);return(await this[_0x561871(0x117)][_0x561871(0xc6)](_0x2aa4e1,{'body':_0x9c80ff}))[_0x561871(0x123)]['objectID']||'';}async['list'](_0x54f3c1){const _0x136659=_0x1f8522;let _0x3c1035=this[_0x136659(0x16c)]()+_0x136659(0x276);return(await this[_0x136659(0x117)][_0x136659(0xc6)](_0x3c1035,{'body':_0x54f3c1}))[_0x136659(0x123)][_0x136659(0x26b)];}async[_0x1f8522(0x2a6)](_0x4e16df){const _0x1d6f3f=_0x1f8522;var _0x4997ad;let _0x42e48a=this[_0x1d6f3f(0x16c)]()+'/'+_0x4e16df[_0x1d6f3f(0x1ed)]+_0x1d6f3f(0x161)+_0x4e16df[_0x1d6f3f(0x220)],_0x1d2fd0=await this['_HTTPService'][_0x1d6f3f(0xe6)](_0x42e48a,{'body':_0x4e16df});if((_0x1d2fd0==null||(_0x4997ad=_0x1d2fd0[_0x1d6f3f(0x123)])==null||(_0x4997ad=_0x4997ad[_0x1d6f3f(0xd2)])==null?void 0x0:_0x4997ad[_0x1d6f3f(0x106)])!==0x1)throw Error(_0x1d6f3f(0x268));}async[_0x1f8522(0xbd)](_0x28f4a6){const _0x7a3496=_0x1f8522;let _0x33021d=this[_0x7a3496(0x16c)]()+'/'+_0x28f4a6[_0x7a3496(0x1ed)]+_0x7a3496(0x161)+_0x28f4a6[_0x7a3496(0x220)]+_0x7a3496(0x14c);return(await this[_0x7a3496(0x117)][_0x7a3496(0xc6)](_0x33021d,{'body':_0x28f4a6}))['body'][_0x7a3496(0x14d)];}async['batchAllowed'](_0xf693d8){const _0x40120f=_0x1f8522;let _0x4b6cf8=this[_0x40120f(0x16c)]()+_0x40120f(0x1a6);return(await this['_HTTPService'][_0x40120f(0xc6)](_0x4b6cf8,{'body':{'requests':_0xf693d8}}))[_0x40120f(0x123)]['objectActions'];}async[_0x1f8522(0xf1)](_0x54d469){const _0x11f12c=_0x1f8522;let _0x476e1d=this[_0x11f12c(0x16c)]()+'/'+_0x54d469[_0x11f12c(0x1ed)]+_0x11f12c(0x2cb),_0x4e4523=await this[_0x11f12c(0x117)][_0x11f12c(0xc6)](_0x476e1d,{'body':_0x54d469});return{'roles':_0x4e4523[_0x11f12c(0x123)][_0x11f12c(0x2b6)],'actions':_0x4e4523[_0x11f12c(0x123)][_0x11f12c(0x14d)]};}async['deleteCollaborator'](_0x210d99){const _0x23bf69=_0x1f8522;let _0x2b97e2=this[_0x23bf69(0x16c)]()+_0x23bf69(0x298);await this[_0x23bf69(0x117)][_0x23bf69(0x319)](_0x2b97e2,{'params':{'collaboratorID':_0x210d99['collaboratorID'],'objectID':_0x210d99[_0x23bf69(0x220)],'unitID':_0x210d99[_0x23bf69(0x108)]}});}async[_0x1f8522(0x119)](_0x58f946){const _0x393e16=_0x1f8522;let _0xb03346=this[_0x393e16(0x16c)]()+'/collaborator';await this['_HTTPService'][_0x393e16(0x239)](_0xb03346,{'body':_0x58f946});}async[_0x1f8522(0x144)](_0x575e9b){const _0xb81a6a=_0x1f8522;let _0x7e6f3c=this[_0xb81a6a(0x16c)]()+'/collaborator';await this[_0xb81a6a(0x117)][_0xb81a6a(0xc6)](_0x7e6f3c,{'body':_0x575e9b});}async['listCollaborators'](_0x3da650){const _0x26218b=_0x1f8522;var _0x4e4ad6;let _0x57f326=this[_0x26218b(0x16c)]()+'/collaborator',_0x3223a8=await this['_HTTPService']['get'](_0x57f326,{'params':{'objectID':_0x3da650[_0x26218b(0x220)],'unitID':_0x3da650['unitID']}});return this[_0x26218b(0x1d4)]((_0x4e4ad6=_0x3223a8[_0x26218b(0x123)][_0x26218b(0xe7)])==null?!0x1:_0x4e4ad6),_0x3223a8[_0x26218b(0x123)][_0x26218b(0x2e3)];}async[_0x1f8522(0x14e)](_0x48177a){const _0x1be86d=_0x1f8522;let _0x50418f=this[_0x1be86d(0x16c)]()+_0x1be86d(0x298);await this[_0x1be86d(0x117)][_0x1be86d(0xe6)](_0x50418f,{'body':_0x48177a});}[_0x1f8522(0x1d4)](_0x4ec648){const _0x276224=_0x1f8522;this[_0x276224(0x175)]=_0x4ec648;}['getCfgEnableObjInherit'](){const _0x5580c3=_0x1f8522;return this[_0x5580c3(0x175)];}};fn=z([R(0x0,_0x4f07a4(_0x2e99a4)),R(0x1,_0x4f07a4(_0x3ba9f8))],fn);function pn(_0x56d61e){const _0x22b420=_0x1f8522;let _0x3d0578=atob(_0x56d61e),_0xf683f6=new Uint8Array(_0x3d0578[_0x22b420(0x10a)]);for(let _0x4875b5=0x0;_0x4875b5<_0x3d0578[_0x22b420(0x10a)];_0x4875b5++)_0xf683f6[_0x4875b5]=_0x3d0578['charCodeAt'](_0x4875b5);return _0xf683f6;}function mn(_0xe09e45){const _0xd98024=_0x1f8522;let _0x53594d='';for(let _0x4169ae=0x0;_0x4169ae<_0xe09e45[_0xd98024(0x10a)];_0x4169ae++)_0x53594d+=String[_0xd98024(0x170)](_0xe09e45[_0x4169ae]);return btoa(_0x53594d);}function hn(_0x2532d3,_0x4bfff9){const _0x3dbf72=_0x1f8522;let _0x3771b3=pn(_0x4bfff9),_0x3aeacb=_0x24b9a3(0x10);return mn(_0x5b3153(_0x3aeacb,_0xd0e4b3(_0x3771b3,_0x3aeacb)[_0x3dbf72(0x25c)](_0x1fa3b3(_0x2532d3))));}function gn(){const _0x1b45f3=_0x1f8522;let _0x320356=_0x494156()[_0x1b45f3(0x263)];if(typeof window<'u'&&window[_0x1b45f3(0x110)]!==void 0x0&&_0x320356){let _0x4c6dd7={'time':Math[_0x1b45f3(0x11f)](Date[_0x1b45f3(0x168)]()/0x3e8),'domain':location[_0x1b45f3(0x129)]};return hn(JSON[_0x1b45f3(0x2fc)](_0x4c6dd7),_0x320356);}}let _n=class{constructor(_0x190fd7){const _0x537620=_0x1f8522;this[_0x537620(0x152)]=_0x190fd7,this[_0x537620(0xdf)]();}[_0x1f8522(0xdf)](){const _0x482177=_0x1f8522;this[_0x482177(0x152)][_0x482177(0x240)]({'interceptor':(_0x123e6f,_0x5bc066)=>{let _0x145b7d=gn();return _0x145b7d&&_0x123e6f['headers']['set']('x-univer-host',_0x145b7d),_0x5bc066(_0x123e6f);}});}};_n=z([R(0x0,_0x4f07a4(_0x2e99a4))],_n);let vn=class extends _0x3498fe{constructor(_0x31e210,_0x51d2ed,_0x48bf1a){const _0x26c7af=_0x1f8522;super(),this[_0x26c7af(0x2b2)]=_0x31e210,this[_0x26c7af(0x186)]=_0x51d2ed,this['_localCacheService']=_0x48bf1a,I(this,_0x26c7af(0x2cf),new _0x2acfcb(null)),I(this,'unitInfo$',this[_0x26c7af(0x2cf)][_0x26c7af(0x2b0)]());}async[_0x1f8522(0x303)](_0x1e98c8,_0xa9d955,_0x3ca342){const _0x6b00bf=_0x1f8522;this['_unitInfo$'][_0x6b00bf(0xc4)]({'unitId':_0x1e98c8,'type':_0xa9d955});let _0x1e9c6b=null;switch(_0xa9d955){case _0x292cef['UNIVER_SHEET']:_0x1e9c6b=await this[_0x6b00bf(0x186)][_0x6b00bf(0x24d)](_0x1e98c8,_0x3ca342);break;case _0x292cef[_0x6b00bf(0x23a)]:_0x1e9c6b=await this[_0x6b00bf(0x186)][_0x6b00bf(0x209)](_0x1e98c8,_0x3ca342);break;default:this[_0x6b00bf(0x2b2)]['error']('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x1e9c6b;}async[_0x1f8522(0x185)](_0x1ff517,_0x41bfd0,_0x396930){const _0x54656d=_0x1f8522;var _0x11092e;this['_unitInfo$'][_0x54656d(0xc4)]({'unitId':_0x1ff517,'type':_0x41bfd0,'subUnitId':_0x396930});let _0x52def5=0x0,_0x5ab00b=await((_0x11092e=this['_localCacheService'])==null?void 0x0:_0x11092e['loadOfflineData'](_0x1ff517));return _0x5ab00b&&(_0x5ab00b[_0x54656d(0x2c7)]||_0x5ab00b[_0x54656d(0x236)][_0x54656d(0x10a)]!==0x0)&&(_0x52def5=_0x5ab00b['rev']),_0x52def5===0x0&&this['_logService'][_0x54656d(0x305)](_0x54656d(0x12d),_0x54656d(0x133)),this['loadUnitOfRevision'](_0x1ff517,_0x41bfd0,_0x52def5);}};vn=z([R(0x0,_0x1443cf),R(0x1,_0x4f07a4(_0x5662c6)),R(0x2,_0x1cfc4d(V))],vn);let yn=class{constructor(_0x21de09,_0x33e44f,_0x5a96f0){const _0x18ed11=_0x1f8522;this['_httpService']=_0x21de09,this[_0x18ed11(0xba)]=_0x33e44f,this[_0x18ed11(0xf7)]=_0x5a96f0,I(this,_0x18ed11(0x204),0x0),I(this,'_change$',new _0x147a88()),I(this,_0x18ed11(0x1e9),this['_change$']),I(this,'_imageSourceCache',new Map());}[_0x1f8522(0xd7)](_0x56a78b){const _0x110e24=_0x1f8522;this['_waitCount']=_0x56a78b,this[_0x110e24(0x28e)][_0x110e24(0xc4)](_0x56a78b);}[_0x1f8522(0x135)](_0x42fa06,_0x304ecf){const _0x7a3fbe=_0x1f8522;if(_0x304ecf===_0x570c35[_0x7a3fbe(0x136)]){let _0x460cfb=new Image();return _0x460cfb[_0x7a3fbe(0x2da)]=_0x42fa06,_0x460cfb;}return this[_0x7a3fbe(0x200)][_0x7a3fbe(0x315)](_0x42fa06);}['addImageSourceCache'](_0x467878,_0x18bf02,_0x18c29e){const _0x504aaa=_0x1f8522;_0x18bf02===_0x570c35[_0x504aaa(0x136)]||_0x18c29e==null||this[_0x504aaa(0x200)][_0x504aaa(0x27d)](_0x467878,_0x18c29e);}async[_0x1f8522(0x183)](_0x8bb9f7){const _0x55ec46=_0x1f8522;try{let _0x30de94=this[_0x55ec46(0x1c5)](this[_0x55ec46(0x162)](),''+_0x8bb9f7),_0x53a5de=(await this[_0x55ec46(0x152)][_0x55ec46(0x315)](_0x30de94))[_0x55ec46(0x123)];if(_0x53a5de[_0x55ec46(0xd2)]&&_0x53a5de[_0x55ec46(0xd2)][_0x55ec46(0x106)]===_0x5637ab['OK']){let _0x21214a=_0x4fcdae(_0x53a5de[_0x55ec46(0x118)],this[_0x55ec46(0x2f7)]());return Promise[_0x55ec46(0x225)](_0x21214a);}return Promise[_0x55ec46(0xe5)](_0x53a5de[_0x55ec46(0xd2)]);}catch(_0x43f234){return Promise[_0x55ec46(0xe5)](_0x43f234);}}async[_0x1f8522(0x257)](_0x5c9705){const _0x5207f0=_0x1f8522;let _0x2e3825='';if(!_0xf4198a[_0x5207f0(0x1ca)](_0x5c9705[_0x5207f0(0x126)]))return this[_0x5207f0(0x2a5)](),Promise[_0x5207f0(0xe5)](Error(_0x528a72[_0x5207f0(0x2fa)]));if(_0x5c9705[_0x5207f0(0x234)]>_0x487da1())return this[_0x5207f0(0x2a5)](),Promise['reject'](Error(_0x528a72[_0x5207f0(0x299)]));try{let _0xde2874=new FormData();_0xde2874[_0x5207f0(0xdb)](_0x5207f0(0x2eb),_0x5c9705);let _0x5e2036=this[_0x5207f0(0xf7)]['getFocusedUnit'](),_0x10e79d=_0x5e2036==null?void 0x0:_0x5e2036[_0x5207f0(0xdc)]();if(!_0x10e79d)throw Error(_0x5207f0(0xc8));let _0x18964f=this['_getUploadFileURL']()+'?size='+_0x5c9705['size'][_0x5207f0(0x30e)]()+_0x5207f0(0x224)+_0x25f37b[_0x5207f0(0x242)]+'&assign='+encodeURIComponent(_0x10e79d),_0x2333cf={'body':_0xde2874},_0x39b3f9=(await this['_httpService'][_0x5207f0(0xc6)](_0x18964f,_0x2333cf))[_0x5207f0(0x123)];if(typeof _0x39b3f9[_0x5207f0(0x163)]!=_0x5207f0(0x2e8))return this[_0x5207f0(0x2a5)](),Promise[_0x5207f0(0xe5)](Error(_0x528a72[_0x5207f0(0xf4)]));_0x2e3825=_0x39b3f9[_0x5207f0(0x163)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(_0x528a72[_0x5207f0(0xf4)]));}return new Promise((_0x280c52,_0x24be66)=>{const _0x52612f=_0x5207f0;let _0x980007=new FileReader();_0x980007[_0x52612f(0x17f)](_0x5c9705),_0x980007[_0x52612f(0x20a)]=_0x47117b=>{const _0x21411d=_0x52612f;var _0x173d1c;let _0x46f305=(_0x173d1c=_0x47117b[_0x21411d(0x261)])==null?void 0x0:_0x173d1c[_0x21411d(0xda)];if(_0x46f305==null){this[_0x21411d(0x2a5)](),_0x24be66(Error(_0x528a72['ERROR_IMAGE']));return;}_0x280c52({'imageId':_0x4fa431(0x6),'imageSourceType':_0x570c35[_0x21411d(0x26f)],'source':_0x2e3825,'base64Cache':_0x46f305,'status':_0x528a72[_0x21411d(0x176)]}),this['_decreaseWaiting']();};});}[_0x1f8522(0xc2)](){const _0x53b0b0=_0x1f8522;var _0x1e8b26;let _0x4896e1=this[_0x53b0b0(0xba)][_0x53b0b0(0xe2)](U);return(_0x1e8b26=_0x4896e1==null?void 0x0:_0x4896e1[_0x53b0b0(0x1d6)])==null?_0x53b0b0(0x1d0):_0x1e8b26;}[_0x1f8522(0x162)](){const _0x3bf7bb=_0x1f8522;var _0xe1be61;let _0x4465e7=this['_configService']['getConfig'](U);return(_0xe1be61=_0x4465e7==null?void 0x0:_0x4465e7['signUrlServerUrl'])==null?_0x3bf7bb(0x2cd):_0xe1be61;}['_getDownloadEndpointURL'](){const _0x55cf3f=_0x1f8522;var _0x1d06ed;let _0x4ade9a=this[_0x55cf3f(0xba)][_0x55cf3f(0xe2)](U);return(_0x1d06ed=_0x4ade9a==null?void 0x0:_0x4ade9a[_0x55cf3f(0x156)])==null?location['origin']:_0x1d06ed;}[_0x1f8522(0x1c5)](_0x2e792a,_0x29df86){const _0x40a313=_0x1f8522;return _0x2e792a[_0x40a313(0x223)]('{fileID}',_0x29df86);}['_decreaseWaiting'](){const _0x3f415d=_0x1f8522;--this[_0x3f415d(0x204)],this['_change$']['next'](this[_0x3f415d(0x204)]);}};yn=z([R(0x0,_0x4f07a4(_0x2e99a4)),R(0x1,_0x3ba9f8),R(0x2,_0x4f07a4(_0x3a738f))],yn);let bn=class{constructor(_0x199a5e,_0x17dbaa){const _0x5b24f0=_0x1f8522;this[_0x5b24f0(0xba)]=_0x199a5e,this[_0x5b24f0(0x117)]=_0x17dbaa;}[_0x1f8522(0x16c)](){const _0x1b5921=_0x1f8522;var _0x40b879;let _0x35769a=this[_0x1b5921(0xba)][_0x1b5921(0xe2)](U);return(_0x40b879=_0x35769a==null?void 0x0:_0x35769a['authzUrl'])==null?'/universer-api/authz':_0x40b879;}async[_0x1f8522(0x103)](_0x2163dd){const _0x2bb701=_0x1f8522;let _0x122938=this[_0x2bb701(0x16c)]()+_0x2bb701(0x298);return{'list':[{'title':'People','mentions':(await this[_0x2bb701(0x117)][_0x2bb701(0x315)](_0x122938,{'params':{'objectID':_0x2163dd[_0x2bb701(0x2c2)],'unitID':_0x2163dd[_0x2bb701(0x2c2)]}}))[_0x2bb701(0x123)][_0x2bb701(0x2e3)][_0x2bb701(0x1f1)](_0xdda401=>({'objectId':_0xdda401['id'],'name':_0xdda401[_0x2bb701(0x2e1)][_0x2bb701(0x215)],'metadata':{'icon':_0xdda401[_0x2bb701(0x2e1)][_0x2bb701(0x174)]},'label':_0xdda401[_0x2bb701(0x2e1)][_0x2bb701(0x215)],'objectType':_0x39f40b[_0x2bb701(0x2c0)]})),'metadata':{},'type':_0x39f40b[_0x2bb701(0x2c0)]}]};}};bn=z([R(0x0,_0x4f07a4(_0x3ba9f8)),R(0x1,_0x4f07a4(_0x2e99a4))],bn);let xn=class extends _0x3498fe{constructor(_0x29731a,_0x55c132,_0x32925f,_0x58cd53,_0x1f4500){const _0xc87407=_0x1f8522;super(),this[_0xc87407(0xe9)]=_0x29731a,this[_0xc87407(0xf7)]=_0x55c132,this[_0xc87407(0xfe)]=_0x32925f,this[_0xc87407(0x17b)]=_0x58cd53,this[_0xc87407(0x2b3)]=_0x1f4500,this[_0xc87407(0x169)](),this['_initCloseConn']();}[_0x1f8522(0x1e0)](){const _0x3ee57c=_0x1f8522;let _0x1be3d8=async _0x42d036=>{const _0x38c898=_0x249d;(await this['_collaborationSessionService']['requireSession'](_0x42d036))[_0x38c898(0xfa)][_0x38c898(0x27e)](_0x18abe6(_0x5c2825=>_0x5c2825[_0x38c898(0x281)]===_0x27e67f[_0x38c898(0xf5)]),_0x328e45(this[_0x38c898(0x24c)]))[_0x38c898(0xfb)](_0x1680a4=>{const _0x1dcf5c=_0x38c898;let {reason:_0x4dc419}=_0x1680a4['data'];this['_collaborationUIEventService']['emitEvent']({'id':_0x1dcf5c(0x26a),'data':_0x4dc419}),this['_permissionService'][_0x1dcf5c(0x134)](new _0x14cd38(_0x42d036)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x42d036);});};_0x340907(this[_0x3ee57c(0xf7)][_0x3ee57c(0x28f)](_0x292cef['UNIVER_SHEET']),this[_0x3ee57c(0xf7)]['getTypeOfUnitAdded$'](_0x292cef[_0x3ee57c(0x23a)]))['pipe'](_0x279c8c(_0x5a2100=>_0x5a2100['unit'][_0x3ee57c(0xdc)]()),_0x18abe6(_0x24105a=>!_0x2a8699(_0x24105a)),_0x328e45(this[_0x3ee57c(0x24c)]))[_0x3ee57c(0xfb)](_0x5f217b=>{_0x1be3d8(_0x5f217b);});}[_0x1f8522(0x169)](){const _0x2f2fda=_0x1f8522;let _0x3ce0e9=async _0x4533dc=>{const _0x287c89=_0x249d;let _0x49bf61=await this[_0x287c89(0x17b)][_0x287c89(0x277)](_0x4533dc),_0x1e8469=this[_0x287c89(0xe9)][_0x287c89(0x315)](_0x5e8e29);_0x49bf61[_0x287c89(0xfa)]['pipe'](_0x18abe6(_0x2a674b=>_0x2a674b[_0x287c89(0x281)]===_0x27e67f[_0x287c89(0x139)]),_0x328e45(this['dispose$']))[_0x287c89(0xfb)](_0x3c6cde=>{const _0x257e67=_0x287c89;let {objectId:_0x1700cf}=_0x3c6cde['data'];_0x1700cf===_0x4533dc?_0x1e8469[_0x257e67(0x232)](_0x4533dc):_0x1e8469[_0x257e67(0xcc)](_0x4533dc,_0x1700cf);});};_0x340907(this[_0x2f2fda(0xf7)][_0x2f2fda(0x28f)](_0x292cef[_0x2f2fda(0x107)]))[_0x2f2fda(0x27e)](_0x279c8c(_0x212031=>_0x212031[_0x2f2fda(0x189)]['getUnitId']()),_0x18abe6(_0x3475fc=>!_0x2a8699(_0x3475fc)),_0x328e45(this[_0x2f2fda(0x24c)]))[_0x2f2fda(0xfb)](_0xb97957=>{_0x3ce0e9(_0xb97957);});}};xn=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x3a738f),R(0x2,_0x439c61),R(0x3,_0x4f07a4(Q)),R(0x4,_0x4f07a4(L))],xn);let Sn=class{constructor(_0x237f23,_0x3e3f10){const _0x41a427=_0x1f8522;this[_0x41a427(0xba)]=_0x237f23,this[_0x41a427(0x152)]=_0x3e3f10;}async['getUnitOnRev'](_0xb02917,_0x1e78a2){const _0x422885=_0x1f8522;var _0x4f9e85;let {unitID:_0x2b0e84,type:_0x181e4a,revision:_0x599d47=0x0}=_0x1e78a2,_0x4fde90=this['getSnapshotAPIPath']()+'/'+_0x181e4a+_0x422885(0xee)+_0x2b0e84+'/rev/'+_0x599d47,_0x38a581=(await this[_0x422885(0x152)]['get'](_0x4fde90))[_0x422885(0x123)],_0x5f4cc8=(_0x4f9e85=_0x38a581[_0x422885(0x1e7)])==null?void 0x0:_0x4f9e85[_0x422885(0x19b)];if(_0x5f4cc8){let _0x223a1a=_0x5f4cc8==null?void 0x0:_0x5f4cc8['originalMeta'];_0x5f4cc8[_0x422885(0x197)]=_0x2c7657[_0x422885(0xbb)](_0x376bcd(_0x223a1a)),Object[_0x422885(0x22d)](_0x5f4cc8[_0x422885(0x1d5)])[_0x422885(0x1b0)](([,_0x1bdac3])=>{const _0x597675=_0x422885;let _0x3e5d5d=_0x1bdac3[_0x597675(0x197)];_0x1bdac3[_0x597675(0x197)]=_0x2c7657[_0x597675(0xbb)](_0x376bcd(_0x3e5d5d));});}return _0x38a581;}async[_0x1f8522(0x308)](_0x492e0f,_0x1d58c1){const _0x38306b=_0x1f8522;let {unitID:_0x1f60b3,type:_0x11d5b1,blockID:_0x16885d}=_0x1d58c1,_0x3792d3=this[_0x38306b(0x19d)]()+'/'+_0x11d5b1+_0x38306b(0xee)+_0x1f60b3+_0x38306b(0x269)+_0x16885d;return(await this[_0x38306b(0x152)][_0x38306b(0x315)](_0x3792d3))[_0x38306b(0x123)];}async[_0x1f8522(0x29a)](_0x160c21,_0x567646){const _0x52b72a=_0x1f8522;let {unitID:_0x4c0f89,type:_0x571b22,blockID:_0x364564}=_0x567646,_0x5e35cc=this['_getAPIPrefix']()+'/block/'+_0x571b22+_0x52b72a(0xee)+_0x4c0f89+_0x52b72a(0x269)+_0x364564;return(await this[_0x52b72a(0x152)][_0x52b72a(0x315)](_0x5e35cc))[_0x52b72a(0x123)];}async['fetchMissingChangesets'](_0x3393cb,_0x3a74d7){const _0x139bad=_0x1f8522;let {unitID:_0x502aa3,type:_0x4087c4,from:_0x143fb5,to:_0x45ebad}=_0x3a74d7,_0x5b3c77=this[_0x139bad(0x19d)]()+'/'+_0x4087c4+_0x139bad(0xee)+_0x502aa3+'/fetchmissing?from='+_0x143fb5+_0x139bad(0x20d)+_0x45ebad;return(await this[_0x139bad(0x152)]['get'](_0x5b3c77))['body'];}[_0x1f8522(0x2ba)](){const _0x3789b4=_0x1f8522;var _0x4df878;return(_0x4df878=this['_configService'][_0x3789b4(0xe2)]('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0x4df878;}[_0x1f8522(0x19d)](){const _0xd566e0=_0x1f8522;var _0x17892f;let _0x1af13a=this[_0xd566e0(0xba)][_0xd566e0(0xe2)](U);return(_0x17892f=_0x1af13a==null?void 0x0:_0x1af13a['snapshotServerUrl'])==null?_0xd566e0(0x16b):_0x17892f;}async[_0x1f8522(0x1ad)](_0x36af11,_0x1cfc09){const _0x169fb1=_0x1f8522;let _0x4a366c=_0x169fb1(0xcd)+_0x1cfc09[_0x169fb1(0x126)]+_0x169fb1(0xee)+_0x1cfc09[_0x169fb1(0x108)]+_0x169fb1(0x1c4);return(await this[_0x169fb1(0x152)][_0x169fb1(0x315)](_0x4a366c,{'params':{'resourceId':JSON['stringify'](_0x1cfc09[_0x169fb1(0xfc)])}}))[_0x169fb1(0x123)];}[_0x1f8522(0x27f)](){const _0x5562e7=_0x1f8522;throw Error(_0x5562e7(0x23c));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1f8522(0x2ad)](){const _0x54193a=_0x1f8522;throw Error(_0x54193a(0x23c));}['saveChangeset'](){const _0x21fcca=_0x1f8522;throw Error(_0x21fcca(0x23c));}[_0x1f8522(0x18e)](){const _0x1e3e9f=_0x1f8522;throw Error(_0x1e3e9f(0x23c));}[_0x1f8522(0x237)](){const _0x2b2cbb=_0x1f8522;throw Error(_0x2b2cbb(0x23c));}};function _0x249d(_0x381240,_0x587947){_0x381240=_0x381240-0xb9;const _0x21a64c=_0x21a6();let _0x249ddb=_0x21a64c[_0x381240];return _0x249ddb;}Sn=z([R(0x0,_0x3ba9f8),R(0x1,_0x4f07a4(_0x2e99a4))],Sn);let Cn=class extends _0x38014a{constructor(_0x179c32,_0xa8a5a1,_0x4d6965,_0x5d95b7,_0x229f2b){const _0x4c749b=_0x1f8522;super(_0x179c32,_0xa8a5a1,_0x4d6965),this[_0x4c749b(0xf0)]=_0x5d95b7,this[_0x4c749b(0x2b2)]=_0x229f2b;}[_0x1f8522(0x127)](_0x3a32a5,_0x2cb0e4){const _0x5c9f38=_0x1f8522;let _0x542eaf=this[_0x5c9f38(0x203)](_0x3a32a5);if(_0x542eaf)try{let _0x561c20=this['_transformStack'](_0x542eaf,_0x2cb0e4);this[_0x5c9f38(0x122)](_0x3a32a5,_0x561c20);}catch(_0x398c23){this[_0x5c9f38(0x2b2)]['error']('[CollaborationUndoRedoService]',_0x398c23),this['_clearUndo'](_0x3a32a5);}let _0x35c8fb=this[_0x5c9f38(0x273)](_0x3a32a5);if(_0x35c8fb)try{let _0x32e2d3=this['_transformStack'](_0x35c8fb,_0x2cb0e4);this[_0x5c9f38(0x2b5)](_0x3a32a5,_0x32e2d3);}catch(_0x3aaee6){this['_logService'][_0x5c9f38(0xd2)](_0x3aaee6),this['_clearRedo'](_0x3a32a5);}}[_0x1f8522(0x1b8)](_0x856dd5){const _0x5e1ead=_0x1f8522;let _0x4f9e73=this[_0x5e1ead(0x203)](_0x856dd5);_0x4f9e73&&(_0x4f9e73['length']=0x0,this[_0x5e1ead(0x1a8)]());}[_0x1f8522(0x1d1)](_0xc75be5){const _0x147a6b=_0x1f8522;let _0x35d234=this[_0x147a6b(0x273)](_0xc75be5);_0x35d234&&(_0x35d234[_0x147a6b(0x10a)]=0x0,this[_0x147a6b(0x1a8)]());}[_0x1f8522(0x122)](_0xcf2cb2,_0x4ac7f5){const _0x4719a3=_0x1f8522;this[_0x4719a3(0xff)][_0x4719a3(0x27d)](_0xcf2cb2,_0x4ac7f5),this[_0x4719a3(0x1a8)]();}[_0x1f8522(0x2b5)](_0x128ccc,_0xc758d5){const _0xa04913=_0x1f8522;this[_0xa04913(0x2fb)]['set'](_0x128ccc,_0xc758d5),this[_0xa04913(0x1a8)]();}[_0x1f8522(0xc3)](_0x1ab1ad,_0x1771db){const _0x252927=_0x1f8522;let _0x3cd6bf=[],_0xa1f522=_0x1771db,_0xc6dbac=_0x1771db;for(let _0x3e638d=_0x1ab1ad[_0x252927(0x10a)]-0x1;_0x3e638d>=0x0;_0x3e638d--){let {unitID:_0x1dd778,undoMutations:_0x2e8d34,redoMutations:_0x50476e}=_0x1ab1ad[_0x3e638d],_0x464723=this[_0x252927(0xf0)][_0x252927(0x280)](_0xa1f522,_0x2e8d34),_0x53a1a2=this['_transformService'][_0x252927(0x280)](_0xc6dbac,_0x50476e);if(_0x17dd41(_0x464723)||_0x17dd41(_0x53a1a2)){this['_logService'][_0x252927(0xd2)](_0x252927(0x198),'transformStack\x20failed!',_0x464723,_0x53a1a2);break;}_0xa1f522=_0x464723[_0x252927(0x2bb)],_0xc6dbac=_0x53a1a2[_0x252927(0x2bb)],_0x3cd6bf['push']({'unitID':_0x1dd778,'undoMutations':_0x464723['m2Prime'],'redoMutations':_0x53a1a2[_0x252927(0x2c1)]});}return _0x3cd6bf[_0x252927(0x105)]();}};Cn=z([R(0x0,_0x3a738f),R(0x1,_0x3a76f7),R(0x2,_0x3ed1aa),R(0x3,_0x4f7ff9),R(0x4,_0x1443cf)],Cn);let $=class extends _0x2c42b9{constructor(_0x4f9dad={},_0x47bf66,_0x318c05,_0x533263){const _0x1de3b0=_0x1f8522;super(),this[_0x1de3b0(0xcb)]=_0x4f9dad,this['_logService']=_0x47bf66,this[_0x1de3b0(0xe9)]=_0x318c05,this[_0x1de3b0(0xba)]=_0x533263;let {..._0x5ec13f}=_0x1b8645({},Nt,_0x4f9dad);if(!_0x5ec13f[_0x1de3b0(0xd3)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x1de3b0(0xcb)]=_0x5ec13f,this[_0x1de3b0(0xba)]['setConfig'](U,_0x5ec13f);}['onStarting'](){const _0x4b3d66=_0x1f8522;this[_0x4b3d66(0x28a)](),this[_0x4b3d66(0x2f6)]();}['_registerDependencies'](){const _0x34d18f=_0x1f8522;var _0x1ae3fd,_0x1b6ccf;this[_0x34d18f(0xe9)][_0x34d18f(0x309)](_0x3b54de)&&this[_0x34d18f(0x2b2)][_0x34d18f(0xd2)](_0x34d18f(0x11d),_0x34d18f(0x271));let _0x398b12=_0x415d5a([[_0x3b54de,{'useClass':Cn}],[Q],[B],[H],[dn],[_n],[wt],[xn],[L],[vn],[rn,{'useClass':this[_0x34d18f(0xcb)][_0x34d18f(0xd3)]}],[_0x72942,{'useClass':Sn}],[_0xb4867c,{'useClass':fn}],[_0x33c502,{'useClass':yn}],[_0x5dc0a9,{'useClass':bn}],[sn],[un]],(_0x1ae3fd=this[_0x34d18f(0xcb)])==null?void 0x0:_0x1ae3fd[_0x34d18f(0x2e5)]);if(!((_0x1b6ccf=this[_0x34d18f(0xcb)])!=null&&_0x1b6ccf[_0x34d18f(0x1f4)])){let _0x1a3b16=_0x398b12['findIndex'](([_0x3aa29b])=>_0x3aa29b===jt);_0x1a3b16!==-0x1&&_0x398b12['splice'](_0x1a3b16,0x1);}_0x2046a5(this[_0x34d18f(0xe9)],_0x398b12);}[_0x1f8522(0x2f6)](){const _0x73e0f6=_0x1f8522;var _0x4b66e9,_0x42e7fc;if(this[_0x73e0f6(0xe9)][_0x73e0f6(0x315)](_0x2e99a4)[_0x73e0f6(0x240)]({'priority':0x14,'interceptor':_0x258eba({'maxParallel':0x6})}),!((_0x4b66e9=this[_0x73e0f6(0xcb)])!=null&&_0x4b66e9['enableOfflineEditing'])){var _0x3d446b;(_0x3d446b=this[_0x73e0f6(0xe9)][_0x73e0f6(0x315)](V,_0x2afa53['OPTIONAL']))==null||_0x3d446b[_0x73e0f6(0x1e3)]();}(_0x42e7fc=this[_0x73e0f6(0xcb)])!=null&&_0x42e7fc[_0x73e0f6(0x317)]&&_0x156eb2(this['_injector'],[[dn]]),_0x156eb2(this[_0x73e0f6(0xe9)],[[_n],[sn],[xn]]);}};I($,'pluginName',_0x1f8522(0x179)),I($,_0x1f8522(0x1fc),cn),I($,_0x1f8522(0x190),ln),$=z([_0x576a62(_0xc5155e,_0x2fd190,_0x4df7af),R(0x1,_0x1443cf),R(0x2,_0x4f07a4(_0x44d080)),R(0x3,_0x3ba9f8)],$);export{fn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,U as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,sn as CollaborationController,Zt as CollaborationEntity,yn as CollaborationImageIoService,Ot as CollaborationSession,Q as CollaborationSessionService,on as CollaborationSocketService,qt as CollaborationStatus,Ct as CollaborationUIEventId,L as CollaborationUIEventService,Cn as CollaborativeUndoRedoService,wt as CommentService,Y as ConflictState,ut as DEFAULT_COLLAB_WEB_SOCKET_URL,yt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,dt as DEFAULT_WS_SESSION_TICKET_URL,vn as DataLoaderService,Qt as DocCollaborationEntity,Z as FetchingMissState,ft as HEARTBEAT_INTERVAL_KEY,pt as HEARTBEAT_TIMEOUT_KEY,rn as ICollaborationSocketService,V as ILocalCacheService,en as INetworkConditionService,jt as ISingleActiveUnitService,_t as LOCAL_CACHE_INTERVAL,gt as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,bn as MentionIoHttpService,X as OfflineState,K as PendingState,vt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,ht as RETRY_CONNECTING_MAX_COUNT_KEY,Et as SessionStatus,$t as SheetCollaborationEntity,H as SheetTransformSelectionsService,Sn as SnapshotServerOverHTTPService,G as SyncedState,Mt as UnitStatus,$ as UniverCollaborationClientPlugin,tn as deserializeToCombResponse,kt as getLocalCacheKey,nn as serializeCombRequest};
1
+ const _0x43980f=_0x50c8;(function(_0x5e9280,_0x179656){const _0x3b7db0=_0x50c8,_0x5a745a=_0x5e9280();while(!![]){try{const _0x5c0713=parseInt(_0x3b7db0(0x16c))/0x1+-parseInt(_0x3b7db0(0x2a7))/0x2*(-parseInt(_0x3b7db0(0x1ec))/0x3)+-parseInt(_0x3b7db0(0x24d))/0x4*(-parseInt(_0x3b7db0(0x1bd))/0x5)+-parseInt(_0x3b7db0(0x26a))/0x6*(-parseInt(_0x3b7db0(0x317))/0x7)+-parseInt(_0x3b7db0(0x1a9))/0x8+parseInt(_0x3b7db0(0x1b1))/0x9+parseInt(_0x3b7db0(0x37e))/0xa*(-parseInt(_0x3b7db0(0x1b6))/0xb);if(_0x5c0713===_0x179656)break;else _0x5a745a['push'](_0x5a745a['shift']());}catch(_0x4af02c){_0x5a745a['push'](_0x5a745a['shift']());}}}(_0xeabc,0x44212));import{CollaborationEvent as _0x3cfbbf,CompressMutationService as _0x32355b,EmptyMutationInfo as _0x135d17,ISnapshotServerService as _0x5e9253,ITransformService as _0x41cd1f,RevisionService as _0x40cc5a,SnapshotService as _0x13d15f,UniverCollaborationPlugin as _0x1d82dc,b64DecodeUnicode as _0x285281,isTransformChangesetsSuccess as _0x4f89e9,isTransformMutationsWithChangesetFailure as _0xcb7e6c,isTransformMutationsWithChangesetSuccess as _0x993155,mapDocumentTypeToUniverInstanceType as _0x292d42,parseChangesetToProtocol as _0x27d357,parseProtocolChangeset as _0x4fb883,textEncoder as _0x2ebe39,uuidv4 as _0x338fc9}from'@univerjs-pro/collaboration';import{CommandType as _0x96f3a4,DependentOn as _0x1c9477,Disposable as _0x584d56,DisposableCollection as _0x5e2194,IAuthzIoService as _0xd5d99d,ICommandService as _0x2e910a,IConfigService as _0x581647,IContextService as _0x1aa7f8,ILogService as _0x4a2db6,IMentionIOService as _0x5cc60d,IPermissionService as _0x57bb9f,IUndoRedoService as _0x3a28c4,IUniverInstanceService as _0x5f47c6,Inject as _0x1c7850,Injector as _0xd7c234,JSONX as _0x362b24,LocalUndoRedoService as _0x41f436,LocaleService as _0x24941e,MentionType as _0x2bc86f,Optional as _0x4d2f7f,Plugin as _0xb46367,Quantity as _0x4c2254,Rectangle as _0x1a819f,RxDisposable as _0x1a88c8,Tools as _0x47c35f,UniverInstanceType as _0x69083d,UserManagerService as _0x3289ad,Workbook as _0x5bdeb0,createIdentifier as _0x45c4cd,generateRandomId as _0x4ec3e6,isInternalEditorID as _0x4a5844,merge as _0x490f84,mergeOverrideWithDependencies as _0x4f5810,registerDependencies as _0x474b15,resolveWithBasePath as _0x3121e8,sequenceExecute as _0x251144,toDisposable as _0x148718,touchDependencies as _0x5b3519}from'@univerjs/core';import{RichTextEditingMutation as _0x5e19ba}from'@univerjs/docs';import{InsertSheetMutation as _0x56b445,SetSelectionsOperation as _0x23d504,SheetPermissionInitController as _0x416900,SheetsSelectionsService as _0x412b3c,WorkbookEditablePermission as _0x173d60}from'@univerjs/sheets';import{BehaviorSubject as _0x1eef50,ReplaySubject as _0x2b96f9,Subject as _0x3c8873,concatMap as _0x5306a5,firstValueFrom as _0x1b206c,map as _0x3f4ed6,merge as _0x5a7b08,of as _0x4bafb5,shareReplay as _0x2db618,take as _0x4dc0d7,takeUntil as _0x4258f2}from'rxjs';import{CmdRspCode as _0x4348e9,CombCmd as _0x184423,ErrorCode as _0x3ec919,FileSource as _0x54fff6}from'@univerjs/protocol';import{ITelemetryService as _0x23d53c}from'@univerjs/telemetry';import{delay as _0x435e87,filter as _0x1186c5,map as _0x1e4e2f,take as _0x15a839,takeUntil as _0x6ecc79}from'rxjs/operators';import{HTTPRequest as _0x38f3fb,HTTPService as _0x5c7bc5,ISocketService as _0x466b0a,MergeInterceptorFactory as _0x4c14ec,ThresholdInterceptorFactory as _0xd46517,UniverNetworkPlugin as _0x14e288}from'@univerjs/network';import{UniverLicensePlugin as _0x4cd43a,getGlobalObject as _0x409a92}from'@univerjs-pro/license';function _0x50c8(_0x1de95,_0x588f91){_0x1de95=_0x1de95-0x14a;const _0xeabc51=_0xeabc();let _0x50c8f9=_0xeabc51[_0x1de95];return _0x50c8f9;}import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x2000fd,IImageIoService as _0x5062b6,ImageSourceType as _0x2af7e6,ImageUploadStatusType as _0x52e738,getDrawingImageAllowSize as _0x4eb6a4}from'@univerjs/drawing';import{cbc as _0x55479b}from'@noble/ciphers/aes.js';import{concatBytes as _0x597147,randomBytes as _0x27ee4b,utf8ToBytes as _0x2349fd}from'@noble/ciphers/utils.js';const ut=_0x43980f(0x2fb),dt=_0x43980f(0x2bd),ft=_0x43980f(0x153),pt=_0x43980f(0x1cc),mt=0x4e20,ht=_0x43980f(0x1e2),gt=_0x43980f(0x1e8),_t=0x3e8,vt=_0x43980f(0x233),yt=_0x43980f(0x2f6);function bt(_0x2cbfa7){const _0x5d7722=_0x43980f;return JSON[_0x5d7722(0x369)](_0x2cbfa7)[_0x5d7722(0x334)];}function F(_0x395c49){'@babel/helpers - typeof';const _0x5145ea=_0x43980f;return F=typeof Symbol==_0x5145ea(0x14c)&&typeof Symbol[_0x5145ea(0x170)]==_0x5145ea(0x360)?function(_0x1202b2){return typeof _0x1202b2;}:function(_0x9fe6f9){const _0x1a9390=_0x5145ea;return _0x9fe6f9&&typeof Symbol==_0x1a9390(0x14c)&&_0x9fe6f9['constructor']===Symbol&&_0x9fe6f9!==Symbol[_0x1a9390(0x2ab)]?'symbol':typeof _0x9fe6f9;},F(_0x395c49);}function xt(_0x379574,_0x35a484){const _0x3b43fe=_0x43980f;if(F(_0x379574)!=_0x3b43fe(0x2c0)||!_0x379574)return _0x379574;var _0x3b3ec5=_0x379574[Symbol[_0x3b43fe(0x364)]];if(_0x3b3ec5!==void 0x0){var _0x46daf5=_0x3b3ec5[_0x3b43fe(0x19f)](_0x379574,_0x35a484||_0x3b43fe(0x3bc));if(F(_0x46daf5)!=_0x3b43fe(0x2c0))return _0x46daf5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x35a484===_0x3b43fe(0x15d)?String:Number)(_0x379574);}function St(_0x2e3323){const _0x22e152=_0x43980f;var _0x32515f=xt(_0x2e3323,_0x22e152(0x15d));return F(_0x32515f)=='symbol'?_0x32515f:_0x32515f+'';}function I(_0x38eb86,_0x419ac8,_0x7e841d){const _0x38ed66=_0x43980f;return(_0x419ac8=St(_0x419ac8))in _0x38eb86?Object[_0x38ed66(0x30b)](_0x38eb86,_0x419ac8,{'value':_0x7e841d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x38eb86[_0x419ac8]=_0x7e841d,_0x38eb86;}let Ct=function(_0x3d31f2){const _0x5b8ce0=_0x43980f;return _0x3d31f2['OTHER_CLIENT_EDITING']=_0x5b8ce0(0x1d2),_0x3d31f2[_0x5b8ce0(0x299)]=_0x5b8ce0(0x299),_0x3d31f2[_0x5b8ce0(0x3bb)]=_0x5b8ce0(0x3bb),_0x3d31f2[_0x5b8ce0(0x305)]=_0x5b8ce0(0x305),_0x3d31f2[_0x5b8ce0(0x210)]=_0x5b8ce0(0x210),_0x3d31f2[_0x5b8ce0(0x2d6)]=_0x5b8ce0(0x2d6),_0x3d31f2[_0x5b8ce0(0x383)]='SOCKET_FAILED',_0x3d31f2['SUBMIT_CHANGESET_TIMEOUT']=_0x5b8ce0(0x25a),_0x3d31f2;}({});var L=class{constructor(){const _0x4a2d69=_0x43980f;I(this,_0x4a2d69(0x3a6),new _0x3c8873()),I(this,_0x4a2d69(0x282),this[_0x4a2d69(0x3a6)][_0x4a2d69(0x1f4)]());}['emitEvent'](_0x243031){const _0x5530db=_0x43980f;this[_0x5530db(0x3a6)][_0x5530db(0x177)](_0x243031);}},wt=class{constructor(){const _0x584e96=_0x43980f;I(this,_0x584e96(0x288),new _0x3c8873()),I(this,_0x584e96(0x399),this[_0x584e96(0x288)]['asObservable']());}[_0x43980f(0x198)](_0x1b6c1f){const _0x3b8d62=_0x43980f;this[_0x3b8d62(0x288)][_0x3b8d62(0x177)](_0x1b6c1f);}};function R(_0x2f0f67,_0x3b9188){return function(_0x2b25d7,_0x4bb060){_0x3b9188(_0x2b25d7,_0x4bb060,_0x2f0f67);};}function z(_0x177c0d,_0x5dda44,_0x55de9b,_0x9db16d){const _0x50fe8b=_0x43980f;var _0x2e3fb2=arguments['length'],_0x456627=_0x2e3fb2<0x3?_0x5dda44:_0x9db16d===null?_0x9db16d=Object['getOwnPropertyDescriptor'](_0x5dda44,_0x55de9b):_0x9db16d,_0x596d56;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x50fe8b(0x14c))_0x456627=Reflect['decorate'](_0x177c0d,_0x5dda44,_0x55de9b,_0x9db16d);else{for(var _0xc865a3=_0x177c0d['length']-0x1;_0xc865a3>=0x0;_0xc865a3--)(_0x596d56=_0x177c0d[_0xc865a3])&&(_0x456627=(_0x2e3fb2<0x3?_0x596d56(_0x456627):_0x2e3fb2>0x3?_0x596d56(_0x5dda44,_0x55de9b,_0x456627):_0x596d56(_0x5dda44,_0x55de9b))||_0x456627);}return _0x2e3fb2>0x3&&_0x456627&&Object[_0x50fe8b(0x30b)](_0x5dda44,_0x55de9b,_0x456627),_0x456627;}let B=class extends _0x584d56{constructor(_0x4276c2,_0xf8bc41){const _0x1aa181=_0x43980f;super(),this[_0x1aa181(0x372)]=_0x4276c2,this['_userManagerService']=_0xf8bc41,I(this,_0x1aa181(0x235),new Map()),I(this,_0x1aa181(0x2cf),new _0x3c8873()),this[_0x1aa181(0x31e)](_0x5a7b08(this[_0x1aa181(0x372)]['getTypeOfUnitDisposed$'](_0x69083d[_0x1aa181(0x291)])[_0x1aa181(0x2dc)](_0x1e4e2f(_0x46db2d=>_0x46db2d['getUnitId']())),this[_0x1aa181(0x372)][_0x1aa181(0x35c)](_0x69083d[_0x1aa181(0x34d)])[_0x1aa181(0x2dc)](_0x1e4e2f(_0x51ad9e=>_0x51ad9e[_0x1aa181(0x253)]())))[_0x1aa181(0x374)](_0x2c1f26=>this[_0x1aa181(0x2b7)](_0x2c1f26)));}[_0x43980f(0x15e)](_0x23017f){const _0x4e98a7=_0x43980f;return this[_0x4e98a7(0x235)]['has'](_0x23017f)?_0x4bafb5(this[_0x4e98a7(0x235)][_0x4e98a7(0x31d)](_0x23017f)):this['_roomCreated$'][_0x4e98a7(0x2dc)](_0x1e4e2f(_0x42a8a4=>{const _0x3dabd0=_0x4e98a7;if(_0x42a8a4===_0x23017f)return this[_0x3dabd0(0x235)][_0x3dabd0(0x31d)](_0x42a8a4);}));}[_0x43980f(0x32f)](_0x35e3af){const _0x9abca=_0x43980f;this[_0x9abca(0x36b)]['setCurrentUser'](_0x35e3af);}[_0x43980f(0x2e4)](){const _0x2baa27=_0x43980f;return this[_0x2baa27(0x36b)]['getCurrentUser']();}['updateMember'](_0x4cea6d,_0x36e1b4){const _0x14846d=_0x43980f;let _0x545bd0=this['_roomMembers']['get'](_0x4cea6d);_0x545bd0||(_0x545bd0=new Tt(),this[_0x14846d(0x235)][_0x14846d(0x1a5)](_0x4cea6d,_0x545bd0),this[_0x14846d(0x2cf)][_0x14846d(0x177)](_0x4cea6d)),_0x545bd0[_0x14846d(0x1d9)](_0x36e1b4);}[_0x43980f(0x38b)](_0x58ea9b,_0x20a7a5){const _0xa42b39=_0x43980f;let _0x1bdcd4=this[_0xa42b39(0x235)][_0xa42b39(0x31d)](_0x58ea9b);_0x1bdcd4&&_0x1bdcd4[_0xa42b39(0x38b)](_0x20a7a5);}['getRoom'](_0x1d8003){const _0x3f1fd5=_0x43980f;return this['_roomMembers'][_0x3f1fd5(0x31d)](_0x1d8003);}[_0x43980f(0x2d2)](_0x4f60b2,_0x3871d0){const _0x2b2e10=_0x43980f;let _0x47c4bd=this[_0x2b2e10(0x235)][_0x2b2e10(0x31d)](_0x4f60b2);if(_0x47c4bd)return _0x47c4bd['getMember'](_0x3871d0);}['_removeRoom'](_0x5b5d3a){const _0x3777e5=_0x43980f;let _0x3baea3=this['_roomMembers'][_0x3777e5(0x31d)](_0x5b5d3a);_0x3baea3&&(_0x3baea3[_0x3777e5(0x215)](),this[_0x3777e5(0x235)][_0x3777e5(0x22f)](_0x5b5d3a));}[_0x43980f(0x215)](){const _0x47b0fe=_0x43980f;this[_0x47b0fe(0x235)]['forEach'](_0x16ba2e=>_0x16ba2e[_0x47b0fe(0x215)]()),this[_0x47b0fe(0x235)]['clear'](),this['_roomCreated$'][_0x47b0fe(0x196)]();}};B=z([R(0x0,_0x5f47c6),R(0x1,_0x1c7850(_0x3289ad))],B);var Tt=class extends _0x584d56{constructor(..._0xa8302f){const _0x20e9d9=_0x43980f;super(..._0xa8302f),I(this,'_members',new Map()),I(this,_0x20e9d9(0x342),new _0x1eef50(this[_0x20e9d9(0x2ff)])),I(this,'members$',this[_0x20e9d9(0x342)][_0x20e9d9(0x1f4)]());}[_0x43980f(0x215)](){const _0x220dfd=_0x43980f;this[_0x220dfd(0x2ff)][_0x220dfd(0x359)](),this['_members$'][_0x220dfd(0x196)]();}[_0x43980f(0x1d9)](_0x49c1b1){const _0x34a697=_0x43980f;this[_0x34a697(0x2ff)][_0x34a697(0x1a5)](_0x49c1b1[_0x34a697(0x3b9)],_0x49c1b1),this['_emitMembers']();}[_0x43980f(0x38b)](_0x6b9903){const _0x14bf17=_0x43980f;this['_members'][_0x14bf17(0x22f)](_0x6b9903),this[_0x14bf17(0x398)]();}[_0x43980f(0x2d2)](_0x1f9842){const _0x1d4d76=_0x43980f;return this['_members'][_0x1d4d76(0x31d)](_0x1f9842);}[_0x43980f(0x2a8)](){const _0x4b66c1=_0x43980f;return Array[_0x4b66c1(0x2fe)](this[_0x4b66c1(0x2ff)][_0x4b66c1(0x356)]());}[_0x43980f(0x398)](){const _0x15e9aa=_0x43980f;this[_0x15e9aa(0x342)][_0x15e9aa(0x177)](this['_members']);}};let Et=function(_0x318f39){const _0x24faef=_0x43980f;return _0x318f39[_0x318f39['IDLE']=0x0]=_0x24faef(0x14b),_0x318f39[_0x318f39[_0x24faef(0x258)]=0x1]='JOINING',_0x318f39[_0x318f39[_0x24faef(0x2b0)]=0x2]=_0x24faef(0x2b0),_0x318f39[_0x318f39[_0x24faef(0x1d5)]=0x3]=_0x24faef(0x1d5),_0x318f39;}({});const Dt={[_0x4348e9['FAIL']]:_0x43980f(0x3b2),[_0x4348e9[_0x43980f(0x2c6)]]:_0x43980f(0x2a6),[_0x4348e9[_0x43980f(0x37a)]]:_0x43980f(0x14f),[_0x4348e9[_0x43980f(0x261)]]:_0x43980f(0x23e),[_0x4348e9[_0x43980f(0x205)]]:_0x43980f(0x328)};let Ot=class extends _0x1a88c8{get[_0x43980f(0x24f)](){const _0xfd5ffa=_0x43980f;return this['_sessionStatus$'][_0xfd5ffa(0x254)]();}constructor(_0x22d9c9,_0x29ce50,_0x2e8ac3,_0x13084f,_0xa9f094,_0x388011,_0x2117a9,_0x29cb29){const _0x48feaa=_0x43980f;super(),this[_0x48feaa(0x150)]=_0x22d9c9,this[_0x48feaa(0x2ed)]=_0x2e8ac3,this[_0x48feaa(0x18a)]=_0x13084f,this['_memberService']=_0xa9f094,this[_0x48feaa(0x269)]=_0x388011,this[_0x48feaa(0x300)]=_0x2117a9,this[_0x48feaa(0x1d1)]=_0x29cb29,I(this,_0x48feaa(0x28a),new _0x1eef50(0x0)),I(this,_0x48feaa(0x332),this[_0x48feaa(0x28a)]['asObservable']()),I(this,'_event$',new _0x3c8873()),I(this,'event$',this[_0x48feaa(0x3a6)][_0x48feaa(0x1f4)]()),I(this,_0x48feaa(0x250),void 0x0),I(this,_0x48feaa(0x180),void 0x0),I(this,'_collaborationTimeoutTimer',void 0x0),I(this,_0x48feaa(0x37c),!0x1),I(this,_0x48feaa(0x29f),null),this[_0x48feaa(0x37c)]=!!this[_0x48feaa(0x1d1)],_0x29ce50[_0x48feaa(0x2dc)](_0x4258f2(this[_0x48feaa(0x1e5)]))['subscribe'](_0x3277d2=>{const _0x4daf42=_0x48feaa;if(_0x3277d2!==void 0x0){if(this['_socket']=_0x3277d2,_0x3277d2)this[_0x4daf42(0x292)](_0x3277d2),this[_0x4daf42(0x180)]=_0x3277d2[_0x4daf42(0x367)][_0x4daf42(0x374)](_0x19393f=>{const _0x4175b7=_0x4daf42;_0x19393f[_0x4175b7(0x1b8)]===this[_0x4175b7(0x150)]&&this[_0x4175b7(0x20b)](_0x19393f);});else{var _0x4714e0;this[_0x4daf42(0x2f2)](),this[_0x4daf42(0x28a)]['next'](0x2),(_0x4714e0=this[_0x4daf42(0x180)])==null||_0x4714e0['unsubscribe'](),this[_0x4daf42(0x180)]=null;}}});}[_0x43980f(0x15a)](){const _0x4df1c9=_0x43980f;var _0x189d23,_0x569b1c;return(_0x189d23=(_0x569b1c=this[_0x4df1c9(0x250)])==null?void 0x0:_0x569b1c[_0x4df1c9(0x3b9)])==null?null:_0x189d23;}['dispose'](){const _0x280244=_0x43980f;super[_0x280244(0x215)](),this[_0x280244(0x2a4)](),this[_0x280244(0x1e5)][_0x280244(0x177)](),this[_0x280244(0x1e5)][_0x280244(0x196)]();}[_0x43980f(0x2a4)](){const _0x2057e4=_0x43980f;var _0x26f414,_0x490138;this[_0x2057e4(0x2f2)](),(_0x26f414=this[_0x2057e4(0x250)])==null||_0x26f414[_0x2057e4(0x3c6)]({'cmd':_0x184423[_0x2057e4(0x391)],'data':{'roomID':this[_0x2057e4(0x150)]}}),(_0x490138=this['_socket'])==null||_0x490138[_0x2057e4(0x2a4)](),this[_0x2057e4(0x3a6)][_0x2057e4(0x196)](),this[_0x2057e4(0x28a)][_0x2057e4(0x196)]();}[_0x43980f(0x20b)](_0x1d57bb){const _0x184342=_0x43980f;_0x1d57bb[_0x184342(0x358)]===_0x184423[_0x184342(0x3b8)]?this[_0x184342(0x1d4)](_0x1d57bb):_0x1d57bb[_0x184342(0x358)]===_0x184423['RECV']&&this[_0x184342(0x316)](_0x1d57bb);}[_0x43980f(0x292)](_0x3a3fe8){const _0x5859be=_0x43980f;this[_0x5859be(0x28a)][_0x5859be(0x177)](0x1),_0x3a3fe8[_0x5859be(0x3c6)]({'cmd':_0x184423['JOIN'],'routeKey':this[_0x5859be(0x150)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x43980f(0x1d4)](_0x5d0e3c){const _0x453446=_0x43980f;var _0x3654b4;if(_0x5d0e3c[_0x453446(0x1f8)]in Dt){this[_0x453446(0x300)]['emitEvent']({'id':'JOIN_ROOM_FAILED','data':Dt[_0x5d0e3c[_0x453446(0x1f8)]]}),this[_0x453446(0x28a)][_0x453446(0x177)](0x2);return;}this['_sessionStatus$'][_0x453446(0x177)](0x3);let _0x229ead=(_0x3654b4=_0x5d0e3c[_0x453446(0x324)][_0x453446(0x28e)][this[_0x453446(0x150)]])==null?void 0x0:_0x3654b4[_0x453446(0x377)];_0x229ead&&_0x229ead[_0x453446(0x256)](_0xc5bdbd=>this[_0x453446(0x2c4)][_0x453446(0x1d9)](this[_0x453446(0x150)],_0xc5bdbd));}['_onRecvEvent'](_0x242a78){const _0x43a2c6=_0x43980f;try{let _0x1bf722=_0x242a78[_0x43a2c6(0x324)];switch(_0x1bf722[_0x43a2c6(0x201)]){case _0x3cfbbf[_0x43a2c6(0x230)]:this[_0x43a2c6(0x363)](_0x1bf722),this[_0x43a2c6(0x3a6)][_0x43a2c6(0x177)](_0x1bf722);break;case _0x3cfbbf[_0x43a2c6(0x388)]:this['_onUserLeave'](_0x1bf722),this[_0x43a2c6(0x3a6)][_0x43a2c6(0x177)](_0x1bf722);break;case _0x3cfbbf[_0x43a2c6(0x3a8)]:case _0x3cfbbf['CHANGESET_SHOULD_RETRY']:this[_0x43a2c6(0x380)](),this['_clearCollaborationTimeoutTimer'](),this[_0x43a2c6(0x3a6)]['next'](_0x1bf722);break;case _0x3cfbbf[_0x43a2c6(0x2a0)]:this[_0x43a2c6(0x2ed)][_0x43a2c6(0x21f)](_0x43a2c6(0x1c9)+JSON[_0x43a2c6(0x369)](_0x1bf722)),this['_event$'][_0x43a2c6(0x177)](_0x1bf722);break;case _0x3cfbbf[_0x43a2c6(0x39d)]:this[_0x43a2c6(0x269)][_0x43a2c6(0x198)](_0x1bf722[_0x43a2c6(0x324)]),this[_0x43a2c6(0x3a6)][_0x43a2c6(0x177)](_0x1bf722);break;default:this[_0x43a2c6(0x3a6)][_0x43a2c6(0x177)](_0x1bf722);}}catch(_0x5229e7){this[_0x43a2c6(0x2ed)][_0x43a2c6(0x21f)](_0x5229e7,_0x242a78);}}[_0x43980f(0x363)](_0x379463){const _0x5b2234=_0x43980f;this[_0x5b2234(0x2c4)]['updateMember'](this[_0x5b2234(0x150)],_0x379463['data']);}[_0x43980f(0x344)](_0x1d15e2){const _0x37a053=_0x43980f;this['_memberService'][_0x37a053(0x38b)](this[_0x37a053(0x150)],_0x1d15e2[_0x37a053(0x324)][_0x37a053(0x3b9)]);}async['send'](_0x57d86c,_0x53cc14){const _0x4782cd=_0x43980f;if(this[_0x4782cd(0x24f)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x57d86c[_0x4782cd(0x201)]===_0x3cfbbf[_0x4782cd(0x3b1)]&&(this[_0x4782cd(0x2c5)](),this['_startTelemetryCollaborationNewChangeset'](_0x57d86c)),this[_0x4782cd(0x250)][_0x4782cd(0x3c6)]({'cmd':_0x184423[_0x4782cd(0x16a)],'routeKey':_0x53cc14,'routeType':'','data':_0x57d86c});}catch(_0x30ed5d){this[_0x4782cd(0x2ed)][_0x4782cd(0x21f)](_0x30ed5d);}}['_scheduleCollaborationTimeoutTimer'](){const _0x494120=_0x43980f;var _0x364cd7;this[_0x494120(0x26e)]=setTimeout(()=>{const _0x4692e0=_0x494120;this[_0x4692e0(0x26e)]=null,this[_0x4692e0(0x300)][_0x4692e0(0x3b5)]({'id':_0x4692e0(0x25a)});},(_0x364cd7=this[_0x494120(0x18a)][_0x494120(0x184)]('HEARTBEAT_TIMEOUT'))==null?mt:_0x364cd7);}[_0x43980f(0x262)](){const _0x1ff8fa=_0x43980f;this[_0x1ff8fa(0x26e)]&&(clearTimeout(this[_0x1ff8fa(0x26e)]),this[_0x1ff8fa(0x26e)]=null);}[_0x43980f(0x2d4)](_0x278eeb){const _0x4dea52=_0x43980f;if(!this['_shouldReportTelemetry'])return;let {data:_0x1ebfc6}=_0x278eeb,{unitID:_0x148c25,changeset:_0x582385}=_0x1ebfc6,{mutations:_0x22c850,type:_0x36979f}=_0x582385;this[_0x4dea52(0x29f)]={'unitId':_0x148c25,'type':_0x36979f,'startTime':performance[_0x4dea52(0x25f)](),'stopTime':0x0,'duration':0x0,'size':bt(_0x22c850)};}[_0x43980f(0x380)](){const _0x3d4e26=_0x43980f;if(this[_0x3d4e26(0x37c)]){if(!this[_0x3d4e26(0x29f)]){this['_logService']['error']('[CollaborationSession]',_0x3d4e26(0x2b3));return;}this[_0x3d4e26(0x29f)]['stopTime']=performance[_0x3d4e26(0x25f)](),this[_0x3d4e26(0x29f)][_0x3d4e26(0x2ea)]=this[_0x3d4e26(0x29f)][_0x3d4e26(0x2ec)]-this[_0x3d4e26(0x29f)][_0x3d4e26(0x2e7)],this['_telemetryService'][_0x3d4e26(0x18f)](_0x3d4e26(0x322),this[_0x3d4e26(0x29f)]),this['_telemetryInfo']=null;}}[_0x43980f(0x2f2)](){const _0x499c46=_0x43980f;this[_0x499c46(0x29f)]=null;}};Ot=z([R(0x2,_0x4a2db6),R(0x3,_0x581647),R(0x4,_0x1c7850(B)),R(0x5,_0x1c7850(wt)),R(0x6,_0x1c7850(L)),R(0x7,_0x4d2f7f(_0x23d53c))],Ot);const V=_0x45c4cd(_0x43980f(0x287));function kt(_0x30de74){return'unit-cache-'+_0x30de74;}function At(_0x2d9e23){const _0x347d85=_0x43980f;let {unitID:_0x4cdf22,mutations:_0x599b85}=_0x2d9e23;return{'unitId':_0x4cdf22,'subUnitId':_0x599b85[_0x347d85(0x334)]>0x0?_0x599b85[0x0]['params'][_0x347d85(0x2e0)]:null};}let H=class{constructor(_0x14937a,_0x2db3a3,_0x4ba623){const _0x1a8fde=_0x43980f;this[_0x1a8fde(0x308)]=_0x14937a,this[_0x1a8fde(0x27f)]=_0x2db3a3,this[_0x1a8fde(0x1da)]=_0x4ba623;}[_0x43980f(0x3c1)](_0x386e95){const _0x25241f=_0x43980f;var _0x3800b9,_0x579453;let _0x54d2e3=this[_0x25241f(0x308)][_0x25241f(0x31d)](_0x412b3c),{unitId:_0x86f03,subUnitId:_0x4800db}=At(_0x386e95),_0xe77f9f=_0x54d2e3==null?void 0x0:_0x54d2e3[_0x25241f(0x188)](_0x86f03)[_0x25241f(0x36f)](),_0x51036e=(_0x3800b9=this[_0x25241f(0x1da)][_0x25241f(0x39c)](_0x86f03))==null||(_0x3800b9=_0x3800b9[_0x25241f(0x35e)]())==null?void 0x0:_0x3800b9['getSheetId']();if(_0xe77f9f['length']===0x0||!_0x86f03||!_0x4800db)return;let _0x5b07c7=[{'id':_0x23d504['id'],'params':{'unitId':_0x86f03,'subUnitId':_0x51036e,'selections':_0x47c35f[_0x25241f(0x2e1)](_0xe77f9f)}}],_0x3a9f88=this[_0x25241f(0x27f)][_0x25241f(0x278)](_0x386e95,_0x5b07c7);if(!_0x993155(_0x3a9f88))throw _0x3a9f88[_0x25241f(0x21f)];let _0x2f3111=(_0x579453=_0x3a9f88[_0x25241f(0x192)][0x0])==null||(_0x579453=_0x579453[_0x25241f(0x310)])==null?void 0x0:_0x579453['selections'];if(Array[_0x25241f(0x197)](_0x2f3111)&&_0x2f3111[_0x25241f(0x334)]){if(_0x2f3111[_0x25241f(0x334)]===_0x5b07c7[0x0][_0x25241f(0x310)][_0x25241f(0x26b)]['length']&&_0x2f3111['every']((_0x1845f0,_0x58e8d8)=>_0x1a819f[_0x25241f(0x1c0)](_0x1845f0[_0x25241f(0x2af)],_0x5b07c7[0x0][_0x25241f(0x310)]['selections'][_0x58e8d8][_0x25241f(0x2af)])))return;this[_0x25241f(0x308)]['get'](_0x2e910a)['executeCommand'](_0x23d504['id'],{'unitId':_0x86f03,'subUnitId':_0x51036e,'selections':_0x2f3111});}}};H=z([R(0x0,_0x1c7850(_0xd7c234)),R(0x1,_0x41cd1f),R(0x2,_0x5f47c6)],H);const jt=_0x45c4cd(_0x43980f(0x314));let Mt=function(_0x3e9f16){const _0x12cf54=_0x43980f;return _0x3e9f16[_0x3e9f16['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x12cf54(0x16d),_0x3e9f16[_0x3e9f16[_0x12cf54(0x2f3)]=0x1]=_0x12cf54(0x2f3),_0x3e9f16;}({});const U=_0x43980f(0x1e6),Nt={};function Pt(_0x5ab121){const _0x20cb18=_0x43980f;var _0x39a899;return!!((_0x39a899=_0x5ab121[_0x20cb18(0x310)])!=null&&_0x39a899['__splitChunk__']);}const Ft=new Set([_0x56b445['id']]);function It(_0xc67f16,_0x1e0dbd,_0x1486a6,_0x3eded3,_0x14e174){const _0x1a890f=_0x43980f;var _0x1879e3,_0x4efa60,_0x5256e8,_0x2cdcdb;let _0x521915=[];for(let _0x14189f of _0xc67f16){if(Ft[_0x1a890f(0x30e)](_0x14189f['id'])){if(_0x521915[_0x1a890f(0x334)]>0x0)break;_0x521915[_0x1a890f(0x242)](_0x14189f);break;}if(Pt(_0x14189f)){if(_0x521915[_0x1a890f(0x334)]>0x0)break;_0x521915[_0x1a890f(0x242)](_0x14189f);break;}_0x521915[_0x1a890f(0x242)](_0x14189f);}let _0x3d2258=(_0x1879e3=(_0x4efa60=_0x14e174[_0x1a890f(0x2e4)]())==null?void 0x0:_0x4efa60[_0x1a890f(0x2b8)])==null?_0x1a890f(0x338):_0x1879e3,_0x3b806c=(_0x5256e8=(_0x2cdcdb=_0x14e174[_0x1a890f(0x2e4)]())==null?void 0x0:_0x2cdcdb[_0x1a890f(0x3b9)])==null?_0x1a890f(0x338):_0x5256e8;return{'changeset':{'unitID':_0x1e0dbd,'type':_0x292d42(_0x1486a6[_0x1a890f(0x1e4)](_0x1e0dbd)),'baseRev':_0x3eded3[_0x1a890f(0x2a1)](_0x1e0dbd),'revision':0x0,'userID':_0x3d2258,'memberID':_0x3b806c,'mutations':_0x521915},'pendingMutations':_0xc67f16[_0x1a890f(0x17f)](_0x521915[_0x1a890f(0x334)])};}function Lt(_0x1b687e,_0x539893,_0x4dd98d,_0x287bd4,_0x1de9ef){const _0x5aca1b=_0x43980f;var _0x34427a,_0xebd551,_0x1aec22,_0x1f3445;let _0x222e29=_0x1b687e[_0x5aca1b(0x23a)]((_0x4be86e,_0x370cc7)=>{const _0x2f66a5=_0x5aca1b;let _0x352e58=_0x4be86e[_0x4be86e[_0x2f66a5(0x334)]-0x1],{id:_0x3ea5d8}=_0x352e58==null?{}:_0x352e58,{id:_0x24c57d,type:_0x4176da}=_0x370cc7,_0x71b001=_0x370cc7[_0x2f66a5(0x310)];if(_0x3ea5d8&&_0x3ea5d8!==_0x24c57d)throw Error(_0x2f66a5(0x295)+_0x3ea5d8+_0x2f66a5(0x37f)+_0x24c57d+'.');if(!_0x352e58)return[{'id':_0x24c57d,'type':_0x4176da,'params':{'unitId':_0x71b001[_0x2f66a5(0x175)],'textRanges':_0x71b001['textRanges'],'actions':_0x71b001['actions']}}];let _0x3c54e2=_0x352e58[_0x2f66a5(0x310)];return Rt(_0x3c54e2[_0x2f66a5(0x1ea)],_0x71b001[_0x2f66a5(0x1ea)])?[..._0x4be86e[_0x2f66a5(0x17f)](0x0,-0x1),{..._0x352e58,'id':_0x24c57d,'type':_0x4176da,'params':{'unitId':_0x71b001['unitId'],'textRanges':_0x71b001[_0x2f66a5(0x277)],'actions':_0x362b24[_0x2f66a5(0x286)](_0x3c54e2[_0x2f66a5(0x1ea)],_0x71b001[_0x2f66a5(0x1ea)])}}]:[..._0x4be86e,{'id':_0x24c57d,'type':_0x4176da,'params':{'unitId':_0x71b001[_0x2f66a5(0x175)],'textRanges':_0x71b001[_0x2f66a5(0x277)],'actions':_0x71b001[_0x2f66a5(0x1ea)]}}];},[]),_0x582267=(_0x34427a=(_0xebd551=_0x1de9ef[_0x5aca1b(0x2e4)]())==null?void 0x0:_0xebd551[_0x5aca1b(0x2b8)])==null?_0x5aca1b(0x338):_0x34427a,_0x268a27=(_0x1aec22=(_0x1f3445=_0x1de9ef[_0x5aca1b(0x2e4)]())==null?void 0x0:_0x1f3445[_0x5aca1b(0x3b9)])==null?_0x5aca1b(0x338):_0x1aec22;return{'changeset':{'unitID':_0x539893,'type':_0x292d42(_0x4dd98d[_0x5aca1b(0x1e4)](_0x539893)),'baseRev':_0x287bd4['getCurrentRevOfUnit'](_0x539893),'revision':0x0,'userID':_0x582267,'memberID':_0x268a27,'mutations':_0x222e29},'pendingMutations':_0x1b687e[_0x5aca1b(0x17f)](_0x1b687e[_0x5aca1b(0x334)])};}function Rt(_0x251288,_0x2a5088){return!(zt(_0x251288)&&Bt(_0x2a5088)||Bt(_0x251288)&&zt(_0x2a5088));}function zt(_0x647d1d){const _0x2e0ecc=_0x43980f;return Vt(_0x647d1d)[_0x2e0ecc(0x1d0)](_0x315a55=>Ht(_0x315a55)&&_0x315a55['et']===_0x2e0ecc(0x1c8));}function Bt(_0x250f65){const _0x37e5f1=_0x43980f;return Vt(_0x250f65)['some'](_0x5a1833=>Array[_0x37e5f1(0x197)](_0x5a1833)||typeof _0x5a1833=='string'||typeof _0x5a1833==_0x37e5f1(0x2b9));}function Vt(_0x39db83){const _0x4c060a=_0x43980f;if(!Array[_0x4c060a(0x197)](_0x39db83))return[];let _0x2b77b0=_0x39db83[_0x4c060a(0x347)](_0x4c060a(0x207))?_0x39db83:_0x39db83[_0x4c060a(0x238)](_0xe4a9b5=>Array['isArray'](_0xe4a9b5)&&_0xe4a9b5[_0x4c060a(0x347)]('body'));if(!Array[_0x4c060a(0x197)](_0x2b77b0))return[];let _0x1f3e1f=_0x2b77b0['indexOf'](_0x4c060a(0x207));return _0x1f3e1f===-0x1?[]:_0x2b77b0[_0x4c060a(0x17f)](_0x1f3e1f+0x1);}function Ht(_0xc0bef5){const _0x4a2435=_0x43980f;return typeof _0xc0bef5==_0x4a2435(0x2c0)&&!!_0xc0bef5&&!Array[_0x4a2435(0x197)](_0xc0bef5);}function Ut(_0x2795f9,_0x4451a){const _0x493395=_0x43980f;let _0x57323e=new _0x2b96f9(0x1);return setTimeout(()=>_0x57323e[_0x493395(0x177)](_0x4451a),_0x2795f9),_0x57323e[_0x493395(0x1f4)]()['pipe'](_0x4dc0d7(0x1));}var Wt,Gt,Kt;let qt=function(_0x457d47){const _0x3885ed=_0x43980f;return _0x457d47['NOT_COLLAB']=_0x3885ed(0x319),_0x457d47[_0x3885ed(0x336)]='synced',_0x457d47[_0x3885ed(0x1be)]=_0x3885ed(0x346),_0x457d47[_0x3885ed(0x16f)]=_0x3885ed(0x1f5),_0x457d47[_0x3885ed(0x28f)]=_0x3885ed(0x326),_0x457d47[_0x3885ed(0x385)]='fetch_missing',_0x457d47[_0x3885ed(0x3bb)]=_0x3885ed(0x1bb),_0x457d47[_0x3885ed(0x2b0)]='offline',_0x457d47;}({});const Jt=0x4e20,Yt=0x2bf20;var W=class{constructor(_0x1ed3ae,_0x295783,_0x9a7c24,_0x31731b,_0x34558f,_0x3d4388,_0x350ae3,_0xee8cfa,_0x17ba77){const _0x2a1434=_0x43980f;this[_0x2a1434(0x34a)]=_0x1ed3ae,this[_0x2a1434(0x227)]=_0x295783,this['_handler']=_0x34558f,this[_0x2a1434(0x35d)]=_0x3d4388,this[_0x2a1434(0x298)]=_0x350ae3,this[_0x2a1434(0x191)]=_0xee8cfa,this['_localCacheService']=_0x17ba77,I(this,_0x2a1434(0x304),null),I(this,_0x2a1434(0x386),[]),this[_0x2a1434(0x304)]=_0x9a7c24,this[_0x2a1434(0x386)]=_0x31731b;}[_0x43980f(0x34e)](_0x3cdc9e){const _0x9af1c7=_0x43980f;let _0x3ffc41=this['_revisionService'][_0x9af1c7(0x2a1)](this[_0x9af1c7(0x34a)]);return _0x3cdc9e[_0x9af1c7(0x29e)]>_0x3ffc41+0x1?(this[_0x9af1c7(0x387)][_0x9af1c7(0x1b2)]({'from':_0x3ffc41,'to':_0x3cdc9e[_0x9af1c7(0x29e)]-0x1}),!0x0):!0x1;}[_0x43980f(0x2a3)](_0x3ae815){const _0x16d00c=_0x43980f;this[_0x16d00c(0x298)]['transformUndoRedo'](this[_0x16d00c(0x34a)],_0x3ae815);}[_0x43980f(0x19d)](_0xe74352){const _0x182b04=_0x43980f;var _0xb79b01,_0x3eb031;(_0xb79b01=(_0x3eb031=this['_handler'])[_0x182b04(0x3c4)])==null||_0xb79b01[_0x182b04(0x19f)](_0x3eb031,_0xe74352);}[_0x43980f(0x2e2)](_0x457aaa){const _0xbb257d=_0x43980f;var _0x4da801,_0x2ed455;return(_0x4da801=(_0x2ed455=this[_0xbb257d(0x387)])['onTransformIME'])==null?void 0x0:_0x4da801[_0xbb257d(0x19f)](_0x2ed455,_0x457aaa);}[_0x43980f(0x3af)](_0xff8f18){var _0x24446a,_0x305235;return(_0x24446a=(_0x305235=this['_handler'])['onTransformState'])==null?void 0x0:_0x24446a['call'](_0x305235,_0xff8f18);}[_0x43980f(0x2cd)](_0x31e6f6){const _0x5b188c=_0x43980f;var _0x3a4a0b,_0x5378f5,_0x2a2549;return(_0x3a4a0b=(_0x5378f5=(_0x2a2549=this[_0x5b188c(0x387)])[_0x5b188c(0x1ca)])==null?void 0x0:_0x5378f5[_0x5b188c(0x19f)](_0x2a2549,_0x31e6f6))==null?_0x31e6f6:_0x3a4a0b;}['_transformRemoteChangesetByStateCache'](_0x38605a){const _0x1f40cf=_0x43980f;var _0x2ba895,_0x151bf0,_0x2498fa;return(_0x2ba895=(_0x151bf0=(_0x2498fa=this[_0x1f40cf(0x387)])[_0x1f40cf(0x27d)])==null?void 0x0:_0x151bf0[_0x1f40cf(0x19f)](_0x2498fa,_0x38605a))==null?_0x38605a:_0x2ba895;}[_0x43980f(0x270)](_0x105dcd){const _0x6809a=_0x43980f;if(this['type']===_0x69083d['UNIVER_DOC']){let {unitID:_0x2f5a64,mutations:_0x3b6312,memberID:_0x282eaa}=_0x105dcd,_0x17eeaa=_0x3b6312[_0x6809a(0x334)]>0x0?_0x3b6312[0x0]['params']['textRanges']:[];if(Array[_0x6809a(0x197)](_0x17eeaa)&&_0x17eeaa[_0x6809a(0x334)]>0x0){var _0x296f16,_0x2ec20a;(_0x296f16=(_0x2ec20a=this[_0x6809a(0x387)])['onSyncEditingCollabCursor'])==null||_0x296f16[_0x6809a(0x19f)](_0x2ec20a,{'unitID':_0x2f5a64,'memberID':_0x282eaa,'textRanges':_0x17eeaa});}}}[_0x43980f(0x22b)](){const _0x16cccb=_0x43980f;var _0x2b496c;(_0x2b496c=this[_0x16cccb(0x1e3)])==null||_0x2b496c['updateOfflineData'](this[_0x16cccb(0x34a)],this[_0x16cccb(0x227)],this[_0x16cccb(0x304)],this[_0x16cccb(0x386)]);}[_0x43980f(0x315)](){const _0x48636f=_0x43980f;return this[_0x48636f(0x191)][_0x48636f(0x2a1)](this['unitID']);}[_0x43980f(0x203)](){const _0x1e9745=_0x43980f;this[_0x1e9745(0x191)]['incrementRevOfUnit'](this[_0x1e9745(0x34a)]);}[_0x43980f(0x2df)](_0x4c0628){const _0x5d2543=_0x43980f;let _0xcc61a8=this['_transformRemoteChangesetByIMECache'](_0x4c0628);_0xcc61a8=this[_0x5d2543(0x259)](_0xcc61a8);let _0x7f1f96=_0x251144(_0xcc61a8['mutations'],this[_0x5d2543(0x35d)],{'fromCollab':!0x0});if(!_0x7f1f96[_0x5d2543(0x173)]){var _0x7a639e;throw _0x7f1f96[_0x5d2543(0x21f)]instanceof Error?_0x7f1f96[_0x5d2543(0x21f)]:Error((_0x7a639e=_0x7f1f96['error'])==null?_0x5d2543(0x1a6):_0x7a639e);}this['_transformIMECache'](_0xcc61a8),this[_0x5d2543(0x3af)](_0xcc61a8),this[_0x5d2543(0x2a3)](_0x4c0628),this[_0x5d2543(0x19d)](_0xcc61a8),this[_0x5d2543(0x270)](_0xcc61a8),this[_0x5d2543(0x203)]();}};let G=class extends W{constructor(_0x31f1ba,_0x5cf66a,_0x509140,_0xf0305d,_0x908109,_0x14c4b5,_0x18e457,_0x42ecaf,_0x421915,_0x2af8fa){const _0x552ece=_0x43980f;super(_0x31f1ba,_0x5cf66a,null,[],_0x509140,_0x18e457,_0x14c4b5,_0xf0305d,_0x2af8fa),this['_injector']=_0x908109,this[_0x552ece(0x2ed)]=_0x42ecaf,this[_0x552ece(0x27f)]=_0x421915,this[_0x552ece(0x1ed)]=_0x2af8fa,I(this,_0x552ece(0x36a),_0x552ece(0x163));}[_0x43980f(0x33b)](_0x4c0adf){const _0x4910e1=_0x43980f;let _0x552e73=this[_0x4910e1(0x308)][_0x4910e1(0x25c)](K,this[_0x4910e1(0x34a)],this[_0x4910e1(0x227)],[_0x4c0adf],this[_0x4910e1(0x387)]);return _0x552e73[_0x4910e1(0x3bf)](),_0x552e73['_updateLocalCache'](),_0x552e73;}[_0x43980f(0x21e)](_0x2fc778){const _0xad00e1=_0x43980f;if(this[_0xad00e1(0x34e)](_0x2fc778))return this['_injector'][_0xad00e1(0x25c)](Z,this[_0xad00e1(0x34a)],this[_0xad00e1(0x227)],null,[],null,[_0x2fc778],this[_0xad00e1(0x387)]);try{let _0x572aa1=this[_0xad00e1(0x27f)][_0xad00e1(0x278)](_0x2fc778,[_0x135d17]);if(_0x993155(_0x572aa1)){let {c1Prime:_0x162a16}=_0x572aa1;return this[_0xad00e1(0x2df)](_0x162a16),this;}throw _0x572aa1[_0xad00e1(0x21f)];}catch(_0x271cec){return this['_logService'][_0xad00e1(0x21f)](_0x271cec),this['_onConflict'](!0x1);}}[_0x43980f(0x301)](_0x592564){const _0x55565c=_0x43980f;return this['_injector'][_0x55565c(0x25c)](Y,this[_0x55565c(0x34a)],this[_0x55565c(0x227)],null,[],this[_0x55565c(0x387)],_0x592564);}['onRemoteAck'](_0x430a53){const _0x209ee2=_0x43980f;if(_0x430a53[_0x209ee2(0x29e)]<=this[_0x209ee2(0x315)]())return this;throw Error(_0x209ee2(0x289));}[_0x43980f(0x36c)](){const _0x12608c=_0x43980f;throw Error(_0x12608c(0x2eb));}[_0x43980f(0x19b)](){return this;}[_0x43980f(0x1f0)](){const _0x13affd=_0x43980f;return this[_0x13affd(0x308)][_0x13affd(0x25c)](X,this[_0x13affd(0x34a)],this[_0x13affd(0x227)],null,[],this['_handler']);}[_0x43980f(0x306)](){return this;}[_0x43980f(0x1bf)](){const _0x14fb58=_0x43980f;throw Error(_0x14fb58(0x309));}[_0x43980f(0x28d)](){const _0x35a2f8=_0x43980f;let _0x5de56c=this[_0x35a2f8(0x191)][_0x35a2f8(0x2a1)](this[_0x35a2f8(0x34a)]);return this[_0x35a2f8(0x387)][_0x35a2f8(0x1b2)]({'from':_0x5de56c,'to':0x0}),this[_0x35a2f8(0x308)][_0x35a2f8(0x25c)](Z,this[_0x35a2f8(0x34a)],this[_0x35a2f8(0x227)],null,[],null,[],this[_0x35a2f8(0x387)]);}};G=z([R(0x3,_0x1c7850(_0x40cc5a)),R(0x4,_0x1c7850(_0xd7c234)),R(0x5,_0x3a28c4),R(0x6,_0x2e910a),R(0x7,_0x4a2db6),R(0x8,_0x41cd1f),R(0x9,_0x4d2f7f(V))],G);let K=Wt=class extends W{constructor(_0x39826d,_0x5f7aff,_0xbe5dcb,_0x52d012,_0x5c21a2,_0x1acb55,_0x32b0af,_0x1285e6,_0x509b8d,_0x16e1d4,_0x2c0f93,_0x339f10,_0x1722ce,_0x367594){const _0x141189=_0x43980f;super(_0x39826d,_0x5f7aff,null,_0xbe5dcb,_0x52d012,_0x509b8d,_0x1722ce,_0x1acb55,_0x367594),this[_0x141189(0x308)]=_0x5c21a2,this['_memberService']=_0x32b0af,this[_0x141189(0x2ed)]=_0x1285e6,this[_0x141189(0x18a)]=_0x16e1d4,this['_transformService']=_0x2c0f93,this[_0x141189(0x372)]=_0x339f10,I(this,_0x141189(0x36a),_0x141189(0x346)),I(this,_0x141189(0x1ba),null),I(this,_0x141189(0x35b),null);}[_0x43980f(0x33b)](_0x4a86a0){const _0x382b3c=_0x43980f;return this[_0x382b3c(0x386)][_0x382b3c(0x242)](_0x4a86a0),this[_0x382b3c(0x22b)](),this;}['onRemoteChangeset'](_0x33653b){const _0x227abb=_0x43980f;if(this['_checkMissing'](_0x33653b))return this['_clearScheduledTask'](),this['_injector'][_0x227abb(0x25c)](Z,this[_0x227abb(0x34a)],this[_0x227abb(0x227)],null,this['_pendingMutations'],null,[_0x33653b],this[_0x227abb(0x387)]);try{let _0x1e950c=this[_0x227abb(0x27f)]['transformMutationsWithChangeset'](_0x33653b,this[_0x227abb(0x386)]);if(_0x993155(_0x1e950c)){let {c1Prime:_0x5df5ea,m2Prime:_0x442189}=_0x1e950c;this[_0x227abb(0x2df)](_0x5df5ea);let _0x2097f0=this[_0x227abb(0x308)]['createInstance'](Wt,this[_0x227abb(0x34a)],this[_0x227abb(0x227)],_0x442189,this[_0x227abb(0x387)]);this[_0x227abb(0x348)]();let _0x3e3565=new Date()['getTime'](),_0x4062c5=this[_0x227abb(0x1ba)]?Math[_0x227abb(0x21d)](this[_0x227abb(0x1ba)]-_0x3e3565,0x0):this[_0x227abb(0x202)]();return _0x2097f0[_0x227abb(0x3bf)](_0x4062c5),_0x2097f0;}throw _0x1e950c[_0x227abb(0x21f)];}catch(_0x5c6d61){return this[_0x227abb(0x2ed)][_0x227abb(0x21f)](_0x5c6d61),this[_0x227abb(0x301)](!0x1);}}[_0x43980f(0x1dd)](_0x49c59c){const _0x404297=_0x43980f;if(_0x49c59c[_0x404297(0x29e)]<=this[_0x404297(0x315)]())return this;throw Error(_0x404297(0x3a2));}[_0x43980f(0x36c)](){const _0x200f69=_0x43980f;throw Error(_0x200f69(0x243));}[_0x43980f(0x19b)](){return this;}[_0x43980f(0x1f0)](){const _0x1e7375=_0x43980f;return this[_0x1e7375(0x348)](),this[_0x1e7375(0x308)]['createInstance'](X,this[_0x1e7375(0x34a)],this[_0x1e7375(0x227)],null,this[_0x1e7375(0x386)],this[_0x1e7375(0x387)]);}['toggleOnline'](){return this;}[_0x43980f(0x3bf)](_0x21d426){const _0x56eec7=_0x43980f;let _0x38f3c0=_0x21d426==null?this[_0x56eec7(0x202)]():_0x21d426;this[_0x56eec7(0x1ba)]=new Date()[_0x56eec7(0x33f)]()+_0x38f3c0,this[_0x56eec7(0x35b)]=setTimeout(()=>{const _0x3c311c=_0x56eec7;this[_0x3c311c(0x348)]();let _0x23dfb1=null;switch(this[_0x3c311c(0x227)]){case _0x69083d['UNIVER_SHEET']:_0x23dfb1=It(this[_0x3c311c(0x386)],this[_0x3c311c(0x34a)],this[_0x3c311c(0x372)],this[_0x3c311c(0x191)],this[_0x3c311c(0x2c4)]);break;case _0x69083d[_0x3c311c(0x34d)]:_0x23dfb1=this[_0x3c311c(0x386)][_0x3c311c(0x234)](_0x1bf04d=>_0x1bf04d['id']===_0x5e19ba['id'])?Lt(this[_0x3c311c(0x386)],this[_0x3c311c(0x34a)],this[_0x3c311c(0x372)],this[_0x3c311c(0x191)],this[_0x3c311c(0x2c4)]):It(this[_0x3c311c(0x386)],this[_0x3c311c(0x34a)],this[_0x3c311c(0x372)],this[_0x3c311c(0x191)],this[_0x3c311c(0x2c4)]);break;default:throw Error(_0x3c311c(0x30d)+this[_0x3c311c(0x227)]+'\x20in\x20_schedule.');}let {changeset:_0x11a894,pendingMutations:_0x96e7b3}=_0x23dfb1;this[_0x3c311c(0x387)][_0x3c311c(0x266)](_0x11a894);let _0x2d501e=_0x96e7b3['length']?this[_0x3c311c(0x308)][_0x3c311c(0x25c)](J,this[_0x3c311c(0x34a)],this[_0x3c311c(0x227)],_0x11a894,_0x96e7b3,this[_0x3c311c(0x387)],void 0x0):this[_0x3c311c(0x308)][_0x3c311c(0x25c)](q,this[_0x3c311c(0x34a)],this[_0x3c311c(0x227)],_0x11a894,this[_0x3c311c(0x387)]);_0x2d501e[_0x3c311c(0x22b)](),this[_0x3c311c(0x387)]['onStateChange'](this,_0x2d501e);},_0x38f3c0);}[_0x43980f(0x202)](){const _0x2b0892=_0x43980f;var _0xca7a09;let _0x57aed0=this[_0x2b0892(0x18a)][_0x2b0892(0x184)](U);return(_0xca7a09=_0x57aed0==null?void 0x0:_0x57aed0[_0x2b0892(0x375)])==null?0x7d0:_0xca7a09;}[_0x43980f(0x1bf)](){const _0x1f2964=_0x43980f;throw Error(_0x1f2964(0x1d8));}['_clearScheduledTask'](){const _0x27109d=_0x43980f;this[_0x27109d(0x35b)]!=null&&(clearTimeout(this[_0x27109d(0x35b)]),this['_sendingTimer']=null);}['_onConflict'](_0x53e3c3){const _0x5394a8=_0x43980f;return this[_0x5394a8(0x348)](),this[_0x5394a8(0x308)]['createInstance'](Y,this[_0x5394a8(0x34a)],this[_0x5394a8(0x227)],null,this['_pendingMutations'],this['_handler'],_0x53e3c3);}};K=Wt=z([R(0x4,_0x1c7850(_0xd7c234)),R(0x5,_0x1c7850(_0x40cc5a)),R(0x6,_0x1c7850(B)),R(0x7,_0x4a2db6),R(0x8,_0x2e910a),R(0x9,_0x581647),R(0xa,_0x41cd1f),R(0xb,_0x5f47c6),R(0xc,_0x3a28c4),R(0xd,_0x4d2f7f(V))],K);let q=Gt=class extends W{constructor(_0x5f43ff,_0x10ea40,_0x437838,_0x1afaa8,_0x1b2c28,_0x52e896,_0x2f2149,_0x44d92a,_0xbe0b9b,_0x405b9a,_0xa1f025){const _0x1c2683=_0x43980f;super(_0x5f43ff,_0x10ea40,_0x437838,[],_0x1afaa8,_0x2f2149,_0x405b9a,_0x52e896,_0xa1f025),this[_0x1c2683(0x308)]=_0x1b2c28,this[_0x1c2683(0x2ed)]=_0x44d92a,this[_0x1c2683(0x27f)]=_0xbe0b9b,I(this,_0x1c2683(0x36a),'awaiting'),I(this,'_resendTimeout',0x0),I(this,'_maxTotalRetryTimeout',0x0),I(this,_0x1c2683(0x35a),void 0x0),I(this,_0x1c2683(0x206),void 0x0);}[_0x43980f(0x33b)](_0x5c9a1d){const _0x5d385e=_0x43980f;this[_0x5d385e(0x348)]();let _0xae9ba3=this[_0x5d385e(0x308)][_0x5d385e(0x25c)](J,this[_0x5d385e(0x34a)],this[_0x5d385e(0x227)],this[_0x5d385e(0x304)],[_0x5c9a1d],this[_0x5d385e(0x387)],this['_resendTimer']);return _0xae9ba3[_0x5d385e(0x22b)](),_0xae9ba3;}[_0x43980f(0x21e)](_0x1cfcef){const _0x2d7860=_0x43980f;if(this[_0x2d7860(0x34e)](_0x1cfcef))return this[_0x2d7860(0x348)](),this[_0x2d7860(0x308)][_0x2d7860(0x25c)](Z,this[_0x2d7860(0x34a)],this['type'],this['_awaitingChangeset'],[],null,[_0x1cfcef],this[_0x2d7860(0x387)]);try{let _0x24ad36=this[_0x2d7860(0x27f)][_0x2d7860(0x221)]([_0x1cfcef],[this['_awaitingChangeset']],!0x1);if(_0x4f89e9(_0x24ad36)){let {c1Prime:_0x37a77e,c2Prime:_0x474177}=_0x24ad36;this['_executeRemoteChangeset'](_0x37a77e[0x0]),_0x474177[0x0][_0x2d7860(0x237)]=this[_0x2d7860(0x315)](),this[_0x2d7860(0x348)]();let _0x1aef91=this[_0x2d7860(0x308)]['createInstance'](Gt,this[_0x2d7860(0x34a)],this['type'],_0x474177[0x0],this['_handler']);return _0x1aef91[_0x2d7860(0x22b)](),_0x1aef91;}throw _0x24ad36[_0x2d7860(0x21f)];}catch(_0xb2c482){return this[_0x2d7860(0x2ed)]['error'](_0xb2c482),this['_onConflict'](!0x1);}}[_0x43980f(0x1dd)](_0x1b19ca){const _0x56822f=_0x43980f;this[_0x56822f(0x348)]();let _0x401d98=this[_0x56822f(0x191)][_0x56822f(0x2a1)](this[_0x56822f(0x34a)]);if(_0x1b19ca[_0x56822f(0x29e)]<=_0x401d98)return this;if(this[_0x56822f(0x34e)](_0x1b19ca))return this[_0x56822f(0x308)][_0x56822f(0x25c)](Z,this['unitID'],this['type'],this[_0x56822f(0x304)],[],_0x1b19ca['revision'],[],this[_0x56822f(0x387)]);this[_0x56822f(0x203)]();let _0x5d7e57=this[_0x56822f(0x308)][_0x56822f(0x25c)](G,this[_0x56822f(0x34a)],this['type'],this[_0x56822f(0x387)]);return _0x5d7e57[_0x56822f(0x22b)](),_0x5d7e57;}[_0x43980f(0x36c)](_0x44ada5){return this['_onConflict'](!!(_0x44ada5!=null&&_0x44ada5['isPermissionRej']));}[_0x43980f(0x19b)](_0x482056){const _0x308729=_0x43980f;return this[_0x308729(0x19a)]>Yt?this[_0x308729(0x1f0)]():(this[_0x308729(0x35a)]=Ut(this[_0x308729(0x349)],{'timeout':this['_resendTimeout'],'reqId':_0x482056['reqId']}),this[_0x308729(0x206)]=this[_0x308729(0x35a)][_0x308729(0x374)](({reqId:_0x546a65,timeout:_0x47fcdb})=>{const _0x584364=_0x308729;this[_0x584364(0x3a9)](_0x546a65,_0x47fcdb);}),this);}[_0x43980f(0x1f0)](){const _0x1173c6=_0x43980f;return this[_0x1173c6(0x348)](),this[_0x1173c6(0x308)][_0x1173c6(0x25c)](X,this[_0x1173c6(0x34a)],this[_0x1173c6(0x227)],this['_awaitingChangeset'],[],this['_handler']);}[_0x43980f(0x306)](){return this;}['resend'](){const _0x2728b9=_0x43980f;this[_0x2728b9(0x387)][_0x2728b9(0x266)](this[_0x2728b9(0x304)]);}[_0x43980f(0x301)](_0x2053eb){const _0xa1befd=_0x43980f;return this['_clearScheduledTask'](),this[_0xa1befd(0x308)]['createInstance'](Y,this[_0xa1befd(0x34a)],this[_0xa1befd(0x227)],this['_awaitingChangeset'],[],this[_0xa1befd(0x387)],_0x2053eb);}[_0x43980f(0x3a9)](_0x320443,_0x5822f6){const _0x4187b7=_0x43980f;var _0x30c5c4;_0x320443===((_0x30c5c4=this['_awaitingChangeset'])==null?void 0x0:_0x30c5c4[_0x4187b7(0x226)])&&(this[_0x4187b7(0x1bf)](),this['_resendTimeout']=_0x5822f6===0x0?0x3e8:Math[_0x4187b7(0x17e)](_0x5822f6*0x2,Jt),this[_0x4187b7(0x19a)]+=this[_0x4187b7(0x349)]);}[_0x43980f(0x348)](){const _0x10378e=_0x43980f;var _0x5e4be8;(_0x5e4be8=this[_0x10378e(0x206)])==null||_0x5e4be8[_0x10378e(0x2ce)](),this[_0x10378e(0x349)]=0x0,this[_0x10378e(0x19a)]=0x0;}};q=Gt=z([R(0x4,_0x1c7850(_0xd7c234)),R(0x5,_0x1c7850(_0x40cc5a)),R(0x6,_0x2e910a),R(0x7,_0x4a2db6),R(0x8,_0x41cd1f),R(0x9,_0x3a28c4),R(0xa,_0x4d2f7f(V))],q);let J=Kt=class extends W{constructor(_0x85ac87,_0x2d5e0e,_0x1b19b4,_0x15949f,_0x2bfaf0,_0x4c5858,_0x1e3eba,_0x1ea236,_0x3c3359,_0x4653b3,_0x3c7504,_0x2b9f8f,_0x4268a8){const _0x39df8f=_0x43980f;super(_0x85ac87,_0x2d5e0e,_0x1b19b4,_0x15949f,_0x2bfaf0,_0x3c3359,_0x2b9f8f,_0x1ea236,_0x4268a8),this['_injector']=_0x1e3eba,this['_logService']=_0x4653b3,this[_0x39df8f(0x27f)]=_0x3c7504,this['localCacheService']=_0x4268a8,I(this,'status','awaiting_with_pending'),I(this,_0x39df8f(0x349),0x0),I(this,_0x39df8f(0x19a),0x0),I(this,_0x39df8f(0x35a),void 0x0),I(this,_0x39df8f(0x206),void 0x0),_0x4c5858&&(this['_resendTimer']=_0x4c5858,this[_0x39df8f(0x206)]=this[_0x39df8f(0x35a)][_0x39df8f(0x374)](({reqId:_0x297e68,timeout:_0x585a0b})=>{this['_resendWithTimeout'](_0x297e68,_0x585a0b);}));}[_0x43980f(0x33b)](_0x4f4788){const _0x287abe=_0x43980f;return this[_0x287abe(0x386)][_0x287abe(0x242)](_0x4f4788),this;}['onRemoteChangeset'](_0x5b8327){const _0x5b6995=_0x43980f;if(this['_checkMissing'](_0x5b8327))return this[_0x5b6995(0x348)](),this[_0x5b6995(0x308)]['createInstance'](Z,this[_0x5b6995(0x34a)],this[_0x5b6995(0x227)],this[_0x5b6995(0x304)],this[_0x5b6995(0x386)],null,[_0x5b8327],this['_handler']);try{let _0x36b08b=this[_0x5b6995(0x27f)][_0x5b6995(0x221)]([_0x5b8327],[this[_0x5b6995(0x304)]],!0x1);if(_0x4f89e9(_0x36b08b)){let {c1Prime:_0x259d4d,c2Prime:_0xc7ad69}=_0x36b08b,_0xa6778c=this[_0x5b6995(0x27f)][_0x5b6995(0x278)](_0x259d4d[0x0],this['_pendingMutations']);if(_0x993155(_0xa6778c)){let {c1Prime:_0x5e4ef6,m2Prime:_0x3fe848}=_0xa6778c;return this['_executeRemoteChangeset'](_0x5e4ef6),_0xc7ad69[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x5b6995(0x348)](),this['_injector'][_0x5b6995(0x25c)](Kt,this[_0x5b6995(0x34a)],this['type'],_0xc7ad69[0x0],_0x3fe848,this['_handler'],void 0x0);}throw _0xa6778c[_0x5b6995(0x21f)];}throw _0x36b08b[_0x5b6995(0x21f)];}catch(_0x572c3d){return this['_logService']['error'](_0x572c3d),this['_onConflict'](!0x1);}}[_0x43980f(0x1dd)](_0x264066){const _0x585694=_0x43980f;this[_0x585694(0x348)]();let _0x369cf0=this[_0x585694(0x315)]();if(_0x264066[_0x585694(0x29e)]<=_0x369cf0)return this;if(this[_0x585694(0x34e)](_0x264066))return this[_0x585694(0x308)][_0x585694(0x25c)](Z,this['unitID'],this[_0x585694(0x227)],this['_awaitingChangeset'],this[_0x585694(0x386)],_0x264066['revision'],[],this[_0x585694(0x387)]);this[_0x585694(0x203)]();let _0x1c9550=this[_0x585694(0x308)][_0x585694(0x25c)](K,this['unitID'],this[_0x585694(0x227)],this[_0x585694(0x386)],this[_0x585694(0x387)]);return _0x1c9550[_0x585694(0x3bf)](),_0x1c9550[_0x585694(0x22b)](),_0x1c9550;}[_0x43980f(0x36c)](_0x2eda00){const _0x5000d8=_0x43980f;return this[_0x5000d8(0x301)](!!(_0x2eda00!=null&&_0x2eda00[_0x5000d8(0x318)]));}[_0x43980f(0x19b)](_0x202cd4){const _0x374567=_0x43980f;return this[_0x374567(0x19a)]>Yt?this[_0x374567(0x1f0)]():(this['_resendTimer']=Ut(this[_0x374567(0x349)],{'timeout':this[_0x374567(0x349)],'reqId':_0x202cd4[_0x374567(0x226)]}),this[_0x374567(0x206)]=this['_resendTimer']['subscribe'](({reqId:_0x674b9e,timeout:_0x265ccd})=>{const _0x39f9dc=_0x374567;this[_0x39f9dc(0x3a9)](_0x674b9e,_0x265ccd);}),this);}[_0x43980f(0x1f0)](){const _0x3fb931=_0x43980f;return this[_0x3fb931(0x348)](),this[_0x3fb931(0x308)][_0x3fb931(0x25c)](X,this[_0x3fb931(0x34a)],this[_0x3fb931(0x227)],this[_0x3fb931(0x304)],this[_0x3fb931(0x386)],this['_handler']);}['toggleOnline'](){return this;}[_0x43980f(0x1bf)](){const _0x23e52e=_0x43980f;this[_0x23e52e(0x387)][_0x23e52e(0x266)](this['_awaitingChangeset']);}[_0x43980f(0x301)](_0xf2fa72){const _0x4ce010=_0x43980f;return this[_0x4ce010(0x348)](),this[_0x4ce010(0x308)][_0x4ce010(0x25c)](Y,this[_0x4ce010(0x34a)],this[_0x4ce010(0x227)],null,this[_0x4ce010(0x386)],this[_0x4ce010(0x387)],_0xf2fa72);}[_0x43980f(0x3a9)](_0x17d226,_0x404f5f){const _0x96b3e2=_0x43980f;var _0x5bad14;_0x17d226===((_0x5bad14=this[_0x96b3e2(0x304)])==null?void 0x0:_0x5bad14[_0x96b3e2(0x226)])&&(this[_0x96b3e2(0x1bf)](),this[_0x96b3e2(0x349)]=_0x404f5f===0x0?0x3e8:Math['min'](_0x404f5f*0x2,Jt),this[_0x96b3e2(0x19a)]+=this[_0x96b3e2(0x349)]);}[_0x43980f(0x348)](){const _0x1fa953=_0x43980f;var _0x2f16b5;(_0x2f16b5=this['_sender'])==null||_0x2f16b5[_0x1fa953(0x2ce)](),this[_0x1fa953(0x349)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=Kt=z([R(0x6,_0x1c7850(_0xd7c234)),R(0x7,_0x1c7850(_0x40cc5a)),R(0x8,_0x2e910a),R(0x9,_0x4a2db6),R(0xa,_0x41cd1f),R(0xb,_0x3a28c4),R(0xc,_0x4d2f7f(V))],J);let Y=class extends W{constructor(_0x53e2f3,_0x46beff,_0x513bc0,_0x41b148,_0x185ece,_0x326ce1=!0x1,_0x45953d,_0xd1ad3b,_0x2b4654,_0x2d3cc3,_0x344994,_0x55b085,_0x6d755a){const _0x5649df=_0x43980f;super(_0x53e2f3,_0x46beff,_0x513bc0,_0x41b148,_0x185ece,_0xd1ad3b,_0x2b4654,_0x2d3cc3,_0x6d755a),this[_0x5649df(0x2ac)]=_0x326ce1,this[_0x5649df(0x154)]=_0x45953d,this[_0x5649df(0x353)]=_0x344994,this[_0x5649df(0x300)]=_0x55b085,this['localCacheService']=_0x6d755a,I(this,_0x5649df(0x36a),_0x5649df(0x1bb)),this[_0x5649df(0x379)](),this[_0x5649df(0x255)](),this[_0x5649df(0x171)]();}[_0x43980f(0x33b)](){return this;}[_0x43980f(0x21e)](){return this;}[_0x43980f(0x1dd)](){return this;}[_0x43980f(0x36c)](){return this;}[_0x43980f(0x19b)](){return this;}['toggleOffline'](){return this;}[_0x43980f(0x306)](){return this;}[_0x43980f(0x1bf)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x43980f(0x255)](){const _0xcb4371=_0x43980f;var _0x2e8040;(_0x2e8040=this[_0xcb4371(0x1e3)])==null||_0x2e8040['updateOfflineData'](this[_0xcb4371(0x34a)],this[_0xcb4371(0x227)],null,[]);}[_0x43980f(0x379)](){const _0x1a9d54=_0x43980f;this['_isPermissionRej']?this[_0x1a9d54(0x300)][_0x1a9d54(0x3b5)]({'id':_0x1a9d54(0x299)}):this[_0x1a9d54(0x300)][_0x1a9d54(0x3b5)]({'id':_0x1a9d54(0x3bb)});}['_disableEditing'](){const _0x5b75d0=_0x43980f;this[_0x5b75d0(0x154)]['updatePermissionPoint'](new _0x173d60(this[_0x5b75d0(0x34a)])['id'],!0x1);}};Y=z([R(0x6,_0x1c7850(_0x57bb9f)),R(0x7,_0x2e910a),R(0x8,_0x3a28c4),R(0x9,_0x1c7850(_0x40cc5a)),R(0xa,_0x1c7850(_0x24941e)),R(0xb,_0x1c7850(L)),R(0xc,_0x4d2f7f(V))],Y);let X=class extends W{constructor(_0x170000,_0x24b213,_0x20ab91,_0x4d61a8,_0xa38083,_0x41fe1b,_0x213013,_0x25d8df,_0xbc0d7a,_0x383ced){const _0x4cddc3=_0x43980f;super(_0x170000,_0x24b213,_0x20ab91,_0x4d61a8,_0xa38083,_0x25d8df,_0xbc0d7a,_0x213013,_0x383ced),this['_injector']=_0x41fe1b,I(this,_0x4cddc3(0x36a),_0x4cddc3(0x2d3));}[_0x43980f(0x33b)](_0x4d3439){const _0x3d6d31=_0x43980f;return this['_pendingMutations'][_0x3d6d31(0x242)](_0x4d3439),this['_updateLocalCache'](),this;}[_0x43980f(0x21e)](_0x4a18f8){const _0x299450=_0x43980f;throw Error(_0x299450(0x3a1));}[_0x43980f(0x1dd)](){const _0x1c9ba3=_0x43980f;throw Error(_0x1c9ba3(0x330));}[_0x43980f(0x36c)](){const _0x5a8b42=_0x43980f;throw Error(_0x5a8b42(0x157));}[_0x43980f(0x19b)](){return this;}['toggleOffline'](){return this;}[_0x43980f(0x306)](){const _0x157723=_0x43980f;let {_injector:_0x14bf0d,_pendingMutations:_0x51287c,_awaitingChangeset:_0x472011,unitID:_0x2bcd9d,_handler:_0x299800,type:_0x1bccbb}=this,_0x4d326b=Xt(_0x14bf0d,_0x2bcd9d,_0x1bccbb,_0x472011,_0x51287c,_0x299800);return _0x4d326b instanceof K?_0x4d326b[_0x157723(0x3bf)]():(_0x4d326b instanceof J||_0x4d326b instanceof q)&&_0x4d326b[_0x157723(0x1bf)](),_0x4d326b;}[_0x43980f(0x1bf)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};X=z([R(0x5,_0x1c7850(_0xd7c234)),R(0x6,_0x1c7850(_0x40cc5a)),R(0x7,_0x2e910a),R(0x8,_0x3a28c4),R(0x9,_0x4d2f7f(V))],X);let Z=class extends W{constructor(_0x82c94b,_0xab3a2e,_0x1a0fa0,_0x4499ae,_0x48fff7,_0x2f0caa,_0x3f04b1,_0x2d3321,_0x300a3b,_0x5b7783,_0x34d4dc,_0x6e10a0,_0x1e2a42,_0x1d5ba5){const _0x436ada=_0x43980f;super(_0x82c94b,_0xab3a2e,_0x1a0fa0,_0x4499ae,_0x3f04b1,_0x34d4dc,_0x6e10a0,_0x300a3b,_0x1d5ba5),this['_acknowledgedAwaitingRevision']=_0x48fff7,this[_0x436ada(0x1f7)]=_0x2f0caa,this[_0x436ada(0x308)]=_0x2d3321,this['_logService']=_0x5b7783,this[_0x436ada(0x27f)]=_0x1e2a42,this[_0x436ada(0x1ed)]=_0x1d5ba5,I(this,'status',_0x436ada(0x38f));}[_0x43980f(0x17b)](_0xaa3c39){const _0x258c78=_0x43980f;try{if(this[_0x258c78(0x1fa)](_0xaa3c39)['missingChangesets'])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this['_handleRemoteChangesets']([...this[_0x258c78(0x1f7)]][_0x258c78(0x15f)]((_0x70327c,_0x1eba31)=>_0x70327c[_0x258c78(0x29e)]-_0x1eba31[_0x258c78(0x29e)]))[_0x258c78(0x23d)])return this[_0x258c78(0x1f7)]=[],this[_0x258c78(0x22b)](),this[_0x258c78(0x387)][_0x258c78(0x1b2)]({'from':this[_0x258c78(0x315)](),'to':0x0}),this;let _0x373775=this[_0x258c78(0x304)],_0xa8a9c8=this[_0x258c78(0x386)],_0x24c92c;if(_0x373775&&_0xa8a9c8[_0x258c78(0x334)]!==0x0)_0x24c92c=this['_injector']['createInstance'](J,this[_0x258c78(0x34a)],this['type'],_0x373775,_0xa8a9c8,this[_0x258c78(0x387)],void 0x0);else{if(_0x373775&&_0xa8a9c8['length']===0x0)_0x373775[_0x258c78(0x237)]=this[_0x258c78(0x315)](),_0x24c92c=this[_0x258c78(0x308)][_0x258c78(0x25c)](q,this[_0x258c78(0x34a)],this[_0x258c78(0x227)],_0x373775,this['_handler']);else{if(_0xa8a9c8[_0x258c78(0x334)]!==0x0){let _0x2b7e06=this[_0x258c78(0x308)][_0x258c78(0x25c)](K,this['unitID'],this[_0x258c78(0x227)],_0xa8a9c8,this[_0x258c78(0x387)]);_0x2b7e06['_schedule'](),_0x24c92c=_0x2b7e06;}else _0x24c92c=this[_0x258c78(0x308)][_0x258c78(0x25c)](G,this[_0x258c78(0x34a)],this[_0x258c78(0x227)],this['_handler']);}}return _0x24c92c[_0x258c78(0x22b)](),_0x24c92c;}catch(_0x17d448){return this[_0x258c78(0x2ed)][_0x258c78(0x21f)]('[FetchMissState]',_0x258c78(0x2bc),_0x17d448),this['_injector'][_0x258c78(0x25c)](Y,this[_0x258c78(0x34a)],this[_0x258c78(0x227)],this[_0x258c78(0x304)],this[_0x258c78(0x386)],this[_0x258c78(0x387)],!0x1);}}[_0x43980f(0x1fa)](_0x300e76){const _0x53244f=_0x43980f;this[_0x53244f(0x213)]();for(let _0x6d4e9=0x0;_0x6d4e9<_0x300e76[_0x53244f(0x334)];_0x6d4e9++){let _0x4a14ea=_0x300e76[_0x6d4e9],_0x12dd17=this['_getCurrentRevision']();if(!(_0x4a14ea['revision']<=_0x12dd17)){if(_0x4a14ea[_0x53244f(0x29e)]>_0x12dd17+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x4a14ea)){this[_0x53244f(0x281)]();continue;}this['_transformAndApplyRemoteChangeset'](_0x4a14ea),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x43980f(0x2fd)](_0x4d266b){const _0x378383=_0x43980f;let _0xbe9cef=_0x4d266b,_0x5413a4=this[_0x378383(0x304)];if(_0x5413a4){let _0x22b0b7=this['_transformService'][_0x378383(0x221)]([_0x4d266b],[_0x5413a4],!0x1);if(!_0x4f89e9(_0x22b0b7))throw _0x22b0b7[_0x378383(0x21f)];_0xbe9cef=_0x22b0b7[_0x378383(0x151)][0x0],_0x5413a4=_0x22b0b7['c2Prime'][0x0];}let _0x4bd14e=this[_0x378383(0x386)];if(_0x4bd14e['length']){let _0x29bca2=this[_0x378383(0x27f)][_0x378383(0x278)](_0xbe9cef,_0x4bd14e);if(!_0x993155(_0x29bca2))throw _0x29bca2[_0x378383(0x21f)];_0xbe9cef=_0x29bca2['c1Prime'],_0x4bd14e=_0x29bca2[_0x378383(0x192)];}this[_0x378383(0x2df)](_0xbe9cef),_0x5413a4&&(_0x5413a4[_0x378383(0x237)]=this[_0x378383(0x315)]()),this[_0x378383(0x304)]=_0x5413a4,this[_0x378383(0x386)]=_0x4bd14e;}[_0x43980f(0x213)](){const _0x199388=_0x43980f;if(!this[_0x199388(0x304)]||this[_0x199388(0x228)]==null)return;let _0x48ba85=this[_0x199388(0x315)]();if(this[_0x199388(0x228)]<=_0x48ba85)throw Error(_0x199388(0x1dc)+this[_0x199388(0x228)]+'.');this[_0x199388(0x228)]===_0x48ba85+0x1&&this['_acknowledgeAwaiting']();}[_0x43980f(0x281)](){const _0xb02080=_0x43980f;this[_0xb02080(0x203)](),this[_0xb02080(0x304)]=null,this[_0xb02080(0x228)]=null;}[_0x43980f(0x2c1)](_0x479880){const _0x1194f1=_0x43980f;let _0x13f1b1=this[_0x1194f1(0x304)];return!_0x13f1b1||!_0x13f1b1[_0x1194f1(0x18b)]||_0x13f1b1[_0x1194f1(0x226)]===null||_0x13f1b1['reqId']===void 0x0?!0x1:_0x479880[_0x1194f1(0x34a)]===_0x13f1b1['unitID']&&_0x479880[_0x1194f1(0x18b)]===_0x13f1b1[_0x1194f1(0x18b)]&&_0x479880['reqId']===_0x13f1b1[_0x1194f1(0x226)];}[_0x43980f(0x1bf)](){const _0x4b869e=_0x43980f;throw Error(_0x4b869e(0x337));}[_0x43980f(0x33b)](_0x2e59f1){const _0x17a8d5=_0x43980f;return this[_0x17a8d5(0x386)][_0x17a8d5(0x242)](_0x2e59f1),this;}[_0x43980f(0x21e)](_0x229234){const _0x292409=_0x43980f;return this[_0x292409(0x1f7)][_0x292409(0x242)](_0x229234),this;}[_0x43980f(0x1dd)](_0x132022){const _0x4a7744=_0x43980f;if(this[_0x4a7744(0x304)]){let _0x2db596=this[_0x4a7744(0x315)]();return _0x132022[_0x4a7744(0x29e)]<=_0x2db596||(_0x2db596+0x1===_0x132022['revision']?(this['_incrementRevisionNumber'](),this[_0x4a7744(0x304)]=null,this[_0x4a7744(0x228)]=null):this[_0x4a7744(0x228)]=_0x132022[_0x4a7744(0x29e)]),this;}if(_0x132022[_0x4a7744(0x29e)]<=this[_0x4a7744(0x315)]())return this;throw Error(_0x4a7744(0x333));}[_0x43980f(0x36c)](_0x391c1c){const _0xd28887=_0x43980f;return this[_0xd28887(0x301)](!!(_0x391c1c!=null&&_0x391c1c[_0xd28887(0x318)]));}['onRemoteRetry'](){return this;}[_0x43980f(0x1f0)](){const _0x3dd94c=_0x43980f;return this[_0x3dd94c(0x308)][_0x3dd94c(0x25c)](X,this[_0x3dd94c(0x34a)],this['type'],this[_0x3dd94c(0x304)],this[_0x3dd94c(0x386)],this[_0x3dd94c(0x387)]);}[_0x43980f(0x306)](){return this;}[_0x43980f(0x301)](_0x85ada4){const _0x43ab09=_0x43980f;return this['_injector'][_0x43ab09(0x25c)](Y,this[_0x43ab09(0x34a)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x85ada4);}};Z=z([R(0x7,_0x1c7850(_0xd7c234)),R(0x8,_0x1c7850(_0x40cc5a)),R(0x9,_0x4a2db6),R(0xa,_0x2e910a),R(0xb,_0x3a28c4),R(0xc,_0x41cd1f),R(0xd,_0x4d2f7f(V))],Z);function Xt(_0x3d570a,_0x3a2d1f,_0x539ccb,_0x596480,_0x34b8f1,_0x45ad16){const _0x4a37ed=_0x43980f;return _0x596480&&_0x34b8f1[_0x4a37ed(0x334)]?_0x3d570a[_0x4a37ed(0x25c)](J,_0x3a2d1f,_0x539ccb,_0x596480,_0x34b8f1,_0x45ad16,void 0x0):_0x596480?_0x3d570a[_0x4a37ed(0x25c)](q,_0x3a2d1f,_0x539ccb,_0x596480,_0x45ad16):_0x34b8f1[_0x4a37ed(0x334)]?_0x3d570a[_0x4a37ed(0x25c)](K,_0x3a2d1f,_0x539ccb,_0x34b8f1,_0x45ad16):_0x3d570a[_0x4a37ed(0x25c)](G,_0x3a2d1f,_0x539ccb,_0x45ad16);}let Zt=class extends _0x1a88c8{get[_0x43980f(0x22d)](){return this['_state'];}constructor(_0x2070b1,_0x2cf3fe,_0x663672,_0x14b9e9,_0x85aa48,_0x545c63,_0x4d4f53,_0x1d1751,_0x3252ea,_0x54223d,_0xe27c46,_0x2b08c2,_0x518f0d,_0x1d9329){const _0x2d8618=_0x43980f;super(),this[_0x2d8618(0x34a)]=_0x2070b1,this[_0x2d8618(0x172)]=_0x2cf3fe,this[_0x2d8618(0x219)]=_0x663672,this[_0x2d8618(0x308)]=_0x14b9e9,this[_0x2d8618(0x1c6)]=_0x85aa48,this[_0x2d8618(0x353)]=_0x545c63,this[_0x2d8618(0x191)]=_0x4d4f53,this[_0x2d8618(0x167)]=_0x1d1751,this[_0x2d8618(0x372)]=_0x3252ea,this[_0x2d8618(0x2ed)]=_0x54223d,this[_0x2d8618(0x35d)]=_0xe27c46,this[_0x2d8618(0x154)]=_0x2b08c2,this['_singleActiveUnitService']=_0x518f0d,this['_localCacheService']=_0x1d9329,I(this,_0x2d8618(0x365),new _0x1eef50(null)),I(this,'state$',this[_0x2d8618(0x365)]['asObservable']()),I(this,_0x2d8618(0x293),void 0x0),I(this,_0x2d8618(0x17a),!0x1),I(this,_0x2d8618(0x329),''),I(this,_0x2d8618(0x35f),0x0),I(this,_0x2d8618(0x271),this[_0x2d8618(0x393)]['pipe'](_0x3f4ed6(_0x171ed1=>_0x171ed1?_0x171ed1[_0x2d8618(0x36a)]:'offline'),_0x2db618({'bufferSize':0x1,'refCount':!0x0}))),I(this,_0x2d8618(0x1b3),!0x1),I(this,_0x2d8618(0x1a2),[]);}async[_0x43980f(0x168)](){const _0x18ce05=_0x43980f;if(this[_0x18ce05(0x22d)])throw Error(_0x18ce05(0x272));await this[_0x18ce05(0x26f)]();}[_0x43980f(0x155)](){return this['_collaborationPaused']=!0x0,_0x148718(()=>{const _0x54b3c0=_0x50c8;this[_0x54b3c0(0x17a)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x43980f(0x16e)](_0x1d0913){const _0x3ec121=_0x43980f;this[_0x3ec121(0x16b)](_0x1d0913);}['_updateState'](_0x1d2f4a){const _0x3ddc7a=_0x43980f;this[_0x3ddc7a(0x293)]=_0x1d2f4a,this[_0x3ddc7a(0x365)][_0x3ddc7a(0x177)](_0x1d2f4a);}async[_0x43980f(0x26f)](){const _0x1c5783=_0x43980f;if(this[_0x1c5783(0x27a)](await this[_0x1c5783(0x223)]()),this[_0x1c5783(0x18e)]){var _0x169c01;(_0x169c01=this['_singleActiveUnitService'])==null||_0x169c01[_0x1c5783(0x354)](this[_0x1c5783(0x34a)]),this[_0x1c5783(0x31e)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x1c5783(0x34a)])[_0x1c5783(0x374)](_0x1f473a=>{const _0x453c32=_0x1c5783;this[_0x453c32(0x2ed)][_0x453c32(0x1ae)](_0x453c32(0x340),_0x453c32(0x2dd),_0x1f473a),_0x1f473a===0x1?(this[_0x453c32(0x167)][_0x453c32(0x3b5)]({'id':_0x453c32(0x1d2)}),this[_0x453c32(0x154)][_0x453c32(0x181)](new _0x173d60(this[_0x453c32(0x34a)])['id'],!0x1),this[_0x453c32(0x154)]['setShowComponents'](!0x1)):(this['_permissionService'][_0x453c32(0x181)](new _0x173d60(this[_0x453c32(0x34a)])['id'],!0x0),this['_permissionService'][_0x453c32(0x3a3)](!0x0));}));}let _0xc8bf12=!0x1;return this[_0x1c5783(0x31e)](this[_0x1c5783(0x172)][_0x1c5783(0x332)][_0x1c5783(0x374)](_0x1ea92b=>{const _0x4f2470=_0x1c5783;_0x1ea92b===0x3?this[_0x4f2470(0x30f)](_0xc8bf12):_0x1ea92b===0x2&&(_0xc8bf12=!0x0,this[_0x4f2470(0x247)]());})),this[_0x1c5783(0x31e)](this[_0x1c5783(0x172)][_0x1c5783(0x282)][_0x1c5783(0x374)](_0xb480ac=>{const _0x1ea59d=_0x1c5783;try{switch(_0xb480ac[_0x1ea59d(0x201)]){case _0x3cfbbf['NEW_CHANGESETS']:this[_0x1ea59d(0x29a)](_0x4fb883(_0xb480ac[_0x1ea59d(0x324)]));break;case _0x3cfbbf[_0x1ea59d(0x3a8)]:this[_0x1ea59d(0x1ce)](_0xb480ac[_0x1ea59d(0x324)]);break;case _0x3cfbbf[_0x1ea59d(0x178)]:this[_0x1ea59d(0x33d)]();break;case _0x3cfbbf[_0x1ea59d(0x341)]:this[_0x1ea59d(0x2e5)](_0xb480ac[_0x1ea59d(0x324)]);break;case _0x3cfbbf[_0x1ea59d(0x158)]:this['_onFetchMissResult'](_0xb480ac[_0x1ea59d(0x324)][_0x1ea59d(0x352)]['map'](_0x5d2d24=>_0x4fb883(_0x5d2d24)));break;case _0x3cfbbf['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x3cfbbf[_0x1ea59d(0x1c5)]:break;}}catch(_0xf9506f){throw console[_0x1ea59d(0x21f)]('Error\x20on\x20receiving\x20event',_0xf9506f),_0xf9506f;}})),this[_0x1c5783(0x293)];}[_0x43980f(0x37b)](){const _0x1fc348=_0x43980f;this[_0x1fc348(0x1b3)]=!0x1;}[_0x43980f(0x239)](){const _0xd73c1d=_0x43980f;if(this['_transitionLocked'])throw Error(_0xd73c1d(0x14d));this['_transitionLocked']=!0x0;}[_0x43980f(0x16b)](_0x5d8807){const _0xcf0e8d=_0x43980f;this[_0xcf0e8d(0x239)](),this[_0xcf0e8d(0x27a)](this[_0xcf0e8d(0x293)][_0xcf0e8d(0x33b)](_0x5d8807)),this[_0xcf0e8d(0x37b)]();}[_0x43980f(0x29a)](_0xf1bf2){const _0x5c73f5=_0x43980f;if(!(_0xf1bf2[_0x5c73f5(0x29e)]<=this[_0x5c73f5(0x191)][_0x5c73f5(0x2a1)](this[_0x5c73f5(0x34a)]))){if(this[_0x5c73f5(0x17a)]){this[_0x5c73f5(0x1a2)][_0x5c73f5(0x242)](_0xf1bf2);return;}this[_0x5c73f5(0x33e)](_0xf1bf2);}}['_exhaustRemoteChangesetQueue'](){const _0x31ee65=_0x43980f;this['_remoteChangesetQueue'][_0x31ee65(0x256)](_0x199c75=>this[_0x31ee65(0x33e)](_0x199c75)),this[_0x31ee65(0x1a2)]=[];}[_0x43980f(0x33e)](_0x389298){const _0x5ce6d6=_0x43980f;let _0x232068=this[_0x5ce6d6(0x1c6)][_0x5ce6d6(0x3a0)][_0x5ce6d6(0x3ab)](this[_0x5ce6d6(0x1c6)][_0x5ce6d6(0x3a0)]['getInterceptPoints']()[_0x5ce6d6(0x312)])(_0x389298[_0x5ce6d6(0x39a)],null)||_0x389298[_0x5ce6d6(0x39a)],_0x924b40={..._0x389298,'mutations':_0x232068};this[_0x5ce6d6(0x239)](),this['_updateState'](this['_state'][_0x5ce6d6(0x21e)](_0x924b40)),this[_0x5ce6d6(0x37b)]();}[_0x43980f(0x1ce)](_0x4205ad){const _0x14ff5c=_0x43980f;this[_0x14ff5c(0x239)](),this['_updateState'](this[_0x14ff5c(0x293)][_0x14ff5c(0x1dd)](_0x4205ad)),this[_0x14ff5c(0x37b)]();}['_onRemoteRejected'](_0x2b2b5e){this['_lockTransition'](),this['_updateState'](this['_state']['onRemoteRej'](_0x2b2b5e)),this['_unlockTransition']();}['_onRemoteRetry'](_0x33308c){const _0x13659d=_0x43980f;this[_0x13659d(0x239)](),this[_0x13659d(0x27a)](this['_state'][_0x13659d(0x19b)](_0x33308c)),this['_unlockTransition']();}[_0x43980f(0x15b)](_0x6208e1){const _0x1e2f45=_0x43980f;if(!(this['_state']instanceof Z))throw TypeError(_0x1e2f45(0x331));let _0x2df8c3=_0x6208e1[_0x1e2f45(0x18d)](_0x3e0de0=>{const _0x55d0d8=_0x1e2f45;let _0x23f836=this[_0x55d0d8(0x1c6)]['interceptor'][_0x55d0d8(0x3ab)](this['_compressMutationService']['interceptor'][_0x55d0d8(0x27c)]()[_0x55d0d8(0x312)])(_0x3e0de0[_0x55d0d8(0x39a)],null)||_0x3e0de0['mutations'];return{..._0x3e0de0,'mutations':_0x23f836};});this[_0x1e2f45(0x239)](),this[_0x1e2f45(0x27a)](this[_0x1e2f45(0x293)][_0x1e2f45(0x17b)](_0x2df8c3)),this[_0x1e2f45(0x37b)]();}['_toggleOffline'](){const _0x4179cf=_0x43980f;this[_0x4179cf(0x239)](),this[_0x4179cf(0x27a)](this['_state']['toggleOffline']()),this[_0x4179cf(0x37b)]();}['_toggleOnline'](_0x2c3b7e=!0x1){const _0x48f502=_0x43980f;this[_0x48f502(0x239)](),this[_0x48f502(0x27a)](this['_state'][_0x48f502(0x306)]()),this['_unlockTransition']();let _0x361a3a=this[_0x48f502(0x293)];_0x2c3b7e&&_0x361a3a instanceof G&&(this[_0x48f502(0x239)](),this['_updateState'](_0x361a3a['fetchMiss']()),this[_0x48f502(0x37b)]());}async[_0x43980f(0x223)](){return new Promise(_0x4ff451=>{const _0x3c283b=_0x50c8;this[_0x3c283b(0x172)]['sessionStatus$']['pipe'](_0x4dc0d7(0x1))[_0x3c283b(0x374)](async _0x102270=>{const _0x3fc389=_0x3c283b;_0x4ff451(await this[_0x3fc389(0x2b1)](_0x102270===0x3));});});}[_0x43980f(0x2d5)](){const _0x2ef7f6=_0x43980f;let _0x4006d2=this[_0x2ef7f6(0x34a)];return{'onStateChange':(_0xaf7556,_0x31705e)=>{const _0x27dc1c=_0x2ef7f6;if(_0xaf7556!==this[_0x27dc1c(0x293)])throw Error(_0x27dc1c(0x28c)+_0xaf7556[_0x27dc1c(0x36a)]+_0x27dc1c(0x395)+_0x31705e[_0x27dc1c(0x36a)]+_0x27dc1c(0x2de)+this[_0x27dc1c(0x293)]['status']);this[_0x27dc1c(0x27a)](_0x31705e);},'onSendChangeset':_0xb5852b=>{const _0x21ab2a=_0x2ef7f6;_0xb5852b[_0x21ab2a(0x18b)]||(_0xb5852b[_0x21ab2a(0x18b)]=this[_0x21ab2a(0x329)],_0xb5852b[_0x21ab2a(0x226)]=++this[_0x21ab2a(0x35f)]);let _0x52e364={'eventID':_0x3cfbbf[_0x21ab2a(0x3b1)],'data':{'unitID':_0xb5852b[_0x21ab2a(0x34a)],'unitType':this[_0x21ab2a(0x219)],'changeset':_0xb5852b,'memberID':this[_0x21ab2a(0x172)][_0x21ab2a(0x15a)]()}};this[_0x21ab2a(0x172)][_0x21ab2a(0x3c6)](_0x52e364,this['unitID']);},'onMissingChangesets':({from:_0x224829,to:_0x28e8d1})=>{const _0x22d24e=_0x2ef7f6;this[_0x22d24e(0x2ed)][_0x22d24e(0x1ae)]('[CollaborationEntity]',_0x22d24e(0x31b)+_0x224829+_0x22d24e(0x23f)+_0x28e8d1);let _0x286e9c={'eventID':_0x3cfbbf[_0x22d24e(0x217)],'data':{'unitID':_0x4006d2,'unitType':this[_0x22d24e(0x219)],'from':_0x224829,'to':_0x28e8d1}};this[_0x22d24e(0x172)][_0x22d24e(0x3c6)](_0x286e9c,this[_0x22d24e(0x34a)]);}};}async[_0x43980f(0x2b1)](_0x2d7a57){const _0x1c243e=_0x43980f;var _0x1f91e7,_0x1b1ed2,_0x43faff;let _0x21b253=await((_0x1f91e7=this['_localCacheService'])==null?void 0x0:_0x1f91e7[_0x1c243e(0x187)](this[_0x1c243e(0x34a)])),_0x3ef3a6=(_0x1b1ed2=_0x21b253==null?void 0x0:_0x21b253[_0x1c243e(0x39a)])==null?[]:_0x1b1ed2,_0x121e45=(_0x43faff=_0x21b253==null?void 0x0:_0x21b253['awaitingChangeset'])==null?null:_0x43faff,_0x636cbf=!!(_0x121e45!=null&&_0x121e45[_0x1c243e(0x18b)])&&!!(_0x121e45!=null&&_0x121e45[_0x1c243e(0x226)]);this['_changesetSessionId']=_0x636cbf?_0x121e45['sid']:_0x338fc9(),this['_changesetReqId']=_0x636cbf?_0x121e45[_0x1c243e(0x226)]:0x0;let _0x1cea86=this[_0x1c243e(0x34a)];try{this['_replayCachedMutations'](_0x121e45,_0x3ef3a6);}catch(_0x505995){this[_0x1c243e(0x2ed)]['error'](_0x505995);}let _0x476fba=this[_0x1c243e(0x2d5)]();if(_0x2d7a57){let _0x368348=Xt(this[_0x1c243e(0x308)],_0x1cea86,this['_type'],_0x121e45,_0x3ef3a6,_0x476fba);return _0x368348 instanceof K?_0x368348[_0x1c243e(0x3bf)]():(_0x368348 instanceof J||_0x368348 instanceof q)&&_0x368348['resend'](),_0x368348;}return this[_0x1c243e(0x308)][_0x1c243e(0x25c)](X,_0x1cea86,this[_0x1c243e(0x219)],_0x121e45,_0x3ef3a6,_0x476fba);}['_replayCachedMutations'](_0x9395ce,_0x487438){const _0x5b0603=_0x43980f;var _0x1690ad,_0x58c4cb;let _0x49faf4=this[_0x5b0603(0x1c6)][_0x5b0603(0x3a0)][_0x5b0603(0x3ab)](this[_0x5b0603(0x1c6)]['interceptor'][_0x5b0603(0x27c)]()[_0x5b0603(0x312)]);(_0x1690ad=_0x49faf4((_0x9395ce==null?void 0x0:_0x9395ce[_0x5b0603(0x39a)])||[],null))==null||_0x1690ad['forEach'](_0x3f3b34=>this['_commandService'][_0x5b0603(0x1c2)](_0x3f3b34['id'],_0x3f3b34[_0x5b0603(0x310)])),(_0x58c4cb=_0x49faf4(_0x487438||[],null))==null||_0x58c4cb[_0x5b0603(0x256)](_0x44b7ec=>this[_0x5b0603(0x35d)][_0x5b0603(0x1c2)](_0x44b7ec['id'],_0x44b7ec[_0x5b0603(0x310)]));}};Zt=z([R(0x3,_0x1c7850(_0xd7c234)),R(0x4,_0x1c7850(_0x32355b)),R(0x5,_0x1c7850(_0x24941e)),R(0x6,_0x1c7850(_0x40cc5a)),R(0x7,_0x1c7850(L)),R(0x8,_0x5f47c6),R(0x9,_0x4a2db6),R(0xa,_0x2e910a),R(0xb,_0x57bb9f),R(0xc,_0x4d2f7f(jt)),R(0xd,_0x4d2f7f(V))],Zt);let Qt=class extends Zt{constructor(_0x32ef16,_0x4615de,_0x29aecb,_0x15d616,_0x188d3f,_0x4eedf3,_0x4a6235,_0x290ab7,_0x32d65d,_0x5097bb,_0x47fbdc,_0x3a45d4,_0x431ea7,_0x2b2d4e){const _0x49f241=_0x43980f;super(_0x32ef16,_0x29aecb,_0x4615de,_0x15d616,_0x188d3f,_0x4eedf3,_0x4a6235,_0x290ab7,_0x32d65d,_0x5097bb,_0x47fbdc,_0x3a45d4,_0x431ea7,_0x2b2d4e),this[_0x49f241(0x34a)]=_0x32ef16,this[_0x49f241(0x227)]=_0x4615de,I(this,_0x49f241(0x355),null);}[_0x43980f(0x3b3)](_0x4a317f){const _0x5915ee=_0x43980f;this[_0x5915ee(0x355)]=_0x4a317f;}['dispose'](){const _0x2ebf4d=_0x43980f;this[_0x2ebf4d(0x355)]=null,super[_0x2ebf4d(0x215)]();}['_createHandler'](){const _0x3befa=_0x43980f;let _0x5b77cb=super[_0x3befa(0x2d5)]();return _0x5b77cb[_0x3befa(0x161)]=_0x5775da=>{const _0x646a33=_0x3befa;var _0x46bbd4,_0x1ed606;return(_0x46bbd4=this[_0x646a33(0x355)])==null||(_0x1ed606=_0x46bbd4['onTransformIME'])==null?void 0x0:_0x1ed606['call'](_0x46bbd4,_0x5775da);},_0x5b77cb[_0x3befa(0x3ae)]=_0x11c27a=>{const _0x3334c5=_0x3befa;var _0x25a1cd,_0x17425f;return(_0x25a1cd=this[_0x3334c5(0x355)])==null||(_0x17425f=_0x25a1cd['onTransformState'])==null?void 0x0:_0x17425f['call'](_0x25a1cd,_0x11c27a);},_0x5b77cb[_0x3befa(0x3c4)]=_0x1ccbea=>{const _0x5a1b84=_0x3befa;var _0x3471ab,_0x11a3c5;return(_0x3471ab=this[_0x5a1b84(0x355)])==null||(_0x11a3c5=_0x3471ab[_0x5a1b84(0x3c4)])==null?void 0x0:_0x11a3c5[_0x5a1b84(0x19f)](_0x3471ab,_0x1ccbea);},_0x5b77cb['onSyncEditingCollabCursor']=_0x5c29b8=>{const _0x23736d=_0x3befa;var _0x442ab1,_0x37eab4;return(_0x442ab1=this[_0x23736d(0x355)])==null||(_0x37eab4=_0x442ab1['onSyncEditingCollabCursor'])==null?void 0x0:_0x37eab4['call'](_0x442ab1,_0x5c29b8);},_0x5b77cb[_0x3befa(0x1ca)]=_0x44fda3=>{const _0x2c4810=_0x3befa;var _0x5a78e0,_0x3f4b44,_0x21bf02;if(!((_0x5a78e0=this[_0x2c4810(0x355)])!=null&&_0x5a78e0[_0x2c4810(0x1ca)]))throw Error(_0x2c4810(0x220));return(_0x3f4b44=this['_handlerCallback'])==null||(_0x21bf02=_0x3f4b44[_0x2c4810(0x1ca)])==null?void 0x0:_0x21bf02[_0x2c4810(0x19f)](_0x3f4b44,_0x44fda3);},_0x5b77cb[_0x3befa(0x27d)]=_0x4316c5=>{const _0x39186c=_0x3befa;var _0x350588,_0x30a3ae,_0x36eae2;if(!((_0x350588=this[_0x39186c(0x355)])!=null&&_0x350588[_0x39186c(0x27d)]))throw Error(_0x39186c(0x1b5));return(_0x30a3ae=this[_0x39186c(0x355)])==null||(_0x36eae2=_0x30a3ae[_0x39186c(0x27d)])==null?void 0x0:_0x36eae2[_0x39186c(0x19f)](_0x30a3ae,_0x4316c5);},_0x5b77cb;}async[_0x43980f(0x26f)](){const _0x5283a7=_0x43980f;let _0x49aab4=await super[_0x5283a7(0x26f)]();return this['disposeWithMe'](this[_0x5283a7(0x35d)][_0x5283a7(0x1b0)]((_0x317e79,_0x2fa18e)=>{const _0x27fbe7=_0x5283a7;if(_0x317e79[_0x27fbe7(0x227)]!==_0x96f3a4[_0x27fbe7(0x244)]||_0x2fa18e!=null&&_0x2fa18e['fromCollab']||_0x2fa18e!=null&&_0x2fa18e[_0x27fbe7(0x156)]||_0x317e79['id']===_0x5e19ba['id'])return;let _0x13f57a=_0x317e79[_0x27fbe7(0x310)];if((_0x13f57a==null?void 0x0:_0x13f57a[_0x27fbe7(0x175)])!==this['unitID'])return;let _0x225ffd=_0x317e79,_0x2c1a92=this[_0x27fbe7(0x1c6)][_0x27fbe7(0x3a0)][_0x27fbe7(0x3ab)](this[_0x27fbe7(0x1c6)][_0x27fbe7(0x3a0)][_0x27fbe7(0x27c)]()[_0x27fbe7(0x1f3)])([_0x225ffd],this[_0x27fbe7(0x372)])||[_0x225ffd];this['_onLocalMutation'](_0x2c1a92[0x0]);})),_0x49aab4;}};Qt=z([R(0x3,_0x1c7850(_0xd7c234)),R(0x4,_0x1c7850(_0x32355b)),R(0x5,_0x1c7850(_0x24941e)),R(0x6,_0x1c7850(_0x40cc5a)),R(0x7,_0x1c7850(L)),R(0x8,_0x5f47c6),R(0x9,_0x4a2db6),R(0xa,_0x2e910a),R(0xb,_0x57bb9f),R(0xc,_0x4d2f7f(jt)),R(0xd,_0x4d2f7f(V))],Qt);function _0xeabc(){const _0x5cda59=['_memberService','_scheduleCollaborationTimeoutTimer','JOIN_ROOM_FULL','csShouldRetryEvent','_socketReady','name','fetchMissingChangesets','/allowed','newCsEvent','_transformRemoteChangesetByIMECache','unsubscribe','_roomCreated$','setCfgEnableObjInherit','registerHTTPInterceptor','getMember','offline','_startTelemetryCollaborationNewChangeset','_createHandler','SOCKET_FAILED_RETRY','post','refreshPermission','csAckEvent','_transformStack','encrypt','pipe','editing\x20status\x20changed\x20to','\x0aCurrent:\x20','_executeRemoteChangeset','subUnitId','deepClone','_transformIMECache','collaboration-client.auth.needGotoLoginAlert','getCurrentUser','_onRemoteRetry','_clearTimeoutTimer','startTime','_waitForHeartbeatResponse','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','duration','[SyncedState]:\x20received\x20rejection.','stopTime','_logService','_getLoginPath','@univerjs-pro/collaboration-client','collaMsg','_substituteRedoStack','_throwTelemetryCollaborationNewChangeset','OTHER_CLIENTS_EDITING','shouldCloseConn','splice','/universer-api/uniscript','parse','/universer-api/authz','LIVESHARE_FETCH_OPERATIONS','allowed','ws://127.0.0.1:8000/universer-api/comb/connect','Univer','_transformAndApplyRemoteChangeset','from','_members','_collaborationUIEventService','_onConflict','rev','enableAuthServer','_awaitingChangeset','CLOSE_ROOM','toggleOnline','[CollaborationUndoRedoService]','_injector','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','requestParams','defineProperty','getSnapshotAPIPath','[PendingState]:\x20unhandled\x20univer\x20type:\x20','has','_toggleOnline','params','transformUndoRedo','COMPRESS_MUTATION_APPLY','_initMergeInterceptor','univer-pro.collaboration-client.single-active-unit-service','_getCurrentRevision','_onRecvEvent','77fnXQwj','isPermissionRej','not_collab','_cfgEnableObjInherit','fetching\x20missing\x20changesets\x20from\x20','joinRsp','get','disposeWithMe','UUID','/collaborator','_submitChangeset','collaboration_new_changeset','_httpService','data','[CollaborationSessionService]','awaiting_with_pending','override','session.room-cnt-exceeds','_changesetSessionId','snapshotServerUrl','_snapshotService','PERMISSION_REJ','_clearRedo','append','setCurrentUser','[OfflineState]:\x20received\x20acknowledgement.','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','sessionStatus$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','length','LIVESHARE_NEW_HOST','SYNCED','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','unknown','_getAPIPrefixPath','saveChangeset','appendMutation','origin','_onRemoteRejected','_applyRemoteChangeset','getTime','[CollaborationEntity]','CHANGESET_SHOULD_RETRY','_members$','/new_changes','_onUserLeave','collabWebSocketUrl','pending','includes','_clearScheduledTask','_resendTimeout','unitID','then','socket\x20open.','UNIVER_DOC','_checkMissing','getUnitOnRev','x-univer-host','objectID','changesets','_localeService','editingUnit','_handlerCallback','values','listRoles','cmd','clear','_resendTimer','_sendingTimer','getTypeOfUnitDisposed$','_commandService','getActiveSheet','_changesetReqId','symbol','liveShareNewHost','_clearUndo','_onUserJoin','toPrimitive','_state$','subject','message$','href','stringify','status','_userManagerService','onRemoteRej','_retryCount','updateCursorEvent','getCurrentSelections','_replaceFileID','_sheetTransformSelectionsService','_univerInstanceService','requireSession','subscribe','sendChangesetTimeout','?size=','members','_startCollaboration','_showConflictNotification','JOIN_ROOM_NOT_EXISTS','_unlockTransition','_shouldReportTelemetry','LIVESHARE_TERMINATE','10DvVQzc','\x20-\x20','_stopTelemetryCollaborationNewChangeset','list','getResourcesRequest','SOCKET_FAILED','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','FETCH_MISS','_pendingMutations','_handler','USERS_LEAVE','_getAPIPrefix','workbook','removeMember','getCfgEnableObjInherit','readyForCollab','signUrlServerUrl','fetch_missing','_socket$','LEAVE','awaitingChangeset','state$','_decreaseWaiting','\x0aAfter:\x20','_entityInit$','replace','_emitMembers','commentUpdate$','mutations','floor','getUnit','COMMENT_UPDATE','resolve','OPTIONAL','interceptor','[OfflineState]:\x20received\x20changeset.','[PendingState]:\x20received\x20acknowledgement.','setShowComponents','getImageSourceCache','/-/object/list','_event$','reject','CHANGESET_ACK','_resendWithTimeout','focused$','fetchThroughInterceptors','_onMessage','_imageSourceCache','onTransformState','_transformStateCache','getFocusedUnit','SUBMIT_CHANGESET','session.join-failed','addHandlerCallback','unitId\x20is\x20not\x20found','emitEvent','putCollaborators','_getUndoStack','JOIN','memberID','/universer-api/stream/file/upload','CONFLICT','default','saveSheetBlock','submit\x20changeset\x20error!','_schedule','_collabSessionService','transformSelections','update','createCollaborator','onTransformSelections','_initDependencies','send','entries','IDLE','function','[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.','onload','session.room-not-exists','_unitID','c1Prime','enableSingleActiveInstanceLock','HEARTBEAT_INTERVAL','_permissionService','pauseCollaboration','onlyLocal','[OfflineState]:\x20received\x20rejection.','PSEUDO_FETCH_MISSING_RESULT','originalMeta','getMemberID','_onFetchMissResult','ERROR_IMAGE','string','waitForRoom$','sort','univer-pro.collaboration-client.network-condition.service','onTransformIME','loginUrlKey','synced','localeService','_getDownloadEndpointURL','url','_eventService','init','getSheetBlock','INGEST','_onLocalMutation','35878hQiVOY','NO_OTHER_CLIENTS_EDITING','onLocalMutation','AWAITING','iterator','_disableEditing','session','result','updatePermissionObjEvent','unitId','/universer-api/snapshot','next','CHANGESET_REJ','_snapshotServerService','_collaborationPaused','onMissedChangesetFetched','_updateStatus','socketService','min','slice','_socketMessageSubscription','updatePermissionPoint','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','getConfig','readAsDataURL','/object','loadOfflineData','getWorkbookSelections','univer-pro.collaboration-client-socket-service','_configService','sid','_unitInfo$','map','_singleActiveUnitService','capture','patch','_revisionService','m2Prime','permissionRejEvent','collaboratorID','_onOffline','complete','isArray','onCommentUpdate','responseType','_maxTotalRetryTimeout','onRemoteRetry','snapshot','_transformSelections','HELLO','call','_getRedoStack','getCollabEntity','_remoteChangesetQueue','_fetchMissChangesets','saveSnapshot','set','[CollaborationState]:\x20apply\x20error!','socket\x20close','_rescheduleHeartbeat','2253016fUlaTt','FileId','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_getSignURL','_doCreateSocket','debug','_tryEnsureSocket','onMutationExecutedForCollab','2764980xpFLDX','onMissingChangesets','_transitionLocked','avatar','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','6174608fmKSiI','_status$','routeKey','pluginName','_scheduleCompleteTimestamp','conflict','method','1329875aZmfJO','PENDING','resend','equals','0.25.1','executeCommand','put','_sendHeartbeat','UNISCRIPT_RUN','_compressMutationService','error$','text-x','save\x20fail\x20reason\x20is\x20','onTransformRemoteChangesetByIMECache','setConfig','HEARTBEAT_TIMEOUT','startsWith','_onRemoteACK','downloadEndpointUrl','some','_telemetryService','OTHER_CLIENT_EDITING','location','_onJoinRoomEvent','ONLINE','close$','reverse','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','updateMember','_instanceService','collaborators','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','onRemoteAck','_entities','SHOULD_CLOSE_CONN','People','_undoStacks','RETRY_CONNECTING_MAX_COUNT','_localCacheService','getUnitType','dispose$','collaboration-client.config','loadUnit','LOCAL_CACHE_INTERVAL','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','actions','objects','3MfkZfo','localCacheService','_onConnectionFailed','ERROR_EXCEED_SIZE','toggleOffline','&source=','_clearHeartbeatTimer','COMPRESS_MUTATION_SEND','asObservable','awaiting','/unit/','_queuedRemoteChangesets','code','uniscriptRunEvent','_handleRemoteChangesets','/object/','UPDATE_CURSOR','closeSession','_retryConnectingTimer','/universer-api/snapshot/','joinEvent','eventID','_getSendChangesetTimeout','_incrementRevisionNumber','_networkConditionService','GLOBAL_ROOMS_CNT_EXCEEDS','_sender','body','confirm','PERSON','commentUpdateEvent','_onCombEvent','getTypeOfUnitAdded$','catch','hostname','POST','JOIN_ROOM_FAILED','file','fromCollab','_acknowledgeAwaitingIfReady','objectType','dispose','unitInfo$','FETCH_MISSING','getCollabEntity$','_type','online$','deleteCollaborator','_registerDependencies','max','onRemoteChangeset','error','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','transformChangesets','target','_createInitialState','size','_config','reqId','type','_acknowledgedAwaitingRevision','_change$','_onConnectionOpen','_updateLocalCache','entityInit$','state','loadSheet','delete','USERS_ENTER','liveShareOperation','_waitCount','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','every','_roomMembers','headers','baseRev','find','_lockTransition','reduce','_HTTPService','UPDATE_PERMISSION_OBJ','missingChangesets','session.room-permission-denied','\x20to\x20','initWorkbookPermissionChange','/role','push','[PendingState]:\x20received\x20rejection.','MUTATION','retryConnectingInterval','unit','_toggleOffline','_sessions','_socketService','_initRequestHeader','resourceIDs','[UniverCollaborationClientPlugin]','4aRulnI','_initCloseConn','sessionStatus','_socket','_getCtorByUniverInstanceType','charCodeAt','getUnitId','getValue','_clearLocalCache','forEach','UnitEmbedded','JOINING','_transformRemoteChangesetByStateCache','SUBMIT_CHANGESET_TIMEOUT','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','createInstance','open$','/-/object/-/batch_allowed','now','_candidateSocket','JOIN_ROOM_PERMISSION_DENIED','_clearCollaborationTimeoutTimer','fromCharCode','encodeURIComponent','_listenToNetworkCondition','onSendChangeset','/block/','_sendHeartbeatTimer','_commentService','31914ljAvIQ','selections','getDeserializedSheetBlock','title','_collaborationTimeoutTimer','_init','_syncEditingCollabCursor','status$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','change$','leaveEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','HEARTBEAT','textRanges','transformMutationsWithChangeset','_redoStacks','_updateState','&assign=','getInterceptPoints','onTransformRemoteChangesetByStateCache','_collaborationSessionService','_transformService','authzUrl','_acknowledgeAwaiting','event$','batchAllowed','_timeoutTimer','/universer-api/comb','compose','collaboration-client.local-cache-service','_commentUpdate$','[SyncedState]:\x20received\x20acknowledgement.','_sessionStatus$','collabSubmitChangesetUrl','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','fetchMiss','roomInfos','AWAITING_WITH_PENDING','setWaitCount','UNIVER_SHEET','_joinRoom','_state','createSocket','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','withCredentials','[DataLoaderService]','_undoRedoService','PERMISSION_DENIED','_onRemoteChangeset','reconnect','&to=','_createSocket','revision','_telemetryInfo','MSG_FOR_ERROR','getCurrentRevOfUnit','ERROR_IMAGE_TYPE','_transformUndoredo','close','_tryReconnect','session.room-full','908862atNRHW','getAllMembers','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_clearRetryConnectingTimer','prototype','_isPermissionRej','uploadFileServerUrl','_initUnitPermissionChange','range','OFFLINE','_createInitialStateImpl','roles','telemetry\x20info\x20is\x20not\x20initialized','add','saveImage','BASE64','_removeRoom','userID','number','__Key__','updateSnapshot','failed\x20to\x20apply\x20missed\x20changesets!','/universer-api/user/session-ticket','Failed\x20to\x20update\x20permission\x20point','{fileID}','object','_isEchoedAwaitingChangeset','filter','/universer-api/oidc/authpage'];_0xeabc=function(){return _0x5cda59;};return _0xeabc();}let $t=class extends Zt{constructor(_0x90b2a3,_0x4a1416,_0x5de253,_0xa6f4f6,_0x555a90,_0x2f3d9f,_0x2d85cb,_0x55e4a8,_0x5235f9,_0x2f8120,_0x32118f,_0x373d84,_0xaad83a,_0x3c66a4,_0x2cd193){const _0x2c9d04=_0x43980f;super(_0x90b2a3,_0x5de253,_0x4a1416,_0xa6f4f6,_0x555a90,_0x2f3d9f,_0x2d85cb,_0x5235f9,_0x2f8120,_0x32118f,_0x373d84,_0xaad83a,_0x3c66a4,_0x2cd193),this[_0x2c9d04(0x34a)]=_0x90b2a3,this[_0x2c9d04(0x227)]=_0x4a1416,this[_0x2c9d04(0x371)]=_0x55e4a8;}['_createHandler'](){const _0x507032=_0x43980f;let _0x524f4b=super[_0x507032(0x2d5)]();return _0x524f4b[_0x507032(0x3c4)]=_0x4e17a5=>this['_sheetTransformSelectionsService']['transformSelections'](_0x4e17a5),_0x524f4b;}async[_0x43980f(0x26f)](){const _0x3ddb2c=_0x43980f;let _0x35bbac=await super[_0x3ddb2c(0x26f)]();return this[_0x3ddb2c(0x31e)](this['_commandService'][_0x3ddb2c(0x1b0)]((_0x193000,_0x497891)=>{const _0x5cb12a=_0x3ddb2c;if(_0x193000[_0x5cb12a(0x227)]!==_0x96f3a4[_0x5cb12a(0x244)]||_0x497891!=null&&_0x497891[_0x5cb12a(0x212)]||_0x497891!=null&&_0x497891[_0x5cb12a(0x156)])return;let _0x351d09=_0x193000[_0x5cb12a(0x310)];if((_0x351d09==null?void 0x0:_0x351d09[_0x5cb12a(0x175)])!==this['unitID'])return;let _0x171e15=_0x193000,_0x2630a4=this[_0x5cb12a(0x1c6)][_0x5cb12a(0x3a0)][_0x5cb12a(0x3ab)](this[_0x5cb12a(0x1c6)][_0x5cb12a(0x3a0)][_0x5cb12a(0x27c)]()[_0x5cb12a(0x1f3)])([_0x171e15],this[_0x5cb12a(0x372)])||[_0x171e15];this[_0x5cb12a(0x16b)](_0x2630a4[0x0]);})),_0x35bbac;}};$t=z([R(0x3,_0x1c7850(_0xd7c234)),R(0x4,_0x1c7850(_0x32355b)),R(0x5,_0x1c7850(_0x24941e)),R(0x6,_0x1c7850(_0x40cc5a)),R(0x7,_0x1c7850(H)),R(0x8,_0x1c7850(L)),R(0x9,_0x5f47c6),R(0xa,_0x4a2db6),R(0xb,_0x2e910a),R(0xc,_0x57bb9f),R(0xd,_0x4d2f7f(jt)),R(0xe,_0x4d2f7f(V))],$t);const en=_0x45c4cd(_0x43980f(0x160));function tn(_0x57524a){const _0x597180=_0x43980f;let _0x34d0dd=_0x57524a[_0x597180(0x324)],_0x4631f3=JSON[_0x597180(0x2f7)](_0x34d0dd);switch(_0x4631f3[_0x597180(0x358)]){case _0x184423[_0x597180(0x276)]:case _0x184423['HELLO']:{let _0x2eedf8=_0x4631f3['infoRsp'];return{..._0x4631f3,'data':_0x2eedf8,'cmd':_0x4631f3[_0x597180(0x358)]};}case _0x184423['JOIN']:{let _0x2f505c=_0x4631f3[_0x597180(0x31c)];return{..._0x4631f3,'data':_0x2f505c,'cmd':_0x4631f3[_0x597180(0x358)]};}case _0x184423['RECV']:{let _0x987713=_0x4631f3[_0x597180(0x2f0)];switch(_0x987713[_0x597180(0x201)]){case _0x3cfbbf[_0x597180(0x32c)]:var _0x5139ec;return{..._0x4631f3,'data':{..._0x987713,'data':(_0x5139ec=_0x987713[_0x597180(0x193)])==null?void 0x0:_0x5139ec['cs']},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf['CHANGESET_ACK']:var _0x4e114f;return{..._0x4631f3,'data':{..._0x987713,'data':(_0x4e114f=_0x987713[_0x597180(0x2d9)])==null?void 0x0:_0x4e114f['cs']},'cmd':_0x4631f3['cmd']};case _0x3cfbbf['NEW_CHANGESETS']:var _0x2726be;return{..._0x4631f3,'data':{..._0x987713,'data':(_0x2726be=_0x987713[_0x597180(0x2cc)])==null?void 0x0:_0x2726be['cs']},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf[_0x597180(0x178)]:var _0x3d49ed;return{..._0x4631f3,'data':{..._0x987713,'data':(_0x3d49ed=_0x987713['csRejEvent'])==null?void 0x0:_0x3d49ed['cs']},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf[_0x597180(0x341)]:var _0x4dd2d5;return{..._0x4631f3,'data':{..._0x987713,'data':(_0x4dd2d5=_0x987713[_0x597180(0x2c7)])==null?void 0x0:_0x4dd2d5['cs']},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf[_0x597180(0x1fc)]:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x36e)]},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf['USERS_ENTER']:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x200)]},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf[_0x597180(0x388)]:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x274)]},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf['LIVESHARE_NEW_HOST']:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x361)]},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf[_0x597180(0x2f9)]:case _0x3cfbbf[_0x597180(0x182)]:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x231)]},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf[_0x597180(0x37d)]:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x361)]},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf['MSG_FOR_ERROR']:return{..._0x4631f3,'data':_0x987713,'cmd':_0x4631f3['cmd']};case _0x3cfbbf[_0x597180(0x39d)]:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x20a)]},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf[_0x597180(0x23c)]:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x174)]},'cmd':_0x4631f3[_0x597180(0x358)]};case _0x3cfbbf[_0x597180(0x1df)]:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x2f4)]},'cmd':_0x4631f3['cmd']};case _0x3cfbbf['UNISCRIPT_RUN']:return{..._0x4631f3,'data':{..._0x987713,'data':_0x987713[_0x597180(0x1f9)]},'cmd':_0x4631f3[_0x597180(0x358)]};default:return _0x4631f3;}}default:return _0x4631f3;}}function nn(_0xd8b49f){const _0x9f7feb=_0x43980f;switch(_0xd8b49f[_0x9f7feb(0x358)]){case _0x184423[_0x9f7feb(0x276)]:case _0x184423[_0x9f7feb(0x19e)]:return JSON['stringify']({'cmd':_0xd8b49f[_0x9f7feb(0x358)],'routeKey':_0xd8b49f['routeKey']});case _0x184423['INGEST']:{let _0x1d22ff;switch(_0xd8b49f[_0x9f7feb(0x324)][_0x9f7feb(0x201)]){case _0x3cfbbf[_0x9f7feb(0x1fc)]:_0x1d22ff={'eventID':_0x3cfbbf[_0x9f7feb(0x1fc)],'updateCursorEvent':_0xd8b49f['data'][_0x9f7feb(0x324)]};break;case _0x3cfbbf[_0x9f7feb(0x388)]:_0x1d22ff={'eventID':_0x3cfbbf[_0x9f7feb(0x388)],'leaveEvent':_0xd8b49f[_0x9f7feb(0x324)]['data']};break;case _0x3cfbbf[_0x9f7feb(0x230)]:_0x1d22ff={'eventID':_0x3cfbbf[_0x9f7feb(0x230)],'joinEvent':_0xd8b49f[_0x9f7feb(0x324)]['data']};break;case _0x3cfbbf['LIVESHARE_NEW_HOST']:_0x1d22ff={'eventID':_0x3cfbbf[_0x9f7feb(0x335)],'liveShareNewHost':_0xd8b49f[_0x9f7feb(0x324)][_0x9f7feb(0x324)]};break;case _0x3cfbbf[_0x9f7feb(0x182)]:_0x1d22ff={'eventID':_0x3cfbbf[_0x9f7feb(0x182)],'liveShareOperation':_0xd8b49f[_0x9f7feb(0x324)][_0x9f7feb(0x324)]};break;case _0x3cfbbf[_0x9f7feb(0x37d)]:_0x1d22ff={'eventID':_0x3cfbbf[_0x9f7feb(0x37d)],'liveShareTerminate':_0xd8b49f[_0x9f7feb(0x324)][_0x9f7feb(0x324)]};break;case _0x3cfbbf[_0x9f7feb(0x183)]:_0x1d22ff={'eventID':_0x3cfbbf['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0xd8b49f[_0x9f7feb(0x324)][_0x9f7feb(0x324)]};break;case _0x3cfbbf['LIVESHARE_FETCH_OPERATIONS']:_0x1d22ff={'eventID':_0x3cfbbf['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x1d22ff={'eventID':_0xd8b49f['data'][_0x9f7feb(0x201)]};}return JSON['stringify']({'cmd':_0xd8b49f[_0x9f7feb(0x358)],'routeKey':_0xd8b49f['routeKey'],'collaMsg':_0x1d22ff});}case _0x184423[_0x9f7feb(0x3b8)]:return JSON[_0x9f7feb(0x369)]({'cmd':_0xd8b49f[_0x9f7feb(0x358)],'routeKey':_0xd8b49f[_0x9f7feb(0x1b8)],'joinReq':_0xd8b49f[_0x9f7feb(0x324)]});case _0x184423[_0x9f7feb(0x391)]:return JSON[_0x9f7feb(0x369)]({'cmd':_0xd8b49f[_0x9f7feb(0x358)],'routeKey':_0xd8b49f[_0x9f7feb(0x1b8)],'leaveReq':_0xd8b49f[_0x9f7feb(0x324)]});default:throw Error(_0x9f7feb(0x1ab));}}const rn=_0x45c4cd(_0x43980f(0x189));function an(_0x2a1461,_0x3eb9e7,_0x5b8e13){const _0xf0a131=_0x43980f;return _0x2a1461+'/'+_0x3eb9e7+_0xf0a131(0x1f6)+_0x5b8e13+_0xf0a131(0x343);}let on=class extends _0x584d56{constructor(_0xefb672,_0x1298bc,_0x3c4d9c,_0x2d6c49,_0x125df8){const _0x17f2a8=_0x43980f;super(),this[_0x17f2a8(0x308)]=_0xefb672,this[_0x17f2a8(0x323)]=_0x1298bc,this[_0x17f2a8(0x18a)]=_0x3c4d9c,this[_0x17f2a8(0x2ed)]=_0x2d6c49,this[_0x17f2a8(0x179)]=_0x125df8;}[_0x43980f(0x1ad)](_0x48c1a1){const _0x4b557b=_0x43980f;let _0x3aeff4=this[_0x4b557b(0x308)][_0x4b557b(0x31d)](_0x466b0a);if(!_0x3aeff4)throw Error(_0x4b557b(0x25b));let _0x3aa710=_0x3aeff4[_0x4b557b(0x294)](_0x48c1a1);if(!_0x3aa710)throw Error(_0x4b557b(0x1e9));let _0x5edc05=new _0x5e2194(),_0x9190d5=new _0x3c8873();_0x5edc05[_0x4b557b(0x2b4)](_0x3aa710[_0x4b557b(0x1d6)][_0x4b557b(0x374)](_0x2cfe9a=>_0x9190d5[_0x4b557b(0x177)](_0x2cfe9a))),_0x5edc05[_0x4b557b(0x2b4)](_0x148718(()=>_0x9190d5[_0x4b557b(0x196)]()));let _0x711248=new _0x3c8873();_0x5edc05[_0x4b557b(0x2b4)](_0x3aa710[_0x4b557b(0x1c7)][_0x4b557b(0x374)](_0x153aa6=>_0x711248['next'](_0x153aa6))),_0x5edc05[_0x4b557b(0x2b4)](_0x148718(()=>_0x711248['complete']()));let _0x135407=new _0x3c8873();_0x5edc05[_0x4b557b(0x2b4)](_0x3aa710['message$'][_0x4b557b(0x374)](_0x4fec80=>{const _0x58d92b=_0x4b557b;let _0x34e8ae=tn(_0x4fec80);_0x135407[_0x58d92b(0x177)](_0x34e8ae);})),_0x5edc05['add'](_0x148718(()=>_0x135407[_0x4b557b(0x196)]()));let _0x35499d,_0x1ecc14=()=>{const _0x2c1aec=_0x4b557b;_0x711248[_0x2c1aec(0x177)](new Event('connection\x20error')),_0x9190d5[_0x2c1aec(0x177)](new Event('connection\x20error')),_0x35499d[_0x2c1aec(0x2a4)]();};return _0x35499d={'memberID':'','close$':_0x9190d5['asObservable'](),'error$':_0x711248['asObservable'](),'open$':_0x3aa710[_0x4b557b(0x25d)],'message$':_0x135407[_0x4b557b(0x1f4)](),'send':_0x1f0230=>{const _0x26aa46=_0x4b557b;if(_0x1f0230[_0x26aa46(0x358)]===_0x184423[_0x26aa46(0x16a)]){if(_0x1f0230[_0x26aa46(0x324)][_0x26aa46(0x201)]===_0x3cfbbf['SUBMIT_CHANGESET']){this[_0x26aa46(0x321)](_0x35499d,_0x1f0230[_0x26aa46(0x324)])['catch'](_0x2847d0=>{const _0x12690d=_0x26aa46;this[_0x12690d(0x2ed)][_0x12690d(0x21f)](_0x2847d0),_0x1ecc14();});return;}if(_0x1f0230[_0x26aa46(0x324)][_0x26aa46(0x201)]===_0x3cfbbf[_0x26aa46(0x217)]){let _0x1ff451=_0x1f0230[_0x26aa46(0x324)];this[_0x26aa46(0x1a3)](_0x1ff451)[_0x26aa46(0x34b)](_0x11f5cc=>{const _0x29dff9=_0x26aa46;_0x135407[_0x29dff9(0x177)]({'cmd':_0x184423['RECV'],'code':_0x4348e9['OK'],'routeKey':_0x1ff451[_0x29dff9(0x324)][_0x29dff9(0x34a)],'routeType':'','data':{'eventID':_0x3cfbbf[_0x29dff9(0x158)],'data':{'changesets':_0x11f5cc}}});})[_0x26aa46(0x20d)](_0x6adaca=>{const _0x2e4373=_0x26aa46;this[_0x2e4373(0x2ed)][_0x2e4373(0x21f)](_0x6adaca),_0x1ecc14();});return;}}_0x3aa710['send'](nn(_0x1f0230));},'close':()=>{const _0x1c11b7=_0x4b557b;_0x3aa710['close'](),_0x5edc05[_0x1c11b7(0x215)]();}},_0x35499d;}async[_0x43980f(0x321)](_0x3fd5ef,_0x27ceeb){const _0x4c05c7=_0x43980f;var _0x2d7a87;let {unitType:_0x151193,unitID:_0x2d2ab6,changeset:_0x1ea14a}=_0x27ceeb[_0x4c05c7(0x324)],_0x1b93ad={'unitID':_0x2d2ab6,'memberID':_0x3fd5ef[_0x4c05c7(0x3b9)],'type':_0x151193,'changeset':_0x27d357(_0x1ea14a)},_0x3d5805=this[_0x4c05c7(0x18a)]['getConfig'](U),_0xe613d=an((_0x2d7a87=_0x3d5805==null?void 0x0:_0x3d5805[_0x4c05c7(0x28b)])==null?_0x4c05c7(0x285):_0x2d7a87,_0x151193,_0x2d2ab6);try{await this[_0x4c05c7(0x323)][_0x4c05c7(0x2d7)](_0xe613d,{'body':_0x1b93ad});}catch(_0x2c3711){throw this['_logService'][_0x4c05c7(0x21f)]('[CollaborationSession]',_0x4c05c7(0x3be)),_0x2c3711;}}async['_fetchMissChangesets'](_0x91aef2){const _0x48c89c=_0x43980f;let {unitID:_0x3281cc,from:_0x57ec0c,to:_0x5f13c7,unitType:_0x2428d0}=_0x91aef2['data'];return(await this[_0x48c89c(0x179)][_0x48c89c(0x2ca)]({'metadata':void 0x0},{'unitID':_0x3281cc,'type':_0x2428d0,'from':_0x57ec0c,'to':_0x5f13c7}))[_0x48c89c(0x352)][_0x48c89c(0x18d)](_0x17b4e6=>((_0x17b4e6['mutations']===null||_0x17b4e6[_0x48c89c(0x39a)]===void 0x0)&&(_0x17b4e6[_0x48c89c(0x39a)]=[]),_0x17b4e6));}};on=z([R(0x0,_0x1c7850(_0xd7c234)),R(0x1,_0x1c7850(_0x5c7bc5)),R(0x2,_0x581647),R(0x3,_0x4a2db6),R(0x4,_0x5e9253)],on);let Q=class extends _0x584d56{get['_socket'](){return this['_socket$']['getValue']();}constructor(_0x26a09f,_0x820249,_0x3a566c,_0x43e722,_0x23c234,_0x4241b0){const _0x109430=_0x43980f;super(),this['_injector']=_0x26a09f,this['_logService']=_0x820249,this[_0x109430(0x18a)]=_0x3a566c,this[_0x109430(0x249)]=_0x43e722,this[_0x109430(0x300)]=_0x23c234,this[_0x109430(0x204)]=_0x4241b0,I(this,_0x109430(0x390),new _0x1eef50(void 0x0)),I(this,'socket$',this[_0x109430(0x390)][_0x109430(0x1f4)]()),I(this,_0x109430(0x260),null),I(this,'_sessions',new Map()),I(this,_0x109430(0x1b7),new _0x1eef50(0x0)),I(this,_0x109430(0x271),this[_0x109430(0x1b7)]['asObservable']()),I(this,_0x109430(0x2c8),!0x1),I(this,_0x109430(0x1fe),void 0x0),I(this,_0x109430(0x36d),0x0),I(this,'_socketMessageSubscription',null),I(this,_0x109430(0x268),void 0x0),I(this,_0x109430(0x284),void 0x0),this[_0x109430(0x265)]();}[_0x43980f(0x265)](){const _0x543de8=_0x43980f;this[_0x543de8(0x204)]&&this[_0x543de8(0x31e)](this['_networkConditionService'][_0x543de8(0x21a)]['subscribe'](_0x2a3ed2=>{const _0x298bdd=_0x543de8;_0x2a3ed2&&!this['_socket']&&this[_0x298bdd(0x29b)](),_0x2a3ed2||this[_0x298bdd(0x195)]();}));}[_0x43980f(0x215)](){const _0x1e80fe=_0x43980f;var _0x58540d;super[_0x1e80fe(0x215)](),(_0x58540d=this['_socketMessageSubscription'])==null||_0x58540d[_0x1e80fe(0x2ce)](),this[_0x1e80fe(0x180)]=null,this[_0x1e80fe(0x2aa)](),this[_0x1e80fe(0x2e6)](),this[_0x1e80fe(0x1f2)](),this['_sessions'][_0x1e80fe(0x256)](_0x4afa7d=>_0x4afa7d[_0x1e80fe(0x215)]()),this[_0x1e80fe(0x248)][_0x1e80fe(0x359)](),this[_0x1e80fe(0x1b7)]['complete']();}async[_0x43980f(0x373)](_0x3ae13a){const _0x457ae4=_0x43980f;if(this[_0x457ae4(0x248)][_0x457ae4(0x30e)](_0x3ae13a))return this['_sessions'][_0x457ae4(0x31d)](_0x3ae13a);this[_0x457ae4(0x1af)]();let _0x246f05=this[_0x457ae4(0x308)][_0x457ae4(0x25c)](Ot,_0x3ae13a,this[_0x457ae4(0x390)][_0x457ae4(0x1f4)]());return this['_sessions']['set'](_0x3ae13a,_0x246f05),_0x246f05;}[_0x43980f(0x1fd)](_0x10ebbf){const _0x13a171=_0x43980f;let _0x1ba689=this[_0x13a171(0x248)][_0x13a171(0x31d)](_0x10ebbf);if(_0x1ba689&&(this[_0x13a171(0x248)][_0x13a171(0x22f)](_0x10ebbf),_0x1ba689['close']()),!this[_0x13a171(0x248)]['size']){var _0x41c0ee;(_0x41c0ee=this[_0x13a171(0x250)])==null||_0x41c0ee['close']();}}[_0x43980f(0x29b)](){const _0x2c96d5=_0x43980f;this[_0x2c96d5(0x36d)]=0x0,this[_0x2c96d5(0x2aa)](),this['_tryReconnect']();}[_0x43980f(0x2aa)](){const _0x33fd10=_0x43980f;this[_0x33fd10(0x1fe)]!=null&&(clearTimeout(this[_0x33fd10(0x1fe)]),this[_0x33fd10(0x1fe)]=null);}async[_0x43980f(0x29d)](){const _0x43d233=_0x43980f;var _0x4b831f;let _0x5a2617=this['_configService'][_0x43d233(0x184)](U),_0x181f39=(_0x4b831f=_0x5a2617==null?void 0x0:_0x5a2617[_0x43d233(0x345)])==null?ut:_0x4b831f,_0x462d60=await this[_0x43d233(0x249)][_0x43d233(0x294)](_0x181f39);return this[_0x43d233(0x260)]=_0x462d60,_0x462d60;}async[_0x43980f(0x1af)](){const _0x412172=_0x43980f;try{var _0x18c27b,_0x549365;let _0xb68b07=(_0x18c27b=(_0x549365=this[_0x412172(0x250)])==null?this[_0x412172(0x260)]:_0x549365)==null?await this[_0x412172(0x29d)]():_0x18c27b;if(_0xb68b07){var _0x26298f;let _0x11a37a=_0xb68b07[_0x412172(0x3c6)];_0xb68b07[_0x412172(0x3c6)]=_0x182da0=>(_0x182da0[_0x412172(0x358)]!==_0x184423['LEAVE']&&this[_0x412172(0x1a8)](),_0x11a37a['apply'](_0xb68b07,[_0x182da0])),(_0x26298f=this['_socketMessageSubscription'])==null||_0x26298f[_0x412172(0x2ce)](),this[_0x412172(0x180)]=null,this[_0x412172(0x180)]=_0xb68b07['message$']['subscribe'](_0x21ddf5=>this[_0x412172(0x3ac)](_0xb68b07,_0x21ddf5)),_0xb68b07['error$'][_0x412172(0x2dc)](_0x15a839(0x1))[_0x412172(0x374)](_0x25053f=>this['_logService'][_0x412172(0x21f)]('[CollaborationSessionService]:\x20socket\x20error',_0x25053f)),_0xb68b07[_0x412172(0x25d)][_0x412172(0x2dc)](_0x15a839(0x1))[_0x412172(0x374)](()=>{const _0x3fccc5=_0x412172;this[_0x3fccc5(0x22a)](_0xb68b07);}),_0xb68b07[_0x412172(0x1d6)][_0x412172(0x2dc)](_0x15a839(0x1))[_0x412172(0x374)](_0xfc78f2=>{const _0x53d95a=_0x412172;this[_0x53d95a(0x2ed)][_0x53d95a(0x1ae)](_0x53d95a(0x325),_0x53d95a(0x1a7),_0xfc78f2),this[_0x53d95a(0x1ee)]();});}}catch(_0x584cc5){this[_0x412172(0x2ed)][_0x412172(0x21f)](_0x584cc5),this[_0x412172(0x1ee)]();}}[_0x43980f(0x22a)](_0x4fd20a){const _0x13f7c2=_0x43980f;this[_0x13f7c2(0x2ed)][_0x13f7c2(0x1ae)](_0x13f7c2(0x325),_0x13f7c2(0x34c)),_0x4fd20a[_0x13f7c2(0x3c6)]({'cmd':_0x184423['HELLO']}),this[_0x13f7c2(0x1a8)]();}[_0x43980f(0x195)](){const _0x398015=_0x43980f;this[_0x398015(0x2c8)]=!0x1,this[_0x398015(0x260)]=null,this['_status$'][_0x398015(0x177)](0x2),this[_0x398015(0x390)][_0x398015(0x177)](null),this[_0x398015(0x2e6)](),this[_0x398015(0x1f2)]();}['_onConnectionFailed'](){const _0x5bf31d=_0x43980f;var _0x3ad22f;this[_0x5bf31d(0x195)](),this[_0x5bf31d(0x36d)]<((_0x3ad22f=this[_0x5bf31d(0x18a)][_0x5bf31d(0x184)](_0x5bf31d(0x1e2)))==null?0x3:_0x3ad22f)?(this[_0x5bf31d(0x300)]['emitEvent']({'id':_0x5bf31d(0x2d6)}),this['_tryReconnect']()):this[_0x5bf31d(0x300)]['emitEvent']({'id':_0x5bf31d(0x383)});}[_0x43980f(0x2a5)](){const _0x496360=_0x43980f;var _0x2f3f46;let _0x2ee115=this[_0x496360(0x36d)],_0x54a2ff=this[_0x496360(0x18a)]['getConfig'](U),_0x23d38b=_0x2ee115===0x0?0x0:((_0x2f3f46=_0x54a2ff==null?void 0x0:_0x54a2ff[_0x496360(0x245)])==null?0x4e20:_0x2f3f46)*0x2**_0x2ee115;this[_0x496360(0x1fe)]=setTimeout(()=>{const _0x14fd58=_0x496360;clearTimeout(this['_retryConnectingTimer']),this[_0x14fd58(0x1fe)]=null,this['_tryEnsureSocket']();},_0x23d38b),this[_0x496360(0x36d)]+=0x1;}['_onMessage'](_0x52e502,_0x539487){const _0x36b4e6=_0x43980f;let {cmd:_0x10ad96}=_0x539487;_0x10ad96===_0x184423[_0x36b4e6(0x19e)]&&!this[_0x36b4e6(0x2c8)]&&(_0x52e502[_0x36b4e6(0x3b9)]=_0x539487[_0x36b4e6(0x324)][_0x36b4e6(0x3b9)],this[_0x36b4e6(0x390)]['next'](_0x52e502),this[_0x36b4e6(0x1b7)][_0x36b4e6(0x177)](0x3),this[_0x36b4e6(0x2c8)]=!0x0,this[_0x36b4e6(0x260)]=null),_0x10ad96===_0x184423[_0x36b4e6(0x276)]&&this['_clearTimeoutTimer'](),this[_0x36b4e6(0x1a8)]();}[_0x43980f(0x1a8)](){const _0x292e2f=_0x43980f;var _0x13fcb7;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x13fcb7=this[_0x292e2f(0x18a)][_0x292e2f(0x184)](_0x292e2f(0x153)))==null?0x7530:_0x13fcb7);}[_0x43980f(0x1c4)](){const _0x3e52a8=_0x43980f;this['_socket'][_0x3e52a8(0x3c6)]({'cmd':_0x184423['HEARTBEAT']}),this[_0x3e52a8(0x2e8)]();}[_0x43980f(0x2e8)](){const _0x3a2a00=_0x43980f;var _0x5cac61;this[_0x3a2a00(0x284)]=setTimeout(()=>this[_0x3a2a00(0x1ee)](),(_0x5cac61=this[_0x3a2a00(0x18a)][_0x3a2a00(0x184)](_0x3a2a00(0x1cc)))==null?mt:_0x5cac61);}['_clearHeartbeatTimer'](){const _0x3dd782=_0x43980f;this[_0x3dd782(0x268)]!=null&&(clearTimeout(this[_0x3dd782(0x268)]),this['_sendHeartbeatTimer']=null);}[_0x43980f(0x2e6)](){const _0x314bed=_0x43980f;this[_0x314bed(0x284)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x314bed(0x284)]=null);}};Q=z([R(0x0,_0x1c7850(_0xd7c234)),R(0x1,_0x4a2db6),R(0x2,_0x581647),R(0x3,rn),R(0x4,_0x1c7850(L)),R(0x5,_0x4d2f7f(en))],Q);let sn=class extends _0x1a88c8{constructor(_0x319898,_0x44ebd5,_0x809488,_0xe24f65){const _0x18b537=_0x43980f;var _0x4d8686;super(),this[_0x18b537(0x308)]=_0x319898,this['_collabSessionService']=_0x44ebd5,this[_0x18b537(0x18a)]=_0x809488,this[_0x18b537(0x372)]=_0xe24f65,I(this,_0x18b537(0x1de),new Map()),I(this,'_entityInit$',new _0x3c8873()),I(this,_0x18b537(0x22c),this['_entityInit$'][_0x18b537(0x1f4)]()),((_0x4d8686=this[_0x18b537(0x18a)][_0x18b537(0x184)]('collaboration-client.config'))==null?void 0x0:_0x4d8686['enableCollaboration'])!==!0x1&&this[_0x18b537(0x26f)]();}[_0x43980f(0x215)](){const _0x56431f=_0x43980f;super[_0x56431f(0x215)](),this['_entities'][_0x56431f(0x256)](_0x354d6d=>_0x354d6d[_0x56431f(0x215)]()),this[_0x56431f(0x1de)][_0x56431f(0x359)]();}[_0x43980f(0x1a1)](_0x492dea){const _0xab263d=_0x43980f;var _0x384612;return(_0x384612=this['_entities'][_0xab263d(0x31d)](_0x492dea))==null?null:_0x384612;}[_0x43980f(0x218)](_0x563812){const _0x142286=_0x43980f;let _0x4bf47=this[_0x142286(0x1a1)](_0x563812);return _0x4bf47?_0x4bafb5(_0x4bf47):this['_entityInit$']['pipe'](_0x1186c5(_0x384732=>_0x384732[_0x142286(0x34a)]===_0x563812));}[_0x43980f(0x38d)](_0x257e6d){const _0x2ca461=_0x43980f;return _0x1b206c(this[_0x2ca461(0x218)](_0x257e6d)[_0x2ca461(0x2dc)](_0x1e4e2f(()=>void 0x0)));}[_0x43980f(0x26f)](){const _0x35b07a=_0x43980f;this[_0x35b07a(0x372)][_0x35b07a(0x20c)](_0x69083d[_0x35b07a(0x291)])[_0x35b07a(0x2dc)](_0x4258f2(this[_0x35b07a(0x1e5)]),_0x435e87(0x10))[_0x35b07a(0x374)](async _0x49c522=>{const _0x1ba3a5=_0x35b07a;let _0x5edf8e=_0x49c522['unit'][_0x1ba3a5(0x253)](),_0x3ddd40=await this[_0x1ba3a5(0x378)](_0x5edf8e,_0x69083d[_0x1ba3a5(0x291)]);this[_0x1ba3a5(0x1de)][_0x1ba3a5(0x1a5)](_0x5edf8e,_0x3ddd40);}),this[_0x35b07a(0x372)][_0x35b07a(0x20c)](_0x69083d[_0x35b07a(0x34d)])[_0x35b07a(0x2dc)](_0x4258f2(this[_0x35b07a(0x1e5)]),_0x435e87(0x10))[_0x35b07a(0x2dc)](_0x1186c5(_0x3ec0ec=>!_0x3ec0ec[_0x35b07a(0x246)][_0x35b07a(0x253)]()[_0x35b07a(0x1cd)]('__')))[_0x35b07a(0x374)](async _0x830ee=>{const _0x5c2df5=_0x35b07a;let _0x326819=_0x830ee[_0x5c2df5(0x246)]['getUnitId'](),_0x2f6d03=await this['_startCollaboration'](_0x326819,_0x69083d['UNIVER_DOC']);this[_0x5c2df5(0x1de)]['set'](_0x326819,_0x2f6d03);}),_0x5a7b08(this['_univerInstanceService'][_0x35b07a(0x35c)](_0x69083d[_0x35b07a(0x291)]),this[_0x35b07a(0x372)][_0x35b07a(0x35c)](_0x69083d['UNIVER_DOC']))['pipe'](_0x4258f2(this[_0x35b07a(0x1e5)]))[_0x35b07a(0x374)](_0x5cef05=>{const _0x25944c=_0x35b07a;let _0x431594=_0x5cef05['getUnitId'](),_0x5de234=this['_entities']['get'](_0x431594);_0x5de234&&(_0x5de234[_0x25944c(0x215)](),this[_0x25944c(0x1de)][_0x25944c(0x22f)](_0x431594));});}async['_startCollaboration'](_0x32ce2e,_0x5c3ec6){const _0x3553d1=_0x43980f;let _0x4bff36=await this[_0x3553d1(0x3c0)][_0x3553d1(0x373)](_0x32ce2e),_0x4421a3=this[_0x3553d1(0x308)][_0x3553d1(0x25c)](this['_getCtorByUniverInstanceType'](_0x5c3ec6),_0x32ce2e,_0x5c3ec6,_0x4bff36);return await _0x4421a3[_0x3553d1(0x168)](),this[_0x3553d1(0x396)]['next'](_0x4421a3),_0x4421a3;}[_0x43980f(0x251)](_0x35b8e0){const _0x4ab58a=_0x43980f;switch(_0x35b8e0){case _0x69083d[_0x4ab58a(0x34d)]:return Qt;case _0x69083d['UNIVER_SHEET']:return $t;default:throw Error(_0x4ab58a(0x2a9)+_0x35b8e0);}}};sn=z([R(0x0,_0x1c7850(_0xd7c234)),R(0x1,_0x1c7850(Q)),R(0x2,_0x581647),R(0x3,_0x5f47c6)],sn);var cn=_0x43980f(0x2ef),ln=_0x43980f(0x1c1);let un=class extends _0x584d56{constructor(_0x2dcde6,_0x57fd8e){const _0x40498d=_0x43980f;super(),this[_0x40498d(0x372)]=_0x2dcde6,this['_configService']=_0x57fd8e,this[_0x40498d(0x26f)]();}[_0x43980f(0x26f)](){const _0x3d14e5=_0x43980f;this[_0x3d14e5(0x31e)](this[_0x3d14e5(0x372)][_0x3d14e5(0x3aa)][_0x3d14e5(0x374)](()=>{const _0x473448=_0x3d14e5;var _0x1ee5f0;let _0x264c3c=this['_univerInstanceService'][_0x473448(0x3b0)](),_0x366e14=(_0x1ee5f0=this['_configService'][_0x473448(0x184)]('DEFAULT_FILE_NAME'))==null?_0x473448(0x2fc):_0x1ee5f0;_0x264c3c instanceof _0x5bdeb0&&(_0x366e14=_0x264c3c[_0x473448(0x2c9)]),document[_0x473448(0x26d)]=_0x366e14;}));}};un=z([R(0x0,_0x5f47c6),R(0x1,_0x581647)],un);let dn=class{constructor(_0x54017e,_0x580b0c,_0xcafceb){const _0x449319=_0x43980f;this[_0x449319(0x18a)]=_0x54017e,this['_httpService']=_0x580b0c,this[_0x449319(0x164)]=_0xcafceb,this[_0x449319(0x168)]();}[_0x43980f(0x168)](){const _0x5313e5=_0x43980f;this['_httpService'][_0x5313e5(0x2d1)]({'priority':0x1,'interceptor':(_0xd95ee3,_0x13dd1e)=>_0x13dd1e(_0xd95ee3)['pipe'](_0x5306a5(async _0x37e024=>{const _0x14ade9=_0x5313e5;let _0x408f5=_0x37e024;if(_0x408f5[_0x14ade9(0x36a)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x14ade9(0x208)](this[_0x14ade9(0x164)]['t'](_0x14ade9(0x2e3)))){let _0xbd1ed4=window[_0x14ade9(0x264)](window['location'][_0x14ade9(0x368)]);window[_0x14ade9(0x1d3)][_0x14ade9(0x368)]=this[_0x14ade9(0x2ee)]()+'?url='+_0xbd1ed4;}}return _0x408f5;}))});}[_0x43980f(0x2ee)](){const _0x8973d0=_0x43980f;var _0x1424ad;let _0x559704=this[_0x8973d0(0x18a)]['getConfig'](U);return(_0x1424ad=_0x559704==null?void 0x0:_0x559704[_0x8973d0(0x162)])==null?_0x8973d0(0x2c3):_0x1424ad;}};dn=z([R(0x0,_0x581647),R(0x1,_0x1c7850(_0x5c7bc5)),R(0x2,_0x1c7850(_0x24941e))],dn);let fn=class extends _0x584d56{constructor(_0x25dc3a,_0x326663){const _0x565e71=_0x43980f;super(),this[_0x565e71(0x23b)]=_0x25dc3a,this['_configService']=_0x326663,I(this,_0x565e71(0x31a),!0x1),this[_0x565e71(0x313)]();}[_0x43980f(0x313)](){const _0x15b995=_0x43980f;let _0x4ddc0a=this;this[_0x15b995(0x31e)](this[_0x15b995(0x23b)][_0x15b995(0x2d1)]({'priority':0x3e7,'interceptor':_0x4c14ec({'isMatch'(_0x424f26){const _0x34c73a=_0x15b995;var _0x49501f;if(_0x424f26[_0x34c73a(0x1bc)]===_0x34c73a(0x20f)&&(_0x49501f=_0x424f26[_0x34c73a(0x30a)])!=null&&_0x49501f[_0x34c73a(0x207)]){let {objectID:_0xf3e9ba,objectType:_0x46b1f7}=_0x424f26[_0x34c73a(0x30a)][_0x34c73a(0x207)]||{};if(!_0xf3e9ba||_0x46b1f7===void 0x0)return!0x1;let _0x279fa4=_0x4ddc0a[_0x34c73a(0x339)]()+'/'+_0x46b1f7+_0x34c73a(0x1fb)+_0xf3e9ba+_0x34c73a(0x2cb);if(_0x424f26[_0x34c73a(0x166)]===_0x279fa4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5bf213){const _0x18aad6=_0x15b995;var _0x50956e;return(_0x50956e=_0x5bf213[_0x18aad6(0x30a)])==null?void 0x0:_0x50956e[_0x18aad6(0x207)];},'mergeParamsToRequest'(_0x3b9881,_0x4c2b32){const _0x1b16a9=_0x15b995;let _0x462926=_0x4ddc0a[_0x1b16a9(0x339)]()+'/-/object/-/batch_allowed',_0x4a9d72=_0x3b9881[_0x1b16a9(0x23a)]((_0x1df8ed,_0x4849c3)=>{const _0xaded9a=_0x1b16a9;let {unitID:_0x18f88d,objectID:_0x537411,objectType:_0x3fed25,actions:_0x2adcb7}=_0x4849c3;return _0x1df8ed[_0x18f88d]||(_0x1df8ed[_0x18f88d]={}),_0x1df8ed[_0x18f88d][_0x537411]||(_0x1df8ed[_0x18f88d][_0x537411]={'objectID':_0x537411,'objectType':_0x3fed25,'actions':[]}),_0x1df8ed[_0x18f88d][_0x537411][_0xaded9a(0x1ea)]['push'](..._0x2adcb7),_0x1df8ed;},{}),_0x1b1031=[];for(let _0x241b18 in _0x4a9d72)for(let _0x6a95a8 in _0x4a9d72[_0x241b18]){let {actions:_0x5bd773,objectType:_0x2493ae}=_0x4a9d72[_0x241b18][_0x6a95a8],_0x67754f=[...new Set(_0x5bd773)];_0x1b1031[_0x1b16a9(0x242)]({'unitID':_0x241b18,'objectID':_0x6a95a8,'objectType':_0x2493ae,'actions':_0x67754f});}return new _0x38f3fb('POST',_0x462926,{'headers':_0x4c2b32[_0x1b16a9(0x236)],'withCredentials':_0x4c2b32[_0x1b16a9(0x296)],'responseType':_0x4c2b32[_0x1b16a9(0x199)],'body':{'requests':_0x1b1031}});}},{'distributeResult'(_0x2b9ecb,_0x242490){const _0x40dbb4=_0x15b995;let {objectActions:_0x1e2446}=_0x2b9ecb;return _0x242490[_0x40dbb4(0x18d)](_0x14f92c=>{const _0x2a06c9=_0x40dbb4;let {unitID:_0x9b125f,objectID:_0x2bc0ab,actions:_0x256199}=_0x14f92c,_0x5eca54=_0x1e2446['find'](_0x42e608=>_0x42e608[_0x2a06c9(0x34a)]===_0x9b125f&&_0x42e608['objectID']===_0x2bc0ab);return{'config':_0x14f92c,'result':{'actions':_0x256199[_0x2a06c9(0x18d)](_0x4273af=>_0x5eca54==null?void 0x0:_0x5eca54[_0x2a06c9(0x1ea)]['find'](_0x3c4bd3=>_0x3c4bd3['action']===_0x4273af))[_0x2a06c9(0x2c2)](_0x345052=>!!_0x345052),'error':_0x2b9ecb[_0x2a06c9(0x21f)]}};});}})}));}['_getAPIPrefixPath'](){const _0x8e347a=_0x43980f;var _0x5cc267;let _0x51fec4=this[_0x8e347a(0x18a)][_0x8e347a(0x184)](U);return(_0x5cc267=_0x51fec4==null?void 0x0:_0x51fec4[_0x8e347a(0x280)])==null?_0x8e347a(0x2f8):_0x5cc267;}async['create'](_0x161696){const _0x289c82=_0x43980f;let _0x1cda55=this['_getAPIPrefixPath']()+'/'+_0x161696[_0x289c82(0x214)]+_0x289c82(0x186);return(await this['_HTTPService'][_0x289c82(0x2d7)](_0x1cda55,{'body':_0x161696}))[_0x289c82(0x207)][_0x289c82(0x351)]||'';}async[_0x43980f(0x381)](_0xf2cba3){const _0x2b8d59=_0x43980f;let _0xd58d3=this[_0x2b8d59(0x339)]()+_0x2b8d59(0x3a5);return(await this[_0x2b8d59(0x23b)][_0x2b8d59(0x2d7)](_0xd58d3,{'body':_0xf2cba3}))[_0x2b8d59(0x207)][_0x2b8d59(0x1eb)];}async[_0x43980f(0x3c2)](_0x2511db){const _0x1a66cd=_0x43980f;var _0x432142;let _0x35f031=this[_0x1a66cd(0x339)]()+'/'+_0x2511db[_0x1a66cd(0x214)]+_0x1a66cd(0x1fb)+_0x2511db[_0x1a66cd(0x351)],_0x3fa82e=await this['_HTTPService'][_0x1a66cd(0x1c3)](_0x35f031,{'body':_0x2511db});if((_0x3fa82e==null||(_0x432142=_0x3fa82e[_0x1a66cd(0x207)])==null||(_0x432142=_0x432142['error'])==null?void 0x0:_0x432142[_0x1a66cd(0x1f8)])!==0x1)throw Error(_0x1a66cd(0x2be));}async[_0x43980f(0x2fa)](_0x380327){const _0x46fcdd=_0x43980f;let _0x2b6729=this['_getAPIPrefixPath']()+'/'+_0x380327[_0x46fcdd(0x214)]+_0x46fcdd(0x1fb)+_0x380327[_0x46fcdd(0x351)]+'/allowed';return(await this['_HTTPService'][_0x46fcdd(0x2d7)](_0x2b6729,{'body':_0x380327}))[_0x46fcdd(0x207)][_0x46fcdd(0x1ea)];}async[_0x43980f(0x283)](_0x2283b3){const _0x55601d=_0x43980f;let _0x2bce49=this[_0x55601d(0x339)]()+_0x55601d(0x25e);return(await this[_0x55601d(0x23b)]['post'](_0x2bce49,{'body':{'requests':_0x2283b3}}))[_0x55601d(0x207)]['objectActions'];}async[_0x43980f(0x357)](_0x4d3a4a){const _0x23653d=_0x43980f;let _0x4e17cc=this[_0x23653d(0x339)]()+'/'+_0x4d3a4a[_0x23653d(0x214)]+_0x23653d(0x241),_0x4ff82f=await this[_0x23653d(0x23b)][_0x23653d(0x2d7)](_0x4e17cc,{'body':_0x4d3a4a});return{'roles':_0x4ff82f[_0x23653d(0x207)][_0x23653d(0x2b2)],'actions':_0x4ff82f[_0x23653d(0x207)][_0x23653d(0x1ea)]};}async[_0x43980f(0x21b)](_0x59a4b2){const _0x5e7b04=_0x43980f;let _0x47135f=this[_0x5e7b04(0x339)]()+'/collaborator';await this[_0x5e7b04(0x23b)][_0x5e7b04(0x22f)](_0x47135f,{'params':{'collaboratorID':_0x59a4b2[_0x5e7b04(0x194)],'objectID':_0x59a4b2[_0x5e7b04(0x351)],'unitID':_0x59a4b2['unitID']}});}async['updateCollaborator'](_0x343720){const _0x38510a=_0x43980f;let _0x4662d4=this[_0x38510a(0x339)]()+_0x38510a(0x320);await this[_0x38510a(0x23b)][_0x38510a(0x190)](_0x4662d4,{'body':_0x343720});}async[_0x43980f(0x3c3)](_0x4ed6b1){const _0x50fcca=_0x43980f;let _0x33a81c=this[_0x50fcca(0x339)]()+'/collaborator';await this[_0x50fcca(0x23b)][_0x50fcca(0x2d7)](_0x33a81c,{'body':_0x4ed6b1});}async['listCollaborators'](_0x4ae79d){const _0x22f23a=_0x43980f;var _0x1506b2;let _0x5352f1=this[_0x22f23a(0x339)]()+_0x22f23a(0x320),_0x45ce30=await this[_0x22f23a(0x23b)]['get'](_0x5352f1,{'params':{'objectID':_0x4ae79d[_0x22f23a(0x351)],'unitID':_0x4ae79d['unitID']}});return this[_0x22f23a(0x2d0)]((_0x1506b2=_0x45ce30['body']['cfgEnableObjInherit'])==null?!0x1:_0x1506b2),_0x45ce30[_0x22f23a(0x207)][_0x22f23a(0x1db)];}async[_0x43980f(0x3b6)](_0x42bb82){const _0x4e85e7=_0x43980f;let _0x12993b=this['_getAPIPrefixPath']()+_0x4e85e7(0x320);await this[_0x4e85e7(0x23b)][_0x4e85e7(0x1c3)](_0x12993b,{'body':_0x42bb82});}[_0x43980f(0x2d0)](_0x5b1509){const _0xb13b28=_0x43980f;this[_0xb13b28(0x31a)]=_0x5b1509;}[_0x43980f(0x38c)](){return this['_cfgEnableObjInherit'];}};fn=z([R(0x0,_0x1c7850(_0x5c7bc5)),R(0x1,_0x1c7850(_0x581647))],fn);function pn(_0x4c79b7){const _0x204fff=_0x43980f;let _0x459f1a=atob(_0x4c79b7),_0x4821e8=new Uint8Array(_0x459f1a[_0x204fff(0x334)]);for(let _0x247018=0x0;_0x247018<_0x459f1a[_0x204fff(0x334)];_0x247018++)_0x4821e8[_0x247018]=_0x459f1a[_0x204fff(0x252)](_0x247018);return _0x4821e8;}function mn(_0x61647e){const _0x80ac08=_0x43980f;let _0x43733d='';for(let _0x476cfa=0x0;_0x476cfa<_0x61647e[_0x80ac08(0x334)];_0x476cfa++)_0x43733d+=String[_0x80ac08(0x263)](_0x61647e[_0x476cfa]);return btoa(_0x43733d);}function hn(_0xeb8da2,_0x27af23){const _0x3f152e=_0x43980f;let _0x504c7c=pn(_0x27af23),_0x58942c=_0x27ee4b(0x10);return mn(_0x597147(_0x58942c,_0x55479b(_0x504c7c,_0x58942c)[_0x3f152e(0x2db)](_0x2349fd(_0xeb8da2))));}function gn(){const _0x344549=_0x43980f;let _0x209669=_0x409a92()[_0x344549(0x2ba)];if(typeof window<'u'&&window[_0x344549(0x1d3)]!==void 0x0&&_0x209669){let _0x170ed7={'time':Math[_0x344549(0x39b)](Date[_0x344549(0x25f)]()/0x3e8),'domain':location[_0x344549(0x20e)]};return hn(JSON[_0x344549(0x369)](_0x170ed7),_0x209669);}}let _n=class{constructor(_0x659aeb){const _0x468951=_0x43980f;this[_0x468951(0x323)]=_0x659aeb,this[_0x468951(0x24a)]();}[_0x43980f(0x24a)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x5895ae,_0x2c8f23)=>{const _0x114653=_0x50c8;let _0x434226=gn();return _0x434226&&_0x5895ae[_0x114653(0x236)]['set'](_0x114653(0x350),_0x434226),_0x2c8f23(_0x5895ae);}});}};_n=z([R(0x0,_0x1c7850(_0x5c7bc5))],_n);let vn=class extends _0x1a88c8{constructor(_0x2c2dad,_0x1727d2,_0x22c5e6){const _0x2ac530=_0x43980f;super(),this[_0x2ac530(0x2ed)]=_0x2c2dad,this['_snapshotService']=_0x1727d2,this['_localCacheService']=_0x22c5e6,I(this,_0x2ac530(0x18c),new _0x1eef50(null)),I(this,_0x2ac530(0x216),this[_0x2ac530(0x18c)][_0x2ac530(0x1f4)]());}async['loadUnitOfRevision'](_0x2e45af,_0x4e71c2,_0x22b101){const _0x4eb0f2=_0x43980f;this[_0x4eb0f2(0x18c)]['next']({'unitId':_0x2e45af,'type':_0x4e71c2});let _0x2fbfbd=null;switch(_0x4e71c2){case _0x69083d['UNIVER_SHEET']:_0x2fbfbd=await this[_0x4eb0f2(0x32b)][_0x4eb0f2(0x22e)](_0x2e45af,_0x22b101);break;case _0x69083d['UNIVER_DOC']:_0x2fbfbd=await this[_0x4eb0f2(0x32b)]['loadDoc'](_0x2e45af,_0x22b101);break;default:this['_logService'][_0x4eb0f2(0x21f)]('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x2fbfbd;}async[_0x43980f(0x1e7)](_0x213568,_0x15fe39,_0x336511){const _0xeefa22=_0x43980f;var _0x71b255;this[_0xeefa22(0x18c)][_0xeefa22(0x177)]({'unitId':_0x213568,'type':_0x15fe39,'subUnitId':_0x336511});let _0x85fdd=0x0,_0x3c4b16=await((_0x71b255=this[_0xeefa22(0x1e3)])==null?void 0x0:_0x71b255[_0xeefa22(0x187)](_0x213568));return _0x3c4b16&&(_0x3c4b16[_0xeefa22(0x392)]||_0x3c4b16[_0xeefa22(0x39a)][_0xeefa22(0x334)]!==0x0)&&(_0x85fdd=_0x3c4b16[_0xeefa22(0x302)]),_0x85fdd===0x0&&this['_logService'][_0xeefa22(0x1ae)](_0xeefa22(0x297),_0xeefa22(0x275)),this['loadUnitOfRevision'](_0x213568,_0x15fe39,_0x85fdd);}};vn=z([R(0x0,_0x4a2db6),R(0x1,_0x1c7850(_0x13d15f)),R(0x2,_0x4d2f7f(V))],vn);let yn=class{constructor(_0x17a289,_0x5701c4,_0x4b33c1){const _0x2cf384=_0x43980f;this[_0x2cf384(0x323)]=_0x17a289,this[_0x2cf384(0x18a)]=_0x5701c4,this[_0x2cf384(0x372)]=_0x4b33c1,I(this,_0x2cf384(0x232),0x0),I(this,_0x2cf384(0x229),new _0x3c8873()),I(this,_0x2cf384(0x273),this['_change$']),I(this,_0x2cf384(0x3ad),new Map());}[_0x43980f(0x290)](_0x4a4be3){const _0x3123c4=_0x43980f;this[_0x3123c4(0x232)]=_0x4a4be3,this[_0x3123c4(0x229)][_0x3123c4(0x177)](_0x4a4be3);}[_0x43980f(0x3a4)](_0x291423,_0xff6d54){const _0x5abb1e=_0x43980f;if(_0xff6d54===_0x2af7e6[_0x5abb1e(0x2b6)]){let _0x176b60=new Image();return _0x176b60['src']=_0x291423,_0x176b60;}return this[_0x5abb1e(0x3ad)][_0x5abb1e(0x31d)](_0x291423);}['addImageSourceCache'](_0x5acf0c,_0xa15175,_0xc6be09){const _0x58dd62=_0x43980f;_0xa15175===_0x2af7e6['BASE64']||_0xc6be09==null||this[_0x58dd62(0x3ad)]['set'](_0x5acf0c,_0xc6be09);}async['getImage'](_0x2ccea6){const _0x9daf46=_0x43980f;try{let _0x3e7a90=this[_0x9daf46(0x370)](this[_0x9daf46(0x1ac)](),''+_0x2ccea6),_0x4ab934=(await this[_0x9daf46(0x323)][_0x9daf46(0x31d)](_0x3e7a90))['body'];if(_0x4ab934['error']&&_0x4ab934[_0x9daf46(0x21f)]['code']===_0x3ec919['OK']){let _0x107347=_0x3121e8(_0x4ab934[_0x9daf46(0x166)],this[_0x9daf46(0x165)]());return Promise[_0x9daf46(0x39e)](_0x107347);}return Promise['reject'](_0x4ab934[_0x9daf46(0x21f)]);}catch(_0x322b85){return Promise[_0x9daf46(0x3a7)](_0x322b85);}}async[_0x43980f(0x2b5)](_0x868827){const _0x52d615=_0x43980f;let _0xbdec23='';if(!_0x2000fd['includes'](_0x868827[_0x52d615(0x227)]))return this['_decreaseWaiting'](),Promise[_0x52d615(0x3a7)](Error(_0x52e738[_0x52d615(0x2a2)]));if(_0x868827['size']>_0x4eb6a4())return this[_0x52d615(0x394)](),Promise[_0x52d615(0x3a7)](Error(_0x52e738[_0x52d615(0x1ef)]));try{let _0x3d17f7=new FormData();_0x3d17f7[_0x52d615(0x32e)](_0x52d615(0x211),_0x868827);let _0x2ec738=this[_0x52d615(0x372)]['getFocusedUnit'](),_0x5f40bf=_0x2ec738==null?void 0x0:_0x2ec738['getUnitId']();if(!_0x5f40bf)throw Error(_0x52d615(0x3b4));let _0x1567f9=this['_getUploadFileURL']()+_0x52d615(0x376)+_0x868827[_0x52d615(0x224)]['toString']()+_0x52d615(0x1f1)+_0x54fff6[_0x52d615(0x257)]+_0x52d615(0x27b)+encodeURIComponent(_0x5f40bf),_0x11cb98={'body':_0x3d17f7},_0x58a5ad=(await this[_0x52d615(0x323)][_0x52d615(0x2d7)](_0x1567f9,_0x11cb98))[_0x52d615(0x207)];if(typeof _0x58a5ad['FileId']!=_0x52d615(0x15d))return this[_0x52d615(0x394)](),Promise[_0x52d615(0x3a7)](Error(_0x52e738[_0x52d615(0x15c)]));_0xbdec23=_0x58a5ad[_0x52d615(0x1aa)];}catch{return this[_0x52d615(0x394)](),Promise[_0x52d615(0x3a7)](Error(_0x52e738[_0x52d615(0x15c)]));}return new Promise((_0x43c0c0,_0x51a6f2)=>{const _0xc22e82=_0x52d615;let _0x1e160d=new FileReader();_0x1e160d[_0xc22e82(0x185)](_0x868827),_0x1e160d[_0xc22e82(0x14e)]=_0x53d336=>{const _0x37dc9f=_0xc22e82;var _0x86565b;let _0x16e433=(_0x86565b=_0x53d336[_0x37dc9f(0x222)])==null?void 0x0:_0x86565b['result'];if(_0x16e433==null){this[_0x37dc9f(0x394)](),_0x51a6f2(Error(_0x52e738[_0x37dc9f(0x15c)]));return;}_0x43c0c0({'imageId':_0x4ec3e6(0x6),'imageSourceType':_0x2af7e6[_0x37dc9f(0x31f)],'source':_0xbdec23,'base64Cache':_0x16e433,'status':_0x52e738['SUCCUSS']}),this[_0x37dc9f(0x394)]();};});}['_getUploadFileURL'](){const _0x39b5db=_0x43980f;var _0xe5ceb9;let _0x3ed9fe=this[_0x39b5db(0x18a)][_0x39b5db(0x184)](U);return(_0xe5ceb9=_0x3ed9fe==null?void 0x0:_0x3ed9fe[_0x39b5db(0x2ad)])==null?_0x39b5db(0x3ba):_0xe5ceb9;}['_getSignURL'](){const _0x612574=_0x43980f;var _0x1f018f;let _0x2a2194=this[_0x612574(0x18a)][_0x612574(0x184)](U);return(_0x1f018f=_0x2a2194==null?void 0x0:_0x2a2194[_0x612574(0x38e)])==null?'/universer-api/file/{fileID}/sign-url':_0x1f018f;}['_getDownloadEndpointURL'](){const _0x454f4f=_0x43980f;var _0x5f4e66;let _0x579b46=this[_0x454f4f(0x18a)][_0x454f4f(0x184)](U);return(_0x5f4e66=_0x579b46==null?void 0x0:_0x579b46[_0x454f4f(0x1cf)])==null?location[_0x454f4f(0x33c)]:_0x5f4e66;}['_replaceFileID'](_0x278686,_0x6c65d8){const _0x3c71b5=_0x43980f;return _0x278686[_0x3c71b5(0x397)](_0x3c71b5(0x2bf),_0x6c65d8);}[_0x43980f(0x394)](){const _0xb19093=_0x43980f;--this[_0xb19093(0x232)],this['_change$'][_0xb19093(0x177)](this['_waitCount']);}};yn=z([R(0x0,_0x1c7850(_0x5c7bc5)),R(0x1,_0x581647),R(0x2,_0x1c7850(_0x5f47c6))],yn);let bn=class{constructor(_0xebc4f6,_0x5e3315){const _0x3396c1=_0x43980f;this[_0x3396c1(0x18a)]=_0xebc4f6,this['_HTTPService']=_0x5e3315;}['_getAPIPrefixPath'](){const _0x282602=_0x43980f;var _0x3ab2be;let _0xd5be0b=this[_0x282602(0x18a)][_0x282602(0x184)](U);return(_0x3ab2be=_0xd5be0b==null?void 0x0:_0xd5be0b[_0x282602(0x280)])==null?_0x282602(0x2f8):_0x3ab2be;}async[_0x43980f(0x381)](_0x1f06f4){const _0x3e8f1a=_0x43980f;let _0x1424a1=this[_0x3e8f1a(0x339)]()+_0x3e8f1a(0x320);return{'list':[{'title':_0x3e8f1a(0x1e0),'mentions':(await this[_0x3e8f1a(0x23b)][_0x3e8f1a(0x31d)](_0x1424a1,{'params':{'objectID':_0x1f06f4[_0x3e8f1a(0x175)],'unitID':_0x1f06f4[_0x3e8f1a(0x175)]}}))[_0x3e8f1a(0x207)][_0x3e8f1a(0x1db)][_0x3e8f1a(0x18d)](_0x434b25=>({'objectId':_0x434b25['id'],'name':_0x434b25[_0x3e8f1a(0x366)][_0x3e8f1a(0x2c9)],'metadata':{'icon':_0x434b25[_0x3e8f1a(0x366)][_0x3e8f1a(0x1b4)]},'label':_0x434b25[_0x3e8f1a(0x366)][_0x3e8f1a(0x2c9)],'objectType':_0x2bc86f['PERSON']})),'metadata':{},'type':_0x2bc86f[_0x3e8f1a(0x209)]}]};}};bn=z([R(0x0,_0x1c7850(_0x581647)),R(0x1,_0x1c7850(_0x5c7bc5))],bn);let xn=class extends _0x1a88c8{constructor(_0x3e6e32,_0x1ca45d,_0x5da362,_0x151d9e,_0x1a7b65){const _0x56d53b=_0x43980f;super(),this[_0x56d53b(0x308)]=_0x3e6e32,this[_0x56d53b(0x372)]=_0x1ca45d,this[_0x56d53b(0x154)]=_0x5da362,this[_0x56d53b(0x27e)]=_0x151d9e,this[_0x56d53b(0x300)]=_0x1a7b65,this['_initUnitPermissionChange'](),this[_0x56d53b(0x24e)]();}[_0x43980f(0x24e)](){const _0x59f54c=_0x43980f;let _0x3921bc=async _0x1257a8=>{const _0x3765b5=_0x50c8;(await this['_collaborationSessionService'][_0x3765b5(0x373)](_0x1257a8))[_0x3765b5(0x282)][_0x3765b5(0x2dc)](_0x1186c5(_0x1fb727=>_0x1fb727[_0x3765b5(0x201)]===_0x3cfbbf[_0x3765b5(0x1df)]),_0x6ecc79(this[_0x3765b5(0x1e5)]))[_0x3765b5(0x374)](_0x5f287b=>{const _0x1872e8=_0x3765b5;let {reason:_0x3aee7b}=_0x5f287b['data'];this['_collaborationUIEventService']['emitEvent']({'id':_0x1872e8(0x305),'data':_0x3aee7b}),this[_0x1872e8(0x154)][_0x1872e8(0x181)](new _0x173d60(_0x1257a8)['id'],!0x1),this[_0x1872e8(0x27e)][_0x1872e8(0x1fd)](_0x1257a8);});};_0x5a7b08(this[_0x59f54c(0x372)][_0x59f54c(0x20c)](_0x69083d[_0x59f54c(0x291)]),this[_0x59f54c(0x372)][_0x59f54c(0x20c)](_0x69083d[_0x59f54c(0x34d)]))[_0x59f54c(0x2dc)](_0x1e4e2f(_0x28c5e8=>_0x28c5e8[_0x59f54c(0x246)]['getUnitId']()),_0x1186c5(_0x58a2a1=>!_0x4a5844(_0x58a2a1)),_0x6ecc79(this[_0x59f54c(0x1e5)]))[_0x59f54c(0x374)](_0x4278f3=>{_0x3921bc(_0x4278f3);});}[_0x43980f(0x2ae)](){const _0x38cc46=_0x43980f;let _0x4ec6c5=async _0x3cb593=>{const _0x37ec27=_0x50c8;let _0x5f0b20=await this['_collaborationSessionService']['requireSession'](_0x3cb593),_0xbc7f6b=this[_0x37ec27(0x308)][_0x37ec27(0x31d)](_0x416900);_0x5f0b20['event$'][_0x37ec27(0x2dc)](_0x1186c5(_0x20e915=>_0x20e915[_0x37ec27(0x201)]===_0x3cfbbf['UPDATE_PERMISSION_OBJ']),_0x6ecc79(this[_0x37ec27(0x1e5)]))[_0x37ec27(0x374)](_0x296418=>{const _0x1734fe=_0x37ec27;let {objectId:_0x228510}=_0x296418['data'];_0x228510===_0x3cb593?_0xbc7f6b[_0x1734fe(0x240)](_0x3cb593):_0xbc7f6b[_0x1734fe(0x2d8)](_0x3cb593,_0x228510);});};_0x5a7b08(this[_0x38cc46(0x372)][_0x38cc46(0x20c)](_0x69083d[_0x38cc46(0x291)]))[_0x38cc46(0x2dc)](_0x1e4e2f(_0x30c652=>_0x30c652['unit'][_0x38cc46(0x253)]()),_0x1186c5(_0x1bfbea=>!_0x4a5844(_0x1bfbea)),_0x6ecc79(this[_0x38cc46(0x1e5)]))[_0x38cc46(0x374)](_0x4c2e8e=>{_0x4ec6c5(_0x4c2e8e);});}};xn=z([R(0x0,_0x1c7850(_0xd7c234)),R(0x1,_0x5f47c6),R(0x2,_0x57bb9f),R(0x3,_0x1c7850(Q)),R(0x4,_0x1c7850(L))],xn);let Sn=class{constructor(_0x14c466,_0x2a711d){const _0x384ddb=_0x43980f;this['_configService']=_0x14c466,this[_0x384ddb(0x323)]=_0x2a711d;}async[_0x43980f(0x34f)](_0x276cb5,_0x2d94d7){const _0x2b6d4c=_0x43980f;var _0x19eb3d;let {unitID:_0x11193f,type:_0x4ab1a0,revision:_0x147430=0x0}=_0x2d94d7,_0x373d8a=this[_0x2b6d4c(0x30c)]()+'/'+_0x4ab1a0+_0x2b6d4c(0x1f6)+_0x11193f+'/rev/'+_0x147430,_0x41c6f6=(await this[_0x2b6d4c(0x323)][_0x2b6d4c(0x31d)](_0x373d8a))[_0x2b6d4c(0x207)],_0xae367a=(_0x19eb3d=_0x41c6f6[_0x2b6d4c(0x19c)])==null?void 0x0:_0x19eb3d[_0x2b6d4c(0x38a)];if(_0xae367a){let _0x384303=_0xae367a==null?void 0x0:_0xae367a[_0x2b6d4c(0x159)];_0xae367a['originalMeta']=_0x2ebe39['encode'](_0x285281(_0x384303)),Object[_0x2b6d4c(0x14a)](_0xae367a['sheets'])[_0x2b6d4c(0x256)](([,_0x375bf9])=>{const _0x199456=_0x2b6d4c;let _0x30c637=_0x375bf9['originalMeta'];_0x375bf9[_0x199456(0x159)]=_0x2ebe39['encode'](_0x285281(_0x30c637));});}return _0x41c6f6;}async[_0x43980f(0x169)](_0x55b5a1,_0x44b95a){const _0x4c5104=_0x43980f;let {unitID:_0x146df2,type:_0x1c5355,blockID:_0x1882d9}=_0x44b95a,_0x214857=this[_0x4c5104(0x389)]()+'/'+_0x1c5355+'/unit/'+_0x146df2+_0x4c5104(0x267)+_0x1882d9;return(await this[_0x4c5104(0x323)][_0x4c5104(0x31d)](_0x214857))[_0x4c5104(0x207)];}async[_0x43980f(0x26c)](_0x29c5ef,_0x42fc0c){const _0x2d70ba=_0x43980f;let {unitID:_0x226385,type:_0xa6bf56,blockID:_0x4fc3ac}=_0x42fc0c,_0x32e483=this['_getAPIPrefix']()+_0x2d70ba(0x267)+_0xa6bf56+_0x2d70ba(0x1f6)+_0x226385+_0x2d70ba(0x267)+_0x4fc3ac;return(await this['_httpService']['get'](_0x32e483))[_0x2d70ba(0x207)];}async[_0x43980f(0x2ca)](_0x4f96b9,_0x2bacf1){const _0x30c05e=_0x43980f;let {unitID:_0x4b4d55,type:_0x786ac5,from:_0x2b0033,to:_0x6bacdb}=_0x2bacf1,_0x4030b7=this['_getAPIPrefix']()+'/'+_0x786ac5+_0x30c05e(0x1f6)+_0x4b4d55+'/fetchmissing?from='+_0x2b0033+_0x30c05e(0x29c)+_0x6bacdb;return(await this['_httpService'][_0x30c05e(0x31d)](_0x4030b7))[_0x30c05e(0x207)];}[_0x43980f(0x30c)](){const _0x23340e=_0x43980f;var _0x3a64a3;return(_0x3a64a3=this[_0x23340e(0x18a)][_0x23340e(0x184)]('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0x3a64a3;}[_0x43980f(0x389)](){const _0x5694c1=_0x43980f;var _0x252eb9;let _0x277f5d=this[_0x5694c1(0x18a)][_0x5694c1(0x184)](U);return(_0x252eb9=_0x277f5d==null?void 0x0:_0x277f5d[_0x5694c1(0x32a)])==null?_0x5694c1(0x176):_0x252eb9;}async[_0x43980f(0x382)](_0x10af37,_0x3f968f){const _0x562188=_0x43980f;let _0x1aade3=_0x562188(0x1ff)+_0x3f968f[_0x562188(0x227)]+_0x562188(0x1f6)+_0x3f968f[_0x562188(0x34a)]+'/resources';return(await this[_0x562188(0x323)][_0x562188(0x31d)](_0x1aade3,{'params':{'resourceId':JSON[_0x562188(0x369)](_0x3f968f[_0x562188(0x24b)])}}))[_0x562188(0x207)];}[_0x43980f(0x1a4)](){const _0x557c0=_0x43980f;throw Error(_0x557c0(0x2e9));}[_0x43980f(0x2bb)](){const _0x376fc5=_0x43980f;throw Error(_0x376fc5(0x2e9));}[_0x43980f(0x3bd)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x43980f(0x33a)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x38701c=_0x43980f;throw Error(_0x38701c(0x2e9));}['getLatestCsReqIdBySid'](){const _0x33ff8a=_0x43980f;throw Error(_0x33ff8a(0x2e9));}};Sn=z([R(0x0,_0x581647),R(0x1,_0x1c7850(_0x5c7bc5))],Sn);let Cn=class extends _0x41f436{constructor(_0x18a3b7,_0x5597e1,_0x561ea3,_0x24d373,_0x478ee0){const _0x2ef44a=_0x43980f;super(_0x18a3b7,_0x5597e1,_0x561ea3),this[_0x2ef44a(0x27f)]=_0x24d373,this['_logService']=_0x478ee0;}[_0x43980f(0x311)](_0x22a068,_0x1bf9c0){const _0x398b2a=_0x43980f;let _0x329f52=this[_0x398b2a(0x3b7)](_0x22a068);if(_0x329f52)try{let _0x5485d2=this[_0x398b2a(0x2da)](_0x329f52,_0x1bf9c0);this['_substituteUndoStack'](_0x22a068,_0x5485d2);}catch(_0x3480ea){this[_0x398b2a(0x2ed)][_0x398b2a(0x21f)](_0x398b2a(0x307),_0x3480ea),this[_0x398b2a(0x362)](_0x22a068);}let _0x18d4aa=this[_0x398b2a(0x1a0)](_0x22a068);if(_0x18d4aa)try{let _0x474743=this['_transformStack'](_0x18d4aa,_0x1bf9c0);this[_0x398b2a(0x2f1)](_0x22a068,_0x474743);}catch(_0x4c9e66){this['_logService'][_0x398b2a(0x21f)](_0x4c9e66),this[_0x398b2a(0x32d)](_0x22a068);}}['_clearUndo'](_0x52bc64){const _0x1b89f7=_0x43980f;let _0xb4788d=this[_0x1b89f7(0x3b7)](_0x52bc64);_0xb4788d&&(_0xb4788d[_0x1b89f7(0x334)]=0x0,this['_updateStatus']());}[_0x43980f(0x32d)](_0x4b9794){const _0x3516a7=_0x43980f;let _0x225fc6=this[_0x3516a7(0x1a0)](_0x4b9794);_0x225fc6&&(_0x225fc6[_0x3516a7(0x334)]=0x0,this[_0x3516a7(0x17c)]());}['_substituteUndoStack'](_0x3d8a14,_0x45020d){const _0x1b9214=_0x43980f;this[_0x1b9214(0x1e1)][_0x1b9214(0x1a5)](_0x3d8a14,_0x45020d),this[_0x1b9214(0x17c)]();}[_0x43980f(0x2f1)](_0x114003,_0x29b0b4){const _0x1f9570=_0x43980f;this[_0x1f9570(0x279)][_0x1f9570(0x1a5)](_0x114003,_0x29b0b4),this[_0x1f9570(0x17c)]();}['_transformStack'](_0x248155,_0x13ee06){const _0x422cbb=_0x43980f;let _0x2b86cd=[],_0xeff3e7=_0x13ee06,_0x1c52e9=_0x13ee06;for(let _0x3416a1=_0x248155[_0x422cbb(0x334)]-0x1;_0x3416a1>=0x0;_0x3416a1--){let {unitID:_0x23e888,undoMutations:_0x3f9902,redoMutations:_0x50f377}=_0x248155[_0x3416a1],_0x1fb7da=this[_0x422cbb(0x27f)][_0x422cbb(0x278)](_0xeff3e7,_0x3f9902),_0x5d2796=this[_0x422cbb(0x27f)]['transformMutationsWithChangeset'](_0x1c52e9,_0x50f377);if(_0xcb7e6c(_0x1fb7da)||_0xcb7e6c(_0x5d2796)){this[_0x422cbb(0x2ed)][_0x422cbb(0x21f)](_0x422cbb(0x307),'transformStack\x20failed!',_0x1fb7da,_0x5d2796);break;}_0xeff3e7=_0x1fb7da[_0x422cbb(0x151)],_0x1c52e9=_0x5d2796[_0x422cbb(0x151)],_0x2b86cd[_0x422cbb(0x242)]({'unitID':_0x23e888,'undoMutations':_0x1fb7da[_0x422cbb(0x192)],'redoMutations':_0x5d2796[_0x422cbb(0x192)]});}return _0x2b86cd[_0x422cbb(0x1d7)]();}};Cn=z([R(0x0,_0x5f47c6),R(0x1,_0x2e910a),R(0x2,_0x1aa7f8),R(0x3,_0x41cd1f),R(0x4,_0x4a2db6)],Cn);let $=class extends _0xb46367{constructor(_0x671ad0={},_0x4c9c90,_0x19288a,_0x20c9a1){const _0x1b1fc8=_0x43980f;super(),this[_0x1b1fc8(0x225)]=_0x671ad0,this[_0x1b1fc8(0x2ed)]=_0x4c9c90,this['_injector']=_0x19288a,this[_0x1b1fc8(0x18a)]=_0x20c9a1;let {..._0x8634e5}=_0x490f84({},Nt,_0x671ad0);if(!_0x8634e5[_0x1b1fc8(0x17d)])throw Error(_0x1b1fc8(0x384));this['_config']=_0x8634e5,this['_configService'][_0x1b1fc8(0x1cb)](U,_0x8634e5);}['onStarting'](){const _0x1f856b=_0x43980f;this[_0x1f856b(0x21c)](),this['_initDependencies']();}[_0x43980f(0x21c)](){const _0x28d5bf=_0x43980f;var _0x8134c,_0x5021b9;this[_0x28d5bf(0x308)]['has'](_0x3a28c4)&&this[_0x28d5bf(0x2ed)][_0x28d5bf(0x21f)](_0x28d5bf(0x24c),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x407639=_0x4f5810([[_0x3a28c4,{'useClass':Cn}],[Q],[B],[H],[dn],[_n],[wt],[xn],[L],[vn],[rn,{'useClass':this[_0x28d5bf(0x225)][_0x28d5bf(0x17d)]}],[_0x5e9253,{'useClass':Sn}],[_0xd5d99d,{'useClass':fn}],[_0x5062b6,{'useClass':yn}],[_0x5cc60d,{'useClass':bn}],[sn],[un]],(_0x8134c=this[_0x28d5bf(0x225)])==null?void 0x0:_0x8134c[_0x28d5bf(0x327)]);if(!((_0x5021b9=this[_0x28d5bf(0x225)])!=null&&_0x5021b9[_0x28d5bf(0x152)])){let _0x2798cb=_0x407639['findIndex'](([_0x480b17])=>_0x480b17===jt);_0x2798cb!==-0x1&&_0x407639[_0x28d5bf(0x2f5)](_0x2798cb,0x1);}_0x474b15(this[_0x28d5bf(0x308)],_0x407639);}[_0x43980f(0x3c5)](){const _0x1d4be7=_0x43980f;var _0x5b4e83,_0x48404f;if(this[_0x1d4be7(0x308)][_0x1d4be7(0x31d)](_0x5c7bc5)[_0x1d4be7(0x2d1)]({'priority':0x14,'interceptor':_0xd46517({'maxParallel':0x6})}),!((_0x5b4e83=this[_0x1d4be7(0x225)])!=null&&_0x5b4e83['enableOfflineEditing'])){var _0x3e4505;(_0x3e4505=this[_0x1d4be7(0x308)][_0x1d4be7(0x31d)](V,_0x4c2254[_0x1d4be7(0x39f)]))==null||_0x3e4505['disableLocalCache']();}(_0x48404f=this['_config'])!=null&&_0x48404f[_0x1d4be7(0x303)]&&_0x5b3519(this['_injector'],[[dn]]),_0x5b3519(this[_0x1d4be7(0x308)],[[_n],[sn],[xn]]);}};I($,_0x43980f(0x1b9),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),I($,'packageName',cn),I($,'version',ln),$=z([_0x1c9477(_0x4cd43a,_0x1d82dc,_0x14e288),R(0x1,_0x4a2db6),R(0x2,_0x1c7850(_0xd7c234)),R(0x3,_0x581647)],$);export{fn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,U as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,sn as CollaborationController,Zt as CollaborationEntity,yn as CollaborationImageIoService,Ot as CollaborationSession,Q as CollaborationSessionService,on as CollaborationSocketService,qt as CollaborationStatus,Ct as CollaborationUIEventId,L as CollaborationUIEventService,Cn as CollaborativeUndoRedoService,wt as CommentService,Y as ConflictState,ut as DEFAULT_COLLAB_WEB_SOCKET_URL,yt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,dt as DEFAULT_WS_SESSION_TICKET_URL,vn as DataLoaderService,Qt as DocCollaborationEntity,Z as FetchingMissState,ft as HEARTBEAT_INTERVAL_KEY,pt as HEARTBEAT_TIMEOUT_KEY,rn as ICollaborationSocketService,V as ILocalCacheService,en as INetworkConditionService,jt as ISingleActiveUnitService,_t as LOCAL_CACHE_INTERVAL,gt as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,bn as MentionIoHttpService,X as OfflineState,K as PendingState,vt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,ht as RETRY_CONNECTING_MAX_COUNT_KEY,Et as SessionStatus,$t as SheetCollaborationEntity,H as SheetTransformSelectionsService,Sn as SnapshotServerOverHTTPService,G as SyncedState,Mt as UnitStatus,$ as UniverCollaborationClientPlugin,tn as deserializeToCombResponse,kt as getLocalCacheKey,nn as serializeCombRequest};