@univerjs-pro/collaboration-client 0.25.0 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- 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 _0x5ae4d2=_0x80d2;(function(_0x55f188,_0x5edfcf){const _0x43f418=_0x80d2,_0x368e71=_0x55f188();while(!![]){try{const _0x2b9175=parseInt(_0x43f418(0x182))/0x1*(-parseInt(_0x43f418(0x22b))/0x2)+-parseInt(_0x43f418(0x320))/0x3+parseInt(_0x43f418(0x1d8))/0x4*(parseInt(_0x43f418(0x368))/0x5)+-parseInt(_0x43f418(0x233))/0x6+-parseInt(_0x43f418(0x1e9))/0x7+parseInt(_0x43f418(0x29e))/0x8*(parseInt(_0x43f418(0x12d))/0x9)+parseInt(_0x43f418(0x180))/0xa;if(_0x2b9175===_0x5edfcf)break;else _0x368e71['push'](_0x368e71['shift']());}catch(_0x2fe62c){_0x368e71['push'](_0x368e71['shift']());}}}(_0xd90b,0xe8ef1));import{CollaborationEvent as _0x549cb3,CompressMutationService as _0x1dc4ab,EmptyMutationInfo as _0x536255,ISnapshotServerService as _0x1706a3,ITransformService as _0x549fa2,RevisionService as _0x154a46,SnapshotService as _0x2e0a41,UniverCollaborationPlugin as _0x31f630,b64DecodeUnicode as _0x256b71,isTransformChangesetsSuccess as _0x1590e6,isTransformMutationsWithChangesetFailure as _0x3dc440,isTransformMutationsWithChangesetSuccess as _0x5d08ab,mapDocumentTypeToUniverInstanceType as _0x2b4a21,parseChangesetToProtocol as _0x4ca329,parseProtocolChangeset as _0x245ffd,textEncoder as _0x1fc428,uuidv4 as _0x2fe48b}from'@univerjs-pro/collaboration';import{CommandType as _0x3f1eb1,DependentOn as _0x4cc9d6,Disposable as _0x4c3df1,DisposableCollection as _0x8e9fdb,IAuthzIoService as _0x33a5fc,ICommandService as _0x179ec4,IConfigService as _0x2a37e1,IContextService as _0x2b48e8,ILogService as _0x2dd0ba,IMentionIOService as _0x2d21bc,IPermissionService as _0x386a45,IUndoRedoService as _0x29640d,IUniverInstanceService as _0x2f9fc,Inject as _0x4e3f0c,Injector as _0x1422f8,JSONX as _0x50ed51,LocalUndoRedoService as _0x235d3d,LocaleService as _0x30fb36,MentionType as _0x3eeb69,Optional as _0xd20bc,Plugin as _0xf5b700,Quantity as _0x47be5b,Rectangle as _0x97a04c,RxDisposable as _0x1e5f27,Tools as _0xc73593,UniverInstanceType as _0x20b29c,UserManagerService as _0x348047,Workbook as _0x3e4160,createIdentifier as _0x198360,generateRandomId as _0x181b49,isInternalEditorID as _0x49aab5,merge as _0x4d67d0,mergeOverrideWithDependencies as _0x25189c,registerDependencies as _0x3eddd9,resolveWithBasePath as _0x39267b,sequenceExecute as _0x583592,toDisposable as _0x5c0b7d,touchDependencies as _0x4a4fad}from'@univerjs/core';import{RichTextEditingMutation as _0x160958}from'@univerjs/docs';import{InsertSheetMutation as _0x5d2412,SetSelectionsOperation as _0x441a6e,SheetPermissionInitController as _0x25975d,SheetsSelectionsService as _0x35eb79,WorkbookEditablePermission as _0x49870e}from'@univerjs/sheets';import{BehaviorSubject as _0xddeafe,ReplaySubject as _0x74c07c,Subject as _0x43ff4,concatMap as _0x2026fd,firstValueFrom as _0x5e0847,map as _0x3534f7,merge as _0x2d1d23,of as _0x1abee8,shareReplay as _0x5db130,take as _0x158df5,takeUntil as _0x11efa6}from'rxjs';import{CmdRspCode as _0xfea562,CombCmd as _0x454ca3,ErrorCode as _0x1a1ebc,FileSource as _0x3f415e}from'@univerjs/protocol';import{ITelemetryService as _0x2aa7e9}from'@univerjs/telemetry';import{delay as _0xd86525,filter as _0x45748f,map as _0x5b276d,take as _0x28684c,takeUntil as _0xbd75b1}from'rxjs/operators';import{HTTPRequest as _0x1af32f,HTTPService as _0x50b313,ISocketService as _0x510288,MergeInterceptorFactory as _0x22eec7,ThresholdInterceptorFactory as _0x5b29fb,UniverNetworkPlugin as _0x51368c}from'@univerjs/network';import{UniverLicensePlugin as _0xb7039c,getGlobalObject as _0x3cd491}from'@univerjs-pro/license';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x2f3bd1,IImageIoService as _0x1082ef,ImageSourceType as _0x2399c6,ImageUploadStatusType as _0x531028,getDrawingImageAllowSize as _0x1d6f46}from'@univerjs/drawing';import{cbc as _0x2a605a}from'@noble/ciphers/aes.js';import{concatBytes as _0x419146,randomBytes as _0x58d0f2,utf8ToBytes as _0x973a80}from'@noble/ciphers/utils.js';const ut='ws://127.0.0.1:8000/universer-api/comb/connect',dt=_0x5ae4d2(0x370),ft=_0x5ae4d2(0x23e),pt=_0x5ae4d2(0x11e),mt=0x4e20,ht=_0x5ae4d2(0x18d),gt=_0x5ae4d2(0x248),_t=0x3e8,vt=_0x5ae4d2(0x2e2),yt=_0x5ae4d2(0x1e2);function bt(_0x5c650){const _0x26a51e=_0x5ae4d2;return JSON[_0x26a51e(0x261)](_0x5c650)[_0x26a51e(0x1a1)];}function F(_0x378702){'@babel/helpers - typeof';const _0x26abb5=_0x5ae4d2;return F=typeof Symbol=='function'&&typeof Symbol[_0x26abb5(0x1d2)]==_0x26abb5(0x17b)?function(_0x77cd7a){return typeof _0x77cd7a;}:function(_0x352ee3){const _0x5d52ad=_0x26abb5;return _0x352ee3&&typeof Symbol==_0x5d52ad(0x326)&&_0x352ee3[_0x5d52ad(0x37c)]===Symbol&&_0x352ee3!==Symbol['prototype']?_0x5d52ad(0x17b):typeof _0x352ee3;},F(_0x378702);}function xt(_0x3510b9,_0x3d8fff){const _0x134d06=_0x5ae4d2;if(F(_0x3510b9)!=_0x134d06(0x1fc)||!_0x3510b9)return _0x3510b9;var _0x2662ef=_0x3510b9[Symbol[_0x134d06(0x146)]];if(_0x2662ef!==void 0x0){var _0x4fdbbd=_0x2662ef[_0x134d06(0x1a7)](_0x3510b9,_0x3d8fff||_0x134d06(0x16e));if(F(_0x4fdbbd)!=_0x134d06(0x1fc))return _0x4fdbbd;throw TypeError(_0x134d06(0x2d3));}return(_0x3d8fff===_0x134d06(0x2b9)?String:Number)(_0x3510b9);}function St(_0x4cbd14){const _0x10d00a=_0x5ae4d2;var _0x2146bd=xt(_0x4cbd14,_0x10d00a(0x2b9));return F(_0x2146bd)==_0x10d00a(0x17b)?_0x2146bd:_0x2146bd+'';}function I(_0x235521,_0x6db78f,_0xd8d32e){const _0x33696a=_0x5ae4d2;return(_0x6db78f=St(_0x6db78f))in _0x235521?Object[_0x33696a(0x14e)](_0x235521,_0x6db78f,{'value':_0xd8d32e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x235521[_0x6db78f]=_0xd8d32e,_0x235521;}let Ct=function(_0x5b6b5a){const _0x190cb5=_0x5ae4d2;return _0x5b6b5a[_0x190cb5(0x2de)]='OTHER_CLIENT_EDITING',_0x5b6b5a[_0x190cb5(0x166)]=_0x190cb5(0x166),_0x5b6b5a[_0x190cb5(0x1f6)]=_0x190cb5(0x1f6),_0x5b6b5a['CLOSE_ROOM']='CLOSE_ROOM',_0x5b6b5a[_0x190cb5(0x148)]=_0x190cb5(0x148),_0x5b6b5a['SOCKET_FAILED_RETRY']=_0x190cb5(0x183),_0x5b6b5a[_0x190cb5(0x11d)]=_0x190cb5(0x11d),_0x5b6b5a[_0x190cb5(0x1a0)]='SUBMIT_CHANGESET_TIMEOUT',_0x5b6b5a;}({});var L=class{constructor(){const _0x9dded5=_0x5ae4d2;I(this,'_event$',new _0x43ff4()),I(this,_0x9dded5(0x150),this['_event$'][_0x9dded5(0x32b)]());}[_0x5ae4d2(0x175)](_0x2c799c){const _0x34abf7=_0x5ae4d2;this['_event$'][_0x34abf7(0x382)](_0x2c799c);}},wt=class{constructor(){const _0x5f3b34=_0x5ae4d2;I(this,_0x5f3b34(0x30a),new _0x43ff4()),I(this,_0x5f3b34(0x325),this[_0x5f3b34(0x30a)][_0x5f3b34(0x32b)]());}[_0x5ae4d2(0x2c0)](_0x39a591){const _0x527e89=_0x5ae4d2;this[_0x527e89(0x30a)]['next'](_0x39a591);}};function R(_0x2d708f,_0x4aad3f){return function(_0x489d58,_0x476cff){_0x4aad3f(_0x489d58,_0x476cff,_0x2d708f);};}function z(_0x4f6b14,_0x4cbe24,_0x2a8e52,_0x2aa1a7){const _0x21e32f=_0x5ae4d2;var _0x5682d7=arguments['length'],_0x17d8ba=_0x5682d7<0x3?_0x4cbe24:_0x2aa1a7===null?_0x2aa1a7=Object[_0x21e32f(0x1e8)](_0x4cbe24,_0x2a8e52):_0x2aa1a7,_0x1ca898;if(typeof Reflect==_0x21e32f(0x1fc)&&typeof Reflect['decorate']==_0x21e32f(0x326))_0x17d8ba=Reflect['decorate'](_0x4f6b14,_0x4cbe24,_0x2a8e52,_0x2aa1a7);else{for(var _0x3fa931=_0x4f6b14[_0x21e32f(0x1a1)]-0x1;_0x3fa931>=0x0;_0x3fa931--)(_0x1ca898=_0x4f6b14[_0x3fa931])&&(_0x17d8ba=(_0x5682d7<0x3?_0x1ca898(_0x17d8ba):_0x5682d7>0x3?_0x1ca898(_0x4cbe24,_0x2a8e52,_0x17d8ba):_0x1ca898(_0x4cbe24,_0x2a8e52))||_0x17d8ba);}return _0x5682d7>0x3&&_0x17d8ba&&Object[_0x21e32f(0x14e)](_0x4cbe24,_0x2a8e52,_0x17d8ba),_0x17d8ba;}let B=class extends _0x4c3df1{constructor(_0x11abb5,_0x2396b2){const _0x35bdb6=_0x5ae4d2;super(),this[_0x35bdb6(0x113)]=_0x11abb5,this[_0x35bdb6(0x253)]=_0x2396b2,I(this,_0x35bdb6(0x286),new Map()),I(this,_0x35bdb6(0x23d),new _0x43ff4()),this['disposeWithMe'](_0x2d1d23(this[_0x35bdb6(0x113)][_0x35bdb6(0x373)](_0x20b29c[_0x35bdb6(0x151)])['pipe'](_0x5b276d(_0x220ff7=>_0x220ff7['getUnitId']())),this[_0x35bdb6(0x113)]['getTypeOfUnitDisposed$'](_0x20b29c[_0x35bdb6(0x1ad)])[_0x35bdb6(0x1ee)](_0x5b276d(_0x3e6f5e=>_0x3e6f5e[_0x35bdb6(0x2a1)]())))[_0x35bdb6(0x34c)](_0x3928d9=>this[_0x35bdb6(0x358)](_0x3928d9)));}[_0x5ae4d2(0x19d)](_0x21e868){const _0x49f12f=_0x5ae4d2;return this['_roomMembers'][_0x49f12f(0x120)](_0x21e868)?_0x1abee8(this[_0x49f12f(0x286)]['get'](_0x21e868)):this['_roomCreated$'][_0x49f12f(0x1ee)](_0x5b276d(_0x5e9b84=>{const _0x59d11d=_0x49f12f;if(_0x5e9b84===_0x21e868)return this['_roomMembers'][_0x59d11d(0x2b2)](_0x5e9b84);}));}[_0x5ae4d2(0x13d)](_0x21302d){const _0x36e111=_0x5ae4d2;this[_0x36e111(0x253)][_0x36e111(0x13d)](_0x21302d);}[_0x5ae4d2(0x37f)](){return this['_userManagerService']['getCurrentUser']();}['updateMember'](_0x36aa56,_0x29ad3f){const _0x5d4adb=_0x5ae4d2;let _0x2542a7=this[_0x5d4adb(0x286)][_0x5d4adb(0x2b2)](_0x36aa56);_0x2542a7||(_0x2542a7=new Tt(),this[_0x5d4adb(0x286)]['set'](_0x36aa56,_0x2542a7),this['_roomCreated$'][_0x5d4adb(0x382)](_0x36aa56)),_0x2542a7[_0x5d4adb(0x181)](_0x29ad3f);}[_0x5ae4d2(0x341)](_0x87d00a,_0x1687f2){const _0xd1a38=_0x5ae4d2;let _0x5bee4e=this[_0xd1a38(0x286)]['get'](_0x87d00a);_0x5bee4e&&_0x5bee4e[_0xd1a38(0x341)](_0x1687f2);}[_0x5ae4d2(0x1e6)](_0x43d6ab){const _0x4a4d74=_0x5ae4d2;return this[_0x4a4d74(0x286)]['get'](_0x43d6ab);}['getMember'](_0x4ca60b,_0x5754ba){const _0xdcfd2=_0x5ae4d2;let _0x3aee86=this['_roomMembers'][_0xdcfd2(0x2b2)](_0x4ca60b);if(_0x3aee86)return _0x3aee86['getMember'](_0x5754ba);}[_0x5ae4d2(0x358)](_0x547f1b){const _0x28e025=_0x5ae4d2;let _0x2e1278=this['_roomMembers']['get'](_0x547f1b);_0x2e1278&&(_0x2e1278['dispose'](),this[_0x28e025(0x286)]['delete'](_0x547f1b));}['dispose'](){const _0x5bef98=_0x5ae4d2;this[_0x5bef98(0x286)]['forEach'](_0x3c2c95=>_0x3c2c95[_0x5bef98(0x2e1)]()),this[_0x5bef98(0x286)][_0x5bef98(0x1ba)](),this['_roomCreated$'][_0x5bef98(0x208)]();}};B=z([R(0x0,_0x2f9fc),R(0x1,_0x4e3f0c(_0x348047))],B);var Tt=class extends _0x4c3df1{constructor(..._0x483ed6){const _0x30ffee=_0x5ae4d2;super(..._0x483ed6),I(this,_0x30ffee(0x360),new Map()),I(this,_0x30ffee(0x2fa),new _0xddeafe(this['_members'])),I(this,_0x30ffee(0x17c),this[_0x30ffee(0x2fa)][_0x30ffee(0x32b)]());}[_0x5ae4d2(0x2e1)](){const _0x4f993f=_0x5ae4d2;this[_0x4f993f(0x360)][_0x4f993f(0x1ba)](),this[_0x4f993f(0x2fa)][_0x4f993f(0x208)]();}[_0x5ae4d2(0x181)](_0x5053da){const _0x1ca75b=_0x5ae4d2;this['_members'][_0x1ca75b(0x245)](_0x5053da[_0x1ca75b(0x270)],_0x5053da),this[_0x1ca75b(0x273)]();}[_0x5ae4d2(0x341)](_0x54bbc4){const _0x4f3aa0=_0x5ae4d2;this[_0x4f3aa0(0x360)][_0x4f3aa0(0x379)](_0x54bbc4),this[_0x4f3aa0(0x273)]();}[_0x5ae4d2(0x2c7)](_0x48f7cd){const _0x57734d=_0x5ae4d2;return this['_members'][_0x57734d(0x2b2)](_0x48f7cd);}['getAllMembers'](){const _0x2172a1=_0x5ae4d2;return Array[_0x2172a1(0x1b3)](this[_0x2172a1(0x360)][_0x2172a1(0x254)]());}[_0x5ae4d2(0x273)](){const _0x5484a7=_0x5ae4d2;this[_0x5484a7(0x2fa)][_0x5484a7(0x382)](this[_0x5484a7(0x360)]);}};let Et=function(_0x3e7799){const _0x2f8c04=_0x5ae4d2;return _0x3e7799[_0x3e7799[_0x2f8c04(0x2c1)]=0x0]=_0x2f8c04(0x2c1),_0x3e7799[_0x3e7799[_0x2f8c04(0x2dc)]=0x1]=_0x2f8c04(0x2dc),_0x3e7799[_0x3e7799['OFFLINE']=0x2]=_0x2f8c04(0x383),_0x3e7799[_0x3e7799['ONLINE']=0x3]=_0x2f8c04(0x1e5),_0x3e7799;}({});const Dt={[_0xfea562[_0x5ae4d2(0x154)]]:_0x5ae4d2(0x375),[_0xfea562[_0x5ae4d2(0x2a4)]]:_0x5ae4d2(0x228),[_0xfea562[_0x5ae4d2(0x235)]]:_0x5ae4d2(0x1bc),[_0xfea562['JOIN_ROOM_PERMISSION_DENIED']]:_0x5ae4d2(0x19a),[_0xfea562[_0x5ae4d2(0x20a)]]:'session.room-cnt-exceeds'};let Ot=class extends _0x1e5f27{get[_0x5ae4d2(0x2ec)](){const _0x5a126d=_0x5ae4d2;return this[_0x5a126d(0x28f)][_0x5a126d(0x152)]();}constructor(_0x2b937a,_0x41cc13,_0xc2d14d,_0x3fe09e,_0x46816c,_0x24d568,_0x45903f,_0x8e8884){const _0x588890=_0x5ae4d2;super(),this[_0x588890(0x266)]=_0x2b937a,this[_0x588890(0x125)]=_0xc2d14d,this[_0x588890(0x14a)]=_0x3fe09e,this[_0x588890(0x10f)]=_0x46816c,this[_0x588890(0x372)]=_0x24d568,this[_0x588890(0x2ad)]=_0x45903f,this[_0x588890(0x28b)]=_0x8e8884,I(this,_0x588890(0x28f),new _0xddeafe(0x0)),I(this,_0x588890(0x157),this[_0x588890(0x28f)][_0x588890(0x32b)]()),I(this,_0x588890(0x313),new _0x43ff4()),I(this,_0x588890(0x150),this['_event$'][_0x588890(0x32b)]()),I(this,_0x588890(0x1bb),void 0x0),I(this,'_socketMessageSubscription',void 0x0),I(this,_0x588890(0x339),void 0x0),I(this,_0x588890(0x18e),!0x1),I(this,_0x588890(0x35b),null),this[_0x588890(0x18e)]=!!this['_telemetryService'],_0x41cc13[_0x588890(0x1ee)](_0x11efa6(this[_0x588890(0x229)]))[_0x588890(0x34c)](_0x31d2d9=>{const _0x176794=_0x588890;if(_0x31d2d9!==void 0x0){if(this[_0x176794(0x1bb)]=_0x31d2d9,_0x31d2d9)this[_0x176794(0x2e8)](_0x31d2d9),this[_0x176794(0x196)]=_0x31d2d9[_0x176794(0x184)][_0x176794(0x34c)](_0x7cd894=>{const _0xf63314=_0x176794;_0x7cd894[_0xf63314(0x349)]===this[_0xf63314(0x266)]&&this[_0xf63314(0x2b5)](_0x7cd894);});else{var _0x5bdb7a;this[_0x176794(0x1d1)](),this['_sessionStatus$'][_0x176794(0x382)](0x2),(_0x5bdb7a=this[_0x176794(0x196)])==null||_0x5bdb7a[_0x176794(0x318)](),this[_0x176794(0x196)]=null;}}});}[_0x5ae4d2(0x1e1)](){const _0x555bba=_0x5ae4d2;var _0x114fe2,_0x27869f;return(_0x114fe2=(_0x27869f=this[_0x555bba(0x1bb)])==null?void 0x0:_0x27869f[_0x555bba(0x270)])==null?null:_0x114fe2;}[_0x5ae4d2(0x2e1)](){const _0xd20c2c=_0x5ae4d2;super[_0xd20c2c(0x2e1)](),this[_0xd20c2c(0x298)](),this[_0xd20c2c(0x229)][_0xd20c2c(0x382)](),this[_0xd20c2c(0x229)][_0xd20c2c(0x208)]();}[_0x5ae4d2(0x298)](){const _0x251234=_0x5ae4d2;var _0x608145,_0x43497b;this[_0x251234(0x1d1)](),(_0x608145=this[_0x251234(0x1bb)])==null||_0x608145[_0x251234(0x37e)]({'cmd':_0x454ca3[_0x251234(0x27e)],'data':{'roomID':this[_0x251234(0x266)]}}),(_0x43497b=this[_0x251234(0x1bb)])==null||_0x43497b[_0x251234(0x298)](),this[_0x251234(0x313)]['complete'](),this['_sessionStatus$']['complete']();}['_onCombEvent'](_0x186bd5){const _0x16d718=_0x5ae4d2;_0x186bd5[_0x16d718(0x27c)]===_0x454ca3[_0x16d718(0x327)]?this[_0x16d718(0x1ea)](_0x186bd5):_0x186bd5[_0x16d718(0x27c)]===_0x454ca3[_0x16d718(0x1de)]&&this[_0x16d718(0x32e)](_0x186bd5);}['_joinRoom'](_0x3e317e){const _0x2bc7d0=_0x5ae4d2;this[_0x2bc7d0(0x28f)][_0x2bc7d0(0x382)](0x1),_0x3e317e[_0x2bc7d0(0x37e)]({'cmd':_0x454ca3[_0x2bc7d0(0x327)],'routeKey':this[_0x2bc7d0(0x266)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2bc7d0(0x266)]}]}});}[_0x5ae4d2(0x1ea)](_0x4c486d){const _0x18327c=_0x5ae4d2;var _0x26ef7e;if(_0x4c486d[_0x18327c(0x34f)]in Dt){this[_0x18327c(0x2ad)][_0x18327c(0x175)]({'id':'JOIN_ROOM_FAILED','data':Dt[_0x4c486d[_0x18327c(0x34f)]]}),this['_sessionStatus$']['next'](0x2);return;}this[_0x18327c(0x28f)]['next'](0x3);let _0x1a3b0b=(_0x26ef7e=_0x4c486d[_0x18327c(0x20d)][_0x18327c(0x111)][this['_unitID']])==null?void 0x0:_0x26ef7e[_0x18327c(0x1f5)];_0x1a3b0b&&_0x1a3b0b[_0x18327c(0x284)](_0x34062b=>this[_0x18327c(0x10f)][_0x18327c(0x181)](this[_0x18327c(0x266)],_0x34062b));}['_onRecvEvent'](_0x3902c3){const _0x4e1380=_0x5ae4d2;try{let _0x210521=_0x3902c3[_0x4e1380(0x20d)];switch(_0x210521['eventID']){case _0x549cb3[_0x4e1380(0x219)]:this[_0x4e1380(0x264)](_0x210521),this[_0x4e1380(0x313)]['next'](_0x210521);break;case _0x549cb3['USERS_LEAVE']:this['_onUserLeave'](_0x210521),this[_0x4e1380(0x313)][_0x4e1380(0x382)](_0x210521);break;case _0x549cb3['CHANGESET_ACK']:case _0x549cb3[_0x4e1380(0x345)]:this[_0x4e1380(0x357)](),this[_0x4e1380(0x193)](),this[_0x4e1380(0x313)][_0x4e1380(0x382)](_0x210521);break;case _0x549cb3[_0x4e1380(0x206)]:this[_0x4e1380(0x125)][_0x4e1380(0x1d9)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x4e1380(0x261)](_0x210521)),this[_0x4e1380(0x313)][_0x4e1380(0x382)](_0x210521);break;case _0x549cb3[_0x4e1380(0x363)]:this['_commentService'][_0x4e1380(0x2c0)](_0x210521[_0x4e1380(0x20d)]),this[_0x4e1380(0x313)][_0x4e1380(0x382)](_0x210521);break;default:this['_event$'][_0x4e1380(0x382)](_0x210521);}}catch(_0x28a3d8){this[_0x4e1380(0x125)][_0x4e1380(0x1d9)](_0x28a3d8,_0x3902c3);}}['_onUserJoin'](_0x358ad6){const _0xc423b6=_0x5ae4d2;this[_0xc423b6(0x10f)][_0xc423b6(0x181)](this[_0xc423b6(0x266)],_0x358ad6['data']);}[_0x5ae4d2(0x2bd)](_0x4513a0){const _0x4e26a1=_0x5ae4d2;this['_memberService'][_0x4e26a1(0x341)](this[_0x4e26a1(0x266)],_0x4513a0[_0x4e26a1(0x20d)]['memberID']);}async[_0x5ae4d2(0x37e)](_0x223ffe,_0x1f651e){const _0x28bb7c=_0x5ae4d2;if(this[_0x28bb7c(0x2ec)]!==0x3||!this[_0x28bb7c(0x1bb)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x223ffe['eventID']===_0x549cb3['SUBMIT_CHANGESET']&&(this[_0x28bb7c(0x247)](),this['_startTelemetryCollaborationNewChangeset'](_0x223ffe)),this['_socket'][_0x28bb7c(0x37e)]({'cmd':_0x454ca3[_0x28bb7c(0x377)],'routeKey':_0x1f651e,'routeType':'','data':_0x223ffe});}catch(_0x551952){this[_0x28bb7c(0x125)][_0x28bb7c(0x1d9)](_0x551952);}}[_0x5ae4d2(0x247)](){const _0x202a1e=_0x5ae4d2;var _0x12a87b;this[_0x202a1e(0x339)]=setTimeout(()=>{const _0x19d6d8=_0x202a1e;this[_0x19d6d8(0x339)]=null,this['_collaborationUIEventService'][_0x19d6d8(0x175)]({'id':_0x19d6d8(0x1a0)});},(_0x12a87b=this['_configService'][_0x202a1e(0x2c6)](_0x202a1e(0x11e)))==null?mt:_0x12a87b);}['_clearCollaborationTimeoutTimer'](){const _0x287727=_0x5ae4d2;this[_0x287727(0x339)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x287727(0x339)]=null);}[_0x5ae4d2(0x174)](_0x4703eb){const _0x3f1a30=_0x5ae4d2;if(!this[_0x3f1a30(0x18e)])return;let {data:_0x3528ec}=_0x4703eb,{unitID:_0x50ff95,changeset:_0xae2d8d}=_0x3528ec,{mutations:_0x219ef9,type:_0x441ef7}=_0xae2d8d;this[_0x3f1a30(0x35b)]={'unitId':_0x50ff95,'type':_0x441ef7,'startTime':performance[_0x3f1a30(0x31d)](),'stopTime':0x0,'duration':0x0,'size':bt(_0x219ef9)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x1eb119=_0x5ae4d2;if(this[_0x1eb119(0x18e)]){if(!this[_0x1eb119(0x35b)]){this[_0x1eb119(0x125)]['error'](_0x1eb119(0x1d6),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x1eb119(0x35b)][_0x1eb119(0x1dd)]=performance['now'](),this[_0x1eb119(0x35b)]['duration']=this[_0x1eb119(0x35b)]['stopTime']-this[_0x1eb119(0x35b)][_0x1eb119(0x19b)],this['_telemetryService']['capture'](_0x1eb119(0x2e5),this[_0x1eb119(0x35b)]),this['_telemetryInfo']=null;}}[_0x5ae4d2(0x1d1)](){const _0x101764=_0x5ae4d2;this[_0x101764(0x35b)]=null;}};Ot=z([R(0x2,_0x2dd0ba),R(0x3,_0x2a37e1),R(0x4,_0x4e3f0c(B)),R(0x5,_0x4e3f0c(wt)),R(0x6,_0x4e3f0c(L)),R(0x7,_0xd20bc(_0x2aa7e9))],Ot);const V=_0x198360(_0x5ae4d2(0x156));function kt(_0x683690){return'unit-cache-'+_0x683690;}function At(_0x347891){const _0x53d867=_0x5ae4d2;let {unitID:_0x11c88f,mutations:_0x2c2a5e}=_0x347891;return{'unitId':_0x11c88f,'subUnitId':_0x2c2a5e[_0x53d867(0x1a1)]>0x0?_0x2c2a5e[0x0][_0x53d867(0x23f)]['subUnitId']:null};}let H=class{constructor(_0x445976,_0x1c0739,_0x346067){const _0x46a60a=_0x5ae4d2;this['_injector']=_0x445976,this[_0x46a60a(0x2b0)]=_0x1c0739,this[_0x46a60a(0x292)]=_0x346067;}['transformSelections'](_0x186ef5){const _0x273e9b=_0x5ae4d2;var _0x155047,_0x1c7e25;let _0x1d3965=this[_0x273e9b(0x25e)][_0x273e9b(0x2b2)](_0x35eb79),{unitId:_0x293ad7,subUnitId:_0x5886b6}=At(_0x186ef5),_0x3beeff=_0x1d3965==null?void 0x0:_0x1d3965[_0x273e9b(0x365)](_0x293ad7)[_0x273e9b(0x24d)](),_0x4226d0=(_0x155047=this[_0x273e9b(0x292)]['getUnit'](_0x293ad7))==null||(_0x155047=_0x155047[_0x273e9b(0x12f)]())==null?void 0x0:_0x155047[_0x273e9b(0x294)]();if(_0x3beeff[_0x273e9b(0x1a1)]===0x0||!_0x293ad7||!_0x5886b6)return;let _0x30745e=[{'id':_0x441a6e['id'],'params':{'unitId':_0x293ad7,'subUnitId':_0x4226d0,'selections':_0xc73593['deepClone'](_0x3beeff)}}],_0x561463=this[_0x273e9b(0x2b0)][_0x273e9b(0x1f8)](_0x186ef5,_0x30745e);if(!_0x5d08ab(_0x561463))throw _0x561463[_0x273e9b(0x1d9)];let _0x57456c=(_0x1c7e25=_0x561463[_0x273e9b(0x2bc)][0x0])==null||(_0x1c7e25=_0x1c7e25[_0x273e9b(0x23f)])==null?void 0x0:_0x1c7e25['selections'];if(Array['isArray'](_0x57456c)&&_0x57456c['length']){if(_0x57456c['length']===_0x30745e[0x0][_0x273e9b(0x23f)]['selections'][_0x273e9b(0x1a1)]&&_0x57456c[_0x273e9b(0x1b0)]((_0x15a30e,_0x1e094c)=>_0x97a04c[_0x273e9b(0x307)](_0x15a30e[_0x273e9b(0x1ce)],_0x30745e[0x0][_0x273e9b(0x23f)]['selections'][_0x1e094c][_0x273e9b(0x1ce)])))return;this[_0x273e9b(0x25e)]['get'](_0x179ec4)[_0x273e9b(0x1d3)](_0x441a6e['id'],{'unitId':_0x293ad7,'subUnitId':_0x4226d0,'selections':_0x57456c});}}};H=z([R(0x0,_0x4e3f0c(_0x1422f8)),R(0x1,_0x549fa2),R(0x2,_0x2f9fc)],H);const jt=_0x198360(_0x5ae4d2(0x257));let Mt=function(_0x24ad84){const _0xe2fe79=_0x5ae4d2;return _0x24ad84[_0x24ad84[_0xe2fe79(0x28d)]=0x0]=_0xe2fe79(0x28d),_0x24ad84[_0x24ad84['OTHER_CLIENTS_EDITING']=0x1]=_0xe2fe79(0x14d),_0x24ad84;}({});const U='collaboration-client.config',Nt={};function Pt(_0x437bc3){const _0x47f46c=_0x5ae4d2;var _0x4392d;return!!((_0x4392d=_0x437bc3[_0x47f46c(0x23f)])!=null&&_0x4392d[_0x47f46c(0x299)]);}const Ft=new Set([_0x5d2412['id']]);function It(_0x2ce78a,_0x5f4cc7,_0x48f883,_0x412d3c,_0x4ee7bb){const _0x5d1ff7=_0x5ae4d2;var _0x2502ec,_0x4c09e2,_0x51c046,_0x212cb2;let _0x274696=[];for(let _0x154a94 of _0x2ce78a){if(Ft[_0x5d1ff7(0x120)](_0x154a94['id'])){if(_0x274696[_0x5d1ff7(0x1a1)]>0x0)break;_0x274696['push'](_0x154a94);break;}if(Pt(_0x154a94)){if(_0x274696[_0x5d1ff7(0x1a1)]>0x0)break;_0x274696['push'](_0x154a94);break;}_0x274696[_0x5d1ff7(0x1c1)](_0x154a94);}let _0x1fa89d=(_0x2502ec=(_0x4c09e2=_0x4ee7bb[_0x5d1ff7(0x37f)]())==null?void 0x0:_0x4c09e2['userID'])==null?_0x5d1ff7(0x2fb):_0x2502ec,_0x2c99bb=(_0x51c046=(_0x212cb2=_0x4ee7bb[_0x5d1ff7(0x37f)]())==null?void 0x0:_0x212cb2[_0x5d1ff7(0x270)])==null?_0x5d1ff7(0x2fb):_0x51c046;return{'changeset':{'unitID':_0x5f4cc7,'type':_0x2b4a21(_0x48f883[_0x5d1ff7(0x362)](_0x5f4cc7)),'baseRev':_0x412d3c[_0x5d1ff7(0x26b)](_0x5f4cc7),'revision':0x0,'userID':_0x1fa89d,'memberID':_0x2c99bb,'mutations':_0x274696},'pendingMutations':_0x2ce78a['slice'](_0x274696[_0x5d1ff7(0x1a1)])};}function Lt(_0x2764f2,_0x544f28,_0x1c1990,_0x1a429d,_0x262cd8){const _0x2a15bb=_0x5ae4d2;var _0x2fb5c9,_0x433978,_0x1eebc5,_0x4991ea;let _0x390831=_0x2764f2[_0x2a15bb(0x23b)]((_0x3c0c4a,_0x1bc391)=>{const _0x7a94ff=_0x2a15bb;let _0x576be2=_0x3c0c4a[_0x3c0c4a[_0x7a94ff(0x1a1)]-0x1],{id:_0x4284f7}=_0x576be2==null?{}:_0x576be2,{id:_0x63364d,type:_0x5028c7}=_0x1bc391,_0x22cced=_0x1bc391[_0x7a94ff(0x23f)];if(_0x4284f7&&_0x4284f7!==_0x63364d)throw Error(_0x7a94ff(0x32c)+_0x4284f7+'\x20-\x20'+_0x63364d+'.');if(!_0x576be2)return[{'id':_0x63364d,'type':_0x5028c7,'params':{'unitId':_0x22cced[_0x7a94ff(0x295)],'textRanges':_0x22cced['textRanges'],'actions':_0x22cced['actions']}}];let _0x1eeca8=_0x576be2[_0x7a94ff(0x23f)];return Rt(_0x1eeca8[_0x7a94ff(0x11a)],_0x22cced[_0x7a94ff(0x11a)])?[..._0x3c0c4a[_0x7a94ff(0x168)](0x0,-0x1),{..._0x576be2,'id':_0x63364d,'type':_0x5028c7,'params':{'unitId':_0x22cced[_0x7a94ff(0x295)],'textRanges':_0x22cced[_0x7a94ff(0x13e)],'actions':_0x50ed51[_0x7a94ff(0x37b)](_0x1eeca8[_0x7a94ff(0x11a)],_0x22cced[_0x7a94ff(0x11a)])}}]:[..._0x3c0c4a,{'id':_0x63364d,'type':_0x5028c7,'params':{'unitId':_0x22cced[_0x7a94ff(0x295)],'textRanges':_0x22cced[_0x7a94ff(0x13e)],'actions':_0x22cced['actions']}}];},[]),_0x4e14fc=(_0x2fb5c9=(_0x433978=_0x262cd8['getCurrentUser']())==null?void 0x0:_0x433978[_0x2a15bb(0x20b)])==null?'unknown':_0x2fb5c9,_0x30d8de=(_0x1eebc5=(_0x4991ea=_0x262cd8[_0x2a15bb(0x37f)]())==null?void 0x0:_0x4991ea[_0x2a15bb(0x270)])==null?_0x2a15bb(0x2fb):_0x1eebc5;return{'changeset':{'unitID':_0x544f28,'type':_0x2b4a21(_0x1c1990[_0x2a15bb(0x362)](_0x544f28)),'baseRev':_0x1a429d[_0x2a15bb(0x26b)](_0x544f28),'revision':0x0,'userID':_0x4e14fc,'memberID':_0x30d8de,'mutations':_0x390831},'pendingMutations':_0x2764f2[_0x2a15bb(0x168)](_0x2764f2[_0x2a15bb(0x1a1)])};}function Rt(_0x58b2e5,_0x23735a){return!(zt(_0x58b2e5)&&Bt(_0x23735a)||Bt(_0x58b2e5)&&zt(_0x23735a));}function zt(_0x500f36){const _0xb5bf17=_0x5ae4d2;return Vt(_0x500f36)[_0xb5bf17(0x2d0)](_0x5111ee=>Ht(_0x5111ee)&&_0x5111ee['et']==='text-x');}function Bt(_0x4dc2f9){const _0x5853da=_0x5ae4d2;return Vt(_0x4dc2f9)[_0x5853da(0x2d0)](_0x266fd2=>Array['isArray'](_0x266fd2)||typeof _0x266fd2==_0x5853da(0x2b9)||typeof _0x266fd2==_0x5853da(0x268));}function Vt(_0x5098bc){const _0x567ad4=_0x5ae4d2;if(!Array[_0x567ad4(0x2bb)](_0x5098bc))return[];let _0x95f477=_0x5098bc['includes'](_0x567ad4(0x290))?_0x5098bc:_0x5098bc['find'](_0x4f1edd=>Array[_0x567ad4(0x2bb)](_0x4f1edd)&&_0x4f1edd['includes'](_0x567ad4(0x290)));if(!Array['isArray'](_0x95f477))return[];let _0x47f048=_0x95f477[_0x567ad4(0x144)](_0x567ad4(0x290));return _0x47f048===-0x1?[]:_0x95f477[_0x567ad4(0x168)](_0x47f048+0x1);}function Ht(_0x4367bb){const _0x5aad20=_0x5ae4d2;return typeof _0x4367bb==_0x5aad20(0x1fc)&&!!_0x4367bb&&!Array[_0x5aad20(0x2bb)](_0x4367bb);}function Ut(_0x1a9f51,_0x1d2630){const _0x2b3c86=_0x5ae4d2;let _0x3e1e80=new _0x74c07c(0x1);return setTimeout(()=>_0x3e1e80['next'](_0x1d2630),_0x1a9f51),_0x3e1e80['asObservable']()[_0x2b3c86(0x1ee)](_0x158df5(0x1));}var Wt,Gt,Kt;let qt=function(_0x423bea){const _0x5c8b86=_0x5ae4d2;return _0x423bea[_0x5c8b86(0x33c)]=_0x5c8b86(0x32a),_0x423bea[_0x5c8b86(0x22c)]='synced',_0x423bea[_0x5c8b86(0x380)]=_0x5c8b86(0x13c),_0x423bea[_0x5c8b86(0x187)]=_0x5c8b86(0x1a6),_0x423bea[_0x5c8b86(0x2ed)]=_0x5c8b86(0x1eb),_0x423bea[_0x5c8b86(0x20c)]=_0x5c8b86(0x288),_0x423bea[_0x5c8b86(0x1f6)]='conflict',_0x423bea[_0x5c8b86(0x383)]=_0x5c8b86(0x162),_0x423bea;}({});const Jt=0x4e20,Yt=0x2bf20;var W=class{constructor(_0x167260,_0x551307,_0x2ef84d,_0x4e5753,_0x1c5a3c,_0x528268,_0x222460,_0x4d1292,_0x395c63){const _0xbf937c=_0x5ae4d2;this[_0xbf937c(0x213)]=_0x167260,this[_0xbf937c(0x29d)]=_0x551307,this['_handler']=_0x1c5a3c,this['_commandService']=_0x528268,this[_0xbf937c(0x35a)]=_0x222460,this['_revisionService']=_0x4d1292,this[_0xbf937c(0x337)]=_0x395c63,I(this,_0xbf937c(0x333),null),I(this,_0xbf937c(0x19c),[]),this[_0xbf937c(0x333)]=_0x2ef84d,this[_0xbf937c(0x19c)]=_0x4e5753;}[_0x5ae4d2(0x30c)](_0x43d19a){const _0x4379b9=_0x5ae4d2;let _0x35af1b=this[_0x4379b9(0x2f6)]['getCurrentRevOfUnit'](this[_0x4379b9(0x213)]);return _0x43d19a[_0x4379b9(0x27a)]>_0x35af1b+0x1?(this[_0x4379b9(0x11b)]['onMissingChangesets']({'from':_0x35af1b,'to':_0x43d19a['revision']-0x1}),!0x0):!0x1;}[_0x5ae4d2(0x138)](_0x50f5e0){const _0x42726f=_0x5ae4d2;this[_0x42726f(0x35a)][_0x42726f(0x210)](this[_0x42726f(0x213)],_0x50f5e0);}[_0x5ae4d2(0x2c5)](_0x5e6a67){const _0x1a1314=_0x5ae4d2;var _0x3147fb,_0x1f5f17;(_0x3147fb=(_0x1f5f17=this[_0x1a1314(0x11b)])[_0x1a1314(0x169)])==null||_0x3147fb[_0x1a1314(0x1a7)](_0x1f5f17,_0x5e6a67);}['_transformIMECache'](_0x2ca535){const _0x268ed8=_0x5ae4d2;var _0x59398a,_0x4ef754;return(_0x59398a=(_0x4ef754=this[_0x268ed8(0x11b)])[_0x268ed8(0x1bf)])==null?void 0x0:_0x59398a[_0x268ed8(0x1a7)](_0x4ef754,_0x2ca535);}[_0x5ae4d2(0x24f)](_0x521de4){const _0x4f49c0=_0x5ae4d2;var _0x5268f8,_0x503516;return(_0x5268f8=(_0x503516=this[_0x4f49c0(0x11b)])[_0x4f49c0(0x359)])==null?void 0x0:_0x5268f8[_0x4f49c0(0x1a7)](_0x503516,_0x521de4);}[_0x5ae4d2(0x30f)](_0x55560f){const _0x2576a2=_0x5ae4d2;var _0x3ce4a5,_0x2cd5a8,_0x4750fa;return(_0x3ce4a5=(_0x2cd5a8=(_0x4750fa=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2cd5a8[_0x2576a2(0x1a7)](_0x4750fa,_0x55560f))==null?_0x55560f:_0x3ce4a5;}[_0x5ae4d2(0x376)](_0x90c322){const _0x40bb0b=_0x5ae4d2;var _0x331ec2,_0x381e30,_0x409a0f;return(_0x331ec2=(_0x381e30=(_0x409a0f=this['_handler'])[_0x40bb0b(0x2e3)])==null?void 0x0:_0x381e30['call'](_0x409a0f,_0x90c322))==null?_0x90c322:_0x331ec2;}[_0x5ae4d2(0x1be)](_0x263e56){const _0x5d185a=_0x5ae4d2;if(this['type']===_0x20b29c[_0x5d185a(0x1ad)]){let {unitID:_0xbb950,mutations:_0x5a8e95,memberID:_0x4606aa}=_0x263e56,_0xf0033f=_0x5a8e95['length']>0x0?_0x5a8e95[0x0][_0x5d185a(0x23f)][_0x5d185a(0x13e)]:[];if(Array[_0x5d185a(0x2bb)](_0xf0033f)&&_0xf0033f[_0x5d185a(0x1a1)]>0x0){var _0x180a62,_0x372f25;(_0x180a62=(_0x372f25=this[_0x5d185a(0x11b)])['onSyncEditingCollabCursor'])==null||_0x180a62[_0x5d185a(0x1a7)](_0x372f25,{'unitID':_0xbb950,'memberID':_0x4606aa,'textRanges':_0xf0033f});}}}['_updateLocalCache'](){const _0x3f6af8=_0x5ae4d2;var _0x382f63;(_0x382f63=this[_0x3f6af8(0x337)])==null||_0x382f63['updateOfflineData'](this[_0x3f6af8(0x213)],this[_0x3f6af8(0x29d)],this[_0x3f6af8(0x333)],this[_0x3f6af8(0x19c)]);}['_getCurrentRevision'](){const _0x20be8b=_0x5ae4d2;return this[_0x20be8b(0x2f6)][_0x20be8b(0x26b)](this[_0x20be8b(0x213)]);}['_incrementRevisionNumber'](){const _0x53efad=_0x5ae4d2;this[_0x53efad(0x2f6)][_0x53efad(0x309)](this[_0x53efad(0x213)]);}[_0x5ae4d2(0x306)](_0x1af9d3){const _0x47a7b5=_0x5ae4d2;let _0x699c03=this[_0x47a7b5(0x30f)](_0x1af9d3);_0x699c03=this[_0x47a7b5(0x376)](_0x699c03);let _0x1b9313=_0x583592(_0x699c03[_0x47a7b5(0x36f)],this[_0x47a7b5(0x15d)],{'fromCollab':!0x0});if(!_0x1b9313[_0x47a7b5(0x1a2)]){var _0x24b13b;throw _0x1b9313['error']instanceof Error?_0x1b9313['error']:Error((_0x24b13b=_0x1b9313[_0x47a7b5(0x1d9)])==null?_0x47a7b5(0x296):_0x24b13b);}this[_0x47a7b5(0x216)](_0x699c03),this[_0x47a7b5(0x24f)](_0x699c03),this['_transformUndoredo'](_0x1af9d3),this['_transformSelections'](_0x699c03),this[_0x47a7b5(0x1be)](_0x699c03),this[_0x47a7b5(0x25d)]();}};let G=class extends W{constructor(_0x7abb,_0x47d989,_0x590552,_0x697943,_0x33cce3,_0x5c564e,_0x3b971e,_0x1c6eac,_0x5abe4d,_0x38a830){const _0x52f18b=_0x5ae4d2;super(_0x7abb,_0x47d989,null,[],_0x590552,_0x3b971e,_0x5c564e,_0x697943,_0x38a830),this[_0x52f18b(0x25e)]=_0x33cce3,this[_0x52f18b(0x125)]=_0x1c6eac,this['_transformService']=_0x5abe4d,this[_0x52f18b(0x19e)]=_0x38a830,I(this,'status','synced');}[_0x5ae4d2(0x205)](_0x328ddc){const _0x5d0065=_0x5ae4d2;let _0x1e0ce1=this[_0x5d0065(0x25e)][_0x5d0065(0x161)](K,this['unitID'],this[_0x5d0065(0x29d)],[_0x328ddc],this['_handler']);return _0x1e0ce1[_0x5d0065(0x37d)](),_0x1e0ce1[_0x5d0065(0x179)](),_0x1e0ce1;}[_0x5ae4d2(0x32f)](_0x112d43){const _0x580527=_0x5ae4d2;if(this[_0x580527(0x30c)](_0x112d43))return this[_0x580527(0x25e)]['createInstance'](Z,this[_0x580527(0x213)],this[_0x580527(0x29d)],null,[],null,[_0x112d43],this[_0x580527(0x11b)]);try{let _0x6ce998=this['_transformService'][_0x580527(0x1f8)](_0x112d43,[_0x536255]);if(_0x5d08ab(_0x6ce998)){let {c1Prime:_0xba9a83}=_0x6ce998;return this['_executeRemoteChangeset'](_0xba9a83),this;}throw _0x6ce998[_0x580527(0x1d9)];}catch(_0x369dbc){return this[_0x580527(0x125)]['error'](_0x369dbc),this['_onConflict'](!0x1);}}[_0x5ae4d2(0x1c5)](_0x2ae323){const _0x28079c=_0x5ae4d2;return this[_0x28079c(0x25e)][_0x28079c(0x161)](Y,this[_0x28079c(0x213)],this[_0x28079c(0x29d)],null,[],this[_0x28079c(0x11b)],_0x2ae323);}['onRemoteAck'](_0x49e5e2){const _0x2386de=_0x5ae4d2;if(_0x49e5e2[_0x2386de(0x27a)]<=this['_getCurrentRevision']())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x5ae4d2(0x1a4)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x578ae4=_0x5ae4d2;return this[_0x578ae4(0x25e)][_0x578ae4(0x161)](X,this[_0x578ae4(0x213)],this[_0x578ae4(0x29d)],null,[],this[_0x578ae4(0x11b)]);}[_0x5ae4d2(0x2ce)](){return this;}['resend'](){const _0x10104d=_0x5ae4d2;throw Error(_0x10104d(0x1ab));}['fetchMiss'](){const _0x55320f=_0x5ae4d2;let _0x1a3ddb=this[_0x55320f(0x2f6)][_0x55320f(0x26b)](this[_0x55320f(0x213)]);return this[_0x55320f(0x11b)][_0x55320f(0x2c3)]({'from':_0x1a3ddb,'to':0x0}),this[_0x55320f(0x25e)][_0x55320f(0x161)](Z,this[_0x55320f(0x213)],this[_0x55320f(0x29d)],null,[],null,[],this[_0x55320f(0x11b)]);}};G=z([R(0x3,_0x4e3f0c(_0x154a46)),R(0x4,_0x4e3f0c(_0x1422f8)),R(0x5,_0x29640d),R(0x6,_0x179ec4),R(0x7,_0x2dd0ba),R(0x8,_0x549fa2),R(0x9,_0xd20bc(V))],G);let K=Wt=class extends W{constructor(_0x4a5e71,_0x12250f,_0x112b77,_0x483501,_0x3a81b5,_0xfda092,_0x429a7f,_0x339077,_0x9c35ef,_0x1ea304,_0x276d92,_0x483182,_0x1f1f36,_0x56ef40){const _0x1116c5=_0x5ae4d2;super(_0x4a5e71,_0x12250f,null,_0x112b77,_0x483501,_0x9c35ef,_0x1f1f36,_0xfda092,_0x56ef40),this['_injector']=_0x3a81b5,this[_0x1116c5(0x10f)]=_0x429a7f,this['_logService']=_0x339077,this['_configService']=_0x1ea304,this[_0x1116c5(0x2b0)]=_0x276d92,this[_0x1116c5(0x113)]=_0x483182,I(this,'status','pending'),I(this,_0x1116c5(0x305),null),I(this,'_sendingTimer',null);}[_0x5ae4d2(0x205)](_0x15988d){return this['_pendingMutations']['push'](_0x15988d),this['_updateLocalCache'](),this;}[_0x5ae4d2(0x32f)](_0x53d1f7){const _0x2bd278=_0x5ae4d2;if(this[_0x2bd278(0x30c)](_0x53d1f7))return this[_0x2bd278(0x14b)](),this[_0x2bd278(0x25e)][_0x2bd278(0x161)](Z,this[_0x2bd278(0x213)],this[_0x2bd278(0x29d)],null,this['_pendingMutations'],null,[_0x53d1f7],this[_0x2bd278(0x11b)]);try{let _0x38bf33=this[_0x2bd278(0x2b0)][_0x2bd278(0x1f8)](_0x53d1f7,this[_0x2bd278(0x19c)]);if(_0x5d08ab(_0x38bf33)){let {c1Prime:_0x5476d8,m2Prime:_0x27694d}=_0x38bf33;this['_executeRemoteChangeset'](_0x5476d8);let _0xdf31fe=this[_0x2bd278(0x25e)]['createInstance'](Wt,this[_0x2bd278(0x213)],this[_0x2bd278(0x29d)],_0x27694d,this[_0x2bd278(0x11b)]);this[_0x2bd278(0x14b)]();let _0x5ad0ee=new Date()['getTime'](),_0x3fea0c=this[_0x2bd278(0x305)]?Math[_0x2bd278(0x1db)](this['_scheduleCompleteTimestamp']-_0x5ad0ee,0x0):this[_0x2bd278(0x329)]();return _0xdf31fe[_0x2bd278(0x37d)](_0x3fea0c),_0xdf31fe;}throw _0x38bf33[_0x2bd278(0x1d9)];}catch(_0x1c98cb){return this[_0x2bd278(0x125)][_0x2bd278(0x1d9)](_0x1c98cb),this[_0x2bd278(0x1c5)](!0x1);}}['onRemoteAck'](_0x4bb36b){const _0x4d5977=_0x5ae4d2;if(_0x4bb36b[_0x4d5977(0x27a)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5ae4d2(0x1a4)](){const _0x108707=_0x5ae4d2;throw Error(_0x108707(0x344));}[_0x5ae4d2(0x1d5)](){return this;}['toggleOffline'](){const _0x388d53=_0x5ae4d2;return this[_0x388d53(0x14b)](),this[_0x388d53(0x25e)][_0x388d53(0x161)](X,this[_0x388d53(0x213)],this[_0x388d53(0x29d)],null,this[_0x388d53(0x19c)],this[_0x388d53(0x11b)]);}[_0x5ae4d2(0x2ce)](){return this;}[_0x5ae4d2(0x37d)](_0x51c6e5){const _0x1a8f32=_0x5ae4d2;let _0x2b2685=_0x51c6e5==null?this[_0x1a8f32(0x329)]():_0x51c6e5;this['_scheduleCompleteTimestamp']=new Date()[_0x1a8f32(0x37a)]()+_0x2b2685,this['_sendingTimer']=setTimeout(()=>{const _0x15c30b=_0x1a8f32;this[_0x15c30b(0x14b)]();let _0x4848df=null;switch(this[_0x15c30b(0x29d)]){case _0x20b29c['UNIVER_SHEET']:_0x4848df=It(this['_pendingMutations'],this[_0x15c30b(0x213)],this['_univerInstanceService'],this[_0x15c30b(0x2f6)],this['_memberService']);break;case _0x20b29c[_0x15c30b(0x1ad)]:_0x4848df=this[_0x15c30b(0x19c)]['every'](_0x5d5923=>_0x5d5923['id']===_0x160958['id'])?Lt(this[_0x15c30b(0x19c)],this['unitID'],this[_0x15c30b(0x113)],this[_0x15c30b(0x2f6)],this[_0x15c30b(0x10f)]):It(this[_0x15c30b(0x19c)],this[_0x15c30b(0x213)],this[_0x15c30b(0x113)],this[_0x15c30b(0x2f6)],this[_0x15c30b(0x10f)]);break;default:throw Error(_0x15c30b(0x33d)+this['type']+_0x15c30b(0x1a3));}let {changeset:_0xe8f4c0,pendingMutations:_0x498f4d}=_0x4848df;this['_handler'][_0x15c30b(0x36e)](_0xe8f4c0);let _0x4b75c7=_0x498f4d[_0x15c30b(0x1a1)]?this[_0x15c30b(0x25e)]['createInstance'](J,this[_0x15c30b(0x213)],this[_0x15c30b(0x29d)],_0xe8f4c0,_0x498f4d,this[_0x15c30b(0x11b)],void 0x0):this[_0x15c30b(0x25e)][_0x15c30b(0x161)](q,this[_0x15c30b(0x213)],this[_0x15c30b(0x29d)],_0xe8f4c0,this[_0x15c30b(0x11b)]);_0x4b75c7[_0x15c30b(0x179)](),this['_handler'][_0x15c30b(0x24a)](this,_0x4b75c7);},_0x2b2685);}[_0x5ae4d2(0x329)](){const _0x338a1e=_0x5ae4d2;var _0x4e4a43;let _0x1a995a=this['_configService'][_0x338a1e(0x2c6)](U);return(_0x4e4a43=_0x1a995a==null?void 0x0:_0x1a995a[_0x338a1e(0x186)])==null?0x7d0:_0x4e4a43;}[_0x5ae4d2(0x16a)](){const _0x2f5676=_0x5ae4d2;throw Error(_0x2f5676(0x214));}[_0x5ae4d2(0x14b)](){const _0x2b55ab=_0x5ae4d2;this[_0x2b55ab(0x279)]!=null&&(clearTimeout(this[_0x2b55ab(0x279)]),this[_0x2b55ab(0x279)]=null);}[_0x5ae4d2(0x1c5)](_0x28dc03){const _0xf4c82=_0x5ae4d2;return this[_0xf4c82(0x14b)](),this[_0xf4c82(0x25e)][_0xf4c82(0x161)](Y,this[_0xf4c82(0x213)],this[_0xf4c82(0x29d)],null,this[_0xf4c82(0x19c)],this['_handler'],_0x28dc03);}};K=Wt=z([R(0x4,_0x4e3f0c(_0x1422f8)),R(0x5,_0x4e3f0c(_0x154a46)),R(0x6,_0x4e3f0c(B)),R(0x7,_0x2dd0ba),R(0x8,_0x179ec4),R(0x9,_0x2a37e1),R(0xa,_0x549fa2),R(0xb,_0x2f9fc),R(0xc,_0x29640d),R(0xd,_0xd20bc(V))],K);let q=Gt=class extends W{constructor(_0x316e96,_0x58483d,_0xebc0d,_0x550adf,_0x52d788,_0x158ddb,_0x5838d7,_0x4132cb,_0x4c4a88,_0x4c9fec,_0x1c3156){const _0x3c07cd=_0x5ae4d2;super(_0x316e96,_0x58483d,_0xebc0d,[],_0x550adf,_0x5838d7,_0x4c9fec,_0x158ddb,_0x1c3156),this[_0x3c07cd(0x25e)]=_0x52d788,this[_0x3c07cd(0x125)]=_0x4132cb,this[_0x3c07cd(0x2b0)]=_0x4c4a88,I(this,_0x3c07cd(0x2ff),_0x3c07cd(0x1a6)),I(this,_0x3c07cd(0x117),0x0),I(this,'_maxTotalRetryTimeout',0x0),I(this,_0x3c07cd(0x1ca),void 0x0),I(this,'_sender',void 0x0);}['appendMutation'](_0x5e5089){const _0x217b1f=_0x5ae4d2;this['_clearScheduledTask']();let _0x181906=this['_injector'][_0x217b1f(0x161)](J,this[_0x217b1f(0x213)],this[_0x217b1f(0x29d)],this[_0x217b1f(0x333)],[_0x5e5089],this[_0x217b1f(0x11b)],this[_0x217b1f(0x1ca)]);return _0x181906[_0x217b1f(0x179)](),_0x181906;}[_0x5ae4d2(0x32f)](_0x5c691f){const _0x33d610=_0x5ae4d2;if(this['_checkMissing'](_0x5c691f))return this[_0x33d610(0x14b)](),this['_injector'][_0x33d610(0x161)](Z,this[_0x33d610(0x213)],this[_0x33d610(0x29d)],this[_0x33d610(0x333)],[],null,[_0x5c691f],this[_0x33d610(0x11b)]);try{let _0x4551e3=this[_0x33d610(0x2b0)][_0x33d610(0x353)]([_0x5c691f],[this[_0x33d610(0x333)]],!0x1);if(_0x1590e6(_0x4551e3)){let {c1Prime:_0x1fb026,c2Prime:_0x55869a}=_0x4551e3;this[_0x33d610(0x306)](_0x1fb026[0x0]),_0x55869a[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask']();let _0x5033af=this[_0x33d610(0x25e)][_0x33d610(0x161)](Gt,this['unitID'],this[_0x33d610(0x29d)],_0x55869a[0x0],this['_handler']);return _0x5033af[_0x33d610(0x179)](),_0x5033af;}throw _0x4551e3[_0x33d610(0x1d9)];}catch(_0x46d5fc){return this[_0x33d610(0x125)]['error'](_0x46d5fc),this[_0x33d610(0x1c5)](!0x1);}}['onRemoteAck'](_0x536b0e){const _0x5449e2=_0x5ae4d2;this[_0x5449e2(0x14b)]();let _0x29cedd=this[_0x5449e2(0x2f6)][_0x5449e2(0x26b)](this['unitID']);if(_0x536b0e[_0x5449e2(0x27a)]<=_0x29cedd)return this;if(this['_checkMissing'](_0x536b0e))return this[_0x5449e2(0x25e)][_0x5449e2(0x161)](Z,this[_0x5449e2(0x213)],this[_0x5449e2(0x29d)],this[_0x5449e2(0x333)],[],_0x536b0e[_0x5449e2(0x27a)],[],this['_handler']);this[_0x5449e2(0x25d)]();let _0x3ed6cd=this['_injector']['createInstance'](G,this[_0x5449e2(0x213)],this[_0x5449e2(0x29d)],this[_0x5449e2(0x11b)]);return _0x3ed6cd[_0x5449e2(0x179)](),_0x3ed6cd;}[_0x5ae4d2(0x1a4)](_0x9b2af2){return this['_onConflict'](!!(_0x9b2af2!=null&&_0x9b2af2['isPermissionRej']));}[_0x5ae4d2(0x1d5)](_0x432afb){const _0x46b579=_0x5ae4d2;return this[_0x46b579(0x1fe)]>Yt?this[_0x46b579(0x17e)]():(this['_resendTimer']=Ut(this[_0x46b579(0x117)],{'timeout':this['_resendTimeout'],'reqId':_0x432afb['reqId']}),this['_sender']=this[_0x46b579(0x1ca)][_0x46b579(0x34c)](({reqId:_0x5cfaf1,timeout:_0x322c6f})=>{const _0x196528=_0x46b579;this[_0x196528(0x265)](_0x5cfaf1,_0x322c6f);}),this);}[_0x5ae4d2(0x17e)](){const _0x1e10c8=_0x5ae4d2;return this[_0x1e10c8(0x14b)](),this['_injector'][_0x1e10c8(0x161)](X,this[_0x1e10c8(0x213)],this[_0x1e10c8(0x29d)],this['_awaitingChangeset'],[],this[_0x1e10c8(0x11b)]);}[_0x5ae4d2(0x2ce)](){return this;}[_0x5ae4d2(0x16a)](){const _0xec6c7a=_0x5ae4d2;this[_0xec6c7a(0x11b)][_0xec6c7a(0x36e)](this[_0xec6c7a(0x333)]);}[_0x5ae4d2(0x1c5)](_0x27e0e2){const _0x3c68fc=_0x5ae4d2;return this['_clearScheduledTask'](),this[_0x3c68fc(0x25e)][_0x3c68fc(0x161)](Y,this[_0x3c68fc(0x213)],this['type'],this[_0x3c68fc(0x333)],[],this[_0x3c68fc(0x11b)],_0x27e0e2);}[_0x5ae4d2(0x265)](_0x168085,_0x57c493){const _0x46caed=_0x5ae4d2;var _0x25f547;_0x168085===((_0x25f547=this[_0x46caed(0x333)])==null?void 0x0:_0x25f547[_0x46caed(0x22f)])&&(this[_0x46caed(0x16a)](),this['_resendTimeout']=_0x57c493===0x0?0x3e8:Math[_0x46caed(0x275)](_0x57c493*0x2,Jt),this[_0x46caed(0x1fe)]+=this[_0x46caed(0x117)]);}[_0x5ae4d2(0x14b)](){const _0x1c96ae=_0x5ae4d2;var _0x50fd3b;(_0x50fd3b=this[_0x1c96ae(0x324)])==null||_0x50fd3b[_0x1c96ae(0x318)](),this[_0x1c96ae(0x117)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};q=Gt=z([R(0x4,_0x4e3f0c(_0x1422f8)),R(0x5,_0x4e3f0c(_0x154a46)),R(0x6,_0x179ec4),R(0x7,_0x2dd0ba),R(0x8,_0x549fa2),R(0x9,_0x29640d),R(0xa,_0xd20bc(V))],q);let J=Kt=class extends W{constructor(_0x5c7f45,_0x14d6bd,_0x48fa37,_0x27757b,_0x39ff7e,_0x1b793e,_0x28bf68,_0x4d562e,_0x197d06,_0x34548a,_0x502076,_0x5e01ae,_0x3229c9){const _0x132b7d=_0x5ae4d2;super(_0x5c7f45,_0x14d6bd,_0x48fa37,_0x27757b,_0x39ff7e,_0x197d06,_0x5e01ae,_0x4d562e,_0x3229c9),this[_0x132b7d(0x25e)]=_0x28bf68,this[_0x132b7d(0x125)]=_0x34548a,this[_0x132b7d(0x2b0)]=_0x502076,this[_0x132b7d(0x19e)]=_0x3229c9,I(this,_0x132b7d(0x2ff),_0x132b7d(0x1eb)),I(this,_0x132b7d(0x117),0x0),I(this,_0x132b7d(0x1fe),0x0),I(this,'_resendTimer',void 0x0),I(this,_0x132b7d(0x324),void 0x0),_0x1b793e&&(this[_0x132b7d(0x1ca)]=_0x1b793e,this[_0x132b7d(0x324)]=this[_0x132b7d(0x1ca)][_0x132b7d(0x34c)](({reqId:_0x5efa75,timeout:_0x3aa4ed})=>{this['_resendWithTimeout'](_0x5efa75,_0x3aa4ed);}));}[_0x5ae4d2(0x205)](_0x29bdbd){const _0x385b2d=_0x5ae4d2;return this['_pendingMutations'][_0x385b2d(0x1c1)](_0x29bdbd),this;}['onRemoteChangeset'](_0x4babfd){const _0x584e39=_0x5ae4d2;if(this['_checkMissing'](_0x4babfd))return this[_0x584e39(0x14b)](),this[_0x584e39(0x25e)][_0x584e39(0x161)](Z,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x584e39(0x19c)],null,[_0x4babfd],this['_handler']);try{let _0x4cdc86=this['_transformService'][_0x584e39(0x353)]([_0x4babfd],[this[_0x584e39(0x333)]],!0x1);if(_0x1590e6(_0x4cdc86)){let {c1Prime:_0x23b918,c2Prime:_0x5030e0}=_0x4cdc86,_0x1c841f=this[_0x584e39(0x2b0)][_0x584e39(0x1f8)](_0x23b918[0x0],this[_0x584e39(0x19c)]);if(_0x5d08ab(_0x1c841f)){let {c1Prime:_0x242901,m2Prime:_0x444702}=_0x1c841f;return this[_0x584e39(0x306)](_0x242901),_0x5030e0[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x584e39(0x14b)](),this['_injector'][_0x584e39(0x161)](Kt,this['unitID'],this[_0x584e39(0x29d)],_0x5030e0[0x0],_0x444702,this[_0x584e39(0x11b)],void 0x0);}throw _0x1c841f[_0x584e39(0x1d9)];}throw _0x4cdc86[_0x584e39(0x1d9)];}catch(_0x5e17f8){return this['_logService'][_0x584e39(0x1d9)](_0x5e17f8),this['_onConflict'](!0x1);}}[_0x5ae4d2(0x31f)](_0x39119c){const _0x2a492b=_0x5ae4d2;this[_0x2a492b(0x14b)]();let _0x2e55c9=this[_0x2a492b(0x34e)]();if(_0x39119c['revision']<=_0x2e55c9)return this;if(this[_0x2a492b(0x30c)](_0x39119c))return this[_0x2a492b(0x25e)][_0x2a492b(0x161)](Z,this[_0x2a492b(0x213)],this[_0x2a492b(0x29d)],this[_0x2a492b(0x333)],this[_0x2a492b(0x19c)],_0x39119c[_0x2a492b(0x27a)],[],this['_handler']);this[_0x2a492b(0x25d)]();let _0x28577b=this[_0x2a492b(0x25e)]['createInstance'](K,this[_0x2a492b(0x213)],this['type'],this['_pendingMutations'],this[_0x2a492b(0x11b)]);return _0x28577b[_0x2a492b(0x37d)](),_0x28577b[_0x2a492b(0x179)](),_0x28577b;}[_0x5ae4d2(0x1a4)](_0x978e9a){const _0x5011f1=_0x5ae4d2;return this[_0x5011f1(0x1c5)](!!(_0x978e9a!=null&&_0x978e9a[_0x5011f1(0x28e)]));}[_0x5ae4d2(0x1d5)](_0xabcb24){const _0x332fc8=_0x5ae4d2;return this[_0x332fc8(0x1fe)]>Yt?this[_0x332fc8(0x17e)]():(this['_resendTimer']=Ut(this[_0x332fc8(0x117)],{'timeout':this[_0x332fc8(0x117)],'reqId':_0xabcb24[_0x332fc8(0x22f)]}),this[_0x332fc8(0x324)]=this[_0x332fc8(0x1ca)][_0x332fc8(0x34c)](({reqId:_0x1ebb6d,timeout:_0x46c2ce})=>{const _0x2c8103=_0x332fc8;this[_0x2c8103(0x265)](_0x1ebb6d,_0x46c2ce);}),this);}['toggleOffline'](){const _0x2954d3=_0x5ae4d2;return this[_0x2954d3(0x14b)](),this[_0x2954d3(0x25e)]['createInstance'](X,this[_0x2954d3(0x213)],this[_0x2954d3(0x29d)],this[_0x2954d3(0x333)],this[_0x2954d3(0x19c)],this[_0x2954d3(0x11b)]);}['toggleOnline'](){return this;}['resend'](){const _0x41df95=_0x5ae4d2;this[_0x41df95(0x11b)]['onSendChangeset'](this[_0x41df95(0x333)]);}[_0x5ae4d2(0x1c5)](_0x442762){const _0x4c879c=_0x5ae4d2;return this[_0x4c879c(0x14b)](),this['_injector'][_0x4c879c(0x161)](Y,this[_0x4c879c(0x213)],this['type'],null,this[_0x4c879c(0x19c)],this['_handler'],_0x442762);}[_0x5ae4d2(0x265)](_0x511c14,_0x57c133){const _0x2f9452=_0x5ae4d2;var _0x48e1ac;_0x511c14===((_0x48e1ac=this[_0x2f9452(0x333)])==null?void 0x0:_0x48e1ac[_0x2f9452(0x22f)])&&(this[_0x2f9452(0x16a)](),this['_resendTimeout']=_0x57c133===0x0?0x3e8:Math[_0x2f9452(0x275)](_0x57c133*0x2,Jt),this[_0x2f9452(0x1fe)]+=this['_resendTimeout']);}[_0x5ae4d2(0x14b)](){const _0x322491=_0x5ae4d2;var _0x4e956d;(_0x4e956d=this[_0x322491(0x324)])==null||_0x4e956d[_0x322491(0x318)](),this[_0x322491(0x117)]=0x0,this[_0x322491(0x1fe)]=0x0;}};J=Kt=z([R(0x6,_0x4e3f0c(_0x1422f8)),R(0x7,_0x4e3f0c(_0x154a46)),R(0x8,_0x179ec4),R(0x9,_0x2dd0ba),R(0xa,_0x549fa2),R(0xb,_0x29640d),R(0xc,_0xd20bc(V))],J);let Y=class extends W{constructor(_0x3dafcb,_0x258ddf,_0x13d7d1,_0xc8dd27,_0x55998e,_0x59fbcd=!0x1,_0x2a276a,_0x422929,_0x4656f1,_0x4ad772,_0x263113,_0x179c3e,_0x1616c1){const _0x56fa99=_0x5ae4d2;super(_0x3dafcb,_0x258ddf,_0x13d7d1,_0xc8dd27,_0x55998e,_0x422929,_0x4656f1,_0x4ad772,_0x1616c1),this[_0x56fa99(0x308)]=_0x59fbcd,this[_0x56fa99(0x260)]=_0x2a276a,this['_localeService']=_0x263113,this['_collaborationUIEventService']=_0x179c3e,this[_0x56fa99(0x19e)]=_0x1616c1,I(this,_0x56fa99(0x2ff),_0x56fa99(0x232)),this[_0x56fa99(0x17a)](),this['_clearLocalCache'](),this[_0x56fa99(0x224)]();}[_0x5ae4d2(0x205)](){return this;}['onRemoteChangeset'](){return this;}[_0x5ae4d2(0x31f)](){return this;}[_0x5ae4d2(0x1a4)](){return this;}['onRemoteRetry'](){return this;}[_0x5ae4d2(0x17e)](){return this;}[_0x5ae4d2(0x2ce)](){return this;}[_0x5ae4d2(0x16a)](){const _0x197184=_0x5ae4d2;throw Error(_0x197184(0x132));}[_0x5ae4d2(0x167)](){const _0x39fba7=_0x5ae4d2;var _0x5f5d64;(_0x5f5d64=this['_localCacheService'])==null||_0x5f5d64['updateOfflineData'](this['unitID'],this[_0x39fba7(0x29d)],null,[]);}['_showConflictNotification'](){const _0xbfd35=_0x5ae4d2;this[_0xbfd35(0x308)]?this[_0xbfd35(0x2ad)]['emitEvent']({'id':_0xbfd35(0x166)}):this[_0xbfd35(0x2ad)][_0xbfd35(0x175)]({'id':_0xbfd35(0x1f6)});}[_0x5ae4d2(0x224)](){const _0x1ac374=_0x5ae4d2;this['_permissionService'][_0x1ac374(0x334)](new _0x49870e(this[_0x1ac374(0x213)])['id'],!0x1);}};Y=z([R(0x6,_0x4e3f0c(_0x386a45)),R(0x7,_0x179ec4),R(0x8,_0x29640d),R(0x9,_0x4e3f0c(_0x154a46)),R(0xa,_0x4e3f0c(_0x30fb36)),R(0xb,_0x4e3f0c(L)),R(0xc,_0xd20bc(V))],Y);let X=class extends W{constructor(_0x16496e,_0x4e4a34,_0x286b17,_0x3214c6,_0x27a628,_0x4c69d2,_0x2fc85e,_0x42d6d6,_0x21bba1,_0x1a05e0){const _0xc07983=_0x5ae4d2;super(_0x16496e,_0x4e4a34,_0x286b17,_0x3214c6,_0x27a628,_0x42d6d6,_0x21bba1,_0x2fc85e,_0x1a05e0),this['_injector']=_0x4c69d2,I(this,_0xc07983(0x2ff),_0xc07983(0x162));}[_0x5ae4d2(0x205)](_0x5c1dee){const _0x3699ea=_0x5ae4d2;return this[_0x3699ea(0x19c)][_0x3699ea(0x1c1)](_0x5c1dee),this[_0x3699ea(0x179)](),this;}[_0x5ae4d2(0x32f)](_0x1637ba){const _0x120509=_0x5ae4d2;throw Error(_0x120509(0x1fa));}[_0x5ae4d2(0x31f)](){const _0x3bb2d2=_0x5ae4d2;throw Error(_0x3bb2d2(0x170));}[_0x5ae4d2(0x1a4)](){throw Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x5ae4d2(0x17e)](){return this;}[_0x5ae4d2(0x2ce)](){const _0x326bc4=_0x5ae4d2;let {_injector:_0x4ab4ba,_pendingMutations:_0x1adc85,_awaitingChangeset:_0x1c8873,unitID:_0x5c2c08,_handler:_0x23e355,type:_0x47b5d3}=this,_0x5d5826=Xt(_0x4ab4ba,_0x5c2c08,_0x47b5d3,_0x1c8873,_0x1adc85,_0x23e355);return _0x5d5826 instanceof K?_0x5d5826[_0x326bc4(0x37d)]():(_0x5d5826 instanceof J||_0x5d5826 instanceof q)&&_0x5d5826['resend'](),_0x5d5826;}[_0x5ae4d2(0x16a)](){const _0x2824d8=_0x5ae4d2;throw Error(_0x2824d8(0x29c));}};X=z([R(0x5,_0x4e3f0c(_0x1422f8)),R(0x6,_0x4e3f0c(_0x154a46)),R(0x7,_0x179ec4),R(0x8,_0x29640d),R(0x9,_0xd20bc(V))],X);let Z=class extends W{constructor(_0x1f99fb,_0x53a9d3,_0x541838,_0x511f96,_0x1a7a27,_0x37217f,_0x1737ab,_0x33303b,_0x2cc45e,_0x24ecb5,_0x47b5f0,_0x3b08ac,_0x301f84,_0xeee1d9){const _0x39c876=_0x5ae4d2;super(_0x1f99fb,_0x53a9d3,_0x541838,_0x511f96,_0x1737ab,_0x47b5f0,_0x3b08ac,_0x2cc45e,_0xeee1d9),this[_0x39c876(0x14f)]=_0x1a7a27,this[_0x39c876(0x203)]=_0x37217f,this[_0x39c876(0x25e)]=_0x33303b,this[_0x39c876(0x125)]=_0x24ecb5,this[_0x39c876(0x2b0)]=_0x301f84,this[_0x39c876(0x19e)]=_0xeee1d9,I(this,_0x39c876(0x2ff),_0x39c876(0x288));}[_0x5ae4d2(0x2a8)](_0x436603){const _0x2e3b05=_0x5ae4d2;try{if(this[_0x2e3b05(0x121)](_0x436603)['missingChangesets'])throw Error(_0x2e3b05(0x1da));if(this[_0x2e3b05(0x121)]([...this[_0x2e3b05(0x203)]][_0x2e3b05(0x1ae)]((_0x560d85,_0x51812e)=>_0x560d85['revision']-_0x51812e['revision']))[_0x2e3b05(0x191)])return this[_0x2e3b05(0x203)]=[],this['_updateLocalCache'](),this[_0x2e3b05(0x11b)][_0x2e3b05(0x2c3)]({'from':this[_0x2e3b05(0x34e)](),'to':0x0}),this;let _0x3f908b=this[_0x2e3b05(0x333)],_0x43a763=this[_0x2e3b05(0x19c)],_0x373aed;if(_0x3f908b&&_0x43a763[_0x2e3b05(0x1a1)]!==0x0)_0x373aed=this[_0x2e3b05(0x25e)]['createInstance'](J,this[_0x2e3b05(0x213)],this[_0x2e3b05(0x29d)],_0x3f908b,_0x43a763,this[_0x2e3b05(0x11b)],void 0x0);else{if(_0x3f908b&&_0x43a763[_0x2e3b05(0x1a1)]===0x0)_0x3f908b['baseRev']=this[_0x2e3b05(0x34e)](),_0x373aed=this[_0x2e3b05(0x25e)]['createInstance'](q,this['unitID'],this[_0x2e3b05(0x29d)],_0x3f908b,this[_0x2e3b05(0x11b)]);else{if(_0x43a763['length']!==0x0){let _0x193659=this[_0x2e3b05(0x25e)][_0x2e3b05(0x161)](K,this['unitID'],this['type'],_0x43a763,this[_0x2e3b05(0x11b)]);_0x193659[_0x2e3b05(0x37d)](),_0x373aed=_0x193659;}else _0x373aed=this['_injector'][_0x2e3b05(0x161)](G,this[_0x2e3b05(0x213)],this['type'],this['_handler']);}}return _0x373aed['_updateLocalCache'](),_0x373aed;}catch(_0x106d78){return this[_0x2e3b05(0x125)]['error']('[FetchMissState]',_0x2e3b05(0x34a),_0x106d78),this[_0x2e3b05(0x25e)][_0x2e3b05(0x161)](Y,this[_0x2e3b05(0x213)],this['type'],this['_awaitingChangeset'],this[_0x2e3b05(0x19c)],this[_0x2e3b05(0x11b)],!0x1);}}['_handleRemoteChangesets'](_0x52b826){const _0x10c9eb=_0x5ae4d2;this[_0x10c9eb(0x173)]();for(let _0x56df55=0x0;_0x56df55<_0x52b826['length'];_0x56df55++){let _0x151b9b=_0x52b826[_0x56df55],_0x41ca96=this[_0x10c9eb(0x34e)]();if(!(_0x151b9b[_0x10c9eb(0x27a)]<=_0x41ca96)){if(_0x151b9b[_0x10c9eb(0x27a)]>_0x41ca96+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x151b9b)){this[_0x10c9eb(0x2c4)]();continue;}this[_0x10c9eb(0x374)](_0x151b9b),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x5ae4d2(0x374)](_0x53cf9e){const _0x121049=_0x5ae4d2;let _0x3cbd3c=_0x53cf9e,_0x37bc57=this[_0x121049(0x333)];if(_0x37bc57){let _0x4271dc=this[_0x121049(0x2b0)][_0x121049(0x353)]([_0x53cf9e],[_0x37bc57],!0x1);if(!_0x1590e6(_0x4271dc))throw _0x4271dc['error'];_0x3cbd3c=_0x4271dc[_0x121049(0x1c3)][0x0],_0x37bc57=_0x4271dc[_0x121049(0x1c2)][0x0];}let _0x165622=this['_pendingMutations'];if(_0x165622[_0x121049(0x1a1)]){let _0x3c0552=this[_0x121049(0x2b0)][_0x121049(0x1f8)](_0x3cbd3c,_0x165622);if(!_0x5d08ab(_0x3c0552))throw _0x3c0552[_0x121049(0x1d9)];_0x3cbd3c=_0x3c0552[_0x121049(0x1c3)],_0x165622=_0x3c0552[_0x121049(0x2bc)];}this['_executeRemoteChangeset'](_0x3cbd3c),_0x37bc57&&(_0x37bc57[_0x121049(0x262)]=this[_0x121049(0x34e)]()),this[_0x121049(0x333)]=_0x37bc57,this[_0x121049(0x19c)]=_0x165622;}[_0x5ae4d2(0x173)](){const _0x2e3a07=_0x5ae4d2;if(!this['_awaitingChangeset']||this[_0x2e3a07(0x14f)]==null)return;let _0x115f46=this[_0x2e3a07(0x34e)]();if(this[_0x2e3a07(0x14f)]<=_0x115f46)throw Error(_0x2e3a07(0x2b1)+this[_0x2e3a07(0x14f)]+'.');this[_0x2e3a07(0x14f)]===_0x115f46+0x1&&this[_0x2e3a07(0x2c4)]();}[_0x5ae4d2(0x2c4)](){const _0x52d1d4=_0x5ae4d2;this[_0x52d1d4(0x25d)](),this[_0x52d1d4(0x333)]=null,this[_0x52d1d4(0x14f)]=null;}[_0x5ae4d2(0x202)](_0x3c6c2d){const _0xc563c6=_0x5ae4d2;let _0x1c8176=this[_0xc563c6(0x333)];return!_0x1c8176||!_0x1c8176['sid']||_0x1c8176[_0xc563c6(0x22f)]===null||_0x1c8176[_0xc563c6(0x22f)]===void 0x0?!0x1:_0x3c6c2d[_0xc563c6(0x213)]===_0x1c8176['unitID']&&_0x3c6c2d[_0xc563c6(0x199)]===_0x1c8176['sid']&&_0x3c6c2d[_0xc563c6(0x22f)]===_0x1c8176[_0xc563c6(0x22f)];}['resend'](){const _0x52fd61=_0x5ae4d2;throw Error(_0x52fd61(0x139));}[_0x5ae4d2(0x205)](_0x2e3996){const _0x53f54d=_0x5ae4d2;return this['_pendingMutations'][_0x53f54d(0x1c1)](_0x2e3996),this;}[_0x5ae4d2(0x32f)](_0x508172){const _0x1295cb=_0x5ae4d2;return this[_0x1295cb(0x203)]['push'](_0x508172),this;}['onRemoteAck'](_0x43a14a){const _0xeda085=_0x5ae4d2;if(this[_0xeda085(0x333)]){let _0x449d45=this[_0xeda085(0x34e)]();return _0x43a14a['revision']<=_0x449d45||(_0x449d45+0x1===_0x43a14a[_0xeda085(0x27a)]?(this[_0xeda085(0x25d)](),this[_0xeda085(0x333)]=null,this[_0xeda085(0x14f)]=null):this[_0xeda085(0x14f)]=_0x43a14a[_0xeda085(0x27a)]),this;}if(_0x43a14a[_0xeda085(0x27a)]<=this[_0xeda085(0x34e)]())return this;throw Error(_0xeda085(0x2a7));}[_0x5ae4d2(0x1a4)](_0x55759d){const _0x583e33=_0x5ae4d2;return this[_0x583e33(0x1c5)](!!(_0x55759d!=null&&_0x55759d[_0x583e33(0x28e)]));}[_0x5ae4d2(0x1d5)](){return this;}[_0x5ae4d2(0x17e)](){const _0x23af79=_0x5ae4d2;return this[_0x23af79(0x25e)][_0x23af79(0x161)](X,this[_0x23af79(0x213)],this[_0x23af79(0x29d)],this[_0x23af79(0x333)],this[_0x23af79(0x19c)],this[_0x23af79(0x11b)]);}[_0x5ae4d2(0x2ce)](){return this;}[_0x5ae4d2(0x1c5)](_0x409a97){const _0x287610=_0x5ae4d2;return this[_0x287610(0x25e)][_0x287610(0x161)](Y,this[_0x287610(0x213)],this[_0x287610(0x29d)],this['_awaitingChangeset'],this[_0x287610(0x19c)],this[_0x287610(0x11b)],_0x409a97);}};function _0x80d2(_0x42493f,_0x1ff8ad){_0x42493f=_0x42493f-0x10f;const _0xd90bbd=_0xd90b();let _0x80d278=_0xd90bbd[_0x42493f];return _0x80d278;}Z=z([R(0x7,_0x4e3f0c(_0x1422f8)),R(0x8,_0x4e3f0c(_0x154a46)),R(0x9,_0x2dd0ba),R(0xa,_0x179ec4),R(0xb,_0x29640d),R(0xc,_0x549fa2),R(0xd,_0xd20bc(V))],Z);function Xt(_0x384976,_0x1a73f1,_0x2a5c01,_0x71a7fd,_0x3192bc,_0x253c77){const _0x53a530=_0x5ae4d2;return _0x71a7fd&&_0x3192bc['length']?_0x384976[_0x53a530(0x161)](J,_0x1a73f1,_0x2a5c01,_0x71a7fd,_0x3192bc,_0x253c77,void 0x0):_0x71a7fd?_0x384976[_0x53a530(0x161)](q,_0x1a73f1,_0x2a5c01,_0x71a7fd,_0x253c77):_0x3192bc[_0x53a530(0x1a1)]?_0x384976[_0x53a530(0x161)](K,_0x1a73f1,_0x2a5c01,_0x3192bc,_0x253c77):_0x384976[_0x53a530(0x161)](G,_0x1a73f1,_0x2a5c01,_0x253c77);}let Zt=class extends _0x1e5f27{get[_0x5ae4d2(0x300)](){const _0x3c751d=_0x5ae4d2;return this[_0x3c751d(0x2cd)];}constructor(_0x499889,_0x2712d7,_0xc33d14,_0x2474ed,_0x135429,_0x33431a,_0x59825f,_0x3d6317,_0x2db70a,_0x47b671,_0x21b63a,_0x5c3eea,_0x241ad7,_0x42aae9){const _0x431aa3=_0x5ae4d2;super(),this[_0x431aa3(0x213)]=_0x499889,this['session']=_0x2712d7,this[_0x431aa3(0x135)]=_0xc33d14,this[_0x431aa3(0x25e)]=_0x2474ed,this[_0x431aa3(0x1e4)]=_0x135429,this[_0x431aa3(0x297)]=_0x33431a,this[_0x431aa3(0x2f6)]=_0x59825f,this[_0x431aa3(0x21d)]=_0x3d6317,this[_0x431aa3(0x113)]=_0x2db70a,this[_0x431aa3(0x125)]=_0x47b671,this[_0x431aa3(0x15d)]=_0x21b63a,this['_permissionService']=_0x5c3eea,this['_singleActiveUnitService']=_0x241ad7,this['_localCacheService']=_0x42aae9,I(this,_0x431aa3(0x2aa),new _0xddeafe(null)),I(this,'state$',this[_0x431aa3(0x2aa)][_0x431aa3(0x32b)]()),I(this,'_state',void 0x0),I(this,_0x431aa3(0x351),!0x1),I(this,_0x431aa3(0x384),''),I(this,_0x431aa3(0x1bd),0x0),I(this,_0x431aa3(0x30b),this['state$'][_0x431aa3(0x1ee)](_0x3534f7(_0x3da73a=>_0x3da73a?_0x3da73a[_0x431aa3(0x2ff)]:'offline'),_0x5db130({'bufferSize':0x1,'refCount':!0x0}))),I(this,_0x431aa3(0x34b),!0x1),I(this,_0x431aa3(0x2f3),[]);}async[_0x5ae4d2(0x27d)](){const _0x2ef077=_0x5ae4d2;if(this[_0x2ef077(0x300)])throw Error(_0x2ef077(0x21f));await this[_0x2ef077(0x301)]();}[_0x5ae4d2(0x1b9)](){const _0x1a44b4=_0x5ae4d2;return this[_0x1a44b4(0x351)]=!0x0,_0x5c0b7d(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x5ae4d2(0x2be)](_0x3621f7){const _0x2dd4a1=_0x5ae4d2;this[_0x2dd4a1(0x24c)](_0x3621f7);}[_0x5ae4d2(0x338)](_0x820776){const _0x1a2db0=_0x5ae4d2;this['_state']=_0x820776,this['_state$'][_0x1a2db0(0x382)](_0x820776);}async[_0x5ae4d2(0x301)](){const _0x4f3411=_0x5ae4d2;if(this[_0x4f3411(0x338)](await this[_0x4f3411(0x2f7)]()),this[_0x4f3411(0x1d7)]){var _0xf6e79d;(_0xf6e79d=this[_0x4f3411(0x1d7)])==null||_0xf6e79d[_0x4f3411(0x128)](this[_0x4f3411(0x213)]),this[_0x4f3411(0x130)](this[_0x4f3411(0x1d7)]['getUnitStatus$'](this[_0x4f3411(0x213)])['subscribe'](_0x488be1=>{const _0x2df5cf=_0x4f3411;this[_0x2df5cf(0x125)][_0x2df5cf(0x12c)]('[CollaborationEntity]',_0x2df5cf(0x2a9),_0x488be1),_0x488be1===0x1?(this[_0x2df5cf(0x21d)][_0x2df5cf(0x175)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x2df5cf(0x260)][_0x2df5cf(0x334)](new _0x49870e(this[_0x2df5cf(0x213)])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this[_0x2df5cf(0x260)][_0x2df5cf(0x334)](new _0x49870e(this[_0x2df5cf(0x213)])['id'],!0x0),this['_permissionService'][_0x2df5cf(0x225)](!0x0));}));}let _0x4a8dbc=!0x1;return this[_0x4f3411(0x130)](this[_0x4f3411(0x1fb)]['sessionStatus$'][_0x4f3411(0x34c)](_0x763976=>{_0x763976===0x3?this['_toggleOnline'](_0x4a8dbc):_0x763976===0x2&&(_0x4a8dbc=!0x0,this['_toggleOffline']());})),this[_0x4f3411(0x130)](this[_0x4f3411(0x1fb)][_0x4f3411(0x150)]['subscribe'](_0x3d1a4e=>{const _0x1d31b2=_0x4f3411;try{switch(_0x3d1a4e[_0x1d31b2(0x2d6)]){case _0x549cb3[_0x1d31b2(0x204)]:this[_0x1d31b2(0x164)](_0x245ffd(_0x3d1a4e['data']));break;case _0x549cb3[_0x1d31b2(0x371)]:this[_0x1d31b2(0x215)](_0x3d1a4e['data']);break;case _0x549cb3[_0x1d31b2(0x293)]:this[_0x1d31b2(0x328)]();break;case _0x549cb3[_0x1d31b2(0x345)]:this[_0x1d31b2(0x271)](_0x3d1a4e[_0x1d31b2(0x20d)]);break;case _0x549cb3[_0x1d31b2(0x2ea)]:this[_0x1d31b2(0x314)](_0x3d1a4e[_0x1d31b2(0x20d)][_0x1d31b2(0x1f3)]['map'](_0x376a8c=>_0x245ffd(_0x376a8c)));break;case _0x549cb3[_0x1d31b2(0x2e7)]:this[_0x1d31b2(0x328)]({'isPermissionRej':!0x0});break;case _0x549cb3[_0x1d31b2(0x230)]:break;}}catch(_0x13e34f){throw console[_0x1d31b2(0x1d9)]('Error\x20on\x20receiving\x20event',_0x13e34f),_0x13e34f;}})),this[_0x4f3411(0x2cd)];}[_0x5ae4d2(0x2d1)](){this['_transitionLocked']=!0x1;}[_0x5ae4d2(0x355)](){const _0x381dfd=_0x5ae4d2;if(this[_0x381dfd(0x34b)])throw Error(_0x381dfd(0x2db));this[_0x381dfd(0x34b)]=!0x0;}['_onLocalMutation'](_0x673484){const _0x543a93=_0x5ae4d2;this[_0x543a93(0x355)](),this[_0x543a93(0x338)](this['_state'][_0x543a93(0x205)](_0x673484)),this[_0x543a93(0x2d1)]();}[_0x5ae4d2(0x164)](_0x22fd95){const _0x263ea8=_0x5ae4d2;if(!(_0x22fd95[_0x263ea8(0x27a)]<=this[_0x263ea8(0x2f6)][_0x263ea8(0x26b)](this[_0x263ea8(0x213)]))){if(this['_collaborationPaused']){this[_0x263ea8(0x2f3)][_0x263ea8(0x1c1)](_0x22fd95);return;}this[_0x263ea8(0x21b)](_0x22fd95);}}[_0x5ae4d2(0x234)](){const _0x52a445=_0x5ae4d2;this['_remoteChangesetQueue'][_0x52a445(0x284)](_0xee5308=>this['_applyRemoteChangeset'](_0xee5308)),this[_0x52a445(0x2f3)]=[];}[_0x5ae4d2(0x21b)](_0x3e1713){const _0x6eeb4f=_0x5ae4d2;let _0x30ad6a=this[_0x6eeb4f(0x1e4)][_0x6eeb4f(0x30d)][_0x6eeb4f(0x385)](this[_0x6eeb4f(0x1e4)][_0x6eeb4f(0x30d)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x3e1713['mutations'],null)||_0x3e1713[_0x6eeb4f(0x36f)],_0x58fc2f={..._0x3e1713,'mutations':_0x30ad6a};this[_0x6eeb4f(0x355)](),this[_0x6eeb4f(0x338)](this[_0x6eeb4f(0x2cd)][_0x6eeb4f(0x32f)](_0x58fc2f)),this[_0x6eeb4f(0x2d1)]();}[_0x5ae4d2(0x215)](_0x32b807){const _0x23cfcb=_0x5ae4d2;this[_0x23cfcb(0x355)](),this[_0x23cfcb(0x338)](this[_0x23cfcb(0x2cd)][_0x23cfcb(0x31f)](_0x32b807)),this[_0x23cfcb(0x2d1)]();}[_0x5ae4d2(0x328)](_0x3dcb2f){const _0x19950e=_0x5ae4d2;this[_0x19950e(0x355)](),this[_0x19950e(0x338)](this[_0x19950e(0x2cd)][_0x19950e(0x1a4)](_0x3dcb2f)),this[_0x19950e(0x2d1)]();}[_0x5ae4d2(0x271)](_0x316daf){const _0x2f3ecd=_0x5ae4d2;this[_0x2f3ecd(0x355)](),this[_0x2f3ecd(0x338)](this[_0x2f3ecd(0x2cd)][_0x2f3ecd(0x1d5)](_0x316daf)),this[_0x2f3ecd(0x2d1)]();}[_0x5ae4d2(0x314)](_0x1d8801){const _0x478889=_0x5ae4d2;if(!(this[_0x478889(0x2cd)]instanceof Z))throw TypeError(_0x478889(0x32d));let _0x19d6dd=_0x1d8801['map'](_0x328134=>{const _0xfa3ff7=_0x478889;let _0x38c872=this[_0xfa3ff7(0x1e4)][_0xfa3ff7(0x30d)]['fetchThroughInterceptors'](this[_0xfa3ff7(0x1e4)][_0xfa3ff7(0x30d)]['getInterceptPoints']()[_0xfa3ff7(0x28c)])(_0x328134[_0xfa3ff7(0x36f)],null)||_0x328134['mutations'];return{..._0x328134,'mutations':_0x38c872};});this[_0x478889(0x355)](),this[_0x478889(0x338)](this['_state']['onMissedChangesetFetched'](_0x19d6dd)),this[_0x478889(0x2d1)]();}[_0x5ae4d2(0x177)](){const _0x3e4fc7=_0x5ae4d2;this[_0x3e4fc7(0x355)](),this[_0x3e4fc7(0x338)](this[_0x3e4fc7(0x2cd)][_0x3e4fc7(0x17e)]()),this[_0x3e4fc7(0x2d1)]();}[_0x5ae4d2(0x131)](_0x3d6975=!0x1){const _0x429372=_0x5ae4d2;this[_0x429372(0x355)](),this['_updateState'](this[_0x429372(0x2cd)][_0x429372(0x2ce)]()),this[_0x429372(0x2d1)]();let _0x164d4e=this['_state'];_0x3d6975&&_0x164d4e instanceof G&&(this[_0x429372(0x355)](),this[_0x429372(0x338)](_0x164d4e[_0x429372(0x347)]()),this[_0x429372(0x2d1)]());}async[_0x5ae4d2(0x2f7)](){return new Promise(_0x1c8925=>{const _0x39176e=_0x80d2;this[_0x39176e(0x1fb)][_0x39176e(0x157)][_0x39176e(0x1ee)](_0x158df5(0x1))[_0x39176e(0x34c)](async _0x1a5365=>{_0x1c8925(await this['_createInitialStateImpl'](_0x1a5365===0x3));});});}['_createHandler'](){const _0x544a1b=_0x5ae4d2;let _0x3cd09a=this[_0x544a1b(0x213)];return{'onStateChange':(_0x2caa68,_0x953e57)=>{const _0x486510=_0x544a1b;if(_0x2caa68!==this[_0x486510(0x2cd)])throw Error(_0x486510(0x13b)+_0x2caa68[_0x486510(0x2ff)]+_0x486510(0x2a5)+_0x953e57[_0x486510(0x2ff)]+_0x486510(0x2f1)+this[_0x486510(0x2cd)]['status']);this['_updateState'](_0x953e57);},'onSendChangeset':_0x31b0ea=>{const _0x4b393c=_0x544a1b;_0x31b0ea[_0x4b393c(0x199)]||(_0x31b0ea[_0x4b393c(0x199)]=this['_changesetSessionId'],_0x31b0ea[_0x4b393c(0x22f)]=++this[_0x4b393c(0x1bd)]);let _0x234e2d={'eventID':_0x549cb3[_0x4b393c(0x278)],'data':{'unitID':_0x31b0ea['unitID'],'unitType':this['_type'],'changeset':_0x31b0ea,'memberID':this[_0x4b393c(0x1fb)]['getMemberID']()}};this[_0x4b393c(0x1fb)][_0x4b393c(0x37e)](_0x234e2d,this[_0x4b393c(0x213)]);},'onMissingChangesets':({from:_0x39265d,to:_0x43eb76})=>{const _0x38080d=_0x544a1b;this[_0x38080d(0x125)][_0x38080d(0x12c)]('[CollaborationEntity]',_0x38080d(0x332)+_0x39265d+_0x38080d(0x18c)+_0x43eb76);let _0x4db800={'eventID':_0x549cb3['FETCH_MISSING'],'data':{'unitID':_0x3cd09a,'unitType':this[_0x38080d(0x135)],'from':_0x39265d,'to':_0x43eb76}};this[_0x38080d(0x1fb)][_0x38080d(0x37e)](_0x4db800,this[_0x38080d(0x213)]);}};}async['_createInitialStateImpl'](_0x288f87){const _0xaa8d9e=_0x5ae4d2;var _0x43a585,_0x1b8195,_0x8bc081;let _0x5dcd04=await((_0x43a585=this[_0xaa8d9e(0x337)])==null?void 0x0:_0x43a585[_0xaa8d9e(0x19f)](this[_0xaa8d9e(0x213)])),_0x14d5f1=(_0x1b8195=_0x5dcd04==null?void 0x0:_0x5dcd04[_0xaa8d9e(0x36f)])==null?[]:_0x1b8195,_0x5749d7=(_0x8bc081=_0x5dcd04==null?void 0x0:_0x5dcd04[_0xaa8d9e(0x2af)])==null?null:_0x8bc081,_0x1e4606=!!(_0x5749d7!=null&&_0x5749d7[_0xaa8d9e(0x199)])&&!!(_0x5749d7!=null&&_0x5749d7[_0xaa8d9e(0x22f)]);this['_changesetSessionId']=_0x1e4606?_0x5749d7['sid']:_0x2fe48b(),this['_changesetReqId']=_0x1e4606?_0x5749d7[_0xaa8d9e(0x22f)]:0x0;let _0x539575=this[_0xaa8d9e(0x213)];try{this[_0xaa8d9e(0x354)](_0x5749d7,_0x14d5f1);}catch(_0x5786f6){this[_0xaa8d9e(0x125)][_0xaa8d9e(0x1d9)](_0x5786f6);}let _0x198f60=this[_0xaa8d9e(0x1b7)]();if(_0x288f87){let _0x2b0394=Xt(this[_0xaa8d9e(0x25e)],_0x539575,this[_0xaa8d9e(0x135)],_0x5749d7,_0x14d5f1,_0x198f60);return _0x2b0394 instanceof K?_0x2b0394[_0xaa8d9e(0x37d)]():(_0x2b0394 instanceof J||_0x2b0394 instanceof q)&&_0x2b0394[_0xaa8d9e(0x16a)](),_0x2b0394;}return this[_0xaa8d9e(0x25e)][_0xaa8d9e(0x161)](X,_0x539575,this[_0xaa8d9e(0x135)],_0x5749d7,_0x14d5f1,_0x198f60);}['_replayCachedMutations'](_0x386090,_0xaf34da){const _0x295b13=_0x5ae4d2;var _0x205928,_0x15bb8f;let _0x4df29f=this[_0x295b13(0x1e4)][_0x295b13(0x30d)]['fetchThroughInterceptors'](this[_0x295b13(0x1e4)][_0x295b13(0x30d)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x205928=_0x4df29f((_0x386090==null?void 0x0:_0x386090[_0x295b13(0x36f)])||[],null))==null||_0x205928[_0x295b13(0x284)](_0x538406=>this[_0x295b13(0x15d)][_0x295b13(0x1d3)](_0x538406['id'],_0x538406['params'])),(_0x15bb8f=_0x4df29f(_0xaf34da||[],null))==null||_0x15bb8f[_0x295b13(0x284)](_0x4e6a0e=>this[_0x295b13(0x15d)]['executeCommand'](_0x4e6a0e['id'],_0x4e6a0e['params']));}};Zt=z([R(0x3,_0x4e3f0c(_0x1422f8)),R(0x4,_0x4e3f0c(_0x1dc4ab)),R(0x5,_0x4e3f0c(_0x30fb36)),R(0x6,_0x4e3f0c(_0x154a46)),R(0x7,_0x4e3f0c(L)),R(0x8,_0x2f9fc),R(0x9,_0x2dd0ba),R(0xa,_0x179ec4),R(0xb,_0x386a45),R(0xc,_0xd20bc(jt)),R(0xd,_0xd20bc(V))],Zt);let Qt=class extends Zt{constructor(_0x4e3459,_0x1a7408,_0x2c09c8,_0xcd3451,_0x13b11a,_0xa8e688,_0x1c1d0b,_0x29df9f,_0x5f5651,_0x4767b9,_0x287f3c,_0x28b4ff,_0x26a080,_0x3f581c){const _0x56768d=_0x5ae4d2;super(_0x4e3459,_0x2c09c8,_0x1a7408,_0xcd3451,_0x13b11a,_0xa8e688,_0x1c1d0b,_0x29df9f,_0x5f5651,_0x4767b9,_0x287f3c,_0x28b4ff,_0x26a080,_0x3f581c),this[_0x56768d(0x213)]=_0x4e3459,this[_0x56768d(0x29d)]=_0x1a7408,I(this,_0x56768d(0x350),null);}[_0x5ae4d2(0x22a)](_0x3c79d3){const _0x32a64e=_0x5ae4d2;this[_0x32a64e(0x350)]=_0x3c79d3;}[_0x5ae4d2(0x2e1)](){const _0x125af3=_0x5ae4d2;this[_0x125af3(0x350)]=null,super['dispose']();}[_0x5ae4d2(0x1b7)](){const _0x1f5d01=_0x5ae4d2;let _0x9f0810=super[_0x1f5d01(0x1b7)]();return _0x9f0810[_0x1f5d01(0x1bf)]=_0x5c938e=>{const _0x19c71b=_0x1f5d01;var _0x460d59,_0x3ae5d6;return(_0x460d59=this[_0x19c71b(0x350)])==null||(_0x3ae5d6=_0x460d59[_0x19c71b(0x1bf)])==null?void 0x0:_0x3ae5d6['call'](_0x460d59,_0x5c938e);},_0x9f0810[_0x1f5d01(0x359)]=_0x70ca2d=>{const _0x2992a3=_0x1f5d01;var _0xab4a44,_0x37b088;return(_0xab4a44=this[_0x2992a3(0x350)])==null||(_0x37b088=_0xab4a44['onTransformState'])==null?void 0x0:_0x37b088[_0x2992a3(0x1a7)](_0xab4a44,_0x70ca2d);},_0x9f0810[_0x1f5d01(0x169)]=_0x1682a4=>{const _0x278d5d=_0x1f5d01;var _0x2f2303,_0x1429ad;return(_0x2f2303=this[_0x278d5d(0x350)])==null||(_0x1429ad=_0x2f2303[_0x278d5d(0x169)])==null?void 0x0:_0x1429ad[_0x278d5d(0x1a7)](_0x2f2303,_0x1682a4);},_0x9f0810['onSyncEditingCollabCursor']=_0xc2cf74=>{const _0x197d92=_0x1f5d01;var _0x40c478,_0xbd117c;return(_0x40c478=this['_handlerCallback'])==null||(_0xbd117c=_0x40c478[_0x197d92(0x15f)])==null?void 0x0:_0xbd117c[_0x197d92(0x1a7)](_0x40c478,_0xc2cf74);},_0x9f0810[_0x1f5d01(0x35e)]=_0x2e8592=>{const _0xb94718=_0x1f5d01;var _0x410714,_0x5e3ccf,_0x2059df;if(!((_0x410714=this[_0xb94718(0x350)])!=null&&_0x410714[_0xb94718(0x35e)]))throw Error(_0xb94718(0x340));return(_0x5e3ccf=this[_0xb94718(0x350)])==null||(_0x2059df=_0x5e3ccf['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2059df['call'](_0x5e3ccf,_0x2e8592);},_0x9f0810['onTransformRemoteChangesetByStateCache']=_0x2c0dc5=>{const _0x19796d=_0x1f5d01;var _0x5e219b,_0x1671ac,_0x3383da;if(!((_0x5e219b=this['_handlerCallback'])!=null&&_0x5e219b[_0x19796d(0x2e3)]))throw Error(_0x19796d(0x2c8));return(_0x1671ac=this[_0x19796d(0x350)])==null||(_0x3383da=_0x1671ac[_0x19796d(0x2e3)])==null?void 0x0:_0x3383da[_0x19796d(0x1a7)](_0x1671ac,_0x2c0dc5);},_0x9f0810;}async[_0x5ae4d2(0x301)](){const _0x107595=_0x5ae4d2;let _0x1c41b3=await super[_0x107595(0x301)]();return this['disposeWithMe'](this['_commandService'][_0x107595(0x211)]((_0x248b17,_0x59d400)=>{const _0xd5ab55=_0x107595;if(_0x248b17['type']!==_0x3f1eb1[_0xd5ab55(0x251)]||_0x59d400!=null&&_0x59d400[_0xd5ab55(0x16f)]||_0x59d400!=null&&_0x59d400[_0xd5ab55(0x2d9)]||_0x248b17['id']===_0x160958['id'])return;let _0x196dab=_0x248b17[_0xd5ab55(0x23f)];if((_0x196dab==null?void 0x0:_0x196dab[_0xd5ab55(0x295)])!==this[_0xd5ab55(0x213)])return;let _0x18684f=_0x248b17,_0x597cd4=this[_0xd5ab55(0x1e4)]['interceptor']['fetchThroughInterceptors'](this[_0xd5ab55(0x1e4)][_0xd5ab55(0x30d)][_0xd5ab55(0x1fd)]()[_0xd5ab55(0x163)])([_0x18684f],this[_0xd5ab55(0x113)])||[_0x18684f];this[_0xd5ab55(0x24c)](_0x597cd4[0x0]);})),_0x1c41b3;}};Qt=z([R(0x3,_0x4e3f0c(_0x1422f8)),R(0x4,_0x4e3f0c(_0x1dc4ab)),R(0x5,_0x4e3f0c(_0x30fb36)),R(0x6,_0x4e3f0c(_0x154a46)),R(0x7,_0x4e3f0c(L)),R(0x8,_0x2f9fc),R(0x9,_0x2dd0ba),R(0xa,_0x179ec4),R(0xb,_0x386a45),R(0xc,_0xd20bc(jt)),R(0xd,_0xd20bc(V))],Qt);let $t=class extends Zt{constructor(_0x439efb,_0x177c90,_0x496d91,_0x234db5,_0x164b2b,_0x39030d,_0x25edcb,_0x3c6cd9,_0x52794f,_0x3e7d73,_0x2738e6,_0xa67dc8,_0x41b8ad,_0x3835f4,_0xef9772){const _0x160d1b=_0x5ae4d2;super(_0x439efb,_0x496d91,_0x177c90,_0x234db5,_0x164b2b,_0x39030d,_0x25edcb,_0x52794f,_0x3e7d73,_0x2738e6,_0xa67dc8,_0x41b8ad,_0x3835f4,_0xef9772),this[_0x160d1b(0x213)]=_0x439efb,this[_0x160d1b(0x29d)]=_0x177c90,this[_0x160d1b(0x331)]=_0x3c6cd9;}[_0x5ae4d2(0x1b7)](){const _0xe1e3a6=_0x5ae4d2;let _0x6ca106=super[_0xe1e3a6(0x1b7)]();return _0x6ca106['onTransformSelections']=_0x5b4538=>this[_0xe1e3a6(0x331)]['transformSelections'](_0x5b4538),_0x6ca106;}async[_0x5ae4d2(0x301)](){const _0x201109=_0x5ae4d2;let _0x4bb00c=await super[_0x201109(0x301)]();return this[_0x201109(0x130)](this[_0x201109(0x15d)][_0x201109(0x211)]((_0x598683,_0x5e5d64)=>{const _0x2a445e=_0x201109;if(_0x598683[_0x2a445e(0x29d)]!==_0x3f1eb1['MUTATION']||_0x5e5d64!=null&&_0x5e5d64[_0x2a445e(0x16f)]||_0x5e5d64!=null&&_0x5e5d64['onlyLocal'])return;let _0x39b1c6=_0x598683['params'];if((_0x39b1c6==null?void 0x0:_0x39b1c6[_0x2a445e(0x295)])!==this[_0x2a445e(0x213)])return;let _0x295dd9=_0x598683,_0x129556=this[_0x2a445e(0x1e4)][_0x2a445e(0x30d)][_0x2a445e(0x385)](this[_0x2a445e(0x1e4)]['interceptor'][_0x2a445e(0x1fd)]()[_0x2a445e(0x163)])([_0x295dd9],this[_0x2a445e(0x113)])||[_0x295dd9];this['_onLocalMutation'](_0x129556[0x0]);})),_0x4bb00c;}};$t=z([R(0x3,_0x4e3f0c(_0x1422f8)),R(0x4,_0x4e3f0c(_0x1dc4ab)),R(0x5,_0x4e3f0c(_0x30fb36)),R(0x6,_0x4e3f0c(_0x154a46)),R(0x7,_0x4e3f0c(H)),R(0x8,_0x4e3f0c(L)),R(0x9,_0x2f9fc),R(0xa,_0x2dd0ba),R(0xb,_0x179ec4),R(0xc,_0x386a45),R(0xd,_0xd20bc(jt)),R(0xe,_0xd20bc(V))],$t);const en=_0x198360(_0x5ae4d2(0x133));function tn(_0x5958f2){const _0x4ec5d8=_0x5ae4d2;let _0x5ee483=_0x5958f2[_0x4ec5d8(0x20d)],_0x386bc=JSON[_0x4ec5d8(0x26a)](_0x5ee483);switch(_0x386bc[_0x4ec5d8(0x27c)]){case _0x454ca3[_0x4ec5d8(0x31b)]:case _0x454ca3[_0x4ec5d8(0x29b)]:{let _0x4ed42b=_0x386bc['infoRsp'];return{..._0x386bc,'data':_0x4ed42b,'cmd':_0x386bc[_0x4ec5d8(0x27c)]};}case _0x454ca3[_0x4ec5d8(0x327)]:{let _0x497e7c=_0x386bc['joinRsp'];return{..._0x386bc,'data':_0x497e7c,'cmd':_0x386bc[_0x4ec5d8(0x27c)]};}case _0x454ca3[_0x4ec5d8(0x1de)]:{let _0x6a178f=_0x386bc[_0x4ec5d8(0x114)];switch(_0x6a178f['eventID']){case _0x549cb3[_0x4ec5d8(0x2e7)]:var _0x343184;return{..._0x386bc,'data':{..._0x6a178f,'data':(_0x343184=_0x6a178f['permissionRejEvent'])==null?void 0x0:_0x343184['cs']},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3['CHANGESET_ACK']:var _0x192a94;return{..._0x386bc,'data':{..._0x6a178f,'data':(_0x192a94=_0x6a178f[_0x4ec5d8(0x201)])==null?void 0x0:_0x192a94['cs']},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3[_0x4ec5d8(0x204)]:var _0x304ac9;return{..._0x386bc,'data':{..._0x6a178f,'data':(_0x304ac9=_0x6a178f['newCsEvent'])==null?void 0x0:_0x304ac9['cs']},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3[_0x4ec5d8(0x293)]:var _0x224765;return{..._0x386bc,'data':{..._0x6a178f,'data':(_0x224765=_0x6a178f['csRejEvent'])==null?void 0x0:_0x224765['cs']},'cmd':_0x386bc['cmd']};case _0x549cb3['CHANGESET_SHOULD_RETRY']:var _0x37ac7b;return{..._0x386bc,'data':{..._0x6a178f,'data':(_0x37ac7b=_0x6a178f[_0x4ec5d8(0x28a)])==null?void 0x0:_0x37ac7b['cs']},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3[_0x4ec5d8(0x1df)]:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f[_0x4ec5d8(0x361)]},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3['USERS_ENTER']:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f['joinEvent']},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3['USERS_LEAVE']:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f[_0x4ec5d8(0x250)]},'cmd':_0x386bc['cmd']};case _0x549cb3[_0x4ec5d8(0x1c7)]:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f['liveShareNewHost']},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3['LIVESHARE_FETCH_OPERATIONS']:case _0x549cb3[_0x4ec5d8(0x12e)]:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f[_0x4ec5d8(0x348)]},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3[_0x4ec5d8(0x366)]:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f[_0x4ec5d8(0x1f9)]},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3['MSG_FOR_ERROR']:return{..._0x386bc,'data':_0x6a178f,'cmd':_0x386bc['cmd']};case _0x549cb3['COMMENT_UPDATE']:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f['commentUpdateEvent']},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3['UPDATE_PERMISSION_OBJ']:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f['updatePermissionObjEvent']},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3[_0x4ec5d8(0x25a)]:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f[_0x4ec5d8(0x2cc)]},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};case _0x549cb3[_0x4ec5d8(0x230)]:return{..._0x386bc,'data':{..._0x6a178f,'data':_0x6a178f['uniscriptRunEvent']},'cmd':_0x386bc[_0x4ec5d8(0x27c)]};default:return _0x386bc;}}default:return _0x386bc;}}function nn(_0x2926a0){const _0x504c64=_0x5ae4d2;switch(_0x2926a0[_0x504c64(0x27c)]){case _0x454ca3['HEARTBEAT']:case _0x454ca3['HELLO']:return JSON['stringify']({'cmd':_0x2926a0[_0x504c64(0x27c)],'routeKey':_0x2926a0[_0x504c64(0x349)]});case _0x454ca3[_0x504c64(0x377)]:{let _0x323a8a;switch(_0x2926a0['data'][_0x504c64(0x2d6)]){case _0x549cb3[_0x504c64(0x1df)]:_0x323a8a={'eventID':_0x549cb3[_0x504c64(0x1df)],'updateCursorEvent':_0x2926a0[_0x504c64(0x20d)]['data']};break;case _0x549cb3[_0x504c64(0x123)]:_0x323a8a={'eventID':_0x549cb3[_0x504c64(0x123)],'leaveEvent':_0x2926a0[_0x504c64(0x20d)][_0x504c64(0x20d)]};break;case _0x549cb3[_0x504c64(0x219)]:_0x323a8a={'eventID':_0x549cb3[_0x504c64(0x219)],'joinEvent':_0x2926a0[_0x504c64(0x20d)][_0x504c64(0x20d)]};break;case _0x549cb3[_0x504c64(0x1c7)]:_0x323a8a={'eventID':_0x549cb3[_0x504c64(0x1c7)],'liveShareNewHost':_0x2926a0[_0x504c64(0x20d)][_0x504c64(0x20d)]};break;case _0x549cb3[_0x504c64(0x12e)]:_0x323a8a={'eventID':_0x549cb3['LIVESHARE_OPERATION'],'liveShareOperation':_0x2926a0['data'][_0x504c64(0x20d)]};break;case _0x549cb3[_0x504c64(0x366)]:_0x323a8a={'eventID':_0x549cb3['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x2926a0[_0x504c64(0x20d)][_0x504c64(0x20d)]};break;case _0x549cb3[_0x504c64(0x267)]:_0x323a8a={'eventID':_0x549cb3['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x2926a0[_0x504c64(0x20d)][_0x504c64(0x20d)]};break;case _0x549cb3['LIVESHARE_FETCH_OPERATIONS']:_0x323a8a={'eventID':_0x549cb3[_0x504c64(0x136)]};break;default:_0x323a8a={'eventID':_0x2926a0['data'][_0x504c64(0x2d6)]};}return JSON[_0x504c64(0x261)]({'cmd':_0x2926a0[_0x504c64(0x27c)],'routeKey':_0x2926a0[_0x504c64(0x349)],'collaMsg':_0x323a8a});}case _0x454ca3[_0x504c64(0x327)]:return JSON[_0x504c64(0x261)]({'cmd':_0x2926a0[_0x504c64(0x27c)],'routeKey':_0x2926a0[_0x504c64(0x349)],'joinReq':_0x2926a0[_0x504c64(0x20d)]});case _0x454ca3[_0x504c64(0x27e)]:return JSON[_0x504c64(0x261)]({'cmd':_0x2926a0[_0x504c64(0x27c)],'routeKey':_0x2926a0['routeKey'],'leaveReq':_0x2926a0['data']});default:throw Error(_0x504c64(0x2e4));}}const rn=_0x198360(_0x5ae4d2(0x276));function an(_0xd208db,_0x5be629,_0x1f130f){const _0x35a954=_0x5ae4d2;return _0xd208db+'/'+_0x5be629+_0x35a954(0x330)+_0x1f130f+_0x35a954(0x23a);}let on=class extends _0x4c3df1{constructor(_0x46a483,_0x970314,_0x1f7488,_0x5da12c,_0x300520){const _0x22baa7=_0x5ae4d2;super(),this[_0x22baa7(0x25e)]=_0x46a483,this[_0x22baa7(0x311)]=_0x970314,this[_0x22baa7(0x14a)]=_0x1f7488,this[_0x22baa7(0x125)]=_0x5da12c,this[_0x22baa7(0x315)]=_0x300520;}[_0x5ae4d2(0x2df)](_0x2db2a7){const _0xc451f2=_0x5ae4d2;let _0x406947=this[_0xc451f2(0x25e)][_0xc451f2(0x2b2)](_0x510288);if(!_0x406947)throw Error(_0xc451f2(0x381));let _0x38c7a4=_0x406947['createSocket'](_0x2db2a7);if(!_0x38c7a4)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x34f492=new _0x8e9fdb(),_0xa9c166=new _0x43ff4();_0x34f492['add'](_0x38c7a4[_0xc451f2(0x280)][_0xc451f2(0x34c)](_0x2f6f90=>_0xa9c166['next'](_0x2f6f90))),_0x34f492['add'](_0x5c0b7d(()=>_0xa9c166['complete']()));let _0x5d77e3=new _0x43ff4();_0x34f492['add'](_0x38c7a4[_0xc451f2(0x2da)][_0xc451f2(0x34c)](_0x3399be=>_0x5d77e3[_0xc451f2(0x382)](_0x3399be))),_0x34f492['add'](_0x5c0b7d(()=>_0x5d77e3['complete']()));let _0x3202f=new _0x43ff4();_0x34f492[_0xc451f2(0x2eb)](_0x38c7a4[_0xc451f2(0x184)][_0xc451f2(0x34c)](_0x167db7=>{let _0x3a3e27=tn(_0x167db7);_0x3202f['next'](_0x3a3e27);})),_0x34f492[_0xc451f2(0x2eb)](_0x5c0b7d(()=>_0x3202f[_0xc451f2(0x208)]()));let _0x2a772c,_0x226b28=()=>{const _0x16fde6=_0xc451f2;_0x5d77e3[_0x16fde6(0x382)](new Event(_0x16fde6(0x1a8))),_0xa9c166[_0x16fde6(0x382)](new Event(_0x16fde6(0x1a8))),_0x2a772c['close']();};return _0x2a772c={'memberID':'','close$':_0xa9c166['asObservable'](),'error$':_0x5d77e3['asObservable'](),'open$':_0x38c7a4[_0xc451f2(0x27f)],'message$':_0x3202f[_0xc451f2(0x32b)](),'send':_0x5d95b3=>{const _0x215700=_0xc451f2;if(_0x5d95b3['cmd']===_0x454ca3[_0x215700(0x377)]){if(_0x5d95b3[_0x215700(0x20d)][_0x215700(0x2d6)]===_0x549cb3[_0x215700(0x278)]){this['_submitChangeset'](_0x2a772c,_0x5d95b3[_0x215700(0x20d)])[_0x215700(0x317)](_0x34a737=>{this['_logService']['error'](_0x34a737),_0x226b28();});return;}if(_0x5d95b3[_0x215700(0x20d)][_0x215700(0x2d6)]===_0x549cb3[_0x215700(0x171)]){let _0xab78ff=_0x5d95b3['data'];this[_0x215700(0x149)](_0xab78ff)[_0x215700(0x160)](_0x161a96=>{const _0x5d2660=_0x215700;_0x3202f['next']({'cmd':_0x454ca3[_0x5d2660(0x1de)],'code':_0xfea562['OK'],'routeKey':_0xab78ff['data'][_0x5d2660(0x213)],'routeType':'','data':{'eventID':_0x549cb3[_0x5d2660(0x2ea)],'data':{'changesets':_0x161a96}}});})[_0x215700(0x317)](_0x1bf63c=>{const _0x2c9001=_0x215700;this['_logService'][_0x2c9001(0x1d9)](_0x1bf63c),_0x226b28();});return;}}_0x38c7a4[_0x215700(0x37e)](nn(_0x5d95b3));},'close':()=>{const _0x5a8373=_0xc451f2;_0x38c7a4[_0x5a8373(0x298)](),_0x34f492[_0x5a8373(0x2e1)]();}},_0x2a772c;}async['_submitChangeset'](_0x2a6157,_0x2c78eb){const _0x714ce3=_0x5ae4d2;var _0x422606;let {unitType:_0x3eb12b,unitID:_0x333ed1,changeset:_0x43358a}=_0x2c78eb[_0x714ce3(0x20d)],_0x2ed7ae={'unitID':_0x333ed1,'memberID':_0x2a6157[_0x714ce3(0x270)],'type':_0x3eb12b,'changeset':_0x4ca329(_0x43358a)},_0x3c69ef=this[_0x714ce3(0x14a)][_0x714ce3(0x2c6)](U),_0x804edc=an((_0x422606=_0x3c69ef==null?void 0x0:_0x3c69ef[_0x714ce3(0x2e0)])==null?'/universer-api/comb':_0x422606,_0x3eb12b,_0x333ed1);try{await this[_0x714ce3(0x311)][_0x714ce3(0x2fd)](_0x804edc,{'body':_0x2ed7ae});}catch(_0x4d7d52){throw this[_0x714ce3(0x125)]['error'](_0x714ce3(0x1d6),_0x714ce3(0x2f9)),_0x4d7d52;}}async[_0x5ae4d2(0x149)](_0x2f842){const _0x1fdcf5=_0x5ae4d2;let {unitID:_0xad2883,from:_0x27da82,to:_0x2a03d0,unitType:_0x5ac663}=_0x2f842[_0x1fdcf5(0x20d)];return(await this['_snapshotServerService'][_0x1fdcf5(0x1ec)]({'metadata':void 0x0},{'unitID':_0xad2883,'type':_0x5ac663,'from':_0x27da82,'to':_0x2a03d0}))[_0x1fdcf5(0x1f3)]['map'](_0x840df5=>((_0x840df5[_0x1fdcf5(0x36f)]===null||_0x840df5[_0x1fdcf5(0x36f)]===void 0x0)&&(_0x840df5['mutations']=[]),_0x840df5));}};on=z([R(0x0,_0x4e3f0c(_0x1422f8)),R(0x1,_0x4e3f0c(_0x50b313)),R(0x2,_0x2a37e1),R(0x3,_0x2dd0ba),R(0x4,_0x1706a3)],on);let Q=class extends _0x4c3df1{get['_socket'](){const _0x598166=_0x5ae4d2;return this[_0x598166(0x116)]['getValue']();}constructor(_0x146954,_0x4981c9,_0x1c64e4,_0x4e33f3,_0x2441b5,_0x4c7a6d){const _0x21ede5=_0x5ae4d2;super(),this[_0x21ede5(0x25e)]=_0x146954,this['_logService']=_0x4981c9,this[_0x21ede5(0x14a)]=_0x1c64e4,this['_socketService']=_0x4e33f3,this['_collaborationUIEventService']=_0x2441b5,this['_networkConditionService']=_0x4c7a6d,I(this,_0x21ede5(0x116),new _0xddeafe(void 0x0)),I(this,_0x21ede5(0x124),this[_0x21ede5(0x116)]['asObservable']()),I(this,'_candidateSocket',null),I(this,_0x21ede5(0x2ae),new Map()),I(this,_0x21ede5(0x2fc),new _0xddeafe(0x0)),I(this,_0x21ede5(0x30b),this[_0x21ede5(0x2fc)]['asObservable']()),I(this,'_socketReady',!0x1),I(this,'_retryConnectingTimer',void 0x0),I(this,_0x21ede5(0x112),0x0),I(this,_0x21ede5(0x196),null),I(this,_0x21ede5(0x1cb),void 0x0),I(this,'_timeoutTimer',void 0x0),this[_0x21ede5(0x2a6)]();}['_listenToNetworkCondition'](){const _0x3bb876=_0x5ae4d2;this[_0x3bb876(0x1cd)]&&this[_0x3bb876(0x130)](this[_0x3bb876(0x1cd)][_0x3bb876(0x1cf)][_0x3bb876(0x34c)](_0x2054e6=>{const _0x388626=_0x3bb876;_0x2054e6&&!this['_socket']&&this[_0x388626(0x29f)](),_0x2054e6||this[_0x388626(0x302)]();}));}[_0x5ae4d2(0x2e1)](){const _0x3198b3=_0x5ae4d2;var _0x2f8ce3;super[_0x3198b3(0x2e1)](),(_0x2f8ce3=this['_socketMessageSubscription'])==null||_0x2f8ce3[_0x3198b3(0x318)](),this[_0x3198b3(0x196)]=null,this[_0x3198b3(0x1f1)](),this[_0x3198b3(0x134)](),this[_0x3198b3(0x31e)](),this[_0x3198b3(0x2ae)][_0x3198b3(0x284)](_0xd2b9bf=>_0xd2b9bf[_0x3198b3(0x2e1)]()),this[_0x3198b3(0x2ae)][_0x3198b3(0x1ba)](),this['_status$']['complete']();}async['requireSession'](_0x2a1a99){const _0x17d071=_0x5ae4d2;if(this['_sessions'][_0x17d071(0x120)](_0x2a1a99))return this['_sessions'][_0x17d071(0x2b2)](_0x2a1a99);this['_tryEnsureSocket']();let _0x1d0635=this[_0x17d071(0x25e)][_0x17d071(0x161)](Ot,_0x2a1a99,this[_0x17d071(0x116)]['asObservable']());return this[_0x17d071(0x2ae)][_0x17d071(0x245)](_0x2a1a99,_0x1d0635),_0x1d0635;}[_0x5ae4d2(0x115)](_0x5a4d30){const _0x174c06=_0x5ae4d2;let _0x1b032f=this[_0x174c06(0x2ae)][_0x174c06(0x2b2)](_0x5a4d30);if(_0x1b032f&&(this['_sessions'][_0x174c06(0x379)](_0x5a4d30),_0x1b032f[_0x174c06(0x298)]()),!this[_0x174c06(0x2ae)][_0x174c06(0x1b8)]){var _0x437f8d;(_0x437f8d=this['_socket'])==null||_0x437f8d['close']();}}[_0x5ae4d2(0x29f)](){const _0xeec0a6=_0x5ae4d2;this[_0xeec0a6(0x112)]=0x0,this[_0xeec0a6(0x1f1)](),this[_0xeec0a6(0x269)]();}['_clearRetryConnectingTimer'](){this['_retryConnectingTimer']!=null&&(clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null);}async[_0x5ae4d2(0x21e)](){const _0x5a7a5b=_0x5ae4d2;var _0x393cad;let _0x79da1e=this['_configService'][_0x5a7a5b(0x2c6)](U),_0x5854fe=(_0x393cad=_0x79da1e==null?void 0x0:_0x79da1e[_0x5a7a5b(0x1c9)])==null?ut:_0x393cad,_0x318e73=await this[_0x5a7a5b(0x226)]['createSocket'](_0x5854fe);return this[_0x5a7a5b(0x13a)]=_0x318e73,_0x318e73;}async['_tryEnsureSocket'](){const _0x4cab5f=_0x5ae4d2;try{var _0x471ce,_0xf0284;let _0xb79240=(_0x471ce=(_0xf0284=this[_0x4cab5f(0x1bb)])==null?this[_0x4cab5f(0x13a)]:_0xf0284)==null?await this[_0x4cab5f(0x21e)]():_0x471ce;if(_0xb79240){var _0x3019d2;let _0x36d0d1=_0xb79240['send'];_0xb79240['send']=_0x53a63a=>(_0x53a63a[_0x4cab5f(0x27c)]!==_0x454ca3[_0x4cab5f(0x27e)]&&this[_0x4cab5f(0x1c4)](),_0x36d0d1[_0x4cab5f(0x2e9)](_0xb79240,[_0x53a63a])),(_0x3019d2=this[_0x4cab5f(0x196)])==null||_0x3019d2['unsubscribe'](),this[_0x4cab5f(0x196)]=null,this['_socketMessageSubscription']=_0xb79240[_0x4cab5f(0x184)][_0x4cab5f(0x34c)](_0x3634b0=>this[_0x4cab5f(0x281)](_0xb79240,_0x3634b0)),_0xb79240[_0x4cab5f(0x2da)]['pipe'](_0x28684c(0x1))[_0x4cab5f(0x34c)](_0x3c3f1b=>this[_0x4cab5f(0x125)][_0x4cab5f(0x1d9)]('[CollaborationSessionService]:\x20socket\x20error',_0x3c3f1b)),_0xb79240[_0x4cab5f(0x27f)][_0x4cab5f(0x1ee)](_0x28684c(0x1))[_0x4cab5f(0x34c)](()=>{this['_onConnectionOpen'](_0xb79240);}),_0xb79240[_0x4cab5f(0x280)]['pipe'](_0x28684c(0x1))['subscribe'](_0x4bad8b=>{const _0x24bd59=_0x4cab5f;this[_0x24bd59(0x125)][_0x24bd59(0x12c)]('[CollaborationSessionService]','socket\x20close',_0x4bad8b),this[_0x24bd59(0x127)]();});}}catch(_0x4b9070){this[_0x4cab5f(0x125)]['error'](_0x4b9070),this[_0x4cab5f(0x127)]();}}[_0x5ae4d2(0x16b)](_0x376f75){const _0x4493fb=_0x5ae4d2;this[_0x4493fb(0x125)][_0x4493fb(0x12c)](_0x4493fb(0x2ef),_0x4493fb(0x277)),_0x376f75[_0x4493fb(0x37e)]({'cmd':_0x454ca3[_0x4493fb(0x29b)]}),this['_rescheduleHeartbeat']();}[_0x5ae4d2(0x302)](){const _0x1af153=_0x5ae4d2;this[_0x1af153(0x33b)]=!0x1,this['_candidateSocket']=null,this[_0x1af153(0x2fc)][_0x1af153(0x382)](0x2),this['_socket$'][_0x1af153(0x382)](null),this[_0x1af153(0x134)](),this[_0x1af153(0x31e)]();}[_0x5ae4d2(0x127)](){const _0x1328c7=_0x5ae4d2;var _0x1c5530;this[_0x1328c7(0x302)](),this[_0x1328c7(0x112)]<((_0x1c5530=this['_configService'][_0x1328c7(0x2c6)](_0x1328c7(0x18d)))==null?0x3:_0x1c5530)?(this[_0x1328c7(0x2ad)][_0x1328c7(0x175)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect']()):this['_collaborationUIEventService']['emitEvent']({'id':_0x1328c7(0x11d)});}['_tryReconnect'](){const _0x305005=_0x5ae4d2;var _0x39b166;let _0x51423e=this['_retryCount'],_0x3a7c06=this[_0x305005(0x14a)][_0x305005(0x2c6)](U),_0x7abb99=_0x51423e===0x0?0x0:((_0x39b166=_0x3a7c06==null?void 0x0:_0x3a7c06[_0x305005(0x26e)])==null?0x4e20:_0x39b166)*0x2**_0x51423e;this[_0x305005(0x227)]=setTimeout(()=>{clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x7abb99),this['_retryCount']+=0x1;}[_0x5ae4d2(0x281)](_0x12f64a,_0x109b7d){const _0x1bfc4f=_0x5ae4d2;let {cmd:_0x512c6d}=_0x109b7d;_0x512c6d===_0x454ca3[_0x1bfc4f(0x29b)]&&!this['_socketReady']&&(_0x12f64a['memberID']=_0x109b7d[_0x1bfc4f(0x20d)][_0x1bfc4f(0x270)],this[_0x1bfc4f(0x116)]['next'](_0x12f64a),this[_0x1bfc4f(0x2fc)]['next'](0x3),this['_socketReady']=!0x0,this[_0x1bfc4f(0x13a)]=null),_0x512c6d===_0x454ca3['HEARTBEAT']&&this[_0x1bfc4f(0x134)](),this[_0x1bfc4f(0x1c4)]();}[_0x5ae4d2(0x1c4)](){const _0x1052e4=_0x5ae4d2;var _0x3ef94f;this[_0x1052e4(0x31e)](),this[_0x1052e4(0x1cb)]=setTimeout(()=>this[_0x1052e4(0x176)](),(_0x3ef94f=this[_0x1052e4(0x14a)][_0x1052e4(0x2c6)](_0x1052e4(0x23e)))==null?0x7530:_0x3ef94f);}[_0x5ae4d2(0x176)](){const _0x46e816=_0x5ae4d2;this[_0x46e816(0x1bb)][_0x46e816(0x37e)]({'cmd':_0x454ca3['HEARTBEAT']}),this[_0x46e816(0x346)]();}['_waitForHeartbeatResponse'](){const _0x238ebf=_0x5ae4d2;var _0x3d2725;this[_0x238ebf(0x2a0)]=setTimeout(()=>this[_0x238ebf(0x127)](),(_0x3d2725=this['_configService'][_0x238ebf(0x2c6)]('HEARTBEAT_TIMEOUT'))==null?mt:_0x3d2725);}[_0x5ae4d2(0x31e)](){const _0x502a64=_0x5ae4d2;this[_0x502a64(0x1cb)]!=null&&(clearTimeout(this[_0x502a64(0x1cb)]),this[_0x502a64(0x1cb)]=null);}[_0x5ae4d2(0x134)](){const _0x55bc86=_0x5ae4d2;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x55bc86(0x2a0)]),this[_0x55bc86(0x2a0)]=null);}};Q=z([R(0x0,_0x4e3f0c(_0x1422f8)),R(0x1,_0x2dd0ba),R(0x2,_0x2a37e1),R(0x3,rn),R(0x4,_0x4e3f0c(L)),R(0x5,_0xd20bc(en))],Q);let sn=class extends _0x1e5f27{constructor(_0x79c7ba,_0xc95a5b,_0xe65a35,_0x36a6cb){const _0x97d096=_0x5ae4d2;var _0x2fda3f;super(),this['_injector']=_0x79c7ba,this['_collabSessionService']=_0xc95a5b,this['_configService']=_0xe65a35,this[_0x97d096(0x113)]=_0x36a6cb,I(this,_0x97d096(0x198),new Map()),I(this,_0x97d096(0x243),new _0x43ff4()),I(this,'entityInit$',this[_0x97d096(0x243)][_0x97d096(0x32b)]()),((_0x2fda3f=this['_configService'][_0x97d096(0x2c6)]('collaboration-client.config'))==null?void 0x0:_0x2fda3f[_0x97d096(0x212)])!==!0x1&&this[_0x97d096(0x301)]();}['dispose'](){const _0x2fae3a=_0x5ae4d2;super['dispose'](),this[_0x2fae3a(0x198)][_0x2fae3a(0x284)](_0x2e06ca=>_0x2e06ca[_0x2fae3a(0x2e1)]()),this['_entities']['clear']();}['getCollabEntity'](_0x1bbc74){var _0x2a22d7;return(_0x2a22d7=this['_entities']['get'](_0x1bbc74))==null?null:_0x2a22d7;}['getCollabEntity$'](_0x34fcd8){const _0x3233e0=_0x5ae4d2;let _0x19b0fc=this['getCollabEntity'](_0x34fcd8);return _0x19b0fc?_0x1abee8(_0x19b0fc):this[_0x3233e0(0x243)][_0x3233e0(0x1ee)](_0x45748f(_0x6c3306=>_0x6c3306[_0x3233e0(0x213)]===_0x34fcd8));}[_0x5ae4d2(0x36a)](_0x799607){const _0x12799f=_0x5ae4d2;return _0x5e0847(this[_0x12799f(0x2f0)](_0x799607)[_0x12799f(0x1ee)](_0x5b276d(()=>void 0x0)));}[_0x5ae4d2(0x301)](){const _0x2f65e0=_0x5ae4d2;this[_0x2f65e0(0x113)]['getTypeOfUnitAdded$'](_0x20b29c[_0x2f65e0(0x151)])[_0x2f65e0(0x1ee)](_0x11efa6(this[_0x2f65e0(0x229)]),_0xd86525(0x10))['subscribe'](async _0x366d77=>{const _0x141878=_0x2f65e0;let _0x35773f=_0x366d77['unit'][_0x141878(0x2a1)](),_0x4e8a76=await this[_0x141878(0x282)](_0x35773f,_0x20b29c['UNIVER_SHEET']);this[_0x141878(0x198)][_0x141878(0x245)](_0x35773f,_0x4e8a76);}),this[_0x2f65e0(0x113)][_0x2f65e0(0x1aa)](_0x20b29c[_0x2f65e0(0x1ad)])[_0x2f65e0(0x1ee)](_0x11efa6(this[_0x2f65e0(0x229)]),_0xd86525(0x10))['pipe'](_0x45748f(_0x2abff9=>!_0x2abff9[_0x2f65e0(0x13f)][_0x2f65e0(0x2a1)]()[_0x2f65e0(0x258)]('__')))[_0x2f65e0(0x34c)](async _0x249f9e=>{const _0x36066d=_0x2f65e0;let _0x75d868=_0x249f9e[_0x36066d(0x13f)][_0x36066d(0x2a1)](),_0x2b4b48=await this['_startCollaboration'](_0x75d868,_0x20b29c[_0x36066d(0x1ad)]);this[_0x36066d(0x198)][_0x36066d(0x245)](_0x75d868,_0x2b4b48);}),_0x2d1d23(this[_0x2f65e0(0x113)][_0x2f65e0(0x373)](_0x20b29c[_0x2f65e0(0x151)]),this[_0x2f65e0(0x113)]['getTypeOfUnitDisposed$'](_0x20b29c[_0x2f65e0(0x1ad)]))[_0x2f65e0(0x1ee)](_0x11efa6(this[_0x2f65e0(0x229)]))['subscribe'](_0x1cf702=>{const _0x13e730=_0x2f65e0;let _0x40ab45=_0x1cf702[_0x13e730(0x2a1)](),_0x5e71f7=this['_entities'][_0x13e730(0x2b2)](_0x40ab45);_0x5e71f7&&(_0x5e71f7[_0x13e730(0x2e1)](),this['_entities'][_0x13e730(0x379)](_0x40ab45));});}async[_0x5ae4d2(0x282)](_0xfde862,_0x1deee7){const _0x1f5f70=_0x5ae4d2;let _0x3b7247=await this[_0x1f5f70(0x129)][_0x1f5f70(0x1dc)](_0xfde862),_0x1d3d58=this[_0x1f5f70(0x25e)][_0x1f5f70(0x161)](this['_getCtorByUniverInstanceType'](_0x1deee7),_0xfde862,_0x1deee7,_0x3b7247);return await _0x1d3d58[_0x1f5f70(0x27d)](),this[_0x1f5f70(0x243)]['next'](_0x1d3d58),_0x1d3d58;}['_getCtorByUniverInstanceType'](_0x4fbf3d){const _0x26d117=_0x5ae4d2;switch(_0x4fbf3d){case _0x20b29c[_0x26d117(0x1ad)]:return Qt;case _0x20b29c[_0x26d117(0x151)]:return $t;default:throw Error(_0x26d117(0x304)+_0x4fbf3d);}}};sn=z([R(0x0,_0x4e3f0c(_0x1422f8)),R(0x1,_0x4e3f0c(Q)),R(0x2,_0x2a37e1),R(0x3,_0x2f9fc)],sn);var cn=_0x5ae4d2(0x110),ln='0.25.2';let un=class extends _0x4c3df1{constructor(_0x135638,_0x506cd0){const _0x4e6cf4=_0x5ae4d2;super(),this[_0x4e6cf4(0x113)]=_0x135638,this[_0x4e6cf4(0x14a)]=_0x506cd0,this[_0x4e6cf4(0x301)]();}[_0x5ae4d2(0x301)](){const _0x8fa216=_0x5ae4d2;this[_0x8fa216(0x130)](this[_0x8fa216(0x113)][_0x8fa216(0x1f4)][_0x8fa216(0x34c)](()=>{const _0x49bfd2=_0x8fa216;var _0x60a7f6;let _0x235438=this[_0x49bfd2(0x113)][_0x49bfd2(0x287)](),_0x2c1a3d=(_0x60a7f6=this[_0x49bfd2(0x14a)][_0x49bfd2(0x2c6)](_0x49bfd2(0x2f2)))==null?_0x49bfd2(0x2dd):_0x60a7f6;_0x235438 instanceof _0x3e4160&&(_0x2c1a3d=_0x235438[_0x49bfd2(0x2c2)]),document[_0x49bfd2(0x1d4)]=_0x2c1a3d;}));}};un=z([R(0x0,_0x2f9fc),R(0x1,_0x2a37e1)],un);let dn=class{constructor(_0x21a8f7,_0x3c84fc,_0xb4019c){const _0x4b468e=_0x5ae4d2;this[_0x4b468e(0x14a)]=_0x21a8f7,this[_0x4b468e(0x311)]=_0x3c84fc,this[_0x4b468e(0x240)]=_0xb4019c,this[_0x4b468e(0x27d)]();}[_0x5ae4d2(0x27d)](){const _0x1b1791=_0x5ae4d2;this['_httpService'][_0x1b1791(0x2b3)]({'priority':0x1,'interceptor':(_0xdfdb09,_0x31e9bc)=>_0x31e9bc(_0xdfdb09)[_0x1b1791(0x1ee)](_0x2026fd(async _0x21dd43=>{const _0x2f23b4=_0x1b1791;let _0x42e03c=_0x21dd43;if(_0x42e03c[_0x2f23b4(0x2ff)]===0x191){if(typeof window>'u')throw Error(_0x2f23b4(0x33f));if(window[_0x2f23b4(0x20e)](this[_0x2f23b4(0x240)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x5a5c95=window[_0x2f23b4(0x1ed)](window[_0x2f23b4(0x33e)][_0x2f23b4(0x312)]);window[_0x2f23b4(0x33e)][_0x2f23b4(0x312)]=this[_0x2f23b4(0x2ee)]()+_0x2f23b4(0x237)+_0x5a5c95;}}return _0x42e03c;}))});}[_0x5ae4d2(0x2ee)](){const _0xa4d899=_0x5ae4d2;var _0xe1d230;let _0x337bce=this[_0xa4d899(0x14a)]['getConfig'](U);return(_0xe1d230=_0x337bce==null?void 0x0:_0x337bce[_0xa4d899(0x147)])==null?_0xa4d899(0x303):_0xe1d230;}};dn=z([R(0x0,_0x2a37e1),R(0x1,_0x4e3f0c(_0x50b313)),R(0x2,_0x4e3f0c(_0x30fb36))],dn);let fn=class extends _0x4c3df1{constructor(_0x7ca9db,_0x1a5c2c){const _0x4f6a0a=_0x5ae4d2;super(),this[_0x4f6a0a(0x2f8)]=_0x7ca9db,this[_0x4f6a0a(0x14a)]=_0x1a5c2c,I(this,_0x4f6a0a(0x2b6),!0x1),this[_0x4f6a0a(0x155)]();}[_0x5ae4d2(0x155)](){const _0x44694a=_0x5ae4d2;let _0x208f6e=this;this[_0x44694a(0x130)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x22eec7({'isMatch'(_0x1dc7ad){const _0xf18f4d=_0x44694a;var _0x3a5386;if(_0x1dc7ad[_0xf18f4d(0x259)]===_0xf18f4d(0x11f)&&(_0x3a5386=_0x1dc7ad['requestParams'])!=null&&_0x3a5386[_0xf18f4d(0x290)]){let {objectID:_0x7957c7,objectType:_0x532c42}=_0x1dc7ad[_0xf18f4d(0x33a)][_0xf18f4d(0x290)]||{};if(!_0x7957c7||_0x532c42===void 0x0)return!0x1;let _0xd59c3f=_0x208f6e[_0xf18f4d(0x27b)]()+'/'+_0x532c42+'/object/'+_0x7957c7+_0xf18f4d(0x2ca);if(_0x1dc7ad[_0xf18f4d(0x194)]===_0xd59c3f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x253da0){const _0x4d3b3c=_0x44694a;var _0xa43ea4;return(_0xa43ea4=_0x253da0['requestParams'])==null?void 0x0:_0xa43ea4[_0x4d3b3c(0x290)];},'mergeParamsToRequest'(_0xe9cc87,_0x5ab7b9){const _0x2f84c2=_0x44694a;let _0x3c3eaf=_0x208f6e[_0x2f84c2(0x27b)]()+_0x2f84c2(0x238),_0x326da9=_0xe9cc87[_0x2f84c2(0x23b)]((_0x1cd871,_0x5ea96f)=>{const _0x365165=_0x2f84c2;let {unitID:_0x282e09,objectID:_0x41d33e,objectType:_0x52cf4f,actions:_0x3e7f86}=_0x5ea96f;return _0x1cd871[_0x282e09]||(_0x1cd871[_0x282e09]=Object[_0x365165(0x319)](null)),_0x1cd871[_0x282e09][_0x41d33e]||(_0x1cd871[_0x282e09][_0x41d33e]={'objectID':_0x41d33e,'objectType':_0x52cf4f,'actions':[]}),_0x1cd871[_0x282e09][_0x41d33e][_0x365165(0x11a)]['push'](..._0x3e7f86),_0x1cd871;},Object['create'](null)),_0x42b13f=[];for(let _0x5670b2 in _0x326da9)for(let _0x15a311 in _0x326da9[_0x5670b2]){let {actions:_0x4c6db5,objectType:_0x305d35}=_0x326da9[_0x5670b2][_0x15a311],_0x189c02=[...new Set(_0x4c6db5)];_0x42b13f[_0x2f84c2(0x1c1)]({'unitID':_0x5670b2,'objectID':_0x15a311,'objectType':_0x305d35,'actions':_0x189c02});}return new _0x1af32f(_0x2f84c2(0x11f),_0x3c3eaf,{'headers':_0x5ab7b9[_0x2f84c2(0x244)],'withCredentials':_0x5ab7b9[_0x2f84c2(0x220)],'responseType':_0x5ab7b9['responseType'],'body':{'requests':_0x42b13f}});}},{'distributeResult'(_0x490b9f,_0x6a3060){let {objectActions:_0x21327c}=_0x490b9f;return _0x6a3060['map'](_0x5e0b31=>{const _0x1e53f5=_0x80d2;let {unitID:_0x36a889,objectID:_0x41693f,actions:_0x3d137b}=_0x5e0b31,_0x234a81=_0x21327c[_0x1e53f5(0x1e3)](_0x92f4cb=>_0x92f4cb[_0x1e53f5(0x213)]===_0x36a889&&_0x92f4cb[_0x1e53f5(0x26f)]===_0x41693f);return{'config':_0x5e0b31,'result':{'actions':_0x3d137b[_0x1e53f5(0x1e0)](_0x14d9df=>_0x234a81==null?void 0x0:_0x234a81[_0x1e53f5(0x11a)][_0x1e53f5(0x1e3)](_0x29d932=>_0x29d932[_0x1e53f5(0x2d2)]===_0x14d9df))['filter'](_0x3c47e3=>!!_0x3c47e3),'error':_0x490b9f[_0x1e53f5(0x1d9)]}};});}})}));}[_0x5ae4d2(0x27b)](){const _0x30cc10=_0x5ae4d2;var _0x1e8945;let _0x1883bd=this[_0x30cc10(0x14a)]['getConfig'](U);return(_0x1e8945=_0x1883bd==null?void 0x0:_0x1883bd[_0x30cc10(0x367)])==null?_0x30cc10(0x159):_0x1e8945;}async[_0x5ae4d2(0x319)](_0x161487){const _0x439f55=_0x5ae4d2;let _0x215da8=this[_0x439f55(0x27b)]()+'/'+_0x161487[_0x439f55(0x272)]+_0x439f55(0x192);return(await this['_HTTPService']['post'](_0x215da8,{'body':_0x161487}))[_0x439f55(0x290)][_0x439f55(0x26f)]||'';}async[_0x5ae4d2(0x16d)](_0x4cf71e){const _0xe967a8=_0x5ae4d2;let _0x42f81c=this[_0xe967a8(0x27b)]()+'/-/object/list';return(await this[_0xe967a8(0x2f8)]['post'](_0x42f81c,{'body':_0x4cf71e}))['body'][_0xe967a8(0x1af)];}async[_0x5ae4d2(0x22e)](_0x317bd5){const _0x46c16e=_0x5ae4d2;var _0x129e34;let _0x177626=this['_getAPIPrefixPath']()+'/'+_0x317bd5[_0x46c16e(0x272)]+_0x46c16e(0x2a3)+_0x317bd5[_0x46c16e(0x26f)],_0x3743d7=await this[_0x46c16e(0x2f8)]['put'](_0x177626,{'body':_0x317bd5});if((_0x3743d7==null||(_0x129e34=_0x3743d7['body'])==null||(_0x129e34=_0x129e34[_0x46c16e(0x1d9)])==null?void 0x0:_0x129e34[_0x46c16e(0x34f)])!==0x1)throw Error(_0x46c16e(0x1f0));}async['allowed'](_0x1d9216){const _0x508c00=_0x5ae4d2;let _0x455a11=this[_0x508c00(0x27b)]()+'/'+_0x1d9216[_0x508c00(0x272)]+_0x508c00(0x2a3)+_0x1d9216[_0x508c00(0x26f)]+_0x508c00(0x2ca);return(await this[_0x508c00(0x2f8)]['post'](_0x455a11,{'body':_0x1d9216}))[_0x508c00(0x290)][_0x508c00(0x11a)];}async['batchAllowed'](_0x1bb389){const _0x15e561=_0x5ae4d2;let _0xf04331=this[_0x15e561(0x27b)]()+_0x15e561(0x238);return(await this[_0x15e561(0x2f8)][_0x15e561(0x2fd)](_0xf04331,{'body':{'requests':_0x1bb389}}))[_0x15e561(0x290)][_0x15e561(0x316)];}async['listRoles'](_0x12158f){const _0x2a6494=_0x5ae4d2;let _0x38d87b=this[_0x2a6494(0x27b)]()+'/'+_0x12158f[_0x2a6494(0x272)]+'/role',_0x5bdce8=await this[_0x2a6494(0x2f8)]['post'](_0x38d87b,{'body':_0x12158f});return{'roles':_0x5bdce8[_0x2a6494(0x290)][_0x2a6494(0x256)],'actions':_0x5bdce8[_0x2a6494(0x290)][_0x2a6494(0x11a)]};}async[_0x5ae4d2(0x283)](_0x2681f5){const _0x5ee5b2=_0x5ae4d2;let _0x32d5d9=this[_0x5ee5b2(0x27b)]()+_0x5ee5b2(0x236);await this[_0x5ee5b2(0x2f8)][_0x5ee5b2(0x379)](_0x32d5d9,{'params':{'collaboratorID':_0x2681f5[_0x5ee5b2(0x143)],'objectID':_0x2681f5[_0x5ee5b2(0x26f)],'unitID':_0x2681f5[_0x5ee5b2(0x213)]}});}async[_0x5ae4d2(0x142)](_0x3715fb){const _0x1f9a2e=_0x5ae4d2;let _0x3c1a35=this[_0x1f9a2e(0x27b)]()+_0x1f9a2e(0x236);await this[_0x1f9a2e(0x2f8)][_0x1f9a2e(0x24b)](_0x3c1a35,{'body':_0x3715fb});}async[_0x5ae4d2(0x140)](_0x239069){const _0x55869c=_0x5ae4d2;let _0x1a64d1=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x55869c(0x2f8)][_0x55869c(0x2fd)](_0x1a64d1,{'body':_0x239069});}async[_0x5ae4d2(0x2d7)](_0x267162){const _0x1c4a2b=_0x5ae4d2;var _0x50b30f;let _0x5178cf=this[_0x1c4a2b(0x27b)]()+_0x1c4a2b(0x236),_0x458d0a=await this[_0x1c4a2b(0x2f8)][_0x1c4a2b(0x2b2)](_0x5178cf,{'params':{'objectID':_0x267162[_0x1c4a2b(0x26f)],'unitID':_0x267162[_0x1c4a2b(0x213)]}});return this[_0x1c4a2b(0x310)]((_0x50b30f=_0x458d0a['body'][_0x1c4a2b(0x15c)])==null?!0x1:_0x50b30f),_0x458d0a[_0x1c4a2b(0x290)][_0x1c4a2b(0x34d)];}async[_0x5ae4d2(0x200)](_0x3c536d){const _0x3c7fd0=_0x5ae4d2;let _0x24ac67=this['_getAPIPrefixPath']()+_0x3c7fd0(0x236);await this[_0x3c7fd0(0x2f8)][_0x3c7fd0(0x17d)](_0x24ac67,{'body':_0x3c536d});}['setCfgEnableObjInherit'](_0x5292df){const _0x2b410b=_0x5ae4d2;this[_0x2b410b(0x2b6)]=_0x5292df;}['getCfgEnableObjInherit'](){const _0x87d063=_0x5ae4d2;return this[_0x87d063(0x2b6)];}};fn=z([R(0x0,_0x4e3f0c(_0x50b313)),R(0x1,_0x4e3f0c(_0x2a37e1))],fn);function pn(_0x23c988){const _0x4b816f=_0x5ae4d2;let _0x2bb386=atob(_0x23c988),_0x41f23f=new Uint8Array(_0x2bb386[_0x4b816f(0x1a1)]);for(let _0x289fc2=0x0;_0x289fc2<_0x2bb386[_0x4b816f(0x1a1)];_0x289fc2++)_0x41f23f[_0x289fc2]=_0x2bb386[_0x4b816f(0x255)](_0x289fc2);return _0x41f23f;}function mn(_0x3cabaf){const _0x8d384=_0x5ae4d2;let _0x488561='';for(let _0x1e5fe0=0x0;_0x1e5fe0<_0x3cabaf[_0x8d384(0x1a1)];_0x1e5fe0++)_0x488561+=String[_0x8d384(0x15e)](_0x3cabaf[_0x1e5fe0]);return btoa(_0x488561);}function hn(_0x473015,_0x58fc17){const _0x200d71=_0x5ae4d2;let _0x5baadb=pn(_0x58fc17),_0xef3e88=_0x58d0f2(0x10);return mn(_0x419146(_0xef3e88,_0x2a605a(_0x5baadb,_0xef3e88)[_0x200d71(0x1d0)](_0x973a80(_0x473015))));}function gn(){const _0xb56fba=_0x5ae4d2;let _0x21bc55=_0x3cd491()[_0xb56fba(0x1c6)];if(typeof window<'u'&&window[_0xb56fba(0x33e)]!==void 0x0&&_0x21bc55){let _0x56f04a={'time':Math[_0xb56fba(0x1ef)](Date[_0xb56fba(0x31d)]()/0x3e8),'domain':location[_0xb56fba(0x15a)]};return hn(JSON[_0xb56fba(0x261)](_0x56f04a),_0x21bc55);}}let _n=class{constructor(_0x420ae1){const _0x58b5e1=_0x5ae4d2;this[_0x58b5e1(0x311)]=_0x420ae1,this[_0x58b5e1(0x241)]();}['_initRequestHeader'](){const _0x3ecf26=_0x5ae4d2;this['_httpService'][_0x3ecf26(0x2b3)]({'interceptor':(_0x2e60be,_0x1e8a7f)=>{const _0x2c989b=_0x3ecf26;let _0x556065=gn();return _0x556065&&_0x2e60be[_0x2c989b(0x244)]['set'](_0x2c989b(0x25f),_0x556065),_0x1e8a7f(_0x2e60be);}});}};_n=z([R(0x0,_0x4e3f0c(_0x50b313))],_n);let vn=class extends _0x1e5f27{constructor(_0x55d56a,_0x459a75,_0x519cc7){const _0x402342=_0x5ae4d2;super(),this['_logService']=_0x55d56a,this[_0x402342(0x1b4)]=_0x459a75,this['_localCacheService']=_0x519cc7,I(this,'_unitInfo$',new _0xddeafe(null)),I(this,_0x402342(0x356),this[_0x402342(0x249)]['asObservable']());}async[_0x5ae4d2(0x285)](_0xeec59b,_0x510aa4,_0x2657c0){const _0x1ddc20=_0x5ae4d2;this[_0x1ddc20(0x249)]['next']({'unitId':_0xeec59b,'type':_0x510aa4});let _0x35e922=null;switch(_0x510aa4){case _0x20b29c[_0x1ddc20(0x151)]:_0x35e922=await this['_snapshotService'][_0x1ddc20(0x21a)](_0xeec59b,_0x2657c0);break;case _0x20b29c[_0x1ddc20(0x1ad)]:_0x35e922=await this['_snapshotService'][_0x1ddc20(0x209)](_0xeec59b,_0x2657c0);break;default:this['_logService'][_0x1ddc20(0x1d9)](_0x1ddc20(0x323),_0x1ddc20(0x1e7));break;}return _0x35e922;}async[_0x5ae4d2(0x2cf)](_0x4ea31a,_0x57ecb5,_0x16c2d1){const _0x10032a=_0x5ae4d2;var _0x434650;this[_0x10032a(0x249)]['next']({'unitId':_0x4ea31a,'type':_0x57ecb5,'subUnitId':_0x16c2d1});let _0x3b0f39=0x0,_0x4fd5f9=await((_0x434650=this[_0x10032a(0x337)])==null?void 0x0:_0x434650['loadOfflineData'](_0x4ea31a));return _0x4fd5f9&&(_0x4fd5f9[_0x10032a(0x2af)]||_0x4fd5f9[_0x10032a(0x36f)][_0x10032a(0x1a1)]!==0x0)&&(_0x3b0f39=_0x4fd5f9['rev']),_0x3b0f39===0x0&&this[_0x10032a(0x125)][_0x10032a(0x12c)](_0x10032a(0x323),_0x10032a(0x18f)),this[_0x10032a(0x285)](_0x4ea31a,_0x57ecb5,_0x3b0f39);}};vn=z([R(0x0,_0x2dd0ba),R(0x1,_0x4e3f0c(_0x2e0a41)),R(0x2,_0xd20bc(V))],vn);let yn=class{constructor(_0x1301eb,_0x33a15b,_0x4225e9){const _0x2ad62c=_0x5ae4d2;this[_0x2ad62c(0x311)]=_0x1301eb,this[_0x2ad62c(0x14a)]=_0x33a15b,this[_0x2ad62c(0x113)]=_0x4225e9,I(this,'_waitCount',0x0),I(this,'_change$',new _0x43ff4()),I(this,_0x2ad62c(0x369),this[_0x2ad62c(0x35f)]),I(this,_0x2ad62c(0x35d),new Map());}[_0x5ae4d2(0x20f)](_0x4a2fc0){const _0xe97758=_0x5ae4d2;this[_0xe97758(0x158)]=_0x4a2fc0,this[_0xe97758(0x35f)][_0xe97758(0x382)](_0x4a2fc0);}[_0x5ae4d2(0x335)](_0x43d486,_0x484601){const _0x392f8f=_0x5ae4d2;if(_0x484601===_0x2399c6['BASE64']){let _0x2373ae=new Image();return _0x2373ae[_0x392f8f(0x14c)]=_0x43d486,_0x2373ae;}return this[_0x392f8f(0x35d)][_0x392f8f(0x2b2)](_0x43d486);}[_0x5ae4d2(0x217)](_0x56ecb5,_0x4cbb46,_0x14c00d){const _0xcf78a2=_0x5ae4d2;_0x4cbb46===_0x2399c6[_0xcf78a2(0x1c0)]||_0x14c00d==null||this[_0xcf78a2(0x35d)]['set'](_0x56ecb5,_0x14c00d);}async['getImage'](_0x23ca48){const _0x59a739=_0x5ae4d2;try{let _0x44bca7=this[_0x59a739(0x343)](this[_0x59a739(0x118)](),''+_0x23ca48),_0x511b92=(await this['_httpService'][_0x59a739(0x2b2)](_0x44bca7))[_0x59a739(0x290)];if(_0x511b92[_0x59a739(0x1d9)]&&_0x511b92['error'][_0x59a739(0x34f)]===_0x1a1ebc['OK']){let _0x248f5b=_0x39267b(_0x511b92[_0x59a739(0x194)],this[_0x59a739(0x25b)]());return Promise[_0x59a739(0x222)](_0x248f5b);}return Promise[_0x59a739(0x18a)](_0x511b92[_0x59a739(0x1d9)]);}catch(_0x3f5283){return Promise[_0x59a739(0x18a)](_0x3f5283);}}async['saveImage'](_0x2f61c6){const _0x462dbf=_0x5ae4d2;let _0x231ee5='';if(!_0x2f3bd1[_0x462dbf(0x2f5)](_0x2f61c6['type']))return this[_0x462dbf(0x378)](),Promise[_0x462dbf(0x18a)](Error(_0x531028[_0x462dbf(0x1a5)]));if(_0x2f61c6['size']>_0x1d6f46())return this['_decreaseWaiting'](),Promise[_0x462dbf(0x18a)](Error(_0x531028[_0x462dbf(0x12b)]));try{let _0x139d9d=new FormData();_0x139d9d[_0x462dbf(0x221)]('file',_0x2f61c6);let _0x36f4fa=this[_0x462dbf(0x113)]['getFocusedUnit'](),_0x253922=_0x36f4fa==null?void 0x0:_0x36f4fa[_0x462dbf(0x2a1)]();if(!_0x253922)throw Error(_0x462dbf(0x119));let _0x569d09=this[_0x462dbf(0x2d8)]()+_0x462dbf(0x16c)+_0x2f61c6[_0x462dbf(0x1b8)][_0x462dbf(0x1cc)]()+_0x462dbf(0x364)+_0x3f415e[_0x462dbf(0x26d)]+_0x462dbf(0x12a)+encodeURIComponent(_0x253922),_0x23c250={'body':_0x139d9d},_0x32b2c1=(await this[_0x462dbf(0x311)][_0x462dbf(0x2fd)](_0x569d09,_0x23c250))[_0x462dbf(0x290)];if(typeof _0x32b2c1[_0x462dbf(0x291)]!='string')return this['_decreaseWaiting'](),Promise[_0x462dbf(0x18a)](Error(_0x531028[_0x462dbf(0x1ff)]));_0x231ee5=_0x32b2c1[_0x462dbf(0x291)];}catch{return this[_0x462dbf(0x378)](),Promise[_0x462dbf(0x18a)](Error(_0x531028[_0x462dbf(0x1ff)]));}return new Promise((_0x3d1530,_0x294a0a)=>{const _0x42d946=_0x462dbf;let _0x532619=new FileReader();_0x532619[_0x42d946(0x1b5)](_0x2f61c6),_0x532619[_0x42d946(0x2d4)]=_0x392dd9=>{const _0x1527f6=_0x42d946;var _0x330db8;let _0x1e5e05=(_0x330db8=_0x392dd9[_0x1527f6(0x188)])==null?void 0x0:_0x330db8['result'];if(_0x1e5e05==null){this[_0x1527f6(0x378)](),_0x294a0a(Error(_0x531028['ERROR_IMAGE']));return;}_0x3d1530({'imageId':_0x181b49(0x6),'imageSourceType':_0x2399c6[_0x1527f6(0x26c)],'source':_0x231ee5,'base64Cache':_0x1e5e05,'status':_0x531028[_0x1527f6(0x207)]}),this['_decreaseWaiting']();};});}[_0x5ae4d2(0x2d8)](){const _0x351eb6=_0x5ae4d2;var _0x5c75a9;let _0x4a0fd2=this[_0x351eb6(0x14a)][_0x351eb6(0x2c6)](U);return(_0x5c75a9=_0x4a0fd2==null?void 0x0:_0x4a0fd2[_0x351eb6(0x195)])==null?'/universer-api/stream/file/upload':_0x5c75a9;}[_0x5ae4d2(0x118)](){const _0x1e79e8=_0x5ae4d2;var _0x5b36a5;let _0x1b654a=this[_0x1e79e8(0x14a)][_0x1e79e8(0x2c6)](U);return(_0x5b36a5=_0x1b654a==null?void 0x0:_0x1b654a[_0x1e79e8(0x2b7)])==null?_0x1e79e8(0x1b2):_0x5b36a5;}[_0x5ae4d2(0x25b)](){const _0x1488fb=_0x5ae4d2;var _0x596664;let _0x2d4b73=this[_0x1488fb(0x14a)][_0x1488fb(0x2c6)](U);return(_0x596664=_0x2d4b73==null?void 0x0:_0x2d4b73['downloadEndpointUrl'])==null?location[_0x1488fb(0x31a)]:_0x596664;}[_0x5ae4d2(0x343)](_0x54c459,_0x17e96b){const _0x5e48b8=_0x5ae4d2;return _0x54c459[_0x5e48b8(0x274)](_0x5e48b8(0x122),_0x17e96b);}[_0x5ae4d2(0x378)](){const _0x1eba40=_0x5ae4d2;--this['_waitCount'],this[_0x1eba40(0x35f)][_0x1eba40(0x382)](this['_waitCount']);}};yn=z([R(0x0,_0x4e3f0c(_0x50b313)),R(0x1,_0x2a37e1),R(0x2,_0x4e3f0c(_0x2f9fc))],yn);function _0xd90b(){const _0x22de3b=['_maxTotalRetryTimeout','ERROR_IMAGE','putCollaborators','csAckEvent','_isEchoedAwaitingChangeset','_queuedRemoteChangesets','NEW_CHANGESETS','appendMutation','MSG_FOR_ERROR','SUCCUSS','complete','loadDoc','GLOBAL_ROOMS_CNT_EXCEEDS','userID','FETCH_MISS','data','confirm','setWaitCount','transformUndoRedo','onMutationExecutedForCollab','enableCollaboration','unitID','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteACK','_transformIMECache','addImageSourceCache','_getRedoStack','USERS_ENTER','loadSheet','_applyRemoteChangeset','enableAuthServer','_eventService','_createSocket','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','withCredentials','append','resolve','sheets','_disableEditing','setShowComponents','_socketService','_retryConnectingTimer','session.room-full','dispose$','addHandlerCallback','632CkxwSg','SYNCED','/universer-api/snapshot','update','reqId','UNISCRIPT_RUN','_initUnitPermissionChange','conflict','6249834owbFOO','_exhaustRemoteChangesetQueue','JOIN_ROOM_NOT_EXISTS','/collaborator','?url=','/-/object/-/batch_allowed','_getUndoStack','/new_changes','reduce','findIndex','_roomCreated$','HEARTBEAT_INTERVAL','params','localeService','_initRequestHeader','encode','_entityInit$','headers','set','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_scheduleCollaborationTimeoutTimer','LOCAL_CACHE_INTERVAL','_unitInfo$','onStateChange','patch','_onLocalMutation','getCurrentSelections','reverse','_transformStateCache','leaveEvent','MUTATION','getSnapshotAPIPath','_userManagerService','values','charCodeAt','roles','univer-pro.collaboration-client.single-active-unit-service','startsWith','method','SHOULD_CLOSE_CONN','_getDownloadEndpointURL','saveChangeset','_incrementRevisionNumber','_injector','x-univer-host','_permissionService','stringify','baseRev','_clearRedo','_onUserJoin','_resendWithTimeout','_unitID','LIVESHARE_REQUEST_HOST','number','_tryReconnect','parse','getCurrentRevOfUnit','UUID','UnitEmbedded','retryConnectingInterval','objectID','memberID','_onRemoteRetry','objectType','_emitMembers','replace','min','univer-pro.collaboration-client-socket-service','socket\x20open.','SUBMIT_CHANGESET','_sendingTimer','revision','_getAPIPrefixPath','cmd','init','LEAVE','open$','close$','_onMessage','_startCollaboration','deleteCollaborator','forEach','loadUnitOfRevision','_roomMembers','getFocusedUnit','fetch_missing','snapshot','csShouldRetryEvent','_telemetryService','COMPRESS_MUTATION_APPLY','NO_OTHER_CLIENTS_EDITING','isPermissionRej','_sessionStatus$','body','FileId','_instanceService','CHANGESET_REJ','getSheetId','unitId','[CollaborationState]:\x20apply\x20error!','_localeService','close','__splitChunk__','_substituteUndoStack','HELLO','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','type','4848208zAgOio','reconnect','_timeoutTimer','getUnitId','/fetchmissing?from=','/object/','JOIN_ROOM_FULL','\x0aAfter:\x20','_listenToNetworkCondition','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onMissedChangesetFetched','editing\x20status\x20changed\x20to','_state$','&to=','_config','_collaborationUIEventService','_sessions','awaitingChangeset','_transformService','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','get','registerHTTPInterceptor','UNIVER_COLLABORATION_CLIENT_PLUGIN','_onCombEvent','_cfgEnableObjInherit','signUrlServerUrl','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','string','enableSingleActiveInstanceLock','isArray','m2Prime','_onUserLeave','onLocalMutation','_initCloseConn','onCommentUpdate','IDLE','name','onMissingChangesets','_acknowledgeAwaiting','_transformSelections','getConfig','getMember','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_registerDependencies','/allowed','splice','shouldCloseConn','_state','toggleOnline','loadUnit','some','_unlockTransition','action','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onload','getUnitOnRev','eventID','listCollaborators','_getUploadFileURL','onlyLocal','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.','JOINING','Univer','OTHER_CLIENT_EDITING','_doCreateSocket','collabSubmitChangesetUrl','dispose','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onTransformRemoteChangesetByStateCache','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','collaboration_new_changeset','socketService','PERMISSION_REJ','_joinRoom','apply','PSEUDO_FETCH_MISSING_RESULT','add','sessionStatus','AWAITING_WITH_PENDING','_getLoginPath','[CollaborationSessionService]','getCollabEntity$','\x0aCurrent:\x20','DEFAULT_FILE_NAME','_remoteChangesetQueue','onStarting','includes','_revisionService','_createInitialState','_HTTPService','submit\x20changeset\x20error!','_members$','unknown','_status$','post','/rev/','status','state','_init','_onOffline','/universer-api/oidc/authpage','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_scheduleCompleteTimestamp','_executeRemoteChangeset','equals','_isPermissionRej','incrementRevOfUnit','_commentUpdate$','status$','_checkMissing','interceptor','subject','_transformRemoteChangesetByIMECache','setCfgEnableObjInherit','_httpService','href','_event$','_onFetchMissResult','_snapshotServerService','objectActions','catch','unsubscribe','create','origin','HEARTBEAT','People','now','_clearHeartbeatTimer','onRemoteAck','794943pTVgKk','_substituteRedoStack','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[DataLoaderService]','_sender','commentUpdate$','function','JOIN','_onRemoteRejected','_getSendChangesetTimeout','not_collab','asObservable','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onRecvEvent','onRemoteChangeset','/unit/','_sheetTransformSelectionsService','fetching\x20missing\x20changesets\x20from\x20','_awaitingChangeset','updatePermissionPoint','getImageSourceCache','CLOSE_ROOM','_localCacheService','_updateState','_collaborationTimeoutTimer','requestParams','_socketReady','NOT_COLLAB','[PendingState]:\x20unhandled\x20univer\x20type:\x20','location','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','removeMember','updateSnapshot','_replaceFileID','[PendingState]:\x20received\x20rejection.','CHANGESET_SHOULD_RETRY','_waitForHeartbeatResponse','fetchMiss','liveShareOperation','routeKey','failed\x20to\x20apply\x20missed\x20changesets!','_transitionLocked','subscribe','collaborators','_getCurrentRevision','code','_handlerCallback','_collaborationPaused','disableLocalCache','transformChangesets','_replayCachedMutations','_lockTransition','unitInfo$','_stopTelemetryCollaborationNewChangeset','_removeRoom','onTransformState','_undoRedoService','_telemetryInfo','[UniverCollaborationClientPlugin]','_imageSourceCache','onTransformRemoteChangesetByIMECache','_change$','_members','updateCursorEvent','getUnitType','COMMENT_UPDATE','&source=','getWorkbookSelections','LIVESHARE_TERMINATE','authzUrl','10LAqFWv','change$','readyForCollab','packageName','/resources','_transformStack','onSendChangeset','mutations','/universer-api/user/session-ticket','CHANGESET_ACK','_commentService','getTypeOfUnitDisposed$','_transformAndApplyRemoteChangeset','session.join-failed','_transformRemoteChangesetByStateCache','INGEST','_decreaseWaiting','delete','getTime','compose','constructor','_schedule','send','getCurrentUser','PENDING','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','next','OFFLINE','_changesetSessionId','fetchThroughInterceptors','_memberService','@univerjs-pro/collaboration-client','roomInfos','_retryCount','_univerInstanceService','collaMsg','closeSession','_socket$','_resendTimeout','_getSignURL','unitId\x20is\x20not\x20found','actions','_handler','snapshotServerUrl','SOCKET_FAILED','HEARTBEAT_TIMEOUT','POST','has','_handleRemoteChangesets','{fileID}','USERS_LEAVE','socket$','_logService','transformStack\x20failed!','_onConnectionFailed','editingUnit','_collabSessionService','&assign=','ERROR_EXCEED_SIZE','debug','9WrpUxG','LIVESHARE_OPERATION','getActiveSheet','disposeWithMe','_toggleOnline','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','univer-pro.collaboration-client.network-condition.service','_clearTimeoutTimer','_type','LIVESHARE_FETCH_OPERATIONS','_undoStacks','_transformUndoredo','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_candidateSocket','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','pending','setCurrentUser','textRanges','unit','createCollaborator','override','updateCollaborator','collaboratorID','indexOf','_clearUndo','toPrimitive','loginUrlKey','JOIN_ROOM_FAILED','_fetchMissChangesets','_configService','_clearScheduledTask','src','OTHER_CLIENTS_EDITING','defineProperty','_acknowledgedAwaitingRevision','event$','UNIVER_SHEET','getValue','_initDependencies','FAIL','_initMergeInterceptor','collaboration-client.local-cache-service','sessionStatus$','_waitCount','/universer-api/authz','hostname','SNAPSHOT_URL_KEY','cfgEnableObjInherit','_commandService','fromCharCode','onSyncEditingCollabCursor','then','createInstance','offline','COMPRESS_MUTATION_SEND','_onRemoteChangeset','getLatestCsReqIdBySid','PERMISSION_DENIED','_clearLocalCache','slice','onTransformSelections','resend','_onConnectionOpen','?size=','list','default','fromCollab','[OfflineState]:\x20received\x20acknowledgement.','FETCH_MISSING','_redoStacks','_acknowledgeAwaitingIfReady','_startTelemetryCollaborationNewChangeset','emitEvent','_sendHeartbeat','_toggleOffline','originalMeta','_updateLocalCache','_showConflictNotification','symbol','members$','put','toggleOffline','_collaborationSessionService','24926100CubIDW','updateMember','1076vapHgz','SOCKET_FAILED_RETRY','message$','saveSnapshot','sendChangesetTimeout','AWAITING','target','workbook','reject','getDeserializedSheetBlock','\x20to\x20','RETRY_CONNECTING_MAX_COUNT','_shouldReportTelemetry','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','resourceIDs','missingChangesets','/object','_clearCollaborationTimeoutTimer','url','uploadFileServerUrl','_socketMessageSubscription','setConfig','_entities','sid','session.room-permission-denied','startTime','_pendingMutations','waitForRoom$','localCacheService','loadOfflineData','SUBMIT_CHANGESET_TIMEOUT','length','result','\x20in\x20_schedule.','onRemoteRej','ERROR_IMAGE_TYPE','awaiting','call','connection\x20error','_updateStatus','getTypeOfUnitAdded$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_getAPIPrefix','UNIVER_DOC','sort','objects','every','/block/','/universer-api/file/{fileID}/sign-url','from','_snapshotService','readAsDataURL','entries','_createHandler','size','pauseCollaboration','clear','_socket','session.room-not-exists','_changesetReqId','_syncEditingCollabCursor','onTransformIME','BASE64','push','c2Prime','c1Prime','_rescheduleHeartbeat','_onConflict','__Key__','LIVESHARE_NEW_HOST','version','collabWebSocketUrl','_resendTimer','_sendHeartbeatTimer','toString','_networkConditionService','range','online$','encrypt','_throwTelemetryCollaborationNewChangeset','iterator','executeCommand','title','onRemoteRetry','[CollaborationSession]','_singleActiveUnitService','31644kHBqIc','error','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','max','requireSession','stopTime','RECV','UPDATE_CURSOR','map','getMemberID','/universer-api/uniscript','find','_compressMutationService','ONLINE','getRoom','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getOwnPropertyDescriptor','3596075MaXCOf','_onJoinRoomEvent','awaiting_with_pending','fetchMissingChangesets','encodeURIComponent','pipe','floor','Failed\x20to\x20update\x20permission\x20point','_clearRetryConnectingTimer','[CollaborationUndoRedoService]','changesets','focused$','members','CONFLICT','avatar','transformMutationsWithChangeset','liveShareNewHost','[OfflineState]:\x20received\x20changeset.','session','object','getInterceptPoints'];_0xd90b=function(){return _0x22de3b;};return _0xd90b();}let bn=class{constructor(_0x12a878,_0x245f4a){const _0x4cab6f=_0x5ae4d2;this[_0x4cab6f(0x14a)]=_0x12a878,this['_HTTPService']=_0x245f4a;}[_0x5ae4d2(0x27b)](){const _0x212a66=_0x5ae4d2;var _0x425137;let _0x804e91=this['_configService'][_0x212a66(0x2c6)](U);return(_0x425137=_0x804e91==null?void 0x0:_0x804e91[_0x212a66(0x367)])==null?'/universer-api/authz':_0x425137;}async[_0x5ae4d2(0x16d)](_0x559bc5){const _0x39da27=_0x5ae4d2;let _0x8d5428=this[_0x39da27(0x27b)]()+_0x39da27(0x236);return{'list':[{'title':_0x39da27(0x31c),'mentions':(await this['_HTTPService'][_0x39da27(0x2b2)](_0x8d5428,{'params':{'objectID':_0x559bc5['unitId'],'unitID':_0x559bc5['unitId']}}))[_0x39da27(0x290)]['collaborators'][_0x39da27(0x1e0)](_0x3264f0=>({'objectId':_0x3264f0['id'],'name':_0x3264f0['subject']['name'],'metadata':{'icon':_0x3264f0[_0x39da27(0x30e)][_0x39da27(0x1f7)]},'label':_0x3264f0[_0x39da27(0x30e)][_0x39da27(0x2c2)],'objectType':_0x3eeb69['PERSON']})),'metadata':{},'type':_0x3eeb69['PERSON']}]};}};bn=z([R(0x0,_0x4e3f0c(_0x2a37e1)),R(0x1,_0x4e3f0c(_0x50b313))],bn);let xn=class extends _0x1e5f27{constructor(_0xaaccfb,_0x2f7821,_0x3b790b,_0xc184c9,_0x10379b){const _0x5c709a=_0x5ae4d2;super(),this[_0x5c709a(0x25e)]=_0xaaccfb,this[_0x5c709a(0x113)]=_0x2f7821,this[_0x5c709a(0x260)]=_0x3b790b,this[_0x5c709a(0x17f)]=_0xc184c9,this[_0x5c709a(0x2ad)]=_0x10379b,this[_0x5c709a(0x231)](),this[_0x5c709a(0x2bf)]();}[_0x5ae4d2(0x2bf)](){const _0x23815e=_0x5ae4d2;let _0x56ff90=async _0x4d7d0e=>{const _0x468a56=_0x80d2;(await this[_0x468a56(0x17f)]['requireSession'](_0x4d7d0e))[_0x468a56(0x150)][_0x468a56(0x1ee)](_0x45748f(_0x23843c=>_0x23843c[_0x468a56(0x2d6)]===_0x549cb3[_0x468a56(0x25a)]),_0xbd75b1(this['dispose$']))['subscribe'](_0x51bdb0=>{const _0x364bcc=_0x468a56;let {reason:_0xd8103b}=_0x51bdb0[_0x364bcc(0x20d)];this[_0x364bcc(0x2ad)][_0x364bcc(0x175)]({'id':_0x364bcc(0x336),'data':_0xd8103b}),this[_0x364bcc(0x260)][_0x364bcc(0x334)](new _0x49870e(_0x4d7d0e)['id'],!0x1),this['_collaborationSessionService'][_0x364bcc(0x115)](_0x4d7d0e);});};_0x2d1d23(this['_univerInstanceService'][_0x23815e(0x1aa)](_0x20b29c[_0x23815e(0x151)]),this['_univerInstanceService'][_0x23815e(0x1aa)](_0x20b29c['UNIVER_DOC']))[_0x23815e(0x1ee)](_0x5b276d(_0xa3006f=>_0xa3006f[_0x23815e(0x13f)][_0x23815e(0x2a1)]()),_0x45748f(_0x541189=>!_0x49aab5(_0x541189)),_0xbd75b1(this[_0x23815e(0x229)]))['subscribe'](_0xdfda7e=>{_0x56ff90(_0xdfda7e);});}[_0x5ae4d2(0x231)](){const _0x3b2efd=_0x5ae4d2;let _0x15f66e=async _0x3618f4=>{const _0xbced91=_0x80d2;let _0x3a4612=await this[_0xbced91(0x17f)][_0xbced91(0x1dc)](_0x3618f4),_0x1f7484=this[_0xbced91(0x25e)][_0xbced91(0x2b2)](_0x25975d);_0x3a4612['event$']['pipe'](_0x45748f(_0x41d8c2=>_0x41d8c2[_0xbced91(0x2d6)]===_0x549cb3['UPDATE_PERMISSION_OBJ']),_0xbd75b1(this[_0xbced91(0x229)]))['subscribe'](_0x3b49c3=>{const _0x225380=_0xbced91;let {objectId:_0xa2232b}=_0x3b49c3[_0x225380(0x20d)];_0xa2232b===_0x3618f4?_0x1f7484['initWorkbookPermissionChange'](_0x3618f4):_0x1f7484['refreshPermission'](_0x3618f4,_0xa2232b);});};_0x2d1d23(this['_univerInstanceService'][_0x3b2efd(0x1aa)](_0x20b29c['UNIVER_SHEET']))['pipe'](_0x5b276d(_0x1462d7=>_0x1462d7[_0x3b2efd(0x13f)][_0x3b2efd(0x2a1)]()),_0x45748f(_0x5d4cb1=>!_0x49aab5(_0x5d4cb1)),_0xbd75b1(this['dispose$']))[_0x3b2efd(0x34c)](_0xbf0a1=>{_0x15f66e(_0xbf0a1);});}};xn=z([R(0x0,_0x4e3f0c(_0x1422f8)),R(0x1,_0x2f9fc),R(0x2,_0x386a45),R(0x3,_0x4e3f0c(Q)),R(0x4,_0x4e3f0c(L))],xn);let Sn=class{constructor(_0x16d8ad,_0x513cb6){const _0x47e1c7=_0x5ae4d2;this['_configService']=_0x16d8ad,this[_0x47e1c7(0x311)]=_0x513cb6;}async[_0x5ae4d2(0x2d5)](_0x10cad8,_0x2f6fcb){const _0x273359=_0x5ae4d2;var _0xb6c09c;let {unitID:_0xf1cf0b,type:_0x5b367f,revision:_0x3aae57=0x0}=_0x2f6fcb,_0x1ce3bb=this['getSnapshotAPIPath']()+'/'+_0x5b367f+'/unit/'+_0xf1cf0b+_0x273359(0x2fe)+_0x3aae57,_0x38a9b5=(await this[_0x273359(0x311)]['get'](_0x1ce3bb))[_0x273359(0x290)],_0x8c7c75=(_0xb6c09c=_0x38a9b5[_0x273359(0x289)])==null?void 0x0:_0xb6c09c[_0x273359(0x189)];if(_0x8c7c75){let _0x596cfa=_0x8c7c75==null?void 0x0:_0x8c7c75[_0x273359(0x178)];_0x8c7c75[_0x273359(0x178)]=_0x1fc428['encode'](_0x256b71(_0x596cfa)),Object[_0x273359(0x1b6)](_0x8c7c75[_0x273359(0x223)])['forEach'](([,_0x3c81b5])=>{const _0x25ea60=_0x273359;let _0x40dc16=_0x3c81b5[_0x25ea60(0x178)];_0x3c81b5[_0x25ea60(0x178)]=_0x1fc428[_0x25ea60(0x242)](_0x256b71(_0x40dc16));});}return _0x38a9b5;}async['getSheetBlock'](_0x1f65b6,_0x16c5f6){const _0x3ce93c=_0x5ae4d2;let {unitID:_0x3c8cfc,type:_0x132326,blockID:_0x2bba5e}=_0x16c5f6,_0x4103fa=this[_0x3ce93c(0x1ac)]()+'/'+_0x132326+_0x3ce93c(0x330)+_0x3c8cfc+_0x3ce93c(0x1b1)+_0x2bba5e;return(await this['_httpService'][_0x3ce93c(0x2b2)](_0x4103fa))[_0x3ce93c(0x290)];}async[_0x5ae4d2(0x18b)](_0x38bfb6,_0x5eb380){const _0x32fec1=_0x5ae4d2;let {unitID:_0x561a18,type:_0x12be80,blockID:_0x3a244d}=_0x5eb380,_0x19a2ca=this[_0x32fec1(0x1ac)]()+_0x32fec1(0x1b1)+_0x12be80+_0x32fec1(0x330)+_0x561a18+_0x32fec1(0x1b1)+_0x3a244d;return(await this['_httpService']['get'](_0x19a2ca))[_0x32fec1(0x290)];}async[_0x5ae4d2(0x1ec)](_0x39c216,_0x1e3b58){const _0x260f99=_0x5ae4d2;let {unitID:_0x5e3ebb,type:_0x401a19,from:_0x2d3299,to:_0x44be63}=_0x1e3b58,_0x2c2c43=this['_getAPIPrefix']()+'/'+_0x401a19+_0x260f99(0x330)+_0x5e3ebb+_0x260f99(0x2a2)+_0x2d3299+_0x260f99(0x2ab)+_0x44be63;return(await this[_0x260f99(0x311)][_0x260f99(0x2b2)](_0x2c2c43))[_0x260f99(0x290)];}[_0x5ae4d2(0x252)](){const _0x1042e9=_0x5ae4d2;var _0x5ba8ff;return(_0x5ba8ff=this[_0x1042e9(0x14a)]['getConfig'](_0x1042e9(0x15b)))==null?this[_0x1042e9(0x1ac)]():_0x5ba8ff;}[_0x5ae4d2(0x1ac)](){const _0x47c2a2=_0x5ae4d2;var _0x41c32b;let _0x3f50d3=this[_0x47c2a2(0x14a)]['getConfig'](U);return(_0x41c32b=_0x3f50d3==null?void 0x0:_0x3f50d3[_0x47c2a2(0x11c)])==null?_0x47c2a2(0x22d):_0x41c32b;}async['getResourcesRequest'](_0x27e7fd,_0x3508ce){const _0x2d2eff=_0x5ae4d2;let _0x52c9c9='/universer-api/snapshot/'+_0x3508ce['type']+_0x2d2eff(0x330)+_0x3508ce[_0x2d2eff(0x213)]+_0x2d2eff(0x36c);return(await this['_httpService'][_0x2d2eff(0x2b2)](_0x52c9c9,{'params':{'resourceId':JSON[_0x2d2eff(0x261)](_0x3508ce[_0x2d2eff(0x190)])}}))[_0x2d2eff(0x290)];}[_0x5ae4d2(0x185)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5ae4d2(0x342)](){const _0x145570=_0x5ae4d2;throw Error(_0x145570(0x246));}['saveSheetBlock'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5ae4d2(0x25c)](){const _0x44c512=_0x5ae4d2;throw Error(_0x44c512(0x246));}['copyFileMeta'](){const _0x563fee=_0x5ae4d2;throw Error(_0x563fee(0x246));}[_0x5ae4d2(0x165)](){const _0x56af16=_0x5ae4d2;throw Error(_0x56af16(0x246));}};Sn=z([R(0x0,_0x2a37e1),R(0x1,_0x4e3f0c(_0x50b313))],Sn);let Cn=class extends _0x235d3d{constructor(_0x3008c7,_0x48c660,_0x58e59a,_0x207eed,_0x4a3ade){const _0x453248=_0x5ae4d2;super(_0x3008c7,_0x48c660,_0x58e59a),this[_0x453248(0x2b0)]=_0x207eed,this[_0x453248(0x125)]=_0x4a3ade;}[_0x5ae4d2(0x210)](_0x533e75,_0x33359e){const _0x307ff6=_0x5ae4d2;let _0x321a69=this[_0x307ff6(0x239)](_0x533e75);if(_0x321a69)try{let _0x224450=this['_transformStack'](_0x321a69,_0x33359e);this[_0x307ff6(0x29a)](_0x533e75,_0x224450);}catch(_0x1d68f5){this[_0x307ff6(0x125)]['error']('[CollaborationUndoRedoService]',_0x1d68f5),this[_0x307ff6(0x145)](_0x533e75);}let _0x5846ce=this['_getRedoStack'](_0x533e75);if(_0x5846ce)try{let _0x57647e=this[_0x307ff6(0x36d)](_0x5846ce,_0x33359e);this['_substituteRedoStack'](_0x533e75,_0x57647e);}catch(_0x35008e){this[_0x307ff6(0x125)][_0x307ff6(0x1d9)](_0x35008e),this[_0x307ff6(0x263)](_0x533e75);}}['_clearUndo'](_0x491722){const _0x3b0111=_0x5ae4d2;let _0x1af677=this[_0x3b0111(0x239)](_0x491722);_0x1af677&&(_0x1af677['length']=0x0,this[_0x3b0111(0x1a9)]());}[_0x5ae4d2(0x263)](_0x2d523f){const _0x4842bd=_0x5ae4d2;let _0x2cb31d=this[_0x4842bd(0x218)](_0x2d523f);_0x2cb31d&&(_0x2cb31d[_0x4842bd(0x1a1)]=0x0,this[_0x4842bd(0x1a9)]());}[_0x5ae4d2(0x29a)](_0x563c29,_0x520485){const _0x943a3a=_0x5ae4d2;this[_0x943a3a(0x137)][_0x943a3a(0x245)](_0x563c29,_0x520485),this[_0x943a3a(0x1a9)]();}[_0x5ae4d2(0x321)](_0x47445a,_0x14cf29){const _0x255e54=_0x5ae4d2;this[_0x255e54(0x172)][_0x255e54(0x245)](_0x47445a,_0x14cf29),this['_updateStatus']();}[_0x5ae4d2(0x36d)](_0x59ae20,_0xa4404){const _0x201431=_0x5ae4d2;let _0x3eb6b8=[],_0x19d3b7=_0xa4404,_0x5cd316=_0xa4404;for(let _0x43d3c6=_0x59ae20['length']-0x1;_0x43d3c6>=0x0;_0x43d3c6--){let {unitID:_0x1b3286,undoMutations:_0x3aee0b,redoMutations:_0x3a7619}=_0x59ae20[_0x43d3c6],_0x42c2c8=this[_0x201431(0x2b0)][_0x201431(0x1f8)](_0x19d3b7,_0x3aee0b),_0x11a2f3=this['_transformService']['transformMutationsWithChangeset'](_0x5cd316,_0x3a7619);if(_0x3dc440(_0x42c2c8)||_0x3dc440(_0x11a2f3)){this[_0x201431(0x125)][_0x201431(0x1d9)](_0x201431(0x1f2),_0x201431(0x126),_0x42c2c8,_0x11a2f3);break;}_0x19d3b7=_0x42c2c8[_0x201431(0x1c3)],_0x5cd316=_0x11a2f3[_0x201431(0x1c3)],_0x3eb6b8['push']({'unitID':_0x1b3286,'undoMutations':_0x42c2c8[_0x201431(0x2bc)],'redoMutations':_0x11a2f3[_0x201431(0x2bc)]});}return _0x3eb6b8[_0x201431(0x24e)]();}};Cn=z([R(0x0,_0x2f9fc),R(0x1,_0x179ec4),R(0x2,_0x2b48e8),R(0x3,_0x549fa2),R(0x4,_0x2dd0ba)],Cn);let $=class extends _0xf5b700{constructor(_0x45675f={},_0x459cec,_0x22615b,_0x34bb00){const _0x18481e=_0x5ae4d2;super(),this[_0x18481e(0x2ac)]=_0x45675f,this[_0x18481e(0x125)]=_0x459cec,this[_0x18481e(0x25e)]=_0x22615b,this['_configService']=_0x34bb00;let {..._0x48cdd4}=_0x4d67d0({},Nt,_0x45675f);if(!_0x48cdd4['socketService'])throw Error(_0x18481e(0x2b8));this['_config']=_0x48cdd4,this['_configService'][_0x18481e(0x197)](U,_0x48cdd4);}[_0x5ae4d2(0x2f4)](){const _0x173895=_0x5ae4d2;this[_0x173895(0x2c9)](),this['_initDependencies']();}[_0x5ae4d2(0x2c9)](){const _0x24d44e=_0x5ae4d2;var _0x1d80dc,_0x21267a;this[_0x24d44e(0x25e)][_0x24d44e(0x120)](_0x29640d)&&this[_0x24d44e(0x125)][_0x24d44e(0x1d9)](_0x24d44e(0x35c),_0x24d44e(0x322));let _0x5ae0a7=_0x25189c([[_0x29640d,{'useClass':Cn}],[Q],[B],[H],[dn],[_n],[wt],[xn],[L],[vn],[rn,{'useClass':this[_0x24d44e(0x2ac)][_0x24d44e(0x2e6)]}],[_0x1706a3,{'useClass':Sn}],[_0x33a5fc,{'useClass':fn}],[_0x1082ef,{'useClass':yn}],[_0x2d21bc,{'useClass':bn}],[sn],[un]],(_0x1d80dc=this[_0x24d44e(0x2ac)])==null?void 0x0:_0x1d80dc[_0x24d44e(0x141)]);if(!((_0x21267a=this[_0x24d44e(0x2ac)])!=null&&_0x21267a[_0x24d44e(0x2ba)])){let _0x5cfecc=_0x5ae0a7[_0x24d44e(0x23c)](([_0x52b1ef])=>_0x52b1ef===jt);_0x5cfecc!==-0x1&&_0x5ae0a7[_0x24d44e(0x2cb)](_0x5cfecc,0x1);}_0x3eddd9(this['_injector'],_0x5ae0a7);}[_0x5ae4d2(0x153)](){const _0x4f5ecc=_0x5ae4d2;var _0xfbf0b5,_0x46a1ec;if(this[_0x4f5ecc(0x25e)]['get'](_0x50b313)[_0x4f5ecc(0x2b3)]({'priority':0x14,'interceptor':_0x5b29fb({'maxParallel':0x6})}),!((_0xfbf0b5=this[_0x4f5ecc(0x2ac)])!=null&&_0xfbf0b5['enableOfflineEditing'])){var _0x2ff252;(_0x2ff252=this[_0x4f5ecc(0x25e)][_0x4f5ecc(0x2b2)](V,_0x47be5b['OPTIONAL']))==null||_0x2ff252[_0x4f5ecc(0x352)]();}(_0x46a1ec=this[_0x4f5ecc(0x2ac)])!=null&&_0x46a1ec[_0x4f5ecc(0x21c)]&&_0x4a4fad(this[_0x4f5ecc(0x25e)],[[dn]]),_0x4a4fad(this['_injector'],[[_n],[sn],[xn]]);}};I($,'pluginName',_0x5ae4d2(0x2b4)),I($,_0x5ae4d2(0x36b),cn),I($,_0x5ae4d2(0x1c8),ln),$=z([_0x4cc9d6(_0xb7039c,_0x31f630,_0x51368c),R(0x1,_0x2dd0ba),R(0x2,_0x4e3f0c(_0x1422f8)),R(0x3,_0x2a37e1)],$);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};
|